Skip to content

一分钟搭建影视站,支持Docker等部署方式

build(deps): 添加 ESLint 配置并更新文档与许可

bestZwei8bb60d44e8c5
diff --git a/.gitignore b/.gitignore
index 5bca750..e8bee2a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,4 @@ out/
*.tsbuildinfo
vitest-results.json
*.log
+.mimosa/
diff --git a/docs/Data-Sources.md b/docs/Data-Sources.md
index 18963e5..6796750 100644
--- a/docs/Data-Sources.md
+++ b/docs/Data-Sources.md
@@ -43,6 +43,39 @@ Apple CMS(苹果CMS)标准采集接口,即提供以下接口的资源站
- 结果按「源内去重(sourceKey+vodId)→ 名称排序(zh-CN)」合并;
- 成人过滤在服务端执行,关键词包括:伦理片、福利、里番动漫、无码、SWAG 等。
+## 源可用性测试
+
+设置 → 数据源,每个源右侧的 **⚡** 按钮触发服务端探活:
+
+- 以搜索 `test` 的完整往返衡量:返回响应耗时(ms)与结果条数;
+- 结果以徽章内联展示(`✓ 610ms` 绿色 / `✗ 超时` 红色);
+- 探活请求与搜索一样经过 SSRF 校验,仅支持公网 http(s) 地址。
+
+## 源订阅 / 分享
+
+源列表可以脱离单台设备流转:
+
+**分享(导出)**:设置 → 源订阅 / 分享 → 「导出源列表」,生成如下格式的 JSON 文件:
+
+```json
+{
+ "name": "LibreTV-SourceList",
+ "version": 1,
+ "sources": [
+ { "name": "暴风资源", "url": "https://bfzyapi.com/api.php/provide/vod", "detail": "", "isAdult": false }
+ ]
+}
+```
+
+把文件托管到任意可公开访问的 URL(Gist、对象存储、自建静态服务均可),该 URL 就是一个「订阅地址」。也接受裸数组格式 `[{name,url,...}, ...]`。
+
+**订阅(导入)**:设置 → 源订阅 / 分享 → 填入订阅地址 → 「订阅」:
+
+- 服务端拉取并校验 JSON(协议白名单 + 内网地址过滤,单列表上限 100 个源,按 URL 去重);
+- 导入的源以 `sub_` 前缀 key 管理,自动勾选(成人过滤开启时跳过成人源);
+- 远端列表更新后点 **⟳** 重新同步(整体替换该订阅名下的源,与订阅 URL 相同的手动源会被去重合并);
+- 删除订阅会同时移除其导入的所有源。
+
## 自定义源的数据流
数据源配置**只保存在用户浏览器**(localStorage),服务端不存储。每次搜索/详情请求会把用到的源配置随请求上传,因此:
diff --git a/docs/FAQ.md b/docs/FAQ.md
index 31a7a5e..5cdd4c8 100644
--- a/docs/FAQ.md
+++ b/docs/FAQ.md
@@ -23,6 +23,12 @@
**Q: 搜索结果为什么按名称排序?**
跨源聚合后按影片名(zh-CN locale)排序、同名片按源名排序,便于对比同一影片在不同源的画质/集数。
+**Q: 从播放页返回搜索页会重新搜索吗?**
+通常不会。客户端缓存搜索结果 5 分钟、服务端缓存同一关键词+源组合的结果 60 秒:返回时直接呈现缓存,不重复请求上游。需要强制刷新时重新提交一次搜索即可。
+
+**Q: 详情为什么有缓存?会不会导致新剧集看不到?**
+详情接口有 60 秒服务端缓存(同一影片 + 同一源),用于换源测速等场景避免重复打上游。剧集更新以源站为准,60 秒后即取到最新。
+
## 播放相关
**Q: 视频一直"正在加载"?**
diff --git a/eslint.config.mjs b/eslint.config.mjs
new file mode 100644
index 0000000..004d5b2
--- /dev/null
+++ b/eslint.config.mjs
@@ -0,0 +1,26 @@
+import { dirname } from 'path';
+import { fileURLToPath } from 'url';
+import { FlatCompat } from '@eslint/eslintrc';
+
+const __filename = fileURLToPath(import.meta.url);
+const __dirname = dirname(__filename);
+
+const compat = new FlatCompat({
+ baseDirectory: __dirname,
+});
+
+const eslintConfig = [
+ ...compat.extends('next/core-web-vitals', 'next/typescript'),
+ {
+ ignores: ['.next/**', 'node_modules/**', 'next-env.d.ts'],
+ },
+ {
+ rules: {
+ // 播放器与 ArtPlayer/hls.js 交互处存在少量受控的 any(第三方类型未覆盖),
+ // 保留告警即可,不阻塞构建
+ '@typescript-eslint/no-explicit-any': 'warn',
+ },
+ },
+];
+
+export default eslintConfig;
diff --git a/next.config.ts b/next.config.ts
index 26094de..0802379 100644
--- a/next.config.ts
+++ b/next.config.ts
@@ -22,7 +22,6 @@ const nextConfig: NextConfig = {
env: { APP_VERSION: readAppVersion() },
// 采集站/豆瓣等上游地址在运行时由用户配置,构建期无法枚举,关闭图片优化改用 <img>
images: { unoptimized: true },
- eslint: { ignoreDuringBuilds: true },
};
export default nextConfig;
diff --git a/package-lock.json b/package-lock.json
index 2492770..d47b6a8 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -7,7 +7,7 @@
"": {
"name": "libretv-next",
"version": "2.1.2",
- "license": "Apache-2.0",
+ "license": "AGPL-3.0-or-later",
"dependencies": {
"@tanstack/react-query": "^5.59.0",
"artplayer": "^5.2.3",
@@ -24,6 +24,8 @@
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"autoprefixer": "^10.4.20",
+ "eslint": "^9.39.4",
+ "eslint-config-next": "^15.5.25",
"postcss": "^8.4.49",
"tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
@@ -43,6 +45,18 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/@emnapi/core": {
+ "version": "1.10.0",
+ "resolved": "https://registry.npmmirror.com/@emnapi/core/-/core-1.10.0.tgz",
+ "integrity": "sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@emnapi/wasi-threads": "1.2.1",
+ "tslib": "^2.4.0"
+ }
+ },
"node_modules/@emnapi/runtime": {
"version": "1.11.3",
"resolved": "https://registry.npmmirror.com/@emnapi/runtime/-/runtime-1.11.3.tgz",
@@ -53,6 +67,17 @@
"tslib": "^2.4.0"
}
},
+ "node_modules/@emnapi/wasi-threads": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmmirror.com/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz",
+ "integrity": "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
"node_modules/@esbuild/aix-ppc64": {
"version": "0.21.5",
"resolved": "https://registry.npmmirror.com/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz",
@@ -444,6 +469,216 @@
"node": ">=12"
}
},
+ "node_modules/@eslint-community/eslint-utils": {
+ "version": "4.10.1",
+ "resolved": "https://registry.npmmirror.com/@eslint-community/eslint-utils/-/eslint-utils-4.10.1.tgz",
+ "integrity": "sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "eslint-visitor-keys": "^3.4.3"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
+ }
+ },
+ "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": {
+ "version": "3.4.3",
+ "resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",
+ "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/@eslint-community/regexpp": {
+ "version": "4.12.2",
+ "resolved": "https://registry.npmmirror.com/@eslint-community/regexpp/-/regexpp-4.12.2.tgz",
+ "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^12.0.0 || ^14.0.0 || >=16.0.0"
+ }
+ },
+ "node_modules/@eslint/config-array": {
+ "version": "0.21.2",
+ "resolved": "https://registry.npmmirror.com/@eslint/config-array/-/config-array-0.21.2.tgz",
+ "integrity": "sha512-nJl2KGTlrf9GjLimgIru+V/mzgSK0ABCDQRvxw5BjURL7WfH5uoWmizbH7QB6MmnMBd8cIC9uceWnezL1VZWWw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/object-schema": "^2.1.7",
+ "debug": "^4.3.1",
+ "minimatch": "^3.1.5"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/config-helpers": {
+ "version": "0.4.2",
+ "resolved": "https://registry.npmmirror.com/@eslint/config-helpers/-/config-helpers-0.4.2.tgz",
+ "integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/core": "^0.17.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/core": {
+ "version": "0.17.0",
+ "resolved": "https://registry.npmmirror.com/@eslint/core/-/core-0.17.0.tgz",
+ "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@types/json-schema": "^7.0.15"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/eslintrc": {
+ "version": "3.3.7",
+ "resolved": "https://registry.npmmirror.com/@eslint/eslintrc/-/eslintrc-3.3.7.tgz",
+ "integrity": "sha512-F42g89Qd5oAWtp0k0nnSrjziAKza7w8SVT4mStc18LZMaRb4J1HQAHLCalEtDCxrTuksx7NU9qsmeLwpOfPqWw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ajv": "^6.14.0",
+ "debug": "^4.3.2",
+ "espree": "^10.0.1",
+ "globals": "^14.0.0",
+ "ignore": "^5.2.0",
+ "import-fresh": "^3.2.1",
+ "js-yaml": "^4.3.2",
+ "minimatch": "^3.1.5",
+ "strip-json-comments": "^3.1.1"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/@eslint/js": {
+ "version": "9.39.4",
+ "resolved": "https://registry.npmmirror.com/@eslint/js/-/js-9.39.4.tgz",
+ "integrity": "sha512-nE7DEIchvtiFTwBw4Lfbu59PG+kCofhjsKaCWzxTpt4lfRjRMqG6uMBzKXuEcyXhOHoUp9riAm7/aWYGhXZ9cw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://eslint.org/donate"
+ }
+ },
+ "node_modules/@eslint/object-schema": {
+ "version": "2.1.7",
+ "resolved": "https://registry.npmmirror.com/@eslint/object-schema/-/object-schema-2.1.7.tgz",
+ "integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/plugin-kit": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmmirror.com/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz",
+ "integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/core": "^0.17.0",
+ "levn": "^0.4.1"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@humanfs/core": {
+ "version": "0.19.2",
+ "resolved": "https://registry.npmmirror.com/@humanfs/core/-/core-0.19.2.tgz",
+ "integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@humanfs/types": "^0.15.0"
+ },
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanfs/node": {
+ "version": "0.16.8",
+ "resolved": "https://registry.npmmirror.com/@humanfs/node/-/node-0.16.8.tgz",
+ "integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@humanfs/core": "^0.19.2",
+ "@humanfs/types": "^0.15.0",
+ "@humanwhocodes/retry": "^0.4.0"
+ },
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanfs/types": {
+ "version": "0.15.0",
+ "resolved": "https://registry.npmmirror.com/@humanfs/types/-/types-0.15.0.tgz",
+ "integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanwhocodes/module-importer": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",
+ "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=12.22"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
+ },
+ "node_modules/@humanwhocodes/retry": {
+ "version": "0.4.3",
+ "resolved": "https://registry.npmmirror.com/@humanwhocodes/retry/-/retry-0.4.3.tgz",
+ "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
+ },
"node_modules/@img/colour": {
"version": "1.1.0",
"resolved": "https://registry.npmmirror.com/@img/colour/-/colour-1.1.0.tgz",
@@ -1001,12 +1236,71 @@
"node": "^22.20 || ^24.12 || >=25"
}
},
+ "node_modules/@napi-rs/wasm-runtime": {
+ "version": "1.1.6",
+ "resolved": "https://registry.npmmirror.com/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.6.tgz",
+ "integrity": "sha512-ZLv/JdUfkvOy9eCnnBaGfiO+XimbjebAeO+MRQqD/B+FR1tnRN0tpKSJHRbE8sFfS6aqsXZ67TQjfwfsxULVbg==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@tybys/wasm-util": "^0.10.3"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/Brooooooklyn"
+ },
+ "peerDependencies": {
+ "@emnapi/core": "^1.7.1",
+ "@emnapi/runtime": "^1.7.1"
+ }
+ },
"node_modules/@next/env": {
"version": "15.5.25",
"resolved": "https://registry.npmmirror.com/@next/env/-/env-15.5.25.tgz",
"integrity": "sha512-42h1lLr07vl4gawALP1hsgRZjHB1xYa58JfUfHwr0f7jG/zhPakh5GHkADHXOC9ZxUvlQFOPIrp7s6qX4DezPQ==",
"license": "MIT"
},
+ "node_modules/@next/eslint-plugin-next": {
+ "version": "15.5.25",
+ "resolved": "https://registry.npmmirror.com/@next/eslint-plugin-next/-/eslint-plugin-next-15.5.25.tgz",
+ "integrity": "sha512-dAzOqZQCAOgIq5yQpsuMBZcwxK0AtzGqHMQpxNWYLQlvf79rsP3SDwdGPNQC4ySaMSihOQXMO/VXubQ3JWW+3A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-glob": "3.3.1"
+ }
+ },
+ "node_modules/@next/eslint-plugin-next/node_modules/fast-glob": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmmirror.com/fast-glob/-/fast-glob-3.3.1.tgz",
+ "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@nodelib/fs.stat": "^2.0.2",
+ "@nodelib/fs.walk": "^1.2.3",
+ "glob-parent": "^5.1.2",
+ "merge2": "^1.3.0",
+ "micromatch": "^4.0.4"
+ },
+ "engines": {
+ "node": ">=8.6.0"
+ }
+ },
+ "node_modules/@next/eslint-plugin-next/node_modules/glob-parent": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-5.1.2.tgz",
+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
"node_modules/@next/swc-darwin-arm64": {
"version": "15.5.25",
"resolved": "https://registry.npmmirror.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-15.5.25.tgz",
@@ -1173,6 +1467,16 @@
"node": ">= 8"
}
},
+ "node_modules/@nolyfill/is-core-module": {
+ "version": "1.0.39",
+ "resolved": "https://registry.npmmirror.com/@nolyfill/is-core-module/-/is-core-module-1.0.39.tgz",
+ "integrity": "sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12.4.0"
+ }
+ },
"node_modules/@rollup/rollup-android-arm-eabi": {
"version": "4.63.1",
"resolved": "https://registry.npmmirror.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.63.1.tgz",
@@ -1523,6 +1827,20 @@
"win32"
]
},
+ "node_modules/@rtsao/scc": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/@rtsao/scc/-/scc-1.1.0.tgz",
+ "integrity": "sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@rushstack/eslint-patch": {
+ "version": "1.16.1",
+ "resolved": "https://registry.npmmirror.com/@rushstack/eslint-patch/-/eslint-patch-1.16.1.tgz",
+ "integrity": "sha512-TvZbIpeKqGQQ7X0zSCvPH9riMSFQFSggnfBjFZ1mEoILW+UuXCKwOoPcgjMwiUtRqFZ8jWhPJc4um14vC6I4ag==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/@swc/helpers": {
"version": "0.5.15",
"resolved": "https://registry.npmmirror.com/@swc/helpers/-/helpers-0.5.15.tgz",
@@ -1558,6 +1876,17 @@
"react": "^18 || ^19"
}
},
+ "node_modules/@tybys/wasm-util": {
+ "version": "0.10.3",
+ "resolved": "https://registry.npmmirror.com/@tybys/wasm-util/-/wasm-util-0.10.3.tgz",
+ "integrity": "sha512-F3fo1MYrRJYL3zER0OUOmkutjr1Vp23m7OsSgp7nq4SP6OqX6C/56XFIPAl5bt3zaBRjmW7SGz3u/6LwFpYcOg==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
"node_modules/@types/estree": {
"version": "1.0.9",
"resolved": "https://registry.npmmirror.com/@types/estree/-/estree-1.0.9.tgz",
@@ -1565,6 +1894,20 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/@types/json-schema": {
+ "version": "7.0.15",
+ "resolved": "https://registry.npmmirror.com/@types/json-schema/-/json-schema-7.0.15.tgz",
+ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/json5": {
+ "version": "0.0.29",
+ "resolved": "https://registry.npmmirror.com/@types/json5/-/json5-0.0.29.tgz",
+ "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/@types/node": {
"version": "22.20.1",
"resolved": "https://registry.npmmirror.com/@types/node/-/node-22.20.1.tgz",
@@ -1594,724 +1937,3296 @@
"@types/react": "^19.2.0"
}
},
- "node_modules/@vitest/expect": {
- "version": "2.1.9",
- "resolved": "https://registry.npmmirror.com/@vitest/expect/-/expect-2.1.9.tgz",
- "integrity": "sha512-UJCIkTBenHeKT1TTlKMJWy1laZewsRIzYighyYiJKZreqtdxSos/S1t+ktRMQWu2CKqaarrkeszJx1cgC5tGZw==",
+ "node_modules/@typescript-eslint/eslint-plugin": {
+ "version": "8.69.0",
+ "resolved": "https://registry.npmmirror.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.69.0.tgz",
+ "integrity": "sha512-t5jQTKPIgVW1PE6dR6H6Qz5gm8zjMlX5/2gRaOGd9eO6V7J+tQc6iWKukEe7dY8u9HyYasQ0yfF0/FSSTEO2gA==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@vitest/spy": "2.1.9",
- "@vitest/utils": "2.1.9",
- "chai": "^5.1.2",
- "tinyrainbow": "^1.2.0"
+ "@eslint-community/regexpp": "^4.12.2",
+ "@typescript-eslint/scope-manager": "8.69.0",
+ "@typescript-eslint/type-utils": "8.69.0",
+ "@typescript-eslint/utils": "8.69.0",
+ "@typescript-eslint/visitor-keys": "8.69.0",
+ "ignore": "^7.0.5",
+ "natural-compare": "^1.4.0",
+ "ts-api-utils": "^2.5.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
},
"funding": {
- "url": "https://opencollective.com/vitest"
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "@typescript-eslint/parser": "^8.69.0",
+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
+ "typescript": ">=4.8.4 <6.1.0"
}
},
- "node_modules/@vitest/mocker": {
- "version": "2.1.9",
- "resolved": "https://registry.npmmirror.com/@vitest/mocker/-/mocker-2.1.9.tgz",
- "integrity": "sha512-tVL6uJgoUdi6icpxmdrn5YNo3g3Dxv+IHJBr0GXHaEdTcw3F+cPKnsXFhli6nO+f/6SDKPHEK1UN+k+TQv0Ehg==",
+ "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": {
+ "version": "7.0.8",
+ "resolved": "https://registry.npmmirror.com/ignore/-/ignore-7.0.8.tgz",
+ "integrity": "sha512-YYNsSlXBjMk92SKnkwvB5LOVSa6OznlFUGcsvrFgNJbJCd0M1XKeFVRc8ZByeCqz32FivYNHJVooLmdqrmvp/Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/@typescript-eslint/parser": {
+ "version": "8.69.0",
+ "resolved": "https://registry.npmmirror.com/@typescript-eslint/parser/-/parser-8.69.0.tgz",
+ "integrity": "sha512-l4b0DhWioGg6Gt2ebGlvfkFMOjRsauxtsnDRwUSRX1qHq3HdTfQHV8wW9zEXeciai6HfeaKOedQn2Zoofx3WBw==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@vitest/spy": "2.1.9",
- "estree-walker": "^3.0.3",
- "magic-string": "^0.30.12"
+ "@typescript-eslint/scope-manager": "8.69.0",
+ "@typescript-eslint/types": "8.69.0",
+ "@typescript-eslint/typescript-estree": "8.69.0",
+ "@typescript-eslint/visitor-keys": "8.69.0",
+ "debug": "^4.4.3"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
},
"funding": {
- "url": "https://opencollective.com/vitest"
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
},
"peerDependencies": {
- "msw": "^2.4.9",
- "vite": "^5.0.0"
- },
- "peerDependenciesMeta": {
- "msw": {
- "optional": true
- },
- "vite": {
- "optional": true
- }
+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
+ "typescript": ">=4.8.4 <6.1.0"
}
},
- "node_modules/@vitest/pretty-format": {
- "version": "2.1.9",
- "resolved": "https://registry.npmmirror.com/@vitest/pretty-format/-/pretty-format-2.1.9.tgz",
- "integrity": "sha512-KhRIdGV2U9HOUzxfiHmY8IFHTdqtOhIzCpd8WRdJiE7D/HUcZVD0EgQCVjm+Q9gkUXWgBvMmTtZgIG48wq7sOQ==",
+ "node_modules/@typescript-eslint/project-service": {
+ "version": "8.69.0",
+ "resolved": "https://registry.npmmirror.com/@typescript-eslint/project-service/-/project-service-8.69.0.tgz",
+ "integrity": "sha512-yi4obFrHMmnsesWehHbkg9zMA7Jt8cXT+mKM08G999pH1yT6nqgsHx7MYm0uY1wAj8CqiBXYRJ7WAT0QdQHQXg==",
"dev": true,
"license": "MIT",
"dependencies": {
- "tinyrainbow": "^1.2.0"
+ "@typescript-eslint/tsconfig-utils": "^8.69.0",
+ "@typescript-eslint/types": "^8.69.0",
+ "debug": "^4.4.3"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
},
"funding": {
- "url": "https://opencollective.com/vitest"
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4 <6.1.0"
}
},
- "node_modules/@vitest/runner": {
- "version": "2.1.9",
- "resolved": "https://registry.npmmirror.com/@vitest/runner/-/runner-2.1.9.tgz",
- "integrity": "sha512-ZXSSqTFIrzduD63btIfEyOmNcBmQvgOVsPNPe0jYtESiXkhd8u2erDLnMxmGrDCwHCCHE7hxwRDCT3pt0esT4g==",
+ "node_modules/@typescript-eslint/scope-manager": {
+ "version": "8.69.0",
+ "resolved": "https://registry.npmmirror.com/@typescript-eslint/scope-manager/-/scope-manager-8.69.0.tgz",
+ "integrity": "sha512-ewfspqWvSxKSOaplqAUNbaSFO0eB6w1EtQ+esfYFRm3614Ty4uNtExkcbgd6nWsXphbqKyf9ZYdbZdv2xEoWEQ==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@vitest/utils": "2.1.9",
- "pathe": "^1.1.2"
+ "@typescript-eslint/types": "8.69.0",
+ "@typescript-eslint/visitor-keys": "8.69.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
},
"funding": {
- "url": "https://opencollective.com/vitest"
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
}
},
- "node_modules/@vitest/snapshot": {
- "version": "2.1.9",
- "resolved": "https://registry.npmmirror.com/@vitest/snapshot/-/snapshot-2.1.9.tgz",
- "integrity": "sha512-oBO82rEjsxLNJincVhLhaxxZdEtV0EFHMK5Kmx5sJ6H9L183dHECjiefOAdnqpIgT5eZwT04PoggUnW88vOBNQ==",
+ "node_modules/@typescript-eslint/tsconfig-utils": {
+ "version": "8.69.0",
+ "resolved": "https://registry.npmmirror.com/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.69.0.tgz",
+ "integrity": "sha512-xNqK7YTDZsLniQMV/4rpFR8Z5JlqeRvVjuG1YgF/mdPVH84HSD19L8CczMA0qg2RfwEV231GHH3VnToJDo4MfQ==",
"dev": true,
"license": "MIT",
- "dependencies": {
- "@vitest/pretty-format": "2.1.9",
- "magic-string": "^0.30.12",
- "pathe": "^1.1.2"
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/type-utils": {
+ "version": "8.69.0",
+ "resolved": "https://registry.npmmirror.com/@typescript-eslint/type-utils/-/type-utils-8.69.0.tgz",
+ "integrity": "sha512-ZfoJAVg3JZndQEpEl9petVlxau3lRuElc4HRMuAlLCf8to04/iHz692RUSNmXKDjEuJmIL+KZ2/BsOcBc16dsA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "8.69.0",
+ "@typescript-eslint/typescript-estree": "8.69.0",
+ "@typescript-eslint/utils": "8.69.0",
+ "debug": "^4.4.3",
+ "ts-api-utils": "^2.5.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/types": {
+ "version": "8.69.0",
+ "resolved": "https://registry.npmmirror.com/@typescript-eslint/types/-/types-8.69.0.tgz",
+ "integrity": "sha512-K3VrubUPhlo9VDBS6QdI8YB5j7ClpqLRdefcz6PFrhnwicehBweqQ9Evhl4l+FYz0HdDmMqIiSX0aldGRYtDCA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/@typescript-eslint/typescript-estree": {
+ "version": "8.69.0",
+ "resolved": "https://registry.npmmirror.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.69.0.tgz",
+ "integrity": "sha512-AdFkgqck3Vudb/kWnxlyafU/4aBhHrbQ9locP2N4psXTy5mOBg0SHJumnLvx7r6g1gV4DKvUFwV2nJZBoqOD8w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/project-service": "8.69.0",
+ "@typescript-eslint/tsconfig-utils": "8.69.0",
+ "@typescript-eslint/types": "8.69.0",
+ "@typescript-eslint/visitor-keys": "8.69.0",
+ "debug": "^4.4.3",
+ "minimatch": "^10.2.2",
+ "semver": "^7.7.3",
+ "tinyglobby": "^0.2.15",
+ "ts-api-utils": "^2.5.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/typescript-estree/node_modules/balanced-match": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmmirror.com/balanced-match/-/balanced-match-4.0.4.tgz",
+ "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "18 || 20 || >=22"
+ }
+ },
+ "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": {
+ "version": "5.0.9",
+ "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-5.0.9.tgz",
+ "integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^4.0.2"
+ },
+ "engines": {
+ "node": "20 || >=22"
+ }
+ },
+ "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": {
+ "version": "10.2.6",
+ "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-10.2.6.tgz",
+ "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "dependencies": {
+ "brace-expansion": "^5.0.8"
+ },
+ "engines": {
+ "node": "18 || 20 || >=22"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/@typescript-eslint/utils": {
+ "version": "8.69.0",
+ "resolved": "https://registry.npmmirror.com/@typescript-eslint/utils/-/utils-8.69.0.tgz",
+ "integrity": "sha512-tUbx60BBqQa31kXF5MCsOOLL5E/WzUuxIn7YpAvq+eaUlqvk8/NXnXMBNAdLCr0icjkzem7iUA5QqWHe/hJ1aw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/eslint-utils": "^4.9.1",
+ "@typescript-eslint/scope-manager": "8.69.0",
+ "@typescript-eslint/types": "8.69.0",
+ "@typescript-eslint/typescript-estree": "8.69.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/visitor-keys": {
+ "version": "8.69.0",
+ "resolved": "https://registry.npmmirror.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.69.0.tgz",
+ "integrity": "sha512-+rmdgPA+EXkNgKYvHvFfhrs35utXbwaC5PGpDquSXcoXQDKUA5UjV0LmTucG/4JXkM31BTu4TilHtrN8IVBe8w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "8.69.0",
+ "eslint-visitor-keys": "^5.0.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz",
+ "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/@unrs/resolver-binding-android-arm-eabi": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmmirror.com/@unrs/resolver-binding-android-arm-eabi/-/resolver-binding-android-arm-eabi-1.12.2.tgz",
+ "integrity": "sha512-g5T90pqg1bo/7mytQx6F4iBNC0Wsh9cu+z9veDbFjc7HjpesJFWD7QMS0NGStXM075+7dJPPVvBbpZlnrdpi/w==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-android-arm64": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmmirror.com/@unrs/resolver-binding-android-arm64/-/resolver-binding-android-arm64-1.12.2.tgz",
+ "integrity": "sha512-YGCRZv/9GLhwmz6mYDeTsm/92BAyR28l6c2ReweVW5pWgfsitWLY8upvfRlGdoyD8HjeTHSYJWyZGD4KJA/nFQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-darwin-arm64": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmmirror.com/@unrs/resolver-binding-darwin-arm64/-/resolver-binding-darwin-arm64-1.12.2.tgz",
+ "integrity": "sha512-u9DiNT1auQMO20A9SyTuG3wUgQWB9Z7KjAg0uFuCDR1FsAY8A0CG2S6JpHS1xwm/w1G08bjXZDcyOCjv1WAm2w==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-darwin-x64": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmmirror.com/@unrs/resolver-binding-darwin-x64/-/resolver-binding-darwin-x64-1.12.2.tgz",
+ "integrity": "sha512-f7rPLi/T1HVKZu/u6t87lroib16n8vrSzcyxI7lg4BGO9UF26KhQL44sd9eOUgrTYhvRXtWOIZT5PejdPyJfUA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-freebsd-x64": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmmirror.com/@unrs/resolver-binding-freebsd-x64/-/resolver-binding-freebsd-x64-1.12.2.tgz",
+ "integrity": "sha512-BpcOjWCJub6nRZUS2zA20pmLvjtqAtGejETaIyRLiZiQf++cbrjltLA5NN/xaXfqeOBOSlMFbemIl5/S5tljmg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-linux-arm-gnueabihf": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmmirror.com/@unrs/resolver-binding-linux-arm-gnueabihf/-/resolver-binding-linux-arm-gnueabihf-1.12.2.tgz",
+ "integrity": "sha512-vZTDvdSISZjJx66OzJqtsOhzifbqRjbmI1Mnu49fQDwog5GtDI4QidRiEAYbZCRj9C8YZEW+3ZjqsyS9GR4k2A==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-linux-arm-musleabihf": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmmirror.com/@unrs/resolver-binding-linux-arm-musleabihf/-/resolver-binding-linux-arm-musleabihf-1.12.2.tgz",
+ "integrity": "sha512-BiPI+IrIlwcW4nLLMM21+B1dFPzd55yAVgVGrdgDjNef+ch03GdxrcyaIz8X9SsQirh/kCQ7mviyWlMxdh2D7g==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-linux-arm64-gnu": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmmirror.com/@unrs/resolver-binding-linux-arm64-gnu/-/resolver-binding-linux-arm64-gnu-1.12.2.tgz",
+ "integrity": "sha512-zJc0H99FEPoFfSrNpa91HYfxzfAJCr502oxNK1cfdC9hlaFI43RT+JFCann9JUgZmLzzntChHyn13Sgn9ljHNg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-linux-arm64-musl": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmmirror.com/@unrs/resolver-binding-linux-arm64-musl/-/resolver-binding-linux-arm64-musl-1.12.2.tgz",
+ "integrity": "sha512-KQ3Lki6l+Pz1k/eBipN41ES+YUK30beLGb9YqcB1O542cyLCNE6GaxrfcY3T6EezmGGk84wb5XyO9loTM9tkcA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-linux-loong64-gnu": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmmirror.com/@unrs/resolver-binding-linux-loong64-gnu/-/resolver-binding-linux-loong64-gnu-1.12.2.tgz",
+ "integrity": "sha512-3SJGEh1DborhG6pyxvhPzCT4bbSIVihsvgJc13P1bHG7KLdNDaF9T3gsTwFc7Jw/5Y5/iWOjkEx7Zy0NvCGX3Q==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-linux-loong64-musl": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmmirror.com/@unrs/resolver-binding-linux-loong64-musl/-/resolver-binding-linux-loong64-musl-1.12.2.tgz",
+ "integrity": "sha512-jiuG/Obbel7uw1PwHNFfrkiKhLAF6mnyZ6aWlOAVN9WqKm8v0OFGnciJIHu8+CMvXLQ8AD51LPzAoUfT21D5Ew==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-linux-ppc64-gnu": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmmirror.com/@unrs/resolver-binding-linux-ppc64-gnu/-/resolver-binding-linux-ppc64-gnu-1.12.2.tgz",
+ "integrity": "sha512-q7xRvVpmcfeL+LlZg8Pbbo6QaTZwDU5BaGZbwfhkEsXJn3Was8xYfE0RBH266xZt0rM6B7i8xAYIvjthuUIWHg==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-linux-riscv64-gnu": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmmirror.com/@unrs/resolver-binding-linux-riscv64-gnu/-/resolver-binding-linux-riscv64-gnu-1.12.2.tgz",
+ "integrity": "sha512-0CVdx6lcnT3Q9inOH8tsMIOJ6ImndllMjqJHg8RLVdB7Vq4SfkEXl9mCSsVNuNA4MCYycRicCUxPCabVHJRr6A==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-linux-riscv64-musl": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmmirror.com/@unrs/resolver-binding-linux-riscv64-musl/-/resolver-binding-linux-riscv64-musl-1.12.2.tgz",
+ "integrity": "sha512-iOwlRo9vnp6R6ohHQS11n0NnfdXx/omhkocmIfaPRpQhKZ+3BDMkkdRVh53qjkFkpPddf+FETA28NwGN7l5l+w==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-linux-s390x-gnu": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmmirror.com/@unrs/resolver-binding-linux-s390x-gnu/-/resolver-binding-linux-s390x-gnu-1.12.2.tgz",
+ "integrity": "sha512-HYJtLfXq94q8iZNFT1lknx258wlkkWhZeUXJRqzKBBUJ00CvZ+N33zgbCqimLjsyw5Va6uUxhVa12mI+kaveEw==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-linux-x64-gnu": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmmirror.com/@unrs/resolver-binding-linux-x64-gnu/-/resolver-binding-linux-x64-gnu-1.12.2.tgz",
+ "integrity": "sha512-mPsUhunKKDih5O96Y6enDQyHc1SqBPlY1E/SfMWDM3EdJ95Z9CArPeCVwCCqbP45ljvivdEk8Fxn+SIb1rDAJQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-linux-x64-musl": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmmirror.com/@unrs/resolver-binding-linux-x64-musl/-/resolver-binding-linux-x64-musl-1.12.2.tgz",
+ "integrity": "sha512-azrt6+5ydLd8Vt210AAFis/lZevSfPw93EJRIJG+xPu4WCJ8K0kppCTpMyLPcKT7H15M4Jnt2tMp5bOvCkRC6A==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-openharmony-arm64": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmmirror.com/@unrs/resolver-binding-openharmony-arm64/-/resolver-binding-openharmony-arm64-1.12.2.tgz",
+ "integrity": "sha512-YZ9hP4O0X9PQb8eO980qmLNGH4zT3I9+SZTdt0Pr0YyuGQhYKoOZkV02VzrzyOZJ5xIJ3UFIenKkUkGg8GjgWQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-wasm32-wasi": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmmirror.com/@unrs/resolver-binding-wasm32-wasi/-/resolver-binding-wasm32-wasi-1.12.2.tgz",
+ "integrity": "sha512-tYFDIkMxSflfEc/h92ZWNsZlHSwgimbNHSO3PL2JWQHfCuC2q316jMyYU9TIWZsFK2bQwyK5VAdYgn8ygPj69A==",
+ "cpu": [
+ "wasm32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@emnapi/core": "1.10.0",
+ "@emnapi/runtime": "1.10.0",
+ "@napi-rs/wasm-runtime": "^1.1.4"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@unrs/resolver-binding-wasm32-wasi/node_modules/@emnapi/runtime": {
+ "version": "1.10.0",
+ "resolved": "https://registry.npmmirror.com/@emnapi/runtime/-/runtime-1.10.0.tgz",
+ "integrity": "sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@unrs/resolver-binding-win32-arm64-msvc": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmmirror.com/@unrs/resolver-binding-win32-arm64-msvc/-/resolver-binding-win32-arm64-msvc-1.12.2.tgz",
+ "integrity": "sha512-qzNyg3xL0VPQmCaUh+N5jSitce6k+uCBfMDesWRnlULOZaqUkaJ0ybdT+UqlAWJoQjuqfIU/0Ptx9bteN4D82g==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-win32-ia32-msvc": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmmirror.com/@unrs/resolver-binding-win32-ia32-msvc/-/resolver-binding-win32-ia32-msvc-1.12.2.tgz",
+ "integrity": "sha512-WD9sY00OfpHVGfsnHZoA8jVT+esS/Bg8z8jzxp5BnDCjjwsuKsPQrzswwpFy4J1AUJbXPRfkpcX0mXrzeXW79g==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@unrs/resolver-binding-win32-x64-msvc": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmmirror.com/@unrs/resolver-binding-win32-x64-msvc/-/resolver-binding-win32-x64-msvc-1.12.2.tgz",
+ "integrity": "sha512-nAB74NfSNKknqQ1RrYj6uz8FcXEomu/MATJZxh/x+BArzN2U3JbOYC0APYzUIGhVY3m5hRxA8VPNdPBoG8txlA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@vitest/expect": {
+ "version": "2.1.9",
+ "resolved": "https://registry.npmmirror.com/@vitest/expect/-/expect-2.1.9.tgz",
+ "integrity": "sha512-UJCIkTBenHeKT1TTlKMJWy1laZewsRIzYighyYiJKZreqtdxSos/S1t+ktRMQWu2CKqaarrkeszJx1cgC5tGZw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vitest/spy": "2.1.9",
+ "@vitest/utils": "2.1.9",
+ "chai": "^5.1.2",
+ "tinyrainbow": "^1.2.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/@vitest/mocker": {
+ "version": "2.1.9",
+ "resolved": "https://registry.npmmirror.com/@vitest/mocker/-/mocker-2.1.9.tgz",
+ "integrity": "sha512-tVL6uJgoUdi6icpxmdrn5YNo3g3Dxv+IHJBr0GXHaEdTcw3F+cPKnsXFhli6nO+f/6SDKPHEK1UN+k+TQv0Ehg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vitest/spy": "2.1.9",
+ "estree-walker": "^3.0.3",
+ "magic-string": "^0.30.12"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ },
+ "peerDependencies": {
+ "msw": "^2.4.9",
+ "vite": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "msw": {
+ "optional": true
+ },
+ "vite": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@vitest/pretty-format": {
+ "version": "2.1.9",
+ "resolved": "https://registry.npmmirror.com/@vitest/pretty-format/-/pretty-format-2.1.9.tgz",
+ "integrity": "sha512-KhRIdGV2U9HOUzxfiHmY8IFHTdqtOhIzCpd8WRdJiE7D/HUcZVD0EgQCVjm+Q9gkUXWgBvMmTtZgIG48wq7sOQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "tinyrainbow": "^1.2.0"
},
"funding": {
"url": "https://opencollective.com/vitest"
}
},
- "node_modules/@vitest/spy": {
- "version": "2.1.9",
- "resolved": "https://registry.npmmirror.com/@vitest/spy/-/spy-2.1.9.tgz",
- "integrity": "sha512-E1B35FwzXXTs9FHNK6bDszs7mtydNi5MIfUWpceJ8Xbfb1gBMscAnwLbEu+B44ed6W3XjL9/ehLPHR1fkf1KLQ==",
+ "node_modules/@vitest/runner": {
+ "version": "2.1.9",
+ "resolved": "https://registry.npmmirror.com/@vitest/runner/-/runner-2.1.9.tgz",
+ "integrity": "sha512-ZXSSqTFIrzduD63btIfEyOmNcBmQvgOVsPNPe0jYtESiXkhd8u2erDLnMxmGrDCwHCCHE7hxwRDCT3pt0esT4g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vitest/utils": "2.1.9",
+ "pathe": "^1.1.2"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/@vitest/snapshot": {
+ "version": "2.1.9",
+ "resolved": "https://registry.npmmirror.com/@vitest/snapshot/-/snapshot-2.1.9.tgz",
+ "integrity": "sha512-oBO82rEjsxLNJincVhLhaxxZdEtV0EFHMK5Kmx5sJ6H9L183dHECjiefOAdnqpIgT5eZwT04PoggUnW88vOBNQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vitest/pretty-format": "2.1.9",
+ "magic-string": "^0.30.12",
+ "pathe": "^1.1.2"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/@vitest/spy": {
+ "version": "2.1.9",
+ "resolved": "https://registry.npmmirror.com/@vitest/spy/-/spy-2.1.9.tgz",
+ "integrity": "sha512-E1B35FwzXXTs9FHNK6bDszs7mtydNi5MIfUWpceJ8Xbfb1gBMscAnwLbEu+B44ed6W3XjL9/ehLPHR1fkf1KLQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "tinyspy": "^3.0.2"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/@vitest/utils": {
+ "version": "2.1.9",
+ "resolved": "https://registry.npmmirror.com/@vitest/utils/-/utils-2.1.9.tgz",
+ "integrity": "sha512-v0psaMSkNJ3A2NMrUEHFRzJtDPFn+/VWZ5WxImB21T9fjucJRmS7xCS3ppEnARb9y11OAzaD+P2Ps+b+BGX5iQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vitest/pretty-format": "2.1.9",
+ "loupe": "^3.1.2",
+ "tinyrainbow": "^1.2.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/acorn": {
+ "version": "8.18.0",
+ "resolved": "https://registry.npmmirror.com/acorn/-/acorn-8.18.0.tgz",
+ "integrity": "sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "acorn": "bin/acorn"
+ },
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/acorn-jsx": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmmirror.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
+ "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
+ }
+ },
+ "node_modules/ajv": {
+ "version": "6.15.0",
+ "resolved": "https://registry.npmmirror.com/ajv/-/ajv-6.15.0.tgz",
+ "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.1",
+ "fast-json-stable-stringify": "^2.0.0",
+ "json-schema-traverse": "^0.4.1",
+ "uri-js": "^4.2.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/ansi-styles": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz",
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-convert": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/any-promise": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmmirror.com/any-promise/-/any-promise-1.3.0.tgz",
+ "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/anymatch": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmmirror.com/anymatch/-/anymatch-3.1.3.tgz",
+ "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "normalize-path": "^3.0.0",
+ "picomatch": "^2.0.4"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/arg": {
+ "version": "5.0.2",
+ "resolved": "https://registry.npmmirror.com/arg/-/arg-5.0.2.tgz",
+ "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/argparse": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/argparse/-/argparse-2.0.1.tgz",
+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
+ "dev": true,
+ "license": "Python-2.0"
+ },
+ "node_modules/aria-query": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmmirror.com/aria-query/-/aria-query-5.3.2.tgz",
+ "integrity": "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/array-buffer-byte-length": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz",
+ "integrity": "sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.3",
+ "is-array-buffer": "^3.0.5"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/array-includes": {
+ "version": "3.1.9",
+ "resolved": "https://registry.npmmirror.com/array-includes/-/array-includes-3.1.9.tgz",
+ "integrity": "sha512-FmeCCAenzH0KH381SPT5FZmiA/TmpndpcaShhfgEN9eCVjnFBqq3l1xrI42y8+PPLI6hypzou4GXw00WHmPBLQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.8",
+ "call-bound": "^1.0.4",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.24.0",
+ "es-object-atoms": "^1.1.1",
+ "get-intrinsic": "^1.3.0",
+ "is-string": "^1.1.1",
+ "math-intrinsics": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/array.prototype.findlast": {
+ "version": "1.2.5",
+ "resolved": "https://registry.npmmirror.com/array.prototype.findlast/-/array.prototype.findlast-1.2.5.tgz",
+ "integrity": "sha512-CVvd6FHg1Z3POpBLxO6E6zr+rSKEQ9L6rZHAaY7lLfhKsWYUBBOuMs0e9o24oopj6H+geRCX0YJ+TJLBK2eHyQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.23.2",
+ "es-errors": "^1.3.0",
+ "es-object-atoms": "^1.0.0",
+ "es-shim-unscopables": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/array.prototype.findlastindex": {
+ "version": "1.2.6",
+ "resolved": "https://registry.npmmirror.com/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.6.tgz",
+ "integrity": "sha512-F/TKATkzseUExPlfvmwQKGITM3DGTK+vkAsCZoDc5daVygbJBnjEUCbgkAvVFsgfXfX4YIqZ/27G3k3tdXrTxQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.8",
+ "call-bound": "^1.0.4",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.23.9",
+ "es-errors": "^1.3.0",
+ "es-object-atoms": "^1.1.1",
+ "es-shim-unscopables": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/array.prototype.flat": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmmirror.com/array.prototype.flat/-/array.prototype.flat-1.3.3.tgz",
+ "integrity": "sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.8",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.23.5",
+ "es-shim-unscopables": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/array.prototype.flatmap": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmmirror.com/array.prototype.flatmap/-/array.prototype.flatmap-1.3.3.tgz",
+ "integrity": "sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.8",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.23.5",
+ "es-shim-unscopables": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/array.prototype.tosorted": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmmirror.com/array.prototype.tosorted/-/array.prototype.tosorted-1.1.4.tgz",
+ "integrity": "sha512-p6Fx8B7b7ZhL/gmUsAy0D15WhvDccw3mnGNbZpi3pmeJdxtWsj2jEaI4Y6oo3XiHfzuSgPwKc04MYt6KgvC/wA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.23.3",
+ "es-errors": "^1.3.0",
+ "es-shim-unscopables": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/arraybuffer.prototype.slice": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmmirror.com/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.4.tgz",
+ "integrity": "sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "array-buffer-byte-length": "^1.0.1",
+ "call-bind": "^1.0.8",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.23.5",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.6",
+ "is-array-buffer": "^3.0.4"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/artplayer": {
+ "version": "5.4.0",
+ "resolved": "https://registry.npmmirror.com/artplayer/-/artplayer-5.4.0.tgz",
+ "integrity": "sha512-2B+plbx8N2yNsjK4nJU3+EOG8TULm1LRZk/QPkWRAMEX2Ee/MSnZG/WJYz8kcoZxZuLKcQ3uXifqLuPxZOH29A==",
+ "license": "MIT",
+ "dependencies": {
+ "option-validator": "^2.0.6"
+ }
+ },
+ "node_modules/assertion-error": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/assertion-error/-/assertion-error-2.0.1.tgz",
+ "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/ast-types-flow": {
+ "version": "0.0.8",
+ "resolved": "https://registry.npmmirror.com/ast-types-flow/-/ast-types-flow-0.0.8.tgz",
+ "integrity": "sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/async-function": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/async-function/-/async-function-1.0.0.tgz",
+ "integrity": "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/autoprefixer": {
+ "version": "10.5.4",
+ "resolved": "https://registry.npmmirror.com/autoprefixer/-/autoprefixer-10.5.4.tgz",
+ "integrity": "sha512-MaU0U/za7N3r6brxD4YB/l4NSrFzLPlANv6wEuQVaIPlD3L4W9rFcQPbL/EilY9BHhHvhfcz3gInDLrEtWT4EA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/autoprefixer"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "browserslist": "^4.28.6",
+ "caniuse-lite": "^1.0.30001806",
+ "fraction.js": "^5.3.4",
+ "picocolors": "^1.1.1",
+ "postcss-value-parser": "^4.2.0"
+ },
+ "bin": {
+ "autoprefixer": "bin/autoprefixer"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ },
+ "peerDependencies": {
+ "postcss": "^8.1.0"
+ }
+ },
+ "node_modules/available-typed-arrays": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmmirror.com/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz",
+ "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "possible-typed-array-names": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/axe-core": {
+ "version": "4.13.0",
+ "resolved": "https://registry.npmmirror.com/axe-core/-/axe-core-4.13.0.tgz",
+ "integrity": "sha512-UzGt8zg7Ny8djbYMhxl2zuEevVa7r2gJjYY5Lwr1xM7+XU2nd6CkIWFTVcCIbAP63vSz71NaVyyuSk9lHKcy0A==",
+ "dev": true,
+ "license": "MPL-2.0",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/axobject-query": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmmirror.com/axobject-query/-/axobject-query-4.1.0.tgz",
+ "integrity": "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/balanced-match": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/balanced-match/-/balanced-match-1.0.2.tgz",
+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/baseline-browser-mapping": {
+ "version": "2.11.20",
+ "resolved": "https://registry.npmmirror.com/baseline-browser-mapping/-/baseline-browser-mapping-2.11.20.tgz",
+ "integrity": "sha512-H0ulySigv6icDJ1F7SjtdCD6PrhTpdYCmP0CactWy1+ekh0AFd0o1Wn5T8b+hnTmdBx19u9yhL6wvCylXMY7zw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "baseline-browser-mapping": "dist/cli.cjs"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/binary-extensions": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmmirror.com/binary-extensions/-/binary-extensions-2.3.0.tgz",
+ "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/brace-expansion": {
+ "version": "1.1.18",
+ "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.18.tgz",
+ "integrity": "sha512-Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "node_modules/braces": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmmirror.com/braces/-/braces-3.0.3.tgz",
+ "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fill-range": "^7.1.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/browserslist": {
+ "version": "4.28.8",
+ "resolved": "https://registry.npmmirror.com/browserslist/-/browserslist-4.28.8.tgz",
+ "integrity": "sha512-V2NpofLblG64mfOtSgDhOJESZEGogzDMBv/q+W6oc4LXWP/q75eOXoOaaOu1EOadB9U4Bwx/e0yzbvwKH8zalA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "baseline-browser-mapping": "^2.11.12",
+ "caniuse-lite": "^1.0.30001809",
+ "electron-to-chromium": "^1.5.402",
+ "node-releases": "^2.0.53",
+ "update-browserslist-db": "^1.3.0"
+ },
+ "bin": {
+ "browserslist": "cli.js"
+ },
+ "engines": {
+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
+ }
+ },
+ "node_modules/cac": {
+ "version": "6.7.14",
+ "resolved": "https://registry.npmmirror.com/cac/-/cac-6.7.14.tgz",
+ "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/call-bind": {
+ "version": "1.0.9",
+ "resolved": "https://registry.npmmirror.com/call-bind/-/call-bind-1.0.9.tgz",
+ "integrity": "sha512-a/hy+pNsFUTR+Iz8TCJvXudKVLAnz/DyeSUo10I5yvFDQJBFU2s9uqQpoSrJlroHUKoKqzg+epxyP9lqFdzfBQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.2",
+ "es-define-property": "^1.0.1",
+ "get-intrinsic": "^1.3.0",
+ "set-function-length": "^1.2.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/call-bind-apply-helpers": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/call-bound": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmmirror.com/call-bound/-/call-bound-1.0.4.tgz",
+ "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.2",
+ "get-intrinsic": "^1.3.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/callsites": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmmirror.com/callsites/-/callsites-3.1.0.tgz",
+ "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/camelcase-css": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/camelcase-css/-/camelcase-css-2.0.1.tgz",
+ "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/caniuse-lite": {
+ "version": "1.0.30001810",
+ "resolved": "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001810.tgz",
+ "integrity": "sha512-TITQPUkaz+aVk5GL6NhOdwk1aEaNTSDPsGFWrTuhKGtjTF70jL/Oht2W4c6rXUe5fu7Ie19VIahAXHIIiWWNeg==",
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/caniuse-lite"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "CC-BY-4.0"
+ },
+ "node_modules/chai": {
+ "version": "5.3.3",
+ "resolved": "https://registry.npmmirror.com/chai/-/chai-5.3.3.tgz",
+ "integrity": "sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "assertion-error": "^2.0.1",
+ "check-error": "^2.1.1",
+ "deep-eql": "^5.0.1",
+ "loupe": "^3.1.0",
+ "pathval": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/chalk": {
+ "version": "4.1.2",
+ "resolved": "https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz",
+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/chalk?sponsor=1"
+ }
+ },
+ "node_modules/check-error": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmmirror.com/check-error/-/check-error-2.1.3.tgz",
+ "integrity": "sha512-PAJdDJusoxnwm1VwW07VWwUN1sl7smmC3OKggvndJFadxxDRyFJBX/ggnu/KE4kQAB7a3Dp8f/YXC1FlUprWmA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 16"
+ }
+ },
+ "node_modules/chokidar": {
+ "version": "3.6.0",
+ "resolved": "https://registry.npmmirror.com/chokidar/-/chokidar-3.6.0.tgz",
+ "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "anymatch": "~3.1.2",
+ "braces": "~3.0.2",
+ "glob-parent": "~5.1.2",
+ "is-binary-path": "~2.1.0",
+ "is-glob": "~4.0.1",
+ "normalize-path": "~3.0.0",
+ "readdirp": "~3.6.0"
+ },
+ "engines": {
+ "node": ">= 8.10.0"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.2"
+ }
+ },
+ "node_modules/chokidar/node_modules/glob-parent": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-5.1.2.tgz",
+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/client-only": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmmirror.com/client-only/-/client-only-0.0.1.tgz",
+ "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==",
+ "license": "MIT"
+ },
+ "node_modules/color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-name": "~1.1.4"
+ },
+ "engines": {
+ "node": ">=7.0.0"
+ }
+ },
+ "node_modules/color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/commander": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmmirror.com/commander/-/commander-4.1.1.tgz",
+ "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/concat-map": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmmirror.com/concat-map/-/concat-map-0.0.1.tgz",
+ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/cross-spawn": {
+ "version": "7.0.6",
+ "resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-7.0.6.tgz",
+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/cssesc": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmmirror.com/cssesc/-/cssesc-3.0.0.tgz",
+ "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "cssesc": "bin/cssesc"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/csstype": {
+ "version": "3.2.3",
+ "resolved": "https://registry.npmmirror.com/csstype/-/csstype-3.2.3.tgz",
+ "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",
+ "license": "MIT"
+ },
+ "node_modules/damerau-levenshtein": {
+ "version": "1.0.8",
+ "resolved": "https://registry.npmmirror.com/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz",
+ "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==",
+ "dev": true,
+ "license": "BSD-2-Clause"
+ },
+ "node_modules/data-view-buffer": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/data-view-buffer/-/data-view-buffer-1.0.2.tgz",
+ "integrity": "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.3",
+ "es-errors": "^1.3.0",
+ "is-data-view": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/data-view-byte-length": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/data-view-byte-length/-/data-view-byte-length-1.0.2.tgz",
+ "integrity": "sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.3",
+ "es-errors": "^1.3.0",
+ "is-data-view": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/inspect-js"
+ }
+ },
+ "node_modules/data-view-byte-offset": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/data-view-byte-offset/-/data-view-byte-offset-1.0.1.tgz",
+ "integrity": "sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "es-errors": "^1.3.0",
+ "is-data-view": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/debug": {
+ "version": "4.4.3",
+ "resolved": "https://registry.npmmirror.com/debug/-/debug-4.4.3.tgz",
+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/deep-eql": {
+ "version": "5.0.2",
+ "resolved": "https://registry.npmmirror.com/deep-eql/-/deep-eql-5.0.2.tgz",
+ "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/deep-is": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmmirror.com/deep-is/-/deep-is-0.1.4.tgz",
+ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/define-data-property": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmmirror.com/define-data-property/-/define-data-property-1.1.4.tgz",
+ "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es-define-property": "^1.0.0",
+ "es-errors": "^1.3.0",
+ "gopd": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/define-properties": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmmirror.com/define-properties/-/define-properties-1.2.1.tgz",
+ "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "define-data-property": "^1.0.1",
+ "has-property-descriptors": "^1.0.0",
+ "object-keys": "^1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/detect-libc": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmmirror.com/detect-libc/-/detect-libc-2.1.2.tgz",
+ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
+ "license": "Apache-2.0",
+ "optional": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/dexie": {
+ "version": "4.4.5",
+ "resolved": "https://registry.npmmirror.com/dexie/-/dexie-4.4.5.tgz",
+ "integrity": "sha512-wWCHdihT3dmlUSuNhn5mMZDWSpG0suxjAni7YjjiZdzabZcKmy3uNZGZ7AeYYXBoLbpSXX35fikPLkPC44Osiw==",
+ "license": "Apache-2.0"
+ },
+ "node_modules/dexie-react-hooks": {
+ "version": "1.1.7",
+ "resolved": "https://registry.npmmirror.com/dexie-react-hooks/-/dexie-react-hooks-1.1.7.tgz",
+ "integrity": "sha512-Lwv5W0Hk+uOW3kGnsU9GZoR1er1B7WQ5DSdonoNG+focTNeJbHW6vi6nBoX534VKI3/uwHebYzSw1fwY6a7mTw==",
+ "license": "Apache-2.0",
+ "peerDependencies": {
+ "@types/react": ">=16",
+ "dexie": "^3.2 || ^4.0.1-alpha",
+ "react": ">=16"
+ }
+ },
+ "node_modules/didyoumean": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmmirror.com/didyoumean/-/didyoumean-1.2.2.tgz",
+ "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==",
+ "dev": true,
+ "license": "Apache-2.0"
+ },
+ "node_modules/dlv": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmmirror.com/dlv/-/dlv-1.1.3.tgz",
+ "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/doctrine": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmmirror.com/doctrine/-/doctrine-2.1.0.tgz",
+ "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "esutils": "^2.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/dunder-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/dunder-proto/-/dunder-proto-1.0.1.tgz",
+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "gopd": "^1.2.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/electron-to-chromium": {
+ "version": "1.5.418",
+ "resolved": "https://registry.npmmirror.com/electron-to-chromium/-/electron-to-chromium-1.5.418.tgz",
+ "integrity": "sha512-UzS26r3AEbG5wSoGVpJKqwHIU9zwQN7LHdVIThDrJpS0I5KdlXFMEb8543fhc9dVnIIAST6ar8rhwa00AL5MlA==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/emoji-regex": {
+ "version": "9.2.2",
+ "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-9.2.2.tgz",
+ "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/es-abstract": {
+ "version": "1.24.2",
+ "resolved": "https://registry.npmmirror.com/es-abstract/-/es-abstract-1.24.2.tgz",
+ "integrity": "sha512-2FpH9Q5i2RRwyEP1AylXe6nYLR5OhaJTZwmlcP0dL/+JCbgg7yyEo/sEK6HeGZRf3dFpWwThaRHVApXSkW3xeg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "array-buffer-byte-length": "^1.0.2",
+ "arraybuffer.prototype.slice": "^1.0.4",
+ "available-typed-arrays": "^1.0.7",
+ "call-bind": "^1.0.8",
+ "call-bound": "^1.0.4",
+ "data-view-buffer": "^1.0.2",
+ "data-view-byte-length": "^1.0.2",
+ "data-view-byte-offset": "^1.0.1",
+ "es-define-property": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "es-object-atoms": "^1.1.1",
+ "es-set-tostringtag": "^2.1.0",
+ "es-to-primitive": "^1.3.0",
+ "function.prototype.name": "^1.1.8",
+ "get-intrinsic": "^1.3.0",
+ "get-proto": "^1.0.1",
+ "get-symbol-description": "^1.1.0",
+ "globalthis": "^1.0.4",
+ "gopd": "^1.2.0",
+ "has-property-descriptors": "^1.0.2",
+ "has-proto": "^1.2.0",
+ "has-symbols": "^1.1.0",
+ "hasown": "^2.0.2",
+ "internal-slot": "^1.1.0",
+ "is-array-buffer": "^3.0.5",
+ "is-callable": "^1.2.7",
+ "is-data-view": "^1.0.2",
+ "is-negative-zero": "^2.0.3",
+ "is-regex": "^1.2.1",
+ "is-set": "^2.0.3",
+ "is-shared-array-buffer": "^1.0.4",
+ "is-string": "^1.1.1",
+ "is-typed-array": "^1.1.15",
+ "is-weakref": "^1.1.1",
+ "math-intrinsics": "^1.1.0",
+ "object-inspect": "^1.13.4",
+ "object-keys": "^1.1.1",
+ "object.assign": "^4.1.7",
+ "own-keys": "^1.0.1",
+ "regexp.prototype.flags": "^1.5.4",
+ "safe-array-concat": "^1.1.3",
+ "safe-push-apply": "^1.0.0",
+ "safe-regex-test": "^1.1.0",
+ "set-proto": "^1.0.0",
+ "stop-iteration-iterator": "^1.1.0",
+ "string.prototype.trim": "^1.2.10",
+ "string.prototype.trimend": "^1.0.9",
+ "string.prototype.trimstart": "^1.0.8",
+ "typed-array-buffer": "^1.0.3",
+ "typed-array-byte-length": "^1.0.3",
+ "typed-array-byte-offset": "^1.0.4",
+ "typed-array-length": "^1.0.7",
+ "unbox-primitive": "^1.1.0",
+ "which-typed-array": "^1.1.19"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/es-abstract-get": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/es-abstract-get/-/es-abstract-get-1.0.0.tgz",
+ "integrity": "sha512-6PMWXpdhshVvFp+FoWYs1EvG1Nj0tvk0dZM+XcK0xMEM1czRVcP6ohqPWHy6qPagSpC8j4+p89WXlT+xXJs/fg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "es-object-atoms": "^1.1.2",
+ "is-callable": "^1.2.7",
+ "object-inspect": "^1.13.4"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/es-define-property": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/es-define-property/-/es-define-property-1.0.1.tgz",
+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-errors": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmmirror.com/es-errors/-/es-errors-1.3.0.tgz",
+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-iterator-helpers": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmmirror.com/es-iterator-helpers/-/es-iterator-helpers-1.4.0.tgz",
+ "integrity": "sha512-c/A0P0oxkACDc+cKWw8evLXK83oBKgn0qPOqCYT4x9uolpCIJAcYvJC9QYKNDRPsTeGyCrQ326jrvgZWdCdK5Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.9",
+ "call-bound": "^1.0.4",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.24.2",
+ "es-errors": "^1.3.0",
+ "es-set-tostringtag": "^2.1.0",
+ "function-bind": "^1.1.2",
+ "get-intrinsic": "^1.3.0",
+ "globalthis": "^1.0.4",
+ "gopd": "^1.2.0",
+ "has-property-descriptors": "^1.0.2",
+ "has-proto": "^1.2.0",
+ "has-symbols": "^1.1.0",
+ "internal-slot": "^1.1.0",
+ "iterator.prototype": "^1.1.5",
+ "math-intrinsics": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-module-lexer": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmmirror.com/es-module-lexer/-/es-module-lexer-1.7.0.tgz",
+ "integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/es-object-atoms": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmmirror.com/es-object-atoms/-/es-object-atoms-1.1.2.tgz",
+ "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-set-tostringtag": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmmirror.com/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",
+ "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.6",
+ "has-tostringtag": "^1.0.2",
+ "hasown": "^2.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-shim-unscopables": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/es-shim-unscopables/-/es-shim-unscopables-1.1.0.tgz",
+ "integrity": "sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "hasown": "^2.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-to-primitive": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmmirror.com/es-to-primitive/-/es-to-primitive-1.3.4.tgz",
+ "integrity": "sha512-yPDz7wqpg1/mmHLmS3tcfTfbw5f1eryXvyghYBffGdERwe+mV7ZcWzTR8LR17Kvqt3qfPurjlonmnq3MKXIOXw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es-abstract-get": "^1.0.0",
+ "es-define-property": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "is-callable": "^1.2.7",
+ "is-date-object": "^1.1.0",
+ "is-symbol": "^1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/esbuild": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmmirror.com/esbuild/-/esbuild-0.21.5.tgz",
+ "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "bin": {
+ "esbuild": "bin/esbuild"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "optionalDependencies": {
+ "@esbuild/aix-ppc64": "0.21.5",
+ "@esbuild/android-arm": "0.21.5",
+ "@esbuild/android-arm64": "0.21.5",
+ "@esbuild/android-x64": "0.21.5",
+ "@esbuild/darwin-arm64": "0.21.5",
+ "@esbuild/darwin-x64": "0.21.5",
+ "@esbuild/freebsd-arm64": "0.21.5",
+ "@esbuild/freebsd-x64": "0.21.5",
+ "@esbuild/linux-arm": "0.21.5",
+ "@esbuild/linux-arm64": "0.21.5",
+ "@esbuild/linux-ia32": "0.21.5",
+ "@esbuild/linux-loong64": "0.21.5",
+ "@esbuild/linux-mips64el": "0.21.5",
+ "@esbuild/linux-ppc64": "0.21.5",
+ "@esbuild/linux-riscv64": "0.21.5",
+ "@esbuild/linux-s390x": "0.21.5",
+ "@esbuild/linux-x64": "0.21.5",
+ "@esbuild/netbsd-x64": "0.21.5",
+ "@esbuild/openbsd-x64": "0.21.5",
+ "@esbuild/sunos-x64": "0.21.5",
+ "@esbuild/win32-arm64": "0.21.5",
+ "@esbuild/win32-ia32": "0.21.5",
+ "@esbuild/win32-x64": "0.21.5"
+ }
+ },
+ "node_modules/escalade": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmmirror.com/escalade/-/escalade-3.2.0.tgz",
+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/escape-string-regexp": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
+ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/eslint": {
+ "version": "9.39.4",
+ "resolved": "https://registry.npmmirror.com/eslint/-/eslint-9.39.4.tgz",
+ "integrity": "sha512-XoMjdBOwe/esVgEvLmNsD3IRHkm7fbKIUGvrleloJXUZgDHig2IPWNniv+GwjyJXzuNqVjlr5+4yVUZjycJwfQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/eslint-utils": "^4.8.0",
+ "@eslint-community/regexpp": "^4.12.1",
+ "@eslint/config-array": "^0.21.2",
+ "@eslint/config-helpers": "^0.4.2",
+ "@eslint/core": "^0.17.0",
+ "@eslint/eslintrc": "^3.3.5",
+ "@eslint/js": "9.39.4",
+ "@eslint/plugin-kit": "^0.4.1",
+ "@humanfs/node": "^0.16.6",
+ "@humanwhocodes/module-importer": "^1.0.1",
+ "@humanwhocodes/retry": "^0.4.2",
+ "@types/estree": "^1.0.6",
+ "ajv": "^6.14.0",
+ "chalk": "^4.0.0",
+ "cross-spawn": "^7.0.6",
+ "debug": "^4.3.2",
+ "escape-string-regexp": "^4.0.0",
+ "eslint-scope": "^8.4.0",
+ "eslint-visitor-keys": "^4.2.1",
+ "espree": "^10.4.0",
+ "esquery": "^1.5.0",
+ "esutils": "^2.0.2",
+ "fast-deep-equal": "^3.1.3",
+ "file-entry-cache": "^8.0.0",
+ "find-up": "^5.0.0",
+ "glob-parent": "^6.0.2",
+ "ignore": "^5.2.0",
+ "imurmurhash": "^0.1.4",
+ "is-glob": "^4.0.0",
+ "json-stable-stringify-without-jsonify": "^1.0.1",
+ "lodash.merge": "^4.6.2",
+ "minimatch": "^3.1.5",
+ "natural-compare": "^1.4.0",
+ "optionator": "^0.9.3"
+ },
+ "bin": {
+ "eslint": "bin/eslint.js"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://eslint.org/donate"
+ },
+ "peerDependencies": {
+ "jiti": "*"
+ },
+ "peerDependenciesMeta": {
+ "jiti": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/eslint-config-next": {
+ "version": "15.5.25",
+ "resolved": "https://registry.npmmirror.com/eslint-config-next/-/eslint-config-next-15.5.25.tgz",
+ "integrity": "sha512-hB1oClZzRO3vMAeMmBMch0FHNJ4irH74LvQWDEMHkJtG/Us9+SAsg1f5Pvcw9jz4tc8wSGnvbmF050BRAAIbBg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@next/eslint-plugin-next": "15.5.25",
+ "@rushstack/eslint-patch": "^1.10.3",
+ "@typescript-eslint/eslint-plugin": "^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0",
+ "@typescript-eslint/parser": "^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0",
+ "eslint-import-resolver-node": "^0.3.6",
+ "eslint-import-resolver-typescript": "^3.5.2",
+ "eslint-plugin-import": "^2.31.0",
+ "eslint-plugin-jsx-a11y": "^6.10.0",
+ "eslint-plugin-react": "^7.37.0",
+ "eslint-plugin-react-hooks": "^5.0.0"
+ },
+ "peerDependencies": {
+ "eslint": "^7.23.0 || ^8.0.0 || ^9.0.0",
+ "typescript": ">=3.3.1"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/eslint-import-resolver-node": {
+ "version": "0.3.10",
+ "resolved": "https://registry.npmmirror.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.10.tgz",
+ "integrity": "sha512-tRrKqFyCaKict5hOd244sL6EQFNycnMQnBe+j8uqGNXYzsImGbGUU4ibtoaBmv5FLwJwcFJNeg1GeVjQfbMrDQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^3.2.7",
+ "is-core-module": "^2.16.1",
+ "resolve": "^2.0.0-next.6"
+ }
+ },
+ "node_modules/eslint-import-resolver-node/node_modules/debug": {
+ "version": "3.2.7",
+ "resolved": "https://registry.npmmirror.com/debug/-/debug-3.2.7.tgz",
+ "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.1"
+ }
+ },
+ "node_modules/eslint-import-resolver-node/node_modules/resolve": {
+ "version": "2.0.0-next.7",
+ "resolved": "https://registry.npmmirror.com/resolve/-/resolve-2.0.0-next.7.tgz",
+ "integrity": "sha512-tqt+NBWwyaMgw3zDsnygx4CByWjQEJHOPMdslYhppaQSJUtL/D4JO9CcBBlhPoI8lz9oJIDXkwXfhF4aWqP8xQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "is-core-module": "^2.16.2",
+ "node-exports-info": "^1.6.0",
+ "object-keys": "^1.1.1",
+ "path-parse": "^1.0.7",
+ "supports-preserve-symlinks-flag": "^1.0.0"
+ },
+ "bin": {
+ "resolve": "bin/resolve"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/eslint-import-resolver-typescript": {
+ "version": "3.10.1",
+ "resolved": "https://registry.npmmirror.com/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.10.1.tgz",
+ "integrity": "sha512-A1rHYb06zjMGAxdLSkN2fXPBwuSaQ0iO5M/hdyS0Ajj1VBaRp0sPD3dn1FhME3c/JluGFbwSxyCfqdSbtQLAHQ==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "@nolyfill/is-core-module": "1.0.39",
+ "debug": "^4.4.0",
+ "get-tsconfig": "^4.10.0",
+ "is-bun-module": "^2.0.0",
+ "stable-hash": "^0.0.5",
+ "tinyglobby": "^0.2.13",
+ "unrs-resolver": "^1.6.2"
+ },
+ "engines": {
+ "node": "^14.18.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint-import-resolver-typescript"
+ },
+ "peerDependencies": {
+ "eslint": "*",
+ "eslint-plugin-import": "*",
+ "eslint-plugin-import-x": "*"
+ },
+ "peerDependenciesMeta": {
+ "eslint-plugin-import": {
+ "optional": true
+ },
+ "eslint-plugin-import-x": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/eslint-module-utils": {
+ "version": "2.14.0",
+ "resolved": "https://registry.npmmirror.com/eslint-module-utils/-/eslint-module-utils-2.14.0.tgz",
+ "integrity": "sha512-W2WCRZ9Dqntd+2u8jJcVMV2PKulc6RdLgUUoh/yQr3uB6lo/ZOeGx11sv60/8S4QFFKNslAlWhr9u0Ef7ZW6Ig==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^3.2.7"
+ },
+ "engines": {
+ "node": ">=4"
+ },
+ "peerDependenciesMeta": {
+ "eslint": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/eslint-module-utils/node_modules/debug": {
+ "version": "3.2.7",
+ "resolved": "https://registry.npmmirror.com/debug/-/debug-3.2.7.tgz",
+ "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.1"
+ }
+ },
+ "node_modules/eslint-plugin-import": {
+ "version": "2.32.0",
+ "resolved": "https://registry.npmmirror.com/eslint-plugin-import/-/eslint-plugin-import-2.32.0.tgz",
+ "integrity": "sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@rtsao/scc": "^1.1.0",
+ "array-includes": "^3.1.9",
+ "array.prototype.findlastindex": "^1.2.6",
+ "array.prototype.flat": "^1.3.3",
+ "array.prototype.flatmap": "^1.3.3",
+ "debug": "^3.2.7",
+ "doctrine": "^2.1.0",
+ "eslint-import-resolver-node": "^0.3.9",
+ "eslint-module-utils": "^2.12.1",
+ "hasown": "^2.0.2",
+ "is-core-module": "^2.16.1",
+ "is-glob": "^4.0.3",
+ "minimatch": "^3.1.2",
+ "object.fromentries": "^2.0.8",
+ "object.groupby": "^1.0.3",
+ "object.values": "^1.2.1",
+ "semver": "^6.3.1",
+ "string.prototype.trimend": "^1.0.9",
+ "tsconfig-paths": "^3.15.0"
+ },
+ "engines": {
+ "node": ">=4"
+ },
+ "peerDependencies": {
+ "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9"
+ }
+ },
+ "node_modules/eslint-plugin-import/node_modules/debug": {
+ "version": "3.2.7",
+ "resolved": "https://registry.npmmirror.com/debug/-/debug-3.2.7.tgz",
+ "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.1"
+ }
+ },
+ "node_modules/eslint-plugin-import/node_modules/semver": {
+ "version": "6.3.1",
+ "resolved": "https://registry.npmmirror.com/semver/-/semver-6.3.1.tgz",
+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/eslint-plugin-jsx-a11y": {
+ "version": "6.10.2",
+ "resolved": "https://registry.npmmirror.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.10.2.tgz",
+ "integrity": "sha512-scB3nz4WmG75pV8+3eRUQOHZlNSUhFNq37xnpgRkCCELU3XMvXAxLk1eqWWyE22Ki4Q01Fnsw9BA3cJHDPgn2Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "aria-query": "^5.3.2",
+ "array-includes": "^3.1.8",
+ "array.prototype.flatmap": "^1.3.2",
+ "ast-types-flow": "^0.0.8",
+ "axe-core": "^4.10.0",
+ "axobject-query": "^4.1.0",
+ "damerau-levenshtein": "^1.0.8",
+ "emoji-regex": "^9.2.2",
+ "hasown": "^2.0.2",
+ "jsx-ast-utils": "^3.3.5",
+ "language-tags": "^1.0.9",
+ "minimatch": "^3.1.2",
+ "object.fromentries": "^2.0.8",
+ "safe-regex-test": "^1.0.3",
+ "string.prototype.includes": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=4.0"
+ },
+ "peerDependencies": {
+ "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9"
+ }
+ },
+ "node_modules/eslint-plugin-react": {
+ "version": "7.37.5",
+ "resolved": "https://registry.npmmirror.com/eslint-plugin-react/-/eslint-plugin-react-7.37.5.tgz",
+ "integrity": "sha512-Qteup0SqU15kdocexFNAJMvCJEfa2xUKNV4CC1xsVMrIIqEy3SQ/rqyxCWNzfrd3/ldy6HMlD2e0JDVpDg2qIA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "array-includes": "^3.1.8",
+ "array.prototype.findlast": "^1.2.5",
+ "array.prototype.flatmap": "^1.3.3",
+ "array.prototype.tosorted": "^1.1.4",
+ "doctrine": "^2.1.0",
+ "es-iterator-helpers": "^1.2.1",
+ "estraverse": "^5.3.0",
+ "hasown": "^2.0.2",
+ "jsx-ast-utils": "^2.4.1 || ^3.0.0",
+ "minimatch": "^3.1.2",
+ "object.entries": "^1.1.9",
+ "object.fromentries": "^2.0.8",
+ "object.values": "^1.2.1",
+ "prop-types": "^15.8.1",
+ "resolve": "^2.0.0-next.5",
+ "semver": "^6.3.1",
+ "string.prototype.matchall": "^4.0.12",
+ "string.prototype.repeat": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ },
+ "peerDependencies": {
+ "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7"
+ }
+ },
+ "node_modules/eslint-plugin-react-hooks": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmmirror.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-5.2.0.tgz",
+ "integrity": "sha512-+f15FfK64YQwZdJNELETdn5ibXEUQmW1DZL6KXhNnc2heoy/sg9VJJeT7n8TlMWouzWqSWavFkIhHyIbIAEapg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "peerDependencies": {
+ "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0"
+ }
+ },
+ "node_modules/eslint-plugin-react/node_modules/resolve": {
+ "version": "2.0.0-next.7",
+ "resolved": "https://registry.npmmirror.com/resolve/-/resolve-2.0.0-next.7.tgz",
+ "integrity": "sha512-tqt+NBWwyaMgw3zDsnygx4CByWjQEJHOPMdslYhppaQSJUtL/D4JO9CcBBlhPoI8lz9oJIDXkwXfhF4aWqP8xQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "is-core-module": "^2.16.2",
+ "node-exports-info": "^1.6.0",
+ "object-keys": "^1.1.1",
+ "path-parse": "^1.0.7",
+ "supports-preserve-symlinks-flag": "^1.0.0"
+ },
+ "bin": {
+ "resolve": "bin/resolve"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/eslint-plugin-react/node_modules/semver": {
+ "version": "6.3.1",
+ "resolved": "https://registry.npmmirror.com/semver/-/semver-6.3.1.tgz",
+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/eslint-scope": {
+ "version": "8.4.0",
+ "resolved": "https://registry.npmmirror.com/eslint-scope/-/eslint-scope-8.4.0.tgz",
+ "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "esrecurse": "^4.3.0",
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/eslint-visitor-keys": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz",
+ "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/espree": {
+ "version": "10.4.0",
+ "resolved": "https://registry.npmmirror.com/espree/-/espree-10.4.0.tgz",
+ "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "acorn": "^8.15.0",
+ "acorn-jsx": "^5.3.2",
+ "eslint-visitor-keys": "^4.2.1"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/esquery": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmmirror.com/esquery/-/esquery-1.7.0.tgz",
+ "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "estraverse": "^5.1.0"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/esrecurse": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmmirror.com/esrecurse/-/esrecurse-4.3.0.tgz",
+ "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/estraverse": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmmirror.com/estraverse/-/estraverse-5.3.0.tgz",
+ "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/estree-walker": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmmirror.com/estree-walker/-/estree-walker-3.0.3.tgz",
+ "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree": "^1.0.0"
+ }
+ },
+ "node_modules/esutils": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmmirror.com/esutils/-/esutils-2.0.3.tgz",
+ "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/expect-type": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmmirror.com/expect-type/-/expect-type-1.4.0.tgz",
+ "integrity": "sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=12.0.0"
+ }
+ },
+ "node_modules/fast-deep-equal": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmmirror.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fast-glob": {
+ "version": "3.3.3",
+ "resolved": "https://registry.npmmirror.com/fast-glob/-/fast-glob-3.3.3.tgz",
+ "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@nodelib/fs.stat": "^2.0.2",
+ "@nodelib/fs.walk": "^1.2.3",
+ "glob-parent": "^5.1.2",
+ "merge2": "^1.3.0",
+ "micromatch": "^4.0.8"
+ },
+ "engines": {
+ "node": ">=8.6.0"
+ }
+ },
+ "node_modules/fast-glob/node_modules/glob-parent": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-5.1.2.tgz",
+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/fast-json-stable-stringify": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmmirror.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
+ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fast-levenshtein": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmmirror.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
+ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fastq": {
+ "version": "1.20.3",
+ "resolved": "https://registry.npmmirror.com/fastq/-/fastq-1.20.3.tgz",
+ "integrity": "sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "reusify": "^1.0.4"
+ }
+ },
+ "node_modules/file-entry-cache": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmmirror.com/file-entry-cache/-/file-entry-cache-8.0.0.tgz",
+ "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "flat-cache": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/fill-range": {
+ "version": "7.1.1",
+ "resolved": "https://registry.npmmirror.com/fill-range/-/fill-range-7.1.1.tgz",
+ "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "to-regex-range": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/find-up": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmmirror.com/find-up/-/find-up-5.0.0.tgz",
+ "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "locate-path": "^6.0.0",
+ "path-exists": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/flat-cache": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmmirror.com/flat-cache/-/flat-cache-4.0.1.tgz",
+ "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "flatted": "^3.2.9",
+ "keyv": "^4.5.4"
+ },
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/flatted": {
+ "version": "3.4.4",
+ "resolved": "https://registry.npmmirror.com/flatted/-/flatted-3.4.4.tgz",
+ "integrity": "sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/for-each": {
+ "version": "0.3.5",
+ "resolved": "https://registry.npmmirror.com/for-each/-/for-each-0.3.5.tgz",
+ "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-callable": "^1.2.7"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/fraction.js": {
+ "version": "5.3.4",
+ "resolved": "https://registry.npmmirror.com/fraction.js/-/fraction.js-5.3.4.tgz",
+ "integrity": "sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "*"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/rawify"
+ }
+ },
+ "node_modules/fsevents": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmmirror.com/fsevents/-/fsevents-2.3.3.tgz",
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ }
+ },
+ "node_modules/function-bind": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.2.tgz",
+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/function.prototype.name": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmmirror.com/function.prototype.name/-/function.prototype.name-1.2.0.tgz",
+ "integrity": "sha512-jObKIik1P2QjPHP5nz5BaOtUlfgS0fWo8IUByNXkM+o+02sJOi94em77GwJKQSJ3gfPHdgzLNrHc1uokV4P/ew==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.9",
+ "call-bound": "^1.0.4",
+ "es-define-property": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "functions-have-names": "^1.2.3",
+ "has-property-descriptors": "^1.0.2",
+ "hasown": "^2.0.4",
+ "is-callable": "^1.2.7",
+ "is-document.all": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/functions-have-names": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmmirror.com/functions-have-names/-/functions-have-names-1.2.3.tgz",
+ "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/generator-function": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/generator-function/-/generator-function-2.0.1.tgz",
+ "integrity": "sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/get-intrinsic": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmmirror.com/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.2",
+ "es-define-property": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "es-object-atoms": "^1.1.1",
+ "function-bind": "^1.1.2",
+ "get-proto": "^1.0.1",
+ "gopd": "^1.2.0",
+ "has-symbols": "^1.1.0",
+ "hasown": "^2.0.2",
+ "math-intrinsics": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/get-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/get-proto/-/get-proto-1.0.1.tgz",
+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "dunder-proto": "^1.0.1",
+ "es-object-atoms": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/get-symbol-description": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/get-symbol-description/-/get-symbol-description-1.1.0.tgz",
+ "integrity": "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==",
"dev": true,
"license": "MIT",
"dependencies": {
- "tinyspy": "^3.0.2"
+ "call-bound": "^1.0.3",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.6"
+ },
+ "engines": {
+ "node": ">= 0.4"
},
"funding": {
- "url": "https://opencollective.com/vitest"
+ "url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/@vitest/utils": {
- "version": "2.1.9",
- "resolved": "https://registry.npmmirror.com/@vitest/utils/-/utils-2.1.9.tgz",
- "integrity": "sha512-v0psaMSkNJ3A2NMrUEHFRzJtDPFn+/VWZ5WxImB21T9fjucJRmS7xCS3ppEnARb9y11OAzaD+P2Ps+b+BGX5iQ==",
+ "node_modules/get-tsconfig": {
+ "version": "4.14.3",
+ "resolved": "https://registry.npmmirror.com/get-tsconfig/-/get-tsconfig-4.14.3.tgz",
+ "integrity": "sha512-++QEw4DIY7WGoukz+/+A/8dGYPT9l9yIadnmSgZ8Rjr3YVSVDipQSO9CdnJo9ePqFqUUqh+wk9uIaoiAwsiPkA==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@vitest/pretty-format": "2.1.9",
- "loupe": "^3.1.2",
- "tinyrainbow": "^1.2.0"
+ "resolve-pkg-maps": "^1.0.0"
},
"funding": {
- "url": "https://opencollective.com/vitest"
+ "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1"
}
},
- "node_modules/any-promise": {
- "version": "1.3.0",
- "resolved": "https://registry.npmmirror.com/any-promise/-/any-promise-1.3.0.tgz",
- "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/anymatch": {
- "version": "3.1.3",
- "resolved": "https://registry.npmmirror.com/anymatch/-/anymatch-3.1.3.tgz",
- "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",
+ "node_modules/glob-parent": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-6.0.2.tgz",
+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
"dev": true,
"license": "ISC",
"dependencies": {
- "normalize-path": "^3.0.0",
- "picomatch": "^2.0.4"
+ "is-glob": "^4.0.3"
},
"engines": {
- "node": ">= 8"
- }
- },
- "node_modules/arg": {
- "version": "5.0.2",
- "resolved": "https://registry.npmmirror.com/arg/-/arg-5.0.2.tgz",
- "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/artplayer": {
- "version": "5.4.0",
- "resolved": "https://registry.npmmirror.com/artplayer/-/artplayer-5.4.0.tgz",
- "integrity": "sha512-2B+plbx8N2yNsjK4nJU3+EOG8TULm1LRZk/QPkWRAMEX2Ee/MSnZG/WJYz8kcoZxZuLKcQ3uXifqLuPxZOH29A==",
- "license": "MIT",
- "dependencies": {
- "option-validator": "^2.0.6"
+ "node": ">=10.13.0"
}
},
- "node_modules/assertion-error": {
- "version": "2.0.1",
- "resolved": "https://registry.npmmirror.com/assertion-error/-/assertion-error-2.0.1.tgz",
- "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==",
+ "node_modules/globals": {
+ "version": "14.0.0",
+ "resolved": "https://registry.npmmirror.com/globals/-/globals-14.0.0.tgz",
+ "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==",
"dev": true,
"license": "MIT",
"engines": {
- "node": ">=12"
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
}
},
- "node_modules/autoprefixer": {
- "version": "10.5.4",
- "resolved": "https://registry.npmmirror.com/autoprefixer/-/autoprefixer-10.5.4.tgz",
- "integrity": "sha512-MaU0U/za7N3r6brxD4YB/l4NSrFzLPlANv6wEuQVaIPlD3L4W9rFcQPbL/EilY9BHhHvhfcz3gInDLrEtWT4EA==",
+ "node_modules/globalthis": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmmirror.com/globalthis/-/globalthis-1.0.4.tgz",
+ "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==",
"dev": true,
- "funding": [
- {
- "type": "opencollective",
- "url": "https://opencollective.com/postcss/"
- },
- {
- "type": "tidelift",
- "url": "https://tidelift.com/funding/github/npm/autoprefixer"
- },
- {
- "type": "github",
- "url": "https://github.com/sponsors/ai"
- }
- ],
"license": "MIT",
"dependencies": {
- "browserslist": "^4.28.6",
- "caniuse-lite": "^1.0.30001806",
- "fraction.js": "^5.3.4",
- "picocolors": "^1.1.1",
- "postcss-value-parser": "^4.2.0"
- },
- "bin": {
- "autoprefixer": "bin/autoprefixer"
+ "define-properties": "^1.2.1",
+ "gopd": "^1.0.1"
},
"engines": {
- "node": "^10 || ^12 || >=14"
+ "node": ">= 0.4"
},
- "peerDependencies": {
- "postcss": "^8.1.0"
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/baseline-browser-mapping": {
- "version": "2.11.20",
- "resolved": "https://registry.npmmirror.com/baseline-browser-mapping/-/baseline-browser-mapping-2.11.20.tgz",
- "integrity": "sha512-H0ulySigv6icDJ1F7SjtdCD6PrhTpdYCmP0CactWy1+ekh0AFd0o1Wn5T8b+hnTmdBx19u9yhL6wvCylXMY7zw==",
+ "node_modules/gopd": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmmirror.com/gopd/-/gopd-1.2.0.tgz",
+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
"dev": true,
- "license": "Apache-2.0",
- "bin": {
- "baseline-browser-mapping": "dist/cli.cjs"
- },
+ "license": "MIT",
"engines": {
- "node": ">=6.0.0"
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/binary-extensions": {
- "version": "2.3.0",
- "resolved": "https://registry.npmmirror.com/binary-extensions/-/binary-extensions-2.3.0.tgz",
- "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==",
+ "node_modules/has-bigints": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/has-bigints/-/has-bigints-1.1.0.tgz",
+ "integrity": "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==",
"dev": true,
"license": "MIT",
"engines": {
- "node": ">=8"
+ "node": ">= 0.4"
},
"funding": {
- "url": "https://github.com/sponsors/sindresorhus"
+ "url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/braces": {
- "version": "3.0.3",
- "resolved": "https://registry.npmmirror.com/braces/-/braces-3.0.3.tgz",
- "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
+ "node_modules/has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"license": "MIT",
- "dependencies": {
- "fill-range": "^7.1.1"
- },
"engines": {
"node": ">=8"
}
},
- "node_modules/browserslist": {
- "version": "4.28.8",
- "resolved": "https://registry.npmmirror.com/browserslist/-/browserslist-4.28.8.tgz",
- "integrity": "sha512-V2NpofLblG64mfOtSgDhOJESZEGogzDMBv/q+W6oc4LXWP/q75eOXoOaaOu1EOadB9U4Bwx/e0yzbvwKH8zalA==",
+ "node_modules/has-property-descriptors": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",
+ "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",
"dev": true,
- "funding": [
- {
- "type": "opencollective",
- "url": "https://opencollective.com/browserslist"
- },
- {
- "type": "tidelift",
- "url": "https://tidelift.com/funding/github/npm/browserslist"
- },
- {
- "type": "github",
- "url": "https://github.com/sponsors/ai"
- }
- ],
"license": "MIT",
"dependencies": {
- "baseline-browser-mapping": "^2.11.12",
- "caniuse-lite": "^1.0.30001809",
- "electron-to-chromium": "^1.5.402",
- "node-releases": "^2.0.53",
- "update-browserslist-db": "^1.3.0"
+ "es-define-property": "^1.0.0"
},
- "bin": {
- "browserslist": "cli.js"
- },
- "engines": {
- "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/cac": {
- "version": "6.7.14",
- "resolved": "https://registry.npmmirror.com/cac/-/cac-6.7.14.tgz",
- "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==",
+ "node_modules/has-proto": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmmirror.com/has-proto/-/has-proto-1.2.0.tgz",
+ "integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==",
"dev": true,
"license": "MIT",
+ "dependencies": {
+ "dunder-proto": "^1.0.0"
+ },
"engines": {
- "node": ">=8"
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/camelcase-css": {
- "version": "2.0.1",
- "resolved": "https://registry.npmmirror.com/camelcase-css/-/camelcase-css-2.0.1.tgz",
- "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==",
+ "node_modules/has-symbols": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/has-symbols/-/has-symbols-1.1.0.tgz",
+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
"dev": true,
"license": "MIT",
"engines": {
- "node": ">= 6"
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/caniuse-lite": {
- "version": "1.0.30001810",
- "resolved": "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001810.tgz",
- "integrity": "sha512-TITQPUkaz+aVk5GL6NhOdwk1aEaNTSDPsGFWrTuhKGtjTF70jL/Oht2W4c6rXUe5fu7Ie19VIahAXHIIiWWNeg==",
- "funding": [
- {
- "type": "opencollective",
- "url": "https://opencollective.com/browserslist"
- },
- {
- "type": "tidelift",
- "url": "https://tidelift.com/funding/github/npm/caniuse-lite"
- },
- {
- "type": "github",
- "url": "https://github.com/sponsors/ai"
- }
- ],
- "license": "CC-BY-4.0"
- },
- "node_modules/chai": {
- "version": "5.3.3",
- "resolved": "https://registry.npmmirror.com/chai/-/chai-5.3.3.tgz",
- "integrity": "sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==",
+ "node_modules/has-tostringtag": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
+ "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
"dev": true,
"license": "MIT",
"dependencies": {
- "assertion-error": "^2.0.1",
- "check-error": "^2.1.1",
- "deep-eql": "^5.0.1",
- "loupe": "^3.1.0",
- "pathval": "^2.0.0"
+ "has-symbols": "^1.0.3"
},
"engines": {
- "node": ">=18"
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/check-error": {
- "version": "2.1.3",
- "resolved": "https://registry.npmmirror.com/check-error/-/check-error-2.1.3.tgz",
- "integrity": "sha512-PAJdDJusoxnwm1VwW07VWwUN1sl7smmC3OKggvndJFadxxDRyFJBX/ggnu/KE4kQAB7a3Dp8f/YXC1FlUprWmA==",
+ "node_modules/hasown": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmmirror.com/hasown/-/hasown-2.0.4.tgz",
+ "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==",
"dev": true,
"license": "MIT",
+ "dependencies": {
+ "function-bind": "^1.1.2"
+ },
"engines": {
- "node": ">= 16"
+ "node": ">= 0.4"
}
},
- "node_modules/chokidar": {
- "version": "3.6.0",
- "resolved": "https://registry.npmmirror.com/chokidar/-/chokidar-3.6.0.tgz",
- "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",
+ "node_modules/hls.js": {
+ "version": "1.7.1",
+ "resolved": "https://registry.npmmirror.com/hls.js/-/hls.js-1.7.1.tgz",
+ "integrity": "sha512-DlzIkeBAS9IIQ432k3BUf3HlwbsR0+trB1i2lDdN2gUkNkrehFurh0/48M5c1/EjlDkdGng1gwZIpwyPxvdZ/g==",
+ "license": "Apache-2.0"
+ },
+ "node_modules/ignore": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmmirror.com/ignore/-/ignore-5.3.2.tgz",
+ "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",
"dev": true,
"license": "MIT",
- "dependencies": {
- "anymatch": "~3.1.2",
- "braces": "~3.0.2",
- "glob-parent": "~5.1.2",
- "is-binary-path": "~2.1.0",
- "is-glob": "~4.0.1",
- "normalize-path": "~3.0.0",
- "readdirp": "~3.6.0"
- },
"engines": {
- "node": ">= 8.10.0"
- },
- "funding": {
- "url": "https://paulmillr.com/funding/"
- },
- "optionalDependencies": {
- "fsevents": "~2.3.2"
+ "node": ">= 4"
}
},
- "node_modules/chokidar/node_modules/glob-parent": {
- "version": "5.1.2",
- "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-5.1.2.tgz",
- "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+ "node_modules/import-fresh": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmmirror.com/import-fresh/-/import-fresh-3.3.1.tgz",
+ "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==",
"dev": true,
- "license": "ISC",
+ "license": "MIT",
"dependencies": {
- "is-glob": "^4.0.1"
+ "parent-module": "^1.0.0",
+ "resolve-from": "^4.0.0"
},
"engines": {
- "node": ">= 6"
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
}
},
- "node_modules/client-only": {
- "version": "0.0.1",
- "resolved": "https://registry.npmmirror.com/client-only/-/client-only-0.0.1.tgz",
- "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==",
- "license": "MIT"
- },
- "node_modules/commander": {
- "version": "4.1.1",
- "resolved": "https://registry.npmmirror.com/commander/-/commander-4.1.1.tgz",
- "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==",
+ "node_modules/imurmurhash": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmmirror.com/imurmurhash/-/imurmurhash-0.1.4.tgz",
+ "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
"dev": true,
"license": "MIT",
"engines": {
- "node": ">= 6"
+ "node": ">=0.8.19"
}
},
- "node_modules/cssesc": {
- "version": "3.0.0",
- "resolved": "https://registry.npmmirror.com/cssesc/-/cssesc-3.0.0.tgz",
- "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",
+ "node_modules/internal-slot": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/internal-slot/-/internal-slot-1.1.0.tgz",
+ "integrity": "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==",
"dev": true,
"license": "MIT",
- "bin": {
- "cssesc": "bin/cssesc"
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "hasown": "^2.0.2",
+ "side-channel": "^1.1.0"
},
"engines": {
- "node": ">=4"
+ "node": ">= 0.4"
}
},
- "node_modules/csstype": {
- "version": "3.2.3",
- "resolved": "https://registry.npmmirror.com/csstype/-/csstype-3.2.3.tgz",
- "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",
- "license": "MIT"
+ "node_modules/is-array-buffer": {
+ "version": "3.0.5",
+ "resolved": "https://registry.npmmirror.com/is-array-buffer/-/is-array-buffer-3.0.5.tgz",
+ "integrity": "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.8",
+ "call-bound": "^1.0.3",
+ "get-intrinsic": "^1.2.6"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
},
- "node_modules/debug": {
- "version": "4.4.3",
- "resolved": "https://registry.npmmirror.com/debug/-/debug-4.4.3.tgz",
- "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
+ "node_modules/is-async-function": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmmirror.com/is-async-function/-/is-async-function-2.1.1.tgz",
+ "integrity": "sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==",
"dev": true,
"license": "MIT",
"dependencies": {
- "ms": "^2.1.3"
+ "async-function": "^1.0.0",
+ "call-bound": "^1.0.3",
+ "get-proto": "^1.0.1",
+ "has-tostringtag": "^1.0.2",
+ "safe-regex-test": "^1.1.0"
},
"engines": {
- "node": ">=6.0"
+ "node": ">= 0.4"
},
- "peerDependenciesMeta": {
- "supports-color": {
- "optional": true
- }
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/deep-eql": {
- "version": "5.0.2",
- "resolved": "https://registry.npmmirror.com/deep-eql/-/deep-eql-5.0.2.tgz",
- "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==",
+ "node_modules/is-bigint": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/is-bigint/-/is-bigint-1.1.0.tgz",
+ "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==",
"dev": true,
"license": "MIT",
+ "dependencies": {
+ "has-bigints": "^1.0.2"
+ },
"engines": {
- "node": ">=6"
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/detect-libc": {
- "version": "2.1.2",
- "resolved": "https://registry.npmmirror.com/detect-libc/-/detect-libc-2.1.2.tgz",
- "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
- "license": "Apache-2.0",
- "optional": true,
+ "node_modules/is-binary-path": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmmirror.com/is-binary-path/-/is-binary-path-2.1.0.tgz",
+ "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "binary-extensions": "^2.0.0"
+ },
"engines": {
"node": ">=8"
}
},
- "node_modules/dexie": {
- "version": "4.4.5",
- "resolved": "https://registry.npmmirror.com/dexie/-/dexie-4.4.5.tgz",
- "integrity": "sha512-wWCHdihT3dmlUSuNhn5mMZDWSpG0suxjAni7YjjiZdzabZcKmy3uNZGZ7AeYYXBoLbpSXX35fikPLkPC44Osiw==",
- "license": "Apache-2.0"
- },
- "node_modules/dexie-react-hooks": {
- "version": "1.1.7",
- "resolved": "https://registry.npmmirror.com/dexie-react-hooks/-/dexie-react-hooks-1.1.7.tgz",
- "integrity": "sha512-Lwv5W0Hk+uOW3kGnsU9GZoR1er1B7WQ5DSdonoNG+focTNeJbHW6vi6nBoX534VKI3/uwHebYzSw1fwY6a7mTw==",
- "license": "Apache-2.0",
- "peerDependencies": {
- "@types/react": ">=16",
- "dexie": "^3.2 || ^4.0.1-alpha",
- "react": ">=16"
+ "node_modules/is-boolean-object": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmmirror.com/is-boolean-object/-/is-boolean-object-1.2.2.tgz",
+ "integrity": "sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.3",
+ "has-tostringtag": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/didyoumean": {
- "version": "1.2.2",
- "resolved": "https://registry.npmmirror.com/didyoumean/-/didyoumean-1.2.2.tgz",
- "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==",
+ "node_modules/is-bun-module": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmmirror.com/is-bun-module/-/is-bun-module-2.0.0.tgz",
+ "integrity": "sha512-gNCGbnnnnFAUGKeZ9PdbyeGYJqewpmc2aKHUEMO5nQPWU9lOmv7jcmQIv+qHD8fXW6W7qfuCwX4rY9LNRjXrkQ==",
"dev": true,
- "license": "Apache-2.0"
+ "license": "MIT",
+ "dependencies": {
+ "semver": "^7.7.1"
+ }
},
- "node_modules/dlv": {
- "version": "1.1.3",
- "resolved": "https://registry.npmmirror.com/dlv/-/dlv-1.1.3.tgz",
- "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==",
+ "node_modules/is-callable": {
+ "version": "1.2.7",
+ "resolved": "https://registry.npmmirror.com/is-callable/-/is-callable-1.2.7.tgz",
+ "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==",
"dev": true,
- "license": "MIT"
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
},
- "node_modules/electron-to-chromium": {
- "version": "1.5.418",
- "resolved": "https://registry.npmmirror.com/electron-to-chromium/-/electron-to-chromium-1.5.418.tgz",
- "integrity": "sha512-UzS26r3AEbG5wSoGVpJKqwHIU9zwQN7LHdVIThDrJpS0I5KdlXFMEb8543fhc9dVnIIAST6ar8rhwa00AL5MlA==",
+ "node_modules/is-core-module": {
+ "version": "2.16.2",
+ "resolved": "https://registry.npmmirror.com/is-core-module/-/is-core-module-2.16.2.tgz",
+ "integrity": "sha512-evOr8xfXKxE6qSR0hSXL2r3sd7ALj8+7jQEUvPYcm5sgZFdJ+AYzT6yNmJenvIYQBgIGwfwz08sL8zoL7yq2BA==",
"dev": true,
- "license": "ISC"
+ "license": "MIT",
+ "dependencies": {
+ "hasown": "^2.0.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
},
- "node_modules/es-errors": {
- "version": "1.3.0",
- "resolved": "https://registry.npmmirror.com/es-errors/-/es-errors-1.3.0.tgz",
- "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
+ "node_modules/is-data-view": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/is-data-view/-/is-data-view-1.0.2.tgz",
+ "integrity": "sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==",
"dev": true,
"license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "get-intrinsic": "^1.2.6",
+ "is-typed-array": "^1.1.13"
+ },
"engines": {
"node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/es-module-lexer": {
- "version": "1.7.0",
- "resolved": "https://registry.npmmirror.com/es-module-lexer/-/es-module-lexer-1.7.0.tgz",
- "integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==",
+ "node_modules/is-date-object": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/is-date-object/-/is-date-object-1.1.0.tgz",
+ "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==",
"dev": true,
- "license": "MIT"
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "has-tostringtag": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
},
- "node_modules/esbuild": {
- "version": "0.21.5",
- "resolved": "https://registry.npmmirror.com/esbuild/-/esbuild-0.21.5.tgz",
- "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==",
+ "node_modules/is-document.all": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/is-document.all/-/is-document.all-1.0.0.tgz",
+ "integrity": "sha512-+XSoyS05OdBbhFuELhgTCpFNHkpBOJqtsZfUFFpe5QTw+9Sjbh8zitxhQkYAo6wV7e1Vb8cAPvpCk9jGam/82g==",
"dev": true,
- "hasInstallScript": true,
"license": "MIT",
- "bin": {
- "esbuild": "bin/esbuild"
+ "dependencies": {
+ "call-bound": "^1.0.4"
},
"engines": {
- "node": ">=12"
+ "node": ">= 0.4"
},
- "optionalDependencies": {
- "@esbuild/aix-ppc64": "0.21.5",
- "@esbuild/android-arm": "0.21.5",
- "@esbuild/android-arm64": "0.21.5",
- "@esbuild/android-x64": "0.21.5",
- "@esbuild/darwin-arm64": "0.21.5",
- "@esbuild/darwin-x64": "0.21.5",
- "@esbuild/freebsd-arm64": "0.21.5",
- "@esbuild/freebsd-x64": "0.21.5",
- "@esbuild/linux-arm": "0.21.5",
- "@esbuild/linux-arm64": "0.21.5",
- "@esbuild/linux-ia32": "0.21.5",
- "@esbuild/linux-loong64": "0.21.5",
- "@esbuild/linux-mips64el": "0.21.5",
- "@esbuild/linux-ppc64": "0.21.5",
- "@esbuild/linux-riscv64": "0.21.5",
- "@esbuild/linux-s390x": "0.21.5",
- "@esbuild/linux-x64": "0.21.5",
- "@esbuild/netbsd-x64": "0.21.5",
- "@esbuild/openbsd-x64": "0.21.5",
- "@esbuild/sunos-x64": "0.21.5",
- "@esbuild/win32-arm64": "0.21.5",
- "@esbuild/win32-ia32": "0.21.5",
- "@esbuild/win32-x64": "0.21.5"
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/escalade": {
- "version": "3.2.0",
- "resolved": "https://registry.npmmirror.com/escalade/-/escalade-3.2.0.tgz",
- "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
+ "node_modules/is-extglob": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmmirror.com/is-extglob/-/is-extglob-2.1.1.tgz",
+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
"dev": true,
"license": "MIT",
"engines": {
- "node": ">=6"
+ "node": ">=0.10.0"
}
},
- "node_modules/estree-walker": {
- "version": "3.0.3",
- "resolved": "https://registry.npmmirror.com/estree-walker/-/estree-walker-3.0.3.tgz",
- "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",
+ "node_modules/is-finalizationregistry": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmmirror.com/is-finalizationregistry/-/is-finalizationregistry-1.1.1.tgz",
+ "integrity": "sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@types/estree": "^1.0.0"
+ "call-bound": "^1.0.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/expect-type": {
- "version": "1.4.0",
- "resolved": "https://registry.npmmirror.com/expect-type/-/expect-type-1.4.0.tgz",
- "integrity": "sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==",
+ "node_modules/is-generator-function": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmmirror.com/is-generator-function/-/is-generator-function-1.1.2.tgz",
+ "integrity": "sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA==",
"dev": true,
- "license": "Apache-2.0",
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.4",
+ "generator-function": "^2.0.0",
+ "get-proto": "^1.0.1",
+ "has-tostringtag": "^1.0.2",
+ "safe-regex-test": "^1.1.0"
+ },
"engines": {
- "node": ">=12.0.0"
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/fast-glob": {
- "version": "3.3.3",
- "resolved": "https://registry.npmmirror.com/fast-glob/-/fast-glob-3.3.3.tgz",
- "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==",
+ "node_modules/is-glob": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmmirror.com/is-glob/-/is-glob-4.0.3.tgz",
+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@nodelib/fs.stat": "^2.0.2",
- "@nodelib/fs.walk": "^1.2.3",
- "glob-parent": "^5.1.2",
- "merge2": "^1.3.0",
- "micromatch": "^4.0.8"
+ "is-extglob": "^2.1.1"
},
"engines": {
- "node": ">=8.6.0"
+ "node": ">=0.10.0"
}
},
- "node_modules/fast-glob/node_modules/glob-parent": {
- "version": "5.1.2",
- "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-5.1.2.tgz",
- "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+ "node_modules/is-map": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmmirror.com/is-map/-/is-map-2.0.3.tgz",
+ "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==",
"dev": true,
- "license": "ISC",
- "dependencies": {
- "is-glob": "^4.0.1"
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
},
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-negative-zero": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmmirror.com/is-negative-zero/-/is-negative-zero-2.0.3.tgz",
+ "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==",
+ "dev": true,
+ "license": "MIT",
"engines": {
- "node": ">= 6"
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/fastq": {
- "version": "1.20.3",
- "resolved": "https://registry.npmmirror.com/fastq/-/fastq-1.20.3.tgz",
- "integrity": "sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==",
+ "node_modules/is-number": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmmirror.com/is-number/-/is-number-7.0.0.tgz",
+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
"dev": true,
- "license": "ISC",
- "dependencies": {
- "reusify": "^1.0.4"
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.12.0"
}
},
- "node_modules/fill-range": {
- "version": "7.1.1",
- "resolved": "https://registry.npmmirror.com/fill-range/-/fill-range-7.1.1.tgz",
- "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
+ "node_modules/is-number-object": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmmirror.com/is-number-object/-/is-number-object-1.1.1.tgz",
+ "integrity": "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==",
"dev": true,
"license": "MIT",
"dependencies": {
- "to-regex-range": "^5.0.1"
+ "call-bound": "^1.0.3",
+ "has-tostringtag": "^1.0.2"
},
"engines": {
- "node": ">=8"
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/fraction.js": {
- "version": "5.3.4",
- "resolved": "https://registry.npmmirror.com/fraction.js/-/fraction.js-5.3.4.tgz",
- "integrity": "sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ==",
+ "node_modules/is-regex": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmmirror.com/is-regex/-/is-regex-1.2.1.tgz",
+ "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==",
"dev": true,
"license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "gopd": "^1.2.0",
+ "has-tostringtag": "^1.0.2",
+ "hasown": "^2.0.2"
+ },
"engines": {
- "node": "*"
+ "node": ">= 0.4"
},
"funding": {
- "type": "github",
- "url": "https://github.com/sponsors/rawify"
+ "url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/fsevents": {
- "version": "2.3.3",
- "resolved": "https://registry.npmmirror.com/fsevents/-/fsevents-2.3.3.tgz",
- "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+ "node_modules/is-set": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmmirror.com/is-set/-/is-set-2.0.3.tgz",
+ "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==",
"dev": true,
- "hasInstallScript": true,
"license": "MIT",
- "optional": true,
- "os": [
- "darwin"
- ],
"engines": {
- "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/function-bind": {
- "version": "1.1.2",
- "resolved": "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.2.tgz",
- "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
+ "node_modules/is-shared-array-buffer": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmmirror.com/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz",
+ "integrity": "sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==",
"dev": true,
"license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/glob-parent": {
- "version": "6.0.2",
- "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-6.0.2.tgz",
- "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
+ "node_modules/is-string": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmmirror.com/is-string/-/is-string-1.1.1.tgz",
+ "integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==",
"dev": true,
- "license": "ISC",
+ "license": "MIT",
"dependencies": {
- "is-glob": "^4.0.3"
+ "call-bound": "^1.0.3",
+ "has-tostringtag": "^1.0.2"
},
"engines": {
- "node": ">=10.13.0"
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/hasown": {
- "version": "2.0.4",
- "resolved": "https://registry.npmmirror.com/hasown/-/hasown-2.0.4.tgz",
- "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==",
+ "node_modules/is-symbol": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmmirror.com/is-symbol/-/is-symbol-1.1.1.tgz",
+ "integrity": "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==",
"dev": true,
"license": "MIT",
"dependencies": {
- "function-bind": "^1.1.2"
+ "call-bound": "^1.0.2",
+ "has-symbols": "^1.1.0",
+ "safe-regex-test": "^1.1.0"
},
"engines": {
"node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/hls.js": {
- "version": "1.7.1",
- "resolved": "https://registry.npmmirror.com/hls.js/-/hls.js-1.7.1.tgz",
- "integrity": "sha512-DlzIkeBAS9IIQ432k3BUf3HlwbsR0+trB1i2lDdN2gUkNkrehFurh0/48M5c1/EjlDkdGng1gwZIpwyPxvdZ/g==",
- "license": "Apache-2.0"
- },
- "node_modules/is-binary-path": {
- "version": "2.1.0",
- "resolved": "https://registry.npmmirror.com/is-binary-path/-/is-binary-path-2.1.0.tgz",
- "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
+ "node_modules/is-typed-array": {
+ "version": "1.1.15",
+ "resolved": "https://registry.npmmirror.com/is-typed-array/-/is-typed-array-1.1.15.tgz",
+ "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==",
"dev": true,
"license": "MIT",
"dependencies": {
- "binary-extensions": "^2.0.0"
+ "which-typed-array": "^1.1.16"
},
"engines": {
- "node": ">=8"
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/is-core-module": {
- "version": "2.16.2",
- "resolved": "https://registry.npmmirror.com/is-core-module/-/is-core-module-2.16.2.tgz",
- "integrity": "sha512-evOr8xfXKxE6qSR0hSXL2r3sd7ALj8+7jQEUvPYcm5sgZFdJ+AYzT6yNmJenvIYQBgIGwfwz08sL8zoL7yq2BA==",
+ "node_modules/is-weakmap": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmmirror.com/is-weakmap/-/is-weakmap-2.0.2.tgz",
+ "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==",
"dev": true,
"license": "MIT",
- "dependencies": {
- "hasown": "^2.0.3"
- },
"engines": {
"node": ">= 0.4"
},
@@ -2319,37 +5234,69 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/is-extglob": {
- "version": "2.1.1",
- "resolved": "https://registry.npmmirror.com/is-extglob/-/is-extglob-2.1.1.tgz",
- "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
+ "node_modules/is-weakref": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmmirror.com/is-weakref/-/is-weakref-1.1.1.tgz",
+ "integrity": "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==",
"dev": true,
"license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.3"
+ },
"engines": {
- "node": ">=0.10.0"
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/is-glob": {
- "version": "4.0.3",
- "resolved": "https://registry.npmmirror.com/is-glob/-/is-glob-4.0.3.tgz",
- "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
+ "node_modules/is-weakset": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmmirror.com/is-weakset/-/is-weakset-2.0.4.tgz",
+ "integrity": "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==",
"dev": true,
"license": "MIT",
"dependencies": {
- "is-extglob": "^2.1.1"
+ "call-bound": "^1.0.3",
+ "get-intrinsic": "^1.2.6"
},
"engines": {
- "node": ">=0.10.0"
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/is-number": {
- "version": "7.0.0",
- "resolved": "https://registry.npmmirror.com/is-number/-/is-number-7.0.0.tgz",
- "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
+ "node_modules/isarray": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmmirror.com/isarray/-/isarray-2.0.5.tgz",
+ "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/isexe": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmmirror.com/isexe/-/isexe-2.0.0.tgz",
+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/iterator.prototype": {
+ "version": "1.1.5",
+ "resolved": "https://registry.npmmirror.com/iterator.prototype/-/iterator.prototype-1.1.5.tgz",
+ "integrity": "sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g==",
"dev": true,
"license": "MIT",
+ "dependencies": {
+ "define-data-property": "^1.1.4",
+ "es-object-atoms": "^1.0.0",
+ "get-intrinsic": "^1.2.6",
+ "get-proto": "^1.0.0",
+ "has-symbols": "^1.1.0",
+ "set-function-name": "^2.0.2"
+ },
"engines": {
- "node": ">=0.12.0"
+ "node": ">= 0.4"
}
},
"node_modules/jiti": {
@@ -2362,6 +5309,96 @@
"jiti": "bin/jiti.js"
}
},
+ "node_modules/js-tokens": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmmirror.com/js-tokens/-/js-tokens-4.0.0.tgz",
+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/js-yaml": {
+ "version": "4.3.2",
+ "resolved": "https://registry.npmmirror.com/js-yaml/-/js-yaml-4.3.2.tgz",
+ "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/puzrin"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/nodeca"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "argparse": "^2.0.1"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "node_modules/json-buffer": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmmirror.com/json-buffer/-/json-buffer-3.0.1.tgz",
+ "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-schema-traverse": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmmirror.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-stable-stringify-without-jsonify": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
+ "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json5": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/json5/-/json5-1.0.2.tgz",
+ "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "minimist": "^1.2.0"
+ },
+ "bin": {
+ "json5": "lib/cli.js"
+ }
+ },
+ "node_modules/jsx-ast-utils": {
+ "version": "3.3.5",
+ "resolved": "https://registry.npmmirror.com/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz",
+ "integrity": "sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "array-includes": "^3.1.6",
+ "array.prototype.flat": "^1.3.1",
+ "object.assign": "^4.1.4",
+ "object.values": "^1.1.6"
+ },
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/keyv": {
+ "version": "4.5.4",
+ "resolved": "https://registry.npmmirror.com/keyv/-/keyv-4.5.4.tgz",
+ "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "json-buffer": "3.0.1"
+ }
+ },
"node_modules/kind-of": {
"version": "6.0.3",
"resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-6.0.3.tgz",
@@ -2371,6 +5408,40 @@
"node": ">=0.10.0"
}
},
+ "node_modules/language-subtag-registry": {
+ "version": "0.3.23",
+ "resolved": "https://registry.npmmirror.com/language-subtag-registry/-/language-subtag-registry-0.3.23.tgz",
+ "integrity": "sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ==",
+ "dev": true,
+ "license": "CC0-1.0"
+ },
+ "node_modules/language-tags": {
+ "version": "1.0.9",
+ "resolved": "https://registry.npmmirror.com/language-tags/-/language-tags-1.0.9.tgz",
+ "integrity": "sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "language-subtag-registry": "^0.3.20"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/levn": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmmirror.com/levn/-/levn-0.4.1.tgz",
+ "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "prelude-ls": "^1.2.1",
+ "type-check": "~0.4.0"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
"node_modules/lilconfig": {
"version": "3.1.3",
"resolved": "https://registry.npmmirror.com/lilconfig/-/lilconfig-3.1.3.tgz",
@@ -2378,19 +5449,55 @@
"dev": true,
"license": "MIT",
"engines": {
- "node": ">=14"
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/antonk52"
+ }
+ },
+ "node_modules/lines-and-columns": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmmirror.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz",
+ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/locate-path": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmmirror.com/locate-path/-/locate-path-6.0.0.tgz",
+ "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-locate": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=10"
},
"funding": {
- "url": "https://github.com/sponsors/antonk52"
+ "url": "https://github.com/sponsors/sindresorhus"
}
},
- "node_modules/lines-and-columns": {
- "version": "1.2.4",
- "resolved": "https://registry.npmmirror.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz",
- "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
+ "node_modules/lodash.merge": {
+ "version": "4.6.2",
+ "resolved": "https://registry.npmmirror.com/lodash.merge/-/lodash.merge-4.6.2.tgz",
+ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
"dev": true,
"license": "MIT"
},
+ "node_modules/loose-envify": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmmirror.com/loose-envify/-/loose-envify-1.4.0.tgz",
+ "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "js-tokens": "^3.0.0 || ^4.0.0"
+ },
+ "bin": {
+ "loose-envify": "cli.js"
+ }
+ },
"node_modules/loupe": {
"version": "3.2.1",
"resolved": "https://registry.npmmirror.com/loupe/-/loupe-3.2.1.tgz",
@@ -2408,6 +5515,16 @@
"@jridgewell/sourcemap-codec": "^1.5.5"
}
},
+ "node_modules/math-intrinsics": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
"node_modules/merge2": {
"version": "1.4.1",
"resolved": "https://registry.npmmirror.com/merge2/-/merge2-1.4.1.tgz",
@@ -2432,6 +5549,29 @@
"node": ">=8.6"
}
},
+ "node_modules/minimatch": {
+ "version": "3.1.5",
+ "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.5.tgz",
+ "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "brace-expansion": "^1.1.7"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/minimist": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmmirror.com/minimist/-/minimist-1.2.8.tgz",
+ "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
"node_modules/ms": {
"version": "2.1.3",
"resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz",
@@ -2469,6 +5609,29 @@
"node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
}
},
+ "node_modules/napi-postinstall": {
+ "version": "0.3.4",
+ "resolved": "https://registry.npmmirror.com/napi-postinstall/-/napi-postinstall-0.3.4.tgz",
+ "integrity": "sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "napi-postinstall": "lib/cli.js"
+ },
+ "engines": {
+ "node": "^12.20.0 || ^14.18.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/napi-postinstall"
+ }
+ },
+ "node_modules/natural-compare": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmmirror.com/natural-compare/-/natural-compare-1.4.0.tgz",
+ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/next": {
"version": "15.5.25",
"resolved": "https://registry.npmmirror.com/next/-/next-15.5.25.tgz",
@@ -2549,6 +5712,35 @@
"node": "^10 || ^12 || >=14"
}
},
+ "node_modules/node-exports-info": {
+ "version": "1.6.2",
+ "resolved": "https://registry.npmmirror.com/node-exports-info/-/node-exports-info-1.6.2.tgz",
+ "integrity": "sha512-kXs9Go0cah0qHVV2v389IXQLdLCeE1xfFtjOAF+iobu0OIoG1pje8At2vMHyaPMiPMnG/LWP50twML21eMcAag==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "array.prototype.flatmap": "^1.3.3",
+ "es-errors": "^1.3.0",
+ "object.entries": "^1.1.9",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/node-exports-info/node_modules/semver": {
+ "version": "6.3.1",
+ "resolved": "https://registry.npmmirror.com/semver/-/semver-6.3.1.tgz",
+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
"node_modules/node-releases": {
"version": "2.0.54",
"resolved": "https://registry.npmmirror.com/node-releases/-/node-releases-2.0.54.tgz",
@@ -2589,6 +5781,119 @@
"node": ">= 6"
}
},
+ "node_modules/object-inspect": {
+ "version": "1.13.4",
+ "resolved": "https://registry.npmmirror.com/object-inspect/-/object-inspect-1.13.4.tgz",
+ "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/object-keys": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmmirror.com/object-keys/-/object-keys-1.1.1.tgz",
+ "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/object.assign": {
+ "version": "4.1.7",
+ "resolved": "https://registry.npmmirror.com/object.assign/-/object.assign-4.1.7.tgz",
+ "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.8",
+ "call-bound": "^1.0.3",
+ "define-properties": "^1.2.1",
+ "es-object-atoms": "^1.0.0",
+ "has-symbols": "^1.1.0",
+ "object-keys": "^1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/object.entries": {
+ "version": "1.1.9",
+ "resolved": "https://registry.npmmirror.com/object.entries/-/object.entries-1.1.9.tgz",
+ "integrity": "sha512-8u/hfXFRBD1O0hPUjioLhoWFHRmt6tKA4/vZPyckBr18l1KE9uHrFaFaUi8MDRTpi4uak2goyPTSNJLXX2k2Hw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.8",
+ "call-bound": "^1.0.4",
+ "define-properties": "^1.2.1",
+ "es-object-atoms": "^1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/object.fromentries": {
+ "version": "2.0.8",
+ "resolved": "https://registry.npmmirror.com/object.fromentries/-/object.fromentries-2.0.8.tgz",
+ "integrity": "sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.23.2",
+ "es-object-atoms": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/object.groupby": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmmirror.com/object.groupby/-/object.groupby-1.0.3.tgz",
+ "integrity": "sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.23.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/object.values": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmmirror.com/object.values/-/object.values-1.2.1.tgz",
+ "integrity": "sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.8",
+ "call-bound": "^1.0.3",
+ "define-properties": "^1.2.1",
+ "es-object-atoms": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
"node_modules/option-validator": {
"version": "2.0.6",
"resolved": "https://registry.npmmirror.com/option-validator/-/option-validator-2.0.6.tgz",
@@ -2598,6 +5903,108 @@
"kind-of": "^6.0.3"
}
},
+ "node_modules/optionator": {
+ "version": "0.9.4",
+ "resolved": "https://registry.npmmirror.com/optionator/-/optionator-0.9.4.tgz",
+ "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "deep-is": "^0.1.3",
+ "fast-levenshtein": "^2.0.6",
+ "levn": "^0.4.1",
+ "prelude-ls": "^1.2.1",
+ "type-check": "^0.4.0",
+ "word-wrap": "^1.2.5"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/own-keys": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/own-keys/-/own-keys-1.0.2.tgz",
+ "integrity": "sha512-19YVAg7T+WTrxggPukVq7DjTv6+PJ867TmhCvBsYwmbFCsZd344rq2Ld1p0wo8f8Qrrhgp82c6FJRqdXWtSEhg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.4",
+ "get-intrinsic": "^1.3.0",
+ "object-keys": "^1.1.1",
+ "safe-push-apply": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/p-limit": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmmirror.com/p-limit/-/p-limit-3.1.0.tgz",
+ "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "yocto-queue": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/p-locate": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmmirror.com/p-locate/-/p-locate-5.0.0.tgz",
+ "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-limit": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/parent-module": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/parent-module/-/parent-module-1.0.1.tgz",
+ "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "callsites": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/path-exists": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmmirror.com/path-exists/-/path-exists-4.0.0.tgz",
+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-key": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmmirror.com/path-key/-/path-key-3.1.1.tgz",
+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/path-parse": {
"version": "1.0.7",
"resolved": "https://registry.npmmirror.com/path-parse/-/path-parse-1.0.7.tgz",
@@ -2651,6 +6058,16 @@
"node": ">= 6"
}
},
+ "node_modules/possible-typed-array-names": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz",
+ "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
"node_modules/postcss": {
"version": "8.5.26",
"resolved": "https://registry.npmmirror.com/postcss/-/postcss-8.5.26.tgz",
@@ -2814,6 +6231,38 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/prelude-ls": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmmirror.com/prelude-ls/-/prelude-ls-1.2.1.tgz",
+ "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/prop-types": {
+ "version": "15.8.1",
+ "resolved": "https://registry.npmmirror.com/prop-types/-/prop-types-15.8.1.tgz",
+ "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "loose-envify": "^1.4.0",
+ "object-assign": "^4.1.1",
+ "react-is": "^16.13.1"
+ }
+ },
+ "node_modules/punycode": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmmirror.com/punycode/-/punycode-2.3.1.tgz",
+ "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
"node_modules/queue-microtask": {
"version": "1.2.3",
"resolved": "https://registry.npmmirror.com/queue-microtask/-/queue-microtask-1.2.3.tgz",
@@ -2856,6 +6305,13 @@
"react": "^19.2.8"
}
},
+ "node_modules/react-is": {
+ "version": "16.13.1",
+ "resolved": "https://registry.npmmirror.com/react-is/-/react-is-16.13.1.tgz",
+ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/read-cache": {
"version": "1.0.2",
"resolved": "https://registry.npmmirror.com/read-cache/-/read-cache-1.0.2.tgz",
@@ -2876,6 +6332,50 @@
"node": ">=8.10.0"
}
},
+ "node_modules/reflect.getprototypeof": {
+ "version": "1.0.10",
+ "resolved": "https://registry.npmmirror.com/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz",
+ "integrity": "sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.8",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.23.9",
+ "es-errors": "^1.3.0",
+ "es-object-atoms": "^1.0.0",
+ "get-intrinsic": "^1.2.7",
+ "get-proto": "^1.0.1",
+ "which-builtin-type": "^1.2.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/regexp.prototype.flags": {
+ "version": "1.5.4",
+ "resolved": "https://registry.npmmirror.com/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz",
+ "integrity": "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.8",
+ "define-properties": "^1.2.1",
+ "es-errors": "^1.3.0",
+ "get-proto": "^1.0.1",
+ "gopd": "^1.2.0",
+ "set-function-name": "^2.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
"node_modules/resolve": {
"version": "1.22.12",
"resolved": "https://registry.npmmirror.com/resolve/-/resolve-1.22.12.tgz",
@@ -2892,10 +6392,30 @@
"resolve": "bin/resolve"
},
"engines": {
- "node": ">= 0.4"
- },
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/resolve-from": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmmirror.com/resolve-from/-/resolve-from-4.0.0.tgz",
+ "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/resolve-pkg-maps": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz",
+ "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==",
+ "dev": true,
+ "license": "MIT",
"funding": {
- "url": "https://github.com/sponsors/ljharb"
+ "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1"
}
},
"node_modules/reusify": {
@@ -2979,6 +6499,61 @@
"queue-microtask": "^1.2.2"
}
},
+ "node_modules/safe-array-concat": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmmirror.com/safe-array-concat/-/safe-array-concat-1.1.4.tgz",
+ "integrity": "sha512-wtZlHyOje6OZTGqAoaDKxFkgRtkF9CnHAVnCHKfuj200wAgL+bSJhdsCD2l0Qx/2ekEXjPWcyKkfGb5CPboslg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.9",
+ "call-bound": "^1.0.4",
+ "get-intrinsic": "^1.3.0",
+ "has-symbols": "^1.1.0",
+ "isarray": "^2.0.5"
+ },
+ "engines": {
+ "node": ">=0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/safe-push-apply": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/safe-push-apply/-/safe-push-apply-1.0.0.tgz",
+ "integrity": "sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "isarray": "^2.0.5"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/safe-regex-test": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/safe-regex-test/-/safe-regex-test-1.1.0.tgz",
+ "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "es-errors": "^1.3.0",
+ "is-regex": "^1.2.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
"node_modules/scheduler": {
"version": "0.27.0",
"resolved": "https://registry.npmmirror.com/scheduler/-/scheduler-0.27.0.tgz",
@@ -2989,8 +6564,8 @@
"version": "7.8.5",
"resolved": "https://registry.npmmirror.com/semver/-/semver-7.8.5.tgz",
"integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",
+ "devOptional": true,
"license": "ISC",
- "optional": true,
"bin": {
"semver": "bin/semver.js"
},
@@ -2998,6 +6573,55 @@
"node": ">=10"
}
},
+ "node_modules/set-function-length": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmmirror.com/set-function-length/-/set-function-length-1.2.2.tgz",
+ "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "define-data-property": "^1.1.4",
+ "es-errors": "^1.3.0",
+ "function-bind": "^1.1.2",
+ "get-intrinsic": "^1.2.4",
+ "gopd": "^1.0.1",
+ "has-property-descriptors": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/set-function-name": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmmirror.com/set-function-name/-/set-function-name-2.0.2.tgz",
+ "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "define-data-property": "^1.1.4",
+ "es-errors": "^1.3.0",
+ "functions-have-names": "^1.2.3",
+ "has-property-descriptors": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/set-proto": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/set-proto/-/set-proto-1.0.0.tgz",
+ "integrity": "sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "dunder-proto": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "es-object-atoms": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
"node_modules/sharp": {
"version": "0.35.4",
"resolved": "https://registry.npmmirror.com/sharp/-/sharp-0.35.4.tgz",
@@ -3005,78 +6629,335 @@
"license": "Apache-2.0",
"optional": true,
"dependencies": {
- "@img/colour": "^1.1.0",
- "detect-libc": "^2.1.2",
- "semver": "^7.8.5"
+ "@img/colour": "^1.1.0",
+ "detect-libc": "^2.1.2",
+ "semver": "^7.8.5"
+ },
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-darwin-arm64": "0.35.4",
+ "@img/sharp-darwin-x64": "0.35.4",
+ "@img/sharp-freebsd-wasm32": "0.35.4",
+ "@img/sharp-libvips-darwin-arm64": "1.3.3",
+ "@img/sharp-libvips-darwin-x64": "1.3.3",
+ "@img/sharp-libvips-linux-arm": "1.3.3",
+ "@img/sharp-libvips-linux-arm64": "1.3.3",
+ "@img/sharp-libvips-linux-ppc64": "1.3.3",
+ "@img/sharp-libvips-linux-riscv64": "1.3.3",
+ "@img/sharp-libvips-linux-s390x": "1.3.3",
+ "@img/sharp-libvips-linux-x64": "1.3.3",
+ "@img/sharp-libvips-linuxmusl-arm64": "1.3.3",
+ "@img/sharp-libvips-linuxmusl-x64": "1.3.3",
+ "@img/sharp-linux-arm": "0.35.4",
+ "@img/sharp-linux-arm64": "0.35.4",
+ "@img/sharp-linux-ppc64": "0.35.4",
+ "@img/sharp-linux-riscv64": "0.35.4",
+ "@img/sharp-linux-s390x": "0.35.4",
+ "@img/sharp-linux-x64": "0.35.4",
+ "@img/sharp-linuxmusl-arm64": "0.35.4",
+ "@img/sharp-linuxmusl-x64": "0.35.4",
+ "@img/sharp-webcontainers-wasm32": "0.35.4",
+ "@img/sharp-win32-arm64": "0.35.4",
+ "@img/sharp-win32-ia32": "0.35.4",
+ "@img/sharp-win32-x64": "0.35.4"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmmirror.com/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "shebang-regex": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmmirror.com/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/side-channel": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmmirror.com/side-channel/-/side-channel-1.1.1.tgz",
+ "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "object-inspect": "^1.13.4",
+ "side-channel-list": "^1.0.1",
+ "side-channel-map": "^1.0.1",
+ "side-channel-weakmap": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-list": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/side-channel-list/-/side-channel-list-1.0.1.tgz",
+ "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "object-inspect": "^1.13.4"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-map": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/side-channel-map/-/side-channel-map-1.0.1.tgz",
+ "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.5",
+ "object-inspect": "^1.13.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-weakmap": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
+ "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.5",
+ "object-inspect": "^1.13.3",
+ "side-channel-map": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/siginfo": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmmirror.com/siginfo/-/siginfo-2.0.0.tgz",
+ "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/source-map-js": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmmirror.com/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/stable-hash": {
+ "version": "0.0.5",
+ "resolved": "https://registry.npmmirror.com/stable-hash/-/stable-hash-0.0.5.tgz",
+ "integrity": "sha512-+L3ccpzibovGXFK+Ap/f8LOS0ahMrHTf3xu7mMLSpEGU0EO9ucaysSylKo9eRDFNhWve/y275iPmIZ4z39a9iA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/stackback": {
+ "version": "0.0.2",
+ "resolved": "https://registry.npmmirror.com/stackback/-/stackback-0.0.2.tgz",
+ "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/std-env": {
+ "version": "3.10.0",
+ "resolved": "https://registry.npmmirror.com/std-env/-/std-env-3.10.0.tgz",
+ "integrity": "sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/stop-iteration-iterator": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/stop-iteration-iterator/-/stop-iteration-iterator-1.1.0.tgz",
+ "integrity": "sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "internal-slot": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/string.prototype.includes": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/string.prototype.includes/-/string.prototype.includes-2.0.1.tgz",
+ "integrity": "sha512-o7+c9bW6zpAdJHTtujeePODAhkuicdAryFsfVKwA+wGw89wJ4GTY484WTucM9hLtDEOpOvI+aHnzqnC5lHp4Rg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.23.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/string.prototype.matchall": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmmirror.com/string.prototype.matchall/-/string.prototype.matchall-4.1.0.tgz",
+ "integrity": "sha512-tHNHTxInrYLCga9O9YGxWA3G9/nnzQw8UGAyqGx3Ar1pSTTzIuM4woFSq4SowkXCjJIwq5sIiQvEfRI9tCH1qQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.9",
+ "call-bound": "^1.0.4",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.24.2",
+ "es-errors": "^1.3.0",
+ "es-object-atoms": "^1.1.2",
+ "get-intrinsic": "^1.3.0",
+ "gopd": "^1.2.0",
+ "has-symbols": "^1.1.0",
+ "internal-slot": "^1.1.0",
+ "regexp.prototype.flags": "^1.5.4",
+ "set-function-name": "^2.0.2",
+ "side-channel": "^1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/string.prototype.repeat": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/string.prototype.repeat/-/string.prototype.repeat-1.0.0.tgz",
+ "integrity": "sha512-0u/TldDbKD8bFCQ/4f5+mNRrXwZ8hg2w7ZR8wa16e8z9XpePWl3eGEcUD0OXpEH/VJH/2G3gjUtR3ZOiBe2S/w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "define-properties": "^1.1.3",
+ "es-abstract": "^1.17.5"
+ }
+ },
+ "node_modules/string.prototype.trim": {
+ "version": "1.2.11",
+ "resolved": "https://registry.npmmirror.com/string.prototype.trim/-/string.prototype.trim-1.2.11.tgz",
+ "integrity": "sha512-PwvK7BU+CMTJGYQCTZb5RWXIML92lftJLhQz1tBzgKiqGxJaMlBAa48POXaNAC2s4y8jr3EFqrkF9+44neS46w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.9",
+ "call-bound": "^1.0.4",
+ "define-data-property": "^1.1.4",
+ "define-properties": "^1.2.1",
+ "es-abstract": "^1.24.2",
+ "es-object-atoms": "^1.1.2",
+ "has-property-descriptors": "^1.0.2",
+ "safe-regex-test": "^1.1.0"
},
"engines": {
- "node": ">=20.9.0"
+ "node": ">= 0.4"
},
"funding": {
- "url": "https://opencollective.com/libvips"
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/string.prototype.trimend": {
+ "version": "1.0.10",
+ "resolved": "https://registry.npmmirror.com/string.prototype.trimend/-/string.prototype.trimend-1.0.10.tgz",
+ "integrity": "sha512-2+3aDAOmPTmuFwjDnmJG2ctEkQKVki7vOSqaxkv42Mowj1V6PnvuwFCRrR5lChUux1TBskPjfkeTOhqczDMxTw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.9",
+ "call-bound": "^1.0.4",
+ "define-properties": "^1.2.1",
+ "es-object-atoms": "^1.1.2"
},
- "optionalDependencies": {
- "@img/sharp-darwin-arm64": "0.35.4",
- "@img/sharp-darwin-x64": "0.35.4",
- "@img/sharp-freebsd-wasm32": "0.35.4",
- "@img/sharp-libvips-darwin-arm64": "1.3.3",
- "@img/sharp-libvips-darwin-x64": "1.3.3",
- "@img/sharp-libvips-linux-arm": "1.3.3",
- "@img/sharp-libvips-linux-arm64": "1.3.3",
- "@img/sharp-libvips-linux-ppc64": "1.3.3",
- "@img/sharp-libvips-linux-riscv64": "1.3.3",
- "@img/sharp-libvips-linux-s390x": "1.3.3",
- "@img/sharp-libvips-linux-x64": "1.3.3",
- "@img/sharp-libvips-linuxmusl-arm64": "1.3.3",
- "@img/sharp-libvips-linuxmusl-x64": "1.3.3",
- "@img/sharp-linux-arm": "0.35.4",
- "@img/sharp-linux-arm64": "0.35.4",
- "@img/sharp-linux-ppc64": "0.35.4",
- "@img/sharp-linux-riscv64": "0.35.4",
- "@img/sharp-linux-s390x": "0.35.4",
- "@img/sharp-linux-x64": "0.35.4",
- "@img/sharp-linuxmusl-arm64": "0.35.4",
- "@img/sharp-linuxmusl-x64": "0.35.4",
- "@img/sharp-webcontainers-wasm32": "0.35.4",
- "@img/sharp-win32-arm64": "0.35.4",
- "@img/sharp-win32-ia32": "0.35.4",
- "@img/sharp-win32-x64": "0.35.4"
+ "engines": {
+ "node": ">= 0.4"
},
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- }
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/siginfo": {
- "version": "2.0.0",
- "resolved": "https://registry.npmmirror.com/siginfo/-/siginfo-2.0.0.tgz",
- "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==",
+ "node_modules/string.prototype.trimstart": {
+ "version": "1.0.8",
+ "resolved": "https://registry.npmmirror.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz",
+ "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==",
"dev": true,
- "license": "ISC"
- },
- "node_modules/source-map-js": {
- "version": "1.2.1",
- "resolved": "https://registry.npmmirror.com/source-map-js/-/source-map-js-1.2.1.tgz",
- "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
- "license": "BSD-3-Clause",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "define-properties": "^1.2.1",
+ "es-object-atoms": "^1.0.0"
+ },
"engines": {
- "node": ">=0.10.0"
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/stackback": {
- "version": "0.0.2",
- "resolved": "https://registry.npmmirror.com/stackback/-/stackback-0.0.2.tgz",
- "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==",
+ "node_modules/strip-bom": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmmirror.com/strip-bom/-/strip-bom-3.0.0.tgz",
+ "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==",
"dev": true,
- "license": "MIT"
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
},
- "node_modules/std-env": {
- "version": "3.10.0",
- "resolved": "https://registry.npmmirror.com/std-env/-/std-env-3.10.0.tgz",
- "integrity": "sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==",
+ "node_modules/strip-json-comments": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmmirror.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
+ "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
"dev": true,
- "license": "MIT"
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
},
"node_modules/styled-jsx": {
"version": "5.1.6",
@@ -3124,6 +7005,19 @@
"node": ">=16 || 14 >=14.17"
}
},
+ "node_modules/supports-color": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz",
+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-flag": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/supports-preserve-symlinks-flag": {
"version": "1.0.0",
"resolved": "https://registry.npmmirror.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
@@ -3303,6 +7197,19 @@
"node": ">=8.0"
}
},
+ "node_modules/ts-api-utils": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmmirror.com/ts-api-utils/-/ts-api-utils-2.5.0.tgz",
+ "integrity": "sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.12"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4"
+ }
+ },
"node_modules/ts-interface-checker": {
"version": "0.1.13",
"resolved": "https://registry.npmmirror.com/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz",
@@ -3310,12 +7217,116 @@
"dev": true,
"license": "Apache-2.0"
},
+ "node_modules/tsconfig-paths": {
+ "version": "3.15.0",
+ "resolved": "https://registry.npmmirror.com/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz",
+ "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/json5": "^0.0.29",
+ "json5": "^1.0.2",
+ "minimist": "^1.2.6",
+ "strip-bom": "^3.0.0"
+ }
+ },
"node_modules/tslib": {
"version": "2.8.1",
"resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.8.1.tgz",
"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
"license": "0BSD"
},
+ "node_modules/type-check": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmmirror.com/type-check/-/type-check-0.4.0.tgz",
+ "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "prelude-ls": "^1.2.1"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/typed-array-buffer": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmmirror.com/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz",
+ "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.3",
+ "es-errors": "^1.3.0",
+ "is-typed-array": "^1.1.14"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/typed-array-byte-length": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmmirror.com/typed-array-byte-length/-/typed-array-byte-length-1.0.3.tgz",
+ "integrity": "sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.8",
+ "for-each": "^0.3.3",
+ "gopd": "^1.2.0",
+ "has-proto": "^1.2.0",
+ "is-typed-array": "^1.1.14"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/typed-array-byte-offset": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmmirror.com/typed-array-byte-offset/-/typed-array-byte-offset-1.0.4.tgz",
+ "integrity": "sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "available-typed-arrays": "^1.0.7",
+ "call-bind": "^1.0.8",
+ "for-each": "^0.3.3",
+ "gopd": "^1.2.0",
+ "has-proto": "^1.2.0",
+ "is-typed-array": "^1.1.15",
+ "reflect.getprototypeof": "^1.0.9"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/typed-array-length": {
+ "version": "1.0.8",
+ "resolved": "https://registry.npmmirror.com/typed-array-length/-/typed-array-length-1.0.8.tgz",
+ "integrity": "sha512-phPGCwqr2+Qo0fwniCE8e4pKnGu/yFb5nD5Y8bf0EEeiI5GklnACYA9GFy/DrAeRrKHXvHn+1SUsOWgJp6RO+g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.9",
+ "for-each": "^0.3.5",
+ "gopd": "^1.2.0",
+ "is-typed-array": "^1.1.15",
+ "possible-typed-array-names": "^1.1.0",
+ "reflect.getprototypeof": "^1.0.10"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
"node_modules/typescript": {
"version": "5.9.3",
"resolved": "https://registry.npmmirror.com/typescript/-/typescript-5.9.3.tgz",
@@ -3330,6 +7341,25 @@
"node": ">=14.17"
}
},
+ "node_modules/unbox-primitive": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/unbox-primitive/-/unbox-primitive-1.1.0.tgz",
+ "integrity": "sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.3",
+ "has-bigints": "^1.0.2",
+ "has-symbols": "^1.1.0",
+ "which-boxed-primitive": "^1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
"node_modules/undici-types": {
"version": "6.21.0",
"resolved": "https://registry.npmmirror.com/undici-types/-/undici-types-6.21.0.tgz",
@@ -3337,6 +7367,44 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/unrs-resolver": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmmirror.com/unrs-resolver/-/unrs-resolver-1.12.2.tgz",
+ "integrity": "sha512-dmlRxBJJayXjqTwC+JtF1HhJmgf3ftQ3YejFcZrf4+KKtJv0qDsK1pjqaaVjG7wJ5NJ6UVP1OqRMQ71Z4C3rxQ==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "dependencies": {
+ "napi-postinstall": "^0.3.4"
+ },
+ "funding": {
+ "url": "https://opencollective.com/unrs-resolver"
+ },
+ "optionalDependencies": {
+ "@unrs/resolver-binding-android-arm-eabi": "1.12.2",
+ "@unrs/resolver-binding-android-arm64": "1.12.2",
+ "@unrs/resolver-binding-darwin-arm64": "1.12.2",
+ "@unrs/resolver-binding-darwin-x64": "1.12.2",
+ "@unrs/resolver-binding-freebsd-x64": "1.12.2",
+ "@unrs/resolver-binding-linux-arm-gnueabihf": "1.12.2",
+ "@unrs/resolver-binding-linux-arm-musleabihf": "1.12.2",
+ "@unrs/resolver-binding-linux-arm64-gnu": "1.12.2",
+ "@unrs/resolver-binding-linux-arm64-musl": "1.12.2",
+ "@unrs/resolver-binding-linux-loong64-gnu": "1.12.2",
+ "@unrs/resolver-binding-linux-loong64-musl": "1.12.2",
+ "@unrs/resolver-binding-linux-ppc64-gnu": "1.12.2",
+ "@unrs/resolver-binding-linux-riscv64-gnu": "1.12.2",
+ "@unrs/resolver-binding-linux-riscv64-musl": "1.12.2",
+ "@unrs/resolver-binding-linux-s390x-gnu": "1.12.2",
+ "@unrs/resolver-binding-linux-x64-gnu": "1.12.2",
+ "@unrs/resolver-binding-linux-x64-musl": "1.12.2",
+ "@unrs/resolver-binding-openharmony-arm64": "1.12.2",
+ "@unrs/resolver-binding-wasm32-wasi": "1.12.2",
+ "@unrs/resolver-binding-win32-arm64-msvc": "1.12.2",
+ "@unrs/resolver-binding-win32-ia32-msvc": "1.12.2",
+ "@unrs/resolver-binding-win32-x64-msvc": "1.12.2"
+ }
+ },
"node_modules/update-browserslist-db": {
"version": "1.3.2",
"resolved": "https://registry.npmmirror.com/update-browserslist-db/-/update-browserslist-db-1.3.2.tgz",
@@ -3368,6 +7436,16 @@
"browserslist": ">= 4.21.0"
}
},
+ "node_modules/uri-js": {
+ "version": "4.4.1",
+ "resolved": "https://registry.npmmirror.com/uri-js/-/uri-js-4.4.1.tgz",
+ "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "punycode": "^2.1.0"
+ }
+ },
"node_modules/util-deprecate": {
"version": "1.0.2",
"resolved": "https://registry.npmmirror.com/util-deprecate/-/util-deprecate-1.0.2.tgz",
@@ -3524,6 +7602,111 @@
}
}
},
+ "node_modules/which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmmirror.com/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "node-which": "bin/node-which"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/which-boxed-primitive": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmmirror.com/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz",
+ "integrity": "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-bigint": "^1.1.0",
+ "is-boolean-object": "^1.2.1",
+ "is-number-object": "^1.1.1",
+ "is-string": "^1.1.1",
+ "is-symbol": "^1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/which-builtin-type": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmmirror.com/which-builtin-type/-/which-builtin-type-1.2.1.tgz",
+ "integrity": "sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "function.prototype.name": "^1.1.6",
+ "has-tostringtag": "^1.0.2",
+ "is-async-function": "^2.0.0",
+ "is-date-object": "^1.1.0",
+ "is-finalizationregistry": "^1.1.0",
+ "is-generator-function": "^1.0.10",
+ "is-regex": "^1.2.1",
+ "is-weakref": "^1.0.2",
+ "isarray": "^2.0.5",
+ "which-boxed-primitive": "^1.1.0",
+ "which-collection": "^1.0.2",
+ "which-typed-array": "^1.1.16"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/which-collection": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/which-collection/-/which-collection-1.0.2.tgz",
+ "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-map": "^2.0.3",
+ "is-set": "^2.0.3",
+ "is-weakmap": "^2.0.2",
+ "is-weakset": "^2.0.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/which-typed-array": {
+ "version": "1.1.22",
+ "resolved": "https://registry.npmmirror.com/which-typed-array/-/which-typed-array-1.1.22.tgz",
+ "integrity": "sha512-fvO4ExWMFsqyhG3AiPAObMuY1lxaqgYcxbc49CNdWDDECOJNgQyvsOWVwbZc+qf3rzRtxojBK+CMEv0Ld5CYpw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "available-typed-arrays": "^1.0.7",
+ "call-bind": "^1.0.9",
+ "call-bound": "^1.0.4",
+ "for-each": "^0.3.5",
+ "get-proto": "^1.0.1",
+ "gopd": "^1.2.0",
+ "has-tostringtag": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
"node_modules/why-is-node-running": {
"version": "2.3.0",
"resolved": "https://registry.npmmirror.com/why-is-node-running/-/why-is-node-running-2.3.0.tgz",
@@ -3541,6 +7724,29 @@
"node": ">=8"
}
},
+ "node_modules/word-wrap": {
+ "version": "1.2.5",
+ "resolved": "https://registry.npmmirror.com/word-wrap/-/word-wrap-1.2.5.tgz",
+ "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/yocto-queue": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmmirror.com/yocto-queue/-/yocto-queue-0.1.0.tgz",
+ "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/zustand": {
"version": "5.0.15",
"resolved": "https://registry.npmmirror.com/zustand/-/zustand-5.0.15.tgz",
diff --git a/package.json b/package.json
index e69b496..db5c4cb 100644
--- a/package.json
+++ b/package.json
@@ -8,6 +8,7 @@
"dev": "next dev -p 8080",
"build": "next build",
"start": "next start -p 8080",
+ "lint": "eslint src",
"typecheck": "tsc --noEmit",
"test": "vitest run"
},
@@ -27,6 +28,8 @@
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"autoprefixer": "^10.4.20",
+ "eslint": "^9.39.4",
+ "eslint-config-next": "^15.5.25",
"postcss": "^8.4.49",
"tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
diff --git a/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.json b/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.json
deleted file mode 100644
index 347c777..0000000
--- a/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.json
+++ /dev/null
@@ -1 +0,0 @@
-{"touched":["F:\\git\\bestzwei\\LibreTV-Project\\LibreTV\\libretv-next\\src\\components\\header.tsx","F:\\git\\bestzwei\\LibreTV-Project\\LibreTV\\libretv-next\\src\\components\\auth.tsx","F:\\git\\bestzwei\\LibreTV-Project\\LibreTV\\libretv-next\\src\\components\\toast.tsx","F:\\git\\bestzwei\\LibreTV-Project\\LibreTV\\libretv-next\\src\\components\\player-shell.tsx","F:\\git\\bestzwei\\LibreTV-Project\\LibreTV\\libretv-next\\src\\components\\video-card.tsx","F:\\git\\bestzwei\\LibreTV-Project\\LibreTV\\libretv-next\\src\\components\\history-panel.tsx","F:\\git\\bestzwei\\LibreTV-Project\\LibreTV\\libretv-next\\src\\components\\source-manager.tsx","F:\\git\\bestzwei\\LibreTV-Project\\LibreTV\\libretv-next\\src\\components\\detail-modal.tsx","F:\\git\\bestzwei\\LibreTV-Project\\LibreTV\\libretv-next\\src\\components\\douban-section.tsx","F:\\git\\bestzwei\\LibreTV-Project\\LibreTV\\libretv-next\\src\\components\\switch-source.tsx","F:\\git\\bestzwei\\LibreTV-Project\\LibreTV\\libretv-next\\src\\app\\page.tsx","F:\\git\\bestzwei\\LibreTV-Project\\LibreTV\\libretv-next\\src\\app\\watch\\page.tsx","F:\\git\\bestzwei\\LibreTV-Project\\LibreTV\\libretv-next\\src\\app\\about\\page.tsx"],"bashMutation":false,"reportedFindings":[],"findingEvents":[],"baseline":{"storageId":"mtiy5v8r-24984-7970f41ca4","createdAt":"2026-09-01T17:34:29.739Z","files":{"components/header.tsx":{"existed":true,"snapshot":"cf7e29e4902dea0aa000da86f34225ba6d7a6d13c982343f255b15f827269199.source"},"components/auth.tsx":{"existed":true,"snapshot":"e2bf0c29de09f20b0bcbf1781174fd635a68e6f9399827a6f2b9ea8ee734f34f.source"},"components/toast.tsx":{"existed":true,"snapshot":"3f66283da3f5e012a1a9d6276811bb4567dc296a737184ea09f42739b5970ddf.source"},"components/player-shell.tsx":{"existed":true,"snapshot":"2c2e07604ba8605b927025abca6058c51e6938561431132eb180f7b4f9b49252.source"},"components/video-card.tsx":{"existed":true,"snapshot":"c0edcbf68c2c69873fdf45e29857bc1b97ff875c49a34fb1ef82bcf9bfafdd6c.source"},"components/history-panel.tsx":{"existed":true,"snapshot":"b43fdff72d3f4851a308a7e25bfb25e5089cdff996639f04a08c39caae434cbd.source"},"components/source-manager.tsx":{"existed":true,"snapshot":"56215c6f4e4447dc9e57a4b127ec12f1708efd0e3f6dae17a636041d99e29bab.source"},"components/detail-modal.tsx":{"existed":true,"snapshot":"6c3ef330762d14573273534ef2c143548a0a2735a3e816e55bf186167ec75d1f.source"},"components/douban-section.tsx":{"existed":true,"snapshot":"d3cb66a01d282f3068e543d01cb615fb05fb9f322b80ca36b2aeece6d833da23.source"},"components/switch-source.tsx":{"existed":true,"snapshot":"91d91840c4d075907471114c7df24ba3d14f64a0347e7608d714ba0057d53f1c.source"},"app/page.tsx":{"existed":true,"snapshot":"6efdf509a785a0658b2e31a8c33d298de14321d9672179370e99cc76241c1eb0.source"},"app/watch/page.tsx":{"existed":true,"snapshot":"4d11f641228247e8d951ce9207cdfb266a2b24ad259b7e448f835dbbb85fd409.source"},"app/about/page.tsx":{"existed":true,"snapshot":"06f49e3158547ee7b6e5ad074bcb5d474ecd3b8d7b1418c4ab1d89973e22c5ed.source"}},"complete":false,"candidateLimit":5000,"discoveredFiles":0,"capturedFiles":13,"truncated":false,"omittedAtLeast":0,"firstOmitted":"","errors":[{"stage":"baseline-capture","target":".","reason":"global task baseline was unavailable; captured only the touched file"}]},"stateErrors":[],"omittedReportedFindings":0,"omittedFindingEvents":0,"processing":null,"updatedAt":"2026-09-01T17:38:02.199Z"}
\ No newline at end of file
diff --git a/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/06f49e3158547ee7b6e5ad074bcb5d474ecd3b8d7b1418c4ab1d89973e22c5ed.source b/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/06f49e3158547ee7b6e5ad074bcb5d474ecd3b8d7b1418c4ab1d89973e22c5ed.source
deleted file mode 100644
index 9e95b4e..0000000
--- a/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/06f49e3158547ee7b6e5ad074bcb5d474ecd3b8d7b1418c4ab1d89973e22c5ed.source
+++ /dev/null
@@ -1,51 +0,0 @@
-'use client';
-
-import { Header } from '@/components/header';
-
-export default function AboutPage() {
- return (
- <div className="min-h-screen flex flex-col">
- <Header />
- <main className="flex-1 max-w-2xl w-full mx-auto px-4 py-10 space-y-8">
- <section>
- <h1 className="text-xl font-bold text-white mb-3">关于 LibreTV</h1>
- <p className="text-sm text-gray-400 leading-relaxed">
- LibreTV 是一个免费的在线视频搜索与观看平台。输入片名即可在多个数据源中聚合搜索,
- 无需注册、无内嵌广告、不存储任何视频文件。所有播放内容均来自第三方公开接口。
- </p>
- </section>
-
- <section>
- <h2 className="text-base font-semibold text-white mb-2.5">快捷键</h2>
- <ul className="text-sm text-gray-400 space-y-1.5 list-disc list-inside">
- <li><code className="text-accent">空格</code> 播放 / 暂停</li>
- <li><code className="text-accent">←</code> / <code className="text-accent">→</code> 快退 / 快进 5 秒</li>
- <li><code className="text-accent">↑</code> / <code className="text-accent">↓</code> 音量调节</li>
- <li><code className="text-accent">F</code> 切换全屏</li>
- <li><code className="text-accent">Alt + ←/→</code> 上一集 / 下一集</li>
- <li>移动端长按视频可 3 倍速播放</li>
- </ul>
- </section>
-
- <section>
- <h2 className="text-base font-semibold text-white mb-2.5">隐私与数据</h2>
- <p className="text-sm text-gray-400 leading-relaxed">
- 你的搜索历史、观看进度等数据仅保存在本设备浏览器中(IndexedDB),不会上传到服务器。
- 聚合搜索请求由服务端代理转发,第三方数据源不会看到你的 IP 地址。
- </p>
- </section>
-
- <section>
- <h2 className="text-base font-semibold text-white mb-2.5">免责声明</h2>
- <p className="text-sm text-gray-500 leading-relaxed">
- 本项目不存储、不制作任何视频内容,仅提供第三方公开接口的聚合与播放能力。
- 请尊重版权,所有内容的合法性由对应数据源负责。
- </p>
- </section>
- </main>
- <footer className="border-t border-[#2a2a2a] py-4">
- <p className="text-center text-xs text-gray-600">LibreTV v2.0 · Apache-2.0 License</p>
- </footer>
- </div>
- );
-}
diff --git a/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/2c2e07604ba8605b927025abca6058c51e6938561431132eb180f7b4f9b49252.source b/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/2c2e07604ba8605b927025abca6058c51e6938561431132eb180f7b4f9b49252.source
deleted file mode 100644
index 2db8e70..0000000
--- a/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/2c2e07604ba8605b927025abca6058c51e6938561431132eb180f7b4f9b49252.source
+++ /dev/null
@@ -1,368 +0,0 @@
-'use client';
-
-import { useEffect, useRef, useState } from 'react';
-import Artplayer from 'artplayer';
-import Hls, { type HlsConfig } from 'hls.js';
-import { filterAdsFromM3u8 } from '@/lib/m3u8';
-import { formatTime } from '@/lib/utils';
-
-/**
- * 播放器外壳:ArtPlayer + hls.js(旧版 player.js 的 React 化)。
- * 保留:广告分片过滤、自动连播回调、进度回调、快捷键、移动端长按倍速、错误恢复。
- * 移除:DOM 手工操作、watch.html 跳转链、localStorage 状态总线。
- */
-
-// 广告过滤 loader:拦截 manifest/level 响应文本,剔除 DISCONTINUITY 广告片段
-class CustomHlsJsLoader extends Hls.DefaultConfig.loader {
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
- constructor(config: any) {
- super(config);
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
- const load = this.load.bind(this);
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
- this.load = function (context: any, config: any, callbacks: any) {
- if (context.type === 'manifest' || context.type === 'level') {
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
- const onSuccess = callbacks.onSuccess;
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
- callbacks.onSuccess = function (response: any, stats: any, ctx: any, networkDetails: any) {
- if (response.data && typeof response.data === 'string') {
- response.data = filterAdsFromM3u8(response.data);
- }
- return onSuccess(response, stats, ctx, networkDetails);
- };
- }
- load(context, config, callbacks);
- };
- }
-}
-
-interface PlayerShellProps {
- url: string;
- title: string;
- adFilter: boolean;
- autoplayNext: boolean;
- /** 进度恢复:优先 URL position,其次查询该回调(返回 0 表示无记录) */
- getRestorePosition?: () => number | Promise<number>;
- onTimeUpdate?: (position: number, duration: number) => void;
- onEnded?: () => void;
- onPause?: (position: number, duration: number) => void;
-}
-
-export function PlayerShell({
- url,
- title,
- adFilter,
- autoplayNext,
- getRestorePosition,
- onTimeUpdate,
- onEnded,
- onPause,
-}: PlayerShellProps) {
- const containerRef = useRef<HTMLDivElement>(null);
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
- const artRef = useRef<any>(null);
- const hlsRef = useRef<Hls | null>(null);
- const [loading, setLoading] = useState(true);
- const [error, setError] = useState('');
- const [hint, setHint] = useState('');
- const hintTimerRef = useRef<ReturnType<typeof setTimeout> | null>(null);
- // 用 ref 持有最新回调,避免重建播放器
- const cbs = useRef({ onTimeUpdate, onEnded, onPause, getRestorePosition });
- cbs.current = { onTimeUpdate, onEnded, onPause, getRestorePosition };
- const autoplayRef = useRef(autoplayNext);
- autoplayRef.current = autoplayNext;
-
- useEffect(() => {
- if (!containerRef.current || !url) return;
- setLoading(true);
- setError('');
-
- let disposed = false;
- let lastSave = 0;
- let playbackStarted = false;
- let errorCount = 0;
-
- const showHint = (text: string) => {
- setHint(text);
- if (hintTimerRef.current) clearTimeout(hintTimerRef.current);
- hintTimerRef.current = setTimeout(() => setHint(''), 2500);
- };
-
- const hlsConfig: Partial<HlsConfig> = {
- debug: false,
- enableWorker: true,
- backBufferLength: 90,
- maxBufferLength: 30,
- maxMaxBufferLength: 60,
- maxBufferSize: 30 * 1000 * 1000,
- maxBufferHole: 0.5,
- fragLoadingMaxRetry: 6,
- fragLoadingRetryDelay: 1000,
- manifestLoadingMaxRetry: 3,
- manifestLoadingRetryDelay: 1000,
- startLevel: -1,
- abrEwmaDefaultEstimate: 500_000,
- appendErrorMaxRetry: 5,
- };
- if (adFilter) hlsConfig.loader = CustomHlsJsLoader as unknown as HlsConfig['loader'];
-
- /**
- * 初始化 HLS。allowProxyFallback:直连致命网络错误(CORS/防盗链/分片被拒)时,
- * 自动改走同源 cookie 鉴权的 /api/proxy 重试一次。
- */
- const setupHls = (video: HTMLVideoElement, mediaUrl: string, allowProxyFallback: boolean) => {
- hlsRef.current?.destroy();
- const hls = new Hls(hlsConfig);
- hlsRef.current = hls;
-
- hls.loadSource(mediaUrl);
- hls.attachMedia(video);
-
- hls.on(Hls.Events.MANIFEST_PARSED, () => {
- video.play().catch(() => {});
- });
- hls.on(Hls.Events.FRAG_LOADED, () => setLoading(false));
- hls.on(Hls.Events.ERROR, (_evt, data) => {
- errorCount++;
- if (data.fatal && !playbackStarted) {
- switch (data.type) {
- case Hls.ErrorTypes.NETWORK_ERROR:
- if (
- allowProxyFallback &&
- !mediaUrl.startsWith('/api/proxy/') &&
- (errorCount >= 2 || data.details === 'manifestLoadError')
- ) {
- showHint('直连失败,改用代理重试...');
- setupHls(video, `/api/proxy/${encodeURIComponent(mediaUrl)}`, false);
- return;
- }
- hls.startLoad();
- break;
- case Hls.ErrorTypes.MEDIA_ERROR:
- hls.recoverMediaError();
- break;
- default:
- if (errorCount > 3) {
- setLoading(false);
- setError('视频加载失败,可能是格式不兼容或源不可用,请尝试其他视频源');
- }
- }
- }
- });
- };
-
- const art = new Artplayer({
- container: containerRef.current,
- url,
- type: 'm3u8',
- volume: 0.8,
- autoplay: true,
- pip: true,
- autoMini: true,
- screenshot: true,
- setting: true,
- playbackRate: true,
- aspectRatio: true,
- fullscreen: true,
- fullscreenWeb: true,
- miniProgressBar: true,
- mutex: true,
- backdrop: true,
- playsInline: true,
- airplay: true,
- hotkey: false,
- theme: '#23ade5',
- lang: navigator.language.toLowerCase().startsWith('zh') ? 'zh-cn' : 'en',
- moreVideoAttr: { crossOrigin: 'anonymous', playsInline: true },
- customType: {
- m3u8: (video: HTMLVideoElement, mediaUrl: string) => {
- setupHls(video, mediaUrl, true);
- },
- },
- });
- artRef.current = art;
- art.on('video:loadedmetadata', () => {
- // ArtPlayer 运行时支持 title 选项(类型定义未覆盖),用于界面标题展示
- try {
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
- (art as any).title = title;
- } catch { /* 忽略 */ }
- });
-
- art.on('ready', () => {
- // 进度恢复
- const restore = async () => {
- const saved = (await cbs.current.getRestorePosition?.()) ?? 0;
- const duration = art.duration || 0;
- if (saved > 10 && duration > 0 && saved < duration - 2) {
- art.currentTime = saved;
- showHint(`已从 ${formatTime(saved)} 继续播放`);
- }
- };
- restore();
- });
-
- art.on('video:playing', () => {
- playbackStarted = true;
- setLoading(false);
- setError('');
- });
- art.on('video:loadedmetadata', () => setLoading(false));
- art.on('video:error', () => {
- setLoading(false);
- setError('视频播放失败,请尝试其他视频源');
- });
- art.on('video:timeupdate', () => {
- const now = Date.now();
- if (now - lastSave > 5000) {
- lastSave = now;
- cbs.current.onTimeUpdate?.(art.currentTime, art.duration);
- }
- });
- art.on('video:pause', () => {
- cbs.current.onPause?.(art.currentTime, art.duration);
- });
- art.on('video:ended', () => {
- cbs.current.onEnded?.();
- });
-
- // —— 键盘快捷键(旧版 hotkey:false + 自定义逻辑的移植) ——
- const shortcuts = (e: KeyboardEvent) => {
- const target = e.target as HTMLElement;
- if (target.tagName === 'INPUT' || target.tagName === 'TEXTAREA') return;
- const current = artRef.current;
- if (!current) return;
- if (e.altKey && e.key === 'ArrowLeft') { e.preventDefault(); return; } // 由父层处理集数切换
- if (e.altKey && e.key === 'ArrowRight') { e.preventDefault(); return; }
- switch (e.key) {
- case 'ArrowLeft':
- if (current.currentTime > 5) { current.currentTime -= 5; showHint('快退 5s'); e.preventDefault(); }
- break;
- case 'ArrowRight':
- if (current.duration - current.currentTime > 5) { current.currentTime += 5; showHint('快进 5s'); e.preventDefault(); }
- break;
- case 'ArrowUp':
- if (current.volume < 1) { current.volume = Math.min(1, current.volume + 0.1); showHint(`音量 ${Math.round(current.volume * 100)}%`); e.preventDefault(); }
- break;
- case 'ArrowDown':
- if (current.volume > 0) { current.volume = Math.max(0, current.volume - 0.1); showHint(`音量 ${Math.round(current.volume * 100)}%`); e.preventDefault(); }
- break;
- case ' ':
- current.toggle(); showHint('播放/暂停'); e.preventDefault();
- break;
- case 'f': case 'F':
- current.fullscreen = !current.fullscreen; e.preventDefault();
- break;
- }
- };
- document.addEventListener('keydown', shortcuts);
-
- // —— 移动端长按 3 倍速 ——
- let longPressTimer: ReturnType<typeof setTimeout> | null = null;
- let isLongPress = false;
- let originalRate = 1.0;
- const el = containerRef.current;
-
- const onTouchStart = (e: TouchEvent) => {
- if (art.video?.paused) return;
- originalRate = art.video.playbackRate;
- longPressTimer = setTimeout(() => {
- if (art.video?.paused) return;
- art.video.playbackRate = 3.0;
- isLongPress = true;
- showHint('3 倍速');
- e.preventDefault();
- }, 500);
- };
- const onTouchEnd = () => {
- if (longPressTimer) { clearTimeout(longPressTimer); longPressTimer = null; }
- if (isLongPress) {
- art.video.playbackRate = originalRate;
- isLongPress = false;
- showHint(`${originalRate} 倍速`);
- }
- };
- const onTouchMove = (e: TouchEvent) => {
- if (isLongPress) e.preventDefault();
- };
- el?.addEventListener('touchstart', onTouchStart, { passive: false });
- el?.addEventListener('touchend', onTouchEnd);
- el?.addEventListener('touchcancel', onTouchEnd);
- el?.addEventListener('touchmove', onTouchMove, { passive: false });
-
- // 双击全屏
- art.on('video:dblclick', () => {
- art.fullscreen = !art.fullscreen;
- });
-
- // 卸载与页面隐藏时保存进度
- const saveOnHide = () => {
- if (document.visibilityState === 'hidden') {
- cbs.current.onPause?.(art.currentTime, art.duration);
- }
- };
- document.addEventListener('visibilitychange', saveOnHide);
-
- return () => {
- disposed = true;
- void disposed;
- // 卸载前刷一次最终进度,避免丢失最后几秒
- try {
- cbs.current.onPause?.(art.currentTime, art.duration);
- } catch { /* 忽略 */ }
- document.removeEventListener('keydown', shortcuts);
- document.removeEventListener('visibilitychange', saveOnHide);
- if (hintTimerRef.current) clearTimeout(hintTimerRef.current);
- el?.removeEventListener('touchstart', onTouchStart);
- el?.removeEventListener('touchend', onTouchEnd);
- el?.removeEventListener('touchcancel', onTouchEnd);
- el?.removeEventListener('touchmove', onTouchMove);
- hlsRef.current?.destroy();
- hlsRef.current = null;
- art.destroy();
- artRef.current = null;
- };
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, [url, adFilter]);
-
- // 暴露实例给父组件做集数切换(换集时用 art.switch,避免整页重建)
- useEffect(() => {
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
- (window as any).__libretv_player = artRef;
- return () => {
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
- delete (window as any).__libretv_player;
- };
- }, []);
-
- return (
- <div className="relative w-full h-full">
- <div ref={containerRef} className="w-full h-full" />
- {loading && !error && (
- <div className="absolute inset-0 flex flex-col items-center justify-center gap-3 bg-black/60 pointer-events-none">
- <div className="h-9 w-9 rounded-full border-4 border-[#3a3a3a] border-t-accent animate-spin" />
- <p className="text-sm text-gray-300">正在加载视频...</p>
- </div>
- )}
- {error && (
- <div className="absolute inset-0 flex flex-col items-center justify-center gap-2 bg-black/80">
- <p className="text-red-400 text-sm">{error}</p>
- <button className="btn-ghost text-xs" onClick={() => location.reload()}>
- 重新加载
- </button>
- </div>
- )}
- {hint && (
- <div className="absolute top-4 left-1/2 -translate-x-1/2 bg-black/70 text-white text-sm px-3 py-1.5 rounded-full pointer-events-none animate-fade-in">
- {hint}
- </div>
- )}
- {autoplayNext && !error && (
- <div className="absolute bottom-16 right-3 text-[10px] text-gray-400 bg-black/50 px-2 py-0.5 rounded pointer-events-none">
- 自动连播已开启
- </div>
- )}
- </div>
- );
-}
diff --git a/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/3f66283da3f5e012a1a9d6276811bb4567dc296a737184ea09f42739b5970ddf.source b/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/3f66283da3f5e012a1a9d6276811bb4567dc296a737184ea09f42739b5970ddf.source
deleted file mode 100644
index a6b9ef0..0000000
--- a/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/3f66283da3f5e012a1a9d6276811bb4567dc296a737184ea09f42739b5970ddf.source
+++ /dev/null
@@ -1,75 +0,0 @@
-'use client';
-
-import { createContext, useCallback, useContext, useRef, useState, type ReactNode } from 'react';
-import { cn } from '@/lib/utils';
-
-// —— Toast —— 替代旧版 3 秒/条串行队列,支持并行堆叠与自动过期
-
-interface ToastItem {
- id: number;
- message: string;
- type: 'error' | 'success' | 'info' | 'warning';
-}
-
-interface ToastContextValue {
- toast: (message: string, type?: ToastItem['type']) => void;
-}
-
-const ToastContext = createContext<ToastContextValue>({ toast: () => {} });
-
-export function useToast(): ToastContextValue {
- return useContext(ToastContext);
-}
-
-const TYPE_STYLES: Record<ToastItem['type'], string> = {
- error: 'bg-red-500',
- success: 'bg-green-600',
- info: 'bg-blue-500',
- warning: 'bg-yellow-600',
-};
-
-export function ToastProvider({ children }: { children: ReactNode }) {
- const [items, setItems] = useState<ToastItem[]>([]);
- const idRef = useRef(0);
-
- const toast = useCallback((message: string, type: ToastItem['type'] = 'info') => {
- const id = ++idRef.current;
- setItems((prev) => [...prev.slice(-3), { id, message, type }]);
- setTimeout(() => {
- setItems((prev) => prev.filter((t) => t.id !== id));
- }, 3000);
- }, []);
-
- return (
- <ToastContext.Provider value={{ toast }}>
- {children}
- <div className="fixed top-4 left-1/2 -translate-x-1/2 z-[100] flex flex-col gap-2 items-center pointer-events-none">
- {items.map((t) => (
- <div
- key={t.id}
- className={cn(
- 'px-4 py-2.5 rounded-lg shadow-lg text-white text-sm max-w-md animate-slide-up',
- TYPE_STYLES[t.type]
- )}
- >
- {t.message}
- </div>
- ))}
- </div>
- </ToastContext.Provider>
- );
-}
-
-// —— Loading 遮罩 ——(带 30s 自动解除,防无限 loading)
-
-export function LoadingOverlay({ show, message = '加载中...' }: { show: boolean; message?: string }) {
- if (!show) return null;
- return (
- <div className="fixed inset-0 z-[90] flex items-center justify-center bg-black/70 animate-fade-in">
- <div className="flex flex-col items-center gap-3">
- <div className="h-10 w-10 rounded-full border-4 border-[#3a3a3a] border-t-accent animate-spin" />
- <p className="text-sm text-gray-300">{message}</p>
- </div>
- </div>
- );
-}
diff --git a/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/4d11f641228247e8d951ce9207cdfb266a2b24ad259b7e448f835dbbb85fd409.source b/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/4d11f641228247e8d951ce9207cdfb266a2b24ad259b7e448f835dbbb85fd409.source
deleted file mode 100644
index e508e66..0000000
--- a/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/4d11f641228247e8d951ce9207cdfb266a2b24ad259b7e448f835dbbb85fd409.source
+++ /dev/null
@@ -1,345 +0,0 @@
-'use client';
-
-import { Suspense, useCallback, useEffect, useMemo, useRef, useState } from 'react';
-import { useRouter, useSearchParams } from 'next/navigation';
-import Link from 'next/link';
-import { useQuery } from '@tanstack/react-query';
-import { api } from '@/lib/client-api';
-import { PlayerShell } from '@/components/player-shell';
-import { SwitchSourceModal } from '@/components/switch-source';
-import { useAuth } from '@/components/auth';
-import { resolveSource, useAppStore } from '@/lib/store';
-import {
- clearProgress,
- progressKeyOf,
- saveProgress,
- updateHistoryProgress,
- upsertHistory,
- db,
-} from '@/lib/db';
-import { cn } from '@/lib/utils';
-
-/**
- * 播放页(唯一入口,替代旧版 watch.html → player.html 跳转链)。
- * 状态全部由 URL 驱动:/watch?source=xx&id=..&index=..&title=..
- * 集数列表由服务端详情接口获取;进度与历史走 IndexedDB。
- */
-export default function WatchPage() {
- return (
- <Suspense>
- <WatchContent />
- </Suspense>
- );
-}
-
-function WatchContent() {
- const searchParams = useSearchParams();
- const router = useRouter();
- const store = useAppStore();
- const { verified } = useAuth();
-
- const sourceKey = searchParams.get('source') || '';
- const vodId = searchParams.get('id') || '';
- const directUrl = searchParams.get('url') || '';
- const titleParam = searchParams.get('title') || '';
- const indexParam = parseInt(searchParams.get('index') || '0', 10) || 0;
-
- const [reversed, setReversed] = useState(false);
- const [switchOpen, setSwitchOpen] = useState(false);
-
- const source = resolveSource(store, sourceKey, {
- url: searchParams.get('sourceUrl') || undefined,
- detail: searchParams.get('detail') || undefined,
- });
-
- // 详情查询:无 id(纯直连链接分享)时跳过
- const detailQuery = useQuery({
- queryKey: ['detail', sourceKey, vodId, source?.url],
- queryFn: ({ signal }) => api.detail(vodId, source!, signal),
- enabled: Boolean(source && vodId && verified),
- staleTime: 5 * 60_000,
- });
-
- const episodes = detailQuery.data?.episodes ?? [];
- const videoTitle = titleParam || detailQuery.data?.videoInfo?.title || '未知视频';
-
- // 当前播放地址:优先取剧集列表中的当前集,其次直连 URL 参数
- const currentUrl = useMemo(() => {
- if (episodes.length > 0) {
- const idx = Math.min(Math.max(indexParam, 0), episodes.length - 1);
- return episodes[idx] || directUrl;
- }
- return directUrl;
- }, [episodes, indexParam, directUrl]);
-
- const currentIndex = useMemo(() => {
- if (episodes.length > 0) return Math.min(Math.max(indexParam, 0), episodes.length - 1);
- return indexParam;
- }, [episodes, indexParam]);
-
- const goEpisode = useCallback(
- (index: number) => {
- const sp = new URLSearchParams(searchParams.toString());
- sp.set('index', String(index));
- sp.set('url', episodes[index] || directUrl);
- sp.delete('position');
- router.replace(`/watch?${sp.toString()}`, { scroll: false });
- },
- [router, searchParams, episodes, directUrl]
- );
-
- // 进度恢复优先级:URL position 参数 > IndexedDB 记录
- const getRestorePosition = useCallback(async () => {
- const urlPos = parseInt(searchParams.get('position') || '0', 10) || 0;
- if (urlPos > 0) return urlPos;
- if (!vodId) return 0;
- const entry = await db.progress.get(progressKeyOf(sourceKey, vodId, currentIndex));
- return entry?.position ?? 0;
- }, [searchParams, sourceKey, vodId, currentIndex]);
-
- // 写入观看历史(进入页面即记录,进度后续增量更新)
- useEffect(() => {
- if (!verified || !sourceKey || !currentUrl) return;
- const timer = setTimeout(() => {
- upsertHistory({
- sourceKey,
- sourceUrl: source?.url,
- vodId: vodId || currentUrl,
- title: videoTitle,
- pic: detailQuery.data?.videoInfo?.cover,
- episodeIndex: currentIndex,
- totalEpisodes: episodes.length,
- playbackPosition: 0,
- duration: 0,
- timestamp: Date.now(),
- }).catch(() => {});
- }, 2000);
- return () => clearTimeout(timer);
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, [verified, sourceKey, vodId, currentIndex, videoTitle, currentUrl]);
-
- const handleTimeUpdate = useCallback(
- (position: number, duration: number) => {
- if (vodId) {
- saveProgress(sourceKey, vodId, currentIndex, position, duration).catch(() => {});
- updateHistoryProgress(sourceKey, vodId || currentUrl, position, duration).catch(() => {});
- }
- },
- [sourceKey, vodId, currentIndex, currentUrl]
- );
-
- const handlePause = useCallback(
- (position: number, duration: number) => {
- if (vodId) {
- saveProgress(sourceKey, vodId, currentIndex, position, duration).catch(() => {});
- updateHistoryProgress(sourceKey, vodId || currentUrl, position, duration).catch(() => {});
- }
- },
- [sourceKey, vodId, currentIndex, currentUrl]
- );
-
- const handleEnded = useCallback(() => {
- if (vodId) clearProgress(sourceKey, vodId, currentIndex).catch(() => {});
- if (store.autoplayNext && currentIndex < episodes.length - 1) {
- setTimeout(() => goEpisode(currentIndex + 1), 800);
- }
- }, [store.autoplayNext, currentIndex, episodes.length, goEpisode, sourceKey, vodId]);
-
- // Alt+←/→ 集数切换快捷键
- useEffect(() => {
- const handler = (e: KeyboardEvent) => {
- if (!e.altKey) return;
- if (e.key === 'ArrowLeft' && currentIndex > 0) {
- e.preventDefault();
- goEpisode(currentIndex - 1);
- } else if (e.key === 'ArrowRight' && currentIndex < episodes.length - 1) {
- e.preventDefault();
- goEpisode(currentIndex + 1);
- }
- };
- document.addEventListener('keydown', handler);
- return () => document.removeEventListener('keydown', handler);
- }, [currentIndex, episodes.length, goEpisode]);
-
- const orderedEpisodes = reversed ? [...episodes].map((_, i) => episodes.length - 1 - i) : episodes.map((_, i) => i);
-
- if (!verified) {
- return (
- <div className="min-h-screen flex items-center justify-center">
- <p className="text-gray-500 text-sm">等待访问验证...</p>
- </div>
- );
- }
-
- if (!source) {
- return (
- <div className="min-h-screen flex items-center justify-center px-4">
- <div className="text-center max-w-md">
- <h1 className="text-white font-medium mb-2">数据源不存在</h1>
- <p className="text-sm text-gray-400 mb-4">
- 该视频来自数据源「{sourceKey}」,但它可能已被删除。请在设置中重新添加后重试。
- </p>
- <Link href="/" className="btn-primary">返回首页</Link>
- </div>
- </div>
- );
- }
-
- return (
- <div className="min-h-screen flex flex-col">
- <header className="sticky top-0 z-40 bg-surface/90 backdrop-blur border-b border-[#2a2a2a]">
- <div className="max-w-7xl mx-auto px-4 h-14 flex items-center gap-3">
- <BackButton />
- <div className="min-w-0">
- <h1 className="text-sm font-medium text-white truncate">{videoTitle}</h1>
- <p className="text-xs text-gray-500">
- {source.name}
- {episodes.length > 0 && ` · 第 ${currentIndex + 1}/${episodes.length} 集`}
- </p>
- </div>
- <div className="ml-auto flex items-center gap-2">
- <button className="btn-ghost !py-1.5 text-xs" onClick={() => setSwitchOpen(true)}>
- 切换资源
- </button>
- </div>
- </div>
- </header>
-
- <main className="flex-1 max-w-7xl w-full mx-auto px-4 py-4">
- <div className="grid grid-cols-1 lg:grid-cols-[1fr_300px] gap-4">
- <div>
- <div className="aspect-video bg-black rounded-lg overflow-hidden">
- {currentUrl ? (
- <PlayerShell
- url={currentUrl}
- title={videoTitle}
- adFilter={store.adFilter}
- autoplayNext={store.autoplayNext}
- getRestorePosition={getRestorePosition}
- onTimeUpdate={handleTimeUpdate}
- onPause={handlePause}
- onEnded={handleEnded}
- />
- ) : (
- <div className="w-full h-full flex items-center justify-center">
- {detailQuery.isLoading ? (
- <div className="h-9 w-9 rounded-full border-4 border-[#3a3a3a] border-t-accent animate-spin" />
- ) : (
- <p className="text-gray-500 text-sm">
- {detailQuery.isError ? '视频加载失败,请尝试其他资源' : '无可用播放地址'}
- </p>
- )}
- </div>
- )}
- </div>
-
- {/* 操作栏 */}
- <div className="flex flex-wrap items-center gap-2 mt-3">
- <button
- className="btn-ghost !py-1.5 text-xs"
- disabled={currentIndex <= 0}
- onClick={() => goEpisode(currentIndex - 1)}
- >
- 上一集
- </button>
- <button
- className="btn-ghost !py-1.5 text-xs"
- disabled={episodes.length === 0 || currentIndex >= episodes.length - 1}
- onClick={() => goEpisode(currentIndex + 1)}
- >
- 下一集
- </button>
- <button className="btn-ghost !py-1.5 text-xs" onClick={() => setReversed((v) => !v)}>
- {reversed ? '正序排列' : '倒序排列'}
- </button>
- <label className="flex items-center gap-1.5 text-xs text-gray-400 ml-auto cursor-pointer">
- <input
- type="checkbox"
- className="h-3.5 w-3.5 accent-[#23ade5]"
- checked={store.autoplayNext}
- onChange={(e) => store.updateSettings({ autoplayNext: e.target.checked })}
- />
- 自动连播
- </label>
- </div>
- </div>
-
- {/* 剧集侧栏 */}
- <aside className="bg-surface-raised rounded-lg p-3 h-fit">
- <div className="flex items-center justify-between mb-2.5">
- <h2 className="text-sm font-semibold text-gray-300">
- 剧集列表{episodes.length > 0 && `(${episodes.length})`}
- </h2>
- </div>
- {episodes.length === 0 ? (
- <p className="text-center text-xs text-gray-500 py-8">
- {detailQuery.isLoading ? '加载中...' : detailQuery.isError ? '获取剧集失败' : '暂无剧集信息'}
- </p>
- ) : (
- <div className="grid grid-cols-5 lg:grid-cols-4 gap-1.5 max-h-[65vh] overflow-y-auto scrollbar-thin pr-1">
- {orderedEpisodes.map((realIndex) => (
- <EpisodeButton
- key={realIndex}
- index={realIndex}
- active={realIndex === currentIndex}
- onClick={() => goEpisode(realIndex)}
- />
- ))}
- </div>
- )}
- <p className="hidden md:block text-[10px] text-gray-600 mt-3 leading-relaxed">
- 快捷键:空格 播放/暂停 · ←/→ 快退/快进 5s · ↑/↓ 音量 · F 全屏 · Alt+←/→ 切换集数
- </p>
- </aside>
- </div>
- </main>
-
- {switchOpen && (
- <SwitchSourceModal
- currentTitle={videoTitle}
- currentSourceKey={sourceKey}
- currentVodId={vodId}
- currentIndex={currentIndex}
- onClose={() => setSwitchOpen(false)}
- />
- )}
- </div>
- );
-}
-
-/** 集数按钮:激活时自动滚动进可视区(长剧列表) */
-function EpisodeButton({ index, active, onClick }: { index: number; active: boolean; onClick: () => void }) {
- const ref = useRef<HTMLButtonElement>(null);
-
- useEffect(() => {
- if (active) ref.current?.scrollIntoView({ block: 'nearest' });
- }, [active]);
-
- return (
- <button
- ref={ref}
- className={cn('btn !px-1 text-xs !py-1.5', active ? 'episode-active' : 'btn-ghost')}
- onClick={onClick}
- >
- {index + 1}
- </button>
- );
-}
-
-function BackButton() {
- const router = useRouter();
- return (
- <button
- className="p-2 -ml-2 rounded-md text-gray-400 hover:text-white hover:bg-surface-hover transition-colors"
- onClick={() => {
- if (window.history.length > 1) router.back();
- else router.push('/');
- }}
- aria-label="返回"
- >
- <svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M15 19l-7-7 7-7" />
- </svg>
- </button>
- );
-}
diff --git a/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/56215c6f4e4447dc9e57a4b127ec12f1708efd0e3f6dae17a636041d99e29bab.source b/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/56215c6f4e4447dc9e57a4b127ec12f1708efd0e3f6dae17a636041d99e29bab.source
deleted file mode 100644
index 163b8d2..0000000
--- a/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/56215c6f4e4447dc9e57a4b127ec12f1708efd0e3f6dae17a636041d99e29bab.source
+++ /dev/null
@@ -1,373 +0,0 @@
-'use client';
-
-import { useEffect, useState } from 'react';
-import { Drawer } from './header';
-import { useAppStore } from '@/lib/store';
-import { useToast } from './toast';
-import { validateSourceUrl, cn } from '@/lib/utils';
-import { exportConfig, importConfig } from '@/lib/db';
-import { useAuth } from './auth';
-
-/**
- * 设置抽屉:数据源管理 + 播放/过滤选项 + 配置导入导出。
- * 替代旧版散落在设置面板里的各处 DOM 拼接逻辑。
- */
-
-export function SourceManagerDrawer({ open, onClose }: { open: boolean; onClose: () => void }) {
- const store = useAppStore();
- const [editing, setEditing] = useState<string | null>(null);
-
- return (
- <Drawer open={open} onClose={onClose} title="设置">
- <section className="mb-6">
- <SectionTitle
- title="数据源"
- extra={
- <button className="btn-primary !py-1 !px-2.5 text-xs" onClick={() => setEditing('__new__')}>
- + 添加 API
- </button>
- }
- />
- <SourceForm
- visible={editing === '__new__'}
- onCancel={() => setEditing(null)}
- onSubmit={(data) => {
- store.addCustomApi(data);
- setEditing(null);
- }}
- />
- {store.customAPIs.length === 0 && editing !== '__new__' ? (
- <EmptySourceGuide onAdd={() => setEditing('__new__')} />
- ) : (
- <ul className="space-y-2">
- {store.customAPIs.map((api) => (
- <li key={api.key} className="bg-[#1e1e1e] rounded-lg p-3">
- {editing === api.key ? (
- <SourceForm
- visible
- initial={api}
- onCancel={() => setEditing(null)}
- onSubmit={(data) => {
- store.updateCustomApi(api.key, data);
- setEditing(null);
- }}
- />
- ) : (
- <div className="flex items-center gap-2">
- <input
- type="checkbox"
- className="h-4 w-4 accent-[#23ade5]"
- checked={store.selectedKeys.includes(api.key)}
- onChange={() => store.toggleSourceSelected(api.key)}
- aria-label={`选择 ${api.name}`}
- />
- <div className="flex-1 min-w-0">
- <div className="text-sm font-medium text-white truncate">
- {api.name}
- {api.isAdult && <span className="text-pink-400 text-xs ml-1">(18+)</span>}
- </div>
- <div className="text-xs text-gray-500 truncate">{api.url}</div>
- </div>
- <button
- className="text-gray-400 hover:text-accent text-xs px-1.5"
- onClick={() => setEditing(api.key)}
- aria-label="编辑"
- >
- ✎
- </button>
- <button
- className="text-gray-400 hover:text-red-400 text-xs px-1.5"
- onClick={() => store.removeCustomApi(api.key)}
- aria-label="删除"
- >
- ✕
- </button>
- </div>
- )}
- </li>
- ))}
- </ul>
- )}
- </section>
-
- <section className="mb-6">
- <SectionTitle title="播放与过滤" />
- <div className="space-y-3">
- <ToggleRow
- label="成人内容过滤"
- description="过滤“伦理片”等分类的结果"
- checked={store.yellowFilter}
- onChange={(v) => store.updateSettings({ yellowFilter: v })}
- />
- <ToggleRow
- label="广告过滤"
- description="过滤 m3u8 中的广告分片"
- checked={store.adFilter}
- onChange={(v) => store.updateSettings({ adFilter: v })}
- />
- <ToggleRow
- label="自动连播"
- description="单集播放结束后自动播放下一集"
- checked={store.autoplayNext}
- onChange={(v) => store.updateSettings({ autoplayNext: v })}
- />
- <ToggleRow
- label="豆瓣推荐"
- description="在首页展示豆瓣热门影视"
- checked={store.doubanEnabled}
- onChange={(v) => store.updateSettings({ doubanEnabled: v })}
- />
- </div>
- </section>
-
- <section className="mb-6">
- <SectionTitle title="封面图加载" />
- <div className="space-y-2">
- <SelectRow
- label="加载方式"
- value={store.imageProxyMode}
- onChange={(v) => store.updateSettings({ imageProxyMode: v as 'direct' | 'proxy' | 'custom' })}
- options={[
- { value: 'direct', label: '直连(默认)' },
- { value: 'proxy', label: '内置代理' },
- { value: 'custom', label: '自定义代理' },
- ]}
- />
- {store.imageProxyMode === 'custom' && (
- <input
- className="input w-full"
- placeholder="代理模板,如 https://p.example.com/?url={url}"
- value={store.customImageProxy}
- onChange={(e) => store.updateSettings({ customImageProxy: e.target.value })}
- />
- )}
- <p className="text-xs text-gray-500">豆瓣封面在某些网络下直连会被拒绝,可切换为内置代理。</p>
- </div>
- </section>
-
- <section>
- <SectionTitle title="配置" />
- <ConfigIoButtons />
- </section>
- </Drawer>
- );
-}
-
-function SectionTitle({ title, extra }: { title: string; extra?: React.ReactNode }) {
- return (
- <div className="flex items-center justify-between mb-2.5">
- <h3 className="text-sm font-semibold text-gray-300">{title}</h3>
- {extra}
- </div>
- );
-}
-
-function EmptySourceGuide({ onAdd }: { onAdd: () => void }) {
- return (
- <div className="border border-dashed border-[#3a3a3a] rounded-lg p-5 text-center">
- <p className="text-sm text-gray-400 mb-1">还没有添加任何数据源</p>
- <p className="text-xs text-gray-500 mb-3">添加一个 Apple CMS 采集站 API 即可开始搜索影片</p>
- <button className="btn-primary text-xs" onClick={onAdd}>
- 添加第一个数据源
- </button>
- </div>
- );
-}
-
-function SourceForm({
- visible,
- initial,
- onCancel,
- onSubmit,
-}: {
- visible: boolean;
- initial?: { key: string; name: string; url: string; detail?: string; isAdult?: boolean };
- onCancel: () => void;
- onSubmit: (data: { name: string; url: string; detail?: string; isAdult?: boolean }) => void;
-}) {
- const [name, setName] = useState(initial?.name ?? '');
- const [url, setUrl] = useState(initial?.url ?? '');
- const [detail, setDetail] = useState(initial?.detail ?? '');
- const [isAdult, setIsAdult] = useState(initial?.isAdult ?? false);
- const { toast } = useToast();
-
- useEffect(() => {
- if (visible) {
- setName(initial?.name ?? '');
- setUrl(initial?.url ?? '');
- setDetail(initial?.detail ?? '');
- setIsAdult(initial?.isAdult ?? false);
- }
- }, [visible, initial]);
-
- if (!visible) return null;
-
- const submit = () => {
- const n = name.trim();
- const u = url.trim().replace(/\/+$/, '');
- if (!n || !u) {
- toast('请输入 API 名称和链接', 'warning');
- return;
- }
- if (!validateSourceUrl(u)) {
- toast('API 链接需以 http:// 或 https:// 开头', 'warning');
- return;
- }
- onSubmit({ name: n, url: u, detail: detail.trim() || undefined, isAdult });
- };
-
- return (
- <div className="space-y-2 border border-[#3a3a3a] rounded-lg p-3 bg-[#1a1a1a]">
- <input className="input w-full" placeholder="名称" value={name} onChange={(e) => setName(e.target.value)} />
- <input
- className="input w-full"
- placeholder="API 地址,如 https://example.com/api.php/provide/vod"
- value={url}
- onChange={(e) => setUrl(e.target.value)}
- />
- <input
- className="input w-full"
- placeholder="详情页地址(可选),如 https://example.com"
- value={detail}
- onChange={(e) => setDetail(e.target.value)}
- />
- <label className="flex items-center gap-2 text-xs text-gray-400">
- <input type="checkbox" className="h-3.5 w-3.5 accent-pink-500" checked={isAdult} onChange={(e) => setIsAdult(e.target.checked)} />
- 标记为成人内容源(受成人过滤控制)
- </label>
- <div className="flex gap-2 justify-end">
- <button className="btn-ghost !py-1 text-xs" onClick={onCancel}>
- 取消
- </button>
- <button className="btn-primary !py-1 text-xs" onClick={submit}>
- {initial ? '更新' : '添加'}
- </button>
- </div>
- </div>
- );
-}
-
-function ToggleRow({
- label,
- description,
- checked,
- onChange,
-}: {
- label: string;
- description: string;
- checked: boolean;
- onChange: (v: boolean) => void;
-}) {
- return (
- <div className="flex items-center justify-between gap-4">
- <div>
- <div className="text-sm text-white">{label}</div>
- <div className="text-xs text-gray-500">{description}</div>
- </div>
- <button
- role="switch"
- aria-checked={checked}
- aria-label={label}
- className={cn(
- 'relative h-6 w-11 rounded-full transition-colors shrink-0',
- checked ? 'bg-accent' : 'bg-[#3a3a3a]'
- )}
- onClick={() => onChange(!checked)}
- >
- <span
- className={cn(
- 'absolute top-0.5 h-5 w-5 rounded-full bg-white transition-transform',
- checked ? 'translate-x-[22px]' : 'translate-x-0.5'
- )}
- />
- </button>
- </div>
- );
-}
-
-function SelectRow({
- label,
- value,
- onChange,
- options,
-}: {
- label: string;
- value: string;
- onChange: (v: string) => void;
- options: { value: string; label: string }[];
-}) {
- return (
- <div className="flex items-center justify-between gap-4">
- <span className="text-sm text-white">{label}</span>
- <select
- className="input !py-1.5 !px-2 text-xs"
- value={value}
- onChange={(e) => onChange(e.target.value)}
- aria-label={label}
- >
- {options.map((o) => (
- <option key={o.value} value={o.value}>
- {o.label}
- </option>
- ))}
- </select>
- </div>
- );
-}
-
-function ConfigIoButtons() {
- const { toast } = useToast();
- const { verified, openLogin } = useAuth();
-
- const doExport = async () => {
- if (verified === false) {
- openLogin();
- return;
- }
- try {
- const json = await exportConfig();
- const blob = new Blob([json], { type: 'application/json' });
- const url = URL.createObjectURL(blob);
- const a = document.createElement('a');
- a.href = url;
- a.download = `LibreTV-Settings_${Date.now()}.json`;
- a.click();
- URL.revokeObjectURL(url);
- toast('配置已导出', 'success');
- } catch {
- toast('导出失败', 'error');
- }
- };
-
- const doImport = async (file: File) => {
- try {
- const content = await file.text();
- await importConfig(content);
- toast('配置导入成功,即将刷新页面', 'success');
- setTimeout(() => window.location.reload(), 1500);
- } catch (err) {
- toast(err instanceof Error ? err.message : '导入失败', 'error');
- }
- };
-
- return (
- <div className="flex gap-2">
- <button className="btn-ghost flex-1 text-xs" onClick={doExport}>
- 导出配置
- </button>
- <label className="btn-ghost flex-1 text-xs cursor-pointer">
- 导入配置
- <input
- type="file"
- accept=".json,application/json"
- className="hidden"
- onChange={(e) => {
- const f = e.target.files?.[0];
- if (f) doImport(f);
- e.target.value = '';
- }}
- />
- </label>
- </div>
- );
-}
diff --git a/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/6c3ef330762d14573273534ef2c143548a0a2735a3e816e55bf186167ec75d1f.source b/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/6c3ef330762d14573273534ef2c143548a0a2735a3e816e55bf186167ec75d1f.source
deleted file mode 100644
index 4efb895..0000000
--- a/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/6c3ef330762d14573273534ef2c143548a0a2735a3e816e55bf186167ec75d1f.source
+++ /dev/null
@@ -1,235 +0,0 @@
-'use client';
-
-import { useEffect, useRef, useState } from 'react';
-import { useRouter } from 'next/navigation';
-import { api } from '@/lib/client-api';
-import type { SearchResultItem, VideoDetail } from '@/lib/types';
-import { buildImageUrl, buildWatchUrl } from '@/lib/utils';
-import { useAppStore, resolveSource } from '@/lib/store';
-import { useToast } from './toast';
-import { cn } from '@/lib/utils';
-import { addSearchHistory } from '@/lib/db';
-
-/**
- * 详情弹窗:剧集列表 + 排序 + 复制链接。
- * 剧集点击 → /watch 路由(URL 携带定位参数,可分享、可后退)。
- */
-
-export function DetailModal({ item, onClose }: { item: SearchResultItem | null; onClose: () => void }) {
- const store = useAppStore();
- const router = useRouter();
- const { toast } = useToast();
- const [detail, setDetail] = useState<VideoDetail | null>(null);
- const [loading, setLoading] = useState(false);
- const [error, setError] = useState('');
- const [reversed, setReversed] = useState(false);
- const [posterFailed, setPosterFailed] = useState(false);
- const abortRef = useRef<AbortController | null>(null);
- const poster = buildImageUrl(item?.pic, store.imageProxyMode, store.customImageProxy);
-
- useEffect(() => setPosterFailed(false), [poster]);
-
- // 弹窗打开期间锁定背景滚动
- useEffect(() => {
- if (!item) return;
- const prev = document.body.style.overflow;
- document.body.style.overflow = 'hidden';
- return () => {
- document.body.style.overflow = prev;
- };
- }, [item]);
-
- useEffect(() => {
- if (!item) {
- setDetail(null);
- setError('');
- return;
- }
- const source = resolveSource(store, item.sourceKey, {
- url: item.sourceUrl,
- name: item.sourceName,
- });
- if (!source) {
- setError('数据源配置不存在(可能已被删除),请在设置中重新添加');
- return;
- }
- setLoading(true);
- setError('');
- abortRef.current?.abort();
- const controller = new AbortController();
- abortRef.current = controller;
- api
- .detail(item.vodId, source, controller.signal)
- .then((d) => setDetail(d))
- .catch((err) => {
- if (err instanceof DOMException && err.name === 'AbortError') return;
- setError(err instanceof Error ? err.message : '获取详情失败');
- })
- .finally(() => setLoading(false));
- return () => controller.abort();
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, [item]);
-
- useEffect(() => {
- if (!item) return;
- const handler = (e: KeyboardEvent) => {
- if (e.key === 'Escape') onClose();
- };
- window.addEventListener('keydown', handler);
- return () => window.removeEventListener('keydown', handler);
- }, [item, onClose]);
-
- if (!item) return null;
-
- const episodes = detail ? (reversed ? [...detail.episodes].reverse() : detail.episodes) : [];
- const info = detail?.videoInfo;
-
- const play = (index: number) => {
- if (!detail || !detail.episodes[index]) return;
- addSearchHistory(item.name).catch(() => {});
- router.push(
- buildWatchUrl({
- sourceKey: item.sourceKey,
- vodId: item.vodId,
- index,
- title: item.name,
- sourceUrl: item.sourceUrl,
- })
- );
- };
-
- const copyLinks = async () => {
- if (!detail) return;
- try {
- await navigator.clipboard.writeText(detail.episodes.join('\n'));
- toast('播放链接已复制', 'success');
- } catch {
- toast('复制失败,请检查浏览器权限', 'error');
- }
- };
-
- const metaRows = [
- info?.typeName && ['类型', info.typeName],
- info?.year && ['年份', info.year],
- info?.area && ['地区', info.area],
- info?.director && ['导演', info.director],
- info?.actor && ['主演', info.actor],
- info?.remarks && ['备注', info.remarks],
- ].filter(Boolean) as [string, string][];
-
- return (
- <div
- className="fixed inset-0 z-[60] flex items-start justify-center overflow-y-auto bg-black/80 py-10 px-4 animate-fade-in"
- onClick={(e) => {
- if (e.target === e.currentTarget) onClose();
- }}
- >
- <div className="bg-surface-raised rounded-xl w-full max-w-3xl shadow-2xl animate-slide-up" role="dialog" aria-modal>
- <div className="flex items-start justify-between gap-4 p-5 pb-3 border-b border-[#2a2a2a]">
- <div className="min-w-0">
- <h2 className="text-lg font-semibold text-white break-words">{item.name}</h2>
- <span className="text-sm text-gray-500">{item.sourceName}</span>
- </div>
- <button
- className="p-1.5 rounded-md text-gray-400 hover:text-white hover:bg-surface-hover shrink-0"
- onClick={onClose}
- aria-label="关闭"
- >
- <svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M6 18L18 6M6 6l12 12" />
- </svg>
- </button>
- </div>
-
- <div className="p-5 pt-4">
- {loading && (
- <div className="flex flex-col items-center py-10 gap-3">
- <div className="h-8 w-8 rounded-full border-4 border-[#3a3a3a] border-t-accent animate-spin" />
- <p className="text-sm text-gray-400">正在获取剧集信息...</p>
- </div>
- )}
-
- {!loading && error && (
- <div className="text-center py-8">
- <div className="text-red-400 mb-1.5">❌ 获取失败</div>
- <div className="text-sm text-gray-500">{error}</div>
- </div>
- )}
-
- {!loading && !error && detail && (
- <>
- <div className="flex flex-col sm:flex-row gap-4 mb-4">
- {poster && !posterFailed && (
- // eslint-disable-next-line @next/next/no-img-element
- <img
- src={poster}
- alt={item.name}
- className="w-24 sm:w-32 aspect-[2/3] object-cover rounded-lg bg-[#222] shrink-0 self-center sm:self-start"
- onError={() => setPosterFailed(true)}
- />
- )}
- <div className="min-w-0 space-y-3">
- {metaRows.length > 0 && (
- <div className="grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-1.5 text-sm">
- {metaRows.map(([k, v]) => (
- <div key={k} className="truncate">
- <span className="text-gray-500">{k}:</span>{' '}
- <span className="text-gray-300">{v}</span>
- </div>
- ))}
- </div>
- )}
- {info?.desc && (
- <p className="text-sm text-gray-400 leading-relaxed line-clamp-3">{info.desc}</p>
- )}
- </div>
- </div>
-
- {episodes.length > 0 ? (
- <>
- <div className="flex flex-wrap items-center justify-between gap-2 mb-3">
- <div className="flex items-center gap-2">
- <button
- className="btn-ghost !py-1.5 text-xs"
- onClick={() => setReversed((v) => !v)}
- aria-label={reversed ? '切换为正序' : '切换为倒序'}
- >
- <svg className={cn('w-3.5 h-3.5 transition-transform', reversed && 'rotate-180')} fill="none" stroke="currentColor" viewBox="0 0 24 24">
- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M19 14l-7 7m0 0l-7-7m7 7V3" />
- </svg>
- {reversed ? '正序排列' : '倒序排列'}
- </button>
- <span className="text-sm text-gray-500">共 {episodes.length} 集</span>
- </div>
- <button className="btn-primary !py-1.5 text-xs" onClick={copyLinks}>
- 复制链接
- </button>
- </div>
- <div className="grid grid-cols-3 sm:grid-cols-5 md:grid-cols-7 gap-2 max-h-[40vh] overflow-y-auto scrollbar-thin pr-1">
- {episodes.map((_, i) => {
- const realIndex = reversed ? detail.episodes.length - 1 - i : i;
- return (
- <button
- key={realIndex}
- className="btn-ghost !px-1 text-center"
- onClick={() => play(realIndex)}
- >
- {realIndex + 1}
- </button>
- );
- })}
- </div>
- </>
- ) : (
- <div className="text-center py-8">
- <div className="text-red-400 mb-1.5">❌ 未找到播放资源</div>
- <div className="text-sm text-gray-500">该视频可能暂时无法播放,请尝试其他视频</div>
- </div>
- )}
- </>
- )}
- </div>
- </div>
- </div>
- );
-}
diff --git a/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/6efdf509a785a0658b2e31a8c33d298de14321d9672179370e99cc76241c1eb0.source b/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/6efdf509a785a0658b2e31a8c33d298de14321d9672179370e99cc76241c1eb0.source
deleted file mode 100644
index 51a94ec..0000000
--- a/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/6efdf509a785a0658b2e31a8c33d298de14321d9672179370e99cc76241c1eb0.source
+++ /dev/null
@@ -1,269 +0,0 @@
-'use client';
-
-import { Suspense, useEffect, useMemo, useRef, useState } from 'react';
-import { useRouter, useSearchParams } from 'next/navigation';
-import { useQuery } from '@tanstack/react-query';
-import { Header } from '@/components/header';
-import { DoubanSection } from '@/components/douban-section';
-import { DetailModal } from '@/components/detail-modal';
-import { VideoCard } from '@/components/video-card';
-import { useAppStore, resolveSource } from '@/lib/store';
-import { api } from '@/lib/client-api';
-import type { SearchResultItem } from '@/lib/types';
-import { addSearchHistory, db, removeSearchHistory } from '@/lib/db';
-import { cn, validateSourceUrl } from '@/lib/utils';
-import { useToast } from '@/components/toast';
-
-/**
- * 首页:搜索(URL ?s= 驱动,可后退/分享)+ 豆瓣推荐。
- * 搜索状态由 React Query 管理,失败源在结果区顶部以非阻塞方式展示。
- */
-export default function HomePage() {
- return (
- <Suspense>
- <HomeContent />
- </Suspense>
- );
-}
-
-function HomeContent() {
- const searchParams = useSearchParams();
- const router = useRouter();
- const { toast } = useToast();
- const urlQuery = searchParams.get('s') || '';
- const store = useAppStore();
- const [input, setInput] = useState(urlQuery);
- const [detailItem, setDetailItem] = useState<SearchResultItem | null>(null);
- const inputRef = useRef<HTMLInputElement>(null);
-
- // URL 驱动搜索:?s= 变化时回填输入框
- useEffect(() => {
- if (urlQuery) setInput(urlQuery);
- }, [urlQuery]);
-
- const selectedSources = useMemo(
- () =>
- store.selectedKeys
- .map((key) => resolveSource(store, key))
- .filter((s): s is NonNullable<typeof s> => Boolean(s) && validateSourceUrl(s!.url)),
- [store]
- );
-
- const searchQuery = useQuery({
- queryKey: ['search', urlQuery, store.selectedKeys, store.yellowFilter],
- queryFn: ({ signal }) => api.search(urlQuery, selectedSources, store.yellowFilter, signal),
- enabled: Boolean(urlQuery) && selectedSources.length > 0,
- staleTime: 60_000,
- });
-
- const searchHistory = useQuery({
- queryKey: ['searchHistory'],
- queryFn: () => db.searchHistory.orderBy('timestamp').reverse().limit(10).toArray(),
- });
-
- const runSearch = (q: string) => {
- const query = q.trim().slice(0, 100);
- if (!query) {
- toast('请输入搜索内容', 'info');
- inputRef.current?.focus();
- return;
- }
- if (selectedSources.length === 0) {
- toast('请先在设置中添加并勾选数据源', 'warning');
- return;
- }
- router.push(`/?s=${encodeURIComponent(query)}`, { scroll: false });
- addSearchHistory(query).catch(() => {});
- };
-
- const list = searchQuery.data?.list ?? [];
- const failures = searchQuery.data?.failures ?? [];
- // 失败源显示友好名称而非裸 key
- const failureNames = failures.map(
- (f) => store.customAPIs.find((a) => a.key === f.sourceKey)?.name ?? f.sourceKey
- );
-
- return (
- <div className="min-h-screen flex flex-col">
- <Header />
-
- <main className="relative flex-1 max-w-6xl w-full mx-auto px-4 py-6">
- {/* 首屏氛围渐变 */}
- {!urlQuery && (
- <div
- aria-hidden
- className="pointer-events-none absolute inset-x-0 top-0 h-[420px] -z-10"
- style={{
- background:
- 'radial-gradient(60% 60% at 50% 0%, rgba(35,173,229,0.10) 0%, rgba(35,173,229,0.03) 45%, transparent 75%)',
- }}
- />
- )}
-
- {/* 搜索区 */}
- <section className={cn('flex flex-col items-center', urlQuery ? 'mb-6' : 'mt-10 mb-14')}>
- {!urlQuery && (
- <header className="text-center mb-6">
- <h1 className="text-2xl sm:text-3xl font-bold text-white">免费在线视频搜索</h1>
- <p className="mt-2 text-sm text-gray-500">多源聚合 · 免注册 · 无广告 · 播放进度本机保存</p>
- </header>
- )}
- {urlQuery && <h1 className="sr-only">LibreTV 视频搜索</h1>}
- <form
- className="w-full max-w-2xl flex gap-2"
- onSubmit={(e) => {
- e.preventDefault();
- runSearch(input);
- }}
- >
- <div className="relative flex-1">
- <input
- ref={inputRef}
- className="input w-full h-11 pr-10"
- placeholder="输入影片名称..."
- value={input}
- maxLength={100}
- onChange={(e) => setInput(e.target.value)}
- aria-label="搜索影片"
- />
- {input && (
- <button
- type="button"
- className="absolute right-2.5 top-1/2 -translate-y-1/2 text-gray-500 hover:text-white"
- onClick={() => {
- setInput('');
- inputRef.current?.focus();
- }}
- aria-label="清空"
- >
- <svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M6 18L18 6M6 6l12 12" />
- </svg>
- </button>
- )}
- </div>
- <button type="submit" className="btn-primary h-11 px-5">
- 搜索
- </button>
- </form>
-
- {/* 最近搜索 */}
- {(searchHistory.data?.length ?? 0) > 0 && (
- <div className="flex flex-wrap items-center gap-1.5 mt-3 justify-center">
- <span className="text-xs text-gray-500">最近搜索:</span>
- {searchHistory.data!.map((h) => (
- <span key={h.text} className="inline-flex items-center bg-[#1e1e1e] rounded-full text-xs">
- <button
- className="pl-2.5 pr-1 py-1 text-gray-300 hover:text-accent"
- onClick={() => {
- setInput(h.text);
- runSearch(h.text);
- }}
- >
- {h.text}
- </button>
- <button
- className="pr-2 py-1 text-gray-600 hover:text-red-400"
- aria-label={`删除搜索记录 ${h.text}`}
- onClick={() => removeSearchHistory(h.text).then(() => searchHistory.refetch())}
- >
- ✕
- </button>
- </span>
- ))}
- </div>
- )}
- </section>
-
- {/* 搜索结果 */}
- {urlQuery && (
- <section aria-label="搜索结果" className="mb-10">
- <div className="flex items-center justify-between mb-3">
- <h2 className="text-sm text-gray-400">
- “<span className="text-white">{urlQuery}</span>” 的搜索结果
- {searchQuery.data && (
- <span className="text-gray-500">({list.length} 条{failures.length > 0 && `,${failures.length} 个源失败`})</span>
- )}
- </h2>
- </div>
-
- {failures.length > 0 && (
- <div className="mb-3 text-xs text-gray-500 bg-[#1a1a1a] rounded-lg px-3 py-2">
- 部分数据源请求失败:{failureNames.join('、')}
- </div>
- )}
-
- {searchQuery.isLoading ? (
- <ResultsSkeleton />
- ) : selectedSources.length === 0 ? (
- <NoSourceGuide hasSources={store.customAPIs.length > 0} />
- ) : list.length === 0 ? (
- <div className="text-center py-16">
- <svg className="mx-auto h-10 w-10 text-gray-600 mb-3" fill="none" viewBox="0 0 24 24" stroke="currentColor">
- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={1.5}
- d="M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
- </svg>
- <h3 className="text-base text-gray-400">没有找到匹配的结果</h3>
- <p className="text-sm text-gray-500 mt-1">请尝试其他关键词或更换数据源</p>
- </div>
- ) : (
- <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3">
- {list.map((item) => (
- <VideoCard key={`${item.sourceKey}_${item.vodId}`} item={item} onClick={() => setDetailItem(item)} />
- ))}
- </div>
- )}
- </section>
- )}
-
- {/* 豆瓣推荐(有搜索时隐藏) */}
- {!urlQuery && (
- <DoubanSection
- onPick={(title) => {
- setInput(title);
- runSearch(title);
- }}
- />
- )}
- </main>
-
- <footer className="border-t border-[#2a2a2a] py-4">
- <p className="text-center text-xs text-gray-600">
- LibreTV v2.0 · 数据来源为第三方公开接口,本站不存储任何视频文件
- </p>
- </footer>
-
- <DetailModal item={detailItem} onClose={() => setDetailItem(null)} />
- </div>
- );
-}
-
-function ResultsSkeleton() {
- return (
- <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3">
- {Array.from({ length: 6 }).map((_, i) => (
- <div key={i} className="card h-28 animate-pulse bg-surface-card" />
- ))}
- </div>
- );
-}
-
-/** 无数据源 / 未勾选数据源时的引导(替代旧版首屏静默空白) */
-function NoSourceGuide({ hasSources = false }: { hasSources?: boolean }) {
- return (
- <div className="border border-dashed border-[#3a3a3a] rounded-xl p-10 text-center max-w-lg mx-auto">
- <h3 className="text-white font-medium mb-2">{hasSources ? '尚未勾选数据源' : '先添加一个数据源'}</h3>
- <p className="text-sm text-gray-400 leading-relaxed">
- {hasSources ? (
- <>点击右上角「设置」,勾选要参与搜索的数据源后重新搜索。</>
- ) : (
- <>
- LibreTV 不内置任何采集站。点击右上角「设置 → 添加 API」,填入一个
- Apple CMS 采集站地址(如 <code className="text-accent text-xs">https://example.com/api.php/provide/vod</code>),
- 勾选后即可开始搜索。
- </>
- )}
- </p>
- </div>
- );
-}
diff --git a/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/91d91840c4d075907471114c7df24ba3d14f64a0347e7608d714ba0057d53f1c.source b/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/91d91840c4d075907471114c7df24ba3d14f64a0347e7608d714ba0057d53f1c.source
deleted file mode 100644
index ba20c57..0000000
--- a/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/91d91840c4d075907471114c7df24ba3d14f64a0347e7608d714ba0057d53f1c.source
+++ /dev/null
@@ -1,203 +0,0 @@
-'use client';
-
-import { useEffect, useMemo, useState } from 'react';
-import { useRouter } from 'next/navigation';
-import { api } from '@/lib/client-api';
-import type { SourceConfig, SearchResultItem, VideoDetail } from '@/lib/types';
-import { buildImageUrl, buildWatchUrl, cn } from '@/lib/utils';
-import { useAppStore, resolveSource } from '@/lib/store';
-import { useToast } from './toast';
-
-/**
- * 换源面板:跨源按标题搜索 → 匹配同名资源 → 并发测速(详情接口耗时)→ 按速度排序展示。
- * 切换时保留当前集数索引(旧版 switchToResource 逻辑的去 DOM 化重写)。
- */
-
-interface Candidate {
- source: SourceConfig;
- result: SearchResultItem;
- ms?: number;
- ok?: boolean;
- episodes?: number;
-}
-
-export function SwitchSourceModal({
- currentTitle,
- currentSourceKey,
- currentVodId,
- currentIndex,
- onClose,
-}: {
- currentTitle: string;
- currentSourceKey: string;
- currentVodId: string;
- currentIndex: number;
- onClose: () => void;
-}) {
- const store = useAppStore();
- const router = useRouter();
- const { toast } = useToast();
- const [candidates, setCandidates] = useState<Candidate[]>([]);
- const [phase, setPhase] = useState<'searching' | 'testing' | 'done'>('searching');
-
- const sources = useMemo(
- () => store.selectedKeys.map((key) => resolveSource(store, key)).filter(Boolean) as SourceConfig[],
- [store]
- );
-
- useEffect(() => {
- // 弹窗打开期间锁定背景滚动
- const prev = document.body.style.overflow;
- document.body.style.overflow = 'hidden';
- return () => {
- document.body.style.overflow = prev;
- };
- }, []);
-
- useEffect(() => {
- let cancelled = false;
-
- (async () => {
- // 1) 并行搜索所有选中源
- setPhase('searching');
- try {
- const { list } = await api.search(currentTitle, sources, false);
- if (cancelled) return;
-
- // 每个源取完全同名结果,否则取第一个
- const matched: Candidate[] = [];
- for (const s of sources) {
- const hits = list.filter((r) => r.sourceKey === s.key);
- const exact = hits.find((r) => r.name === currentTitle) || hits[0];
- if (exact) matched.push({ source: s, result: exact });
- }
-
- // 2) 并发测速(详情接口耗时)并获取集数
- setPhase('testing');
- await Promise.all(
- matched.map(async (c) => {
- const r = await api.detailSpeed(c.result.vodId, c.source);
- if (cancelled) return;
- c.ok = r.ok;
- c.ms = r.ms;
- c.episodes = r.detail?.episodes.length ?? 0;
- })
- );
- if (cancelled) return;
- setCandidates(matched);
- setPhase('done');
- } catch (err) {
- if (!cancelled) {
- toast(err instanceof Error ? err.message : '换源搜索失败', 'error');
- setPhase('done');
- }
- }
- })();
-
- return () => {
- cancelled = true;
- };
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, [currentTitle]);
-
- const sorted = [...candidates].sort((a, b) => {
- const aCurrent = a.source.key === currentSourceKey && String(a.result.vodId) === String(currentVodId);
- const bCurrent = b.source.key === currentSourceKey && String(b.result.vodId) === String(currentVodId);
- if (aCurrent !== bCurrent) return aCurrent ? -1 : 1;
- const msA = a.ok ? a.ms ?? 99_999 : 99_999;
- const msB = b.ok ? b.ms ?? 99_999 : 99_999;
- return msA - msB;
- });
-
- const switchTo = (c: Candidate) => {
- if (!c.episodes) {
- toast('该源无可用播放资源', 'warning');
- return;
- }
- const targetIndex = currentIndex < c.episodes ? currentIndex : 0;
- onClose(); // 先关闭面板,避免路由参数变化后弹窗残留旧数据
- router.push(
- buildWatchUrl({
- sourceKey: c.source.key,
- vodId: c.result.vodId,
- index: targetIndex,
- title: c.result.name || currentTitle,
- sourceUrl: c.source.url,
- detail: c.source.detail,
- })
- );
- };
-
- return (
- <div
- className="fixed inset-0 z-[65] flex items-start justify-center overflow-y-auto bg-black/80 py-10 px-4 animate-fade-in"
- onClick={(e) => {
- if (e.target === e.currentTarget) onClose();
- }}
- >
- <div className="bg-surface-raised rounded-xl w-full max-w-3xl shadow-2xl p-5 animate-slide-up" role="dialog" aria-modal>
- <div className="flex items-center justify-between mb-4">
- <div className="min-w-0">
- <h2 className="text-lg font-semibold text-white truncate">{currentTitle}</h2>
- <p className="text-xs text-gray-500">
- {phase === 'searching' ? '正在搜索各资源...' : phase === 'testing' ? '正在测试各资源速率...' : `共 ${sorted.length} 个可用资源`}
- </p>
- </div>
- <button className="p-1.5 rounded-md text-gray-400 hover:text-white hover:bg-surface-hover" onClick={onClose} aria-label="关闭">
- <svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M6 18L18 6M6 6l12 12" />
- </svg>
- </button>
- </div>
-
- {phase !== 'done' ? (
- <div className="flex flex-col items-center py-10 gap-3">
- <div className="h-8 w-8 rounded-full border-4 border-[#3a3a3a] border-t-accent animate-spin" />
- <p className="text-sm text-gray-400">{phase === 'searching' ? '搜索各资源中...' : '测速中...'}</p>
- </div>
- ) : sorted.length === 0 ? (
- <p className="text-center text-sm text-gray-500 py-8">其他数据源未找到同名资源</p>
- ) : (
- <div className="grid grid-cols-2 sm:grid-cols-4 gap-3">
- {sorted.map((c) => {
- const isCurrent = c.source.key === currentSourceKey && String(c.result.vodId) === String(currentVodId);
- const img = buildImageUrl(c.result.pic, store.imageProxyMode, store.customImageProxy);
- return (
- <button
- key={c.source.key}
- className={cn('text-left group relative rounded-lg overflow-hidden bg-[#1e1e1e] transition-transform', !isCurrent && 'hover:scale-[1.03] cursor-pointer', isCurrent && 'cursor-default')}
- onClick={() => !isCurrent && switchTo(c)}
- disabled={isCurrent}
- >
- <div className="relative aspect-[2/3] bg-[#222]">
- {img ? (
- // eslint-disable-next-line @next/next/no-img-element
- <img src={img} alt={c.result.name} className="w-full h-full object-cover" loading="lazy" />
- ) : (
- <div className="w-full h-full flex items-center justify-center text-gray-600 text-xs">无封面</div>
- )}
- <span
- className={cn(
- 'absolute top-1.5 right-1.5 tag',
- !c.ok ? 'bg-red-500/80 text-white' : c.ms! > 2000 ? 'bg-yellow-600/80 text-white' : 'bg-green-600/80 text-white'
- )}
- >
- {!c.ok ? '失败' : `${c.ms}ms`}
- </span>
- {isCurrent && (
- <span className="absolute inset-x-0 bottom-0 bg-accent/90 text-white text-xs text-center py-1">当前播放</span>
- )}
- </div>
- <div className="p-2">
- <div className="text-xs font-medium text-gray-200 truncate">{c.source.name}</div>
- <div className="text-[10px] text-gray-500 mt-0.5">{c.episodes ? `${c.episodes} 集` : '无资源'}</div>
- </div>
- </button>
- );
- })}
- </div>
- )}
- </div>
- </div>
- );
-}
diff --git a/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/b43fdff72d3f4851a308a7e25bfb25e5089cdff996639f04a08c39caae434cbd.source b/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/b43fdff72d3f4851a308a7e25bfb25e5089cdff996639f04a08c39caae434cbd.source
deleted file mode 100644
index fce2c20..0000000
--- a/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/b43fdff72d3f4851a308a7e25bfb25e5089cdff996639f04a08c39caae434cbd.source
+++ /dev/null
@@ -1,128 +0,0 @@
-'use client';
-
-import { useState } from 'react';
-import { useLiveQuery } from 'dexie-react-hooks';
-import Link from 'next/link';
-import { Drawer } from './header';
-import { db, clearAllHistory, removeHistory, upsertHistory, type HistoryEntry } from '@/lib/db';
-import { buildWatchUrl, buildImageUrl, cn, formatRelativeTime, formatTime } from '@/lib/utils';
-import { useToast } from './toast';
-import { resolveSource, useAppStore } from '@/lib/store';
-
-/**
- * 观看历史面板(IndexedDB 实时查询)。
- * 与旧版的区别:播放前按需重新拉取剧集详情,不再依赖历史记录里冗余存储的全集 URL。
- */
-
-export function HistoryPanel({ open, onClose }: { open: boolean; onClose: () => void }) {
- const history = useLiveQuery(() => db.history.orderBy('timestamp').reverse().limit(50).toArray(), [open]);
- const { toast } = useToast();
-
- return (
- <Drawer open={open} onClose={onClose} title="观看历史" width="max-w-lg">
- {!history ? (
- <p className="text-center text-gray-500 py-8 text-sm">加载中...</p>
- ) : history.length === 0 ? (
- <p className="text-center text-gray-500 py-8 text-sm">暂无观看记录</p>
- ) : (
- <>
- <div className="flex justify-end mb-2">
- <button
- className="text-xs text-gray-500 hover:text-red-400 transition-colors"
- onClick={() => {
- clearAllHistory().then(() => toast('观看历史已清空', 'success'));
- }}
- >
- 清空历史
- </button>
- </div>
- <ul className="space-y-2">
- {history.map((item) => (
- <HistoryItem key={`${item.sourceKey}_${item.vodId}`} item={item} />
- ))}
- </ul>
- </>
- )}
- </Drawer>
- );
-}
-
-function HistoryItem({ item }: { item: HistoryEntry }) {
- const store = useAppStore();
- const { toast } = useToast();
- const [imgFailed, setImgFailed] = useState(false);
- const pic = buildImageUrl(item.pic, store.imageProxyMode, store.customImageProxy);
-
- const hasPercent =
- item.playbackPosition > 10 && item.duration > 0 && item.playbackPosition < item.duration * 0.95;
- const percent = hasPercent ? Math.round((item.playbackPosition / item.duration) * 100) : 0;
-
- const href = buildWatchUrl({
- sourceKey: item.sourceKey,
- vodId: item.vodId,
- index: item.episodeIndex,
- title: item.title,
- sourceUrl: resolveSource(store, item.sourceKey)?.url,
- detail: resolveSource(store, item.sourceKey)?.detail,
- });
-
- return (
- <li className="relative group">
- <Link
- href={href}
- onClick={(e) => {
- // 点击即同步一次时间戳,置顶最近观看
- upsertHistory({ ...item, timestamp: Date.now() }).catch(() => {});
- }}
- className="block bg-[#1e1e1e] hover:bg-surface-hover rounded-lg p-3 pr-10 transition-colors"
- >
- <div className="flex items-center gap-3">
- {pic && !imgFailed ? (
- // eslint-disable-next-line @next/next/no-img-element
- <img
- src={pic}
- alt=""
- className="w-10 h-14 object-cover rounded bg-[#222]"
- loading="lazy"
- onError={() => setImgFailed(true)}
- />
- ) : (
- <div className="w-10 h-14 rounded bg-[#262626] flex items-center justify-center shrink-0">
- <svg className="w-4 h-4 text-gray-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M7 4v16m10-16v16M7 8h10M7 12h10" />
- </svg>
- </div>
- )}
- <div className="min-w-0 flex-1">
- <div className="text-sm font-medium text-white truncate">{item.title}</div>
- <div className="text-xs text-gray-500 mt-0.5 flex items-center gap-1.5 flex-wrap">
- {item.totalEpisodes > 0 && <span>第 {item.episodeIndex + 1}/{item.totalEpisodes} 集</span>}
- {hasPercent && <span>· {formatTime(item.playbackPosition)}</span>}
- <span>· {formatRelativeTime(item.timestamp)}</span>
- </div>
- {hasPercent && (
- <div className="mt-1.5 h-1 bg-[#333] rounded-full overflow-hidden">
- <div className="h-full bg-accent" style={{ width: `${percent}%` }} />
- </div>
- )}
- </div>
- </div>
- </Link>
- <button
- className={cn(
- 'absolute right-2 top-2 p-1.5 rounded-full text-gray-500 hover:text-red-400',
- 'opacity-0 group-hover:opacity-100 focus:opacity-100 transition-opacity'
- )}
- aria-label="删除记录"
- title="删除记录"
- onClick={() => {
- removeHistory(item.sourceKey, item.vodId).then(() => toast('已删除该记录', 'success'));
- }}
- >
- <svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M6 18L18 6M6 6l12 12" />
- </svg>
- </button>
- </li>
- );
-}
diff --git a/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/c0edcbf68c2c69873fdf45e29857bc1b97ff875c49a34fb1ef82bcf9bfafdd6c.source b/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/c0edcbf68c2c69873fdf45e29857bc1b97ff875c49a34fb1ef82bcf9bfafdd6c.source
deleted file mode 100644
index 467325a..0000000
--- a/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/c0edcbf68c2c69873fdf45e29857bc1b97ff875c49a34fb1ef82bcf9bfafdd6c.source
+++ /dev/null
@@ -1,118 +0,0 @@
-'use client';
-
-import { useEffect, useState } from 'react';
-import type { SearchResultItem } from '@/lib/types';
-import { buildImageUrl } from '@/lib/utils';
-import { useAppStore } from '@/lib/store';
-import { cn } from '@/lib/utils';
-
-/** 影片卡片:封面加载失败时逐级降级到占位图 */
-export function VideoCard({ item, onClick }: { item: SearchResultItem; onClick: () => void }) {
- const imageProxyMode = useAppStore((s) => s.imageProxyMode);
- const customImageProxy = useAppStore((s) => s.customImageProxy);
- const [imgFailed, setImgFailed] = useState(false);
- const primary = buildImageUrl(item.pic, imageProxyMode, customImageProxy);
- // 加载方式变化时重置失败状态,允许新地址重试
- useEffect(() => setImgFailed(false), [primary]);
- const showImg = primary && !imgFailed;
-
- return (
- <div
- className="card cursor-pointer hover:scale-[1.02] hover:shadow-md h-full"
- role="button"
- tabIndex={0}
- onClick={onClick}
- onKeyDown={(e) => {
- if (e.key === 'Enter' || e.key === ' ') onClick();
- }}
- >
- <div className="flex h-full">
- {showImg ? (
- <div className="relative flex-shrink-0 w-[105px] sm:w-[120px] bg-[#222]">
- {/* eslint-disable-next-line @next/next/no-img-element */}
- <img
- src={primary}
- alt={item.name}
- className="h-full w-full object-cover"
- loading="lazy"
- onError={() => setImgFailed(true)}
- />
- <div className="absolute inset-0 bg-gradient-to-r from-black/30 to-transparent" />
- </div>
- ) : (
- <div className="flex-shrink-0 w-[105px] sm:w-[120px] bg-gradient-to-br from-[#1d1d1d] to-[#161616] flex items-center justify-center">
- <svg className="w-8 h-8 text-gray-700" fill="none" stroke="currentColor" viewBox="0 0 24 24">
- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={1.5} d="M7 4v16m10-16v16M3 6a1 1 0 011-1h1a1 1 0 011 1v12a1 1 0 01-1 1H4a1 1 0 01-1-1V6zm4 0a1 1 0 011-1h1a1 1 0 011 1v12a1 1 0 01-1 1h-1a1 1 0 01-1-1V6zm8 0a1 1 0 011-1h1a1 1 0 011 1v12a1 1 0 01-1 1h-1a1 1 0 01-1-1V6zm4 0a1 1 0 011-1h1a1 1 0 011 1v12a1 1 0 01-1 1h-1a1 1 0 01-1-1V6z" />
- </svg>
- </div>
- )}
-
- <div className="p-2.5 flex flex-col flex-grow min-w-0">
- <div className="flex-grow">
- <h3 className="font-semibold text-sm text-white mb-1.5 line-clamp-2" title={item.name}>
- {item.name}
- </h3>
- <div className="flex flex-wrap gap-1 mb-1.5">
- {item.typeName && <span className="tag bg-blue-500/20 text-blue-300">{item.typeName}</span>}
- {item.year && <span className="tag bg-purple-500/20 text-purple-300">{item.year}</span>}
- </div>
- <p className="text-xs text-gray-400 line-clamp-2 mb-2">{item.remarks || '暂无介绍'}</p>
- </div>
- <div className="flex items-center justify-between mt-auto pt-1.5 border-t border-[#2a2a2a]">
- <span className="tag bg-[#2a2a2a] text-gray-400 truncate max-w-[80%]">{item.sourceName}</span>
- </div>
- </div>
- </div>
- </div>
- );
-}
-
-/** 豆瓣推荐卡片(无来源徽章,点击直接搜索) */
-export function DoubanCard({ item, onClick }: { item: { title: string; cover: string; rating?: string }; onClick: () => void }) {
- const imageProxyMode = useAppStore((s) => s.imageProxyMode);
- const customImageProxy = useAppStore((s) => s.customImageProxy);
- const [imgFailed, setImgFailed] = useState(false);
- const primary = buildImageUrl(item.cover, imageProxyMode, customImageProxy);
- useEffect(() => setImgFailed(false), [primary]);
-
- return (
- <div
- className="card cursor-pointer hover:scale-[1.03] hover:shadow-md"
- role="button"
- tabIndex={0}
- onClick={onClick}
- onKeyDown={(e) => {
- if (e.key === 'Enter' || e.key === ' ') onClick();
- }}
- >
- <div className="relative aspect-[2/3] bg-[#1a1a1a]">
- {primary && !imgFailed ? (
- // eslint-disable-next-line @next/next/no-img-element
- <img
- src={primary}
- alt={item.title}
- className="w-full h-full object-cover"
- loading="lazy"
- onError={() => setImgFailed(true)}
- />
- ) : (
- <div className="w-full h-full flex items-center justify-center bg-gradient-to-br from-[#1d1d1d] to-[#161616]">
- <svg className="w-9 h-9 text-gray-700" fill="none" stroke="currentColor" viewBox="0 0 24 24">
- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={1.5} d="M7 4v16m10-16v16M3 6a1 1 0 011-1h1a1 1 0 011 1v12a1 1 0 01-1 1H4a1 1 0 01-1-1V6zm4 0a1 1 0 011-1h1a1 1 0 011 1v12a1 1 0 01-1 1h-1a1 1 0 01-1-1V6zm8 0a1 1 0 011-1h1a1 1 0 011 1v12a1 1 0 01-1 1h-1a1 1 0 01-1-1V6zm4 0a1 1 0 011-1h1a1 1 0 011 1v12a1 1 0 01-1 1h-1a1 1 0 01-1-1V6z" />
- </svg>
- </div>
- )}
- {item.rating && (
- <span className={cn('absolute top-1.5 right-1.5 tag bg-black/70 text-yellow-400 font-medium')}>
- ★ {item.rating}
- </span>
- )}
- </div>
- <div className="p-2">
- <div className="text-xs font-medium text-gray-200 truncate" title={item.title}>
- {item.title}
- </div>
- </div>
- </div>
- );
-}
diff --git a/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/cf7e29e4902dea0aa000da86f34225ba6d7a6d13c982343f255b15f827269199.source b/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/cf7e29e4902dea0aa000da86f34225ba6d7a6d13c982343f255b15f827269199.source
deleted file mode 100644
index d486019..0000000
--- a/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/cf7e29e4902dea0aa000da86f34225ba6d7a6d13c982343f255b15f827269199.source
+++ /dev/null
@@ -1,154 +0,0 @@
-'use client';
-
-import Link from 'next/link';
-import { useEffect, useRef, useState } from 'react';
-import { usePathname, useRouter } from 'next/navigation';
-import { useAppStore } from '@/lib/store';
-import { useAuth } from './auth';
-import { ThemeToggle } from './theme';
-import { SourceManagerDrawer } from './source-manager';
-import { HistoryPanel } from './history-panel';
-import { cn } from '@/lib/utils';
-
-/** 顶部导航:Logo、搜索框(首页外)、历史、设置 */
-export function Header({ showSearch = false }: { showSearch?: boolean }) {
- const router = useRouter();
- const pathname = usePathname();
- const [settingsOpen, setSettingsOpen] = useState(false);
- const [historyOpen, setHistoryOpen] = useState(false);
- const [query, setQuery] = useState('');
-
- return (
- <>
- <header className="sticky top-0 z-40 bg-surface/90 backdrop-blur border-b border-[#2a2a2a]">
- <div className="max-w-6xl mx-auto px-4 h-14 flex items-center gap-3">
- <Link href="/" className="flex items-center gap-2 shrink-0">
- <span className="text-lg font-bold text-accent">LibreTV</span>
- </Link>
-
- {showSearch && (
- <form
- className="flex-1 max-w-xl hidden sm:block"
- onSubmit={(e) => {
- e.preventDefault();
- if (query.trim()) router.push(`/?s=${encodeURIComponent(query.trim())}`);
- }}
- >
- <input
- className="input w-full h-9"
- placeholder="搜索影片..."
- value={query}
- onChange={(e) => setQuery(e.target.value)}
- />
- </form>
- )}
-
- <div className="flex-1 sm:hidden" />
-
- <nav className="flex items-center gap-1 ml-auto">
- <HeaderLink href="/about" active={pathname === '/about'}>
- 关于
- </HeaderLink>
- <ThemeToggle />
- <IconButton label="观看历史" onClick={() => setHistoryOpen(true)}>
- <svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" />
- </svg>
- </IconButton>
- <IconButton label="设置" onClick={() => setSettingsOpen(true)}>
- <svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z" />
- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
- </svg>
- </IconButton>
- </nav>
- </div>
- </header>
-
- <SourceManagerDrawer open={settingsOpen} onClose={() => setSettingsOpen(false)} />
- <HistoryPanel open={historyOpen} onClose={() => setHistoryOpen(false)} />
- </>
- );
-}
-
-function HeaderLink({ href, active, children }: { href: string; active: boolean; children: React.ReactNode }) {
- return (
- <Link
- href={href}
- className={cn(
- 'px-2.5 py-1.5 rounded-md text-sm transition-colors',
- active ? 'text-white bg-surface-hover' : 'text-gray-400 hover:text-white'
- )}
- >
- {children}
- </Link>
- );
-}
-
-function IconButton({ label, onClick, children }: { label: string; onClick: () => void; children: React.ReactNode }) {
- return (
- <button
- className="p-2 rounded-md text-gray-400 hover:text-white hover:bg-surface-hover transition-colors"
- title={label}
- aria-label={label}
- onClick={onClick}
- >
- {children}
- </button>
- );
-}
-
-/** 面板通用骨架:右侧抽屉 */
-export function Drawer({
- open,
- onClose,
- title,
- children,
- width = 'max-w-md',
-}: {
- open: boolean;
- onClose: () => void;
- title: string;
- children: React.ReactNode;
- width?: string;
-}) {
- const ref = useRef<HTMLDivElement>(null);
- useEffect(() => {
- if (!open) return;
- const handler = (e: KeyboardEvent) => {
- if (e.key === 'Escape') onClose();
- };
- window.addEventListener('keydown', handler);
- return () => window.removeEventListener('keydown', handler);
- }, [open, onClose]);
-
- if (!open) return null;
- return (
- <div className="fixed inset-0 z-50">
- <div className="absolute inset-0 bg-black/60 animate-fade-in" onClick={onClose} />
- <div
- ref={ref}
- className={cn(
- 'absolute right-0 top-0 h-full w-full bg-surface-raised border-l border-[#2a2a2a] overflow-y-auto scrollbar-thin animate-slide-up',
- width
- )}
- role="dialog"
- aria-label={title}
- >
- <div className="sticky top-0 bg-surface-raised px-4 py-3.5 border-b border-[#2a2a2a] flex items-center justify-between z-10">
- <h2 className="font-semibold text-white">{title}</h2>
- <button
- className="p-1.5 rounded-md text-gray-400 hover:text-white hover:bg-surface-hover"
- onClick={onClose}
- aria-label="关闭"
- >
- <svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M6 18L18 6M6 6l12 12" />
- </svg>
- </button>
- </div>
- <div className="p-4">{children}</div>
- </div>
- </div>
- );
-}
diff --git a/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/d3cb66a01d282f3068e543d01cb615fb05fb9f322b80ca36b2aeece6d833da23.source b/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/d3cb66a01d282f3068e543d01cb615fb05fb9f322b80ca36b2aeece6d833da23.source
deleted file mode 100644
index 437854e..0000000
--- a/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/d3cb66a01d282f3068e543d01cb615fb05fb9f322b80ca36b2aeece6d833da23.source
+++ /dev/null
@@ -1,112 +0,0 @@
-'use client';
-
-import { useState } from 'react';
-import { useQuery } from '@tanstack/react-query';
-import { api } from '@/lib/client-api';
-import { DoubanCard } from './video-card';
-import { useAppStore } from '@/lib/store';
-import { cn } from '@/lib/utils';
-
-const MOVIE_TAGS = ['热门', '最新', '经典', '豆瓣高分', '冷门佳片', '华语', '欧美', '韩国', '日本', '动画'];
-const TV_TAGS = ['热门', '美剧', '英剧', '韩剧', '日剧', '国产剧', '港剧', '日本动画', '综艺', '纪录片'];
-
-/** 豆瓣推荐区:影视切换 + 标签筛选 + 分页加载 */
-export function DoubanSection({ onPick }: { onPick: (title: string) => void }) {
- const doubanEnabled = useAppStore((s) => s.doubanEnabled);
- const [type, setType] = useState<'movie' | 'tv'>('movie');
- const [tag, setTag] = useState('热门');
- const [visibleCount, setVisibleCount] = useState(25);
-
- const query = useQuery({
- queryKey: ['douban', type, tag],
- queryFn: ({ signal }) => api.douban(type, tag, 0, 50, signal),
- });
-
- if (!doubanEnabled) return null;
-
- const tags = type === 'movie' ? MOVIE_TAGS : TV_TAGS;
- const items = query.data?.items ?? [];
- const shown = items.slice(0, visibleCount);
-
- const switchType = (t: 'movie' | 'tv') => {
- if (t === type) return;
- setType(t);
- setTag(t === 'movie' ? '热门' : '热门');
- setVisibleCount(25);
- };
-
- return (
- <section aria-label="豆瓣推荐">
- <div className="flex items-center justify-between mb-3">
- <div className="flex items-center gap-2">
- <div className="flex bg-[#1e1e1e] rounded-lg p-0.5">
- <TypeButton active={type === 'movie'} onClick={() => switchType('movie')}>
- 电影
- </TypeButton>
- <TypeButton active={type === 'tv'} onClick={() => switchType('tv')}>
- 剧集
- </TypeButton>
- </div>
- </div>
- </div>
-
- <div className="flex flex-wrap gap-1.5 mb-4">
- {tags.map((t) => (
- <button
- key={t}
- className={cn(
- 'px-2.5 py-1 rounded-full text-xs transition-colors',
- t === tag ? 'bg-accent text-white' : 'bg-[#1e1e1e] text-gray-400 hover:text-white hover:bg-surface-hover'
- )}
- onClick={() => {
- setTag(t);
- setVisibleCount(25);
- }}
- >
- {t}
- </button>
- ))}
- </div>
-
- {query.isError ? (
- <p className="text-center text-sm text-gray-500 py-8">豆瓣推荐加载失败,可稍后重试或在设置中关闭</p>
- ) : query.isLoading ? (
- <div className="grid grid-cols-3 sm:grid-cols-4 md:grid-cols-6 lg:grid-cols-8 gap-2.5">
- {Array.from({ length: 16 }).map((_, i) => (
- <div key={i}>
- <div className="aspect-[2/3] rounded-lg bg-[#1a1a1a] animate-pulse" />
- <div className="h-3 mt-2 rounded bg-[#1a1a1a] animate-pulse" />
- </div>
- ))}
- </div>
- ) : (
- <>
- <div className="grid grid-cols-3 sm:grid-cols-4 md:grid-cols-6 lg:grid-cols-8 gap-2.5">
- {shown.map((item) => (
- <DoubanCard key={item.id} item={item} onClick={() => onPick(item.title)} />
- ))}
- </div>
- {visibleCount < items.length && (
- <div className="text-center mt-4">
- <button className="btn-ghost" onClick={() => setVisibleCount((v) => v + 25)}>
- 加载更多
- </button>
- </div>
- )}
- </>
- )}
- </section>
- );
-}
-
-function TypeButton({ active, onClick, children }: { active: boolean; onClick: () => void; children: React.ReactNode }) {
- return (
- <button
- className={cn('px-3.5 py-1.5 rounded-md text-sm transition-colors', active ? 'bg-accent text-white' : 'text-gray-400 hover:text-white')}
- onClick={onClick}
- aria-pressed={active}
- >
- {children}
- </button>
- );
-}
diff --git a/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/e2bf0c29de09f20b0bcbf1781174fd635a68e6f9399827a6f2b9ea8ee734f34f.source b/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/e2bf0c29de09f20b0bcbf1781174fd635a68e6f9399827a6f2b9ea8ee734f34f.source
deleted file mode 100644
index 50f1fbd..0000000
--- a/src/.mimosa/hook-state/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0.mtiy5v8r-24984-7970f41ca4.baseline/e2bf0c29de09f20b0bcbf1781174fd635a68e6f9399827a6f2b9ea8ee734f34f.source
+++ /dev/null
@@ -1,191 +0,0 @@
-'use client';
-
-import { createContext, useCallback, useContext, useEffect, useRef, useState, type ReactNode } from 'react';
-import { useQueryClient } from '@tanstack/react-query';
-import { api, onUnauthorized } from '@/lib/client-api';
-import { useToast } from './toast';
-
-/**
- * 认证上下文:
- * - 页面加载时查询 /api/status 判断会话有效性;
- * - 任何 API 返回 401/503 时全局打开登录框(客户端 API 层统一触发,不再散落检查)。
- */
-
-type SetupRequired = boolean;
-
-interface AuthContextValue {
- checked: boolean;
- verified: boolean;
- /** 服务器未设置 PASSWORD,需要管理员配置 */
- setupRequired: SetupRequired;
- openLogin: () => void;
- logout: () => Promise<void>;
-}
-
-const AuthContext = createContext<AuthContextValue>({
- checked: false,
- verified: false,
- setupRequired: false,
- openLogin: () => {},
- logout: async () => {},
-});
-
-export function useAuth(): AuthContextValue {
- return useContext(AuthContext);
-}
-
-export function AuthProvider({ children }: { children: ReactNode }) {
- const [checked, setChecked] = useState(false);
- const [verified, setVerified] = useState(false);
- const [setupRequired, setSetupRequired] = useState(false);
- const [modalOpen, setModalOpen] = useState(false);
- const { toast } = useToast();
- const queryClient = useQueryClient();
-
- useEffect(() => {
- api
- .status()
- .then((s) => {
- setVerified(s.verified);
- setSetupRequired(!s.passwordRequired);
- setChecked(true);
- })
- .catch(() => setChecked(true));
- }, []);
-
- useEffect(
- () =>
- onUnauthorized((event) => {
- const setup = (event as CustomEvent).detail === 'setup';
- setSetupRequired(setup);
- setVerified(false);
- setModalOpen(true);
- }),
- []
- );
-
- const openLogin = useCallback(() => setModalOpen(true), []);
-
- const logout = useCallback(async () => {
- try {
- await api.logout();
- } finally {
- setVerified(false);
- toast('已退出登录', 'info');
- }
- }, [toast]);
-
- const handleLoginSuccess = useCallback(() => {
- setVerified(true);
- setSetupRequired(false);
- setModalOpen(false);
- // 登录前以 401 失败的查询(如豆瓣推荐)需要重新拉取
- queryClient.invalidateQueries();
- toast('验证成功', 'success');
- }, [toast, queryClient]);
-
- return (
- <AuthContext.Provider value={{ checked, verified, setupRequired, openLogin, logout }}>
- {children}
- {modalOpen && (
- <LoginModal
- setupRequired={setupRequired}
- onSuccess={handleLoginSuccess}
- onClose={() => setModalOpen(false)}
- />
- )}
- </AuthContext.Provider>
- );
-}
-
-function LoginModal({
- setupRequired,
- onSuccess,
- onClose,
-}: {
- setupRequired: boolean;
- onSuccess: () => void;
- onClose: () => void;
-}) {
- const [password, setPassword] = useState('');
- const [error, setError] = useState('');
- const [loading, setLoading] = useState(false);
- const inputRef = useRef<HTMLInputElement>(null);
- const { toast } = useToast();
-
- useEffect(() => {
- inputRef.current?.focus();
- }, []);
-
- useEffect(() => {
- const handler = (e: KeyboardEvent) => {
- if (e.key === 'Escape') onClose();
- };
- window.addEventListener('keydown', handler);
- return () => window.removeEventListener('keydown', handler);
- }, [onClose]);
-
- const submit = async () => {
- if (!password.trim() || loading) return;
- setLoading(true);
- setError('');
- try {
- await api.login(password);
- onSuccess();
- } catch (err) {
- const msg = err instanceof Error ? err.message : '验证失败';
- setError(msg === '需要登录' ? '密码错误' : msg);
- setPassword('');
- inputRef.current?.focus();
- void toast;
- } finally {
- setLoading(false);
- }
- };
-
- return (
- <div
- className="fixed inset-0 z-[95] flex items-center justify-center bg-black/80 animate-fade-in"
- onClick={(e) => {
- if (e.target === e.currentTarget) onClose();
- }}
- >
- <div className="bg-surface-raised rounded-xl p-6 w-full max-w-sm mx-4 shadow-2xl">
- {setupRequired ? (
- <>
- <h2 className="text-lg font-semibold text-white mb-3">需要配置密码</h2>
- <p className="text-sm text-gray-400 leading-relaxed">
- 为确保安全,必须设置 <code className="text-accent">PASSWORD</code> 环境变量才能使用本服务。
- 请联系管理员在部署配置中添加该变量后重启服务。
- </p>
- </>
- ) : (
- <>
- <h2 className="text-lg font-semibold text-white mb-1">访问验证</h2>
- <p className="text-sm text-gray-400 mb-4">请输入密码继续访问</p>
- <form
- onSubmit={(e) => {
- e.preventDefault();
- submit();
- }}
- >
- <input
- ref={inputRef}
- type="password"
- value={password}
- onChange={(e) => setPassword(e.target.value)}
- className="input w-full"
- placeholder="密码"
- autoComplete="current-password"
- />
- {error && <p className="mt-2 text-sm text-red-400">{error}</p>}
- <button type="submit" className="btn-primary w-full mt-4" disabled={loading || !password.trim()}>
- {loading ? '验证中...' : '进入'}
- </button>
- </form>
- </>
- )}
- </div>
- </div>
- );
-}
diff --git a/src/.mimosa/hook-status/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0-aff7222d8e.json b/src/.mimosa/hook-status/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0-aff7222d8e.json
deleted file mode 100644
index 42f8e69..0000000
--- a/src/.mimosa/hook-status/sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0-aff7222d8e.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "schemaVersion": "mimosa-hook-status/v1",
- "recordedAt": "2026-09-01T17:38:02.702Z",
- "sessionId": "sess_f62c5a03-d4af-4158-a7cd-9931bdf90fd0",
- "event": "PreToolUse",
- "toolName": "Edit",
- "file": "components/switch-source.tsx",
- "outcome": "inconclusive",
- "coverage": "partial",
- "findingCount": 0,
- "durationMs": 510,
- "telemetry": {
- "schemaVersion": "mimosa-gate-telemetry/v1",
- "profile": "gate",
- "operation": "PreToolUse",
- "outcome": "partial/INCONCLUSIVE",
- "latencyMs": 510,
- "peakMemoryBytes": 137363456,
- "memoryMeasurement": "max-observed-process-rss",
- "scannedFiles": 1,
- "cache": {
- "hits": 0,
- "misses": 1,
- "measurement": "not-applicable"
- },
- "denyCount": 0,
- "tokens": {
- "input": 0,
- "output": 0,
- "total": 0,
- "modelCalls": 0,
- "measurement": "known-zero"
- }
- },
- "hostState": "hook_complete_waiting_host_tool_decision",
- "reportHint": ".mimosa/reports/"
-}
diff --git a/src/app/api/detail/route.ts b/src/app/api/detail/route.ts
index c2bd93f..839cada 100644
--- a/src/app/api/detail/route.ts
+++ b/src/app/api/detail/route.ts
@@ -1,12 +1,15 @@
import { NextResponse } from 'next/server';
import { guardRequest } from '@/lib/api-guard';
import { cmsRequestHeaders, parseDetail, parseDetailPageHtml } from '@/lib/cms-parser';
-import { fetchUpstream } from '@/lib/fetch-utils';
+import { fetchUpstream, getCache, setCache } from '@/lib/fetch-utils';
import { checkUpstreamAllowed } from '@/lib/ssrf';
-import type { SourceConfig } from '@/lib/types';
+import type { SourceConfig, VideoDetail } from '@/lib/types';
export const runtime = 'nodejs';
+/** 详情结果短缓存:换源测速/多人观看同一影片时避免重复打上游 */
+const DETAIL_CACHE_TTL = 60 * 1000;
+
function parseSource(raw: string | null): SourceConfig | null {
if (!raw) return null;
try {
@@ -39,12 +42,22 @@ export async function GET(req: Request) {
}
try {
+ // 命中 60s 缓存直接返回(仅缓存成功拿到剧集的结果)
+ const detailRootForCache = (source.detail || baseUrl || '').replace(/\/+$/, '');
+ const cacheKey = `detail:${source.url}|${detailRootForCache}|${id}`;
+ const cached = getCache<VideoDetail>(cacheKey);
+ if (cached) {
+ return NextResponse.json(cached);
+ }
+
// 用户可控地址发起服务端请求,先过 SSRF 校验(协议白名单 + 内网/保留地址)
const listVerdict = await checkUpstreamAllowed(source.url);
if (!listVerdict.ok) {
return NextResponse.json({ error: listVerdict.reason }, { status: 400 });
}
+ let resolved: VideoDetail | null = null;
+
// 1) 标准列表接口
const api = `${source.url.replace(/\/+$/, '')}?ac=videolist&ids=${encodeURIComponent(id)}`;
const res = await fetchUpstream(api, { timeoutMs: 10000, headers: cmsRequestHeaders() });
@@ -53,7 +66,7 @@ export async function GET(req: Request) {
try {
const detail = parseDetail(data, source);
if (detail.episodes.length > 0) {
- return NextResponse.json(detail);
+ resolved = detail;
}
// 有详情但无播放地址 → 继续尝试详情页
} catch {
@@ -63,7 +76,7 @@ export async function GET(req: Request) {
// 2) 详情页 HTML 提取(detail 地址优先,否则用 API 地址推导)
const detailRoot = (source.detail || baseUrl || '').replace(/\/+$/, '');
- if (detailRoot && /^https?:\/\//.test(detailRoot)) {
+ if (!resolved && detailRoot && /^https?:\/\//.test(detailRoot)) {
const detailVerdict = await checkUpstreamAllowed(detailRoot);
if (!detailVerdict.ok) {
return NextResponse.json({ error: detailVerdict.reason }, { status: 400 });
@@ -75,12 +88,15 @@ export async function GET(req: Request) {
});
if (detailRes.ok) {
const html = await detailRes.text();
- const detail = parseDetailPageHtml(html, source);
- return NextResponse.json(detail);
+ resolved = parseDetailPageHtml(html, source);
}
}
- return NextResponse.json({ error: '未找到播放资源' }, { status: 404 });
+ if (!resolved || resolved.episodes.length === 0) {
+ return NextResponse.json({ error: '未找到播放资源' }, { status: 404 });
+ }
+ setCache(cacheKey, resolved, DETAIL_CACHE_TTL);
+ return NextResponse.json(resolved);
} catch (err) {
return NextResponse.json(
{ error: err instanceof Error ? err.message : '获取详情失败' },
diff --git a/src/app/api/search/route.ts b/src/app/api/search/route.ts
index aae53b5..6876be5 100644
--- a/src/app/api/search/route.ts
+++ b/src/app/api/search/route.ts
@@ -1,9 +1,9 @@
import { NextResponse } from 'next/server';
import { guardRequest } from '@/lib/api-guard';
import { cmsRequestHeaders, filterAdultResults, parseSearchList } from '@/lib/cms-parser';
-import { fetchUpstream } from '@/lib/fetch-utils';
+import { fetchUpstream, getCache, setCache } from '@/lib/fetch-utils';
import { checkUpstreamAllowed } from '@/lib/ssrf';
-import type { SearchResultItem, SourceConfig, SourceSearchOutcome } from '@/lib/types';
+import type { SearchResponse, SourceConfig, SourceSearchOutcome } from '@/lib/types';
export const runtime = 'nodejs';
@@ -13,6 +13,18 @@ interface SearchBody {
filterAdult?: boolean;
}
+/** 搜索结果短缓存:同一关键词 + 同一组源在 TTL 内直接返回(播放页返回搜索页等场景) */
+const SEARCH_CACHE_TTL = 60 * 1000;
+
+/** 缓存键:wd + 成人过滤 + 排序后的源地址集合 */
+function searchCacheKey(wd: string, sources: SourceConfig[], filterAdult: boolean): string {
+ const urls = sources.map((s) => s.url.replace(/\/+$/, '')).sort().join('|');
+ let h = 5381;
+ const str = `${wd}\n${filterAdult ? 1 : 0}\n${urls}`;
+ for (let i = 0; i < str.length; i++) h = ((h << 5) + h + str.charCodeAt(i)) >>> 0;
+ return `search:${h.toString(36)}`;
+}
+
/**
* 每个源最多抓取的页数(参考 LunaTV 的 SearchDownstreamMaxPage)。
* 第一页响应会带回 pagecount(源站真实总页数),实际抓取页数 = min(pagecount, 该值)。
@@ -49,6 +61,12 @@ export async function POST(req: Request) {
}
const sources = body.sources.slice(0, 50);
+ const cacheKey = searchCacheKey(wd, sources, body.filterAdult !== false);
+ const cached = getCache<SearchResponse>(cacheKey);
+ if (cached) {
+ return NextResponse.json(cached);
+ }
+
const outcomes: SourceSearchOutcome[] = await Promise.all(
sources.map(async (source): Promise<SourceSearchOutcome> => {
if (!/^https?:\/\//.test(source.url || '')) {
@@ -71,7 +89,7 @@ export async function POST(req: Request) {
};
try {
const first = await fetchPage(1);
- const list = parseSearchList(first, source) as SearchResultItem[];
+ const list = parseSearchList(first, source);
// 源站真实总页数与配置上限取较小者;pagecount 缺失或非法时视为 1 页
const rawPageCount = parseInt(String((first as { pagecount?: unknown }).pagecount ?? '1'), 10);
const pageCount = Math.min(Number.isFinite(rawPageCount) ? Math.max(1, rawPageCount) : 1, SEARCH_MAX_PAGES);
@@ -81,7 +99,7 @@ export async function POST(req: Request) {
try {
return parseSearchList(await fetchPage(page), source);
} catch {
- return [] as SearchResultItem[];
+ return [];
}
})
);
@@ -121,5 +139,7 @@ export async function POST(req: Request) {
.filter((o) => !o.ok)
.map((o) => ({ sourceKey: o.sourceKey, error: o.error || '请求失败' }));
- return NextResponse.json({ list, failures });
+ const payload: SearchResponse = { list, failures };
+ setCache(cacheKey, payload, SEARCH_CACHE_TTL);
+ return NextResponse.json(payload);
}
diff --git a/src/app/api/source-list/route.ts b/src/app/api/source-list/route.ts
new file mode 100644
index 0000000..a2c1cd0
--- /dev/null
+++ b/src/app/api/source-list/route.ts
@@ -0,0 +1,77 @@
+import { NextResponse } from 'next/server';
+import { guardRequest } from '@/lib/api-guard';
+import { checkUpstreamAllowed, isValidProxyUrl } from '@/lib/ssrf';
+import { fetchUpstream } from '@/lib/fetch-utils';
+
+export const runtime = 'nodejs';
+
+const MAX_SOURCES = 100;
+
+interface RawSource {
+ name?: unknown;
+ url?: unknown;
+ detail?: unknown;
+ isAdult?: unknown;
+}
+
+/**
+ * 拉取远程源订阅列表。
+ * 接受两种格式:
+ * 1. LibreTV-SourceList JSON:{ name?, sources: [{name,url,detail?,isAdult?}] }
+ * 2. 裸数组:[{name,url,...}, ...]
+ */
+export async function GET(req: Request) {
+ const guarded = guardRequest(req);
+ if (guarded) return guarded;
+
+ const requestUrl = new URL(req.url);
+ const target = (requestUrl.searchParams.get('url') || '').trim();
+ if (!/^https?:\/\//.test(target)) {
+ return NextResponse.json({ error: '无效的订阅地址' }, { status: 400 });
+ }
+
+ const verdict = await checkUpstreamAllowed(target);
+ if (!verdict.ok) {
+ return NextResponse.json({ error: verdict.reason }, { status: 403 });
+ }
+
+ try {
+ const res = await fetchUpstream(target, { timeoutMs: 8000, headers: { Accept: 'application/json' } });
+ if (!res.ok) {
+ return NextResponse.json({ error: `订阅地址返回 HTTP ${res.status}` }, { status: 502 });
+ }
+ const json = (await res.json()) as { name?: unknown; sources?: unknown } | RawSource[];
+
+ const rawList = Array.isArray(json)
+ ? json
+ : Array.isArray((json as { sources?: unknown }).sources)
+ ? ((json as { sources: RawSource[] }).sources)
+ : null;
+ if (!rawList) {
+ return NextResponse.json({ error: '订阅内容格式不正确(缺少 sources 数组)' }, { status: 400 });
+ }
+
+ const name = Array.isArray(json) ? undefined : (typeof (json as { name?: unknown }).name === 'string' ? (json as { name: string }).name : undefined);
+
+ const seenUrls = new Set<string>();
+ const sources = rawList.slice(0, MAX_SOURCES).flatMap((s) => {
+ const url = typeof s?.url === 'string' ? s.url.trim().replace(/\/+$/, '') : '';
+ // 拒绝非公网 http(s) 地址(DNS 层校验在搜索/详情请求时另有兜底)
+ if (!isValidProxyUrl(url) || seenUrls.has(url)) return [];
+ seenUrls.add(url);
+ return [{
+ name: typeof s?.name === 'string' && s.name.trim() ? s.name.trim() : new URL(url).hostname,
+ url,
+ detail: typeof s?.detail === 'string' && s.detail.trim() ? s.detail.trim() : undefined,
+ isAdult: s?.isAdult === true,
+ }];
+ });
+
+ return NextResponse.json({ name, sources });
+ } catch (err) {
+ return NextResponse.json(
+ { error: err instanceof Error ? err.message : '订阅拉取失败' },
+ { status: 502 }
+ );
+ }
+}
diff --git a/src/app/api/source/test/route.ts b/src/app/api/source/test/route.ts
new file mode 100644
index 0000000..4cee369
--- /dev/null
+++ b/src/app/api/source/test/route.ts
@@ -0,0 +1,50 @@
+import { NextResponse } from 'next/server';
+import { guardRequest } from '@/lib/api-guard';
+import { checkUpstreamAllowed } from '@/lib/ssrf';
+import { fetchUpstream } from '@/lib/fetch-utils';
+import { parseSearchList } from '@/lib/cms-parser';
+
+export const runtime = 'nodejs';
+
+/** 数据源探活:以搜索 "test" 的响应耗时与结果量衡量可用性 */
+export async function POST(req: Request) {
+ const guarded = guardRequest(req);
+ if (guarded) return guarded;
+
+ let url = '';
+ try {
+ const body = (await req.json()) as { url?: string };
+ url = (body.url || '').trim().replace(/\/+$/, '');
+ } catch {
+ return NextResponse.json({ error: '请求格式错误' }, { status: 400 });
+ }
+ if (!/^https?:\/\//.test(url)) {
+ return NextResponse.json({ error: '无效的源地址' }, { status: 400 });
+ }
+
+ const verdict = await checkUpstreamAllowed(url);
+ if (!verdict.ok) {
+ return NextResponse.json({ ok: false, ms: 0, error: verdict.reason });
+ }
+
+ const start = Date.now();
+ try {
+ const res = await fetchUpstream(`${url}?ac=videolist&wd=test`, {
+ timeoutMs: 6000,
+ headers: { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 Chrome/122.0.0.0 Safari/537.36', Accept: 'application/json' },
+ });
+ const ms = Date.now() - start;
+ if (!res.ok) {
+ return NextResponse.json({ ok: false, ms, error: `HTTP ${res.status}` });
+ }
+ const data = await res.json();
+ const list = parseSearchList(data, { key: 'test', name: 'test', url });
+ return NextResponse.json({ ok: true, ms, count: list.length });
+ } catch (err) {
+ return NextResponse.json({
+ ok: false,
+ ms: Date.now() - start,
+ error: err instanceof Error ? (err.name === 'TimeoutError' || err.name === 'AbortError' ? '超时' : err.message) : '请求失败',
+ });
+ }
+}
diff --git a/src/app/page.tsx b/src/app/page.tsx
index 1954555..c435964 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -55,7 +55,8 @@ function HomeContent() {
queryKey: ['search', urlQuery, store.selectedKeys, store.yellowFilter],
queryFn: ({ signal }) => api.search(urlQuery, selectedSources, store.yellowFilter, signal),
enabled: Boolean(urlQuery) && selectedSources.length > 0,
- staleTime: 60_000,
+ // 5 分钟内从播放页返回时直接使用缓存,不重新搜索(服务端另有 60s 结果缓存兜底)
+ staleTime: 300_000,
});
const searchHistory = useQuery({
diff --git a/src/app/watch/page.tsx b/src/app/watch/page.tsx
index 91ebdfe..87eac19 100644
--- a/src/app/watch/page.tsx
+++ b/src/app/watch/page.tsx
@@ -60,7 +60,7 @@ function WatchContent() {
staleTime: 5 * 60_000,
});
- const episodes = detailQuery.data?.episodes ?? [];
+ const episodes = useMemo(() => detailQuery.data?.episodes ?? [], [detailQuery.data]);
const videoTitle = titleParam || detailQuery.data?.videoInfo?.title || '未知视频';
// 当前播放地址:优先取剧集列表中的当前集,其次直连 URL 参数
diff --git a/src/components/auth.tsx b/src/components/auth.tsx
index f7c00b9..7aaf343 100644
--- a/src/components/auth.tsx
+++ b/src/components/auth.tsx
@@ -116,7 +116,6 @@ function LoginModal({
const [error, setError] = useState('');
const [loading, setLoading] = useState(false);
const inputRef = useRef<HTMLInputElement>(null);
- const { toast } = useToast();
useEffect(() => {
inputRef.current?.focus();
@@ -142,7 +141,6 @@ function LoginModal({
setError(msg === '需要登录' ? '密码错误' : msg);
setPassword('');
inputRef.current?.focus();
- void toast;
} finally {
setLoading(false);
}
diff --git a/src/components/header.tsx b/src/components/header.tsx
index 1ef6854..710636c 100644
--- a/src/components/header.tsx
+++ b/src/components/header.tsx
@@ -3,8 +3,6 @@
import Link from 'next/link';
import { useEffect, useRef, useState } from 'react';
import { usePathname, useRouter } from 'next/navigation';
-import { useAppStore } from '@/lib/store';
-import { useAuth } from './auth';
import { ThemeToggle } from './theme';
import { SourceManagerDrawer } from './source-manager';
import { HistoryPanel } from './history-panel';
diff --git a/src/components/history-panel.tsx b/src/components/history-panel.tsx
index 0d0489a..81c7d00 100644
--- a/src/components/history-panel.tsx
+++ b/src/components/history-panel.tsx
@@ -70,7 +70,7 @@ function HistoryItem({ item }: { item: HistoryEntry }) {
<li className="relative group">
<Link
href={href}
- onClick={(e) => {
+ onClick={() => {
// 点击即同步一次时间戳,置顶最近观看
upsertHistory({ ...item, timestamp: Date.now() }).catch(() => {});
}}
diff --git a/src/components/player-shell.tsx b/src/components/player-shell.tsx
index e099712..d0c444c 100644
--- a/src/components/player-shell.tsx
+++ b/src/components/player-shell.tsx
@@ -17,12 +17,10 @@ class CustomHlsJsLoader extends Hls.DefaultConfig.loader {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
constructor(config: any) {
super(config);
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
const load = this.load.bind(this);
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- hls.js loader 回调签名未导出精确类型
this.load = function (context: any, config: any, callbacks: any) {
if (context.type === 'manifest' || context.type === 'level') {
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
const onSuccess = callbacks.onSuccess;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
callbacks.onSuccess = function (response: any, stats: any, ctx: any, networkDetails: any) {
@@ -83,7 +81,6 @@ export function PlayerShell({
// 播放位置写进新集数的进度记录,导致换集后从上一集的时间点继续播放
const mountCbs = { onTimeUpdate, onEnded, onPause, getRestorePosition };
- let disposed = false;
let lastSave = 0;
let playbackStarted = false;
let errorCount = 0;
@@ -178,7 +175,7 @@ export function PlayerShell({
playsInline: true,
airplay: true,
hotkey: false,
- theme: '#23ade5',
+ theme: '#2563eb',
lang: navigator.language.toLowerCase().startsWith('zh') ? 'zh-cn' : 'en',
moreVideoAttr: { crossOrigin: 'anonymous', playsInline: true },
customType: {
@@ -298,10 +295,7 @@ export function PlayerShell({
el?.addEventListener('touchcancel', onTouchEnd);
el?.addEventListener('touchmove', onTouchMove, { passive: false });
- // 双击全屏
- art.on('video:dblclick', () => {
- art.fullscreen = !art.fullscreen;
- });
+ // 双击全屏由 ArtPlayer 原生 DBCLICK_FULLSCREEN 处理(video:dblclick 不在其事件代理列表中,监听无效)
// 卸载与页面隐藏时保存进度
const saveOnHide = () => {
@@ -312,8 +306,6 @@ export function PlayerShell({
document.addEventListener('visibilitychange', saveOnHide);
return () => {
- disposed = true;
- void disposed;
// 卸载前刷一次最终进度,避免丢失最后几秒。
// 注意用 mountCbs(本集回调)而非 cbs.current(已是下一集的回调);
// 已自然播完的集数不回写,避免覆盖 onEnded 里清除的「已看完」记录
diff --git a/src/components/source-manager.tsx b/src/components/source-manager.tsx
index 616c298..c3de7e6 100644
--- a/src/components/source-manager.tsx
+++ b/src/components/source-manager.tsx
@@ -4,18 +4,72 @@ import { useEffect, useState } from 'react';
import { Drawer } from './header';
import { useAppStore } from '@/lib/store';
import { useToast } from './toast';
-import { validateSourceUrl, cn } from '@/lib/utils';
+import { formatRelativeTime, validateSourceUrl, cn } from '@/lib/utils';
import { exportConfig, importConfig } from '@/lib/db';
import { useAuth } from './auth';
+import { api } from '@/lib/client-api';
/**
- * 设置抽屉:数据源管理 + 播放/过滤选项 + 配置导入导出。
- * 替代旧版散落在设置面板里的各处 DOM 拼接逻辑。
+ * 设置抽屉:数据源管理 + 源订阅 + 播放/过滤选项 + 配置导入导出。
*/
+type TestState =
+ | { status: 'loading' }
+ | { status: 'done'; ok: boolean; ms?: number; count?: number; error?: string };
+
export function SourceManagerDrawer({ open, onClose }: { open: boolean; onClose: () => void }) {
const store = useAppStore();
const [editing, setEditing] = useState<string | null>(null);
+ const [tests, setTests] = useState<Record<string, TestState>>({});
+
+ const runTest = async (key: string, url: string) => {
+ setTests((prev) => ({ ...prev, [key]: { status: 'loading' } }));
+ try {
+ const r = await api.testSource(url);
+ setTests((prev) => ({
+ ...prev,
+ [key]: r.ok
+ ? { status: 'done', ok: true, ms: r.ms, count: r.count }
+ : { status: 'done', ok: false, error: r.error },
+ }));
+ } catch (err) {
+ setTests((prev) => ({
+ ...prev,
+ [key]: { status: 'done', ok: false, error: err instanceof Error ? err.message : '测试失败' },
+ }));
+ }
+ };
+
+ const testButton = (key: string, url: string) => {
+ const t = tests[key];
+ return (
+ <span className="flex items-center gap-1 shrink-0">
+ {t?.status === 'done' && (
+ <span
+ className={cn(
+ 'text-[10px] px-1.5 py-0.5 rounded',
+ t.ok ? 'bg-green-500/15 text-green-600 dark:text-green-400' : 'bg-red-500/15 text-red-500'
+ )}
+ title={t.ok ? `响应 ${t.ms}ms,搜索到 ${t.count ?? 0} 条` : t.error}
+ >
+ {t.ok ? `✓ ${t.ms}ms` : `✗ ${t.error?.slice(0, 12) || '失败'}`}
+ </span>
+ )}
+ <button
+ className={cn(
+ 'rounded-md p-1.5 transition-colors disabled:opacity-40',
+ t?.status === 'done' && !t.ok ? 'text-red-400' : 'text-muted hover:text-accent hover:bg-hover'
+ )}
+ disabled={t?.status === 'loading'}
+ onClick={() => runTest(key, url)}
+ aria-label="测试此源"
+ title="测试可用性(搜索耗时与结果量)"
+ >
+ {t?.status === 'loading' ? '…' : '⚡'}
+ </button>
+ </span>
+ );
+ };
return (
<Drawer open={open} onClose={onClose} title="设置">
@@ -43,7 +97,7 @@ export function SourceManagerDrawer({ open, onClose }: { open: boolean; onClose:
{store.envSources.length > 0 && (
<ul className="space-y-2 mb-2">
{store.envSources.map((api) => (
- <li key={api.key} className="bg-card rounded-lg p-3">
+ <li key={api.key} className="bg-card rounded-lg p-3 transition-colors hover:bg-hover/50">
<div className="flex items-center gap-2">
<input
type="checkbox"
@@ -67,6 +121,7 @@ export function SourceManagerDrawer({ open, onClose }: { open: boolean; onClose:
</div>
<div className="text-xs text-faint truncate">{api.url}</div>
</div>
+ {testButton(api.key, api.url)}
</div>
</li>
))}
@@ -74,7 +129,7 @@ export function SourceManagerDrawer({ open, onClose }: { open: boolean; onClose:
)}
<ul className="space-y-2">
{store.customAPIs.map((api) => (
- <li key={api.key} className="bg-card rounded-lg p-3">
+ <li key={api.key} className="bg-card rounded-lg p-3 transition-colors hover:bg-hover/50">
{editing === api.key ? (
<SourceForm
visible
@@ -106,15 +161,16 @@ export function SourceManagerDrawer({ open, onClose }: { open: boolean; onClose:
</div>
<div className="text-xs text-faint truncate">{api.url}</div>
</div>
+ {testButton(api.key, api.url)}
<button
- className="text-muted hover:text-accent text-xs px-1.5"
+ className="rounded-md p-1.5 text-muted transition-colors hover:bg-hover hover:text-accent"
onClick={() => setEditing(api.key)}
aria-label="编辑"
>
✎
</button>
<button
- className="text-muted hover:text-red-400 text-xs px-1.5"
+ className="rounded-md p-1.5 text-muted transition-colors hover:bg-hover hover:text-red-400"
onClick={() => store.removeCustomApi(api.key)}
aria-label="删除"
>
@@ -129,7 +185,9 @@ export function SourceManagerDrawer({ open, onClose }: { open: boolean; onClose:
)}
</section>
- <section className="mb-6">
+ <SourceSubscriptions />
+
+ <section className="mb-6 border-t border-line pt-5">
<SectionTitle title="播放与过滤" />
<div className="space-y-3">
<ToggleRow
@@ -159,7 +217,7 @@ export function SourceManagerDrawer({ open, onClose }: { open: boolean; onClose:
</div>
</section>
- <section className="mb-6">
+ <section className="mb-6 border-t border-line pt-5">
<SectionTitle title="封面图加载" />
<div className="space-y-2">
<SelectRow
@@ -184,7 +242,7 @@ export function SourceManagerDrawer({ open, onClose }: { open: boolean; onClose:
</div>
</section>
- <section>
+ <section className="border-t border-line pt-5">
<SectionTitle title="配置" />
<ConfigIoButtons />
</section>
@@ -192,6 +250,134 @@ export function SourceManagerDrawer({ open, onClose }: { open: boolean; onClose:
);
}
+/**
+ * 源订阅 / 分享:
+ * - 订阅:填入远程 LibreTV-SourceList JSON 地址,一键拉取导入,可随时重新同步;
+ * - 分享:把当前源列表导出为同格式 JSON 文件,托管到任意位置即可被他人订阅。
+ */
+function SourceSubscriptions() {
+ const store = useAppStore();
+ const { toast } = useToast();
+ const [subUrl, setSubUrl] = useState('');
+ const [syncing, setSyncing] = useState<string | null>(null);
+
+ const sync = async (url: string) => {
+ setSyncing(url);
+ try {
+ const { name, sources } = await api.fetchSourceList(url);
+ if (sources.length === 0) {
+ toast('订阅内容为空', 'warning');
+ return;
+ }
+ const count = store.applySubscriptionSources(url, sources);
+ store.addSubscription(url, name);
+ store.markSubscriptionSynced(url, name);
+ toast(`已同步 ${count} 个数据源`, 'success');
+ setSubUrl('');
+ } catch (err) {
+ toast(err instanceof Error ? err.message : '订阅同步失败', 'error');
+ } finally {
+ setSyncing(null);
+ }
+ };
+
+ const addAndSync = () => {
+ const url = subUrl.trim();
+ if (!validateSourceUrl(url)) {
+ toast('订阅地址需以 http:// 或 https:// 开头', 'warning');
+ return;
+ }
+ void sync(url);
+ };
+
+ const exportSources = () => {
+ const all = [...store.envSources, ...store.customAPIs];
+ const seen = new Set<string>();
+ const sources = all
+ .filter((s) => {
+ const u = s.url.replace(/\/+$/, '');
+ if (seen.has(u)) return false;
+ seen.add(u);
+ return true;
+ })
+ .map(({ name, url, detail, isAdult }) => ({ name, url, detail, isAdult }));
+ const payload = { name: 'LibreTV-SourceList', version: 1, exportedAt: Date.now(), sources };
+ const blob = new Blob([JSON.stringify(payload, null, 2)], { type: 'application/json' });
+ const url = URL.createObjectURL(blob);
+ const a = document.createElement('a');
+ a.href = url;
+ a.download = `LibreTV-SourceList_${Date.now()}.json`;
+ a.click();
+ URL.revokeObjectURL(url);
+ toast(`已导出 ${sources.length} 个源,托管后即可被他人订阅`, 'success');
+ };
+
+ return (
+ <section className="mb-6 border-t border-line pt-5">
+ <SectionTitle
+ title="源订阅 / 分享"
+ extra={
+ <button className="btn-ghost !py-1 !px-2.5 text-xs" onClick={exportSources} disabled={store.customAPIs.length + store.envSources.length === 0}>
+ 导出源列表
+ </button>
+ }
+ />
+ <div className="flex gap-2 mb-2">
+ <input
+ className="input w-full"
+ placeholder="订阅地址(LibreTV-SourceList JSON 的 URL)"
+ value={subUrl}
+ onChange={(e) => setSubUrl(e.target.value)}
+ onKeyDown={(e) => {
+ if (e.key === 'Enter') addAndSync();
+ }}
+ />
+ <button className="btn-primary !py-1.5 text-xs shrink-0" disabled={!subUrl.trim() || syncing !== null} onClick={addAndSync}>
+ 订阅
+ </button>
+ </div>
+ {store.subscriptions.length === 0 ? (
+ <p className="text-xs text-faint">
+ 订阅后源列表可随远端更新一键同步;「导出源列表」生成的 JSON 托管到任意 URL 即可分享给他人订阅。
+ </p>
+ ) : (
+ <ul className="space-y-2">
+ {store.subscriptions.map((sub) => (
+ <li key={sub.url} className="bg-card rounded-lg p-3 transition-colors hover:bg-hover/50">
+ <div className="flex items-center gap-2">
+ <div className="flex-1 min-w-0">
+ <div className="text-sm font-medium text-content truncate">{sub.name || new URL(sub.url).hostname}</div>
+ <div className="text-xs text-faint truncate">
+ {sub.url}
+ {sub.lastSync && ` · 同步于 ${formatRelativeTime(sub.lastSync)}`}
+ </div>
+ </div>
+ <button
+ className="rounded-md p-1.5 text-muted transition-colors hover:bg-hover hover:text-accent disabled:opacity-40"
+ disabled={syncing === sub.url}
+ onClick={() => sync(sub.url)}
+ aria-label="重新同步"
+ title="重新同步"
+ >
+ {syncing === sub.url ? '…' : '⟳'}
+ </button>
+ <button
+ className="rounded-md p-1.5 text-muted transition-colors hover:bg-hover hover:text-red-400"
+ onClick={() => store.removeSubscription(sub.url)}
+ aria-label="删除订阅"
+ title="删除订阅及其导入的源"
+ >
+ ✕
+ </button>
+ </div>
+ </li>
+ ))}
+ </ul>
+ )}
+ </section>
+ );
+}
+
function SectionTitle({ title, extra }: { title: string; extra?: React.ReactNode }) {
return (
<div className="flex items-center justify-between mb-2.5">
@@ -298,8 +484,8 @@ function ToggleRow({
onChange: (v: boolean) => void;
}) {
return (
- <div className="flex items-center justify-between gap-4">
- <div>
+ <div className="flex items-center justify-between gap-4 py-0.5">
+ <div className="min-w-0">
<div className="text-sm text-content">{label}</div>
<div className="text-xs text-faint">{description}</div>
</div>
@@ -308,15 +494,16 @@ function ToggleRow({
aria-checked={checked}
aria-label={label}
className={cn(
- 'relative h-6 w-11 rounded-full transition-colors shrink-0',
- checked ? 'bg-accent' : 'bg-line'
+ 'relative h-[22px] w-10 shrink-0 rounded-full transition-colors duration-200',
+ 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/40',
+ checked ? 'bg-accent' : 'bg-chip ring-1 ring-inset ring-line'
)}
onClick={() => onChange(!checked)}
>
<span
className={cn(
- 'absolute top-0.5 h-5 w-5 rounded-full bg-white transition-transform',
- checked ? 'translate-x-[22px]' : 'translate-x-0.5'
+ 'absolute left-[2px] top-[2px] h-[18px] w-[18px] rounded-full bg-white shadow-sm transition-transform duration-200 ease-out',
+ checked ? 'translate-x-[18px]' : 'translate-x-0'
)}
/>
</button>
@@ -338,18 +525,29 @@ function SelectRow({
return (
<div className="flex items-center justify-between gap-4">
<span className="text-sm text-content">{label}</span>
- <select
- className="input !py-1.5 !px-2 text-xs"
- value={value}
- onChange={(e) => onChange(e.target.value)}
- aria-label={label}
- >
- {options.map((o) => (
- <option key={o.value} value={o.value}>
- {o.label}
- </option>
- ))}
- </select>
+ <div className="relative">
+ <select
+ className="input !py-1.5 !pl-2.5 !pr-7 cursor-pointer appearance-none text-xs"
+ value={value}
+ onChange={(e) => onChange(e.target.value)}
+ aria-label={label}
+ >
+ {options.map((o) => (
+ <option key={o.value} value={o.value}>
+ {o.label}
+ </option>
+ ))}
+ </select>
+ <svg
+ className="pointer-events-none absolute right-2 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-faint"
+ fill="none"
+ stroke="currentColor"
+ viewBox="0 0 24 24"
+ aria-hidden
+ >
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M19 9l-7 7-7-7" />
+ </svg>
+ </div>
</div>
);
}
diff --git a/src/components/switch-source.tsx b/src/components/switch-source.tsx
index 46f0c4b..5664912 100644
--- a/src/components/switch-source.tsx
+++ b/src/components/switch-source.tsx
@@ -3,7 +3,7 @@
import { useEffect, useMemo, useState } from 'react';
import { useRouter } from 'next/navigation';
import { api } from '@/lib/client-api';
-import type { SourceConfig, SearchResultItem, VideoDetail } from '@/lib/types';
+import type { SourceConfig, SearchResultItem } from '@/lib/types';
import { buildImageUrl, buildWatchUrl, cn } from '@/lib/utils';
import { useAppStore, resolveSource } from '@/lib/store';
import { useToast } from './toast';
diff --git a/src/components/toast.tsx b/src/components/toast.tsx
index 91fe098..579b592 100644
--- a/src/components/toast.tsx
+++ b/src/components/toast.tsx
@@ -59,17 +59,3 @@ export function ToastProvider({ children }: { children: ReactNode }) {
</ToastContext.Provider>
);
}
-
-// —— Loading 遮罩 ——(带 30s 自动解除,防无限 loading)
-
-export function LoadingOverlay({ show, message = '加载中...' }: { show: boolean; message?: string }) {
- if (!show) return null;
- return (
- <div className="fixed inset-0 z-[90] flex items-center justify-center bg-black/70 animate-fade-in">
- <div className="flex flex-col items-center gap-3">
- <div className="h-10 w-10 rounded-full border-4 border-line border-t-accent animate-spin" />
- <p className="text-sm text-content">{message}</p>
- </div>
- </div>
- );
-}
diff --git a/src/lib/client-api.ts b/src/lib/client-api.ts
index d167c08..1bc3d0b 100644
--- a/src/lib/client-api.ts
+++ b/src/lib/client-api.ts
@@ -90,6 +90,20 @@ export const api = {
return { ok: false, ms: Math.round(performance.now() - start), detail: undefined as VideoDetail | undefined, error: err instanceof Error ? err.message : '失败' };
}
},
+
+ /** 数据源探活:以搜索 "test" 的耗时与结果量衡量可用性 */
+ testSource: (url: string) =>
+ request<{ ok: boolean; ms: number; count?: number; error?: string }>('/api/source/test', {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify({ url }),
+ }),
+
+ /** 拉取远程源订阅列表(LibreTV-SourceList JSON) */
+ fetchSourceList: (url: string) => {
+ const sp = new URLSearchParams({ url });
+ return request<{ name?: string; sources: SourceConfig[] }>(`/api/source-list?${sp.toString()}`);
+ },
};
export interface SearchFailure {
diff --git a/src/lib/db.ts b/src/lib/db.ts
index 373955c..088eebc 100644
--- a/src/lib/db.ts
+++ b/src/lib/db.ts
@@ -135,23 +135,20 @@ export async function clearSearchHistory(): Promise<void> {
// —— 配置导入导出(兼容旧版 LibreTV-Settings JSON 结构的导出格式) ——
export async function exportConfig(): Promise<string> {
- const [history, customAPIsStr, ...rest] = await Promise.all([
- db.history.toArray(),
- Promise.resolve(localStorage.getItem('libretv-settings')),
- Promise.resolve(null),
- ]);
- const data: Record<string, unknown> = {};
- data['viewingHistory'] = JSON.stringify(history);
- if (customAPIsStr) data['libretv-settings'] = customAPIsStr;
- void rest;
-
- const payload = {
+ const history = await db.history.toArray();
+ const settings = localStorage.getItem('libretv-settings');
+
+ const data: Record<string, unknown> = {
+ viewingHistory: JSON.stringify(history),
+ };
+ if (settings) data['libretv-settings'] = settings;
+
+ return JSON.stringify({
name: 'LibreTV-Settings',
time: Date.now().toString(),
cfgVer: '2.0.0',
data,
- };
- return JSON.stringify(payload);
+ });
}
export async function importConfig(content: string): Promise<void> {
diff --git a/src/lib/store.ts b/src/lib/store.ts
index 20e715e..8c25d19 100644
--- a/src/lib/store.ts
+++ b/src/lib/store.ts
@@ -20,17 +20,39 @@ export interface AppSettings {
customImageProxy: string;
}
+/** 源订阅:远程源列表(LibreTV-SourceList JSON),可一键同步更新 */
+export interface SourceSubscription {
+ url: string;
+ /** 订阅列表自带名称 */
+ name?: string;
+ /** 上次同步成功时间 */
+ lastSync?: number;
+}
+
+/** 订阅导入的源 key 前缀:sub_<hash8(url)>_<i>,同步时按前缀整体替换 */
+export function subKeyPrefix(url: string): string {
+ let h = 5381;
+ for (let i = 0; i < url.length; i++) h = ((h << 5) + h + url.charCodeAt(i)) >>> 0;
+ return `sub_${h.toString(36)}`;
+}
+
interface AppState extends AppSettings {
/** 部署者通过 DEFAULT_SOURCES 环境变量预置的源(服务端下发,不持久化) */
envSources: SourceConfig[];
/** 已向用户展示过并自动勾选过的预置源 key(持久化:用户取消勾选后不再反复勾上) */
envKeysSeen: string[];
+ subscriptions: SourceSubscription[];
addCustomApi: (api: Omit<SourceConfig, 'key'> & { key?: string }) => void;
updateCustomApi: (key: string, patch: Partial<SourceConfig>) => void;
removeCustomApi: (key: string) => void;
toggleSourceSelected: (key: string) => void;
setSelectedKeys: (keys: string[]) => void;
setEnvSources: (list: SourceConfig[]) => void;
+ addSubscription: (url: string, name?: string) => void;
+ removeSubscription: (url: string) => void;
+ markSubscriptionSynced: (url: string, name?: string) => void;
+ /** 用订阅内容整体替换该订阅名下的源,返回新增数量 */
+ applySubscriptionSources: (subUrl: string, list: Omit<SourceConfig, 'key'>[]) => number;
updateSettings: (patch: Partial<Omit<AppSettings, 'customAPIs' | 'selectedKeys'>>) => void;
}
@@ -47,6 +69,7 @@ export const useAppStore = create<AppState>()(
customAPIs: [],
envSources: [],
envKeysSeen: [],
+ subscriptions: [],
selectedKeys: [],
yellowFilter: true,
adFilter: true,
@@ -112,6 +135,50 @@ export const useAppStore = create<AppState>()(
});
},
+ addSubscription: (url, name) => {
+ if (get().subscriptions.some((s) => s.url === url)) return;
+ set({ subscriptions: [...get().subscriptions, { url, name }] });
+ },
+
+ removeSubscription: (url) => {
+ const prefix = subKeyPrefix(url);
+ set({
+ subscriptions: get().subscriptions.filter((s) => s.url !== url),
+ customAPIs: get().customAPIs.filter((a) => !a.key.startsWith(prefix)),
+ selectedKeys: get().selectedKeys.filter((k) => !k.startsWith(prefix)),
+ });
+ },
+
+ markSubscriptionSynced: (url, name) => {
+ set({
+ subscriptions: get().subscriptions.map((s) =>
+ s.url === url ? { ...s, lastSync: Date.now(), name: name ?? s.name } : s
+ ),
+ });
+ },
+
+ applySubscriptionSources: (subUrl, list) => {
+ const prefix = subKeyPrefix(subUrl);
+ // 与订阅源 URL 相同的手动添加源视为重复,避免同步后出现双份
+ const subUrls = new Set(list.map((s) => s.url.replace(/\/+$/, '')));
+ const keptCustom = get().customAPIs.filter(
+ (a) => !a.key.startsWith(prefix) && !subUrls.has(a.url.replace(/\/+$/, ''))
+ );
+ const incoming: SourceConfig[] = list.map((s, i) => ({
+ ...s,
+ key: `${prefix}_${i}`,
+ }));
+ // 自动勾选(成人过滤开启时跳过成人源)
+ const toSelect = incoming
+ .filter((s) => !s.isAdult || !get().yellowFilter)
+ .map((s) => s.key);
+ set({
+ customAPIs: [...keptCustom, ...incoming],
+ selectedKeys: [...get().selectedKeys.filter((k) => !k.startsWith(prefix)), ...toSelect],
+ });
+ return incoming.length;
+ },
+
updateSettings: (patch) => {
// 打开成人内容过滤时,同步取消勾选所有成人源,避免两者并存
if (patch.yellowFilter === true) {
@@ -136,6 +203,7 @@ export const useAppStore = create<AppState>()(
customAPIs: s.customAPIs,
selectedKeys: s.selectedKeys,
envKeysSeen: s.envKeysSeen,
+ subscriptions: s.subscriptions,
yellowFilter: s.yellowFilter,
adFilter: s.adFilter,
doubanEnabled: s.doubanEnabled,
diff --git a/src/lib/types.ts b/src/lib/types.ts
index 759a1f8..4f88843 100644
--- a/src/lib/types.ts
+++ b/src/lib/types.ts
@@ -67,8 +67,6 @@ export interface SearchResponse {
failures: { sourceKey: string; error: string }[];
}
-export interface DetailResponse extends VideoDetail {}
-
export interface DoubanResponse {
items: DoubanItem[];
}
diff --git a/src/lib/utils.ts b/src/lib/utils.ts
index e9e7104..17c56f5 100644
--- a/src/lib/utils.ts
+++ b/src/lib/utils.ts
@@ -1,5 +1,3 @@
-import type { SourceConfig } from './types';
-
export function cn(...classes: (string | false | null | undefined)[]): string {
return classes.filter(Boolean).join(' ');
}