ant-design-x-vue 0.0.12 → 0.0.13

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.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  var Hi = Object.defineProperty;
2
2
  var Ni = (e, t, n) => t in e ? Hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var Re = (e, t, n) => Ni(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { computed as f, inject as ne, shallowRef as J, defineComponent as H, provide as fe, watch as R, unref as O, triggerRef as ye, useSlots as Mt, createVNode as u, mergeProps as q, ref as B, onWatcherCleanup as ke, toValue as z, getCurrentInstance as yo, watchEffect as Ge, onBeforeUnmount as Ri, Fragment as De, mergeDefaults as le, toRef as G, isVNode as Mn, useAttrs as Bi, h as sr, nextTick as Li, reactive as zi, toRaw as ji, createTextVNode as bo, useTemplateRef as Fe, Teleport as Di, openBlock as So, createElementBlock as Co, createElementVNode as je, useId as Fi, withDirectives as Xi, vShow as Vi } from "vue";
4
+ import { computed as h, inject as ne, shallowRef as J, defineComponent as H, provide as fe, watch as R, unref as O, triggerRef as ye, useSlots as Mt, createVNode as u, mergeProps as q, ref as B, onWatcherCleanup as ke, toValue as z, getCurrentInstance as yo, watchEffect as Ge, onBeforeUnmount as Ri, Fragment as De, mergeDefaults as le, toRef as G, isVNode as Mn, useAttrs as Bi, h as sr, nextTick as Li, reactive as zi, toRaw as ji, createTextVNode as bo, useTemplateRef as Fe, Teleport as Di, openBlock as So, createElementBlock as Co, createElementVNode as je, useId as Fi, withDirectives as Xi, vShow as Vi } from "vue";
5
5
  import { ConfigProvider as Wi, theme as xo, Avatar as $o, Tooltip as ki, Typography as de, Dropdown as Gi, Menu as Ui, Flex as et, Cascader as qi, Button as tt, Input as Ki, Upload as wo, Progress as Zi } from "ant-design-vue";
6
6
  import { theme as qd } from "ant-design-vue";
7
7
  function Yi(e) {
@@ -12,9 +12,9 @@ function Yi(e) {
12
12
  }
13
13
  const Qi = "anticon", Ji = Symbol("configProvider"), _i = {
14
14
  getPrefixCls: (e, t) => t || (e ? `ant-${e}` : "ant"),
15
- iconPrefixCls: f(() => Qi),
16
- getPopupContainer: f(() => () => document.body),
17
- direction: f(() => "ltr")
15
+ iconPrefixCls: h(() => Qi),
16
+ getPopupContainer: h(() => () => document.body),
17
+ direction: h(() => "ltr")
18
18
  }, ea = () => ne(Ji, _i), Hd = "ant";
19
19
  function _() {
20
20
  const { getPrefixCls: e, direction: t, csp: n, iconPrefixCls: r, theme: o } = ea();
@@ -67,13 +67,13 @@ const To = Symbol("XProviderContext"), nn = J(), oa = (e) => {
67
67
  );
68
68
  }, ia = () => ne(
69
69
  To,
70
- f(() => nn.value || {})
70
+ h(() => nn.value || {})
71
71
  ), aa = H({
72
72
  props: {
73
73
  value: be()
74
74
  },
75
75
  setup(e, { slots: t }) {
76
- return oa(f(() => e.value)), () => {
76
+ return oa(h(() => e.value)), () => {
77
77
  var n;
78
78
  return (n = t.default) == null ? void 0 : n.call(t);
79
79
  };
@@ -122,7 +122,7 @@ const To = Symbol("XProviderContext"), nn = J(), oa = (e) => {
122
122
  wave: {}
123
123
  },
124
124
  setup(e) {
125
- const t = se(e, ["attachments", "bubble", "conversations", "prompts", "suggestion", "thoughtChain", "welcome"]), n = Mt(), r = f(() => ({
125
+ const t = se(e, ["attachments", "bubble", "conversations", "prompts", "suggestion", "thoughtChain", "welcome"]), n = Mt(), r = h(() => ({
126
126
  attachments: e.attachments,
127
127
  bubble: e.bubble,
128
128
  conversations: e.conversations,
@@ -133,10 +133,10 @@ const To = Symbol("XProviderContext"), nn = J(), oa = (e) => {
133
133
  welcome: e.welcome
134
134
  })), {
135
135
  theme: o
136
- } = _(), i = f(() => ({
136
+ } = _(), i = h(() => ({
137
137
  ...(o == null ? void 0 : o.value) || {},
138
138
  ...t.theme
139
- })), a = f(() => {
139
+ })), a = h(() => {
140
140
  var l;
141
141
  return (l = n.default) == null ? void 0 : l.call(n);
142
142
  });
@@ -157,7 +157,7 @@ const To = Symbol("XProviderContext"), nn = J(), oa = (e) => {
157
157
  style: {}
158
158
  }, $e = (e) => {
159
159
  const t = ia();
160
- return f(() => ({
160
+ return h(() => ({
161
161
  ...la,
162
162
  ...O(t)[e]
163
163
  }));
@@ -173,28 +173,28 @@ function Oe(e) {
173
173
  return typeof e == "string";
174
174
  }
175
175
  const sa = (e, t, n, r) => {
176
- const [o, i] = k(""), [a, l] = k(1), s = f(() => t.value && Oe(e.value));
176
+ const [o, i] = k(""), [a, l] = k(1), s = h(() => t.value && Oe(e.value));
177
177
  return R(e, () => {
178
- const h = O(o);
179
- i(e.value), !s.value && Oe(e.value) ? l(e.value.length) : Oe(e.value) && Oe(h) && e.value.indexOf(h) !== 0 && l(1);
178
+ const f = O(o);
179
+ i(e.value), !s.value && Oe(e.value) ? l(e.value.length) : Oe(e.value) && Oe(f) && e.value.indexOf(f) !== 0 && l(1);
180
180
  }), R([a, t, e], () => {
181
181
  if (s.value && Oe(e.value) && O(a) < e.value.length) {
182
- const h = setTimeout(() => {
182
+ const f = setTimeout(() => {
183
183
  l(O(a) + n.value);
184
184
  }, r.value);
185
185
  ke(() => {
186
- clearTimeout(h);
186
+ clearTimeout(f);
187
187
  });
188
188
  }
189
- }, { immediate: !0 }), [f(() => s.value && Oe(e.value) ? e.value.slice(0, O(a)) : e.value), f(() => s.value && Oe(e.value) && O(a) < e.value.length)];
189
+ }, { immediate: !0 }), [h(() => s.value && Oe(e.value) ? e.value.slice(0, O(a)) : e.value), h(() => s.value && Oe(e.value) && O(a) < e.value.length)];
190
190
  };
191
191
  function ca(e) {
192
- const t = f(() => !!z(e)), n = {
192
+ const t = h(() => !!z(e)), n = {
193
193
  step: 1,
194
194
  interval: 50,
195
195
  // set default suffix is empty
196
196
  suffix: null
197
- }, r = f(() => {
197
+ }, r = h(() => {
198
198
  const o = z(e);
199
199
  return {
200
200
  ...n,
@@ -203,9 +203,9 @@ function ca(e) {
203
203
  });
204
204
  return [
205
205
  t,
206
- f(() => r.value.step),
207
- f(() => r.value.interval),
208
- f(() => r.value.suffix)
206
+ h(() => r.value.step),
207
+ h(() => r.value.interval),
208
+ h(() => r.value.suffix)
209
209
  ];
210
210
  }
211
211
  const ua = /* @__PURE__ */ H({
@@ -385,13 +385,13 @@ function Hn(e, t, n, r) {
385
385
  i.value = [e, ...t.value].join("%");
386
386
  });
387
387
  const l = ba(), s = (c) => {
388
- o.value.cache.update(c, (h) => {
389
- const [d = 0, g] = h || [];
388
+ o.value.cache.update(c, (f) => {
389
+ const [d = 0, g] = f || [];
390
390
  return d - 1 === 0 ? (r == null || r(g, !1), null) : [d - 1, g];
391
391
  });
392
392
  };
393
- return R(i, (c, h) => {
394
- h && s(h), o.value.cache.update(c, (d) => {
393
+ return R(i, (c, f) => {
394
+ f && s(f), o.value.cache.update(c, (d) => {
395
395
  const [g = 0, v] = d || [];
396
396
  let p = v;
397
397
  process.env.NODE_ENV !== "production" && v && l && (r == null || r(p, l), p = null);
@@ -568,14 +568,14 @@ const zo = Symbol("WarningContext"), sn = J(), Ea = (e) => {
568
568
  );
569
569
  }, Ma = () => ne(
570
570
  zo,
571
- f(() => sn.value || {})
571
+ h(() => sn.value || {})
572
572
  );
573
573
  H({
574
574
  props: {
575
575
  value: be()
576
576
  },
577
577
  setup(e, { slots: t }) {
578
- return Ea(f(() => e.value)), () => {
578
+ return Ea(h(() => e.value)), () => {
579
579
  var n;
580
580
  return (n = t.default) == null ? void 0 : n.call(t);
581
581
  };
@@ -645,8 +645,8 @@ const Ct = (e, t = "") => `--${t ? `${t}-` : ""}${e}`.replace(/([a-z0-9])([A-Z])
645
645
  if ((l = n == null ? void 0 : n.preserve) != null && l[i])
646
646
  o[i] = a;
647
647
  else if ((typeof a == "string" || typeof a == "number") && !((s = n == null ? void 0 : n.ignore) != null && s[i])) {
648
- const h = Ct(i, n == null ? void 0 : n.prefix);
649
- r[h] = typeof a == "number" && !((c = n == null ? void 0 : n.unitless) != null && c[i]) ? `${a}px` : String(a), o[i] = `var(${h})`;
648
+ const f = Ct(i, n == null ? void 0 : n.prefix);
649
+ r[f] = typeof a == "number" && !((c = n == null ? void 0 : n.unitless) != null && c[i]) ? `${a}px` : String(a), o[i] = `var(${f})`;
650
650
  }
651
651
  }), [o, za(r, t, { scope: n == null ? void 0 : n.scope })];
652
652
  }, mr = {}, Da = process.env.NODE_ENV === "production", Fa = process.env.NODE_ENV === "prerender", Xa = !Da && !Fa ? "css-dev-only-do-not-override" : "css", Ae = /* @__PURE__ */ new Map();
@@ -675,20 +675,20 @@ const Ua = (e, t, n, r) => {
675
675
  return r && (i = r(i)), i;
676
676
  };
677
677
  function qa(e, t, n = B({})) {
678
- const r = ct(), o = f(() => Object.assign({}, ...t.value || [])), i = f(() => Pt(o.value)), a = f(() => {
678
+ const r = ct(), o = h(() => Object.assign({}, ...t.value || [])), i = h(() => Pt(o.value)), a = h(() => {
679
679
  var s;
680
680
  return Pt(((s = n.value) == null ? void 0 : s.override) || mr);
681
681
  });
682
- return Hn("token", f(() => {
682
+ return Hn("token", h(() => {
683
683
  var s, c;
684
684
  return [((s = n.value) == null ? void 0 : s.salt) || "", (c = e.value) == null ? void 0 : c.id, i.value, a.value];
685
685
  }), () => {
686
686
  const {
687
687
  salt: s = "",
688
688
  override: c = mr,
689
- formatToken: h,
689
+ formatToken: f,
690
690
  getComputedToken: d
691
- } = n.value || {}, g = d ? d(o.value, c, e.value) : Ua(o.value, c, e.value, h), v = Na(g, s);
691
+ } = n.value || {}, g = d ? d(o.value, c, e.value) : Ua(o.value, c, e.value, f), v = Na(g, s);
692
692
  g._tokenKey = v, Va(v);
693
693
  const p = `${Xa}-${In(v)}`;
694
694
  return g._hashId = p, [g, p];
@@ -877,7 +877,7 @@ function sl(e) {
877
877
  return rl(wt("", null, null, null, [""], e = nl(e), 0, [0], e));
878
878
  }
879
879
  function wt(e, t, n, r, o, i, a, l, s) {
880
- for (var c = 0, h = 0, d = a, g = 0, v = 0, p = 0, m = 1, b = 1, S = 1, $ = 0, C = "", x = o, T = i, w = r, y = C; b; )
880
+ for (var c = 0, f = 0, d = a, g = 0, v = 0, p = 0, m = 1, b = 1, S = 1, $ = 0, C = "", x = o, T = i, w = r, y = C; b; )
881
881
  switch (p = $, $ = ie()) {
882
882
  case 40:
883
883
  if (p != 108 && it(y, d - 1) == 58) {
@@ -917,14 +917,14 @@ function wt(e, t, n, r, o, i, a, l, s) {
917
917
  case 0:
918
918
  case 125:
919
919
  b = 0;
920
- case 59 + h:
920
+ case 59 + f:
921
921
  S == -1 && (y = xt(y, /\f/g, "")), v > 0 && (ce(y) - d || m === 0 && p === 47) && dt(v > 32 ? vr(y + ";", r, n, d - 1, s) : vr(xt(y, " ", "") + ";", r, n, d - 2, s), s);
922
922
  break;
923
923
  case 59:
924
924
  y += ";";
925
925
  default:
926
- if (dt(w = pr(y, t, n, c, h, o, l, C, x = [], T = [], d, i), i), $ === 123)
927
- if (h === 0)
926
+ if (dt(w = pr(y, t, n, c, f, o, l, C, x = [], T = [], d, i), i), $ === 123)
927
+ if (f === 0)
928
928
  wt(y, t, w, w, x, i, d, l, T);
929
929
  else
930
930
  switch (g === 99 && it(y, 3) === 110 ? 100 : g) {
@@ -938,7 +938,7 @@ function wt(e, t, n, r, o, i, a, l, s) {
938
938
  wt(y, w, w, w, [""], T, 0, l, T);
939
939
  }
940
940
  }
941
- c = h = v = 0, m = S = 1, C = y = "", d = a;
941
+ c = f = v = 0, m = S = 1, C = y = "", d = a;
942
942
  break;
943
943
  case 58:
944
944
  d = 1 + ce(y), v = p;
@@ -951,13 +951,13 @@ function wt(e, t, n, r, o, i, a, l, s) {
951
951
  }
952
952
  switch (y += Bn($), $ * m) {
953
953
  case 38:
954
- S = h > 0 ? 1 : (y += "\f", -1);
954
+ S = f > 0 ? 1 : (y += "\f", -1);
955
955
  break;
956
956
  case 44:
957
957
  l[c++] = (ce(y) - 1) * S, S = 1;
958
958
  break;
959
959
  case 64:
960
- Se() === 45 && (y += Vt(ie())), g = Se(), h = d = ce(C = y += ll($t())), $++;
960
+ Se() === 45 && (y += Vt(ie())), g = Se(), f = d = ce(C = y += ll($t())), $++;
961
961
  break;
962
962
  case 45:
963
963
  p === 45 && ce(y) == 2 && (m = 0);
@@ -965,11 +965,11 @@ function wt(e, t, n, r, o, i, a, l, s) {
965
965
  }
966
966
  return i;
967
967
  }
968
- function pr(e, t, n, r, o, i, a, l, s, c, h, d) {
968
+ function pr(e, t, n, r, o, i, a, l, s, c, f, d) {
969
969
  for (var g = o - 1, v = o === 0 ? i : [""], p = _a(v), m = 0, b = 0, S = 0; m < r; ++m)
970
970
  for (var $ = 0, C = Xe(e, g + 1, g = Wo(b = a[m])), x = e; $ < p; ++$)
971
971
  (x = ko(b > 0 ? v[$] + " " + C : xt(C, /&\f/g, v[$]))) && (s[S++] = x);
972
- return Ln(e, t, n, o === 0 ? Xo : l, s, c, h, d);
972
+ return Ln(e, t, n, o === 0 ? Xo : l, s, c, f, d);
973
973
  }
974
974
  function cl(e, t, n, r) {
975
975
  return Ln(e, t, n, Fo, Bn(el()), Xe(e, 2, -2), 0, r);
@@ -1061,10 +1061,10 @@ function yl(e, t, n) {
1061
1061
  return e;
1062
1062
  const r = `.${t}`, o = n === "low" ? `:where(${r})` : r;
1063
1063
  return e.split(",").map((a) => {
1064
- var h;
1064
+ var f;
1065
1065
  const l = a.trim().split(/\s+/);
1066
1066
  let s = l[0] || "";
1067
- const c = ((h = s.match(/^\w+/)) == null ? void 0 : h[0]) || "";
1067
+ const c = ((f = s.match(/^\w+/)) == null ? void 0 : f[0]) || "";
1068
1068
  return s = `${c}${o}${s.slice(c.length)}`, [s, ...l.slice(1)].join(" ");
1069
1069
  }).join(",");
1070
1070
  }
@@ -1084,7 +1084,7 @@ const fn = (e, t = {}, {
1084
1084
  path: l,
1085
1085
  hashPriority: s,
1086
1086
  transformers: c = [],
1087
- linters: h = []
1087
+ linters: f = []
1088
1088
  } = t;
1089
1089
  let d = "", g = {};
1090
1090
  function v(b) {
@@ -1130,7 +1130,7 @@ const fn = (e, t = {}, {
1130
1130
  }, d += `${w}${M}`;
1131
1131
  } else {
1132
1132
  let T = function(y, M) {
1133
- process.env.NODE_ENV !== "production" && (typeof x != "object" || !(x != null && x[Ko])) && [dl, fl, ...h].forEach((N) => N(y, M, {
1133
+ process.env.NODE_ENV !== "production" && (typeof x != "object" || !(x != null && x[Ko])) && [dl, fl, ...f].forEach((N) => N(y, M, {
1134
1134
  path: l,
1135
1135
  hashId: i,
1136
1136
  parentSelectors: o
@@ -1152,10 +1152,10 @@ function Yo(e, t) {
1152
1152
  return In(`${e.join("%")}${t}`);
1153
1153
  }
1154
1154
  function Cr(e, t) {
1155
- const n = ct(), r = f(() => {
1155
+ const n = ct(), r = h(() => {
1156
1156
  var a;
1157
1157
  return (a = e.value) == null ? void 0 : a.token._tokenKey;
1158
- }), o = f(() => {
1158
+ }), o = h(() => {
1159
1159
  var a;
1160
1160
  return [r.value, ...((a = e.value) == null ? void 0 : a.path) || []];
1161
1161
  });
@@ -1170,13 +1170,13 @@ function Cr(e, t) {
1170
1170
  hashId: l,
1171
1171
  layer: s,
1172
1172
  nonce: c,
1173
- clientOnly: h,
1173
+ clientOnly: f,
1174
1174
  order: d = 0
1175
1175
  } = e.value || {}, g = o.value.join("|");
1176
1176
  if (ml(g)) {
1177
1177
  const [y, M] = pl(g);
1178
1178
  if (y)
1179
- return [y, r.value, M, {}, h, d];
1179
+ return [y, r.value, M, {}, f, d];
1180
1180
  }
1181
1181
  const v = t(), {
1182
1182
  hashPriority: p,
@@ -1211,7 +1211,7 @@ function Cr(e, t) {
1211
1211
  }));
1212
1212
  });
1213
1213
  }
1214
- return [T, r.value, w, x, h, d];
1214
+ return [T, r.value, w, x, f, d];
1215
1215
  },
1216
1216
  // Remove cache if no need
1217
1217
  ([, , a], l) => {
@@ -1424,7 +1424,7 @@ class Al {
1424
1424
  }
1425
1425
  const Or = new Al();
1426
1426
  function Pl(e, t) {
1427
- return f(() => {
1427
+ return h(() => {
1428
1428
  const n = Or.get(t);
1429
1429
  if (n)
1430
1430
  return n;
@@ -1537,7 +1537,7 @@ function Ml(e) {
1537
1537
  // antd is always at top of styles
1538
1538
  order: p.order || -999
1539
1539
  };
1540
- return typeof o == "function" && Cr(f(() => ({
1540
+ return typeof o == "function" && Cr(h(() => ({
1541
1541
  ...Ne,
1542
1542
  clientOnly: !1,
1543
1543
  path: ["Shared", E]
@@ -1547,7 +1547,7 @@ function Ml(e) {
1547
1547
  iconPrefixCls: N
1548
1548
  },
1549
1549
  csp: X
1550
- })), [Cr(f(() => ({
1550
+ })), [Cr(h(() => ({
1551
1551
  ...Ne,
1552
1552
  path: [S, C, N]
1553
1553
  })), () => {
@@ -1584,7 +1584,7 @@ function Ml(e) {
1584
1584
  }), y];
1585
1585
  };
1586
1586
  }
1587
- function h(d, g, v, p = {}) {
1587
+ function f(d, g, v, p = {}) {
1588
1588
  const m = c(d, g, v, {
1589
1589
  resetStyle: !1,
1590
1590
  // Sub Style should default after root one
@@ -1598,7 +1598,7 @@ function Ml(e) {
1598
1598
  }
1599
1599
  return {
1600
1600
  genStyleHooks: l,
1601
- genSubStyleComponent: h,
1601
+ genSubStyleComponent: f,
1602
1602
  genComponentStyleHook: c
1603
1603
  };
1604
1604
  }
@@ -1728,8 +1728,8 @@ function gn(e, t, n) {
1728
1728
  }
1729
1729
  function zl(e, t, n) {
1730
1730
  e = K(e, 360) * 6, t = K(t, 100), n = K(n, 100);
1731
- var r = Math.floor(e), o = e - r, i = n * (1 - t), a = n * (1 - o * t), l = n * (1 - (1 - o) * t), s = r % 6, c = [n, a, i, i, l, n][s], h = [l, n, n, a, i, i][s], d = [i, i, l, n, n, a][s];
1732
- return { r: c * 255, g: h * 255, b: d * 255 };
1731
+ var r = Math.floor(e), o = e - r, i = n * (1 - t), a = n * (1 - o * t), l = n * (1 - (1 - o) * t), s = r % 6, c = [n, a, i, i, l, n][s], f = [l, n, n, a, i, i][s], d = [i, i, l, n, n, a][s];
1732
+ return { r: c * 255, g: f * 255, b: d * 255 };
1733
1733
  }
1734
1734
  function mn(e, t, n, r) {
1735
1735
  var o = [
@@ -2168,10 +2168,10 @@ function gt(e, t) {
2168
2168
  b: s
2169
2169
  } = new ue(t).toRgb();
2170
2170
  for (let c = 0.01; c <= 1; c += 0.01) {
2171
- const h = Math.round((n - a * (1 - c)) / c), d = Math.round((r - l * (1 - c)) / c), g = Math.round((o - s * (1 - c)) / c);
2172
- if (qt(h) && qt(d) && qt(g))
2171
+ const f = Math.round((n - a * (1 - c)) / c), d = Math.round((r - l * (1 - c)) / c), g = Math.round((o - s * (1 - c)) / c);
2172
+ if (qt(f) && qt(d) && qt(g))
2173
2173
  return new ue({
2174
- r: h,
2174
+ r: f,
2175
2175
  g: d,
2176
2176
  b: g,
2177
2177
  a: Math.round(c * 100) / 100
@@ -2256,7 +2256,7 @@ function Gl(e) {
2256
2256
  Object.keys(ri).forEach((v) => {
2257
2257
  delete r[v];
2258
2258
  });
2259
- const o = F(F({}, n), r), i = 480, a = 576, l = 768, s = 992, c = 1200, h = 1600, d = 2e3;
2259
+ const o = F(F({}, n), r), i = 480, a = 576, l = 768, s = 992, c = 1200, f = 1600, d = 2e3;
2260
2260
  return F(F(F({}, o), {
2261
2261
  colorLink: o.colorInfoText,
2262
2262
  colorLinkHover: o.colorInfoHover,
@@ -2358,9 +2358,9 @@ function Gl(e) {
2358
2358
  screenLGMax: c - 1,
2359
2359
  screenXL: c,
2360
2360
  screenXLMin: c,
2361
- screenXLMax: h - 1,
2362
- screenXXL: h,
2363
- screenXXLMin: h,
2361
+ screenXLMax: f - 1,
2362
+ screenXXL: f,
2363
+ screenXXLMin: f,
2364
2364
  screenXXLMax: d - 1,
2365
2365
  screenXXXL: d,
2366
2366
  screenXXXLMin: d,
@@ -2587,8 +2587,8 @@ function lt(e) {
2587
2587
  }));
2588
2588
  n.push(c);
2589
2589
  }
2590
- return t.theme === "dark" ? os.map(function(h) {
2591
- var d = h.index, g = h.opacity, v = pt(is(Le(t.backgroundColor || "#141414"), Le(n[d]), g * 100));
2590
+ return t.theme === "dark" ? os.map(function(f) {
2591
+ var d = f.index, g = f.opacity, v = pt(is(Le(t.backgroundColor || "#141414"), Le(n[d]), g * 100));
2592
2592
  return v;
2593
2593
  }) : n;
2594
2594
  }
@@ -2654,8 +2654,8 @@ function cs(e, t) {
2654
2654
  colorInfo: l,
2655
2655
  colorPrimary: s,
2656
2656
  colorBgBase: c,
2657
- colorTextBase: h
2658
- } = e, d = n(s), g = n(o), v = n(i), p = n(a), m = n(l), b = r(c, h);
2657
+ colorTextBase: f
2658
+ } = e, d = n(s), g = n(o), v = n(i), p = n(a), m = n(l), b = r(c, f);
2659
2659
  return F(F({}, b), {
2660
2660
  colorPrimaryBg: d[1],
2661
2661
  colorPrimaryBgHover: d[2],
@@ -2831,7 +2831,7 @@ const vs = {
2831
2831
  immediate: !0,
2832
2832
  deep: !0
2833
2833
  });
2834
- }, bs = () => ne(li, f(() => yn.value || vs));
2834
+ }, bs = () => ne(li, h(() => yn.value || vs));
2835
2835
  H({
2836
2836
  props: {
2837
2837
  value: Yi()
@@ -2840,7 +2840,7 @@ H({
2840
2840
  let {
2841
2841
  slots: n
2842
2842
  } = t;
2843
- return ys(f(() => e.value)), () => {
2843
+ return ys(h(() => e.value)), () => {
2844
2844
  var r;
2845
2845
  return (r = n.default) === null || r === void 0 ? void 0 : r.call(n);
2846
2846
  };
@@ -2871,15 +2871,15 @@ const Ss = Ha(xo.defaultAlgorithm), Cs = {
2871
2871
  override: o
2872
2872
  };
2873
2873
  return a = Gl(a), i && Object.entries(i).forEach(([l, s]) => {
2874
- const { theme: c, ...h } = s;
2875
- let d = h;
2874
+ const { theme: c, ...f } = s;
2875
+ let d = f;
2876
2876
  c && (d = si(
2877
2877
  {
2878
2878
  ...a,
2879
- ...h
2879
+ ...f
2880
2880
  },
2881
2881
  {
2882
- override: h
2882
+ override: f
2883
2883
  },
2884
2884
  c
2885
2885
  )), a[l] = d;
@@ -3138,13 +3138,13 @@ const { genStyleHooks: we, genComponentStyleHook: Bd, genSubStyleComponent: Ld }
3138
3138
  );
3139
3139
  }, Is = () => ne(
3140
3140
  ui,
3141
- f(() => bn.value || {})
3141
+ h(() => bn.value || {})
3142
3142
  ), Hs = H({
3143
3143
  props: {
3144
3144
  value: be()
3145
3145
  },
3146
3146
  setup(e, { slots: t }) {
3147
- return Ms(f(() => e.value)), () => {
3147
+ return Ms(h(() => e.value)), () => {
3148
3148
  var n;
3149
3149
  return (n = t.default) == null ? void 0 : n.call(t);
3150
3150
  };
@@ -3199,20 +3199,20 @@ const { genStyleHooks: we, genComponentStyleHook: Bd, genSubStyleComponent: Ld }
3199
3199
  } = O(Is()), i = B(null), {
3200
3200
  direction: a,
3201
3201
  getPrefixCls: l
3202
- } = _(), s = l("bubble", e.prefixCls), c = $e("bubble"), [h, d, g, v] = ca(() => e.typing), [p, m] = sa(r, h, d, g), b = B(!1);
3202
+ } = _(), s = l("bubble", e.prefixCls), c = $e("bubble"), [f, d, g, v] = ca(() => e.typing), [p, m] = sa(r, f, d, g), b = B(!1);
3203
3203
  R(p, () => {
3204
3204
  o == null || o();
3205
3205
  }), Ge(() => {
3206
3206
  var P;
3207
3207
  !m.value && !e.loading ? b.value || (b.value = !0, (P = e.onTypingComplete) == null || P.call(e)) : b.value = !1;
3208
3208
  });
3209
- const [S, $, C] = ci(() => s), x = f(() => [s, e.rootClassName, c.value.className, $, C, `${s}-${e.placement}`, {
3209
+ const [S, $, C] = ci(() => s), x = h(() => [s, e.rootClassName, c.value.className, $, C, `${s}-${e.placement}`, {
3210
3210
  [`${s}-rtl`]: a.value === "rtl"
3211
3211
  }, {
3212
3212
  [`${s}-typing`]: m.value && !e.loading && !e.messageRender && !v.value
3213
- }]), T = f(() => Mn(e.avatar) ? e.avatar : u($o, e.avatar, null)), w = f(() => e.messageRender ? e.messageRender(p.value) : p.value), y = f(() => e.loading ? e.loadingRender ? e.loadingRender() : u(ua, {
3213
+ }]), T = h(() => Mn(e.avatar) ? e.avatar : u($o, e.avatar, null)), w = h(() => e.messageRender ? e.messageRender(p.value) : p.value), y = h(() => e.loading ? e.loadingRender ? e.loadingRender() : u(ua, {
3214
3214
  prefixCls: s
3215
- }, null) : u(De, null, [w.value, m.value && z(v)])), M = f(() => {
3215
+ }, null) : u(De, null, [w.value, m.value && z(v)])), M = h(() => {
3216
3216
  const P = u("div", {
3217
3217
  style: {
3218
3218
  ...c.value.styles.content,
@@ -3345,7 +3345,7 @@ function Ke(e, t = !1) {
3345
3345
  }), r;
3346
3346
  }
3347
3347
  function Ds(e) {
3348
- const [t, n] = k(e.value.length), r = f(() => e.value.slice(0, O(t))), o = f(() => {
3348
+ const [t, n] = k(e.value.length), r = h(() => e.value.slice(0, O(t))), o = h(() => {
3349
3349
  const a = O(r)[O(r).length - 1];
3350
3350
  return a ? a.key : null;
3351
3351
  });
@@ -3376,7 +3376,7 @@ function Ds(e) {
3376
3376
  }
3377
3377
  function Fs(e, t) {
3378
3378
  const n = (o) => typeof t == "function" ? t(o) : t ? t[o.role] || {} : {};
3379
- return f(() => (e.value || []).map((o, i) => {
3379
+ return h(() => (e.value || []).map((o, i) => {
3380
3380
  const a = o.key ?? `preset_${i}`;
3381
3381
  return {
3382
3382
  ...n(o),
@@ -3416,7 +3416,7 @@ const Xs = 1, Vs = /* @__PURE__ */ H({
3416
3416
  });
3417
3417
  const a = B(null), l = B({}), {
3418
3418
  getPrefixCls: s
3419
- } = _(), c = s("bubble", e.prefixCls), h = `${c}-list`, [d, g, v] = ci(c), [p, m] = k(!1);
3419
+ } = _(), c = s("bubble", e.prefixCls), f = `${c}-list`, [d, g, v] = ci(c), [p, m] = k(!1);
3420
3420
  Ge(() => {
3421
3421
  m(!0), ke(() => {
3422
3422
  m(!1);
@@ -3450,7 +3450,7 @@ const Xs = 1, Vs = /* @__PURE__ */ H({
3450
3450
  });
3451
3451
  const M = zn(() => {
3452
3452
  e.autoScroll && w(O(T) + 1);
3453
- }), P = f(() => ({
3453
+ }), P = h(() => ({
3454
3454
  onUpdate: M
3455
3455
  }));
3456
3456
  return t({
@@ -3481,8 +3481,8 @@ const Xs = 1, Vs = /* @__PURE__ */ H({
3481
3481
  value: P.value
3482
3482
  }, {
3483
3483
  default: () => [u("div", q(o, {
3484
- class: A(h, e.rootClassName, g, v, {
3485
- [`${h}-reach-end`]: C.value
3484
+ class: A(f, e.rootClassName, g, v, {
3485
+ [`${f}-reach-end`]: C.value
3486
3486
  }),
3487
3487
  ref: a,
3488
3488
  onScroll: y
@@ -3905,12 +3905,12 @@ function $c(e, t) {
3905
3905
  }
3906
3906
  Si(as.primary);
3907
3907
  var j = function(t, n) {
3908
- var r, o = Vr({}, t, n.attrs), i = o.class, a = o.icon, l = o.spin, s = o.rotate, c = o.tabindex, h = o.twoToneColor, d = o.onClick, g = xc(o, pc), v = hi(), p = v.prefixCls, m = v.rootClassName, b = (r = {}, _e(r, m.value, !!m.value), _e(r, p.value, !0), _e(r, "".concat(p.value, "-").concat(a.name), !!a.name), _e(r, "".concat(p.value, "-spin"), !!l || a.name === "loading"), r), S = c;
3908
+ var r, o = Vr({}, t, n.attrs), i = o.class, a = o.icon, l = o.spin, s = o.rotate, c = o.tabindex, f = o.twoToneColor, d = o.onClick, g = xc(o, pc), v = hi(), p = v.prefixCls, m = v.rootClassName, b = (r = {}, _e(r, m.value, !!m.value), _e(r, p.value, !0), _e(r, "".concat(p.value, "-").concat(a.name), !!a.name), _e(r, "".concat(p.value, "-spin"), !!l || a.name === "loading"), r), S = c;
3909
3909
  S === void 0 && d && (S = -1);
3910
3910
  var $ = s ? {
3911
3911
  msTransform: "rotate(".concat(s, "deg)"),
3912
3912
  transform: "rotate(".concat(s, "deg)")
3913
- } : void 0, C = yi(h), x = vc(C, 2), T = x[0], w = x[1];
3913
+ } : void 0, C = yi(f), x = vc(C, 2), T = x[0], w = x[1];
3914
3914
  return u("span", Vr({
3915
3915
  role: "img",
3916
3916
  "aria-label": a.name
@@ -4367,17 +4367,17 @@ const au = /* @__PURE__ */ H({
4367
4367
  setup(e) {
4368
4368
  const t = se(e, ["prefixCls", "info", "class", "direction", "onClick", "active", "menu"]);
4369
4369
  G(e, "class");
4370
- const n = f(() => Ke(t, {
4370
+ const n = h(() => Ke(t, {
4371
4371
  aria: !0,
4372
4372
  data: !0,
4373
4373
  attr: !0
4374
4374
  })), r = (g) => {
4375
4375
  g.stopPropagation();
4376
- }, o = f(() => e.info.disabled), [i, a] = k(!1), [l, s] = k(!1), c = f(() => A(e.class, `${e.prefixCls}-item`, {
4376
+ }, o = h(() => e.info.disabled), [i, a] = k(!1), [l, s] = k(!1), c = h(() => A(e.class, `${e.prefixCls}-item`, {
4377
4377
  [`${e.prefixCls}-item-active`]: e.active && !o.value
4378
4378
  }, {
4379
4379
  [`${e.prefixCls}-item-disabled`]: o.value
4380
- })), h = () => {
4380
+ })), f = () => {
4381
4381
  !o.value && e.onClick && e.onClick(e.info);
4382
4382
  }, d = (g) => {
4383
4383
  g && s(!g);
@@ -4390,7 +4390,7 @@ const au = /* @__PURE__ */ H({
4390
4390
  }, {
4391
4391
  default: () => [u("li", q(n.value, {
4392
4392
  class: c.value,
4393
- onClick: h
4393
+ onClick: f
4394
4394
  }), [e.info.icon && u("div", {
4395
4395
  class: `${e.prefixCls}-icon`
4396
4396
  }, [e.info.icon]), u(de.Text, {
@@ -4424,13 +4424,13 @@ const au = /* @__PURE__ */ H({
4424
4424
  );
4425
4425
  }, su = () => ne(
4426
4426
  Ci,
4427
- f(() => xn.value || {})
4427
+ h(() => xn.value || {})
4428
4428
  ), cu = H({
4429
4429
  props: {
4430
4430
  value: be()
4431
4431
  },
4432
4432
  setup(e, { slots: t }) {
4433
- return lu(f(() => e.value)), () => {
4433
+ return lu(h(() => e.value)), () => {
4434
4434
  var n;
4435
4435
  return (n = t.default) == null ? void 0 : n.call(t);
4436
4436
  };
@@ -4439,7 +4439,7 @@ const au = /* @__PURE__ */ H({
4439
4439
  name: "AXConversationsGroupTitle",
4440
4440
  __name: "GroupTitle",
4441
4441
  setup(e) {
4442
- const t = Mt(), n = su(), r = f(() => {
4442
+ const t = Mt(), n = su(), r = h(() => {
4443
4443
  var o;
4444
4444
  return (o = t.default) == null ? void 0 : o.call(t);
4445
4445
  });
@@ -4468,7 +4468,7 @@ function nr(e, t) {
4468
4468
  }), [a, l];
4469
4469
  }
4470
4470
  const Qt = "__ungrouped", uu = (e, t = []) => {
4471
- const n = f(() => {
4471
+ const n = h(() => {
4472
4472
  if (!z(e))
4473
4473
  return {
4474
4474
  enableGroup: !1,
@@ -4485,7 +4485,7 @@ const Qt = "__ungrouped", uu = (e, t = []) => {
4485
4485
  title: r.title
4486
4486
  };
4487
4487
  });
4488
- return f(() => {
4488
+ return h(() => {
4489
4489
  if (!n.value.enableGroup)
4490
4490
  return {
4491
4491
  groupList: [
@@ -4625,7 +4625,7 @@ const Qt = "__ungrouped", uu = (e, t = []) => {
4625
4625
  setup(e) {
4626
4626
  const t = se(e, ["prefixCls", "rootClassName", "items", "activeKey", "defaultActiveKey", "onActiveChange", "menu", "styles", "classNames", "groupable", "class", "style"]);
4627
4627
  G(e, "class"), G(e, "activeKey"), G(e, "prefixCls");
4628
- const n = B(e.activeKey), r = f(() => Ke(t, {
4628
+ const n = B(e.activeKey), r = h(() => Ke(t, {
4629
4629
  attr: !0,
4630
4630
  aria: !0,
4631
4631
  data: !0
@@ -4638,14 +4638,14 @@ const Qt = "__ungrouped", uu = (e, t = []) => {
4638
4638
  const a = uu(() => e.groupable, () => e.items), {
4639
4639
  getPrefixCls: l,
4640
4640
  direction: s
4641
- } = _(), c = f(() => l("conversations", e.prefixCls)), h = $e("conversations"), [d, g, v] = hu(c), p = f(() => A(c.value, h.value.className, e.class, e.rootClassName, g, v, {
4641
+ } = _(), c = h(() => l("conversations", e.prefixCls)), f = $e("conversations"), [d, g, v] = hu(c), p = h(() => A(c.value, f.value.className, e.class, e.rootClassName, g, v, {
4642
4642
  [`${c.value}-rtl`]: s.value === "rtl"
4643
4643
  })), m = (b) => {
4644
4644
  i(b.key), e.onActiveChange && e.onActiveChange(b.key);
4645
4645
  };
4646
4646
  return () => d(u("ul", q(r.value, {
4647
4647
  style: {
4648
- ...typeof h.value.style == "object" ? h.value.style : {},
4648
+ ...typeof f.value.style == "object" ? f.value.style : {},
4649
4649
  ...typeof e.style == "object" ? e.style : {}
4650
4650
  },
4651
4651
  class: p.value
@@ -4655,9 +4655,9 @@ const Qt = "__ungrouped", uu = (e, t = []) => {
4655
4655
  info: C,
4656
4656
  prefixCls: c.value,
4657
4657
  direction: s.value,
4658
- class: A(e.classNames.item, h.value.classNames.item),
4658
+ class: A(e.classNames.item, f.value.classNames.item),
4659
4659
  style: {
4660
- ...h.value.styles.item,
4660
+ ...f.value.styles.item,
4661
4661
  ...e.styles.item
4662
4662
  },
4663
4663
  menu: typeof e.menu == "function" ? e.menu(C) : e.menu,
@@ -4770,7 +4770,7 @@ const Qt = "__ungrouped", uu = (e, t = []) => {
4770
4770
  const {
4771
4771
  direction: t,
4772
4772
  getPrefixCls: n
4773
- } = _(), r = n("welcome", e.prefixCls), o = $e("welcome"), [i, a, l] = vu(r), s = f(() => {
4773
+ } = _(), r = n("welcome", e.prefixCls), o = $e("welcome"), [i, a, l] = vu(r), s = h(() => {
4774
4774
  if (!e.icon)
4775
4775
  return null;
4776
4776
  let d = e.icon;
@@ -4781,13 +4781,13 @@ const Qt = "__ungrouped", uu = (e, t = []) => {
4781
4781
  class: A(`${r}-icon`, o.value.classNames.icon, e.classNames.icon),
4782
4782
  style: e.styles.icon
4783
4783
  }, [d]);
4784
- }), c = f(() => e.title ? u(de.Title, {
4784
+ }), c = h(() => e.title ? u(de.Title, {
4785
4785
  level: 4,
4786
4786
  class: A(`${r}-title`, o.value.classNames.title, e.classNames.title),
4787
4787
  style: e.styles.title
4788
4788
  }, {
4789
4789
  default: () => [e.title]
4790
- }) : null), h = f(() => e.extra ? u("div", {
4790
+ }) : null), f = h(() => e.extra ? u("div", {
4791
4791
  class: A(`${r}-extra`, o.value.classNames.extra, e.classNames.extra),
4792
4792
  style: e.styles.extra
4793
4793
  }, [e.extra]) : null);
@@ -4805,7 +4805,7 @@ const Qt = "__ungrouped", uu = (e, t = []) => {
4805
4805
  align: "flex-start",
4806
4806
  class: `${r}-title-wrapper`
4807
4807
  }, {
4808
- default: () => [c.value, h.value]
4808
+ default: () => [c.value, f.value]
4809
4809
  }) : c.value, e.description && u(de.Text, {
4810
4810
  class: A(`${r}-description`, o.value.classNames.description, e.classNames.description),
4811
4811
  style: e.styles.description
@@ -4974,9 +4974,9 @@ const Qt = "__ungrouped", uu = (e, t = []) => {
4974
4974
  const {
4975
4975
  getPrefixCls: n,
4976
4976
  direction: r
4977
- } = _(), o = n("prompts", e.prefixCls), i = $e("prompts"), [a, l, s] = Cu(o), c = f(() => A(o, i.value.className, e.class, e.rootClassName, l, s, {
4977
+ } = _(), o = n("prompts", e.prefixCls), i = $e("prompts"), [a, l, s] = Cu(o), c = h(() => A(o, i.value.className, e.class, e.rootClassName, l, s, {
4978
4978
  [`${o}-rtl`]: r.value === "rtl"
4979
- })), h = f(() => A(`${o}-list`, i.value.classNames.list, e.classNames.list, {
4979
+ })), f = h(() => A(`${o}-list`, i.value.classNames.list, e.classNames.list, {
4980
4980
  [`${o}-list-wrap`]: e.wrap
4981
4981
  }, {
4982
4982
  [`${o}-list-vertical`]: e.vertical
@@ -4999,7 +4999,7 @@ const Qt = "__ungrouped", uu = (e, t = []) => {
4999
4999
  }, {
5000
5000
  default: () => [e.title]
5001
5001
  }), u("div", {
5002
- class: h.value,
5002
+ class: f.value,
5003
5003
  style: {
5004
5004
  ...i.value.styles.list,
5005
5005
  ...e.styles.list
@@ -5098,7 +5098,7 @@ function Ou(e, t, n, r, o) {
5098
5098
  (C) => C.value === i.value[p - 1]
5099
5099
  ), S = m.length, $ = m[(b + v + S) % S];
5100
5100
  a([...i.value.slice(0, p - 1), $.value]);
5101
- }, h = () => {
5101
+ }, f = () => {
5102
5102
  i.value.length > 1 && a(i.value.slice(0, i.value.length - 1));
5103
5103
  }, d = () => {
5104
5104
  const v = l(i.value.length + 1);
@@ -5113,10 +5113,10 @@ function Ou(e, t, n, r, o) {
5113
5113
  c(-1), v.preventDefault();
5114
5114
  break;
5115
5115
  case "ArrowRight":
5116
- z(n) ? h() : d(), v.preventDefault();
5116
+ z(n) ? f() : d(), v.preventDefault();
5117
5117
  break;
5118
5118
  case "ArrowLeft":
5119
- z(n) ? d() : h(), v.preventDefault();
5119
+ z(n) ? d() : f(), v.preventDefault();
5120
5120
  break;
5121
5121
  case "Enter":
5122
5122
  l(i.value.length + 1).length || r(s(i.value)), v.preventDefault();
@@ -5166,18 +5166,18 @@ const Fd = /* @__PURE__ */ H({
5166
5166
  const {
5167
5167
  direction: t,
5168
5168
  getPrefixCls: n
5169
- } = _(), r = f(() => n("suggestion", e.prefixCls));
5169
+ } = _(), r = h(() => n("suggestion", e.prefixCls));
5170
5170
  `${r.value}`;
5171
- const o = f(() => t.value === "rtl"), i = $e("suggestion"), [a, l, s] = Tu(r), [c, h] = k(e.open), [d, g] = k(), v = (T) => {
5171
+ const o = h(() => t.value === "rtl"), i = $e("suggestion"), [a, l, s] = Tu(r), [c, f] = k(e.open), [d, g] = k(), v = (T) => {
5172
5172
  var w;
5173
- h(T), (w = e.onOpenChange) == null || w.call(e, T);
5173
+ f(T), (w = e.onOpenChange) == null || w.call(e, T);
5174
5174
  }, p = (T) => {
5175
5175
  T === !1 ? v(!1) : (g(T), v(!0));
5176
5176
  }, m = () => {
5177
5177
  v(!1);
5178
- }, b = f(() => typeof e.items == "function" ? e.items(d.value) : e.items), S = (T) => {
5178
+ }, b = h(() => typeof e.items == "function" ? e.items(d.value) : e.items), S = (T) => {
5179
5179
  e.onSelect && e.onSelect(T[T.length - 1]), v(!1);
5180
- }, [$, C] = Ou(b, c, o, S, m), x = f(() => {
5180
+ }, [$, C] = Ou(b, c, o, S, m), x = h(() => {
5181
5181
  var T;
5182
5182
  return (T = e.children) == null ? void 0 : T.call(e, {
5183
5183
  onTrigger: p,
@@ -5217,13 +5217,13 @@ const Fd = /* @__PURE__ */ H({
5217
5217
  );
5218
5218
  }, Pu = () => ne(
5219
5219
  xi,
5220
- f(() => $n.value || {})
5220
+ h(() => $n.value || {})
5221
5221
  ), Eu = H({
5222
5222
  props: {
5223
5223
  value: be()
5224
5224
  },
5225
5225
  setup(e, { slots: t }) {
5226
- return Au(f(() => e.value)), () => {
5226
+ return Au(h(() => e.value)), () => {
5227
5227
  var n;
5228
5228
  return (n = t.default) == null ? void 0 : n.call(t);
5229
5229
  };
@@ -5238,13 +5238,13 @@ const Fd = /* @__PURE__ */ H({
5238
5238
  );
5239
5239
  }, rr = () => ne(
5240
5240
  $i,
5241
- f(() => wn.value || {})
5241
+ h(() => wn.value || {})
5242
5242
  ), Iu = H({
5243
5243
  props: {
5244
5244
  value: be()
5245
5245
  },
5246
5246
  setup(e, { slots: t }) {
5247
- return Mu(f(() => e.value)), () => {
5247
+ return Mu(h(() => e.value)), () => {
5248
5248
  var n;
5249
5249
  return (n = t.default) == null ? void 0 : n.call(t);
5250
5250
  };
@@ -5258,10 +5258,11 @@ const Fd = /* @__PURE__ */ H({
5258
5258
  setup(e) {
5259
5259
  const t = se(e, ["action", "onClick"]);
5260
5260
  G(e, "onClick");
5261
- const n = Mt(), r = rr(), o = f(() => {
5262
- var s;
5263
- return r.value.disabled ?? t.disabled ?? ((s = r.value) == null ? void 0 : s[`${e.action}Disabled`]);
5264
- }), i = f(() => r.value.prefixCls), a = f(() => {
5261
+ const n = Mt(), r = rr(), o = h(() => {
5262
+ var f;
5263
+ const l = r.value.disabled, s = t.disabled, c = (f = r.value) == null ? void 0 : f[`${e.action}Disabled`];
5264
+ return l ?? s ?? c;
5265
+ }), i = h(() => r.value.prefixCls), a = h(() => {
5265
5266
  var l;
5266
5267
  return (l = r.value) == null ? void 0 : l[e.action];
5267
5268
  });
@@ -5544,7 +5545,7 @@ const Fd = /* @__PURE__ */ H({
5544
5545
  }
5545
5546
  },
5546
5547
  setup(e) {
5547
- const t = e, n = rr(), r = f(() => n.value.speechRecording), o = f(() => n.value.prefixCls), i = f(() => {
5548
+ const t = e, n = rr(), r = h(() => n.value.speechRecording), o = h(() => n.value.prefixCls), i = h(() => {
5548
5549
  let a;
5549
5550
  return r.value ? a = u(Ru, {
5550
5551
  className: `${o.value}-recording-icon`
@@ -5710,7 +5711,7 @@ const Fd = /* @__PURE__ */ H({
5710
5711
  let Et;
5711
5712
  !Et && typeof window < "u" && (Et = window.SpeechRecognition || window.webkitSpeechRecognition);
5712
5713
  function Fu(e, t) {
5713
- const n = e, r = f(() => {
5714
+ const n = e, r = h(() => {
5714
5715
  const m = z(t);
5715
5716
  return typeof m == "object" ? {
5716
5717
  controlledRecording: m.recording,
@@ -5721,7 +5722,7 @@ function Fu(e, t) {
5721
5722
  onControlledRecordingChange: void 0,
5722
5723
  speechInControlled: !1
5723
5724
  };
5724
- }), o = f(() => r.value.controlledRecording), i = r.value.onControlledRecordingChange, a = r.value.speechInControlled, l = B(null);
5725
+ }), o = h(() => r.value.controlledRecording), i = r.value.onControlledRecordingChange, a = r.value.speechInControlled, l = B(null);
5725
5726
  Ge(() => {
5726
5727
  if (typeof navigator < "u" && "permissions" in navigator) {
5727
5728
  let m = null;
@@ -5734,7 +5735,7 @@ function Fu(e, t) {
5734
5735
  });
5735
5736
  }
5736
5737
  });
5737
- const s = f(() => Et && l.value !== "denied"), c = B(null), [h, d] = nr(!1, {
5738
+ const s = h(() => Et && l.value !== "denied"), c = B(null), [f, d] = nr(!1, {
5738
5739
  value: o
5739
5740
  }), g = B(!1), v = () => {
5740
5741
  if (s.value && !c.value) {
@@ -5754,8 +5755,8 @@ function Fu(e, t) {
5754
5755
  }
5755
5756
  };
5756
5757
  return { speechPermission: s, triggerSpeech: (m) => {
5757
- m && !h.value || (g.value = m, a ? i == null || i(!h.value) : (v(), c.value && (h.value ? (c.value.stop(), i == null || i(!1)) : (c.value.start(), i == null || i(!0)))));
5758
- }, recording: h };
5758
+ m && !f.value || (g.value = m, a ? i == null || i(!f.value) : (v(), c.value && (f.value ? (c.value.stop(), i == null || i(!1)) : (c.value.start(), i == null || i(!0)))));
5759
+ }, recording: f };
5759
5760
  }
5760
5761
  function Xu(e, t) {
5761
5762
  for (var n = e, r = 0; r < t.length; r += 1) {
@@ -5784,7 +5785,8 @@ const Vu = /* @__PURE__ */ H({
5784
5785
  default: "enter"
5785
5786
  },
5786
5787
  disabled: {
5787
- type: Boolean
5788
+ type: Boolean,
5789
+ default: void 0
5788
5790
  },
5789
5791
  onSubmit: {},
5790
5792
  onChange: {},
@@ -5821,11 +5823,11 @@ const Vu = /* @__PURE__ */ H({
5821
5823
  const {
5822
5824
  direction: o,
5823
5825
  getPrefixCls: i
5824
- } = _(), a = f(() => i("sender", e.prefixCls)), l = B(null), s = B(null), c = $e("sender"), h = f(() => `${a.value}-input`), [d, g, v] = Du(a.value), p = f(() => A(a.value, c.value.className, e.className, e.rootClassName, g, v, {
5826
+ } = _(), a = h(() => i("sender", e.prefixCls)), l = B(null), s = B(null), c = $e("sender"), f = h(() => `${a.value}-input`), [d, g, v] = Du(a.value), p = h(() => A(a.value, c.value.className, e.className, e.rootClassName, g, v, {
5825
5827
  [`${a.value}-rtl`]: o.value === "rtl",
5826
5828
  [`${a.value}-disabled`]: e.disabled
5827
- })), m = f(() => `${a.value}-actions-btn`), b = f(() => `${a.value}-actions-list`), [S, $] = nr(e.defaultValue || "", {
5828
- value: f(() => e.value)
5829
+ })), m = h(() => `${a.value}-actions-btn`), b = h(() => `${a.value}-actions-list`), [S, $] = nr(e.defaultValue || "", {
5830
+ value: h(() => e.value)
5829
5831
  }), C = (I, V) => {
5830
5832
  $(I), e.onChange && e.onChange(I, V);
5831
5833
  }, {
@@ -5834,11 +5836,11 @@ const Vu = /* @__PURE__ */ H({
5834
5836
  recording: w
5835
5837
  } = Fu((I) => {
5836
5838
  C(`${S.value} ${I}`);
5837
- }, () => e.allowSpeech), y = r(e.components, ["input"], Ki.TextArea), M = f(() => Ke(n, {
5839
+ }, () => e.allowSpeech), y = r(e.components, ["input"], Ki.TextArea), M = h(() => Ke(n, {
5838
5840
  attr: !0,
5839
5841
  aria: !0,
5840
5842
  data: !0
5841
- })), P = f(() => ({
5843
+ })), P = h(() => ({
5842
5844
  ...M.value,
5843
5845
  ref: s
5844
5846
  })), E = () => {
@@ -5866,8 +5868,8 @@ const Vu = /* @__PURE__ */ H({
5866
5868
  V && e.onPasteFile && (e.onPasteFile(V), I.preventDefault()), (ut = e.onPaste) == null || ut.call(e, I);
5867
5869
  }, Ne = (I) => {
5868
5870
  var V, Y;
5869
- I.target !== ((V = l.value) == null ? void 0 : V.querySelector(`.${h.value}`)) && I.preventDefault(), (Y = s.value) == null || Y.focus();
5870
- }, jt = f(() => {
5871
+ I.target !== ((V = l.value) == null ? void 0 : V.querySelector(`.${f.value}`)) && I.preventDefault(), (Y = s.value) == null || Y.focus();
5872
+ }, jt = h(() => {
5871
5873
  let I = u(et, {
5872
5874
  class: `${b.value}-presets`
5873
5875
  }, {
@@ -5921,7 +5923,7 @@ const Vu = /* @__PURE__ */ H({
5921
5923
  ...c.value.styles.input,
5922
5924
  ...e.styles.input
5923
5925
  },
5924
- class: A(h.value, c.value.classNames.input, e.classNames.input),
5926
+ class: A(f.value, c.value.classNames.input, e.classNames.input),
5925
5927
  autoSize: {
5926
5928
  maxRows: 8
5927
5929
  },
@@ -5988,7 +5990,7 @@ const Vu = /* @__PURE__ */ H({
5988
5990
  }),
5989
5991
  setup(e) {
5990
5992
  G(e, "classNames");
5991
- const t = Mt(), n = Pu(), r = f(() => `${n.value.prefixCls}-header`);
5993
+ const t = Mt(), n = Pu(), r = h(() => `${n.value.prefixCls}-header`);
5992
5994
  return () => {
5993
5995
  var o;
5994
5996
  return e.open && u("div", {
@@ -6038,14 +6040,14 @@ const Vu = /* @__PURE__ */ H({
6038
6040
  );
6039
6041
  }, zt = () => ne(
6040
6042
  wi,
6041
- f(() => Tn.value || {})
6043
+ h(() => Tn.value || {})
6042
6044
  ), Gu = H({
6043
6045
  inheritAttrs: !1,
6044
6046
  props: {
6045
6047
  value: be()
6046
6048
  },
6047
6049
  setup(e, { slots: t }) {
6048
- return ku(f(() => e.value)), () => {
6050
+ return ku(h(() => e.value)), () => {
6049
6051
  var n;
6050
6052
  return (n = t.default) == null ? void 0 : n.call(t);
6051
6053
  };
@@ -6065,17 +6067,17 @@ const Vu = /* @__PURE__ */ H({
6065
6067
  setup(e, {
6066
6068
  expose: t
6067
6069
  }) {
6068
- const n = `${e.prefixCls}-placeholder`, r = f(() => e.placeholder || {}), o = Fe("upload-dragger"), i = zt(), [a, l] = k(!1), s = () => {
6070
+ const n = `${e.prefixCls}-placeholder`, r = h(() => e.placeholder || {}), o = Fe("upload-dragger"), i = zt(), [a, l] = k(!1), s = () => {
6069
6071
  l(!0);
6070
6072
  }, c = (g) => {
6071
6073
  g.currentTarget.contains(g.relatedTarget) || l(!1);
6072
- }, h = () => {
6074
+ }, f = () => {
6073
6075
  l(!1);
6074
6076
  };
6075
6077
  t({
6076
6078
  nativeElement: o
6077
6079
  });
6078
- const d = f(() => Mn(e.placeholder) ? e.placeholder : u(et, {
6080
+ const d = h(() => Mn(e.placeholder) ? e.placeholder : u(et, {
6079
6081
  align: "center",
6080
6082
  justify: "center",
6081
6083
  vertical: !0,
@@ -6104,7 +6106,7 @@ const Vu = /* @__PURE__ */ H({
6104
6106
  }, e.className),
6105
6107
  onDragenter: s,
6106
6108
  onDragleave: c,
6107
- onDrop: h,
6109
+ onDrop: f,
6108
6110
  "aria-hidden": i.value.disabled,
6109
6111
  style: e.style
6110
6112
  }, [u(wo.Dragger, q({
@@ -6143,17 +6145,17 @@ const Vu = /* @__PURE__ */ H({
6143
6145
  i(!0);
6144
6146
  }, c = (g) => {
6145
6147
  g.preventDefault();
6146
- }, h = (g) => {
6148
+ }, f = (g) => {
6147
6149
  g.relatedTarget || i(!1);
6148
6150
  }, d = (g) => {
6149
6151
  i(!1), g.preventDefault();
6150
6152
  };
6151
- document.addEventListener("dragenter", s), document.addEventListener("dragover", c), document.addEventListener("dragleave", h), document.addEventListener("drop", d), ke(() => {
6152
- document.removeEventListener("dragenter", s), document.removeEventListener("dragover", c), document.removeEventListener("dragleave", h), document.removeEventListener("drop", d);
6153
+ document.addEventListener("dragenter", s), document.addEventListener("dragover", c), document.addEventListener("dragleave", f), document.addEventListener("drop", d), ke(() => {
6154
+ document.removeEventListener("dragenter", s), document.removeEventListener("dragover", c), document.removeEventListener("dragleave", f), document.removeEventListener("drop", d);
6153
6155
  });
6154
6156
  }
6155
6157
  });
6156
- const a = f(() => e.getDropContainer && n.value && !t.value.disabled), l = `${e.prefixCls}-drop-area`;
6158
+ const a = h(() => e.getDropContainer && n.value && !t.value.disabled), l = `${e.prefixCls}-drop-area`;
6157
6159
  return () => a.value ? u(Di, {
6158
6160
  to: n.value
6159
6161
  }, {
@@ -6252,8 +6254,8 @@ function nd(e) {
6252
6254
  if (n.onload = () => {
6253
6255
  const { width: r, height: o } = n, i = r / o, a = i > 1 ? St : St * i, l = i > 1 ? St / i : St, s = document.createElement("canvas");
6254
6256
  s.width = a, s.height = l, s.style.cssText = `position: fixed; left: 0; top: 0; width: ${a}px; height: ${l}px; z-index: 9999; display: none;`, document.body.appendChild(s), s.getContext("2d").drawImage(n, 0, 0, a, l);
6255
- const h = s.toDataURL();
6256
- document.body.removeChild(s), window.URL.revokeObjectURL(n.src), t(h);
6257
+ const f = s.toDataURL();
6258
+ document.body.removeChild(s), window.URL.revokeObjectURL(n.src), t(f);
6257
6259
  }, n.crossOrigin = "anonymous", e.type.startsWith("image/svg+xml")) {
6258
6260
  const r = new FileReader();
6259
6261
  r.onload = () => {
@@ -6556,8 +6558,8 @@ class or {
6556
6558
  this.r = g, this.g = g, this.b = g;
6557
6559
  }
6558
6560
  let i = 0, a = 0, l = 0;
6559
- const s = t / 60, c = (1 - Math.abs(2 * r - 1)) * n, h = c * (1 - Math.abs(s % 2 - 1));
6560
- s >= 0 && s < 1 ? (i = c, a = h) : s >= 1 && s < 2 ? (i = h, a = c) : s >= 2 && s < 3 ? (a = c, l = h) : s >= 3 && s < 4 ? (a = h, l = c) : s >= 4 && s < 5 ? (i = h, l = c) : s >= 5 && s < 6 && (i = c, l = h);
6561
+ const s = t / 60, c = (1 - Math.abs(2 * r - 1)) * n, f = c * (1 - Math.abs(s % 2 - 1));
6562
+ s >= 0 && s < 1 ? (i = c, a = f) : s >= 1 && s < 2 ? (i = f, a = c) : s >= 2 && s < 3 ? (a = c, l = f) : s >= 3 && s < 4 ? (a = f, l = c) : s >= 4 && s < 5 ? (i = f, l = c) : s >= 5 && s < 6 && (i = c, l = f);
6561
6563
  const d = r - c / 2;
6562
6564
  this.r = U((i + d) * 255), this.g = U((a + d) * 255), this.b = U((l + d) * 255);
6563
6565
  }
@@ -6571,26 +6573,26 @@ class or {
6571
6573
  const i = U(r * 255);
6572
6574
  if (this.r = i, this.g = i, this.b = i, n <= 0)
6573
6575
  return;
6574
- const a = t / 60, l = Math.floor(a), s = a - l, c = U(r * (1 - n) * 255), h = U(r * (1 - n * s) * 255), d = U(r * (1 - n * (1 - s)) * 255);
6576
+ const a = t / 60, l = Math.floor(a), s = a - l, c = U(r * (1 - n) * 255), f = U(r * (1 - n * s) * 255), d = U(r * (1 - n * (1 - s)) * 255);
6575
6577
  switch (l) {
6576
6578
  case 0:
6577
6579
  this.g = d, this.b = c;
6578
6580
  break;
6579
6581
  case 1:
6580
- this.r = h, this.b = c;
6582
+ this.r = f, this.b = c;
6581
6583
  break;
6582
6584
  case 2:
6583
6585
  this.r = c, this.b = d;
6584
6586
  break;
6585
6587
  case 3:
6586
- this.r = c, this.g = h;
6588
+ this.r = c, this.g = f;
6587
6589
  break;
6588
6590
  case 4:
6589
6591
  this.r = d, this.g = c;
6590
6592
  break;
6591
6593
  case 5:
6592
6594
  default:
6593
- this.g = c, this.b = h;
6595
+ this.g = c, this.b = f;
6594
6596
  break;
6595
6597
  }
6596
6598
  }
@@ -7051,15 +7053,15 @@ const id = (e) => {
7051
7053
  L /= 1024, re++;
7052
7054
  return `${L.toFixed(0)} ${Z[re]}`;
7053
7055
  }
7054
- const a = zt(), l = f(() => a.value.disabled), s = f(() => e.item.name), c = f(() => e.item.size), h = f(() => e.item.percent), d = f(() => e.item.status || "done"), g = f(() => e.item.description), {
7056
+ const a = zt(), l = h(() => a.value.disabled), s = h(() => e.item.name), c = h(() => e.item.size), f = h(() => e.item.percent), d = h(() => e.item.status || "done"), g = h(() => e.item.description), {
7055
7057
  getPrefixCls: v
7056
- } = _(), p = f(() => v("attachment", e.prefixCls)), m = `${p.value}-list-card`, [b, S, $] = Ai(p), C = Fe("file-list-card-container"), x = f(() => {
7058
+ } = _(), p = h(() => v("attachment", e.prefixCls)), m = `${p.value}-list-card`, [b, S, $] = Ai(p), C = Fe("file-list-card-container"), x = h(() => {
7057
7059
  const D = s.value || "", L = D.match(/^(.*)\.[^.]+$/);
7058
7060
  return {
7059
7061
  namePrefix: L ? L[1] : D,
7060
7062
  nameSuffix: L ? D.slice(L[1].length) : ""
7061
7063
  };
7062
- }), T = f(() => o(x.value.nameSuffix, n)), w = f(() => g.value ? g.value : d.value === "uploading" ? `${h.value || 0}%` : d.value === "error" ? e.item.response || _t : c.value ? i(c.value) : _t), y = f(() => {
7064
+ }), T = h(() => o(x.value.nameSuffix, n)), w = h(() => g.value ? g.value : d.value === "uploading" ? `${f.value || 0}%` : d.value === "error" ? e.item.response || _t : c.value ? i(c.value) : _t), y = h(() => {
7063
7065
  for (const {
7064
7066
  ext: D,
7065
7067
  icon: L,
@@ -7090,13 +7092,13 @@ const id = (e) => {
7090
7092
  }, {
7091
7093
  immediate: !0
7092
7094
  });
7093
- const E = f(() => e.item.thumbUrl || e.item.url || M.value), N = f(() => T.value && (e.item.originFileObj || E.value)), X = f(() => N.value ? u(De, null, [u("img", {
7095
+ const E = h(() => e.item.thumbUrl || e.item.url || M.value), N = h(() => T.value && (e.item.originFileObj || E.value)), X = h(() => N.value ? u(De, null, [u("img", {
7094
7096
  alt: "preview",
7095
7097
  src: E.value
7096
7098
  }, null), d.value !== "done" && u("div", {
7097
7099
  class: `${m}-img-mask`
7098
- }, [d.value === "uploading" && h.value !== void 0 && u(Zi, {
7099
- percent: h.value,
7100
+ }, [d.value === "uploading" && f.value !== void 0 && u(Zi, {
7101
+ percent: f.value,
7100
7102
  prefixCls: m
7101
7103
  }, null), d.value === "error" && u("div", {
7102
7104
  class: `${m}-desc`
@@ -7155,18 +7157,18 @@ const id = (e) => {
7155
7157
  itemStyle: null
7156
7158
  },
7157
7159
  setup(e) {
7158
- const t = f(() => `${e.prefixCls}-list`), n = Fe("file-list-container"), [r, o] = k(!1), i = zt();
7160
+ const t = h(() => `${e.prefixCls}-list`), n = Fe("file-list-container"), [r, o] = k(!1), i = zt();
7159
7161
  Ge(() => {
7160
7162
  o(!0), ke(() => {
7161
7163
  o(!1);
7162
7164
  });
7163
7165
  });
7164
- const [a, l] = k(!1), [s, c] = k(!1), h = () => {
7166
+ const [a, l] = k(!1), [s, c] = k(!1), f = () => {
7165
7167
  const p = n.value;
7166
7168
  p && (e.overflow === "scrollX" ? (l(Math.abs(p.scrollLeft) >= go), c(p.scrollWidth - p.clientWidth - Math.abs(p.scrollLeft) >= go)) : e.overflow === "scrollY" && (l(p.scrollTop !== 0), c(p.scrollHeight - p.clientHeight !== p.scrollTop)));
7167
7169
  };
7168
7170
  R(() => e.overflow, () => {
7169
- h();
7171
+ f();
7170
7172
  }, {
7171
7173
  immediate: !0
7172
7174
  });
@@ -7188,7 +7190,7 @@ const id = (e) => {
7188
7190
  [`${t.value}-overflow-ping-end`]: s.value
7189
7191
  }, e.listClassName),
7190
7192
  ref: "file-list-container",
7191
- onScroll: h,
7193
+ onScroll: f,
7192
7194
  style: e.listStyle
7193
7195
  }, [e.items.map((p) => u(Pi, {
7194
7196
  key: p.uid,
@@ -7266,14 +7268,14 @@ const dd = /* @__PURE__ */ H({
7266
7268
  const {
7267
7269
  getPrefixCls: r,
7268
7270
  direction: o
7269
- } = _(), i = r("attachment", e.prefixCls), a = $e("attachments"), l = f(() => a.value.classNames), s = f(() => a.value.styles), c = Fe("attachments-container"), h = Fe("attachments-upload"), [d, g, v] = Ai(i), p = f(() => A(g, v)), [m, b] = k(e.items);
7271
+ } = _(), i = r("attachment", e.prefixCls), a = $e("attachments"), l = h(() => a.value.classNames), s = h(() => a.value.styles), c = Fe("attachments-container"), f = Fe("attachments-upload"), [d, g, v] = Ai(i), p = h(() => A(g, v)), [m, b] = k(e.items);
7270
7272
  R(() => e.items, () => {
7271
7273
  b(e.items);
7272
7274
  });
7273
7275
  const S = (w) => {
7274
7276
  var y;
7275
7277
  b(w.fileList), (y = e.onChange) == null || y.call(e, w);
7276
- }, $ = f(() => ({
7278
+ }, $ = h(() => ({
7277
7279
  ...n,
7278
7280
  fileList: m.value,
7279
7281
  onChange: S
@@ -7296,7 +7298,7 @@ const dd = /* @__PURE__ */ H({
7296
7298
  ...y == null ? void 0 : y.style
7297
7299
  }
7298
7300
  }, null);
7299
- }, T = f(() => {
7301
+ }, T = h(() => {
7300
7302
  let w;
7301
7303
  if (e.children)
7302
7304
  return u(De, null, [u(Ti, {
@@ -7344,7 +7346,7 @@ const dd = /* @__PURE__ */ H({
7344
7346
  style: {
7345
7347
  display: "none"
7346
7348
  }
7347
- } : {}, h.value), u(fo, {
7349
+ } : {}, f.value), u(fo, {
7348
7350
  getDropContainer: e.getDropContainer || (() => c.value),
7349
7351
  prefixCls: i,
7350
7352
  className: p.value
@@ -7358,7 +7360,7 @@ const dd = /* @__PURE__ */ H({
7358
7360
  var M, P;
7359
7361
  const y = (
7360
7362
  // @ts-expect-error
7361
- (P = (M = h.value) == null ? void 0 : M.nativeElement) == null ? void 0 : P.querySelector('input[type="file"]')
7363
+ (P = (M = f.value) == null ? void 0 : M.nativeElement) == null ? void 0 : P.querySelector('input[type="file"]')
7362
7364
  );
7363
7365
  if (y) {
7364
7366
  const E = new DataTransfer();
@@ -7378,7 +7380,7 @@ const dd = /* @__PURE__ */ H({
7378
7380
  }), Vd = Object.assign(dd, {
7379
7381
  FileCard: Pi
7380
7382
  }), fd = (e, t, n) => {
7381
- const r = f(() => {
7383
+ const r = h(() => {
7382
7384
  const l = z(e);
7383
7385
  let s = {
7384
7386
  expandedKeys: [],
@@ -7395,14 +7397,14 @@ const dd = /* @__PURE__ */ H({
7395
7397
  customizeOnExpand: s.onExpand
7396
7398
  };
7397
7399
  }), [o, i] = k(r.value.customizeExpandedKeys), a = (l) => {
7398
- var c, h;
7400
+ var c, f;
7399
7401
  if (!r.value.enableCollapse)
7400
7402
  return;
7401
7403
  const s = o.value.includes(l) ? o.value.filter((d) => d !== l) : [...o.value, l];
7402
- (h = (c = r.value).customizeOnExpand) == null || h.call(c, s), i(s);
7404
+ (f = (c = r.value).customizeOnExpand) == null || f.call(c, s), i(s);
7403
7405
  };
7404
7406
  return [
7405
- f(() => r.value.enableCollapse),
7407
+ h(() => r.value.enableCollapse),
7406
7408
  o,
7407
7409
  a
7408
7410
  // collapseMotion,
@@ -7418,7 +7420,7 @@ const hd = (e) => {
7418
7420
  return o.reduce((i, a) => {
7419
7421
  const l = r[a];
7420
7422
  return o.forEach((s) => {
7421
- const c = `& ${n}-${a}-${s}`, h = a === s ? {} : {
7423
+ const c = `& ${n}-${a}-${s}`, f = a === s ? {} : {
7422
7424
  backgroundColor: "none !important",
7423
7425
  backgroundImage: `linear-gradient(${l}, ${r[s]})`
7424
7426
  };
@@ -7426,7 +7428,7 @@ const hd = (e) => {
7426
7428
  [`& ${n}-icon, & > *::before`]: {
7427
7429
  backgroundColor: `${l} !important`
7428
7430
  },
7429
- "& > :last-child::before": h
7431
+ "& > :last-child::before": f
7430
7432
  };
7431
7433
  }), i;
7432
7434
  }, {});
@@ -7619,13 +7621,13 @@ const hd = (e) => {
7619
7621
  );
7620
7622
  }, bd = () => ne(
7621
7623
  Ei,
7622
- f(() => An.value || {})
7624
+ h(() => An.value || {})
7623
7625
  ), Sd = H({
7624
7626
  props: {
7625
7627
  value: be()
7626
7628
  },
7627
7629
  setup(e, { slots: t }) {
7628
- return yd(f(() => e.value)), () => {
7630
+ return yd(h(() => e.value)), () => {
7629
7631
  var n;
7630
7632
  return (n = t.default) == null ? void 0 : n.call(t);
7631
7633
  };
@@ -7643,17 +7645,17 @@ const hd = (e) => {
7643
7645
  info: () => ({})
7644
7646
  }),
7645
7647
  setup(e) {
7646
- const t = se(e, ["info", "nextStatus", "onClick"]), n = f(() => Ke(t, {
7648
+ const t = se(e, ["info", "nextStatus", "onClick"]), n = h(() => Ke(t, {
7647
7649
  attr: !0,
7648
7650
  aria: !0,
7649
7651
  data: !0
7650
- })), r = bd(), o = f(() => r.value.prefixCls), i = f(() => r.value.enableCollapse), a = f(() => r.value.expandedKeys), l = f(() => r.value.direction), s = f(() => r.value.classNames), c = f(() => r.value.styles), h = Fi(), d = f(() => e.info.key ?? h), g = f(() => e.info.icon), v = f(() => e.info.title), p = f(() => e.info.extra), m = f(() => e.info.content), b = f(() => e.info.footer), S = f(() => e.info.status), $ = f(() => e.info.description), C = f(() => `${o.value}-item`), x = () => {
7652
+ })), r = bd(), o = h(() => r.value.prefixCls), i = h(() => r.value.enableCollapse), a = h(() => r.value.expandedKeys), l = h(() => r.value.direction), s = h(() => r.value.classNames), c = h(() => r.value.styles), f = Fi(), d = h(() => e.info.key ?? f), g = h(() => e.info.icon), v = h(() => e.info.title), p = h(() => e.info.extra), m = h(() => e.info.content), b = h(() => e.info.footer), S = h(() => e.info.status), $ = h(() => e.info.description), C = h(() => `${o.value}-item`), x = () => {
7651
7653
  var y;
7652
7654
  return (y = e.onClick) == null ? void 0 : y.call(e, d.value);
7653
- }, T = f(() => {
7655
+ }, T = h(() => {
7654
7656
  var y;
7655
7657
  return (y = a.value) == null ? void 0 : y.includes(d.value);
7656
- }), w = f(() => i.value ? T.value : !0);
7658
+ }), w = h(() => i.value ? T.value : !0);
7657
7659
  return () => u("div", q(n.value, {
7658
7660
  class: A(C.value, {
7659
7661
  [`${C.value}-${S.value}${e.nextStatus ? `-${e.nextStatus}` : ""}`]: S.value
@@ -7736,19 +7738,19 @@ const hd = (e) => {
7736
7738
  setup(e) {
7737
7739
  const t = se(e, ["prefixCls", "rootClassName", "class", "items", "collapsible", "styles", "style", "classNames", "size"]);
7738
7740
  G(e, "class"), G(e, "prefixCls");
7739
- const n = f(() => Ke(t, {
7741
+ const n = h(() => Ke(t, {
7740
7742
  attr: !0,
7741
7743
  aria: !0,
7742
7744
  data: !0
7743
7745
  })), {
7744
7746
  getPrefixCls: r,
7745
7747
  direction: o
7746
- } = _(), i = f(() => r()), a = f(() => r("thought-chain", e.prefixCls)), l = $e("thoughtChain"), [
7748
+ } = _(), i = h(() => r()), a = h(() => r("thought-chain", e.prefixCls)), l = $e("thoughtChain"), [
7747
7749
  s,
7748
7750
  c,
7749
- h
7751
+ f
7750
7752
  // collapseMotion
7751
- ] = fd(() => e.collapsible, a.value, i.value), [d, g, v] = vd(a), p = f(() => A(e.class, e.rootClassName, a.value, l.value.className, g, v, {
7753
+ ] = fd(() => e.collapsible, a.value, i.value), [d, g, v] = vd(a), p = h(() => A(e.class, e.rootClassName, a.value, l.value.className, g, v, {
7752
7754
  [`${a.value}-rtl`]: o.value === "rtl"
7753
7755
  }, `${a.value}-${e.size}`));
7754
7756
  return () => d(u("div", q(n.value, {
@@ -7800,7 +7802,7 @@ const hd = (e) => {
7800
7802
  ...b,
7801
7803
  icon: b.icon || S + 1
7802
7804
  },
7803
- onClick: h,
7805
+ onClick: f,
7804
7806
  nextStatus: (($ = e.items[S + 1]) == null ? void 0 : $.status) || b.status
7805
7807
  }, null);
7806
7808
  })];
@@ -7889,7 +7891,7 @@ const Od = async (e, t = {}) => {
7889
7891
  }, Me = class Me {
7890
7892
  constructor(t) {
7891
7893
  this.create = async (a, l, s) => {
7892
- var h;
7894
+ var f;
7893
7895
  const c = {
7894
7896
  method: "POST",
7895
7897
  body: JSON.stringify({
@@ -7920,29 +7922,29 @@ const Od = async (e, t = {}) => {
7920
7922
  }
7921
7923
  } catch (d) {
7922
7924
  const g = d instanceof Error ? d : new Error("Unknown error!");
7923
- throw (h = l == null ? void 0 : l.onError) == null || h.call(l, g), g;
7925
+ throw (f = l == null ? void 0 : l.onError) == null || f.call(l, g), g;
7924
7926
  }
7925
7927
  }, this.customResponseHandler = async (a, l, s) => {
7926
- var h, d;
7928
+ var f, d;
7927
7929
  const c = [];
7928
7930
  for await (const g of po({
7929
7931
  readableStream: a.body,
7930
7932
  transformStream: s
7931
7933
  }))
7932
- c.push(g), (h = l == null ? void 0 : l.onUpdate) == null || h.call(l, g);
7934
+ c.push(g), (f = l == null ? void 0 : l.onUpdate) == null || f.call(l, g);
7933
7935
  (d = l == null ? void 0 : l.onSuccess) == null || d.call(l, c);
7934
7936
  }, this.sseResponseHandler = async (a, l) => {
7935
- var c, h;
7937
+ var c, f;
7936
7938
  const s = [];
7937
7939
  for await (const d of po({
7938
7940
  readableStream: a.body
7939
7941
  }))
7940
7942
  s.push(d), (c = l == null ? void 0 : l.onUpdate) == null || c.call(l, d);
7941
- (h = l == null ? void 0 : l.onSuccess) == null || h.call(l, s);
7943
+ (f = l == null ? void 0 : l.onSuccess) == null || f.call(l, s);
7942
7944
  }, this.jsonResponseHandler = async (a, l) => {
7943
- var c, h;
7945
+ var c, f;
7944
7946
  const s = await a.json();
7945
- (c = l == null ? void 0 : l.onUpdate) == null || c.call(l, s), (h = l == null ? void 0 : l.onSuccess) == null || h.call(l, [s]);
7947
+ (c = l == null ? void 0 : l.onUpdate) == null || c.call(l, s), (f = l == null ? void 0 : l.onSuccess) == null || f.call(l, [s]);
7946
7948
  };
7947
7949
  const { baseURL: n, model: r, dangerouslyApiKey: o, ...i } = t;
7948
7950
  this.baseURL = t.baseURL, this.model = t.model, this.defaultHeaders = {
@@ -7992,7 +7994,7 @@ class Pd {
7992
7994
  function kd(e) {
7993
7995
  const { request: t, ...n } = e;
7994
7996
  return {
7995
- agent: f(
7997
+ agent: h(
7996
7998
  () => new Pd({
7997
7999
  // @ts-expect-error
7998
8000
  request: t || Ad({