@das-fed/ui 6.4.0-dev.115 → 6.4.0-dev.117

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.
@@ -1,4 +1,4 @@
1
- import { defineAsyncComponent as ot, ref as N, watch as pu, h as it, reactive as ct, defineComponent as ou, onMounted as Ou, createElementBlock as R, openBlock as S, createElementVNode as g, toDisplayString as $, computed as su, createCommentVNode as z, createVNode as P, unref as C, normalizeClass as Ju, createBlock as W, withCtx as K, Fragment as Bu, renderList as Qu, withDirectives as yu, withKeys as Jt, vModelText as Qt, withModifiers as Fe, vShow as Hu, onBeforeUnmount as at, resolveDirective as Wt, nextTick as ye, Transition as Xt, normalizeStyle as Yt } from "vue";
1
+ import { defineAsyncComponent as ot, ref as N, watch as bu, h as it, reactive as ct, defineComponent as ou, onMounted as Ou, createElementBlock as R, openBlock as S, createElementVNode as g, toDisplayString as V, computed as su, createCommentVNode as z, createVNode as H, unref as A, normalizeClass as Ju, createBlock as X, withCtx as J, Fragment as Bu, renderList as Qu, withDirectives as yu, withKeys as Jt, vModelText as Qt, withModifiers as Fe, vShow as Hu, onBeforeUnmount as at, resolveDirective as Wt, nextTick as ye, Transition as Xt, normalizeStyle as Yt } from "vue";
2
2
  import { withInstall as u0 } from "@das-fed/utils/with-install/index";
3
3
  import { useRoute as e0 } from "vue-router";
4
4
  import { DasIconClose2 as t0 } from "@das-fed/ui/packages/icons/close-2/index";
@@ -44,7 +44,7 @@ let $u = (u = 21) => {
44
44
  }
45
45
  return e;
46
46
  };
47
- const C0 = ot(() => import("./index-Dt_Lhlid.js")), D0 = () => {
47
+ const C0 = ot(() => import("./index-BY-YZuV-.js")), D0 = () => {
48
48
  const u = N(), e = N(!1);
49
49
  let t = !1;
50
50
  const n = (c) => {
@@ -65,7 +65,7 @@ const C0 = ot(() => import("./index-Dt_Lhlid.js")), D0 = () => {
65
65
  }
66
66
  }),
67
67
  showFolderDialog: async (c) => (u.value = c, e.value = !0, new Promise((i) => {
68
- const a = pu(() => e.value, (s) => {
68
+ const a = bu(() => e.value, (s) => {
69
69
  i(t), a();
70
70
  });
71
71
  }))
@@ -108,10 +108,10 @@ const _t = () => sessionStorage.getItem("deepseekConfig") ? JSON.parse(sessionSt
108
108
  const u = _t();
109
109
  x.searchType == "0" && (x.deepseek = u.appDeepseek), x.searchType == "1" && (x.deepseek = u.knowDeepseek), x.searchType == "2" && (x.deepseek = u.networkDeepseek);
110
110
  };
111
- var eu = function(u, e) {
112
- if (!(this instanceof eu))
113
- return new eu(u, e);
114
- this.url = u, e = e || {}, this.headers = e.headers || {}, this.payload = e.payload !== void 0 ? e.payload : "", this.method = e.method || this.payload && "POST" || "GET", this.withCredentials = !!e.withCredentials, this.debug = !!e.debug, this.FIELD_SEPARATOR = ":", this.listeners = {}, this.xhr = null, this.readyState = eu.INITIALIZING, this.progress = 0, this.chunk = "", this.lastEventId = "", this.addEventListener = function(t, n) {
111
+ var tu = function(u, e) {
112
+ if (!(this instanceof tu))
113
+ return new tu(u, e);
114
+ this.url = u, e = e || {}, this.headers = e.headers || {}, this.payload = e.payload !== void 0 ? e.payload : "", this.method = e.method || this.payload && "POST" || "GET", this.withCredentials = !!e.withCredentials, this.debug = !!e.debug, this.FIELD_SEPARATOR = ":", this.listeners = {}, this.xhr = null, this.readyState = tu.INITIALIZING, this.progress = 0, this.chunk = "", this.lastEventId = "", this.addEventListener = function(t, n) {
115
115
  this.listeners[t] === void 0 && (this.listeners[t] = []), this.listeners[t].indexOf(n) === -1 && this.listeners[t].push(n);
116
116
  }, this.removeEventListener = function(t, n) {
117
117
  if (this.listeners[t] === void 0)
@@ -129,7 +129,7 @@ var eu = function(u, e) {
129
129
  return r(t), !t.defaultPrevented;
130
130
  }) : !0;
131
131
  }, this._markClosed = function() {
132
- this.xhr = null, this.progress = 0, this.chunk = "", this._setReadyState(eu.CLOSED);
132
+ this.xhr = null, this.progress = 0, this.chunk = "", this._setReadyState(tu.CLOSED);
133
133
  }, this._setReadyState = function(t) {
134
134
  const n = new CustomEvent("readystatechange");
135
135
  n.readyState = t, this.readyState = t, this.dispatchEvent(n);
@@ -182,24 +182,24 @@ var eu = function(u, e) {
182
182
  t[c.trim().toLowerCase()] = t[c.trim().toLowerCase()] || [], t[c.trim().toLowerCase()].push(a);
183
183
  }
184
184
  const r = new CustomEvent("open");
185
- r.responseCode = this.xhr.status, r.headers = t, this.dispatchEvent(r), this._setReadyState(eu.OPEN);
185
+ r.responseCode = this.xhr.status, r.headers = t, this.dispatchEvent(r), this._setReadyState(tu.OPEN);
186
186
  }
187
187
  }, this.stream = function() {
188
188
  if (!this.xhr) {
189
- this._setReadyState(eu.CONNECTING), this.xhr = new XMLHttpRequest(), this.xhr.addEventListener("progress", this._onStreamProgress.bind(this)), this.xhr.addEventListener("load", this._onStreamLoaded.bind(this)), this.xhr.addEventListener("readystatechange", this._onReadyStateChange.bind(this)), this.xhr.addEventListener("error", this._onStreamFailure.bind(this)), this.xhr.addEventListener("abort", this._onStreamAbort.bind(this)), this.xhr.open(this.method, this.url);
189
+ this._setReadyState(tu.CONNECTING), this.xhr = new XMLHttpRequest(), this.xhr.addEventListener("progress", this._onStreamProgress.bind(this)), this.xhr.addEventListener("load", this._onStreamLoaded.bind(this)), this.xhr.addEventListener("readystatechange", this._onReadyStateChange.bind(this)), this.xhr.addEventListener("error", this._onStreamFailure.bind(this)), this.xhr.addEventListener("abort", this._onStreamAbort.bind(this)), this.xhr.open(this.method, this.url);
190
190
  for (let t in this.headers)
191
191
  this.xhr.setRequestHeader(t, this.headers[t]);
192
192
  this.lastEventId.length > 0 && this.xhr.setRequestHeader("Last-Event-ID", this.lastEventId), this.xhr.withCredentials = this.withCredentials, this.xhr.send(this.payload);
193
193
  }
194
194
  }, this.close = function() {
195
- this.readyState !== eu.CLOSED && this.xhr.abort();
195
+ this.readyState !== tu.CLOSED && this.xhr.abort();
196
196
  }, (e.start === void 0 || e.start) && this.stream();
197
197
  };
198
- eu.INITIALIZING = -1;
199
- eu.CONNECTING = 0;
200
- eu.OPEN = 1;
201
- eu.CLOSED = 2;
202
- typeof exports < "u" && (exports.SSE = eu);
198
+ tu.INITIALIZING = -1;
199
+ tu.CONNECTING = 0;
200
+ tu.OPEN = 1;
201
+ tu.CLOSED = 2;
202
+ typeof exports < "u" && (exports.SSE = tu);
203
203
  const F0 = { class: "das-ai-use-chat-content" }, w0 = {
204
204
  name: "useChat"
205
205
  }, S0 = /* @__PURE__ */ ou({
@@ -222,7 +222,7 @@ const F0 = { class: "das-ai-use-chat-content" }, w0 = {
222
222
  g(
223
223
  "div",
224
224
  F0,
225
- $(n.item.content),
225
+ V(n.item.content),
226
226
  1
227
227
  /* TEXT */
228
228
  )
@@ -276,18 +276,18 @@ var kt = { exports: {} };
276
276
  return !1;
277
277
  }
278
278
  }
279
- var A = function(w) {
279
+ var y = function(w) {
280
280
  var F = h()(w);
281
281
  return d("cut"), F;
282
- }, y = A;
283
- function D(M) {
282
+ }, v = y;
283
+ function C(M) {
284
284
  var w = document.documentElement.getAttribute("dir") === "rtl", F = document.createElement("textarea");
285
285
  F.style.fontSize = "12pt", F.style.border = "0", F.style.padding = "0", F.style.margin = "0", F.style.position = "absolute", F.style[w ? "right" : "left"] = "-9999px";
286
286
  var B = window.pageYOffset || document.documentElement.scrollTop;
287
287
  return F.style.top = "".concat(B, "px"), F.setAttribute("readonly", ""), F.value = M, F;
288
288
  }
289
289
  var k = function(w, F) {
290
- var B = D(w);
290
+ var B = C(w);
291
291
  F.container.appendChild(B);
292
292
  var q = h()(B);
293
293
  return d("copy"), B.remove(), q;
@@ -305,72 +305,72 @@ var kt = { exports: {} };
305
305
  return F && typeof Symbol == "function" && F.constructor === Symbol && F !== Symbol.prototype ? "symbol" : typeof F;
306
306
  }, m(M);
307
307
  }
308
- var v = function() {
309
- var w = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, F = w.action, B = F === void 0 ? "copy" : F, q = w.container, H = w.target, uu = w.text;
308
+ var L = function() {
309
+ var w = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, F = w.action, B = F === void 0 ? "copy" : F, q = w.container, $ = w.target, eu = w.text;
310
310
  if (B !== "copy" && B !== "cut")
311
311
  throw new Error('Invalid "action" value, use either "copy" or "cut"');
312
- if (H !== void 0)
313
- if (H && m(H) === "object" && H.nodeType === 1) {
314
- if (B === "copy" && H.hasAttribute("disabled"))
312
+ if ($ !== void 0)
313
+ if ($ && m($) === "object" && $.nodeType === 1) {
314
+ if (B === "copy" && $.hasAttribute("disabled"))
315
315
  throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');
316
- if (B === "cut" && (H.hasAttribute("readonly") || H.hasAttribute("disabled")))
316
+ if (B === "cut" && ($.hasAttribute("readonly") || $.hasAttribute("disabled")))
317
317
  throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);
318
318
  } else
319
319
  throw new Error('Invalid "target" value, use a valid Element');
320
- if (uu)
321
- return b(uu, {
320
+ if (eu)
321
+ return b(eu, {
322
322
  container: q
323
323
  });
324
- if (H)
325
- return B === "cut" ? y(H) : b(H, {
324
+ if ($)
325
+ return B === "cut" ? v($) : b($, {
326
326
  container: q
327
327
  });
328
- }, j = v;
329
- function L(M) {
328
+ }, E = L;
329
+ function P(M) {
330
330
  "@babel/helpers - typeof";
331
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? L = function(F) {
331
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? P = function(F) {
332
332
  return typeof F;
333
- } : L = function(F) {
333
+ } : P = function(F) {
334
334
  return F && typeof Symbol == "function" && F.constructor === Symbol && F !== Symbol.prototype ? "symbol" : typeof F;
335
- }, L(M);
335
+ }, P(M);
336
336
  }
337
- function V(M, w) {
337
+ function j(M, w) {
338
338
  if (!(M instanceof w))
339
339
  throw new TypeError("Cannot call a class as a function");
340
340
  }
341
- function nu(M, w) {
341
+ function K(M, w) {
342
342
  for (var F = 0; F < w.length; F++) {
343
343
  var B = w[F];
344
344
  B.enumerable = B.enumerable || !1, B.configurable = !0, "value" in B && (B.writable = !0), Object.defineProperty(M, B.key, B);
345
345
  }
346
346
  }
347
- function gu(M, w, F) {
348
- return w && nu(M.prototype, w), F && nu(M, F), M;
347
+ function du(M, w, F) {
348
+ return w && K(M.prototype, w), F && K(M, F), M;
349
349
  }
350
- function xu(M, w) {
350
+ function _u(M, w) {
351
351
  if (typeof w != "function" && w !== null)
352
352
  throw new TypeError("Super expression must either be null or a function");
353
- M.prototype = Object.create(w && w.prototype, { constructor: { value: M, writable: !0, configurable: !0 } }), w && _u(M, w);
353
+ M.prototype = Object.create(w && w.prototype, { constructor: { value: M, writable: !0, configurable: !0 } }), w && gu(M, w);
354
354
  }
355
- function _u(M, w) {
356
- return _u = Object.setPrototypeOf || function(B, q) {
355
+ function gu(M, w) {
356
+ return gu = Object.setPrototypeOf || function(B, q) {
357
357
  return B.__proto__ = q, B;
358
- }, _u(M, w);
358
+ }, gu(M, w);
359
359
  }
360
360
  function wu(M) {
361
361
  var w = ue();
362
362
  return function() {
363
363
  var B = Iu(M), q;
364
364
  if (w) {
365
- var H = Iu(this).constructor;
366
- q = Reflect.construct(B, arguments, H);
365
+ var $ = Iu(this).constructor;
366
+ q = Reflect.construct(B, arguments, $);
367
367
  } else
368
368
  q = B.apply(this, arguments);
369
- return du(this, q);
369
+ return fu(this, q);
370
370
  };
371
371
  }
372
- function du(M, w) {
373
- return w && (L(w) === "object" || typeof w == "function") ? w : Su(M);
372
+ function fu(M, w) {
373
+ return w && (P(w) === "object" || typeof w == "function") ? w : Su(M);
374
374
  }
375
375
  function Su(M) {
376
376
  if (M === void 0)
@@ -398,17 +398,17 @@ var kt = { exports: {} };
398
398
  return w.getAttribute(F);
399
399
  }
400
400
  var Tu = /* @__PURE__ */ function(M) {
401
- xu(F, M);
401
+ _u(F, M);
402
402
  var w = wu(F);
403
403
  function F(B, q) {
404
- var H;
405
- return V(this, F), H = w.call(this), H.resolveOptions(q), H.listenClick(B), H;
404
+ var $;
405
+ return j(this, F), $ = w.call(this), $.resolveOptions(q), $.listenClick(B), $;
406
406
  }
407
- return gu(F, [{
407
+ return du(F, [{
408
408
  key: "resolveOptions",
409
409
  value: function() {
410
410
  var q = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
411
- this.action = typeof q.action == "function" ? q.action : this.defaultAction, this.target = typeof q.target == "function" ? q.target : this.defaultTarget, this.text = typeof q.text == "function" ? q.text : this.defaultText, this.container = L(q.container) === "object" ? q.container : document.body;
411
+ this.action = typeof q.action == "function" ? q.action : this.defaultAction, this.target = typeof q.target == "function" ? q.target : this.defaultTarget, this.text = typeof q.text == "function" ? q.text : this.defaultText, this.container = P(q.container) === "object" ? q.container : document.body;
412
412
  }
413
413
  /**
414
414
  * Adds a click event listener to the passed trigger.
@@ -417,9 +417,9 @@ var kt = { exports: {} };
417
417
  }, {
418
418
  key: "listenClick",
419
419
  value: function(q) {
420
- var H = this;
421
- this.listener = f()(q, "click", function(uu) {
422
- return H.onClick(uu);
420
+ var $ = this;
421
+ this.listener = f()(q, "click", function(eu) {
422
+ return $.onClick(eu);
423
423
  });
424
424
  }
425
425
  /**
@@ -429,18 +429,18 @@ var kt = { exports: {} };
429
429
  }, {
430
430
  key: "onClick",
431
431
  value: function(q) {
432
- var H = q.delegateTarget || q.currentTarget, uu = this.action(H) || "copy", Eu = j({
433
- action: uu,
432
+ var $ = q.delegateTarget || q.currentTarget, eu = this.action($) || "copy", Eu = E({
433
+ action: eu,
434
434
  container: this.container,
435
- target: this.target(H),
436
- text: this.text(H)
435
+ target: this.target($),
436
+ text: this.text($)
437
437
  });
438
438
  this.emit(Eu ? "success" : "error", {
439
- action: uu,
439
+ action: eu,
440
440
  text: Eu,
441
- trigger: H,
441
+ trigger: $,
442
442
  clearSelection: function() {
443
- H && H.focus(), window.getSelection().removeAllRanges();
443
+ $ && $.focus(), window.getSelection().removeAllRanges();
444
444
  }
445
445
  });
446
446
  }
@@ -460,9 +460,9 @@ var kt = { exports: {} };
460
460
  }, {
461
461
  key: "defaultTarget",
462
462
  value: function(q) {
463
- var H = ju("target", q);
464
- if (H)
465
- return document.querySelector(H);
463
+ var $ = ju("target", q);
464
+ if ($)
465
+ return document.querySelector($);
466
466
  }
467
467
  /**
468
468
  * Allow fire programmatically a copy action
@@ -490,10 +490,10 @@ var kt = { exports: {} };
490
490
  }], [{
491
491
  key: "copy",
492
492
  value: function(q) {
493
- var H = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
493
+ var $ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
494
494
  container: document.body
495
495
  };
496
- return b(q, H);
496
+ return b(q, $);
497
497
  }
498
498
  /**
499
499
  * Allow fire programmatically a cut action
@@ -503,7 +503,7 @@ var kt = { exports: {} };
503
503
  }, {
504
504
  key: "cut",
505
505
  value: function(q) {
506
- return y(q);
506
+ return v(q);
507
507
  }
508
508
  /**
509
509
  * Returns the support of the given action, or all actions if no action is
@@ -513,10 +513,10 @@ var kt = { exports: {} };
513
513
  }, {
514
514
  key: "isSupported",
515
515
  value: function() {
516
- var q = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["copy", "cut"], H = typeof q == "string" ? [q] : q, uu = !!document.queryCommandSupported;
517
- return H.forEach(function(Eu) {
518
- uu = uu && !!document.queryCommandSupported(Eu);
519
- }), uu;
516
+ var q = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["copy", "cut"], $ = typeof q == "string" ? [q] : q, eu = !!document.queryCommandSupported;
517
+ return $.forEach(function(Eu) {
518
+ eu = eu && !!document.queryCommandSupported(Eu);
519
+ }), eu;
520
520
  }
521
521
  }]), F;
522
522
  }(s()), fe = Tu;
@@ -546,22 +546,22 @@ var kt = { exports: {} };
546
546
  /***/
547
547
  function(o, c, i) {
548
548
  var a = i(828);
549
- function s(_, h, d, A, y) {
550
- var D = f.apply(this, arguments);
551
- return _.addEventListener(d, D, y), {
549
+ function s(_, h, d, y, v) {
550
+ var C = f.apply(this, arguments);
551
+ return _.addEventListener(d, C, v), {
552
552
  destroy: function() {
553
- _.removeEventListener(d, D, y);
553
+ _.removeEventListener(d, C, v);
554
554
  }
555
555
  };
556
556
  }
557
- function l(_, h, d, A, y) {
558
- return typeof _.addEventListener == "function" ? s.apply(null, arguments) : typeof d == "function" ? s.bind(null, document).apply(null, arguments) : (typeof _ == "string" && (_ = document.querySelectorAll(_)), Array.prototype.map.call(_, function(D) {
559
- return s(D, h, d, A, y);
557
+ function l(_, h, d, y, v) {
558
+ return typeof _.addEventListener == "function" ? s.apply(null, arguments) : typeof d == "function" ? s.bind(null, document).apply(null, arguments) : (typeof _ == "string" && (_ = document.querySelectorAll(_)), Array.prototype.map.call(_, function(C) {
559
+ return s(C, h, d, y, v);
560
560
  }));
561
561
  }
562
- function f(_, h, d, A) {
563
- return function(y) {
564
- y.delegateTarget = a(y.target, h), y.delegateTarget && A.call(_, y);
562
+ function f(_, h, d, y) {
563
+ return function(v) {
564
+ v.delegateTarget = a(v.target, h), v.delegateTarget && y.call(_, v);
565
565
  };
566
566
  }
567
567
  o.exports = l;
@@ -589,41 +589,41 @@ var kt = { exports: {} };
589
589
  /***/
590
590
  function(o, c, i) {
591
591
  var a = i(879), s = i(438);
592
- function l(d, A, y) {
593
- if (!d && !A && !y)
592
+ function l(d, y, v) {
593
+ if (!d && !y && !v)
594
594
  throw new Error("Missing required arguments");
595
- if (!a.string(A))
595
+ if (!a.string(y))
596
596
  throw new TypeError("Second argument must be a String");
597
- if (!a.fn(y))
597
+ if (!a.fn(v))
598
598
  throw new TypeError("Third argument must be a Function");
599
599
  if (a.node(d))
600
- return f(d, A, y);
600
+ return f(d, y, v);
601
601
  if (a.nodeList(d))
602
- return _(d, A, y);
602
+ return _(d, y, v);
603
603
  if (a.string(d))
604
- return h(d, A, y);
604
+ return h(d, y, v);
605
605
  throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");
606
606
  }
607
- function f(d, A, y) {
608
- return d.addEventListener(A, y), {
607
+ function f(d, y, v) {
608
+ return d.addEventListener(y, v), {
609
609
  destroy: function() {
610
- d.removeEventListener(A, y);
610
+ d.removeEventListener(y, v);
611
611
  }
612
612
  };
613
613
  }
614
- function _(d, A, y) {
615
- return Array.prototype.forEach.call(d, function(D) {
616
- D.addEventListener(A, y);
614
+ function _(d, y, v) {
615
+ return Array.prototype.forEach.call(d, function(C) {
616
+ C.addEventListener(y, v);
617
617
  }), {
618
618
  destroy: function() {
619
- Array.prototype.forEach.call(d, function(D) {
620
- D.removeEventListener(A, y);
619
+ Array.prototype.forEach.call(d, function(C) {
620
+ C.removeEventListener(y, v);
621
621
  });
622
622
  }
623
623
  };
624
624
  }
625
- function h(d, A, y) {
626
- return s(document.body, d, A, y);
625
+ function h(d, y, v) {
626
+ return s(document.body, d, y, v);
627
627
  }
628
628
  o.exports = l;
629
629
  }
@@ -900,14 +900,14 @@ oe.prototype.parse = function(u, e) {
900
900
  const h = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
901
901
  if (!h) {
902
902
  const d = this.hostname.split(/\./);
903
- for (let A = 0, y = d.length; A < y; A++) {
904
- const D = d[A];
905
- if (D && !D.match(Ue)) {
903
+ for (let y = 0, v = d.length; y < v; y++) {
904
+ const C = d[y];
905
+ if (C && !C.match(Ue)) {
906
906
  let k = "";
907
- for (let p = 0, b = D.length; p < b; p++)
908
- D.charCodeAt(p) > 127 ? k += "x" : k += D[p];
907
+ for (let p = 0, b = C.length; p < b; p++)
908
+ C.charCodeAt(p) > 127 ? k += "x" : k += C[p];
909
909
  if (!k.match(Ue)) {
910
- const p = d.slice(0, A), b = d.slice(A + 1), m = D.match(U0);
910
+ const p = d.slice(0, y), b = d.slice(y + 1), m = C.match(U0);
911
911
  m && (p.push(m[1]), b.unshift(m[2])), b.length && (o = b.join(".") + o), this.hostname = p.join(".");
912
912
  break;
913
913
  }
@@ -988,42 +988,42 @@ function Y0(u) {
988
988
  var e;
989
989
  return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e = W0.get(u)) !== null && e !== void 0 ? e : u;
990
990
  }
991
- var Q;
991
+ var W;
992
992
  (function(u) {
993
993
  u[u.NUM = 35] = "NUM", u[u.SEMI = 59] = "SEMI", u[u.EQUALS = 61] = "EQUALS", u[u.ZERO = 48] = "ZERO", u[u.NINE = 57] = "NINE", u[u.LOWER_A = 97] = "LOWER_A", u[u.LOWER_F = 102] = "LOWER_F", u[u.LOWER_X = 120] = "LOWER_X", u[u.LOWER_Z = 122] = "LOWER_Z", u[u.UPPER_A = 65] = "UPPER_A", u[u.UPPER_F = 70] = "UPPER_F", u[u.UPPER_Z = 90] = "UPPER_Z";
994
- })(Q || (Q = {}));
994
+ })(W || (W = {}));
995
995
  const un = 32;
996
996
  var Au;
997
997
  (function(u) {
998
998
  u[u.VALUE_LENGTH = 49152] = "VALUE_LENGTH", u[u.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", u[u.JUMP_TABLE = 127] = "JUMP_TABLE";
999
999
  })(Au || (Au = {}));
1000
1000
  function Ae(u) {
1001
- return u >= Q.ZERO && u <= Q.NINE;
1001
+ return u >= W.ZERO && u <= W.NINE;
1002
1002
  }
1003
1003
  function en(u) {
1004
- return u >= Q.UPPER_A && u <= Q.UPPER_F || u >= Q.LOWER_A && u <= Q.LOWER_F;
1004
+ return u >= W.UPPER_A && u <= W.UPPER_F || u >= W.LOWER_A && u <= W.LOWER_F;
1005
1005
  }
1006
1006
  function tn(u) {
1007
- return u >= Q.UPPER_A && u <= Q.UPPER_Z || u >= Q.LOWER_A && u <= Q.LOWER_Z || Ae(u);
1007
+ return u >= W.UPPER_A && u <= W.UPPER_Z || u >= W.LOWER_A && u <= W.LOWER_Z || Ae(u);
1008
1008
  }
1009
1009
  function nn(u) {
1010
- return u === Q.EQUALS || tn(u);
1010
+ return u === W.EQUALS || tn(u);
1011
1011
  }
1012
- var J;
1012
+ var Q;
1013
1013
  (function(u) {
1014
1014
  u[u.EntityStart = 0] = "EntityStart", u[u.NumericStart = 1] = "NumericStart", u[u.NumericDecimal = 2] = "NumericDecimal", u[u.NumericHex = 3] = "NumericHex", u[u.NamedEntity = 4] = "NamedEntity";
1015
- })(J || (J = {}));
1015
+ })(Q || (Q = {}));
1016
1016
  var vu;
1017
1017
  (function(u) {
1018
1018
  u[u.Legacy = 0] = "Legacy", u[u.Strict = 1] = "Strict", u[u.Attribute = 2] = "Attribute";
1019
1019
  })(vu || (vu = {}));
1020
1020
  class rn {
1021
1021
  constructor(e, t, n) {
1022
- this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state = J.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = vu.Strict;
1022
+ this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state = Q.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = vu.Strict;
1023
1023
  }
1024
1024
  /** Resets the instance to make it reusable. */
1025
1025
  startEntity(e) {
1026
- this.decodeMode = e, this.state = J.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
1026
+ this.decodeMode = e, this.state = Q.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
1027
1027
  }
1028
1028
  /**
1029
1029
  * Write an entity to the decoder. This can be called multiple times with partial entities.
@@ -1038,15 +1038,15 @@ class rn {
1038
1038
  */
1039
1039
  write(e, t) {
1040
1040
  switch (this.state) {
1041
- case J.EntityStart:
1042
- return e.charCodeAt(t) === Q.NUM ? (this.state = J.NumericStart, this.consumed += 1, this.stateNumericStart(e, t + 1)) : (this.state = J.NamedEntity, this.stateNamedEntity(e, t));
1043
- case J.NumericStart:
1041
+ case Q.EntityStart:
1042
+ return e.charCodeAt(t) === W.NUM ? (this.state = Q.NumericStart, this.consumed += 1, this.stateNumericStart(e, t + 1)) : (this.state = Q.NamedEntity, this.stateNamedEntity(e, t));
1043
+ case Q.NumericStart:
1044
1044
  return this.stateNumericStart(e, t);
1045
- case J.NumericDecimal:
1045
+ case Q.NumericDecimal:
1046
1046
  return this.stateNumericDecimal(e, t);
1047
- case J.NumericHex:
1047
+ case Q.NumericHex:
1048
1048
  return this.stateNumericHex(e, t);
1049
- case J.NamedEntity:
1049
+ case Q.NamedEntity:
1050
1050
  return this.stateNamedEntity(e, t);
1051
1051
  }
1052
1052
  }
@@ -1060,7 +1060,7 @@ class rn {
1060
1060
  * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
1061
1061
  */
1062
1062
  stateNumericStart(e, t) {
1063
- return t >= e.length ? -1 : (e.charCodeAt(t) | un) === Q.LOWER_X ? (this.state = J.NumericHex, this.consumed += 1, this.stateNumericHex(e, t + 1)) : (this.state = J.NumericDecimal, this.stateNumericDecimal(e, t));
1063
+ return t >= e.length ? -1 : (e.charCodeAt(t) | un) === W.LOWER_X ? (this.state = Q.NumericHex, this.consumed += 1, this.stateNumericHex(e, t + 1)) : (this.state = Q.NumericDecimal, this.stateNumericDecimal(e, t));
1064
1064
  }
1065
1065
  addToNumericResult(e, t, n, r) {
1066
1066
  if (t !== n) {
@@ -1125,11 +1125,11 @@ class rn {
1125
1125
  var n;
1126
1126
  if (this.consumed <= t)
1127
1127
  return (n = this.errors) === null || n === void 0 || n.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
1128
- if (e === Q.SEMI)
1128
+ if (e === W.SEMI)
1129
1129
  this.consumed += 1;
1130
1130
  else if (this.decodeMode === vu.Strict)
1131
1131
  return 0;
1132
- return this.emitCodePoint(Y0(this.result), this.consumed), this.errors && (e !== Q.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
1132
+ return this.emitCodePoint(Y0(this.result), this.consumed), this.errors && (e !== W.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
1133
1133
  }
1134
1134
  /**
1135
1135
  * Parses a named entity.
@@ -1151,7 +1151,7 @@ class rn {
1151
1151
  (o === 0 || // And there should be no invalid characters.
1152
1152
  nn(c)) ? 0 : this.emitNotTerminatedNamedEntity();
1153
1153
  if (r = n[this.treeIndex], o = (r & Au.VALUE_LENGTH) >> 14, o !== 0) {
1154
- if (c === Q.SEMI)
1154
+ if (c === W.SEMI)
1155
1155
  return this.emitNamedEntityData(this.treeIndex, o, this.consumed + this.excess);
1156
1156
  this.decodeMode !== vu.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
1157
1157
  }
@@ -1191,15 +1191,15 @@ class rn {
1191
1191
  end() {
1192
1192
  var e;
1193
1193
  switch (this.state) {
1194
- case J.NamedEntity:
1194
+ case Q.NamedEntity:
1195
1195
  return this.result !== 0 && (this.decodeMode !== vu.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
1196
- case J.NumericDecimal:
1196
+ case Q.NumericDecimal:
1197
1197
  return this.emitNumericEntity(0, 2);
1198
- case J.NumericHex:
1198
+ case Q.NumericHex:
1199
1199
  return this.emitNumericEntity(0, 3);
1200
- case J.NumericStart:
1200
+ case Q.NumericStart:
1201
1201
  return (e = this.errors) === null || e === void 0 || e.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
1202
- case J.EntityStart:
1202
+ case Q.EntityStart:
1203
1203
  return 0;
1204
1204
  }
1205
1205
  }
@@ -1506,17 +1506,17 @@ const Fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1506
1506
  parseLinkDestination: Dn,
1507
1507
  parseLinkLabel: Cn,
1508
1508
  parseLinkTitle: En
1509
- }, Symbol.toStringTag, { value: "Module" })), bu = {};
1510
- bu.code_inline = function(u, e, t, n, r) {
1509
+ }, Symbol.toStringTag, { value: "Module" })), mu = {};
1510
+ mu.code_inline = function(u, e, t, n, r) {
1511
1511
  const o = u[e];
1512
1512
  return "<code" + r.renderAttrs(o) + ">" + Du(o.content) + "</code>";
1513
1513
  };
1514
- bu.code_block = function(u, e, t, n, r) {
1514
+ mu.code_block = function(u, e, t, n, r) {
1515
1515
  const o = u[e];
1516
1516
  return "<pre" + r.renderAttrs(o) + "><code>" + Du(u[e].content) + `</code></pre>
1517
1517
  `;
1518
1518
  };
1519
- bu.fence = function(u, e, t, n, r) {
1519
+ mu.fence = function(u, e, t, n, r) {
1520
1520
  const o = u[e], c = o.info ? Mu(o.info).trim() : "";
1521
1521
  let i = "", a = "";
1522
1522
  if (c) {
@@ -1539,32 +1539,32 @@ bu.fence = function(u, e, t, n, r) {
1539
1539
  return `<pre><code${r.renderAttrs(o)}>${s}</code></pre>
1540
1540
  `;
1541
1541
  };
1542
- bu.image = function(u, e, t, n, r) {
1542
+ mu.image = function(u, e, t, n, r) {
1543
1543
  const o = u[e];
1544
1544
  return o.attrs[o.attrIndex("alt")][1] = r.renderInlineAsText(o.children, t, n), r.renderToken(u, e, t);
1545
1545
  };
1546
- bu.hardbreak = function(u, e, t) {
1546
+ mu.hardbreak = function(u, e, t) {
1547
1547
  return t.xhtmlOut ? `<br />
1548
1548
  ` : `<br>
1549
1549
  `;
1550
1550
  };
1551
- bu.softbreak = function(u, e, t) {
1551
+ mu.softbreak = function(u, e, t) {
1552
1552
  return t.breaks ? t.xhtmlOut ? `<br />
1553
1553
  ` : `<br>
1554
1554
  ` : `
1555
1555
  `;
1556
1556
  };
1557
- bu.text = function(u, e) {
1557
+ mu.text = function(u, e) {
1558
1558
  return Du(u[e].content);
1559
1559
  };
1560
- bu.html_block = function(u, e) {
1560
+ mu.html_block = function(u, e) {
1561
1561
  return u[e].content;
1562
1562
  };
1563
- bu.html_inline = function(u, e) {
1563
+ mu.html_inline = function(u, e) {
1564
1564
  return u[e].content;
1565
1565
  };
1566
1566
  function Pu() {
1567
- this.rules = ae({}, bu);
1567
+ this.rules = ae({}, mu);
1568
1568
  }
1569
1569
  Pu.prototype.renderAttrs = function(e) {
1570
1570
  let t, n, r;
@@ -1629,16 +1629,16 @@ Pu.prototype.render = function(u, e, t) {
1629
1629
  }
1630
1630
  return n;
1631
1631
  };
1632
- function Y() {
1632
+ function uu() {
1633
1633
  this.__rules__ = [], this.__cache__ = null;
1634
1634
  }
1635
- Y.prototype.__find__ = function(u) {
1635
+ uu.prototype.__find__ = function(u) {
1636
1636
  for (let e = 0; e < this.__rules__.length; e++)
1637
1637
  if (this.__rules__[e].name === u)
1638
1638
  return e;
1639
1639
  return -1;
1640
1640
  };
1641
- Y.prototype.__compile__ = function() {
1641
+ uu.prototype.__compile__ = function() {
1642
1642
  const u = this, e = [""];
1643
1643
  u.__rules__.forEach(function(t) {
1644
1644
  t.enabled && t.alt.forEach(function(n) {
@@ -1650,13 +1650,13 @@ Y.prototype.__compile__ = function() {
1650
1650
  });
1651
1651
  });
1652
1652
  };
1653
- Y.prototype.at = function(u, e, t) {
1653
+ uu.prototype.at = function(u, e, t) {
1654
1654
  const n = this.__find__(u), r = t || {};
1655
1655
  if (n === -1)
1656
1656
  throw new Error("Parser rule not found: " + u);
1657
1657
  this.__rules__[n].fn = e, this.__rules__[n].alt = r.alt || [], this.__cache__ = null;
1658
1658
  };
1659
- Y.prototype.before = function(u, e, t, n) {
1659
+ uu.prototype.before = function(u, e, t, n) {
1660
1660
  const r = this.__find__(u), o = n || {};
1661
1661
  if (r === -1)
1662
1662
  throw new Error("Parser rule not found: " + u);
@@ -1667,7 +1667,7 @@ Y.prototype.before = function(u, e, t, n) {
1667
1667
  alt: o.alt || []
1668
1668
  }), this.__cache__ = null;
1669
1669
  };
1670
- Y.prototype.after = function(u, e, t, n) {
1670
+ uu.prototype.after = function(u, e, t, n) {
1671
1671
  const r = this.__find__(u), o = n || {};
1672
1672
  if (r === -1)
1673
1673
  throw new Error("Parser rule not found: " + u);
@@ -1678,7 +1678,7 @@ Y.prototype.after = function(u, e, t, n) {
1678
1678
  alt: o.alt || []
1679
1679
  }), this.__cache__ = null;
1680
1680
  };
1681
- Y.prototype.push = function(u, e, t) {
1681
+ uu.prototype.push = function(u, e, t) {
1682
1682
  const n = t || {};
1683
1683
  this.__rules__.push({
1684
1684
  name: u,
@@ -1687,7 +1687,7 @@ Y.prototype.push = function(u, e, t) {
1687
1687
  alt: n.alt || []
1688
1688
  }), this.__cache__ = null;
1689
1689
  };
1690
- Y.prototype.enable = function(u, e) {
1690
+ uu.prototype.enable = function(u, e) {
1691
1691
  Array.isArray(u) || (u = [u]);
1692
1692
  const t = [];
1693
1693
  return u.forEach(function(n) {
@@ -1700,12 +1700,12 @@ Y.prototype.enable = function(u, e) {
1700
1700
  this.__rules__[r].enabled = !0, t.push(n);
1701
1701
  }, this), this.__cache__ = null, t;
1702
1702
  };
1703
- Y.prototype.enableOnly = function(u, e) {
1703
+ uu.prototype.enableOnly = function(u, e) {
1704
1704
  Array.isArray(u) || (u = [u]), this.__rules__.forEach(function(t) {
1705
1705
  t.enabled = !1;
1706
1706
  }), this.enable(u, e);
1707
1707
  };
1708
- Y.prototype.disable = function(u, e) {
1708
+ uu.prototype.disable = function(u, e) {
1709
1709
  Array.isArray(u) || (u = [u]);
1710
1710
  const t = [];
1711
1711
  return u.forEach(function(n) {
@@ -1718,7 +1718,7 @@ Y.prototype.disable = function(u, e) {
1718
1718
  this.__rules__[r].enabled = !1, t.push(n);
1719
1719
  }, this), this.__cache__ = null, t;
1720
1720
  };
1721
- Y.prototype.getRules = function(u) {
1721
+ uu.prototype.getRules = function(u) {
1722
1722
  return this.__cache__ === null && this.__compile__(), this.__cache__[u] || [];
1723
1723
  };
1724
1724
  function lu(u, e, t) {
@@ -1797,20 +1797,20 @@ function Bn(u) {
1797
1797
  let f = i.level, _ = 0;
1798
1798
  s.length > 0 && s[0].index === 0 && c > 0 && r[c - 1].type === "text_special" && (s = s.slice(1));
1799
1799
  for (let h = 0; h < s.length; h++) {
1800
- const d = s[h].url, A = u.md.normalizeLink(d);
1801
- if (!u.md.validateLink(A))
1800
+ const d = s[h].url, y = u.md.normalizeLink(d);
1801
+ if (!u.md.validateLink(y))
1802
1802
  continue;
1803
- let y = s[h].text;
1804
- s[h].schema ? s[h].schema === "mailto:" && !/^mailto:/i.test(y) ? y = u.md.normalizeLinkText("mailto:" + y).replace(/^mailto:/, "") : y = u.md.normalizeLinkText(y) : y = u.md.normalizeLinkText("http://" + y).replace(/^http:\/\//, "");
1805
- const D = s[h].index;
1806
- if (D > _) {
1803
+ let v = s[h].text;
1804
+ s[h].schema ? s[h].schema === "mailto:" && !/^mailto:/i.test(v) ? v = u.md.normalizeLinkText("mailto:" + v).replace(/^mailto:/, "") : v = u.md.normalizeLinkText(v) : v = u.md.normalizeLinkText("http://" + v).replace(/^http:\/\//, "");
1805
+ const C = s[h].index;
1806
+ if (C > _) {
1807
1807
  const m = new u.Token("text", "", 0);
1808
- m.content = a.slice(_, D), m.level = f, l.push(m);
1808
+ m.content = a.slice(_, C), m.level = f, l.push(m);
1809
1809
  }
1810
1810
  const k = new u.Token("link_open", "a", 1);
1811
- k.attrs = [["href", A]], k.level = f++, k.markup = "linkify", k.info = "auto", l.push(k);
1811
+ k.attrs = [["href", y]], k.level = f++, k.markup = "linkify", k.info = "auto", l.push(k);
1812
1812
  const p = new u.Token("text", "", 0);
1813
- p.content = y, p.level = f, l.push(p);
1813
+ p.content = v, p.level = f, l.push(p);
1814
1814
  const b = new u.Token("link_close", "a", -1);
1815
1815
  b.level = --f, b.markup = "linkify", b.info = "auto", l.push(b), _ = s[h].lastIndex;
1816
1816
  }
@@ -1883,17 +1883,17 @@ function Vn(u, e) {
1883
1883
  d = u[t].content.charCodeAt(u[t].content.length - 1);
1884
1884
  break;
1885
1885
  }
1886
- let A = 32;
1886
+ let y = 32;
1887
1887
  if (a < s)
1888
- A = i.charCodeAt(a);
1888
+ y = i.charCodeAt(a);
1889
1889
  else
1890
1890
  for (t = r + 1; t < u.length && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t++)
1891
1891
  if (u[t].content) {
1892
- A = u[t].content.charCodeAt(0);
1892
+ y = u[t].content.charCodeAt(0);
1893
1893
  break;
1894
1894
  }
1895
- const y = Gu(d) || Zu(String.fromCharCode(d)), D = Gu(A) || Zu(String.fromCharCode(A)), k = Uu(d), p = Uu(A);
1896
- if (p ? f = !1 : D && (k || y || (f = !1)), k ? _ = !1 : y && (p || D || (_ = !1)), A === 34 && l[0] === '"' && d >= 48 && d <= 57 && (_ = f = !1), f && _ && (f = y, _ = D), !f && !_) {
1895
+ const v = Gu(d) || Zu(String.fromCharCode(d)), C = Gu(y) || Zu(String.fromCharCode(y)), k = Uu(d), p = Uu(y);
1896
+ if (p ? f = !1 : C && (k || v || (f = !1)), k ? _ = !1 : v && (p || C || (_ = !1)), y === 34 && l[0] === '"' && d >= 48 && d <= 57 && (_ = f = !1), f && _ && (f = v, _ = C), !f && !_) {
1897
1897
  h && (o.content = ee(o.content, l.index, Je));
1898
1898
  continue;
1899
1899
  }
@@ -1904,12 +1904,12 @@ function Vn(u, e) {
1904
1904
  break;
1905
1905
  if (b.single === h && n[t].level === c) {
1906
1906
  b = n[t];
1907
- let m, v;
1908
- h ? (m = e.md.options.quotes[2], v = e.md.options.quotes[3]) : (m = e.md.options.quotes[0], v = e.md.options.quotes[1]), o.content = ee(o.content, l.index, v), u[b.token].content = ee(
1907
+ let m, L;
1908
+ h ? (m = e.md.options.quotes[2], L = e.md.options.quotes[3]) : (m = e.md.options.quotes[0], L = e.md.options.quotes[1]), o.content = ee(o.content, l.index, L), u[b.token].content = ee(
1909
1909
  u[b.token].content,
1910
1910
  b.pos,
1911
1911
  m
1912
- ), a += v.length - 1, b.token === r && (a += m.length - 1), i = o.content, s = i.length, n.length = t;
1912
+ ), a += L.length - 1, b.token === r && (a += m.length - 1), i = o.content, s = i.length, n.length = t;
1913
1913
  continue u;
1914
1914
  }
1915
1915
  }
@@ -1952,7 +1952,7 @@ const me = [
1952
1952
  ["text_join", Zn]
1953
1953
  ];
1954
1954
  function Be() {
1955
- this.ruler = new Y();
1955
+ this.ruler = new uu();
1956
1956
  for (let u = 0; u < me.length; u++)
1957
1957
  this.ruler.push(me[u][0], me[u][1]);
1958
1958
  }
@@ -1962,7 +1962,7 @@ Be.prototype.process = function(u) {
1962
1962
  e[t](u);
1963
1963
  };
1964
1964
  Be.prototype.State = St;
1965
- function mu(u, e, t, n) {
1965
+ function xu(u, e, t, n) {
1966
1966
  this.src = u, this.md = e, this.env = t, this.tokens = n, this.bMarks = [], this.eMarks = [], this.tShift = [], this.sCount = [], this.bsCount = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.ddIndent = -1, this.listIndent = -1, this.parentType = "root", this.level = 0;
1967
1967
  const r = this.src;
1968
1968
  for (let o = 0, c = 0, i = 0, a = 0, s = r.length, l = !1; c < s; c++) {
@@ -1977,19 +1977,19 @@ function mu(u, e, t, n) {
1977
1977
  }
1978
1978
  this.bMarks.push(r.length), this.eMarks.push(r.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1;
1979
1979
  }
1980
- mu.prototype.push = function(u, e, t) {
1980
+ xu.prototype.push = function(u, e, t) {
1981
1981
  const n = new lu(u, e, t);
1982
1982
  return n.block = !0, t < 0 && this.level--, n.level = this.level, t > 0 && this.level++, this.tokens.push(n), n;
1983
1983
  };
1984
- mu.prototype.isEmpty = function(e) {
1984
+ xu.prototype.isEmpty = function(e) {
1985
1985
  return this.bMarks[e] + this.tShift[e] >= this.eMarks[e];
1986
1986
  };
1987
- mu.prototype.skipEmptyLines = function(e) {
1987
+ xu.prototype.skipEmptyLines = function(e) {
1988
1988
  for (let t = this.lineMax; e < t && !(this.bMarks[e] + this.tShift[e] < this.eMarks[e]); e++)
1989
1989
  ;
1990
1990
  return e;
1991
1991
  };
1992
- mu.prototype.skipSpaces = function(e) {
1992
+ xu.prototype.skipSpaces = function(e) {
1993
1993
  for (let t = this.src.length; e < t; e++) {
1994
1994
  const n = this.src.charCodeAt(e);
1995
1995
  if (!Z(n))
@@ -1997,7 +1997,7 @@ mu.prototype.skipSpaces = function(e) {
1997
1997
  }
1998
1998
  return e;
1999
1999
  };
2000
- mu.prototype.skipSpacesBack = function(e, t) {
2000
+ xu.prototype.skipSpacesBack = function(e, t) {
2001
2001
  if (e <= t)
2002
2002
  return e;
2003
2003
  for (; e > t; )
@@ -2005,12 +2005,12 @@ mu.prototype.skipSpacesBack = function(e, t) {
2005
2005
  return e + 1;
2006
2006
  return e;
2007
2007
  };
2008
- mu.prototype.skipChars = function(e, t) {
2008
+ xu.prototype.skipChars = function(e, t) {
2009
2009
  for (let n = this.src.length; e < n && this.src.charCodeAt(e) === t; e++)
2010
2010
  ;
2011
2011
  return e;
2012
2012
  };
2013
- mu.prototype.skipCharsBack = function(e, t, n) {
2013
+ xu.prototype.skipCharsBack = function(e, t, n) {
2014
2014
  if (e <= n)
2015
2015
  return e;
2016
2016
  for (; e > n; )
@@ -2018,7 +2018,7 @@ mu.prototype.skipCharsBack = function(e, t, n) {
2018
2018
  return e + 1;
2019
2019
  return e;
2020
2020
  };
2021
- mu.prototype.getLines = function(e, t, n, r) {
2021
+ xu.prototype.getLines = function(e, t, n, r) {
2022
2022
  if (e >= t)
2023
2023
  return "";
2024
2024
  const o = new Array(t - e);
@@ -2040,7 +2040,7 @@ mu.prototype.getLines = function(e, t, n, r) {
2040
2040
  }
2041
2041
  return o.join("");
2042
2042
  };
2043
- mu.prototype.Token = lu;
2043
+ xu.prototype.Token = lu;
2044
2044
  const Gn = 65536;
2045
2045
  function xe(u, e) {
2046
2046
  const t = u.bMarks[e] + u.tShift[e], n = u.eMarks[e];
@@ -2097,44 +2097,44 @@ function Kn(u, e, t, n) {
2097
2097
  return !0;
2098
2098
  const _ = u.parentType;
2099
2099
  u.parentType = "table";
2100
- const h = u.md.block.ruler.getRules("blockquote"), d = u.push("table_open", "table", 1), A = [e, 0];
2101
- d.map = A;
2102
- const y = u.push("thead_open", "thead", 1);
2103
- y.map = [e, e + 1];
2104
- const D = u.push("tr_open", "tr", 1);
2105
- D.map = [e, e + 1];
2100
+ const h = u.md.block.ruler.getRules("blockquote"), d = u.push("table_open", "table", 1), y = [e, 0];
2101
+ d.map = y;
2102
+ const v = u.push("thead_open", "thead", 1);
2103
+ v.map = [e, e + 1];
2104
+ const C = u.push("tr_open", "tr", 1);
2105
+ C.map = [e, e + 1];
2106
2106
  for (let b = 0; b < s.length; b++) {
2107
2107
  const m = u.push("th_open", "th", 1);
2108
2108
  l[b] && (m.attrs = [["style", "text-align:" + l[b]]]);
2109
- const v = u.push("inline", "", 0);
2110
- v.content = s[b].trim(), v.children = [], u.push("th_close", "th", -1);
2109
+ const L = u.push("inline", "", 0);
2110
+ L.content = s[b].trim(), L.children = [], u.push("th_close", "th", -1);
2111
2111
  }
2112
2112
  u.push("tr_close", "tr", -1), u.push("thead_close", "thead", -1);
2113
2113
  let k, p = 0;
2114
2114
  for (r = e + 2; r < t && !(u.sCount[r] < u.blkIndent); r++) {
2115
2115
  let b = !1;
2116
- for (let v = 0, j = h.length; v < j; v++)
2117
- if (h[v](u, r, t, !0)) {
2116
+ for (let L = 0, E = h.length; L < E; L++)
2117
+ if (h[L](u, r, t, !0)) {
2118
2118
  b = !0;
2119
2119
  break;
2120
2120
  }
2121
2121
  if (b || (a = xe(u, r).trim(), !a) || u.sCount[r] - u.blkIndent >= 4 || (s = Qe(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), p += f - s.length, p > Gn))
2122
2122
  break;
2123
2123
  if (r === e + 2) {
2124
- const v = u.push("tbody_open", "tbody", 1);
2125
- v.map = k = [e + 2, 0];
2124
+ const L = u.push("tbody_open", "tbody", 1);
2125
+ L.map = k = [e + 2, 0];
2126
2126
  }
2127
2127
  const m = u.push("tr_open", "tr", 1);
2128
2128
  m.map = [r, r + 1];
2129
- for (let v = 0; v < f; v++) {
2130
- const j = u.push("td_open", "td", 1);
2131
- l[v] && (j.attrs = [["style", "text-align:" + l[v]]]);
2132
- const L = u.push("inline", "", 0);
2133
- L.content = s[v] ? s[v].trim() : "", L.children = [], u.push("td_close", "td", -1);
2129
+ for (let L = 0; L < f; L++) {
2130
+ const E = u.push("td_open", "td", 1);
2131
+ l[L] && (E.attrs = [["style", "text-align:" + l[L]]]);
2132
+ const P = u.push("inline", "", 0);
2133
+ P.content = s[L] ? s[L].trim() : "", P.children = [], u.push("td_close", "td", -1);
2134
2134
  }
2135
2135
  u.push("tr_close", "tr", -1);
2136
2136
  }
2137
- return k && (u.push("tbody_close", "tbody", -1), k[1] = r), u.push("table_close", "table", -1), A[1] = r, u.parentType = _, u.line = r, !0;
2137
+ return k && (u.push("tbody_close", "tbody", -1), k[1] = r), u.push("table_close", "table", -1), y[1] = r, u.parentType = _, u.line = r, !0;
2138
2138
  }
2139
2139
  function Jn(u, e, t) {
2140
2140
  if (u.sCount[e] - u.blkIndent < 4)
@@ -2198,24 +2198,24 @@ function Wn(u, e, t, n) {
2198
2198
  if (r = u.bMarks[d] + u.tShift[d], o = u.eMarks[d], r >= o)
2199
2199
  break;
2200
2200
  if (u.src.charCodeAt(r++) === 62 && !p) {
2201
- let m = u.sCount[d] + 1, v, j;
2202
- u.src.charCodeAt(r) === 32 ? (r++, m++, j = !1, v = !0) : u.src.charCodeAt(r) === 9 ? (v = !0, (u.bsCount[d] + m) % 4 === 3 ? (r++, m++, j = !1) : j = !0) : v = !1;
2203
- let L = m;
2201
+ let m = u.sCount[d] + 1, L, E;
2202
+ u.src.charCodeAt(r) === 32 ? (r++, m++, E = !1, L = !0) : u.src.charCodeAt(r) === 9 ? (L = !0, (u.bsCount[d] + m) % 4 === 3 ? (r++, m++, E = !1) : E = !0) : L = !1;
2203
+ let P = m;
2204
2204
  for (i.push(u.bMarks[d]), u.bMarks[d] = r; r < o; ) {
2205
- const V = u.src.charCodeAt(r);
2206
- if (Z(V))
2207
- V === 9 ? L += 4 - (L + u.bsCount[d] + (j ? 1 : 0)) % 4 : L++;
2205
+ const j = u.src.charCodeAt(r);
2206
+ if (Z(j))
2207
+ j === 9 ? P += 4 - (P + u.bsCount[d] + (E ? 1 : 0)) % 4 : P++;
2208
2208
  else
2209
2209
  break;
2210
2210
  r++;
2211
2211
  }
2212
- h = r >= o, a.push(u.bsCount[d]), u.bsCount[d] = u.sCount[d] + 1 + (v ? 1 : 0), s.push(u.sCount[d]), u.sCount[d] = L - m, l.push(u.tShift[d]), u.tShift[d] = r - u.bMarks[d];
2212
+ h = r >= o, a.push(u.bsCount[d]), u.bsCount[d] = u.sCount[d] + 1 + (L ? 1 : 0), s.push(u.sCount[d]), u.sCount[d] = P - m, l.push(u.tShift[d]), u.tShift[d] = r - u.bMarks[d];
2213
2213
  continue;
2214
2214
  }
2215
2215
  if (h)
2216
2216
  break;
2217
2217
  let b = !1;
2218
- for (let m = 0, v = f.length; m < v; m++)
2218
+ for (let m = 0, L = f.length; m < L; m++)
2219
2219
  if (f[m](u, d, t, !0)) {
2220
2220
  b = !0;
2221
2221
  break;
@@ -2226,17 +2226,17 @@ function Wn(u, e, t, n) {
2226
2226
  }
2227
2227
  i.push(u.bMarks[d]), a.push(u.bsCount[d]), l.push(u.tShift[d]), s.push(u.sCount[d]), u.sCount[d] = -1;
2228
2228
  }
2229
- const A = u.blkIndent;
2229
+ const y = u.blkIndent;
2230
2230
  u.blkIndent = 0;
2231
- const y = u.push("blockquote_open", "blockquote", 1);
2232
- y.markup = ">";
2233
- const D = [e, 0];
2234
- y.map = D, u.md.block.tokenize(u, e, d);
2231
+ const v = u.push("blockquote_open", "blockquote", 1);
2232
+ v.markup = ">";
2233
+ const C = [e, 0];
2234
+ v.map = C, u.md.block.tokenize(u, e, d);
2235
2235
  const k = u.push("blockquote_close", "blockquote", -1);
2236
- k.markup = ">", u.lineMax = c, u.parentType = _, D[1] = u.line;
2236
+ k.markup = ">", u.lineMax = c, u.parentType = _, C[1] = u.line;
2237
2237
  for (let p = 0; p < l.length; p++)
2238
2238
  u.bMarks[p + e] = i[p], u.tShift[p + e] = l[p], u.sCount[p + e] = s[p], u.bsCount[p + e] = a[p];
2239
- return u.blkIndent = A, !0;
2239
+ return u.blkIndent = y, !0;
2240
2240
  }
2241
2241
  function Xn(u, e, t, n) {
2242
2242
  const r = u.eMarks[e];
@@ -2318,39 +2318,39 @@ function ur(u, e, t, n) {
2318
2318
  return !1;
2319
2319
  if (n)
2320
2320
  return !0;
2321
- const d = u.src.charCodeAt(h - 1), A = u.tokens.length;
2321
+ const d = u.src.charCodeAt(h - 1), y = u.tokens.length;
2322
2322
  f ? (i = u.push("ordered_list_open", "ol", 1), _ !== 1 && (i.attrs = [["start", _]])) : i = u.push("bullet_list_open", "ul", 1);
2323
- const y = [a, 0];
2324
- i.map = y, i.markup = String.fromCharCode(d);
2325
- let D = !1;
2323
+ const v = [a, 0];
2324
+ i.map = v, i.markup = String.fromCharCode(d);
2325
+ let C = !1;
2326
2326
  const k = u.md.block.ruler.getRules("list"), p = u.parentType;
2327
2327
  for (u.parentType = "list"; a < t; ) {
2328
2328
  o = h, r = u.eMarks[a];
2329
2329
  const b = u.sCount[a] + h - (u.bMarks[a] + u.tShift[a]);
2330
2330
  let m = b;
2331
2331
  for (; o < r; ) {
2332
- const du = u.src.charCodeAt(o);
2333
- if (du === 9)
2332
+ const fu = u.src.charCodeAt(o);
2333
+ if (fu === 9)
2334
2334
  m += 4 - (m + u.bsCount[a]) % 4;
2335
- else if (du === 32)
2335
+ else if (fu === 32)
2336
2336
  m++;
2337
2337
  else
2338
2338
  break;
2339
2339
  o++;
2340
2340
  }
2341
- const v = o;
2342
- let j;
2343
- v >= r ? j = 1 : j = m - b, j > 4 && (j = 1);
2344
- const L = b + j;
2341
+ const L = o;
2342
+ let E;
2343
+ L >= r ? E = 1 : E = m - b, E > 4 && (E = 1);
2344
+ const P = b + E;
2345
2345
  i = u.push("list_item_open", "li", 1), i.markup = String.fromCharCode(d);
2346
- const V = [a, 0];
2347
- i.map = V, f && (i.info = u.src.slice(c, h - 1));
2348
- const nu = u.tight, gu = u.tShift[a], xu = u.sCount[a], _u = u.listIndent;
2349
- if (u.listIndent = u.blkIndent, u.blkIndent = L, u.tight = !0, u.tShift[a] = v - u.bMarks[a], u.sCount[a] = m, v >= r && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, a, t, !0), (!u.tight || D) && (s = !1), D = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = _u, u.tShift[a] = gu, u.sCount[a] = xu, u.tight = nu, i = u.push("list_item_close", "li", -1), i.markup = String.fromCharCode(d), a = u.line, V[1] = a, a >= t || u.sCount[a] < u.blkIndent || u.sCount[a] - u.blkIndent >= 4)
2346
+ const j = [a, 0];
2347
+ i.map = j, f && (i.info = u.src.slice(c, h - 1));
2348
+ const K = u.tight, du = u.tShift[a], _u = u.sCount[a], gu = u.listIndent;
2349
+ if (u.listIndent = u.blkIndent, u.blkIndent = P, u.tight = !0, u.tShift[a] = L - u.bMarks[a], u.sCount[a] = m, L >= r && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, a, t, !0), (!u.tight || C) && (s = !1), C = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = gu, u.tShift[a] = du, u.sCount[a] = _u, u.tight = K, i = u.push("list_item_close", "li", -1), i.markup = String.fromCharCode(d), a = u.line, j[1] = a, a >= t || u.sCount[a] < u.blkIndent || u.sCount[a] - u.blkIndent >= 4)
2350
2350
  break;
2351
2351
  let wu = !1;
2352
- for (let du = 0, Su = k.length; du < Su; du++)
2353
- if (k[du](u, a, t, !0)) {
2352
+ for (let fu = 0, Su = k.length; fu < Su; fu++)
2353
+ if (k[fu](u, a, t, !0)) {
2354
2354
  wu = !0;
2355
2355
  break;
2356
2356
  }
@@ -2365,7 +2365,7 @@ function ur(u, e, t, n) {
2365
2365
  if (d !== u.src.charCodeAt(h - 1))
2366
2366
  break;
2367
2367
  }
2368
- return f ? i = u.push("ordered_list_close", "ol", -1) : i = u.push("bullet_list_close", "ul", -1), i.markup = String.fromCharCode(d), y[1] = a, u.line = a, u.parentType = p, s && Yn(u, A), !0;
2368
+ return f ? i = u.push("ordered_list_close", "ol", -1) : i = u.push("bullet_list_close", "ul", -1), i.markup = String.fromCharCode(d), v[1] = a, u.line = a, u.parentType = p, s && Yn(u, y), !0;
2369
2369
  }
2370
2370
  function er(u, e, t, n) {
2371
2371
  let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e], c = e + 1;
@@ -2377,19 +2377,19 @@ function er(u, e, t, n) {
2377
2377
  return null;
2378
2378
  let b = !1;
2379
2379
  if (u.sCount[k] - u.blkIndent > 3 && (b = !0), u.sCount[k] < 0 && (b = !0), !b) {
2380
- const j = u.md.block.ruler.getRules("reference"), L = u.parentType;
2380
+ const E = u.md.block.ruler.getRules("reference"), P = u.parentType;
2381
2381
  u.parentType = "reference";
2382
- let V = !1;
2383
- for (let nu = 0, gu = j.length; nu < gu; nu++)
2384
- if (j[nu](u, k, p, !0)) {
2385
- V = !0;
2382
+ let j = !1;
2383
+ for (let K = 0, du = E.length; K < du; K++)
2384
+ if (E[K](u, k, p, !0)) {
2385
+ j = !0;
2386
2386
  break;
2387
2387
  }
2388
- if (u.parentType = L, V)
2388
+ if (u.parentType = P, j)
2389
2389
  return null;
2390
2390
  }
2391
- const m = u.bMarks[k] + u.tShift[k], v = u.eMarks[k];
2392
- return u.src.slice(m, v + 1);
2391
+ const m = u.bMarks[k] + u.tShift[k], L = u.eMarks[k];
2392
+ return u.src.slice(m, L + 1);
2393
2393
  }
2394
2394
  let a = u.src.slice(r, o + 1);
2395
2395
  o = a.length;
@@ -2433,21 +2433,21 @@ function er(u, e, t, n) {
2433
2433
  p !== null && (a += p, o = a.length, c++);
2434
2434
  } else if (!Z(k)) break;
2435
2435
  }
2436
- let A = u.md.helpers.parseLinkTitle(a, r, o);
2437
- for (; A.can_continue; ) {
2436
+ let y = u.md.helpers.parseLinkTitle(a, r, o);
2437
+ for (; y.can_continue; ) {
2438
2438
  const k = i(c);
2439
2439
  if (k === null) break;
2440
- a += k, r = o, o = a.length, c++, A = u.md.helpers.parseLinkTitle(a, r, o, A);
2440
+ a += k, r = o, o = a.length, c++, y = u.md.helpers.parseLinkTitle(a, r, o, y);
2441
2441
  }
2442
- let y;
2443
- for (r < o && d !== r && A.ok ? (y = A.str, r = A.pos) : (y = "", r = _, c = h); r < o; ) {
2442
+ let v;
2443
+ for (r < o && d !== r && y.ok ? (v = y.str, r = y.pos) : (v = "", r = _, c = h); r < o; ) {
2444
2444
  const k = a.charCodeAt(r);
2445
2445
  if (!Z(k))
2446
2446
  break;
2447
2447
  r++;
2448
2448
  }
2449
- if (r < o && a.charCodeAt(r) !== 10 && y)
2450
- for (y = "", r = _, c = h; r < o; ) {
2449
+ if (r < o && a.charCodeAt(r) !== 10 && v)
2450
+ for (v = "", r = _, c = h; r < o; ) {
2451
2451
  const k = a.charCodeAt(r);
2452
2452
  if (!Z(k))
2453
2453
  break;
@@ -2455,8 +2455,8 @@ function er(u, e, t, n) {
2455
2455
  }
2456
2456
  if (r < o && a.charCodeAt(r) !== 10)
2457
2457
  return !1;
2458
- const D = se(a.slice(1, s));
2459
- return D ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[D] > "u" && (u.env.references[D] = { title: y, href: f }), u.line = c), !0) : !1;
2458
+ const C = se(a.slice(1, s));
2459
+ return C ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[C] > "u" && (u.env.references[C] = { title: v, href: f }), u.line = c), !0) : !1;
2460
2460
  }
2461
2461
  const tr = [
2462
2462
  "address",
@@ -2655,7 +2655,7 @@ const te = [
2655
2655
  ["paragraph", _r]
2656
2656
  ];
2657
2657
  function le() {
2658
- this.ruler = new Y();
2658
+ this.ruler = new uu();
2659
2659
  for (let u = 0; u < te.length; u++)
2660
2660
  this.ruler.push(te[u][0], te[u][1], { alt: (te[u][2] || []).slice() });
2661
2661
  }
@@ -2685,7 +2685,7 @@ le.prototype.parse = function(u, e, t, n) {
2685
2685
  const r = new this.State(u, e, t, n);
2686
2686
  this.tokenize(r, r.line, r.lineMax);
2687
2687
  };
2688
- le.prototype.State = mu;
2688
+ le.prototype.State = xu;
2689
2689
  function Xu(u, e, t, n) {
2690
2690
  this.src = u, this.env = t, this.md = e, this.tokens = n, this.tokens_meta = Array(n.length), this.pos = 0, this.posMax = this.src.length, this.level = 0, this.pending = "", this.pendingLevel = 0, this.cache = {}, this.delimiters = [], this._prev_delimiters = [], this.backticks = {}, this.backticksScanned = !1, this.linkLevel = 0;
2691
2691
  }
@@ -2980,8 +2980,8 @@ function Ir(u, e) {
2980
2980
  }
2981
2981
  if (!e) {
2982
2982
  u.pos = _, u.posMax = h;
2983
- const A = u.push("link_open", "a", 1), y = [["href", c]];
2984
- A.attrs = y, i && y.push(["title", i]), u.linkLevel++, u.md.inline.tokenize(u), u.linkLevel--, u.push("link_close", "a", -1);
2983
+ const y = u.push("link_open", "a", 1), v = [["href", c]];
2984
+ y.attrs = v, i && v.push(["title", i]), u.linkLevel++, u.md.inline.tokenize(u), u.linkLevel--, u.push("link_close", "a", -1);
2985
2985
  }
2986
2986
  return u.pos = d, u.posMax = f, !0;
2987
2987
  }
@@ -3017,15 +3017,15 @@ function Tr(u, e) {
3017
3017
  }
3018
3018
  if (!e) {
3019
3019
  n = u.src.slice(h, d);
3020
- const A = [];
3020
+ const y = [];
3021
3021
  u.md.inline.parse(
3022
3022
  n,
3023
3023
  u.md,
3024
3024
  u.env,
3025
- A
3025
+ y
3026
3026
  );
3027
- const y = u.push("image", "img", 0), D = [["src", l], ["alt", ""]];
3028
- y.attrs = D, y.children = A, y.content = n, a && D.push(["title", a]);
3027
+ const v = u.push("image", "img", 0), C = [["src", l], ["alt", ""]];
3028
+ v.attrs = C, v.children = y, v.content = n, a && C.push(["title", a]);
3029
3029
  }
3030
3030
  return u.pos = o, u.posMax = _, !0;
3031
3031
  }
@@ -3188,10 +3188,10 @@ const _e = [
3188
3188
  ["fragments_join", $r]
3189
3189
  ];
3190
3190
  function Yu() {
3191
- this.ruler = new Y();
3191
+ this.ruler = new uu();
3192
3192
  for (let u = 0; u < _e.length; u++)
3193
3193
  this.ruler.push(_e[u][0], _e[u][1]);
3194
- this.ruler2 = new Y();
3194
+ this.ruler2 = new uu();
3195
3195
  for (let u = 0; u < ge.length; u++)
3196
3196
  this.ruler2.push(ge[u][0], ge[u][1]);
3197
3197
  }
@@ -3382,18 +3382,18 @@ function De(u, e) {
3382
3382
  const t = new eo(u, e);
3383
3383
  return u.__compiled__[t.schema].normalize(t, u), t;
3384
3384
  }
3385
- function tu(u, e) {
3386
- if (!(this instanceof tu))
3387
- return new tu(u, e);
3385
+ function nu(u, e) {
3386
+ if (!(this instanceof nu))
3387
+ return new nu(u, e);
3388
3388
  e || Jr(u) && (e = u, u = {}), this.__opts__ = Ce({}, Bt, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = Ce({}, Qr, u), this.__compiled__ = {}, this.__tlds__ = Xr, this.__tlds_replaced__ = !1, this.re = {}, ce(this);
3389
3389
  }
3390
- tu.prototype.add = function(e, t) {
3390
+ nu.prototype.add = function(e, t) {
3391
3391
  return this.__schemas__[e] = t, ce(this), this;
3392
3392
  };
3393
- tu.prototype.set = function(e) {
3393
+ nu.prototype.set = function(e) {
3394
3394
  return this.__opts__ = Ce(this.__opts__, e), this;
3395
3395
  };
3396
- tu.prototype.test = function(e) {
3396
+ nu.prototype.test = function(e) {
3397
3397
  if (this.__text_cache__ = e, this.__index__ = -1, !e.length)
3398
3398
  return !1;
3399
3399
  let t, n, r, o, c, i, a, s, l;
@@ -3406,13 +3406,13 @@ tu.prototype.test = function(e) {
3406
3406
  }
3407
3407
  return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (s = e.search(this.re.host_fuzzy_test), s >= 0 && (this.__index__ < 0 || s < this.__index__) && (n = e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (c = n.index + n[1].length, (this.__index__ < 0 || c < this.__index__) && (this.__schema__ = "", this.__index__ = c, this.__last_index__ = n.index + n[0].length))), this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && (l = e.indexOf("@"), l >= 0 && (r = e.match(this.re.email_fuzzy)) !== null && (c = r.index + r[1].length, i = r.index + r[0].length, (this.__index__ < 0 || c < this.__index__ || c === this.__index__ && i > this.__last_index__) && (this.__schema__ = "mailto:", this.__index__ = c, this.__last_index__ = i))), this.__index__ >= 0;
3408
3408
  };
3409
- tu.prototype.pretest = function(e) {
3409
+ nu.prototype.pretest = function(e) {
3410
3410
  return this.re.pretest.test(e);
3411
3411
  };
3412
- tu.prototype.testSchemaAt = function(e, t, n) {
3412
+ nu.prototype.testSchemaAt = function(e, t, n) {
3413
3413
  return this.__compiled__[t.toLowerCase()] ? this.__compiled__[t.toLowerCase()].validate(e, n, this) : 0;
3414
3414
  };
3415
- tu.prototype.match = function(e) {
3415
+ nu.prototype.match = function(e) {
3416
3416
  const t = [];
3417
3417
  let n = 0;
3418
3418
  this.__index__ >= 0 && this.__text_cache__ === e && (t.push(De(this, n)), n = this.__last_index__);
@@ -3421,28 +3421,28 @@ tu.prototype.match = function(e) {
3421
3421
  t.push(De(this, n)), r = r.slice(this.__last_index__), n += this.__last_index__;
3422
3422
  return t.length ? t : null;
3423
3423
  };
3424
- tu.prototype.matchAtStart = function(e) {
3424
+ nu.prototype.matchAtStart = function(e) {
3425
3425
  if (this.__text_cache__ = e, this.__index__ = -1, !e.length) return null;
3426
3426
  const t = this.re.schema_at_start.exec(e);
3427
3427
  if (!t) return null;
3428
3428
  const n = this.testSchemaAt(e, t[2], t[0].length);
3429
3429
  return n ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + n, De(this, 0)) : null;
3430
3430
  };
3431
- tu.prototype.tlds = function(e, t) {
3431
+ nu.prototype.tlds = function(e, t) {
3432
3432
  return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(n, r, o) {
3433
3433
  return n !== o[r - 1];
3434
3434
  }).reverse(), ce(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, ce(this), this);
3435
3435
  };
3436
- tu.prototype.normalize = function(e) {
3436
+ nu.prototype.normalize = function(e) {
3437
3437
  e.schema || (e.url = "http://" + e.url), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = "mailto:" + e.url);
3438
3438
  };
3439
- tu.prototype.onCompile = function() {
3439
+ nu.prototype.onCompile = function() {
3440
3440
  };
3441
- const Lu = 2147483647, fu = 36, Me = 1, Ku = 26, to = 38, no = 700, qt = 72, Mt = 128, Ot = "-", ro = /^xn--/, oo = /[^\0-\x7F]/, io = /[\x2E\u3002\uFF0E\uFF61]/g, co = {
3441
+ const Lu = 2147483647, hu = 36, Me = 1, Ku = 26, to = 38, no = 700, qt = 72, Mt = 128, Ot = "-", ro = /^xn--/, oo = /[^\0-\x7F]/, io = /[\x2E\u3002\uFF0E\uFF61]/g, co = {
3442
3442
  overflow: "Overflow: input needs wider integers to process",
3443
3443
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
3444
3444
  "invalid-input": "Invalid input"
3445
- }, ke = fu - Me, hu = Math.floor, ve = String.fromCharCode;
3445
+ }, ke = hu - Me, pu = Math.floor, ve = String.fromCharCode;
3446
3446
  function ku(u) {
3447
3447
  throw new RangeError(co[u]);
3448
3448
  }
@@ -3475,14 +3475,14 @@ function Pt(u) {
3475
3475
  return e;
3476
3476
  }
3477
3477
  const so = (u) => String.fromCodePoint(...u), lo = function(u) {
3478
- return u >= 48 && u < 58 ? 26 + (u - 48) : u >= 65 && u < 91 ? u - 65 : u >= 97 && u < 123 ? u - 97 : fu;
3478
+ return u >= 48 && u < 58 ? 26 + (u - 48) : u >= 65 && u < 91 ? u - 65 : u >= 97 && u < 123 ? u - 97 : hu;
3479
3479
  }, rt = function(u, e) {
3480
3480
  return u + 22 + 75 * (u < 26) - ((e != 0) << 5);
3481
3481
  }, jt = function(u, e, t) {
3482
3482
  let n = 0;
3483
- for (u = t ? hu(u / no) : u >> 1, u += hu(u / e); u > ke * Ku >> 1; n += fu)
3484
- u = hu(u / ke);
3485
- return hu(n + (ke + 1) * u / (u + to));
3483
+ for (u = t ? pu(u / no) : u >> 1, u += pu(u / e); u > ke * Ku >> 1; n += hu)
3484
+ u = pu(u / ke);
3485
+ return pu(n + (ke + 1) * u / (u + to));
3486
3486
  }, Ht = function(u) {
3487
3487
  const e = [], t = u.length;
3488
3488
  let n = 0, r = Mt, o = qt, c = u.lastIndexOf(Ot);
@@ -3491,18 +3491,18 @@ const so = (u) => String.fromCodePoint(...u), lo = function(u) {
3491
3491
  u.charCodeAt(i) >= 128 && ku("not-basic"), e.push(u.charCodeAt(i));
3492
3492
  for (let i = c > 0 ? c + 1 : 0; i < t; ) {
3493
3493
  const a = n;
3494
- for (let l = 1, f = fu; ; f += fu) {
3494
+ for (let l = 1, f = hu; ; f += hu) {
3495
3495
  i >= t && ku("invalid-input");
3496
3496
  const _ = lo(u.charCodeAt(i++));
3497
- _ >= fu && ku("invalid-input"), _ > hu((Lu - n) / l) && ku("overflow"), n += _ * l;
3497
+ _ >= hu && ku("invalid-input"), _ > pu((Lu - n) / l) && ku("overflow"), n += _ * l;
3498
3498
  const h = f <= o ? Me : f >= o + Ku ? Ku : f - o;
3499
3499
  if (_ < h)
3500
3500
  break;
3501
- const d = fu - h;
3502
- l > hu(Lu / d) && ku("overflow"), l *= d;
3501
+ const d = hu - h;
3502
+ l > pu(Lu / d) && ku("overflow"), l *= d;
3503
3503
  }
3504
3504
  const s = e.length + 1;
3505
- o = jt(n - a, s, a == 0), hu(n / s) > Lu - r && ku("overflow"), r += hu(n / s), n %= s, e.splice(n++, 0, r);
3505
+ o = jt(n - a, s, a == 0), pu(n / s) > Lu - r && ku("overflow"), r += pu(n / s), n %= s, e.splice(n++, 0, r);
3506
3506
  }
3507
3507
  return String.fromCodePoint(...e);
3508
3508
  }, $t = function(u) {
@@ -3519,18 +3519,18 @@ const so = (u) => String.fromCodePoint(...u), lo = function(u) {
3519
3519
  for (const l of u)
3520
3520
  l >= n && l < a && (a = l);
3521
3521
  const s = i + 1;
3522
- a - n > hu((Lu - r) / s) && ku("overflow"), r += (a - n) * s, n = a;
3522
+ a - n > pu((Lu - r) / s) && ku("overflow"), r += (a - n) * s, n = a;
3523
3523
  for (const l of u)
3524
3524
  if (l < n && ++r > Lu && ku("overflow"), l === n) {
3525
3525
  let f = r;
3526
- for (let _ = fu; ; _ += fu) {
3526
+ for (let _ = hu; ; _ += hu) {
3527
3527
  const h = _ <= o ? Me : _ >= o + Ku ? Ku : _ - o;
3528
3528
  if (f < h)
3529
3529
  break;
3530
- const d = f - h, A = fu - h;
3530
+ const d = f - h, y = hu - h;
3531
3531
  e.push(
3532
- ve(rt(h + d % A, 0))
3533
- ), f = hu(d / A);
3532
+ ve(rt(h + d % y, 0))
3533
+ ), f = pu(d / y);
3534
3534
  }
3535
3535
  e.push(ve(rt(f, 0))), o = jt(r, s, i === c), r = 0, ++i;
3536
3536
  }
@@ -3763,7 +3763,7 @@ function yo(u) {
3763
3763
  function ru(u, e) {
3764
3764
  if (!(this instanceof ru))
3765
3765
  return new ru(u, e);
3766
- e || Ne(u) || (e = u || {}, u = "default"), this.inline = new Yu(), this.block = new le(), this.core = new Be(), this.renderer = new Pu(), this.linkify = new tu(), this.validateLink = ko, this.normalizeLink = vo, this.normalizeLinkText = yo, this.utils = An, this.helpers = ae({}, Fn), this.options = {}, this.configure(u), e && this.set(e);
3766
+ e || Ne(u) || (e = u || {}, u = "default"), this.inline = new Yu(), this.block = new le(), this.core = new Be(), this.renderer = new Pu(), this.linkify = new nu(), this.validateLink = ko, this.normalizeLink = vo, this.normalizeLinkText = yo, this.utils = An, this.helpers = ae({}, Fn), this.options = {}, this.configure(u), e && this.set(e);
3767
3767
  }
3768
3768
  ru.prototype.set = function(u) {
3769
3769
  return ae(this.options, u), this;
@@ -3851,7 +3851,7 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
3851
3851
  emits: ["aiChatEmit"],
3852
3852
  setup(u, { emit: e }) {
3853
3853
  const t = u, n = N(""), r = N(""), o = e, c = new ru(), i = N(), a = su(() => t.item.content), s = su(() => t.item.think), { toClipboard: l } = B0();
3854
- pu(
3854
+ bu(
3855
3855
  () => a.value,
3856
3856
  (p, b) => {
3857
3857
  if (!p) {
@@ -3861,7 +3861,7 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
3861
3861
  n.value = c.render(p);
3862
3862
  },
3863
3863
  { immediate: !0 }
3864
- ), pu(
3864
+ ), bu(
3865
3865
  () => s.value,
3866
3866
  (p, b) => {
3867
3867
  if (!p) {
@@ -3872,10 +3872,10 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
3872
3872
  },
3873
3873
  { immediate: !0 }
3874
3874
  );
3875
- const f = N(!0), _ = su(() => t.item.file && t.item.file.length ? T("引用$0篇资料作为参考", t.item.file.length) : ""), h = su(() => t.item.loading && !n.value ? T("思考中…") : t.item.thinkTime ? T("已深度思考(用时$0秒)", t.item.thinkTime) : T("已深度思考")), d = su(() => !n.value && !r.value), A = () => {
3875
+ const f = N(!0), _ = su(() => t.item.file && t.item.file.length ? T("引用$0篇资料作为参考", t.item.file.length) : ""), h = su(() => t.item.loading && !n.value ? T("思考中…") : t.item.thinkTime ? T("已深度思考(用时$0秒)", t.item.thinkTime) : T("已深度思考")), d = su(() => !n.value && !r.value), y = () => {
3876
3876
  var p, b, m;
3877
3877
  return ((p = t.item) == null ? void 0 : p.audioStatus) == "normal" ? T("语音朗读") : ((b = t.item) == null ? void 0 : b.audioStatus) == "generated" || ((m = t.item) == null ? void 0 : m.audioStatus) == "loading" ? T("停止朗读") : T("语音朗读");
3878
- }, y = () => {
3878
+ }, v = () => {
3879
3879
  var p;
3880
3880
  try {
3881
3881
  if (!n.value) return;
@@ -3884,9 +3884,9 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
3884
3884
  } catch {
3885
3885
  Pe.error(T("复制失败"));
3886
3886
  }
3887
- }, D = (p) => {
3887
+ }, C = (p) => {
3888
3888
  if (p == "copy") {
3889
- y();
3889
+ v();
3890
3890
  return;
3891
3891
  }
3892
3892
  if (p == "saveKnowledgebase") {
@@ -3918,11 +3918,11 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
3918
3918
  g(
3919
3919
  "span",
3920
3920
  Eo,
3921
- $(_.value),
3921
+ V(_.value),
3922
3922
  1
3923
3923
  /* TEXT */
3924
3924
  ),
3925
- P(C(ft), {
3925
+ H(A(ft), {
3926
3926
  size: "medium",
3927
3927
  iconColor: "#999999"
3928
3928
  })
@@ -3969,7 +3969,7 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
3969
3969
  !p.item.loading && d.value && !p.item.file.length ? (S(), R(
3970
3970
  "div",
3971
3971
  wo,
3972
- $(C(T)("已暂停生成")),
3972
+ V(A(T)("已暂停生成")),
3973
3973
  1
3974
3974
  /* TEXT */
3975
3975
  )) : z("v-if", !0),
@@ -3987,17 +3987,17 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
3987
3987
  g(
3988
3988
  "div",
3989
3989
  So,
3990
- $(h.value),
3990
+ V(h.value),
3991
3991
  1
3992
3992
  /* TEXT */
3993
3993
  ),
3994
3994
  g("div", Io, [
3995
- f.value ? z("v-if", !0) : (S(), W(C(ht), {
3995
+ f.value ? z("v-if", !0) : (S(), X(A(ht), {
3996
3996
  key: 0,
3997
3997
  size: "medium",
3998
3998
  iconColor: "#999999"
3999
3999
  })),
4000
- f.value ? (S(), W(C(pt), {
4000
+ f.value ? (S(), X(A(pt), {
4001
4001
  key: 1,
4002
4002
  size: "medium",
4003
4003
  iconColor: "#999999"
@@ -4020,26 +4020,26 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
4020
4020
  innerHTML: n.value
4021
4021
  }, null, 8, zo)) : z("v-if", !0),
4022
4022
  p.isNew && !p.item.loading ? (S(), R("div", No, [
4023
- p.isNew ? (S(), W(C(Cu), {
4023
+ p.isNew ? (S(), X(A(Cu), {
4024
4024
  key: 0,
4025
4025
  placement: "top",
4026
4026
  type: "button"
4027
4027
  }, {
4028
- content: K(() => [
4028
+ content: J(() => [
4029
4029
  g(
4030
4030
  "div",
4031
4031
  null,
4032
- $(C(T)("重新生成")),
4032
+ V(A(T)("重新生成")),
4033
4033
  1
4034
4034
  /* TEXT */
4035
4035
  )
4036
4036
  ]),
4037
- default: K(() => [
4037
+ default: J(() => [
4038
4038
  g("div", {
4039
- onClick: b[1] || (b[1] = (m) => D("regenerate")),
4039
+ onClick: b[1] || (b[1] = (m) => C("regenerate")),
4040
4040
  class: "chat-opt-box"
4041
4041
  }, [
4042
- P(C(a0), {
4042
+ H(A(a0), {
4043
4043
  size: "medium",
4044
4044
  iconColor: "#666666"
4045
4045
  })
@@ -4048,25 +4048,25 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
4048
4048
  _: 1
4049
4049
  /* STABLE */
4050
4050
  })) : z("v-if", !0),
4051
- P(C(Cu), {
4051
+ H(A(Cu), {
4052
4052
  placement: "top",
4053
4053
  type: "button"
4054
4054
  }, {
4055
- content: K(() => [
4055
+ content: J(() => [
4056
4056
  g(
4057
4057
  "div",
4058
4058
  null,
4059
- $(C(T)("复制")),
4059
+ V(A(T)("复制")),
4060
4060
  1
4061
4061
  /* TEXT */
4062
4062
  )
4063
4063
  ]),
4064
- default: K(() => [
4064
+ default: J(() => [
4065
4065
  g("div", {
4066
- onClick: b[2] || (b[2] = (m) => D("copy")),
4066
+ onClick: b[2] || (b[2] = (m) => C("copy")),
4067
4067
  class: "chat-opt-box"
4068
4068
  }, [
4069
- P(C(s0), {
4069
+ H(A(s0), {
4070
4070
  size: "medium",
4071
4071
  iconColor: "#666666"
4072
4072
  })
@@ -4075,25 +4075,25 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
4075
4075
  _: 1
4076
4076
  /* STABLE */
4077
4077
  }),
4078
- P(C(Cu), {
4078
+ H(A(Cu), {
4079
4079
  placement: "top",
4080
4080
  type: "button"
4081
4081
  }, {
4082
- content: K(() => [
4082
+ content: J(() => [
4083
4083
  g(
4084
4084
  "div",
4085
4085
  null,
4086
- $(A()),
4086
+ V(y()),
4087
4087
  1
4088
4088
  /* TEXT */
4089
4089
  )
4090
4090
  ]),
4091
- default: K(() => [
4091
+ default: J(() => [
4092
4092
  g("div", {
4093
- onClick: b[3] || (b[3] = (m) => D("play")),
4093
+ onClick: b[3] || (b[3] = (m) => C("play")),
4094
4094
  class: "chat-opt-box"
4095
4095
  }, [
4096
- p.item.audioStatus == "normal" ? (S(), W(C(l0), {
4096
+ p.item.audioStatus == "normal" ? (S(), X(A(l0), {
4097
4097
  key: 0,
4098
4098
  size: "medium",
4099
4099
  iconColor: "#666666"
@@ -4136,7 +4136,7 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
4136
4136
  <span style="width: 1.5px"></span>\r
4137
4137
  </div> `),
4138
4138
  p.item.audioStatus == "loading" ? (S(), R("div", Bo, [
4139
- g("img", { src: C(Ao) }, null, 8, qo)
4139
+ g("img", { src: A(Ao) }, null, 8, qo)
4140
4140
  ])) : z("v-if", !0)
4141
4141
  ])
4142
4142
  ]),
@@ -4207,11 +4207,11 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
4207
4207
  key: s.id
4208
4208
  },
4209
4209
  [
4210
- s.role == "user" ? (S(), W(I0, {
4210
+ s.role == "user" ? (S(), X(I0, {
4211
4211
  key: 0,
4212
4212
  item: s
4213
4213
  }, null, 8, ["item"])) : z("v-if", !0),
4214
- s.role == "ai" ? (S(), W(Po, {
4214
+ s.role == "ai" ? (S(), X(Po, {
4215
4215
  key: 1,
4216
4216
  onAiChatEmit: c,
4217
4217
  isNew: r(s),
@@ -4238,18 +4238,18 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
4238
4238
  g(
4239
4239
  "div",
4240
4240
  {
4241
- class: Ju(["int-opt-box", { actived: C(x).deepseek }]),
4241
+ class: Ju(["int-opt-box", { actived: A(x).deepseek }]),
4242
4242
  onClick: e
4243
4243
  },
4244
4244
  [
4245
- P(C(f0), {
4245
+ H(A(f0), {
4246
4246
  size: "medium",
4247
- iconColor: C(x).deepseek ? "#5582F3" : "#212121"
4247
+ iconColor: A(x).deepseek ? "#5582F3" : "#212121"
4248
4248
  }, null, 8, ["iconColor"]),
4249
4249
  g(
4250
4250
  "span",
4251
4251
  Zo,
4252
- $(C(T)("深度思考")),
4252
+ V(A(T)("深度思考")),
4253
4253
  1
4254
4254
  /* TEXT */
4255
4255
  )
@@ -4282,7 +4282,7 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
4282
4282
  (h = r.value) == null || h.focus();
4283
4283
  }, a = (h) => {
4284
4284
  };
4285
- pu(
4285
+ bu(
4286
4286
  () => x.senderValue,
4287
4287
  (h) => {
4288
4288
  !h && r.value && (r.value.style.height = "21px");
@@ -4309,7 +4309,7 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
4309
4309
  yu(g("textarea", {
4310
4310
  class: "das-ai-textarea",
4311
4311
  onKeydown: Jt(f, ["enter"]),
4312
- "onUpdate:modelValue": d[0] || (d[0] = (A) => C(x).senderValue = A),
4312
+ "onUpdate:modelValue": d[0] || (d[0] = (y) => A(x).senderValue = y),
4313
4313
  placeholder: c.value,
4314
4314
  rows: "8",
4315
4315
  maxlength: "512",
@@ -4318,14 +4318,14 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
4318
4318
  onFocus: l,
4319
4319
  onInput: s,
4320
4320
  onChange: a,
4321
- disabled: C(x).loading
4321
+ disabled: A(x).loading
4322
4322
  }, null, 40, ei), [
4323
- [Qt, C(x).senderValue]
4323
+ [Qt, A(x).senderValue]
4324
4324
  ]),
4325
4325
  g(
4326
4326
  "div",
4327
4327
  ti,
4328
- $(C(x).senderValue),
4328
+ V(A(x).senderValue),
4329
4329
  1
4330
4330
  /* TEXT */
4331
4331
  )
@@ -4336,9 +4336,9 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
4336
4336
  onClick: i,
4337
4337
  class: "focus-mask-bottom"
4338
4338
  }),
4339
- P(Jo),
4339
+ H(Jo),
4340
4340
  g("div", ri, [
4341
- C(x).loading ? z("v-if", !0) : (S(), R(
4341
+ A(x).loading ? z("v-if", !0) : (S(), R(
4342
4342
  "div",
4343
4343
  {
4344
4344
  key: 0,
@@ -4346,7 +4346,7 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
4346
4346
  class: Ju(["int-opt-right-icon", { disabled: o.value }])
4347
4347
  },
4348
4348
  [
4349
- P(C(d0), {
4349
+ H(A(d0), {
4350
4350
  customSize: "12px",
4351
4351
  iconColor: o.value ? "#fafafa" : "#fff"
4352
4352
  }, null, 8, ["iconColor"])
@@ -4354,7 +4354,7 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
4354
4354
  2
4355
4355
  /* CLASS */
4356
4356
  )),
4357
- C(x).loading ? (S(), R("div", {
4357
+ A(x).loading ? (S(), R("div", {
4358
4358
  key: 1,
4359
4359
  onClick: Fe(_, ["stop"]),
4360
4360
  class: "loading-btn"
@@ -4391,24 +4391,24 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
4391
4391
  class: "add-box",
4392
4392
  onClick: o[0] || (o[0] = (c) => n("addNew"))
4393
4393
  }, [
4394
- P(C(p0), {
4394
+ H(A(p0), {
4395
4395
  size: "medium",
4396
4396
  iconColor: "#333333"
4397
4397
  }),
4398
4398
  g(
4399
4399
  "span",
4400
4400
  si,
4401
- $(C(T)("开启新对话")),
4401
+ V(A(T)("开启新对话")),
4402
4402
  1
4403
4403
  /* TEXT */
4404
4404
  )
4405
4405
  ]),
4406
- C(x).showScrollBom ? (S(), R("div", {
4406
+ A(x).showScrollBom ? (S(), R("div", {
4407
4407
  key: 0,
4408
4408
  class: "scroll-opt-box",
4409
4409
  onClick: o[1] || (o[1] = (c) => n("scrollBom"))
4410
4410
  }, [
4411
- P(C(h0), {
4411
+ H(A(h0), {
4412
4412
  size: "large",
4413
4413
  iconColor: "#333333"
4414
4414
  })
@@ -4435,21 +4435,21 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
4435
4435
  g(
4436
4436
  "div",
4437
4437
  pi,
4438
- $(C(T)("嗨!我是AI助手")),
4438
+ V(A(T)("嗨!我是AI助手")),
4439
4439
  1
4440
4440
  /* TEXT */
4441
4441
  ),
4442
4442
  g(
4443
4443
  "div",
4444
4444
  bi,
4445
- $(C(T)("我可以帮你分析,写报告,调节设备,预订会议室,请把你的任务交给我吧~")),
4445
+ V(A(T)("我可以帮你分析,写报告,调节设备,预订会议室,请把你的任务交给我吧~")),
4446
4446
  1
4447
4447
  /* TEXT */
4448
4448
  ),
4449
4449
  r.list.length ? (S(), R(
4450
4450
  "div",
4451
4451
  mi,
4452
- $(C(T)("你可以这样说")),
4452
+ V(A(T)("你可以这样说")),
4453
4453
  1
4454
4454
  /* TEXT */
4455
4455
  )) : z("v-if", !0),
@@ -4459,7 +4459,7 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
4459
4459
  Qu(r.list, (c) => (S(), R("div", {
4460
4460
  onClick: (i) => n(c),
4461
4461
  class: "das-ai-prompt-item"
4462
- }, $(c.text), 9, xi))),
4462
+ }, V(c.text), 9, xi))),
4463
4463
  256
4464
4464
  /* UNKEYED_FRAGMENT */
4465
4465
  ))
@@ -4500,15 +4500,17 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
4500
4500
  { id: "2", name: T("全网"), desc: T("在整个大模型中搜索"), icon: "intnet" }
4501
4501
  ]), i = N(!1), a = N([]), s = N(""), l = N(""), f = e, _ = () => {
4502
4502
  f("back");
4503
- }, h = su(() => c.value.find((v) => v.id === x.searchType)), d = su(() => x.searchType == "1" ? T("基于知识库") : x.searchType == "0" ? T("基于物联应用") : x.searchType == "2" ? T("基于全网") : T("基于全部")), A = su(() => x.folderId && x.folderName ? x.folderName : T("选择在某个知识库中搜索")), y = (v) => {
4504
- }, D = (v) => {
4505
- l.value = v.id, x.folderId = v.id == x.allKnowId ? "" : v.id, x.folderName = x.folderId ? v.folderName : "", r.value = !1, n.value = !1;
4506
- }, k = (v) => {
4507
- x.searchType = v.id, Vu(), l.value = x.folderId ? x.folderId : x.allKnowId, r.value = !0, b();
4508
- }, p = async (v) => {
4509
- x.searchType = v.id, n.value = !1, Vu();
4510
- }, b = async () => {
4511
- const v = {
4503
+ }, h = su(() => c.value.find((E) => E.id === x.searchType)), d = su(() => x.searchType == "1" ? T("基于知识库") : x.searchType == "0" ? T("基于物联应用") : x.searchType == "2" ? T("基于全网") : T("基于全部")), y = su(() => x.folderId && x.folderName ? x.folderName : T("选择在某个知识库中搜索")), v = (E) => {
4504
+ }, C = (E) => {
4505
+ r.value = !1;
4506
+ }, k = (E) => {
4507
+ l.value = E.id, x.folderId = E.id == x.allKnowId ? "" : E.id, x.folderName = x.folderId ? E.folderName : "", r.value = !1, n.value = !1;
4508
+ }, p = (E) => {
4509
+ x.searchType = E.id, Vu(), l.value = x.folderId ? x.folderId : x.allKnowId, r.value = !0, m();
4510
+ }, b = async (E) => {
4511
+ x.searchType = E.id, n.value = !1, Vu();
4512
+ }, m = async () => {
4513
+ const E = {
4512
4514
  folderName: "",
4513
4515
  // 文件夹名称
4514
4516
  // authority:true,//权限标识 true:有 false:无
@@ -4516,34 +4518,34 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
4516
4518
  // 是否排除内置文件夹 默认不排除
4517
4519
  };
4518
4520
  i.value = !0;
4519
- const [j, L] = await Ti(v).run();
4520
- if (i.value = !1, j)
4521
+ const [P, j] = await Ti(E).run();
4522
+ if (i.value = !1, P)
4521
4523
  return;
4522
- let V = L;
4523
- V && V.length ? (V = [
4524
+ let K = j;
4525
+ K && K.length ? (K = [
4524
4526
  {
4525
4527
  disabled: !1,
4526
4528
  authority: !0,
4527
4529
  id: x.allKnowId,
4528
4530
  folderName: T("全部"),
4529
- childFolderList: L,
4531
+ childFolderList: j,
4530
4532
  folderPath: x.allKnowId,
4531
4533
  pathName: T("全部")
4532
4534
  }
4533
- ], V.forEach((nu) => {
4534
- m(nu);
4535
- })) : (l.value = "", x.folderId = "", x.folderName = ""), a.value = V;
4536
- }, m = (v, j, L) => {
4537
- v.disabled = !v.authority, v.path = j ? j + `/${v.id}` : v.id, v.pathName = L ? L + `/${v.folderName}` : v.folderName, x.folderId && x.folderId == v.id && !v.authority && (x.folderId = "", x.folderName = "", l.value = ""), v.childFolderList && v.childFolderList.length && v.childFolderList.forEach((V) => {
4538
- m(V, v.path, v.pathName);
4535
+ ], K.forEach((du) => {
4536
+ L(du);
4537
+ })) : (l.value = "", x.folderId = "", x.folderName = ""), a.value = K;
4538
+ }, L = (E, P, j) => {
4539
+ E.disabled = !E.authority, E.path = P ? P + `/${E.id}` : E.id, E.pathName = j ? j + `/${E.folderName}` : E.folderName, x.folderId && x.folderId == E.id && !E.authority && (x.folderId = "", x.folderName = "", l.value = ""), E.childFolderList && E.childFolderList.length && E.childFolderList.forEach((K) => {
4540
+ L(K, E.path, E.pathName);
4539
4541
  });
4540
4542
  };
4541
- return (v, j) => (S(), R("div", zi, [
4543
+ return (E, P) => (S(), R("div", zi, [
4542
4544
  yu(g(
4543
4545
  "div",
4544
4546
  Ni,
4545
4547
  [
4546
- P(C(Se), {
4548
+ H(A(Se), {
4547
4549
  onClick: _,
4548
4550
  size: "large",
4549
4551
  iconColor: "#666666"
@@ -4551,7 +4553,7 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
4551
4553
  g(
4552
4554
  "div",
4553
4555
  Li,
4554
- $(d.value),
4556
+ V(d.value),
4555
4557
  1
4556
4558
  /* TEXT */
4557
4559
  )
@@ -4559,20 +4561,21 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
4559
4561
  512
4560
4562
  /* NEED_PATCH */
4561
4563
  ), [
4562
- [Hu, v.listLength]
4564
+ [Hu, E.listLength]
4563
4565
  ]),
4564
- P(C(m0), {
4566
+ H(A(m0), {
4565
4567
  popperClass: "das-ai-select-popover",
4566
4568
  "popper-options": o.value,
4567
4569
  "show-arrow": !1,
4568
4570
  width: 428,
4569
4571
  trigger: "click",
4570
4572
  visible: n.value,
4571
- "onUpdate:visible": j[2] || (j[2] = (L) => n.value = L),
4573
+ "onUpdate:visible": P[2] || (P[2] = (j) => n.value = j),
4572
4574
  disabled: t.value,
4573
- onShow: y
4575
+ onShow: v,
4576
+ onHide: C
4574
4577
  }, {
4575
- reference: K(() => [
4578
+ reference: J(() => [
4576
4579
  yu(g(
4577
4580
  "div",
4578
4581
  Bi,
@@ -4581,16 +4584,16 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
4581
4584
  h.value ? (S(), R(
4582
4585
  "span",
4583
4586
  qi,
4584
- $(h.value.name),
4587
+ V(h.value.name),
4585
4588
  1
4586
4589
  /* TEXT */
4587
4590
  )) : z("v-if", !0),
4588
- n.value ? (S(), W(C(pt), {
4591
+ n.value ? (S(), X(A(pt), {
4589
4592
  key: 1,
4590
4593
  size: "mini",
4591
4594
  iconColor: "#666666"
4592
4595
  })) : z("v-if", !0),
4593
- n.value ? z("v-if", !0) : (S(), W(C(ht), {
4596
+ n.value ? z("v-if", !0) : (S(), X(A(ht), {
4594
4597
  key: 2,
4595
4598
  size: "mini",
4596
4599
  iconColor: "#666666"
@@ -4599,10 +4602,10 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
4599
4602
  512
4600
4603
  /* NEED_PATCH */
4601
4604
  ), [
4602
- [Hu, !v.listLength]
4605
+ [Hu, !E.listLength]
4603
4606
  ])
4604
4607
  ]),
4605
- default: K(() => [
4608
+ default: J(() => [
4606
4609
  yu(g(
4607
4610
  "div",
4608
4611
  Mi,
@@ -4610,12 +4613,12 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
4610
4613
  (S(!0), R(
4611
4614
  Bu,
4612
4615
  null,
4613
- Qu(c.value, (L) => (S(), R("div", {
4614
- onClick: (V) => p(L),
4615
- class: Ju(["das-ai-type-item", { selected: C(x).searchType == L.id }])
4616
+ Qu(c.value, (j) => (S(), R("div", {
4617
+ onClick: (K) => b(j),
4618
+ class: Ju(["das-ai-type-item", { selected: A(x).searchType == j.id }])
4616
4619
  }, [
4617
4620
  g("div", Ri, [
4618
- C(x).searchType == L.id ? (S(), W(C(b0), {
4621
+ A(x).searchType == j.id ? (S(), X(A(b0), {
4619
4622
  key: 0,
4620
4623
  customSize: "18px",
4621
4624
  iconColor: "#FFFFFF"
@@ -4625,24 +4628,24 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
4625
4628
  g(
4626
4629
  "div",
4627
4630
  ji,
4628
- $(L.name),
4631
+ V(j.name),
4629
4632
  1
4630
4633
  /* TEXT */
4631
4634
  ),
4632
4635
  g(
4633
4636
  "div",
4634
4637
  Hi,
4635
- $(L.id == 1 ? A.value : L.desc),
4638
+ V(j.id == 1 ? y.value : j.desc),
4636
4639
  1
4637
4640
  /* TEXT */
4638
4641
  )
4639
4642
  ]),
4640
- L.id == "1" ? (S(), R("div", {
4643
+ j.id == "1" ? (S(), R("div", {
4641
4644
  key: 0,
4642
- onClick: Fe((V) => k(L), ["stop"]),
4645
+ onClick: Fe((K) => p(j), ["stop"]),
4643
4646
  class: "know-entry"
4644
4647
  }, [
4645
- P(C(ft), {
4648
+ H(A(ft), {
4646
4649
  customSize: "18px",
4647
4650
  iconColor: "#666666"
4648
4651
  })
@@ -4658,22 +4661,22 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
4658
4661
  [Hu, !r.value]
4659
4662
  ]),
4660
4663
  yu((S(), R("div", Vi, [
4661
- P(C(x0), {
4664
+ H(A(x0), {
4662
4665
  ref: "folderTreeRef",
4663
4666
  data: a.value,
4664
4667
  isFilter: "",
4665
4668
  "node-key": "id",
4666
4669
  isEllipsis: "",
4667
4670
  props: { label: "folderName", children: "childFolderList" },
4668
- inputOptions: { placeholder: C(T)("搜索文件夹名称") },
4671
+ inputOptions: { placeholder: A(T)("搜索文件夹名称") },
4669
4672
  modelValue: l.value,
4670
- "onUpdate:modelValue": j[0] || (j[0] = (L) => l.value = L),
4673
+ "onUpdate:modelValue": P[0] || (P[0] = (j) => l.value = j),
4671
4674
  "filter-value": s.value,
4672
- "onUpdate:filterValue": j[1] || (j[1] = (L) => s.value = L),
4673
- onNodeClick: D
4675
+ "onUpdate:filterValue": P[1] || (P[1] = (j) => s.value = j),
4676
+ onNodeClick: k
4674
4677
  }, null, 8, ["data", "inputOptions", "modelValue", "filter-value"])
4675
4678
  ])), [
4676
- [C(bt), i.value],
4679
+ [A(bt), i.value],
4677
4680
  [Hu, r.value]
4678
4681
  ])
4679
4682
  ]),
@@ -4682,7 +4685,7 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
4682
4685
  }, 8, ["popper-options", "visible", "disabled"])
4683
4686
  ]));
4684
4687
  }
4685
- }), Gi = /* @__PURE__ */ iu(Zi, [["__scopeId", "data-v-a636ed32"]]), Ki = { class: "das-ai-reference-content-page" }, Ji = { class: "reference-header" }, Qi = { style: { "margin-left": "16px" } }, Wi = { class: "reference-list" }, Xi = { class: "reference-file-scroll" }, Yi = ["onClick"], uc = { class: "reference-file-title" }, ec = { style: { "margin-right": "4px" } }, tc = {
4688
+ }), Gi = /* @__PURE__ */ iu(Zi, [["__scopeId", "data-v-fc505048"]]), Ki = { class: "das-ai-reference-content-page" }, Ji = { class: "reference-header" }, Qi = { style: { "margin-left": "16px" } }, Wi = { class: "reference-list" }, Xi = { class: "reference-file-scroll" }, Yi = ["onClick"], uc = { class: "reference-file-title" }, ec = { style: { "margin-right": "4px" } }, tc = {
4686
4689
  class: "reference-file-title-text",
4687
4690
  style: { "margin-left": "4px" }
4688
4691
  }, nc = { class: "reference-file-summary" }, rc = {
@@ -4713,7 +4716,7 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
4713
4716
  };
4714
4717
  return (a, s) => (S(), R("div", Ki, [
4715
4718
  g("div", Ji, [
4716
- P(C(Se), {
4719
+ H(A(Se), {
4717
4720
  onClick: o,
4718
4721
  size: "large",
4719
4722
  iconColor: "#666666"
@@ -4721,14 +4724,14 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
4721
4724
  g(
4722
4725
  "span",
4723
4726
  Qi,
4724
- $(C(T)("参考内容(共$0条)", a.item.file.length)),
4727
+ V(A(T)("参考内容(共$0条)", a.item.file.length)),
4725
4728
  1
4726
4729
  /* TEXT */
4727
4730
  )
4728
4731
  ]),
4729
4732
  g("div", Wi, [
4730
- P(C(we), null, {
4731
- default: K(() => [
4733
+ H(A(we), null, {
4734
+ default: J(() => [
4732
4735
  g("div", Xi, [
4733
4736
  (S(!0), R(
4734
4737
  Bu,
@@ -4742,18 +4745,18 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
4742
4745
  g(
4743
4746
  "span",
4744
4747
  ec,
4745
- $(f + 1) + ".",
4748
+ V(f + 1) + ".",
4746
4749
  1
4747
4750
  /* TEXT */
4748
4751
  ),
4749
- P(C(_0), {
4752
+ H(A(_0), {
4750
4753
  size: "mini",
4751
4754
  iconColor: "inherit"
4752
4755
  }),
4753
4756
  g(
4754
4757
  "span",
4755
4758
  tc,
4756
- $(l.name),
4759
+ V(l.name),
4757
4760
  1
4758
4761
  /* TEXT */
4759
4762
  )
@@ -4762,7 +4765,7 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
4762
4765
  g(
4763
4766
  "div",
4764
4767
  nc,
4765
- $(l.summary),
4768
+ V(l.summary),
4766
4769
  1
4767
4770
  /* TEXT */
4768
4771
  )
@@ -4797,7 +4800,7 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
4797
4800
  showDeleteDialog: async (c) => {
4798
4801
  var i;
4799
4802
  return t = c || T("删除后将无法恢复"), (i = u.value) == null || i.open(t), e.value = !0, new Promise((a, s) => {
4800
- const l = pu(() => e.value, (f) => {
4803
+ const l = bu(() => e.value, (f) => {
4801
4804
  n ? a(n) : s(n), l();
4802
4805
  });
4803
4806
  });
@@ -4836,9 +4839,9 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
4836
4839
  t.value = !1, !p && (b.data && b.data.length && b.data.forEach((m) => {
4837
4840
  m.time = m.createdAt ? dt(m.createdAt).format("YYYY-MM-DD HH:mm:ss") : "", m.answerText = m.answer ? a(m.answer) : "";
4838
4841
  }), l.value == 1 ? o.value = b.data : o.value = o.value.concat(b.data), f.value = b.totalPage);
4839
- }, d = (k) => k.searchType == 0 ? T("物联应用") : k.searchType == 1 ? T("知识库") : k.searchType == 2 ? T("全网") : T("全部"), A = async (k) => {
4842
+ }, d = (k) => k.searchType == 0 ? T("物联应用") : k.searchType == 1 ? T("知识库") : k.searchType == 2 ? T("全网") : T("全部"), y = async (k) => {
4840
4843
  c("record", k);
4841
- }, y = async (k) => {
4844
+ }, v = async (k) => {
4842
4845
  await r(T("删除后,该会话将不可恢复,")), k.id, t.value = !0;
4843
4846
  const [p, b] = await wi({ id: k.id }).run();
4844
4847
  if (p) {
@@ -4846,7 +4849,7 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
4846
4849
  return;
4847
4850
  }
4848
4851
  h();
4849
- }, D = async (k) => {
4852
+ }, C = async (k) => {
4850
4853
  if (!o.value.length) return;
4851
4854
  await r(T("清空后,所有历史将无法找回,")), t.value = !0;
4852
4855
  const [p, b] = await Fi().run();
@@ -4861,7 +4864,7 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
4861
4864
  }), (k, p) => yu((S(), R("div", sc, [
4862
4865
  g("div", lc, [
4863
4866
  g("div", dc, [
4864
- P(C(Se), {
4867
+ H(A(Se), {
4865
4868
  onClick: i,
4866
4869
  size: "large",
4867
4870
  iconColor: "#666666"
@@ -4869,27 +4872,27 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
4869
4872
  g(
4870
4873
  "span",
4871
4874
  fc,
4872
- $(C(T)("历史会话")),
4875
+ V(A(T)("历史会话")),
4873
4876
  1
4874
4877
  /* TEXT */
4875
4878
  )
4876
4879
  ]),
4877
- P(C(Cu), {
4880
+ H(A(Cu), {
4878
4881
  placement: "top",
4879
4882
  type: "button"
4880
4883
  }, {
4881
- content: K(() => [
4884
+ content: J(() => [
4882
4885
  g(
4883
4886
  "div",
4884
4887
  null,
4885
- $(C(T)("清空")),
4888
+ V(A(T)("清空")),
4886
4889
  1
4887
4890
  /* TEXT */
4888
4891
  )
4889
4892
  ]),
4890
- default: K(() => [
4891
- P(C(g0), {
4892
- onClick: D,
4893
+ default: J(() => [
4894
+ H(A(g0), {
4895
+ onClick: C,
4893
4896
  size: "large",
4894
4897
  iconColor: "#666666"
4895
4898
  })
@@ -4899,30 +4902,30 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
4899
4902
  })
4900
4903
  ]),
4901
4904
  g("div", hc, [
4902
- P(C(we), {
4905
+ H(A(we), {
4903
4906
  "wrap-class": "das-ai-wrap-class",
4904
4907
  onScroll: s
4905
4908
  }, {
4906
- default: K(() => [
4909
+ default: J(() => [
4907
4910
  o.value.length ? (S(), R("div", pc, [
4908
4911
  (S(!0), R(
4909
4912
  Bu,
4910
4913
  null,
4911
4914
  Qu(o.value, (b, m) => (S(), R("div", {
4912
4915
  class: "history-dialogue-item",
4913
- onClick: (v) => A(b)
4916
+ onClick: (L) => y(b)
4914
4917
  }, [
4915
4918
  g(
4916
4919
  "div",
4917
4920
  mc,
4918
- $(b.title),
4921
+ V(b.title),
4919
4922
  1
4920
4923
  /* TEXT */
4921
4924
  ),
4922
4925
  z(` <div v-das-tooltip class="history-dialogue-item-content">\r
4923
4926
  {{ item.answer }}\r
4924
4927
  </div> `),
4925
- P(C(Cu), {
4928
+ H(A(Cu), {
4926
4929
  placement: "top-start",
4927
4930
  disabled: !0,
4928
4931
  text: b.answerText,
@@ -4933,37 +4936,37 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
4933
4936
  g(
4934
4937
  "div",
4935
4938
  gc,
4936
- $(d(b)),
4939
+ V(d(b)),
4937
4940
  1
4938
4941
  /* TEXT */
4939
4942
  ),
4940
4943
  g(
4941
4944
  "span",
4942
4945
  null,
4943
- $(b.time),
4946
+ V(b.time),
4944
4947
  1
4945
4948
  /* TEXT */
4946
4949
  )
4947
4950
  ]),
4948
- P(
4949
- C(Cu),
4951
+ H(
4952
+ A(Cu),
4950
4953
  {
4951
4954
  placement: "top",
4952
4955
  type: "button"
4953
4956
  },
4954
4957
  {
4955
- content: K(() => [
4958
+ content: J(() => [
4956
4959
  g(
4957
4960
  "div",
4958
4961
  null,
4959
- $(C(T)("删除")),
4962
+ V(A(T)("删除")),
4960
4963
  1
4961
4964
  /* TEXT */
4962
4965
  )
4963
4966
  ]),
4964
- default: K(() => [
4965
- P(C(k0), {
4966
- onClick: Fe((v) => y(b), ["stop"]),
4967
+ default: J(() => [
4968
+ H(A(k0), {
4969
+ onClick: Fe((L) => v(b), ["stop"]),
4967
4970
  size: "medium",
4968
4971
  iconColor: "#666666"
4969
4972
  }, null, 8, ["onClick"])
@@ -4979,15 +4982,15 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
4979
4982
  256
4980
4983
  /* UNKEYED_FRAGMENT */
4981
4984
  ))
4982
- ])) : (S(), W(C(v0), { key: 0 }))
4985
+ ])) : (S(), X(A(v0), { key: 0 }))
4983
4986
  ]),
4984
4987
  _: 1
4985
4988
  /* STABLE */
4986
4989
  })
4987
4990
  ]),
4988
- P(C(n))
4991
+ H(A(n))
4989
4992
  ])), [
4990
- [C(bt), t.value]
4993
+ [A(bt), t.value]
4991
4994
  ]);
4992
4995
  }
4993
4996
  }), yc = /* @__PURE__ */ iu(vc, [["__scopeId", "data-v-83518c07"]]);
@@ -5065,23 +5068,23 @@ var Cc = Ee(Ac, { path: "/" });
5065
5068
  const Dc = () => {
5066
5069
  let u = 0, e = -1, t = [], n = "", r = -1, o = !1, c = "", i = "";
5067
5070
  const a = N(!1), s = N(), l = N(!1), f = N(""), _ = () => {
5068
- const D = re() ? re() : Cc.get("accessToken"), k = lt().id, p = {};
5069
- return D && (p.token = D), k && (p.project = k), p;
5070
- }, h = (D = 0, k, p) => {
5071
- if (n = k, r == 1 && D == 1 && i) {
5072
- i.send(JSON.stringify({ text: p, taskId: c, taskType: D, overFlag: !n.loading, ..._() }));
5071
+ const C = re() ? re() : Cc.get("accessToken"), k = lt().id, p = {};
5072
+ return C && (p.token = C), k && (p.project = k), p;
5073
+ }, h = (C = 0, k, p) => {
5074
+ if (n = k, r == 1 && C == 1 && i) {
5075
+ i.send(JSON.stringify({ text: p, taskId: c, taskType: C, overFlag: !n.loading, ..._() }));
5073
5076
  return;
5074
5077
  }
5075
5078
  n.audioStatus = "generated", i = new y0({
5076
5079
  url: "/socket/api/speech/v1/tts",
5077
5080
  reconnectWhenClose: !0,
5078
5081
  opened: () => {
5079
- c = $u(), D == 0 && i.send(JSON.stringify({ text: n.content, taskId: c, taskType: D, ..._() })), D == 1 && i.send(JSON.stringify({ text: n.content, taskId: c, taskType: D, overFlag: !n.loading, ..._() })), r = D;
5082
+ c = $u(), C == 0 && i.send(JSON.stringify({ text: n.content, taskId: c, taskType: C, ..._() })), C == 1 && i.send(JSON.stringify({ text: n.content, taskId: c, taskType: C, overFlag: !n.loading, ..._() })), r = C;
5080
5083
  },
5081
5084
  message: async (b) => {
5082
5085
  if ((b == null ? void 0 : b.taskId) == c) {
5083
5086
  if (!(b != null && b.baseData)) return;
5084
- b != null && b.baseData && t.push(b == null ? void 0 : b.baseData), r == 1 && (o = b.overFlag), e < 0 && (r == 0 && (u = b.totalCount, e = 0, n.audioStatus = "loading", f.value = `data:audio/mpeg;base64,${b == null ? void 0 : b.baseData}`, l.value = !0, y()), r == 1 && x.autoAudio && (e = 0, n.audioStatus = "loading", f.value = `data:audio/mpeg;base64,${b == null ? void 0 : b.baseData}`, l.value = !0, n.havePlayAutoAudio = !0, y())), a.value && (a.value = !1);
5087
+ b != null && b.baseData && t.push(b == null ? void 0 : b.baseData), r == 1 && (o = b.overFlag), e < 0 && (r == 0 && (u = b.totalCount, e = 0, n.audioStatus = "loading", f.value = `data:audio/mpeg;base64,${b == null ? void 0 : b.baseData}`, l.value = !0, v()), r == 1 && x.autoAudio && (e = 0, n.audioStatus = "loading", f.value = `data:audio/mpeg;base64,${b == null ? void 0 : b.baseData}`, l.value = !0, n.havePlayAutoAudio = !0, v())), a.value && (a.value = !1);
5085
5088
  }
5086
5089
  },
5087
5090
  error: (b) => {
@@ -5091,18 +5094,18 @@ const Dc = () => {
5091
5094
  }
5092
5095
  });
5093
5096
  }, d = () => {
5094
- var D;
5095
- r = -1, e = -1, u = 0, o = !1, t = [], i && i.disconnect(), i = "", (D = s.value) == null || D.pause(), f.value = "", a.value = !1, l.value = !1, n && (n.audioStatus = "normal", n = "");
5096
- }, A = () => {
5097
+ var C;
5098
+ r = -1, e = -1, u = 0, o = !1, t = [], i && i.disconnect(), i = "", (C = s.value) == null || C.pause(), f.value = "", a.value = !1, l.value = !1, n && (n.audioStatus = "normal", n = "");
5099
+ }, y = () => {
5097
5100
  if (r == 0) {
5098
- const D = e + 1;
5099
- if (D < u)
5100
- if (t[D]) {
5101
+ const C = e + 1;
5102
+ if (C < u)
5103
+ if (t[C]) {
5101
5104
  e++, f.value = `data:audio/mpeg;base64,${t[e]}`;
5102
5105
  return;
5103
5106
  } else {
5104
- a.value = !0, pu(a, (k) => {
5105
- A();
5107
+ a.value = !0, bu(a, (k) => {
5108
+ y();
5106
5109
  });
5107
5110
  return;
5108
5111
  }
@@ -5115,22 +5118,22 @@ const Dc = () => {
5115
5118
  return;
5116
5119
  }
5117
5120
  } else {
5118
- const D = e + 1;
5119
- if (t[D]) {
5121
+ const C = e + 1;
5122
+ if (t[C]) {
5120
5123
  e++, f.value = `data:audio/mpeg;base64,${t[e]}`;
5121
5124
  return;
5122
5125
  } else {
5123
- a.value = !0, pu(a, (k) => {
5124
- A();
5126
+ a.value = !0, bu(a, (k) => {
5127
+ y();
5125
5128
  });
5126
5129
  return;
5127
5130
  }
5128
5131
  }
5129
5132
  d();
5130
5133
  }
5131
- }, y = () => {
5134
+ }, v = () => {
5132
5135
  s.value.onended = function() {
5133
- A();
5136
+ y();
5134
5137
  };
5135
5138
  };
5136
5139
  return {
@@ -5158,56 +5161,56 @@ const Dc = () => {
5158
5161
  { id: "1", text: T("介绍达实公司及核心产品") },
5159
5162
  { id: "2", text: T("介绍达实公司行业案例") },
5160
5163
  { id: "3", text: T("预订上午9:00的会议室") }
5161
- ]), h = N({}), d = N([]), A = N(["A100", "A002", "A003", "A005"]), y = N(!1), D = N(!1), { folderDialogVue: k, showFolderDialog: p } = D0(), { aiAudioRef: b, isAudioplay: m, audioSrc: v, playAudio: j, pauseAudio: L } = Dc();
5162
- let V = 0;
5164
+ ]), h = N({}), d = N([]), y = N(["A100", "A002", "A003", "A005"]), v = N(!1), C = N(!1), { folderDialogVue: k, showFolderDialog: p } = D0(), { aiAudioRef: b, isAudioplay: m, audioSrc: L, playAudio: E, pauseAudio: P } = Dc();
5165
+ let j = 0;
5163
5166
  Ou(() => {
5164
- gt(!0), Vu(), gu();
5167
+ gt(!0), Vu(), du();
5165
5168
  }), at(() => {
5166
- pe(), L();
5169
+ pe(), P();
5167
5170
  });
5168
- const nu = () => {
5169
- L();
5171
+ const K = () => {
5172
+ P();
5170
5173
  };
5171
- pu(
5174
+ bu(
5172
5175
  () => x.loading,
5173
5176
  (I) => {
5174
5177
  s.value && (s.value.loading = x.loading);
5175
5178
  }
5176
- ), pu(
5179
+ ), bu(
5177
5180
  () => x.searchType,
5178
5181
  (I) => {
5179
- gu();
5182
+ du();
5180
5183
  }
5181
5184
  );
5182
- const gu = async () => {
5185
+ const du = async () => {
5183
5186
  if (!x.searchType) return;
5184
5187
  if (h[`${x.searchType}`]) {
5185
5188
  _.value = h[`${x.searchType}`];
5186
5189
  return;
5187
5190
  }
5188
- const [I, E] = await yi({ type: x.searchType }, { ignoreErrorMessage: !0 }).run();
5189
- I || E && (h[`${x.searchType}`] = E.map((G) => ({
5191
+ const [I, D] = await yi({ type: x.searchType }, { ignoreErrorMessage: !0 }).run();
5192
+ I || D && (h[`${x.searchType}`] = D.map((G) => ({
5190
5193
  id: $u(),
5191
5194
  text: G
5192
5195
  })), _.value = h[`${x.searchType}`]);
5193
- }, xu = () => {
5196
+ }, _u = () => {
5194
5197
  ye(() => {
5195
- if (D.value) return;
5198
+ if (C.value) return;
5196
5199
  const I = document.querySelector("#das-ai-chat-scrollbox .das-ai-wrap-class");
5197
- I && (y.value = !0, I.scrollTop = I.scrollHeight, r.value = I.scrollHeight - I.clientHeight);
5200
+ I && (v.value = !0, I.scrollTop = I.scrollHeight, r.value = I.scrollHeight - I.clientHeight);
5198
5201
  });
5199
5202
  };
5200
- let _u = "";
5203
+ let gu = "";
5201
5204
  const wu = () => {
5202
- _u && clearTimeout(_u), _u = setTimeout(() => {
5203
- D.value = !1;
5205
+ gu && clearTimeout(gu), gu = setTimeout(() => {
5206
+ C.value = !1;
5204
5207
  }, 2e3);
5205
- }, du = (I) => {
5208
+ }, fu = (I) => {
5206
5209
  if (r.value <= 0) {
5207
- const E = document.querySelector("#das-ai-chat-scrollbox .das-ai-wrap-class");
5208
- r.value = E.scrollHeight - E.clientHeight;
5210
+ const D = document.querySelector("#das-ai-chat-scrollbox .das-ai-wrap-class");
5211
+ r.value = D.scrollHeight - D.clientHeight;
5209
5212
  }
5210
- x.showScrollBom = r.value - I.scrollTop > 50, y.value || (D.value = !0, wu()), y.value = !1;
5213
+ x.showScrollBom = r.value - I.scrollTop > 50, v.value || (C.value = !0, wu()), v.value = !1;
5211
5214
  }, Su = () => ({
5212
5215
  id: $u(),
5213
5216
  role: "user",
@@ -5230,13 +5233,13 @@ const Dc = () => {
5230
5233
  urls: []
5231
5234
  }), Iu = async (I) => {
5232
5235
  a.value = "", l.value = !0;
5233
- const [E, G] = await Ei({ chatId: I.id }).run();
5234
- if (!E)
5236
+ const [D, G] = await Ei({ chatId: I.id }).run();
5237
+ if (!D)
5235
5238
  if (G) {
5236
- const X = [];
5239
+ const Y = [];
5237
5240
  let O = "", cu = "", au = "";
5238
5241
  G && !G.status && G.forEach((U) => {
5239
- O || (O = U.chat_id), cu || (cu = U.searchType), au || (au = U.fold_id), U.fromType == 0 && X.push({
5242
+ O || (O = U.chat_id), cu || (cu = U.searchType), au || (au = U.fold_id), U.fromType == 0 && Y.push({
5240
5243
  ...Su(),
5241
5244
  content: U.content
5242
5245
  }), U.fromType == 1 && (U.files || (U.files = []), U.urls || (U.urls = []), U.urls.length && (U.urls = U.urls.map((zu) => ({
@@ -5244,7 +5247,7 @@ const Dc = () => {
5244
5247
  appUrl: zu.app_url,
5245
5248
  webUrl: zu.web_url,
5246
5249
  type: "url"
5247
- })), U.files.unshift(...U.urls)), X.push({
5250
+ })), U.files.unshift(...U.urls)), Y.push({
5248
5251
  ...ue(),
5249
5252
  content: U.content,
5250
5253
  think: U.think,
@@ -5253,72 +5256,72 @@ const Dc = () => {
5253
5256
  saved: U.knowledge_type == "1",
5254
5257
  queryId: U.QueryId,
5255
5258
  intention: U.intention,
5256
- showSave: !A.value.includes(U.intention)
5259
+ showSave: !y.value.includes(U.intention)
5257
5260
  }));
5258
- }), Tu(), d.value = X, o.value = O, x.searchType = cu || "1", cu == "1" && (x.folderId = au, au ? ju(au) : x.folderName = ""), Vu(), xu(), l.value = !1;
5261
+ }), Tu(), d.value = Y, o.value = O, x.searchType = cu || "1", cu == "1" && (x.folderId = au, au ? ju(au) : x.folderName = ""), Vu(), _u(), l.value = !1;
5259
5262
  } else
5260
5263
  l.value = !1;
5261
5264
  }, ju = async (I) => {
5262
5265
  if (!I) return;
5263
- const [E, G] = await Ii({ id: I }).run();
5264
- E || G && (x.folderName = G.folderName);
5266
+ const [D, G] = await Ii({ id: I }).run();
5267
+ D || G && (x.folderName = G.folderName);
5265
5268
  }, Tu = () => {
5266
- f.value = null, x.loading = !1, L(), r.value = 0, d.value = [], s.value = null, y.value = !1, D.value = !1, o.value = null, E0();
5269
+ f.value = null, x.loading = !1, P(), r.value = 0, d.value = [], s.value = null, v.value = !1, C.value = !1, o.value = null, E0();
5267
5270
  }, fe = (I) => {
5268
- I == "addNew" && Tu(), I == "scrollBom" && (D.value = !1, xu());
5271
+ I == "addNew" && Tu(), I == "scrollBom" && (C.value = !1, _u());
5269
5272
  }, M = () => {
5270
- x.autoAudio = !x.autoAudio, x.autoAudio || L();
5273
+ x.autoAudio = !x.autoAudio, x.autoAudio || P();
5271
5274
  }, w = (I) => {
5272
5275
  F("sender", I.text);
5273
- }, F = async (I, E) => {
5276
+ }, F = async (I, D) => {
5274
5277
  if (I == "sender") {
5275
5278
  if (x.loading) return;
5276
- L(), D.value = !1;
5279
+ P(), C.value = !1;
5277
5280
  const G = {
5278
5281
  ...Su(),
5279
- content: E
5280
- }, X = {
5282
+ content: D
5283
+ }, Y = {
5281
5284
  ...ue(),
5282
5285
  loading: !0
5283
5286
  };
5284
- d.value.push(G), d.value.push(X), s.value = X, Re(E);
5287
+ d.value.push(G), d.value.push(Y), s.value = Y, Re(D);
5285
5288
  }
5286
5289
  I == "stopMsg" && pe(), I == "upload" && await p();
5287
- }, B = async (I, E) => {
5288
- var G, X;
5289
- if (I == "regenerate" && E) {
5290
+ }, B = async (I, D) => {
5291
+ var G, Y;
5292
+ if (I == "regenerate" && D) {
5290
5293
  if (x.loading) return;
5291
- if (L(), E.queryId) {
5292
- const au = { queryId: E.queryId }, [U, zu] = await Si(au).run();
5294
+ if (P(), D.queryId) {
5295
+ const au = { queryId: D.queryId }, [U, zu] = await Si(au).run();
5293
5296
  if (U) return;
5294
5297
  }
5295
- E.queryId = "", E.think = "", E.thinkTime = 0, E.intention = "", E.content = "", E.audioStatus = "normal", E.file = [], E.urls = [], E.havePlayAutoAudio = !1, E.saved = !1, E.loading = !0, s.value = E;
5296
- const O = d.value.findIndex((au) => au.id == E.id), cu = (G = d.value[O - 1]) == null ? void 0 : G.content;
5298
+ D.queryId = "", D.think = "", D.thinkTime = 0, D.intention = "", D.content = "", D.audioStatus = "normal", D.file = [], D.urls = [], D.havePlayAutoAudio = !1, D.saved = !1, D.loading = !0, s.value = D;
5299
+ const O = d.value.findIndex((au) => au.id == D.id), cu = (G = d.value[O - 1]) == null ? void 0 : G.content;
5297
5300
  Re(cu);
5298
5301
  }
5299
5302
  if (I == "saveKnowledgebase") {
5300
- const O = E.item, cu = d.value.findIndex((zu) => zu.id == O.id), au = (X = d.value[cu - 1]) == null ? void 0 : X.content;
5303
+ const O = D.item, cu = d.value.findIndex((zu) => zu.id == O.id), au = (Y = d.value[cu - 1]) == null ? void 0 : Y.content;
5301
5304
  await p({
5302
5305
  currentItem: O,
5303
5306
  sendVal: au.slice(0, 20),
5304
5307
  // 知识库标题限制长度
5305
- dom: E.dom
5308
+ dom: D.dom
5306
5309
  }) && (O.saved = !0, O.queryId && Ci({ QueryId: O.queryId }).run());
5307
5310
  }
5308
- I == "reference" && (s.value = E, a.value = "reference"), I == "play" && (E.data.audioStatus == "normal" ? (L(), j(0, E.data)) : (s.value && (s.value.audioStatus = "normal"), L())), I == "preview" && H(E);
5311
+ I == "reference" && (s.value = D, a.value = "reference"), I == "play" && (D.data.audioStatus == "normal" ? (P(), E(0, D.data)) : (s.value && (s.value.audioStatus = "normal"), P())), I == "preview" && $(D);
5309
5312
  }, q = (I) => {
5310
5313
  n("toApp", I);
5311
- }, H = (I) => {
5314
+ }, $ = (I) => {
5312
5315
  c.value = I, ye(() => {
5313
- var E;
5314
- (E = i.value) == null || E.preview();
5316
+ var D;
5317
+ (D = i.value) == null || D.preview();
5315
5318
  });
5316
- }, uu = (I) => {
5317
- L(), a.value = "history";
5319
+ }, eu = (I) => {
5320
+ P(), a.value = "history";
5318
5321
  }, Eu = () => {
5319
5322
  a.value = "";
5320
5323
  }, Oe = (I) => {
5321
- const E = {
5324
+ const D = {
5322
5325
  query: I,
5323
5326
  deepThinkFlag: x.deepseek ? "1" : "0",
5324
5327
  // project: getProjectInfo().id,
@@ -5329,7 +5332,7 @@ const Dc = () => {
5329
5332
  isGlobalSearch: "0"
5330
5333
  //是否搜索全网(0否1是)
5331
5334
  };
5332
- return o.value || (o.value = (/* @__PURE__ */ new Date()).getTime()), E.chatId = o.value, x.searchType == "0" && (E.isInnerSearch = "1"), x.searchType == "1" && (E.isKnowledgeSearch = "1", E.foldId = x.folderId == x.allKnowId ? "" : x.folderId), x.searchType == "2" && (E.isGlobalSearch = "1"), JSON.stringify(E);
5335
+ return o.value || (o.value = (/* @__PURE__ */ new Date()).getTime()), D.chatId = o.value, x.searchType == "0" && (D.isInnerSearch = "1"), x.searchType == "1" && (D.isKnowledgeSearch = "1", D.foldId = x.folderId == x.allKnowId ? "" : x.folderId), x.searchType == "2" && (D.isGlobalSearch = "1"), JSON.stringify(D);
5333
5336
  }, Gt = () => {
5334
5337
  const I = {
5335
5338
  // Authorization: `Bearer ${getToken()}`,
@@ -5340,8 +5343,8 @@ const Dc = () => {
5340
5343
  };
5341
5344
  let he = "";
5342
5345
  const Re = (I) => {
5343
- x.loading = !0, xu();
5344
- const E = new eu(`${st().baseURL}${qc}?project=${lt().id}`, {
5346
+ x.loading = !0, _u();
5347
+ const D = new tu(`${st().baseURL}${qc}?project=${lt().id}`, {
5345
5348
  method: "POST",
5346
5349
  // 使用 POST 请求
5347
5350
  headers: Gt(),
@@ -5352,34 +5355,34 @@ const Dc = () => {
5352
5355
  });
5353
5356
  he = $u();
5354
5357
  const G = he;
5355
- E.onmessage = (X) => {
5358
+ D.onmessage = (Y) => {
5356
5359
  if (G != he) return;
5357
- if (X.data == "[DONE]") {
5358
- E.close(), x.loading = !1, s.value.loading = !1, x.autoAudio && s.value.content && s.value.audioStatus != "normal" && j(1, s.value, ""), xu();
5360
+ if (Y.data == "[DONE]") {
5361
+ D.close(), x.loading = !1, s.value.loading = !1, x.autoAudio && s.value.content && s.value.audioStatus != "normal" && E(1, s.value, ""), _u();
5359
5362
  return;
5360
5363
  }
5361
- const O = JSON.parse(X.data);
5362
- if (s.value.intention || (s.value.intention = O.intention, s.value.showSave = !A.value.includes(O.intention)), O.type == "queryId" && (s.value.queryId || (s.value.queryId = O.content)), O.type == "think" && (s.value.think || (V = (/* @__PURE__ */ new Date()).getTime()), s.value.think = s.value.think + O.content), O.type == "text") {
5363
- if (V && s.value.think && !s.value.content) {
5364
- const cu = (/* @__PURE__ */ new Date()).getTime() - V;
5365
- V = 0, s.value.thinkTime = parseInt(`${cu / 1e3}`);
5364
+ const O = JSON.parse(Y.data);
5365
+ if (s.value.intention || (s.value.intention = O.intention, s.value.showSave = !y.value.includes(O.intention)), O.type == "queryId" && (s.value.queryId || (s.value.queryId = O.content)), O.type == "think" && (s.value.think || (j = (/* @__PURE__ */ new Date()).getTime()), s.value.think = s.value.think + O.content), O.type == "text") {
5366
+ if (j && s.value.think && !s.value.content) {
5367
+ const cu = (/* @__PURE__ */ new Date()).getTime() - j;
5368
+ j = 0, s.value.thinkTime = parseInt(`${cu / 1e3}`);
5366
5369
  }
5367
- s.value.content = s.value.content + O.content, s.value.showSave, x.autoAudio && (s.value.audioStatus == "normal" ? j(1, s.value, s.value.content) : j(1, s.value, O.content));
5370
+ s.value.content = s.value.content + O.content, s.value.showSave, x.autoAudio && (s.value.audioStatus == "normal" ? E(1, s.value, s.value.content) : E(1, s.value, O.content));
5368
5371
  }
5369
- O.type == "file" && s.value.file.push(O), O.type == "url" && (O.webUrl && (O.webUrl = decodeURIComponent(O.webUrl)), O.name = O.content, s.value.file.push(O), s.value.urls.push(O)), xu();
5370
- }, E.onerror = (X) => {
5371
- E.close(), x.loading = !1, s.value.content = T("连接错误");
5372
- }, f.value = E;
5372
+ O.type == "file" && s.value.file.push(O), O.type == "url" && (O.webUrl && (O.webUrl = decodeURIComponent(O.webUrl)), O.name = O.content, s.value.file.push(O), s.value.urls.push(O)), _u();
5373
+ }, D.onerror = (Y) => {
5374
+ D.close(), x.loading = !1, s.value.content = T("连接错误");
5375
+ }, f.value = D;
5373
5376
  }, pe = () => {
5374
5377
  var I;
5375
5378
  if ((I = f.value) == null || I.close(), x.loading = !1, Kt(), s.value && (s.value.loading = !1, s.value.think && !s.value.thinkTime)) {
5376
- const E = (/* @__PURE__ */ new Date()).getTime() - V;
5377
- V = 0, s.value.thinkTime = parseInt(`${E / 1e3}`);
5379
+ const D = (/* @__PURE__ */ new Date()).getTime() - j;
5380
+ j = 0, s.value.thinkTime = parseInt(`${D / 1e3}`);
5378
5381
  }
5379
5382
  }, Kt = async () => {
5380
5383
  if (s.value && s.value.loading && s.value.queryId && s.value.content) {
5381
5384
  let I = s.value.file ? s.value.file.filter((O) => O.type != "url") : [];
5382
- const E = {
5385
+ const D = {
5383
5386
  chat_id: o.value,
5384
5387
  //会话id
5385
5388
  content: s.value.content,
@@ -5408,8 +5411,8 @@ const Dc = () => {
5408
5411
  }))
5409
5412
  //
5410
5413
  };
5411
- E.searchType == "1" && (E.fold_id = x.folderId == x.allKnowId ? "" : x.folderId);
5412
- const [G, X] = await Ai(E).run();
5414
+ D.searchType == "1" && (D.fold_id = x.folderId == x.allKnowId ? "" : x.folderId);
5415
+ const [G, Y] = await Ai(D).run();
5413
5416
  if (G) return;
5414
5417
  }
5415
5418
  };
@@ -5420,26 +5423,26 @@ const Dc = () => {
5420
5423
  outSendMsg: () => {
5421
5424
  x.senderValue && F("sender", x.senderValue);
5422
5425
  },
5423
- hideFn: nu,
5426
+ hideFn: K,
5424
5427
  playAudioFn: () => {
5425
- const I = d.value.findLastIndex((G) => G.role == "ai"), E = d.value[I] ? d.value[I] : null;
5426
- E && j(0, E);
5428
+ const I = d.value.findLastIndex((G) => G.role == "ai"), D = d.value[I] ? d.value[I] : null;
5429
+ D && E(0, D);
5427
5430
  },
5428
- pauseAudio: L,
5431
+ pauseAudio: P,
5429
5432
  stopMsg: pe,
5430
5433
  openNewChat: Tu
5431
- }), (I, E) => {
5434
+ }), (I, D) => {
5432
5435
  const G = Wt("dasLoading");
5433
5436
  return yu((S(), R("div", Ec, [
5434
5437
  a.value ? (S(), R("div", Fc, [
5435
- a.value == "reference" ? (S(), W(ic, {
5438
+ a.value == "reference" ? (S(), X(ic, {
5436
5439
  key: 0,
5437
5440
  item: s.value,
5438
- onPreview: H,
5441
+ onPreview: $,
5439
5442
  onBack: Eu,
5440
5443
  onToApp: q
5441
5444
  }, null, 8, ["item"])) : z("v-if", !0),
5442
- a.value == "history" ? (S(), W(yc, {
5445
+ a.value == "history" ? (S(), X(yc, {
5443
5446
  key: 1,
5444
5447
  chatId: o.value,
5445
5448
  onRecord: Iu,
@@ -5448,37 +5451,37 @@ const Dc = () => {
5448
5451
  ])) : z("v-if", !0),
5449
5452
  g("div", wc, [
5450
5453
  g("div", Sc, [
5451
- P(Gi, {
5454
+ H(Gi, {
5452
5455
  onBack: Tu,
5453
5456
  listLength: d.value.length
5454
5457
  }, null, 8, ["listLength"])
5455
5458
  ]),
5456
5459
  g("div", Ic, [
5457
- P(C(Cu), {
5460
+ H(A(Cu), {
5458
5461
  placement: "top",
5459
5462
  type: "button"
5460
5463
  }, {
5461
- content: K(() => [
5464
+ content: J(() => [
5462
5465
  g(
5463
5466
  "div",
5464
5467
  null,
5465
- $(C(T)("自动播报")),
5468
+ V(A(T)("自动播报")),
5466
5469
  1
5467
5470
  /* TEXT */
5468
5471
  )
5469
5472
  ]),
5470
- default: K(() => [
5473
+ default: J(() => [
5471
5474
  g("div", {
5472
5475
  onClick: M,
5473
5476
  style: { "margin-right": "16px" },
5474
5477
  class: "ai-top-right-icon"
5475
5478
  }, [
5476
- C(x).autoAudio ? (S(), W(C(r0), {
5479
+ A(x).autoAudio ? (S(), X(A(r0), {
5477
5480
  key: 0,
5478
5481
  customSize: "20",
5479
5482
  iconColor: "#006DF1"
5480
5483
  })) : z("v-if", !0),
5481
- C(x).autoAudio ? z("v-if", !0) : (S(), W(C(o0), {
5484
+ A(x).autoAudio ? z("v-if", !0) : (S(), X(A(o0), {
5482
5485
  key: 1,
5483
5486
  customSize: "20",
5484
5487
  iconColor: "#333333"
@@ -5488,25 +5491,25 @@ const Dc = () => {
5488
5491
  _: 1
5489
5492
  /* STABLE */
5490
5493
  }),
5491
- P(C(Cu), {
5494
+ H(A(Cu), {
5492
5495
  placement: "top",
5493
5496
  type: "button"
5494
5497
  }, {
5495
- content: K(() => [
5498
+ content: J(() => [
5496
5499
  g(
5497
5500
  "div",
5498
5501
  null,
5499
- $(C(T)("历史会话")),
5502
+ V(A(T)("历史会话")),
5500
5503
  1
5501
5504
  /* TEXT */
5502
5505
  )
5503
5506
  ]),
5504
- default: K(() => [
5507
+ default: J(() => [
5505
5508
  g("div", {
5506
- onClick: uu,
5509
+ onClick: eu,
5507
5510
  class: "ai-top-right-icon"
5508
5511
  }, [
5509
- P(C(i0), {
5512
+ H(A(i0), {
5510
5513
  customSize: "20",
5511
5514
  iconColor: "#666666"
5512
5515
  })
@@ -5518,12 +5521,12 @@ const Dc = () => {
5518
5521
  ])
5519
5522
  ]),
5520
5523
  d.value.length ? (S(), R("div", Tc, [
5521
- P(C(we), {
5524
+ H(A(we), {
5522
5525
  "wrap-class": "das-ai-wrap-class",
5523
- onScroll: du
5526
+ onScroll: fu
5524
5527
  }, {
5525
- default: K(() => [
5526
- P(Vo, {
5528
+ default: J(() => [
5529
+ H(Vo, {
5527
5530
  onChatEmit: B,
5528
5531
  chartList: d.value
5529
5532
  }, null, 8, ["chartList"])
@@ -5532,21 +5535,21 @@ const Dc = () => {
5532
5535
  /* STABLE */
5533
5536
  })
5534
5537
  ])) : z("v-if", !0),
5535
- d.value.length ? z("v-if", !0) : (S(), W(ki, {
5538
+ d.value.length ? z("v-if", !0) : (S(), X(ki, {
5536
5539
  key: 2,
5537
5540
  list: _.value,
5538
5541
  onClick: w
5539
5542
  }, null, 8, ["list"])),
5540
5543
  z(' v-if="currentList.length && !dasAiData.loading" '),
5541
5544
  d.value.length ? (S(), R("div", zc, [
5542
- E[0] || (E[0] = g(
5545
+ D[0] || (D[0] = g(
5543
5546
  "div",
5544
5547
  { class: "chat-new-top-mask" },
5545
5548
  null,
5546
5549
  -1
5547
5550
  /* HOISTED */
5548
5551
  )),
5549
- P(fi, { onAddNewEmit: fe })
5552
+ H(fi, { onAddNewEmit: fe })
5550
5553
  ])) : z("v-if", !0),
5551
5554
  z(' :class="{ full: !currentList.length }" '),
5552
5555
  g("div", Nc, [
@@ -5562,7 +5565,7 @@ const Dc = () => {
5562
5565
  </div> `),
5563
5566
  z(' v-show="!dasAiData.loading" '),
5564
5567
  g("div", Lc, [
5565
- P(ci, {
5568
+ H(ci, {
5566
5569
  isNew: !d.value.length,
5567
5570
  onSenderEmit: F
5568
5571
  }, null, 8, ["isNew"])
@@ -5570,7 +5573,7 @@ const Dc = () => {
5570
5573
  z(` <div v-show="dasAiData.loading" class="loading-content">\r
5571
5574
  <div class="loading-box">{{ t('回答中…') }}</div>\r
5572
5575
  </div> `),
5573
- E[1] || (E[1] = g(
5576
+ D[1] || (D[1] = g(
5574
5577
  "div",
5575
5578
  { class: "das-ai-chat-input-tip" },
5576
5579
  [
@@ -5580,18 +5583,18 @@ const Dc = () => {
5580
5583
  /* HOISTED */
5581
5584
  ))
5582
5585
  ]),
5583
- P(C(k)),
5584
- P(C(c0), {
5586
+ H(A(k)),
5587
+ H(A(c0), {
5585
5588
  ref_key: "dasPreviewRef",
5586
5589
  ref: i,
5587
5590
  "file-url": c.value
5588
5591
  }, null, 8, ["file-url"]),
5589
5592
  g("audio", {
5590
- src: C(v),
5593
+ src: A(L),
5591
5594
  class: "ai-audio-class",
5592
5595
  ref_key: "aiAudioRef",
5593
5596
  ref: b,
5594
- muted: !C(m),
5597
+ muted: !A(m),
5595
5598
  autoplay: ""
5596
5599
  }, null, 8, Bc)
5597
5600
  ])), [
@@ -5604,17 +5607,17 @@ const Dc = () => {
5604
5607
  emits: ["confirm", "toApp", "getStatus"],
5605
5608
  setup(u, { expose: e, emit: t }) {
5606
5609
  const n = t, r = e0(), o = N(), c = N(0), i = N(), a = N(!1);
5607
- pu(
5610
+ bu(
5608
5611
  () => r == null ? void 0 : r.path,
5609
- (m, v) => {
5612
+ (m, L) => {
5610
5613
  f();
5611
5614
  }
5612
5615
  ), Ou(() => {
5613
5616
  setTimeout(() => {
5614
5617
  ye(() => {
5615
5618
  let m = document.getElementsByClassName("das-web-app-header")[0];
5616
- m && (c.value = m.clientHeight), m && !i.value && (i.value = A0((v) => {
5617
- c.value = v.height;
5619
+ m && (c.value = m.clientHeight), m && !i.value && (i.value = A0((L) => {
5620
+ c.value = L.height;
5618
5621
  }, m));
5619
5622
  });
5620
5623
  }, 1e3);
@@ -5658,20 +5661,20 @@ const Dc = () => {
5658
5661
  (m = o.value) == null || m.outSendMsg();
5659
5662
  },
5660
5663
  senderVal: (m) => {
5661
- var v;
5662
- (v = o.value) == null || v.senderVal(m);
5664
+ var L;
5665
+ (L = o.value) == null || L.senderVal(m);
5663
5666
  },
5664
5667
  clearSenderVal: () => {
5665
5668
  x.senderValue = "";
5666
5669
  },
5667
5670
  openPanel: l,
5668
5671
  closePanel: f
5669
- }), (m, v) => (S(), R("div", Rc, [
5670
- P(Xt, {
5672
+ }), (m, L) => (S(), R("div", Rc, [
5673
+ H(Xt, {
5671
5674
  name: "das-ai-panel",
5672
5675
  persisted: ""
5673
5676
  }, {
5674
- default: K(() => [
5677
+ default: J(() => [
5675
5678
  yu(g(
5676
5679
  "div",
5677
5680
  {
@@ -5683,7 +5686,7 @@ const Dc = () => {
5683
5686
  g(
5684
5687
  "div",
5685
5688
  jc,
5686
- $(C(T)("AI助手")),
5689
+ V(A(T)("AI助手")),
5687
5690
  1
5688
5691
  /* TEXT */
5689
5692
  ),
@@ -5691,14 +5694,14 @@ const Dc = () => {
5691
5694
  onClick: f,
5692
5695
  class: "das-ai-panel-header-close"
5693
5696
  }, [
5694
- P(C(t0), {
5697
+ H(A(t0), {
5695
5698
  size: "medium",
5696
5699
  iconColor: "#666666"
5697
5700
  })
5698
5701
  ])
5699
5702
  ]),
5700
5703
  g("div", Hc, [
5701
- P(
5704
+ H(
5702
5705
  Oc,
5703
5706
  {
5704
5707
  ref_key: "dasAiVueRef",