@blueking/ai-blueking 0.0.0 → 0.0.1

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.
@@ -11,8 +11,9 @@ const Mr = (n) => {
11
11
  关闭: "close",
12
12
  "内容正在执行中,请执行完成后再输入": "The content is being executed, please enter it again after the execution is completed.",
13
13
  发送: "Send",
14
- "您可以键入 “/” 查看更多Prompt": 'You can type "/" to see more Prompts'
15
- }, bt = (n) => Ir !== "en" ? n : zr[n] || n;
14
+ "您可以键入 “/” 查看更多Prompt": 'You can type "/" to see more Prompts',
15
+ 请输入: "Please input"
16
+ }, gt = (n) => Ir !== "en" ? n : zr[n] || n;
16
17
  /*! @license DOMPurify 3.1.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.5/LICENSE */
17
18
  const {
18
19
  entries: Vo,
@@ -173,12 +174,12 @@ function Zo() {
173
174
  HTMLFormElement: f,
174
175
  DOMParser: h,
175
176
  trustedTypes: d
176
- } = n, x = a.prototype, k = oe(x, "cloneNode"), D = oe(x, "nextSibling"), y = oe(x, "childNodes"), g = oe(x, "parentNode");
177
+ } = n, x = a.prototype, k = oe(x, "cloneNode"), D = oe(x, "nextSibling"), y = oe(x, "childNodes"), b = oe(x, "parentNode");
177
178
  if (typeof c == "function") {
178
179
  const T = e.createElement("template");
179
180
  T.content && T.content.ownerDocument && (e = T.content.ownerDocument);
180
181
  }
181
- let b, w = "";
182
+ let g, w = "";
182
183
  const {
183
184
  implementation: S,
184
185
  createNodeIterator: _,
@@ -188,7 +189,7 @@ function Zo() {
188
189
  importNode: $
189
190
  } = o;
190
191
  let L = {};
191
- t.isSupported = typeof Vo == "function" && typeof g == "function" && S && S.createHTMLDocument !== void 0;
192
+ t.isSupported = typeof Vo == "function" && typeof b == "function" && S && S.createHTMLDocument !== void 0;
192
193
  const {
193
194
  MUSTACHE_EXPR: E,
194
195
  ERB_EXPR: P,
@@ -262,13 +263,13 @@ function Zo() {
262
263
  throw Vt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
263
264
  if (typeof p.TRUSTED_TYPES_POLICY.createScriptURL != "function")
264
265
  throw Vt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
265
- b = p.TRUSTED_TYPES_POLICY, w = b.createHTML("");
266
+ g = p.TRUSTED_TYPES_POLICY, w = g.createHTML("");
266
267
  } else
267
- b === void 0 && (b = es(d, r)), b !== null && typeof w == "string" && (w = b.createHTML(""));
268
+ g === void 0 && (g = es(d, r)), g !== null && typeof w == "string" && (w = g.createHTML(""));
268
269
  Q && Q(p), St = p;
269
270
  }
270
271
  }, Fn = R({}, ["mi", "mo", "mn", "ms", "mtext"]), Mn = R({}, ["foreignobject", "annotation-xml"]), vr = R({}, ["title", "style", "font", "a", "script"]), In = R({}, [...Ne, ...Pe, ...Gr]), zn = R({}, [...Oe, ...jr]), kr = function(p) {
271
- let m = g(p);
272
+ let m = b(p);
272
273
  (!m || !m.tagName) && (m = {
273
274
  namespaceURI: Tt,
274
275
  tagName: "template"
@@ -316,7 +317,7 @@ function Zo() {
316
317
  C = j && j[0];
317
318
  }
318
319
  Pt === "application/xhtml+xml" && Tt === ht && (p = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + p + "</body></html>");
319
- const z = b ? b.createHTML(p) : p;
320
+ const z = g ? g.createHTML(p) : p;
320
321
  if (Tt === ht)
321
322
  try {
322
323
  m = new h().parseFromString(z, Pt);
@@ -361,7 +362,7 @@ function Zo() {
361
362
  if (!zt[C] && Hn(C) && (O.tagNameCheck instanceof RegExp && K(O.tagNameCheck, C) || O.tagNameCheck instanceof Function && O.tagNameCheck(C)))
362
363
  return !1;
363
364
  if (qe && !Dt[C]) {
364
- const z = g(p) || p.parentNode, Z = y(p) || p.childNodes;
365
+ const z = b(p) || p.parentNode, Z = y(p) || p.childNodes;
365
366
  if (Z && z) {
366
367
  const j = Z.length;
367
368
  for (let J = j - 1; J >= 0; --J) {
@@ -443,14 +444,14 @@ function Zo() {
443
444
  });
444
445
  const jn = G(p.nodeName);
445
446
  if (Vn(jn, Ot, X)) {
446
- if (Dn && (Ot === "id" || Ot === "name") && (ee(j, p), X = dr + X), b && typeof d == "object" && typeof d.getAttributeType == "function" && !J)
447
+ if (Dn && (Ot === "id" || Ot === "name") && (ee(j, p), X = dr + X), g && typeof d == "object" && typeof d.getAttributeType == "function" && !J)
447
448
  switch (d.getAttributeType(jn, Ot)) {
448
449
  case "TrustedHTML": {
449
- X = b.createHTML(X);
450
+ X = g.createHTML(X);
450
451
  break;
451
452
  }
452
453
  case "TrustedScriptURL": {
453
- X = b.createScriptURL(X);
454
+ X = g.createScriptURL(X);
454
455
  break;
455
456
  }
456
457
  }
@@ -489,7 +490,7 @@ function Zo() {
489
490
  else {
490
491
  if (!wt && !Ct && !_t && // eslint-disable-next-line unicorn/prefer-includes
491
492
  T.indexOf("<") === -1)
492
- return b && Jt ? b.createHTML(T) : T;
493
+ return g && Jt ? g.createHTML(T) : T;
493
494
  if (m = Nn(T), !m)
494
495
  return wt ? null : Jt ? w : "";
495
496
  }
@@ -511,7 +512,7 @@ function Zo() {
511
512
  return _t && V["!doctype"] && m.ownerDocument && m.ownerDocument.doctype && m.ownerDocument.doctype.name && K(jo, m.ownerDocument.doctype.name) && (J = "<!DOCTYPE " + m.ownerDocument.doctype.name + `>
512
513
  ` + J), Ct && ne([E, P, W], (at) => {
513
514
  J = Ut(J, at, " ");
514
- }), b && Jt ? b.createHTML(J) : J;
515
+ }), g && Jt ? g.createHTML(J) : J;
515
516
  }, t.setConfig = function() {
516
517
  let T = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
517
518
  Ie(T), Se = !0;
@@ -2814,8 +2815,8 @@ de.prototype.parse = function(n, t) {
2814
2815
  for (e = 0, o = k.length; e < o; e++) {
2815
2816
  var D = k[e];
2816
2817
  if (D && !D.match(co)) {
2817
- for (var y = "", g = 0, b = D.length; g < b; g++)
2818
- D.charCodeAt(g) > 127 ? y += "x" : y += D[g];
2818
+ for (var y = "", b = 0, g = D.length; b < g; b++)
2819
+ D.charCodeAt(b) > 127 ? y += "x" : y += D[b];
2819
2820
  if (!y.match(co)) {
2820
2821
  var w = k.slice(0, e), S = k.slice(e + 1), _ = D.match(zz);
2821
2822
  _ && (w.push(_[1]), S.unshift(_[2])), S.length && (i = S.join(".") + i), this.hostname = w.join(".");
@@ -2910,17 +2911,17 @@ function Bz() {
2910
2911
  return A || x(q, rt);
2911
2912
  });
2912
2913
  }
2913
- var y = /[&<>"]/, g = /[&<>"]/g, b = {
2914
+ var y = /[&<>"]/, b = /[&<>"]/g, g = {
2914
2915
  "&": "&amp;",
2915
2916
  "<": "&lt;",
2916
2917
  ">": "&gt;",
2917
2918
  '"': "&quot;"
2918
2919
  };
2919
2920
  function w(v) {
2920
- return b[v];
2921
+ return g[v];
2921
2922
  }
2922
2923
  function S(v) {
2923
- return y.test(v) ? v.replace(g, w) : v;
2924
+ return y.test(v) ? v.replace(b, w) : v;
2924
2925
  }
2925
2926
  var _ = /[.?*+^$[\]\\(){}|-]/g;
2926
2927
  function F(v) {
@@ -3264,20 +3265,20 @@ function eN(n) {
3264
3265
  return /^<\/a\s*>/i.test(n);
3265
3266
  }
3266
3267
  var nN = function(t) {
3267
- var e, o, r, s, c, i, a, l, u, f, h, d, x, k, D, y, g = t.tokens, b;
3268
+ var e, o, r, s, c, i, a, l, u, f, h, d, x, k, D, y, b = t.tokens, g;
3268
3269
  if (t.md.options.linkify) {
3269
- for (o = 0, r = g.length; o < r; o++)
3270
- if (!(g[o].type !== "inline" || !t.md.linkify.pretest(g[o].content)))
3271
- for (s = g[o].children, x = 0, e = s.length - 1; e >= 0; e--) {
3270
+ for (o = 0, r = b.length; o < r; o++)
3271
+ if (!(b[o].type !== "inline" || !t.md.linkify.pretest(b[o].content)))
3272
+ for (s = b[o].children, x = 0, e = s.length - 1; e >= 0; e--) {
3272
3273
  if (i = s[e], i.type === "link_close") {
3273
3274
  for (e--; s[e].level !== i.level && s[e].type !== "link_open"; )
3274
3275
  e--;
3275
3276
  continue;
3276
3277
  }
3277
3278
  if (i.type === "html_inline" && (tN(i.content) && x > 0 && x--, eN(i.content) && x++), !(x > 0) && i.type === "text" && t.md.linkify.test(i.content)) {
3278
- for (u = i.content, b = t.md.linkify.match(u), a = [], d = i.level, h = 0, b.length > 0 && b[0].index === 0 && e > 0 && s[e - 1].type === "text_special" && (b = b.slice(1)), l = 0; l < b.length; l++)
3279
- k = b[l].url, D = t.md.normalizeLink(k), t.md.validateLink(D) && (y = b[l].text, b[l].schema ? b[l].schema === "mailto:" && !/^mailto:/i.test(y) ? y = t.md.normalizeLinkText("mailto:" + y).replace(/^mailto:/, "") : y = t.md.normalizeLinkText(y) : y = t.md.normalizeLinkText("http://" + y).replace(/^http:\/\//, ""), f = b[l].index, f > h && (c = new t.Token("text", "", 0), c.content = u.slice(h, f), c.level = d, a.push(c)), c = new t.Token("link_open", "a", 1), c.attrs = [["href", D]], c.level = d++, c.markup = "linkify", c.info = "auto", a.push(c), c = new t.Token("text", "", 0), c.content = y, c.level = d, a.push(c), c = new t.Token("link_close", "a", -1), c.level = --d, c.markup = "linkify", c.info = "auto", a.push(c), h = b[l].lastIndex);
3280
- h < u.length && (c = new t.Token("text", "", 0), c.content = u.slice(h), c.level = d, a.push(c)), g[o].children = s = $z(s, e, a);
3279
+ for (u = i.content, g = t.md.linkify.match(u), a = [], d = i.level, h = 0, g.length > 0 && g[0].index === 0 && e > 0 && s[e - 1].type === "text_special" && (g = g.slice(1)), l = 0; l < g.length; l++)
3280
+ k = g[l].url, D = t.md.normalizeLink(k), t.md.validateLink(D) && (y = g[l].text, g[l].schema ? g[l].schema === "mailto:" && !/^mailto:/i.test(y) ? y = t.md.normalizeLinkText("mailto:" + y).replace(/^mailto:/, "") : y = t.md.normalizeLinkText(y) : y = t.md.normalizeLinkText("http://" + y).replace(/^http:\/\//, ""), f = g[l].index, f > h && (c = new t.Token("text", "", 0), c.content = u.slice(h, f), c.level = d, a.push(c)), c = new t.Token("link_open", "a", 1), c.attrs = [["href", D]], c.level = d++, c.markup = "linkify", c.info = "auto", a.push(c), c = new t.Token("text", "", 0), c.content = y, c.level = d, a.push(c), c = new t.Token("link_close", "a", -1), c.level = --d, c.markup = "linkify", c.info = "auto", a.push(c), h = g[l].lastIndex);
3281
+ h < u.length && (c = new t.Token("text", "", 0), c.content = u.slice(h), c.level = d, a.push(c)), b[o].children = s = $z(s, e, a);
3281
3282
  }
3282
3283
  }
3283
3284
  }
@@ -3309,51 +3310,51 @@ function se(n, t, e) {
3309
3310
  return n.slice(0, t) + e + n.slice(t + 1);
3310
3311
  }
3311
3312
  function pN(n, t) {
3312
- var e, o, r, s, c, i, a, l, u, f, h, d, x, k, D, y, g, b, w, S, _;
3313
+ var e, o, r, s, c, i, a, l, u, f, h, d, x, k, D, y, b, g, w, S, _;
3313
3314
  for (w = [], e = 0; e < n.length; e++) {
3314
- for (o = n[e], a = n[e].level, g = w.length - 1; g >= 0 && !(w[g].level <= a); g--)
3315
+ for (o = n[e], a = n[e].level, b = w.length - 1; b >= 0 && !(w[b].level <= a); b--)
3315
3316
  ;
3316
- if (w.length = g + 1, o.type === "text") {
3317
+ if (w.length = b + 1, o.type === "text") {
3317
3318
  r = o.content, c = 0, i = r.length;
3318
3319
  t:
3319
3320
  for (; c < i && (vo.lastIndex = c, s = vo.exec(r), !!s); ) {
3320
- if (D = y = !0, c = s.index + 1, b = s[0] === "'", u = 32, s.index - 1 >= 0)
3321
+ if (D = y = !0, c = s.index + 1, g = s[0] === "'", u = 32, s.index - 1 >= 0)
3321
3322
  u = r.charCodeAt(s.index - 1);
3322
3323
  else
3323
- for (g = e - 1; g >= 0 && !(n[g].type === "softbreak" || n[g].type === "hardbreak"); g--)
3324
- if (n[g].content) {
3325
- u = n[g].content.charCodeAt(n[g].content.length - 1);
3324
+ for (b = e - 1; b >= 0 && !(n[b].type === "softbreak" || n[b].type === "hardbreak"); b--)
3325
+ if (n[b].content) {
3326
+ u = n[b].content.charCodeAt(n[b].content.length - 1);
3326
3327
  break;
3327
3328
  }
3328
3329
  if (f = 32, c < i)
3329
3330
  f = r.charCodeAt(c);
3330
3331
  else
3331
- for (g = e + 1; g < n.length && !(n[g].type === "softbreak" || n[g].type === "hardbreak"); g++)
3332
- if (n[g].content) {
3333
- f = n[g].content.charCodeAt(0);
3332
+ for (b = e + 1; b < n.length && !(n[b].type === "softbreak" || n[b].type === "hardbreak"); b++)
3333
+ if (n[b].content) {
3334
+ f = n[b].content.charCodeAt(0);
3334
3335
  break;
3335
3336
  }
3336
3337
  if (h = _o(u) || bo(String.fromCharCode(u)), d = _o(f) || bo(String.fromCharCode(f)), x = go(u), k = go(f), k ? D = !1 : d && (x || h || (D = !1)), x ? y = !1 : h && (k || d || (y = !1)), f === 34 && s[0] === '"' && u >= 48 && u <= 57 && (y = D = !1), D && y && (D = h, y = d), !D && !y) {
3337
- b && (o.content = se(o.content, s.index, ko));
3338
+ g && (o.content = se(o.content, s.index, ko));
3338
3339
  continue;
3339
3340
  }
3340
3341
  if (y) {
3341
- for (g = w.length - 1; g >= 0 && (l = w[g], !(w[g].level < a)); g--)
3342
- if (l.single === b && w[g].level === a) {
3343
- l = w[g], b ? (S = t.md.options.quotes[2], _ = t.md.options.quotes[3]) : (S = t.md.options.quotes[0], _ = t.md.options.quotes[1]), o.content = se(o.content, s.index, _), n[l.token].content = se(
3342
+ for (b = w.length - 1; b >= 0 && (l = w[b], !(w[b].level < a)); b--)
3343
+ if (l.single === g && w[b].level === a) {
3344
+ l = w[b], g ? (S = t.md.options.quotes[2], _ = t.md.options.quotes[3]) : (S = t.md.options.quotes[0], _ = t.md.options.quotes[1]), o.content = se(o.content, s.index, _), n[l.token].content = se(
3344
3345
  n[l.token].content,
3345
3346
  l.pos,
3346
3347
  S
3347
- ), c += _.length - 1, l.token === e && (c += S.length - 1), r = o.content, i = r.length, w.length = g;
3348
+ ), c += _.length - 1, l.token === e && (c += S.length - 1), r = o.content, i = r.length, w.length = b;
3348
3349
  continue t;
3349
3350
  }
3350
3351
  }
3351
3352
  D ? w.push({
3352
3353
  token: e,
3353
3354
  pos: s.index,
3354
- single: b,
3355
+ single: g,
3355
3356
  level: a
3356
- }) : y && b && (o.content = se(o.content, s.index, ko));
3357
+ }) : y && g && (o.content = se(o.content, s.index, ko));
3357
3358
  }
3358
3359
  }
3359
3360
  }
@@ -3440,7 +3441,7 @@ function xo(n) {
3440
3441
  return t.push(i + n.substring(c)), t;
3441
3442
  }
3442
3443
  var _N = function(t, e, o, r) {
3443
- var s, c, i, a, l, u, f, h, d, x, k, D, y, g, b, w, S, _;
3444
+ var s, c, i, a, l, u, f, h, d, x, k, D, y, b, g, w, S, _;
3444
3445
  if (e + 2 > o || (u = e + 1, t.sCount[u] < t.blkIndent) || t.sCount[u] - t.blkIndent >= 4 || (i = t.bMarks[u] + t.tShift[u], i >= t.eMarks[u]) || (S = t.src.charCodeAt(i++), S !== 124 && S !== 45 && S !== 58) || i >= t.eMarks[u] || (_ = t.src.charCodeAt(i++), _ !== 124 && _ !== 45 && _ !== 58 && !Ze(_)) || S === 45 && Ze(_))
3445
3446
  return !1;
3446
3447
  for (; i < t.eMarks[u]; ) {
@@ -3462,21 +3463,21 @@ var _N = function(t, e, o, r) {
3462
3463
  return !1;
3463
3464
  if (r)
3464
3465
  return !0;
3465
- for (g = t.parentType, t.parentType = "table", w = t.md.block.ruler.getRules("blockquote"), d = t.push("table_open", "table", 1), d.map = D = [e, 0], d = t.push("thead_open", "thead", 1), d.map = [e, e + 1], d = t.push("tr_open", "tr", 1), d.map = [e, e + 1], a = 0; a < f.length; a++)
3466
+ for (b = t.parentType, t.parentType = "table", w = t.md.block.ruler.getRules("blockquote"), d = t.push("table_open", "table", 1), d.map = D = [e, 0], d = t.push("thead_open", "thead", 1), d.map = [e, e + 1], d = t.push("tr_open", "tr", 1), d.map = [e, e + 1], a = 0; a < f.length; a++)
3466
3467
  d = t.push("th_open", "th", 1), x[a] && (d.attrs = [["style", "text-align:" + x[a]]]), d = t.push("inline", "", 0), d.content = f[a].trim(), d.children = [], d = t.push("th_close", "th", -1);
3467
3468
  for (d = t.push("tr_close", "tr", -1), d = t.push("thead_close", "thead", -1), u = e + 2; u < o && !(t.sCount[u] < t.blkIndent); u++) {
3468
- for (b = !1, a = 0, l = w.length; a < l; a++)
3469
+ for (g = !1, a = 0, l = w.length; a < l; a++)
3469
3470
  if (w[a](t, u, o, !0)) {
3470
- b = !0;
3471
+ g = !0;
3471
3472
  break;
3472
3473
  }
3473
- if (b || (c = Ye(t, u).trim(), !c) || t.sCount[u] - t.blkIndent >= 4)
3474
+ if (g || (c = Ye(t, u).trim(), !c) || t.sCount[u] - t.blkIndent >= 4)
3474
3475
  break;
3475
3476
  for (f = xo(c), f.length && f[0] === "" && f.shift(), f.length && f[f.length - 1] === "" && f.pop(), u === e + 2 && (d = t.push("tbody_open", "tbody", 1), d.map = y = [e + 2, 0]), d = t.push("tr_open", "tr", 1), d.map = [u, u + 1], a = 0; a < h; a++)
3476
3477
  d = t.push("td_open", "td", 1), x[a] && (d.attrs = [["style", "text-align:" + x[a]]]), d = t.push("inline", "", 0), d.content = f[a] ? f[a].trim() : "", d.children = [], d = t.push("td_close", "td", -1);
3477
3478
  d = t.push("tr_close", "tr", -1);
3478
3479
  }
3479
- return y && (d = t.push("tbody_close", "tbody", -1), y[1] = u), d = t.push("table_close", "table", -1), D[1] = u, t.parentType = g, t.line = u, !0;
3480
+ return y && (d = t.push("tbody_close", "tbody", -1), y[1] = u), d = t.push("table_close", "table", -1), D[1] = u, t.parentType = b, t.line = u, !0;
3480
3481
  }, vN = function(t, e, o) {
3481
3482
  var r, s, c;
3482
3483
  if (t.sCount[e] - t.blkIndent < 4)
@@ -3507,18 +3508,18 @@ var _N = function(t, e, o, r) {
3507
3508
  }
3508
3509
  return c = t.sCount[e], t.line = a + (h ? 1 : 0), u = t.push("fence", "code", 0), u.info = i, u.content = t.getLines(e + 1, a, c, !0), u.markup = f, u.map = [e, t.line], !0;
3509
3510
  }, xN = M.isSpace, yN = function(t, e, o, r) {
3510
- var s, c, i, a, l, u, f, h, d, x, k, D, y, g, b, w, S, _, F, N, $ = t.lineMax, L = t.bMarks[e] + t.tShift[e], E = t.eMarks[e];
3511
+ var s, c, i, a, l, u, f, h, d, x, k, D, y, b, g, w, S, _, F, N, $ = t.lineMax, L = t.bMarks[e] + t.tShift[e], E = t.eMarks[e];
3511
3512
  if (t.sCount[e] - t.blkIndent >= 4 || t.src.charCodeAt(L) !== 62)
3512
3513
  return !1;
3513
3514
  if (r)
3514
3515
  return !0;
3515
- for (x = [], k = [], g = [], b = [], _ = t.md.block.ruler.getRules("blockquote"), y = t.parentType, t.parentType = "blockquote", h = e; h < o && (N = t.sCount[h] < t.blkIndent, L = t.bMarks[h] + t.tShift[h], E = t.eMarks[h], !(L >= E)); h++) {
3516
+ for (x = [], k = [], b = [], g = [], _ = t.md.block.ruler.getRules("blockquote"), y = t.parentType, t.parentType = "blockquote", h = e; h < o && (N = t.sCount[h] < t.blkIndent, L = t.bMarks[h] + t.tShift[h], E = t.eMarks[h], !(L >= E)); h++) {
3516
3517
  if (t.src.charCodeAt(L++) === 62 && !N) {
3517
3518
  for (a = t.sCount[h] + 1, t.src.charCodeAt(L) === 32 ? (L++, a++, s = !1, w = !0) : t.src.charCodeAt(L) === 9 ? (w = !0, (t.bsCount[h] + a) % 4 === 3 ? (L++, a++, s = !1) : s = !0) : w = !1, d = a, x.push(t.bMarks[h]), t.bMarks[h] = L; L < E && (c = t.src.charCodeAt(L), xN(c)); ) {
3518
3519
  c === 9 ? d += 4 - (d + t.bsCount[h] + (s ? 1 : 0)) % 4 : d++;
3519
3520
  L++;
3520
3521
  }
3521
- u = L >= E, k.push(t.bsCount[h]), t.bsCount[h] = t.sCount[h] + 1 + (w ? 1 : 0), g.push(t.sCount[h]), t.sCount[h] = d - a, b.push(t.tShift[h]), t.tShift[h] = L - t.bMarks[h];
3522
+ u = L >= E, k.push(t.bsCount[h]), t.bsCount[h] = t.sCount[h] + 1 + (w ? 1 : 0), b.push(t.sCount[h]), t.sCount[h] = d - a, g.push(t.tShift[h]), t.tShift[h] = L - t.bMarks[h];
3522
3523
  continue;
3523
3524
  }
3524
3525
  if (u)
@@ -3529,13 +3530,13 @@ var _N = function(t, e, o, r) {
3529
3530
  break;
3530
3531
  }
3531
3532
  if (S) {
3532
- t.lineMax = h, t.blkIndent !== 0 && (x.push(t.bMarks[h]), k.push(t.bsCount[h]), b.push(t.tShift[h]), g.push(t.sCount[h]), t.sCount[h] -= t.blkIndent);
3533
+ t.lineMax = h, t.blkIndent !== 0 && (x.push(t.bMarks[h]), k.push(t.bsCount[h]), g.push(t.tShift[h]), b.push(t.sCount[h]), t.sCount[h] -= t.blkIndent);
3533
3534
  break;
3534
3535
  }
3535
- x.push(t.bMarks[h]), k.push(t.bsCount[h]), b.push(t.tShift[h]), g.push(t.sCount[h]), t.sCount[h] = -1;
3536
+ x.push(t.bMarks[h]), k.push(t.bsCount[h]), g.push(t.tShift[h]), b.push(t.sCount[h]), t.sCount[h] = -1;
3536
3537
  }
3537
- for (D = t.blkIndent, t.blkIndent = 0, F = t.push("blockquote_open", "blockquote", 1), F.markup = ">", F.map = f = [e, 0], t.md.block.tokenize(t, e, h), F = t.push("blockquote_close", "blockquote", -1), F.markup = ">", t.lineMax = $, t.parentType = y, f[1] = t.line, i = 0; i < b.length; i++)
3538
- t.bMarks[i + e] = x[i], t.tShift[i + e] = b[i], t.sCount[i + e] = g[i], t.bsCount[i + e] = k[i];
3538
+ for (D = t.blkIndent, t.blkIndent = 0, F = t.push("blockquote_open", "blockquote", 1), F.markup = ">", F.map = f = [e, 0], t.md.block.tokenize(t, e, h), F = t.push("blockquote_close", "blockquote", -1), F.markup = ">", t.lineMax = $, t.parentType = y, f[1] = t.line, i = 0; i < g.length; i++)
3539
+ t.bMarks[i + e] = x[i], t.tShift[i + e] = g[i], t.sCount[i + e] = b[i], t.bsCount[i + e] = k[i];
3539
3540
  return t.blkIndent = D, !0;
3540
3541
  }, AN = M.isSpace, CN = function(t, e, o, r) {
3541
3542
  var s, c, i, a, l = t.bMarks[e] + t.tShift[e], u = t.eMarks[e];
@@ -3576,7 +3577,7 @@ function wN(n, t) {
3576
3577
  n.tokens[e].level === r && n.tokens[e].type === "paragraph_open" && (n.tokens[e + 2].hidden = !0, n.tokens[e].hidden = !0, e += 2);
3577
3578
  }
3578
3579
  var EN = function(t, e, o, r) {
3579
- var s, c, i, a, l, u, f, h, d, x, k, D, y, g, b, w, S, _, F, N, $, L, E, P, W, v, q, A = e, rt = !1, Kt = !0;
3580
+ var s, c, i, a, l, u, f, h, d, x, k, D, y, b, g, w, S, _, F, N, $, L, E, P, W, v, q, A = e, rt = !1, Kt = !0;
3580
3581
  if (t.sCount[A] - t.blkIndent >= 4 || t.listIndent >= 0 && t.sCount[A] - t.listIndent >= 4 && t.sCount[A] < t.blkIndent)
3581
3582
  return !1;
3582
3583
  if (r && t.parentType === "paragraph" && t.sCount[A] >= t.blkIndent && (rt = !0), (L = Ao(t, A)) >= 0) {
@@ -3591,16 +3592,16 @@ var EN = function(t, e, o, r) {
3591
3592
  if (r)
3592
3593
  return !0;
3593
3594
  for (D = t.src.charCodeAt(L - 1), k = t.tokens.length, f ? (q = t.push("ordered_list_open", "ol", 1), y !== 1 && (q.attrs = [["start", y]])) : q = t.push("bullet_list_open", "ul", 1), q.map = x = [A, 0], q.markup = String.fromCharCode(D), E = !1, v = t.md.block.ruler.getRules("list"), S = t.parentType, t.parentType = "list"; A < o; ) {
3594
- for ($ = L, g = t.eMarks[A], u = b = t.sCount[A] + L - (t.bMarks[A] + t.tShift[A]); $ < g; ) {
3595
+ for ($ = L, b = t.eMarks[A], u = g = t.sCount[A] + L - (t.bMarks[A] + t.tShift[A]); $ < b; ) {
3595
3596
  if (s = t.src.charCodeAt($), s === 9)
3596
- b += 4 - (b + t.bsCount[A]) % 4;
3597
+ g += 4 - (g + t.bsCount[A]) % 4;
3597
3598
  else if (s === 32)
3598
- b++;
3599
+ g++;
3599
3600
  else
3600
3601
  break;
3601
3602
  $++;
3602
3603
  }
3603
- if (c = $, c >= g ? l = 1 : l = b - u, l > 4 && (l = 1), a = u + l, q = t.push("list_item_open", "li", 1), q.markup = String.fromCharCode(D), q.map = h = [A, 0], f && (q.info = t.src.slice(P, L - 1)), N = t.tight, F = t.tShift[A], _ = t.sCount[A], w = t.listIndent, t.listIndent = t.blkIndent, t.blkIndent = a, t.tight = !0, t.tShift[A] = c - t.bMarks[A], t.sCount[A] = b, c >= g && t.isEmpty(A + 1) ? t.line = Math.min(t.line + 2, o) : t.md.block.tokenize(t, A, o, !0), (!t.tight || E) && (Kt = !1), E = t.line - A > 1 && t.isEmpty(t.line - 1), t.blkIndent = t.listIndent, t.listIndent = w, t.tShift[A] = F, t.sCount[A] = _, t.tight = N, q = t.push("list_item_close", "li", -1), q.markup = String.fromCharCode(D), A = t.line, h[1] = A, A >= o || t.sCount[A] < t.blkIndent || t.sCount[A] - t.blkIndent >= 4)
3604
+ if (c = $, c >= b ? l = 1 : l = g - u, l > 4 && (l = 1), a = u + l, q = t.push("list_item_open", "li", 1), q.markup = String.fromCharCode(D), q.map = h = [A, 0], f && (q.info = t.src.slice(P, L - 1)), N = t.tight, F = t.tShift[A], _ = t.sCount[A], w = t.listIndent, t.listIndent = t.blkIndent, t.blkIndent = a, t.tight = !0, t.tShift[A] = c - t.bMarks[A], t.sCount[A] = g, c >= b && t.isEmpty(A + 1) ? t.line = Math.min(t.line + 2, o) : t.md.block.tokenize(t, A, o, !0), (!t.tight || E) && (Kt = !1), E = t.line - A > 1 && t.isEmpty(t.line - 1), t.blkIndent = t.listIndent, t.listIndent = w, t.tShift[A] = F, t.sCount[A] = _, t.tight = N, q = t.push("list_item_close", "li", -1), q.markup = String.fromCharCode(D), A = t.line, h[1] = A, A >= o || t.sCount[A] < t.blkIndent || t.sCount[A] - t.blkIndent >= 4)
3604
3605
  break;
3605
3606
  for (W = !1, i = 0, d = v.length; i < d; i++)
3606
3607
  if (v[i](t, A, o, !0)) {
@@ -3620,7 +3621,7 @@ var EN = function(t, e, o, r) {
3620
3621
  }
3621
3622
  return f ? q = t.push("ordered_list_close", "ol", -1) : q = t.push("bullet_list_close", "ul", -1), q.markup = String.fromCharCode(D), x[1] = A, t.line = A, t.parentType = S, Kt && wN(t, k), !0;
3622
3623
  }, DN = M.normalizeReference, ce = M.isSpace, TN = function(t, e, o, r) {
3623
- var s, c, i, a, l, u, f, h, d, x, k, D, y, g, b, w, S = 0, _ = t.bMarks[e] + t.tShift[e], F = t.eMarks[e], N = e + 1;
3624
+ var s, c, i, a, l, u, f, h, d, x, k, D, y, b, g, w, S = 0, _ = t.bMarks[e] + t.tShift[e], F = t.eMarks[e], N = e + 1;
3624
3625
  if (t.sCount[e] - t.blkIndent >= 4 || t.src.charCodeAt(_) !== 91)
3625
3626
  return !1;
3626
3627
  for (; ++_ < F; )
@@ -3629,14 +3630,14 @@ var EN = function(t, e, o, r) {
3629
3630
  return !1;
3630
3631
  break;
3631
3632
  }
3632
- for (a = t.lineMax, b = t.md.block.ruler.getRules("reference"), x = t.parentType, t.parentType = "reference"; N < a && !t.isEmpty(N); N++)
3633
+ for (a = t.lineMax, g = t.md.block.ruler.getRules("reference"), x = t.parentType, t.parentType = "reference"; N < a && !t.isEmpty(N); N++)
3633
3634
  if (!(t.sCount[N] - t.blkIndent > 3) && !(t.sCount[N] < 0)) {
3634
- for (g = !1, u = 0, f = b.length; u < f; u++)
3635
- if (b[u](t, N, a, !0)) {
3636
- g = !0;
3635
+ for (b = !1, u = 0, f = g.length; u < f; u++)
3636
+ if (g[u](t, N, a, !0)) {
3637
+ b = !0;
3637
3638
  break;
3638
3639
  }
3639
- if (g)
3640
+ if (b)
3640
3641
  break;
3641
3642
  }
3642
3643
  for (y = t.getLines(e, N, t.blkIndent, !1).trim(), F = y.length, _ = 1; _ < F; _++) {
@@ -4100,28 +4101,28 @@ var cP = M.normalizeReference, We = M.isSpace, iP = function(t, e) {
4100
4101
  }
4101
4102
  return e || (t.pos = i, t.posMax = c, f = t.push("link_open", "a", 1), f.attrs = o = [["href", h]], d && o.push(["title", d]), t.linkLevel++, t.md.inline.tokenize(t), t.linkLevel--, f = t.push("link_close", "a", -1)), t.pos = a, t.posMax = k, !0;
4102
4103
  }, aP = M.normalizeReference, Xe = M.isSpace, lP = function(t, e) {
4103
- var o, r, s, c, i, a, l, u, f, h, d, x, k, D = "", y = t.pos, g = t.posMax;
4104
+ var o, r, s, c, i, a, l, u, f, h, d, x, k, D = "", y = t.pos, b = t.posMax;
4104
4105
  if (t.src.charCodeAt(t.pos) !== 33 || t.src.charCodeAt(t.pos + 1) !== 91 || (a = t.pos + 2, i = t.md.helpers.parseLinkLabel(t, t.pos + 1, !1), i < 0))
4105
4106
  return !1;
4106
- if (l = i + 1, l < g && t.src.charCodeAt(l) === 40) {
4107
- for (l++; l < g && (r = t.src.charCodeAt(l), !(!Xe(r) && r !== 10)); l++)
4107
+ if (l = i + 1, l < b && t.src.charCodeAt(l) === 40) {
4108
+ for (l++; l < b && (r = t.src.charCodeAt(l), !(!Xe(r) && r !== 10)); l++)
4108
4109
  ;
4109
- if (l >= g)
4110
+ if (l >= b)
4110
4111
  return !1;
4111
- for (k = l, f = t.md.helpers.parseLinkDestination(t.src, l, t.posMax), f.ok && (D = t.md.normalizeLink(f.str), t.md.validateLink(D) ? l = f.pos : D = ""), k = l; l < g && (r = t.src.charCodeAt(l), !(!Xe(r) && r !== 10)); l++)
4112
+ for (k = l, f = t.md.helpers.parseLinkDestination(t.src, l, t.posMax), f.ok && (D = t.md.normalizeLink(f.str), t.md.validateLink(D) ? l = f.pos : D = ""), k = l; l < b && (r = t.src.charCodeAt(l), !(!Xe(r) && r !== 10)); l++)
4112
4113
  ;
4113
- if (f = t.md.helpers.parseLinkTitle(t.src, l, t.posMax), l < g && k !== l && f.ok)
4114
- for (h = f.str, l = f.pos; l < g && (r = t.src.charCodeAt(l), !(!Xe(r) && r !== 10)); l++)
4114
+ if (f = t.md.helpers.parseLinkTitle(t.src, l, t.posMax), l < b && k !== l && f.ok)
4115
+ for (h = f.str, l = f.pos; l < b && (r = t.src.charCodeAt(l), !(!Xe(r) && r !== 10)); l++)
4115
4116
  ;
4116
4117
  else
4117
4118
  h = "";
4118
- if (l >= g || t.src.charCodeAt(l) !== 41)
4119
+ if (l >= b || t.src.charCodeAt(l) !== 41)
4119
4120
  return t.pos = y, !1;
4120
4121
  l++;
4121
4122
  } else {
4122
4123
  if (typeof t.env.references > "u")
4123
4124
  return !1;
4124
- if (l < g && t.src.charCodeAt(l) === 91 ? (k = l + 1, l = t.md.helpers.parseLinkLabel(t, l), l >= 0 ? c = t.src.slice(k, l++) : l = i + 1) : l = i + 1, c || (c = t.src.slice(a, i)), u = t.env.references[aP(c)], !u)
4125
+ if (l < b && t.src.charCodeAt(l) === 91 ? (k = l + 1, l = t.md.helpers.parseLinkLabel(t, l), l >= 0 ? c = t.src.slice(k, l++) : l = i + 1) : l = i + 1, c || (c = t.src.slice(a, i)), u = t.env.references[aP(c)], !u)
4125
4126
  return t.pos = y, !1;
4126
4127
  D = u.href, h = u.title;
4127
4128
  }
@@ -4130,7 +4131,7 @@ var cP = M.normalizeReference, We = M.isSpace, iP = function(t, e) {
4130
4131
  t.md,
4131
4132
  t.env,
4132
4133
  x = []
4133
- ), d = t.push("image", "img", 0), d.attrs = o = [["src", D], ["alt", ""]], d.children = x, d.content = s, h && o.push(["title", h])), t.pos = l, t.posMax = g, !0;
4134
+ ), d = t.push("image", "img", 0), d.attrs = o = [["src", D], ["alt", ""]], d.children = x, d.content = s, h && o.push(["title", h])), t.pos = l, t.posMax = b, !0;
4134
4135
  }, uP = /^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/, pP = /^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/, fP = function(t, e) {
4135
4136
  var o, r, s, c, i, a, l = t.pos;
4136
4137
  if (t.src.charCodeAt(l) !== 60)
@@ -4489,7 +4490,7 @@ const Rt = 2147483647, lt = 36, mn = 1, Zt = 26, BP = 38, UP = 700, rr = 72, sr
4489
4490
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
4490
4491
  "invalid-input": "Invalid input"
4491
4492
  }, $e = lt - mn, ut = Math.floor, tn = String.fromCharCode;
4492
- function gt(n) {
4493
+ function bt(n) {
4493
4494
  throw new RangeError(jP[n]);
4494
4495
  }
4495
4496
  function ZP(n, t) {
@@ -4534,21 +4535,21 @@ const ar = (n) => String.fromCodePoint(...n), YP = function(n) {
4534
4535
  let o = 0, r = sr, s = rr, c = n.lastIndexOf(cr);
4535
4536
  c < 0 && (c = 0);
4536
4537
  for (let i = 0; i < c; ++i)
4537
- n.charCodeAt(i) >= 128 && gt("not-basic"), t.push(n.charCodeAt(i));
4538
+ n.charCodeAt(i) >= 128 && bt("not-basic"), t.push(n.charCodeAt(i));
4538
4539
  for (let i = c > 0 ? c + 1 : 0; i < e; ) {
4539
4540
  const a = o;
4540
4541
  for (let u = 1, f = lt; ; f += lt) {
4541
- i >= e && gt("invalid-input");
4542
+ i >= e && bt("invalid-input");
4542
4543
  const h = YP(n.charCodeAt(i++));
4543
- h >= lt && gt("invalid-input"), h > ut((Rt - o) / u) && gt("overflow"), o += h * u;
4544
+ h >= lt && bt("invalid-input"), h > ut((Rt - o) / u) && bt("overflow"), o += h * u;
4544
4545
  const d = f <= s ? mn : f >= s + Zt ? Zt : f - s;
4545
4546
  if (h < d)
4546
4547
  break;
4547
4548
  const x = lt - d;
4548
- u > ut(Rt / x) && gt("overflow"), u *= x;
4549
+ u > ut(Rt / x) && bt("overflow"), u *= x;
4549
4550
  }
4550
4551
  const l = t.length + 1;
4551
- s = lr(o - a, l, a == 0), ut(o / l) > Rt - r && gt("overflow"), r += ut(o / l), o %= l, t.splice(o++, 0, r);
4552
+ s = lr(o - a, l, a == 0), ut(o / l) > Rt - r && bt("overflow"), r += ut(o / l), o %= l, t.splice(o++, 0, r);
4552
4553
  }
4553
4554
  return String.fromCodePoint(...t);
4554
4555
  }, _n = function(n) {
@@ -4565,9 +4566,9 @@ const ar = (n) => String.fromCodePoint(...n), YP = function(n) {
4565
4566
  for (const u of n)
4566
4567
  u >= o && u < a && (a = u);
4567
4568
  const l = i + 1;
4568
- a - o > ut((Rt - r) / l) && gt("overflow"), r += (a - o) * l, o = a;
4569
+ a - o > ut((Rt - r) / l) && bt("overflow"), r += (a - o) * l, o = a;
4569
4570
  for (const u of n)
4570
- if (u < o && ++r > Rt && gt("overflow"), u === o) {
4571
+ if (u < o && ++r > Rt && bt("overflow"), u === o) {
4571
4572
  let f = r;
4572
4573
  for (let h = lt; ; h += lt) {
4573
4574
  const d = h <= s ? mn : h >= s + Zt ? Zt : h - s;
@@ -4994,26 +4995,27 @@ const d9 = /* @__PURE__ */ os(h9), m9 = "data:image/png;base64,iVBORw0KGgoAAAANS
4994
4995
  emits: ["update:value", "enter", "choose-prompt"],
4995
4996
  setup(n, { emit: t }) {
4996
4997
  const e = n, o = t, r = Cr, s = an, c = qt(""), i = qt(40), a = qt(), l = qt(!1), u = le(() => {
4997
- var b;
4998
- return ((b = e.prompts) == null ? void 0 : b.filter((w) => w.content.includes(c.value))) || [];
4999
- }), f = (b) => {
5000
- o("update:value", b);
4998
+ var g;
4999
+ return ((g = e.prompts) == null ? void 0 : g.filter((w) => w.content.includes(c.value))) || [];
5000
+ }), f = (g) => {
5001
+ o("update:value", g);
5001
5002
  }, h = () => {
5002
- e.value === "/" ? y() : g();
5003
+ var g;
5004
+ e.value === "/" && ((g = e.prompts) != null && g.length) ? y() : b();
5003
5005
  }, d = () => {
5004
5006
  let w = 24 + e.value.split(/\r?\n/).length * 16;
5005
5007
  w >= 200 && (w = 200), i.value = w;
5006
- }, x = (b) => {
5007
- o("update:value", b.content), o("choose-prompt", b), g(), D();
5008
- }, k = (b, w) => {
5008
+ }, x = (g) => {
5009
+ o("update:value", g.content), o("choose-prompt", g), b(), D();
5010
+ }, k = (g, w) => {
5009
5011
  w.key === "Enter" && !w.shiftKey && (w.preventDefault(), o("enter"));
5010
5012
  }, D = () => {
5011
5013
  var w;
5012
- const b = (w = a.value) == null ? void 0 : w.$el.querySelector("textarea");
5013
- b == null || b.focus();
5014
+ const g = (w = a.value) == null ? void 0 : w.$el.querySelector("textarea");
5015
+ g == null || g.focus();
5014
5016
  }, y = () => {
5015
5017
  l.value = !0;
5016
- }, g = () => {
5018
+ }, b = () => {
5017
5019
  l.value = !1;
5018
5020
  };
5019
5021
  return Oo(
@@ -5021,7 +5023,7 @@ const d9 = /* @__PURE__ */ os(h9), m9 = "data:image/png;base64,iVBORw0KGgoAAAANS
5021
5023
  () => {
5022
5024
  d(), h();
5023
5025
  }
5024
- ), Dr(D), (b, w) => (U(), pe(B(yr), {
5026
+ ), Dr(D), (g, w) => (U(), pe(B(yr), {
5025
5027
  width: "calc(100% - 118px)",
5026
5028
  "ext-cls": "empty-padding",
5027
5029
  arrow: !1,
@@ -5081,40 +5083,43 @@ const d9 = /* @__PURE__ */ os(h9), m9 = "data:image/png;base64,iVBORw0KGgoAAAANS
5081
5083
  }))
5082
5084
  ])
5083
5085
  ])), [
5084
- [B(r), g]
5086
+ [B(r), b]
5085
5087
  ])
5086
5088
  ])
5087
5089
  ];
5088
5090
  }),
5089
- default: fe(() => [
5090
- I(
5091
- "section",
5092
- {
5093
- style: he({
5094
- width: "calc(100% - 84px)",
5095
- "margin-right": "7px",
5096
- "--text-height": i.value + "px"
5097
- })
5098
- },
5099
- [
5100
- jt(B(Yn), {
5101
- ref_key: "inputRef",
5102
- ref: a,
5103
- class: "send-prompt",
5104
- clearable: !0,
5105
- "model-value": b.value,
5106
- "native-attributes": { autofocus: "autofocus" },
5107
- placeholder: B(bt)("您可以键入 “/” 查看更多Prompt"),
5108
- row: "1",
5109
- type: "textarea",
5110
- onInput: f,
5111
- onKeydown: k
5112
- }, null, 8, ["model-value", "placeholder"])
5113
- ],
5114
- 4
5115
- /* STYLE */
5116
- )
5117
- ]),
5091
+ default: fe(() => {
5092
+ var S;
5093
+ return [
5094
+ I(
5095
+ "section",
5096
+ {
5097
+ style: he({
5098
+ width: "calc(100% - 84px)",
5099
+ "margin-right": "7px",
5100
+ "--text-height": i.value + "px"
5101
+ })
5102
+ },
5103
+ [
5104
+ jt(B(Yn), {
5105
+ ref_key: "inputRef",
5106
+ ref: a,
5107
+ class: "send-prompt",
5108
+ clearable: !0,
5109
+ "model-value": g.value,
5110
+ "native-attributes": { autofocus: "autofocus" },
5111
+ placeholder: (S = g.prompts) != null && S.length ? B(gt)("您可以键入 “/” 查看更多Prompt") : B(gt)("请输入"),
5112
+ row: "1",
5113
+ type: "textarea",
5114
+ onInput: f,
5115
+ onKeydown: k
5116
+ }, null, 8, ["model-value", "placeholder"])
5117
+ ],
5118
+ 4
5119
+ /* STYLE */
5120
+ )
5121
+ ];
5122
+ }),
5118
5123
  _: 1
5119
5124
  /* STABLE */
5120
5125
  }, 8, ["is-show"]));
@@ -5124,7 +5129,7 @@ const d9 = /* @__PURE__ */ os(h9), m9 = "data:image/png;base64,iVBORw0KGgoAAAANS
5124
5129
  for (const [o, r] of t)
5125
5130
  e[o] = r;
5126
5131
  return e;
5127
- }, F9 = /* @__PURE__ */ vn(R9, [["__scopeId", "data-v-46f6b8b6"]]), M9 = (n) => (Sr("data-v-661dffcc"), n = n(), Lr(), n), I9 = { class: "ai-messages" }, z9 = { class: "ai-operation" }, N9 = /* @__PURE__ */ M9(() => /* @__PURE__ */ I(
5132
+ }, F9 = /* @__PURE__ */ vn(R9, [["__scopeId", "data-v-accee441"]]), M9 = (n) => (Sr("data-v-fa72e9f6"), n = n(), Lr(), n), I9 = { class: "ai-messages" }, z9 = { class: "ai-operation" }, N9 = /* @__PURE__ */ M9(() => /* @__PURE__ */ I(
5128
5133
  "i",
5129
5134
  { class: "ai-blueking-icon ai-blueking-fasong" },
5130
5135
  null,
@@ -5147,7 +5152,7 @@ const d9 = /* @__PURE__ */ os(h9), m9 = "data:image/png;base64,iVBORw0KGgoAAAANS
5147
5152
  l.scrollTop = l.scrollHeight;
5148
5153
  });
5149
5154
  }, i = () => {
5150
- e.loading || o("send", s.value);
5155
+ e.loading || (o("send", s.value), s.value = "");
5151
5156
  }, a = (l) => {
5152
5157
  o("choose-prompt", l);
5153
5158
  };
@@ -5194,7 +5199,7 @@ const d9 = /* @__PURE__ */ os(h9), m9 = "data:image/png;base64,iVBORw0KGgoAAAANS
5194
5199
  default: fe(() => [
5195
5200
  N9,
5196
5201
  Uo(
5197
- " " + ge(B(bt)("发送")),
5202
+ " " + ge(B(gt)("发送")),
5198
5203
  1
5199
5204
  /* TEXT */
5200
5205
  )
@@ -5204,7 +5209,7 @@ const d9 = /* @__PURE__ */ os(h9), m9 = "data:image/png;base64,iVBORw0KGgoAAAANS
5204
5209
  }, 8, ["disabled"])
5205
5210
  ])), [
5206
5211
  [B(r), {
5207
- content: B(bt)("内容正在执行中,请执行完成后再输入"),
5212
+ content: B(gt)("内容正在执行中,请执行完成后再输入"),
5208
5213
  disabled: !l.loading,
5209
5214
  extCls: "ai-tooltips ai-blueking-popover ai-blueking-pop2-content"
5210
5215
  }]
@@ -5214,7 +5219,7 @@ const d9 = /* @__PURE__ */ os(h9), m9 = "data:image/png;base64,iVBORw0KGgoAAAANS
5214
5219
  /* STYLE */
5215
5220
  ));
5216
5221
  }
5217
- }), O9 = /* @__PURE__ */ vn(P9, [["__scopeId", "data-v-661dffcc"]]), B9 = /* @__PURE__ */ Yt({
5222
+ }), O9 = /* @__PURE__ */ vn(P9, [["__scopeId", "data-v-fa72e9f6"]]), B9 = /* @__PURE__ */ Yt({
5218
5223
  __name: "render-modal",
5219
5224
  props: {
5220
5225
  headBackground: { default: "linear-gradient(267deg, #2dd1f4 0%, #1482ff 95%)" },
@@ -5228,7 +5233,8 @@ const d9 = /* @__PURE__ */ os(h9), m9 = "data:image/png;base64,iVBORw0KGgoAAAANS
5228
5233
  height: 500,
5229
5234
  width: 294
5230
5235
  }) },
5231
- logo: { default: "ai-blueking-icon ai-blueking-ai" }
5236
+ logo: { default: "ai-blueking-icon ai-blueking-ai" },
5237
+ startPosition: {}
5232
5238
  },
5233
5239
  emits: ["clear", "close"],
5234
5240
  setup(n, { emit: t }) {
@@ -5240,12 +5246,14 @@ const d9 = /* @__PURE__ */ os(h9), m9 = "data:image/png;base64,iVBORw0KGgoAAAANS
5240
5246
  type: "",
5241
5247
  clientX: 0,
5242
5248
  clientY: 0
5243
- }, i = qt({
5244
- top: s.height - e.sizeLimit.height - 100,
5245
- bottom: 0,
5246
- left: 102,
5247
- right: s.width - e.sizeLimit.width - 270
5248
- }), a = le(() => i.value.top <= e.positionLimit.top && i.value.bottom <= e.positionLimit.bottom), l = (E) => {
5249
+ }, i = qt(
5250
+ e.startPosition || {
5251
+ top: s.height - e.sizeLimit.height - 100,
5252
+ bottom: 0,
5253
+ left: 102,
5254
+ right: s.width - e.sizeLimit.width - 270
5255
+ }
5256
+ ), a = le(() => i.value.top <= e.positionLimit.top && i.value.bottom <= e.positionLimit.bottom), l = (E) => {
5249
5257
  c.isMove = !0, c.type = "move", c.clientX = E.clientX, c.clientY = E.clientY;
5250
5258
  }, u = (E) => {
5251
5259
  c.isMove = !0, c.type = "rightDrag", c.clientX = E.clientX;
@@ -5263,9 +5271,9 @@ const d9 = /* @__PURE__ */ os(h9), m9 = "data:image/png;base64,iVBORw0KGgoAAAANS
5263
5271
  c.isMove = !0, c.type = "bottomLeftDrag", c.clientY = E.clientY, c.clientX = E.clientX;
5264
5272
  }, y = (E) => {
5265
5273
  c.isMove = !0, c.type = "bottomRightDrag", c.clientY = E.clientY, c.clientX = E.clientX;
5266
- }, g = () => {
5274
+ }, b = () => {
5267
5275
  c.isMove = !1;
5268
- }, b = (E, P) => {
5276
+ }, g = (E, P) => {
5269
5277
  ["move", "leftDrag"].includes(c.type) && (i.value.left += E), ["move", "rightDrag"].includes(c.type) && (i.value.right -= E), ["move", "topDrag"].includes(c.type) && (i.value.top += P), ["move", "bottomDrag"].includes(c.type) && (i.value.bottom -= P), ["topLeftDrag"].includes(c.type) && (i.value.left += E, i.value.top += P), ["topRightDrag"].includes(c.type) && (i.value.right -= E, i.value.top += P), ["bottomLeftDrag"].includes(c.type) && (i.value.left += E, i.value.bottom -= P), ["bottomRightDrag"].includes(c.type) && (i.value.right -= E, i.value.bottom -= P);
5270
5278
  }, w = (E, P) => {
5271
5279
  const { top: W, bottom: v, left: q, right: A } = i.value;
@@ -5275,9 +5283,9 @@ const d9 = /* @__PURE__ */ os(h9), m9 = "data:image/png;base64,iVBORw0KGgoAAAANS
5275
5283
  return;
5276
5284
  E.preventDefault();
5277
5285
  const P = E.clientX - c.clientX, W = E.clientY - c.clientY;
5278
- b(P, W), w(P, W), c.clientX = E.clientX, c.clientY = E.clientY;
5286
+ g(P, W), w(P, W), c.clientX = E.clientX, c.clientY = E.clientY;
5279
5287
  }, _ = () => {
5280
- s.height = window.innerHeight, s.width = window.innerWidth, i.value = {
5288
+ s.height = window.innerHeight, s.width = window.innerWidth, i.value = e.startPosition || {
5281
5289
  top: s.height - e.sizeLimit.height - 100,
5282
5290
  bottom: 0,
5283
5291
  left: 102,
@@ -5293,9 +5301,9 @@ const d9 = /* @__PURE__ */ os(h9), m9 = "data:image/png;base64,iVBORw0KGgoAAAANS
5293
5301
  o("close");
5294
5302
  };
5295
5303
  return qr(() => {
5296
- window.addEventListener("mousemove", S, !0), window.addEventListener("mouseup", g), window.addEventListener("resize", _);
5304
+ window.addEventListener("mousemove", S, !0), window.addEventListener("mouseup", b), window.addEventListener("resize", _);
5297
5305
  }), Rr(() => {
5298
- window.removeEventListener("mousemove", S, !0), window.removeEventListener("mouseup", g), window.removeEventListener("resize", _);
5306
+ window.removeEventListener("mousemove", S, !0), window.removeEventListener("mouseup", b), window.removeEventListener("resize", _);
5299
5307
  }), (E, P) => (U(), Y(
5300
5308
  "section",
5301
5309
  {
@@ -5329,7 +5337,7 @@ const d9 = /* @__PURE__ */ os(h9), m9 = "data:image/png;base64,iVBORw0KGgoAAAANS
5329
5337
  /* CLASS */
5330
5338
  ),
5331
5339
  Uo(
5332
- " " + ge(B(bt)("小鲸")),
5340
+ " " + ge(B(gt)("小鲸")),
5333
5341
  1
5334
5342
  /* TEXT */
5335
5343
  )
@@ -5347,7 +5355,7 @@ const d9 = /* @__PURE__ */ os(h9), m9 = "data:image/png;base64,iVBORw0KGgoAAAANS
5347
5355
  /* NEED_PATCH */
5348
5356
  )), [
5349
5357
  [B(r), {
5350
- content: B(bt)("向下收缩"),
5358
+ content: B(gt)("向下收缩"),
5351
5359
  distance: 20,
5352
5360
  extCls: "ai-tooltips ai-blueking-popover ai-blueking-pop2-content"
5353
5361
  }]
@@ -5363,7 +5371,7 @@ const d9 = /* @__PURE__ */ os(h9), m9 = "data:image/png;base64,iVBORw0KGgoAAAANS
5363
5371
  /* NEED_PATCH */
5364
5372
  )), [
5365
5373
  [B(r), {
5366
- content: B(bt)("向上扩展"),
5374
+ content: B(gt)("向上扩展"),
5367
5375
  distance: 20,
5368
5376
  extCls: "ai-tooltips ai-blueking-popover ai-blueking-pop2-content"
5369
5377
  }]
@@ -5379,7 +5387,7 @@ const d9 = /* @__PURE__ */ os(h9), m9 = "data:image/png;base64,iVBORw0KGgoAAAANS
5379
5387
  /* NEED_PATCH */
5380
5388
  ), [
5381
5389
  [B(r), {
5382
- content: B(bt)("清空聊天记录"),
5390
+ content: B(gt)("清空聊天记录"),
5383
5391
  distance: 20,
5384
5392
  extCls: "ai-tooltips ai-blueking-popover ai-blueking-pop2-content"
5385
5393
  }]
@@ -5395,7 +5403,7 @@ const d9 = /* @__PURE__ */ os(h9), m9 = "data:image/png;base64,iVBORw0KGgoAAAANS
5395
5403
  /* NEED_PATCH */
5396
5404
  ), [
5397
5405
  [B(r), {
5398
- content: B(bt)("关闭"),
5406
+ content: B(gt)("关闭"),
5399
5407
  distance: 20,
5400
5408
  extCls: "ai-tooltips ai-blueking-popover ai-blueking-pop2-content"
5401
5409
  }]
@@ -5491,7 +5499,7 @@ const d9 = /* @__PURE__ */ os(h9), m9 = "data:image/png;base64,iVBORw0KGgoAAAANS
5491
5499
  /* STYLE */
5492
5500
  ));
5493
5501
  }
5494
- }), U9 = /* @__PURE__ */ vn(B9, [["__scopeId", "data-v-b96029d0"]]), G9 = /* @__PURE__ */ Yt({
5502
+ }), U9 = /* @__PURE__ */ vn(B9, [["__scopeId", "data-v-d8380d5c"]]), G9 = /* @__PURE__ */ Yt({
5495
5503
  __name: "ai-blueking",
5496
5504
  props: {
5497
5505
  messages: {},
@@ -5501,6 +5509,7 @@ const d9 = /* @__PURE__ */ os(h9), m9 = "data:image/png;base64,iVBORw0KGgoAAAANS
5501
5509
  background: {},
5502
5510
  positionLimit: {},
5503
5511
  sizeLimit: {},
5512
+ startPosition: {},
5504
5513
  userPhoto: {},
5505
5514
  logo: {}
5506
5515
  },
@@ -5520,6 +5529,7 @@ const d9 = /* @__PURE__ */ os(h9), m9 = "data:image/png;base64,iVBORw0KGgoAAAANS
5520
5529
  logo: i.logo,
5521
5530
  "position-limit": i.positionLimit,
5522
5531
  "size-limit": i.sizeLimit,
5532
+ "start-position": i.startPosition,
5523
5533
  onClear: o,
5524
5534
  onClose: r
5525
5535
  }, {
@@ -5536,7 +5546,7 @@ const d9 = /* @__PURE__ */ os(h9), m9 = "data:image/png;base64,iVBORw0KGgoAAAANS
5536
5546
  ]),
5537
5547
  _: 1
5538
5548
  /* STABLE */
5539
- }, 8, ["head-background", "logo", "position-limit", "size-limit"]));
5549
+ }, 8, ["head-background", "logo", "position-limit", "size-limit", "start-position"]));
5540
5550
  }
5541
5551
  });
5542
5552
  (function() {