dsh-cost-meter 1.9.23 → 1.9.24
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/README.md +8 -8
- package/README.zh-CN.md +8 -8
- package/THIRD_PARTY_NOTICES.md +2 -0
- package/docs/update-notes-1.9.24.md +21 -0
- package/lib/client.js +1 -1
- package/lib/index.js +13 -7
- package/lib/plan-billing.js +1 -1
- package/lib/workbuddy.js +12 -7
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
**Session cost tracking plugin for the DeepSeek Harness web GUI (bilingual UI)**
|
|
8
8
|
|
|
9
|
-
[](https://github.com/Han-1413141/dsh-cost-meter)
|
|
10
10
|
[](https://www.npmjs.com/package/dsh-cost-meter)
|
|
11
11
|
[](https://dshfind.com/zh/plugins/Han-1413141/dsh-cost-meter?ref=badge)
|
|
12
12
|
[](LICENSE)
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
|
|
17
17
|
</div>
|
|
18
18
|
|
|
19
|
-
**v1.9.
|
|
19
|
+
**v1.9.24** reads CN/global credits from dsh-connect-workbuddy and recognizes its international route as part of the WorkBuddy Plan family.
|
|
20
20
|
|
|
21
21
|
**Host floor: DSH 0.2.0** · Adaptation target: **0.2.1-rc.2** (npm `next`). Expand the compatibility notes below for exact declarations, host records and troubleshooting.
|
|
22
22
|
|
|
23
|
-
Release notes: [v1.9.
|
|
23
|
+
Release notes: [v1.9.24](docs/update-notes-1.9.24.md#english). Fully restart DSH after updating.
|
|
24
24
|
|
|
25
25
|

|
|
26
26
|
|
|
@@ -352,22 +352,22 @@ On Node.js 20, use `npm install -g pnpm@10` instead. See [pnpm installation and
|
|
|
352
352
|
dsh plugin --profile web add dsh-cost-meter
|
|
353
353
|
```
|
|
354
354
|
|
|
355
|
-
**PowerShell one-click script** (copy the whole line, paste, press Enter; pnpm is provisioned automatically, git is auto-detected — no clone needed; the install chain is **pinned to the release tag `v1.9.
|
|
355
|
+
**PowerShell one-click script** (copy the whole line, paste, press Enter; pnpm is provisioned automatically, git is auto-detected — no clone needed; the install chain is **pinned to the release tag `v1.9.24`** — review the script before running):
|
|
356
356
|
|
|
357
357
|
```powershell
|
|
358
|
-
irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.
|
|
358
|
+
irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.24/install.ps1 | iex
|
|
359
359
|
```
|
|
360
360
|
|
|
361
361
|
**Or a plain command line** (the machine must already have pnpm and git; also pinned to the tag):
|
|
362
362
|
|
|
363
363
|
```sh
|
|
364
|
-
dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.
|
|
364
|
+
dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.24
|
|
365
365
|
```
|
|
366
366
|
|
|
367
367
|
Without git, use the GitHub tag archive:
|
|
368
368
|
|
|
369
369
|
```sh
|
|
370
|
-
dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.
|
|
370
|
+
dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.24.tar.gz
|
|
371
371
|
```
|
|
372
372
|
|
|
373
373
|
After installing, **restart** `dsh web` (plugin rows, the Typert manifest and the client bundle are all scanned at startup):
|
|
@@ -432,7 +432,7 @@ Workarounds:
|
|
|
432
432
|
|
|
433
433
|
```yaml
|
|
434
434
|
minimumReleaseAgeExclude:
|
|
435
|
-
- dsh-cost-meter@1.9.
|
|
435
|
+
- dsh-cost-meter@1.9.24
|
|
436
436
|
```
|
|
437
437
|
|
|
438
438
|
3. For a one-off CLI operation, forward the pnpm flag: `dsh plugin --profile desktop remove dsh-cost-meter --config.minimum-release-age=0` (or add `--trust-lockfile` when only lockfile verification fails). Both flags were verified against pnpm 11.28.5 in a temporary profile.
|
package/README.zh-CN.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
**DeepSeek Harness 会话费用统计插件(界面中英双语)**
|
|
8
8
|
|
|
9
|
-
[](https://github.com/Han-1413141/dsh-cost-meter)
|
|
10
10
|
[](https://www.npmjs.com/package/dsh-cost-meter)
|
|
11
11
|
[](https://dshfind.com/zh/plugins/Han-1413141/dsh-cost-meter?ref=badge)
|
|
12
12
|
[](LICENSE)
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
|
|
17
17
|
</div>
|
|
18
18
|
|
|
19
|
-
**v1.9.
|
|
19
|
+
**v1.9.24** 新增 dsh-connect-workbuddy 积分读取,支持国内版与国际版,并沿用 WorkBuddy 套餐分类。
|
|
20
20
|
|
|
21
21
|
**宿主要求:DSH 0.2.0 起支持** · 适配目标 **0.2.1-rc.2**(npm `next`)。完整声明、历史记录与安装排障见下方展开项。
|
|
22
22
|
|
|
23
|
-
更新说明:[v1.9.
|
|
23
|
+
更新说明:[v1.9.24](docs/update-notes-1.9.24.md#中文)。更新后完全重启 DSH。
|
|
24
24
|
|
|
25
25
|

|
|
26
26
|
|
|
@@ -352,22 +352,22 @@ Node.js 20 请改用 `npm install -g pnpm@10`。版本要求见 [pnpm 官方安
|
|
|
352
352
|
dsh plugin --profile web add dsh-cost-meter
|
|
353
353
|
```
|
|
354
354
|
|
|
355
|
-
**PowerShell 一键脚本**(复制整行粘贴回车;自动补齐 pnpm、自动探测 git,无需克隆仓库;安装链**固定到发布 tag `v1.9.
|
|
355
|
+
**PowerShell 一键脚本**(复制整行粘贴回车;自动补齐 pnpm、自动探测 git,无需克隆仓库;安装链**固定到发布 tag `v1.9.24`**,建议先下载审阅再运行):
|
|
356
356
|
|
|
357
357
|
```powershell
|
|
358
|
-
irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.
|
|
358
|
+
irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.24/install.ps1 | iex
|
|
359
359
|
```
|
|
360
360
|
|
|
361
361
|
**或直接命令行**(机器上需已有 pnpm 与 git;同样固定到 tag):
|
|
362
362
|
|
|
363
363
|
```sh
|
|
364
|
-
dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.
|
|
364
|
+
dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.24
|
|
365
365
|
```
|
|
366
366
|
|
|
367
367
|
没有 git 时可用 GitHub tag 打包直链:
|
|
368
368
|
|
|
369
369
|
```sh
|
|
370
|
-
dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.
|
|
370
|
+
dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.24.tar.gz
|
|
371
371
|
```
|
|
372
372
|
|
|
373
373
|
安装后**重启** `dsh web`(插件行、Typert 清单与客户端 bundle 均在启动时扫描):
|
|
@@ -432,7 +432,7 @@ DSH **0.2.1-rc.1 / 0.2.1-rc.2** 宿主自带 pnpm **11.28.5**,默认启用内
|
|
|
432
432
|
|
|
433
433
|
```yaml
|
|
434
434
|
minimumReleaseAgeExclude:
|
|
435
|
-
- dsh-cost-meter@1.9.
|
|
435
|
+
- dsh-cost-meter@1.9.24
|
|
436
436
|
```
|
|
437
437
|
|
|
438
438
|
3. 仅本次操作用 CLI 透传 pnpm 参数:`dsh plugin --profile desktop remove dsh-cost-meter --config.minimum-release-age=0`;若只是 lockfile 校验阶段失败,可改用 `--trust-lockfile`。这两个参数已在本机 pnpm 11.28.5 临时 Profile 上实测可用。
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -31,6 +31,8 @@ SOFTWARE.
|
|
|
31
31
|
|
|
32
32
|
Adapted from [corrinehu/dsh-workbuddy-connect](https://github.com/corrinehu/dsh-workbuddy-connect), `src/auth.ts` and `src/upstream.ts`. Local credentials are read only; this plugin does not refresh tokens.
|
|
33
33
|
|
|
34
|
+
The additional usage-route compatibility is based on the public API of [dingminhua/dsh-connect-workbuddy](https://github.com/dingminhua/dsh-connect-workbuddy/tree/2c1626b8dc46e16561924b76ac6cd86b4272e45d) 4.13.1 (`src/status-paths.ts`, `src/web-status.ts`; MIT, Copyright (c) 2026 LaoDing). Tests execute its published route with synthetic dependencies; its credential and account-management implementation is not included in this package.
|
|
35
|
+
|
|
34
36
|
MIT License
|
|
35
37
|
|
|
36
38
|
Copyright (c) 2026 Corrine Hu
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# v1.9.24
|
|
2
|
+
|
|
3
|
+
## 中文
|
|
4
|
+
|
|
5
|
+
- **支持 dsh-connect-workbuddy 积分。** 在“费用 → 额度”启用 WorkBuddy 后,可以读取 `dsh-connect-workbuddy` 国内版、国际版当前已选账号的剩余积分与最近到期时间。继续兼容原 `dsh-workbuddy-connect`,已有用户无需改配置。
|
|
6
|
+
- **兼容不同登录状态。** 原连接插件没有可用积分时,继续尝试新插件。新插件国内版未登录或已关闭时,查询国际版;显示单个已选账号的积分,不累加账号池。零积分正常显示,登录拒绝、账号选择失效和查询失败显示对应提示。
|
|
7
|
+
- **国际渠道计入套餐。** `workbuddy-global` 与 `workbuddy-ai` 都沿用 WorkBuddy 的 Plan/API 设置。升级启动时修正历史 API 分类,保留原金额、各币种记录、历史价格、Token 与调用数,模型级覆盖仍优先。
|
|
8
|
+
|
|
9
|
+
凭据解密与登录续期由连接插件处理。费用插件只读取当前 DSH 的本地状态接口,不复制令牌,也不调用模型探测、签到、账号刷新或账号导出接口。更新后完全退出并重启 DSH,再刷新 WorkBuddy 积分。
|
|
10
|
+
|
|
11
|
+
接口参考:[dingminhua/dsh-connect-workbuddy 4.13.1](https://github.com/dingminhua/dsh-connect-workbuddy/tree/2c1626b8dc46e16561924b76ac6cd86b4272e45d),以已发布版本的实际 usage 路由验证国内、国际、零积分、到期时间和失败响应;验证使用合成账号与积分,不连接真实账号。
|
|
12
|
+
|
|
13
|
+
## English
|
|
14
|
+
|
|
15
|
+
- **Read credits from dsh-connect-workbuddy.** Enable WorkBuddy under Cost → Quota to read the selected CN/global account's remaining credits and nearest expiry. Existing dsh-workbuddy-connect support and configuration remain available.
|
|
16
|
+
- **Handle account states.** If the original connector has no usable credits, try the new connector. Fall back to its global region when CN is signed out or disabled. Display one selected account rather than summing its pool; preserve zero balances and report credential, selection and billing failures.
|
|
17
|
+
- **Recognize its international Plan route.** Both workbuddy-global and workbuddy-ai follow WorkBuddy Plan/API settings. Correct historical API attribution at startup while preserving recorded amounts, currencies, prices, tokens and calls. Model overrides retain priority.
|
|
18
|
+
|
|
19
|
+
The connector handles credential decryption and renewal. The cost plugin reads local DSH status routes without copying tokens or invoking model probes, check-ins, account refresh or export. Fully quit and restart DSH after updating, then refresh WorkBuddy credits.
|
|
20
|
+
|
|
21
|
+
Protocol reference: [dingminhua/dsh-connect-workbuddy 4.13.1](https://github.com/dingminhua/dsh-connect-workbuddy/tree/2c1626b8dc46e16561924b76ac6cd86b4272e45d). Verification executes the published usage route with synthetic accounts and credits, covering CN/global, zero, expiry and failures; no real account is contacted.
|
package/lib/client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated from src/client/*.js by node scripts/build.mjs; do not edit.
|
|
2
|
-
window.__ModuleLoader__.load({id:"dsh-cost-meter",factory:De=>{var fa={exports:{}},Ot=fa.exports;Object.defineProperty(Ot,Symbol.toStringTag,{value:"Module"});const Me=De("react"),{Tooltip:$}=De("@deepseek-ai/dsh-client-ui-primitives"),ft=!1,Sn='var(--dsw-alias-~.cm-~background:~align-items:center~font-size:~border-radius:~display:flex;~flex-direction:column;~white-space:nowrap~padding:~min-width:~font-weight:600~overflow:hidden~text-overflow:ellipsis~justify-content:~font-variant-numeric:tabular-nums~line-height:~max-width:~display:inline-flex;~box-sizing:border-box~cursor:pointer~gap:~border:~flex-wrap:wrap~flex:none~display:grid;~width:100%~margin:~position:relative;~var(--dsh-frame-top-clearance,0px)~height:100%;~text-align:right~overflow-wrap:anywhere~transform:translate(-50%);~grid-template-columns:1fr~grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));~position:absolute;~font:inherit;~font-weight:~overscroll-behavior:contain~flex-wrap:nowrap;~user-select:none~padding-bottom:env(safe-area-inset-bottom)~display:~flex:0 1 auto;~overflow:auto;~margin-top:4px~left:50%;~border-right:5px solid transparent;~flex-shrink:0~border-left:5px solid transparent;~width:auto~height:8px~transform:translate(-50%,-50%);~grid-column:1/-1~z-index:2~-webkit-app-region:no-drag;~var(--cm-opaque-base,#fff)~margin-top:6px~height:4px~transition:left .4s ease;~transition:top .4s ease;~grid-auto-flow:column;~outline:none~border-color:#34a853~height:6px;~pointer-events:auto;~var(--cm-dialog-top)~width:40px;~outline-offset:1px~text-align:center;~margin-top:10px;~overflow-x:auto~position:fixed;~top:50%;~z-index:9999;~align-items:~height:12px;~height:22px;~height:56px;~content:"";~inset:auto;~opacity:0;~opacity:1;~width:8px;'.split("~"),ba='Ɓsection Ɓtabs>Ɓtab{ƒƃ;Ǝcenter;Ɠ;min-height:32px;Ɖ6px 10px;ƛ0;ƥƄ13px;Ɛ20px;vertical-align:middle}Ɓpeak-alert{Ʒ147483647;max-height:calc(100dvh - 32px);ƭƧ}Ɓpeak-alert,Ɓpeak-alert *{-webkit-app-region:no-drag}Ɓpeak-alert Ɓpeak-alert-actions{ƜƘ}Ɓpeak-alert Ɓpeak-alert-actions button{pointer-events:auto}@property --cm-dialog-top{syntax:"<length>";inherits:true;initial-value:0px}Ɓstat-dialog{--cm-dialog-top:var(--dsh-frame-chrome-top,Ɲ);inset:ǃ 0 0 0;ƛauto;width:min(1000px,94vw);Ƒcalc(100vw - 32px);max-height:calc(100vh - ǃ - 32px);ƌ;Ɠ;Ɖ0;ƅ16px;Ɩ1px solid ƀborder-l1);color:ƀlabel-primary);Ƃƀbg-layer-2,ƀbg-base,#fff))}Ɓstat-dialog[open]{Ɔflex-direction:column}Ɓloading{Ɖ24px;min-height:160px;ƙƕ18px}Ɓloading i{height:18px;ƅ5px;Ƃƀbg-layer-1,#f2f3f5)}Ɓloading i:first-child{width:35%}Ɓloading i:last-child{width:65%}Ɓstat-dialog-head{Ɔƃ;Ǝspace-between;ƕ16px;Ɖ16px 24px;border-bottom:1px solid ƀborder-l3);Ƙ}Ɓstat-dialog-head strong{Ƅ15px;Ʀ500}Ɓstat-dialog-body{ƭmin-height:0;Ɖ20px 24px;Ƨ}Ɓstat-dialog::backdrop{inset:var(--dsh-frame-chrome-top,Ɲ) 0 0;Ƃ#0005}Ɓroot{ƬƊ0;Ƒ100%;džƄ12px;Ɛ20px;color:ƀlabel-tertiary);ƈ;ƌ;ƍ}Ɓsession-cost{ƙgrid-template-columns:max-content minmax(0,1fr);Ɗmin-content}Ɓsession-amount{Ƒ40vw;ƌ;ƍ}Ɓsession-detail{Ɗ0;ƌ;ƍ}Ɓchip{ƒƃ;ƕ4px;Ƒ180px;Ɖ0 8px;ǎƅ6px;Ƃƀbg-layer-2);Ƅ12px;Ɛ22px;color:ƀlabel-secondary);ƈ;ƌ;ƍ}Ɓfoot{Ɔƃ;ƕ6px;height:32px;Ɖ0 8px;ƅ8px;Ƅ12px;color:ƀlabel-secondary);ƈ;ƌ}Ɓfoot:hover,Ɓfoot-rail:hover,Ɓcorner-chip:hover,Ɓqchip:hover,Ɓtab:hover,Ɓbtn:hover{Ƃƀinteractive-bg-hover)}Ɓfoot-rail{ƚ;Ǝcenter;Ɖ0;Ƅ13px;Ƌ;color:ƀlabel-primary)}Ɓnum{Ə}Ɓgo-rail{Ƅ11px;Ʀ700;color:ƀlabel-primary)}Ɓgo-list{ƆƇƕ10px}Ɓgo-row{Ɔƃ;ƕ8px;Ƅ12px}Ɓgo-label{Ƙ;width:88px;color:ƀlabel-secondary)}Ɓgo-bar{flex:1;ǁƅ3px;Ƃƀinteractive-bg-hover);ƌ}Ɓgo-fill{ƞƅ3px;Ƃƀbrand-primary)}Ɓgo-num{Ƙ;Ɗ44px;Ɵ;Ƌ;Ə}Ɓgo-reset{Ƙ;Ƒ230px;Ƅ11px;color:ƀlabel-tertiary);ƈ;ƌ;ƍ}Ɓgo-time{Ƅ11px;color:ƀlabel-tertiary)}Ɓgo-row.main Ɓgo-label{Ƌ;color:ƀlabel-primary)}Ɓcorner{ƒƬƗ;Ǝcenter;ƃ;ƕ6px;Ɗ0;Ƒ100%}Ɓcorner-chip{ƒƃ;height:20px;Ɖ0 8px;ƅ6px;Ƃƀbg-layer-2);Ƅ11px;Ɛ20px;color:ƀlabel-secondary);ƈ;Ə}Ɓqstrip{ƆƗ;Ǝcenter;ƃ;ƕ6px;ƚ;Ƒvar(--dsh-chat-content-width,720px);ƛ0 auto;Ɠ;Ɖ0 calc(var(--dsh-composer-side-clearance,0px) + 16px)}Ɓqchip{ƒƃ;ƕ6px;ǎƉ0 8px;ƅ6px;Ƃtransparent;Ƅ11px;Ɛ22px;color:ƀlabel-secondary);ƈ;Ə;cursor:default}Ɓqchip Ɓqlabel{color:ƀlabel-primary);Ƌ}Ɓqchip Ɓqbar{ƫblock;width:44px;ƻ;ƅ2px;Ƃƀborder-l1);ƌ;Ƙ}Ɓqchip Ɓqfill{ƫblock;ƞƅ2px;Ƃƀstate-ok-primary,#3ba272)}Ɓqchip Ɓqseg{ƒƃ;ƕ4px}Ɓqchip Ɓqsep{width:1px;ǍƂƀborder-l1);Ƙ}Ɓqchip Ɓqtext{color:ƀlabel-secondary)}Ɓqchip.warn Ɓqfill{Ƃƀstate-warn-primary)}Ɓqchip.over Ɓqfill{Ƃƀstate-error-primary)}Ɓqchip.action{Ɣ;Ʃ;ƿ}Ɓqchip.action:focus-visible{box-shadow:0 0 0 2px ƀbrand-primary)}Ɓqchip.action:active{transform:translateY(.5px)}Ɓplan-provider{ƆƇƕ8px}Ɓplan-provider+Ɓplan-provider{margin-top:14px}Ɓplan-provider-name{Ɔƃ;ƕ8px;Ƅ13px;Ƌ}Ɓplan-updated{Ƅ11px;Ʀ400;color:ƀlabel-tertiary)}Ɓplan-tag{Ƙ;margin-left:6px;Ɖ0 6px;ƅ999px;Ɩ1px solid ƀborder-l1);Ƅ10px;Ɛ16px;color:ƀstate-warn-primary)}Ɓplan-reset,Ɓplan-method{Ƅ11px;color:ƀlabel-tertiary)}Ɓqguide{--cm-guide-top:var(--dsh-frame-overlay-top,calc(var(--dsh-frame-chrome-top,Ɲ) + 18px));ljǑƛ0;top:max(var(--cm-guide-top),env(safe-area-inset-top,0px));ǂƸƯơNjƑ440px;width:calc(100% - 32px);Ɩ1px solid ƀborder-l1);ƅ12px;Ƃƀbg-layer-2);box-shadow:0 8px 28px #0000002e;Ɖ14px 16px;Ƅ13px;color:ƀlabel-primary);ƆƇƕ8px}Ɓqguide h4{ƛ0;Ƅ13px;Ƌ}Ɓqguide p{ƛ0;Ƅ12px;Ɛ1.6;color:ƀlabel-secondary)}Ɓqguide Ɓbuttons{Ɔƕ8px;Ǝflex-end}Ɓsection{ƆƇƕ20px;Ɖ4px 2px 24px;Ƅ13px;color:ƀlabel-primary)}Ɓcards{ƙƣƕ12px}Ɓoverview-grid{container:cm-overview / inline-size;Ɗ0}Ɓoverview-grid>Ɓcards{grid-template-columns:repeat(var(--cm-overview-count,3),minmax(0,1fr))}Ɓoverview-grid Ɓcard{Ɗ0;ƆƇƕ6px;Ɖ12px 14px}Ɓoverview-grid :is(Ɓcard-title,Ɓcard-sub){ƛ0}Ɓoverview-grid Ɓcard-value{Ɛ1.35;Ə;Ơ}Ɓoverview-grid Ɓcard-sub{Ɛ1.5;Ơ}@container cm-overview (Ƒ460px){Ɓoverview-grid>Ɓcards{Ƣ}}Ɓcards-toggle{Ɔƃ;ƕ6px;ƛ-6px 2px 0 auto;width:fit-content;Ƅ12px;color:ƀlabel-tertiary);Ɣ;Ʃ}Ɓcards-toggle:hover{color:ƀlabel-primary)}Ɓcards-toggle input{ƛ0;Ɣ}Ɓcard,Ɓbudget{Ɩ1px solid ƀborder-l1);ƅ12px;Ɖ14px 16px;Ƃƀbg-layer-1)}Ɓcard-title{Ƅ12px;color:ƀlabel-tertiary);ƛ0 0 8px}Ɓcard-value{Ƅ20px;Ɛ28px;Ƌ}Ɓcard-sub{Ƅ12px;color:ƀlabel-tertiary);Ʈ}Ɓh{Ƅ13px;Ƌ;ƛ0}Ɓcollapse-h{Ɔƃ;ƕ8px;Ƃnone;Ɩnone;Ɖ0;ƛ0;Ɣ;color:inherit;ƥtext-align:left}Ɓcollapse-h:hover Ɓh{color:ƀinteractive-text-hover,ƀlabel-primary))}Ɓcaret{Ƙ;width:0;height:0;Ʋưborder-top:6px solid ƀlabel-secondary);transform:rotate(-90deg);transition:transform .15s ease}Ɓcaret.open{transform:rotate(0)}Ɓcollapse-body{ƆƇƕ12px;margin-top:12px}Ɓtoolbar{ƆƎflex-end;ƃ;ƕ10px}Ɓtoolbar Ɓfield{flex-direction:row;ƃ;ƕ8px}Ɓtoolbar Ɓfield label{ƛ0;Ƅ12px;color:ƀlabel-tertiary)}Ɓtoolbar Ɓinput{Ɗ150px;Ɖ4px 10px}Ɓtabs-row{Ɔƃ;Ǝspace-between;ƕ12px;Ɨ;border-bottom:1px solid var(--dsh-alias-border-l1);padding-bottom:10px}Ɓtabs{Ɔƃ;ƕ4px;Ɨ}Ɓtab{ƥƄ13px;color:ƀlabel-secondary);Ƃtransparent;Ɩnone;ƅ8px;Ɖ6px 14px;Ɣ;ƈ}Ɓtab.active{Ƃƀstate-business-primary);color:ƀlabel-primary-inverted);Ƌ}Ɓtabs-row Ɓmsg{Ɖ2px 10px}Ɓtabs-row>Ɓhint,Ɓtabs-row>Ɓmsg{margin-inline-start:auto}Ɓnote{Ƅ12px;color:ƀlabel-tertiary);ƛ0}Ɓtable{ƚ;border-collapse:collapse;Ƅ12px}Ɓtable th,Ɓtable td{text-align:left;Ɖ7px 10px;border-bottom:1px solid ƀborder-l1);ƈ}Ɓtable th{color:ƀlabel-tertiary);Ʀ500}Ɓtable td.num,Ɓtable th.num{Ɵ;Ə}Ɓtable tr:last-child td{border-bottom:none}Ɓtable trƁrow-click{Ɣ}Ɓtable trƁrow-click:hover td{Ƃƀbg-hover,rgba(127,127,127,.08))}Ɓsess-title{Ƒ260px;ƌ;ƍ;ƈ}Ɓsess-id{Ƅ11px;font-family:ui-monospace,Consolas,monospace;color:ƀlabel-tertiary)}Ɓempty{Ƅ12px;color:ƀlabel-tertiary);Ɖ8px 0}Ɓscroll{max-height:320px;ƭƖ1px solid ƀborder-l1);ƅ10px}Ɓgrid{ƙƣƕ12px}Ɓfield{ƆƇƕ6px;Ɗ0}Ɓfield label{Ƅ12px;color:ƀlabel-secondary)}Ɓinput,Ɓinput option,Ɓinput optgroup{color:ƀlabel-primary);Ƃƀbg-base)}Ɓinput{ƥƄ13px;Ɩ1px solid ƀborder-l1);ƅ8px;Ɖ6px 10px;ƿ}Ɓinput:is(select){color-scheme:light dark}Ɓinput:is(select) :is(option,optgroup){color:ƀlabel-primary)!important;Ƃƀbg-base)!important;Ƃrgb(from ƀbg-base) r g b / 1)!important}Ɓinput:focus{border-color:ƀstate-business-primary)}Ɓinput.narrow{Ƒ120px}Ɓrange-row{Ɔƃ;ƕ10px}Ɓrange{flex:1;Ɗ0;accent-color:ƀstate-business-primary)}Ɓrange-value{Ƙ;Ɗ44px;Ƅ12px;color:ƀlabel-tertiary);Ɵ}Ɓcheck{Ɔƃ;ƕ8px;Ƅ13px;color:ƀlabel-primary);Ɣ}Ɓpricing-page,Ɓpricing-content{ƙƕ20px;Ɗ0}Ɓpricing-heading{Ɔƃ;Ǝspace-between;ƕ12px}Ɓpricing-heading Ɓh{Ƅ16px;margin-bottom:6px}Ɓpricing-heading Ɓnote{Ɛ1.6}Ɓpricing-unit{Ʊ;color:ƀlabel-tertiary);Ƅ11px}Ɓpricing-nav{Ɔƕ4px;Ɖ4px;ƅ10px;Ƃƀbg-layer-1);Ɩ1px solid ƀborder-l1)}Ɓpricing-nav-item{flex:1;Ɗ0;ƥcolor:ƀlabel-secondary);Ƃtransparent;Ɩ0;ƅ7px;Ɖ8px 10px;Ɣ}Ɓpricing-nav-item.active{color:ƀstate-business-primary);Ƃƀbg-base);box-shadow:0 1px 3px #0000000d;Ƌ}Ɓpricing-nav-item:focus-visible{outline:2px solid ƀstate-business-primary)}Ɓpricing-tools{ƙƕ16px}Ɓpricing-tool{ƆƇƕ12px;Ɖ16px;Ɩ1px solid ƀborder-l1);ƅ12px;Ɗ0}Ɓpricing-tool>Ɓpeak-panel{Ɖ0;Ɩ0;Ƃnone}Ɓpricing-tool p{Ɛ1.65}@media(Ƒ480px){Ɓpricing-heading{njflex-start;Ƈƕ4px}Ɓpricing-nav-item{Ɖ8px 4px;Ƅ12px}Ɓpricing-tool{Ɖ12px}}Ɓprice-card{Ɩ1px solid ƀborder-l1);ƅ10px;Ɖ12px 14px;ƆƇƕ10px;Ƃƀbg-layer-1)}Ɓprice-head{Ɔƃ;ƕ8px;Ɨ}Ɓprice-name{Ƌ;Ƅ13px;Ơ;Ɗ0;flex:1 1 180px}Ɓprice-legacy{Ƅ11px;color:ƀlabel-tertiary);Ɩ1px solid ƀborder-l1);ƅ999px;Ɖ1px 8px}Ɓprice-locked{Ƅ11px;color:ƀstate-business-primary);Ɩ1px solid ƀstate-business-primary);ƅ999px;Ɖ1px 8px;cursor:help}Ɓprice-row{ƙgrid-template-columns:52px repeat(4,minmax(0,1fr));ƕ8px;ƃ}Ɓprice-row span{Ƅ12px;color:ƀlabel-tertiary)}Ɓprice-row input{ƚ;Ɗ0;Ɠ;Ɖ6px 5px}Ɓprice-multiplier{Ɔƃ;Ǝspace-between;ƕ6px 12px;Ɨ;Ƅ12px;color:ƀlabel-tertiary)}Ɓprice-multiplier label{ƒƃ;ƕ5px;Ɣ}Ɓprice-multiplier input{ƛ0;accent-color:ƀbrand-primary,#4d6bfe)}Ɓprice-row input[aria-invalid=true]{border-color:#d64c4c}Ɓbuttons{ƆƗ;ƕ10px;ƃ}Ɓbtn{ƥƄ13px;color:ƀlabel-primary);Ƃƀbutton-elevated-fill);Ɩ1px solid ƀborder-l1);ƅ8px;Ɖ6px 14px;Ɣ}ƁbtnƁstat-entry{Ƅ12px;Ɛ20px;Ɖ0 6px;Ɗ0;Ƒ100%;ƈ;ƌ;ƍ;Ʊ}@media(Ƒ640px){Ɓstat-header{ƫnone}}Ɓbtn.primary{Ƃƀstate-business-primary);border-color:transparent;color:ƀlabel-primary-inverted)}Ɓbtn.primary:hover{opacity:.88;Ƃƀstate-business-primary)}Ɓbtn.danger,Ɓmsg.err,Ɓbal-line.err,Ɓbal-err{color:ƀstate-error-primary)}Ɓbtn.small{Ɖ3px 10px;Ƅ12px}div:has(>[data-slot="conversation.composer.dock"] Ɓstat-entry){ƨcolumn-ƕ6px}Ɓmsg{Ƅ12px;Ɛ18px;Ɖ8px 12px;ƅ8px;Ɩ1px solid ƀborder-l1)}Ɓmsg.ok{color:ƀstate-success-primary)}Ɓhint{Ƅ12px;color:ƀlabel-tertiary)}Ɓbudget{ƆƇƕ10px}Ɓpeak-alert{ljǑƛ0;Ɠ;ǂƸcolor:ƀlabel-primary);Njwidth:340px;Ƒcalc(100vw - 32px);Ɖ16px;ƅ14px;Ƃƀbg-layer-2);Ɩ1px solid ƀborder-l2);box-shadow:0 14px 36px #00000038;ƆƇƕ8px;Ƅ12px;animation:cm-peak-alert-in .22s cubic-bezier(.2,.8,.2,1)}Ɓpeak-alertƁpeak-alert-corner{right:20px;bottom:20px}Ɓpeak-alertƁpeak-alert-center{NJƯƵanimation-name:cm-peak-alert-in-center}Ɓpeak-alert-peak{border-top:3px solid ƀstate-warn-primary)}Ɓpeak-alert-offpeak{border-top:3px solid ƀstate-info-primary,#3b82f6)}Ɓpeak-alert-badge{ƒƃ;ƕ6px;Ƅ11px;Ƌ;letter-spacing:.4px;text-transform:uppercase}Ɓpeak-alert-badge:before{ǐǔƴ;ƅ50%;ƂcurrentColor;box-shadow:0 0 0 4px color-mix(in srgb,currentColor 16%,transparent)}Ɓpeak-alert-peak Ɓpeak-alert-badge{color:ƀstate-warn-primary)}Ɓpeak-alert-offpeak Ɓpeak-alert-badge{color:ƀstate-info-primary,#3b82f6)}Ɓpeak-alert-title{Ƅ14px;Ƌ;color:ƀlabel-primary)}Ɓpeak-alert-body{color:ƀlabel-secondary);Ɛ1.55}Ɓpeak-alert-actions{ƆƎflex-end;ƕ8px;margin-top:2px}Ɓrow{Ɔƕ8px;ƃ;Ɨ}@keyframes cm-peak-alert-in{0%{ǒtransform:translateY(10px) scale(.98)}to{Ǔtransform:translateY(0) scale(1)}}@keyframes cm-peak-alert-in-center{0%{ǒtransform:translate(-50%,calc(-50% + 10px))}to{Ǔtransform:translate(-50%,-50%)}}Ɓbudget-head{Ɔƃ;Ǝspace-between;ƕ8px}Ɓquota-name{flex:1;Ɗ0}Ɓbudget-bar{ƴ;ƅ999px;Ƃƀbg-layer-3);ƌ}Ɓbudget-fill{ƞƅ999px;Ƃƀstate-business-primary);transition:width .3s ease}Ɓug{ƆƇƕ12px}Ɓug-total{Ƅ13px;color:ƀlabel-primary)}Ɓug-grid{ƙƾgrid-template-rows:repeat(7,auto);ƕ3px;ƚ}Ɓug-cell{ƚ;aspect-ratio:1/1;ƅ3px;Ɠ;Ƃcolor-mix(in srgb,ƀlabel-primary) 8%,transparent);Ɩ1px solid ƀborder-l1)}Ɓug-cell.l1,Ɓug-cell.l2,Ɓug-cell.l3,Ɓug-cell.l4{border-color:transparent}Ɓug-cell.l1{Ƃcolor-mix(in srgb,ƀstate-business-primary) 25%,ƀbg-layer-3))}Ɓug-cell.l2{Ƃcolor-mix(in srgb,ƀstate-business-primary) 50%,ƀbg-layer-3))}Ɓug-cell.l3{Ƃcolor-mix(in srgb,ƀstate-business-primary) 75%,ƀbg-layer-3))}Ɓug-cell.l4{Ƃƀstate-business-primary)}Ɓug-cell.today{outline:1px solid ƀlabel-secondary);Dž}Ɓug-months{ƙƾƕ3px;ƚ;Ƅ10px;color:ƀlabel-tertiary);Ʈ}Ɓug-monthc{ƈ}Ɓbudget-line{Ƅ13px;color:ƀlabel-secondary)}Ɓbudget-line.over{color:ƀstate-error-primary)}Ɓpeak-strip{Ɔƃ;ƕ6px;Ʈ;Ɗ0}Ɓpeak-track{ƜƆflex:1;ǁƊ0;ƅ999px;ƌ;Ɩ1px solid ƀborder-l1);Ƃƀbg-layer-3)}Ɓpeak-segment{ƞflex:1}Ɓpeak-high{Ƃ#ff9800}Ɓpeak-low{Ƃƀstate-business-primary)}Ɓpeak-marker{Ƥtop:0;Ưwidth:2px;ƞƂƀbg-base);box-shadow:0 0 0 1px ƀlabel-tertiary);ơƼƷ}Ɓpeak-chip{Ƅ11px;Ƌ;Ɛ1.2;ƈ;color:ƀlabel-secondary)}Ɓpeak-classic{ƜƆƇƕ5px;ƺ;Ɗ0}Ɓpeak-classic Ɓpeak-track{Ƙ;ƴ}Ɓpeak-classic-marker{Ƥtop:0;Ưwidth:4px;ǍƂƀbg-base);Ɩ1.5px solid #ff9800;box-shadow:0 0 0 1px ƀbg-base),0 0 0 2px ƀlabel-tertiary);ơƼƷ;ƅ2px}Ɓpeak-classic-marker:after{ǐƤtop:-7px;ƯơƲưborder-top:6px solid #ff9800}Ɓpeak-classic.off Ɓpeak-classic-marker{border-color:ƀstate-business-primary)}Ɓpeak-classic.off Ɓpeak-classic-marker:after{border-top-color:ƀstate-business-primary)}Ɓpeak-classic-chip{align-self:flex-start;Ƅ11px;Ƌ;Ɛ1.4;Ƃƀbg-layer-2);Ɩ1px solid ƀborder-l1);ƅ999px;Ɖ2px 8px;ƈ;color:ƀlabel-secondary)}Ɓpeak-strip.peak Ɓpeak-chip,Ɓpeak-classic.peak Ɓpeak-classic-chip,Ɓpeak-rail.peak Ɓpeak-rail-label,Ɓpeak-rail-classic.peak Ɓpeak-rail-classic-label{color:#ff9800}Ɓpeak-strip.off Ɓpeak-chip,Ɓpeak-classic.off Ɓpeak-classic-chip,Ɓpeak-rail.off Ɓpeak-rail-label,Ɓpeak-rail-classic.off Ɓpeak-rail-classic-label{color:ƀstate-business-primary)}Ɓpeak-strip.weekend Ɓpeak-chip,Ɓpeak-classic.weekend Ɓpeak-classic-chip,Ɓpeak-rail.weekend Ɓpeak-rail-label,Ɓpeak-rail-classic.weekend Ɓpeak-rail-classic-label{color:#34a853}Ɓpeak-classic.weekend Ɓpeak-classic-marker{ǀ}Ɓpeak-classic.weekend Ɓpeak-classic-marker:after{border-top-color:#34a853}Ɓpeak-rail{ƆƇƃ;ƕ3px;DŽƓ}Ɓpeak-rail-track{ƜƆƇwidth:6px;Ǐƅ999px;ƌ;Ɩ1px solid ƀborder-l1);Ƃƀbg-layer-3)}Ɓpeak-rail-segment{ƚ;flex:1}Ɓpeak-rail-high{Ƃ#ff9800}Ɓpeak-rail-low{Ƃƀstate-business-primary)}Ɓpeak-rail-marker{Ƥleft:0;NJƚ;height:2px;Ƃƀbg-base);box-shadow:0 0 0 1px ƀlabel-tertiary);transform:translateY(-50%);ƽƷ}Ɓpeak-rail-label{Ƅ10px;Ƌ;Ɛ1.2;ƈ;color:ƀlabel-secondary)}Ɓpeak-rail-classic{ƆƇƃ;ƕ3px;DŽƓ}Ɓpeak-rail-classic-track{ƜƆƇwidth:14px;Ǐƅ999px;Ɩ1px solid ƀborder-l1);Ƃƀbg-layer-3)}Ɓpeak-rail-classic-segment{Ɯƚ;flex:1;ƌ}Ɓpeak-rail-classic-segment.peak{Ƃ#ff9800;ƅ999px 999px 0 0}Ɓpeak-rail-classic-segment.off{Ƃƀstate-business-primary);ƅ0 0 999px 999px}Ɓpeak-rail-classic-marker{ƤƯNJwidth:12px;ƻ;Ƃƀbg-base);Ɩ1.5px solid #ff9800;box-shadow:0 0 0 1px ƀbg-base),0 0 0 2px ƀlabel-tertiary);ƵƽƷ;ƅ2px}Ɓpeak-rail-classic.off Ɓpeak-rail-classic-marker{border-color:ƀstate-business-primary)}Ɓpeak-rail-classic-label{Ƅ10px;Ƌ;Ɛ1.2;ƈ}Ɓpeak-rail-classic.weekend Ɓpeak-rail-classic-marker{ǀ}Ɓgrid-group{grid-column:1 / -1;margin-top:8px;Ƅ12px;Ƌ;color:ƀlabel-tertiary);border-bottom:1px solid ƀborder-l1);padding-bottom:4px}Ɓgrid-group:first-child{margin-top:0}Ɓpeak-preview{margin-top:8px}Ɓtoggle-btn{Ƃnone;Ɩnone;Ɖ0;Ƅ12px;Ƌ;color:ƀstate-business-primary);Ɣ}Ɓtoggle-btn:hover{text-decoration:underline}Ɓcollapsed-note{Ʈ}Ɓcatalog-vendor{LJƄ12px;Ƌ;color:ƀlabel-tertiary);border-bottom:1px solid ƀborder-l1);padding-bottom:2px;Ɔƃ;Ǝspace-between;ƕ8px}Ɓvendor-toggle{Ɣ;Ʃ}Ɓvendor-toggle:hover{color:ƀlabel-secondary)}Ɓvendor-display{ƒƃ;ƕ4px;Ʀ400;Ƅ11px;color:ƀlabel-tertiary);ƈ}Ɓmstats-tabs{Ɔƕ8px;margin-bottom:8px}Ɓmstats-tab{Ƃnone;Ɩ1px solid ƀborder-l1);ƅ999px;Ɖ2px 12px;Ƅ12px;color:ƀlabel-secondary);Ɣ}Ɓmodel-costs Ɓmstats-tab.active{Ƃcolor-mix(in srgb,ƀstate-business-primary) 14%,ƀbg-base));border-color:ƀstate-business-primary);color:ƀlabel-primary);Ƌ}Ɓmstats-h{ƛ10px 0 4px;Ƅ12px;Ƌ;color:ƀlabel-secondary)}Ɓmstats-row{ƙgrid-template-columns:minmax(90px,170px) 1fr auto;ƕ8px;ƃ;Ƅ11px;Ɛ1.7}Ɓmstats-name{ƌ;ƍ;ƈ;color:ƀlabel-secondary)}Ɓmstats-label{ƶ;ƆƗ;ƃ;ƕ6px;ƺ}Ɓmstats-label Ɓmstats-name{flex:1;Ɗ90px}Ɓmstats-label~Ɓmstats-barbg{grid-column:1/3}Ɓmstats-label select{Ƒ100%;Ɗ0}Ɓmstats-barbg{Ɯheight:10px;ƅ999px;Ƃƀbg-layer-3);ƌ;ƫflex}Ɓmstats-bar{ƞƊ0;ƅ999px}Ɓmstats-bar.cost{Ƃ#ff9800}Ɓmstats-bar.hit{Ƃ#34a853}Ɓmstats-bar.value{Ƃ#a142f4}Ɓmstats-seg{ƞƊ0}Ɓmstats-seg.in{Ƃƀstate-business-primary)}Ɓmstats-seg.cache{Ƃ#ff9800}Ɓmstats-seg.out{Ƃ#34a853}Ɓmstats-val{ƈ;color:ƀlabel-secondary)}Ɓmstats-legend{Ɔƕ12px;Ƅ10px;color:ƀlabel-tertiary);ƛ2px 0 4px}Ɓmstats-dot{ƫinline-block;ǔƴ;ƅ2px;margin-right:3px}Ɓmstats-note{LJƄ10px;Ɛ1.6;color:ƀlabel-tertiary)}Ɓmatch-row{Ɔƃ;ƕ8px;Ɖ3px 0;Ƅ12px;Ɨ}Ɓmatch-row Ɓinput{flex:1;Ɗ160px}Ɓbudget-controls{ƙgrid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));ƕ12px}Ɓbbox{Ɩ1px solid ƀborder-l1);ƅ12px;Ɖ8px 10px;Ƃƀbg-layer-1);ƆƇƕ6px;Ɗ148px;Ɠ}Ɓbbox.rail{Ɖ6px;Ɗ0;DŽƃ;Ǝcenter;ƅ10px}Ɓbbox.warn{border-color:ƀstate-warn-primary)}Ɓbbox.over{border-color:ƀstate-error-primary)}Ɓbbox-head{Ɔƃ;Ǝspace-between;ƕ8px}Ɓbbox-label,Ɓbbox-pct{Ƅ12px;Ƌ;color:ƀlabel-primary)}Ɓbbox.warn Ɓbbox-pct{color:ƀstate-warn-primary)}Ɓbbox.over Ɓbbox-pct{color:ƀstate-error-primary)}Ɓbbox-bar{ǁƅ999px;Ƃƀbg-layer-3);ƌ}Ɓbbox-bar.segments{Ɔƴ}Ɓbbox-bar.segments Ɓbbox-fill{Ƙ;ƅ0;height:100%}Ɓbbox-bar.segments Ɓbbox-fill:first-child{ƅ999px 0 0 999px}Ɓbbox-bar.segments Ɓbbox-seg-today{Ƙ;ƞƂ#ff9800}Ɓbbox-bar.segments Ɓbbox-seg-spent{Ƙ;ƞƂƀinteractive-bg-hover);ƅ0 999px 999px 0}Ɓbbox-bar.segments.rev Ɓbbox-fill:first-child,Ɓbbox-bar.segments.rev Ɓbbox-seg-today:first-child{ƅ999px 0 0 999px}Ɓbbox-bar.segments.rev Ɓbbox-fill,Ɓbbox-bar.segments.rev Ɓbbox-fill:last-child,Ɓbbox-bar.segments.rev Ɓbbox-seg-today:last-child,Ɓbbox-bar.segments.rev Ɓbbox-seg-spent:last-child{ƅ0 999px 999px 0}Ɓbbox-bar.segments.rev Ɓbbox-seg-spent{ƅ0}Ɓdir-row{Ɔƃ;ƕ8px;ƺ}Ɓdir-label{flex:1 1 40%;Ƅ12px;color:ƀlabel-secondary)}Ɓdir-row Ɓinput{flex:1 1 60%;Ƴ}Ɓbbox-fill{ƞƅ999px;Ƃƀstate-business-primary)}Ɓbalance-name{ƒƃ;ƕ4px;Ɗ0}Ɓmodel-costs{Ƅ12px}Ɓmodel-costs Ɓbal-label{ƈ}Ɓmodel-top{ƕ4px;Ƒ180px;ƌ;ƍ}Ɓmodel-costs Ɓcollapse-h{Ɗ0;ƚ;ƈ}Ɓmodel-costs Ɓbbox-bar{margin-top:3px}Ɓbal-label{Ɗ0;ƌ;ƍ}Ɓbal-amt{margin-left:auto;Ɵ;Ʊ}Ɓbbox-pctƁbal-amt{color:ƀstate-business-primary)}Ɓbal-link{Ƙ;ƒƃ;Ǝcenter;Ɖ2px;ƅ4px;Ƅ12px;Ɛ16px;color:ƀlabel-tertiary);text-decoration:none;ƿ}Ɓbal-link:hover{color:ƀbrand-primary);Ƃƀinteractive-bg-hover)}Ɓbal-link:focus-visible{box-shadow:0 0 0 2px ƀbrand-primary)}Ɓbbox.warn Ɓbbox-fill,Ɓbbox Ɓbbox-section.warn Ɓbbox-fill,Ɓbbox Ɓmm-row.warn Ɓbbox-fill,Ɓbudget-fill.warn{Ƃƀstate-warn-primary)}Ɓbbox.over Ɓbbox-fill,Ɓbbox-section.over Ɓbbox-fill,Ɓmm-row.over Ɓbbox-fill,Ɓbudget-fill.over{Ƃƀstate-error-primary)}Ɓbbox-line{Ƅ12px;color:ƀlabel-tertiary)}Ɓbbox-rail{Ƅ11px;Ƌ;color:ƀlabel-primary)}Ɓbbox.warn Ɓbbox-pct,Ɓbbox.warn Ɓbbox-rail,Ɓbbox Ɓbbox-section.warn Ɓbbox-pct,Ɓbbox Ɓmm-row.warn Ɓbbox-pct,Ɓmm-row.warn Ɓbbox-label,Ɓcorner-chip.warn,Ɓqchip.warn,Ɓsimple-summary.warn{color:ƀstate-warn-primary)}Ɓbbox.over Ɓbbox-pct,Ɓbbox.over Ɓbbox-rail,Ɓbbox-section.over Ɓbbox-pct,Ɓmm-row.over Ɓbbox-pct,Ɓmm-row.over Ɓbbox-label,Ɓcorner-chip.over,Ɓqchip.over,Ɓsimple-summary.over{color:ƀstate-error-primary)}Ɓbbox-pair{ƆƇƕ0;Ɖ2px 10px}Ɓbbox-pair Ɓbbox-section{ƆƇƕ4px;Ɖ4px 0}Ɓbbox-pair Ɓbbox-bar{ƻ}Ɓbbox-divider{height:1px;Ƃƀborder-l1);ƛ0}Ɓbbox.clickable,Ɓfoot.clickable{Ɣ}Ɓbbox.clickable:hover{border-color:ƀstate-business-primary)}Ɓbbox.clickable:focus-visible,Ɓfoot.clickable:focus-visible{outline:2px solid ƀstate-business-primary);Dž}@keyframes cm-click-refresh-pulse{0%,to{opacity:.55}50%{opacity:1}}Ɓbbox.clickable.busy,Ɓfoot.clickable.busy{animation:cm-click-refresh-pulse 1.1s ease-in-out 2;cursor:progress}Ɓmm{Ɖ8px 10px;ƕ4px}Ɓmm-title{Ƅ12px;Ƌ;color:ƀlabel-primary)}Ɓmm-reset{Ƅ11px;color:ƀlabel-tertiary);ƶ}Ɓcodex-head>Ɓmm-title{Ɗ0;ƌ;ƍ;ƈ}Ɓcodex-resets{Ƙ;Ɵ}Ɓcodex-resets>span{ƫblock}Ɓfooter-stack.compact Ɓbbox[data-cm-display=codex]{grid:auto/1fr}Ɓbbox.rail[data-cm-display=codex] Ɓbbox-rail{Ƒ100%;Ơ;džƄ10px}Ɓgw-switcher{Ɣ;Ʃ;Ƅ11px;Ɖ1px 6px;ƅ999px;Ɩ1px solid ƀborder-l1);Ƃƀbg-layer-2);color:ƀlabel-secondary)}Ɓgw-switcher:hover{Ƃƀinteractive-bg-hover);color:ƀlabel-primary)}Ɓgw-sub{Ƅ11px;color:ƀlabel-tertiary);ƌ;ƍ;ƈ}Ɓmm-row{Ɔƃ;ƕ8px;Ɖ2px 0}Ɓmm-row Ɓbbox-label{Ƙ;Ƴ;Ɗ22px;Ƒ115px;Ʀ400;color:ƀlabel-secondary);Ə;ƈ;ƌ;ƍ;word-break:keep-all}Ɓmm-row Ɓbbox-bar{flex:1;Ɗ40px;height:6px}Ɓmm-row Ɓbbox-pct{Ƙ;Ɗ2.4em;Ɵ;Ə}Ɓmm-row.wide Ɓbbox-label{Ƴ;Ƒ64px;Ƭƈ;ƌ;ƍ}Ɓmm-row.wide Ɓmm-text{flex:1;Ɗ0;Ƅ12px;color:ƀlabel-secondary);Ɵ;Ə;ƈ;ƌ;ƍ}Ɓbal-line{Ƅ13px;color:ƀlabel-secondary)}Ɓbal-line.warn{color:ƀstate-warn-primary,#b45309)}:has(>Ɓfooter-stack),:has(>[data-slot="sidebar.footer.action"]>Ɓfooter-stack){Ɨ}:has(>Ɓfooter-stack.rail),:has(>[data-slot="sidebar.footer.action"]>Ɓfooter-stack.rail){Ƈƨƃ;ƕ6px}Ɓfooter-stack{ƆƘ;order:-1;Ƈƕ6px;ƚ;Ɗ0;Ƒ100%;njstretch;Ɠ}Ɓfooter-stack.rail{ƃ;order:1}Ɓfooter-stack Ɓbbox{ƚ;Ɗ0}Ɓfooter-stack Ɓfoot{ƚ;Ɠ}Ɓfooter-stack Ɓfoot:not(Ɓfoot-rail){Ǝspace-between}Ɓmodel-costs Ɓcollapse-h{ƚ}Ɓmodel-costs Ɓcollapse-h>Ɓbal-amt{margin-left:auto}Ɓfooter-stack.compact Ɓbbox{ƙgrid-template-columns:repeat(2,minmax(0,1fr));column-ƕ12px;row-ƕ2px;ƃ}Ɓfooter-stack.compact Ɓbbox>*{ƶ}Ɓfooter-stack.compact Ɓbbox>Ɓmm-row{grid-column:auto}Ɓfooter-stack.compact Ɓmm-row{Ɗ0;ƕ4px;flex-wrap:nowrap}Ɓfooter-stack.compact Ɓmm-row Ɓbbox-label{ƬƊ0;Ƒ45%;Ƴ}Ɓfooter-stack.compact Ɓmm-row Ɓbbox-bar{Ɗ0;flex:1 1 0}Ɓfooter-stack.simple{ƕ0;max-height:38vh;max-height:min(38dvh,320px);ƭƧ;scrollbar-width:thin;Ɩ1px solid ƀborder-l1);ƅ10px;Ƃƀbg-layer-1)}Ɓfooter-stack.simple>*{Ʊ}Ɓfooter-stack.simple:focus-visible{outline:2px solid ƀstate-business-primary);outline-offset:2px}Ɓfooter-stack.simple Ɓbbox{Ɩ0;ƅ0;Ɖ4px 8px;ƕ2px;Ƃtransparent;box-shadow:inset 0 -1px ƀborder-l1)}Ɓfooter-stack.simple Ɓmm-title{Ƅ11px;Ɛ16px;ƛ0}Ɓfooter-stack.simple Ɓmm-row{ƕ6px;min-height:16px;Ɛ16px;ƛ0;Ɖ0}Ɓfooter-stack.simple Ɓmm-text{Ƅ11px}Ɓfooter-stack.simple>Ɓpeak-strip,Ɓfooter-stack.simple>Ɓpeak-classic{ƛ0;Ɖ4px 8px}Ɓsimple-summary>span{Ɗ0;ƈ;ƌ;ƍ}Ɓfooter-stack.simple Ɓbbox-pct{Ƅ12px;Ɛ18px}Ɓfooter-stack.simple Ɓbbox-bar{ƻ}Ɓfooter-stack.simple Ɓbbox-line{ƫnone}Ɓfooter-stack.simple Ɓfoot{height:26px;Ɖ0 8px}Ɓfooter-stack.simple Ɓpeak-classic{margin-top:2px;ƕ2px}Ɓfooter-stack.simple Ɓpeak-classic-chip{Ɖ0 4px;Ɩ0;Ƃtransparent}Ɓsimple-summary{position:sticky;top:0;z-index:1;Ƃƀbg-layer-1);ƆƎspace-between;ƃ;ƕ8px;Ɖ5px 8px;Ƅ12px;Ƌ;border-bottom:1px solid ƀborder-l1)}Ɓfooter-stack.simple.rail{Ɩ0;Ƃtransparent}Ɓfooter-stack.simple.rail Ɓbbox{Ɖ4px 2px}Ɓfooter-stack.simple Ɓpeak-rail-track,Ɓfooter-stack.simple Ɓpeak-rail-classic-track{height:28px}@media(Ƒ640px){Ɓcards,Ɓgrid,Ɓbudget-controls{Ƣ}}@media(Ƒ1023px){Ɓsection{padding-bottom:calc(16px + env(safe-area-inset-bottom))}Ɓcards,Ɓoverview-grid>Ɓcards,Ɓgrid,Ɓbudget-controls{Ƣ;ƕ8px}Ɓcard{Ɖ10px 12px}Ɓcard-value{Ƅ17px}Ɓcard-sub,Ɓbal-line,Ɓbal-amt{Ơ}Ɓbuttons,Ɓtoolbar,Ɓrow,Ɓbudget-head{Ɨ}Ɓbtn,Ɓtab,Ɓfoot,Ɓcorner-chip{min-height:36px;height:auto}Ɓtabs{ƨLj}Ɓtab{Ƙ}Ɓqstrip{Ɖ0 8px}Ɓqguide{Ƒcalc(100vw - 24px);--cm-guide-top:var(--dsh-frame-overlay-top,calc(var(--dsh-frame-chrome-top,Ɲ) + 10px + env(safe-area-inset-top)))}Ɓpeak-alert{Ƒcalc(100vw - 24px)}Ɓpeak-alertƁpeak-alert-corner{right:12px;left:12px;bottom:calc(12px + env(safe-area-inset-bottom));Ƴ}Ɓfooter-stack{ƪ}Ɓstat-dialog-body{Ɖ14px;padding-bottom:calc(14px + env(safe-area-inset-bottom))}}body[data-dsh-pocket-layout=mobile] :is(Ɓcards,Ɓoverview-grid>Ɓcards,Ɓgrid,Ɓbudget-controls){Ƣ;ƕ8px}body[data-dsh-pocket-layout=mobile] Ɓtabs{ƨLj}body[data-dsh-pocket-layout=mobile] Ɓfooter-stack{ƪ}body[data-dsh-pocket-layout=mobile] :is(Ɓpeak-alert,Ɓqguide){Ƒcalc(100vw - 24px)}body{--cm-opaque-base:#fff}body[data-ds-dark-theme],body[data-theme=dark],html[data-theme=dark] body{--cm-opaque-base:#151517}Ɓsection,Ɓstat-dialog,Ɓqguide,Ɓpeak-alert,Ɓfooter-stack.simple{Ƃƹ;Ƃrgb(from ƀbg-layer-2,ƀbg-base,#fff)) r g b / 1)}Ɓtoday-values{ƒƗ;Ǝflex-end;ƕ2px 8px;Ɗ0;Ƒ100%}Ɓtoday-values>span{ƈ}Ɓtoday-values[data-both=true]>[data-cm-today=tokens]{Ƅ11px;color:ƀlabel-secondary)}Ɓsimple-summary{Ƃƹ;Ƃrgb(from ƀbg-layer-1,ƀbg-base,#fff)) r g b / 1)}'.replace(/[ƀ-ǿ]/g,e=>Sn[e.charCodeAt(0)-384]),ga="dsh-cost-meter/client.css";if(typeof document<"u"&&document.head!==void 0){const e=document.querySelector("style[data-plugin-css="+JSON.stringify(ga)+"]");if(e?.textContent!==ba){const n=e??document.createElement("style");n.dataset.plugin="dsh-cost-meter",n.dataset.pluginCss=ga,n.textContent=ba,e===null&&document.head.appendChild(n)}}const vn="sessionCostTitle|sessionDetailTokens|sessionDetailCache|cost|sessionLine|sessionLineCompact|sessionCostCompact|quotaUnlimited|pricingCnyHint|balanceQueryFailed|unknownError|balance|queryFailed|balanceTitle|reconcileLabel|totalBalance|grantedToppedUp|updatedAt|budgetOf|usedOf|todayShare|monthTotal|budget|todayCostTitle|todayTokensTitle|tokensUnit|callsTokens|monthCost|totalCost|today|sidebarTodayMetric|sidebarTodayCost|sidebarTodayTokens|periodDay|periodMonth|periodAll|periodCustomRange|noHistory|colDate|colCalls|colInTok|colCacheTok|colOutTok|colCost|noSessionsToday|colSession|enableBudget|budgetAmountLabel|budgetPeriodLabel|startDate|endDate|rangeText|budgetDisabledNote|budgetStatus|overLimit|nearLimit|legacyModel|defaultFallback|remove|tierBase|tierOffPeak|tierPeak|balanceApiKey|balanceKeyHint|balanceLine|balanceQueryFailedHint|balanceNotQueried|accountBalance|refreshing|refreshBalance|customBalanceTitle|customBalanceAdd|tokenRhythmBalanceAdd|tokenRhythmBalanceNote|aliyunBalanceAdd|aliyunBalanceNote|customBalanceConfigNote|customBalanceLabelZh|customBalanceLabelEn|customBalanceUrl|customBalanceUrlHint|customBalanceHttp|workBuddyBalanceAdd|workBuddyBalanceNote|customBalanceMethod|customBalanceHeaders|customBalanceBody|customBalanceBodyNote|customBalanceExtract|customBalanceDisplayLabel|customBalanceRefreshInterval|customBalanceUnitLabel|customBalanceConvert|customBalanceConvertNote|balanceBarRemaining|balanceBarToday|balanceBarSpent|balanceShowProgressBar|barDirectionsTitle|barDirectionsHint|barDirection_balance|barDirection_budget|barDirection_go|barDirection_plan|barDirectionRemaining|barDirectionUsed|balanceBudgetCapLabel|balanceBudgetCapHint|customBalanceInvalidJson|customBalanceHeadersVarNote|customBalanceAllowedHosts|customBalanceAllowedHostsHint|customBalanceCredentialsTitle|customBalanceCredentialsHint|customBalanceNoPlaceholders|enable|customBalanceLine|customBalanceRemaining|refreshCustomBalance|goQuotaTitle|goQuotaRowLabel|goWindowRolling|goWindowWeekly|goWindowMonthly|goResetAt|resetReached|resetDays|resetHours|resetMinutes|quotaUsed|quotaRemaining|goQuotaPercent|goQuotaFetchedAt|goQuotaDisplayLabel|goQuotaRefreshIntervalLabel|goQuotaRefreshMinutesUnit|goQuotaKeyLabel|goMainLabel|goDetailLabel|credentialConfiguredOf|credentialNotConfigured|credentialSave|credentialEdit|credentialClear|credentialSaving|credentialInputHint|secretMigrationPending|budgetDetailLabel|refreshGoQuota|goQuotaNotQueried|codingPlanAnthropic|codingPlanZai|codingPlanMinimax|codingPlanMinimaxTitle|minimaxOrigin|minimaxOriginNote|codingPlanRemain5h|codingPlanRemain7d|balanceRechargeLink|codexQuotaTitle|codexQuotaEnable|codexQuotaFive|codexQuotaWeek|codexQuotaReset|codexQuotaUnavailable|codexQuotaEnabled|codexQuotaSidebar|codexQuotaStrip|includeSubagentCost|gatewayQuotaEmpty|codingPlanDisplayLabel|codingPlanDisplayNote|codingPlanKeyLabel|codingPlanRefreshIntervalLabel|refreshCodingPlan|loginCodingPlan|loggingIn|codingPlanNotQueried|gatewayQuotaTitle|gatewaySourceAdd|gatewaySourceLabel|gatewaySourceBaseURL|gatewaySourceDisplay|gatewaySourceRefreshInterval|gatewaySourceAllowlist|gatewaySourceCredential|gatewaySourceStatus|gatewaySourceUnsupported|gatewaySourceUnknown|gatewaySourceNoAccounts|gatewaySourceFetchedAt|gatewaySwitchAccount|gatewayOnlyGemini|refresh|quotaEnableFirst|quotaRefreshReady|quotaRemove|quotaSectionNote|codingPlanDisabledNote|goQuotaDisabledNote|cornerLabel|cornerEnabledLabel|cornerGoRolling|cornerGoWeekly|cornerGoMonthly|cornerBudget|goShortRolling|goShortWeekly|goShortMonthly|goShortDaily|budgetShort|ledgerReadFailed|readingLedger|ledgerUnavailable|syncFailed|historyCleared|clearFailed|peakOff|peakNotEffective|peakActive|peakNotice|offPeakActive|weekendAllOffPeak|weekendChip|weekendShort|holidayAllOffPeak|holidayChip|holidayShort|peakHolidaysLabel|weekendRuleNote|peakShort|offPeakShort|peakStyleLabel|peakStyleCompact|peakStyleClassic|peakAlertLabel|peakAlertAheadLabel|peakAlertTargetLabel|peakAlertTargetPeak|peakAlertTargetOffPeak|peakAlertTargetBoth|peakAlertTitlePeak|peakAlertTitleOffPeak|peakAlertBody|peakAlertPhasePeak|peakAlertPhaseOffPeak|peakAlertBtn|peakAlertBadgePeak|peakAlertBadgeOffPeak|peakAlertPositionLabel|peakAlertPositionCorner|peakAlertPositionCenter|peakAlertWebNotifyLabel|peakAlertWebNotifyHint|peakAlertPreviewLabel|peakAlertPreviewPeak|peakAlertPreviewOffPeak|peakAlertPreviewTag|peakPanelTitle|peakNoticeHiddenHint|groupGeneral|groupMoney|groupSidebar|sidebarSimple|sidebarSimpleNote|sidebarSimpleTitle|sidebarSimpleBody|sidebarSimpleOn|sidebarSimpleOff|sidebarSimpleError|closeGuide|todayBudget|sidebarStyleLabel|sidebarStyleStandard|sidebarStyleCompact|restorePriceMatches|removePriceMatchHint|groupCorner|groupDetail|unmountBtn|catalogUnpriced|priceLockBadge|priceLockHint|priceLockRelease|modelStatsTitle|modelsTitle|modelsCount|modelsOther|models_enabled|models_defaultOpen|models_remember|models_tokens|models_shares|models_dock|models_period|models_summary|models_position|models_topN|models_refreshSeconds|modelsTotal|modelsTop|modelsFirst|modelsAfter|modelsLast|modelStatsToday|modelStatsHistory|modelStatsCostH|modelStatsTokensH|modelStatsHitH|modelStatsHitUnreported|modelStatsHitUnreportedTip|modelStatsValueH|modelStatsInput|modelStatsCache|modelStatsOutput|modelStatsEmpty|modelStatsBlended|modelStatsNote|modelStatsLegacy|sessionLineSplit|sessionLineSplitCompact|costChipPlan|sessionDetailPlan|planStatsTitle|planStatsEmpty|planStatsWindow|planStatsPercent|planStatsLocal|planStatsPer1|planStatsFull|planStatsResets|planStatsMethodSample|planStatsMethodLive|planStatsMethodNone|planStatsMethodSampleAt|planStatsConfidenceLow|planStatsCurveTitle|planStatsDaily|planStatsWeekly|planStatsMonthly|planStatsCurveEmpty|planStatsBarTip|planStatsNote|billingClassLabel|billingClassPlan|billingClassAuto|billingClassApi|catalogDisplayLabel|catalogDisplayHint|priceTableDisplayHint|priceMultiplySeparate|priceMultiplyHint|priceMultiplyAll|priceMultiplySingle|priceMultiplyInvalid|priceMatchLabel|priceMatchAuto|priceMatchExact|priceMatchNote|unmatchedTitle|unmatchedHint|overrideTargetDefault|overrideRemove|overrideTargetLocal|matchedTitle|matchedHint|matchedKeepAuto|overrideNone|mountedSuffix|flatInput|flatCached|flatCacheWrite|cacheWriteFallback|flatOutput|deepseekMountedHeader|codingPlanKimi|codingPlanOpenrouter|codingPlanSiliconflow|codingPlanCommandcode|codingPlanClinepass|codingPlanScnet|codingPlanVolcengine|codingPlanQwen|codingPlanMimo|wbT|wbH|codingPlanFactory|codingPlanOpendesign|opendesignWorkspace|opendesignNote|factoryPool|factoryPoolBoth|factoryOrg|mimoWindowPlan|mimoWindowCompensation|codingPlanWindowBalance|qwenSource|qwenSourceLocal|qwenSourceCli|qwenSourceBailian|qwenCliNote|qwenBailianNote|qwenPlanCreditsLabel|qwenPlanStartLabel|qwenRatesLabel|qwenRatesModelPlaceholder|qwenRatePlaceholder|qwenRate_input|qwenRate_cachedInput|qwenRate_output|qwenRateDraftNote|qwenRatesAdd|qwenLocalNote|scnetPlanCreditsLabel|scnetPlanStartLabel|scnetLocalNote|volcengineAccessKeyIdLabel|volcengineSecretAccessKeyLabel|volcengineNote|volcengineAccessKeyPlaceholder|volcengineSecretPlaceholder|countdownHoursOnly|countdownHourMinute|countdownMinute|nextOffPeakIn|nextPeakIn|peakSummary|noPeakWindows|unknown|cardToday|cardMonth|cardTotal|cardTotalSub|externalUsage|combinedUsage|externalStale|externalHistory|cardsFootnote|timezoneHint|todaySessions|historyExpandHint|historySessionsLoading|historyNoSessions|historySessionsError|sessionRankTitle|sessionRankHint|sessionRankEmpty|sessionRankLoading|sessionRankError|sessionRankLimit|showSessionIdLabel|cardsTogglePlanTotal|cardsTogglePlanTotalHint|hideOfficialBalanceLabel|hideTodayCostLabel|hideSessionCostHeader|hideSessionCostDock|hideTurnCost|sessionRankSort|sessionSortCostDesc|sessionSortCostAsc|sessionSortTimeDesc|sessionSortTimeAsc|sessionSortRecent|history|usageTitle|usageTotal|usageDay|usageEmpty|usageSectionLabel|usagePositionLabel|usagePositionCost|usagePositionGeneral|usagePositionSection|displaySettings|tabOverview|tabQuotas|tabUsage|tabPricing|tabDisplay|historyDataTitle|positionLabel|positionDock|positionHeader|off|quotaStripGroup|quotaStripEnable|quotaStripShowBudget|quotaStripShowGo|quotaStripShowPlans|quotaStripNote|quotaStripGuideTitle|quotaStripGuideBody|quotaStripGuideOn|quotaStripGuideOff|clickToRefresh|balanceClickGuideTitle|balanceClickGuideBody|balanceClickGuideOk|sidebarLabel|sidebarOn|currencyLabel|currencyCny|currencyUsd|currencyEur|symbolLabel|rateLabel|decimalsLabel|balanceDisplayLabel|balanceSidebar|balanceSettings|balanceBoth|refreshIntervalLabel|peakEnabledLabel|peakNoticeLabel|badgeNote|priceTableTitle|pricingCurrencyLabel|pricingCurrencyUsd|pricingCurrencyCny|pricingCurrencyNote|priceTableNote|datedPriceNote|defaultModelId|newModelPlaceholder|addModel|dataSync|saving|autoSaveFailed|autoSavedAt|autoSaveHint|confirmFetch|apply|cancel|syncFromDocs|syncScopeNote|confirmReset|importLegacy|confirmImportLegacy|legacyImportFailed|legacyImportNote|confirmClear|clearAllHistory|lastSync|neverSynced|source|sourceOfficial|sourceBundled|languageLabel|localeAuto|localeZh|localeEn|sectionLabel|rpcFailed|rpcSyncFailed|rpcBalanceFailed".split("|"),Cn="额度|显示|amount|余额|价格|费用|会话|quota|模型|session|DeepSeek|off-peak|official|输入|缓存|计费|OpenCode Go|Plan|balance|display|prices|刷新|官方|time|OpenDesign|tokens|自动|自定义|weekends and Chinese public holidays are|预算|Token|the|调用|message|侧边栏|input|output|今日|设置|credential|凭据|Balance|cache|用量|金额|Enable|Refresh interval|中国公众假期全天谷价|同步|失败|峰时高价时段显著提示|开启|时段|details|refresh|calls|cost|历史|峰时|已用|输出|and|price|usage|BillingCenterReadOnlyAccess|sidebar|以同一系统账号运行|Codex|Settings|budget|currency|interval|position|settings|保存|启用|图框详细信息|当前|Credits|Refresh|account|WorkBuddy2API|period|本地|留空|model|optional|右下角|Budget|DescribeBillingAccount|credits|failed|history|位置|分钟|匹配|命中|币种|数据|查询|记录|谷时|账本|配置|dsh-workbuddy-connect|Coding|Strip includes|rates|剩余|小时|峰谷|提示|时间|更新|统计|订阅|读取|Chinese|including|minutes|人民币|API|Cache|empty|month|YYYY-MM-DD|auth login|billed|configured|planAmount|source|使用|可选|本月|横条|登录|请求|谷价|进入|隐藏|默认|ArkReadOnlyAccess|Display|Off-peak|Quota not queried|browser|current|default|is an upper bound|local ledger|never echoed back|subscription|法定假日|逗号分隔|AccessKey|Output|Preview entering|Remaining|ledger|remaining|this|主机|估算|全部|关闭|密钥|恢复|日期|明细|暂无|框上方|浏览器|清除|百分比|积分|累计|账号|进度条|间隔|Today|Volcano Ark|coding plan|local|percentages|a catalog entry|comma-separated|deepseek-v4-pro|only|peak|导入安装前|开始对话后|汇总在这里|Monthly|Sidebar|Volcano|pricing|Cost|Entering|Failed to load|Input|Official|Provider|a vendor group|built-in table|custom|enough samples|historical|stay unchanged|to restore|toppedUp|上方|卡片|取消|周末|图框|安装|展开|手动|挂载|提醒|方向|来源|消耗|添加|等值|美元|Alibaba Cloud|Authorization|Show|automatically|volcengineapi|Quota|above|effective|estimates|overrides|qianwenai|strip|table|total|白名单|Bottom-right|Content-Type|Custom|English|JSON|MiniMax|Session|This|Updated|bottom-right|console|conversation|date|from|granted|hitRate|method|notification|rate|records|removed|restore|same OS user|used|windows|workspace ID|侧栏|保留|内置|写入|单价|可在|名称|后续|周期|导入|开放平台|按自然月|排行加载|滚动|火山引擎|火山方舟|点击|环境变量|确认|移除|覆盖|计价|账户|这里|采样区间|重置|预览|Control Key|Flash|Peak|SiliconFlow|application|apply|are|auto-detect|bailian-cli|composer|data|environment|estimate|full-window|host|matching|max-preview|pre-install|qianwen-cli|token|unavailable|DSH|Auto-match|Claude Pro|Cline Pass|Credential|Management|OpenRouter|Remove|Volcengine|Weekly|aggregated|change|exactly at|hours soon|multiplier|percentage|status|with|下方|不计|优先|修改|倍率|全天|切换|加载|勾选|区间|厂商|可用|基础|实际|当日|影响|文档|日志|未知|档位|渠道|生效|用于|端口|编辑|选择|采样|History|Unknown|Weekend|address|count|headers|hours|missing|ranking|reads|today|ACCESSKEY|Anthropic|Clear all|SECRETKEY|Topped-up|WorkBuddy|all|auto-sync|direction|for|page|plan|precision|providers|reasoning|signed-in|stay|subagents|use|中复制|主页面|占位符|子代理|工作区|性价比|抵扣率|控制台|未上报|条起步|标题栏|知道了|表条目|起始日|过期后|这一项|阿里云|Base URL|Cookie|Currency|External|HTTPS|Moonshot|Public|Security|Source|Usage|actual|calendar|click|deepseek|enable|follow|full|notice|override|priority|progress|provider|range|read|recorded|requires|sample|shows|snapshot|store|subtract|when|window|write|不会|中文|充值|其他|分别|列表|删除|北京|千问|发现|发送|只写|可能|后可|地址|填写|外部|套餐|对账|应用|弹窗|快照|悬停|折算|推理|支持|时刻|时区|最多|本周|标准|格式|每日|汇率|满窗|独立|窗口|简化|精度|精确|请在|路径|Key|Amounts|Beijing|Billing|ChatGPT|Compact|Confirm|Default|Extract|Factory|General|Granted|HTTP|Hide|Include|Loading|Mounted|Qwen|Request|Used|accepts|applies|billing|bundled|card|channel|earlier|gateway|here|holiday|include|key|name|not|percent|plugins|qianwen|replace|require|unknown|Click|Enter|Local|ROUTE|USD|alert|equiv|first|limit|match|query|saved|start|stats|value|CNY|Change|Gemini|Kimi|Ledger|NewApi|OPENAI|Recent|Rhythm|Saving|VOLC|active|corner|direct|divide|fields|import|logs|manual|openai|origin|pct|plugin|port|reason|remain|resets|select|studio|sync|上下|上界|上限|不再|不是|不足|两者|为准|之后|仍在|保持|允许|入口|分开|包含|即将|原因|发生|同名|后的|后缀|回放|回显|回退|域名|填入|处于|字段|对应|导出|将按|屏幕|工具|平价|底部|开关|总额|打开|按量|插件|放行|新增|早期|最近|月度|权限|条数|样式|样本|概览|版本|状态|现在|界面|百炼|目录|直接|符号|类型|紧凑|缺失|网关|花费|英文|表外|规则|语言|调整|账单|货币|赠送|超出|跟随|通知|重试|钱包|Add|bar|box|Both|CLI|KEY|Keep|Sync|VAR|When|clear|day|dock|docs|each|leave|left|now|show|that|tok|will|yet|your|Pro|com|All|Auto|Not|Save|auto|back|can|chip|its|keep|old|open|per|save|Top|low|row".split("|"),Ee=Object.fromEntries([["zh",'本Ɔƅ(按每次Ơ˚͓͠Ə)|ƍ {ƣ} · Ǝ {ƪ} · Ƽ {Ƥ}|Ǝ:读 {̮} · 写 {̸}(ʎ按Ǡ价Ə)|ƅ {Ƃ}|本Ɔ {Ƃ} · Ǡ {ʀ} · ƍ {ƣ} · Ǝ {ƪ} · Ƽ {Ƥ}|本Ɔ {Ƃ}|仅ƁƬ|无限制|ǍǸƬ来自ɡƄ × ͚ {ʃ}。对照ƖǸϼ,请˦ Κ,再ưƄ;ư仅˜ʒƠ。|ƃǣƱ:{ơ}|˟错误|ƃ|ǣƱ|Ɗ ʕʡƃ|Ɩƃ变动与ǓǦ交叉͋(偏差超阈时ǯ)|总ƃ {Ƃ}|Ͼ {ɿ} · ̻ {ɑ}|DZǰ {Ɨ}|Ɲ({ǒ})|ƻ {ʈ} / {Ƃ}|ƥ {Ƃ} · 占Ɲ {ί}|ȅ {Ǽ} · ȯ {ɯ}|Ɲ|ƥƅ(按ƖƄ͠Ə)|ƥ ƞ ƫ|ƙ|Ơ {Ʒ} 次 · ƍ {ƣ} · Ǝ {ƪ} · Ƽ {Ƥ}|ȅ {Ƃ}|ȯ {Ƃ}|ƥ|ƢƥƁ|ƅ|ƞ ƫ|ƥ|ȅ|ȯ|ƛ˖|ȩƹǤ。Ⱦ,ƅϖ天ȿ。|ȧ|Ơ|ƍ И|Ǝ И|Ƽ И|ƅ|ƥȩƆǤ。|Ɔ|NjƝ|Ɲƀ(按Ɓǡ)|Ɲʓ|开始ȧ|结束ȧ(ǔ = ƥ)|Dz˖:{̭}|NjƝ后Ɓƀ、ƻƬ及比例(按Ɓǡ换算);Ȅƥ、ȅ、ȯ或ƛʓ。|{ǒ}Ɲ {Ƃ} · ƻ {ʈ} · {ί}%|(已Ͽ)|(接近κ)|旧ƈ|ȌϏ|ʞ|˙|ǥ|ƺ|ƃ专用 ǹ ͣ|ˏȃ此ʕ ͣ;未ǧ时Ǵ已ȇƖȰƃ,其次沿用ƈƨ。|总ƃ {ɯ} · Ͼ {ɿ} · ̻ {ɑ} · DZ于 {Ɨ}|ƃǣƱ:{ơ}|未ǣƃ|Ɩʡƃ|ƕ中…|ƕƃ|ƛ ɉ ƃ|ɟǧ|ɟ ƞ ƃ|Ɓ官网ʡ页的Ǹ˘ƃ。ȇ ʹrhythm.ζ,在ȫ开发者Ϙ → 网络̆ʡȈ的 ̘,或在存储 / ͌̆ tr_Ɖ 值,ϑˍƨ并Nj。̘ 仅存 ʻ ƨ库;̔重新͈。|ɟ́ / ̖ƃ|ǣ̖中国站˘金。RAM Ț 需 bss:Ǚ ϥ。前两项必填;STS 才需 ̞ ƞ。ȥ存ƨ库。|extract ͒点͢、数值和 add/̵/Ψ 运算;Ο Ƈ 除以 500000 得到ɡ。|̺ʑ|Ϸʑ|Ȉ URL|͒ ̛、本机 ͯ,以及 /Ά/… 相对͢(ƚЀ ʻ ˤ)。|σ非回环 ͯ(ƨ明文传输;须将准确的 ȡ:ˤ 加入ɰ)|+ Ǒ Ȯ|Ǒ 预设Ǵ活跃Ȱ池ǬȮ,ȃ管理后台 X-Admin-ƞ(μƈ ǹ ͣ)。请͈˚͇与ˤ;令牌̔DZƨ。|Ȉ方法|Ȉ头 (ɵ)|Ȉ体 (ɵ)|ǔ不̓;ɵ 原文NJ并̓。Ȍ ɲ 为 ʪ/json,ʐȈ头ʟ。|解析Ϲ (ɵ)|ƛƃƁǝ|ƕȲ (Ǟ)|ƃ原ǡ|按Ɓǡ͐(Ώ ƃ)|ȃƁ͚与͟;ƃǡς端点原ǡ。̼ǡ及Ȯ不͐。|ƃ {Ƃ}|˛ƻ {Ƃ}|ƻ {Ƃ}|ƃȱ (蓝=ƃ,橙=˛,灰=ƻ)|ȱɜ|各组ȱ可͜˦填充ɜ:「Ǭɜ」满̏、随ɞ递减;「ƻɜ」空̏、随ɞ填满。|ƃ条(Ɩ/ƛ)|Ɲ条|Go ƀ条|Ƒ / ǃ ƀ条|Ǭɜ(满 → 空)|ƻɜ(空 → 满)|ƀκ (Ȅ)|ǔ则ˏȃ ǹ 返回的 max_Dž;仍无则Ɓ整条浅蓝|ɵ ͘无效|{{Ќ_NAME}} 从ƨ库或ʜǴ。<Ύ>_ǹ_Љ 中 Ύ 为大写 ɉ ID,ϱ改下划线,如 έ→Π_ǹ_Љ。ϊ共用ȥ。|ƨɰ (ș)|Ȉ头带ȥ时仅Ϡ̾内ȡ,ǔ则Ϡ并警告,防ʔ他人ǧ外带ȥ。|ƨƍ|为ɒ {{Ќ}} ̈存入ȥ(̸-Ȼ,̈́ƨ库,不ώ):|Ȉ头还没有 {{Ќ}} ̈:ϑ如 "ɣ": "Beʬr {{MY_ǹ_Љ}}" 后ʢ会出现ƨƍ框。|Nj|Ǭ {ȟ} · ƻ {spend} / ƀ {maxǘ} · DZ于 {Ɨ}|Ǭ {Ƃ}|ƕƛƃ|Ɛ dzƀ|Go|ʘ 5 ǭ|͖|ȅ|ʤ:{Ɨ}|已到ʤǰ|Ǭ {d}天{h}ǭ|Ǭ {h}ǭ{m}分|Ǭ {m}Ǟ|ƻ {ί}%|Ǭ {ί}%|{΅}%|DZ于 {Ɨ}|Go ƀƁǝ|Go ƀƕȲ(Ǟ)|Ǟ|Ɛ ǹ ͣ(Ȅ,ǔƚ͂)|Go ƀ主ˠ|Go nj|已ǧ(ɝ:{Ȃ})|未ǧ|NJ|˥ƨ|Ȭ|NJ中…|ȥ只ʎ ʻ ƨ库,不NJ在Ǧ里,也̹ώ。|以下ȥρǓǦ,未迁入ƨ库。请ϕϔʜ后重启:|Ɲnj|ƕƀ|未ǣƀ|˴(ʽ/Max)|Z.ai / 智谱 GLM ǩ Ƒ|ɶ ƞ Ƒ|ɶ Ƒ|ǣϐ(̛)|ǔƚ˦Ɩ站点。͈后 ͣ 仅发往该ϐ;ȃ可信͇,不含͢。|5h|7d|ϝ Ɗ ̻页(plat˼m.̤.Н/ƿ)|ͧ (ǃ) ƀ|ǃ ƀ未Ƴ · 点此Ƴ|5h ƀ|周ƀ|{Ɨ} ʤ|未取得ƀ,请Nj并ȇ ǃ ϟ;ʛЂ|Ɓ ǃ ƀ(需ȇ ǃ ϟ)|在ʋƁ ǃ ƀ|在ƍ区Ɓ ǃ ƀ|本Ɔƅφ̉|ȩƀǢ|Ɓǝ|选「̇Ƣ / ξ」后Ɓƀɓ;窄栏Ɓȭ。|ǹ ͣ(Ȅ,ǔƚ͂)|ƕȲ(Ǟ)|ƕ|ȇ|ȇ中…|未ǣƀ|ЈМxyǹ ϵƀ|ɟɝ|ɝʑ|̗|Ɓǝ|ƕȲ(Ǟ)|ƨɰ(ȡ:ˤ,ș)|ˀ ͣ(̈́)|ϫ|不͒的 ɉ|˟|未͂Ȱ|抓取于 {Ɨ}|˓Ȱ (Ǎ: {ǐ})|只Ɓ Μ ƀ|ƕ|先˕Nj̕|Nj并NJƁǝ͆ƕ|̿|˕Nj后会排到最上面;点ʑ可ɘ该项自己的ǧ。ƛƃ͕ 8 条,ϵɝ͕ 4 条。|未Nj。Ƴ后ϖƕȲǣ该˗的 ȵ ƀ并Ɓ在ʢ。|Ƴ后Ǵ Ɛ 的ʘ 5 ǭ、周、月ƀ,Ɓ在ʋ、Ʀ页及Ǘ;无dz时ǯψ。|ǗƁ(А)|在ǗƁ Ɛ ƀ / Ɲ|ʘ 5 ǭƀ|͖ƀ|ȅƀ|Ɲƻ%|5h|周|月|日|Ɲ|ǦǴƱ:{ơ}|正在ǴǦ…|Ǧ不˘|ưƱ:{ơ}|ƹǤ已Ȭ。|ȬƱ:{ơ}|Ǯʠ已Ȥ,按˙ƄƏ|尚未ˢ(ˢǰ:{Ɨ}),Ǎ按˙ƄƏ|Ǎϒ峰ƴ,按ƺ价Ə|Ǎ为 Ɗ ƺ高价ƴ,按ƺ价Ə|Ǎϒ谷ƴ,按ǥ价Ə|ɕƴ——全ȉ(周六及周日˒按ǥ价Ə)|ɕƴ——全ȉ|ɕ全谷|Ș——˒ȉ|Ș——全ȉ|假日|Ș(̀ȧ,ș)|自 2026-08-23 ̀ǰ 00:00 起,ɕ和Ư;调休上班的ɕ仍按ȉ。|ƺ|ϙ|Ǯƴ条ϧ|简洁(单行ϳ)|经典(分段与胶囊芯片)|峰/谷˓前͍ɛ|提前ɛ(Ǟ,1-30)|ɛϲ|Ȋƺ|Ȋǥ|峰和谷|χȊƺ|χȊǥ|约 {Ɨ} 后Əˠ˓为{phase}价,请注意本ƴƠ成本。|ƺ|ǥ|̑|峰价ɛ|ȉɛ|͍ǝ|Ǘ|ϗ中心|ư̓系统Ё|ϛ后͡ȫ͇栏σЁϥ,才能在页面最小化/切走时收到ɛ。|ʥ͍|ʥ Ȋ峰|ʥ Ȋ谷|(ʥ)|Ǯʠ与ǯ|ǯ已ȋ:需NjǮʠ并Ƴ「Ʋ」。|常规|Ƭ与ǡ|ƢƁ|͞ʋƁ|精简ɓ,ʌƬ、ƀ和͏详情;高度͕占ϗ 38%,Ͽ可ʘ。Ȥ后Ȧ。|试试更轻巧的ʋ|͞Ɓ可以为Ɔ̾留出更多空间。要ϬƳ吗?πʐ「Ʀ → ƅ → Ɓ」中˓。|Ƴ͞Ɓ|ʌǍƁ|Ʀ未能NJ。可Ђ,或Ȥǯ后在Ʀ中ϻ。|Ȥǯ|ƥ / {ǒ}Ɲ|Ƣȱϧ|͗|ϳ(两列)|Ȧ已ʞ的ƈ ({ˬ})|ʞ会Ȭə映射并ȋ此行,可Ȧ;̹̿ƫǤ,ʒ按ƚǟϹʠ。|Ǘ角标|nj|ɔɚ|未核价|已ƛ|这个Ƅ是你ə改过的,ƚư̹ʟ它。|Ȧƚư|按ƈDz(ʹ 与ƅ)|ʋƈ϶|{n} ƈ|其它|Ɓƈ϶ɓ|Ȍɘ|记住ɘϫ|Ɓ ƞ|Ɓƅ占比条|ǗƁ Ь-1 ƈ|Ȍʓ|收起摘要|ɓǝ|ƈ行数(1–10)|ƕȲ(10–60 秒)|ʓϜ与ƈ数|Ь-1 ƈ与Ƭ|顶部|ƃπ|Ϛ|ƥ|近 90 天|ƅ排行|ƞ ɞ|ƎǠ率|̎?|长Ơ无ƎǠ:代理ͅʞƎϓ。Ƭ按全未Ǡ计,是ι;可直连核对。|̋ · 每ɡ ʹ 数|ƍ|Ǝ|Ƽ|该ƴȩƫǢ。|综合ʏ {ƾ}/M|Ǡ率=Ǝ读÷(Ǝ读+普通ƍ);「̎?」表示Ǝϓͅϴ,Ƭ为ι。ʏ=ƅ÷ʹ×1M;̋=ʹ÷ƅ。|未分ƈ(ϢǢ · 按当时ǤƏ)|本Ɔ {Ƃ}(ǹ)· Ƒ ɠ {ȁ} · Ǡ {ʀ} · ƍ {ƣ} · Ǝ {ƪ} · Ƽ {Ƥ}|本Ɔ {Ƃ}(ǹ)· Ƒ ɠ {ȁ}|ƅ {Ƃ}(+Ƒ)|Ƒ dzƀɞ(ɠ){Ƃ}|ƞ Ƒ ƫDz(每 1% 与͛Ȣ)|尚无 ǩ Ƒ ƀǢ;͡「ƀ」页Ƴ并ƕ˗。|͝|ƻ %|本ʓ˚(ǓǦ)|每 1% ƀ ≈|͛ 100% ≈|ʤ {Ɨ}|˧差分|Ǎƫ͐|Ϩν|{ʁ}(基准 {Ɨ})|读数͟受限|Ƒ ƫ曲线(按ʣ聚合)|͙|每周|每月|˧ν:至少两次成功ƕ,且ƀȭω变化。|{ɽ}:͛估计 ≈ {̧}(每 1% ≈ {Ъ1})· ˚ {ƙ} / {Ƹ} · {LJs} 个ʣ|Ƭ是ϯ价ɠ;dz耗ƀ,Ɲ只计 ǹ。Ȣ仅含 dsh Ơ;服务端ȭ含全Ȱ。短时Ϩ͟有限;5h ʘ,周/月按Ǔ日历。|Ə方式|Ƒ dz|ƚ|ǹ Ϟ|在ƅƦϰƁ|仅控制是否在ƅƄ表ϰƁ;不˜ɚ和Ə。ɔ˕后ρƄ表内,可随时改回。|ɘ˗可˥Ƅ;ɔɚ的ʍƈʐˍȦ。|̽Ʀˑ|可ƍ 2 × 0.8|ːˑ会ư到本ƈȣʏ|仅ː̕的ˑ;ɔ˕Ȧ统一ˑ|请ƍ非负ʏ或乘法,例如 2 × 0.8|˟ƈ名ƚǟ|ƚ(去ό / 前缀 / 家族相似)|仅͠ǟ|ə指定ˏ;ƚǟ只接受ϊ及ȧ、Ϫ、θ文ό。未Ǡ的 Ɗ 用Ȍ价,̼ˡ不ʠ。|待ǟ与əƦ|按ˡ和ƈ̽Ʀ:˦Ƅ̒、ƛƄ,或标记为Ǔƈ。ƛƄ只ˣǍˡ。|Ɗ Ȍ价|ʞ|Ǔƈ(零ɞ)|已ǟƄ的ƈ|Ǎȃƚǟ。可改选Ƅ̒、ƛƄ或零ƅ;NJ后移入ɒəƦ区。ƞ 仍会Dz。|ςƚǠ|ȩəǟʟ。|已ɚ(参与Ə)|ƍ|ƎǴ|Ǝʎ|ǔ时按ƎǴ价Ə|Ƽ|Ɗ Ƅ表(已ɚ)|Ν / ̜|ˁ|ʩ 硅基流动|CommƽCode|ʾ|SCNet 超算互联网 ƞ Ƒ|ʚ ȴ ǩ Ƒ|́ ʹ ƞ Ƒ|小米 MiMo ƞ Ƒ|˸ Ȯ|通过 Ǩ ǴȮ,兼容加密ȇ文件。|ͬ (Droid)|Ƙ|Ƙ ̊ ID|仅在 ʻ Ơ Ƙ ǹ 也可Ə,无需ɗ Ƙ ͌。远端ƀǣ另需 Ƙ Cloud 的̊ ID 与 ʦ(μ͑ ǹ ͣ);未ǧ时可Ȥƀɓ,ƆƏ照常。͊͝与ЃυƁ。公开ϯƄˣ Ƒ ɠȢ;Ѓ扣费͡Ə分类中设为 ǹ。|ƀϲ|Stƽard + Core|组织 ID(Ȅ)|͊Ȯ|补偿Ȯ|ƃ|ƀɝ|ǓȢ|Ɩ Ј|Ϯ Ј|Ј 模式需在 ʻ ȡɗ @ɬ/ʸ,并ǂ · Ǿ。|Ϯ Ј:在 ʻ ȡɗ ʮ。ȇ按钮会在该ȡϝ授权ȫ;远程或无ϭȡ请ǂ bl Ǿ --ɻ。|Ϥ ǎ ƀ(个人版 Lite 5 万 / ͗版 50 万,以dz页ο)|dz̓(Ȅ,͘ ǽ;ǔʖ)|ǎ ̌ʟ(Ȅ;每百万 ʹ 抵扣的 ǎ,ǔ用ʍ表)|ƈ名,如 qwen3.8-ʶ|费率|ƍ|Ǝ读|Ƽ|待填齐三项正数后ƚNJ;ȣ清空Ȧʍ表。|ɟ|ǎ ǓȢ,以̍ο。Dz归属́͊的 Ƒ Ơ;ˎϞ ǹ。ϸƈ需设̌。|ǓȢϤ ǎ ƀ(˙ 60,000 / ͗ 240,000 / 高级 600,000)|dz̓(Ȅ,͘ ǽ;ǔʖ)|ˏ用 24 ǭ内的͎̍,否则按ǓǦ和Ɩ ǎ 表Ȣ。̼Ϙ和ϸƈˎ入。|ʙ Ț ID|ʙ SecretȚ|ʚ需 AK/SK、ȍ 和 ǀ;可填ƨ或ϕ Τ_˳/Τ_˶。只连接 Щ.ɦ.Н。|AK...|SK...|{h}ǭ|{h}ǭ{m}分|{m}Ǟ|{Ɨ}后Ȋϙ|{Ɨ}后Ȋ高峰|峰ƴ(UTC):{ʉ};ˢǰ:{Ɨ}。{ˋ}|未ǧǮƴ。{ˋ}|˟|ƥƅ|ȅƅ|ȯƅ|自Ǧ建立以来 · Ơ {Ʒ} 次|͉ƫ|ʻ + ͉合计|͉͎超过 24 ǭ未DZ|近期͙Ǥ|Ƭ取ϣ͎,ͅ比Ɩϼ晚几Ǟ。ƙ 含ƍ、Ƽ、Ǝ和͑;͑并入ƼƏ。以Ƭ͋。|ƥ/ȅ按宿主͔ {ʴ},ȫ为 {ȑ}。͔不同会˜日界和͋;可将 dsh 改为Ǔ͔。|ƥƆ|ʛȧ行可ɘ˛ƆȨ|ƆȨ˔中…|该日无ƆȨ(ϢǢ或Ɔ˞已清理)|ƆȨ˔Ʊ|按ƆDz(ȣƹ)|跨天合并,̉按ϛ归并。仅列选定Ϧ,ȯƅφȣ对话。|ȩƆǢ|Ɔʗ中…|ƆʗƱ|ƁϦ|Ɔ̾附显Ɔ ID|Ƭ含 Ƒ Ϝ|Ƴ后所有Ƭ按含 Ƒ dzɠ的总ƅ展示;Ȥ(Ȍ)仅计真金白银 ǹ ˡ|ȋƖʡƃ(Ƴ后Ƣ与Ʀ页λƁƖƃ)|ȋƥɞƬ(Ƴ后Ƣ/ƝȨ/ϩɓλƁƥƅ)|ȋ̐ƅȨτ|ȋƍ框ˍƅȨτ|ȋ每轮回复ϋ本轮ƅ|排序|ƅ 高→低|ƅ 低→高|ǰ 新→旧|ǰ 旧→新|实时顺序|ƹǤ|ƞ ƫDz|ȯ {ƙ} ƙ · ƍ {ƣ} · Ǝ {ƪ} · Ƽ {Ƥ} · {Ʒ} 次Ơ|{ɽ}:共 {ƙ} ƙ(ƍ {ƣ} · Ǝ {ƪ} · Ƽ {Ƥ})· {Ʒ} 次Ơ · {Ƹ}|ȩƹǢ,Ⱦ͙ƫ会ȿ|ƫ|ƞ ƫDzǝ|ƅƦ|通用Ʀ|͜分节(ƫ)|ƁƦ|ϩ|ƀ|ƫ|Ƅ|Ɓ|ƹǢ|ƆƅƁǝ|ƍ区ˍ|Ɔ̐|Ȥ|ƍȪƀȆ|NjƀȆ(ƍȪ一条横排Ɓ)|Ȇ含Ɲƻ%|Ȇ含 Go ƀ|Ȇ含 ǩ Ƒ ƀ|Ȇ͏可见各͝ʤ͓与DZǰ;无˘ƀǢ时ƚȋ。|ϡ:ƍȪƀȆ|在ƍȪƁƝ及 Ɛ/ǩ Ƒ ƀȭ。ϬƳ吗?ʐ「Ʀ → ƁƦ」ː。|ƳȆ|暂不Ƴ|ʛ立即ƕ|ϡ:ƃɖʛƕ|ʛƢƃ或 ǩ Ƒ ɖ即可ƕ;ƕ时ɖ闪烁,Ʊ时ʌ原值并在͏ǯ中说明ψ。|̑|˛ƅƁ|ƢϚ|Ͻ单位|Ǹ Κ|ɡ Ώ|欧元 EUR|Ͻϱ|͚(1 ɡ = ? 目标ǡ)|小数位数|ƃƁǝ|̇Ƣ|Ʀ页|ξ都Ɓ|ƃƕȲ(Ǟ)|Nj Ɗ ǮƴƄ|Ʋ(ƢƝ框/ƥƅ;Ʀ页Ǯ面板内ʥ)|Ɔ按Ơ时ƄƏ(含Ǯ与ƹˠ)。ƍ、Ƽ、Ǝ读写υDz;͜Ǝʎ价与长θ˝位按ǧˢ。|已ɚ的Ƅ表|ƖƄǡ|ɡ(ϷƖ页)|Ǹ(̺Ɩ页)|决定ưƄ所用的Ɩ页Ϻ;ưϋƄˣʒƠ。|М 与 ʧ ̽按ƖʏƏ,旧 ʧ ʑ按 ʧ 价结算。工作日̀ǰ 09–12、14–18 为峰ƴ,ɕ及Ư。改价ˣʒƠ,已ǤƬʌ;修正旧ƅ请ʝ后ȃƹ重算。Ǝʎ按Ǡ价。|ʢƁǍ适用Ƅ。手工˥会ɔ此条ʒ预定调价,已ω的ƹƄ仍ʌ。|ȓ(未ǟƈ时Ϗ)|新ƈ ID(如 Ⱥ)|ɟƈ|Ǣ与ư|NJ中…|ƚNJƱ:{ơ}|已ƚNJ {Ɨ}|ǧː后ƚNJ|ʝ用Ɩ˝ƄʟƄ表?|͌|ɔ|从Ɩ˝ưƄ|Ɩư只DZ Ɗ Ƅ(含Ǯ);z-ai/Ν/ʹ/ɂ 等第三方Ƅ随ϪDZ,ʐƄ表ɘϔ˗˥,或用ƈ名ǟϻ。|ʝȬȣƹ?|Ƚƹ|ʝʔ?将ύȣƆ˞,只补Ǧϴ的ȧ与Ɔ,不˜已有Ǥ。|ȽƹƱ:{ơ}|首次启动ƚʔ旧Ǥ;拷入˞͆重跑。按ǍƄ回推;已̿˞无法ύ,跨ɗ͓的Ɔˎ此前ƫ。|ʝȬ|Ȭȣƹ|ϣư:{Ɨ}|从未(ȃʍƄ)|;ɝ:{Ȃ}|Ɩ˝|ʍȌ|ϭϺ|Ѐ ʻ(ƚ)|简体̺|ɴ|ƅ|{ʁ} ƠƱ|ưƠƱ|ƃƕƠƱ'],["en",`Ʉ of Ƞ Ɖ (ǿ ˇ В c˹ Ɨ)|ɇ {ƣ} · Ǻ {ƪ} · ț {Ƥ}|Ǻ: ̮ {̮} · ̸ {̸} (̸s ǿ at Ɵ hit ƾ)|Ʉ {Ƃ}|ɸ Ɖ {Ƃ} · Hit {ʀ} · ɇ {ƣ} · Ǻ {ƪ} · ț {Ƥ}|ɸ Ɖ {Ƃ}|ɤ Ƃ Ȼ|UnΓed|Κ ɯs ̅ Ώ Ɣ × {ʃ}. To Нpʬ ƌ Κ bills, ε Κ, Ɵn η Ɣ; ηing affects Ȼ new Ʒ.|Ʃ Ε Ǜ: {ơ}|˩ error|Ʃ|Query Ǜ|Ɗ Щ-plat˼m ǐ ƒ|Cross-check ƌ ƒ ˆs against Ɵ ȕ (warn ̶ Ɵy diverge)|Total {Ƃ}|ͮ {ɿ} · ˷ {ɑ}|ɹ {Ɨ}|ǘ ({ǒ})|Ͷ {ʈ} / {Ƃ}|ȳ {Ƃ} · {ί} of Dž|ɸ Ǽ {Ǽ} · О Ɨ {ɯ}|ǘ|ȳ's Ƹ (ǿ ˇ ƌ Ɣ)|ȳ's ʹ ƿ|ƙ|C˹s {Ʒ} · ɇ {ƣ} · Ǻ {ƪ} · ț {Ƥ}|ɸ Ǽ {Ƃ}|О Ɨ {Ƃ}|ȳ|Ɂ ˲ Ɠ|Ʉ|ƞ ƿ|ȳ|ɸ Ǽ|О Ɨ|ɳ ̭|No ǜ К. Once you Η chatting, Ƹs ʬ ˅ Ϳ Ъ Џ.|Date|C˹s|In И|Ǻ И|Out И|Ʉ|No Ɖs ̯ ˲.|ɷ|ƭ Dž|ǘ Ƃ (in Ɠ dž)|ǘ ǒ|Start ɽ|End ɽ (ǻ = ˲)|Range: {̭}|ƭ a Dž to see Ц Γ, ʈ Ƃ ƽ ˊ in Ɵ Ɠ dž. Choose ˲, Ǽ, ˹ Ɨ or a Ɍ ̭.|{ǒ} Dž {Ƃ} · Ͷ {ʈ} · {ί}%| (over Γ)| (near Γ)|Legacy|ͪ f˹У|˂|Base|ȏ|ʨ|Ʃ ǹ |ɸ Open Plat˼m takes ̪; oƟrwise Ɵ ̂ ƌ ǐ ƒ is ̮, Ɵn Ǖ Ƨs.|Total {ɯ} · ͮ {ɿ} · ˷ {ɑ} · ɹ {Ɨ}|Ʃ Ε Ǜ: {ơ}|Ʃ ΄ queried|Acˬ ƒ|Ǐing…|Ǐ ƒ|ɳ ̬ ƒ|Є entry|Є ƞ ƒ|ɤs available Κ ƒ ɾ Ɵ ƌ ǐ ˽. Sign in at ʹrhythm.ζ. In ȑ DevTools, copy Ɵ ǐ request ̘ ɾ Network, or Ɵ tr_Ɖ Ι ɾ Storage / Application. С it beЭ ƽ ̥ Ƞ ͻ. ̘s ̃ in Ɵ ʻ Ƨ ̴; Έ Ɵm ̶ expired.|Є Qianwen / ɢ ƒ|ɤs ɢ China funds. RAM Ț needs bss:Ǚ. The Β two Ω ʬ Ήd; ̞ ƞ is ˼ STS. Secrets ̃ in Ɵ Ƨ ̴.|ͫ ͷ paths, numbers ƽ add/̵/Ψ. Divide Ο Ƈ by 500000 ˼ Ώ.|ǵ |ɴ |͵ URL|Supαs ̛, ȶ ͯ ƽ /Ά/… paths З ̦ Ɵ Ȓ ʻ α.|Оow non-loopУ ͯ (plaintext Ƨs; ̰ Ɵ exact ʴ:α in ˹owed ʴs)|+ Ǒ ǚ|The Ǒ preset ˱ ȟ ǚ across Υ ǐs using an admin X-Admin-ƞ, ΄ a Ǖ ǹ . Set Ɵ ̡ ˫ ƽ α; Έ Ɵ Ƨ ̶ it expires.|ͯ ʁ|Headers (ɵ)|͵ body (ɵ)|Blank sends no body; ɵ text is Ζ ƽ sent as entered. ɲ ȓs to ʪ/json; ˭ Ф ̩ it.|ͫ rules (ɵ)|ɳ ƒ Ɠ|Ʈ (Ƿ)|̟ dž|Convert Ώ ƒ to Ɠ dž|Uses Ɵ Ɠ ʃ ƽ ˿. Њ Ɵ Ȃ dž; oƟr currencies ƽ ǚ ɏ.|Ʃ {Ƃ}|ȳ {Ƃ}|Spent {Ƃ}|Ʃ ̫ Ѕ (blue=ƒ, o̭=˲, gray=spent)|Мgress Ѕ ˻|Each group of Ѕs Ф independently choose Ц fill ˻: "ȝ" Ηs ̧ ƽ drains ˌ ƿ; "Ͷ" Ηs ǻ ƽ fills up.|Ʃ Ѕs (ƌ/Ɍ)|ǘ Ѕ|Go Ƈ Ѕ|Ƒ / ǃ Ƈ Ѕs|ȝ (̧ → ǻ)|Ͷ (ǻ → ̧)|ǘ cap (ǖ)|Leave ǻ to ̅ ǹ max_Dž; if still ˯, Ж ̧ light-blue Ѕ|Invalid ɵ|{{Ќ_NAME}} ˱ a Ƨ or ʱ variable. <Ύ>_ǹ_Љ ̅s an upЪcase ɉ ID ˌ underscores, such as έ→Π_ǹ_Љ. Names Ф shʬ a .|Оowed ʴs (ȹ)|Ѝ ˭ carry Ƨs Ȼ listed ʴs ʬ ˹owed; Г ǻ to ˹ow ˌ a warning. Мtects s ̶ Ϊing someone else's config.|ʿ ƣ|Store Ɵ ˼ В {{Ќ}} placehШer ɨ (̸-Ȼ: ̴d in Ɵ ʻ Ƨ ̴, Ȗ):|No {{Ќ}} placehШers in Ɵ ˭ К — add e.g. "ɣ": "Beʬr {{MY_ǹ_Љ}}" ƽ a Ƨ ƣ Й appear Ϳ.|ƭ|ȝ {ȟ} · Spent {spend} / ǘ {maxǘ} · ɹ {Ɨ}|ȝ {Ƃ}|Ǐ Ɍ ƒ|Ɛ ȗ Ƈ|Go|Rolling 5h|˄|ɀ|Resets: {Ɨ}|Reset Ɨ rВed|{d}d {h}h Д|{h}h {m}m Д|{m}m Д|{ί}% ʈ|{ί}% ȟ|{΅}%|ɹ {Ɨ}|Go Ƈ Ɠ Lj|Go Ƈ ƶ LJ (Ƿ)|min|Ɛ ǹ (ǖ; ǻ = ʭ)|Go Ƈ primary ̷|Go І Ƶ|Configured (Ȃ: {Ȃ})|Р Ȁ|С|Edit Ƨ|Clear|Σ…|The is written to Ɵ ʻ Ƨ ̴ Ȼ — it is never Ζ in Ɵ Ȟ ƽ Ȗ.|These Ƨs γ in Ɵ ȕ. Exα Ɵ ʵ ʱ variables ƽ reΗ:|ǘ І Ƶ|Ǐ Ƈ|Ȑ|˴ (ʽ/Max)|Z.ai / Zhipu GLM ǩ Ƒ|ɶ ƞ Ƒ|ɶ Ƒ|ɧ ή (̛)|Empty: ƌ sites. OƟrwise Ɵ ͣ is sent Ȼ to Ƞ ή. Use a trusted ˫ ˌout a path.|5h|7d|Open Ɗ top-up ˽ (plat˼m.̤.Н/ƿ)|ͧ (ǃ) Ƈ|ǃ Ƈ is disabled · ̣ to ̥|5h Ƈ|˄ Ƈ|δ {Ɨ}|ɧ ʺ. ƭ ƽ sign in to a ǃ ΰ; ̣ to retry.|ɤ ǃ Ƈ (̰ a ̂ ǃ ΰ)|ɤ ǃ Ƈ in ǁ|ɤ ǃ Ƈ ɨ ʯ|ͱ ̄ in Ɖ Ƹ|No Ƈ ʰ|Ȏ Lj|“Main ǁ / Ї” ̲ a Ƈ ͻ; Ɵ narЮ rail ̲ ȷ.|ǹ (ǖ; ǻ = ʭ)|Ʈ (Ƿ)|Ǐ|Login|Signing in…|Ȑ|ЈМxyǹ ; Ƈs|Є Ȃ|̟ label|̗|Ȏ|Ʈ (Ƿ)|ʿ ˹owlist (ʴ:α, ȹ)|ˀ (̸-Ȼ)|Status|Unsupαed ̀|˩|No ǐs|fetched {Ɨ}|Switch ǐ (Ȓ: {ǐ})|Μ Ƈ Ȼ|Ǐ|ƭ Ƞ item Β|ƭ ƽ Ы a Ɠ Lj to ƶ|˂|ƭd items move to Ɵ top; ̣ a to expƽ Ц own lj. Up to 8 Ɍ ƒs ƽ 4 ; Ȃs.|Disabled. ƭ it to Ε Ƞ vendor's ȵ Ƈ on Ɵ ƶ LJ ƽ Ж it Ϳ.|ƭ Ɛ rolling 5h, weekly ƽ Ǽly Ƈs in Ɵ ǁ, DŽ ƽ ɺ Φ. Missing ȗs Ж a β.|ɱ (А) Ɠ|ɤ Ɛ Ƈ / Dž at Ɵ ɺ|Rolling-5h Ƈ|˄ Ƈ|ɀ Ƈ|ǘ ʈ %|5h|Wk|Mo|Daily|ǘ|Ξ ̮ Ǜ: {ơ}|Reading Ȟ…|Ξ ʺ|Ћ Ǜ: {ơ}|˨ cleʬd.|Clear Ǜ: {ơ}|ʨ/Ƌ Ƀ is off; base Ɣ ʬ ʈ|Р К ɩ (ɩ at {Ɨ}); base Ɣ ʬ Ȓly ʈ|ʨ hour Е; ȼ Ɣ ʫ|Ɗ ȼ-hour Ƀ is Υ; Ȓ Ʒ ʬ ǿ at ȼ Ɣ|ȏ Е; Ƌ Ɣ ʫ|˪ — ˹ Ƌ (Sat & Sun ǿ at Ƌ Ɣ ˹ Џ)|˪ — ˹ Ƌ|˪|ǵ public — Ƌ ˹ Џ|̝ — ˹ Ƌ|HoliЏ|̝ s (ͥ ɽs, Нma sepaʃd)|Since Aug 23, 2026 (ͥ Ɨ), Ɯ Ƌ ˹ Џ, Ƕ work-shift weekends.|ʨ|ȏ|ʨ ǒ ɭ style|ͨ (one-line)|Classic (segments & Х)|Popup ΐ be˼e ȼ/Ƌ switch|Lead Ɨ (Ƿ, 1-30)|Alert type|Ʌ ȼ|Ʌ Ƌ|Ї|Ʌ ȼ ˈ|Ʌ Ƌ ˈ|ͦ switches to {phase} Ƀ in about {Ɨ}; mind Л c˹ Ƹs in Ƞ ̷.|ȼ|Ƌ|Got it|ʨ ΐ|ȏ ΐ|Popup Lj|ɱ|Screen center|Also send a system ʂ|Ѝ ̥d, ˹ow ʂ Ъmission in Ɵ ȑ ˫ Ѕ so you get ΐed even ̶ Ɵ ˽ is minimized or Уgrounded.|Preview Ɵ popup|Ȝ ȼ|Ȝ Ƌ| (preview)|ʨ/Ƌ Ƀ & ̨|Рice hidden: ̥ ȼ/Ƌ Ƀ ƽ Ɵ “prominent ̨” toggle.|ͭ|Money & dž|Ɂ Ɠ|Simplify Ɵ ǁ|Condense ͻs but Ч Ƃs, Ƈs ƽ hover Ƶ. Height is capped at 38% of Ɵ viewα ˌ scrolling. Turn off ɐ.|A lighter ǁ|Simple Ɠ Гs more room ˼ ɼs. ƭ it Е? You Ф ˆ it in DŽ → Ʉ → Ȏ anyƗ.|ƭ simple Ɠ|Њ Ȓ Ɠ|DŽ could ΄ be Ζ. Retry or dismiss Ƞ guide ƽ ˆ Ɵm later in DŽ.|Dismiss guide|ȳ / {ǒ} Dž|Ɂ ̫ style|Stƽard|ͨ (2 columns)|Re̴ ʅ Ǖs ({ˬ})|˂ Ўs Ɵ ̩ ƽ hides Ɵ Ю until ʆd. ̠ ʄ ʬ kept; Тmatic ƾ ʵ .|Corner Хs|Box Ƶ|Unmount|Unƾd|ɳ|You edited Ƞ ƾ manu˹y; ˺ Й ΄ over̸ it.|Resume ˺|Per-Ǖ statistics (ƙ & Ƹ)|Ɂ Ǖ Ƹs|{n} Ǖs|OƟr|ɤ Ǖ Ƹ ͻ|Expƽ by ȓ|Remember expansion|ɤ ƙ|ɤ Ƹ shʬs|Ь Ǖ in Φ А|ͪ ǒ|Collapsed summary|Card Lj|Model Юs (1–10)|Ʈ (10–60 seconds)|Period ɯ ƽ Ǖ ˬ|Ь Ǖ ƽ Ƹ|Ь|After ƒs|Bottom|ȳ|Last 90 Џs|Ʉ ˰|ƞ ƿ|Ǻ hit ʃ|unreαed?|Zero ƪ hЦ on long Ʒ may mean a relay ʅ ƪ Ω. О-miss Ƹ Ȕ; check ˌ Ɵ Χ ǹ.|Value · ƙ Ъ Ώ|ɇ|Ǻ|ț|No ƿ ʰ ˼ Ƞ ǒ.|blended {ƾ}/M|Hit ʃ = ƪ ˱ ÷ (˱ + unƪd ƣ). “Unreαed?” means ƪ ʰ may be ˯, so Ƹ Ȕ. Unit ƾ = Ƹ ÷ ƙ × 1M; Ι = ƙ ÷ Ƹ.|Unattributed (early ʰ · ǿ as ̯)|ɸ Ɖ {Ƃ} (ǹ) · Ƒ Α. {ȁ} · Hit {ʀ} · ɇ {ƣ} · Ǻ {ƪ} · ț {Ƥ}|ɸ Ɖ {Ƃ} (ǹ) · Ƒ Α. {ȁ}|Ʉ {Ƃ} (+Ƒ)|Ƒ ȗ Ƈ ƿ (Α.) {Ƃ}|ƞ Ƒ ƿ Θ (Ъ-1% & ʳ ɪ)|No ǩ Ƒ Ƈ ʰ К. ƭ ƽ ƶ a ̬ under ɧs.|Window|Ͷ %|ɸ ǒ ̡ (ȕ)|Per 1% Ƈ ≈|Full ̷ (100%) ≈|δ {Ɨ}|̱ delta|Ȓ ƿ ratio|΄ ɍ|{ʁ} (as of {Ɨ})|Э ̮ing ˿|Ƒ ƿ curves (˅ ɾ ̱ LJs)|Daily|˄|ɀ|Р ɍ: ƶ succesşy twice ˌ a Ƈ ˊ ˆ.|{ɽ}: ʳ est. ≈ {̧} (Ъ 1% ≈ {Ъ1}) · ̡ {ƙ} / {Ƹ} · {LJs} ̱ LJ(s)|ͤ ʬ catalog-ƾ Αalents. Ƒs ̅ Ƈ; Džs ˬ ǹ Ȼ. Estimates cover dsh Ʒ, while server ȷ cover Ɵ ǐ. Short ̱s ʬ less precise. 5h rolls; week/Ǽ ̅ ȶ ɽs.|ͦ class|Ƒ ȗ|П|ǹ ƿ|ɤ Χly in Ʉ lj|Controls Χ Ɠ in Ɵ ƾ ɮ; mounting ƽ ɏ. Hidden ͻs ̃ rВable in Ɵ ɮ.|Expƽ Ɋ to edit Ɣ; ʆ unmounted ͺ Ǖs beЭ.|Sepaʃ ˉs|Try 2 × 0.8|Changing Ɵ ˉ to ˹ ǫ ˼ Ƞ Ǖ|Λ Ƞ ʃ Ȼ; uncheck ɐ Ɵ shʬd ˉ|Ό a non-negative ʃ or multiplication, e.g. 2 × 0.8|ʼ Ί Ǖ s|П (ɭ suffix / prefix / family similarity)|Exact Δ Ȼ|Manual ɫ take ̪. ʼ ͷ Ȼ Ɵ same or ɽ, version ƽ context suffixes. ˩ Ɗ Ǖs ̅ Ɵ ȓ ƾ; oƟr ̀ ̃ unƾd.|UnΔed ƽ manu˹y Ȁ Ǖs|Set В ͼ ƽ Ǖ sepaʃly: ε ȸ, ̅ a Ɍ ƾ, or mark as ȶ. ɳ Ɣ ʫ Ȼ to З ͼ.|Ɗ ȓ ƾ|˂| Ǖ (zero Ƹ)|Matched Ǖs|Currently Δed ɥ. Select ȸ, Ɍ ƾ or zero Ƹ. Сd ˆs move to Ɵ ά list ɨ; ƙ still ˬ.|Њ Т Δ|No ά Δ ɫ.|ͳ (ǿ)|ɇ|Ǻ ̮|Ǻ ̸|Leave blank to ̅ Ɵ ƪ-̮ ƾ|ț|Ɗ ƾ ɮ (mounted)|Ν / ̜|ˁ|ʩ|CommƽCode|ʾ|SCNet ƞ Ƒ|ȴ ǩ Ƒ|ʹ ƞ Ƒ (ɬ.Н)|Xiaomi MiMo ƞ Ƒ|˸|Reads ǚ through Ǩ, Ƕ encrypted logins.|ͬ (Droid)|Ƙ|Ƙ ʊ|Using Ƙ ǹs in ʻ does ΄ Ή inst˹ing Ɵ Ƙ app. Remote Ƈ queries sepaʃly Ή an Ƙ Cloud ʊ ƽ ʦ (΄ an inference ǹ ); Г Ɵ Ƈ ͻ off to Ч using ɼ Ƹ tracking ˌout Ɵm. Ƒ ʉ ƽ w˹et ̃ sepaʃ. ̝ Ɣ ʲ Ƒ-Αalent Ƹ; classify w˹et-funded Ʒ as ǹ in lj.|ɧ pool|Stƽard + Core|Organization ID (ǖ)|Ƒ ǚ|Compensation|Ʃ|ɧ Ȃ| ʲ|Ɉ Ј|Bailian Ј|Inst˹ @ɬ/ʸ on Ɵ ʻ ʴ ƽ run · Ǿ as Ɵ ʇ.|Inst˹ ʮ on Ɵ ʻ ʴ. Login Щs З ʴ’s ȑ; ˼ a remote or headless ʴ, run bl Ǿ --ɻ as Ɵ ʇ.|ɀ ǚ Ƈ (Ъsonal Lite 50K / Stƽard 500K; see Л ˾ ˽)|Ƒ Η ɽ (ǖ, ǽ; ǻ = ̢ Ǽ)|ǎ ʃ ɫ (ǖ; ǚ deducted Ъ 1M ƙ; ǻ = ɋ)|Model , e.g. qwen3.8-ʶ|ʃ|ɇ|Ǻd ƣ|ț|Ό ˹ three positive ǫ to Ы ɥ; Ў ˹ ɐ Ɵ ɋ.|Є| ǎ ʲ; ɻ is authoritative. Counts Ƒ Ʒ assigned to ʹ. Excludes pay-as-you-go ǹ. Є ǫ ˼ oƟr Ǖs.|ɀ ǚ Ƈ ˼ ȶ ɪ (Basic 60,000 / Stƽard 240,000 / М 600,000)|Ƒ Η ɽ (ǖ, ǽ; ǻ = ̢ Ǽ)|Uses ɻ ̳s newer than 24h, Ɵn ɪ ɾ ȶ ʄ ƽ ƌ ǎ ǫ. OƟr tools ƽ unlisted Ǖs ʬ excluded.|˃ Ț ID|˃ SecretȚ|ȴ needs AK/SK, ȍ ƽ ǀ. Ό Ƨs or exα Τ_˳/Τ_˶. Only Щ.ɦ.Н is contacted.|AK...|SK...|{h}h|{h}h {m}m|{m}m|ȏ in {Ɨ}|ʨ in {Ɨ}|ʨ ˮ (UTC): {ʉ}; ɩ: {Ɨ}. {ˋ}|No ȼ ʉ Ȁ. {ˋ}|Ί|ȳ|ɸ Ǽ|О Ɨ|Since Ɵ Ȟ was created · C˹s {Ʒ}|̚ ƿ|ʻ + external ɯ|̚ ̳ has ΄ been upɽd ˼ 24 ˮ|Ρ daily ʄ|ͤ ̅ Ɵ latest ̳ ƽ may lag Ɵ ƌ bill by Ƿ. ƞs ƣ, Ƥ, ƪ ƽ ́; ́ is ǿ ˌ Ƥ. Reconcile by Ƃ.|ȳ/Ǽ ̅ ʴ Ɨzone {ʴ}; Ƞ ȑ ̅s {ȑ}. Different Џ boundaries affect reconciliation. Set dsh to Л ȶ Ɨzone to align.|ȳ's Ɖs| a ɽ Ю to expƽ Ц Ɖ Ƶ|Ͳ Ɖ Ƶ…|No Ɖ Ƶ ˼ Ƞ Џ (early ʰ or Ɖ Ϋ cleaned)|Ɇ Ɖ Ƶ|By Ɖ (˹ ǜ)|Days Нbined; ̄ ̦ lj. Selected Юs Жn; cumulative Ƹs every ɼ.|No Ɖ ʰ К|Ͳ Ɖ ˰…|Ɇ Ɖ ˰|Rows|ɤ Ɖ IDs in Ɖ lists|ͱ ˾ ɯs|Ѝ on, every Ƃ ̲ ɯ Αalent Ƹ Ƕ ˾ ȗs; off (ȓ) ˬs real-money ǹ ͼs Ȼ|Ͱ ƌ ǐ ƒ (ƒ UI ʅ ɾ ǁ ƽ lj)|Ͱ ˲'s Ƹ (˲'s Ƃ ʅ ɾ ǁ, Dž Ƶ ƽ overview ͻ)|Ͱ header Ƹ Ƶ|Ͱ ʯ Ƹ Ƶ|Ͱ turn Ƹ summaries|Sort|Ʉ high→Э|Ʉ Э→high|Time new→Ш|Time Ш→new|Ρ order|˨|ƞ ƿ Θ|О-Ɨ {ƙ} ƙ · ƣ {ƣ} · ƪ {ƪ} · Ƥ {Ƥ} · {Ʒ} Ʒ|{ɽ}: {ƙ} ƙ (ƣ {ƣ} · ƪ {ƪ} · Ƥ {Ƥ}) · {Ʒ} Ʒ · {Ƹ}|No ǜ К — daily ƿ Й accumulate Ϳ|̠|ƞ ƿ Θ Lj|Ʉ lj|ͭ lj|Own section (̠)|Ȏ lj|Overview|ɧs|̠|Pricing|Ȏ|˨ ʰ|ɷ Ƹ Ɠ Lj|BeЭ Ɵ ʯ|ɷ title Ѕ|Off|ɧ ɭ ɨ Ɵ ƣ|ƭ Ɵ Ƈ ɭ (one Ю ɨ Ɵ ƣ І)|Ǫ Dž ʈ %|Ǫ Ɵ Go Ƈ|Ǫ ȵ Ƈs|Hover a Х ˼ reset Ɨs ƽ Ɵ last ƶ; Ɵ ɭ hides Цelf ̶ Ɵre is no Ƈ ʰ.|New: Ƈ ɭ ɨ Ɵ ƣ|ɤ Dž ƽ Ɛ/coding-˾ ȷ ɨ Ɵ ƣ І. ƭ Е? Λ it anyƗ in DŽ → Ȏ.|ƭ Ɵ ɭ|Р Е| to ƶ Е|New: ̣ Ɵ ƒ І to ƶ| a ǁ ƒ or ˾ І to ƶ. It pulses while loading; on failure it Чs Ɵ Ш Ι ƽ ̲ Ɵ β on hover.|Got it|ȳ Ƹ Ɠ|Ɂ footer|̙|ǵ Yuan (Κ)|US Dollar (Ώ)|Euro (EUR)|̙ symbol|Exˆ ʃ (1 Ώ = ? target dž)|Decimal places|Ʃ Ɠ Lj|Main ǁ|DŽ ˽|Ї|Ʃ ƶ LJ (Ƿ)|Use Ɗ ȼ-hour Ɣ|Мminent ̨ during ȼ ˮ (ǁ Dž І, ˲'s Ƹ; previewed in Ɵ DŽ ȼ panel)|ɷ Ƹ ̅s c˹-Ɨ Ɣ, Ƕ ȼ ƽ Ɏ ǫ. ɇ, Ƥ, ƪ ˱ ƽ ̸s ʬ sepaʃ; Ȁ ƪ-̸ ƽ long-context ǫ ʫ.|ͳ ƾ ɮs|Ɉ ƾ dž|Ώ (ɴ ƌ ˽)|Κ (ǵ ƌ ˽)|Selects Ɵ ƌ Ƀ-˽ language. Ћed Ɣ ʫ to subsequent Ʒ.|М ƽ ʧ ̅ sepaʃ ƌ ǫ; legacy ʧ s ̅ ʧ ǫ. WeekЏ ȼs ʬ 01–04 ƽ 06–10 UTC; Ɯ Ƌ. Rate ˆs ʫ to later Ʒ. Recorded Ƃs γ until you confirm Ɏ recalculation. Ǻ ̸s ̅ hit ǫ.|Current ǫ ʬ Жn Ϳ. Editing Фcels any future scheduled ˆ ˼ Ƞ entry; ͽ Ɏ ǫ ʬ retained.|ȓ (f˹У ˼ unΔed Ǖs)|New Ǖ ID (e.g. Ⱥ)|Є Ǖ|Data & η|Σ…|П-Ы Ǜ: {ơ}|П-Ζ {Ɨ}|DŽ ʬ Т-Ζ|Over̸ Ɵ ƾ ɮ ˌ Ɣ ɾ Ɵ ƌ Б?|Apply|Cancel|Ћ Ɣ ɾ ƌ Б|Ɉ η upɽs Ɗ Ɣ (Ƕ ȼ ǫ). Third-party Ɣ (z-ai/Ν/ʹ/ɂ) ̦ releases; expƽ Ɋ in Ɵ ƾ ɮ or ̅ Ǖ ʵ.|˵ ǜ?|Imα ʷ ǜ|ͩ Ϊ? Replays ˹ Ɖ Ϋ ƽ Ȼ fills ɽs/Ɖs ˯ ɾ Ɵ Ȟ; existing ʄ ʬ untouched.|Failed to Ϊ ʷ ǜ: {ơ}|Pre-inst˹ ǜ Ϊs at Β launch; rerun after copying Ш Ϋ. Ʉs ̅ Ȓ Ɣ. Deleted Ϋ Ф΄ replay; Ɖs spanning inst˹ation exclude ͽ ƿ.|ͩ Ў|˵ ǜ|Last η: {Ɨ}|Never (ͺ Ɣ)|; ̟: {Ȃ}|Ɉ Б|Bundled|Language|FolЭ ʻ (Т)|Simplified ǵ|ɴ|Ʉ|{ʁ} c˹ Ǜ|Ћ c˹ Ǜ|Ʃ ƶ c˹ Ǜ`]].map(([e,n])=>{const s=n.replace(/[ƀ-߿]/g,a=>Cn[a.charCodeAt(0)-384]).split("|");return[e,Object.fromEntries(vn.map((a,o)=>[a,s[o]]).filter(([,a])=>a!=="\0"))]}));function ya(){return(typeof navigator<"u"&&typeof navigator.language=="string"?navigator.language:"").toLowerCase().startsWith("zh")?"zh":"en"}function ze(e){const n=typeof e=="string"?e.toLowerCase().split(/[-_]/)[0]:"";return n==="zh"||n==="en"?n:null}function Q(e){const n=typeof e=="string"?e:e?.locale;return n==="zh"||n==="en"?n:ze(e?.activeLocale)||ya()}function z(e){const n=e==="zh"?Ee.zh:Ee.en;return(s,a)=>{let o=n[s]??Ee.en[s]??s;if(a)for(const r of Object.keys(a))o=o.split("{"+r+"}").join(String(a[r]));return o}}const Ye={day:"periodDay",month:"periodMonth",all:"periodAll",custom:"periodCustomRange"};function ce(e,n){throw new Error("dsh-cost-meter: 服务端数据非法 ("+e+": "+n+")")}function Se(e,n){return(e===null||typeof e!="object"||Array.isArray(e))&&ce(n,"object"),e}function ae(e,n){return(typeof e!="number"||!Number.isFinite(e))&&ce(n,"number"),e}function le(e,n){return typeof e!="string"&&ce(n,"string"),e}const Ie=(e,n,s)=>typeof e=="string"&&n.includes(e)?e:s;function ha(e,n=!1){return e===null||typeof e!="object"||Array.isArray(e)?{}:Object.fromEntries(Object.entries(e).filter(([s,a])=>n?s.length>0&&["plan","api"].includes(a):["auto","plan","api"].includes(a)))}function ve(e,n){return typeof e!="boolean"&&ce(n,"boolean"),e}const Ve=(e,n,s)=>Object.fromEntries(n.map(a=>[a,s(e[a])]));function ka(e,n){const s={};if(e!==null&&typeof e=="object"&&!Array.isArray(e))for(const a of Object.keys(e)){const o=e[a];if(o===null||typeof o!="object"||Array.isArray(o))continue;const r=l=>typeof l=="number"&&Number.isFinite(l)&&l>=0?l:0;s[a]={...Bt(o),...Ve(o,["input","output","cacheRead","cacheWrite","reasoning","cost"],r),apiCost:o.apiCost===void 0?r(o.cost):r(o.apiCost)}}return s}const bt=["costCny","apiCostCny","costEur","apiCostEur"],Bt=e=>Object.fromEntries(bt.filter(n=>Number.isFinite(e?.[n])).map(n=>[n,e[n]]));function xa(e,n){Se(e,n);const s={...Bt(e),reasoning:e.reasoning===void 0?0:ae(e.reasoning,n+".reasoning"),apiCost:e.apiCost===void 0?void 0:ae(e.apiCost,n+".apiCost"),byModel:ka(e.byModel,n+".byModel"),byProviderModel:ka(e.byProviderModel,n+".byProviderModel")};for(const a of["input","output","cacheRead","cacheWrite","calls","cost"])s[a]=ae(e[a],n+"."+a);return s}function An(e){return e==null?void 0:{source:le(e.source,"source"),requestId:le(e.requestId,"requestId"),attempt:ae(e.attempt,"attempt"),complete:ve(e.complete,"complete"),status:le(e.status,"status"),upstream:le(e.upstream,"upstream")}}function wa(e){return(Array.isArray(e)?e:ce("rows","array")).map(n=>({provider:le(n.provider,"provider"),model:le(n.model,"model"),bucket:le(n.bucket,"bucket"),tokens:ae(n.tokens,"tokens"),...n.requests===void 0?{}:{requests:ae(n.requests,"requests")},rate:ae(n.rate,"rate"),cost:ae(n.cost,"cost"),priced:ve(n.priced,"priced"),plan:ve(n.plan,"plan")}))}function Lt(e,n){return{...xa(e,n),id:le(e.id,n+".id"),provider:typeof e.provider=="string"?e.provider:"",model:typeof e.model=="string"?e.model:""}}function Ce(e,n){const s={...xa(e,n),date:le(e.date,n+".date"),sessions:[]};return e.sessions!==void 0&&(Array.isArray(e.sessions)||ce(n+".sessions","array"),s.sessions=e.sessions.map((a,o)=>Lt(a,n+".sessions["+o+"]"))),s}function Dt(e,n,s=["cacheWrite","reasoning"]){const a={};for(const o of["cacheHit","cacheMiss","output"])a[o]=ae(e[o],n+"."+o);for(const o of s)e[o]!==void 0&&(a[o]=ae(e[o],n+"."+o));return a}function Et(e,n){Se(e,n);const s={...Dt(e,n),...gt(e)};for(const a of["offPeak","peak","legacyBase","longContext"])e[a]!==void 0&&(s[a]=Dt(e[a],n+"."+a,["cacheWrite","reasoning","aboveInputTokens"]));e.cny!==void 0&&(s.cny=Dt(e.cny,n+".cny")),e.legacy!==void 0&&(s.legacy=ve(e.legacy,n+".legacy")),e.rateHistory!==void 0&&((!Array.isArray(e.rateHistory)||e.rateHistory.length>16)&&ce(n+".rateHistory","price history"),s.rateHistory=e.rateHistory.map((a,o)=>((!a||typeof a.before!="string"||!Number.isFinite(Date.parse(a.before)))&&ce(n+".rateHistory","dated price"),{...Et({...a,rateHistory:void 0},n+".rateHistory."+o),before:a.before})));for(const a of["billingMode","sourceUrl","checkedAt","notes"])typeof e[a]=="string"&&(s[a]=e[a]);return s}function Pn(e,n){const s=o=>o==null?void 0:{...["aliyun","tokenrhythm"].includes(o.adapter)?{adapter:o.adapter}:{},enabled:o.enabled===!0,label:typeof o.label=="string"?o.label:"",labelEn:typeof o.labelEn=="string"?o.labelEn:"",display:Ie(o.display,["sidebar","settings","off"],"both"),unit:o.adapter==="tokenrhythm"?"CNY":["CNY","EUR","CREDITS"].includes(o.unit)?o.unit:"USD",convertToDisplayCurrency:o.convertToDisplayCurrency===!0,allowInsecureHttp:o.allowInsecureHttp===!0,refreshMinutes:typeof o.refreshMinutes=="number"&&Number.isFinite(o.refreshMinutes)?o.refreshMinutes:15,request:o.request&&typeof o.request=="object"?o.request:{url:""},extract:o.extract&&typeof o.extract=="object"?o.extract:{},allowedHosts:Array.isArray(o?.allowedHosts)?o.allowedHosts.filter(r=>typeof r=="string"):[]};Se(e,n);const a={};if(e.prices!==null&&typeof e.prices=="object"&&e.prices.models!==null&&typeof e.prices.models=="object")for(const o of Object.keys(e.prices.models))a[o]=Et(e.prices.models[o],n+".prices.models."+o);return{locale:e.locale==="zh"||e.locale==="en"||e.locale==="auto"?e.locale:"auto",position:e.position==="header"||e.position==="off"?e.position:"dock",sidebar:e.sidebar!==!1,showSessionId:e.showSessionId===!0,hideOfficialBalance:e.hideOfficialBalance===!0,hideTodayCost:e.hideTodayCost===!0,sessionListCostPeriod:e.sessionListCostPeriod==="today"?"today":"total",modelStatistics:e.modelStatistics??{},...Ve(e,["hideSessionCostHeader","hideSessionCostDock","hideTurnCost","followSkinTransparency","sidebarTodayBalanceInline","sessionListCosts","hideBudget","sessionCostCompact","contextCostsEnabled","contextCostsPromptSeen","showTotalWithPlan","sidebarSimple","sidebarSimplePromptSeen","codexQuotaEnabled","codexCompatPromptDismissed","includeSubagentCost","peakEnabled","peakAlertWebNotify","peakProgressPromptSeen"],o=>o===!0),sidebarTodayMetric:["tokens","both"].includes(e.sidebarTodayMetric)?e.sidebarTodayMetric:"cost",sidebarOrder:Array.isArray(e.sidebarOrder)?e.sidebarOrder:[],statisticsBasis:e.statisticsBasis,sidebarModels:Object.fromEntries(Object.entries(cn).map(([o,r])=>[o,e.sidebarModels?.[o]??r])),codexQuotaSidebar:e.codexQuotaSidebar!==!1,codexQuotaStrip:e.codexQuotaStrip!==!1,codexQuotaSource:["connect","subscription","chatgpt"].includes(e.codexQuotaSource)?e.codexQuotaSource:"auto",codexCompatHistoryAppliedAt:be(e.codexCompatHistoryAppliedAt),sidebarStyle:Ie(e.sidebarStyle,["standard","compact","summary"],"standard"),sidebarSummaryPromptSeen:e.sidebarSummaryPromptSeen===!0,billionContextNoticeEnabled:e.billionContextNoticeEnabled!==!1,billionContextNoticesSeen:Array.isArray(e.billionContextNoticesSeen)?e.billionContextNoticesSeen.filter(o=>typeof o=="string").slice(-32):[],priceMatchDismissed:Array.isArray(e.priceMatchDismissed)?e.priceMatchDismissed.filter(o=>typeof o=="string"):[],pricingCurrency:e.pricingCurrency==="CNY"?"CNY":"USD",currency:typeof e.currency=="string"?e.currency:"CNY",symbol:typeof e.symbol=="string"?e.symbol:"¥",decimals:ae(e.decimals,n+".decimals"),exchangeRate:ae(e.exchangeRate,n+".exchangeRate"),exchangeRateAuto:e.exchangeRateAuto!==!1,fxRates:e.fxRates,exchangeRateDate:e.exchangeRateDate??"",exchangeRateCheckedAt:e.exchangeRateCheckedAt??0,peakEffectiveAt:typeof e.peakEffectiveAt=="string"?e.peakEffectiveAt:"",peakWindows:Array.isArray(e.peakWindows)?e.peakWindows.map((o,r)=>({start:ae(o.start,n+".peakWindows["+r+"].start"),end:ae(o.end,n+".peakWindows["+r+"].end")})):[],peakHolidays:Array.isArray(e.peakHolidays)?e.peakHolidays.filter(o=>typeof o=="string"):[],peakNotice:e.peakNotice!==!1,peakAlertEnabled:e.peakAlertEnabled!==!1,peakAlertAhead:Number.isFinite(e.peakAlertAhead)&&e.peakAlertAhead>=1&&e.peakAlertAhead<=30?e.peakAlertAhead:2,peakAlertTarget:e.peakAlertTarget==="peak"||e.peakAlertTarget==="offpeak"?e.peakAlertTarget:"both",peakAlertPosition:e.peakAlertPosition==="center"?"center":"corner",peakStyle:["classic","progress"].includes(e.peakStyle)?e.peakStyle:"compact",peakTimeDisplay:["countdown","switch"].includes(e.peakTimeDisplay)?e.peakTimeDisplay:"both",priceMatch:e.priceMatch==="exact"?"exact":"auto",priceOverrides:(()=>{const o={};if(e.priceOverrides!==null&&typeof e.priceOverrides=="object"&&!Array.isArray(e.priceOverrides))for(const[r,l]of Object.entries(e.priceOverrides))typeof r=="string"&&typeof l=="string"&&(o[r]=l);return o})(),priceTableDisplay:(()=>{const o={};if(e.priceTableDisplay!==null&&typeof e.priceTableDisplay=="object"&&!Array.isArray(e.priceTableDisplay))for(const[r,l]of Object.entries(e.priceTableDisplay))typeof r=="string"&&(o[r]=l===!0);return o})(),codingPlans:(()=>{const o={};if(e.codingPlans!==null&&typeof e.codingPlans=="object"&&!Array.isArray(e.codingPlans))for(const r of Object.keys(e.codingPlans)){const l=e.codingPlans[r];l===null||typeof l!="object"||Array.isArray(l)||(o[r]={enabled:l.enabled===!0,display:l.display==="sidebar"||l.display==="both"||l.display==="off"?l.display:"settings",refreshMinutes:typeof l.refreshMinutes=="number"&&Number.isFinite(l.refreshMinutes)?l.refreshMinutes:15,apiKey:typeof l.apiKey=="string"?l.apiKey:"",...r==="minimax"?{baseUrl:typeof l.baseUrl=="string"?l.baseUrl:""}:{},...r==="factory"?{orgId:typeof l.orgId=="string"?l.orgId:"",factoryPool:["core","both"].includes(l.factoryPool)?l.factoryPool:"standard"}:{},...r==="opendesign"?{workspaceId:typeof l.workspaceId=="string"?l.workspaceId:""}:{},...r==="qwen"?{quotaSource:["cli","bailian"].includes(l.quotaSource)?l.quotaSource:"local"}:{},...typeof l.planCredits=="number"&&Number.isFinite(l.planCredits)&&l.planCredits>0?{planCredits:l.planCredits}:{},...typeof l.planStart=="string"?{planStart:l.planStart}:{},...l.rates!==null&&typeof l.rates=="object"&&!Array.isArray(l.rates)?{rates:l.rates}:{},...typeof l.accessKeyId=="string"?{accessKeyId:l.accessKeyId}:{},...typeof l.secretAccessKey=="string"?{secretAccessKey:l.secretAccessKey}:{}})}return o})(),prices:{models:a,...e.prices?.custom?{custom:e.prices.custom}:{},default:Et(e.prices?.default??{cacheHit:0,cacheMiss:0,output:0},n+".prices.default"),providers:e.prices?.providers&&typeof e.prices.providers=="object"?e.prices.providers:{},currency:typeof e.prices?.currency=="string"&&e.prices.currency.length>0?e.prices.currency:void 0},historyDays:ae(e.historyDays,n+".historyDays"),fetchedAt:e.fetchedAt===null||e.fetchedAt===void 0?null:le(e.fetchedAt,n+".fetchedAt"),priceSource:typeof e.priceSource=="string"?e.priceSource:"bundled",budget:{enabled:e.budget?.enabled===!0,amount:typeof e.budget?.amount=="number"&&Number.isFinite(e.budget.amount)?e.budget.amount:100,period:e.budget?.period==="day"||e.budget?.period==="all"||e.budget?.period==="custom"?e.budget.period:"month",customStart:typeof e.budget?.customStart=="string"?e.budget.customStart:null,customEnd:typeof e.budget?.customEnd=="string"?e.budget.customEnd:null,detail:e.budget?.detail!==!1},balance:{display:Ie(e.balance?.display,["sidebar","settings","off"],"both"),refreshMinutes:typeof e.balance?.refreshMinutes=="number"&&Number.isFinite(e.balance.refreshMinutes)?e.balance.refreshMinutes:5,showProgressBar:e.balance?.showProgressBar===!0,budgetCap:typeof e.balance?.budgetCap=="number"&&Number.isFinite(e.balance.budgetCap)&&e.balance.budgetCap>0?e.balance.budgetCap:null,clickHintSeen:e.balance?.clickHintSeen===!0},goQuota:{enabled:e.goQuota?.enabled!==!1,display:Ie(e.goQuota?.display,["sidebar","settings","off"],"both"),refreshMinutes:typeof e.goQuota?.refreshMinutes=="number"&&Number.isFinite(e.goQuota.refreshMinutes)?e.goQuota.refreshMinutes:15,apiKey:typeof e.goQuota?.apiKey=="string"?e.goQuota.apiKey:"",main:e.goQuota?.main==="weekly"||e.goQuota?.main==="monthly"?e.goQuota.main:"rolling",detail:e.goQuota?.detail!==!1},customBalance:s(e.customBalance),gatewayQuotas:(()=>{const o=Array.isArray(e.gatewayQuotas)?e.gatewayQuotas:e.gatewayQuotas?.sources;return{sources:Array.isArray(o)?o.slice(0,4).filter(l=>l!==null&&typeof l=="object"&&!Array.isArray(l)).map(l=>({id:typeof l.id=="string"?l.id.slice(0,48):"",type:"cliproxyapi",label:typeof l.label=="string"?l.label.slice(0,80):"",baseURL:typeof l.baseURL=="string"?l.baseURL:"",enabled:l.enabled!==!1,display:Ie(l.display,["sidebar","settings","off"],"both"),refreshMinutes:typeof l.refreshMinutes=="number"&&Number.isFinite(l.refreshMinutes)?Math.min(1440,Math.max(1,Math.floor(l.refreshMinutes))):15,includeProviders:Array.isArray(l.includeProviders)?[...new Set(l.includeProviders.filter(i=>typeof i=="string").map(i=>i.toLowerCase()).filter(i=>qt.includes(i)))]:qt,allowedHosts:Array.isArray(l.allowedHosts)?l.allowedHosts.filter(i=>typeof i=="string").slice(0,16):[],allowInsecureHttp:l.allowInsecureHttp===!0,antigravityOnlyGemini:l.antigravityOnlyGemini===!0,keyVar:typeof l.keyVar=="string"?l.keyVar:""})):[]}})(),customBalances:(()=>{if(Array.isArray(e.customBalances))return e.customBalances.filter(r=>r!==null&&typeof r=="object").slice(0,8).map(s).filter(Boolean);const o=s(e.customBalance);return o?[o]:[]})(),corner:{enabled:e.corner?.enabled===!0,goRolling:e.corner?.goRolling!==!1,goWeekly:e.corner?.goWeekly!==!1,goMonthly:e.corner?.goMonthly!==!1,budget:e.corner?.budget!==!1},quotaStrip:{enabled:e.quotaStrip?.enabled===!0,budget:e.quotaStrip?.budget!==!1,go:e.quotaStrip?.go!==!1,plans:e.quotaStrip?.plans!==!1,promptSeen:e.quotaStrip?.promptSeen===!0},usage:{position:e.usage?.position==="general"||e.usage?.position==="section"?e.usage.position:"cost"},barDirections:(()=>{const o=e.barDirections!==null&&typeof e.barDirections=="object"&&!Array.isArray(e.barDirections)?e.barDirections:{},r=(l,i)=>o[l]==="remaining"||o[l]==="used"?o[l]:i;return{balance:r("balance","remaining"),budget:r("budget","used"),go:r("go","used"),plan:r("plan","used")}})(),planBilling:{providers:ha(e.planBilling?.providers),models:ha(e.planBilling?.models,!0),modelPlans:Object.fromEntries(Object.entries(e.planBilling?.modelPlans??{}).filter(([o,r])=>o.includes(":")&&et.includes(r)))}}}const $e=e=>typeof e=="number"&&Number.isFinite(e)?e:null,be=e=>$e(e)??0,Mn={status:"off",message:"",fetchedAt:0,currency:"",totalBalance:0,grantedBalance:0,toppedUpBalance:0},Tn={status:"off",message:"",fetchedAt:0,rolling:null,weekly:null,monthly:null},Na=(e=null)=>({status:"off",message:"",fetchedAt:0,label:"",unit:"USD",remaining:0,maxBudget:null,spend:null,index:e});function It(e,n){return Se(e,n),{status:e.status==="ok"||e.status==="error"?e.status:"off",message:typeof e.message=="string"?e.message:"",fetchedAt:typeof e.fetchedAt=="number"?e.fetchedAt:0}}function Rn(e,n){return{...It(e,n),keyConfigured:e.keyConfigured===!0,keySource:typeof e.keySource=="string"?e.keySource:"",currency:typeof e.currency=="string"?e.currency:"",totalBalance:be(e.totalBalance),grantedBalance:be(e.grantedBalance),toppedUpBalance:be(e.toppedUpBalance)}}function jt(e,n){return e==null?null:((typeof e!="object"||Array.isArray(e))&&ce(n,"object"),{percent:be(e.percent),resetsAt:typeof e.resetsAt=="string"?e.resetsAt:""})}function On(e,n){return{...It(e,n),rolling:jt(e.rolling,n+".rolling"),weekly:jt(e.weekly,n+".weekly"),monthly:jt(e.monthly,n+".monthly")}}function Sa(e,n){return{...It(e,n),label:typeof e.label=="string"?e.label:"",unit:typeof e.unit=="string"?e.unit:"USD",remaining:be(e.remaining),maxBudget:$e(e.maxBudget),spend:$e(e.spend),index:typeof e.index=="number"&&Number.isFinite(e.index)&&e.index>=0?Math.floor(e.index):null}}const Bn=new Set(["ok","partial","unknown","error","stale","unsupported","capability_missing"]),Ln=new Set(["off","loading","ok","partial","stale","error"]),qt=["antigravity","claude","codex","kimi","xai","workbuddy"],va={antigravity:"Antigravity",claude:"Claude",codex:"Codex",kimi:"Kimi",xai:"xAI",workbuddy:"WorkBuddy"};function Dn(e,n){Se(e,n);const s=(l,i="")=>typeof l=="string"?l:i,a=l=>$e(l),o=l=>l!==null&&typeof l=="object"&&!Array.isArray(l)?{id:s(l.id),label:s(l.label),...a(l.percent)===null?{}:{percent:a(l.percent)},resetsAt:s(l.resetsAt),periodHours:a(l.periodHours),scope:s(l.scope)}:null,r=l=>l!==null&&typeof l=="object"&&!Array.isArray(l)?{unit:s(l.unit,"credits"),used:a(l.used),remaining:a(l.remaining),limit:a(l.limit),fetchedAt:s(l.fetchedAt),packages:Array.isArray(l.packages)?l.packages.filter(i=>i!==null&&typeof i=="object"&&!Array.isArray(i)).map(i=>({id:s(i.id),label:s(i.label),used:a(i.used),remaining:a(i.remaining),limit:a(i.limit),startsAt:s(i.startsAt),resetsAt:s(i.resetsAt)})):[]}:void 0;return{id:s(e.id),type:"cliproxyapi",label:s(e.label),status:Ln.has(e.status)?e.status:"error",message:s(e.message),fetchedAt:a(e.fetchedAt)??0,attemptedAt:a(e.attemptedAt)??0,serverVersion:s(e.serverVersion),keyConfigured:e.keyConfigured===!0,keySource:s(e.keySource,"none"),accounts:Array.isArray(e.accounts)?e.accounts.filter(l=>l!==null&&typeof l=="object"&&!Array.isArray(l)).slice(0,16).map(l=>({id:s(l.id),provider:s(l.provider,"unknown"),label:s(l.label,"unknown"),status:Bn.has(l.status)?l.status:"unknown",message:s(l.message),plan:s(l.plan),windows:Array.isArray(l.windows)?l.windows.map(o).filter(Boolean):[],credits:r(l.credits)})):[],unsupportedProviders:Array.isArray(e.unsupportedProviders)?e.unsupportedProviders.filter(l=>typeof l=="string").slice(0,32):[]}}function En(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;const n={};if(e.providers!==null&&typeof e.providers=="object"&&!Array.isArray(e.providers))for(const[s,a]of Object.entries(e.providers)){if(a===null||typeof a!="object"||Array.isArray(a))continue;const o={},r={};if(a.windows!==null&&typeof a.windows=="object"&&!Array.isArray(a.windows))for(const[l,i]of Object.entries(a.windows))i===null||typeof i!="object"||Array.isArray(i)||(o[l]={...Ve(i,["percent","localTokens","localCost","sampleCount"],be),...Ve(i,["sampleAt","per1Tokens","per1Cost","fullTokens","fullCost"],$e),resetsAt:typeof i.resetsAt=="string"?i.resetsAt:"",method:i.method==="sample"||i.method==="live"?i.method:"none",confidence:i.confidence==="high"||i.confidence==="low"?i.confidence:null});if(a.intervals!==null&&typeof a.intervals=="object"&&!Array.isArray(a.intervals))for(const[l,i]of Object.entries(a.intervals))Array.isArray(i)&&(r[l]=i.filter(d=>d!==null&&typeof d=="object"&&!Array.isArray(d)).map(d=>Ve(d,["t0","t1","tokens","cost","pct","per1Tokens","per1Cost"],be)));n[s]={windows:o,intervals:r}}return{generatedAt:be(e.generatedAt),providers:n}}function In(e){if(!e||typeof e!="object"||Array.isArray(e))return;const n=e.usage&&typeof e.usage=="object"?e.usage:{};return{installed:e.installed===!0,enabled:e.enabled===!0,version:typeof e.version=="string"?e.version:"",detection:Ie(e.detection,["package","profile","none"],"none"),planClass:Ie(e.planClass,["auto","plan","api"],"auto"),usage:{calls:be(n.calls),cost:be(n.cost),tokens:be(n.tokens),days:be(n.days),providers:(Array.isArray(n.providers)?n.providers:[]).filter(s=>typeof s=="string")},historyAppliedAt:be(e.historyAppliedAt),promptDismissed:e.promptDismissed===!0,promptDue:e.promptDue===!0}}function Ca(e,n){return Se(e,n),{today:Ce(e.today,n+".today"),month:Ce(e.month,n+".month"),total:Ce(e.total,n+".total"),budgetUsed:typeof e.budgetUsed=="number"&&Number.isFinite(e.budgetUsed)?e.budgetUsed:void 0,balance:e.balance==null?Mn:Rn(e.balance,n+".balance"),goQuota:e.goQuota==null?Tn:On(e.goQuota,n+".goQuota"),customBalance:e.customBalance==null?Na():Sa(e.customBalance,n+".customBalance"),customBalances:Array.isArray(e.customBalances)?e.customBalances.filter(s=>s!==null&&typeof s=="object").map((s,a)=>Sa(s,n+".customBalances["+a+"]")):[],gatewayQuotas:Array.isArray(e.gatewayQuotas)?e.gatewayQuotas.filter(s=>s!==null&&typeof s=="object"&&!Array.isArray(s)).map((s,a)=>Dn(s,n+".gatewayQuotas["+a+"]")):[],customVarStatus:e.customVarStatus!==null&&typeof e.customVarStatus=="object"&&!Array.isArray(e.customVarStatus)?Object.fromEntries(Object.entries(e.customVarStatus).filter(([,s])=>s!==null&&typeof s=="object").map(([s,a])=>[s,{configured:a.configured===!0,source:typeof a.source=="string"?a.source:""}])):{},codingPlans:e.codingPlans!==null&&typeof e.codingPlans=="object"&&!Array.isArray(e.codingPlans)?e.codingPlans:{},planStats:En(e.planStats),codexCompat:In(e.codexCompat),ourFreeModel:e.ourFreeModel?.enabled===!0?{enabled:!0,version:typeof e.ourFreeModel.version=="string"?e.ourFreeModel.version:""}:void 0,history:Array.isArray(e.history)?e.history.map((s,a)=>Ce(s,n+".history["+a+"]")):[],billionContext:e.billionContext?.protocol===1?{protocol:1,connected:e.billionContext.connected===!0,failed:e.billionContext.failed===!0,requests:Number(e.billionContext.requests)||0,unreported:Number(e.billionContext.unreported)||0,partial:Number(e.billionContext.partial)||0,uncovered:Number(e.billionContext.uncovered)||0,detected:e.billionContext.detected===!0,version:typeof e.billionContext.version=="string"?e.billionContext.version.slice(0,100):"",compatibility:["needs_update","changed","bridge_missing","ready"].includes(e.billionContext.compatibility)?e.billionContext.compatibility:"unknown",noticeId:typeof e.billionContext.noticeId=="string"?e.billionContext.noticeId.slice(0,240):""}:void 0,externalUsage:e.externalUsage&&Array.isArray(e.externalUsage.sources)?{fetchedAt:Number(e.externalUsage.fetchedAt)||0,stale:e.externalUsage.stale===!0,sources:e.externalUsage.sources.map(s=>({source:String(s.source),today:Ce(s.today,n+".external.today"),month:Ce(s.month,n+".external.month"),total:Ce(s.total,n+".external.total"),history:(s.history??[]).map(a=>Ce(a,n+".external.history"))})),combined:Object.fromEntries(["today","month","total","history"].map(s=>[s,s==="history"?(e.externalUsage.combined.history??[]).map(a=>Ce(a,n+".external.history")):Ce(e.externalUsage.combined[s],n+".external."+s)]))}:null,config:Pn(e.config,n+".config"),pricesRev:typeof e.pricesRev=="string"?e.pricesRev:void 0,modelLabels:Object.fromEntries(Object.entries(e.modelLabels??{}).filter(([,s])=>typeof s=="string")),modelDirectory:e.modelDirectory,reconcile:e.reconcile===null||e.reconcile===void 0?void 0:{ok:e.reconcile.ok===!0,message:typeof e.reconcile.message=="string"?e.reconcile.message:""},priceLockIds:Array.isArray(e.priceLockIds)?e.priceLockIds.filter(s=>typeof s=="string"):[],meta:{...ze(e.meta?.locale)?{locale:ze(e.meta.locale)}:{},now:typeof e.meta?.now=="number"?e.meta.now:Date.now(),timezoneOffsetMinutes:typeof e.meta?.timezoneOffsetMinutes=="number"?e.meta.timezoneOffsetMinutes:0,timezone:typeof e.meta?.timezone=="string"?e.meta.timezone:"",dayKey:typeof e.meta?.dayKey=="string"?e.meta.dayKey:"",monthKey:typeof e.meta?.monthKey=="string"?e.meta.monthKey:""}}}function jn(e,n){Se(e,n);const s={ok:e.ok===!0,message:typeof e.message=="string"?e.message:""};return e.state!==void 0&&e.state!==null&&(s.state=Ca(e.state,n+".state")),s}function oe(e){return{parse:e}}const Je=oe(Ca),qn=oe(e=>Se(e,"patch")),Hn=oe(jn),Ht=oe(e=>le(e,"provider")),Qn=oe(e=>{if(e!=null)return(typeof e!="number"||!Number.isInteger(e)||e<0||e>7)&&ce("index","0-7 integer"),e}),Un=oe(e=>le(e,"date")),Fn=oe(e=>Se(e,"day")),_n=oe(e=>(Number.isFinite(Number(e))||ce("limit","number"),Number(e))),Aa=oe(e=>le(e,"sort")),Wn=oe(e=>Se(e,"topSessions")),Pa=oe(e=>le(e,"target")),Kn=oe(e=>le(e,"value")),xe=(e,n)=>({mode:"strict",typeSymbol:"dsh-cost-meter#"+e,schema:n,create:()=>n}),re=(e,n,s,a=!1)=>({name:e,wire:e,source:"json",codec:xe(n,s),...a?{acceptsUndefined:!0}:{}}),Gn={package:"dsh-cost-meter",descriptors:[{method:"getStateSince",parameters:[re("pricesRev","PricesRev",oe(e=>(typeof e!="string"&&ce("pricesRev","price table revision"),e)))],result:xe("CostState",Je)},...["getState","getLocalState"].map(e=>({method:e,result:xe("CostState",Je)})),{method:"updateConfig",parameters:[re("patch","ConfigPatch",qn)],result:xe("CostState",Je)},{method:"fetchPrices"},{method:"releasePriceLock",parameters:[re("id","PriceLockId",oe(e=>((typeof e!="string"||e.length===0)&&ce("id","OpenRouter model id"),e)))]},{method:"refreshBalance"},{method:"refreshGoQuota"},{method:"refreshCustomBalance",parameters:[re("index","CustomBalanceIndex",Qn,!0)]},{method:"refreshCodingPlan",parameters:[re("provider","CodingPlanProvider",Ht)]},{method:"loginCodingPlan",parameters:[re("provider","CodingPlanProvider",Ht)]},{method:"refreshGatewayQuota",parameters:[re("sourceId","GatewayQuotaSourceId",oe(e=>{if(e!=null)return(typeof e!="string"||e.length>48||!/^[a-z0-9][a-z0-9_-]*$/.test(e))&&ce("sourceId","gateway source id"),e}),!0)]},{method:"resetHistory",result:xe("CostState",Je)},{method:"importLegacyHistory"},{method:"getDaySessions",parameters:[re("date","DayKey",Un)],result:xe("DayRecord",Fn)},{method:"getSessionCost",parameters:[re("sessionId","SessionId",Ht)],result:xe("SessionCost",oe(e=>({own:Lt(e.own,"own"),subagents:Lt(e.subagents,"subagents"),found:ve(e.found,"found"),subagentCount:ae(e.subagentCount,"subagentCount")})))},{id:"dsh-cost-meter#costMeter/getTurnCost",service:"costMeter",namespace:"costMeter",method:"getTurnCost",invocation:{kind:"direct"},parameters:[re("sessionId","SessionId",oe(e=>le(e,"sessionId"))),...["startSeq","endSeq"].map(e=>re(e,"TurnSeq",oe(n=>((!Number.isSafeInteger(n)||n<0)&&ce(e,"nonnegative integer"),n)))),{...re("displayCurrency","DisplayCurrency",oe(e=>(e!==void 0&&!["USD","CNY","EUR"].includes(e)&&ce("displayCurrency","currency"),e))),acceptsUndefined:!0}],result:xe("TurnCost",oe(e=>({...Bt(e),found:ve(e.found,"found"),...e.inherited===void 0?{}:{inherited:ve(e.inherited,"inherited")},cost:ae(e.cost,"cost"),apiCost:ae(e.apiCost,"apiCost"),rows:wa(e.rows),calls:(Array.isArray(e.calls)?e.calls:ce("calls","array")).map(n=>({kind:le(n.kind,"kind"),provider:le(n.provider,"provider"),model:le(n.model,"model"),atMs:ae(n.atMs,"atMs"),cost:ae(n.cost,"cost"),apiCost:ae(n.apiCost,"apiCost"),plan:ve(n.plan,"plan"),priced:ve(n.priced,"priced"),longContext:ve(n.longContext,"longContext"),rows:wa(n.rows),...n.metering?{metering:An(n.metering)}:{}}))})))},{method:"getTopSessions",parameters:[re("limit","SessionLimit",_n),re("sort","SessionSort",Aa,!0),re("dir","SessionSortDir",Aa,!0)],result:xe("TopSessions",Wn)},{method:"setCredential",parameters:[re("target","CredentialTarget",Pa),re("value","CredentialValue",Kn)]},{method:"clearCredential",parameters:[re("target","CredentialTarget",Pa)]},...["applyCodexCompatHistory","dismissCodexCompat"].map(e=>({method:e,result:xe("CostState",Je)}))].map(e=>({id:"dsh-cost-meter#costMeter/"+e.method,service:"costMeter",namespace:"costMeter",invocation:{kind:"direct"},parameters:[],result:xe("FetchPricesResult",Hn),...e}))};function zn(e,n){const s=n?.models??{};return typeof e=="string"&&e.length>0&&s[e]!==void 0?s[e]:n?.default??{cacheHit:0,cacheMiss:0,output:0}}function gt(e){return Object.fromEntries(["multiplier","separateMultipliers","multipliers"].filter(n=>e?.[n]!==void 0).map(n=>[n,e[n]]))}function yt(e,n){return(e.separateMultipliers?e.multipliers?.[n]:void 0)??e.multiplier??1}function Ma(e,n,s="base"){const a={};for(const o of["cacheHit","cacheMiss","cacheWrite","output","reasoning"])e[o]!==void 0&&(a[o]=e[o]*yt(n,s+"."+o));return e.longContext&&(a.longContext={...Ma(e.longContext,n,"longContext"),aboveInputTokens:e.longContext.aboveInputTokens}),a}function Yn(e){const n=gt(e);return n.multipliers&&(n.multipliers=Object.fromEntries(Object.entries(n.multipliers).filter(([s])=>s.startsWith("cny.")).map(([s,a])=>[s.replace("cny.","base."),a]))),{...e.cny,...n}}function Qe(e){if(e===null||typeof e!="object")return;const n=l=>{const i=e[l];return typeof i=="number"&&Number.isFinite(i)&&i>=0?i:void 0},s=n("cacheMiss")??n("input")??0,o={cacheHit:n("cacheHit")??n("cachedInput")??n("cacheRead")??s,cacheMiss:s,output:n("output")??0},r=n("reasoning");return r!==void 0&&(o.reasoning=r),n("cacheWrite")!==void 0&&(o.cacheWrite=n("cacheWrite")),o}function Vn(e){const n=Qe(e);if(n===void 0)return null;Object.assign(n,gt(e)),e.billingMode==="utc-peak"&&(n.billingMode="utc-peak");for(const s of["offPeak","peak","legacyBase"]){const a=Qe(e[s]);a!==void 0&&(n[s]=a)}return Number.isFinite(e.longContext?.aboveInputTokens)&&e.longContext.aboveInputTokens>0&&(n.longContext={...Qe(e.longContext),aboveInputTokens:e.longContext.aboveInputTokens}),Array.isArray(e.rateHistory)&&(n.rateHistory=e.rateHistory.slice(0,16).map(s=>{const a={...Qe(s),before:s.before};for(const o of["offPeak","peak"]){const r=Qe(s[o]);r!==void 0&&(a[o]=r)}return a})),n}function Ze(e,n=Date.now()){if(!e||!Number.isFinite(n)||!Array.isArray(e.rateHistory))return e;let s=null,a=1/0;for(const l of e.rateHistory){const i=Date.parse(l.before);n<i&&i<a&&(s=l,a=i)}if(!s)return e;const{before:o,...r}=s;return{...e,...r}}const Qt=Date.parse("2026-08-22T16:00:00Z");function Ta(e){if(!Number.isFinite(e)||e<Qt)return null;const n=Math.floor((e+8*36e5)/864e5),s=(n+4)%7;if(s!==6&&s!==0)return null;const a=s===6?n:n-1;return{start:Math.max(a*864e5-8*36e5,Qt),end:(a+2)*864e5-8*36e5}}function Ra(e,n){if(!Number.isFinite(e)||e<Qt||!Array.isArray(n))return null;const s=Math.floor((e+8*36e5)/864e5);return n.includes(new Date(s*864e5).toISOString().slice(0,10))?{start:s*864e5-8*36e5,end:(s+1)*864e5-8*36e5}:null}const $n=(e,n)=>Ra(e,n)??Ta(e);function ht(e,n,s,a){if(!Array.isArray(s)||s.length===0||$n(e,a)!==null||Number.isFinite(n)&&e<n)return!1;const o=new Date(e).getUTCHours();return s.some(r=>{const l=Number(r.start),i=Number(r.end);return!Number.isFinite(l)||!Number.isFinite(i)?!1:l<i?o>=l&&o<i:o>=l||o<i})}const Jn=Date.parse("2026-08-16T16:00:00Z"),Zn=17881344e5;function Oa(e,n,s){const a=Ze(e,n)??{cacheHit:0,cacheMiss:0,output:0},o=(i,d="base")=>({reasoning:0,...Ma(i,a,d)}),r=a.peakSchedule==="ollama";if(r||a.billingMode==="utc-peak"){if(s?.enabled!==!0||!Number.isFinite(n)||r&&n<Zn)return o(a);const i=new Date(n),d=i.getUTCDay(),u=i.getUTCHours(),c=d>0&&d<6&&(r?u>=12&&u<18:u>=1&&u<4||u>=6&&u<10);return o((c?a.peak:a.offPeak)??a,(c?a.peak:a.offPeak)?c?"peak":"offPeak":"base")}if(Number.isFinite(n)&&n<Jn){const i=a.legacyBase;return i===void 0?o(a):o(i,"legacyBase")}if(s?.enabled!==!0)return o(a);const l=typeof s.effectiveAtMs=="number"&&Number.isFinite(s.effectiveAtMs)?s.effectiveAtMs:void 0;if(ht(n,l,s.windows,s.holidays)){const i=a.peak;return i===void 0?o(a):o(i,"peak")}if(l!==void 0&&n>=l){const i=a.offPeak;return i===void 0?o(a):o(i,"offPeak")}return o(a)}function Ba(e,n){const s=Math.max(0,Number(e.input)||0),a=Math.max(0,Number(e.output)||0),o=Math.max(0,Number(e.cacheRead)||0),r=Math.max(0,Number(e.cacheWrite)||0),l=Math.max(0,Number(e.reasoning)||0);return n.longContext&&s+o+r>n.longContext.aboveInputTokens&&(n=n.longContext),(s*n.cacheMiss+a*n.output+o*n.cacheHit+r*(n.cacheWrite??n.cacheHit)+l*(n.reasoning??0))/1e6}function La(e,n,s){const a=Number(e);if(!Number.isFinite(a)||a<0||a===0)return 0;if(n!=="CNY")return a;const o=Number(s);return!Number.isFinite(o)||o<=0?a:a/o}function ue(e,n){const s=e?.barDirections,a=n==="balance"?"remaining":"used";if(s===null||typeof s!="object"||Array.isArray(s))return a;const o=s[n];return o==="remaining"||o==="used"?o:a}function we(e,n){if(e==null||!Number.isFinite(Number(e)))return{width:0,label:null};const s=Math.max(0,Math.min(100,Number(e))),a=n==="remaining"?Math.round((100-s)*10)/10:Math.round(s*10)/10;return{width:a,label:a}}const Da=(e,n)=>e.toFixed(n).replace(/(\.\d*?[1-9])0+$|\.0+$/,"$1");function me(e,n){const s=typeof n?.symbol=="string"&&n.symbol.length>0?n.symbol:"$",a=Number(n?.decimals),o=Math.max(0,Math.min(10,Number.isFinite(a)?Math.floor(a):2));let r=o;return e>0&&e<Math.pow(10,-o)&&(r=o+2),s+Da(e,r)}function K(e,n){const s=Number(n?.exchangeRate),a=e*(Number.isFinite(s)&&s>0?s:1);return me(a,n)}function D(e){const n=Math.max(0,Number(e)||0),s=a=>a>=100?String(Math.round(a)):String(Math.round(a*10)/10);return n<1e3?String(Math.round(n)):n>=999500?s(n/1e6)+"M":n<1e6?s(n/1e3)+"K":s(n/1e6)+"M"}function Ut(e){return String(e??"").normalize("NFKC").toLowerCase().replace(/[((]\s*(?:go|zen)\s*[))]/g," ").trim()}function Ae(e){return Ut(e).replace(/[^\p{L}\p{N}]+/gu,"")}function Xn(e,n=!0){const s=Ut(e);return n&&/[-_./:@](?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])$/.test(s)?s.slice(0,-5):s.replace(/[-_./:@](?:\d{4}-?\d{2}-?\d{2}|v\d+(?:\.\d+)*|\d+k|latest)$/,"")}function kt(e,n,s=e,a=!0){if(typeof e!="string"||e.length===0)return null;const o=Array.isArray(n)?n.filter(i=>typeof i=="string"&&i.length>0):[],r=o.find(i=>i===s);if(r!==void 0)return r;let l=e.normalize("NFKC").trim();if(/[:((]\s*(?:free|online)\b/i.test(l))return null;for(;;){const i=Ae(l);if(i.length===0)return null;const d=o.filter(c=>Ae(c)===i);if(d.length>0)return d.length===1?d[0]:null;const u=Xn(l,a);if(u===l.toLowerCase())return null;l=u}}const Ft=["opendesign","open-design","open-design-api","amr-link.open-design.ai"],_t=new Set(["openrouter","opencode-zen","opencode-go","opencode-go-plus","zen","opencode",...Ft]),xt={openai:/^(?:gpt|o\d|codex)/i,anthropic:/^claude/i,google:/^gemini/i,stepfun:/^step-/i,deepseek:/^deepseek/i,moonshot:/^kimi/i,"z-ai":/^glm/i,xai:/^grok/i,alibaba:/^qwen/i,minimax:/^minimax/i,tencent:/^(?:hunyuan|hy\d)/i,xiaomi:/^mimo/i,upstage:/^solar/i,nvidia:/^nemotron/i,mistral:/^mistral/i,meta:/^(?:muse|llama)/i,meituan:/^longcat/i};function Wt(e){return["deepseek-peak","utc-peak"].includes(e?.billingMode)?e.billingMode:"flat"}function Ue(e,n,s,a,o){if(typeof e!="string")return null;if(Object.hasOwn(n,e))return e;if(a!=="auto")return null;let r=e.normalize("NFKC").trim().replace(/^models\/(?=gemini)/i,"google/");const l=r.search(/[/:]/);if(l>0){const i=r.slice(0,l).trim().toLowerCase(),d=r.slice(l+1).trim();if(Object.hasOwn(xt,i)&&(i===s||(s==="opencode-zen"||s==="opencode-go")&&(xt[i].test(d)||kt(d,Object.keys(i==="deepseek"?o?.models??{}:o?.providers?.[i]?.models??{}),d,o?.snapshotTags!==!1)!==null)))r=d;else if(Object.hasOwn(xt,i))return null}return kt(r,Object.keys(n),e,o?.snapshotTags!==!1)}const eo=new Set(["local","lmstudio","ollama","jan","gpt4all","koboldcpp","llamacpp","llama-cpp","localai","vllm","sglang","tabbyapi","lmdeploy","oobabooga","text-generation-webui","llama-server"]),to=["lmstudio:","lmstudio/","ollama:","ollama/","jan:","jan/","gpt4all:","gpt4all/","koboldcpp:","koboldcpp/","llamacpp:","llamacpp/","llama-cpp:","llama-cpp/","localai:","localai/","vllm:","vllm/","sglang:","sglang/","tabbyapi:","tabbyapi/","lmdeploy:","oobabooga/","text-generation-webui/","llama-server:","gguf:","local:"];function ao(e,n){if(typeof e=="string"&&eo.has(e))return!0;const s=typeof n=="string"?Ut(n):"";return to.some(a=>s.startsWith(a))}function no(e,n,s,a){if(e!=="deepseek"&&!e.includes("deepseek")&&typeof n=="string"&&n.length>0&&n!=="__local__"&&!n.includes(":")){const o=s.models??{},r=Object.hasOwn(o,n)?n:a==="auto"?kt(n,Object.keys(o),n,s?.snapshotTags!==!1):null;if(r!==null&&o[r]?.unpriced!==!0)return{entry:o[r],priced:!0,billingMode:"deepseek-peak",matched:!0}}return null}function oo(e,n,s){const a=s?.prices??{},o=s?.priceMatch==="exact"?"exact":"auto",r=s?.priceOverrides&&typeof s.priceOverrides=="object"?s.priceOverrides:{};let l=String(e??"").trim().toLowerCase();if(l.startsWith("llm-")&&(l=l.slice(4)),l===""&&(l="deepseek"),["our-free-model","our-free-model-region"].includes(l)&&r[l+":*"]==="__free__")return{entry:{cacheHit:0,cacheMiss:0,cacheWrite:0,output:0,reasoning:0},priced:!0,currency:"USD",billingMode:"flat",matched:!0};let i=l,d=n;const u=r[l+":"+n];if(u==="__custom__"){const b=a.custom?.[l+":"+n];return{entry:b??null,priced:!!b,billingMode:"flat",matched:!0,currency:b?.currency??"USD"}}if(u==="__local__")return{entry:null,priced:!1,billingMode:"flat",matched:!0};if(typeof u=="string"&&u.length>0){const b=u.indexOf(":");if(b>0&&u.slice(b+1).length>0?(i=u.slice(0,b).trim().toLowerCase(),d=u.slice(b+1)):d=u,i==="deepseek"&&d==="__default__")return{entry:a.default??{cacheHit:0,cacheMiss:0,output:0},priced:a.default?.unpriced!==!0,billingMode:"deepseek-peak",matched:!1}}if(["zen","opencode","opencode-go-plus"].includes(i)){const b=Ue(d,a.providers?.[i]?.models??{},"opencode-go",o,a);b===null?i="opencode-go":d=b}if(Ft.includes(i)&&i!=="opendesign"&&Ue(d,a.providers?.[i]?.models??{},i,o,a)===null&&(i="opendesign"),ao(i,d))return{entry:null,priced:!1,billingMode:"flat",matched:!1};if(i==="openrouter"){const b=a.providers?.openrouter?.models??{},g=Object.hasOwn(b,d)?b[d]:null;return{entry:g,priced:g!==null&&g.unpriced!==!0,billingMode:"flat",matched:g!==null}}if(i==="deepseek"||i.includes("deepseek")){const b=a.models??{},g=Ue(d,b,"deepseek",o,a);if(g!==null)return b[g]?.unpriced===!0?{entry:null,priced:!1,billingMode:"flat",matched:!0}:{entry:b[g],priced:!0,billingMode:"deepseek-peak",matched:!0};if(o==="auto"){let f=null,y=-1,x=!1,P="flat";for(const[N,k]of Object.entries(a.providers??{})){if(_t.has(N))continue;const p=k?.models??{},h=Ue(d,p,N,o,a);if(h===null)continue;const w=+(h===d||Ae(h)===Ae(d));w>y?(f=p[h],y=w,x=!1,P=Wt(p[h])):w===y&&(x=!0)}if(x)return{entry:null,priced:!1,billingMode:"flat",matched:!1};if(f!==null)return{entry:f,priced:f.unpriced!==!0,billingMode:P,matched:!0}}return{entry:a.default??{cacheHit:0,cacheMiss:0,output:0},priced:a.default?.unpriced!==!0,billingMode:"deepseek-peak",matched:!1}}const c=a.providers?.[i]?.models??{},m=Ue(d,c,i,o,a);if(m!==null)return{entry:c[m],priced:c[m]?.unpriced!==!0,billingMode:Wt(c[m]),matched:!0};if(_t.has(i))return{entry:null,priced:!1,billingMode:"flat",matched:!1};if(Object.hasOwn(xt,i))return{entry:null,priced:!1,billingMode:"flat",matched:!1};if(o==="auto"){let b=null,g=-1,f=!1,y="flat";for(const[x,P]of[["deepseek",{models:a.models??{}}],...Object.entries(a.providers??{})]){if(x===i||_t.has(x))continue;const N=P?.models??{},k=Ue(d,N,x,o,a);if(k===null)continue;const p=+(k===d||Ae(k)===Ae(d));p>g?(b=N[k],g=p,f=!1,y=x==="deepseek"?"deepseek-peak":Wt(N[k])):p===g&&(f=!0)}if(f)return{entry:null,priced:!1,billingMode:"flat",matched:!1};if(b!==null)return{entry:b,priced:b.unpriced!==!0,billingMode:y,matched:!0}}return{entry:null,priced:!1,billingMode:"flat",matched:!1}}function Ea(e,n,s){let a=oo(e,n,s);if(a.currency)return a;if(!a.priced){const o=String(e??"").trim().toLowerCase().replace(/^llm-/,"")||"deepseek";a=no(o,s?.priceOverrides?.[o+":"+n],s?.prices??{},s?.priceMatch==="exact"?"exact":"auto")??a}return a.priced&&s?.prices?.currency==="CNY"&&a.entry?.cny?{...a,entry:Yn(a.entry),currency:"CNY"}:{...a,currency:a.priced&&a.billingMode==="deepseek-peak"&&s?.prices?.currency==="CNY"?"CNY":"USD"}}function so(e){const n=Number(e?.calls)||0,s=Number(e?.input)||0,a=Number(e?.cacheRead)||0;return n>=3&&s>=1e5&&a===0}function wt(e,n){return!e||!n?0:typeof e.cost=="number"&&Number.isFinite(e.cost)?e.cost:ja(e,n).total}function Xe(e){if(e===null||typeof e!="object")return 0;const n=Number(e.cost)||0,s=e.apiCost===void 0||e.apiCost===null?n:Number(e.apiCost);return Number.isFinite(s)&&s>=0?Math.min(s,n):n}function U(e,n){const s={CNY:"Cny",EUR:"Eur"}[n?.currency],a=n?.showTotalWithPlan===!0,o=s&&e?.[(a?"cost":"apiCost")+s],r=a?Number(e?.cost)||0:Xe(e);return!Number.isFinite(o)||o===0&&r>0?r:o/(n.exchangeRate||1)}const lo={opendesign:Ft,go:["go","zen","opencode","opencode-go","opencode-go-plus"],codex:["codex","openai-codex","dsh-openai-codex","codex-chatgpt"],anthropic:["anthropic","claude-subscription"],zai:["zai","glm-coding-plan"],minimax:["minimax","minimax-code"],kimi:["kimi","kimi-code"],commandcode:["commandcode","command-code"],clinepass:["clinepass","cline-pass"],workbuddy:["workbuddy","workbuddy-subscription","workbuddy-ai"],antigravity:["antigravity"],stepfun:["stepfun","step-code"],"volcengine-agent":["volcengine-agent","ark-agent-plan","volcengine-agent-plan"],"tencent-coding":["tencent-coding","tencent-coding-plan","tokenhub-coding-plan"],"tencent-token":["tencent-token","tencent-token-plan","tokenhub-token-plan"],"baidu-coding":["baidu-coding-plan","qianfan-coding-plan"],qwen:["qwen","qwen-tokenplan","qianwen-tokenplan","qwen-token-plan","qianwen-token-plan"],scnet:["scnet","scnet-tokenplan","scnet-token-plan"],mimo:["mimo","xiaomimimo","mimo-token-plan","xiaomi-token-plan","xiaomi-token-plan-cn","xiaomi-token-plan-sgp","xiaomi-token-plan-ams"],factory:["factory","droid","factory-a","factory-g","factory-o"]},et=["opendesign","anthropic","zai","minimax","kimi","openrouter","siliconflow","commandcode","clinepass","scnet","volcengine","qwen","mimo","factory","go","codex","volcengine-agent","tencent-coding","tencent-token","baidu-coding","workbuddy","antigravity","stepfun"],ro=Object.entries({opendesign:"opendesign|open[._-]?design",codex:"codex|chatgpt","baidu-coding":"baidu|qianfan|百度|千帆","tencent-coding":"tencent|tokenhub|腾讯",anthropic:"anthropic|claude",zai:"z[._-]?ai|zhipu|glm|智谱",minimax:"minimax|海螺",kimi:"kimi|moonshot|moonshotai|月之暗面",openrouter:"openrouter",siliconflow:"siliconflow|硅基",commandcode:"commandcode",clinepass:"cline[._-]?pass|clinepass",scnet:"scnet|sugon|超算",volcengine:"volcengine|volcano|volc|ark|火山|方舟",qwen:"qwen|qianwen|千问|通义",mimo:"mimo|xiaomi|小米",factory:"factory|droid",go:"opencode(?:[-_\\s]?go)?|zen|go"}).map(([e,n])=>[e,new RegExp("(?:^|[^a-z0-9])(?:"+n+")(?=$|[^a-z0-9])")]);function io(e,n){for(const s of[e,n]){const a=String(s??"").normalize("NFKC").replace(/([a-zA-Z0-9\u3400-\u9fff])(?=(?:Coding|Token|Agent|Plan|Subscription))/g,"$1-").replace(/([a-z0-9])((?:coding|token|agent)?plan|subscription)$/i,"$1-$2").toLowerCase();if(!/(?:^|[^a-z0-9])(?:(?:coding|token|agent)[-_\s]*)?plan(?:$|[^a-z0-9])|(?:^|[^a-z0-9])subscription(?:$|[^a-z0-9])|套餐|订阅/.test(a))continue;const o=ro.filter(([,r])=>r.test(a));if(o.length){if(o.length!==1)return null;const r=o[0][0];if(r==="volcengine"&&/agent[-_\s]*plan|智能体.*套餐/.test(a))return"volcengine-agent";if(r==="tencent-coding"){const l=/token[-_\s]*plan|令牌.*套餐/.test(a),i=/coding[-_\s]*plan|编程.*套餐/.test(a);return l===i?null:l?"tencent-token":r}return r}}return null}function Ia(e,n,s){const a=String(e??"").trim().toLowerCase().replace(/^llm-/,""),o=n?.planBilling?.modelPlans?.[e+":"+s]??n?.planBilling?.modelPlans?.[a+":"+s];if(et.includes(o))return o;if(a.length===0)return null;for(const[r,l]of Object.entries(lo))if(l.includes(a))return r;return et.includes(a)?a:io(e,s)}function co(e){const n=new Set,s=e?.codingPlans;if(s!==null&&typeof s=="object")for(const a of et)a!=="go"&&s[a]?.enabled===!0&&n.add(a);return e?.goQuota?.enabled===!0&&n.add("go"),e?.codexQuotaEnabled===!0&&n.add("codex"),n}const uo=new Set(["grok-4.5","glm-5.3","glm-5.3-flash","glm-5.2","glm-5.1","gpt-5.6-luna","kimi-k3","kimi-k2.7-code","kimi-k2.6","mimo-v2.6-flash","mimo-v2.6-pro","mimo-v2.5","mimo-v2.5-pro","minimax-m3","minimax-m2.7","qwen3.8-max","qwen3.7-max","qwen3.7-plus","qwen3.6-plus","hy3","longcat-2.0","muse-spark-1.2-contributor"].map(Ae));function mo(e,n,s){const a=String(e??"").trim().toLowerCase();if(a.length>0&&a!=="deepseek"&&!a.includes("deepseek"))return!1;const o=Ae(n);if(o.length===0||!uo.has(o))return!1;const r=s?.prices,l=r?.models??{};for(const i of Object.keys(l))if(Ae(i)===o)return!1;for(const i of Object.keys(r?.providers?.["opencode-go"]?.models??{}))if(Ae(i)===o)return!0;return!1}function tt(e,n,s){if(e==="deepseek-official"&&/^deepseek-(web-(search|fetch)|(search|fetch)-api|search-server)$/.test(n))return"api";let a=Ia(e,s,n);a===null&&mo(e,n,s)&&(a="go");const o=s?.planBilling?.models;if(o!==null&&typeof o=="object"){const r=o[e+":"+n];if(r==="plan"||r==="api")return r;if(a!==null){const l=o[a+":"+n];if(l==="plan"||l==="api")return l}}for(const r of[e,a]){if(r==null)continue;const l=s?.planBilling?.providers?.[r];if(l==="plan"||l==="api")return l}return a===null?"api":co(s).has(a)?"plan":"api"}function ja(e,n){if(!e||!n)return{total:0,api:0};const s=po(n),a={enabled:n.peakEnabled===!0,effectiveAtMs:Date.parse(n.peakEffectiveAt||""),windows:n.peakWindows,holidays:n.peakHolidays},o=Date.now(),r=e.byProviderModel??e.byModel??{};let l=0,i=0;for(const b of Object.keys(r)){const g=b.indexOf(":"),f=g>0?b.slice(0,g):"deepseek",y=g>0?b.slice(g+1):b,x=Ea(f,y,n);if(x.priced){const P=Vn(x.entry);P&&x.billingMode==="deepseek-peak"&&n.prices?.ollamaPeak!==!1&&f.trim().toLowerCase().replace(/^llm-/,"")==="ollama-cloud"&&(n.prices?.ollamaTaggedPeak===!1?["deepseek-v4.1-flash","deepseek-v4-pro"].includes(y.trim().toLowerCase()):kt(y,["deepseek-v4.1-flash","deepseek-v4-pro"])!==null)&&(P.peakSchedule="ollama");const N=Ba(r[b],Oa(P,o,{...a,enabled:["deepseek-peak","utc-peak"].includes(x.billingMode)&&a.enabled})),k=La(N,x.currency,s);l+=k,tt(f,y,n)==="api"&&(i+=k)}}const d={input:0,output:0,cacheRead:0,cacheWrite:0,reasoning:0};for(const b of Object.keys(r))d.input+=r[b].input??0,d.output+=r[b].output??0,d.cacheRead+=r[b].cacheRead??0,d.cacheWrite+=r[b].cacheWrite??0,d.reasoning+=r[b].reasoning??0;const u={input:Math.max(0,(e.input??0)-d.input),output:Math.max(0,(e.output??0)-d.output),cacheRead:Math.max(0,(e.cacheRead??0)-d.cacheRead),cacheWrite:Math.max(0,(e.cacheWrite??0)-d.cacheWrite),reasoning:Math.max(0,(e.reasoning??0)-d.reasoning)},c=Ba(u,Oa(zn("default",n.prices),o,a)),m=La(c,n.prices?.currency==="CNY"?"CNY":"USD",s);return l+=m,i+=m,{total:l,api:i}}function po(e){const n=s=>typeof s=="number"&&Number.isFinite(s)&&s>0&&s<1e6;return e.currency==="CNY"&&n(e.exchangeRate)?e.exchangeRate:n(e.fxRates?.CNY)?e.fxRates.CNY:7.2}function qa(e,n){if(!e||!n)return!1;const s=e.byProviderModel??{};for(const a of Object.keys(s)){const o=a.indexOf(":"),r=o>0?a.slice(0,o):"deepseek",l=o>0?a.slice(o+1):a;if(tt(r,l,n)==="plan")return!0}return!1}function Ha(e){return(e?.input??0)+(e?.cacheRead??0)+(e?.cacheWrite??0)}function Qa(e,n){if(e?.apiCost!==void 0)return Xe(e);if(!qa(e,n))return wt(e,n);let s=0;for(const[a,o]of Object.entries(e.byProviderModel??{})){if(!Number.isFinite(o.cost))return ja(e,n).api;const r=a.indexOf(":");tt(a.slice(0,r),a.slice(r+1),n)==="plan"&&(s+=o.cost)}return Math.max(0,wt(e,n)-s)}function Kt(e){const n=Math.abs(Math.round(Number(e)||0)),s=Math.floor(n/60),a=n%60;return"UTC"+(Number(e)<0?"-":"+")+s+(a>0?":"+String(a).padStart(2,"0"):"")}function fo(e){const n=e?.meta,s=Number(n?.timezoneOffsetMinutes);if(!Number.isFinite(s))return null;const a=-new Date().getTimezoneOffset();if(a===s)return null;const o=typeof n?.timezone=="string"&&n.timezone.length>0?n.timezone:"";return{hostLabel:o?o+" ("+Kt(s)+")":Kt(s),browserLabel:Kt(a)}}function bo(e,n=s=>s){let s=n(e);const a=new Set;return{getSnapshot:()=>s,subscribe:o=>(a.add(o),()=>{a.delete(o)}),set:o=>{if(o=n(o),o!==s){s=o;for(const r of[...a])r()}}}}const{createElement:t,Fragment:L,useState:O,useEffect:Y,useRef:ge}=Me;function je({target:e,configured:n,source:s,t:a,api:o,placeholder:r,disabled:l}){const[i,d]=O(""),[u,c]=O(!1),[m,b]=O(!1),[g,f]=O(null),y=ge(!1),x=l===!0||m,P=async()=>{const p=i.trim();if(!(p.length===0||x||y.current)){y.current=!0,b(!0),f(null);try{const h=await o.setCredential(e,p);d(""),c(!1),f({kind:"ok",text:h?.message??a("credentialSave")})}catch(h){f({kind:"err",text:String(h?.message??h)})}finally{y.current=!1,b(!1)}}},N=async()=>{if(!(x||y.current)){y.current=!0,b(!0),f(null);try{const p=await o.clearCredential(e);d(""),c(!1),f({kind:"ok",text:p?.message??a("credentialClear")})}catch(p){f({kind:"err",text:String(p?.message??p)})}finally{y.current=!1,b(!1)}}},k=()=>{d(""),c(!1)};return t("div",{className:"cm-field"},u?t("form",{className:"cm-field",autoComplete:"off",onSubmit:p=>{p.preventDefault(),P()}},t("input",{className:"cm-input",type:"password",name:"cm-credential-"+e,autoFocus:!0,value:i,placeholder:typeof r=="string"?r:"",disabled:x,autoComplete:"new-password","data-lpignore":"true","data-1p-ignore":"true","data-bwignore":"true","aria-label":a("credentialInputHint"),onChange:p=>d(p.target.value)}),t("div",{className:"cm-buttons"},t("button",{className:"cm-btn small",type:"submit",disabled:x||i.trim().length===0},a(m?"credentialSaving":"credentialSave")),t("button",{className:"cm-btn small",type:"button",onClick:k,disabled:m},a("cancel")))):t("button",{className:"cm-btn small",type:"button",onClick:()=>c(!0),disabled:x},a("credentialEdit")),n===!0?t("button",{className:"cm-btn small",type:"button",onClick:N,disabled:x},a("credentialClear")):null,t("span",{className:"cm-hint"},n===!0?a("credentialConfiguredOf",{source:typeof s=="string"&&s.length>0?s:"unknown"}):a("credentialNotConfigured")),t("span",{className:"cm-hint"},a("credentialInputHint")),ua(g))}function go({pending:e,t:n}){return!Array.isArray(e)||e.length===0?null:t("div",{className:"cm-msg err"},t("div",null,n("secretMigrationPending")),t("div",null,e.join("、")))}function Nt({size:e=16,className:n}){return t("svg",{width:e,height:e,className:n,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t("path",{d:"M4 4H12A2 2 0 0 1 14 6V11.5A2 2 0 0 1 12 13.5H4A2 2 0 0 1 2 11.5V6A2 2 0 0 1 4 4ZM4 5.3H12A0.7 0.7 0 0 1 12.7 6V11.5A0.7 0.7 0 0 1 12 12.2H4A0.7 0.7 0 0 1 3.3 11.5V6A0.7 0.7 0 0 1 4 5.3Z",fill:"currentColor",fillRule:"evenodd"}),t("path",{d:"M3.3 5.3H12.7V7.1H3.3Z",fill:"currentColor"}),t("path",{d:"M8 2.8A1.3 1.3 0 1 0 8 5.4A1.3 1.3 0 1 0 8 2.8Z",fill:"currentColor"}))}function Ua(e,n){const s=ge(!1),a=ge(""),o=n!==null&&typeof n=="object"?[n.input,n.cacheRead,n.cacheWrite,n.output,n.reasoning,n.cost].map(r=>String(r??0)).join("|"):"";Y(()=>{if(!s.current){s.current=!0,a.current=o;return}if(o===""||o===a.current)return;a.current=o;const r=setTimeout(()=>{e.api?.reload?.()},800);return()=>clearTimeout(r)},[o])}function yo(e,n,s,a){const o=n?n.own:e;if(!s||!n?.subagentCount)return o;const r=n.subagents,l={...o};for(const i of["input","output","cacheRead","cacheWrite","reasoning","calls","cost",...bt])l[i]=(o?.[i]??0)+(r?.[i]??0);l.apiCost=Qa(o,a)+Xe(r);for(const i of["byModel","byProviderModel"]){l[i]={...o?.[i]};for(const[d,u]of Object.entries(r?.[i]??{})){const c={...l[i][d]};c.apiCost=Xe(c)+Xe(u);for(const m of["input","output","cacheRead","cacheWrite","reasoning","calls","cost",...bt])c[m]=(c[m]??0)+(u[m]??0);l[i][d]=c}}return l}function Fa(e){const n=e.useProjection?e.useProjection("costUsage"):void 0,s=e.useCost?.(u=>u)?.state,a=s?.config,[o,r]=O(null);Ua(e,n);const l=["input","output","cacheRead","cacheWrite","reasoning","calls","cost","apiCost"].map(u=>n?.[u]??"").join(":");Y(()=>{if(!e.sessionId||!e.api?.getSessionCost)return;let u=!0,c=!1;const m=async()=>{if(!(c||typeof document<"u"&&document.hidden)){c=!0;try{const f=await e.api.getSessionCost(e.sessionId);u&&r({id:e.sessionId,include:a?.includeSubagentCost===!0,value:f})}catch{u&&r(f=>f?.id===e.sessionId&&f.include===(a?.includeSubagentCost===!0)?f:{id:e.sessionId,include:a?.includeSubagentCost===!0,value:null})}finally{c=!1}}};m();const b=a?.includeSubagentCost===!0?setInterval(m,1e4):null,g=()=>{document.hidden||m()};return typeof document<"u"&&document.addEventListener?.("visibilitychange",g),()=>{u=!1,b!==null&&clearInterval(b),typeof document<"u"&&document.removeEventListener?.("visibilitychange",g)}},[e.sessionId,s?.meta?.now,l,a?.includeSubagentCost]);const i=o&&o.id===e.sessionId&&o.include===(a?.includeSubagentCost===!0)?o:null,d=i?.value;return{usage:yo(n,d,a?.includeSubagentCost||d&&d.subagentCount>0,a),config:a,pending:!!e.sessionId&&!!e.api?.getSessionCost&&!i,unrecorded:!!d&&!d.found&&!d.subagentCount}}function _a(e){const n=Q(e.config)==="en";return e.pending?n?"Loading session cost…":"正在读取本会话费用…":e.unrecorded?n?"Session cost: no ledger records":"本会话暂无账本记录":e.usage?"":n?"Session cost unavailable":"本会话费用暂不可用"}function Wa(e,n){if(Number.isFinite(e?.costCny)||Number.isFinite(e?.costEur)){const o=U(e,{...n,showTotalWithPlan:!0}),r=U(e,{...n,showTotalWithPlan:!1});return{cost:n.showTotalWithPlan?o:r,planPart:n.showTotalWithPlan?0:Math.max(0,o-r)}}let s=0,a=wt(e,n);if(n.showTotalWithPlan!==!0&&(e.apiCost!==void 0||qa(e,n))){const o={total:wt(e,n),api:Qa(e,n)};s=Math.max(0,o.total-o.api),s>0&&(a=o.api)}return{cost:a,planPart:s}}function Ka(e,n){return Object.entries(e?.byProviderModel??{}).filter(([,s])=>s.input||s.output||s.cacheRead||s.cacheWrite||s.reasoning).map(([s,a])=>dt(s)+" "+K(U(a,{...n,showTotalWithPlan:!0}),n)).join("; ")}function ho(e){const n=e.useCost?.(y=>y)?.state?.config,[s,a]=O(null),[o,r]=O(""),l=e.turn?.start?.seq,i=e.turn?.end?.seq,d=e.sessionId,u=JSON.stringify([n?.prices,n?.priceOverrides,n?.priceMatch,n?.planBilling,n?.codingPlans,n?.goQuota?.enabled,n?.peakEnabled,n?.peakEffectiveAt,n?.peakWindows,n?.peakHolidays,n?.exchangeRate]);if(Y(()=>{let y=!0;if(a(null),r(""),!(n?.hideTurnCost||!d||l==null||i==null))return e.api.getTurnCost(d,l,i).then(x=>{y&&a(x)},x=>{y&&r(String(x.message??x))}),()=>{y=!1}},[d,l,i,u,n?.hideTurnCost]),!n||n.hideTurnCost||l==null||i==null)return null;const c=Q(n)==="en",m=c?{input:"Input",output:"Output",cacheRead:"Cache read",cacheWrite:"Cache write",reasoning:"Reasoning"}:{input:"输入",output:"输出",cacheRead:"缓存读取",cacheWrite:"缓存写入",reasoning:"推理"},b=y=>K(y,{...n,decimals:Math.max(8,n.decimals??2)}),g=c?{model:"Model call",compaction:"Context compaction",search:"Native search",fetch:"Web fetch"}:{model:"模型调用",compaction:"上下文压缩",search:"原生搜索",fetch:"网页抓取"},f=(y,x)=>t("div",{key:x,style:{marginBottom:4,overflowWrap:"anywhere"}},dt(y.provider+":"+y.model)+" · "+(m[y.bucket]||(y.bucket==="fetchRequests"?c?"Fetch requests":"抓取请求":c?"Search requests":"搜索请求"))+(y.plan?" (Plan)":"")+": "+(y.requests?y.requests+(c?" requests":" 次"):y.tokens.toLocaleString())+" × "+(y.priced?b(y.rate):"?")+(y.requests?" ≈ ":" / 1,000,000 ≈ ")+(y.priced?b(y.cost):"?"),y.priced?y.bucket==="reasoning"&&y.rate===0?c?" (no separate charge)":"(不单独收费)":"":c?" (price unavailable)":"(未配置价格)");return t("details",{className:"cm-note",style:{fontSize:12,marginTop:6}},t("summary",{style:{cursor:"pointer"},title:c?"Log estimate at configured prices; session cost uses recorded ledger amounts.":"本轮按日志和配置价格估算,本会话按账本已入账金额汇总。"},c?"Turn cost":"本轮费用",s?.found?" ≈ "+b(U(s,n))+(s.rows.some(y=>!y.priced)?c?" + unpriced usage":" + 未定价用量":""):s?.inherited?c?" · inherited history":" · 继承历史":o?" ⚠":""),o?t("div",{role:"alert"},o):s?s.found?t(L,null,t("p",null,c?"Estimated from recorded usage and configured prices; rates per 1M tokens.":"按已记录用量和配置价格估算;单价单位为每百万 Token。"),t("p",null,"API ≈ "+b(U(s,{...n,showTotalWithPlan:!1}))+" · Plan ≈ "+b(U(s,{...n,showTotalWithPlan:!0})-U(s,{...n,showTotalWithPlan:!1}))+(c?" (equivalent)":"(等值)")),s.rows.map(f),t("details",null,t("summary",{style:{cursor:"pointer"}},(c?"Individual calls":"逐次调用明细")+" ("+s.calls.length+")"),s.calls.map((y,x)=>t("details",{key:x,style:{margin:"6px 0"}},t("summary",{title:y.provider+":"+y.model,style:{cursor:"pointer",overflowWrap:"anywhere"}},"#"+(x+1)+" "+g[y.kind]+" · "+dt(y.provider+":"+y.model)+" · "+new Date(y.atMs).toLocaleTimeString()+" · "+(y.plan?"Plan ":"API ")+(y.priced?"≈ "+b(y.cost):c?"price unavailable":"未配置价格")+(y.longContext?c?" · long context":" · 长上下文价格":"")),y.metering?t("p",null,"billion-context · "+y.metering.upstream+(y.metering.attempt>1?(c?" · Retry ":" · 重试 ")+y.metering.attempt:"")+(y.metering.complete?"":c?" · partial usage":" · 用量回执不完整")):null,y.rows.map(f))))):s.inherited?c?"Inherited usage is not billed again in this conversation.":"继承的历史用量不在本会话重复计费。":c?"Complete usage records unavailable":"没有完整用量记录":c?"Loading…":"加载中…")}function ko(e){const n=Fa(e),{usage:s,config:a}=n;if(!a)return null;const o=_a(n);if(o)return t("div",{className:"cm-chip"},o);const r=z(Q(a)),{cost:l,planPart:i}=Wa(s,a),d=[r("sessionCostTitle"),r("sessionDetailTokens",{input:D(s?.input??0),cache:D((s?.cacheRead??0)+(s?.cacheWrite??0)),output:D(s?.output??0)}),r("sessionDetailCache",{read:D(s?.cacheRead??0),write:D(s?.cacheWrite??0)}),r("cost",{amount:K(l,a)}),...i>0?[r("sessionDetailPlan",{amount:K(i,a)})]:[],Ka(s,a)].filter(Boolean).join("; ");return t($,{portal:!0,label:d,side:"top",delayMs:500},t("div",{className:"cm-chip"},i>0?r("costChipPlan",{amount:K(l,a)}):r("cost",{amount:K(l,a)})))}function xo(e){const n=Fa(e),{usage:s,config:a}=n;if(!a)return null;const o=_a(n);if(o)return t("div",{className:"cm-root",role:"status",title:o},o);const r=s.input??0,l=(s.cacheRead??0)+(s.cacheWrite??0),i=s.output??0,d=z(Q(a)),{cost:u,planPart:c}=Wa(s,a),m=Ha(s)>0?((s.cacheRead??0)/Ha(s)*100).toFixed(1)+"%":"—",b={amount:K(u,a),planAmount:K(c,a),hitRate:m,input:D(r),cache:D(l),output:D(i)},g=d(c>0?"sessionLineSplit":"sessionLine",b),f=Ka(s,a),y=a.sessionCostCompact===!0,x=d("sessionLineCompact",b),P=y?d(c>0?"sessionLineSplitCompact":"sessionLineCompact",b):g;return t("div",{className:"cm-root cm-session-cost",title:[g,f].filter(Boolean).join("; ")},t("span",{className:"cm-session-amount"},x),t("span",{className:"cm-session-detail"},P.slice(x.length)))}const wo={USD:"$",CNY:"¥",EUR:"€"};function Te(e,n,s){const a=typeof s=="string"?s.toUpperCase():"",o=typeof n?.symbol=="string"&&n.symbol.length>0?n.symbol:"$";return me(e,{symbol:wo[a]??o,decimals:Math.max(2,Math.min(10,Math.floor(Number(n?.decimals)||2)))})}function Ga(e,n){const s=Number(e?.balance?.budgetCap);if(Number.isFinite(s)&&s>0)return s;const a=Number(n?.maxBudget);return Number.isFinite(a)&&a>0?a:null}function No(e){const n=e.today,s=n?.byProviderModel;if(s===null||typeof s!="object"||Object.keys(s).length===0)return Number(n?.cost)||0;let a=0;for(const[o,r]of Object.entries(s)){const l=o.indexOf(":");let i=l>=0?o.slice(0,l):o;i.startsWith("llm-")&&(i=i.slice(4)),/^deepseek(?:-official|-account)?$/.test(i)&&(a+=Number(r?.cost)||0)}return a}function za(e,n,s,a,o=null){const r=s==="official"?No(e):Number(e.today?.cost)||0,l=s==="custom"?at(n,a,o):e.balance?.currency;if(l==="USD")return r;if(l==="CREDITS")return 0;const i=Number(n?.exchangeRate);return r*(Number.isFinite(i)&&i>0?i:1)}function Gt({remaining:e,spend:n,todayUsed:s,cap:a}){if(a===null||a<=0)return{remainingPct:100,todayPct:0,spentPct:0,hasCap:!1,pastSpend:0,today:0};const o=Math.max(0,Number(e)||0),r=Math.max(0,Number(n)||0),l=Math.max(0,Math.min(r,Number(s)||0)),i=Math.max(0,r-l),d=Math.max(0,Math.min(100,o/a*100)),u=Math.max(0,Math.min(100-d,l/a*100)),c=Math.max(0,Math.min(100-d-u,i/a*100));return{remainingPct:d,todayPct:u,spentPct:c,hasCap:!0,pastSpend:i,today:l}}function zt(e,n,s=null,a=null){const o=s??e.customBalance;if((a??n?.customBalance)?.adapter==="tokenrhythm")return{cap:null,...Gt({remaining:o?.remaining,cap:null})};const r=Ga(at(n,o,a)==="CREDITS"?null:n,o),l=Number(o?.remaining)||0,i=Number(o?.spend)||0,d=za(e,n,"custom",o,a);return{cap:r,...Gt({remaining:l,spend:i,todayUsed:d,cap:r})}}function So(e,n){const s=e.balance,a=Ga(n,null),o=Number(s?.totalBalance)||0,r=za(e,n,"official",null),l=a!==null?Math.max(0,a-o):0;return{cap:a,...Gt({remaining:o,spend:l,todayUsed:r,cap:a})}}function Yt(e){const{segments:n,direction:s="remaining"}=e,{remainingPct:a,todayPct:o,spentPct:r}=n,l=[];a>0&&l.push(t("div",{className:"cm-bbox-fill",style:{width:a+"%"}})),o>0&&l.push(t("div",{className:"cm-bbox-seg-today",style:{width:o+"%"}})),r>0&&l.push(t("div",{className:"cm-bbox-seg-spent",style:{width:r+"%"}})),l.length===0&&l.push(t("div",{className:"cm-bbox-fill",style:{width:"100%"}}));const i=s==="used"?[...l].reverse():l;return t("div",{className:"cm-bbox-bar segments"+(s==="used"?" rev":"")},...i)}function Ya(e,n,s,a,o){const r=[e("balanceBarRemaining",{amount:a})];return s.today>0&&r.push(e("balanceBarToday",{amount:n(s.today)})),s.pastSpend>0&&r.push(e("balanceBarSpent",{amount:n(s.pastSpend)})),o!==null&&o>0&&r.push(e("balanceBudgetCapLabel")+": "+n(o)),r.join(" · ")}function Be(e){const[n,s]=O(!1),[a,o]=O(null);return{busy:n,err:a,run:()=>{n||typeof e!="function"||(s(!0),o(null),Promise.resolve().then(e).catch(l=>{o(l?.message??String(l))}).finally(()=>{s(!1)}))}}}const he=(e,n)=>({role:"button",tabIndex:0,"aria-busy":e?"true":"false",onClick:n,onKeyDown:s=>{(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),n())}});function Pe(e,n){const s=[e("clickToRefresh")];return n.busy&&s.push(e("refreshing")),n.err&&s.push("⚠ "+e("balanceRefreshFailed",{message:n.err})),s}const vo="https://platform.deepseek.com/usage";function Va(e){return t("a",{className:"cm-bal-link",href:vo,target:"_blank",rel:"noreferrer noopener",title:e("balanceRechargeLink"),"aria-label":e("balanceRechargeLink"),onClick:n=>n.stopPropagation(),onKeyDown:n=>n.stopPropagation()},t("svg",{width:14,height:14,viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0},t("path",{d:"M8 4H4a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-4M11 3h6v6M9 11l8-8"})))}function Co(e){const{state:n,wide:s,api:a}=e,o=n.balance,r=z(Q(n.config)),l=Be(a?()=>a.refreshBalance():null);if(!o||o.status==="off")return null;if(o.status==="error")return t($,{portal:!0,label:[r("balanceQueryFailed",{message:o.message||r("unknownError")}),...Pe(r,l)].join("; "),side:"right",delayMs:300},t("div",{"data-cm-display":"balance",className:"cm-foot clickable"+(s?"":" cm-foot-rail")+" cm-bal-err"+(l.busy?" busy":""),...he(l.busy,l.run)},s?t(L,null,r("balance")," ",t("span",{className:"cm-num"},r("queryFailed"))):"⚠"));const i=[r("balanceTitle"),r("totalBalance",{amount:Te(o.totalBalance,n.config,o.currency)}),r("grantedToppedUp",{granted:Te(o.grantedBalance,n.config,o.currency),toppedUp:Te(o.toppedUpBalance,n.config,o.currency)}),r("updatedAt",{time:o.fetchedAt>0?new Date(o.fetchedAt).toLocaleTimeString():"—"}),...n.reconcile?.ok===!1?["⚠ "+n.reconcile.message]:[],...Pe(r,l)].join("; ");return t($,{portal:!0,label:i,side:"right",delayMs:300},t("div",{"data-cm-display":"balance",className:"cm-foot clickable"+(s?"":" cm-foot-rail")+(l.busy?" busy":""),...he(l.busy,l.run)},s?t(L,null,t("span",{className:"cm-balance-name"},r("balance"),Va(r)),t("span",{className:"cm-num cm-bal-amt"},Te(o.totalBalance,n.config,o.currency)),n.reconcile?.ok===!1?" ⚠":""):t(Nt,{size:16})))}function Ao(e){const{state:n,wide:s,api:a}=e,o=n.config,r=n.balance,l=z(Q(o)),i=Be(a?()=>a.refreshBalance():null);if(!r||r.status!=="ok")return null;const d=So(n,o),u=Te(r.totalBalance,o,r.currency),c=g=>Te(g,o,r.currency),m=[l("balanceTitle"),Ya(l,c,d,u,d.cap),l("grantedToppedUp",{granted:Te(r.grantedBalance,o,r.currency),toppedUp:Te(r.toppedUpBalance,o,r.currency)}),l("updatedAt",{time:r.fetchedAt>0?new Date(r.fetchedAt).toLocaleTimeString():"—"}),...n.reconcile?.ok===!1?["⚠ "+n.reconcile.message]:[],...Pe(l,i)].join("; "),b=t(L,null,t("div",{className:"cm-bbox-head"},t("span",{className:"cm-balance-name"},t("span",{className:"cm-bbox-label"},l("balance")),Va(l)),t("span",{className:"cm-bbox-pct cm-num cm-bal-amt"},u)),t(Yt,{segments:d,direction:ue(o,"balance")}));return t($,{portal:!0,label:m,side:"right",delayMs:300},t("div",{"data-cm-display":"balance",className:"cm-bbox clickable"+(s?"":" rail")+(i.busy?" busy":""),...he(i.busy,i.run)},s?b:t("div",{className:"cm-bbox-rail cm-num"},Math.round(d.remainingPct)+"%")))}function Vt(e,n){const s=typeof e?.label=="string"?e.label:"",a=typeof e?.labelEn=="string"?e.labelEn:"";return n==="en"?a||s||"Custom balance":s||a||"自定义余额"}function at(e,n,s){if((s??e?.customBalance)?.adapter==="tokenrhythm")return"CNY";if((s??e?.customBalance)?.adapter==="aliyun"&&["CNY","USD","EUR"].includes(n?.unit))return n.unit;const a=s?.unit??e?.customBalance?.unit;return["CNY","EUR","USD","CREDITS"].includes(a)?a:["CNY","EUR","CREDITS"].includes(n?.unit)?n.unit:"USD"}function nt(e,n,s,a){const o=at(n,s,a),r=Number(e);if(!Number.isFinite(r))return"—";const l=n?.currency==="USD"?1:Number(n?.exchangeRate);if((a??n?.customBalance)?.convertToDisplayCurrency===!0&&o==="USD"&&Number.isFinite(l)&&l>0){const c=r*l;return Number.isFinite(c)?me(c,n):"—"}const i=o==="CREDITS",d=Math.max(2,Math.min(6,Math.floor(Number(n?.decimals)||4)));return(i?"":o==="CNY"?"¥":o==="EUR"?"€":"$")+Da(r,d)+(i?" Credits":"")}function $t(e,n,s,a,o=null){const r=nt(e.remaining,n,e,o);if((o??n?.customBalance)?.adapter==="tokenrhythm")return s("customBalanceRemaining",{amount:r});const l=b=>nt(b,n,e,o);if(a&&n.balance?.showProgressBar===!0){const b=zt(a,n,e,o);return[Ya(s,l,b,r,b.cap),s("updatedAt",{time:e.fetchedAt>0?new Date(e.fetchedAt).toLocaleTimeString():"—"})].join(" · ")}const i=e.spend!==null?l(e.spend):"—",d=e.maxBudget!==null?l(e.maxBudget):"—",u=at(n,e,o)==="CREDITS"?NaN:Number(n?.balance?.budgetCap),c=Number.isFinite(u)&&u>0?s("balanceBudgetCapLabel")+": "+l(u):"",m=e.maxBudget!==null&&e.spend!==null?s("customBalanceLine",{remaining:r,spend:i,maxBudget:d,time:e.fetchedAt>0?new Date(e.fetchedAt).toLocaleTimeString():"—"}):s("customBalanceRemaining",{amount:r});return c?m+" · "+c:m}function Po(e,n,s,a,o){const r=Vt(o??n.customBalance??{},Q(n)),l=nt(a.remaining,n,a,o),i=zt(e,n,a,o);return{level:"ok",rail:Math.round(i.remainingPct)+"%",body:t(L,null,t("div",{className:"cm-bbox-head"},t("span",{className:"cm-bbox-label"},r),t("span",{className:"cm-bbox-pct cm-num cm-bal-amt"},l)),t(Yt,{segments:i,direction:ue(n,"balance")}))}}function St(e,n){const s=n?.customBalances??[],a=Array.isArray(e?.customBalances)?e.customBalances:[],o=[];return s.forEach((r,l)=>{if(r?.enabled!==!0||r.display!=="sidebar"&&r.display!=="both")return;const i=a.find(d=>d.index===l)??(a.length===1&&s.length===1?a[0]:null);o.push({index:l,entry:r,snapshot:i})}),o.length===0&&a.length===0&&n?.customBalance?.enabled===!0&&(n.customBalance.display==="sidebar"||n.customBalance.display==="both")&&e?.customBalance?.status&&e.customBalance.status!=="off"&&o.push({index:null,entry:n.customBalance,snapshot:e.customBalance}),o}function Mo(e){const{state:n,wide:s,api:a}=e,o=n.config,r=z(Q(o)),l=St(n,o);return l.length===0?null:t(L,null,l.map(({index:i,entry:d,snapshot:u})=>t(d.adapter==="tokenrhythm"?$a:To,{key:"cb-"+i,state:n,wide:s,api:a,t:r,index:i,entry:d,snapshot:u})))}function To(e){const{state:n,wide:s,api:a,t:o,index:r,entry:l,snapshot:i}=e,d=n.config;if(i==null||i.status!=="ok")return null;const u=Be(a?()=>a.refreshCustomBalance(r):null),c=Po(n,d,o,i,l),m=[$t(i,d,o,n,l),...Pe(o,u)].join(" · ");return t($,{portal:!0,label:m,side:"right",delayMs:300},t("div",{"data-cm-display":"customBalance",className:"cm-bbox clickable"+(c.level==="ok"?"":" "+c.level)+(s?"":" rail")+(u.busy?" busy":""),...he(u.busy,u.run)},s?c.body:t("div",{className:"cm-bbox-rail cm-num"},c.rail)))}function Ro(e){const{state:n,wide:s,api:a}=e,o=n.config,r=z(Q(o)),l=St(n,o);return l.length===0?null:t(L,null,l.map(({index:i,entry:d,snapshot:u})=>t($a,{key:"cbr-"+i,state:n,wide:s,api:a,t:r,index:i,entry:d,snapshot:u})))}function $a(e){const{state:n,wide:s,api:a,t:o,index:r,entry:l,snapshot:i}=e,d=n.config,u=i??Na(r);if(u.status==="off")return null;const c=Be(a?()=>a.refreshCustomBalance(r):null),m=Vt(l??d.customBalance??{},Q(d));if(u.status==="error")return t($,{portal:!0,label:[u.message||o("unknownError"),...Pe(o,c)].join("; "),side:"right",delayMs:300},t("div",{"data-cm-display":"customBalance",className:"cm-foot clickable"+(s?"":" cm-foot-rail")+" cm-bal-err"+(c.busy?" busy":""),...he(c.busy,c.run)},s?t(L,null,t("span",{className:"cm-bal-label",title:m},m),t("span",{className:"cm-num cm-bal-amt"},o("queryFailed"))):"⚠"));const b=nt(u.remaining,d,u,l),g=[$t(u,d,o,n,l),...Pe(o,c)].join(" · ");return t($,{portal:!0,label:g,side:"right",delayMs:300},t("div",{"data-cm-display":"customBalance",className:"cm-foot clickable"+(s?"":" cm-foot-rail")+(c.busy?" busy":""),...he(c.busy,c.run)},s?t(L,null,t("span",{className:"cm-bal-label",title:m},m),t("span",{className:"cm-num cm-bal-amt"},b)):t(Nt,{size:16})))}function Ja(e){const s=(e.useCost?e.useCost(f=>f):void 0)?.state;if(!s)return null;const a=s.config,o=z(Q(a)),r=a.corner??{enabled:!1,goRolling:!0,goWeekly:!0,goMonthly:!0,budget:!0},l=s.goQuota,i=a?.goQuota?.enabled!==!1&&l?.status==="ok",d=f=>f!==null&&typeof f?.percent=="number"?Math.round(Math.max(0,Math.min(100,f.percent))):null,u=[];if(a.sidebarModels?.dock){const f=dn(s,a.sidebarModels.period,o);f.length&&u.push({key:"model-top",text:t(L,null,t("span",{className:"cm-bal-label"},f[0].label),t("span",{className:"cm-bal-amt"},K(f[0].cost,a))),tip:f[0].label+" "+K(f[0].cost,a),level:"ok"})}const c=(f,y,x,P)=>{if(!r.enabled||!f||!i)return;const N=d(y);if(N===null)return;const k=typeof y.resetsAt=="string"&&y.resetsAt.length>0?o("goResetAt",{time:new Date(y.resetsAt).toLocaleString()}):"";u.push({key:x,text:o(x)+" "+N+"%",tip:o(P)+": "+N+"%"+(k?" · "+k:""),level:N>=100?"over":N>=80?"warn":"ok"})},m=a?.goQuota?.main==="weekly"||a?.goQuota?.main==="monthly"?a.goQuota.main:"rolling",b=[m,...["rolling","weekly","monthly"].filter(f=>f!==m)],g=f=>f==="rolling"?["goRolling",l?.rolling,"goShortRolling","cornerGoRolling"]:f==="weekly"?["goWeekly",l?.weekly,"goShortWeekly","cornerGoWeekly"]:["goMonthly",l?.monthly,"goShortMonthly","cornerGoMonthly"];for(const f of b){const[y,x,P,N]=g(f);c(r[y]===!0,x,P,N)}if(r.enabled&&r.budget===!0){const f=a.budget??{enabled:!1,amount:100,period:"month"};if(f.enabled===!0){const y=Number(a.exchangeRate),P=(s.budgetUsed??(f.period==="day"?U(s.today,a):f.period==="all"?U(s.total,a):U(s.month,a)))*(Number.isFinite(y)&&y>0?y:1),N=Math.max(0,Number(f.amount)||0),k=N>0?Math.min(999,P/N*100):null;if(k!==null){const p=k>=100?"over":k>=80?"warn":"ok";u.push({key:"budget",text:o("budgetShort")+" "+k.toFixed(1)+"%",tip:o("budgetOf",{period:o(Ye[f.period]??"periodMonth")})+" · "+o("usedOf",{used:me(P,a),amount:me(N,a)}),level:p})}}}return u.length===0?null:t("div",{className:"cm-corner"},u.map(f=>t($,{portal:!0,key:f.key,label:f.tip,side:"top",delayMs:500},t("span",{className:"cm-corner-chip"+(f.key==="model-top"?" cm-model-top":"")+(f.level==="ok"?"":" "+f.level)},f.text))))}function Jt(e,n,s){if(!Array.isArray(n)||n.length===0||!Number.isFinite(e))return null;const a=(b,g)=>{const f=new Date(e);return f.setUTCDate(f.getUTCDate()+b),f.setUTCHours(g,0,0,0),f.getTime()},o=new Set,r=Math.max(12,Math.min(380,(Array.isArray(s)?s.length:0)+7));for(let b=-r;b<=r;b+=1){o.add(a(b,16));for(const g of n){const f=Number(g?.start),y=Number(g?.end);!Number.isFinite(f)||!Number.isFinite(y)||(o.add(a(b,f)),o.add(a(y<=f?b+1:b,y)))}}const l=[...o].sort((b,g)=>b-g).flatMap(b=>{const g=ht(b-1,void 0,n,s),f=ht(b,void 0,n,s);return g===f?[]:[{at:b,intoPeak:f}]});let i=null,d=null;for(const b of l)b.at<=e&&(i===null||b.at>i.at)&&(i=b),b.at>e&&(d===null||b.at<d.at)&&(d=b);const u=Ra(e,s),c=u??Ta(e);return c!==null?d===null?null:{inPeak:!1,weekend:u===null,...u?{holiday:!0}:{},prevAtMs:c.start,nextAtMs:d.at,nextIntoPeak:d.intoPeak}:i===null||d===null?null:{inPeak:ht(e,void 0,n,s),weekend:!1,prevAtMs:i.at,nextAtMs:d.at,nextIntoPeak:d.intoPeak}}function Fe(e,n){if(!e||e.peakNotice===!1||e.peakEnabled!==!0)return null;const s=Date.parse(e.peakEffectiveAt||"");if(Number.isFinite(s)&&n<s)return null;const a=Array.isArray(e.peakWindows)?e.peakWindows:[];return Jt(n,a,e.peakHolidays)}function ot(e){return e.holiday===!0?{short:"holidayShort",chip:"holidayChip",notice:"holidayAllOffPeak"}:e.weekend===!0?{short:"weekendShort",chip:"weekendChip",notice:"weekendAllOffPeak"}:e.inPeak?{short:"peakShort",chip:"peakShort",notice:"peakNotice"}:{short:"offPeakShort",chip:"offPeakShort",notice:"offPeakActive"}}function Re(e,n,s){const a=Math.max(0,e.nextAtMs-n),o=Math.max(1,Math.ceil(a/6e4)),r=Math.floor(o/60),l=o%60;return r>0?l>0?s("countdownHourMinute",{h:r,m:l}):s("countdownHoursOnly",{h:r}):s("countdownMinute",{m:o})}function Za(e){const n=ge(null),s=ge(e.actions);s.current=e.actions,Y(()=>{const d=n.current;if(!d)return;try{typeof d.showPopover=="function"?d.showPopover():d.removeAttribute("popover")}catch{d.removeAttribute("popover")}let u=!1;const c=f=>{d.contains(f.target)&&(u=!0,f.stopPropagation())},m=f=>{u&&(u=!1,f.stopPropagation())},g=[["pointerdown",c],["pointerup",m],["pointercancel",m],["touchstart",c],["click",f=>{if(!d.contains(f.target))return;f.stopPropagation();const y=f.target.closest?.("[data-cm-action]");y&&!y.disabled&&s.current[y.dataset.cmAction]?.()}]];for(const[f,y]of g)window.addEventListener?.(f,y,{capture:!0,passive:!0});return()=>{for(const[f,y]of g)window.removeEventListener?.(f,y,!0);try{d.hidePopover()}catch{}}},[]);const{actions:a,children:o,...r}=e,l=t("div",{...r,ref:n,popover:"manual"},o);let i;try{i=De("react-dom")?.createPortal}catch{}return typeof i=="function"?i(l,document.body):l}const Oo="cm-peak-alert-preview";function Bo(e){return e.useCost?.(s=>s)?.state?.config?.peakEnabled===!0?t(st,{...e,view:"alert"}):null}function Lo(e){const{config:n,t:s}=e,[a,o]=O(Date.now());Y(()=>{const d=window.setInterval(()=>o(Date.now()),3e4);return()=>window.clearInterval(d)},[]);const r=Fe(n,a);if(r===null)return null;const l=ot(r),i=r.nextIntoPeak?s("nextPeakIn",{time:Re(r,a,s)}):s("nextOffPeakIn",{time:Re(r,a,s)});return t($,{portal:!0,label:s(l.notice),side:"right",delayMs:300},t("div",{"data-cm-display":"peak",className:"cm-peak-strip "+(r.weekend||r.holiday?"weekend":r.inPeak?"peak":"off")},t("div",{className:"cm-peak-track"},t("div",{className:"cm-peak-segment cm-peak-high"}),t("div",{className:"cm-peak-segment cm-peak-low"}),t("div",{className:"cm-peak-marker",style:{left:r.weekend||r.holiday?"50%":r.inPeak?"25%":"75%"}})),t("span",{className:"cm-peak-chip"},s(l.chip)+" · "+i)))}function Do(e){const{config:n,t:s}=e,[a,o]=O(Date.now());Y(()=>{const d=window.setInterval(()=>o(Date.now()),3e4);return()=>window.clearInterval(d)},[]);const r=Fe(n,a);if(r===null)return null;const l=ot(r),i=r.nextIntoPeak?s("nextPeakIn",{time:Re(r,a,s)}):s("nextOffPeakIn",{time:Re(r,a,s)});return t($,{portal:!0,label:s(l.notice),side:"right",delayMs:300},t("div",{"data-cm-display":"peak",className:"cm-peak-classic "+(r.weekend||r.holiday?"weekend":r.inPeak?"peak":"off")},t("div",{className:"cm-peak-classic-marker",style:{left:r.weekend||r.holiday?"50%":r.inPeak?"25%":"75%"}}),t("div",{className:"cm-peak-track"},t("div",{className:"cm-peak-segment cm-peak-high"}),t("div",{className:"cm-peak-segment cm-peak-low"})),t("span",{className:"cm-peak-classic-chip"},s(l.chip)+" · "+i)))}let Xa;function Eo(){return Xa??=De.async("./client.peak.js").then(e=>e.mount({peakView:Fe,peakPhaseAt:Jt,phaseLabelKeys:ot,countdownText:Re,resolveLocale:Q,makeT:z,Tooltip:$,FloatingCard:Za,renderSidebarFooter:At})).catch(e=>{throw Xa=null,e})}function st(e){return t(Ne,{...e,load:Eo,quiet:!0})}function Io(e){const n=e.useCost?.(s=>s)?.state;return n&&n.config.sidebar!==!1&&!n.config.sidebarSummaryPromptSeen?t(st,{...e,state:n,config:n.config,view:"summary-guide"}):null}function jo(e){const n=e.useCost?.(a=>a)?.state,s=n?.config;return s?.peakEnabled&&s.peakNotice!==!1&&!s.peakProgressPromptSeen?t(st,{...e,state:n,config:s,view:"guide"}):null}function en(e,n,s){return t(n?.peakStyle==="progress"?st:n?.peakStyle==="classic"?Do:Lo,{config:n,t:s})}function qo(e){const{config:n,t:s}=e,[a,o]=O(Date.now());Y(()=>{const u=window.setInterval(()=>o(Date.now()),3e4);return()=>window.clearInterval(u)},[]);const r=Fe(n,a);if(r===null)return null;const l=ot(r),i=r.nextIntoPeak?s("nextPeakIn",{time:Re(r,a,s)}):s("nextOffPeakIn",{time:Re(r,a,s)}),d=[s(l.notice),i];return t($,{portal:!0,label:d,side:"right",delayMs:300},t("div",{className:"cm-peak-rail "+(r.weekend||r.holiday?"weekend":r.inPeak?"peak":"off"),"aria-label":d.join("; ")},t("div",{className:"cm-peak-rail-track"},t("div",{className:"cm-peak-rail-segment cm-peak-rail-high"}),t("div",{className:"cm-peak-rail-segment cm-peak-rail-low"}),t("div",{className:"cm-peak-rail-marker",style:{top:r.weekend||r.holiday?"50%":r.inPeak?"25%":"75%"}})),t("span",{className:"cm-peak-rail-label"},s(l.short))))}function Ho(e){const{config:n,t:s}=e,[a,o]=O(Date.now());Y(()=>{const u=window.setInterval(()=>o(Date.now()),3e4);return()=>window.clearInterval(u)},[]);const r=Fe(n,a);if(r===null)return null;const l=ot(r),i=r.nextIntoPeak?s("nextPeakIn",{time:Re(r,a,s)}):s("nextOffPeakIn",{time:Re(r,a,s)}),d=[s(l.notice),i];return t($,{portal:!0,label:d,side:"right",delayMs:300},t("div",{className:"cm-peak-rail-classic "+(r.weekend||r.holiday?"weekend":r.inPeak?"peak":"off"),"aria-label":d.join("; ")},t("div",{className:"cm-peak-rail-classic-track"},t("div",{className:"cm-peak-rail-classic-segment peak"}),t("div",{className:"cm-peak-rail-classic-segment off"}),t("div",{className:"cm-peak-rail-classic-marker",style:{top:r.weekend||r.holiday?"50%":r.inPeak?"25%":"75%"}})),t("span",{className:"cm-peak-rail-classic-label"},s(l.short))))}function Qo(e,n,s){return t(n?.peakStyle==="progress"?st:n?.peakStyle==="classic"?Ho:qo,{config:n,t:s,rail:!0})}function Uo(e,n,s){const a=n.budget??{enabled:!1,amount:100,period:"month"},o=Number(n.exchangeRate),l=(e.budgetUsed??(a.period==="day"?U(e.today,n):a.period==="all"?U(e.total,n):U(e.month,n)))*(Number.isFinite(o)&&o>0?o:1),i=Math.max(0,Number(a.amount)||0),d=i>0?Math.min(999,l/i*100):null,u=we(d===null?null:Math.min(100,d),ue(n,"budget")),c=a.detail!==!1;return{level:d===null?"ok":d>=100?"over":d>=80?"warn":"ok",rail:u.label===null?"—":Math.round(u.label)+"%",body:t(L,null,t("div",{className:"cm-bbox-head"},t("span",{className:"cm-bbox-label"},s("budget")),t("span",{className:"cm-bbox-pct cm-num"},u.label===null?"—":u.label.toFixed(1)+"%")),t("div",{className:"cm-bbox-bar"},t("div",{className:"cm-bbox-fill",style:{width:u.width+"%"}})),c?t(L,null,t("div",{className:"cm-bbox-line cm-num"},s("usedOf",{used:me(l,n),amount:me(i,n)}))):null)}}function Fo(e,n,s){const a=e.goQuota,o=n?.goQuota?.main==="weekly"||n?.goQuota?.main==="monthly"?n.goQuota.main:"rolling",r=a[o],l=r!==null&&typeof r?.percent=="number"?Math.max(0,Math.min(100,Number(r.percent)||0)):0,i=g=>g!==null&&typeof g?.percent=="number"?Math.round(Math.max(0,Math.min(100,g.percent)))+"%":"—",d=g=>s(g==="rolling"?"goShortRolling":g==="weekly"?"goShortWeekly":"goShortMonthly"),u=["rolling","weekly","monthly"].filter(g=>g!==o),c=r!==null&&typeof r?.resetsAt=="string"&&r.resetsAt.length>0?s("goResetAt",{time:new Date(r.resetsAt).toLocaleString()}):"",m=n?.goQuota?.detail!==!1,b=we(l,ue(n,"go"));return{level:l>=100?"over":l>=80?"warn":"ok",rail:b.label===null?"—":Math.round(b.label)+"%",body:t(L,null,t("div",{className:"cm-bbox-head"},t("span",{className:"cm-bbox-label"},s("goQuotaRowLabel")+" "+d(o)),t("span",{className:"cm-bbox-pct cm-num"},b.label===null?"—":Math.round(b.label)+"%")),t("div",{className:"cm-bbox-bar"},t("div",{className:"cm-bbox-fill",style:{width:b.width+"%"}})),m?t(L,null,t("div",{className:"cm-bbox-line cm-num"},u.map(g=>d(g)+" "+i(a[g])).join(" · ")),c?t("div",{className:"cm-bbox-line"},c):null):null)}}function tn(e,n,s){const a=ue(n,"go");return["rolling","weekly","monthly"].map((o,r)=>{const l=e?.[o],i=typeof l?.percent=="number"&&Number.isFinite(l.percent)?Math.max(0,Math.min(100,l.percent)):null,d=l?.resetsAt&&Number.isFinite(Date.parse(l.resetsAt))?" · "+s("goResetAt",{time:new Date(l.resetsAt).toLocaleString()}):"";return s(["goWindowRolling","goWindowWeekly","goWindowMonthly"][r])+": "+(i===null?"—":Le(we(i,a).label,a,s))+d}).concat(e?.fetchedAt>0?s("goQuotaFetchedAt",{time:new Date(e.fetchedAt).toLocaleTimeString()}):[]).join(`
|
|
2
|
+
window.__ModuleLoader__.load({id:"dsh-cost-meter",factory:De=>{var fa={exports:{}},Ot=fa.exports;Object.defineProperty(Ot,Symbol.toStringTag,{value:"Module"});const Me=De("react"),{Tooltip:$}=De("@deepseek-ai/dsh-client-ui-primitives"),ft=!1,Sn='var(--dsw-alias-~.cm-~background:~align-items:center~font-size:~border-radius:~display:flex;~flex-direction:column;~white-space:nowrap~padding:~min-width:~font-weight:600~overflow:hidden~text-overflow:ellipsis~justify-content:~font-variant-numeric:tabular-nums~line-height:~max-width:~display:inline-flex;~box-sizing:border-box~cursor:pointer~gap:~border:~flex-wrap:wrap~flex:none~display:grid;~width:100%~margin:~position:relative;~var(--dsh-frame-top-clearance,0px)~height:100%;~text-align:right~overflow-wrap:anywhere~transform:translate(-50%);~grid-template-columns:1fr~grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));~position:absolute;~font:inherit;~font-weight:~overscroll-behavior:contain~flex-wrap:nowrap;~user-select:none~padding-bottom:env(safe-area-inset-bottom)~display:~flex:0 1 auto;~overflow:auto;~margin-top:4px~left:50%;~border-right:5px solid transparent;~flex-shrink:0~border-left:5px solid transparent;~width:auto~height:8px~transform:translate(-50%,-50%);~grid-column:1/-1~z-index:2~-webkit-app-region:no-drag;~var(--cm-opaque-base,#fff)~margin-top:6px~height:4px~transition:left .4s ease;~transition:top .4s ease;~grid-auto-flow:column;~outline:none~border-color:#34a853~height:6px;~pointer-events:auto;~var(--cm-dialog-top)~width:40px;~outline-offset:1px~text-align:center;~margin-top:10px;~overflow-x:auto~position:fixed;~top:50%;~z-index:9999;~align-items:~height:12px;~height:22px;~height:56px;~content:"";~inset:auto;~opacity:0;~opacity:1;~width:8px;'.split("~"),ba='Ɓsection Ɓtabs>Ɓtab{ƒƃ;Ǝcenter;Ɠ;min-height:32px;Ɖ6px 10px;ƛ0;ƥƄ13px;Ɛ20px;vertical-align:middle}Ɓpeak-alert{Ʒ147483647;max-height:calc(100dvh - 32px);ƭƧ}Ɓpeak-alert,Ɓpeak-alert *{-webkit-app-region:no-drag}Ɓpeak-alert Ɓpeak-alert-actions{ƜƘ}Ɓpeak-alert Ɓpeak-alert-actions button{pointer-events:auto}@property --cm-dialog-top{syntax:"<length>";inherits:true;initial-value:0px}Ɓstat-dialog{--cm-dialog-top:var(--dsh-frame-chrome-top,Ɲ);inset:ǃ 0 0 0;ƛauto;width:min(1000px,94vw);Ƒcalc(100vw - 32px);max-height:calc(100vh - ǃ - 32px);ƌ;Ɠ;Ɖ0;ƅ16px;Ɩ1px solid ƀborder-l1);color:ƀlabel-primary);Ƃƀbg-layer-2,ƀbg-base,#fff))}Ɓstat-dialog[open]{Ɔflex-direction:column}Ɓloading{Ɖ24px;min-height:160px;ƙƕ18px}Ɓloading i{height:18px;ƅ5px;Ƃƀbg-layer-1,#f2f3f5)}Ɓloading i:first-child{width:35%}Ɓloading i:last-child{width:65%}Ɓstat-dialog-head{Ɔƃ;Ǝspace-between;ƕ16px;Ɖ16px 24px;border-bottom:1px solid ƀborder-l3);Ƙ}Ɓstat-dialog-head strong{Ƅ15px;Ʀ500}Ɓstat-dialog-body{ƭmin-height:0;Ɖ20px 24px;Ƨ}Ɓstat-dialog::backdrop{inset:var(--dsh-frame-chrome-top,Ɲ) 0 0;Ƃ#0005}Ɓroot{ƬƊ0;Ƒ100%;džƄ12px;Ɛ20px;color:ƀlabel-tertiary);ƈ;ƌ;ƍ}Ɓsession-cost{ƙgrid-template-columns:max-content minmax(0,1fr);Ɗmin-content}Ɓsession-amount{Ƒ40vw;ƌ;ƍ}Ɓsession-detail{Ɗ0;ƌ;ƍ}Ɓchip{ƒƃ;ƕ4px;Ƒ180px;Ɖ0 8px;ǎƅ6px;Ƃƀbg-layer-2);Ƅ12px;Ɛ22px;color:ƀlabel-secondary);ƈ;ƌ;ƍ}Ɓfoot{Ɔƃ;ƕ6px;height:32px;Ɖ0 8px;ƅ8px;Ƅ12px;color:ƀlabel-secondary);ƈ;ƌ}Ɓfoot:hover,Ɓfoot-rail:hover,Ɓcorner-chip:hover,Ɓqchip:hover,Ɓtab:hover,Ɓbtn:hover{Ƃƀinteractive-bg-hover)}Ɓfoot-rail{ƚ;Ǝcenter;Ɖ0;Ƅ13px;Ƌ;color:ƀlabel-primary)}Ɓnum{Ə}Ɓgo-rail{Ƅ11px;Ʀ700;color:ƀlabel-primary)}Ɓgo-list{ƆƇƕ10px}Ɓgo-row{Ɔƃ;ƕ8px;Ƅ12px}Ɓgo-label{Ƙ;width:88px;color:ƀlabel-secondary)}Ɓgo-bar{flex:1;ǁƅ3px;Ƃƀinteractive-bg-hover);ƌ}Ɓgo-fill{ƞƅ3px;Ƃƀbrand-primary)}Ɓgo-num{Ƙ;Ɗ44px;Ɵ;Ƌ;Ə}Ɓgo-reset{Ƙ;Ƒ230px;Ƅ11px;color:ƀlabel-tertiary);ƈ;ƌ;ƍ}Ɓgo-time{Ƅ11px;color:ƀlabel-tertiary)}Ɓgo-row.main Ɓgo-label{Ƌ;color:ƀlabel-primary)}Ɓcorner{ƒƬƗ;Ǝcenter;ƃ;ƕ6px;Ɗ0;Ƒ100%}Ɓcorner-chip{ƒƃ;height:20px;Ɖ0 8px;ƅ6px;Ƃƀbg-layer-2);Ƅ11px;Ɛ20px;color:ƀlabel-secondary);ƈ;Ə}Ɓqstrip{ƆƗ;Ǝcenter;ƃ;ƕ6px;ƚ;Ƒvar(--dsh-chat-content-width,720px);ƛ0 auto;Ɠ;Ɖ0 calc(var(--dsh-composer-side-clearance,0px) + 16px)}Ɓqchip{ƒƃ;ƕ6px;ǎƉ0 8px;ƅ6px;Ƃtransparent;Ƅ11px;Ɛ22px;color:ƀlabel-secondary);ƈ;Ə;cursor:default}Ɓqchip Ɓqlabel{color:ƀlabel-primary);Ƌ}Ɓqchip Ɓqbar{ƫblock;width:44px;ƻ;ƅ2px;Ƃƀborder-l1);ƌ;Ƙ}Ɓqchip Ɓqfill{ƫblock;ƞƅ2px;Ƃƀstate-ok-primary,#3ba272)}Ɓqchip Ɓqseg{ƒƃ;ƕ4px}Ɓqchip Ɓqsep{width:1px;ǍƂƀborder-l1);Ƙ}Ɓqchip Ɓqtext{color:ƀlabel-secondary)}Ɓqchip.warn Ɓqfill{Ƃƀstate-warn-primary)}Ɓqchip.over Ɓqfill{Ƃƀstate-error-primary)}Ɓqchip.action{Ɣ;Ʃ;ƿ}Ɓqchip.action:focus-visible{box-shadow:0 0 0 2px ƀbrand-primary)}Ɓqchip.action:active{transform:translateY(.5px)}Ɓplan-provider{ƆƇƕ8px}Ɓplan-provider+Ɓplan-provider{margin-top:14px}Ɓplan-provider-name{Ɔƃ;ƕ8px;Ƅ13px;Ƌ}Ɓplan-updated{Ƅ11px;Ʀ400;color:ƀlabel-tertiary)}Ɓplan-tag{Ƙ;margin-left:6px;Ɖ0 6px;ƅ999px;Ɩ1px solid ƀborder-l1);Ƅ10px;Ɛ16px;color:ƀstate-warn-primary)}Ɓplan-reset,Ɓplan-method{Ƅ11px;color:ƀlabel-tertiary)}Ɓqguide{--cm-guide-top:var(--dsh-frame-overlay-top,calc(var(--dsh-frame-chrome-top,Ɲ) + 18px));ljǑƛ0;top:max(var(--cm-guide-top),env(safe-area-inset-top,0px));ǂƸƯơNjƑ440px;width:calc(100% - 32px);Ɩ1px solid ƀborder-l1);ƅ12px;Ƃƀbg-layer-2);box-shadow:0 8px 28px #0000002e;Ɖ14px 16px;Ƅ13px;color:ƀlabel-primary);ƆƇƕ8px}Ɓqguide h4{ƛ0;Ƅ13px;Ƌ}Ɓqguide p{ƛ0;Ƅ12px;Ɛ1.6;color:ƀlabel-secondary)}Ɓqguide Ɓbuttons{Ɔƕ8px;Ǝflex-end}Ɓsection{ƆƇƕ20px;Ɖ4px 2px 24px;Ƅ13px;color:ƀlabel-primary)}Ɓcards{ƙƣƕ12px}Ɓoverview-grid{container:cm-overview / inline-size;Ɗ0}Ɓoverview-grid>Ɓcards{grid-template-columns:repeat(var(--cm-overview-count,3),minmax(0,1fr))}Ɓoverview-grid Ɓcard{Ɗ0;ƆƇƕ6px;Ɖ12px 14px}Ɓoverview-grid :is(Ɓcard-title,Ɓcard-sub){ƛ0}Ɓoverview-grid Ɓcard-value{Ɛ1.35;Ə;Ơ}Ɓoverview-grid Ɓcard-sub{Ɛ1.5;Ơ}@container cm-overview (Ƒ460px){Ɓoverview-grid>Ɓcards{Ƣ}}Ɓcards-toggle{Ɔƃ;ƕ6px;ƛ-6px 2px 0 auto;width:fit-content;Ƅ12px;color:ƀlabel-tertiary);Ɣ;Ʃ}Ɓcards-toggle:hover{color:ƀlabel-primary)}Ɓcards-toggle input{ƛ0;Ɣ}Ɓcard,Ɓbudget{Ɩ1px solid ƀborder-l1);ƅ12px;Ɖ14px 16px;Ƃƀbg-layer-1)}Ɓcard-title{Ƅ12px;color:ƀlabel-tertiary);ƛ0 0 8px}Ɓcard-value{Ƅ20px;Ɛ28px;Ƌ}Ɓcard-sub{Ƅ12px;color:ƀlabel-tertiary);Ʈ}Ɓh{Ƅ13px;Ƌ;ƛ0}Ɓcollapse-h{Ɔƃ;ƕ8px;Ƃnone;Ɩnone;Ɖ0;ƛ0;Ɣ;color:inherit;ƥtext-align:left}Ɓcollapse-h:hover Ɓh{color:ƀinteractive-text-hover,ƀlabel-primary))}Ɓcaret{Ƙ;width:0;height:0;Ʋưborder-top:6px solid ƀlabel-secondary);transform:rotate(-90deg);transition:transform .15s ease}Ɓcaret.open{transform:rotate(0)}Ɓcollapse-body{ƆƇƕ12px;margin-top:12px}Ɓtoolbar{ƆƎflex-end;ƃ;ƕ10px}Ɓtoolbar Ɓfield{flex-direction:row;ƃ;ƕ8px}Ɓtoolbar Ɓfield label{ƛ0;Ƅ12px;color:ƀlabel-tertiary)}Ɓtoolbar Ɓinput{Ɗ150px;Ɖ4px 10px}Ɓtabs-row{Ɔƃ;Ǝspace-between;ƕ12px;Ɨ;border-bottom:1px solid var(--dsh-alias-border-l1);padding-bottom:10px}Ɓtabs{Ɔƃ;ƕ4px;Ɨ}Ɓtab{ƥƄ13px;color:ƀlabel-secondary);Ƃtransparent;Ɩnone;ƅ8px;Ɖ6px 14px;Ɣ;ƈ}Ɓtab.active{Ƃƀstate-business-primary);color:ƀlabel-primary-inverted);Ƌ}Ɓtabs-row Ɓmsg{Ɖ2px 10px}Ɓtabs-row>Ɓhint,Ɓtabs-row>Ɓmsg{margin-inline-start:auto}Ɓnote{Ƅ12px;color:ƀlabel-tertiary);ƛ0}Ɓtable{ƚ;border-collapse:collapse;Ƅ12px}Ɓtable th,Ɓtable td{text-align:left;Ɖ7px 10px;border-bottom:1px solid ƀborder-l1);ƈ}Ɓtable th{color:ƀlabel-tertiary);Ʀ500}Ɓtable td.num,Ɓtable th.num{Ɵ;Ə}Ɓtable tr:last-child td{border-bottom:none}Ɓtable trƁrow-click{Ɣ}Ɓtable trƁrow-click:hover td{Ƃƀbg-hover,rgba(127,127,127,.08))}Ɓsess-title{Ƒ260px;ƌ;ƍ;ƈ}Ɓsess-id{Ƅ11px;font-family:ui-monospace,Consolas,monospace;color:ƀlabel-tertiary)}Ɓempty{Ƅ12px;color:ƀlabel-tertiary);Ɖ8px 0}Ɓscroll{max-height:320px;ƭƖ1px solid ƀborder-l1);ƅ10px}Ɓgrid{ƙƣƕ12px}Ɓfield{ƆƇƕ6px;Ɗ0}Ɓfield label{Ƅ12px;color:ƀlabel-secondary)}Ɓinput,Ɓinput option,Ɓinput optgroup{color:ƀlabel-primary);Ƃƀbg-base)}Ɓinput{ƥƄ13px;Ɩ1px solid ƀborder-l1);ƅ8px;Ɖ6px 10px;ƿ}Ɓinput:is(select){color-scheme:light dark}Ɓinput:is(select) :is(option,optgroup){color:ƀlabel-primary)!important;Ƃƀbg-base)!important;Ƃrgb(from ƀbg-base) r g b / 1)!important}Ɓinput:focus{border-color:ƀstate-business-primary)}Ɓinput.narrow{Ƒ120px}Ɓrange-row{Ɔƃ;ƕ10px}Ɓrange{flex:1;Ɗ0;accent-color:ƀstate-business-primary)}Ɓrange-value{Ƙ;Ɗ44px;Ƅ12px;color:ƀlabel-tertiary);Ɵ}Ɓcheck{Ɔƃ;ƕ8px;Ƅ13px;color:ƀlabel-primary);Ɣ}Ɓpricing-page,Ɓpricing-content{ƙƕ20px;Ɗ0}Ɓpricing-heading{Ɔƃ;Ǝspace-between;ƕ12px}Ɓpricing-heading Ɓh{Ƅ16px;margin-bottom:6px}Ɓpricing-heading Ɓnote{Ɛ1.6}Ɓpricing-unit{Ʊ;color:ƀlabel-tertiary);Ƅ11px}Ɓpricing-nav{Ɔƕ4px;Ɖ4px;ƅ10px;Ƃƀbg-layer-1);Ɩ1px solid ƀborder-l1)}Ɓpricing-nav-item{flex:1;Ɗ0;ƥcolor:ƀlabel-secondary);Ƃtransparent;Ɩ0;ƅ7px;Ɖ8px 10px;Ɣ}Ɓpricing-nav-item.active{color:ƀstate-business-primary);Ƃƀbg-base);box-shadow:0 1px 3px #0000000d;Ƌ}Ɓpricing-nav-item:focus-visible{outline:2px solid ƀstate-business-primary)}Ɓpricing-tools{ƙƕ16px}Ɓpricing-tool{ƆƇƕ12px;Ɖ16px;Ɩ1px solid ƀborder-l1);ƅ12px;Ɗ0}Ɓpricing-tool>Ɓpeak-panel{Ɖ0;Ɩ0;Ƃnone}Ɓpricing-tool p{Ɛ1.65}@media(Ƒ480px){Ɓpricing-heading{njflex-start;Ƈƕ4px}Ɓpricing-nav-item{Ɖ8px 4px;Ƅ12px}Ɓpricing-tool{Ɖ12px}}Ɓprice-card{Ɩ1px solid ƀborder-l1);ƅ10px;Ɖ12px 14px;ƆƇƕ10px;Ƃƀbg-layer-1)}Ɓprice-head{Ɔƃ;ƕ8px;Ɨ}Ɓprice-name{Ƌ;Ƅ13px;Ơ;Ɗ0;flex:1 1 180px}Ɓprice-legacy{Ƅ11px;color:ƀlabel-tertiary);Ɩ1px solid ƀborder-l1);ƅ999px;Ɖ1px 8px}Ɓprice-locked{Ƅ11px;color:ƀstate-business-primary);Ɩ1px solid ƀstate-business-primary);ƅ999px;Ɖ1px 8px;cursor:help}Ɓprice-row{ƙgrid-template-columns:52px repeat(4,minmax(0,1fr));ƕ8px;ƃ}Ɓprice-row span{Ƅ12px;color:ƀlabel-tertiary)}Ɓprice-row input{ƚ;Ɗ0;Ɠ;Ɖ6px 5px}Ɓprice-multiplier{Ɔƃ;Ǝspace-between;ƕ6px 12px;Ɨ;Ƅ12px;color:ƀlabel-tertiary)}Ɓprice-multiplier label{ƒƃ;ƕ5px;Ɣ}Ɓprice-multiplier input{ƛ0;accent-color:ƀbrand-primary,#4d6bfe)}Ɓprice-row input[aria-invalid=true]{border-color:#d64c4c}Ɓbuttons{ƆƗ;ƕ10px;ƃ}Ɓbtn{ƥƄ13px;color:ƀlabel-primary);Ƃƀbutton-elevated-fill);Ɩ1px solid ƀborder-l1);ƅ8px;Ɖ6px 14px;Ɣ}ƁbtnƁstat-entry{Ƅ12px;Ɛ20px;Ɖ0 6px;Ɗ0;Ƒ100%;ƈ;ƌ;ƍ;Ʊ}@media(Ƒ640px){Ɓstat-header{ƫnone}}Ɓbtn.primary{Ƃƀstate-business-primary);border-color:transparent;color:ƀlabel-primary-inverted)}Ɓbtn.primary:hover{opacity:.88;Ƃƀstate-business-primary)}Ɓbtn.danger,Ɓmsg.err,Ɓbal-line.err,Ɓbal-err{color:ƀstate-error-primary)}Ɓbtn.small{Ɖ3px 10px;Ƅ12px}div:has(>[data-slot="conversation.composer.dock"] Ɓstat-entry){ƨcolumn-ƕ6px}Ɓmsg{Ƅ12px;Ɛ18px;Ɖ8px 12px;ƅ8px;Ɩ1px solid ƀborder-l1)}Ɓmsg.ok{color:ƀstate-success-primary)}Ɓhint{Ƅ12px;color:ƀlabel-tertiary)}Ɓbudget{ƆƇƕ10px}Ɓpeak-alert{ljǑƛ0;Ɠ;ǂƸcolor:ƀlabel-primary);Njwidth:340px;Ƒcalc(100vw - 32px);Ɖ16px;ƅ14px;Ƃƀbg-layer-2);Ɩ1px solid ƀborder-l2);box-shadow:0 14px 36px #00000038;ƆƇƕ8px;Ƅ12px;animation:cm-peak-alert-in .22s cubic-bezier(.2,.8,.2,1)}Ɓpeak-alertƁpeak-alert-corner{right:20px;bottom:20px}Ɓpeak-alertƁpeak-alert-center{NJƯƵanimation-name:cm-peak-alert-in-center}Ɓpeak-alert-peak{border-top:3px solid ƀstate-warn-primary)}Ɓpeak-alert-offpeak{border-top:3px solid ƀstate-info-primary,#3b82f6)}Ɓpeak-alert-badge{ƒƃ;ƕ6px;Ƅ11px;Ƌ;letter-spacing:.4px;text-transform:uppercase}Ɓpeak-alert-badge:before{ǐǔƴ;ƅ50%;ƂcurrentColor;box-shadow:0 0 0 4px color-mix(in srgb,currentColor 16%,transparent)}Ɓpeak-alert-peak Ɓpeak-alert-badge{color:ƀstate-warn-primary)}Ɓpeak-alert-offpeak Ɓpeak-alert-badge{color:ƀstate-info-primary,#3b82f6)}Ɓpeak-alert-title{Ƅ14px;Ƌ;color:ƀlabel-primary)}Ɓpeak-alert-body{color:ƀlabel-secondary);Ɛ1.55}Ɓpeak-alert-actions{ƆƎflex-end;ƕ8px;margin-top:2px}Ɓrow{Ɔƕ8px;ƃ;Ɨ}@keyframes cm-peak-alert-in{0%{ǒtransform:translateY(10px) scale(.98)}to{Ǔtransform:translateY(0) scale(1)}}@keyframes cm-peak-alert-in-center{0%{ǒtransform:translate(-50%,calc(-50% + 10px))}to{Ǔtransform:translate(-50%,-50%)}}Ɓbudget-head{Ɔƃ;Ǝspace-between;ƕ8px}Ɓquota-name{flex:1;Ɗ0}Ɓbudget-bar{ƴ;ƅ999px;Ƃƀbg-layer-3);ƌ}Ɓbudget-fill{ƞƅ999px;Ƃƀstate-business-primary);transition:width .3s ease}Ɓug{ƆƇƕ12px}Ɓug-total{Ƅ13px;color:ƀlabel-primary)}Ɓug-grid{ƙƾgrid-template-rows:repeat(7,auto);ƕ3px;ƚ}Ɓug-cell{ƚ;aspect-ratio:1/1;ƅ3px;Ɠ;Ƃcolor-mix(in srgb,ƀlabel-primary) 8%,transparent);Ɩ1px solid ƀborder-l1)}Ɓug-cell.l1,Ɓug-cell.l2,Ɓug-cell.l3,Ɓug-cell.l4{border-color:transparent}Ɓug-cell.l1{Ƃcolor-mix(in srgb,ƀstate-business-primary) 25%,ƀbg-layer-3))}Ɓug-cell.l2{Ƃcolor-mix(in srgb,ƀstate-business-primary) 50%,ƀbg-layer-3))}Ɓug-cell.l3{Ƃcolor-mix(in srgb,ƀstate-business-primary) 75%,ƀbg-layer-3))}Ɓug-cell.l4{Ƃƀstate-business-primary)}Ɓug-cell.today{outline:1px solid ƀlabel-secondary);Dž}Ɓug-months{ƙƾƕ3px;ƚ;Ƅ10px;color:ƀlabel-tertiary);Ʈ}Ɓug-monthc{ƈ}Ɓbudget-line{Ƅ13px;color:ƀlabel-secondary)}Ɓbudget-line.over{color:ƀstate-error-primary)}Ɓpeak-strip{Ɔƃ;ƕ6px;Ʈ;Ɗ0}Ɓpeak-track{ƜƆflex:1;ǁƊ0;ƅ999px;ƌ;Ɩ1px solid ƀborder-l1);Ƃƀbg-layer-3)}Ɓpeak-segment{ƞflex:1}Ɓpeak-high{Ƃ#ff9800}Ɓpeak-low{Ƃƀstate-business-primary)}Ɓpeak-marker{Ƥtop:0;Ưwidth:2px;ƞƂƀbg-base);box-shadow:0 0 0 1px ƀlabel-tertiary);ơƼƷ}Ɓpeak-chip{Ƅ11px;Ƌ;Ɛ1.2;ƈ;color:ƀlabel-secondary)}Ɓpeak-classic{ƜƆƇƕ5px;ƺ;Ɗ0}Ɓpeak-classic Ɓpeak-track{Ƙ;ƴ}Ɓpeak-classic-marker{Ƥtop:0;Ưwidth:4px;ǍƂƀbg-base);Ɩ1.5px solid #ff9800;box-shadow:0 0 0 1px ƀbg-base),0 0 0 2px ƀlabel-tertiary);ơƼƷ;ƅ2px}Ɓpeak-classic-marker:after{ǐƤtop:-7px;ƯơƲưborder-top:6px solid #ff9800}Ɓpeak-classic.off Ɓpeak-classic-marker{border-color:ƀstate-business-primary)}Ɓpeak-classic.off Ɓpeak-classic-marker:after{border-top-color:ƀstate-business-primary)}Ɓpeak-classic-chip{align-self:flex-start;Ƅ11px;Ƌ;Ɛ1.4;Ƃƀbg-layer-2);Ɩ1px solid ƀborder-l1);ƅ999px;Ɖ2px 8px;ƈ;color:ƀlabel-secondary)}Ɓpeak-strip.peak Ɓpeak-chip,Ɓpeak-classic.peak Ɓpeak-classic-chip,Ɓpeak-rail.peak Ɓpeak-rail-label,Ɓpeak-rail-classic.peak Ɓpeak-rail-classic-label{color:#ff9800}Ɓpeak-strip.off Ɓpeak-chip,Ɓpeak-classic.off Ɓpeak-classic-chip,Ɓpeak-rail.off Ɓpeak-rail-label,Ɓpeak-rail-classic.off Ɓpeak-rail-classic-label{color:ƀstate-business-primary)}Ɓpeak-strip.weekend Ɓpeak-chip,Ɓpeak-classic.weekend Ɓpeak-classic-chip,Ɓpeak-rail.weekend Ɓpeak-rail-label,Ɓpeak-rail-classic.weekend Ɓpeak-rail-classic-label{color:#34a853}Ɓpeak-classic.weekend Ɓpeak-classic-marker{ǀ}Ɓpeak-classic.weekend Ɓpeak-classic-marker:after{border-top-color:#34a853}Ɓpeak-rail{ƆƇƃ;ƕ3px;DŽƓ}Ɓpeak-rail-track{ƜƆƇwidth:6px;Ǐƅ999px;ƌ;Ɩ1px solid ƀborder-l1);Ƃƀbg-layer-3)}Ɓpeak-rail-segment{ƚ;flex:1}Ɓpeak-rail-high{Ƃ#ff9800}Ɓpeak-rail-low{Ƃƀstate-business-primary)}Ɓpeak-rail-marker{Ƥleft:0;NJƚ;height:2px;Ƃƀbg-base);box-shadow:0 0 0 1px ƀlabel-tertiary);transform:translateY(-50%);ƽƷ}Ɓpeak-rail-label{Ƅ10px;Ƌ;Ɛ1.2;ƈ;color:ƀlabel-secondary)}Ɓpeak-rail-classic{ƆƇƃ;ƕ3px;DŽƓ}Ɓpeak-rail-classic-track{ƜƆƇwidth:14px;Ǐƅ999px;Ɩ1px solid ƀborder-l1);Ƃƀbg-layer-3)}Ɓpeak-rail-classic-segment{Ɯƚ;flex:1;ƌ}Ɓpeak-rail-classic-segment.peak{Ƃ#ff9800;ƅ999px 999px 0 0}Ɓpeak-rail-classic-segment.off{Ƃƀstate-business-primary);ƅ0 0 999px 999px}Ɓpeak-rail-classic-marker{ƤƯNJwidth:12px;ƻ;Ƃƀbg-base);Ɩ1.5px solid #ff9800;box-shadow:0 0 0 1px ƀbg-base),0 0 0 2px ƀlabel-tertiary);ƵƽƷ;ƅ2px}Ɓpeak-rail-classic.off Ɓpeak-rail-classic-marker{border-color:ƀstate-business-primary)}Ɓpeak-rail-classic-label{Ƅ10px;Ƌ;Ɛ1.2;ƈ}Ɓpeak-rail-classic.weekend Ɓpeak-rail-classic-marker{ǀ}Ɓgrid-group{grid-column:1 / -1;margin-top:8px;Ƅ12px;Ƌ;color:ƀlabel-tertiary);border-bottom:1px solid ƀborder-l1);padding-bottom:4px}Ɓgrid-group:first-child{margin-top:0}Ɓpeak-preview{margin-top:8px}Ɓtoggle-btn{Ƃnone;Ɩnone;Ɖ0;Ƅ12px;Ƌ;color:ƀstate-business-primary);Ɣ}Ɓtoggle-btn:hover{text-decoration:underline}Ɓcollapsed-note{Ʈ}Ɓcatalog-vendor{LJƄ12px;Ƌ;color:ƀlabel-tertiary);border-bottom:1px solid ƀborder-l1);padding-bottom:2px;Ɔƃ;Ǝspace-between;ƕ8px}Ɓvendor-toggle{Ɣ;Ʃ}Ɓvendor-toggle:hover{color:ƀlabel-secondary)}Ɓvendor-display{ƒƃ;ƕ4px;Ʀ400;Ƅ11px;color:ƀlabel-tertiary);ƈ}Ɓmstats-tabs{Ɔƕ8px;margin-bottom:8px}Ɓmstats-tab{Ƃnone;Ɩ1px solid ƀborder-l1);ƅ999px;Ɖ2px 12px;Ƅ12px;color:ƀlabel-secondary);Ɣ}Ɓmodel-costs Ɓmstats-tab.active{Ƃcolor-mix(in srgb,ƀstate-business-primary) 14%,ƀbg-base));border-color:ƀstate-business-primary);color:ƀlabel-primary);Ƌ}Ɓmstats-h{ƛ10px 0 4px;Ƅ12px;Ƌ;color:ƀlabel-secondary)}Ɓmstats-row{ƙgrid-template-columns:minmax(90px,170px) 1fr auto;ƕ8px;ƃ;Ƅ11px;Ɛ1.7}Ɓmstats-name{ƌ;ƍ;ƈ;color:ƀlabel-secondary)}Ɓmstats-label{ƶ;ƆƗ;ƃ;ƕ6px;ƺ}Ɓmstats-label Ɓmstats-name{flex:1;Ɗ90px}Ɓmstats-label~Ɓmstats-barbg{grid-column:1/3}Ɓmstats-label select{Ƒ100%;Ɗ0}Ɓmstats-barbg{Ɯheight:10px;ƅ999px;Ƃƀbg-layer-3);ƌ;ƫflex}Ɓmstats-bar{ƞƊ0;ƅ999px}Ɓmstats-bar.cost{Ƃ#ff9800}Ɓmstats-bar.hit{Ƃ#34a853}Ɓmstats-bar.value{Ƃ#a142f4}Ɓmstats-seg{ƞƊ0}Ɓmstats-seg.in{Ƃƀstate-business-primary)}Ɓmstats-seg.cache{Ƃ#ff9800}Ɓmstats-seg.out{Ƃ#34a853}Ɓmstats-val{ƈ;color:ƀlabel-secondary)}Ɓmstats-legend{Ɔƕ12px;Ƅ10px;color:ƀlabel-tertiary);ƛ2px 0 4px}Ɓmstats-dot{ƫinline-block;ǔƴ;ƅ2px;margin-right:3px}Ɓmstats-note{LJƄ10px;Ɛ1.6;color:ƀlabel-tertiary)}Ɓmatch-row{Ɔƃ;ƕ8px;Ɖ3px 0;Ƅ12px;Ɨ}Ɓmatch-row Ɓinput{flex:1;Ɗ160px}Ɓbudget-controls{ƙgrid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));ƕ12px}Ɓbbox{Ɩ1px solid ƀborder-l1);ƅ12px;Ɖ8px 10px;Ƃƀbg-layer-1);ƆƇƕ6px;Ɗ148px;Ɠ}Ɓbbox.rail{Ɖ6px;Ɗ0;DŽƃ;Ǝcenter;ƅ10px}Ɓbbox.warn{border-color:ƀstate-warn-primary)}Ɓbbox.over{border-color:ƀstate-error-primary)}Ɓbbox-head{Ɔƃ;Ǝspace-between;ƕ8px}Ɓbbox-label,Ɓbbox-pct{Ƅ12px;Ƌ;color:ƀlabel-primary)}Ɓbbox.warn Ɓbbox-pct{color:ƀstate-warn-primary)}Ɓbbox.over Ɓbbox-pct{color:ƀstate-error-primary)}Ɓbbox-bar{ǁƅ999px;Ƃƀbg-layer-3);ƌ}Ɓbbox-bar.segments{Ɔƴ}Ɓbbox-bar.segments Ɓbbox-fill{Ƙ;ƅ0;height:100%}Ɓbbox-bar.segments Ɓbbox-fill:first-child{ƅ999px 0 0 999px}Ɓbbox-bar.segments Ɓbbox-seg-today{Ƙ;ƞƂ#ff9800}Ɓbbox-bar.segments Ɓbbox-seg-spent{Ƙ;ƞƂƀinteractive-bg-hover);ƅ0 999px 999px 0}Ɓbbox-bar.segments.rev Ɓbbox-fill:first-child,Ɓbbox-bar.segments.rev Ɓbbox-seg-today:first-child{ƅ999px 0 0 999px}Ɓbbox-bar.segments.rev Ɓbbox-fill,Ɓbbox-bar.segments.rev Ɓbbox-fill:last-child,Ɓbbox-bar.segments.rev Ɓbbox-seg-today:last-child,Ɓbbox-bar.segments.rev Ɓbbox-seg-spent:last-child{ƅ0 999px 999px 0}Ɓbbox-bar.segments.rev Ɓbbox-seg-spent{ƅ0}Ɓdir-row{Ɔƃ;ƕ8px;ƺ}Ɓdir-label{flex:1 1 40%;Ƅ12px;color:ƀlabel-secondary)}Ɓdir-row Ɓinput{flex:1 1 60%;Ƴ}Ɓbbox-fill{ƞƅ999px;Ƃƀstate-business-primary)}Ɓbalance-name{ƒƃ;ƕ4px;Ɗ0}Ɓmodel-costs{Ƅ12px}Ɓmodel-costs Ɓbal-label{ƈ}Ɓmodel-top{ƕ4px;Ƒ180px;ƌ;ƍ}Ɓmodel-costs Ɓcollapse-h{Ɗ0;ƚ;ƈ}Ɓmodel-costs Ɓbbox-bar{margin-top:3px}Ɓbal-label{Ɗ0;ƌ;ƍ}Ɓbal-amt{margin-left:auto;Ɵ;Ʊ}Ɓbbox-pctƁbal-amt{color:ƀstate-business-primary)}Ɓbal-link{Ƙ;ƒƃ;Ǝcenter;Ɖ2px;ƅ4px;Ƅ12px;Ɛ16px;color:ƀlabel-tertiary);text-decoration:none;ƿ}Ɓbal-link:hover{color:ƀbrand-primary);Ƃƀinteractive-bg-hover)}Ɓbal-link:focus-visible{box-shadow:0 0 0 2px ƀbrand-primary)}Ɓbbox.warn Ɓbbox-fill,Ɓbbox Ɓbbox-section.warn Ɓbbox-fill,Ɓbbox Ɓmm-row.warn Ɓbbox-fill,Ɓbudget-fill.warn{Ƃƀstate-warn-primary)}Ɓbbox.over Ɓbbox-fill,Ɓbbox-section.over Ɓbbox-fill,Ɓmm-row.over Ɓbbox-fill,Ɓbudget-fill.over{Ƃƀstate-error-primary)}Ɓbbox-line{Ƅ12px;color:ƀlabel-tertiary)}Ɓbbox-rail{Ƅ11px;Ƌ;color:ƀlabel-primary)}Ɓbbox.warn Ɓbbox-pct,Ɓbbox.warn Ɓbbox-rail,Ɓbbox Ɓbbox-section.warn Ɓbbox-pct,Ɓbbox Ɓmm-row.warn Ɓbbox-pct,Ɓmm-row.warn Ɓbbox-label,Ɓcorner-chip.warn,Ɓqchip.warn,Ɓsimple-summary.warn{color:ƀstate-warn-primary)}Ɓbbox.over Ɓbbox-pct,Ɓbbox.over Ɓbbox-rail,Ɓbbox-section.over Ɓbbox-pct,Ɓmm-row.over Ɓbbox-pct,Ɓmm-row.over Ɓbbox-label,Ɓcorner-chip.over,Ɓqchip.over,Ɓsimple-summary.over{color:ƀstate-error-primary)}Ɓbbox-pair{ƆƇƕ0;Ɖ2px 10px}Ɓbbox-pair Ɓbbox-section{ƆƇƕ4px;Ɖ4px 0}Ɓbbox-pair Ɓbbox-bar{ƻ}Ɓbbox-divider{height:1px;Ƃƀborder-l1);ƛ0}Ɓbbox.clickable,Ɓfoot.clickable{Ɣ}Ɓbbox.clickable:hover{border-color:ƀstate-business-primary)}Ɓbbox.clickable:focus-visible,Ɓfoot.clickable:focus-visible{outline:2px solid ƀstate-business-primary);Dž}@keyframes cm-click-refresh-pulse{0%,to{opacity:.55}50%{opacity:1}}Ɓbbox.clickable.busy,Ɓfoot.clickable.busy{animation:cm-click-refresh-pulse 1.1s ease-in-out 2;cursor:progress}Ɓmm{Ɖ8px 10px;ƕ4px}Ɓmm-title{Ƅ12px;Ƌ;color:ƀlabel-primary)}Ɓmm-reset{Ƅ11px;color:ƀlabel-tertiary);ƶ}Ɓcodex-head>Ɓmm-title{Ɗ0;ƌ;ƍ;ƈ}Ɓcodex-resets{Ƙ;Ɵ}Ɓcodex-resets>span{ƫblock}Ɓfooter-stack.compact Ɓbbox[data-cm-display=codex]{grid:auto/1fr}Ɓbbox.rail[data-cm-display=codex] Ɓbbox-rail{Ƒ100%;Ơ;džƄ10px}Ɓgw-switcher{Ɣ;Ʃ;Ƅ11px;Ɖ1px 6px;ƅ999px;Ɩ1px solid ƀborder-l1);Ƃƀbg-layer-2);color:ƀlabel-secondary)}Ɓgw-switcher:hover{Ƃƀinteractive-bg-hover);color:ƀlabel-primary)}Ɓgw-sub{Ƅ11px;color:ƀlabel-tertiary);ƌ;ƍ;ƈ}Ɓmm-row{Ɔƃ;ƕ8px;Ɖ2px 0}Ɓmm-row Ɓbbox-label{Ƙ;Ƴ;Ɗ22px;Ƒ115px;Ʀ400;color:ƀlabel-secondary);Ə;ƈ;ƌ;ƍ;word-break:keep-all}Ɓmm-row Ɓbbox-bar{flex:1;Ɗ40px;height:6px}Ɓmm-row Ɓbbox-pct{Ƙ;Ɗ2.4em;Ɵ;Ə}Ɓmm-row.wide Ɓbbox-label{Ƴ;Ƒ64px;Ƭƈ;ƌ;ƍ}Ɓmm-row.wide Ɓmm-text{flex:1;Ɗ0;Ƅ12px;color:ƀlabel-secondary);Ɵ;Ə;ƈ;ƌ;ƍ}Ɓbal-line{Ƅ13px;color:ƀlabel-secondary)}Ɓbal-line.warn{color:ƀstate-warn-primary,#b45309)}:has(>Ɓfooter-stack),:has(>[data-slot="sidebar.footer.action"]>Ɓfooter-stack){Ɨ}:has(>Ɓfooter-stack.rail),:has(>[data-slot="sidebar.footer.action"]>Ɓfooter-stack.rail){Ƈƨƃ;ƕ6px}Ɓfooter-stack{ƆƘ;order:-1;Ƈƕ6px;ƚ;Ɗ0;Ƒ100%;njstretch;Ɠ}Ɓfooter-stack.rail{ƃ;order:1}Ɓfooter-stack Ɓbbox{ƚ;Ɗ0}Ɓfooter-stack Ɓfoot{ƚ;Ɠ}Ɓfooter-stack Ɓfoot:not(Ɓfoot-rail){Ǝspace-between}Ɓmodel-costs Ɓcollapse-h{ƚ}Ɓmodel-costs Ɓcollapse-h>Ɓbal-amt{margin-left:auto}Ɓfooter-stack.compact Ɓbbox{ƙgrid-template-columns:repeat(2,minmax(0,1fr));column-ƕ12px;row-ƕ2px;ƃ}Ɓfooter-stack.compact Ɓbbox>*{ƶ}Ɓfooter-stack.compact Ɓbbox>Ɓmm-row{grid-column:auto}Ɓfooter-stack.compact Ɓmm-row{Ɗ0;ƕ4px;flex-wrap:nowrap}Ɓfooter-stack.compact Ɓmm-row Ɓbbox-label{ƬƊ0;Ƒ45%;Ƴ}Ɓfooter-stack.compact Ɓmm-row Ɓbbox-bar{Ɗ0;flex:1 1 0}Ɓfooter-stack.simple{ƕ0;max-height:38vh;max-height:min(38dvh,320px);ƭƧ;scrollbar-width:thin;Ɩ1px solid ƀborder-l1);ƅ10px;Ƃƀbg-layer-1)}Ɓfooter-stack.simple>*{Ʊ}Ɓfooter-stack.simple:focus-visible{outline:2px solid ƀstate-business-primary);outline-offset:2px}Ɓfooter-stack.simple Ɓbbox{Ɩ0;ƅ0;Ɖ4px 8px;ƕ2px;Ƃtransparent;box-shadow:inset 0 -1px ƀborder-l1)}Ɓfooter-stack.simple Ɓmm-title{Ƅ11px;Ɛ16px;ƛ0}Ɓfooter-stack.simple Ɓmm-row{ƕ6px;min-height:16px;Ɛ16px;ƛ0;Ɖ0}Ɓfooter-stack.simple Ɓmm-text{Ƅ11px}Ɓfooter-stack.simple>Ɓpeak-strip,Ɓfooter-stack.simple>Ɓpeak-classic{ƛ0;Ɖ4px 8px}Ɓsimple-summary>span{Ɗ0;ƈ;ƌ;ƍ}Ɓfooter-stack.simple Ɓbbox-pct{Ƅ12px;Ɛ18px}Ɓfooter-stack.simple Ɓbbox-bar{ƻ}Ɓfooter-stack.simple Ɓbbox-line{ƫnone}Ɓfooter-stack.simple Ɓfoot{height:26px;Ɖ0 8px}Ɓfooter-stack.simple Ɓpeak-classic{margin-top:2px;ƕ2px}Ɓfooter-stack.simple Ɓpeak-classic-chip{Ɖ0 4px;Ɩ0;Ƃtransparent}Ɓsimple-summary{position:sticky;top:0;z-index:1;Ƃƀbg-layer-1);ƆƎspace-between;ƃ;ƕ8px;Ɖ5px 8px;Ƅ12px;Ƌ;border-bottom:1px solid ƀborder-l1)}Ɓfooter-stack.simple.rail{Ɩ0;Ƃtransparent}Ɓfooter-stack.simple.rail Ɓbbox{Ɖ4px 2px}Ɓfooter-stack.simple Ɓpeak-rail-track,Ɓfooter-stack.simple Ɓpeak-rail-classic-track{height:28px}@media(Ƒ640px){Ɓcards,Ɓgrid,Ɓbudget-controls{Ƣ}}@media(Ƒ1023px){Ɓsection{padding-bottom:calc(16px + env(safe-area-inset-bottom))}Ɓcards,Ɓoverview-grid>Ɓcards,Ɓgrid,Ɓbudget-controls{Ƣ;ƕ8px}Ɓcard{Ɖ10px 12px}Ɓcard-value{Ƅ17px}Ɓcard-sub,Ɓbal-line,Ɓbal-amt{Ơ}Ɓbuttons,Ɓtoolbar,Ɓrow,Ɓbudget-head{Ɨ}Ɓbtn,Ɓtab,Ɓfoot,Ɓcorner-chip{min-height:36px;height:auto}Ɓtabs{ƨLj}Ɓtab{Ƙ}Ɓqstrip{Ɖ0 8px}Ɓqguide{Ƒcalc(100vw - 24px);--cm-guide-top:var(--dsh-frame-overlay-top,calc(var(--dsh-frame-chrome-top,Ɲ) + 10px + env(safe-area-inset-top)))}Ɓpeak-alert{Ƒcalc(100vw - 24px)}Ɓpeak-alertƁpeak-alert-corner{right:12px;left:12px;bottom:calc(12px + env(safe-area-inset-bottom));Ƴ}Ɓfooter-stack{ƪ}Ɓstat-dialog-body{Ɖ14px;padding-bottom:calc(14px + env(safe-area-inset-bottom))}}body[data-dsh-pocket-layout=mobile] :is(Ɓcards,Ɓoverview-grid>Ɓcards,Ɓgrid,Ɓbudget-controls){Ƣ;ƕ8px}body[data-dsh-pocket-layout=mobile] Ɓtabs{ƨLj}body[data-dsh-pocket-layout=mobile] Ɓfooter-stack{ƪ}body[data-dsh-pocket-layout=mobile] :is(Ɓpeak-alert,Ɓqguide){Ƒcalc(100vw - 24px)}body{--cm-opaque-base:#fff}body[data-ds-dark-theme],body[data-theme=dark],html[data-theme=dark] body{--cm-opaque-base:#151517}Ɓsection,Ɓstat-dialog,Ɓqguide,Ɓpeak-alert,Ɓfooter-stack.simple{Ƃƹ;Ƃrgb(from ƀbg-layer-2,ƀbg-base,#fff)) r g b / 1)}Ɓtoday-values{ƒƗ;Ǝflex-end;ƕ2px 8px;Ɗ0;Ƒ100%}Ɓtoday-values>span{ƈ}Ɓtoday-values[data-both=true]>[data-cm-today=tokens]{Ƅ11px;color:ƀlabel-secondary)}Ɓsimple-summary{Ƃƹ;Ƃrgb(from ƀbg-layer-1,ƀbg-base,#fff)) r g b / 1)}'.replace(/[ƀ-ǿ]/g,e=>Sn[e.charCodeAt(0)-384]),ga="dsh-cost-meter/client.css";if(typeof document<"u"&&document.head!==void 0){const e=document.querySelector("style[data-plugin-css="+JSON.stringify(ga)+"]");if(e?.textContent!==ba){const n=e??document.createElement("style");n.dataset.plugin="dsh-cost-meter",n.dataset.pluginCss=ga,n.textContent=ba,e===null&&document.head.appendChild(n)}}const vn="sessionCostTitle|sessionDetailTokens|sessionDetailCache|cost|sessionLine|sessionLineCompact|sessionCostCompact|quotaUnlimited|pricingCnyHint|balanceQueryFailed|unknownError|balance|queryFailed|balanceTitle|reconcileLabel|totalBalance|grantedToppedUp|updatedAt|budgetOf|usedOf|todayShare|monthTotal|budget|todayCostTitle|todayTokensTitle|tokensUnit|callsTokens|monthCost|totalCost|today|sidebarTodayMetric|sidebarTodayCost|sidebarTodayTokens|periodDay|periodMonth|periodAll|periodCustomRange|noHistory|colDate|colCalls|colInTok|colCacheTok|colOutTok|colCost|noSessionsToday|colSession|enableBudget|budgetAmountLabel|budgetPeriodLabel|startDate|endDate|rangeText|budgetDisabledNote|budgetStatus|overLimit|nearLimit|legacyModel|defaultFallback|remove|tierBase|tierOffPeak|tierPeak|balanceApiKey|balanceKeyHint|balanceLine|balanceQueryFailedHint|balanceNotQueried|accountBalance|refreshing|refreshBalance|customBalanceTitle|customBalanceAdd|tokenRhythmBalanceAdd|tokenRhythmBalanceNote|aliyunBalanceAdd|aliyunBalanceNote|customBalanceConfigNote|customBalanceLabelZh|customBalanceLabelEn|customBalanceUrl|customBalanceUrlHint|customBalanceHttp|workBuddyBalanceAdd|workBuddyBalanceNote|customBalanceMethod|customBalanceHeaders|customBalanceBody|customBalanceBodyNote|customBalanceExtract|customBalanceDisplayLabel|customBalanceRefreshInterval|customBalanceUnitLabel|customBalanceConvert|customBalanceConvertNote|balanceBarRemaining|balanceBarToday|balanceBarSpent|balanceShowProgressBar|barDirectionsTitle|barDirectionsHint|barDirection_balance|barDirection_budget|barDirection_go|barDirection_plan|barDirectionRemaining|barDirectionUsed|balanceBudgetCapLabel|balanceBudgetCapHint|customBalanceInvalidJson|customBalanceHeadersVarNote|customBalanceAllowedHosts|customBalanceAllowedHostsHint|customBalanceCredentialsTitle|customBalanceCredentialsHint|customBalanceNoPlaceholders|enable|customBalanceLine|customBalanceRemaining|refreshCustomBalance|goQuotaTitle|goQuotaRowLabel|goWindowRolling|goWindowWeekly|goWindowMonthly|goResetAt|resetReached|resetDays|resetHours|resetMinutes|quotaUsed|quotaRemaining|goQuotaPercent|goQuotaFetchedAt|goQuotaDisplayLabel|goQuotaRefreshIntervalLabel|goQuotaRefreshMinutesUnit|goQuotaKeyLabel|goMainLabel|goDetailLabel|credentialConfiguredOf|credentialNotConfigured|credentialSave|credentialEdit|credentialClear|credentialSaving|credentialInputHint|secretMigrationPending|budgetDetailLabel|refreshGoQuota|goQuotaNotQueried|codingPlanAnthropic|codingPlanZai|codingPlanMinimax|codingPlanMinimaxTitle|minimaxOrigin|minimaxOriginNote|codingPlanRemain5h|codingPlanRemain7d|balanceRechargeLink|codexQuotaTitle|codexQuotaEnable|codexQuotaFive|codexQuotaWeek|codexQuotaReset|codexQuotaUnavailable|codexQuotaEnabled|codexQuotaSidebar|codexQuotaStrip|includeSubagentCost|gatewayQuotaEmpty|codingPlanDisplayLabel|codingPlanDisplayNote|codingPlanKeyLabel|codingPlanRefreshIntervalLabel|refreshCodingPlan|loginCodingPlan|loggingIn|codingPlanNotQueried|gatewayQuotaTitle|gatewaySourceAdd|gatewaySourceLabel|gatewaySourceBaseURL|gatewaySourceDisplay|gatewaySourceRefreshInterval|gatewaySourceAllowlist|gatewaySourceCredential|gatewaySourceStatus|gatewaySourceUnsupported|gatewaySourceUnknown|gatewaySourceNoAccounts|gatewaySourceFetchedAt|gatewaySwitchAccount|gatewayOnlyGemini|refresh|quotaEnableFirst|quotaRefreshReady|quotaRemove|quotaSectionNote|codingPlanDisabledNote|goQuotaDisabledNote|cornerLabel|cornerEnabledLabel|cornerGoRolling|cornerGoWeekly|cornerGoMonthly|cornerBudget|goShortRolling|goShortWeekly|goShortMonthly|goShortDaily|budgetShort|ledgerReadFailed|readingLedger|ledgerUnavailable|syncFailed|historyCleared|clearFailed|peakOff|peakNotEffective|peakActive|peakNotice|offPeakActive|weekendAllOffPeak|weekendChip|weekendShort|holidayAllOffPeak|holidayChip|holidayShort|peakHolidaysLabel|weekendRuleNote|peakShort|offPeakShort|peakStyleLabel|peakStyleCompact|peakStyleClassic|peakAlertLabel|peakAlertAheadLabel|peakAlertTargetLabel|peakAlertTargetPeak|peakAlertTargetOffPeak|peakAlertTargetBoth|peakAlertTitlePeak|peakAlertTitleOffPeak|peakAlertBody|peakAlertPhasePeak|peakAlertPhaseOffPeak|peakAlertBtn|peakAlertBadgePeak|peakAlertBadgeOffPeak|peakAlertPositionLabel|peakAlertPositionCorner|peakAlertPositionCenter|peakAlertWebNotifyLabel|peakAlertWebNotifyHint|peakAlertPreviewLabel|peakAlertPreviewPeak|peakAlertPreviewOffPeak|peakAlertPreviewTag|peakPanelTitle|peakNoticeHiddenHint|groupGeneral|groupMoney|groupSidebar|sidebarSimple|sidebarSimpleNote|sidebarSimpleTitle|sidebarSimpleBody|sidebarSimpleOn|sidebarSimpleOff|sidebarSimpleError|closeGuide|todayBudget|sidebarStyleLabel|sidebarStyleStandard|sidebarStyleCompact|restorePriceMatches|removePriceMatchHint|groupCorner|groupDetail|unmountBtn|catalogUnpriced|priceLockBadge|priceLockHint|priceLockRelease|modelStatsTitle|modelsTitle|modelsCount|modelsOther|models_enabled|models_defaultOpen|models_remember|models_tokens|models_shares|models_dock|models_period|models_summary|models_position|models_topN|models_refreshSeconds|modelsTotal|modelsTop|modelsFirst|modelsAfter|modelsLast|modelStatsToday|modelStatsHistory|modelStatsCostH|modelStatsTokensH|modelStatsHitH|modelStatsHitUnreported|modelStatsHitUnreportedTip|modelStatsValueH|modelStatsInput|modelStatsCache|modelStatsOutput|modelStatsEmpty|modelStatsBlended|modelStatsNote|modelStatsLegacy|sessionLineSplit|sessionLineSplitCompact|costChipPlan|sessionDetailPlan|planStatsTitle|planStatsEmpty|planStatsWindow|planStatsPercent|planStatsLocal|planStatsPer1|planStatsFull|planStatsResets|planStatsMethodSample|planStatsMethodLive|planStatsMethodNone|planStatsMethodSampleAt|planStatsConfidenceLow|planStatsCurveTitle|planStatsDaily|planStatsWeekly|planStatsMonthly|planStatsCurveEmpty|planStatsBarTip|planStatsNote|billingClassLabel|billingClassPlan|billingClassAuto|billingClassApi|catalogDisplayLabel|catalogDisplayHint|priceTableDisplayHint|priceMultiplySeparate|priceMultiplyHint|priceMultiplyAll|priceMultiplySingle|priceMultiplyInvalid|priceMatchLabel|priceMatchAuto|priceMatchExact|priceMatchNote|unmatchedTitle|unmatchedHint|overrideTargetDefault|overrideRemove|overrideTargetLocal|matchedTitle|matchedHint|matchedKeepAuto|overrideNone|mountedSuffix|flatInput|flatCached|flatCacheWrite|cacheWriteFallback|flatOutput|deepseekMountedHeader|codingPlanKimi|codingPlanOpenrouter|codingPlanSiliconflow|codingPlanCommandcode|codingPlanClinepass|codingPlanScnet|codingPlanVolcengine|codingPlanQwen|codingPlanMimo|wbT|wbH|codingPlanFactory|codingPlanOpendesign|opendesignWorkspace|opendesignNote|factoryPool|factoryPoolBoth|factoryOrg|mimoWindowPlan|mimoWindowCompensation|codingPlanWindowBalance|qwenSource|qwenSourceLocal|qwenSourceCli|qwenSourceBailian|qwenCliNote|qwenBailianNote|qwenPlanCreditsLabel|qwenPlanStartLabel|qwenRatesLabel|qwenRatesModelPlaceholder|qwenRatePlaceholder|qwenRate_input|qwenRate_cachedInput|qwenRate_output|qwenRateDraftNote|qwenRatesAdd|qwenLocalNote|scnetPlanCreditsLabel|scnetPlanStartLabel|scnetLocalNote|volcengineAccessKeyIdLabel|volcengineSecretAccessKeyLabel|volcengineNote|volcengineAccessKeyPlaceholder|volcengineSecretPlaceholder|countdownHoursOnly|countdownHourMinute|countdownMinute|nextOffPeakIn|nextPeakIn|peakSummary|noPeakWindows|unknown|cardToday|cardMonth|cardTotal|cardTotalSub|externalUsage|combinedUsage|externalStale|externalHistory|cardsFootnote|timezoneHint|todaySessions|historyExpandHint|historySessionsLoading|historyNoSessions|historySessionsError|sessionRankTitle|sessionRankHint|sessionRankEmpty|sessionRankLoading|sessionRankError|sessionRankLimit|showSessionIdLabel|cardsTogglePlanTotal|cardsTogglePlanTotalHint|hideOfficialBalanceLabel|hideTodayCostLabel|hideSessionCostHeader|hideSessionCostDock|hideTurnCost|sessionRankSort|sessionSortCostDesc|sessionSortCostAsc|sessionSortTimeDesc|sessionSortTimeAsc|sessionSortRecent|history|usageTitle|usageTotal|usageDay|usageEmpty|usageSectionLabel|usagePositionLabel|usagePositionCost|usagePositionGeneral|usagePositionSection|displaySettings|tabOverview|tabQuotas|tabUsage|tabPricing|tabDisplay|historyDataTitle|positionLabel|positionDock|positionHeader|off|quotaStripGroup|quotaStripEnable|quotaStripShowBudget|quotaStripShowGo|quotaStripShowPlans|quotaStripNote|quotaStripGuideTitle|quotaStripGuideBody|quotaStripGuideOn|quotaStripGuideOff|clickToRefresh|balanceClickGuideTitle|balanceClickGuideBody|balanceClickGuideOk|sidebarLabel|sidebarOn|currencyLabel|currencyCny|currencyUsd|currencyEur|symbolLabel|rateLabel|decimalsLabel|balanceDisplayLabel|balanceSidebar|balanceSettings|balanceBoth|refreshIntervalLabel|peakEnabledLabel|peakNoticeLabel|badgeNote|priceTableTitle|pricingCurrencyLabel|pricingCurrencyUsd|pricingCurrencyCny|pricingCurrencyNote|priceTableNote|datedPriceNote|defaultModelId|newModelPlaceholder|addModel|dataSync|saving|autoSaveFailed|autoSavedAt|autoSaveHint|confirmFetch|apply|cancel|syncFromDocs|syncScopeNote|confirmReset|importLegacy|confirmImportLegacy|legacyImportFailed|legacyImportNote|confirmClear|clearAllHistory|lastSync|neverSynced|source|sourceOfficial|sourceBundled|languageLabel|localeAuto|localeZh|localeEn|sectionLabel|rpcFailed|rpcSyncFailed|rpcBalanceFailed".split("|"),Cn="额度|显示|amount|余额|价格|费用|会话|quota|模型|session|DeepSeek|off-peak|official|输入|缓存|计费|OpenCode Go|Plan|balance|display|prices|刷新|官方|time|OpenDesign|tokens|自动|自定义|weekends and Chinese public holidays are|预算|Token|the|调用|message|侧边栏|input|output|今日|设置|credential|凭据|Balance|cache|用量|金额|Enable|Refresh interval|中国公众假期全天谷价|同步|失败|峰时高价时段显著提示|开启|时段|details|refresh|calls|cost|历史|峰时|已用|输出|and|price|usage|BillingCenterReadOnlyAccess|sidebar|以同一系统账号运行|Codex|Settings|budget|currency|interval|position|settings|保存|启用|图框详细信息|当前|Credits|Refresh|account|WorkBuddy2API|period|本地|留空|model|optional|右下角|Budget|DescribeBillingAccount|failed|history|位置|分钟|匹配|命中|币种|数据|查询|记录|谷时|账本|配置|dsh-connect-workbuddy|dsh-workbuddy-connect|Coding|Strip includes|rates|剩余|小时|峰谷|提示|时间|更新|统计|订阅|Chinese|credits|minutes|人民币|API|Cache|empty|month|YYYY-MM-DD|auth login|billed|configured|planAmount|source|使用|可选|本月|横条|请求|读取|谷价|进入|隐藏|默认|ArkReadOnlyAccess|Display|Off-peak|Quota not queried|browser|current|default|is an upper bound|local ledger|never echoed back|subscription|法定假日|逗号分隔|AccessKey|Output|Preview entering|Remaining|including|ledger|remaining|this|主机|估算|全部|关闭|密钥|恢复|日期|明细|暂无|框上方|浏览器|清除|登录|百分比|累计|账号|进度条|间隔|Today|Volcano Ark|coding plan|local|percentages|a catalog entry|comma-separated|deepseek-v4-pro|only|peak|导入安装前|开始对话后|汇总在这里|Monthly|Sidebar|Volcano|pricing|Cost|Entering|Failed to load|Input|Official|Provider|a vendor group|built-in table|custom|enough samples|historical|stay unchanged|to restore|toppedUp|上方|卡片|取消|周末|图框|安装|展开|手动|挂载|提醒|方向|来源|消耗|添加|积分|等值|美元|Alibaba Cloud|Authorization|Show|automatically|volcengineapi|Quota|above|effective|estimates|overrides|qianwenai|strip|table|total|白名单|Bottom-right|Content-Type|Custom|English|JSON|MiniMax|Session|This|Updated|bottom-right|console|conversation|date|from|granted|hitRate|method|notification|rate|records|removed|restore|same OS user|used|windows|workspace ID|侧栏|保留|内置|写入|单价|可在|名称|后续|周期|导入|开放平台|按自然月|排行加载|滚动|火山引擎|火山方舟|点击|环境变量|确认|移除|覆盖|计价|账户|这里|采样区间|重置|预览|Control Key|Flash|Peak|SiliconFlow|application|apply|are|auto-detect|bailian-cli|composer|data|environment|estimate|full-window|host|matching|max-preview|pre-install|qianwen-cli|token|unavailable|DSH|Auto-match|Claude Pro|Cline Pass|Credential|Management|OpenRouter|Remove|Volcengine|Weekly|aggregated|change|exactly at|hours soon|multiplier|percentage|status|with|下方|不计|优先|修改|倍率|全天|切换|加载|勾选|区间|厂商|可用|基础|实际|当日|影响|支持|文档|日志|未知|档位|渠道|生效|用于|端口|编辑|选择|采样|History|Unknown|Weekend|address|count|headers|hours|missing|ranking|reads|today|ACCESSKEY|Anthropic|Clear all|SECRETKEY|Topped-up|WorkBuddy|all|auto-sync|direction|for|page|plan|precision|providers|reasoning|signed-in|stay|subagents|use|中复制|主页面|占位符|子代理|工作区|性价比|抵扣率|控制台|未上报|条起步|标题栏|知道了|表条目|起始日|过期后|这一项|阿里云|Base URL|Cookie|Currency|External|HTTPS|Moonshot|Public|Security|Source|Supports|Usage|actual|calendar|click|deepseek|enable|follow|full|notice|override|priority|progress|provider|range|read|recorded|requires|sample|shows|snapshot|store|subtract|when|window|write|不会|中文|充值|其他|分别|列表|删除|北京|千问|发现|发送|只写|可能|后可|地址|填写|外部|套餐|对账|应用|弹窗|快照|悬停|折算|推理|时刻|时区|最多|本周|标准|格式|每日|汇率|满窗|独立|窗口|简化|精度|精确|请在|路径|Key|Amounts|Beijing|Billing|ChatGPT|Compact|Confirm|Default|Extract|Factory|General|Granted|HTTP|Hide|Include|Loading|Mounted|Qwen|Request|Used|accepts|applies|billing|bundled|card|channel|earlier|gateway|here|holiday|include|key|name|not|percent|plugins|qianwen|replace|require|unknown|Click|Enter|Local|ROUTE|USD|alert|equiv|first|limit|match|query|saved|start|stats|value|CNY|Change|Gemini|Kimi|Ledger|NewApi|OPENAI|Recent|Rhythm|Saving|VOLC|active|corner|direct|divide|fields|import|logs|manual|openai|origin|pct|plugin|port|reason|remain|resets|select|studio|sync|上下|上界|上限|不再|不是|不足|两者|为准|之后|仍在|保持|允许|入口|分开|包含|即将|原因|发生|同名|后的|后缀|回放|回显|回退|域名|填入|处于|字段|对应|导出|将按|屏幕|工具|平价|底部|开关|总额|打开|按量|插件|放行|新增|早期|最近|月度|权限|条数|样式|样本|概览|版本|状态|现在|界面|百炼|目录|直接|符号|类型|紧凑|缺失|网关|花费|英文|表外|规则|语言|调整|账单|货币|赠送|超出|跟随|通知|重试|钱包|Add|bar|box|Both|CLI|KEY|Keep|Sync|VAR|When|clear|day|dock|docs|each|leave|left|now|show|that|tok|will|yet|your|Pro|com|All|Auto|Not|Save|auto|back|can|chip|its|keep|old|open|per|save|Top|low|row".split("|"),Ee=Object.fromEntries([["zh",'本Ɔƅ(按每次Ơ˛͕͢Ə)|ƍ {ƣ} · Ǝ {ƪ} · Ƽ {Ƥ}|Ǝ:读 {̱} · 写 {̻}(ʏ按ǟ价Ə)|ƅ {Ƃ}|本Ɔ {Ƃ} · ǟ {ʁ} · ƍ {ƣ} · Ǝ {ƪ} · Ƽ {Ƥ}|本Ɔ {Ƃ}|仅ƁƬ|无限制|ǍǷƬ来自ɢƄ × ͜ {ʄ}。对照ƖǷϾ,请˨ Μ,再ưƄ;ư仅˝ʓƠ。|ƃǢƱ:{ơ}|ˡ错误|ƃ|ǢƱ|Ɗ ʖʢƃ|Ɩƃ变动与Ǔǥ交叉͎(偏差超阈时ǯ)|总ƃ {Ƃ}|Ѐ {ʀ} · ̾ {ɑ}|DZǰ {Ɨ}|Ɲ({ǒ})|ƻ {ʉ} / {Ƃ}|ƥ {Ƃ} · 占Ɲ {α}|Ȅ {ǻ} · ȯ {ɰ}|Ɲ|ƥƅ(按ƖƄ͢Ə)|ƥ ƞ ƫ|ƙ|Ơ {Ʒ} 次 · ƍ {ƣ} · Ǝ {ƪ} · Ƽ {Ƥ}|Ȅ {Ƃ}|ȯ {Ƃ}|ƥ|ƢƥƁ|ƅ|ƞ ƫ|ƥ|Ȅ|ȯ|ƛ˗|ȩƹǣ。Ⱦ,ƅϘ天ȿ。|ȧ|Ơ|ƍ К|Ǝ К|Ƽ К|ƅ|ƥȩƆǣ。|Ɔ|NjƝ|Ɲƀ(按ƁǠ)|Ɲʔ|开始ȧ|结束ȧ(ǔ = ƥ)|Dz˗:{̰}|NjƝ后Ɓƀ、ƻƬ及比例(按ƁǠ换算);ȃƥ、Ȅ、ȯ或ƛʔ。|{ǒ}Ɲ {Ƃ} · ƻ {ʉ} · {α}%|(已Ё)|(接近μ)|旧ƈ|ȋϑ|ʟ|˚|Ǥ|ƺ|ƃ专用 Ǹ ͥ|ːȂ此ʖ ͥ;未Ǧ时ȇ已ȭƖȰƃ,其次沿用ƈƨ。|总ƃ {ɰ} · Ѐ {ʀ} · ̾ {ɑ} · DZ于 {Ɨ}|ƃǢƱ:{ơ}|未Ǣƃ|Ɩʢƃ|ƕ中…|ƕƃ|ƛ ɉ ƃ|ɟǦ|ɟ ƞ Τ ƃ|Ɓ官网ʢ页的Ƿ˙ƃ。ȭ ʺrhythm.θ,在ȫ开发者Ϛ → 网络̈ʢȆ的 ̚,或在存储 / ͏̈ tr_Ɖ 值,ϓˎƨ并Nj。̚ 仅存 ʼ ƨ库;̖重新͋。|ɟ̈́ / ̘ƃ|Ǣ̘中国站˙金。RAM ș 需 bss:Ǚ ϧ。前两项必填;STS 才需 ̠ ƞ。ȥ存ƨ库。|extract ˞点ͤ、数值和 add/̸/Ϊ 运算;Ρ Ƈ 除以 500000 得到ɢ。|̽ʒ|Ϲʒ|Ȇ URL|˞ ̝、本机 ͱ,以及 /Έ/… 相对ͤ(ƚЂ ʼ ˦)。|υ非回环 ͱ(ƨ明文传输;须将准确的 ȡ:˦ 加入ɱ)|+ Ǒ ɠ|Ǒ 预设ȇ活跃Ȱ池Ǭɠ,Ȃ管理后台 X-Admin-ƞ(ξƈ Ǹ ͥ)。请͋˛͊与˦;令牌̖DZƨ。|Ȇ方法|Ȇ头 (ɶ)|Ȇ体 (ɶ)|ǔ不͆;ɶ 原文NJ并͆。ȋ ɳ 为 ʫ/json,ʑȆ头ʠ。|解析ϻ (ɶ)|ƛƃƁǜ|ƕȲ (ǝ)|ƃ原Ǡ|按ƁǠ͓(Α ƃ)|ȂƁ͜与͡;ƃǠτ端点原Ǡ。̿Ǡ及ɠ不͓。|ƃ {Ƃ}|˜ƻ {Ƃ}|ƻ {Ƃ}|ƃȱ (蓝=ƃ,橙=˜,灰=ƻ)|ȱɜ|各组ȱ可͞˨填充ɜ:「Ǭɜ」满̑、随ɞ递减;「ƻɜ」空̑、随ɞ填满。|ƃ条(Ɩ/ƛ)|Ɲ条|Go ƀ条|Ƒ / ǃ ƀ条|Ǭɜ(满 → 空)|ƻɜ(空 → 满)|ƀμ (ȃ)|ǔ则ːȂ Ǹ 返回的 max_Dž;仍无则Ɓ整条浅蓝|ɶ ͚无效|{{Ў_NAME}} 从ƨ库或ʝȇ。<ΐ>_Ǹ_Ћ 中 ΐ 为大写 ɉ ID,ϳ改下划线,如 ί→_Ǹ_Ћ。ό共用ȥ。|ƨɱ (Ș)|Ȇ头带ȥ时仅Ϣ́内ȡ,ǔ则Ϣ并警告,防ʕ他人Ǧ外带ȥ。|ƨƍ|为ɒ {{Ў}} ̊存入ȥ(̻-Ȼ,͇ƨ库,不ϐ):|Ȇ头还没有 {{Ў}} ̊:ϓ如 "ɤ": "Beʭr {{MY_Ǹ_Ћ}}" 后ʣ会出现ƨƍ框。|Nj|Ǭ {ȟ} · ƻ {spend} / ƀ {maxǘ} · DZ于 {Ɨ}|Ǭ {Ƃ}|ƕƛƃ|Ɛ dzƀ|Go|ʙ 5 ǭ|͘|Ȅ|ʥ:{Ɨ}|已到ʥǰ|Ǭ {d}天{h}ǭ|Ǭ {h}ǭ{m}分|Ǭ {m}ǝ|ƻ {α}%|Ǭ {α}%|{·}%|DZ于 {Ɨ}|Go ƀƁǜ|Go ƀƕȲ(ǝ)|ǝ|Ɛ Ǹ ͥ(ȃ,ǔƚͅ)|Go ƀ主ˢ|Go nj|已Ǧ(ɝ:{ȁ})|未Ǧ|NJ|˧ƨ|Ȭ|NJ中…|ȥ只ʏ ʼ ƨ库,不NJ在ǥ里,也̼ϐ。|以下ȥσǓǥ,未迁入ƨ库。请ϗϖʝ后重启:|Ɲnj|ƕƀ|未Ǣƀ|˶(ʾ/Max)|Z.ai / 智谱 GLM ǩ Ƒ|ɷ ƞ Ƒ|ɷ Ƒ|Ǣϒ(̝)|ǔƚ˨Ɩ站点。͋后 ͥ 仅发往该ϒ;Ȃ可信͊,不含ͤ。|5h|7d|ϟ Ɗ ̾页(plat˾m.̧.П/ƿ)|ͩ (ǃ) ƀ|ǃ ƀ未Ƴ · 点此Ƴ|5h ƀ|周ƀ|{Ɨ} ʥ|未取得ƀ,请Nj并ȭ ǃ ϡ;ʜЄ|Ɓ ǃ ƀ(需ȭ ǃ ϡ)|在ʌƁ ǃ ƀ|在ƍ区Ɓ ǃ ƀ|本Ɔƅψ̋|ȩƀǡ|Ɓǜ|选「̉Ƣ / π」后Ɓƀɓ;窄栏ƁȮ。|Ǹ ͥ(ȃ,ǔƚͅ)|ƕȲ(ǝ)|ƕ|ȭ|ȭ中…|未Ǣƀ|ЊОxyǸ Ϸƀ|ɟɝ|ɝʒ|̙|Ɓǜ|ƕȲ(ǝ)|ƨɱ(ȡ:˦,Ș)|ˁ ͥ(͇)|ϭ|不˞的 ɉ|ˡ|未ͅȰ|抓取于 {Ɨ}|˔Ȱ (Ǎ: {ǐ})|只Ɓ Ξ ƀ|ƕ|先˖Nj̗|Nj并NJƁǜ͉ƕ|͂|˖Nj后会排到最上面;点ʒ可ɘ该项自己的Ǧ。ƛƃ͗ 8 条,Ϸɝ͗ 4 条。|未Nj。Ƴ后ϘƕȲǢ该˘的 ȵ ƀ并Ɓ在ʣ。|Ƴ后ȇ Ɛ 的ʙ 5 ǭ、周、月ƀ,Ɓ在ʌ、Ʀ页及Ǘ;无dz时ǯϊ。|ǗƁ(В)|在ǗƁ Ɛ ƀ / Ɲ|ʙ 5 ǭƀ|͘ƀ|Ȅƀ|Ɲƻ%|5h|周|月|日|Ɲ|ǥȇƱ:{ơ}|正在ȇǥ…|ǥ不˙|ưƱ:{ơ}|ƹǣ已Ȭ。|ȬƱ:{ơ}|Ǯʡ已Ȥ,按˚ƄƏ|尚未ˤ(ˤǰ:{Ɨ}),Ǎ按˚ƄƏ|Ǎϔ峰ƴ,按ƺ价Ə|Ǎ为 Ɗ ƺ高价ƴ,按ƺ价Ə|Ǎϔ谷ƴ,按Ǥ价Ə|ɕƴ——全Ȉ(周六及周日˓按Ǥ价Ə)|ɕƴ——全Ȉ|ɕ全谷|ȗ——˓Ȉ|ȗ——全Ȉ|假日|ȗ(̓ȧ,Ș)|自 2026-08-23 ̓ǰ 00:00 起,ɕ和Ư;调休上班的ɕ仍按Ȉ。|ƺ|ϛ|Ǯƴ条ϩ|简洁(单行ϵ)|经典(分段与胶囊芯片)|峰/谷˔前͐ɛ|提前ɛ(ǝ,1-30)|ɛϴ|ȉƺ|ȉǤ|峰和谷|ωȉƺ|ωȉǤ|约 {Ɨ} 后Əˢ˔为{phase}价,请注意本ƴƠ成本。|ƺ|Ǥ|̓|峰价ɛ|Ȉɛ|͐ǜ|Ǘ|ϙ中心|ư͆系统Ѓ|ϝ后ͣȫ͊栏υЃϧ,才能在页面最小化/切走时收到ɛ。|ʦ͐|ʦ ȉ峰|ʦ ȉ谷|(ʦ)|Ǯʡ与ǯ|ǯ已Ȋ:需NjǮʡ并Ƴ「Ʋ」。|常规|Ƭ与Ǡ|ƢƁ|͠ʌƁ|精简ɓ,ʍƬ、ƀ和͒详情;高度͗占ϙ 38%,Ё可ʙ。Ȥ后Ȧ。|试试更轻巧的ʌ|͠Ɓ可以为Ɔ́留出更多空间。要ϮƳ吗?ςʑ「Ʀ → ƅ → Ɓ」中˔。|Ƴ͠Ɓ|ʍǍƁ|Ʀ未能NJ。可Є,或Ȥǯ后在Ʀ中Ͻ。|Ȥǯ|ƥ / {ǒ}Ɲ|Ƣȱϩ|͙|ϵ(两列)|Ȧ已ʟ的ƈ ({ˮ})|ʟ会Ȭə映射并Ȋ此行,可Ȧ;̼͂ƫǣ,ʓ按ƚǞϻʡ。|Ǘ角标|nj|ɔɚ|未核价|已ƛ|这个Ƅ是你ə改过的,ƚư̼ʠ它。|Ȧƚư|按ƈDz(ʺ 与ƅ)|ʌƈϸ|{n} ƈ|其它|Ɓƈϸɓ|ȋɘ|记住ɘϭ|Ɓ ƞ|Ɓƅ占比条|ǗƁ Ю-1 ƈ|ȋʔ|收起摘要|ɓǜ|ƈ行数(1–10)|ƕȲ(10–60 秒)|ʔϞ与ƈ数|Ю-1 ƈ与Ƭ|顶部|ƃς|Ϝ|ƥ|近 90 天|ƅ排行|ƞ ɞ|Ǝǟ率|̐?|长Ơ无Ǝǟ:代理͈ʟƎϕ。Ƭ按全未ǟ计,是λ;可直连核对。|̍ · 每ɢ ʺ 数|ƍ|Ǝ|Ƽ|该ƴȩƫǡ。|综合ʐ {ƾ}/M|ǟ率=Ǝ读÷(Ǝ读+普通ƍ);「̐?」表示Ǝϕ͈϶,Ƭ为λ。ʐ=ƅ÷ʺ×1M;̍=ʺ÷ƅ。|未分ƈ(Ϥǡ · 按当时ǣƏ)|本Ɔ {Ƃ}(Ǹ)· Ƒ ɡ {Ȁ} · ǟ {ʁ} · ƍ {ƣ} · Ǝ {ƪ} · Ƽ {Ƥ}|本Ɔ {Ƃ}(Ǹ)· Ƒ ɡ {Ȁ}|ƅ {Ƃ}(+Ƒ)|Ƒ dzƀɞ(ɡ){Ƃ}|ƞ Ƒ ƫDz(每 1% 与͝Ȣ)|尚无 ǩ Ƒ ƀǡ;ͣ「ƀ」页Ƴ并ƕ˘。|͟|ƻ %|本ʔ˛(Ǔǥ)|每 1% ƀ ≈|͝ 100% ≈|ʥ {Ɨ}|˩差分|Ǎƫ͓|Ϫο|{ʂ}(基准 {Ɨ})|读数͡受限|Ƒ ƫ曲线(按ʤ聚合)|͛|每周|每月|˩ο:至少两次成功ƕ,且ƀȮϋ变化。|{ɾ}:͝估计 ≈ {̪}(每 1% ≈ {Ь1})· ˛ {ƙ} / {Ƹ} · {LJs} 个ʤ|Ƭ是ϱ价ɡ;dz耗ƀ,Ɲ只计 Ǹ。Ȣ仅含 dsh Ơ;服务端Ȯ含全Ȱ。短时Ϫ͡有限;5h ʙ,周/月按Ǔ日历。|Ə方式|Ƒ dz|ƚ|Ǹ Ϡ|在ƅƦϲƁ|仅控制是否在ƅƄ表ϲƁ;不˝ɚ和Ə。ɔ˖后σƄ表内,可随时改回。|ɘ˘可˧Ƅ;ɔɚ的ʎƈʑˎȦ。|̀Ʀ˒|可ƍ 2 × 0.8|ˑ˒会ư到本ƈȣʐ|仅ˑ̗的˒;ɔ˖Ȧ统一˒|请ƍ非负ʐ或乘法,例如 2 × 0.8|ˡƈ名ƚǞ|ƚ(去ώ / 前缀 / 家族相似)|仅͢Ǟ|ə指定ː;ƚǞ只接受ό及ȧ、Ϭ、κ文ώ。未ǟ的 Ɗ 用ȋ价,̿ˣ不ʡ。|待Ǟ与əƦ|按ˣ和ƈ̀Ʀ:˨Ƅ̔、ƛƄ,或标记为Ǔƈ。ƛƄ只˥Ǎˣ。|Ɗ ȋ价|ʟ|Ǔƈ(零ɞ)|已ǞƄ的ƈ|ǍȂƚǞ。可改选Ƅ̔、ƛƄ或零ƅ;NJ后移入ɒəƦ区。ƞ 仍会Dz。|τƚǟ|ȩəǞʠ。|已ɚ(参与Ə)|ƍ|Ǝȇ|Ǝʏ|ǔ时按Ǝȇ价Ə|Ƽ|Ɗ Ƅ表(已ɚ)|Ο / ̞|˂|ʪ 硅基流动|CommƽCode|ʿ|SCNet 超算互联网 ƞ Ƒ|ʛ ȴ ǩ Ƒ|̈́ Ͷ ƞ Ƒ|小米 MiMo ƞ Ƒ|˺ ɠ|˞ Ǩ / ǧ。|ͮ (Droid)|Ƙ|Ƙ ̌ ID|仅在 ʼ Ơ Ƙ Ǹ 也可Ə,无需ɗ Ƙ ͏。远端ƀǢ另需 Ƙ Cloud 的̌ ID 与 ʧ(ξ͔ Ǹ ͥ);未Ǧ时可Ȥƀɓ,ƆƏ照常。͍͟与ЅχƁ。公开ϱƄ˥ Ƒ ɡȢ;Ѕ扣费ͣƏ分类中设为 Ǹ。|ƀϴ|Stƽard + Core|组织 ID(ȃ)|͍ɠ|补偿ɠ|ƃ|ƀɝ|ǓȢ|Ɩ Њ|ϰ Њ|Њ 模式需在 ʼ ȡɗ @ɭ/ʹ,并ǂ Ή ǽ。|ϰ Њ:在 ʼ ȡɗ ʯ。ȭ按钮会在该ȡϟ授权ȫ;远程或无ϯȡ请ǂ bl ǽ --ɼ。|Ϧ ǎ ƀ(个人版 Lite 5 万 / ͙版 50 万,以dz页ρ)|dz̕(ȃ,͚ Ǽ;ǔʗ)|ǎ ̎ʠ(ȃ;每百万 ʺ 抵扣的 ǎ,ǔ用ʎ表)|ƈ名,如 qwen3.8-ʷ|费率|ƍ|Ǝ读|Ƽ|待填齐三项正数后ƚNJ;ȣ清空Ȧʎ表。|ɟ|ǎ ǓȢ,以̏ρ。Dz归属͍̈́的 Ƒ Ơ;ˏϠ Ǹ。Ϻƈ需设̎。|ǓȢϦ ǎ ƀ(˚ 60,000 / ͙ 240,000 / 高级 600,000)|dz̕(ȃ,͚ Ǽ;ǔʗ)|ː用 24 ǭ内的̏͑,否则按Ǔǥ和Ɩ ǎ 表Ȣ。̿Ϛ和Ϻƈˏ入。|ʚ ș ID|ʚ Secretș|ʛ需 AK/SK、Ȍ 和 ǀ;可填ƨ或ϗ Φ_˵/Φ_˸。只连接 Ы.ɧ.П。|AK...|SK...|{h}ǭ|{h}ǭ{m}分|{m}ǝ|{Ɨ}后ȉϛ|{Ɨ}后ȉ高峰|峰ƴ(UTC):{ʊ};ˤǰ:{Ɨ}。{ˌ}|未ǦǮƴ。{ˌ}|ˡ|ƥƅ|Ȅƅ|ȯƅ|自ǥ建立以来 · Ơ {Ʒ} 次|͌ƫ|ʼ + ͌合计|͌͑超过 24 ǭ未DZ|近期͛ǣ|Ƭ取ϥ͑,͈比ƖϾ晚几ǝ。ƙ 含ƍ、Ƽ、Ǝ和͔;͔并入ƼƏ。以Ƭ͎。|ƥ/Ȅ按宿主͖ {ʵ},ȫ为 {Ȑ}。͖不同会˝日界和͎;可将 dsh 改为Ǔ͖。|ƥƆ|ʜȧ行可ɘ˜ƆȨ|ƆȨ˕中…|该日无ƆȨ(Ϥǡ或Ɔˠ已清理)|ƆȨ˕Ʊ|按ƆDz(ȣƹ)|跨天合并,̋按ϝ归并。仅列选定Ϩ,ȯƅψȣ对话。|ȩƆǡ|Ɔʘ中…|ƆʘƱ|ƁϨ|Ɔ́附显Ɔ ID|Ƭ含 Ƒ Ϟ|Ƴ后所有Ƭ按含 Ƒ dzɡ的总ƅ展示;Ȥ(ȋ)仅计真金白银 Ǹ ˣ|ȊƖʢƃ(Ƴ后Ƣ与Ʀ页νƁƖƃ)|ȊƥɞƬ(Ƴ后Ƣ/ƝȨ/ϫɓνƁƥƅ)|Ȋ̒ƅȨφ|Ȋƍ框ˎƅȨφ|Ȋ每轮回复ύ本轮ƅ|排序|ƅ 高→低|ƅ 低→高|ǰ 新→旧|ǰ 旧→新|实时顺序|ƹǣ|ƞ ƫDz|ȯ {ƙ} ƙ · ƍ {ƣ} · Ǝ {ƪ} · Ƽ {Ƥ} · {Ʒ} 次Ơ|{ɾ}:共 {ƙ} ƙ(ƍ {ƣ} · Ǝ {ƪ} · Ƽ {Ƥ})· {Ʒ} 次Ơ · {Ƹ}|ȩƹǡ,Ⱦ͛ƫ会ȿ|ƫ|ƞ ƫDzǜ|ƅƦ|通用Ʀ|͞分节(ƫ)|ƁƦ|ϫ|ƀ|ƫ|Ƅ|Ɓ|ƹǡ|ƆƅƁǜ|ƍ区ˎ|Ɔ̒|Ȥ|ƍȪƀȅ|Njƀȅ(ƍȪ一条横排Ɓ)|ȅ含Ɲƻ%|ȅ含 Go ƀ|ȅ含 ǩ Ƒ ƀ|ȅ͒可见各͟ʥ͕与DZǰ;无˙ƀǡ时ƚȊ。|ϣ:ƍȪƀȅ|在ƍȪƁƝ及 Ɛ/ǩ Ƒ ƀȮ。ϮƳ吗?ʑ「Ʀ → ƁƦ」ˑ。|Ƴȅ|暂不Ƴ|ʜ立即ƕ|ϣ:ƃɖʜƕ|ʜƢƃ或 ǩ Ƒ ɖ即可ƕ;ƕ时ɖ闪烁,Ʊ时ʍ原值并在͒ǯ中说明ϊ。|̓|˜ƅƁ|ƢϜ|Ͽ单位|Ƿ Μ|ɢ Α|欧元 EUR|Ͽϳ|͜(1 ɢ = ? 目标Ǡ)|小数位数|ƃƁǜ|̉Ƣ|Ʀ页|π都Ɓ|ƃƕȲ(ǝ)|Nj Ɗ ǮƴƄ|Ʋ(ƢƝ框/ƥƅ;Ʀ页Ǯ面板内ʦ)|Ɔ按Ơ时ƄƏ(含Ǯ与ƹˢ)。ƍ、Ƽ、Ǝ读写χDz;͞Ǝʏ价与长κ˟位按Ǧˤ。|已ɚ的Ƅ表|ƖƄǠ|ɢ(ϹƖ页)|Ƿ(̽Ɩ页)|决定ưƄ所用的Ɩ页ϼ;ưύƄ˥ʓƠ。|О 与 ʨ ̀按ƖʐƏ,旧 ʨ ʒ按 ʨ 价结算。工作日̓ǰ 09–12、14–18 为峰ƴ,ɕ及Ư。改价˥ʓƠ,已ǣƬʍ;修正旧ƅ请ʞ后Ȃƹ重算。Ǝʏ按ǟ价。|ʣƁǍ适用Ƅ。手工˧会ɔ此条ʓ预定调价,已ϋ的ƹƄ仍ʍ。|Ȓ(未Ǟƈ时ϑ)|新ƈ ID(如 Ⱥ)|ɟƈ|ǡ与ư|NJ中…|ƚNJƱ:{ơ}|已ƚNJ {Ɨ}|Ǧˑ后ƚNJ|ʞ用Ɩ˟ƄʠƄ表?|͏|ɔ|从Ɩ˟ưƄ|Ɩư只DZ Ɗ Ƅ(含Ǯ);z-ai/Ο/Ͷ/ɂ 等第三方Ƅ随ϬDZ,ʑƄ表ɘϖ˘˧,或用ƈ名ǞϽ。|ʞȬȣƹ?|Ƚƹ|ʞʕ?将ϏȣƆˠ,只补ǥ϶的ȧ与Ɔ,不˝已有ǣ。|ȽƹƱ:{ơ}|首次启动ƚʕ旧ǣ;拷入ˠ͉重跑。按ǍƄ回推;已͂ˠ无法Ϗ,跨ɗ͕的Ɔˏ此前ƫ。|ʞȬ|Ȭȣƹ|ϥư:{Ɨ}|从未(ȂʎƄ)|;ɝ:{ȁ}|Ɩ˟|ʎȋ|ϯϼ|Ђ ʼ(ƚ)|简体̽|ɵ|ƅ|{ʂ} ƠƱ|ưƠƱ|ƃƕƠƱ'],["en",`Ʉ of Ƞ Ɖ (Ǿ ˈ Д c˻ Ɨ)|ɇ {ƣ} · ǹ {ƪ} · Ț {Ƥ}|ǹ: ̱ {̱} · ̻ {̻} (̻s Ǿ at Ɵ hit ƾ)|Ʉ {Ƃ}|ɹ Ɖ {Ƃ} · Hit {ʁ} · ɇ {ƣ} · ǹ {ƪ} · Ț {Ƥ}|ɹ Ɖ {Ƃ}|ɥ Ƃ Ȼ|UnΕed|Μ ɰs ̇ Α Ɣ × {ʄ}. To Пpʭ ƌ Μ bills, η Μ, Ɵn ι Ɣ; ιing affects Ȼ new Ʒ.|Ʃ Η ǚ: {ơ}|˫ error|Ʃ|Query ǚ|Ɗ Ы-plat˾m ǐ ƒ|Cross-check ƌ ƒ ˇs against Ɵ Ȕ (warn ̹ Ɵy diverge)|Total {Ƃ}|Ͱ {ʀ} · ˹ {ɑ}|ɺ {Ɨ}|ǘ ({ǒ})| {ʉ} / {Ƃ}|ȳ {Ƃ} · {α} of Dž|ɹ ǻ {ǻ} · Р Ɨ {ɰ}|ǘ|ȳ's Ƹ (Ǿ ˈ ƌ Ɣ)|ȳ's ʺ ƿ|ƙ|C˻s {Ʒ} · ɇ {ƣ} · ǹ {ƪ} · Ț {Ƥ}|ɹ ǻ {Ƃ}|Р Ɨ {Ƃ}|ȳ|Ɂ ˴ Ɠ|Ʉ|ƞ ƿ|ȳ|ɹ ǻ|Р Ɨ|ɴ ̰|No Ǜ М. Once you Ι chatting, Ƹs ʭ ˆ Ь Б.|Date|C˻s|In К|ǹ К|Out К|Ʉ|No Ɖs ̲ ˴.|ɸ|ƭ Dž|ǘ Ƃ (in Ɠ dž)|ǘ ǒ|Start ɾ|End ɾ (Ǻ = ˴)|Range: {̰}|ƭ a Dž to see Ш Ε, ʉ Ƃ ƽ ˋ in Ɵ Ɠ dž. Choose ˴, ǻ, ˻ Ɨ or a Ɍ ̰.|{ǒ} Dž {Ƃ} · {ʉ} · {α}%| (over Ε)| (near Ε)|Legacy|ͬ f˻Х|˃|Base|Ȏ|ʩ|Ʃ Ǹ ΄|ɹ Open Plat˾m ΄ takes ̭; oƟrwise Ɵ ̄ ƌ ǐ ƒ is ̱, Ɵn Ǖ Ƨs.|Total {ɰ} · Ͱ {ʀ} · ˹ {ɑ} · ɺ {Ɨ}|Ʃ Η ǚ: {ơ}|Ʃ Ά queried|Acˮ ƒ|Ǐing…|Ǐ ƒ|ɴ ̯ ƒ|І entry|І ƞ Τ ƒ|ɥs available Μ ƒ ɿ Ɵ ƌ ǐ ˿. Sign in at ʺrhythm.θ. In Ȑ DevTools, copy Ɵ ǐ request ̚ ɿ Network, or Ɵ tr_Ɖ Λ ɿ Storage / Application. У it beЯ ƽ ̨ Ƞ ͽ. ̚s ̅ in Ɵ ʼ Ƨ ̷; Ί Ɵm ̹ expired.|І Qianwen / ɣ ƒ|ɥs ɣ China funds. RAM ș needs bss:Ǚ. The Δ two Ϋ ʭ d; ̠ ƞ is ˾ STS. Secrets ̅ in Ɵ Ƨ ̷.|ͭ paths, numbers ƽ add/̸/Ϊ. Divide Ρ Ƈ by 500000 ˾ Α.|Ǵ ΅|ɵ ΅|ͷ URL|̢ ̝, ȶ ͱ ƽ /Έ/… paths Й ̩ Ɵ ȑ ʼ γ.|Рow non-loopХ ͱ (plaintext Ƨs; ̳ Ɵ exact ʵ:γ in ˻owed ʵs)|+ Ǒ ǵ|The Ǒ preset ˳ ȟ ǵ across Χ ǐs using an admin X-Admin-ƞ, Ά a Ǖ Ǹ ΄. Set Ɵ ̤ ˭ ƽ γ; Ί Ɵ Ƨ ̹ it expires.|ͱ ʂ|Headers (ɶ)|ͷ body (ɶ)|Blank sends no body; ɶ text is Θ ƽ sent as entered. ɳ Ȓs to ʫ/json; ˯ Ц ̬ it.|ͭ rules (ɶ)|ɴ ƒ Ɠ|Ʈ (Ƕ)|̡ dž|Convert Α ƒ to Ɠ dž|Uses Ɵ Ɠ ʄ ƽ ́. Ќ Ɵ ȁ dž; oƟr currencies ƽ ǵ ɏ.|Ʃ {Ƃ}|ȳ {Ƃ}|Spent {Ƃ}|Ʃ ̮ Ї (blue=ƒ, o̰=˴, gray=spent)|Оgress Ї ˽|Each group of Їs Ц independently choose Ш fill ˽: "Ȝ" Ιs ̪ ƽ drains ˍ ƿ; "" Ιs Ǻ ƽ fills up.|Ʃ Їs (ƌ/Ɍ)|ǘ Ї|Go Ƈ Ї|Ƒ / ǃ Ƈ Їs|Ȝ (̪ → Ǻ)| (Ǻ → ̪)|ǘ cap (ǖ)|Leave Ǻ to ̇ Ǹ max_Dž; if still ˱, И ̪ light-blue Ї|Invalid ɶ|{{Ў_NAME}} ˳ a Ƨ or ʲ variable. <ΐ>_Ǹ_Ћ ̇s an upЬcase ɉ ID ˍ underscores, such as ί→_Ǹ_Ћ. Names Ц shʭ a ΄.|Рowed ʵs (ȹ)|Џ ˯ carry Ƨs Ȼ listed ʵs ʭ ˻owed; Е Ǻ to ˻ow ˍ a warning. Оtects ΄s ̹ άing someone else's config.|ˀ ƣ|Store Ɵ ΄ ˾ Д {{Ў}} placehЪer ɩ (̻-Ȼ: ̷d in Ɵ ʼ Ƨ ̷, ȕ):|No {{Ў}} placehЪers in Ɵ ˯ М — add e.g. "ɤ": "Beʭr {{MY_Ǹ_Ћ}}" ƽ a Ƨ ƣ Л appear .|ƭ|Ȝ {ȟ} · Spent {spend} / ǘ {maxǘ} · ɺ {Ɨ}|Ȝ {Ƃ}|Ǐ Ɍ ƒ|Ɛ Ȗ Ƈ|Go|Rolling 5h|˅|ɀ|Resets: {Ɨ}|Reset Ɨ rДed|{d}d {h}h Ж|{h}h {m}m Ж|{m}m Ж|{α}% ʉ|{α}% ȟ|{·}%|ɺ {Ɨ}|Go Ƈ Ɠ Lj|Go Ƈ ƶ LJ (Ƕ)|min|Ɛ Ǹ ΄ (ǖ; Ǻ = ʮ)|Go Ƈ primary ̺|Go Ј Ƶ|Configured (ȁ: {ȁ})|Т ǿ|У|Edit Ƨ|Clear|Υ…|The ΄ is written to Ɵ ʼ Ƨ ̷ Ȼ — it is never Θ in Ɵ Ȟ ƽ ȕ.|These Ƨs ε in Ɵ Ȕ. Exγ Ɵ ʶ ʲ variables ƽ reΙ:|ǘ Ј Ƶ|Ǐ Ƈ|ȏ|˶ (ʾ/Max)|Z.ai / Zhipu GLM ǩ Ƒ|ɷ ƞ Ƒ|ɷ Ƒ|ɨ ΰ (̝)|Empty: ƌ sites. OƟrwise Ɵ ͥ is sent Ȼ to Ƞ ΰ. Use a trusted ˭ ˍout a path.|5h|7d|Open Ɗ top-up ˿ (plat˾m.̧.П/ƿ)|ͩ (ǃ) Ƈ|ǃ Ƈ is disabled · ̦ to ̨|5h Ƈ|˅ Ƈ|ζ {Ɨ}|ɨ ʻ. ƭ ƽ sign in to a ǃ β; ̦ to retry.|ɥ ǃ Ƈ (̳ a ̄ ǃ β)|ɥ ǃ Ƈ in ǁ|ɥ ǃ Ƈ ɩ ʰ|ͳ ̆ in Ɖ Ƹ|No Ƈ ʱ|ȍ Lj|“Main ǁ / Љ” ̵ a Ƈ ͽ; Ɵ narа rail ̵ ȷ.|Ǹ ΄ (ǖ; Ǻ = ʮ)|Ʈ (Ƕ)|Ǐ|Login|Signing in…|ȏ|ЊОxyǸ Ƈs|І ȁ|̡ label|̙|ȍ|Ʈ (Ƕ)|ˀ ˻owlist (ʵ:γ, ȹ)|ˁ ΄ (̻-Ȼ)|Status|Unsupγed ̂|˫|No ǐs|fetched {Ɨ}|Switch ǐ (ȑ: {ǐ})|Ξ Ƈ Ȼ|Ǐ|ƭ Ƞ item Δ|ƭ ƽ Э a Ɠ Lj to ƶ|˃|ƭd items move to Ɵ top; ̦ a ΅ to expƽ Ш own lj. Up to 8 Ɍ ƒs ƽ 4 ȁs.|Disabled. ƭ it to Η Ƞ vendor's ȵ Ƈ on Ɵ ƶ LJ ƽ И it .|ƭ Ɛ rolling 5h, weekly ƽ ǻly Ƈs in Ɵ ǁ, DŽ ƽ ɻ Ψ. Missing Ȗs И a δ.|ɲ (В) Ɠ|ɥ Ɛ Ƈ / Dž at Ɵ ɻ|Rolling-5h Ƈ|˅ Ƈ|ɀ Ƈ|ǘ ʉ %|5h|Wk|Mo|Daily|ǘ|Π ̱ ǚ: {ơ}|Reading Ȟ…|Π ʻ|Ѝ ǚ: {ơ}|˪ cleʭd.|Clear ǚ: {ơ}|ʩ/Ƌ Ƀ is off; base Ɣ ʭ ʉ|Т М ɪ (ɪ at {Ɨ}); base Ɣ ʭ ȑly ʉ|ʩ hour З; ȼ Ɣ ʬ|Ɗ ȼ-hour Ƀ is Χ; ȑ Ʒ ʭ Ǿ at ȼ Ɣ|Ȏ З; Ƌ Ɣ ʬ|ˬ — ˻ Ƌ (Sat & Sun Ǿ at Ƌ Ɣ ˻ Б)|ˬ — ˻ Ƌ|ˬ|Ǵ public — Ƌ ˻ Б|̟ — ˻ Ƌ|HoliБ|̟ s (ͧ ɾs, Пma sepaʄd)|Since Aug 23, 2026 (ͧ Ɨ), Ɯ Ƌ ˻ Б, ȝ work-shift weekends.|ʩ|Ȏ|ʩ ǒ ɮ style|ͪ (one-line)|Classic (segments & Ч)|Popup Β be˾e ȼ/Ƌ switch|Lead Ɨ (Ƕ, 1-30)|Alert type|Ʌ ȼ|Ʌ Ƌ|Љ|Ʌ ȼ ˉ|Ʌ Ƌ ˉ|ͨ switches to {phase} Ƀ in about {Ɨ}; mind Н c˻ Ƹs in Ƞ ̺.|ȼ|Ƌ|Got it|ʩ Β|Ȏ Β|Popup Lj|ɲ|Screen center|Also send a system ʃ|Џ ̨d, ˻ow ʃ Ьmission in Ɵ Ȑ ˭ Ї so you get Βed even ̹ Ɵ ˿ is minimized or Хgrounded.|Preview Ɵ popup|ț ȼ|ț Ƌ| (preview)|ʩ/Ƌ Ƀ & ̫|Тice hidden: ̨ ȼ/Ƌ Ƀ ƽ Ɵ “prominent ̫” toggle.|ͯ|Money & dž|Ɂ Ɠ|Simplify Ɵ ǁ|Condense ͽs but Щ Ƃs, Ƈs ƽ hover Ƶ. Height is capped at 38% of Ɵ viewγ ˍ scrolling. Turn off ɐ.|A lighter ǁ|Simple Ɠ Еs more room ˾ ɽs. ƭ it З? You Ц ˇ it in DŽ → Ʉ → ȍ anyƗ.|ƭ simple Ɠ|Ќ ȑ Ɠ|DŽ could Ά be Θ. Retry or dismiss Ƞ guide ƽ ˇ Ɵm later in DŽ.|Dismiss guide|ȳ / {ǒ} Dž|Ɂ ̮ style|Stƽard|ͪ (2 columns)|Re̷ ʆ Ǖs ({ˮ})|˃ Аs Ɵ ̬ ƽ hides Ɵ а until ʇd. ̣ ʅ ʭ kept; Фmatic ƾ ʶ ͺ.|Corner Чs|Box Ƶ|Unmount|Unƾd|ɴ|You edited Ƞ ƾ manu˻y; ˼ Л Ά over̻ it.|Resume ˼|Per-Ǖ statistics (ƙ & Ƹ)|Ɂ Ǖ Ƹs|{n} Ǖs|OƟr|ɥ Ǖ Ƹ ͽ|Expƽ by Ȓ|Remember expansion|ɥ ƙ|ɥ Ƹ shʭs|Ю Ǖ in Ψ В|ͬ ǒ|Collapsed summary|Card Lj|Model аs (1–10)|Ʈ (10–60 seconds)|Period ɰ ƽ Ǖ ˮ|Ю Ǖ ƽ Ƹ|Ю|After ƒs|Bottom|ȳ|Last 90 Бs|Ʉ ˲|ƞ ƿ|ǹ hit ʄ|unreγed?|Zero ƪ hШ on long Ʒ may mean a relay ʆ ƪ Ϋ. Р-miss Ƹ ȓ; check ˍ Ɵ Ω Ǹ.|Value · ƙ Ь Α|ɇ|ǹ|Ț|No ƿ ʱ ˾ Ƞ ǒ.|blended {ƾ}/M|Hit ʄ = ƪ ˳ ÷ (˳ + unƪd ƣ). “Unreγed?” means ƪ ʱ may be ˱, so Ƹ ȓ. Unit ƾ = Ƹ ÷ ƙ × 1M; Λ = ƙ ÷ Ƹ.|Unattributed (early ʱ · Ǿ as ̲)|ɹ Ɖ {Ƃ} (Ǹ) · Ƒ Γ. {Ȁ} · Hit {ʁ} · ɇ {ƣ} · ǹ {ƪ} · Ț {Ƥ}|ɹ Ɖ {Ƃ} (Ǹ) · Ƒ Γ. {Ȁ}|Ʉ {Ƃ} (+Ƒ)|Ƒ Ȗ Ƈ ƿ (Γ.) {Ƃ}|ƞ Ƒ ƿ Κ (Ь-1% & ʴ ɫ)|No ǩ Ƒ Ƈ ʱ М. ƭ ƽ ƶ a ̯ under ɨs.|Window| %|ɹ ǒ ̤ (Ȕ)|Per 1% Ƈ ≈|Full ̺ (100%) ≈|ζ {Ɨ}|̴ delta|ȑ ƿ ratio|Ά ɍ|{ʂ} (as of {Ɨ})|Я ̱ing ́|Ƒ ƿ curves (ˆ ɿ ̴ LJs)|Daily|˅|ɀ|Т ɍ: ƶ success̪y twice ˍ a Ƈ ˋ ˇ.|{ɾ}: ʴ est. ≈ {̪} (Ь 1% ≈ {Ь1}) · ̤ {ƙ} / {Ƹ} · {LJs} ̴ LJ(s)|ͦ ʭ catalog-ƾ Γalents. Ƒs ̇ Ƈ; Džs ˮ Ǹ Ȼ. Estimates cover dsh Ʒ, while server ȷ cover Ɵ ǐ. Short ̴s ʭ less precise. 5h rolls; week/ǻ ̇ ȶ ɾs.|ͨ class|Ƒ Ȗ|С|Ǹ ƿ|ɥ Ωly in Ʉ lj|Controls Ω Ɠ in Ɵ ƾ ɯ; mounting ƽ ͻ ɏ. Hidden ͽs ̅ rДable in Ɵ ɯ.|Expƽ Ɋ to edit Ɣ; ʇ unmounted ͼ Ǖs beЯ.|Sepaʄ ˊs|Try 2 × 0.8|Changing Ɵ ˊ ͺ to ˻ ǫ ˾ Ƞ Ǖ|Ν Ƞ ʄ Ȼ; uncheck ɐ Ɵ shʭd ˊ|Ύ a non-negative ʄ or multiplication, e.g. 2 × 0.8|ʽ Ό Ǖ ΅s|С (ɮ suffix / prefix / family similarity)|Exact Ζ Ȼ|Manual ɬ take ̭. ʽ Ȼ Ɵ same ΅ or ɾ, version ƽ context suffixes. ˫ Ɗ Ǖs ̇ Ɵ Ȓ ƾ; oƟr ̂ ̅ unƾd.|UnΖed ƽ manu˻y ǿ Ǖs|Set Д ; ƽ Ǖ sepaʄly: η ȸ, ̇ a Ɍ ƾ, or mark as ȶ. ɴ Ɣ ʬ Ȼ to Й ;.|Ɗ Ȓ ƾ|˃|Ώ Ǖ (zero Ƹ)|Matched Ǖs|Currently Ζed ɦ. Select ȸ, Ɍ ƾ or zero Ƹ. Уd ˇs move to Ɵ ή list ɩ; ƙ still ˮ.|Ќ Ф Ζ|No ή Ζ ɬ.|͵ (Ǿ)|ɇ|ǹ ̱|ǹ ̻|Leave blank to ̇ Ɵ ƪ-̱ ƾ|Ț|Ɗ ƾ ɯ (mounted)|Ο / ̞|˂|ʪ|CommƽCode|ʿ|SCNet ƞ Ƒ|ȴ ǩ Ƒ|Ͷ ƞ Ƒ (ɭ.П)|Xiaomi MiMo ƞ Ƒ|˺|̢ Ǩ / ǧ.|ͮ (Droid)|Ƙ|Ƙ ʋ|Using Ƙ Ǹs in ʼ does Ά inst˻ing Ɵ Ƙ app. Remote Ƈ queries sepaʄly an Ƙ Cloud ʋ ƽ ʧ (Ά an inference Ǹ ΄); Е Ɵ Ƈ ͽ off to Щ using ɽ Ƹ tracking ˍout Ɵm. Ƒ ʊ ƽ w˻et ̅ sepaʄ. ̟ Ɣ ʳ Ƒ-Γalent Ƹ; classify w˻et-funded Ʒ as Ǹ in ͻ lj.|ɨ pool|Stƽard + Core|Organization ID (ǖ)|Ƒ ǵ|Compensation|Ʃ|ɨ ȁ|Ώ ʳ|Ɉ Њ|Bailian Њ|Inst˻ @ɭ/ʹ on Ɵ ʼ ʵ ƽ run Ή ǽ as Ɵ ʈ.|Inst˻ ʯ on Ɵ ʼ ʵ. Login Ыs Й ʵ’s Ȑ; ˾ a remote or headless ʵ, run bl ǽ --ɼ as Ɵ ʈ.|ɀ ǵ Ƈ (Ьsonal Lite 50K / Stƽard 500K; see Н ̀ ˿)|Ƒ Ι ɾ (ǖ, Ǽ; Ǻ = ̥ ǻ)|ǎ ʄ ɬ (ǖ; ǵ deducted Ь 1M ƙ; Ǻ = ɋ)|Model ΅, e.g. qwen3.8-ʷ|ʄ|ɇ|ǹd ƣ|Ț|Ύ ˻ three positive ǫ to Э ɦ; А ˻ ɐ Ɵ ɋ.|І|Ώ ǎ ʳ; ɼ is authoritative. Counts Ƒ Ʒ assigned to Ͷ. Excludes pay-as-you-go Ǹ. І ǫ ˾ oƟr Ǖs.|ɀ ǵ Ƈ ˾ ȶ ɫ (Basic 60,000 / Stƽard 240,000 / О 600,000)|Ƒ Ι ɾ (ǖ, Ǽ; Ǻ = ̥ ǻ)|Uses ɼ ̶s newer than 24h, Ɵn ɫ ɿ ȶ ʅ ƽ ƌ ǎ ǫ. OƟr tools ƽ unlisted Ǖs ʭ excluded.|˄ ș ID|˄ Secretș|ȴ needs AK/SK, Ȍ ƽ ǀ. Ύ Ƨs or exγ Φ_˵/Φ_˸. Only Ы.ɧ.П is contacted.|AK...|SK...|{h}h|{h}h {m}m|{m}m|Ȏ in {Ɨ}|ʩ in {Ɨ}|ʩ ˰ (UTC): {ʊ}; ɪ: {Ɨ}. {ˌ}|No ȼ ʊ ǿ. {ˌ}|Ό|ȳ|ɹ ǻ|Р Ɨ|Since Ɵ Ȟ was created · C˻s {Ʒ}|̜ ƿ|ʼ + external ɰ|̜ ̶ has Ά been upɾd ˾ 24 ˰|Σ daily ʅ|ͦ ̇ Ɵ latest ̶ ƽ may lag Ɵ ƌ bill by Ƕ. ƞs ƣ, Ƥ, ƪ ƽ ̃; ̃ is Ǿ ˍ Ƥ. Reconcile by Ƃ.|ȳ/ǻ ̇ ʵ Ɨzone {ʵ}; Ƞ Ȑ ̇s {Ȑ}. Different Б boundaries affect reconciliation. Set dsh to Н ȶ Ɨzone to align.|ȳ's Ɖs| a ɾ а to expƽ Ш Ɖ Ƶ|ʹ Ɖ Ƶ…|No Ɖ Ƶ ˾ Ƞ Б (early ʱ or Ɖ έ cleaned)|Ɇ Ɖ Ƶ|By Ɖ (˻ Ǜ)|Days Пbined; ̆ ̩ lj. Selected аs Иn; cumulative Ƹs every ɽ.|No Ɖ ʱ М|ʹ Ɖ ˲…|Ɇ Ɖ ˲|Rows|ɥ Ɖ IDs in Ɖ lists|ͳ ̀ ɰs|Џ on, every Ƃ ̵ ɰ Γalent Ƹ ȝ ̀ Ȗs; off (Ȓ) ˮs real-money Ǹ ;s Ȼ|Ͳ ƌ ǐ ƒ (ƒ UI ʆ ɿ ǁ ƽ lj)|Ͳ ˴'s Ƹ (˴'s Ƃ ʆ ɿ ǁ, Dž Ƶ ƽ overview ͽ)|Ͳ header Ƹ Ƶ|Ͳ ʰ Ƹ Ƶ|Ͳ turn Ƹ summaries|Sort|Ʉ high→Я|Ʉ Я→high|Time new→Ъ|Time Ъ→new|Σ order|˪|ƞ ƿ Κ|Р-Ɨ {ƙ} ƙ · ƣ {ƣ} · ƪ {ƪ} · Ƥ {Ƥ} · {Ʒ} Ʒ|{ɾ}: {ƙ} ƙ (ƣ {ƣ} · ƪ {ƪ} · Ƥ {Ƥ}) · {Ʒ} Ʒ · {Ƹ}|No Ǜ М — daily ƿ Л accumulate |̣|ƞ ƿ Κ Lj|Ʉ lj|ͯ lj|Own section (̣)|ȍ lj|Overview|ɨs|̣|Pricing|ȍ|˪ ʱ|ɸ Ƹ Ɠ Lj|BeЯ Ɵ ʰ|ɸ title Ї|Off|ɨ ɮ ɩ Ɵ ƣ|ƭ Ɵ Ƈ ɮ (one а ɩ Ɵ ƣ Ј)|Ǫ Dž ʉ %|Ǫ Ɵ Go Ƈ|Ǫ ȵ Ƈs|Hover a Ч ˾ reset Ɨs ƽ Ɵ last ƶ; Ɵ ɮ hides Шelf ̹ Ɵre is no Ƈ ʱ.|New: Ƈ ɮ ɩ Ɵ ƣ|ɥ Dž ƽ Ɛ/coding-̀ ȷ ɩ Ɵ ƣ Ј. ƭ З? Ν it anyƗ in DŽ → ȍ.|ƭ Ɵ ɮ|Т З| to ƶ З|New: ̦ Ɵ ƒ Ј to ƶ| a ǁ ƒ or ̀ Ј to ƶ. It pulses while loading; on failure it Щs Ɵ Ъ Λ ƽ ̵ Ɵ δ on hover.|Got it|ȳ Ƹ Ɠ|Ɂ footer|̛|Ǵ Yuan (Μ)|US Dollar (Α)|Euro (EUR)|̛ symbol|Exˇ ʄ (1 Α = ? target dž)|Decimal places|Ʃ Ɠ Lj|Main ǁ|DŽ ˿|Љ|Ʃ ƶ LJ (Ƕ)|Use Ɗ ȼ-hour Ɣ|Оminent ̫ during ȼ ˰ (ǁ Dž Ј, ˴'s Ƹ; previewed in Ɵ DŽ ȼ panel)|ɸ Ƹ ̇s c˻-Ɨ Ɣ, ȝ ȼ ƽ Ɏ ǫ. ɇ, Ƥ, ƪ ˳ ƽ ̻s ʭ sepaʄ; ǿ ƪ-̻ ƽ long-context ǫ ʬ.|͵ ƾ ɯs|Ɉ ƾ dž|Α (ɵ ƌ ˿)|Μ (Ǵ ƌ ˿)|Selects Ɵ ƌ Ƀ-˿ language. Ѝed Ɣ ʬ to subsequent Ʒ.|О ƽ ʨ ̇ sepaʄ ƌ ǫ; legacy ʨ ΅s ̇ ʨ ǫ. WeekБ ȼs ʭ 01–04 ƽ 06–10 UTC; Ɯ Ƌ. Rate ˇs ʬ to later Ʒ. Recorded Ƃs ε until you confirm Ɏ recalculation. ǹ ̻s ̇ hit ǫ.|Current ǫ ʭ Иn . Editing Цcels any future scheduled ˇ ˾ Ƞ entry; Ϳ Ɏ ǫ ʭ retained.|Ȓ (f˻Х ˾ unΖed Ǖs)|New Ǖ ID (e.g. Ⱥ)|І Ǖ|Data & ι|Υ…|С-Э ǚ: {ơ}|С-Θ {Ɨ}|DŽ ʭ Ф-Θ|Over̻ Ɵ ƾ ɯ ˍ Ɣ ɿ Ɵ ƌ Г?|Apply|Cancel|Ѝ Ɣ ɿ ƌ Г|Ɉ ι upɾs Ɗ Ɣ (ȝ ȼ ǫ). Third-party Ɣ (z-ai/Ο/Ͷ/ɂ) ̩ releases; expƽ Ɋ in Ɵ ƾ ɯ or ̇ Ǖ ʶ.|˷ Ǜ?|Imγ ʸ Ǜ|ͫ ά? Replays ˻ Ɖ έ ƽ Ȼ fills ɾs/Ɖs ˱ ɿ Ɵ Ȟ; existing ʅ ʭ untouched.|Failed to ά ʸ Ǜ: {ơ}|Pre-inst˻ Ǜ άs at Δ launch; rerun after copying Ъ έ. Ʉs ̇ ȑ Ɣ. Deleted έ ЦΆ replay; Ɖs spanning inst˻ation exclude Ϳ ƿ.|ͫ А|˷ Ǜ|Last ι: {Ɨ}|Never (ͼ Ɣ)|; ̡: {ȁ}|Ɉ Г|Bundled|Language|FolЯ ʼ (Ф)|Simplified Ǵ|ɵ|Ʉ|{ʂ} c˻ ǚ|Ѝ c˻ ǚ|Ʃ ƶ c˻ ǚ`]].map(([e,n])=>{const s=n.replace(/[ƀ-߿]/g,a=>Cn[a.charCodeAt(0)-384]).split("|");return[e,Object.fromEntries(vn.map((a,o)=>[a,s[o]]).filter(([,a])=>a!=="\0"))]}));function ya(){return(typeof navigator<"u"&&typeof navigator.language=="string"?navigator.language:"").toLowerCase().startsWith("zh")?"zh":"en"}function ze(e){const n=typeof e=="string"?e.toLowerCase().split(/[-_]/)[0]:"";return n==="zh"||n==="en"?n:null}function Q(e){const n=typeof e=="string"?e:e?.locale;return n==="zh"||n==="en"?n:ze(e?.activeLocale)||ya()}function z(e){const n=e==="zh"?Ee.zh:Ee.en;return(s,a)=>{let o=n[s]??Ee.en[s]??s;if(a)for(const r of Object.keys(a))o=o.split("{"+r+"}").join(String(a[r]));return o}}const Ye={day:"periodDay",month:"periodMonth",all:"periodAll",custom:"periodCustomRange"};function ce(e,n){throw new Error("dsh-cost-meter: 服务端数据非法 ("+e+": "+n+")")}function Se(e,n){return(e===null||typeof e!="object"||Array.isArray(e))&&ce(n,"object"),e}function ae(e,n){return(typeof e!="number"||!Number.isFinite(e))&&ce(n,"number"),e}function le(e,n){return typeof e!="string"&&ce(n,"string"),e}const Ie=(e,n,s)=>typeof e=="string"&&n.includes(e)?e:s;function ha(e,n=!1){return e===null||typeof e!="object"||Array.isArray(e)?{}:Object.fromEntries(Object.entries(e).filter(([s,a])=>n?s.length>0&&["plan","api"].includes(a):["auto","plan","api"].includes(a)))}function ve(e,n){return typeof e!="boolean"&&ce(n,"boolean"),e}const Ve=(e,n,s)=>Object.fromEntries(n.map(a=>[a,s(e[a])]));function ka(e,n){const s={};if(e!==null&&typeof e=="object"&&!Array.isArray(e))for(const a of Object.keys(e)){const o=e[a];if(o===null||typeof o!="object"||Array.isArray(o))continue;const r=l=>typeof l=="number"&&Number.isFinite(l)&&l>=0?l:0;s[a]={...Bt(o),...Ve(o,["input","output","cacheRead","cacheWrite","reasoning","cost"],r),apiCost:o.apiCost===void 0?r(o.cost):r(o.apiCost)}}return s}const bt=["costCny","apiCostCny","costEur","apiCostEur"],Bt=e=>Object.fromEntries(bt.filter(n=>Number.isFinite(e?.[n])).map(n=>[n,e[n]]));function xa(e,n){Se(e,n);const s={...Bt(e),reasoning:e.reasoning===void 0?0:ae(e.reasoning,n+".reasoning"),apiCost:e.apiCost===void 0?void 0:ae(e.apiCost,n+".apiCost"),byModel:ka(e.byModel,n+".byModel"),byProviderModel:ka(e.byProviderModel,n+".byProviderModel")};for(const a of["input","output","cacheRead","cacheWrite","calls","cost"])s[a]=ae(e[a],n+"."+a);return s}function An(e){return e==null?void 0:{source:le(e.source,"source"),requestId:le(e.requestId,"requestId"),attempt:ae(e.attempt,"attempt"),complete:ve(e.complete,"complete"),status:le(e.status,"status"),upstream:le(e.upstream,"upstream")}}function wa(e){return(Array.isArray(e)?e:ce("rows","array")).map(n=>({provider:le(n.provider,"provider"),model:le(n.model,"model"),bucket:le(n.bucket,"bucket"),tokens:ae(n.tokens,"tokens"),...n.requests===void 0?{}:{requests:ae(n.requests,"requests")},rate:ae(n.rate,"rate"),cost:ae(n.cost,"cost"),priced:ve(n.priced,"priced"),plan:ve(n.plan,"plan")}))}function Lt(e,n){return{...xa(e,n),id:le(e.id,n+".id"),provider:typeof e.provider=="string"?e.provider:"",model:typeof e.model=="string"?e.model:""}}function Ce(e,n){const s={...xa(e,n),date:le(e.date,n+".date"),sessions:[]};return e.sessions!==void 0&&(Array.isArray(e.sessions)||ce(n+".sessions","array"),s.sessions=e.sessions.map((a,o)=>Lt(a,n+".sessions["+o+"]"))),s}function Dt(e,n,s=["cacheWrite","reasoning"]){const a={};for(const o of["cacheHit","cacheMiss","output"])a[o]=ae(e[o],n+"."+o);for(const o of s)e[o]!==void 0&&(a[o]=ae(e[o],n+"."+o));return a}function Et(e,n){Se(e,n);const s={...Dt(e,n),...gt(e)};for(const a of["offPeak","peak","legacyBase","longContext"])e[a]!==void 0&&(s[a]=Dt(e[a],n+"."+a,["cacheWrite","reasoning","aboveInputTokens"]));e.cny!==void 0&&(s.cny=Dt(e.cny,n+".cny")),e.legacy!==void 0&&(s.legacy=ve(e.legacy,n+".legacy")),e.rateHistory!==void 0&&((!Array.isArray(e.rateHistory)||e.rateHistory.length>16)&&ce(n+".rateHistory","price history"),s.rateHistory=e.rateHistory.map((a,o)=>((!a||typeof a.before!="string"||!Number.isFinite(Date.parse(a.before)))&&ce(n+".rateHistory","dated price"),{...Et({...a,rateHistory:void 0},n+".rateHistory."+o),before:a.before})));for(const a of["billingMode","sourceUrl","checkedAt","notes"])typeof e[a]=="string"&&(s[a]=e[a]);return s}function Pn(e,n){const s=o=>o==null?void 0:{...["aliyun","tokenrhythm"].includes(o.adapter)?{adapter:o.adapter}:{},enabled:o.enabled===!0,label:typeof o.label=="string"?o.label:"",labelEn:typeof o.labelEn=="string"?o.labelEn:"",display:Ie(o.display,["sidebar","settings","off"],"both"),unit:o.adapter==="tokenrhythm"?"CNY":["CNY","EUR","CREDITS"].includes(o.unit)?o.unit:"USD",convertToDisplayCurrency:o.convertToDisplayCurrency===!0,allowInsecureHttp:o.allowInsecureHttp===!0,refreshMinutes:typeof o.refreshMinutes=="number"&&Number.isFinite(o.refreshMinutes)?o.refreshMinutes:15,request:o.request&&typeof o.request=="object"?o.request:{url:""},extract:o.extract&&typeof o.extract=="object"?o.extract:{},allowedHosts:Array.isArray(o?.allowedHosts)?o.allowedHosts.filter(r=>typeof r=="string"):[]};Se(e,n);const a={};if(e.prices!==null&&typeof e.prices=="object"&&e.prices.models!==null&&typeof e.prices.models=="object")for(const o of Object.keys(e.prices.models))a[o]=Et(e.prices.models[o],n+".prices.models."+o);return{locale:e.locale==="zh"||e.locale==="en"||e.locale==="auto"?e.locale:"auto",position:e.position==="header"||e.position==="off"?e.position:"dock",sidebar:e.sidebar!==!1,showSessionId:e.showSessionId===!0,hideOfficialBalance:e.hideOfficialBalance===!0,hideTodayCost:e.hideTodayCost===!0,sessionListCostPeriod:e.sessionListCostPeriod==="today"?"today":"total",modelStatistics:e.modelStatistics??{},...Ve(e,["hideSessionCostHeader","hideSessionCostDock","hideTurnCost","followSkinTransparency","sidebarTodayBalanceInline","sessionListCosts","hideBudget","sessionCostCompact","contextCostsEnabled","contextCostsPromptSeen","showTotalWithPlan","sidebarSimple","sidebarSimplePromptSeen","codexQuotaEnabled","codexCompatPromptDismissed","includeSubagentCost","peakEnabled","peakAlertWebNotify","peakProgressPromptSeen"],o=>o===!0),sidebarTodayMetric:["tokens","both"].includes(e.sidebarTodayMetric)?e.sidebarTodayMetric:"cost",sidebarOrder:Array.isArray(e.sidebarOrder)?e.sidebarOrder:[],statisticsBasis:e.statisticsBasis,sidebarModels:Object.fromEntries(Object.entries(cn).map(([o,r])=>[o,e.sidebarModels?.[o]??r])),codexQuotaSidebar:e.codexQuotaSidebar!==!1,codexQuotaStrip:e.codexQuotaStrip!==!1,codexQuotaSource:["connect","subscription","chatgpt"].includes(e.codexQuotaSource)?e.codexQuotaSource:"auto",codexCompatHistoryAppliedAt:be(e.codexCompatHistoryAppliedAt),sidebarStyle:Ie(e.sidebarStyle,["standard","compact","summary"],"standard"),sidebarSummaryPromptSeen:e.sidebarSummaryPromptSeen===!0,billionContextNoticeEnabled:e.billionContextNoticeEnabled!==!1,billionContextNoticesSeen:Array.isArray(e.billionContextNoticesSeen)?e.billionContextNoticesSeen.filter(o=>typeof o=="string").slice(-32):[],priceMatchDismissed:Array.isArray(e.priceMatchDismissed)?e.priceMatchDismissed.filter(o=>typeof o=="string"):[],pricingCurrency:e.pricingCurrency==="CNY"?"CNY":"USD",currency:typeof e.currency=="string"?e.currency:"CNY",symbol:typeof e.symbol=="string"?e.symbol:"¥",decimals:ae(e.decimals,n+".decimals"),exchangeRate:ae(e.exchangeRate,n+".exchangeRate"),exchangeRateAuto:e.exchangeRateAuto!==!1,fxRates:e.fxRates,exchangeRateDate:e.exchangeRateDate??"",exchangeRateCheckedAt:e.exchangeRateCheckedAt??0,peakEffectiveAt:typeof e.peakEffectiveAt=="string"?e.peakEffectiveAt:"",peakWindows:Array.isArray(e.peakWindows)?e.peakWindows.map((o,r)=>({start:ae(o.start,n+".peakWindows["+r+"].start"),end:ae(o.end,n+".peakWindows["+r+"].end")})):[],peakHolidays:Array.isArray(e.peakHolidays)?e.peakHolidays.filter(o=>typeof o=="string"):[],peakNotice:e.peakNotice!==!1,peakAlertEnabled:e.peakAlertEnabled!==!1,peakAlertAhead:Number.isFinite(e.peakAlertAhead)&&e.peakAlertAhead>=1&&e.peakAlertAhead<=30?e.peakAlertAhead:2,peakAlertTarget:e.peakAlertTarget==="peak"||e.peakAlertTarget==="offpeak"?e.peakAlertTarget:"both",peakAlertPosition:e.peakAlertPosition==="center"?"center":"corner",peakStyle:["classic","progress"].includes(e.peakStyle)?e.peakStyle:"compact",peakTimeDisplay:["countdown","switch"].includes(e.peakTimeDisplay)?e.peakTimeDisplay:"both",priceMatch:e.priceMatch==="exact"?"exact":"auto",priceOverrides:(()=>{const o={};if(e.priceOverrides!==null&&typeof e.priceOverrides=="object"&&!Array.isArray(e.priceOverrides))for(const[r,l]of Object.entries(e.priceOverrides))typeof r=="string"&&typeof l=="string"&&(o[r]=l);return o})(),priceTableDisplay:(()=>{const o={};if(e.priceTableDisplay!==null&&typeof e.priceTableDisplay=="object"&&!Array.isArray(e.priceTableDisplay))for(const[r,l]of Object.entries(e.priceTableDisplay))typeof r=="string"&&(o[r]=l===!0);return o})(),codingPlans:(()=>{const o={};if(e.codingPlans!==null&&typeof e.codingPlans=="object"&&!Array.isArray(e.codingPlans))for(const r of Object.keys(e.codingPlans)){const l=e.codingPlans[r];l===null||typeof l!="object"||Array.isArray(l)||(o[r]={enabled:l.enabled===!0,display:l.display==="sidebar"||l.display==="both"||l.display==="off"?l.display:"settings",refreshMinutes:typeof l.refreshMinutes=="number"&&Number.isFinite(l.refreshMinutes)?l.refreshMinutes:15,apiKey:typeof l.apiKey=="string"?l.apiKey:"",...r==="minimax"?{baseUrl:typeof l.baseUrl=="string"?l.baseUrl:""}:{},...r==="factory"?{orgId:typeof l.orgId=="string"?l.orgId:"",factoryPool:["core","both"].includes(l.factoryPool)?l.factoryPool:"standard"}:{},...r==="opendesign"?{workspaceId:typeof l.workspaceId=="string"?l.workspaceId:""}:{},...r==="qwen"?{quotaSource:["cli","bailian"].includes(l.quotaSource)?l.quotaSource:"local"}:{},...typeof l.planCredits=="number"&&Number.isFinite(l.planCredits)&&l.planCredits>0?{planCredits:l.planCredits}:{},...typeof l.planStart=="string"?{planStart:l.planStart}:{},...l.rates!==null&&typeof l.rates=="object"&&!Array.isArray(l.rates)?{rates:l.rates}:{},...typeof l.accessKeyId=="string"?{accessKeyId:l.accessKeyId}:{},...typeof l.secretAccessKey=="string"?{secretAccessKey:l.secretAccessKey}:{}})}return o})(),prices:{models:a,...e.prices?.custom?{custom:e.prices.custom}:{},default:Et(e.prices?.default??{cacheHit:0,cacheMiss:0,output:0},n+".prices.default"),providers:e.prices?.providers&&typeof e.prices.providers=="object"?e.prices.providers:{},currency:typeof e.prices?.currency=="string"&&e.prices.currency.length>0?e.prices.currency:void 0},historyDays:ae(e.historyDays,n+".historyDays"),fetchedAt:e.fetchedAt===null||e.fetchedAt===void 0?null:le(e.fetchedAt,n+".fetchedAt"),priceSource:typeof e.priceSource=="string"?e.priceSource:"bundled",budget:{enabled:e.budget?.enabled===!0,amount:typeof e.budget?.amount=="number"&&Number.isFinite(e.budget.amount)?e.budget.amount:100,period:e.budget?.period==="day"||e.budget?.period==="all"||e.budget?.period==="custom"?e.budget.period:"month",customStart:typeof e.budget?.customStart=="string"?e.budget.customStart:null,customEnd:typeof e.budget?.customEnd=="string"?e.budget.customEnd:null,detail:e.budget?.detail!==!1},balance:{display:Ie(e.balance?.display,["sidebar","settings","off"],"both"),refreshMinutes:typeof e.balance?.refreshMinutes=="number"&&Number.isFinite(e.balance.refreshMinutes)?e.balance.refreshMinutes:5,showProgressBar:e.balance?.showProgressBar===!0,budgetCap:typeof e.balance?.budgetCap=="number"&&Number.isFinite(e.balance.budgetCap)&&e.balance.budgetCap>0?e.balance.budgetCap:null,clickHintSeen:e.balance?.clickHintSeen===!0},goQuota:{enabled:e.goQuota?.enabled!==!1,display:Ie(e.goQuota?.display,["sidebar","settings","off"],"both"),refreshMinutes:typeof e.goQuota?.refreshMinutes=="number"&&Number.isFinite(e.goQuota.refreshMinutes)?e.goQuota.refreshMinutes:15,apiKey:typeof e.goQuota?.apiKey=="string"?e.goQuota.apiKey:"",main:e.goQuota?.main==="weekly"||e.goQuota?.main==="monthly"?e.goQuota.main:"rolling",detail:e.goQuota?.detail!==!1},customBalance:s(e.customBalance),gatewayQuotas:(()=>{const o=Array.isArray(e.gatewayQuotas)?e.gatewayQuotas:e.gatewayQuotas?.sources;return{sources:Array.isArray(o)?o.slice(0,4).filter(l=>l!==null&&typeof l=="object"&&!Array.isArray(l)).map(l=>({id:typeof l.id=="string"?l.id.slice(0,48):"",type:"cliproxyapi",label:typeof l.label=="string"?l.label.slice(0,80):"",baseURL:typeof l.baseURL=="string"?l.baseURL:"",enabled:l.enabled!==!1,display:Ie(l.display,["sidebar","settings","off"],"both"),refreshMinutes:typeof l.refreshMinutes=="number"&&Number.isFinite(l.refreshMinutes)?Math.min(1440,Math.max(1,Math.floor(l.refreshMinutes))):15,includeProviders:Array.isArray(l.includeProviders)?[...new Set(l.includeProviders.filter(i=>typeof i=="string").map(i=>i.toLowerCase()).filter(i=>qt.includes(i)))]:qt,allowedHosts:Array.isArray(l.allowedHosts)?l.allowedHosts.filter(i=>typeof i=="string").slice(0,16):[],allowInsecureHttp:l.allowInsecureHttp===!0,antigravityOnlyGemini:l.antigravityOnlyGemini===!0,keyVar:typeof l.keyVar=="string"?l.keyVar:""})):[]}})(),customBalances:(()=>{if(Array.isArray(e.customBalances))return e.customBalances.filter(r=>r!==null&&typeof r=="object").slice(0,8).map(s).filter(Boolean);const o=s(e.customBalance);return o?[o]:[]})(),corner:{enabled:e.corner?.enabled===!0,goRolling:e.corner?.goRolling!==!1,goWeekly:e.corner?.goWeekly!==!1,goMonthly:e.corner?.goMonthly!==!1,budget:e.corner?.budget!==!1},quotaStrip:{enabled:e.quotaStrip?.enabled===!0,budget:e.quotaStrip?.budget!==!1,go:e.quotaStrip?.go!==!1,plans:e.quotaStrip?.plans!==!1,promptSeen:e.quotaStrip?.promptSeen===!0},usage:{position:e.usage?.position==="general"||e.usage?.position==="section"?e.usage.position:"cost"},barDirections:(()=>{const o=e.barDirections!==null&&typeof e.barDirections=="object"&&!Array.isArray(e.barDirections)?e.barDirections:{},r=(l,i)=>o[l]==="remaining"||o[l]==="used"?o[l]:i;return{balance:r("balance","remaining"),budget:r("budget","used"),go:r("go","used"),plan:r("plan","used")}})(),planBilling:{providers:ha(e.planBilling?.providers),models:ha(e.planBilling?.models,!0),modelPlans:Object.fromEntries(Object.entries(e.planBilling?.modelPlans??{}).filter(([o,r])=>o.includes(":")&&et.includes(r)))}}}const $e=e=>typeof e=="number"&&Number.isFinite(e)?e:null,be=e=>$e(e)??0,Mn={status:"off",message:"",fetchedAt:0,currency:"",totalBalance:0,grantedBalance:0,toppedUpBalance:0},Tn={status:"off",message:"",fetchedAt:0,rolling:null,weekly:null,monthly:null},Na=(e=null)=>({status:"off",message:"",fetchedAt:0,label:"",unit:"USD",remaining:0,maxBudget:null,spend:null,index:e});function It(e,n){return Se(e,n),{status:e.status==="ok"||e.status==="error"?e.status:"off",message:typeof e.message=="string"?e.message:"",fetchedAt:typeof e.fetchedAt=="number"?e.fetchedAt:0}}function Rn(e,n){return{...It(e,n),keyConfigured:e.keyConfigured===!0,keySource:typeof e.keySource=="string"?e.keySource:"",currency:typeof e.currency=="string"?e.currency:"",totalBalance:be(e.totalBalance),grantedBalance:be(e.grantedBalance),toppedUpBalance:be(e.toppedUpBalance)}}function jt(e,n){return e==null?null:((typeof e!="object"||Array.isArray(e))&&ce(n,"object"),{percent:be(e.percent),resetsAt:typeof e.resetsAt=="string"?e.resetsAt:""})}function On(e,n){return{...It(e,n),rolling:jt(e.rolling,n+".rolling"),weekly:jt(e.weekly,n+".weekly"),monthly:jt(e.monthly,n+".monthly")}}function Sa(e,n){return{...It(e,n),label:typeof e.label=="string"?e.label:"",unit:typeof e.unit=="string"?e.unit:"USD",remaining:be(e.remaining),maxBudget:$e(e.maxBudget),spend:$e(e.spend),index:typeof e.index=="number"&&Number.isFinite(e.index)&&e.index>=0?Math.floor(e.index):null}}const Bn=new Set(["ok","partial","unknown","error","stale","unsupported","capability_missing"]),Ln=new Set(["off","loading","ok","partial","stale","error"]),qt=["antigravity","claude","codex","kimi","xai","workbuddy"],va={antigravity:"Antigravity",claude:"Claude",codex:"Codex",kimi:"Kimi",xai:"xAI",workbuddy:"WorkBuddy"};function Dn(e,n){Se(e,n);const s=(l,i="")=>typeof l=="string"?l:i,a=l=>$e(l),o=l=>l!==null&&typeof l=="object"&&!Array.isArray(l)?{id:s(l.id),label:s(l.label),...a(l.percent)===null?{}:{percent:a(l.percent)},resetsAt:s(l.resetsAt),periodHours:a(l.periodHours),scope:s(l.scope)}:null,r=l=>l!==null&&typeof l=="object"&&!Array.isArray(l)?{unit:s(l.unit,"credits"),used:a(l.used),remaining:a(l.remaining),limit:a(l.limit),fetchedAt:s(l.fetchedAt),packages:Array.isArray(l.packages)?l.packages.filter(i=>i!==null&&typeof i=="object"&&!Array.isArray(i)).map(i=>({id:s(i.id),label:s(i.label),used:a(i.used),remaining:a(i.remaining),limit:a(i.limit),startsAt:s(i.startsAt),resetsAt:s(i.resetsAt)})):[]}:void 0;return{id:s(e.id),type:"cliproxyapi",label:s(e.label),status:Ln.has(e.status)?e.status:"error",message:s(e.message),fetchedAt:a(e.fetchedAt)??0,attemptedAt:a(e.attemptedAt)??0,serverVersion:s(e.serverVersion),keyConfigured:e.keyConfigured===!0,keySource:s(e.keySource,"none"),accounts:Array.isArray(e.accounts)?e.accounts.filter(l=>l!==null&&typeof l=="object"&&!Array.isArray(l)).slice(0,16).map(l=>({id:s(l.id),provider:s(l.provider,"unknown"),label:s(l.label,"unknown"),status:Bn.has(l.status)?l.status:"unknown",message:s(l.message),plan:s(l.plan),windows:Array.isArray(l.windows)?l.windows.map(o).filter(Boolean):[],credits:r(l.credits)})):[],unsupportedProviders:Array.isArray(e.unsupportedProviders)?e.unsupportedProviders.filter(l=>typeof l=="string").slice(0,32):[]}}function En(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;const n={};if(e.providers!==null&&typeof e.providers=="object"&&!Array.isArray(e.providers))for(const[s,a]of Object.entries(e.providers)){if(a===null||typeof a!="object"||Array.isArray(a))continue;const o={},r={};if(a.windows!==null&&typeof a.windows=="object"&&!Array.isArray(a.windows))for(const[l,i]of Object.entries(a.windows))i===null||typeof i!="object"||Array.isArray(i)||(o[l]={...Ve(i,["percent","localTokens","localCost","sampleCount"],be),...Ve(i,["sampleAt","per1Tokens","per1Cost","fullTokens","fullCost"],$e),resetsAt:typeof i.resetsAt=="string"?i.resetsAt:"",method:i.method==="sample"||i.method==="live"?i.method:"none",confidence:i.confidence==="high"||i.confidence==="low"?i.confidence:null});if(a.intervals!==null&&typeof a.intervals=="object"&&!Array.isArray(a.intervals))for(const[l,i]of Object.entries(a.intervals))Array.isArray(i)&&(r[l]=i.filter(d=>d!==null&&typeof d=="object"&&!Array.isArray(d)).map(d=>Ve(d,["t0","t1","tokens","cost","pct","per1Tokens","per1Cost"],be)));n[s]={windows:o,intervals:r}}return{generatedAt:be(e.generatedAt),providers:n}}function In(e){if(!e||typeof e!="object"||Array.isArray(e))return;const n=e.usage&&typeof e.usage=="object"?e.usage:{};return{installed:e.installed===!0,enabled:e.enabled===!0,version:typeof e.version=="string"?e.version:"",detection:Ie(e.detection,["package","profile","none"],"none"),planClass:Ie(e.planClass,["auto","plan","api"],"auto"),usage:{calls:be(n.calls),cost:be(n.cost),tokens:be(n.tokens),days:be(n.days),providers:(Array.isArray(n.providers)?n.providers:[]).filter(s=>typeof s=="string")},historyAppliedAt:be(e.historyAppliedAt),promptDismissed:e.promptDismissed===!0,promptDue:e.promptDue===!0}}function Ca(e,n){return Se(e,n),{today:Ce(e.today,n+".today"),month:Ce(e.month,n+".month"),total:Ce(e.total,n+".total"),budgetUsed:typeof e.budgetUsed=="number"&&Number.isFinite(e.budgetUsed)?e.budgetUsed:void 0,balance:e.balance==null?Mn:Rn(e.balance,n+".balance"),goQuota:e.goQuota==null?Tn:On(e.goQuota,n+".goQuota"),customBalance:e.customBalance==null?Na():Sa(e.customBalance,n+".customBalance"),customBalances:Array.isArray(e.customBalances)?e.customBalances.filter(s=>s!==null&&typeof s=="object").map((s,a)=>Sa(s,n+".customBalances["+a+"]")):[],gatewayQuotas:Array.isArray(e.gatewayQuotas)?e.gatewayQuotas.filter(s=>s!==null&&typeof s=="object"&&!Array.isArray(s)).map((s,a)=>Dn(s,n+".gatewayQuotas["+a+"]")):[],customVarStatus:e.customVarStatus!==null&&typeof e.customVarStatus=="object"&&!Array.isArray(e.customVarStatus)?Object.fromEntries(Object.entries(e.customVarStatus).filter(([,s])=>s!==null&&typeof s=="object").map(([s,a])=>[s,{configured:a.configured===!0,source:typeof a.source=="string"?a.source:""}])):{},codingPlans:e.codingPlans!==null&&typeof e.codingPlans=="object"&&!Array.isArray(e.codingPlans)?e.codingPlans:{},planStats:En(e.planStats),codexCompat:In(e.codexCompat),ourFreeModel:e.ourFreeModel?.enabled===!0?{enabled:!0,version:typeof e.ourFreeModel.version=="string"?e.ourFreeModel.version:""}:void 0,history:Array.isArray(e.history)?e.history.map((s,a)=>Ce(s,n+".history["+a+"]")):[],billionContext:e.billionContext?.protocol===1?{protocol:1,connected:e.billionContext.connected===!0,failed:e.billionContext.failed===!0,requests:Number(e.billionContext.requests)||0,unreported:Number(e.billionContext.unreported)||0,partial:Number(e.billionContext.partial)||0,uncovered:Number(e.billionContext.uncovered)||0,detected:e.billionContext.detected===!0,version:typeof e.billionContext.version=="string"?e.billionContext.version.slice(0,100):"",compatibility:["needs_update","changed","bridge_missing","ready"].includes(e.billionContext.compatibility)?e.billionContext.compatibility:"unknown",noticeId:typeof e.billionContext.noticeId=="string"?e.billionContext.noticeId.slice(0,240):""}:void 0,externalUsage:e.externalUsage&&Array.isArray(e.externalUsage.sources)?{fetchedAt:Number(e.externalUsage.fetchedAt)||0,stale:e.externalUsage.stale===!0,sources:e.externalUsage.sources.map(s=>({source:String(s.source),today:Ce(s.today,n+".external.today"),month:Ce(s.month,n+".external.month"),total:Ce(s.total,n+".external.total"),history:(s.history??[]).map(a=>Ce(a,n+".external.history"))})),combined:Object.fromEntries(["today","month","total","history"].map(s=>[s,s==="history"?(e.externalUsage.combined.history??[]).map(a=>Ce(a,n+".external.history")):Ce(e.externalUsage.combined[s],n+".external."+s)]))}:null,config:Pn(e.config,n+".config"),pricesRev:typeof e.pricesRev=="string"?e.pricesRev:void 0,modelLabels:Object.fromEntries(Object.entries(e.modelLabels??{}).filter(([,s])=>typeof s=="string")),modelDirectory:e.modelDirectory,reconcile:e.reconcile===null||e.reconcile===void 0?void 0:{ok:e.reconcile.ok===!0,message:typeof e.reconcile.message=="string"?e.reconcile.message:""},priceLockIds:Array.isArray(e.priceLockIds)?e.priceLockIds.filter(s=>typeof s=="string"):[],meta:{...ze(e.meta?.locale)?{locale:ze(e.meta.locale)}:{},now:typeof e.meta?.now=="number"?e.meta.now:Date.now(),timezoneOffsetMinutes:typeof e.meta?.timezoneOffsetMinutes=="number"?e.meta.timezoneOffsetMinutes:0,timezone:typeof e.meta?.timezone=="string"?e.meta.timezone:"",dayKey:typeof e.meta?.dayKey=="string"?e.meta.dayKey:"",monthKey:typeof e.meta?.monthKey=="string"?e.meta.monthKey:""}}}function jn(e,n){Se(e,n);const s={ok:e.ok===!0,message:typeof e.message=="string"?e.message:""};return e.state!==void 0&&e.state!==null&&(s.state=Ca(e.state,n+".state")),s}function oe(e){return{parse:e}}const Je=oe(Ca),qn=oe(e=>Se(e,"patch")),Hn=oe(jn),Ht=oe(e=>le(e,"provider")),Qn=oe(e=>{if(e!=null)return(typeof e!="number"||!Number.isInteger(e)||e<0||e>7)&&ce("index","0-7 integer"),e}),Un=oe(e=>le(e,"date")),Fn=oe(e=>Se(e,"day")),_n=oe(e=>(Number.isFinite(Number(e))||ce("limit","number"),Number(e))),Aa=oe(e=>le(e,"sort")),Wn=oe(e=>Se(e,"topSessions")),Pa=oe(e=>le(e,"target")),Kn=oe(e=>le(e,"value")),xe=(e,n)=>({mode:"strict",typeSymbol:"dsh-cost-meter#"+e,schema:n,create:()=>n}),re=(e,n,s,a=!1)=>({name:e,wire:e,source:"json",codec:xe(n,s),...a?{acceptsUndefined:!0}:{}}),Gn={package:"dsh-cost-meter",descriptors:[{method:"getStateSince",parameters:[re("pricesRev","PricesRev",oe(e=>(typeof e!="string"&&ce("pricesRev","price table revision"),e)))],result:xe("CostState",Je)},...["getState","getLocalState"].map(e=>({method:e,result:xe("CostState",Je)})),{method:"updateConfig",parameters:[re("patch","ConfigPatch",qn)],result:xe("CostState",Je)},{method:"fetchPrices"},{method:"releasePriceLock",parameters:[re("id","PriceLockId",oe(e=>((typeof e!="string"||e.length===0)&&ce("id","OpenRouter model id"),e)))]},{method:"refreshBalance"},{method:"refreshGoQuota"},{method:"refreshCustomBalance",parameters:[re("index","CustomBalanceIndex",Qn,!0)]},{method:"refreshCodingPlan",parameters:[re("provider","CodingPlanProvider",Ht)]},{method:"loginCodingPlan",parameters:[re("provider","CodingPlanProvider",Ht)]},{method:"refreshGatewayQuota",parameters:[re("sourceId","GatewayQuotaSourceId",oe(e=>{if(e!=null)return(typeof e!="string"||e.length>48||!/^[a-z0-9][a-z0-9_-]*$/.test(e))&&ce("sourceId","gateway source id"),e}),!0)]},{method:"resetHistory",result:xe("CostState",Je)},{method:"importLegacyHistory"},{method:"getDaySessions",parameters:[re("date","DayKey",Un)],result:xe("DayRecord",Fn)},{method:"getSessionCost",parameters:[re("sessionId","SessionId",Ht)],result:xe("SessionCost",oe(e=>({own:Lt(e.own,"own"),subagents:Lt(e.subagents,"subagents"),found:ve(e.found,"found"),subagentCount:ae(e.subagentCount,"subagentCount")})))},{id:"dsh-cost-meter#costMeter/getTurnCost",service:"costMeter",namespace:"costMeter",method:"getTurnCost",invocation:{kind:"direct"},parameters:[re("sessionId","SessionId",oe(e=>le(e,"sessionId"))),...["startSeq","endSeq"].map(e=>re(e,"TurnSeq",oe(n=>((!Number.isSafeInteger(n)||n<0)&&ce(e,"nonnegative integer"),n)))),{...re("displayCurrency","DisplayCurrency",oe(e=>(e!==void 0&&!["USD","CNY","EUR"].includes(e)&&ce("displayCurrency","currency"),e))),acceptsUndefined:!0}],result:xe("TurnCost",oe(e=>({...Bt(e),found:ve(e.found,"found"),...e.inherited===void 0?{}:{inherited:ve(e.inherited,"inherited")},cost:ae(e.cost,"cost"),apiCost:ae(e.apiCost,"apiCost"),rows:wa(e.rows),calls:(Array.isArray(e.calls)?e.calls:ce("calls","array")).map(n=>({kind:le(n.kind,"kind"),provider:le(n.provider,"provider"),model:le(n.model,"model"),atMs:ae(n.atMs,"atMs"),cost:ae(n.cost,"cost"),apiCost:ae(n.apiCost,"apiCost"),plan:ve(n.plan,"plan"),priced:ve(n.priced,"priced"),longContext:ve(n.longContext,"longContext"),rows:wa(n.rows),...n.metering?{metering:An(n.metering)}:{}}))})))},{method:"getTopSessions",parameters:[re("limit","SessionLimit",_n),re("sort","SessionSort",Aa,!0),re("dir","SessionSortDir",Aa,!0)],result:xe("TopSessions",Wn)},{method:"setCredential",parameters:[re("target","CredentialTarget",Pa),re("value","CredentialValue",Kn)]},{method:"clearCredential",parameters:[re("target","CredentialTarget",Pa)]},...["applyCodexCompatHistory","dismissCodexCompat"].map(e=>({method:e,result:xe("CostState",Je)}))].map(e=>({id:"dsh-cost-meter#costMeter/"+e.method,service:"costMeter",namespace:"costMeter",invocation:{kind:"direct"},parameters:[],result:xe("FetchPricesResult",Hn),...e}))};function zn(e,n){const s=n?.models??{};return typeof e=="string"&&e.length>0&&s[e]!==void 0?s[e]:n?.default??{cacheHit:0,cacheMiss:0,output:0}}function gt(e){return Object.fromEntries(["multiplier","separateMultipliers","multipliers"].filter(n=>e?.[n]!==void 0).map(n=>[n,e[n]]))}function yt(e,n){return(e.separateMultipliers?e.multipliers?.[n]:void 0)??e.multiplier??1}function Ma(e,n,s="base"){const a={};for(const o of["cacheHit","cacheMiss","cacheWrite","output","reasoning"])e[o]!==void 0&&(a[o]=e[o]*yt(n,s+"."+o));return e.longContext&&(a.longContext={...Ma(e.longContext,n,"longContext"),aboveInputTokens:e.longContext.aboveInputTokens}),a}function Yn(e){const n=gt(e);return n.multipliers&&(n.multipliers=Object.fromEntries(Object.entries(n.multipliers).filter(([s])=>s.startsWith("cny.")).map(([s,a])=>[s.replace("cny.","base."),a]))),{...e.cny,...n}}function Qe(e){if(e===null||typeof e!="object")return;const n=l=>{const i=e[l];return typeof i=="number"&&Number.isFinite(i)&&i>=0?i:void 0},s=n("cacheMiss")??n("input")??0,o={cacheHit:n("cacheHit")??n("cachedInput")??n("cacheRead")??s,cacheMiss:s,output:n("output")??0},r=n("reasoning");return r!==void 0&&(o.reasoning=r),n("cacheWrite")!==void 0&&(o.cacheWrite=n("cacheWrite")),o}function Vn(e){const n=Qe(e);if(n===void 0)return null;Object.assign(n,gt(e)),e.billingMode==="utc-peak"&&(n.billingMode="utc-peak");for(const s of["offPeak","peak","legacyBase"]){const a=Qe(e[s]);a!==void 0&&(n[s]=a)}return Number.isFinite(e.longContext?.aboveInputTokens)&&e.longContext.aboveInputTokens>0&&(n.longContext={...Qe(e.longContext),aboveInputTokens:e.longContext.aboveInputTokens}),Array.isArray(e.rateHistory)&&(n.rateHistory=e.rateHistory.slice(0,16).map(s=>{const a={...Qe(s),before:s.before};for(const o of["offPeak","peak"]){const r=Qe(s[o]);r!==void 0&&(a[o]=r)}return a})),n}function Ze(e,n=Date.now()){if(!e||!Number.isFinite(n)||!Array.isArray(e.rateHistory))return e;let s=null,a=1/0;for(const l of e.rateHistory){const i=Date.parse(l.before);n<i&&i<a&&(s=l,a=i)}if(!s)return e;const{before:o,...r}=s;return{...e,...r}}const Qt=Date.parse("2026-08-22T16:00:00Z");function Ta(e){if(!Number.isFinite(e)||e<Qt)return null;const n=Math.floor((e+8*36e5)/864e5),s=(n+4)%7;if(s!==6&&s!==0)return null;const a=s===6?n:n-1;return{start:Math.max(a*864e5-8*36e5,Qt),end:(a+2)*864e5-8*36e5}}function Ra(e,n){if(!Number.isFinite(e)||e<Qt||!Array.isArray(n))return null;const s=Math.floor((e+8*36e5)/864e5);return n.includes(new Date(s*864e5).toISOString().slice(0,10))?{start:s*864e5-8*36e5,end:(s+1)*864e5-8*36e5}:null}const $n=(e,n)=>Ra(e,n)??Ta(e);function ht(e,n,s,a){if(!Array.isArray(s)||s.length===0||$n(e,a)!==null||Number.isFinite(n)&&e<n)return!1;const o=new Date(e).getUTCHours();return s.some(r=>{const l=Number(r.start),i=Number(r.end);return!Number.isFinite(l)||!Number.isFinite(i)?!1:l<i?o>=l&&o<i:o>=l||o<i})}const Jn=Date.parse("2026-08-16T16:00:00Z"),Zn=17881344e5;function Oa(e,n,s){const a=Ze(e,n)??{cacheHit:0,cacheMiss:0,output:0},o=(i,d="base")=>({reasoning:0,...Ma(i,a,d)}),r=a.peakSchedule==="ollama";if(r||a.billingMode==="utc-peak"){if(s?.enabled!==!0||!Number.isFinite(n)||r&&n<Zn)return o(a);const i=new Date(n),d=i.getUTCDay(),u=i.getUTCHours(),c=d>0&&d<6&&(r?u>=12&&u<18:u>=1&&u<4||u>=6&&u<10);return o((c?a.peak:a.offPeak)??a,(c?a.peak:a.offPeak)?c?"peak":"offPeak":"base")}if(Number.isFinite(n)&&n<Jn){const i=a.legacyBase;return i===void 0?o(a):o(i,"legacyBase")}if(s?.enabled!==!0)return o(a);const l=typeof s.effectiveAtMs=="number"&&Number.isFinite(s.effectiveAtMs)?s.effectiveAtMs:void 0;if(ht(n,l,s.windows,s.holidays)){const i=a.peak;return i===void 0?o(a):o(i,"peak")}if(l!==void 0&&n>=l){const i=a.offPeak;return i===void 0?o(a):o(i,"offPeak")}return o(a)}function Ba(e,n){const s=Math.max(0,Number(e.input)||0),a=Math.max(0,Number(e.output)||0),o=Math.max(0,Number(e.cacheRead)||0),r=Math.max(0,Number(e.cacheWrite)||0),l=Math.max(0,Number(e.reasoning)||0);return n.longContext&&s+o+r>n.longContext.aboveInputTokens&&(n=n.longContext),(s*n.cacheMiss+a*n.output+o*n.cacheHit+r*(n.cacheWrite??n.cacheHit)+l*(n.reasoning??0))/1e6}function La(e,n,s){const a=Number(e);if(!Number.isFinite(a)||a<0||a===0)return 0;if(n!=="CNY")return a;const o=Number(s);return!Number.isFinite(o)||o<=0?a:a/o}function ue(e,n){const s=e?.barDirections,a=n==="balance"?"remaining":"used";if(s===null||typeof s!="object"||Array.isArray(s))return a;const o=s[n];return o==="remaining"||o==="used"?o:a}function we(e,n){if(e==null||!Number.isFinite(Number(e)))return{width:0,label:null};const s=Math.max(0,Math.min(100,Number(e))),a=n==="remaining"?Math.round((100-s)*10)/10:Math.round(s*10)/10;return{width:a,label:a}}const Da=(e,n)=>e.toFixed(n).replace(/(\.\d*?[1-9])0+$|\.0+$/,"$1");function me(e,n){const s=typeof n?.symbol=="string"&&n.symbol.length>0?n.symbol:"$",a=Number(n?.decimals),o=Math.max(0,Math.min(10,Number.isFinite(a)?Math.floor(a):2));let r=o;return e>0&&e<Math.pow(10,-o)&&(r=o+2),s+Da(e,r)}function K(e,n){const s=Number(n?.exchangeRate),a=e*(Number.isFinite(s)&&s>0?s:1);return me(a,n)}function D(e){const n=Math.max(0,Number(e)||0),s=a=>a>=100?String(Math.round(a)):String(Math.round(a*10)/10);return n<1e3?String(Math.round(n)):n>=999500?s(n/1e6)+"M":n<1e6?s(n/1e3)+"K":s(n/1e6)+"M"}function Ut(e){return String(e??"").normalize("NFKC").toLowerCase().replace(/[((]\s*(?:go|zen)\s*[))]/g," ").trim()}function Ae(e){return Ut(e).replace(/[^\p{L}\p{N}]+/gu,"")}function Xn(e,n=!0){const s=Ut(e);return n&&/[-_./:@](?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])$/.test(s)?s.slice(0,-5):s.replace(/[-_./:@](?:\d{4}-?\d{2}-?\d{2}|v\d+(?:\.\d+)*|\d+k|latest)$/,"")}function kt(e,n,s=e,a=!0){if(typeof e!="string"||e.length===0)return null;const o=Array.isArray(n)?n.filter(i=>typeof i=="string"&&i.length>0):[],r=o.find(i=>i===s);if(r!==void 0)return r;let l=e.normalize("NFKC").trim();if(/[:((]\s*(?:free|online)\b/i.test(l))return null;for(;;){const i=Ae(l);if(i.length===0)return null;const d=o.filter(c=>Ae(c)===i);if(d.length>0)return d.length===1?d[0]:null;const u=Xn(l,a);if(u===l.toLowerCase())return null;l=u}}const Ft=["opendesign","open-design","open-design-api","amr-link.open-design.ai"],_t=new Set(["openrouter","opencode-zen","opencode-go","opencode-go-plus","zen","opencode",...Ft]),xt={openai:/^(?:gpt|o\d|codex)/i,anthropic:/^claude/i,google:/^gemini/i,stepfun:/^step-/i,deepseek:/^deepseek/i,moonshot:/^kimi/i,"z-ai":/^glm/i,xai:/^grok/i,alibaba:/^qwen/i,minimax:/^minimax/i,tencent:/^(?:hunyuan|hy\d)/i,xiaomi:/^mimo/i,upstage:/^solar/i,nvidia:/^nemotron/i,mistral:/^mistral/i,meta:/^(?:muse|llama)/i,meituan:/^longcat/i};function Wt(e){return["deepseek-peak","utc-peak"].includes(e?.billingMode)?e.billingMode:"flat"}function Ue(e,n,s,a,o){if(typeof e!="string")return null;if(Object.hasOwn(n,e))return e;if(a!=="auto")return null;let r=e.normalize("NFKC").trim().replace(/^models\/(?=gemini)/i,"google/");const l=r.search(/[/:]/);if(l>0){const i=r.slice(0,l).trim().toLowerCase(),d=r.slice(l+1).trim();if(Object.hasOwn(xt,i)&&(i===s||(s==="opencode-zen"||s==="opencode-go")&&(xt[i].test(d)||kt(d,Object.keys(i==="deepseek"?o?.models??{}:o?.providers?.[i]?.models??{}),d,o?.snapshotTags!==!1)!==null)))r=d;else if(Object.hasOwn(xt,i))return null}return kt(r,Object.keys(n),e,o?.snapshotTags!==!1)}const eo=new Set(["local","lmstudio","ollama","jan","gpt4all","koboldcpp","llamacpp","llama-cpp","localai","vllm","sglang","tabbyapi","lmdeploy","oobabooga","text-generation-webui","llama-server"]),to=["lmstudio:","lmstudio/","ollama:","ollama/","jan:","jan/","gpt4all:","gpt4all/","koboldcpp:","koboldcpp/","llamacpp:","llamacpp/","llama-cpp:","llama-cpp/","localai:","localai/","vllm:","vllm/","sglang:","sglang/","tabbyapi:","tabbyapi/","lmdeploy:","oobabooga/","text-generation-webui/","llama-server:","gguf:","local:"];function ao(e,n){if(typeof e=="string"&&eo.has(e))return!0;const s=typeof n=="string"?Ut(n):"";return to.some(a=>s.startsWith(a))}function no(e,n,s,a){if(e!=="deepseek"&&!e.includes("deepseek")&&typeof n=="string"&&n.length>0&&n!=="__local__"&&!n.includes(":")){const o=s.models??{},r=Object.hasOwn(o,n)?n:a==="auto"?kt(n,Object.keys(o),n,s?.snapshotTags!==!1):null;if(r!==null&&o[r]?.unpriced!==!0)return{entry:o[r],priced:!0,billingMode:"deepseek-peak",matched:!0}}return null}function oo(e,n,s){const a=s?.prices??{},o=s?.priceMatch==="exact"?"exact":"auto",r=s?.priceOverrides&&typeof s.priceOverrides=="object"?s.priceOverrides:{};let l=String(e??"").trim().toLowerCase();if(l.startsWith("llm-")&&(l=l.slice(4)),l===""&&(l="deepseek"),["our-free-model","our-free-model-region"].includes(l)&&r[l+":*"]==="__free__")return{entry:{cacheHit:0,cacheMiss:0,cacheWrite:0,output:0,reasoning:0},priced:!0,currency:"USD",billingMode:"flat",matched:!0};let i=l,d=n;const u=r[l+":"+n];if(u==="__custom__"){const b=a.custom?.[l+":"+n];return{entry:b??null,priced:!!b,billingMode:"flat",matched:!0,currency:b?.currency??"USD"}}if(u==="__local__")return{entry:null,priced:!1,billingMode:"flat",matched:!0};if(typeof u=="string"&&u.length>0){const b=u.indexOf(":");if(b>0&&u.slice(b+1).length>0?(i=u.slice(0,b).trim().toLowerCase(),d=u.slice(b+1)):d=u,i==="deepseek"&&d==="__default__")return{entry:a.default??{cacheHit:0,cacheMiss:0,output:0},priced:a.default?.unpriced!==!0,billingMode:"deepseek-peak",matched:!1}}if(["zen","opencode","opencode-go-plus"].includes(i)){const b=Ue(d,a.providers?.[i]?.models??{},"opencode-go",o,a);b===null?i="opencode-go":d=b}if(Ft.includes(i)&&i!=="opendesign"&&Ue(d,a.providers?.[i]?.models??{},i,o,a)===null&&(i="opendesign"),ao(i,d))return{entry:null,priced:!1,billingMode:"flat",matched:!1};if(i==="openrouter"){const b=a.providers?.openrouter?.models??{},g=Object.hasOwn(b,d)?b[d]:null;return{entry:g,priced:g!==null&&g.unpriced!==!0,billingMode:"flat",matched:g!==null}}if(i==="deepseek"||i.includes("deepseek")){const b=a.models??{},g=Ue(d,b,"deepseek",o,a);if(g!==null)return b[g]?.unpriced===!0?{entry:null,priced:!1,billingMode:"flat",matched:!0}:{entry:b[g],priced:!0,billingMode:"deepseek-peak",matched:!0};if(o==="auto"){let f=null,y=-1,x=!1,P="flat";for(const[N,k]of Object.entries(a.providers??{})){if(_t.has(N))continue;const p=k?.models??{},h=Ue(d,p,N,o,a);if(h===null)continue;const w=+(h===d||Ae(h)===Ae(d));w>y?(f=p[h],y=w,x=!1,P=Wt(p[h])):w===y&&(x=!0)}if(x)return{entry:null,priced:!1,billingMode:"flat",matched:!1};if(f!==null)return{entry:f,priced:f.unpriced!==!0,billingMode:P,matched:!0}}return{entry:a.default??{cacheHit:0,cacheMiss:0,output:0},priced:a.default?.unpriced!==!0,billingMode:"deepseek-peak",matched:!1}}const c=a.providers?.[i]?.models??{},m=Ue(d,c,i,o,a);if(m!==null)return{entry:c[m],priced:c[m]?.unpriced!==!0,billingMode:Wt(c[m]),matched:!0};if(_t.has(i))return{entry:null,priced:!1,billingMode:"flat",matched:!1};if(Object.hasOwn(xt,i))return{entry:null,priced:!1,billingMode:"flat",matched:!1};if(o==="auto"){let b=null,g=-1,f=!1,y="flat";for(const[x,P]of[["deepseek",{models:a.models??{}}],...Object.entries(a.providers??{})]){if(x===i||_t.has(x))continue;const N=P?.models??{},k=Ue(d,N,x,o,a);if(k===null)continue;const p=+(k===d||Ae(k)===Ae(d));p>g?(b=N[k],g=p,f=!1,y=x==="deepseek"?"deepseek-peak":Wt(N[k])):p===g&&(f=!0)}if(f)return{entry:null,priced:!1,billingMode:"flat",matched:!1};if(b!==null)return{entry:b,priced:b.unpriced!==!0,billingMode:y,matched:!0}}return{entry:null,priced:!1,billingMode:"flat",matched:!1}}function Ea(e,n,s){let a=oo(e,n,s);if(a.currency)return a;if(!a.priced){const o=String(e??"").trim().toLowerCase().replace(/^llm-/,"")||"deepseek";a=no(o,s?.priceOverrides?.[o+":"+n],s?.prices??{},s?.priceMatch==="exact"?"exact":"auto")??a}return a.priced&&s?.prices?.currency==="CNY"&&a.entry?.cny?{...a,entry:Yn(a.entry),currency:"CNY"}:{...a,currency:a.priced&&a.billingMode==="deepseek-peak"&&s?.prices?.currency==="CNY"?"CNY":"USD"}}function so(e){const n=Number(e?.calls)||0,s=Number(e?.input)||0,a=Number(e?.cacheRead)||0;return n>=3&&s>=1e5&&a===0}function wt(e,n){return!e||!n?0:typeof e.cost=="number"&&Number.isFinite(e.cost)?e.cost:ja(e,n).total}function Xe(e){if(e===null||typeof e!="object")return 0;const n=Number(e.cost)||0,s=e.apiCost===void 0||e.apiCost===null?n:Number(e.apiCost);return Number.isFinite(s)&&s>=0?Math.min(s,n):n}function U(e,n){const s={CNY:"Cny",EUR:"Eur"}[n?.currency],a=n?.showTotalWithPlan===!0,o=s&&e?.[(a?"cost":"apiCost")+s],r=a?Number(e?.cost)||0:Xe(e);return!Number.isFinite(o)||o===0&&r>0?r:o/(n.exchangeRate||1)}const lo={opendesign:Ft,go:["go","zen","opencode","opencode-go","opencode-go-plus"],codex:["codex","openai-codex","dsh-openai-codex","codex-chatgpt"],anthropic:["anthropic","claude-subscription"],zai:["zai","glm-coding-plan"],minimax:["minimax","minimax-code"],kimi:["kimi","kimi-code"],commandcode:["commandcode","command-code"],clinepass:["clinepass","cline-pass"],workbuddy:["workbuddy","workbuddy-subscription","workbuddy-ai","workbuddy-global"],antigravity:["antigravity"],stepfun:["stepfun","step-code"],"volcengine-agent":["volcengine-agent","ark-agent-plan","volcengine-agent-plan"],"tencent-coding":["tencent-coding","tencent-coding-plan","tokenhub-coding-plan"],"tencent-token":["tencent-token","tencent-token-plan","tokenhub-token-plan"],"baidu-coding":["baidu-coding-plan","qianfan-coding-plan"],qwen:["qwen","qwen-tokenplan","qianwen-tokenplan","qwen-token-plan","qianwen-token-plan"],scnet:["scnet","scnet-tokenplan","scnet-token-plan"],mimo:["mimo","xiaomimimo","mimo-token-plan","xiaomi-token-plan","xiaomi-token-plan-cn","xiaomi-token-plan-sgp","xiaomi-token-plan-ams"],factory:["factory","droid","factory-a","factory-g","factory-o"]},et=["opendesign","anthropic","zai","minimax","kimi","openrouter","siliconflow","commandcode","clinepass","scnet","volcengine","qwen","mimo","factory","go","codex","volcengine-agent","tencent-coding","tencent-token","baidu-coding","workbuddy","antigravity","stepfun"],ro=Object.entries({opendesign:"opendesign|open[._-]?design",codex:"codex|chatgpt","baidu-coding":"baidu|qianfan|百度|千帆","tencent-coding":"tencent|tokenhub|腾讯",anthropic:"anthropic|claude",zai:"z[._-]?ai|zhipu|glm|智谱",minimax:"minimax|海螺",kimi:"kimi|moonshot|moonshotai|月之暗面",openrouter:"openrouter",siliconflow:"siliconflow|硅基",commandcode:"commandcode",clinepass:"cline[._-]?pass|clinepass",scnet:"scnet|sugon|超算",volcengine:"volcengine|volcano|volc|ark|火山|方舟",qwen:"qwen|qianwen|千问|通义",mimo:"mimo|xiaomi|小米",factory:"factory|droid",go:"opencode(?:[-_\\s]?go)?|zen|go"}).map(([e,n])=>[e,new RegExp("(?:^|[^a-z0-9])(?:"+n+")(?=$|[^a-z0-9])")]);function io(e,n){for(const s of[e,n]){const a=String(s??"").normalize("NFKC").replace(/([a-zA-Z0-9\u3400-\u9fff])(?=(?:Coding|Token|Agent|Plan|Subscription))/g,"$1-").replace(/([a-z0-9])((?:coding|token|agent)?plan|subscription)$/i,"$1-$2").toLowerCase();if(!/(?:^|[^a-z0-9])(?:(?:coding|token|agent)[-_\s]*)?plan(?:$|[^a-z0-9])|(?:^|[^a-z0-9])subscription(?:$|[^a-z0-9])|套餐|订阅/.test(a))continue;const o=ro.filter(([,r])=>r.test(a));if(o.length){if(o.length!==1)return null;const r=o[0][0];if(r==="volcengine"&&/agent[-_\s]*plan|智能体.*套餐/.test(a))return"volcengine-agent";if(r==="tencent-coding"){const l=/token[-_\s]*plan|令牌.*套餐/.test(a),i=/coding[-_\s]*plan|编程.*套餐/.test(a);return l===i?null:l?"tencent-token":r}return r}}return null}function Ia(e,n,s){const a=String(e??"").trim().toLowerCase().replace(/^llm-/,""),o=n?.planBilling?.modelPlans?.[e+":"+s]??n?.planBilling?.modelPlans?.[a+":"+s];if(et.includes(o))return o;if(a.length===0)return null;for(const[r,l]of Object.entries(lo))if(l.includes(a))return r;return et.includes(a)?a:io(e,s)}function co(e){const n=new Set,s=e?.codingPlans;if(s!==null&&typeof s=="object")for(const a of et)a!=="go"&&s[a]?.enabled===!0&&n.add(a);return e?.goQuota?.enabled===!0&&n.add("go"),e?.codexQuotaEnabled===!0&&n.add("codex"),n}const uo=new Set(["grok-4.5","glm-5.3","glm-5.3-flash","glm-5.2","glm-5.1","gpt-5.6-luna","kimi-k3","kimi-k2.7-code","kimi-k2.6","mimo-v2.6-flash","mimo-v2.6-pro","mimo-v2.5","mimo-v2.5-pro","minimax-m3","minimax-m2.7","qwen3.8-max","qwen3.7-max","qwen3.7-plus","qwen3.6-plus","hy3","longcat-2.0","muse-spark-1.2-contributor"].map(Ae));function mo(e,n,s){const a=String(e??"").trim().toLowerCase();if(a.length>0&&a!=="deepseek"&&!a.includes("deepseek"))return!1;const o=Ae(n);if(o.length===0||!uo.has(o))return!1;const r=s?.prices,l=r?.models??{};for(const i of Object.keys(l))if(Ae(i)===o)return!1;for(const i of Object.keys(r?.providers?.["opencode-go"]?.models??{}))if(Ae(i)===o)return!0;return!1}function tt(e,n,s){if(e==="deepseek-official"&&/^deepseek-(web-(search|fetch)|(search|fetch)-api|search-server)$/.test(n))return"api";let a=Ia(e,s,n);a===null&&mo(e,n,s)&&(a="go");const o=s?.planBilling?.models;if(o!==null&&typeof o=="object"){const r=o[e+":"+n];if(r==="plan"||r==="api")return r;if(a!==null){const l=o[a+":"+n];if(l==="plan"||l==="api")return l}}for(const r of[e,a]){if(r==null)continue;const l=s?.planBilling?.providers?.[r];if(l==="plan"||l==="api")return l}return a===null?"api":co(s).has(a)?"plan":"api"}function ja(e,n){if(!e||!n)return{total:0,api:0};const s=po(n),a={enabled:n.peakEnabled===!0,effectiveAtMs:Date.parse(n.peakEffectiveAt||""),windows:n.peakWindows,holidays:n.peakHolidays},o=Date.now(),r=e.byProviderModel??e.byModel??{};let l=0,i=0;for(const b of Object.keys(r)){const g=b.indexOf(":"),f=g>0?b.slice(0,g):"deepseek",y=g>0?b.slice(g+1):b,x=Ea(f,y,n);if(x.priced){const P=Vn(x.entry);P&&x.billingMode==="deepseek-peak"&&n.prices?.ollamaPeak!==!1&&f.trim().toLowerCase().replace(/^llm-/,"")==="ollama-cloud"&&(n.prices?.ollamaTaggedPeak===!1?["deepseek-v4.1-flash","deepseek-v4-pro"].includes(y.trim().toLowerCase()):kt(y,["deepseek-v4.1-flash","deepseek-v4-pro"])!==null)&&(P.peakSchedule="ollama");const N=Ba(r[b],Oa(P,o,{...a,enabled:["deepseek-peak","utc-peak"].includes(x.billingMode)&&a.enabled})),k=La(N,x.currency,s);l+=k,tt(f,y,n)==="api"&&(i+=k)}}const d={input:0,output:0,cacheRead:0,cacheWrite:0,reasoning:0};for(const b of Object.keys(r))d.input+=r[b].input??0,d.output+=r[b].output??0,d.cacheRead+=r[b].cacheRead??0,d.cacheWrite+=r[b].cacheWrite??0,d.reasoning+=r[b].reasoning??0;const u={input:Math.max(0,(e.input??0)-d.input),output:Math.max(0,(e.output??0)-d.output),cacheRead:Math.max(0,(e.cacheRead??0)-d.cacheRead),cacheWrite:Math.max(0,(e.cacheWrite??0)-d.cacheWrite),reasoning:Math.max(0,(e.reasoning??0)-d.reasoning)},c=Ba(u,Oa(zn("default",n.prices),o,a)),m=La(c,n.prices?.currency==="CNY"?"CNY":"USD",s);return l+=m,i+=m,{total:l,api:i}}function po(e){const n=s=>typeof s=="number"&&Number.isFinite(s)&&s>0&&s<1e6;return e.currency==="CNY"&&n(e.exchangeRate)?e.exchangeRate:n(e.fxRates?.CNY)?e.fxRates.CNY:7.2}function qa(e,n){if(!e||!n)return!1;const s=e.byProviderModel??{};for(const a of Object.keys(s)){const o=a.indexOf(":"),r=o>0?a.slice(0,o):"deepseek",l=o>0?a.slice(o+1):a;if(tt(r,l,n)==="plan")return!0}return!1}function Ha(e){return(e?.input??0)+(e?.cacheRead??0)+(e?.cacheWrite??0)}function Qa(e,n){if(e?.apiCost!==void 0)return Xe(e);if(!qa(e,n))return wt(e,n);let s=0;for(const[a,o]of Object.entries(e.byProviderModel??{})){if(!Number.isFinite(o.cost))return ja(e,n).api;const r=a.indexOf(":");tt(a.slice(0,r),a.slice(r+1),n)==="plan"&&(s+=o.cost)}return Math.max(0,wt(e,n)-s)}function Kt(e){const n=Math.abs(Math.round(Number(e)||0)),s=Math.floor(n/60),a=n%60;return"UTC"+(Number(e)<0?"-":"+")+s+(a>0?":"+String(a).padStart(2,"0"):"")}function fo(e){const n=e?.meta,s=Number(n?.timezoneOffsetMinutes);if(!Number.isFinite(s))return null;const a=-new Date().getTimezoneOffset();if(a===s)return null;const o=typeof n?.timezone=="string"&&n.timezone.length>0?n.timezone:"";return{hostLabel:o?o+" ("+Kt(s)+")":Kt(s),browserLabel:Kt(a)}}function bo(e,n=s=>s){let s=n(e);const a=new Set;return{getSnapshot:()=>s,subscribe:o=>(a.add(o),()=>{a.delete(o)}),set:o=>{if(o=n(o),o!==s){s=o;for(const r of[...a])r()}}}}const{createElement:t,Fragment:L,useState:O,useEffect:Y,useRef:ge}=Me;function je({target:e,configured:n,source:s,t:a,api:o,placeholder:r,disabled:l}){const[i,d]=O(""),[u,c]=O(!1),[m,b]=O(!1),[g,f]=O(null),y=ge(!1),x=l===!0||m,P=async()=>{const p=i.trim();if(!(p.length===0||x||y.current)){y.current=!0,b(!0),f(null);try{const h=await o.setCredential(e,p);d(""),c(!1),f({kind:"ok",text:h?.message??a("credentialSave")})}catch(h){f({kind:"err",text:String(h?.message??h)})}finally{y.current=!1,b(!1)}}},N=async()=>{if(!(x||y.current)){y.current=!0,b(!0),f(null);try{const p=await o.clearCredential(e);d(""),c(!1),f({kind:"ok",text:p?.message??a("credentialClear")})}catch(p){f({kind:"err",text:String(p?.message??p)})}finally{y.current=!1,b(!1)}}},k=()=>{d(""),c(!1)};return t("div",{className:"cm-field"},u?t("form",{className:"cm-field",autoComplete:"off",onSubmit:p=>{p.preventDefault(),P()}},t("input",{className:"cm-input",type:"password",name:"cm-credential-"+e,autoFocus:!0,value:i,placeholder:typeof r=="string"?r:"",disabled:x,autoComplete:"new-password","data-lpignore":"true","data-1p-ignore":"true","data-bwignore":"true","aria-label":a("credentialInputHint"),onChange:p=>d(p.target.value)}),t("div",{className:"cm-buttons"},t("button",{className:"cm-btn small",type:"submit",disabled:x||i.trim().length===0},a(m?"credentialSaving":"credentialSave")),t("button",{className:"cm-btn small",type:"button",onClick:k,disabled:m},a("cancel")))):t("button",{className:"cm-btn small",type:"button",onClick:()=>c(!0),disabled:x},a("credentialEdit")),n===!0?t("button",{className:"cm-btn small",type:"button",onClick:N,disabled:x},a("credentialClear")):null,t("span",{className:"cm-hint"},n===!0?a("credentialConfiguredOf",{source:typeof s=="string"&&s.length>0?s:"unknown"}):a("credentialNotConfigured")),t("span",{className:"cm-hint"},a("credentialInputHint")),ua(g))}function go({pending:e,t:n}){return!Array.isArray(e)||e.length===0?null:t("div",{className:"cm-msg err"},t("div",null,n("secretMigrationPending")),t("div",null,e.join("、")))}function Nt({size:e=16,className:n}){return t("svg",{width:e,height:e,className:n,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t("path",{d:"M4 4H12A2 2 0 0 1 14 6V11.5A2 2 0 0 1 12 13.5H4A2 2 0 0 1 2 11.5V6A2 2 0 0 1 4 4ZM4 5.3H12A0.7 0.7 0 0 1 12.7 6V11.5A0.7 0.7 0 0 1 12 12.2H4A0.7 0.7 0 0 1 3.3 11.5V6A0.7 0.7 0 0 1 4 5.3Z",fill:"currentColor",fillRule:"evenodd"}),t("path",{d:"M3.3 5.3H12.7V7.1H3.3Z",fill:"currentColor"}),t("path",{d:"M8 2.8A1.3 1.3 0 1 0 8 5.4A1.3 1.3 0 1 0 8 2.8Z",fill:"currentColor"}))}function Ua(e,n){const s=ge(!1),a=ge(""),o=n!==null&&typeof n=="object"?[n.input,n.cacheRead,n.cacheWrite,n.output,n.reasoning,n.cost].map(r=>String(r??0)).join("|"):"";Y(()=>{if(!s.current){s.current=!0,a.current=o;return}if(o===""||o===a.current)return;a.current=o;const r=setTimeout(()=>{e.api?.reload?.()},800);return()=>clearTimeout(r)},[o])}function yo(e,n,s,a){const o=n?n.own:e;if(!s||!n?.subagentCount)return o;const r=n.subagents,l={...o};for(const i of["input","output","cacheRead","cacheWrite","reasoning","calls","cost",...bt])l[i]=(o?.[i]??0)+(r?.[i]??0);l.apiCost=Qa(o,a)+Xe(r);for(const i of["byModel","byProviderModel"]){l[i]={...o?.[i]};for(const[d,u]of Object.entries(r?.[i]??{})){const c={...l[i][d]};c.apiCost=Xe(c)+Xe(u);for(const m of["input","output","cacheRead","cacheWrite","reasoning","calls","cost",...bt])c[m]=(c[m]??0)+(u[m]??0);l[i][d]=c}}return l}function Fa(e){const n=e.useProjection?e.useProjection("costUsage"):void 0,s=e.useCost?.(u=>u)?.state,a=s?.config,[o,r]=O(null);Ua(e,n);const l=["input","output","cacheRead","cacheWrite","reasoning","calls","cost","apiCost"].map(u=>n?.[u]??"").join(":");Y(()=>{if(!e.sessionId||!e.api?.getSessionCost)return;let u=!0,c=!1;const m=async()=>{if(!(c||typeof document<"u"&&document.hidden)){c=!0;try{const f=await e.api.getSessionCost(e.sessionId);u&&r({id:e.sessionId,include:a?.includeSubagentCost===!0,value:f})}catch{u&&r(f=>f?.id===e.sessionId&&f.include===(a?.includeSubagentCost===!0)?f:{id:e.sessionId,include:a?.includeSubagentCost===!0,value:null})}finally{c=!1}}};m();const b=a?.includeSubagentCost===!0?setInterval(m,1e4):null,g=()=>{document.hidden||m()};return typeof document<"u"&&document.addEventListener?.("visibilitychange",g),()=>{u=!1,b!==null&&clearInterval(b),typeof document<"u"&&document.removeEventListener?.("visibilitychange",g)}},[e.sessionId,s?.meta?.now,l,a?.includeSubagentCost]);const i=o&&o.id===e.sessionId&&o.include===(a?.includeSubagentCost===!0)?o:null,d=i?.value;return{usage:yo(n,d,a?.includeSubagentCost||d&&d.subagentCount>0,a),config:a,pending:!!e.sessionId&&!!e.api?.getSessionCost&&!i,unrecorded:!!d&&!d.found&&!d.subagentCount}}function _a(e){const n=Q(e.config)==="en";return e.pending?n?"Loading session cost…":"正在读取本会话费用…":e.unrecorded?n?"Session cost: no ledger records":"本会话暂无账本记录":e.usage?"":n?"Session cost unavailable":"本会话费用暂不可用"}function Wa(e,n){if(Number.isFinite(e?.costCny)||Number.isFinite(e?.costEur)){const o=U(e,{...n,showTotalWithPlan:!0}),r=U(e,{...n,showTotalWithPlan:!1});return{cost:n.showTotalWithPlan?o:r,planPart:n.showTotalWithPlan?0:Math.max(0,o-r)}}let s=0,a=wt(e,n);if(n.showTotalWithPlan!==!0&&(e.apiCost!==void 0||qa(e,n))){const o={total:wt(e,n),api:Qa(e,n)};s=Math.max(0,o.total-o.api),s>0&&(a=o.api)}return{cost:a,planPart:s}}function Ka(e,n){return Object.entries(e?.byProviderModel??{}).filter(([,s])=>s.input||s.output||s.cacheRead||s.cacheWrite||s.reasoning).map(([s,a])=>dt(s)+" "+K(U(a,{...n,showTotalWithPlan:!0}),n)).join("; ")}function ho(e){const n=e.useCost?.(y=>y)?.state?.config,[s,a]=O(null),[o,r]=O(""),l=e.turn?.start?.seq,i=e.turn?.end?.seq,d=e.sessionId,u=JSON.stringify([n?.prices,n?.priceOverrides,n?.priceMatch,n?.planBilling,n?.codingPlans,n?.goQuota?.enabled,n?.peakEnabled,n?.peakEffectiveAt,n?.peakWindows,n?.peakHolidays,n?.exchangeRate]);if(Y(()=>{let y=!0;if(a(null),r(""),!(n?.hideTurnCost||!d||l==null||i==null))return e.api.getTurnCost(d,l,i).then(x=>{y&&a(x)},x=>{y&&r(String(x.message??x))}),()=>{y=!1}},[d,l,i,u,n?.hideTurnCost]),!n||n.hideTurnCost||l==null||i==null)return null;const c=Q(n)==="en",m=c?{input:"Input",output:"Output",cacheRead:"Cache read",cacheWrite:"Cache write",reasoning:"Reasoning"}:{input:"输入",output:"输出",cacheRead:"缓存读取",cacheWrite:"缓存写入",reasoning:"推理"},b=y=>K(y,{...n,decimals:Math.max(8,n.decimals??2)}),g=c?{model:"Model call",compaction:"Context compaction",search:"Native search",fetch:"Web fetch"}:{model:"模型调用",compaction:"上下文压缩",search:"原生搜索",fetch:"网页抓取"},f=(y,x)=>t("div",{key:x,style:{marginBottom:4,overflowWrap:"anywhere"}},dt(y.provider+":"+y.model)+" · "+(m[y.bucket]||(y.bucket==="fetchRequests"?c?"Fetch requests":"抓取请求":c?"Search requests":"搜索请求"))+(y.plan?" (Plan)":"")+": "+(y.requests?y.requests+(c?" requests":" 次"):y.tokens.toLocaleString())+" × "+(y.priced?b(y.rate):"?")+(y.requests?" ≈ ":" / 1,000,000 ≈ ")+(y.priced?b(y.cost):"?"),y.priced?y.bucket==="reasoning"&&y.rate===0?c?" (no separate charge)":"(不单独收费)":"":c?" (price unavailable)":"(未配置价格)");return t("details",{className:"cm-note",style:{fontSize:12,marginTop:6}},t("summary",{style:{cursor:"pointer"},title:c?"Log estimate at configured prices; session cost uses recorded ledger amounts.":"本轮按日志和配置价格估算,本会话按账本已入账金额汇总。"},c?"Turn cost":"本轮费用",s?.found?" ≈ "+b(U(s,n))+(s.rows.some(y=>!y.priced)?c?" + unpriced usage":" + 未定价用量":""):s?.inherited?c?" · inherited history":" · 继承历史":o?" ⚠":""),o?t("div",{role:"alert"},o):s?s.found?t(L,null,t("p",null,c?"Estimated from recorded usage and configured prices; rates per 1M tokens.":"按已记录用量和配置价格估算;单价单位为每百万 Token。"),t("p",null,"API ≈ "+b(U(s,{...n,showTotalWithPlan:!1}))+" · Plan ≈ "+b(U(s,{...n,showTotalWithPlan:!0})-U(s,{...n,showTotalWithPlan:!1}))+(c?" (equivalent)":"(等值)")),s.rows.map(f),t("details",null,t("summary",{style:{cursor:"pointer"}},(c?"Individual calls":"逐次调用明细")+" ("+s.calls.length+")"),s.calls.map((y,x)=>t("details",{key:x,style:{margin:"6px 0"}},t("summary",{title:y.provider+":"+y.model,style:{cursor:"pointer",overflowWrap:"anywhere"}},"#"+(x+1)+" "+g[y.kind]+" · "+dt(y.provider+":"+y.model)+" · "+new Date(y.atMs).toLocaleTimeString()+" · "+(y.plan?"Plan ":"API ")+(y.priced?"≈ "+b(y.cost):c?"price unavailable":"未配置价格")+(y.longContext?c?" · long context":" · 长上下文价格":"")),y.metering?t("p",null,"billion-context · "+y.metering.upstream+(y.metering.attempt>1?(c?" · Retry ":" · 重试 ")+y.metering.attempt:"")+(y.metering.complete?"":c?" · partial usage":" · 用量回执不完整")):null,y.rows.map(f))))):s.inherited?c?"Inherited usage is not billed again in this conversation.":"继承的历史用量不在本会话重复计费。":c?"Complete usage records unavailable":"没有完整用量记录":c?"Loading…":"加载中…")}function ko(e){const n=Fa(e),{usage:s,config:a}=n;if(!a)return null;const o=_a(n);if(o)return t("div",{className:"cm-chip"},o);const r=z(Q(a)),{cost:l,planPart:i}=Wa(s,a),d=[r("sessionCostTitle"),r("sessionDetailTokens",{input:D(s?.input??0),cache:D((s?.cacheRead??0)+(s?.cacheWrite??0)),output:D(s?.output??0)}),r("sessionDetailCache",{read:D(s?.cacheRead??0),write:D(s?.cacheWrite??0)}),r("cost",{amount:K(l,a)}),...i>0?[r("sessionDetailPlan",{amount:K(i,a)})]:[],Ka(s,a)].filter(Boolean).join("; ");return t($,{portal:!0,label:d,side:"top",delayMs:500},t("div",{className:"cm-chip"},i>0?r("costChipPlan",{amount:K(l,a)}):r("cost",{amount:K(l,a)})))}function xo(e){const n=Fa(e),{usage:s,config:a}=n;if(!a)return null;const o=_a(n);if(o)return t("div",{className:"cm-root",role:"status",title:o},o);const r=s.input??0,l=(s.cacheRead??0)+(s.cacheWrite??0),i=s.output??0,d=z(Q(a)),{cost:u,planPart:c}=Wa(s,a),m=Ha(s)>0?((s.cacheRead??0)/Ha(s)*100).toFixed(1)+"%":"—",b={amount:K(u,a),planAmount:K(c,a),hitRate:m,input:D(r),cache:D(l),output:D(i)},g=d(c>0?"sessionLineSplit":"sessionLine",b),f=Ka(s,a),y=a.sessionCostCompact===!0,x=d("sessionLineCompact",b),P=y?d(c>0?"sessionLineSplitCompact":"sessionLineCompact",b):g;return t("div",{className:"cm-root cm-session-cost",title:[g,f].filter(Boolean).join("; ")},t("span",{className:"cm-session-amount"},x),t("span",{className:"cm-session-detail"},P.slice(x.length)))}const wo={USD:"$",CNY:"¥",EUR:"€"};function Te(e,n,s){const a=typeof s=="string"?s.toUpperCase():"",o=typeof n?.symbol=="string"&&n.symbol.length>0?n.symbol:"$";return me(e,{symbol:wo[a]??o,decimals:Math.max(2,Math.min(10,Math.floor(Number(n?.decimals)||2)))})}function Ga(e,n){const s=Number(e?.balance?.budgetCap);if(Number.isFinite(s)&&s>0)return s;const a=Number(n?.maxBudget);return Number.isFinite(a)&&a>0?a:null}function No(e){const n=e.today,s=n?.byProviderModel;if(s===null||typeof s!="object"||Object.keys(s).length===0)return Number(n?.cost)||0;let a=0;for(const[o,r]of Object.entries(s)){const l=o.indexOf(":");let i=l>=0?o.slice(0,l):o;i.startsWith("llm-")&&(i=i.slice(4)),/^deepseek(?:-official|-account)?$/.test(i)&&(a+=Number(r?.cost)||0)}return a}function za(e,n,s,a,o=null){const r=s==="official"?No(e):Number(e.today?.cost)||0,l=s==="custom"?at(n,a,o):e.balance?.currency;if(l==="USD")return r;if(l==="CREDITS")return 0;const i=Number(n?.exchangeRate);return r*(Number.isFinite(i)&&i>0?i:1)}function Gt({remaining:e,spend:n,todayUsed:s,cap:a}){if(a===null||a<=0)return{remainingPct:100,todayPct:0,spentPct:0,hasCap:!1,pastSpend:0,today:0};const o=Math.max(0,Number(e)||0),r=Math.max(0,Number(n)||0),l=Math.max(0,Math.min(r,Number(s)||0)),i=Math.max(0,r-l),d=Math.max(0,Math.min(100,o/a*100)),u=Math.max(0,Math.min(100-d,l/a*100)),c=Math.max(0,Math.min(100-d-u,i/a*100));return{remainingPct:d,todayPct:u,spentPct:c,hasCap:!0,pastSpend:i,today:l}}function zt(e,n,s=null,a=null){const o=s??e.customBalance;if((a??n?.customBalance)?.adapter==="tokenrhythm")return{cap:null,...Gt({remaining:o?.remaining,cap:null})};const r=Ga(at(n,o,a)==="CREDITS"?null:n,o),l=Number(o?.remaining)||0,i=Number(o?.spend)||0,d=za(e,n,"custom",o,a);return{cap:r,...Gt({remaining:l,spend:i,todayUsed:d,cap:r})}}function So(e,n){const s=e.balance,a=Ga(n,null),o=Number(s?.totalBalance)||0,r=za(e,n,"official",null),l=a!==null?Math.max(0,a-o):0;return{cap:a,...Gt({remaining:o,spend:l,todayUsed:r,cap:a})}}function Yt(e){const{segments:n,direction:s="remaining"}=e,{remainingPct:a,todayPct:o,spentPct:r}=n,l=[];a>0&&l.push(t("div",{className:"cm-bbox-fill",style:{width:a+"%"}})),o>0&&l.push(t("div",{className:"cm-bbox-seg-today",style:{width:o+"%"}})),r>0&&l.push(t("div",{className:"cm-bbox-seg-spent",style:{width:r+"%"}})),l.length===0&&l.push(t("div",{className:"cm-bbox-fill",style:{width:"100%"}}));const i=s==="used"?[...l].reverse():l;return t("div",{className:"cm-bbox-bar segments"+(s==="used"?" rev":"")},...i)}function Ya(e,n,s,a,o){const r=[e("balanceBarRemaining",{amount:a})];return s.today>0&&r.push(e("balanceBarToday",{amount:n(s.today)})),s.pastSpend>0&&r.push(e("balanceBarSpent",{amount:n(s.pastSpend)})),o!==null&&o>0&&r.push(e("balanceBudgetCapLabel")+": "+n(o)),r.join(" · ")}function Be(e){const[n,s]=O(!1),[a,o]=O(null);return{busy:n,err:a,run:()=>{n||typeof e!="function"||(s(!0),o(null),Promise.resolve().then(e).catch(l=>{o(l?.message??String(l))}).finally(()=>{s(!1)}))}}}const he=(e,n)=>({role:"button",tabIndex:0,"aria-busy":e?"true":"false",onClick:n,onKeyDown:s=>{(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),n())}});function Pe(e,n){const s=[e("clickToRefresh")];return n.busy&&s.push(e("refreshing")),n.err&&s.push("⚠ "+e("balanceRefreshFailed",{message:n.err})),s}const vo="https://platform.deepseek.com/usage";function Va(e){return t("a",{className:"cm-bal-link",href:vo,target:"_blank",rel:"noreferrer noopener",title:e("balanceRechargeLink"),"aria-label":e("balanceRechargeLink"),onClick:n=>n.stopPropagation(),onKeyDown:n=>n.stopPropagation()},t("svg",{width:14,height:14,viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0},t("path",{d:"M8 4H4a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-4M11 3h6v6M9 11l8-8"})))}function Co(e){const{state:n,wide:s,api:a}=e,o=n.balance,r=z(Q(n.config)),l=Be(a?()=>a.refreshBalance():null);if(!o||o.status==="off")return null;if(o.status==="error")return t($,{portal:!0,label:[r("balanceQueryFailed",{message:o.message||r("unknownError")}),...Pe(r,l)].join("; "),side:"right",delayMs:300},t("div",{"data-cm-display":"balance",className:"cm-foot clickable"+(s?"":" cm-foot-rail")+" cm-bal-err"+(l.busy?" busy":""),...he(l.busy,l.run)},s?t(L,null,r("balance")," ",t("span",{className:"cm-num"},r("queryFailed"))):"⚠"));const i=[r("balanceTitle"),r("totalBalance",{amount:Te(o.totalBalance,n.config,o.currency)}),r("grantedToppedUp",{granted:Te(o.grantedBalance,n.config,o.currency),toppedUp:Te(o.toppedUpBalance,n.config,o.currency)}),r("updatedAt",{time:o.fetchedAt>0?new Date(o.fetchedAt).toLocaleTimeString():"—"}),...n.reconcile?.ok===!1?["⚠ "+n.reconcile.message]:[],...Pe(r,l)].join("; ");return t($,{portal:!0,label:i,side:"right",delayMs:300},t("div",{"data-cm-display":"balance",className:"cm-foot clickable"+(s?"":" cm-foot-rail")+(l.busy?" busy":""),...he(l.busy,l.run)},s?t(L,null,t("span",{className:"cm-balance-name"},r("balance"),Va(r)),t("span",{className:"cm-num cm-bal-amt"},Te(o.totalBalance,n.config,o.currency)),n.reconcile?.ok===!1?" ⚠":""):t(Nt,{size:16})))}function Ao(e){const{state:n,wide:s,api:a}=e,o=n.config,r=n.balance,l=z(Q(o)),i=Be(a?()=>a.refreshBalance():null);if(!r||r.status!=="ok")return null;const d=So(n,o),u=Te(r.totalBalance,o,r.currency),c=g=>Te(g,o,r.currency),m=[l("balanceTitle"),Ya(l,c,d,u,d.cap),l("grantedToppedUp",{granted:Te(r.grantedBalance,o,r.currency),toppedUp:Te(r.toppedUpBalance,o,r.currency)}),l("updatedAt",{time:r.fetchedAt>0?new Date(r.fetchedAt).toLocaleTimeString():"—"}),...n.reconcile?.ok===!1?["⚠ "+n.reconcile.message]:[],...Pe(l,i)].join("; "),b=t(L,null,t("div",{className:"cm-bbox-head"},t("span",{className:"cm-balance-name"},t("span",{className:"cm-bbox-label"},l("balance")),Va(l)),t("span",{className:"cm-bbox-pct cm-num cm-bal-amt"},u)),t(Yt,{segments:d,direction:ue(o,"balance")}));return t($,{portal:!0,label:m,side:"right",delayMs:300},t("div",{"data-cm-display":"balance",className:"cm-bbox clickable"+(s?"":" rail")+(i.busy?" busy":""),...he(i.busy,i.run)},s?b:t("div",{className:"cm-bbox-rail cm-num"},Math.round(d.remainingPct)+"%")))}function Vt(e,n){const s=typeof e?.label=="string"?e.label:"",a=typeof e?.labelEn=="string"?e.labelEn:"";return n==="en"?a||s||"Custom balance":s||a||"自定义余额"}function at(e,n,s){if((s??e?.customBalance)?.adapter==="tokenrhythm")return"CNY";if((s??e?.customBalance)?.adapter==="aliyun"&&["CNY","USD","EUR"].includes(n?.unit))return n.unit;const a=s?.unit??e?.customBalance?.unit;return["CNY","EUR","USD","CREDITS"].includes(a)?a:["CNY","EUR","CREDITS"].includes(n?.unit)?n.unit:"USD"}function nt(e,n,s,a){const o=at(n,s,a),r=Number(e);if(!Number.isFinite(r))return"—";const l=n?.currency==="USD"?1:Number(n?.exchangeRate);if((a??n?.customBalance)?.convertToDisplayCurrency===!0&&o==="USD"&&Number.isFinite(l)&&l>0){const c=r*l;return Number.isFinite(c)?me(c,n):"—"}const i=o==="CREDITS",d=Math.max(2,Math.min(6,Math.floor(Number(n?.decimals)||4)));return(i?"":o==="CNY"?"¥":o==="EUR"?"€":"$")+Da(r,d)+(i?" Credits":"")}function $t(e,n,s,a,o=null){const r=nt(e.remaining,n,e,o);if((o??n?.customBalance)?.adapter==="tokenrhythm")return s("customBalanceRemaining",{amount:r});const l=b=>nt(b,n,e,o);if(a&&n.balance?.showProgressBar===!0){const b=zt(a,n,e,o);return[Ya(s,l,b,r,b.cap),s("updatedAt",{time:e.fetchedAt>0?new Date(e.fetchedAt).toLocaleTimeString():"—"})].join(" · ")}const i=e.spend!==null?l(e.spend):"—",d=e.maxBudget!==null?l(e.maxBudget):"—",u=at(n,e,o)==="CREDITS"?NaN:Number(n?.balance?.budgetCap),c=Number.isFinite(u)&&u>0?s("balanceBudgetCapLabel")+": "+l(u):"",m=e.maxBudget!==null&&e.spend!==null?s("customBalanceLine",{remaining:r,spend:i,maxBudget:d,time:e.fetchedAt>0?new Date(e.fetchedAt).toLocaleTimeString():"—"}):s("customBalanceRemaining",{amount:r});return c?m+" · "+c:m}function Po(e,n,s,a,o){const r=Vt(o??n.customBalance??{},Q(n)),l=nt(a.remaining,n,a,o),i=zt(e,n,a,o);return{level:"ok",rail:Math.round(i.remainingPct)+"%",body:t(L,null,t("div",{className:"cm-bbox-head"},t("span",{className:"cm-bbox-label"},r),t("span",{className:"cm-bbox-pct cm-num cm-bal-amt"},l)),t(Yt,{segments:i,direction:ue(n,"balance")}))}}function St(e,n){const s=n?.customBalances??[],a=Array.isArray(e?.customBalances)?e.customBalances:[],o=[];return s.forEach((r,l)=>{if(r?.enabled!==!0||r.display!=="sidebar"&&r.display!=="both")return;const i=a.find(d=>d.index===l)??(a.length===1&&s.length===1?a[0]:null);o.push({index:l,entry:r,snapshot:i})}),o.length===0&&a.length===0&&n?.customBalance?.enabled===!0&&(n.customBalance.display==="sidebar"||n.customBalance.display==="both")&&e?.customBalance?.status&&e.customBalance.status!=="off"&&o.push({index:null,entry:n.customBalance,snapshot:e.customBalance}),o}function Mo(e){const{state:n,wide:s,api:a}=e,o=n.config,r=z(Q(o)),l=St(n,o);return l.length===0?null:t(L,null,l.map(({index:i,entry:d,snapshot:u})=>t(d.adapter==="tokenrhythm"?$a:To,{key:"cb-"+i,state:n,wide:s,api:a,t:r,index:i,entry:d,snapshot:u})))}function To(e){const{state:n,wide:s,api:a,t:o,index:r,entry:l,snapshot:i}=e,d=n.config;if(i==null||i.status!=="ok")return null;const u=Be(a?()=>a.refreshCustomBalance(r):null),c=Po(n,d,o,i,l),m=[$t(i,d,o,n,l),...Pe(o,u)].join(" · ");return t($,{portal:!0,label:m,side:"right",delayMs:300},t("div",{"data-cm-display":"customBalance",className:"cm-bbox clickable"+(c.level==="ok"?"":" "+c.level)+(s?"":" rail")+(u.busy?" busy":""),...he(u.busy,u.run)},s?c.body:t("div",{className:"cm-bbox-rail cm-num"},c.rail)))}function Ro(e){const{state:n,wide:s,api:a}=e,o=n.config,r=z(Q(o)),l=St(n,o);return l.length===0?null:t(L,null,l.map(({index:i,entry:d,snapshot:u})=>t($a,{key:"cbr-"+i,state:n,wide:s,api:a,t:r,index:i,entry:d,snapshot:u})))}function $a(e){const{state:n,wide:s,api:a,t:o,index:r,entry:l,snapshot:i}=e,d=n.config,u=i??Na(r);if(u.status==="off")return null;const c=Be(a?()=>a.refreshCustomBalance(r):null),m=Vt(l??d.customBalance??{},Q(d));if(u.status==="error")return t($,{portal:!0,label:[u.message||o("unknownError"),...Pe(o,c)].join("; "),side:"right",delayMs:300},t("div",{"data-cm-display":"customBalance",className:"cm-foot clickable"+(s?"":" cm-foot-rail")+" cm-bal-err"+(c.busy?" busy":""),...he(c.busy,c.run)},s?t(L,null,t("span",{className:"cm-bal-label",title:m},m),t("span",{className:"cm-num cm-bal-amt"},o("queryFailed"))):"⚠"));const b=nt(u.remaining,d,u,l),g=[$t(u,d,o,n,l),...Pe(o,c)].join(" · ");return t($,{portal:!0,label:g,side:"right",delayMs:300},t("div",{"data-cm-display":"customBalance",className:"cm-foot clickable"+(s?"":" cm-foot-rail")+(c.busy?" busy":""),...he(c.busy,c.run)},s?t(L,null,t("span",{className:"cm-bal-label",title:m},m),t("span",{className:"cm-num cm-bal-amt"},b)):t(Nt,{size:16})))}function Ja(e){const s=(e.useCost?e.useCost(f=>f):void 0)?.state;if(!s)return null;const a=s.config,o=z(Q(a)),r=a.corner??{enabled:!1,goRolling:!0,goWeekly:!0,goMonthly:!0,budget:!0},l=s.goQuota,i=a?.goQuota?.enabled!==!1&&l?.status==="ok",d=f=>f!==null&&typeof f?.percent=="number"?Math.round(Math.max(0,Math.min(100,f.percent))):null,u=[];if(a.sidebarModels?.dock){const f=dn(s,a.sidebarModels.period,o);f.length&&u.push({key:"model-top",text:t(L,null,t("span",{className:"cm-bal-label"},f[0].label),t("span",{className:"cm-bal-amt"},K(f[0].cost,a))),tip:f[0].label+" "+K(f[0].cost,a),level:"ok"})}const c=(f,y,x,P)=>{if(!r.enabled||!f||!i)return;const N=d(y);if(N===null)return;const k=typeof y.resetsAt=="string"&&y.resetsAt.length>0?o("goResetAt",{time:new Date(y.resetsAt).toLocaleString()}):"";u.push({key:x,text:o(x)+" "+N+"%",tip:o(P)+": "+N+"%"+(k?" · "+k:""),level:N>=100?"over":N>=80?"warn":"ok"})},m=a?.goQuota?.main==="weekly"||a?.goQuota?.main==="monthly"?a.goQuota.main:"rolling",b=[m,...["rolling","weekly","monthly"].filter(f=>f!==m)],g=f=>f==="rolling"?["goRolling",l?.rolling,"goShortRolling","cornerGoRolling"]:f==="weekly"?["goWeekly",l?.weekly,"goShortWeekly","cornerGoWeekly"]:["goMonthly",l?.monthly,"goShortMonthly","cornerGoMonthly"];for(const f of b){const[y,x,P,N]=g(f);c(r[y]===!0,x,P,N)}if(r.enabled&&r.budget===!0){const f=a.budget??{enabled:!1,amount:100,period:"month"};if(f.enabled===!0){const y=Number(a.exchangeRate),P=(s.budgetUsed??(f.period==="day"?U(s.today,a):f.period==="all"?U(s.total,a):U(s.month,a)))*(Number.isFinite(y)&&y>0?y:1),N=Math.max(0,Number(f.amount)||0),k=N>0?Math.min(999,P/N*100):null;if(k!==null){const p=k>=100?"over":k>=80?"warn":"ok";u.push({key:"budget",text:o("budgetShort")+" "+k.toFixed(1)+"%",tip:o("budgetOf",{period:o(Ye[f.period]??"periodMonth")})+" · "+o("usedOf",{used:me(P,a),amount:me(N,a)}),level:p})}}}return u.length===0?null:t("div",{className:"cm-corner"},u.map(f=>t($,{portal:!0,key:f.key,label:f.tip,side:"top",delayMs:500},t("span",{className:"cm-corner-chip"+(f.key==="model-top"?" cm-model-top":"")+(f.level==="ok"?"":" "+f.level)},f.text))))}function Jt(e,n,s){if(!Array.isArray(n)||n.length===0||!Number.isFinite(e))return null;const a=(b,g)=>{const f=new Date(e);return f.setUTCDate(f.getUTCDate()+b),f.setUTCHours(g,0,0,0),f.getTime()},o=new Set,r=Math.max(12,Math.min(380,(Array.isArray(s)?s.length:0)+7));for(let b=-r;b<=r;b+=1){o.add(a(b,16));for(const g of n){const f=Number(g?.start),y=Number(g?.end);!Number.isFinite(f)||!Number.isFinite(y)||(o.add(a(b,f)),o.add(a(y<=f?b+1:b,y)))}}const l=[...o].sort((b,g)=>b-g).flatMap(b=>{const g=ht(b-1,void 0,n,s),f=ht(b,void 0,n,s);return g===f?[]:[{at:b,intoPeak:f}]});let i=null,d=null;for(const b of l)b.at<=e&&(i===null||b.at>i.at)&&(i=b),b.at>e&&(d===null||b.at<d.at)&&(d=b);const u=Ra(e,s),c=u??Ta(e);return c!==null?d===null?null:{inPeak:!1,weekend:u===null,...u?{holiday:!0}:{},prevAtMs:c.start,nextAtMs:d.at,nextIntoPeak:d.intoPeak}:i===null||d===null?null:{inPeak:ht(e,void 0,n,s),weekend:!1,prevAtMs:i.at,nextAtMs:d.at,nextIntoPeak:d.intoPeak}}function Fe(e,n){if(!e||e.peakNotice===!1||e.peakEnabled!==!0)return null;const s=Date.parse(e.peakEffectiveAt||"");if(Number.isFinite(s)&&n<s)return null;const a=Array.isArray(e.peakWindows)?e.peakWindows:[];return Jt(n,a,e.peakHolidays)}function ot(e){return e.holiday===!0?{short:"holidayShort",chip:"holidayChip",notice:"holidayAllOffPeak"}:e.weekend===!0?{short:"weekendShort",chip:"weekendChip",notice:"weekendAllOffPeak"}:e.inPeak?{short:"peakShort",chip:"peakShort",notice:"peakNotice"}:{short:"offPeakShort",chip:"offPeakShort",notice:"offPeakActive"}}function Re(e,n,s){const a=Math.max(0,e.nextAtMs-n),o=Math.max(1,Math.ceil(a/6e4)),r=Math.floor(o/60),l=o%60;return r>0?l>0?s("countdownHourMinute",{h:r,m:l}):s("countdownHoursOnly",{h:r}):s("countdownMinute",{m:o})}function Za(e){const n=ge(null),s=ge(e.actions);s.current=e.actions,Y(()=>{const d=n.current;if(!d)return;try{typeof d.showPopover=="function"?d.showPopover():d.removeAttribute("popover")}catch{d.removeAttribute("popover")}let u=!1;const c=f=>{d.contains(f.target)&&(u=!0,f.stopPropagation())},m=f=>{u&&(u=!1,f.stopPropagation())},g=[["pointerdown",c],["pointerup",m],["pointercancel",m],["touchstart",c],["click",f=>{if(!d.contains(f.target))return;f.stopPropagation();const y=f.target.closest?.("[data-cm-action]");y&&!y.disabled&&s.current[y.dataset.cmAction]?.()}]];for(const[f,y]of g)window.addEventListener?.(f,y,{capture:!0,passive:!0});return()=>{for(const[f,y]of g)window.removeEventListener?.(f,y,!0);try{d.hidePopover()}catch{}}},[]);const{actions:a,children:o,...r}=e,l=t("div",{...r,ref:n,popover:"manual"},o);let i;try{i=De("react-dom")?.createPortal}catch{}return typeof i=="function"?i(l,document.body):l}const Oo="cm-peak-alert-preview";function Bo(e){return e.useCost?.(s=>s)?.state?.config?.peakEnabled===!0?t(st,{...e,view:"alert"}):null}function Lo(e){const{config:n,t:s}=e,[a,o]=O(Date.now());Y(()=>{const d=window.setInterval(()=>o(Date.now()),3e4);return()=>window.clearInterval(d)},[]);const r=Fe(n,a);if(r===null)return null;const l=ot(r),i=r.nextIntoPeak?s("nextPeakIn",{time:Re(r,a,s)}):s("nextOffPeakIn",{time:Re(r,a,s)});return t($,{portal:!0,label:s(l.notice),side:"right",delayMs:300},t("div",{"data-cm-display":"peak",className:"cm-peak-strip "+(r.weekend||r.holiday?"weekend":r.inPeak?"peak":"off")},t("div",{className:"cm-peak-track"},t("div",{className:"cm-peak-segment cm-peak-high"}),t("div",{className:"cm-peak-segment cm-peak-low"}),t("div",{className:"cm-peak-marker",style:{left:r.weekend||r.holiday?"50%":r.inPeak?"25%":"75%"}})),t("span",{className:"cm-peak-chip"},s(l.chip)+" · "+i)))}function Do(e){const{config:n,t:s}=e,[a,o]=O(Date.now());Y(()=>{const d=window.setInterval(()=>o(Date.now()),3e4);return()=>window.clearInterval(d)},[]);const r=Fe(n,a);if(r===null)return null;const l=ot(r),i=r.nextIntoPeak?s("nextPeakIn",{time:Re(r,a,s)}):s("nextOffPeakIn",{time:Re(r,a,s)});return t($,{portal:!0,label:s(l.notice),side:"right",delayMs:300},t("div",{"data-cm-display":"peak",className:"cm-peak-classic "+(r.weekend||r.holiday?"weekend":r.inPeak?"peak":"off")},t("div",{className:"cm-peak-classic-marker",style:{left:r.weekend||r.holiday?"50%":r.inPeak?"25%":"75%"}}),t("div",{className:"cm-peak-track"},t("div",{className:"cm-peak-segment cm-peak-high"}),t("div",{className:"cm-peak-segment cm-peak-low"})),t("span",{className:"cm-peak-classic-chip"},s(l.chip)+" · "+i)))}let Xa;function Eo(){return Xa??=De.async("./client.peak.js").then(e=>e.mount({peakView:Fe,peakPhaseAt:Jt,phaseLabelKeys:ot,countdownText:Re,resolveLocale:Q,makeT:z,Tooltip:$,FloatingCard:Za,renderSidebarFooter:At})).catch(e=>{throw Xa=null,e})}function st(e){return t(Ne,{...e,load:Eo,quiet:!0})}function Io(e){const n=e.useCost?.(s=>s)?.state;return n&&n.config.sidebar!==!1&&!n.config.sidebarSummaryPromptSeen?t(st,{...e,state:n,config:n.config,view:"summary-guide"}):null}function jo(e){const n=e.useCost?.(a=>a)?.state,s=n?.config;return s?.peakEnabled&&s.peakNotice!==!1&&!s.peakProgressPromptSeen?t(st,{...e,state:n,config:s,view:"guide"}):null}function en(e,n,s){return t(n?.peakStyle==="progress"?st:n?.peakStyle==="classic"?Do:Lo,{config:n,t:s})}function qo(e){const{config:n,t:s}=e,[a,o]=O(Date.now());Y(()=>{const u=window.setInterval(()=>o(Date.now()),3e4);return()=>window.clearInterval(u)},[]);const r=Fe(n,a);if(r===null)return null;const l=ot(r),i=r.nextIntoPeak?s("nextPeakIn",{time:Re(r,a,s)}):s("nextOffPeakIn",{time:Re(r,a,s)}),d=[s(l.notice),i];return t($,{portal:!0,label:d,side:"right",delayMs:300},t("div",{className:"cm-peak-rail "+(r.weekend||r.holiday?"weekend":r.inPeak?"peak":"off"),"aria-label":d.join("; ")},t("div",{className:"cm-peak-rail-track"},t("div",{className:"cm-peak-rail-segment cm-peak-rail-high"}),t("div",{className:"cm-peak-rail-segment cm-peak-rail-low"}),t("div",{className:"cm-peak-rail-marker",style:{top:r.weekend||r.holiday?"50%":r.inPeak?"25%":"75%"}})),t("span",{className:"cm-peak-rail-label"},s(l.short))))}function Ho(e){const{config:n,t:s}=e,[a,o]=O(Date.now());Y(()=>{const u=window.setInterval(()=>o(Date.now()),3e4);return()=>window.clearInterval(u)},[]);const r=Fe(n,a);if(r===null)return null;const l=ot(r),i=r.nextIntoPeak?s("nextPeakIn",{time:Re(r,a,s)}):s("nextOffPeakIn",{time:Re(r,a,s)}),d=[s(l.notice),i];return t($,{portal:!0,label:d,side:"right",delayMs:300},t("div",{className:"cm-peak-rail-classic "+(r.weekend||r.holiday?"weekend":r.inPeak?"peak":"off"),"aria-label":d.join("; ")},t("div",{className:"cm-peak-rail-classic-track"},t("div",{className:"cm-peak-rail-classic-segment peak"}),t("div",{className:"cm-peak-rail-classic-segment off"}),t("div",{className:"cm-peak-rail-classic-marker",style:{top:r.weekend||r.holiday?"50%":r.inPeak?"25%":"75%"}})),t("span",{className:"cm-peak-rail-classic-label"},s(l.short))))}function Qo(e,n,s){return t(n?.peakStyle==="progress"?st:n?.peakStyle==="classic"?Ho:qo,{config:n,t:s,rail:!0})}function Uo(e,n,s){const a=n.budget??{enabled:!1,amount:100,period:"month"},o=Number(n.exchangeRate),l=(e.budgetUsed??(a.period==="day"?U(e.today,n):a.period==="all"?U(e.total,n):U(e.month,n)))*(Number.isFinite(o)&&o>0?o:1),i=Math.max(0,Number(a.amount)||0),d=i>0?Math.min(999,l/i*100):null,u=we(d===null?null:Math.min(100,d),ue(n,"budget")),c=a.detail!==!1;return{level:d===null?"ok":d>=100?"over":d>=80?"warn":"ok",rail:u.label===null?"—":Math.round(u.label)+"%",body:t(L,null,t("div",{className:"cm-bbox-head"},t("span",{className:"cm-bbox-label"},s("budget")),t("span",{className:"cm-bbox-pct cm-num"},u.label===null?"—":u.label.toFixed(1)+"%")),t("div",{className:"cm-bbox-bar"},t("div",{className:"cm-bbox-fill",style:{width:u.width+"%"}})),c?t(L,null,t("div",{className:"cm-bbox-line cm-num"},s("usedOf",{used:me(l,n),amount:me(i,n)}))):null)}}function Fo(e,n,s){const a=e.goQuota,o=n?.goQuota?.main==="weekly"||n?.goQuota?.main==="monthly"?n.goQuota.main:"rolling",r=a[o],l=r!==null&&typeof r?.percent=="number"?Math.max(0,Math.min(100,Number(r.percent)||0)):0,i=g=>g!==null&&typeof g?.percent=="number"?Math.round(Math.max(0,Math.min(100,g.percent)))+"%":"—",d=g=>s(g==="rolling"?"goShortRolling":g==="weekly"?"goShortWeekly":"goShortMonthly"),u=["rolling","weekly","monthly"].filter(g=>g!==o),c=r!==null&&typeof r?.resetsAt=="string"&&r.resetsAt.length>0?s("goResetAt",{time:new Date(r.resetsAt).toLocaleString()}):"",m=n?.goQuota?.detail!==!1,b=we(l,ue(n,"go"));return{level:l>=100?"over":l>=80?"warn":"ok",rail:b.label===null?"—":Math.round(b.label)+"%",body:t(L,null,t("div",{className:"cm-bbox-head"},t("span",{className:"cm-bbox-label"},s("goQuotaRowLabel")+" "+d(o)),t("span",{className:"cm-bbox-pct cm-num"},b.label===null?"—":Math.round(b.label)+"%")),t("div",{className:"cm-bbox-bar"},t("div",{className:"cm-bbox-fill",style:{width:b.width+"%"}})),m?t(L,null,t("div",{className:"cm-bbox-line cm-num"},u.map(g=>d(g)+" "+i(a[g])).join(" · ")),c?t("div",{className:"cm-bbox-line"},c):null):null)}}function tn(e,n,s){const a=ue(n,"go");return["rolling","weekly","monthly"].map((o,r)=>{const l=e?.[o],i=typeof l?.percent=="number"&&Number.isFinite(l.percent)?Math.max(0,Math.min(100,l.percent)):null,d=l?.resetsAt&&Number.isFinite(Date.parse(l.resetsAt))?" · "+s("goResetAt",{time:new Date(l.resetsAt).toLocaleString()}):"";return s(["goWindowRolling","goWindowWeekly","goWindowMonthly"][r])+": "+(i===null?"—":Le(we(i,a).label,a,s))+d}).concat(e?.fetchedAt>0?s("goQuotaFetchedAt",{time:new Date(e.fetchedAt).toLocaleTimeString()}):[]).join(`
|
|
3
3
|
`)}function _o(e){const{state:n,wide:s}=e,a=n.goQuota,o=z(Q(n.config));if(!a||a.status!=="ok")return null;const r=n.config?.goQuota?.main==="weekly"||n.config?.goQuota?.main==="monthly"?n.config.goQuota.main:"rolling";if(a[r]===null||typeof a[r]?.percent!="number")return null;const l=Fo(n,n.config,o),i=tn(a,n.config,o);return t($,{portal:!0,label:t("span",{style:{whiteSpace:"pre-line"}},i),side:"right",delayMs:300},t("div",{"data-cm-display":"go",className:"cm-bbox"+(l.level==="ok"?"":" "+l.level)+(s?"":" rail")},s?l.body:t("div",{className:"cm-bbox-rail cm-num"},l.rail)))}function Wo(e){return e===null||typeof e!="object"||e.unlimited||typeof e.percent!="number"?null:Math.max(0,Math.min(100,Math.round(Number(e.percent)||0)))}function _e(e){const n=e!==null&&typeof e=="object"?e:{};return{five:n["5h"]??null,seven:n["7d"]??n.week??n.weekly??null}}function an(e,n,s=Date.now()){if(typeof e!="string"||!e)return"";const a=Date.parse(e);if(!Number.isFinite(a))return"";const o=a-s;if(o<=0)return n("resetReached");const r=Math.ceil(o/6e4),l=Math.floor(r/1440),i=Math.floor(r%1440/60),d=r%60;return l>0?n("resetDays",{d:l,h:i}):i>0?n("resetHours",{h:i,m:d}):n("resetMinutes",{m:d})}function lt(e,n,s=Date.now()){const a=an(e?.resetsAt,n,s);return a?n("goResetAt",{time:new Date(e.resetsAt).toLocaleString()})+" ("+a+")":""}function Le(e,n,s){return e===null?"—":s(n==="remaining"?"quotaRemaining":"quotaUsed",{pct:e})}function vt(e){const[,n]=O(0),s=()=>n(Date.now());return Y(()=>{if(!e)return;const a=setInterval(s,6e4);return()=>clearInterval(a)},[e]),{onMouseEnter:s,onFocus:s}}function rt(e,n,s,a,o){const r=Wo(n),l=r===null?"ok":r>=100?"over":r>=80?"warn":"ok",i=we(r,s),d=n?.unlimited?"∞":o?Le(i.label,s,a):i.label===null?"—":i.label+"%";return{level:l,pct:r,text:d,label:i.label,row:t("div",{key:e,className:"cm-mm-row"+(l==="ok"?"":" "+l)},t("span",{className:"cm-bbox-label"},e),t("div",{className:"cm-bbox-bar"},t("div",{className:"cm-bbox-fill",style:{width:i.width+"%"}})),t("span",{className:"cm-bbox-pct cm-num"},d))}}function Zt(e){const{five:n,seven:s,fetchedAt:a,t:o,wide:r,refresh:l,direction:i="used"}=e,d=vt(n?.resetsAt),u=an(n?.resetsAt,o),c=rt(o("codingPlanRemain5h"),n,i,o),m=rt(o("codingPlanRemain7d"),s,i,o),b=c.level==="over"||m.level==="over"?"over":c.level==="warn"||m.level==="warn"?"warn":"ok",g=(P,N,k)=>{const p=N?.unlimited?o("quotaUnlimited"):Le(k.label,i,o),h=lt(N,o);return P+" "+p+(h?" · "+h:"")},f=[o("codingPlanMinimaxTitle"),g(o("codingPlanRemain5h"),n,c),g(o("codingPlanRemain7d"),s,m),a>0?o("goQuotaFetchedAt",{time:new Date(a).toLocaleTimeString()}):null,...l?Pe(o,l):[]].filter(Boolean).join(`
|
|
4
4
|
`),y=t(L,null,t("div",{className:"cm-mm-title"},o("codingPlanMinimaxTitle")),c.row,m.row,u?t("div",{className:"cm-mm-reset"},"5h · "+u):null),x=t(L,null,t("div",{className:"cm-bbox-rail cm-num"},c.text),t("div",{className:"cm-bbox-rail cm-num"},m.text));return t($,{portal:!0,label:t("span",{style:{whiteSpace:"pre-line"}},f),side:"right",delayMs:300},t("div",{...d,"data-cm-display":"plan","data-cm-plan":"minimax",className:"cm-bbox cm-mm"+(b==="ok"?"":" "+b)+(r===!1?" rail":"")+(l?" clickable"+(l.busy?" busy":""):""),...l?he(l.busy,l.run):{}},r===!1?x:y))}function Ko(e){const{state:n,wide:s,api:a}=e,o=n.codingPlans?.minimax,r=z(Q(n.config)),l=Be(a?()=>a.refreshCodingPlan("minimax"):null);if(!o||o.status!=="ok")return null;const{five:i,seven:d}=_e(o.windows);return i==null&&d==null?null:t(Zt,{five:i,seven:d,fetchedAt:o.fetchedAt,t:r,wide:s,refresh:l,direction:ue(n.config,"plan")})}const Go="/plugins/dsh-openai-codex/auth/status",zo={18e3:"five",604800:"weekly"};function nn(e){if(!Array.isArray(e))return null;const n=e.find(a=>a!==null&&typeof a=="object"&&a.id==="codex");if(!n||!Array.isArray(n.windows))return null;const s={};for(const a of n.windows){const o=a!==null&&typeof a=="object"?zo[Number(a.windowSeconds)]:null;if(!o||typeof a.remainingPercent!="number"||!Number.isFinite(Number(a.remainingPercent)))continue;const r=Number(a.resetAt??a.resetsAt);s[o]={percent:Math.max(0,Math.min(100,Math.round((100-Number(a.remainingPercent))*10)/10)),resetsAt:Number.isFinite(r)&&r>0?new Date(r*1e3).toISOString():""}}return s}function Yo(e){return e===null||typeof e!="object"||e.status!=="signed-in"?null:nn(e.usage?.rateLimits)}async function Vo(e){try{const n=await G.rpc?.call("/api","codex-subscription/usage",{force:e},AbortSignal.timeout(8e3));return n?.ok?nn(n.value?.rateLimits):null}catch{return null}}const G={source:"auto",listeners:[]},Xt=e=>Object.assign(G,{rpc:e,request:null,inFlight:null,fetchedAt:0,status:"idle",windows:{}});Xt(null);const ea=()=>{const{rpc:e,request:n,inFlight:s,listeners:a,...o}=G;return o},$o=e=>(G.listeners.push(e),()=>{G.listeners=G.listeners.filter(n=>n!==e)}),on=()=>{for(const e of G.listeners)try{e()}catch{}};async function Ct(e=!1,n=!1,s="auto"){if(!n)return;if(G.inFlight!==null&&G.source===s)return G.inFlight;if(!e&&G.source===s&&G.fetchedAt>0&&Date.now()-G.fetchedAt<(G.status==="ok"?5:1)*6e4)return;const a={};G.request=a,G.source!==s&&Object.assign(G,{status:"idle",windows:{},fetchedAt:0,source:s}),on();const o=Promise.resolve().then(async()=>{let r={};try{if((s==="auto"||s==="subscription")&&(r=await Vo(e)??{}),Object.keys(r).length===0&&(s==="auto"||s==="chatgpt"))try{r=await(await De.async("./client.codex.js")).readChatgptQuota(e)??{}}catch{}if(Object.keys(r).length===0&&(s==="auto"||s==="connect")){const l=await fetch(Go,{credentials:"same-origin",headers:{accept:"application/json"},signal:AbortSignal.timeout(8e3)});l.ok&&(r=Yo(await l.json().catch(()=>null))??{})}}catch{}finally{if(G.request!==a)return;G.status=Object.keys(r).length>0?"ok":"unavailable",G.windows=r,G.fetchedAt=Date.now(),G.inFlight=null,on()}});return G.inFlight=o,o}function ta(e,n="auto"){const[s,a]=O(ea);return Y(()=>{if(!e)return;let o=!0;const r=()=>{o&&a(ea())},l=$o(r);r(),Ct(!1,!0,n);const i=setInterval(()=>{Ct(!1,!0,n)},6e4);return()=>{o=!1,clearInterval(i),l()}},[e,n]),s.source===n?s:{status:"idle",windows:{},fetchedAt:0}}function Jo(e){const n=vt(),{state:s,wide:a}=e,o=z(Q(s.config)),r=s.config?.codexQuotaEnabled===!0&&s.config?.codexQuotaSidebar!==!1,l=s.config?.codexQuotaSource??"auto",i=ta(r&&!e.preview,l),d=e.preview?s.displayPreviewCodex??(G.source===l?G:{status:"idle"}):i,u=Be(e.preview?null:r?()=>Ct(!0,r,l):()=>e.api.updateConfig({codexQuotaEnabled:!0,codexQuotaSidebar:!0}));if(!r&&(s.config?.codexQuotaSidebar===!1||s.codexCompat?.enabled!==!0))return null;if(!r)return t("div",{"data-cm-display":"codex",className:"cm-bbox cm-mm clickable"+(a===!1?" rail":""),...he(u.busy,u.run)},u.err||(a===!1?"Codex":o("codexQuotaEnable")));if(d.status!=="ok")return t("div",{"data-cm-display":"codex",className:"cm-bbox cm-mm clickable"+(a===!1?" rail":""),title:o("codexQuotaUnavailable"),...he(u.busy,u.run)},t("div",{className:"cm-mm-title"},a===!1?"Codex":o("codexQuotaTitle")),t("span",{className:"cm-hint"},a===!1?"—":o(d.status==="idle"||u.busy?"refreshing":"codexQuotaUnavailable")));const c=[["five","codexQuotaFive","5h"],["weekly","codexQuotaWeek","7d"]].flatMap(([y,x,P])=>{const N=d.windows[y];if(!N)return[];const k=rt(P,N,"remaining",o,!0),p=new Date(typeof N.resetsAt=="string"?N.resetsAt:NaN),h=Number.isFinite(p.getTime())?o("codexQuotaReset",{time:p.toLocaleString("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1})}):"";return[{...k,key:y,short:P,name:o(x),reset:h,win:N}]});if(!c.length)return null;const m=c.some(y=>y.pct>=100)?"over":c.some(y=>y.pct>=80)?"warn":"ok",b=[o("codexQuotaTitle"),...c.map(y=>y.name+" · "+y.text+(y.reset?" · "+lt(y.win,o):"")),d.fetchedAt>0?o("goQuotaFetchedAt",{time:new Date(d.fetchedAt).toLocaleTimeString()}):null,...Pe(o,u)].filter(Boolean).join(`
|
|
5
5
|
`),g=t(L,null,t("div",{className:"cm-bbox-head cm-codex-head"},t("div",{className:"cm-mm-title"},o("codexQuotaTitle")),t("div",{className:"cm-codex-resets"},...c.filter(y=>y.reset).map(y=>t("span",{key:y.key,className:"cm-mm-reset"},(c.length>1?y.short+" · ":"")+y.reset)))),...c.map(y=>y.row)),f=t(L,null,...c.map(y=>t("div",{className:"cm-bbox-rail cm-num"},y.text)));return t($,{portal:!0,label:t("span",{style:{whiteSpace:"pre-line"}},b),side:"right",delayMs:300},t("div",{...n,"data-cm-display":"codex",className:"cm-bbox cm-mm clickable"+(m==="ok"?"":" "+m)+(a===!1?" rail":"")+(u.busy?" busy":""),...he(u.busy,u.run)},a===!1?f:g))}function it(e,n){return e.startsWith("core_")?"Core · "+it(e.slice(5),n):e==="fiveHour"||e==="5h"?"5h":e==="weekly"||e==="week"||e==="7d"?e==="7d"?"7d":n("goShortWeekly"):e==="monthly"||e==="month"?n("goShortMonthly"):e==="daily"||e==="day"?n("goShortDaily"):e==="plan"?n("mimoWindowPlan"):e==="compensation"?n("mimoWindowCompensation"):e==="balance"?n("codingPlanWindowBalance"):String(e).replace(/_/g," ")}function Zo(e){const n=vt(),{id:s,state:a,wide:o,api:r}=e,l=a.codingPlans?.[s],i=z(Q(a.config)),d=Be(r?()=>r.refreshCodingPlan(s):null),u=qe.find(h=>h.id===s);if(!u||!l||l.status!=="ok")return null;const c=l.windows!==null&&typeof l.windows=="object"?l.windows:{},m=Object.entries(c);if(m.length===0)return null;const b=h=>h!==null&&typeof h=="object"&&typeof h.percent=="number"?Math.max(0,Math.min(100,Math.round(Number(h.percent)||0))):null,g=ue(a.config,"plan"),f=s==="workbuddy"&&c.balance?.text?i("codingPlanWindowBalance")+": "+c.balance.text:null,y=(f?m.filter(([h])=>h!=="balance"):m).map(([h,w])=>{const A=b(w);if(A===null)return t("div",{key:h,className:"cm-mm-row wide"},t("span",{className:"cm-mm-text"},typeof w?.text=="string"?w.text:"—"));const R=A>=100?"over":A>=80?"warn":"ok",q=we(A,g);return t("div",{key:h,className:"cm-mm-row wide"+(R==="ok"?"":" "+R)},t("span",{className:"cm-bbox-label"},it(h,i)),t("div",{className:"cm-bbox-bar"},t("div",{className:"cm-bbox-fill",style:{width:q.width+"%"}})),t("span",{className:"cm-bbox-pct cm-num"},q.label===null?"—":q.label+"%"))}),x=m.map(([h,w])=>{const A=b(w),R=lt(w,i),q=A===null?typeof w?.text=="string"?w.text:"—":Le(we(A,g).label,g,i);return it(h,i)+" "+q+(R?" · "+R:"")});l.fetchedAt>0&&x.push(i("goQuotaFetchedAt",{time:new Date(l.fetchedAt).toLocaleTimeString()})),l.message&&x.push(l.message),x.push(...Pe(i,d));const P=[i(u.labelKey),...x].join(`
|
package/lib/index.js
CHANGED
|
@@ -158,11 +158,11 @@ const SERVER_MESSAGES = {
|
|
|
158
158
|
mimoCookieMissing: '未找到 {provider} 的凭据。请粘贴小米开放平台控制台的 Cookie(登录 platform.xiaomimimo.com 后 F12→网络→balanceAlertConfig→请求头 cookie 整段复制),或配置 MIMO_COOKIE 环境变量;tp-*/ttp-* 专用 Key 无用量端点,不支持额度查询。',
|
|
159
159
|
mimoCookieInvalid: '{provider} 的 Cookie 缺少必需字段(需要 serviceToken 与 userId)。请从浏览器重新复制整段 cookie 请求头;tp-*/ttp-* 专用 Key 不支持额度查询。',
|
|
160
160
|
mimoLoginExpired: '{provider} 的控制台登录态已过期。请重新登录 platform.xiaomimimo.com 并复制新的 Cookie。',
|
|
161
|
-
workbuddyNotInstalled: '未找到 {provider}
|
|
162
|
-
workbuddyAuthEncrypted: '{provider} 的登录文件已加密。请在当前 DSH
|
|
163
|
-
workbuddyConnectUnavailable: '无法读取 WorkBuddy
|
|
161
|
+
workbuddyNotInstalled: '未找到 {provider} 的登录凭据。请在 dsh-workbuddy-connect 或 dsh-connect-workbuddy 中登录,或在 WorkBuddy 桌面端登录后重试。',
|
|
162
|
+
workbuddyAuthEncrypted: '{provider} 的登录文件已加密。请在当前 DSH 中启用 dsh-workbuddy-connect 或 dsh-connect-workbuddy,然后刷新积分。',
|
|
163
|
+
workbuddyConnectUnavailable: '无法读取 WorkBuddy 连接插件状态,请确认 dsh-workbuddy-connect 或 dsh-connect-workbuddy 已启用并完成启动。',
|
|
164
164
|
workbuddyConnectLoginFailed: 'WorkBuddy 连接插件无法读取登录状态。请在其插件卡片查看登录诊断,并检查 WorkBuddy App 的安装路径与登录状态。',
|
|
165
|
-
workbuddyConnectCreditsFailed: 'WorkBuddy
|
|
165
|
+
workbuddyConnectCreditsFailed: 'WorkBuddy 已登录,但连接插件未返回有效积分。请在对应 WorkBuddy 连接插件卡片刷新并查看查询结果。',
|
|
166
166
|
workbuddyTokenExpired: '{provider} 的登录态已过期。请打开 WorkBuddy App 重新登录后重试。',
|
|
167
167
|
workbuddyUnlimited: '{provider} 积分不限量。',
|
|
168
168
|
workbuddyCreditsNote: '积分按包发放,每包有自己的周期;到期日指仍有余量的包中最早的一个。没有 5 小时 / 每周 / 每月这类速率限额。',
|
|
@@ -259,9 +259,9 @@ const SERVER_MESSAGES = {
|
|
|
259
259
|
mimoCookieMissing: 'No credentials found for {provider}. Paste the Xiaomi MiMo console cookie (log in at platform.xiaomimimo.com, then F12 → Network → balanceAlertConfig → copy the full cookie request header), or set the MIMO_COOKIE environment variable; tp-*/ttp-* plan keys have no usage endpoint and cannot query quotas.',
|
|
260
260
|
mimoCookieInvalid: 'The {provider} cookie is missing required fields (serviceToken and userId). Copy the full cookie request header from your browser again; tp-*/ttp-* plan keys cannot query quotas.',
|
|
261
261
|
mimoLoginExpired: 'The {provider} console login has expired. Log in at platform.xiaomimimo.com again and copy a fresh cookie.',
|
|
262
|
-
workbuddyNotInstalled: 'No {provider} login credential found.
|
|
263
|
-
workbuddyAuthEncrypted: 'The {provider} auth file is encrypted.
|
|
264
|
-
workbuddyConnectUnavailable: 'Cannot read the WorkBuddy connector status. Check that dsh-workbuddy-connect is enabled and has finished starting.',
|
|
262
|
+
workbuddyNotInstalled: 'No {provider} login credential found. Sign in through dsh-workbuddy-connect or dsh-connect-workbuddy, or from the WorkBuddy desktop app, then retry.',
|
|
263
|
+
workbuddyAuthEncrypted: 'The {provider} auth file is encrypted. Enable dsh-workbuddy-connect or dsh-connect-workbuddy in this DSH host, then refresh credits.',
|
|
264
|
+
workbuddyConnectUnavailable: 'Cannot read the WorkBuddy connector status. Check that dsh-workbuddy-connect or dsh-connect-workbuddy is enabled and has finished starting.',
|
|
265
265
|
workbuddyConnectLoginFailed: 'The WorkBuddy connector cannot read the login. Check its plugin card diagnostics and the WorkBuddy app installation path and login.',
|
|
266
266
|
workbuddyConnectCreditsFailed: 'WorkBuddy is signed in, but the connector returned no valid credits. Refresh its plugin card and check the query result.',
|
|
267
267
|
workbuddyTokenExpired: 'The {provider} login has expired. Open the WorkBuddy app, sign in again, and retry.',
|
|
@@ -3503,6 +3503,12 @@ export async function runStartupImports(ledger, sessionsRoot, sessionSource = nu
|
|
|
3503
3503
|
ledger.migrations.push('workbuddy-ai-provider-split-v1')
|
|
3504
3504
|
ledger.scheduleWrite()
|
|
3505
3505
|
}
|
|
3506
|
+
// dsh-connect-workbuddy uses workbuddy-global for its international route.
|
|
3507
|
+
if (!ledger.migrations.includes('workbuddy-global-provider-split-v1')) {
|
|
3508
|
+
splitLedgerApiCost(ledger)
|
|
3509
|
+
ledger.migrations.push('workbuddy-global-provider-split-v1')
|
|
3510
|
+
ledger.scheduleWrite()
|
|
3511
|
+
}
|
|
3506
3512
|
if (ledger.migrations.includes(SEPTEMBER_PRICE_PENDING)) {
|
|
3507
3513
|
const options = { mode: ledger.config.priceMatch, overrides: ledger.config.priceOverrides }
|
|
3508
3514
|
const boundaries = new Set([FLASH_PRICE_EFFECTIVE_AT])
|
package/lib/plan-billing.js
CHANGED
|
@@ -42,7 +42,7 @@ export const PLAN_PROVIDER_ALIASES = {
|
|
|
42
42
|
kimi: ['kimi', 'kimi-code'],
|
|
43
43
|
commandcode: ['commandcode', 'command-code'],
|
|
44
44
|
clinepass: ['clinepass', 'cline-pass'],
|
|
45
|
-
workbuddy: ['workbuddy', 'workbuddy-subscription', 'workbuddy-ai'],
|
|
45
|
+
workbuddy: ['workbuddy', 'workbuddy-subscription', 'workbuddy-ai', 'workbuddy-global'],
|
|
46
46
|
antigravity: ['antigravity'],
|
|
47
47
|
stepfun: ['stepfun', 'step-code'],
|
|
48
48
|
'volcengine-agent': ['volcengine-agent', 'ark-agent-plan', 'volcengine-agent-plan'],
|
package/lib/workbuddy.js
CHANGED
|
@@ -162,31 +162,36 @@ export async function fetchWorkBuddyConnectCredits(hostOrigin, { signal, fetchIm
|
|
|
162
162
|
|| origin.username || origin.password || origin.pathname !== '/' || origin.search || origin.hash) {
|
|
163
163
|
throw workbuddyError('workbuddyConnectUnavailable')
|
|
164
164
|
}
|
|
165
|
-
let signedOut = false
|
|
166
|
-
for (const path of ['/plugins/dsh-workbuddy-connect/status', '/plugins/dsh-workbuddy-connect/ai/status'
|
|
165
|
+
let signedOut = false, failure
|
|
166
|
+
for (const path of ['/plugins/dsh-workbuddy-connect/status', '/plugins/dsh-workbuddy-connect/ai/status',
|
|
167
|
+
'/plugins/dsh-connect-workbuddy/usage?region=cn', '/plugins/dsh-connect-workbuddy/usage?region=global']) {
|
|
167
168
|
const response = await fetchWithRetry(new URL(path, origin), {
|
|
168
169
|
method: 'GET', redirect: 'error', headers: { accept: 'application/json' }, signal,
|
|
169
170
|
}, { timeoutMs: 15000, attempts: 1, fetchImpl })
|
|
170
171
|
if (response.status === 404) { await response.body?.cancel?.(); continue }
|
|
171
|
-
if (!response.ok) { await response.body?.cancel?.();
|
|
172
|
+
if (!response.ok) { await response.body?.cancel?.(); failure ??= workbuddyError('workbuddyConnectUnavailable'); continue }
|
|
172
173
|
// Some host versions serve the SPA shell for an unregistered plugin route.
|
|
173
174
|
if (response.headers.get('content-type')?.includes('text/html')) { await response.body?.cancel?.(); continue }
|
|
174
175
|
const status = await readJsonBounded(response)
|
|
175
176
|
signal?.throwIfAborted()
|
|
177
|
+
if (status?.enabled === false) { signedOut = true; continue }
|
|
176
178
|
if (status?.status === 'signed-out') {
|
|
177
179
|
signedOut = true
|
|
178
|
-
if (status.reasonCode && status.reasonCode !== 'no-credential')
|
|
180
|
+
if (status.reasonCode && status.reasonCode !== 'no-credential' || status.selectionLost) failure ??= workbuddyError('workbuddyConnectLoginFailed')
|
|
179
181
|
continue
|
|
180
182
|
}
|
|
181
|
-
if (status?.status !== 'signed-in')
|
|
183
|
+
if (status?.status !== 'signed-in' || status.credentialRejected === true) { failure ??= workbuddyError('workbuddyConnectLoginFailed'); continue }
|
|
182
184
|
const credits = status.credits
|
|
183
185
|
if (!credits || typeof credits.total !== 'number' || !Number.isFinite(credits.total) || credits.total < 0
|
|
184
|
-
|| credits.unlimited !== undefined && typeof credits.unlimited !== 'boolean')
|
|
186
|
+
|| credits.unlimited !== undefined && typeof credits.unlimited !== 'boolean') { failure ??= workbuddyError('workbuddyConnectCreditsFailed'); continue }
|
|
187
|
+
const expiry = typeof credits.nearestExpiryMs === 'number' && credits.nearestExpiryMs > 0 && credits.nearestExpiryMs <= 8640000000000000
|
|
188
|
+
? new Date(credits.nearestExpiryMs).toISOString() : undefined
|
|
185
189
|
// Copy only billing fields. Status also contains identity and control keys.
|
|
186
190
|
return { total: credits.total, unlimited: credits.unlimited === true,
|
|
187
|
-
...(typeof credits.cycleResetTime === 'string' ? { cycleResetTime: credits.cycleResetTime } : {}),
|
|
191
|
+
...(typeof credits.cycleResetTime === 'string' ? { cycleResetTime: credits.cycleResetTime } : expiry ? { cycleResetTime: expiry } : {}),
|
|
188
192
|
endpoint: new URL(path, origin).href }
|
|
189
193
|
}
|
|
194
|
+
if (failure) throw failure
|
|
190
195
|
// A signed-out connector is authoritative; an old plaintext copy may belong to another account.
|
|
191
196
|
if (signedOut) throw workbuddyError('workbuddyNotInstalled')
|
|
192
197
|
return null
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-cost-meter",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.24",
|
|
4
4
|
"description": "DeepSeek Harness 会话费用统计插件:本会话成本、当日费用、历史记录与官方价格同步,支持多厂商多模型价格计费(内置 170+ 模型 ID 价格目录与自动匹配)、主流 Coding Plan 订阅额度查询与显示(14 家,含 WorkBuddy 官方积分、OpenDesign 工作区查询、含小米 MiMo Token Plan 控制台 Cookie 查询、SCNet Token Plan 本地 Credits 计量与火山方舟 Volcano Ark Coding Plan AK/SK 签名查询)、自定义 Provider 余额查询(可配任意 HTTP 端点)与余额进度条、峰谷计价时段显示与切换前弹窗/系统通知提醒(位置/提前量/类型可配),界面中英双语。Session cost tracking plugin for DeepSeek Harness: per-conversation cost, daily totals, history and official price sync, with multi-vendor model pricing (built-in 170+ model-ID catalog with auto-matching), Coding Plan quota queries & display for 14 vendors (incl. WorkBuddy official credits, OpenDesign workspace queries, Xiaomi MiMo Token Plan via console cookie, local credits metering for the SCNet Token Plan and Volcano Ark Coding Plan via AK/SK signature), plan/API dual-track billing with per-1% & full-window Token Plan usage estimates, custom provider balance lookup (configurable HTTP endpoint) and balance progress bar, plus peak/off-peak pricing display with pre-switch popup & system-notification alerts (position / lead time / type configurable), in a bilingual (Chinese/English) UI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/bootstrap.js",
|
|
@@ -164,7 +164,8 @@
|
|
|
164
164
|
"docs/update-notes-1.9.20.md",
|
|
165
165
|
"docs/update-notes-1.9.21.md",
|
|
166
166
|
"docs/update-notes-1.9.22.md",
|
|
167
|
-
"docs/update-notes-1.9.23.md"
|
|
167
|
+
"docs/update-notes-1.9.23.md",
|
|
168
|
+
"docs/update-notes-1.9.24.md"
|
|
168
169
|
],
|
|
169
170
|
"dependencies": {
|
|
170
171
|
"acorn": "8.15.0",
|