dsh-crate 0.5.3 → 0.5.5

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.
Files changed (40) hide show
  1. package/client/client.js +2060 -459
  2. package/lib/body-progress.js +4 -3
  3. package/lib/changelog.js +15 -2
  4. package/lib/discovery-cache.js +210 -0
  5. package/lib/discovery-compatibility.js +91 -93
  6. package/lib/dsh-cli.js +36 -6
  7. package/lib/github-install-target.js +53 -0
  8. package/lib/hot.js +361 -27
  9. package/lib/index.js +6 -5
  10. package/lib/install.js +37 -0
  11. package/lib/patch.js +116 -72
  12. package/lib/pending-rows.js +3 -4
  13. package/lib/pnpm-compat.js +79 -1
  14. package/lib/proc-text.js +16 -1
  15. package/lib/recovery.js +2 -1
  16. package/lib/registry.js +27 -6
  17. package/lib/release-candidates.js +4 -0
  18. package/lib/routes.js +390 -131
  19. package/lib/themes.js +24 -8
  20. package/lib/types/body-progress.d.ts +2 -1
  21. package/lib/types/changelog.d.ts +10 -1
  22. package/lib/types/discovery-cache.d.ts +38 -0
  23. package/lib/types/discovery-compatibility.d.ts +16 -12
  24. package/lib/types/dsh-cli.d.ts +19 -2
  25. package/lib/types/github-install-target.d.ts +11 -0
  26. package/lib/types/hot.d.ts +87 -5
  27. package/lib/types/install.d.ts +19 -0
  28. package/lib/types/patch.d.ts +6 -2
  29. package/lib/types/registry.d.ts +9 -8
  30. package/lib/types/release-candidates.d.ts +2 -0
  31. package/lib/types/routes.d.ts +2 -2
  32. package/lib/types/themes.d.ts +7 -1
  33. package/lib/types/update-notification-settings.d.ts +5 -0
  34. package/lib/types/update-notifications.d.ts +51 -0
  35. package/lib/types/updates.d.ts +5 -1
  36. package/lib/update-notification-settings.js +6 -0
  37. package/lib/update-notifications.js +166 -0
  38. package/lib/updates.js +41 -11
  39. package/lib/verify.js +5 -2
  40. package/package.json +1 -1
package/client/client.js CHANGED
@@ -200,6 +200,23 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
200
200
  const zh = {
201
201
  nav: "插件箱子",
202
202
  setCardDesc: "查看插件箱子版本与设置。",
203
+ updateChecksTitle: "更新检查",
204
+ updateChecksAutomatic: "自动检查更新",
205
+ updateChecksNow: "立即检查",
206
+ updateChecksLegacyHint: "只提醒,不自动安装。",
207
+ updateChecksInterval: "检查周期",
208
+ updateChecksEveryHours: "每 {0} 小时",
209
+ updateChecksEveryDays: "每 {0} 天",
210
+ updateChecksHint: "默认关闭。开启后按所选周期检查。只提醒,不自动安装。",
211
+ updateChecksPending: "尚未检查",
212
+ updateChecksChecking: "正在检查…",
213
+ updateChecksFound: "发现 {0} 个可用更新",
214
+ updateChecksNone: "暂无更新提醒",
215
+ updateChecksFailed: "检查暂未完成",
216
+ updateChecksFailedHint: "部分信息暂时无法获取,保留上次结果。请稍后重试。",
217
+ updateChecksLastSuccess: "最近完整检查:{0}",
218
+ updateChecksOpenHost: "到插件页查看",
219
+ updateNotificationsAnnouncement: "有 {count} 个插件可更新。打开插件箱子查看。",
203
220
  setSelfUpToDate: "已是最新版本",
204
221
  setSelfUpdateReady: "有新版本",
205
222
  setSelfUpdateHint: "更新会下载新版本,重启后生效。",
@@ -432,6 +449,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
432
449
  hostUpdateHint: "本市场由桌面端安装和更新,新版本请在桌面端更新",
433
450
  notesLink: "更新内容",
434
451
  notesRelease: "版本说明",
452
+ notesBeyondTarget: "下面是 {0} 的说明,这个版本还不能装。现在更新到的是 {1}。",
435
453
  notesCommits: "提交记录",
436
454
  notesCommitsRecent: "最近提交(无法对应你当前安装的版本,仅供参考)",
437
455
  notesNpm: "版本发布时间",
@@ -458,7 +476,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
458
476
  renameContinue: "迁移并更新",
459
477
  restoreOnline: "换用线上版本",
460
478
  restoreHint: "将卸载本地版本并安装线上版本,之后照常检查更新。此操作无法撤销。",
461
- hostIncompatibleTitle: "这个新版本要求更新的 DSH",
479
+ hostIncompatibleTitle: "这个插件版本与当前 DSH 不兼容",
462
480
  hostIncompatibleBody: "{plugin} 声明需要 DSH {requirement},而你现在运行的是 {host}。装上去很可能用不了,只能手动装回旧版。\n已停止,插件仍是原来的版本。\n如果你确定这个版本号不准(例如桌面端自带的 DSH 不报告版本),仍可继续更新。",
463
481
  hostIncompatibleUnknown: "未知版本",
464
482
  hostIncompatibleSearching: "正在查找还兼容当前 DSH 的版本…",
@@ -574,8 +592,10 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
574
592
  hostCompatible: "兼容当前 DSH {0}",
575
593
  hostDetecting: "正在识别宿主版本…",
576
594
  hostUnknown: "宿主版本未知",
577
- hostFilterLoading: "正在检查宿主要求 {0}/{1};未声明或无法确认的插件仍会显示",
578
- hostFilterActive: "已隐藏 {1} 个与 DSH {0} 不兼容的插件;未声明版本的仍在列表里",
595
+ hostFilterLoading: "正在检查宿主要求(本页 {0}/{1})。要求未知的插件仍会显示。",
596
+ hostFilterActive: "本页已隐藏 {1} 个与 DSH {0} 不兼容的插件。要求未知的插件仍会显示。",
597
+ hostFilterEmpty: "本页插件均与当前 DSH 不兼容。",
598
+ hostFilterIncomplete: "本页已隐藏 {1} 个与 DSH {0} 不兼容的插件。另有 {2} 个暂时无法确认,仍会显示。",
579
599
  hostRequirement: "DSH {0}",
580
600
  hostRequirementLoading: "正在读取宿主要求…",
581
601
  hostRequirementUndeclared: "未声明宿主要求",
@@ -614,6 +634,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
614
634
  perPage: "每页",
615
635
  marketUpdate: "更新插件箱子",
616
636
  updateAll: "全部更新",
637
+ updateCheckFailed: "暂时无法检查更新",
638
+ updateCheckRetry: "重试检查更新",
617
639
  heldReleaseNotice: "已安装,但不是最新版:这个 profile 的 minimumReleaseAge 挡住了 {0},安装的是 {1}。",
618
640
  versionUnverifiedNote: "已安装,但版本没能确认:registry 两次都查不到,这次装的是 {0}。插件页会显示实际版本,可以在那里核对。",
619
641
  versionUnverifiedNoteUnknown: "已安装,但版本没能确认:registry 两次都查不到。插件页会显示实际版本,可以在那里核对。",
@@ -739,6 +761,15 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
739
761
  actWhy: "为什么未生效?",
740
762
  tabList: "列表",
741
763
  tabGroups: "分组",
764
+ installedSort: "排序",
765
+ installedSortLabel: "已安装列表排序",
766
+ installedSortDefault: "默认(运行中优先)",
767
+ installedSortName: "名称",
768
+ installedSortNewest: "安装时间:新→旧",
769
+ installedSortOldest: "安装时间:旧→新",
770
+ installedAtLabel: "安装于",
771
+ updatedAtLabel: "最近更新",
772
+ installedAtUnknown: "市场没有记录安装时间(不是通过市场安装的)",
742
773
  repoLink: "在 GitHub 上查看仓库",
743
774
  viewSourceRepo: "查看仓库↗",
744
775
  disabledState: "已停用",
@@ -997,6 +1028,23 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
997
1028
  const en = {
998
1029
  nav: "Plugin Crate",
999
1030
  setCardDesc: "View the Plugin Crate version and settings.",
1031
+ updateChecksTitle: "Update checks",
1032
+ updateChecksAutomatic: "Check for updates automatically",
1033
+ updateChecksNow: "Check now",
1034
+ updateChecksLegacyHint: "Updates are never installed automatically.",
1035
+ updateChecksInterval: "Check interval",
1036
+ updateChecksEveryHours: "Every {0} hours",
1037
+ updateChecksEveryDays: "Every {0} days",
1038
+ updateChecksHint: "Off by default. When enabled, checks at the selected interval while running. Updates are never installed automatically.",
1039
+ updateChecksPending: "Not checked yet",
1040
+ updateChecksChecking: "Checking…",
1041
+ updateChecksFound: "{0} updates available",
1042
+ updateChecksNone: "No pending update reminders",
1043
+ updateChecksFailed: "Check incomplete",
1044
+ updateChecksFailedHint: "Some information is unavailable. Previous results are kept; try again later.",
1045
+ updateChecksLastSuccess: "Last complete check: {0}",
1046
+ updateChecksOpenHost: "View in Plugins",
1047
+ updateNotificationsAnnouncement: "{count} plugin updates available. Open Plugin Crate to review.",
1000
1048
  setSelfUpToDate: "Up to date",
1001
1049
  setSelfUpdateReady: "New version available:",
1002
1050
  setSelfUpdateHint: "Updating downloads the new version; it takes effect after a restart.",
@@ -1228,6 +1276,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
1228
1276
  hostUpdateHint: "Installed and updated by the desktop app; update it there.",
1229
1277
  notesLink: "What changed",
1230
1278
  notesRelease: "Release notes",
1279
+ notesBeyondTarget: "These are the notes for {0}, which cannot be installed yet. Update installs {1}.",
1231
1280
  notesCommits: "Commits",
1232
1281
  notesCommitsRecent: "Recent commits (do not match your installed version — for reference only)",
1233
1282
  notesNpm: "Version publish times",
@@ -1254,7 +1303,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
1254
1303
  renameContinue: "Migrate and update",
1255
1304
  restoreOnline: "Use online version",
1256
1305
  restoreHint: "This uninstalls the local version and installs the online version. Update checks continue as usual. This cannot be undone.",
1257
- hostIncompatibleTitle: "This release needs a newer DSH",
1306
+ hostIncompatibleTitle: "This plugin release is incompatible with your DSH",
1258
1307
  hostIncompatibleBody: "{plugin} declares that it needs DSH {requirement}, and you are running {host}. Installing it would most likely break the plugin, leaving a manual downgrade as the only way back.\nNothing was changed — the plugin is still on its current version.\nIf you know the version number is wrong (a bundled DSH that does not report one, for example), you can update anyway.",
1259
1308
  hostIncompatibleUnknown: "an unknown version",
1260
1309
  hostIncompatibleSearching: "Looking for a version that still supports this DSH…",
@@ -1370,8 +1419,10 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
1370
1419
  hostCompatible: "Compatible with current DSH {0}",
1371
1420
  hostDetecting: "Detecting host version…",
1372
1421
  hostUnknown: "Host version unknown",
1373
- hostFilterLoading: "Checking host requirements {0}/{1}; undeclared or unavailable plugins remain visible",
1374
- hostFilterActive: "Hid {1} plugins incompatible with DSH {0}; those declaring no version stay listed",
1422
+ hostFilterLoading: "Checking host requirements on this page ({0}/{1}). Plugins with unknown requirements stay visible.",
1423
+ hostFilterActive: "Hid {1} plugins on this page that are incompatible with DSH {0}. Plugins with unknown requirements stay visible.",
1424
+ hostFilterEmpty: "All plugins on this page are incompatible with the current DSH.",
1425
+ hostFilterIncomplete: "Hid {1} plugins on this page that are incompatible with DSH {0}. {2} could not be checked and are still shown.",
1375
1426
  hostRequirement: "DSH {0}",
1376
1427
  hostRequirementLoading: "Reading host requirement…",
1377
1428
  hostRequirementUndeclared: "Host requirement undeclared",
@@ -1410,6 +1461,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
1410
1461
  perPage: "Per page",
1411
1462
  marketUpdate: "Update the plugin market",
1412
1463
  updateAll: "Update all",
1464
+ updateCheckFailed: "Could not check for updates",
1465
+ updateCheckRetry: "Retry update check",
1413
1466
  heldReleaseNotice: "Installed, but not the newest: this profile's minimumReleaseAge held {0} back, so {1} was installed.",
1414
1467
  versionUnverifiedNote: "Installed, but the version could not be confirmed: both registry lookups failed, so {0} is what pnpm chose. The plugin page shows the version actually on disk.",
1415
1468
  versionUnverifiedNoteUnknown: "Installed, but the version could not be confirmed: both registry lookups failed. The plugin page shows the version actually on disk.",
@@ -1535,6 +1588,15 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
1535
1588
  actWhy: "Why is it not active?",
1536
1589
  tabList: "List",
1537
1590
  tabGroups: "Groups",
1591
+ installedSort: "Sort",
1592
+ installedSortLabel: "Installed order",
1593
+ installedSortDefault: "Default (running first)",
1594
+ installedSortName: "Name",
1595
+ installedSortNewest: "Install time: newest",
1596
+ installedSortOldest: "Install time: oldest",
1597
+ installedAtLabel: "Installed",
1598
+ updatedAtLabel: "Last updated",
1599
+ installedAtUnknown: "The market did not record an install time (installed another way)",
1538
1600
  repoLink: "View the repository on GitHub",
1539
1601
  viewSourceRepo: "View the repository↗",
1540
1602
  disabledState: "Disabled",
@@ -1793,6 +1855,23 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
1793
1855
  const ja = {
1794
1856
  nav: "プラグインボックス",
1795
1857
  setCardDesc: "プラグインボックスのバージョンと設定を確認します。",
1858
+ updateChecksTitle: "更新の確認",
1859
+ updateChecksAutomatic: "更新を自動で確認",
1860
+ updateChecksNow: "今すぐ確認",
1861
+ updateChecksLegacyHint: "自動でインストールはしません。",
1862
+ updateChecksInterval: "確認の間隔",
1863
+ updateChecksEveryHours: "{0} 時間ごと",
1864
+ updateChecksEveryDays: "{0} 日ごと",
1865
+ updateChecksHint: "初期設定はオフです。オンにすると選択した間隔で確認します。自動でインストールはしません。",
1866
+ updateChecksPending: "未確認",
1867
+ updateChecksChecking: "確認中…",
1868
+ updateChecksFound: "{0} 件の更新があります",
1869
+ updateChecksNone: "通知する更新はありません",
1870
+ updateChecksFailed: "確認が完了していません",
1871
+ updateChecksFailedHint: "一部の情報を取得できないため、前回の結果を保持しています。後でもう一度お試しください。",
1872
+ updateChecksLastSuccess: "前回の確認完了:{0}",
1873
+ updateChecksOpenHost: "プラグイン画面で確認",
1874
+ updateNotificationsAnnouncement: "{count} 件のプラグイン更新があります。プラグインボックスで確認してください。",
1796
1875
  setSelfUpToDate: "最新バージョンです",
1797
1876
  setSelfUpdateReady: "新しいバージョンがあります",
1798
1877
  setSelfUpdateHint: "更新すると新しいバージョンをダウンロードし、再起動後に有効になります。",
@@ -2024,6 +2103,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
2024
2103
  hostUpdateHint: "このマーケットはデスクトップアプリがインストールと更新を行います。新しいバージョンへの更新はデスクトップアプリで行ってください",
2025
2104
  notesLink: "変更内容",
2026
2105
  notesRelease: "リリースノート",
2106
+ notesBeyondTarget: "以下は {0} の説明です。このバージョンはまだ入れられません。今回の更新で入るのは {1} です。",
2027
2107
  notesCommits: "コミット履歴",
2028
2108
  notesCommitsRecent: "最近のコミット(現在のインストール済みバージョンには対応しません。参考情報です)",
2029
2109
  notesNpm: "バージョンの公開日時",
@@ -2050,7 +2130,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
2050
2130
  renameContinue: "移行して更新",
2051
2131
  restoreOnline: "オンライン版に切り替える",
2052
2132
  restoreHint: "ローカル版をアンインストールしてオンライン版をインストールします。その後も通常どおり更新を確認します。この操作は取り消せません。",
2053
- hostIncompatibleTitle: "この新しいバージョンには、より新しい DSH が必要です",
2133
+ hostIncompatibleTitle: "このプラグインのバージョンは現在の DSH に対応していません",
2054
2134
  hostIncompatibleBody: "{plugin} は DSH {requirement} が必要だと宣言していますが、現在動作しているのは {host} です。インストールしてもほぼ確実に使えなくなり、手動で古い版に戻すしかなくなります。\n何も変更されていません。プラグインは現在のバージョンのままです。\nバージョン番号が正しくないと分かっている場合(バージョンを報告しない同梱の DSH など)は、そのまま更新できます。",
2055
2135
  hostIncompatibleUnknown: "不明なバージョン",
2056
2136
  hostIncompatibleSearching: "現在の DSH と互換性のあるバージョンを探しています…",
@@ -2166,8 +2246,10 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
2166
2246
  hostCompatible: "現在の DSH {0} と互換性あり",
2167
2247
  hostDetecting: "ホストのバージョンを識別中…",
2168
2248
  hostUnknown: "ホストのバージョンは不明です",
2169
- hostFilterLoading: "ホストの要件を確認中 {0}/{1}。宣言していない、または確認できないプラグインも引き続き表示されます",
2170
- hostFilterActive: "DSH {0} と互換性のないプラグイン {1} 件を隠しました。バージョンを宣言していないものは一覧に残っています",
2249
+ hostFilterLoading: "このページのホスト要件を確認中 {0}/{1}。要件が不明なプラグインも表示されます。",
2250
+ hostFilterActive: "このページで DSH {0} と互換性のないプラグインを {1} 件非表示にしました。要件が不明なプラグインも表示されます。",
2251
+ hostFilterEmpty: "このページのプラグインはすべて現在の DSH と互換性がありません。",
2252
+ hostFilterIncomplete: "このページで DSH {0} と互換性のないプラグインを {1} 件非表示にしました。確認できなかった {2} 件は表示されたままです。",
2171
2253
  hostRequirement: "DSH {0}",
2172
2254
  hostRequirementLoading: "ホストの要件を読み取り中…",
2173
2255
  hostRequirementUndeclared: "ホストの要件は宣言されていません",
@@ -2205,6 +2287,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
2205
2287
  perPage: "1 ページあたり",
2206
2288
  marketUpdate: "プラグインボックスを更新",
2207
2289
  updateAll: "すべて更新",
2290
+ updateCheckFailed: "更新を確認できませんでした",
2291
+ updateCheckRetry: "更新確認を再試行",
2208
2292
  heldReleaseNotice: "インストールしましたが、最新版ではありません。この profile の minimumReleaseAge が {0} を保留したため、{1} がインストールされました。",
2209
2293
  versionUnverifiedNote: "インストールしましたが、バージョンを確認できませんでした。レジストリの照会が 2 回とも失敗したため、pnpm が選んだ {0} が入っています。実際のバージョンはプラグイン画面で確認できます。",
2210
2294
  versionUnverifiedNoteUnknown: "インストールしましたが、バージョンを確認できませんでした。レジストリの照会が 2 回とも失敗しました。実際のバージョンはプラグイン画面で確認できます。",
@@ -2330,6 +2414,15 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
2330
2414
  actWhy: "なぜ有効にならないのですか?",
2331
2415
  tabList: "一覧",
2332
2416
  tabGroups: "グループ",
2417
+ installedSort: "並び替え",
2418
+ installedSortLabel: "インストール済みの並び順",
2419
+ installedSortDefault: "既定(稼働中を優先)",
2420
+ installedSortName: "名前",
2421
+ installedSortNewest: "インストール日時:新しい順",
2422
+ installedSortOldest: "インストール日時:古い順",
2423
+ installedAtLabel: "インストール",
2424
+ updatedAtLabel: "最終更新",
2425
+ installedAtUnknown: "この市場はインストール日時を記録していません(別の方法でインストールされました)",
2333
2426
  repoLink: "GitHub でリポジトリを見る",
2334
2427
  viewSourceRepo: "リポジトリを見る↗",
2335
2428
  disabledState: "無効",
@@ -2761,6 +2854,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
2761
2854
  if (!/^[A-Za-z0-9_./-]+$/.test(subpath)) return false;
2762
2855
  return !subpath.split("/").some((seg) => seg === "" || seg === "." || seg === "..");
2763
2856
  }
2857
+ /** Registry tarball names must be plain npm package names, nothing fancier. */
2858
+ const NPM_NAME_RE = /^(@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/;
2764
2859
  /**
2765
2860
  * Parse a registry source url: a github repo, optionally with a
2766
2861
  * `/tree/<branch>/<subpath>` suffix (how the curated list links monorepo
@@ -2816,7 +2911,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
2816
2911
  }
2817
2912
  /** Keep GitHub packages in one repository distinct, independently of their display names. */
2818
2913
  function hostCompatibilityKey(plugin) {
2819
- if (typeof plugin.npm === "string" && plugin.npm !== "") return plugin.npm;
2914
+ if (typeof plugin.npm === "string" && plugin.npm !== "") return NPM_NAME_RE.test(plugin.npm) ? plugin.npm : null;
2820
2915
  return parseSourceUrl(plugin.url) === null ? null : plugin.url;
2821
2916
  }
2822
2917
  /**
@@ -2928,7 +3023,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
2928
3023
  }
2929
3024
  function readSession(key) {
2930
3025
  try {
2931
- return JSON.parse(sessionStorage.getItem(key) || "null");
3026
+ return JSON.parse(window.sessionStorage.getItem(key) || "null");
2932
3027
  } catch {
2933
3028
  return null;
2934
3029
  }
@@ -3063,8 +3158,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
3063
3158
  const categories = pluginCategories(plugin);
3064
3159
  if (options.category !== "all" && !categories.includes(options.category)) return [];
3065
3160
  if (options.sinceDays !== void 0 && !withinDays(plugin.added, options.sinceDays)) return [];
3066
- const compatibilityKey = hostCompatibilityKey(plugin);
3067
- if (options.compatibleWithHost === true && compatibilityKey !== null && options.hostCompatibility?.[compatibilityKey]?.status === "incompatible") return [];
3161
+ const compatibilityKey = options.compatibleWithHost === true ? hostCompatibilityKey(plugin) : null;
3162
+ if (compatibilityKey !== null && options.hostCompatibility?.[compatibilityKey]?.status === "incompatible") return [];
3068
3163
  const relevance = query === "" ? 0 : pluginRelevance(plugin, query, tokens, options.lang, options.categories);
3069
3164
  return relevance === 0 && query !== "" ? [] : [{
3070
3165
  plugin,
@@ -3344,6 +3439,15 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
3344
3439
  }
3345
3440
  const ids = depIdentities(name, String(spec), repoIdentities);
3346
3441
  const conflicts = sourceConflictWith(String(spec), repoIdentities);
3442
+ const subpaths = new Set([...ids].filter((id) => id.includes("#path:/")));
3443
+ if (subpaths.size > 0) {
3444
+ const exact = plugins.find((plugin) => {
3445
+ if (conflicts(plugin)) return false;
3446
+ for (const id of entryIdentities(plugin)) if (subpaths.has(id)) return true;
3447
+ return false;
3448
+ });
3449
+ if (exact !== void 0) return exact;
3450
+ }
3347
3451
  return plugins.find((plugin) => {
3348
3452
  let meets = false;
3349
3453
  for (const id of entryIdentities(plugin)) if (ids.has(id)) {
@@ -3931,6 +4035,43 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
3931
4035
  if (/^(?:link|file):/i.test(spec)) return findCatalogEntryForLocal(plugins, name, repoIdentities, repoHints) ?? void 0;
3932
4036
  return entryForDep(plugins, name, spec, repoIdentities, repoHints);
3933
4037
  }
4038
+ /** The date a row shows, in the reader's own timezone; null when unknown. */
4039
+ function installedDateText(stamp) {
4040
+ if (stamp === void 0) return null;
4041
+ const at = new Date(stamp);
4042
+ if (Number.isNaN(at.getTime())) return null;
4043
+ const pad = (value) => String(value).padStart(2, "0");
4044
+ return `${String(at.getFullYear())}-${pad(at.getMonth() + 1)}-${pad(at.getDate())}`;
4045
+ }
4046
+ function installedAtMs(stamp) {
4047
+ if (stamp === void 0) return null;
4048
+ const at = Date.parse(stamp);
4049
+ return Number.isFinite(at) ? at : null;
4050
+ }
4051
+ /**
4052
+ * Order two installed rows by the chosen field.
4053
+ *
4054
+ * `default` answers 0 on purpose: the list already has an order that means
4055
+ * something (a plugin that is off sinks below every one that is on, #745),
4056
+ * and the caller applies that first. This only decides what happens INSIDE
4057
+ * those groups.
4058
+ *
4059
+ * A row with no install time goes last in BOTH directions. "Sort by install
4060
+ * time" cannot place something whose time nobody recorded, and flipping the
4061
+ * arrow must not lift a guess above a fact — the whole point of showing `—`
4062
+ * is that the market says when it does not know.
4063
+ */
4064
+ function compareInstalledRows(sort, a, b) {
4065
+ if (sort === "default") return 0;
4066
+ if (sort === "name") return a.name.localeCompare(b.name);
4067
+ const left = installedAtMs(a.installedAt);
4068
+ const right = installedAtMs(b.installedAt);
4069
+ if (left === null && right === null) return a.name.localeCompare(b.name);
4070
+ if (left === null) return 1;
4071
+ if (right === null) return -1;
4072
+ if (left === right) return a.name.localeCompare(b.name);
4073
+ return sort === "newest" ? right - left : left - right;
4074
+ }
3934
4075
  //#endregion
3935
4076
  //#region src/client/InstallToast.tsx
3936
4077
  /**
@@ -3941,13 +4082,13 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
3941
4082
  function InstallToast(props) {
3942
4083
  const t = props.t;
3943
4084
  const [mode] = (0, react.useState)(() => {
3944
- const value = sessionStorage.getItem("dshm-toast-mode");
3945
- sessionStorage.removeItem("dshm-toast-mode");
4085
+ const value = window.sessionStorage.getItem("dshm-toast-mode");
4086
+ window.sessionStorage.removeItem("dshm-toast-mode");
3946
4087
  return value;
3947
4088
  });
3948
4089
  const [names, setNames] = (0, react.useState)(() => {
3949
4090
  const value = readSession("dshm-toast");
3950
- sessionStorage.removeItem("dshm-toast");
4091
+ window.sessionStorage.removeItem("dshm-toast");
3951
4092
  return Array.isArray(value) ? value : [];
3952
4093
  });
3953
4094
  if (names.length === 0) return null;
@@ -4093,7 +4234,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
4093
4234
  const HostCheckbox = optionalComponent("Checkbox");
4094
4235
  //#endregion
4095
4236
  //#region \0dsh-css:src/client/Market.module.css.mjs
4096
- const css = ".nUhMVa_root{min-width:0;height:100%;color:var(--dsw-alias-label-primary,#1f2328);flex-direction:column;display:flex;position:relative;container-type:inline-size}.nUhMVa_head{flex-direction:column;gap:8px;padding:0 4px 4px;display:flex}.nUhMVa_headTop{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 16px;min-width:0;display:flex}.nUhMVa_headTop>.nUhMVa_titleRow>.nUhMVa_sub{max-width:100%}.nUhMVa_title{white-space:nowrap;color:var(--dsw-alias-label-primary,#1f2328);margin:0;font-size:15px;font-weight:600;line-height:22px}.nUhMVa_sub{min-width:0;color:var(--dsw-alias-label-tertiary,#8b93a1);flex:auto;margin:0;font-size:12px;line-height:18px}.nUhMVa_sidebarTip{color:var(--dsw-alias-label-secondary,#5c6570);flex-wrap:wrap;align-items:center;gap:6px 8px;margin:0;font-size:12px;line-height:18px;display:flex}.nUhMVa_submitLink{color:var(--dsw-alias-label-tertiary,#8b93a1);white-space:nowrap;font-size:12px;line-height:18px;text-decoration:none}.nUhMVa_submitLink:hover{color:var(--dsw-alias-brand-primary,#4f6ef7);text-decoration:underline}.nUhMVa_tabs{flex-wrap:wrap;align-items:center;gap:4px;padding:0 0 2px;display:flex;position:relative}.nUhMVa_tab{height:32px;font:inherit;color:var(--dsw-alias-label-secondary,#5c6570);border-radius:var(--dsw-radius-sm,#8px);cursor:pointer;white-space:nowrap;background:0 0;border:none;align-items:center;padding:0 10px;font-size:13px;line-height:20px;transition:background-color .12s,color .12s;display:inline-flex;position:relative}.nUhMVa_tab:hover:not(.nUhMVa_on){background:var(--dsw-alias-interactive-bg-hover,#2631480f);color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_tab.nUhMVa_on{color:var(--dsw-alias-label-primary,#1f2328);font-weight:600}.nUhMVa_tab.nUhMVa_on:after{content:\"\";background:var(--dsw-alias-label-primary,#1f2328);border-radius:1px;height:2px;position:absolute;bottom:3px;left:10px;right:10px}.nUhMVa_subTabs{flex-wrap:wrap;align-items:center;gap:4px;margin:0 0 2px;display:flex}.nUhMVa_banner{background:var(--dsw-alias-bg-layer-2,#fdf3e3);border:1px solid var(--dsw-alias-border-l2,#f3e3c3);border-radius:8px;align-items:center;gap:8px;margin:0;padding:8px 12px;font-size:12px;display:flex}.nUhMVa_bannerIcon{color:var(--dsw-alias-label-secondary,#6b7280);flex-shrink:0}.nUhMVa_bannerHint{color:var(--dsw-alias-label-tertiary,#8b93a1);cursor:help;display:inline-flex}.nUhMVa_body{overflow-anchor:none;flex:1;padding:8px 4px 64px;scroll-padding-bottom:64px;overflow-x:hidden;overflow-y:auto}.nUhMVa_stickyHead{z-index:5;background:var(--dsw-alias-bg-base,#fff);position:sticky;top:-1px}.nUhMVa_stickyHead:before{content:\"\";background:inherit;pointer-events:none;height:14px;position:absolute;bottom:100%;left:0;right:0}.nUhMVa_cats{margin:0 -4px 2px;padding:0 4px 4px}.nUhMVa_catsRow{align-items:flex-start;gap:6px;display:flex;position:relative}.nUhMVa_star{color:var(--dsw-alias-label-tertiary,#8b93a1);white-space:nowrap;flex:none;font-size:11px;line-height:18px}.nUhMVa_top{z-index:20;background:var(--dsw-alias-bg-layer-1,#fff);box-shadow:var(--dsw-shadow-lv1,0 4px 12px #1f232814);border-radius:99px;display:inline-flex;position:absolute;bottom:18px;right:18px}.nUhMVa_topBtn{border-radius:99px;width:38px;height:38px;padding:0}.nUhMVa_tag{border:.5px solid var(--dsw-alias-border-l3,#d9dde3);color:var(--dsw-alias-label-secondary,#5c6570);white-space:nowrap;border-radius:999px;flex-shrink:0;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px}.nUhMVa_hostRequirement{border:.5px solid var(--dsw-alias-border-l3,#d9dde3);color:var(--dsw-alias-label-secondary,#5c6570);text-overflow:ellipsis;white-space:nowrap;border-radius:999px;min-width:0;max-width:18em;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px;overflow:hidden}.nUhMVa_hostRequirementBad{border-color:var(--dsw-alias-state-error-primary,#dc2626);color:var(--dsw-alias-state-error-primary,#dc2626);background:#dc262614}.nUhMVa_hostFilterNote{color:var(--dsw-alias-label-tertiary,#8b93a1);margin-top:6px;font-size:12px;line-height:18px}.nUhMVa_okState{color:var(--dsw-alias-state-success-primary,#16a34a);white-space:nowrap;font-size:12px;font-weight:600}.nUhMVa_catsWrap{flex-wrap:wrap;flex:1;align-items:center;gap:6px;min-width:0;display:flex}.nUhMVa_catsCollapsed{max-height:62px;overflow:hidden}.nUhMVa_catsToggle.nUhMVa_catsToggle{height:26px;min-height:26px;color:var(--dsw-alias-label-secondary,#5c6570);flex:none;padding:0 6px}.nUhMVa_shots{-webkit-overflow-scrolling:touch;scrollbar-width:thin;gap:8px;margin:6px 0 8px;padding:2px 0 6px;display:flex;overflow-x:auto}.nUhMVa_shot{object-fit:cover;border-radius:var(--dsw-radius-lg,16px);border:.5px solid var(--dsw-alias-border-l3,#d9dde3);background:var(--dsw-alias-bg-layer-2,#f3f4f6);cursor:pointer;flex:none;width:220px;height:150px}.nUhMVa_cardShots{-webkit-overflow-scrolling:touch;scrollbar-width:thin;gap:6px;margin:0 0 6px;padding:0 0 2px;display:flex;overflow-x:auto}.nUhMVa_cardShot{object-fit:contain;border-radius:var(--dsw-radius-lg,16px);border:.5px solid var(--dsw-alias-border-l3,#d9dde3);background:var(--dsw-alias-bg-layer-2,#f3f4f6);cursor:pointer;flex:none;width:132px;height:88px;display:block}.nUhMVa_lightbox{z-index:10000;cursor:zoom-out;background:#000000d9;justify-content:center;align-items:center;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.nUhMVa_lightboxImg{object-fit:contain;cursor:default;border-radius:4px;max-width:90vw;max-height:85vh}.nUhMVa_lightboxClose{color:#fff;cursor:pointer;background:#ffffff1f;border:none;border-radius:99px;place-items:center;width:36px;height:36px;font-size:22px;line-height:1;display:grid;position:absolute;top:16px;right:16px}.nUhMVa_lightboxClose:hover{background:#ffffff38}.nUhMVa_lightboxNav{color:#fff;cursor:pointer;background:#ffffff1f;border:none;border-radius:99px;place-items:center;width:44px;height:44px;display:grid;position:absolute;top:50%;transform:translateY(-50%)}.nUhMVa_lightboxNav:hover{background:#ffffff38}.nUhMVa_lightboxPrev{left:16px}.nUhMVa_lightboxNext{right:16px}.nUhMVa_lightboxDots{gap:8px;display:flex;position:absolute;bottom:20px;left:50%;transform:translate(-50%)}.nUhMVa_lightboxDot{cursor:pointer;background:#fff6;border-radius:99px;width:7px;height:7px}.nUhMVa_lightboxDotOn{background:#fff}.nUhMVa_cmd{background:var(--dsw-alias-bg-layer-2,#f3f4f6);font-size:11px;line-height:18px;font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);word-break:break-all;border-radius:6px;margin:8px 0 0;padding:8px 10px}.nUhMVa_warnLine{color:var(--dsw-alias-state-warn-primary,#b45309);flex-wrap:wrap;align-items:center;gap:4px;margin:0;font-size:12px;font-weight:600;line-height:18px;display:flex}.nUhMVa_modalNote{color:var(--dsw-alias-label-tertiary,#8b93a1);align-items:center;gap:4px;margin:12px 0 0;font-size:12px;line-height:18px;display:flex}.nUhMVa_confirmBody{flex-direction:column;gap:12px;display:flex}.nUhMVa_confirmModal{width:min(560px,92vw);max-width:min(560px,92vw);max-height:100%}.nUhMVa_confirmContent{flex:auto;min-height:0;overflow:hidden}.nUhMVa_confirmContent>:first-child{flex-shrink:0}.nUhMVa_confirmContent>:last-child{overscroll-behavior:contain;flex:auto;min-height:0;margin-top:0;overflow-y:auto}.nUhMVa_confirmModal>:last-child{flex-shrink:0}.nUhMVa_confirmBody .nUhMVa_byline{flex-wrap:nowrap;margin-top:0}.nUhMVa_confirmBody .nUhMVa_owner{min-width:0}.nUhMVa_confirmBody .nUhMVa_shots{margin:0;padding:0}.nUhMVa_confirmBody .nUhMVa_modalNote{margin:0}.nUhMVa_confirmTags{flex-wrap:wrap;gap:6px;display:flex}.nUhMVa_confirmDesc{color:var(--dsw-alias-label-primary,#1f2328);white-space:pre-wrap;margin:0;font-size:13px;line-height:20px}.nUhMVa_confirmFold{border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb);flex-direction:column;gap:8px;padding-top:12px;display:flex}.nUhMVa_confirmPanel{--fold-bg:#f7f8fa;--fold-border:#e7e8ea;--fold-ink:#1c1d1f;--fold-on-ink:#fff;background:var(--fold-bg);border:1px solid var(--fold-border);border-radius:8px}body[data-ds-dark-theme] .nUhMVa_confirmPanel{--fold-bg:var(--dsw-alias-bg-layer-3,#353638);--fold-border:var(--dsw-alias-border-l2,#ffffff1f);--fold-ink:var(--dsw-alias-label-primary,#f9fafb);--fold-on-ink:var(--dsw-alias-bg-layer-2,#2c2c2e)}.nUhMVa_confirmPanelRow{box-sizing:border-box;width:100%;min-height:40px;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;gap:8px;padding:0 12px;display:flex}.nUhMVa_confirmPanelRow:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary,#4176e6);outline-offset:-2px}.nUhMVa_confirmPanelIcon{color:var(--fold-ink);flex:none;display:inline-flex}.nUhMVa_confirmTerminalIcon{color:var(--fold-ink);flex:none;display:block}.nUhMVa_confirmTerminalPrompt{stroke:var(--fold-on-ink);fill:none}.nUhMVa_confirmTerminalDot{fill:var(--fold-on-ink)}.nUhMVa_confirmPanelTitle{min-width:0;color:var(--fold-ink);flex:1 0 auto;font-size:13px;line-height:20px}.nUhMVa_confirmPanelRowStatic{cursor:default}.nUhMVa_confirmPanel[data-state=unchecked]{background:color-mix(in srgb, var(--fold-bg) 35%, transparent);border-style:dashed}.nUhMVa_confirmPanelMeta{min-width:0;color:var(--dsw-alias-label-secondary,#6b7280);text-align:right;flex:0 auto;font-size:12px;line-height:20px}.nUhMVa_confirmPanelChevron{color:var(--dsw-alias-label-tertiary,#8b93a1);flex:none}.nUhMVa_confirmPanelBody{flex-direction:column;gap:10px;padding:0 12px 10px 16px;display:flex}.nUhMVa_confirmCmd{align-items:center;gap:8px;display:flex}.nUhMVa_confirmPanel .nUhMVa_cmd{background:0 0;border-radius:0;flex:1;min-width:0;margin:0;padding:0;line-height:24px}.nUhMVa_confirmCopied{color:var(--dsw-alias-state-success-primary,#22c55e);white-space:nowrap;flex:none;font-size:12px;line-height:24px}.nUhMVa_confirmCopy{width:24px;height:24px;color:var(--fold-ink,#1c1d1f);cursor:pointer;background:0 0;border:0;border-radius:6px;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.nUhMVa_confirmCopy:hover{background:color-mix(in srgb, var(--fold-ink,#1c1d1f) 8%, transparent)}.nUhMVa_confirmCopy:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary,#4176e6);outline-offset:1px}.nUhMVa_confirmPanel .nUhMVa_caps{gap:6px;padding:0}.nUhMVa_confirmPanel .nUhMVa_caps .nUhMVa_capChip{background:var(--fold-on-ink,#fff);border:1px solid var(--fold-border,#e7e8ea);color:var(--fold-ink,#1c1d1f);border-radius:999px;padding:2px 8px;font-size:12px;line-height:18px}.nUhMVa_confirmPanel .nUhMVa_caps .nUhMVa_capChip.nUhMVa_capChipUncommon{background:var(--fold-ink,#1c1d1f);border-color:var(--fold-ink,#1c1d1f);color:var(--fold-on-ink,#fff);font-weight:600}.nUhMVa_capGroups{grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:8px 12px;display:grid}.nUhMVa_capGroupLabel{color:var(--dsw-alias-label-secondary,#6b7280);white-space:nowrap;font-size:12px;line-height:22px}.nUhMVa_confirmPanel .nUhMVa_caps .nUhMVa_capMuted{border-color:var(--fold-border,#e7e8ea);color:var(--dsw-alias-label-secondary,#6b7280);padding:2px 8px;font-size:12px;line-height:18px}.nUhMVa_capAhead{flex-direction:column;gap:6px;display:flex}.nUhMVa_capAheadLabel{color:var(--dsw-alias-label-secondary,#6b7280);margin:0;font-size:12px;line-height:18px}.nUhMVa_capAheadRow{color:var(--dsw-alias-label-primary,#1f2328);align-items:flex-start;gap:8px;margin:0;font-size:13px;line-height:20px;display:flex}.nUhMVa_capAheadIcon{color:var(--dsw-alias-label-primary,#1f2328);flex:none;margin-top:2px}.nUhMVa_confirmPanel .nUhMVa_caps .nUhMVa_capAddress{color:var(--fold-ink,#1c1d1f);flex-basis:100%;margin:0 0 2px;font-size:13px;line-height:20px}.nUhMVa_capNote,.nUhMVa_confirmPanel .nUhMVa_capCaveat{color:var(--dsw-alias-label-secondary,#6b7280);margin:0;font-size:12px;line-height:18px}.nUhMVa_installCaution{background:color-mix(in srgb, var(--dsw-alias-state-warn-primary,#b45309) 12%, transparent);border-radius:8px;padding:12px 13px}.nUhMVa_installCautionLabel{color:var(--dsw-alias-label-secondary,#6b7280);margin:0 0 8px;font-size:12px;line-height:18px}.nUhMVa_installCautionHead{color:var(--dsw-alias-label-primary,#1f2328);align-items:center;gap:6px;margin:0;font-size:13px;font-weight:600;line-height:20px;display:flex}.nUhMVa_installCautionMark{flex:none;display:block}.nUhMVa_installCautionBody{color:var(--dsw-alias-label-primary,#1f2328);margin:6px 0 0;font-size:13px;line-height:20px}.nUhMVa_installCautionFoot{color:var(--dsw-alias-label-primary,#1f2328);align-items:baseline;gap:12px;margin:0;font-size:13px;line-height:20px;display:flex}.nUhMVa_installCautionLink{white-space:nowrap;color:var(--dsw-alias-link,#3b82f6);flex:none;margin-left:auto;font-size:13px;font-weight:600;line-height:20px;text-decoration:none}.nUhMVa_installCautionLink:hover{text-decoration:underline}.nUhMVa_confirmFineprint{color:var(--dsw-alias-label-secondary,#6b7280);margin:0;font-size:12px;line-height:18px}.nUhMVa_grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:10px;display:grid}.nUhMVa_recentBlock{margin:2px 0 4px;padding:0 0 8px}.nUhMVa_recentRow{-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:var(--dsw-alias-border-l3,#d9dde3) transparent;align-items:stretch;gap:8px;margin-bottom:0;padding-bottom:4px;display:flex;overflow-x:auto}.nUhMVa_recentRow::-webkit-scrollbar{height:6px}.nUhMVa_recentRow::-webkit-scrollbar-thumb{background:var(--dsw-alias-border-l3,#d9dde3);border-radius:99px}.nUhMVa_recentRow::-webkit-scrollbar-track{background:0 0}.nUhMVa_recentRow>*{box-sizing:border-box;flex:none;width:min(320px,30.7692% - 7.38462px);min-width:220px}.nUhMVa_recentRow.nUhMVa_recentCollapsed{visibility:hidden;max-height:0;margin-bottom:0;padding-bottom:0;overflow:hidden}.nUhMVa_recentTile{box-sizing:border-box;background:var(--dsw-alias-settings-card-fill,var(--dsw-alias-bg-layer-1,#fff));border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-lg,16px);flex-direction:column;justify-content:space-between;gap:4px;height:80px;padding:8px 12px;transition:background-image .16s cubic-bezier(.16,1,.3,1);display:flex;overflow:hidden}.nUhMVa_recentTile .nUhMVa_installBtn.nUhMVa_installBtn{height:24px;min-height:24px;padding:0 8px}.nUhMVa_recentAv.nUhMVa_recentAv{flex-shrink:0;width:24px;height:24px;font-size:11px}.nUhMVa_recentTitle{align-items:center;gap:8px;min-width:0;display:flex}.nUhMVa_recentTitle>:last-child{flex-shrink:0}.nUhMVa_recentName{flex:1;min-width:0}.nUhMVa_recentTitle .nUhMVa_nm{font-size:14px;line-height:20px}.nUhMVa_recentBottom{align-items:flex-end;gap:8px;min-width:0;display:flex}.nUhMVa_recentBottom>:last-child{flex-shrink:0;margin-left:auto}.nUhMVa_recentBottom>:not(:last-child){flex:1;min-width:0}.nUhMVa_recentDesc{color:var(--dsw-alias-label-tertiary,#8b93a1);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0;font-size:12px;line-height:16px;display:-webkit-box;overflow:hidden}.nUhMVa_recentBottom .nUhMVa_cardMore{padding:0}.nUhMVa_recentHead{justify-content:space-between;align-items:center;gap:8px;margin:10px 0 8px;padding:0 4px;display:flex}.nUhMVa_recentHead .nUhMVa_favoritesSectionHead{margin:0;padding:0;font-weight:600}.nUhMVa_recentToggle{font:inherit;color:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;margin:0;padding:0;display:inline-flex}.nUhMVa_recentToggle:hover{color:var(--dsw-alias-label-secondary,#6b7280)}.nUhMVa_recentHide.nUhMVa_recentHide{height:26px;min-height:26px;color:var(--dsw-alias-label-secondary,#6b7280);padding:0 6px}.nUhMVa_recentShow{font:inherit;color:var(--dsw-alias-label-secondary,#8b93a1);cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;margin:0 0 8px;padding:0 4px;font-size:12px;line-height:18px;display:inline-flex}.nUhMVa_recentShow:hover{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_masonry{align-items:flex-start;gap:10px;display:flex}.nUhMVa_masonryCol{flex-direction:column;flex:1;gap:10px;min-width:0;display:flex}.nUhMVa_masonry>.nUhMVa_masonryCol>*{align-self:stretch;min-width:0}@media (max-width:680px){.nUhMVa_masonry{flex-direction:column}.nUhMVa_masonryCol{width:100%}.nUhMVa_grid{grid-template-columns:minmax(0,1fr)}}.nUhMVa_swatches{border:1px solid var(--dsw-alias-border-l2,#e5e7eb);border-radius:8px;gap:0;height:34px;display:flex;overflow:hidden}.nUhMVa_themesGrid{margin-bottom:12px}.nUhMVa_swatches i{flex:1}.nUhMVa_themeToolbar{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:0 4px 12px;display:grid}.nUhMVa_themeSearch{box-sizing:border-box;width:100%;min-width:0}.nUhMVa_themeToolbarActions{justify-content:flex-end;align-items:center;gap:8px;display:flex}.nUhMVa_themeFullscreenBtn.nUhMVa_themeFullscreenBtn{width:28px;min-width:28px;padding:0}.nUhMVa_themeResultBar{min-height:24px;color:var(--dsw-alias-label-tertiary,#8b93a1);align-items:center;padding:0 4px 8px;font-size:12px;line-height:18px;display:flex}.nUhMVa_favoritesSectionHead{color:var(--dsw-alias-label-primary,#1f2328);margin:16px 0 8px;padding:0 4px;font-size:14px;font-weight:500;line-height:22px}.nUhMVa_favoritesSectionHead:first-of-type{margin-top:0}.nUhMVa_brokenPluginNotice{flex-direction:column;gap:8px;margin:0 0 8px;display:flex}.nUhMVa_brokenPluginItem{border:1px solid var(--dsw-alias-state-warn-tertiary,#b4530933);background:var(--dsw-alias-state-warn-tertiary,#b453090f);color:var(--dsw-alias-state-warn-primary,#b45309);border-radius:8px;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:10px;padding:8px 10px;font-size:12px;line-height:18px;display:flex}.nUhMVa_brokenPluginText{flex-direction:column;gap:2px;min-width:0;display:flex}.nUhMVa_favoritesStaleBar{border:1px solid var(--dsw-alias-state-warn-tertiary,#b4530933);background:var(--dsw-alias-state-warn-tertiary,#b453090f);color:var(--dsw-alias-state-warn-primary,#b45309);border-radius:8px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin:0 0 8px;padding:8px 10px;font-size:12px;line-height:18px;display:flex}.nUhMVa_favoritesStaleOnly{flex-direction:column;align-items:flex-start;gap:10px;display:flex}.nUhMVa_themeGallery{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:10px;display:grid}.nUhMVa_themeCard{border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-lg,16px);background:var(--dsw-alias-bg-layer-1,#fff);flex-direction:column;min-width:0;transition:border-color .16s cubic-bezier(.16,1,.3,1),box-shadow .16s cubic-bezier(.16,1,.3,1),transform .16s cubic-bezier(.16,1,.3,1);display:flex;overflow:hidden}.nUhMVa_themeCard:hover{border-color:var(--dsw-alias-label-dimmed,#c8ccd4);box-shadow:var(--dsw-shadow-lv1,0 4px 12px #1f232814);transform:translateY(-1px)}.nUhMVa_themeCover{aspect-ratio:16/10;border:0;border-bottom:.5px solid var(--dsw-alias-border-l3,#d9dde3);background:var(--dsw-alias-bg-layer-2,#f3f4f6);width:100%;color:var(--dsw-alias-label-secondary,#6b7280);cursor:zoom-in;border-radius:0;padding:0;display:block;position:relative;overflow:hidden}.nUhMVa_themeCover img{object-fit:contain;background:var(--dsw-alias-bg-layer-2,#f3f4f6);width:100%;height:100%;transition:transform .18s cubic-bezier(.16,1,.3,1);display:block}.nUhMVa_themeCover:hover img{transform:scale(1.012)}.nUhMVa_themeCover:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary,#4f6ef7);outline-offset:-3px}.nUhMVa_themeCoverEmpty{cursor:default;color:var(--dsw-alias-label-tertiary,#8b93a1);background:var(--dsw-alias-bg-module-platform,#f4f5f7);border-radius:var(--dsw-radius-lg,16px) 0 0 0;flex-direction:column;justify-content:center;align-items:center;gap:8px;font-size:12px;line-height:18px;display:flex}.nUhMVa_themePreviewAction,.nUhMVa_themePreviewCount{color:#fff;background:#14181fc7;border:1px solid #ffffff57;border-radius:4px;align-items:center;height:24px;padding:0 8px;font-size:11px;line-height:16px;display:inline-flex;position:absolute;bottom:8px}.nUhMVa_themePreviewAction{gap:4px;right:8px}.nUhMVa_themePreviewCount{left:8px}.nUhMVa_themeCardBody{flex-direction:column;flex:1;gap:8px;padding:14px;display:flex}.nUhMVa_themeCardHead{align-items:flex-start;gap:8px;min-width:0;display:flex}.nUhMVa_themeIdentity{flex:1;min-width:0}.nUhMVa_themeStatus,.nUhMVa_themeStatusMuted{white-space:nowrap;border-radius:4px;flex:none;align-items:center;min-height:22px;padding:0 8px;font-size:11px;font-weight:600;display:inline-flex}.nUhMVa_themeStatus{background:var(--dsw-alias-state-success-tertiary,#16a34a1a);color:var(--dsw-alias-state-success-primary,#15803d)}.nUhMVa_themeStatusMuted{background:var(--dsw-alias-bg-layer-2,#f3f4f6);color:var(--dsw-alias-label-secondary,#6b7280)}.nUhMVa_themeDescription{min-height:36px;color:var(--dsw-alias-label-tertiary,#8b93a1);-webkit-line-clamp:3;-webkit-box-orient:vertical;margin:0;font-size:12px;line-height:18px;display:-webkit-box;overflow:hidden}.nUhMVa_themeCardFooter{justify-content:space-between;align-items:center;gap:8px;margin-top:auto;padding-top:4px;display:flex}.nUhMVa_themeLifecycle{min-width:0;color:var(--dsw-alias-label-tertiary,#8b93a1);text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:18px;overflow:hidden}.nUhMVa_themeActions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;margin-left:auto;display:flex}@container (width<=900px){.nUhMVa_themeGallery{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (width<=680px){.nUhMVa_themeGallery{grid-template-columns:repeat(2,minmax(0,1fr))}}@container (width<=460px){.nUhMVa_themeGallery{grid-template-columns:minmax(0,1fr)}}.nUhMVa_exportLogBtn{white-space:nowrap;flex-shrink:0}@container (width<=560px){.nUhMVa_headTop{flex-direction:column;align-items:stretch}.nUhMVa_headTop>.nUhMVa_titleRow{margin-left:0}}@container (width<=420px){.nUhMVa_exportLogBtn{align-self:center}.nUhMVa_themeToolbar{grid-template-columns:minmax(0,1fr)}.nUhMVa_themeCardHead{flex-wrap:wrap}.nUhMVa_themeStatus,.nUhMVa_themeStatusMuted{order:3}}@container (width<=280px){.nUhMVa_themeCardFooter{flex-direction:column;align-items:flex-start}.nUhMVa_themeActions{justify-content:flex-start;width:100%;margin-left:0}}@media (max-width:560px){[role=dialog]:has([data-dsh-crate-root])>nav{display:none}[role=dialog]:has([data-dsh-crate-root])>div{flex:100%;width:100%;min-width:0}}.nUhMVa_panelHost{box-sizing:border-box;height:100%;min-height:0;padding:calc(28px + var(--dsh-frame-top-clearance,0px)) 0 0;flex-direction:column;display:flex}.nUhMVa_panelHost>.nUhMVa_root{flex:1;width:100%;min-width:0;min-height:0;container-type:normal}.nUhMVa_panelHost .nUhMVa_head,.nUhMVa_panelHost .nUhMVa_body{padding-left:max(max(16px,min(4vw,48px)),50% - 480px);padding-right:max(max(16px,min(4vw,48px)),50% - 480px);container-type:inline-size}[data-dsh-crate-plugins-tab=true]{--dshm-host-sticky-top:0px;--dshm-plugins-head-height:0px}[data-dsh-crate-plugins-tab=true]:not([data-dsh-crate-fullscreen=true]){--dshm-empty-view-height:100vh;height:auto}[data-dsh-crate-plugins-tab=true]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_body{min-height:calc(100vh - var(--dshm-host-sticky-top,0px) - var(--dshm-plugins-head-height,0px));flex-direction:column;flex:none;display:flex;overflow:visible}[data-dsh-crate-plugins-tab=true]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_body>.nUhMVa_empty{box-sizing:border-box;width:100%;max-width:none;max-height:var(--dshm-empty-view-height,100vh);flex-direction:column;flex:auto;justify-content:center;align-items:center;margin:0;padding:32px;display:flex}[data-dsh-crate-plugins-tab=true]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_top{position:fixed}[data-dsh-crate-plugins-tab=true]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_stickyHead{display:contents}[data-dsh-crate-plugins-tab=true]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_head{z-index:6;top:var(--dshm-host-sticky-top,0px);background:var(--dsw-alias-bg-base,#fff);margin:0 -4px;padding:4px 4px 6px;position:sticky}[data-dsh-crate-plugins-tab=true]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_cats{z-index:5;top:calc(var(--dshm-host-sticky-top,0px) + var(--dshm-plugins-head-height,0px));background:var(--dsw-alias-bg-base,#fff);position:sticky}[role=dialog]:has([data-dsh-crate-fullscreen=true]){border-radius:0;width:100vw;max-width:none;height:100vh;max-height:none;position:fixed;top:0;bottom:0;left:0;right:0}[data-dsh-crate-plugins-tab=true][data-dsh-crate-fullscreen=true]{z-index:60;background:var(--dsw-alias-bg-layer-1,#fff);position:fixed;top:0;bottom:0;left:0;right:0;height:100vh!important}[data-dsh-crate-surface=settings]:not([data-dsh-crate-fullscreen=true]){--dshm-head-h:0px;height:auto}[data-dsh-crate-surface=settings]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_body{flex:none;overflow:visible}[data-dsh-crate-surface=settings]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_head{z-index:6;background:var(--dsw-alias-bg-layer-2,var(--dsw-alias-bg-base,#fff));position:sticky;top:0}[data-dsh-crate-surface=settings]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_stickyHead{top:calc(var(--dshm-head-h,0px) + 8px);background:var(--dsw-alias-bg-layer-2,var(--dsw-alias-bg-base,#fff))}@media (prefers-reduced-motion:reduce){.nUhMVa_themeCard,.nUhMVa_themeCover img{transition:none}.nUhMVa_themeCard:hover{transform:none}}.nUhMVa_card{background:var(--dsw-alias-settings-card-fill,var(--dsw-alias-bg-layer-1,#fff));border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-xl,20px);flex-direction:column;align-self:start;gap:10px;min-width:0;padding:12px 14px;transition:background-image .16s cubic-bezier(.16,1,.3,1);display:flex}@media (hover:hover){.nUhMVa_card:hover,.nUhMVa_recentTile:hover{background-image:linear-gradient(var(--dsw-alias-interactive-bg-hover,#2631480f),var(--dsw-alias-interactive-bg-hover,#2631480f))}.nUhMVa_installBtn:hover:not(:disabled){background:var(--dsw-alias-button-primary-fill,#0f1115);color:var(--dsw-alias-label-primary-foreground,#fff);border-color:#0000}}.nUhMVa_row1{align-items:flex-start;gap:10px;min-width:0;display:flex}.nUhMVa_cardAction{flex-shrink:0;align-items:center;display:inline-flex}.nUhMVa_installBtn.nUhMVa_installBtn{min-width:64px}.nUhMVa_av{width:16px;height:16px;color:var(--dsw-alias-label-primary,#1f2328);object-fit:cover;background:var(--dsw-alias-bg-layer-2,#f3f4f6);border-radius:50%;flex-shrink:0;place-items:center;font-size:9px;font-weight:700;display:grid}.nUhMVa_nm{text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:500;line-height:20px;overflow:hidden}.nUhMVa_nmLink{color:inherit;text-decoration:none;display:block}.nUhMVa_nmLink:hover{color:var(--dsw-alias-brand-primary,#4f6ef7);text-decoration:underline}.nUhMVa_repoMark{color:var(--dsw-alias-label-secondary,#6b7280);vertical-align:-1px;flex-shrink:0;margin-left:5px;display:inline-block}.nUhMVa_nmLink:hover .nUhMVa_repoMark{color:var(--dsw-alias-brand-primary,#4f6ef7)}.nUhMVa_byline{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;margin-top:2px;display:flex}.nUhMVa_meta{color:var(--dsw-alias-label-secondary,#9ca3af);margin-top:2px;font-size:11px}.nUhMVa_metaInline{color:var(--dsw-alias-label-secondary,#9ca3af);font-size:11px}.nUhMVa_owner{color:var(--dsw-alias-label-secondary,#5c6570);text-overflow:ellipsis;white-space:nowrap;flex:0 auto;min-width:44px;font-size:11px;line-height:18px;overflow:hidden}.nUhMVa_desc{color:var(--dsw-alias-label-tertiary,#8b93a1);margin:0;font-size:12px;line-height:18px}.nUhMVa_descClamp{-webkit-line-clamp:5;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.nUhMVa_descClamp3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.nUhMVa_descToggle{width:20px;height:16px;color:var(--dsw-alias-label-tertiary,#8b93a1);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;margin-top:2px;padding:0;display:flex}.nUhMVa_descToggle:hover{color:var(--dsw-alias-brand-primary,#4f6ef7)}.nUhMVa_foot{flex-wrap:nowrap;align-items:flex-end;gap:8px;display:flex}.nUhMVa_foot .nUhMVa_metaInline,.nUhMVa_foot .nUhMVa_src{white-space:nowrap}.nUhMVa_footTags{flex-wrap:wrap;flex:1 1 0;align-items:center;gap:8px;min-width:0;display:flex}.nUhMVa_grow{flex:1}.nUhMVa_titleRow{flex-wrap:wrap;align-items:center;gap:8px 10px;display:flex}.nUhMVa_titleActions{flex-wrap:wrap;flex:0 auto;justify-content:flex-end;align-items:center;gap:4px 10px;min-width:0;margin-left:auto;display:flex}.nUhMVa_titleActions:empty{display:none}.nUhMVa_titleActions>*{white-space:nowrap;flex-shrink:0}.nUhMVa_version{color:var(--dsw-alias-label-tertiary,#8b93a1);font-variant-numeric:tabular-nums;flex-shrink:0;font-size:12px;line-height:20px}.nUhMVa_repoLink{color:var(--dsw-alias-label-tertiary,#8b93a1);flex-shrink:0;font-size:12px;line-height:20px;text-decoration:none}.nUhMVa_repoLink:hover{color:var(--dsw-alias-brand-primary,#4f6ef7)}.nUhMVa_noteRow{flex-wrap:wrap;align-items:baseline;gap:6px;min-width:0;display:flex}.nUhMVa_desc.nUhMVa_noteRow,.nUhMVa_desc.nUhMVa_noteRow+.nUhMVa_noteRow,.nUhMVa_noteEdit+.nUhMVa_noteRow{margin-top:6px}.nUhMVa_noteMine{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_noteToggle{font:inherit;color:var(--dsw-alias-label-tertiary,#8b93a1);cursor:pointer;white-space:nowrap;background:0 0;border:none;flex-shrink:0;padding:0;font-size:11px;line-height:16px}.nUhMVa_noteToggle:hover{color:var(--dsw-alias-brand-primary,#4f6ef7);text-decoration:underline}.nUhMVa_noteEdit{flex-direction:column;gap:6px;min-width:0;margin-top:6px;display:flex}.nUhMVa_noteInput{box-sizing:border-box;width:100%;min-width:0;max-width:100%;display:flex}.nUhMVa_noteInput input{box-sizing:border-box;flex:auto;width:100%;min-width:0}.nUhMVa_noteEditBar{justify-content:flex-end;align-items:center;gap:6px;display:flex}.nUhMVa_noteCount{font-variant-numeric:tabular-nums;color:var(--dsw-alias-label-tertiary,#8b93a1);margin-right:auto;font-size:11px;line-height:16px}.nUhMVa_descTight{min-height:0}.nUhMVa_src{color:var(--dsw-alias-label-secondary,#9ca3af);font-size:11px;text-decoration:none}.nUhMVa_src:hover{color:var(--dsw-alias-brand-primary,#4f6ef7)}.nUhMVa_dot{vertical-align:2px;margin-left:5px}.nUhMVa_act{flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px;font-size:11px;display:flex}.nUhMVa_actLive{color:var(--dsw-alias-state-success-primary,#16a34a);align-items:center;gap:4px;font-weight:600;display:inline-flex}.nUhMVa_actWarn{color:var(--dsw-alias-state-warn-primary,#b45309);align-items:center;gap:4px;font-weight:600;display:inline-flex}.nUhMVa_actBroken{color:var(--dsw-alias-state-error-primary,#dc2626);align-items:center;gap:4px;font-weight:600;display:inline-flex}.nUhMVa_actWhy{color:var(--dsw-alias-label-secondary,#6b7280);margin-top:2px}.nUhMVa_loading{color:var(--dsw-alias-label-secondary,#9ca3af);flex-direction:column;align-items:center;gap:12px;padding:48px;font-size:13px;display:flex}.nUhMVa_spin{color:var(--dsw-alias-brand-primary,#4f6ef7);flex-shrink:0;animation:.8s linear infinite nUhMVa_sp;display:inline-flex}.nUhMVa_logoMark{color:var(--dsw-alias-brand-primary,#4f6ef7);flex-shrink:0;display:inline-flex}.nUhMVa_logoSweep{animation:3s linear infinite nUhMVa_dshmCrateSweep}@keyframes nUhMVa_dshmCrateSweep{0%{transform:translate(-13px)}30%,to{transform:translate(18px)}}@media (prefers-reduced-motion:reduce){.nUhMVa_logoSweep{display:none}.nUhMVa_spin{animation:1.5s ease-in-out infinite nUhMVa_dshmPlugFade}}@keyframes nUhMVa_dshmPlugFade{0%,to{opacity:1}50%{opacity:.35}}@keyframes nUhMVa_sp{to{transform:rotate(360deg)}}.nUhMVa_progress{background:var(--dsw-alias-bg-layer-2,#f3f4f6);border:1px solid var(--dsw-alias-border-l2,#e5e7eb);color:var(--dsw-alias-label-secondary,#6b7280);border-radius:8px;flex-wrap:wrap;align-items:center;gap:9px;margin:0;padding:8px 12px;font-size:12px;display:flex}.nUhMVa_bar{background:var(--dsw-alias-border-l1,#e5e7eb);border-radius:99px;width:100%;height:4px;overflow:hidden}.nUhMVa_barFill{background:var(--dsw-alias-brand-primary,#4f6ef7);border-radius:99px;height:100%;transition:width .6s}.nUhMVa_barWave{width:30%;animation:1.2s ease-in-out infinite nUhMVa_dshmSlide}@keyframes nUhMVa_dshmSlide{0%{margin-left:-30%}to{margin-left:100%}}.nUhMVa_irow .nUhMVa_progress{margin-top:8px}.nUhMVa_progress code{font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.nUhMVa_empty{color:var(--dsw-alias-label-secondary,#5c6570);text-align:center;max-width:520px;margin:0 auto;padding:56px 32px 40px;font-size:13px;line-height:20px}.nUhMVa_err{color:var(--dsw-alias-state-error-primary,#dc2626);white-space:pre-wrap;word-break:break-all;margin:8px 0;font-size:12px}.nUhMVa_cardBlocked{border-color:var(--dsw-alias-state-error-primary,#dc2626)}.nUhMVa_conflictHead{align-items:flex-start;gap:8px;display:flex}.nUhMVa_conflictIcon{color:var(--dsw-alias-state-error-primary,#dc2626);flex-shrink:0;margin-top:1px}.nUhMVa_conflictTitle{color:var(--dsw-alias-state-error-primary,#dc2626);font-size:13px;font-weight:600;line-height:18px}.nUhMVa_conflictBody{margin:0;font-size:12px;line-height:19px}.nUhMVa_roster{background:var(--dsw-alias-border-l2,#e5e7eb);border:1px solid var(--dsw-alias-border-l2,#e5e7eb);border-radius:8px;flex-direction:column;gap:1px;display:flex;overflow:hidden}.nUhMVa_rosterRow{background:var(--dsw-alias-bg-layer-1,#fff);align-items:center;gap:8px;padding:7px 10px;display:flex}.nUhMVa_rosterMain{flex-direction:column;min-width:0;display:flex}.nUhMVa_rosterName{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:12px;font-weight:600;overflow:hidden}.nUhMVa_rosterAuthor{color:var(--dsw-alias-label-secondary,#9ca3af);text-overflow:ellipsis;white-space:nowrap;font-size:10.5px;overflow:hidden}.nUhMVa_rosterTag{border-radius:4px;flex-shrink:0;margin-left:auto;padding:1px 6px;font-size:10.5px;font-weight:600}.nUhMVa_rosterTagKeep{color:var(--dsw-alias-state-success-primary,#16a34a);background:#16a34a1f}.nUhMVa_rosterTagDrop{color:var(--dsw-alias-state-error-primary,#dc2626);background:#dc26261f}.nUhMVa_rosterRowOut .nUhMVa_rosterName{text-decoration:line-through}.nUhMVa_rosterRowOut{opacity:.62}.nUhMVa_rosterSplit{background:var(--dsw-alias-border-l2,#e5e7eb);height:1px}.nUhMVa_reassure{color:var(--dsw-alias-label-secondary,#6b7280);align-items:center;gap:5px;margin:0;font-size:11.5px;line-height:17px;display:flex}.nUhMVa_reassureOk{color:var(--dsw-alias-state-success-primary,#16a34a);flex-shrink:0}.nUhMVa_conflictWhy{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:11px;line-height:17px;font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);overflow-wrap:anywhere;margin-top:2px}.nUhMVa_conflictWhyText{margin-top:5px;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,sans-serif}.nUhMVa_choices{flex-direction:column;gap:7px;display:flex}.nUhMVa_choice{text-align:left;font:inherit;cursor:pointer;background:var(--dsw-alias-bg-layer-1,#fff);border:1px solid var(--dsw-alias-border-l3,#d9dde3);border-radius:9px;align-items:flex-start;gap:9px;padding:9px 11px;display:flex}.nUhMVa_choice:has(input:disabled){cursor:default;opacity:.6}.nUhMVa_choiceOn{border-color:var(--dsw-alias-brand-primary,#4f6ef7);background:var(--dsw-alias-bg-layer-2,#f5f7ff)}.nUhMVa_choiceRadio{width:13px;height:13px;accent-color:var(--dsw-alias-brand-primary,#4f6ef7);flex-shrink:0;margin:2px 0 0}.nUhMVa_choiceMain{flex-direction:column;gap:3px;min-width:0;display:flex}.nUhMVa_choiceTitle{font-size:12px;font-weight:600;line-height:17px}.nUhMVa_choiceNote{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:11px;line-height:16px}.nUhMVa_choiceSafe{color:var(--dsw-alias-state-success-primary,#16a34a)}.nUhMVa_stateTag{white-space:nowrap;background:var(--dsw-alias-bg-layer-2,#f3f4f6);min-height:20px;color:var(--dsw-alias-label-secondary,#6b7280);border-radius:5px;flex-shrink:0;align-items:center;gap:5px;padding:1px 7px;font-size:11px;line-height:16px;display:inline-flex}.nUhMVa_stateTag[data-on=true]{color:var(--dsw-alias-state-success-primary,#16a34a);background:color-mix(in srgb, var(--dsw-alias-state-success-primary,#16a34a) 10%, transparent)}.nUhMVa_stateDot{background:var(--dsw-alias-label-tertiary,#8b93a1);border-radius:999px;flex:none;width:6px;height:6px}.nUhMVa_stateDot[data-on=true]{background:var(--dsw-alias-state-success-primary,#16a34a)}.nUhMVa_metaTag{text-overflow:ellipsis;white-space:nowrap;background:var(--dsw-alias-bg-layer-2,#f3f4f6);min-width:0;max-width:100%;min-height:20px;color:var(--dsw-alias-label-tertiary,#8b93a1);border-radius:5px;flex-shrink:1;padding:1px 7px;font-size:11px;line-height:18px;display:inline-block;overflow:hidden}.nUhMVa_metaTagOk{color:var(--dsw-alias-state-success-primary,#16a34a);background:color-mix(in srgb, var(--dsw-alias-state-success-primary,#16a34a) 10%, transparent)}.nUhMVa_irow{transition:background-image .16s cubic-bezier(.16,1,.3,1)}.nUhMVa_irow:hover{background-image:linear-gradient(var(--dsw-alias-interactive-bg-hover,#2631480f),var(--dsw-alias-interactive-bg-hover,#2631480f))}.nUhMVa_irowHead{align-items:flex-start;gap:8px;min-width:0;display:flex}.nUhMVa_irowHead .nUhMVa_irowName{flex:1 1 0;min-width:0}.nUhMVa_irowMenu{flex-shrink:0;margin-top:-4px;margin-left:auto;margin-right:-6px}.nUhMVa_irowMeta{color:var(--dsw-alias-label-secondary,#6b7280);margin-top:2px;font-size:12px;line-height:18px}.nUhMVa_irowPath{align-items:center;gap:6px;min-width:0;margin-top:6px;display:flex}.nUhMVa_irowPath .nUhMVa_spec{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.nUhMVa_irowPathIcon,.nUhMVa_irowStatusIcon{color:var(--dsw-alias-label-tertiary,#8b93a1);flex-shrink:0;display:inline-flex}.nUhMVa_irowPathCopy{flex-shrink:0;align-items:center;gap:4px;margin-left:auto;display:inline-flex}.nUhMVa_irowPath .nUhMVa_confirmCopy{width:20px;height:20px;color:var(--dsw-alias-label-tertiary,#8b93a1)}.nUhMVa_irowPath .nUhMVa_confirmCopy:hover{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_irowPath .nUhMVa_confirmCopied{color:var(--dsw-alias-label-secondary,#6b7280);order:1;font-size:11px}.nUhMVa_irowDesc{flex:100%;min-width:0}.nUhMVa_irowStatus{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;margin-top:8px;font-size:12px;line-height:18px;display:flex}.nUhMVa_irowStatus+.nUhMVa_irowStatus{margin-top:4px}.nUhMVa_irowStatusPart{align-items:baseline;gap:6px;display:inline-flex}.nUhMVa_irowStatus .nUhMVa_notesLink{margin:0;display:inline}.nUhMVa_irowStatus .nUhMVa_metaInline{font-size:12px}.nUhMVa_irowStatusAction{margin-left:auto;display:inline-flex}.nUhMVa_irowStatusAction .nUhMVa_noteToggle{color:var(--dsw-alias-label-secondary,#6b7280);font-size:12px;line-height:18px}.nUhMVa_irowStatusAction .nUhMVa_noteToggle:hover{color:var(--dsw-alias-label-primary,#1f2328);text-decoration:none}.nUhMVa_descMore{cursor:pointer;font:inherit;color:var(--dsw-alias-label-secondary,#6b7280);background:0 0;border:none;align-items:center;gap:2px;margin-top:4px;padding:0;font-size:12px;line-height:18px;display:inline-flex}.nUhMVa_descMore:hover{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_noteAdd{cursor:pointer;font:inherit;color:var(--dsw-alias-label-secondary,#6b7280);white-space:nowrap;background:0 0;border:none;align-items:center;gap:6px;margin-top:4px;padding:0;font-size:12px;line-height:18px;display:inline-flex}.nUhMVa_noteAdd:hover,.nUhMVa_irowStatusFact{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_irowStatusSep{color:var(--dsw-alias-label-tertiary,#8b93a1)}.nUhMVa_nameLink{color:inherit;text-decoration:none}.nUhMVa_irowName{text-overflow:clip;flex-wrap:wrap;align-items:baseline;gap:6px;min-width:0;display:flex;overflow:visible}.nUhMVa_irowNameText{overflow-wrap:anywhere;white-space:normal;min-width:0}.nUhMVa_irowName>.nUhMVa_owner{flex:none}.nUhMVa_nameLink:hover{color:var(--dsw-alias-brand-primary,#4f6ef7);text-decoration:underline}.nUhMVa_opWrap{flex-shrink:0;margin-bottom:6px;display:inline-flex}.nUhMVa_opEntry{font:inherit;cursor:pointer;white-space:nowrap;height:28px;color:var(--dsw-alias-label-primary,#1f2328);background:var(--dsw-alias-bg-layer-1,#fff);border:.5px solid var(--dsw-alias-border-l3,#d9dde3);border-radius:8px;align-items:center;gap:5px;padding:0 7px 0 10px;font-size:12px;transition:background-color .12s,color .12s,border-color .12s;display:inline-flex;position:relative}.nUhMVa_opEntryQuiet{background:var(--dsw-alias-bg-module-platform,#f4f5f7);color:var(--dsw-alias-label-secondary,#5c6570)}.nUhMVa_opEntry:hover{color:var(--dsw-alias-label-primary,#1f2328);border-color:var(--dsw-alias-border-l2,#e5e7eb);background:var(--dsw-alias-bg-module-platform,#f4f5f7)}.nUhMVa_opChevron{color:var(--dsw-alias-label-tertiary,#8b93a1);flex-shrink:0;transition:transform .14s cubic-bezier(.16,1,.3,1);display:inline-flex}.nUhMVa_opChevronOpen{transform:rotate(180deg)}.nUhMVa_opEntryAlert{border-color:var(--dsw-alias-state-error-primary,#dc2626);color:var(--dsw-alias-state-error-primary,#dc2626)}.nUhMVa_opDot{background:var(--dsw-alias-state-error-primary,#dc2626);border-radius:99px;width:8px;height:8px;position:absolute;top:-3px;right:-3px}.nUhMVa_opPanel{z-index:40;background:var(--dsw-alias-bg-layer-1,#fff);border:1px solid var(--dsw-alias-border-l3,#d9dde3);border-radius:12px;width:460px;max-width:100%;max-height:70vh;position:absolute;top:calc(100% + 6px);right:0;overflow-y:auto;box-shadow:0 20px 52px #00000047}.nUhMVa_opHead{border-bottom:1px solid var(--dsw-alias-border-l2,#e5e7eb);align-items:center;gap:8px;padding:9px 14px;display:flex}.nUhMVa_opPanelTitle{font-size:12.5px;font-weight:600}.nUhMVa_opCloseBtn.nUhMVa_opCloseBtn{min-width:0;color:var(--dsw-alias-label-secondary,#6b7280);padding:0 6px}.nUhMVa_opAggregate{border-bottom:1px solid var(--dsw-alias-border-l2,#e5e7eb);background:var(--dsw-alias-bg-layer-2,#f7f8fa);padding:9px 14px}.nUhMVa_opAggregateTop{font-variant-numeric:tabular-nums;font-size:12px;font-weight:600}.nUhMVa_opAggregateHint{color:var(--dsw-alias-label-tertiary,#8b93a1);margin-top:4px;font-size:10.5px}.nUhMVa_opRow{border-bottom:1px solid var(--dsw-alias-border-l2,#e5e7eb);align-items:flex-start;gap:9px;padding:9px 14px;display:flex}.nUhMVa_opRow:last-child{border-bottom:none}.nUhMVa_opRowAlert{background:#dc26260f}.nUhMVa_opIcon{flex-shrink:0;place-items:center;width:14px;margin-top:1px;display:grid}.nUhMVa_opQueuedIcon{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:12px}.nUhMVa_opMain{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.nUhMVa_opTop{align-items:baseline;gap:6px;min-width:0;display:flex}.nUhMVa_opVerb{color:var(--dsw-alias-label-secondary,#6b7280);flex-shrink:0;font-size:12px}.nUhMVa_opName{text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:600;overflow:hidden}.nUhMVa_opStatus{color:var(--dsw-alias-label-tertiary,#8b93a1);overflow-wrap:anywhere;font-size:10.5px;line-height:16px}.nUhMVa_opStatusBad{color:var(--dsw-alias-state-error-primary,#dc2626)}.nUhMVa_opAgents{color:var(--dsw-alias-label-tertiary,#8b93a1);margin:2px 0 0;font-size:10.5px;line-height:16px}.nUhMVa_opAgentsSummary{cursor:pointer;color:var(--dsw-alias-label-secondary,#5c6570);font-size:10.5px;line-height:16px;list-style:none}.nUhMVa_opAgentsSummary::-webkit-details-marker{display:none}.nUhMVa_opAgentsSummary:before{content:\"▸\";width:10px;transition:transform .12s cubic-bezier(.16,1,.3,1);display:inline-block}.nUhMVa_opAgents[open]>.nUhMVa_opAgentsSummary:before{transform:rotate(90deg)}.nUhMVa_opAgentsList{flex-direction:column;gap:1px;margin:2px 0 0;padding:0 0 0 12px;list-style:none;display:flex}.nUhMVa_opAgentsId{font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);white-space:nowrap;text-overflow:ellipsis;font-size:10.5px;line-height:15px;overflow:hidden}.nUhMVa_opActions{flex-shrink:0;align-items:center;gap:6px;margin-top:1px;display:flex}.nUhMVa_opDecision{border-top:1px dashed var(--dsw-alias-border-l2,#e5e7eb);flex-direction:column;gap:8px;margin-top:8px;padding-top:8px;display:flex}.nUhMVa_opDecisionFoot{align-items:center;gap:8px;display:flex}.nUhMVa_conflictDetailsToggle{font:inherit;cursor:pointer;color:var(--dsw-alias-label-tertiary,#8b93a1);background:0 0;border:none;align-items:center;gap:4px;padding:2px 0;font-size:11px;display:inline-flex}.nUhMVa_conflictDetailsToggle:hover{color:var(--dsw-alias-label-secondary,#6b7280)}.nUhMVa_opEmpty{text-align:center;color:var(--dsw-alias-label-secondary,#6b7280);padding:30px 14px;font-size:12px}.nUhMVa_opEmptyHint{color:var(--dsw-alias-label-tertiary,#8b93a1);margin-top:4px;font-size:11px}.nUhMVa_cardBlockedMark{font:inherit;cursor:pointer;color:var(--dsw-alias-state-error-primary,#dc2626);border:1px solid var(--dsw-alias-state-error-primary,#dc2626);background:#dc262614;border-radius:7px;align-items:center;gap:5px;padding:4px 9px;font-size:11px;display:inline-flex}.nUhMVa_dangerBtn.nUhMVa_dangerBtn{color:var(--dsw-alias-state-error-primary,#dc2626);border-color:var(--dsw-alias-state-error-primary,#dc2626)}.nUhMVa_dangerBtn.nUhMVa_dangerBtn:hover:not(:disabled){background:var(--dsw-alias-state-error-primary,#dc2626);color:#fff}.nUhMVa_dangerArmed.nUhMVa_dangerArmed{background:var(--dsw-alias-state-error-primary,#dc2626);border-color:var(--dsw-alias-state-error-primary,#dc2626);color:var(--dsw-alias-label-primary-foreground,#fff)}.nUhMVa_retryBtn{margin-top:4px}.nUhMVa_irow{background:var(--dsw-alias-settings-card-fill,var(--dsw-alias-bg-layer-1,#fff));border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-xl,20px);flex-direction:column;gap:10px;min-width:0;padding:12px 14px;display:flex}.nUhMVa_irowActions{flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:8px;min-width:0;display:flex}.nUhMVa_irowTrailing{flex-wrap:nowrap;flex-shrink:0;align-items:center;gap:8px;min-width:0;display:inline-flex}.nUhMVa_irowTrailing .nUhMVa_metaTag{flex-shrink:1;min-width:0}.nUhMVa_irowMissing{filter:grayscale();opacity:.5}.nUhMVa_irow>.nUhMVa_src,.nUhMVa_irow>.nUhMVa_owner,.nUhMVa_irow button{white-space:nowrap;flex-shrink:0}.nUhMVa_tabSearchRow{align-items:center;gap:8px;padding:0 4px 10px;display:flex}.nUhMVa_tabSearch{flex:1;min-width:0}.nUhMVa_groupBulkActions{flex-wrap:wrap;align-items:center;gap:8px;padding:0 4px 10px;display:flex}.nUhMVa_caps{flex-wrap:wrap;align-items:center;gap:4px;min-width:0;padding:0 2px 6px;font-size:11px;line-height:1.5;display:flex}.nUhMVa_capsTitle{color:var(--dsw-alias-label-secondary,#8b949e);cursor:help}.nUhMVa_capChip{border:1px solid var(--dsw-alias-border-l2,#30363d);color:var(--dsw-alias-label-primary,#c9d1d9);white-space:nowrap;border-radius:999px;padding:0 6px}.nUhMVa_capMuted{border:1px dashed var(--dsw-alias-border-l2,#30363d);color:var(--dsw-alias-label-secondary,#8b949e);white-space:nowrap;border-radius:999px;padding:0 6px}.nUhMVa_capCaveat{color:var(--dsw-alias-label-tertiary,#8b93a1);align-items:baseline;gap:12px;margin:6px 0 0;font-size:11px;line-height:16px;display:flex}.nUhMVa_capCaveatNote{min-width:0}.nUhMVa_capCaveatAt{white-space:nowrap;flex:none;margin-left:auto}.nUhMVa_searchField{box-sizing:border-box;min-width:0;position:relative}.nUhMVa_searchInput.nUhMVa_searchInput{box-sizing:border-box;width:100%;min-width:0;padding-right:34px}.nUhMVa_searchClear{width:24px;height:24px;color:var(--dsw-alias-label-secondary,#59636e);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:4px;justify-content:center;align-items:center;padding:0;font-size:20px;line-height:1;display:flex;position:absolute;top:50%;right:5px;transform:translateY(-50%)}.nUhMVa_searchClear:hover{background:var(--dsw-alias-bg-layer-2,#f3f4f6);color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_searchClear:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary,#4f6ef7);outline-offset:1px}.nUhMVa_spec{color:var(--dsw-alias-label-secondary,#9ca3af);font-size:11px;font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);overflow-wrap:anywhere;min-width:0}.nUhMVa_specTag{white-space:nowrap;border-radius:4px;flex-shrink:0;align-items:center;height:16px;padding:0 5px;font-size:10px;font-weight:600;display:inline-flex}.nUhMVa_specTagGit{color:var(--dsw-alias-state-business-primary,#0b7285);background:#12a3c41f}.nUhMVa_specTagFile{color:var(--dsw-alias-state-warn-primary,#b07d1b);background:#f0b42924}.nUhMVa_backupCheckList .nUhMVa_grow{white-space:nowrap;text-overflow:ellipsis;flex:70%;min-width:0;overflow:hidden}.nUhMVa_backupCheckList .nUhMVa_spec{text-align:right;white-space:nowrap;text-overflow:ellipsis;flex:0 30%;max-width:30%;overflow:hidden}.nUhMVa_staleAction{word-break:normal;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px;display:flex}.nUhMVa_pct{color:var(--dsw-alias-label-secondary,#6b7280);flex-shrink:0;font-size:11px;font-weight:600}.nUhMVa_pager{flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:8px;margin:16px 0 4px;display:flex}.nUhMVa_loadMore{justify-content:center;margin:16px 0 4px;display:flex}.nUhMVa_pagerPages{flex-wrap:nowrap;flex:1;justify-content:center;align-items:center;gap:4px;min-width:0;display:flex}.nUhMVa_pagerMeta{flex-wrap:nowrap;flex-shrink:0;align-items:center;gap:6px;display:flex}.nUhMVa_pagerPages button,.nUhMVa_pagerMeta button{min-width:0;padding:0 8px}.nUhMVa_pageEllipsis{color:var(--dsw-alias-label-secondary,#9ca3af);padding:0 1px;font-size:12px}.nUhMVa_pageInfo{color:var(--dsw-alias-label-secondary,#6b7280);white-space:nowrap;font-size:12px}@container (width<=544px){.nUhMVa_pager{flex-wrap:wrap;justify-content:center;gap:8px}.nUhMVa_pagerPages{flex-basis:100%}}.nUhMVa_depBadge{border:1px solid var(--dsw-alias-state-warn-primary,#b45309);color:var(--dsw-alias-state-warn-primary,#b45309);white-space:nowrap;border-radius:4px;flex-shrink:0;margin-left:6px;padding:1px 6px;font-size:11px;font-weight:600;line-height:16px}.nUhMVa_deprecate{color:var(--dsw-alias-state-warn-primary,#b45309);background:var(--dsw-alias-bg-layer-2,#fdf3e3);border:1px solid var(--dsw-alias-border-l2,#f3e3c3);border-radius:8px;margin:0;padding:8px 10px;font-size:12px;line-height:18px}.nUhMVa_deprecate a{color:var(--dsw-alias-state-warn-primary,#b45309);text-decoration:underline}.nUhMVa_deprecate .nUhMVa_src{margin-left:8px}.nUhMVa_depLine{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.nUhMVa_switch{border:1px solid var(--dsw-alias-border-l2,#d9dde3);background:var(--dsw-alias-bg-layer-2,#e5e7eb);cursor:pointer;border-radius:99px;flex-shrink:0;width:38px;height:22px;padding:0;transition:background .15s,border-color .15s;position:relative}.nUhMVa_switchOn{background:var(--dsw-alias-state-success-primary,#16a34a);border-color:var(--dsw-alias-state-success-primary,#16a34a)}.nUhMVa_switchMixed{background:var(--dsw-alias-state-warn-primary,#b45309);border-color:var(--dsw-alias-state-warn-primary,#b45309)}.nUhMVa_switchKnob{background:#fff;border-radius:99px;width:16px;height:16px;transition:left .15s;position:absolute;top:2px;left:2px;box-shadow:0 1px 2px #00000040}.nUhMVa_switchOn .nUhMVa_switchKnob,.nUhMVa_switchMixed .nUhMVa_switchKnob{left:18px}.nUhMVa_switch:disabled{opacity:.5;cursor:default}.nUhMVa_viewBar{border-radius:var(--dsw-radius-md,12px);background:var(--dsw-alias-bg-module-platform,#f4f5f7);border:none;align-items:center;gap:2px;width:fit-content;margin-bottom:12px;padding:3px;display:flex}.nUhMVa_viewBtn{font:inherit;color:var(--dsw-alias-label-secondary,#5c6570);border-radius:var(--dsw-radius-sm,8px);cursor:pointer;white-space:nowrap;background:0 0;border:none;height:26px;padding:0 10px;font-size:12px;line-height:18px;transition:background-color .12s,color .12s}.nUhMVa_viewBtn:hover{color:var(--dsw-alias-brand-primary,#4f6ef7)}.nUhMVa_viewOn{background:var(--dsw-alias-bg-layer-3,#fff);color:var(--dsw-alias-label-primary,#1f2328);box-shadow:0 0 0 .5px var(--dsw-alias-border-l3,#0000001f);font-weight:600}.nUhMVa_groupRow{background:var(--dsw-alias-settings-card-fill,var(--dsw-alias-bg-layer-1,#fff));border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-xl,20px);margin-bottom:10px;padding:12px 14px}.nUhMVa_groupHead{flex-wrap:wrap;align-items:center;gap:10px;min-width:0;display:flex}.nUhMVa_groupCollapse{width:22px;height:22px;color:var(--dsw-alias-label-secondary,#6b7280);cursor:pointer;background:0 0;border:none;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:inline-flex}.nUhMVa_groupCollapse:hover{background:var(--dsw-alias-bg-layer-2,#eef0f4);color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_groupTitle{flex-direction:column;flex:auto;gap:1px;min-width:0;display:flex}.nUhMVa_groupTitle .nUhMVa_groupHint{margin-top:0}.nUhMVa_groupName{text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;line-height:20px;overflow:hidden}.nUhMVa_groupMeta{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:11px;line-height:16px}.nUhMVa_groupActions{flex-wrap:wrap;flex-shrink:0;align-items:center;gap:6px;margin-left:auto;display:flex}.nUhMVa_groupMembers{flex-direction:column;gap:6px;margin-top:10px;display:flex}.nUhMVa_groupMember{background:var(--dsw-alias-bg-layer-2,#f7f8fa);border-radius:8px;align-items:center;gap:8px;min-width:0;padding:6px 8px;font-size:12px;line-height:18px;display:flex}.nUhMVa_groupMember .nUhMVa_nm{flex:1;min-width:0;font-size:12px}.nUhMVa_memberName{flex:auto;align-items:center;gap:6px;min-width:0;display:flex}.nUhMVa_memberName .nUhMVa_nm{flex:0 auto;min-width:0}.nUhMVa_memberNameWithDesc{flex:0 auto;max-width:42%}.nUhMVa_memberKind{color:var(--dsw-alias-label-tertiary,#8b93a1);white-space:nowrap;flex:none;font-size:11px;line-height:16px}.nUhMVa_themeSlot{box-shadow:inset 0 -1px 0 var(--dsw-alias-border-l2,#e5e7eb);border-radius:8px 8px 0 0;margin-bottom:4px}.nUhMVa_groupMember>.nUhMVa_switch,.nUhMVa_groupMember>button{flex-shrink:0}.nUhMVa_groupMemberAction{flex:none;margin-left:auto}.nUhMVa_groupMemberAction button{white-space:nowrap}.nUhMVa_groupAddPanel{border-top:1px dashed var(--dsw-alias-border-l2,#e5e7eb);flex-direction:column;gap:6px;margin-top:10px;padding-top:10px;display:flex}.nUhMVa_groupAddModalBody{flex-direction:column;gap:10px;min-width:0;display:flex}.nUhMVa_groupAddFilters{flex-wrap:wrap;gap:6px;display:flex}.nUhMVa_groupAddModalList{flex-direction:column;gap:6px;max-height:min(50vh,360px);padding-right:2px;display:flex;overflow-y:auto}.nUhMVa_groupAddModalHint{color:var(--dsw-alias-label-secondary,#6b7280);margin:0;font-size:12px;line-height:18px}.nUhMVa_groupAddPick{background:var(--dsw-alias-bg-layer-2,#f7f8fa);cursor:pointer;border-radius:8px;align-items:center;gap:8px;min-width:0;padding:8px 10px;display:flex}.nUhMVa_groupAddPick:hover{background:var(--dsw-alias-bg-layer-2,#eef0f4)}.nUhMVa_groupAddPick input{flex-shrink:0;margin:0}.nUhMVa_groupAddPick .nUhMVa_nm{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:12px;overflow:hidden}.nUhMVa_groupAddFooterMeta{color:var(--dsw-alias-label-secondary,#6b7280);align-self:center;margin-right:auto;font-size:12px;line-height:18px}.nUhMVa_groupOrgHint{color:var(--dsw-alias-label-tertiary,#8b93a1);margin:4px 0 0;font-size:11px;line-height:16px}.nUhMVa_groupRenameField{flex-direction:column;gap:6px;min-width:min(100%,320px);display:flex}.nUhMVa_groupRenameField label{color:var(--dsw-alias-label-secondary,#6b7280);font-size:12px;line-height:18px}.nUhMVa_groupRenameField .nUhMVa_inlineInput{width:100%}.nUhMVa_groupCreate{align-items:center;gap:8px;margin-bottom:10px;display:flex}.nUhMVa_groupCreateInline{flex-shrink:0;align-items:center;gap:8px;display:flex}.nUhMVa_groupCreateInline .nUhMVa_inlineInput{flex:none;width:160px}.nUhMVa_inlineInput{flex:1;min-width:120px}.nUhMVa_ungroupedRow{flex-wrap:nowrap}.nUhMVa_ungroupedRow>.nUhMVa_nm{flex:0 auto;max-width:42%;font-size:12px;line-height:18px}.nUhMVa_ungroupedState{flex:0 auto;align-items:center;min-width:0;max-width:46%;margin:0;display:inline-flex}.nUhMVa_ungroupedState>span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.nUhMVa_ungroupedDesc{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--dsw-alias-label-tertiary,#8b93a1);flex:1 1 0;font-size:12px;line-height:18px;overflow:hidden}.nUhMVa_ungroupedDesc.nUhMVa_noteMine{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_groupHint{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:11px}.nUhMVa_sect{color:var(--dsw-alias-label-secondary,#6b7280);margin:14px 2px 8px;font-size:12px;font-weight:600}.nUhMVa_sectAction{color:var(--dsw-alias-label-secondary,#6b7280);align-items:center;gap:8px;margin:14px 2px 8px;font-size:12px;font-weight:600;display:flex}.nUhMVa_backupGrid{grid-template-columns:minmax(0,1fr);gap:12px;display:grid}.nUhMVa_backupCard{background:var(--dsw-alias-settings-card-fill,var(--dsw-alias-bg-layer-1,#fff));border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-xl,20px);flex-direction:column;gap:10px;padding:16px;display:flex}.nUhMVa_backupCard h3{margin:0;font-size:14px}.nUhMVa_backupCard p{color:var(--dsw-alias-label-secondary,#6b7280);margin:0;font-size:12px;line-height:18px}.nUhMVa_backupActions{flex-wrap:wrap;gap:8px;display:flex;position:relative}.nUhMVa_hiddenFile{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.nUhMVa_backupInput{box-sizing:border-box;width:100%}.nUhMVa_backupCheck{cursor:pointer;align-items:center;gap:6px;font-size:12px;display:flex}.nUhMVa_backupWarn{margin:0;font-size:12px;line-height:18px;color:var(--dsw-alias-state-warn-primary,#b45309)!important}.nUhMVa_backupMessage{color:var(--dsw-alias-label-secondary,#6b7280);grid-column:1/-1;font-size:12px}.nUhMVa_backupCheckList{flex-direction:column;gap:6px;max-height:260px;margin:10px 0 4px;padding-right:4px;display:flex;overflow-y:auto}.nUhMVa_backupCheckList .nUhMVa_backupCheck{justify-content:space-between;gap:8px}.nUhMVa_diagPage{flex-direction:column;gap:12px;height:100%;min-height:0;display:flex;overflow-y:auto}.nUhMVa_panelHost .nUhMVa_diagPage{height:auto;overflow:visible}.nUhMVa_diagSummary{background:var(--dsw-alias-settings-card-fill,var(--dsw-alias-bg-layer-1,#fff));border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-lg,16px);flex-wrap:wrap;align-items:center;gap:12px;padding:10px 14px;font-size:12px;display:flex}.nUhMVa_diagSummaryItem{color:var(--dsw-alias-label-secondary,#6b7280);white-space:nowrap;align-items:center;gap:6px;display:inline-flex}.nUhMVa_diagSummaryMeta{color:var(--dsw-alias-label-tertiary,#9ca3af);font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);text-overflow:ellipsis;white-space:nowrap;max-width:320px;font-size:11px;overflow:hidden}.nUhMVa_diagSection{background:var(--dsw-alias-settings-card-fill,var(--dsw-alias-bg-layer-1,#fff));border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-lg,16px);flex-direction:column;gap:8px;padding:12px 14px;display:flex}.nUhMVa_diagSection h3{color:var(--dsw-alias-label-primary,#1f2328);margin:0;font-size:13px;font-weight:600}.nUhMVa_diagCount{color:var(--dsw-alias-label-tertiary,#9ca3af);font-size:11px;font-weight:400}.nUhMVa_diagEmpty{color:var(--dsw-alias-label-secondary,#9ca3af);padding:8px 0;font-size:12px}.nUhMVa_diagBundle{border-top:1px solid var(--dsw-alias-border-l2,#f0f1f3);flex-direction:column;gap:6px;padding-top:8px;display:flex}.nUhMVa_diagBundle:first-of-type{border-top:none;padding-top:0}.nUhMVa_diagRow{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;font-size:12px;line-height:18px;display:flex}.nUhMVa_diagMeta{align-items:baseline;gap:8px;min-width:0;font-size:12px;display:flex}.nUhMVa_diagKey{color:var(--dsw-alias-label-tertiary,#9ca3af);flex-shrink:0;min-width:64px;font-size:11px}.nUhMVa_diagVal{color:var(--dsw-alias-label-primary,#1f2328);font-size:12px;font-weight:500;font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);overflow-wrap:anywhere;min-width:0}.nUhMVa_diagIndex{background:var(--dsw-alias-bg-layer-2,#f3f4f6);min-width:18px;height:18px;color:var(--dsw-alias-label-secondary,#6b7280);border-radius:9px;flex-shrink:0;justify-content:center;align-items:center;font-size:11px;font-weight:600;display:inline-flex}.nUhMVa_diagArrow{color:var(--dsw-alias-label-tertiary,#9ca3af);flex-shrink:0;font-size:12px}.nUhMVa_diagBadgeOfficial{background:var(--dsw-alias-button-primary-fill,var(--dsw-alias-brand-primary,#4f6ef7));height:18px;color:var(--dsw-alias-label-primary-foreground,#fff);border-radius:9px;flex-shrink:0;align-items:center;padding:0 8px;font-size:11px;font-weight:600;display:inline-flex}.nUhMVa_diagBadgeCommunity{background:var(--dsw-alias-bg-layer-2,#f3f4f6);height:18px;color:var(--dsw-alias-label-secondary,#6b7280);border-radius:9px;flex-shrink:0;align-items:center;padding:0 8px;font-size:11px;display:inline-flex}.nUhMVa_diagBadgeShadow{background:var(--dsw-alias-state-error-primary,#dc2626);height:18px;color:var(--dsw-alias-label-primary-foreground,#fff);border-radius:9px;flex-shrink:0;align-items:center;padding:0 8px;font-size:11px;font-weight:600;display:inline-flex}.nUhMVa_diagBadgeWarn{background:var(--dsw-alias-state-warn-primary,#b45309);height:18px;color:var(--dsw-alias-label-primary-foreground,#fff);white-space:nowrap;border-radius:9px;flex-shrink:0;align-items:center;padding:0 8px;font-size:11px;font-weight:600;display:inline-flex}.nUhMVa_diagBadgeInfo{background:var(--dsw-alias-bg-layer-2,#f3f4f6);height:18px;color:var(--dsw-alias-label-secondary,#6b7280);white-space:nowrap;border-radius:9px;flex-shrink:0;align-items:center;padding:0 8px;font-size:11px;display:inline-flex}.nUhMVa_diagList{flex-direction:column;gap:6px;display:flex}.nUhMVa_sectionOverview{color:var(--dsw-alias-label-tertiary,#8b93a1);text-overflow:ellipsis;white-space:nowrap;max-width:100%;padding:2px 0 6px;font-size:12px;line-height:18px;overflow:hidden}.nUhMVa_diagAlert{color:var(--dsw-alias-state-warn-primary,#b45309)}.nUhMVa_ovRow{background:var(--dsw-alias-bg-layer-2,#f7f8fa);border-radius:8px;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;padding:6px 10px;font-size:12px;line-height:18px;display:flex}.nUhMVa_ovArrow{color:var(--dsw-alias-label-tertiary,#9ca3af);flex-shrink:0;font-size:12px}.nUhMVa_ovByTag{background:var(--dsw-alias-button-primary-fill,var(--dsw-alias-brand-primary,#4f6ef7));height:18px;color:var(--dsw-alias-label-primary-foreground,#fff);text-overflow:ellipsis;white-space:nowrap;border-radius:9px;flex-shrink:0;align-items:center;max-width:260px;padding:0 8px;font-size:11px;font-weight:600;display:inline-flex;overflow:hidden}.nUhMVa_ovFrom{color:var(--dsw-alias-label-secondary,#6b7280);text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:12px;overflow:hidden}.nUhMVa_orphRow{background:var(--dsw-alias-bg-layer-2,#f7f8fa);border-radius:8px;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;padding:6px 10px;font-size:12px;line-height:18px;display:flex}.nUhMVa_orphBadge{background:var(--dsw-alias-state-warn-primary,#b45309);height:18px;color:var(--dsw-alias-label-primary-foreground,#fff);white-space:nowrap;border-radius:9px;flex-shrink:0;align-items:center;padding:0 8px;font-size:11px;font-weight:600;display:inline-flex}.nUhMVa_dragHandle{width:20px;height:20px;color:var(--dsw-alias-label-tertiary,#9ca3af);cursor:grab;-webkit-user-select:none;user-select:none;flex-shrink:0;justify-content:center;align-items:center;font-size:12px;line-height:20px;display:inline-flex}.nUhMVa_dragOver{outline:2px dashed var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:2px;background:var(--dsw-alias-bg-layer-2,#f0f2f8);border-radius:8px}.nUhMVa_dragging{opacity:.45;background:var(--dsw-alias-bg-layer-2,#f3f4f6)}.nUhMVa_collapseHead{font:inherit;color:var(--dsw-alias-label-primary,#1f2328);cursor:pointer;text-align:left;background:0 0;border:none;align-items:center;gap:8px;width:100%;padding:0;font-size:13px;font-weight:600;display:flex}.nUhMVa_collapseIcon{color:var(--dsw-alias-label-secondary,#6b7280);flex-shrink:0;display:inline-flex}.nUhMVa_collapseTitle{flex:0 auto;min-width:0}.nUhMVa_collapseHead .nUhMVa_diagCount{flex-shrink:0}.nUhMVa_collapseBody{border-top:1px solid var(--dsw-alias-border-l2,#f0f1f3);overflow-wrap:anywhere;flex-direction:column;gap:10px;min-width:0;margin-top:8px;padding-top:10px;display:flex}.nUhMVa_orderPanel{flex-direction:column;gap:10px;min-width:0;display:flex}.nUhMVa_panelNote{color:var(--dsw-alias-label-secondary,#6b7280);margin:0;font-size:12px;line-height:18px}.nUhMVa_panelActions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.nUhMVa_presetList{flex-direction:column;gap:6px;min-width:0;display:flex}.nUhMVa_presetRow{background:var(--dsw-alias-bg-layer-2,#f7f8fa);border-radius:8px;flex-direction:column;align-items:stretch;gap:6px;min-width:0;max-width:100%;padding:8px 10px;font-size:12px;line-height:18px;display:flex}.nUhMVa_presetName{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;font-weight:600;overflow:hidden}.nUhMVa_snapList{flex-direction:column;gap:6px;min-width:0;display:flex}.nUhMVa_snapRow{background:var(--dsw-alias-bg-layer-2,#f7f8fa);border-radius:8px;flex-direction:column;align-items:stretch;gap:8px;padding:10px 12px;font-size:12px;line-height:18px;display:flex}.nUhMVa_snapMeta{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;display:flex}.nUhMVa_snapConfirmText{color:var(--dsw-alias-state-warn-primary,#b45309);margin:0;font-size:12px;line-height:18px}.nUhMVa_confirmRow{flex-wrap:wrap;align-items:center;gap:6px;display:inline-flex}.nUhMVa_fixFallback{flex-direction:column;gap:6px;margin:8px 0;display:flex}.nUhMVa_fixFallbackText,.nUhMVa_envEditor{box-sizing:border-box;width:100%;font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);color:var(--dsw-alias-label-primary,#1f2328);background:var(--dsw-alias-bg-layer-2,#f3f4f6);border:1px solid var(--dsw-alias-border-l2,#e5e7eb);resize:vertical;white-space:pre-wrap;word-break:break-all;border-radius:6px;padding:8px 10px;font-size:11px;line-height:16px}.nUhMVa_setCard{border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));background:var(--dsw-alias-bg-layer-3,#fff);border-radius:var(--dsw-radius-lg,16px);list-style:none;transition:border-color .16s,background .16s}.nUhMVa_setCard:hover{border-color:var(--dsw-alias-label-dimmed,#c8ccd4)}.nUhMVa_setCardOpen{background:var(--dsw-alias-bg-layer-2,#f7f8fa);border-color:var(--dsw-alias-label-dimmed,#c8ccd4)}.nUhMVa_setHeader{-webkit-appearance:none;appearance:none;width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer;border-radius:var(--dsw-radius-lg,16px);background:0 0;border:0;align-items:center;gap:12px;padding:14px 16px;display:flex}.nUhMVa_setHeader:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:-2px}.nUhMVa_setHeadText{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.nUhMVa_setName{color:var(--dsw-alias-label-primary,#1f2328);font-size:15px;font-weight:600;line-height:1.4}.nUhMVa_setDesc{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:13px;line-height:1.5}.nUhMVa_setChevron{color:var(--dsw-alias-label-tertiary,#8b93a1);flex:none;transition:transform .16s;display:inline-flex}.nUhMVa_setChevronOpen{transform:rotate(180deg)}.nUhMVa_setBody{border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb);margin:0 16px;padding-bottom:8px}.nUhMVa_setRow{align-items:center;gap:12px;padding:12px 0;display:flex}.nUhMVa_setRow+.nUhMVa_setRow{border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb)}.nUhMVa_setLabelBox{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.nUhMVa_setLabel{font-size:13px;line-height:20px}.nUhMVa_setHint{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:12px;line-height:18px}.nUhMVa_setAdvanced{border-bottom:1px solid var(--dsw-alias-border-l2,#e5e7eb)}.nUhMVa_setAdvancedHead{-webkit-appearance:none;appearance:none;width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:12px;padding:12px 0;display:flex}.nUhMVa_setAdvancedHead:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:-2px}.nUhMVa_setAdvancedBody{padding-bottom:4px}.nUhMVa_setConfirm{border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb);flex-direction:column;gap:8px;padding:12px 0 4px;display:flex}.nUhMVa_setCheck{cursor:pointer;align-items:center;gap:8px;font-size:12px;line-height:18px;display:flex}.nUhMVa_setActions{border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb);justify-content:flex-end;align-items:center;gap:8px;padding:12px 0 4px;display:flex}.nUhMVa_setInlineActions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px;display:flex}.nUhMVa_setProxyEditor{border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb);flex-wrap:wrap;align-items:flex-end;gap:10px;padding:12px 0;display:flex}.nUhMVa_setProxyLabel{min-width:180px;color:var(--dsw-alias-label-secondary,#6b7280);flex-direction:column;flex:1;gap:5px;font-size:12px;line-height:18px;display:flex}.nUhMVa_setProxyInput{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2,#d1d5db);background:var(--dsw-alias-bg-layer-3,#fff);width:100%;min-width:0;color:var(--dsw-alias-label-primary,#1f2328);font:inherit;border-radius:7px;padding:6px 8px;font-size:12px;line-height:18px}.nUhMVa_setProxyInput:focus{border-color:var(--dsw-alias-brand-primary,#4f6ef7);outline:2px solid color-mix(in srgb,var(--dsw-alias-brand-primary,#4f6ef7) 18%,transparent)}.nUhMVa_setDanger{color:var(--dsw-alias-state-error-primary,#dc2626)}.nUhMVa_setSeg{border-radius:var(--dsw-radius-md,12px);background:var(--dsw-alias-bg-module-platform,#f4f5f7);border:none;flex-shrink:0;gap:2px;padding:3px;display:inline-flex}.nUhMVa_setSegBtn{font:inherit;border-radius:var(--dsw-radius-sm,8px);height:26px;color:var(--dsw-alias-label-secondary,#5c6570);cursor:pointer;background:0 0;border:none;padding:0 10px;font-size:12px;line-height:18px}.nUhMVa_setSegBtn:disabled{cursor:default;opacity:.5}.nUhMVa_setSegOn{background:var(--dsw-alias-bg-layer-3,#fff);color:var(--dsw-alias-label-primary,#1f2328);box-shadow:0 0 0 .5px var(--dsw-alias-border-l3,#0000001f);font-weight:600}.nUhMVa_setBetaTag{background:var(--dsw-alias-bg-module-platform,#eef0f4);color:var(--dsw-alias-label-secondary,#6b7280);border-radius:9px;margin-left:6px;padding:0 6px;font-size:11px;font-weight:600;line-height:17px}.nUhMVa_commentsLink{cursor:pointer;white-space:nowrap;color:var(--dsw-alias-label-tertiary,#8b93a1);background:0 0;border:0;padding:0;font-size:12px;line-height:18px}.nUhMVa_commentsLink:hover{color:var(--dsw-alias-brand-primary,#4f6ef7)}.nUhMVa_footActions{flex-shrink:0;align-items:center;gap:8px;display:inline-flex}.nUhMVa_favoriteBtn{cursor:pointer;color:var(--dsw-alias-label-secondary,#9ca3af);background:0 0;border:0;align-items:center;padding:0;display:inline-flex}.nUhMVa_favoriteMark{transform-box:fill-box;transform-origin:50% 0;display:block}.nUhMVa_favoriteBtn:hover,.nUhMVa_favoriteOn{color:var(--dsw-alias-brand-primary,#4f6ef7)}.nUhMVa_cardMore{cursor:pointer;font:inherit;letter-spacing:1px;color:var(--dsw-alias-label-secondary,#9ca3af);background:0 0;border:0;padding:0 2px;font-size:14px;line-height:16px}.nUhMVa_cardMore:hover{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_blockedTabHint{color:var(--dsw-alias-label-secondary,#9ca3af);margin:0 0 12px;font-size:12px;line-height:18px}.nUhMVa_blockedMissing{flex-direction:column;gap:4px;margin-top:8px;display:flex}.nUhMVa_blockedBarRow{justify-content:space-between;align-items:center;gap:8px;min-width:0;display:flex}.nUhMVa_blockedBarName{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;line-height:20px;overflow:hidden}.nUhMVa_blockedBarUndo{cursor:pointer;font:inherit;color:var(--dsw-alias-brand-primary,#4f6ef7);background:0 0;border:0;padding:0;font-size:12px;line-height:18px}.nUhMVa_commentsNote{color:var(--dsw-alias-label-secondary,#9ca3af);margin:0 0 8px;font-size:11px;line-height:16px}.nUhMVa_commentsGithubPrompt{border:1px solid color-mix(in srgb,var(--dsw-alias-brand-primary,#4f6ef7) 24%,transparent);background:color-mix(in srgb,var(--dsw-alias-brand-primary,#4f6ef7) 6%,transparent);border-radius:8px;margin:0 0 10px;padding:10px}.nUhMVa_commentsGithubHint{color:var(--dsw-alias-label-primary,#1f2328);margin:0 0 8px;font-size:12px;line-height:17px}.nUhMVa_commentsGithubAction{box-sizing:border-box;border:1px solid var(--dsw-alias-brand-primary,#4f6ef7);min-height:28px;color:var(--dsw-alias-brand-primary,#4f6ef7);border-radius:6px;justify-content:center;align-items:center;padding:5px 10px;font-size:12px;font-weight:600;line-height:16px;text-decoration:none;display:inline-flex}.nUhMVa_commentsGithubAction:hover{background:color-mix(in srgb,var(--dsw-alias-brand-primary,#4f6ef7) 9%,transparent)}.nUhMVa_commentsStatus{color:var(--dsw-alias-label-secondary,#9ca3af);margin:0;font-size:12px}.nUhMVa_commentsStatus:empty{display:none}.nUhMVa_commentsError{color:var(--dsw-alias-label-primary,#1f2328);margin:0 0 8px;font-size:12px}.nUhMVa_commentsFail{flex-direction:column;align-items:flex-start;gap:8px;padding:12px 0;display:flex}.nUhMVa_commentsMount{width:100%;min-height:240px;max-height:56vh;overflow:auto}.nUhMVa_commentsMount iframe{width:100%}.nUhMVa_notesLink{font:inherit;color:var(--dsw-alias-label-secondary,#6b7280);cursor:pointer;text-align:left;background:0 0;border:none;margin:2px 0 0;padding:0;font-size:12px;line-height:18px;display:block}.nUhMVa_notesLink:hover{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_notesModalWide{width:min(640px,92vw);max-width:min(640px,92vw)}.nUhMVa_notesBody{overscroll-behavior:contain;flex-direction:column;flex:0 auto;gap:10px;min-width:0;max-height:min(60vh,520px);padding:0 2px 8px 0;display:flex;overflow-y:auto}.nUhMVa_notesRange{align-items:center;gap:8px;margin-bottom:4px;font-size:12px;line-height:18px;display:flex}.nUhMVa_notesArrow{color:var(--dsw-alias-label-tertiary,#8b93a1)}.nUhMVa_notesMeta{letter-spacing:.02em;text-transform:uppercase;color:var(--dsw-alias-label-secondary,#6b7280);flex-wrap:wrap;align-items:baseline;gap:6px;margin-top:4px;font-size:12px;line-height:18px;display:flex}.nUhMVa_notesBody>.nUhMVa_notesMeta:first-child{margin-top:0}.nUhMVa_notesPre{white-space:pre-wrap;word-break:break-word;background:var(--dsw-alias-bg-layer-2,#eef0f4);border-radius:8px;max-height:40vh;margin:0;padding:10px 12px;font-size:13px;line-height:20px;overflow:auto}.nUhMVa_notesRendered{flex-direction:column;gap:8px;min-width:0;display:flex}.nUhMVa_notesImg{border-radius:6px;max-width:100%;height:auto;margin:4px 0;display:block}.nUhMVa_notesH{margin-top:4px;font-size:13px;font-weight:650;line-height:20px}.nUhMVa_notesP{font-size:13px;line-height:20px}.nUhMVa_notesQuote{border-left:3px solid var(--dsw-alias-border-l3,#d9dde3);background:var(--dsw-alias-bg-layer-2,#f7f8fa);color:var(--dsw-alias-label-primary,#1f2328);border-radius:0 6px 6px 0;margin:0;padding:8px 10px;font-size:13px;line-height:20px}.nUhMVa_notesFence{background:var(--dsw-alias-bg-layer-2,#eef0f4);font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);white-space:pre;border-radius:8px;margin:0;padding:10px 12px;font-size:12px;line-height:18px;overflow-x:auto}.nUhMVa_notesFence code{font:inherit;background:0 0;padding:0}.nUhMVa_notesBullets{flex-direction:column;gap:4px;margin:0;padding-left:18px;font-size:13px;line-height:20px;display:flex}.nUhMVa_notesA{color:var(--dsw-alias-brand-primary,#4f6ef7);text-decoration:none}.nUhMVa_notesA:hover{text-decoration:underline}.nUhMVa_notesCode{font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);background:var(--dsw-alias-bg-layer-2,#eef0f4);border-radius:5px;padding:1px 5px;font-size:12px}.nUhMVa_notesList{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.nUhMVa_notesRow{border-bottom:1px solid var(--dsw-alias-border-l2,#e5e7eb);align-items:baseline;gap:12px;padding:6px 0;display:flex}.nUhMVa_notesRow:last-child{border-bottom:none}.nUhMVa_notesDate{color:var(--dsw-alias-label-tertiary,#8b93a1);font-variant-numeric:tabular-nums;flex-shrink:0;font-size:12px}.nUhMVa_notesMsg{word-break:break-word;word-break:break-word;-webkit-line-clamp:3;-webkit-box-orient:vertical;min-width:0;font-size:13px;line-height:20px;display:-webkit-box;overflow:hidden}.nUhMVa_notesSha{color:var(--dsw-alias-label-secondary,#6b7280);font-variant-numeric:tabular-nums;flex-shrink:0;margin-left:auto;font-size:12px;text-decoration:none}.nUhMVa_recoverySummary{color:var(--dsw-alias-state-error-primary,#dc2626);word-break:break-word;align-items:flex-start;gap:8px;margin-bottom:8px;font-size:12px;display:flex}.nUhMVa_recoveryHint{color:var(--dsw-alias-label-secondary,#6b7280);margin:8px 0;font-size:12px}.nUhMVa_recoveryList{border:1px solid var(--dsw-alias-border-l2,#e5e7eb);border-radius:8px;flex-direction:column;max-height:320px;display:flex;overflow-x:hidden;overflow-y:auto}.nUhMVa_recoveryRow{border-top:1px solid var(--dsw-alias-border-l2,#eef0f4);align-items:flex-start;gap:8px;padding:6px 10px;font-size:12px;display:flex}.nUhMVa_recoveryRow:first-child{border-top:none}.nUhMVa_recoveryBlamed{box-shadow:inset 3px 0 0 var(--dsw-alias-state-error-primary,#dc2626);background:#dc262612}.nUhMVa_recoveryMuted{opacity:.6}.nUhMVa_recoveryName{word-break:break-word;flex-direction:column;gap:2px;min-width:0;display:flex}.nUhMVa_recoveryReason{color:var(--dsw-alias-state-error-primary,#dc2626);word-break:break-word;font-size:11px}.nUhMVa_recoveryNote{color:var(--dsw-alias-label-tertiary,#8b93a1);word-break:break-word;margin-top:8px;font-size:11px}.nUhMVa_recoveryBadge{background:var(--dsw-alias-bg-layer-2,#eef0f4);color:var(--dsw-alias-label-secondary,#6b7280);border-radius:5px;margin-left:6px;padding:0 5px;font-size:10px}.nUhMVa_recoveryLog{color:var(--dsw-alias-label-secondary,#6b7280);margin:4px 0 8px;font-size:11px}.nUhMVa_recoveryLog pre{white-space:pre-wrap;word-break:break-word;max-height:180px;margin:6px 0 0;overflow:auto}.nUhMVa_notesSha:hover{color:var(--dsw-alias-label-primary,#1f2328);text-decoration:underline}.nUhMVa_notesVer{color:inherit;font-weight:600;text-decoration:none}.nUhMVa_notesVer:hover{text-decoration:underline}.nUhMVa_notesSourceLink{color:var(--dsw-alias-brand-primary,#4f6ef7);white-space:nowrap;text-decoration:none}.nUhMVa_notesSourceLink:hover{text-decoration:underline}.nUhMVa_migrationSources{flex-direction:column;gap:8px;margin-top:4px;display:flex}.nUhMVa_migrationSource{border:1px solid var(--dsw-alias-border-l2,#e5e7eb);border-radius:8px;flex-direction:column;gap:4px;padding:10px 12px;display:flex}.nUhMVa_migrationSource code{font-size:12px;font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);overflow-wrap:anywhere}.nUhMVa_migrationLabel{color:var(--dsw-alias-label-secondary,#9ca3af);font-size:11px}.nUhMVa_migrationArrow{text-align:center;color:var(--dsw-alias-label-secondary,#9ca3af)}.nUhMVa_migrationWarning{color:var(--dsw-alias-state-warn-primary,#b45309);align-items:flex-start;gap:6px;margin:12px 0 0;font-size:12px;line-height:18px;display:flex}.nUhMVa_migrationNote{color:var(--dsw-alias-label-secondary,#6b7280);margin:12px 0 0;font-size:12px;line-height:18px}.nUhMVa_sourceRepo{color:var(--dsw-alias-label-secondary,#5c6570);align-self:flex-end;align-items:center;gap:2px;font-size:13px;line-height:20px;text-decoration:none;display:inline-flex}.nUhMVa_sourceRepo:hover{color:var(--dsw-alias-brand-primary,#4f6ef7);text-decoration:underline}.nUhMVa_sourceRepo:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:2px;border-radius:4px}";
4237
+ const css = ".nUhMVa_root{min-width:0;height:100%;color:var(--dsw-alias-label-primary,#1f2328);flex-direction:column;display:flex;position:relative;container-type:inline-size}.nUhMVa_head{flex-direction:column;gap:8px;padding:0 4px 4px;display:flex}.nUhMVa_headTop{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 16px;min-width:0;display:flex}.nUhMVa_headTop>.nUhMVa_titleRow>.nUhMVa_sub{max-width:100%}.nUhMVa_title{white-space:nowrap;color:var(--dsw-alias-label-primary,#1f2328);margin:0;font-size:15px;font-weight:600;line-height:22px}.nUhMVa_sub{min-width:0;color:var(--dsw-alias-label-tertiary,#8b93a1);flex:auto;margin:0;font-size:12px;line-height:18px}.nUhMVa_sidebarTip{color:var(--dsw-alias-label-secondary,#5c6570);flex-wrap:wrap;align-items:center;gap:6px 8px;margin:0;font-size:12px;line-height:18px;display:flex}.nUhMVa_updateCheckNotice{color:var(--dsw-alias-label-secondary,#5c6570);flex-wrap:wrap;align-items:center;gap:0 6px;font-size:12px;line-height:18px;display:flex}.nUhMVa_submitLink{color:var(--dsw-alias-label-tertiary,#8b93a1);white-space:nowrap;font-size:12px;line-height:18px;text-decoration:none}.nUhMVa_submitLink:hover{color:var(--dsw-alias-brand-primary,#4f6ef7);text-decoration:underline}.nUhMVa_tabs{flex-wrap:wrap;align-items:center;gap:4px;padding:0 0 2px;display:flex;position:relative}.nUhMVa_tab{height:32px;font:inherit;color:var(--dsw-alias-label-secondary,#5c6570);border-radius:var(--dsw-radius-sm,#8px);cursor:pointer;white-space:nowrap;background:0 0;border:none;align-items:center;padding:0 10px;font-size:13px;line-height:20px;transition:background-color .12s,color .12s;display:inline-flex;position:relative}.nUhMVa_tab:hover:not(.nUhMVa_on){background:var(--dsw-alias-interactive-bg-hover,#2631480f);color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_tab.nUhMVa_on{color:var(--dsw-alias-label-primary,#1f2328);font-weight:600}.nUhMVa_tab.nUhMVa_on:after{content:\"\";background:var(--dsw-alias-label-primary,#1f2328);border-radius:1px;height:2px;position:absolute;bottom:3px;left:10px;right:10px}.nUhMVa_subTabs{flex-wrap:wrap;align-items:center;gap:4px;margin:0 0 2px;display:flex}.nUhMVa_banner{background:var(--dsw-alias-bg-layer-2,#fdf3e3);border:1px solid var(--dsw-alias-border-l2,#f3e3c3);border-radius:8px;align-items:center;gap:8px;margin:0;padding:8px 12px;font-size:12px;display:flex}.nUhMVa_bannerIcon{color:var(--dsw-alias-label-secondary,#6b7280);flex-shrink:0}.nUhMVa_bannerHint{color:var(--dsw-alias-label-tertiary,#8b93a1);cursor:help;display:inline-flex}.nUhMVa_body{overflow-anchor:none;flex:1;padding:8px 4px 64px;scroll-padding-bottom:64px;overflow-x:hidden;overflow-y:auto}.nUhMVa_stickyHead{z-index:5;background:var(--dsw-alias-bg-base,#fff);position:sticky;top:-1px}.nUhMVa_stickyHead:before{content:\"\";background:inherit;pointer-events:none;height:14px;position:absolute;bottom:100%;left:0;right:0}.nUhMVa_cats{margin:0 -4px 2px;padding:0 4px 4px}.nUhMVa_catsRow{align-items:flex-start;gap:6px;display:flex;position:relative}.nUhMVa_star{color:var(--dsw-alias-label-tertiary,#8b93a1);white-space:nowrap;flex:none;font-size:11px;line-height:18px}.nUhMVa_top{z-index:20;background:var(--dsw-alias-bg-layer-1,#fff);box-shadow:var(--dsw-shadow-lv1,0 4px 12px #1f232814);border-radius:99px;display:inline-flex;position:absolute;bottom:18px;right:18px}.nUhMVa_topBtn{border-radius:99px;width:38px;height:38px;padding:0}.nUhMVa_tag{border:.5px solid var(--dsw-alias-border-l3,#d9dde3);color:var(--dsw-alias-label-secondary,#5c6570);white-space:nowrap;border-radius:999px;flex-shrink:0;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px}.nUhMVa_hostRequirement{border:.5px solid var(--dsw-alias-border-l3,#d9dde3);color:var(--dsw-alias-label-secondary,#5c6570);text-overflow:ellipsis;white-space:nowrap;border-radius:999px;min-width:0;max-width:18em;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px;overflow:hidden}.nUhMVa_hostRequirementBad{border-color:var(--dsw-alias-state-error-primary,#dc2626);color:var(--dsw-alias-state-error-primary,#dc2626);background:#dc262614}.nUhMVa_hostFilterNote{color:var(--dsw-alias-label-tertiary,#8b93a1);margin-top:6px;font-size:12px;line-height:18px}.nUhMVa_okState{color:var(--dsw-alias-state-success-primary,#16a34a);white-space:nowrap;font-size:12px;font-weight:600}.nUhMVa_catsWrap{flex-wrap:wrap;flex:1;align-items:center;gap:6px;min-width:0;display:flex}.nUhMVa_catsCollapsed{max-height:62px;overflow:hidden}.nUhMVa_catsToggle.nUhMVa_catsToggle{height:26px;min-height:26px;color:var(--dsw-alias-label-secondary,#5c6570);flex:none;padding:0 6px}.nUhMVa_shots{-webkit-overflow-scrolling:touch;scrollbar-width:thin;gap:8px;margin:6px 0 8px;padding:2px 0 6px;display:flex;overflow-x:auto}.nUhMVa_shot{object-fit:cover;border-radius:var(--dsw-radius-lg,16px);border:.5px solid var(--dsw-alias-border-l3,#d9dde3);background:var(--dsw-alias-bg-layer-2,#f3f4f6);cursor:pointer;flex:none;width:220px;height:150px}.nUhMVa_cardShots{-webkit-overflow-scrolling:touch;scrollbar-width:thin;gap:6px;margin:0 0 6px;padding:0 0 2px;display:flex;overflow-x:auto}.nUhMVa_cardShot{object-fit:contain;border-radius:var(--dsw-radius-lg,16px);border:.5px solid var(--dsw-alias-border-l3,#d9dde3);background:var(--dsw-alias-bg-layer-2,#f3f4f6);cursor:pointer;flex:none;width:132px;height:88px;display:block}.nUhMVa_lightbox{z-index:10000;cursor:zoom-out;background:#000000d9;justify-content:center;align-items:center;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.nUhMVa_lightboxImg{object-fit:contain;cursor:default;border-radius:4px;max-width:90vw;max-height:85vh}.nUhMVa_lightboxClose{color:#fff;cursor:pointer;background:#ffffff1f;border:none;border-radius:99px;place-items:center;width:36px;height:36px;font-size:22px;line-height:1;display:grid;position:absolute;top:16px;right:16px}.nUhMVa_lightboxClose:hover{background:#ffffff38}.nUhMVa_lightboxNav{color:#fff;cursor:pointer;background:#ffffff1f;border:none;border-radius:99px;place-items:center;width:44px;height:44px;display:grid;position:absolute;top:50%;transform:translateY(-50%)}.nUhMVa_lightboxNav:hover{background:#ffffff38}.nUhMVa_lightboxPrev{left:16px}.nUhMVa_lightboxNext{right:16px}.nUhMVa_lightboxDots{gap:8px;display:flex;position:absolute;bottom:20px;left:50%;transform:translate(-50%)}.nUhMVa_lightboxDot{cursor:pointer;background:#fff6;border-radius:99px;width:7px;height:7px}.nUhMVa_lightboxDotOn{background:#fff}.nUhMVa_cmd{background:var(--dsw-alias-bg-layer-2,#f3f4f6);font-size:11px;line-height:18px;font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);word-break:break-all;border-radius:6px;margin:8px 0 0;padding:8px 10px}.nUhMVa_warnLine{color:var(--dsw-alias-state-warn-primary,#b45309);flex-wrap:wrap;align-items:center;gap:4px;margin:0;font-size:12px;font-weight:600;line-height:18px;display:flex}.nUhMVa_modalNote{color:var(--dsw-alias-label-tertiary,#8b93a1);align-items:center;gap:4px;margin:12px 0 0;font-size:12px;line-height:18px;display:flex}.nUhMVa_confirmBody{flex-direction:column;gap:12px;display:flex}.nUhMVa_confirmModal{width:min(560px,92vw);max-width:min(560px,92vw);max-height:100%}.nUhMVa_confirmContent{flex:auto;min-height:0;overflow:hidden}.nUhMVa_confirmContent>:first-child{flex-shrink:0}.nUhMVa_confirmContent>:last-child{overscroll-behavior:contain;flex:auto;min-height:0;margin-top:0;overflow-y:auto}.nUhMVa_confirmModal>:last-child{flex-shrink:0}.nUhMVa_confirmBody .nUhMVa_byline{flex-wrap:nowrap;margin-top:0}.nUhMVa_confirmBody .nUhMVa_owner{min-width:0}.nUhMVa_confirmBody .nUhMVa_shots{margin:0;padding:0}.nUhMVa_confirmBody .nUhMVa_modalNote{margin:0}.nUhMVa_confirmTags{flex-wrap:wrap;gap:6px;display:flex}.nUhMVa_confirmDesc{color:var(--dsw-alias-label-primary,#1f2328);white-space:pre-wrap;margin:0;font-size:13px;line-height:20px}.nUhMVa_confirmFold{border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb);flex-direction:column;gap:8px;padding-top:12px;display:flex}.nUhMVa_confirmPanel{--fold-bg:#f7f8fa;--fold-border:#e7e8ea;--fold-ink:#1c1d1f;--fold-on-ink:#fff;background:var(--fold-bg);border:1px solid var(--fold-border);border-radius:8px}body[data-ds-dark-theme] .nUhMVa_confirmPanel{--fold-bg:var(--dsw-alias-bg-layer-3,#353638);--fold-border:var(--dsw-alias-border-l2,#ffffff1f);--fold-ink:var(--dsw-alias-label-primary,#f9fafb);--fold-on-ink:var(--dsw-alias-bg-layer-2,#2c2c2e)}.nUhMVa_confirmPanelRow{box-sizing:border-box;width:100%;min-height:40px;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;gap:8px;padding:0 12px;display:flex}.nUhMVa_confirmPanelRow:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary,#4176e6);outline-offset:-2px}.nUhMVa_confirmPanelIcon{color:var(--fold-ink);flex:none;display:inline-flex}.nUhMVa_confirmTerminalIcon{color:var(--fold-ink);flex:none;display:block}.nUhMVa_confirmTerminalPrompt{stroke:var(--fold-on-ink);fill:none}.nUhMVa_confirmTerminalDot{fill:var(--fold-on-ink)}.nUhMVa_confirmPanelTitle{min-width:0;color:var(--fold-ink);flex:1 0 auto;font-size:13px;line-height:20px}.nUhMVa_confirmPanelRowStatic{cursor:default}.nUhMVa_confirmPanel[data-state=unchecked]{background:color-mix(in srgb, var(--fold-bg) 35%, transparent);border-style:dashed}.nUhMVa_confirmPanelMeta{min-width:0;color:var(--dsw-alias-label-secondary,#6b7280);text-align:right;flex:0 auto;font-size:12px;line-height:20px}.nUhMVa_confirmPanelChevron{color:var(--dsw-alias-label-tertiary,#8b93a1);flex:none}.nUhMVa_confirmPanelBody{flex-direction:column;gap:10px;padding:0 12px 10px 16px;display:flex}.nUhMVa_confirmCmd{align-items:center;gap:8px;display:flex}.nUhMVa_confirmPanel .nUhMVa_cmd{background:0 0;border-radius:0;flex:1;min-width:0;margin:0;padding:0;line-height:24px}.nUhMVa_confirmCopied{color:var(--dsw-alias-state-success-primary,#22c55e);white-space:nowrap;flex:none;font-size:12px;line-height:24px}.nUhMVa_confirmCopy{width:24px;height:24px;color:var(--fold-ink,#1c1d1f);cursor:pointer;background:0 0;border:0;border-radius:6px;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.nUhMVa_confirmCopy:hover{background:color-mix(in srgb, var(--fold-ink,#1c1d1f) 8%, transparent)}.nUhMVa_confirmCopy:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary,#4176e6);outline-offset:1px}.nUhMVa_confirmPanel .nUhMVa_caps{gap:6px;padding:0}.nUhMVa_confirmPanel .nUhMVa_caps .nUhMVa_capChip{background:var(--fold-on-ink,#fff);border:1px solid var(--fold-border,#e7e8ea);color:var(--fold-ink,#1c1d1f);border-radius:999px;padding:2px 8px;font-size:12px;line-height:18px}.nUhMVa_confirmPanel .nUhMVa_caps .nUhMVa_capChip.nUhMVa_capChipUncommon{background:var(--fold-ink,#1c1d1f);border-color:var(--fold-ink,#1c1d1f);color:var(--fold-on-ink,#fff);font-weight:600}.nUhMVa_capGroups{grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:8px 12px;display:grid}.nUhMVa_capGroupLabel{color:var(--dsw-alias-label-secondary,#6b7280);white-space:nowrap;font-size:12px;line-height:22px}.nUhMVa_confirmPanel .nUhMVa_caps .nUhMVa_capMuted{border-color:var(--fold-border,#e7e8ea);color:var(--dsw-alias-label-secondary,#6b7280);padding:2px 8px;font-size:12px;line-height:18px}.nUhMVa_capAhead{flex-direction:column;gap:6px;display:flex}.nUhMVa_capAheadLabel{color:var(--dsw-alias-label-secondary,#6b7280);margin:0;font-size:12px;line-height:18px}.nUhMVa_capAheadRow{color:var(--dsw-alias-label-primary,#1f2328);align-items:flex-start;gap:8px;margin:0;font-size:13px;line-height:20px;display:flex}.nUhMVa_capAheadIcon{color:var(--dsw-alias-label-primary,#1f2328);flex:none;margin-top:2px}.nUhMVa_confirmPanel .nUhMVa_caps .nUhMVa_capAddress{color:var(--fold-ink,#1c1d1f);flex-basis:100%;margin:0 0 2px;font-size:13px;line-height:20px}.nUhMVa_capNote,.nUhMVa_confirmPanel .nUhMVa_capCaveat{color:var(--dsw-alias-label-secondary,#6b7280);margin:0;font-size:12px;line-height:18px}.nUhMVa_installCaution{background:color-mix(in srgb, var(--dsw-alias-state-warn-primary,#b45309) 12%, transparent);border-radius:8px;padding:12px 13px}.nUhMVa_installCautionLabel{color:var(--dsw-alias-label-secondary,#6b7280);margin:0 0 8px;font-size:12px;line-height:18px}.nUhMVa_installCautionHead{color:var(--dsw-alias-label-primary,#1f2328);align-items:center;gap:6px;margin:0;font-size:13px;font-weight:600;line-height:20px;display:flex}.nUhMVa_installCautionMark{flex:none;display:block}.nUhMVa_installCautionBody{color:var(--dsw-alias-label-primary,#1f2328);margin:6px 0 0;font-size:13px;line-height:20px}.nUhMVa_installCautionFoot{color:var(--dsw-alias-label-primary,#1f2328);align-items:baseline;gap:12px;margin:0;font-size:13px;line-height:20px;display:flex}.nUhMVa_installCautionLink{white-space:nowrap;color:var(--dsw-alias-link,#3b82f6);flex:none;margin-left:auto;font-size:13px;font-weight:600;line-height:20px;text-decoration:none}.nUhMVa_installCautionLink:hover{text-decoration:underline}.nUhMVa_confirmFineprint{color:var(--dsw-alias-label-secondary,#6b7280);margin:0;font-size:12px;line-height:18px}.nUhMVa_grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:10px;display:grid}.nUhMVa_recentBlock{margin:2px 0 4px;padding:0 0 8px}.nUhMVa_recentRow{-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:var(--dsw-alias-border-l3,#d9dde3) transparent;align-items:stretch;gap:8px;margin-bottom:0;padding-bottom:4px;display:flex;overflow-x:auto}.nUhMVa_recentRow::-webkit-scrollbar{height:6px}.nUhMVa_recentRow::-webkit-scrollbar-thumb{background:var(--dsw-alias-border-l3,#d9dde3);border-radius:99px}.nUhMVa_recentRow::-webkit-scrollbar-track{background:0 0}.nUhMVa_recentRow>*{box-sizing:border-box;flex:none;width:min(320px,30.7692% - 7.38462px);min-width:220px}.nUhMVa_recentRow.nUhMVa_recentCollapsed{visibility:hidden;max-height:0;margin-bottom:0;padding-bottom:0;overflow:hidden}.nUhMVa_recentTile{box-sizing:border-box;background:var(--dsw-alias-settings-card-fill,var(--dsw-alias-bg-layer-1,#fff));border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-lg,16px);flex-direction:column;justify-content:space-between;gap:4px;height:80px;padding:8px 12px;transition:background-image .16s cubic-bezier(.16,1,.3,1);display:flex;overflow:hidden}.nUhMVa_recentTile .nUhMVa_installBtn.nUhMVa_installBtn{height:24px;min-height:24px;padding:0 8px}.nUhMVa_recentAv.nUhMVa_recentAv{flex-shrink:0;width:24px;height:24px;font-size:11px}.nUhMVa_recentTitle{align-items:center;gap:8px;min-width:0;display:flex}.nUhMVa_recentTitle>:last-child{flex-shrink:0}.nUhMVa_recentName{flex:1;min-width:0}.nUhMVa_recentTitle .nUhMVa_nm{font-size:14px;line-height:20px}.nUhMVa_recentBottom{align-items:flex-end;gap:8px;min-width:0;display:flex}.nUhMVa_recentBottom>:last-child{flex-shrink:0;margin-left:auto}.nUhMVa_recentBottom>:not(:last-child){flex:1;min-width:0}.nUhMVa_recentDesc{color:var(--dsw-alias-label-tertiary,#8b93a1);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0;font-size:12px;line-height:16px;display:-webkit-box;overflow:hidden}.nUhMVa_recentBottom .nUhMVa_cardMore{padding:0}.nUhMVa_recentHead{justify-content:space-between;align-items:center;gap:8px;margin:10px 0 8px;padding:0 4px;display:flex}.nUhMVa_recentHead .nUhMVa_favoritesSectionHead{margin:0;padding:0;font-weight:600}.nUhMVa_recentToggle{font:inherit;color:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;margin:0;padding:0;display:inline-flex}.nUhMVa_recentToggle:hover{color:var(--dsw-alias-label-secondary,#6b7280)}.nUhMVa_recentHide.nUhMVa_recentHide{height:26px;min-height:26px;color:var(--dsw-alias-label-secondary,#6b7280);padding:0 6px}.nUhMVa_recentShow{font:inherit;color:var(--dsw-alias-label-secondary,#8b93a1);cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;margin:0 0 8px;padding:0 4px;font-size:12px;line-height:18px;display:inline-flex}.nUhMVa_recentShow:hover{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_masonry{align-items:flex-start;gap:10px;display:flex}.nUhMVa_masonryCol{flex-direction:column;flex:1;gap:10px;min-width:0;display:flex}.nUhMVa_masonry>.nUhMVa_masonryCol>*{align-self:stretch;min-width:0}@media (max-width:680px){.nUhMVa_masonry{flex-direction:column}.nUhMVa_masonryCol{width:100%}.nUhMVa_grid{grid-template-columns:minmax(0,1fr)}}.nUhMVa_swatches{border:1px solid var(--dsw-alias-border-l2,#e5e7eb);border-radius:8px;gap:0;height:34px;display:flex;overflow:hidden}.nUhMVa_themesGrid{margin-bottom:12px}.nUhMVa_swatches i{flex:1}.nUhMVa_themeToolbar{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:0 4px 12px;display:grid}.nUhMVa_themeSearch{box-sizing:border-box;width:100%;min-width:0}.nUhMVa_themeToolbarActions{justify-content:flex-end;align-items:center;gap:8px;display:flex}.nUhMVa_themeFullscreenBtn.nUhMVa_themeFullscreenBtn{width:28px;min-width:28px;padding:0}.nUhMVa_themeResultBar{min-height:24px;color:var(--dsw-alias-label-tertiary,#8b93a1);align-items:center;padding:0 4px 8px;font-size:12px;line-height:18px;display:flex}.nUhMVa_favoritesSectionHead{color:var(--dsw-alias-label-primary,#1f2328);margin:16px 0 8px;padding:0 4px;font-size:14px;font-weight:500;line-height:22px}.nUhMVa_favoritesSectionHead:first-of-type{margin-top:0}.nUhMVa_brokenPluginNotice{flex-direction:column;gap:8px;margin:0 0 8px;display:flex}.nUhMVa_brokenPluginItem{border:1px solid var(--dsw-alias-state-warn-tertiary,#b4530933);background:var(--dsw-alias-state-warn-tertiary,#b453090f);color:var(--dsw-alias-state-warn-primary,#b45309);border-radius:8px;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:10px;padding:8px 10px;font-size:12px;line-height:18px;display:flex}.nUhMVa_brokenPluginText{flex-direction:column;gap:2px;min-width:0;display:flex}.nUhMVa_favoritesStaleBar{border:1px solid var(--dsw-alias-state-warn-tertiary,#b4530933);background:var(--dsw-alias-state-warn-tertiary,#b453090f);color:var(--dsw-alias-state-warn-primary,#b45309);border-radius:8px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin:0 0 8px;padding:8px 10px;font-size:12px;line-height:18px;display:flex}.nUhMVa_favoritesStaleOnly{flex-direction:column;align-items:flex-start;gap:10px;display:flex}.nUhMVa_themeGallery{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:10px;display:grid}.nUhMVa_themeCard{border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-lg,16px);background:var(--dsw-alias-bg-layer-1,#fff);flex-direction:column;min-width:0;transition:border-color .16s cubic-bezier(.16,1,.3,1),box-shadow .16s cubic-bezier(.16,1,.3,1),transform .16s cubic-bezier(.16,1,.3,1);display:flex;overflow:hidden}.nUhMVa_themeCard:hover{border-color:var(--dsw-alias-label-dimmed,#c8ccd4);box-shadow:var(--dsw-shadow-lv1,0 4px 12px #1f232814);transform:translateY(-1px)}.nUhMVa_themeCover{aspect-ratio:16/10;border:0;border-bottom:.5px solid var(--dsw-alias-border-l3,#d9dde3);background:var(--dsw-alias-bg-layer-2,#f3f4f6);width:100%;color:var(--dsw-alias-label-secondary,#6b7280);cursor:zoom-in;border-radius:0;padding:0;display:block;position:relative;overflow:hidden}.nUhMVa_themeCover img{object-fit:contain;background:var(--dsw-alias-bg-layer-2,#f3f4f6);width:100%;height:100%;transition:transform .18s cubic-bezier(.16,1,.3,1);display:block}.nUhMVa_themeCover:hover img{transform:scale(1.012)}.nUhMVa_themeCover:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary,#4f6ef7);outline-offset:-3px}.nUhMVa_themeCoverEmpty{cursor:default;color:var(--dsw-alias-label-tertiary,#8b93a1);background:var(--dsw-alias-bg-module-platform,#f4f5f7);border-radius:var(--dsw-radius-lg,16px) 0 0 0;flex-direction:column;justify-content:center;align-items:center;gap:8px;font-size:12px;line-height:18px;display:flex}.nUhMVa_themePreviewAction,.nUhMVa_themePreviewCount{color:#fff;background:#14181fc7;border:1px solid #ffffff57;border-radius:4px;align-items:center;height:24px;padding:0 8px;font-size:11px;line-height:16px;display:inline-flex;position:absolute;bottom:8px}.nUhMVa_themePreviewAction{gap:4px;right:8px}.nUhMVa_themePreviewCount{left:8px}.nUhMVa_themeCardBody{flex-direction:column;flex:1;gap:8px;padding:14px;display:flex}.nUhMVa_themeCardHead{align-items:flex-start;gap:8px;min-width:0;display:flex}.nUhMVa_themeIdentity{flex:1;min-width:0}.nUhMVa_themeStatus,.nUhMVa_themeStatusMuted{white-space:nowrap;border-radius:4px;flex:none;align-items:center;min-height:22px;padding:0 8px;font-size:11px;font-weight:600;display:inline-flex}.nUhMVa_themeStatus{background:var(--dsw-alias-state-success-tertiary,#16a34a1a);color:var(--dsw-alias-state-success-primary,#15803d)}.nUhMVa_themeStatusMuted{background:var(--dsw-alias-bg-layer-2,#f3f4f6);color:var(--dsw-alias-label-secondary,#6b7280)}.nUhMVa_themeDescription{min-height:36px;color:var(--dsw-alias-label-tertiary,#8b93a1);-webkit-line-clamp:3;-webkit-box-orient:vertical;margin:0;font-size:12px;line-height:18px;display:-webkit-box;overflow:hidden}.nUhMVa_themeCardFooter{justify-content:space-between;align-items:center;gap:8px;margin-top:auto;padding-top:4px;display:flex}.nUhMVa_themeLifecycle{min-width:0;color:var(--dsw-alias-label-tertiary,#8b93a1);text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:18px;overflow:hidden}.nUhMVa_themeActions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;margin-left:auto;display:flex}@container (width<=900px){.nUhMVa_themeGallery{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (width<=680px){.nUhMVa_themeGallery{grid-template-columns:repeat(2,minmax(0,1fr))}}@container (width<=460px){.nUhMVa_themeGallery{grid-template-columns:minmax(0,1fr)}}.nUhMVa_exportLogBtn{white-space:nowrap;flex-shrink:0}@container (width<=560px){.nUhMVa_headTop{flex-direction:column;align-items:stretch}.nUhMVa_headTop>.nUhMVa_titleRow{margin-left:0}}@container (width<=420px){.nUhMVa_exportLogBtn{align-self:center}.nUhMVa_themeToolbar{grid-template-columns:minmax(0,1fr)}.nUhMVa_themeCardHead{flex-wrap:wrap}.nUhMVa_themeStatus,.nUhMVa_themeStatusMuted{order:3}}@container (width<=280px){.nUhMVa_themeCardFooter{flex-direction:column;align-items:flex-start}.nUhMVa_themeActions{justify-content:flex-start;width:100%;margin-left:0}}@media (max-width:560px){[role=dialog]:has([data-dsh-crate-root])>nav{display:none}[role=dialog]:has([data-dsh-crate-root])>div{flex:100%;width:100%;min-width:0}}.nUhMVa_panelHost{box-sizing:border-box;height:100%;min-height:0;padding:calc(28px + var(--dsh-frame-top-clearance,0px)) 0 0;flex-direction:column;display:flex}.nUhMVa_panelHost>.nUhMVa_root{flex:1;width:100%;min-width:0;min-height:0;container-type:normal}.nUhMVa_panelHost .nUhMVa_head,.nUhMVa_panelHost .nUhMVa_body{padding-left:max(max(16px,min(4vw,48px)),50% - 480px);padding-right:max(max(16px,min(4vw,48px)),50% - 480px);container-type:inline-size}[data-dsh-crate-plugins-tab=true]{--dshm-host-sticky-top:0px;--dshm-plugins-head-height:0px}[data-dsh-crate-plugins-tab=true]:not([data-dsh-crate-fullscreen=true]){--dshm-empty-view-height:100vh;height:auto}[data-dsh-crate-plugins-tab=true]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_body{min-height:calc(100vh - var(--dshm-host-sticky-top,0px) - var(--dshm-plugins-head-height,0px));flex-direction:column;flex:none;display:flex;overflow:visible}[data-dsh-crate-plugins-tab=true]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_body>.nUhMVa_empty{box-sizing:border-box;width:100%;max-width:none;max-height:var(--dshm-empty-view-height,100vh);flex-direction:column;flex:auto;justify-content:center;align-items:center;margin:0;padding:32px;display:flex}[data-dsh-crate-plugins-tab=true]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_top{position:fixed}[data-dsh-crate-plugins-tab=true]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_stickyHead{display:contents}[data-dsh-crate-plugins-tab=true]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_head{z-index:6;top:var(--dshm-host-sticky-top,0px);background:var(--dsw-alias-bg-base,#fff);margin:0 -4px;padding:4px 4px 6px;position:sticky}[data-dsh-crate-plugins-tab=true]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_cats{z-index:5;top:calc(var(--dshm-host-sticky-top,0px) + var(--dshm-plugins-head-height,0px));background:var(--dsw-alias-bg-base,#fff);position:sticky}[role=dialog]:has([data-dsh-crate-fullscreen=true]){border-radius:0;width:100vw;max-width:none;height:100vh;max-height:none;position:fixed;top:0;bottom:0;left:0;right:0}[data-dsh-crate-plugins-tab=true][data-dsh-crate-fullscreen=true]{z-index:60;background:var(--dsw-alias-bg-layer-1,#fff);position:fixed;top:0;bottom:0;left:0;right:0;height:100vh!important}[data-dsh-crate-surface=settings]:not([data-dsh-crate-fullscreen=true]){--dshm-head-h:0px;height:auto}[data-dsh-crate-surface=settings]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_body{flex:none;overflow:visible}[data-dsh-crate-surface=settings]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_head{z-index:6;background:var(--dsw-alias-bg-layer-2,var(--dsw-alias-bg-base,#fff));position:sticky;top:0}[data-dsh-crate-surface=settings]:not([data-dsh-crate-fullscreen=true]) .nUhMVa_stickyHead{top:calc(var(--dshm-head-h,0px) + 8px);background:var(--dsw-alias-bg-layer-2,var(--dsw-alias-bg-base,#fff))}@media (prefers-reduced-motion:reduce){.nUhMVa_themeCard,.nUhMVa_themeCover img{transition:none}.nUhMVa_themeCard:hover{transform:none}}.nUhMVa_card{background:var(--dsw-alias-settings-card-fill,var(--dsw-alias-bg-layer-1,#fff));border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-xl,20px);flex-direction:column;align-self:start;gap:10px;min-width:0;padding:12px 14px;transition:background-image .16s cubic-bezier(.16,1,.3,1);display:flex}@media (hover:hover){.nUhMVa_card:hover,.nUhMVa_recentTile:hover{background-image:linear-gradient(var(--dsw-alias-interactive-bg-hover,#2631480f),var(--dsw-alias-interactive-bg-hover,#2631480f))}.nUhMVa_installBtn:hover:not(:disabled){background:var(--dsw-alias-button-primary-fill,#0f1115);color:var(--dsw-alias-label-primary-foreground,#fff);border-color:#0000}}.nUhMVa_row1{align-items:flex-start;gap:10px;min-width:0;display:flex}.nUhMVa_cardAction{flex-shrink:0;align-items:center;display:inline-flex}.nUhMVa_installBtn.nUhMVa_installBtn{min-width:64px}.nUhMVa_av{width:16px;height:16px;color:var(--dsw-alias-label-primary,#1f2328);object-fit:cover;background:var(--dsw-alias-bg-layer-2,#f3f4f6);border-radius:50%;flex-shrink:0;place-items:center;font-size:9px;font-weight:700;display:grid}.nUhMVa_nm{text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:500;line-height:20px;overflow:hidden}.nUhMVa_nmLink{color:inherit;text-decoration:none;display:block}.nUhMVa_nmLink:hover{color:var(--dsw-alias-brand-primary,#4f6ef7);text-decoration:underline}.nUhMVa_repoMark{color:var(--dsw-alias-label-secondary,#6b7280);vertical-align:-1px;flex-shrink:0;margin-left:5px;display:inline-block}.nUhMVa_nmLink:hover .nUhMVa_repoMark{color:var(--dsw-alias-brand-primary,#4f6ef7)}.nUhMVa_byline{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;margin-top:2px;display:flex}.nUhMVa_meta{color:var(--dsw-alias-label-secondary,#9ca3af);margin-top:2px;font-size:11px}.nUhMVa_metaInline{color:var(--dsw-alias-label-secondary,#9ca3af);font-size:11px}.nUhMVa_owner{color:var(--dsw-alias-label-secondary,#5c6570);text-overflow:ellipsis;white-space:nowrap;flex:0 auto;min-width:44px;font-size:11px;line-height:18px;overflow:hidden}.nUhMVa_desc{color:var(--dsw-alias-label-tertiary,#8b93a1);margin:0;font-size:12px;line-height:18px}.nUhMVa_descClamp{-webkit-line-clamp:5;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.nUhMVa_descClamp3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.nUhMVa_descToggle{width:20px;height:16px;color:var(--dsw-alias-label-tertiary,#8b93a1);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;margin-top:2px;padding:0;display:flex}.nUhMVa_descToggle:hover{color:var(--dsw-alias-brand-primary,#4f6ef7)}.nUhMVa_foot{flex-wrap:nowrap;align-items:flex-end;gap:8px;display:flex}.nUhMVa_foot .nUhMVa_metaInline,.nUhMVa_foot .nUhMVa_src{white-space:nowrap}.nUhMVa_footTags{flex-wrap:wrap;flex:1 1 0;align-items:center;gap:8px;min-width:0;display:flex}.nUhMVa_grow{flex:1}.nUhMVa_titleRow{flex-wrap:wrap;align-items:center;gap:8px 10px;display:flex}.nUhMVa_titleActions{flex-wrap:wrap;flex:0 auto;justify-content:flex-end;align-items:center;gap:4px 10px;min-width:0;margin-left:auto;display:flex}.nUhMVa_titleActions:empty{display:none}.nUhMVa_titleActions>*{white-space:nowrap;flex-shrink:0}.nUhMVa_version{color:var(--dsw-alias-label-tertiary,#8b93a1);font-variant-numeric:tabular-nums;flex-shrink:0;font-size:12px;line-height:20px}.nUhMVa_repoLink{color:var(--dsw-alias-label-tertiary,#8b93a1);flex-shrink:0;font-size:12px;line-height:20px;text-decoration:none}.nUhMVa_repoLink:hover{color:var(--dsw-alias-brand-primary,#4f6ef7)}.nUhMVa_noteRow{flex-wrap:wrap;align-items:baseline;gap:6px;min-width:0;display:flex}.nUhMVa_desc.nUhMVa_noteRow,.nUhMVa_desc.nUhMVa_noteRow+.nUhMVa_noteRow,.nUhMVa_noteEdit+.nUhMVa_noteRow{margin-top:6px}.nUhMVa_noteMine{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_noteToggle{font:inherit;color:var(--dsw-alias-label-tertiary,#8b93a1);cursor:pointer;white-space:nowrap;background:0 0;border:none;flex-shrink:0;padding:0;font-size:11px;line-height:16px}.nUhMVa_noteToggle:hover{color:var(--dsw-alias-brand-primary,#4f6ef7);text-decoration:underline}.nUhMVa_noteEdit{flex-direction:column;gap:6px;min-width:0;margin-top:6px;display:flex}.nUhMVa_noteInput{box-sizing:border-box;width:100%;min-width:0;max-width:100%;display:flex}.nUhMVa_noteInput input{box-sizing:border-box;flex:auto;width:100%;min-width:0}.nUhMVa_noteEditBar{justify-content:flex-end;align-items:center;gap:6px;display:flex}.nUhMVa_noteCount{font-variant-numeric:tabular-nums;color:var(--dsw-alias-label-tertiary,#8b93a1);margin-right:auto;font-size:11px;line-height:16px}.nUhMVa_descTight{min-height:0}.nUhMVa_src{color:var(--dsw-alias-label-secondary,#9ca3af);font-size:11px;text-decoration:none}.nUhMVa_src:hover{color:var(--dsw-alias-brand-primary,#4f6ef7)}.nUhMVa_dot{vertical-align:2px;margin-left:5px}.nUhMVa_act{flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px;font-size:11px;display:flex}.nUhMVa_actLive{color:var(--dsw-alias-state-success-primary,#16a34a);align-items:center;gap:4px;font-weight:600;display:inline-flex}.nUhMVa_actWarn{color:var(--dsw-alias-state-warn-primary,#b45309);align-items:center;gap:4px;font-weight:600;display:inline-flex}.nUhMVa_actBroken{color:var(--dsw-alias-state-error-primary,#dc2626);align-items:center;gap:4px;font-weight:600;display:inline-flex}.nUhMVa_actWhy{color:var(--dsw-alias-label-secondary,#6b7280);margin-top:2px}.nUhMVa_loading{color:var(--dsw-alias-label-secondary,#9ca3af);flex-direction:column;align-items:center;gap:12px;padding:48px;font-size:13px;display:flex}.nUhMVa_spin{color:var(--dsw-alias-brand-primary,#4f6ef7);flex-shrink:0;animation:.8s linear infinite nUhMVa_sp;display:inline-flex}.nUhMVa_logoMark{color:var(--dsw-alias-brand-primary,#4f6ef7);flex-shrink:0;display:inline-flex}.nUhMVa_logoSweep{animation:3s linear infinite nUhMVa_dshmCrateSweep}@keyframes nUhMVa_dshmCrateSweep{0%{transform:translate(-13px)}30%,to{transform:translate(18px)}}@media (prefers-reduced-motion:reduce){.nUhMVa_logoSweep{display:none}.nUhMVa_spin{animation:1.5s ease-in-out infinite nUhMVa_dshmPlugFade}}@keyframes nUhMVa_dshmPlugFade{0%,to{opacity:1}50%{opacity:.35}}@keyframes nUhMVa_sp{to{transform:rotate(360deg)}}.nUhMVa_progress{background:var(--dsw-alias-bg-layer-2,#f3f4f6);border:1px solid var(--dsw-alias-border-l2,#e5e7eb);color:var(--dsw-alias-label-secondary,#6b7280);border-radius:8px;flex-wrap:wrap;align-items:center;gap:9px;margin:0;padding:8px 12px;font-size:12px;display:flex}.nUhMVa_bar{background:var(--dsw-alias-border-l1,#e5e7eb);border-radius:99px;width:100%;height:4px;overflow:hidden}.nUhMVa_barFill{background:var(--dsw-alias-brand-primary,#4f6ef7);border-radius:99px;height:100%;transition:width .6s}.nUhMVa_barWave{width:30%;animation:1.2s ease-in-out infinite nUhMVa_dshmSlide}@keyframes nUhMVa_dshmSlide{0%{margin-left:-30%}to{margin-left:100%}}.nUhMVa_irow .nUhMVa_progress{margin-top:8px}.nUhMVa_progress code{font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.nUhMVa_empty{color:var(--dsw-alias-label-secondary,#5c6570);text-align:center;max-width:520px;margin:0 auto;padding:56px 32px 40px;font-size:13px;line-height:20px}.nUhMVa_err{color:var(--dsw-alias-state-error-primary,#dc2626);white-space:pre-wrap;word-break:break-all;margin:8px 0;font-size:12px}.nUhMVa_cardBlocked{border-color:var(--dsw-alias-state-error-primary,#dc2626)}.nUhMVa_conflictHead{align-items:flex-start;gap:8px;display:flex}.nUhMVa_conflictIcon{color:var(--dsw-alias-state-error-primary,#dc2626);flex-shrink:0;margin-top:1px}.nUhMVa_conflictTitle{color:var(--dsw-alias-state-error-primary,#dc2626);font-size:13px;font-weight:600;line-height:18px}.nUhMVa_conflictBody{margin:0;font-size:12px;line-height:19px}.nUhMVa_roster{background:var(--dsw-alias-border-l2,#e5e7eb);border:1px solid var(--dsw-alias-border-l2,#e5e7eb);border-radius:8px;flex-direction:column;gap:1px;display:flex;overflow:hidden}.nUhMVa_rosterRow{background:var(--dsw-alias-bg-layer-1,#fff);align-items:center;gap:8px;padding:7px 10px;display:flex}.nUhMVa_rosterMain{flex-direction:column;min-width:0;display:flex}.nUhMVa_rosterName{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:12px;font-weight:600;overflow:hidden}.nUhMVa_rosterAuthor{color:var(--dsw-alias-label-secondary,#9ca3af);text-overflow:ellipsis;white-space:nowrap;font-size:10.5px;overflow:hidden}.nUhMVa_rosterTag{border-radius:4px;flex-shrink:0;margin-left:auto;padding:1px 6px;font-size:10.5px;font-weight:600}.nUhMVa_rosterTagKeep{color:var(--dsw-alias-state-success-primary,#16a34a);background:#16a34a1f}.nUhMVa_rosterTagDrop{color:var(--dsw-alias-state-error-primary,#dc2626);background:#dc26261f}.nUhMVa_rosterRowOut .nUhMVa_rosterName{text-decoration:line-through}.nUhMVa_rosterRowOut{opacity:.62}.nUhMVa_rosterSplit{background:var(--dsw-alias-border-l2,#e5e7eb);height:1px}.nUhMVa_reassure{color:var(--dsw-alias-label-secondary,#6b7280);align-items:center;gap:5px;margin:0;font-size:11.5px;line-height:17px;display:flex}.nUhMVa_reassureOk{color:var(--dsw-alias-state-success-primary,#16a34a);flex-shrink:0}.nUhMVa_conflictWhy{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:11px;line-height:17px;font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);overflow-wrap:anywhere;margin-top:2px}.nUhMVa_conflictWhyText{margin-top:5px;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,sans-serif}.nUhMVa_choices{flex-direction:column;gap:7px;display:flex}.nUhMVa_choice{text-align:left;font:inherit;cursor:pointer;background:var(--dsw-alias-bg-layer-1,#fff);border:1px solid var(--dsw-alias-border-l3,#d9dde3);border-radius:9px;align-items:flex-start;gap:9px;padding:9px 11px;display:flex}.nUhMVa_choice:has(input:disabled){cursor:default;opacity:.6}.nUhMVa_choiceOn{border-color:var(--dsw-alias-brand-primary,#4f6ef7);background:var(--dsw-alias-bg-layer-2,#f5f7ff)}.nUhMVa_choiceRadio{width:13px;height:13px;accent-color:var(--dsw-alias-brand-primary,#4f6ef7);flex-shrink:0;margin:2px 0 0}.nUhMVa_choiceMain{flex-direction:column;gap:3px;min-width:0;display:flex}.nUhMVa_choiceTitle{font-size:12px;font-weight:600;line-height:17px}.nUhMVa_choiceNote{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:11px;line-height:16px}.nUhMVa_choiceSafe{color:var(--dsw-alias-state-success-primary,#16a34a)}.nUhMVa_stateTag{white-space:nowrap;background:var(--dsw-alias-bg-layer-2,#f3f4f6);min-height:20px;color:var(--dsw-alias-label-secondary,#6b7280);border-radius:5px;flex-shrink:0;align-items:center;gap:5px;padding:1px 7px;font-size:11px;line-height:16px;display:inline-flex}.nUhMVa_stateTag[data-on=true]{color:var(--dsw-alias-state-success-primary,#16a34a);background:color-mix(in srgb, var(--dsw-alias-state-success-primary,#16a34a) 10%, transparent)}.nUhMVa_stateDot{background:var(--dsw-alias-label-tertiary,#8b93a1);border-radius:999px;flex:none;width:6px;height:6px}.nUhMVa_stateDot[data-on=true]{background:var(--dsw-alias-state-success-primary,#16a34a)}.nUhMVa_metaTag{text-overflow:ellipsis;white-space:nowrap;background:var(--dsw-alias-bg-layer-2,#f3f4f6);min-width:0;max-width:100%;min-height:20px;color:var(--dsw-alias-label-tertiary,#8b93a1);border-radius:5px;flex-shrink:1;padding:1px 7px;font-size:11px;line-height:18px;display:inline-block;overflow:hidden}.nUhMVa_metaTagOk{color:var(--dsw-alias-state-success-primary,#16a34a);background:color-mix(in srgb, var(--dsw-alias-state-success-primary,#16a34a) 10%, transparent)}.nUhMVa_irow{transition:background-image .16s cubic-bezier(.16,1,.3,1)}.nUhMVa_irow:hover{background-image:linear-gradient(var(--dsw-alias-interactive-bg-hover,#2631480f),var(--dsw-alias-interactive-bg-hover,#2631480f))}.nUhMVa_irowHead{align-items:flex-start;gap:8px;min-width:0;display:flex}.nUhMVa_irowHead .nUhMVa_irowName{flex:1 1 0;min-width:0}.nUhMVa_irowMenu{flex-shrink:0;margin-top:-4px;margin-left:auto;margin-right:-6px}.nUhMVa_irowMeta{color:var(--dsw-alias-label-secondary,#6b7280);margin-top:2px;font-size:12px;line-height:18px}.nUhMVa_irowPath{align-items:center;gap:6px;min-width:0;margin-top:6px;display:flex}.nUhMVa_irowPath .nUhMVa_spec{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.nUhMVa_irowPathIcon,.nUhMVa_irowStatusIcon{color:var(--dsw-alias-label-tertiary,#8b93a1);flex-shrink:0;display:inline-flex}.nUhMVa_irowPathCopy{flex-shrink:0;align-items:center;gap:4px;margin-left:auto;display:inline-flex}.nUhMVa_irowPath .nUhMVa_confirmCopy{width:20px;height:20px;color:var(--dsw-alias-label-tertiary,#8b93a1)}.nUhMVa_irowPath .nUhMVa_confirmCopy:hover{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_irowPath .nUhMVa_confirmCopied{color:var(--dsw-alias-label-secondary,#6b7280);order:1;font-size:11px}.nUhMVa_irowDesc{flex:100%;min-width:0}.nUhMVa_irowStatus{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;margin-top:8px;font-size:12px;line-height:18px;display:flex}.nUhMVa_irowStatus+.nUhMVa_irowStatus{margin-top:4px}.nUhMVa_irowStatusPart{align-items:baseline;gap:6px;display:inline-flex}.nUhMVa_irowStatus .nUhMVa_notesLink{margin:0;display:inline}.nUhMVa_irowStatus .nUhMVa_metaInline{font-size:12px}.nUhMVa_irowStatusAction{margin-left:auto;display:inline-flex}.nUhMVa_irowStatusAction .nUhMVa_noteToggle{color:var(--dsw-alias-label-secondary,#6b7280);font-size:12px;line-height:18px}.nUhMVa_irowStatusAction .nUhMVa_noteToggle:hover{color:var(--dsw-alias-label-primary,#1f2328);text-decoration:none}.nUhMVa_descMore{cursor:pointer;font:inherit;color:var(--dsw-alias-label-secondary,#6b7280);background:0 0;border:none;align-items:center;gap:2px;margin-top:4px;padding:0;font-size:12px;line-height:18px;display:inline-flex}.nUhMVa_descMore:hover{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_noteAdd{cursor:pointer;font:inherit;color:var(--dsw-alias-label-secondary,#6b7280);white-space:nowrap;background:0 0;border:none;align-items:center;gap:6px;margin-top:4px;padding:0;font-size:12px;line-height:18px;display:inline-flex}.nUhMVa_noteAdd:hover,.nUhMVa_irowStatusFact{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_irowStatusSep{color:var(--dsw-alias-label-tertiary,#8b93a1)}.nUhMVa_nameLink{color:inherit;text-decoration:none}.nUhMVa_irowName{text-overflow:clip;flex-wrap:wrap;align-items:baseline;gap:6px;min-width:0;display:flex;overflow:visible}.nUhMVa_irowNameText{overflow-wrap:anywhere;white-space:normal;min-width:0}.nUhMVa_irowName>.nUhMVa_owner{flex:none}.nUhMVa_nameLink:hover{color:var(--dsw-alias-brand-primary,#4f6ef7);text-decoration:underline}.nUhMVa_opWrap{flex-shrink:0;margin-bottom:6px;display:inline-flex}.nUhMVa_opEntry{font:inherit;cursor:pointer;white-space:nowrap;height:28px;color:var(--dsw-alias-label-primary,#1f2328);background:var(--dsw-alias-bg-layer-1,#fff);border:.5px solid var(--dsw-alias-border-l3,#d9dde3);border-radius:8px;align-items:center;gap:5px;padding:0 7px 0 10px;font-size:12px;transition:background-color .12s,color .12s,border-color .12s;display:inline-flex;position:relative}.nUhMVa_opEntryQuiet{background:var(--dsw-alias-bg-module-platform,#f4f5f7);color:var(--dsw-alias-label-secondary,#5c6570)}.nUhMVa_opEntry:hover{color:var(--dsw-alias-label-primary,#1f2328);border-color:var(--dsw-alias-border-l2,#e5e7eb);background:var(--dsw-alias-bg-module-platform,#f4f5f7)}.nUhMVa_opChevron{color:var(--dsw-alias-label-tertiary,#8b93a1);flex-shrink:0;transition:transform .14s cubic-bezier(.16,1,.3,1);display:inline-flex}.nUhMVa_opChevronOpen{transform:rotate(180deg)}.nUhMVa_opEntryAlert{border-color:var(--dsw-alias-state-error-primary,#dc2626);color:var(--dsw-alias-state-error-primary,#dc2626)}.nUhMVa_opDot{background:var(--dsw-alias-state-error-primary,#dc2626);border-radius:99px;width:8px;height:8px;position:absolute;top:-3px;right:-3px}.nUhMVa_opPanel{z-index:40;background:var(--dsw-alias-bg-layer-1,#fff);border:1px solid var(--dsw-alias-border-l3,#d9dde3);border-radius:12px;width:460px;max-width:100%;max-height:70vh;position:absolute;top:calc(100% + 6px);right:0;overflow-y:auto;box-shadow:0 20px 52px #00000047}.nUhMVa_opHead{border-bottom:1px solid var(--dsw-alias-border-l2,#e5e7eb);align-items:center;gap:8px;padding:9px 14px;display:flex}.nUhMVa_opPanelTitle{font-size:12.5px;font-weight:600}.nUhMVa_opCloseBtn.nUhMVa_opCloseBtn{min-width:0;color:var(--dsw-alias-label-secondary,#6b7280);padding:0 6px}.nUhMVa_opAggregate{border-bottom:1px solid var(--dsw-alias-border-l2,#e5e7eb);background:var(--dsw-alias-bg-layer-2,#f7f8fa);padding:9px 14px}.nUhMVa_opAggregateTop{font-variant-numeric:tabular-nums;font-size:12px;font-weight:600}.nUhMVa_opAggregateHint{color:var(--dsw-alias-label-tertiary,#8b93a1);margin-top:4px;font-size:10.5px}.nUhMVa_opRow{border-bottom:1px solid var(--dsw-alias-border-l2,#e5e7eb);align-items:flex-start;gap:9px;padding:9px 14px;display:flex}.nUhMVa_opRow:last-child{border-bottom:none}.nUhMVa_opRowAlert{background:#dc26260f}.nUhMVa_opIcon{flex-shrink:0;place-items:center;width:14px;margin-top:1px;display:grid}.nUhMVa_opQueuedIcon{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:12px}.nUhMVa_opMain{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.nUhMVa_opTop{align-items:baseline;gap:6px;min-width:0;display:flex}.nUhMVa_opVerb{color:var(--dsw-alias-label-secondary,#6b7280);flex-shrink:0;font-size:12px}.nUhMVa_opName{text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:600;overflow:hidden}.nUhMVa_opStatus{color:var(--dsw-alias-label-tertiary,#8b93a1);overflow-wrap:anywhere;font-size:10.5px;line-height:16px}.nUhMVa_opStatusBad{color:var(--dsw-alias-state-error-primary,#dc2626)}.nUhMVa_opAgents{color:var(--dsw-alias-label-tertiary,#8b93a1);margin:2px 0 0;font-size:10.5px;line-height:16px}.nUhMVa_opAgentsSummary{cursor:pointer;color:var(--dsw-alias-label-secondary,#5c6570);font-size:10.5px;line-height:16px;list-style:none}.nUhMVa_opAgentsSummary::-webkit-details-marker{display:none}.nUhMVa_opAgentsSummary:before{content:\"▸\";width:10px;transition:transform .12s cubic-bezier(.16,1,.3,1);display:inline-block}.nUhMVa_opAgents[open]>.nUhMVa_opAgentsSummary:before{transform:rotate(90deg)}.nUhMVa_opAgentsList{flex-direction:column;gap:1px;margin:2px 0 0;padding:0 0 0 12px;list-style:none;display:flex}.nUhMVa_opAgentsId{font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);white-space:nowrap;text-overflow:ellipsis;font-size:10.5px;line-height:15px;overflow:hidden}.nUhMVa_opActions{flex-shrink:0;align-items:center;gap:6px;margin-top:1px;display:flex}.nUhMVa_opDecision{border-top:1px dashed var(--dsw-alias-border-l2,#e5e7eb);flex-direction:column;gap:8px;margin-top:8px;padding-top:8px;display:flex}.nUhMVa_opDecisionFoot{align-items:center;gap:8px;display:flex}.nUhMVa_conflictDetailsToggle{font:inherit;cursor:pointer;color:var(--dsw-alias-label-tertiary,#8b93a1);background:0 0;border:none;align-items:center;gap:4px;padding:2px 0;font-size:11px;display:inline-flex}.nUhMVa_conflictDetailsToggle:hover{color:var(--dsw-alias-label-secondary,#6b7280)}.nUhMVa_opEmpty{text-align:center;color:var(--dsw-alias-label-secondary,#6b7280);padding:30px 14px;font-size:12px}.nUhMVa_opEmptyHint{color:var(--dsw-alias-label-tertiary,#8b93a1);margin-top:4px;font-size:11px}.nUhMVa_cardBlockedMark{font:inherit;cursor:pointer;color:var(--dsw-alias-state-error-primary,#dc2626);border:1px solid var(--dsw-alias-state-error-primary,#dc2626);background:#dc262614;border-radius:7px;align-items:center;gap:5px;padding:4px 9px;font-size:11px;display:inline-flex}.nUhMVa_dangerBtn.nUhMVa_dangerBtn{color:var(--dsw-alias-state-error-primary,#dc2626);border-color:var(--dsw-alias-state-error-primary,#dc2626)}.nUhMVa_dangerBtn.nUhMVa_dangerBtn:hover:not(:disabled){background:var(--dsw-alias-state-error-primary,#dc2626);color:#fff}.nUhMVa_dangerArmed.nUhMVa_dangerArmed{background:var(--dsw-alias-state-error-primary,#dc2626);border-color:var(--dsw-alias-state-error-primary,#dc2626);color:var(--dsw-alias-label-primary-foreground,#fff)}.nUhMVa_retryBtn{margin-top:4px}.nUhMVa_irow{background:var(--dsw-alias-settings-card-fill,var(--dsw-alias-bg-layer-1,#fff));border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-xl,20px);flex-direction:column;gap:10px;min-width:0;padding:12px 14px;display:flex}.nUhMVa_irowActions{flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:8px;min-width:0;display:flex}.nUhMVa_irowTrailing{flex-wrap:nowrap;flex-shrink:0;align-items:center;gap:8px;min-width:0;display:inline-flex}.nUhMVa_irowTrailing .nUhMVa_metaTag{flex-shrink:1;min-width:0}.nUhMVa_irowMissing{filter:grayscale();opacity:.5}.nUhMVa_irow>.nUhMVa_src,.nUhMVa_irow>.nUhMVa_owner,.nUhMVa_irow button{white-space:nowrap;flex-shrink:0}.nUhMVa_tabSearchRow{align-items:center;gap:8px;padding:0 4px 10px;display:flex}.nUhMVa_tabSearch{flex:1;min-width:0}.nUhMVa_groupBulkActions{flex-wrap:wrap;align-items:center;gap:8px;padding:0 4px 10px;display:flex}.nUhMVa_caps{flex-wrap:wrap;align-items:center;gap:4px;min-width:0;padding:0 2px 6px;font-size:11px;line-height:1.5;display:flex}.nUhMVa_capsTitle{color:var(--dsw-alias-label-secondary,#8b949e);cursor:help}.nUhMVa_capChip{border:1px solid var(--dsw-alias-border-l2,#30363d);color:var(--dsw-alias-label-primary,#c9d1d9);white-space:nowrap;border-radius:999px;padding:0 6px}.nUhMVa_capMuted{border:1px dashed var(--dsw-alias-border-l2,#30363d);color:var(--dsw-alias-label-secondary,#8b949e);white-space:nowrap;border-radius:999px;padding:0 6px}.nUhMVa_capCaveat{color:var(--dsw-alias-label-tertiary,#8b93a1);align-items:baseline;gap:12px;margin:6px 0 0;font-size:11px;line-height:16px;display:flex}.nUhMVa_capCaveatNote{min-width:0}.nUhMVa_capCaveatAt{white-space:nowrap;flex:none;margin-left:auto}.nUhMVa_searchField{box-sizing:border-box;min-width:0;position:relative}.nUhMVa_searchInput.nUhMVa_searchInput{box-sizing:border-box;width:100%;min-width:0;padding-right:34px}.nUhMVa_searchClear{width:24px;height:24px;color:var(--dsw-alias-label-secondary,#59636e);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:4px;justify-content:center;align-items:center;padding:0;font-size:20px;line-height:1;display:flex;position:absolute;top:50%;right:5px;transform:translateY(-50%)}.nUhMVa_searchClear:hover{background:var(--dsw-alias-bg-layer-2,#f3f4f6);color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_searchClear:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary,#4f6ef7);outline-offset:1px}.nUhMVa_spec{color:var(--dsw-alias-label-secondary,#9ca3af);font-size:11px;font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);overflow-wrap:anywhere;min-width:0}.nUhMVa_specTag{white-space:nowrap;border-radius:4px;flex-shrink:0;align-items:center;height:16px;padding:0 5px;font-size:10px;font-weight:600;display:inline-flex}.nUhMVa_specTagGit{color:var(--dsw-alias-state-business-primary,#0b7285);background:#12a3c41f}.nUhMVa_specTagFile{color:var(--dsw-alias-state-warn-primary,#b07d1b);background:#f0b42924}.nUhMVa_backupCheckList .nUhMVa_grow{white-space:nowrap;text-overflow:ellipsis;flex:70%;min-width:0;overflow:hidden}.nUhMVa_backupCheckList .nUhMVa_spec{text-align:right;white-space:nowrap;text-overflow:ellipsis;flex:0 30%;max-width:30%;overflow:hidden}.nUhMVa_staleAction{word-break:normal;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px;display:flex}.nUhMVa_pct{color:var(--dsw-alias-label-secondary,#6b7280);flex-shrink:0;font-size:11px;font-weight:600}.nUhMVa_pager{flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:8px;margin:16px 0 4px;display:flex}.nUhMVa_loadMore{justify-content:center;margin:16px 0 4px;display:flex}.nUhMVa_pagerPages{flex-wrap:nowrap;flex:1;justify-content:center;align-items:center;gap:4px;min-width:0;display:flex}.nUhMVa_pagerMeta{flex-wrap:nowrap;flex-shrink:0;align-items:center;gap:6px;display:flex}.nUhMVa_pagerPages button,.nUhMVa_pagerMeta button{min-width:0;padding:0 8px}.nUhMVa_pageEllipsis{color:var(--dsw-alias-label-secondary,#9ca3af);padding:0 1px;font-size:12px}.nUhMVa_pageInfo{color:var(--dsw-alias-label-secondary,#6b7280);white-space:nowrap;font-size:12px}@container (width<=544px){.nUhMVa_pager{flex-wrap:wrap;justify-content:center;gap:8px}.nUhMVa_pagerPages{flex-basis:100%}}.nUhMVa_depBadge{border:1px solid var(--dsw-alias-state-warn-primary,#b45309);color:var(--dsw-alias-state-warn-primary,#b45309);white-space:nowrap;border-radius:4px;flex-shrink:0;margin-left:6px;padding:1px 6px;font-size:11px;font-weight:600;line-height:16px}.nUhMVa_deprecate{color:var(--dsw-alias-state-warn-primary,#b45309);background:var(--dsw-alias-bg-layer-2,#fdf3e3);border:1px solid var(--dsw-alias-border-l2,#f3e3c3);border-radius:8px;margin:0;padding:8px 10px;font-size:12px;line-height:18px}.nUhMVa_deprecate a{color:var(--dsw-alias-state-warn-primary,#b45309);text-decoration:underline}.nUhMVa_deprecate .nUhMVa_src{margin-left:8px}.nUhMVa_depLine{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.nUhMVa_switch{border:1px solid var(--dsw-alias-border-l2,#d9dde3);background:var(--dsw-alias-bg-layer-2,#e5e7eb);cursor:pointer;border-radius:99px;flex-shrink:0;width:38px;height:22px;padding:0;transition:background .15s,border-color .15s;position:relative}.nUhMVa_switchOn{background:var(--dsw-alias-state-success-primary,#16a34a);border-color:var(--dsw-alias-state-success-primary,#16a34a)}.nUhMVa_switchMixed{background:var(--dsw-alias-state-warn-primary,#b45309);border-color:var(--dsw-alias-state-warn-primary,#b45309)}.nUhMVa_switchKnob{background:#fff;border-radius:99px;width:16px;height:16px;transition:left .15s;position:absolute;top:2px;left:2px;box-shadow:0 1px 2px #00000040}.nUhMVa_switchOn .nUhMVa_switchKnob,.nUhMVa_switchMixed .nUhMVa_switchKnob{left:18px}.nUhMVa_switch:disabled{opacity:.5;cursor:default}.nUhMVa_viewBar{border-radius:var(--dsw-radius-md,12px);background:var(--dsw-alias-bg-module-platform,#f4f5f7);border:none;align-items:center;gap:2px;width:fit-content;margin-bottom:12px;padding:3px;display:flex}.nUhMVa_viewBtn{font:inherit;color:var(--dsw-alias-label-secondary,#5c6570);border-radius:var(--dsw-radius-sm,8px);cursor:pointer;white-space:nowrap;background:0 0;border:none;height:26px;padding:0 10px;font-size:12px;line-height:18px;transition:background-color .12s,color .12s}.nUhMVa_viewBtn:hover{color:var(--dsw-alias-brand-primary,#4f6ef7)}.nUhMVa_viewOn{background:var(--dsw-alias-bg-layer-3,#fff);color:var(--dsw-alias-label-primary,#1f2328);box-shadow:0 0 0 .5px var(--dsw-alias-border-l3,#0000001f);font-weight:600}.nUhMVa_groupRow{background:var(--dsw-alias-settings-card-fill,var(--dsw-alias-bg-layer-1,#fff));border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-xl,20px);margin-bottom:10px;padding:12px 14px}.nUhMVa_groupHead{flex-wrap:wrap;align-items:center;gap:10px;min-width:0;display:flex}.nUhMVa_groupCollapse{width:22px;height:22px;color:var(--dsw-alias-label-secondary,#6b7280);cursor:pointer;background:0 0;border:none;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:inline-flex}.nUhMVa_groupCollapse:hover{background:var(--dsw-alias-bg-layer-2,#eef0f4);color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_groupTitle{flex-direction:column;flex:auto;gap:1px;min-width:0;display:flex}.nUhMVa_groupTitle .nUhMVa_groupHint{margin-top:0}.nUhMVa_groupName{text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;line-height:20px;overflow:hidden}.nUhMVa_groupMeta{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:11px;line-height:16px}.nUhMVa_groupActions{flex-wrap:wrap;flex-shrink:0;align-items:center;gap:6px;margin-left:auto;display:flex}.nUhMVa_groupMembers{flex-direction:column;gap:6px;margin-top:10px;display:flex}.nUhMVa_groupMember{background:var(--dsw-alias-bg-layer-2,#f7f8fa);border-radius:8px;align-items:center;gap:8px;min-width:0;padding:6px 8px;font-size:12px;line-height:18px;display:flex}.nUhMVa_groupMember .nUhMVa_nm{flex:1;min-width:0;font-size:12px}.nUhMVa_memberName{flex:auto;align-items:center;gap:6px;min-width:0;display:flex}.nUhMVa_memberName .nUhMVa_nm{flex:0 auto;min-width:0}.nUhMVa_memberNameWithDesc{flex:0 auto;max-width:42%}.nUhMVa_memberKind{color:var(--dsw-alias-label-tertiary,#8b93a1);white-space:nowrap;flex:none;font-size:11px;line-height:16px}.nUhMVa_themeSlot{box-shadow:inset 0 -1px 0 var(--dsw-alias-border-l2,#e5e7eb);border-radius:8px 8px 0 0;margin-bottom:4px}.nUhMVa_groupMember>.nUhMVa_switch,.nUhMVa_groupMember>button{flex-shrink:0}.nUhMVa_groupMemberAction{flex:none;margin-left:auto}.nUhMVa_groupMemberAction button{white-space:nowrap}.nUhMVa_groupAddPanel{border-top:1px dashed var(--dsw-alias-border-l2,#e5e7eb);flex-direction:column;gap:6px;margin-top:10px;padding-top:10px;display:flex}.nUhMVa_groupAddModalBody{flex-direction:column;gap:10px;min-width:0;display:flex}.nUhMVa_groupAddFilters{flex-wrap:wrap;gap:6px;display:flex}.nUhMVa_groupAddModalList{flex-direction:column;gap:6px;max-height:min(50vh,360px);padding-right:2px;display:flex;overflow-y:auto}.nUhMVa_groupAddModalHint{color:var(--dsw-alias-label-secondary,#6b7280);margin:0;font-size:12px;line-height:18px}.nUhMVa_groupAddPick{background:var(--dsw-alias-bg-layer-2,#f7f8fa);cursor:pointer;border-radius:8px;align-items:center;gap:8px;min-width:0;padding:8px 10px;display:flex}.nUhMVa_groupAddPick:hover{background:var(--dsw-alias-bg-layer-2,#eef0f4)}.nUhMVa_groupAddPick input{flex-shrink:0;margin:0}.nUhMVa_groupAddPick .nUhMVa_nm{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:12px;overflow:hidden}.nUhMVa_groupAddFooterMeta{color:var(--dsw-alias-label-secondary,#6b7280);align-self:center;margin-right:auto;font-size:12px;line-height:18px}.nUhMVa_groupOrgHint{color:var(--dsw-alias-label-tertiary,#8b93a1);margin:4px 0 0;font-size:11px;line-height:16px}.nUhMVa_groupRenameField{flex-direction:column;gap:6px;min-width:min(100%,320px);display:flex}.nUhMVa_groupRenameField label{color:var(--dsw-alias-label-secondary,#6b7280);font-size:12px;line-height:18px}.nUhMVa_groupRenameField .nUhMVa_inlineInput{width:100%}.nUhMVa_groupCreate{align-items:center;gap:8px;margin-bottom:10px;display:flex}.nUhMVa_groupCreateInline{flex-shrink:0;align-items:center;gap:8px;display:flex}.nUhMVa_groupCreateInline .nUhMVa_inlineInput{flex:none;width:160px}.nUhMVa_inlineInput{flex:1;min-width:120px}.nUhMVa_ungroupedRow{flex-wrap:nowrap}.nUhMVa_ungroupedRow>.nUhMVa_nm{flex:0 auto;max-width:42%;font-size:12px;line-height:18px}.nUhMVa_ungroupedState{flex:0 auto;align-items:center;min-width:0;max-width:46%;margin:0;display:inline-flex}.nUhMVa_ungroupedState>span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.nUhMVa_ungroupedDesc{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--dsw-alias-label-tertiary,#8b93a1);flex:1 1 0;font-size:12px;line-height:18px;overflow:hidden}.nUhMVa_ungroupedDesc.nUhMVa_noteMine{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_groupHint{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:11px}.nUhMVa_sect{color:var(--dsw-alias-label-secondary,#6b7280);margin:14px 2px 8px;font-size:12px;font-weight:600}.nUhMVa_sectAction{color:var(--dsw-alias-label-secondary,#6b7280);align-items:center;gap:8px;margin:14px 2px 8px;font-size:12px;font-weight:600;display:flex}.nUhMVa_backupGrid{grid-template-columns:minmax(0,1fr);gap:12px;display:grid}.nUhMVa_backupCard{background:var(--dsw-alias-settings-card-fill,var(--dsw-alias-bg-layer-1,#fff));border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-xl,20px);flex-direction:column;gap:10px;padding:16px;display:flex}.nUhMVa_backupCard h3{margin:0;font-size:14px}.nUhMVa_backupCard p{color:var(--dsw-alias-label-secondary,#6b7280);margin:0;font-size:12px;line-height:18px}.nUhMVa_backupActions{flex-wrap:wrap;gap:8px;display:flex;position:relative}.nUhMVa_hiddenFile{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.nUhMVa_backupInput{box-sizing:border-box;width:100%}.nUhMVa_backupCheck{cursor:pointer;align-items:center;gap:6px;font-size:12px;display:flex}.nUhMVa_backupWarn{margin:0;font-size:12px;line-height:18px;color:var(--dsw-alias-state-warn-primary,#b45309)!important}.nUhMVa_backupMessage{color:var(--dsw-alias-label-secondary,#6b7280);grid-column:1/-1;font-size:12px}.nUhMVa_backupCheckList{flex-direction:column;gap:6px;max-height:260px;margin:10px 0 4px;padding-right:4px;display:flex;overflow-y:auto}.nUhMVa_backupCheckList .nUhMVa_backupCheck{justify-content:space-between;gap:8px}.nUhMVa_diagPage{flex-direction:column;gap:12px;height:100%;min-height:0;display:flex;overflow-y:auto}.nUhMVa_panelHost .nUhMVa_diagPage{height:auto;overflow:visible}.nUhMVa_diagSummary{background:var(--dsw-alias-settings-card-fill,var(--dsw-alias-bg-layer-1,#fff));border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-lg,16px);flex-wrap:wrap;align-items:center;gap:12px;padding:10px 14px;font-size:12px;display:flex}.nUhMVa_diagSummaryItem{color:var(--dsw-alias-label-secondary,#6b7280);white-space:nowrap;align-items:center;gap:6px;display:inline-flex}.nUhMVa_diagSummaryMeta{color:var(--dsw-alias-label-tertiary,#9ca3af);font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);text-overflow:ellipsis;white-space:nowrap;max-width:320px;font-size:11px;overflow:hidden}.nUhMVa_diagSection{background:var(--dsw-alias-settings-card-fill,var(--dsw-alias-bg-layer-1,#fff));border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));border-radius:var(--dsw-radius-lg,16px);flex-direction:column;gap:8px;padding:12px 14px;display:flex}.nUhMVa_diagSection h3{color:var(--dsw-alias-label-primary,#1f2328);margin:0;font-size:13px;font-weight:600}.nUhMVa_diagCount{color:var(--dsw-alias-label-tertiary,#9ca3af);font-size:11px;font-weight:400}.nUhMVa_diagEmpty{color:var(--dsw-alias-label-secondary,#9ca3af);padding:8px 0;font-size:12px}.nUhMVa_diagBundle{border-top:1px solid var(--dsw-alias-border-l2,#f0f1f3);flex-direction:column;gap:6px;padding-top:8px;display:flex}.nUhMVa_diagBundle:first-of-type{border-top:none;padding-top:0}.nUhMVa_diagRow{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;font-size:12px;line-height:18px;display:flex}.nUhMVa_diagMeta{align-items:baseline;gap:8px;min-width:0;font-size:12px;display:flex}.nUhMVa_diagKey{color:var(--dsw-alias-label-tertiary,#9ca3af);flex-shrink:0;min-width:64px;font-size:11px}.nUhMVa_diagVal{color:var(--dsw-alias-label-primary,#1f2328);font-size:12px;font-weight:500;font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);overflow-wrap:anywhere;min-width:0}.nUhMVa_diagIndex{background:var(--dsw-alias-bg-layer-2,#f3f4f6);min-width:18px;height:18px;color:var(--dsw-alias-label-secondary,#6b7280);border-radius:9px;flex-shrink:0;justify-content:center;align-items:center;font-size:11px;font-weight:600;display:inline-flex}.nUhMVa_diagArrow{color:var(--dsw-alias-label-tertiary,#9ca3af);flex-shrink:0;font-size:12px}.nUhMVa_diagBadgeOfficial{background:var(--dsw-alias-button-primary-fill,var(--dsw-alias-brand-primary,#4f6ef7));height:18px;color:var(--dsw-alias-label-primary-foreground,#fff);border-radius:9px;flex-shrink:0;align-items:center;padding:0 8px;font-size:11px;font-weight:600;display:inline-flex}.nUhMVa_diagBadgeCommunity{background:var(--dsw-alias-bg-layer-2,#f3f4f6);height:18px;color:var(--dsw-alias-label-secondary,#6b7280);border-radius:9px;flex-shrink:0;align-items:center;padding:0 8px;font-size:11px;display:inline-flex}.nUhMVa_diagBadgeShadow{background:var(--dsw-alias-state-error-primary,#dc2626);height:18px;color:var(--dsw-alias-label-primary-foreground,#fff);border-radius:9px;flex-shrink:0;align-items:center;padding:0 8px;font-size:11px;font-weight:600;display:inline-flex}.nUhMVa_diagBadgeWarn{background:var(--dsw-alias-state-warn-primary,#b45309);height:18px;color:var(--dsw-alias-label-primary-foreground,#fff);white-space:nowrap;border-radius:9px;flex-shrink:0;align-items:center;padding:0 8px;font-size:11px;font-weight:600;display:inline-flex}.nUhMVa_diagBadgeInfo{background:var(--dsw-alias-bg-layer-2,#f3f4f6);height:18px;color:var(--dsw-alias-label-secondary,#6b7280);white-space:nowrap;border-radius:9px;flex-shrink:0;align-items:center;padding:0 8px;font-size:11px;display:inline-flex}.nUhMVa_diagList{flex-direction:column;gap:6px;display:flex}.nUhMVa_sectionOverview{color:var(--dsw-alias-label-tertiary,#8b93a1);text-overflow:ellipsis;white-space:nowrap;max-width:100%;padding:2px 0 6px;font-size:12px;line-height:18px;overflow:hidden}.nUhMVa_diagAlert{color:var(--dsw-alias-state-warn-primary,#b45309)}.nUhMVa_ovRow{background:var(--dsw-alias-bg-layer-2,#f7f8fa);border-radius:8px;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;padding:6px 10px;font-size:12px;line-height:18px;display:flex}.nUhMVa_ovArrow{color:var(--dsw-alias-label-tertiary,#9ca3af);flex-shrink:0;font-size:12px}.nUhMVa_ovByTag{background:var(--dsw-alias-button-primary-fill,var(--dsw-alias-brand-primary,#4f6ef7));height:18px;color:var(--dsw-alias-label-primary-foreground,#fff);text-overflow:ellipsis;white-space:nowrap;border-radius:9px;flex-shrink:0;align-items:center;max-width:260px;padding:0 8px;font-size:11px;font-weight:600;display:inline-flex;overflow:hidden}.nUhMVa_ovFrom{color:var(--dsw-alias-label-secondary,#6b7280);text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:12px;overflow:hidden}.nUhMVa_orphRow{background:var(--dsw-alias-bg-layer-2,#f7f8fa);border-radius:8px;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;padding:6px 10px;font-size:12px;line-height:18px;display:flex}.nUhMVa_orphBadge{background:var(--dsw-alias-state-warn-primary,#b45309);height:18px;color:var(--dsw-alias-label-primary-foreground,#fff);white-space:nowrap;border-radius:9px;flex-shrink:0;align-items:center;padding:0 8px;font-size:11px;font-weight:600;display:inline-flex}.nUhMVa_dragHandle{width:20px;height:20px;color:var(--dsw-alias-label-tertiary,#9ca3af);cursor:grab;-webkit-user-select:none;user-select:none;flex-shrink:0;justify-content:center;align-items:center;font-size:12px;line-height:20px;display:inline-flex}.nUhMVa_dragOver{outline:2px dashed var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:2px;background:var(--dsw-alias-bg-layer-2,#f0f2f8);border-radius:8px}.nUhMVa_dragging{opacity:.45;background:var(--dsw-alias-bg-layer-2,#f3f4f6)}.nUhMVa_collapseHead{font:inherit;color:var(--dsw-alias-label-primary,#1f2328);cursor:pointer;text-align:left;background:0 0;border:none;align-items:center;gap:8px;width:100%;padding:0;font-size:13px;font-weight:600;display:flex}.nUhMVa_collapseIcon{color:var(--dsw-alias-label-secondary,#6b7280);flex-shrink:0;display:inline-flex}.nUhMVa_collapseTitle{flex:0 auto;min-width:0}.nUhMVa_collapseHead .nUhMVa_diagCount{flex-shrink:0}.nUhMVa_collapseBody{border-top:1px solid var(--dsw-alias-border-l2,#f0f1f3);overflow-wrap:anywhere;flex-direction:column;gap:10px;min-width:0;margin-top:8px;padding-top:10px;display:flex}.nUhMVa_orderPanel{flex-direction:column;gap:10px;min-width:0;display:flex}.nUhMVa_panelNote{color:var(--dsw-alias-label-secondary,#6b7280);margin:0;font-size:12px;line-height:18px}.nUhMVa_panelActions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.nUhMVa_presetList{flex-direction:column;gap:6px;min-width:0;display:flex}.nUhMVa_presetRow{background:var(--dsw-alias-bg-layer-2,#f7f8fa);border-radius:8px;flex-direction:column;align-items:stretch;gap:6px;min-width:0;max-width:100%;padding:8px 10px;font-size:12px;line-height:18px;display:flex}.nUhMVa_presetName{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;font-weight:600;overflow:hidden}.nUhMVa_snapList{flex-direction:column;gap:6px;min-width:0;display:flex}.nUhMVa_snapRow{background:var(--dsw-alias-bg-layer-2,#f7f8fa);border-radius:8px;flex-direction:column;align-items:stretch;gap:8px;padding:10px 12px;font-size:12px;line-height:18px;display:flex}.nUhMVa_snapMeta{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;display:flex}.nUhMVa_snapConfirmText{color:var(--dsw-alias-state-warn-primary,#b45309);margin:0;font-size:12px;line-height:18px}.nUhMVa_confirmRow{flex-wrap:wrap;align-items:center;gap:6px;display:inline-flex}.nUhMVa_fixFallback{flex-direction:column;gap:6px;margin:8px 0;display:flex}.nUhMVa_fixFallbackText,.nUhMVa_envEditor{box-sizing:border-box;width:100%;font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);color:var(--dsw-alias-label-primary,#1f2328);background:var(--dsw-alias-bg-layer-2,#f3f4f6);border:1px solid var(--dsw-alias-border-l2,#e5e7eb);resize:vertical;white-space:pre-wrap;word-break:break-all;border-radius:6px;padding:8px 10px;font-size:11px;line-height:16px}.nUhMVa_setCard{border:.5px solid var(--dsw-alias-settings-card-stroke,var(--dsw-alias-border-l4,#00000029));background:var(--dsw-alias-bg-layer-3,#fff);border-radius:var(--dsw-radius-lg,16px);list-style:none;transition:border-color .16s,background .16s}.nUhMVa_setCard:hover{border-color:var(--dsw-alias-label-dimmed,#c8ccd4)}.nUhMVa_setCardOpen{background:var(--dsw-alias-bg-layer-2,#f7f8fa);border-color:var(--dsw-alias-label-dimmed,#c8ccd4)}.nUhMVa_setHeader{-webkit-appearance:none;appearance:none;width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer;border-radius:var(--dsw-radius-lg,16px);background:0 0;border:0;align-items:center;gap:12px;padding:14px 16px;display:flex}.nUhMVa_setHeader:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:-2px}.nUhMVa_setHeadText{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.nUhMVa_setName{color:var(--dsw-alias-label-primary,#1f2328);font-size:15px;font-weight:600;line-height:1.4}.nUhMVa_setDesc{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:13px;line-height:1.5}.nUhMVa_setChevron{color:var(--dsw-alias-label-tertiary,#8b93a1);flex:none;transition:transform .16s;display:inline-flex}.nUhMVa_setChevronOpen{transform:rotate(180deg)}.nUhMVa_setBody{border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb);margin:0 16px;padding-bottom:8px}.nUhMVa_setRow{align-items:center;gap:12px;padding:12px 0;display:flex}.nUhMVa_setRow+.nUhMVa_setRow{border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb)}.nUhMVa_setLabelBox{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.nUhMVa_setLabel{font-size:13px;line-height:20px}.nUhMVa_setHint{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:12px;line-height:18px}.nUhMVa_setAdvanced{border-bottom:1px solid var(--dsw-alias-border-l2,#e5e7eb)}.nUhMVa_setAdvancedHead{-webkit-appearance:none;appearance:none;width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:12px;padding:12px 0;display:flex}.nUhMVa_setAdvancedHead:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:-2px}.nUhMVa_setAdvancedBody{padding-bottom:4px}.nUhMVa_setConfirm{border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb);flex-direction:column;gap:8px;padding:12px 0 4px;display:flex}.nUhMVa_setCheck{cursor:pointer;align-items:center;gap:8px;font-size:12px;line-height:18px;display:flex}.nUhMVa_setActions{border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb);justify-content:flex-end;align-items:center;gap:8px;padding:12px 0 4px;display:flex}.nUhMVa_setInlineActions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px;display:flex}.nUhMVa_setProxyEditor{border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb);flex-wrap:wrap;align-items:flex-end;gap:10px;padding:12px 0;display:flex}.nUhMVa_setProxyLabel{min-width:180px;color:var(--dsw-alias-label-secondary,#6b7280);flex-direction:column;flex:1;gap:5px;font-size:12px;line-height:18px;display:flex}.nUhMVa_setProxyInput{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2,#d1d5db);background:var(--dsw-alias-bg-layer-3,#fff);width:100%;min-width:0;color:var(--dsw-alias-label-primary,#1f2328);font:inherit;border-radius:7px;padding:6px 8px;font-size:12px;line-height:18px}.nUhMVa_setProxyInput:focus{border-color:var(--dsw-alias-brand-primary,#4f6ef7);outline:2px solid color-mix(in srgb,var(--dsw-alias-brand-primary,#4f6ef7) 18%,transparent)}.nUhMVa_setDanger{color:var(--dsw-alias-state-error-primary,#dc2626)}.nUhMVa_setSeg{border-radius:var(--dsw-radius-md,12px);background:var(--dsw-alias-bg-module-platform,#f4f5f7);border:none;flex-shrink:0;gap:2px;padding:3px;display:inline-flex}.nUhMVa_setSegBtn{font:inherit;border-radius:var(--dsw-radius-sm,8px);height:26px;color:var(--dsw-alias-label-secondary,#5c6570);cursor:pointer;background:0 0;border:none;padding:0 10px;font-size:12px;line-height:18px}.nUhMVa_setSegBtn:disabled{cursor:default;opacity:.5}.nUhMVa_setSegOn{background:var(--dsw-alias-bg-layer-3,#fff);color:var(--dsw-alias-label-primary,#1f2328);box-shadow:0 0 0 .5px var(--dsw-alias-border-l3,#0000001f);font-weight:600}.nUhMVa_setBetaTag{background:var(--dsw-alias-bg-module-platform,#eef0f4);color:var(--dsw-alias-label-secondary,#6b7280);border-radius:9px;margin-left:6px;padding:0 6px;font-size:11px;font-weight:600;line-height:17px}.nUhMVa_commentsLink{cursor:pointer;white-space:nowrap;color:var(--dsw-alias-label-tertiary,#8b93a1);background:0 0;border:0;padding:0;font-size:12px;line-height:18px}.nUhMVa_commentsLink:hover{color:var(--dsw-alias-brand-primary,#4f6ef7)}.nUhMVa_footActions{flex-shrink:0;align-items:center;gap:8px;display:inline-flex}.nUhMVa_favoriteBtn{cursor:pointer;color:var(--dsw-alias-label-secondary,#9ca3af);background:0 0;border:0;align-items:center;padding:0;display:inline-flex}.nUhMVa_favoriteMark{transform-box:fill-box;transform-origin:50% 0;display:block}.nUhMVa_favoriteBtn:hover,.nUhMVa_favoriteOn{color:var(--dsw-alias-brand-primary,#4f6ef7)}.nUhMVa_cardMore{cursor:pointer;font:inherit;letter-spacing:1px;color:var(--dsw-alias-label-secondary,#9ca3af);background:0 0;border:0;padding:0 2px;font-size:14px;line-height:16px}.nUhMVa_cardMore:hover{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_blockedTabHint{color:var(--dsw-alias-label-secondary,#9ca3af);margin:0 0 12px;font-size:12px;line-height:18px}.nUhMVa_blockedMissing{flex-direction:column;gap:4px;margin-top:8px;display:flex}.nUhMVa_blockedBarRow{justify-content:space-between;align-items:center;gap:8px;min-width:0;display:flex}.nUhMVa_blockedBarName{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;line-height:20px;overflow:hidden}.nUhMVa_blockedBarUndo{cursor:pointer;font:inherit;color:var(--dsw-alias-brand-primary,#4f6ef7);background:0 0;border:0;padding:0;font-size:12px;line-height:18px}.nUhMVa_commentsNote{color:var(--dsw-alias-label-secondary,#9ca3af);margin:0 0 8px;font-size:11px;line-height:16px}.nUhMVa_commentsGithubPrompt{border:1px solid color-mix(in srgb,var(--dsw-alias-brand-primary,#4f6ef7) 24%,transparent);background:color-mix(in srgb,var(--dsw-alias-brand-primary,#4f6ef7) 6%,transparent);border-radius:8px;margin:0 0 10px;padding:10px}.nUhMVa_commentsGithubHint{color:var(--dsw-alias-label-primary,#1f2328);margin:0 0 8px;font-size:12px;line-height:17px}.nUhMVa_commentsGithubAction{box-sizing:border-box;border:1px solid var(--dsw-alias-brand-primary,#4f6ef7);min-height:28px;color:var(--dsw-alias-brand-primary,#4f6ef7);border-radius:6px;justify-content:center;align-items:center;padding:5px 10px;font-size:12px;font-weight:600;line-height:16px;text-decoration:none;display:inline-flex}.nUhMVa_commentsGithubAction:hover{background:color-mix(in srgb,var(--dsw-alias-brand-primary,#4f6ef7) 9%,transparent)}.nUhMVa_commentsStatus{color:var(--dsw-alias-label-secondary,#9ca3af);margin:0;font-size:12px}.nUhMVa_commentsStatus:empty{display:none}.nUhMVa_commentsError{color:var(--dsw-alias-label-primary,#1f2328);margin:0 0 8px;font-size:12px}.nUhMVa_commentsFail{flex-direction:column;align-items:flex-start;gap:8px;padding:12px 0;display:flex}.nUhMVa_commentsMount{width:100%;min-height:240px;max-height:56vh;overflow:auto}.nUhMVa_commentsMount iframe{width:100%}.nUhMVa_notesLink{font:inherit;color:var(--dsw-alias-label-secondary,#6b7280);cursor:pointer;text-align:left;background:0 0;border:none;margin:2px 0 0;padding:0;font-size:12px;line-height:18px;display:block}.nUhMVa_notesLink:hover{color:var(--dsw-alias-label-primary,#1f2328)}.nUhMVa_notesModalWide{width:min(640px,92vw);max-width:min(640px,92vw)}.nUhMVa_notesBody{overscroll-behavior:contain;flex-direction:column;flex:0 auto;gap:10px;min-width:0;max-height:min(60vh,520px);padding:0 2px 8px 0;display:flex;overflow-y:auto}.nUhMVa_notesRange{align-items:center;gap:8px;margin-bottom:4px;font-size:12px;line-height:18px;display:flex}.nUhMVa_notesArrow{color:var(--dsw-alias-label-tertiary,#8b93a1)}.nUhMVa_notesMeta{letter-spacing:.02em;text-transform:uppercase;color:var(--dsw-alias-label-secondary,#6b7280);flex-wrap:wrap;align-items:baseline;gap:6px;margin-top:4px;font-size:12px;line-height:18px;display:flex}.nUhMVa_notesBody>.nUhMVa_notesMeta:first-child{margin-top:0}.nUhMVa_notesPre{white-space:pre-wrap;word-break:break-word;background:var(--dsw-alias-bg-layer-2,#eef0f4);border-radius:8px;max-height:40vh;margin:0;padding:10px 12px;font-size:13px;line-height:20px;overflow:auto}.nUhMVa_notesRendered{flex-direction:column;gap:8px;min-width:0;display:flex}.nUhMVa_notesImg{border-radius:6px;max-width:100%;height:auto;margin:4px 0;display:block}.nUhMVa_notesH{margin-top:4px;font-size:13px;font-weight:650;line-height:20px}.nUhMVa_notesP{font-size:13px;line-height:20px}.nUhMVa_notesQuote{border-left:3px solid var(--dsw-alias-border-l3,#d9dde3);background:var(--dsw-alias-bg-layer-2,#f7f8fa);color:var(--dsw-alias-label-primary,#1f2328);border-radius:0 6px 6px 0;margin:0;padding:8px 10px;font-size:13px;line-height:20px}.nUhMVa_notesFence{background:var(--dsw-alias-bg-layer-2,#eef0f4);font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);white-space:pre;border-radius:8px;margin:0;padding:10px 12px;font-size:12px;line-height:18px;overflow-x:auto}.nUhMVa_notesFence code{font:inherit;background:0 0;padding:0}.nUhMVa_notesBullets{flex-direction:column;gap:4px;margin:0;padding-left:18px;font-size:13px;line-height:20px;display:flex}.nUhMVa_notesA{color:var(--dsw-alias-brand-primary,#4f6ef7);text-decoration:none}.nUhMVa_notesA:hover{text-decoration:underline}.nUhMVa_notesCode{font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);background:var(--dsw-alias-bg-layer-2,#eef0f4);border-radius:5px;padding:1px 5px;font-size:12px}.nUhMVa_notesList{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.nUhMVa_notesRow{border-bottom:1px solid var(--dsw-alias-border-l2,#e5e7eb);align-items:baseline;gap:12px;padding:6px 0;display:flex}.nUhMVa_notesRow:last-child{border-bottom:none}.nUhMVa_notesDate{color:var(--dsw-alias-label-tertiary,#8b93a1);font-variant-numeric:tabular-nums;flex-shrink:0;font-size:12px}.nUhMVa_notesMsg{word-break:break-word;word-break:break-word;-webkit-line-clamp:3;-webkit-box-orient:vertical;min-width:0;font-size:13px;line-height:20px;display:-webkit-box;overflow:hidden}.nUhMVa_notesSha{color:var(--dsw-alias-label-secondary,#6b7280);font-variant-numeric:tabular-nums;flex-shrink:0;margin-left:auto;font-size:12px;text-decoration:none}.nUhMVa_recoverySummary{color:var(--dsw-alias-state-error-primary,#dc2626);word-break:break-word;align-items:flex-start;gap:8px;margin-bottom:8px;font-size:12px;display:flex}.nUhMVa_recoveryHint{color:var(--dsw-alias-label-secondary,#6b7280);margin:8px 0;font-size:12px}.nUhMVa_recoveryList{border:1px solid var(--dsw-alias-border-l2,#e5e7eb);border-radius:8px;flex-direction:column;max-height:320px;display:flex;overflow-x:hidden;overflow-y:auto}.nUhMVa_recoveryRow{border-top:1px solid var(--dsw-alias-border-l2,#eef0f4);align-items:flex-start;gap:8px;padding:6px 10px;font-size:12px;display:flex}.nUhMVa_recoveryRow:first-child{border-top:none}.nUhMVa_recoveryBlamed{box-shadow:inset 3px 0 0 var(--dsw-alias-state-error-primary,#dc2626);background:#dc262612}.nUhMVa_recoveryMuted{opacity:.6}.nUhMVa_recoveryName{word-break:break-word;flex-direction:column;gap:2px;min-width:0;display:flex}.nUhMVa_recoveryReason{color:var(--dsw-alias-state-error-primary,#dc2626);word-break:break-word;font-size:11px}.nUhMVa_recoveryNote{color:var(--dsw-alias-label-tertiary,#8b93a1);word-break:break-word;margin-top:8px;font-size:11px}.nUhMVa_recoveryBadge{background:var(--dsw-alias-bg-layer-2,#eef0f4);color:var(--dsw-alias-label-secondary,#6b7280);border-radius:5px;margin-left:6px;padding:0 5px;font-size:10px}.nUhMVa_recoveryLog{color:var(--dsw-alias-label-secondary,#6b7280);margin:4px 0 8px;font-size:11px}.nUhMVa_recoveryLog pre{white-space:pre-wrap;word-break:break-word;max-height:180px;margin:6px 0 0;overflow:auto}.nUhMVa_notesSha:hover{color:var(--dsw-alias-label-primary,#1f2328);text-decoration:underline}.nUhMVa_notesVer{color:inherit;font-weight:600;text-decoration:none}.nUhMVa_notesVer:hover{text-decoration:underline}.nUhMVa_notesSourceLink{color:var(--dsw-alias-brand-primary,#4f6ef7);white-space:nowrap;text-decoration:none}.nUhMVa_notesSourceLink:hover{text-decoration:underline}.nUhMVa_migrationSources{flex-direction:column;gap:8px;margin-top:4px;display:flex}.nUhMVa_migrationSource{border:1px solid var(--dsw-alias-border-l2,#e5e7eb);border-radius:8px;flex-direction:column;gap:4px;padding:10px 12px;display:flex}.nUhMVa_migrationSource code{font-size:12px;font-family:var(--ds-font-family-code,ui-monospace,Menlo,Consolas,monospace);overflow-wrap:anywhere}.nUhMVa_migrationLabel{color:var(--dsw-alias-label-secondary,#9ca3af);font-size:11px}.nUhMVa_migrationArrow{text-align:center;color:var(--dsw-alias-label-secondary,#9ca3af)}.nUhMVa_migrationWarning{color:var(--dsw-alias-state-warn-primary,#b45309);align-items:flex-start;gap:6px;margin:12px 0 0;font-size:12px;line-height:18px;display:flex}.nUhMVa_migrationNote{color:var(--dsw-alias-label-secondary,#6b7280);margin:12px 0 0;font-size:12px;line-height:18px}.nUhMVa_sourceRepo{color:var(--dsw-alias-label-secondary,#5c6570);align-self:flex-end;align-items:center;gap:2px;font-size:13px;line-height:20px;text-decoration:none;display:inline-flex}.nUhMVa_sourceRepo:hover{color:var(--dsw-alias-brand-primary,#4f6ef7);text-decoration:underline}.nUhMVa_sourceRepo:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:2px;border-radius:4px}.nUhMVa_updateChecks{margin:12px 0;font-size:13px}.nUhMVa_updateChecks summary{cursor:pointer}.nUhMVa_updateChecksSummary{opacity:.7;margin-left:8px}.nUhMVa_updateChecksControls{flex-wrap:wrap;align-items:center;gap:12px;margin-top:12px;display:flex}.nUhMVa_updateChecksToggle{align-items:center;gap:8px;display:inline-flex}.nUhMVa_updateChecksHint{opacity:.7;margin:8px 0}.nUhMVa_updateChecksList{margin:12px 0;padding:0;list-style:none}.nUhMVa_updateChecksList li{flex-wrap:wrap;align-items:center;gap:12px;padding:8px 0;display:flex}.nUhMVa_updateChecksPackage{overflow-wrap:anywhere;flex-direction:column;flex:1;min-width:0;display:flex}.nUhMVa_updateChecksPackage>span{opacity:.7;font-size:12px}.nUhMVa_updateChecksInterval{align-items:center;gap:8px;display:inline-flex}.nUhMVa_updateChecksInterval select{color:inherit;background:var(--dsw-alias-bg-layer-1,#fff);border:1px solid var(--dsw-alias-border-l2,#e5e7eb);font:inherit;border-radius:6px;padding:4px 8px}";
4097
4238
  const tagId = "dsh-crate/Market.module.css";
4098
4239
  if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
4099
4240
  const tag = document.createElement("style");
@@ -4582,6 +4723,15 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
4582
4723
  "ungroupedDesc": "nUhMVa_ungroupedDesc",
4583
4724
  "ungroupedRow": "nUhMVa_ungroupedRow",
4584
4725
  "ungroupedState": "nUhMVa_ungroupedState",
4726
+ "updateCheckNotice": "nUhMVa_updateCheckNotice",
4727
+ "updateChecks": "nUhMVa_updateChecks",
4728
+ "updateChecksControls": "nUhMVa_updateChecksControls",
4729
+ "updateChecksHint": "nUhMVa_updateChecksHint",
4730
+ "updateChecksInterval": "nUhMVa_updateChecksInterval",
4731
+ "updateChecksList": "nUhMVa_updateChecksList",
4732
+ "updateChecksPackage": "nUhMVa_updateChecksPackage",
4733
+ "updateChecksSummary": "nUhMVa_updateChecksSummary",
4734
+ "updateChecksToggle": "nUhMVa_updateChecksToggle",
4585
4735
  "version": "nUhMVa_version",
4586
4736
  "viewBar": "nUhMVa_viewBar",
4587
4737
  "viewBtn": "nUhMVa_viewBtn",
@@ -4880,6 +5030,434 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
4880
5030
  });
4881
5031
  }
4882
5032
  //#endregion
5033
+ //#region src/release-candidates.ts
5034
+ function semver(value) {
5035
+ if (typeof value !== "string") return null;
5036
+ const matched = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?$/.exec(value);
5037
+ if (!matched) return null;
5038
+ const prerelease = matched[4]?.split(".") ?? [];
5039
+ if (prerelease.some((part) => /^\d+$/.test(part) && part.length > 1 && part.startsWith("0"))) return null;
5040
+ return {
5041
+ core: [
5042
+ BigInt(matched[1]),
5043
+ BigInt(matched[2]),
5044
+ BigInt(matched[3])
5045
+ ],
5046
+ prerelease
5047
+ };
5048
+ }
5049
+ /** Accept a bounded exact npm release version, including prereleases. */
5050
+ function isExactReleaseVersion(value) {
5051
+ return typeof value === "string" && value.length <= 256 && value === value.trim() && semver(value) !== null;
5052
+ }
5053
+ //#endregion
5054
+ //#region src/client/discovery-scan.ts
5055
+ const BATCH_SIZE = 64;
5056
+ const BATCH_BYTES = 32640;
5057
+ const UNAVAILABLE_RETRY_MS = 3e5;
5058
+ const REQUEST_RETRY_MS = 3e4;
5059
+ const MUTABLE_SOURCE_TTL_MS = 864e5;
5060
+ const REVISION = /^[a-f0-9]{64}$/;
5061
+ const HOST_FILTER_KEY = "dshm-host-filter";
5062
+ const unavailable = {
5063
+ status: "unknown",
5064
+ basis: "unavailable",
5065
+ requirement: null,
5066
+ declarations: []
5067
+ };
5068
+ function initialPreference() {
5069
+ try {
5070
+ return window.localStorage.getItem(HOST_FILTER_KEY) !== "all";
5071
+ } catch {
5072
+ return true;
5073
+ }
5074
+ }
5075
+ function describeEntry(plugin) {
5076
+ const key = hostCompatibilityKey(plugin);
5077
+ if (key === null) return null;
5078
+ const version = typeof plugin.version === "string" ? plugin.version.trim() : "";
5079
+ if (!key.startsWith("https://")) {
5080
+ const npmVersion = isExactReleaseVersion(version) ? version : void 0;
5081
+ return {
5082
+ key,
5083
+ fingerprint: npmVersion ?? "",
5084
+ npmVersion,
5085
+ expires: npmVersion === void 0,
5086
+ bytes: entryBytes(key, npmVersion)
5087
+ };
5088
+ }
5089
+ const revision = plugin.compatibilityRevision;
5090
+ const githubRevision = typeof revision === "string" && REVISION.test(revision) ? revision : void 0;
5091
+ return {
5092
+ key,
5093
+ fingerprint: githubRevision ?? JSON.stringify([plugin.tarball ?? null, version]),
5094
+ githubRevision,
5095
+ expires: true,
5096
+ bytes: entryBytes(key, githubRevision)
5097
+ };
5098
+ }
5099
+ const encoder = new TextEncoder();
5100
+ function entryBytes(key, hint) {
5101
+ const keyBytes = encoder.encode(JSON.stringify(key)).byteLength;
5102
+ return keyBytes + 1 + (hint === void 0 ? 0 : keyBytes + encoder.encode(JSON.stringify(hint)).byteLength + 2);
5103
+ }
5104
+ function requestBody(entries) {
5105
+ const packages = entries.filter((entry) => !entry.key.startsWith("https://")).map((entry) => entry.key);
5106
+ const github = entries.filter((entry) => entry.key.startsWith("https://")).map((entry) => entry.key);
5107
+ const versions = entries.filter((entry) => entry.npmVersion !== void 0).map((entry) => [entry.key, entry.npmVersion]);
5108
+ const revisions = entries.filter((entry) => entry.githubRevision !== void 0).map((entry) => [entry.key, entry.githubRevision]);
5109
+ return {
5110
+ packages,
5111
+ ...github.length > 0 ? { entries: github } : {},
5112
+ ...versions.length > 0 ? { versions: Object.fromEntries(versions) } : {},
5113
+ ...revisions.length > 0 ? { githubRevisions: Object.fromEntries(revisions) } : {}
5114
+ };
5115
+ }
5116
+ function readVerdict(value) {
5117
+ if (value == null || ![
5118
+ "compatible",
5119
+ "incompatible",
5120
+ "unknown"
5121
+ ].includes(value.status) || ![
5122
+ "manifest",
5123
+ "undeclared",
5124
+ "unavailable"
5125
+ ].includes(value.basis) || value.requirement !== null && typeof value.requirement !== "string" || !Array.isArray(value.declarations)) return unavailable;
5126
+ return value.basis === "unavailable" ? {
5127
+ ...unavailable,
5128
+ ...value.catalogChanged === true ? { catalogChanged: true } : {},
5129
+ ...typeof value.retryAfterMs === "number" && Number.isFinite(value.retryAfterMs) && value.retryAfterMs >= 0 ? { retryAfterMs: value.retryAfterMs } : {}
5130
+ } : value;
5131
+ }
5132
+ /** Shares on-demand badge lookups across the three market surfaces. */
5133
+ var DiscoveryScan = class {
5134
+ onCatalogGenerationChange;
5135
+ snapshot;
5136
+ listeners = /* @__PURE__ */ new Set();
5137
+ entries = /* @__PURE__ */ new Map();
5138
+ results = /* @__PURE__ */ new Map();
5139
+ demand = /* @__PURE__ */ new Map();
5140
+ pending;
5141
+ hostVersion;
5142
+ catalog = null;
5143
+ boot;
5144
+ enabled;
5145
+ context = 0;
5146
+ catalogRequest = 0;
5147
+ resumeRequest;
5148
+ catalogRefreshUsed = false;
5149
+ active = false;
5150
+ gone = false;
5151
+ timer;
5152
+ verdictsChanged = false;
5153
+ constructor(onCatalogGenerationChange) {
5154
+ this.onCatalogGenerationChange = onCatalogGenerationChange;
5155
+ }
5156
+ getSnapshot = () => {
5157
+ return this.snapshot ??= {
5158
+ enabled: this.enabled ??= initialPreference(),
5159
+ catalog: null,
5160
+ gone: false,
5161
+ hostVersion: void 0,
5162
+ verdicts: Object.create(null)
5163
+ };
5164
+ };
5165
+ subscribe = (listener) => {
5166
+ this.listeners.add(listener);
5167
+ return () => {
5168
+ this.listeners.delete(listener);
5169
+ };
5170
+ };
5171
+ reset() {
5172
+ clearTimeout(this.timer);
5173
+ this.timer = void 0;
5174
+ this.active = false;
5175
+ this.gone = false;
5176
+ this.context += 1;
5177
+ this.hostVersion = void 0;
5178
+ this.catalog = null;
5179
+ this.catalogRequest += 1;
5180
+ this.resumeRequest = void 0;
5181
+ this.boot = void 0;
5182
+ this.enabled = void 0;
5183
+ this.entries.clear();
5184
+ this.results.clear();
5185
+ this.demand.clear();
5186
+ this.catalogRefreshUsed = false;
5187
+ this.pending = void 0;
5188
+ this.verdictsChanged = false;
5189
+ this.snapshot = void 0;
5190
+ }
5191
+ setEnabled(enabled) {
5192
+ if (this.getSnapshot().enabled === enabled) return;
5193
+ try {
5194
+ window.localStorage.setItem(HOST_FILTER_KEY, enabled ? "compatible" : "all");
5195
+ } catch {}
5196
+ this.enabled = enabled;
5197
+ this.catalogRefreshUsed = false;
5198
+ if (enabled) {
5199
+ const keys = this.visibleKeys();
5200
+ this.allowRetry(keys);
5201
+ if (keys.some((key) => this.results.get(key)?.verdict.catalogChanged === true)) this.refreshCatalog();
5202
+ }
5203
+ this.update();
5204
+ }
5205
+ async loadCatalog() {
5206
+ const request = ++this.catalogRequest;
5207
+ const response = await fetch(api("/dsh-crate/registry"), { cache: "no-store" });
5208
+ if (request !== this.catalogRequest) return "superseded";
5209
+ if (response.status === 404) {
5210
+ this.setUnavailable();
5211
+ return "gone";
5212
+ }
5213
+ const body = await response.json().catch(() => ({}));
5214
+ if (request !== this.catalogRequest) return "superseded";
5215
+ if (!response.ok) throw new Error(typeof body.error === "string" ? body.error : `HTTP ${response.status}`);
5216
+ if (body.registry === void 0) throw new Error("the catalog response carried no data");
5217
+ const host = body.hostVersion;
5218
+ this.setCatalog(body.registry, typeof host === "string" || host === null ? host : void 0);
5219
+ return "loaded";
5220
+ }
5221
+ setCatalog(catalog, hostVersion) {
5222
+ if (catalog.updated !== this.catalog?.updated) this.onCatalogGenerationChange();
5223
+ this.catalog = catalog;
5224
+ this.active = true;
5225
+ this.gone = false;
5226
+ const next = /* @__PURE__ */ new Map();
5227
+ for (const plugin of catalog.plugins) {
5228
+ const described = describeEntry(plugin);
5229
+ if (described === null || next.has(described.key)) continue;
5230
+ const previous = this.entries.get(described.key);
5231
+ next.set(described.key, previous?.fingerprint === described.fingerprint ? previous : described);
5232
+ }
5233
+ this.entries = next;
5234
+ if (hostVersion !== void 0 && hostVersion !== this.hostVersion) {
5235
+ this.hostVersion = hostVersion;
5236
+ this.invalidate();
5237
+ }
5238
+ for (const [key, result] of this.results) {
5239
+ if (next.get(key) === result.entry) continue;
5240
+ this.results.delete(key);
5241
+ this.verdictsChanged = true;
5242
+ }
5243
+ this.markOversizedEntries();
5244
+ this.update();
5245
+ }
5246
+ setBoot(boot) {
5247
+ const previous = this.boot;
5248
+ this.boot = boot;
5249
+ if (previous === void 0 || previous === boot) return;
5250
+ this.invalidate();
5251
+ this.markOversizedEntries();
5252
+ this.catalogRefreshUsed = false;
5253
+ this.update();
5254
+ }
5255
+ setUnavailable() {
5256
+ if (this.gone) return;
5257
+ this.active = false;
5258
+ this.gone = true;
5259
+ this.catalogRefreshUsed = false;
5260
+ this.catalogRequest += 1;
5261
+ this.invalidate();
5262
+ this.update();
5263
+ }
5264
+ resume() {
5265
+ if (this.resumeRequest?.id === this.catalogRequest) return this.resumeRequest.result;
5266
+ const result = this.loadCatalog().finally(() => {
5267
+ if (this.resumeRequest?.result === result) this.resumeRequest = void 0;
5268
+ });
5269
+ this.resumeRequest = {
5270
+ id: this.catalogRequest,
5271
+ result
5272
+ };
5273
+ return result;
5274
+ }
5275
+ setDemand(owner, catalog, keys) {
5276
+ if (catalog !== this.catalog) return;
5277
+ const before = this.demand.get(owner)?.keys ?? [];
5278
+ if (catalog === null || keys.length === 0) this.demand.delete(owner);
5279
+ else this.demand.set(owner, {
5280
+ catalog,
5281
+ keys
5282
+ });
5283
+ const arrived = keys.filter((key) => !before.includes(key));
5284
+ this.allowRetry(arrived);
5285
+ if (arrived.some((key) => this.results.get(key)?.verdict.catalogChanged === true)) this.refreshCatalog();
5286
+ this.update();
5287
+ }
5288
+ removeDemand(owner) {
5289
+ this.demand.delete(owner);
5290
+ this.scheduleRetry();
5291
+ }
5292
+ allowRetry(keys) {
5293
+ for (const key of keys) {
5294
+ const result = this.results.get(key);
5295
+ if (result !== void 0 && Number.isFinite(result.retryAt)) result.automaticRetryUsed = false;
5296
+ }
5297
+ }
5298
+ invalidate() {
5299
+ this.context += 1;
5300
+ this.pending = void 0;
5301
+ this.results.clear();
5302
+ this.verdictsChanged = true;
5303
+ }
5304
+ markOversizedEntries() {
5305
+ for (const entry of this.entries.values()) {
5306
+ if (entry.bytes <= BATCH_BYTES) continue;
5307
+ this.results.set(entry.key, {
5308
+ entry,
5309
+ verdict: unavailable,
5310
+ retryAt: Infinity,
5311
+ expiresAt: Infinity,
5312
+ automaticRetryUsed: true
5313
+ });
5314
+ this.verdictsChanged = true;
5315
+ }
5316
+ }
5317
+ visibleKeys() {
5318
+ const keys = /* @__PURE__ */ new Set();
5319
+ for (const demand of this.demand.values()) {
5320
+ if (demand.catalog !== this.catalog) continue;
5321
+ for (const key of demand.keys) keys.add(key);
5322
+ }
5323
+ return [...keys];
5324
+ }
5325
+ update() {
5326
+ const previous = this.getSnapshot();
5327
+ const enabled = this.enabled ?? previous.enabled;
5328
+ const now = Date.now();
5329
+ for (const [key, result] of this.results) {
5330
+ if (result.expiresAt > now) continue;
5331
+ this.results.delete(key);
5332
+ this.verdictsChanged = true;
5333
+ }
5334
+ this.pump();
5335
+ let verdicts = previous.verdicts;
5336
+ if (this.verdictsChanged) {
5337
+ verdicts = Object.create(null);
5338
+ for (const [key, result] of this.results) verdicts[key] = result.verdict;
5339
+ this.verdictsChanged = false;
5340
+ }
5341
+ if (previous.enabled === enabled && previous.catalog === this.catalog && previous.gone === this.gone && previous.hostVersion === this.hostVersion && previous.verdicts === verdicts) return;
5342
+ this.snapshot = {
5343
+ enabled,
5344
+ catalog: this.catalog,
5345
+ gone: this.gone,
5346
+ hostVersion: this.hostVersion,
5347
+ verdicts
5348
+ };
5349
+ for (const listener of this.listeners) listener();
5350
+ }
5351
+ pump() {
5352
+ if (!this.active || this.pending !== void 0) {
5353
+ this.scheduleRetry();
5354
+ return;
5355
+ }
5356
+ const now = Date.now();
5357
+ const entries = this.visibleKeys().flatMap((key) => {
5358
+ const entry = this.entries.get(key);
5359
+ return entry === void 0 ? [] : [entry];
5360
+ });
5361
+ const fresh = this.visibleBatch(entries.filter((entry) => {
5362
+ const result = this.results.get(entry.key);
5363
+ return result === void 0 || result.expiresAt <= now;
5364
+ }));
5365
+ if (fresh.length > 0) this.dispatch(fresh, false);
5366
+ else if (this.enabled ?? this.getSnapshot().enabled) {
5367
+ const retry = this.visibleBatch(entries.filter((entry) => {
5368
+ const result = this.results.get(entry.key);
5369
+ return result !== void 0 && result.retryAt <= now && !result.automaticRetryUsed;
5370
+ }));
5371
+ if (retry.length > 0) this.dispatch(retry, true);
5372
+ }
5373
+ this.scheduleRetry();
5374
+ }
5375
+ visibleBatch(entries) {
5376
+ let bytes = 0;
5377
+ let end = 0;
5378
+ for (const entry of entries) {
5379
+ bytes += entry.bytes;
5380
+ if (bytes > BATCH_BYTES || end >= BATCH_SIZE) break;
5381
+ end += 1;
5382
+ }
5383
+ return entries.slice(0, end);
5384
+ }
5385
+ scheduleRetry() {
5386
+ clearTimeout(this.timer);
5387
+ this.timer = void 0;
5388
+ if (!this.active || !(this.enabled ?? this.getSnapshot().enabled) || this.pending !== void 0) return;
5389
+ let next = Infinity;
5390
+ for (const key of this.visibleKeys()) {
5391
+ const result = this.results.get(key);
5392
+ if (result === void 0 || result.automaticRetryUsed) continue;
5393
+ next = Math.min(next, result.retryAt);
5394
+ }
5395
+ if (Number.isFinite(next)) this.timer = setTimeout(() => this.pump(), Math.max(0, next - Date.now()));
5396
+ }
5397
+ dispatch(entries, retry) {
5398
+ const batch = {
5399
+ entries,
5400
+ retry,
5401
+ context: this.context
5402
+ };
5403
+ this.pending = batch;
5404
+ this.request(batch);
5405
+ }
5406
+ async request(batch) {
5407
+ let responseBody;
5408
+ let requestFailed = false;
5409
+ try {
5410
+ const response = await fetch(api("/dsh-crate/discovery-compatibility"), {
5411
+ method: "POST",
5412
+ headers: { "content-type": "application/json" },
5413
+ body: JSON.stringify(requestBody(batch.entries))
5414
+ });
5415
+ if (response.status === 404 && batch.context === this.context) this.setUnavailable();
5416
+ if (!response.ok) throw new Error(`HTTP ${response.status}`);
5417
+ responseBody = await response.json();
5418
+ if (responseBody?.plugins === null || typeof responseBody?.plugins !== "object" || Array.isArray(responseBody.plugins)) throw new Error("Invalid compatibility response");
5419
+ } catch {
5420
+ requestFailed = true;
5421
+ }
5422
+ if (this.pending === batch) this.pending = void 0;
5423
+ if (batch.context !== this.context) {
5424
+ this.update();
5425
+ return;
5426
+ }
5427
+ const responseHost = responseBody?.hostVersion;
5428
+ if ((typeof responseHost === "string" || responseHost === null) && responseHost !== this.hostVersion) {
5429
+ if (this.hostVersion === void 0) this.hostVersion = responseHost;
5430
+ else {
5431
+ if (this.visibleKeys().length > 0) this.refreshCatalog();
5432
+ requestFailed = true;
5433
+ }
5434
+ }
5435
+ const now = Date.now();
5436
+ let catalogChanged = false;
5437
+ for (const entry of batch.entries) {
5438
+ if (this.entries.get(entry.key) !== entry) continue;
5439
+ const verdict = readVerdict(requestFailed ? void 0 : responseBody?.plugins?.[entry.key]);
5440
+ if (verdict.catalogChanged === true) catalogChanged = true;
5441
+ const retryAt = verdict.basis !== "unavailable" || verdict.catalogChanged === true ? Infinity : now + (verdict.retryAfterMs ?? (requestFailed ? REQUEST_RETRY_MS : UNAVAILABLE_RETRY_MS));
5442
+ this.results.set(entry.key, {
5443
+ entry,
5444
+ verdict,
5445
+ retryAt,
5446
+ automaticRetryUsed: batch.retry,
5447
+ expiresAt: verdict.basis !== "unavailable" && entry.expires ? now + MUTABLE_SOURCE_TTL_MS : Infinity
5448
+ });
5449
+ this.verdictsChanged = true;
5450
+ }
5451
+ if (catalogChanged && this.visibleKeys().some((key) => this.results.get(key)?.verdict.catalogChanged === true)) this.refreshCatalog();
5452
+ this.update();
5453
+ }
5454
+ refreshCatalog() {
5455
+ if (!this.active || this.catalogRefreshUsed) return;
5456
+ this.catalogRefreshUsed = true;
5457
+ this.loadCatalog().catch(() => {});
5458
+ }
5459
+ };
5460
+ //#endregion
4883
5461
  //#region src/client/download-stats.ts
4884
5462
  const validCount = (value) => typeof value === "number" && Number.isSafeInteger(value) && value >= 0;
4885
5463
  /** Keep the established npm window first; the two sources are never added together. */
@@ -5871,13 +6449,13 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
5871
6449
  const [dismissed, setDismissed] = (0, react.useState)(false);
5872
6450
  (0, react.useEffect)(() => {
5873
6451
  try {
5874
- setDismissed(sessionStorage.getItem("dshm-host-recovery-dismissed") === String(bootId ?? ""));
6452
+ setDismissed(window.sessionStorage.getItem("dshm-host-recovery-dismissed") === String(bootId ?? ""));
5875
6453
  } catch {}
5876
6454
  }, [bootId]);
5877
6455
  const dismiss = (0, react.useCallback)(() => {
5878
6456
  setDismissed(true);
5879
6457
  try {
5880
- sessionStorage.setItem("dshm-host-recovery-dismissed", String(bootId ?? ""));
6458
+ window.sessionStorage.setItem("dshm-host-recovery-dismissed", String(bootId ?? ""));
5881
6459
  } catch {}
5882
6460
  }, [bootId]);
5883
6461
  (0, react.useEffect)(() => {
@@ -5965,6 +6543,550 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
5965
6543
  });
5966
6544
  }
5967
6545
  //#endregion
6546
+ //#region src/update-notification-settings.ts
6547
+ /** Persisted choices shared by the profile monitor and its settings UI. */
6548
+ const UPDATE_CHECK_INTERVAL_HOURS = [
6549
+ 6,
6550
+ 12,
6551
+ 72,
6552
+ 168
6553
+ ];
6554
+ function isUpdateCheckIntervalHours(value) {
6555
+ return typeof value === "number" && UPDATE_CHECK_INTERVAL_HOURS.includes(value);
6556
+ }
6557
+ //#endregion
6558
+ //#region src/client/update-notifications.ts
6559
+ /** One local snapshot shared by the market page, settings and sidebar. */
6560
+ const IGNORED_UPDATES_SESSION_KEY$1 = "dshm-updates-ignored";
6561
+ const RESTART_SESSION_KEY = "dshm-restart";
6562
+ const SEEN_UPDATES_KEY_PREFIX = "dshm-updates-seen:";
6563
+ const POLL_MS = 3e4;
6564
+ const initialState = () => ({
6565
+ enabled: false,
6566
+ intervalHours: 6,
6567
+ checking: false,
6568
+ checkedAt: null,
6569
+ lastSuccessAt: null,
6570
+ nextCheckAt: null,
6571
+ stale: false,
6572
+ error: null,
6573
+ updates: {},
6574
+ boot: "",
6575
+ updateExempt: [],
6576
+ disabled: [],
6577
+ blocked: [],
6578
+ loaded: false,
6579
+ readFailed: false
6580
+ });
6581
+ function readIgnoredUpdates(boot, clearStale) {
6582
+ if (boot === "") return [];
6583
+ const saved = readSession(IGNORED_UPDATES_SESSION_KEY$1);
6584
+ if (saved === null || typeof saved !== "object" || Array.isArray(saved) || saved.boot !== boot || !Array.isArray(saved.names) || !saved.names.every((name) => typeof name === "string" && name !== "")) {
6585
+ if (clearStale) try {
6586
+ window.sessionStorage.removeItem(IGNORED_UPDATES_SESSION_KEY$1);
6587
+ } catch {}
6588
+ return [];
6589
+ }
6590
+ return [...new Set(saved.names)];
6591
+ }
6592
+ /** Called after the host reports its current boot; retire old dismissals then. */
6593
+ function ignoredUpdatesForBoot(boot) {
6594
+ return readIgnoredUpdates(boot, true);
6595
+ }
6596
+ /** The attention count excludes dismissed, disabled and already-completed updates. */
6597
+ function notificationNames(snapshot) {
6598
+ const restart = readSession(RESTART_SESSION_KEY);
6599
+ const updated = restart?.boot === snapshot.boot && Array.isArray(restart.updated) ? restart.updated.filter((name) => typeof name === "string") : [];
6600
+ const quiet = /* @__PURE__ */ new Set([
6601
+ ...snapshot.updateExempt,
6602
+ ...snapshot.disabled,
6603
+ ...snapshot.blocked,
6604
+ ...readIgnoredUpdates(snapshot.boot, false),
6605
+ ...updated
6606
+ ]);
6607
+ return Object.entries(snapshot.updates).filter(([name, status]) => !quiet.has(name) && status.notAPlugin !== true && (status.updateAvailable === true || status.kind === "generation" && status.latest != null)).map(([name]) => name).sort();
6608
+ }
6609
+ const seenInMemory = /* @__PURE__ */ new Map();
6610
+ const unpersistedSeen = /* @__PURE__ */ new Set();
6611
+ function seenScope(snapshot) {
6612
+ const persistent = typeof snapshot.profileKey === "string" && snapshot.profileKey !== "";
6613
+ if (!persistent && snapshot.boot === "") return null;
6614
+ return {
6615
+ key: SEEN_UPDATES_KEY_PREFIX + JSON.stringify([
6616
+ api("/dsh-crate/update-notifications"),
6617
+ persistent ? "profile" : "boot",
6618
+ persistent ? snapshot.profileKey : snapshot.boot
6619
+ ]),
6620
+ persistent
6621
+ };
6622
+ }
6623
+ function seenStorage(scope) {
6624
+ return scope.persistent ? localStorage : sessionStorage;
6625
+ }
6626
+ function readSeen(scope) {
6627
+ if (unpersistedSeen.has(scope.key)) return seenInMemory.get(scope.key) ?? /* @__PURE__ */ new Set();
6628
+ try {
6629
+ const raw = seenStorage(scope).getItem(scope.key);
6630
+ if (raw === null) {
6631
+ seenInMemory.delete(scope.key);
6632
+ return /* @__PURE__ */ new Set();
6633
+ }
6634
+ const saved = JSON.parse(raw);
6635
+ if (!isRecord(saved) || saved.version !== 1 || !Array.isArray(saved.fingerprints) || !saved.fingerprints.every((value) => typeof value === "string" && value !== "")) {
6636
+ seenInMemory.delete(scope.key);
6637
+ return /* @__PURE__ */ new Set();
6638
+ }
6639
+ const fingerprints = new Set(saved.fingerprints);
6640
+ seenInMemory.set(scope.key, fingerprints);
6641
+ return fingerprints;
6642
+ } catch (error) {
6643
+ if (error instanceof SyntaxError) {
6644
+ seenInMemory.delete(scope.key);
6645
+ return /* @__PURE__ */ new Set();
6646
+ }
6647
+ return seenInMemory.get(scope.key) ?? /* @__PURE__ */ new Set();
6648
+ }
6649
+ }
6650
+ function updateFingerprint(snapshot, name) {
6651
+ const status = snapshot.updates[name];
6652
+ const migration = status.sourceMigration;
6653
+ return JSON.stringify([
6654
+ name,
6655
+ status.kind ?? null,
6656
+ status.current ?? null,
6657
+ status.version ?? null,
6658
+ status.eligibleVersion ?? status.latest ?? null,
6659
+ status.restoreRequired === true,
6660
+ migration?.kind === "git-to-npm" ? [
6661
+ migration.kind,
6662
+ migration.repo,
6663
+ migration.target
6664
+ ] : migration?.kind === "npm-rename" ? [
6665
+ migration.kind,
6666
+ migration.from,
6667
+ migration.target
6668
+ ] : null
6669
+ ]);
6670
+ }
6671
+ /** Sidebar attention is unread state; the pending update list stays intact. */
6672
+ function unseenNotificationNames(snapshot) {
6673
+ const names = notificationNames(snapshot);
6674
+ const scope = seenScope(snapshot);
6675
+ if (scope === null) return names;
6676
+ const seen = readSeen(scope);
6677
+ return names.filter((name) => !seen.has(updateFingerprint(snapshot, name)));
6678
+ }
6679
+ /** Returns true only when the visit acknowledged at least one new update. */
6680
+ function acknowledgeSnapshot(snapshot) {
6681
+ const scope = seenScope(snapshot);
6682
+ if (scope === null) return false;
6683
+ const saved = readSeen(scope);
6684
+ const seen = new Set(saved);
6685
+ for (const name of notificationNames(snapshot)) seen.add(updateFingerprint(snapshot, name));
6686
+ if (seen.size === saved.size) return false;
6687
+ seenInMemory.set(scope.key, seen);
6688
+ try {
6689
+ seenStorage(scope).setItem(scope.key, JSON.stringify({
6690
+ version: 1,
6691
+ fingerprints: [...seen]
6692
+ }));
6693
+ unpersistedSeen.delete(scope.key);
6694
+ } catch {
6695
+ unpersistedSeen.add(scope.key);
6696
+ }
6697
+ return true;
6698
+ }
6699
+ function isRecord(value) {
6700
+ return value !== null && typeof value === "object" && !Array.isArray(value);
6701
+ }
6702
+ function isUpdateStatus$1(value) {
6703
+ return isRecord(value) && [
6704
+ "updateAvailable",
6705
+ "notAPlugin",
6706
+ "restoreRequired"
6707
+ ].every((key) => value[key] === void 0 || typeof value[key] === "boolean") && [
6708
+ "current",
6709
+ "latest",
6710
+ "version"
6711
+ ].every((key) => value[key] === void 0 || value[key] === null || typeof value[key] === "string") && ["kind", "eligibleVersion"].every((key) => value[key] === void 0 || typeof value[key] === "string") && (value.checkError === void 0 || value.checkError === "unavailable") && (value.checkFailed === void 0 || value.checkFailed === true);
6712
+ }
6713
+ /** Reject a malformed local response instead of replacing a useful cached result. */
6714
+ function readSnapshot(value) {
6715
+ if (!isRecord(value) || typeof value.enabled !== "boolean" || value.intervalHours !== void 0 && !isUpdateCheckIntervalHours(value.intervalHours) || typeof value.checking !== "boolean" || value.profileKey !== void 0 && (typeof value.profileKey !== "string" || value.profileKey === "") || typeof value.stale !== "boolean" || typeof value.boot !== "string" || !(value.error === null || typeof value.error === "string") || ![
6716
+ "checkedAt",
6717
+ "lastSuccessAt",
6718
+ "nextCheckAt"
6719
+ ].every((key) => value[key] === null || typeof value[key] === "number" && Number.isFinite(value[key])) || ![
6720
+ "updateExempt",
6721
+ "disabled",
6722
+ "blocked"
6723
+ ].every((key) => Array.isArray(value[key]) && value[key].every((name) => typeof name === "string")) || !isRecord(value.updates) || !Object.values(value.updates).every(isUpdateStatus$1)) throw new Error("The update notification response was incomplete. Try checking again.");
6724
+ return {
6725
+ ...value,
6726
+ intervalHours: value.intervalHours ?? null
6727
+ };
6728
+ }
6729
+ /** The injectable transport keeps request ordering and teardown independently testable. */
6730
+ function createUpdateNotificationsStore(request = (...args) => fetch(...args)) {
6731
+ let state = initialState();
6732
+ const listeners = /* @__PURE__ */ new Set();
6733
+ let owners = 0;
6734
+ let timer;
6735
+ let read;
6736
+ let command;
6737
+ let afterChange;
6738
+ let changeRevision = 0;
6739
+ let lifecycle = 0;
6740
+ let requestSequence = 0;
6741
+ const controllers = /* @__PURE__ */ new Set();
6742
+ const publish = (next) => {
6743
+ state = next;
6744
+ for (const listener of [...listeners]) listener();
6745
+ };
6746
+ const run = async (body) => {
6747
+ const generation = lifecycle;
6748
+ const sequence = ++requestSequence;
6749
+ const controller = new AbortController();
6750
+ controllers.add(controller);
6751
+ try {
6752
+ const response = await request(api("/dsh-crate/update-notifications"), {
6753
+ cache: "no-store",
6754
+ signal: controller.signal,
6755
+ ...body === void 0 ? {} : {
6756
+ method: "POST",
6757
+ headers: { "content-type": "application/json" },
6758
+ body: JSON.stringify(body)
6759
+ }
6760
+ });
6761
+ if (!response.ok) throw new Error(`Update check unavailable (${response.status}). Try again.`);
6762
+ const next = readSnapshot(await response.json());
6763
+ if (generation === lifecycle && sequence === requestSequence) publish({
6764
+ ...next,
6765
+ loaded: true,
6766
+ readFailed: false
6767
+ });
6768
+ } catch (error) {
6769
+ if (generation !== lifecycle || controller.signal.aborted) return state;
6770
+ if (sequence === requestSequence) publish({
6771
+ ...state,
6772
+ readFailed: true,
6773
+ stale: true,
6774
+ error: error instanceof Error ? error.message : String(error)
6775
+ });
6776
+ if (body !== void 0) throw error;
6777
+ } finally {
6778
+ controllers.delete(controller);
6779
+ }
6780
+ return state;
6781
+ };
6782
+ const refresh = () => {
6783
+ if (command !== void 0) return command.catch(() => state);
6784
+ if (read === void 0) {
6785
+ const pending = run();
6786
+ read = pending;
6787
+ pending.finally(() => {
6788
+ if (read === pending) read = void 0;
6789
+ });
6790
+ }
6791
+ return read;
6792
+ };
6793
+ const mutate = (body) => {
6794
+ const previous = command;
6795
+ const generation = lifecycle;
6796
+ const pending = (previous === void 0 ? Promise.resolve() : previous.catch(() => state)).then(() => generation === lifecycle ? run(body) : state);
6797
+ command = pending;
6798
+ pending.then(() => {
6799
+ if (command === pending) command = void 0;
6800
+ }, () => {
6801
+ if (command === pending) command = void 0;
6802
+ });
6803
+ return pending;
6804
+ };
6805
+ const refreshAfterChange = () => {
6806
+ changeRevision += 1;
6807
+ if (afterChange !== void 0) return afterChange;
6808
+ const generation = lifecycle;
6809
+ const pending = Promise.resolve().then(async () => {
6810
+ while (generation === lifecycle) {
6811
+ await (command ?? read)?.catch(() => state);
6812
+ if (generation !== lifecycle) return state;
6813
+ const revision = changeRevision;
6814
+ await refresh();
6815
+ if (revision === changeRevision) return state;
6816
+ }
6817
+ return state;
6818
+ });
6819
+ afterChange = pending;
6820
+ pending.finally(() => {
6821
+ if (afterChange === pending) afterChange = void 0;
6822
+ });
6823
+ return pending;
6824
+ };
6825
+ const preferencesChanged = () => {
6826
+ publish({ ...state });
6827
+ };
6828
+ const storageChanged = (event) => {
6829
+ if (event.key === null) {
6830
+ seenInMemory.clear();
6831
+ unpersistedSeen.clear();
6832
+ } else if (event.key.startsWith(SEEN_UPDATES_KEY_PREFIX)) {
6833
+ seenInMemory.delete(event.key);
6834
+ unpersistedSeen.delete(event.key);
6835
+ }
6836
+ if (event.key === null || event.key === IGNORED_UPDATES_SESSION_KEY$1 || event.key === RESTART_SESSION_KEY || event.key.startsWith(SEEN_UPDATES_KEY_PREFIX)) preferencesChanged();
6837
+ };
6838
+ return {
6839
+ getSnapshot: () => state,
6840
+ subscribe: (listener) => {
6841
+ listeners.add(listener);
6842
+ return () => {
6843
+ listeners.delete(listener);
6844
+ };
6845
+ },
6846
+ start: () => {
6847
+ owners += 1;
6848
+ if (owners === 1) {
6849
+ refresh();
6850
+ timer = setInterval(() => {
6851
+ refresh();
6852
+ }, POLL_MS);
6853
+ if (typeof window !== "undefined") window.addEventListener("storage", storageChanged);
6854
+ }
6855
+ let released = false;
6856
+ return () => {
6857
+ if (released) return;
6858
+ released = true;
6859
+ owners -= 1;
6860
+ if (owners !== 0) return;
6861
+ if (timer !== void 0) clearInterval(timer);
6862
+ timer = void 0;
6863
+ if (typeof window !== "undefined") window.removeEventListener("storage", storageChanged);
6864
+ lifecycle += 1;
6865
+ requestSequence += 1;
6866
+ for (const controller of controllers) controller.abort();
6867
+ controllers.clear();
6868
+ read = void 0;
6869
+ command = void 0;
6870
+ afterChange = void 0;
6871
+ publish(initialState());
6872
+ };
6873
+ },
6874
+ refresh,
6875
+ refreshAfterChange,
6876
+ check: () => mutate({ check: true }),
6877
+ setEnabled: (enabled) => mutate({ enabled }),
6878
+ setIntervalHours: (intervalHours) => state.intervalHours === null ? Promise.reject(/* @__PURE__ */ new Error("This server does not support changing the check interval. Restart Harness to use this setting.")) : mutate({ intervalHours }),
6879
+ acknowledge: (snapshot = state) => {
6880
+ if (acknowledgeSnapshot(snapshot)) preferencesChanged();
6881
+ },
6882
+ preferencesChanged
6883
+ };
6884
+ }
6885
+ const updateNotifications = createUpdateNotificationsStore();
6886
+ const getUpdateNotificationsSnapshot = updateNotifications.getSnapshot;
6887
+ const subscribeUpdateNotifications = updateNotifications.subscribe;
6888
+ const refreshUpdateNotifications = updateNotifications.refresh;
6889
+ const refreshUpdateNotificationsAfterChange = updateNotifications.refreshAfterChange;
6890
+ const checkUpdateNotifications = updateNotifications.check;
6891
+ const setUpdateNotificationsEnabled = updateNotifications.setEnabled;
6892
+ const setUpdateNotificationsIntervalHours = updateNotifications.setIntervalHours;
6893
+ const notifyUpdatePreferencesChanged = updateNotifications.preferencesChanged;
6894
+ const acknowledgeUpdateNotifications = updateNotifications.acknowledge;
6895
+ function useUpdateNotifications() {
6896
+ return (0, react.useSyncExternalStore)(subscribeUpdateNotifications, getUpdateNotificationsSnapshot, getUpdateNotificationsSnapshot);
6897
+ }
6898
+ //#endregion
6899
+ //#region src/client/UpdateNotificationsPanel.tsx
6900
+ /** The same snapshot that drives the sidebar; actions keep their existing owner. */
6901
+ function UpdateNotificationsPanel({ snapshot, t, busy, onCheck, onEnabled, onIntervalHours, onUpdate, onOpenHost }) {
6902
+ const [pending, setPending] = (0, react.useState)(false);
6903
+ const [failed, setFailed] = (0, react.useState)(false);
6904
+ const run = async (action) => {
6905
+ setPending(true);
6906
+ setFailed(false);
6907
+ try {
6908
+ await action();
6909
+ } catch {
6910
+ setFailed(true);
6911
+ } finally {
6912
+ setPending(false);
6913
+ }
6914
+ };
6915
+ const entries = notificationNames(snapshot).map((name) => [name, snapshot.updates[name]]);
6916
+ const state = failed || snapshot.stale ? t("updateChecksFailed") : snapshot.checking || pending ? t("updateChecksChecking") : snapshot.checkedAt === null ? t("updateChecksPending") : entries.length > 0 ? t("updateChecksFound").replace("{0}", String(entries.length)) : t("updateChecksNone");
6917
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", {
6918
+ className: Market_module_css_default.updateChecks,
6919
+ "data-dsh-crate-update-checks": true,
6920
+ children: [
6921
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("summary", { children: [
6922
+ t("updateChecksTitle"),
6923
+ " ",
6924
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
6925
+ className: Market_module_css_default.updateChecksSummary,
6926
+ children: state
6927
+ })
6928
+ ] }),
6929
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
6930
+ className: Market_module_css_default.updateChecksControls,
6931
+ children: [
6932
+ HostSwitch !== null ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
6933
+ className: Market_module_css_default.updateChecksToggle,
6934
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(HostSwitch, {
6935
+ checked: snapshot.enabled,
6936
+ disabled: pending,
6937
+ label: t("updateChecksAutomatic"),
6938
+ onChange: (next) => {
6939
+ run(() => onEnabled(next));
6940
+ }
6941
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("updateChecksAutomatic") })]
6942
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", { children: [
6943
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
6944
+ type: "checkbox",
6945
+ checked: snapshot.enabled,
6946
+ disabled: pending,
6947
+ onChange: (event) => {
6948
+ const next = event.target.checked;
6949
+ run(() => onEnabled(next));
6950
+ }
6951
+ }),
6952
+ " ",
6953
+ t("updateChecksAutomatic")
6954
+ ] }),
6955
+ snapshot.intervalHours !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
6956
+ className: Market_module_css_default.updateChecksInterval,
6957
+ children: [t("updateChecksInterval"), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("select", {
6958
+ "aria-label": t("updateChecksInterval"),
6959
+ value: snapshot.intervalHours,
6960
+ disabled: pending,
6961
+ onChange: (event) => {
6962
+ const next = Number(event.target.value);
6963
+ if (isUpdateCheckIntervalHours(next)) run(() => onIntervalHours(next));
6964
+ },
6965
+ children: UPDATE_CHECK_INTERVAL_HOURS.map((hours) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
6966
+ value: hours,
6967
+ children: t(hours < 24 ? "updateChecksEveryHours" : "updateChecksEveryDays").replace("{0}", String(hours < 24 ? hours : hours / 24))
6968
+ }, hours))
6969
+ })]
6970
+ }),
6971
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
6972
+ variant: "ghost",
6973
+ size: "sm",
6974
+ disabled: pending || snapshot.checking,
6975
+ onClick: () => {
6976
+ run(onCheck);
6977
+ },
6978
+ children: t("updateChecksNow")
6979
+ })
6980
+ ]
6981
+ }),
6982
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
6983
+ className: Market_module_css_default.updateChecksHint,
6984
+ children: t(snapshot.intervalHours === null ? "updateChecksLegacyHint" : "updateChecksHint")
6985
+ }),
6986
+ (snapshot.stale || failed) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
6987
+ role: "status",
6988
+ className: Market_module_css_default.updateChecksHint,
6989
+ children: t("updateChecksFailedHint")
6990
+ }),
6991
+ snapshot.lastSuccessAt !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
6992
+ className: Market_module_css_default.updateChecksHint,
6993
+ children: t("updateChecksLastSuccess").replace("{0}", new Date(snapshot.lastSuccessAt).toLocaleString())
6994
+ }),
6995
+ entries.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
6996
+ className: Market_module_css_default.updateChecksList,
6997
+ children: entries.map(([name, status]) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
6998
+ className: Market_module_css_default.updateChecksPackage,
6999
+ children: [
7000
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("b", { children: name }),
7001
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", { children: [
7002
+ status.version ?? status.current ?? "—",
7003
+ " → ",
7004
+ status.eligibleVersion ?? status.latest
7005
+ ] }),
7006
+ status.kind === "generation" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("hostUpdateHint") })
7007
+ ]
7008
+ }), status.kind === "generation" ? onOpenHost !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
7009
+ variant: "ghost",
7010
+ size: "sm",
7011
+ onClick: () => onOpenHost(name),
7012
+ children: t("updateChecksOpenHost")
7013
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
7014
+ variant: "ghost",
7015
+ size: "sm",
7016
+ disabled: busy || snapshot.disabled.includes(name),
7017
+ onClick: () => onUpdate(name),
7018
+ children: t(status.restoreRequired ? "restoreOnline" : "update")
7019
+ })] }, name))
7020
+ })
7021
+ ]
7022
+ });
7023
+ }
7024
+ //#endregion
7025
+ //#region src/client/dismissed-host.ts
7026
+ /**
7027
+ * The host rows the user already cleared (#1184).
7028
+ *
7029
+ * Every finished row in the operations panel is a projection of the host's
7030
+ * own `/dsh-crate/status` answer, not a record this page owns: "clear
7031
+ * settled" and "dismiss" can only stop THIS page from drawing it. Before
7032
+ * #1184 that decision lived in a `useRef`, so the next mount — a reload, or
7033
+ * leaving the market and coming back — started with an empty set and the host
7034
+ * quietly put the same rows back on screen. The user had cleared them; the
7035
+ * page had simply forgotten.
7036
+ *
7037
+ * So the set is written down, next to the market's other page-local
7038
+ * bookkeeping (`dshm-drain-v1`, `dshm-settled-v1`). It is not market state:
7039
+ * nothing survives a profile reset here, and a different browser profile
7040
+ * clearing its own rows must not hide them in this one.
7041
+ *
7042
+ * The ids are the host's `operationId`s, which is also why the list can be
7043
+ * capped without losing anything current: an id is only ever asked about
7044
+ * while the host still reports that operation.
7045
+ */
7046
+ /** Where the cleared host rows are kept. */
7047
+ const DISMISSED_HOST_STORAGE_KEY = "dshm-dismissed-host-v1";
7048
+ /** Oldest first, newest last: the order that makes a cap drop the oldest. */
7049
+ function read() {
7050
+ try {
7051
+ const raw = window.localStorage.getItem(DISMISSED_HOST_STORAGE_KEY);
7052
+ if (raw === null) return [];
7053
+ const parsed = JSON.parse(raw);
7054
+ if (!Array.isArray(parsed)) return [];
7055
+ const out = [];
7056
+ for (const item of parsed) {
7057
+ if (typeof item !== "string" || item === "" || out.includes(item)) continue;
7058
+ out.push(item);
7059
+ }
7060
+ return out.slice(-100);
7061
+ } catch {
7062
+ return [];
7063
+ }
7064
+ }
7065
+ function write(ids) {
7066
+ try {
7067
+ window.localStorage.setItem(DISMISSED_HOST_STORAGE_KEY, JSON.stringify(ids.slice(-100)));
7068
+ } catch {}
7069
+ }
7070
+ let cache = null;
7071
+ /**
7072
+ * The ids to keep off screen, read once per page. The component holds this
7073
+ * set for the lifetime of the mount and asks it on every status poll, so the
7074
+ * parse happens once instead of once per render.
7075
+ */
7076
+ function dismissedHostIdSet() {
7077
+ cache ??= new Set(read());
7078
+ return cache;
7079
+ }
7080
+ /** The user cleared this host row: it must stay cleared across a reload. */
7081
+ function rememberDismissedHostId(id) {
7082
+ if (id === "") return;
7083
+ const ids = [...dismissedHostIdSet()];
7084
+ if (ids.includes(id)) return;
7085
+ ids.push(id);
7086
+ cache = new Set(ids.slice(-100));
7087
+ write([...cache]);
7088
+ }
7089
+ //#endregion
5968
7090
  //#region src/client/preset-panel.tsx
5969
7091
  /**
5970
7092
  * Diagnostics sub-panel — issue #98 phase 3 (plugin presets).
@@ -7806,7 +8928,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
7806
8928
  /**
7807
8929
  * The Market settings section: Discover / Favorites / Themes / Installed tabs over the
7808
8930
  * /dsh-crate/* host routes, with install/update/uninstall flows and the
7809
- * pending-restart bookkeeping in sessionStorage.
8931
+ * pending-restart bookkeeping in window.sessionStorage.
7810
8932
  */
7811
8933
  function isHostDependencyFinding(value) {
7812
8934
  if (value === null || typeof value !== "object") return false;
@@ -7819,29 +8941,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
7819
8941
  /** How long the page keeps asking for a market DSH unloaded, and how long one ask may take (#1151). */
7820
8942
  const RECONNECT_BUDGET_MS = 9e4;
7821
8943
  const RECONNECT_REQUEST_MS = 4e3;
8944
+ const UPDATE_CHECK_REQUEST_MS = 3e4;
7822
8945
  const IGNORED_UPDATES_SESSION_KEY = "dshm-updates-ignored";
7823
- const UNAVAILABLE_HOST_COMPATIBILITY = {
7824
- status: "unknown",
7825
- basis: "unavailable",
7826
- requirement: null,
7827
- declarations: []
7828
- };
7829
- /**
7830
- * Read the update reminders dismissed for this host process. The boot id is
7831
- * part of the value rather than the key so sessionStorage never accumulates
7832
- * one orphaned entry per process. Invalid and stale records fail open: an
7833
- * update reminder is safer than silently hiding one we cannot account for.
7834
- */
7835
- function ignoredUpdatesForBoot(boot) {
7836
- const saved = readSession(IGNORED_UPDATES_SESSION_KEY);
7837
- if (!(saved !== null && typeof saved === "object" && !Array.isArray(saved) && saved.boot === boot && Array.isArray(saved.names) && saved.names.every((name) => typeof name === "string" && name !== ""))) {
7838
- try {
7839
- sessionStorage.removeItem(IGNORED_UPDATES_SESSION_KEY);
7840
- } catch {}
7841
- return [];
7842
- }
7843
- return [...new Set(saved.names)];
7844
- }
7845
8946
  function HostDependencyDiagnostics({ findings, t }) {
7846
8947
  if (findings.length === 0) return null;
7847
8948
  const preview = findings.slice(0, HOST_DEPENDENCY_PREVIEW_LIMIT);
@@ -7926,6 +9027,16 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
7926
9027
  if (phase === "linking") return t("phaseLinking");
7927
9028
  return t("phaseBuilding");
7928
9029
  }
9030
+ /** Reset before effects can use the new query with the previous page or limit. */
9031
+ function useResettableCount(initial, deps) {
9032
+ const [count, setCount] = (0, react.useState)(initial);
9033
+ const [previousDeps, setPreviousDeps] = (0, react.useState)(deps);
9034
+ if (deps.length !== previousDeps.length || deps.some((value, index) => !Object.is(value, previousDeps[index]))) {
9035
+ setPreviousDeps(deps);
9036
+ setCount(initial);
9037
+ }
9038
+ return [count, setCount];
9039
+ }
7929
9040
  /**
7930
9041
  * Page/page-size state shared by every paged list in this file (Discover,
7931
9042
  * Themes) — each caller owns its OWN instance (their filters are
@@ -7935,11 +9046,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
7935
9046
  * the shared body on any page move) are one implementation, not two.
7936
9047
  */
7937
9048
  function usePagination(count, resetDeps, scrollToTop) {
7938
- const [page, setPage] = (0, react.useState)(1);
9049
+ const [page, setPage] = useResettableCount(1, resetDeps);
7939
9050
  const [pageSize, setPageSize] = (0, react.useState)(DEFAULT_PAGE_SIZE);
7940
- (0, react.useEffect)(() => {
7941
- setPage(1);
7942
- }, resetDeps);
7943
9051
  const totalPages = Math.max(1, Math.ceil(count / pageSize));
7944
9052
  const currentPage = Math.min(page, totalPages);
7945
9053
  const goToPage = (next) => {
@@ -7968,10 +9076,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
7968
9076
  * starts over, the same moment `usePagination` returns to page 1.
7969
9077
  */
7970
9078
  function useShownCount(count, resetDeps, chunk) {
7971
- const [limit, setLimit] = (0, react.useState)(chunk);
7972
- (0, react.useEffect)(() => {
7973
- setLimit(chunk);
7974
- }, resetDeps);
9079
+ const [limit, setLimit] = useResettableCount(chunk, resetDeps);
7975
9080
  const shown = Math.min(count, limit);
7976
9081
  return {
7977
9082
  shown,
@@ -8088,11 +9193,61 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
8088
9193
  items
8089
9194
  });
8090
9195
  }
9196
+ /**
9197
+ * The installed list's own order (#1142).
9198
+ *
9199
+ * Deliberately NOT the market's `FilterMenu`: that one sorts by downloads,
9200
+ * stars or the catalog's collection date, and an installed package has none
9201
+ * of the three. Same primitive, four options, one value — the list's order
9202
+ * is a single choice, not a field plus a direction.
9203
+ */
9204
+ function InstalledSortMenu({ value, onChange, t }) {
9205
+ const [open, setOpen] = (0, react.useState)(false);
9206
+ const items = (0, react.useMemo)(() => [
9207
+ {
9208
+ type: "label",
9209
+ id: "is-label",
9210
+ text: t("installedSortLabel")
9211
+ },
9212
+ {
9213
+ id: "installed:default",
9214
+ label: t("installedSortDefault")
9215
+ },
9216
+ {
9217
+ id: "installed:name",
9218
+ label: t("installedSortName")
9219
+ },
9220
+ {
9221
+ id: "installed:newest",
9222
+ label: t("installedSortNewest")
9223
+ },
9224
+ {
9225
+ id: "installed:oldest",
9226
+ label: t("installedSortOldest")
9227
+ }
9228
+ ], [t]);
9229
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Menu, {
9230
+ open,
9231
+ onClose: () => setOpen(false),
9232
+ selectedIds: ["installed:" + value],
9233
+ onSelect: (id) => onChange(id.slice(10)),
9234
+ align: "end",
9235
+ portal: true,
9236
+ anchor: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
9237
+ variant: "outline",
9238
+ size: "sm",
9239
+ icon: open ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconChevronUpOutline14, { size: 14 }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconChevronDownOutline14, { size: 14 }),
9240
+ onClick: () => setOpen((openNow) => !openNow),
9241
+ children: t("installedSort")
9242
+ }),
9243
+ items
9244
+ });
9245
+ }
8091
9246
  /** Keep an empty search actionable without changing the user's sort or block list. */
8092
- function EmptyResults({ blocked, onClear, t }) {
9247
+ function EmptyResults({ message, onClear, t }) {
8093
9248
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
8094
9249
  className: Market_module_css_default.empty,
8095
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: t(blocked ? "blockedFilteredEmpty" : "empty") }), onClear && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
9250
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: t(message) }), onClear && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
8096
9251
  variant: "outline",
8097
9252
  size: "sm",
8098
9253
  className: Market_module_css_default.retryBtn,
@@ -8576,6 +9731,10 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
8576
9731
  measuredThemePreviewTasks.clear();
8577
9732
  measuredThemePreviewResults.clear();
8578
9733
  }
9734
+ const discoveryScan = new DiscoveryScan(() => {
9735
+ resetScreenshotsCache();
9736
+ resetThemePreviewCache();
9737
+ });
8579
9738
  /** README fetch + geometry probes, shared across search/page remounts. */
8580
9739
  function measuredThemePreview(plugin) {
8581
9740
  const cached = measuredThemePreviewTasks.get(plugin.url);
@@ -8987,16 +10146,22 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
8987
10146
  return host;
8988
10147
  }
8989
10148
  /**
8990
- * 市场品牌标记:16 视口的线条箱子,描边跟随 `currentColor`。
10149
+ * Official-style market glyph: the shared block-grid brand mark converted to
10150
+ * the official monochrome icon form (16×16, fill="currentColor") so it
10151
+ * follows the active theme. Mirrors the settings-nav glyph used for the
10152
+ * "market" section id — both now draw the geometry in market-mark.ts, so the
10153
+ * nav entry and the section it opens cannot drift apart.
10154
+ *
10155
+ * Two animated forms, differing in what they are for rather than in looks:
8991
10156
  *
8992
- * `animated`(加载态)与 `ambient`(内容页标题)叠加同一条 3s 扫光;
8993
- * 菜单导航与包图标保持静态,分别由 `settings-nav-icon.ts` 的 mask 与
8994
- * `assets/logo.svg` 负责,所以这里不需要额外的静态分支。
10157
+ * - `animated` — the loading state. Motion is the whole signal, so under
10158
+ * `prefers-reduced-motion` it still moves, just without displacement.
10159
+ * - `ambient` — the section's own heading mark. Decoration, so the same
10160
+ * preference stops it dead.
8995
10161
  *
8996
- * 扫光靠 mask 只落在箱体线条上:一条 25° 斜向的光带在 3s 里从左侧外扫到
8997
- * 右侧外(前 0.9s),其余 2.1s 停在画面外。渐变用 11 档 stop 近似高斯衰减
8998
- * (σ ≈ 1.83 单位,半高宽约图标宽度的 27%),边缘没有硬边、不要窄成一条线。
8999
- * `useId` 保证同页多个标记的 mask / gradient id 不冲突。
10162
+ * Both draw the one timeline in the stylesheet: the grid breathes along the
10163
+ * diagonal and the block rides in behind that wave. They share `--dshm-cycle`
10164
+ * so the block cannot arrive after the wave it is supposed to follow.
9000
10165
  */
9001
10166
  function MarketLogo({ size = 16, style, animated = false, ambient = false, inset = 0 }) {
9002
10167
  const sweeping = animated || ambient;
@@ -9647,19 +10812,54 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
9647
10812
  * the Installed tab's red dot / 「更新」buttons flash off then on, and the
9648
10813
  * two entries disagree until both refetches finish.
9649
10814
  */
9650
- let cachedRegistry = null;
9651
10815
  let cachedInstalled = null;
10816
+ let cachedLocalDescriptions = {};
9652
10817
  let cachedRepoIdentities = null;
9653
10818
  let cachedRepoHints = null;
9654
- let cachedHostCompatibility = {};
9655
- let cachedHostVersion = void 0;
9656
- /** Names with an in-flight discovery-compatibility request (module-wide). */
9657
- const hostCompatibilityInFlight = /* @__PURE__ */ new Set();
9658
- /** Subscribers for useSyncExternalStore — every mounted MarketSection. */
9659
- const hostCompatibilityListeners = /* @__PURE__ */ new Set();
9660
- let cachedUpdates = {};
9661
- /** False until /dsh-crate/updates has answered at least once this process. */
9662
- let cachedUpdatesReady = false;
10819
+ const emptyUpdateCheck = {
10820
+ updates: {},
10821
+ installed: {},
10822
+ ready: false,
10823
+ failed: /* @__PURE__ */ new Set()
10824
+ };
10825
+ let updateCheckSnapshot = emptyUpdateCheck;
10826
+ let updateCheckBoot = null;
10827
+ let updateCheckRequest = 0;
10828
+ let updateCheckCommitted = 0;
10829
+ let installedCheckCommitted = 0;
10830
+ const updateCheckListeners = /* @__PURE__ */ new Set();
10831
+ /** A manual check on either surface fences older background samples on both. */
10832
+ const pendingUpdateNotificationReads = /* @__PURE__ */ new Set();
10833
+ function getUpdateCheckSnapshot() {
10834
+ return updateCheckSnapshot;
10835
+ }
10836
+ function subscribeUpdateCheck(listener) {
10837
+ updateCheckListeners.add(listener);
10838
+ return () => {
10839
+ updateCheckListeners.delete(listener);
10840
+ };
10841
+ }
10842
+ function publishUpdateCheck(snapshot) {
10843
+ updateCheckSnapshot = snapshot;
10844
+ for (const listener of updateCheckListeners) listener();
10845
+ }
10846
+ function releaseUpdateNotificationRead(request) {
10847
+ if (pendingUpdateNotificationReads.delete(request)) publishUpdateCheck({ ...updateCheckSnapshot });
10848
+ }
10849
+ function resetUpdateCheck(boot) {
10850
+ pendingUpdateNotificationReads.clear();
10851
+ updateCheckBoot = boot;
10852
+ updateCheckCommitted = ++updateCheckRequest;
10853
+ installedCheckCommitted = updateCheckRequest;
10854
+ publishUpdateCheck(emptyUpdateCheck);
10855
+ }
10856
+ function observeUpdateCheckBoot(boot, previous) {
10857
+ if (previous !== updateCheckBoot) return false;
10858
+ if (updateCheckBoot === null) updateCheckBoot = boot;
10859
+ if (updateCheckBoot === boot) return false;
10860
+ resetUpdateCheck(boot);
10861
+ return true;
10862
+ }
9663
10863
  let cachedInstalledReady = false;
9664
10864
  let cachedSkins = [];
9665
10865
  let cachedDisabledNames = [];
@@ -9680,33 +10880,6 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
9680
10880
  });
9681
10881
  };
9682
10882
  }
9683
- /** Any cached answer counts — including unavailable. Re-querying every
9684
- * remount used to re-POST thousands of names; a host-version change (below)
9685
- * is what drops the map for a fresh scan. */
9686
- function hostCompatibilitySettled(name) {
9687
- return cachedHostCompatibility[name] !== void 0;
9688
- }
9689
- function clearHostCompatibilityCache() {
9690
- cachedHostCompatibility = {};
9691
- hostCompatibilityInFlight.clear();
9692
- for (const listener of hostCompatibilityListeners) listener();
9693
- }
9694
- function subscribeHostCompatibility(onStoreChange) {
9695
- hostCompatibilityListeners.add(onStoreChange);
9696
- return () => {
9697
- hostCompatibilityListeners.delete(onStoreChange);
9698
- };
9699
- }
9700
- /** Merge into the module cache and notify every mounted MarketSection — a
9701
- * sidebar/settings switch used to drop in-flight setStates and leave the
9702
- * note frozen at 「正在检查 665/2455」. */
9703
- function commitHostCompatibility(accepted) {
9704
- cachedHostCompatibility = {
9705
- ...cachedHostCompatibility,
9706
- ...accepted
9707
- };
9708
- for (const listener of hostCompatibilityListeners) listener();
9709
- }
9710
10883
  /** Discover grid page-size choices — the catalog grows daily, so cap each page. */
9711
10884
  const PAGE_SIZES = [
9712
10885
  24,
@@ -9717,7 +10890,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
9717
10890
  const WEBDAV_STORAGE_KEY = "dshm-webdav";
9718
10891
  function savedWebdav() {
9719
10892
  try {
9720
- const value = JSON.parse(localStorage.getItem(WEBDAV_STORAGE_KEY) ?? "{}");
10893
+ const value = JSON.parse(window.localStorage.getItem(WEBDAV_STORAGE_KEY) ?? "{}");
9721
10894
  return {
9722
10895
  url: typeof value.url === "string" ? value.url : "",
9723
10896
  username: typeof value.username === "string" ? value.username : "",
@@ -9765,10 +10938,59 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
9765
10938
  for (const [name, spec] of Object.entries(value)) if (typeof spec === "string") installed[name] = spec;
9766
10939
  return installed;
9767
10940
  }
10941
+ /** Optional /installed metadata: older hosts omit it, malformed values are not text. */
10942
+ function localDescriptionsFromUnknown(value) {
10943
+ if (value === null || typeof value !== "object" || Array.isArray(value)) return {};
10944
+ const descriptions = {};
10945
+ for (const [name, description] of Object.entries(value)) if (typeof description === "string" && description.trim() !== "") descriptions[name] = description.trim();
10946
+ return descriptions;
10947
+ }
9768
10948
  /** A `{name: {...}}` map, or anything else — for untyped server fields. */
9769
10949
  function isRecordOfRecords(value) {
9770
10950
  return value !== null && typeof value === "object" && !Array.isArray(value);
9771
10951
  }
10952
+ function isInstalledSnapshot(value) {
10953
+ return isRecordOfRecords(value) && Object.values(value).every((spec) => typeof spec === "string");
10954
+ }
10955
+ function isUpdateStatus(value) {
10956
+ if (value === null || typeof value !== "object" || Array.isArray(value)) return false;
10957
+ const status = value;
10958
+ return typeof status.updateAvailable === "boolean" && (status.checkFailed === void 0 || status.checkFailed === true) && (status.checkError === void 0 || status.checkError === "unavailable") && (status.kind === void 0 || typeof status.kind === "string") && (status.version === void 0 || status.version === null || typeof status.version === "string") && (status.latest === void 0 || status.latest === null || typeof status.latest === "string") && (status.current === void 0 || status.current === null || typeof status.current === "string");
10959
+ }
10960
+ function readUpdateStatuses(body) {
10961
+ const updates = body?.updates;
10962
+ if (!isRecordOfRecords(updates) || !Object.values(updates).every(isUpdateStatus)) throw new Error("Invalid update list");
10963
+ return updates;
10964
+ }
10965
+ function applyUpdateCheck(request, received, installed) {
10966
+ if (request < updateCheckCommitted) return;
10967
+ updateCheckCommitted = request;
10968
+ const previous = updateCheckSnapshot;
10969
+ const hasSameSpec = (name) => installed?.[name] !== void 0 && installed[name] === previous.installed[name];
10970
+ if (received === null) {
10971
+ const updates = installed === null ? previous.updates : Object.fromEntries(Object.entries(previous.updates).filter(([name]) => hasSameSpec(name)));
10972
+ publishUpdateCheck({
10973
+ ...previous,
10974
+ updates,
10975
+ installed: installed ?? previous.installed,
10976
+ failed: null
10977
+ });
10978
+ return;
10979
+ }
10980
+ const failed = /* @__PURE__ */ new Set();
10981
+ publishUpdateCheck({
10982
+ updates: Object.fromEntries(Object.entries(received).map(([name, status]) => {
10983
+ if (status.checkFailed !== true && status.checkError !== "unavailable") return [name, status];
10984
+ failed.add(name);
10985
+ const confirmed = previous.updates[name];
10986
+ if (hasSameSpec(name) && confirmed?.checkFailed !== true && confirmed?.checkError !== "unavailable" && typeof status.version === "string" && status.version === confirmed?.version && status.kind === confirmed.kind) return [name, confirmed];
10987
+ return [name, status];
10988
+ })),
10989
+ installed: installed ?? {},
10990
+ ready: installed !== null,
10991
+ failed
10992
+ });
10993
+ }
9772
10994
  function sameInstalledMap(left, right) {
9773
10995
  const names = Object.keys(left);
9774
10996
  return names.length === Object.keys(right).length && names.every((name) => left[name] === right[name]);
@@ -9925,21 +11147,6 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
9925
11147
  return list.filter((record) => record.id === keepId || record.id !== `host-${operationId}` && record.hostOperationId !== operationId);
9926
11148
  }
9927
11149
  /**
9928
- * Whether the "compatible with this host" filter starts on, and remembers the
9929
- * answer once the user disagrees with the default (#872).
9930
- *
9931
- * Storage may be unavailable (private mode, a locked-down webview); the
9932
- * default is what matters, so a failure to read it is not a failure.
9933
- */
9934
- const HOST_FILTER_KEY = "dshm-host-filter";
9935
- function readHostFilterPreference() {
9936
- try {
9937
- return localStorage.getItem(HOST_FILTER_KEY) !== "all";
9938
- } catch {
9939
- return true;
9940
- }
9941
- }
9942
- /**
9943
11150
  * 最近收录 display preferences: collapsed / hidden (#940).
9944
11151
  *
9945
11152
  * The block only appears on the discover tab with an empty search and both
@@ -9948,7 +11155,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
9948
11155
  * are display preferences, not profile settings: since 0.1.7 the settings
9949
11156
  * surface is deliberately just `allowRestart`.
9950
11157
  *
9951
- * Same read discipline as HOST_FILTER_KEY above: an unavailable store falls
11158
+ * When localStorage is unavailable, the preference falls
9952
11159
  * back to the default, and the default is "expanded and shown".
9953
11160
  */
9954
11161
  const RECENT_COLLAPSED_KEY = "dshm-recent-collapsed";
@@ -9958,28 +11165,28 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
9958
11165
  const RECENT_STRIP_LIMIT = 8;
9959
11166
  function readRecentFlag(key) {
9960
11167
  try {
9961
- return localStorage.getItem(key) === "1";
11168
+ return window.localStorage.getItem(key) === "1";
9962
11169
  } catch {
9963
11170
  return false;
9964
11171
  }
9965
11172
  }
9966
11173
  function writeRecentFlag(key, next) {
9967
11174
  try {
9968
- localStorage.setItem(key, next ? "1" : "0");
11175
+ window.localStorage.setItem(key, next ? "1" : "0");
9969
11176
  } catch {}
9970
11177
  }
9971
11178
  /** "不再提示" on the settings-page sidebar tip. A missing store means show it. */
9972
11179
  const SIDEBAR_TIP_KEY = "dshm-sidebar-tip-dismissed";
9973
11180
  function readSidebarTipDismissed() {
9974
11181
  try {
9975
- return localStorage.getItem(SIDEBAR_TIP_KEY) === "1";
11182
+ return window.localStorage.getItem(SIDEBAR_TIP_KEY) === "1";
9976
11183
  } catch {
9977
11184
  return false;
9978
11185
  }
9979
11186
  }
9980
11187
  function writeSidebarTipDismissed() {
9981
11188
  try {
9982
- localStorage.setItem(SIDEBAR_TIP_KEY, "1");
11189
+ window.localStorage.setItem(SIDEBAR_TIP_KEY, "1");
9983
11190
  } catch {}
9984
11191
  }
9985
11192
  /**
@@ -10119,6 +11326,9 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10119
11326
  const lang = String(localeSnap.active).toLowerCase().startsWith("zh") ? "zh" : "en";
10120
11327
  const surface = props.surface ?? "settings";
10121
11328
  const sidebar = props.sidebar;
11329
+ const notificationSnapshot = useUpdateNotifications();
11330
+ const latestNotification = (0, react.useRef)(notificationSnapshot);
11331
+ latestNotification.current = notificationSnapshot;
10122
11332
  const hostNavigation = props.hostNavigation;
10123
11333
  const openInHost = (0, react.useSyncExternalStore)((cb) => hostNavigation?.subscribe(cb) ?? (() => {}), () => hostNavigation?.get());
10124
11334
  const [sidebarSnap, setSidebarSnap] = (0, react.useState)(() => ({
@@ -10153,7 +11363,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10153
11363
  });
10154
11364
  }, [sidebar]);
10155
11365
  const themeSnap = (0, react.useSyncExternalStore)(props.themeStore.subscribe, props.themeStore.getSnapshot);
10156
- const [data, setData] = (0, react.useState)(cachedRegistry);
11366
+ const compatibility = (0, react.useSyncExternalStore)(discoveryScan.subscribe, discoveryScan.getSnapshot);
11367
+ const { catalog: data, enabled: compatibleWithHost, hostVersion, verdicts: hostCompatibility } = compatibility;
10157
11368
  const [loadError, setLoadError] = (0, react.useState)(null);
10158
11369
  /**
10159
11370
  * The host answered 404 on one of the market's own routes (#962).
@@ -10168,10 +11379,10 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10168
11379
  const [reconnecting, setReconnecting] = (0, react.useState)(true);
10169
11380
  const [reconnectRound, setReconnectRound] = (0, react.useState)(0);
10170
11381
  const [installed, setInstalledState] = (0, react.useState)(cachedInstalled ?? {});
10171
- const setInstalled = (0, react.useCallback)((value) => {
10172
- cachedInstalled = value;
10173
- setInstalledState(value);
10174
- }, []);
11382
+ const [localDescriptions, setLocalDescriptionsState] = (0, react.useState)(() => cachedLocalDescriptions);
11383
+ const setLocalDescriptions = (0, react.useCallback)(cacheState((value) => {
11384
+ cachedLocalDescriptions = value;
11385
+ }, setLocalDescriptionsState), []);
10175
11386
  const [repoIdentities, setRepoIdentitiesState] = (0, react.useState)(cachedRepoIdentities ?? {});
10176
11387
  const setRepoIdentities = (0, react.useCallback)((value) => {
10177
11388
  cachedRepoIdentities = value;
@@ -10191,8 +11402,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10191
11402
  cachedSkins = value;
10192
11403
  }, setSkinsState), []);
10193
11404
  const [tab, setTab] = (0, react.useState)(() => {
10194
- const saved = sessionStorage.getItem("dshm-tab");
10195
- if (saved !== null) sessionStorage.removeItem("dshm-tab");
11405
+ const saved = window.sessionStorage.getItem("dshm-tab");
11406
+ if (saved !== null) window.sessionStorage.removeItem("dshm-tab");
10196
11407
  return saved || "discover";
10197
11408
  });
10198
11409
  const [q, setQ] = (0, react.useState)("");
@@ -10242,20 +11453,15 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10242
11453
  * Persisted in localStorage so a refresh keeps the queue; only `queued`
10243
11454
  * records persist — `running` recovery stays on the dshm-pending paths.
10244
11455
  */
10245
- const [updates, setUpdatesState] = (0, react.useState)(() => cachedUpdates);
10246
- const setUpdates = (0, react.useCallback)(cacheState((value) => {
10247
- cachedUpdates = value;
10248
- }, setUpdatesState), []);
11456
+ const updateCheck = (0, react.useSyncExternalStore)(subscribeUpdateCheck, getUpdateCheckSnapshot);
11457
+ const { updates } = updateCheck;
10249
11458
  const queueRestoredRef = (0, react.useRef)(false);
10250
- const [queueSnapshotReady, setQueueSnapshotReady] = (0, react.useState)({
10251
- installed: cachedInstalledReady,
10252
- updates: cachedUpdatesReady
10253
- });
11459
+ const [installedReady, setInstalledReady] = (0, react.useState)(cachedInstalledReady);
10254
11460
  (0, react.useEffect)(() => {
10255
11461
  if (queueRestoredRef.current) return;
10256
11462
  let saved = null;
10257
11463
  try {
10258
- saved = JSON.parse(localStorage.getItem("dshm-queue-v1") ?? "null");
11464
+ saved = JSON.parse(window.localStorage.getItem("dshm-queue-v1") ?? "null");
10259
11465
  } catch {
10260
11466
  saved = null;
10261
11467
  }
@@ -10264,11 +11470,11 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10264
11470
  return;
10265
11471
  }
10266
11472
  if (data === null) return;
10267
- if (saved.some((row) => row?.kind === "update" || row?.kind === "uninstall") && !queueSnapshotReady.installed) return;
10268
- if (saved.some((row) => row?.kind === "update") && !queueSnapshotReady.updates) return;
11473
+ if (saved.some((row) => row?.kind === "update" || row?.kind === "uninstall") && !installedReady) return;
11474
+ if (saved.some((row) => row?.kind === "update" && (!updateCheck.ready || updateCheck.failed === null || updateCheck.failed.has(row.name)))) return;
10269
11475
  queueRestoredRef.current = true;
10270
11476
  try {
10271
- localStorage.removeItem("dshm-queue-v1");
11477
+ window.localStorage.removeItem("dshm-queue-v1");
10272
11478
  } catch {}
10273
11479
  /**
10274
11480
  * A queued row may only run while the world it was queued in still holds.
@@ -10364,8 +11570,9 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10364
11570
  data,
10365
11571
  t,
10366
11572
  lang,
10367
- queueSnapshotReady,
11573
+ installedReady,
10368
11574
  installed,
11575
+ updateCheck,
10369
11576
  updates
10370
11577
  ]);
10371
11578
  (0, react.useEffect)(() => {
@@ -10377,8 +11584,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10377
11584
  ...record.url === void 0 ? {} : { url: record.url },
10378
11585
  ...record.updateOptions === void 0 ? {} : { updateOptions: record.updateOptions }
10379
11586
  }));
10380
- if (queued.length === 0) localStorage.removeItem("dshm-queue-v1");
10381
- else localStorage.setItem("dshm-queue-v1", JSON.stringify(queued));
11587
+ if (queued.length === 0) window.localStorage.removeItem("dshm-queue-v1");
11588
+ else window.localStorage.setItem("dshm-queue-v1", JSON.stringify(queued));
10382
11589
  } catch {}
10383
11590
  }, [records]);
10384
11591
  /**
@@ -10403,7 +11610,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10403
11610
  settledRestoredRef.current = true;
10404
11611
  let saved = null;
10405
11612
  try {
10406
- saved = localStorage.getItem(SETTLED_STORAGE_KEY);
11613
+ saved = window.localStorage.getItem(SETTLED_STORAGE_KEY);
10407
11614
  } catch {
10408
11615
  saved = null;
10409
11616
  }
@@ -10428,8 +11635,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10428
11635
  }
10429
11636
  try {
10430
11637
  const settled = serializeSettled(records);
10431
- if (settled.length === 0) localStorage.removeItem(SETTLED_STORAGE_KEY);
10432
- else localStorage.setItem(SETTLED_STORAGE_KEY, JSON.stringify(settled));
11638
+ if (settled.length === 0) window.localStorage.removeItem(SETTLED_STORAGE_KEY);
11639
+ else window.localStorage.setItem(SETTLED_STORAGE_KEY, JSON.stringify(settled));
10433
11640
  } catch {}
10434
11641
  }, [records]);
10435
11642
  /** Raised by the card marker, so "查看详情" lands on the record itself. */
@@ -10525,6 +11732,9 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10525
11732
  * shows these plugins and their update actions; only proactive prompts use
10526
11733
  * this set. */
10527
11734
  const [ignoredUpdateNames, setIgnoredUpdateNames] = (0, react.useState)([]);
11735
+ (0, react.useEffect)(() => {
11736
+ notifyUpdatePreferencesChanged();
11737
+ }, [ignoredUpdateNames]);
10528
11738
  const [updatingName, setUpdatingName] = (0, react.useState)(null);
10529
11739
  /** Update-notes dialog (#294): which row opened it, and what it resolved to. */
10530
11740
  const [notesFor, setNotesFor] = (0, react.useState)(null);
@@ -10613,6 +11823,21 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10613
11823
  }, setDisabledNamesState), []);
10614
11824
  /** The user's own note per plugin (#347): package name → text. */
10615
11825
  const [notes, setNotes] = (0, react.useState)({});
11826
+ /**
11827
+ * When this market installed/updated each package (#1142). Only packages
11828
+ * the market itself installed have an entry: the CLI and the host's own
11829
+ * plugins page leave nothing on disk that says when, and the row shows
11830
+ * `—` rather than guessing from a directory mtime pnpm rewrites.
11831
+ */
11832
+ const [installTimes, setInstallTimes] = (0, react.useState)({});
11833
+ /**
11834
+ * How the installed list is ordered (#1142). Its own value, NOT the
11835
+ * market's `SortField`: that one is downloads/stars/added, and none of the
11836
+ * three exist for an installed package — `added` is the catalog's
11837
+ * collection date, which is a different question from when the user
11838
+ * installed it.
11839
+ */
11840
+ const [installedSort, setInstalledSort] = (0, react.useState)("default");
10616
11841
  /** Catalog URLs bookmarked for later install (#414). */
10617
11842
  const [favoriteUrls, setFavoriteUrlsState] = (0, react.useState)(() => cachedFavoriteUrls);
10618
11843
  const setFavoriteUrls = (0, react.useCallback)(cacheState((value) => {
@@ -10624,6 +11849,13 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10624
11849
  cachedBlockedNames = value;
10625
11850
  }, setBlockedNamesState), []);
10626
11851
  const [updateExemptNames, setUpdateExemptNames] = (0, react.useState)([]);
11852
+ (0, react.useEffect)(() => {
11853
+ refreshUpdateNotificationsAfterChange();
11854
+ }, [
11855
+ updateExemptNames,
11856
+ disabledNames,
11857
+ blockedNames
11858
+ ]);
10627
11859
  /** Rows the user asked to show the AUTHOR's description on, despite a note. */
10628
11860
  const [showTheirs, setShowTheirs] = (0, react.useState)([]);
10629
11861
  /** The row whose note is being edited, and the text in the box. */
@@ -10683,7 +11915,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10683
11915
  * "npm latest" beside a number that is not npm's latest is a bug report
10684
11916
  * waiting to be filed. Null until the catalog answers.
10685
11917
  */
10686
- const [catalogUpdated, setCatalogUpdated] = (0, react.useState)(null);
11918
+ const catalogUpdated = data?.updated?.trim() || null;
10687
11919
  const catalogVersionTip = (0, react.useMemo)(() => catalogUpdated === null ? t("catalogVersionUndated") : t("catalogVersionDated").replace("{0}", catalogUpdated), [catalogUpdated, t]);
10688
11920
  /** Non-live activation results from the last operation, shown as a banner. */
10689
11921
  const [activationWarnings, setActivationWarnings] = (0, react.useState)([]);
@@ -10781,7 +12013,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10781
12013
  /** Gist id — persisted across reloads (non-sensitive: the Gist itself is private). */
10782
12014
  const [gistId, setGistId] = (0, react.useState)(() => {
10783
12015
  try {
10784
- return localStorage.getItem("dshm-gist-id") ?? "";
12016
+ return window.localStorage.getItem("dshm-gist-id") ?? "";
10785
12017
  } catch {
10786
12018
  return "";
10787
12019
  }
@@ -10789,7 +12021,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10789
12021
  /** Export mode: 'update' PATCHes the Gist in the field, 'create' makes a new one. */
10790
12022
  const [gistMode, setGistMode] = (0, react.useState)(() => {
10791
12023
  try {
10792
- return localStorage.getItem("dshm-gist-id") ? "update" : "create";
12024
+ return window.localStorage.getItem("dshm-gist-id") ? "update" : "create";
10793
12025
  } catch {
10794
12026
  return "create";
10795
12027
  }
@@ -10821,26 +12053,13 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10821
12053
  const [sortField, setSortField] = (0, react.useState)("downloads");
10822
12054
  const [sortDir, setSortDir] = (0, react.useState)("desc");
10823
12055
  const [timeRange, setTimeRange] = (0, react.useState)("all");
10824
- /** Undefined while the first catalog response is pending; null means the host cannot be located. */
10825
- const [hostVersion, setHostVersionState] = (0, react.useState)(() => cachedHostVersion);
10826
- const setHostVersion = (0, react.useCallback)((value) => {
10827
- if (typeof cachedHostVersion === "string" && typeof value === "string" && value !== cachedHostVersion) clearHostCompatibilityCache();
10828
- cachedHostVersion = value;
10829
- setHostVersionState(value);
10830
- }, []);
10831
- /** v1 is deliberately opt-in: undeclared/unknown entries stay visible even when enabled. */
10832
- const [compatibleWithHost, setCompatibleWithHostState] = (0, react.useState)(readHostFilterPreference);
10833
12056
  const setCompatibleWithHost = (0, react.useCallback)((next) => {
10834
- setCompatibleWithHostState(next);
10835
- try {
10836
- localStorage.setItem(HOST_FILTER_KEY, next ? "compatible" : "all");
10837
- } catch {}
12057
+ discoveryScan.setEnabled(next);
10838
12058
  }, []);
10839
12059
  /** The profile this page is running in, for the manual command's own
10840
12060
  * `--profile` token (#872). The catalog's is always `web`. */
10841
12061
  const [profileName, setProfileName] = (0, react.useState)(null);
10842
- const hostCompatibility = (0, react.useSyncExternalStore)(subscribeHostCompatibility, () => cachedHostCompatibility, () => cachedHostCompatibility);
10843
- const [hostCompatibilityPending, setHostCompatibilityPending] = (0, react.useState)(0);
12062
+ const compatibilityDemandOwner = (0, react.useRef)({});
10844
12063
  const [catsOpen, setCatsOpen] = (0, react.useState)(false);
10845
12064
  /** Themes tab: independent from Discover's sort/time state above — a
10846
12065
  * search or sort choice in one tab has no business resetting the other. */
@@ -10890,18 +12109,81 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10890
12109
  });
10891
12110
  /** True while the drain is executing one queued request (no parallel starts). */
10892
12111
  const drainingRef = (0, react.useRef)(false);
10893
- const refreshInstalled = (0, react.useCallback)((force) => {
10894
- fetch(api("/dsh-crate/installed"), { cache: "no-store" }).then((res) => res.json()).then((body) => {
10895
- setInstalled(body.installed || {});
12112
+ const mounted = (0, react.useRef)(false);
12113
+ const refreshRequest = (0, react.useRef)(0);
12114
+ const refreshInFlight = (0, react.useRef)(false);
12115
+ const bridgedNotification = (0, react.useRef)(null);
12116
+ const notificationReads = (0, react.useRef)(/* @__PURE__ */ new Set());
12117
+ const [checkingUpdates, setCheckingUpdates] = (0, react.useState)(false);
12118
+ (0, react.useEffect)(() => {
12119
+ mounted.current = true;
12120
+ return () => {
12121
+ mounted.current = false;
12122
+ refreshRequest.current = 0;
12123
+ refreshInFlight.current = false;
12124
+ for (const request of notificationReads.current) releaseUpdateNotificationRead(request);
12125
+ notificationReads.current.clear();
12126
+ };
12127
+ }, []);
12128
+ const refreshInstalled = (0, react.useCallback)((force, notification) => {
12129
+ if (!mounted.current) return;
12130
+ const request = ++updateCheckRequest;
12131
+ const boot = updateCheckBoot;
12132
+ refreshRequest.current = request;
12133
+ refreshInFlight.current = true;
12134
+ if (notification === void 0) {
12135
+ bridgedNotification.current = latestNotification.current;
12136
+ notificationReads.current.add(request);
12137
+ pendingUpdateNotificationReads.add(request);
12138
+ }
12139
+ const ownsRefresh = () => mounted.current && refreshRequest.current === request;
12140
+ const isCurrent = () => ownsRefresh() && (boot === null || boot === updateCheckBoot) && (notification === void 0 || updateCheckBoot === null || notification.boot === updateCheckBoot);
12141
+ setCheckingUpdates(true);
12142
+ const requestOptions = {
12143
+ cache: "no-store",
12144
+ signal: AbortSignal.timeout(UPDATE_CHECK_REQUEST_MS)
12145
+ };
12146
+ const installRead = fetch(api("/dsh-crate/installed"), requestOptions).then((res) => {
12147
+ if (!res.ok) throw new Error(`HTTP ${String(res.status)}`);
12148
+ return res.json();
12149
+ }).then((body) => {
12150
+ if (!isCurrent() || !isInstalledSnapshot(body?.installed)) return null;
12151
+ const installed = body.installed;
12152
+ if (request >= installedCheckCommitted) {
12153
+ cachedInstalled = installed;
12154
+ installedCheckCommitted = request;
12155
+ }
12156
+ setInstalledState(installed);
12157
+ if (notification !== void 0) {
12158
+ cachedInstalledReady = true;
12159
+ setInstalledReady(true);
12160
+ return installed;
12161
+ }
12162
+ setLocalDescriptions(localDescriptionsFromUnknown(body.descriptions));
10896
12163
  setRepoIdentities(installedRepoIdentities(body.repoIdentities));
10897
12164
  setRepoHints(installedRepoHints(body.repoHints));
10898
- setInstalledFiles(Array.isArray(body.present) ? body.present : Object.keys(body.installed || {}));
12165
+ setInstalledFiles(Array.isArray(body.present) ? body.present : Object.keys(installed));
10899
12166
  setSkins(body.live || []);
10900
12167
  if (Array.isArray(body.disabled)) {
10901
12168
  setDisabledNames(body.disabled);
10902
12169
  if (loadedDisabled.current === null) loadedDisabled.current = new Set(body.disabled);
10903
12170
  }
10904
12171
  if (body.notes !== null && typeof body.notes === "object" && !Array.isArray(body.notes)) setNotes(body.notes);
12172
+ if (body.installTimes !== null && typeof body.installTimes === "object" && !Array.isArray(body.installTimes)) {
12173
+ const stamps = {};
12174
+ for (const [name, raw] of Object.entries(body.installTimes)) {
12175
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) continue;
12176
+ const record = raw;
12177
+ const installedAt = typeof record.installedAt === "string" ? record.installedAt : void 0;
12178
+ const updatedAt = typeof record.updatedAt === "string" ? record.updatedAt : void 0;
12179
+ if (installedAt === void 0 && updatedAt === void 0) continue;
12180
+ stamps[name] = {
12181
+ ...installedAt === void 0 ? {} : { installedAt },
12182
+ ...updatedAt === void 0 ? {} : { updatedAt }
12183
+ };
12184
+ }
12185
+ setInstallTimes(stamps);
12186
+ }
10905
12187
  if (Array.isArray(body.patchDisabled)) setPatchDisabledNames(body.patchDisabled);
10906
12188
  if (typeof body.profile === "string") setProfileName(body.profile);
10907
12189
  if (Array.isArray(body.unbundled)) setUnbundledNames(body.unbundled);
@@ -10918,19 +12200,49 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10918
12200
  installedReadGen.current += 1;
10919
12201
  setHostDependencyFindings(findings);
10920
12202
  cachedInstalledReady = true;
10921
- setQueueSnapshotReady((ready) => ({
10922
- ...ready,
10923
- installed: true
10924
- }));
10925
- }).catch(() => {});
10926
- fetch(api("/dsh-crate/updates") + (force === true ? "?force=1" : ""), { cache: "no-store" }).then((res) => res.json()).then((body) => {
10927
- setUpdates(body.updates || {});
10928
- cachedUpdatesReady = true;
10929
- setQueueSnapshotReady((ready) => ({
10930
- ...ready,
10931
- updates: true
10932
- }));
10933
- }).catch(() => {});
12203
+ setInstalledReady(true);
12204
+ return installed;
12205
+ }).catch(() => null);
12206
+ const updateRead = notification !== void 0 ? Promise.resolve(notification.updates) : fetch(api("/dsh-crate/updates") + (force === true ? "?force=1" : ""), requestOptions).then((res) => {
12207
+ if (!res.ok) throw new Error(`HTTP ${String(res.status)}`);
12208
+ return res.json();
12209
+ }).then(readUpdateStatuses).catch(() => {
12210
+ if (isCurrent()) applyUpdateCheck(request, null, null);
12211
+ if (ownsRefresh()) {
12212
+ refreshInFlight.current = false;
12213
+ setCheckingUpdates(false);
12214
+ }
12215
+ return null;
12216
+ });
12217
+ Promise.all([updateRead, installRead]).then(([received, installed]) => {
12218
+ if (isCurrent()) {
12219
+ if (notification?.checkedAt === null && request >= updateCheckCommitted) {
12220
+ updateCheckCommitted = request;
12221
+ publishUpdateCheck({
12222
+ ...emptyUpdateCheck,
12223
+ installed: installed ?? {}
12224
+ });
12225
+ } else {
12226
+ applyUpdateCheck(request, received, installed);
12227
+ if (notification?.error != null && request === updateCheckCommitted && updateCheckSnapshot.failed?.size === 0) publishUpdateCheck({
12228
+ ...updateCheckSnapshot,
12229
+ failed: null
12230
+ });
12231
+ }
12232
+ }
12233
+ if (notification === void 0) {
12234
+ const release = () => {
12235
+ notificationReads.current.delete(request);
12236
+ releaseUpdateNotificationRead(request);
12237
+ };
12238
+ if (ownsRefresh()) refreshUpdateNotificationsAfterChange().finally(release);
12239
+ else release();
12240
+ }
12241
+ if (ownsRefresh()) {
12242
+ refreshInFlight.current = false;
12243
+ setCheckingUpdates(false);
12244
+ }
12245
+ });
10934
12246
  }, [
10935
12247
  setActivations,
10936
12248
  setBlockedNames,
@@ -10938,8 +12250,20 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10938
12250
  setFavoriteUrls,
10939
12251
  setInstalledBundles,
10940
12252
  setInstalledFiles,
10941
- setSkins,
10942
- setUpdates
12253
+ setLocalDescriptions,
12254
+ setSkins
12255
+ ]);
12256
+ (0, react.useEffect)(() => {
12257
+ if (!notificationSnapshot.loaded || notificationSnapshot.readFailed || notificationSnapshot.checking || refreshInFlight.current || pendingUpdateNotificationReads.size > 0 || updateCheckBoot !== null && notificationSnapshot.boot !== updateCheckBoot) return;
12258
+ const previous = bridgedNotification.current;
12259
+ if (previous?.updates === notificationSnapshot.updates && previous.checkedAt === notificationSnapshot.checkedAt && previous.error === notificationSnapshot.error && previous.boot === notificationSnapshot.boot) return;
12260
+ bridgedNotification.current = notificationSnapshot;
12261
+ refreshInstalled(void 0, notificationSnapshot);
12262
+ }, [
12263
+ notificationSnapshot,
12264
+ checkingUpdates,
12265
+ updateCheck,
12266
+ refreshInstalled
10943
12267
  ]);
10944
12268
  /**
10945
12269
  * Host-owned deferred operations (#411).
@@ -10952,23 +12276,29 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10952
12276
  */
10953
12277
  const settledHostRef = (0, react.useRef)(/* @__PURE__ */ new Set());
10954
12278
  const knownHostIdsRef = (0, react.useRef)(/* @__PURE__ */ new Set());
10955
- /** Host operations the user cleared; a status poll must not add them back. */
10956
- const dismissedHostRef = (0, react.useRef)(/* @__PURE__ */ new Set());
12279
+ /**
12280
+ * Host operations the user cleared; a status poll must not add them back —
12281
+ * and neither must a reload. The set is read from storage and written back
12282
+ * per id, because these rows belong to the host: clearing one only ever
12283
+ * hides it here, so a set that lived only in memory brought the row back on
12284
+ * the next mount (#1184).
12285
+ */
12286
+ const dismissedHostRef = (0, react.useRef)(dismissedHostIdSet());
10957
12287
  const drainMarkerRestoredRef = (0, react.useRef)(false);
10958
12288
  const clearDrainMarker = (0, react.useCallback)((operationId) => {
10959
12289
  try {
10960
- const raw = localStorage.getItem("dshm-drain-v1");
12290
+ const raw = window.localStorage.getItem("dshm-drain-v1");
10961
12291
  if (raw === null) return;
10962
12292
  const parsed = JSON.parse(raw);
10963
12293
  if (!Array.isArray(parsed)) return;
10964
12294
  const kept = parsed.filter((entry) => entry?.id !== operationId);
10965
- if (kept.length === 0) localStorage.removeItem("dshm-drain-v1");
10966
- else localStorage.setItem("dshm-drain-v1", JSON.stringify(kept));
12295
+ if (kept.length === 0) window.localStorage.removeItem("dshm-drain-v1");
12296
+ else window.localStorage.setItem("dshm-drain-v1", JSON.stringify(kept));
10967
12297
  } catch {}
10968
12298
  }, []);
10969
12299
  const rememberDrainMarker = (0, react.useCallback)((operation) => {
10970
12300
  try {
10971
- const raw = localStorage.getItem("dshm-drain-v1");
12301
+ const raw = window.localStorage.getItem("dshm-drain-v1");
10972
12302
  const parsed = raw === null ? [] : JSON.parse(raw);
10973
12303
  const list = Array.isArray(parsed) ? parsed : [];
10974
12304
  if (list.some((entry) => entry?.id === operation.operationId)) return;
@@ -10978,7 +12308,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10978
12308
  name: operation.name,
10979
12309
  ...operation.url === void 0 ? {} : { url: operation.url }
10980
12310
  });
10981
- localStorage.setItem("dshm-drain-v1", JSON.stringify(list));
12311
+ window.localStorage.setItem("dshm-drain-v1", JSON.stringify(list));
10982
12312
  } catch {}
10983
12313
  }, []);
10984
12314
  /** Mark operations this page started in an earlier boot as cancelled by restart. */
@@ -10989,7 +12319,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
10989
12319
  drainMarkerRestoredRef.current = true;
10990
12320
  let saved = null;
10991
12321
  try {
10992
- saved = JSON.parse(localStorage.getItem("dshm-drain-v1") ?? "null");
12322
+ saved = JSON.parse(window.localStorage.getItem("dshm-drain-v1") ?? "null");
10993
12323
  } catch {
10994
12324
  saved = null;
10995
12325
  }
@@ -11022,8 +12352,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11022
12352
  setOperationsOpen(true);
11023
12353
  }
11024
12354
  try {
11025
- if (current.length > 0) localStorage.setItem("dshm-drain-v1", JSON.stringify(current));
11026
- else localStorage.removeItem("dshm-drain-v1");
12355
+ if (current.length > 0) window.localStorage.setItem("dshm-drain-v1", JSON.stringify(current));
12356
+ else window.localStorage.removeItem("dshm-drain-v1");
11027
12357
  } catch {}
11028
12358
  }, [t]);
11029
12359
  /** Project Host-owned operations into the Tasks panel. */
@@ -11195,6 +12525,9 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11195
12525
  * with the user left to guess whether the plugin landed.
11196
12526
  */
11197
12527
  const noteMarketGone = (0, react.useCallback)(() => {
12528
+ discoveryScan.setUnavailable();
12529
+ refreshRequest.current = 0;
12530
+ setCheckingUpdates(false);
11198
12531
  setMarketGone(true);
11199
12532
  setBusyUrl(null);
11200
12533
  setUpdatingName(null);
@@ -11205,10 +12538,13 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11205
12538
  reason: t("marketGoneRecord")
11206
12539
  } : record));
11207
12540
  try {
11208
- sessionStorage.removeItem("dshm-pending");
11209
- sessionStorage.removeItem("dshm-updating");
12541
+ window.sessionStorage.removeItem("dshm-pending");
12542
+ window.sessionStorage.removeItem("dshm-updating");
11210
12543
  } catch {}
11211
12544
  }, [t]);
12545
+ (0, react.useEffect)(() => {
12546
+ if (compatibility.gone) noteMarketGone();
12547
+ }, [compatibility.gone, noteMarketGone]);
11212
12548
  /**
11213
12549
  * The status payload, or `null` when the route answered 404 (#962). Every
11214
12550
  * poll that reads this stops on the null: the market is no longer mounted,
@@ -11223,25 +12559,11 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11223
12559
  }, [noteMarketGone]);
11224
12560
  const loadCatalog = (0, react.useCallback)(() => {
11225
12561
  setLoadError(null);
11226
- return fetch(api("/dsh-crate/registry"), { cache: "no-store" }).then(async (res) => {
11227
- const body = await res.json().catch(() => ({}));
11228
- if (res.status === 404) {
12562
+ return discoveryScan.resume().then((outcome) => {
12563
+ if (outcome === "gone") {
11229
12564
  noteMarketGone();
11230
12565
  throw new Error(t("marketGoneTitle"));
11231
12566
  }
11232
- if (!res.ok) throw new Error(typeof body.error === "string" ? body.error : `HTTP ${String(res.status)}`);
11233
- return body;
11234
- }).then((body) => {
11235
- if (body.registry === void 0) throw new Error("the catalog response carried no data");
11236
- if (body.registry.updated !== cachedRegistry?.updated) {
11237
- resetScreenshotsCache();
11238
- resetThemePreviewCache();
11239
- }
11240
- cachedRegistry = body.registry;
11241
- setData(body.registry);
11242
- const catalogDate = body.registry.updated;
11243
- setCatalogUpdated(typeof catalogDate === "string" && catalogDate.trim() !== "" ? catalogDate : null);
11244
- setHostVersion(typeof body.hostVersion === "string" ? body.hostVersion : null);
11245
12567
  setLoadError(null);
11246
12568
  }).catch((error) => {
11247
12569
  setLoadError(error instanceof Error ? error.message : String(error));
@@ -11266,6 +12588,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11266
12588
  let inFlight;
11267
12589
  let stopped = false;
11268
12590
  const attempt = async () => {
12591
+ const boot = updateCheckBoot;
11269
12592
  inFlight = new AbortController();
11270
12593
  const cutoff = setTimeout(() => inFlight?.abort(), RECONNECT_REQUEST_MS);
11271
12594
  try {
@@ -11275,6 +12598,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11275
12598
  });
11276
12599
  const status = res.ok ? await res.json() : null;
11277
12600
  if (!stopped && status !== null && typeof status === "object" && typeof status.boot === "string") {
12601
+ discoveryScan.setBoot(status.boot);
12602
+ observeUpdateCheckBoot(status.boot, boot);
11278
12603
  setMarketGone(false);
11279
12604
  loadCatalog();
11280
12605
  refreshInstalled();
@@ -11307,56 +12632,9 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11307
12632
  loadCatalog,
11308
12633
  refreshInstalled
11309
12634
  ]);
11310
- const loadHostCompatibility = (0, react.useCallback)(async (names) => {
11311
- const unique = [...new Set(names)].filter((name) => {
11312
- if (name === "" || hostCompatibilitySettled(name) || hostCompatibilityInFlight.has(name)) return false;
11313
- hostCompatibilityInFlight.add(name);
11314
- return true;
11315
- });
11316
- if (unique.length === 0) return;
11317
- setHostCompatibilityPending((count) => count + unique.length);
11318
- for (let offset = 0; offset < unique.length; offset += 64) {
11319
- const chunk = unique.slice(offset, offset + 64);
11320
- try {
11321
- const response = await fetch(api("/dsh-crate/discovery-compatibility"), {
11322
- method: "POST",
11323
- headers: { "content-type": "application/json" },
11324
- body: JSON.stringify({
11325
- packages: chunk.filter((key) => !key.startsWith("https://")),
11326
- ...chunk.some((key) => key.startsWith("https://")) ? { entries: chunk.filter((key) => key.startsWith("https://")) } : {}
11327
- })
11328
- });
11329
- const body = await response.json();
11330
- if (!response.ok || body.plugins === null || typeof body.plugins !== "object") throw new Error(`HTTP ${String(response.status)}`);
11331
- if (typeof body.hostVersion === "string" || body.hostVersion === null) setHostVersion(body.hostVersion);
11332
- const accepted = {};
11333
- for (const name of chunk) {
11334
- const item = body.plugins[name];
11335
- if (item === null || item === void 0 || ![
11336
- "compatible",
11337
- "incompatible",
11338
- "unknown"
11339
- ].includes(item.status) || ![
11340
- "manifest",
11341
- "undeclared",
11342
- "unavailable"
11343
- ].includes(item.basis) || item.requirement !== null && typeof item.requirement !== "string" || !Array.isArray(item.declarations)) {
11344
- accepted[name] = UNAVAILABLE_HOST_COMPATIBILITY;
11345
- continue;
11346
- }
11347
- accepted[name] = item;
11348
- }
11349
- commitHostCompatibility(accepted);
11350
- } catch {
11351
- commitHostCompatibility(Object.fromEntries(chunk.map((name) => [name, UNAVAILABLE_HOST_COMPATIBILITY])));
11352
- } finally {
11353
- for (const name of chunk) hostCompatibilityInFlight.delete(name);
11354
- setHostCompatibilityPending((count) => Math.max(0, count - chunk.length));
11355
- }
11356
- }
11357
- }, [setHostVersion]);
11358
12635
  (0, react.useEffect)(() => {
11359
12636
  loadCatalog();
12637
+ const boot = updateCheckBoot;
11360
12638
  fetch(api("/dsh-crate/status"), { cache: "no-store" }).then(readMarketStatus).then((status) => {
11361
12639
  if (status === null) return;
11362
12640
  statusRef.current = {
@@ -11370,10 +12648,12 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11370
12648
  setEnvReady(status.pnpm !== false);
11371
12649
  applyGithubRouting(status);
11372
12650
  if (typeof status.boot === "string") {
12651
+ discoveryScan.setBoot(status.boot);
12652
+ if (mounted.current && observeUpdateCheckBoot(status.boot, boot)) refreshInstalled();
11373
12653
  setBootId(status.boot);
11374
12654
  setIgnoredUpdateNames(ignoredUpdatesForBoot(status.boot));
11375
12655
  try {
11376
- setRestartNoticeDismissed(sessionStorage.getItem("dshm-restart-dismissed") === status.boot);
12656
+ setRestartNoticeDismissed(window.sessionStorage.getItem("dshm-restart-dismissed") === status.boot);
11377
12657
  } catch {}
11378
12658
  }
11379
12659
  setRestartEnabled(status.restart === true);
@@ -11383,6 +12663,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11383
12663
  if (typeof status.version === "string" && status.version !== "") setVersion(status.version);
11384
12664
  }).catch(() => {});
11385
12665
  refreshInstalled();
12666
+ refreshUpdateNotifications();
11386
12667
  }, [
11387
12668
  applyDrainStatus,
11388
12669
  refreshInstalled,
@@ -11395,7 +12676,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11395
12676
  const saved = readSession("dshm-restart");
11396
12677
  if (saved === null) return;
11397
12678
  if (saved.boot !== bootId) {
11398
- sessionStorage.removeItem("dshm-restart");
12679
+ window.sessionStorage.removeItem("dshm-restart");
11399
12680
  return;
11400
12681
  }
11401
12682
  if (Array.isArray(saved.doneUrls) && saved.doneUrls.length > 0) setDoneUrls(saved.doneUrls);
@@ -11407,10 +12688,11 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11407
12688
  (0, react.useEffect)(() => {
11408
12689
  if (bootId === null) return;
11409
12690
  if (doneUrls.length === 0 && updatedNames.length === 0 && restartNames.length === 0 && removedCount === 0 && toggleRestart === 0) {
11410
- sessionStorage.removeItem("dshm-restart");
12691
+ window.sessionStorage.removeItem("dshm-restart");
12692
+ notifyUpdatePreferencesChanged();
11411
12693
  return;
11412
12694
  }
11413
- sessionStorage.setItem("dshm-restart", JSON.stringify({
12695
+ window.sessionStorage.setItem("dshm-restart", JSON.stringify({
11414
12696
  boot: bootId,
11415
12697
  doneUrls,
11416
12698
  updated: updatedNames,
@@ -11418,6 +12700,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11418
12700
  removed: removedCount,
11419
12701
  toggled: toggleRestart
11420
12702
  }));
12703
+ notifyUpdatePreferencesChanged();
11421
12704
  }, [
11422
12705
  bootId,
11423
12706
  doneUrls,
@@ -11538,7 +12821,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11538
12821
  const url = busyUrl;
11539
12822
  if (data !== null && data.plugins.some((p) => p.url === url && isInstalled(p, statusInstalled, repoIdentities, data.plugins, repoHints))) {
11540
12823
  idleStrikes.current = 0;
11541
- sessionStorage.removeItem("dshm-pending");
12824
+ window.sessionStorage.removeItem("dshm-pending");
11542
12825
  const recovered = recoveredInstall.current;
11543
12826
  if (recovered !== null) {
11544
12827
  setRecords((list) => drop(list, recovered.id));
@@ -11553,7 +12836,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11553
12836
  setBusyUrl(null);
11554
12837
  } else if (++idleStrikes.current >= 2) {
11555
12838
  idleStrikes.current = 0;
11556
- sessionStorage.removeItem("dshm-pending");
12839
+ window.sessionStorage.removeItem("dshm-pending");
11557
12840
  const recovered = recoveredInstall.current;
11558
12841
  if (recovered !== null) {
11559
12842
  setRecords((list) => drop(list, recovered.id));
@@ -11571,7 +12854,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11571
12854
  if (updatingName !== null && status.busy !== true) {
11572
12855
  if (++updateIdleStrikes.current >= 2) {
11573
12856
  updateIdleStrikes.current = 0;
11574
- sessionStorage.removeItem("dshm-updating");
12857
+ window.sessionStorage.removeItem("dshm-updating");
11575
12858
  const recoveredId = recoveredUpdateRecordId.current;
11576
12859
  if (recoveredId !== null) {
11577
12860
  setRecords((list) => drop(list, recoveredId));
@@ -11663,6 +12946,32 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11663
12946
  qInstalled,
11664
12947
  installedView
11665
12948
  ]);
12949
+ (0, react.useLayoutEffect)(() => {
12950
+ const root = rootRef.current;
12951
+ if (surface !== "settings" || root === null || themesFullscreen) {
12952
+ root?.style.removeProperty("--dshm-head-h");
12953
+ return;
12954
+ }
12955
+ const head = headRef.current;
12956
+ if (head === null) return void 0;
12957
+ const apply = () => {
12958
+ root.style.setProperty("--dshm-head-h", `${String(Math.round(head.getBoundingClientRect().height))}px`);
12959
+ };
12960
+ apply();
12961
+ if (typeof ResizeObserver === "undefined") {
12962
+ window.addEventListener("resize", apply);
12963
+ return () => {
12964
+ window.removeEventListener("resize", apply);
12965
+ root.style.removeProperty("--dshm-head-h");
12966
+ };
12967
+ }
12968
+ const observer = new ResizeObserver(apply);
12969
+ observer.observe(head);
12970
+ return () => {
12971
+ observer.disconnect();
12972
+ root.style.removeProperty("--dshm-head-h");
12973
+ };
12974
+ }, [surface, themesFullscreen]);
11666
12975
  (0, react.useEffect)(() => {
11667
12976
  if (surface !== "plugins" || themesFullscreen) return void 0;
11668
12977
  const host = listScroller(surface, rootRef.current, null, false);
@@ -11748,32 +13057,6 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11748
13057
  clearPinVars();
11749
13058
  };
11750
13059
  }, [surface, themesFullscreen]);
11751
- (0, react.useLayoutEffect)(() => {
11752
- const root = rootRef.current;
11753
- if (surface !== "settings" || root === null || themesFullscreen) {
11754
- root?.style.removeProperty("--dshm-head-h");
11755
- return;
11756
- }
11757
- const head = headRef.current;
11758
- if (head === null) return void 0;
11759
- const apply = () => {
11760
- root.style.setProperty("--dshm-head-h", `${String(Math.round(head.getBoundingClientRect().height))}px`);
11761
- };
11762
- apply();
11763
- if (typeof ResizeObserver === "undefined") {
11764
- window.addEventListener("resize", apply);
11765
- return () => {
11766
- window.removeEventListener("resize", apply);
11767
- root.style.removeProperty("--dshm-head-h");
11768
- };
11769
- }
11770
- const observer = new ResizeObserver(apply);
11771
- observer.observe(head);
11772
- return () => {
11773
- observer.disconnect();
11774
- root.style.removeProperty("--dshm-head-h");
11775
- };
11776
- }, [surface, themesFullscreen]);
11777
13060
  const pluginsAll = (0, react.useMemo)(() => {
11778
13061
  if (data === null) return [];
11779
13062
  const query = {
@@ -11831,35 +13114,12 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11831
13114
  data,
11832
13115
  repoHints
11833
13116
  ]);
11834
- const { plugins, hostHiddenCount } = (0, react.useMemo)(() => {
11835
- if (!compatibleWithHost) return {
11836
- plugins: pluginsUnblocked,
11837
- hostHiddenCount: 0
11838
- };
11839
- const compatible = (plugin) => {
11840
- const key = hostCompatibilityKey(plugin);
11841
- return key === null || hostCompatibility[key]?.status !== "incompatible";
11842
- };
11843
- let hidden = 0;
11844
- for (const plugin of pluginsAll) if (!compatible(plugin)) hidden += 1;
11845
- return {
11846
- plugins: pluginsUnblocked.filter(compatible),
11847
- hostHiddenCount: hidden
11848
- };
11849
- }, [
11850
- pluginsAll,
11851
- pluginsUnblocked,
11852
- compatibleWithHost,
11853
- hostCompatibility
11854
- ]);
11855
13117
  const recentlyAdded = (0, react.useMemo)(() => data === null || tab !== "discover" || q.trim() !== "" || cat !== "all" || timeRange !== "all" || sortField !== "downloads" || sortDir !== "desc" ? [] : visiblePlugins(data.plugins, {
11856
13118
  category: "all",
11857
13119
  query: "",
11858
13120
  lang,
11859
13121
  sort: "downloads-desc",
11860
- sinceDays: 7,
11861
- hostCompatibility,
11862
- compatibleWithHost
13122
+ sinceDays: 7
11863
13123
  }).filter((plugin) => !pluginBlocked(plugin)), [
11864
13124
  data,
11865
13125
  tab,
@@ -11869,14 +13129,11 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11869
13129
  sortField,
11870
13130
  sortDir,
11871
13131
  lang,
11872
- hostCompatibility,
11873
- compatibleWithHost,
11874
13132
  blockedNameSet,
11875
13133
  installed,
11876
13134
  repoIdentities,
11877
13135
  repoHints
11878
13136
  ]);
11879
- const hasRecent = recentlyAdded.length > 0;
11880
13137
  const [recentCollapsed, setRecentCollapsed] = (0, react.useState)(() => readRecentFlag(RECENT_COLLAPSED_KEY));
11881
13138
  const [recentHidden, setRecentHidden] = (0, react.useState)(() => readRecentFlag(RECENT_HIDDEN_KEY));
11882
13139
  const toggleRecentCollapsed = (0, react.useCallback)(() => {
@@ -11894,43 +13151,31 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
11894
13151
  setRecentCollapsed(false);
11895
13152
  writeRecentFlag(RECENT_COLLAPSED_KEY, false);
11896
13153
  }, []);
11897
- const recentPlugins = recentlyAdded.slice(0, RECENT_STRIP_LIMIT);
11898
- const { currentPage, totalPages, pageSize, goToPage, changePageSize } = usePagination(plugins.length, [
11899
- q,
11900
- cat,
11901
- sortField,
11902
- sortDir,
11903
- timeRange,
11904
- compatibleWithHost
11905
- ], scrollToTop);
11906
- const discoverMore = useShownCount(plugins.length, [
13154
+ const discoverResetDeps = [
11907
13155
  q,
11908
13156
  cat,
11909
13157
  sortField,
11910
13158
  sortDir,
11911
- timeRange,
11912
- compatibleWithHost
11913
- ], DEFAULT_PAGE_SIZE);
11914
- const pagePlugins = surface === "plugins" ? plugins.slice(0, discoverMore.shown) : plugins.slice((currentPage - 1) * pageSize, currentPage * pageSize);
11915
- const pageHostPackages = [...new Set([...pagePlugins, ...recentPlugins].flatMap((plugin) => hostCompatibilityKey(plugin) === null ? [] : [hostCompatibilityKey(plugin)]))];
11916
- const allHostPackages = (0, react.useMemo)(() => [...new Set((data?.plugins ?? []).flatMap((plugin) => hostCompatibilityKey(plugin) === null ? [] : [hostCompatibilityKey(plugin)]))], [data]);
11917
- const pageHostPackagesKey = pageHostPackages.join("\0");
11918
- const allHostPackagesKey = allHostPackages.join("\0");
11919
- (0, react.useEffect)(() => {
11920
- if (tab === "discover") loadHostCompatibility(pageHostPackages);
11921
- }, [
11922
- tab,
11923
- pageHostPackagesKey,
11924
- loadHostCompatibility
11925
- ]);
11926
- (0, react.useEffect)(() => {
11927
- if (compatibleWithHost) loadHostCompatibility(allHostPackages);
11928
- }, [
11929
- compatibleWithHost,
11930
- allHostPackagesKey,
11931
- loadHostCompatibility
11932
- ]);
11933
- const loadedHostPackages = allHostPackages.reduce((count, name) => count + (hostCompatibility[name] === void 0 ? 0 : 1), 0);
13159
+ timeRange
13160
+ ];
13161
+ const { currentPage, totalPages, pageSize, goToPage, changePageSize } = usePagination(pluginsUnblocked.length, discoverResetDeps, scrollToTop);
13162
+ const discoverMore = useShownCount(pluginsUnblocked.length, discoverResetDeps, DEFAULT_PAGE_SIZE);
13163
+ const basePage = surface === "plugins" ? pluginsUnblocked.slice(0, discoverMore.shown) : pluginsUnblocked.slice((currentPage - 1) * pageSize, currentPage * pageSize);
13164
+ const baseRecent = recentlyAdded.slice(0, RECENT_STRIP_LIMIT);
13165
+ const hostVerdict = (plugin) => {
13166
+ const key = hostCompatibilityKey(plugin);
13167
+ return key === null ? void 0 : hostCompatibility[key];
13168
+ };
13169
+ const compatible = (plugin) => !compatibleWithHost || hostVerdict(plugin)?.status !== "incompatible";
13170
+ const pagePlugins = basePage.filter(compatible);
13171
+ const recentPlugins = baseRecent.filter(compatible);
13172
+ const hasRecent = recentPlugins.length > 0;
13173
+ const discoverCandidates = [.../* @__PURE__ */ new Set([...basePage, ...!recentHidden && !recentCollapsed ? baseRecent : []])];
13174
+ const pageHostPackages = [...new Set(discoverCandidates.map(hostCompatibilityKey).filter((key) => key !== null))];
13175
+ const pageVerdicts = discoverCandidates.map(hostVerdict);
13176
+ const loadedHostPackages = pageHostPackages.filter((key) => hostCompatibility[key] !== void 0).length;
13177
+ const hostHiddenCount = pageVerdicts.filter((verdict) => verdict?.status === "incompatible").length;
13178
+ const hostUnavailableCount = pageVerdicts.filter((verdict) => verdict?.basis === "unavailable").length;
11934
13179
  const themePluginsAll = (0, react.useMemo)(() => data === null ? [] : visiblePlugins(data.plugins, {
11935
13180
  category: "theme",
11936
13181
  query: qThemes,
@@ -12014,15 +13259,16 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
12014
13259
  const favoriteThemeMore = useShownCount(favoriteThemes.length, favResetDeps, DEFAULT_PAGE_SIZE);
12015
13260
  const favoritePagePlugins = surface === "plugins" ? favoritePlugins.slice(0, favoritePluginMore.shown) : favoritePlugins.slice((favoritePluginPagination.currentPage - 1) * favoritePluginPagination.pageSize, favoritePluginPagination.currentPage * favoritePluginPagination.pageSize);
12016
13261
  const favoritePageThemes = surface === "plugins" ? favoriteThemes.slice(0, favoriteThemeMore.shown) : favoriteThemes.slice((favoriteThemePagination.currentPage - 1) * favoriteThemePagination.pageSize, favoriteThemePagination.currentPage * favoriteThemePagination.pageSize);
12017
- const favoritePageHostPackages = [...new Set(favoritePagePlugins.flatMap((plugin) => hostCompatibilityKey(plugin) === null ? [] : [hostCompatibilityKey(plugin)]))];
12018
- const favoritePageHostPackagesKey = favoritePageHostPackages.join("\0");
13262
+ const compatibilityKeys = (marketGone ? [] : tab === "discover" ? pageHostPackages : tab === "favorites" ? favoritePagePlugins.map(hostCompatibilityKey).filter((key) => key !== null) : []).join("\0");
12019
13263
  (0, react.useEffect)(() => {
12020
- if (tab === "favorites") loadHostCompatibility(favoritePageHostPackages);
12021
- }, [
12022
- tab,
12023
- favoritePageHostPackagesKey,
12024
- loadHostCompatibility
12025
- ]);
13264
+ discoveryScan.setDemand(compatibilityDemandOwner.current, data, compatibilityKeys === "" ? [] : compatibilityKeys.split("\0"));
13265
+ }, [data, compatibilityKeys]);
13266
+ (0, react.useEffect)(() => {
13267
+ const owner = compatibilityDemandOwner.current;
13268
+ return () => {
13269
+ discoveryScan.removeDemand(owner);
13270
+ };
13271
+ }, []);
12026
13272
  const favoriteStale = (0, react.useMemo)(() => data === null ? [] : staleFavoriteUrls(favoriteUrls, data.plugins), [data, favoriteUrls]);
12027
13273
  const favoritesAllStale = favoriteUrls.length > 0 && favoriteStale.length === favoriteUrls.length && qFavorites.trim() === "";
12028
13274
  /** Tab badge counts catalog-visible bookmarks once the registry is loaded. */
@@ -12093,7 +13339,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
12093
13339
  url: plugin.url,
12094
13340
  state: "running"
12095
13341
  }));
12096
- sessionStorage.setItem("dshm-pending", JSON.stringify({
13342
+ window.sessionStorage.setItem("dshm-pending", JSON.stringify({
12097
13343
  url: plugin.url,
12098
13344
  name: plugin.name
12099
13345
  }));
@@ -12111,7 +13357,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
12111
13357
  body
12112
13358
  }))).then(({ status, body }) => {
12113
13359
  setBusyUrl(null);
12114
- sessionStorage.removeItem("dshm-pending");
13360
+ window.sessionStorage.removeItem("dshm-pending");
12115
13361
  if (status === 202 && typeof body.operationId === "string") {
12116
13362
  const operation = body.operation;
12117
13363
  setRecords((list) => patch(withoutHostProjection(list, body.operationId, recordId), recordId, {
@@ -12133,8 +13379,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
12133
13379
  return;
12134
13380
  }
12135
13381
  if (status === 200 && body.ok && body.hot && pluginCategories(plugin).includes("theme")) {
12136
- sessionStorage.setItem("dshm-toast", JSON.stringify([plugin.name]));
12137
- sessionStorage.setItem("dshm-tab", "themes");
13382
+ window.sessionStorage.setItem("dshm-toast", JSON.stringify([plugin.name]));
13383
+ window.sessionStorage.setItem("dshm-tab", "themes");
12138
13384
  location.reload();
12139
13385
  return;
12140
13386
  }
@@ -12508,7 +13754,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
12508
13754
  setMigrationConfirm(null);
12509
13755
  setUpdatingName(name);
12510
13756
  updateIdleStrikes.current = 0;
12511
- sessionStorage.setItem("dshm-updating", JSON.stringify({ name }));
13757
+ window.sessionStorage.setItem("dshm-updating", JSON.stringify({ name }));
12512
13758
  const updateRecordId = nextRecordId();
12513
13759
  setRecords((list) => enqueue(list, {
12514
13760
  id: updateRecordId,
@@ -12533,7 +13779,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
12533
13779
  status: res.status,
12534
13780
  body
12535
13781
  }))).then(({ status, body }) => {
12536
- sessionStorage.removeItem("dshm-updating");
13782
+ window.sessionStorage.removeItem("dshm-updating");
12537
13783
  setUpdatingName(null);
12538
13784
  if (status === 202 && typeof body.operationId === "string") {
12539
13785
  const operation = body.operation;
@@ -12792,16 +14038,17 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
12792
14038
  exists while a user is actually looking at one plugin's notes, and
12793
14039
  closing the dialog abandons the render — the server side caches the
12794
14040
  payload, so reopening is cheap. */
12795
- const openNotes = (0, react.useCallback)((name, current, latest, repoUrl) => {
14041
+ const openNotes = (0, react.useCallback)((name, current, latest, target, repoUrl) => {
12796
14042
  setNotesFor({
12797
14043
  name,
12798
14044
  current,
12799
14045
  latest,
14046
+ target,
12800
14047
  repoUrl
12801
14048
  });
12802
14049
  setUpdateNotes(null);
12803
14050
  setNotesState("loading");
12804
- fetch(`${api("/dsh-crate/changelog")}?name=${encodeURIComponent(name)}`).then((res) => res.json()).then((body) => {
14051
+ fetch(`${api("/dsh-crate/changelog")}?name=${encodeURIComponent(name)}${target !== null ? `&target=${encodeURIComponent(target)}` : ""}`).then((res) => res.json()).then((body) => {
12805
14052
  setUpdateNotes(body);
12806
14053
  setNotesState("ready");
12807
14054
  }).catch(() => setNotesState("fail"));
@@ -12817,9 +14064,9 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
12817
14064
  body
12818
14065
  }))).then(({ status, body }) => {
12819
14066
  if (status === 200 && body.ok) {
12820
- sessionStorage.setItem("dshm-toast", JSON.stringify([name]));
12821
- sessionStorage.setItem("dshm-toast-mode", "theme");
12822
- sessionStorage.setItem("dshm-tab", "themes");
14067
+ window.sessionStorage.setItem("dshm-toast", JSON.stringify([name]));
14068
+ window.sessionStorage.setItem("dshm-toast-mode", "theme");
14069
+ window.sessionStorage.setItem("dshm-tab", "themes");
12823
14070
  location.reload();
12824
14071
  } else setInstallError(String(body.error || "failed"));
12825
14072
  }).catch((error) => setInstallError(String(error)));
@@ -13410,9 +14657,9 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
13410
14657
  });
13411
14658
  refreshInstalled();
13412
14659
  if (reload) {
13413
- sessionStorage.removeItem("dshm-toast");
13414
- sessionStorage.removeItem("dshm-toast-mode");
13415
- sessionStorage.setItem("dshm-tab", "themes");
14660
+ window.sessionStorage.removeItem("dshm-toast");
14661
+ window.sessionStorage.removeItem("dshm-toast-mode");
14662
+ window.sessionStorage.setItem("dshm-tab", "themes");
13416
14663
  location.reload();
13417
14664
  }
13418
14665
  } else {
@@ -13607,7 +14854,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
13607
14854
  setIgnoredUpdateNames((current) => {
13608
14855
  const next = [.../* @__PURE__ */ new Set([...current, ...names])];
13609
14856
  try {
13610
- sessionStorage.setItem(IGNORED_UPDATES_SESSION_KEY, JSON.stringify({
14857
+ window.sessionStorage.setItem(IGNORED_UPDATES_SESSION_KEY, JSON.stringify({
13611
14858
  boot: bootId,
13612
14859
  names: next
13613
14860
  }));
@@ -13620,7 +14867,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
13620
14867
  setIgnoredUpdateNames((current) => {
13621
14868
  const next = current.filter((n) => n !== name);
13622
14869
  try {
13623
- sessionStorage.setItem(IGNORED_UPDATES_SESSION_KEY, JSON.stringify({
14870
+ window.sessionStorage.setItem(IGNORED_UPDATES_SESSION_KEY, JSON.stringify({
13624
14871
  boot: bootId,
13625
14872
  names: next
13626
14873
  }));
@@ -13715,7 +14962,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
13715
14962
  if (action === "restore") previewBackup(body.backup);
13716
14963
  if (action === "backup") {
13717
14964
  try {
13718
- localStorage.setItem("dshm-webdav-last", String(Date.now()));
14965
+ window.localStorage.setItem("dshm-webdav-last", String(Date.now()));
13719
14966
  } catch {}
13720
14967
  setBackupMessage(t("backupDone"));
13721
14968
  }
@@ -13809,7 +15056,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
13809
15056
  setGistId(ref.gistId);
13810
15057
  setGistMode("update");
13811
15058
  try {
13812
- localStorage.setItem("dshm-gist-id", ref.gistId);
15059
+ window.localStorage.setItem("dshm-gist-id", ref.gistId);
13813
15060
  } catch {}
13814
15061
  }
13815
15062
  setGistMessage(t("gistExportDone"));
@@ -13860,7 +15107,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
13860
15107
  }, [runWebdav]);
13861
15108
  (0, react.useEffect)(() => {
13862
15109
  try {
13863
- localStorage.setItem(WEBDAV_STORAGE_KEY, JSON.stringify({
15110
+ window.localStorage.setItem(WEBDAV_STORAGE_KEY, JSON.stringify({
13864
15111
  url: webdavUrl,
13865
15112
  username: webdavUser,
13866
15113
  auto: autoBackup
@@ -13875,7 +15122,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
13875
15122
  if (!autoBackup) return;
13876
15123
  let last = 0;
13877
15124
  try {
13878
- last = Number(localStorage.getItem("dshm-webdav-last")) || 0;
15125
+ last = Number(window.localStorage.getItem("dshm-webdav-last")) || 0;
13879
15126
  } catch {}
13880
15127
  if (Date.now() - last >= 864e5) runWebdavRef.current("backup");
13881
15128
  }, [autoBackup]);
@@ -13924,7 +15171,15 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
13924
15171
  const bOn = effectiveDisabledSet.has(nameB) ? 0 : 1;
13925
15172
  if (aOn !== bOn) return bOn - aOn;
13926
15173
  const aUp = isPluginUpdatable(nameA, String(specA), updates[nameA], updatedNames, quietUpdateSet) ? 1 : 0;
13927
- return (isPluginUpdatable(nameB, String(specB), updates[nameB], updatedNames, quietUpdateSet) ? 1 : 0) - aUp;
15174
+ const bUp = isPluginUpdatable(nameB, String(specB), updates[nameB], updatedNames, quietUpdateSet) ? 1 : 0;
15175
+ if (aUp !== bUp) return bUp - aUp;
15176
+ return compareInstalledRows(installedSort, {
15177
+ name: nameA,
15178
+ installedAt: installTimes[nameA]?.installedAt
15179
+ }, {
15180
+ name: nameB,
15181
+ installedAt: installTimes[nameB]?.installedAt
15182
+ });
13928
15183
  });
13929
15184
  }, [
13930
15185
  isInstalledListActive,
@@ -13932,7 +15187,9 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
13932
15187
  selfName,
13933
15188
  updatesLoaded,
13934
15189
  effectiveDisabledSet,
13935
- dependencyOnlyNames
15190
+ dependencyOnlyNames,
15191
+ installedSort,
15192
+ installTimes
13936
15193
  ]);
13937
15194
  const missingRestoreCount = Object.keys(pendingDependencies).filter((name) => !installedFiles.includes(name)).length;
13938
15195
  const hasUpdates = reminderUpdatableNames.length > 0;
@@ -13977,15 +15234,25 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
13977
15234
  }]
13978
15235
  });
13979
15236
  };
15237
+ /** Catalog copy wins; an installed package can still explain itself when
15238
+ * it has no usable catalog description (#1147). Shared by all installed views. */
15239
+ const authoredDescription = (name, entry) => {
15240
+ for (const description of [
15241
+ entry?.description?.[lang],
15242
+ entry?.description?.en,
15243
+ localDescriptions[name]
15244
+ ]) if (typeof description === "string" && description.trim() !== "") return description.trim();
15245
+ return "";
15246
+ };
13980
15247
  /**
13981
15248
  * What the group view says about an installed plugin beyond its name: the
13982
- * user's own note, else the catalog's description (#1006). One place, so a
13983
- * plugin reads the same whether it sits in a group or in "Ungrouped".
15249
+ * user's own note, else the author's description (#1006, #1147). One place,
15250
+ * so a plugin reads the same in a group or in "Ungrouped".
13984
15251
  */
13985
15252
  const installedBlurb = (name) => {
13986
15253
  const entry = data === null ? void 0 : catalogEntryForInstalled(data.plugins, name, String(installed[name]), repoIdentities[name], repoHints[name]);
13987
15254
  const note = notes[name];
13988
- const authored = entry?.description && (entry.description[lang] || entry.description.en) || "";
15255
+ const authored = authoredDescription(name, entry);
13989
15256
  return {
13990
15257
  entry,
13991
15258
  note,
@@ -14960,6 +16227,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
14960
16227
  onClick: doExportLog,
14961
16228
  children: exportState === "busy" ? t("exportingLog") : t("exportLog")
14962
16229
  });
16230
+ const updateCheckFailed = updateCheck.failed === null || updateCheck.failed.size > 0;
14963
16231
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
14964
16232
  ref: rootRef,
14965
16233
  className: `${Market_module_css_default.root} notranslate`,
@@ -15001,7 +16269,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
15001
16269
  children: [
15002
16270
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
15003
16271
  className: Market_module_css_default.repoLink,
15004
- href: "https://github.com/crate/dsh-crate",
16272
+ href: "https://github.com/dsh-crate/dsh-crate",
15005
16273
  target: "_blank",
15006
16274
  rel: "noreferrer",
15007
16275
  title: "dsh-crate · GitHub",
@@ -15103,12 +16371,18 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
15103
16371
  replacing,
15104
16372
  envReady,
15105
16373
  onClearSettled: () => {
15106
- for (const record of recordsRef.current) if (record.hostOperationId !== void 0 && (record.state === "done" || record.state === "warned" || record.state === "failed")) dismissedHostRef.current.add(record.hostOperationId);
16374
+ for (const record of recordsRef.current) if (record.hostOperationId !== void 0 && (record.state === "done" || record.state === "warned" || record.state === "failed")) {
16375
+ dismissedHostRef.current.add(record.hostOperationId);
16376
+ rememberDismissedHostId(record.hostOperationId);
16377
+ }
15107
16378
  setRecords((list) => clearSettled(list));
15108
16379
  },
15109
16380
  onCancel: (record) => doCancel(record),
15110
16381
  onDismiss: (record) => {
15111
- if (record.hostOperationId !== void 0) dismissedHostRef.current.add(record.hostOperationId);
16382
+ if (record.hostOperationId !== void 0) {
16383
+ dismissedHostRef.current.add(record.hostOperationId);
16384
+ rememberDismissedHostId(record.hostOperationId);
16385
+ }
15112
16386
  setRecords((list) => drop(list, record.id));
15113
16387
  },
15114
16388
  onRefresh: () => location.reload(),
@@ -15133,6 +16407,20 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
15133
16407
  })
15134
16408
  ]
15135
16409
  }),
16410
+ !marketGone && updateCheckFailed && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
16411
+ className: Market_module_css_default.updateCheckNotice,
16412
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
16413
+ role: "status",
16414
+ children: t("updateCheckFailed")
16415
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
16416
+ variant: "ghost",
16417
+ size: "sm",
16418
+ "aria-label": t("updateCheckRetry"),
16419
+ disabled: checkingUpdates,
16420
+ onClick: () => refreshInstalled(true),
16421
+ children: t("loadRetry")
16422
+ })]
16423
+ }),
15136
16424
  (tab === "backup" || tab === "diagnostics") && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
15137
16425
  className: Market_module_css_default.subTabs,
15138
16426
  children: [
@@ -15229,8 +16517,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
15229
16517
  variant: "primary",
15230
16518
  size: "sm",
15231
16519
  onClick: () => {
15232
- if (hotNames.length > 0) sessionStorage.setItem("dshm-toast", JSON.stringify(hotNames));
15233
- sessionStorage.setItem("dshm-tab", "installed");
16520
+ if (hotNames.length > 0) window.sessionStorage.setItem("dshm-toast", JSON.stringify(hotNames));
16521
+ window.sessionStorage.setItem("dshm-tab", "installed");
15234
16522
  location.reload();
15235
16523
  },
15236
16524
  children: t("refresh")
@@ -15278,7 +16566,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
15278
16566
  onClick: () => {
15279
16567
  setRestartNoticeDismissed(true);
15280
16568
  try {
15281
- sessionStorage.setItem("dshm-restart-dismissed", String(bootId ?? ""));
16569
+ window.sessionStorage.setItem("dshm-restart-dismissed", String(bootId ?? ""));
15282
16570
  } catch {}
15283
16571
  },
15284
16572
  children: t("dismiss")
@@ -15317,6 +16605,19 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
15317
16605
  children: configNamespaceIssues.map((finding) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: t("configNamespaceNotice").replace("{0}", finding.name).replace("{1}", finding.namespaces.join("、")).replace("{2}", finding.ownEntryIds.join("、") || "—") }, finding.name))
15318
16606
  })]
15319
16607
  }),
16608
+ tab === "installed" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(UpdateNotificationsPanel, {
16609
+ snapshot: notificationSnapshot,
16610
+ t,
16611
+ busy: updatingName !== null || busyUrl !== null || removingName !== null,
16612
+ onCheck: checkUpdateNotifications,
16613
+ onEnabled: setUpdateNotificationsEnabled,
16614
+ onIntervalHours: setUpdateNotificationsIntervalHours,
16615
+ onUpdate: (name) => {
16616
+ if (updates[name]?.restoreRequired === true) askRestore(name);
16617
+ else doUpdate(name);
16618
+ },
16619
+ onOpenHost: openInHost === void 0 ? void 0 : (name) => openInHost.openBundle(name)
16620
+ }),
15320
16621
  tab === "installed" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(HostDependencyDiagnostics, {
15321
16622
  findings: hostDependencyFindings,
15322
16623
  t
@@ -15812,9 +17113,9 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
15812
17113
  setCatsOpen(next);
15813
17114
  }
15814
17115
  })]
15815
- }), compatibleWithHost && typeof hostVersion === "string" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
17116
+ }), compatibleWithHost && typeof hostVersion === "string" && pageHostPackages.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
15816
17117
  className: Market_module_css_default.hostFilterNote,
15817
- children: hostCompatibilityPending > 0 || loadedHostPackages < allHostPackages.length ? t("hostFilterLoading").replace("{0}", String(loadedHostPackages)).replace("{1}", String(allHostPackages.length)) : t("hostFilterActive").replace("{0}", hostVersion).replace("{1}", String(hostHiddenCount))
17118
+ children: loadedHostPackages < pageHostPackages.length ? t("hostFilterLoading").replace("{0}", String(loadedHostPackages)).replace("{1}", String(pageHostPackages.length)) : t(hostUnavailableCount > 0 ? "hostFilterIncomplete" : "hostFilterActive").replace("{0}", hostVersion).replace("{1}", String(hostHiddenCount)).replace("{2}", String(hostUnavailableCount))
15818
17119
  })]
15819
17120
  })]
15820
17121
  }),
@@ -15852,8 +17153,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
15852
17153
  children: recentPlugins.map((plugin) => recentTile(plugin))
15853
17154
  })]
15854
17155
  })),
15855
- plugins.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(EmptyResults, {
15856
- blocked: pluginsAll.length > hostHiddenCount,
17156
+ pagePlugins.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(EmptyResults, {
17157
+ message: basePage.length > 0 ? "hostFilterEmpty" : pluginsAll.length > 0 ? "blockedFilteredEmpty" : "empty",
15857
17158
  t,
15858
17159
  onClear: data.plugins.length > 0 && (q !== "" || cat !== "all" || timeRange !== "all" || compatibleWithHost) ? () => {
15859
17160
  setQ("");
@@ -15863,10 +17164,11 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
15863
17164
  setCompatibleWithHost(false);
15864
17165
  bodyRef.current?.querySelector("input")?.focus();
15865
17166
  } : void 0
15866
- }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Masonry, {
17167
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Masonry, {
15867
17168
  items: pagePlugins,
15868
17169
  render: (plugin) => pluginCard(plugin)
15869
- }), surface === "plugins" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LoadMore, {
17170
+ }),
17171
+ pluginsUnblocked.length > 0 && (surface === "plugins" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LoadMore, {
15870
17172
  more: discoverMore.more,
15871
17173
  onLoad: discoverMore.loadMore,
15872
17174
  t
@@ -15877,7 +17179,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
15877
17179
  onGoToPage: goToPage,
15878
17180
  onChangePageSize: changePageSize,
15879
17181
  t
15880
- })] })
17182
+ }))
15881
17183
  ] }) : tab === "favorites" ? data === null ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
15882
17184
  className: Market_module_css_default.loading,
15883
17185
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
@@ -16039,7 +17341,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
16039
17341
  className: Market_module_css_default.empty,
16040
17342
  children: t("themeEmpty")
16041
17343
  }) : themePlugins$1.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(EmptyResults, {
16042
- blocked: themePluginsAll.length > 0,
17344
+ message: themePluginsAll.length > 0 ? "blockedFilteredEmpty" : "empty",
16043
17345
  t,
16044
17346
  onClear: qThemes !== "" || themeTimeRange !== "all" ? () => {
16045
17347
  setQThemes("");
@@ -16123,51 +17425,59 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
16123
17425
  }),
16124
17426
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
16125
17427
  className: Market_module_css_default.tabSearchRow,
16126
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SearchInput, {
16127
- resetToken: installedSearchReset,
16128
- className: Market_module_css_default.tabSearch,
16129
- placeholder: t("searchPh"),
16130
- value: qInstalled,
16131
- onCommit: setQInstalled,
16132
- t
16133
- }, "installed"), installedView === "groups" && (creatingGroup ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
16134
- className: Market_module_css_default.groupCreateInline,
16135
- onBlur: (event) => {
16136
- const next = event.relatedTarget;
16137
- if (next instanceof Node && event.currentTarget.contains(next)) return;
16138
- cancelCreateGroup();
16139
- },
16140
- children: [
16141
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Input, {
16142
- className: Market_module_css_default.inlineInput,
16143
- placeholder: t("groupNamePh"),
16144
- value: newGroupName,
16145
- onChange: (e) => setNewGroupName(e.target.value),
16146
- onKeyDown: (e) => {
16147
- if (e.key === "Enter") doCreateGroup();
16148
- if (e.key === "Escape") cancelCreateGroup();
16149
- },
16150
- autoFocus: true
16151
- }),
16152
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
16153
- variant: "primary",
16154
- size: "sm",
16155
- onClick: doCreateGroup,
16156
- children: t("groupCreate")
16157
- }),
16158
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
16159
- variant: "ghost",
16160
- size: "sm",
16161
- onClick: cancelCreateGroup,
16162
- children: t("cancel")
16163
- })
16164
- ]
16165
- }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
16166
- variant: "outline",
16167
- size: "sm",
16168
- onClick: () => setCreatingGroup(true),
16169
- children: t("groupNew")
16170
- }))]
17428
+ children: [
17429
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SearchInput, {
17430
+ resetToken: installedSearchReset,
17431
+ className: Market_module_css_default.tabSearch,
17432
+ placeholder: t("searchPh"),
17433
+ value: qInstalled,
17434
+ onCommit: setQInstalled,
17435
+ t
17436
+ }, "installed"),
17437
+ installedView === "list" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(InstalledSortMenu, {
17438
+ value: installedSort,
17439
+ onChange: setInstalledSort,
17440
+ t
17441
+ }),
17442
+ installedView === "groups" && (creatingGroup ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
17443
+ className: Market_module_css_default.groupCreateInline,
17444
+ onBlur: (event) => {
17445
+ const next = event.relatedTarget;
17446
+ if (next instanceof Node && event.currentTarget.contains(next)) return;
17447
+ cancelCreateGroup();
17448
+ },
17449
+ children: [
17450
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Input, {
17451
+ className: Market_module_css_default.inlineInput,
17452
+ placeholder: t("groupNamePh"),
17453
+ value: newGroupName,
17454
+ onChange: (e) => setNewGroupName(e.target.value),
17455
+ onKeyDown: (e) => {
17456
+ if (e.key === "Enter") doCreateGroup();
17457
+ if (e.key === "Escape") cancelCreateGroup();
17458
+ },
17459
+ autoFocus: true
17460
+ }),
17461
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
17462
+ variant: "primary",
17463
+ size: "sm",
17464
+ onClick: doCreateGroup,
17465
+ children: t("groupCreate")
17466
+ }),
17467
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
17468
+ variant: "ghost",
17469
+ size: "sm",
17470
+ onClick: cancelCreateGroup,
17471
+ children: t("cancel")
17472
+ })
17473
+ ]
17474
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
17475
+ variant: "outline",
17476
+ size: "sm",
17477
+ onClick: () => setCreatingGroup(true),
17478
+ children: t("groupNew")
17479
+ }))
17480
+ ]
16171
17481
  }),
16172
17482
  installedView === "groups" ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
16173
17483
  groupOrder.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
@@ -16490,6 +17800,10 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
16490
17800
  const act = activations[name];
16491
17801
  const meta = act !== void 0 ? activationMeta(act.state, t, act.dependencyOf, act.loadedByProfile, act.library) : null;
16492
17802
  const version = status && status.version ? "v" + status.version : "";
17803
+ const stamp = installTimes[name];
17804
+ const installedOn = installedDateText(stamp?.installedAt);
17805
+ const updatedOn = installedDateText(stamp?.updatedAt);
17806
+ const installedWhenTitle = [installedOn === null ? t("installedAtUnknown") : `${t("installedAtLabel")} ${installedOn}`, updatedOn === null ? "" : `${t("updatedAtLabel")} ${updatedOn}`].filter(Boolean).join(" · ");
16493
17807
  const specText = String(spec);
16494
17808
  const specRedundant = version !== "" && /^[\^~]?\d/.test(specText);
16495
17809
  const localPath = localPathOf(specText);
@@ -16526,9 +17840,14 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
16526
17840
  children: renderInstalledBlockMenu(name)
16527
17841
  })]
16528
17842
  }),
16529
- (version !== "" || localDev) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
17843
+ (version !== "" || localDev || installedOn !== null) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
16530
17844
  className: Market_module_css_default.irowMeta,
16531
- children: [version, localDev ? t("linkedDev") : ""].filter(Boolean).join(" · ")
17845
+ title: installedWhenTitle,
17846
+ children: [
17847
+ version,
17848
+ localDev ? t("linkedDev") : "",
17849
+ installedOn === null ? "" : `${t("installedAtLabel")} ${installedOn}`
17850
+ ].filter(Boolean).join(" · ")
16532
17851
  }),
16533
17852
  specRedundant ? null : localPath !== null ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
16534
17853
  className: Market_module_css_default.irowPath,
@@ -16605,7 +17924,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
16605
17924
  })]
16606
17925
  }) : (() => {
16607
17926
  const note = notes[name];
16608
- const authored = entry?.description && (entry.description[lang] || entry.description.en) || "";
17927
+ const authored = authoredDescription(name, entry);
16609
17928
  const theirs = showTheirs.includes(name);
16610
17929
  const shown = note !== void 0 && !theirs ? note : authored;
16611
17930
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
@@ -16660,7 +17979,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
16660
17979
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
16661
17980
  type: "button",
16662
17981
  className: Market_module_css_default.notesLink,
16663
- onClick: () => openNotes(name, status?.current ?? null, status?.latest ?? null, repoUrl),
17982
+ onClick: () => openNotes(name, status?.current ?? null, status?.latest ?? null, status?.eligibleVersion ?? null, repoUrl),
16664
17983
  children: `${t("notesLink")} ›`
16665
17984
  })]
16666
17985
  }),
@@ -16888,7 +18207,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
16888
18207
  disabled: updatingName !== null || removingName !== null || busyUrl !== null,
16889
18208
  onClick: () => doUpdate(name, false, false, status.newerPrerelease),
16890
18209
  children: t("install")
16891
- })] }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
18210
+ })] }) : updateCheck.failed === null || updateCheck.failed.has(name) ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
16892
18211
  className: Market_module_css_default.metaTag,
16893
18212
  title: t("upToDate"),
16894
18213
  children: t("upToDate")
@@ -17458,7 +18777,10 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
17458
18777
  }),
17459
18778
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
17460
18779
  className: Market_module_css_default.spec,
17461
- children: notesFor.latest !== null && notesFor.latest.length === 40 ? notesFor.latest.slice(0, 7) : notesFor.latest
18780
+ children: (() => {
18781
+ const end = notesFor.target ?? notesFor.latest;
18782
+ return end !== null && end.length === 40 ? end.slice(0, 7) : end;
18783
+ })()
17462
18784
  })
17463
18785
  ]
17464
18786
  }),
@@ -17472,17 +18794,58 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
17472
18794
  }),
17473
18795
  notesState === "ready" && updateNotes !== null && (updateNotes.kind === "release" ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
17474
18796
  className: Market_module_css_default.notesBody,
17475
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
17476
- className: Market_module_css_default.notesMeta,
17477
- children: [
17478
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: t("notesRelease") }),
17479
- updateNotes.release.tag !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: " " + updateNotes.release.tag }),
17480
- updateNotes.release.publishedAt !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: " · " + updateNotes.release.publishedAt.slice(0, 10) })
17481
- ]
17482
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
17483
- className: Market_module_css_default.notesRendered,
17484
- children: renderMarkdown(updateNotes.release.body || t("notesNone"))
17485
- })]
18797
+ children: [
18798
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
18799
+ className: Market_module_css_default.notesMeta,
18800
+ children: [
18801
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: t("notesRelease") }),
18802
+ updateNotes.release.tag !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: " " + updateNotes.release.tag }),
18803
+ updateNotes.release.publishedAt !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: " · " + updateNotes.release.publishedAt.slice(0, 10) })
18804
+ ]
18805
+ }),
18806
+ updateNotes.beyondTarget !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
18807
+ className: Market_module_css_default.notesMeta,
18808
+ children: t("notesBeyondTarget").replace("{0}", updateNotes.release.tag ?? "").replace("{1}", updateNotes.beyondTarget)
18809
+ }),
18810
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
18811
+ className: Market_module_css_default.notesRendered,
18812
+ children: renderMarkdown(updateNotes.release.body || t("notesNone"))
18813
+ }),
18814
+ updateNotes.commits !== void 0 && updateNotes.commits.items.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
18815
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
18816
+ className: Market_module_css_default.notesMeta,
18817
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: t("notesCommits") })
18818
+ }),
18819
+ !updateNotes.commits.found && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
18820
+ className: Market_module_css_default.notesMeta,
18821
+ children: t("notesCommitsRecent")
18822
+ }),
18823
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
18824
+ className: Market_module_css_default.notesList,
18825
+ children: updateNotes.commits.items.map((c) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", {
18826
+ className: Market_module_css_default.notesRow,
18827
+ children: [
18828
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
18829
+ className: Market_module_css_default.notesDate,
18830
+ children: c.date !== null ? c.date.slice(0, 10) : ""
18831
+ }),
18832
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
18833
+ className: Market_module_css_default.notesMsg,
18834
+ children: mdInline(c.message)
18835
+ }),
18836
+ notesFor.repoUrl !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
18837
+ className: Market_module_css_default.notesSha,
18838
+ href: notesFor.repoUrl + "/commit/" + c.sha,
18839
+ target: "_blank",
18840
+ rel: "noreferrer",
18841
+ title: c.message,
18842
+ children: c.sha.slice(0, 7)
18843
+ })
18844
+ ]
18845
+ }, c.sha))
18846
+ })
18847
+ ] })
18848
+ ]
17486
18849
  }) : updateNotes.kind === "commits" ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
17487
18850
  className: Market_module_css_default.notesBody,
17488
18851
  children: [
@@ -18096,6 +19459,12 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
18096
19459
  }, [entries]);
18097
19460
  const [status, setStatus] = (0, react.useState)(null);
18098
19461
  const [update, setUpdate] = (0, react.useState)(null);
19462
+ const notificationSnapshot = useUpdateNotifications();
19463
+ (0, react.useEffect)(() => {
19464
+ if (!notificationSnapshot.loaded) return;
19465
+ const own = notificationSnapshot.updates["dsh-crate"];
19466
+ setUpdate(own === void 0 ? null : readUpdate(own));
19467
+ }, [notificationSnapshot.updates, notificationSnapshot.loaded]);
18099
19468
  const [phase, setPhase] = (0, react.useState)("idle");
18100
19469
  const [restoreConfirming, setRestoreConfirming] = (0, react.useState)(false);
18101
19470
  const [purge, setPurge] = (0, react.useState)(false);
@@ -18143,6 +19512,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
18143
19512
  const body = await (await fetch(api("/dsh-crate/updates"), { cache: "no-store" })).json();
18144
19513
  const own = body.updates?.["dsh-crate"] ?? body.updates?.["dsh-crate"];
18145
19514
  if (live && own !== void 0) setUpdate(readUpdate(own));
19515
+ refreshUpdateNotifications();
18146
19516
  } catch {}
18147
19517
  })();
18148
19518
  return () => {
@@ -18213,6 +19583,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
18213
19583
  t
18214
19584
  ]);
18215
19585
  const busy = phase === "working";
19586
+ const checkIncomplete = notificationSnapshot.loaded && notificationSnapshot.stale;
18216
19587
  const version = status?.version ?? null;
18217
19588
  const prerelease = version !== null && version.includes("-");
18218
19589
  /** Re-ask what this channel offers; the previous answer was for another one. */
@@ -18220,6 +19591,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
18220
19591
  const body = await (await fetch(api("/dsh-crate/updates") + "?force=1", { cache: "no-store" })).json();
18221
19592
  const own = body.updates?.["dsh-crate"] ?? body.updates?.["dsh-crate"];
18222
19593
  setUpdate(own === void 0 ? null : readUpdate(own));
19594
+ refreshUpdateNotifications();
18223
19595
  }, []);
18224
19596
  /**
18225
19597
  * Select a channel — and show the one the SERVER accepted.
@@ -18422,7 +19794,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
18422
19794
  id: advancedId,
18423
19795
  className: Market_module_css_default.setAdvancedBody
18424
19796
  }, entryRows.map((node, index) => (0, react.createElement)(react.Fragment, { key: index }, node))) : null) : null;
18425
- const body = phase === "removed" ? row(t("setSelfRemoved"), t("setSelfRemovedHint"), null) : (0, react.createElement)(react.Fragment, null, advanced, row(t("setIndexSource"), t("setIndexSourceHint"), null), status?.selfManaged === true ? row((update?.updateAvailable === true || update?.hostManaged === true) && update.latest !== null ? `${t("setSelfUpdateReady")} ${update.latest}` : update?.channelSwitch != null ? `${t("setChannelSwitch")} ${update.channelSwitch}` : t("setSelfUpToDate"), phase === "updated" ? t("setSelfUpdatedHint") : update?.channelSwitch != null ? t("setChannelSwitchHint") : update?.updateAvailable === true ? t("setSelfUpdateHint") : update?.hostManaged === true && update.latest !== null ? t("setSelfHostManagedHint") : t("setSelfUpToDateHint"), phase === "updated" ? null : update?.updateAvailable === true ? (0, react.createElement)(_deepseek_ai_dsh_client_ui_primitives.Button, {
19797
+ const body = phase === "removed" ? row(t("setSelfRemoved"), t("setSelfRemovedHint"), null) : (0, react.createElement)(react.Fragment, null, advanced, row(t("setIndexSource"), t("setIndexSourceHint"), null), status?.selfManaged === true ? row((update?.updateAvailable === true || update?.hostManaged === true) && update.latest !== null ? `${t("setSelfUpdateReady")} ${update.latest}` : update?.channelSwitch != null ? `${t("setChannelSwitch")} ${update.channelSwitch}` : checkIncomplete ? t("updateChecksFailed") : update === null ? t("updateChecksPending") : t("setSelfUpToDate"), phase === "updated" ? t("setSelfUpdatedHint") : update?.channelSwitch != null ? t("setChannelSwitchHint") : update?.updateAvailable === true ? t("setSelfUpdateHint") : update?.hostManaged === true && update.latest !== null ? t("setSelfHostManagedHint") : checkIncomplete ? t("updateChecksFailedHint") : t("setSelfUpToDateHint"), phase === "updated" ? null : update?.updateAvailable === true ? (0, react.createElement)(_deepseek_ai_dsh_client_ui_primitives.Button, {
18426
19798
  variant: "primary",
18427
19799
  size: "sm",
18428
19800
  disabled: busy,
@@ -18881,6 +20253,233 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
18881
20253
  };
18882
20254
  }
18883
20255
  //#endregion
20256
+ //#region src/client/PluginsUpdateIndicator.tsx
20257
+ /** Decorate the host's existing Plugins icon without replacing its button or page. */
20258
+ const DOT_STYLE = {
20259
+ position: "absolute",
20260
+ right: -2,
20261
+ top: -2,
20262
+ width: 6,
20263
+ height: 6,
20264
+ borderRadius: "50%",
20265
+ background: "var(--dsw-alias-state-error-primary, #e5484d)",
20266
+ boxShadow: "0 0 0 1.5px var(--dsw-alias-bg-base, #fff)",
20267
+ pointerEvents: "none"
20268
+ };
20269
+ const ANNOUNCEMENT_STYLE = {
20270
+ position: "absolute",
20271
+ width: 1,
20272
+ height: 1,
20273
+ padding: 0,
20274
+ margin: -1,
20275
+ overflow: "hidden",
20276
+ clipPath: "inset(50%)",
20277
+ whiteSpace: "nowrap",
20278
+ border: 0
20279
+ };
20280
+ /** The host may mount more than one responsive sidebar; any active copy is a visit. */
20281
+ function createIconActivity() {
20282
+ const instances = /* @__PURE__ */ new Map();
20283
+ const listeners = /* @__PURE__ */ new Set();
20284
+ let current;
20285
+ const publish = () => {
20286
+ const values = [...instances.values()];
20287
+ const next = values.includes(true) ? true : values.includes(false) ? false : void 0;
20288
+ if (next === current) return;
20289
+ current = next;
20290
+ for (const listener of listeners) listener();
20291
+ };
20292
+ return {
20293
+ getSnapshot: () => current,
20294
+ subscribe: (listener) => {
20295
+ listeners.add(listener);
20296
+ return () => {
20297
+ listeners.delete(listener);
20298
+ };
20299
+ },
20300
+ track: (active) => {
20301
+ const key = Symbol();
20302
+ instances.set(key, active);
20303
+ publish();
20304
+ return () => {
20305
+ instances.delete(key);
20306
+ publish();
20307
+ };
20308
+ }
20309
+ };
20310
+ }
20311
+ function PluginsUpdateIcon({ original: Original, owner, activity }) {
20312
+ const snapshot = useUpdateNotifications();
20313
+ (0, react.useLayoutEffect)(() => activity.track(owner.active), [activity, owner.active]);
20314
+ (0, react.useLayoutEffect)(() => {
20315
+ if (owner.active === true) acknowledgeUpdateNotifications(snapshot);
20316
+ }, [owner.active, snapshot]);
20317
+ const count = owner.active === false ? unseenNotificationNames(snapshot).length : 0;
20318
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
20319
+ "data-dsh-crate-plugins-indicator": "",
20320
+ style: {
20321
+ position: "relative",
20322
+ display: "inline-flex",
20323
+ lineHeight: 0
20324
+ },
20325
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Original, { ...owner }), count > 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
20326
+ "data-dsh-crate-update-dot": "",
20327
+ "data-update-count": count,
20328
+ "aria-hidden": "true",
20329
+ style: DOT_STYLE
20330
+ }) : null]
20331
+ });
20332
+ }
20333
+ function UpdateAnnouncement({ t, locale, activity }) {
20334
+ (0, react.useSyncExternalStore)((listener) => locale.subscribe(listener), () => locale.getSnapshot().active, () => locale.getSnapshot().active);
20335
+ const active = (0, react.useSyncExternalStore)(activity.subscribe, activity.getSnapshot, activity.getSnapshot);
20336
+ const snapshot = useUpdateNotifications();
20337
+ const count = active === false ? unseenNotificationNames(snapshot).length : 0;
20338
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
20339
+ role: "status",
20340
+ "aria-live": "polite",
20341
+ "aria-atomic": "true",
20342
+ "data-dsh-crate-update-announcement": "",
20343
+ style: ANNOUNCEMENT_STYLE,
20344
+ children: count > 0 ? t("updateNotificationsAnnouncement").replace("{count}", String(count)) : ""
20345
+ });
20346
+ }
20347
+ /** Newer slot registries explicitly expose shadowing winners; older hosts keep their icon. */
20348
+ function supportsDecoration(slots) {
20349
+ if (slots === null || typeof slots !== "object") return false;
20350
+ return [
20351
+ "inject",
20352
+ "register",
20353
+ "entries",
20354
+ "entriesOfSlot",
20355
+ "subscribe"
20356
+ ].every((name) => typeof slots[name] === "function");
20357
+ }
20358
+ /**
20359
+ * Only a presentation-only native icon is wrapped. Its own injected business
20360
+ * face, store or child slots are never called or copied into another entry.
20361
+ */
20362
+ function canWrap(entry) {
20363
+ return isIconComponent(entry.component) && entry.inject === void 0 && entry.store === void 0 && (entry.children === void 0 || Object.keys(entry.children).length === 0);
20364
+ }
20365
+ function installPluginsUpdateIndicator(host, t, locale) {
20366
+ if (!supportsDecoration(host.slots)) return () => {};
20367
+ const slots = host.slots;
20368
+ let disposed = false;
20369
+ let stopIcon;
20370
+ let stopAnnouncement;
20371
+ const controllers = [];
20372
+ const activity = createIconActivity();
20373
+ const quietly = (stop) => {
20374
+ try {
20375
+ stop?.();
20376
+ } catch {}
20377
+ };
20378
+ const dispose = () => {
20379
+ if (disposed) return;
20380
+ disposed = true;
20381
+ quietly(stopIcon);
20382
+ quietly(stopAnnouncement);
20383
+ for (const stop of controllers.splice(0).reverse()) quietly(stop);
20384
+ };
20385
+ const install = (slot, callback) => {
20386
+ if (disposed) return;
20387
+ const off = slots.inject(slot, () => {
20388
+ if (disposed) return () => {};
20389
+ try {
20390
+ return callback();
20391
+ } catch {
20392
+ dispose();
20393
+ return () => {};
20394
+ }
20395
+ });
20396
+ if (typeof off === "function") {
20397
+ if (disposed) quietly(off);
20398
+ else controllers.push(off);
20399
+ }
20400
+ };
20401
+ try {
20402
+ install("sidebar.panellist", () => {
20403
+ let original;
20404
+ let Decoration;
20405
+ let stopDecoration;
20406
+ let closed = false;
20407
+ let reconciling = false;
20408
+ let changedWhileReconciling = false;
20409
+ const remove = () => {
20410
+ const stop = stopDecoration;
20411
+ stopDecoration = void 0;
20412
+ Decoration = void 0;
20413
+ original = void 0;
20414
+ quietly(stop);
20415
+ };
20416
+ const reconcile = () => {
20417
+ if (closed || disposed) return;
20418
+ if (reconciling) {
20419
+ changedWhileReconciling = true;
20420
+ return;
20421
+ }
20422
+ reconciling = true;
20423
+ try {
20424
+ const entries = slots.entries("sidebar.panellist").filter((entry) => entry.options.id === "plugins" && entry.component !== Decoration);
20425
+ const next = entries.length === 1 && (entries[0].options.priority ?? 0) === 0 && canWrap(entries[0]) ? entries[0] : void 0;
20426
+ if (next === original) return;
20427
+ remove();
20428
+ if (next === void 0) return;
20429
+ if (slots.entriesOfSlot("sidebar.panellist").find((entry) => entry.options.id === "plugins") !== next) return;
20430
+ const Original = next.component;
20431
+ Decoration = (owner) => (0, react.createElement)(PluginsUpdateIcon, {
20432
+ original: Original,
20433
+ owner,
20434
+ activity
20435
+ });
20436
+ const off = slots.register({
20437
+ name: "sidebar.panellist",
20438
+ id: "plugins",
20439
+ priority: -1,
20440
+ ...next.options.order === void 0 ? {} : { order: next.options.order },
20441
+ ...next.options.label === void 0 ? {} : { label: next.options.label },
20442
+ ...next.locale === void 0 ? {} : { locale: next.locale }
20443
+ }, Decoration);
20444
+ original = next;
20445
+ stopDecoration = typeof off === "function" ? off : void 0;
20446
+ } catch {
20447
+ dispose();
20448
+ } finally {
20449
+ reconciling = false;
20450
+ if (changedWhileReconciling) {
20451
+ changedWhileReconciling = false;
20452
+ queueMicrotask(reconcile);
20453
+ }
20454
+ }
20455
+ };
20456
+ const unsubscribe = slots.subscribe("sidebar.panellist", reconcile);
20457
+ stopIcon = () => {
20458
+ closed = true;
20459
+ quietly(unsubscribe);
20460
+ remove();
20461
+ };
20462
+ reconcile();
20463
+ return stopIcon;
20464
+ });
20465
+ install("shell.overlay", () => {
20466
+ const off = slots.register({
20467
+ name: "shell.overlay",
20468
+ id: "dsh-crate-update-announcement"
20469
+ }, () => (0, react.createElement)(UpdateAnnouncement, {
20470
+ t,
20471
+ locale,
20472
+ activity
20473
+ }));
20474
+ stopAnnouncement = typeof off === "function" ? off : () => {};
20475
+ return stopAnnouncement;
20476
+ });
20477
+ } catch {
20478
+ dispose();
20479
+ }
20480
+ return dispose;
20481
+ }
20482
+ //#endregion
18884
20483
  //#region src/client/index.ts
18885
20484
  /**
18886
20485
  * dsh-crate client: registers a "Market" settings section rendering the
@@ -18947,6 +20546,8 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
18947
20546
  ja
18948
20547
  }), "dsh-crate: dictionaries");
18949
20548
  const t = ctx.locale.bind(NS);
20549
+ ctx.effect(() => updateNotifications.start(), "dsh-crate: update snapshots");
20550
+ ctx.effect(() => installPluginsUpdateIndicator(ctx, t, ctx.locale), "dsh-crate: Plugins update indicator");
18950
20551
  let stopNavStandIn;
18951
20552
  let hostPaintsNavIcon = false;
18952
20553
  ctx.slots.inject("settings.section.icon", () => {