@heybox/hb-sdk 0.9.8 → 0.9.9-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/cli-chunks/bindings-B9HSKhmy.cjs +84 -0
- package/dist/cli-chunks/{build-BuYvQeZO.cjs → build-Vi5Zyplz.cjs} +6 -5
- package/dist/cli-chunks/{create-4XrYdjC0.cjs → create-Cfz1IcYf.cjs} +2 -2
- package/dist/cli-chunks/{dev-BIxJPUFK.cjs → dev-C2dtgF42.cjs} +56 -14
- package/dist/cli-chunks/{doctor-XhNbYYVj.cjs → doctor-D-zMCLIA.cjs} +1 -1
- package/dist/cli-chunks/game-binding-guide-z3X6h8ck.cjs +273 -0
- package/dist/cli-chunks/game-bindings-DiVP8PdD.cjs +51 -0
- package/dist/cli-chunks/{games-Cd9fgl6N.cjs → games-THhcga6y.cjs} +2 -2
- package/dist/cli-chunks/{index-aGcX-ULf.cjs → index-BuYCoach.cjs} +1 -1
- package/dist/cli-chunks/{index-Cr8tP0XZ.cjs → index-H9U6-mLY.cjs} +33 -17
- package/dist/cli-chunks/{index.esm-CvMA_ppV.cjs → index.esm-D8lqHXUQ.cjs} +1 -0
- package/dist/cli-chunks/{index.esm-UetP1FSl.cjs → index.esm-XiyiK7eH.cjs} +13 -10
- package/dist/cli-chunks/{login-Dd55F6qr.cjs → login-Bw_1UJ8i.cjs} +1 -1
- package/dist/cli-chunks/{project-vite-quIPuubf.cjs → project-vite-CFfq-fV7.cjs} +1 -1
- package/dist/cli-chunks/{remote-BfI4Ag6B.cjs → remote-CU88U8t8.cjs} +22 -112
- package/dist/cli-chunks/{runtime-permission-env-C1e5q2m5.cjs → runtime-permission-env-BtxzR-dv.cjs} +6 -86
- package/dist/cli-chunks/{skill-DY7-DQPL.cjs → skill-7RZJxGDO.cjs} +2 -2
- package/dist/cli-chunks/{version-D4jIw125.cjs → version-COTSItDf.cjs} +1 -1
- package/dist/cli.cjs +1 -1
- package/dist/devtools/browser-dev-host/assets/{browser-dev-host-x4xuSDs_.js → browser-dev-host-CHdD15qt.js} +1 -1
- package/dist/devtools/browser-dev-host/assets/desktop-app-launch-az2quV7I.js +13 -0
- package/dist/devtools/browser-dev-host/assets/index-D0XGMYIr.css +1 -0
- package/dist/devtools/browser-dev-host/assets/index-o5r5oqtq.js +567 -0
- package/dist/devtools/browser-dev-host/index.html +3 -3
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/miniapp-publish.cjs.js +1 -1
- package/dist/miniapp-publish.esm.js +1 -1
- package/dist/templates/vanilla-vite-js/README.md.ejs +1 -1
- package/dist/vite.cjs.js +2 -2
- package/dist/vite.esm.js +2 -2
- package/package.json +6 -6
- package/skill/SKILL.md +3 -2
- package/skill/skill.json +5 -5
- package/dist/devtools/browser-dev-host/assets/desktop-app-launch-C1gCwbuV.js +0 -13
- package/dist/devtools/browser-dev-host/assets/index-Bk5RxHO3.css +0 -1
- package/dist/devtools/browser-dev-host/assets/index-C6l2jsZT.js +0 -567
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
<meta name="theme-color" content="#f4f5f7" media="(prefers-color-scheme: light)" />
|
|
8
8
|
<meta name="theme-color" content="#14191e" media="(prefers-color-scheme: dark)" />
|
|
9
9
|
<title>小程序工坊调试台</title>
|
|
10
|
-
<script type="module" crossorigin src="/assets/index-
|
|
11
|
-
<link rel="modulepreload" crossorigin href="/assets/desktop-app-launch-
|
|
12
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
10
|
+
<script type="module" crossorigin src="/assets/index-o5r5oqtq.js"></script>
|
|
11
|
+
<link rel="modulepreload" crossorigin href="/assets/desktop-app-launch-az2quV7I.js">
|
|
12
|
+
<link rel="stylesheet" crossorigin href="/assets/index-D0XGMYIr.css">
|
|
13
13
|
</head>
|
|
14
14
|
<body>
|
|
15
15
|
<div id="app"></div>
|
package/dist/index.cjs.js
CHANGED
|
@@ -8044,7 +8044,7 @@ function createMessageId() {
|
|
|
8044
8044
|
/** 构建时替换为当前发布包的实际版本。 */
|
|
8045
8045
|
const HB_SDK_VERSION = typeof undefined === 'string'
|
|
8046
8046
|
? undefined
|
|
8047
|
-
: '0.9.
|
|
8047
|
+
: '0.9.9-alpha.0';
|
|
8048
8048
|
|
|
8049
8049
|
const RUNTIME_MODES = new Set(['production', 'preview', 'development', 'unknown']);
|
|
8050
8050
|
const OPERATING_SYSTEM_NAMES = new Set(['android', 'ios', 'ohos', 'windows', 'macos', 'linux', 'unknown']);
|
package/dist/index.esm.js
CHANGED
|
@@ -8040,7 +8040,7 @@ function createMessageId() {
|
|
|
8040
8040
|
/** 构建时替换为当前发布包的实际版本。 */
|
|
8041
8041
|
const HB_SDK_VERSION = typeof undefined === 'string'
|
|
8042
8042
|
? undefined
|
|
8043
|
-
: '0.9.
|
|
8043
|
+
: '0.9.9-alpha.0';
|
|
8044
8044
|
|
|
8045
8045
|
const RUNTIME_MODES = new Set(['production', 'preview', 'development', 'unknown']);
|
|
8046
8046
|
const OPERATING_SYSTEM_NAMES = new Set(['android', 'ios', 'ohos', 'windows', 'macos', 'linux', 'unknown']);
|
|
@@ -19400,7 +19400,7 @@ function getMiniappMetadataWarnings(metadata) {
|
|
|
19400
19400
|
warnings.push({
|
|
19401
19401
|
code: 'MINIAPP_TOOL_GAME_BINDING_MISSING',
|
|
19402
19402
|
field: 'bindAppIds',
|
|
19403
|
-
message: '
|
|
19403
|
+
message: '当前小程序为工具类,尚未关联游戏。关联后可在对应 PC 游戏工作区被发现(仍受适配平台等条件限制)。可在调试台“关联游戏”中选择,或运行 hb-sdk remote games configure;无需关联时可保持为空,修改后重新构建。',
|
|
19404
19404
|
});
|
|
19405
19405
|
}
|
|
19406
19406
|
return warnings;
|
|
@@ -19398,7 +19398,7 @@ function getMiniappMetadataWarnings(metadata) {
|
|
|
19398
19398
|
warnings.push({
|
|
19399
19399
|
code: 'MINIAPP_TOOL_GAME_BINDING_MISSING',
|
|
19400
19400
|
field: 'bindAppIds',
|
|
19401
|
-
message: '
|
|
19401
|
+
message: '当前小程序为工具类,尚未关联游戏。关联后可在对应 PC 游戏工作区被发现(仍受适配平台等条件限制)。可在调试台“关联游戏”中选择,或运行 hb-sdk remote games configure;无需关联时可保持为空,修改后重新构建。',
|
|
19402
19402
|
});
|
|
19403
19403
|
}
|
|
19404
19404
|
return warnings;
|
|
@@ -16,7 +16,7 @@ npm run deploy -- --release-note "更新说明"
|
|
|
16
16
|
|
|
17
17
|
发布前请补充 `package.json#heybox.desc`,描述已实现的主要功能和适用场景。模板不预填简介,以免占位文案被当作真实介绍发布。
|
|
18
18
|
|
|
19
|
-
如果小程序服务于特定 PC 游戏,可运行 `npm run hb-sdk -- remote games search "游戏名" --json` 查询平台游戏 appid
|
|
19
|
+
如果小程序服务于特定 PC 游戏,可运行 `npm run hb-sdk -- remote games search "游戏名" --json` 查询平台游戏 appid,核对结果后运行 `npm run hb-sdk -- remote games configure --app-id <appid>` 写回本地配置,或在调试台左侧“关联游戏”Tab中搜索并多选。关联后,已发布的小程序可在对应 PC 游戏工作区被发现,仍受适配平台等条件限制。工具类应主动检查,无需关联游戏时可保持为空,也可稍后设置。关联游戏随版本审核,修改后需重新构建;能否绑定以部署预检为准。
|
|
20
20
|
|
|
21
21
|
`package.json#heybox.platforms` 默认声明全平台 `android`、`ios`、`ohos`、`windows`、`macos`,请按项目实际完成适配并验收的平台保留,未适配的平台务必删除。`linux` 目前没有客户端基线与 API 兼容声明,暂不建议声明。
|
|
22
22
|
|
package/dist/vite.cjs.js
CHANGED
|
@@ -30,7 +30,7 @@ function getMiniappMetadataWarnings(metadata) {
|
|
|
30
30
|
warnings.push({
|
|
31
31
|
code: 'MINIAPP_TOOL_GAME_BINDING_MISSING',
|
|
32
32
|
field: 'bindAppIds',
|
|
33
|
-
message: '
|
|
33
|
+
message: '当前小程序为工具类,尚未关联游戏。关联后可在对应 PC 游戏工作区被发现(仍受适配平台等条件限制)。可在调试台“关联游戏”中选择,或运行 hb-sdk remote games configure;无需关联时可保持为空,修改后重新构建。',
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
return warnings;
|
|
@@ -11246,7 +11246,7 @@ async function ensureBasicInfoDirectory(rootPath, relative) {
|
|
|
11246
11246
|
/** 构建时替换为当前发布包的实际版本。 */
|
|
11247
11247
|
const HB_SDK_VERSION = typeof undefined === 'string'
|
|
11248
11248
|
? undefined
|
|
11249
|
-
: '0.9.
|
|
11249
|
+
: '0.9.9-alpha.0';
|
|
11250
11250
|
|
|
11251
11251
|
/**
|
|
11252
11252
|
* network.request 诊断日志的纯脱敏工具。
|
package/dist/vite.esm.js
CHANGED
|
@@ -27,7 +27,7 @@ function getMiniappMetadataWarnings(metadata) {
|
|
|
27
27
|
warnings.push({
|
|
28
28
|
code: 'MINIAPP_TOOL_GAME_BINDING_MISSING',
|
|
29
29
|
field: 'bindAppIds',
|
|
30
|
-
message: '
|
|
30
|
+
message: '当前小程序为工具类,尚未关联游戏。关联后可在对应 PC 游戏工作区被发现(仍受适配平台等条件限制)。可在调试台“关联游戏”中选择,或运行 hb-sdk remote games configure;无需关联时可保持为空,修改后重新构建。',
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
return warnings;
|
|
@@ -11243,7 +11243,7 @@ async function ensureBasicInfoDirectory(rootPath, relative) {
|
|
|
11243
11243
|
/** 构建时替换为当前发布包的实际版本。 */
|
|
11244
11244
|
const HB_SDK_VERSION = typeof undefined === 'string'
|
|
11245
11245
|
? undefined
|
|
11246
|
-
: '0.9.
|
|
11246
|
+
: '0.9.9-alpha.0';
|
|
11247
11247
|
|
|
11248
11248
|
/**
|
|
11249
11249
|
* network.request 诊断日志的纯脱敏工具。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heybox/hb-sdk",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.9-alpha.0",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"./src/index.ts",
|
|
6
6
|
"./src/core/singleton.ts",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"undici": "^7.28.0",
|
|
89
89
|
"ws": "^8.18.0",
|
|
90
90
|
"sharp": "^0.34.5",
|
|
91
|
-
"@heybox/hb-sdk-protocol": "0.9.
|
|
91
|
+
"@heybox/hb-sdk-protocol": "0.9.9-alpha.0"
|
|
92
92
|
},
|
|
93
93
|
"peerDependencies": {
|
|
94
94
|
"vite": ">=5"
|
|
@@ -140,13 +140,13 @@
|
|
|
140
140
|
"@ai-desktop/view-contract": "file:../hb-sdk-protocol/vendor/view-contract-2.2.2-6ac49bbf6410.tgz",
|
|
141
141
|
"rollup-plugin-dts": "6.4.0",
|
|
142
142
|
"playwright-core": "1.64.1",
|
|
143
|
-
"@heybox-domain/heybox-theme": "~0.1.0",
|
|
144
|
-
"@heybox/hb-sdk-runtime": "~0.9.8",
|
|
145
143
|
"@heybox-domain/heybox-vue3-ui": "~0.1.0",
|
|
144
|
+
"@heybox/hb-sdk-runtime": "~0.9.9-alpha.0",
|
|
145
|
+
"@heybox-domain/heybox-theme": "~0.1.0",
|
|
146
146
|
"@heybox/hb-api": "~1.28.26",
|
|
147
|
+
"@heybox/runtime": "~0.2.2",
|
|
147
148
|
"@heybox/runtime-policy": "~0.2.2",
|
|
148
|
-
"@heybox/runtime-transport-fetch": "~0.2.2"
|
|
149
|
-
"@heybox/runtime": "~0.2.2"
|
|
149
|
+
"@heybox/runtime-transport-fetch": "~0.2.2"
|
|
150
150
|
},
|
|
151
151
|
"publishConfig": {
|
|
152
152
|
"registry": "https://registry.npmjs.org/",
|
package/skill/SKILL.md
CHANGED
|
@@ -65,8 +65,9 @@ Choose workflow guidance from indexed Guides or Recipes and exact contracts from
|
|
|
65
65
|
After the mini-program purpose is clear, after completing its main functionality, and before build, deploy or audit submission, check its category, description and game bindings using the canonical project-configuration and CLI guides.
|
|
66
66
|
|
|
67
67
|
- Proactively fill a missing description in the local project from implemented functionality and intended users when local editing is authorized. Keep existing user-written text; update it only when the requested work changes its meaning. Do not invent features or add placeholder descriptions merely to silence warnings.
|
|
68
|
-
- Check whether the category reflects the actual purpose; do not assume the scaffold's initial category is correct.
|
|
69
|
-
-
|
|
68
|
+
- Check whether the category reflects the actual purpose; do not assume the scaffold's initial category is correct. Assess game relevance independently of category, including projects still using the default `other`. Explain that confirmed game bindings can make published Mini-programs discoverable in the matching PC game workspace, subject to declared platforms and platform eligibility.
|
|
69
|
+
- For a tool serving specific PC games, use its implemented purpose, name, description and declared game-data resources to propose search terms. Resource GameIds and Steam IDs are not substitutes for platform game-search results. Search through the documented CLI, verify the exact game/edition/platform and preserve all existing bindings unless changing them is intended. When local edits are authorized and identity is clear, prefer the documented local `remote games configure --app-id ... --json` workflow after checking installed CLI support; it replaces the full local list, so include the existing bindings to keep. On older versions, follow that version's documented project-editing workflow. Never silently take the first candidate, bind all search results, or infer permission to publish from a local configuration change.
|
|
70
|
+
- Search results are candidates, not proof that binding is valid. Never guess appids, assume every id is a Steam App ID, or choose the first result merely by ranking. Ask a short question when names, editions or platforms remain ambiguous. Tools without a specific game may remain unbound. Do not invent a separate project category or persist a reminder preference. Do not clear existing bindings without intended removal. Explain an unresolved binding decision without changing category to bypass warnings. A deferred or ambiguous decision must remain unresolved so the next publishing guide can ask again.
|
|
70
71
|
- Treat metadata warnings as actionable suggestions and fix confirmed omissions within the authorized scope. Missing optional metadata must not block development or publication, and a warning does not authorize remote publication. Leave invalid-value errors to the documented validation rules.
|
|
71
72
|
|
|
72
73
|
## Troubleshooting and Proactive Feedback
|
package/skill/skill.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hb-sdk",
|
|
3
|
-
"skillVersion": "0.9.
|
|
3
|
+
"skillVersion": "0.9.9-alpha.0+skill.85a3bbd19a58",
|
|
4
4
|
"sdk": {
|
|
5
5
|
"package": "@heybox/hb-sdk",
|
|
6
|
-
"version": "0.9.
|
|
7
|
-
"compatibility": "0.9.
|
|
6
|
+
"version": "0.9.9-alpha.0",
|
|
7
|
+
"compatibility": "0.9.9-alpha.0"
|
|
8
8
|
},
|
|
9
9
|
"distribution": {
|
|
10
10
|
"type": "npm",
|
|
11
11
|
"package": "@heybox/hb-sdk",
|
|
12
|
-
"version": "0.9.
|
|
12
|
+
"version": "0.9.9-alpha.0",
|
|
13
13
|
"path": "skill"
|
|
14
14
|
},
|
|
15
|
-
"integrity": "sha256-
|
|
15
|
+
"integrity": "sha256-85a3bbd19a58256cb109d799b37c39bd53c40dc59627e61da6ee77b3d2eb02b6"
|
|
16
16
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
function gi(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Q={},Pt=[],qe=()=>{},$s=()=>!1,pi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),mi=e=>e.startsWith("onUpdate:"),he=Object.assign,yi=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ra=Object.prototype.hasOwnProperty,X=(e,t)=>Ra.call(e,t),K=Array.isArray,Dt=e=>hn(e)==="[object Map]",Ks=e=>hn(e)==="[object Set]",Fi=e=>hn(e)==="[object Date]",q=e=>typeof e=="function",ce=e=>typeof e=="string",Me=e=>typeof e=="symbol",Z=e=>e!==null&&typeof e=="object",zs=e=>(Z(e)||q(e))&&q(e.then)&&q(e.catch),qs=Object.prototype.toString,hn=e=>qs.call(e),Ma=e=>hn(e).slice(8,-1),Js=e=>hn(e)==="[object Object]",Wn=e=>ce(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Gt=gi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Un=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},xa=/-\w/g,Ne=Un(e=>e.replace(xa,t=>t.slice(1).toUpperCase())),La=/\B([A-Z])/g,Ot=Un(e=>e.replace(La,"-$1").toLowerCase()),wi=Un(e=>e.charAt(0).toUpperCase()+e.slice(1)),Tn=Un(e=>e?`on${wi(e)}`:""),fe=(e,t)=>!Object.is(e,t),dr=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Gs=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Na=e=>{const t=parseFloat(e);return isNaN(t)?e:t},bf=e=>{const t=ce(e)?Number(e):NaN;return isNaN(t)?e:t};let Hi;const Vn=()=>Hi||(Hi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function jn(e){if(K(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=ce(r)?Ha(r):jn(r);if(i)for(const s in i)t[s]=i[s]}return t}else if(ce(e)||Z(e))return e}const Oa=/;(?![^(]*\))/g,Ba=/:([^]+)/,Fa=/\/\*[^]*?\*\//g;function Ha(e){const t={};return e.replace(Fa,"").split(Oa).forEach(n=>{if(n){const r=n.split(Ba);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function $n(e){let t="";if(ce(e))t=e;else if(K(e))for(let n=0;n<e.length;n++){const r=$n(e[n]);r&&(t+=r+" ")}else if(Z(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function _f(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ce(t)&&(e.class=$n(t)),n&&(e.style=jn(n)),e}const Wa="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",vf=gi(Wa);function Ef(e){return!!e||e===""}function Ua(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Kn(e[r],t[r]);return n}function Kn(e,t){if(e===t)return!0;let n=Fi(e),r=Fi(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Me(e),r=Me(t),n||r)return e===t;if(n=K(e),r=K(t),n||r)return n&&r?Ua(e,t):!1;if(n=Z(e),r=Z(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,s=Object.keys(t).length;if(i!==s)return!1;for(const o in e){const a=e.hasOwnProperty(o),l=t.hasOwnProperty(o);if(a&&!l||!a&&l||!Kn(e[o],t[o]))return!1}}return String(e)===String(t)}function If(e,t){return e.findIndex(n=>Kn(n,t))}const Ys=e=>!!(e&&e.__v_isRef===!0),Va=e=>ce(e)?e:e==null?"":K(e)||Z(e)&&(e.toString===qs||!q(e.toString))?Ys(e)?Va(e.value):JSON.stringify(e,Qs,2):String(e),Qs=(e,t)=>Ys(t)?Qs(e,t.value):Dt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],s)=>(n[hr(r,s)+" =>"]=i,n),{})}:Ks(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>hr(n))}:Me(t)?hr(t):Z(t)&&!K(t)&&!Js(t)?String(t):t,hr=(e,t="")=>{var n;return Me(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let oe;class Xs{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&oe&&(oe.active?(this.parent=oe,this.index=(oe.scopes||(oe.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=oe;try{return oe=this,t()}finally{oe=n}}}on(){++this._on===1&&(this.prevScope=oe,oe=this)}off(){if(this._on>0&&--this._on===0){if(oe===this)oe=this.prevScope;else{let t=oe;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Sf(e){return new Xs(e)}function ja(){return oe}function Tf(e,t=!1){oe&&oe.cleanups.push(e)}let ie;const gr=new WeakSet;class Zs{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,oe&&(oe.active?oe.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,gr.has(this)&&(gr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||to(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Wi(this),no(this);const t=ie,n=Le;ie=this,Le=!0;try{return this.fn()}finally{ro(this),ie=t,Le=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)vi(t);this.deps=this.depsTail=void 0,Wi(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?gr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Jr(this)&&this.run()}get dirty(){return Jr(this)}}let eo=0,Yt,Qt;function to(e,t=!1){if(e.flags|=8,t){e.next=Qt,Qt=e;return}e.next=Yt,Yt=e}function bi(){eo++}function _i(){if(--eo>0)return;if(Qt){let t=Qt;for(Qt=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Yt;){let t=Yt;for(Yt=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function no(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ro(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),vi(r),$a(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function Jr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(io(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function io(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===rn)||(e.globalVersion=rn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Jr(e))))return;e.flags|=2;const t=e.dep,n=ie,r=Le;ie=e,Le=!0;try{no(e);const i=e.fn(e._value);(t.version===0||fe(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{ie=n,Le=r,ro(e),e.flags&=-3}}function vi(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)vi(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function $a(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Le=!0;const so=[];function nt(){so.push(Le),Le=!1}function rt(){const e=so.pop();Le=e===void 0?!0:e}function Wi(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ie;ie=void 0;try{t()}finally{ie=n}}}let rn=0;class Ka{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class zn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!ie||!Le||ie===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ie)n=this.activeLink=new Ka(ie,this),ie.deps?(n.prevDep=ie.depsTail,ie.depsTail.nextDep=n,ie.depsTail=n):ie.deps=ie.depsTail=n,oo(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=ie.depsTail,n.nextDep=void 0,ie.depsTail.nextDep=n,ie.depsTail=n,ie.deps===n&&(ie.deps=r)}return n}trigger(t){this.version++,rn++,this.notify(t)}notify(t){bi();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{_i()}}}function oo(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)oo(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Dn=new WeakMap,bt=Symbol(""),Gr=Symbol(""),sn=Symbol("");function ge(e,t,n){if(Le&&ie){let r=Dn.get(e);r||Dn.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new zn),i.map=r,i.key=n),i.track()}}function et(e,t,n,r,i,s){const o=Dn.get(e);if(!o){rn++;return}const a=l=>{l&&l.trigger()};if(bi(),t==="clear")o.forEach(a);else{const l=K(e),u=l&&Wn(n);if(l&&n==="length"){const c=Number(r);o.forEach((d,p)=>{(p==="length"||p===sn||!Me(p)&&p>=c)&&a(d)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),u&&a(o.get(sn)),t){case"add":l?u&&a(o.get("length")):(a(o.get(bt)),Dt(e)&&a(o.get(Gr)));break;case"delete":l||(a(o.get(bt)),Dt(e)&&a(o.get(Gr)));break;case"set":Dt(e)&&a(o.get(bt));break}}_i()}function za(e,t){const n=Dn.get(e);return n&&n.get(t)}function Tt(e){const t=Y(e);return t===e?t:(ge(t,"iterate",sn),De(e)?t:t.map(Oe))}function qn(e){return ge(e=Y(e),"iterate",sn),e}function $e(e,t){return it(e)?xt(_t(e)?Oe(t):t):Oe(t)}const qa={__proto__:null,[Symbol.iterator](){return pr(this,Symbol.iterator,e=>$e(this,e))},concat(...e){return Tt(this).concat(...e.map(t=>K(t)?Tt(t):t))},entries(){return pr(this,"entries",e=>(e[1]=$e(this,e[1]),e))},every(e,t){return Xe(this,"every",e,t,void 0,arguments)},filter(e,t){return Xe(this,"filter",e,t,n=>n.map(r=>$e(this,r)),arguments)},find(e,t){return Xe(this,"find",e,t,n=>$e(this,n),arguments)},findIndex(e,t){return Xe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Xe(this,"findLast",e,t,n=>$e(this,n),arguments)},findLastIndex(e,t){return Xe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Xe(this,"forEach",e,t,void 0,arguments)},includes(...e){return mr(this,"includes",e)},indexOf(...e){return mr(this,"indexOf",e)},join(e){return Tt(this).join(e)},lastIndexOf(...e){return mr(this,"lastIndexOf",e)},map(e,t){return Xe(this,"map",e,t,void 0,arguments)},pop(){return Wt(this,"pop")},push(...e){return Wt(this,"push",e)},reduce(e,...t){return Ui(this,"reduce",e,t)},reduceRight(e,...t){return Ui(this,"reduceRight",e,t)},shift(){return Wt(this,"shift")},some(e,t){return Xe(this,"some",e,t,void 0,arguments)},splice(...e){return Wt(this,"splice",e)},toReversed(){return Tt(this).toReversed()},toSorted(e){return Tt(this).toSorted(e)},toSpliced(...e){return Tt(this).toSpliced(...e)},unshift(...e){return Wt(this,"unshift",e)},values(){return pr(this,"values",e=>$e(this,e))}};function pr(e,t,n){const r=qn(e),i=r[t]();return r!==e&&!De(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.done||(s.value=n(s.value)),s}),i}const Ja=Array.prototype;function Xe(e,t,n,r,i,s){const o=qn(e),a=o!==e&&!De(e),l=o[t];if(l!==Ja[t]){const d=l.apply(e,s);return a?Oe(d):d}let u=n;o!==e&&(a?u=function(d,p){return n.call(this,$e(e,d),p,e)}:n.length>2&&(u=function(d,p){return n.call(this,d,p,e)}));const c=l.call(o,u,r);return a&&i?i(c):c}function Ui(e,t,n,r){const i=qn(e),s=i!==e&&!De(e);let o=n,a=!1;i!==e&&(s?(a=r.length===0,o=function(u,c,d){return a&&(a=!1,u=$e(e,u)),n.call(this,u,$e(e,c),d,e)}):n.length>3&&(o=function(u,c,d){return n.call(this,u,c,d,e)}));const l=i[t](o,...r);return a?$e(e,l):l}function mr(e,t,n){const r=Y(e);ge(r,"iterate",sn);const i=r[t](...n);return(i===-1||i===!1)&&Qn(n[0])?(n[0]=Y(n[0]),r[t](...n)):i}function Wt(e,t,n=[]){nt(),bi();const r=Y(e)[t].apply(e,n);return _i(),rt(),r}const Ga=gi("__proto__,__v_isRef,__isVue"),ao=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Me));function Ya(e){Me(e)||(e=String(e));const t=Y(this);return ge(t,"has",e),t.hasOwnProperty(e)}class lo{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(i?s?po:go:s?ho:fo).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=K(t);if(!i){let l;if(o&&(l=qa[n]))return l;if(n==="hasOwnProperty")return Ya}const a=Reflect.get(t,n,le(t)?t:r);if((Me(n)?ao.has(n):Ga(n))||(i||ge(t,"get",n),s))return a;if(le(a)){const l=o&&Wn(n)?a:a.value;return i&&Z(l)?Qr(l):l}return Z(a)?i?Qr(a):Gn(a):a}}class co extends lo{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];const o=K(t)&&Wn(n);if(!this._isShallow){const u=it(s);if(!De(r)&&!it(r)&&(s=Y(s),r=Y(r)),!o&&le(s)&&!le(r))return u||(s.value=r),!0}const a=o?Number(n)<t.length:X(t,n),l=Reflect.set(t,n,r,le(t)?t:i);return t===Y(i)&&(a?fe(r,s)&&et(t,"set",n,r):et(t,"add",n,r)),l}deleteProperty(t,n){const r=X(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&r&&et(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!Me(n)||!ao.has(n))&&ge(t,"has",n),r}ownKeys(t){return ge(t,"iterate",K(t)?"length":bt),Reflect.ownKeys(t)}}class uo extends lo{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Qa=new co,Xa=new uo,Za=new co(!0),el=new uo(!0),Yr=e=>e,bn=e=>Reflect.getPrototypeOf(e);function tl(e,t,n){return function(...r){const i=this.__v_raw,s=Y(i),o=Dt(s),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...r),c=n?Yr:t?xt:Oe;return!t&&ge(s,"iterate",l?Gr:bt),he(Object.create(u),{next(){const{value:d,done:p}=u.next();return p?{value:d,done:p}:{value:a?[c(d[0]),c(d[1])]:c(d),done:p}}})}}function _n(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function nl(e,t){const n={get(i){const s=this.__v_raw,o=Y(s),a=Y(i);e||(fe(i,a)&&ge(o,"get",i),ge(o,"get",a));const{has:l}=bn(o),u=t?Yr:e?xt:Oe;if(l.call(o,i))return u(s.get(i));if(l.call(o,a))return u(s.get(a));s!==o&&s.get(i)},get size(){const i=this.__v_raw;return!e&&ge(Y(i),"iterate",bt),i.size},has(i){const s=this.__v_raw,o=Y(s),a=Y(i);return e||(fe(i,a)&&ge(o,"has",i),ge(o,"has",a)),i===a?s.has(i):s.has(i)||s.has(a)},forEach(i,s){const o=this,a=o.__v_raw,l=Y(a),u=t?Yr:e?xt:Oe;return!e&&ge(l,"iterate",bt),a.forEach((c,d)=>i.call(s,u(c),u(d),o))}};return he(n,e?{add:_n("add"),set:_n("set"),delete:_n("delete"),clear:_n("clear")}:{add(i){const s=Y(this),o=bn(s),a=Y(i),l=!t&&!De(i)&&!it(i)?a:i;return o.has.call(s,l)||fe(i,l)&&o.has.call(s,i)||fe(a,l)&&o.has.call(s,a)||(s.add(l),et(s,"add",l,l)),this},set(i,s){!t&&!De(s)&&!it(s)&&(s=Y(s));const o=Y(this),{has:a,get:l}=bn(o);let u=a.call(o,i);u||(i=Y(i),u=a.call(o,i));const c=l.call(o,i);return o.set(i,s),u?fe(s,c)&&et(o,"set",i,s):et(o,"add",i,s),this},delete(i){const s=Y(this),{has:o,get:a}=bn(s);let l=o.call(s,i);l||(i=Y(i),l=o.call(s,i)),a&&a.call(s,i);const u=s.delete(i);return l&&et(s,"delete",i,void 0),u},clear(){const i=Y(this),s=i.size!==0,o=i.clear();return s&&et(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=tl(i,e,t)}),n}function Jn(e,t){const n=nl(e,t);return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(X(n,i)&&i in r?n:r,i,s)}const rl={get:Jn(!1,!1)},il={get:Jn(!1,!0)},sl={get:Jn(!0,!1)},ol={get:Jn(!0,!0)},fo=new WeakMap,ho=new WeakMap,go=new WeakMap,po=new WeakMap;function al(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ll(e){return e.__v_skip||!Object.isExtensible(e)?0:al(Ma(e))}function Gn(e){return it(e)?e:Yn(e,!1,Qa,rl,fo)}function mo(e){return Yn(e,!1,Za,il,ho)}function Qr(e){return Yn(e,!0,Xa,sl,go)}function Cf(e){return Yn(e,!0,el,ol,po)}function Yn(e,t,n,r,i){if(!Z(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=ll(e);if(s===0)return e;const o=i.get(e);if(o)return o;const a=new Proxy(e,s===2?r:n);return i.set(e,a),a}function _t(e){return it(e)?_t(e.__v_raw):!!(e&&e.__v_isReactive)}function it(e){return!!(e&&e.__v_isReadonly)}function De(e){return!!(e&&e.__v_isShallow)}function Qn(e){return e?!!e.__v_raw:!1}function Y(e){const t=e&&e.__v_raw;return t?Y(t):e}function cl(e){return!X(e,"__v_skip")&&Object.isExtensible(e)&&Gs(e,"__v_skip",!0),e}const Oe=e=>Z(e)?Gn(e):e,xt=e=>Z(e)?Qr(e):e;function le(e){return e?e.__v_isRef===!0:!1}function ul(e){return yo(e,!1)}function Xn(e){return yo(e,!0)}function yo(e,t){return le(e)?e:new fl(e,t)}class fl{constructor(t,n){this.dep=new zn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Y(t),this._value=n?t:Oe(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||De(t)||it(t);t=r?t:Y(t),fe(t,n)&&(this._rawValue=t,this._value=r?t:Oe(t),this.dep.trigger())}}function Af(e){e.dep&&e.dep.trigger()}function Ei(e){return le(e)?e.value:e}function Pf(e){return q(e)?e():Ei(e)}const dl={get:(e,t,n)=>t==="__v_raw"?e:Ei(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return le(i)&&!le(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function wo(e){return _t(e)?e:new Proxy(e,dl)}class hl{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new zn,{get:r,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function gl(e){return new hl(e)}function Df(e){const t=K(e)?new Array(e.length):{};for(const n in e)t[n]=bo(e,n);return t}class pl{constructor(t,n,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=Me(n)?n:String(n),this._raw=Y(t);let i=!0,s=t;if(!K(t)||Me(this._key)||!Wn(this._key))do i=!Qn(s)||De(s);while(i&&(s=s.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=Ei(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&le(this._raw[this._key])){const n=this._object[this._key];if(le(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return za(this._raw,this._key)}}class ml{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function kf(e,t,n){return le(e)?e:q(e)?new ml(e):Z(e)&&arguments.length>1?bo(e,t,n):ul(e)}function bo(e,t,n){return new pl(e,t,n)}class yl{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new zn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=rn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&ie!==this)return to(this,!0),!0}get value(){const t=this.dep.track();return io(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function wl(e,t,n=!1){let r,i;return q(e)?r=e:(r=e.get,i=e.set),new yl(r,i,n)}const vn={},kn=new WeakMap;let mt;function bl(e,t=!1,n=mt){if(n){let r=kn.get(n);r||kn.set(n,r=[]),r.push(e)}}function _l(e,t,n=Q){const{immediate:r,deep:i,once:s,scheduler:o,augmentJob:a,call:l}=n,u=I=>i?I:De(I)||i===!1||i===0?tt(I,1):tt(I);let c,d,p,m,E=!1,_=!1;if(le(e)?(d=()=>e.value,E=De(e)):_t(e)?(d=()=>u(e),E=!0):K(e)?(_=!0,E=e.some(I=>_t(I)||De(I)),d=()=>e.map(I=>{if(le(I))return I.value;if(_t(I))return u(I);if(q(I))return l?l(I,2):I()})):q(e)?t?d=l?()=>l(e,2):e:d=()=>{if(p){nt();try{p()}finally{rt()}}const I=mt;mt=c;try{return l?l(e,3,[m]):e(m)}finally{mt=I}}:d=qe,t&&i){const I=d,j=i===!0?1/0:i;d=()=>tt(I(),j)}const F=ja(),x=()=>{c.stop(),F&&F.active&&yi(F.effects,c)};if(s&&t){const I=t;t=(...j)=>{I(...j),x()}}let P=_?new Array(e.length).fill(vn):vn;const N=I=>{if(!(!(c.flags&1)||!c.dirty&&!I))if(t){const j=c.run();if(i||E||(_?j.some((M,D)=>fe(M,P[D])):fe(j,P))){p&&p();const M=mt;mt=c;try{const D=[j,P===vn?void 0:_&&P[0]===vn?[]:P,m];P=j,l?l(t,3,D):t(...D)}finally{mt=M}}}else c.run()};return a&&a(N),c=new Zs(d),c.scheduler=o?()=>o(N,!1):N,m=I=>bl(I,!1,c),p=c.onStop=()=>{const I=kn.get(c);if(I){if(l)l(I,4);else for(const j of I)j();kn.delete(c)}},t?r?N(!0):P=c.run():o?o(N.bind(null,!0),!0):c.run(),x.pause=c.pause.bind(c),x.resume=c.resume.bind(c),x.stop=x,x}function tt(e,t=1/0,n){if(t<=0||!Z(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,le(e))tt(e.value,t,n);else if(K(e))for(let r=0;r<e.length;r++)tt(e[r],t,n);else if(Ks(e)||Dt(e))e.forEach(r=>{tt(r,t,n)});else if(Js(e)){for(const r in e)tt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&tt(e[r],t,n)}return e}function gn(e,t,n,r){try{return r?e(...r):e()}catch(i){Zn(i,t,n)}}function Je(e,t,n,r){if(q(e)){const i=gn(e,t,n,r);return i&&zs(i)&&i.catch(s=>{Zn(s,t,n)}),i}if(K(e)){const i=[];for(let s=0;s<e.length;s++)i.push(Je(e[s],t,n,r));return i}}function Zn(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||Q;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,l,u)===!1)return}a=a.parent}if(s){nt(),gn(s,null,10,[e,l,u]),rt();return}}vl(e,n,i,r,o)}function vl(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}const _e=[];let Ve=-1;const kt=[];let ut=null,At=0;const _o=Promise.resolve();let Rn=null;function El(e){const t=Rn||_o;return e?t.then(this?e.bind(this):e):t}function Il(e){let t=Ve+1,n=_e.length;for(;t<n;){const r=t+n>>>1,i=_e[r],s=on(i);s<e||s===e&&i.flags&2?t=r+1:n=r}return t}function Ii(e){if(!(e.flags&1)){const t=on(e),n=_e[_e.length-1];!n||!(e.flags&2)&&t>=on(n)?_e.push(e):_e.splice(Il(t),0,e),e.flags|=1,vo()}}function vo(){Rn||(Rn=_o.then(Io))}function Sl(e){K(e)?kt.push(...e):ut&&e.id===-1?ut.splice(At+1,0,e):e.flags&1||(kt.push(e),e.flags|=1),vo()}function Vi(e,t,n=Ve+1){for(;n<_e.length;n++){const r=_e[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;_e.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Eo(e){if(kt.length){const t=[...new Set(kt)].sort((n,r)=>on(n)-on(r));if(kt.length=0,ut){ut.push(...t);return}for(ut=t,At=0;At<ut.length;At++){const n=ut[At];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}ut=null,At=0}}const on=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Io(e){try{for(Ve=0;Ve<_e.length;Ve++){const t=_e[Ve];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),gn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ve<_e.length;Ve++){const t=_e[Ve];t&&(t.flags&=-2)}Ve=-1,_e.length=0,Eo(),Rn=null,(_e.length||kt.length)&&Io()}}let de=null,So=null;function Mn(e){const t=de;return de=e,So=e&&e.type.__scopeId||null,t}function Tl(e,t=de,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&Nn(-1);const s=Mn(t);let o;try{o=e(...i)}finally{Mn(s),r._d&&Nn(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Rf(e,t){if(de===null)return e;const n=ir(de),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,o,a,l=Q]=t[i];s&&(q(s)&&(s={mounted:s,updated:s}),s.deep&&tt(o),r.push({dir:s,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function gt(e,t,n,r){const i=e.dirs,s=t&&t.dirs;for(let o=0;o<i.length;o++){const a=i[o];s&&(a.oldValue=s[o].value);let l=a.dir[r];l&&(nt(),Je(l,n,8,[e.el,a,e,t]),rt())}}function Cl(e,t){if(me){let n=me.provides;const r=me.parent&&me.parent.provides;r===n&&(n=me.provides=Object.create(r)),n[e]=t}}function Cn(e,t,n=!1){const r=mn();if(r||Mt){let i=Mt?Mt._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&q(t)?t.call(r&&r.proxy):t}}const Al=Symbol.for("v-scx"),Pl=()=>Cn(Al);function Mf(e,t){return pn(e,null,t)}function xf(e,t){return pn(e,null,{flush:"post"})}function Dl(e,t){return pn(e,null,{flush:"sync"})}function yr(e,t,n){return pn(e,t,n)}function pn(e,t,n=Q){const{immediate:r,deep:i,flush:s,once:o}=n,a=he({},n),l=t&&r||!t&&s!=="post";let u;if(un){if(s==="sync"){const m=Pl();u=m.__watcherHandles||(m.__watcherHandles=[])}else if(!l){const m=()=>{};return m.stop=qe,m.resume=qe,m.pause=qe,m}}const c=me;a.call=(m,E,_)=>Je(m,c,E,_);let d=!1;s==="post"?a.scheduler=m=>{be(m,c&&c.suspense)}:s!=="sync"&&(d=!0,a.scheduler=(m,E)=>{E?m():Ii(m)}),a.augmentJob=m=>{t&&(m.flags|=4),d&&(m.flags|=2,c&&(m.id=c.uid,m.i=c))};const p=_l(e,t,a);return un&&(u?u.push(p):l&&p()),p}function kl(e,t,n){const r=this.proxy,i=ce(e)?e.includes(".")?To(r,e):()=>r[e]:e.bind(r,r);let s;q(t)?s=t:(s=t.handler,n=t);const o=yn(this),a=pn(i,s.bind(r),n);return o(),a}function To(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}const ct=new WeakMap,Co=Symbol("_vte"),Ao=e=>e.__isTeleport,yt=e=>e&&(e.disabled||e.disabled===""),Rl=e=>e&&(e.defer||e.defer===""),ji=e=>typeof SVGElement<"u"&&e instanceof SVGElement,$i=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Xr=(e,t)=>{const n=e&&e.to;return ce(n)?t?t(n):null:n},Ml={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,s,o,a,l,u){const{mc:c,pc:d,pbc:p,o:{insert:m,querySelector:E,createText:_,createComment:F,parentNode:x}}=u,P=yt(t.props);let{dynamicChildren:N}=t;const I=(D,y,g)=>{D.shapeFlag&16&&c(D.children,y,g,i,s,o,a,l)},j=(D=t)=>{const y=yt(D.props),g=D.target=Xr(D.props,E),b=Zr(g,D,_,m);g&&(o!=="svg"&&ji(g)?o="svg":o!=="mathml"&&$i(g)&&(o="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(g),y||(I(D,g,b),Kt(D,!1)))},M=D=>{const y=()=>{if(ct.get(D)===y){if(ct.delete(D),yt(D.props)){const g=x(D.el)||n;I(D,g,D.anchor),Kt(D,!0)}j(D)}};ct.set(D,y),be(y,s)};if(e==null){const D=t.el=_(""),y=t.anchor=_("");if(m(D,n,r),m(y,n,r),Rl(t.props)||s&&s.pendingBranch){M(t);return}P&&(I(t,n,y),Kt(t,!0)),j()}else{t.el=e.el;const D=t.anchor=e.anchor,y=ct.get(e);if(y){y.flags|=8,ct.delete(e),M(t);return}t.targetStart=e.targetStart;const g=t.target=e.target,b=t.targetAnchor=e.targetAnchor,v=yt(e.props),k=v?n:g,W=v?D:b;if(o==="svg"||ji(g)?o="svg":(o==="mathml"||$i(g))&&(o="mathml"),N?(p(e.dynamicChildren,N,k,i,s,o,a),Ci(e,t,!0)):l||d(e,t,k,W,i,s,o,a,!1),P)v?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):En(t,n,D,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const U=t.target=Xr(t.props,E);U&&En(t,U,null,u,0)}else v&&En(t,g,b,u,1);Kt(t,P)}},remove(e,t,n,{um:r,o:{remove:i}},s){const{shapeFlag:o,children:a,anchor:l,targetStart:u,targetAnchor:c,target:d,props:p}=e;let m=s||!yt(p);const E=ct.get(e);if(E&&(E.flags|=8,ct.delete(e),m=!1),d&&(i(u),i(c)),s&&i(l),o&16)for(let _=0;_<a.length;_++){const F=a[_];r(F,t,n,m,!!F.dynamicChildren)}},move:En,hydrate:xl};function En(e,t,n,{o:{insert:r},m:i},s=2){s===0&&r(e.targetAnchor,t,n);const{el:o,anchor:a,shapeFlag:l,children:u,props:c}=e,d=s===2;if(d&&r(o,t,n),!ct.has(e)&&(!d||yt(c))&&l&16)for(let p=0;p<u.length;p++)i(u[p],t,n,2);d&&r(a,t,n)}function xl(e,t,n,r,i,s,{o:{nextSibling:o,parentNode:a,querySelector:l,insert:u,createText:c}},d){function p(F,x){let P=x;for(;P;){if(P&&P.nodeType===8){if(P.data==="teleport start anchor")t.targetStart=P;else if(P.data==="teleport anchor"){t.targetAnchor=P,F._lpa=t.targetAnchor&&o(t.targetAnchor);break}}P=o(P)}}function m(F,x){x.anchor=d(o(F),x,a(F),n,r,i,s)}const E=t.target=Xr(t.props,l),_=yt(t.props);if(E){const F=E._lpa||E.firstChild;t.shapeFlag&16&&(_?(m(e,t),p(E,F),t.targetAnchor||Zr(E,t,c,u,a(e)===E?e:null)):(t.anchor=o(e),p(E,F),t.targetAnchor||Zr(E,t,c,u),d(F&&o(F),t,E,n,r,i,s))),Kt(t,_)}else _&&t.shapeFlag&16&&(m(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}const Lf=Ml;function Kt(e,t){const n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Zr(e,t,n,r,i=null){const s=t.targetStart=n(""),o=t.targetAnchor=n("");return s[Co]=o,e&&(r(s,e,i),r(o,e,i)),o}const je=Symbol("_leaveCb"),Ut=Symbol("_enterCb");function Ll(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Lo(()=>{e.isMounted=!0}),No(()=>{e.isUnmounting=!0}),e}const Re=[Function,Array],Nl={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Re,onEnter:Re,onAfterEnter:Re,onEnterCancelled:Re,onBeforeLeave:Re,onLeave:Re,onAfterLeave:Re,onLeaveCancelled:Re,onBeforeAppear:Re,onAppear:Re,onAfterAppear:Re,onAppearCancelled:Re},Po=e=>{const t=e.subTree;return t.component?Po(t.component):t},Ol={name:"BaseTransition",props:Nl,setup(e,{slots:t}){const n=mn(),r=Ll();return()=>{const i=t.default&&Ro(t.default(),!0),s=i&&i.length?Do(i):n.subTree?Ic():void 0;if(!s)return;const o=Y(e),{mode:a}=o;if(r.isLeaving)return wr(s);const l=Ki(s);if(!l)return wr(s);let u=ei(l,o,r,n,d=>u=d);l.type!==pe&&an(l,u);let c=n.subTree&&Ki(n.subTree);if(c&&c.type!==pe&&!wt(c,l)&&Po(n).type!==pe){let d=ei(c,o,r,n);if(an(c,d),a==="out-in"&&l.type!==pe)return r.isLeaving=!0,d.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,c=void 0},wr(s);a==="in-out"&&l.type!==pe?d.delayLeave=(p,m,E)=>{const _=ko(r,c);_[String(c.key)]=c,p[je]=()=>{m(),p[je]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{E(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return s}}};function Do(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==pe){t=n;break}}return t}const Nf=Ol;function ko(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ei(e,t,n,r,i){const{appear:s,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:p,onLeave:m,onAfterLeave:E,onLeaveCancelled:_,onBeforeAppear:F,onAppear:x,onAfterAppear:P,onAppearCancelled:N}=t,I=String(e.key),j=ko(n,e),M=(g,b)=>{g&&Je(g,r,9,b)},D=(g,b)=>{const v=b[1];M(g,b),K(g)?g.every(k=>k.length<=1)&&v():g.length<=1&&v()},y={mode:o,persisted:a,beforeEnter(g){let b=l;if(!n.isMounted)if(s)b=F||l;else return;g[je]&&g[je](!0);const v=j[I];v&&wt(e,v)&&v.el[je]&&v.el[je](),M(b,[g])},enter(g){if(j[I]===e)return;let b=u,v=c,k=d;if(!n.isMounted)if(s)b=x||u,v=P||c,k=N||d;else return;let W=!1;g[Ut]=ye=>{W||(W=!0,ye?M(k,[g]):M(v,[g]),y.delayedLeave&&y.delayedLeave(),g[Ut]=void 0)};const U=g[Ut].bind(null,!1);b?D(b,[g,U]):U()},leave(g,b){const v=String(e.key);if(g[Ut]&&g[Ut](!0),n.isUnmounting)return b();M(p,[g]);let k=!1;g[je]=U=>{k||(k=!0,b(),U?M(_,[g]):M(E,[g]),g[je]=void 0,j[v]===e&&delete j[v])};const W=g[je].bind(null,!1);j[v]=e,m?D(m,[g,W]):W()},clone(g){const b=ei(g,t,n,r,i);return i&&i(b),b}};return y}function wr(e){if(er(e))return e=ft(e),e.children=null,e}function Ki(e){if(!er(e))return Ao(e.type)&&e.children?Do(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&q(n.default))return n.default()}}function an(e,t){e.shapeFlag&6&&e.component?(e.transition=t,an(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ro(e,t=!1,n){let r=[],i=0;for(let s=0;s<e.length;s++){let o=e[s];const a=n==null?o.key:String(n)+String(o.key!=null?o.key:s);o.type===Pe?(o.patchFlag&128&&i++,r=r.concat(Ro(o.children,t,a))):(t||o.type!==pe)&&r.push(a!=null?ft(o,{key:a}):o)}if(i>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}function Of(e,t){return q(e)?he({name:e.name},t,{setup:e}):e}function Bf(){const e=mn();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Mo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function zi(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const xn=new WeakMap;function Xt(e,t,n,r,i=!1){if(K(e)){e.forEach((_,F)=>Xt(_,t&&(K(t)?t[F]:t),n,r,i));return}if(Rt(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Xt(e,t,n,r.component.subTree);return}const s=r.shapeFlag&4?ir(r.component):r.el,o=i?null:s,{i:a,r:l}=e,u=t&&t.r,c=a.refs===Q?a.refs={}:a.refs,d=a.setupState,p=Y(d),m=d===Q?$s:_=>zi(c,_)?!1:X(p,_),E=(_,F)=>!(F&&zi(c,F));if(u!=null&&u!==l){if(qi(t),ce(u))c[u]=null,m(u)&&(d[u]=null);else if(le(u)){const _=t;E(u,_.k)&&(u.value=null),_.k&&(c[_.k]=null)}}if(q(l))gn(l,a,12,[o,c]);else{const _=ce(l),F=le(l);if(_||F){const x=()=>{if(e.f){const P=_?m(l)?d[l]:c[l]:E()||!e.k?l.value:c[e.k];if(i)K(P)&&yi(P,s);else if(K(P))P.includes(s)||P.push(s);else if(_)c[l]=[s],m(l)&&(d[l]=c[l]);else{const N=[s];E(l,e.k)&&(l.value=N),e.k&&(c[e.k]=N)}}else _?(c[l]=o,m(l)&&(d[l]=o)):F&&(E(l,e.k)&&(l.value=o),e.k&&(c[e.k]=o))};if(o){const P=()=>{x(),xn.delete(e)};P.id=-1,xn.set(e,P),be(P,n)}else qi(e),x()}}}function qi(e){const t=xn.get(e);t&&(t.flags|=8,xn.delete(e))}Vn().requestIdleCallback;Vn().cancelIdleCallback;const Rt=e=>!!e.type.__asyncLoader,er=e=>e.type.__isKeepAlive;function Bl(e,t){xo(e,"a",t)}function Fl(e,t){xo(e,"da",t)}function xo(e,t,n=me){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(tr(t,r,n),n){let i=n.parent;for(;i&&i.parent;)er(i.parent.vnode)&&Hl(r,t,n,i),i=i.parent}}function Hl(e,t,n,r){const i=tr(t,e,r,!0);Oo(()=>{yi(r[t],i)},n)}function tr(e,t,n=me,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{nt();const a=yn(n),l=Je(t,n,e,o);return a(),rt(),l});return r?i.unshift(s):i.push(s),s}}const st=e=>(t,n=me)=>{(!un||e==="sp")&&tr(e,(...r)=>t(...r),n)},Wl=st("bm"),Lo=st("m"),Ul=st("bu"),Vl=st("u"),No=st("bum"),Oo=st("um"),jl=st("sp"),$l=st("rtg"),Kl=st("rtc");function zl(e,t=me){tr("ec",e,t)}const ql="components",Bo=Symbol.for("v-ndc");function Ff(e){return ce(e)?Jl(ql,e,!1)||e:e||Bo}function Jl(e,t,n=!0,r=!1){const i=de||me;if(i){const s=i.type;{const a=Rc(s,!1);if(a&&(a===t||a===Ne(t)||a===wi(Ne(t))))return s}const o=Ji(i[e]||s[e],t)||Ji(i.appContext[e],t);return!o&&r?s:o}}function Ji(e,t){return e&&(e[t]||e[Ne(t)]||e[wi(Ne(t))])}function Hf(e,t,n,r){let i;const s=n,o=K(e);if(o||ce(e)){const a=o&&_t(e);let l=!1,u=!1;a&&(l=!De(e),u=it(e),e=qn(e)),i=new Array(e.length);for(let c=0,d=e.length;c<d;c++)i[c]=t(l?u?xt(Oe(e[c])):Oe(e[c]):e[c],c,void 0,s)}else if(typeof e=="number"){i=new Array(e);for(let a=0;a<e;a++)i[a]=t(a+1,a,void 0,s)}else if(Z(e))if(e[Symbol.iterator])i=Array.from(e,(a,l)=>t(a,l,void 0,s));else{const a=Object.keys(e);i=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];i[l]=t(e[c],c,l,s)}}else i=[];return i}function Wf(e,t,n={},r,i){if(de.ce||de.parent&&Rt(de.parent)&&de.parent.ce){const u=Object.keys(n).length>0;return t!=="default"&&(n.name=t),si(),oi(Pe,null,[Se("slot",n,r&&r())],u?-2:64)}let s=e[t];s&&s._c&&(s._d=!1),si();const o=s&&Fo(s(n)),a=n.key||o&&o.key,l=oi(Pe,{key:(a&&!Me(a)?a:`_${t}`)+(!o&&r?"_fb":"")},o||(r?r():[]),o&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function Fo(e){return e.some(t=>cn(t)?!(t.type===pe||t.type===Pe&&!Fo(t.children)):!0)?e:null}function Uf(e,t){const n={};for(const r in e)n[Tn(r)]=e[r];return n}const ti=e=>e?oa(e)?ir(e):ti(e.parent):null,Zt=he(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ti(e.parent),$root:e=>ti(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Uo(e),$forceUpdate:e=>e.f||(e.f=()=>{Ii(e.update)}),$nextTick:e=>e.n||(e.n=El.bind(e.proxy)),$watch:e=>kl.bind(e)}),br=(e,t)=>e!==Q&&!e.__isScriptSetup&&X(e,t),Gl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:o,type:a,appContext:l}=e;if(t[0]!=="$"){const p=o[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(br(r,t))return o[t]=1,r[t];if(i!==Q&&X(i,t))return o[t]=2,i[t];if(X(s,t))return o[t]=3,s[t];if(n!==Q&&X(n,t))return o[t]=4,n[t];ni&&(o[t]=0)}}const u=Zt[t];let c,d;if(u)return t==="$attrs"&&ge(e.attrs,"get",""),u(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(n!==Q&&X(n,t))return o[t]=4,n[t];if(d=l.config.globalProperties,X(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return br(i,t)?(i[t]=n,!0):r!==Q&&X(r,t)?(r[t]=n,!0):X(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:s,type:o}},a){let l;return!!(n[a]||e!==Q&&a[0]!=="$"&&X(e,a)||br(t,a)||X(s,a)||X(r,a)||X(Zt,a)||X(i.config.globalProperties,a)||(l=o.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:X(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Vf(){return Ho().slots}function jf(){return Ho().attrs}function Ho(e){const t=mn();return t.setupContext||(t.setupContext=la(t))}function ln(e){return K(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function $f(e,t){const n=ln(e);for(const r in t){if(r.startsWith("__skip"))continue;let i=n[r];i?K(i)||q(i)?i=n[r]={type:i,default:t[r]}:i.default=t[r]:i===null&&(i=n[r]={default:t[r]}),i&&t[`__skip_${r}`]&&(i.skipFactory=!0)}return n}function Kf(e,t){return!e||!t?e||t:K(e)&&K(t)?e.concat(t):he({},ln(e),ln(t))}let ni=!0;function Yl(e){const t=Uo(e),n=e.proxy,r=e.ctx;ni=!1,t.beforeCreate&&Gi(t.beforeCreate,e,"bc");const{data:i,computed:s,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:d,mounted:p,beforeUpdate:m,updated:E,activated:_,deactivated:F,beforeDestroy:x,beforeUnmount:P,destroyed:N,unmounted:I,render:j,renderTracked:M,renderTriggered:D,errorCaptured:y,serverPrefetch:g,expose:b,inheritAttrs:v,components:k,directives:W,filters:U}=t;if(u&&Ql(u,r,null),o)for(const J in o){const ee=o[J];q(ee)&&(r[J]=ee.bind(n))}if(i){const J=i.call(n,n);Z(J)&&(e.data=Gn(J))}if(ni=!0,s)for(const J in s){const ee=s[J],Ge=q(ee)?ee.bind(n,n):q(ee.get)?ee.get.bind(n,n):qe,ot=!q(ee)&&q(ee.set)?ee.set.bind(n):qe,ke=Ee({get:Ge,set:ot});Object.defineProperty(r,J,{enumerable:!0,configurable:!0,get:()=>ke.value,set:Te=>ke.value=Te})}if(a)for(const J in a)Wo(a[J],r,n,J);if(l){const J=q(l)?l.call(n):l;Reflect.ownKeys(J).forEach(ee=>{Cl(ee,J[ee])})}c&&Gi(c,e,"c");function te(J,ee){K(ee)?ee.forEach(Ge=>J(Ge.bind(n))):ee&&J(ee.bind(n))}if(te(Wl,d),te(Lo,p),te(Ul,m),te(Vl,E),te(Bl,_),te(Fl,F),te(zl,y),te(Kl,M),te($l,D),te(No,P),te(Oo,I),te(jl,g),K(b))if(b.length){const J=e.exposed||(e.exposed={});b.forEach(ee=>{Object.defineProperty(J,ee,{get:()=>n[ee],set:Ge=>n[ee]=Ge,enumerable:!0})})}else e.exposed||(e.exposed={});j&&e.render===qe&&(e.render=j),v!=null&&(e.inheritAttrs=v),k&&(e.components=k),W&&(e.directives=W),g&&Mo(e)}function Ql(e,t,n=qe){K(e)&&(e=ri(e));for(const r in e){const i=e[r];let s;Z(i)?"default"in i?s=Cn(i.from||r,i.default,!0):s=Cn(i.from||r):s=Cn(i),le(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):t[r]=s}}function Gi(e,t,n){Je(K(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Wo(e,t,n,r){let i=r.includes(".")?To(n,r):()=>n[r];if(ce(e)){const s=t[e];q(s)&&yr(i,s)}else if(q(e))yr(i,e.bind(n));else if(Z(e))if(K(e))e.forEach(s=>Wo(s,t,n,r));else{const s=q(e.handler)?e.handler.bind(n):t[e.handler];q(s)&&yr(i,s,e)}}function Uo(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,a=s.get(t);let l;return a?l=a:!i.length&&!n&&!r?l=t:(l={},i.length&&i.forEach(u=>Ln(l,u,o,!0)),Ln(l,t,o)),Z(t)&&s.set(t,l),l}function Ln(e,t,n,r=!1){const{mixins:i,extends:s}=t;s&&Ln(e,s,n,!0),i&&i.forEach(o=>Ln(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=Xl[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Xl={data:Yi,props:Qi,emits:Qi,methods:zt,computed:zt,beforeCreate:we,created:we,beforeMount:we,mounted:we,beforeUpdate:we,updated:we,beforeDestroy:we,beforeUnmount:we,destroyed:we,unmounted:we,activated:we,deactivated:we,errorCaptured:we,serverPrefetch:we,components:zt,directives:zt,watch:ec,provide:Yi,inject:Zl};function Yi(e,t){return t?e?function(){return he(q(e)?e.call(this,this):e,q(t)?t.call(this,this):t)}:t:e}function Zl(e,t){return zt(ri(e),ri(t))}function ri(e){if(K(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function we(e,t){return e?[...new Set([].concat(e,t))]:t}function zt(e,t){return e?he(Object.create(null),e,t):t}function Qi(e,t){return e?K(e)&&K(t)?[...new Set([...e,...t])]:he(Object.create(null),ln(e),ln(t??{})):t}function ec(e,t){if(!e)return t;if(!t)return e;const n=he(Object.create(null),e);for(const r in t)n[r]=we(e[r],t[r]);return n}function Vo(){return{app:null,config:{isNativeTag:$s,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let tc=0;function nc(e,t){return function(r,i=null){q(r)||(r=he({},r)),i!=null&&!Z(i)&&(i=null);const s=Vo(),o=new WeakSet,a=[];let l=!1;const u=s.app={_uid:tc++,_component:r,_props:i,_container:null,_context:s,_instance:null,version:Lc,get config(){return s.config},set config(c){},use(c,...d){return o.has(c)||(c&&q(c.install)?(o.add(c),c.install(u,...d)):q(c)&&(o.add(c),c(u,...d))),u},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),u},component(c,d){return d?(s.components[c]=d,u):s.components[c]},directive(c,d){return d?(s.directives[c]=d,u):s.directives[c]},mount(c,d,p){if(!l){const m=u._ceVNode||Se(r,i);return m.appContext=s,p===!0?p="svg":p===!1&&(p=void 0),e(m,c,p),l=!0,u._container=c,c.__vue_app__=u,ir(m.component)}},onUnmount(c){a.push(c)},unmount(){l&&(Je(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,d){return s.provides[c]=d,u},runWithContext(c){const d=Mt;Mt=u;try{return c()}finally{Mt=d}}};return u}}let Mt=null;function zf(e,t,n=Q){const r=mn(),i=Ne(t),s=Ot(t),o=jo(e,i),a=gl((l,u)=>{let c,d=Q,p;return Dl(()=>{const m=e[i];fe(c,m)&&(c=m,u())}),{get(){return l(),n.get?n.get(c):c},set(m){const E=n.set?n.set(m):m;if(!fe(E,c)&&!(d!==Q&&fe(m,d)))return;const _=r.vnode.props;_&&(t in _||i in _||s in _)&&(`onUpdate:${t}`in _||`onUpdate:${i}`in _||`onUpdate:${s}`in _)||(c=m,u()),r.emit(`update:${t}`,E),fe(m,E)&&fe(m,d)&&!fe(E,p)&&u(),d=m,p=E}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?o||Q:a,done:!1}:{done:!0}}}},a}const jo=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ne(t)}Modifiers`]||e[`${Ot(t)}Modifiers`];function rc(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Q;let i=n;const s=t.startsWith("update:"),o=s&&jo(r,t.slice(7));o&&(o.trim&&(i=n.map(c=>ce(c)?c.trim():c)),o.number&&(i=n.map(Na)));let a,l=r[a=Tn(t)]||r[a=Tn(Ne(t))];!l&&s&&(l=r[a=Tn(Ot(t))]),l&&Je(l,e,6,i);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Je(u,e,6,i)}}const ic=new WeakMap;function $o(e,t,n=!1){const r=n?ic:t.emitsCache,i=r.get(e);if(i!==void 0)return i;const s=e.emits;let o={},a=!1;if(!q(e)){const l=u=>{const c=$o(u,t,!0);c&&(a=!0,he(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(Z(e)&&r.set(e,null),null):(K(s)?s.forEach(l=>o[l]=null):he(o,s),Z(e)&&r.set(e,o),o)}function nr(e,t){return!e||!pi(t)?!1:(t=t.slice(2).replace(/Once$/,""),X(e,t[0].toLowerCase()+t.slice(1))||X(e,Ot(t))||X(e,t))}function Xi(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[s],slots:o,attrs:a,emit:l,render:u,renderCache:c,props:d,data:p,setupState:m,ctx:E,inheritAttrs:_}=e,F=Mn(e);let x,P;try{if(n.shapeFlag&4){const I=i||r,j=I;x=Ke(u.call(j,I,c,d,m,p,E)),P=a}else{const I=t;x=Ke(I.length>1?I(d,{attrs:a,slots:o,emit:l}):I(d,null)),P=t.props?a:sc(a)}}catch(I){en.length=0,Zn(I,e,1),x=Se(pe)}let N=x;if(P&&_!==!1){const I=Object.keys(P),{shapeFlag:j}=N;I.length&&j&7&&(s&&I.some(mi)&&(P=oc(P,s)),N=ft(N,P,!1,!0))}return n.dirs&&(N=ft(N,null,!1,!0),N.dirs=N.dirs?N.dirs.concat(n.dirs):n.dirs),n.transition&&an(N,n.transition),x=N,Mn(F),x}const sc=e=>{let t;for(const n in e)(n==="class"||n==="style"||pi(n))&&((t||(t={}))[n]=e[n]);return t},oc=(e,t)=>{const n={};for(const r in e)(!mi(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function ac(e,t,n){const{props:r,children:i,component:s}=e,{props:o,children:a,patchFlag:l}=t,u=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Zi(r,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const p=c[d];if(Ko(o,r,p)&&!nr(u,p))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?Zi(r,o,u):!0:!!o;return!1}function Zi(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const s=r[i];if(Ko(t,e,s)&&!nr(n,s))return!0}return!1}function Ko(e,t,n){const r=e[n],i=t[n];return n==="style"&&Z(r)&&Z(i)?!Kn(r,i):r!==i}function lc({vnode:e,parent:t,suspense:n},r){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.suspense.vnode.el=i.el=r,e=i),i===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}const zo={},qo=()=>Object.create(zo),Jo=e=>Object.getPrototypeOf(e)===zo;function cc(e,t,n,r=!1){const i={},s=qo();e.propsDefaults=Object.create(null),Go(e,t,i,s);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=r?i:mo(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function uc(e,t,n,r){const{props:i,attrs:s,vnode:{patchFlag:o}}=e,a=Y(i),[l]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let p=c[d];if(nr(e.emitsOptions,p))continue;const m=t[p];if(l)if(X(s,p))m!==s[p]&&(s[p]=m,u=!0);else{const E=Ne(p);i[E]=ii(l,a,E,m,e,!1)}else m!==s[p]&&(s[p]=m,u=!0)}}}else{Go(e,t,i,s)&&(u=!0);let c;for(const d in a)(!t||!X(t,d)&&((c=Ot(d))===d||!X(t,c)))&&(l?n&&(n[d]!==void 0||n[c]!==void 0)&&(i[d]=ii(l,a,d,void 0,e,!0)):delete i[d]);if(s!==a)for(const d in s)(!t||!X(t,d))&&(delete s[d],u=!0)}u&&et(e.attrs,"set","")}function Go(e,t,n,r){const[i,s]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(Gt(l))continue;const u=t[l];let c;i&&X(i,c=Ne(l))?!s||!s.includes(c)?n[c]=u:(a||(a={}))[c]=u:nr(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(s){const l=Y(n),u=a||Q;for(let c=0;c<s.length;c++){const d=s[c];n[d]=ii(i,l,d,u[d],e,!X(u,d))}}return o}function ii(e,t,n,r,i,s){const o=e[n];if(o!=null){const a=X(o,"default");if(a&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&q(l)){const{propsDefaults:u}=i;if(n in u)r=u[n];else{const c=yn(i);r=u[n]=l.call(null,t),c()}}else r=l;i.ce&&i.ce._setProp(n,r)}o[0]&&(s&&!a?r=!1:o[1]&&(r===""||r===Ot(n))&&(r=!0))}return r}const fc=new WeakMap;function Yo(e,t,n=!1){const r=n?fc:t.propsCache,i=r.get(e);if(i)return i;const s=e.props,o={},a=[];let l=!1;if(!q(e)){const c=d=>{l=!0;const[p,m]=Yo(d,t,!0);he(o,p),m&&a.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!s&&!l)return Z(e)&&r.set(e,Pt),Pt;if(K(s))for(let c=0;c<s.length;c++){const d=Ne(s[c]);es(d)&&(o[d]=Q)}else if(s)for(const c in s){const d=Ne(c);if(es(d)){const p=s[c],m=o[d]=K(p)||q(p)?{type:p}:he({},p),E=m.type;let _=!1,F=!0;if(K(E))for(let x=0;x<E.length;++x){const P=E[x],N=q(P)&&P.name;if(N==="Boolean"){_=!0;break}else N==="String"&&(F=!1)}else _=q(E)&&E.name==="Boolean";m[0]=_,m[1]=F,(_||X(m,"default"))&&a.push(d)}}const u=[o,a];return Z(e)&&r.set(e,u),u}function es(e){return e[0]!=="$"&&!Gt(e)}const Si=e=>e==="_"||e==="_ctx"||e==="$stable",Ti=e=>K(e)?e.map(Ke):[Ke(e)],dc=(e,t,n)=>{if(t._n)return t;const r=Tl((...i)=>Ti(t(...i)),n);return r._c=!1,r},Qo=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Si(i))continue;const s=e[i];if(q(s))t[i]=dc(i,s,r);else if(s!=null){const o=Ti(s);t[i]=()=>o}}},Xo=(e,t)=>{const n=Ti(t);e.slots.default=()=>n},Zo=(e,t,n)=>{for(const r in t)(n||!Si(r))&&(e[r]=t[r])},hc=(e,t,n)=>{const r=e.slots=qo();if(e.vnode.shapeFlag&32){const i=t._;i?(Zo(r,t,n),n&&Gs(r,"_",i,!0)):Qo(t,r)}else t&&Xo(e,t)},gc=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,o=Q;if(r.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:Zo(i,t,n):(s=!t.$stable,Qo(t,i)),o=t}else t&&(Xo(e,t),o={default:1});if(s)for(const a in i)!Si(a)&&o[a]==null&&delete i[a]},be=wc;function qf(e){return pc(e)}function pc(e,t){const n=Vn();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:p,setScopeId:m=qe,insertStaticContent:E}=e,_=(f,h,w,A=null,S=null,T=null,B=void 0,L=null,R=!!h.dynamicChildren)=>{if(f===h)return;f&&!wt(f,h)&&(A=Ie(f),Te(f,S,T,!0),f=null),h.patchFlag===-2&&(R=!1,h.dynamicChildren=null);const{type:C,ref:$,shapeFlag:H}=h;switch(C){case rr:F(f,h,w,A);break;case pe:x(f,h,w,A);break;case vr:f==null&&P(h,w,A,B);break;case Pe:k(f,h,w,A,S,T,B,L,R);break;default:H&1?j(f,h,w,A,S,T,B,L,R):H&6?W(f,h,w,A,S,T,B,L,R):(H&64||H&128)&&C.process(f,h,w,A,S,T,B,L,R,Qe)}$!=null&&S?Xt($,f&&f.ref,T,h||f,!h):$==null&&f&&f.ref!=null&&Xt(f.ref,null,T,f,!0)},F=(f,h,w,A)=>{if(f==null)r(h.el=a(h.children),w,A);else{const S=h.el=f.el;h.children!==f.children&&u(S,h.children)}},x=(f,h,w,A)=>{f==null?r(h.el=l(h.children||""),w,A):h.el=f.el},P=(f,h,w,A)=>{[f.el,f.anchor]=E(f.children,h,w,A,f.el,f.anchor)},N=({el:f,anchor:h},w,A)=>{let S;for(;f&&f!==h;)S=p(f),r(f,w,A),f=S;r(h,w,A)},I=({el:f,anchor:h})=>{let w;for(;f&&f!==h;)w=p(f),i(f),f=w;i(h)},j=(f,h,w,A,S,T,B,L,R)=>{if(h.type==="svg"?B="svg":h.type==="math"&&(B="mathml"),f==null)M(h,w,A,S,T,B,L,R);else{const C=f.el&&f.el._isVueCE?f.el:null;try{C&&C._beginPatch(),g(f,h,S,T,B,L,R)}finally{C&&C._endPatch()}}},M=(f,h,w,A,S,T,B,L)=>{let R,C;const{props:$,shapeFlag:H,transition:V,dirs:z}=f;if(R=f.el=o(f.type,T,$&&$.is,$),H&8?c(R,f.children):H&16&&y(f.children,R,null,A,S,_r(f,T),B,L),z&>(f,null,A,"created"),D(R,f,f.scopeId,B,A),$){for(const ne in $)ne!=="value"&&!Gt(ne)&&s(R,ne,null,$[ne],T,A);"value"in $&&s(R,"value",null,$.value,T),(C=$.onVnodeBeforeMount)&&We(C,A,f)}z&>(f,null,A,"beforeMount");const G=mc(S,V);G&&V.beforeEnter(R),r(R,h,w),((C=$&&$.onVnodeMounted)||G||z)&&be(()=>{C&&We(C,A,f),G&&V.enter(R),z&>(f,null,A,"mounted")},S)},D=(f,h,w,A,S)=>{if(w&&m(f,w),A)for(let T=0;T<A.length;T++)m(f,A[T]);if(S){let T=S.subTree;if(h===T||na(T.type)&&(T.ssContent===h||T.ssFallback===h)){const B=S.vnode;D(f,B,B.scopeId,B.slotScopeIds,S.parent)}}},y=(f,h,w,A,S,T,B,L,R=0)=>{for(let C=R;C<f.length;C++){const $=f[C]=L?Ze(f[C]):Ke(f[C]);_(null,$,h,w,A,S,T,B,L)}},g=(f,h,w,A,S,T,B)=>{const L=h.el=f.el;let{patchFlag:R,dynamicChildren:C,dirs:$}=h;R|=f.patchFlag&16;const H=f.props||Q,V=h.props||Q;let z;if(w&&pt(w,!1),(z=V.onVnodeBeforeUpdate)&&We(z,w,h,f),$&>(h,f,w,"beforeUpdate"),w&&pt(w,!0),(H.innerHTML&&V.innerHTML==null||H.textContent&&V.textContent==null)&&c(L,""),C?b(f.dynamicChildren,C,L,w,A,_r(h,S),T):B||ee(f,h,L,null,w,A,_r(h,S),T,!1),R>0){if(R&16)v(L,H,V,w,S);else if(R&2&&H.class!==V.class&&s(L,"class",null,V.class,S),R&4&&s(L,"style",H.style,V.style,S),R&8){const G=h.dynamicProps;for(let ne=0;ne<G.length;ne++){const re=G[ne],se=H[re],ue=V[re];(ue!==se||re==="value")&&s(L,re,se,ue,S,w)}}R&1&&f.children!==h.children&&c(L,h.children)}else!B&&C==null&&v(L,H,V,w,S);((z=V.onVnodeUpdated)||$)&&be(()=>{z&&We(z,w,h,f),$&>(h,f,w,"updated")},A)},b=(f,h,w,A,S,T,B)=>{for(let L=0;L<h.length;L++){const R=f[L],C=h[L],$=R.el&&(R.type===Pe||!wt(R,C)||R.shapeFlag&198)?d(R.el):w;_(R,C,$,null,A,S,T,B,!0)}},v=(f,h,w,A,S)=>{if(h!==w){if(h!==Q)for(const T in h)!Gt(T)&&!(T in w)&&s(f,T,h[T],null,S,A);for(const T in w){if(Gt(T))continue;const B=w[T],L=h[T];B!==L&&T!=="value"&&s(f,T,L,B,S,A)}"value"in w&&s(f,"value",h.value,w.value,S)}},k=(f,h,w,A,S,T,B,L,R)=>{const C=h.el=f?f.el:a(""),$=h.anchor=f?f.anchor:a("");let{patchFlag:H,dynamicChildren:V,slotScopeIds:z}=h;z&&(L=L?L.concat(z):z),f==null?(r(C,w,A),r($,w,A),y(h.children||[],w,$,S,T,B,L,R)):H>0&&H&64&&V&&f.dynamicChildren&&f.dynamicChildren.length===V.length?(b(f.dynamicChildren,V,w,S,T,B,L),(h.key!=null||S&&h===S.subTree)&&Ci(f,h,!0)):ee(f,h,w,$,S,T,B,L,R)},W=(f,h,w,A,S,T,B,L,R)=>{h.slotScopeIds=L,f==null?h.shapeFlag&512?S.ctx.activate(h,w,A,B,R):U(h,w,A,S,T,B,R):ye(f,h,R)},U=(f,h,w,A,S,T,B)=>{const L=f.component=Ac(f,A,S);if(er(f)&&(L.ctx.renderer=Qe),Pc(L,!1,B),L.asyncDep){if(S&&S.registerDep(L,te,B),!f.el){const R=L.subTree=Se(pe);x(null,R,h,w),f.placeholder=R.el}}else te(L,f,h,w,S,T,B)},ye=(f,h,w)=>{const A=h.component=f.component;if(ac(f,h,w))if(A.asyncDep&&!A.asyncResolved){J(A,h,w);return}else A.next=h,A.update();else h.el=f.el,A.vnode=h},te=(f,h,w,A,S,T,B)=>{const L=()=>{if(f.isMounted){let{next:H,bu:V,u:z,parent:G,vnode:ne}=f;{const Fe=ea(f);if(Fe){H&&(H.el=ne.el,J(f,H,B)),Fe.asyncDep.then(()=>{be(()=>{f.isUnmounted||C()},S)});return}}let re=H,se;pt(f,!1),H?(H.el=ne.el,J(f,H,B)):H=ne,V&&dr(V),(se=H.props&&H.props.onVnodeBeforeUpdate)&&We(se,G,H,ne),pt(f,!0);const ue=Xi(f),Be=f.subTree;f.subTree=ue,_(Be,ue,d(Be.el),Ie(Be),f,S,T),H.el=ue.el,re===null&&lc(f,ue.el),z&&be(z,S),(se=H.props&&H.props.onVnodeUpdated)&&be(()=>We(se,G,H,ne),S)}else{let H;const{el:V,props:z}=h,{bm:G,m:ne,parent:re,root:se,type:ue}=f,Be=Rt(h);pt(f,!1),G&&dr(G),!Be&&(H=z&&z.onVnodeBeforeMount)&&We(H,re,h),pt(f,!0);{se.ce&&se.ce._hasShadowRoot()&&se.ce._injectChildStyle(ue,f.parent?f.parent.type:void 0);const Fe=f.subTree=Xi(f);_(null,Fe,w,A,f,S,T),h.el=Fe.el}if(ne&&be(ne,S),!Be&&(H=z&&z.onVnodeMounted)){const Fe=h;be(()=>We(H,re,Fe),S)}(h.shapeFlag&256||re&&Rt(re.vnode)&&re.vnode.shapeFlag&256)&&f.a&&be(f.a,S),f.isMounted=!0,h=w=A=null}};f.scope.on();const R=f.effect=new Zs(L);f.scope.off();const C=f.update=R.run.bind(R),$=f.job=R.runIfDirty.bind(R);$.i=f,$.id=f.uid,R.scheduler=()=>Ii($),pt(f,!0),C()},J=(f,h,w)=>{h.component=f;const A=f.vnode.props;f.vnode=h,f.next=null,uc(f,h.props,A,w),gc(f,h.children,w),nt(),Vi(f),rt()},ee=(f,h,w,A,S,T,B,L,R=!1)=>{const C=f&&f.children,$=f?f.shapeFlag:0,H=h.children,{patchFlag:V,shapeFlag:z}=h;if(V>0){if(V&128){ot(C,H,w,A,S,T,B,L,R);return}else if(V&256){Ge(C,H,w,A,S,T,B,L,R);return}}z&8?($&16&&at(C,S,T),H!==C&&c(w,H)):$&16?z&16?ot(C,H,w,A,S,T,B,L,R):at(C,S,T,!0):($&8&&c(w,""),z&16&&y(H,w,A,S,T,B,L,R))},Ge=(f,h,w,A,S,T,B,L,R)=>{f=f||Pt,h=h||Pt;const C=f.length,$=h.length,H=Math.min(C,$);let V;for(V=0;V<H;V++){const z=h[V]=R?Ze(h[V]):Ke(h[V]);_(f[V],z,w,null,S,T,B,L,R)}C>$?at(f,S,T,!0,!1,H):y(h,w,A,S,T,B,L,R,H)},ot=(f,h,w,A,S,T,B,L,R)=>{let C=0;const $=h.length;let H=f.length-1,V=$-1;for(;C<=H&&C<=V;){const z=f[C],G=h[C]=R?Ze(h[C]):Ke(h[C]);if(wt(z,G))_(z,G,w,null,S,T,B,L,R);else break;C++}for(;C<=H&&C<=V;){const z=f[H],G=h[V]=R?Ze(h[V]):Ke(h[V]);if(wt(z,G))_(z,G,w,null,S,T,B,L,R);else break;H--,V--}if(C>H){if(C<=V){const z=V+1,G=z<$?h[z].el:A;for(;C<=V;)_(null,h[C]=R?Ze(h[C]):Ke(h[C]),w,G,S,T,B,L,R),C++}}else if(C>V)for(;C<=H;)Te(f[C],S,T,!0),C++;else{const z=C,G=C,ne=new Map;for(C=G;C<=V;C++){const Ae=h[C]=R?Ze(h[C]):Ke(h[C]);Ae.key!=null&&ne.set(Ae.key,C)}let re,se=0;const ue=V-G+1;let Be=!1,Fe=0;const Ht=new Array(ue);for(C=0;C<ue;C++)Ht[C]=0;for(C=z;C<=H;C++){const Ae=f[C];if(se>=ue){Te(Ae,S,T,!0);continue}let He;if(Ae.key!=null)He=ne.get(Ae.key);else for(re=G;re<=V;re++)if(Ht[re-G]===0&&wt(Ae,h[re])){He=re;break}He===void 0?Te(Ae,S,T,!0):(Ht[He-G]=C+1,He>=Fe?Fe=He:Be=!0,_(Ae,h[He],w,null,S,T,B,L,R),se++)}const Ni=Be?yc(Ht):Pt;for(re=Ni.length-1,C=ue-1;C>=0;C--){const Ae=G+C,He=h[Ae],Oi=h[Ae+1],Bi=Ae+1<$?Oi.el||ta(Oi):A;Ht[C]===0?_(null,He,w,Bi,S,T,B,L,R):Be&&(re<0||C!==Ni[re]?ke(He,w,Bi,2):re--)}}},ke=(f,h,w,A,S=null)=>{const{el:T,type:B,transition:L,children:R,shapeFlag:C}=f;if(C&6){ke(f.component.subTree,h,w,A);return}if(C&128){f.suspense.move(h,w,A);return}if(C&64){B.move(f,h,w,Qe);return}if(B===Pe){r(T,h,w);for(let H=0;H<R.length;H++)ke(R[H],h,w,A);r(f.anchor,h,w);return}if(B===vr){N(f,h,w);return}if(A!==2&&C&1&&L)if(A===0)L.beforeEnter(T),r(T,h,w),be(()=>L.enter(T),S);else{const{leave:H,delayLeave:V,afterLeave:z}=L,G=()=>{f.ctx.isUnmounted?i(T):r(T,h,w)},ne=()=>{T._isLeaving&&T[je](!0),H(T,()=>{G(),z&&z()})};V?V(T,G,ne):ne()}else r(T,h,w)},Te=(f,h,w,A=!1,S=!1)=>{const{type:T,props:B,ref:L,children:R,dynamicChildren:C,shapeFlag:$,patchFlag:H,dirs:V,cacheIndex:z,memo:G}=f;if(H===-2&&(S=!1),L!=null&&(nt(),Xt(L,null,w,f,!0),rt()),z!=null&&(h.renderCache[z]=void 0),$&256){h.ctx.deactivate(f);return}const ne=$&1&&V,re=!Rt(f);let se;if(re&&(se=B&&B.onVnodeBeforeUnmount)&&We(se,h,f),$&6)Ft(f.component,w,A);else{if($&128){f.suspense.unmount(w,A);return}ne&>(f,null,h,"beforeUnmount"),$&64?f.type.remove(f,h,w,Qe,A):C&&!C.hasOnce&&(T!==Pe||H>0&&H&64)?at(C,h,w,!1,!0):(T===Pe&&H&384||!S&&$&16)&&at(R,h,w),A&&St(f)}const ue=G!=null&&z==null;(re&&(se=B&&B.onVnodeUnmounted)||ne||ue)&&be(()=>{se&&We(se,h,f),ne&>(f,null,h,"unmounted"),ue&&(f.el=null)},w)},St=f=>{const{type:h,el:w,anchor:A,transition:S}=f;if(h===Pe){fr(w,A);return}if(h===vr){I(f);return}const T=()=>{i(w),S&&!S.persisted&&S.afterLeave&&S.afterLeave()};if(f.shapeFlag&1&&S&&!S.persisted){const{leave:B,delayLeave:L}=S,R=()=>B(w,T);L?L(f.el,T,R):R()}else T()},fr=(f,h)=>{let w;for(;f!==h;)w=p(f),i(f),f=w;i(h)},Ft=(f,h,w)=>{const{bum:A,scope:S,job:T,subTree:B,um:L,m:R,a:C}=f;ts(R),ts(C),A&&dr(A),S.stop(),T&&(T.flags|=8,Te(B,f,h,w)),L&&be(L,h),be(()=>{f.isUnmounted=!0},h)},at=(f,h,w,A=!1,S=!1,T=0)=>{for(let B=T;B<f.length;B++)Te(f[B],h,w,A,S)},Ie=f=>{if(f.shapeFlag&6)return Ie(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const h=p(f.anchor||f.el),w=h&&h[Co];return w?p(w):h};let Ce=!1;const Ye=(f,h,w)=>{let A;f==null?h._vnode&&(Te(h._vnode,null,null,!0),A=h._vnode.component):_(h._vnode||null,f,h,null,null,null,w),h._vnode=f,Ce||(Ce=!0,Vi(A),Eo(),Ce=!1)},Qe={p:_,um:Te,m:ke,r:St,mt:U,mc:y,pc:ee,pbc:b,n:Ie,o:e};return{render:Ye,hydrate:void 0,createApp:nc(Ye)}}function _r({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function pt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function mc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ci(e,t,n=!1){const r=e.children,i=t.children;if(K(r)&&K(i))for(let s=0;s<r.length;s++){const o=r[s];let a=i[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[s]=Ze(i[s]),a.el=o.el),!n&&a.patchFlag!==-2&&Ci(o,a)),a.type===rr&&(a.patchFlag===-1&&(a=i[s]=Ze(a)),a.el=o.el),a.type===pe&&!a.el&&(a.el=o.el)}}function yc(e){const t=e.slice(),n=[0];let r,i,s,o,a;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(i=n[n.length-1],e[i]<u){t[r]=i,n.push(r);continue}for(s=0,o=n.length-1;s<o;)a=s+o>>1,e[n[a]]<u?s=a+1:o=a;u<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,o=n[s-1];s-- >0;)n[s]=o,o=t[o];return n}function ea(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ea(t)}function ts(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ta(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?ta(t.subTree):null}const na=e=>e.__isSuspense;function wc(e,t){t&&t.pendingBranch?K(e)?t.effects.push(...e):t.effects.push(e):Sl(e)}const Pe=Symbol.for("v-fgt"),rr=Symbol.for("v-txt"),pe=Symbol.for("v-cmt"),vr=Symbol.for("v-stc"),en=[];let ve=null;function si(e=!1){en.push(ve=e?null:[])}function bc(){en.pop(),ve=en[en.length-1]||null}let Lt=1;function Nn(e,t=!1){Lt+=e,e<0&&ve&&t&&(ve.hasOnce=!0)}function ra(e){return e.dynamicChildren=Lt>0?ve||Pt:null,bc(),Lt>0&&ve&&ve.push(e),e}function Jf(e,t,n,r,i,s){return ra(sa(e,t,n,r,i,s,!0))}function oi(e,t,n,r,i){return ra(Se(e,t,n,r,i,!0))}function cn(e){return e?e.__v_isVNode===!0:!1}function wt(e,t){return e.type===t.type&&e.key===t.key}const ia=({key:e})=>e??null,An=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ce(e)||le(e)||q(e)?{i:de,r:e,k:t,f:!!n}:e:null);function sa(e,t=null,n=null,r=0,i=null,s=e===Pe?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ia(t),ref:t&&An(t),scopeId:So,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:de};return a?(Ai(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=ce(n)?8:16),Lt>0&&!o&&ve&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&ve.push(l),l}const Se=_c;function _c(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===Bo)&&(e=pe),cn(e)){const a=ft(e,t,!0);return n&&Ai(a,n),Lt>0&&!s&&ve&&(a.shapeFlag&6?ve[ve.indexOf(e)]=a:ve.push(a)),a.patchFlag=-2,a}if(Mc(e)&&(e=e.__vccOpts),t){t=vc(t);let{class:a,style:l}=t;a&&!ce(a)&&(t.class=$n(a)),Z(l)&&(Qn(l)&&!K(l)&&(l=he({},l)),t.style=jn(l))}const o=ce(e)?1:na(e)?128:Ao(e)?64:Z(e)?4:q(e)?2:0;return sa(e,t,n,r,i,o,s,!0)}function vc(e){return e?Qn(e)||Jo(e)?he({},e):e:null}function ft(e,t,n=!1,r=!1){const{props:i,ref:s,patchFlag:o,children:a,transition:l}=e,u=t?Sc(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&ia(u),ref:t&&t.ref?n&&s?K(s)?s.concat(An(t)):[s,An(t)]:An(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Pe?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ft(e.ssContent),ssFallback:e.ssFallback&&ft(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&an(c,l.clone(c)),c}function Ec(e=" ",t=0){return Se(rr,null,e,t)}function Ic(e="",t=!1){return t?(si(),oi(pe,null,e)):Se(pe,null,e)}function Ke(e){return e==null||typeof e=="boolean"?Se(pe):K(e)?Se(Pe,null,e.slice()):cn(e)?Ze(e):Se(rr,null,String(e))}function Ze(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ft(e)}function Ai(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(K(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),Ai(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!Jo(t)?t._ctx=de:i===3&&de&&(de.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else q(t)?(t={default:t,_ctx:de},n=32):(t=String(t),r&64?(n=16,t=[Ec(t)]):n=8);e.children=t,e.shapeFlag|=n}function Sc(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=$n([t.class,r.class]));else if(i==="style")t.style=jn([t.style,r.style]);else if(pi(i)){const s=t[i],o=r[i];o&&s!==o&&!(K(s)&&s.includes(o))?t[i]=s?[].concat(s,o):o:o==null&&s==null&&!mi(i)&&(t[i]=o)}else i!==""&&(t[i]=r[i])}return t}function We(e,t,n,r=null){Je(e,t,7,[n,r])}const Tc=Vo();let Cc=0;function Ac(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||Tc,s={uid:Cc++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Xs(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Yo(r,i),emitsOptions:$o(r,i),emit:null,emitted:null,propsDefaults:Q,inheritAttrs:r.inheritAttrs,ctx:Q,data:Q,props:Q,attrs:Q,slots:Q,refs:Q,setupState:Q,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=rc.bind(null,s),e.ce&&e.ce(s),s}let me=null;const mn=()=>me||de;let On,ai;{const e=Vn(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),s=>{i.length>1?i.forEach(o=>o(s)):i[0](s)}};On=t("__VUE_INSTANCE_SETTERS__",n=>me=n),ai=t("__VUE_SSR_SETTERS__",n=>un=n)}const yn=e=>{const t=me;return On(e),e.scope.on(),()=>{e.scope.off(),On(t)}},ns=()=>{me&&me.scope.off(),On(null)};function oa(e){return e.vnode.shapeFlag&4}let un=!1;function Pc(e,t=!1,n=!1){t&&ai(t);const{props:r,children:i}=e.vnode,s=oa(e);cc(e,r,s,t),hc(e,i,n||t);const o=s?Dc(e,t):void 0;return t&&ai(!1),o}function Dc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Gl);const{setup:r}=n;if(r){nt();const i=e.setupContext=r.length>1?la(e):null,s=yn(e),o=gn(r,e,0,[e.props,i]),a=zs(o);if(rt(),s(),(a||e.sp)&&!Rt(e)&&Mo(e),a){if(o.then(ns,ns),t)return o.then(l=>{rs(e,l)}).catch(l=>{Zn(l,e,0)});e.asyncDep=o}else rs(e,o)}else aa(e)}function rs(e,t,n){q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Z(t)&&(e.setupState=wo(t)),aa(e)}function aa(e,t,n){const r=e.type;e.render||(e.render=r.render||qe);{const i=yn(e);nt();try{Yl(e)}finally{rt(),i()}}}const kc={get(e,t){return ge(e,"get",""),e[t]}};function la(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,kc),slots:e.slots,emit:e.emit,expose:t}}function ir(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(wo(cl(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Zt)return Zt[n](e)},has(t,n){return n in t||n in Zt}})):e.proxy}function Rc(e,t=!0){return q(e)?e.displayName||e.name:e.name||t&&e.__name}function Mc(e){return q(e)&&"__vccOpts"in e}const Ee=(e,t)=>wl(e,t,un);function Gf(e,t,n){try{Nn(-1);const r=arguments.length;return r===2?Z(t)&&!K(t)?cn(t)?Se(e,null,[t]):Se(e,t):Se(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&cn(n)&&(n=[n]),Se(e,t,n))}finally{Nn(1)}}function Yf(e,t,n,r){const i=n[r];if(i&&xc(i,e))return i;const s=t();return s.memo=e.slice(),s.cacheIndex=r,n[r]=s}function xc(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(fe(n[r],t[r]))return!1;return Lt>0&&ve&&ve.push(e),!0}const Lc="3.5.34",Qf="0.9.8",Vt={orientation:"portrait",capsuleHidden:!1};function dt(){return new DOMException("方向请求已取消","AbortError")}let tn;function Xf(e){return tn=e,()=>{tn===e&&(tn=void 0)}}function Zf(e){if(e.aborted)return Promise.reject(dt());if(!tn)return Promise.resolve();const t=tn();return new Promise((n,r)=>{const i=()=>r(dt());e.addEventListener("abort",i,{once:!0}),t.then(()=>{e.removeEventListener("abort",i),n()},s=>{e.removeEventListener("abort",i),r(s)})})}function Nc(e){return new Promise((t,n)=>{if(e.aborted){n(dt());return}let r=requestAnimationFrame(()=>{r=requestAnimationFrame(i)});function i(){e.removeEventListener("abort",s),t()}function s(){cancelAnimationFrame(r),n(dt())}e.addEventListener("abort",s,{once:!0})})}function ed(e,t){if(t.aborted)return Promise.reject(dt());const n=e.flatMap(r=>r&&typeof r.getAnimations=="function"?r.getAnimations().filter(i=>i.effect?.getComputedTiming().iterations!==1/0):[]);return n.length?new Promise((r,i)=>{const s=()=>i(dt());t.addEventListener("abort",s,{once:!0}),Promise.allSettled(n.map(o=>o.finished)).then(()=>{t.removeEventListener("abort",s),r()})}):Promise.resolve()}function td(e){const t=e.waitForLayout??Nc,n=new Set;let r=Vt,i=0;function s(){for(const o of[...n])try{o()}catch{}}return{async applyDisplay(o,a){if(a.aborted)throw dt();const l=++i,u={orientation:o.mode,capsuleHidden:o.hideCapsule},c=()=>{l===i&&(i+=1,e.apply(r),s())};a.addEventListener("abort",c,{once:!0});try{if(e.apply(u),await t(a),a.aborted||l!==i)throw dt();r=u,s()}finally{a.removeEventListener("abort",c)}},reset(){i+=1;const o=r.orientation!==Vt.orientation||r.capsuleHidden!==Vt.capsuleHidden;r=Vt,e.apply(Vt),o&&s()},onViewportChange(o){return n.add(o),()=>{n.delete(o)}},notifyViewportChange:s}}const Oc="[data-hb-sdk-fullscreen-exit]";function nd(e){const t=()=>{const r=e();if(r)for(const i of[...document.body.children])i.matches(Oc)&&r.append(i)},n=new MutationObserver(t);return n.observe(document.body,{childList:!0}),t(),()=>n.disconnect()}const fn=500,Bc=new Set(["authorization","cookie","proxy-authorization","set-cookie","token","x-pkey","api-key","apikey","x-api-key","x-auth-token","x-access-token","session","session-id","jwt","refresh-token","x-csrf-token"]),Fc=/(authorization|cookie|password|passwd|secret|token|pkey|private[_-]?key|access[_-]?key|client[_-]?secret|api[_-]?key|apikey|session|jwt|refresh[_-]?token|csrf)/i;function li(e){if(!e)return e;try{const t=new URL(e);if(t.username="",t.password="",is(t.searchParams),t.hash&&t.hash.length>1){const n=t.hash.slice(1);if(n.includes("=")){const r=new URLSearchParams(n);is(r)&&(t.hash=r.toString())}}return t.toString()}catch{return ua(e)}}function Hc(e){return e?Object.fromEntries(Object.entries(e).map(([t,n])=>[t,Uc(t)?"[redacted]":n])):{}}function ci(e){if(e!==void 0){if(typeof e=="string")return ca(e);if(typeof e=="number"||typeof e=="boolean"||e===null)return e;try{const t=ui(e),n=JSON.stringify(t);return n===void 0?"[unserializable]":n.length<=fn?t:Pi(n,fn)}catch{return"[unserializable]"}}}function dn(e){return Array.isArray(e)?e.slice(0,20).map(t=>dn(t)):typeof e=="string"?Vc(e)?li(e):ca(e):typeof e=="number"||typeof e=="boolean"||e===null||e===void 0?e:fi(e)?Object.fromEntries(Object.entries(e).map(([t,n])=>{const r=t.trim().toLowerCase();return Bt(t)?[t,"[redacted]"]:r==="headers"&&fi(n)?[t,Hc(Object.fromEntries(Object.entries(n).flatMap(([i,s])=>typeof s=="string"?[[i,s]]:[])))]:(r==="url"||r.endsWith("_url")||r.endsWith("url"))&&typeof n=="string"?[t,li(n)]:[t,dn(n)]})):ci(e)}function Wc(e){return e&&e.replace(/https?:\/\/[^\s]+/gi,t=>li(t.replace(/[),.;]+$/g,"")))}function Uc(e){const t=e.trim().toLowerCase();return Bc.has(t)||Bt(t)||t.startsWith("x-heybox-")||t.startsWith("x-xhh-")}function Bt(e){return Fc.test(e.trim())}function ca(e){const t=e.trim();if(t.startsWith("{")&&t.endsWith("}")||t.startsWith("[")&&t.endsWith("]"))try{return ci(JSON.parse(t))}catch{}if(t.includes("=")&&!t.includes(`
|
|
2
|
-
`)&&t.length<=fn*2)try{const n=new URLSearchParams(t);if([...n.keys()].length>0){const r=Object.fromEntries([...n.entries()].map(([i,s])=>[i,Bt(i)?"[redacted]":s]));return ci(r)}}catch{}return Pi(ua(e),fn)}function ui(e){return Array.isArray(e)?e.slice(0,20).map(t=>ui(t)):fi(e)?Object.fromEntries(Object.entries(e).map(([t,n])=>[t,Bt(t)?"[redacted]":ui(n)])):typeof e=="string"?Pi(e,fn):e}function is(e){let t=!1;for(const n of[...e.keys()])Bt(n)&&(e.set(n,"[redacted]"),t=!0);return t}function ua(e){return e.replace(/([?&#]|^|[?&])([^=&#\s]+)=([^&#\s]*)/g,(t,n,r)=>Bt(r)?`${n}${r}=[redacted]`:t)}function Vc(e){return/^https?:\/\//i.test(e.trim())||/^[a-z][a-z0-9+.-]*:\/\//i.test(e.trim())}function Pi(e,t){return e.length<=t?e:`${e.slice(0,t)}…(truncated, total=${e.length})`}function fi(e){return Object.prototype.toString.call(e)==="[object Object]"}function jt(e,t){return Wc(String(dn(e))).slice(0,t)}function jc(e){if(!e||typeof e!="object")return;const t=e;if(!(typeof t.interactionId!="string"||!/^[a-zA-Z0-9_-]{1,100}$/.test(t.interactionId)||typeof t.kind!="string"||!["toast","loading","dialog","effect"].includes(t.kind)||typeof t.mode!="string"||!["simulated","browser"].includes(t.mode)||typeof t.method!="string"||!Number.isFinite(t.startedAt)))return{interactionId:t.interactionId,kind:t.kind,mode:t.mode,method:jt(t.method,100),startedAt:t.startedAt,...typeof t.callId=="string"?{callId:jt(t.callId,100)}:{},...typeof t.message=="string"?{message:jt(t.message,512)}:{},...typeof t.title=="string"?{title:jt(t.title,120)}:{},...t.status==="success"||t.status==="error"?{status:t.status}:{},...typeof t.dismissible=="boolean"?{dismissible:t.dismissible}:{},...Array.isArray(t.actions)?{actions:t.actions.slice(0,4).filter(n=>typeof n=="string").map(n=>jt(n,40))}:{}}}const $c="/__hb_sdk__/diagnostics",Kc="/__hb_sdk__/resources",zc=16;let ht={instanceId:null,controller:new AbortController,records:new Map};const di=new Set;function rd(e,t){const n=ht,r={instanceId:e,emit:t,controller:new AbortController,records:new Map};return ht=r,ss(n,"宿主呈现实例已替换"),{snapshot:()=>fa(r),dispose:()=>ss(r,"宿主呈现实例已结束")}}function ss(e,t){if(!e.controller.signal.aborted){e.controller.abort(new DOMException(t,"AbortError"));for(const n of[...e.records.values()])try{n.finish("closed")}catch{}}}function Di(){return ht.controller.signal}function id(){return ht.controller.signal.aborted?{instanceId:null,interactions:[]}:fa(ht)}function fa(e){return{instanceId:e.instanceId,interactions:[...e.records.values()].map(t=>da(t.value))}}function da(e){return jc(e)}function qc(e){return di.add(e),()=>{di.delete(e)}}function os(){for(const e of[...di])try{e()}catch{}}function ki(e,t){const n=ht;if(n.controller.signal.aborted)throw new Error("宿主呈现实例已结束");if(n.records.size>=zc)throw new Error("待处理宿主交互过多");const r={...e,interactionId:crypto.randomUUID(),startedAt:Date.now()},i=o=>{const a=n.emit;if(a)try{const l=da(r),u=Date.now();a({source:"host",phase:"presentation",method:e.method,callId:e.callId,interaction:{...l,state:o},level:"info",timestamp:u,startedAt:r.startedAt,durationMs:Math.max(0,u-r.startedAt),message:[e.method,o,l.message,l.title].filter(Boolean).join(" · ")})}catch{}},s=o=>{if(n.records.delete(r.interactionId))try{t?.(o)}finally{i(o),os()}};return n.records.set(r.interactionId,{value:r,finish:s}),i("shown"),n.records.has(r.interactionId)&&os(),{interactionId:r.interactionId,get active(){return n.records.has(r.interactionId)},finish:s}}function as(){for(const e of ht.records.values())if(e.value.kind==="toast"||e.value.kind==="loading")return e.value}function sr(e,t){for(const n of[...ht.records.values()])(n.value.kind==="toast"||n.value.kind==="loading")&&(!t||n.value.kind===t)&&n.finish(e)}const ls="hb-sdk-feedback-style",Jc=2e3,Gc={light:20,medium:40,heavy:80},Yc=120,Qc=`
|
|
3
|
-
.host-overlay-layer.hb-sdk-feedback-vibrate-flash {
|
|
4
|
-
background: rgba(255, 255, 255, 0.22);
|
|
5
|
-
}
|
|
6
|
-
`;let qt;const hi=new Set;function sd(e){let t=as();const n=i=>{i?i.kind==="toast"?e({kind:"toast",message:i.message??"",...i.status?{status:i.status}:{}}):e({kind:"loading",dismissible:i.dismissible===!0}):e(void 0)},r=qc(()=>{const i=as();i!==t&&(t=i,n(i))});try{t&&n(t)}catch(i){throw r(),i}return r}function od(e,t){const n=Di();if(sr("replaced"),n.aborted)return Promise.resolve();let r;const i=ki({kind:"toast",mode:"simulated",method:"ui.showToast",...e,...t?.requestId?{callId:t.requestId}:{}},()=>{r!==void 0&&window.clearTimeout(r)});return i.active&&(r=window.setTimeout(()=>i.finish("expired"),Jc)),Promise.resolve()}function ad(e,t){const n=Di();return sr("replaced"),n.aborted||ki({kind:"loading",mode:"simulated",method:"ui.showLoading",dismissible:e?.dismissible===!0,...t?.requestId?{callId:t.requestId}:{}}),Promise.resolve()}function ld(){return sr("hidden","loading"),Promise.resolve()}function cd(){sr("closed");for(const e of[...hi])e();qt?.finish("closed")}async function ud(e,t){Xc();const n=AbortSignal.any([Di(),...t?.signal?[t.signal]:[]]);if(!await tu(Math.max(0,e.delay),n)||n.aborted||!Zc(n,t?.requestId))return;const i=navigator.vibrate;if(typeof i=="function")try{i.call(navigator,Gc[e.intensity])}catch{}}function fd(e){document.documentElement.dataset.screenshotChromeHidden=e?"true":"false"}function Xc(){if(document.getElementById(ls))return;const e=document.createElement("style");e.id=ls,e.textContent=Qc,document.head.appendChild(e)}function Zc(e,t){if(qt?.finish("replaced"),e.aborted)return!1;const n=eu();let r,i;return i=ki({kind:"effect",mode:"simulated",method:"device.vibrate",title:"震动预览",...t?{callId:t}:{}},()=>{r!==void 0&&window.clearTimeout(r),n.classList.remove("hb-sdk-feedback-vibrate-flash"),qt===i&&(qt=void 0)}),i.active?(qt=i,n.classList.add("hb-sdk-feedback-vibrate-flash"),r=window.setTimeout(()=>i?.finish("completed"),Yc),!0):!1}function eu(){return document.querySelector("#host-overlay-layer")??document.body}function tu(e,t){return t.aborted?Promise.resolve(!1):e<=0?Promise.resolve(!0):new Promise(n=>{let r,i=!1;const s=l=>{i||(i=!0,r!==void 0&&window.clearTimeout(r),t.removeEventListener("abort",o),hi.delete(a),n(l))},o=()=>s(!1),a=()=>s(!1);r=window.setTimeout(()=>s(!0),e),hi.add(a),t.addEventListener("abort",o,{once:!0})})}const wn="desktop";function nu(e){return e===wn}const Er={width:440,height:956},cs={top:1.32,right:3.4,bottom:1.32,left:3.4},Ir={width:410,height:914},us={top:2.05,right:4.8,bottom:1.8,left:4.1};function fs(e,t,n){const r=e.width/(1-(t.left+t.right)/100),i=e.height/(1-(t.top+t.bottom)/100),s=n.width*n.radiusWidthRatio;return{frameWidth:r,frameHeight:i,frameAssetWidth:n.width,frameAssetHeight:n.height,screenRadius:{x:s*(r/n.width),y:s*(i/n.height)}}}const Ri=[{id:"iphone-16-pro-max",label:"iPhone 16 Pro Max",screenWidth:Er.width,screenHeight:Er.height,...fs(Er,cs,{width:415,height:843,radiusWidthRatio:.122126436781609}),maxPresentationScale:1,pixelRatio:3,statusBarHeight:55,safeAreaInsets:{top:55,right:0,bottom:34,left:0},landscape:{statusBarHeight:0,safeAreaInsets:{top:0,right:62,bottom:21,left:62}},screenRect:cs,toolbarLeft:53.67,platform:"ios"},{id:"pixel-9-pro",label:"Pixel 9 Pro",screenWidth:Ir.width,screenHeight:Ir.height,...fs(Ir,us,{width:353,height:745,radiusWidthRatio:.126666666666667}),maxPresentationScale:1,pixelRatio:2.625,statusBarHeight:50,safeAreaInsets:{top:50,right:0,bottom:24,left:0},landscape:{statusBarHeight:0,safeAreaInsets:{top:0,right:0,bottom:24,left:50}},screenRect:us,toolbarLeft:44.69,platform:"android"}],ru=Ri[0];function or(e){return Ri.find(t=>t.id===e)??ru}function iu(e,t,n=!1){return t==="portrait"?{screenWidth:e.screenWidth,screenHeight:e.screenHeight,pixelRatio:e.pixelRatio,statusBarHeight:n?0:e.statusBarHeight,safeAreaInsets:{...e.safeAreaInsets}}:{screenWidth:e.screenHeight,screenHeight:e.screenWidth,pixelRatio:e.pixelRatio,statusBarHeight:e.landscape.statusBarHeight,safeAreaInsets:{...e.landscape.safeAreaInsets}}}function su(){let e;const t=[],n=crypto.randomUUID();let r=0,i=!1,s,o=!1;const a=new Set;let l=0,u=0;const c=256;let d=!1,p,m,E=!1;const _=y=>new TextEncoder().encode(JSON.stringify(y)).length,F=(y,g)=>{if(new TextEncoder().encode(y).length<=g)return y;let b=0,v=y.length;for(;b<v;){const k=Math.ceil((b+v)/2);new TextEncoder().encode(y.slice(0,k)).length<=g?b=k:v=k-1}return y.slice(0,b)};function x(){const y=navigator.userAgent,g=/Edg\//.test(y)?"Edge":/Chrome\//.test(y)?"Chrome":/Firefox\//.test(y)?"Firefox":/Safari\//.test(y)?"Safari":void 0,v=navigator.userAgentData?.platform||(/Windows/.test(y)?"Windows":/Android/.test(y)?"Android":/iPhone|iPad/.test(y)?"iOS":/Macintosh|Mac OS X/.test(y)?"macOS":/Linux/.test(y)?"Linux":void 0);return{...g?{browser:g}:{},...v?{os:v}:{}}}async function P(y){if(!e)throw new Error("诊断尚未配置");const g=y.operation==="attach"?y:{...y,targetId:p.targetId,ownerId:p.ownerId},b=await fetch($c,{method:"POST",headers:{"content-type":"application/json","x-hb-sdk-csrf":e.csrfToken,"x-hb-sdk-diagnostics":e.diagnosticsToken,...m?{"x-hb-sdk-preview-owner":m}:{}},body:JSON.stringify(g),signal:AbortSignal.any([e.signal,AbortSignal.timeout(5e3)]),keepalive:d});if(!b.ok)throw Object.assign(new Error(`诊断请求失败 (${b.status})`),{status:b.status});return b.json()}function N(y){return new Promise(g=>{const b=e.signal,v=()=>{clearTimeout(k),b.removeEventListener("abort",v),g()},k=setTimeout(v,y);b.addEventListener("abort",v,{once:!0}),b.aborted&&v()})}async function I(){if(i||!e||!p)return;i=!0;let y=250;try{for(;t.length&&!e.signal.aborted;){const g=t[0];s=g;try{if(await P(g),t.shift(),s=void 0,y=250,u){const b=u;u=0,t.push({operation:"events",producerId:n,sequence:++r,events:[{source:"host",level:"warn",method:"diagnostics.dropped",message:`Host 发送缓冲已丢弃 ${b} 条诊断,存在采集缺口`,timestamp:Date.now(),outcome:"dropped"}]})}}catch(b){const v=b.status;if(v===403&&j(),v&&v>=400&&v<500&&v!==408&&v!==429){g.operation==="events"&&g.events.every(W=>W.method==="diagnostics.dropped")||M(g.operation==="events"?g.events.length:1),t.shift(),s=void 0;continue}await N(y),y=Math.min(8e3,y*2)}}}finally{s=void 0,i=!1}}function j(){E||(E=!0,e?.onOwnershipLost?.())}function M(y){l+=y,u+=y,e?.onDropped(l)}function D(y){if(y.operation==="update"){const g=y.error;y={...y,...g?{error:{code:F(g.code,100),message:F(g.message,4096),...g.name?{name:F(g.name,100)}:{},...g.stack?{stack:F(g.stack,8192)}:{},...g.cause?{cause:F(g.cause,2048)}:{},...g.phase?{phase:F(g.phase,100)}:{}}}:{},...y.reason?{reason:F(y.reason,200)}:{}}}if(y.operation==="update"){const g=t.findIndex(b=>b!==s&&b.operation==="update"&&b.instanceId===y.instanceId&&b.state===y.state);if(g>=0){t[g]={...t[g],...y};return}}if(t.length>=c){const g=t.findIndex(b=>b!==s&&b.operation==="events");if(g>=0){const b=t.splice(g,1)[0];b.operation==="events"&&M(b.events.length)}else{const b=t.find(v=>v!==s&&v.operation==="register");if(b?.operation==="register")for(let v=t.length-1;v>=0;v--){const k=t[v];k!==s&&"instanceId"in k&&k.instanceId===b.instanceId&&(t.splice(v,1),M(1))}else{M(1);return}}}t.push(y),I()}return{async configure(y){e=y;const g=new URL(location.href),b=new URLSearchParams(g.hash.slice(1)),v=b.get("hb-sdk-owner")??"";b.has("hb-sdk-owner")&&(b.delete("hb-sdk-owner"),g.hash=b.toString(),history.replaceState(history.state,"",g.href));const k="__HB_SDK_PREVIEW_OWNER__",W=Object.getOwnPropertyDescriptor(window,k);let U;if(W){const J=W.value;if(!J||typeof J.token!="string"||J.token&&!/^[a-f0-9]{64}$/.test(J.token)||typeof J.pageId!="string"||!/^[A-Za-z0-9_-]{1,100}$/.test(J.pageId))throw new Error("预览页面授权格式无效,请重新打开预览");U=J}else{if(v&&!/^[a-f0-9]{64}$/.test(v))throw new Error("预览页面授权格式无效,请重新打开预览");U={token:v,pageId:crypto.randomUUID()},Object.defineProperty(window,k,{value:U,configurable:!0})}m=U.token||void 0;const ye=U.pageId,te=await P({operation:"attach",pageId:ye,metadata:x()});if(!te.target?.targetId||!te.target.ownerId||typeof te.ownerToken!="string")throw new Error("调试目标授权不完整,请重新打开预览");return p=te.target,m=te.ownerToken,I(),p},send:D,close(){d=!0},event(y,g){const v=[{...g,message:F(g.message,4096),truncated:g.truncated===!0||new TextEncoder().encode(g.message).length>4096,...g.method?{method:F(g.method,100)}:{},...g.callId?{callId:F(g.callId,100)}:{},...g.phase?{phase:F(g.phase,100)}:{},...g.errorCode?{errorCode:F(g.errorCode,100)}:{},...g.network?{network:{...g.network.method?{method:F(g.network.method,32)}:{},...g.network.origin?{origin:F(g.network.origin,512)}:{},...g.network.pathname?{pathname:F(g.network.pathname,1024)}:{},...g.network.responseStatus===void 0?{}:{responseStatus:g.network.responseStatus}}}:{}}],k=t.at(-1);k!==s&&k?.operation==="events"&&k.instanceId===y&&k.events.length+v.length<=50&&_({...k,events:[...k.events,...v]})<=32e3?k.events.push(...v):D({operation:"events",instanceId:y,producerId:n,sequence:++r,events:v})},async poll(){if(!(!e||!p||E||o||e.signal.aborted)){o=!0;try{const{tasks:y}=await P({operation:"poll"});for(const g of y)a.has(g.requestId)||(a.add(g.requestId),(async()=>{let b;try{b=await e.query(g)}catch{b={code:"closed",error:"实例查询已结束"}}try{_(b)>32e3&&(b={code:"invalid",error:"诊断结果超出 32 KiB 输出上限"})}catch{b={code:"invalid",error:"诊断结果不可序列化"}}e.signal.aborted||await P({operation:"result",requestId:g.requestId,instanceId:g.instanceId,result:b}).catch(()=>{})})().finally(()=>a.delete(g.requestId)))}catch(y){y.status===403&&j()}finally{o=!1}}}}}const dd=su();class ae extends Error{constructor(t,n){super(n),this.code=t,this.name="BrowserDevHostPreviewError"}}function hd(e){const t=new Map;let n,r=!1;return{bridge:{version:1,async run(s){let o,a;try{ou(s);const l=Math.min(s.deadlineAt,Date.now()+(s.timeoutMs??25e3)),u=()=>{if(Date.now()>=l){const E=new ae("PREVIEW_TIMEOUT","调试台预览操作超时");throw o?.abort(E),E}o?.signal.throwIfAborted()};if(u(),r)throw new ae("SESSION_CLOSED","调试台已关闭");if(t.has(s.operationId))throw new ae("OPERATION_EXISTS","预览操作 ID 已在使用");if(s.command==="observe")return{ok:!0,value:e.observe()};const c=e.observe(),d=s.preset??c.preset;if(s.orientation&&d===wn)throw new ae("ORIENTATION_UNSUPPORTED","桌面预览方向由窗口尺寸决定,请先选择手机预设");n?.abort(new ae("PREVIEW_SUPERSEDED","预览操作已被更新的操作取代")),o=new AbortController,n=o,t.set(s.operationId,o),a=setTimeout(()=>o.abort(new ae("PREVIEW_TIMEOUT","调试台预览操作超时")),Math.max(0,l-Date.now()));const p=o.signal;return{ok:!0,value:await lu((async()=>(u(),s.command==="reload"?await e.reload(p):(s.preset&&await e.selectPreset(s.preset,p),u(),s.orientation&&await e.applyOrientation(s.orientation,p)),u(),await e.waitForLayout(p),u(),e.observe()))(),p)}}catch(l){return{ok:!1,error:au(l)}}finally{clearTimeout(a),o&&t.get(s.operationId)===o&&t.delete(s.operationId),n===o&&(n=void 0)}},cancel(s){const o=t.get(s);o&&o.abort(new ae("PREVIEW_CANCELLED","预览操作已取消;已生效的变更请读取当前状态确认"))}},dispose(){r=!0;for(const s of t.values())s.abort(new ae("SESSION_CLOSED","调试台已关闭"));t.clear()}}}async function gd(e){const t=window.__HB_SDK_PREVIEW__;if(!t)throw new ae("PREVIEW_NOT_READY","调试台尚未就绪");const n=await t.run({...e,operationId:crypto.randomUUID(),deadlineAt:Date.now()+(e.timeoutMs??25e3)});if(!n.ok)throw new ae(n.error.code,n.error.message);return n.value}function ou(e){if(!e||typeof e!="object"||typeof e.operationId!="string"||!/^[\w-]{1,128}$/.test(e.operationId))throw new ae("INVALID_OPERATION","预览操作 ID 无效");if(!Number.isFinite(e.deadlineAt)||e.deadlineAt<=0)throw new ae("INVALID_DEADLINE","预览操作绝对期限无效");if(!["observe","select","reload"].includes(e.command))throw new ae("INVALID_COMMAND","未知调试台动作");if(e.timeoutMs!==void 0&&(!Number.isInteger(e.timeoutMs)||e.timeoutMs<1||e.timeoutMs>3e4))throw new ae("INVALID_TIMEOUT","预览操作期限必须为 1 到 30000 毫秒");if(e.command!=="select"&&(e.preset!==void 0||e.orientation!==void 0))throw new ae("INVALID_OPTIONS","当前动作不接受设备或方向选项");if(e.command==="select"&&e.preset===void 0&&e.orientation===void 0)throw new ae("SELECT_REQUIRED","至少指定设备预设或方向");if(e.preset!==void 0&&e.preset!==wn&&!Ri.some(t=>t.id===e.preset))throw new ae("INVALID_PRESET","未知设备预设");if(e.orientation!==void 0&&!["portrait","landscape"].includes(e.orientation))throw new ae("INVALID_ORIENTATION","方向必须为 portrait 或 landscape")}function au(e){return e instanceof ae?{code:e.code,message:e.message}:e instanceof Error&&e.name==="AbortError"?{code:"PREVIEW_CANCELLED",message:"预览操作已取消"}:{code:"PREVIEW_FAILED",message:"调试台动作失败,请检查当前 Runtime 状态"}}function lu(e,t){return new Promise((n,r)=>{const i=()=>r(t.reason);t.addEventListener("abort",i,{once:!0}),e.then(n,r).finally(()=>t.removeEventListener("abort",i)),t.aborted&&i()})}function cu(e){const t=Ee(()=>{const a=e.selectedDiagnosticTargetId||e.diagnosticTargetId;return a.startsWith("upload:")?e.diagnosticInstances.find(l=>l.uploadSessionId===a.slice(7))?.targetId??a:a}),n=Ee(()=>e.diagnosticTargets.find(a=>a.targetId===t.value)),r=Ee(()=>n.value?.currentInstanceId??""),i=Ee(()=>{const a=e.diagnosticTargets.map(d=>({value:d.targetId,label:(d.targetId===e.diagnosticTargetId?"当前预览":d.metadata.deviceModel||d.metadata.displayName)+(d.targetId===e.diagnosticTargetId?` · ${e.previewMode==="desktop"?"桌面":"手机"}`:"")+(d.stale||d.state!=="attached"?" · 离线":"")})),l=new Set(e.diagnosticInstances.map(d=>d.uploadSessionId).filter(Boolean)),u=e.uploadSessions.filter(d=>!l.has(d.id)).map(d=>({value:`upload:${d.id}`,label:d.name+(d.online?" · 日志连接":" · 离线")}));!a.some(d=>d.value===e.diagnosticTargetId)&&e.diagnosticTargetId&&a.unshift({value:e.diagnosticTargetId,label:"当前预览"});const c=[...a,...u];return t.value&&!c.some(d=>d.value===t.value)&&c.push({value:t.value,label:"所选设备 · 离线"}),c});function s(a){if(!t.value)return"";const l=n.value;return l?l.stale||l.state!=="attached"?"当前设备已离线":l.currentInstanceId?l.capabilities[a]?"":a==="storage"?"当前设备不支持存储诊断":"当前设备不支持沙箱浏览":"当前设备没有运行中的小程序":t.value===e.diagnosticTargetId?"":"当前连接仅支持日志上报,无法读取此类数据"}function o(a){const l=t.value;if(!l)return!0;if(l.startsWith("upload:"))return a.uploadSessionId===l.slice(7);const u=e.diagnosticInstances.find(d=>d.instanceId===a.instanceId||a.uploadSessionId&&d.uploadSessionId===a.uploadSessionId),c=a.targetId||u?.targetId;return c?c===l:!a.uploadSessionId&&l===e.diagnosticTargetId}return{selectedDiagnosticKey:t,selectedDiagnosticTarget:n,selectedDiagnosticInstanceId:r,diagnosticDeviceOptions:i,diagnosticResourceReason:s,matchesDiagnosticDevice:o}}const pd=48,Jt=16384,xe=Object.freeze({width:414,height:780,minWidth:320,minHeight:480,resizable:!0});function ds(e,t,n){return Math.min(Math.max(e,t),n)}function ha(e){return{width:e?.defaultWidth??xe.width,height:e?.defaultHeight??xe.height}}function ar(e,t){return{minWidth:e?.minWidth??xe.minWidth,minHeight:e?.minHeight??xe.minHeight,widthLimit:t?Math.min(t.width,Jt):Jt,heightLimit:t?Math.min(t.height,Jt):Jt}}function lr(e,t){return{...e.width===void 0?{}:{width:ds(e.width,t.minWidth,Math.max(t.minWidth,t.widthLimit))},...e.height===void 0?{}:{height:ds(e.height,t.minHeight,Math.max(t.minHeight,t.heightLimit))}}}function uu(e,t){const n=ha(t);return e.defaultsAtWrite.width!==n.width||e.defaultsAtWrite.height!==n.height}function fu(e){const t=xe,n=e.declared,r=ar(n),i=e.memory&&!uu(e.memory,n)?e.memory:void 0,s=lr({width:i?.width??n?.defaultWidth??t.width,height:i?.height??n?.defaultHeight??t.height},r);return{width:s.width??t.width,height:s.height??t.height,minWidth:r.minWidth,minHeight:r.minHeight,resizable:n?.resizable??t.resizable}}const du=[{id:"app",label:"App"},{id:"sdk",label:"SDK"},{id:"network",label:"Network"},{id:"runtime",label:"Runtime"},{id:"host",label:"Host"}],ga=new Set(["bridge_response","bridge_started","src_resolved","location_probe"]),hu=new Set(["auth","cloud","companion","device","directory","file","files","navigation","share","storage","ui","user","viewport"]);function gu(e,t,n=Date.now(),r){const i=dn(t),s=cr(i),o=Number.isFinite(n)?n:Date.now(),a=Su(s?.outcome),l=yu(e,s),u=wu(l,s?.source),c=r??bu(e,a),d=_u(i,s,e),p=ze(s?.callId),m=ze(s?.errorCode)??ze(s?.code),E=pa(s?.durationMs),_=ma(s?.generation);return{method:e,detail:i,timestamp:o,level:c,source:u,category:l,summary:d,...a?{outcome:a}:{},...E===void 0?{}:{durationMs:E},...p?{callId:p}:{},...m?{errorCode:m}:{},..._===void 0?{}:{generation:_},...l==="console"&&(c==="log"||c==="info")?{dedupeKey:`${u}\0${c}\0${e}\0${d}`}:{}}}function pu(e,t){if(ga.has(e.type))return;const n=Eu(e),r=dn({...e,generation:t}),i=cr(r),s=Iu(e),o=e.type==="error"?"error":e.type==="security_violation"?"denied":void 0,a=[i?.errorCode,i?.message,i?.reason,i?.launchUrlType].map(l=>ze(l)).filter(l=>!!l).join(" · ");return{method:n,detail:r,timestamp:e.timestamp,level:s,source:"runtime",category:e.type==="security_violation"||e.type==="security"?"security":"lifecycle",summary:a,generation:t,...e.errorCode?{errorCode:e.errorCode}:{},...o?{outcome:o}:{},...e.type==="duplicate_handshake"||e.type==="status"?{dedupeKey:`runtime\0${t}\0${n}\0${a}`}:{}}}function md(e){if(e.source==="runtime"&&e.phase&&ga.has(e.phase))return;let t;if(e.source==="runtime"&&e.phase)try{const r=cr(JSON.parse(e.message));if(r?.type===e.phase&&typeof r.runtimeId=="string"&&typeof r.timestamp=="number"){const i=ma(r.generation);t=pu(r,i??0),t&&i===void 0&&delete t.generation}}catch{}const n=t??gu(e.method||`console.${e.level}`,e,e.timestamp,e.level==="debug"?"log":e.level);return n.targetId=e.targetId,n.instanceId=e.instanceId,n.source=e.source,n.summary=t?.summary||e.message,n.detail=e,n.dedupeKey=void 0,n}function mu(e){return[e.source,e.category,e.level,e.method,e.summary,e.outcome,e.errorCode,e.callId,Mi(e.detail)].filter(Boolean).join(" ").toLocaleLowerCase()}function Mi(e){try{return JSON.stringify(e,null,2)??""}catch{return"[无法序列化]"}}function yu(e,t){return e.startsWith("console.")?"console":e==="network.request"?"network":/security|violation|blocked/i.test(e)?"security":e.startsWith("runtime.")||e.startsWith("lifecycle.")?"lifecycle":t?.type==="capability"||hu.has(e.split(".")[0]??"")?"capability":"tooling"}function wu(e,t){return e==="console"&&(t==="app"||t==="host")?t:e==="network"?"network":e==="capability"?"sdk":e==="lifecycle"||e==="security"?"runtime":"host"}function bu(e,t){return t==="error"||/error|failed/i.test(e)?"error":t==="denied"||t==="dropped"||/warn|security|violation|blocked/i.test(e)?"warn":"info"}function _u(e,t,n){const r=t?.message;if(typeof r=="string"&&r.trim())return r.trim();if(r!==void 0&&typeof r!="string")return hs(r);const i=cr(t?.network);if(i){const a=ze(i.method),l=ze(i.origin),u=ze(i.pathname),c=pa(i.responseStatus),d=vu(l,u),p=[a,d,c===void 0?void 0:String(c)].filter(Boolean).join(" ");if(p)return p}const s=ze(t?.errorCode)??ze(t?.code);if(s)return s;if(!t)return hs(e);const o=ze(t.outcome);return o?`${n} · ${o}`:""}function vu(e,t){return e?t?e.replace(/\/$/,"")+(t.startsWith("/")?t:"/"+t):e:t}function Eu(e){return e.type==="status"?`runtime.${e.status??"status"}`:e.type==="lifecycle"?`lifecycle.${e.method??e.event??"event"}`:e.type==="lifecycle_ignored"?`lifecycle.${e.event??"event"}.ignored`:e.type==="security_violation"?"runtime.security":e.type==="error"?"runtime.error":`runtime.${e.type.replaceAll("_",".")}`}function Iu(e){return e.type==="error"?"error":e.type==="security_violation"||e.type==="handshake_timeout"||e.type.endsWith("_ignored")?"warn":e.type==="duplicate_handshake"||e.type==="launch_cancelled"?"log":"info"}function Su(e){return e==="success"||e==="error"||e==="dropped"||e==="denied"?e:void 0}function ze(e){return typeof e=="string"&&e.trim()?e.trim():void 0}function pa(e){return typeof e=="number"&&Number.isFinite(e)?e:void 0}function ma(e){return Number.isSafeInteger(e)?e:void 0}function hs(e){const t=Mi(e).replace(/\s+/g," ").trim();return t==="{}"||t==="[]"?"":t}function cr(e){return Object.prototype.toString.call(e)==="[object Object]"?e:void 0}function Tu(){return{declaration:void 0,initialized:!1,width:xe.width,height:xe.height,minWidth:xe.minWidth,minHeight:xe.minHeight,resizable:xe.resizable,maximized:!1,minimized:!1,closed:!1,availableWidth:0,availableHeight:0}}function ya(e){return nu(e)?wn:or(e).id}function wa(e){return e===wn?"desktop":"mobile"}const ba="hb-sdk:browser-dev-host:device",_a="hb-sdk:browser-dev-host:diagnostics-width",va="hb-sdk:browser-dev-host:desktop-app",Ea="hb-sdk:browser-dev-host:desktop-window",Cu=new URL(location.href).searchParams.get("device"),Sr=ya(Cu??Mu()),O=Gn({activeTab:"logs",uploadSessions:[],devicePresetId:or(Sr).id,deviceSelectOpen:!1,deviceSelectionId:Sr,previewMode:wa(Sr),hostPlatform:"unknown",desktopWindow:Tu(),logs:[],diagnosticTargetId:"",selectedDiagnosticTargetId:"",diagnosticOwnerId:"",diagnosticPrimaryTargetId:null,diagnosticOwnershipLost:!1,diagnosticTargetName:"",diagnosticInstances:[],diagnosticTargets:[],diagnosticsDropped:0,diagnosticsStale:!1,diagnosticsGap:!1,storage:[],storageError:"",queries:{logs:"",storage:"",sandbox:"",problems:""},followLogs:!0,pausedLogCount:0,problemClearWatermark:0,problemClearWatermarks:{},logFilters:{level:"all",source:"all"},diagnosticsWidth:xu(),miniProgram:{bound:!1,id:"",iconUrl:"",name:"未绑定小程序",detail:"",description:"",version:""},miniProgramSupportsDesktop:!1,miniProgramPlatforms:[],account:{authenticated:!1,avatar:"",nickname:"未登录"},navigationBarStyle:"dark",display:{orientation:"portrait",capsuleHidden:!1},screenshotChromeHidden:!1,runtimeStatus:"idle",mediaSimulation:"normal",qrOpen:!1,qrMode:"local",mobileQr:{status:"idle",expiresAt:0},devReadiness:void 0,localPermissions:[],openPlatformBaseUrl:void 0,devContextWarning:"",desktopLaunch:{target:Lu(),address:void 0,workspaceCardsEnabled:!1,devSessionId:"",miniProgramId:"",miniProgramManifestToken:"",ready:!1,unavailableReason:"正在等待桌面调试配置"}});let Nt=0,Bn;const Au=Ee(()=>or(O.devicePresetId)),yd=Ee(()=>iu(Au.value,O.display.orientation,O.display.capsuleHidden)),wd=Ee(()=>{const e=O.desktopWindow;if(!e.maximized)return{width:e.width,height:e.height};if(!(e.availableWidth>0)||!(e.availableHeight>0))return{width:e.width,height:e.height};const t=ar(e.declaration,{width:e.availableWidth,height:e.availableHeight}),n=lr({width:e.availableWidth,height:e.availableHeight},t);return{width:n.width??e.width,height:n.height??e.height}}),{selectedDiagnosticKey:vt,selectedDiagnosticTarget:bd,selectedDiagnosticInstanceId:_d,diagnosticDeviceOptions:Pu,diagnosticResourceReason:vd,matchesDiagnosticDevice:ur}=cu(O);function Ed(e){e!==vt.value&&Pu.value.some(t=>t.value===e)&&(O.selectedDiagnosticTargetId=e,O.storage=[],O.storageError="",O.pausedLogCount=0)}const Id=Ee(()=>{const e=O.queries.logs.trim().toLocaleLowerCase();return O.logs.filter(t=>ur(t)&&(O.logFilters.source==="all"||t.source===O.logFilters.source)&&(O.logFilters.level==="all"||t.level==="error"||O.logFilters.level==="warnings"&&t.level==="warn")&&(!e||mu(t).includes(e)))}),Sd=Ee(()=>(O.logFilters.source==="all"?0:1)+(O.logFilters.level==="all"?0:1)),Du=Ee(()=>{const e=new Map;for(const t of O.logs){if(!ur(t)||t.id<=(O.problemClearWatermarks[vt.value]??O.problemClearWatermark)||!ku(t))continue;const n=Ru(t),r=e.get(n);if(r){r.count+=t.repeatCount;continue}e.set(n,{...t,count:t.repeatCount})}return[...e.values()]}),Td=Ee(()=>Sa(O.storage,O.queries.storage,e=>`${e.key} ${e.area} ${e.serializedValue}`)),Cd=Ee(()=>Sa(Du.value,O.queries.problems,e=>`${e.method} ${Mi(e.detail)}`));function Ad(e){const t=ya(e);O.deviceSelectionId=t,O.previewMode=wa(t),O.devicePresetId=or(t).id;try{localStorage.setItem(ba,t)}catch{}}function Pd(e){const t=O.desktopWindow,n=ar(e);if(t.declaration=e,t.minWidth=n.minWidth,t.minHeight=n.minHeight,!t.initialized){const i=fu({declared:e,memory:Nu()});t.width=i.width,t.height=i.height,t.resizable=i.resizable,t.initialized=!0;return}t.resizable=e?.resizable??xe.resizable;const r=lr({width:t.width,height:t.height},n);r.width!==void 0&&(t.width=r.width),r.height!==void 0&&(t.height=r.height)}function Dd(e,t){O.desktopWindow.availableWidth=ps(e),O.desktopWindow.availableHeight=ps(t)}function kd(e,t,n={}){const r=O.desktopWindow;if(r.maximized)return;const i=lr({width:e,height:t},ar(r.declaration));i.width!==void 0&&(r.width=i.width),i.height!==void 0&&(r.height=i.height),n.persist&&Ou(r)}function Rd(e){O.desktopWindow.maximized=e===!0}function Md(e){O.desktopWindow.minimized=e===!0}function xd(e){O.desktopWindow.closed=e===!0}function Ld(e){O.hostPlatform=e}function Nd(e){O.navigationBarStyle=e}function Od(e){O.display.orientation=e.orientation,O.display.capsuleHidden=e.capsuleHidden}function Bd(e){O.desktopLaunch.target=e;try{localStorage.setItem(va,e)}catch{}}function Fd(e){O.desktopLaunch.address=e.address,O.desktopLaunch.workspaceCardsEnabled=e.workspaceCardsEnabled===!0,O.desktopLaunch.devSessionId=e.devSessionId??"",O.desktopLaunch.miniProgramId=e.miniProgramId??"",O.desktopLaunch.miniProgramManifestToken=e.miniProgramManifestToken??"",O.desktopLaunch.ready=e.ready,O.desktopLaunch.unavailableReason=e.unavailableReason??""}const gs=500;function Hd(e,t){if(!Number.isSafeInteger(t)||t<1)throw new Error("服务端日志游标无效");O.logs.some(n=>n.id===t)||Ia(e,t)}function Wd(){O.logs=[],O.problemClearWatermark=0,O.problemClearWatermarks={},O.pausedLogCount=0,O.diagnosticsGap=!1,O.diagnosticsDropped=0,Nt=0,Bn=void 0}function Ud(e){Ia(e,Nt+1)}function Ia(e,t){Nt=Math.max(Nt,t);const n=O.logs.at(-1),{dedupeKey:r,...i}=e;r&&n&&n.targetId===e.targetId&&n.instanceId===e.instanceId&&n.uploadSessionId===e.uploadSessionId&&Bn===r?Object.assign(n,i,{id:t,repeatCount:n.repeatCount+1}):(O.logs.push({...i,id:t,firstTimestamp:i.timestamp,repeatCount:1}),Bn=r),!O.followLogs&&ur(O.logs.at(-1))&&(O.pausedLogCount+=1),O.logs.length>gs&&O.logs.splice(0,O.logs.length-gs)}function Vd(){O.logs=O.logs.filter(e=>!ur(e)),O.pausedLogCount=0,Bn=void 0}function jd(){vt.value?O.problemClearWatermarks[vt.value]=Nt:(O.problemClearWatermark=Nt,O.problemClearWatermarks={})}function $d(e){O.followLogs=e,e&&(O.pausedLogCount=0)}function Kd(e){(e==="all"||e==="warnings"||e==="errors")&&(O.logFilters.level=e)}function zd(e){(e==="all"||du.some(t=>t.id===e))&&(O.logFilters.source=e)}function qd(){O.logFilters.level="all",O.logFilters.source="all"}function Jd(e){const t=Math.min(560,Math.max(320,Math.round(e)));O.diagnosticsWidth=t;try{localStorage.setItem(_a,String(t))}catch{}}function ku(e){return/error|failed|security|violation|blocked/i.test(e.method)?!0:e.outcome==="error"||e.outcome==="denied"}function Ru(e){const t=Fn(e.detail)?e.detail:void 0,n=Fn(t?.network)?t.network:void 0,r=[n?.method,n?.origin,n?.pathname,t?.origin,t?.sanitizedPathname].find(i=>typeof i=="string");return`${e.method}\0${e.errorCode??""}\0${r??""}`}function Fn(e){return Object.prototype.toString.call(e)==="[object Object]"}function Mu(){try{return localStorage.getItem(ba)}catch{return null}}function xu(){try{const e=Number(localStorage.getItem(_a));return Number.isFinite(e)&&e>0?Math.min(560,Math.max(320,e)):400}catch{return 400}}function Lu(){try{return localStorage.getItem(va)==="debug"?"debug":"production"}catch{return"production"}}function ps(e){return Number.isFinite(e)?Math.max(0,Math.round(e)):0}function In(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>0&&e<=Jt?e:void 0}function Nu(){let e;try{e=localStorage.getItem(Ea)}catch{return}if(!e)return;let t;try{t=JSON.parse(e)}catch{return}if(!Fn(t))return;const n=In(t.width),r=In(t.height),i=Fn(t.defaultsAtWrite)?t.defaultsAtWrite:void 0,s=i?In(i.width):void 0,o=i?In(i.height):void 0;if(!(n===void 0||r===void 0||s===void 0||o===void 0))return{width:n,height:r,defaultsAtWrite:{width:s,height:o},updatedAt:typeof t.updatedAt=="number"&&Number.isFinite(t.updatedAt)?t.updatedAt:0}}function Ou(e){const t={width:e.width,height:e.height,defaultsAtWrite:ha(e.declaration),updatedAt:Date.now()};try{localStorage.setItem(Ea,JSON.stringify(t))}catch{}}function Sa(e,t,n){const r=t.trim().toLocaleLowerCase();return r?e.filter(i=>n(i).toLocaleLowerCase().includes(r)):e}function Bu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ct={},Tr,ms;function Fu(){return ms||(ms=1,Tr=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),Tr}var Cr={},lt={},ys;function Et(){if(ys)return lt;ys=1;let e;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return lt.getSymbolSize=function(r){if(!r)throw new Error('"version" cannot be null or undefined');if(r<1||r>40)throw new Error('"version" should be in range from 1 to 40');return r*4+17},lt.getSymbolTotalCodewords=function(r){return t[r]},lt.getBCHDigit=function(n){let r=0;for(;n!==0;)r++,n>>>=1;return r},lt.setToSJISFunction=function(r){if(typeof r!="function")throw new Error('"toSJISFunc" is not a valid function.');e=r},lt.isKanjiModeEnabled=function(){return typeof e<"u"},lt.toSJIS=function(r){return e(r)},lt}var Ar={},ws;function xi(){return ws||(ws=1,(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},e.from=function(r,i){if(e.isValid(r))return r;try{return t(r)}catch{return i}}})(Ar)),Ar}var Pr,bs;function Hu(){if(bs)return Pr;bs=1;function e(){this.buffer=[],this.length=0}return e.prototype={get:function(t){const n=Math.floor(t/8);return(this.buffer[n]>>>7-t%8&1)===1},put:function(t,n){for(let r=0;r<n;r++)this.putBit((t>>>n-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),t&&(this.buffer[n]|=128>>>this.length%8),this.length++}},Pr=e,Pr}var Dr,_s;function Wu(){if(_s)return Dr;_s=1;function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}return e.prototype.set=function(t,n,r,i){const s=t*this.size+n;this.data[s]=r,i&&(this.reservedBit[s]=!0)},e.prototype.get=function(t,n){return this.data[t*this.size+n]},e.prototype.xor=function(t,n,r){this.data[t*this.size+n]^=r},e.prototype.isReserved=function(t,n){return this.reservedBit[t*this.size+n]},Dr=e,Dr}var kr={},vs;function Uu(){return vs||(vs=1,(function(e){const t=Et().getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const i=Math.floor(r/7)+2,s=t(r),o=s===145?26:Math.ceil((s-13)/(2*i-2))*2,a=[s-7];for(let l=1;l<i-1;l++)a[l]=a[l-1]-o;return a.push(6),a.reverse()},e.getPositions=function(r){const i=[],s=e.getRowColCoords(r),o=s.length;for(let a=0;a<o;a++)for(let l=0;l<o;l++)a===0&&l===0||a===0&&l===o-1||a===o-1&&l===0||i.push([s[a],s[l]]);return i}})(kr)),kr}var Rr={},Es;function Vu(){if(Es)return Rr;Es=1;const e=Et().getSymbolSize,t=7;return Rr.getPositions=function(r){const i=e(r);return[[0,0],[i-t,0],[0,i-t]]},Rr}var Mr={},Is;function ju(){return Is||(Is=1,(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},e.from=function(i){return e.isValid(i)?parseInt(i,10):void 0},e.getPenaltyN1=function(i){const s=i.size;let o=0,a=0,l=0,u=null,c=null;for(let d=0;d<s;d++){a=l=0,u=c=null;for(let p=0;p<s;p++){let m=i.get(d,p);m===u?a++:(a>=5&&(o+=t.N1+(a-5)),u=m,a=1),m=i.get(p,d),m===c?l++:(l>=5&&(o+=t.N1+(l-5)),c=m,l=1)}a>=5&&(o+=t.N1+(a-5)),l>=5&&(o+=t.N1+(l-5))}return o},e.getPenaltyN2=function(i){const s=i.size;let o=0;for(let a=0;a<s-1;a++)for(let l=0;l<s-1;l++){const u=i.get(a,l)+i.get(a,l+1)+i.get(a+1,l)+i.get(a+1,l+1);(u===4||u===0)&&o++}return o*t.N2},e.getPenaltyN3=function(i){const s=i.size;let o=0,a=0,l=0;for(let u=0;u<s;u++){a=l=0;for(let c=0;c<s;c++)a=a<<1&2047|i.get(u,c),c>=10&&(a===1488||a===93)&&o++,l=l<<1&2047|i.get(c,u),c>=10&&(l===1488||l===93)&&o++}return o*t.N3},e.getPenaltyN4=function(i){let s=0;const o=i.data.length;for(let l=0;l<o;l++)s+=i.data[l];return Math.abs(Math.ceil(s*100/o/5)-10)*t.N4};function n(r,i,s){switch(r){case e.Patterns.PATTERN000:return(i+s)%2===0;case e.Patterns.PATTERN001:return i%2===0;case e.Patterns.PATTERN010:return s%3===0;case e.Patterns.PATTERN011:return(i+s)%3===0;case e.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(s/3))%2===0;case e.Patterns.PATTERN101:return i*s%2+i*s%3===0;case e.Patterns.PATTERN110:return(i*s%2+i*s%3)%2===0;case e.Patterns.PATTERN111:return(i*s%3+(i+s)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}e.applyMask=function(i,s){const o=s.size;for(let a=0;a<o;a++)for(let l=0;l<o;l++)s.isReserved(l,a)||s.xor(l,a,n(i,l,a))},e.getBestMask=function(i,s){const o=Object.keys(e.Patterns).length;let a=0,l=1/0;for(let u=0;u<o;u++){s(u),e.applyMask(u,i);const c=e.getPenaltyN1(i)+e.getPenaltyN2(i)+e.getPenaltyN3(i)+e.getPenaltyN4(i);e.applyMask(u,i),c<l&&(l=c,a=u)}return a}})(Mr)),Mr}var Sn={},Ss;function Ta(){if(Ss)return Sn;Ss=1;const e=xi(),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],n=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return Sn.getBlocksCount=function(i,s){switch(s){case e.L:return t[(i-1)*4+0];case e.M:return t[(i-1)*4+1];case e.Q:return t[(i-1)*4+2];case e.H:return t[(i-1)*4+3];default:return}},Sn.getTotalCodewordsCount=function(i,s){switch(s){case e.L:return n[(i-1)*4+0];case e.M:return n[(i-1)*4+1];case e.Q:return n[(i-1)*4+2];case e.H:return n[(i-1)*4+3];default:return}},Sn}var xr={},$t={},Ts;function $u(){if(Ts)return $t;Ts=1;const e=new Uint8Array(512),t=new Uint8Array(256);return(function(){let r=1;for(let i=0;i<255;i++)e[i]=r,t[r]=i,r<<=1,r&256&&(r^=285);for(let i=255;i<512;i++)e[i]=e[i-255]})(),$t.log=function(r){if(r<1)throw new Error("log("+r+")");return t[r]},$t.exp=function(r){return e[r]},$t.mul=function(r,i){return r===0||i===0?0:e[t[r]+t[i]]},$t}var Cs;function Ku(){return Cs||(Cs=1,(function(e){const t=$u();e.mul=function(r,i){const s=new Uint8Array(r.length+i.length-1);for(let o=0;o<r.length;o++)for(let a=0;a<i.length;a++)s[o+a]^=t.mul(r[o],i[a]);return s},e.mod=function(r,i){let s=new Uint8Array(r);for(;s.length-i.length>=0;){const o=s[0];for(let l=0;l<i.length;l++)s[l]^=t.mul(i[l],o);let a=0;for(;a<s.length&&s[a]===0;)a++;s=s.slice(a)}return s},e.generateECPolynomial=function(r){let i=new Uint8Array([1]);for(let s=0;s<r;s++)i=e.mul(i,new Uint8Array([1,t.exp(s)]));return i}})(xr)),xr}var Lr,As;function zu(){if(As)return Lr;As=1;const e=Ku();function t(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}return t.prototype.initialize=function(r){this.degree=r,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(r){if(!this.genPoly)throw new Error("Encoder not initialized");const i=new Uint8Array(r.length+this.degree);i.set(r);const s=e.mod(i,this.genPoly),o=this.degree-s.length;if(o>0){const a=new Uint8Array(this.degree);return a.set(s,o),a}return s},Lr=t,Lr}var Nr={},Or={},Br={},Ps;function Ca(){return Ps||(Ps=1,Br.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),Br}var Ue={},Ds;function Aa(){if(Ds)return Ue;Ds=1;const e="[0-9]+",t="[A-Z $%*+\\-./:]+";let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const r="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+`)(?:.|[\r
|
|
7
|
-
]))+`;Ue.KANJI=new RegExp(n,"g"),Ue.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Ue.BYTE=new RegExp(r,"g"),Ue.NUMERIC=new RegExp(e,"g"),Ue.ALPHANUMERIC=new RegExp(t,"g");const i=new RegExp("^"+n+"$"),s=new RegExp("^"+e+"$"),o=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Ue.testKanji=function(l){return i.test(l)},Ue.testNumeric=function(l){return s.test(l)},Ue.testAlphanumeric=function(l){return o.test(l)},Ue}var ks;function It(){return ks||(ks=1,(function(e){const t=Ca(),n=Aa();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(s,o){if(!s.ccBits)throw new Error("Invalid mode: "+s);if(!t.isValid(o))throw new Error("Invalid version: "+o);return o>=1&&o<10?s.ccBits[0]:o<27?s.ccBits[1]:s.ccBits[2]},e.getBestModeForData=function(s){return n.testNumeric(s)?e.NUMERIC:n.testAlphanumeric(s)?e.ALPHANUMERIC:n.testKanji(s)?e.KANJI:e.BYTE},e.toString=function(s){if(s&&s.id)return s.id;throw new Error("Invalid mode")},e.isValid=function(s){return s&&s.bit&&s.ccBits};function r(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+i)}}e.from=function(s,o){if(e.isValid(s))return s;try{return r(s)}catch{return o}}})(Or)),Or}var Rs;function qu(){return Rs||(Rs=1,(function(e){const t=Et(),n=Ta(),r=xi(),i=It(),s=Ca(),o=7973,a=t.getBCHDigit(o);function l(p,m,E){for(let _=1;_<=40;_++)if(m<=e.getCapacity(_,E,p))return _}function u(p,m){return i.getCharCountIndicator(p,m)+4}function c(p,m){let E=0;return p.forEach(function(_){const F=u(_.mode,m);E+=F+_.getBitsLength()}),E}function d(p,m){for(let E=1;E<=40;E++)if(c(p,E)<=e.getCapacity(E,m,i.MIXED))return E}e.from=function(m,E){return s.isValid(m)?parseInt(m,10):E},e.getCapacity=function(m,E,_){if(!s.isValid(m))throw new Error("Invalid QR Code version");typeof _>"u"&&(_=i.BYTE);const F=t.getSymbolTotalCodewords(m),x=n.getTotalCodewordsCount(m,E),P=(F-x)*8;if(_===i.MIXED)return P;const N=P-u(_,m);switch(_){case i.NUMERIC:return Math.floor(N/10*3);case i.ALPHANUMERIC:return Math.floor(N/11*2);case i.KANJI:return Math.floor(N/13);case i.BYTE:default:return Math.floor(N/8)}},e.getBestVersionForData=function(m,E){let _;const F=r.from(E,r.M);if(Array.isArray(m)){if(m.length>1)return d(m,F);if(m.length===0)return 1;_=m[0]}else _=m;return l(_.mode,_.getLength(),F)},e.getEncodedBits=function(m){if(!s.isValid(m)||m<7)throw new Error("Invalid QR Code version");let E=m<<12;for(;t.getBCHDigit(E)-a>=0;)E^=o<<t.getBCHDigit(E)-a;return m<<12|E}})(Nr)),Nr}var Fr={},Ms;function Ju(){if(Ms)return Fr;Ms=1;const e=Et(),t=1335,n=21522,r=e.getBCHDigit(t);return Fr.getEncodedBits=function(s,o){const a=s.bit<<3|o;let l=a<<10;for(;e.getBCHDigit(l)-r>=0;)l^=t<<e.getBCHDigit(l)-r;return(a<<10|l)^n},Fr}var Hr={},Wr,xs;function Gu(){if(xs)return Wr;xs=1;const e=It();function t(n){this.mode=e.NUMERIC,this.data=n.toString()}return t.getBitsLength=function(r){return 10*Math.floor(r/3)+(r%3?r%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(r){let i,s,o;for(i=0;i+3<=this.data.length;i+=3)s=this.data.substr(i,3),o=parseInt(s,10),r.put(o,10);const a=this.data.length-i;a>0&&(s=this.data.substr(i),o=parseInt(s,10),r.put(o,a*3+1))},Wr=t,Wr}var Ur,Ls;function Yu(){if(Ls)return Ur;Ls=1;const e=It(),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function n(r){this.mode=e.ALPHANUMERIC,this.data=r}return n.getBitsLength=function(i){return 11*Math.floor(i/2)+6*(i%2)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(i){let s;for(s=0;s+2<=this.data.length;s+=2){let o=t.indexOf(this.data[s])*45;o+=t.indexOf(this.data[s+1]),i.put(o,11)}this.data.length%2&&i.put(t.indexOf(this.data[s]),6)},Ur=n,Ur}var Vr,Ns;function Qu(){if(Ns)return Vr;Ns=1;const e=It();function t(n){this.mode=e.BYTE,typeof n=="string"?this.data=new TextEncoder().encode(n):this.data=new Uint8Array(n)}return t.getBitsLength=function(r){return r*8},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(n){for(let r=0,i=this.data.length;r<i;r++)n.put(this.data[r],8)},Vr=t,Vr}var jr,Os;function Xu(){if(Os)return jr;Os=1;const e=It(),t=Et();function n(r){this.mode=e.KANJI,this.data=r}return n.getBitsLength=function(i){return i*13},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(r){let i;for(i=0;i<this.data.length;i++){let s=t.toSJIS(this.data[i]);if(s>=33088&&s<=40956)s-=33088;else if(s>=57408&&s<=60351)s-=49472;else throw new Error("Invalid SJIS character: "+this.data[i]+`
|
|
8
|
-
Make sure your charset is UTF-8`);s=(s>>>8&255)*192+(s&255),r.put(s,13)}},jr=n,jr}var $r={exports:{}},Bs;function Zu(){return Bs||(Bs=1,(function(e){var t={single_source_shortest_paths:function(n,r,i){var s={},o={};o[r]=0;var a=t.PriorityQueue.make();a.push(r,0);for(var l,u,c,d,p,m,E,_,F;!a.empty();){l=a.pop(),u=l.value,d=l.cost,p=n[u]||{};for(c in p)p.hasOwnProperty(c)&&(m=p[c],E=d+m,_=o[c],F=typeof o[c]>"u",(F||_>E)&&(o[c]=E,a.push(c,E),s[c]=u))}if(typeof i<"u"&&typeof o[i]>"u"){var x=["Could not find a path from ",r," to ",i,"."].join("");throw new Error(x)}return s},extract_shortest_path_from_predecessor_list:function(n,r){for(var i=[],s=r;s;)i.push(s),n[s],s=n[s];return i.reverse(),i},find_path:function(n,r,i){var s=t.single_source_shortest_paths(n,r,i);return t.extract_shortest_path_from_predecessor_list(s,i)},PriorityQueue:{make:function(n){var r=t.PriorityQueue,i={},s;n=n||{};for(s in r)r.hasOwnProperty(s)&&(i[s]=r[s]);return i.queue=[],i.sorter=n.sorter||r.default_sorter,i},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var i={value:n,cost:r};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})($r)),$r.exports}var Fs;function ef(){return Fs||(Fs=1,(function(e){const t=It(),n=Gu(),r=Yu(),i=Qu(),s=Xu(),o=Aa(),a=Et(),l=Zu();function u(x){return unescape(encodeURIComponent(x)).length}function c(x,P,N){const I=[];let j;for(;(j=x.exec(N))!==null;)I.push({data:j[0],index:j.index,mode:P,length:j[0].length});return I}function d(x){const P=c(o.NUMERIC,t.NUMERIC,x),N=c(o.ALPHANUMERIC,t.ALPHANUMERIC,x);let I,j;return a.isKanjiModeEnabled()?(I=c(o.BYTE,t.BYTE,x),j=c(o.KANJI,t.KANJI,x)):(I=c(o.BYTE_KANJI,t.BYTE,x),j=[]),P.concat(N,I,j).sort(function(D,y){return D.index-y.index}).map(function(D){return{data:D.data,mode:D.mode,length:D.length}})}function p(x,P){switch(P){case t.NUMERIC:return n.getBitsLength(x);case t.ALPHANUMERIC:return r.getBitsLength(x);case t.KANJI:return s.getBitsLength(x);case t.BYTE:return i.getBitsLength(x)}}function m(x){return x.reduce(function(P,N){const I=P.length-1>=0?P[P.length-1]:null;return I&&I.mode===N.mode?(P[P.length-1].data+=N.data,P):(P.push(N),P)},[])}function E(x){const P=[];for(let N=0;N<x.length;N++){const I=x[N];switch(I.mode){case t.NUMERIC:P.push([I,{data:I.data,mode:t.ALPHANUMERIC,length:I.length},{data:I.data,mode:t.BYTE,length:I.length}]);break;case t.ALPHANUMERIC:P.push([I,{data:I.data,mode:t.BYTE,length:I.length}]);break;case t.KANJI:P.push([I,{data:I.data,mode:t.BYTE,length:u(I.data)}]);break;case t.BYTE:P.push([{data:I.data,mode:t.BYTE,length:u(I.data)}])}}return P}function _(x,P){const N={},I={start:{}};let j=["start"];for(let M=0;M<x.length;M++){const D=x[M],y=[];for(let g=0;g<D.length;g++){const b=D[g],v=""+M+g;y.push(v),N[v]={node:b,lastCount:0},I[v]={};for(let k=0;k<j.length;k++){const W=j[k];N[W]&&N[W].node.mode===b.mode?(I[W][v]=p(N[W].lastCount+b.length,b.mode)-p(N[W].lastCount,b.mode),N[W].lastCount+=b.length):(N[W]&&(N[W].lastCount=b.length),I[W][v]=p(b.length,b.mode)+4+t.getCharCountIndicator(b.mode,P))}}j=y}for(let M=0;M<j.length;M++)I[j[M]].end=0;return{map:I,table:N}}function F(x,P){let N;const I=t.getBestModeForData(x);if(N=t.from(P,I),N!==t.BYTE&&N.bit<I.bit)throw new Error('"'+x+'" cannot be encoded with mode '+t.toString(N)+`.
|
|
9
|
-
Suggested mode is: `+t.toString(I));switch(N===t.KANJI&&!a.isKanjiModeEnabled()&&(N=t.BYTE),N){case t.NUMERIC:return new n(x);case t.ALPHANUMERIC:return new r(x);case t.KANJI:return new s(x);case t.BYTE:return new i(x)}}e.fromArray=function(P){return P.reduce(function(N,I){return typeof I=="string"?N.push(F(I,null)):I.data&&N.push(F(I.data,I.mode)),N},[])},e.fromString=function(P,N){const I=d(P,a.isKanjiModeEnabled()),j=E(I),M=_(j,N),D=l.find_path(M.map,"start","end"),y=[];for(let g=1;g<D.length-1;g++)y.push(M.table[D[g]].node);return e.fromArray(m(y))},e.rawSplit=function(P){return e.fromArray(d(P,a.isKanjiModeEnabled()))}})(Hr)),Hr}var Hs;function tf(){if(Hs)return Cr;Hs=1;const e=Et(),t=xi(),n=Hu(),r=Wu(),i=Uu(),s=Vu(),o=ju(),a=Ta(),l=zu(),u=qu(),c=Ju(),d=It(),p=ef();function m(M,D){const y=M.size,g=s.getPositions(D);for(let b=0;b<g.length;b++){const v=g[b][0],k=g[b][1];for(let W=-1;W<=7;W++)if(!(v+W<=-1||y<=v+W))for(let U=-1;U<=7;U++)k+U<=-1||y<=k+U||(W>=0&&W<=6&&(U===0||U===6)||U>=0&&U<=6&&(W===0||W===6)||W>=2&&W<=4&&U>=2&&U<=4?M.set(v+W,k+U,!0,!0):M.set(v+W,k+U,!1,!0))}}function E(M){const D=M.size;for(let y=8;y<D-8;y++){const g=y%2===0;M.set(y,6,g,!0),M.set(6,y,g,!0)}}function _(M,D){const y=i.getPositions(D);for(let g=0;g<y.length;g++){const b=y[g][0],v=y[g][1];for(let k=-2;k<=2;k++)for(let W=-2;W<=2;W++)k===-2||k===2||W===-2||W===2||k===0&&W===0?M.set(b+k,v+W,!0,!0):M.set(b+k,v+W,!1,!0)}}function F(M,D){const y=M.size,g=u.getEncodedBits(D);let b,v,k;for(let W=0;W<18;W++)b=Math.floor(W/3),v=W%3+y-8-3,k=(g>>W&1)===1,M.set(b,v,k,!0),M.set(v,b,k,!0)}function x(M,D,y){const g=M.size,b=c.getEncodedBits(D,y);let v,k;for(v=0;v<15;v++)k=(b>>v&1)===1,v<6?M.set(v,8,k,!0):v<8?M.set(v+1,8,k,!0):M.set(g-15+v,8,k,!0),v<8?M.set(8,g-v-1,k,!0):v<9?M.set(8,15-v-1+1,k,!0):M.set(8,15-v-1,k,!0);M.set(g-8,8,1,!0)}function P(M,D){const y=M.size;let g=-1,b=y-1,v=7,k=0;for(let W=y-1;W>0;W-=2)for(W===6&&W--;;){for(let U=0;U<2;U++)if(!M.isReserved(b,W-U)){let ye=!1;k<D.length&&(ye=(D[k]>>>v&1)===1),M.set(b,W-U,ye),v--,v===-1&&(k++,v=7)}if(b+=g,b<0||y<=b){b-=g,g=-g;break}}}function N(M,D,y){const g=new n;y.forEach(function(U){g.put(U.mode.bit,4),g.put(U.getLength(),d.getCharCountIndicator(U.mode,M)),U.write(g)});const b=e.getSymbolTotalCodewords(M),v=a.getTotalCodewordsCount(M,D),k=(b-v)*8;for(g.getLengthInBits()+4<=k&&g.put(0,4);g.getLengthInBits()%8!==0;)g.putBit(0);const W=(k-g.getLengthInBits())/8;for(let U=0;U<W;U++)g.put(U%2?17:236,8);return I(g,M,D)}function I(M,D,y){const g=e.getSymbolTotalCodewords(D),b=a.getTotalCodewordsCount(D,y),v=g-b,k=a.getBlocksCount(D,y),W=g%k,U=k-W,ye=Math.floor(g/k),te=Math.floor(v/k),J=te+1,ee=ye-te,Ge=new l(ee);let ot=0;const ke=new Array(k),Te=new Array(k);let St=0;const fr=new Uint8Array(M.buffer);for(let Ye=0;Ye<k;Ye++){const Qe=Ye<U?te:J;ke[Ye]=fr.slice(ot,ot+Qe),Te[Ye]=Ge.encode(ke[Ye]),ot+=Qe,St=Math.max(St,Qe)}const Ft=new Uint8Array(g);let at=0,Ie,Ce;for(Ie=0;Ie<St;Ie++)for(Ce=0;Ce<k;Ce++)Ie<ke[Ce].length&&(Ft[at++]=ke[Ce][Ie]);for(Ie=0;Ie<ee;Ie++)for(Ce=0;Ce<k;Ce++)Ft[at++]=Te[Ce][Ie];return Ft}function j(M,D,y,g){let b;if(Array.isArray(M))b=p.fromArray(M);else if(typeof M=="string"){let ye=D;if(!ye){const te=p.rawSplit(M);ye=u.getBestVersionForData(te,y)}b=p.fromString(M,ye||40)}else throw new Error("Invalid data");const v=u.getBestVersionForData(b,y);if(!v)throw new Error("The amount of data is too big to be stored in a QR Code");if(!D)D=v;else if(D<v)throw new Error(`
|
|
10
|
-
The chosen QR Code version cannot contain this amount of data.
|
|
11
|
-
Minimum version required to store current data is: `+v+`.
|
|
12
|
-
`);const k=N(D,y,b),W=e.getSymbolSize(D),U=new r(W);return m(U,D),E(U),_(U,D),x(U,y,0),D>=7&&F(U,D),P(U,k),isNaN(g)&&(g=o.getBestMask(U,x.bind(null,U,y))),o.applyMask(g,U),x(U,y,g),{modules:U,version:D,errorCorrectionLevel:y,maskPattern:g,segments:b}}return Cr.create=function(D,y){if(typeof D>"u"||D==="")throw new Error("No input text");let g=t.M,b,v;return typeof y<"u"&&(g=t.from(y.errorCorrectionLevel,t.M),b=u.from(y.version),v=o.from(y.maskPattern),y.toSJISFunc&&e.setToSJISFunction(y.toSJISFunc)),j(D,b,g,v)},Cr}var Kr={},zr={},Ws;function Pa(){return Ws||(Ws=1,(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(s){return[s,s]}))),r.length===6&&r.push("F","F");const i=parseInt(r.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const i=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,s=r.width&&r.width>=21?r.width:void 0,o=r.scale||4;return{width:s,scale:s?4:o,margin:i,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,i){return i.width&&i.width>=r+i.margin*2?i.width/(r+i.margin*2):i.scale},e.getImageWidth=function(r,i){const s=e.getScale(r,i);return Math.floor((r+i.margin*2)*s)},e.qrToImageData=function(r,i,s){const o=i.modules.size,a=i.modules.data,l=e.getScale(o,s),u=Math.floor((o+s.margin*2)*l),c=s.margin*l,d=[s.color.light,s.color.dark];for(let p=0;p<u;p++)for(let m=0;m<u;m++){let E=(p*u+m)*4,_=s.color.light;if(p>=c&&m>=c&&p<u-c&&m<u-c){const F=Math.floor((p-c)/l),x=Math.floor((m-c)/l);_=d[a[F*o+x]?1:0]}r[E++]=_.r,r[E++]=_.g,r[E++]=_.b,r[E]=_.a}}})(zr)),zr}var Us;function nf(){return Us||(Us=1,(function(e){const t=Pa();function n(i,s,o){i.clearRect(0,0,s.width,s.height),s.style||(s.style={}),s.height=o,s.width=o,s.style.height=o+"px",s.style.width=o+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(s,o,a){let l=a,u=o;typeof l>"u"&&(!o||!o.getContext)&&(l=o,o=void 0),o||(u=r()),l=t.getOptions(l);const c=t.getImageWidth(s.modules.size,l),d=u.getContext("2d"),p=d.createImageData(c,c);return t.qrToImageData(p.data,s,l),n(d,u,c),d.putImageData(p,0,0),u},e.renderToDataURL=function(s,o,a){let l=a;typeof l>"u"&&(!o||!o.getContext)&&(l=o,o=void 0),l||(l={});const u=e.render(s,o,l),c=l.type||"image/png",d=l.rendererOpts||{};return u.toDataURL(c,d.quality)}})(Kr)),Kr}var qr={},Vs;function rf(){if(Vs)return qr;Vs=1;const e=Pa();function t(i,s){const o=i.a/255,a=s+'="'+i.hex+'"';return o<1?a+" "+s+'-opacity="'+o.toFixed(2).slice(1)+'"':a}function n(i,s,o){let a=i+s;return typeof o<"u"&&(a+=" "+o),a}function r(i,s,o){let a="",l=0,u=!1,c=0;for(let d=0;d<i.length;d++){const p=Math.floor(d%s),m=Math.floor(d/s);!p&&!u&&(u=!0),i[d]?(c++,d>0&&p>0&&i[d-1]||(a+=u?n("M",p+o,.5+m+o):n("m",l,0),l=0,u=!1),p+1<s&&i[d+1]||(a+=n("h",c),c=0)):l++}return a}return qr.render=function(s,o,a){const l=e.getOptions(o),u=s.modules.size,c=s.modules.data,d=u+l.margin*2,p=l.color.light.a?"<path "+t(l.color.light,"fill")+' d="M0 0h'+d+"v"+d+'H0z"/>':"",m="<path "+t(l.color.dark,"stroke")+' d="'+r(c,u,l.margin)+'"/>',E='viewBox="0 0 '+d+" "+d+'"',F='<svg xmlns="http://www.w3.org/2000/svg" '+(l.width?'width="'+l.width+'" height="'+l.width+'" ':"")+E+' shape-rendering="crispEdges">'+p+m+`</svg>
|
|
13
|
-
`;return typeof a=="function"&&a(null,F),F},qr}var js;function sf(){if(js)return Ct;js=1;const e=Fu(),t=tf(),n=nf(),r=rf();function i(s,o,a,l,u){const c=[].slice.call(arguments,1),d=c.length,p=typeof c[d-1]=="function";if(!p&&!e())throw new Error("Callback required as last argument");if(p){if(d<2)throw new Error("Too few arguments provided");d===2?(u=a,a=o,o=l=void 0):d===3&&(o.getContext&&typeof u>"u"?(u=l,l=void 0):(u=l,l=a,a=o,o=void 0))}else{if(d<1)throw new Error("Too few arguments provided");return d===1?(a=o,o=l=void 0):d===2&&!o.getContext&&(l=a,a=o,o=void 0),new Promise(function(m,E){try{const _=t.create(a,l);m(s(_,o,l))}catch(_){E(_)}})}try{const m=t.create(a,l);u(null,s(m,o,l))}catch(m){u(m)}}return Ct.create=t.create,Ct.toCanvas=i.bind(null,n.render),Ct.toDataURL=i.bind(null,n.renderToDataURL),Ct.toString=i.bind(null,function(s,o,a){return r.render(s,a)}),Ct}var of=sf();const Gd=Bu(of),Li=Xn(),Da=mo({});function Yd(e){Object.assign(Da,e)}function Qd(e){Li.value=e}const Pn=Xn(),Hn=Xn();let af=0;function nn(){const e=Li.value;return JSON.stringify([vt.value,e?.targetId,e?.instanceId])}const lf=Ee(()=>Pn.value?.scope===nn()),Xd=Ee(()=>Hn.value?.scope===nn()?Hn.value.message:"");async function Zd(e){const t=Li.value,n=O.diagnosticTargetId;if(vt.value&&vt.value!==n||t?.targetId&&t.targetId!==n||e!=="refresh"&&(t?.permissionStateReady!==!0||t.declaredSource!=="manifest"||t.stateError))return!1;const r=Da[e];if(!r||lf.value)return!1;const i=nn(),s=++af;Pn.value={scope:i,sequence:s},Hn.value=void 0;try{return await r(),i===nn()}catch(o){return i===nn()&&(Hn.value={scope:i,message:o instanceof Error?o.message:"授权操作失败,请重试"}),!1}finally{Pn.value?.sequence===s&&(Pn.value=void 0)}}const eh=Xn();function th(e){const t=e.split(/[\\/]/).at(-1)?.replace(/[<>:"|?*\u0000-\u001f\u007f]/g,"_").replace(/[. ]+$/,"")||"game-save",n=Array.from(t).slice(0,180).join("").replace(/[. ]+$/,"")||"game-save";return`${/^(con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\.|$)/i.test(n)?"_":""}${n}${/\.zip$/i.test(n)?"":".zip"}`}const cf={storage:{failed:"Storage 诊断查询失败",stale:"当前设备的存储快照已失效,请重试"},sandbox:{failed:"目录查询失败",stale:"当前设备的沙箱快照已失效,请重试"}};async function nh(e,t){const n=new Headers({"content-type":"application/json"});t.csrfToken&&n.set("x-hb-sdk-csrf",t.csrfToken);const r=await fetch(Kc,{method:"POST",headers:n,body:JSON.stringify(e),signal:AbortSignal.any([t.signal,AbortSignal.timeout(12e3)]),cache:"no-store",credentials:"same-origin",redirect:"error"}),i=cf[e.resource];if(!r.ok){const o=await r.json().catch(()=>{});throw new Error(typeof o?.error=="string"?o.error:`${i.failed}(HTTP ${r.status})`)}const s=await r.json();if(s.stale||s.instanceId&&s.instanceId!==e.instanceId)throw new Error(i.stale);return s}const uf=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/,ff="ai-desktop.heybox-user-miniprogram",df="open",hf=2048,gf="hb_sdk_manifest_token",pf=/^[A-Za-z0-9_-]{43}$/,mf=/^[a-f0-9]{32}$/;function rh(e){const t=yf(e.miniProgramId);if(e.devSessionId!==void 0&&!mf.test(e.devSessionId))throw new TypeError("Desktop dev session id is invalid");const n=ka(e.address.appUrl),r=e.miniProgramManifestToken?.trim();if(r&&!pf.test(r))throw new TypeError("Desktop mini-program manifest token is invalid");const i=e.target==="debug"?"heybox-debug":"heybox",s=new URL(`${i}://v1/extensions/${ff}/${df}`);return s.searchParams.set("mini_program_id",t),s.searchParams.set("mini_url",n),e.devSessionId!==void 0&&s.searchParams.set("dev_session_id",e.devSessionId),r&&s.searchParams.set(gf,r),s.href}function ih(e){return{address:"127.0.0.1",appUrl:ka(e),id:"loopback",name:"本机"}}function ka(e){if(typeof e!="string"||e!==e.trim()||new TextEncoder().encode(e).byteLength>hf)throw new TypeError("Desktop mini-program URL is invalid");let t;try{t=new URL(e)}catch{throw new TypeError("Desktop mini-program URL is invalid")}if(t.protocol!=="http:"||t.hostname!=="127.0.0.1"||!t.port||t.username||t.password||t.search||t.hash||t.href!==e)throw new TypeError("Desktop mini-program URL is invalid");return t.href}function yf(e){const t=e.trim().toLowerCase();if(!uf.test(t))throw new TypeError("Desktop mini-program id is invalid");return t}export{th as $,hd as A,Nf as B,pe as C,wn as D,Ic as E,Pe as F,rh as G,Qf as H,ih as I,Jf as J,qf as K,Ec as L,Se as M,gl as N,Of as O,Pu as P,Gd as Q,vd as R,Sf as S,Lf as T,he as U,nh as V,du as W,Id as X,Cd as Y,Td as Z,eh as _,Nl as a,Bd as a$,mn as a0,ja as a1,vc as a2,Gf as a3,ld as a4,Ot as a5,Ef as a6,Cn as a7,dr as a8,K as a9,Vl as aA,si as aB,Du as aC,md as aD,Cl as aE,Qd as aF,Gn as aG,id as aH,dn as aI,ul as aJ,sd as aK,Xf as aL,Yd as aM,nd as aN,Hf as aO,Wf as aP,cd as aQ,Wd as aR,qd as aS,Ff as aT,gd as aU,Zd as aV,Mi as aW,_d as aX,vt as aY,bd as aZ,fd as a_,q as aa,mi as ab,Z as ac,pi as ad,le as ae,Ks as af,vf as ag,ce as ah,Me as ai,Kn as aj,If as ak,Na as al,cl as am,$f as an,Kf as ao,Sc as ap,El as aq,$n as ar,_f as as,jn as at,gu as au,Wl as av,No as aw,Lo as ax,Tf as ay,Oo as az,ae as b,Fd as b0,Dd as b1,xd as b2,Rd as b3,Md as b4,kd as b5,Ad as b6,Ed as b7,Jd as b8,$d as b9,ud as bA,Nc as bB,Zf as bC,ed as bD,yr as bE,Mf as bF,xf as bG,Tl as bH,Rf as bI,Yf as bJ,O as bK,Ld as ba,Od as bb,Kd as bc,zd as bd,Nd as be,Cf as bf,Xn as bg,ad as bh,od as bi,Va as bj,Tn as bk,Uf as bl,bf as bm,kf as bn,Df as bo,Pf as bp,Af as bq,Ei as br,jf as bs,Bf as bt,zf as bu,Vf as bv,lf as bw,Xd as bx,Da as by,Li as bz,pd as c,Ri as d,$c as e,wd as f,yd as g,Au as h,Sd as i,Ud as j,Hd as k,Pd as l,ki as m,dd as n,of as o,Je as p,Ne as q,wi as r,Vd as s,jd as t,ft as u,Ee as v,rd as w,sa as x,oi as y,td as z};
|