@deep-eye/core 1.2.45 → 1.2.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var WR = Object.defineProperty;
2
2
  var VR = (t, A, e) => A in t ? WR(t, A, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[A] = e;
3
3
  var de = (t, A, e) => VR(t, typeof A != "symbol" ? A + "" : A, e);
4
- import { computed as $, unref as _A, ref as uA, shallowRef as tc, defineComponent as oe, watch as Oe, nextTick as Te, onMounted as Ar, onBeforeUnmount as er, openBlock as Y, createElementBlock as P, normalizeStyle as di, createElementVNode as R, normalizeClass as Be, renderSlot as be, Fragment as Ge, toDisplayString as EA, createCommentVNode as DA, createStaticVNode as fs, inject as Cg, h as eo, createBlock as se, shallowReactive as Pu, Teleport as f0, createVNode as De, renderList as Qt, withModifiers as Gr, toRefs as zR, toValue as WC, watchEffect as E3, onUpdated as v3, onUnmounted as Kv, warn as XR, Transition as Za, withCtx as Je, createTextVNode as qv, TransitionGroup as jR, toRef as $R, provide as m3, resolveDynamicComponent as Jn, withDirectives as d0, vModelText as Pv, useSlots as y3, createSlots as Wo, mergeProps as Vo, normalizeProps as Xr, guardReactiveProps as Bn, render as Iy, vShow as w3, withKeys as A7, useId as e7, defineAsyncComponent as ph, Suspense as t7 } from "vue";
4
+ import { computed as $, unref as _A, ref as uA, shallowRef as tc, defineComponent as oe, watch as Oe, nextTick as Te, onMounted as Ar, onBeforeUnmount as er, openBlock as Y, createElementBlock as P, normalizeStyle as di, createElementVNode as M, normalizeClass as Be, renderSlot as be, Fragment as Ge, toDisplayString as EA, createCommentVNode as DA, createStaticVNode as fs, inject as Cg, h as eo, createBlock as se, shallowReactive as Pu, Teleport as f0, createVNode as De, renderList as Qt, withModifiers as Gr, toRefs as zR, toValue as WC, watchEffect as E3, onUpdated as v3, onUnmounted as Kv, warn as XR, Transition as Za, withCtx as Je, createTextVNode as qv, TransitionGroup as jR, toRef as $R, provide as m3, resolveDynamicComponent as Jn, withDirectives as d0, vModelText as Pv, useSlots as y3, createSlots as Wo, mergeProps as Vo, normalizeProps as Xr, guardReactiveProps as Bn, render as Iy, vShow as w3, withKeys as A7, useId as e7, defineAsyncComponent as ph, Suspense as t7 } from "vue";
5
5
  import * as Ee from "d3";
6
6
  import { gsap as i7 } from "gsap";
7
7
  import { useManualRefHistory as r7, cloneFnJSON as fy, useResizeObserver as n7 } from "@vueuse/core";
@@ -819,7 +819,7 @@ const N7 = {
819
819
  // getLinkStyle,
820
820
  getBackgroundStyle: I
821
821
  } = u7(() => i.theme, i.nodeStyle, i.linkStyle), f = $(() => `toolbar-${i.toolbarPosition}`), d = $(() => I());
822
- let B = null, Q = Ee.zoomIdentity, p = !1, E = !1, v = null, y = !1, D = null, k = { vx: 0, vy: 0 }, b = "", S = !1, x = !1, F = null, M = null, T = !0, H = !1;
822
+ let B = null, Q = Ee.zoomIdentity, p = !1, E = !1, v = null, y = !1, D = null, k = { vx: 0, vy: 0 }, b = "", S = !1, x = !1, F = null, R = null, T = !0, H = !1;
823
823
  const U = /* @__PURE__ */ new Set(), G = /* @__PURE__ */ new Map(), z = /* @__PURE__ */ new Map(), AA = uA(null), eA = uA(null), oA = uA(1), sA = $(() => Math.round(oA.value * 100)), gA = (Z) => i.expandable ? (Z == null ? void 0 : Z.expanded) !== !1 : !0, IA = (Z) => i.expandable && Z.expanded === !1 ? null : Z.children, LA = $(() => {
824
824
  if (!eA.value) return 0;
825
825
  let Z = 0;
@@ -1280,7 +1280,7 @@ const N7 = {
1280
1280
  rA
1281
1281
  ), qe != null && qe.activated && Ue.classed("is-dragging", (O) => O.data.id === (qe == null ? void 0 : qe.node.data.id));
1282
1282
  }, ti = (Z) => {
1283
- i.expandable && Z.data && (x || (S && M && (M.kill(), M = null, S = !1), F && (clearTimeout(F), F = null), U.clear(), F = setTimeout(() => {
1283
+ i.expandable && Z.data && (x || (S && R && (R.kill(), R = null, S = !1), F && (clearTimeout(F), F = null), U.clear(), F = setTimeout(() => {
1284
1284
  if (x) return;
1285
1285
  x = !0, p = !0;
1286
1286
  const V = Z.data.expanded !== !1;
@@ -1473,12 +1473,12 @@ const N7 = {
1473
1473
  const it = 100, ii = ce - pe + it * 2, dr = ZA - jA + it * 2, Ii = cA / ii, Zi = rA / dr, Ht = Math.min(Ii, Zi, 1.2), ee = Z.x || 0, Ue = Z.y || 0, O = cA / 2 - Ue * Ht, FA = rA / 2 - ee * Ht;
1474
1474
  if (B && a.value) {
1475
1475
  const $A = Ee.zoomIdentity.translate(O, FA).scale(Ht), Pe = V !== void 0 ? V : nA.centerDuration;
1476
- M && (M.kill(), M = null), M = fe($A, {
1476
+ R && (R.kill(), R = null), R = fe($A, {
1477
1477
  duration: Pe,
1478
1478
  ease: nA.centerEase,
1479
1479
  syncZoom: !0,
1480
1480
  onComplete: () => {
1481
- S = !1, M = null;
1481
+ S = !1, R = null;
1482
1482
  }
1483
1483
  });
1484
1484
  }
@@ -1497,12 +1497,12 @@ const N7 = {
1497
1497
  const pe = 80, ce = ZA - jA + pe * 2, it = wA - mA + pe * 2, ii = Z / ce, dr = V / it, Ii = Math.min(ii, dr, 1.2), Zi = (mA + wA) / 2, Ht = (jA + ZA) / 2, ee = Z / 2 - Ht * Ii, Ue = V / 2 - Zi * Ii;
1498
1498
  if (B && a.value) {
1499
1499
  const O = Ee.zoomIdentity.translate(ee, Ue).scale(Ii);
1500
- M && (M.kill(), M = null), M = fe(O, {
1500
+ R && (R.kill(), R = null), R = fe(O, {
1501
1501
  duration: nA.centerDuration,
1502
1502
  ease: nA.centerEase,
1503
1503
  syncZoom: !0,
1504
1504
  onComplete: () => {
1505
- S = !1, M = null;
1505
+ S = !1, R = null;
1506
1506
  }
1507
1507
  });
1508
1508
  }
@@ -1543,7 +1543,7 @@ const N7 = {
1543
1543
  St();
1544
1544
  const rA = nA.centerDuration * 1e3;
1545
1545
  setTimeout(() => {
1546
- S = !1, M = null;
1546
+ S = !1, R = null;
1547
1547
  }, rA + 80);
1548
1548
  }, 50);
1549
1549
  });
@@ -1658,7 +1658,7 @@ const N7 = {
1658
1658
  });
1659
1659
  });
1660
1660
  }), er(() => {
1661
- B && n.value && Ee.select(n.value).on(".zoom", null), B = null, v == null || v.kill(), v = null, M == null || M.kill(), M = null, F && (clearTimeout(F), F = null), U.clear(), G.clear(), z.clear();
1661
+ B && n.value && Ee.select(n.value).on(".zoom", null), B = null, v == null || v.kill(), v = null, R == null || R.kill(), R = null, F && (clearTimeout(F), F = null), U.clear(), G.clear(), z.clear();
1662
1662
  });
1663
1663
  const fA = () => {
1664
1664
  St();
@@ -1788,14 +1788,14 @@ const N7 = {
1788
1788
  style: di(ie.value),
1789
1789
  role: "tree"
1790
1790
  }, [
1791
- R("g", {
1791
+ M("g", {
1792
1792
  ref_key: "svgGroupRef",
1793
1793
  ref: a,
1794
1794
  class: "mindmap-group"
1795
1795
  }, [...V[0] || (V[0] = [
1796
- R("g", { class: "links" }, null, -1),
1797
- R("g", { class: "nodes" }, null, -1),
1798
- R("g", {
1796
+ M("g", { class: "links" }, null, -1),
1797
+ M("g", { class: "nodes" }, null, -1),
1798
+ M("g", {
1799
1799
  class: "drag-overlay",
1800
1800
  "pointer-events": "none"
1801
1801
  }, null, -1)
@@ -1817,12 +1817,12 @@ const N7 = {
1817
1817
  scale: oA.value,
1818
1818
  visibleNodeCount: LA.value
1819
1819
  }, void 0, !0) : (Y(), P(Ge, { key: 1 }, [
1820
- R("button", {
1820
+ M("button", {
1821
1821
  class: "toolbar-btn",
1822
1822
  title: "缩小",
1823
1823
  onClick: Fa
1824
1824
  }, [...V[1] || (V[1] = [
1825
- R("svg", {
1825
+ M("svg", {
1826
1826
  width: "18",
1827
1827
  height: "18",
1828
1828
  viewBox: "0 0 24 24",
@@ -1830,18 +1830,18 @@ const N7 = {
1830
1830
  stroke: "currentColor",
1831
1831
  "stroke-width": "2"
1832
1832
  }, [
1833
- R("circle", {
1833
+ M("circle", {
1834
1834
  cx: "11",
1835
1835
  cy: "11",
1836
1836
  r: "8"
1837
1837
  }),
1838
- R("line", {
1838
+ M("line", {
1839
1839
  x1: "21",
1840
1840
  y1: "21",
1841
1841
  x2: "16.65",
1842
1842
  y2: "16.65"
1843
1843
  }),
1844
- R("line", {
1844
+ M("line", {
1845
1845
  x1: "8",
1846
1846
  y1: "11",
1847
1847
  x2: "14",
@@ -1850,20 +1850,20 @@ const N7 = {
1850
1850
  ], -1)
1851
1851
  ])]),
1852
1852
  t.showScale ? (Y(), P("div", N7, EA(sA.value) + "%", 1)) : DA("", !0),
1853
- R("button", {
1853
+ M("button", {
1854
1854
  class: "toolbar-btn",
1855
1855
  title: "放大",
1856
1856
  onClick: nr
1857
1857
  }, [...V[2] || (V[2] = [
1858
1858
  fs('<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-dc099d20><circle cx="11" cy="11" r="8" data-v-dc099d20></circle><line x1="21" y1="21" x2="16.65" y2="16.65" data-v-dc099d20></line><line x1="11" y1="8" x2="11" y2="14" data-v-dc099d20></line><line x1="8" y1="11" x2="14" y2="11" data-v-dc099d20></line></svg>', 1)
1859
1859
  ])]),
1860
- V[8] || (V[8] = R("div", { class: "toolbar-divider" }, null, -1)),
1861
- R("button", {
1860
+ V[8] || (V[8] = M("div", { class: "toolbar-divider" }, null, -1)),
1861
+ M("button", {
1862
1862
  class: "toolbar-btn",
1863
1863
  title: "适应画布",
1864
1864
  onClick: Vt
1865
1865
  }, [...V[3] || (V[3] = [
1866
- R("svg", {
1866
+ M("svg", {
1867
1867
  width: "18",
1868
1868
  height: "18",
1869
1869
  viewBox: "0 0 24 24",
@@ -1871,7 +1871,7 @@ const N7 = {
1871
1871
  stroke: "currentColor",
1872
1872
  "stroke-width": "2"
1873
1873
  }, [
1874
- R("path", { d: "M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3" })
1874
+ M("path", { d: "M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3" })
1875
1875
  ], -1)
1876
1876
  ])]),
1877
1877
  t.expandable ? (Y(), P("div", x7)) : DA("", !0),
@@ -1882,30 +1882,30 @@ const N7 = {
1882
1882
  onClick: Es
1883
1883
  }, [
1884
1884
  te.value ? (Y(), P("svg", R7, [...V[5] || (V[5] = [
1885
- R("polyline", { points: "4 14 10 14 10 20" }, null, -1),
1886
- R("polyline", { points: "20 10 14 10 14 4" }, null, -1),
1887
- R("line", {
1885
+ M("polyline", { points: "4 14 10 14 10 20" }, null, -1),
1886
+ M("polyline", { points: "20 10 14 10 14 4" }, null, -1),
1887
+ M("line", {
1888
1888
  x1: "14",
1889
1889
  y1: "10",
1890
1890
  x2: "21",
1891
1891
  y2: "3"
1892
1892
  }, null, -1),
1893
- R("line", {
1893
+ M("line", {
1894
1894
  x1: "3",
1895
1895
  y1: "21",
1896
1896
  x2: "10",
1897
1897
  y2: "14"
1898
1898
  }, null, -1)
1899
1899
  ])])) : (Y(), P("svg", M7, [...V[4] || (V[4] = [
1900
- R("polyline", { points: "15 3 21 3 21 9" }, null, -1),
1901
- R("polyline", { points: "9 21 3 21 3 15" }, null, -1),
1902
- R("line", {
1900
+ M("polyline", { points: "15 3 21 3 21 9" }, null, -1),
1901
+ M("polyline", { points: "9 21 3 21 3 15" }, null, -1),
1902
+ M("line", {
1903
1903
  x1: "21",
1904
1904
  y1: "3",
1905
1905
  x2: "14",
1906
1906
  y2: "10"
1907
1907
  }, null, -1),
1908
- R("line", {
1908
+ M("line", {
1909
1909
  x1: "3",
1910
1910
  y1: "21",
1911
1911
  x2: "10",
@@ -1920,7 +1920,7 @@ const N7 = {
1920
1920
  title: "导出图片",
1921
1921
  onClick: ae
1922
1922
  }, [...V[6] || (V[6] = [
1923
- R("svg", {
1923
+ M("svg", {
1924
1924
  width: "18",
1925
1925
  height: "18",
1926
1926
  viewBox: "0 0 24 24",
@@ -1928,9 +1928,9 @@ const N7 = {
1928
1928
  stroke: "currentColor",
1929
1929
  "stroke-width": "2"
1930
1930
  }, [
1931
- R("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
1932
- R("polyline", { points: "7 10 12 15 17 10" }),
1933
- R("line", {
1931
+ M("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
1932
+ M("polyline", { points: "7 10 12 15 17 10" }),
1933
+ M("line", {
1934
1934
  x1: "12",
1935
1935
  y1: "15",
1936
1936
  x2: "12",
@@ -1939,7 +1939,7 @@ const N7 = {
1939
1939
  ], -1)
1940
1940
  ])])) : DA("", !0),
1941
1941
  t.showCounts ? (Y(), P("div", L7, [
1942
- V[7] || (V[7] = R("svg", {
1942
+ V[7] || (V[7] = M("svg", {
1943
1943
  width: "16",
1944
1944
  height: "16",
1945
1945
  viewBox: "0 0 24 24",
@@ -1947,14 +1947,14 @@ const N7 = {
1947
1947
  stroke: "currentColor",
1948
1948
  "stroke-width": "2"
1949
1949
  }, [
1950
- R("circle", {
1950
+ M("circle", {
1951
1951
  cx: "12",
1952
1952
  cy: "12",
1953
1953
  r: "3"
1954
1954
  }),
1955
- R("path", { d: "M12 1v6m0 6v6M5.64 5.64l4.24 4.24m4.24 4.24l4.24 4.24M1 12h6m6 0h6M5.64 18.36l4.24-4.24m4.24-4.24l4.24-4.24" })
1955
+ M("path", { d: "M12 1v6m0 6v6M5.64 5.64l4.24 4.24m4.24 4.24l4.24 4.24M1 12h6m6 0h6M5.64 18.36l4.24-4.24m4.24-4.24l4.24-4.24" })
1956
1956
  ], -1)),
1957
- R("span", T7, EA(LA.value), 1)
1957
+ M("span", T7, EA(LA.value), 1)
1958
1958
  ])) : DA("", !0)
1959
1959
  ], 64))
1960
1960
  ], 2)) : DA("", !0)
@@ -2536,7 +2536,7 @@ const X6 = [
2536
2536
  copyFailed: n.value,
2537
2537
  copy: g
2538
2538
  }, () => [
2539
- R("button", {
2539
+ M("button", {
2540
2540
  class: Be(["chat-actionbar__copy", { "chat-actionbar__copy--failed": n.value }]),
2541
2541
  type: "button",
2542
2542
  disabled: !o.value,
@@ -2565,7 +2565,7 @@ const X6 = [
2565
2565
  "aria-hidden": "true"
2566
2566
  }))
2567
2567
  ], 10, $6),
2568
- R("span", AG, EA(r.value ? "已复制" : n.value ? "复制失败" : ""), 1)
2568
+ M("span", AG, EA(r.value ? "已复制" : n.value ? "复制失败" : ""), 1)
2569
2569
  ], !0)
2570
2570
  ]));
2571
2571
  }
@@ -2672,10 +2672,10 @@ function R3(t) {
2672
2672
  }
2673
2673
  function aG(t) {
2674
2674
  return {
2675
- fileName: t.fileName,
2676
- fileType: t.fileType,
2675
+ filename: t.fileName,
2676
+ url_type: t.fileType,
2677
2677
  size: t.size,
2678
- url: t.url
2678
+ original_url: t.url
2679
2679
  };
2680
2680
  }
2681
2681
  function Xv(t, A) {
@@ -2696,10 +2696,10 @@ function Xv(t, A) {
2696
2696
  };
2697
2697
  }
2698
2698
  function oG(t) {
2699
- const A = t.fileType.toLowerCase();
2700
- return x3.has(A) ? { type: "image_url", image_url: { url: t.url } } : M3.has(A) ? { type: "video_url", video_url: { url: t.url } } : _3.has(A) ? { type: "input_audio", input_audio: { url: t.url } } : {
2699
+ const A = t.url_type.toLowerCase();
2700
+ return x3.has(A) ? { type: "image_url", image_url: { url: t.original_url } } : M3.has(A) ? { type: "video_url", video_url: { url: t.original_url } } : _3.has(A) ? { type: "input_audio", input_audio: { url: t.original_url } } : {
2701
2701
  type: "file",
2702
- file: { file_url: t.url, filename: t.fileName }
2702
+ file: { file_url: t.original_url, filename: t.filename }
2703
2703
  };
2704
2704
  }
2705
2705
  function G3() {
@@ -2714,7 +2714,7 @@ function gB(t) {
2714
2714
  }
2715
2715
  const wl = Pu(/* @__PURE__ */ new Map()), gG = /* @__PURE__ */ new Set(["avif", "bmp", "gif", "heic", "jpeg", "jpg", "png", "svg", "webp"]), lG = /* @__PURE__ */ new Set(["aac", "flac", "m4a", "mp3", "oga", "ogg", "wav"]), cG = /* @__PURE__ */ new Set(["avi", "m4v", "mkv", "mov", "mp4", "webm"]), uG = /* @__PURE__ */ new Set(["csv", "json", "markdown", "md", "txt"]);
2716
2716
  function Up(t) {
2717
- const A = (t.fileType || mc(t.fileName)).toLowerCase();
2717
+ const A = (t.url_type || mc(t.filename)).toLowerCase();
2718
2718
  return gG.has(A) ? "image" : A === "pdf" ? "pdf" : A === "docx" ? "docx" : A === "xls" || A === "xlsx" ? "excel" : A === "pptx" ? "pptx" : A === "html" || A === "htm" ? "html" : uG.has(A) ? "text" : lG.has(A) ? "audio" : cG.has(A) ? "video" : "unsupported";
2719
2719
  }
2720
2720
  function KdA(t, A) {
@@ -2835,7 +2835,7 @@ const xG = ["src", "alt"], _G = /* @__PURE__ */ oe({
2835
2835
  "aria-modal": "true",
2836
2836
  "aria-label": "图片预览"
2837
2837
  }, [
2838
- R("button", {
2838
+ M("button", {
2839
2839
  ref_key: "closeRef",
2840
2840
  ref: n,
2841
2841
  type: "button",
@@ -2862,9 +2862,9 @@ const xG = ["src", "alt"], _G = /* @__PURE__ */ oe({
2862
2862
  "aria-hidden": "true"
2863
2863
  })
2864
2864
  ])) : DA("", !0),
2865
- R("img", {
2866
- src: (u = t.images[t.index ?? 0]) == null ? void 0 : u.url,
2867
- alt: (C = t.images[t.index ?? 0]) == null ? void 0 : C.fileName
2865
+ M("img", {
2866
+ src: (u = t.images[t.index ?? 0]) == null ? void 0 : u.original_url,
2867
+ alt: (C = t.images[t.index ?? 0]) == null ? void 0 : C.filename
2868
2868
  }, null, 8, xG),
2869
2869
  t.images.length > 1 ? (Y(), P("button", {
2870
2870
  key: 1,
@@ -2883,7 +2883,7 @@ const xG = ["src", "alt"], _G = /* @__PURE__ */ oe({
2883
2883
  ]);
2884
2884
  };
2885
2885
  }
2886
- }), MG = /* @__PURE__ */ Me(_G, [["__scopeId", "data-v-c4acf66f"]]), RG = {
2886
+ }), MG = /* @__PURE__ */ Me(_G, [["__scopeId", "data-v-7344bd69"]]), RG = {
2887
2887
  class: "chat-attachments",
2888
2888
  "aria-label": "消息附件"
2889
2889
  }, GG = ["aria-label", "onClick"], LG = ["src", "alt"], TG = ["aria-label", "onClick"], YG = ["src"], UG = { class: "chat-attachments__file-info" }, JG = { class: "chat-attachments__name" }, OG = { class: "chat-attachments__meta" }, HG = { class: "chat-attachments__type" }, ZG = 200, KG = /* @__PURE__ */ oe({
@@ -2900,48 +2900,50 @@ const xG = ["src", "alt"], _G = /* @__PURE__ */ oe({
2900
2900
  return Up(c) === "image";
2901
2901
  }
2902
2902
  function s(c) {
2903
- return rc(c.url, { width: ZG });
2903
+ return rc(c.original_url, { width: ZG });
2904
2904
  }
2905
2905
  function g(c) {
2906
- a.value = r.value.findIndex((h) => h.url === c.url), n.value = !0;
2906
+ a.value = r.value.findIndex(
2907
+ (h) => h.original_url === c.original_url
2908
+ ), n.value = !0;
2907
2909
  }
2908
2910
  function l(c) {
2909
2911
  return c < 1024 ? `${c} B` : c < 1024 * 1024 ? `${(c / 1024).toFixed(1)} KB` : `${(c / (1024 * 1024)).toFixed(1)} MB`;
2910
2912
  }
2911
2913
  return (c, h) => (Y(), P("section", RG, [
2912
2914
  (Y(!0), P(Ge, null, Qt(t.resources, (u) => (Y(), P(Ge, {
2913
- key: u.url
2915
+ key: u.original_url
2914
2916
  }, [
2915
2917
  o(u) ? (Y(), P("button", {
2916
2918
  key: 0,
2917
2919
  type: "button",
2918
2920
  class: "chat-attachments__item chat-attachments__image",
2919
- "aria-label": `预览 ${u.fileName}`,
2921
+ "aria-label": `预览 ${u.filename}`,
2920
2922
  onClick: (C) => g(u)
2921
2923
  }, [
2922
- R("img", {
2924
+ M("img", {
2923
2925
  src: s(u),
2924
- alt: u.fileName,
2926
+ alt: u.filename,
2925
2927
  loading: "lazy"
2926
2928
  }, null, 8, LG)
2927
2929
  ], 8, GG)) : (Y(), P("button", {
2928
2930
  key: 1,
2929
2931
  type: "button",
2930
2932
  class: "chat-attachments__item chat-attachments__file",
2931
- "aria-label": `预览 ${u.fileName}`,
2933
+ "aria-label": `预览 ${u.filename}`,
2932
2934
  onClick: (C) => i("preview", u)
2933
2935
  }, [
2934
- R("img", {
2936
+ M("img", {
2935
2937
  class: "chat-attachments__file-icon",
2936
- src: _A(L3)(u.fileType || u.fileName, u.url),
2938
+ src: _A(L3)(u.url_type || u.filename, u.original_url),
2937
2939
  alt: "",
2938
2940
  "aria-hidden": "true"
2939
2941
  }, null, 8, YG),
2940
- R("span", UG, [
2941
- R("span", JG, EA(u.fileName), 1),
2942
- R("span", OG, EA(l(u.size)), 1)
2942
+ M("span", UG, [
2943
+ M("span", JG, EA(u.filename), 1),
2944
+ M("span", OG, EA(l(u.size)), 1)
2943
2945
  ]),
2944
- R("span", HG, EA(u.fileType.toUpperCase()), 1)
2946
+ M("span", HG, EA(u.url_type.toUpperCase()), 1)
2945
2947
  ], 8, TG))
2946
2948
  ], 64))), 128)),
2947
2949
  De(MG, {
@@ -2953,7 +2955,7 @@ const xG = ["src", "alt"], _G = /* @__PURE__ */ oe({
2953
2955
  }, null, 8, ["open", "index", "images"])
2954
2956
  ]));
2955
2957
  }
2956
- }), qG = /* @__PURE__ */ Me(KG, [["__scopeId", "data-v-d1f4e77b"]]), PG = {
2958
+ }), qG = /* @__PURE__ */ Me(KG, [["__scopeId", "data-v-9a79734c"]]), PG = {
2957
2959
  key: 0,
2958
2960
  class: "chat-follow-ups",
2959
2961
  role: "group",
@@ -2985,7 +2987,7 @@ const xG = ["src", "alt"], _G = /* @__PURE__ */ oe({
2985
2987
  onClick: (c) => n(g),
2986
2988
  onKeydown: (c) => a(c, g)
2987
2989
  }, [
2988
- R("span", VG, EA(g), 1)
2990
+ M("span", VG, EA(g), 1)
2989
2991
  ], 40, WG))), 128))
2990
2992
  ])) : DA("", !0);
2991
2993
  }
@@ -3063,15 +3065,15 @@ const iL = { class: "action-bar-wrap" }, rL = ["aria-label"], nL = { class: "act
3063
3065
  });
3064
3066
  }
3065
3067
  return (u, C) => (Y(), P("div", iL, [
3066
- R("button", {
3068
+ M("button", {
3067
3069
  type: "button",
3068
3070
  class: "action-bar",
3069
3071
  "data-testid": "action-bar",
3070
3072
  "aria-label": `${a.value}:${r.value}`,
3071
3073
  onClick: h
3072
3074
  }, [
3073
- R("span", nL, [
3074
- R("span", aL, [
3075
+ M("span", nL, [
3076
+ M("span", aL, [
3075
3077
  o.value ? (Y(), P("img", {
3076
3078
  key: 0,
3077
3079
  class: "action-bar__icon-img",
@@ -3084,9 +3086,9 @@ const iL = { class: "action-bar-wrap" }, rL = ["aria-label"], nL = { class: "act
3084
3086
  }, null, 8, gL))), 128))
3085
3087
  ]))
3086
3088
  ]),
3087
- R("span", lL, EA(r.value), 1)
3089
+ M("span", lL, EA(r.value), 1)
3088
3090
  ]),
3089
- R("span", cL, EA(a.value), 1)
3091
+ M("span", cL, EA(a.value), 1)
3090
3092
  ], 8, rL)
3091
3093
  ]));
3092
3094
  }
@@ -3207,46 +3209,46 @@ const EL = { class: "artifact-wrapper" }, vL = { class: "artifact-block" }, mL =
3207
3209
  });
3208
3210
  }
3209
3211
  return (I, f) => (Y(), P("div", EL, [
3210
- R("div", vL, [
3211
- R("button", {
3212
+ M("div", vL, [
3213
+ M("button", {
3212
3214
  type: "button",
3213
3215
  class: "artifact-btn-overlay",
3214
3216
  "data-testid": "artifact-block",
3215
3217
  "aria-label": `View ${r.value}`,
3216
3218
  onClick: u
3217
3219
  }, null, 8, mL),
3218
- R("div", yL, [
3219
- R("div", wL, [
3220
- f[0] || (f[0] = R("div", {
3220
+ M("div", yL, [
3221
+ M("div", wL, [
3222
+ f[0] || (f[0] = M("div", {
3221
3223
  class: "artifact-thumb-wrap",
3222
3224
  "aria-hidden": "true"
3223
3225
  }, [
3224
- R("div", { class: "artifact-thumb" }, [
3225
- R("svg", {
3226
+ M("div", { class: "artifact-thumb" }, [
3227
+ M("svg", {
3226
3228
  xmlns: "http://www.w3.org/2000/svg",
3227
3229
  width: "20",
3228
3230
  height: "20",
3229
3231
  fill: "currentColor",
3230
3232
  viewBox: "0 0 256 256"
3231
3233
  }, [
3232
- R("path", { d: "M67.84,92.61,25.37,128l42.47,35.39a6,6,0,1,1-7.68,9.22l-48-40a6,6,0,0,1,0-9.22l48-40a6,6,0,0,1,7.68,9.22Zm176,30.78-48-40a6,6,0,1,0-7.68,9.22L230.63,128l-42.47,35.39a6,6,0,1,0,7.68,9.22l48-40a6,6,0,0,0,0-9.22Zm-81.79-89A6,6,0,0,0,154.36,38l-64,176A6,6,0,0,0,94,221.64a6.15,6.15,0,0,0,2,.36,6,6,0,0,0,5.64-3.95l64-176A6,6,0,0,0,162.05,34.36Z" })
3234
+ M("path", { d: "M67.84,92.61,25.37,128l42.47,35.39a6,6,0,1,1-7.68,9.22l-48-40a6,6,0,0,1,0-9.22l48-40a6,6,0,0,1,7.68,9.22Zm176,30.78-48-40a6,6,0,1,0-7.68,9.22L230.63,128l-42.47,35.39a6,6,0,1,0,7.68,9.22l48-40a6,6,0,0,0,0-9.22Zm-81.79-89A6,6,0,0,0,154.36,38l-64,176A6,6,0,0,0,94,221.64a6.15,6.15,0,0,0,2,.36,6,6,0,0,0,5.64-3.95l64-176A6,6,0,0,0,162.05,34.36Z" })
3233
3235
  ])
3234
3236
  ])
3235
3237
  ], -1)),
3236
- R("div", DL, [
3237
- R("div", kL, EA(r.value), 1),
3238
- R("div", bL, EA(h.value), 1)
3238
+ M("div", DL, [
3239
+ M("div", kL, EA(r.value), 1),
3240
+ M("div", bL, EA(h.value), 1)
3239
3241
  ])
3240
3242
  ]),
3241
- R("div", SL, [
3242
- R("button", {
3243
+ M("div", SL, [
3244
+ M("button", {
3243
3245
  type: "button",
3244
3246
  class: "artifact-download-btn",
3245
3247
  "data-testid": "artifact-block-download",
3246
3248
  "aria-label": `下载 ${r.value}`,
3247
3249
  onClick: Gr(C, ["stop"])
3248
3250
  }, [...f[1] || (f[1] = [
3249
- R("span", null, "下载", -1)
3251
+ M("span", null, "下载", -1)
3250
3252
  ])], 8, FL)
3251
3253
  ])
3252
3254
  ])
@@ -8073,26 +8075,26 @@ function DY(t, A, e, i, r) {
8073
8075
  }
8074
8076
  A: for (var D = 0; D < n.lines.length; D++) {
8075
8077
  for (var k = n.lines[D], b = 0, S = 0, x = 0; x < k.tokens.length; x++) {
8076
- var F = k.tokens[x], M = F.styleName && A.rich[F.styleName] || {}, T = F.textPadding = M.padding, H = T ? T[1] + T[3] : 0, U = F.font = M.font || A.font;
8078
+ var F = k.tokens[x], R = F.styleName && A.rich[F.styleName] || {}, T = F.textPadding = R.padding, H = T ? T[1] + T[3] : 0, U = F.font = R.font || A.font;
8077
8079
  F.contentHeight = nd(U);
8078
- var G = Ae(M.height, F.contentHeight);
8079
- if (F.innerHeight = G, T && (G += T[0] + T[2]), F.height = G, F.lineHeight = da(M.lineHeight, A.lineHeight, G), F.align = M && M.align || r, F.verticalAlign = M && M.verticalAlign || "middle", E && c != null && B + F.lineHeight > c) {
8080
+ var G = Ae(R.height, F.contentHeight);
8081
+ if (F.innerHeight = G, T && (G += T[0] + T[2]), F.height = G, F.lineHeight = da(R.lineHeight, A.lineHeight, G), F.align = R && R.align || r, F.verticalAlign = R && R.verticalAlign || "middle", E && c != null && B + F.lineHeight > c) {
8080
8082
  var z = n.lines.length;
8081
8083
  x > 0 ? (k.tokens = k.tokens.slice(0, x), y(k, S, b), n.lines = n.lines.slice(0, D + 1)) : n.lines = n.lines.slice(0, D), n.isTruncated = n.isTruncated || n.lines.length < z;
8082
8084
  break A;
8083
8085
  }
8084
- var AA = M.width, eA = AA == null || AA === "auto";
8086
+ var AA = R.width, eA = AA == null || AA === "auto";
8085
8087
  if (typeof AA == "string" && AA.charAt(AA.length - 1) === "%")
8086
8088
  F.percentWidth = AA, d.push(F), F.contentWidth = Qa(Ba(U), F.text);
8087
8089
  else {
8088
8090
  if (eA) {
8089
- var oA = M.backgroundColor, sA = oA && oA.image;
8091
+ var oA = R.backgroundColor, sA = oA && oA.image;
8090
8092
  sA && (sA = pY(sA), cd(sA) && (F.width = Math.max(F.width, sA.width * G / sA.height)));
8091
8093
  }
8092
8094
  var gA = p && l != null ? l - S : null;
8093
8095
  gA != null && gA < F.width ? !eA || gA < H ? (F.text = "", F.width = F.contentWidth = 0) : (EY(v, F.text, gA - H, U, A.ellipsis, { minChar: A.truncateMinChar }), F.text = v.text, n.isTruncated = n.isTruncated || v.isTruncated, F.width = F.contentWidth = Qa(Ba(U), F.text)) : F.contentWidth = Qa(Ba(U), F.text);
8094
8096
  }
8095
- F.width += H, S += F.width, M && (b = Math.max(b, F.lineHeight));
8097
+ F.width += H, S += F.width, R && (b = Math.max(b, F.lineHeight));
8096
8098
  }
8097
8099
  y(k, S, b);
8098
8100
  }
@@ -8535,8 +8537,8 @@ var kg = function() {
8535
8537
  break;
8536
8538
  }
8537
8539
  case Bt.A:
8538
- var D = A[h++], k = A[h++], b = A[h++], S = A[h++], x = A[h++], F = A[h++], M = F + x;
8539
- h += 1, C && (o = Ts(x) * b + D, s = Ys(x) * S + k), I = KB(b, S) * ZB(Mo, Math.abs(F)), n = Ts(M) * b + D, a = Ys(M) * S + k;
8540
+ var D = A[h++], k = A[h++], b = A[h++], S = A[h++], x = A[h++], F = A[h++], R = F + x;
8541
+ h += 1, C && (o = Ts(x) * b + D, s = Ys(x) * S + k), I = KB(b, S) * ZB(Mo, Math.abs(F)), n = Ts(R) * b + D, a = Ys(R) * S + k;
8540
8542
  break;
8541
8543
  case Bt.R: {
8542
8544
  o = n = A[h++], s = a = A[h++];
@@ -8583,31 +8585,31 @@ var kg = function() {
8583
8585
  break;
8584
8586
  }
8585
8587
  case Bt.C: {
8586
- var M = i[v++], T = i[v++], H = i[v++], U = i[v++], G = i[v++], z = i[v++];
8588
+ var R = i[v++], T = i[v++], H = i[v++], U = i[v++], G = i[v++], z = i[v++];
8587
8589
  if (u) {
8588
8590
  var S = C[d++];
8589
8591
  if (f + S > B) {
8590
8592
  var x = (B - f) / S;
8591
- _I(g, M, H, G, x, Gs), _I(l, T, U, z, x, Ls), A.bezierCurveTo(Gs[1], Ls[1], Gs[2], Ls[2], Gs[3], Ls[3]);
8593
+ _I(g, R, H, G, x, Gs), _I(l, T, U, z, x, Ls), A.bezierCurveTo(Gs[1], Ls[1], Gs[2], Ls[2], Gs[3], Ls[3]);
8592
8594
  break A;
8593
8595
  }
8594
8596
  f += S;
8595
8597
  }
8596
- A.bezierCurveTo(M, T, H, U, G, z), g = G, l = z;
8598
+ A.bezierCurveTo(R, T, H, U, G, z), g = G, l = z;
8597
8599
  break;
8598
8600
  }
8599
8601
  case Bt.Q: {
8600
- var M = i[v++], T = i[v++], H = i[v++], U = i[v++];
8602
+ var R = i[v++], T = i[v++], H = i[v++], U = i[v++];
8601
8603
  if (u) {
8602
8604
  var S = C[d++];
8603
8605
  if (f + S > B) {
8604
8606
  var x = (B - f) / S;
8605
- MI(g, M, H, x, Gs), MI(l, T, U, x, Ls), A.quadraticCurveTo(Gs[1], Ls[1], Gs[2], Ls[2]);
8607
+ MI(g, R, H, x, Gs), MI(l, T, U, x, Ls), A.quadraticCurveTo(Gs[1], Ls[1], Gs[2], Ls[2]);
8606
8608
  break A;
8607
8609
  }
8608
8610
  f += S;
8609
8611
  }
8610
- A.quadraticCurveTo(M, T, H, U), g = H, l = U;
8612
+ A.quadraticCurveTo(R, T, H, U), g = H, l = U;
8611
8613
  break;
8612
8614
  }
8613
8615
  case Bt.A:
@@ -9285,8 +9287,8 @@ var M2 = {
9285
9287
  }
9286
9288
  Q += d / 2, r && (B = J2(a, s, r), g === "top" ? Q += r[0] : g === "bottom" && (Q -= r[2]));
9287
9289
  for (var v = 0, y = !1, D = !1, k = U2("fill" in e ? e.fill : (D = !0, n.fill)), b = Y2("stroke" in e ? e.stroke : !u && (!n.autoStroke || D) ? (v = R2, y = !0, n.stroke) : null), S = e.textShadowBlur > 0, x = 0; x < f.length; x++) {
9288
- var F = this._getOrCreateChild(JI), M = F.createStyle();
9289
- F.useStyle(M), M.text = f[x], M.x = B, M.y = Q, M.textAlign = s, M.textBaseline = "middle", M.opacity = e.opacity, M.strokeFirst = !0, S && (M.shadowBlur = e.textShadowBlur || 0, M.shadowColor = e.textShadowColor || "transparent", M.shadowOffsetX = e.textShadowOffsetX || 0, M.shadowOffsetY = e.textShadowOffsetY || 0), M.stroke = b, M.fill = k, b && (M.lineWidth = e.lineWidth || v, M.lineDash = e.lineDash, M.lineDashOffset = e.lineDashOffset || 0), M.font = i, L2(M, e), Q += d, F.setBoundingRect(cE(M, c.contentWidth, c.calculatedLineHeight, y ? 0 : null));
9290
+ var F = this._getOrCreateChild(JI), R = F.createStyle();
9291
+ F.useStyle(R), R.text = f[x], R.x = B, R.y = Q, R.textAlign = s, R.textBaseline = "middle", R.opacity = e.opacity, R.strokeFirst = !0, S && (R.shadowBlur = e.textShadowBlur || 0, R.shadowColor = e.textShadowColor || "transparent", R.shadowOffsetX = e.textShadowOffsetX || 0, R.shadowOffsetY = e.textShadowOffsetY || 0), R.stroke = b, R.fill = k, b && (R.lineWidth = e.lineWidth || v, R.lineDash = e.lineDash, R.lineDashOffset = e.lineDashOffset || 0), R.font = i, L2(R, e), Q += d, F.setBoundingRect(cE(R, c.contentWidth, c.calculatedLineHeight, y ? 0 : null));
9290
9292
  }
9291
9293
  }, A.prototype._updateRichTexts = function() {
9292
9294
  var e = this.style, i = this._defaultStyle, r = e.align || i.align, n = e.verticalAlign || i.verticalAlign, a = e.x || 0, o = e.y || 0;
@@ -9298,12 +9300,12 @@ var M2 = {
9298
9300
  var B = f + l;
9299
9301
  VB(e) && this._renderBackground(e, e, C, I, c, h);
9300
9302
  for (var Q = !!e.backgroundColor, p = 0; p < g.lines.length; p++) {
9301
- for (var E = g.lines[p], v = E.tokens, y = v.length, D = E.lineHeight, k = E.width, b = 0, S = f, x = B, F = y - 1, M = void 0; b < y && (M = v[b], !M.align || M.align === "left"); )
9302
- this._placeToken(M, e, D, d, S, "left", Q), k -= M.width, S += M.width, b++;
9303
- for (; F >= 0 && (M = v[F], M.align === "right"); )
9304
- this._placeToken(M, e, D, d, x, "right", Q), k -= M.width, x -= M.width, F--;
9303
+ for (var E = g.lines[p], v = E.tokens, y = v.length, D = E.lineHeight, k = E.width, b = 0, S = f, x = B, F = y - 1, R = void 0; b < y && (R = v[b], !R.align || R.align === "left"); )
9304
+ this._placeToken(R, e, D, d, S, "left", Q), k -= R.width, S += R.width, b++;
9305
+ for (; F >= 0 && (R = v[F], R.align === "right"); )
9306
+ this._placeToken(R, e, D, d, x, "right", Q), k -= R.width, x -= R.width, F--;
9305
9307
  for (S += (l - (S - f) - (B - x) - k) / 2; b <= F; )
9306
- M = v[b], this._placeToken(M, e, D, d, S + M.width / 2, "center", Q), S += M.width, b++;
9308
+ R = v[b], this._placeToken(R, e, D, d, S + R.width / 2, "center", Q), S += R.width, b++;
9307
9309
  d += D;
9308
9310
  }
9309
9311
  }, A.prototype._placeToken = function(e, i, r, n, a, o, s) {
@@ -9997,8 +9999,8 @@ function UU(t, A, e, i, r, n, a, o) {
9997
9999
  return h = (l * (A - n) - c * (t - r)) / h, [t + h * s, A + h * g];
9998
10000
  }
9999
10001
  function Gh(t, A, e, i, r, n, a) {
10000
- var o = t - e, s = A - i, g = (a ? n : -n) / A0(o * o + s * s), l = g * s, c = -g * o, h = t + l, u = A + c, C = e + l, I = i + c, f = (h + C) / 2, d = (u + I) / 2, B = C - h, Q = I - u, p = B * B + Q * Q, E = r - n, v = h * I - C * u, y = (Q < 0 ? -1 : 1) * A0(xu(0, E * E * p - v * v)), D = (v * Q - B * y) / p, k = (-v * B - Q * y) / p, b = (v * Q + B * y) / p, S = (-v * B + Q * y) / p, x = D - f, F = k - d, M = b - f, T = S - d;
10001
- return x * x + F * F > M * M + T * T && (D = b, k = S), {
10002
+ var o = t - e, s = A - i, g = (a ? n : -n) / A0(o * o + s * s), l = g * s, c = -g * o, h = t + l, u = A + c, C = e + l, I = i + c, f = (h + C) / 2, d = (u + I) / 2, B = C - h, Q = I - u, p = B * B + Q * Q, E = r - n, v = h * I - C * u, y = (Q < 0 ? -1 : 1) * A0(xu(0, E * E * p - v * v)), D = (v * Q - B * y) / p, k = (-v * B - Q * y) / p, b = (v * Q + B * y) / p, S = (-v * B + Q * y) / p, x = D - f, F = k - d, R = b - f, T = S - d;
10003
+ return x * x + F * F > R * R + T * T && (D = b, k = S), {
10002
10004
  cx: D,
10003
10005
  cy: k,
10004
10006
  x0: -l,
@@ -10033,13 +10035,13 @@ function OU(t, A) {
10033
10035
  else if (u > jB - Yn)
10034
10036
  t.moveTo(l + i * il(s), c + i * Os(s)), t.arc(l, c, i, s, g, !h), r > Yn && (t.moveTo(l + r * il(g), c + r * Os(g)), t.arc(l, c, r, g, s, h));
10035
10037
  else {
10036
- var I = void 0, f = void 0, d = void 0, B = void 0, Q = void 0, p = void 0, E = void 0, v = void 0, y = void 0, D = void 0, k = void 0, b = void 0, S = void 0, x = void 0, F = void 0, M = void 0, T = i * il(s), H = i * Os(s), U = r * il(g), G = r * Os(g), z = u > Yn;
10038
+ var I = void 0, f = void 0, d = void 0, B = void 0, Q = void 0, p = void 0, E = void 0, v = void 0, y = void 0, D = void 0, k = void 0, b = void 0, S = void 0, x = void 0, F = void 0, R = void 0, T = i * il(s), H = i * Os(s), U = r * il(g), G = r * Os(g), z = u > Yn;
10037
10039
  if (z) {
10038
10040
  var AA = A.cornerRadius;
10039
10041
  AA && (e = JU(AA), I = e[0], f = e[1], d = e[2], B = e[3]);
10040
10042
  var eA = tw(i - r) / 2;
10041
- if (Q = ra(eA, d), p = ra(eA, B), E = ra(eA, I), v = ra(eA, f), k = y = xu(Q, p), b = D = xu(E, v), (y > Yn || D > Yn) && (S = i * il(g), x = i * Os(g), F = r * il(s), M = r * Os(s), u < rF)) {
10042
- var oA = UU(T, H, F, M, S, x, U, G);
10043
+ if (Q = ra(eA, d), p = ra(eA, B), E = ra(eA, I), v = ra(eA, f), k = y = xu(Q, p), b = D = xu(E, v), (y > Yn || D > Yn) && (S = i * il(g), x = i * Os(g), F = r * il(s), R = r * Os(s), u < rF)) {
10044
+ var oA = UU(T, H, F, R, S, x, U, G);
10043
10045
  if (oA) {
10044
10046
  var sA = T - oA[0], gA = H - oA[1], IA = S - oA[0], LA = x - oA[1], te = 1 / Os(YU((sA * IA + gA * LA) / (A0(sA * sA + gA * gA) * A0(IA * IA + LA * LA))) / 2), XA = A0(oA[0] * oA[0] + oA[1] * oA[1]);
10045
10047
  k = ra(y, (i - XA) / (te + 1)), b = ra(D, (r - XA) / (te - 1));
@@ -10049,14 +10051,14 @@ function OU(t, A) {
10049
10051
  if (!z)
10050
10052
  t.moveTo(l + T, c + H);
10051
10053
  else if (k > Yn) {
10052
- var ie = ra(d, k), nA = ra(B, k), yA = Gh(F, M, T, H, i, ie, h), YA = Gh(S, x, U, G, i, nA, h);
10054
+ var ie = ra(d, k), nA = ra(B, k), yA = Gh(F, R, T, H, i, ie, h), YA = Gh(S, x, U, G, i, nA, h);
10053
10055
  t.moveTo(l + yA.cx + yA.x0, c + yA.cy + yA.y0), k < y && ie === nA ? t.arc(l + yA.cx, c + yA.cy, k, or(yA.y0, yA.x0), or(YA.y0, YA.x0), !h) : (ie > 0 && t.arc(l + yA.cx, c + yA.cy, ie, or(yA.y0, yA.x0), or(yA.y1, yA.x1), !h), t.arc(l, c, i, or(yA.cy + yA.y1, yA.cx + yA.x1), or(YA.cy + YA.y1, YA.cx + YA.x1), !h), nA > 0 && t.arc(l + YA.cx, c + YA.cy, nA, or(YA.y1, YA.x1), or(YA.y0, YA.x0), !h));
10054
10056
  } else
10055
10057
  t.moveTo(l + T, c + H), t.arc(l, c, i, s, g, !h);
10056
10058
  if (!(r > Yn) || !z)
10057
10059
  t.lineTo(l + U, c + G);
10058
10060
  else if (b > Yn) {
10059
- var ie = ra(I, b), nA = ra(f, b), yA = Gh(U, G, S, x, r, -nA, h), YA = Gh(T, H, F, M, r, -ie, h);
10061
+ var ie = ra(I, b), nA = ra(f, b), yA = Gh(U, G, S, x, r, -nA, h), YA = Gh(T, H, F, R, r, -ie, h);
10060
10062
  t.lineTo(l + yA.cx + yA.x0, c + yA.cy + yA.y0), b < D && ie === nA ? t.arc(l + yA.cx, c + yA.cy, b, or(yA.y0, yA.x0), or(YA.y0, YA.x0), !h) : (nA > 0 && t.arc(l + yA.cx, c + yA.cy, nA, or(yA.y0, yA.x0), or(yA.y1, yA.x1), !h), t.arc(l, c, r, or(yA.cy + yA.y1, yA.cx + yA.x1), or(YA.cy + YA.y1, YA.cx + YA.x1), h), ie > 0 && t.arc(l + YA.cx, c + YA.cy, ie, or(YA.y1, YA.x1), or(YA.y0, YA.x0), !h));
10061
10063
  } else
10062
10064
  t.lineTo(l + U, c + G), t.arc(l, c, r, g, s, h);
@@ -16250,9 +16252,9 @@ function YE(t, A) {
16250
16252
  function k() {
16251
16253
  for (var S = 1, x = 0, F = Q.length; x < F; ++x)
16252
16254
  S = B2(S, Q[x]);
16253
- for (var M = 1, x = 0, F = B.length; x < F; ++x)
16254
- M = B2(M, B[x].length);
16255
- S *= M;
16255
+ for (var R = 1, x = 0, F = B.length; x < F; ++x)
16256
+ R = B2(R, B[x].length);
16257
+ S *= R;
16256
16258
  var T = p * Q.length * B.length;
16257
16259
  if (process.env.NODE_ENV !== "production") {
16258
16260
  var H = function(U) {
@@ -16271,22 +16273,22 @@ function YE(t, A) {
16271
16273
  S += d[x];
16272
16274
  if (S <= 0)
16273
16275
  return;
16274
- for (var F = -p, M = 0, T = 0, H = 0; F < y.height; ) {
16275
- if (M % 2 === 0) {
16276
+ for (var F = -p, R = 0, T = 0, H = 0; F < y.height; ) {
16277
+ if (R % 2 === 0) {
16276
16278
  for (var U = T / 2 % B.length, G = 0, z = 0, AA = 0; G < y.width * 2; ) {
16277
16279
  for (var eA = 0, x = 0; x < f[H].length; ++x)
16278
16280
  eA += f[H][x];
16279
16281
  if (eA <= 0)
16280
16282
  break;
16281
16283
  if (z % 2 === 0) {
16282
- var oA = (1 - a.symbolSize) * 0.5, sA = G + f[H][z] * oA, gA = F + d[M] * oA, IA = f[H][z] * a.symbolSize, LA = d[M] * a.symbolSize, te = AA / 2 % B[U].length;
16284
+ var oA = (1 - a.symbolSize) * 0.5, sA = G + f[H][z] * oA, gA = F + d[R] * oA, IA = f[H][z] * a.symbolSize, LA = d[R] * a.symbolSize, te = AA / 2 % B[U].length;
16283
16285
  XA(sA, gA, IA, LA, B[U][te]);
16284
16286
  }
16285
16287
  G += f[H][z], ++AA, ++z, z === f[H].length && (z = 0);
16286
16288
  }
16287
16289
  ++H, H === f.length && (H = 0);
16288
16290
  }
16289
- F += d[M], ++T, ++M, M === d.length && (M = 0);
16291
+ F += d[R], ++T, ++R, R === d.length && (R = 0);
16290
16292
  }
16291
16293
  function XA(ie, nA, yA, YA, me) {
16292
16294
  var fe = r ? 1 : e, tt = en(me, ie * fe, nA * fe, yA * fe, YA * fe, a.color, a.symbolKeepAspect);
@@ -17023,10 +17025,10 @@ var zs, CQ, zh, _a, Xh, IQ, fQ, ol, sl, hD, CD, dQ, ID, jh, fD, UN, cn, dD, gl,
17023
17025
  } : D = y[0], this[fi] = !1, !h) {
17024
17026
  var F = void 0;
17025
17027
  if (d.refineEvent) {
17026
- var M = d.refineEvent(k, c, C, this._api).eventContent;
17027
- BA(zA(M)), F = He({
17028
+ var R = d.refineEvent(k, c, C, this._api).eventContent;
17029
+ BA(zA(R)), F = He({
17028
17030
  type: d.refinedEventType
17029
- }, M), F.fromAction = c.type, F.fromActionPayload = c, F.escapeConnect = !0;
17031
+ }, R), F.fromAction = c.type, F.fromActionPayload = c, F.escapeConnect = !0;
17030
17032
  }
17031
17033
  var T = this._messageCenter;
17032
17034
  T.trigger(D.type, D), F && T.trigger(F.type, F);
@@ -17963,8 +17965,8 @@ function r1(t, A) {
17963
17965
  if (b < 0) {
17964
17966
  var S = i[k], x = zA(S) ? S : {
17965
17967
  name: S
17966
- }, F = new cI(), M = x.name;
17967
- M != null && g.get(M) != null && (F.name = F.displayName = M), x.type != null && (F.type = x.type), x.displayName != null && (F.displayName = x.displayName);
17968
+ }, F = new cI(), R = x.name;
17969
+ R != null && g.get(R) != null && (F.name = F.displayName = R), x.type != null && (F.type = x.type), x.displayName != null && (F.displayName = x.displayName);
17968
17970
  var T = n.length;
17969
17971
  return h[k] = T, F.storeDimIndex = k, n.push(F), F;
17970
17972
  }
@@ -17980,9 +17982,9 @@ function r1(t, A) {
17980
17982
  return;
17981
17983
  }
17982
17984
  var x = c.set(b, []);
17983
- L(S, function(F, M) {
17985
+ L(S, function(F, R) {
17984
17986
  var T = qA(F) ? g.get(F) : F;
17985
- T != null && T < a && (x[M] = T, f(C(T), b, M));
17987
+ T != null && T < a && (x[R] = T, f(C(T), b, R));
17986
17988
  });
17987
17989
  });
17988
17990
  var I = 0;
@@ -17992,8 +17994,8 @@ function r1(t, A) {
17992
17994
  b = k, F = {};
17993
17995
  else {
17994
17996
  F = k, b = F.name;
17995
- var M = F.ordinalMeta;
17996
- F.ordinalMeta = null, F = kA({}, F), F.ordinalMeta = M, S = F.dimsDef, x = F.otherDims, F.name = F.coordDim = F.coordDimIndex = F.dimsDef = F.otherDims = null;
17997
+ var R = F.ordinalMeta;
17998
+ F.ordinalMeta = null, F = kA({}, F), F.ordinalMeta = R, S = F.dimsDef, x = F.otherDims, F.name = F.coordDim = F.coordDimIndex = F.dimsDef = F.otherDims = null;
17997
17999
  }
17998
18000
  var T = c.get(b);
17999
18001
  if (T !== !1) {
@@ -18832,13 +18834,13 @@ function UK(t, A, e, i, r, n) {
18832
18834
  um(D, aY, null), D.sort(function(H, U) {
18833
18835
  return H.value - U.value;
18834
18836
  });
18835
- var x = D[0], F = D[D.length - 1], M = aI(i[0], e), T = aI(i[1], e);
18837
+ var x = D[0], F = D[D.length - 1], R = aI(i[0], e), T = aI(i[1], e);
18836
18838
  return (!x || x.value > i[0]) && D.unshift({
18837
18839
  value: i[0],
18838
18840
  time: {
18839
18841
  level: 0,
18840
- upperTimeUnit: M,
18841
- lowerTimeUnit: M
18842
+ upperTimeUnit: R,
18843
+ lowerTimeUnit: R
18842
18844
  },
18843
18845
  notNice: !0
18844
18846
  }), (!F || F.value < i[1]) && D.push({
@@ -20009,15 +20011,15 @@ function Wq(t, A, e, i, r) {
20009
20011
  k.push(F), b += F;
20010
20012
  }
20011
20013
  if (b) {
20012
- var M = Math.min(Math.abs(y) / b, D);
20014
+ var R = Math.min(Math.abs(y) / b, D);
20013
20015
  if (y > 0)
20014
20016
  for (var S = 0; S < n - 1; S++) {
20015
- var T = k[S] * M;
20017
+ var T = k[S] * R;
20016
20018
  p(T, 0, S + 1);
20017
20019
  }
20018
20020
  else
20019
20021
  for (var S = n - 1; S > 0; S--) {
20020
- var T = k[S - 1] * M;
20022
+ var T = k[S - 1] * R;
20021
20023
  p(-T, S, n);
20022
20024
  }
20023
20025
  }
@@ -20372,17 +20374,17 @@ var BP = oe({
20372
20374
  });
20373
20375
  let E;
20374
20376
  function v(x) {
20375
- const F = {}, M = ((x == null ? void 0 : x.replaceMerge) ?? []).filter((T) => T != null);
20376
- return M.length > 0 && (F.replaceMerge = [...new Set(M)]), (x == null ? void 0 : x.notMerge) !== void 0 && (F.notMerge = x.notMerge), F;
20377
+ const F = {}, R = ((x == null ? void 0 : x.replaceMerge) ?? []).filter((T) => T != null);
20378
+ return R.length > 0 && (F.replaceMerge = [...new Set(R)]), (x == null ? void 0 : x.notMerge) !== void 0 && (F.notMerge = x.notMerge), F;
20377
20379
  }
20378
- function y(x, F, M, T = !1) {
20380
+ function y(x, F, R, T = !1) {
20379
20381
  const H = p(F);
20380
20382
  if (T) {
20381
- x.setOption(H, M ?? {}), E = void 0;
20383
+ x.setOption(H, R ?? {}), E = void 0;
20382
20384
  return;
20383
20385
  }
20384
20386
  if (I.value) {
20385
- const z = M ?? I.value;
20387
+ const z = R ?? I.value;
20386
20388
  x.setOption(H, z), E = void 0;
20387
20389
  return;
20388
20390
  }
@@ -20395,12 +20397,12 @@ var BP = oe({
20395
20397
  d[H] = A[x];
20396
20398
  return;
20397
20399
  }
20398
- let F = x.charAt(2).toLowerCase() + x.slice(3), M;
20399
- F.indexOf("zr:") === 0 && (M = !0, F = F.substring(3));
20400
+ let F = x.charAt(2).toLowerCase() + x.slice(3), R;
20401
+ F.indexOf("zr:") === 0 && (R = !0, F = F.substring(3));
20400
20402
  let T;
20401
20403
  F.substring(F.length - 4) === "Once" && (T = !0, F = F.substring(0, F.length - 4)), B.set({
20402
20404
  event: F,
20403
- zr: M,
20405
+ zr: R,
20404
20406
  once: T
20405
20407
  }, A[x]);
20406
20408
  });
@@ -20422,7 +20424,7 @@ var BP = oe({
20422
20424
  function F() {
20423
20425
  x && !x.isDisposed() && x.resize();
20424
20426
  }
20425
- function M() {
20427
+ function R() {
20426
20428
  const { option: T } = t;
20427
20429
  if (l.value) {
20428
20430
  T && y(x, T, void 0, !0);
@@ -20431,17 +20433,17 @@ var BP = oe({
20431
20433
  T && y(x, T);
20432
20434
  }
20433
20435
  g.value ? Te(() => {
20434
- F(), M();
20435
- }) : M();
20436
+ F(), R();
20437
+ }) : R();
20436
20438
  }
20437
- const k = (x, F, M) => {
20439
+ const k = (x, F, R) => {
20438
20440
  if (!t.manualUpdate) {
20439
20441
  zE("`setOption` is only available when `manual-update` is `true`.");
20440
20442
  return;
20441
20443
  }
20442
20444
  const T = typeof F == "boolean" ? {
20443
20445
  notMerge: F,
20444
- lazyUpdate: M
20446
+ lazyUpdate: R
20445
20447
  } : F;
20446
20448
  n.value && y(n.value, x, T ?? void 0, !0);
20447
20449
  };
@@ -20495,7 +20497,7 @@ const pP = {
20495
20497
  },
20496
20498
  setup(t) {
20497
20499
  return (A, e) => (Y(), P("div", pP, [
20498
- e[0] || (e[0] = R("svg", {
20500
+ e[0] || (e[0] = M("svg", {
20499
20501
  xmlns: "http://www.w3.org/2000/svg",
20500
20502
  width: "20",
20501
20503
  height: "20",
@@ -20503,9 +20505,9 @@ const pP = {
20503
20505
  fill: "currentColor",
20504
20506
  "aria-hidden": "true"
20505
20507
  }, [
20506
- R("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z" })
20508
+ M("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z" })
20507
20509
  ], -1)),
20508
- R("span", EP, EA(t.message || "图表渲染失败"), 1)
20510
+ M("span", EP, EA(t.message || "图表渲染失败"), 1)
20509
20511
  ]));
20510
20512
  }
20511
20513
  }), mP = /* @__PURE__ */ Me(vP, [["__scopeId", "data-v-c9740d87"]]), yP = {
@@ -20557,7 +20559,7 @@ const pP = {
20557
20559
  setup(t) {
20558
20560
  return (A, e) => (Y(), P("div", yP, [
20559
20561
  (Y(), P("svg", wP, [
20560
- t.type === "bar" ? (Y(), P(Ge, { key: 0 }, Qt([40, 70, 55, 90, 65], (i, r) => R("rect", {
20562
+ t.type === "bar" ? (Y(), P(Ge, { key: 0 }, Qt([40, 70, 55, 90, 65], (i, r) => M("rect", {
20561
20563
  key: r,
20562
20564
  x: 20 + r * 40,
20563
20565
  y: 130 - i,
@@ -20572,12 +20574,12 @@ const pP = {
20572
20574
  [160, 90],
20573
20575
  [195, 40],
20574
20576
  [210, 100]
20575
- ], (i, r) => R("circle", {
20577
+ ], (i, r) => M("circle", {
20576
20578
  key: r,
20577
20579
  cx: i[0],
20578
20580
  cy: i[1],
20579
20581
  r: "6"
20580
- }, null, 8, FP)), 64)) : t.type === "heatmap" ? (Y(), P(Ge, { key: 5 }, Qt(24, (i) => R("rect", {
20582
+ }, null, 8, FP)), 64)) : t.type === "heatmap" ? (Y(), P(Ge, { key: 5 }, Qt(24, (i) => M("rect", {
20581
20583
  key: i,
20582
20584
  x: 20 + i % 6 * 34,
20583
20585
  y: 16 + Math.floor(i / 6) * 30,
@@ -20801,8 +20803,8 @@ var h1 = (
20801
20803
  this._sizeX = r[0] / 2, this._sizeY = r[1] / 2;
20802
20804
  var F = o.ensureState("emphasis");
20803
20805
  F.style = g, o.ensureState("select").style = c, o.ensureState("blur").style = l;
20804
- var M = f == null || f === !0 ? Math.max(1.1, 3 / this._sizeY) : isFinite(f) && f > 0 ? +f : 1;
20805
- F.scaleX = this._sizeX * M, F.scaleY = this._sizeY * M, this.setSymbolScale(1), Zn(this, h, u, C);
20806
+ var R = f == null || f === !0 ? Math.max(1.1, 3 / this._sizeY) : isFinite(f) && f > 0 ? +f : 1;
20807
+ F.scaleX = this._sizeX * R, F.scaleY = this._sizeY * R, this.setSymbolScale(1), Zn(this, h, u, C);
20806
20808
  }, A.prototype.setSymbolScale = function(e) {
20807
20809
  this.scaleX = this.scaleY = e;
20808
20810
  }, A.prototype.fadeOut = function(e, i, r) {
@@ -21035,8 +21037,8 @@ function OP(t, A, e, i, r, n, a, o) {
21035
21037
  (isNaN(D) || isNaN(k)) && (D = b, k = S), g.push(D, k), l.push(b, S), c.push(e[v], e[v + 1]), h.push(i[y], i[y + 1]), I.push(A.getRawIndex(p.idx1));
21036
21038
  break;
21037
21039
  case "+":
21038
- var x = p.idx, F = f.dataDimsForPoint, M = r.dataToPoint([A.get(F[0], x), A.get(F[1], x)]);
21039
- y = x * 2, g.push(M[0], M[1]), l.push(B[y], B[y + 1]);
21040
+ var x = p.idx, F = f.dataDimsForPoint, R = r.dataToPoint([A.get(F[0], x), A.get(F[1], x)]);
21041
+ y = x * 2, g.push(R[0], R[1]), l.push(B[y], B[y + 1]);
21040
21042
  var T = Yx(f, r, A, x);
21041
21043
  c.push(T[0], T[1]), h.push(i[y], i[y + 1]), I.push(A.getRawIndex(x));
21042
21044
  break;
@@ -21093,9 +21095,9 @@ function jE(t, A, e, i, r, n, a, o, s) {
21093
21095
  u = d, C = B;
21094
21096
  else {
21095
21097
  b = v - g, S = y - l;
21096
- var M = d - g, T = v - d, H = B - l, U = y - B, G = void 0, z = void 0;
21098
+ var R = d - g, T = v - d, H = B - l, U = y - B, G = void 0, z = void 0;
21097
21099
  if (o === "x") {
21098
- G = Math.abs(M), z = Math.abs(T);
21100
+ G = Math.abs(R), z = Math.abs(T);
21099
21101
  var AA = b > 0 ? 1 : -1;
21100
21102
  u = d - AA * G * a, C = B, x = d + AA * z * a, F = B;
21101
21103
  } else if (o === "y") {
@@ -21103,7 +21105,7 @@ function jE(t, A, e, i, r, n, a, o, s) {
21103
21105
  var eA = S > 0 ? 1 : -1;
21104
21106
  u = d, C = B - eA * G * a, x = d, F = B + eA * z * a;
21105
21107
  } else
21106
- G = Math.sqrt(M * M + H * H), z = Math.sqrt(T * T + U * U), k = z / (z + G), u = d - b * a * (1 - k), C = B - S * a * (1 - k), x = d + b * a * k, F = B + S * a * k, x = bo(x, So(v, d)), F = bo(F, So(y, B)), x = So(x, bo(v, d)), F = So(F, bo(y, B)), b = x - d, S = F - B, u = d - b * G / z, C = B - S * G / z, u = bo(u, So(g, d)), C = bo(C, So(l, B)), u = So(u, bo(g, d)), C = So(C, bo(l, B)), b = d - u, S = B - C, x = d + b * z / G, F = B + S * z / G;
21108
+ G = Math.sqrt(R * R + H * H), z = Math.sqrt(T * T + U * U), k = z / (z + G), u = d - b * a * (1 - k), C = B - S * a * (1 - k), x = d + b * a * k, F = B + S * a * k, x = bo(x, So(v, d)), F = bo(F, So(y, B)), x = So(x, bo(v, d)), F = So(F, bo(y, B)), b = x - d, S = F - B, u = d - b * G / z, C = B - S * G / z, u = bo(u, So(g, d)), C = bo(C, So(l, B)), u = So(u, bo(g, d)), C = So(C, bo(l, B)), b = d - u, S = B - C, x = d + b * z / G, F = B + S * z / G;
21107
21109
  }
21108
21110
  t.bezierCurveTo(c, h, u, C, d, B), c = x, h = F;
21109
21111
  } else
@@ -21532,9 +21534,9 @@ var iW = (
21532
21534
  B && !I ? I = this._newPolygon(l, E) : I && !B && (f.remove(I), I = this._polygon = null), c || this._initOrUpdateEndLabel(e, n, Sg(x));
21533
21535
  var F = f.getClipPath();
21534
21536
  if (F) {
21535
- var M = wQ(this, n, !1, e);
21537
+ var R = wQ(this, n, !1, e);
21536
21538
  Oi(F, {
21537
- shape: M.shape
21539
+ shape: R.shape
21538
21540
  }, e);
21539
21541
  } else
21540
21542
  f.setClipPath(wQ(this, n, !0, e));
@@ -21731,8 +21733,8 @@ var iW = (
21731
21733
  x: x[0] + E,
21732
21734
  y: x[1] + v
21733
21735
  });
21734
- var F = h.getRawValue(k[0]), M = h.getRawValue(k[1]);
21735
- a && (S = D5(r, C, F, M, D.t));
21736
+ var F = h.getRawValue(k[0]), R = h.getRawValue(k[1]);
21737
+ a && (S = D5(r, C, F, R, D.t));
21736
21738
  }
21737
21739
  n.lastFrameIndex = k[0];
21738
21740
  } else {
@@ -22175,7 +22177,7 @@ var ja = (
22175
22177
  F.targetType = "axisName", F.name = l, Ke(x).eventData = F;
22176
22178
  }
22177
22179
  n.add(x), x.updateTransform(), A.nameEl = x;
22178
- var M = s.nameLayout = ss({
22180
+ var R = s.nameLayout = ss({
22179
22181
  label: x,
22180
22182
  priority: x.z2,
22181
22183
  defaultAttr: {
@@ -22183,9 +22185,9 @@ var ja = (
22183
22185
  },
22184
22186
  marginDefault: Ic(c) ? lW[S] : cW[S]
22185
22187
  });
22186
- if (s.nameLocation = c, r.add(x), x.decomposeTransform(), t.shouldNameMoveOverlap && M) {
22188
+ if (s.nameLocation = c, r.add(x), x.decomposeTransform(), t.shouldNameMoveOverlap && R) {
22187
22189
  var T = e.ensureRecord(i);
22188
- process.env.NODE_ENV !== "production" && BA(T.labelInfoList), e.resolveAxisNameOverlap(t, e, i, M, B, T);
22190
+ process.env.NODE_ENV !== "production" && BA(T.labelInfoList), e.resolveAxisNameOverlap(t, e, i, R, B, T);
22189
22191
  }
22190
22192
  }
22191
22193
  }
@@ -22343,7 +22345,7 @@ function pW(t, A, e, i, r, n) {
22343
22345
  var x = C[S];
22344
22346
  zA(x) && x.textStyle && (b = new Ut(x.textStyle, l, r.ecModel));
22345
22347
  }
22346
- var F = b.getTextColor() || r.get(["axisLine", "lineStyle", "color"]), M = b.getShallow("align", !0) || u.textAlign, T = Ae(b.getShallow("alignMinLabel", !0), M), H = Ae(b.getShallow("alignMaxLabel", !0), M), U = b.getShallow("verticalAlign", !0) || b.getShallow("baseline", !0) || u.textVerticalAlign, G = Ae(b.getShallow("verticalAlignMinLabel", !0), U), z = Ae(b.getShallow("verticalAlignMaxLabel", !0), U), AA = 10 + (((v = y.time) === null || v === void 0 ? void 0 : v.level) || 0);
22348
+ var F = b.getTextColor() || r.get(["axisLine", "lineStyle", "color"]), R = b.getShallow("align", !0) || u.textAlign, T = Ae(b.getShallow("alignMinLabel", !0), R), H = Ae(b.getShallow("alignMaxLabel", !0), R), U = b.getShallow("verticalAlign", !0) || b.getShallow("baseline", !0) || u.textVerticalAlign, G = Ae(b.getShallow("verticalAlignMinLabel", !0), U), z = Ae(b.getShallow("verticalAlignMaxLabel", !0), U), AA = 10 + (((v = y.time) === null || v === void 0 ? void 0 : v.level) || 0);
22347
22349
  d = Math.min(d, AA), B = Math.max(B, AA);
22348
22350
  var eA = new Rt({
22349
22351
  // --- transform props start ---
@@ -22358,7 +22360,7 @@ function pW(t, A, e, i, r, n) {
22358
22360
  z2: AA,
22359
22361
  style: Xi(b, {
22360
22362
  text: D,
22361
- align: E === 0 ? T : E === c.length - 1 ? H : M,
22363
+ align: E === 0 ? T : E === c.length - 1 ? H : R,
22362
22364
  verticalAlign: E === 0 ? G : E === c.length - 1 ? z : U,
22363
22365
  fill: Ie(F) ? F(
22364
22366
  // (1) In category axis with data zoom, tick is not the original
@@ -22731,14 +22733,14 @@ function JW(t) {
22731
22733
  return {
22732
22734
  progress: function(Q, p) {
22733
22735
  for (var E = Q.count, v = C && qa(E * 3), y = C && s && qa(E * 3), D = C && qa(E), k = i.master.getRect(), b = h ? k.width : k.height, S, x = p.getStore(), F = 0; (S = Q.next()) != null; ) {
22734
- var M = x.get(c ? f : a, S), T = x.get(o, S), H = u, U = void 0;
22735
- c && (U = +M - x.get(a, S));
22736
+ var R = x.get(c ? f : a, S), T = x.get(o, S), H = u, U = void 0;
22737
+ c && (U = +R - x.get(a, S));
22736
22738
  var G = void 0, z = void 0, AA = void 0, eA = void 0;
22737
22739
  if (h) {
22738
- var oA = i.dataToPoint([M, T]);
22740
+ var oA = i.dataToPoint([R, T]);
22739
22741
  c && (H = i.dataToPoint([U, T])[0]), G = H, z = oA[1] + B, AA = oA[0] - H, eA = d, si(AA) < I && (AA = (AA < 0 ? -1 : 1) * I);
22740
22742
  } else {
22741
- var oA = i.dataToPoint([T, M]);
22743
+ var oA = i.dataToPoint([T, R]);
22742
22744
  c && (H = i.dataToPoint([T, U])[1]), G = oA[0] + B, z = H, AA = d, eA = oA[1] - H, si(eA) < I && (eA = (eA <= 0 ? -1 : 1) * I);
22743
22745
  }
22744
22746
  C ? (v[F] = G, v[F + 1] = z, v[F + 2] = h ? AA : eA, y && (y[F] = h ? k.x : G, y[F + 1] = h ? z : k.y, y[F + 2] = b), D[S] = S) : p.setItemLayout(S, {
@@ -23061,18 +23063,18 @@ var DQ = Math.max, kQ = Math.min, WW = (
23061
23063
  o.diff(s).add(function(S) {
23062
23064
  var x = o.getItemModel(S), F = sC[g.type](o, S, x);
23063
23065
  if (F && (d && D(S), !(!o.hasValue(S) || !i4[g.type](F)))) {
23064
- var M = !1;
23065
- C && (M = $D[g.type](I, F));
23066
+ var R = !1;
23067
+ C && (R = $D[g.type](I, F));
23066
23068
  var T = A4[g.type](e, o, S, F, c, h, l.model, !1, f);
23067
23069
  u && (T.forceLabelAnimation = !0), r4(T, o, S, x, F, e, c, g.type === "polar"), v ? T.attr({
23068
23070
  shape: F
23069
23071
  }) : u ? e4(u, h, T, F, S, c, !1, !1) : Oi(T, {
23070
23072
  shape: F
23071
- }, e, S), o.setItemGraphicEl(S, T), a.add(T), T.ignore = M;
23073
+ }, e, S), o.setItemGraphicEl(S, T), a.add(T), T.ignore = R;
23072
23074
  }
23073
23075
  }).update(function(S, x) {
23074
- var F = o.getItemModel(S), M = sC[g.type](o, S, F);
23075
- if (M) {
23076
+ var F = o.getItemModel(S), R = sC[g.type](o, S, F);
23077
+ if (R) {
23076
23078
  if (d) {
23077
23079
  var T = void 0;
23078
23080
  E.length === 0 ? T = D(x) : (T = E[x], T.useStyle(B.getItemStyle()), g.type === "cartesian2d" ? T.setShape("r", Q) : T.setShape("cornerRadius", Q), p[S] = T);
@@ -23082,25 +23084,25 @@ var DQ = Math.max, kQ = Math.min, WW = (
23082
23084
  }, h, S);
23083
23085
  }
23084
23086
  var G = s.getItemGraphicEl(x);
23085
- if (!o.hasValue(S) || !i4[g.type](M)) {
23087
+ if (!o.hasValue(S) || !i4[g.type](R)) {
23086
23088
  a.remove(G);
23087
23089
  return;
23088
23090
  }
23089
23091
  var z = !1;
23090
- C && (z = $D[g.type](I, M), z && a.remove(G));
23092
+ C && (z = $D[g.type](I, R), z && a.remove(G));
23091
23093
  var AA = G && (G.type === "sector" && f || G.type === "sausage" && !f);
23092
- if (AA && (G && t0(G, e, x), G = null), G ? w0(G) : G = A4[g.type](e, o, S, M, c, h, l.model, !0, f), u && (G.forceLabelAnimation = !0), y) {
23094
+ if (AA && (G && t0(G, e, x), G = null), G ? w0(G) : G = A4[g.type](e, o, S, R, c, h, l.model, !0, f), u && (G.forceLabelAnimation = !0), y) {
23093
23095
  var eA = G.getTextContent();
23094
23096
  if (eA) {
23095
23097
  var oA = th(eA);
23096
23098
  oA.prevValue != null && (oA.prevValue = oA.value);
23097
23099
  }
23098
23100
  } else
23099
- r4(G, o, S, F, M, e, c, g.type === "polar");
23101
+ r4(G, o, S, F, R, e, c, g.type === "polar");
23100
23102
  v ? G.attr({
23101
- shape: M
23102
- }) : u ? e4(u, h, G, M, S, c, !0, y) : ci(G, {
23103
- shape: M
23103
+ shape: R
23104
+ }) : u ? e4(u, h, G, R, S, c, !0, y) : ci(G, {
23105
+ shape: R
23104
23106
  }, e, S, null), o.setItemGraphicEl(S, G), G.ignore = z, a.add(G);
23105
23107
  }
23106
23108
  }).remove(function(S) {
@@ -23793,7 +23795,7 @@ function lV(t) {
23793
23795
  return !1;
23794
23796
  }
23795
23797
  A.each(function(v) {
23796
- var y = A.getItemGraphicEl(v), D = y.shape, k = y.getTextContent(), b = y.getTextGuideLine(), S = A.getItemModel(v), x = S.getModel("label"), F = x.get("position") || S.get(["emphasis", "label", "position"]), M = x.get("distanceToLabelLine"), T = x.get("alignTo"), H = ye(x.get("edgeDistance"), g), U = x.get("bleedMargin");
23798
+ var y = A.getItemGraphicEl(v), D = y.shape, k = y.getTextContent(), b = y.getTextGuideLine(), S = A.getItemModel(v), x = S.getModel("label"), F = x.get("position") || S.get(["emphasis", "label", "position"]), R = x.get("distanceToLabelLine"), T = x.get("alignTo"), H = ye(x.get("edgeDistance"), g), U = x.get("bleedMargin");
23797
23799
  U == null && (U = Math.min(g, h) > 200 ? 10 : 2);
23798
23800
  var G = S.getModel("labelLine"), z = G.get("length");
23799
23801
  z = ye(z, g);
@@ -23812,7 +23814,7 @@ function lV(t) {
23812
23814
  var ie = (XA ? (D.r + D.r0) / 2 * oA : D.r * oA) + i, nA = (XA ? (D.r + D.r0) / 2 * sA : D.r * sA) + r;
23813
23815
  if (gA = ie + oA * 3, IA = nA + sA * 3, !XA) {
23814
23816
  var yA = ie + oA * (z + s - D.r), YA = nA + sA * (z + s - D.r), me = yA + (oA < 0 ? -1 : 1) * AA, fe = YA;
23815
- T === "edge" ? gA = oA < 0 ? l + H : l + g - H : gA = me + (oA < 0 ? -M : M), IA = fe, LA = [[ie, nA], [yA, YA], [me, fe]];
23817
+ T === "edge" ? gA = oA < 0 ? l + H : l + g - H : gA = me + (oA < 0 ? -R : R), IA = fe, LA = [[ie, nA], [yA, YA], [me, fe]];
23816
23818
  }
23817
23819
  te = XA ? "center" : T === "edge" ? oA > 0 ? "right" : "left" : oA > 0 ? "left" : "right";
23818
23820
  }
@@ -23851,7 +23853,7 @@ function lV(t) {
23851
23853
  surfaceNormal: new Ne(oA, sA),
23852
23854
  linePoints: LA,
23853
23855
  textAlign: te,
23854
- labelDistance: M,
23856
+ labelDistance: R,
23855
23857
  labelAlignTo: T,
23856
23858
  edgeDistance: H,
23857
23859
  bleedMargin: U,
@@ -23899,7 +23901,7 @@ function uV(t, A) {
23899
23901
  dm(D, !Q), c = D[0], h = D[1];
23900
23902
  var b = g_(e);
23901
23903
  b.startAngle = c, b.endAngle = h, b.clockwise = Q, b.cx = a, b.cy = o, b.r = s, b.r0 = g;
23902
- var S = Math.abs(h - c), x = S, F = 0, M = c;
23904
+ var S = Math.abs(h - c), x = S, F = 0, R = c;
23903
23905
  if (i.setLayout({
23904
23906
  viewRect: l,
23905
23907
  r: s
@@ -23919,8 +23921,8 @@ function uV(t, A) {
23919
23921
  return;
23920
23922
  }
23921
23923
  p !== "area" ? G = d === 0 && E ? B : H * B : G = S / f, G < I ? (G = I, x -= I) : F += H;
23922
- var z = M + y * G, AA = 0, eA = 0;
23923
- u > G ? (AA = M + y * G / 2, eA = AA) : (AA = M + k, eA = z - k), i.setItemLayout(U, {
23924
+ var z = R + y * G, AA = 0, eA = 0;
23925
+ u > G ? (AA = R + y * G / 2, eA = AA) : (AA = R + k, eA = z - k), i.setItemLayout(U, {
23924
23926
  angle: G,
23925
23927
  startAngle: AA,
23926
23928
  endAngle: eA,
@@ -23929,7 +23931,7 @@ function uV(t, A) {
23929
23931
  cy: o,
23930
23932
  r0: g,
23931
23933
  r: p ? Wi(H, v, [g, s]) : s
23932
- }), M = z;
23934
+ }), R = z;
23933
23935
  }), x < l4 && f)
23934
23936
  if (x <= 1e-3) {
23935
23937
  var T = S / f;
@@ -23942,10 +23944,10 @@ function uV(t, A) {
23942
23944
  }
23943
23945
  });
23944
23946
  } else
23945
- B = x / F, M = c, i.each(r, function(H, U) {
23947
+ B = x / F, R = c, i.each(r, function(H, U) {
23946
23948
  if (!isNaN(H)) {
23947
23949
  var G = i.getItemLayout(U), z = G.angle === I ? I : H * B, AA = 0, eA = 0;
23948
- z < u ? (AA = M + y * z / 2, eA = AA) : (AA = M + k, eA = M + y * z - k), G.startAngle = AA, G.endAngle = eA, M += y * z;
23950
+ z < u ? (AA = R + y * z / 2, eA = AA) : (AA = R + k, eA = R + y * z - k), G.startAngle = AA, G.endAngle = eA, R += y * z;
23949
23951
  }
23950
23952
  });
23951
23953
  });
@@ -24672,7 +24674,7 @@ function h_(t, A) {
24672
24674
  }
24673
24675
  process.env.NODE_ENV !== "production" && BA(C >= 1);
24674
24676
  var B = r.zoomFixMM, Q = B[0] || B[1], p = [r.fixMM[0] || Q, r.fixMM[1] || Q], E = e.getExtent(), v = o.getExtent(), y = Ax(v, p), D, k, b, S, x, F;
24675
- function M(oA) {
24677
+ function R(oA) {
24676
24678
  for (var sA = 50, gA = 0; gA < sA && !oA(); gA++)
24677
24679
  b = n ? b * nt(s, 2) : FK(b), S = Fg(b);
24678
24680
  process.env.NODE_ENV !== "production" && gA >= sA && Ti("incorrect impl in `scaleCalcAlign`.");
@@ -24695,13 +24697,13 @@ function h_(t, A) {
24695
24697
  S = RT([k, D], AA, 0.5 / C), U(), G(), An(S) && (b = ze(b, S));
24696
24698
  } else {
24697
24699
  var eA = y[1] - y[0];
24698
- b = n ? nt(d5(eA), 1) : sm(eA / C, B5), S = Fg(b), p[0] ? (D = y[0], M(function() {
24700
+ b = n ? nt(d5(eA), 1) : sm(eA / C, B5), S = Fg(b), p[0] ? (D = y[0], R(function() {
24699
24701
  if (U(), x = ze(F + b * C, S), H(), k >= y[1])
24700
24702
  return !0;
24701
- })) : p[1] ? (k = y[1], M(function() {
24703
+ })) : p[1] ? (k = y[1], R(function() {
24702
24704
  if (G(), F = ze(x - b * C, S), T(), D <= y[0])
24703
24705
  return !0;
24704
- })) : M(function() {
24706
+ })) : R(function() {
24705
24707
  F = ze(X0(y[0] / b) * b, S), x = ze(wg(y[1] / b) * b, S);
24706
24708
  var oA = no((x - F) / b);
24707
24709
  if (oA <= C) {
@@ -25761,13 +25763,13 @@ var jV = (
25761
25763
  }
25762
25764
  b = S.slice().reverse();
25763
25765
  }
25764
- var F = s.getLineStyle(), M = g.getAreaStyle();
25766
+ var F = s.getLineStyle(), R = g.getAreaStyle();
25765
25767
  L(d, function(T, H) {
25766
25768
  this.group.add(mE(T, {
25767
25769
  style: He({
25768
25770
  stroke: "none",
25769
25771
  fill: I[H % I.length]
25770
- }, M),
25772
+ }, R),
25771
25773
  silent: !0
25772
25774
  }));
25773
25775
  }, this), L(f, function(T, H) {
@@ -27002,13 +27004,13 @@ var Xz = (
27002
27004
  };
27003
27005
  this._renderTicks(e, i, r, D, a, g, l, s, f), this._renderTitleAndDetail(e, i, r, D, a), this._renderAnchor(e, a), this._renderPointer(e, i, r, D, a, g, l, s, f);
27004
27006
  }, A.prototype._renderTicks = function(e, i, r, n, a, o, s, g, l) {
27005
- for (var c = this.group, h = a.cx, u = a.cy, C = a.r, I = +e.get("min"), f = +e.get("max"), d = e.getModel("splitLine"), B = e.getModel("axisTick"), Q = e.getModel("axisLabel"), p = e.get("splitNumber"), E = B.get("splitNumber"), v = ye(d.get("length"), C), y = ye(B.get("length"), C), D = o, k = (s - o) / p, b = k / E, S = d.getModel("lineStyle").getLineStyle(), x = B.getModel("lineStyle").getLineStyle(), F = d.get("distance"), M, T, H = 0; H <= p; H++) {
27006
- if (M = Math.cos(D), T = Math.sin(D), d.get("show")) {
27007
+ for (var c = this.group, h = a.cx, u = a.cy, C = a.r, I = +e.get("min"), f = +e.get("max"), d = e.getModel("splitLine"), B = e.getModel("axisTick"), Q = e.getModel("axisLabel"), p = e.get("splitNumber"), E = B.get("splitNumber"), v = ye(d.get("length"), C), y = ye(B.get("length"), C), D = o, k = (s - o) / p, b = k / E, S = d.getModel("lineStyle").getLineStyle(), x = B.getModel("lineStyle").getLineStyle(), F = d.get("distance"), R, T, H = 0; H <= p; H++) {
27008
+ if (R = Math.cos(D), T = Math.sin(D), d.get("show")) {
27007
27009
  var U = F ? F + l : l, G = new ma({
27008
27010
  shape: {
27009
- x1: M * (C - U) + h,
27011
+ x1: R * (C - U) + h,
27010
27012
  y1: T * (C - U) + u,
27011
- x2: M * (C - v - U) + h,
27013
+ x2: R * (C - v - U) + h,
27012
27014
  y2: T * (C - v - U) + u
27013
27015
  },
27014
27016
  style: S,
@@ -27023,14 +27025,14 @@ var Xz = (
27023
27025
  // multiply firstly to avoid rounding error.
27024
27026
  ze(H * (f - I) / p + I, bT),
27025
27027
  Q.get("formatter")
27026
- ), AA = n(H / p), eA = M * (C - v - U) + h, oA = T * (C - v - U) + u, sA = Q.get("rotate"), gA = 0;
27028
+ ), AA = n(H / p), eA = R * (C - v - U) + h, oA = T * (C - v - U) + u, sA = Q.get("rotate"), gA = 0;
27027
27029
  sA === "radial" ? (gA = -D + 2 * Math.PI, gA > Math.PI / 2 && (gA += Math.PI)) : sA === "tangential" ? gA = -D - Math.PI / 2 : at(sA) && (gA = sA * Math.PI / 180), gA === 0 ? c.add(new Rt({
27028
27030
  style: Xi(Q, {
27029
27031
  text: z,
27030
27032
  x: eA,
27031
27033
  y: oA,
27032
27034
  verticalAlign: T < -0.8 ? "top" : T > 0.8 ? "bottom" : "middle",
27033
- align: M < -0.4 ? "left" : M > 0.4 ? "right" : "center"
27035
+ align: R < -0.4 ? "left" : R > 0.4 ? "right" : "center"
27034
27036
  }, {
27035
27037
  inheritColor: AA
27036
27038
  }),
@@ -27055,12 +27057,12 @@ var Xz = (
27055
27057
  var U = B.get("distance");
27056
27058
  U = U ? U + l : l;
27057
27059
  for (var IA = 0; IA <= E; IA++) {
27058
- M = Math.cos(D), T = Math.sin(D);
27060
+ R = Math.cos(D), T = Math.sin(D);
27059
27061
  var LA = new ma({
27060
27062
  shape: {
27061
- x1: M * (C - U) + h,
27063
+ x1: R * (C - U) + h,
27062
27064
  y1: T * (C - U) + u,
27063
- x2: M * (C - y - U) + h,
27065
+ x2: R * (C - y - U) + h,
27064
27066
  y2: T * (C - y - U) + u
27065
27067
  },
27066
27068
  silent: !0,
@@ -27077,11 +27079,11 @@ var Xz = (
27077
27079
  }, A.prototype._renderPointer = function(e, i, r, n, a, o, s, g, l) {
27078
27080
  var c = this.group, h = this._data, u = this._progressEls, C = [], I = e.get(["pointer", "show"]), f = e.getModel("progress"), d = f.get("show"), B = e.getData(), Q = B.mapDimension("value"), p = +e.get("min"), E = +e.get("max"), v = [p, E], y = [o, s];
27079
27081
  function D(b, S) {
27080
- var x = B.getItemModel(b), F = x.getModel("pointer"), M = ye(F.get("width"), a.r), T = ye(F.get("length"), a.r), H = e.get(["pointer", "icon"]), U = F.get("offsetCenter"), G = ye(U[0], a.r), z = ye(U[1], a.r), AA = F.get("keepAspect"), eA;
27081
- return H ? eA = en(H, G - M / 2, z - T, M, T, null, AA) : eA = new Vz({
27082
+ var x = B.getItemModel(b), F = x.getModel("pointer"), R = ye(F.get("width"), a.r), T = ye(F.get("length"), a.r), H = e.get(["pointer", "icon"]), U = F.get("offsetCenter"), G = ye(U[0], a.r), z = ye(U[1], a.r), AA = F.get("keepAspect"), eA;
27083
+ return H ? eA = en(H, G - R / 2, z - T, R, T, null, AA) : eA = new Vz({
27082
27084
  shape: {
27083
27085
  angle: -Math.PI / 2,
27084
- width: M,
27086
+ width: R,
27085
27087
  r: T,
27086
27088
  x: G,
27087
27089
  y: z
@@ -27089,7 +27091,7 @@ var Xz = (
27089
27091
  }), eA.rotation = -(S + Math.PI / 2), eA.x = a.cx, eA.y = a.cy, eA;
27090
27092
  }
27091
27093
  function k(b, S) {
27092
- var x = f.get("roundCap"), F = x ? mf : va, M = f.get("overlap"), T = M ? f.get("width") : l / B.count(), H = M ? a.r - T : a.r - (b + 1) * T, U = M ? a.r : a.r - b * T, G = new F({
27094
+ var x = f.get("roundCap"), F = x ? mf : va, R = f.get("overlap"), T = R ? f.get("width") : l / B.count(), H = R ? a.r - T : a.r - (b + 1) * T, U = R ? a.r : a.r - b * T, G = new F({
27093
27095
  shape: {
27094
27096
  startAngle: o,
27095
27097
  endAngle: S,
@@ -27100,7 +27102,7 @@ var Xz = (
27100
27102
  r: U
27101
27103
  }
27102
27104
  });
27103
- return M && (G.z2 = Wi(B.get(Q, b), [p, E], [100, 0], !0)), G;
27105
+ return R && (G.z2 = Wi(B.get(Q, b), [p, E], [100, 0], !0)), G;
27104
27106
  }
27105
27107
  (d || I) && (B.diff(h).add(function(b) {
27106
27108
  var S = B.get(Q, b);
@@ -27111,18 +27113,18 @@ var Xz = (
27111
27113
  }, e), c.add(x), B.setItemGraphicEl(b, x);
27112
27114
  }
27113
27115
  if (d) {
27114
- var F = k(b, o), M = f.get("clip");
27116
+ var F = k(b, o), R = f.get("clip");
27115
27117
  Oi(F, {
27116
27118
  shape: {
27117
- endAngle: Wi(S, v, y, M)
27119
+ endAngle: Wi(S, v, y, R)
27118
27120
  }
27119
27121
  }, e), c.add(F), CE(e.seriesIndex, B.dataType, b, F), C[b] = F;
27120
27122
  }
27121
27123
  }).update(function(b, S) {
27122
27124
  var x = B.get(Q, b);
27123
27125
  if (I) {
27124
- var F = h.getItemGraphicEl(S), M = F ? F.rotation : o, T = D(b, M);
27125
- T.rotation = M, ci(T, {
27126
+ var F = h.getItemGraphicEl(S), R = F ? F.rotation : o, T = D(b, R);
27127
+ T.rotation = R, ci(T, {
27126
27128
  rotation: -((isNaN(+x) ? y[0] : Wi(x, v, y, !0)) + Math.PI / 2)
27127
27129
  }, e), c.add(T), B.setItemGraphicEl(b, T);
27128
27130
  }
@@ -27135,7 +27137,7 @@ var Xz = (
27135
27137
  }, e), c.add(G), CE(e.seriesIndex, B.dataType, b, G), C[b] = G;
27136
27138
  }
27137
27139
  }).execute(), B.each(function(b) {
27138
- var S = B.getItemModel(b), x = S.getModel("emphasis"), F = x.get("focus"), M = x.get("blurScope"), T = x.get("disabled"), H = n(Wi(B.get(Q, b), v, [0, 1], !0));
27140
+ var S = B.getItemModel(b), x = S.getModel("emphasis"), F = x.get("focus"), R = x.get("blurScope"), T = x.get("disabled"), H = n(Wi(B.get(Q, b), v, [0, 1], !0));
27139
27141
  if (I) {
27140
27142
  var U = B.getItemGraphicEl(b), G = B.getItemVisual(b, "style"), z = G.fill;
27141
27143
  if (U instanceof Gn) {
@@ -27149,11 +27151,11 @@ var Xz = (
27149
27151
  }, G));
27150
27152
  } else
27151
27153
  U.useStyle(G), U.type !== "pointer" && U.setColor(z);
27152
- U.setStyle(S.getModel(["pointer", "itemStyle"]).getItemStyle()), U.style.fill === "auto" && U.setStyle("fill", H), U.z2EmphasisLift = 0, Ea(U, S), Zn(U, F, M, T);
27154
+ U.setStyle(S.getModel(["pointer", "itemStyle"]).getItemStyle()), U.style.fill === "auto" && U.setStyle("fill", H), U.z2EmphasisLift = 0, Ea(U, S), Zn(U, F, R, T);
27153
27155
  }
27154
27156
  if (d) {
27155
27157
  var eA = C[b];
27156
- eA.useStyle(B.getItemVisual(b, "style")), eA.setStyle(S.getModel(["progress", "itemStyle"]).getItemStyle()), eA.style.fill === "auto" && eA.setStyle("fill", H), eA.z2EmphasisLift = 0, Ea(eA, S), Zn(eA, F, M, T);
27158
+ eA.useStyle(B.getItemVisual(b, "style")), eA.setStyle(S.getModel(["progress", "itemStyle"]).getItemStyle()), eA.style.fill === "auto" && eA.setStyle("fill", H), eA.z2EmphasisLift = 0, Ea(eA, S), Zn(eA, F, R, T);
27157
27159
  }
27158
27160
  }), this._progressEls = C);
27159
27161
  }, A.prototype._renderAnchor = function(e, i) {
@@ -27191,12 +27193,12 @@ var Xz = (
27191
27193
  }
27192
27194
  var S = B.getModel("detail");
27193
27195
  if (S.get("show")) {
27194
- var x = S.get("offsetCenter"), F = a.cx + ye(x[0], a.r), M = a.cy + ye(x[1], a.r), T = ye(S.get("width"), a.r), H = ye(S.get("height"), a.r), U = e.get(["progress", "show"]) ? s.getItemVisual(d, "style").fill : E, b = C[d], G = S.get("formatter");
27196
+ var x = S.get("offsetCenter"), F = a.cx + ye(x[0], a.r), R = a.cy + ye(x[1], a.r), T = ye(S.get("width"), a.r), H = ye(S.get("height"), a.r), U = e.get(["progress", "show"]) ? s.getItemVisual(d, "style").fill : E, b = C[d], G = S.get("formatter");
27195
27197
  b.attr({
27196
27198
  z2: f ? 0 : 2,
27197
27199
  style: Xi(S, {
27198
27200
  x: F,
27199
- y: M,
27201
+ y: R,
27200
27202
  text: fC(Q, G),
27201
27203
  width: isNaN(T) ? null : T,
27202
27204
  height: isNaN(H) ? null : H,
@@ -27548,11 +27550,11 @@ var lo = "sankey", eX = (
27548
27550
  a.removeAll(), a.x = o.x, a.y = o.y, this._updateViewCoordSys(e, r), Nz(e, r, this._controller, xz(a)), n.eachEdge(function(u) {
27549
27551
  var C = new iX(), I = Ke(C);
27550
27552
  I.dataIndex = u.dataIndex, I.seriesIndex = e.seriesIndex, I.dataType = "edge";
27551
- var f = u.getModel(), d = f.getModel("lineStyle"), B = d.get("curveness"), Q = u.node1.getLayout(), p = u.node1.getModel(), E = p.get("localX"), v = p.get("localY"), y = u.node2.getLayout(), D = u.node2.getModel(), k = D.get("localX"), b = D.get("localY"), S = u.getLayout(), x, F, M, T, H, U, G, z;
27552
- C.shape.extent = Math.max(1, S.dy), C.shape.orient = h, h === "vertical" ? (x = (E != null ? E * s : Q.x) + S.sy, F = (v != null ? v * g : Q.y) + Q.dy, M = (k != null ? k * s : y.x) + S.ty, T = b != null ? b * g : y.y, H = x, U = F * (1 - B) + T * B, G = M, z = F * B + T * (1 - B)) : (x = (E != null ? E * s : Q.x) + Q.dx, F = (v != null ? v * g : Q.y) + S.sy, M = k != null ? k * s : y.x, T = (b != null ? b * g : y.y) + S.ty, H = x * (1 - B) + M * B, U = F, G = x * B + M * (1 - B), z = T), C.setShape({
27553
+ var f = u.getModel(), d = f.getModel("lineStyle"), B = d.get("curveness"), Q = u.node1.getLayout(), p = u.node1.getModel(), E = p.get("localX"), v = p.get("localY"), y = u.node2.getLayout(), D = u.node2.getModel(), k = D.get("localX"), b = D.get("localY"), S = u.getLayout(), x, F, R, T, H, U, G, z;
27554
+ C.shape.extent = Math.max(1, S.dy), C.shape.orient = h, h === "vertical" ? (x = (E != null ? E * s : Q.x) + S.sy, F = (v != null ? v * g : Q.y) + Q.dy, R = (k != null ? k * s : y.x) + S.ty, T = b != null ? b * g : y.y, H = x, U = F * (1 - B) + T * B, G = R, z = F * B + T * (1 - B)) : (x = (E != null ? E * s : Q.x) + Q.dx, F = (v != null ? v * g : Q.y) + S.sy, R = k != null ? k * s : y.x, T = (b != null ? b * g : y.y) + S.ty, H = x * (1 - B) + R * B, U = F, G = x * B + R * (1 - B), z = T), C.setShape({
27553
27555
  x1: x,
27554
27556
  y1: F,
27555
- x2: M,
27557
+ x2: R,
27556
27558
  y2: T,
27557
27559
  cpx1: H,
27558
27560
  cpy1: U,
@@ -28099,7 +28101,7 @@ var NX = (
28099
28101
  l = os(C).w + 0.5, c = os(I).w + 0.5, h = C.scale.getExtent(), u = I.scale.getExtent();
28100
28102
  }
28101
28103
  for (var f = this.group, d = e.getData(), B = e.getModel(["emphasis", "itemStyle"]).getItemStyle(), Q = e.getModel(["blur", "itemStyle"]).getItemStyle(), p = e.getModel(["select", "itemStyle"]).getItemStyle(), E = e.get(["itemStyle", "borderRadius"]), v = ya(e), y = e.getModel("emphasis"), D = y.get("focus"), k = y.get("blurScope"), b = y.get("disabled"), S = s || g ? [d.mapDimension("x"), d.mapDimension("y"), d.mapDimension("value")] : [d.mapDimension("time"), d.mapDimension("value")], x = r; x < n; x++) {
28102
- var F = void 0, M = d.getItemVisual(x, "style");
28104
+ var F = void 0, R = d.getItemVisual(x, "style");
28103
28105
  if (s) {
28104
28106
  var T = d.get(S[0], x), H = d.get(S[1], x);
28105
28107
  if (isNaN(d.get(S[2], x)) || isNaN(T) || isNaN(H) || T < h[0] || T > h[1] || H < u[0] || H > u[1])
@@ -28112,7 +28114,7 @@ var NX = (
28112
28114
  width: l,
28113
28115
  height: c
28114
28116
  },
28115
- style: M
28117
+ style: R
28116
28118
  });
28117
28119
  } else if (g) {
28118
28120
  var G = o.dataToLayout([d.get(S[0], x), d.get(S[1], x)]).rect;
@@ -28121,7 +28123,7 @@ var NX = (
28121
28123
  F = new Et({
28122
28124
  z2: 1,
28123
28125
  shape: G,
28124
- style: M
28126
+ style: R
28125
28127
  });
28126
28128
  } else {
28127
28129
  if (isNaN(d.get(S[1], x)))
@@ -28132,7 +28134,7 @@ var NX = (
28132
28134
  F = new Et({
28133
28135
  z2: 1,
28134
28136
  shape: G,
28135
- style: M
28137
+ style: R
28136
28138
  });
28137
28139
  }
28138
28140
  if (d.hasItemOption) {
@@ -28144,7 +28146,7 @@ var NX = (
28144
28146
  oA && oA[2] != null && (sA = oA[2] + ""), so(F, v, {
28145
28147
  labelFetcher: e,
28146
28148
  labelDataIndex: x,
28147
- defaultOpacity: M.opacity,
28149
+ defaultOpacity: R.opacity,
28148
28150
  defaultText: sA
28149
28151
  }), F.ensureState("emphasis").style = B, F.ensureState("blur").style = Q, F.ensureState("select").style = p, Zn(F, D, k, b), F.incremental = hm(e, a), a && (F.states.emphasis.hoverLayer = Qd), f.add(F), d.setItemGraphicEl(x, F), this._progressiveEls && this._progressiveEls.push(F);
28150
28152
  }
@@ -29457,14 +29459,14 @@ var pj = new Et({
29457
29459
  F.axisDim = Q.axisDim, F.axisIndex = Q.axisIndex, F.axisType = Q.axisType, F.axisId = Q.axisId, F.axisValue = cf(p.axis, {
29458
29460
  value: y
29459
29461
  }), F.axisValueLabel = D, F.marker = h.makeTooltipMarker("item", Sg(F.color), s);
29460
- var M = Mw(S.formatTooltip(x, !0, null)), T = M.frag;
29462
+ var R = Mw(S.formatTooltip(x, !0, null)), T = R.frag;
29461
29463
  if (T) {
29462
29464
  var H = Cu([S], n).get("valueFormatter");
29463
29465
  k.blocks.push(H ? kA({
29464
29466
  valueFormatter: H
29465
29467
  }, T) : T);
29466
29468
  }
29467
- M.text && c.push(M.text), g.push(F);
29469
+ R.text && c.push(R.text), g.push(F);
29468
29470
  }
29469
29471
  });
29470
29472
  }
@@ -30103,11 +30105,11 @@ var xj = function(t, A) {
30103
30105
  var S = k.legendVisualProvider;
30104
30106
  if (!S.containName(d))
30105
30107
  return;
30106
- var x = S.indexOfName(d), F = S.getItemVisual(x, "style"), M = S.getItemVisual(x, "legendIcon"), T = kn(F.fill);
30108
+ var x = S.indexOfName(d), F = S.getItemVisual(x, "style"), R = S.getItemVisual(x, "legendIcon"), T = kn(F.fill);
30107
30109
  T && T[3] === 0 && (T[3] = 0.2, F = kA(kA({}, F), {
30108
30110
  fill: za(T, "rgba")
30109
30111
  }));
30110
- var H = this._createItem(k, d, I, C, i, e, {}, F, M, c, n);
30112
+ var H = this._createItem(k, d, I, C, i, e, {}, F, R, c, n);
30111
30113
  H.on("click", Cl(Ak, null, d, n, u)).on("mouseover", Cl(gv, null, d, n, u)).on("mouseout", Cl(lv, null, d, n, u)), r.ssr && H.eachChild(function(U) {
30112
30114
  var G = Ke(U);
30113
30115
  G.seriesIndex = k.seriesIndex, G.dataIndex = I, G.ssrType = "legend";
@@ -30200,12 +30202,12 @@ var xj = function(t, A) {
30200
30202
  // Cannot use 'invisible' because SVG SSR will miss the node
30201
30203
  fill: "transparent"
30202
30204
  }
30203
- }), M = n.getModel("tooltip");
30204
- return M.get("show") && pd({
30205
+ }), R = n.getModel("tooltip");
30206
+ return R.get("show") && pd({
30205
30207
  el: F,
30206
30208
  componentModel: a,
30207
30209
  itemName: i,
30208
- itemTooltipOption: M.option
30210
+ itemTooltipOption: R.option
30209
30211
  }), E.add(F), E.eachChild(function(T) {
30210
30212
  T.silent = !0;
30211
30213
  }), F.silent = !c, this.getContentGroup().add(E), QE(E), E.__legendDataIndex = r, E;
@@ -31816,7 +31818,7 @@ var X_ = function(t) {
31816
31818
  break;
31817
31819
  } else if (s) {
31818
31820
  g.copy(p), g.union(b);
31819
- var x = p.width * p.height, F = b.width * b.height, M = g.width * g.height, T = M - x - F;
31821
+ var x = p.width * p.height, F = b.width * b.height, R = g.width * g.height, T = R - x - F;
31820
31822
  T < y && (y = T, D = k);
31821
31823
  }
31822
31824
  }
@@ -35960,7 +35962,7 @@ const JrA = { class: "chart-renderer" }, OrA = /* @__PURE__ */ oe({
35960
35962
  }), er(() => {
35961
35963
  document.body.style.overflow = o, document.removeEventListener("keydown", l), a == null || a.focus();
35962
35964
  }), (u, C) => (Y(), se(f0, { to: "body" }, [
35963
- R("div", {
35965
+ M("div", {
35964
35966
  ref_key: "dialogRef",
35965
35967
  ref: r,
35966
35968
  class: "image-lightbox",
@@ -35972,13 +35974,13 @@ const JrA = { class: "chart-renderer" }, OrA = /* @__PURE__ */ oe({
35972
35974
  onTouchstart: c,
35973
35975
  onTouchend: h
35974
35976
  }, [
35975
- R("button", {
35977
+ M("button", {
35976
35978
  class: "image-lightbox__close",
35977
35979
  type: "button",
35978
35980
  "aria-label": "关闭图片预览",
35979
35981
  onClick: C[0] || (C[0] = (I) => i("close"))
35980
35982
  }, [...C[4] || (C[4] = [
35981
- R("span", { "aria-hidden": "true" }, "✕", -1)
35983
+ M("span", { "aria-hidden": "true" }, "✕", -1)
35982
35984
  ])]),
35983
35985
  g.value ? (Y(), P("button", {
35984
35986
  key: 0,
@@ -35987,7 +35989,7 @@ const JrA = { class: "chart-renderer" }, OrA = /* @__PURE__ */ oe({
35987
35989
  "aria-label": "查看上一张图片",
35988
35990
  onClick: C[1] || (C[1] = (I) => i("previous"))
35989
35991
  }, [...C[5] || (C[5] = [
35990
- R("span", { "aria-hidden": "true" }, "❮", -1)
35992
+ M("span", { "aria-hidden": "true" }, "❮", -1)
35991
35993
  ])])) : DA("", !0),
35992
35994
  s.value ? (Y(), P("img", {
35993
35995
  key: 1,
@@ -36002,7 +36004,7 @@ const JrA = { class: "chart-renderer" }, OrA = /* @__PURE__ */ oe({
36002
36004
  "aria-label": "查看下一张图片",
36003
36005
  onClick: C[2] || (C[2] = (I) => i("next"))
36004
36006
  }, [...C[6] || (C[6] = [
36005
- R("span", { "aria-hidden": "true" }, "❯", -1)
36007
+ M("span", { "aria-hidden": "true" }, "❯", -1)
36006
36008
  ])])) : DA("", !0),
36007
36009
  g.value ? (Y(), P("div", KrA, EA(t.activeIndex + 1) + " / " + EA(t.images.length), 1)) : DA("", !0)
36008
36010
  ], 544)
@@ -36095,84 +36097,84 @@ const JrA = { class: "chart-renderer" }, OrA = /* @__PURE__ */ oe({
36095
36097
  height: `${c.value.height}px`
36096
36098
  })
36097
36099
  }, [
36098
- R("button", {
36100
+ M("button", {
36099
36101
  class: "image-stack__single-cover",
36100
36102
  type: "button",
36101
36103
  "aria-label": y(0),
36102
- onClick: k[0] || (k[0] = (M) => f(0))
36104
+ onClick: k[0] || (k[0] = (R) => f(0))
36103
36105
  }, [
36104
- R("img", {
36106
+ M("img", {
36105
36107
  src: I(((b = t.images[0]) == null ? void 0 : b.url) ?? "", hnA),
36106
36108
  alt: ((S = t.images[0]) == null ? void 0 : S.alt) ?? "",
36107
36109
  onLoad: p
36108
36110
  }, null, 40, zrA)
36109
36111
  ], 8, VrA)
36110
36112
  ], 4)) : e.value ? (Y(), P("div", inA, [
36111
- R("div", {
36113
+ M("div", {
36112
36114
  class: "image-stack__grid",
36113
36115
  style: di({ "--image-stack-columns": String(l.value) })
36114
36116
  }, [
36115
- (Y(!0), P(Ge, null, Qt(a.value, (M, T) => (Y(), P("button", {
36116
- key: M.id,
36117
+ (Y(!0), P(Ge, null, Qt(a.value, (R, T) => (Y(), P("button", {
36118
+ key: R.id,
36117
36119
  class: "image-stack__grid-cell",
36118
36120
  type: "button",
36119
36121
  "aria-label": y(T),
36120
36122
  "data-testid": `image-stack-image-${T}`,
36121
36123
  onClick: (H) => f(T)
36122
36124
  }, [
36123
- R("img", {
36124
- src: I(M.url, CnA),
36125
- alt: M.alt ?? ""
36125
+ M("img", {
36126
+ src: I(R.url, CnA),
36127
+ alt: R.alt ?? ""
36126
36128
  }, null, 8, nnA),
36127
36129
  T === a.value.length - 1 && o.value > 0 ? (Y(), P("span", anA, " +" + EA(o.value), 1)) : DA("", !0)
36128
36130
  ], 8, rnA))), 128))
36129
36131
  ], 4),
36130
- R("button", {
36132
+ M("button", {
36131
36133
  class: "image-stack__toggle image-stack__toggle--collapse",
36132
36134
  type: "button",
36133
36135
  "aria-expanded": e.value,
36134
- onClick: k[3] || (k[3] = (M) => e.value = !1)
36136
+ onClick: k[3] || (k[3] = (R) => e.value = !1)
36135
36137
  }, [...k[4] || (k[4] = [
36136
36138
  qv(" 收起 ", -1),
36137
- R("span", { "aria-hidden": "true" }, "⌃", -1)
36139
+ M("span", { "aria-hidden": "true" }, "⌃", -1)
36138
36140
  ])], 8, onA)
36139
36141
  ])) : (Y(), P("div", XrA, [
36140
- R("button", {
36142
+ M("button", {
36141
36143
  class: "image-stack__toggle",
36142
36144
  type: "button",
36143
36145
  "aria-expanded": e.value,
36144
36146
  "aria-label": `展开 ${t.images.length} 张图片`,
36145
- onClick: k[1] || (k[1] = (M) => e.value = !0)
36147
+ onClick: k[1] || (k[1] = (R) => e.value = !0)
36146
36148
  }, " 展开 " + EA(t.images.length) + " 张 ", 9, jrA),
36147
- R("div", {
36149
+ M("div", {
36148
36150
  class: "image-stack__canvas",
36149
36151
  style: di({
36150
36152
  width: `${u.value.width}px`,
36151
36153
  height: `${u.value.height}px`
36152
36154
  })
36153
36155
  }, [
36154
- (Y(!0), P(Ge, null, Qt(g.value, (M) => {
36156
+ (Y(!0), P(Ge, null, Qt(g.value, (R) => {
36155
36157
  var T;
36156
36158
  return Y(), P("span", {
36157
- key: M,
36159
+ key: R,
36158
36160
  class: "image-stack__layer",
36159
- "data-testid": `image-stack-layer-${M}`,
36161
+ "data-testid": `image-stack-layer-${R}`,
36160
36162
  style: di({
36161
36163
  width: `${h.value.width}px`,
36162
36164
  height: `${h.value.height}px`,
36163
- left: `${M * Wk}px`,
36164
- top: `${u.value.verticalOffset - M * Vk}px`,
36165
- transform: `rotate(${E(M)}deg)`
36165
+ left: `${R * Wk}px`,
36166
+ top: `${u.value.verticalOffset - R * Vk}px`,
36167
+ transform: `rotate(${E(R)}deg)`
36166
36168
  }),
36167
36169
  "aria-hidden": "true"
36168
36170
  }, [
36169
- R("img", {
36170
- src: I(((T = v(M)) == null ? void 0 : T.url) ?? "", Pk),
36171
+ M("img", {
36172
+ src: I(((T = v(R)) == null ? void 0 : T.url) ?? "", Pk),
36171
36173
  alt: ""
36172
36174
  }, null, 8, AnA)
36173
36175
  ], 12, $rA);
36174
36176
  }), 128)),
36175
- R("button", {
36177
+ M("button", {
36176
36178
  class: "image-stack__cover",
36177
36179
  type: "button",
36178
36180
  style: di({
@@ -36182,9 +36184,9 @@ const JrA = { class: "chart-renderer" }, OrA = /* @__PURE__ */ oe({
36182
36184
  }),
36183
36185
  "aria-label": y(0),
36184
36186
  "data-testid": "image-stack-cover",
36185
- onClick: k[2] || (k[2] = (M) => f(0))
36187
+ onClick: k[2] || (k[2] = (R) => f(0))
36186
36188
  }, [
36187
- R("img", {
36189
+ M("img", {
36188
36190
  src: I(((x = t.images[0]) == null ? void 0 : x.url) ?? "", Pk),
36189
36191
  alt: ((F = t.images[0]) == null ? void 0 : F.alt) ?? "",
36190
36192
  onLoad: p
@@ -36252,54 +36254,54 @@ const JrA = { class: "chart-renderer" }, OrA = /* @__PURE__ */ oe({
36252
36254
  "aria-label": A[t.mediaType],
36253
36255
  "data-testid": "media-pending"
36254
36256
  }, [
36255
- i[3] || (i[3] = R("div", {
36257
+ i[3] || (i[3] = M("div", {
36256
36258
  class: "media-pending__shimmer",
36257
36259
  "aria-hidden": "true"
36258
36260
  }, null, -1)),
36259
- R("div", BnA, [
36260
- R("span", QnA, [
36261
+ M("div", BnA, [
36262
+ M("span", QnA, [
36261
36263
  t.mediaType === "image" ? (Y(), P("svg", pnA, [...i[0] || (i[0] = [
36262
- R("rect", {
36264
+ M("rect", {
36263
36265
  x: "3",
36264
36266
  y: "3",
36265
36267
  width: "18",
36266
36268
  height: "18",
36267
36269
  rx: "2"
36268
36270
  }, null, -1),
36269
- R("circle", {
36271
+ M("circle", {
36270
36272
  cx: "8.5",
36271
36273
  cy: "8.5",
36272
36274
  r: "1.5"
36273
36275
  }, null, -1),
36274
- R("path", { d: "m21 15-5-5L5 21" }, null, -1)
36276
+ M("path", { d: "m21 15-5-5L5 21" }, null, -1)
36275
36277
  ])])) : t.mediaType === "video" ? (Y(), P("svg", EnA, [...i[1] || (i[1] = [
36276
- R("rect", {
36278
+ M("rect", {
36277
36279
  x: "2",
36278
36280
  y: "4",
36279
36281
  width: "20",
36280
36282
  height: "16",
36281
36283
  rx: "2"
36282
36284
  }, null, -1),
36283
- R("path", {
36285
+ M("path", {
36284
36286
  d: "m10 9 6 3-6 3V9z",
36285
36287
  fill: "currentColor",
36286
36288
  stroke: "none"
36287
36289
  }, null, -1)
36288
36290
  ])])) : (Y(), P("svg", vnA, [...i[2] || (i[2] = [
36289
- R("path", { d: "M9 18V5l12-2v13" }, null, -1),
36290
- R("circle", {
36291
+ M("path", { d: "M9 18V5l12-2v13" }, null, -1),
36292
+ M("circle", {
36291
36293
  cx: "6",
36292
36294
  cy: "18",
36293
36295
  r: "3"
36294
36296
  }, null, -1),
36295
- R("circle", {
36297
+ M("circle", {
36296
36298
  cx: "18",
36297
36299
  cy: "16",
36298
36300
  r: "3"
36299
36301
  }, null, -1)
36300
36302
  ])]))
36301
36303
  ]),
36302
- R("span", mnA, EA(A[t.mediaType]), 1)
36304
+ M("span", mnA, EA(A[t.mediaType]), 1)
36303
36305
  ])
36304
36306
  ], 10, dnA));
36305
36307
  }
@@ -41814,14 +41816,14 @@ var W8 = function(A) {
41814
41816
  height: xA(v),
41815
41817
  viewBox: "0 0 " + o + " " + E,
41816
41818
  preserveAspectRatio: k[S] + " slice"
41817
- }), M = us([D[S]], [F], e);
41819
+ }), R = us([D[S]], [F], e);
41818
41820
  if (y === 1)
41819
41821
  return {
41820
- span: M,
41822
+ span: R,
41821
41823
  minWidth: p,
41822
41824
  height: v
41823
41825
  };
41824
- M.style.height = xA(v), d.push(M);
41826
+ R.style.height = xA(v), d.push(R);
41825
41827
  }
41826
41828
  return {
41827
41829
  span: vA(["stretchy"], d, e),
@@ -42747,12 +42749,12 @@ var Yu = function(A, e, i) {
42747
42749
  i && (b *= r.sizeMultiplier);
42748
42750
  var S = k / 2 - b, x = [];
42749
42751
  if (c.length > 0) {
42750
- var F = k - I - Q, M = Math.round(k * 1e3), T = laA(c, Math.round(F * 1e3)), H = new cs(c, T), U = xA(h / 1e3), G = xA(M / 1e3), z = new co([H], {
42752
+ var F = k - I - Q, R = Math.round(k * 1e3), T = laA(c, Math.round(F * 1e3)), H = new cs(c, T), U = xA(h / 1e3), G = xA(R / 1e3), z = new co([H], {
42751
42753
  width: U,
42752
42754
  height: G,
42753
- viewBox: "0 0 " + h + " " + M
42755
+ viewBox: "0 0 " + h + " " + R
42754
42756
  }), AA = us([], [z], r);
42755
- AA.height = M / 1e3, AA.style.width = U, AA.style.height = G, x.push({
42757
+ AA.height = R / 1e3, AA.style.width = U, AA.style.height = G, x.push({
42756
42758
  type: "elem",
42757
42759
  elem: AA
42758
42760
  });
@@ -43538,7 +43540,7 @@ var Da = function(A, e) {
43538
43540
  var b = A.rowGaps[i], S = 0;
43539
43541
  b && (S = jt(b, e), S > 0 && (S += B, y < S && (y = S), S = 0)), A.addJot && i < A.body.length - 1 && (y += I), D.height = v, D.depth = y, Q += v, D.pos = Q, Q += y + S, s[i] = D, p(a[i + 1]);
43540
43542
  }
43541
- var x = Q / 2 + e.fontMetrics().axisHeight, F = A.cols || [], M = [], T, H, U = [];
43543
+ var x = Q / 2 + e.fontMetrics().axisHeight, F = A.cols || [], R = [], T, H, U = [];
43542
43544
  if (A.tags && A.tags.some((tr) => tr))
43543
43545
  for (i = 0; i < n; ++i) {
43544
43546
  var G = s[i], z = G.pos - x, AA = A.tags[i], eA = void 0;
@@ -43557,11 +43559,11 @@ var Da = function(A, e) {
43557
43559
  ) {
43558
43560
  for (var oA, sA = F[H], gA = !0; ((IA = sA) == null ? void 0 : IA.type) === "separator"; ) {
43559
43561
  var IA;
43560
- if (gA || (T = vA(["arraycolsep"], []), T.style.width = xA(e.fontMetrics().doubleRuleSep), M.push(T)), sA.separator === "|" || sA.separator === ":") {
43562
+ if (gA || (T = vA(["arraycolsep"], []), T.style.width = xA(e.fontMetrics().doubleRuleSep), R.push(T)), sA.separator === "|" || sA.separator === ":") {
43561
43563
  var LA = sA.separator === "|" ? "solid" : "dashed", te = vA(["vertical-separator"], [], e);
43562
43564
  te.style.height = xA(Q), te.style.borderRightWidth = xA(l), te.style.borderRightStyle = LA, te.style.margin = "0 " + xA(-l / 2);
43563
43565
  var XA = Q - x;
43564
- XA && (te.style.verticalAlign = xA(-XA)), M.push(te);
43566
+ XA && (te.style.verticalAlign = xA(-XA)), R.push(te);
43565
43567
  } else
43566
43568
  throw new bA("Invalid separator type: " + sA.separator);
43567
43569
  H++, sA = F[H], gA = !1;
@@ -43570,7 +43572,7 @@ var Da = function(A, e) {
43570
43572
  var ie = void 0;
43571
43573
  if (r > 0 || A.hskipBeforeAndAfter) {
43572
43574
  var nA, yA;
43573
- ie = (nA = (yA = sA) == null ? void 0 : yA.pregap) != null ? nA : h, ie !== 0 && (T = vA(["arraycolsep"], []), T.style.width = xA(ie), M.push(T));
43575
+ ie = (nA = (yA = sA) == null ? void 0 : yA.pregap) != null ? nA : h, ie !== 0 && (T = vA(["arraycolsep"], []), T.style.width = xA(ie), R.push(T));
43574
43576
  }
43575
43577
  var YA = [];
43576
43578
  for (i = 0; i < n; ++i) {
@@ -43588,13 +43590,13 @@ var Da = function(A, e) {
43588
43590
  positionType: "individualShift",
43589
43591
  children: YA
43590
43592
  }), WA = vA(["col-align-" + (((oA = sA) == null ? void 0 : oA.align) || "c")], [GA]);
43591
- if (M.push(WA), r < o - 1 || A.hskipBeforeAndAfter) {
43593
+ if (R.push(WA), r < o - 1 || A.hskipBeforeAndAfter) {
43592
43594
  var ne, _e;
43593
- ie = (ne = (_e = sA) == null ? void 0 : _e.postgap) != null ? ne : h, ie !== 0 && (T = vA(["arraycolsep"], []), T.style.width = xA(ie), M.push(T));
43595
+ ie = (ne = (_e = sA) == null ? void 0 : _e.postgap) != null ? ne : h, ie !== 0 && (T = vA(["arraycolsep"], []), T.style.width = xA(ie), R.push(T));
43594
43596
  }
43595
43597
  }
43596
43598
  }
43597
- var Se = vA(["mtable"], M);
43599
+ var Se = vA(["mtable"], R);
43598
43600
  if (g.length > 0) {
43599
43601
  for (var Ze = pc("hline", e, l), je = pc("hdashline", e, l), ct = [{
43600
43602
  type: "elem",
@@ -48508,7 +48510,7 @@ function MM() {
48508
48510
  const {
48509
48511
  MUSTACHE_EXPR: x,
48510
48512
  ERB_EXPR: F,
48511
- TMPLIT_EXPR: M,
48513
+ TMPLIT_EXPR: R,
48512
48514
  DATA_ATTR: T,
48513
48515
  ARIA_ATTR: H,
48514
48516
  IS_SCRIPT_OR_DATA: U,
@@ -48695,7 +48697,7 @@ function MM() {
48695
48697
  }
48696
48698
  return VA(W), !0;
48697
48699
  }
48698
- return W instanceof s && !OA(W) || (JA === "noscript" || JA === "noembed" || JA === "noframes") && Ki(/<\/no(script|embed|frames)/i, W.innerHTML) ? (VA(W), !0) : (me && W.nodeType === pu.text && (fA = W.textContent, du([x, F, M], (dt) => {
48700
+ return W instanceof s && !OA(W) || (JA === "noscript" || JA === "noembed" || JA === "noframes") && Ki(/<\/no(script|embed|frames)/i, W.innerHTML) ? (VA(W), !0) : (me && W.nodeType === pu.text && (fA = W.textContent, du([x, F, R], (dt) => {
48699
48701
  fA = Ql(fA, dt, " ");
48700
48702
  }), W.textContent !== fA && (Bu(A.removed, {
48701
48703
  element: W.cloneNode()
@@ -48770,7 +48772,7 @@ function MM() {
48770
48772
  Ye(Ot, W);
48771
48773
  continue;
48772
48774
  }
48773
- me && du([x, F, M], (ms) => {
48775
+ me && du([x, F, R], (ms) => {
48774
48776
  zt = Ql(zt, ms, " ");
48775
48777
  });
48776
48778
  const Zc = bt(W.nodeName);
@@ -48836,7 +48838,7 @@ function MM() {
48836
48838
  if (me) {
48837
48839
  fA.normalize();
48838
48840
  let Ri = fA.innerHTML;
48839
- du([x, F, M], (fr) => {
48841
+ du([x, F, R], (fr) => {
48840
48842
  Ri = Ql(Ri, fr, " ");
48841
48843
  }), fA.innerHTML = Ri;
48842
48844
  }
@@ -48849,7 +48851,7 @@ function MM() {
48849
48851
  }
48850
48852
  let Ci = tt ? fA.outerHTML : fA.innerHTML;
48851
48853
  return tt && eA["!doctype"] && fA.ownerDocument && fA.ownerDocument.doctype && fA.ownerDocument.doctype.name && Ki(_M, fA.ownerDocument.doctype.name) && (Ci = "<!DOCTYPE " + fA.ownerDocument.doctype.name + `>
48852
- ` + Ci), me && du([x, F, M], (Ri) => {
48854
+ ` + Ci), me && du([x, F, R], (Ri) => {
48853
48855
  Ci = Ql(Ci, Ri, " ");
48854
48856
  }), p && Se ? p.createHTML(Ci) : Ci;
48855
48857
  }, A.setConfig = function() {
@@ -49237,7 +49239,7 @@ const msA = ["innerHTML"], ysA = {
49237
49239
  key: 2,
49238
49240
  "media-type": d.mediaType
49239
49241
  }, null, 8, ["media-type"])) : d.type === "video" ? (Y(), P("figure", ysA, [
49240
- R("video", {
49242
+ M("video", {
49241
49243
  src: d.url,
49242
49244
  poster: d.poster,
49243
49245
  controls: "",
@@ -49245,7 +49247,7 @@ const msA = ["innerHTML"], ysA = {
49245
49247
  }, null, 8, wsA)
49246
49248
  ])) : d.type === "audio" ? (Y(), P("figure", DsA, [
49247
49249
  d.title ? (Y(), P("figcaption", ksA, EA(d.title), 1)) : DA("", !0),
49248
- R("audio", {
49250
+ M("audio", {
49249
49251
  src: d.url,
49250
49252
  controls: ""
49251
49253
  }, null, 8, bsA)
@@ -49417,7 +49419,7 @@ const _sA = ["open", "aria-busy"], MsA = ["aria-expanded", "aria-disabled"], RsA
49417
49419
  "aria-busy": t.streaming ? "true" : void 0,
49418
49420
  "aria-label": "思考过程"
49419
49421
  }, [
49420
- R("summary", {
49422
+ M("summary", {
49421
49423
  class: "chat-reasoning__summary",
49422
49424
  "aria-expanded": e.value,
49423
49425
  "aria-disabled": u.value ? void 0 : "true",
@@ -49429,7 +49431,7 @@ const _sA = ["open", "aria-busy"], MsA = ["aria-expanded", "aria-disabled"], RsA
49429
49431
  "stroke-width": 1.75,
49430
49432
  "aria-hidden": "true"
49431
49433
  }, null, 8, ["class"]),
49432
- R("span", {
49434
+ M("span", {
49433
49435
  class: Be(["chat-reasoning__label", { "chat-reasoning__label--streaming": t.streaming }])
49434
49436
  }, EA(Q.value), 3),
49435
49437
  u.value ? (Y(), se(_A(zv), {
@@ -49447,7 +49449,7 @@ const _sA = ["open", "aria-busy"], MsA = ["aria-expanded", "aria-disabled"], RsA
49447
49449
  class: Be(["chat-reasoning__viewport", { "chat-reasoning__viewport--fade": g.value }]),
49448
49450
  style: di({ height: _A(a) })
49449
49451
  }, [
49450
- R("div", {
49452
+ M("div", {
49451
49453
  ref_key: "contentRef",
49452
49454
  ref: n,
49453
49455
  class: "chat-reasoning__body"
@@ -49495,21 +49497,21 @@ const _sA = ["open", "aria-busy"], MsA = ["aria-expanded", "aria-disabled"], RsA
49495
49497
  class: "conversation-chart",
49496
49498
  "aria-label": e.value.title
49497
49499
  }, [
49498
- R("strong", LsA, EA(e.value.title), 1),
49499
- R("div", TsA, [
49500
+ M("strong", LsA, EA(e.value.title), 1),
49501
+ M("div", TsA, [
49500
49502
  (Y(!0), P(Ge, null, Qt(e.value.rows, (o) => (Y(), P("div", {
49501
49503
  key: o.label,
49502
49504
  class: "conversation-chart__row",
49503
49505
  role: "listitem"
49504
49506
  }, [
49505
- R("span", YsA, EA(o.label), 1),
49506
- R("span", UsA, [
49507
- R("span", {
49507
+ M("span", YsA, EA(o.label), 1),
49508
+ M("span", UsA, [
49509
+ M("span", {
49508
49510
  class: "conversation-chart__bar",
49509
49511
  style: di({ width: i(o.value) })
49510
49512
  }, null, 4)
49511
49513
  ]),
49512
- R("span", JsA, EA(o.value), 1)
49514
+ M("span", JsA, EA(o.value), 1)
49513
49515
  ]))), 128))
49514
49516
  ])
49515
49517
  ], 8, GsA)) : DA("", !0);
@@ -49550,15 +49552,15 @@ const _sA = ["open", "aria-busy"], MsA = ["aria-expanded", "aria-disabled"], RsA
49550
49552
  }
49551
49553
  return (l, c) => (Y(), P("section", ZsA, [
49552
49554
  r.value ? (Y(), P("div", KsA, [
49553
- R("span", qsA, EA(i.value), 1),
49554
- R("pre", PsA, [
49555
- R("code", null, EA(r.value), 1)
49555
+ M("span", qsA, EA(i.value), 1),
49556
+ M("pre", PsA, [
49557
+ M("code", null, EA(r.value), 1)
49556
49558
  ])
49557
49559
  ])) : DA("", !0),
49558
49560
  n.value ? (Y(), P("div", WsA, [
49559
- R("span", VsA, "输出" + EA(a.value === void 0 ? "" : ` (${a.value})`), 1),
49560
- R("pre", zsA, [
49561
- R("code", null, EA(n.value), 1)
49561
+ M("span", VsA, "输出" + EA(a.value === void 0 ? "" : ` (${a.value})`), 1),
49562
+ M("pre", zsA, [
49563
+ M("code", null, EA(n.value), 1)
49562
49564
  ])
49563
49565
  ])) : DA("", !0)
49564
49566
  ]));
@@ -53706,7 +53708,7 @@ class Jc extends Is {
53706
53708
  }
53707
53709
  v = B - f, D = v - h, b = A.left, x = A.right;
53708
53710
  }
53709
- const M = $e(r.ticks.maxTicksLimit, c), T = Math.max(1, Math.ceil(c / M));
53711
+ const R = $e(r.ticks.maxTicksLimit, c), T = Math.max(1, Math.ceil(c / R));
53710
53712
  for (Q = 0; Q < c; Q += T) {
53711
53713
  const H = this.getContext(Q), U = n.setContext(H), G = o.setContext(H), z = U.lineWidth, AA = U.color, eA = G.dash || [], oA = G.dashOffset, sA = U.tickWidth, gA = U.tickColor, IA = U.tickBorderDash || [], LA = U.tickBorderDashOffset;
53712
53714
  p = McA(this, Q, s), p !== void 0 && (E = tg(i, p, z), g ? v = D = b = x = E : y = k = S = F = E, u.push({
@@ -53761,17 +53763,17 @@ class Jc extends Is {
53761
53763
  y = this._getYAxisLabelAlignment(h).textAlign;
53762
53764
  }
53763
53765
  e === "y" && (s === "start" ? F = "top" : s === "end" && (F = "bottom"));
53764
- const M = this._getLabelSizes();
53766
+ const R = this._getLabelSizes();
53765
53767
  for (d = 0, B = o.length; d < B; ++d) {
53766
53768
  Q = o[d], p = Q.label;
53767
53769
  const T = n.setContext(this.getContext(d));
53768
53770
  D = this.getPixelForTick(d) + n.labelOffset, k = this._resolveTickFontOptions(d), b = k.lineHeight, S = Yi(p) ? p.length : 1;
53769
53771
  const H = S / 2, U = T.color, G = T.textStrokeColor, z = T.textStrokeWidth;
53770
53772
  let AA = y;
53771
- a ? (E = D, y === "inner" && (d === B - 1 ? AA = this.options.reverse ? "left" : "right" : d === 0 ? AA = this.options.reverse ? "right" : "left" : AA = "center"), r === "top" ? g === "near" || I !== 0 ? x = -S * b + b / 2 : g === "center" ? x = -M.highest.height / 2 - H * b + b : x = -M.highest.height + b / 2 : g === "near" || I !== 0 ? x = b / 2 : g === "center" ? x = M.highest.height / 2 - H * b : x = M.highest.height - S * b, c && (x *= -1), I !== 0 && !T.showLabelBackdrop && (E += b / 2 * Math.sin(I))) : (v = D, x = (1 - S) * b / 2);
53773
+ a ? (E = D, y === "inner" && (d === B - 1 ? AA = this.options.reverse ? "left" : "right" : d === 0 ? AA = this.options.reverse ? "right" : "left" : AA = "center"), r === "top" ? g === "near" || I !== 0 ? x = -S * b + b / 2 : g === "center" ? x = -R.highest.height / 2 - H * b + b : x = -R.highest.height + b / 2 : g === "near" || I !== 0 ? x = b / 2 : g === "center" ? x = R.highest.height / 2 - H * b : x = R.highest.height - S * b, c && (x *= -1), I !== 0 && !T.showLabelBackdrop && (E += b / 2 * Math.sin(I))) : (v = D, x = (1 - S) * b / 2);
53772
53774
  let eA;
53773
53775
  if (T.showLabelBackdrop) {
53774
- const oA = Pn(T.backdropPadding), sA = M.heights[d], gA = M.widths[d];
53776
+ const oA = Pn(T.backdropPadding), sA = R.heights[d], gA = R.widths[d];
53775
53777
  let IA = x - oA.top, LA = 0 - oA.left;
53776
53778
  switch (F) {
53777
53779
  case "middle":
@@ -55023,7 +55025,7 @@ function qf(t, A, e, i, r, n) {
55023
55025
  const T = l > 0 ? l - i : 0, H = c > 0 ? c - i : 0, U = (T + H) / 2, G = U !== 0 ? C * U / (U + i) : C;
55024
55026
  u = (C - G) / 2;
55025
55027
  }
55026
- const I = Math.max(1e-3, C * c - e / Yt) / c, f = (C - I) / 2, d = s + f + u, B = r - f - u, { outerStart: Q, outerEnd: p, innerStart: E, innerEnd: v } = uuA(A, h, c, B - d), y = c - Q, D = c - p, k = d + Q / y, b = B - p / D, S = h + E, x = h + v, F = d + E / S, M = B - v / x;
55028
+ const I = Math.max(1e-3, C * c - e / Yt) / c, f = (C - I) / 2, d = s + f + u, B = r - f - u, { outerStart: Q, outerEnd: p, innerStart: E, innerEnd: v } = uuA(A, h, c, B - d), y = c - Q, D = c - p, k = d + Q / y, b = B - p / D, S = h + E, x = h + v, F = d + E / S, R = B - v / x;
55027
55029
  if (t.beginPath(), n) {
55028
55030
  const T = (k + b) / 2;
55029
55031
  if (t.arc(a, o, c, k, T), t.arc(a, o, c, T, b), p > 0) {
@@ -55032,8 +55034,8 @@ function qf(t, A, e, i, r, n) {
55032
55034
  }
55033
55035
  const H = El(x, B, a, o);
55034
55036
  if (t.lineTo(H.x, H.y), v > 0) {
55035
- const z = El(x, M, a, o);
55036
- t.arc(z.x, z.y, v, B + Ni, M + Math.PI);
55037
+ const z = El(x, R, a, o);
55038
+ t.arc(z.x, z.y, v, B + Ni, R + Math.PI);
55037
55039
  }
55038
55040
  const U = (B - v / h + (d + E / h)) / 2;
55039
55041
  if (t.arc(a, o, h, B - v / h, U, !0), t.arc(a, o, h, U, d + E / h, !0), E > 0) {
@@ -55429,8 +55431,8 @@ class OS extends Is {
55429
55431
  if (d(F, x, v), S = ZgA(k, S + C + h, Q ? S + b : this.right, A.rtl), B(s.x(S), x, v), Q)
55430
55432
  u.x += b + l;
55431
55433
  else if (typeof v.text != "string") {
55432
- const M = g.lineHeight;
55433
- u.y += pR(v, M) + l;
55434
+ const R = g.lineHeight;
55435
+ u.y += pR(v, R) + l;
55434
55436
  } else
55435
55437
  u.y += E;
55436
55438
  }), aR(this.ctx, A.textDirection);
@@ -56772,12 +56774,12 @@ const OuA = ["aria-label"], HuA = { class: "open-generative-ui-chart__header" },
56772
56774
  class: "open-generative-ui-chart",
56773
56775
  "aria-label": a.value.title
56774
56776
  }, [
56775
- R("header", HuA, [
56776
- R("h3", null, EA(a.value.title), 1),
56777
+ M("header", HuA, [
56778
+ M("h3", null, EA(a.value.title), 1),
56777
56779
  a.value.description ? (Y(), P("p", ZuA, EA(a.value.description), 1)) : DA("", !0)
56778
56780
  ]),
56779
- R("div", KuA, [
56780
- R("canvas", {
56781
+ M("div", KuA, [
56782
+ M("canvas", {
56781
56783
  ref_key: "canvasRef",
56782
56784
  ref: e,
56783
56785
  "aria-label": a.value.title,
@@ -56821,15 +56823,15 @@ const OuA = ["aria-label"], HuA = { class: "open-generative-ui-chart__header" },
56821
56823
  return typeof n == "object" && n !== null && !Array.isArray(n);
56822
56824
  }
56823
56825
  return (n, a) => e.value.approach || e.value.technology || e.value.keyElements.length ? (Y(), P("section", WuA, [
56824
- R("header", null, [
56825
- a[0] || (a[0] = R("strong", null, "执行计划", -1)),
56826
+ M("header", null, [
56827
+ a[0] || (a[0] = M("strong", null, "执行计划", -1)),
56826
56828
  e.value.technology ? (Y(), P("span", VuA, EA(e.value.technology), 1)) : DA("", !0)
56827
56829
  ]),
56828
56830
  e.value.approach ? (Y(), P("p", zuA, EA(e.value.approach), 1)) : DA("", !0),
56829
56831
  e.value.keyElements.length ? (Y(), P("ol", XuA, [
56830
56832
  (Y(!0), P(Ge, null, Qt(e.value.keyElements, (o, s) => (Y(), P("li", { key: o }, [
56831
- R("span", juA, EA(s + 1), 1),
56832
- R("span", null, EA(o), 1)
56833
+ M("span", juA, EA(s + 1), 1),
56834
+ M("span", null, EA(o), 1)
56833
56835
  ]))), 128))
56834
56836
  ])) : DA("", !0)
56835
56837
  ])) : DA("", !0);
@@ -56888,15 +56890,15 @@ const OuA = ["aria-label"], HuA = { class: "open-generative-ui-chart__header" },
56888
56890
  class: "open-generative-ui-schedule",
56889
56891
  "aria-label": i.value.title
56890
56892
  }, [
56891
- R("header", null, [
56892
- R("strong", null, EA(i.value.title), 1),
56893
- l[0] || (l[0] = R("small", null, "选择合适的会议时间", -1))
56893
+ M("header", null, [
56894
+ M("strong", null, EA(i.value.title), 1),
56895
+ l[0] || (l[0] = M("small", null, "选择合适的会议时间", -1))
56894
56896
  ]),
56895
- R("ol", null, [
56897
+ M("ol", null, [
56896
56898
  (Y(!0), P(Ge, null, Qt(i.value.slots, (c) => (Y(), P("li", {
56897
56899
  key: n(c)
56898
56900
  }, [
56899
- R("button", {
56901
+ M("button", {
56900
56902
  type: "button",
56901
56903
  class: Be({
56902
56904
  "open-generative-ui-schedule__slot--selected": e.value === n(c)
@@ -56904,9 +56906,9 @@ const OuA = ["aria-label"], HuA = { class: "open-generative-ui-chart__header" },
56904
56906
  "aria-pressed": e.value === n(c),
56905
56907
  onClick: (h) => a(c)
56906
56908
  }, [
56907
- R("span", null, [
56908
- R("strong", null, EA(c.date), 1),
56909
- R("small", null, EA(c.time), 1)
56909
+ M("span", null, [
56910
+ M("strong", null, EA(c.date), 1),
56911
+ M("small", null, EA(c.time), 1)
56910
56912
  ]),
56911
56913
  c.duration ? (Y(), P("small", i0A, EA(c.duration), 1)) : DA("", !0)
56912
56914
  ], 10, t0A)
@@ -56931,7 +56933,7 @@ const OuA = ["aria-label"], HuA = { class: "open-generative-ui-chart__header" },
56931
56933
  system: "跟随系统"
56932
56934
  }[A.result.theme] ?? A.result.theme}主题` : "主题偏好已更新");
56933
56935
  return (i, r) => (Y(), P("p", o0A, [
56934
- r[0] || (r[0] = R("span", { "aria-hidden": "true" }, "◐", -1)),
56936
+ r[0] || (r[0] = M("span", { "aria-hidden": "true" }, "◐", -1)),
56935
56937
  qv(EA(e.value), 1)
56936
56938
  ]));
56937
56939
  }
@@ -57026,41 +57028,41 @@ const OuA = ["aria-label"], HuA = { class: "open-generative-ui-chart__header" },
57026
57028
  class: "open-gen-ui-result",
57027
57029
  "aria-label": `生成式界面:${n.value}`
57028
57030
  }, [
57029
- R("header", c0A, [
57030
- R("div", null, [
57031
- C[0] || (C[0] = R("strong", null, "生成式界面", -1)),
57032
- R("span", u0A, EA(n.value), 1)
57031
+ M("header", c0A, [
57032
+ M("div", null, [
57033
+ C[0] || (C[0] = M("strong", null, "生成式界面", -1)),
57034
+ M("span", u0A, EA(n.value), 1)
57033
57035
  ]),
57034
- R("span", {
57036
+ M("span", {
57035
57037
  class: Be(["open-gen-ui-result__badge", { "open-gen-ui-result__badge--complete": e.value.generating === !1 }])
57036
57038
  }, EA(e.value.generating === !1 ? "完成" : "流式"), 3)
57037
57039
  ]),
57038
- R("div", h0A, [
57040
+ M("div", h0A, [
57039
57041
  (Y(!0), P(Ge, null, Qt(i.value, (I) => (Y(), P("div", {
57040
57042
  key: I.id,
57041
57043
  class: Be(["open-gen-ui-result__stage", `open-gen-ui-result__stage--${I.state}`]),
57042
57044
  role: "listitem"
57043
57045
  }, [
57044
- C[1] || (C[1] = R("span", {
57046
+ C[1] || (C[1] = M("span", {
57045
57047
  class: "open-gen-ui-result__marker",
57046
57048
  "aria-hidden": "true"
57047
57049
  }, null, -1)),
57048
- R("span", C0A, [
57049
- R("span", null, EA(I.label), 1),
57050
- R("small", null, EA(I.detail), 1)
57050
+ M("span", C0A, [
57051
+ M("span", null, EA(I.label), 1),
57052
+ M("small", null, EA(I.detail), 1)
57051
57053
  ])
57052
57054
  ], 2))), 128))
57053
57055
  ]),
57054
57056
  r.value.length ? (Y(), P("details", I0A, [
57055
- C[2] || (C[2] = R("summary", null, "查看生成片段", -1)),
57056
- R("div", f0A, [
57057
+ C[2] || (C[2] = M("summary", null, "查看生成片段", -1)),
57058
+ M("div", f0A, [
57057
57059
  (Y(!0), P(Ge, null, Qt(r.value, (I) => (Y(), P("section", {
57058
57060
  key: I.label,
57059
57061
  class: "open-gen-ui-result__source"
57060
57062
  }, [
57061
- R("span", null, EA(I.label), 1),
57062
- R("pre", null, [
57063
- R("code", {
57063
+ M("span", null, EA(I.label), 1),
57064
+ M("pre", null, [
57065
+ M("code", {
57064
57066
  class: Be(`language-${I.language}`)
57065
57067
  }, EA(I.content), 3)
57066
57068
  ])
@@ -57106,8 +57108,8 @@ const OuA = ["aria-label"], HuA = { class: "open-generative-ui-chart__header" },
57106
57108
  }
57107
57109
  }
57108
57110
  return (n, a) => e.value.length ? (Y(), P("section", Q0A, [
57109
- a[0] || (a[0] = R("strong", { class: "conversation-sources__title" }, "检索来源", -1)),
57110
- R("ul", p0A, [
57111
+ a[0] || (a[0] = M("strong", { class: "conversation-sources__title" }, "检索来源", -1)),
57112
+ M("ul", p0A, [
57111
57113
  (Y(!0), P(Ge, null, Qt(e.value, (o) => (Y(), P("li", {
57112
57114
  key: o.url ?? o.title,
57113
57115
  class: "conversation-sources__item"
@@ -57505,14 +57507,14 @@ const Y0A = ["data-tool-call-id", "aria-label", "aria-busy"], U0A = { class: "to
57505
57507
  function k(nA) {
57506
57508
  return f.value ? !1 : ["running", "requires-approval", "requires-action"].includes(nA);
57507
57509
  }
57508
- const b = uA(k(s.value)), S = uA(!1), x = uA(!1), F = uA(null), M = uA(), T = uA(0);
57510
+ const b = uA(k(s.value)), S = uA(!1), x = uA(!1), F = uA(null), R = uA(), T = uA(0);
57509
57511
  let H;
57510
57512
  function U() {
57511
- const nA = M.value;
57513
+ const nA = R.value;
57512
57514
  nA && (T.value = nA.scrollHeight);
57513
57515
  }
57514
57516
  Oe(
57515
- M,
57517
+ R,
57516
57518
  (nA) => {
57517
57519
  H == null || H.disconnect(), H = void 0, nA && (U(), typeof ResizeObserver < "u" && (H = new ResizeObserver(U), H.observe(nA)));
57518
57520
  },
@@ -57594,11 +57596,11 @@ const Y0A = ["data-tool-call-id", "aria-label", "aria-busy"], U0A = { class: "to
57594
57596
  "aria-label": `${Q.value}:${p.value}`,
57595
57597
  "aria-busy": s.value === "pending" || s.value === "running" ? "true" : "false"
57596
57598
  }, [
57597
- R("div", U0A, [
57598
- R("div", {
57599
+ M("div", U0A, [
57600
+ M("div", {
57599
57601
  class: Be(["tool-call-part__line tool-call-part__line--top", { "tool-call-part__line--visible": !t.isFirst }])
57600
57602
  }, null, 2),
57601
- R("div", J0A, [
57603
+ M("div", J0A, [
57602
57604
  (Y(), se(Jn(E.value), {
57603
57605
  class: Be(["tool-call-part__indicator", { "tool-call-part__indicator--running": s.value === "running" }]),
57604
57606
  size: 16,
@@ -57606,19 +57608,19 @@ const Y0A = ["data-tool-call-id", "aria-label", "aria-busy"], U0A = { class: "to
57606
57608
  "aria-hidden": "true"
57607
57609
  }, null, 8, ["class"]))
57608
57610
  ]),
57609
- R("div", {
57611
+ M("div", {
57610
57612
  class: Be(["tool-call-part__line tool-call-part__line--bottom", { "tool-call-part__line--visible": !t.isLast || b.value }])
57611
57613
  }, null, 2)
57612
57614
  ]),
57613
- R("div", O0A, [
57614
- R("button", {
57615
+ M("div", O0A, [
57616
+ M("button", {
57615
57617
  type: "button",
57616
57618
  class: "tool-call-part__header",
57617
57619
  "aria-expanded": b.value,
57618
57620
  "data-testid": "tool-call-header",
57619
57621
  onClick: oA
57620
57622
  }, [
57621
- R("span", Z0A, EA(Q.value), 1),
57623
+ M("span", Z0A, EA(Q.value), 1),
57622
57624
  D.value ? (Y(), P("span", K0A, EA(D.value), 1)) : v.value && !b.value ? (Y(), P("span", q0A, EA(v.value), 1)) : DA("", !0),
57623
57625
  De(_A(zv), {
57624
57626
  class: Be(["tool-call-part__chevron", { "tool-call-part__chevron--open": b.value }]),
@@ -57627,19 +57629,19 @@ const Y0A = ["data-tool-call-id", "aria-label", "aria-busy"], U0A = { class: "to
57627
57629
  "aria-hidden": "true"
57628
57630
  }, null, 8, ["class"])
57629
57631
  ], 8, H0A),
57630
- R("div", {
57632
+ M("div", {
57631
57633
  class: Be(["tool-call-part__body-wrapper", { "tool-call-part__body-wrapper--open": b.value }]),
57632
57634
  style: di(G.value),
57633
57635
  inert: !b.value,
57634
57636
  "aria-hidden": !b.value
57635
57637
  }, [
57636
- R("div", {
57638
+ M("div", {
57637
57639
  ref_key: "bodyContentRef",
57638
- ref: M,
57640
+ ref: R,
57639
57641
  class: "tool-call-part__body"
57640
57642
  }, [
57641
57643
  u.value ? (Y(), P("div", W0A, [
57642
- d0(R("textarea", {
57644
+ d0(M("textarea", {
57643
57645
  "onUpdate:modelValue": yA[0] || (yA[0] = (YA) => n.value = YA),
57644
57646
  class: "tool-call-part__editor",
57645
57647
  "aria-label": "工具参数 JSON",
@@ -57649,13 +57651,13 @@ const Y0A = ["data-tool-call-id", "aria-label", "aria-busy"], U0A = { class: "to
57649
57651
  ]),
57650
57652
  C.value ? DA("", !0) : (Y(), P("p", V0A, " 参数必须是有效的 JSON "))
57651
57653
  ])) : B.value ? (Y(), P("div", z0A, [
57652
- R("div", {
57654
+ M("div", {
57653
57655
  class: Be(["tool-call-part__details-clamp", {
57654
57656
  "tool-call-part__details-clamp--fade": x.value && !S.value,
57655
57657
  "tool-call-part__details-clamp--expanded": S.value
57656
57658
  }])
57657
57659
  }, [
57658
- R("pre", {
57660
+ M("pre", {
57659
57661
  ref_key: "detailsPreRef",
57660
57662
  ref: z,
57661
57663
  class: Be(["tool-call-part__streaming-arguments", { "tool-call-part__streaming-arguments--streaming": y.value }])
@@ -57679,29 +57681,29 @@ const Y0A = ["data-tool-call-id", "aria-label", "aria-busy"], U0A = { class: "to
57679
57681
  "is-streaming": t.isStreaming === !0
57680
57682
  }, null, 8, ["tool-call", "status", "result", "error", "message", "is-streaming"]))
57681
57683
  ])) : c.value ? (Y(), P("div", $0A, [
57682
- R("pre", AhA, EA(c.value), 1)
57684
+ M("pre", AhA, EA(c.value), 1)
57683
57685
  ])) : DA("", !0),
57684
57686
  o.value ? (Y(), P("p", ehA, EA(o.value), 1)) : DA("", !0),
57685
57687
  s.value === "requires-approval" ? (Y(), P("div", thA, [
57686
- R("button", {
57688
+ M("button", {
57687
57689
  type: "button",
57688
57690
  "data-testid": "tool-deny",
57689
57691
  disabled: F.value !== null,
57690
57692
  onClick: yA[1] || (yA[1] = (YA) => gA("deny"))
57691
57693
  }, EA(F.value === "deny" ? "处理中…" : "拒绝"), 9, ihA),
57692
- R("button", {
57694
+ M("button", {
57693
57695
  type: "button",
57694
57696
  "data-testid": "tool-approve",
57695
57697
  disabled: F.value !== null || u.value && !C.value,
57696
57698
  onClick: yA[2] || (yA[2] = (YA) => gA("approve"))
57697
57699
  }, EA(F.value === "approve" ? "处理中…" : "允许"), 9, rhA)
57698
57700
  ])) : s.value === "requires-action" ? (Y(), P("div", nhA, [
57699
- R("button", {
57701
+ M("button", {
57700
57702
  type: "button",
57701
57703
  disabled: F.value !== null,
57702
57704
  onClick: yA[3] || (yA[3] = (YA) => gA("cancel"))
57703
57705
  }, EA(F.value === "cancel" ? "处理中…" : "取消"), 9, ahA),
57704
- R("button", {
57706
+ M("button", {
57705
57707
  type: "button",
57706
57708
  disabled: F.value !== null || u.value && !C.value,
57707
57709
  onClick: yA[4] || (yA[4] = (YA) => gA("submit-action"))
@@ -57825,7 +57827,7 @@ const Y0A = ["data-tool-call-id", "aria-label", "aria-busy"], U0A = { class: "to
57825
57827
  rel: "noreferrer",
57826
57828
  "aria-label": `打开${a(g)}`
57827
57829
  }, [
57828
- R("img", {
57830
+ M("img", {
57829
57831
  class: "input-content__image",
57830
57832
  src: A(g),
57831
57833
  alt: a(g)
@@ -57963,7 +57965,7 @@ const Y0A = ["data-tool-call-id", "aria-label", "aria-busy"], U0A = { class: "to
57963
57965
  z.tool_calls.length > 0 && G.push(z);
57964
57966
  }
57965
57967
  return G;
57966
- }), M = $(() => F.value.length > 0), T = $(() => e.message.role === "user" || e.message.role === "system" ? e.message.content : ""), H = $(
57968
+ }), R = $(() => F.value.length > 0), T = $(() => e.message.role === "user" || e.message.role === "system" ? e.message.content : ""), H = $(
57967
57969
  () => e.message.role === "user" ? e.message.resource_files ?? [] : []
57968
57970
  ), U = $(() => !a.value || B.value);
57969
57971
  return (G, z) => (Y(), P("article", {
@@ -57980,7 +57982,7 @@ const Y0A = ["data-tool-call-id", "aria-label", "aria-busy"], U0A = { class: "to
57980
57982
  "aria-label": c.value,
57981
57983
  "aria-busy": t.streaming ? "true" : void 0
57982
57984
  }, [
57983
- R("div", bhA, [
57985
+ M("div", bhA, [
57984
57986
  b.value ? (Y(), P("span", ShA, [
57985
57987
  be(G.$slots, "assistant-avatar", {}, () => [
57986
57988
  t.assistantAvatar ? (Y(), P("img", {
@@ -57991,7 +57993,7 @@ const Y0A = ["data-tool-call-id", "aria-label", "aria-busy"], U0A = { class: "to
57991
57993
  }, null, 8, FhA)) : DA("", !0)
57992
57994
  ], !0)
57993
57995
  ])) : DA("", !0),
57994
- R("div", NhA, [
57996
+ M("div", NhA, [
57995
57997
  H.value.length ? (Y(), se(qG, {
57996
57998
  key: 0,
57997
57999
  class: "conversation-message__attachments",
@@ -57999,7 +58001,7 @@ const Y0A = ["data-tool-call-id", "aria-label", "aria-busy"], U0A = { class: "to
57999
58001
  onPreview: z[0] || (z[0] = (AA) => i("attachment-preview", AA))
58000
58002
  }, null, 8, ["resources"])) : DA("", !0),
58001
58003
  U.value ? (Y(), P("div", xhA, [
58002
- M.value ? (Y(!0), P(Ge, { key: 0 }, Qt(F.value, (AA, eA) => (Y(), P(Ge, {
58004
+ R.value ? (Y(!0), P(Ge, { key: 0 }, Qt(F.value, (AA, eA) => (Y(), P(Ge, {
58003
58005
  key: `step-${eA}`
58004
58006
  }, [
58005
58007
  AA.type === "reasoning" ? (Y(), se(Hb, {
@@ -58271,11 +58273,11 @@ const Y0A = ["data-tool-call-id", "aria-label", "aria-busy"], U0A = { class: "to
58271
58273
  fill: "none",
58272
58274
  "aria-hidden": "true"
58273
58275
  }, [...e[0] || (e[0] = [
58274
- R("g", { transform: "translate(-2076.0 -552.0)" }, [
58275
- R("g", null, [
58276
- R("g", { transform: "translate(2076.0 552.0)" }, [
58277
- R("g", { transform: "translate(2.000000000000007 4.0)" }, [
58278
- R("path", {
58276
+ M("g", { transform: "translate(-2076.0 -552.0)" }, [
58277
+ M("g", null, [
58278
+ M("g", { transform: "translate(2076.0 552.0)" }, [
58279
+ M("g", { transform: "translate(2.000000000000007 4.0)" }, [
58280
+ M("path", {
58279
58281
  d: "M0,4 L4.27639723,8 L12.2763972,0",
58280
58282
  stroke: "#2C69F3",
58281
58283
  "stroke-width": "2",
@@ -58303,11 +58305,11 @@ const Y0A = ["data-tool-call-id", "aria-label", "aria-busy"], U0A = { class: "to
58303
58305
  fill: "none",
58304
58306
  "aria-hidden": "true"
58305
58307
  }, [...e[0] || (e[0] = [
58306
- R("g", { transform: "translate(-2033.0 -549.0)" }, [
58307
- R("g", null, [
58308
- R("g", { transform: "translate(2033.0 549.0)" }, [
58309
- R("g", { transform: "translate(3 2)" }, [
58310
- R("path", {
58308
+ M("g", { transform: "translate(-2033.0 -549.0)" }, [
58309
+ M("g", null, [
58310
+ M("g", { transform: "translate(2033.0 549.0)" }, [
58311
+ M("g", { transform: "translate(3 2)" }, [
58312
+ M("path", {
58311
58313
  d: "M6.61668011,2.02458201 C7.7003286,2.02458201 8.51458579,2.88305563 8.51458579,3.94300909 L8.51458579,5.88861581 C8.79114952,5.74311713 9.10410672,5.66003482 9.44030791,5.66003482 C10.3034439,5.66003482 10.9729508,6.2046739 11.2363119,6.96073341 C11.5369431,6.77732973 11.9008512,6.66981452 12.2813621,6.66981452 C13.1437808,6.66981452 13.8132877,7.21447976 14.0767551,7.97053926 C14.37728,7.78700479 14.68952,7.67951574 15.0701371,7.67951574 L15.121699,7.67951574 C16.2060647,7.67951574 16.9992828,8.5388003 17,9.59864913 L17,13.4363142 C17,17.0610417 16.4877023,20 10.9561619,20 C8.53493425,20 7.3895497,19.5248142 6.39037655,18.7221647 C6.25930696,18.644105 6.13487852,18.5516053 6.02208535,18.4412649 L0.540752061,13.0793951 C-0.393656674,12.1585051 0.0342719774,10.8656544 0.687069711,10.2229175 C1.33989401,9.58004978 2.69633406,9.47326704 3.46266877,10.2229175 L4.65401002,11.3916941 L4.65401002,3.94300909 C4.65401002,2.88376193 5.53303163,2.02458201 6.61668011,2.02458201 Z M6.61739736,3.23639089 C6.10366515,3.23639089 5.68734521,3.64340528 5.68734521,4.14514292 L5.68734521,13.8297257 C5.68734521,13.8297257 5.1655905,13.319434 4.57245679,12.7383025 C4.48988013,12.6574258 4.40590857,12.5751926 4.32175075,12.4927847 L4.06992715,12.2462181 C3.44501444,11.6343992 2.87761068,11.0792199 2.87761068,11.0792199 C2.51441989,10.7245243 1.82448489,10.7374209 1.44904783,11.1072105 C1.0735045,11.4776278 0.957815804,12.0552801 1.41698439,12.5074718 L6.60578864,17.5834191 C7.56854177,18.5251582 8.83917827,18.9894878 10.9554181,18.9894878 C15.766303,18.9894878 15.9580322,16.6835877 15.9656351,13.7738278 L15.9659476,13.4355033 L15.9680462,9.71974107 C15.9680462,8.77525528 15.0678526,8.81111985 15.0678526,8.81111985 C14.5540938,8.81111985 14.1712984,9.21810807 14.1712984,9.71974107 L14.1712984,11.71921 L14.1618414,11.71921 C14.167659,11.7521971 14.1712984,11.7858381 14.1712984,11.8202639 C14.1712984,12.0997511 13.9529642,12.3254807 13.6677138,12.3254807 C13.3824635,12.3254807 13.1510595,12.0990186 13.1510595,11.8207871 C13.1510595,11.7848179 13.1546723,11.7497642 13.1612072,11.71921 L13.1510595,11.71921 L13.1510595,8.79027079 C13.1510595,7.93896485 12.2224419,7.88164956 12.2224419,7.88164956 C11.7086831,7.88164956 11.343314,8.28863779 11.343314,8.79027079 L11.343314,11.1129394 L11.3331398,11.1129394 C11.3396746,11.1458479 11.343314,11.1795674 11.343314,11.2138886 C11.343314,11.4934804 11.11191,11.71921 10.8266597,11.71921 C10.5413828,11.71921 10.3098725,11.4927741 10.3098725,11.2145164 C10.3098725,11.1785472 10.3136181,11.1434936 10.320153,11.1129394 L10.3098725,11.1129394 L10.3098725,7.78056957 C10.3098725,6.85967957 9.40024854,6.8718437 9.40024854,6.8718437 C8.88648976,6.8718437 8.5153296,7.27893657 8.5153296,7.78056957 L8.5153296,10.3052673 L8.50515537,10.3052673 C8.51169025,10.3382805 8.5153296,10.372 8.5153296,10.4063212 C8.5153296,10.6858084 8.28392563,10.911538 7.99867528,10.911538 C7.71339837,10.911538 7.48188815,10.6851021 7.48188815,10.4068444 C7.48188815,10.3709798 7.48563375,10.3358215 7.49216864,10.3052673 L7.48188815,10.3052673 L7.48188815,4.14514292 C7.48188815,3.64340528 7.13115613,3.23639089 6.61739736,3.23639089 Z M6.58836228,0 C8.78897123,0 10.5734462,1.75715427 10.5734462,3.92430511 C10.5734462,4.28839189 10.5174215,4.63879729 10.422772,4.97272227 C10.1782982,4.7283933 9.84281427,4.5764594 9.4709103,4.5621502 C9.51824836,4.35645869 9.54449415,4.14289321 9.54449415,3.9235988 C9.54449415,2.31539626 8.22072852,1.01192477 6.58761848,1.01192477 C4.95453499,1.01192477 3.63087562,2.31539626 3.63087562,3.9235988 C3.63087562,4.34500087 3.72395787,4.74558004 3.88770188,5.10752175 L3.88770188,6.8037769 C3.09884042,6.08706116 2.60253457,5.0637832 2.60325103,3.92430511 C2.60325103,1.75715427 4.38764708,0 6.58836228,0 Z",
58312
58314
  fill: "#999999"
58313
58315
  })
@@ -58365,21 +58367,21 @@ const Y0A = ["data-tool-call-id", "aria-label", "aria-busy"], U0A = { class: "to
58365
58367
  fill: "none",
58366
58368
  "aria-hidden": "true"
58367
58369
  }, [...e[0] || (e[0] = [
58368
- R("path", {
58370
+ M("path", {
58369
58371
  d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z",
58370
58372
  stroke: "currentColor",
58371
58373
  "stroke-width": "1.5",
58372
58374
  "stroke-linecap": "round",
58373
58375
  "stroke-linejoin": "round"
58374
58376
  }, null, -1),
58375
- R("path", {
58377
+ M("path", {
58376
58378
  d: "M14 2v6h6",
58377
58379
  stroke: "currentColor",
58378
58380
  "stroke-width": "1.5",
58379
58381
  "stroke-linecap": "round",
58380
58382
  "stroke-linejoin": "round"
58381
58383
  }, null, -1),
58382
- R("path", {
58384
+ M("path", {
58383
58385
  d: "M12 11v6M9 14h6",
58384
58386
  stroke: "currentColor",
58385
58387
  "stroke-width": "1.5",
@@ -58399,12 +58401,12 @@ const Y0A = ["data-tool-call-id", "aria-label", "aria-busy"], U0A = { class: "to
58399
58401
  },
58400
58402
  setup(t) {
58401
58403
  return (A, e) => (Y(), P("div", tCA, [
58402
- R("div", iCA, [
58404
+ M("div", iCA, [
58403
58405
  De(_A(eCA), {
58404
58406
  size: 48,
58405
58407
  class: "chat-file-drop-overlay__icon"
58406
58408
  }),
58407
- R("p", rCA, EA(t.label), 1)
58409
+ M("p", rCA, EA(t.label), 1)
58408
58410
  ])
58409
58411
  ]));
58410
58412
  }
@@ -58695,7 +58697,7 @@ function uCA(t) {
58695
58697
  } catch {
58696
58698
  }
58697
58699
  }
58698
- function M() {
58700
+ function R() {
58699
58701
  return !h.value || u.value || t.isDisabled();
58700
58702
  }
58701
58703
  async function T(GA) {
@@ -58714,7 +58716,7 @@ function uCA(t) {
58714
58716
  }
58715
58717
  async function H() {
58716
58718
  var GA, WA;
58717
- if (!M()) {
58719
+ if (!R()) {
58718
58720
  if (A.value)
58719
58721
  U();
58720
58722
  else {
@@ -58778,10 +58780,10 @@ function uCA(t) {
58778
58780
  }
58779
58781
  async function oA() {
58780
58782
  var GA;
58781
- M() || i.value || (n.value ? await XA(!1) : await LA(), (GA = t.onVoiceRecord) == null || GA.call(t));
58783
+ R() || i.value || (n.value ? await XA(!1) : await LA(), (GA = t.onVoiceRecord) == null || GA.call(t));
58782
58784
  }
58783
58785
  async function sA() {
58784
- M() || !i.value || (o.value = !0, y(), v = setTimeout(() => {
58786
+ R() || !i.value || (o.value = !0, y(), v = setTimeout(() => {
58785
58787
  v = null, !(!o.value || !i.value || n.value) && LA();
58786
58788
  }, E));
58787
58789
  }
@@ -59284,7 +59286,7 @@ const NCA = {
59284
59286
  ), x = $(() => i.maxRows * 24 + 24), F = $(() => {
59285
59287
  const J = g.value;
59286
59288
  return !J || !B.value ? null : Q.value ?? bCA(J);
59287
- }), M = $(() => {
59289
+ }), R = $(() => {
59288
59290
  if (i.triggerMenuPlacement === "custom") return;
59289
59291
  if (!B.value)
59290
59292
  return { position: "fixed", left: "0px", top: "0px", visibility: "hidden" };
@@ -59949,17 +59951,17 @@ const NCA = {
59949
59951
  lA.retry(J);
59950
59952
  }
59951
59953
  function Lt(J) {
59952
- return J.status === "uploaded" ? J.resource.fileName : J.file.name;
59954
+ return J.status === "uploaded" ? J.resource.filename : J.file.name;
59953
59955
  }
59954
59956
  function dh(J) {
59955
59957
  const j = Lt(J);
59956
59958
  return mc(j) || "file";
59957
59959
  }
59958
59960
  function rB(J) {
59959
- return J.status === "uploaded" ? DI({ name: J.resource.fileName, type: "" }) === "image" : DI(J.file) === "image";
59961
+ return J.status === "uploaded" ? DI({ name: J.resource.filename, type: "" }) === "image" : DI(J.file) === "image";
59960
59962
  }
59961
59963
  function YR(J) {
59962
- return J.previewUrl ? J.previewUrl : J.status === "uploaded" ? rc(J.resource.url, { width: FIA }) : "";
59964
+ return J.previewUrl ? J.previewUrl : J.status === "uploaded" ? rc(J.resource.original_url, { width: FIA }) : "";
59963
59965
  }
59964
59966
  function nB(J) {
59965
59967
  return J.status === "uploading" ? `上传中 ${J.progress}%` : J.status === "error" ? J.error.message : UR(J.resource.size);
@@ -60043,7 +60045,7 @@ const NCA = {
60043
60045
  onDragleave: ar,
60044
60046
  onDrop: gn
60045
60047
  }, [
60046
- R("div", {
60048
+ M("div", {
60047
60049
  class: "chat-sender__inner",
60048
60050
  onMousedown: fr,
60049
60051
  onClick: vs
@@ -60060,7 +60062,7 @@ const NCA = {
60060
60062
  class: "chat-sender__file-card chat-sender__file-card--image",
60061
60063
  "aria-label": `${Lt(iA)}, ${nB(iA)}`
60062
60064
  }, [
60063
- R("img", {
60065
+ M("img", {
60064
60066
  src: YR(iA),
60065
60067
  alt: Lt(iA),
60066
60068
  class: "chat-sender__file-image"
@@ -60071,19 +60073,19 @@ const NCA = {
60071
60073
  class: "chat-sender__file-card",
60072
60074
  "aria-label": `${Lt(iA)}, ${dh(iA)}, ${nB(iA)}`
60073
60075
  }, [
60074
- R("img", {
60076
+ M("img", {
60075
60077
  class: "chat-sender__file-type-icon",
60076
60078
  src: _A(L3)(Lt(iA)),
60077
60079
  alt: "",
60078
60080
  "aria-hidden": "true"
60079
60081
  }, null, 8, RCA),
60080
- R("div", GCA, [
60081
- R("h3", LCA, EA(Lt(iA)), 1),
60082
- R("p", TCA, EA(nB(iA)), 1)
60082
+ M("div", GCA, [
60083
+ M("h3", LCA, EA(Lt(iA)), 1),
60084
+ M("p", TCA, EA(nB(iA)), 1)
60083
60085
  ]),
60084
- R("div", YCA, [
60085
- R("div", UCA, [
60086
- R("p", JCA, EA(dh(iA)), 1)
60086
+ M("div", YCA, [
60087
+ M("div", UCA, [
60088
+ M("p", JCA, EA(dh(iA)), 1)
60087
60089
  ])
60088
60090
  ])
60089
60091
  ], 8, MCA)),
@@ -60096,7 +60098,7 @@ const NCA = {
60096
60098
  "aria-valuemax": "100",
60097
60099
  "aria-valuenow": iA.progress
60098
60100
  }, [
60099
- R("span", {
60101
+ M("span", {
60100
60102
  style: di({ width: `${iA.progress}%` })
60101
60103
  }, null, 4)
60102
60104
  ], 8, OCA)) : DA("", !0),
@@ -60113,7 +60115,7 @@ const NCA = {
60113
60115
  "aria-hidden": "true"
60114
60116
  })
60115
60117
  ], 8, HCA)) : DA("", !0),
60116
- R("button", {
60118
+ M("button", {
60117
60119
  type: "button",
60118
60120
  class: "chat-sender__file-remove-btn",
60119
60121
  "aria-label": `移除 ${Lt(iA)}`,
@@ -60128,9 +60130,9 @@ const NCA = {
60128
60130
  ], 2))), 128))
60129
60131
  ])) : DA("", !0),
60130
60132
  _A(fe) ? (Y(), P("p", KCA, EA(_A(fe)), 1)) : DA("", !0),
60131
- R("div", qCA, [
60132
- R("div", PCA, [
60133
- R("div", {
60133
+ M("div", qCA, [
60134
+ M("div", PCA, [
60135
+ M("div", {
60134
60136
  ref_key: "editorRef",
60135
60137
  ref: g,
60136
60138
  class: Be(["chat-sender__editor", { "chat-sender__editor--disabled": i.disabled }]),
@@ -60161,7 +60163,7 @@ const NCA = {
60161
60163
  class: Be(["chat-sender__trigger-menu", {
60162
60164
  "chat-sender__trigger-menu--custom": i.triggerMenuPlacement === "custom"
60163
60165
  }]),
60164
- style: di(M.value),
60166
+ style: di(R.value),
60165
60167
  onMousedown: j[0] || (j[0] = Gr(() => {
60166
60168
  }, ["prevent"]))
60167
60169
  }, [
@@ -60178,10 +60180,10 @@ const NCA = {
60178
60180
  })
60179
60181
  ]))
60180
60182
  ]),
60181
- R("div", VCA, [
60182
- R("div", zCA, [
60183
+ M("div", VCA, [
60184
+ M("div", zCA, [
60183
60185
  i.showAttachment ? (Y(), P("div", XCA, [
60184
- R("button", {
60186
+ M("button", {
60185
60187
  type: "button",
60186
60188
  class: Be(["chat-sender__icon-button", { "chat-sender__icon-button--active": sA.value }]),
60187
60189
  disabled: i.disabled,
@@ -60201,14 +60203,14 @@ const NCA = {
60201
60203
  onClick: j[1] || (j[1] = Gr(() => {
60202
60204
  }, ["stop"]))
60203
60205
  }, [
60204
- R("button", {
60206
+ M("button", {
60205
60207
  type: "button",
60206
60208
  role: "menuitem",
60207
60209
  class: "chat-sender__attachment-menu-item",
60208
60210
  onClick: OR
60209
60211
  }, [
60210
60212
  De(_A(jhA), { size: 18 }),
60211
- j[15] || (j[15] = R("span", null, "添加文件或图片", -1))
60213
+ j[15] || (j[15] = M("span", null, "添加文件或图片", -1))
60212
60214
  ]),
60213
60215
  i.showScreenshot ? (Y(), P("button", {
60214
60216
  key: 0,
@@ -60217,19 +60219,19 @@ const NCA = {
60217
60219
  class: "chat-sender__attachment-menu-item",
60218
60220
  onClick: HR
60219
60221
  }, [...j[16] || (j[16] = [
60220
- R("svg", {
60222
+ M("svg", {
60221
60223
  width: "18",
60222
60224
  height: "18",
60223
60225
  viewBox: "0 0 24 24",
60224
60226
  fill: "none",
60225
60227
  xmlns: "http://www.w3.org/2000/svg"
60226
60228
  }, [
60227
- R("path", {
60229
+ M("path", {
60228
60230
  d: "M9 3h2.25L12.4 4.8A.5.5 0 0 0 12.8 5H15.5A1.5 1.5 0 0 1 17 6.5v10a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 3 16.5v-10A1.5 1.5 0 0 1 4.5 5H7.2a.5.5 0 0 0 .4-.2L8.75 3H9zm3 5.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7zm0 1.5a2 2 0 1 1 0 4 2 2 0 0 1 0-4z",
60229
60231
  fill: "#333333"
60230
60232
  })
60231
60233
  ], -1),
60232
- R("span", null, "截图", -1)
60234
+ M("span", null, "截图", -1)
60233
60235
  ])])) : DA("", !0),
60234
60236
  i.customMenuItems && i.customMenuItems.length > 0 ? (Y(), P("div", $CA)) : DA("", !0),
60235
60237
  (Y(!0), P(Ge, null, Qt(i.customMenuItems, (iA) => (Y(), P("button", {
@@ -60241,7 +60243,7 @@ const NCA = {
60241
60243
  onClick: (NA) => KR(iA.id)
60242
60244
  }, [
60243
60245
  (Y(), se(Jn(iA.icon))),
60244
- R("span", null, EA(iA.label), 1)
60246
+ M("span", null, EA(iA.label), 1)
60245
60247
  ], 8, AIA))), 128))
60246
60248
  ])) : DA("", !0)
60247
60249
  ]),
@@ -60274,8 +60276,8 @@ const NCA = {
60274
60276
  "stroke-width": 1.75,
60275
60277
  "aria-hidden": "true"
60276
60278
  })) : DA("", !0),
60277
- R("span", null, EA(LA.value.label), 1),
60278
- R("button", {
60279
+ M("span", null, EA(LA.value.label), 1),
60280
+ M("button", {
60279
60281
  type: "button",
60280
60282
  class: "chat-sender__quick-action-remove",
60281
60283
  "aria-label": "退出该模式",
@@ -60301,17 +60303,17 @@ const NCA = {
60301
60303
  "stroke-width": 1.75,
60302
60304
  "aria-hidden": "true"
60303
60305
  })) : DA("", !0),
60304
- R("span", null, EA(iA.label), 1)
60306
+ M("span", null, EA(iA.label), 1)
60305
60307
  ], 8, nIA))), 128))
60306
60308
  ]))
60307
60309
  ], 64)) : DA("", !0)
60308
60310
  ]),
60309
- R("div", oIA, [
60310
- R("div", sIA, [
60311
+ M("div", oIA, [
60312
+ M("div", sIA, [
60311
60313
  J.$slots["toolbar-before-voice"] ? (Y(), P("div", gIA, [
60312
60314
  be(J.$slots, "toolbar-before-voice", {}, void 0, !0)
60313
60315
  ])) : DA("", !0),
60314
- R("div", {
60316
+ M("div", {
60315
60317
  ref_key: "voiceWrapperRef",
60316
60318
  ref: UA,
60317
60319
  class: Be(["chat-sender__voice-wrapper", {
@@ -60322,7 +60324,7 @@ const NCA = {
60322
60324
  onMouseenter: bi,
60323
60325
  onMouseleave: Sa
60324
60326
  }, [
60325
- R("div", {
60327
+ M("div", {
60326
60328
  class: Be(["chat-sender__voice-group", { "chat-sender__voice-group--menu-open": _A(XA) }])
60327
60329
  }, [
60328
60330
  Jt.value ? DA("", !0) : (Y(), P("div", {
@@ -60331,7 +60333,7 @@ const NCA = {
60331
60333
  "chat-sender__voice-settings-wrapper--visible": _A(nA) || _A(XA)
60332
60334
  }])
60333
60335
  }, [
60334
- R("button", {
60336
+ M("button", {
60335
60337
  type: "button",
60336
60338
  class: Be(["chat-sender__voice-settings", { "chat-sender__voice-settings--active": _A(XA) }]),
60337
60339
  disabled: i.disabled,
@@ -60345,7 +60347,7 @@ const NCA = {
60345
60347
  De(_A(qhA))
60346
60348
  ], 10, cIA)
60347
60349
  ], 2)),
60348
- R("button", {
60350
+ M("button", {
60349
60351
  type: "button",
60350
60352
  class: Be(["chat-sender__voice-button", {
60351
60353
  "chat-sender__voice-button--recording": _A(yA),
@@ -60367,7 +60369,7 @@ const NCA = {
60367
60369
  key: 0,
60368
60370
  size: 20
60369
60371
  })) : _A(yA) ? (Y(), P("div", hIA, [
60370
- (Y(), P(Ge, null, Qt(eA, (iA, NA) => R("span", {
60372
+ (Y(), P(Ge, null, Qt(eA, (iA, NA) => M("span", {
60371
60373
  key: NA,
60372
60374
  class: "chat-sender__voice-wave-bar",
60373
60375
  style: di({
@@ -60398,11 +60400,11 @@ const NCA = {
60398
60400
  onMouseenter: Hi,
60399
60401
  onMouseleave: sn
60400
60402
  }, [
60401
- R("div", CIA, [
60403
+ M("div", CIA, [
60402
60404
  De(_A(xp)),
60403
- j[17] || (j[17] = R("span", { class: "chat-sender__mic-permission-popover-title" }, "尚未获得麦克风权限", -1))
60405
+ j[17] || (j[17] = M("span", { class: "chat-sender__mic-permission-popover-title" }, "尚未获得麦克风权限", -1))
60404
60406
  ]),
60405
- R("p", IIA, [
60407
+ M("p", IIA, [
60406
60408
  j[18] || (j[18] = qv(" 语音输入提问需要开启麦克风权限,请点击前往设置进行开启。 ", -1)),
60407
60409
  i.micPermissionGuideUrl ? (Y(), P("a", {
60408
60410
  key: 0,
@@ -60413,10 +60415,10 @@ const NCA = {
60413
60415
  onClick: j[8] || (j[8] = (iA) => r("mic-permission-guide-click"))
60414
60416
  }, " 麦克风权限开启指南 ", 8, fIA)) : DA("", !0)
60415
60417
  ]),
60416
- R("div", dIA, [
60418
+ M("div", dIA, [
60417
60419
  De(_A(xp), { size: 48 })
60418
60420
  ]),
60419
- R("button", {
60421
+ M("button", {
60420
60422
  type: "button",
60421
60423
  class: "chat-sender__mic-permission-popover-dismiss",
60422
60424
  onClick: Bo
@@ -60436,25 +60438,25 @@ const NCA = {
60436
60438
  onClick: j[13] || (j[13] = Gr(() => {
60437
60439
  }, ["stop"]))
60438
60440
  }, [
60439
- R("div", BIA, [
60441
+ M("div", BIA, [
60440
60442
  De(_A(a3)),
60441
- j[19] || (j[19] = R("span", { class: "chat-sender__voice-menu-title" }, "麦克风", -1)),
60442
- R("div", QIA, [
60443
- R("div", {
60443
+ j[19] || (j[19] = M("span", { class: "chat-sender__voice-menu-title" }, "麦克风", -1)),
60444
+ M("div", QIA, [
60445
+ M("div", {
60444
60446
  class: "chat-sender__voice-level-bar",
60445
60447
  style: di({ width: `${_A(YA)}%` })
60446
60448
  }, null, 4)
60447
60449
  ])
60448
60450
  ]),
60449
- R("div", pIA, [
60450
- R("div", EIA, [
60451
+ M("div", pIA, [
60452
+ M("div", EIA, [
60451
60453
  (Y(!0), P(Ge, null, Qt(_A(tt), (iA, NA) => (Y(), P("button", {
60452
60454
  key: iA.deviceId,
60453
60455
  type: "button",
60454
60456
  class: Be(["chat-sender__voice-menu-item", { "chat-sender__voice-menu-item--active": iA.active }]),
60455
60457
  onClick: (re) => _A(yi)(NA)
60456
60458
  }, [
60457
- R("span", mIA, EA(iA.label), 1),
60459
+ M("span", mIA, EA(iA.label), 1),
60458
60460
  iA.active ? (Y(), se(_A(WhA), {
60459
60461
  key: 0,
60460
60462
  class: "chat-sender__voice-menu-check"
@@ -60462,29 +60464,29 @@ const NCA = {
60462
60464
  ], 10, vIA))), 128))
60463
60465
  ])
60464
60466
  ]),
60465
- R("div", yIA, [
60466
- R("button", {
60467
+ M("div", yIA, [
60468
+ M("button", {
60467
60469
  type: "button",
60468
60470
  class: "chat-sender__voice-menu-option",
60469
60471
  onClick: j[12] || (j[12] = //@ts-ignore
60470
60472
  (...iA) => _A(Ve) && _A(Ve)(...iA))
60471
60473
  }, [
60472
- R("div", wIA, [
60474
+ M("div", wIA, [
60473
60475
  De(_A(zhA)),
60474
- j[20] || (j[20] = R("span", { class: "chat-sender__voice-menu-option-label" }, "长按录音", -1))
60476
+ j[20] || (j[20] = M("span", { class: "chat-sender__voice-menu-option-label" }, "长按录音", -1))
60475
60477
  ]),
60476
- R("label", {
60478
+ M("label", {
60477
60479
  class: "chat-sender__voice-menu-switch",
60478
60480
  onClick: j[11] || (j[11] = Gr(() => {
60479
60481
  }, ["stop"]))
60480
60482
  }, [
60481
- R("input", {
60483
+ M("input", {
60482
60484
  type: "checkbox",
60483
60485
  checked: _A(ie),
60484
60486
  onChange: j[10] || (j[10] = //@ts-ignore
60485
60487
  (...iA) => _A(Ve) && _A(Ve)(...iA))
60486
60488
  }, null, 40, DIA),
60487
- j[21] || (j[21] = R("span", { class: "chat-sender__voice-menu-switch-slider" }, null, -1))
60489
+ j[21] || (j[21] = M("span", { class: "chat-sender__voice-menu-switch-slider" }, null, -1))
60488
60490
  ])
60489
60491
  ])
60490
60492
  ])
@@ -60493,18 +60495,18 @@ const NCA = {
60493
60495
  _: 1
60494
60496
  })
60495
60497
  ])),
60496
- R("div", {
60498
+ M("div", {
60497
60499
  class: Be(["chat-sender__send-wrapper", { "chat-sender__send-wrapper--visible": Qo.value }])
60498
60500
  }, [
60499
- R("button", {
60501
+ M("button", {
60500
60502
  type: "button",
60501
60503
  class: Be(["chat-sender__action-button", Wr.value ? "chat-sender__stop-button" : "chat-sender__send-button"]),
60502
60504
  disabled: !Wr.value && i.disabled,
60503
60505
  "aria-label": Wr.value ? "停止生成" : "发送消息",
60504
60506
  onClick: j[14] || (j[14] = (iA) => Wr.value ? it() : ce())
60505
60507
  }, [
60506
- R("span", bIA, [
60507
- R("img", {
60508
+ M("span", bIA, [
60509
+ M("img", {
60508
60510
  src: _A(UhA),
60509
60511
  alt: "",
60510
60512
  class: Be(["chat-sender__send-icon", { "chat-sender__action-icon--active": !Wr.value }])
@@ -60522,7 +60524,7 @@ const NCA = {
60522
60524
  ])
60523
60525
  ])
60524
60526
  ], 32),
60525
- R("input", {
60527
+ M("input", {
60526
60528
  ref_key: "fileInputRef",
60527
60529
  ref: u,
60528
60530
  type: "file",
@@ -60534,7 +60536,7 @@ const NCA = {
60534
60536
  }, null, 544)
60535
60537
  ], 38));
60536
60538
  }
60537
- }), xIA = /* @__PURE__ */ Me(NIA, [["__scopeId", "data-v-1e93934d"]]), _IA = {
60539
+ }), xIA = /* @__PURE__ */ Me(NIA, [["__scopeId", "data-v-8cc4305c"]]), _IA = {
60538
60540
  class: "chat-empty",
60539
60541
  role: "status"
60540
60542
  }, MIA = { class: "chat-empty__title" }, RIA = { class: "chat-empty__description" }, GIA = /* @__PURE__ */ oe({
@@ -60546,11 +60548,11 @@ const NCA = {
60546
60548
  },
60547
60549
  setup(t) {
60548
60550
  return (A, e) => (Y(), P("div", _IA, [
60549
- e[0] || (e[0] = R("div", {
60551
+ e[0] || (e[0] = M("div", {
60550
60552
  class: "chat-empty__icon",
60551
60553
  "aria-hidden": "true"
60552
60554
  }, [
60553
- R("svg", {
60555
+ M("svg", {
60554
60556
  viewBox: "0 0 24 24",
60555
60557
  width: "48",
60556
60558
  height: "48",
@@ -60558,11 +60560,11 @@ const NCA = {
60558
60560
  stroke: "currentColor",
60559
60561
  "stroke-width": "1.5"
60560
60562
  }, [
60561
- R("path", { d: "M3 12a9 9 0 1 1 18 0c0 4.97-4.03 9-9 9-1.27 0-2.48-.26-3.58-.74L3 21l.74-5.42A8.96 8.96 0 0 1 3 12z" })
60563
+ M("path", { d: "M3 12a9 9 0 1 1 18 0c0 4.97-4.03 9-9 9-1.27 0-2.48-.26-3.58-.74L3 21l.74-5.42A8.96 8.96 0 0 1 3 12z" })
60562
60564
  ])
60563
60565
  ], -1)),
60564
- R("h3", MIA, EA(t.title), 1),
60565
- R("p", RIA, EA(t.description), 1)
60566
+ M("h3", MIA, EA(t.title), 1),
60567
+ M("p", RIA, EA(t.description), 1)
60566
60568
  ]));
60567
60569
  }
60568
60570
  }), LIA = /* @__PURE__ */ Me(GIA, [["__scopeId", "data-v-27943bfd"]]), TIA = ["aria-label"], YIA = { class: "ask-form__header" }, UIA = { class: "ask-form__question" }, JIA = {
@@ -60596,7 +60598,7 @@ const NCA = {
60596
60598
  },
60597
60599
  emits: ["action", "answerChange", "previous", "next", "submitGroup"],
60598
60600
  setup(t, { emit: A }) {
60599
- const e = t, i = A, r = uA(!1), n = uA(""), a = uA([]), o = uA(null), s = $(() => String(e.node.props.question ?? "")), g = $(() => String(e.node.props.id ?? e.node.id)), l = $(() => e.node.props.multiple === !0), c = $(() => e.node.props.required !== !1), h = $(() => !c.value), u = $(() => n.value.trim().length > 0), C = $(() => e.questionCount > 1), I = $(() => e.questionCount > 1), f = $(() => e.questionIndex === e.questionCount - 1), d = $(() => e.questionIndex > 0), B = $(() => e.questionIndex < e.questionCount - 1), Q = $(
60601
+ const e = t, i = A, r = uA(!1), n = uA(""), a = uA([]), o = uA(null), s = $(() => String(e.node.props.question ?? "")), g = $(() => String(e.node.props.id ?? e.node.id)), l = $(() => e.node.props.multiple === !0), c = $(() => e.node.props.required !== !1), h = $(() => !c.value), u = $(() => e.questionCount > 1), C = $(() => e.questionCount > 1), I = $(() => !C.value || h.value), f = $(() => e.questionIndex === e.questionCount - 1), d = $(() => e.questionIndex > 0), B = $(() => e.questionIndex < e.questionCount - 1), Q = $(
60600
60602
  () => e.node.children.filter(
60601
60603
  (U) => U.kind === "component" && U.tag === "ask-option" && U.complete
60602
60604
  )
@@ -60626,7 +60628,7 @@ const NCA = {
60626
60628
  i("answerChange", D());
60627
60629
  }
60628
60630
  function b() {
60629
- if (I.value) {
60631
+ if (C.value) {
60630
60632
  if (B.value) {
60631
60633
  i("next");
60632
60634
  return;
@@ -60635,7 +60637,7 @@ const NCA = {
60635
60637
  }
60636
60638
  }
60637
60639
  function S(U, G) {
60638
- if (I.value) {
60640
+ if (C.value) {
60639
60641
  i("answerChange", { value: U, label: G });
60640
60642
  return;
60641
60643
  }
@@ -60653,19 +60655,19 @@ const NCA = {
60653
60655
  F(U);
60654
60656
  return;
60655
60657
  }
60656
- if (I.value) {
60658
+ if (C.value) {
60657
60659
  a.value = [U], k(), b();
60658
60660
  return;
60659
60661
  }
60660
60662
  S(U, G);
60661
60663
  }
60662
60664
  function F(U) {
60663
- a.value.includes(U) ? a.value = a.value.filter((G) => G !== U) : a.value = [...a.value, U], I.value && k();
60665
+ a.value.includes(U) ? a.value = a.value.filter((G) => G !== U) : a.value = [...a.value, U], C.value && k();
60664
60666
  }
60665
- function M() {
60667
+ function R() {
60666
60668
  if (a.value.length === 0) return;
60667
60669
  const U = a.value.map(E);
60668
- if (I.value) {
60670
+ if (C.value) {
60669
60671
  i("answerChange", {
60670
60672
  value: a.value.join(", "),
60671
60673
  label: U.join(", ")
@@ -60678,10 +60680,10 @@ const NCA = {
60678
60680
  const U = n.value.trim();
60679
60681
  if (U) {
60680
60682
  if (l.value) {
60681
- a.value.includes(U) || (a.value = [...a.value, U]), n.value = "", I.value && k();
60683
+ a.value.includes(U) || (a.value = [...a.value, U]), n.value = "", C.value && k();
60682
60684
  return;
60683
60685
  }
60684
- if (I.value) {
60686
+ if (C.value) {
60685
60687
  a.value = [U], k(), b();
60686
60688
  return;
60687
60689
  }
@@ -60689,12 +60691,28 @@ const NCA = {
60689
60691
  }
60690
60692
  }
60691
60693
  function H() {
60692
- if (h.value) {
60693
- if (a.value = [], n.value = "", I.value) {
60694
+ if (I.value) {
60695
+ if (a.value = [], n.value = "", C.value) {
60694
60696
  i("answerChange", { value: "", label: "跳过", skipped: !0 }), b();
60695
60697
  return;
60696
60698
  }
60697
- S("", "跳过");
60699
+ r.value || (r.value = !0, i("action", {
60700
+ type: "submit",
60701
+ value: "",
60702
+ label: "跳过",
60703
+ source: "ask-form",
60704
+ formId: g.value,
60705
+ question: s.value,
60706
+ answers: [
60707
+ {
60708
+ formId: g.value,
60709
+ question: s.value,
60710
+ value: "",
60711
+ label: "跳过",
60712
+ skipped: !0
60713
+ }
60714
+ ]
60715
+ }));
60698
60716
  }
60699
60717
  }
60700
60718
  return (U, G) => r.value ? DA("", !0) : (Y(), P("div", {
@@ -60705,10 +60723,10 @@ const NCA = {
60705
60723
  role: "group",
60706
60724
  "aria-label": s.value
60707
60725
  }, [
60708
- R("div", YIA, [
60709
- R("p", UIA, EA(s.value), 1),
60710
- C.value ? (Y(), P("div", JIA, [
60711
- R("button", {
60726
+ M("div", YIA, [
60727
+ M("p", UIA, EA(s.value), 1),
60728
+ u.value ? (Y(), P("div", JIA, [
60729
+ M("button", {
60712
60730
  type: "button",
60713
60731
  class: "ask-form__nav-button",
60714
60732
  "aria-label": "上一题",
@@ -60716,14 +60734,14 @@ const NCA = {
60716
60734
  disabled: !d.value,
60717
60735
  onClick: G[0] || (G[0] = (z) => i("previous"))
60718
60736
  }, [...G[5] || (G[5] = [
60719
- R("svg", {
60737
+ M("svg", {
60720
60738
  viewBox: "0 0 16 16",
60721
60739
  width: "14",
60722
60740
  height: "14",
60723
60741
  fill: "none",
60724
60742
  "aria-hidden": "true"
60725
60743
  }, [
60726
- R("path", {
60744
+ M("path", {
60727
60745
  d: "m9.5 3.5-4 4 4 4",
60728
60746
  stroke: "currentColor",
60729
60747
  "stroke-width": "1.75",
@@ -60732,8 +60750,8 @@ const NCA = {
60732
60750
  })
60733
60751
  ], -1)
60734
60752
  ])], 8, OIA),
60735
- R("span", HIA, EA(t.questionIndex + 1) + "/" + EA(t.questionCount), 1),
60736
- R("button", {
60753
+ M("span", HIA, EA(t.questionIndex + 1) + "/" + EA(t.questionCount), 1),
60754
+ M("button", {
60737
60755
  type: "button",
60738
60756
  class: "ask-form__nav-button",
60739
60757
  "aria-label": "下一个问题",
@@ -60741,14 +60759,14 @@ const NCA = {
60741
60759
  disabled: !B.value,
60742
60760
  onClick: G[1] || (G[1] = (z) => i("next"))
60743
60761
  }, [...G[6] || (G[6] = [
60744
- R("svg", {
60762
+ M("svg", {
60745
60763
  viewBox: "0 0 16 16",
60746
60764
  width: "14",
60747
60765
  height: "14",
60748
60766
  fill: "none",
60749
60767
  "aria-hidden": "true"
60750
60768
  }, [
60751
- R("path", {
60769
+ M("path", {
60752
60770
  d: "m6.5 3.5 4 4-4 4",
60753
60771
  stroke: "currentColor",
60754
60772
  "stroke-width": "1.75",
@@ -60757,10 +60775,19 @@ const NCA = {
60757
60775
  })
60758
60776
  ], -1)
60759
60777
  ])], 8, ZIA)
60760
- ])) : DA("", !0)
60778
+ ])) : DA("", !0),
60779
+ I.value ? (Y(), P("button", {
60780
+ key: 1,
60781
+ type: "button",
60782
+ class: "ask-form__skip",
60783
+ "data-testid": "ask-form-skip",
60784
+ "aria-label": "跳过",
60785
+ title: "跳过,改用输入框回答",
60786
+ onClick: H
60787
+ }, " 跳过 ")) : DA("", !0)
60761
60788
  ]),
60762
- R("div", KIA, [
60763
- R("div", {
60789
+ M("div", KIA, [
60790
+ M("div", {
60764
60791
  class: "ask-form__options",
60765
60792
  role: "listbox",
60766
60793
  "aria-label": s.value,
@@ -60770,7 +60797,7 @@ const NCA = {
60770
60797
  key: p(z),
60771
60798
  class: "ask-form__item"
60772
60799
  }, [
60773
- R("button", {
60800
+ M("button", {
60774
60801
  type: "button",
60775
60802
  role: "option",
60776
60803
  class: Be(["ask-form__option", { "is-active": y(AA, p(z)) }]),
@@ -60781,21 +60808,21 @@ const NCA = {
60781
60808
  onBlur: G[3] || (G[3] = (eA) => o.value = null),
60782
60809
  onClick: (eA) => x(p(z), String(z.props.label ?? ""))
60783
60810
  }, [
60784
- R("span", {
60811
+ M("span", {
60785
60812
  class: Be(["ask-form__index", { "is-active": y(AA, p(z)) }]),
60786
60813
  "aria-hidden": "true"
60787
60814
  }, EA(AA + 1), 3),
60788
- R("span", {
60815
+ M("span", {
60789
60816
  class: Be(["ask-form__label", { "is-muted": !y(AA, p(z)) }])
60790
60817
  }, EA(z.props.label), 3),
60791
- d0(R("span", WIA, [...G[7] || (G[7] = [
60792
- R("svg", {
60818
+ d0(M("span", WIA, [...G[7] || (G[7] = [
60819
+ M("svg", {
60793
60820
  viewBox: "0 0 16 16",
60794
60821
  width: "14",
60795
60822
  height: "14",
60796
60823
  fill: "none"
60797
60824
  }, [
60798
- R("path", {
60825
+ M("path", {
60799
60826
  d: "M3.5 8h9M8.5 4l4 4-4 4",
60800
60827
  stroke: "currentColor",
60801
60828
  "stroke-width": "1.75",
@@ -60814,22 +60841,22 @@ const NCA = {
60814
60841
  }, null, 2)) : DA("", !0)
60815
60842
  ]))), 128))
60816
60843
  ], 8, qIA),
60817
- R("div", {
60844
+ M("div", {
60818
60845
  class: Be(["ask-form__rule", { "is-hidden": o.value === Q.value.length - 1 }]),
60819
60846
  "aria-hidden": "true"
60820
60847
  }, null, 2),
60821
- R("div", VIA, [
60822
- G[8] || (G[8] = R("span", {
60848
+ M("div", VIA, [
60849
+ G[8] || (G[8] = M("span", {
60823
60850
  class: "ask-form__other-icon",
60824
60851
  "aria-hidden": "true"
60825
60852
  }, [
60826
- R("svg", {
60853
+ M("svg", {
60827
60854
  viewBox: "0 0 24 24",
60828
60855
  width: "14",
60829
60856
  height: "14",
60830
60857
  fill: "none"
60831
60858
  }, [
60832
- R("path", {
60859
+ M("path", {
60833
60860
  d: "M12 20h9M16.45 3.55a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4 12.45-12.45Z",
60834
60861
  stroke: "currentColor",
60835
60862
  "stroke-width": "1.75",
@@ -60838,7 +60865,7 @@ const NCA = {
60838
60865
  })
60839
60866
  ])
60840
60867
  ], -1)),
60841
- d0(R("input", {
60868
+ d0(M("input", {
60842
60869
  "onUpdate:modelValue": G[4] || (G[4] = (z) => n.value = z),
60843
60870
  type: "text",
60844
60871
  class: "ask-form__other-input",
@@ -60848,37 +60875,29 @@ const NCA = {
60848
60875
  }, null, 544), [
60849
60876
  [Pv, n.value]
60850
60877
  ]),
60851
- h.value && !u.value || I.value && l.value ? (Y(), P("div", zIA, [
60852
- h.value && !u.value ? (Y(), P("button", {
60853
- key: 0,
60854
- type: "button",
60855
- class: "ask-form__chip-btn",
60856
- "data-testid": "ask-form-skip",
60857
- onClick: H
60858
- }, " 跳过 ")) : DA("", !0),
60859
- I.value && l.value ? (Y(), P("button", {
60860
- key: 1,
60878
+ C.value && l.value ? (Y(), P("div", zIA, [
60879
+ M("button", {
60861
60880
  type: "button",
60862
60881
  class: "ask-form__chip-btn is-primary",
60863
60882
  "data-testid": "ask-form-confirm",
60864
60883
  "aria-label": "确认",
60865
60884
  disabled: a.value.length === 0 || f.value && !t.groupCanSubmit,
60866
- onClick: M
60867
- }, " 确认 ", 8, XIA)) : DA("", !0)
60885
+ onClick: R
60886
+ }, " 确认 ", 8, XIA)
60868
60887
  ])) : DA("", !0)
60869
60888
  ]),
60870
- l.value && !I.value ? (Y(), P("div", jIA, [
60871
- R("button", {
60889
+ l.value && !C.value ? (Y(), P("div", jIA, [
60890
+ M("button", {
60872
60891
  type: "button",
60873
60892
  class: "ask-form__chip-btn is-primary",
60874
60893
  disabled: a.value.length === 0,
60875
- onClick: M
60894
+ onClick: R
60876
60895
  }, " 确认 ", 8, $IA)
60877
60896
  ])) : DA("", !0)
60878
60897
  ])
60879
60898
  ], 8, TIA));
60880
60899
  }
60881
- }), efA = /* @__PURE__ */ Me(AfA, [["__scopeId", "data-v-74606be1"]]), tfA = 512 * 1024, ifA = /* @__PURE__ */ new Set(["session", "end"]), rfA = "response.ga.done", nfA = /* @__PURE__ */ new Set([
60900
+ }), efA = /* @__PURE__ */ Me(AfA, [["__scopeId", "data-v-fffc80f5"]]), tfA = 512 * 1024, ifA = /* @__PURE__ */ new Set(["session", "end"]), rfA = "response.ga.done", nfA = /* @__PURE__ */ new Set([
60882
60901
  "response.completed",
60883
60902
  "response.incomplete",
60884
60903
  "response.failed",
@@ -60936,9 +60955,9 @@ async function ofA(t, A) {
60936
60955
  }, f = (F) => {
60937
60956
  a.splice(o, Math.max(0, a.length - o), ...Nl(F)), C3(a);
60938
60957
  }, d = () => {
60939
- const F = s, M = F ? { ...F, output: Rp(a) } : null;
60940
- A.onUpdate(_R(a), M);
60941
- }, B = (F, M) => {
60958
+ const F = s, R = F ? { ...F, output: Rp(a) } : null;
60959
+ A.onUpdate(_R(a), R);
60960
+ }, B = (F, R) => {
60942
60961
  var T, H, U;
60943
60962
  switch (F.type) {
60944
60963
  case "response.created":
@@ -61027,7 +61046,7 @@ async function ofA(t, A) {
61027
61046
  h = c ?? "completed";
61028
61047
  break;
61029
61048
  }
61030
- if (C3(a), d(), (U = A.onEvent) == null || U.call(A, F, M), F.type === "response.failed") {
61049
+ if (C3(a), d(), (U = A.onEvent) == null || U.call(A, F, R), F.type === "response.failed") {
61031
61050
  const G = F.response.error;
61032
61051
  throw new Mt(
61033
61052
  (G == null ? void 0 : G.message) || "Responses stream failed",
@@ -61040,10 +61059,10 @@ async function ofA(t, A) {
61040
61059
  F.code ?? void 0
61041
61060
  );
61042
61061
  }, Q = () => {
61043
- const F = [...l.keys()].sort((M, T) => M - T);
61044
- for (const M of F) {
61045
- const T = l.get(M);
61046
- T && (l.delete(M), B(T.event, T.frame), g = M + 1);
61062
+ const F = [...l.keys()].sort((R, T) => R - T);
61063
+ for (const R of F) {
61064
+ const T = l.get(R);
61065
+ T && (l.delete(R), B(T.event, T.frame), g = R + 1);
61047
61066
  }
61048
61067
  }, p = () => {
61049
61068
  if (g !== null)
@@ -61052,10 +61071,10 @@ async function ofA(t, A) {
61052
61071
  if (!F) break;
61053
61072
  l.delete(g), B(F.event, F.frame), g += 1;
61054
61073
  }
61055
- }, E = (F, M) => {
61074
+ }, E = (F, R) => {
61056
61075
  const T = F.sequence_number;
61057
61076
  if (!(typeof T == "number" && Number.isSafeInteger(T) && T >= 0)) {
61058
- Q(), B(F, M);
61077
+ Q(), B(F, R);
61059
61078
  return;
61060
61079
  }
61061
61080
  if (F.type === "response.created")
@@ -61064,27 +61083,27 @@ async function ofA(t, A) {
61064
61083
  g = T;
61065
61084
  else if (T < g)
61066
61085
  return;
61067
- l.set(T, { event: F, frame: M }), p(), nfA.has(F.type) && l.size > 0 && Q();
61086
+ l.set(T, { event: F, frame: R }), p(), nfA.has(F.type) && l.size > 0 && Q();
61068
61087
  }, v = (F) => {
61069
- const M = sfA(F);
61070
- M && E(M, F);
61088
+ const R = sfA(F);
61089
+ R && E(R, F);
61071
61090
  };
61072
61091
  try {
61073
61092
  for (; !h; ) {
61074
61093
  const F = await i.read();
61075
61094
  if ((k = A.signal) != null && k.aborted) return { status: "aborted", response: s };
61076
61095
  if (F.done) break;
61077
- const M = r.decode(F.value, { stream: !0 });
61078
- for (const T of n.push(M))
61096
+ const R = r.decode(F.value, { stream: !0 });
61097
+ for (const T of n.push(R))
61079
61098
  if (v(T), h) break;
61080
61099
  }
61081
61100
  if (!h && !((b = A.signal) != null && b.aborted)) {
61082
61101
  const F = r.decode();
61083
- for (const M of n.push(F))
61084
- if (v(M), h) break;
61102
+ for (const R of n.push(F))
61103
+ if (v(R), h) break;
61085
61104
  if (!h) {
61086
- for (const M of n.finish())
61087
- if (v(M), h) break;
61105
+ for (const R of n.finish())
61106
+ if (v(R), h) break;
61088
61107
  }
61089
61108
  }
61090
61109
  if (!h && l.size > 0 && Q(), (S = A.signal) != null && S.aborted) return { status: "aborted", response: s };
@@ -61499,7 +61518,7 @@ const lfA = ["aria-busy"], cfA = {
61499
61518
  () => x.value && k.value.every(
61500
61519
  (X) => !E(X) || l.value.has(X.id)
61501
61520
  )
61502
- ), M = $(() => i.status === "streaming"), T = $(() => i.status === "aborted" && !i.responseError), H = $(
61521
+ ), R = $(() => i.status === "streaming"), T = $(() => i.status === "aborted" && !i.responseError), H = $(
61503
61522
  () => i.responseError ? LR(i.responseError) : null
61504
61523
  ), U = $(() => {
61505
61524
  var X, lA;
@@ -61945,9 +61964,9 @@ const lfA = ["aria-busy"], cfA = {
61945
61964
  class: Be(["ai-conversation", { "ai-conversation--with-ask": !!S.value }]),
61946
61965
  style: di(eA.value),
61947
61966
  "aria-label": "AI 对话",
61948
- "aria-busy": M.value ? "true" : "false"
61967
+ "aria-busy": R.value ? "true" : "false"
61949
61968
  }, [
61950
- R("div", {
61969
+ M("div", {
61951
61970
  ref_key: "listRef",
61952
61971
  ref: oA,
61953
61972
  class: "ai-conversation__messages",
@@ -62012,9 +62031,9 @@ const lfA = ["aria-busy"], cfA = {
62012
62031
  class: "ai-conversation__orphan-tool",
62013
62032
  role: "status"
62014
62033
  }, [
62015
- lA[0] || (lA[0] = R("strong", null, "未关联的工具结果", -1)),
62016
- R("span", null, EA(CA.tool_call_id), 1),
62017
- R("pre", null, EA(CA.content), 1)
62034
+ lA[0] || (lA[0] = M("strong", null, "未关联的工具结果", -1)),
62035
+ M("span", null, EA(CA.tool_call_id), 1),
62036
+ M("pre", null, EA(CA.content), 1)
62018
62037
  ]))), 128)),
62019
62038
  t.responseError && H.value ? be(X.$slots, "error", {
62020
62039
  key: 1,
@@ -62023,10 +62042,10 @@ const lfA = ["aria-busy"], cfA = {
62023
62042
  hasPartialContent: U.value,
62024
62043
  retry: ui
62025
62044
  }, void 0, !0) : T.value ? (Y(), P("section", cfA, [...lA[1] || (lA[1] = [
62026
- R("span", null, "已停止生成", -1)
62045
+ M("span", null, "已停止生成", -1)
62027
62046
  ])])) : DA("", !0),
62028
62047
  be(X.$slots, "append", {}, void 0, !0),
62029
- R("div", {
62048
+ M("div", {
62030
62049
  ref_key: "turnSpacerRef",
62031
62050
  ref: sA,
62032
62051
  class: "ai-conversation__turn-spacer",
@@ -62043,7 +62062,7 @@ const lfA = ["aria-busy"], cfA = {
62043
62062
  class: "ai-conversation__ask-dock",
62044
62063
  "data-testid": "ask-form-dock"
62045
62064
  }, [
62046
- R("div", ufA, [
62065
+ M("div", ufA, [
62047
62066
  (Y(!0), P(Ge, null, Qt(k.value, (CA, OA) => {
62048
62067
  var VA;
62049
62068
  return d0((Y(), se(efA, {
@@ -62076,11 +62095,11 @@ const lfA = ["aria-busy"], cfA = {
62076
62095
  title: "返回最新消息",
62077
62096
  onClick: ir
62078
62097
  }, [...lA[2] || (lA[2] = [
62079
- R("svg", {
62098
+ M("svg", {
62080
62099
  viewBox: "0 0 24 24",
62081
62100
  "aria-hidden": "true"
62082
62101
  }, [
62083
- R("path", { d: "m6 9 6 6 6-6" })
62102
+ M("path", { d: "m6 9 6 6 6-6" })
62084
62103
  ], -1)
62085
62104
  ])], 2)) : DA("", !0)
62086
62105
  ]),
@@ -62191,7 +62210,7 @@ const lfA = ["aria-busy"], cfA = {
62191
62210
  src: e.artifact.src
62192
62211
  }), o.value = !1);
62193
62212
  }
62194
- function M(H) {
62213
+ function R(H) {
62195
62214
  var U;
62196
62215
  !o.value || (U = c.value) != null && U.contains(H.target) || (o.value = !1);
62197
62216
  }
@@ -62200,17 +62219,17 @@ const lfA = ["aria-busy"], cfA = {
62200
62219
  H.key !== "Escape" || !o.value || (o.value = !1, (U = h.value) == null || U.focus());
62201
62220
  }
62202
62221
  return Ar(() => {
62203
- document.addEventListener("pointerdown", M), document.addEventListener("keydown", T);
62222
+ document.addEventListener("pointerdown", R), document.addEventListener("keydown", T);
62204
62223
  }), er(() => {
62205
- document.removeEventListener("pointerdown", M), document.removeEventListener("keydown", T), C && clearTimeout(C);
62224
+ document.removeEventListener("pointerdown", R), document.removeEventListener("keydown", T), C && clearTimeout(C);
62206
62225
  }), (H, U) => (Y(), P("section", {
62207
62226
  class: "artifact-preview",
62208
62227
  "aria-label": `${I.value} preview`
62209
62228
  }, [
62210
- R("header", dfA, [
62211
- R("div", BfA, [
62212
- R("div", QfA, [
62213
- R("button", {
62229
+ M("header", dfA, [
62230
+ M("div", BfA, [
62231
+ M("div", QfA, [
62232
+ M("button", {
62214
62233
  ref_key: "previewButtonRef",
62215
62234
  ref: g,
62216
62235
  type: "button",
@@ -62230,7 +62249,7 @@ const lfA = ["aria-busy"], cfA = {
62230
62249
  "aria-hidden": "true"
62231
62250
  })
62232
62251
  ], 42, pfA),
62233
- R("button", {
62252
+ M("button", {
62234
62253
  ref_key: "codeButtonRef",
62235
62254
  ref: l,
62236
62255
  type: "button",
@@ -62251,27 +62270,27 @@ const lfA = ["aria-busy"], cfA = {
62251
62270
  })
62252
62271
  ], 42, EfA)
62253
62272
  ]),
62254
- R("h2", {
62273
+ M("h2", {
62255
62274
  class: "artifact-preview__title",
62256
62275
  title: `${I.value} · ${d.value}`
62257
62276
  }, [
62258
- R("span", null, EA(I.value), 1),
62259
- U[4] || (U[4] = R("span", {
62277
+ M("span", null, EA(I.value), 1),
62278
+ U[4] || (U[4] = M("span", {
62260
62279
  class: "artifact-preview__title-separator",
62261
62280
  "aria-hidden": "true"
62262
62281
  }, "·", -1)),
62263
- R("span", mfA, EA(d.value), 1)
62282
+ M("span", mfA, EA(d.value), 1)
62264
62283
  ], 8, vfA)
62265
62284
  ]),
62266
- R("div", yfA, [
62267
- R("div", {
62285
+ M("div", yfA, [
62286
+ M("div", {
62268
62287
  ref_key: "menuRootRef",
62269
62288
  ref: c,
62270
62289
  class: "artifact-preview__split-button",
62271
62290
  role: "group",
62272
62291
  "aria-label": "More options"
62273
62292
  }, [
62274
- R("button", {
62293
+ M("button", {
62275
62294
  type: "button",
62276
62295
  class: Be(["artifact-preview__copy-button", { "artifact-preview__copy-button--failed": a.value }]),
62277
62296
  disabled: !Q.value,
@@ -62290,13 +62309,13 @@ const lfA = ["aria-busy"], cfA = {
62290
62309
  "stroke-width": 1.75,
62291
62310
  "aria-hidden": "true"
62292
62311
  })) : DA("", !0),
62293
- R("span", null, EA(n.value ? "Copied" : a.value ? "Failed" : "Copy"), 1)
62312
+ M("span", null, EA(n.value ? "Copied" : a.value ? "Failed" : "Copy"), 1)
62294
62313
  ], 10, wfA),
62295
- U[6] || (U[6] = R("span", {
62314
+ U[6] || (U[6] = M("span", {
62296
62315
  class: "artifact-preview__split-divider",
62297
62316
  "aria-hidden": "true"
62298
62317
  }, null, -1)),
62299
- R("button", {
62318
+ M("button", {
62300
62319
  ref_key: "menuButtonRef",
62301
62320
  ref: h,
62302
62321
  type: "button",
@@ -62322,7 +62341,7 @@ const lfA = ["aria-busy"], cfA = {
62322
62341
  class: "artifact-preview__menu",
62323
62342
  role: "menu"
62324
62343
  }, [
62325
- R("button", {
62344
+ M("button", {
62326
62345
  ref_key: "downloadButtonRef",
62327
62346
  ref: u,
62328
62347
  type: "button",
@@ -62337,14 +62356,14 @@ const lfA = ["aria-busy"], cfA = {
62337
62356
  "stroke-width": 1.75,
62338
62357
  "aria-hidden": "true"
62339
62358
  }),
62340
- U[5] || (U[5] = R("span", null, "Download", -1))
62359
+ U[5] || (U[5] = M("span", null, "Download", -1))
62341
62360
  ], 8, bfA)
62342
62361
  ], 8, kfA)) : DA("", !0)
62343
62362
  ]),
62344
62363
  _: 1
62345
62364
  })
62346
62365
  ], 512),
62347
- R("button", {
62366
+ M("button", {
62348
62367
  type: "button",
62349
62368
  class: "artifact-preview__icon-button artifact-preview__expand-button",
62350
62369
  "aria-label": t.expanded ? "Collapse" : "Expand",
@@ -62364,7 +62383,7 @@ const lfA = ["aria-busy"], cfA = {
62364
62383
  "aria-hidden": "true"
62365
62384
  }))
62366
62385
  ], 8, SfA),
62367
- R("button", {
62386
+ M("button", {
62368
62387
  type: "button",
62369
62388
  class: "artifact-preview__icon-button",
62370
62389
  "aria-label": "关闭侧边栏",
@@ -62380,7 +62399,7 @@ const lfA = ["aria-busy"], cfA = {
62380
62399
  ])
62381
62400
  ])
62382
62401
  ]),
62383
- R("div", FfA, [
62402
+ M("div", FfA, [
62384
62403
  E.value ? (Y(), P("iframe", {
62385
62404
  key: 0,
62386
62405
  title: `${I.value} preview`,
@@ -62399,7 +62418,7 @@ const lfA = ["aria-busy"], cfA = {
62399
62418
  content: t.artifact.content
62400
62419
  }, null, 8, ["content"])
62401
62420
  ])) : r.value === "preview" && t.artifact.content ? (Y(), P("div", MfA, EA(t.artifact.content), 1)) : B.value ? (Y(), P("pre", RfA, [
62402
- R("code", null, EA(B.value), 1)
62421
+ M("code", null, EA(B.value), 1)
62403
62422
  ])) : (Y(), P("div", GfA, "No preview available"))
62404
62423
  ])
62405
62424
  ], 8, ffA));
@@ -62468,11 +62487,11 @@ const lfA = ["aria-busy"], cfA = {
62468
62487
  Q.key === "Enter" && !Q.shiftKey ? (Q.preventDefault(), c()) : Q.key === "Escape" && (Q.preventDefault(), h());
62469
62488
  }
62470
62489
  return (Q, p) => t.items.length ? (Y(), P("section", YfA, [
62471
- R("header", UfA, [
62472
- p[1] || (p[1] = R("span", { class: "chat-queue__label" }, "待发送", -1)),
62473
- R("span", JfA, EA(t.items.length), 1)
62490
+ M("header", UfA, [
62491
+ p[1] || (p[1] = M("span", { class: "chat-queue__label" }, "待发送", -1)),
62492
+ M("span", JfA, EA(t.items.length), 1)
62474
62493
  ]),
62475
- R("ol", OfA, [
62494
+ M("ol", OfA, [
62476
62495
  (Y(!0), P(Ge, null, Qt(e.items, (E, v) => (Y(), P("li", {
62477
62496
  key: E.id,
62478
62497
  class: Be(["chat-queue__item", {
@@ -62488,7 +62507,7 @@ const lfA = ["aria-busy"], cfA = {
62488
62507
  onDragend: d
62489
62508
  }, [
62490
62509
  r.value === E.id ? (Y(), P("div", ZfA, [
62491
- d0(R("textarea", {
62510
+ d0(M("textarea", {
62492
62511
  ref_for: !0,
62493
62512
  ref_key: "editRef",
62494
62513
  ref: a,
@@ -62500,8 +62519,8 @@ const lfA = ["aria-busy"], cfA = {
62500
62519
  }, null, 544), [
62501
62520
  [Pv, n.value]
62502
62521
  ]),
62503
- R("div", KfA, [
62504
- R("button", {
62522
+ M("div", KfA, [
62523
+ M("button", {
62505
62524
  type: "button",
62506
62525
  class: "chat-queue__icon-btn",
62507
62526
  "aria-label": "保存",
@@ -62513,7 +62532,7 @@ const lfA = ["aria-busy"], cfA = {
62513
62532
  "aria-hidden": "true"
62514
62533
  })
62515
62534
  ]),
62516
- R("button", {
62535
+ M("button", {
62517
62536
  type: "button",
62518
62537
  class: "chat-queue__icon-btn",
62519
62538
  "aria-label": "取消",
@@ -62527,19 +62546,19 @@ const lfA = ["aria-busy"], cfA = {
62527
62546
  ])
62528
62547
  ])
62529
62548
  ])) : (Y(), P(Ge, { key: 1 }, [
62530
- R("span", qfA, [
62549
+ M("span", qfA, [
62531
62550
  De(_A(y6), {
62532
62551
  size: 14,
62533
62552
  "stroke-width": 1.75
62534
62553
  })
62535
62554
  ]),
62536
- R("span", PfA, EA(v + 1), 1),
62537
- R("div", WfA, [
62538
- R("p", VfA, EA(g(E) || "仅附件消息"), 1),
62555
+ M("span", PfA, EA(v + 1), 1),
62556
+ M("div", WfA, [
62557
+ M("p", VfA, EA(g(E) || "仅附件消息"), 1),
62539
62558
  E.payload.attachments.length ? (Y(), P("span", zfA, EA(E.payload.attachments.length) + " 个附件 ", 1)) : DA("", !0)
62540
62559
  ]),
62541
- R("div", XfA, [
62542
- R("button", {
62560
+ M("div", XfA, [
62561
+ M("button", {
62543
62562
  type: "button",
62544
62563
  class: "chat-queue__icon-btn",
62545
62564
  "aria-label": "编辑队列消息",
@@ -62551,7 +62570,7 @@ const lfA = ["aria-busy"], cfA = {
62551
62570
  "aria-hidden": "true"
62552
62571
  })
62553
62572
  ], 8, jfA),
62554
- R("button", {
62573
+ M("button", {
62555
62574
  type: "button",
62556
62575
  class: "chat-queue__icon-btn chat-queue__icon-btn--danger",
62557
62576
  "aria-label": "删除队列消息",
@@ -62592,8 +62611,8 @@ const lfA = ["aria-busy"], cfA = {
62592
62611
  }, [
62593
62612
  A.value ? (Y(), se(Jn("media-player"), {
62594
62613
  key: 0,
62595
- src: t.resource.url,
62596
- title: t.resource.fileName,
62614
+ src: t.resource.original_url,
62615
+ title: t.resource.filename,
62597
62616
  controls: "",
62598
62617
  crossorigin: ""
62599
62618
  }, {
@@ -62605,7 +62624,7 @@ const lfA = ["aria-busy"], cfA = {
62605
62624
  }, 8, ["src", "title"])) : (Y(), P("div", tdA, "正在加载播放器..."))
62606
62625
  ], 2));
62607
62626
  }
62608
- }), rdA = /* @__PURE__ */ Me(idA, [["__scopeId", "data-v-003e1844"]]), ndA = /* @__PURE__ */ oe({
62627
+ }), rdA = /* @__PURE__ */ Me(idA, [["__scopeId", "data-v-1b216acf"]]), ndA = /* @__PURE__ */ oe({
62609
62628
  __name: "ChatOfficePreview",
62610
62629
  props: {
62611
62630
  resource: {},
@@ -62620,21 +62639,21 @@ const lfA = ["aria-busy"], cfA = {
62620
62639
  }, i = $(() => e[A.kind]);
62621
62640
  return (r, n) => (Y(), se(t7, null, {
62622
62641
  fallback: Je(() => [...n[0] || (n[0] = [
62623
- R("div", {
62642
+ M("div", {
62624
62643
  class: "chat-office-preview__loading",
62625
62644
  role: "status"
62626
62645
  }, "正在加载预览...", -1)
62627
62646
  ])]),
62628
62647
  default: Je(() => [
62629
62648
  (Y(), se(Jn(i.value), {
62630
- src: t.resource.url,
62649
+ src: t.resource.original_url,
62631
62650
  class: "chat-office-preview"
62632
62651
  }, null, 8, ["src"]))
62633
62652
  ]),
62634
62653
  _: 1
62635
62654
  }));
62636
62655
  }
62637
- }), adA = /* @__PURE__ */ Me(ndA, [["__scopeId", "data-v-e422d916"]]), odA = ["data-preview-kind"], sdA = {
62656
+ }), adA = /* @__PURE__ */ Me(ndA, [["__scopeId", "data-v-f0923a58"]]), odA = ["data-preview-kind"], sdA = {
62638
62657
  key: 1,
62639
62658
  class: "chat-file-preview__unsupported"
62640
62659
  }, gdA = ["href"], ldA = /* @__PURE__ */ oe({
@@ -62650,8 +62669,8 @@ const lfA = ["aria-busy"], cfA = {
62650
62669
  setup(l) {
62651
62670
  return () => eo("img", {
62652
62671
  class: "chat-file-preview__image",
62653
- src: l.resource.url,
62654
- alt: l.resource.fileName
62672
+ src: l.resource.original_url,
62673
+ alt: l.resource.filename
62655
62674
  });
62656
62675
  }
62657
62676
  }), n = oe({
@@ -62659,8 +62678,8 @@ const lfA = ["aria-busy"], cfA = {
62659
62678
  setup(l) {
62660
62679
  return () => eo("iframe", {
62661
62680
  class: "chat-file-preview__frame",
62662
- src: l.resource.url,
62663
- title: l.resource.fileName,
62681
+ src: l.resource.original_url,
62682
+ title: l.resource.filename,
62664
62683
  sandbox: "",
62665
62684
  referrerpolicy: "no-referrer"
62666
62685
  });
@@ -62687,9 +62706,9 @@ const lfA = ["aria-busy"], cfA = {
62687
62706
  renderer: s.value
62688
62707
  }, () => [
62689
62708
  s.value ? (Y(), se(Jn(s.value), Xr(Vo({ key: 0 }, g.value)), null, 16)) : (Y(), P("div", sdA, [
62690
- c[0] || (c[0] = R("p", null, "此文件暂不支持在线预览", -1)),
62691
- R("a", {
62692
- href: t.resource.url,
62709
+ c[0] || (c[0] = M("p", null, "此文件暂不支持在线预览", -1)),
62710
+ M("a", {
62711
+ href: t.resource.original_url,
62693
62712
  target: "_blank",
62694
62713
  rel: "noopener noreferrer"
62695
62714
  }, "下载文件", 8, gdA)
@@ -62697,7 +62716,7 @@ const lfA = ["aria-busy"], cfA = {
62697
62716
  ], !0)
62698
62717
  ], 8, odA));
62699
62718
  }
62700
- }), cdA = /* @__PURE__ */ Me(ldA, [["__scopeId", "data-v-e956d790"]]), udA = ["aria-label"], hdA = { class: "chat-file-preview-panel__header" }, CdA = ["href"], IdA = { class: "chat-file-preview-panel__body" }, fdA = /* @__PURE__ */ oe({
62719
+ }), cdA = /* @__PURE__ */ Me(ldA, [["__scopeId", "data-v-7e9dbdd7"]]), udA = ["aria-label"], hdA = { class: "chat-file-preview-panel__header" }, CdA = ["href"], IdA = { class: "chat-file-preview-panel__body" }, fdA = /* @__PURE__ */ oe({
62701
62720
  __name: "ChatFilePreviewPanel",
62702
62721
  props: {
62703
62722
  resource: {}
@@ -62721,16 +62740,16 @@ const lfA = ["aria-busy"], cfA = {
62721
62740
  ref: i,
62722
62741
  class: "chat-file-preview-panel",
62723
62742
  role: "region",
62724
- "aria-label": `${t.resource.fileName} 预览`,
62743
+ "aria-label": `${t.resource.filename} 预览`,
62725
62744
  onKeydown: a
62726
62745
  }, [
62727
- R("header", hdA, [
62728
- R("div", null, [
62729
- R("strong", null, EA(t.resource.fileName), 1),
62730
- R("span", null, EA(t.resource.fileType.toUpperCase()), 1)
62746
+ M("header", hdA, [
62747
+ M("div", null, [
62748
+ M("strong", null, EA(t.resource.filename), 1),
62749
+ M("span", null, EA(t.resource.url_type.toUpperCase()), 1)
62731
62750
  ]),
62732
- R("a", {
62733
- href: t.resource.url,
62751
+ M("a", {
62752
+ href: t.resource.original_url,
62734
62753
  target: "_blank",
62735
62754
  rel: "noopener noreferrer",
62736
62755
  "aria-label": "在新窗口打开文件"
@@ -62741,7 +62760,7 @@ const lfA = ["aria-busy"], cfA = {
62741
62760
  "aria-hidden": "true"
62742
62761
  })
62743
62762
  ], 8, CdA),
62744
- R("button", {
62763
+ M("button", {
62745
62764
  ref_key: "closeButtonRef",
62746
62765
  ref: r,
62747
62766
  type: "button",
@@ -62755,14 +62774,14 @@ const lfA = ["aria-busy"], cfA = {
62755
62774
  })
62756
62775
  ], 512)
62757
62776
  ]),
62758
- R("div", IdA, [
62777
+ M("div", IdA, [
62759
62778
  be(o.$slots, "default", { resource: t.resource }, () => [
62760
62779
  De(cdA, { resource: t.resource }, null, 8, ["resource"])
62761
62780
  ], !0)
62762
62781
  ])
62763
62782
  ], 40, udA));
62764
62783
  }
62765
- }), ddA = /* @__PURE__ */ Me(fdA, [["__scopeId", "data-v-6f031562"]]), BdA = ["aria-label"], QdA = /* @__PURE__ */ oe({
62784
+ }), ddA = /* @__PURE__ */ Me(fdA, [["__scopeId", "data-v-8e55677a"]]), BdA = ["aria-label"], QdA = /* @__PURE__ */ oe({
62766
62785
  __name: "ChatSidebarResizeHandle",
62767
62786
  props: {
62768
62787
  ariaLabel: { default: "调整预览宽度" }
@@ -62788,11 +62807,11 @@ const lfA = ["aria-busy"], cfA = {
62788
62807
  "aria-label": t.ariaLabel,
62789
62808
  onPointerdown: i
62790
62809
  }, [...n[0] || (n[0] = [
62791
- R("span", {
62810
+ M("span", {
62792
62811
  class: "chat-sidebar-resize-handle__line",
62793
62812
  "aria-hidden": "true"
62794
62813
  }, null, -1),
62795
- R("span", {
62814
+ M("span", {
62796
62815
  class: "chat-sidebar-resize-handle__grip",
62797
62816
  "aria-hidden": "true"
62798
62817
  }, null, -1)
@@ -62867,7 +62886,7 @@ const DdA = ["data-chat-color-mode"], kdA = { class: "chat-bot__main" }, bdA = {
62867
62886
  })), F = $(() => ({
62868
62887
  ...n.toolRenderers.value,
62869
62888
  ...i.toolRenderers
62870
- })), M = $(() => ({
62889
+ })), R = $(() => ({
62871
62890
  ...i.senderConfig,
62872
62891
  draft: i.draft,
62873
62892
  attachments: i.attachments,
@@ -63024,7 +63043,7 @@ const DdA = ["data-chat-color-mode"], kdA = { class: "chat-bot__main" }, bdA = {
63024
63043
  }
63025
63044
  });
63026
63045
  const je = $(() => {
63027
- const aA = M.value;
63046
+ const aA = R.value;
63028
63047
  return !(aA.showAttachment === !1 || aA.disabled);
63029
63048
  });
63030
63049
  function ct() {
@@ -63074,8 +63093,8 @@ const DdA = ["data-chat-color-mode"], kdA = { class: "chat-bot__main" }, bdA = {
63074
63093
  onDropCapture: tr
63075
63094
  }, [
63076
63095
  Se.value ? (Y(), se(kR, { key: 0 })) : DA("", !0),
63077
- R("div", kdA, [
63078
- R("div", bdA, [
63096
+ M("div", kdA, [
63097
+ M("div", bdA, [
63079
63098
  De(IfA, Vo({
63080
63099
  ref_key: "conversationRef",
63081
63100
  ref: u,
@@ -63159,7 +63178,7 @@ const DdA = ["data-chat-color-mode"], kdA = { class: "chat-bot__main" }, bdA = {
63159
63178
  } : void 0
63160
63179
  ]), 1040, ["messages", "status", "streaming-message-index", "theme", "response-error", "tool-states", "follow-ups", "pending-ask-form-mdoc"])
63161
63180
  ]),
63162
- R("div", SdA, [
63181
+ M("div", SdA, [
63163
63182
  be(aA.$slots, "sender-prepend", {}, void 0, !0),
63164
63183
  t.enableQueue ? (Y(), se(edA, {
63165
63184
  key: 0,
@@ -63172,7 +63191,7 @@ const DdA = ["data-chat-color-mode"], kdA = { class: "chat-bot__main" }, bdA = {
63172
63191
  De(xIA, Vo({
63173
63192
  ref_key: "senderRef",
63174
63193
  ref: C
63175
- }, M.value, {
63194
+ }, R.value, {
63176
63195
  "enable-file-drop": !1,
63177
63196
  onSend: U,
63178
63197
  onStop: ie,
@@ -63237,7 +63256,7 @@ const DdA = ["data-chat-color-mode"], kdA = { class: "chat-bot__main" }, bdA = {
63237
63256
  key: 0,
63238
63257
  onResize: ne
63239
63258
  })),
63240
- R("div", {
63259
+ M("div", {
63241
63260
  class: Be(["chat-bot__sidebar-content", {
63242
63261
  "chat-bot__sidebar-content--artifact": I.value && !aA.$slots.sidebar
63243
63262
  }])
@@ -63265,7 +63284,7 @@ const DdA = ["data-chat-color-mode"], kdA = { class: "chat-bot__main" }, bdA = {
63265
63284
  onClose: WA,
63266
63285
  onToggleExpanded: _e
63267
63286
  }, null, 8, ["artifact", "expanded"])) : (Y(), P("div", FdA, [...dA[24] || (dA[24] = [
63268
- R("svg", {
63287
+ M("svg", {
63269
63288
  viewBox: "0 0 24 24",
63270
63289
  fill: "none",
63271
63290
  stroke: "currentColor",
@@ -63273,7 +63292,7 @@ const DdA = ["data-chat-color-mode"], kdA = { class: "chat-bot__main" }, bdA = {
63273
63292
  "stroke-linecap": "round",
63274
63293
  "stroke-linejoin": "round"
63275
63294
  }, [
63276
- R("rect", {
63295
+ M("rect", {
63277
63296
  x: "3",
63278
63297
  y: "3",
63279
63298
  width: "18",
@@ -63281,21 +63300,21 @@ const DdA = ["data-chat-color-mode"], kdA = { class: "chat-bot__main" }, bdA = {
63281
63300
  rx: "2",
63282
63301
  ry: "2"
63283
63302
  }),
63284
- R("line", {
63303
+ M("line", {
63285
63304
  x1: "9",
63286
63305
  y1: "3",
63287
63306
  x2: "9",
63288
63307
  y2: "21"
63289
63308
  })
63290
63309
  ], -1),
63291
- R("p", null, "侧边栏内容", -1)
63310
+ M("p", null, "侧边栏内容", -1)
63292
63311
  ])]))
63293
63312
  ], !0)
63294
63313
  ], 2)
63295
63314
  ], 2)) : DA("", !0)
63296
63315
  ], 46, DdA));
63297
63316
  }
63298
- }), $dA = /* @__PURE__ */ Me(NdA, [["__scopeId", "data-v-e6546cd7"]]), xdA = ["data-chat-color-mode"], _dA = /* @__PURE__ */ oe({
63317
+ }), $dA = /* @__PURE__ */ Me(NdA, [["__scopeId", "data-v-a1c5deae"]]), xdA = ["data-chat-color-mode"], _dA = /* @__PURE__ */ oe({
63299
63318
  name: "ChatProvider",
63300
63319
  __name: "ChatProvider",
63301
63320
  props: {