@ahzoo/sus 1.2.2 → 1.2.4

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.
Files changed (4) hide show
  1. package/index.js +201 -201
  2. package/index.umd.cjs +233 -0
  3. package/package.json +1 -1
  4. package/style.css +1 -1
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  var gi = Object.defineProperty;
2
- var yi = (ce, ye, ge) => ye in ce ? gi(ce, ye, { enumerable: !0, configurable: !0, writable: !0, value: ge }) : ce[ye] = ge;
3
- var We = (ce, ye, ge) => (yi(ce, typeof ye != "symbol" ? ye + "" : ye, ge), ge);
2
+ var yi = (ce, ye, ve) => ye in ce ? gi(ce, ye, { enumerable: !0, configurable: !0, writable: !0, value: ve }) : ce[ye] = ve;
3
+ var We = (ce, ye, ve) => (yi(ce, typeof ye != "symbol" ? ye + "" : ye, ve), ve);
4
4
  import { defineComponent as wt, ref as ze, reactive as bi, onMounted as Vn, openBlock as xe, createElementBlock as Oe, createElementVNode as ie, withDirectives as bt, vModelText as Dt, createCommentVNode as Ve, vShow as wi, createStaticVNode as Ei, pushScopeId as Un, popScopeId as Wn, normalizeClass as ki, toDisplayString as Ye, unref as Si, createTextVNode as _i, createVNode as Li, createBlock as Xt, Fragment as Ti, renderList as Ai } from "vue";
5
5
  var Ci = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
6
6
  function Mi(ce) {
@@ -8,10 +8,10 @@ function Mi(ce) {
8
8
  }
9
9
  var zn = { exports: {} };
10
10
  (function(ce, ye) {
11
- (function(ge, ue) {
11
+ (function(ve, ue) {
12
12
  ce.exports = ue();
13
13
  })(Ci, () => (() => {
14
- var ge = { 471: (K) => {
14
+ var ve = { 471: ($) => {
15
15
  var _ = function() {
16
16
  this.Diff_Timeout = 1, this.Diff_EditCost = 4, this.Match_Threshold = 0.5, this.Match_Distance = 1e3, this.Patch_DeleteThreshold = 0.5, this.Patch_Margin = 4, this.Match_MaxBits = 32;
17
17
  }, b = -1;
@@ -79,14 +79,14 @@ var zn = { exports: {} };
79
79
  L[h + 1] = 0, S[h + 1] = 0;
80
80
  for (var y = w - l, k = y % 2 != 0, m = 0, x = 0, I = 0, W = 0, N = 0; N < u && !((/* @__PURE__ */ new Date()).getTime() > s); N++) {
81
81
  for (var Q = -N + m; Q <= N - x; Q += 2) {
82
- for (var ne = h + Q, ve = (Ae = Q == -N || Q != N && L[ne - 1] < L[ne + 1] ? L[ne + 1] : L[ne - 1] + 1) - Q; Ae < w && ve < l && c.charAt(Ae) == p.charAt(ve); )
83
- Ae++, ve++;
82
+ for (var ne = h + Q, he = (Ae = Q == -N || Q != N && L[ne - 1] < L[ne + 1] ? L[ne + 1] : L[ne - 1] + 1) - Q; Ae < w && he < l && c.charAt(Ae) == p.charAt(he); )
83
+ Ae++, he++;
84
84
  if (L[ne] = Ae, Ae > w)
85
85
  x += 2;
86
- else if (ve > l)
86
+ else if (he > l)
87
87
  m += 2;
88
88
  else if (k && (be = h + y - Q) >= 0 && be < E && S[be] != -1 && Ae >= (de = w - S[be]))
89
- return this.diff_bisectSplit_(c, p, Ae, ve, s);
89
+ return this.diff_bisectSplit_(c, p, Ae, he, s);
90
90
  }
91
91
  for (var pe = -N + I; pe <= N - W; pe += 2) {
92
92
  for (var de, be = h + pe, He = (de = pe == -N || pe != N && S[be - 1] < S[be + 1] ? S[be + 1] : S[be - 1] + 1) - pe; de < w && He < l && c.charAt(w - de - 1) == p.charAt(l - He - 1); )
@@ -97,8 +97,8 @@ var zn = { exports: {} };
97
97
  I += 2;
98
98
  else if (!k && (ne = h + y - pe) >= 0 && ne < E && L[ne] != -1) {
99
99
  var Ae;
100
- if (ve = h + (Ae = L[ne]) - ne, Ae >= (de = w - de))
101
- return this.diff_bisectSplit_(c, p, Ae, ve, s);
100
+ if (he = h + (Ae = L[ne]) - ne, Ae >= (de = w - de))
101
+ return this.diff_bisectSplit_(c, p, Ae, he, s);
102
102
  }
103
103
  }
104
104
  }
@@ -160,7 +160,7 @@ var zn = { exports: {} };
160
160
  return null;
161
161
  var l = this;
162
162
  function u(m, x, I) {
163
- for (var W, N, Q, ne, ve = m.substring(I, I + Math.floor(m.length / 4)), pe = -1, de = ""; (pe = x.indexOf(ve, pe + 1)) != -1; ) {
163
+ for (var W, N, Q, ne, he = m.substring(I, I + Math.floor(m.length / 4)), pe = -1, de = ""; (pe = x.indexOf(he, pe + 1)) != -1; ) {
164
164
  var be = l.diff_commonPrefix(m.substring(I), x.substring(pe)), He = l.diff_commonSuffix(m.substring(0, I), x.substring(0, pe));
165
165
  de.length < He + be && (de = x.substring(pe - He, pe) + x.substring(pe, pe + be), W = m.substring(0, I - He), N = m.substring(I + be), Q = x.substring(0, pe - He), ne = x.substring(pe + be));
166
166
  }
@@ -182,8 +182,8 @@ var zn = { exports: {} };
182
182
  function p(m, x) {
183
183
  if (!m || !x)
184
184
  return 6;
185
- var I = m.charAt(m.length - 1), W = x.charAt(0), N = I.match(_.nonAlphaNumericRegex_), Q = W.match(_.nonAlphaNumericRegex_), ne = N && I.match(_.whitespaceRegex_), ve = Q && W.match(_.whitespaceRegex_), pe = ne && I.match(_.linebreakRegex_), de = ve && W.match(_.linebreakRegex_), be = pe && m.match(_.blanklineEndRegex_), He = de && x.match(_.blanklineStartRegex_);
186
- return be || He ? 5 : pe || de ? 4 : N && !ne && ve ? 3 : ne || ve ? 2 : N || Q ? 1 : 0;
185
+ var I = m.charAt(m.length - 1), W = x.charAt(0), N = I.match(_.nonAlphaNumericRegex_), Q = W.match(_.nonAlphaNumericRegex_), ne = N && I.match(_.whitespaceRegex_), he = Q && W.match(_.whitespaceRegex_), pe = ne && I.match(_.linebreakRegex_), de = he && W.match(_.linebreakRegex_), be = pe && m.match(_.blanklineEndRegex_), He = de && x.match(_.blanklineStartRegex_);
186
+ return be || He ? 5 : pe || de ? 4 : N && !ne && he ? 3 : ne || he ? 2 : N || Q ? 1 : 0;
187
187
  }
188
188
  for (var s = 1; s < c.length - 1; ) {
189
189
  if (c[s - 1][0] == 0 && c[s + 1][0] == 0) {
@@ -314,8 +314,8 @@ var zn = { exports: {} };
314
314
  if (p.length > this.Match_MaxBits)
315
315
  throw new Error("Pattern too long for this browser.");
316
316
  var w = this.match_alphabet_(p), l = this;
317
- function u(ve, pe) {
318
- var de = ve / p.length, be = Math.abs(s - pe);
317
+ function u(he, pe) {
318
+ var de = he / p.length, be = Math.abs(s - pe);
319
319
  return l.Match_Distance ? de + be / l.Match_Distance : be ? 1 : de;
320
320
  }
321
321
  var h = this.Match_Threshold, E = c.indexOf(p, s);
@@ -512,11 +512,11 @@ var zn = { exports: {} };
512
512
  `;
513
513
  }
514
514
  return p.join("").replace(/%20/g, " ");
515
- }, K.exports = _, K.exports.diff_match_patch = _, K.exports.DIFF_DELETE = b, K.exports.DIFF_INSERT = 1, K.exports.DIFF_EQUAL = 0;
516
- }, 872: (K, _, b) => {
515
+ }, $.exports = _, $.exports.diff_match_patch = _, $.exports.DIFF_DELETE = b, $.exports.DIFF_INSERT = 1, $.exports.DIFF_EQUAL = 0;
516
+ }, 872: ($, _, b) => {
517
517
  b.d(_, { default: () => kt });
518
- var c = b(478), p = b(156), s = b(314), w = b(730), l = b(66), u = b(218), h = b(702), E = function(G) {
519
- G === void 0 && (G = document);
518
+ var c = b(478), p = b(156), s = b(314), w = b(730), l = b(66), u = b(218), h = b(702), E = function(K) {
519
+ K === void 0 && (K = document);
520
520
  var we = function(V) {
521
521
  var j = document.createElement("img");
522
522
  j.src = V.getAttribute("data-src"), j.addEventListener("load", function() {
@@ -524,19 +524,19 @@ var zn = { exports: {} };
524
524
  }), V.removeAttribute("data-src");
525
525
  };
526
526
  if (!("IntersectionObserver" in window))
527
- return G.querySelectorAll("img").forEach(function(V) {
527
+ return K.querySelectorAll("img").forEach(function(V) {
528
528
  V.getAttribute("data-src") && we(V);
529
529
  }), !1;
530
- window.vditorImageIntersectionObserver ? (window.vditorImageIntersectionObserver.disconnect(), G.querySelectorAll("img").forEach(function(V) {
530
+ window.vditorImageIntersectionObserver ? (window.vditorImageIntersectionObserver.disconnect(), K.querySelectorAll("img").forEach(function(V) {
531
531
  window.vditorImageIntersectionObserver.observe(V);
532
532
  })) : (window.vditorImageIntersectionObserver = new IntersectionObserver(function(V) {
533
533
  V.forEach(function(j) {
534
534
  (j.isIntersecting === void 0 ? j.intersectionRatio !== 0 : j.isIntersecting) && j.target.getAttribute("data-src") && we(j.target);
535
535
  });
536
- }), G.querySelectorAll("img").forEach(function(V) {
536
+ }), K.querySelectorAll("img").forEach(function(V) {
537
537
  window.vditorImageIntersectionObserver.observe(V);
538
538
  }));
539
- }, L = b(466), S = b(554), T = b(40), y = b(563), k = b(749), m = b(818), x = b(408), I = b(54), W = b(227), N = b(526), Q = b(827), ne = b(640), ve = b(895), pe = b(393), de = function(G, we) {
539
+ }, L = b(466), S = b(554), T = b(40), y = b(563), k = b(749), m = b(818), x = b(408), I = b(54), W = b(227), N = b(526), Q = b(827), ne = b(640), he = b(895), pe = b(393), de = function(K, we) {
540
540
  if (we === void 0 && (we = "zh_CN"), typeof speechSynthesis < "u" && typeof SpeechSynthesisUtterance < "u") {
541
541
  var V = function() {
542
542
  var fe, me;
@@ -546,14 +546,14 @@ var zn = { exports: {} };
546
546
  }, j = '<svg><use xlink:href="#vditor-icon-play"></use></svg>', oe = '<svg><use xlink:href="#vditor-icon-pause"></use></svg>';
547
547
  document.getElementById("vditorIconScript") || (j = '<svg viewBox="0 0 32 32"><path d="M3.436 0l25.128 16-25.128 16v-32z"></path></svg>', oe = '<svg viewBox="0 0 32 32"><path d="M20.617 0h9.128v32h-9.128v-32zM2.255 32v-32h9.128v32h-9.128z"></path></svg>');
548
548
  var le = document.querySelector(".vditor-speech");
549
- le || ((le = document.createElement("button")).className = "vditor-speech", G.insertAdjacentElement("beforeend", le), speechSynthesis.onvoiceschanged !== void 0 && (speechSynthesis.onvoiceschanged = V));
549
+ le || ((le = document.createElement("button")).className = "vditor-speech", K.insertAdjacentElement("beforeend", le), speechSynthesis.onvoiceschanged !== void 0 && (speechSynthesis.onvoiceschanged = V));
550
550
  var ae = V(), De = new SpeechSynthesisUtterance();
551
551
  De.voice = ae, De.onend = De.onerror = function() {
552
552
  le.style.display = "none", speechSynthesis.cancel(), le.classList.remove("vditor-speech--current"), le.innerHTML = j;
553
- }, G.addEventListener(window.ontouchstart !== void 0 ? "touchend" : "click", function(fe) {
553
+ }, K.addEventListener(window.ontouchstart !== void 0 ? "touchend" : "click", function(fe) {
554
554
  var me = fe.target;
555
555
  if (me.classList.contains("vditor-speech") || me.parentElement.classList.contains("vditor-speech"))
556
- return le.classList.contains("vditor-speech--current") ? speechSynthesis.speaking && (speechSynthesis.paused ? (speechSynthesis.resume(), le.innerHTML = oe) : (speechSynthesis.pause(), le.innerHTML = j)) : (De.text = le.getAttribute("data-text"), speechSynthesis.speak(De), le.classList.add("vditor-speech--current"), le.innerHTML = oe), (0, pe.Hc)(window.vditorSpeechRange), void G.focus();
556
+ return le.classList.contains("vditor-speech--current") ? speechSynthesis.speaking && (speechSynthesis.paused ? (speechSynthesis.resume(), le.innerHTML = oe) : (speechSynthesis.pause(), le.innerHTML = j)) : (De.text = le.getAttribute("data-text"), speechSynthesis.speak(De), le.classList.add("vditor-speech--current"), le.innerHTML = oe), (0, pe.Hc)(window.vditorSpeechRange), void K.focus();
557
557
  if (le.style.display = "none", speechSynthesis.cancel(), le.classList.remove("vditor-speech--current"), le.innerHTML = j, getSelection().rangeCount !== 0) {
558
558
  var X = getSelection().getRangeAt(0), Fe = X.toString().trim();
559
559
  if (Fe) {
@@ -564,7 +564,7 @@ var zn = { exports: {} };
564
564
  }
565
565
  });
566
566
  }
567
- }, be = function(G, we, V, j) {
567
+ }, be = function(K, we, V, j) {
568
568
  return new (V || (V = Promise))(function(oe, le) {
569
569
  function ae(me) {
570
570
  try {
@@ -586,9 +586,9 @@ var zn = { exports: {} };
586
586
  Fe(X);
587
587
  })).then(ae, De);
588
588
  }
589
- fe((j = j.apply(G, [])).next());
589
+ fe((j = j.apply(K, [])).next());
590
590
  });
591
- }, He = function(G, we) {
591
+ }, He = function(K, we) {
592
592
  var V, j, oe, le, ae = { label: 0, sent: function() {
593
593
  if (1 & oe[0])
594
594
  throw oe[1];
@@ -639,7 +639,7 @@ var zn = { exports: {} };
639
639
  oe[2] && ae.ops.pop(), ae.trys.pop();
640
640
  continue;
641
641
  }
642
- X = we.call(G, ae);
642
+ X = we.call(K, ae);
643
643
  } catch (Fe) {
644
644
  X = [6, Fe], j = 0;
645
645
  } finally {
@@ -651,16 +651,16 @@ var zn = { exports: {} };
651
651
  }([fe, me]);
652
652
  };
653
653
  }
654
- }, Ae = function(G) {
654
+ }, Ae = function(K) {
655
655
  var we, V = { anchor: 0, cdn: I.g.CDN, customEmoji: {}, emojiPath: I.g.CDN + "/dist/images/emoji", hljs: I.g.HLJS_OPTIONS, icon: "ant", lang: "zh_CN", markdown: I.g.MARKDOWN_OPTIONS, math: I.g.MATH_OPTIONS, mode: "light", speech: { enable: !1 }, render: { media: { enable: !0 } }, theme: I.g.THEME_OPTIONS };
656
- return G.cdn && (!((we = G.theme) === null || we === void 0) && we.path || (V.theme.path = G.cdn + "/dist/css/content-theme"), G.emojiPath || (V.emojiPath = G.cdn + "/dist/images/emoji")), (0, ne.T)(V, G);
657
- }, Je = function(G, we) {
656
+ return K.cdn && (!((we = K.theme) === null || we === void 0) && we.path || (V.theme.path = K.cdn + "/dist/css/content-theme"), K.emojiPath || (V.emojiPath = K.cdn + "/dist/images/emoji")), (0, ne.T)(V, K);
657
+ }, Je = function(K, we) {
658
658
  var V = Ae(we);
659
659
  return (0, N.G)(V.cdn + "/dist/js/lute/lute.min.js", "vditorLuteScript").then(function() {
660
- var j = (0, ve.X)({ autoSpace: V.markdown.autoSpace, gfmAutoLink: V.markdown.gfmAutoLink, codeBlockPreview: V.markdown.codeBlockPreview, emojiSite: V.emojiPath, emojis: V.customEmoji, fixTermTypo: V.markdown.fixTermTypo, footnotes: V.markdown.footnotes, headingAnchor: V.anchor !== 0, inlineMathDigit: V.math.inlineDigit, lazyLoadImage: V.lazyLoadImage, linkBase: V.markdown.linkBase, linkPrefix: V.markdown.linkPrefix, listStyle: V.markdown.listStyle, mark: V.markdown.mark, mathBlockPreview: V.markdown.mathBlockPreview, paragraphBeginningSpace: V.markdown.paragraphBeginningSpace, sanitize: V.markdown.sanitize, toc: V.markdown.toc });
661
- return we != null && we.renderers && j.SetJSRenderers({ renderers: { Md2HTML: we.renderers } }), j.SetHeadingID(!0), j.Md2HTML(G);
660
+ var j = (0, he.X)({ autoSpace: V.markdown.autoSpace, gfmAutoLink: V.markdown.gfmAutoLink, codeBlockPreview: V.markdown.codeBlockPreview, emojiSite: V.emojiPath, emojis: V.customEmoji, fixTermTypo: V.markdown.fixTermTypo, footnotes: V.markdown.footnotes, headingAnchor: V.anchor !== 0, inlineMathDigit: V.math.inlineDigit, lazyLoadImage: V.lazyLoadImage, linkBase: V.markdown.linkBase, linkPrefix: V.markdown.linkPrefix, listStyle: V.markdown.listStyle, mark: V.markdown.mark, mathBlockPreview: V.markdown.mathBlockPreview, paragraphBeginningSpace: V.markdown.paragraphBeginningSpace, sanitize: V.markdown.sanitize, toc: V.markdown.toc });
661
+ return we != null && we.renderers && j.SetJSRenderers({ renderers: { Md2HTML: we.renderers } }), j.SetHeadingID(!0), j.Md2HTML(K);
662
662
  });
663
- }, Te = function(G, we, V) {
663
+ }, Te = function(K, we, V) {
664
664
  return be(void 0, void 0, void 0, function() {
665
665
  var j, oe, le;
666
666
  return He(this, function(ae) {
@@ -668,7 +668,7 @@ var zn = { exports: {} };
668
668
  case 0:
669
669
  return j = Ae(V), [4, Je(we, j)];
670
670
  case 1:
671
- if (oe = ae.sent(), j.transform && (oe = j.transform(oe)), G.innerHTML = oe, G.classList.add("vditor-reset"), j.i18n)
671
+ if (oe = ae.sent(), j.transform && (oe = j.transform(oe)), K.innerHTML = oe, K.classList.add("vditor-reset"), j.i18n)
672
672
  return [3, 5];
673
673
  if (["en_US", "fr_FR", "pt_BR", "ja_JP", "ko_KR", "ru_RU", "sv_SE", "zh_CN", "zh_TW"].includes(j.lang))
674
674
  return [3, 2];
@@ -688,7 +688,7 @@ var zn = { exports: {} };
688
688
  case 7:
689
689
  ae.sent(), ae.label = 8;
690
690
  case 8:
691
- return (0, W.Z)(j.theme.current, j.theme.path), j.anchor === 1 && G.classList.add("vditor-reset--anchor"), (0, w.O)(G, j.hljs), (0, h.s)(j.hljs, G, j.cdn), (0, L.H)(G, { cdn: j.cdn, math: j.math }), (0, T.i)(G, j.cdn, j.mode), (0, y.K)(G, j.cdn, j.mode), (0, l.P)(G, j.cdn), (0, u.v)(G, j.cdn), (0, s.p)(G, j.cdn, j.mode), (0, k.P)(G, j.cdn, j.mode), (0, x.B)(G, j.cdn), (0, c.Q)(G, j.cdn), j.render.media.enable && (0, S.Y)(G), j.speech.enable && de(G), j.anchor !== 0 && (De = j.anchor, document.querySelectorAll(".vditor-anchor").forEach(function(fe) {
691
+ return (0, W.Z)(j.theme.current, j.theme.path), j.anchor === 1 && K.classList.add("vditor-reset--anchor"), (0, w.O)(K, j.hljs), (0, h.s)(j.hljs, K, j.cdn), (0, L.H)(K, { cdn: j.cdn, math: j.math }), (0, T.i)(K, j.cdn, j.mode), (0, y.K)(K, j.cdn, j.mode), (0, l.P)(K, j.cdn), (0, u.v)(K, j.cdn), (0, s.p)(K, j.cdn, j.mode), (0, k.P)(K, j.cdn, j.mode), (0, x.B)(K, j.cdn), (0, c.Q)(K, j.cdn), j.render.media.enable && (0, S.Y)(K), j.speech.enable && de(K), j.anchor !== 0 && (De = j.anchor, document.querySelectorAll(".vditor-anchor").forEach(function(fe) {
692
692
  De === 1 && fe.classList.add("vditor-anchor--left"), fe.onclick = function() {
693
693
  var me = fe.getAttribute("href").substr(1), X = document.getElementById("vditorAnchor-" + me).offsetTop;
694
694
  document.querySelector("html").scrollTop = X;
@@ -696,10 +696,10 @@ var zn = { exports: {} };
696
696
  }), window.onhashchange = function() {
697
697
  var fe = document.getElementById("vditorAnchor-" + decodeURIComponent(window.location.hash.substr(1)));
698
698
  fe && (document.querySelector("html").scrollTop = fe.offsetTop);
699
- }), j.after && j.after(), j.lazyLoadImage && E(G), G.addEventListener("click", function(fe) {
699
+ }), j.after && j.after(), j.lazyLoadImage && E(K), K.addEventListener("click", function(fe) {
700
700
  var me = (0, Q.lG)(fe.target, "SPAN");
701
701
  if (me && (0, Q.fb)(me, "vditor-toc")) {
702
- var X = G.querySelector("#" + me.getAttribute("data-target-id"));
702
+ var X = K.querySelector("#" + me.getAttribute("data-target-id"));
703
703
  X && window.scrollTo(window.scrollX, X.offsetTop);
704
704
  }
705
705
  }), [2];
@@ -709,18 +709,18 @@ var zn = { exports: {} };
709
709
  });
710
710
  }, C = b(863), Ke = b(312);
711
711
  const kt = function() {
712
- function G() {
712
+ function K() {
713
713
  }
714
- return G.adapterRender = p, G.previewImage = C.E, G.codeRender = w.O, G.graphvizRender = u.v, G.highlightRender = h.s, G.mathRender = L.H, G.mermaidRender = T.i, G.markmapRender = y.K, G.flowchartRender = l.P, G.chartRender = s.p, G.abcRender = c.Q, G.mindmapRender = k.P, G.plantumlRender = x.B, G.outlineRender = m.k, G.mediaRender = S.Y, G.speechRender = de, G.lazyLoadImageRender = E, G.md2html = Je, G.preview = Te, G.setCodeTheme = Ke.Y, G.setContentTheme = W.Z, G;
714
+ return K.adapterRender = p, K.previewImage = C.E, K.codeRender = w.O, K.graphvizRender = u.v, K.highlightRender = h.s, K.mathRender = L.H, K.mermaidRender = T.i, K.markmapRender = y.K, K.flowchartRender = l.P, K.chartRender = s.p, K.abcRender = c.Q, K.mindmapRender = k.P, K.plantumlRender = x.B, K.outlineRender = m.k, K.mediaRender = S.Y, K.speechRender = de, K.lazyLoadImageRender = E, K.md2html = Je, K.preview = Te, K.setCodeTheme = Ke.Y, K.setContentTheme = W.Z, K;
715
715
  }();
716
- }, 54: (K, _, b) => {
716
+ }, 54: ($, _, b) => {
717
717
  b.d(_, { H: () => c, g: () => p });
718
718
  var c = "3.10.4", p = function() {
719
719
  function s() {
720
720
  }
721
721
  return s.ZWSP = "​", s.DROP_EDITOR = "application/editor", s.MOBILE_WIDTH = 520, s.CLASS_MENU_DISABLED = "vditor-menu--disabled", s.EDIT_TOOLBARS = ["emoji", "headings", "bold", "italic", "strike", "link", "list", "ordered-list", "outdent", "indent", "check", "line", "quote", "code", "inline-code", "insert-after", "insert-before", "upload", "record", "table"], s.CODE_THEME = ["abap", "algol", "algol_nu", "arduino", "autumn", "borland", "bw", "colorful", "dracula", "emacs", "friendly", "fruity", "github", "igor", "lovelace", "manni", "monokai", "monokailight", "murphy", "native", "paraiso-dark", "paraiso-light", "pastie", "perldoc", "pygments", "rainbow_dash", "rrt", "solarized-dark", "solarized-dark256", "solarized-light", "swapoff", "tango", "trac", "vim", "vs", "xcode", "ant-design"], s.CODE_LANGUAGES = ["mermaid", "echarts", "mindmap", "plantuml", "abc", "graphviz", "flowchart", "apache", "js", "ts", "html", "markmap", "properties", "apache", "bash", "c", "csharp", "cpp", "css", "coffeescript", "diff", "go", "xml", "http", "json", "java", "javascript", "kotlin", "less", "lua", "makefile", "markdown", "nginx", "objectivec", "php", "php-template", "perl", "plaintext", "python", "python-repl", "r", "ruby", "rust", "scss", "sql", "shell", "swift", "ini", "typescript", "vbnet", "yaml", "ada", "clojure", "dart", "erb", "fortran", "gradle", "haskell", "julia", "julia-repl", "lisp", "matlab", "pgsql", "powershell", "sql_more", "stata", "cmake", "mathematica", "solidity", "yul"], s.CDN = "https://unpkg.com/vditor@3.10.4", s.MARKDOWN_OPTIONS = { autoSpace: !1, gfmAutoLink: !0, codeBlockPreview: !0, fixTermTypo: !1, footnotes: !0, linkBase: "", linkPrefix: "", listStyle: !1, mark: !1, mathBlockPreview: !0, paragraphBeginningSpace: !1, sanitize: !0, toc: !1 }, s.HLJS_OPTIONS = { enable: !0, lineNumber: !1, defaultLang: "", style: "github" }, s.MATH_OPTIONS = { engine: "KaTeX", inlineDigit: !1, macros: {} }, s.THEME_OPTIONS = { current: "light", list: { "ant-design": "Ant Design", dark: "Dark", light: "Light", wechat: "WeChat" }, path: s.CDN + "/dist/css/content-theme" }, s;
722
722
  }();
723
- }, 478: (K, _, b) => {
723
+ }, 478: ($, _, b) => {
724
724
  b.d(_, { Q: () => w });
725
725
  var c = b(54), p = b(526), s = b(156), w = function(l, u) {
726
726
  l === void 0 && (l = document), u === void 0 && (u = c.g.CDN);
@@ -731,7 +731,7 @@ var zn = { exports: {} };
731
731
  });
732
732
  });
733
733
  };
734
- }, 156: (K, _, b) => {
734
+ }, 156: ($, _, b) => {
735
735
  b.r(_), b.d(_, { abcRenderAdapter: () => u, chartRenderAdapter: () => l, flowchartRenderAdapter: () => E, graphvizRenderAdapter: () => h, markmapRenderAdapter: () => s, mathRenderAdapter: () => c, mermaidRenderAdapter: () => p, mindmapRenderAdapter: () => w, plantumlRenderAdapter: () => L });
736
736
  var c = { getCode: function(S) {
737
737
  return S.textContent;
@@ -770,7 +770,7 @@ var zn = { exports: {} };
770
770
  }, getElements: function(S) {
771
771
  return S.querySelectorAll(".language-plantuml");
772
772
  } };
773
- }, 314: (K, _, b) => {
773
+ }, 314: ($, _, b) => {
774
774
  b.d(_, { p: () => w });
775
775
  var c = b(54), p = b(526), s = b(156), w = function(l, u, h) {
776
776
  l === void 0 && (l = document), u === void 0 && (u = c.g.CDN);
@@ -792,7 +792,7 @@ var zn = { exports: {} };
792
792
  });
793
793
  });
794
794
  };
795
- }, 730: (K, _, b) => {
795
+ }, 730: ($, _, b) => {
796
796
  b.d(_, { O: () => s });
797
797
  var c = b(51), p = b(54), s = function(w, l) {
798
798
  Array.from(w.querySelectorAll("pre > code")).filter(function(u, h) {
@@ -818,7 +818,7 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
818
818
  m.value = (0, c.X)(S), k.insertAdjacentElement("afterbegin", m), l && l.renderMenu && l.renderMenu(u, k), u.before(k), u.style.maxHeight = window.outerHeight - 40 + "px", u.insertAdjacentHTML("afterend", '<span style="position: absolute">' + p.g.ZWSP + "</span>");
819
819
  });
820
820
  };
821
- }, 66: (K, _, b) => {
821
+ }, 66: ($, _, b) => {
822
822
  b.d(_, { P: () => w });
823
823
  var c = b(54), p = b(526), s = b(156), w = function(l, u) {
824
824
  u === void 0 && (u = c.g.CDN);
@@ -832,7 +832,7 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
832
832
  });
833
833
  });
834
834
  };
835
- }, 218: (K, _, b) => {
835
+ }, 218: ($, _, b) => {
836
836
  b.d(_, { v: () => w });
837
837
  var c = b(54), p = b(526), s = b(156), w = function(l, u) {
838
838
  u === void 0 && (u = c.g.CDN);
@@ -856,7 +856,7 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
856
856
  });
857
857
  });
858
858
  };
859
- }, 702: (K, _, b) => {
859
+ }, 702: ($, _, b) => {
860
860
  b.d(_, { s: () => w });
861
861
  var c = b(54), p = b(526), s = b(578), w = function(l, u, h) {
862
862
  u === void 0 && (u = document), h === void 0 && (h = c.g.CDN);
@@ -885,13 +885,13 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
885
885
  });
886
886
  });
887
887
  };
888
- }, 563: (K, _, b) => {
888
+ }, 563: ($, _, b) => {
889
889
  b.d(_, { K: () => u });
890
890
  var c = b(54), p = b(526), s = b(156), w = {}, l = function(h, E) {
891
891
  var L = window.markmap, S = L.Transformer, T = L.Markmap, y = L.deriveOptions, k = (L.globalCSS, new S());
892
892
  h.innerHTML = '<svg style="width:100%"></svg>';
893
- var m = h.firstChild, x = T.create(m, null), I = function(ne, ve) {
894
- var pe = ne.transform(ve), de = Object.keys(pe.features).filter(function(Te) {
893
+ var m = h.firstChild, x = T.create(m, null), I = function(ne, he) {
894
+ var pe = ne.transform(he), de = Object.keys(pe.features).filter(function(Te) {
895
895
  return !w[Te];
896
896
  });
897
897
  de.forEach(function(Te) {
@@ -914,7 +914,7 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
914
914
  });
915
915
  });
916
916
  };
917
- }, 466: (K, _, b) => {
917
+ }, 466: ($, _, b) => {
918
918
  b.d(_, { H: () => u });
919
919
  var c = b(54), p = b(526), s = b(578), w = b(51), l = b(156), u = function(h, E) {
920
920
  var L = l.mathRenderAdapter.getElements(h);
@@ -972,7 +972,7 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
972
972
  }
973
973
  }
974
974
  };
975
- }, 554: (K, _, b) => {
975
+ }, 554: ($, _, b) => {
976
976
  b.d(_, { Y: () => p });
977
977
  var c = b(835), p = function(s) {
978
978
  s && s.querySelectorAll("a").forEach(function(w) {
@@ -1003,8 +1003,8 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
1003
1003
  new URL(h.startsWith("http") ? h : "https:" + h).search.split("&").forEach(function(Q, ne) {
1004
1004
  if (Q) {
1005
1005
  ne === 0 && (Q = Q.substr(1));
1006
- var ve = Q.split("=");
1007
- I[ve[0]] = ve[1];
1006
+ var he = Q.split("=");
1007
+ I[he[0]] = he[1];
1008
1008
  }
1009
1009
  });
1010
1010
  var W = "https://player.bilibili.com/player.html?", N = Object.keys(I);
@@ -1016,7 +1016,7 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
1016
1016
  }(w, l));
1017
1017
  });
1018
1018
  };
1019
- }, 40: (K, _, b) => {
1019
+ }, 40: ($, _, b) => {
1020
1020
  b.d(_, { i: () => h });
1021
1021
  var c = b(54), p = b(526), s = b(156), w = b(835), l = function(E, L, S, T) {
1022
1022
  return new (S || (S = Promise))(function(y, k) {
@@ -1134,7 +1134,7 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
1134
1134
  });
1135
1135
  });
1136
1136
  };
1137
- }, 749: (K, _, b) => {
1137
+ }, 749: ($, _, b) => {
1138
1138
  b.d(_, { P: () => w });
1139
1139
  var c = b(54), p = b(526), s = b(156), w = function(l, u, h) {
1140
1140
  l === void 0 && (l = document), u === void 0 && (u = c.g.CDN);
@@ -1158,7 +1158,7 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
1158
1158
  });
1159
1159
  });
1160
1160
  };
1161
- }, 818: (K, _, b) => {
1161
+ }, 818: ($, _, b) => {
1162
1162
  b.d(_, { k: () => s });
1163
1163
  var c = b(64), p = b(466), s = function(w, l, u) {
1164
1164
  var h = "", E = [];
@@ -1213,7 +1213,7 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
1213
1213
  }
1214
1214
  }), h);
1215
1215
  };
1216
- }, 408: (K, _, b) => {
1216
+ }, 408: ($, _, b) => {
1217
1217
  b.d(_, { B: () => w });
1218
1218
  var c = b(54), p = b(526), s = b(156), w = function(l, u) {
1219
1219
  l === void 0 && (l = document), u === void 0 && (u = c.g.CDN);
@@ -1232,13 +1232,13 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
1232
1232
  });
1233
1233
  });
1234
1234
  };
1235
- }, 895: (K, _, b) => {
1235
+ }, 895: ($, _, b) => {
1236
1236
  b.d(_, { X: () => c });
1237
1237
  var c = function(p) {
1238
1238
  var s = Lute.New();
1239
1239
  return s.PutEmojis(p.emojis), s.SetEmojiSite(p.emojiSite), s.SetHeadingAnchor(p.headingAnchor), s.SetInlineMathAllowDigitAfterOpenMarker(p.inlineMathDigit), s.SetAutoSpace(p.autoSpace), s.SetToC(p.toc), s.SetFootnotes(p.footnotes), s.SetFixTermTypo(p.fixTermTypo), s.SetVditorCodeBlockPreview(p.codeBlockPreview), s.SetVditorMathBlockPreview(p.mathBlockPreview), s.SetSanitize(p.sanitize), s.SetChineseParagraphBeginningSpace(p.paragraphBeginningSpace), s.SetRenderListStyle(p.listStyle), s.SetLinkBase(p.linkBase), s.SetLinkPrefix(p.linkPrefix), s.SetMark(p.mark), s.SetGFMAutoLink(p.gfmAutoLink), p.lazyLoadImage && s.SetImageLazyLoading(p.lazyLoadImage), s;
1240
1240
  };
1241
- }, 863: (K, _, b) => {
1241
+ }, 863: ($, _, b) => {
1242
1242
  b.d(_, { E: () => c });
1243
1243
  var c = function(p, s, w) {
1244
1244
  w === void 0 && (w = "classic");
@@ -1271,14 +1271,14 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
1271
1271
  }, 400);
1272
1272
  });
1273
1273
  };
1274
- }, 312: (K, _, b) => {
1274
+ }, 312: ($, _, b) => {
1275
1275
  b.d(_, { Y: () => s });
1276
1276
  var c = b(54), p = b(578), s = function(w, l) {
1277
1277
  l === void 0 && (l = c.g.CDN), c.g.CODE_THEME.includes(w) || (w = "github");
1278
1278
  var u = document.getElementById("vditorHljsStyle"), h = l + "/dist/js/highlight.js/styles/" + w + ".css";
1279
1279
  u ? u.getAttribute("href") !== h && (u.remove(), (0, p.c)(h, "vditorHljsStyle")) : (0, p.c)(h, "vditorHljsStyle");
1280
1280
  };
1281
- }, 227: (K, _, b) => {
1281
+ }, 227: ($, _, b) => {
1282
1282
  b.d(_, { Z: () => p });
1283
1283
  var c = b(578), p = function(s, w) {
1284
1284
  if (s && w) {
@@ -1286,7 +1286,7 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
1286
1286
  l ? l.getAttribute("href") !== u && (l.remove(), (0, c.c)(u, "vditorContentTheme")) : (0, c.c)(u, "vditorContentTheme");
1287
1287
  }
1288
1288
  };
1289
- }, 526: (K, _, b) => {
1289
+ }, 526: ($, _, b) => {
1290
1290
  b.d(_, { G: () => p, J: () => c });
1291
1291
  var c = function(s, w) {
1292
1292
  if (document.getElementById(w))
@@ -1309,7 +1309,7 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
1309
1309
  };
1310
1310
  });
1311
1311
  };
1312
- }, 578: (K, _, b) => {
1312
+ }, 578: ($, _, b) => {
1313
1313
  b.d(_, { c: () => c });
1314
1314
  var c = function(p, s) {
1315
1315
  if (!document.getElementById(s)) {
@@ -1317,12 +1317,12 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
1317
1317
  w.id = s, w.rel = "stylesheet", w.type = "text/css", w.href = p, document.getElementsByTagName("head")[0].appendChild(w);
1318
1318
  }
1319
1319
  };
1320
- }, 51: (K, _, b) => {
1320
+ }, 51: ($, _, b) => {
1321
1321
  b.d(_, { X: () => c });
1322
1322
  var c = function(p) {
1323
1323
  return p.replace(/\u00a0/g, " ");
1324
1324
  };
1325
- }, 794: (K, _, b) => {
1325
+ }, 794: ($, _, b) => {
1326
1326
  b.d(_, { G6: () => c, Le: () => w, i7: () => h, ns: () => u, pK: () => s, vU: () => p, yl: () => l });
1327
1327
  var c = function() {
1328
1328
  return navigator.userAgent.indexOf("Safari") > -1 && navigator.userAgent.indexOf("Chrome") === -1;
@@ -1343,7 +1343,7 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
1343
1343
  }, h = function() {
1344
1344
  return /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
1345
1345
  };
1346
- }, 835: (K, _, b) => {
1346
+ }, 835: ($, _, b) => {
1347
1347
  b.d(_, { W: () => c, o: () => p });
1348
1348
  var c = function() {
1349
1349
  return ([1e7].toString() + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, function(s) {
@@ -1354,7 +1354,7 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
1354
1354
  var l = w.substring(w.indexOf("?")), u = l.indexOf("#");
1355
1355
  return new URLSearchParams(l.substring(0, u >= 0 ? u : void 0)).get(s);
1356
1356
  };
1357
- }, 827: (K, _, b) => {
1357
+ }, 827: ($, _, b) => {
1358
1358
  b.d(_, { DX: () => L, E2: () => s, F9: () => u, JQ: () => p, O9: () => w, a1: () => l, fb: () => E, lG: () => h });
1359
1359
  var c = b(64), p = function(S, T) {
1360
1360
  for (var y = E(S, T), k = !1, m = !1; y && !y.classList.contains("vditor-reset") && !m; )
@@ -1403,7 +1403,7 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
1403
1403
  S = S.lastChild;
1404
1404
  return S;
1405
1405
  };
1406
- }, 64: (K, _, b) => {
1406
+ }, 64: ($, _, b) => {
1407
1407
  b.d(_, { S: () => c, W: () => p });
1408
1408
  var c = function(s, w) {
1409
1409
  if (!s)
@@ -1416,7 +1416,7 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
1416
1416
  var w = c(s, "H");
1417
1417
  return !(!w || w.tagName.length !== 2 || w.tagName === "HR") && w;
1418
1418
  };
1419
- }, 640: (K, _, b) => {
1419
+ }, 640: ($, _, b) => {
1420
1420
  b.d(_, { T: () => c });
1421
1421
  var c = function() {
1422
1422
  for (var p = [], s = 0; s < arguments.length; s++)
@@ -1428,7 +1428,7 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
1428
1428
  l(p[u]);
1429
1429
  return w;
1430
1430
  };
1431
- }, 393: (K, _, b) => {
1431
+ }, 393: ($, _, b) => {
1432
1432
  b.d(_, { $j: () => L, Gb: () => u, Hc: () => h, Ny: () => l, ib: () => S, im: () => E, oC: () => T, zh: () => w });
1433
1433
  var c = b(54), p = b(794), s = b(827), w = function(y) {
1434
1434
  var k, m = y[y.currentMode].element;
@@ -1490,12 +1490,12 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
1490
1490
  y = Math.max(0, y), k = Math.max(0, k);
1491
1491
  var ne = m.ownerDocument.createRange();
1492
1492
  for (ne.setStart(W || m, 0), ne.collapse(!0); !Q && W; ) {
1493
- var ve = x + W.textContent.length;
1494
- if (!N && y >= x && y <= ve && (y === 0 ? ne.setStart(W, 0) : W.childNodes[0].nodeType === 3 ? ne.setStart(W.childNodes[0], y - x) : W.nextSibling ? ne.setStartBefore(W.nextSibling) : ne.setStartAfter(W), N = !0, y === k)) {
1493
+ var he = x + W.textContent.length;
1494
+ if (!N && y >= x && y <= he && (y === 0 ? ne.setStart(W, 0) : W.childNodes[0].nodeType === 3 ? ne.setStart(W.childNodes[0], y - x) : W.nextSibling ? ne.setStartBefore(W.nextSibling) : ne.setStartAfter(W), N = !0, y === k)) {
1495
1495
  Q = !0;
1496
1496
  break;
1497
1497
  }
1498
- N && k >= x && k <= ve && (k === 0 ? ne.setEnd(W, 0) : W.childNodes[0].nodeType === 3 ? ne.setEnd(W.childNodes[0], k - x) : W.nextSibling ? ne.setEndBefore(W.nextSibling) : ne.setEndAfter(W), Q = !0), x = ve, W = m.childNodes[++I];
1498
+ N && k >= x && k <= he && (k === 0 ? ne.setEnd(W, 0) : W.childNodes[0].nodeType === 3 ? ne.setEnd(W.childNodes[0], k - x) : W.nextSibling ? ne.setEndBefore(W.nextSibling) : ne.setEndAfter(W), Q = !0), x = he, W = m.childNodes[++I];
1499
1499
  }
1500
1500
  return !Q && m.childNodes[I - 1] && ne.setStartBefore(m.childNodes[I - 1]), h(ne), ne;
1501
1501
  }, S = function(y, k) {
@@ -1530,23 +1530,23 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
1530
1530
  }
1531
1531
  };
1532
1532
  } }, ue = {};
1533
- function Z(K) {
1534
- var _ = ue[K];
1533
+ function Z($) {
1534
+ var _ = ue[$];
1535
1535
  if (_ !== void 0)
1536
1536
  return _.exports;
1537
- var b = ue[K] = { exports: {} };
1538
- return ge[K](b, b.exports, Z), b.exports;
1537
+ var b = ue[$] = { exports: {} };
1538
+ return ve[$](b, b.exports, Z), b.exports;
1539
1539
  }
1540
- Z.d = (K, _) => {
1540
+ Z.d = ($, _) => {
1541
1541
  for (var b in _)
1542
- Z.o(_, b) && !Z.o(K, b) && Object.defineProperty(K, b, { enumerable: !0, get: _[b] });
1543
- }, Z.o = (K, _) => Object.prototype.hasOwnProperty.call(K, _), Z.r = (K) => {
1544
- typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(K, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(K, "__esModule", { value: !0 });
1542
+ Z.o(_, b) && !Z.o($, b) && Object.defineProperty($, b, { enumerable: !0, get: _[b] });
1543
+ }, Z.o = ($, _) => Object.prototype.hasOwnProperty.call($, _), Z.r = ($) => {
1544
+ typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty($, Symbol.toStringTag, { value: "Module" }), Object.defineProperty($, "__esModule", { value: !0 });
1545
1545
  };
1546
- var he = {};
1546
+ var ge = {};
1547
1547
  return (() => {
1548
- Z.d(he, { default: () => vi });
1549
- var K, _ = Z(872), b = Z(54), c = Z(51), p = function(e) {
1548
+ Z.d(ge, { default: () => vi });
1549
+ var $, _ = Z(872), b = Z(54), c = Z(51), p = function(e) {
1550
1550
  return e.currentMode === "sv" ? (0, c.X)((e.sv.element.textContent + `
1551
1551
  `).replace(/\n\n$/, `
1552
1552
  `)) : e.currentMode === "wysiwyg" ? e.lute.VditorDOM2Md(e.wysiwyg.element.innerHTML) : e.currentMode === "ir" ? e.lute.VditorIRDOM2Md(e.ir.element.innerHTML) : "";
@@ -1613,11 +1613,11 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
1613
1613
  });
1614
1614
  }, m = Z(827), x = Z(64), I = function(e, t, n, i) {
1615
1615
  i && console.log(e + " - " + n + ": " + t);
1616
- }, W = Z(478), N = Z(314), Q = Z(730), ne = Z(66), ve = Z(218), pe = Z(702), de = Z(466), be = Z(40), He = Z(563), Ae = Z(749), Je = Z(408), Te = function(e, t) {
1616
+ }, W = Z(478), N = Z(314), Q = Z(730), ne = Z(66), he = Z(218), pe = Z(702), de = Z(466), be = Z(40), He = Z(563), Ae = Z(749), Je = Z(408), Te = function(e, t) {
1617
1617
  if (e)
1618
1618
  if (e.parentElement.getAttribute("data-type") !== "html-block") {
1619
1619
  var n = e.firstElementChild.className.replace("language-", "");
1620
- n === "abc" ? (0, W.Q)(e, t.options.cdn) : n === "mermaid" ? (0, be.i)(e, t.options.cdn, t.options.theme) : n === "markmap" ? (0, He.K)(e, t.options.cdn, t.options.theme) : n === "flowchart" ? (0, ne.P)(e, t.options.cdn) : n === "echarts" ? (0, N.p)(e, t.options.cdn, t.options.theme) : n === "mindmap" ? (0, Ae.P)(e, t.options.cdn, t.options.theme) : n === "plantuml" ? (0, Je.B)(e, t.options.cdn) : n === "graphviz" ? (0, ve.v)(e, t.options.cdn) : n === "math" ? (0, de.H)(e, { cdn: t.options.cdn, math: t.options.preview.math }) : t.options.customRenders.find(function(i) {
1620
+ n === "abc" ? (0, W.Q)(e, t.options.cdn) : n === "mermaid" ? (0, be.i)(e, t.options.cdn, t.options.theme) : n === "markmap" ? (0, He.K)(e, t.options.cdn, t.options.theme) : n === "flowchart" ? (0, ne.P)(e, t.options.cdn) : n === "echarts" ? (0, N.p)(e, t.options.cdn, t.options.theme) : n === "mindmap" ? (0, Ae.P)(e, t.options.cdn, t.options.theme) : n === "plantuml" ? (0, Je.B)(e, t.options.cdn) : n === "graphviz" ? (0, he.v)(e, t.options.cdn) : n === "math" ? (0, de.H)(e, { cdn: t.options.cdn, math: t.options.preview.math }) : t.options.customRenders.find(function(i) {
1621
1621
  if (i.language === n)
1622
1622
  return i.render(e, t), !0;
1623
1623
  }) || ((0, pe.s)(Object.assign({}, t.options.preview.hljs), e, t.options.cdn), (0, Q.O)(e, t.options.preview.hljs)), e.setAttribute("data-render", "1");
@@ -1641,7 +1641,7 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
1641
1641
  } else
1642
1642
  t.element.offsetTop < window.scrollY && window.scrollTo(window.scrollX, t.element.offsetTop), t[t.currentMode].element.scrollTop = i.offsetTop;
1643
1643
  }
1644
- }, G = function(e, t, n, i) {
1644
+ }, K = function(e, t, n, i) {
1645
1645
  if (e.previousElementSibling && e.previousElementSibling.classList.contains("vditor-toc")) {
1646
1646
  if (n.key === "Backspace" && (0, C.im)(e, t[t.currentMode].element, i).start === 0)
1647
1647
  return e.previousElementSibling.remove(), se(t), !0;
@@ -1686,14 +1686,14 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
1686
1686
  return g && g.nodeType !== 3 && g.classList.contains("vditor-ir__node--expand") && g.classList.remove("vditor-ir__node--expand"), void (typeof e.options.input == "function" && e.options.input(p(e)));
1687
1687
  }
1688
1688
  }
1689
- if (e.ir.element.querySelectorAll(".vditor-ir__node--expand").forEach(function(F) {
1690
- F.classList.remove("vditor-ir__node--expand");
1689
+ if (e.ir.element.querySelectorAll(".vditor-ir__node--expand").forEach(function(G) {
1690
+ G.classList.remove("vditor-ir__node--expand");
1691
1691
  }), r || (r = e.ir.element), !r.querySelector("wbr")) {
1692
1692
  var f = (0, m.fb)(t.startContainer, "vditor-ir__preview");
1693
1693
  f ? f.previousElementSibling.insertAdjacentHTML("beforeend", "<wbr>") : t.insertNode(document.createElement("wbr"));
1694
1694
  }
1695
- r.querySelectorAll("[style]").forEach(function(F) {
1696
- F.removeAttribute("style");
1695
+ r.querySelectorAll("[style]").forEach(function(G) {
1696
+ G.removeAttribute("style");
1697
1697
  }), r.getAttribute("data-type") === "link-ref-defs-block" && (r = e.ir.element);
1698
1698
  var M, O = r.isEqualNode(e.ir.element), U = (0, m.a1)(r, "data-type", "footnotes-block"), A = "";
1699
1699
  if (O)
@@ -1705,10 +1705,10 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
1705
1705
  !D || D.tagName !== "UL" && D.tagName !== "OL" || (A = D.outerHTML + A, D.remove()), !B || B.tagName !== "UL" && B.tagName !== "OL" || (A += B.outerHTML, B.remove()), A = A.replace("<div><wbr><br></div>", "<li><p><wbr><br></p></li>");
1706
1706
  } else
1707
1707
  r.previousElementSibling && r.previousElementSibling.textContent.replace(b.g.ZWSP, "") !== "" && i && i.inputType === "insertParagraph" && (A = r.previousElementSibling.outerHTML + A, r.previousElementSibling.remove());
1708
- r.innerText.startsWith("```") || (e.ir.element.querySelectorAll("[data-type='link-ref-defs-block']").forEach(function(F) {
1709
- F && !r.isEqualNode(F) && (A += F.outerHTML, F.remove());
1710
- }), e.ir.element.querySelectorAll("[data-type='footnotes-block']").forEach(function(F) {
1711
- F && !r.isEqualNode(F) && (A += F.outerHTML, F.remove());
1708
+ r.innerText.startsWith("```") || (e.ir.element.querySelectorAll("[data-type='link-ref-defs-block']").forEach(function(G) {
1709
+ G && !r.isEqualNode(G) && (A += G.outerHTML, G.remove());
1710
+ }), e.ir.element.querySelectorAll("[data-type='footnotes-block']").forEach(function(G) {
1711
+ G && !r.isEqualNode(G) && (A += G.outerHTML, G.remove());
1712
1712
  }));
1713
1713
  }
1714
1714
  if (I("SpinVditorIRDOM", A, "argument", e.options.debugger), A = e.lute.SpinVditorIRDOM(A), I("SpinVditorIRDOM", A, "result", e.options.debugger), O)
@@ -1716,19 +1716,19 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
1716
1716
  else if (r.outerHTML = A, U) {
1717
1717
  var P = (0, m.a1)(e.ir.element.querySelector("wbr"), "data-type", "footnotes-def");
1718
1718
  if (P) {
1719
- var H = P.textContent, $ = H.substring(1, H.indexOf("]:")), te = e.ir.element.querySelector('sup[data-type="footnotes-ref"][data-footnotes-label="' + $ + '"]');
1720
- te && te.setAttribute("aria-label", H.substr($.length + 3).trim().substr(0, 24));
1719
+ var H = P.textContent, F = H.substring(1, H.indexOf("]:")), te = e.ir.element.querySelector('sup[data-type="footnotes-ref"][data-footnotes-label="' + F + '"]');
1720
+ te && te.setAttribute("aria-label", H.substr(F.length + 3).trim().substr(0, 24));
1721
1721
  }
1722
1722
  }
1723
1723
  var J, ee = e.ir.element.querySelectorAll("[data-type='link-ref-defs-block']");
1724
- ee.forEach(function(F, re) {
1725
- re === 0 ? M = F : (M.insertAdjacentHTML("beforeend", F.innerHTML), F.remove());
1724
+ ee.forEach(function(G, re) {
1725
+ re === 0 ? M = G : (M.insertAdjacentHTML("beforeend", G.innerHTML), G.remove());
1726
1726
  }), ee.length > 0 && e.ir.element.insertAdjacentElement("beforeend", ee[0]);
1727
1727
  var Y = e.ir.element.querySelectorAll("[data-type='footnotes-block']");
1728
- Y.forEach(function(F, re) {
1729
- re === 0 ? J = F : (J.insertAdjacentHTML("beforeend", F.innerHTML), F.remove());
1730
- }), Y.length > 0 && e.ir.element.insertAdjacentElement("beforeend", Y[0]), (0, C.ib)(e.ir.element, t), e.ir.element.querySelectorAll(".vditor-ir__preview[data-render='2']").forEach(function(F) {
1731
- Te(F, e);
1728
+ Y.forEach(function(G, re) {
1729
+ re === 0 ? J = G : (J.insertAdjacentHTML("beforeend", G.innerHTML), G.remove());
1730
+ }), Y.length > 0 && e.ir.element.insertAdjacentElement("beforeend", Y[0]), (0, C.ib)(e.ir.element, t), e.ir.element.querySelectorAll(".vditor-ir__preview[data-render='2']").forEach(function(G) {
1731
+ Te(G, e);
1732
1732
  }), Ke(e), $e(e, { enableAddUndoStack: !0, enableHint: !0, enableInput: !0 });
1733
1733
  }, V = function(e, t) {
1734
1734
  if (e === "")
@@ -1869,10 +1869,10 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
1869
1869
  }
1870
1870
  };
1871
1871
  function Fe() {
1872
- window.removeEventListener("resize", K);
1872
+ window.removeEventListener("resize", $);
1873
1873
  }
1874
1874
  var et, Yt, Gn = function(e) {
1875
- X(e), Fe(), window.addEventListener("resize", K = function() {
1875
+ X(e), Fe(), window.addEventListener("resize", $ = function() {
1876
1876
  me(e), X(e);
1877
1877
  });
1878
1878
  var t = (0, l.pK)() && localStorage.getItem(e.options.cache.id);
@@ -2005,8 +2005,8 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
2005
2005
  H.setAttribute("type", "button"), H.setAttribute("aria-label", window.VditorI18n.alignRight + "<" + (0, l.ns)("⇧⌘R") + ">"), H.setAttribute("data-type", "right"), H.innerHTML = '<svg><use xlink:href="#vditor-icon-align-right"></use></svg>', H.className = "vditor-icon vditor-tooltipped vditor-tooltipped__n" + (D === "right" ? " vditor-icon--current" : ""), H.onclick = function() {
2006
2006
  A("right");
2007
2007
  };
2008
- var $ = document.createElement("button");
2009
- $.setAttribute("type", "button"), $.setAttribute("aria-label", window.VditorI18n.insertRowBelow + "<" + (0, l.ns)("⌘=") + ">"), $.setAttribute("data-type", "insertRow"), $.innerHTML = '<svg><use xlink:href="#vditor-icon-insert-row"></use></svg>', $.className = "vditor-icon vditor-tooltipped vditor-tooltipped__n", $.onclick = function() {
2008
+ var F = document.createElement("button");
2009
+ F.setAttribute("type", "button"), F.setAttribute("aria-label", window.VditorI18n.insertRowBelow + "<" + (0, l.ns)("⌘=") + ">"), F.setAttribute("data-type", "insertRow"), F.innerHTML = '<svg><use xlink:href="#vditor-icon-insert-row"></use></svg>', F.className = "vditor-icon vditor-tooltipped vditor-tooltipped__n", F.onclick = function() {
2010
2010
  var z = getSelection().getRangeAt(0).startContainer, Se = (0, m.lG)(z, "TD") || (0, m.lG)(z, "TH");
2011
2011
  Se && bn(e, t, Se);
2012
2012
  };
@@ -2030,8 +2030,8 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
2030
2030
  var z = getSelection().getRangeAt(0).startContainer, Se = (0, m.lG)(z, "TD") || (0, m.lG)(z, "TH");
2031
2031
  Se && En(e, t, Se);
2032
2032
  };
2033
- var F = document.createElement("button");
2034
- F.setAttribute("type", "button"), F.setAttribute("aria-label", window.VditorI18n["delete-column"] + "<" + (0, l.ns)("⇧⌘-") + ">"), F.setAttribute("data-type", "deleteColumn"), F.innerHTML = '<svg><use xlink:href="#vditor-icon-delete-column"></use></svg>', F.className = "vditor-icon vditor-tooltipped vditor-tooltipped__n", F.onclick = function() {
2033
+ var G = document.createElement("button");
2034
+ G.setAttribute("type", "button"), G.setAttribute("aria-label", window.VditorI18n["delete-column"] + "<" + (0, l.ns)("⇧⌘-") + ">"), G.setAttribute("data-type", "deleteColumn"), G.innerHTML = '<svg><use xlink:href="#vditor-icon-delete-column"></use></svg>', G.className = "vditor-icon vditor-tooltipped vditor-tooltipped__n", G.onclick = function() {
2035
2035
  var z = getSelection().getRangeAt(0).startContainer, Se = (0, m.lG)(z, "TD") || (0, m.lG)(z, "TH");
2036
2036
  Se && kn(e, t, g, Se);
2037
2037
  }, (Be = document.createElement("span")).setAttribute("aria-label", window.VditorI18n.row), Be.className = "vditor-tooltipped vditor-tooltipped__n";
@@ -2050,7 +2050,7 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
2050
2050
  }, Le.onkeydown = function(z) {
2051
2051
  if (!z.isComposing)
2052
2052
  return z.key === "Tab" ? (re.focus(), re.select(), void z.preventDefault()) : void (Ie(e, z) || Ge(z, t));
2053
- }, it(t, g, e), ot(t, g, e), qe(g, e), e.wysiwyg.popover.insertAdjacentElement("beforeend", B), e.wysiwyg.popover.insertAdjacentElement("beforeend", P), e.wysiwyg.popover.insertAdjacentElement("beforeend", H), e.wysiwyg.popover.insertAdjacentElement("beforeend", te), e.wysiwyg.popover.insertAdjacentElement("beforeend", $), e.wysiwyg.popover.insertAdjacentElement("beforeend", ee), e.wysiwyg.popover.insertAdjacentElement("beforeend", J), e.wysiwyg.popover.insertAdjacentElement("beforeend", Y), e.wysiwyg.popover.insertAdjacentElement("beforeend", F), e.wysiwyg.popover.insertAdjacentElement("beforeend", Be), e.wysiwyg.popover.insertAdjacentHTML("beforeend", " x "), e.wysiwyg.popover.insertAdjacentElement("beforeend", Ee), Pe(e, g);
2053
+ }, it(t, g, e), ot(t, g, e), qe(g, e), e.wysiwyg.popover.insertAdjacentElement("beforeend", B), e.wysiwyg.popover.insertAdjacentElement("beforeend", P), e.wysiwyg.popover.insertAdjacentElement("beforeend", H), e.wysiwyg.popover.insertAdjacentElement("beforeend", te), e.wysiwyg.popover.insertAdjacentElement("beforeend", F), e.wysiwyg.popover.insertAdjacentElement("beforeend", ee), e.wysiwyg.popover.insertAdjacentElement("beforeend", J), e.wysiwyg.popover.insertAdjacentElement("beforeend", Y), e.wysiwyg.popover.insertAdjacentElement("beforeend", G), e.wysiwyg.popover.insertAdjacentElement("beforeend", Be), e.wysiwyg.popover.insertAdjacentHTML("beforeend", " x "), e.wysiwyg.popover.insertAdjacentElement("beforeend", Ee), Pe(e, g);
2054
2054
  }
2055
2055
  var Ze = (0, m.a1)(n, "data-type", "link-ref");
2056
2056
  Ze && rn(e, Ze, t);
@@ -2279,8 +2279,8 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
2279
2279
  }), f.classList.add("vditor-menu--disabled");
2280
2280
  else if (R === "link") {
2281
2281
  if (A.toString() === "") {
2282
- var $ = document.createElement("a");
2283
- $.innerText = b.g.ZWSP, A.insertNode($), A.setStart($.firstChild, 1), A.collapse(!0), jt(g, $, A);
2282
+ var F = document.createElement("a");
2283
+ F.innerText = b.g.ZWSP, A.insertNode(F), A.setStart(F.firstChild, 1), A.collapse(!0), jt(g, F, A);
2284
2284
  var te = g.wysiwyg.popover.querySelector("input");
2285
2285
  te.value = "", te.focus(), U = !1;
2286
2286
  } else {
@@ -2296,11 +2296,11 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
2296
2296
  else {
2297
2297
  ee = '<table data-block="0"><thead><tr>';
2298
2298
  var Y = A.toString().split(`
2299
- `), F = Y[0].split(",").length > Y[0].split(" ").length ? "," : " ";
2299
+ `), G = Y[0].split(",").length > Y[0].split(" ").length ? "," : " ";
2300
2300
  Y.forEach(function(Le, Ze) {
2301
- Ze === 0 ? (Le.split(F).forEach(function(je, Re) {
2301
+ Ze === 0 ? (Le.split(G).forEach(function(je, Re) {
2302
2302
  ee += Re === 0 ? "<th>" + je + "<wbr></th>" : "<th>" + je + "</th>";
2303
- }), ee += "</tr></thead>") : (ee += Ze === 1 ? "<tbody><tr>" : "<tr>", Le.split(F).forEach(function(je) {
2303
+ }), ee += "</tr></thead>") : (ee += Ze === 1 ? "<tbody><tr>" : "<tr>", Le.split(G).forEach(function(je) {
2304
2304
  ee += "<td>" + je + "</td>";
2305
2305
  }), ee += "</tr>");
2306
2306
  }), ee += "</tbody></table>", document.execCommand("insertHTML", !1, ee), (0, C.ib)(g.wysiwyg.element, A);
@@ -2439,10 +2439,10 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
2439
2439
  }
2440
2440
  if ($t(r, M, o))
2441
2441
  return !0;
2442
- var $ = (0, m.a1)(O, "data-block", "0"), te = (0, x.S)(O, "SPAN");
2443
- if (o.key === "Enter" && !(0, l.yl)(o) && !o.altKey && !o.shiftKey && $) {
2444
- var J = !1, ee = $.textContent.match(/^\n+/);
2445
- (0, C.im)($, r.sv.element).start <= (ee ? ee[0].length : 0) && (J = !0);
2442
+ var F = (0, m.a1)(O, "data-block", "0"), te = (0, x.S)(O, "SPAN");
2443
+ if (o.key === "Enter" && !(0, l.yl)(o) && !o.altKey && !o.shiftKey && F) {
2444
+ var J = !1, ee = F.textContent.match(/^\n+/);
2445
+ (0, C.im)(F, r.sv.element).start <= (ee ? ee[0].length : 0) && (J = !0);
2446
2446
  var Y = `
2447
2447
  `;
2448
2448
  if (te) {
@@ -2450,15 +2450,15 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
2450
2450
  return te.previousElementSibling.remove(), Ne(r), o.preventDefault(), !0;
2451
2451
  Y += Qn(te);
2452
2452
  }
2453
- return M.insertNode(document.createTextNode(Y)), M.collapse(!1), $ && $.textContent.trim() !== "" && !J ? ae(r) : Ne(r), o.preventDefault(), !0;
2453
+ return M.insertNode(document.createTextNode(Y)), M.collapse(!1), F && F.textContent.trim() !== "" && !J ? ae(r) : Ne(r), o.preventDefault(), !0;
2454
2454
  }
2455
2455
  if (o.key === "Backspace" && !(0, l.yl)(o) && !o.altKey && !o.shiftKey) {
2456
2456
  if (te && ((g = te.previousElementSibling) === null || g === void 0 ? void 0 : g.getAttribute("data-type")) === "newline" && (0, C.im)(te, r.sv.element, M).start === 1 && te.getAttribute("data-type").indexOf("code-block-") === -1)
2457
2457
  return M.setStart(te, 0), M.extractContents(), te.textContent.trim() !== "" ? ae(r) : Ne(r), o.preventDefault(), !0;
2458
- if ($ && (0, C.im)($, r.sv.element, M).start === 0 && $.previousElementSibling) {
2458
+ if (F && (0, C.im)(F, r.sv.element, M).start === 0 && F.previousElementSibling) {
2459
2459
  M.extractContents();
2460
- var F = $.previousElementSibling.lastElementChild;
2461
- return F.getAttribute("data-type") === "newline" && (F.remove(), F = $.previousElementSibling.lastElementChild), F.getAttribute("data-type") !== "newline" && (F.insertAdjacentHTML("afterend", $.innerHTML), $.remove()), $.textContent.trim() === "" || !((f = $.previousElementSibling) === null || f === void 0) && f.querySelector('[data-type="code-block-open-marker"]') ? (F.getAttribute("data-type") !== "newline" && (M.selectNodeContents(F.lastChild), M.collapse(!1)), Ne(r)) : ae(r), o.preventDefault(), !0;
2460
+ var G = F.previousElementSibling.lastElementChild;
2461
+ return G.getAttribute("data-type") === "newline" && (G.remove(), G = F.previousElementSibling.lastElementChild), G.getAttribute("data-type") !== "newline" && (G.insertAdjacentHTML("afterend", F.innerHTML), F.remove()), F.textContent.trim() === "" || !((f = F.previousElementSibling) === null || f === void 0) && f.querySelector('[data-type="code-block-open-marker"]') ? (G.getAttribute("data-type") !== "newline" && (M.selectNodeContents(G.lastChild), M.collapse(!1)), Ne(r)) : ae(r), o.preventDefault(), !0;
2462
2462
  }
2463
2463
  }
2464
2464
  return !1;
@@ -2514,8 +2514,8 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
2514
2514
  if (o.altKey && o.key === "Enter" && !(0, l.yl)(o) && !o.shiftKey) {
2515
2515
  var B = (0, m.lG)(d, "A"), P = (0, m.a1)(d, "data-type", "link-ref"), H = (0, m.a1)(d, "data-type", "footnotes-ref");
2516
2516
  if (B || P || H || R && R.tagName.length === 2) {
2517
- var $ = r.wysiwyg.popover.querySelector("input");
2518
- $.focus(), $.select();
2517
+ var F = r.wysiwyg.popover.querySelector("input");
2518
+ F.focus(), F.select();
2519
2519
  }
2520
2520
  }
2521
2521
  if (Ie(r, o))
@@ -2542,9 +2542,9 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
2542
2542
  ` && d.textContent.charAt(J - 1) !== b.g.ZWSP && ["STRONG", "STRIKE", "S", "I", "EM", "B"].includes(d.parentElement.tagName))
2543
2543
  return d.textContent = d.textContent.substring(0, J - 1) + b.g.ZWSP, a.setStart(d, J), a.collapse(!0), ke(r), o.preventDefault(), !0;
2544
2544
  d.textContent === b.g.ZWSP && a.startOffset === 1 && !d.previousSibling && function(Y) {
2545
- for (var F = Y.startContainer.nextSibling; F && F.textContent === ""; )
2546
- F = F.nextSibling;
2547
- return !(!F || F.nodeType === 3 || F.tagName !== "CODE" && F.getAttribute("data-type") !== "math-inline" && F.getAttribute("data-type") !== "html-entity" && F.getAttribute("data-type") !== "html-inline");
2545
+ for (var G = Y.startContainer.nextSibling; G && G.textContent === ""; )
2546
+ G = G.nextSibling;
2547
+ return !(!G || G.nodeType === 3 || G.tagName !== "CODE" && G.getAttribute("data-type") !== "math-inline" && G.getAttribute("data-type") !== "html-entity" && G.getAttribute("data-type") !== "html-inline");
2548
2548
  }(a) && (d.textContent = ""), v.querySelectorAll("span.vditor-wysiwyg__block[data-type='math-inline']").forEach(function(Y) {
2549
2549
  Y.firstElementChild.style.display = "inline", Y.lastElementChild.style.display = "none";
2550
2550
  }), v.querySelectorAll("span.vditor-wysiwyg__block[data-type='html-entity']").forEach(function(Y) {
@@ -2560,7 +2560,7 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
2560
2560
  var ee = d.nextSibling;
2561
2561
  ee && ee.nodeType !== 3 && ee.getAttribute("data-type") === "math-inline" && a.setStartAfter(ee);
2562
2562
  }
2563
- return !(!v || !G(v, r, o, a) || (o.preventDefault(), 0));
2563
+ return !(!v || !K(v, r, o, a) || (o.preventDefault(), 0));
2564
2564
  }(e, n))
2565
2565
  return;
2566
2566
  } else if (e.currentMode === "ir" && function(r, o) {
@@ -2616,23 +2616,23 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
2616
2616
  if (V("⌘-", o))
2617
2617
  return (H = P.querySelector(".vditor-ir__marker--heading")) && H.textContent.trim().length < 6 && gt(r, H.textContent.trim() + "# "), o.preventDefault(), !0;
2618
2618
  }
2619
- var $ = (0, m.F9)(d);
2619
+ var F = (0, m.F9)(d);
2620
2620
  if (o.key === "Backspace" && !(0, l.yl)(o) && !o.shiftKey && !o.altKey && a.toString() === "") {
2621
2621
  if (An(r, a, o, M))
2622
2622
  return !0;
2623
- if ($ && $.previousElementSibling && $.tagName !== "UL" && $.tagName !== "OL" && ($.previousElementSibling.getAttribute("data-type") === "code-block" || $.previousElementSibling.getAttribute("data-type") === "math-block")) {
2624
- var te = (0, C.im)($, r.ir.element, a).start;
2625
- if (te === 0 || te === 1 && $.innerText.startsWith(b.g.ZWSP))
2626
- return a.selectNodeContents($.previousElementSibling.querySelector(".vditor-ir__marker--pre code")), a.collapse(!1), j(a, r), $.textContent.trim().replace(b.g.ZWSP, "") === "" && ($.remove(), $e(r)), o.preventDefault(), !0;
2623
+ if (F && F.previousElementSibling && F.tagName !== "UL" && F.tagName !== "OL" && (F.previousElementSibling.getAttribute("data-type") === "code-block" || F.previousElementSibling.getAttribute("data-type") === "math-block")) {
2624
+ var te = (0, C.im)(F, r.ir.element, a).start;
2625
+ if (te === 0 || te === 1 && F.innerText.startsWith(b.g.ZWSP))
2626
+ return a.selectNodeContents(F.previousElementSibling.querySelector(".vditor-ir__marker--pre code")), a.collapse(!1), j(a, r), F.textContent.trim().replace(b.g.ZWSP, "") === "" && (F.remove(), $e(r)), o.preventDefault(), !0;
2627
2627
  }
2628
2628
  if (P) {
2629
2629
  var J = P.firstElementChild.textContent.length;
2630
2630
  (0, C.im)(P, r.ir.element).start === J && (a.setStart(P.firstElementChild.firstChild, J - 1), a.collapse(!0), (0, C.Hc)(a));
2631
2631
  }
2632
2632
  }
2633
- return !((o.key !== "ArrowUp" && o.key !== "ArrowDown" || !$ || ($.querySelectorAll(".vditor-ir__node").forEach(function(ee) {
2633
+ return !((o.key !== "ArrowUp" && o.key !== "ArrowDown" || !F || (F.querySelectorAll(".vditor-ir__node").forEach(function(ee) {
2634
2634
  ee.contains(d) || ee.classList.add("vditor-ir__node--hidden");
2635
- }), !Mn(o, $, a))) && (fn(a, o.key), !$ || !G($, r, o, a) || (o.preventDefault(), 0)));
2635
+ }), !Mn(o, F, a))) && (fn(a, o.key), !F || !K(F, r, o, a) || (o.preventDefault(), 0)));
2636
2636
  }(e, n))
2637
2637
  return;
2638
2638
  if (e.options.ctrlEnter && V("⌘Enter", n))
@@ -2867,9 +2867,9 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
2867
2867
  return e.tip.show(a), [2];
2868
2868
  if (d = dn(e), e.upload.range = (0, C.zh)(e), v = function(B, P) {
2869
2869
  B.tip.hide();
2870
- for (var H = [], $ = "", te = "", J = (B.options.lang, B.options, function(F, re) {
2870
+ for (var H = [], F = "", te = "", J = (B.options.lang, B.options, function(G, re) {
2871
2871
  var Ee = P[re], Le = !0;
2872
- Ee.name || ($ += "<li>" + window.VditorI18n.nameEmpty + "</li>", Le = !1), Ee.size > B.options.upload.max && ($ += "<li>" + Ee.name + " " + window.VditorI18n.over + " " + B.options.upload.max / 1024 / 1024 + "M</li>", Le = !1);
2872
+ Ee.name || (F += "<li>" + window.VditorI18n.nameEmpty + "</li>", Le = !1), Ee.size > B.options.upload.max && (F += "<li>" + Ee.name + " " + window.VditorI18n.over + " " + B.options.upload.max / 1024 / 1024 + "M</li>", Le = !1);
2873
2873
  var Ze = Ee.name.lastIndexOf("."), je = Ee.name.substr(Ze), Re = B.options.upload.filename(Ee.name.substr(0, Ze)) + je;
2874
2874
  B.options.upload.accept && (B.options.upload.accept.split(",").some(function(Me) {
2875
2875
  var lt = Me.trim();
@@ -2879,10 +2879,10 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
2879
2879
  } else if (Ee.type.split("/")[0] === lt.split("/")[0])
2880
2880
  return !0;
2881
2881
  return !1;
2882
- }) || ($ += "<li>" + Ee.name + " " + window.VditorI18n.fileTypeError + "</li>", Le = !1)), Le && (H.push(Ee), te += "<li>" + Re + " " + window.VditorI18n.uploading + "</li>");
2882
+ }) || (F += "<li>" + Ee.name + " " + window.VditorI18n.fileTypeError + "</li>", Le = !1)), Le && (H.push(Ee), te += "<li>" + Re + " " + window.VditorI18n.uploading + "</li>");
2883
2883
  }), ee = P.length, Y = 0; Y < ee; Y++)
2884
2884
  J(0, Y);
2885
- return B.tip.show("<ul>" + $ + te + "</ul>"), H;
2885
+ return B.tip.show("<ul>" + F + te + "</ul>"), H;
2886
2886
  }(e, i), v.length === 0)
2887
2887
  return n && (n.value = ""), [2];
2888
2888
  for (g = new FormData(), f = e.options.upload.extraData, M = 0, O = Object.keys(f); M < O.length; M++)
@@ -2898,14 +2898,14 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
2898
2898
  var B = q.responseText;
2899
2899
  e.options.upload.format && (B = e.options.upload.format(t, q.responseText)), function(P, H) {
2900
2900
  dn(H).focus();
2901
- var $ = JSON.parse(P), te = "";
2902
- $.code === 1 && (te = "" + $.msg), $.data.errFiles && $.data.errFiles.length > 0 && (te = "<ul><li>" + te + "</li>", $.data.errFiles.forEach(function(ee) {
2903
- var Y = ee.lastIndexOf("."), F = H.options.upload.filename(ee.substr(0, Y)) + ee.substr(Y);
2904
- te += "<li>" + F + " " + window.VditorI18n.uploadError + "</li>";
2901
+ var F = JSON.parse(P), te = "";
2902
+ F.code === 1 && (te = "" + F.msg), F.data.errFiles && F.data.errFiles.length > 0 && (te = "<ul><li>" + te + "</li>", F.data.errFiles.forEach(function(ee) {
2903
+ var Y = ee.lastIndexOf("."), G = H.options.upload.filename(ee.substr(0, Y)) + ee.substr(Y);
2904
+ te += "<li>" + G + " " + window.VditorI18n.uploadError + "</li>";
2905
2905
  }), te += "</ul>"), te ? H.tip.show(te) : H.tip.hide();
2906
2906
  var J = "";
2907
- Object.keys($.data.succMap).forEach(function(ee) {
2908
- var Y = $.data.succMap[ee], F = ee.lastIndexOf("."), re = ee.substr(F), Ee = H.options.upload.filename(ee.substr(0, F)) + re;
2907
+ Object.keys(F.data.succMap).forEach(function(ee) {
2908
+ var Y = F.data.succMap[ee], G = ee.lastIndexOf("."), re = ee.substr(G), Ee = H.options.upload.filename(ee.substr(0, G)) + re;
2909
2909
  (re = re.toLowerCase()).indexOf(".wav") === 0 || re.indexOf(".mp3") === 0 || re.indexOf(".ogg") === 0 ? H.currentMode === "wysiwyg" ? J += `<div class="vditor-wysiwyg__block" data-type="html-block"
2910
2910
  data-block="0"><pre><code>&lt;audio controls="controls" src="` + Y + '"&gt;&lt;/audio&gt;</code></pre><pre class="vditor-wysiwyg__preview" data-render="1"><audio controls="controls" src="' + Y + `"></audio></pre></div>
2911
2911
  ` : H.currentMode === "ir" ? J += '<audio controls="controls" src="' + Y + `"></audio>
@@ -3492,8 +3492,8 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
3492
3492
  return rr(this, function(P) {
3493
3493
  switch (P.label) {
3494
3494
  case 0:
3495
- return e[e.currentMode].element.getAttribute("contenteditable") !== "true" ? [2] : (t.stopPropagation(), t.preventDefault(), "clipboardData" in t ? (i = t.clipboardData.getData("text/html"), r = t.clipboardData.getData("text/plain"), o = t.clipboardData.files) : (i = t.dataTransfer.getData("text/html"), r = t.dataTransfer.getData("text/plain"), t.dataTransfer.types.includes("Files") && (o = t.dataTransfer.items)), a = {}, d = function(H, $) {
3496
- if (!$)
3495
+ return e[e.currentMode].element.getAttribute("contenteditable") !== "true" ? [2] : (t.stopPropagation(), t.preventDefault(), "clipboardData" in t ? (i = t.clipboardData.getData("text/html"), r = t.clipboardData.getData("text/plain"), o = t.clipboardData.files) : (i = t.dataTransfer.getData("text/html"), r = t.dataTransfer.getData("text/plain"), t.dataTransfer.types.includes("Files") && (o = t.dataTransfer.items)), a = {}, d = function(H, F) {
3496
+ if (!F)
3497
3497
  return ["", Lute.WalkContinue];
3498
3498
  var te = H.TokensStr();
3499
3499
  if (H.__internal_object__.Parent.Type === 34 && te && te.indexOf("file://") === -1 && e.options.upload.linkToImgUrl) {
@@ -3506,13 +3506,13 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
3506
3506
  var Y = JSON.parse(ee);
3507
3507
  if (Y.code !== 0)
3508
3508
  return void e.tip.show(Y.msg);
3509
- var F = Y.data.originalURL;
3509
+ var G = Y.data.originalURL;
3510
3510
  if (e.currentMode === "sv")
3511
3511
  e.sv.element.querySelectorAll(".vditor-sv__marker--link").forEach(function(Ee) {
3512
- Ee.textContent === F && (Ee.textContent = Y.data.url);
3512
+ Ee.textContent === G && (Ee.textContent = Y.data.url);
3513
3513
  });
3514
3514
  else {
3515
- var re = e[e.currentMode].element.querySelector('img[src="' + F + '"]');
3515
+ var re = e[e.currentMode].element.querySelector('img[src="' + G + '"]');
3516
3516
  re.src = Y.data.url, e.currentMode === "ir" && (re.previousElementSibling.previousElementSibling.innerHTML = Y.data.url);
3517
3517
  }
3518
3518
  se(e);
@@ -3523,7 +3523,7 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
3523
3523
  }, J.send(JSON.stringify({ url: te }));
3524
3524
  }
3525
3525
  return e.currentMode === "ir" ? ['<span class="vditor-ir__marker vditor-ir__marker--link">' + Lute.EscapeHTMLStr(te) + "</span>", Lute.WalkContinue] : e.currentMode === "wysiwyg" ? ["", Lute.WalkContinue] : ['<span class="vditor-sv__marker--link">' + Lute.EscapeHTMLStr(te) + "</span>", Lute.WalkContinue];
3526
- }, i.replace(/&amp;/g, "&").replace(/<(|\/)(html|body|meta)[^>]*?>/gi, "").trim() !== '<a href="' + r + '">' + r + "</a>" && i.replace(/&amp;/g, "&").replace(/<(|\/)(html|body|meta)[^>]*?>/gi, "").trim() !== '<!--StartFragment--><a href="' + r + '">' + r + "</a><!--EndFragment-->" || (i = ""), (v = new DOMParser().parseFromString(i, "text/html")).body && (i = v.body.innerHTML), i = Lute.Sanitize(i), e.wysiwyg.getComments(e), g = e[e.currentMode].element.scrollHeight, f = function(H, $, te) {
3526
+ }, i.replace(/&amp;/g, "&").replace(/<(|\/)(html|body|meta)[^>]*?>/gi, "").trim() !== '<a href="' + r + '">' + r + "</a>" && i.replace(/&amp;/g, "&").replace(/<(|\/)(html|body|meta)[^>]*?>/gi, "").trim() !== '<!--StartFragment--><a href="' + r + '">' + r + "</a><!--EndFragment-->" || (i = ""), (v = new DOMParser().parseFromString(i, "text/html")).body && (i = v.body.innerHTML), i = Lute.Sanitize(i), e.wysiwyg.getComments(e), g = e[e.currentMode].element.scrollHeight, f = function(H, F, te) {
3527
3527
  te === void 0 && (te = "sv");
3528
3528
  var J = document.createElement("div");
3529
3529
  J.innerHTML = H;
@@ -3532,8 +3532,8 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
3532
3532
  var Y = J.querySelectorAll("pre");
3533
3533
  if (J.childElementCount === 1 && Y.length === 1 && Y[0].className !== "vditor-wysiwyg" && Y[0].className !== "vditor-sv" && (ee = !0), H.indexOf(`
3534
3534
  <p class="p1">`) === 0 && (ee = !0), J.childElementCount === 1 && J.firstElementChild.tagName === "TABLE" && J.querySelector(".line-number") && J.querySelector(".line-content") && (ee = !0), ee) {
3535
- var F = $ || H;
3536
- return /\n/.test(F) || Y.length === 1 ? te === "wysiwyg" ? '<div class="vditor-wysiwyg__block" data-block="0" data-type="code-block"><pre><code>' + F.replace(/&/g, "&amp;").replace(/</g, "&lt;") + "<wbr></code></pre></div>" : "\n```\n" + F.replace(/&/g, "&amp;").replace(/</g, "&lt;") + "\n```" : te === "wysiwyg" ? "<code>" + F.replace(/&/g, "&amp;").replace(/</g, "&lt;") + "</code><wbr>" : "`" + F + "`";
3535
+ var G = F || H;
3536
+ return /\n/.test(G) || Y.length === 1 ? te === "wysiwyg" ? '<div class="vditor-wysiwyg__block" data-block="0" data-type="code-block"><pre><code>' + G.replace(/&/g, "&amp;").replace(/</g, "&lt;") + "<wbr></code></pre></div>" : "\n```\n" + G.replace(/&/g, "&amp;").replace(/</g, "&lt;") + "\n```" : te === "wysiwyg" ? "<code>" + G.replace(/&/g, "&amp;").replace(/</g, "&lt;") + "</code><wbr>" : "`" + G + "`";
3537
3537
  }
3538
3538
  return !1;
3539
3539
  }(i, r, e.currentMode), (M = e.currentMode === "sv" ? (0, m.a1)(t.target, "data-type", "code-block") : (0, m.lG)(t.target, "CODE")) ? (e.currentMode === "sv" ? document.execCommand("insertHTML", !1, r.replace(/&/g, "&amp;").replace(/</g, "&lt;")) : (O = (0, C.im)(t.target, e[e.currentMode].element), M.parentElement.tagName !== "PRE" && (r += b.g.ZWSP), M.textContent = M.textContent.substring(0, O.start) + r + M.textContent.substring(O.end), (0, C.$j)(O.start + r.length, O.start + r.length, M.parentElement), !((B = M.parentElement) === null || B === void 0) && B.nextElementSibling.classList.contains("vditor-" + e.currentMode + "__preview") && (M.parentElement.nextElementSibling.innerHTML = M.outerHTML, Te(M.parentElement.nextElementSibling, e))), [3, 8]) : [3, 1]);
@@ -4025,7 +4025,7 @@ onclick="this.previousElementSibling.select();document.execCommand('copy');this.
4025
4025
  var i = (/* @__PURE__ */ new Date()).getTime() - n;
4026
4026
  (/* @__PURE__ */ new Date()).getTime() - n > 2600 ? (t.tip.show(window.VditorI18n.performanceTip.replace("${x}", i.toString())), t.preview.element.setAttribute("data-type", "renderPerformance")) : t.preview.element.getAttribute("data-type") === "renderPerformance" && (t.tip.hide(), t.preview.element.removeAttribute("data-type"));
4027
4027
  var r = t.preview.element.querySelector(".vditor-comment--focus");
4028
- r && r.classList.remove("vditor-comment--focus"), (0, Q.O)(t.preview.previewElement, t.options.preview.hljs), (0, pe.s)(t.options.preview.hljs, t.preview.previewElement, t.options.cdn), (0, be.i)(t.preview.previewElement, t.options.cdn, t.options.theme), (0, He.K)(t.preview.previewElement, t.options.cdn, t.options.theme), (0, ne.P)(t.preview.previewElement, t.options.cdn), (0, ve.v)(t.preview.previewElement, t.options.cdn), (0, N.p)(t.preview.previewElement, t.options.cdn, t.options.theme), (0, Ae.P)(t.preview.previewElement, t.options.cdn, t.options.theme), (0, Je.B)(t.preview.previewElement, t.options.cdn), (0, W.Q)(t.preview.previewElement, t.options.cdn), t.options.preview.render.media.enable && (0, mr.Y)(t.preview.previewElement), t.options.customRenders.forEach(function(d) {
4028
+ r && r.classList.remove("vditor-comment--focus"), (0, Q.O)(t.preview.previewElement, t.options.preview.hljs), (0, pe.s)(t.options.preview.hljs, t.preview.previewElement, t.options.cdn), (0, be.i)(t.preview.previewElement, t.options.cdn, t.options.theme), (0, He.K)(t.preview.previewElement, t.options.cdn, t.options.theme), (0, ne.P)(t.preview.previewElement, t.options.cdn), (0, he.v)(t.preview.previewElement, t.options.cdn), (0, N.p)(t.preview.previewElement, t.options.cdn, t.options.theme), (0, Ae.P)(t.preview.previewElement, t.options.cdn, t.options.theme), (0, Je.B)(t.preview.previewElement, t.options.cdn), (0, W.Q)(t.preview.previewElement, t.options.cdn), t.options.preview.render.media.enable && (0, mr.Y)(t.preview.previewElement), t.options.customRenders.forEach(function(d) {
4029
4029
  d.render(t.preview.previewElement, t);
4030
4030
  });
4031
4031
  var o = t.preview.element, a = t.outline.render(t);
@@ -5496,7 +5496,7 @@ window.addEventListener("message", (e) => {
5496
5496
  });
5497
5497
  }, t;
5498
5498
  }(_.default);
5499
- })(), he = he.default;
5499
+ })(), ge = ge.default;
5500
5500
  })());
5501
5501
  })(zn);
5502
5502
  var xi = zn.exports;
@@ -5530,7 +5530,7 @@ const Hi = /* @__PURE__ */ Mi(xi), Ni = (ce) => (Un("data-v-89e377fb"), ce = ce(
5530
5530
  },
5531
5531
  emits: ["on-save", "on-cancel"],
5532
5532
  setup(ce, { emit: ye }) {
5533
- class ge {
5533
+ class ve {
5534
5534
  constructor() {
5535
5535
  We(this, "articleId", "");
5536
5536
  We(this, "userName", "");
@@ -5544,7 +5544,7 @@ const Hi = /* @__PURE__ */ Mi(xi), Ni = (ce) => (Un("data-v-89e377fb"), ce = ce(
5544
5544
  We(this, "notify", 0);
5545
5545
  }
5546
5546
  }
5547
- const ue = ce, Z = ye, he = ue.reply.userName, K = ze("在此处留下你的足迹吧!(支持markdown语法)"), _ = bi(new ge()), b = ze(null), c = ze(""), p = ze(""), s = ze(""), w = ze(""), l = ze("收到回复后通知");
5547
+ const ue = ce, Z = ye, ge = ue.reply.userName, $ = ze("在此处留下你的足迹吧!(支持markdown语法)"), _ = bi(new ve()), b = ze(null), c = ze(""), p = ze(""), s = ze(""), w = ze(""), l = ze("收到回复后通知");
5548
5548
  async function u() {
5549
5549
  var T, y;
5550
5550
  if (!b.value) {
@@ -5553,7 +5553,7 @@ const Hi = /* @__PURE__ */ Mi(xi), Ni = (ce) => (Un("data-v-89e377fb"), ce = ce(
5553
5553
  }
5554
5554
  if (ue.showInput ? (c.value = s.value, p.value = s.value) : (c.value = (T = b.value) == null ? void 0 : T.getHTML(), p.value = (y = b.value) == null ? void 0 : y.getValue()), _.userWebsite && (_.userWebsite.concat("http://") || _.userWebsite.concat("https://") || (_.userWebsite = "https://" + _.userWebsite)), localStorage.setItem("user", JSON.stringify(_)), ue.reply.id != "0") {
5555
5555
  const k = ue.reply.parentId;
5556
- _.parentId = k === "0" ? ue.reply.id : k, _.replyName = ue.reply.userName, K.value = "@" + he + ":";
5556
+ _.parentId = k === "0" ? ue.reply.id : k, _.replyName = ue.reply.userName, $.value = "@" + ge + ":";
5557
5557
  }
5558
5558
  _.content = c.value, _.contentMD = p.value, Z("on-save", _), s.value = "", b.value.setValue("");
5559
5559
  }
@@ -5564,7 +5564,7 @@ const Hi = /* @__PURE__ */ Mi(xi), Ni = (ce) => (Un("data-v-89e377fb"), ce = ce(
5564
5564
  b.value = new Hi(ue.vId, {
5565
5565
  after: () => {
5566
5566
  },
5567
- placeholder: K.value,
5567
+ placeholder: $.value,
5568
5568
  theme: "classic",
5569
5569
  // 使用localStorage缓存
5570
5570
  cache: {
@@ -5687,21 +5687,21 @@ const Hi = /* @__PURE__ */ Mi(xi), Ni = (ce) => (Un("data-v-89e377fb"), ce = ce(
5687
5687
  ]));
5688
5688
  }
5689
5689
  }), Et = (ce, ye) => {
5690
- const ge = ce.__vccOpts || ce;
5690
+ const ve = ce.__vccOpts || ce;
5691
5691
  for (const [ue, Z] of ye)
5692
- ge[ue] = Z;
5693
- return ge;
5692
+ ve[ue] = Z;
5693
+ return ve;
5694
5694
  }, Yi = /* @__PURE__ */ Et(Xi, [["__scopeId", "data-v-89e377fb"]]);
5695
5695
  function eo(ce) {
5696
- const ye = new Date(ce), ge = ye.getFullYear(), ue = ye.getMonth() + 1, Z = ye.getDate(), he = /* @__PURE__ */ new Date(), K = he.getFullYear(), _ = he.getMonth() + 1, b = he.getDate();
5697
- if (K === ge && _ == ue) {
5696
+ const ye = new Date(ce), ve = ye.getFullYear(), ue = ye.getMonth() + 1, Z = ye.getDate(), ge = /* @__PURE__ */ new Date(), $ = ge.getFullYear(), _ = ge.getMonth() + 1, b = ge.getDate();
5697
+ if ($ === ve && _ == ue) {
5698
5698
  const c = b - Z;
5699
5699
  if (c === 0)
5700
5700
  return "今天";
5701
5701
  if (c < 7)
5702
5702
  return c + "天前";
5703
5703
  }
5704
- return K === ge ? `${ue}月${Z}日` : `${ge}年${ue}月${Z}日`;
5704
+ return $ === ve ? `${ue}月${Z}日` : `${ve}年${ue}月${Z}日`;
5705
5705
  }
5706
5706
  const Kn = (ce) => (Un("data-v-5d3da12d"), ce = ce(), Wn(), ce), to = { class: "sus-item__container relative flex flex-row" }, no = { class: "sus-comment-avatar" }, ro = ["src"], io = { class: "sus-item__main w-full" }, oo = { class: "sus-item__user leading-loose" }, ao = ["href"], so = {
5707
5707
  key: 0,
@@ -5747,16 +5747,16 @@ const Kn = (ce) => (Un("data-v-5d3da12d"), ce = ce(), Wn(), ce), to = { class: "
5747
5747
  },
5748
5748
  emits: ["on-reply"],
5749
5749
  setup(ce, { emit: ye }) {
5750
- const ge = ce, ue = ze(), Z = ze(), he = ze(!1), K = ye;
5750
+ const ve = ce, ue = ze(), Z = ze(), ge = ze(!1), $ = ye;
5751
5751
  function _() {
5752
- ue.value.style.display = "block", he.value = !1;
5752
+ ue.value.style.display = "block", ge.value = !1;
5753
5753
  }
5754
5754
  function b() {
5755
- const p = ue.value.clientHeight, s = ge.lineHeight * 5;
5756
- p >= s && (he.value = !0);
5755
+ const p = ue.value.clientHeight, s = ve.lineHeight * 5;
5756
+ p >= s && (ge.value = !0);
5757
5757
  }
5758
5758
  function c() {
5759
- K("on-reply", ge.comment);
5759
+ $("on-reply", ve.comment);
5760
5760
  }
5761
5761
  return Vn(() => {
5762
5762
  b();
@@ -5793,7 +5793,7 @@ const Kn = (ce) => (Un("data-v-5d3da12d"), ce = ce(), Wn(), ce), to = { class: "
5793
5793
  class: "sus-item__content-text",
5794
5794
  innerHTML: p.comment.content
5795
5795
  }, null, 8, fo),
5796
- he.value ? (xe(), Oe("a", {
5796
+ ge.value ? (xe(), Oe("a", {
5797
5797
  key: 0,
5798
5798
  ref_key: "showMoreDom",
5799
5799
  ref: Z,
@@ -5820,49 +5820,49 @@ const Kn = (ce) => (Un("data-v-5d3da12d"), ce = ce(), Wn(), ce), to = { class: "
5820
5820
  },
5821
5821
  emits: ["on-reply"],
5822
5822
  setup(ce, { emit: ye }) {
5823
- const ge = ze(!1), ue = ye;
5824
- function Z(he) {
5825
- ue("on-reply", he);
5823
+ const ve = ze(!1), ue = ye;
5824
+ function Z(ge) {
5825
+ ue("on-reply", ge);
5826
5826
  }
5827
- return (he, K) => {
5827
+ return (ge, $) => {
5828
5828
  var _, b, c;
5829
5829
  return xe(), Oe("div", bo, [
5830
5830
  Li(Ot, {
5831
- comment: he.comment,
5832
- onOnReply: K[0] || (K[0] = (p) => Z(he.comment))
5831
+ comment: ge.comment,
5832
+ onOnReply: $[0] || ($[0] = (p) => Z(ge.comment))
5833
5833
  }, null, 8, ["comment"]),
5834
5834
  ie("div", wo, [
5835
- ((_ = he.comment.child) == null ? void 0 : _.length) > 0 ? (xe(), Xt(Ot, {
5835
+ ((_ = ge.comment.child) == null ? void 0 : _.length) > 0 ? (xe(), Xt(Ot, {
5836
5836
  key: 0,
5837
- onOnReply: K[1] || (K[1] = (p) => Z(he.comment)),
5838
- comment: he.comment.child[0],
5837
+ onOnReply: $[1] || ($[1] = (p) => Z(ge.comment.child[0])),
5838
+ comment: ge.comment.child[0],
5839
5839
  class: "sus-comment__item-child__item"
5840
5840
  }, null, 8, ["comment"])) : Ve("", !0),
5841
- ((b = he.comment.child) == null ? void 0 : b.length) > 1 ? (xe(), Xt(Ot, {
5841
+ ((b = ge.comment.child) == null ? void 0 : b.length) > 1 ? (xe(), Xt(Ot, {
5842
5842
  key: 1,
5843
- onOnReply: K[2] || (K[2] = (p) => Z(he.comment)),
5844
- comment: he.comment.child[1],
5843
+ onOnReply: $[2] || ($[2] = (p) => Z(ge.comment.child[1])),
5844
+ comment: ge.comment.child[1],
5845
5845
  class: "sus-comment__item-child__item"
5846
5846
  }, null, 8, ["comment"])) : Ve("", !0),
5847
- ((c = he.comment.child) == null ? void 0 : c.length) > 2 ? (xe(), Oe("div", Eo, [
5848
- ge.value ? Ve("", !0) : (xe(), Oe("div", ko, [
5847
+ ((c = ge.comment.child) == null ? void 0 : c.length) > 2 ? (xe(), Oe("div", Eo, [
5848
+ ve.value ? Ve("", !0) : (xe(), Oe("div", ko, [
5849
5849
  ie("p", {
5850
5850
  class: "sus-load-more",
5851
- onClick: K[3] || (K[3] = (p) => ge.value = !0)
5851
+ onClick: $[3] || ($[3] = (p) => ve.value = !0)
5852
5852
  }, " 查看更多回复 > ")
5853
5853
  ])),
5854
- ge.value ? (xe(!0), Oe(Ti, { key: 1 }, Ai(he.comment.child.slice(1), (p, s) => (xe(), Xt(Ot, {
5855
- onOnReply: K[4] || (K[4] = (w) => Z(he.comment)),
5854
+ ve.value ? (xe(!0), Oe(Ti, { key: 1 }, Ai(ge.comment.child.slice(2), (p, s) => (xe(), Xt(Ot, {
5855
+ onOnReply: (w) => Z(p),
5856
5856
  key: s,
5857
5857
  comment: p,
5858
5858
  class: "sus-comment__item-child__item"
5859
- }, null, 8, ["comment"]))), 128)) : Ve("", !0)
5859
+ }, null, 8, ["onOnReply", "comment"]))), 128)) : Ve("", !0)
5860
5860
  ])) : Ve("", !0)
5861
5861
  ])
5862
5862
  ]);
5863
5863
  };
5864
5864
  }
5865
- }), _o = /* @__PURE__ */ Et(So, [["__scopeId", "data-v-d4951a86"]]), Lo = { class: "sus-top-item__info flex flex-col mr-1" }, To = { class: "sus-top-item__user whitespace-nowrap" }, Ao = {
5865
+ }), _o = /* @__PURE__ */ Et(So, [["__scopeId", "data-v-bc547da0"]]), Lo = { class: "sus-top-item__info flex flex-col mr-1" }, To = { class: "sus-top-item__user whitespace-nowrap" }, Ao = {
5866
5866
  key: 0,
5867
5867
  class: "sus-top-item__reply whitespace-nowrap"
5868
5868
  }, Co = ["innerHTML"], Mo = /* @__PURE__ */ wt({
@@ -5872,11 +5872,11 @@ const Kn = (ce) => (Un("data-v-5d3da12d"), ce = ce(), Wn(), ce), to = { class: "
5872
5872
  },
5873
5873
  emits: ["go-local"],
5874
5874
  setup(ce, { emit: ye }) {
5875
- const ge = ye;
5875
+ const ve = ye;
5876
5876
  function ue() {
5877
- ge("go-local");
5877
+ ve("go-local");
5878
5878
  }
5879
- return (Z, he) => (xe(), Oe("div", {
5879
+ return (Z, ge) => (xe(), Oe("div", {
5880
5880
  class: "sus-top-item flex items-start p-1.5 overflow-hidden cursor-pointer",
5881
5881
  onClick: ue
5882
5882
  }, [
@@ -5900,11 +5900,11 @@ const Kn = (ce) => (Un("data-v-5d3da12d"), ce = ce(), Wn(), ce), to = { class: "
5900
5900
  },
5901
5901
  emits: ["go-local"],
5902
5902
  setup(ce, { emit: ye }) {
5903
- const ge = ye;
5903
+ const ve = ye;
5904
5904
  function ue() {
5905
- ge("go-local");
5905
+ ve("go-local");
5906
5906
  }
5907
- return (Z, he) => (xe(), Oe("div", {
5907
+ return (Z, ge) => (xe(), Oe("div", {
5908
5908
  class: "sus-top-item p-1.5 cursor-pointer",
5909
5909
  onClick: ue
5910
5910
  }, [