yc-component 0.1.11 → 0.1.12

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.
@@ -1477,7 +1477,7 @@ const Oi = "1.16.1", pa = 64 * 1024, { isFunction: uo } = _, ha = (e, ...t) => {
1477
1477
  signal: x,
1478
1478
  cancelToken: W,
1479
1479
  timeout: R,
1480
- onDownloadProgress: ne,
1480
+ onDownloadProgress: te,
1481
1481
  onUploadProgress: A,
1482
1482
  responseType: N,
1483
1483
  headers: O,
@@ -1558,14 +1558,14 @@ const Oi = "1.16.1", pa = 64 * 1024, { isFunction: uo } = _, ha = (e, ...t) => {
1558
1558
  );
1559
1559
  }
1560
1560
  const ct = g && (N === "stream" || N === "response");
1561
- if (g && xe.body && (ne || k || ct && U)) {
1561
+ if (g && xe.body && (te || k || ct && U)) {
1562
1562
  const me = {};
1563
1563
  ["status", "statusText", "headers"].forEach((m) => {
1564
1564
  me[m] = xe[m];
1565
1565
  });
1566
- const je = _.toFiniteNumber(xe.headers.get("content-length")), [$e, Re] = ne && ca(
1566
+ const je = _.toFiniteNumber(xe.headers.get("content-length")), [$e, Re] = te && ca(
1567
1567
  je,
1568
- So(ua(ne), !0)
1568
+ So(ua(te), !0)
1569
1569
  ) || [];
1570
1570
  let mt = 0;
1571
1571
  const d = (m) => {
@@ -3421,20 +3421,20 @@ function ch(e, t, n = Te) {
3421
3421
  if (!(!(f.flags & 1) || !f.dirty && !x))
3422
3422
  if (t) {
3423
3423
  const W = f.run();
3424
- if (o || h || (v ? W.some((R, ne) => Bt(R, F[ne])) : Bt(W, F))) {
3424
+ if (o || h || (v ? W.some((R, te) => Bt(R, F[te])) : Bt(W, F))) {
3425
3425
  g && g();
3426
3426
  const R = _n;
3427
3427
  _n = f;
3428
3428
  try {
3429
- const ne = [
3429
+ const te = [
3430
3430
  W,
3431
3431
  // pass undefined as the old value when it's changed for the first time
3432
3432
  F === ho ? void 0 : v && F[0] === ho ? [] : F,
3433
3433
  b
3434
3434
  ];
3435
- F = W, l ? l(t, 3, ne) : (
3435
+ F = W, l ? l(t, 3, te) : (
3436
3436
  // @ts-expect-error
3437
- t(...ne)
3437
+ t(...te)
3438
3438
  );
3439
3439
  } finally {
3440
3440
  _n = R;
@@ -4061,10 +4061,10 @@ const sn = /* @__PURE__ */ new WeakMap(), eu = /* @__PURE__ */ Symbol("_vte"), t
4061
4061
  } = c, T = Yt(t.props);
4062
4062
  let { dynamicChildren: F } = t;
4063
4063
  process.env.NODE_ENV !== "production" && at && (l = !1, F = null);
4064
- const J = (R, ne, A) => {
4064
+ const J = (R, te, A) => {
4065
4065
  R.shapeFlag & 16 && u(
4066
4066
  R.children,
4067
- ne,
4067
+ te,
4068
4068
  A,
4069
4069
  o,
4070
4070
  s,
@@ -4073,11 +4073,11 @@ const sn = /* @__PURE__ */ new WeakMap(), eu = /* @__PURE__ */ Symbol("_vte"), t
4073
4073
  l
4074
4074
  );
4075
4075
  }, x = (R = t) => {
4076
- const ne = Yt(R.props), A = R.target = Ws(R.props, b), N = Ks(A, R, h, g);
4077
- A ? (i !== "svg" && Ca(A) ? i = "svg" : i !== "mathml" && Ta(A) && (i = "mathml"), o && o.isCE && (o.ce._teleportTargets || (o.ce._teleportTargets = /* @__PURE__ */ new Set())).add(A), ne || (J(R, A, N), _r(R, !1))) : process.env.NODE_ENV !== "production" && !ne && H("Invalid Teleport target on mount:", A, `(${typeof A})`);
4076
+ const te = Yt(R.props), A = R.target = Ws(R.props, b), N = Ks(A, R, h, g);
4077
+ A ? (i !== "svg" && Ca(A) ? i = "svg" : i !== "mathml" && Ta(A) && (i = "mathml"), o && o.isCE && (o.ce._teleportTargets || (o.ce._teleportTargets = /* @__PURE__ */ new Set())).add(A), te || (J(R, A, N), _r(R, !1))) : process.env.NODE_ENV !== "production" && !te && H("Invalid Teleport target on mount:", A, `(${typeof A})`);
4078
4078
  }, W = (R) => {
4079
- const ne = () => {
4080
- if (sn.get(R) === ne) {
4079
+ const te = () => {
4080
+ if (sn.get(R) === te) {
4081
4081
  if (sn.delete(R), Yt(R.props)) {
4082
4082
  const A = S(R.el) || n;
4083
4083
  J(R, A, R.anchor), _r(R, !0);
@@ -4085,20 +4085,20 @@ const sn = /* @__PURE__ */ new WeakMap(), eu = /* @__PURE__ */ Symbol("_vte"), t
4085
4085
  x(R);
4086
4086
  }
4087
4087
  };
4088
- sn.set(R, ne), rt(ne, s);
4088
+ sn.set(R, te), rt(te, s);
4089
4089
  };
4090
4090
  if (e == null) {
4091
- const R = t.el = process.env.NODE_ENV !== "production" ? v("teleport start") : h(""), ne = t.anchor = process.env.NODE_ENV !== "production" ? v("teleport end") : h("");
4092
- if (g(R, n, r), g(ne, n, r), Vh(t.props) || s && s.pendingBranch) {
4091
+ const R = t.el = process.env.NODE_ENV !== "production" ? v("teleport start") : h(""), te = t.anchor = process.env.NODE_ENV !== "production" ? v("teleport end") : h("");
4092
+ if (g(R, n, r), g(te, n, r), Vh(t.props) || s && s.pendingBranch) {
4093
4093
  W(t);
4094
4094
  return;
4095
4095
  }
4096
- T && (J(t, n, ne), _r(t, !0)), x();
4096
+ T && (J(t, n, te), _r(t, !0)), x();
4097
4097
  } else {
4098
4098
  t.el = e.el;
4099
- const R = t.anchor = e.anchor, ne = sn.get(e);
4100
- if (ne) {
4101
- ne.flags |= 8, sn.delete(e), W(t);
4099
+ const R = t.anchor = e.anchor, te = sn.get(e);
4100
+ if (te) {
4101
+ te.flags |= 8, sn.delete(e), W(t);
4102
4102
  return;
4103
4103
  }
4104
4104
  t.targetStart = e.targetStart;
@@ -4403,7 +4403,7 @@ function qs(e, t, n, r, o) {
4403
4403
  }, R = (A, N) => {
4404
4404
  const O = N[1];
4405
4405
  W(A, N), se(A) ? A.every((D) => D.length <= 1) && O() : A.length <= 1 && O();
4406
- }, ne = {
4406
+ }, te = {
4407
4407
  mode: i,
4408
4408
  persisted: a,
4409
4409
  beforeEnter(A) {
@@ -4430,7 +4430,7 @@ function qs(e, t, n, r, o) {
4430
4430
  return;
4431
4431
  let Y = !1;
4432
4432
  A[fr] = (I) => {
4433
- Y || (Y = !0, I ? W(D, [A]) : W(O, [A]), ne.delayedLeave && ne.delayedLeave(), A[fr] = void 0);
4433
+ Y || (Y = !0, I ? W(D, [A]) : W(O, [A]), te.delayedLeave && te.delayedLeave(), A[fr] = void 0);
4434
4434
  };
4435
4435
  const z = A[fr].bind(null, !1);
4436
4436
  N ? R(N, [A, z]) : z();
@@ -4461,7 +4461,7 @@ function qs(e, t, n, r, o) {
4461
4461
  return o && o(N), N;
4462
4462
  }
4463
4463
  };
4464
- return ne;
4464
+ return te;
4465
4465
  }
4466
4466
  function ws(e) {
4467
4467
  if (eo(e))
@@ -4957,7 +4957,7 @@ function r0(e) {
4957
4957
  render: x,
4958
4958
  renderTracked: W,
4959
4959
  renderTriggered: R,
4960
- errorCaptured: ne,
4960
+ errorCaptured: te,
4961
4961
  serverPrefetch: A,
4962
4962
  // public API
4963
4963
  expose: N,
@@ -5035,7 +5035,7 @@ function r0(e) {
5035
5035
  function k(B, P) {
5036
5036
  se(P) ? P.forEach((X) => B(X.bind(n))) : P && B(P.bind(n));
5037
5037
  }
5038
- if (k(zh, f), k(Vn, p), k(Wh, g), k(Kh, b), k(Bh, h), k(Uh, v), k(Yh, ne), k(Jh, W), k(Gh, R), k(ji, T), k(to, J), k(qh, A), se(N))
5038
+ if (k(zh, f), k(Vn, p), k(Wh, g), k(Kh, b), k(Bh, h), k(Uh, v), k(Yh, te), k(Jh, W), k(Gh, R), k(ji, T), k(to, J), k(qh, A), se(N))
5039
5039
  if (N.length) {
5040
5040
  const B = e.exposed || (e.exposed = {});
5041
5041
  N.forEach((P) => {
@@ -5397,12 +5397,12 @@ function Fa(e) {
5397
5397
  try {
5398
5398
  if (n.shapeFlag & 4) {
5399
5399
  const x = o || r, W = process.env.NODE_ENV !== "production" && g.__isScriptSetup ? new Proxy(x, {
5400
- get(R, ne, A) {
5400
+ get(R, te, A) {
5401
5401
  return H(
5402
5402
  `Property '${String(
5403
- ne
5403
+ te
5404
5404
  )}' was accessed via 'this'. Avoid using 'this' in templates.`
5405
- ), Reflect.get(R, ne, A);
5405
+ ), Reflect.get(R, te, A);
5406
5406
  }
5407
5407
  }) : x;
5408
5408
  S = Ot(
@@ -5447,15 +5447,15 @@ function Fa(e) {
5447
5447
  s
5448
5448
  )), F = Ht(F, T, !1, !0);
5449
5449
  else if (process.env.NODE_ENV !== "production" && !Xs && F.type !== Be) {
5450
- const R = Object.keys(a), ne = [], A = [];
5450
+ const R = Object.keys(a), te = [], A = [];
5451
5451
  for (let N = 0, O = R.length; N < O; N++) {
5452
5452
  const D = R[N];
5453
- Jr(D) ? Mr(D) || ne.push(D[2].toLowerCase() + D.slice(3)) : A.push(D);
5453
+ Jr(D) ? Mr(D) || te.push(D[2].toLowerCase() + D.slice(3)) : A.push(D);
5454
5454
  }
5455
5455
  A.length && H(
5456
5456
  `Extraneous non-props attributes (${A.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text or teleport root nodes.`
5457
- ), ne.length && H(
5458
- `Extraneous non-emits event listeners (${ne.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`
5457
+ ), te.length && H(
5458
+ `Extraneous non-emits event listeners (${te.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`
5459
5459
  );
5460
5460
  }
5461
5461
  }
@@ -6062,7 +6062,7 @@ function P0(e, t) {
6062
6062
  Es(d, V),
6063
6063
  w,
6064
6064
  y
6065
- ), de && fn(d, null, j, "created"), ne($, d, d.scopeId, w, j), ue) {
6065
+ ), de && fn(d, null, j, "created"), te($, d, d.scopeId, w, j), ue) {
6066
6066
  for (const Oe in ue)
6067
6067
  Oe !== "value" && !Or(Oe) && s($, Oe, null, ue[Oe], V, j);
6068
6068
  "value" in ue && s($, "value", null, ue.value, V), (M = ue.onVnodeBeforeMount) && Lt(M, j, d);
@@ -6081,7 +6081,7 @@ function P0(e, t) {
6081
6081
  }
6082
6082
  }, L);
6083
6083
  }
6084
- }, ne = (d, m, C, j, L) => {
6084
+ }, te = (d, m, C, j, L) => {
6085
6085
  if (C && g(d, C), j)
6086
6086
  for (let V = 0; V < j.length; V++)
6087
6087
  g(d, j[V]);
@@ -6089,7 +6089,7 @@ function P0(e, t) {
6089
6089
  let V = L.subTree;
6090
6090
  if (process.env.NODE_ENV !== "production" && V.patchFlag > 0 && V.patchFlag & 2048 && (V = Hi(V.children) || V), m === V || Au(V.type) && (V.ssContent === m || V.ssFallback === m)) {
6091
6091
  const w = L.vnode;
6092
- ne(
6092
+ te(
6093
6093
  d,
6094
6094
  w,
6095
6095
  w.scopeId,
@@ -6818,7 +6818,7 @@ function Du(e) {
6818
6818
  }
6819
6819
  function fe(e, t, n, r, o, s) {
6820
6820
  return Du(
6821
- te(
6821
+ ne(
6822
6822
  e,
6823
6823
  t,
6824
6824
  n,
@@ -6859,7 +6859,7 @@ const L0 = (...e) => Pu(
6859
6859
  ref_key: t,
6860
6860
  ref_for: n
6861
6861
  }) => (typeof e == "number" && (e = "" + e), e != null ? be(e) || /* @__PURE__ */ Se(e) || ce(e) ? { i: He, r: e, k: t, f: !!n } : e : null);
6862
- function te(e, t = null, n = null, r = 0, o = null, s = e === Ie ? 0 : 1, i = !1, a = !1) {
6862
+ function ne(e, t = null, n = null, r = 0, o = null, s = e === Ie ? 0 : 1, i = !1, a = !1) {
6863
6863
  const l = {
6864
6864
  __v_isVNode: !0,
6865
6865
  __v_skip: !0,
@@ -6921,7 +6921,7 @@ function Pu(e, t = null, n = null, r = 0, o = null, s = !1) {
6921
6921
  `
6922
6922
  Component that was made reactive: `,
6923
6923
  e
6924
- )), te(
6924
+ )), ne(
6925
6925
  e,
6926
6926
  t,
6927
6927
  n,
@@ -7601,7 +7601,7 @@ function rm(e) {
7601
7601
  onLeaveCancelled: x,
7602
7602
  onBeforeAppear: W = S,
7603
7603
  onAppear: R = T,
7604
- onAppearCancelled: ne = F
7604
+ onAppearCancelled: te = F
7605
7605
  } = t, A = (D, Y, z, I) => {
7606
7606
  D._enterCancelled = I, hn(D, Y ? u : a), hn(D, Y ? c : i), z && z();
7607
7607
  }, N = (D, Y) => {
@@ -7632,7 +7632,7 @@ function rm(e) {
7632
7632
  A(D, !1, void 0, !0), pn(F, [D]);
7633
7633
  },
7634
7634
  onAppearCancelled(D) {
7635
- A(D, !0, void 0, !0), pn(ne, [D]);
7635
+ A(D, !0, void 0, !0), pn(te, [D]);
7636
7636
  },
7637
7637
  onLeaveCancelled(D) {
7638
7638
  N(D), pn(x, [D]);
@@ -8012,7 +8012,7 @@ var $m = /* @__PURE__ */ Pe({
8012
8012
  xmlns: "http://www.w3.org/2000/svg",
8013
8013
  viewBox: "0 0 1024 1024"
8014
8014
  }, [
8015
- te("path", {
8015
+ ne("path", {
8016
8016
  fill: "currentColor",
8017
8017
  d: "M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496"
8018
8018
  })
@@ -8026,7 +8026,7 @@ var $m = /* @__PURE__ */ Pe({
8026
8026
  xmlns: "http://www.w3.org/2000/svg",
8027
8027
  viewBox: "0 0 1024 1024"
8028
8028
  }, [
8029
- te("path", {
8029
+ ne("path", {
8030
8030
  fill: "currentColor",
8031
8031
  d: "M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"
8032
8032
  })
@@ -8040,7 +8040,7 @@ var $m = /* @__PURE__ */ Pe({
8040
8040
  xmlns: "http://www.w3.org/2000/svg",
8041
8041
  viewBox: "0 0 1024 1024"
8042
8042
  }, [
8043
- te("path", {
8043
+ ne("path", {
8044
8044
  fill: "currentColor",
8045
8045
  d: "M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"
8046
8046
  })
@@ -8055,7 +8055,7 @@ var Lm = /* @__PURE__ */ Pe({
8055
8055
  xmlns: "http://www.w3.org/2000/svg",
8056
8056
  viewBox: "0 0 1024 1024"
8057
8057
  }, [
8058
- te("path", {
8058
+ ne("path", {
8059
8059
  fill: "currentColor",
8060
8060
  d: "M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496"
8061
8061
  })
@@ -8070,7 +8070,7 @@ var km = /* @__PURE__ */ Pe({
8070
8070
  xmlns: "http://www.w3.org/2000/svg",
8071
8071
  viewBox: "0 0 1024 1024"
8072
8072
  }, [
8073
- te("path", {
8073
+ ne("path", {
8074
8074
  fill: "currentColor",
8075
8075
  d: "M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"
8076
8076
  })
@@ -8085,11 +8085,11 @@ var jm = /* @__PURE__ */ Pe({
8085
8085
  xmlns: "http://www.w3.org/2000/svg",
8086
8086
  viewBox: "0 0 1024 1024"
8087
8087
  }, [
8088
- te("path", {
8088
+ ne("path", {
8089
8089
  fill: "currentColor",
8090
8090
  d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
8091
8091
  }),
8092
- te("path", {
8092
+ ne("path", {
8093
8093
  fill: "currentColor",
8094
8094
  d: "M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"
8095
8095
  })
@@ -8103,7 +8103,7 @@ var jm = /* @__PURE__ */ Pe({
8103
8103
  xmlns: "http://www.w3.org/2000/svg",
8104
8104
  viewBox: "0 0 1024 1024"
8105
8105
  }, [
8106
- te("path", {
8106
+ ne("path", {
8107
8107
  fill: "currentColor",
8108
8108
  d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"
8109
8109
  })
@@ -8117,11 +8117,11 @@ var jm = /* @__PURE__ */ Pe({
8117
8117
  xmlns: "http://www.w3.org/2000/svg",
8118
8118
  viewBox: "0 0 1024 1024"
8119
8119
  }, [
8120
- te("path", {
8120
+ ne("path", {
8121
8121
  fill: "currentColor",
8122
8122
  d: "m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"
8123
8123
  }),
8124
- te("path", {
8124
+ ne("path", {
8125
8125
  fill: "currentColor",
8126
8126
  d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
8127
8127
  })
@@ -8136,7 +8136,7 @@ var Wm = /* @__PURE__ */ Pe({
8136
8136
  xmlns: "http://www.w3.org/2000/svg",
8137
8137
  viewBox: "0 0 1024 1024"
8138
8138
  }, [
8139
- te("path", {
8139
+ ne("path", {
8140
8140
  fill: "currentColor",
8141
8141
  d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
8142
8142
  })
@@ -8151,7 +8151,7 @@ var Km = /* @__PURE__ */ Pe({
8151
8151
  xmlns: "http://www.w3.org/2000/svg",
8152
8152
  viewBox: "0 0 1024 1024"
8153
8153
  }, [
8154
- te("path", {
8154
+ ne("path", {
8155
8155
  fill: "currentColor",
8156
8156
  d: "M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"
8157
8157
  })
@@ -8166,7 +8166,7 @@ var qm = /* @__PURE__ */ Pe({
8166
8166
  xmlns: "http://www.w3.org/2000/svg",
8167
8167
  viewBox: "0 0 1024 1024"
8168
8168
  }, [
8169
- te("path", {
8169
+ ne("path", {
8170
8170
  fill: "currentColor",
8171
8171
  d: "M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"
8172
8172
  })
@@ -8180,11 +8180,11 @@ var qm = /* @__PURE__ */ Pe({
8180
8180
  xmlns: "http://www.w3.org/2000/svg",
8181
8181
  viewBox: "0 0 1024 1024"
8182
8182
  }, [
8183
- te("path", {
8183
+ ne("path", {
8184
8184
  fill: "currentColor",
8185
8185
  d: "M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"
8186
8186
  }),
8187
- te("path", {
8187
+ ne("path", {
8188
8188
  fill: "currentColor",
8189
8189
  d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
8190
8190
  })
@@ -8199,7 +8199,7 @@ var Ym = /* @__PURE__ */ Pe({
8199
8199
  xmlns: "http://www.w3.org/2000/svg",
8200
8200
  viewBox: "0 0 1024 1024"
8201
8201
  }, [
8202
- te("path", {
8202
+ ne("path", {
8203
8203
  fill: "currentColor",
8204
8204
  d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"
8205
8205
  })
@@ -8214,7 +8214,7 @@ var Zm = /* @__PURE__ */ Pe({
8214
8214
  xmlns: "http://www.w3.org/2000/svg",
8215
8215
  viewBox: "0 0 1024 1024"
8216
8216
  }, [
8217
- te("path", {
8217
+ ne("path", {
8218
8218
  fill: "currentColor",
8219
8219
  d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"
8220
8220
  })
@@ -8228,7 +8228,7 @@ var Zm = /* @__PURE__ */ Pe({
8228
8228
  xmlns: "http://www.w3.org/2000/svg",
8229
8229
  viewBox: "0 0 1024 1024"
8230
8230
  }, [
8231
- te("path", {
8231
+ ne("path", {
8232
8232
  fill: "currentColor",
8233
8233
  d: "M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344M64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32"
8234
8234
  })
@@ -8242,7 +8242,7 @@ var Zm = /* @__PURE__ */ Pe({
8242
8242
  xmlns: "http://www.w3.org/2000/svg",
8243
8243
  viewBox: "0 0 1024 1024"
8244
8244
  }, [
8245
- te("path", {
8245
+ ne("path", {
8246
8246
  fill: "currentColor",
8247
8247
  d: "M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"
8248
8248
  })
@@ -8257,7 +8257,7 @@ var rg = /* @__PURE__ */ Pe({
8257
8257
  xmlns: "http://www.w3.org/2000/svg",
8258
8258
  viewBox: "0 0 1024 1024"
8259
8259
  }, [
8260
- te("path", {
8260
+ ne("path", {
8261
8261
  fill: "currentColor",
8262
8262
  d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"
8263
8263
  })
@@ -8333,18 +8333,18 @@ const og = { class: "yc-page-window__header" }, sg = { class: "yc-page-window__t
8333
8333
  ), ji(() => {
8334
8334
  r.visible && v();
8335
8335
  }), t({ closeWindow: v }), (T, F) => {
8336
- const J = Ve("el-icon"), x = Ve("el-button"), W = Ve("el-tooltip"), R = Ve("el-scrollbar"), ne = uu("loading");
8336
+ const J = Ve("el-icon"), x = Ve("el-button"), W = Ve("el-tooltip"), R = Ve("el-scrollbar"), te = uu("loading");
8337
8337
  return q(), we(is, {
8338
8338
  name: "yc-page-window-fade",
8339
8339
  mode: "out-in"
8340
8340
  }, {
8341
8341
  default: ie(() => [
8342
- tr(te("div", {
8342
+ tr(ne("div", {
8343
8343
  class: "yc-page-window",
8344
8344
  style: ln({ zIndex: e.zIndex })
8345
8345
  }, [
8346
- te("div", og, [
8347
- te("div", sg, [
8346
+ ne("div", og, [
8347
+ ne("div", sg, [
8348
8348
  Q(J, {
8349
8349
  class: "yc-page-window__back",
8350
8350
  onClick: v
@@ -8354,7 +8354,7 @@ const og = { class: "yc-page-window__header" }, sg = { class: "yc-page-window__t
8354
8354
  ]),
8355
8355
  _: 1
8356
8356
  }),
8357
- te("span", null, Ae(e.title) + Ae(a.value), 1),
8357
+ ne("span", null, Ae(e.title) + Ae(a.value), 1),
8358
8358
  l.value ? (q(), fe("div", ig, [
8359
8359
  Q(W, {
8360
8360
  content: "上一条",
@@ -8424,7 +8424,7 @@ const og = { class: "yc-page-window__header" }, sg = { class: "yc-page-window__t
8424
8424
  _: 1
8425
8425
  }, 8, ["type"])) : Ne("", !0)
8426
8426
  ]),
8427
- te("div", ag, [
8427
+ ne("div", ag, [
8428
8428
  cn(T.$slots, "opera", {}, void 0, !0),
8429
8429
  e.showButtons && u.value ? (q(), fe(Ie, { key: 0 }, [
8430
8430
  Q(x, {
@@ -8478,7 +8478,7 @@ const og = { class: "yc-page-window__header" }, sg = { class: "yc-page-window__t
8478
8478
  _: 3
8479
8479
  })
8480
8480
  ])), [
8481
- [ne, i.value]
8481
+ [te, i.value]
8482
8482
  ])
8483
8483
  ], 4), [
8484
8484
  [Bo, e.visible]
@@ -9080,7 +9080,7 @@ const ef = /* @__PURE__ */ gg("ycAiTask", () => {
9080
9080
  function R() {
9081
9081
  r.value = !1, qu();
9082
9082
  }
9083
- function ne() {
9083
+ function te() {
9084
9084
  mr || (mr = setInterval(() => {
9085
9085
  N();
9086
9086
  }, Vg));
@@ -9140,7 +9140,7 @@ const ef = /* @__PURE__ */ gg("ycAiTask", () => {
9140
9140
  const E = $g();
9141
9141
  E.length && (e.value = E.map(Mg), li = E.length);
9142
9142
  const U = e.value.filter((K) => K.runId && on(K.status));
9143
- U.length && (await Promise.all(U.map((K) => O(K.id))), ne());
9143
+ U.length && (await Promise.all(U.map((K) => O(K.id))), te());
9144
9144
  for (const K of e.value)
9145
9145
  K.status === "pending" && !K.runId && S(K.id, { status: "failed", summary: "页面刷新前未提交成功", finishedAt: Date.now() });
9146
9146
  }
@@ -9173,7 +9173,7 @@ const ef = /* @__PURE__ */ gg("ycAiTask", () => {
9173
9173
  status: "running",
9174
9174
  progress: 10,
9175
9175
  summary: "后端异步处理中…"
9176
- }), T(E, `▶ 已提交 runId=${K}`), ne(), O(E);
9176
+ }), T(E, `▶ 已提交 runId=${K}`), te(), O(E);
9177
9177
  } catch (K) {
9178
9178
  const ee = K instanceof Error ? K.message : "提交失败";
9179
9179
  S(E, {
@@ -10408,7 +10408,7 @@ var Ef = { exports: {} };
10408
10408
  return z === void 0;
10409
10409
  } }, x = "en", W = {};
10410
10410
  W[x] = T;
10411
- var R = "$isDayjsObject", ne = function(z) {
10411
+ var R = "$isDayjsObject", te = function(z) {
10412
10412
  return z instanceof D || !(!z || !z[R]);
10413
10413
  }, A = function z(I, k, B) {
10414
10414
  var P;
@@ -10424,11 +10424,11 @@ var Ef = { exports: {} };
10424
10424
  }
10425
10425
  return !B && P && (x = P), P || !B && x;
10426
10426
  }, N = function(z, I) {
10427
- if (ne(z)) return z.clone();
10427
+ if (te(z)) return z.clone();
10428
10428
  var k = typeof I == "object" ? I : {};
10429
10429
  return k.date = z, k.args = arguments, new D(k);
10430
10430
  }, O = J;
10431
- O.l = A, O.i = ne, O.w = function(z, I) {
10431
+ O.l = A, O.i = te, O.w = function(z, I) {
10432
10432
  return N(z, { locale: I.$L, utc: I.$u, x: I.$x, $offset: I.$offset });
10433
10433
  };
10434
10434
  var D = function() {
@@ -10653,7 +10653,7 @@ var Ef = { exports: {} };
10653
10653
  };
10654
10654
  }), N.extend = function(z, I) {
10655
10655
  return z.$i || (z(I, D, N), z.$i = !0), N;
10656
- }, N.locale = A, N.isDayjs = ne, N.unix = function(z) {
10656
+ }, N.locale = A, N.isDayjs = te, N.unix = function(z) {
10657
10657
  return N(1e3 * z);
10658
10658
  }, N.en = W[x], N.Ls = W, N.p = {}, N;
10659
10659
  });
@@ -10823,7 +10823,7 @@ var s1 = /* @__PURE__ */ Pe({
10823
10823
  const h = oe(() => o.type ? o.type === "error" ? "danger" : o.type : "info"), v = oe(() => {
10824
10824
  const Y = o.type;
10825
10825
  return { [a.bm("icon", Y)]: Y && jl[Y] };
10826
- }), S = oe(() => o.icon || jl[o.type] || ""), T = oe(() => o.placement || "top"), F = oe(() => t1(o.id, T.value)), J = oe(() => Math.max(n1(o.id, o.offset, T.value) + F.value, o.offset)), x = oe(() => g.value + J.value), W = oe(() => T.value.includes("left") ? a.is("left") : T.value.includes("right") ? a.is("right") : a.is("center")), R = oe(() => T.value.startsWith("top") ? "top" : "bottom"), ne = oe(() => ({
10826
+ }), S = oe(() => o.icon || jl[o.type] || ""), T = oe(() => o.placement || "top"), F = oe(() => t1(o.id, T.value)), J = oe(() => Math.max(n1(o.id, o.offset, T.value) + F.value, o.offset)), x = oe(() => g.value + J.value), W = oe(() => T.value.includes("left") ? a.is("left") : T.value.includes("right") ? a.is("right") : a.is("center")), R = oe(() => T.value.startsWith("top") ? "top" : "bottom"), te = oe(() => ({
10827
10827
  [R.value]: `${J.value}px`,
10828
10828
  zIndex: c.value
10829
10829
  }));
@@ -10861,7 +10861,7 @@ var s1 = /* @__PURE__ */ Pe({
10861
10861
  onAfterLeave: z[1] || (z[1] = (I) => Y.$emit("destroy")),
10862
10862
  persisted: ""
10863
10863
  }, {
10864
- default: ie(() => [tr(te("div", {
10864
+ default: ie(() => [tr(ne("div", {
10865
10865
  id: e.id,
10866
10866
  ref_key: "messageRef",
10867
10867
  ref: f,
@@ -10874,7 +10874,7 @@ var s1 = /* @__PURE__ */ Pe({
10874
10874
  W.value,
10875
10875
  e.customClass
10876
10876
  ]),
10877
- style: ln(ne.value),
10877
+ style: ln(te.value),
10878
10878
  role: "alert",
10879
10879
  onMouseenter: N,
10880
10880
  onMouseleave: A
@@ -10899,7 +10899,7 @@ var s1 = /* @__PURE__ */ Pe({
10899
10899
  !e.dangerouslyUseHTMLString || Y.$slots.default ? (q(), fe("p", {
10900
10900
  key: 2,
10901
10901
  class: Ge(Z(a).e("content"))
10902
- }, [cn(Y.$slots, "default", {}, () => [qe(Ae(e.message), 1)])], 2)) : (q(), fe(Ie, { key: 3 }, [Ne(" Caution here, message could've been compromised, never use user's input as message "), te("p", {
10902
+ }, [cn(Y.$slots, "default", {}, () => [qe(Ae(e.message), 1)])], 2)) : (q(), fe(Ie, { key: 3 }, [Ne(" Caution here, message could've been compromised, never use user's input as message "), ne("p", {
10903
10903
  class: Ge(Z(a).e("content")),
10904
10904
  innerHTML: e.message
10905
10905
  }, null, 10, o1)], 2112)),
@@ -11118,17 +11118,17 @@ const m1 = { class: "ai-use-dialog__footer" }, g1 = { class: "ai-use-dialog__foo
11118
11118
  return;
11119
11119
  }
11120
11120
  p.value = !0;
11121
- const R = s.value ? g.value : kt.options.onFinish, ne = o.enqueue({
11121
+ const R = s.value ? g.value : kt.options.onFinish, te = o.enqueue({
11122
11122
  freeText: c.value.freeText.trim(),
11123
11123
  promptId: W,
11124
11124
  autoMatch: x && W == null ? !0 : void 0,
11125
11125
  showPanel: !0,
11126
11126
  onFinish: R
11127
11127
  });
11128
- s.value ? r("submitted", ne) : (N = (A = kt.options).onSubmitted) == null || N.call(A, ne), i.value = !1, p.value = !1, yt.success("已加入任务队列,可在任务面板查看进度");
11128
+ s.value ? r("submitted", te) : (N = (A = kt.options).onSubmitted) == null || N.call(A, te), i.value = !1, p.value = !1, yt.success("已加入任务队列,可在任务面板查看进度");
11129
11129
  }
11130
11130
  return (x, W) => {
11131
- const R = Ve("el-switch"), ne = Ve("el-form-item"), A = Ve("el-option"), N = Ve("el-select"), O = Ve("el-input"), D = Ve("el-form"), Y = Ve("el-button"), z = Ve("el-dialog");
11131
+ const R = Ve("el-switch"), te = Ve("el-form-item"), A = Ve("el-option"), N = Ve("el-select"), O = Ve("el-input"), D = Ve("el-form"), Y = Ve("el-button"), z = Ve("el-dialog");
11132
11132
  return q(), we(z, {
11133
11133
  modelValue: i.value,
11134
11134
  "onUpdate:modelValue": W[4] || (W[4] = (I) => i.value = I),
@@ -11140,7 +11140,7 @@ const m1 = { class: "ai-use-dialog__footer" }, g1 = { class: "ai-use-dialog__foo
11140
11140
  onOpen: v
11141
11141
  }, {
11142
11142
  footer: ie(() => [
11143
- te("div", m1, [
11143
+ ne("div", m1, [
11144
11144
  e.showTaskListButton ? (q(), we(Y, {
11145
11145
  key: 0,
11146
11146
  link: "",
@@ -11152,7 +11152,7 @@ const m1 = { class: "ai-use-dialog__footer" }, g1 = { class: "ai-use-dialog__foo
11152
11152
  ]),
11153
11153
  _: 1
11154
11154
  })) : Ne("", !0),
11155
- te("div", g1, [
11155
+ ne("div", g1, [
11156
11156
  Q(Y, {
11157
11157
  onClick: W[3] || (W[3] = (I) => i.value = !1)
11158
11158
  }, {
@@ -11177,7 +11177,7 @@ const m1 = { class: "ai-use-dialog__footer" }, g1 = { class: "ai-use-dialog__foo
11177
11177
  default: ie(() => [
11178
11178
  Q(D, { "label-position": "top" }, {
11179
11179
  default: ie(() => [
11180
- e.showAutoMatch ? (q(), we(ne, {
11180
+ e.showAutoMatch ? (q(), we(te, {
11181
11181
  key: 0,
11182
11182
  label: e.autoMatchLabel
11183
11183
  }, {
@@ -11192,7 +11192,7 @@ const m1 = { class: "ai-use-dialog__footer" }, g1 = { class: "ai-use-dialog__foo
11192
11192
  ]),
11193
11193
  _: 1
11194
11194
  }, 8, ["label"])) : Ne("", !0),
11195
- e.showPromptSelect ? (q(), we(ne, {
11195
+ e.showPromptSelect ? (q(), we(te, {
11196
11196
  key: 1,
11197
11197
  label: e.promptLabel,
11198
11198
  required: !c.value.autoMatch
@@ -11219,7 +11219,7 @@ const m1 = { class: "ai-use-dialog__footer" }, g1 = { class: "ai-use-dialog__foo
11219
11219
  ]),
11220
11220
  _: 1
11221
11221
  }, 8, ["label", "required"])) : Ne("", !0),
11222
- Q(ne, {
11222
+ Q(te, {
11223
11223
  label: e.freeTextLabel,
11224
11224
  required: ""
11225
11225
  }, {
@@ -11288,10 +11288,10 @@ const m1 = { class: "ai-use-dialog__footer" }, g1 = { class: "ai-use-dialog__foo
11288
11288
  return q(), we(Lh, { to: "body" }, [
11289
11289
  Q(is, { name: "ai-panel-slide" }, {
11290
11290
  default: ie(() => [
11291
- tr(te("div", y1, [
11292
- te("div", w1, [
11293
- te("div", b1, [
11294
- te("div", {
11291
+ tr(ne("div", y1, [
11292
+ ne("div", w1, [
11293
+ ne("div", b1, [
11294
+ ne("div", {
11295
11295
  class: Ge(["ai-task-panel__icon", { spinning: Z(r).activeCount > 0 }])
11296
11296
  }, [
11297
11297
  Q(u, null, {
@@ -11301,12 +11301,12 @@ const m1 = { class: "ai-use-dialog__footer" }, g1 = { class: "ai-use-dialog__foo
11301
11301
  _: 1
11302
11302
  })
11303
11303
  ], 2),
11304
- te("div", E1, [
11305
- te("div", O1, Ae(Z(r).panelSubtitle), 1),
11306
- te("div", N1, Ae(Z(r).panelTitle), 1)
11304
+ ne("div", E1, [
11305
+ ne("div", O1, Ae(Z(r).panelSubtitle), 1),
11306
+ ne("div", N1, Ae(Z(r).panelTitle), 1)
11307
11307
  ])
11308
11308
  ]),
11309
- te("div", x1, [
11309
+ ne("div", x1, [
11310
11310
  Z(r).runningCount > 0 ? (q(), we(f, {
11311
11311
  key: 0,
11312
11312
  link: "",
@@ -11348,13 +11348,13 @@ const m1 = { class: "ai-use-dialog__footer" }, g1 = { class: "ai-use-dialog__foo
11348
11348
  })
11349
11349
  ])
11350
11350
  ]),
11351
- te("div", S1, [
11351
+ ne("div", S1, [
11352
11352
  Z(r).tasks.length ? (q(), fe("div", C1, [
11353
11353
  (q(!0), fe(Ie, null, Cr(Z(r).tasks, (h) => (q(), fe("div", {
11354
11354
  key: h.id,
11355
11355
  class: "ai-task-row"
11356
11356
  }, [
11357
- te("div", T1, [
11357
+ ne("div", T1, [
11358
11358
  h.status === "succeeded" ? (q(), we(u, {
11359
11359
  key: 0,
11360
11360
  class: "ok"
@@ -11387,15 +11387,15 @@ const m1 = { class: "ai-use-dialog__footer" }, g1 = { class: "ai-use-dialog__foo
11387
11387
  _: 1
11388
11388
  }))
11389
11389
  ]),
11390
- te("div", A1, [
11391
- te("div", D1, Ae(h.title), 1),
11392
- te("div", $1, [
11393
- te("span", null, Ae(i(h.status)), 1),
11390
+ ne("div", A1, [
11391
+ ne("div", D1, Ae(h.title), 1),
11392
+ ne("div", $1, [
11393
+ ne("span", null, Ae(i(h.status)), 1),
11394
11394
  h.runId ? (q(), fe("span", P1, " · #" + Ae(h.runId), 1)) : Ne("", !0)
11395
11395
  ]),
11396
11396
  h.summary ? (q(), fe("div", M1, Ae(h.summary), 1)) : Ne("", !0)
11397
11397
  ]),
11398
- te("div", V1, [
11398
+ ne("div", V1, [
11399
11399
  h.status === "running" || h.status === "pending" ? (q(), we(f, {
11400
11400
  key: 0,
11401
11401
  link: "",
@@ -11458,7 +11458,7 @@ const m1 = { class: "ai-use-dialog__footer" }, g1 = { class: "ai-use-dialog__foo
11458
11458
  ]),
11459
11459
  _: 1
11460
11460
  }),
11461
- tr(te("div", {
11461
+ tr(ne("div", {
11462
11462
  class: "ai-task-panel-mini",
11463
11463
  onClick: c[4] || (c[4] = (h) => Z(r).toggleMinimize())
11464
11464
  }, [
@@ -11471,7 +11471,7 @@ const m1 = { class: "ai-use-dialog__footer" }, g1 = { class: "ai-use-dialog__foo
11471
11471
  ]),
11472
11472
  _: 1
11473
11473
  })) : Ne("", !0),
11474
- te("span", null, Ae(Z(r).panelSubtitle), 1),
11474
+ ne("span", null, Ae(Z(r).panelSubtitle), 1),
11475
11475
  Z(r).runningCount > 0 ? (q(), we(b, {
11476
11476
  key: 1,
11477
11477
  value: Z(r).runningCount,
@@ -11652,12 +11652,12 @@ const U1 = { class: "yc-image-selector" }, H1 = { class: "yc-image-selector__too
11652
11652
  if ((w = n.categories) != null && w.length) return n.categories;
11653
11653
  if (!o.value && ((y = Ze.options.categories) != null && y.length))
11654
11654
  return Ze.options.categories;
11655
- }), p = oe(() => u.value ? f.value ?? ne.value : []), g = oe(() => !!n.confirmOnSelect), b = /* @__PURE__ */ he("single"), h = [
11655
+ }), p = oe(() => u.value ? f.value ?? te.value : []), g = oe(() => !!n.confirmOnSelect), b = /* @__PURE__ */ he("single"), h = [
11656
11656
  { label: "单选", value: "single" },
11657
11657
  { label: "多选", value: "multiple" }
11658
11658
  ], v = oe(
11659
11659
  () => c.value ? b.value === "multiple" : a.value
11660
- ), S = /* @__PURE__ */ he(""), T = /* @__PURE__ */ he(""), F = /* @__PURE__ */ he(1), J = /* @__PURE__ */ he(0), x = /* @__PURE__ */ he(!1), W = /* @__PURE__ */ he(!1), R = /* @__PURE__ */ he([]), ne = /* @__PURE__ */ he([]), A = /* @__PURE__ */ he(/* @__PURE__ */ new Map()), N = /* @__PURE__ */ he(/* @__PURE__ */ new Map()), O = /* @__PURE__ */ he(), D = /* @__PURE__ */ he(), Y = oe(() => [...A.value.values()]), z = oe(() => {
11660
+ ), S = /* @__PURE__ */ he(""), T = /* @__PURE__ */ he(""), F = /* @__PURE__ */ he(1), J = /* @__PURE__ */ he(0), x = /* @__PURE__ */ he(!1), W = /* @__PURE__ */ he(!1), R = /* @__PURE__ */ he([]), te = /* @__PURE__ */ he([]), A = /* @__PURE__ */ he(/* @__PURE__ */ new Map()), N = /* @__PURE__ */ he(/* @__PURE__ */ new Map()), O = /* @__PURE__ */ he(), D = /* @__PURE__ */ he(), Y = oe(() => [...A.value.values()]), z = oe(() => {
11661
11661
  var y, $;
11662
11662
  const w = Y.value.length;
11663
11663
  return g.value ? w ? `已选:${((y = Y.value[0]) == null ? void 0 : y.name) || "1 张图片"}` : "单击图片即可完成选择" : w ? v.value ? `已选 ${w} / ${l.value} 张` : `已选:${(($ = Y.value[0]) == null ? void 0 : $.name) || "1 张图片"}` : v.value ? `多选模式:最多 ${l.value} 张` : "单选模式:请选择一张图片";
@@ -11742,14 +11742,14 @@ const U1 = { class: "yc-image-selector" }, H1 = { class: "yc-image-selector__too
11742
11742
  try {
11743
11743
  const y = await n.getImages({
11744
11744
  keyword: S.value.trim() || void 0,
11745
- category: T.value || void 0,
11745
+ category: u.value && T.value || void 0,
11746
11746
  page: F.value,
11747
11747
  pageSize: n.pageSize
11748
11748
  });
11749
11749
  R.value = y.list, J.value = y.total;
11750
11750
  for (const $ of y.list)
11751
11751
  ct($);
11752
- !f.value && ((w = y.categories) != null && w.length) && (ne.value = y.categories);
11752
+ u.value && !f.value && ((w = y.categories) != null && w.length) && (te.value = y.categories);
11753
11753
  } catch (y) {
11754
11754
  yt.error(y instanceof Error ? y.message : "加载图片失败");
11755
11755
  } finally {
@@ -11808,7 +11808,7 @@ const U1 = { class: "yc-image-selector" }, H1 = { class: "yc-image-selector__too
11808
11808
  }
11809
11809
  }
11810
11810
  function C() {
11811
- S.value = "", T.value = "", F.value = 1, N.value = /* @__PURE__ */ new Map(), B(), o.value ? me({}) : me(Ze.options), B(), $e();
11811
+ S.value = "", T.value = "", F.value = 1, te.value = [], N.value = /* @__PURE__ */ new Map(), B(), o.value ? me({}) : me(Ze.options), B(), $e();
11812
11812
  }
11813
11813
  function j() {
11814
11814
  W.value = !1;
@@ -11851,7 +11851,7 @@ const U1 = { class: "yc-image-selector" }, H1 = { class: "yc-image-selector__too
11851
11851
  }, {
11852
11852
  footer: ie(() => [
11853
11853
  g.value ? (q(), fe("div", uy, [
11854
- te("span", fy, Ae(z.value), 1),
11854
+ ne("span", fy, Ae(z.value), 1),
11855
11855
  Q(G, {
11856
11856
  link: "",
11857
11857
  type: "primary",
@@ -11863,8 +11863,8 @@ const U1 = { class: "yc-image-selector" }, H1 = { class: "yc-image-selector__too
11863
11863
  _: 1
11864
11864
  })
11865
11865
  ])) : (q(), fe("div", ay, [
11866
- te("span", ly, Ae(z.value), 1),
11867
- te("div", cy, [
11866
+ ne("span", ly, Ae(z.value), 1),
11867
+ ne("div", cy, [
11868
11868
  Q(G, { onClick: L }, {
11869
11869
  default: ie(() => [
11870
11870
  qe(Ae(e.cancelText), 1)
@@ -11885,8 +11885,8 @@ const U1 = { class: "yc-image-selector" }, H1 = { class: "yc-image-selector__too
11885
11885
  ]))
11886
11886
  ]),
11887
11887
  default: ie(() => [
11888
- te("div", U1, [
11889
- te("div", H1, [
11888
+ ne("div", U1, [
11889
+ ne("div", H1, [
11890
11890
  Q(M, {
11891
11891
  modelValue: S.value,
11892
11892
  "onUpdate:modelValue": y[0] || (y[0] = (le) => S.value = le),
@@ -11942,9 +11942,9 @@ const U1 = { class: "yc-image-selector" }, H1 = { class: "yc-image-selector__too
11942
11942
  _: 1
11943
11943
  }, 8, ["accept", "disabled"])) : Ne("", !0)
11944
11944
  ]),
11945
- te("div", z1, [
11946
- u.value && p.value.length ? (q(), fe("aside", W1, [
11947
- te("div", {
11945
+ ne("div", z1, [
11946
+ u.value ? (q(), fe("aside", W1, [
11947
+ ne("div", {
11948
11948
  class: Ge(["yc-image-selector__category", { "is-active": T.value === "" }]),
11949
11949
  onClick: y[2] || (y[2] = (le) => mt(""))
11950
11950
  }, Ae(e.categoryAllLabel), 3),
@@ -11953,7 +11953,7 @@ const U1 = { class: "yc-image-selector" }, H1 = { class: "yc-image-selector__too
11953
11953
  class: Ge(["yc-image-selector__category", { "is-active": T.value === le.id }]),
11954
11954
  onClick: (Fe) => mt(le.id)
11955
11955
  }, [
11956
- te("span", null, Ae(le.name), 1),
11956
+ ne("span", null, Ae(le.name), 1),
11957
11957
  le.count != null ? (q(), fe("span", q1, Ae(le.count), 1)) : Ne("", !0)
11958
11958
  ], 10, K1))), 128))
11959
11959
  ])) : Ne("", !0),
@@ -11971,15 +11971,15 @@ const U1 = { class: "yc-image-selector" }, H1 = { class: "yc-image-selector__too
11971
11971
  }]),
11972
11972
  onClick: (Fe) => d(le)
11973
11973
  }, [
11974
- te("div", X1, [
11975
- te("img", {
11974
+ ne("div", X1, [
11975
+ ne("img", {
11976
11976
  src: X(le),
11977
11977
  alt: le.name || "image",
11978
11978
  loading: "lazy",
11979
11979
  class: Ge(_e(le)),
11980
11980
  onLoad: (Fe) => xe(Fe, le)
11981
11981
  }, null, 42, Z1),
11982
- te("div", {
11982
+ ne("div", {
11983
11983
  class: Ge(["yc-image-selector__indicator", {
11984
11984
  "is-checked": U(le),
11985
11985
  "is-radio": !v.value,
@@ -11994,7 +11994,7 @@ const U1 = { class: "yc-image-selector" }, H1 = { class: "yc-image-selector__too
11994
11994
  })) : Ne("", !0)
11995
11995
  ], 2)
11996
11996
  ]),
11997
- te("div", {
11997
+ ne("div", {
11998
11998
  class: "yc-image-selector__meta",
11999
11999
  title: le.name
12000
12000
  }, Ae(le.name || "未命名"), 9, ey)
@@ -12005,18 +12005,18 @@ const U1 = { class: "yc-image-selector" }, H1 = { class: "yc-image-selector__too
12005
12005
  ])
12006
12006
  ]),
12007
12007
  v.value && Y.value.length ? (q(), fe("div", ty, [
12008
- te("span", ny, "已选 " + Ae(Y.value.length) + " 张", 1),
12009
- te("div", ry, [
12008
+ ne("span", ny, "已选 " + Ae(Y.value.length) + " 张", 1),
12009
+ ne("div", ry, [
12010
12010
  (q(!0), fe(Ie, null, Cr(Y.value, (le) => (q(), fe("div", {
12011
12011
  key: String(le.id),
12012
12012
  class: "yc-image-selector__selected-chip",
12013
12013
  onClick: ju((Fe) => d(le), ["stop"])
12014
12014
  }, [
12015
- te("img", {
12015
+ ne("img", {
12016
12016
  src: X(le),
12017
12017
  alt: le.name
12018
12018
  }, null, 8, sy),
12019
- y[6] || (y[6] = te("span", { class: "yc-image-selector__selected-chip-remove" }, "×", -1))
12019
+ y[6] || (y[6] = ne("span", { class: "yc-image-selector__selected-chip-remove" }, "×", -1))
12020
12020
  ], 8, oy))), 128))
12021
12021
  ]),
12022
12022
  Q(G, {
@@ -12047,7 +12047,7 @@ const U1 = { class: "yc-image-selector" }, H1 = { class: "yc-image-selector__too
12047
12047
  }, 8, ["modelValue", "title", "width"]);
12048
12048
  };
12049
12049
  }
12050
- }), py = /* @__PURE__ */ as(dy, [["__scopeId", "data-v-4eb3e555"]]);
12050
+ }), py = /* @__PURE__ */ as(dy, [["__scopeId", "data-v-baf50ed2"]]);
12051
12051
  function Sf() {
12052
12052
  const e = /* @__PURE__ */ he(!1), t = /* @__PURE__ */ he({});
12053
12053
  function n(o = {}) {