dsh-xiaomi-tts 4.2.0 → 4.2.2

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 (37) hide show
  1. package/README.md +69 -120
  2. package/assets/plugin-icons/avatar.webp +0 -0
  3. package/assets/plugin-icons/preset.webp +0 -0
  4. package/assets/setting.png +0 -0
  5. package/assets/ui/provider-doubao.webp +0 -0
  6. package/assets/ui/provider-mimo.webp +0 -0
  7. package/lib/client/host-route.d.ts +2 -0
  8. package/lib/client/host-route.d.ts.map +1 -1
  9. package/lib/client/localization.d.ts +6 -2
  10. package/lib/client/localization.d.ts.map +1 -1
  11. package/lib/client/playback/duplex-pcm.d.ts.map +1 -1
  12. package/lib/client/settings/api-key-module.d.ts +1 -2
  13. package/lib/client/settings/api-key-module.d.ts.map +1 -1
  14. package/lib/client/settings/card.d.ts.map +1 -1
  15. package/lib/client/settings/sound-effects-module.d.ts.map +1 -1
  16. package/lib/client/settings/switch-module.d.ts +4 -1
  17. package/lib/client/settings/switch-module.d.ts.map +1 -1
  18. package/lib/client/settings/voice-reading-options.d.ts +10 -0
  19. package/lib/client/settings/voice-reading-options.d.ts.map +1 -1
  20. package/lib/client/settings/voice-reading-section.d.ts.map +1 -1
  21. package/lib/client/sound-effects/sound-pack-icon.d.ts +6 -0
  22. package/lib/client/sound-effects/sound-pack-icon.d.ts.map +1 -0
  23. package/lib/client.js +787 -163
  24. package/lib/constants.d.ts +6 -1
  25. package/lib/constants.d.ts.map +1 -1
  26. package/lib/index.d.ts.map +1 -1
  27. package/lib/index.js +9 -3
  28. package/lib/pcm-stream.js +1 -1
  29. package/lib/{shared-B5UUgp0Q.js → shared-CYv3_bwU.js} +1 -1
  30. package/lib/shared.js +3 -3
  31. package/lib/{utils-CtO70G22.js → utils-nJe4yaJV.js} +7 -2
  32. package/locale/en.json +1 -1
  33. package/locale/zh.json +1 -1
  34. package/package.json +2 -1
  35. package/assets/ui/history-empty-whale.webp +0 -0
  36. package/assets/whale-girls.webp +0 -0
  37. package/lib/client.js.map +0 -1
package/lib/client.js CHANGED
@@ -54,6 +54,11 @@ const TTS_VOICE_ASSET_ROUTE = "/plugins/xiaomi-mimo-tts/voice-avatars";
54
54
  const TTS_TOGGLE_CHARACTER_ASSET_ROUTE = "/plugins/xiaomi-mimo-tts/toggle-characters.webp";
55
55
  /** Same-origin route used by the Web client to load the two-state sound-effects character sheet. */
56
56
  const TTS_SOUND_EFFECTS_CHARACTER_ASSET_ROUTE = "/plugins/xiaomi-mimo-tts/sound-effects-toggle-characters.webp";
57
+ /** Same-origin character assets for the two faces of the provider switch. */
58
+ const TTS_PROVIDER_CHARACTER_ASSET_ROUTES = {
59
+ xiaomi: "/plugins/xiaomi-mimo-tts/provider-mimo.webp",
60
+ doubao: "/plugins/xiaomi-mimo-tts/provider-doubao.webp"
61
+ };
57
62
  /** Same-origin route used by the Web client to load the API-key whale mascot sheet. */
58
63
  const TTS_API_KEY_WHALE_ASSET_ROUTE = "/plugins/xiaomi-mimo-tts/api-key-whale.webp";
59
64
  /** Same-origin illustration for an empty audio history. */
@@ -10945,6 +10950,13 @@ function hostRoute(path) {
10945
10950
  const relative = path.replace(/^\/+/, "");
10946
10951
  return typeof document === "undefined" ? `/${relative}` : new URL(relative, document.baseURI).pathname;
10947
10952
  }
10953
+ /** Desktop streams connect directly to the shell-owned Host, as DSH's gateway does. */
10954
+ function hostWebSocketUrl(path) {
10955
+ const base = globalThis.__DSH_TRANSPORT__?.streamBaseUrl ?? (typeof document === "undefined" ? globalThis.location?.href ?? "http://localhost/" : document.baseURI);
10956
+ const url = new URL(path.replace(/^\/+/, ""), base);
10957
+ url.protocol = url.protocol === "https:" ? "wss:" : "ws:";
10958
+ return url.href;
10959
+ }
10948
10960
 
10949
10961
  //#endregion
10950
10962
  //#region src/client/conversation/api-key-status.ts
@@ -11781,6 +11793,10 @@ const zh = {
11781
11793
  "settings.voiceReadingHintDoubaoStandard": "豆包标准合成音色",
11782
11794
  "settings.voiceReadingHintDoubaoCloned": "豆包声音复刻使用音色 ID,可选用过的 ID",
11783
11795
  "settings.voiceReadingCustomVoice": "自定义(当前)",
11796
+ "settings.voiceReadingVolume": "朗读音量",
11797
+ "settings.voiceReadingVolumeHint": "朗读声音的大小,与调音台中的语音音量是同一项设置",
11798
+ "settings.voiceReadingRate": "朗读语速",
11799
+ "settings.voiceReadingRateHint": "1.0× 为原速;豆包在合成时应用,小米与本地语音在播放时应用",
11784
11800
  "settings.voiceReadingAutoPlay": "自动播报",
11785
11801
  "settings.voiceReadingAutoPlayHint": "收到新的回复会自动朗读",
11786
11802
  "settings.voiceReadingSound": "音效",
@@ -11878,8 +11894,8 @@ const zh = {
11878
11894
  "settings.reset": "恢复默认",
11879
11895
  "settings.discard": "放弃修改",
11880
11896
  "settings.failed": "保存失败,请重试。",
11881
- "settings.source": "🍬赏个Star",
11882
- "settings.updateAvailable": "🎉新版已发布",
11897
+ "settings.source": "赏个Star",
11898
+ "settings.updateAvailable": "新版已发布",
11883
11899
  "settings.readOnly": "当前 DSH 设置为只读。",
11884
11900
  "settings.secretPlaceholder": "输入当前服务商的新 API Key",
11885
11901
  "settings.expand": "展开设置",
@@ -12124,6 +12140,10 @@ const en = {
12124
12140
  "settings.voiceReadingHintDoubaoStandard": "Doubao standard synthesis voices.",
12125
12141
  "settings.voiceReadingHintDoubaoCloned": "Doubao voice cloning uses a voice ID; pick an ID you have used before.",
12126
12142
  "settings.voiceReadingCustomVoice": "Custom (current)",
12143
+ "settings.voiceReadingVolume": "Reading volume",
12144
+ "settings.voiceReadingVolumeHint": "How loud the reading plays; same setting as Voice volume in the mixing console.",
12145
+ "settings.voiceReadingRate": "Reading speed",
12146
+ "settings.voiceReadingRateHint": "1.0× is the original speed. Doubao applies it during synthesis; Xiaomi and browser speech apply it during playback.",
12127
12147
  "settings.voiceReadingAutoPlay": "Automatic playback",
12128
12148
  "settings.voiceReadingAutoPlayHint": "New replies are read aloud automatically; turning this on also enables voice reading.",
12129
12149
  "settings.voiceReadingSound": "Sound effects",
@@ -12221,8 +12241,8 @@ const en = {
12221
12241
  "settings.reset": "Restore default",
12222
12242
  "settings.discard": "Discard changes",
12223
12243
  "settings.failed": "Save failed. Try again.",
12224
- "settings.source": "✨ View source",
12225
- "settings.updateAvailable": "🎉 New release",
12244
+ "settings.source": "View source",
12245
+ "settings.updateAvailable": "New release",
12226
12246
  "settings.readOnly": "DSH settings are read-only.",
12227
12247
  "settings.secretPlaceholder": "Enter a new key for this provider",
12228
12248
  "settings.expand": "Expand settings",
@@ -12568,9 +12588,7 @@ var DuplexPcmStream = class {
12568
12588
  this.reject = reject;
12569
12589
  });
12570
12590
  this.done.catch(() => {});
12571
- const url = new URL(hostRoute(TTS_DUPLEX_ROUTE), globalThis.location?.href ?? "http://localhost/");
12572
- url.protocol = url.protocol === "https:" ? "wss:" : "ws:";
12573
- this.socket = new WebSocket(url);
12591
+ this.socket = new WebSocket(hostWebSocketUrl(TTS_DUPLEX_ROUTE));
12574
12592
  this.socket.binaryType = "arraybuffer";
12575
12593
  this.socket.onopen = () => {
12576
12594
  if (!this.ended) this.socket.send(JSON.stringify({
@@ -14187,6 +14205,31 @@ var XiaomiMimoTtsPcmService = class extends __deepseek_ai_cordis.Service {
14187
14205
  }
14188
14206
  };
14189
14207
 
14208
+ //#endregion
14209
+ //#region node_modules/.pnpm/react-icons@5.7.0_react@19.3.0/node_modules/react-icons/ai/index.mjs
14210
+ function AiFillGithub(props) {
14211
+ return GenIcon({
14212
+ "tag": "svg",
14213
+ "attr": { "viewBox": "0 0 1024 1024" },
14214
+ "child": [{
14215
+ "tag": "path",
14216
+ "attr": { "d": "M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0 1 38.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z" },
14217
+ "child": []
14218
+ }]
14219
+ })(props);
14220
+ }
14221
+ function AiOutlineGift(props) {
14222
+ return GenIcon({
14223
+ "tag": "svg",
14224
+ "attr": { "viewBox": "0 0 1024 1024" },
14225
+ "child": [{
14226
+ "tag": "path",
14227
+ "attr": { "d": "M880 310H732.4c13.6-21.4 21.6-46.8 21.6-74 0-76.1-61.9-138-138-138-41.4 0-78.7 18.4-104 47.4-25.3-29-62.6-47.4-104-47.4-76.1 0-138 61.9-138 138 0 27.2 7.9 52.6 21.6 74H144c-17.7 0-32 14.3-32 32v200c0 4.4 3.6 8 8 8h40v344c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V550h40c4.4 0 8-3.6 8-8V342c0-17.7-14.3-32-32-32zm-334-74c0-38.6 31.4-70 70-70s70 31.4 70 70-31.4 70-70 70h-70v-70zm-138-70c38.6 0 70 31.4 70 70v70h-70c-38.6 0-70-31.4-70-70s31.4-70 70-70zM180 482V378h298v104H180zm48 68h250v308H228V550zm568 308H546V550h250v308zm48-376H546V378h298v104z" },
14228
+ "child": []
14229
+ }]
14230
+ })(props);
14231
+ }
14232
+
14190
14233
  //#endregion
14191
14234
  //#region src/client/settings/save-settings.ts
14192
14235
  const EDITABLE_SETTING_FIELDS = [
@@ -14786,7 +14829,7 @@ function ModuleShell({ className, title, summary, action, children, collapsible
14786
14829
  className: "xmimo-ui-module-header",
14787
14830
  children: [collapsible ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
14788
14831
  className: "xmimo-ui-accordion-heading",
14789
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
14832
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
14790
14833
  type: "button",
14791
14834
  id: toggleId,
14792
14835
  "aria-controls": controlsId,
@@ -14794,10 +14837,7 @@ function ModuleShell({ className, title, summary, action, children, collapsible
14794
14837
  "aria-expanded": open,
14795
14838
  "aria-label": ariaLabel ?? (typeof title === "string" ? title : void 0),
14796
14839
  onClick: onToggle,
14797
- children: [heading, /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
14798
- className: "xmimo-ui-accordion-chevron",
14799
- "aria-hidden": "true"
14800
- })]
14840
+ children: heading
14801
14841
  })
14802
14842
  }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
14803
14843
  className: "xmimo-ui-module-toggle xmimo-ui-module-toggle-static",
@@ -14833,69 +14873,39 @@ function randomCopyKey(keys, current) {
14833
14873
  while (next === current) next = keys[Math.floor(Math.random() * keys.length)];
14834
14874
  return next;
14835
14875
  }
14836
- function ApiKeyModule({ t, provider, onProviderChange, value, message, invalid, clearable, writable, minimal, onChange, onClear }) {
14876
+ function ApiKeyModule({ t, provider, value, message, invalid, clearable, writable, minimal, onChange, onClear }) {
14837
14877
  const [bubbleKey, setBubbleKey] = (0, react.useState)(() => randomCopyKey(API_KEY_IDLE_COPY_KEYS));
14838
14878
  const inputId = (0, react.useId)();
14839
14879
  const messageId = (0, react.useId)();
14840
14880
  const keyUrl = provider === "doubao" ? "https://console.volcengine.com/speech/new/setting/apikeys?projectName=default" : "https://platform.xiaomimimo.com/console/api-keys";
14841
- const nextProvider = provider === "xiaomi" ? "doubao" : "xiaomi";
14842
- const providerLabel = t(provider === "xiaomi" ? "settings.providerXiaomi" : "settings.providerDoubao");
14843
- const nextProviderLabel = t(nextProvider === "xiaomi" ? "settings.providerXiaomi" : "settings.providerDoubao");
14844
- const switchLabel = `${t("settings.provider")}: ${providerLabel} · ${t("settings.switchProvider")}: ${nextProviderLabel}`;
14845
- const providerSwitch = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Button, {
14846
- type: "button",
14847
- variant: "ghost",
14848
- size: "sm",
14849
- className: "xmimo-tts-provider-cycle",
14850
- "aria-label": switchLabel,
14851
- title: switchLabel,
14852
- disabled: !writable,
14853
- onClick: () => onProviderChange(nextProvider),
14854
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
14855
- width: "14",
14856
- height: "14",
14857
- viewBox: "0 0 24 24",
14858
- fill: "none",
14859
- stroke: "currentColor",
14860
- strokeWidth: "1.8",
14861
- strokeLinecap: "round",
14862
- strokeLinejoin: "round",
14863
- "aria-hidden": "true",
14864
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M3 7h18m-4-4 4 4-4 4M21 17H3m4-4-4 4 4 4" })
14865
- })
14866
- });
14867
14881
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ModuleShell, {
14868
14882
  className: "xmimo-tts-settings-module xmimo-tts-api-key xmimo-ui-module-padded",
14869
- title: minimal ? t("settings.apiKey") : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingFieldHeading, {
14870
- label: provider === "doubao" ? t("settings.providerDoubao") : minimal ? t("settings.apiKey") : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
14883
+ title: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingFieldHeading, {
14884
+ label: provider === "doubao" ? t("settings.providerDoubao") : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
14871
14885
  className: "xmimo-tts-api-key-logo",
14872
14886
  role: "img",
14873
14887
  "aria-label": t("settings.apiKey"),
14874
14888
  style: { "--xmimo-tts-api-key-logo-image": `url(${hostRoute(TTS_MIMO_LOGO_ASSET_ROUTE)})` }
14875
14889
  }),
14876
- suffix: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
14877
- providerSwitch,
14878
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
14879
- className: "xmimo-tts-api-key-link",
14880
- href: keyUrl,
14881
- target: "_blank",
14882
- rel: "noopener noreferrer",
14883
- children: t("settings.getApiKey")
14884
- }),
14885
- clearable ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Button, {
14886
- type: "button",
14887
- variant: "ghost",
14888
- size: "sm",
14889
- className: "xmimo-tts-reset",
14890
- disabled: !writable,
14891
- onClick: (event) => {
14892
- event.preventDefault();
14893
- event.stopPropagation();
14894
- onClear();
14895
- },
14896
- children: t("settings.apiKeyClear")
14897
- }) : null
14898
- ] }),
14890
+ suffix: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
14891
+ className: "xmimo-tts-api-key-link",
14892
+ href: keyUrl,
14893
+ target: "_blank",
14894
+ rel: "noopener noreferrer",
14895
+ children: t("settings.getApiKey")
14896
+ }), clearable ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Button, {
14897
+ type: "button",
14898
+ variant: "ghost",
14899
+ size: "sm",
14900
+ className: "xmimo-tts-reset",
14901
+ disabled: !writable,
14902
+ onClick: (event) => {
14903
+ event.preventDefault();
14904
+ event.stopPropagation();
14905
+ onClear();
14906
+ },
14907
+ children: t("settings.apiKeyClear")
14908
+ }) : null] }),
14899
14909
  disabled: !writable,
14900
14910
  resettable: false
14901
14911
  }),
@@ -14945,33 +14955,7 @@ function ApiKeyModule({ t, provider, onProviderChange, value, message, invalid,
14945
14955
  onChange(event.target.value);
14946
14956
  },
14947
14957
  style: { padding: "0 var(--xmimo-ui-space-4)" }
14948
- }),
14949
- minimal ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
14950
- className: "xmimo-tts-api-key-inline-actions",
14951
- children: [
14952
- providerSwitch,
14953
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
14954
- className: "xmimo-tts-api-key-link",
14955
- href: keyUrl,
14956
- target: "_blank",
14957
- rel: "noopener noreferrer",
14958
- children: t("settings.getApiKey")
14959
- }),
14960
- clearable ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Button, {
14961
- type: "button",
14962
- variant: "ghost",
14963
- size: "sm",
14964
- className: "xmimo-tts-reset",
14965
- disabled: !writable,
14966
- onClick: (event) => {
14967
- event.preventDefault();
14968
- event.stopPropagation();
14969
- onClear();
14970
- },
14971
- children: t("settings.apiKeyClear")
14972
- }) : null
14973
- ]
14974
- }) : null
14958
+ })
14975
14959
  ]
14976
14960
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", {
14977
14961
  id: messageId,
@@ -16826,6 +16810,429 @@ function SoundEffectIcon({ cue }) {
16826
16810
  }
16827
16811
  }
16828
16812
 
16813
+ //#endregion
16814
+ //#region node_modules/.pnpm/react-icons@5.7.0_react@19.3.0/node_modules/react-icons/tb/index.mjs
16815
+ function TbUfo(props) {
16816
+ return GenIcon({
16817
+ "tag": "svg",
16818
+ "attr": {
16819
+ "viewBox": "0 0 24 24",
16820
+ "fill": "none",
16821
+ "stroke": "currentColor",
16822
+ "strokeWidth": "2",
16823
+ "strokeLinecap": "round",
16824
+ "strokeLinejoin": "round"
16825
+ },
16826
+ "child": [
16827
+ {
16828
+ "tag": "path",
16829
+ "attr": { "d": "M16.95 9.01c3.02 .739 5.05 2.123 5.05 3.714c0 2.367 -4.48 4.276 -10 4.276s-10 -1.909 -10 -4.276c0 -1.59 2.04 -2.985 5.07 -3.724" },
16830
+ "child": []
16831
+ },
16832
+ {
16833
+ "tag": "path",
16834
+ "attr": { "d": "M7 9c0 1.105 2.239 2 5 2s5 -.895 5 -2v-.035c0 -2.742 -2.239 -4.965 -5 -4.965s-5 2.223 -5 4.965v.035" },
16835
+ "child": []
16836
+ },
16837
+ {
16838
+ "tag": "path",
16839
+ "attr": { "d": "M15 17l2 3" },
16840
+ "child": []
16841
+ },
16842
+ {
16843
+ "tag": "path",
16844
+ "attr": { "d": "M8.5 17l-1.5 3" },
16845
+ "child": []
16846
+ },
16847
+ {
16848
+ "tag": "path",
16849
+ "attr": { "d": "M12 14h.01" },
16850
+ "child": []
16851
+ },
16852
+ {
16853
+ "tag": "path",
16854
+ "attr": { "d": "M7 13h.01" },
16855
+ "child": []
16856
+ },
16857
+ {
16858
+ "tag": "path",
16859
+ "attr": { "d": "M17 13h.01" },
16860
+ "child": []
16861
+ }
16862
+ ]
16863
+ })(props);
16864
+ }
16865
+ function TbSettings(props) {
16866
+ return GenIcon({
16867
+ "tag": "svg",
16868
+ "attr": {
16869
+ "viewBox": "0 0 24 24",
16870
+ "fill": "none",
16871
+ "stroke": "currentColor",
16872
+ "strokeWidth": "2",
16873
+ "strokeLinecap": "round",
16874
+ "strokeLinejoin": "round"
16875
+ },
16876
+ "child": [{
16877
+ "tag": "path",
16878
+ "attr": { "d": "M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065" },
16879
+ "child": []
16880
+ }, {
16881
+ "tag": "path",
16882
+ "attr": { "d": "M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0" },
16883
+ "child": []
16884
+ }]
16885
+ })(props);
16886
+ }
16887
+ function TbRipple(props) {
16888
+ return GenIcon({
16889
+ "tag": "svg",
16890
+ "attr": {
16891
+ "viewBox": "0 0 24 24",
16892
+ "fill": "none",
16893
+ "stroke": "currentColor",
16894
+ "strokeWidth": "2",
16895
+ "strokeLinecap": "round",
16896
+ "strokeLinejoin": "round"
16897
+ },
16898
+ "child": [
16899
+ {
16900
+ "tag": "path",
16901
+ "attr": { "d": "M3 7c3 -2 6 -2 9 0s6 2 9 0" },
16902
+ "child": []
16903
+ },
16904
+ {
16905
+ "tag": "path",
16906
+ "attr": { "d": "M3 17c3 -2 6 -2 9 0s6 2 9 0" },
16907
+ "child": []
16908
+ },
16909
+ {
16910
+ "tag": "path",
16911
+ "attr": { "d": "M3 12c3 -2 6 -2 9 0s6 2 9 0" },
16912
+ "child": []
16913
+ }
16914
+ ]
16915
+ })(props);
16916
+ }
16917
+ function TbMovie(props) {
16918
+ return GenIcon({
16919
+ "tag": "svg",
16920
+ "attr": {
16921
+ "viewBox": "0 0 24 24",
16922
+ "fill": "none",
16923
+ "stroke": "currentColor",
16924
+ "strokeWidth": "2",
16925
+ "strokeLinecap": "round",
16926
+ "strokeLinejoin": "round"
16927
+ },
16928
+ "child": [
16929
+ {
16930
+ "tag": "path",
16931
+ "attr": { "d": "M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12" },
16932
+ "child": []
16933
+ },
16934
+ {
16935
+ "tag": "path",
16936
+ "attr": { "d": "M8 4l0 16" },
16937
+ "child": []
16938
+ },
16939
+ {
16940
+ "tag": "path",
16941
+ "attr": { "d": "M16 4l0 16" },
16942
+ "child": []
16943
+ },
16944
+ {
16945
+ "tag": "path",
16946
+ "attr": { "d": "M4 8l4 0" },
16947
+ "child": []
16948
+ },
16949
+ {
16950
+ "tag": "path",
16951
+ "attr": { "d": "M4 16l4 0" },
16952
+ "child": []
16953
+ },
16954
+ {
16955
+ "tag": "path",
16956
+ "attr": { "d": "M4 12l16 0" },
16957
+ "child": []
16958
+ },
16959
+ {
16960
+ "tag": "path",
16961
+ "attr": { "d": "M16 8l4 0" },
16962
+ "child": []
16963
+ },
16964
+ {
16965
+ "tag": "path",
16966
+ "attr": { "d": "M16 16l4 0" },
16967
+ "child": []
16968
+ }
16969
+ ]
16970
+ })(props);
16971
+ }
16972
+ function TbMoonStars(props) {
16973
+ return GenIcon({
16974
+ "tag": "svg",
16975
+ "attr": {
16976
+ "viewBox": "0 0 24 24",
16977
+ "fill": "none",
16978
+ "stroke": "currentColor",
16979
+ "strokeWidth": "2",
16980
+ "strokeLinecap": "round",
16981
+ "strokeLinejoin": "round"
16982
+ },
16983
+ "child": [
16984
+ {
16985
+ "tag": "path",
16986
+ "attr": { "d": "M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454l0 .008" },
16987
+ "child": []
16988
+ },
16989
+ {
16990
+ "tag": "path",
16991
+ "attr": { "d": "M17 4a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2" },
16992
+ "child": []
16993
+ },
16994
+ {
16995
+ "tag": "path",
16996
+ "attr": { "d": "M19 11h2m-1 -1v2" },
16997
+ "child": []
16998
+ }
16999
+ ]
17000
+ })(props);
17001
+ }
17002
+ function TbLeaf(props) {
17003
+ return GenIcon({
17004
+ "tag": "svg",
17005
+ "attr": {
17006
+ "viewBox": "0 0 24 24",
17007
+ "fill": "none",
17008
+ "stroke": "currentColor",
17009
+ "strokeWidth": "2",
17010
+ "strokeLinecap": "round",
17011
+ "strokeLinejoin": "round"
17012
+ },
17013
+ "child": [{
17014
+ "tag": "path",
17015
+ "attr": { "d": "M5 21c.5 -4.5 2.5 -8 7 -10" },
17016
+ "child": []
17017
+ }, {
17018
+ "tag": "path",
17019
+ "attr": { "d": "M9 18c6.218 0 10.5 -3.288 11 -12v-2h-4.014c-9 0 -11.986 4 -12 9c0 1 0 3 2 5h3l.014 0" },
17020
+ "child": []
17021
+ }]
17022
+ })(props);
17023
+ }
17024
+ function TbFeather(props) {
17025
+ return GenIcon({
17026
+ "tag": "svg",
17027
+ "attr": {
17028
+ "viewBox": "0 0 24 24",
17029
+ "fill": "none",
17030
+ "stroke": "currentColor",
17031
+ "strokeWidth": "2",
17032
+ "strokeLinecap": "round",
17033
+ "strokeLinejoin": "round"
17034
+ },
17035
+ "child": [{
17036
+ "tag": "path",
17037
+ "attr": { "d": "M4 20l10 -10m0 -5v5h5m-9 -1v5h5m-9 -1v5h5m-5 -5l4 -4l4 -4" },
17038
+ "child": []
17039
+ }, {
17040
+ "tag": "path",
17041
+ "attr": { "d": "M19 10c.638 -.636 1 -1.515 1 -2.486a3.515 3.515 0 0 0 -3.517 -3.514c-.97 0 -1.847 .367 -2.483 1m-3 13l4 -4l4 -4" },
17042
+ "child": []
17043
+ }]
17044
+ })(props);
17045
+ }
17046
+ function TbDiamond(props) {
17047
+ return GenIcon({
17048
+ "tag": "svg",
17049
+ "attr": {
17050
+ "viewBox": "0 0 24 24",
17051
+ "fill": "none",
17052
+ "stroke": "currentColor",
17053
+ "strokeWidth": "2",
17054
+ "strokeLinecap": "round",
17055
+ "strokeLinejoin": "round"
17056
+ },
17057
+ "child": [{
17058
+ "tag": "path",
17059
+ "attr": { "d": "M6 5h12l3 5l-8.5 9.5a.7 .7 0 0 1 -1 0l-8.5 -9.5l3 -5" },
17060
+ "child": []
17061
+ }, {
17062
+ "tag": "path",
17063
+ "attr": { "d": "M10 12l-2 -2.2l.6 -1" },
17064
+ "child": []
17065
+ }]
17066
+ })(props);
17067
+ }
17068
+ function TbDeviceGamepad2(props) {
17069
+ return GenIcon({
17070
+ "tag": "svg",
17071
+ "attr": {
17072
+ "viewBox": "0 0 24 24",
17073
+ "fill": "none",
17074
+ "stroke": "currentColor",
17075
+ "strokeWidth": "2",
17076
+ "strokeLinecap": "round",
17077
+ "strokeLinejoin": "round"
17078
+ },
17079
+ "child": [
17080
+ {
17081
+ "tag": "path",
17082
+ "attr": { "d": "M12 5h3.5a5 5 0 0 1 0 10h-5.5l-4.015 4.227a2.3 2.3 0 0 1 -3.923 -2.035l1.634 -8.173a5 5 0 0 1 4.904 -4.019h3.4" },
17083
+ "child": []
17084
+ },
17085
+ {
17086
+ "tag": "path",
17087
+ "attr": { "d": "M14 15l4.07 4.284a2.3 2.3 0 0 0 3.925 -2.023l-1.6 -8.232" },
17088
+ "child": []
17089
+ },
17090
+ {
17091
+ "tag": "path",
17092
+ "attr": { "d": "M8 9v2" },
17093
+ "child": []
17094
+ },
17095
+ {
17096
+ "tag": "path",
17097
+ "attr": { "d": "M7 10h2" },
17098
+ "child": []
17099
+ },
17100
+ {
17101
+ "tag": "path",
17102
+ "attr": { "d": "M14 10h2" },
17103
+ "child": []
17104
+ }
17105
+ ]
17106
+ })(props);
17107
+ }
17108
+ function TbCircle(props) {
17109
+ return GenIcon({
17110
+ "tag": "svg",
17111
+ "attr": {
17112
+ "viewBox": "0 0 24 24",
17113
+ "fill": "none",
17114
+ "stroke": "currentColor",
17115
+ "strokeWidth": "2",
17116
+ "strokeLinecap": "round",
17117
+ "strokeLinejoin": "round"
17118
+ },
17119
+ "child": [{
17120
+ "tag": "path",
17121
+ "attr": { "d": "M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" },
17122
+ "child": []
17123
+ }]
17124
+ })(props);
17125
+ }
17126
+ function TbBounceRight(props) {
17127
+ return GenIcon({
17128
+ "tag": "svg",
17129
+ "attr": {
17130
+ "viewBox": "0 0 24 24",
17131
+ "fill": "none",
17132
+ "stroke": "currentColor",
17133
+ "strokeWidth": "2",
17134
+ "strokeLinecap": "round",
17135
+ "strokeLinejoin": "round"
17136
+ },
17137
+ "child": [{
17138
+ "tag": "path",
17139
+ "attr": { "d": "M4 15.5c3 -1 5.5 -.5 8 4.5c.5 -3 1.5 -5.5 3 -8" },
17140
+ "child": []
17141
+ }, {
17142
+ "tag": "path",
17143
+ "attr": { "d": "M18 9a2 2 0 1 1 0 -4a2 2 0 0 1 0 4" },
17144
+ "child": []
17145
+ }]
17146
+ })(props);
17147
+ }
17148
+ function TbAdjustmentsHorizontal(props) {
17149
+ return GenIcon({
17150
+ "tag": "svg",
17151
+ "attr": {
17152
+ "viewBox": "0 0 24 24",
17153
+ "fill": "none",
17154
+ "stroke": "currentColor",
17155
+ "strokeWidth": "2",
17156
+ "strokeLinecap": "round",
17157
+ "strokeLinejoin": "round"
17158
+ },
17159
+ "child": [
17160
+ {
17161
+ "tag": "path",
17162
+ "attr": { "d": "M12 6a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" },
17163
+ "child": []
17164
+ },
17165
+ {
17166
+ "tag": "path",
17167
+ "attr": { "d": "M4 6l8 0" },
17168
+ "child": []
17169
+ },
17170
+ {
17171
+ "tag": "path",
17172
+ "attr": { "d": "M16 6l4 0" },
17173
+ "child": []
17174
+ },
17175
+ {
17176
+ "tag": "path",
17177
+ "attr": { "d": "M6 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" },
17178
+ "child": []
17179
+ },
17180
+ {
17181
+ "tag": "path",
17182
+ "attr": { "d": "M4 12l2 0" },
17183
+ "child": []
17184
+ },
17185
+ {
17186
+ "tag": "path",
17187
+ "attr": { "d": "M10 12l10 0" },
17188
+ "child": []
17189
+ },
17190
+ {
17191
+ "tag": "path",
17192
+ "attr": { "d": "M15 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" },
17193
+ "child": []
17194
+ },
17195
+ {
17196
+ "tag": "path",
17197
+ "attr": { "d": "M4 18l11 0" },
17198
+ "child": []
17199
+ },
17200
+ {
17201
+ "tag": "path",
17202
+ "attr": { "d": "M19 18l1 0" },
17203
+ "child": []
17204
+ }
17205
+ ]
17206
+ })(props);
17207
+ }
17208
+
17209
+ //#endregion
17210
+ //#region src/client/sound-effects/sound-pack-icon.tsx
17211
+ const SOUND_PACK_ICONS = {
17212
+ minimal: TbCircle,
17213
+ soft: TbFeather,
17214
+ glass: TbDiamond,
17215
+ arcade: TbDeviceGamepad2,
17216
+ mechanical: TbSettings,
17217
+ organic: TbLeaf,
17218
+ dreamy: TbMoonStars,
17219
+ scifi: TbUfo,
17220
+ rubber: TbBounceRight,
17221
+ cinematic: TbMovie,
17222
+ studio: TbAdjustmentsHorizontal,
17223
+ zen: TbRipple
17224
+ };
17225
+ function SoundPackIcon({ pack }) {
17226
+ const Icon = SOUND_PACK_ICONS[pack];
17227
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {
17228
+ className: "xmimo-tts-sound-pack-icon",
17229
+ size: 20,
17230
+ strokeWidth: 1.8,
17231
+ "aria-hidden": "true",
17232
+ focusable: "false"
17233
+ });
17234
+ }
17235
+
16829
17236
  //#endregion
16830
17237
  //#region src/client/settings/sound-effects-module.tsx
16831
17238
  const PREVIEW_CUES = [
@@ -16865,22 +17272,6 @@ function SoundEffectsPanel({ t, controller, enabled, volume, pack, taskSounds, c
16865
17272
  const mode = resolveSoundEffectsMode(enabled, taskSounds, clickSounds);
16866
17273
  const modeLabel = mode === "all" ? t("settings.soundEffectsOn") : mode === "off" ? t("settings.soundEffectsOff") : mode === "click" ? t("settings.soundEffectsClickOnly") : t("settings.soundEffectsTaskOnly");
16867
17274
  const scope = resolveSoundEffectsScope(taskSounds, clickSounds);
16868
- (0, react.useEffect)(() => {
16869
- controller.update({
16870
- enabled,
16871
- volume,
16872
- pack,
16873
- taskSounds,
16874
- clickSounds
16875
- });
16876
- }, [
16877
- clickSounds,
16878
- controller,
16879
- enabled,
16880
- pack,
16881
- taskSounds,
16882
- volume
16883
- ]);
16884
17275
  const selectPack = (nextPack) => {
16885
17276
  if (!writable || !enabled) return;
16886
17277
  if (nextPack === pack) {
@@ -17000,11 +17391,7 @@ function SoundEffectsPanel({ t, controller, enabled, volume, pack, taskSounds, c
17000
17391
  handlePackKeyDown(event, index);
17001
17392
  },
17002
17393
  children: [
17003
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
17004
- className: "xmimo-tts-sound-pack-gift",
17005
- "aria-hidden": "true",
17006
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { className: "xmimo-tts-sound-pack-gift-lid" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { className: "xmimo-tts-sound-pack-gift-ribbon" })]
17007
- }),
17394
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SoundPackIcon, { pack: option }),
17008
17395
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
17009
17396
  className: "xmimo-tts-sound-pack-name",
17010
17397
  children: option
@@ -17055,7 +17442,7 @@ function SoundEffectsPanel({ t, controller, enabled, volume, pack, taskSounds, c
17055
17442
  function CharacterToggle({ kind, checked, disabled, label, stateLabel, minimal, onChange }) {
17056
17443
  const state = checked ? "on" : "off";
17057
17444
  if (minimal) return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
17058
- className: "xmimo-tts-minimal-toggle",
17445
+ className: "xmimo-tts-minimal-control xmimo-tts-minimal-toggle",
17059
17446
  "data-xmimo-sound-toggle": kind === "sound" ? "true" : void 0,
17060
17447
  onClick: (event) => {
17061
17448
  if (event.target.closest("button") !== null || disabled) return;
@@ -17101,11 +17488,78 @@ function CharacterToggle({ kind, checked, disabled, label, stateLabel, minimal,
17101
17488
  })]
17102
17489
  });
17103
17490
  }
17104
- function SwitchModule({ t, enabled, autoPlay, soundEnabled, minimal, writable, onEnabledChange, onAutoPlayChange, onSoundEnabledChange }) {
17491
+ function ProviderToggle({ t, provider, minimal, writable, onChange }) {
17492
+ const nextProvider = provider === "xiaomi" ? "doubao" : "xiaomi";
17493
+ const label = t(provider === "xiaomi" ? "settings.providerXiaomi" : "settings.providerDoubao");
17494
+ const nextLabel = t(nextProvider === "xiaomi" ? "settings.providerXiaomi" : "settings.providerDoubao");
17495
+ const switchLabel = `${t("settings.provider")}: ${label} · ${t("settings.switchProvider")}: ${nextLabel}`;
17496
+ const switchIcon = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
17497
+ width: "14",
17498
+ height: "14",
17499
+ viewBox: "0 0 24 24",
17500
+ fill: "none",
17501
+ stroke: "currentColor",
17502
+ strokeWidth: "1.8",
17503
+ strokeLinecap: "round",
17504
+ strokeLinejoin: "round",
17505
+ "aria-hidden": "true",
17506
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M3 7h18m-4-4 4 4-4 4M21 17H3m4-4-4 4 4 4" })
17507
+ });
17508
+ if (minimal) return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__deepseek_ai_dsh_client_ui_primitives.Button, {
17509
+ type: "button",
17510
+ variant: "outline",
17511
+ size: "sm",
17512
+ className: "xmimo-tts-minimal-control xmimo-tts-provider-button",
17513
+ "data-xmimo-sound-toggle": "provider",
17514
+ "aria-label": switchLabel,
17515
+ title: switchLabel,
17516
+ disabled: !writable,
17517
+ onClick: () => onChange(nextProvider),
17518
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: label }), switchIcon]
17519
+ });
17520
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
17521
+ type: "button",
17522
+ className: "xmimo-tts-character-toggle xmimo-tts-character-toggle-on xmimo-tts-provider-toggle",
17523
+ "data-provider": provider,
17524
+ "data-xmimo-sound-toggle": "provider",
17525
+ "aria-label": switchLabel,
17526
+ title: switchLabel,
17527
+ disabled: !writable,
17528
+ onClick: () => onChange(nextProvider),
17529
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
17530
+ className: "xmimo-tts-character-control",
17531
+ children: [
17532
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
17533
+ className: "xmimo-tts-character-portrait xmimo-tts-provider-portrait",
17534
+ "aria-hidden": "true",
17535
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
17536
+ className: "xmimo-tts-provider-flipper",
17537
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
17538
+ className: "xmimo-tts-provider-face xmimo-tts-provider-face-xiaomi",
17539
+ style: { backgroundImage: `url(${hostRoute(TTS_PROVIDER_CHARACTER_ASSET_ROUTES.xiaomi)})` }
17540
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
17541
+ className: "xmimo-tts-provider-face xmimo-tts-provider-face-doubao",
17542
+ style: { backgroundImage: `url(${hostRoute(TTS_PROVIDER_CHARACTER_ASSET_ROUTES.doubao)})` }
17543
+ })]
17544
+ })
17545
+ }),
17546
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
17547
+ className: "xmimo-tts-character-copy",
17548
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: label })
17549
+ }),
17550
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
17551
+ className: "xmimo-tts-character-state xmimo-tts-provider-state",
17552
+ children: switchIcon
17553
+ })
17554
+ ]
17555
+ })
17556
+ });
17557
+ }
17558
+ function SwitchModule({ t, provider, enabled, autoPlay, soundEnabled, minimal, writable, onProviderChange, onEnabledChange, onAutoPlayChange, onSoundEnabledChange }) {
17105
17559
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("section", {
17106
17560
  className: minimal ? "xmimo-tts-switch-module xmimo-tts-switch-module-minimal" : "xmimo-tts-switch-module",
17107
17561
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
17108
- className: "xmimo-tts-switch-row xmimo-ui-row",
17562
+ className: "xmimo-tts-switch-row xmimo-ui-grid",
17109
17563
  children: [
17110
17564
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CharacterToggle, {
17111
17565
  kind: "voice",
@@ -17133,6 +17587,13 @@ function SwitchModule({ t, enabled, autoPlay, soundEnabled, minimal, writable, o
17133
17587
  stateLabel: t(soundEnabled ? "settings.stateOn" : "settings.stateOff"),
17134
17588
  minimal,
17135
17589
  onChange: onSoundEnabledChange
17590
+ }),
17591
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ProviderToggle, {
17592
+ t,
17593
+ provider,
17594
+ minimal,
17595
+ writable,
17596
+ onChange: onProviderChange
17136
17597
  })
17137
17598
  ]
17138
17599
  })
@@ -17983,6 +18444,22 @@ function SettingsPage({ scope, t, controller, history, beforeHistoryPlayback, sp
17983
18444
  (0, react.useEffect)(() => {
17984
18445
  toggleSoundPlayer.setEnabled(!minimalMode);
17985
18446
  }, [minimalMode, toggleSoundPlayer]);
18447
+ (0, react.useEffect)(() => {
18448
+ controller.update({
18449
+ enabled: soundEnabled,
18450
+ volume: soundVolume,
18451
+ pack: soundPack,
18452
+ taskSounds,
18453
+ clickSounds
18454
+ });
18455
+ }, [
18456
+ clickSounds,
18457
+ controller,
18458
+ soundEnabled,
18459
+ soundPack,
18460
+ soundVolume,
18461
+ taskSounds
18462
+ ]);
17986
18463
  (0, react.useEffect)(() => {
17987
18464
  previewPlayer.setVolume(voiceVolume);
17988
18465
  toggleSoundPlayer.setVolume(voiceVolume);
@@ -18148,6 +18625,12 @@ function SettingsPage({ scope, t, controller, history, beforeHistoryPlayback, sp
18148
18625
  } else markChange("autoPlay");
18149
18626
  setState("idle");
18150
18627
  };
18628
+ const changeProvider = (next) => {
18629
+ if (soundEnabled && clickSounds) controller.play("select");
18630
+ previewPlayer.stop();
18631
+ setProvider(next);
18632
+ markChange("provider");
18633
+ };
18151
18634
  const changeSoundScope = (scope$1) => {
18152
18635
  const flags = getSoundEffectsModeFlags(scope$1);
18153
18636
  controller.update({
@@ -18219,11 +18702,13 @@ function SettingsPage({ scope, t, controller, history, beforeHistoryPlayback, sp
18219
18702
  children: [
18220
18703
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SwitchModule, {
18221
18704
  t,
18705
+ provider,
18222
18706
  enabled,
18223
18707
  autoPlay,
18224
18708
  soundEnabled,
18225
18709
  minimal: minimalMode,
18226
18710
  writable: snapshot.writable,
18711
+ onProviderChange: changeProvider,
18227
18712
  onEnabledChange: changeEnabled,
18228
18713
  onAutoPlayChange: changeAutoPlay,
18229
18714
  onSoundEnabledChange: changeSoundEnabled
@@ -18231,11 +18716,6 @@ function SettingsPage({ scope, t, controller, history, beforeHistoryPlayback, sp
18231
18716
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ApiKeyModule, {
18232
18717
  t,
18233
18718
  provider,
18234
- onProviderChange: (next) => {
18235
- previewPlayer.stop();
18236
- setProvider(next);
18237
- markChange("provider");
18238
- },
18239
18719
  value: apiKey,
18240
18720
  message: apiKeyMessage,
18241
18721
  invalid: apiKeyInvalid,
@@ -18346,7 +18826,7 @@ function SettingsPage({ scope, t, controller, history, beforeHistoryPlayback, sp
18346
18826
  markChange("localSpeechMode");
18347
18827
  }
18348
18828
  }) : null,
18349
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SoundEffectsPanel, {
18829
+ soundEnabled ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SoundEffectsPanel, {
18350
18830
  t,
18351
18831
  controller,
18352
18832
  enabled: soundEnabled,
@@ -18367,8 +18847,8 @@ function SettingsPage({ scope, t, controller, history, beforeHistoryPlayback, sp
18367
18847
  setSoundPack(next);
18368
18848
  markChange("soundPack");
18369
18849
  }
18370
- }),
18371
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PreviewModule, {
18850
+ }) : null,
18851
+ enabled ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PreviewModule, {
18372
18852
  t,
18373
18853
  enabled,
18374
18854
  open: openPanel === "broadcast",
@@ -18387,25 +18867,33 @@ function SettingsPage({ scope, t, controller, history, beforeHistoryPlayback, sp
18387
18867
  setAnnouncementSources(next);
18388
18868
  markChange("announcementSources");
18389
18869
  }
18390
- }),
18870
+ }) : null,
18391
18871
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
18392
18872
  className: "xmimo-tts-card-actions",
18393
18873
  children: [
18394
- latestVersion !== null ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
18874
+ latestVersion !== null ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("a", {
18395
18875
  className: "xmimo-tts-update",
18396
18876
  href: RELEASES_URL,
18397
18877
  target: "_blank",
18398
18878
  rel: "noopener noreferrer",
18399
- children: t("settings.updateAvailable")
18879
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(AiOutlineGift, {
18880
+ size: 14,
18881
+ "aria-hidden": "true",
18882
+ focusable: "false"
18883
+ }), t("settings.updateAvailable")]
18400
18884
  }) : null,
18401
18885
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
18402
18886
  className: "xmimo-tts-card-action-links",
18403
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
18887
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("a", {
18404
18888
  className: "xmimo-tts-star",
18405
18889
  href: "https://github.com/ppy-web/dsh-plugin-xiaomi-mimo-tts",
18406
18890
  target: "_blank",
18407
18891
  rel: "noopener noreferrer",
18408
- children: t("settings.source")
18892
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(AiFillGithub, {
18893
+ size: 14,
18894
+ "aria-hidden": "true",
18895
+ focusable: "false"
18896
+ }), t("settings.source")]
18409
18897
  }), history ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(HistoryLink, {
18410
18898
  history,
18411
18899
  t,
@@ -18653,6 +19141,46 @@ function readScopeWriteOps(scope) {
18653
19141
  value: scope
18654
19142
  }];
18655
19143
  }
19144
+ /** Volume steps offered by the page (0 %–100 % in 20-point steps). */
19145
+ const VOICE_VOLUME_STEPS = [
19146
+ 0,
19147
+ .2,
19148
+ .4,
19149
+ .6,
19150
+ .8,
19151
+ 1
19152
+ ];
19153
+ /** Playback speeds offered by the page. */
19154
+ const VOICE_RATE_STEPS = [
19155
+ .5,
19156
+ .8,
19157
+ 1,
19158
+ 1.2,
19159
+ 1.5,
19160
+ 1.8
19161
+ ];
19162
+ /** `0.8` → `80%`, the same reading the settings card shows. */
19163
+ function formatVoiceVolume(volume) {
19164
+ return `${Math.round(volume * 100)}%`;
19165
+ }
19166
+ /** `1.2` → `1.2×`, the same reading the settings card shows. */
19167
+ function formatVoiceRate(rate) {
19168
+ return `${rate.toFixed(1)}×`;
19169
+ }
19170
+ function volumeWriteOps(volume) {
19171
+ return [{
19172
+ op: "set",
19173
+ path: ["voiceVolume"],
19174
+ value: volume
19175
+ }];
19176
+ }
19177
+ function rateWriteOps(rate) {
19178
+ return [{
19179
+ op: "set",
19180
+ path: ["voiceRate"],
19181
+ value: rate
19182
+ }];
19183
+ }
18656
19184
  function soundWriteOps(next, current) {
18657
19185
  if (!next) return [{
18658
19186
  op: "set",
@@ -18686,6 +19214,53 @@ function VoiceReadingSection(props) {
18686
19214
  t
18687
19215
  });
18688
19216
  }
19217
+ /**
19218
+ * Capsule selector pill plus anchored menu, mirroring the Host settings rows
19219
+ * (`packages/client/ui-chat/src/client/settings/PreferenceRow.tsx` and
19220
+ * `packages/client/locale/src/client/LanguageRow.tsx` in the harness source): a
19221
+ * borderless 36px pill on the module surface that opens the shared `Menu` with
19222
+ * a check on the selected row. Choosing returns focus to the pill before the
19223
+ * value is published, exactly like the Host rows.
19224
+ */
19225
+ function VoiceReadingSelect({ label, value, fallbackLabel, options, disabled, onSelect }) {
19226
+ const [open, setOpen] = (0, react.useState)(false);
19227
+ const selectorRef = (0, react.useRef)(null);
19228
+ const closeMenu = () => {
19229
+ setOpen(false);
19230
+ };
19231
+ const choose = (id$2) => {
19232
+ selectorRef.current?.focus({ preventScroll: true });
19233
+ closeMenu();
19234
+ onSelect(id$2);
19235
+ };
19236
+ const selectedLabel = options.find((option) => option.id === value)?.label ?? fallbackLabel ?? value;
19237
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Menu, {
19238
+ open: open && !disabled,
19239
+ anchor: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
19240
+ ref: selectorRef,
19241
+ type: "button",
19242
+ className: "xmimo-voice-reading-selector",
19243
+ "aria-label": label,
19244
+ "aria-haspopup": "menu",
19245
+ "aria-expanded": open,
19246
+ disabled,
19247
+ onClick: () => {
19248
+ setOpen((current) => !current);
19249
+ },
19250
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
19251
+ className: "xmimo-voice-reading-selector-label",
19252
+ children: selectedLabel
19253
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.IconChevronDownOutlineRegular, { className: "xmimo-voice-reading-chevron" })]
19254
+ }),
19255
+ items: options,
19256
+ selectedId: value,
19257
+ onSelect: choose,
19258
+ onClose: closeMenu,
19259
+ align: "end",
19260
+ portal: true,
19261
+ listClassName: "xmimo-voice-reading-menu"
19262
+ });
19263
+ }
18689
19264
  function VoiceReadingPage({ scope, t }) {
18690
19265
  const snapshot = useSettingsSnapshot(scope);
18691
19266
  const [clonedHistory] = (0, react.useState)(() => readVoiceIdHistory("cloned"));
@@ -18712,7 +19287,17 @@ function VoiceReadingPage({ scope, t }) {
18712
19287
  });
18713
19288
  const ready = snapshot.status === "ready";
18714
19289
  const disabled = !ready || !snapshot.writable || busy;
18715
- const hasStoredChoice = source.choices.some((choice) => choice.value === source.value);
19290
+ const voiceOptions = [...source.choices.some((choice) => choice.value === source.value) ? [] : [{
19291
+ id: source.value,
19292
+ label: t("settings.voiceReadingCustomVoice")
19293
+ }], ...source.choices.map((choice) => ({
19294
+ id: choice.value,
19295
+ label: choice.detail ? `${choice.label} · ${choice.detail}` : choice.label
19296
+ }))];
19297
+ const readScopeOptions = TTS_READ_SCOPES.map((option) => ({
19298
+ id: option,
19299
+ label: t(readScopeLabelKey(option))
19300
+ }));
18716
19301
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
18717
19302
  className: "xmimo-voice-reading",
18718
19303
  children: [
@@ -18743,21 +19328,64 @@ function VoiceReadingPage({ scope, t }) {
18743
19328
  className: "xmimo-voice-reading-row-hint",
18744
19329
  children: t(source.hintKey)
18745
19330
  })]
18746
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
18747
- className: "xmimo-voice-reading-select",
18748
- "aria-label": t("settings.voiceReadingVoice"),
19331
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VoiceReadingSelect, {
19332
+ label: t("settings.voiceReadingVoice"),
18749
19333
  value: source.value,
19334
+ options: voiceOptions,
18750
19335
  disabled,
18751
- onChange: (event) => {
18752
- write(voiceChoiceWriteOps(source, event.currentTarget.value));
18753
- },
18754
- children: [hasStoredChoice ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
18755
- value: source.value,
18756
- children: t("settings.voiceReadingCustomVoice")
18757
- }), source.choices.map((choice) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
18758
- value: choice.value,
18759
- children: choice.detail ? `${choice.label} · ${choice.detail}` : choice.label
18760
- }, choice.value))]
19336
+ onSelect: (id$2) => {
19337
+ write(voiceChoiceWriteOps(source, id$2));
19338
+ }
19339
+ })]
19340
+ }),
19341
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19342
+ className: "xmimo-voice-reading-row",
19343
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19344
+ className: "xmimo-voice-reading-copy",
19345
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
19346
+ className: "xmimo-voice-reading-row-title",
19347
+ children: t("settings.voiceReadingVolume")
19348
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
19349
+ className: "xmimo-voice-reading-row-hint",
19350
+ children: t("settings.voiceReadingVolumeHint")
19351
+ })]
19352
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VoiceReadingSelect, {
19353
+ label: t("settings.voiceReadingVolume"),
19354
+ value: String(settings.voiceVolume),
19355
+ fallbackLabel: formatVoiceVolume(settings.voiceVolume),
19356
+ options: VOICE_VOLUME_STEPS.map((step) => ({
19357
+ id: String(step),
19358
+ label: formatVoiceVolume(step)
19359
+ })),
19360
+ disabled,
19361
+ onSelect: (id$2) => {
19362
+ write(volumeWriteOps(Number(id$2)));
19363
+ }
19364
+ })]
19365
+ }),
19366
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19367
+ className: "xmimo-voice-reading-row",
19368
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19369
+ className: "xmimo-voice-reading-copy",
19370
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
19371
+ className: "xmimo-voice-reading-row-title",
19372
+ children: t("settings.voiceReadingRate")
19373
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
19374
+ className: "xmimo-voice-reading-row-hint",
19375
+ children: t("settings.voiceReadingRateHint")
19376
+ })]
19377
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VoiceReadingSelect, {
19378
+ label: t("settings.voiceReadingRate"),
19379
+ value: String(settings.voiceRate),
19380
+ fallbackLabel: formatVoiceRate(settings.voiceRate),
19381
+ options: VOICE_RATE_STEPS.map((step) => ({
19382
+ id: String(step),
19383
+ label: formatVoiceRate(step)
19384
+ })),
19385
+ disabled,
19386
+ onSelect: (id$2) => {
19387
+ write(rateWriteOps(Number(id$2)));
19388
+ }
18761
19389
  })]
18762
19390
  }),
18763
19391
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
@@ -18771,18 +19399,14 @@ function VoiceReadingPage({ scope, t }) {
18771
19399
  className: "xmimo-voice-reading-row-hint",
18772
19400
  children: t(readScopeHintKey(settings.readScope))
18773
19401
  })]
18774
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("select", {
18775
- className: "xmimo-voice-reading-select",
18776
- "aria-label": t("settings.readScope"),
19402
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VoiceReadingSelect, {
19403
+ label: t("settings.readScope"),
18777
19404
  value: settings.readScope,
19405
+ options: readScopeOptions,
18778
19406
  disabled,
18779
- onChange: (event) => {
18780
- write(readScopeWriteOps(event.currentTarget.value));
18781
- },
18782
- children: TTS_READ_SCOPES.map((scope$1) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
18783
- value: scope$1,
18784
- children: t(readScopeLabelKey(scope$1))
18785
- }, scope$1))
19407
+ onSelect: (id$2) => {
19408
+ write(readScopeWriteOps(id$2));
19409
+ }
18786
19410
  })]
18787
19411
  }),
18788
19412
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
@@ -20296,7 +20920,7 @@ var base_default = "/*\n * Shared state text styles: inline errors, warning/erro
20296
20920
 
20297
20921
  //#endregion
20298
20922
  //#region src/client/style/api-key.css?raw
20299
- var api_key_default = "/*\n * API key input row: the input, the whale mascot and its speech bubble.\n */\n\n.xmimo-tts-api-key-input {\n position: relative;\n display: flex\n}\n\n.xmimo-tts-api-key-input>input {\n position: relative;\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n flex: 1 1 auto;\n z-index: 1\n}\n\n.xmimo-tts-api-key-whale {\n top: auto;\n right: 8px;\n bottom: calc(100% - 6px);\n width: 56px;\n height: 56px;\n position: absolute;\n z-index: 2;\n display: block;\n background-repeat: no-repeat;\n background-position: left center;\n background-size: 200% 100%;\n pointer-events: none;\n filter: drop-shadow(0 2px 3px rgba(15, 23, 42, .16));\n transition: transform 160ms ease, filter 160ms ease\n}\n\n.xmimo-tts-api-key-input:focus-within .xmimo-tts-api-key-whale {\n background-position: right center;\n transform: translateY(1px) scale(.97);\n filter: drop-shadow(0 2px 3px rgba(15, 23, 42, .12))\n}\n\n.xmimo-tts-character-bubble {\n position: absolute;\n z-index: 3;\n right: 62px;\n bottom: calc(100% + 7px);\n max-width: calc(100% - 82px);\n overflow: hidden;\n border-radius: 8px;\n padding: 4px 8px;\n color: var(--dsw-alias-label-secondary, #5f6875);\n background: var(--dsw-alias-bg-layer-1, #fff);\n font-size: 11px;\n line-height: 14px;\n box-shadow: 0 4px 12px rgb(0 0 0 / 10%);\n text-overflow: ellipsis;\n white-space: nowrap\n}\n\n.xmimo-tts-provider-cycle {\n display: inline-flex;\n width: 24px;\n height: 24px;\n min-width: 24px;\n align-items: center;\n justify-content: center;\n padding: 4px;\n color: var(--xmimo-ui-text-muted);\n vertical-align: middle;\n}\n\n.xmimo-tts-provider-cycle:hover:not(:disabled) {\n color: var(--xmimo-ui-brand);\n}\n\n.xmimo-tts-provider-cycle:focus-visible {\n outline: 2px solid var(--xmimo-ui-brand);\n outline-offset: 2px;\n}\n\n.xmimo-tts-api-key-bubble, .xmimo-tts-api-key-whale { pointer-events: none; }\n";
20923
+ var api_key_default = "/*\n * API key input row: the input, the whale mascot and its speech bubble.\n */\n\n.xmimo-tts-api-key-input {\n position: relative;\n display: flex\n}\n\n.xmimo-tts-api-key-input>input {\n position: relative;\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n flex: 1 1 auto;\n z-index: 1\n}\n\n.xmimo-tts-api-key-whale {\n top: auto;\n right: 8px;\n bottom: calc(100% - 6px);\n width: 56px;\n height: 56px;\n position: absolute;\n z-index: 2;\n display: block;\n background-repeat: no-repeat;\n background-position: left center;\n background-size: 200% 100%;\n pointer-events: none;\n filter: drop-shadow(0 2px 3px rgba(15, 23, 42, .16));\n transition: transform 160ms ease, filter 160ms ease\n}\n\n.xmimo-tts-api-key-input:focus-within .xmimo-tts-api-key-whale {\n background-position: right center;\n transform: translateY(1px) scale(.97);\n filter: drop-shadow(0 2px 3px rgba(15, 23, 42, .12))\n}\n\n.xmimo-tts-character-bubble {\n position: absolute;\n z-index: 3;\n right: 62px;\n bottom: calc(100% + 7px);\n max-width: calc(100% - 82px);\n overflow: hidden;\n border-radius: 8px;\n padding: 4px 8px;\n color: var(--dsw-alias-label-secondary, #5f6875);\n background: var(--dsw-alias-bg-layer-1, #fff);\n font-size: 11px;\n line-height: 14px;\n box-shadow: 0 4px 12px rgb(0 0 0 / 10%);\n text-overflow: ellipsis;\n white-space: nowrap\n}\n\n.xmimo-tts-api-key-bubble, .xmimo-tts-api-key-whale { pointer-events: none; }\n";
20300
20924
 
20301
20925
  //#endregion
20302
20926
  //#region src/client/style/card.css?raw
@@ -20304,7 +20928,7 @@ var card_default = "/*\n * Settings card shell: collapsible header, title, descr
20304
20928
 
20305
20929
  //#endregion
20306
20930
  //#region src/client/style/fields.css?raw
20307
- var fields_default = "/*\n * Form fields: grid layout, inputs/selects/textareas, field headings and badges, reset link, model switch, audio format options.\n */\n\n.xmimo-tts-grid {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: 0;\n align-items: start\n}\n\n.xmimo-tts-grid>* {\n box-sizing: border-box;\n padding: 5px 0;\n border-top: 1px solid var(--xmimo-ui-border-soft)\n}\n\n.xmimo-tts-grid>:first-child {\n border-top: 0\n}\n\n.xmimo-tts-grid label,\n.xmimo-tts-api-key,\n.xmimo-tts-model,\n.xmimo-tts-format,\n.xmimo-tts-voice-design-prompt,\n.xmimo-tts-voice {\n display: flex;\n min-width: 0;\n flex-direction: column;\n gap: 6px;\n font-size: 13px\n}\n\n.xmimo-tts-grid input,\n.xmimo-tts-grid select,\n.xmimo-tts-grid textarea {\n box-sizing: border-box;\n width: 100%;\n border: 1px solid var(--xmimo-ui-border-soft);\n border-radius: var(--xmimo-ui-control-radius);\n padding: 8px 10px;\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-control-surface);\n font: inherit\n}\n\n.xmimo-tts-grid select {\n color-scheme: light dark\n}\n\n.xmimo-tts-grid select option {\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-surface)\n}\n\n.xmimo-tts-grid select:focus-visible {\n outline: 2px solid var(--dsw-alias-brand-primary, #4f6ef7);\n outline-offset: 1px\n}\n\n.xmimo-tts-grid small {\n color: var(--dsw-alias-label-tertiary, #8b93a1);\n line-height: 17px\n}\n\n.xmimo-tts-field-heading {\n display: flex;\n min-width: 0;\n min-height: 20px;\n flex-direction: row !important;\n align-items: center;\n justify-content: space-between;\n gap: 8px\n}\n\n.xmimo-tts-field-label {\n display: inline-flex;\n min-width: 0;\n align-items: center;\n gap: 8px\n}\n\n.xmimo-tts-api-key-link {\n color: var(--dsw-alias-brand-primary, #4f6ef7);\n font-size: 12px;\n text-decoration: none\n}\n\n.xmimo-tts-api-key-link:hover {\n text-decoration: underline\n}\n\n.xmimo-tts-field-badges {\n display: flex !important;\n flex: none;\n flex-direction: row !important;\n align-items: center;\n gap: 8px\n}\n\n.xmimo-tts-overridden {\n border-radius: 999px;\n padding: 1px 7px;\n color: var(--dsw-alias-label-secondary, #5f6875);\n background: var(--dsw-alias-bg-module-platform, #eef0f3);\n font-size: 11px;\n line-height: 17px\n}\n\n.xmimo-tts-reset {\n padding: 0;\n border: 0;\n color: var(--dsw-alias-label-secondary, #5f6875);\n background: transparent;\n font: inherit;\n font-size: 12px;\n cursor: pointer\n}\n\n.xmimo-tts-reset:hover:not(:disabled) {\n color: var(--dsw-alias-label-primary, #1f2328)\n}\n\n.xmimo-tts-reset:disabled {\n cursor: not-allowed;\n opacity: .45\n}\n\n.xmimo-tts-switch-row {\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 1fr));\n gap: 12px\n}\n";
20931
+ var fields_default = "/*\n * Form fields: grid layout, inputs/selects/textareas, field headings and badges, reset link, model switch, audio format options.\n */\n\n.xmimo-tts-grid {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: 0;\n align-items: start\n}\n\n.xmimo-tts-grid>* {\n box-sizing: border-box;\n padding: 5px 0;\n border-top: 1px solid var(--xmimo-ui-border-soft)\n}\n\n.xmimo-tts-grid>:first-child {\n border-top: 0\n}\n\n.xmimo-tts-grid label,\n.xmimo-tts-api-key,\n.xmimo-tts-model,\n.xmimo-tts-format,\n.xmimo-tts-voice-design-prompt,\n.xmimo-tts-voice {\n display: flex;\n min-width: 0;\n flex-direction: column;\n gap: 6px;\n font-size: 13px\n}\n\n.xmimo-tts-grid input,\n.xmimo-tts-grid select,\n.xmimo-tts-grid textarea {\n box-sizing: border-box;\n width: 100%;\n border: 1px solid var(--xmimo-ui-border-soft);\n border-radius: var(--xmimo-ui-control-radius);\n padding: 8px 10px;\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-control-surface);\n font: inherit\n}\n\n.xmimo-tts-grid select {\n color-scheme: light dark\n}\n\n.xmimo-tts-grid select option {\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-surface)\n}\n\n.xmimo-tts-grid select:focus-visible {\n outline: 2px solid var(--dsw-alias-brand-primary, #4f6ef7);\n outline-offset: 1px\n}\n\n.xmimo-tts-grid small {\n color: var(--dsw-alias-label-tertiary, #8b93a1);\n line-height: 17px\n}\n\n.xmimo-tts-field-heading {\n display: flex;\n min-width: 0;\n min-height: 20px;\n flex-direction: row !important;\n align-items: center;\n justify-content: space-between;\n gap: 8px\n}\n\n.xmimo-tts-field-label {\n display: inline-flex;\n min-width: 0;\n align-items: center;\n gap: 8px\n}\n\n.xmimo-tts-api-key-link {\n color: var(--dsw-alias-brand-primary, #4f6ef7);\n font-size: 12px;\n text-decoration: none\n}\n\n.xmimo-tts-api-key-link:hover {\n text-decoration: underline\n}\n\n.xmimo-tts-field-badges {\n display: flex !important;\n flex: none;\n flex-direction: row !important;\n align-items: center;\n gap: 8px\n}\n\n.xmimo-tts-overridden {\n border-radius: 999px;\n padding: 1px 7px;\n color: var(--dsw-alias-label-secondary, #5f6875);\n background: var(--dsw-alias-bg-module-platform, #eef0f3);\n font-size: 11px;\n line-height: 17px\n}\n\n.xmimo-tts-reset {\n padding: 0;\n border: 0;\n color: var(--dsw-alias-label-secondary, #5f6875);\n background: transparent;\n font: inherit;\n font-size: 12px;\n cursor: pointer\n}\n\n.xmimo-tts-reset:hover:not(:disabled) {\n color: var(--dsw-alias-label-primary, #1f2328)\n}\n\n.xmimo-tts-reset:disabled {\n cursor: not-allowed;\n opacity: .45\n}\n\n.xmimo-tts-switch-row {\n display: grid;\n grid-template-columns: repeat(4, minmax(0, 1fr));\n gap: var(--xmimo-ui-module-gap, 12px)\n}\n";
20308
20932
 
20309
20933
  //#endregion
20310
20934
  //#region src/client/style/voice.css?raw
@@ -20312,11 +20936,11 @@ var voice_default = "/*\n * Voice pickers: custom voice trigger, builtin voice g
20312
20936
 
20313
20937
  //#endregion
20314
20938
  //#region src/client/style/card-actions.css?raw
20315
- var card_actions_default = "/*\n * Settings card action bar: update, star, discard, and save.\n */\n\n.xmimo-tts-card-actions {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: flex-end;\n gap: 10px;\n font-size: 12px;\n color: var(--xmimo-ui-text-subtle)\n}\n\n.xmimo-tts-card-action-links {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 10px;\n margin-inline-end: auto\n}\n\n.xmimo-tts-card-actions :is(button, a),\n.xmimo-ui-scope .xmimo-tts-action-button {\n box-sizing: border-box;\n display: inline-flex;\n flex: 0 0 auto;\n align-items: center;\n justify-content: center;\n gap: 4px;\n min-height: 30px;\n height: auto;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: 8px;\n padding: 5px 10px;\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-surface);\n cursor: pointer;\n font: inherit;\n font-weight: 500;\n line-height: 18px;\n text-decoration: none;\n white-space: nowrap;\n transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease\n}\n\n.xmimo-tts-card-actions :is(button, a):where(:hover, :focus-visible):not(:disabled),\n.xmimo-ui-scope .xmimo-tts-action-button:where(:hover, :focus-visible):not(:disabled) {\n border-color: var(--xmimo-ui-brand);\n background: var(--xmimo-ui-hover);\n text-decoration: none\n}\n\n.xmimo-tts-card-actions :is(button, a):focus-visible,\n.xmimo-ui-scope .xmimo-tts-action-button:focus-visible {\n outline: var(--xmimo-ui-focus);\n outline-offset: 3px\n}\n\n.xmimo-tts-card-actions > button:disabled,\n.xmimo-ui-scope .xmimo-tts-action-button:disabled {\n border-color: var(--xmimo-ui-border);\n color: var(--xmimo-ui-text-muted);\n background: var(--xmimo-ui-control-surface);\n cursor: not-allowed;\n opacity: 1\n}\n\n.xmimo-tts-card-actions .xmimo-tts-save {\n border-color: var(--xmimo-ui-brand);\n color: var(--dsw-alias-label-primary-foreground, #fff);\n background: var(--dsw-alias-button-primary-fill, var(--xmimo-ui-brand));\n font-weight: 600\n}\n\n.xmimo-tts-card-actions .xmimo-tts-save:is(:hover, :focus-visible):not(:disabled) {\n background: var(--dsw-alias-button-primary-hover, color-mix(in srgb, var(--xmimo-ui-brand) 85%, var(--xmimo-ui-text)))\n}\n\n.xmimo-tts-card-actions .xmimo-tts-save:disabled {\n border-color: color-mix(in srgb, var(--xmimo-ui-brand) 25%, var(--xmimo-ui-border));\n color: var(--xmimo-ui-text-muted);\n background: color-mix(in srgb, var(--xmimo-ui-brand) 12%, var(--xmimo-ui-surface))\n}\n\n.xmimo-tts-card-actions .xmimo-tts-update {\n border-color: var(--xmimo-ui-brand);\n color: var(--xmimo-ui-brand)\n}\n\n.xmimo-tts-card-actions .xmimo-tts-star {\n position: relative;\n isolation: isolate;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--xmimo-ui-brand) 30%, var(--xmimo-ui-border));\n color: var(--xmimo-ui-brand);\n background: transparent;\n font-weight: 600;\n transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease\n}\n\n.xmimo-tts-card-actions .xmimo-tts-star::before {\n position: absolute;\n z-index: -1;\n inset: 0;\n background: linear-gradient(110deg, transparent 15%, color-mix(in srgb, var(--xmimo-ui-brand) 12%, transparent) 35%, color-mix(in srgb, var(--xmimo-ui-brand) 28%, transparent) 50%, color-mix(in srgb, var(--xmimo-ui-brand) 12%, transparent) 65%, transparent 85%);\n content: '';\n pointer-events: none;\n opacity: 0;\n transform: translateX(-110%)\n}\n\n.xmimo-tts-card-actions .xmimo-tts-star:is(:hover, :focus-visible) {\n border-color: var(--xmimo-ui-brand);\n background: color-mix(in srgb, var(--xmimo-ui-brand) 6%, transparent);\n box-shadow: 0 3px 10px color-mix(in srgb, var(--xmimo-ui-brand) 16%, transparent);\n text-decoration: none;\n transform: translateY(-1px)\n}\n\n.xmimo-tts-card-actions .xmimo-tts-star:is(:hover, :focus-visible)::before {\n opacity: 1;\n animation: xmimo-tts-star-shine 1s ease-in-out infinite\n}\n\n.xmimo-tts-card-actions .xmimo-tts-star:focus-visible {\n outline: var(--xmimo-ui-focus);\n outline-offset: 3px\n}\n\n.xmimo-tts-card-actions .xmimo-tts-star:active {\n box-shadow: none;\n transform: translateY(0)\n}\n\n@keyframes xmimo-tts-star-shine {\n 0% { transform: translateX(-110%) }\n 65%, 100% { transform: translateX(110%) }\n}\n\n@media (pointer: coarse) {\n .xmimo-tts-card-actions > :is(button, a),\n .xmimo-ui-scope .xmimo-tts-action-button {\n min-height: 44px\n }\n}\n";
20939
+ var card_actions_default = "/*\n * Settings card action bar: update, star, discard, and save.\n */\n\n.xmimo-tts-card-actions {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: flex-end;\n gap: 10px;\n font-size: 12px;\n color: var(--xmimo-ui-text-subtle)\n}\n\n.xmimo-tts-card-action-links {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 10px;\n margin-inline-end: auto\n}\n\n.xmimo-tts-card-actions :is(button, a),\n.xmimo-ui-scope .xmimo-tts-action-button {\n box-sizing: border-box;\n display: inline-flex;\n flex: 0 0 auto;\n align-items: center;\n justify-content: center;\n gap: 4px;\n min-height: 30px;\n height: auto;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: 8px;\n padding: 5px 10px;\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-surface);\n cursor: pointer;\n font: inherit;\n font-weight: 500;\n line-height: 18px;\n text-decoration: none;\n white-space: nowrap;\n transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease\n}\n\n.xmimo-tts-card-actions :is(button, a):where(:hover, :focus-visible):not(:disabled),\n.xmimo-ui-scope .xmimo-tts-action-button:where(:hover, :focus-visible):not(:disabled) {\n border-color: var(--xmimo-ui-brand);\n background: var(--xmimo-ui-hover);\n text-decoration: none\n}\n\n.xmimo-tts-card-actions :is(button, a):focus-visible,\n.xmimo-ui-scope .xmimo-tts-action-button:focus-visible {\n outline: var(--xmimo-ui-focus);\n outline-offset: 3px\n}\n\n.xmimo-tts-card-actions > button:disabled,\n.xmimo-ui-scope .xmimo-tts-action-button:disabled {\n border-color: var(--xmimo-ui-border);\n color: var(--xmimo-ui-text-muted);\n background: var(--xmimo-ui-control-surface);\n cursor: not-allowed;\n opacity: 1\n}\n\n.xmimo-tts-card-actions .xmimo-tts-save {\n border-color: var(--xmimo-ui-brand);\n color: var(--dsw-alias-label-primary-foreground, #fff);\n background: var(--dsw-alias-button-primary-fill, var(--xmimo-ui-brand));\n font-weight: 600\n}\n\n.xmimo-tts-card-actions .xmimo-tts-save:is(:hover, :focus-visible):not(:disabled) {\n background: var(--dsw-alias-button-primary-hover, color-mix(in srgb, var(--xmimo-ui-brand) 85%, var(--xmimo-ui-text)))\n}\n\n.xmimo-tts-card-actions .xmimo-tts-save:disabled {\n border-color: color-mix(in srgb, var(--xmimo-ui-brand) 25%, var(--xmimo-ui-border));\n color: var(--xmimo-ui-text-muted);\n background: color-mix(in srgb, var(--xmimo-ui-brand) 12%, var(--xmimo-ui-surface))\n}\n\n.xmimo-tts-card-actions .xmimo-tts-update {\n color: var(--xmimo-ui-brand)\n}\n\n.xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star) {\n position: relative;\n isolation: isolate;\n overflow: hidden;\n transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease\n}\n\n.xmimo-tts-card-actions .xmimo-tts-star {\n border: 1px solid color-mix(in srgb, var(--xmimo-ui-brand) 30%, var(--xmimo-ui-border));\n color: var(--xmimo-ui-brand);\n background: transparent;\n font-weight: 600\n}\n\n.xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star)::before {\n position: absolute;\n z-index: -1;\n inset: 0;\n background: linear-gradient(110deg, transparent 15%, color-mix(in srgb, var(--xmimo-ui-brand) 12%, transparent) 35%, color-mix(in srgb, var(--xmimo-ui-brand) 28%, transparent) 50%, color-mix(in srgb, var(--xmimo-ui-brand) 12%, transparent) 65%, transparent 85%);\n content: '';\n pointer-events: none;\n opacity: 0;\n transform: translateX(-110%)\n}\n\n.xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star):is(:hover, :focus-visible) {\n border-color: var(--xmimo-ui-brand);\n background: color-mix(in srgb, var(--xmimo-ui-brand) 6%, transparent);\n box-shadow: 0 3px 10px color-mix(in srgb, var(--xmimo-ui-brand) 16%, transparent);\n text-decoration: none;\n transform: translateY(-1px)\n}\n\n.xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star):is(:hover, :focus-visible)::before {\n opacity: 1;\n animation: xmimo-tts-star-shine 1s ease-in-out infinite\n}\n\n.xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star):focus-visible {\n outline: var(--xmimo-ui-focus);\n outline-offset: 3px\n}\n\n.xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star):active {\n box-shadow: none;\n transform: translateY(0)\n}\n\n@keyframes xmimo-tts-star-shine {\n 0% { transform: translateX(-110%) }\n 65%, 100% { transform: translateX(110%) }\n}\n\n@media (pointer: coarse) {\n .xmimo-tts-card-actions > :is(button, a),\n .xmimo-ui-scope .xmimo-tts-action-button {\n min-height: 44px\n }\n}\n";
20316
20940
 
20317
20941
  //#endregion
20318
20942
  //#region src/client/style/character.css?raw
20319
- var character_default = "/*\n * Character toggle: the portrait mascot switch (voice / autoplay on-off states).\n */\n\n.xmimo-tts-character-toggle {\n position: relative;\n display: flex !important;\n min-width: 0;\n flex: 1;\n align-items: stretch;\n gap: 0 !important;\n cursor: pointer\n}\n\n.xmimo-tts-character-toggle>input {\n position: absolute;\n width: 1px !important;\n height: 1px;\n margin: 0 !important;\n padding: 0 !important;\n overflow: hidden;\n border: 0 !important;\n opacity: 0;\n clip-path: inset(50%)\n}\n\n.xmimo-tts-character-control {\n box-sizing: border-box;\n position: relative;\n display: flex !important;\n width: 100%;\n min-width: 0;\n overflow: hidden;\n align-items: center;\n justify-content: flex-end;\n flex-direction: column;\n border: 1px solid var(--dsw-alias-border-l2, #d7dbe2);\n border-radius: 18px;\n padding: 8px 10px 10px;\n color: var(--dsw-alias-label-secondary, #5f6875);\n background: linear-gradient(180deg, color-mix(in srgb, var(--dsw-alias-brand-primary, #4f6ef7) 8%, var(--dsw-alias-bg-layer-1, #fff)), var(--dsw-alias-bg-layer-1, #fff));\n box-shadow: 0 3px 12px rgba(47, 74, 145, .08);\n text-align: center;\n transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease\n}\n\n.xmimo-tts-character-portrait {\n display: block !important;\n max-width: 100%;\n flex: none;\n background-repeat: no-repeat;\n background-size: 200% 200%;\n filter: saturate(.72);\n opacity: .78;\n transition: filter 180ms ease, opacity 180ms ease, transform 180ms ease\n}\n\n.xmimo-tts-character-voice-on {\n background-position: left top\n}\n\n.xmimo-tts-character-voice-off {\n background-position: right top\n}\n\n.xmimo-tts-character-autoplay-on {\n background-position: left bottom\n}\n\n.xmimo-tts-character-autoplay-off {\n background-position: right bottom\n}\n\n.xmimo-tts-character-sound-on {\n background-size: 200% 100%;\n background-position: left center\n}\n\n.xmimo-tts-character-sound-off {\n background-size: 200% 100%;\n background-position: right center\n}\n\n.xmimo-tts-character-copy {\n display: flex !important;\n min-width: 0;\n flex-direction: column;\n align-items: center;\n gap: 2px\n}\n\n.xmimo-tts-character-copy strong {\n color: var(--dsw-alias-label-primary, #1f2328);\n font-size: 14px;\n font-weight: 650;\n line-height: 20px\n}\n\n.xmimo-tts-character-copy small {\n min-height: 17px;\n color: var(--dsw-alias-label-tertiary, #8b93a1);\n font-size: 11px;\n line-height: 17px\n}\n\n.xmimo-tts-character-state {\n position: absolute;\n top: 9px;\n right: 9px;\n display: inline-flex !important;\n align-items: center;\n gap: 4px;\n border: 1px solid var(--dsw-alias-border-l2, #d7dbe2);\n border-radius: 999px;\n padding: 2px 7px;\n color: var(--dsw-alias-label-tertiary, #8b93a1);\n background: color-mix(in srgb, var(--dsw-alias-bg-layer-1, #fff) 88%, transparent);\n font-size: 10px;\n font-weight: 600;\n line-height: 15px;\n box-shadow: 0 2px 7px rgba(15, 23, 42, .08)\n}\n\n.xmimo-tts-character-state>span {\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background: var(--dsw-alias-label-dimmed, #aeb4bf)\n}\n\n.xmimo-tts-character-toggle-on .xmimo-tts-character-control {\n border-color: color-mix(in srgb, var(--dsw-alias-brand-primary, #4f6ef7) 55%, var(--dsw-alias-border-l2, #d7dbe2));\n background: linear-gradient(180deg, color-mix(in srgb, var(--dsw-alias-brand-primary, #4f6ef7) 15%, var(--dsw-alias-bg-layer-1, #fff)), var(--dsw-alias-bg-layer-1, #fff));\n box-shadow: 0 5px 18px color-mix(in srgb, var(--dsw-alias-brand-primary, #4f6ef7) 16%, transparent)\n}\n\n.xmimo-tts-character-toggle-on .xmimo-tts-character-portrait {\n filter: saturate(1);\n opacity: 1\n}\n\n.xmimo-tts-character-toggle-on .xmimo-tts-character-state {\n border-color: color-mix(in srgb, var(--dsw-alias-brand-primary, #4f6ef7) 32%, var(--dsw-alias-border-l2, #d7dbe2));\n color: var(--dsw-alias-brand-primary, #4f6ef7)\n}\n\n.xmimo-tts-character-toggle-on .xmimo-tts-character-state>span {\n background: var(--dsw-alias-brand-primary, #4f6ef7);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--dsw-alias-brand-primary, #4f6ef7) 14%, transparent)\n}\n\n.xmimo-tts-character-toggle:hover>input:not(:disabled)+.xmimo-tts-character-control {\n transform: translateY(-2px);\n border-color: var(--dsw-alias-brand-primary, #4f6ef7);\n box-shadow: 0 8px 22px rgba(47, 74, 145, .16)\n}\n\n.xmimo-tts-character-toggle:hover>input:not(:disabled)+.xmimo-tts-character-control .xmimo-tts-character-portrait {\n transform: scale(1.025)\n}\n\n.xmimo-tts-character-toggle>input:focus-visible+.xmimo-tts-character-control {\n outline: 2px solid var(--dsw-alias-brand-primary, #4f6ef7);\n outline-offset: 2px\n}\n\n.xmimo-tts-character-toggle>input:active:not(:disabled)+.xmimo-tts-character-control {\n transform: translateY(0) scale(.985)\n}\n\n.xmimo-tts-character-toggle>input:disabled+.xmimo-tts-character-control {\n cursor: not-allowed;\n filter: grayscale(.35);\n opacity: .48\n}\n";
20943
+ var character_default = "/*\n * Character toggle: the portrait mascot switch (voice / autoplay on-off states).\n */\n\n.xmimo-tts-character-toggle {\n position: relative;\n display: flex !important;\n min-width: 0;\n flex: 1;\n align-items: stretch;\n gap: 0 !important;\n cursor: pointer\n}\n\n.xmimo-tts-character-toggle>input {\n position: absolute;\n width: 1px !important;\n height: 1px;\n margin: 0 !important;\n padding: 0 !important;\n overflow: hidden;\n border: 0 !important;\n opacity: 0;\n clip-path: inset(50%)\n}\n\n.xmimo-tts-character-control {\n box-sizing: border-box;\n position: relative;\n display: flex !important;\n width: 100%;\n min-width: 0;\n overflow: hidden;\n align-items: center;\n justify-content: flex-end;\n flex-direction: column;\n border: 1px solid var(--dsw-alias-border-l2, #d7dbe2);\n border-radius: 18px;\n padding: 8px 10px 10px;\n color: var(--dsw-alias-label-secondary, #5f6875);\n background: linear-gradient(180deg, color-mix(in srgb, var(--dsw-alias-brand-primary, #4f6ef7) 8%, var(--dsw-alias-bg-layer-1, #fff)), var(--dsw-alias-bg-layer-1, #fff));\n box-shadow: 0 3px 12px rgba(47, 74, 145, .08);\n text-align: center;\n transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease\n}\n\n.xmimo-tts-character-portrait {\n display: block !important;\n max-width: 100%;\n flex: none;\n background-repeat: no-repeat;\n background-size: 200% 200%;\n filter: saturate(.72);\n opacity: .78;\n transition: filter 180ms ease, opacity 180ms ease, transform 180ms ease\n}\n\n.xmimo-tts-character-voice-on {\n background-position: left top\n}\n\n.xmimo-tts-character-voice-off {\n background-position: right top\n}\n\n.xmimo-tts-character-autoplay-on {\n background-position: left bottom\n}\n\n.xmimo-tts-character-autoplay-off {\n background-position: right bottom\n}\n\n.xmimo-tts-character-sound-on {\n background-size: 200% 100%;\n background-position: left center\n}\n\n.xmimo-tts-character-sound-off {\n background-size: 200% 100%;\n background-position: right center\n}\n\n.xmimo-tts-character-copy {\n display: flex !important;\n min-width: 0;\n flex-direction: column;\n align-items: center;\n gap: 2px\n}\n\n.xmimo-tts-character-copy strong {\n color: var(--dsw-alias-label-primary, #1f2328);\n font-size: 14px;\n font-weight: 650;\n line-height: 20px\n}\n\n.xmimo-tts-character-copy small {\n min-height: 17px;\n color: var(--dsw-alias-label-tertiary, #8b93a1);\n font-size: 11px;\n line-height: 17px\n}\n\n.xmimo-tts-character-state {\n position: absolute;\n top: 9px;\n right: 9px;\n display: inline-flex !important;\n align-items: center;\n gap: 4px;\n border: 1px solid var(--dsw-alias-border-l2, #d7dbe2);\n border-radius: 999px;\n padding: 2px 7px;\n color: var(--dsw-alias-label-tertiary, #8b93a1);\n background: color-mix(in srgb, var(--dsw-alias-bg-layer-1, #fff) 88%, transparent);\n font-size: 10px;\n font-weight: 600;\n line-height: 15px;\n box-shadow: 0 2px 7px rgba(15, 23, 42, .08)\n}\n\n.xmimo-tts-character-state>span {\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background: var(--dsw-alias-label-dimmed, #aeb4bf)\n}\n\n.xmimo-tts-character-toggle-on .xmimo-tts-character-control {\n border-color: color-mix(in srgb, var(--dsw-alias-brand-primary, #4f6ef7) 55%, var(--dsw-alias-border-l2, #d7dbe2));\n background: linear-gradient(180deg, color-mix(in srgb, var(--dsw-alias-brand-primary, #4f6ef7) 15%, var(--dsw-alias-bg-layer-1, #fff)), var(--dsw-alias-bg-layer-1, #fff));\n box-shadow: 0 5px 18px color-mix(in srgb, var(--dsw-alias-brand-primary, #4f6ef7) 16%, transparent)\n}\n\n.xmimo-tts-character-toggle-on .xmimo-tts-character-portrait {\n filter: saturate(1);\n opacity: 1\n}\n\n.xmimo-tts-character-toggle-on .xmimo-tts-character-state {\n border-color: color-mix(in srgb, var(--dsw-alias-brand-primary, #4f6ef7) 32%, var(--dsw-alias-border-l2, #d7dbe2));\n color: var(--dsw-alias-brand-primary, #4f6ef7)\n}\n\n.xmimo-tts-character-toggle-on .xmimo-tts-character-state>span {\n background: var(--dsw-alias-brand-primary, #4f6ef7);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--dsw-alias-brand-primary, #4f6ef7) 14%, transparent)\n}\n\n.xmimo-tts-character-toggle:hover>input:not(:disabled)+.xmimo-tts-character-control {\n transform: translateY(-2px);\n border-color: var(--dsw-alias-brand-primary, #4f6ef7);\n box-shadow: 0 8px 22px rgba(47, 74, 145, .16)\n}\n\n.xmimo-tts-character-toggle:hover>input:not(:disabled)+.xmimo-tts-character-control .xmimo-tts-character-portrait {\n transform: scale(1.025)\n}\n\n.xmimo-tts-character-toggle>input:focus-visible+.xmimo-tts-character-control {\n outline: 2px solid var(--dsw-alias-brand-primary, #4f6ef7);\n outline-offset: 2px\n}\n\n.xmimo-tts-character-toggle>input:active:not(:disabled)+.xmimo-tts-character-control {\n transform: translateY(0) scale(.985)\n}\n\n.xmimo-tts-character-toggle>input:disabled+.xmimo-tts-character-control {\n cursor: not-allowed;\n filter: grayscale(.35);\n opacity: .48\n}\n\n.xmimo-tts-provider-toggle {\n appearance: none;\n padding: 0;\n border: 0;\n border-radius: 12px;\n background: transparent;\n font: inherit;\n text-align: inherit\n}\n\n.xmimo-tts-provider-toggle:hover:not(:disabled)>.xmimo-tts-character-control {\n transform: translateY(-2px)\n}\n\n.xmimo-tts-provider-toggle:focus-visible {\n outline: 2px solid var(--xmimo-ui-brand);\n outline-offset: 2px\n}\n\n.xmimo-tts-provider-toggle:active:not(:disabled)>.xmimo-tts-character-control {\n transform: scale(.985)\n}\n\n.xmimo-tts-provider-toggle:disabled {\n cursor: not-allowed;\n filter: grayscale(.35);\n opacity: .48\n}\n\n.xmimo-tts-provider-portrait {\n position: relative;\n perspective: 420px\n}\n\n.xmimo-tts-provider-flipper {\n position: absolute;\n inset: 0;\n transform-style: preserve-3d;\n transition: transform 440ms cubic-bezier(.16, 1, .3, 1)\n}\n\n.xmimo-tts-provider-toggle[data-provider=\"doubao\"] .xmimo-tts-provider-flipper {\n transform: rotateY(180deg)\n}\n\n.xmimo-tts-provider-face {\n position: absolute;\n inset: 0;\n backface-visibility: hidden;\n background-repeat: no-repeat;\n background-position: center;\n background-size: contain\n}\n\n.xmimo-tts-provider-face-doubao {\n transform: rotateY(180deg)\n}\n\n.xmimo-tts-provider-state svg {\n width: 12px;\n height: 12px\n}\n";
20320
20944
 
20321
20945
  //#endregion
20322
20946
  //#region src/client/style/details.css?raw
@@ -20328,11 +20952,11 @@ var preview_default = "/* Broadcast Desk shares the collapsible frame with the m
20328
20952
 
20329
20953
  //#endregion
20330
20954
  //#region src/client/style/sections.css?raw
20331
- var sections_default = "/*\n * Settings modules: shared module surface plus the switch and API-key variants.\n */\n\n.xmimo-tts-switch-module {\n padding: 0;\n border: 0;\n background: transparent\n}\n\n.xmimo-tts-switch-module .xmimo-tts-character-control {\n border-color: transparent;\n border-radius: 12px;\n box-shadow: none\n}\n\n.xmimo-tts-switch-module .xmimo-tts-character-toggle-on .xmimo-tts-character-control {\n border-color: transparent;\n box-shadow: none\n}\n\n.xmimo-tts-switch-module .xmimo-tts-character-portrait {\n width: 88px;\n height: 80px\n}\n\n.xmimo-tts-api-key .xmimo-tts-field-heading {\n padding-right: 70px;\n align-items: flex-start\n}\n\n/* Shared accordion frame for all three settings panels. */\n.xmimo-ui-accordion { padding: 0 !important; overflow-anchor: none; }\n.xmimo-ui-accordion-heading { margin: 0; font: inherit; }\n.xmimo-ui-accordion .xmimo-ui-module-toggle { align-items: center; gap: 12px; }\n.xmimo-ui-accordion .xmimo-ui-module-head { flex: 1; }\n.xmimo-ui-accordion-chevron {\n width: 8px;\n height: 8px;\n margin-right: 4px;\n flex: none;\n border-right: 2px solid currentColor;\n border-bottom: 2px solid currentColor;\n transform: rotate(45deg);\n}\n.xmimo-ui-accordion [aria-expanded=\"true\"] .xmimo-ui-accordion-chevron { transform: rotate(225deg); }\n.xmimo-ui-accordion-collapse {\n display: grid;\n grid-template-rows: 0fr;\n opacity: 0;\n overflow: hidden;\n transition: grid-template-rows 220ms ease, opacity 160ms ease;\n}\n.xmimo-ui-accordion-collapse-open { grid-template-rows: 1fr; opacity: 1; }\n.xmimo-ui-accordion-content { min-height: 0; overflow: auto; overscroll-behavior-y: auto; }\n.xmimo-tts-card-minimal .xmimo-ui-accordion .xmimo-ui-module-head > strong {\n display: block;\n position: static;\n width: auto;\n height: auto;\n overflow: visible;\n clip: auto;\n clip-path: none;\n}\n.xmimo-tts-sound-scope { grid-template-columns: repeat(3, minmax(0, 1fr)); }\n.xmimo-tts-sound-scope button { white-space: normal; }\n@media (prefers-reduced-motion: reduce) {\n .xmimo-ui-accordion-collapse { transition: none; }\n}\n";
20955
+ var sections_default = "/*\n * Settings modules: shared module surface plus the switch and API-key variants.\n */\n\n.xmimo-tts-switch-module {\n padding: 0;\n border: 0;\n background: transparent\n}\n\n.xmimo-tts-switch-module .xmimo-tts-character-control {\n border-color: transparent;\n border-radius: 12px;\n box-shadow: none;\n justify-content: flex-start\n}\n\n.xmimo-tts-switch-module .xmimo-tts-character-toggle-on .xmimo-tts-character-control {\n border-color: transparent;\n box-shadow: none\n}\n\n.xmimo-tts-switch-module .xmimo-tts-character-portrait {\n width: 88px;\n height: 80px\n}\n\n.xmimo-tts-api-key .xmimo-tts-field-heading {\n padding-right: 70px;\n align-items: flex-start\n}\n\n/* Shared accordion frame for all three settings panels. */\n.xmimo-ui-accordion { padding: 0 !important; overflow-anchor: none; }\n.xmimo-ui-accordion-heading { margin: 0; font: inherit; }\n.xmimo-ui-accordion .xmimo-ui-module-toggle { align-items: center; gap: 12px; }\n.xmimo-ui-accordion .xmimo-ui-module-head { flex: 1; }\n.xmimo-ui-accordion-collapse {\n display: grid;\n grid-template-rows: 0fr;\n opacity: 0;\n overflow: hidden;\n transition: grid-template-rows 220ms ease, opacity 160ms ease;\n}\n.xmimo-ui-accordion-collapse-open { grid-template-rows: 1fr; opacity: 1; }\n.xmimo-ui-accordion-content { min-height: 0; overflow: auto; overscroll-behavior-y: auto; }\n.xmimo-tts-card-minimal .xmimo-ui-accordion .xmimo-ui-module-head > strong {\n display: block;\n position: static;\n width: auto;\n height: auto;\n overflow: visible;\n clip: auto;\n clip-path: none;\n}\n.xmimo-tts-sound-scope { grid-template-columns: repeat(3, minmax(0, 1fr)); }\n.xmimo-tts-sound-scope button { white-space: normal; }\n@media (prefers-reduced-motion: reduce) {\n .xmimo-ui-accordion-collapse { transition: none; }\n}\n";
20332
20956
 
20333
20957
  //#endregion
20334
20958
  //#region src/client/style/sound.css?raw
20335
- var sound_default = "/*\n * Sound effects module: toggle header, pack grid, cue previews, collapse.\n */\n.xmimo-tts-sound-effects {\n overflow: visible;\n padding: 0 !important\n}\n\n.xmimo-tts-sound-summary {\n height: 30px;\n}\n\n.xmimo-tts-sound-body {\n box-sizing: border-box;\n display: flex;\n min-height: 0;\n overflow: hidden;\n flex-direction: column;\n gap: 12px;\n padding: 0 16px 16px\n}\n\n.xmimo-tts-sound-pack {\n display: flex;\n min-width: 0;\n flex-direction: column;\n gap: 5px;\n color: var(--dsw-alias-label-primary, #1f2328);\n font-size: 13px;\n}\n\n.xmimo-tts-sound-pack-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));\n gap: 5px\n}\n\n.xmimo-tts-sound-pack-option {\n --xmimo-sound-pack-accent: var(--dsw-alias-brand-primary, #4f6ef7);\n position: relative;\n display: flex;\n box-sizing: border-box;\n align-items: center;\n justify-content: space-between;\n min-width: 0;\n min-height: 52px;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--xmimo-sound-pack-accent) 26%, var(--dsw-alias-border-l2, #d7dbe2));\n border-radius: 14px;\n padding: 8px 30px 8px 10px;\n color: var(--dsw-alias-label-secondary, #5f6875);\n background:\n radial-gradient(circle at 86% 12%, color-mix(in srgb, var(--xmimo-sound-pack-accent) 20%, transparent) 0 2px, transparent 3px),\n linear-gradient(135deg, color-mix(in srgb, var(--xmimo-sound-pack-accent) 13%, var(--dsw-alias-bg-layer-1, #fff)), var(--dsw-alias-bg-layer-1, #fff));\n font: inherit;\n font-size: 11px;\n text-align: left;\n cursor: pointer;\n transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease\n}\n\n.xmimo-tts-sound-pack-option::after {\n position: absolute;\n top: 50%;\n right: 8px;\n display: grid;\n width: 16px;\n height: 16px;\n place-items: center;\n border-radius: 999px;\n color: var(--xmimo-sound-pack-accent);\n background: color-mix(in srgb, var(--xmimo-sound-pack-accent) 14%, transparent);\n content: \"\";\n font-size: 10px;\n font-weight: 700;\n opacity: 0;\n transform: translateY(-50%) scale(.72);\n transition: opacity 140ms ease, transform 140ms ease\n}\n\n.xmimo-tts-sound-pack-gift {\n position: relative;\n display: inline-block;\n width: 19px;\n height: 17px;\n flex: none;\n margin-right: 7px;\n border: 1px solid color-mix(in srgb, var(--xmimo-sound-pack-accent) 65%, #fff);\n border-radius: 3px 3px 4px 4px;\n background: linear-gradient(145deg, color-mix(in srgb, var(--xmimo-sound-pack-accent) 30%, #fff), color-mix(in srgb, var(--xmimo-sound-pack-accent) 13%, #fff));\n box-shadow: 0 2px 4px color-mix(in srgb, var(--xmimo-sound-pack-accent) 15%, transparent);\n}\n\n.xmimo-tts-sound-pack-gift::before,\n.xmimo-tts-sound-pack-gift::after {\n position: absolute;\n display: block;\n content: \"\";\n background: var(--xmimo-sound-pack-accent);\n}\n\n.xmimo-tts-sound-pack-gift::before {\n top: 0;\n bottom: 0;\n left: 7px;\n width: 3px;\n}\n\n.xmimo-tts-sound-pack-gift::after {\n top: 4px;\n right: -2px;\n left: -2px;\n height: 2px;\n}\n\n.xmimo-tts-sound-pack-gift-lid {\n position: absolute;\n top: -4px;\n left: -2px;\n width: 21px;\n height: 5px;\n border-radius: 3px;\n background: var(--xmimo-sound-pack-accent);\n box-shadow: 0 1px 0 color-mix(in srgb, var(--xmimo-sound-pack-accent) 45%, #fff);\n}\n\n.xmimo-tts-sound-pack-gift-ribbon {\n position: absolute;\n top: -8px;\n left: 6px;\n width: 5px;\n height: 6px;\n border: 1px solid var(--xmimo-sound-pack-accent);\n border-bottom: 0;\n border-radius: 5px 5px 0 0;\n transform: rotate(-22deg);\n}\n\n.xmimo-tts-sound-pack-name {\n min-width: 0;\n flex: 1 1 auto;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap\n}\n\n.xmimo-tts-sound-pack-wave {\n display: inline-flex;\n flex: none;\n align-items: center;\n gap: 2px;\n margin-left: 7px;\n opacity: .6;\n transition: opacity 140ms ease, transform 140ms ease\n}\n\n.xmimo-tts-sound-pack-wave i {\n display: block;\n width: 2px;\n height: 8px;\n border-radius: 999px;\n background: var(--xmimo-sound-pack-accent);\n transition: height 140ms ease, background 140ms ease\n}\n\n.xmimo-tts-sound-pack-wave i:nth-child(2) {\n height: 13px\n}\n\n.xmimo-tts-sound-pack-wave i:nth-child(3) {\n height: 10px\n}\n\n.xmimo-tts-sound-pack-option:hover:not(:disabled) {\n border-color: var(--xmimo-sound-pack-accent);\n color: var(--dsw-alias-label-primary, #1f2328);\n transform: translateY(-1px);\n box-shadow: 0 4px 12px rgba(15, 23, 42, .10)\n}\n\n.xmimo-tts-sound-pack-option:active:not(:disabled) {\n transform: scale(.97)\n}\n\n.xmimo-tts-sound-pack-option-selected {\n border-color: var(--xmimo-sound-pack-accent);\n color: var(--xmimo-sound-pack-accent);\n background:\n radial-gradient(circle at 88% 11%, color-mix(in srgb, var(--xmimo-sound-pack-accent) 35%, transparent) 0 2px, transparent 3px),\n linear-gradient(135deg, color-mix(in srgb, var(--xmimo-sound-pack-accent) 22%, var(--dsw-alias-bg-layer-1, #fff)), var(--dsw-alias-bg-layer-1, #fff));\n font-weight: 650;\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--xmimo-sound-pack-accent) 16%, transparent)\n}\n\n.xmimo-tts-sound-pack-option-selected::after {\n content: \"✓\";\n opacity: 1;\n transform: translateY(-50%) scale(1)\n}\n\n.xmimo-tts-sound-pack-option-selected .xmimo-tts-sound-pack-wave {\n opacity: .3;\n transform: scale(.82)\n}\n\n.xmimo-tts-sound-pack-option-selected .xmimo-tts-sound-pack-gift {\n transform: translateY(-1px) rotate(-2deg);\n box-shadow: 0 3px 7px color-mix(in srgb, var(--xmimo-sound-pack-accent) 28%, transparent);\n}\n\n.xmimo-tts-sound-pack-option-pending {\n cursor: progress\n}\n\n.xmimo-tts-sound-pack-option-pending::after {\n border: 2px solid color-mix(in srgb, var(--xmimo-sound-pack-accent) 35%, transparent);\n border-top-color: var(--xmimo-sound-pack-accent);\n background: transparent;\n content: \"\";\n opacity: 1;\n transform: translateY(-50%);\n animation: xmimo-tts-sound-pack-spin 700ms linear infinite\n}\n\n@keyframes xmimo-tts-sound-pack-spin {\n to { transform: translateY(-50%) rotate(360deg) }\n}\n\n.xmimo-tts-sound-pack-option:focus-visible,\n.xmimo-tts-sound-previews button:focus-visible {\n outline: 2px solid var(--dsw-alias-brand-primary, #4f6ef7);\n outline-offset: 1px\n}\n\n.xmimo-tts-sound-pack-option:disabled {\n cursor: not-allowed;\n opacity: .5\n}\n\n.xmimo-tts-sound-preview-section {\n display: flex;\n min-width: 0;\n flex-direction: column;\n gap: 5px;\n color: var(--dsw-alias-label-primary, #1f2328);\n font-size: 13px;\n}\n\n.xmimo-tts-sound-previews {\n display: grid;\n min-width: 0;\n grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));\n gap: 5px;\n overflow-x: auto;\n overscroll-behavior-x: contain;\n padding: 2px 1px 4px\n}\n\n.xmimo-tts-sound-previews button {\n box-sizing: border-box;\n display: flex;\n min-width: 0;\n align-items: center;\n flex-direction: column;\n gap: 5px;\n border: 1px solid transparent;\n border-radius: 10px;\n padding: 10px 5px 8px;\n color: var(--dsw-alias-label-secondary, #5f6875);\n background: transparent;\n font: inherit;\n font-size: 10px;\n cursor: pointer;\n transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, color 160ms ease\n}\n\n.xmimo-tts-sound-previews button>svg {\n flex-shrink: 0;\n transition: transform 160ms ease\n}\n\n.xmimo-tts-sound-previews button:hover:not(:disabled) {\n border-color: var(--dsw-alias-border-l2, #d7dbe2);\n background: var(--dsw-alias-interactive-bg-hover, #f3f4f6);\n color: var(--dsw-alias-brand-primary, #4f6ef7);\n transform: translateY(-2px)\n}\n\n.xmimo-tts-sound-previews button:hover:not(:disabled)>svg {\n transform: scale(1.1)\n}\n\n.xmimo-tts-sound-previews button:active:not(:disabled) {\n transform: translateY(0) scale(0.98)\n}\n\n.xmimo-tts-sound-previews button:disabled {\n cursor: not-allowed;\n filter: grayscale(.55);\n opacity: .42\n}\n\n.xmimo-tts-sound-previews button>span:last-child {\n overflow: hidden;\n width: 100%;\n text-align: center;\n text-overflow: ellipsis;\n white-space: nowrap\n}\n\n.xmimo-tts-sound-description {\n color: var(--dsw-alias-label-tertiary, #8b93a1);\n font-size: 12px;\n line-height: 18px\n}\n\n.xmimo-tts-sound-supported {\n text-align: center;\n display: inline-block;\n max-width: 100%;\n box-sizing: border-box;\n margin-top: 3px;\n padding: 5px;\n border: 1px solid color-mix(in srgb, var(--dsw-alias-border-l2, #d7dbe2) 70%, transparent);\n border-radius: 999px;\n color: var(--dsw-alias-label-tertiary, #8b93a1);\n background: color-mix(in srgb, var(--dsw-alias-bg-layer-2, #f7f8fa) 72%, transparent);\n font-size: 12px;\n line-height: 14px;\n overflow-wrap: anywhere\n}\n";
20959
+ var sound_default = "/*\n * Sound effects module: toggle header, pack grid, cue previews, collapse.\n */\n.xmimo-tts-sound-effects {\n overflow: visible;\n padding: 0 !important\n}\n\n.xmimo-tts-sound-summary {\n height: 30px;\n}\n\n.xmimo-tts-sound-body {\n box-sizing: border-box;\n display: flex;\n min-height: 0;\n overflow: hidden;\n flex-direction: column;\n gap: 12px;\n padding: 0 16px 16px\n}\n\n.xmimo-tts-sound-pack {\n display: flex;\n min-width: 0;\n flex-direction: column;\n gap: 5px;\n color: var(--dsw-alias-label-primary, #1f2328);\n font-size: 13px;\n}\n\n.xmimo-tts-sound-pack-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));\n gap: 5px\n}\n\n.xmimo-tts-sound-pack-option {\n --xmimo-sound-pack-accent: var(--dsw-alias-brand-primary, #4f6ef7);\n position: relative;\n display: flex;\n box-sizing: border-box;\n align-items: center;\n justify-content: space-between;\n min-width: 0;\n min-height: 52px;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--xmimo-sound-pack-accent) 26%, var(--dsw-alias-border-l2, #d7dbe2));\n border-radius: 14px;\n padding: 8px 30px 8px 10px;\n color: var(--dsw-alias-label-secondary, #5f6875);\n background:\n radial-gradient(circle at 86% 12%, color-mix(in srgb, var(--xmimo-sound-pack-accent) 20%, transparent) 0 2px, transparent 3px),\n linear-gradient(135deg, color-mix(in srgb, var(--xmimo-sound-pack-accent) 13%, var(--dsw-alias-bg-layer-1, #fff)), var(--dsw-alias-bg-layer-1, #fff));\n font: inherit;\n font-size: 11px;\n text-align: left;\n cursor: pointer;\n transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease\n}\n\n.xmimo-tts-sound-pack-option::after {\n position: absolute;\n top: 50%;\n right: 8px;\n display: grid;\n width: 16px;\n height: 16px;\n place-items: center;\n border-radius: 999px;\n color: var(--xmimo-sound-pack-accent);\n background: color-mix(in srgb, var(--xmimo-sound-pack-accent) 14%, transparent);\n content: \"\";\n font-size: 10px;\n font-weight: 700;\n opacity: 0;\n transform: translateY(-50%) scale(.72);\n transition: opacity 140ms ease, transform 140ms ease\n}\n\n.xmimo-tts-sound-pack-icon {\n display: block;\n width: 20px;\n height: 20px;\n flex: none;\n margin-right: 7px;\n color: var(--xmimo-sound-pack-accent);\n}\n\n.xmimo-tts-sound-pack-name {\n min-width: 0;\n flex: 1 1 auto;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap\n}\n\n.xmimo-tts-sound-pack-wave {\n display: inline-flex;\n flex: none;\n align-items: center;\n gap: 2px;\n margin-left: 7px;\n opacity: .6;\n transition: opacity 140ms ease, transform 140ms ease\n}\n\n.xmimo-tts-sound-pack-wave i {\n display: block;\n width: 2px;\n height: 8px;\n border-radius: 999px;\n background: var(--xmimo-sound-pack-accent);\n transition: height 140ms ease, background 140ms ease\n}\n\n.xmimo-tts-sound-pack-wave i:nth-child(2) {\n height: 13px\n}\n\n.xmimo-tts-sound-pack-wave i:nth-child(3) {\n height: 10px\n}\n\n.xmimo-tts-sound-pack-option:hover:not(:disabled) {\n border-color: var(--xmimo-sound-pack-accent);\n color: var(--dsw-alias-label-primary, #1f2328);\n transform: translateY(-1px);\n box-shadow: 0 4px 12px rgba(15, 23, 42, .10)\n}\n\n.xmimo-tts-sound-pack-option:active:not(:disabled) {\n transform: scale(.97)\n}\n\n.xmimo-tts-sound-pack-option-selected {\n border-color: var(--xmimo-sound-pack-accent);\n color: var(--xmimo-sound-pack-accent);\n background:\n radial-gradient(circle at 88% 11%, color-mix(in srgb, var(--xmimo-sound-pack-accent) 35%, transparent) 0 2px, transparent 3px),\n linear-gradient(135deg, color-mix(in srgb, var(--xmimo-sound-pack-accent) 22%, var(--dsw-alias-bg-layer-1, #fff)), var(--dsw-alias-bg-layer-1, #fff));\n font-weight: 650;\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--xmimo-sound-pack-accent) 16%, transparent)\n}\n\n.xmimo-tts-sound-pack-option-selected::after {\n content: \"✓\";\n opacity: 1;\n transform: translateY(-50%) scale(1)\n}\n\n.xmimo-tts-sound-pack-option-selected .xmimo-tts-sound-pack-wave {\n opacity: .3;\n transform: scale(.82)\n}\n\n.xmimo-tts-sound-pack-option-pending {\n cursor: progress\n}\n\n.xmimo-tts-sound-pack-option-pending::after {\n border: 2px solid color-mix(in srgb, var(--xmimo-sound-pack-accent) 35%, transparent);\n border-top-color: var(--xmimo-sound-pack-accent);\n background: transparent;\n content: \"\";\n opacity: 1;\n transform: translateY(-50%);\n animation: xmimo-tts-sound-pack-spin 700ms linear infinite\n}\n\n@keyframes xmimo-tts-sound-pack-spin {\n to { transform: translateY(-50%) rotate(360deg) }\n}\n\n.xmimo-tts-sound-pack-option:focus-visible,\n.xmimo-tts-sound-previews button:focus-visible {\n outline: 2px solid var(--dsw-alias-brand-primary, #4f6ef7);\n outline-offset: 1px\n}\n\n.xmimo-tts-sound-pack-option:disabled {\n cursor: not-allowed;\n opacity: .5\n}\n\n.xmimo-tts-sound-preview-section {\n display: flex;\n min-width: 0;\n flex-direction: column;\n gap: 5px;\n color: var(--dsw-alias-label-primary, #1f2328);\n font-size: 13px;\n}\n\n.xmimo-tts-sound-previews {\n display: grid;\n min-width: 0;\n grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));\n gap: 5px;\n overflow-x: auto;\n overscroll-behavior-x: contain;\n padding: 2px 1px 4px\n}\n\n.xmimo-tts-sound-previews button {\n box-sizing: border-box;\n display: flex;\n min-width: 0;\n align-items: center;\n flex-direction: column;\n gap: 5px;\n border: 1px solid transparent;\n border-radius: 10px;\n padding: 10px 5px 8px;\n color: var(--dsw-alias-label-secondary, #5f6875);\n background: transparent;\n font: inherit;\n font-size: 10px;\n cursor: pointer;\n transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, color 160ms ease\n}\n\n.xmimo-tts-sound-previews button>svg {\n flex-shrink: 0;\n transition: transform 160ms ease\n}\n\n.xmimo-tts-sound-previews button:hover:not(:disabled) {\n border-color: var(--dsw-alias-border-l2, #d7dbe2);\n background: var(--dsw-alias-interactive-bg-hover, #f3f4f6);\n color: var(--dsw-alias-brand-primary, #4f6ef7);\n transform: translateY(-2px)\n}\n\n.xmimo-tts-sound-previews button:hover:not(:disabled)>svg {\n transform: scale(1.1)\n}\n\n.xmimo-tts-sound-previews button:active:not(:disabled) {\n transform: translateY(0) scale(0.98)\n}\n\n.xmimo-tts-sound-previews button:disabled {\n cursor: not-allowed;\n filter: grayscale(.55);\n opacity: .42\n}\n\n.xmimo-tts-sound-previews button>span:last-child {\n overflow: hidden;\n width: 100%;\n text-align: center;\n text-overflow: ellipsis;\n white-space: nowrap\n}\n\n.xmimo-tts-sound-description {\n color: var(--dsw-alias-label-tertiary, #8b93a1);\n font-size: 12px;\n line-height: 18px\n}\n\n.xmimo-tts-sound-supported {\n text-align: center;\n display: inline-block;\n max-width: 100%;\n box-sizing: border-box;\n margin-top: 3px;\n padding: 5px;\n border: 1px solid color-mix(in srgb, var(--dsw-alias-border-l2, #d7dbe2) 70%, transparent);\n border-radius: 999px;\n color: var(--dsw-alias-label-tertiary, #8b93a1);\n background: color-mix(in srgb, var(--dsw-alias-bg-layer-2, #f7f8fa) 72%, transparent);\n font-size: 12px;\n line-height: 14px;\n overflow-wrap: anywhere\n}\n";
20336
20960
 
20337
20961
  //#endregion
20338
20962
  //#region src/client/style/volume.css?raw
@@ -20340,23 +20964,23 @@ var volume_default = "/*\n * Volume controls: sound volume rows and the energy s
20340
20964
 
20341
20965
  //#endregion
20342
20966
  //#region src/client/style/voice-reading.css?raw
20343
- var voice_reading_default = "/**\n * Voice reading settings section — standalone page registered through the host\n * `settings.section` slot. All selectors are prefixed `xmimo-voice-reading`;\n * tokens mirror the host settings chrome with literal fallbacks.\n */\n\n.xmimo-voice-reading {\n display: flex;\n flex-direction: column;\n gap: 12px;\n color: var(--dsw-alias-label-primary, #1f2328);\n}\n\n.xmimo-voice-reading-title {\n margin: 0;\n font-size: 16px;\n line-height: 24px;\n font-weight: 500;\n}\n\n.xmimo-voice-reading-intro {\n margin: 0;\n font-size: 14px;\n line-height: 22px;\n color: var(--dsw-alias-label-tertiary, #66707d);\n}\n\n.xmimo-voice-reading-notice {\n margin: 0;\n font-size: 12px;\n line-height: 18px;\n color: var(--dsw-alias-label-tertiary, #66707d);\n}\n\n.xmimo-voice-reading-failure {\n margin: 0;\n font-size: 12px;\n line-height: 18px;\n color: var(--dsw-alias-state-error-primary, #c23f4a);\n}\n\n.xmimo-voice-reading-card {\n border: 0.5px solid var(--dsw-alias-settings-card-stroke, var(--dsw-alias-border-l2, #d7dbe2));\n background: var(--dsw-alias-settings-card-fill, var(--dsw-alias-bg-layer-1, #fff));\n border-radius: var(--dsw-radius-xl, 12px);\n padding: 0 16px;\n}\n\n.xmimo-voice-reading-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 24px;\n padding: 16px 0;\n border-bottom: 0.5px solid var(--dsw-alias-border-l2, #d7dbe2);\n}\n\n.xmimo-voice-reading-row:last-child {\n border-bottom: 0;\n}\n\n.xmimo-voice-reading-copy {\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.xmimo-voice-reading-row-title {\n font-size: 14px;\n line-height: 20px;\n color: var(--dsw-alias-label-primary, #1f2328);\n}\n\n.xmimo-voice-reading-row-hint {\n font-size: 12px;\n line-height: 18px;\n color: var(--dsw-alias-label-secondary, #5f6875);\n}\n\n.xmimo-voice-reading-select {\n flex: none;\n width: 220px;\n max-width: 100%;\n box-sizing: border-box;\n height: 32px;\n padding: 0 32px 0 10px;\n border: 0.5px solid var(--dsw-alias-border-l4, var(--dsw-alias-border-l3, #c2c7d0));\n border-radius: var(--dsw-radius-md, 9px);\n font: inherit;\n font-size: 14px;\n line-height: 22px;\n background: var(--dsw-alias-bg-layer-1, #fff);\n color: var(--dsw-alias-label-primary, #1f2328);\n appearance: none;\n text-overflow: ellipsis;\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2381858C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n background-position: right 12px center;\n background-size: 12px 12px;\n}\n\n.xmimo-voice-reading-select:focus {\n outline: none;\n border-color: var(--dsw-alias-state-business-primary, var(--dsw-alias-brand-primary, #4f6ef7));\n}\n\n.xmimo-voice-reading-select:disabled {\n opacity: 0.6;\n cursor: default;\n}\n\n@media (max-width: 460px) {\n .xmimo-voice-reading-row {\n flex-direction: column;\n align-items: stretch;\n gap: 12px;\n }\n\n .xmimo-voice-reading-select {\n width: 100%;\n }\n}\n\n/**\n * Settings nav glyph: the plugin's own voice icon, RiVoiceAiFill from\n * `react-icons/ri`. The host shell hardcodes the nav glyph per section id and\n * the `settings.section` registration has no icon field (0.2.1-rc.2), so a\n * third-party section always paints the settings gear. settings/nav-icon.ts\n * marks only our own nav cell; these rules paint the plugin icon over that cell\n * (masked so it follows the host's currentColor) while every other entry keeps\n * its host glyph. test/voice-reading-nav-icon.test.mjs pins the path data below\n * to the RiVoiceAiFill source shipped by react-icons.\n */\n[data-xmimo-voice-reading-nav] > svg {\n display: none;\n}\n\n[data-xmimo-voice-reading-nav]::before {\n content: '';\n flex: none;\n width: 16px;\n height: 16px;\n background-color: currentColor;\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M20.7134 7.12811L20.4668 7.69379C20.2864 8.10792 19.7136 8.10792 19.5331 7.69379L19.2866 7.12811C18.8471 6.11947 18.0555 5.31641 17.0677 4.87708L16.308 4.53922C15.8973 4.35653 15.8973 3.75881 16.308 3.57612L17.0252 3.25714C18.0384 2.80651 18.8442 1.97373 19.2761 0.930828L19.5293 0.319534C19.7058 -0.106511 20.2942 -0.106511 20.4706 0.319534L20.7238 0.930828C21.1558 1.97373 21.9616 2.80651 22.9748 3.25714L23.6919 3.57612C24.1027 3.75881 24.1027 4.35653 23.6919 4.53922L22.9323 4.87708C21.9445 5.31641 21.1529 6.11947 20.7134 7.12811ZM8.5 6H6.5V18H8.5V6ZM4 10H2V14H4V10ZM13 2H11V22H13V2ZM17.5 8H15.5V18H17.5V8ZM22 10H20V14H22V10Z'/%3E%3C/svg%3E\");\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-position: center;\n -webkit-mask-size: 16px 16px;\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M20.7134 7.12811L20.4668 7.69379C20.2864 8.10792 19.7136 8.10792 19.5331 7.69379L19.2866 7.12811C18.8471 6.11947 18.0555 5.31641 17.0677 4.87708L16.308 4.53922C15.8973 4.35653 15.8973 3.75881 16.308 3.57612L17.0252 3.25714C18.0384 2.80651 18.8442 1.97373 19.2761 0.930828L19.5293 0.319534C19.7058 -0.106511 20.2942 -0.106511 20.4706 0.319534L20.7238 0.930828C21.1558 1.97373 21.9616 2.80651 22.9748 3.25714L23.6919 3.57612C24.1027 3.75881 24.1027 4.35653 23.6919 4.53922L22.9323 4.87708C21.9445 5.31641 21.1529 6.11947 20.7134 7.12811ZM8.5 6H6.5V18H8.5V6ZM4 10H2V14H4V10ZM13 2H11V22H13V2ZM17.5 8H15.5V18H17.5V8ZM22 10H20V14H22V10Z'/%3E%3C/svg%3E\");\n mask-repeat: no-repeat;\n mask-position: center;\n mask-size: 16px 16px;\n}\n";
20967
+ var voice_reading_default = "/**\n * Voice reading settings section — standalone page registered through the host\n * `settings.section` slot. All selectors are prefixed `xmimo-voice-reading`;\n * tokens mirror the host settings chrome with literal fallbacks.\n */\n\n.xmimo-voice-reading {\n display: flex;\n flex-direction: column;\n gap: 12px;\n color: var(--dsw-alias-label-primary, #1f2328);\n}\n\n.xmimo-voice-reading-title {\n margin: 0;\n font-size: 18px;\n line-height: 26px;\n font-weight: 600;\n}\n\n.xmimo-voice-reading-intro {\n margin: 0;\n font-size: 14px;\n line-height: 22px;\n color: var(--dsw-alias-label-tertiary, #66707d);\n}\n\n.xmimo-voice-reading-notice {\n margin: 0;\n font-size: 12px;\n line-height: 18px;\n color: var(--dsw-alias-label-tertiary, #66707d);\n}\n\n.xmimo-voice-reading-failure {\n margin: 0;\n font-size: 12px;\n line-height: 18px;\n color: var(--dsw-alias-state-error-primary, #c23f4a);\n}\n\n/**\n * Row stack. The page already sits inside the Host's settings panel, so the\n * card carries no border, radius, or padding of its own: the rows alone draw\n * the Host's hairline separators (same as the Host settings sections).\n */\n.xmimo-voice-reading-card {\n border: 0;\n border-radius: 0;\n padding: 0;\n}\n\n.xmimo-voice-reading-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 24px;\n padding: 16px 0;\n border-bottom: 0.5px solid var(--dsw-alias-border-l2, #d7dbe2);\n}\n\n.xmimo-voice-reading-row:last-child {\n border-bottom: 0;\n}\n\n.xmimo-voice-reading-copy {\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.xmimo-voice-reading-row-title {\n font-size: 14px;\n line-height: 20px;\n color: var(--dsw-alias-label-primary, #1f2328);\n}\n\n.xmimo-voice-reading-row-hint {\n font-size: 12px;\n line-height: 18px;\n color: var(--dsw-alias-label-secondary, #5f6875);\n}\n\n/**\n * Keep the Host's viewport margins below the 300px cap; Menu handles inner\n * scrolling. Repeat the class to override the Host rule in either CSS order.\n */\n.xmimo-voice-reading-menu.xmimo-voice-reading-menu {\n max-height: min(300px, calc(100vh - 12px - max(12px, var(--dsh-frame-overlay-top, 12px))));\n}\n\n/**\n * Capsule selector pill — mirrors the Host settings rows (harness source:\n * packages/client/ui-chat/src/client/settings/PreferenceRow.module.css .selector\n * and packages/client/locale/src/client/LanguageRow.module.css .selector): a\n * borderless 36px pill on the module surface whose chevron sits 12px from the\n * label. The dropdown itself is the Host primitive `Menu`, so the list already\n * matches every other Host menu; only the trigger is ours to style.\n */\n.xmimo-voice-reading-selector {\n display: inline-flex;\n align-items: center;\n gap: 12px;\n flex: none;\n max-width: 260px;\n height: 36px;\n padding: 0 14px;\n border: none;\n border-radius: var(--dsw-radius-md, 12px);\n background: var(--dsw-alias-bg-module-platform, #eef0f3);\n font: inherit;\n font-size: 14px;\n line-height: 22px;\n color: var(--dsw-alias-label-primary, #1f2328);\n cursor: pointer;\n}\n\n.xmimo-voice-reading-selector:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover, #e4e7eb);\n}\n\n.xmimo-voice-reading-selector:focus-visible {\n outline: var(--dsw-focus-ring-width, 2px) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary, #4f6ef7));\n outline-offset: 1px;\n}\n\n.xmimo-voice-reading-selector:disabled {\n color: var(--dsw-alias-label-tertiary, #66707d);\n cursor: default;\n}\n\n.xmimo-voice-reading-selector-label {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.xmimo-voice-reading-chevron {\n flex: none;\n}\n\n@media (max-width: 460px) {\n .xmimo-voice-reading-row {\n flex-direction: column;\n align-items: stretch;\n gap: 12px;\n }\n\n .xmimo-voice-reading-selector {\n align-self: flex-start;\n max-width: 100%;\n }\n}\n\n/**\n * Settings nav glyph: the plugin's own voice icon, RiVoiceAiFill from\n * `react-icons/ri`. The host shell hardcodes the nav glyph per section id and\n * the `settings.section` registration has no icon field (0.2.1-rc.2), so a\n * third-party section always paints the settings gear. settings/nav-icon.ts\n * marks only our own nav cell; these rules paint the plugin icon over that cell\n * (masked so it follows the host's currentColor) while every other entry keeps\n * its host glyph. test/voice-reading-nav-icon.test.mjs pins the path data below\n * to the RiVoiceAiFill source shipped by react-icons.\n */\n[data-xmimo-voice-reading-nav] > svg {\n display: none;\n}\n\n[data-xmimo-voice-reading-nav]::before {\n content: '';\n flex: none;\n width: 16px;\n height: 16px;\n background-color: currentColor;\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M20.7134 7.12811L20.4668 7.69379C20.2864 8.10792 19.7136 8.10792 19.5331 7.69379L19.2866 7.12811C18.8471 6.11947 18.0555 5.31641 17.0677 4.87708L16.308 4.53922C15.8973 4.35653 15.8973 3.75881 16.308 3.57612L17.0252 3.25714C18.0384 2.80651 18.8442 1.97373 19.2761 0.930828L19.5293 0.319534C19.7058 -0.106511 20.2942 -0.106511 20.4706 0.319534L20.7238 0.930828C21.1558 1.97373 21.9616 2.80651 22.9748 3.25714L23.6919 3.57612C24.1027 3.75881 24.1027 4.35653 23.6919 4.53922L22.9323 4.87708C21.9445 5.31641 21.1529 6.11947 20.7134 7.12811ZM8.5 6H6.5V18H8.5V6ZM4 10H2V14H4V10ZM13 2H11V22H13V2ZM17.5 8H15.5V18H17.5V8ZM22 10H20V14H22V10Z'/%3E%3C/svg%3E\");\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-position: center;\n -webkit-mask-size: 16px 16px;\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M20.7134 7.12811L20.4668 7.69379C20.2864 8.10792 19.7136 8.10792 19.5331 7.69379L19.2866 7.12811C18.8471 6.11947 18.0555 5.31641 17.0677 4.87708L16.308 4.53922C15.8973 4.35653 15.8973 3.75881 16.308 3.57612L17.0252 3.25714C18.0384 2.80651 18.8442 1.97373 19.2761 0.930828L19.5293 0.319534C19.7058 -0.106511 20.2942 -0.106511 20.4706 0.319534L20.7238 0.930828C21.1558 1.97373 21.9616 2.80651 22.9748 3.25714L23.6919 3.57612C24.1027 3.75881 24.1027 4.35653 23.6919 4.53922L22.9323 4.87708C21.9445 5.31641 21.1529 6.11947 20.7134 7.12811ZM8.5 6H6.5V18H8.5V6ZM4 10H2V14H4V10ZM13 2H11V22H13V2ZM17.5 8H15.5V18H17.5V8ZM22 10H20V14H22V10Z'/%3E%3C/svg%3E\");\n mask-repeat: no-repeat;\n mask-position: center;\n mask-size: 16px 16px;\n}\n";
20344
20968
 
20345
20969
  //#endregion
20346
20970
  //#region src/client/style/responsive.css?raw
20347
- var responsive_default = "/*\n * Responsive overrides (@media max-width). Intentionally kept last: these rules override the base modules.\n */\n\n@media (max-width: 520px) {\n .xmimo-tts-history-page { padding: 8px; }\n .xmimo-tts-history-row { grid-template-columns: 32px minmax(0, 1fr); }\n .xmimo-tts-history-actions { grid-column: 2; justify-content: flex-end; }\n .xmimo-tts-history-toolbar { flex-basis: 100%; }\n .xmimo-tts-history-player-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }\n .xmimo-tts-history-time { justify-self: end; }\n}\n\n@media (pointer: coarse) {\n .xmimo-tts-history-page button,\n .xmimo-tts-history-page select,\n .xmimo-tts-history-page input,\n .xmimo-tts-history-link { min-height: 44px; }\n .xmimo-tts-history-row { grid-template-columns: 44px minmax(0, 1fr); }\n .xmimo-tts-history-actions { grid-column: 2; justify-content: flex-end; }\n .xmimo-tts-history-page .xmimo-tts-history-player-toggle { width: 44px; height: 44px; min-width: 44px; }\n\n .xmimo-tts-sound-previews button {\n min-height: 54px;\n padding: 12px 5px 10px;\n gap: 6px\n }\n .xmimo-tts-sound-previews button>svg {\n width: 20px;\n height: 20px\n }\n}\n\n@media (max-width: 480px) {\n .xmimo-tts-builtin-voice-menu {\n grid-template-columns: 1fr\n }\n\n .xmimo-tts-switch-row {\n gap: 8px\n }\n .xmimo-tts-character-control {\n border-radius: 14px;\n padding-right: 6px;\n padding-left: 6px\n }\n .xmimo-tts-character-copy small {\n max-width: 120px\n }\n .xmimo-tts-character-state {\n top: 6px;\n right: 6px;\n padding: 1px 5px\n }\n .xmimo-tts-switch-module .xmimo-tts-character-portrait {\n width: 76px;\n height: 69px\n }\n .xmimo-tts-api-key {\n padding: 12px !important\n }\n .xmimo-tts-api-key .xmimo-tts-field-heading {\n min-height: 20px;\n padding-right: 0\n }\n .xmimo-tts-details-summary>span {\n max-width: 100px;\n padding-right: 6px;\n padding-left: 6px\n }\n .xmimo-tts-character-bubble {\n right: 58px;\n max-width: calc(100% - 72px);\n padding: 3px 6px;\n }\n .xmimo-tts-sound-summary {\n padding-right: 64px\n }\n .xmimo-tts-sound-summary>span {\n max-width: 94px;\n padding-right: 5px;\n padding-left: 5px\n }\n .xmimo-tts-sound-body {\n padding-right: 12px;\n padding-left: 12px\n }\n .xmimo-tts-sound-pack-grid {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n gap: 6px\n }\n .xmimo-tts-sound-pack-option {\n min-height: 46px;\n padding-right: 28px;\n padding-left: 12px;\n font-size: 10px\n }\n .xmimo-tts-sound-previews {\n grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));\n gap: 2px;\n overflow: visible\n }\n .xmimo-tts-sound-previews button {\n padding: 8px 1px 7px;\n font-size: 9px\n }\n .xmimo-tts-sound-previews button>svg {\n width: 16px;\n height: 16px\n }\n}\n";
20971
+ var responsive_default = "/*\n * Responsive overrides (@media max-width). Intentionally kept last: these rules override the base modules.\n */\n\n@media (max-width: 520px) {\n .xmimo-tts-switch-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n .xmimo-tts-history-page { padding: 8px; }\n .xmimo-tts-history-row { grid-template-columns: 32px minmax(0, 1fr); }\n .xmimo-tts-history-actions { grid-column: 2; justify-content: flex-end; }\n .xmimo-tts-history-toolbar { flex-basis: 100%; }\n .xmimo-tts-history-player-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }\n .xmimo-tts-history-time { justify-self: end; }\n}\n\n@media (pointer: coarse) {\n .xmimo-tts-history-page button,\n .xmimo-tts-history-page select,\n .xmimo-tts-history-page input,\n .xmimo-tts-history-link { min-height: 44px; }\n .xmimo-tts-history-row { grid-template-columns: 44px minmax(0, 1fr); }\n .xmimo-tts-history-actions { grid-column: 2; justify-content: flex-end; }\n .xmimo-tts-history-page .xmimo-tts-history-player-toggle { width: 44px; height: 44px; min-width: 44px; }\n\n .xmimo-tts-sound-previews button {\n min-height: 54px;\n padding: 12px 5px 10px;\n gap: 6px\n }\n .xmimo-tts-sound-previews button>svg {\n width: 20px;\n height: 20px\n }\n}\n\n@media (max-width: 480px) {\n .xmimo-tts-builtin-voice-menu {\n grid-template-columns: 1fr\n }\n\n .xmimo-tts-switch-row {\n gap: 8px\n }\n .xmimo-tts-character-control {\n border-radius: 14px;\n padding-right: 6px;\n padding-left: 6px\n }\n .xmimo-tts-character-copy small {\n max-width: 120px\n }\n .xmimo-tts-character-state {\n top: 6px;\n right: 6px;\n padding: 1px 5px\n }\n .xmimo-tts-switch-module .xmimo-tts-character-portrait {\n width: 76px;\n height: 69px\n }\n .xmimo-tts-api-key {\n padding: 12px !important\n }\n .xmimo-tts-api-key .xmimo-tts-field-heading {\n min-height: 20px;\n padding-right: 0\n }\n .xmimo-tts-details-summary>span {\n max-width: 100px;\n padding-right: 6px;\n padding-left: 6px\n }\n .xmimo-tts-character-bubble {\n right: 58px;\n max-width: calc(100% - 72px);\n padding: 3px 6px;\n }\n .xmimo-tts-sound-summary {\n padding-right: 64px\n }\n .xmimo-tts-sound-summary>span {\n max-width: 94px;\n padding-right: 5px;\n padding-left: 5px\n }\n .xmimo-tts-sound-body {\n padding-right: 12px;\n padding-left: 12px\n }\n .xmimo-tts-sound-pack-grid {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n gap: 6px\n }\n .xmimo-tts-sound-pack-option {\n min-height: 46px;\n padding-right: 28px;\n padding-left: 12px;\n font-size: 10px\n }\n .xmimo-tts-sound-previews {\n grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));\n gap: 2px;\n overflow: visible\n }\n .xmimo-tts-sound-previews button {\n padding: 8px 1px 7px;\n font-size: 9px\n }\n .xmimo-tts-sound-previews button>svg {\n width: 16px;\n height: 16px\n }\n}\n";
20348
20972
 
20349
20973
  //#endregion
20350
20974
  //#region src/client/style/motion.css?raw
20351
- var motion_default = "/*\n * Reduced-motion overrides (@media prefers-reduced-motion). Intentionally kept last.\n */\n\n@media (prefers-reduced-motion: reduce) {\n .xmimo-tts-card-actions .xmimo-tts-star,\n .xmimo-tts-card-actions .xmimo-tts-star:is(:hover, :focus-visible) {\n transition: none;\n transform: none\n }\n\n .xmimo-tts-card-actions .xmimo-tts-star::before,\n .xmimo-tts-card-actions .xmimo-tts-star:is(:hover, :focus-visible)::before {\n animation: none;\n transform: none\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .xmimo-tts-character-control,\n .xmimo-tts-character-portrait,\n .xmimo-tts-api-key-whale {\n transition: none !important\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .xmimo-tts-sound-pack-option-pending::after {\n animation: none !important\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .xmimo-tts-energy input::-webkit-slider-thumb,\n .xmimo-tts-energy input::-moz-range-thumb,\n .xmimo-tts-energy-pulse i {\n animation: none !important\n }\n}\n";
20975
+ var motion_default = "/*\n * Reduced-motion overrides (@media prefers-reduced-motion). Intentionally kept last.\n */\n\n@media (prefers-reduced-motion: reduce) {\n .xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star),\n .xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star):is(:hover, :focus-visible) {\n transition: none;\n transform: none\n }\n\n .xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star)::before,\n .xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star):is(:hover, :focus-visible)::before {\n animation: none;\n transform: none\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .xmimo-tts-character-control,\n .xmimo-tts-character-portrait,\n .xmimo-tts-provider-flipper,\n .xmimo-tts-api-key-whale {\n transition: none !important\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .xmimo-tts-sound-pack-option-pending::after {\n animation: none !important\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .xmimo-tts-energy input::-webkit-slider-thumb,\n .xmimo-tts-energy input::-moz-range-thumb,\n .xmimo-tts-energy-pulse i {\n animation: none !important\n }\n}\n";
20352
20976
 
20353
20977
  //#endregion
20354
20978
  //#region src/client/style/global.css?raw
20355
- var global_default = "/*\n * Project-wide UI system for the Xiaomi MiMo settings card.\n * Start here when adjusting layout or visual rhythm. Component-specific artwork,\n * animations, and picker styles live in the sibling *.css modules; shared dimensions\n * and module structure belong here so every settings module stays visually consistent.\n */\n\n/* ---------- Design tokens ---------- */\n.xmimo-ui-scope {\n --xmimo-ui-space-1: 4px;\n --xmimo-ui-space-2: 6px;\n --xmimo-ui-space-3: 8px;\n --xmimo-ui-space-4: 10px;\n --xmimo-ui-space-5: 12px;\n\n --xmimo-ui-module-gap: var(--xmimo-ui-space-3);\n --xmimo-ui-module-padding: var(--xmimo-ui-space-4);\n --xmimo-ui-module-radius: 12px;\n --xmimo-ui-control-radius: 9px;\n --xmimo-ui-control-height: 34px;\n --xmimo-ui-summary-height: 34px;\n --xmimo-ui-mascot-size: 56px;\n\n --xmimo-ui-text: var(--dsw-alias-label-primary, #1f2328);\n --xmimo-ui-text-muted: var(--dsw-alias-label-secondary, #5f6875);\n --xmimo-ui-text-subtle: var(--dsw-alias-label-tertiary, #8b93a1);\n --xmimo-ui-brand: var(--dsw-alias-brand-primary, #4f6ef7);\n --xmimo-ui-border: var(--dsw-alias-border-l2, #d7dbe2);\n --xmimo-ui-border-soft: var(--dsw-alias-border-l2, #e5e7eb);\n --xmimo-ui-surface: var(--dsw-alias-bg-layer-1, #fff);\n --xmimo-ui-control-surface: var(--dsw-alias-bg-layer-2, #f3f4f6);\n --xmimo-ui-chip-surface: var(--dsw-alias-bg-module-platform, #eef0f3);\n --xmimo-ui-hover: var(--dsw-alias-interactive-bg-hover, #f3f4f6);\n --xmimo-ui-focus: 2px solid var(--xmimo-ui-brand);\n}\n\n/* ---------- Layout primitives ---------- */\n.xmimo-ui-stack {\n display: flex;\n min-width: 0;\n flex-direction: column;\n gap: var(--xmimo-ui-module-gap);\n}\n\n.xmimo-ui-grid {\n display: grid;\n min-width: 0;\n}\n\n.xmimo-ui-row {\n display: flex;\n min-width: 0;\n gap: var(--xmimo-ui-module-gap);\n}\n\n/* The stack owns vertical rhythm; modules no longer negotiate margins. */\n.xmimo-ui-stack > * {\n margin-top: 0;\n margin-bottom: 0;\n}\n\n/* ---------- Shared settings module ---------- */\n.xmimo-ui-module {\n box-sizing: border-box;\n position: relative;\n min-width: 0;\n overflow: visible;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-module-radius);\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-surface);\n}\n\n.xmimo-ui-module-padded {\n padding: var(--xmimo-ui-module-padding) !important;\n}\n\n.xmimo-ui-module-header {\n position: relative;\n min-width: 0;\n}\n\n.xmimo-ui-module-decoration {\n position: static;\n}\n\n.xmimo-ui-module-toggle-static {\n padding: 0 !important;\n cursor: default;\n}\n\n.xmimo-ui-module-toggle-static:hover {\n background: transparent !important;\n}\n\n\n.xmimo-ui-module-heading,\n.xmimo-ui-module-heading > strong,\n.xmimo-ui-module > .xmimo-tts-field-heading .xmimo-tts-field-label > span:first-child {\n color: var(--xmimo-ui-text);\n font-size: 14px;\n font-weight: 650;\n line-height: 20px;\n}\n\n/* ---------- Collapsible module header ---------- */\n.xmimo-ui-module-toggle {\n box-sizing: border-box;\n display: flex;\n width: 100%;\n min-height: 0;\n align-items: flex-start;\n border: 0;\n border-radius: calc(var(--xmimo-ui-module-radius) - 1px);\n padding: var(--xmimo-ui-module-padding);\n color: var(--xmimo-ui-text);\n background: transparent;\n font: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.xmimo-ui-module-toggle:hover {\n background: var(--xmimo-ui-hover);\n}\n\n.xmimo-ui-module-toggle:focus-visible {\n outline: var(--xmimo-ui-focus);\n outline-offset: -2px;\n}\n\n.xmimo-ui-module-head {\n box-sizing: border-box;\n display: flex;\n min-width: 0;\n width: 100%;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--xmimo-ui-space-1);\n}\n\n.xmimo-ui-summary {\n box-sizing: border-box;\n display: flex;\n width: 100%;\n min-width: 0;\n min-height: var(--xmimo-ui-summary-height);\n align-items: center;\n gap: 6px;\n overflow: hidden;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-control-radius);\n padding: 6px 6px 6px var(--xmimo-ui-space-2);\n background: var(--xmimo-ui-control-surface);\n}\n\n.xmimo-ui-summary > span {\n overflow: hidden;\n min-width: 0;\n max-width: 150px;\n flex: 0 1 auto;\n border-radius: 999px;\n padding: 1px 7px;\n color: var(--xmimo-ui-text-muted);\n background: var(--xmimo-ui-chip-surface);\n font-size: 11px;\n font-weight: 500;\n line-height: 16px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.xmimo-ui-module-body {\n box-sizing: border-box;\n min-width: 0;\n}\n\n/* ---------- Shared fields and controls ---------- */\n.xmimo-ui-module input:not([type='checkbox']):not([type='radio']):not([type='range']),\n.xmimo-ui-module select,\n.xmimo-ui-module textarea {\n border-color: var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-control-radius);\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-control-surface);\n}\n\n.xmimo-ui-module input:not([type='checkbox']):not([type='radio']):not([type='range']),\n.xmimo-ui-module select {\n min-height: var(--xmimo-ui-control-height);\n}\n\n.xmimo-ui-module input:focus-visible,\n.xmimo-ui-module select:focus-visible,\n.xmimo-ui-module textarea:focus-visible {\n outline: var(--xmimo-ui-focus);\n outline-offset: 1px;\n}\n/* ---------- Module-specific placement using shared dimensions ---------- */\n.xmimo-ui-module .xmimo-tts-api-key-whale {\n width: var(--xmimo-ui-mascot-size);\n height: var(--xmimo-ui-mascot-size);\n}\n\n.xmimo-ui-module .xmimo-tts-details-body > * {\n padding-right: var(--xmimo-ui-module-padding);\n padding-left: var(--xmimo-ui-module-padding);\n}\n\n.xmimo-ui-module .xmimo-tts-sound-body {\n gap: var(--xmimo-ui-space-3);\n padding: 0 var(--xmimo-ui-module-padding) var(--xmimo-ui-module-padding);\n}\n\n@media (max-width: 480px) {\n .xmimo-ui-scope {\n --xmimo-ui-module-padding: 12px;\n --xmimo-ui-mascot-size: 52px;\n }\n\n .xmimo-ui-summary > span {\n max-width: 100px;\n padding-right: 6px;\n padding-left: 6px;\n }\n}\n";
20979
+ var global_default = "/*\n * Project-wide UI system for the Xiaomi MiMo settings card.\n * Start here when adjusting layout or visual rhythm. Component-specific artwork,\n * animations, and picker styles live in the sibling *.css modules; shared dimensions\n * and module structure belong here so every settings module stays visually consistent.\n */\n\n/* ---------- Design tokens ---------- */\n.xmimo-ui-scope {\n --xmimo-ui-space-1: 4px;\n --xmimo-ui-space-2: 6px;\n --xmimo-ui-space-3: 8px;\n --xmimo-ui-space-4: 10px;\n --xmimo-ui-space-5: 12px;\n\n --xmimo-ui-module-gap: var(--xmimo-ui-space-3);\n --xmimo-ui-module-padding: var(--xmimo-ui-space-4);\n --xmimo-ui-module-radius: 12px;\n --xmimo-ui-control-radius: 9px;\n --xmimo-ui-control-height: 34px;\n --xmimo-ui-summary-height: 34px;\n --xmimo-ui-mascot-size: 56px;\n\n --xmimo-ui-text: var(--dsw-alias-label-primary, #1f2328);\n --xmimo-ui-text-muted: var(--dsw-alias-label-secondary, #5f6875);\n --xmimo-ui-text-subtle: var(--dsw-alias-label-tertiary, #8b93a1);\n --xmimo-ui-brand: var(--dsw-alias-brand-primary, #4f6ef7);\n --xmimo-ui-border: var(--dsw-alias-border-l2, #d7dbe2);\n --xmimo-ui-border-soft: var(--dsw-alias-border-l2, #e5e7eb);\n --xmimo-ui-surface: var(--dsw-alias-bg-layer-1, #fff);\n --xmimo-ui-control-surface: var(--dsw-alias-bg-layer-2, #f3f4f6);\n --xmimo-ui-chip-surface: var(--dsw-alias-bg-module-platform, #eef0f3);\n --xmimo-ui-hover: var(--dsw-alias-interactive-bg-hover, #f3f4f6);\n --xmimo-ui-focus: 2px solid var(--xmimo-ui-brand);\n}\n\n/* ---------- Layout primitives ---------- */\n.xmimo-ui-stack {\n display: flex;\n min-width: 0;\n flex-direction: column;\n gap: var(--xmimo-ui-module-gap);\n}\n\n.xmimo-ui-grid {\n display: grid;\n min-width: 0;\n}\n\n.xmimo-ui-row {\n display: flex;\n min-width: 0;\n gap: var(--xmimo-ui-module-gap);\n}\n\n/* The stack owns vertical rhythm; modules no longer negotiate margins. */\n.xmimo-ui-stack > * {\n margin-top: 0;\n margin-bottom: 0;\n}\n\n/* ---------- Shared settings module ---------- */\n.xmimo-ui-module {\n box-sizing: border-box;\n position: relative;\n min-width: 0;\n overflow: visible;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-module-radius);\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-surface);\n}\n\n.xmimo-ui-module-padded {\n padding: var(--xmimo-ui-module-padding) !important;\n}\n\n.xmimo-ui-module-header {\n position: relative;\n min-width: 0;\n}\n\n.xmimo-ui-module-decoration {\n position: static;\n}\n\n.xmimo-ui-module-toggle-static {\n padding: 0 !important;\n cursor: default;\n}\n\n.xmimo-ui-module-toggle-static:hover {\n background: transparent !important;\n}\n\n\n.xmimo-ui-module-heading,\n.xmimo-ui-module-heading > strong,\n.xmimo-ui-module > .xmimo-tts-field-heading .xmimo-tts-field-label > span:first-child {\n color: var(--xmimo-ui-text);\n font-size: 14px;\n font-weight: 650;\n line-height: 20px;\n}\n\n/* ---------- Collapsible module header ---------- */\n.xmimo-ui-module-toggle {\n box-sizing: border-box;\n display: flex;\n width: 100%;\n min-height: 0;\n align-items: flex-start;\n border: 0;\n border-radius: calc(var(--xmimo-ui-module-radius) - 1px);\n padding: var(--xmimo-ui-module-padding);\n color: var(--xmimo-ui-text);\n background: transparent;\n font: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.xmimo-ui-module-toggle:hover {\n background: var(--xmimo-ui-hover);\n}\n\n.xmimo-ui-module-toggle:focus-visible {\n outline: var(--xmimo-ui-focus);\n outline-offset: -2px;\n}\n\n.xmimo-ui-module-head {\n box-sizing: border-box;\n display: flex;\n min-width: 0;\n width: 100%;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--xmimo-ui-space-1);\n}\n\n.xmimo-ui-summary {\n box-sizing: border-box;\n display: flex;\n width: 100%;\n min-width: 0;\n min-height: var(--xmimo-ui-summary-height);\n align-items: center;\n gap: 6px;\n overflow: hidden;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-control-radius);\n padding: 6px 6px 6px var(--xmimo-ui-space-2);\n background: var(--xmimo-ui-control-surface);\n}\n\n.xmimo-ui-summary > span {\n overflow: hidden;\n min-width: 0;\n max-width: 150px;\n flex: 0 1 auto;\n border-radius: 999px;\n padding: 1px 7px;\n color: var(--xmimo-ui-text-muted);\n background: var(--xmimo-ui-chip-surface);\n font-size: 11px;\n font-weight: 500;\n line-height: 16px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.xmimo-ui-module-body {\n box-sizing: border-box;\n min-width: 0;\n}\n\n/* ---------- Shared fields and controls ---------- */\n.xmimo-ui-module input:not([type='checkbox']):not([type='radio']):not([type='range']),\n.xmimo-ui-module select,\n.xmimo-ui-module textarea {\n border-color: var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-control-radius);\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-control-surface);\n}\n\n.xmimo-ui-module input:not([type='checkbox']):not([type='radio']):not([type='range']),\n.xmimo-ui-module select {\n min-height: var(--xmimo-ui-control-height);\n}\n\n.xmimo-ui-module input:focus-visible,\n.xmimo-ui-module select:focus-visible,\n.xmimo-ui-module textarea:focus-visible {\n outline: var(--xmimo-ui-focus);\n outline-offset: 1px;\n}\n/* ---------- Module-specific placement using shared dimensions ---------- */\n.xmimo-ui-module .xmimo-tts-api-key-whale {\n width: var(--xmimo-ui-mascot-size);\n height: var(--xmimo-ui-mascot-size);\n}\n\n.xmimo-ui-module .xmimo-tts-details-body > * {\n padding-right: var(--xmimo-ui-module-padding);\n padding-left: var(--xmimo-ui-module-padding);\n}\n\n.xmimo-ui-module .xmimo-tts-sound-body {\n gap: var(--xmimo-ui-space-3);\n padding: 6px var(--xmimo-ui-module-padding) var(--xmimo-ui-module-padding);\n}\n\n@media (max-width: 480px) {\n .xmimo-ui-scope {\n --xmimo-ui-module-padding: 12px;\n --xmimo-ui-mascot-size: 52px;\n }\n\n .xmimo-ui-summary > span {\n max-width: 100px;\n padding-right: 6px;\n padding-left: 6px;\n }\n}\n";
20356
20980
 
20357
20981
  //#endregion
20358
20982
  //#region src/client/style/minimal.css?raw
20359
- var minimal_default = ".xmimo-tts-switch-module-minimal {\n padding: var(--xmimo-ui-space-3);\n}\n\n.xmimo-tts-card-minimal {\n --xmimo-ui-module-gap: 5px;\n --xmimo-ui-module-padding: 8px;\n --xmimo-ui-control-height: 30px;\n --xmimo-ui-mascot-size: 0px;\n border: 1px solid var(--xmimo-ui-border);\n background: var(--xmimo-ui-surface, #fff);\n padding: 5px;\n}\n\n.xmimo-tts-card-minimal .xmimo-ui-module {\n border-color: transparent;\n background: transparent;\n}\n\n.xmimo-tts-card-minimal\n .xmimo-ui-module\n input:not([type=\"checkbox\"]):not([type=\"radio\"]):not([type=\"range\"]) {\n border-radius: 0;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key .xmimo-ui-module-header {\n display: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-switch-row {\n gap: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal {\n height: 24px;\n flex: 1 1 auto;\n overflow: visible;\n border-radius: 0;\n background: transparent;\n --energy-color: var(--xmimo-ui-text);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::before,\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::after {\n position: absolute;\n top: 50%;\n left: 0;\n display: block;\n height: 4px;\n border-radius: 999px;\n content: \"\";\n pointer-events: none;\n transform: translateY(-50%);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::before {\n right: 0;\n background: var(--xmimo-ui-border);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::after {\n width: var(--volume);\n background: var(--xmimo-ui-text);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal .xmimo-tts-energy-fill,\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal .xmimo-tts-energy-dots {\n display: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input[type=\"range\"] {\n z-index: 1;\n height: 32px;\n top: -4px;\n padding: 0;\n}\n\n.xmimo-tts-card-minimal\n .xmimo-tts-energy-minimal\n input::-webkit-slider-runnable-track,\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input::-moz-range-track {\n height: 24px;\n background: transparent;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input::-webkit-slider-thumb {\n width: 12px;\n height: 12px;\n border: 0;\n background: transparent;\n animation: none;\n box-shadow: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input::-moz-range-thumb {\n width: 12px;\n height: 12px;\n border: 0;\n background: transparent;\n animation: none;\n box-shadow: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input:focus-visible {\n outline: 2px solid color-mix(in srgb, var(--xmimo-ui-brand) 55%, transparent);\n outline-offset: 2px;\n}\n\n.xmimo-tts-minimal-toggle {\n display: flex;\n min-width: 0;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n padding: 0 8px;\n color: var(--xmimo-ui-text);\n cursor: pointer;\n}\n\n.xmimo-tts-minimal-toggle-label {\n min-width: 0;\n overflow: hidden;\n font-size: 12px;\n font-weight: 600;\n line-height: 16px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-minimal-toggle:has([disabled]) {\n cursor: not-allowed;\n opacity: 0.5;\n}\n\n.xmimo-tts-card-minimal .xmimo-ui-module-heading > strong {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n clip-path: inset(50%);\n white-space: nowrap;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-field-badges {\n display: none !important;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-volume {\n align-items: center;\n flex-direction: row;\n gap: 6px;\n}\n.xmimo-tts-card-minimal .xmimo-tts-sound-volume {\n width: 50%;\n align-items: center;\n flex-direction: row;\n gap: 6px;\n}\n\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key-input {\n align-items: center;\n gap: 8px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key-input > input {\n border: 0;\n border-bottom: 1px solid var(--xmimo-ui-border);\n border-radius: 0;\n padding-right: 0;\n padding-left: 0;\n background: transparent;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key-input > input:hover:not(:disabled) {\n border-bottom-color: var(--xmimo-ui-text-subtle);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key-input > input:focus-visible {\n border-bottom-color: var(--xmimo-ui-brand);\n outline: none;\n box-shadow: 0 1px 0 var(--xmimo-ui-brand);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key-inline-actions {\n display: flex;\n flex: none;\n align-items: center;\n gap: 8px;\n font-size: 11px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key-inline-actions .xmimo-tts-reset {\n font-size: 11px;\n}\n.xmimo-tts-card-minimal\n .xmimo-tts-api-key-inline-actions\n .xmimo-tts-api-key-link {\n box-sizing: border-box;\n display: inline-flex;\n width: 88px;\n min-width: 88px;\n flex: 0 0 88px;\n align-items: center;\n justify-content: center;\n text-align: center;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-voice-picker-text-caret {\n flex: none;\n color: var(--xmimo-ui-text-muted);\n font-size: 18px;\n line-height: 1;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-details-body {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n column-gap: 12px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-details-body > :nth-child(n + 3) {\n grid-column: 1 / -1;\n}\n\n.xmimo-tts-card-minimal\n .xmimo-tts-details-body\n > :not(.xmimo-tts-volume):not(.xmimo-tts-doubao-voice):not(.xmimo-tts-speech-instruction)\n > .xmimo-tts-field-heading {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n clip-path: inset(50%);\n white-space: nowrap;\n}\n\n\n\n\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-menu,\n.xmimo-tts-card-minimal .xmimo-tts-voice-picker-menu {\n grid-template-columns: repeat(4, minmax(0, 1fr));\n background: none;\n box-shadow: none;\n gap: 6px;\n padding: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-option {\n min-width: 0;\n min-height: 42px;\n padding: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-copy,\n.xmimo-tts-card-minimal .xmimo-tts-voice-option-copy {\n align-items: baseline;\n flex-direction: row;\n gap: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-copy > strong,\n.xmimo-tts-card-minimal .xmimo-tts-voice-option-copy > strong {\n min-width: 0;\n flex: 0 1 auto;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-copy > small,\n.xmimo-tts-card-minimal .xmimo-tts-voice-option-copy > small {\n min-width: 0;\n flex: 1 1 0;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-option-custom {\n grid-column: auto;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n clip-path: inset(50%);\n}\n\n.xmimo-tts-card-minimal\n .xmimo-tts-api-key-input:focus-within\n + .xmimo-tts-api-key-message {\n position: static;\n width: auto;\n height: auto;\n overflow: visible;\n clip: auto;\n clip-path: none;\n white-space: normal;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key-message.xmimo-tts-api-key-warning {\n position: static;\n width: auto;\n height: auto;\n overflow: visible;\n clip: auto;\n clip-path: none;\n white-space: normal;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-preview-input {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-ui-stack {\n gap: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-preview-input > textarea {\n min-width: 0;\n flex: 1 1 auto;\n}\n\n\n\n\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-body {\n gap: 8px;\n padding: 0 10px 10px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-grid {\n grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));\n gap: 4px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option {\n min-height: 34px;\n border-radius: 9px;\n padding: 5px 20px 5px 7px;\n font-size: 11px;\n line-height: 16px;\n transition:\n border-color 140ms ease,\n background 140ms ease;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option::before {\n content: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option::after {\n right: 5px;\n width: 13px;\n height: 13px;\n font-size: 9px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option:hover:not(:disabled),\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option:active:not(:disabled) {\n transform: none;\n box-shadow: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option-selected {\n box-shadow: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-wave {\n display: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-gift {\n width: 15px;\n height: 13px;\n margin-right: 5px;\n border-radius: 2px 2px 3px 3px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-gift::before {\n left: 5px;\n width: 2px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-gift::after {\n top: 3px;\n height: 2px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-gift-lid {\n top: -3px;\n left: -1px;\n width: 17px;\n height: 4px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-gift-ribbon {\n top: -6px;\n left: 4px;\n width: 4px;\n height: 5px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-previews button {\n min-height: 28px;\n padding: 5px;\n}\n\n.xmimo-tts-card-minimal .xmimo-ui-module-padded {\n padding: 8px !important;\n}\n\n.xmimo-tts-card-minimal .xmimo-ui-summary {\n min-height: 28px;\n gap: 4px;\n padding-block: 3px;\n border-radius: 0;\n border: 0;\n border-bottom: 1px solid var(--xmimo-ui-border);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-grid > * {\n padding-block: 4px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-card-actions {\n flex-wrap: wrap;\n gap: 6px;\n padding: 0 var(--xmimo-ui-space-3) var(--xmimo-ui-space-3);\n}\n\n@media (max-width: 520px) {\n .xmimo-tts-card-minimal .xmimo-tts-switch-row {\n gap: 5px;\n }\n\n .xmimo-tts-card-minimal .xmimo-tts-character-copy strong {\n font-size: 12px;\n }\n}\n";
20983
+ var minimal_default = ".xmimo-tts-switch-module-minimal {\n padding: var(--xmimo-ui-space-3);\n}\n\n.xmimo-tts-card-minimal {\n --xmimo-ui-module-gap: 5px;\n --xmimo-ui-module-padding: 8px;\n --xmimo-ui-control-height: 30px;\n --xmimo-ui-mascot-size: 0px;\n border: 1px solid var(--xmimo-ui-border);\n background: var(--xmimo-ui-surface, #fff);\n padding: 5px;\n}\n\n.xmimo-tts-card-minimal .xmimo-ui-module {\n background: transparent;\n}\n\n.xmimo-tts-card-minimal\n .xmimo-ui-module\n input:not([type=\"checkbox\"]):not([type=\"radio\"]):not([type=\"range\"]) {\n border-radius: 0;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key .xmimo-tts-field-heading {\n padding-right: 0;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-switch-row {\n gap: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal {\n height: 24px;\n flex: 1 1 auto;\n overflow: visible;\n border-radius: 0;\n background: transparent;\n --energy-color: var(--xmimo-ui-text);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::before,\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::after {\n position: absolute;\n top: 50%;\n left: 0;\n display: block;\n height: 4px;\n border-radius: 999px;\n content: \"\";\n pointer-events: none;\n transform: translateY(-50%);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::before {\n right: 0;\n background: var(--xmimo-ui-border);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::after {\n width: var(--volume);\n background: var(--xmimo-ui-text);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal .xmimo-tts-energy-fill,\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal .xmimo-tts-energy-dots {\n display: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input[type=\"range\"] {\n z-index: 1;\n height: 32px;\n top: -4px;\n padding: 0;\n}\n\n.xmimo-tts-card-minimal\n .xmimo-tts-energy-minimal\n input::-webkit-slider-runnable-track,\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input::-moz-range-track {\n height: 24px;\n background: transparent;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input::-webkit-slider-thumb {\n width: 12px;\n height: 12px;\n border: 0;\n background: transparent;\n animation: none;\n box-shadow: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input::-moz-range-thumb {\n width: 12px;\n height: 12px;\n border: 0;\n background: transparent;\n animation: none;\n box-shadow: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input:focus-visible {\n outline: 2px solid color-mix(in srgb, var(--xmimo-ui-brand) 55%, transparent);\n outline-offset: 2px;\n}\n\n.xmimo-tts-switch-module-minimal .xmimo-tts-minimal-control {\n box-sizing: border-box;\n display: flex;\n min-width: 0;\n min-height: var(--xmimo-ui-control-height);\n align-items: center;\n justify-content: center;\n gap: 6px;\n padding: 0 8px;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-control-radius);\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-surface);\n font-size: 12px;\n font-weight: 600;\n line-height: 16px;\n cursor: pointer;\n}\n\n.xmimo-tts-switch-module-minimal .xmimo-tts-minimal-control:hover:not(:disabled):not(:has([disabled])) {\n background: var(--xmimo-ui-hover);\n}\n\n.xmimo-tts-switch-module-minimal .xmimo-tts-minimal-control:is(:focus-visible, :has(>button:focus-visible)) {\n outline: var(--xmimo-ui-focus);\n outline-offset: 2px;\n}\n\n.xmimo-tts-minimal-toggle>button:focus-visible {\n outline: none;\n}\n\n.xmimo-tts-minimal-toggle-label {\n min-width: 0;\n overflow: hidden;\n font-size: 12px;\n font-weight: 600;\n line-height: 16px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.xmimo-tts-minimal-toggle>button {\n flex: none;\n}\n\n.xmimo-tts-provider-button>span {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.xmimo-tts-provider-button>svg {\n flex: none;\n}\n\n.xmimo-tts-switch-module-minimal .xmimo-tts-minimal-control:is(:disabled, :has([disabled])) {\n cursor: not-allowed;\n opacity: 0.5;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-field-badges {\n display: none !important;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-volume {\n align-items: center;\n flex-direction: row;\n gap: 6px;\n}\n.xmimo-tts-card-minimal .xmimo-tts-sound-volume {\n width: 50%;\n align-items: center;\n flex-direction: row;\n gap: 6px;\n}\n\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key-input > input {\n border: 0;\n border-bottom: 1px solid var(--xmimo-ui-border);\n border-radius: 0;\n padding-right: 0;\n padding-left: 0;\n background: transparent;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key-input > input:hover:not(:disabled) {\n border-bottom-color: var(--xmimo-ui-text-subtle);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key-input > input:focus-visible {\n border-bottom-color: var(--xmimo-ui-brand);\n outline: none;\n box-shadow: 0 1px 0 var(--xmimo-ui-brand);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-voice-picker-text-caret {\n flex: none;\n color: var(--xmimo-ui-text-muted);\n font-size: 18px;\n line-height: 1;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-details-body {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n column-gap: 12px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-details-body > :nth-child(n + 3) {\n grid-column: 1 / -1;\n}\n\n.xmimo-tts-card-minimal\n .xmimo-tts-details-body\n > :not(.xmimo-tts-volume):not(.xmimo-tts-doubao-voice):not(.xmimo-tts-speech-instruction)\n > .xmimo-tts-field-heading {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n clip-path: inset(50%);\n white-space: nowrap;\n}\n\n\n\n\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-menu,\n.xmimo-tts-card-minimal .xmimo-tts-voice-picker-menu {\n grid-template-columns: repeat(4, minmax(0, 1fr));\n background: none;\n box-shadow: none;\n gap: 6px;\n padding: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-option {\n min-width: 0;\n min-height: 42px;\n padding: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-copy,\n.xmimo-tts-card-minimal .xmimo-tts-voice-option-copy {\n align-items: baseline;\n flex-direction: row;\n gap: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-copy > strong,\n.xmimo-tts-card-minimal .xmimo-tts-voice-option-copy > strong {\n min-width: 0;\n flex: 0 1 auto;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-copy > small,\n.xmimo-tts-card-minimal .xmimo-tts-voice-option-copy > small {\n min-width: 0;\n flex: 1 1 0;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-option-custom {\n grid-column: auto;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n clip-path: inset(50%);\n}\n\n.xmimo-tts-card-minimal\n .xmimo-tts-api-key-input:focus-within\n + .xmimo-tts-api-key-message {\n position: static;\n width: auto;\n height: auto;\n overflow: visible;\n clip: auto;\n clip-path: none;\n white-space: normal;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key-message.xmimo-tts-api-key-warning {\n position: static;\n width: auto;\n height: auto;\n overflow: visible;\n clip: auto;\n clip-path: none;\n white-space: normal;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-preview-input {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-ui-stack {\n gap: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-preview-input > textarea {\n min-width: 0;\n flex: 1 1 auto;\n}\n\n\n\n\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-body {\n gap: 8px;\n padding: 6px 10px 10px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-grid {\n grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));\n gap: 4px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option {\n min-height: 34px;\n border-radius: 9px;\n padding: 5px 20px 5px 7px;\n font-size: 11px;\n line-height: 16px;\n transition:\n border-color 140ms ease,\n background 140ms ease;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option::before {\n content: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option::after {\n right: 5px;\n width: 13px;\n height: 13px;\n font-size: 9px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option:hover:not(:disabled),\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option:active:not(:disabled) {\n transform: none;\n box-shadow: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option-selected {\n box-shadow: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-wave {\n display: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-icon {\n width: 16px;\n height: 16px;\n margin-right: 5px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-previews button {\n min-height: 28px;\n padding: 5px;\n}\n\n.xmimo-tts-card-minimal .xmimo-ui-module-padded {\n padding: 8px !important;\n}\n\n.xmimo-tts-card-minimal .xmimo-ui-summary {\n min-height: 28px;\n gap: 4px;\n padding-block: 3px;\n border-radius: 0;\n border: 0;\n border-bottom: 1px solid var(--xmimo-ui-border);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-grid > * {\n padding-block: 4px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-card-actions {\n flex-wrap: wrap;\n gap: 6px;\n padding: 0 var(--xmimo-ui-space-3) var(--xmimo-ui-space-3);\n}\n\n@media (max-width: 520px) {\n .xmimo-tts-card-minimal .xmimo-tts-switch-row {\n gap: 5px;\n }\n\n .xmimo-tts-card-minimal .xmimo-tts-character-copy strong {\n font-size: 12px;\n }\n}\n\n@media (pointer: coarse) {\n .xmimo-tts-switch-module-minimal .xmimo-tts-minimal-control {\n min-height: 44px;\n }\n}\n";
20360
20984
 
20361
20985
  //#endregion
20362
20986
  //#region src/client/style/history.css?raw