@blueking/ai-blueking 2.0.0-dev.30 → 2.0.0-dev.31

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.
@@ -123,7 +123,8 @@ const isImageFile = (e) => e ? e.startsWith("image/") : !1, getFilePreviewUrl =
123
123
  重新加载: "Reload",
124
124
  宽: "W",
125
125
  高: "H",
126
- 上传图片: "Upload Image"
126
+ 上传图片: "Upload Image",
127
+ "上传图片, 最多支持上传 3 个, 最大支持 2.4MB": "Upload Image, up to 3 images supported, max 2.4MB each"
127
128
  }, t$1 = (e) => isEn ? lang$1[e] : e, CHAT_Z_INDEX = 9999;
128
129
  CHAT_Z_INDEX + 1;
129
130
  const EDITOR_MENU_Z_INDEX = 10001, SHORTCUT_MENU_Z_INDEX = EDITOR_MENU_Z_INDEX + 1, SELECTION_Z_INDEX = SHORTCUT_MENU_Z_INDEX + 1, CONST_MESSAGE_TOOLS = [
@@ -832,25 +833,25 @@ var _hoisted_1$45 = ["src"], shortcut_btn_default = /* @__PURE__ */ defineCompon
832
833
  i.value &&= (O.value?.removeAllRanges(), !1);
833
834
  }, B = (e) => {
834
835
  z(), a("selectShortcut", e, E.value);
835
- }, H = null, i_ = (e) => {
836
+ }, H = null, r_ = (e) => {
836
837
  H && clearTimeout(H), H = window.setTimeout(() => {
837
838
  L();
838
839
  }, e);
839
840
  }, G = () => {
840
- i_(200);
841
+ r_(200);
841
842
  }, K = () => {
842
- i_(300);
843
+ r_(300);
843
844
  }, q = (e) => {
844
845
  i.value && l.value?.contains(e.target) || z();
845
- }, a_ = (e) => {
846
+ }, i_ = (e) => {
846
847
  !O.value || !i.value || e.target instanceof HTMLElement && e.target.contains(O.value?.anchorNode) && z();
847
848
  }, Z = () => {
848
849
  d.value?.show();
849
850
  };
850
851
  return onMounted(() => {
851
- document.addEventListener("selectionchange", K), document.addEventListener("mouseup", G), document.addEventListener("mousedown", q), document.addEventListener("scroll", a_, !0), window.addEventListener("resize", z), window.addEventListener("blur", z);
852
+ document.addEventListener("selectionchange", K), document.addEventListener("mouseup", G), document.addEventListener("mousedown", q), document.addEventListener("scroll", i_, !0), window.addEventListener("resize", z), window.addEventListener("blur", z);
852
853
  }), onUnmounted(() => {
853
- document.removeEventListener("selectionchange", K), document.removeEventListener("mouseup", G), document.removeEventListener("mousedown", q), document.removeEventListener("scroll", a_, !0), window.removeEventListener("resize", z), window.removeEventListener("blur", z);
854
+ document.removeEventListener("selectionchange", K), document.removeEventListener("mouseup", G), document.removeEventListener("mousedown", q), document.removeEventListener("scroll", i_, !0), window.removeEventListener("resize", z), window.removeEventListener("blur", z);
854
855
  }), (n, r) => (openBlock(), createBlock(Teleport, { to: "body" }, [createVNode(Transition, { name: "ai-fade" }, {
855
856
  default: withCtx(() => [i.value ? (openBlock(), createElementBlock("div", {
856
857
  key: 0,
@@ -1218,17 +1219,17 @@ var _hoisted_1$43 = { class: "shortcut-menu" }, GAP = 4, shortcut_btns_default =
1218
1219
  }
1219
1220
  function H() {
1220
1221
  var e = i();
1221
- if (B(e)) return i_(e);
1222
+ if (B(e)) return r_(e);
1222
1223
  v = setTimeout(H, z(e));
1223
1224
  }
1224
- function i_(e) {
1225
+ function r_(e) {
1225
1226
  return v = void 0, j && d ? I(e) : (d = m = void 0, _);
1226
1227
  }
1227
1228
  function G() {
1228
1229
  v !== void 0 && clearTimeout(v), E = 0, d = T = m = v = void 0;
1229
1230
  }
1230
1231
  function K() {
1231
- return v === void 0 ? _ : i_(i());
1232
+ return v === void 0 ? _ : r_(i());
1232
1233
  }
1233
1234
  function q() {
1234
1235
  var e = i(), r = B(e);
@@ -4926,7 +4927,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
4926
4927
  return a;
4927
4928
  }).map((e) => `(${e})`).join(n);
4928
4929
  }
4929
- var i_ = /\b\B/, G = "[a-zA-Z]\\w*", K = "[a-zA-Z_]\\w*", q = "\\b\\d+(\\.\\d+)?", J = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", a_ = "\\b(0b[01]+)", Z = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", o_ = (e = {}) => {
4930
+ var r_ = /\b\B/, G = "[a-zA-Z]\\w*", K = "[a-zA-Z_]\\w*", q = "\\b\\d+(\\.\\d+)?", J = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", i_ = "\\b(0b[01]+)", Z = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", a_ = (e = {}) => {
4930
4931
  let n = /^#![ ]*\//;
4931
4932
  return e.binary && (e.begin = k(n, /.*\b/, e.binary, /\b.*/)), o({
4932
4933
  scope: "meta",
@@ -4940,7 +4941,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
4940
4941
  }, Q = {
4941
4942
  begin: "\\\\[\\s\\S]",
4942
4943
  relevance: 0
4943
- }, s_ = {
4944
+ }, o_ = {
4944
4945
  scope: "string",
4945
4946
  begin: "'",
4946
4947
  end: "'",
@@ -4952,7 +4953,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
4952
4953
  end: "\"",
4953
4954
  illegal: "\\n",
4954
4955
  contains: [Q]
4955
- }, c_ = { begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/ }, l_ = function(e, n, r = {}) {
4956
+ }, s_ = { begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/ }, c_ = function(e, n, r = {}) {
4956
4957
  let i = o({
4957
4958
  scope: "comment",
4958
4959
  begin: e,
@@ -4968,19 +4969,19 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
4968
4969
  });
4969
4970
  let a = I("I", "a", "is", "so", "us", "to", "at", "if", "in", "it", "on", /[A-Za-z]+['](d|ve|re|ll|t|s|n)/, /[A-Za-z]+[-][a-z]+/, /[A-Za-z][a-z]{2,}/);
4970
4971
  return i.contains.push({ begin: k(/[ ]+/, "(", a, /[.]?[:]?([.][ ]|[ ])/, "){3}") }), i;
4971
- }, u_ = l_("//", "$"), d_ = l_("/\\*", "\\*/"), f_ = l_("#", "$"), p_ = {
4972
+ }, l_ = c_("//", "$"), u_ = c_("/\\*", "\\*/"), d_ = c_("#", "$"), f_ = {
4972
4973
  scope: "number",
4973
4974
  begin: q,
4974
4975
  relevance: 0
4975
- }, m_ = {
4976
+ }, p_ = {
4976
4977
  scope: "number",
4977
4978
  begin: J,
4978
4979
  relevance: 0
4979
- }, h_ = {
4980
+ }, m_ = {
4980
4981
  scope: "number",
4981
- begin: a_,
4982
+ begin: i_,
4982
4983
  relevance: 0
4983
- }, g_ = {
4984
+ }, h_ = {
4984
4985
  scope: "regexp",
4985
4986
  begin: /\/(?=[^/\n]*\/)/,
4986
4987
  end: /\/[gimuy]*/,
@@ -4990,27 +4991,27 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
4990
4991
  relevance: 0,
4991
4992
  contains: [Q]
4992
4993
  }]
4993
- }, __ = {
4994
+ }, g_ = {
4994
4995
  scope: "title",
4995
4996
  begin: G,
4996
4997
  relevance: 0
4997
- }, v_ = {
4998
+ }, __ = {
4998
4999
  scope: "title",
4999
5000
  begin: K,
5000
5001
  relevance: 0
5001
- }, y_ = {
5002
+ }, v_ = {
5002
5003
  begin: "\\.\\s*" + K,
5003
5004
  relevance: 0
5004
- }, b_ = /* @__PURE__ */ Object.freeze({
5005
+ }, y_ = /* @__PURE__ */ Object.freeze({
5005
5006
  __proto__: null,
5006
- APOS_STRING_MODE: s_,
5007
+ APOS_STRING_MODE: o_,
5007
5008
  BACKSLASH_ESCAPE: Q,
5008
- BINARY_NUMBER_MODE: h_,
5009
- BINARY_NUMBER_RE: a_,
5010
- COMMENT: l_,
5011
- C_BLOCK_COMMENT_MODE: d_,
5012
- C_LINE_COMMENT_MODE: u_,
5013
- C_NUMBER_MODE: m_,
5009
+ BINARY_NUMBER_MODE: m_,
5010
+ BINARY_NUMBER_RE: i_,
5011
+ COMMENT: c_,
5012
+ C_BLOCK_COMMENT_MODE: u_,
5013
+ C_LINE_COMMENT_MODE: l_,
5014
+ C_NUMBER_MODE: p_,
5014
5015
  C_NUMBER_RE: J,
5015
5016
  END_SAME_AS_BEGIN: function(e) {
5016
5017
  return Object.assign(e, {
@@ -5022,43 +5023,43 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5022
5023
  }
5023
5024
  });
5024
5025
  },
5025
- HASH_COMMENT_MODE: f_,
5026
+ HASH_COMMENT_MODE: d_,
5026
5027
  IDENT_RE: G,
5027
- MATCH_NOTHING_RE: i_,
5028
- METHOD_GUARD: y_,
5029
- NUMBER_MODE: p_,
5028
+ MATCH_NOTHING_RE: r_,
5029
+ METHOD_GUARD: v_,
5030
+ NUMBER_MODE: f_,
5030
5031
  NUMBER_RE: q,
5031
- PHRASAL_WORDS_MODE: c_,
5032
+ PHRASAL_WORDS_MODE: s_,
5032
5033
  QUOTE_STRING_MODE: $,
5033
- REGEXP_MODE: g_,
5034
+ REGEXP_MODE: h_,
5034
5035
  RE_STARTERS_RE: Z,
5035
- SHEBANG: o_,
5036
- TITLE_MODE: __,
5036
+ SHEBANG: a_,
5037
+ TITLE_MODE: g_,
5037
5038
  UNDERSCORE_IDENT_RE: K,
5038
- UNDERSCORE_TITLE_MODE: v_
5039
+ UNDERSCORE_TITLE_MODE: __
5039
5040
  });
5040
- function x_(e, n) {
5041
+ function b_(e, n) {
5041
5042
  e.input[e.index - 1] === "." && n.ignoreMatch();
5042
5043
  }
5043
- function S_(e, n) {
5044
+ function x_(e, n) {
5044
5045
  e.className !== void 0 && (e.scope = e.className, delete e.className);
5045
5046
  }
5046
- function C_(e, n) {
5047
- n && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = x_, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
5047
+ function S_(e, n) {
5048
+ n && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = b_, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
5048
5049
  }
5049
- function w_(e, n) {
5050
+ function C_(e, n) {
5050
5051
  Array.isArray(e.illegal) && (e.illegal = I(...e.illegal));
5051
5052
  }
5052
- function T_(e, n) {
5053
+ function w_(e, n) {
5053
5054
  if (e.match) {
5054
5055
  if (e.begin || e.end) throw Error("begin & end are not supported with match");
5055
5056
  e.begin = e.match, delete e.match;
5056
5057
  }
5057
5058
  }
5058
- function E_(e, n) {
5059
+ function T_(e, n) {
5059
5060
  e.relevance === void 0 && (e.relevance = 1);
5060
5061
  }
5061
- var D_ = (e, n) => {
5062
+ var E_ = (e, n) => {
5062
5063
  if (!e.beforeMatch) return;
5063
5064
  if (e.starts) throw Error("beforeMatch cannot be used with starts");
5064
5065
  let r = Object.assign({}, e);
@@ -5068,7 +5069,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5068
5069
  relevance: 0,
5069
5070
  contains: [Object.assign(r, { endsParent: !0 })]
5070
5071
  }, e.relevance = 0, delete r.beforeMatch;
5071
- }, O_ = [
5072
+ }, D_ = [
5072
5073
  "of",
5073
5074
  "and",
5074
5075
  "for",
@@ -5080,58 +5081,58 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5080
5081
  "parent",
5081
5082
  "list",
5082
5083
  "value"
5083
- ], k_ = "keyword";
5084
- function A_(e, n, r = k_) {
5084
+ ], O_ = "keyword";
5085
+ function k_(e, n, r = O_) {
5085
5086
  let i = Object.create(null);
5086
5087
  return typeof e == "string" ? a(r, e.split(" ")) : Array.isArray(e) ? a(r, e) : Object.keys(e).forEach(function(r) {
5087
- Object.assign(i, A_(e[r], n, r));
5088
+ Object.assign(i, k_(e[r], n, r));
5088
5089
  }), i;
5089
5090
  function a(e, r) {
5090
5091
  n && (r = r.map((e) => e.toLowerCase())), r.forEach(function(n) {
5091
5092
  let r = n.split("|");
5092
- i[r[0]] = [e, j_(r[0], r[1])];
5093
+ i[r[0]] = [e, A_(r[0], r[1])];
5093
5094
  });
5094
5095
  }
5095
5096
  }
5096
- function j_(e, n) {
5097
- return n ? Number(n) : M_(e) ? 0 : 1;
5097
+ function A_(e, n) {
5098
+ return n ? Number(n) : j_(e) ? 0 : 1;
5098
5099
  }
5099
- function M_(e) {
5100
- return O_.includes(e.toLowerCase());
5100
+ function j_(e) {
5101
+ return D_.includes(e.toLowerCase());
5101
5102
  }
5102
- var N_ = {}, P_ = (e) => {
5103
+ var M_ = {}, N_ = (e) => {
5103
5104
  console.error(e);
5104
- }, F_ = (e, ...n) => {
5105
+ }, P_ = (e, ...n) => {
5105
5106
  console.log(`WARN: ${e}`, ...n);
5106
- }, I_ = (e, n) => {
5107
- N_[`${e}/${n}`] || (console.log(`Deprecated as of ${e}. ${n}`), N_[`${e}/${n}`] = !0);
5108
- }, L_ = /* @__PURE__ */ Error();
5109
- function R_(e, n, { key: r }) {
5107
+ }, F_ = (e, n) => {
5108
+ M_[`${e}/${n}`] || (console.log(`Deprecated as of ${e}. ${n}`), M_[`${e}/${n}`] = !0);
5109
+ }, I_ = /* @__PURE__ */ Error();
5110
+ function L_(e, n, { key: r }) {
5110
5111
  let i = 0, a = e[r], o = {}, s = {};
5111
5112
  for (let e = 1; e <= n.length; e++) s[e + i] = a[e], o[e + i] = !0, i += L(n[e - 1]);
5112
5113
  e[r] = s, e[r]._emit = o, e[r]._multi = !0;
5113
5114
  }
5114
- function z_(e) {
5115
+ function R_(e) {
5115
5116
  if (Array.isArray(e.begin)) {
5116
- if (e.skip || e.excludeBegin || e.returnBegin) throw P_("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), L_;
5117
- if (typeof e.beginScope != "object" || e.beginScope === null) throw P_("beginScope must be object"), L_;
5118
- R_(e, e.begin, { key: "beginScope" }), e.begin = H(e.begin, { joinWith: "" });
5117
+ if (e.skip || e.excludeBegin || e.returnBegin) throw N_("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), I_;
5118
+ if (typeof e.beginScope != "object" || e.beginScope === null) throw N_("beginScope must be object"), I_;
5119
+ L_(e, e.begin, { key: "beginScope" }), e.begin = H(e.begin, { joinWith: "" });
5119
5120
  }
5120
5121
  }
5121
- function B_(e) {
5122
+ function z_(e) {
5122
5123
  if (Array.isArray(e.end)) {
5123
- if (e.skip || e.excludeEnd || e.returnEnd) throw P_("skip, excludeEnd, returnEnd not compatible with endScope: {}"), L_;
5124
- if (typeof e.endScope != "object" || e.endScope === null) throw P_("endScope must be object"), L_;
5125
- R_(e, e.end, { key: "endScope" }), e.end = H(e.end, { joinWith: "" });
5124
+ if (e.skip || e.excludeEnd || e.returnEnd) throw N_("skip, excludeEnd, returnEnd not compatible with endScope: {}"), I_;
5125
+ if (typeof e.endScope != "object" || e.endScope === null) throw N_("endScope must be object"), I_;
5126
+ L_(e, e.end, { key: "endScope" }), e.end = H(e.end, { joinWith: "" });
5126
5127
  }
5127
5128
  }
5128
- function V_(e) {
5129
+ function B_(e) {
5129
5130
  e.scope && typeof e.scope == "object" && e.scope !== null && (e.beginScope = e.scope, delete e.scope);
5130
5131
  }
5131
- function H_(e) {
5132
- V_(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), z_(e), B_(e);
5132
+ function V_(e) {
5133
+ B_(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), R_(e), z_(e);
5133
5134
  }
5134
- function U_(e) {
5135
+ function H_(e) {
5135
5136
  function n(n, r) {
5136
5137
  return new RegExp(v(n), "m" + (e.case_insensitive ? "i" : "") + (e.unicodeRegex ? "u" : "") + (r ? "g" : ""));
5137
5138
  }
@@ -5193,18 +5194,18 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5193
5194
  let o = r;
5194
5195
  if (r.isCompiled) return o;
5195
5196
  [
5196
- S_,
5197
- T_,
5198
- H_,
5199
- D_
5200
- ].forEach((e) => e(r, i)), e.compilerExtensions.forEach((e) => e(r, i)), r.__beforeBegin = null, [
5201
- C_,
5197
+ x_,
5202
5198
  w_,
5199
+ V_,
5203
5200
  E_
5201
+ ].forEach((e) => e(r, i)), e.compilerExtensions.forEach((e) => e(r, i)), r.__beforeBegin = null, [
5202
+ S_,
5203
+ C_,
5204
+ T_
5204
5205
  ].forEach((e) => e(r, i)), r.isCompiled = !0;
5205
5206
  let l = null;
5206
- return typeof r.keywords == "object" && r.keywords.$pattern && (r.keywords = Object.assign({}, r.keywords), l = r.keywords.$pattern, delete r.keywords.$pattern), l ||= /\w+/, r.keywords &&= A_(r.keywords, e.case_insensitive), o.keywordPatternRe = n(l, !0), i && (r.begin ||= /\B|\b/, o.beginRe = n(o.begin), !r.end && !r.endsWithParent && (r.end = /\B|\b/), r.end && (o.endRe = n(o.end)), o.terminatorEnd = v(o.end) || "", r.endsWithParent && i.terminatorEnd && (o.terminatorEnd += (r.end ? "|" : "") + i.terminatorEnd)), r.illegal && (o.illegalRe = n(r.illegal)), r.contains ||= [], r.contains = [].concat(...r.contains.map(function(e) {
5207
- return G_(e === "self" ? r : e);
5207
+ return typeof r.keywords == "object" && r.keywords.$pattern && (r.keywords = Object.assign({}, r.keywords), l = r.keywords.$pattern, delete r.keywords.$pattern), l ||= /\w+/, r.keywords &&= k_(r.keywords, e.case_insensitive), o.keywordPatternRe = n(l, !0), i && (r.begin ||= /\B|\b/, o.beginRe = n(o.begin), !r.end && !r.endsWithParent && (r.end = /\B|\b/), r.end && (o.endRe = n(o.end)), o.terminatorEnd = v(o.end) || "", r.endsWithParent && i.terminatorEnd && (o.terminatorEnd += (r.end ? "|" : "") + i.terminatorEnd)), r.illegal && (o.illegalRe = n(r.illegal)), r.contains ||= [], r.contains = [].concat(...r.contains.map(function(e) {
5208
+ return W_(e === "self" ? r : e);
5208
5209
  })), r.contains.forEach(function(e) {
5209
5210
  s(e, o);
5210
5211
  }), r.starts && s(r.starts, i), o.matcher = a(o), o;
@@ -5212,19 +5213,19 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5212
5213
  if (e.compilerExtensions ||= [], e.contains && e.contains.includes("self")) throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
5213
5214
  return e.classNameAliases = o(e.classNameAliases || {}), s(e);
5214
5215
  }
5215
- function W_(e) {
5216
- return e ? e.endsWithParent || W_(e.starts) : !1;
5216
+ function U_(e) {
5217
+ return e ? e.endsWithParent || U_(e.starts) : !1;
5217
5218
  }
5218
- function G_(e) {
5219
+ function W_(e) {
5219
5220
  return e.variants && !e.cachedVariants && (e.cachedVariants = e.variants.map(function(n) {
5220
5221
  return o(e, { variants: null }, n);
5221
- })), e.cachedVariants ? e.cachedVariants : W_(e) ? o(e, { starts: e.starts ? o(e.starts) : null }) : Object.isFrozen(e) ? o(e) : e;
5222
+ })), e.cachedVariants ? e.cachedVariants : U_(e) ? o(e, { starts: e.starts ? o(e.starts) : null }) : Object.isFrozen(e) ? o(e) : e;
5222
5223
  }
5223
- var K_ = "11.11.1", q_ = class extends Error {
5224
+ var G_ = "11.11.1", K_ = class extends Error {
5224
5225
  constructor(e, n) {
5225
5226
  super(e), this.name = "HTMLInjectionError", this.html = n;
5226
5227
  }
5227
- }, J_ = a, Y_ = o, X_ = Symbol("nomatch"), Z_ = 7, Q_ = function(e) {
5228
+ }, q_ = a, J_ = o, Y_ = Symbol("nomatch"), X_ = 7, Z_ = function(e) {
5228
5229
  let n = Object.create(null), a = Object.create(null), o = [], s = !0, l = "Could not find the language '{}', did you forget to load/include a language module?", u = {
5229
5230
  disableAutodetect: !0,
5230
5231
  name: "Plain text",
@@ -5247,21 +5248,21 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5247
5248
  n += e.parentNode ? e.parentNode.className : "";
5248
5249
  let r = d.languageDetectRe.exec(n);
5249
5250
  if (r) {
5250
- let n = s_(r[1]);
5251
- return n || (F_(l.replace("{}", r[1])), F_("Falling back to no-highlight mode for this block.", e)), n ? r[1] : "no-highlight";
5251
+ let n = o_(r[1]);
5252
+ return n || (P_(l.replace("{}", r[1])), P_("Falling back to no-highlight mode for this block.", e)), n ? r[1] : "no-highlight";
5252
5253
  }
5253
- return n.split(/\s+/).find((e) => m(e) || s_(e));
5254
+ return n.split(/\s+/).find((e) => m(e) || o_(e));
5254
5255
  }
5255
5256
  function v(e, n, r) {
5256
5257
  let i = "", a = "";
5257
- typeof n == "object" ? (i = e, r = n.ignoreIllegals, a = n.language) : (I_("10.7.0", "highlight(lang, code, ...args) has been deprecated."), I_("10.7.0", "Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"), a = e, i = n), r === void 0 && (r = !0);
5258
+ typeof n == "object" ? (i = e, r = n.ignoreIllegals, a = n.language) : (F_("10.7.0", "highlight(lang, code, ...args) has been deprecated."), F_("10.7.0", "Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"), a = e, i = n), r === void 0 && (r = !0);
5258
5259
  let o = {
5259
5260
  code: i,
5260
5261
  language: a
5261
5262
  };
5262
- f_("before:highlight", o);
5263
+ d_("before:highlight", o);
5263
5264
  let s = o.result ? o.result : j(o.language, o.code, r);
5264
- return s.code = o.code, f_("after:highlight", s), s;
5265
+ return s.code = o.code, d_("after:highlight", s), s;
5265
5266
  }
5266
5267
  function j(e, r, a, o) {
5267
5268
  let u = Object.create(null);
@@ -5281,7 +5282,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5281
5282
  let i = q.case_insensitive ? n[0].toLowerCase() : n[0], a = m(Z, i);
5282
5283
  if (a) {
5283
5284
  let [e, o] = a;
5284
- if (Q.addText(r), r = "", u[i] = (u[i] || 0) + 1, u[i] <= Z_ && (c_ += o), e.startsWith("_")) r += n[0];
5285
+ if (Q.addText(r), r = "", u[i] = (u[i] || 0) + 1, u[i] <= X_ && (s_ += o), e.startsWith("_")) r += n[0];
5285
5286
  else {
5286
5287
  let r = q.classNameAliases[e] || e;
5287
5288
  T(n[0], r);
@@ -5299,9 +5300,9 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5299
5300
  Q.addText($);
5300
5301
  return;
5301
5302
  }
5302
- e = j(Z.subLanguage, $, !0, o_[Z.subLanguage]), o_[Z.subLanguage] = e._top;
5303
+ e = j(Z.subLanguage, $, !0, a_[Z.subLanguage]), a_[Z.subLanguage] = e._top;
5303
5304
  } else e = B($, Z.subLanguage.length ? Z.subLanguage : null);
5304
- Z.relevance > 0 && (c_ += e.relevance), Q.__addSublanguage(e._emitter, e.language);
5305
+ Z.relevance > 0 && (s_ += e.relevance), Q.__addSublanguage(e._emitter, e.language);
5305
5306
  }
5306
5307
  function v() {
5307
5308
  Z.subLanguage == null ? g() : _(), $ = "";
@@ -5338,7 +5339,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5338
5339
  if (e.endsWithParent) return k(e.parent, n, r);
5339
5340
  }
5340
5341
  function I(e) {
5341
- return Z.matcher.regexIndex === 0 ? ($ += e[0], 1) : (d_ = !0, 0);
5342
+ return Z.matcher.regexIndex === 0 ? ($ += e[0], 1) : (u_ = !0, 0);
5342
5343
  }
5343
5344
  function L(e) {
5344
5345
  let n = e[0], r = e.rule, a = new i(r), o = [r.__beforeBegin, r["on:begin"]];
@@ -5347,15 +5348,15 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5347
5348
  }
5348
5349
  function H(e) {
5349
5350
  let n = e[0], i = r.substring(e.index), a = k(Z, e, i);
5350
- if (!a) return X_;
5351
+ if (!a) return Y_;
5351
5352
  let o = Z;
5352
5353
  Z.endScope && Z.endScope._wrap ? (v(), T(n, Z.endScope._wrap)) : Z.endScope && Z.endScope._multi ? (v(), E(Z.endScope, e)) : o.skip ? $ += n : (o.returnEnd || o.excludeEnd || ($ += n), v(), o.excludeEnd && ($ = n));
5353
5354
  do
5354
- Z.scope && Q.closeNode(), !Z.skip && !Z.subLanguage && (c_ += Z.relevance), Z = Z.parent;
5355
+ Z.scope && Q.closeNode(), !Z.skip && !Z.subLanguage && (s_ += Z.relevance), Z = Z.parent;
5355
5356
  while (Z !== a.parent);
5356
5357
  return a.starts && O(a.starts, e), o.returnEnd ? 0 : n.length;
5357
5358
  }
5358
- function i_() {
5359
+ function r_() {
5359
5360
  let e = [];
5360
5361
  for (let n = Z; n !== q; n = n.parent) n.scope && e.unshift(n.scope);
5361
5362
  e.forEach((e) => Q.openNode(e));
@@ -5377,33 +5378,33 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5377
5378
  throw e.mode = Z, e;
5378
5379
  } else if (i.type === "end") {
5379
5380
  let e = H(i);
5380
- if (e !== X_) return e;
5381
+ if (e !== Y_) return e;
5381
5382
  }
5382
5383
  if (i.type === "illegal" && o === "") return $ += "\n", 1;
5383
- if (u_ > 1e5 && u_ > i.index * 3) throw /* @__PURE__ */ Error("potential infinite loop, way more iterations than matches");
5384
+ if (l_ > 1e5 && l_ > i.index * 3) throw /* @__PURE__ */ Error("potential infinite loop, way more iterations than matches");
5384
5385
  return $ += o, o.length;
5385
5386
  }
5386
- let q = s_(e);
5387
- if (!q) throw P_(l.replace("{}", e)), Error("Unknown language: \"" + e + "\"");
5388
- let J = U_(q), a_ = "", Z = o || J, o_ = {}, Q = new d.__emitter(d);
5389
- i_();
5390
- let $ = "", c_ = 0, l_ = 0, u_ = 0, d_ = !1;
5387
+ let q = o_(e);
5388
+ if (!q) throw N_(l.replace("{}", e)), Error("Unknown language: \"" + e + "\"");
5389
+ let J = H_(q), i_ = "", Z = o || J, a_ = {}, Q = new d.__emitter(d);
5390
+ r_();
5391
+ let $ = "", s_ = 0, c_ = 0, l_ = 0, u_ = !1;
5391
5392
  try {
5392
5393
  if (q.__emitTokens) q.__emitTokens(r, Q);
5393
5394
  else {
5394
5395
  for (Z.matcher.considerAll();;) {
5395
- u_++, d_ ? d_ = !1 : Z.matcher.considerAll(), Z.matcher.lastIndex = l_;
5396
+ l_++, u_ ? u_ = !1 : Z.matcher.considerAll(), Z.matcher.lastIndex = c_;
5396
5397
  let e = Z.matcher.exec(r);
5397
5398
  if (!e) break;
5398
- let n = K(r.substring(l_, e.index), e);
5399
- l_ = e.index + n;
5399
+ let n = K(r.substring(c_, e.index), e);
5400
+ c_ = e.index + n;
5400
5401
  }
5401
- K(r.substring(l_));
5402
+ K(r.substring(c_));
5402
5403
  }
5403
- return Q.finalize(), a_ = Q.toHTML(), {
5404
+ return Q.finalize(), i_ = Q.toHTML(), {
5404
5405
  language: e,
5405
- value: a_,
5406
- relevance: c_,
5406
+ value: i_,
5407
+ relevance: s_,
5407
5408
  illegal: !1,
5408
5409
  _emitter: Q,
5409
5410
  _top: Z
@@ -5411,21 +5412,21 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5411
5412
  } catch (n) {
5412
5413
  if (n.message && n.message.includes("Illegal")) return {
5413
5414
  language: e,
5414
- value: J_(r),
5415
+ value: q_(r),
5415
5416
  illegal: !0,
5416
5417
  relevance: 0,
5417
5418
  _illegalBy: {
5418
5419
  message: n.message,
5419
- index: l_,
5420
- context: r.slice(l_ - 100, l_ + 100),
5420
+ index: c_,
5421
+ context: r.slice(c_ - 100, c_ + 100),
5421
5422
  mode: n.mode,
5422
- resultSoFar: a_
5423
+ resultSoFar: i_
5423
5424
  },
5424
5425
  _emitter: Q
5425
5426
  };
5426
5427
  if (s) return {
5427
5428
  language: e,
5428
- value: J_(r),
5429
+ value: q_(r),
5429
5430
  illegal: !1,
5430
5431
  relevance: 0,
5431
5432
  errorRaised: n,
@@ -5437,7 +5438,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5437
5438
  }
5438
5439
  function L(e) {
5439
5440
  let n = {
5440
- value: J_(e),
5441
+ value: q_(e),
5441
5442
  illegal: !1,
5442
5443
  relevance: 0,
5443
5444
  _top: u,
@@ -5447,13 +5448,13 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5447
5448
  }
5448
5449
  function B(e, r) {
5449
5450
  r = r || d.languages || Object.keys(n);
5450
- let i = L(e), a = r.filter(s_).filter(c_).map((n) => j(n, e, !1));
5451
+ let i = L(e), a = r.filter(o_).filter(s_).map((n) => j(n, e, !1));
5451
5452
  a.unshift(i);
5452
5453
  let [o, s] = a.sort((e, n) => {
5453
5454
  if (e.relevance !== n.relevance) return n.relevance - e.relevance;
5454
5455
  if (e.language && n.language) {
5455
- if (s_(e.language).supersetOf === n.language) return 1;
5456
- if (s_(n.language).supersetOf === e.language) return -1;
5456
+ if (o_(e.language).supersetOf === n.language) return 1;
5457
+ if (o_(n.language).supersetOf === e.language) return -1;
5457
5458
  }
5458
5459
  return 0;
5459
5460
  }), l = o;
@@ -5463,17 +5464,17 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5463
5464
  let i = n && a[n] || r;
5464
5465
  e.classList.add("hljs"), e.classList.add(`language-${i}`);
5465
5466
  }
5466
- function i_(e) {
5467
+ function r_(e) {
5467
5468
  let n = null, r = g(e);
5468
5469
  if (m(r)) return;
5469
- if (f_("before:highlightElement", {
5470
+ if (d_("before:highlightElement", {
5470
5471
  el: e,
5471
5472
  language: r
5472
5473
  }), e.dataset.highlighted) {
5473
5474
  console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", e);
5474
5475
  return;
5475
5476
  }
5476
- if (e.children.length > 0 && (d.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(e)), d.throwUnescapedHTML)) throw new q_("One of your code blocks includes unescaped HTML.", e.innerHTML);
5477
+ if (e.children.length > 0 && (d.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(e)), d.throwUnescapedHTML)) throw new K_("One of your code blocks includes unescaped HTML.", e.innerHTML);
5477
5478
  n = e;
5478
5479
  let i = n.textContent, a = r ? v(i, {
5479
5480
  language: r,
@@ -5486,51 +5487,51 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5486
5487
  }, a.secondBest && (e.secondBest = {
5487
5488
  language: a.secondBest.language,
5488
5489
  relevance: a.secondBest.relevance
5489
- }), f_("after:highlightElement", {
5490
+ }), d_("after:highlightElement", {
5490
5491
  el: e,
5491
5492
  result: a,
5492
5493
  text: i
5493
5494
  });
5494
5495
  }
5495
5496
  function G(e) {
5496
- d = Y_(d, e);
5497
+ d = J_(d, e);
5497
5498
  }
5498
5499
  let K = () => {
5499
- a_(), I_("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
5500
+ i_(), F_("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
5500
5501
  };
5501
5502
  function q() {
5502
- a_(), I_("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
5503
+ i_(), F_("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
5503
5504
  }
5504
5505
  let J = !1;
5505
- function a_() {
5506
+ function i_() {
5506
5507
  function e() {
5507
- a_();
5508
+ i_();
5508
5509
  }
5509
5510
  if (document.readyState === "loading") {
5510
5511
  J || window.addEventListener("DOMContentLoaded", e, !1), J = !0;
5511
5512
  return;
5512
5513
  }
5513
- document.querySelectorAll(d.cssSelector).forEach(i_);
5514
+ document.querySelectorAll(d.cssSelector).forEach(r_);
5514
5515
  }
5515
5516
  function Z(r, i) {
5516
5517
  let a = null;
5517
5518
  try {
5518
5519
  a = i(e);
5519
5520
  } catch (e) {
5520
- if (P_("Language definition for '{}' could not be registered.".replace("{}", r)), s) P_(e);
5521
+ if (N_("Language definition for '{}' could not be registered.".replace("{}", r)), s) N_(e);
5521
5522
  else throw e;
5522
5523
  a = u;
5523
5524
  }
5524
5525
  a.name ||= r, n[r] = a, a.rawDefinition = i.bind(null, e), a.aliases && $(a.aliases, { languageName: r });
5525
5526
  }
5526
- function o_(e) {
5527
+ function a_(e) {
5527
5528
  delete n[e];
5528
5529
  for (let n of Object.keys(a)) a[n] === e && delete a[n];
5529
5530
  }
5530
5531
  function Q() {
5531
5532
  return Object.keys(n);
5532
5533
  }
5533
- function s_(e) {
5534
+ function o_(e) {
5534
5535
  return e = (e || "").toLowerCase(), n[e] || n[a[e]];
5535
5536
  }
5536
5537
  function $(e, { languageName: n }) {
@@ -5538,65 +5539,65 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5538
5539
  a[e.toLowerCase()] = n;
5539
5540
  });
5540
5541
  }
5541
- function c_(e) {
5542
- let n = s_(e);
5542
+ function s_(e) {
5543
+ let n = o_(e);
5543
5544
  return n && !n.disableAutodetect;
5544
5545
  }
5545
- function l_(e) {
5546
+ function c_(e) {
5546
5547
  e["before:highlightBlock"] && !e["before:highlightElement"] && (e["before:highlightElement"] = (n) => {
5547
5548
  e["before:highlightBlock"](Object.assign({ block: n.el }, n));
5548
5549
  }), e["after:highlightBlock"] && !e["after:highlightElement"] && (e["after:highlightElement"] = (n) => {
5549
5550
  e["after:highlightBlock"](Object.assign({ block: n.el }, n));
5550
5551
  });
5551
5552
  }
5552
- function u_(e) {
5553
- l_(e), o.push(e);
5553
+ function l_(e) {
5554
+ c_(e), o.push(e);
5554
5555
  }
5555
- function d_(e) {
5556
+ function u_(e) {
5556
5557
  let n = o.indexOf(e);
5557
5558
  n !== -1 && o.splice(n, 1);
5558
5559
  }
5559
- function f_(e, n) {
5560
+ function d_(e, n) {
5560
5561
  let r = e;
5561
5562
  o.forEach(function(e) {
5562
5563
  e[r] && e[r](n);
5563
5564
  });
5564
5565
  }
5565
- function p_(e) {
5566
- return I_("10.7.0", "highlightBlock will be removed entirely in v12.0"), I_("10.7.0", "Please use highlightElement now."), i_(e);
5566
+ function f_(e) {
5567
+ return F_("10.7.0", "highlightBlock will be removed entirely in v12.0"), F_("10.7.0", "Please use highlightElement now."), r_(e);
5567
5568
  }
5568
5569
  for (let n in Object.assign(e, {
5569
5570
  highlight: v,
5570
5571
  highlightAuto: B,
5571
- highlightAll: a_,
5572
- highlightElement: i_,
5573
- highlightBlock: p_,
5572
+ highlightAll: i_,
5573
+ highlightElement: r_,
5574
+ highlightBlock: f_,
5574
5575
  configure: G,
5575
5576
  initHighlighting: K,
5576
5577
  initHighlightingOnLoad: q,
5577
5578
  registerLanguage: Z,
5578
- unregisterLanguage: o_,
5579
+ unregisterLanguage: a_,
5579
5580
  listLanguages: Q,
5580
- getLanguage: s_,
5581
+ getLanguage: o_,
5581
5582
  registerAliases: $,
5582
- autoDetection: c_,
5583
- inherit: Y_,
5584
- addPlugin: u_,
5585
- removePlugin: d_
5583
+ autoDetection: s_,
5584
+ inherit: J_,
5585
+ addPlugin: l_,
5586
+ removePlugin: u_
5586
5587
  }), e.debugMode = function() {
5587
5588
  s = !1;
5588
5589
  }, e.safeMode = function() {
5589
5590
  s = !0;
5590
- }, e.versionString = K_, e.regex = {
5591
+ }, e.versionString = G_, e.regex = {
5591
5592
  concat: k,
5592
5593
  lookahead: T,
5593
5594
  either: I,
5594
5595
  optional: O,
5595
5596
  anyNumberOfTimes: E
5596
- }, b_) typeof b_[n] == "object" && r(b_[n]);
5597
- return Object.assign(e, b_), e;
5598
- }, $_ = Q_({});
5599
- $_.newInstance = () => Q_({}), n.exports = $_, $_.HighlightJS = $_, $_.default = $_;
5597
+ }, y_) typeof y_[n] == "object" && r(y_[n]);
5598
+ return Object.assign(e, y_), e;
5599
+ }, Q_ = Z_({});
5600
+ Q_.newInstance = () => Z_({}), n.exports = Q_, Q_.HighlightJS = Q_, Q_.default = Q_;
5600
5601
  })), require__1c = /* @__PURE__ */ __commonJSMin(((e, n) => {
5601
5602
  function r(e) {
5602
5603
  let n = "[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+", r = "далее возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ", i = "null истина ложь неопределено", a = e.inherit(e.NUMBER_MODE), o = {
@@ -11702,7 +11703,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
11702
11703
  },
11703
11704
  z
11704
11705
  ]
11705
- }, i_ = {
11706
+ }, r_ = {
11706
11707
  scope: "computation-expression",
11707
11708
  match: /\b[_a-z]\w*(?=\s*\{)/
11708
11709
  }, G = {
@@ -11723,7 +11724,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
11723
11724
  begin: /@"/,
11724
11725
  end: /"/,
11725
11726
  contains: [{ match: /""/ }, e.BACKSLASH_ESCAPE]
11726
- }, a_ = {
11727
+ }, i_ = {
11727
11728
  scope: "string",
11728
11729
  begin: /"""/,
11729
11730
  end: /"""/,
@@ -11733,7 +11734,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
11733
11734
  begin: /\{/,
11734
11735
  end: /\}/,
11735
11736
  keywords: g
11736
- }, o_ = {
11737
+ }, a_ = {
11737
11738
  scope: "string",
11738
11739
  begin: /\$"/,
11739
11740
  end: /"/,
@@ -11754,7 +11755,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
11754
11755
  e.BACKSLASH_ESCAPE,
11755
11756
  Z
11756
11757
  ]
11757
- }, s_ = {
11758
+ }, o_ = {
11758
11759
  scope: "string",
11759
11760
  begin: /\$"""/,
11760
11761
  end: /"""/,
@@ -11770,7 +11771,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
11770
11771
  };
11771
11772
  Z.contains = [
11772
11773
  Q,
11773
- o_,
11774
+ a_,
11774
11775
  J,
11775
11776
  q,
11776
11777
  $,
@@ -11778,17 +11779,17 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
11778
11779
  _,
11779
11780
  T,
11780
11781
  z,
11781
- i_,
11782
+ r_,
11782
11783
  G,
11783
11784
  K,
11784
11785
  O,
11785
11786
  j
11786
11787
  ];
11787
- let c_ = { variants: [
11788
- s_,
11789
- Q,
11788
+ let s_ = { variants: [
11790
11789
  o_,
11790
+ Q,
11791
11791
  a_,
11792
+ i_,
11792
11793
  J,
11793
11794
  q,
11794
11795
  $
@@ -11801,7 +11802,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
11801
11802
  classNameAliases: { "computation-expression": "keyword" },
11802
11803
  contains: [
11803
11804
  i,
11804
- c_,
11805
+ s_,
11805
11806
  _,
11806
11807
  T,
11807
11808
  H,
@@ -11812,7 +11813,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
11812
11813
  relevance: 2,
11813
11814
  contains: [
11814
11815
  T,
11815
- a_,
11816
+ i_,
11816
11817
  J,
11817
11818
  q,
11818
11819
  $,
@@ -11821,7 +11822,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
11821
11822
  },
11822
11823
  B,
11823
11824
  z,
11824
- i_,
11825
+ r_,
11825
11826
  G,
11826
11827
  K,
11827
11828
  O,
@@ -13937,7 +13938,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
13937
13938
  contains: [e.BACKSLASH_ESCAPE, L],
13938
13939
  subLanguage: "graphql"
13939
13940
  }
13940
- }, i_ = {
13941
+ }, r_ = {
13941
13942
  className: "string",
13942
13943
  begin: "`",
13943
13944
  end: "`",
@@ -13985,7 +13986,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
13985
13986
  z,
13986
13987
  B,
13987
13988
  H,
13988
- i_,
13989
+ r_,
13989
13990
  { match: /\$\d+/ },
13990
13991
  I
13991
13992
  ];
@@ -14000,7 +14001,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
14000
14001
  end: /\)/,
14001
14002
  keywords: E,
14002
14003
  contains: ["self"].concat(q)
14003
- }]), a_ = {
14004
+ }]), i_ = {
14004
14005
  className: "params",
14005
14006
  begin: /(\s*)\(/,
14006
14007
  end: /\)/,
@@ -14034,7 +14035,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
14034
14035
  1: "keyword",
14035
14036
  3: "title.class"
14036
14037
  }
14037
- }] }, o_ = {
14038
+ }] }, a_ = {
14038
14039
  relevance: 0,
14039
14040
  match: n.either(/\bJSON/, /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/, /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/, /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),
14040
14041
  className: "title.class",
@@ -14044,7 +14045,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
14044
14045
  className: "meta",
14045
14046
  relevance: 10,
14046
14047
  begin: /^\s*['"]use (strict|asm)['"]/
14047
- }, s_ = {
14048
+ }, o_ = {
14048
14049
  variants: [{ match: [
14049
14050
  /function/,
14050
14051
  /\s+/,
@@ -14056,32 +14057,32 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
14056
14057
  3: "title.function"
14057
14058
  },
14058
14059
  label: "func.def",
14059
- contains: [a_],
14060
+ contains: [i_],
14060
14061
  illegal: /%/
14061
14062
  }, $ = {
14062
14063
  relevance: 0,
14063
14064
  match: /\b[A-Z][A-Z_0-9]+\b/,
14064
14065
  className: "variable.constant"
14065
14066
  };
14066
- function c_(e) {
14067
+ function s_(e) {
14067
14068
  return n.concat("(?!", e.join("|"), ")");
14068
14069
  }
14069
- let l_ = {
14070
- match: n.concat(/\b/, c_([
14070
+ let c_ = {
14071
+ match: n.concat(/\b/, s_([
14071
14072
  ...l,
14072
14073
  "super",
14073
14074
  "import"
14074
14075
  ].map((e) => `${e}\\s*\\(`)), g, n.lookahead(/\s*\(/)),
14075
14076
  className: "title.function",
14076
14077
  relevance: 0
14077
- }, u_ = {
14078
+ }, l_ = {
14078
14079
  begin: n.concat(/\./, n.lookahead(n.concat(g, /(?![0-9A-Za-z$_(])/))),
14079
14080
  end: g,
14080
14081
  excludeBegin: !0,
14081
14082
  keywords: "prototype",
14082
14083
  className: "property",
14083
14084
  relevance: 0
14084
- }, d_ = {
14085
+ }, u_ = {
14085
14086
  match: [
14086
14087
  /get|set/,
14087
14088
  /\s+/,
@@ -14092,8 +14093,8 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
14092
14093
  1: "keyword",
14093
14094
  3: "title.function"
14094
14095
  },
14095
- contains: [{ begin: /\(\)/ }, a_]
14096
- }, f_ = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", p_ = {
14096
+ contains: [{ begin: /\(\)/ }, i_]
14097
+ }, d_ = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", f_ = {
14097
14098
  match: [
14098
14099
  /const|var|let/,
14099
14100
  /\s+/,
@@ -14101,14 +14102,14 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
14101
14102
  /\s*/,
14102
14103
  /=\s*/,
14103
14104
  /(async\s*)?/,
14104
- n.lookahead(f_)
14105
+ n.lookahead(d_)
14105
14106
  ],
14106
14107
  keywords: "async",
14107
14108
  className: {
14108
14109
  1: "keyword",
14109
14110
  3: "title.function"
14110
14111
  },
14111
- contains: [a_]
14112
+ contains: [i_]
14112
14113
  };
14113
14114
  return {
14114
14115
  name: "JavaScript",
@@ -14121,7 +14122,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
14121
14122
  keywords: E,
14122
14123
  exports: {
14123
14124
  PARAMS_CONTAINS: J,
14124
- CLASS_REFERENCE: o_
14125
+ CLASS_REFERENCE: a_
14125
14126
  },
14126
14127
  illegal: /#(?![$_A-z])/,
14127
14128
  contains: [
@@ -14136,17 +14137,17 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
14136
14137
  z,
14137
14138
  B,
14138
14139
  H,
14139
- i_,
14140
+ r_,
14140
14141
  G,
14141
14142
  { match: /\$\d+/ },
14142
14143
  I,
14143
- o_,
14144
+ a_,
14144
14145
  {
14145
14146
  scope: "attr",
14146
14147
  match: g + n.lookahead(":"),
14147
14148
  relevance: 0
14148
14149
  },
14149
- p_,
14150
+ f_,
14150
14151
  {
14151
14152
  begin: "(" + e.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
14152
14153
  keywords: "return throw case",
@@ -14156,7 +14157,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
14156
14157
  e.REGEXP_MODE,
14157
14158
  {
14158
14159
  className: "function",
14159
- begin: f_,
14160
+ begin: d_,
14160
14161
  returnBegin: !0,
14161
14162
  end: "\\s*=>",
14162
14163
  contains: [{
@@ -14213,13 +14214,13 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
14213
14214
  }
14214
14215
  ]
14215
14216
  },
14216
- s_,
14217
+ o_,
14217
14218
  { beginKeywords: "while if switch catch for" },
14218
14219
  {
14219
14220
  begin: "\\b(?!function)" + e.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",
14220
14221
  returnBegin: !0,
14221
14222
  label: "func.def",
14222
- contains: [a_, e.inherit(e.TITLE_MODE, {
14223
+ contains: [i_, e.inherit(e.TITLE_MODE, {
14223
14224
  begin: g,
14224
14225
  className: "title.function"
14225
14226
  })]
@@ -14228,7 +14229,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
14228
14229
  match: /\.\.\./,
14229
14230
  relevance: 0
14230
14231
  },
14231
- u_,
14232
+ l_,
14232
14233
  {
14233
14234
  match: "\\$" + g,
14234
14235
  relevance: 0
@@ -14236,12 +14237,12 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
14236
14237
  {
14237
14238
  match: [/\bconstructor(?=\s*\()/],
14238
14239
  className: { 1: "title.function" },
14239
- contains: [a_]
14240
+ contains: [i_]
14240
14241
  },
14241
- l_,
14242
+ c_,
14242
14243
  $,
14243
14244
  Z,
14244
- d_,
14245
+ u_,
14245
14246
  { match: /\$[(.]/ }
14246
14247
  ]
14247
14248
  };
@@ -15195,12 +15196,12 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
15195
15196
  { begin: "!important" },
15196
15197
  n.FUNCTION_DISPATCH
15197
15198
  ]
15198
- }, i_ = {
15199
+ }, r_ = {
15199
15200
  begin: `[\\w-]+:(:)?(${i.join("|")})`,
15200
15201
  returnBegin: !0,
15201
15202
  contains: [H]
15202
15203
  };
15203
- return _.push(e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, z, B, i_, L, H, I, n.FUNCTION_DISPATCH), {
15204
+ return _.push(e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, z, B, r_, L, H, I, n.FUNCTION_DISPATCH), {
15204
15205
  name: "Less",
15205
15206
  case_insensitive: !0,
15206
15207
  illegal: "[=>'/<($\"]",
@@ -17726,7 +17727,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
17726
17727
  3: "variable.language"
17727
17728
  }
17728
17729
  }
17729
- ] }, i_ = {
17730
+ ] }, r_ = {
17730
17731
  scope: "attr",
17731
17732
  match: n.concat(i, n.lookahead(":"), n.lookahead(/(?!::)/))
17732
17733
  }, G = {
@@ -17735,7 +17736,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
17735
17736
  end: /\)/,
17736
17737
  keywords: I,
17737
17738
  contains: [
17738
- i_,
17739
+ r_,
17739
17740
  s,
17740
17741
  H,
17741
17742
  e.C_BLOCK_COMMENT_MODE,
@@ -17757,7 +17758,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
17757
17758
  };
17758
17759
  G.contains.push(K);
17759
17760
  let q = [
17760
- i_,
17761
+ r_,
17761
17762
  H,
17762
17763
  e.C_BLOCK_COMMENT_MODE,
17763
17764
  T,
@@ -21175,7 +21176,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21175
21176
  "unknown",
21176
21177
  "usableFromInline",
21177
21178
  "warn_unqualified_access"
21178
- ], i_ = [
21179
+ ], r_ = [
21179
21180
  "iOS",
21180
21181
  "iOSApplicationExtension",
21181
21182
  "macOS",
@@ -21209,7 +21210,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21209
21210
  O,
21210
21211
  I,
21211
21212
  K
21212
- ], a_ = [{
21213
+ ], i_ = [{
21213
21214
  match: a(/\./, s(...E)),
21214
21215
  relevance: 0
21215
21216
  }, {
@@ -21218,84 +21219,84 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21218
21219
  }], Z = {
21219
21220
  match: /->/,
21220
21221
  relevance: 0
21221
- }, o_ = [Z, {
21222
+ }, a_ = [Z, {
21222
21223
  className: "operator",
21223
21224
  relevance: 0,
21224
21225
  variants: [{ match: j }, { match: `\\.(\\.|${k})+` }]
21225
- }], Q = "([0-9]_*)+", s_ = "([0-9a-fA-F]_*)+", $ = {
21226
+ }], Q = "([0-9]_*)+", o_ = "([0-9a-fA-F]_*)+", $ = {
21226
21227
  className: "number",
21227
21228
  relevance: 0,
21228
21229
  variants: [
21229
21230
  { match: `\\b(${Q})(\\.(${Q}))?([eE][+-]?(${Q}))?\\b` },
21230
- { match: `\\b0x(${s_})(\\.(${s_}))?([pP][+-]?(${Q}))?\\b` },
21231
+ { match: `\\b0x(${o_})(\\.(${o_}))?([pP][+-]?(${Q}))?\\b` },
21231
21232
  { match: /\b0o([0-7]_*)+\b/ },
21232
21233
  { match: /\b0b([01]_*)+\b/ }
21233
21234
  ]
21234
- }, c_ = (e = "") => ({
21235
+ }, s_ = (e = "") => ({
21235
21236
  className: "subst",
21236
21237
  variants: [{ match: a(/\\/, e, /[0\\tnr"']/) }, { match: a(/\\/, e, /u\{[0-9a-fA-F]{1,8}\}/) }]
21237
- }), l_ = (e = "") => ({
21238
+ }), c_ = (e = "") => ({
21238
21239
  className: "subst",
21239
21240
  match: a(/\\/, e, /[\t ]*(?:[\r\n]|\r\n)/)
21240
- }), u_ = (e = "") => ({
21241
+ }), l_ = (e = "") => ({
21241
21242
  className: "subst",
21242
21243
  label: "interpol",
21243
21244
  begin: a(/\\/, e, /\(/),
21244
21245
  end: /\)/
21245
- }), d_ = (e = "") => ({
21246
+ }), u_ = (e = "") => ({
21246
21247
  begin: a(e, /"""/),
21247
21248
  end: a(/"""/, e),
21248
21249
  contains: [
21250
+ s_(e),
21249
21251
  c_(e),
21250
- l_(e),
21251
- u_(e)
21252
+ l_(e)
21252
21253
  ]
21253
- }), f_ = (e = "") => ({
21254
+ }), d_ = (e = "") => ({
21254
21255
  begin: a(e, /"/),
21255
21256
  end: a(/"/, e),
21256
- contains: [c_(e), u_(e)]
21257
- }), p_ = {
21257
+ contains: [s_(e), l_(e)]
21258
+ }), f_ = {
21258
21259
  className: "string",
21259
21260
  variants: [
21261
+ u_(),
21262
+ u_("#"),
21263
+ u_("##"),
21264
+ u_("###"),
21260
21265
  d_(),
21261
21266
  d_("#"),
21262
21267
  d_("##"),
21263
- d_("###"),
21264
- f_(),
21265
- f_("#"),
21266
- f_("##"),
21267
- f_("###")
21268
+ d_("###")
21268
21269
  ]
21269
- }, m_ = [e.BACKSLASH_ESCAPE, {
21270
+ }, p_ = [e.BACKSLASH_ESCAPE, {
21270
21271
  begin: /\[/,
21271
21272
  end: /\]/,
21272
21273
  relevance: 0,
21273
21274
  contains: [e.BACKSLASH_ESCAPE]
21274
- }], h_ = {
21275
+ }], m_ = {
21275
21276
  begin: /\/[^\s](?=[^/\n]*\/)/,
21276
21277
  end: /\//,
21277
- contains: m_
21278
- }, g_ = (e) => {
21278
+ contains: p_
21279
+ }, h_ = (e) => {
21279
21280
  let n = a(e, /\//), r = a(/\//, e);
21280
21281
  return {
21281
21282
  begin: n,
21282
21283
  end: r,
21283
- contains: [...m_, {
21284
+ contains: [...p_, {
21284
21285
  scope: "comment",
21285
21286
  begin: `#(?!.*${r})`,
21286
21287
  end: /$/
21287
21288
  }]
21288
21289
  };
21289
- }, __ = {
21290
+ }, g_ = {
21290
21291
  scope: "regexp",
21291
21292
  variants: [
21292
- g_("###"),
21293
- g_("##"),
21294
- g_("#"),
21295
- h_
21293
+ h_("###"),
21294
+ h_("##"),
21295
+ h_("#"),
21296
+ m_
21296
21297
  ]
21297
- }, v_ = { match: a(/`/, z, /`/) }, y_ = [
21298
- v_,
21298
+ }, __ = { match: a(/`/, z, /`/) }, v_ = [
21299
+ __,
21299
21300
  {
21300
21301
  className: "variable",
21301
21302
  match: /\$\d+/
@@ -21304,18 +21305,18 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21304
21305
  className: "variable",
21305
21306
  match: `\\$${L}+`
21306
21307
  }
21307
- ], b_ = [
21308
+ ], y_ = [
21308
21309
  {
21309
21310
  match: /(@|#(un)?)available/,
21310
21311
  scope: "keyword",
21311
21312
  starts: { contains: [{
21312
21313
  begin: /\(/,
21313
21314
  end: /\)/,
21314
- keywords: i_,
21315
+ keywords: r_,
21315
21316
  contains: [
21316
- ...o_,
21317
+ ...a_,
21317
21318
  $,
21318
- p_
21319
+ f_
21319
21320
  ]
21320
21321
  }] }
21321
21322
  },
@@ -21327,7 +21328,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21327
21328
  scope: "meta",
21328
21329
  match: a(/@/, z)
21329
21330
  }
21330
- ], x_ = {
21331
+ ], b_ = {
21331
21332
  match: i(/\b[A-Z]/),
21332
21333
  relevance: 0,
21333
21334
  contains: [
@@ -21353,20 +21354,20 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21353
21354
  relevance: 0
21354
21355
  }
21355
21356
  ]
21356
- }, S_ = {
21357
+ }, x_ = {
21357
21358
  begin: /</,
21358
21359
  end: />/,
21359
21360
  keywords: q,
21360
21361
  contains: [
21361
21362
  ...o,
21362
21363
  ...J,
21363
- ...b_,
21364
+ ...y_,
21364
21365
  Z,
21365
- x_
21366
+ b_
21366
21367
  ]
21367
21368
  };
21368
- x_.contains.push(S_);
21369
- let C_ = {
21369
+ b_.contains.push(x_);
21370
+ let S_ = {
21370
21371
  begin: /\(/,
21371
21372
  end: /\)/,
21372
21373
  relevance: 0,
@@ -21379,22 +21380,22 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21379
21380
  relevance: 0
21380
21381
  },
21381
21382
  ...o,
21382
- __,
21383
+ g_,
21383
21384
  ...J,
21385
+ ...i_,
21384
21386
  ...a_,
21385
- ...o_,
21386
21387
  $,
21387
- p_,
21388
+ f_,
21389
+ ...v_,
21388
21390
  ...y_,
21389
- ...b_,
21390
- x_
21391
+ b_
21391
21392
  ]
21392
- }, w_ = {
21393
+ }, C_ = {
21393
21394
  begin: /</,
21394
21395
  end: />/,
21395
21396
  keywords: "repeat each",
21396
- contains: [...o, x_]
21397
- }, T_ = {
21397
+ contains: [...o, b_]
21398
+ }, w_ = {
21398
21399
  begin: /\(/,
21399
21400
  end: /\)/,
21400
21401
  keywords: q,
@@ -21413,41 +21414,41 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21413
21414
  },
21414
21415
  ...o,
21415
21416
  ...J,
21416
- ...o_,
21417
+ ...a_,
21417
21418
  $,
21418
- p_,
21419
- ...b_,
21420
- x_,
21421
- C_
21419
+ f_,
21420
+ ...y_,
21421
+ b_,
21422
+ S_
21422
21423
  ],
21423
21424
  endsParent: !0,
21424
21425
  illegal: /["']/
21425
- }, E_ = {
21426
+ }, T_ = {
21426
21427
  match: [
21427
21428
  /(func|macro)/,
21428
21429
  /\s+/,
21429
- s(v_.match, z, j)
21430
+ s(__.match, z, j)
21430
21431
  ],
21431
21432
  className: {
21432
21433
  1: "keyword",
21433
21434
  3: "title.function"
21434
21435
  },
21435
21436
  contains: [
21437
+ C_,
21436
21438
  w_,
21437
- T_,
21438
21439
  n
21439
21440
  ],
21440
21441
  illegal: [/\[/, /%/]
21441
- }, D_ = {
21442
+ }, E_ = {
21442
21443
  match: [/\b(?:subscript|init[?!]?)/, /\s*(?=[<(])/],
21443
21444
  className: { 1: "keyword" },
21444
21445
  contains: [
21446
+ C_,
21445
21447
  w_,
21446
- T_,
21447
21448
  n
21448
21449
  ],
21449
21450
  illegal: /\[|%/
21450
- }, O_ = {
21451
+ }, D_ = {
21451
21452
  match: [
21452
21453
  /operator/,
21453
21454
  /\s+/,
@@ -21457,7 +21458,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21457
21458
  1: "keyword",
21458
21459
  3: "title"
21459
21460
  }
21460
- }, k_ = {
21461
+ }, O_ = {
21461
21462
  begin: [
21462
21463
  /precedencegroup/,
21463
21464
  /\s+/,
@@ -21467,10 +21468,10 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21467
21468
  1: "keyword",
21468
21469
  3: "title"
21469
21470
  },
21470
- contains: [x_],
21471
+ contains: [b_],
21471
21472
  keywords: [...v, ..._],
21472
21473
  end: /}/
21473
- }, A_ = {
21474
+ }, k_ = {
21474
21475
  match: [
21475
21476
  /class\b/,
21476
21477
  /\s+/,
@@ -21483,7 +21484,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21483
21484
  3: "keyword",
21484
21485
  5: "title.function"
21485
21486
  }
21486
- }, j_ = {
21487
+ }, A_ = {
21487
21488
  match: [
21488
21489
  /class\b/,
21489
21490
  /\s+/,
@@ -21493,7 +21494,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21493
21494
  1: "keyword",
21494
21495
  3: "keyword"
21495
21496
  }
21496
- }, M_ = {
21497
+ }, j_ = {
21497
21498
  begin: [
21498
21499
  /(struct|protocol|class|extension|enum|actor)/,
21499
21500
  /\s+/,
@@ -21506,7 +21507,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21506
21507
  },
21507
21508
  keywords: q,
21508
21509
  contains: [
21509
- w_,
21510
+ C_,
21510
21511
  ...J,
21511
21512
  {
21512
21513
  begin: /:/,
@@ -21520,16 +21521,16 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21520
21521
  }
21521
21522
  ]
21522
21523
  };
21523
- for (let e of p_.variants) {
21524
+ for (let e of f_.variants) {
21524
21525
  let n = e.contains.find((e) => e.label === "interpol");
21525
21526
  n.keywords = q;
21526
21527
  let r = [
21527
21528
  ...J,
21529
+ ...i_,
21528
21530
  ...a_,
21529
- ...o_,
21530
21531
  $,
21531
- p_,
21532
- ...y_
21532
+ f_,
21533
+ ...v_
21533
21534
  ];
21534
21535
  n.contains = [...r, {
21535
21536
  begin: /\(/,
@@ -21542,29 +21543,29 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21542
21543
  keywords: q,
21543
21544
  contains: [
21544
21545
  ...o,
21546
+ T_,
21545
21547
  E_,
21546
- D_,
21548
+ k_,
21547
21549
  A_,
21548
21550
  j_,
21549
- M_,
21551
+ D_,
21550
21552
  O_,
21551
- k_,
21552
21553
  {
21553
21554
  beginKeywords: "import",
21554
21555
  end: /$/,
21555
21556
  contains: [...o],
21556
21557
  relevance: 0
21557
21558
  },
21558
- __,
21559
+ g_,
21559
21560
  ...J,
21561
+ ...i_,
21560
21562
  ...a_,
21561
- ...o_,
21562
21563
  $,
21563
- p_,
21564
+ f_,
21565
+ ...v_,
21564
21566
  ...y_,
21565
- ...b_,
21566
- x_,
21567
- C_
21567
+ b_,
21568
+ S_
21568
21569
  ]
21569
21570
  };
21570
21571
  }
@@ -22174,7 +22175,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22174
22175
  contains: [e.BACKSLASH_ESCAPE, L],
22175
22176
  subLanguage: "graphql"
22176
22177
  }
22177
- }, i_ = {
22178
+ }, r_ = {
22178
22179
  className: "string",
22179
22180
  begin: "`",
22180
22181
  end: "`",
@@ -22222,7 +22223,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22222
22223
  z,
22223
22224
  B,
22224
22225
  H,
22225
- i_,
22226
+ r_,
22226
22227
  { match: /\$\d+/ },
22227
22228
  I
22228
22229
  ];
@@ -22237,7 +22238,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22237
22238
  end: /\)/,
22238
22239
  keywords: E,
22239
22240
  contains: ["self"].concat(q)
22240
- }]), a_ = {
22241
+ }]), i_ = {
22241
22242
  className: "params",
22242
22243
  begin: /(\s*)\(/,
22243
22244
  end: /\)/,
@@ -22271,7 +22272,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22271
22272
  1: "keyword",
22272
22273
  3: "title.class"
22273
22274
  }
22274
- }] }, o_ = {
22275
+ }] }, a_ = {
22275
22276
  relevance: 0,
22276
22277
  match: n.either(/\bJSON/, /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/, /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/, /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),
22277
22278
  className: "title.class",
@@ -22281,7 +22282,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22281
22282
  className: "meta",
22282
22283
  relevance: 10,
22283
22284
  begin: /^\s*['"]use (strict|asm)['"]/
22284
- }, s_ = {
22285
+ }, o_ = {
22285
22286
  variants: [{ match: [
22286
22287
  /function/,
22287
22288
  /\s+/,
@@ -22293,32 +22294,32 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22293
22294
  3: "title.function"
22294
22295
  },
22295
22296
  label: "func.def",
22296
- contains: [a_],
22297
+ contains: [i_],
22297
22298
  illegal: /%/
22298
22299
  }, $ = {
22299
22300
  relevance: 0,
22300
22301
  match: /\b[A-Z][A-Z_0-9]+\b/,
22301
22302
  className: "variable.constant"
22302
22303
  };
22303
- function c_(e) {
22304
+ function s_(e) {
22304
22305
  return n.concat("(?!", e.join("|"), ")");
22305
22306
  }
22306
- let l_ = {
22307
- match: n.concat(/\b/, c_([
22307
+ let c_ = {
22308
+ match: n.concat(/\b/, s_([
22308
22309
  ...l,
22309
22310
  "super",
22310
22311
  "import"
22311
22312
  ].map((e) => `${e}\\s*\\(`)), g, n.lookahead(/\s*\(/)),
22312
22313
  className: "title.function",
22313
22314
  relevance: 0
22314
- }, u_ = {
22315
+ }, l_ = {
22315
22316
  begin: n.concat(/\./, n.lookahead(n.concat(g, /(?![0-9A-Za-z$_(])/))),
22316
22317
  end: g,
22317
22318
  excludeBegin: !0,
22318
22319
  keywords: "prototype",
22319
22320
  className: "property",
22320
22321
  relevance: 0
22321
- }, d_ = {
22322
+ }, u_ = {
22322
22323
  match: [
22323
22324
  /get|set/,
22324
22325
  /\s+/,
@@ -22329,8 +22330,8 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22329
22330
  1: "keyword",
22330
22331
  3: "title.function"
22331
22332
  },
22332
- contains: [{ begin: /\(\)/ }, a_]
22333
- }, f_ = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", p_ = {
22333
+ contains: [{ begin: /\(\)/ }, i_]
22334
+ }, d_ = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", f_ = {
22334
22335
  match: [
22335
22336
  /const|var|let/,
22336
22337
  /\s+/,
@@ -22338,14 +22339,14 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22338
22339
  /\s*/,
22339
22340
  /=\s*/,
22340
22341
  /(async\s*)?/,
22341
- n.lookahead(f_)
22342
+ n.lookahead(d_)
22342
22343
  ],
22343
22344
  keywords: "async",
22344
22345
  className: {
22345
22346
  1: "keyword",
22346
22347
  3: "title.function"
22347
22348
  },
22348
- contains: [a_]
22349
+ contains: [i_]
22349
22350
  };
22350
22351
  return {
22351
22352
  name: "JavaScript",
@@ -22358,7 +22359,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22358
22359
  keywords: E,
22359
22360
  exports: {
22360
22361
  PARAMS_CONTAINS: J,
22361
- CLASS_REFERENCE: o_
22362
+ CLASS_REFERENCE: a_
22362
22363
  },
22363
22364
  illegal: /#(?![$_A-z])/,
22364
22365
  contains: [
@@ -22373,17 +22374,17 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22373
22374
  z,
22374
22375
  B,
22375
22376
  H,
22376
- i_,
22377
+ r_,
22377
22378
  G,
22378
22379
  { match: /\$\d+/ },
22379
22380
  I,
22380
- o_,
22381
+ a_,
22381
22382
  {
22382
22383
  scope: "attr",
22383
22384
  match: g + n.lookahead(":"),
22384
22385
  relevance: 0
22385
22386
  },
22386
- p_,
22387
+ f_,
22387
22388
  {
22388
22389
  begin: "(" + e.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
22389
22390
  keywords: "return throw case",
@@ -22393,7 +22394,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22393
22394
  e.REGEXP_MODE,
22394
22395
  {
22395
22396
  className: "function",
22396
- begin: f_,
22397
+ begin: d_,
22397
22398
  returnBegin: !0,
22398
22399
  end: "\\s*=>",
22399
22400
  contains: [{
@@ -22450,13 +22451,13 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22450
22451
  }
22451
22452
  ]
22452
22453
  },
22453
- s_,
22454
+ o_,
22454
22455
  { beginKeywords: "while if switch catch for" },
22455
22456
  {
22456
22457
  begin: "\\b(?!function)" + e.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",
22457
22458
  returnBegin: !0,
22458
22459
  label: "func.def",
22459
- contains: [a_, e.inherit(e.TITLE_MODE, {
22460
+ contains: [i_, e.inherit(e.TITLE_MODE, {
22460
22461
  begin: g,
22461
22462
  className: "title.function"
22462
22463
  })]
@@ -22465,7 +22466,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22465
22466
  match: /\.\.\./,
22466
22467
  relevance: 0
22467
22468
  },
22468
- u_,
22469
+ l_,
22469
22470
  {
22470
22471
  match: "\\$" + g,
22471
22472
  relevance: 0
@@ -22473,12 +22474,12 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22473
22474
  {
22474
22475
  match: [/\bconstructor(?=\s*\()/],
22475
22476
  className: { 1: "title.function" },
22476
- contains: [a_]
22477
+ contains: [i_]
22477
22478
  },
22478
- l_,
22479
+ c_,
22479
22480
  $,
22480
22481
  Z,
22481
- d_,
22482
+ u_,
22482
22483
  { match: /\$[(.]/ }
22483
22484
  ]
22484
22485
  };
@@ -23617,7 +23618,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
23617
23618
  immediate: !0,
23618
23619
  deep: !0
23619
23620
  });
23620
- let i_ = () => {
23621
+ let r_ = () => {
23621
23622
  let e = a.value?.innerText;
23622
23623
  e && l(e);
23623
23624
  };
@@ -23625,7 +23626,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
23625
23626
  id: "copy",
23626
23627
  description: "复制",
23627
23628
  name: "复制",
23628
- onClick: i_
23629
+ onClick: r_
23629
23630
  })]), createElementVNode("pre", _hoisted_4$20, [createElementVNode("code", {
23630
23631
  ref_key: "codeRef",
23631
23632
  ref: a,
@@ -24659,7 +24660,7 @@ const createEditor = ({ schema: { single: e, js: n, doc: r, copy: i, paste: a },
24659
24660
  if (!(window.InputEvent && typeof InputEvent.prototype.getTargetRanges == "function")) return console.error("beforeinput event is not supported."), noop;
24660
24661
  let { contentEditable: o, role: T, ariaMultiLine: O, ariaReadOnly: k } = r, j = r.style.whiteSpace;
24661
24662
  r.role = "textbox", r.style.whiteSpace = "pre-wrap", e || (r.ariaMultiLine = "true");
24662
- let I = !1, L = !1, z = null, B = !1, H = !1, i_ = !1, G = getCurrentDocument(r), K = {
24663
+ let I = !1, L = !1, z = null, B = !1, H = !1, r_ = !1, G = getCurrentDocument(r), K = {
24663
24664
  _document: G,
24664
24665
  _isBlock: s
24665
24666
  };
@@ -24670,7 +24671,7 @@ const createEditor = ({ schema: { single: e, js: n, doc: r, copy: i, paste: a },
24670
24671
  H && setSelectionToDOM(G, r, d, K);
24671
24672
  }), J = () => {
24672
24673
  d = takeSelectionSnapshot(r, K);
24673
- }, a_ = () => {
24674
+ }, i_ = () => {
24674
24675
  let e = q._flush();
24675
24676
  if (q._record(!1), e.length) {
24676
24677
  let n;
@@ -24693,8 +24694,8 @@ const createEditor = ({ schema: { single: e, js: n, doc: r, copy: i, paste: a },
24693
24694
  r && (l(n(r[0])), d = r[1]);
24694
24695
  }
24695
24696
  }
24696
- }, o_ = () => {
24697
- B || a_();
24697
+ }, a_ = () => {
24698
+ B || i_();
24698
24699
  }, Q = (e) => {
24699
24700
  e.preventDefault();
24700
24701
  let n = e.inputType;
@@ -24709,47 +24710,47 @@ const createEditor = ({ schema: { single: e, js: n, doc: r, copy: i, paste: a },
24709
24710
  }
24710
24711
  z ||= new Transaction().select(...d), comparePosition(...a) !== 0 && z.delete(...a), o && z.insert(a[0], stringToDoc(o));
24711
24712
  }
24712
- B || a_();
24713
- }, s_ = () => {
24713
+ B || i_();
24714
+ }, o_ = () => {
24714
24715
  B || J(), B = !0;
24715
24716
  }, $ = () => {
24716
- a_();
24717
- }, c_ = () => {
24717
+ i_();
24718
+ }, s_ = () => {
24718
24719
  H = !0, J();
24719
- }, l_ = () => {
24720
+ }, c_ = () => {
24720
24721
  H = !1;
24721
- }, u_ = () => {
24722
+ }, l_ = () => {
24722
24723
  if (L) {
24723
24724
  L = !1;
24724
24725
  return;
24725
24726
  }
24726
- H && !B && !i_ && J();
24727
- }, d_ = (e) => {
24727
+ H && !B && !r_ && J();
24728
+ }, u_ = (e) => {
24728
24729
  J(), comparePosition(...d) !== 0 && i(e, sliceDoc(_(), ...range(d)), r);
24730
+ }, d_ = (e) => {
24731
+ e.preventDefault(), u_(e.clipboardData);
24729
24732
  }, f_ = (e) => {
24730
- e.preventDefault(), d_(e.clipboardData);
24733
+ e.preventDefault(), m || (u_(e.clipboardData), E(new Transaction().delete(...range(d))));
24731
24734
  }, p_ = (e) => {
24732
- e.preventDefault(), m || (d_(e.clipboardData), E(new Transaction().delete(...range(d))));
24733
- }, m_ = (e) => {
24734
24735
  e.preventDefault();
24735
24736
  let [n, r] = range(d);
24736
24737
  E(new Transaction().delete(n, r).insert(n, a(e.clipboardData, K)));
24737
- }, h_ = (e) => {
24738
+ }, m_ = (e) => {
24738
24739
  e.preventDefault();
24739
24740
  let n = e.dataTransfer, i = getPointedCaretPosition(G, r, e, K);
24740
24741
  if (n && i) {
24741
24742
  let e = new Transaction();
24742
- i_ && e.delete(...range(d));
24743
+ r_ && e.delete(...range(d));
24743
24744
  let o = e.transform(i);
24744
24745
  e.select(o, o).insert(o, a(n, K)).select(o), E(e), r.focus({ preventScroll: !0 });
24745
24746
  }
24746
- }, g_ = (e) => {
24747
- i_ = !0, d_(e.dataTransfer);
24748
- }, __ = () => {
24749
- i_ = !1;
24747
+ }, h_ = (e) => {
24748
+ r_ = !0, u_(e.dataTransfer);
24749
+ }, g_ = () => {
24750
+ r_ = !1;
24750
24751
  };
24751
- return G.addEventListener("selectionchange", u_), r.addEventListener("keydown", Z), r.addEventListener("input", o_), r.addEventListener("beforeinput", Q), r.addEventListener("compositionstart", s_), r.addEventListener("compositionend", $), r.addEventListener("focus", c_), r.addEventListener("blur", l_), r.addEventListener("copy", f_), r.addEventListener("cut", p_), r.addEventListener("paste", m_), r.addEventListener("drop", h_), r.addEventListener("dragstart", g_), r.addEventListener("dragend", __), () => {
24752
- I || (I = !0, g = noop, r.contentEditable = o, r.role = T, r.ariaMultiLine = O, r.ariaReadOnly = k, r.style.whiteSpace = j, q._dispose(), G.removeEventListener("selectionchange", u_), r.removeEventListener("keydown", Z), r.removeEventListener("input", o_), r.removeEventListener("beforeinput", Q), r.removeEventListener("compositionstart", s_), r.removeEventListener("compositionend", $), r.removeEventListener("focus", c_), r.removeEventListener("blur", l_), r.removeEventListener("copy", f_), r.removeEventListener("cut", p_), r.removeEventListener("paste", m_), r.removeEventListener("drop", h_), r.removeEventListener("dragstart", g_), r.removeEventListener("dragend", __));
24752
+ return G.addEventListener("selectionchange", l_), r.addEventListener("keydown", Z), r.addEventListener("input", a_), r.addEventListener("beforeinput", Q), r.addEventListener("compositionstart", o_), r.addEventListener("compositionend", $), r.addEventListener("focus", s_), r.addEventListener("blur", c_), r.addEventListener("copy", d_), r.addEventListener("cut", f_), r.addEventListener("paste", p_), r.addEventListener("drop", m_), r.addEventListener("dragstart", h_), r.addEventListener("dragend", g_), () => {
24753
+ I || (I = !0, g = noop, r.contentEditable = o, r.role = T, r.ariaMultiLine = O, r.ariaReadOnly = k, r.style.whiteSpace = j, q._dispose(), G.removeEventListener("selectionchange", l_), r.removeEventListener("keydown", Z), r.removeEventListener("input", a_), r.removeEventListener("beforeinput", Q), r.removeEventListener("compositionstart", o_), r.removeEventListener("compositionend", $), r.removeEventListener("focus", s_), r.removeEventListener("blur", c_), r.removeEventListener("copy", d_), r.removeEventListener("cut", f_), r.removeEventListener("paste", p_), r.removeEventListener("drop", m_), r.removeEventListener("dragstart", h_), r.removeEventListener("dragend", g_));
24753
24754
  };
24754
24755
  },
24755
24756
  command: (e, ...n) => {
@@ -24871,7 +24872,7 @@ var _hoisted_1$34 = { class: "file-upload-btn" }, _hoisted_2$26 = ["accept"], fi
24871
24872
  onClick: o
24872
24873
  }, [renderSlot(n.$slots, "default", {}, () => [createVNode(unref(FileUploadIcon))])])), [[unref(directive), {
24873
24874
  ...e.tippyOptions,
24874
- content: unref(t$1)("上传图片"),
24875
+ content: unref(t$1)("上传图片, 最多支持上传 3 个, 最大支持 2.4MB"),
24875
24876
  theme: "ai-chat-box",
24876
24877
  offset: [0, 16]
24877
24878
  }]])]));
@@ -25055,16 +25056,16 @@ var _hoisted_1$31 = ["src"], _hoisted_2$23 = {
25055
25056
  setup(e) {
25056
25057
  let n = e, r = useModel(e, "visible"), i = useModel(e, "current"), { imageStyle: a, resetTransform: l, zoomIn: m, zoomOut: O, rotateCW: j, handleWheel: I, handleDragStart: L } = useImageTransform(), z = shallowRef("loading"), B = [], H = () => {
25057
25058
  B.forEach((e) => URL.revokeObjectURL(e)), B.length = 0;
25058
- }, i_ = (e) => {
25059
+ }, r_ = (e) => {
25059
25060
  let n = URL.createObjectURL(e);
25060
25061
  return B.push(n), {
25061
25062
  url: n,
25062
25063
  name: e.name,
25063
25064
  file: e
25064
25065
  };
25065
- }, G = computed(() => (H(), n.images.map((e) => e instanceof File ? i_(e) : typeof e == "string" ? { url: e } : e.file && !e.url ? {
25066
+ }, G = computed(() => (H(), n.images.map((e) => e instanceof File ? r_(e) : typeof e == "string" ? { url: e } : e.file && !e.url ? {
25066
25067
  ...e,
25067
- url: i_(e.file).url
25068
+ url: r_(e.file).url
25068
25069
  } : e)));
25069
25070
  watch(r, (e) => {
25070
25071
  e || H();
@@ -25075,17 +25076,17 @@ var _hoisted_1$31 = ["src"], _hoisted_2$23 = {
25075
25076
  width: e.width,
25076
25077
  resolution: e.resolution
25077
25078
  };
25078
- }), a_ = () => {
25079
+ }), i_ = () => {
25079
25080
  r.value = !1;
25080
25081
  }, Z = () => {
25081
- n.maskClosable && a_();
25082
- }, s_ = (e) => {
25082
+ n.maskClosable && i_();
25083
+ }, o_ = (e) => {
25083
25084
  i.value = e, l(), z.value = "loading";
25084
25085
  }, $ = () => {
25085
- s_(i.value > 0 ? i.value - 1 : G.value.length - 1);
25086
- }, c_ = () => {
25087
- s_(i.value < G.value.length - 1 ? i.value + 1 : 0);
25088
- }, u_ = () => {
25086
+ o_(i.value > 0 ? i.value - 1 : G.value.length - 1);
25087
+ }, s_ = () => {
25088
+ o_(i.value < G.value.length - 1 ? i.value + 1 : 0);
25089
+ }, l_ = () => {
25089
25090
  let e = K.value, r = e.downloadUrl || e.url;
25090
25091
  if (n.onDownload) {
25091
25092
  n.onDownload(r);
@@ -25093,16 +25094,16 @@ var _hoisted_1$31 = ["src"], _hoisted_2$23 = {
25093
25094
  }
25094
25095
  let i = document.createElement("a");
25095
25096
  i.href = r, i.download = e.name || r.split("/").pop() || "image", i.target = "_blank", document.body.appendChild(i), i.click(), document.body.removeChild(i);
25096
- }, d_ = () => {
25097
+ }, u_ = () => {
25097
25098
  z.value = "loaded";
25098
- }, f_ = () => {
25099
+ }, d_ = () => {
25099
25100
  z.value = "error";
25100
25101
  };
25101
25102
  return usePreviewKeyboard({
25102
25103
  visible: r,
25103
- onClose: a_,
25104
+ onClose: i_,
25104
25105
  onPrev: () => q.value && $(),
25105
- onNext: () => q.value && c_()
25106
+ onNext: () => q.value && s_()
25106
25107
  }), (n, d) => (openBlock(), createBlock(Teleport, { to: "body" }, [createVNode(Transition, { name: "ai-image-preview-fade" }, {
25107
25108
  default: withCtx(() => [r.value ? (openBlock(), createElementBlock("div", {
25108
25109
  key: 0,
@@ -25111,14 +25112,14 @@ var _hoisted_1$31 = ["src"], _hoisted_2$23 = {
25111
25112
  }, [
25112
25113
  createElementVNode("div", {
25113
25114
  class: "ai-image-preview-close",
25114
- onClick: a_
25115
+ onClick: i_
25115
25116
  }, [createVNode(unref(PreviewCloseIcon), { class: "ai-image-preview-close-icon" })]),
25116
25117
  q.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createElementVNode("div", {
25117
25118
  class: "ai-image-preview-arrow ai-image-preview-arrow-left",
25118
25119
  onClick: $
25119
25120
  }, [createVNode(unref(ArrowLeftIcon), { class: "ai-image-preview-arrow-icon" })]), createElementVNode("div", {
25120
25121
  class: "ai-image-preview-arrow ai-image-preview-arrow-right",
25121
- onClick: c_
25122
+ onClick: s_
25122
25123
  }, [createVNode(unref(ArrowRightPreviewIcon), { class: "ai-image-preview-arrow-icon" })])], 64)) : createCommentVNode("v-if", !0),
25123
25124
  createElementVNode("div", {
25124
25125
  class: "ai-image-preview-body",
@@ -25131,8 +25132,8 @@ var _hoisted_1$31 = ["src"], _hoisted_2$23 = {
25131
25132
  draggable: "false",
25132
25133
  src: K.value.url,
25133
25134
  style: normalizeStyle(unref(a)),
25134
- onError: f_,
25135
- onLoad: d_
25135
+ onError: d_,
25136
+ onLoad: u_
25136
25137
  }, null, 44, _hoisted_1$31)),
25137
25138
  z.value === "error" ? (openBlock(), createElementBlock("div", _hoisted_2$23, [createVNode(unref(ImageBrokenIcon), { class: "ai-image-preview-error-icon" }), createElementVNode("p", _hoisted_3$18, toDisplayString(unref(t$1)("抱歉,图片加载失败,可尝试重新加载")), 1)])) : createCommentVNode("v-if", !0),
25138
25139
  z.value === "loading" ? (openBlock(), createElementBlock("div", _hoisted_4$17, [K.value.thumbnailUrl ? (openBlock(), createElementBlock("img", {
@@ -25149,7 +25150,7 @@ var _hoisted_1$31 = ["src"], _hoisted_2$23 = {
25149
25150
  "is-multiple": q.value,
25150
25151
  "show-info": e.showInfo,
25151
25152
  total: G.value.length,
25152
- onDownload: u_,
25153
+ onDownload: l_,
25153
25154
  onReset: unref(l),
25154
25155
  onRotate: unref(j),
25155
25156
  onZoomIn: unref(m),
@@ -25394,7 +25395,7 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25394
25395
  set(e) {
25395
25396
  s("update:modelValue", e, e?.flat()?.filter((e) => e.type === "tag")?.map((e) => l.resources?.find((n) => (n.id === e.data.value || n.name === e.data.value) && n.type === e.data.type) || null)?.filter((e) => !!e) || []), n();
25396
25397
  }
25397
- })), d = shallowRef("slash"), m = shallowRef(""), E = shallowRef([]), I = shallowRef([]), L, z, B = document.body, { commandSelection: H, GetCursorPosition: i_ } = useCommandSelection(), G = () => {
25398
+ })), d = shallowRef("slash"), m = shallowRef(""), E = shallowRef([]), I = shallowRef([]), L, z, B = document.body, { commandSelection: H, GetCursorPosition: r_ } = useCommandSelection(), G = () => {
25398
25399
  setTimeout(() => {
25399
25400
  let e = J();
25400
25401
  m.value = e.query || "", e.isActive ? (a.value?.setProps({ getReferenceClientRect: () => ({
@@ -25439,8 +25440,8 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25439
25440
  } catch {
25440
25441
  return e;
25441
25442
  }
25442
- }, Z = (e, n) => e.reduce((e, r, i) => i >= n ? e : (r.type === "text" && (e += r.text?.length || 0), r.type === "tag" && (e += 1), e), 0), o_ = (e) => {
25443
- L.command(i_);
25443
+ }, Z = (e, n) => e.reduce((e, r, i) => i >= n ? e : (r.type === "text" && (e += r.text?.length || 0), r.type === "tag" && (e += 1), e), 0), a_ = (e) => {
25444
+ L.command(r_);
25444
25445
  let { column: n, line: r } = H.value;
25445
25446
  L.command(DeleteTag, [r, n - m.value.length - 1], [r, n]), L.command(InsertTag, [r, n], e), L.command(InsertText, [r, n + m.value.length + 1 + 1], " "), a.value?.hide(), Q();
25446
25447
  }, Q = () => {
@@ -25455,12 +25456,12 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25455
25456
  let e = l.resources?.filter((e) => !u.value?.some((n) => n.some((n) => n.type === "tag" && n.data.value === e.id && n.data.type === e.type)));
25456
25457
  m.value ? (E.value = e.filter((e) => e.name.toLowerCase().includes(m.value.toLowerCase())), I.value = l.prompts.filter((e) => e.toLowerCase().includes(m.value.toLowerCase()))) : (E.value = e, I.value = l.prompts), !E.value.length && !I.value.length && a.value?.hide();
25457
25458
  });
25458
- let u_ = (e, n, r, i) => {
25459
+ let l_ = (e, n, r, i) => {
25459
25460
  if (n.type === "tag") {
25460
25461
  let n = Z(e, r);
25461
25462
  L.command(DeleteTag, [i, n], [i, n + 1]);
25462
25463
  }
25463
- }, d_ = (e) => {
25464
+ }, u_ = (e) => {
25464
25465
  let n = e.clipboardData?.items;
25465
25466
  if (!n) return;
25466
25467
  let r = [];
@@ -25469,7 +25470,7 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25469
25470
  n && r.push(n);
25470
25471
  }
25471
25472
  r.length > 0 && (e.preventDefault(), console.log("handlePaste files", r), s("upload", r));
25472
- }, f_ = () => {
25473
+ }, d_ = () => {
25473
25474
  z?.(), L = createEditor({
25474
25475
  doc: u.value,
25475
25476
  schema: tagSchema,
@@ -25478,11 +25479,11 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25478
25479
  },
25479
25480
  onKeyDown: (e) => K(e)
25480
25481
  }), z = L.input(i.value);
25481
- }, p_ = () => d.value === "slash" ? E.value.length < 1 ? !1 : void 0 : I.value.length < 1 ? !1 : void 0;
25482
+ }, f_ = () => d.value === "slash" ? E.value.length < 1 ? !1 : void 0 : I.value.length < 1 ? !1 : void 0;
25482
25483
  return onMounted(() => {
25483
- f_(), i.value?.addEventListener("paste", d_);
25484
+ d_(), i.value?.addEventListener("paste", u_);
25484
25485
  }), onUnmounted(() => {
25485
- L.command(ReplaceAll, ""), z?.(), i.value?.removeEventListener("paste", d_);
25486
+ L.command(ReplaceAll, ""), z?.(), i.value?.removeEventListener("paste", u_);
25486
25487
  }), n({
25487
25488
  cleanup: () => {
25488
25489
  L.command(ReplaceAll, "");
@@ -25501,7 +25502,7 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25501
25502
  "data-tag-type": r.data.type
25502
25503
  }, [createTextVNode(toDisplayString(r.data.label) + " ", 1), createVNode(unref(RemoveIcon), {
25503
25504
  class: "mention-tag-remove-icon",
25504
- onClick: (a) => u_(e, r, i, n)
25505
+ onClick: (a) => l_(e, r, i, n)
25505
25506
  }, null, 8, ["onClick"])], 10, _hoisted_4$14)) : createCommentVNode("v-if", !0)], 64))), 128)) : (openBlock(), createElementBlock("br", _hoisted_5$8))]))), 128)) : createCommentVNode("v-if", !0)], 8, _hoisted_2$20), createVNode(unref(Tippy), {
25506
25507
  ref_key: "tippyRef",
25507
25508
  ref: a,
@@ -25516,11 +25517,11 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25516
25517
  "trigger-target": i.value,
25517
25518
  "z-index": unref(EDITOR_MENU_Z_INDEX),
25518
25519
  onHidden: q,
25519
- onShow: p_
25520
+ onShow: f_
25520
25521
  }, {
25521
25522
  content: withCtx(() => [d.value === "slash" ? (openBlock(), createBlock(ai_slash_menu_default, {
25522
25523
  key: 0,
25523
- "on-select": o_,
25524
+ "on-select": a_,
25524
25525
  "resource-list": E.value
25525
25526
  }, null, 8, ["resource-list"])) : d.value === "prompt" ? (openBlock(), createBlock(ai_prompt_list_default, {
25526
25527
  key: 1,
@@ -25578,7 +25579,7 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25578
25579
  onSendMessage: {},
25579
25580
  onStopSending: {},
25580
25581
  onUpload: {},
25581
- placeholder: { default: isEn ? "Input \"/\" to trigger prompt\nInput \"@\" to trigger tool\nUse Shift + Enter to enter a new line" : "输入 “/”唤出 Prompt\n输入“@”唤出工具\n通过 Shift + Enter 进行换行输入" },
25582
+ placeholder: { default: isEn ? "Input \"/\" to trigger prompt\nInput \"@\" to trigger tool and MCP\nUse Shift + Enter to enter a new line" : "输入 “/”唤出 Prompt\n输入“@”唤出 工具 和 MCP\n通过 Shift + Enter 进行换行输入" },
25582
25583
  prompts: { default: () => [] },
25583
25584
  resources: { default: () => [] },
25584
25585
  shortcutId: {},
@@ -25601,7 +25602,7 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25601
25602
  "update:modelValue"
25602
25603
  ], ["update:cite"]),
25603
25604
  setup(e, { expose: n, emit: r }) {
25604
- useCssVars((e) => ({ v7948c92e: unref(CHAT_Z_INDEX) }));
25605
+ useCssVars((e) => ({ v2ada5094: unref(CHAT_Z_INDEX) }));
25605
25606
  let i = useTemplateRef("aiSlashInputRef"), a = useTemplateRef("filesRef"), o = useModel(e, "cite"), s = shallowRef(200), l = e, u = r, m = ref(l.defaultUploadFiles || []), E = computed(() => l.shortcuts?.find((e) => e.id === l.shortcutId)), O = computed(() => l.modelValue?.length < 1 || Array.isArray(l.modelValue) && !docToString(l.modelValue).trim() ? MessageStatus.Disabled : l.messageStatus);
25606
25607
  watchPostEffect(() => {
25607
25608
  let e = l.inputMaxHeight || 200;
@@ -25642,7 +25643,7 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25642
25643
  o.value = "";
25643
25644
  }, H = (e) => {
25644
25645
  u("selectShortcut", e);
25645
- }, i_ = () => {
25646
+ }, r_ = () => {
25646
25647
  u("deleteShortcut");
25647
25648
  }, G = (e) => `${e.name}_${e.size}_${e.lastModified}`, K = async (e) => {
25648
25649
  if (!l.supportUpload) return;
@@ -25732,7 +25733,7 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25732
25733
  class: "selected-shortcut-btn",
25733
25734
  shortcut: E.value
25734
25735
  }, {
25735
- append: withCtx(() => [createVNode(unref(CloseIcon), { onClick: i_ })]),
25736
+ append: withCtx(() => [createVNode(unref(CloseIcon), { onClick: r_ })]),
25736
25737
  _: 1
25737
25738
  }, 8, ["shortcut"])) : createCommentVNode("v-if", !0)])
25738
25739
  ]),
@@ -26401,7 +26402,7 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
26401
26402
  await n.onAction?.(e);
26402
26403
  }, H = async () => {
26403
26404
  await s.value?.triggerSendMessage?.(), i.value = !1;
26404
- }, i_ = () => {
26405
+ }, r_ = () => {
26405
26406
  i.value = !1;
26406
26407
  }, G = () => {
26407
26408
  i.value = !1;
@@ -26433,7 +26434,7 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
26433
26434
  }, {
26434
26435
  "send-icon": withCtx(() => [createElementVNode("div", _hoisted_4$4, [createVNode(unref(Button), {
26435
26436
  size: "small",
26436
- onClick: i_
26437
+ onClick: r_
26437
26438
  }, {
26438
26439
  default: withCtx(() => [createTextVNode(toDisplayString(unref(t$1)("取消")), 1)]),
26439
26440
  _: 1
@@ -27171,7 +27172,7 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
27171
27172
  onSessionDelete: (e) => a("history-session-delete", e),
27172
27173
  onSessionRename: (e, n) => a("history-session-rename", e, n)
27173
27174
  }));
27174
- }, B = computed(() => i.hasPermission ? i.enableChatSession ? i.title || `${i.agentName || ""}-${i.sessionName || ""}` : i.agentName : t("无智能体使用权限")), H = computed(() => i.isCompressionHeight ? "bkai-morenchicun" : "bkai-yasuo"), i_ = computed(() => i.isCompressionHeight ? t("恢复默认尺寸") : t("缩小高度")), G = computed(() => i.hasPermission), K = (e) => G.value ? e : t("暂无使用权限"), q = () => ({ cursor: G.value ? "pointer" : "not-allowed" }), J = computed(() => {
27175
+ }, B = computed(() => i.hasPermission ? i.enableChatSession ? i.title || `${i.agentName || ""}-${i.sessionName || ""}` : i.agentName : t("无智能体使用权限")), H = computed(() => i.isCompressionHeight ? "bkai-morenchicun" : "bkai-yasuo"), r_ = computed(() => i.isCompressionHeight ? t("恢复默认尺寸") : t("缩小高度")), G = computed(() => i.hasPermission), K = (e) => G.value ? e : t("暂无使用权限"), q = () => ({ cursor: G.value ? "pointer" : "not-allowed" }), J = computed(() => {
27175
27176
  let e = !i.hasSessionContents, n = e ? "disabled" : "", r = e ? `data-tippy-content="${t("请先发起会话")}"` : "", a = "";
27176
27177
  return i.dropdownMenuConfig?.showRename && (a += `
27177
27178
  <div class="tippy-menu-item" data-action="rename">
@@ -27205,16 +27206,16 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
27205
27206
  a("new-chat");
27206
27207
  }, $ = (e) => {
27207
27208
  e.stopPropagation(), i.sessionBusinessManager ? (L || z(), L && L.handleTriggerClick(e)) : a("history-click", e);
27208
- }, c_ = () => {
27209
+ }, s_ = () => {
27209
27210
  a("help-click");
27210
- }, u_ = (e) => {
27211
+ }, l_ = (e) => {
27211
27212
  e.stopPropagation(), L && L.isVisible() && L.hide(), j && (j.state.isVisible ? j.hide() : j.show());
27212
- }, d_ = (e) => {
27213
+ }, u_ = (e) => {
27213
27214
  e.stopPropagation(), e.preventDefault();
27214
27215
  let n = e.currentTarget, r = n.dataset.action;
27215
27216
  if (!n.classList.contains("disabled")) switch (j && j.hide(), r) {
27216
27217
  case "rename":
27217
- p_();
27218
+ f_();
27218
27219
  break;
27219
27220
  case "auto-generate":
27220
27221
  a("auto-generate-name");
@@ -27223,9 +27224,9 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
27223
27224
  a("share");
27224
27225
  break;
27225
27226
  }
27226
- }, p_ = () => {
27227
- document.removeEventListener("click", __), g.value = i.sessionName || "", m.value = !0, setTimeout(() => {
27228
- document.addEventListener("click", __);
27227
+ }, f_ = () => {
27228
+ document.removeEventListener("click", g_), g.value = i.sessionName || "", m.value = !0, setTimeout(() => {
27229
+ document.addEventListener("click", g_);
27229
27230
  }, 100), setTimeout(() => {
27230
27231
  if (E.value) try {
27231
27232
  let e = E.value;
@@ -27236,22 +27237,22 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
27236
27237
  console.warn("Failed to focus rename input:", e);
27237
27238
  }
27238
27239
  }, 100);
27239
- }, m_ = () => {
27240
+ }, p_ = () => {
27240
27241
  let e = g.value.trim();
27241
27242
  if (!e) {
27242
- h_();
27243
+ m_();
27243
27244
  return;
27244
27245
  }
27245
27246
  a("rename", e), m.value = !1, g.value = "";
27246
- }, h_ = () => {
27247
+ }, m_ = () => {
27247
27248
  m.value = !1, g.value = "";
27248
- }, g_ = (e, n) => {
27249
- g.value = e, n.key === "Enter" ? m_() : n.key === "Escape" && h_();
27250
- }, __ = (e) => {
27249
+ }, h_ = (e, n) => {
27250
+ g.value = e, n.key === "Enter" ? p_() : n.key === "Escape" && m_();
27251
+ }, g_ = (e) => {
27251
27252
  if (!m.value) return;
27252
27253
  let n = e.target, r = document.querySelector(".rename-tooltip");
27253
- r && !r.contains(n) && h_();
27254
- }, y_ = async () => {
27254
+ r && !r.contains(n) && m_();
27255
+ }, v_ = async () => {
27255
27256
  if (!u.value) return;
27256
27257
  let e = (await import("tippy.js")).default;
27257
27258
  j &&= (j.destroy(), null), j = e(u.value, {
@@ -27269,7 +27270,7 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
27269
27270
  let { default: e } = await import("tippy.js");
27270
27271
  document.querySelectorAll(".tippy-menu-item").forEach((n) => {
27271
27272
  let r = n;
27272
- r.addEventListener("click", d_);
27273
+ r.addEventListener("click", u_);
27273
27274
  let i = r.getAttribute("data-tippy-content");
27274
27275
  if (i && !I.has(r)) {
27275
27276
  let n = e(r, {
@@ -27288,7 +27289,7 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
27288
27289
  onHide: () => {
27289
27290
  document.querySelectorAll(".tippy-menu-item").forEach((e) => {
27290
27291
  let n = e;
27291
- n.removeEventListener("click", d_);
27292
+ n.removeEventListener("click", u_);
27292
27293
  let r = I.get(n);
27293
27294
  r && (r.destroy(), I.delete(n));
27294
27295
  });
@@ -27298,11 +27299,11 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
27298
27299
  return watch(() => [i.isCompressionHeight, i.hasSessionContents], () => {
27299
27300
  j && j.setContent(J.value);
27300
27301
  }), onMounted(() => {
27301
- y_(), i.sessionBusinessManager && z(), document.addEventListener("click", __);
27302
+ v_(), i.sessionBusinessManager && z(), document.addEventListener("click", g_);
27302
27303
  }), onBeforeUnmount(() => {
27303
27304
  j &&= (j.destroy(), null), I.forEach((e) => {
27304
27305
  e.destroy();
27305
- }), I.clear(), L &&= (L.destroy(), null), document.removeEventListener("click", __);
27306
+ }), I.clear(), L &&= (L.destroy(), null), document.removeEventListener("click", g_);
27306
27307
  }), n({
27307
27308
  headerRef: s,
27308
27309
  historyIconRef: l
@@ -27325,13 +27326,13 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
27325
27326
  "onUpdate:modelValue": r[0] ||= (e) => g.value = e,
27326
27327
  class: "rename-input",
27327
27328
  placeholder: unref(t)("请输入新的会话名称"),
27328
- onKeyup: g_
27329
+ onKeyup: h_
27329
27330
  }, null, 8, ["modelValue", "placeholder"]), createElementVNode("div", { class: "rename-buttons" }, [createElementVNode("i", {
27330
27331
  class: "bkai-icon bkai-check-1 rename-btn confirm-btn",
27331
- onClick: m_
27332
+ onClick: p_
27332
27333
  }), createElementVNode("i", {
27333
27334
  class: "bkai-icon bkai-close rename-btn cancel-btn",
27334
- onClick: h_
27335
+ onClick: m_
27335
27336
  })])])])) : createCommentVNode("v-if", !0)
27336
27337
  ], 2),
27337
27338
  i.showMoreIcon && G.value ? (openBlock(), createElementBlock("span", {
@@ -27339,7 +27340,7 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
27339
27340
  ref_key: "moreIconRef",
27340
27341
  ref: u,
27341
27342
  class: "bkai-icon bkai-more",
27342
- onClick: u_
27343
+ onClick: l_
27343
27344
  }, null, 512)) : createCommentVNode("v-if", !0)
27344
27345
  ]), createElementVNode("div", _hoisted_6$1, [
27345
27346
  createCommentVNode(" 新增会话按钮 "),
@@ -27375,7 +27376,7 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
27375
27376
  e.chatGroup?.enabled ? withDirectives((openBlock(), createElementBlock("i", {
27376
27377
  key: 2,
27377
27378
  class: "bkai-icon bkai-zhushou",
27378
- onClick: c_
27379
+ onClick: s_
27379
27380
  }, null, 512)), [[unref(o), {
27380
27381
  content: unref(t)("转人工"),
27381
27382
  boundary: "parent"
@@ -27385,7 +27386,7 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
27385
27386
  class: normalizeClass(["bkai-icon", H.value]),
27386
27387
  onClick: r[3] ||= (e) => a("toggle-compression")
27387
27388
  }, null, 2)), [[unref(o), {
27388
- content: i_.value,
27389
+ content: r_.value,
27389
27390
  boundary: "parent"
27390
27391
  }]]) : createCommentVNode("v-if", !0),
27391
27392
  withDirectives(createElementVNode("i", {
@@ -28219,7 +28220,7 @@ var UIStateManager = class {
28219
28220
  a("receive-text");
28220
28221
  },
28221
28222
  onDone: () => {
28222
- a("receive-end"), J_();
28223
+ a("receive-end"), q_();
28223
28224
  },
28224
28225
  onError: (e) => {
28225
28226
  a("error", e);
@@ -28233,9 +28234,9 @@ var UIStateManager = class {
28233
28234
  protocol: n
28234
28235
  });
28235
28236
  return n.injectMessageModule(r.message), r;
28236
- })(), B = computed(() => ((i.chatHelper || z)?.agent)?.isChatting?.value ? MessageStatus.Streaming : MessageStatus.Complete), H = computed(() => B.value === MessageStatus.Streaming ? MessageToolsStatus.Disabled : void 0), i_ = async (e, n) => {
28237
+ })(), B = computed(() => ((i.chatHelper || z)?.agent)?.isChatting?.value ? MessageStatus.Streaming : MessageStatus.Complete), H = computed(() => B.value === MessageStatus.Streaming ? MessageToolsStatus.Disabled : void 0), r_ = async (e, n) => {
28237
28238
  if (e.id === "cite") {
28238
- D_.value = n.filter((e) => e.role !== MessageRole$1.Reasoning).map((e) => typeof e.content == "string" ? e.content : JSON.stringify(e.content || "")).join("\n"), dv();
28239
+ E_.value = n.filter((e) => e.role !== MessageRole$1.Reasoning).map((e) => typeof e.content == "string" ? e.content : JSON.stringify(e.content || "")).join("\n"), uv();
28239
28240
  return;
28240
28241
  }
28241
28242
  if (e.id === "rebuild") {
@@ -28247,7 +28248,7 @@ var UIStateManager = class {
28247
28248
  return;
28248
28249
  }
28249
28250
  if (e.id === "share") {
28250
- g_ && (E.value = !0), a("request-share");
28251
+ h_ && (E.value = !0), a("request-share");
28251
28252
  return;
28252
28253
  }
28253
28254
  if (e.id === "like" || e.id === "unlike") {
@@ -28269,7 +28270,7 @@ var UIStateManager = class {
28269
28270
  console.error("[ChatBot] Cannot submit feedback: no active session");
28270
28271
  return;
28271
28272
  }
28272
- let s = findLastUserMessageIdBefore(C_?.messages.value || [], n[0]);
28273
+ let s = findLastUserMessageIdBefore(S_?.messages.value || [], n[0]);
28273
28274
  if (s === void 0) {
28274
28275
  console.error("[ChatBot] Cannot submit feedback: no user message found");
28275
28276
  return;
@@ -28287,12 +28288,12 @@ var UIStateManager = class {
28287
28288
  console.error("[ChatBot] Failed to submit feedback:", e), a("error", e);
28288
28289
  }
28289
28290
  }, K = async (e) => {
28290
- if (!C_ || !z) {
28291
+ if (!S_ || !z) {
28291
28292
  console.error("[ChatBot] Cannot delete messages: chatBusinessManager not initialized");
28292
28293
  return;
28293
28294
  }
28294
28295
  try {
28295
- let n = C_.messages.value, r = findLastUserMessageBefore(n, e[0]);
28296
+ let n = S_.messages.value, r = findLastUserMessageBefore(n, e[0]);
28296
28297
  if (!r) {
28297
28298
  console.error("[ChatBot] No user message found before AI messages");
28298
28299
  return;
@@ -28303,7 +28304,7 @@ var UIStateManager = class {
28303
28304
  console.error("[ChatBot] Failed to delete messages:", e), a("error", e);
28304
28305
  }
28305
28306
  }, Z = async (e) => {
28306
- if (!C_ || !z) {
28307
+ if (!S_ || !z) {
28307
28308
  console.error("[ChatBot] Cannot regenerate: chatBusinessManager not initialized");
28308
28309
  return;
28309
28310
  }
@@ -28313,21 +28314,21 @@ var UIStateManager = class {
28313
28314
  return;
28314
28315
  }
28315
28316
  try {
28316
- await C_.regenerateFromAIMessages(e, n), J_();
28317
+ await S_.regenerateFromAIMessages(e, n), q_();
28317
28318
  } catch (e) {
28318
28319
  console.error("[ChatBot] Failed to regenerate:", e), a("error", e);
28319
28320
  }
28320
28321
  }, $ = async (e, n) => {
28321
28322
  if (e.id === "delete") {
28322
- await p_(n);
28323
+ await f_(n);
28323
28324
  return;
28324
28325
  }
28325
28326
  if (e.id === "cite") {
28326
- D_.value = typeof n.content == "string" ? n.content : JSON.stringify(n.content || ""), dv();
28327
+ E_.value = typeof n.content == "string" ? n.content : JSON.stringify(n.content || ""), uv();
28327
28328
  return;
28328
28329
  }
28329
28330
  console.log("handleUserAction", e, n);
28330
- }, c_ = async (e, n, r) => {
28331
+ }, s_ = async (e, n, r) => {
28331
28332
  if (!z) {
28332
28333
  console.error("[ChatBot] Cannot edit message: chatHelper not initialized");
28333
28334
  return;
@@ -28343,12 +28344,12 @@ var UIStateManager = class {
28343
28344
  return;
28344
28345
  }
28345
28346
  try {
28346
- console.log("handleUserInputConfirm", o, i, n), await z.agent.resendMessage(String(o), i, n), J_();
28347
+ console.log("handleUserInputConfirm", o, i, n), await z.agent.resendMessage(String(o), i, n), q_();
28347
28348
  } catch (e) {
28348
28349
  console.error("[ChatBot] Failed to edit and resend message:", e), a("error", e);
28349
28350
  }
28350
- }, u_ = async (e, n) => {
28351
- if (!C_ || !z) {
28351
+ }, l_ = async (e, n) => {
28352
+ if (!S_ || !z) {
28352
28353
  console.error("[ChatBot] Cannot edit shortcut message: chatHelper not initialized");
28353
28354
  return;
28354
28355
  }
@@ -28363,26 +28364,26 @@ var UIStateManager = class {
28363
28364
  return;
28364
28365
  }
28365
28366
  try {
28366
- let a = d_(e);
28367
+ let a = u_(e);
28367
28368
  if (!a) {
28368
28369
  console.error("[ChatBot] Cannot edit shortcut message: shortcut not found");
28369
28370
  return;
28370
28371
  }
28371
- let o = ov(a, n), s = String(n.input ?? "");
28372
- await C_.resendMessageWithProperty(String(i), r, s, o), J_();
28372
+ let o = av(a, n), s = String(n.input ?? "");
28373
+ await S_.resendMessageWithProperty(String(i), r, s, o), q_();
28373
28374
  } catch (e) {
28374
28375
  console.error("[ChatBot] Failed to edit shortcut message:", e), a("error", e);
28375
28376
  }
28376
- }, d_ = (e) => {
28377
+ }, u_ = (e) => {
28377
28378
  let n = e.property?.extra;
28378
- return n?.shortcut ? n.shortcut : n?.command ? q_.value.find((e) => e.id === n.command) ?? null : null;
28379
- }, p_ = async (e) => {
28380
- if (!C_ || !z) {
28379
+ return n?.shortcut ? n.shortcut : n?.command ? K_.value.find((e) => e.id === n.command) ?? null : null;
28380
+ }, f_ = async (e) => {
28381
+ if (!S_ || !z) {
28381
28382
  console.error("[ChatBot] Cannot delete message: chatHelper not initialized");
28382
28383
  return;
28383
28384
  }
28384
28385
  try {
28385
- let n = C_.messages.value, r = n.findIndex((n) => n === e);
28386
+ let n = S_.messages.value, r = n.findIndex((n) => n === e);
28386
28387
  if (r === -1) {
28387
28388
  console.error("[ChatBot] User message not found in messages list");
28388
28389
  return;
@@ -28398,28 +28399,28 @@ var UIStateManager = class {
28398
28399
  } catch (e) {
28399
28400
  console.error("[ChatBot] Failed to delete user message:", e), a("error", e);
28400
28401
  }
28401
- }, m_ = async () => {
28402
+ }, p_ = async () => {
28402
28403
  ((i.chatHelper || z)?.agent)?.stopChat?.(z?.session.current?.value?.sessionCode ?? "");
28403
- }, g_ = !i.chatHelper, y_ = computed(() => g_ ? E.value : i.enableSelection), x_ = computed(() => g_ ? O.value : i.shareLoading), S_ = z ? new SessionBusinessManager(z.session, z.agent, null, {
28404
+ }, h_ = !i.chatHelper, v_ = computed(() => h_ ? E.value : i.enableSelection), b_ = computed(() => h_ ? O.value : i.shareLoading), x_ = z ? new SessionBusinessManager(z.session, z.agent, null, {
28404
28405
  enableChatSession: !0,
28405
28406
  autoSwitchToInitialSession: !!i.sessionCode,
28406
28407
  loadRecentSessionOnMount: i.autoLoad,
28407
28408
  initialSessionCode: i.sessionCode
28408
- }) : null, C_ = z ? new ChatBusinessManager(z.agent, z.message, z.session, null, {
28409
+ }) : null, S_ = z ? new ChatBusinessManager(z.agent, z.message, z.session, null, {
28409
28410
  openingRemark: i.helloText,
28410
28411
  predefinedQuestions: i.prompts,
28411
28412
  placeholder: i.placeholder
28412
- }) : null, w_ = new ShortcutManager(null, i.shortcuts || []), T_ = shallowRef([[]]), D_ = ref(""), O_ = shallowRef([]), k_ = (e, n) => {
28413
- T_.value = e, O_.value = n;
28414
- }, A_ = computed(() => C_?.messages.value ?? []), j_ = computed(() => C_?.isMessagesLoading.value ?? !1), M_ = computed(() => C_?.isGenerating.value ?? !1), N_ = computed(() => S_?.currentSession.value ?? null), P_ = computed(() => g_ && !j.value ? !1 : !j_.value && A_.value.length === 0), F_ = computed(() => z?.agent.info.value?.conversationSettings?.openingRemark || ""), I_ = computed(() => i.resources?.length ? i.resources : z?.agent.info.value?.resources ?? []), L_ = computed(() => i.prompts?.length ? i.prompts : z?.agent.info.value?.conversationSettings?.predefinedQuestions ?? []), R_ = computed(() => u.value?.supportUpload ? u.value.supportUpload.vision === !0 : z?.agent.info.value?.promptSetting?.supportUpload?.vision === !0), V_ = computed(() => ({
28413
+ }) : null, C_ = new ShortcutManager(null, i.shortcuts || []), w_ = shallowRef([[]]), E_ = ref(""), D_ = shallowRef([]), O_ = (e, n) => {
28414
+ w_.value = e, D_.value = n;
28415
+ }, k_ = computed(() => S_?.messages.value ?? []), A_ = computed(() => S_?.isMessagesLoading.value ?? !1), j_ = computed(() => S_?.isGenerating.value ?? !1), M_ = computed(() => x_?.currentSession.value ?? null), N_ = computed(() => h_ && !j.value ? !1 : !A_.value && k_.value.length === 0), P_ = computed(() => z?.agent.info.value?.conversationSettings?.openingRemark || ""), F_ = computed(() => i.resources?.length ? i.resources : z?.agent.info.value?.resources ?? []), I_ = computed(() => i.prompts?.length ? i.prompts : z?.agent.info.value?.conversationSettings?.predefinedQuestions ?? []), L_ = computed(() => u.value?.supportUpload ? u.value.supportUpload.vision === !0 : z?.agent.info.value?.promptSetting?.supportUpload?.vision === !0), B_ = computed(() => ({
28415
28416
  height: typeof i.height == "number" ? `${i.height}px` : i.height,
28416
28417
  maxWidth: typeof i.maxWidth == "number" ? `${i.maxWidth}px` : i.maxWidth
28417
- })), H_ = computed(() => w_.shortcuts.value), U_ = () => {
28418
- m.value = [], g_ && (E.value = !1), a("cancel-share");
28419
- }, W_ = async () => {
28418
+ })), V_ = computed(() => C_.shortcuts.value), H_ = () => {
28419
+ m.value = [], h_ && (E.value = !1), a("cancel-share");
28420
+ }, U_ = async () => {
28420
28421
  let e = m.value;
28421
- g_ && await G_(e), a("confirm-share", e);
28422
- }, G_ = async (e) => {
28422
+ h_ && await W_(e), a("confirm-share", e);
28423
+ }, W_ = async (e) => {
28423
28424
  if (!z || e.length === 0) return;
28424
28425
  let n = z.session.current?.value?.sessionCode;
28425
28426
  if (!n) {
@@ -28441,42 +28442,42 @@ var UIStateManager = class {
28441
28442
  } finally {
28442
28443
  O.value = !1, E.value = !1, m.value = [];
28443
28444
  }
28444
- }, K_ = (e) => {
28445
- e ? m.value = A_.value : m.value = [];
28446
- }, q_ = w_.effectiveShortcuts;
28445
+ }, G_ = (e) => {
28446
+ e ? m.value = k_.value : m.value = [];
28447
+ }, K_ = C_.effectiveShortcuts;
28447
28448
  watch(() => i.shortcuts, (e) => {
28448
- w_.setShortcuts(e || []);
28449
+ C_.setShortcuts(e || []);
28449
28450
  }, { immediate: !0 }), watch(() => z?.agent.info.value?.conversationSettings?.commands, (e) => {
28450
- e && w_.setAgentShortcuts(e);
28451
+ e && C_.setAgentShortcuts(e);
28451
28452
  }, { immediate: !0 });
28452
- let J_ = async () => {
28453
+ let q_ = async () => {
28453
28454
  await nextTick(), s.value && (s.value.scrollTop = s.value.scrollHeight);
28454
- }, X_ = async (e, n = {}) => {
28455
- if (!C_ || !z) throw Error("[ChatBot] Cannot send message: chatBusinessManager not initialized");
28455
+ }, Y_ = async (e, n = {}) => {
28456
+ if (!S_ || !z) throw Error("[ChatBot] Cannot send message: chatBusinessManager not initialized");
28456
28457
  let r = z.session.current?.value?.sessionCode;
28457
28458
  if (!r) throw Error("[ChatBot] Cannot send message: no active session");
28458
- T_.value = [[]], D_.value = "", O_.value = [], a("send-message", typeof e == "string" ? e : ""), await C_.sendMessage(e, r, n);
28459
- }, Q_ = async (e) => {
28459
+ w_.value = [[]], E_.value = "", D_.value = [], a("send-message", typeof e == "string" ? e : ""), await S_.sendMessage(e, r, n);
28460
+ }, Z_ = async (e) => {
28460
28461
  let n = z?.session.current?.value?.sessionCode;
28461
28462
  if (!n) throw Error("[ChatBot] Cannot upload: no active session");
28462
28463
  let r = await z.session.uploadFile(n, e);
28463
28464
  if (!r?.download_url) throw Error("[ChatBot] Upload failed: no download URL returned");
28464
28465
  return r;
28465
- }, tv = async (e, n) => {
28466
+ }, ev = async (e, n) => {
28466
28467
  try {
28467
28468
  let n = {};
28468
- D_.value && (n.cite = D_.value), u.value && (n.command = u.value.id), O_.value.length && (n.resources = O_.value), await X_(e, Object.keys(n).length ? { property: { extra: n } } : {});
28469
+ E_.value && (n.cite = E_.value), u.value && (n.command = u.value.id), D_.value.length && (n.resources = D_.value), await Y_(e, Object.keys(n).length ? { property: { extra: n } } : {});
28469
28470
  } catch (e) {
28470
28471
  console.error("Failed to send message:", e), a("error", e);
28471
28472
  }
28472
- }, nv = async () => {
28473
- cv();
28474
- }, rv = (e, n) => {
28475
- iv(e, n), a("shortcut-click", {
28473
+ }, tv = async () => {
28474
+ sv();
28475
+ }, nv = (e, n) => {
28476
+ rv(e, n), a("shortcut-click", {
28476
28477
  shortcut: e,
28477
28478
  source: "main"
28478
28479
  });
28479
- }, iv = (e, n) => {
28480
+ }, rv = (e, n) => {
28480
28481
  let r = e, i;
28481
28482
  if (i = r.enable_fill_back && r.fill_back_component_key ? r.fill_back_component_key : r.components?.find((e) => e.fillBack)?.key, i && n) {
28482
28483
  let e = r.components?.map((e) => e.key === i ? {
@@ -28498,9 +28499,9 @@ var UIStateManager = class {
28498
28499
  ...r,
28499
28500
  formModel: { ...r.formModel }
28500
28501
  };
28501
- }, av = () => {
28502
+ }, iv = () => {
28502
28503
  u.value = null;
28503
- }, ov = (e, n) => {
28504
+ }, av = (e, n) => {
28504
28505
  let r = e.components || [];
28505
28506
  return { extra: {
28506
28507
  cite: {
@@ -28520,42 +28521,42 @@ var UIStateManager = class {
28520
28521
  __value: n[e.key]
28521
28522
  }))
28522
28523
  } };
28523
- }, sv = async (e) => {
28524
+ }, ov = async (e) => {
28524
28525
  if (!u.value) {
28525
28526
  console.error("[ChatBot] No selected shortcut");
28526
28527
  return;
28527
28528
  }
28528
- let n = ov(u.value, e), r = u.value.name, i = u.value;
28529
- av();
28529
+ let n = av(u.value, e), r = u.value.name, i = u.value;
28530
+ iv();
28530
28531
  try {
28531
- await X_(r, { property: n });
28532
+ await Y_(r, { property: n });
28532
28533
  } catch (e) {
28533
28534
  u.value = i, console.error("[ChatBot] Failed to submit shortcut:", e), a("error", e);
28534
28535
  }
28535
- }, cv = () => {
28536
- if (!C_) {
28536
+ }, sv = () => {
28537
+ if (!S_) {
28537
28538
  console.error("[ChatBot] Cannot stop generation: chatBusinessManager not initialized");
28538
28539
  return;
28539
28540
  }
28540
- C_.stopGeneration(), a("stop");
28541
- }, lv = async (e) => {
28542
- if (!S_) {
28541
+ S_.stopGeneration(), a("stop");
28542
+ }, cv = async (e) => {
28543
+ if (!x_) {
28543
28544
  console.error("[ChatBot] Cannot switch session: sessionBusinessManager not initialized");
28544
28545
  return;
28545
28546
  }
28546
28547
  try {
28547
- await S_.switchSession(e), a("session-switched", S_.currentSession.value);
28548
+ await x_.switchSession(e), a("session-switched", x_.currentSession.value);
28548
28549
  } catch (e) {
28549
28550
  console.error("Failed to switch session:", e), a("error", e);
28550
28551
  }
28551
- }, uv = (e) => {
28552
- D_.value = e;
28553
- }, dv = () => {
28552
+ }, lv = (e) => {
28553
+ E_.value = e;
28554
+ }, uv = () => {
28554
28555
  l.value?.focus?.();
28555
28556
  };
28556
28557
  return onMounted(async () => {
28557
28558
  if (!(!z || I.value)) try {
28558
- if (g_) {
28559
+ if (h_) {
28559
28560
  if (await z.agent.getAgentInfo(), await z.session.getSessions(), i.sessionCode) await z.session.chooseSession(i.sessionCode);
28560
28561
  else if (z.session.list.value.length > 0) {
28561
28562
  let e = z.session.list.value[0];
@@ -28568,46 +28569,46 @@ var UIStateManager = class {
28568
28569
  console.error("Failed to initialize ChatBot:", e), I.value = e, a("error", e);
28569
28570
  }
28570
28571
  }), onBeforeUnmount(() => {
28571
- g_ && z && z.agent.stopChat(z.session.current?.value?.sessionCode ?? "");
28572
+ h_ && z && z.agent.stopChat(z.session.current?.value?.sessionCode ?? "");
28572
28573
  }), n({
28573
- sendMessage: (e) => tv(e, [[]]),
28574
- stopGeneration: cv,
28575
- switchSession: lv,
28576
- messages: A_,
28577
- currentSession: N_,
28578
- isGenerating: M_,
28574
+ sendMessage: (e) => ev(e, [[]]),
28575
+ stopGeneration: sv,
28576
+ switchSession: cv,
28577
+ messages: k_,
28578
+ currentSession: M_,
28579
+ isGenerating: j_,
28579
28580
  getChatHelper: () => z,
28580
- setCiteText: uv,
28581
- focusInput: dv,
28581
+ setCiteText: lv,
28582
+ focusInput: uv,
28582
28583
  selectShortcut: (e, n) => {
28583
- iv(e, n);
28584
+ rv(e, n);
28584
28585
  }
28585
28586
  }), (n, r) => (openBlock(), createElementBlock("div", {
28586
28587
  class: normalizeClass([
28587
28588
  "ai-chatbot",
28588
28589
  i.extCls,
28589
- { "welcome-state": P_.value }
28590
+ { "welcome-state": N_.value }
28590
28591
  ]),
28591
- style: normalizeStyle(V_.value)
28592
- }, [createCommentVNode(" 初始化错误提示 "), I.value ? (openBlock(), createElementBlock("div", _hoisted_1$2, [createElementVNode("span", null, toDisplayString(I.value.message), 1)])) : g_ && !j.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" 独立模式:初始化中(getAgentInfo → getSessions → chooseSession)统一展示 Loading "), createElementVNode("div", _hoisted_2$1, [createVNode(unref(Loading), {
28592
+ style: normalizeStyle(B_.value)
28593
+ }, [createCommentVNode(" 初始化错误提示 "), I.value ? (openBlock(), createElementBlock("div", _hoisted_1$2, [createElementVNode("span", null, toDisplayString(I.value.message), 1)])) : h_ && !j.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" 独立模式:初始化中(getAgentInfo → getSessions → chooseSession)统一展示 Loading "), createElementVNode("div", _hoisted_2$1, [createVNode(unref(Loading), {
28593
28594
  mode: "spin",
28594
28595
  size: "small",
28595
28596
  theme: "primary"
28596
28597
  })])], 2112)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
28597
28598
  createCommentVNode(" 内容区:欢迎状态 "),
28598
- P_.value ? (openBlock(), createElementBlock("div", _hoisted_3, [createElementVNode("div", _hoisted_4, [
28599
+ N_.value ? (openBlock(), createElementBlock("div", _hoisted_3, [createElementVNode("div", _hoisted_4, [
28599
28600
  r[2] ||= createElementVNode("img", {
28600
28601
  alt: "ai-blueking",
28601
28602
  class: "welcome-banner",
28602
28603
  src: "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='309px'%20height='93px'%20viewBox='0%200%20309%2093'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eAI%20小鲸%3c/title%3e%3cdefs%3e%3clinearGradient%20x1='45.02491%25'%20y1='35.5927467%25'%20x2='99.2803929%25'%20y2='81.0358394%25'%20id='linearGradient-1'%3e%3cstop%20stop-color='%23235DFA'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23EB8CEC'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='50%25'%20y1='0%25'%20x2='50%25'%20y2='100%25'%20id='linearGradient-2'%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0.885701426'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0.29'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='50%25'%20y1='0%25'%20x2='50%25'%20y2='100%25'%20id='linearGradient-3'%3e%3cstop%20stop-color='%231562FC'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23EB8CEC'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='50%25'%20y1='95.0902604%25'%20x2='35.112422%25'%20y2='19.6450217%25'%20id='linearGradient-4'%3e%3cstop%20stop-color='%23DC63FE'%20offset='0.0150240385%25'%3e%3c/stop%3e%3cstop%20stop-color='%23235DFA'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='46.6072083%25'%20y1='95.8855311%25'%20x2='46.6072083%25'%20y2='50%25'%20id='linearGradient-5'%3e%3cstop%20stop-color='%23B962FD'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23565FFB'%20offset='99.984976%25'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='50%25'%20y1='0%25'%20x2='50%25'%20y2='100%25'%20id='linearGradient-6'%3e%3cstop%20stop-color='%23235DFA'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23A826E2'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='50%25'%20y1='-38.6691405%25'%20x2='50%25'%20y2='100%25'%20id='linearGradient-7'%3e%3cstop%20stop-color='%23235DFA'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%239F7BF1'%20stop-opacity='0.15'%20offset='62.335824%25'%3e%3c/stop%3e%3cstop%20stop-color='%23EB8CEC'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3cg%20id='页面-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='AI--小鲸'%20transform='translate(-1710,%20-3457)'%3e%3cg%20id='聊天窗/默认页'%20transform='translate(1644,%203324)'%3e%3cg%20id='AI-小鲸'%20transform='translate(66,%20133.2974)'%3e%3cg%20transform='translate(124.4167,%20-0)'%20id='编组'%3e%3cg%20transform='translate(0,%200)'%3e%3cpath%20d='M28.3965776,12.9425679%20C38.3377031,12.9425679%2046.3965776,21.0014424%2046.3965776,30.9425679%20L46.3969075,48.6505618%20C51.2162571,49.132982%2054.5842089,50.4998157%2054.5842089,53.8408323%20C54.5842089,53.8444226%2054.5842089,53.8477257%2054.5824622,53.8507588%20L54.5702354,53.8590653%20C54.5370482,53.8709895%2054.4250414,53.8772107%2054.0470184,53.8795761%20L53.8473221,53.8804155%20C53.8227592,53.8804783%2053.7973775,53.8805312%2053.7711498,53.8805746%20L53.4140599,53.8806511%20C53.3806271,53.8806219%2053.3462391,53.8805842%2053.3108685,53.8805382%20L52.8375142,53.8796076%20C51.6610285,53.8767057%2049.6921211,53.8685916%2046.3970568,53.8605313%20L46.3965776,53.8807246%20L23.4584209,53.8807246%20C14.9044209,53.8807246%207.74404265,47.9139206%205.91235374,39.9153803%20C2.4976649,38.935189%200,35.8013205%200,32.0869334%20L1.43000256,32.0866983%20C1.58407741,32.0866469%201.73656386,32.0865873%201.88747828,32.0865198%20L3.20370552,32.0857063%20C4.00314289,32.0850715%204.75405903,32.0842107%205.4593989,32.0831725%20L5.45842089,30.9425679%20C5.45842089,21.0014424%2013.5172954,12.9425679%2023.4584209,12.9425679%20L28.3965776,12.9425679%20Z'%20id='形状结合'%20fill='url(%23linearGradient-1)'%3e%3c/path%3e%3crect%20id='矩形'%20fill='url(%23linearGradient-2)'%20x='10.9168418'%20y='18.4009888'%20width='30.0213149'%20height='30.0213149'%20rx='12'%3e%3c/rect%3e%3crect%20id='矩形'%20fill='url(%23linearGradient-3)'%20x='49.125788'%20y='21.1301993'%20width='5.45842089'%20height='24.562894'%20rx='2'%3e%3c/rect%3e%3cpath%20d='M51.8123687,2.72921045%20C51.8123687,6.90327561%2054.9358287,10.3478176%2058.9729609,10.8530485%20L60,10.9168418%20C55.8259348,10.9168418%2052.3813929,14.0403018%2051.8761619,18.077434%20L51.8123687,19.1044731%20C51.8123687,14.930408%2048.6889086,11.485866%2044.6517764,10.9806351%20L43.6247373,10.9168418%20C47.7988025,10.9168418%2051.2433445,7.79338174%2051.7485754,3.75624952%20L51.8123687,2.72921045%20Z'%20id='星形'%20fill='url(%23linearGradient-4)'%20fill-rule='nonzero'%3e%3c/path%3e%3cpath%20d='M40.8955269,-1.43884904e-13%20C40.8955269,2.78271011%2042.9778336,5.07907143%2045.6692551,5.41589204%20L46.3539478,5.45842089%20C43.5712377,5.45842089%2041.2748763,7.54072759%2040.9380557,10.2321491%20L40.8955269,10.9168418%20C40.8955269,8.13413168%2038.8132202,5.83777036%2036.1217987,5.50094974%20L35.437106,5.45842089%20C38.2198161,5.45842089%2040.5161774,3.3761142%2040.852998,0.684692719%20L40.8955269,-1.43884904e-13%20Z'%20id='星形'%20fill='url(%23linearGradient-5)'%20fill-rule='nonzero'%3e%3c/path%3e%3cpath%20d='M44.4235306,12.0484656%20C44.4235306,13.4398207%2045.464684,14.5880013%2046.8103947,14.7564116%20L47.1527411,14.7776761%20C45.761386,14.7776761%2044.6132054,15.8188294%2044.4447951,17.1645402%20L44.4235306,17.5068865%20C44.4235306,16.1155315%2043.3823773,14.9673508%2042.0366665,14.7989405%20L41.6943202,14.7776761%20C43.0856752,14.7776761%2044.2338559,13.7365227%2044.4022662,12.390812%20L44.4235306,12.0484656%20Z'%20id='星形'%20fill='%238860FC'%20fill-rule='nonzero'%3e%3c/path%3e%3crect%20id='矩形'%20fill='%2316204D'%20x='17.7398679'%20y='29.3178306'%20width='5.45842089'%20height='8.18763134'%20rx='2'%3e%3c/rect%3e%3crect%20id='矩形备份'%20fill='%2316204D'%20x='28.6567097'%20y='29.3178306'%20width='5.45842089'%20height='8.18763134'%20rx='2'%3e%3c/rect%3e%3cpath%20d='M33.2681489,12.9425679%20C32.5347773,9.30362068%2031.08981,7.48414704%2028.9332468,7.48414704%20C25.698402,7.48414704%2025.7333802,11.8081925%2028.9332468,11.4257275%20C30.6212196,11.223972%2031.7656965,11.7295855%2032.3666775,12.9425679%20L33.2681489,12.9425679%20Z'%20id='路径-7'%20fill='url(%23linearGradient-6)'%20transform='translate(29.8942,%2010.2134)%20scale(-1,%201)%20translate(-29.8942,%20-10.2134)'%3e%3c/path%3e%3cpath%20d='M26.5202122,12.9425679%20C25.7868406,9.30362068%2024.3418733,7.48414704%2022.1853101,7.48414704%20C18.9504653,7.48414704%2018.9854435,11.8081925%2022.1853101,11.4257275%20C23.8732829,11.223972%2025.0177598,11.7295855%2025.6187408,12.9425679%20L26.5202122,12.9425679%20Z'%20id='路径-7'%20fill='url(%23linearGradient-6)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3cpath%20d='M309,81.279814%20C309,66.0493667%20239.827994,53.7026496%20154.5,53.7026496%20C69.1720062,53.7026496%200,66.0493667%200,81.279814%20C0,96.5102614%20309,96.5102614%20309,81.279814%20Z'%20id='椭圆形'%20fill='url(%23linearGradient-7)'%20opacity='0.22710455'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e"
28603
28604
  }, null, -1),
28604
28605
  r[3] ||= createElementVNode("h2", { class: "welcome-title" }, "你好,我是小鲸", -1),
28605
- F_.value ? (openBlock(), createElementBlock("div", _hoisted_5, [createVNode(unref(content_render_default), { content: F_.value }, null, 8, ["content"])])) : createCommentVNode("v-if", !0)
28606
+ P_.value ? (openBlock(), createElementBlock("div", _hoisted_5, [createVNode(unref(content_render_default), { content: P_.value }, null, 8, ["content"])])) : createCommentVNode("v-if", !0)
28606
28607
  ])])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" 内容区:消息列表 "), createElementVNode("div", {
28607
28608
  ref_key: "messagesContainerRef",
28608
28609
  ref: s,
28609
28610
  class: "chatbot-messages"
28610
- }, [j_.value ? (openBlock(), createElementBlock("div", _hoisted_6, [createVNode(unref(Loading), {
28611
+ }, [A_.value ? (openBlock(), createElementBlock("div", _hoisted_6, [createVNode(unref(Loading), {
28611
28612
  mode: "spin",
28612
28613
  size: "small",
28613
28614
  theme: "primary"
@@ -28615,17 +28616,17 @@ var UIStateManager = class {
28615
28616
  key: 1,
28616
28617
  "selected-messages": m.value,
28617
28618
  "onUpdate:selectedMessages": r[0] ||= (e) => m.value = e,
28618
- "enable-selection": y_.value,
28619
+ "enable-selection": v_.value,
28619
28620
  "message-status": B.value,
28620
28621
  "message-tools-status": H.value,
28621
28622
  "message-tools-tippy-options": i.messageToolsTippyOptions,
28622
- messages: A_.value,
28623
- "on-agent-action": i_,
28623
+ messages: k_.value,
28624
+ "on-agent-action": r_,
28624
28625
  "on-agent-feedback": G,
28625
28626
  "on-user-action": $,
28626
- "on-user-input-confirm": c_,
28627
- "on-user-shortcut-confirm": u_,
28628
- onStopStreaming: m_
28627
+ "on-user-input-confirm": s_,
28628
+ "on-user-shortcut-confirm": l_,
28629
+ onStopStreaming: p_
28629
28630
  }, null, 8, [
28630
28631
  "selected-messages",
28631
28632
  "enable-selection",
@@ -28635,41 +28636,41 @@ var UIStateManager = class {
28635
28636
  "messages"
28636
28637
  ]))], 512)], 2112)),
28637
28638
  createCommentVNode(" 统一底部区域 "),
28638
- !P_.value && y_.value ? (openBlock(), createBlock(selection_footer_default, {
28639
+ !N_.value && v_.value ? (openBlock(), createBlock(selection_footer_default, {
28639
28640
  key: 2,
28640
- "is-all-selected": m.value.length === A_.value.length,
28641
- loading: x_.value,
28641
+ "is-all-selected": m.value.length === k_.value.length,
28642
+ loading: b_.value,
28642
28643
  "selected-count": m.value.length,
28643
- onCancel: U_,
28644
- onConfirm: W_,
28645
- onToggleAll: K_
28644
+ onCancel: H_,
28645
+ onConfirm: U_,
28646
+ onToggleAll: G_
28646
28647
  }, null, 8, [
28647
28648
  "is-all-selected",
28648
28649
  "loading",
28649
28650
  "selected-count"
28650
28651
  ])) : (openBlock(), createElementBlock("div", _hoisted_7, [u.value?.components?.length ? (openBlock(), createBlock(unref(shortcut_render_default), mergeProps({ key: 0 }, u.value, {
28651
- onClose: av,
28652
- onSubmit: sv
28652
+ onClose: iv,
28653
+ onSubmit: ov
28653
28654
  }), null, 16)) : renderSlot(n.$slots, "input", { key: 1 }, () => [createVNode(unref(chat_input_default), {
28654
28655
  ref_key: "chatInputRef",
28655
28656
  ref: l,
28656
- cite: D_.value,
28657
- "onUpdate:cite": r[1] ||= (e) => D_.value = e,
28657
+ cite: E_.value,
28658
+ "onUpdate:cite": r[1] ||= (e) => E_.value = e,
28658
28659
  "message-status": B.value,
28659
- "model-value": T_.value,
28660
- "on-send-message": tv,
28661
- "on-stop-sending": nv,
28662
- "on-upload": Q_,
28660
+ "model-value": w_.value,
28661
+ "on-send-message": ev,
28662
+ "on-stop-sending": tv,
28663
+ "on-upload": Z_,
28663
28664
  placeholder: i.placeholder,
28664
- prompts: L_.value,
28665
- resources: I_.value,
28665
+ prompts: I_.value,
28666
+ resources: F_.value,
28666
28667
  "shortcut-id": u.value?.id,
28667
- shortcuts: H_.value,
28668
- "support-upload": R_.value,
28668
+ shortcuts: V_.value,
28669
+ "support-upload": L_.value,
28669
28670
  "tippy-options": e.messageToolsTippyOptions,
28670
- onDeleteShortcut: av,
28671
- onSelectShortcut: rv,
28672
- "onUpdate:modelValue": k_
28671
+ onDeleteShortcut: iv,
28672
+ onSelectShortcut: nv,
28673
+ "onUpdate:modelValue": O_
28673
28674
  }, null, 8, [
28674
28675
  "cite",
28675
28676
  "message-status",
@@ -29455,7 +29456,7 @@ function useDraggable(e = {}, n) {
29455
29456
  v.value = e, _.value = r, j.value = e - (window.innerWidth - T.value), n?.onDragStop?.(I());
29456
29457
  }, H = (e, r, i, a) => {
29457
29458
  v.value = e, _.value = r, T.value = Math.min(i, O.value), E.value = a, n?.onResizeStop?.(I());
29458
- }, i_ = () => {
29459
+ }, r_ = () => {
29459
29460
  O.value = Math.max(window.innerWidth * (o / 100), T.value), nextTick(() => {
29460
29461
  if (k.value) v.value = window.innerWidth - T.value - l, _.value = window.innerHeight - s - l;
29461
29462
  else {
@@ -29476,9 +29477,9 @@ function useDraggable(e = {}, n) {
29476
29477
  T.value = Math.max(i, Math.min(e, O.value)), E.value = Math.max(a, n);
29477
29478
  };
29478
29479
  return onMounted(() => {
29479
- window.addEventListener("resize", i_);
29480
+ window.addEventListener("resize", r_);
29480
29481
  }), onBeforeUnmount(() => {
29481
- window.removeEventListener("resize", i_);
29482
+ window.removeEventListener("resize", r_);
29482
29483
  }), {
29483
29484
  minWidth: i,
29484
29485
  minHeight: a,
@@ -29537,7 +29538,7 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29537
29538
  "compression-change"
29538
29539
  ],
29539
29540
  setup(e, { expose: n, emit: r }) {
29540
- let i = e, a = r, o = ref(!1), { minWidth: s, minHeight: l, maxWidth: u, top: m, left: _, width: v, height: E, isCompressed: O, handleDragging: k, handleResizing: j, handleDragStop: I, handleResizeStop: L, toggleCompression: z, updatePosition: B, updateSize: H, updatePositionAndSize: i_ } = useDraggable({
29541
+ let i = e, a = r, o = ref(!1), { minWidth: s, minHeight: l, maxWidth: u, top: m, left: _, width: v, height: E, isCompressed: O, handleDragging: k, handleResizing: j, handleDragStop: I, handleResizeStop: L, toggleCompression: z, updatePosition: B, updateSize: H, updatePositionAndSize: r_ } = useDraggable({
29541
29542
  initWidth: i.defaultWidth,
29542
29543
  minWidth: i.minWidth,
29543
29544
  minHeight: i.minHeight,
@@ -29572,7 +29573,7 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29572
29573
  o.value || (o.value = !0, q()), k(e, n);
29573
29574
  }, Q = (e, n, r, i) => {
29574
29575
  o.value || (o.value = !0, q()), j(e, n, r, i);
29575
- }, s_ = (e, n) => {
29576
+ }, o_ = (e, n) => {
29576
29577
  I(e, n), o.value = !1, J();
29577
29578
  }, $ = (e, n, r, i) => {
29578
29579
  L(e, n, r, i), o.value = !1, J();
@@ -29582,7 +29583,7 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29582
29583
  }), n({
29583
29584
  updatePosition: B,
29584
29585
  updateSize: H,
29585
- updatePositionAndSize: i_,
29586
+ updatePositionAndSize: r_,
29586
29587
  toggleCompression: z,
29587
29588
  positionAndSize: K,
29588
29589
  isCompressed: O
@@ -29604,7 +29605,7 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29604
29605
  w: unref(v),
29605
29606
  x: unref(_),
29606
29607
  y: unref(m),
29607
- onDragStop: s_,
29608
+ onDragStop: o_,
29608
29609
  onDragging: Z,
29609
29610
  onResizeStop: $,
29610
29611
  onResizing: Q
@@ -29690,7 +29691,7 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29690
29691
  let z = computed(() => _.value ? t("恢复默认大小") : t("最小化,将缩成锚点")), { createTooltip: B, destroyAll: H } = useTooltip({
29691
29692
  theme: "ai-blueking",
29692
29693
  delay: [0, 0]
29693
- }), i_ = () => {
29694
+ }), r_ = () => {
29694
29695
  nextTick(() => {
29695
29696
  G();
29696
29697
  });
@@ -29704,9 +29705,9 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29704
29705
  }), onMounted(() => {
29705
29706
  nextTick(() => {
29706
29707
  G();
29707
- }), window.addEventListener("resize", i_);
29708
+ }), window.addEventListener("resize", r_);
29708
29709
  }), onBeforeUnmount(() => {
29709
- window.removeEventListener("resize", i_);
29710
+ window.removeEventListener("resize", r_);
29710
29711
  }), (n, r) => (openBlock(), createBlock(unref(U), {
29711
29712
  active: !e.isPanelShow,
29712
29713
  axis: "y",
@@ -29850,12 +29851,12 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29850
29851
  }), G = I, K = new SessionBusinessManager(G.session, G.agent, null, {
29851
29852
  enableChatSession: i.enableChatSession,
29852
29853
  initialSessionCode: i.initialSessionCode
29853
- }), q = new ShareBusinessManager(G.message, G.session), J = new UIStateManager(), Z = computed(() => J.isSelectionMode.value), o_ = ref(!1), $ = new ShortcutManager(null, i.shortcuts || []), c_ = ref(!1), u_ = ref(""), d_ = { appendTo: (e) => {
29854
+ }), q = new ShareBusinessManager(G.message, G.session), J = new UIStateManager(), Z = computed(() => J.isSelectionMode.value), a_ = ref(!1), $ = new ShortcutManager(null, i.shortcuts || []), s_ = ref(!1), l_ = ref(""), u_ = { appendTo: (e) => {
29854
29855
  let n = e.closest(".draggable-container-content");
29855
29856
  return console.log("[ai-blueking] appendTo called, ref:", e), console.log("[ai-blueking] appendTo closest result:", n), n ?? document.body;
29856
- } }, p_ = computed(() => m.isCompressed.value), m_ = computed(() => B.value), h_ = ref(""), g_ = ref(!0), __ = ref(!1), v_ = computed(() => G.message.list.value.length === 0), y_ = computed(() => i.resources?.length ? i.resources : z.value?.resources ?? []), x_ = computed(() => i.prompts?.length ? i.prompts : z.value?.conversationSettings?.predefinedQuestions ?? []), S_ = computed(() => {
29857
+ } }, f_ = computed(() => m.isCompressed.value), p_ = computed(() => B.value), m_ = ref(""), h_ = ref(!0), g_ = ref(!1), __ = computed(() => G.message.list.value.length === 0), v_ = computed(() => i.resources?.length ? i.resources : z.value?.resources ?? []), b_ = computed(() => i.prompts?.length ? i.prompts : z.value?.conversationSettings?.predefinedQuestions ?? []), x_ = computed(() => {
29857
29858
  let e = $.effectiveShortcuts.value;
29858
- return typeof i.shortcutFilter == "function" && u_.value ? e.filter((e) => i.shortcutFilter?.(e, u_.value)) : e;
29859
+ return typeof i.shortcutFilter == "function" && l_.value ? e.filter((e) => i.shortcutFilter?.(e, l_.value)) : e;
29859
29860
  });
29860
29861
  watch(() => L.value, async (e) => {
29861
29862
  if (e && z.value) {
@@ -29875,24 +29876,30 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29875
29876
  }, { immediate: !0 }), watch(() => i.shortcuts, (e) => {
29876
29877
  $.setShortcuts(e || []);
29877
29878
  }, { immediate: !0 }), watch(() => H.value, (e) => {
29878
- e && (h_.value = e.sessionName || "", __.value = (e.sessionContentCount ?? 0) > 0);
29879
- }, { immediate: !0 }), watch(() => G.message.list.value.length, (e) => {
29880
- __.value = e > 0;
29879
+ e && (m_.value = e.sessionName || "", g_.value = (e.sessionContentCount ?? 0) > 0);
29880
+ }, { immediate: !0 });
29881
+ let S_ = () => G.message.list.value.some((e) => {
29882
+ if (!("property" in e)) return !0;
29883
+ let { property: n } = e;
29884
+ return !n?.extra?.pause;
29885
+ });
29886
+ watch(() => G.message.list.value.length, () => {
29887
+ g_.value = S_();
29881
29888
  });
29882
29889
  let C_ = async (e) => {
29883
29890
  m.showPanel(e), e && l.value && await l.value.switchSession(e);
29884
29891
  }, w_ = async (e) => {
29885
29892
  await C_(e);
29886
- }, T_ = () => {
29893
+ }, E_ = () => {
29887
29894
  m.hidePanel();
29888
29895
  }, D_ = () => {
29889
- T_();
29890
- }, O_ = () => {
29896
+ E_();
29897
+ }, k_ = () => {
29891
29898
  m.handleNimbusClick();
29892
29899
  }, A_ = (e) => {
29893
- u_.value = e;
29900
+ l_.value = e;
29894
29901
  }, j_ = async (e, n) => {
29895
- c_.value = !1, await C_(), l.value && (e.components?.length ? l.value.selectShortcut(e, n) : (l.value.selectShortcut(e), l.value.setCiteText(n), l.value.focusInput())), O("shortcut-click", {
29902
+ s_.value = !1, await C_(), l.value && (e.components?.length ? l.value.selectShortcut(e, n) : (l.value.selectShortcut(e), l.value.setCiteText(n), l.value.focusInput())), O("shortcut-click", {
29896
29903
  shortcut: e,
29897
29904
  source: "popup"
29898
29905
  });
@@ -29910,7 +29917,7 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29910
29917
  m.container.toggleCompression();
29911
29918
  }, R_ = (e) => {
29912
29919
  m.setCompressed(e);
29913
- }, z_ = async () => {
29920
+ }, B_ = async () => {
29914
29921
  j.newChat();
29915
29922
  }, V_ = (e) => {
29916
29923
  j.historyClick(e);
@@ -29929,7 +29936,7 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29929
29936
  try {
29930
29937
  await G.session.renameSession(e);
29931
29938
  let n = G.session.list.value.find((n) => n.sessionCode === e);
29932
- n && (h_.value = n.sessionName || "");
29939
+ n && (m_.value = n.sessionName || "");
29933
29940
  } catch (e) {
29934
29941
  console.error("[AIBlueking] Failed to auto-generate session name:", e), cv(e);
29935
29942
  }
@@ -29946,7 +29953,7 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29946
29953
  await G.session.updateSession({
29947
29954
  ...n,
29948
29955
  sessionName: e
29949
- }), h_.value = e;
29956
+ }), m_.value = e;
29950
29957
  } catch (e) {
29951
29958
  console.error("[AIBlueking] Failed to rename session:", e), cv(e);
29952
29959
  }
@@ -29956,7 +29963,7 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29956
29963
  }, Y_ = () => {
29957
29964
  J.disableSelectionMode();
29958
29965
  }, X_ = async (e) => {
29959
- o_.value = !0;
29966
+ a_.value = !0;
29960
29967
  try {
29961
29968
  let { shareUrl: n, userMessageIds: r } = await q.shareMessages(e);
29962
29969
  await copyToClipboard(n), Message({
@@ -29966,12 +29973,12 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29966
29973
  } catch (e) {
29967
29974
  console.error("[AIBlueking] Failed to share messages:", e), cv(e);
29968
29975
  } finally {
29969
- o_.value = !1;
29976
+ a_.value = !1;
29970
29977
  }
29971
29978
  }, Z_ = async (e) => {
29972
29979
  l.value && await l.value.sendMessage(e);
29973
29980
  }, Q_ = (e) => {
29974
- __.value = !0, j.sendMessage(e);
29981
+ g_.value = !0, j.sendMessage(e);
29975
29982
  }, $_ = () => {
29976
29983
  j.receiveStart();
29977
29984
  }, ev = () => {
@@ -29988,12 +29995,12 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29988
29995
  l.value && await l.value.switchSession(e);
29989
29996
  }, ov = async (e, n) => {
29990
29997
  try {
29991
- await K.updateSessionName(e, n), h_.value = n;
29998
+ await K.updateSessionName(e, n), m_.value = n;
29992
29999
  } catch (e) {
29993
30000
  console.error("[AIBlueking] Failed to update session name:", e), cv(e);
29994
30001
  }
29995
30002
  }, sv = (e) => {
29996
- e && (h_.value = e.sessionName || "", __.value = (e.sessionContentCount ?? 0) > 0 || G.message.list.value.length > 0);
30003
+ e && (m_.value = e.sessionName || "", g_.value = (e.sessionContentCount ?? 0) > 0 || S_());
29997
30004
  }, cv = (e) => {
29998
30005
  console.error("ChatBot error:", e), m.emitInternal("sdk-error", {
29999
30006
  apiName: "chat",
@@ -30012,7 +30019,7 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
30012
30019
  }, pv = () => {
30013
30020
  l.value && l.value.focusInput();
30014
30021
  }, mv = (e) => {
30015
- isTogglePanelShortcut(e) && (e.preventDefault(), v.value ? T_() : C_());
30022
+ isTogglePanelShortcut(e) && (e.preventDefault(), v.value ? E_() : C_());
30016
30023
  };
30017
30024
  return onMounted(async () => {
30018
30025
  o.value && m.setContainerRef(o.value), window.addEventListener("keydown", mv);
@@ -30022,7 +30029,7 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
30022
30029
  show: C_,
30023
30030
  handleShow: w_,
30024
30031
  handleClose: D_,
30025
- hide: T_,
30032
+ hide: E_,
30026
30033
  sendMessage: Z_,
30027
30034
  stopGeneration: rv,
30028
30035
  addNewSession: iv,
@@ -30054,20 +30061,20 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
30054
30061
  onResizeStop: I_,
30055
30062
  onResizing: P_
30056
30063
  }, {
30057
- default: withCtx(() => [createElementVNode("div", { class: normalizeClass(["ai-blueking-panel", { "has-messages": !v_.value }]) }, [
30064
+ default: withCtx(() => [createElementVNode("div", { class: normalizeClass(["ai-blueking-panel", { "has-messages": !__.value }]) }, [
30058
30065
  createCommentVNode(" 独立的 Header 组件 "),
30059
30066
  i.hideHeader ? createCommentVNode("v-if", !0) : (openBlock(), createBlock(ai_header_default, {
30060
30067
  key: 0,
30061
- "agent-name": m_.value,
30068
+ "agent-name": p_.value,
30062
30069
  "chat-helper": unref(G),
30063
30070
  draggable: i.draggable,
30064
30071
  "dropdown-menu-config": i.dropdownMenuConfig,
30065
30072
  "enable-chat-session": i.enableChatSession,
30066
- "has-permission": g_.value,
30067
- "has-session-contents": __.value,
30068
- "is-compression-height": p_.value,
30073
+ "has-permission": h_.value,
30074
+ "has-session-contents": g_.value,
30075
+ "is-compression-height": f_.value,
30069
30076
  "session-business-manager": unref(K),
30070
- "session-name": h_.value,
30077
+ "session-name": m_.value,
30071
30078
  "show-compression-icon": i.showCompressionIcon,
30072
30079
  "show-history-icon": i.showHistoryIcon,
30073
30080
  "show-more-icon": i.showMoreIcon,
@@ -30080,7 +30087,7 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
30080
30087
  onHistorySessionDelete: U_,
30081
30088
  onHistorySessionRename: W_,
30082
30089
  onHistorySessionSwitch: H_,
30083
- onNewChat: z_,
30090
+ onNewChat: B_,
30084
30091
  onRename: q_,
30085
30092
  onShare: J_,
30086
30093
  onToggleCompression: L_
@@ -30109,13 +30116,13 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
30109
30116
  "chat-helper": unref(G),
30110
30117
  "enable-selection": Z.value,
30111
30118
  "hello-text": i.helloText,
30112
- "message-tools-tippy-options": d_,
30119
+ "message-tools-tippy-options": u_,
30113
30120
  placeholder: i.placeholder,
30114
- prompts: x_.value,
30121
+ prompts: b_.value,
30115
30122
  "request-options": i.requestOptions,
30116
- resources: y_.value,
30123
+ resources: v_.value,
30117
30124
  "session-code": i.initialSessionCode,
30118
- "share-loading": o_.value,
30125
+ "share-loading": a_.value,
30119
30126
  shortcuts: i.shortcuts,
30120
30127
  url: u.value,
30121
30128
  onCancelShare: Y_,
@@ -30164,7 +30171,7 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
30164
30171
  "onUpdate:isPanelShow": n[5] ||= (e) => isRef(v) ? v.value = e : null,
30165
30172
  "default-minimize": i.defaultMinimize,
30166
30173
  size: i.nimbusSize,
30167
- onClick: O_
30174
+ onClick: k_
30168
30175
  }, null, 8, [
30169
30176
  "is-minimize",
30170
30177
  "is-panel-show",
@@ -30174,11 +30181,11 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
30174
30181
  createCommentVNode(" 划词选择弹窗(使用 chat-x 的 AiSelection 组件) "),
30175
30182
  i.enablePopup ? (openBlock(), createBlock(unref(ai_selection_default), {
30176
30183
  key: 1,
30177
- visible: c_.value,
30178
- "onUpdate:visible": n[6] ||= (e) => c_.value = e,
30184
+ visible: s_.value,
30185
+ "onUpdate:visible": n[6] ||= (e) => s_.value = e,
30179
30186
  "exclude-selectors": [".draggable-container-wrapper"],
30180
30187
  "max-shortcut-count": i.shortcutLimit,
30181
- shortcuts: S_.value,
30188
+ shortcuts: x_.value,
30182
30189
  onSelectShortcut: j_,
30183
30190
  onSelectionChange: A_
30184
30191
  }, null, 8, [
@@ -30188,7 +30195,7 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
30188
30195
  ])) : createCommentVNode("v-if", !0)
30189
30196
  ], 2)], 8, ["to"]));
30190
30197
  }
30191
- }), [["__scopeId", "data-v-8e778364"]]), vue2_default = {
30198
+ }), [["__scopeId", "data-v-f0ab0ff6"]]), vue2_default = {
30192
30199
  name: "AIBluekingV2",
30193
30200
  render(e) {
30194
30201
  return e("div", { style: {