sg-paisou 0.0.7 → 0.0.8

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.
@@ -18529,16 +18529,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
18529
18529
  return ge.noHighlightRe.test(ne);
18530
18530
  }
18531
18531
  function st(ne, X, Z) {
18532
- var ue = "", $ = "";
18533
- l(X) === "object" ? (ue = ne, Z = X.ignoreIllegals, $ = X.language) : (Ae("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Ae("10.7.0", `Please use highlight(code, options) instead.
18534
- https://github.com/highlightjs/highlight.js/issues/2277`), $ = ne, ue = X), Z === void 0 && (Z = !0);
18535
- var J = { code: ue, language: $ };
18532
+ var ue = "", ee = "";
18533
+ l(X) === "object" ? (ue = ne, Z = X.ignoreIllegals, ee = X.language) : (Ae("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Ae("10.7.0", `Please use highlight(code, options) instead.
18534
+ https://github.com/highlightjs/highlight.js/issues/2277`), ee = ne, ue = X), Z === void 0 && (Z = !0);
18535
+ var J = { code: ue, language: ee };
18536
18536
  Ce("before:highlight", J);
18537
18537
  var Qe = J.result ? J.result : Xe(J.language, J.code, Z);
18538
18538
  return Qe.code = J.code, Ce("after:highlight", Qe), Qe;
18539
18539
  }
18540
18540
  function Xe(ne, X, Z, ue) {
18541
- var $ = /* @__PURE__ */ Object.create(null);
18541
+ var ee = /* @__PURE__ */ Object.create(null);
18542
18542
  function J() {
18543
18543
  if (!Ee.keywords) {
18544
18544
  Ze.addText(we);
@@ -18548,10 +18548,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $ = ne, ue = X), Z ==
18548
18548
  Ee.keywordPatternRe.lastIndex = 0;
18549
18549
  for (var be = Ee.keywordPatternRe.exec(we), ke = ""; be; ) {
18550
18550
  ke += we.substring(fe, be.index);
18551
- var _t, De, ee = Je.case_insensitive ? be[0].toLowerCase() : be[0], xe = (_t = Ee, De = ee, _t.keywords[De]);
18551
+ var _t, De, $ = Je.case_insensitive ? be[0].toLowerCase() : be[0], xe = (_t = Ee, De = $, _t.keywords[De]);
18552
18552
  if (xe) {
18553
18553
  var Be = t(xe, 2), Ve = Be[0], $e = Be[1];
18554
- if (Ze.addText(ke), ke = "", $[ee] = ($[ee] || 0) + 1, $[ee] <= 7 && (Vt += $e), Ve.startsWith("_")) ke += be[0];
18554
+ if (Ze.addText(ke), ke = "", ee[$] = (ee[$] || 0) + 1, ee[$] <= 7 && (Vt += $e), Ve.startsWith("_")) ke += be[0];
18555
18555
  else {
18556
18556
  var qe = Je.classNameAliases[Ve] || Ve;
18557
18557
  ie(be[0], qe);
@@ -18585,8 +18585,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $ = ne, ue = X), Z ==
18585
18585
  ke++;
18586
18586
  continue;
18587
18587
  }
18588
- var De = Je.classNameAliases[fe[ke]] || fe[ke], ee = be[ke];
18589
- De ? ie(ee, De) : (we = ee, J(), we = ""), ke++;
18588
+ var De = Je.classNameAliases[fe[ke]] || fe[ke], $ = be[ke];
18589
+ De ? ie($, De) : (we = $, J(), we = ""), ke++;
18590
18590
  }
18591
18591
  }
18592
18592
  function Le(fe, be) {
@@ -18639,8 +18639,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $ = ne, ue = X), Z ==
18639
18639
  if (De !== Ye) return De;
18640
18640
  }
18641
18641
  } else {
18642
- var ee = Error('Illegal lexeme "' + ke + '" for mode "' + (Ee.scope || "<unnamed>") + '"');
18643
- throw ee.mode = Ee, ee;
18642
+ var $ = Error('Illegal lexeme "' + ke + '" for mode "' + (Ee.scope || "<unnamed>") + '"');
18643
+ throw $.mode = Ee, $;
18644
18644
  }
18645
18645
  if (be.type === "illegal" && ke === "") return we += `
18646
18646
  `, 1;
@@ -18650,48 +18650,48 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $ = ne, ue = X), Z ==
18650
18650
  var Je = ht(ne);
18651
18651
  if (!Je) throw he(_e.replace("{}", ne)), Error('Unknown language: "' + ne + '"');
18652
18652
  var Mt = function(fe) {
18653
- function be(De, ee) {
18654
- return RegExp(S(De), "m" + (fe.case_insensitive ? "i" : "") + (fe.unicodeRegex ? "u" : "") + (ee ? "g" : ""));
18653
+ function be(De, $) {
18654
+ return RegExp(S(De), "m" + (fe.case_insensitive ? "i" : "") + (fe.unicodeRegex ? "u" : "") + ($ ? "g" : ""));
18655
18655
  }
18656
18656
  var ke = u(function De() {
18657
18657
  s(this, De), this.matchIndexes = {}, this.regexes = [], this.matchAt = 1, this.position = 0;
18658
- }, [{ key: "addRule", value: function(De, ee) {
18659
- ee.position = this.position++, this.matchIndexes[this.matchAt] = ee, this.regexes.push([ee, De]), this.matchAt += x(De) + 1;
18658
+ }, [{ key: "addRule", value: function(De, $) {
18659
+ $.position = this.position++, this.matchIndexes[this.matchAt] = $, this.regexes.push([$, De]), this.matchAt += x(De) + 1;
18660
18660
  } }, { key: "compile", value: function() {
18661
18661
  this.regexes.length === 0 && (this.exec = function() {
18662
18662
  return null;
18663
18663
  });
18664
- var De = this.regexes.map(function(ee) {
18665
- return ee[1];
18664
+ var De = this.regexes.map(function($) {
18665
+ return $[1];
18666
18666
  });
18667
18667
  this.matcherRe = be(M(De, { joinWith: "|" }), !0), this.lastIndex = 0;
18668
18668
  } }, { key: "exec", value: function(De) {
18669
18669
  this.matcherRe.lastIndex = this.lastIndex;
18670
- var ee = this.matcherRe.exec(De);
18671
- if (!ee) return null;
18672
- var xe = ee.findIndex(function(Ve, $e) {
18670
+ var $ = this.matcherRe.exec(De);
18671
+ if (!$) return null;
18672
+ var xe = $.findIndex(function(Ve, $e) {
18673
18673
  return $e > 0 && Ve !== void 0;
18674
18674
  }), Be = this.matchIndexes[xe];
18675
- return ee.splice(0, xe), Object.assign(ee, Be);
18675
+ return $.splice(0, xe), Object.assign($, Be);
18676
18676
  } }]), _t = u(function De() {
18677
18677
  s(this, De), this.rules = [], this.multiRegexes = [], this.count = 0, this.lastIndex = 0, this.regexIndex = 0;
18678
18678
  }, [{ key: "getMatcher", value: function(De) {
18679
18679
  if (this.multiRegexes[De]) return this.multiRegexes[De];
18680
- var ee = new ke();
18680
+ var $ = new ke();
18681
18681
  return this.rules.slice(De).forEach(function(xe) {
18682
18682
  var Be = t(xe, 2), Ve = Be[0], $e = Be[1];
18683
- return ee.addRule(Ve, $e);
18684
- }), ee.compile(), this.multiRegexes[De] = ee, ee;
18683
+ return $.addRule(Ve, $e);
18684
+ }), $.compile(), this.multiRegexes[De] = $, $;
18685
18685
  } }, { key: "resumingScanAtSamePosition", value: function() {
18686
18686
  return this.regexIndex !== 0;
18687
18687
  } }, { key: "considerAll", value: function() {
18688
18688
  this.regexIndex = 0;
18689
- } }, { key: "addRule", value: function(De, ee) {
18690
- this.rules.push([De, ee]), ee.type === "begin" && this.count++;
18689
+ } }, { key: "addRule", value: function(De, $) {
18690
+ this.rules.push([De, $]), $.type === "begin" && this.count++;
18691
18691
  } }, { key: "exec", value: function(De) {
18692
- var ee = this.getMatcher(this.regexIndex);
18693
- ee.lastIndex = this.lastIndex;
18694
- var xe = ee.exec(De);
18692
+ var $ = this.getMatcher(this.regexIndex);
18693
+ $.lastIndex = this.lastIndex;
18694
+ var xe = $.exec(De);
18695
18695
  if (this.resumingScanAtSamePosition() && !(xe && xe.index === this.lastIndex)) {
18696
18696
  var Be = this.getMatcher(0);
18697
18697
  Be.lastIndex = this.lastIndex + 1, xe = Be.exec(De);
@@ -18699,17 +18699,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $ = ne, ue = X), Z ==
18699
18699
  return xe && (this.regexIndex += xe.position + 1, this.regexIndex === this.count && this.considerAll()), xe;
18700
18700
  } }]);
18701
18701
  if (!fe.compilerExtensions && (fe.compilerExtensions = []), fe.contains && fe.contains.includes("self")) throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
18702
- return fe.classNameAliases = h(fe.classNameAliases || {}), function De(ee, xe) {
18703
- if (ee.isCompiled) return ee;
18702
+ return fe.classNameAliases = h(fe.classNameAliases || {}), function De($, xe) {
18703
+ if ($.isCompiled) return $;
18704
18704
  [q, ce, Pe, pe].forEach(function(Ge) {
18705
- return Ge(ee, xe);
18705
+ return Ge($, xe);
18706
18706
  }), fe.compilerExtensions.forEach(function(Ge) {
18707
- return Ge(ee, xe);
18708
- }), ee.__beforeBegin = null, [W, re, le].forEach(function(Ge) {
18709
- return Ge(ee, xe);
18710
- }), ee.isCompiled = !0;
18707
+ return Ge($, xe);
18708
+ }), $.__beforeBegin = null, [W, re, le].forEach(function(Ge) {
18709
+ return Ge($, xe);
18710
+ }), $.isCompiled = !0;
18711
18711
  var Be, Ve, $e, qe = null;
18712
- return l(ee.keywords) === "object" && ee.keywords.$pattern && (ee.keywords = Object.assign({}, ee.keywords), qe = ee.keywords.$pattern, delete ee.keywords.$pattern), qe = qe || /\w+/, ee.keywords && (ee.keywords = function Ge(se, mt) {
18712
+ return l($.keywords) === "object" && $.keywords.$pattern && ($.keywords = Object.assign({}, $.keywords), qe = $.keywords.$pattern, delete $.keywords.$pattern), qe = qe || /\w+/, $.keywords && ($.keywords = function Ge(se, mt) {
18713
18713
  var Ft = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "keyword", Xt = /* @__PURE__ */ Object.create(null);
18714
18714
  return typeof se == "string" ? Gt(Ft, se.split(" ")) : Array.isArray(se) ? Gt(Ft, se) : Object.keys(se).forEach(function(Ut) {
18715
18715
  Object.assign(Xt, Ge(se[Ut], mt, Ut));
@@ -18726,19 +18726,19 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $ = ne, ue = X), Z ==
18726
18726
  }(P1[0], P1[1])];
18727
18727
  });
18728
18728
  }
18729
- }(ee.keywords, fe.case_insensitive)), ee.keywordPatternRe = be(qe, !0), xe && (!ee.begin && (ee.begin = /\B|\b/), ee.beginRe = be(ee.begin), !ee.end && !ee.endsWithParent && (ee.end = /\B|\b/), ee.end && (ee.endRe = be(ee.end)), ee.terminatorEnd = S(ee.end) || "", ee.endsWithParent && xe.terminatorEnd && (ee.terminatorEnd += (ee.end ? "|" : "") + xe.terminatorEnd)), ee.illegal && (ee.illegalRe = be(ee.illegal)), !ee.contains && (ee.contains = []), ee.contains = (Be = []).concat.apply(Be, c(ee.contains.map(function(Ge) {
18729
+ }($.keywords, fe.case_insensitive)), $.keywordPatternRe = be(qe, !0), xe && (!$.begin && ($.begin = /\B|\b/), $.beginRe = be($.begin), !$.end && !$.endsWithParent && ($.end = /\B|\b/), $.end && ($.endRe = be($.end)), $.terminatorEnd = S($.end) || "", $.endsWithParent && xe.terminatorEnd && ($.terminatorEnd += ($.end ? "|" : "") + xe.terminatorEnd)), $.illegal && ($.illegalRe = be($.illegal)), !$.contains && ($.contains = []), $.contains = (Be = []).concat.apply(Be, c($.contains.map(function(Ge) {
18730
18730
  return function(se) {
18731
18731
  return se.variants && !se.cachedVariants && (se.cachedVariants = se.variants.map(function(mt) {
18732
18732
  return h(se, { variants: null }, mt);
18733
18733
  })), se.cachedVariants ? se.cachedVariants : function mt(Ft) {
18734
18734
  return !!Ft && (Ft.endsWithParent || mt(Ft.starts));
18735
18735
  }(se) ? h(se, { starts: se.starts ? h(se.starts) : null }) : Object.isFrozen(se) ? h(se) : se;
18736
- }(Ge === "self" ? ee : Ge);
18737
- }))), ee.contains.forEach(function(Ge) {
18738
- De(Ge, ee);
18739
- }), ee.starts && De(ee.starts, xe), ee.matcher = (Ve = ee, $e = new _t(), Ve.contains.forEach(function(Ge) {
18736
+ }(Ge === "self" ? $ : Ge);
18737
+ }))), $.contains.forEach(function(Ge) {
18738
+ De(Ge, $);
18739
+ }), $.starts && De($.starts, xe), $.matcher = (Ve = $, $e = new _t(), Ve.contains.forEach(function(Ge) {
18740
18740
  return $e.addRule(Ge.begin, { rule: Ge, type: "begin" });
18741
- }), Ve.terminatorEnd && $e.addRule(Ve.terminatorEnd, { type: "end" }), Ve.illegal && $e.addRule(Ve.illegal, { type: "illegal" }), $e), ee;
18741
+ }), Ve.terminatorEnd && $e.addRule(Ve.terminatorEnd, { type: "end" }), Ve.illegal && $e.addRule(Ve.illegal, { type: "illegal" }), $e), $;
18742
18742
  }(fe);
18743
18743
  }(Je), Zt = "", Ee = ue || Mt, O1 = {}, Ze = new ge.__emitter(ge);
18744
18744
  (function() {
@@ -18769,10 +18769,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $ = ne, ue = X), Z ==
18769
18769
  }
18770
18770
  function dt(ne, X) {
18771
18771
  X = X || ge.languages || Object.keys(j);
18772
- var Z, ue, $ = ((ue = { value: f(Z = ne), illegal: !1, relevance: 0, _top: te, _emitter: new ge.__emitter(ge) })._emitter.addText(Z), ue), J = X.filter(ht).filter(t1).map(function(Le) {
18772
+ var Z, ue, ee = ((ue = { value: f(Z = ne), illegal: !1, relevance: 0, _top: te, _emitter: new ge.__emitter(ge) })._emitter.addText(Z), ue), J = X.filter(ht).filter(t1).map(function(Le) {
18773
18773
  return Xe(Le, ne, !1);
18774
18774
  });
18775
- J.unshift($);
18775
+ J.unshift(ee);
18776
18776
  var Qe = t(J.sort(function(Le, Ie) {
18777
18777
  if (Le.relevance !== Ie.relevance) return Ie.relevance - Le.relevance;
18778
18778
  if (Le.language && Ie.language) {
@@ -18802,8 +18802,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $ = ne, ue = X), Z ==
18802
18802
  return;
18803
18803
  }
18804
18804
  if (ne.children.length > 0 && (!ge.ignoreUnescapedHTML && (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(ne)), ge.throwUnescapedHTML)) throw new nt("One of your code blocks includes unescaped HTML.", ne.innerHTML);
18805
- var Z, ue, $, J, Qe = ne.textContent, ie = X ? st(Qe, { language: X, ignoreIllegals: !0 }) : dt(Qe);
18806
- ne.innerHTML = ie.value, ne.dataset.highlighted = "yes", Z = ne, ue = X, $ = ie.language, J = ue && z[ue] || $, Z.classList.add("hljs"), Z.classList.add("language-".concat(J)), ne.result = { language: ie.language, re: ie.relevance, relevance: ie.relevance }, ie.secondBest && (ne.secondBest = { language: ie.secondBest.language, relevance: ie.secondBest.relevance }), Ce("after:highlightElement", { el: ne, result: ie, text: Qe });
18805
+ var Z, ue, ee, J, Qe = ne.textContent, ie = X ? st(Qe, { language: X, ignoreIllegals: !0 }) : dt(Qe);
18806
+ ne.innerHTML = ie.value, ne.dataset.highlighted = "yes", Z = ne, ue = X, ee = ie.language, J = ue && z[ue] || ee, Z.classList.add("hljs"), Z.classList.add("language-".concat(J)), ne.result = { language: ie.language, re: ie.relevance, relevance: ie.relevance }, ie.secondBest && (ne.secondBest = { language: ie.secondBest.language, relevance: ie.secondBest.relevance }), Ce("after:highlightElement", { el: ne, result: ie, text: Qe });
18807
18807
  }
18808
18808
  }
18809
18809
  var Ot = !1;
@@ -18880,8 +18880,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $ = ne, ue = X), Z ==
18880
18880
  } : X instanceof Set && (X.add = X.clear = X.delete = function() {
18881
18881
  throw Error("set is read-only");
18882
18882
  }), Object.freeze(X), Object.getOwnPropertyNames(X).forEach(function(Z) {
18883
- var ue = X[Z], $ = l(ue);
18884
- ($ === "object" || $ === "function") && !Object.isFrozen(ue) && ne(ue);
18883
+ var ue = X[Z], ee = l(ue);
18884
+ (ee === "object" || ee === "function") && !Object.isFrozen(ue) && ne(ue);
18885
18885
  }), X;
18886
18886
  }(G[Me]);
18887
18887
  return Object.assign(V, G), V;
@@ -23192,19 +23192,19 @@ let dc = function(r) {
23192
23192
  throw TypeError(`Invalid attempt to iterate non-iterable instance.
23193
23193
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
23194
23194
  }
23195
- var $, J = !0, Qe = !1;
23195
+ var ee, J = !0, Qe = !1;
23196
23196
  return { s: function() {
23197
23197
  X = X.call(Me);
23198
23198
  }, n: function() {
23199
23199
  var ie = X.next();
23200
23200
  return J = ie.done, ie;
23201
23201
  }, e: function(ie) {
23202
- Qe = !0, $ = ie;
23202
+ Qe = !0, ee = ie;
23203
23203
  }, f: function() {
23204
23204
  try {
23205
23205
  J || X.return == null || X.return();
23206
23206
  } finally {
23207
- if (Qe) throw $;
23207
+ if (Qe) throw ee;
23208
23208
  }
23209
23209
  } };
23210
23210
  }(u);
@@ -23326,19 +23326,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
23326
23326
  return ne.start - Me.start;
23327
23327
  }).forEach(function(Me, ne) {
23328
23328
  Me.fullMatch;
23329
- for (var X = Me.answer, Z = Me.start, ue = Me.end, $ = !1, J = "\\", Qe = [], ie = 0; ie < Ce.length - 1; ie++) Ce.substr(ie, 2) === "$$" && (Qe.push(ie), ie++);
23329
+ for (var X = Me.answer, Z = Me.start, ue = Me.end, ee = !1, J = "\\", Qe = [], ie = 0; ie < Ce.length - 1; ie++) Ce.substr(ie, 2) === "$$" && (Qe.push(ie), ie++);
23330
23330
  if (Qe.length >= 2) for (var Re = 0; Re < Qe.length - 1; Re += 2) {
23331
23331
  var Le = Qe[Re], Ie = Qe[Re + 1] + 2;
23332
23332
  if (Le < Z && Ie > ue && !Ce.substring(Z, ue).includes("$$")) {
23333
23333
  var gt = Ce.substring(Le + 2, Ie - 2);
23334
23334
  if (!gt.includes("$$")) {
23335
23335
  var Je = gt.match(/^[^\\]*?(\\+)/);
23336
- J = Je ? Je[1] : J, $ = !0;
23336
+ J = Je ? Je[1] : J, ee = !0;
23337
23337
  break;
23338
23338
  }
23339
23339
  }
23340
23340
  }
23341
- if ($) {
23341
+ if (ee) {
23342
23342
  var Mt, Zt, Ee, O1 = !1, Ze = !1, we = !1, Vt = !1, bt = !1;
23343
23343
  Ce.charAt(Z - 1), Ce.charAt(ue);
23344
23344
  var r1 = Z, n1 = ue;
@@ -23363,8 +23363,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
23363
23363
  ke === "\\left(" && _t === "\\right)" && (Ce = Ce.substring(0, Z - 6) + Ce.substring(Z, ue) + Ce.substring(ue + 7), Z -= 6, ue -= 6);
23364
23364
  } else Z = r1, ue = n1;
23365
23365
  else {
23366
- var De = Ce.substring(Z - 6, Z), ee = Ce.substring(ue, ue + 7);
23367
- De === "\\left(" && ee === "\\right)" ? (Vt = !0, bt = !0, be = !0) : (Vt = !1, bt = !1, r1 = Z, n1 = ue, be = !1);
23366
+ var De = Ce.substring(Z - 6, Z), $ = Ce.substring(ue, ue + 7);
23367
+ De === "\\left(" && $ === "\\right)" ? (Vt = !0, bt = !0, be = !0) : (Vt = !1, bt = !1, r1 = Z, n1 = ue, be = !1);
23368
23368
  }
23369
23369
  for (var xe = /\\enclose\{circle\}\{([^{}]*?)##[^#]*##([^{}]*?)\}/g; (Mt = xe.exec(r)) !== null; ) if (Mt.index < Z && Mt.index + Mt[0].length > ue) {
23370
23370
  Ze = !0;
@@ -43497,16 +43497,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
43497
43497
  return ge.noHighlightRe.test(ne);
43498
43498
  }
43499
43499
  function st(ne, X, Z) {
43500
- var ue = "", $ = "";
43501
- l(X) === "object" ? (ue = ne, Z = X.ignoreIllegals, $ = X.language) : (Ae("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Ae("10.7.0", `Please use highlight(code, options) instead.
43502
- https://github.com/highlightjs/highlight.js/issues/2277`), $ = ne, ue = X), Z === void 0 && (Z = !0);
43503
- var J = { code: ue, language: $ };
43500
+ var ue = "", ee = "";
43501
+ l(X) === "object" ? (ue = ne, Z = X.ignoreIllegals, ee = X.language) : (Ae("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Ae("10.7.0", `Please use highlight(code, options) instead.
43502
+ https://github.com/highlightjs/highlight.js/issues/2277`), ee = ne, ue = X), Z === void 0 && (Z = !0);
43503
+ var J = { code: ue, language: ee };
43504
43504
  Ce("before:highlight", J);
43505
43505
  var Qe = J.result ? J.result : Xe(J.language, J.code, Z);
43506
43506
  return Qe.code = J.code, Ce("after:highlight", Qe), Qe;
43507
43507
  }
43508
43508
  function Xe(ne, X, Z, ue) {
43509
- var $ = /* @__PURE__ */ Object.create(null);
43509
+ var ee = /* @__PURE__ */ Object.create(null);
43510
43510
  function J() {
43511
43511
  if (!Ee.keywords) {
43512
43512
  Ze.addText(we);
@@ -43518,8 +43518,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $ = ne, ue = X), Z ==
43518
43518
  ke += we.substring(fe, be.index);
43519
43519
  var _t = Je.case_insensitive ? be[0].toLowerCase() : be[0], De = Ee.keywords[_t];
43520
43520
  if (De) {
43521
- var ee = t(De, 2), xe = ee[0], Be = ee[1];
43522
- if (Ze.addText(ke), ke = "", $[_t] = ($[_t] || 0) + 1, $[_t] <= 7 && (Vt += Be), xe.startsWith("_")) ke += be[0];
43521
+ var $ = t(De, 2), xe = $[0], Be = $[1];
43522
+ if (Ze.addText(ke), ke = "", ee[_t] = (ee[_t] || 0) + 1, ee[_t] <= 7 && (Vt += Be), xe.startsWith("_")) ke += be[0];
43523
43523
  else {
43524
43524
  var Ve = Je.classNameAliases[xe] || xe;
43525
43525
  ie(be[0], Ve);
@@ -43553,8 +43553,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $ = ne, ue = X), Z ==
43553
43553
  ke++;
43554
43554
  continue;
43555
43555
  }
43556
- var De = Je.classNameAliases[fe[ke]] || fe[ke], ee = be[ke];
43557
- De ? ie(ee, De) : (we = ee, J(), we = ""), ke++;
43556
+ var De = Je.classNameAliases[fe[ke]] || fe[ke], $ = be[ke];
43557
+ De ? ie($, De) : (we = $, J(), we = ""), ke++;
43558
43558
  }
43559
43559
  }
43560
43560
  function Le(fe, be) {
@@ -43606,8 +43606,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $ = ne, ue = X), Z ==
43606
43606
  if (De !== Ye) return De;
43607
43607
  }
43608
43608
  } else {
43609
- var ee = Error('Illegal lexeme "' + ke + '" for mode "' + (Ee.scope || "<unnamed>") + '"');
43610
- throw ee.mode = Ee, ee;
43609
+ var $ = Error('Illegal lexeme "' + ke + '" for mode "' + (Ee.scope || "<unnamed>") + '"');
43610
+ throw $.mode = Ee, $;
43611
43611
  }
43612
43612
  if (be.type === "illegal" && ke === "") return we += `
43613
43613
  `, 1;
@@ -43617,48 +43617,48 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $ = ne, ue = X), Z ==
43617
43617
  var Je = ht(ne);
43618
43618
  if (!Je) throw he(_e.replace("{}", ne)), Error('Unknown language: "' + ne + '"');
43619
43619
  var Mt = function(fe) {
43620
- function be(De, ee) {
43621
- return RegExp(S(De), "m" + (fe.case_insensitive ? "i" : "") + (fe.unicodeRegex ? "u" : "") + (ee ? "g" : ""));
43620
+ function be(De, $) {
43621
+ return RegExp(S(De), "m" + (fe.case_insensitive ? "i" : "") + (fe.unicodeRegex ? "u" : "") + ($ ? "g" : ""));
43622
43622
  }
43623
43623
  var ke = u(function De() {
43624
43624
  s(this, De), this.matchIndexes = {}, this.regexes = [], this.matchAt = 1, this.position = 0;
43625
- }, [{ key: "addRule", value: function(De, ee) {
43626
- ee.position = this.position++, this.matchIndexes[this.matchAt] = ee, this.regexes.push([ee, De]), this.matchAt += x(De) + 1;
43625
+ }, [{ key: "addRule", value: function(De, $) {
43626
+ $.position = this.position++, this.matchIndexes[this.matchAt] = $, this.regexes.push([$, De]), this.matchAt += x(De) + 1;
43627
43627
  } }, { key: "compile", value: function() {
43628
43628
  this.regexes.length === 0 && (this.exec = function() {
43629
43629
  return null;
43630
43630
  });
43631
- var De = this.regexes.map(function(ee) {
43632
- return ee[1];
43631
+ var De = this.regexes.map(function($) {
43632
+ return $[1];
43633
43633
  });
43634
43634
  this.matcherRe = be(M(De, { joinWith: "|" }), !0), this.lastIndex = 0;
43635
43635
  } }, { key: "exec", value: function(De) {
43636
43636
  this.matcherRe.lastIndex = this.lastIndex;
43637
- var ee = this.matcherRe.exec(De);
43638
- if (!ee) return null;
43639
- var xe = ee.findIndex(function(Ve, $e) {
43637
+ var $ = this.matcherRe.exec(De);
43638
+ if (!$) return null;
43639
+ var xe = $.findIndex(function(Ve, $e) {
43640
43640
  return $e > 0 && Ve !== void 0;
43641
43641
  }), Be = this.matchIndexes[xe];
43642
- return ee.splice(0, xe), Object.assign(ee, Be);
43642
+ return $.splice(0, xe), Object.assign($, Be);
43643
43643
  } }]), _t = u(function De() {
43644
43644
  s(this, De), this.rules = [], this.multiRegexes = [], this.count = 0, this.lastIndex = 0, this.regexIndex = 0;
43645
43645
  }, [{ key: "getMatcher", value: function(De) {
43646
43646
  if (this.multiRegexes[De]) return this.multiRegexes[De];
43647
- var ee = new ke();
43647
+ var $ = new ke();
43648
43648
  return this.rules.slice(De).forEach(function(xe) {
43649
43649
  var Be = t(xe, 2), Ve = Be[0], $e = Be[1];
43650
- return ee.addRule(Ve, $e);
43651
- }), ee.compile(), this.multiRegexes[De] = ee, ee;
43650
+ return $.addRule(Ve, $e);
43651
+ }), $.compile(), this.multiRegexes[De] = $, $;
43652
43652
  } }, { key: "resumingScanAtSamePosition", value: function() {
43653
43653
  return this.regexIndex !== 0;
43654
43654
  } }, { key: "considerAll", value: function() {
43655
43655
  this.regexIndex = 0;
43656
- } }, { key: "addRule", value: function(De, ee) {
43657
- this.rules.push([De, ee]), ee.type === "begin" && this.count++;
43656
+ } }, { key: "addRule", value: function(De, $) {
43657
+ this.rules.push([De, $]), $.type === "begin" && this.count++;
43658
43658
  } }, { key: "exec", value: function(De) {
43659
- var ee = this.getMatcher(this.regexIndex);
43660
- ee.lastIndex = this.lastIndex;
43661
- var xe = ee.exec(De);
43659
+ var $ = this.getMatcher(this.regexIndex);
43660
+ $.lastIndex = this.lastIndex;
43661
+ var xe = $.exec(De);
43662
43662
  if (this.resumingScanAtSamePosition() && !(xe && xe.index === this.lastIndex)) {
43663
43663
  var Be = this.getMatcher(0);
43664
43664
  Be.lastIndex = this.lastIndex + 1, xe = Be.exec(De);
@@ -43666,17 +43666,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $ = ne, ue = X), Z ==
43666
43666
  return xe && (this.regexIndex += xe.position + 1, this.regexIndex === this.count && this.considerAll()), xe;
43667
43667
  } }]);
43668
43668
  if (fe.compilerExtensions || (fe.compilerExtensions = []), fe.contains && fe.contains.includes("self")) throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
43669
- return fe.classNameAliases = h(fe.classNameAliases || {}), function De(ee, xe) {
43670
- if (ee.isCompiled) return ee;
43669
+ return fe.classNameAliases = h(fe.classNameAliases || {}), function De($, xe) {
43670
+ if ($.isCompiled) return $;
43671
43671
  [q, ce, Pe, pe].forEach(function(qe) {
43672
- return qe(ee, xe);
43672
+ return qe($, xe);
43673
43673
  }), fe.compilerExtensions.forEach(function(qe) {
43674
- return qe(ee, xe);
43675
- }), ee.__beforeBegin = null, [W, re, le].forEach(function(qe) {
43676
- return qe(ee, xe);
43677
- }), ee.isCompiled = !0;
43674
+ return qe($, xe);
43675
+ }), $.__beforeBegin = null, [W, re, le].forEach(function(qe) {
43676
+ return qe($, xe);
43677
+ }), $.isCompiled = !0;
43678
43678
  var Be, Ve, $e = null;
43679
- return l(ee.keywords) === "object" && ee.keywords.$pattern && (ee.keywords = Object.assign({}, ee.keywords), $e = ee.keywords.$pattern, delete ee.keywords.$pattern), $e = $e || /\w+/, ee.keywords && (ee.keywords = function qe(Ge, se) {
43679
+ return l($.keywords) === "object" && $.keywords.$pattern && ($.keywords = Object.assign({}, $.keywords), $e = $.keywords.$pattern, delete $.keywords.$pattern), $e = $e || /\w+/, $.keywords && ($.keywords = function qe(Ge, se) {
43680
43680
  var mt = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "keyword", Ft = /* @__PURE__ */ Object.create(null);
43681
43681
  return typeof Ge == "string" ? Xt(mt, Ge.split(" ")) : Array.isArray(Ge) ? Xt(mt, Ge) : Object.keys(Ge).forEach(function(Gt) {
43682
43682
  Object.assign(Ft, qe(Ge[Gt], se, Gt));
@@ -43689,18 +43689,18 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $ = ne, ue = X), Z ==
43689
43689
  Ft[qt[0]] = [Gt, (v1 = qt[0], (P1 = qt[1]) ? Number(P1) : (X1 = v1, Te.includes(X1.toLowerCase()) ? 0 : 1))];
43690
43690
  });
43691
43691
  }
43692
- }(ee.keywords, fe.case_insensitive)), ee.keywordPatternRe = be($e, !0), xe && (ee.begin || (ee.begin = /\B|\b/), ee.beginRe = be(ee.begin), ee.end || ee.endsWithParent || (ee.end = /\B|\b/), ee.end && (ee.endRe = be(ee.end)), ee.terminatorEnd = S(ee.end) || "", ee.endsWithParent && xe.terminatorEnd && (ee.terminatorEnd += (ee.end ? "|" : "") + xe.terminatorEnd)), ee.illegal && (ee.illegalRe = be(ee.illegal)), ee.contains || (ee.contains = []), ee.contains = (Be = []).concat.apply(Be, c(ee.contains.map(function(qe) {
43692
+ }($.keywords, fe.case_insensitive)), $.keywordPatternRe = be($e, !0), xe && ($.begin || ($.begin = /\B|\b/), $.beginRe = be($.begin), $.end || $.endsWithParent || ($.end = /\B|\b/), $.end && ($.endRe = be($.end)), $.terminatorEnd = S($.end) || "", $.endsWithParent && xe.terminatorEnd && ($.terminatorEnd += ($.end ? "|" : "") + xe.terminatorEnd)), $.illegal && ($.illegalRe = be($.illegal)), $.contains || ($.contains = []), $.contains = (Be = []).concat.apply(Be, c($.contains.map(function(qe) {
43693
43693
  var Ge;
43694
- return (Ge = qe === "self" ? ee : qe).variants && !Ge.cachedVariants && (Ge.cachedVariants = Ge.variants.map(function(se) {
43694
+ return (Ge = qe === "self" ? $ : qe).variants && !Ge.cachedVariants && (Ge.cachedVariants = Ge.variants.map(function(se) {
43695
43695
  return h(Ge, { variants: null }, se);
43696
43696
  })), Ge.cachedVariants ? Ge.cachedVariants : function se(mt) {
43697
43697
  return !!mt && (mt.endsWithParent || se(mt.starts));
43698
43698
  }(Ge) ? h(Ge, { starts: Ge.starts ? h(Ge.starts) : null }) : Object.isFrozen(Ge) ? h(Ge) : Ge;
43699
- }))), ee.contains.forEach(function(qe) {
43700
- De(qe, ee);
43701
- }), ee.starts && De(ee.starts, xe), ee.matcher = (Ve = new _t(), ee.contains.forEach(function(qe) {
43699
+ }))), $.contains.forEach(function(qe) {
43700
+ De(qe, $);
43701
+ }), $.starts && De($.starts, xe), $.matcher = (Ve = new _t(), $.contains.forEach(function(qe) {
43702
43702
  return Ve.addRule(qe.begin, { rule: qe, type: "begin" });
43703
- }), ee.terminatorEnd && Ve.addRule(ee.terminatorEnd, { type: "end" }), ee.illegal && Ve.addRule(ee.illegal, { type: "illegal" }), Ve), ee;
43703
+ }), $.terminatorEnd && Ve.addRule($.terminatorEnd, { type: "end" }), $.illegal && Ve.addRule($.illegal, { type: "illegal" }), Ve), $;
43704
43704
  }(fe);
43705
43705
  }(Je), Zt = "", Ee = ue || Mt, O1 = {}, Ze = new ge.__emitter(ge);
43706
43706
  (function() {
@@ -43731,11 +43731,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $ = ne, ue = X), Z ==
43731
43731
  }
43732
43732
  function dt(ne, X) {
43733
43733
  X = X || ge.languages || Object.keys(j);
43734
- var Z, ue = ((Z = { value: f(ne), illegal: !1, relevance: 0, _top: te, _emitter: new ge.__emitter(ge) })._emitter.addText(ne), Z), $ = X.filter(ht).filter(t1).map(function(Re) {
43734
+ var Z, ue = ((Z = { value: f(ne), illegal: !1, relevance: 0, _top: te, _emitter: new ge.__emitter(ge) })._emitter.addText(ne), Z), ee = X.filter(ht).filter(t1).map(function(Re) {
43735
43735
  return Xe(Re, ne, !1);
43736
43736
  });
43737
- $.unshift(ue);
43738
- var J = t($.sort(function(Re, Le) {
43737
+ ee.unshift(ue);
43738
+ var J = t(ee.sort(function(Re, Le) {
43739
43739
  if (Re.relevance !== Le.relevance) return Le.relevance - Re.relevance;
43740
43740
  if (Re.language && Le.language) {
43741
43741
  if (ht(Re.language).supersetOf === Le.language) return 1;
@@ -43764,8 +43764,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $ = ne, ue = X), Z ==
43764
43764
  return;
43765
43765
  }
43766
43766
  if (ne.children.length > 0 && (ge.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(ne)), ge.throwUnescapedHTML)) throw new nt("One of your code blocks includes unescaped HTML.", ne.innerHTML);
43767
- var Z, ue, $ = ne.textContent, J = X ? st($, { language: X, ignoreIllegals: !0 }) : dt($);
43768
- ne.innerHTML = J.value, ne.dataset.highlighted = "yes", Z = J.language, ue = X && z[X] || Z, ne.classList.add("hljs"), ne.classList.add("language-".concat(ue)), ne.result = { language: J.language, re: J.relevance, relevance: J.relevance }, J.secondBest && (ne.secondBest = { language: J.secondBest.language, relevance: J.secondBest.relevance }), Ce("after:highlightElement", { el: ne, result: J, text: $ });
43767
+ var Z, ue, ee = ne.textContent, J = X ? st(ee, { language: X, ignoreIllegals: !0 }) : dt(ee);
43768
+ ne.innerHTML = J.value, ne.dataset.highlighted = "yes", Z = J.language, ue = X && z[X] || Z, ne.classList.add("hljs"), ne.classList.add("language-".concat(ue)), ne.result = { language: J.language, re: J.relevance, relevance: J.relevance }, J.secondBest && (ne.secondBest = { language: J.secondBest.language, relevance: J.secondBest.relevance }), Ce("after:highlightElement", { el: ne, result: J, text: ee });
43769
43769
  }
43770
43770
  }
43771
43771
  var Ot = !1;
@@ -43842,8 +43842,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $ = ne, ue = X), Z ==
43842
43842
  } : X instanceof Set && (X.add = X.clear = X.delete = function() {
43843
43843
  throw Error("set is read-only");
43844
43844
  }), Object.freeze(X), Object.getOwnPropertyNames(X).forEach(function(Z) {
43845
- var ue = X[Z], $ = l(ue);
43846
- $ !== "object" && $ !== "function" || Object.isFrozen(ue) || ne(ue);
43845
+ var ue = X[Z], ee = l(ue);
43846
+ ee !== "object" && ee !== "function" || Object.isFrozen(ue) || ne(ue);
43847
43847
  }), X;
43848
43848
  }(G[Me]);
43849
43849
  return Object.assign(V, G), V;
@@ -48096,19 +48096,19 @@ var nT = function(r) {
48096
48096
  throw TypeError(`Invalid attempt to iterate non-iterable instance.
48097
48097
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
48098
48098
  }
48099
- var $, J = !0, Qe = !1;
48099
+ var ee, J = !0, Qe = !1;
48100
48100
  return { s: function() {
48101
48101
  X = X.call(Me);
48102
48102
  }, n: function() {
48103
48103
  var ie = X.next();
48104
48104
  return J = ie.done, ie;
48105
48105
  }, e: function(ie) {
48106
- Qe = !0, $ = ie;
48106
+ Qe = !0, ee = ie;
48107
48107
  }, f: function() {
48108
48108
  try {
48109
48109
  J || X.return == null || X.return();
48110
48110
  } finally {
48111
- if (Qe) throw $;
48111
+ if (Qe) throw ee;
48112
48112
  }
48113
48113
  } };
48114
48114
  }(u);
@@ -48230,19 +48230,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
48230
48230
  return ne.start - Me.start;
48231
48231
  }).forEach(function(Me, ne) {
48232
48232
  Me.fullMatch;
48233
- for (var X = Me.answer, Z = Me.start, ue = Me.end, $ = !1, J = "\\", Qe = [], ie = 0; ie < Ce.length - 1; ie++) Ce.substr(ie, 2) === "$$" && (Qe.push(ie), ie++);
48233
+ for (var X = Me.answer, Z = Me.start, ue = Me.end, ee = !1, J = "\\", Qe = [], ie = 0; ie < Ce.length - 1; ie++) Ce.substr(ie, 2) === "$$" && (Qe.push(ie), ie++);
48234
48234
  if (Qe.length >= 2) for (var Re = 0; Re < Qe.length - 1; Re += 2) {
48235
48235
  var Le = Qe[Re], Ie = Qe[Re + 1] + 2;
48236
48236
  if (Le < Z && Ie > ue && !Ce.substring(Z, ue).includes("$$")) {
48237
48237
  var gt = Ce.substring(Le + 2, Ie - 2);
48238
48238
  if (!gt.includes("$$")) {
48239
48239
  var Je = gt.match(/^[^\\]*?(\\+)/);
48240
- J = Je ? Je[1] : J, $ = !0;
48240
+ J = Je ? Je[1] : J, ee = !0;
48241
48241
  break;
48242
48242
  }
48243
48243
  }
48244
48244
  }
48245
- if ($) {
48245
+ if (ee) {
48246
48246
  var Mt, Zt, Ee, O1 = !1, Ze = !1, we = !1, Vt = !1, bt = !1;
48247
48247
  Ce.charAt(Z - 1), Ce.charAt(ue);
48248
48248
  var r1 = Z, n1 = ue;
@@ -48267,8 +48267,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
48267
48267
  ke === "\\left(" && _t === "\\right)" && (Ce = Ce.substring(0, Z - 6) + Ce.substring(Z, ue) + Ce.substring(ue + 7), Z -= 6, ue -= 6);
48268
48268
  } else Z = r1, ue = n1;
48269
48269
  else {
48270
- var De = Ce.substring(Z - 6, Z), ee = Ce.substring(ue, ue + 7);
48271
- De === "\\left(" && ee === "\\right)" ? (Vt = !0, bt = !0, be = !0) : (Vt = !1, bt = !1, r1 = Z, n1 = ue, be = !1);
48270
+ var De = Ce.substring(Z - 6, Z), $ = Ce.substring(ue, ue + 7);
48271
+ De === "\\left(" && $ === "\\right)" ? (Vt = !0, bt = !0, be = !0) : (Vt = !1, bt = !1, r1 = Z, n1 = ue, be = !1);
48272
48272
  }
48273
48273
  for (var xe = /\\enclose\{circle\}\{([^{}]*?)##[^#]*##([^{}]*?)\}/g; (Mt = xe.exec(r)) !== null; ) if (Mt.index < Z && Mt.index + Mt[0].length > ue) {
48274
48274
  Ze = !0;
@@ -51110,10 +51110,10 @@ function j7(r, e, t, i, Q, p, T, d, c) {
51110
51110
  if (!t) return;
51111
51111
  var E, _ = [], g = h;
51112
51112
  if (g = g.map(function(Z) {
51113
- var ue = null, $ = i[Z.imgIndex == 0 ? 0 : Z.imgIndex || l], J = 0, Qe = 0;
51114
- if ($ && t) {
51113
+ var ue = null, ee = i[Z.imgIndex == 0 ? 0 : Z.imgIndex || l], J = 0, Qe = 0;
51114
+ if (ee && t) {
51115
51115
  t.setLineDash([6, 4]);
51116
- var ie = $.getBoundingClientRect();
51116
+ var ie = ee.getBoundingClientRect();
51117
51117
  J = ie.top, Qe = ie.left;
51118
51118
  }
51119
51119
  return ue = typeof Z.coordinates == "string" ? Z.coordinates : Array.isArray(Z.coordinates) ? Z.coordinates.map(function(Re) {
@@ -51162,8 +51162,8 @@ function j7(r, e, t, i, Q, p, T, d, c) {
51162
51162
  return { x: q + Z.x, y: Y + Z.y };
51163
51163
  }), k = k.map(function(Z) {
51164
51164
  var ue = null;
51165
- return ue = typeof Z.coordinates == "string" ? Z.coordinates : Array.isArray(Z.coordinates) ? Z.coordinates.map(function($) {
51166
- return { x: q + $.x, y: Y + $.y };
51165
+ return ue = typeof Z.coordinates == "string" ? Z.coordinates : Array.isArray(Z.coordinates) ? Z.coordinates.map(function(ee) {
51166
+ return { x: q + ee.x, y: Y + ee.y };
51167
51167
  }) : { x: q + Z.coordinates.center[0].x, y: Y + Z.coordinates.center[0].y, radium: Z.coordinates.radium }, y1(y1({}, Z), {}, { coordinates: ue });
51168
51168
  });
51169
51169
  } else if (w = u, d === "text_image") return;
@@ -51202,13 +51202,13 @@ function j7(r, e, t, i, Q, p, T, d, c) {
51202
51202
  if (me.length == 4) {
51203
51203
  (function(Z, ue) {
51204
51204
  if (Z) {
51205
- var $, J = ($ = ue, { maxX: Math.max.apply(Math, Yt($.map(function(Mt) {
51205
+ var ee, J = (ee = ue, { maxX: Math.max.apply(Math, Yt(ee.map(function(Mt) {
51206
51206
  return Mt.x;
51207
- }))), maxY: Math.max.apply(Math, Yt($.map(function(Mt) {
51207
+ }))), maxY: Math.max.apply(Math, Yt(ee.map(function(Mt) {
51208
51208
  return Mt.y;
51209
- }))), minX: Math.min.apply(Math, Yt($.map(function(Mt) {
51209
+ }))), minX: Math.min.apply(Math, Yt(ee.map(function(Mt) {
51210
51210
  return Mt.x;
51211
- }))), minY: Math.min.apply(Math, Yt($.map(function(Mt) {
51211
+ }))), minY: Math.min.apply(Math, Yt(ee.map(function(Mt) {
51212
51212
  return Mt.y;
51213
51213
  }))) }), Qe = J.maxX, ie = J.maxY, Re = J.minX, Le = J.minY, Ie = { x: (Qe + Re) / 2, y: (ie + Le) / 2 }, gt = Math.abs(Qe - Re) / 2, Je = Math.abs(ie - Le) / 2;
51214
51214
  Z.save(), Z.beginPath(), Z.setLineDash([6, 4]), Z.ellipse(Ie.x, Ie.y, gt, Je, 0, -Math.PI / 2, 0, !1), Z.ellipse(Ie.x, Ie.y, gt, Je, 0, 0, Math.PI / 2, !1), Z.ellipse(Ie.x, Ie.y, gt, Je, 0, Math.PI / 2, Math.PI, !1), Z.ellipse(Ie.x, Ie.y, gt, Je, 0, Math.PI, Math.PI / 2, !1), Z.stroke(), Z.setLineDash([]), Z.restore();
@@ -51278,10 +51278,10 @@ function j7(r, e, t, i, Q, p, T, d, c) {
51278
51278
  console.warn("绘制扇形需要3个点坐标");
51279
51279
  return;
51280
51280
  }
51281
- return function($, J, Qe, ie) {
51282
- if ($) {
51281
+ return function(ee, J, Qe, ie) {
51282
+ if (ee) {
51283
51283
  var Re = Math.sqrt(Math.pow(Qe.x - J.x, 2) + Math.pow(Qe.y - J.y, 2)), Le = Math.atan2(Qe.y - J.y, Qe.x - J.x), Ie = Math.atan2(ie.y - J.y, ie.x - J.x);
51284
- $.save(), $.beginPath(), $.moveTo(J.x, J.y), $.setLineDash([6, 4]), $.arc(J.x, J.y, Re, Le, Ie, !1), $.closePath(), $.stroke(), $.setLineDash([]), $.restore();
51284
+ ee.save(), ee.beginPath(), ee.moveTo(J.x, J.y), ee.setLineDash([6, 4]), ee.arc(J.x, J.y, Re, Le, Ie, !1), ee.closePath(), ee.stroke(), ee.setLineDash([]), ee.restore();
51285
51285
  var gt = Le + (Ie - Le) / 2;
51286
51286
  Ie < Le && (gt = Le + (Ie + 2 * Math.PI - Le) / 2) > Math.PI && (gt -= 2 * Math.PI);
51287
51287
  var Je = { x: J.x + Re * Math.cos(gt), y: J.y + Re * Math.sin(gt) };
@@ -52303,7 +52303,6 @@ const Ue = {
52303
52303
  messageGap: "20px"
52304
52304
  }
52305
52305
  },
52306
- enableLatex: !0,
52307
52306
  customClasses: {
52308
52307
  container: "",
52309
52308
  header: "",
@@ -58639,7 +58638,7 @@ function fp() {
58639
58638
  var je = o[Pe - 15], V = je.high, j = je.low, z = (V >>> 1 | j << 31) ^ (V >>> 8 | j << 24) ^ V >>> 7, K = (j >>> 1 | V << 31) ^ (j >>> 8 | V << 24) ^ (j >>> 7 | V << 25), ae = o[Pe - 2], _e = ae.high, te = ae.low, ge = (_e >>> 19 | te << 13) ^ (_e << 3 | te >>> 29) ^ _e >>> 6, de = (te >>> 19 | _e << 13) ^ (te << 3 | _e >>> 29) ^ (te >>> 6 | _e << 26), st = o[Pe - 7], Xe = st.high, dt = st.low, We = o[Pe - 16], Ot = We.high, ze = We.low;
58640
58639
  nt = K + dt, Ye = z + Xe + (nt >>> 0 < K >>> 0 ? 1 : 0), nt = nt + de, Ye = Ye + ge + (nt >>> 0 < de >>> 0 ? 1 : 0), nt = nt + ze, Ye = Ye + Ot + (nt >>> 0 < ze >>> 0 ? 1 : 0), Ke.high = Ye, Ke.low = nt;
58641
58640
  }
58642
- var ht = pe & ve ^ ~pe & me, h1 = Te & he ^ ~Te & Ae, t1 = P & Y ^ P & W ^ Y & W, Ce = G & q ^ G & re ^ q & re, Me = (P >>> 28 | G << 4) ^ (P << 30 | G >>> 2) ^ (P << 25 | G >>> 7), ne = (G >>> 28 | P << 4) ^ (G << 30 | P >>> 2) ^ (G << 25 | P >>> 7), X = (pe >>> 14 | Te << 18) ^ (pe >>> 18 | Te << 14) ^ (pe << 23 | Te >>> 9), Z = (Te >>> 14 | pe << 18) ^ (Te >>> 18 | pe << 14) ^ (Te << 23 | pe >>> 9), ue = s[Pe], $ = ue.high, J = ue.low, Qe = Oe + Z, ie = Ne + X + (Qe >>> 0 < Oe >>> 0 ? 1 : 0), Qe = Qe + h1, ie = ie + ht + (Qe >>> 0 < h1 >>> 0 ? 1 : 0), Qe = Qe + J, ie = ie + $ + (Qe >>> 0 < J >>> 0 ? 1 : 0), Qe = Qe + nt, ie = ie + Ye + (Qe >>> 0 < nt >>> 0 ? 1 : 0), Re = ne + Ce, Le = Me + t1 + (Re >>> 0 < ne >>> 0 ? 1 : 0);
58641
+ var ht = pe & ve ^ ~pe & me, h1 = Te & he ^ ~Te & Ae, t1 = P & Y ^ P & W ^ Y & W, Ce = G & q ^ G & re ^ q & re, Me = (P >>> 28 | G << 4) ^ (P << 30 | G >>> 2) ^ (P << 25 | G >>> 7), ne = (G >>> 28 | P << 4) ^ (G << 30 | P >>> 2) ^ (G << 25 | P >>> 7), X = (pe >>> 14 | Te << 18) ^ (pe >>> 18 | Te << 14) ^ (pe << 23 | Te >>> 9), Z = (Te >>> 14 | pe << 18) ^ (Te >>> 18 | pe << 14) ^ (Te << 23 | pe >>> 9), ue = s[Pe], ee = ue.high, J = ue.low, Qe = Oe + Z, ie = Ne + X + (Qe >>> 0 < Oe >>> 0 ? 1 : 0), Qe = Qe + h1, ie = ie + ht + (Qe >>> 0 < h1 >>> 0 ? 1 : 0), Qe = Qe + J, ie = ie + ee + (Qe >>> 0 < J >>> 0 ? 1 : 0), Qe = Qe + nt, ie = ie + Ye + (Qe >>> 0 < nt >>> 0 ? 1 : 0), Re = ne + Ce, Le = Me + t1 + (Re >>> 0 < ne >>> 0 ? 1 : 0);
58643
58642
  Ne = me, Oe = Ae, me = ve, Ae = he, ve = pe, he = Te, Te = le + Qe | 0, pe = ce + ie + (Te >>> 0 < le >>> 0 ? 1 : 0) | 0, ce = W, le = re, W = Y, re = q, Y = P, q = G, G = Qe + Re | 0, P = ie + Le + (G >>> 0 < Qe >>> 0 ? 1 : 0) | 0;
58644
58643
  }
58645
58644
  L = h.low = L + G, h.high = A + P + (L >>> 0 < G >>> 0 ? 1 : 0), D = E.low = D + q, E.high = C + Y + (D >>> 0 < q >>> 0 ? 1 : 0), O = _.low = O + re, _.high = x + W + (O >>> 0 < re >>> 0 ? 1 : 0), N = g.low = N + le, g.high = M + ce + (N >>> 0 < le >>> 0 ? 1 : 0), w = v.low = w + Te, v.high = R + pe + (w >>> 0 < Te >>> 0 ? 1 : 0), B = y.low = B + he, y.high = k + ve + (B >>> 0 < he >>> 0 ? 1 : 0), H = S.low = H + Ae, S.high = U + me + (H >>> 0 < Ae >>> 0 ? 1 : 0), I = b.low = I + Oe, b.high = F + Ne + (I >>> 0 < Oe >>> 0 ? 1 : 0);
@@ -63629,10 +63628,10 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
63629
63628
  emits: ["messageSend", "feedback", "muteToggle", "not-my-question", "snap-another", "session-updated", "tracking", "question-data-updated"],
63630
63629
  setup(r, { expose: e, emit: t }) {
63631
63630
  const i = r, Q = t, p = lt(!0), T = lt(""), d = lt(!1), c = lt(!1), n = lt(""), a = M3(), s = lt(), o = e1(() => a.questionInfo && Object.keys(a.questionInfo).length > 0 ? a.questionInfo : i.questionInfo && Object.keys(i.questionInfo).length > 0 ? (a.updateQuestionInfo(i.questionInfo), a.questionInfo) : a.questionInfo || {}), u = e1(() => Jn(i.config)), l = e1(() => gg(i.config)), m = e1(() => _g(Jn(i.config))), f = e1(() => Eg(Jn(i.config))), h = e1(() => bg(Jn(i.config))), E = e1(() => vg()), _ = e1(() => yg()), g = e1(() => Sg(u.value)), v = e1(() => Ag(u.value)), y = e1(() => Lg(u.value)), S = e1(() => {
63632
- var $;
63633
- return d.value ? "Generating speech from text..." : Pe.value ? "Feel free to ask Thinkie any questions" : (($ = u.value.input) == null ? void 0 : $.placeholder) || Ue.input.placeholder;
63634
- }), b = e1(() => L.value.some(($) => $.showCompletionSection)), A = e1(() => L.value.some(
63635
- ($) => $.showFeedbackOnly || $.followUpQuestions && $.followUpQuestions.length > 0
63631
+ var ee;
63632
+ return d.value ? "Generating speech from text..." : Pe.value ? "Feel free to ask Thinkie any questions" : ((ee = u.value.input) == null ? void 0 : ee.placeholder) || Ue.input.placeholder;
63633
+ }), b = e1(() => L.value.some((ee) => ee.showCompletionSection)), A = e1(() => L.value.some(
63634
+ (ee) => ee.showFeedbackOnly || ee.followUpQuestions && ee.followUpQuestions.length > 0
63636
63635
  )), {
63637
63636
  messages: L,
63638
63637
  messagesContainer: C,
@@ -63671,12 +63670,12 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
63671
63670
  D,
63672
63671
  R,
63673
63672
  w
63674
- ), { isKeyboardVisible: Ye, keyboardHeight: Ke } = uq(), je = ($) => u.value.enableLatex ? ug($) : $, V = () => {
63675
- var $, J;
63676
- p.value = !p.value, it.setMuted(!p.value), (J = ($ = u.value.muteButton) == null ? void 0 : $.onClick) == null || J.call($, p.value);
63673
+ ), { isKeyboardVisible: Ye, keyboardHeight: Ke } = uq(), je = (ee) => ug(ee), V = () => {
63674
+ var ee, J;
63675
+ p.value = !p.value, it.setMuted(!p.value), (J = (ee = u.value.muteButton) == null ? void 0 : ee.onClick) == null || J.call(ee, p.value);
63677
63676
  }, j = () => {
63678
- var $, J, Qe;
63679
- if (!(H.value || B.value && (($ = o.value) != null && $.historyType)) && T.value.trim()) {
63677
+ var ee, J, Qe;
63678
+ if (!(H.value || B.value && ((ee = o.value) != null && ee.historyType)) && T.value.trim()) {
63680
63679
  it.clear();
63681
63680
  const ie = L.value.findIndex((Ie) => Ie.isNetworkError);
63682
63681
  ie !== -1 && L.value.splice(ie, 1);
@@ -63698,30 +63697,30 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
63698
63697
  ), 300);
63699
63698
  }
63700
63699
  }, z = () => {
63701
- var $;
63702
- H.value || B.value && (($ = o.value) != null && $.historyType) || (it.clear(), Q("messageSend", "voice", ""), d.value = !0);
63703
- }, K = ($) => {
63700
+ var ee;
63701
+ H.value || B.value && ((ee = o.value) != null && ee.historyType) || (it.clear(), Q("messageSend", "voice", ""), d.value = !0);
63702
+ }, K = (ee) => {
63704
63703
  var Qe, ie;
63705
63704
  d.value = !1;
63706
- const J = $ == null ? void 0 : $.content;
63705
+ const J = ee == null ? void 0 : ee.content;
63707
63706
  J.trim() && ((ie = (Qe = u.value.input) == null ? void 0 : Qe.onSend) == null || ie.call(Qe, J), T.value = J);
63708
63707
  }, ae = () => {
63709
63708
  d.value = !1;
63710
- }, _e = ($) => {
63711
- if ($.isRotating) return;
63712
- $.isRotating = !0;
63709
+ }, _e = (ee) => {
63710
+ if (ee.isRotating) return;
63711
+ ee.isRotating = !0;
63713
63712
  const J = L.value.findIndex((Qe) => Qe.isNetworkError);
63714
63713
  J !== -1 && L.value.splice(J, 1), setTimeout(() => {
63715
- $.isRotating = !1, $.sendStatus = "pending", setTimeout(() => F(
63716
- $.content,
63714
+ ee.isRotating = !1, ee.sendStatus = "pending", setTimeout(() => F(
63715
+ ee.content,
63717
63716
  o.value.session_id,
63718
63717
  p.value,
63719
63718
  k.value,
63720
63719
  !1,
63721
- $.id
63720
+ ee.id
63722
63721
  ), 300);
63723
63722
  }, 600);
63724
- }, te = ($) => {
63723
+ }, te = (ee) => {
63725
63724
  it.clear();
63726
63725
  const J = L.value.findIndex((ie) => ie.isNetworkError);
63727
63726
  J !== -1 && L.value.splice(J, 1);
@@ -63730,14 +63729,14 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
63730
63729
  L.value[ie].showFeedbackAndContinue = !1, L.value[ie].showFeedbackOnly = !1, L.value[ie].showCompletionSection = !1, L.value[ie].category = 0;
63731
63730
  break;
63732
63731
  }
63733
- const Qe = D($);
63732
+ const Qe = D(ee);
63734
63733
  Qe && (Qe.showFeedbackAndContinue = !1, Qe.isPlayingTTS = !1, Qe.showCompletionSection = !1), M("Continue"), setTimeout(() => F(
63735
63734
  "Continue",
63736
63735
  o.value.session_id,
63737
63736
  p.value,
63738
63737
  k.value
63739
63738
  ), 300);
63740
- }, ge = ($) => {
63739
+ }, ge = (ee) => {
63741
63740
  it.clear();
63742
63741
  const J = L.value.findIndex((ie) => ie.isNetworkError);
63743
63742
  J !== -1 && L.value.splice(J, 1);
@@ -63746,9 +63745,9 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
63746
63745
  L.value[ie].showFeedbackAndContinue = !1, L.value[ie].showFeedbackOnly = !1, L.value[ie].showCompletionSection = !1, L.value[ie].category = 0;
63747
63746
  break;
63748
63747
  }
63749
- const Qe = M($);
63748
+ const Qe = M(ee);
63750
63749
  setTimeout(() => F(
63751
- $,
63750
+ ee,
63752
63751
  o.value.session_id,
63753
63752
  p.value,
63754
63753
  k.value,
@@ -63757,7 +63756,7 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
63757
63756
  b.value || A.value
63758
63757
  // 如果已出现讲题完成区域或已在追问模式,则为追问
63759
63758
  ), 300);
63760
- }, de = ($, J) => {
63759
+ }, de = (ee, J) => {
63761
63760
  it.clear();
63762
63761
  const Qe = L.value.findIndex((Le) => Le.isNetworkError);
63763
63762
  Qe !== -1 && L.value.splice(Qe, 1);
@@ -63768,9 +63767,9 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
63768
63767
  }
63769
63768
  const ie = D(J);
63770
63769
  ie && (ie.showCompletionSection = !1);
63771
- const Re = M($);
63770
+ const Re = M(ee);
63772
63771
  setTimeout(() => F(
63773
- $,
63772
+ ee,
63774
63773
  o.value.session_id,
63775
63774
  p.value,
63776
63775
  k.value,
@@ -63782,7 +63781,7 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
63782
63781
  it.clear(), Q("snap-another");
63783
63782
  }, Xe = () => {
63784
63783
  it.clear(), N();
63785
- const $ = Qp(), J = "session_" + mp.MD5($).toString();
63784
+ const ee = Qp(), J = "session_" + mp.MD5(ee).toString();
63786
63785
  k.value = J, B.value = !1, Pe.value = !1, H.value = !0, Q("session-updated", {
63787
63786
  session_id: J,
63788
63787
  sessionId: J
@@ -63800,8 +63799,8 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
63800
63799
  );
63801
63800
  }, 300);
63802
63801
  }, dt = () => {
63803
- const $ = L.value.findIndex((ie) => ie.isNetworkError);
63804
- $ !== -1 && L.value.splice($, 1);
63802
+ const ee = L.value.findIndex((ie) => ie.isNetworkError);
63803
+ ee !== -1 && L.value.splice(ee, 1);
63805
63804
  const J = D(Oe.value);
63806
63805
  J && (J.showButtons = !1), H.value = !1;
63807
63806
  const Qe = v.value.startExplaining;
@@ -63812,15 +63811,15 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
63812
63811
  k.value
63813
63812
  ), 300), Pe.value = !0;
63814
63813
  }, We = async () => {
63815
- var $;
63814
+ var ee;
63816
63815
  ne({
63817
63816
  eventName: "SnapThink_Notmyquestion_Click",
63818
63817
  eventShowName: "题目有误反馈点击",
63819
63818
  eventType: "click"
63820
- }), await W2({ subject_id: ($ = o.value) == null ? void 0 : $.session_id, question: "Not my question" }), gp();
63821
- }, Ot = async ($) => {
63819
+ }), await W2({ subject_id: (ee = o.value) == null ? void 0 : ee.session_id, question: "Not my question" }), gp();
63820
+ }, Ot = async (ee) => {
63822
63821
  var J, Qe;
63823
- if ($ === "upvote")
63822
+ if (ee === "upvote")
63824
63823
  ne({
63825
63824
  eventName: "SnapThink_Result_Feedback",
63826
63825
  eventShowName: "结果页用户反馈",
@@ -63830,15 +63829,15 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
63830
63829
  feedback_type: 0
63831
63830
  // 0:赞, 1:踩
63832
63831
  }), await W2({ subject_id: (J = o.value) == null ? void 0 : J.session_id, vote: "upvote" });
63833
- else if ($ === "downvote") {
63832
+ else if (ee === "downvote") {
63834
63833
  if (le.value) {
63835
63834
  await W2({ subject_id: (Qe = o.value) == null ? void 0 : Qe.session_id, vote: "downvote" });
63836
63835
  return;
63837
63836
  }
63838
63837
  P.value = !0, G.value = "feedback", Y.value = "angry";
63839
63838
  }
63840
- }, ze = ($, J) => {
63841
- $ === "upvote" && ne({
63839
+ }, ze = (ee, J) => {
63840
+ ee === "upvote" && ne({
63842
63841
  eventName: "SnapThink_Result_Feedback",
63843
63842
  eventShowName: "结果页用户反馈",
63844
63843
  eventType: "click",
@@ -63847,17 +63846,17 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
63847
63846
  feedback_type: 0
63848
63847
  // 0:赞, 1:踩
63849
63848
  }), Ae(
63850
- $,
63849
+ ee,
63851
63850
  J,
63852
63851
  o.value.session_id,
63853
63852
  k.value
63854
63853
  );
63855
- }, ht = async ($, J) => {
63854
+ }, ht = async (ee, J) => {
63856
63855
  var Qe, ie;
63857
- if ($) {
63858
- if ($ === "upvote")
63856
+ if (ee) {
63857
+ if (ee === "upvote")
63859
63858
  await W2({ subject_id: (Qe = o.value) == null ? void 0 : Qe.session_id, vote: "upvote" });
63860
- else if ($ === "downvote") {
63859
+ else if (ee === "downvote") {
63861
63860
  if (J) {
63862
63861
  await W2({ subject_id: (ie = o.value) == null ? void 0 : ie.session_id, vote: "downvote" });
63863
63862
  return;
@@ -63865,26 +63864,26 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
63865
63864
  P.value = !0, G.value = "feedback", Y.value = "angry";
63866
63865
  }
63867
63866
  }
63868
- }, h1 = ($) => {
63869
- n.value = $, c.value = !0;
63867
+ }, h1 = (ee) => {
63868
+ n.value = ee, c.value = !0;
63870
63869
  }, t1 = () => {
63871
63870
  c.value = !1, n.value = "";
63872
63871
  }, Ce = () => {
63873
63872
  setTimeout(() => R(), 100);
63874
- }, Me = ($) => $.pkgName !== "SGpaisou" && $.snapThinkSource === "correctionNotebook" ? 5 : $.pkgName !== "SGpaisou" && $.snapThinkSource === "history" ? 4 : $.favorite === 1 ? 3 : $.isOverSevenDays === 0 || $.isOverSevenDays ? 2 : 1, ne = ($) => {
63873
+ }, Me = (ee) => ee.pkgName !== "SGpaisou" && ee.snapThinkSource === "correctionNotebook" ? 5 : ee.pkgName !== "SGpaisou" && ee.snapThinkSource === "history" ? 4 : ee.favorite === 1 ? 3 : ee.isOverSevenDays === 0 || ee.isOverSevenDays ? 2 : 1, ne = (ee) => {
63875
63874
  var Qe, ie, Re, Le, Ie, gt, Je;
63876
63875
  const J = {
63877
63876
  question_id: ((Qe = o.value) == null ? void 0 : Qe.question_id) || ((ie = o.value) == null ? void 0 : ie.questionId) || "",
63878
63877
  question_url: ((Re = o.value) == null ? void 0 : Re.imagePath) || ((Le = o.value) == null ? void 0 : Le.image_path) || "",
63879
63878
  question_text: ((Ie = o.value) == null ? void 0 : Ie.ocrText) || ((gt = o.value) == null ? void 0 : gt.content) || "",
63880
63879
  App_platform: ((Je = o.value) == null ? void 0 : Je.pkgName) === "SGpaisou" ? "1" : "2",
63881
- ...$
63880
+ ...ee
63882
63881
  };
63883
63882
  Q("messageSend", "dataCollection", J);
63884
- }, X = async ($) => {
63883
+ }, X = async (ee) => {
63885
63884
  var Qe, ie;
63886
- console.log("[AIChatComponent] Received biz_question_info:", $);
63887
- const J = $;
63885
+ console.log("[AIChatComponent] Received biz_question_info:", ee);
63886
+ const J = ee;
63888
63887
  M9(), a.setQuestionInfo(J);
63889
63888
  try {
63890
63889
  Q("question-data-updated", {
@@ -63925,14 +63924,14 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
63925
63924
  } catch (Re) {
63926
63925
  console.error("[AIChatComponent] handleSearchQuestion error:", Re);
63927
63926
  }
63928
- }, Z = ($) => {
63929
- if ($.question_type === 1 || $.question_type === "1")
63927
+ }, Z = (ee) => {
63928
+ if (ee.question_type === 1 || ee.question_type === "1")
63930
63929
  return;
63931
- if ($.pkgName !== "SGpaisou" && $.question_type !== 0 && $.question_type !== "0") {
63930
+ if (ee.pkgName !== "SGpaisou" && ee.question_type !== 0 && ee.question_type !== "0") {
63932
63931
  const ie = M("Start Explaining");
63933
63932
  setTimeout(() => F(
63934
63933
  "Start Explaining",
63935
- $.session_id,
63934
+ ee.session_id,
63936
63935
  p.value,
63937
63936
  k.value,
63938
63937
  !1,
@@ -63940,11 +63939,11 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
63940
63939
  ), 300), Pe.value = !0;
63941
63940
  } else
63942
63941
  nt(
63943
- $,
63942
+ ee,
63944
63943
  v.value,
63945
63944
  p.value,
63946
63945
  k.value,
63947
- () => U($, v.value, Oe.value),
63946
+ () => U(ee, v.value, Oe.value),
63948
63947
  (ie) => {
63949
63948
  P.value = ie;
63950
63949
  },
@@ -63957,11 +63956,11 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
63957
63956
  );
63958
63957
  }, ue = async () => {
63959
63958
  var J, Qe;
63960
- const $ = await Aj(o.value.session_id);
63961
- if ($ != null && $.data) {
63959
+ const ee = await Aj(o.value.session_id);
63960
+ if (ee != null && ee.data) {
63962
63961
  const ie = {
63963
63962
  ...o.value,
63964
- ...$.data,
63963
+ ...ee.data,
63965
63964
  envNumber: o.value.envNumber || ((J = a.userInfo) == null ? void 0 : J.envNumber),
63966
63965
  imgUrl: o.value.imagePath,
63967
63966
  avatar: (Qe = a.userInfo) == null ? void 0 : Qe.avatar
@@ -63970,8 +63969,8 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
63970
63969
  }
63971
63970
  };
63972
63971
  return l6(() => {
63973
- var $;
63974
- if (($ = o.value) != null && $.historyType) {
63972
+ var ee;
63973
+ if ((ee = o.value) != null && ee.historyType) {
63975
63974
  ue(), U(o.value, v.value, Oe.value), o.value.isOverSevenDays ? H.value = !0 : H.value = !1;
63976
63975
  return;
63977
63976
  }
@@ -63985,21 +63984,21 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
63985
63984
  }
63986
63985
  }), wu(() => {
63987
63986
  it.destroy(), M9();
63988
- }), mr(() => i.questionInfo, ($) => {
63989
- a.questionInfo && Object.keys(a.questionInfo).length > 0 || $ && (N(), Z($), w1(() => {
63990
- $.question_type !== 0 && ne({
63991
- question_id: $.question_id || $.questionId || "",
63987
+ }), mr(() => i.questionInfo, (ee) => {
63988
+ a.questionInfo && Object.keys(a.questionInfo).length > 0 || ee && (N(), Z(ee), w1(() => {
63989
+ ee.question_type !== 0 && ne({
63990
+ question_id: ee.question_id || ee.questionId || "",
63992
63991
  eventName: "SnapThink_Result_Show",
63993
63992
  eventShowName: "结果页曝光",
63994
63993
  eventType: "exposure",
63995
- Result_Show_mode: Me($),
63994
+ Result_Show_mode: Me(ee),
63996
63995
  // 1-正常进来, 2-历史记录, 3-收藏题, 4-精准练历史记录, 5-精准练错题本
63997
- Result_Show_type: $.question_type === 1 ? 1 : 2
63996
+ Result_Show_type: ee.question_type === 1 ? 1 : 2
63998
63997
  // 1-result, 2-AI result
63999
63998
  });
64000
63999
  }));
64001
- }, { immediate: !0 }), mr([P, G], ([$, J]) => {
64002
- $ && J === "insolubility" && ne({
64000
+ }, { immediate: !0 }), mr([P, G], ([ee, J]) => {
64001
+ ee && J === "insolubility" && ne({
64003
64002
  eventName: "SnapThink_Cannot_Explain_Popup_Show",
64004
64003
  eventShowName: "无法讲解弹窗曝光",
64005
64004
  eventType: "exposure"
@@ -64016,8 +64015,8 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
64016
64015
  // 静音相关
64017
64016
  isSoundOn: p,
64018
64017
  handleMuteToggle: V
64019
- }), ($, J) => {
64020
- var Qe, ie, Re, Le, Ie, gt, Je, Mt, Zt, Ee, O1, Ze, we, Vt, bt, r1, n1, Lt, Y1, Kt, fe, be, ke, _t, De, ee, xe, Be, Ve, $e, qe, Ge;
64018
+ }), (ee, J) => {
64019
+ var Qe, ie, Re, Le, Ie, gt, Je, Mt, Zt, Ee, O1, Ze, we, Vt, bt, r1, n1, Lt, Y1, Kt, fe, be, ke, _t, De, $, xe, Be, Ve, $e, qe, Ge;
64021
64020
  return et(), at("div", {
64022
64021
  class: $t(["ai-chat-container", (Qe = u.value.customClasses) == null ? void 0 : Qe.container, { "keyboard-visible": ye(Ye) }]),
64023
64022
  style: Nt(l.value.container)
@@ -64078,7 +64077,7 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
64078
64077
  ref_key: "messagesContainer",
64079
64078
  ref: C
64080
64079
  }, [
64081
- Lp($.$slots, "message-list-header", {}, void 0, !0),
64080
+ Lp(ee.$slots, "message-list-header", {}, void 0, !0),
64082
64081
  (et(!0), at(Xr, null, G3(ye(L), (se) => {
64083
64082
  var mt, Ft, Xt, Gt, Ut, kt, v1, P1, X1, qt, z1, s2, l2, vt, Dr, u2, H2, W1, Z1, xr, c2, F2, O0, M0, N0, R0, w0, I0, H0, F0, k0, P0, B0, V0, G0, U0, j0, q0, Y0, z0, W0, Z0, K0, X0, J0, $0, es, ts, rs, ns, as;
64084
64083
  return et(), at("div", {
@@ -64325,7 +64324,7 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
64325
64324
  ((_t = u.value.feedback) == null ? void 0 : _t.show) !== !1 && f.value.length > 0 && ye(Pe) && !ye(Ye) || ((De = o.value) == null ? void 0 : De.pkgName) !== "SGpaisou" ? (et(), at("div", {
64326
64325
  key: 0,
64327
64326
  class: $t(["feedback-buttons", { disabled: ye(H) || d.value }]),
64328
- style: Nt(((ee = u.value.feedback) == null ? void 0 : ee.containerStyle) || {})
64327
+ style: Nt((($ = u.value.feedback) == null ? void 0 : $.containerStyle) || {})
64329
64328
  }, [
64330
64329
  (et(!0), at(Xr, null, G3(f.value, (se) => (et(), at("button", {
64331
64330
  key: se.id,
@@ -64418,7 +64417,7 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
64418
64417
  ], 6);
64419
64418
  };
64420
64419
  }
64421
- }), dY = /* @__PURE__ */ d6(QY, [["__scopeId", "data-v-502afe19"]]);
64420
+ }), dY = /* @__PURE__ */ d6(QY, [["__scopeId", "data-v-f16c4c1a"]]);
64422
64421
  function F4(r) {
64423
64422
  const e = { ...Ue };
64424
64423
  return r && Object.keys(r).forEach((t) => {
@@ -64510,4 +64509,3 @@ export {
64510
64509
  _Y as getImageUrl,
64511
64510
  EY as hasImage
64512
64511
  };
64513
- //# sourceMappingURL=ai-chat-sdk.es.js.map