@8wave/ai-elements 0.125.0-beta.10 → 0.125.0-beta.11

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 (97) hide show
  1. package/dist/_chunks/{PkChatbotFilePreview-DuvRnOes.js → PkChatbotFilePreview-fbgRmR9n.js} +58 -55
  2. package/dist/_chunks/PkChatbotFilePreview-fbgRmR9n.js.map +1 -0
  3. package/dist/_chunks/{PkStreamingMarkdown-BM-DSTPr.js → PkStreamingMarkdown-CfdkyZqP.js} +803 -799
  4. package/dist/_chunks/PkStreamingMarkdown-CfdkyZqP.js.map +1 -0
  5. package/dist/_chunks/{PkToolChatFile-DbeOmRPh.js → PkToolChatFile-ClZrtYIz.js} +2 -2
  6. package/dist/_chunks/{PkToolChatFile-DbeOmRPh.js.map → PkToolChatFile-ClZrtYIz.js.map} +1 -1
  7. package/dist/_chunks/{PkToolShareDocument-Buzu27rQ.js → PkToolShareDocument-DLRwzPaL.js} +2 -2
  8. package/dist/_chunks/{PkToolShareDocument-Buzu27rQ.js.map → PkToolShareDocument-DLRwzPaL.js.map} +1 -1
  9. package/dist/_chunks/{PkToolShowArtifact-utxGuLLt.js → PkToolShowArtifact-Dc4YM786.js} +2 -2
  10. package/dist/_chunks/{PkToolShowArtifact-utxGuLLt.js.map → PkToolShowArtifact-Dc4YM786.js.map} +1 -1
  11. package/dist/_chunks/{PkToolShowContactForm-DTtE93D3.js → PkToolShowContactForm-CU1Sv3DA.js} +2 -2
  12. package/dist/_chunks/{PkToolShowContactForm-DTtE93D3.js.map → PkToolShowContactForm-CU1Sv3DA.js.map} +1 -1
  13. package/dist/_chunks/{PkToolShowDiagram-BHd-C_cx.js → PkToolShowDiagram-BDrdT_AB.js} +4 -2
  14. package/dist/_chunks/PkToolShowDiagram-BDrdT_AB.js.map +1 -0
  15. package/dist/_chunks/{PkToolShowForm-I4pKopEI.js → PkToolShowForm-DDgEmFRc.js} +2 -2
  16. package/dist/_chunks/{PkToolShowForm-I4pKopEI.js.map → PkToolShowForm-DDgEmFRc.js.map} +1 -1
  17. package/dist/_chunks/{PkToolShowImageGallery-skV87BlD.js → PkToolShowImageGallery-BCSO1iSG.js} +9 -4
  18. package/dist/_chunks/PkToolShowImageGallery-BCSO1iSG.js.map +1 -0
  19. package/dist/_chunks/{PkToolShowSources-DLmVS3bL.js → PkToolShowSources-DDI2s76O.js} +2 -2
  20. package/dist/_chunks/{PkToolShowSources-DLmVS3bL.js.map → PkToolShowSources-DDI2s76O.js.map} +1 -1
  21. package/dist/_chunks/{useLightbox-BigL4WLe.js → useLightbox-BEEzZ0qT.js} +112 -41
  22. package/dist/_chunks/useLightbox-BEEzZ0qT.js.map +1 -0
  23. package/dist/ai-elements.es.js +2420 -2409
  24. package/dist/ai-elements.es.js.map +1 -1
  25. package/dist-vue/PkChatbot.js +1 -1
  26. package/dist-vue/PkChatbotEmptyState.js +1 -1
  27. package/dist-vue/PkChatbotFilePreview.js +1 -1
  28. package/dist-vue/PkChatbotInput.js +1 -1
  29. package/dist-vue/PkChatbotMessages.js +1 -1
  30. package/dist-vue/PkChatbotSteps.js +1 -1
  31. package/dist-vue/PkChatbotViewChat.js +1 -1
  32. package/dist-vue/_chunks/{PkChatbot-CLOfTLQy.js → PkChatbot-D4SNWH_2.js} +3 -3
  33. package/dist-vue/_chunks/{PkChatbot-CLOfTLQy.js.map → PkChatbot-D4SNWH_2.js.map} +1 -1
  34. package/dist-vue/_chunks/{PkChatbotEmptyState-C9aUiynZ.js → PkChatbotEmptyState-BnCCmm10.js} +2 -2
  35. package/dist-vue/_chunks/{PkChatbotEmptyState-C9aUiynZ.js.map → PkChatbotEmptyState-BnCCmm10.js.map} +1 -1
  36. package/dist-vue/_chunks/PkChatbotFilePreview-BpVM850N.js +291 -0
  37. package/dist-vue/_chunks/PkChatbotFilePreview-BpVM850N.js.map +1 -0
  38. package/dist-vue/_chunks/{PkChatbotInput-Bs8nn-Jz.js → PkChatbotInput-COjn57UP.js} +3 -3
  39. package/dist-vue/_chunks/{PkChatbotInput-Bs8nn-Jz.js.map → PkChatbotInput-COjn57UP.js.map} +1 -1
  40. package/dist-vue/_chunks/{PkChatbotMessages-BxkCGmqV.js → PkChatbotMessages-D-m0cOqM.js} +282 -279
  41. package/dist-vue/_chunks/PkChatbotMessages-D-m0cOqM.js.map +1 -0
  42. package/dist-vue/_chunks/{PkChatbotSteps-MTSA_RrY.js → PkChatbotSteps-BWKjM1Z4.js} +2 -2
  43. package/dist-vue/_chunks/{PkChatbotSteps-MTSA_RrY.js.map → PkChatbotSteps-BWKjM1Z4.js.map} +1 -1
  44. package/dist-vue/_chunks/{PkChatbotViewChat-BwXOt2WW.js → PkChatbotViewChat-DIh2wVa_.js} +5 -5
  45. package/dist-vue/_chunks/{PkChatbotViewChat-BwXOt2WW.js.map → PkChatbotViewChat-DIh2wVa_.js.map} +1 -1
  46. package/dist-vue/_chunks/{PkStreamingMarkdown-DlcTV5je.js → PkStreamingMarkdown-BZPAHAni.js} +760 -757
  47. package/dist-vue/_chunks/PkStreamingMarkdown-BZPAHAni.js.map +1 -0
  48. package/dist-vue/_chunks/{PkSvgViewer-DBYr0CUi.js → PkSvgViewer-DmkElalq.js} +4 -2
  49. package/dist-vue/_chunks/PkSvgViewer-DmkElalq.js.map +1 -0
  50. package/dist-vue/_chunks/{PkToolChatFile-HWGjtuaT.js → PkToolChatFile-BGH2cQuM.js} +2 -2
  51. package/dist-vue/_chunks/{PkToolChatFile-HWGjtuaT.js.map → PkToolChatFile-BGH2cQuM.js.map} +1 -1
  52. package/dist-vue/_chunks/{PkToolShareDocument-CsS5OTDj.js → PkToolShareDocument-BIZkgcJ3.js} +2 -2
  53. package/dist-vue/_chunks/{PkToolShareDocument-CsS5OTDj.js.map → PkToolShareDocument-BIZkgcJ3.js.map} +1 -1
  54. package/dist-vue/_chunks/{PkToolShowArtifact-C8OIF_sy.js → PkToolShowArtifact-DCe8yizN.js} +2 -2
  55. package/dist-vue/_chunks/{PkToolShowArtifact-C8OIF_sy.js.map → PkToolShowArtifact-DCe8yizN.js.map} +1 -1
  56. package/dist-vue/_chunks/{PkToolShowContactForm-K6Z5MUXk.js → PkToolShowContactForm-4bO4fM5O.js} +2 -2
  57. package/dist-vue/_chunks/{PkToolShowContactForm-K6Z5MUXk.js.map → PkToolShowContactForm-4bO4fM5O.js.map} +1 -1
  58. package/dist-vue/_chunks/{PkToolShowDiagram-DrlGh_v6.js → PkToolShowDiagram-DNRUCCt8.js} +2 -2
  59. package/dist-vue/_chunks/{PkToolShowDiagram-DrlGh_v6.js.map → PkToolShowDiagram-DNRUCCt8.js.map} +1 -1
  60. package/dist-vue/_chunks/{PkToolShowForm-DzsXJfOl.js → PkToolShowForm-CQwXQwgt.js} +2 -2
  61. package/dist-vue/_chunks/{PkToolShowForm-DzsXJfOl.js.map → PkToolShowForm-CQwXQwgt.js.map} +1 -1
  62. package/dist-vue/_chunks/{PkToolShowImageGallery-sCyrPOIT.js → PkToolShowImageGallery-CgDng1Gr.js} +17 -12
  63. package/dist-vue/_chunks/PkToolShowImageGallery-CgDng1Gr.js.map +1 -0
  64. package/dist-vue/_chunks/{PkToolShowLocation-DAQEuCuQ.js → PkToolShowLocation-DCPaDtBI.js} +3 -3
  65. package/dist-vue/_chunks/PkToolShowLocation-DCPaDtBI.js.map +1 -0
  66. package/dist-vue/_chunks/{PkToolShowProductList-DPDDeVu4.js → PkToolShowProductList-DyPyz1pU.js} +2 -2
  67. package/dist-vue/_chunks/{PkToolShowProductList-DPDDeVu4.js.map → PkToolShowProductList-DyPyz1pU.js.map} +1 -1
  68. package/dist-vue/_chunks/{PkToolShowSources-D4zjssdh.js → PkToolShowSources-C3JjevRj.js} +2 -2
  69. package/dist-vue/_chunks/{PkToolShowSources-D4zjssdh.js.map → PkToolShowSources-C3JjevRj.js.map} +1 -1
  70. package/dist-vue/_chunks/{PkToolShowVideo-C77DAqoZ.js → PkToolShowVideo--qiiAK7R.js} +2 -2
  71. package/dist-vue/_chunks/{PkToolShowVideo-C77DAqoZ.js.map → PkToolShowVideo--qiiAK7R.js.map} +1 -1
  72. package/dist-vue/_chunks/{PkToolShowWebPages-D_tqGI6o.js → PkToolShowWebPages-Cw9FPQuL.js} +2 -2
  73. package/dist-vue/_chunks/{PkToolShowWebPages-D_tqGI6o.js.map → PkToolShowWebPages-Cw9FPQuL.js.map} +1 -1
  74. package/dist-vue/_chunks/useLightbox-gSzoBgNv.js +190 -0
  75. package/dist-vue/_chunks/useLightbox-gSzoBgNv.js.map +1 -0
  76. package/dist-vue/composables.js +8 -0
  77. package/dist-vue/composables.js.map +1 -1
  78. package/dist-vue/index.js +2899 -2898
  79. package/dist-vue/index.js.map +1 -1
  80. package/dist-vue/locales.js +10 -0
  81. package/dist-vue/packages/components/src/composables/useLightbox.d.ts +33 -3
  82. package/dist-vue/style.css +1 -1
  83. package/package.json +1 -1
  84. package/dist/_chunks/PkChatbotFilePreview-DuvRnOes.js.map +0 -1
  85. package/dist/_chunks/PkStreamingMarkdown-BM-DSTPr.js.map +0 -1
  86. package/dist/_chunks/PkToolShowDiagram-BHd-C_cx.js.map +0 -1
  87. package/dist/_chunks/PkToolShowImageGallery-skV87BlD.js.map +0 -1
  88. package/dist/_chunks/useLightbox-BigL4WLe.js.map +0 -1
  89. package/dist-vue/_chunks/PkChatbotFilePreview-KxVpL0UT.js +0 -391
  90. package/dist-vue/_chunks/PkChatbotFilePreview-KxVpL0UT.js.map +0 -1
  91. package/dist-vue/_chunks/PkChatbotMessages-BxkCGmqV.js.map +0 -1
  92. package/dist-vue/_chunks/PkStreamingMarkdown-DlcTV5je.js.map +0 -1
  93. package/dist-vue/_chunks/PkSvgViewer-DBYr0CUi.js.map +0 -1
  94. package/dist-vue/_chunks/PkToolShowImageGallery-sCyrPOIT.js.map +0 -1
  95. package/dist-vue/_chunks/PkToolShowLocation-DAQEuCuQ.js.map +0 -1
  96. package/dist-vue/_chunks/cdn-css-C3_zuSx6.js +0 -15
  97. package/dist-vue/_chunks/cdn-css-C3_zuSx6.js.map +0 -1
@@ -1,45 +1,46 @@
1
- import { F as e, I as t, L as n, Q as r, X as i, bt as a, h as o, k as s, ot as c, w as l, y as u, z as d } from "./vue.runtime.esm-bundler-C2U5uTqB.js";
2
- import { r as f } from "./vue-i18n-POtLvOl1.js";
3
- import { n as p, t as ee } from "./cdn-css-C3_zuSx6.js";
1
+ import { F as e, I as t, L as n, Q as r, X as i, bt as a, h as o, k as s, ot as c, w as l, wt as u, y as d, z as f } from "./vue.runtime.esm-bundler-C2U5uTqB.js";
2
+ import { r as p } from "./vue-i18n-POtLvOl1.js";
3
+ import { n as ee, t as m } from "./cdn-css-C3_zuSx6.js";
4
4
  import "./src-JJyCGvqH.js";
5
- import { _ as m } from "./utils-CbhqxYyx.js";
6
- import { n as h } from "./url-validation-CJV9pp4v.js";
7
- import { w as te } from "./dist-B3-I_01H.js";
8
- import { n as ne } from "./useShortUrlResolver-C30QRypC.js";
9
- import { t as re } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
5
+ import { _ as h } from "./utils-CbhqxYyx.js";
6
+ import { n as te } from "./url-validation-CJV9pp4v.js";
7
+ import { w as ne } from "./dist-B3-I_01H.js";
8
+ import { n as re } from "./useShortUrlResolver-C30QRypC.js";
9
+ import { t as g } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
10
10
  import { n as ie } from "./chatImagePolicy-BfgdFbm_.js";
11
+ import { i as ae } from "./useLightbox-BEEzZ0qT.js";
11
12
  // ../../packages/utils/src/citations.ts
12
- var ae = /[ \t]*\uE200[^\uE201]*\uE201/g, oe = /(?<![ \t])[ \t]*(?:cite|filecite|videocite|audiocite|imagecite|screenshot)(?:turn\d+[a-z]+\d+)+/gi, g = /[\uE200-\uE20F]/g;
13
- function se(e) {
14
- return e && e.replace(ae, "").replace(oe, "").replace(g, "");
13
+ var _ = /[ \t]*\uE200[^\uE201]*\uE201/g, oe = /(?<![ \t])[ \t]*(?:cite|filecite|videocite|audiocite|imagecite|screenshot)(?:turn\d+[a-z]+\d+)+/gi, se = /[\uE200-\uE20F]/g;
14
+ function ce(e) {
15
+ return e && e.replace(_, "").replace(oe, "").replace(se, "");
15
16
  }
16
17
  // ../../node_modules/.pnpm/remend@1.4.0/node_modules/remend/dist/index.js
17
- var ce = Object.defineProperty, le = Object.defineProperties, _ = Object.getOwnPropertyDescriptors, v = Object.getOwnPropertySymbols, ue = Object.prototype.hasOwnProperty, de = Object.prototype.propertyIsEnumerable, fe = (e, t, n) => t in e ? ce(e, t, {
18
+ var v = Object.defineProperty, le = Object.defineProperties, ue = Object.getOwnPropertyDescriptors, de = Object.getOwnPropertySymbols, fe = Object.prototype.hasOwnProperty, pe = Object.prototype.propertyIsEnumerable, me = (e, t, n) => t in e ? v(e, t, {
18
19
  enumerable: !0,
19
20
  configurable: !0,
20
21
  writable: !0,
21
22
  value: n
22
- }) : e[t] = n, pe = (e, t) => {
23
- for (var n in t ||= {}) ue.call(t, n) && fe(e, n, t[n]);
24
- if (v) for (var n of v(t)) de.call(t, n) && fe(e, n, t[n]);
23
+ }) : e[t] = n, he = (e, t) => {
24
+ for (var n in t ||= {}) fe.call(t, n) && me(e, n, t[n]);
25
+ if (de) for (var n of de(t)) pe.call(t, n) && me(e, n, t[n]);
25
26
  return e;
26
- }, y = (e, t) => le(e, _(t)), b = {
27
+ }, ge = (e, t) => le(e, ue(t)), y = {
27
28
  PROSE: 0,
28
29
  FENCE_MARKER: 1,
29
30
  FENCE_INFO: 2,
30
31
  FENCE_BODY: 3,
31
32
  CODE_SPAN: 4,
32
33
  CODE_SPAN_OPEN: 5
33
- }, me = /^(`{3,}|~{3,})(.*)$/, x = (e) => e !== void 0 && e >= "0" && e <= "9", he = (e, t) => {
34
+ }, _e = /^(`{3,}|~{3,})(.*)$/, b = (e) => e !== void 0 && e >= "0" && e <= "9", ve = (e, t) => {
34
35
  let n = t;
35
36
  if (e[n] === "-" || e[n] === "*" || e[n] === "+") n += 1;
36
37
  else {
37
- for (; x(e[n]) && n - t < 9;) n += 1;
38
+ for (; b(e[n]) && n - t < 9;) n += 1;
38
39
  if (n === t || e[n] !== "." && e[n] !== ")") return -1;
39
40
  n += 1;
40
41
  }
41
42
  return e[n] === " " ? n + 1 : -1;
42
- }, ge = (e, t, n) => {
43
+ }, ye = (e, t, n) => {
43
44
  let r = 0, i = t, a = !1, o = t;
44
45
  for (;;) {
45
46
  for (; o < n && e[o] === " ";) o += 1;
@@ -47,7 +48,7 @@ var ce = Object.defineProperty, le = Object.defineProperties, _ = Object.getOwnP
47
48
  r += 1, o += e[o + 1] === " " ? 2 : 1, i = o, a = !1;
48
49
  continue;
49
50
  }
50
- let t = o < n ? he(e, o) : -1;
51
+ let t = o < n ? ve(e, o) : -1;
51
52
  if (t === -1) return {
52
53
  contentStart: o,
53
54
  listIndent: a ? o - i : 0,
@@ -55,7 +56,7 @@ var ce = Object.defineProperty, le = Object.defineProperties, _ = Object.getOwnP
55
56
  };
56
57
  o = t, a = !0;
57
58
  }
58
- }, _e = (e, t, n, r) => {
59
+ }, be = (e, t, n, r) => {
59
60
  let i = t;
60
61
  for (let t = 0; t < r; t += 1) {
61
62
  for (; i < n && e[i] === " ";) i += 1;
@@ -63,10 +64,10 @@ var ce = Object.defineProperty, le = Object.defineProperties, _ = Object.getOwnP
63
64
  i += 1, e[i] === " " && (i += 1);
64
65
  }
65
66
  return i;
66
- }, ve = (e, t, n, r, i) => {
67
+ }, x = (e, t, n, r, i) => {
67
68
  let a = t + r;
68
- e.fill(b.FENCE_MARKER, a, a + i), e.fill(b.FENCE_INFO, a + i, Math.min(n + 1, e.length));
69
- }, ye = (e, t, n, r) => {
69
+ e.fill(y.FENCE_MARKER, a, a + i), e.fill(y.FENCE_INFO, a + i, Math.min(n + 1, e.length));
70
+ }, xe = (e, t, n, r) => {
70
71
  let i = t;
71
72
  for (; i < n && e[i] === " ";) i += 1;
72
73
  let a = 0;
@@ -77,62 +78,62 @@ var ce = Object.defineProperty, le = Object.defineProperties, _ = Object.getOwnP
77
78
  i += 1;
78
79
  }
79
80
  return !0;
80
- }, S = (e, t, n, r) => {
81
- let i = r > n && e[r - 1] === "\r" ? r - 1 : r, a = ge(e, n, i), o = e.slice(a.contentStart, i).match(me);
81
+ }, Se = (e, t, n, r) => {
82
+ let i = r > n && e[r - 1] === "\r" ? r - 1 : r, a = ye(e, n, i), o = e.slice(a.contentStart, i).match(_e);
82
83
  if (!o) return null;
83
84
  let [, s, c] = o, l = s[0];
84
- return l === "`" && c.includes("`") ? null : (ve(t, n, r, a.contentStart - n, s.length), {
85
+ return l === "`" && c.includes("`") ? null : (x(t, n, r, a.contentStart - n, s.length), {
85
86
  char: l,
86
87
  length: s.length,
87
88
  listIndent: a.listIndent,
88
89
  quoteDepth: a.quoteDepth
89
90
  });
90
- }, be = (e, t, n, r) => {
91
- let i = _e(e, t, n, r.quoteDepth);
91
+ }, Ce = (e, t, n, r) => {
92
+ let i = be(e, t, n, r.quoteDepth);
92
93
  if (i === -1 || r.listIndent === 0) return i;
93
94
  let a = i;
94
95
  for (; a < n && e[a] === " ";) a += 1;
95
96
  return a === n || e[a] === "\r" && a + 1 === n || a - i >= r.listIndent ? i : -1;
96
- }, xe = (e, t) => {
97
+ }, we = (e, t) => {
97
98
  let n = e.length, r = null, i = 0;
98
99
  for (; i < n;) {
99
100
  let a = e.indexOf("\n", i);
100
101
  a === -1 && (a = n);
101
- let o = r ? be(e, i, a, r) : -1;
102
- r && o === -1 && (r = null), r ? ye(e, o, a, r) ? (t.fill(b.FENCE_MARKER, i, a), r = null) : t.fill(b.FENCE_BODY, i, Math.min(a + 1, n)) : r = S(e, t, i, a), i = a + 1;
102
+ let o = r ? Ce(e, i, a, r) : -1;
103
+ r && o === -1 && (r = null), r ? xe(e, o, a, r) ? (t.fill(y.FENCE_MARKER, i, a), r = null) : t.fill(y.FENCE_BODY, i, Math.min(a + 1, n)) : r = Se(e, t, i, a), i = a + 1;
103
104
  }
104
105
  return r;
105
- }, Se = (e, t) => {
106
+ }, Te = (e, t) => {
106
107
  let n = t + 1;
107
108
  for (; n < e.length && e[n] === "`";) n += 1;
108
109
  return n;
109
- }, Ce = (e, t) => {
110
+ }, Ee = (e, t) => {
110
111
  let n = t + 1;
111
112
  for (; n < e.length && (e[n] === " " || e[n] === " " || e[n] === "\r");) n += 1;
112
113
  return n < e.length && e[n] === "\n";
113
- }, we = (e, t, n) => {
114
+ }, De = (e, t, n) => {
114
115
  let r = n;
115
116
  for (;;) {
116
117
  let n = e.indexOf("`", r);
117
118
  if (n === -1) return -1;
118
- let i = n > r && e[n - 1] === "\\" && t[n - 1] === b.PROSE;
119
- if (t[n] === b.PROSE && !i) return n;
119
+ let i = n > r && e[n - 1] === "\\" && t[n - 1] === y.PROSE;
120
+ if (t[n] === y.PROSE && !i) return n;
120
121
  r = n + 1;
121
122
  }
122
- }, Te = (e, t) => {
123
+ }, Oe = (e, t) => {
123
124
  let n = e.length, r = -1, i = 0, a = 0;
124
125
  for (; a < n;) {
125
126
  if (r < 0) {
126
- if (a = we(e, t, a), a === -1) break;
127
- let n = Se(e, a);
127
+ if (a = De(e, t, a), a === -1) break;
128
+ let n = Te(e, a);
128
129
  r = a, i = n - a, a = n;
129
130
  continue;
130
131
  }
131
- if (t[a] !== b.PROSE) {
132
- t.fill(b.CODE_SPAN_OPEN, r, a), r = -1, a += 1;
132
+ if (t[a] !== y.PROSE) {
133
+ t.fill(y.CODE_SPAN_OPEN, r, a), r = -1, a += 1;
133
134
  continue;
134
135
  }
135
- if (e[a] === "\n" && Ce(e, a)) {
136
+ if (e[a] === "\n" && Ee(e, a)) {
136
137
  r = -1, a += 1;
137
138
  continue;
138
139
  }
@@ -140,79 +141,79 @@ var ce = Object.defineProperty, le = Object.defineProperties, _ = Object.getOwnP
140
141
  a += 1;
141
142
  continue;
142
143
  }
143
- let n = Se(e, a);
144
- n - a === i && (t.fill(b.CODE_SPAN, r, n), r = -1), a = n;
144
+ let n = Te(e, a);
145
+ n - a === i && (t.fill(y.CODE_SPAN, r, n), r = -1), a = n;
145
146
  }
146
- return r >= 0 ? (t.fill(b.CODE_SPAN_OPEN, r, n), {
147
+ return r >= 0 ? (t.fill(y.CODE_SPAN_OPEN, r, n), {
147
148
  start: r,
148
149
  runLength: i
149
150
  }) : null;
150
- }, Ee = (e) => {
151
+ }, ke = (e) => {
151
152
  let t = new Uint8Array(e.length);
152
153
  return {
153
154
  text: e,
154
155
  regions: t,
155
- openFence: xe(e, t),
156
- openSpan: Te(e, t),
156
+ openFence: we(e, t),
157
+ openSpan: Oe(e, t),
157
158
  mathMask: null,
158
159
  linkUrlMask: null,
159
160
  htmlTagMask: null
160
161
  };
161
- }, De = null, Oe = null, C = (e) => {
162
- if (Oe !== null && e === De) return Oe;
163
- let t = Ee(e);
164
- return De = e, Oe = t, t;
165
- }, ke = () => {
166
- De = null, Oe = null;
167
- }, w = (e, t) => t >= e.regions.length ? e.openFence !== null || e.openSpan !== null : t < 0 ? !1 : e.regions[t] !== b.PROSE, Ae = (e, t) => e.regions[t] === b.CODE_SPAN, T = (e, t) => {
162
+ }, S = null, Ae = null, C = (e) => {
163
+ if (Ae !== null && e === S) return Ae;
164
+ let t = ke(e);
165
+ return S = e, Ae = t, t;
166
+ }, je = () => {
167
+ S = null, Ae = null;
168
+ }, w = (e, t) => t >= e.regions.length ? e.openFence !== null || e.openSpan !== null : t < 0 ? !1 : e.regions[t] !== y.PROSE, Me = (e, t) => e.regions[t] === y.CODE_SPAN, Ne = (e, t) => {
168
169
  let n = C(e), r = t + t, i = 0;
169
- for (let t = e.indexOf(r); t !== -1; t = e.indexOf(r, t)) n.regions[t] === b.PROSE ? (i += 1, t += 2) : t += 1;
170
+ for (let t = e.indexOf(r); t !== -1; t = e.indexOf(r, t)) n.regions[t] === y.PROSE ? (i += 1, t += 2) : t += 1;
170
171
  return i;
171
- }, je = /* @__PURE__ */ new Uint8Array(), Me = (e) => e === "inlineLatex" || e === "blockLatex", Ne = (e, t) => t === "[" && e === "none" ? "blockLatex" : t === "]" && e === "blockLatex" ? "none" : t === "(" && e === "none" ? "inlineLatex" : t === ")" && e === "inlineLatex" ? "none" : null, Pe = (e, t) => t ? e === "blockDollar" ? "none" : "blockDollar" : e === "blockDollar" ? e : e === "inlineDollar" ? "none" : "inlineDollar", Fe = (e) => e.includes("$") || e.includes("\\(") || e.includes("\\["), Ie = (e, t, n) => {
172
+ }, T = /* @__PURE__ */ new Uint8Array(), Pe = (e) => e === "inlineLatex" || e === "blockLatex", Fe = (e, t) => t === "[" && e === "none" ? "blockLatex" : t === "]" && e === "blockLatex" ? "none" : t === "(" && e === "none" ? "inlineLatex" : t === ")" && e === "inlineLatex" ? "none" : null, Ie = (e, t) => t ? e === "blockDollar" ? "none" : "blockDollar" : e === "blockDollar" ? e : e === "inlineDollar" ? "none" : "inlineDollar", Le = (e) => e.includes("$") || e.includes("\\(") || e.includes("\\["), E = (e, t, n) => {
172
173
  let r = e[t + 1];
173
174
  if (e[t] === "\\") {
174
175
  if (r === "$") return {
175
176
  context: n,
176
177
  length: 2
177
178
  };
178
- let e = Ne(n, r);
179
+ let e = Fe(n, r);
179
180
  return e === null ? null : {
180
181
  context: e,
181
182
  length: 2
182
183
  };
183
184
  }
184
- if (e[t] === "$" && !Me(n)) {
185
+ if (e[t] === "$" && !Pe(n)) {
185
186
  let e = r === "$";
186
187
  return {
187
- context: Pe(n, e),
188
+ context: Ie(n, e),
188
189
  length: e ? 2 : 1
189
190
  };
190
191
  }
191
192
  return null;
192
- }, Le = (e) => {
193
+ }, Re = (e) => {
193
194
  let { text: t, regions: n } = e, r = t.length, i = new Uint8Array(r), a = "none", o = 0;
194
195
  for (; o < r;) {
195
196
  i[o] = a === "none" ? 0 : 1;
196
- let e = n[o] === b.PROSE ? Ie(t, o, a) : null;
197
+ let e = n[o] === y.PROSE ? E(t, o, a) : null;
197
198
  e === null ? o += 1 : (a = e.context, e.length === 2 && (i[o + 1] = a === "none" ? 0 : 1), o += e.length);
198
199
  }
199
200
  return i;
200
- }, E = (e, t) => t < 0 || t >= e.text.length ? !1 : (e.mathMask === null && (e.mathMask = Fe(e.text) ? Le(e) : je), e.mathMask[t] === 1), Re = (e, t, n, r) => {
201
+ }, D = (e, t) => t < 0 || t >= e.text.length ? !1 : (e.mathMask === null && (e.mathMask = Le(e.text) ? Re(e) : T), e.mathMask[t] === 1), ze = (e, t, n, r) => {
201
202
  let { text: i, regions: a } = e, o = new Uint8Array(n - t), s = 0;
202
- for (let e = n - 1; e >= t; --e) i[e] === ")" && a[e] === b.PROSE && (s = 1), o[e - t] = s;
203
+ for (let e = n - 1; e >= t; --e) i[e] === ")" && a[e] === y.PROSE && (s = 1), o[e - t] = s;
203
204
  let c = !1;
204
- for (let e = t; e < n; e += 1) c && o[e - t] === 1 && (r[e] = 1), a[e] === b.PROSE && (i[e] === ")" ? c = !1 : i[e] === "(" && (c = e > 0 && i[e - 1] === "]"));
205
- }, ze = (e) => {
205
+ for (let e = t; e < n; e += 1) c && o[e - t] === 1 && (r[e] = 1), a[e] === y.PROSE && (i[e] === ")" ? c = !1 : i[e] === "(" && (c = e > 0 && i[e - 1] === "]"));
206
+ }, Be = (e) => {
206
207
  let { text: t } = e, n = t.length, r = new Uint8Array(n), i = 0;
207
208
  for (; i < n;) {
208
209
  let a = t.indexOf("\n", i);
209
- a === -1 && (a = n), Re(e, i, a, r), i = a + 1;
210
+ a === -1 && (a = n), ze(e, i, a, r), i = a + 1;
210
211
  }
211
212
  return r;
212
- }, Be = (e, t) => t < 0 || t >= e.text.length ? !1 : (e.linkUrlMask === null && (e.linkUrlMask = e.text.includes("](") ? ze(e) : je), e.linkUrlMask[t] === 1), Ve = (e) => {
213
+ }, Ve = (e, t) => t < 0 || t >= e.text.length ? !1 : (e.linkUrlMask === null && (e.linkUrlMask = e.text.includes("](") ? Be(e) : T), e.linkUrlMask[t] === 1), He = (e) => {
213
214
  let { text: t, regions: n } = e, r = t.length, i = new Uint8Array(r), a = !1;
214
215
  for (let e = 0; e < r; e += 1) if (t[e] === "\n") a = !1;
215
- else if (i[e] = +!!a, n[e] === b.PROSE) {
216
+ else if (i[e] = +!!a, n[e] === y.PROSE) {
216
217
  if (t[e] === ">") a = !1;
217
218
  else if (t[e] === "<") {
218
219
  let n = t[e + 1];
@@ -220,56 +221,56 @@ var ce = Object.defineProperty, le = Object.defineProperties, _ = Object.getOwnP
220
221
  }
221
222
  }
222
223
  return i;
223
- }, He = (e, t) => t < 0 || t >= e.text.length ? !1 : (e.htmlTagMask === null && (e.htmlTagMask = e.text.includes("<") ? Ve(e) : je), e.htmlTagMask[t] === 1), D = (e, t) => w(C(e), t), O = (e, t) => Ae(C(e), t), Ue = /^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm, We = (e) => !e || typeof e != "string" || !e.includes(">") ? e : e.replace(Ue, (t, n, r, i) => D(e, i) ? t : `${n}\\>${r}`), k = (e, { delimiter: t, markerLength: n, regex: r }) => {
224
+ }, Ue = (e, t) => t < 0 || t >= e.text.length ? !1 : (e.htmlTagMask === null && (e.htmlTagMask = e.text.includes("<") ? He(e) : T), e.htmlTagMask[t] === 1), O = (e, t) => w(C(e), t), k = (e, t) => Me(C(e), t), We = /^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm, Ge = (e) => !e || typeof e != "string" || !e.includes(">") ? e : e.replace(We, (t, n, r, i) => O(e, i) ? t : `${n}\\>${r}`), A = (e, { delimiter: t, markerLength: n, regex: r }) => {
224
225
  let i = e.lastIndexOf(t, e.length - 2), a = i === -1 ? e.length - 1 : i;
225
226
  return e.slice(Math.max(0, a - n + 1)).match(r);
226
- }, Ge = {
227
+ }, Ke = {
227
228
  delimiter: "*",
228
229
  markerLength: 2,
229
230
  regex: /(\*\*)([^*]*\*?)$/
230
- }, Ke = {
231
+ }, qe = {
231
232
  delimiter: "_",
232
233
  markerLength: 2,
233
234
  regex: /(__)([^_]*?)$/
234
- }, qe = {
235
+ }, Je = {
235
236
  delimiter: "*",
236
237
  markerLength: 3,
237
238
  regex: /(\*\*\*)([^*]*?)$/
238
- }, Je = {
239
+ }, Ye = {
239
240
  delimiter: "*",
240
241
  markerLength: 1,
241
242
  regex: /(\*)([^*]*?)$/
242
- }, Ye = {
243
+ }, Xe = {
243
244
  delimiter: "_",
244
245
  markerLength: 1,
245
246
  regex: /(_)([^_]*?)$/
246
- }, Xe = {
247
+ }, Ze = {
247
248
  delimiter: "~",
248
249
  markerLength: 2,
249
250
  regex: /(~~)([^~]*?)$/
250
- }, Ze = {
251
+ }, Qe = {
251
252
  delimiter: "_",
252
253
  markerLength: 2,
253
254
  regex: /(__)([^_]+)_$/
254
- }, Qe = {
255
+ }, $e = {
255
256
  delimiter: "~",
256
257
  markerLength: 2,
257
258
  regex: /(~~)([^~]+)~$/
258
- }, A = /^[\s_~*`]*$/, $e = /^[\s]*[-*+][\s]+$/, et = /[\p{L}\p{N}_]/u, tt = /^\*{4,}$/, j = (e) => {
259
+ }, j = /^[\s_~*`]*$/, et = /^[\s]*[-*+][\s]+$/, tt = /[\p{L}\p{N}_]/u, nt = /^\*{4,}$/, M = (e) => {
259
260
  if (!e) return !1;
260
261
  let t = e.charCodeAt(0);
261
- return t >= 48 && t <= 57 || t >= 65 && t <= 90 || t >= 97 && t <= 122 || t === 95 || et.test(e);
262
- }, nt = (e, t) => {
262
+ return t >= 48 && t <= 57 || t >= 65 && t <= 90 || t >= 97 && t <= 122 || t === 95 || tt.test(e);
263
+ }, rt = (e, t) => {
263
264
  let n = 1;
264
265
  for (let r = t - 1; r >= 0; --r) if (e[r] === "]") n += 1;
265
266
  else if (e[r] === "[" && (--n, n === 0)) return r;
266
267
  return -1;
267
- }, M = (e, t) => {
268
+ }, it = (e, t) => {
268
269
  let n = 1;
269
270
  for (let r = t + 1; r < e.length; r += 1) if (e[r] === "[") n += 1;
270
271
  else if (e[r] === "]" && (--n, n === 0)) return r;
271
272
  return -1;
272
- }, rt = (e, t) => E(C(e), t), it = (e, t, n) => {
273
+ }, at = (e, t) => D(C(e), t), ot = (e, t, n) => {
273
274
  let r = 0;
274
275
  for (let n = t - 1; n >= 0; --n) if (e[n] === "\n") {
275
276
  r = n + 1;
@@ -287,184 +288,184 @@ var ce = Object.defineProperty, le = Object.defineProperties, _ = Object.getOwnP
287
288
  break;
288
289
  }
289
290
  return o >= 3 && !s;
290
- }, at = (e, t, n, r) => n === "\\" || E(e, t) ? !0 : n !== "*" && r === "*" ? (t < e.text.length - 2 ? e.text[t + 2] : "") !== "*" : n === "*" || (!n || n === " " || n === " " || n === "\n") && (!r || r === " " || r === " " || r === "\n"), ot = (e) => e === " " || e === " " || e === "\n", st = (e, t) => !!(e && t && j(e) && j(t)), ct = (e, t, n, r) => {
291
- let i = st(e, t), a = !!t && !ot(t), o = !!e && !ot(e);
291
+ }, st = (e, t, n, r) => n === "\\" || D(e, t) ? !0 : n !== "*" && r === "*" ? (t < e.text.length - 2 ? e.text[t + 2] : "") !== "*" : n === "*" || (!n || n === " " || n === " " || n === "\n") && (!r || r === " " || r === " " || r === "\n"), ct = (e) => e === " " || e === " " || e === "\n", lt = (e, t) => !!(e && t && M(e) && M(t)), ut = (e, t, n, r) => {
292
+ let i = lt(e, t), a = !!t && !ct(t), o = !!e && !ct(e);
292
293
  return i && n % 2 == 0 && !r ? { count: !1 } : o && n % 2 == 1 || a ? {
293
294
  count: !0,
294
295
  inWordAsteriskChain: i
295
296
  } : { count: !1 };
296
- }, lt = (e) => {
297
+ }, dt = (e) => {
297
298
  let t = C(e), n = 0, r = !1, i = e.length;
298
299
  for (let a = 0; a < i; a += 1) {
299
- if (e[a] !== "*" || t.regions[a] !== b.PROSE) {
300
- j(e[a]) || (r = !1);
300
+ if (e[a] !== "*" || t.regions[a] !== y.PROSE) {
301
+ M(e[a]) || (r = !1);
301
302
  continue;
302
303
  }
303
304
  let o = a > 0 ? e[a - 1] : "", s = a < i - 1 ? e[a + 1] : "";
304
- if (at(t, a, o, s)) continue;
305
- let c = ct(o, s, n, r);
305
+ if (st(t, a, o, s)) continue;
306
+ let c = ut(o, s, n, r);
306
307
  c.count && (n += 1, r = c.inWordAsteriskChain);
307
308
  }
308
309
  return n;
309
- }, ut = (e, t, n, r) => !!(n === "\\" || E(e, t) || Be(e, t) || He(e, t) || n === "_" || r === "_" || n && r && j(n) && j(r)), dt = (e) => {
310
+ }, ft = (e, t, n, r) => !!(n === "\\" || D(e, t) || Ve(e, t) || Ue(e, t) || n === "_" || r === "_" || n && r && M(n) && M(r)), pt = (e) => {
310
311
  let t = C(e), n = 0, r = e.length;
311
312
  for (let i = 0; i < r; i += 1) {
312
- if (e[i] !== "_" || t.regions[i] !== b.PROSE) continue;
313
+ if (e[i] !== "_" || t.regions[i] !== y.PROSE) continue;
313
314
  let a = i > 0 ? e[i - 1] : "", o = i < r - 1 ? e[i + 1] : "";
314
- ut(t, i, a, o) || (n += 1);
315
+ ft(t, i, a, o) || (n += 1);
315
316
  }
316
317
  return n;
317
- }, ft = (e) => {
318
+ }, N = (e) => {
318
319
  let t = C(e), n = 0, r = 0;
319
- for (let i = 0; i < e.length; i += 1) e[i] === "*" && t.regions[i] === b.PROSE ? r += 1 : (r >= 3 && (n += Math.floor(r / 3)), r = 0);
320
+ for (let i = 0; i < e.length; i += 1) e[i] === "*" && t.regions[i] === y.PROSE ? r += 1 : (r >= 3 && (n += Math.floor(r / 3)), r = 0);
320
321
  return r >= 3 && (n += Math.floor(r / 3)), n;
321
- }, pt = (e) => T(e, "*"), N = (e) => e === "" || e === " " || e === " " || e === "\n", mt = (e, t, n, r, i) => {
322
- if (!(N(n) && N(r))) return !1;
322
+ }, P = (e) => Ne(e, "*"), mt = (e) => e === "" || e === " " || e === " " || e === "\n", ht = (e, t, n, r, i) => {
323
+ if (!(mt(n) && mt(r))) return !1;
323
324
  if (t > i.lineEnd) {
324
325
  let n = e.indexOf("\n", t);
325
- i.lineEnd = n === -1 ? e.length : n, i.result = it(e, t, "_");
326
+ i.lineEnd = n === -1 ? e.length : n, i.result = ot(e, t, "_");
326
327
  }
327
328
  return i.result;
328
- }, ht = (e, t, n, r) => {
329
+ }, gt = (e, t, n, r) => {
329
330
  let i = e.text, a = t, o = !1;
330
331
  a > 0 && i[a - 1] === "\\" && (a += 1, o = !0);
331
332
  let s = n - a;
332
333
  if (s < 2) return !1;
333
334
  let c = a > 0 ? i[a - 1] : "", l = o ? "\\" : c, u = n < i.length ? i[n] : "";
334
- return j(l) && j(u) || mt(i, a, l, u, r) || E(e, a) || Be(e, a) || He(e, a) ? !1 : Math.floor(s / 2) % 2 == 1;
335
- }, gt = (e) => {
335
+ return M(l) && M(u) || ht(i, a, l, u, r) || D(e, a) || Ve(e, a) || Ue(e, a) ? !1 : Math.floor(s / 2) % 2 == 1;
336
+ }, _t = (e) => {
336
337
  let t = C(e), n = e.length, r = {
337
338
  lineEnd: -1,
338
339
  result: !1
339
340
  }, i = !1, a = 0;
340
341
  for (; a < n;) {
341
- if (e[a] !== "_" || t.regions[a] !== b.PROSE) {
342
+ if (e[a] !== "_" || t.regions[a] !== y.PROSE) {
342
343
  a += 1;
343
344
  continue;
344
345
  }
345
346
  let o = a, s = a + 1;
346
- for (; s < n && e[s] === "_" && t.regions[s] === b.PROSE;) s += 1;
347
- a = s, ht(t, o, s, r) && (i = !i);
347
+ for (; s < n && e[s] === "_" && t.regions[s] === y.PROSE;) s += 1;
348
+ a = s, gt(t, o, s, r) && (i = !i);
348
349
  }
349
350
  return i;
350
- }, _t = (e, t, n) => {
351
- if (!t || A.test(t)) return !0;
351
+ }, vt = (e, t, n) => {
352
+ if (!t || j.test(t)) return !0;
352
353
  let r = e.substring(0, n).lastIndexOf("\n"), i = r === -1 ? 0 : r + 1, a = e.substring(i, n);
353
- return $e.test(a) && t.includes("\n") ? !0 : it(e, n, "*");
354
- }, vt = (e) => {
355
- let t = k(e, Ge);
354
+ return et.test(a) && t.includes("\n") ? !0 : ot(e, n, "*");
355
+ }, yt = (e) => {
356
+ let t = A(e, Ke);
356
357
  if (!t) return e;
357
358
  let n = t[2], r = e.lastIndexOf(t[1]);
358
- return D(e, r) || O(e, r) || _t(e, n, r) ? e : pt(e) % 2 == 1 ? n.endsWith("*") ? `${e}*` : `${e}**` : e;
359
- }, yt = (e, t, n) => {
360
- if (!t || A.test(t)) return !0;
359
+ return O(e, r) || k(e, r) || vt(e, n, r) ? e : P(e) % 2 == 1 ? n.endsWith("*") ? `${e}*` : `${e}**` : e;
360
+ }, bt = (e, t, n) => {
361
+ if (!t || j.test(t)) return !0;
361
362
  let r = e.substring(0, n).lastIndexOf("\n"), i = r === -1 ? 0 : r + 1, a = e.substring(i, n);
362
- return $e.test(a) && t.includes("\n") ? !0 : it(e, n, "_");
363
- }, bt = (e) => {
364
- let t = k(e, Ke);
363
+ return et.test(a) && t.includes("\n") ? !0 : ot(e, n, "_");
364
+ }, xt = (e) => {
365
+ let t = A(e, qe);
365
366
  if (!t) {
366
- let t = k(e, Ze);
367
+ let t = A(e, Qe);
367
368
  if (t) {
368
369
  let n = e.lastIndexOf(t[1]);
369
- if (!(D(e, n) || O(e, n)) && gt(e)) return `${e}_`;
370
+ if (!(O(e, n) || k(e, n)) && _t(e)) return `${e}_`;
370
371
  }
371
372
  return e;
372
373
  }
373
374
  let n = t[2], r = e.lastIndexOf(t[1]);
374
- return D(e, r) || O(e, r) || yt(e, n, r) ? e : gt(e) ? `${e}__` : e;
375
- }, xt = (e, t) => {
375
+ return O(e, r) || k(e, r) || bt(e, n, r) ? e : _t(e) ? `${e}__` : e;
376
+ }, St = (e, t) => {
376
377
  let { text: n } = e;
377
- return n[t] === "*" && e.regions[t] === b.PROSE && n[t - 1] !== "*" && n[t + 1] !== "*" && n[t - 1] !== "\\" && !E(e, t);
378
- }, St = (e) => {
378
+ return n[t] === "*" && e.regions[t] === y.PROSE && n[t - 1] !== "*" && n[t + 1] !== "*" && n[t - 1] !== "\\" && !D(e, t);
379
+ }, Ct = (e) => {
379
380
  let t = C(e);
380
381
  for (let n = e.indexOf("*"); n !== -1; n = e.indexOf("*", n + 1)) {
381
- if (!xt(t, n)) continue;
382
- let r = n > 0 ? e[n - 1] : "", i = n < e.length - 1 ? e[n + 1] : "", a = !r || ot(r), o = !i || ot(i);
383
- if (!(a && o) && !(r && i && j(r) && j(i)) && !o) return n;
382
+ if (!St(t, n)) continue;
383
+ let r = n > 0 ? e[n - 1] : "", i = n < e.length - 1 ? e[n + 1] : "", a = !r || ct(r), o = !i || ct(i);
384
+ if (!(a && o) && !(r && i && M(r) && M(i)) && !o) return n;
384
385
  }
385
386
  return -1;
386
- }, Ct = (e) => {
387
- if (!k(e, Je)) return e;
388
- let t = St(e);
389
- if (t === -1 || D(e, t) || O(e, t)) return e;
387
+ }, wt = (e) => {
388
+ if (!A(e, Ye)) return e;
389
+ let t = Ct(e);
390
+ if (t === -1 || O(e, t) || k(e, t)) return e;
390
391
  let n = e.substring(t + 1);
391
- return !n || A.test(n) ? e : lt(e) % 2 == 1 ? `${e}*` : e;
392
- }, P = (e) => {
392
+ return !n || j.test(n) ? e : dt(e) % 2 == 1 ? `${e}*` : e;
393
+ }, Tt = (e) => {
393
394
  let t = C(e);
394
- for (let n = e.indexOf("_"); n !== -1; n = e.indexOf("_", n + 1)) if (t.regions[n] === b.PROSE && e[n - 1] !== "_" && e[n + 1] !== "_" && e[n - 1] !== "\\" && !E(t, n) && !Be(t, n)) {
395
+ for (let n = e.indexOf("_"); n !== -1; n = e.indexOf("_", n + 1)) if (t.regions[n] === y.PROSE && e[n - 1] !== "_" && e[n + 1] !== "_" && e[n - 1] !== "\\" && !D(t, n) && !Ve(t, n)) {
395
396
  let t = n > 0 ? e[n - 1] : "", r = n < e.length - 1 ? e[n + 1] : "";
396
- if (t && r && j(t) && j(r)) continue;
397
+ if (t && r && M(t) && M(r)) continue;
397
398
  return n;
398
399
  }
399
400
  return -1;
400
- }, wt = (e) => {
401
+ }, Et = (e) => {
401
402
  let t = e.length;
402
403
  for (; t > 0 && e[t - 1] === "\n";) --t;
403
404
  return t < e.length ? `${e.slice(0, t)}_${e.slice(t)}` : `${e}_`;
404
- }, Tt = (e) => {
405
+ }, Dt = (e) => {
405
406
  if (!e.endsWith("**")) return null;
406
407
  let t = e.slice(0, -2);
407
- if (pt(t) % 2 != 1) return null;
408
- let n = t.indexOf("**"), r = P(t);
408
+ if (P(t) % 2 != 1) return null;
409
+ let n = t.indexOf("**"), r = Tt(t);
409
410
  return n !== -1 && r !== -1 && n < r ? `${t}_**` : null;
410
- }, Et = (e) => {
411
- if (!k(e, Ye)) return e;
412
- let t = P(e);
411
+ }, Ot = (e) => {
412
+ if (!A(e, Xe)) return e;
413
+ let t = Tt(e);
413
414
  if (t === -1) return e;
414
415
  let n = e.substring(t + 1);
415
- if (!n || A.test(n) || D(e, t) || O(e, t)) return e;
416
- if (dt(e) % 2 == 1) {
417
- let t = Tt(e);
418
- return t === null ? wt(e) : t;
416
+ if (!n || j.test(n) || O(e, t) || k(e, t)) return e;
417
+ if (pt(e) % 2 == 1) {
418
+ let t = Dt(e);
419
+ return t === null ? Et(e) : t;
419
420
  }
420
421
  return e;
421
- }, Dt = (e) => {
422
- let t = pt(e), n = lt(e);
422
+ }, kt = (e) => {
423
+ let t = P(e), n = dt(e);
423
424
  return t % 2 == 0 && n % 2 == 0;
424
- }, Ot = (e, t, n) => !t || A.test(t) || D(e, n) || O(e, n) ? !0 : it(e, n, "*"), kt = (e) => {
425
- if (tt.test(e)) return e;
426
- let t = k(e, qe);
425
+ }, At = (e, t, n) => !t || j.test(t) || O(e, n) || k(e, n) ? !0 : ot(e, n, "*"), jt = (e) => {
426
+ if (nt.test(e)) return e;
427
+ let t = A(e, Je);
427
428
  if (!t) return e;
428
429
  let n = t[2];
429
- return Ot(e, n, e.lastIndexOf(t[1])) ? e : ft(e) % 2 == 1 ? Dt(e) ? e : `${e}***` : e;
430
- }, At = /<[a-zA-Z/][^>]*$/, jt = /[a-zA-Z/]/, Mt = (e) => e.includes("$") || e.includes("\\(") || e.includes("\\["), Nt = (e, t) => {
430
+ return At(e, n, e.lastIndexOf(t[1])) ? e : N(e) % 2 == 1 ? kt(e) ? e : `${e}***` : e;
431
+ }, Mt = /<[a-zA-Z/][^>]*$/, Nt = /[a-zA-Z/]/, Pt = (e) => e.includes("$") || e.includes("\\(") || e.includes("\\["), Ft = (e, t) => {
431
432
  let n = e[t + 1];
432
- return n !== void 0 && jt.test(n);
433
- }, Pt = (e) => {
434
- let t = e.match(At);
433
+ return n !== void 0 && Nt.test(n);
434
+ }, It = (e) => {
435
+ let t = e.match(Mt);
435
436
  if (!t || t.index === void 0) return e;
436
- let n = Mt(e);
437
- for (let r = t.index; r < e.length; r += 1) if (e[r] === "<" && Nt(e, r) && !D(e, r) && !(n && rt(e, r))) return e.substring(0, r).trimEnd();
437
+ let n = Pt(e);
438
+ for (let r = t.index; r < e.length; r += 1) if (e[r] === "<" && Ft(e, r) && !O(e, r) && !(n && at(e, r))) return e.substring(0, r).trimEnd();
438
439
  return e;
439
- }, Ft = (e) => {
440
+ }, Lt = (e) => {
440
441
  let t = C(e);
441
442
  if (t.openFence) return e;
442
443
  let n = t.openSpan;
443
444
  if (!n) return e;
444
445
  let r = e.slice(n.start + n.runLength);
445
- if (!r || A.test(r)) return e;
446
+ if (!r || j.test(r)) return e;
446
447
  let i = 0, a = e.length - 1;
447
448
  for (; a >= 0 && e[a] === "`";) i += 1, --a;
448
449
  return i >= n.runLength ? e : e + "`".repeat(n.runLength - i);
449
- }, It = (e) => T(e, "$"), Lt = (e) => {
450
+ }, Rt = (e) => Ne(e, "$"), zt = (e) => {
450
451
  let t = C(e), n = 0;
451
- for (let r = 0; r < e.length; r += 1) e[r] === "\\" ? r += 1 : t.regions[r] === b.PROSE && e[r] === "$" && (r + 1 < e.length && e[r + 1] === "$" ? r += 1 : n += 1);
452
+ for (let r = 0; r < e.length; r += 1) e[r] === "\\" ? r += 1 : t.regions[r] === y.PROSE && e[r] === "$" && (r + 1 < e.length && e[r + 1] === "$" ? r += 1 : n += 1);
452
453
  return n;
453
- }, Rt = (e) => {
454
+ }, Bt = (e) => {
454
455
  if (e.endsWith("$") && !e.endsWith("$$")) return `${e}$`;
455
456
  let t = e.indexOf("$$");
456
457
  return t !== -1 && e.indexOf("\n", t) !== -1 && !e.endsWith("\n") ? `${e}
457
458
  $$` : `${e}$$`;
458
- }, zt = (e) => It(e) % 2 == 0 ? e : Rt(e), Bt = (e) => Lt(e) % 2 == 1 ? `${e}$` : e, Vt = "streamdown:incomplete-image", Ht = (e, t, n) => {
459
+ }, Vt = (e) => Rt(e) % 2 == 0 ? e : Bt(e), Ht = (e) => zt(e) % 2 == 1 ? `${e}$` : e, Ut = "streamdown:incomplete-image", Wt = (e, t, n) => {
459
460
  if (e.substring(t + 2).includes(")")) return null;
460
- let r = nt(e, t);
461
- if (r === -1 || D(e, r)) return null;
461
+ let r = rt(e, t);
462
+ if (r === -1 || O(e, r)) return null;
462
463
  let i = r > 0 && e[r - 1] === "!", a = i ? r - 1 : r, o = e.substring(0, a), s = e.substring(r + 1, t);
463
- return i ? `${o}![${s}](${Vt})` : n === "text-only" ? `${o}${s}` : `${o}[${s}](streamdown:incomplete-link)`;
464
- }, Ut = (e, t) => {
465
- for (let n = 0; n < t; n++) if (e[n] === "[" && !D(e, n)) {
464
+ return i ? `${o}![${s}](${Ut})` : n === "text-only" ? `${o}${s}` : `${o}[${s}](streamdown:incomplete-link)`;
465
+ }, Gt = (e, t) => {
466
+ for (let n = 0; n < t; n++) if (e[n] === "[" && !O(e, n)) {
466
467
  if (n > 0 && e[n - 1] === "!") continue;
467
- let t = M(e, n);
468
+ let t = it(e, n);
468
469
  if (t === -1) return n;
469
470
  if (t + 1 < e.length && e[t + 1] === "(") {
470
471
  let r = e.indexOf(")", t + 2);
@@ -474,67 +475,67 @@ $$` : `${e}$$`;
474
475
  return t;
475
476
  }, F = (e, t, n) => {
476
477
  let r = t > 0 && e[t - 1] === "!", i = r ? t - 1 : t;
477
- if (!e.substring(t + 1).includes("]") || M(e, t) === -1) {
478
+ if (!e.substring(t + 1).includes("]") || it(e, t) === -1) {
478
479
  let a = e.substring(0, i);
479
- if (r) return `${a}![${e.substring(t + 1)}](${Vt})`;
480
+ if (r) return `${a}![${e.substring(t + 1)}](${Ut})`;
480
481
  if (n === "text-only") {
481
- let n = Ut(e, t);
482
+ let n = Gt(e, t);
482
483
  return e.substring(0, n) + e.substring(n + 1);
483
484
  }
484
485
  return `${e}](streamdown:incomplete-link)`;
485
486
  }
486
487
  return null;
487
- }, Wt = (e, t) => {
488
+ }, Kt = (e, t) => {
488
489
  let n = e.lastIndexOf("](");
489
- if (n !== -1 && !D(e, n)) {
490
- let r = Ht(e, n, t);
490
+ if (n !== -1 && !O(e, n)) {
491
+ let r = Wt(e, n, t);
491
492
  if (r !== null) return r;
492
493
  }
493
- for (let n = e.lastIndexOf("["); n !== -1; n = n === 0 ? -1 : e.lastIndexOf("[", n - 1)) if (!D(e, n)) {
494
+ for (let n = e.lastIndexOf("["); n !== -1; n = n === 0 ? -1 : e.lastIndexOf("[", n - 1)) if (!O(e, n)) {
494
495
  let r = F(e, n, t);
495
496
  if (r !== null) return r;
496
497
  }
497
498
  return e;
498
- }, I = 32, Gt = (e, t = "protocol") => {
499
+ }, qt = 32, Jt = (e, t = "protocol") => {
499
500
  let n = e;
500
- for (let e = 0; e < I; e += 1) {
501
- let e = Wt(n, t);
501
+ for (let e = 0; e < qt; e += 1) {
502
+ let e = Kt(n, t);
502
503
  if (e.length >= n.length) return e;
503
504
  n = e;
504
505
  }
505
506
  return n;
506
- }, Kt = /^-{1,2}$/, qt = /^[\s]*-{1,2}[\s]+$/, Jt = /^={1,2}$/, Yt = /^[\s]*={1,2}[\s]+$/, Xt = (e) => {
507
+ }, Yt = /^-{1,2}$/, Xt = /^[\s]*-{1,2}[\s]+$/, Zt = /^={1,2}$/, Qt = /^[\s]*={1,2}[\s]+$/, $t = (e) => {
507
508
  if (!e || typeof e != "string") return e;
508
509
  let t = e.lastIndexOf("\n");
509
510
  if (t === -1) return e;
510
511
  let n = e.substring(t + 1), r = e.substring(0, t), i = n.trim();
511
- if (Kt.test(i) && !n.match(qt)) {
512
+ if (Yt.test(i) && !n.match(Xt)) {
512
513
  let t = r.split("\n").at(-1);
513
514
  if (t && t.trim().length > 0) return `${e}\u200B`;
514
515
  }
515
- if (Jt.test(i) && !n.match(Yt)) {
516
+ if (Zt.test(i) && !n.match(Qt)) {
516
517
  let t = r.split("\n").at(-1);
517
518
  if (t && t.trim().length > 0) return `${e}\u200B`;
518
519
  }
519
520
  return e;
520
- }, Zt = /([\p{L}\p{N}_])~(?!~)(?=[\p{L}\p{N}_])/gu, Qt = (e) => !e || typeof e != "string" || !e.includes("~") ? e : e.replace(Zt, (t, n, r) => D(e, r + n.length) ? t : `${n}\\~`), $t = (e) => T(e, "~"), en = (e) => {
521
- let t = k(e, Xe);
521
+ }, en = /([\p{L}\p{N}_])~(?!~)(?=[\p{L}\p{N}_])/gu, tn = (e) => !e || typeof e != "string" || !e.includes("~") ? e : e.replace(en, (t, n, r) => O(e, r + n.length) ? t : `${n}\\~`), nn = (e) => Ne(e, "~"), rn = (e) => {
522
+ let t = A(e, Ze);
522
523
  if (t) {
523
524
  let n = t[2];
524
- if (!n || A.test(n)) return e;
525
+ if (!n || j.test(n)) return e;
525
526
  let r = e.lastIndexOf(t[1]);
526
- if (D(e, r) || O(e, r)) return e;
527
- if ($t(e) % 2 == 1) return `${e}~~`;
527
+ if (O(e, r) || k(e, r)) return e;
528
+ if (nn(e) % 2 == 1) return `${e}~~`;
528
529
  } else {
529
- let t = k(e, Qe);
530
+ let t = A(e, $e);
530
531
  if (t) {
531
532
  let n = e.lastIndexOf(t[0].slice(0, 2));
532
- if (D(e, n) || O(e, n)) return e;
533
- if ($t(e) % 2 == 1) return `${e}~`;
533
+ if (O(e, n) || k(e, n)) return e;
534
+ if (nn(e) % 2 == 1) return `${e}~`;
534
535
  }
535
536
  }
536
537
  return e;
537
- }, tn = (e) => e !== !1, nn = (e) => e === !0, L = {
538
+ }, an = (e) => e !== !1, on = (e) => e === !0, I = {
538
539
  SINGLE_TILDE: 0,
539
540
  COMPARISON_OPERATORS: 5,
540
541
  HTML_TAGS: 10,
@@ -550,44 +551,44 @@ $$` : `${e}$$`;
550
551
  KATEX: 70,
551
552
  INLINE_KATEX: 75,
552
553
  DEFAULT: 100
553
- }, rn = [
554
+ }, sn = [
554
555
  {
555
556
  handler: {
556
557
  name: "singleTilde",
557
- handle: Qt,
558
- priority: L.SINGLE_TILDE
558
+ handle: tn,
559
+ priority: I.SINGLE_TILDE
559
560
  },
560
561
  optionKey: "singleTilde"
561
562
  },
562
563
  {
563
564
  handler: {
564
565
  name: "comparisonOperators",
565
- handle: We,
566
- priority: L.COMPARISON_OPERATORS
566
+ handle: Ge,
567
+ priority: I.COMPARISON_OPERATORS
567
568
  },
568
569
  optionKey: "comparisonOperators"
569
570
  },
570
571
  {
571
572
  handler: {
572
573
  name: "htmlTags",
573
- handle: Pt,
574
- priority: L.HTML_TAGS
574
+ handle: It,
575
+ priority: I.HTML_TAGS
575
576
  },
576
577
  optionKey: "htmlTags"
577
578
  },
578
579
  {
579
580
  handler: {
580
581
  name: "setextHeadings",
581
- handle: Xt,
582
- priority: L.SETEXT_HEADINGS
582
+ handle: $t,
583
+ priority: I.SETEXT_HEADINGS
583
584
  },
584
585
  optionKey: "setextHeadings"
585
586
  },
586
587
  {
587
588
  handler: {
588
589
  name: "links",
589
- handle: Gt,
590
- priority: L.LINKS
590
+ handle: Jt,
591
+ priority: I.LINKS
591
592
  },
592
593
  optionKey: "links",
593
594
  earlyReturn: (e) => e.endsWith("](streamdown:incomplete-link)") || e.endsWith("](streamdown:incomplete-image)")
@@ -595,99 +596,99 @@ $$` : `${e}$$`;
595
596
  {
596
597
  handler: {
597
598
  name: "boldItalic",
598
- handle: kt,
599
- priority: L.BOLD_ITALIC
599
+ handle: jt,
600
+ priority: I.BOLD_ITALIC
600
601
  },
601
602
  optionKey: "boldItalic"
602
603
  },
603
604
  {
604
605
  handler: {
605
606
  name: "bold",
606
- handle: vt,
607
- priority: L.BOLD
607
+ handle: yt,
608
+ priority: I.BOLD
608
609
  },
609
610
  optionKey: "bold"
610
611
  },
611
612
  {
612
613
  handler: {
613
614
  name: "italicDoubleUnderscore",
614
- handle: bt,
615
- priority: L.ITALIC_DOUBLE_UNDERSCORE
615
+ handle: xt,
616
+ priority: I.ITALIC_DOUBLE_UNDERSCORE
616
617
  },
617
618
  optionKey: "italic"
618
619
  },
619
620
  {
620
621
  handler: {
621
622
  name: "italicSingleAsterisk",
622
- handle: Ct,
623
- priority: L.ITALIC_SINGLE_ASTERISK
623
+ handle: wt,
624
+ priority: I.ITALIC_SINGLE_ASTERISK
624
625
  },
625
626
  optionKey: "italic"
626
627
  },
627
628
  {
628
629
  handler: {
629
630
  name: "italicSingleUnderscore",
630
- handle: Et,
631
- priority: L.ITALIC_SINGLE_UNDERSCORE
631
+ handle: Ot,
632
+ priority: I.ITALIC_SINGLE_UNDERSCORE
632
633
  },
633
634
  optionKey: "italic"
634
635
  },
635
636
  {
636
637
  handler: {
637
638
  name: "inlineCode",
638
- handle: Ft,
639
- priority: L.INLINE_CODE
639
+ handle: Lt,
640
+ priority: I.INLINE_CODE
640
641
  },
641
642
  optionKey: "inlineCode"
642
643
  },
643
644
  {
644
645
  handler: {
645
646
  name: "strikethrough",
646
- handle: en,
647
- priority: L.STRIKETHROUGH
647
+ handle: rn,
648
+ priority: I.STRIKETHROUGH
648
649
  },
649
650
  optionKey: "strikethrough"
650
651
  },
651
652
  {
652
653
  handler: {
653
654
  name: "katex",
654
- handle: zt,
655
- priority: L.KATEX
655
+ handle: Vt,
656
+ priority: I.KATEX
656
657
  },
657
658
  optionKey: "katex"
658
659
  },
659
660
  {
660
661
  handler: {
661
662
  name: "inlineKatex",
662
- handle: Bt,
663
- priority: L.INLINE_KATEX
663
+ handle: Ht,
664
+ priority: I.INLINE_KATEX
664
665
  },
665
666
  optionKey: "inlineKatex"
666
667
  }
667
- ], an = (e) => {
668
+ ], cn = (e) => {
668
669
  let t = e?.linkMode ?? "protocol";
669
- return rn.filter(({ handler: t, optionKey: n }) => t.name === "links" ? tn(e?.links) || tn(e?.images) : t.name === "inlineKatex" ? nn(e?.inlineKatex) : tn(e?.[n])).map(({ handler: e, earlyReturn: n }) => e.name === "links" ? {
670
- handler: y(pe({}, e), { handle: (e) => Gt(e, t) }),
670
+ return sn.filter(({ handler: t, optionKey: n }) => t.name === "links" ? an(e?.links) || an(e?.images) : t.name === "inlineKatex" ? on(e?.inlineKatex) : an(e?.[n])).map(({ handler: e, earlyReturn: n }) => e.name === "links" ? {
671
+ handler: ge(he({}, e), { handle: (e) => Jt(e, t) }),
671
672
  earlyReturn: t === "protocol" ? n : void 0
672
673
  } : {
673
674
  handler: e,
674
675
  earlyReturn: n
675
676
  });
676
- }, on = (e, t) => {
677
+ }, ln = (e, t) => {
677
678
  if (!e || typeof e != "string") return e;
678
- let n = e.endsWith(" ") && !e.endsWith(" ") ? e.slice(0, -1) : e, r = an(t), i = (t?.handlers ?? []).map((e) => ({
679
- handler: y(pe({}, e), { priority: e.priority ?? L.DEFAULT }),
679
+ let n = e.endsWith(" ") && !e.endsWith(" ") ? e.slice(0, -1) : e, r = cn(t), i = (t?.handlers ?? []).map((e) => ({
680
+ handler: ge(he({}, e), { priority: e.priority ?? I.DEFAULT }),
680
681
  earlyReturn: void 0
681
682
  })), a = [...r, ...i].sort((e, t) => (e.handler.priority ?? 0) - (t.handler.priority ?? 0));
682
683
  try {
683
684
  for (let { handler: e, earlyReturn: t } of a) if (n = e.handle(n), t != null && t(n)) return n;
684
685
  return n.endsWith(" ") && !n.endsWith(" ") ? n.slice(0, -1) : n;
685
686
  } finally {
686
- ke();
687
+ je();
687
688
  }
688
689
  };
689
690
  // ../../node_modules/.pnpm/marked@18.1.2/node_modules/marked/lib/marked.esm.js
690
- function sn() {
691
+ function un() {
691
692
  return {
692
693
  async: !1,
693
694
  breaks: !1,
@@ -701,35 +702,35 @@ function sn() {
701
702
  walkTokens: null
702
703
  };
703
704
  }
704
- var cn = sn();
705
- function ln(e) {
706
- cn = e;
705
+ var dn = un();
706
+ function fn(e) {
707
+ dn = e;
707
708
  }
708
- var un = { exec: () => null };
709
- function dn(e) {
709
+ var pn = { exec: () => null };
710
+ function mn(e) {
710
711
  let t = [];
711
712
  return (n) => {
712
713
  let r = Math.max(0, Math.min(3, n - 1)), i = t[r];
713
714
  return i || (i = e(r), t[r] = i), i;
714
715
  };
715
716
  }
716
- function R(e, t = "") {
717
+ function L(e, t = "") {
717
718
  let n = typeof e == "string" ? e : e.source, r = {
718
719
  replace: (e, t) => {
719
720
  let i = typeof t == "string" ? t : t.source;
720
- return i = i.replace(z.caret, "$1"), n = n.replace(e, i), r;
721
+ return i = i.replace(R.caret, "$1"), n = n.replace(e, i), r;
721
722
  },
722
723
  getRegex: () => new RegExp(n, t)
723
724
  };
724
725
  return r;
725
726
  }
726
- var fn = ((e = "") => {
727
+ var hn = ((e = "") => {
727
728
  try {
728
729
  return !!RegExp("(?<=1)(?<!1)" + e);
729
730
  } catch {
730
731
  return !1;
731
732
  }
732
- })(), z = {
733
+ })(), R = {
733
734
  codeRemoveIndent: /^(?: {0,3}\t| {1,4})/gm,
734
735
  outputLinkReplace: /\\([\[\]])/g,
735
736
  indentCodeCompensation: /^(\s+)(?:```)/,
@@ -785,135 +786,135 @@ var fn = ((e = "") => {
785
786
  notSpaceStart: /^\S*/,
786
787
  endingNewline: /\n$/,
787
788
  listItemRegex: (e) => RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),
788
- nextBulletRegex: dn((e) => RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),
789
- hrRegex: dn((e) => RegExp(`^ {0,${e}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),
790
- fencesBeginRegex: dn((e) => RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),
791
- headingBeginRegex: dn((e) => RegExp(`^ {0,${e}}#{1,6}(?:\\s|$)`)),
792
- pedanticHeadingBeginRegex: dn((e) => RegExp(`^ {0,${e}}#`)),
793
- htmlBeginRegex: dn((e) => RegExp(`^ {0,${e}}(?:</?(?:${Dn})(?: +|$|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`, "i")),
794
- blockquoteBeginRegex: dn((e) => RegExp(`^ {0,${e}}>`))
795
- }, pn = /^(?:[ \t]*(?:\n|$))+/, mn = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, hn = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, gn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, _n = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, vn = / {0,3}(?:[*+-]|\d{1,9}[.)])/, yn = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, bn = R(yn).replace(/bull/g, vn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}(?:\s|$)/).replace(/hr/g, / {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), xn = R(yn).replace(/bull/g, vn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}(?:\s|$)/).replace(/hr/g, / {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Sn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/, Cn = /^[^\n]+/, wn = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Tn = R(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", wn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), En = R(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, vn).getRegex(), Dn = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", On = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, kn = R("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?:[ \\t]+|\\n|/?>|$)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!(?:script|pre|style|textarea)(?![a-z0-9-]))([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", On).replace("tag", Dn).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), An = (e) => R(Sn).replace("hr", gn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list", e).replace("html", " {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag", Dn).getRegex(), jn = An(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), Mn = An(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/), Nn = {
796
- blockquote: R(/^( {0,3}> ?(?:(?![ \t]*(?:\n|$))(paragraph)|[^\n]*)(?:\n|$))+/).replace("paragraph", Mn).getRegex(),
797
- code: mn,
798
- def: Tn,
799
- fences: hn,
800
- heading: _n,
801
- hr: gn,
802
- html: kn,
803
- lheading: bn,
804
- list: En,
805
- newline: pn,
806
- paragraph: jn,
807
- table: un,
808
- text: Cn
809
- }, Pn = R("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", gn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", " {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag", Dn).getRegex(), Fn = {
810
- ...Nn,
811
- lheading: xn,
812
- table: Pn,
813
- paragraph: R(Sn).replace("hr", gn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Pn).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", " {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag", Dn).getRegex()
814
- }, In = {
815
- ...Nn,
816
- html: R("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", On).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
789
+ nextBulletRegex: mn((e) => RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),
790
+ hrRegex: mn((e) => RegExp(`^ {0,${e}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),
791
+ fencesBeginRegex: mn((e) => RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),
792
+ headingBeginRegex: mn((e) => RegExp(`^ {0,${e}}#{1,6}(?:\\s|$)`)),
793
+ pedanticHeadingBeginRegex: mn((e) => RegExp(`^ {0,${e}}#`)),
794
+ htmlBeginRegex: mn((e) => RegExp(`^ {0,${e}}(?:</?(?:${An})(?: +|$|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`, "i")),
795
+ blockquoteBeginRegex: mn((e) => RegExp(`^ {0,${e}}>`))
796
+ }, gn = /^(?:[ \t]*(?:\n|$))+/, _n = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, vn = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, yn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, bn = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, xn = / {0,3}(?:[*+-]|\d{1,9}[.)])/, Sn = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Cn = L(Sn).replace(/bull/g, xn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}(?:\s|$)/).replace(/hr/g, / {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), wn = L(Sn).replace(/bull/g, xn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}(?:\s|$)/).replace(/hr/g, / {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Tn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/, En = /^[^\n]+/, Dn = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, On = L(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Dn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), kn = L(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, xn).getRegex(), An = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", jn = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Mn = L("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?:[ \\t]+|\\n|/?>|$)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!(?:script|pre|style|textarea)(?![a-z0-9-]))([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", jn).replace("tag", An).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Nn = (e) => L(Tn).replace("hr", yn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list", e).replace("html", " {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag", An).getRegex(), Pn = Nn(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), Fn = Nn(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/), In = {
797
+ blockquote: L(/^( {0,3}> ?(?:(?![ \t]*(?:\n|$))(paragraph)|[^\n]*)(?:\n|$))+/).replace("paragraph", Fn).getRegex(),
798
+ code: _n,
799
+ def: On,
800
+ fences: vn,
801
+ heading: bn,
802
+ hr: yn,
803
+ html: Mn,
804
+ lheading: Cn,
805
+ list: kn,
806
+ newline: gn,
807
+ paragraph: Pn,
808
+ table: pn,
809
+ text: En
810
+ }, Ln = L("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", yn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", " {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag", An).getRegex(), Rn = {
811
+ ...In,
812
+ lheading: wn,
813
+ table: Ln,
814
+ paragraph: L(Tn).replace("hr", yn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Ln).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", " {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag", An).getRegex()
815
+ }, zn = {
816
+ ...In,
817
+ html: L("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", jn).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
817
818
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
818
819
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
819
- fences: un,
820
+ fences: pn,
820
821
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
821
- paragraph: R(Sn).replace("hr", gn).replace("heading", " *#{1,6} *[^\n]").replace("lheading", bn).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
822
- }, Ln = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Rn = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, zn = /^( {2,}|\\)\n(?!\s*$)[ \t]*/, Bn = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, B = /[\p{P}\p{S}]/u, Vn = /[\s\p{P}\p{S}]/u, Hn = /[^\s\p{P}\p{S}]/u, Un = R(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Vn).getRegex(), Wn = /[\p{Pi}\p{Ps}"']/u, Gn = /(?!~)[\p{P}\p{S}]/u, Kn = /(?!~)[\s\p{P}\p{S}]/u, qn = /(?:[^\s\p{P}\p{S}]|~)/u, Jn = R(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", fn ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Yn = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Xn = R(Yn, "u").replace(/punct/g, B).getRegex(), Zn = R(Yn, "u").replace(/punct/g, Gn).getRegex(), Qn = R(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/, "u").replace(/openQuote/g, Wn).replace(/punct/g, B).getRegex(), $n = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", er = R($n, "gu").replace(/notPunctSpace/g, Hn).replace(/punctSpace/g, Vn).replace(/punct/g, B).getRegex(), tr = R($n, "gu").replace(/notPunctSpace/g, qn).replace(/punctSpace/g, Kn).replace(/punct/g, Gn).getRegex(), nr = R("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Hn).replace(/punctSpace/g, Vn).replace(/punct/g, B).getRegex(), rr = R("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Hn).replace(/punctSpace/g, Vn).replace(/punct/g, B).getRegex(), ir = R("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Hn).replace(/punctSpace/g, Vn).replace(/punct/g, B).getRegex(), ar = R(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, B).getRegex(), or = R("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Hn).replace(/punctSpace/g, Vn).replace(/punct/g, B).getRegex(), sr = R(/\\(punct)/, "gu").replace(/punct/g, B).getRegex(), cr = R(/(`+)(?:[^`]|[^`][\s\S]*?[^`])\1(?!`)|`+|\\(punct)/, "gu").replace(/punct/g, B).getRegex(), lr = R(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), ur = R(On).replace("(?:-->|$)", "-->").getRegex(), dr = R("^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", ur).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), fr = /\[(?:\\[\s\S]|[^\[\]\\])*\]/, pr = R(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets", fr).getRegex(), mr = R(/^!?\[(label)\]\([ \t\n]*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?[ \t\n]*\)/).replace("label", pr).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), hr = R(/^!?\[(label)\]\[(ref)\]/).replace("label", pr).replace("ref", wn).getRegex(), gr = R(/^!?\[(ref)\](?:\[\])?/).replace("ref", wn).getRegex(), _r = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/, vr = R(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace("brackets", fr).getRegex(), yr = R("reflink|nolink(?!\\()", "g").replace("reflink", R(/^!?\[(label)\]\[(ref)\]/).replace("label", vr).replace("ref", _r).getRegex()).replace("nolink", R(/^!?\[(ref)\](?:\[\])?/).replace("ref", _r).getRegex()).getRegex(), br = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, xr = R(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g, /[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(), Sr = {
823
- _backpedal: un,
824
- anyPunctuation: sr,
825
- anyPunctuationOutsideCode: cr,
826
- autolink: lr,
827
- blockSkip: Jn,
828
- br: zn,
829
- code: Rn,
830
- del: un,
831
- delLDelim: un,
832
- delRDelim: un,
833
- emStrongLDelim: Xn,
834
- emStrongRDelimAst: er,
835
- emStrongRDelimUnd: rr,
836
- escape: Ln,
837
- link: mr,
838
- nolink: gr,
839
- punctuation: Un,
840
- reflink: hr,
841
- reflinkSearch: yr,
842
- tag: dr,
843
- text: Bn,
844
- url: un
845
- }, Cr = {
846
- ...Sr,
847
- emStrongLDelim: Qn,
848
- emStrongRDelimAst: nr,
849
- emStrongRDelimUnd: ir,
850
- link: R(/^!?\[(label)\]\((.*?)\)/).replace("label", pr).getRegex(),
851
- reflink: R(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", pr).getRegex()
852
- }, wr = {
853
- ...Sr,
854
- emStrongRDelimAst: tr,
855
- emStrongLDelim: Zn,
856
- delLDelim: ar,
857
- delRDelim: or,
858
- url: R(/^emailProtocol|^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("emailProtocol", xr).replace("protocol", br).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),
859
- _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
860
- del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
861
- text: R(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace("protocol", br).replace(/emailProtocol/g, /(?:mailto|xmpp):/).getRegex()
862
- }, Tr = {
863
- ...wr,
864
- br: R(zn).replace("{2,}", "*").getRegex(),
865
- text: R(wr.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
822
+ paragraph: L(Tn).replace("hr", yn).replace("heading", " *#{1,6} *[^\n]").replace("lheading", Cn).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
823
+ }, Bn = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Vn = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Hn = /^( {2,}|\\)\n(?!\s*$)[ \t]*/, Un = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, z = /[\p{P}\p{S}]/u, Wn = /[\s\p{P}\p{S}]/u, Gn = /[^\s\p{P}\p{S}]/u, Kn = L(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Wn).getRegex(), qn = /[\p{Pi}\p{Ps}"']/u, Jn = /(?!~)[\p{P}\p{S}]/u, Yn = /(?!~)[\s\p{P}\p{S}]/u, Xn = /(?:[^\s\p{P}\p{S}]|~)/u, Zn = L(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", hn ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Qn = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, $n = L(Qn, "u").replace(/punct/g, z).getRegex(), er = L(Qn, "u").replace(/punct/g, Jn).getRegex(), tr = L(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/, "u").replace(/openQuote/g, qn).replace(/punct/g, z).getRegex(), nr = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", rr = L(nr, "gu").replace(/notPunctSpace/g, Gn).replace(/punctSpace/g, Wn).replace(/punct/g, z).getRegex(), ir = L(nr, "gu").replace(/notPunctSpace/g, Xn).replace(/punctSpace/g, Yn).replace(/punct/g, Jn).getRegex(), ar = L("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Gn).replace(/punctSpace/g, Wn).replace(/punct/g, z).getRegex(), or = L("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Gn).replace(/punctSpace/g, Wn).replace(/punct/g, z).getRegex(), sr = L("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Gn).replace(/punctSpace/g, Wn).replace(/punct/g, z).getRegex(), cr = L(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, z).getRegex(), lr = L("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Gn).replace(/punctSpace/g, Wn).replace(/punct/g, z).getRegex(), ur = L(/\\(punct)/, "gu").replace(/punct/g, z).getRegex(), dr = L(/(`+)(?:[^`]|[^`][\s\S]*?[^`])\1(?!`)|`+|\\(punct)/, "gu").replace(/punct/g, z).getRegex(), fr = L(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), pr = L(jn).replace("(?:-->|$)", "-->").getRegex(), mr = L("^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", pr).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), hr = /\[(?:\\[\s\S]|[^\[\]\\])*\]/, gr = L(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets", hr).getRegex(), _r = L(/^!?\[(label)\]\([ \t\n]*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?[ \t\n]*\)/).replace("label", gr).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), vr = L(/^!?\[(label)\]\[(ref)\]/).replace("label", gr).replace("ref", Dn).getRegex(), yr = L(/^!?\[(ref)\](?:\[\])?/).replace("ref", Dn).getRegex(), br = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/, xr = L(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace("brackets", hr).getRegex(), Sr = L("reflink|nolink(?!\\()", "g").replace("reflink", L(/^!?\[(label)\]\[(ref)\]/).replace("label", xr).replace("ref", br).getRegex()).replace("nolink", L(/^!?\[(ref)\](?:\[\])?/).replace("ref", br).getRegex()).getRegex(), Cr = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, wr = L(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g, /[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(), Tr = {
824
+ _backpedal: pn,
825
+ anyPunctuation: ur,
826
+ anyPunctuationOutsideCode: dr,
827
+ autolink: fr,
828
+ blockSkip: Zn,
829
+ br: Hn,
830
+ code: Vn,
831
+ del: pn,
832
+ delLDelim: pn,
833
+ delRDelim: pn,
834
+ emStrongLDelim: $n,
835
+ emStrongRDelimAst: rr,
836
+ emStrongRDelimUnd: or,
837
+ escape: Bn,
838
+ link: _r,
839
+ nolink: yr,
840
+ punctuation: Kn,
841
+ reflink: vr,
842
+ reflinkSearch: Sr,
843
+ tag: mr,
844
+ text: Un,
845
+ url: pn
866
846
  }, Er = {
867
- normal: Nn,
868
- gfm: Fn,
869
- pedantic: In
847
+ ...Tr,
848
+ emStrongLDelim: tr,
849
+ emStrongRDelimAst: ar,
850
+ emStrongRDelimUnd: sr,
851
+ link: L(/^!?\[(label)\]\((.*?)\)/).replace("label", gr).getRegex(),
852
+ reflink: L(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", gr).getRegex()
870
853
  }, Dr = {
871
- normal: Sr,
872
- gfm: wr,
873
- breaks: Tr,
874
- pedantic: Cr
854
+ ...Tr,
855
+ emStrongRDelimAst: ir,
856
+ emStrongLDelim: er,
857
+ delLDelim: cr,
858
+ delRDelim: lr,
859
+ url: L(/^emailProtocol|^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("emailProtocol", wr).replace("protocol", Cr).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),
860
+ _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
861
+ del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
862
+ text: L(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace("protocol", Cr).replace(/emailProtocol/g, /(?:mailto|xmpp):/).getRegex()
875
863
  }, Or = {
864
+ ...Dr,
865
+ br: L(Hn).replace("{2,}", "*").getRegex(),
866
+ text: L(Dr.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
867
+ }, kr = {
868
+ normal: In,
869
+ gfm: Rn,
870
+ pedantic: zn
871
+ }, Ar = {
872
+ normal: Tr,
873
+ gfm: Dr,
874
+ breaks: Or,
875
+ pedantic: Er
876
+ }, jr = {
876
877
  "&": "&amp;",
877
878
  "<": "&lt;",
878
879
  ">": "&gt;",
879
880
  "\"": "&quot;",
880
881
  "'": "&#39;"
881
- }, kr = (e) => Or[e];
882
- function V(e, t) {
882
+ }, Mr = (e) => jr[e];
883
+ function B(e, t) {
883
884
  if (t) {
884
- if (z.escapeTest.test(e)) return e.replace(z.escapeReplace, kr);
885
- } else if (z.escapeTestNoEncode.test(e)) return e.replace(z.escapeReplaceNoEncode, kr);
885
+ if (R.escapeTest.test(e)) return e.replace(R.escapeReplace, Mr);
886
+ } else if (R.escapeTestNoEncode.test(e)) return e.replace(R.escapeReplaceNoEncode, Mr);
886
887
  return e;
887
888
  }
888
- function Ar(e) {
889
- return z.numericCharacterReference.test(e) ? e.replace(z.numericCharacterReferenceOrAmpersand, (e, t, n) => {
889
+ function Nr(e) {
890
+ return R.numericCharacterReference.test(e) ? e.replace(R.numericCharacterReferenceOrAmpersand, (e, t, n) => {
890
891
  if (t === void 0 && n === void 0) return "&amp;";
891
892
  let r = t === void 0 ? Number.parseInt(n, 16) : Number.parseInt(t, 10);
892
893
  return r === 0 || r > 1114111 || r >= 55296 && r <= 57343 ? "�" : r === 38 ? "&amp;" : String.fromCodePoint(r);
893
894
  }) : e;
894
895
  }
895
- function jr(e) {
896
+ function Pr(e) {
896
897
  try {
897
- e = encodeURI(e).replace(z.percentDecode, "%");
898
+ e = encodeURI(e).replace(R.percentDecode, "%");
898
899
  } catch {
899
900
  return null;
900
901
  }
901
902
  return e;
902
903
  }
903
- function Mr(e, t) {
904
- let n = e.replace(z.findPipe, (e, t, n) => {
904
+ function Fr(e, t) {
905
+ let n = e.replace(R.findPipe, (e, t, n) => {
905
906
  let r = !1, i = t;
906
907
  for (; --i >= 0 && n[i] === "\\";) r = !r;
907
908
  return r ? "|" : " |";
908
- }).split(z.splitPipe), r = 0;
909
+ }).split(R.splitPipe), r = 0;
909
910
  if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) {
910
911
  if (n.length > t) n.splice(t);
911
912
  else for (; n.length < t;) n.push("");
912
913
  }
913
- for (; r < n.length; r++) n[r] = n[r].trim().replace(z.slashPipe, "|");
914
+ for (; r < n.length; r++) n[r] = n[r].trim().replace(R.slashPipe, "|");
914
915
  return n;
915
916
  }
916
- function Nr(e, t, n) {
917
+ function Ir(e, t, n) {
917
918
  let r = e.length;
918
919
  if (r === 0) return "";
919
920
  let i = 0;
@@ -925,15 +926,15 @@ function Nr(e, t, n) {
925
926
  }
926
927
  return e.slice(0, r - i);
927
928
  }
928
- function Pr(e) {
929
+ function Lr(e) {
929
930
  let t = e.split("\n"), n = t.length - 1;
930
- for (; n >= 0 && z.blankLine.test(t[n]);) n--;
931
+ for (; n >= 0 && R.blankLine.test(t[n]);) n--;
931
932
  return t.length - n <= 2 ? e : t.slice(0, n + 1).join("\n");
932
933
  }
933
- function Fr(e) {
934
+ function Rr(e) {
934
935
  return e.trim().toLowerCase().toUpperCase().toLowerCase();
935
936
  }
936
- function Ir(e, t) {
937
+ function zr(e, t) {
937
938
  if (e.indexOf(t[0]) === -1 && e.indexOf(t[1]) === -1) return -1;
938
939
  let n = 0;
939
940
  for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
@@ -941,7 +942,7 @@ function Ir(e, t) {
941
942
  else if (e[r] === t[1] && (n--, n < 0)) return r;
942
943
  return n > 0 ? -2 : -1;
943
944
  }
944
- function Lr(e, t = 0) {
945
+ function Br(e, t = 0) {
945
946
  let n = t, r = "";
946
947
  for (let t of e) if (t === " ") {
947
948
  let e = 4 - n % 4;
@@ -949,7 +950,7 @@ function Lr(e, t = 0) {
949
950
  } else r += t, n++;
950
951
  return r;
951
952
  }
952
- function Rr(e, t, n, r, i) {
953
+ function Vr(e, t, n, r, i) {
953
954
  let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1"), c = e[0].charAt(0) === "!", l = r.state.inLink, u = r.state.linkEmitted, d = r.state.inRawBlock;
954
955
  r.state.inLink = !0, r.state.linkEmitted = !1;
955
956
  let f = r.inlineTokens(s), p = r.state.linkEmitted;
@@ -969,7 +970,7 @@ function Rr(e, t, n, r, i) {
969
970
  tokens: f
970
971
  };
971
972
  }
972
- function zr(e, t, n) {
973
+ function Hr(e, t, n) {
973
974
  let r = e.match(n.other.indentCodeCompensation);
974
975
  if (r === null) return t;
975
976
  let i = r[1];
@@ -980,7 +981,7 @@ function zr(e, t, n) {
980
981
  return e.slice(Math.min(r.length, i.length));
981
982
  }).join("\n");
982
983
  }
983
- function Br(e, t, n, r) {
984
+ function Ur(e, t, n, r) {
984
985
  if (!t.includes("<")) return !1;
985
986
  for (let i = 0; i < t.length; i++) {
986
987
  if (t[i] === "\\") {
@@ -1003,12 +1004,12 @@ function Br(e, t, n, r) {
1003
1004
  }
1004
1005
  return !1;
1005
1006
  }
1006
- var Vr = class {
1007
+ var Wr = class {
1007
1008
  options;
1008
1009
  rules;
1009
1010
  lexer;
1010
1011
  constructor(e) {
1011
- this.options = e || cn;
1012
+ this.options = e || dn;
1012
1013
  }
1013
1014
  space(e) {
1014
1015
  let t = this.rules.block.newline.exec(e);
@@ -1020,7 +1021,7 @@ var Vr = class {
1020
1021
  code(e) {
1021
1022
  let t = this.rules.block.code.exec(e);
1022
1023
  if (t) {
1023
- let e = this.options.pedantic ? t[0] : Pr(t[0]);
1024
+ let e = this.options.pedantic ? t[0] : Lr(t[0]);
1024
1025
  return {
1025
1026
  type: "code",
1026
1027
  raw: e,
@@ -1032,7 +1033,7 @@ var Vr = class {
1032
1033
  fences(e) {
1033
1034
  let t = this.rules.block.fences.exec(e);
1034
1035
  if (t) {
1035
- let e = t[0], n = zr(e, t[3] || "", this.rules);
1036
+ let e = t[0], n = Hr(e, t[3] || "", this.rules);
1036
1037
  return {
1037
1038
  type: "code",
1038
1039
  raw: e,
@@ -1046,12 +1047,12 @@ var Vr = class {
1046
1047
  if (t) {
1047
1048
  let e = t[2].trim();
1048
1049
  if (this.rules.other.endingHash.test(e)) {
1049
- let t = Nr(e, "#");
1050
+ let t = Ir(e, "#");
1050
1051
  (this.options.pedantic || !t || this.rules.other.endingSpaceTabChar.test(t)) && (e = t.trim());
1051
1052
  }
1052
1053
  return {
1053
1054
  type: "heading",
1054
- raw: Nr(t[0], "\n"),
1055
+ raw: Ir(t[0], "\n"),
1055
1056
  depth: t[1].length,
1056
1057
  text: e,
1057
1058
  tokens: this.lexer.inline(e)
@@ -1062,20 +1063,20 @@ var Vr = class {
1062
1063
  let t = this.rules.block.hr.exec(e);
1063
1064
  if (t) return {
1064
1065
  type: "hr",
1065
- raw: Nr(t[0], "\n")
1066
+ raw: Ir(t[0], "\n")
1066
1067
  };
1067
1068
  }
1068
1069
  blockquote(e) {
1069
1070
  let t = this.rules.block.blockquote.exec(e);
1070
1071
  if (t) {
1071
- let e = Nr(t[0], "\n").split("\n"), n = "", r = "", i = [];
1072
+ let e = Ir(t[0], "\n").split("\n"), n = "", r = "", i = [];
1072
1073
  for (; e.length > 0;) {
1073
1074
  let t = !1, a = [], o = 0;
1074
1075
  for (; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
1075
1076
  else if (!t) a.push(e[o]);
1076
1077
  else break;
1077
1078
  e = e.slice(o);
1078
- let s = a.join("\n"), c = s.replace(this.rules.other.blockquoteMarkerWhitespace, (e, t, n) => t + Lr(n, t.length)).replace(this.rules.other.blockquoteSetextReplace, "\n $1").replace(this.rules.other.blockquoteSetextReplace2, "");
1079
+ let s = a.join("\n"), c = s.replace(this.rules.other.blockquoteMarkerWhitespace, (e, t, n) => t + Br(n, t.length)).replace(this.rules.other.blockquoteSetextReplace, "\n $1").replace(this.rules.other.blockquoteSetextReplace2, "");
1079
1080
  n = n ? `${n}
1080
1081
  ${s}` : s, r = r ? `${r}
1081
1082
  ${c}` : c;
@@ -1130,12 +1131,12 @@ ${t}`;
1130
1131
  if (!(t = s.exec(e)) || this.rules.block.hr.test(e)) break;
1131
1132
  let l = r();
1132
1133
  e = e.substring(t[0].length);
1133
- let u = t[2].split("\n", 1)[0], d = t[1].length, f = this.options.pedantic ? Lr(u, d) : u.replace(this.rules.other.leadingSpaceTab, (e) => Lr(e, d)), p = e.split("\n", 1)[0], ee = !f.trim(), m = 0;
1134
+ let u = t[2].split("\n", 1)[0], d = t[1].length, f = this.options.pedantic ? Br(u, d) : u.replace(this.rules.other.leadingSpaceTab, (e) => Br(e, d)), p = e.split("\n", 1)[0], ee = !f.trim(), m = 0;
1134
1135
  if (this.options.pedantic ? (m = 2, a = f.trimStart()) : ee ? m = d + 1 : (m = f.search(this.rules.other.nonSpaceChar), m = m > 4 ? 1 : m, a = f.slice(m), m += d), ee && this.rules.other.blankLine.test(p) && (e = e.substring(p.length + 1), i = !0), !i) {
1135
1136
  let t = this.rules.other.nextBulletRegex(m), n = this.rules.other.hrRegex(m), r = this.rules.other.fencesBeginRegex(m), i = this.options.pedantic ? this.rules.other.pedanticHeadingBeginRegex(m) : this.rules.other.headingBeginRegex(m), o = this.rules.other.htmlBeginRegex(m), s = this.rules.other.blockquoteBeginRegex(m);
1136
1137
  for (; e;) {
1137
1138
  let c = e.split("\n", 1)[0], l;
1138
- if (p = c, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), l = p) : l = p.replace(this.rules.other.leadingSpaceTab, (e) => Lr(e)), r.test(p) || i.test(p) || o.test(p) || s.test(p) || t.test(p) || n.test(p)) break;
1139
+ if (p = c, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), l = p) : l = p.replace(this.rules.other.leadingSpaceTab, (e) => Br(e)), r.test(p) || i.test(p) || o.test(p) || s.test(p) || t.test(p) || n.test(p)) break;
1139
1140
  if (l.search(this.rules.other.nonSpaceChar) >= m || !p.trim()) a += "\n" + l.slice(m);
1140
1141
  else {
1141
1142
  if (ee || f.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || r.test(f) || i.test(f) || n.test(f)) break;
@@ -1198,7 +1199,7 @@ ${p}`) ? ` ${l.replace(/^ {0,3}/, "")}` : p;
1198
1199
  html(e) {
1199
1200
  let t = this.rules.block.html.exec(e);
1200
1201
  if (t) {
1201
- let e = Pr(t[0]);
1202
+ let e = Lr(t[0]);
1202
1203
  return {
1203
1204
  type: "html",
1204
1205
  block: !0,
@@ -1211,12 +1212,12 @@ ${p}`) ? ` ${l.replace(/^ {0,3}/, "")}` : p;
1211
1212
  def(e) {
1212
1213
  let t = this.rules.block.def.exec(e);
1213
1214
  if (t) {
1214
- if (!this.rules.other.startAngleBracket.test(t[2]) && Ir(t[2], "()") !== -1) return;
1215
- let e = Fr(t[1]).replace(this.rules.other.multipleSpaceGlobal, " "), n = t[2] ? t[2].replace(this.rules.other.hrefBrackets, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", r = t[3] ? t[3].substring(1, t[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : t[3];
1215
+ if (!this.rules.other.startAngleBracket.test(t[2]) && zr(t[2], "()") !== -1) return;
1216
+ let e = Rr(t[1]).replace(this.rules.other.multipleSpaceGlobal, " "), n = t[2] ? t[2].replace(this.rules.other.hrefBrackets, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", r = t[3] ? t[3].substring(1, t[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : t[3];
1216
1217
  return {
1217
1218
  type: "def",
1218
1219
  tag: e,
1219
- raw: Nr(t[0], "\n"),
1220
+ raw: Ir(t[0], "\n"),
1220
1221
  href: n,
1221
1222
  title: r
1222
1223
  };
@@ -1225,9 +1226,9 @@ ${p}`) ? ` ${l.replace(/^ {0,3}/, "")}` : p;
1225
1226
  table(e) {
1226
1227
  let t = this.rules.block.table.exec(e);
1227
1228
  if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
1228
- let n = Mr(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
1229
+ let n = Fr(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
1229
1230
  type: "table",
1230
- raw: Nr(t[0], "\n"),
1231
+ raw: Ir(t[0], "\n"),
1231
1232
  header: [],
1232
1233
  align: [],
1233
1234
  rows: []
@@ -1240,7 +1241,7 @@ ${p}`) ? ` ${l.replace(/^ {0,3}/, "")}` : p;
1240
1241
  header: !0,
1241
1242
  align: a.align[e]
1242
1243
  });
1243
- for (let e of i) a.rows.push(Mr(e, a.header.length).map((e, t) => ({
1244
+ for (let e of i) a.rows.push(Fr(e, a.header.length).map((e, t) => ({
1244
1245
  text: e,
1245
1246
  tokens: this.lexer.inline(e),
1246
1247
  header: !1,
@@ -1255,7 +1256,7 @@ ${p}`) ? ` ${l.replace(/^ {0,3}/, "")}` : p;
1255
1256
  let e = t[1].trim();
1256
1257
  return {
1257
1258
  type: "heading",
1258
- raw: Nr(t[0], "\n"),
1259
+ raw: Ir(t[0], "\n"),
1259
1260
  depth: t[2].charAt(0) === "=" ? 1 : 2,
1260
1261
  text: e,
1261
1262
  tokens: this.lexer.inline(e)
@@ -1307,14 +1308,14 @@ ${p}`) ? ` ${l.replace(/^ {0,3}/, "")}` : p;
1307
1308
  let t = this.rules.inline.link.exec(e);
1308
1309
  if (t) {
1309
1310
  let n = t[0].charAt(0) === "!" ? 2 : 1;
1310
- if (!this.options.pedantic && Br(e, t[1], n, this.rules)) return;
1311
+ if (!this.options.pedantic && Ur(e, t[1], n, this.rules)) return;
1311
1312
  let r = t[2].trim();
1312
1313
  if (!this.options.pedantic && this.rules.other.startAngleBracket.test(r)) {
1313
1314
  if (!this.rules.other.endAngleBracket.test(r)) return;
1314
- let e = Nr(r.slice(0, -1), "\\");
1315
+ let e = Ir(r.slice(0, -1), "\\");
1315
1316
  if ((r.length - e.length) % 2 == 0) return;
1316
1317
  } else {
1317
- let e = Ir(t[2], "()");
1318
+ let e = zr(t[2], "()");
1318
1319
  if (e === -2) return;
1319
1320
  if (e > -1) {
1320
1321
  let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
@@ -1326,7 +1327,7 @@ ${p}`) ? ` ${l.replace(/^ {0,3}/, "")}` : p;
1326
1327
  let e = this.rules.other.pedanticHrefTitle.exec(i);
1327
1328
  e && (i = e[1], a = e[3]);
1328
1329
  } else a = t[3] ? t[3].slice(1, -1) : "";
1329
- return i = i.trim(), this.rules.other.startAngleBracket.test(i) && (i = this.options.pedantic && !this.rules.other.endAngleBracket.test(r) ? i.slice(1) : i.slice(1, -1)), Rr(t, {
1330
+ return i = i.trim(), this.rules.other.startAngleBracket.test(i) && (i = this.options.pedantic && !this.rules.other.endAngleBracket.test(r) ? i.slice(1) : i.slice(1, -1)), Vr(t, {
1330
1331
  href: i && i.replace(this.rules.inline.anyPunctuation, "$1"),
1331
1332
  title: a && a.replace(this.rules.inline.anyPunctuation, "$1")
1332
1333
  }, t[0], this.lexer, this.rules);
@@ -1336,8 +1337,8 @@ ${p}`) ? ` ${l.replace(/^ {0,3}/, "")}` : p;
1336
1337
  let n;
1337
1338
  if ((n = this.rules.inline.reflink.exec(e)) || (n = this.rules.inline.nolink.exec(e))) {
1338
1339
  let r = n[0].charAt(0) === "!" ? 2 : 1;
1339
- if (!this.options.pedantic && Br(e, n[1], r, this.rules)) return;
1340
- let i = t[Fr((n[2] || n[1]).replace(this.rules.other.multipleSpaceGlobal, " "))];
1340
+ if (!this.options.pedantic && Ur(e, n[1], r, this.rules)) return;
1341
+ let i = t[Rr((n[2] || n[1]).replace(this.rules.other.multipleSpaceGlobal, " "))];
1341
1342
  if (!i) {
1342
1343
  let e = n[0].charAt(0);
1343
1344
  return {
@@ -1346,7 +1347,7 @@ ${p}`) ? ` ${l.replace(/^ {0,3}/, "")}` : p;
1346
1347
  text: e
1347
1348
  };
1348
1349
  }
1349
- return Rr(n, i, n[0], this.lexer, this.rules);
1350
+ return Vr(n, i, n[0], this.lexer, this.rules);
1350
1351
  }
1351
1352
  }
1352
1353
  emStrong(e, t, n = "") {
@@ -1487,19 +1488,19 @@ ${p}`) ? ` ${l.replace(/^ {0,3}/, "")}` : p;
1487
1488
  return {
1488
1489
  type: "text",
1489
1490
  raw: t[0],
1490
- text: e ? t[0] : Ar(t[0]),
1491
+ text: e ? t[0] : Nr(t[0]),
1491
1492
  escaped: e
1492
1493
  };
1493
1494
  }
1494
1495
  }
1495
- }, H = class e {
1496
+ }, V = class e {
1496
1497
  tokens;
1497
1498
  options;
1498
1499
  state;
1499
1500
  inlineQueue;
1500
1501
  tokenizer;
1501
1502
  constructor(e) {
1502
- this.tokens = [], this.tokens.links = Object.create(null), this.options = e || cn, this.options.tokenizer = this.options.tokenizer || new Vr(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
1503
+ this.tokens = [], this.tokens.links = Object.create(null), this.options = e || dn, this.options.tokenizer = this.options.tokenizer || new Wr(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
1503
1504
  inLink: !1,
1504
1505
  inRawBlock: !1,
1505
1506
  linkEmitted: !1,
@@ -1507,16 +1508,16 @@ ${p}`) ? ` ${l.replace(/^ {0,3}/, "")}` : p;
1507
1508
  top: !0
1508
1509
  };
1509
1510
  let t = {
1510
- other: z,
1511
- block: Er.normal,
1512
- inline: Dr.normal
1511
+ other: R,
1512
+ block: kr.normal,
1513
+ inline: Ar.normal
1513
1514
  };
1514
- this.options.pedantic ? (t.block = Er.pedantic, t.inline = Dr.pedantic) : this.options.gfm && (t.block = Er.gfm, t.inline = this.options.breaks ? Dr.breaks : Dr.gfm), this.tokenizer.rules = t;
1515
+ this.options.pedantic ? (t.block = kr.pedantic, t.inline = Ar.pedantic) : this.options.gfm && (t.block = kr.gfm, t.inline = this.options.breaks ? Ar.breaks : Ar.gfm), this.tokenizer.rules = t;
1515
1516
  }
1516
1517
  static get rules() {
1517
1518
  return {
1518
- block: Er,
1519
- inline: Dr
1519
+ block: kr,
1520
+ inline: Ar
1520
1521
  };
1521
1522
  }
1522
1523
  static lex(t, n) {
@@ -1526,7 +1527,7 @@ ${p}`) ? ` ${l.replace(/^ {0,3}/, "")}` : p;
1526
1527
  return new e(n).inlineTokens(t);
1527
1528
  }
1528
1529
  lex(e) {
1529
- e = e.replace(z.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
1530
+ e = e.replace(R.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
1530
1531
  for (let e = 0; e < this.inlineQueue.length; e++) {
1531
1532
  let t = this.inlineQueue[e];
1532
1533
  this.state.inRawBlock = !1, this.inlineTokens(t.src, t.tokens);
@@ -1534,7 +1535,7 @@ ${p}`) ? ` ${l.replace(/^ {0,3}/, "")}` : p;
1534
1535
  return this.inlineQueue = [], this.tokens;
1535
1536
  }
1536
1537
  blockTokens(e, t = [], n = !1) {
1537
- this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(z.tabCharGlobal, " ").replace(z.spaceLine, ""));
1538
+ this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(R.tabCharGlobal, " ").replace(R.spaceLine, ""));
1538
1539
  let r = 1 / 0;
1539
1540
  for (; e;) {
1540
1541
  if (e.length < r) r = e.length;
@@ -1606,7 +1607,7 @@ ${p}`) ? ` ${l.replace(/^ {0,3}/, "")}` : p;
1606
1607
  for (let n of e.matchAll(this.tokenizer.rules.inline.blockSkip)) if (t.test(n[0]) && e.charAt(n.index - 1) !== "!") return !0;
1607
1608
  for (let t of e.matchAll(this.tokenizer.rules.inline.reflinkSearch)) {
1608
1609
  let e = t[0], n = e.lastIndexOf("[");
1609
- if (e.charAt(0) !== "!" && Object.hasOwn(this.tokens.links, Fr(e.slice(n + 1, -1))) && !(n > 1 && this.linkInText(e.slice(1, n - 1)))) return !0;
1610
+ if (e.charAt(0) !== "!" && Object.hasOwn(this.tokens.links, Rr(e.slice(n + 1, -1))) && !(n > 1 && this.linkInText(e.slice(1, n - 1)))) return !0;
1610
1611
  }
1611
1612
  return !1;
1612
1613
  }
@@ -1621,7 +1622,7 @@ ${p}`) ? ` ${l.replace(/^ {0,3}/, "")}` : p;
1621
1622
  }
1622
1623
  }
1623
1624
  #e(e, t) {
1624
- let n = e.includes("*") || e.includes("_") || e.includes("~") || this.options.hooks?.emStrongMask || this.tokenizer.emStrong !== Vr.prototype.emStrong || this.tokenizer.del !== Vr.prototype.del ? this.#t(e) : e, r = !1, i = "", a = 1 / 0;
1625
+ let n = e.includes("*") || e.includes("_") || e.includes("~") || this.options.hooks?.emStrongMask || this.tokenizer.emStrong !== Wr.prototype.emStrong || this.tokenizer.del !== Wr.prototype.del ? this.#t(e) : e, r = !1, i = "", a = 1 / 0;
1625
1626
  for (; e;) {
1626
1627
  if (e.length < a) a = e.length;
1627
1628
  else {
@@ -1668,7 +1669,7 @@ ${p}`) ? ` ${l.replace(/^ {0,3}/, "")}` : p;
1668
1669
  if (this.tokens.links && e.includes("[")) {
1669
1670
  let e = this.tokenizer.rules.inline.reflinkSearch, n = (t) => {
1670
1671
  let r = t.lastIndexOf("[");
1671
- if (!Object.hasOwn(this.tokens.links, Fr(t.slice(r + 1, -1)))) return t;
1672
+ if (!Object.hasOwn(this.tokens.links, Rr(t.slice(r + 1, -1)))) return t;
1672
1673
  if (r > 1 && t.charAt(0) !== "!") {
1673
1674
  let i = t.slice(1, r - 1);
1674
1675
  if (this.linkInText(i)) return "[" + i.replace(e, n) + "][" + "a".repeat(t.length - r - 2) + "]";
@@ -1687,18 +1688,18 @@ ${p}`) ? ` ${l.replace(/^ {0,3}/, "")}` : p;
1687
1688
  if (this.options.silent) console.error(t);
1688
1689
  else throw Error(t);
1689
1690
  }
1690
- }, Hr = class {
1691
+ }, Gr = class {
1691
1692
  options;
1692
1693
  parser;
1693
1694
  constructor(e) {
1694
- this.options = e || cn;
1695
+ this.options = e || dn;
1695
1696
  }
1696
1697
  space(e) {
1697
1698
  return "";
1698
1699
  }
1699
1700
  code({ text: e, lang: t, escaped: n }) {
1700
- let r = (t || "").match(z.notSpaceStart)?.[0], i = e ? e.replace(z.endingNewline, "") + "\n" : "";
1701
- return r ? "<pre><code class=\"language-" + V(r) + "\">" + (n ? i : V(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : V(i, !0)) + "</code></pre>\n";
1701
+ let r = (t || "").match(R.notSpaceStart)?.[0], i = e ? e.replace(R.endingNewline, "") + "\n" : "";
1702
+ return r ? "<pre><code class=\"language-" + B(r) + "\">" + (n ? i : B(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : B(i, !0)) + "</code></pre>\n";
1702
1703
  }
1703
1704
  blockquote({ tokens: e }) {
1704
1705
  return `<blockquote>
@@ -1768,7 +1769,7 @@ ${e}</tr>
1768
1769
  return `<em>${this.parser.parseInline(e)}</em>`;
1769
1770
  }
1770
1771
  codespan({ text: e }) {
1771
- return `<code>${V(e, !0)}</code>`;
1772
+ return `<code>${B(e, !0)}</code>`;
1772
1773
  }
1773
1774
  br(e) {
1774
1775
  return "<br>";
@@ -1777,24 +1778,24 @@ ${e}</tr>
1777
1778
  return `<del>${this.parser.parseInline(e)}</del>`;
1778
1779
  }
1779
1780
  link({ href: e, title: t, text: n, tokens: r, autolink: i }) {
1780
- let a = i ? V(n, !0) : this.parser.parseInline(r), o = jr(e);
1781
+ let a = i ? B(n, !0) : this.parser.parseInline(r), o = Pr(e);
1781
1782
  if (o === null) return a;
1782
- e = V(o, i);
1783
+ e = B(o, i);
1783
1784
  let s = "<a href=\"" + e + "\"";
1784
- return t && (s += " title=\"" + V(t) + "\""), s += ">" + a + "</a>", s;
1785
+ return t && (s += " title=\"" + B(t) + "\""), s += ">" + a + "</a>", s;
1785
1786
  }
1786
1787
  image({ href: e, title: t, text: n, tokens: r }) {
1787
1788
  r && (n = this.parser.parseInline(r, this.parser.textRenderer));
1788
- let i = jr(e);
1789
- if (i === null) return V(n);
1789
+ let i = Pr(e);
1790
+ if (i === null) return B(n);
1790
1791
  e = i;
1791
- let a = `<img src="${V(e)}" alt="${V(n)}"`;
1792
- return t && (a += ` title="${V(t)}"`), a += ">", a;
1792
+ let a = `<img src="${B(e)}" alt="${B(n)}"`;
1793
+ return t && (a += ` title="${B(t)}"`), a += ">", a;
1793
1794
  }
1794
1795
  text(e) {
1795
- return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : V(e.text);
1796
+ return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : B(e.text);
1796
1797
  }
1797
- }, Ur = class {
1798
+ }, Kr = class {
1798
1799
  parser;
1799
1800
  strong({ text: e, tokens: t }) {
1800
1801
  return t ? this.parser.parseInline(t, this) : e;
@@ -1826,12 +1827,12 @@ ${e}</tr>
1826
1827
  checkbox({ raw: e }) {
1827
1828
  return e;
1828
1829
  }
1829
- }, U = class e {
1830
+ }, H = class e {
1830
1831
  options;
1831
1832
  renderer;
1832
1833
  textRenderer;
1833
1834
  constructor(e) {
1834
- this.options = e || cn, this.options.renderer = this.options.renderer || new Hr(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Ur(), this.textRenderer.parser = this;
1835
+ this.options = e || dn, this.options.renderer = this.options.renderer || new Gr(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Kr(), this.textRenderer.parser = this;
1835
1836
  }
1836
1837
  static parse(t, n) {
1837
1838
  return new e(n).parse(t);
@@ -1979,11 +1980,11 @@ ${e}</tr>
1979
1980
  }
1980
1981
  return n;
1981
1982
  }
1982
- }, Wr = class {
1983
+ }, qr = class {
1983
1984
  options;
1984
1985
  block;
1985
1986
  constructor(e) {
1986
- this.options = e || cn;
1987
+ this.options = e || dn;
1987
1988
  }
1988
1989
  static passThroughHooks = /* @__PURE__ */ new Set([
1989
1990
  "preprocess",
@@ -2009,50 +2010,50 @@ ${e}</tr>
2009
2010
  return e;
2010
2011
  }
2011
2012
  provideLexer(e = this.block) {
2012
- return e ? H.lex : H.lexInline;
2013
+ return e ? V.lex : V.lexInline;
2013
2014
  }
2014
2015
  provideParser(e = this.block) {
2015
- return e ? U.parse : U.parseInline;
2016
+ return e ? H.parse : H.parseInline;
2016
2017
  }
2017
2018
  };
2018
- function Gr(e, t) {
2019
+ function Jr(e, t) {
2019
2020
  if (Array.isArray(t)) for (let n = 0; n < t.length; n++) e.push(t[n]);
2020
2021
  else e.push(t);
2021
2022
  }
2022
- var Kr = new class {
2023
- defaults = sn();
2023
+ var Yr = new class {
2024
+ defaults = un();
2024
2025
  options = this.setOptions;
2025
2026
  parse = this.parseMarkdown(!0);
2026
2027
  parseInline = this.parseMarkdown(!1);
2027
- Parser = U;
2028
- Renderer = Hr;
2029
- TextRenderer = Ur;
2030
- Lexer = H;
2031
- Tokenizer = Vr;
2032
- Hooks = Wr;
2028
+ Parser = H;
2029
+ Renderer = Gr;
2030
+ TextRenderer = Kr;
2031
+ Lexer = V;
2032
+ Tokenizer = Wr;
2033
+ Hooks = qr;
2033
2034
  constructor(...e) {
2034
2035
  this.use(...e);
2035
2036
  }
2036
2037
  walkTokens(e, t) {
2037
2038
  let n = [];
2038
- for (let r of e) switch (Gr(n, t.call(this, r)), r.type) {
2039
+ for (let r of e) switch (Jr(n, t.call(this, r)), r.type) {
2039
2040
  case "table": {
2040
2041
  let e = r;
2041
- for (let r of e.header) Gr(n, this.walkTokens(r.tokens, t));
2042
- for (let r of e.rows) for (let e of r) Gr(n, this.walkTokens(e.tokens, t));
2042
+ for (let r of e.header) Jr(n, this.walkTokens(r.tokens, t));
2043
+ for (let r of e.rows) for (let e of r) Jr(n, this.walkTokens(e.tokens, t));
2043
2044
  break;
2044
2045
  }
2045
2046
  case "list": {
2046
2047
  let e = r;
2047
- Gr(n, this.walkTokens(e.items, t));
2048
+ Jr(n, this.walkTokens(e.items, t));
2048
2049
  break;
2049
2050
  }
2050
2051
  default: {
2051
2052
  let e = r;
2052
2053
  this.defaults.extensions?.childTokens?.[e.type] ? this.defaults.extensions.childTokens[e.type].forEach((r) => {
2053
2054
  let i = e[r].flat(1 / 0);
2054
- Gr(n, this.walkTokens(i, t));
2055
- }) : e.tokens && Gr(n, this.walkTokens(e.tokens, t));
2055
+ Jr(n, this.walkTokens(i, t));
2056
+ }) : e.tokens && Jr(n, this.walkTokens(e.tokens, t));
2056
2057
  }
2057
2058
  }
2058
2059
  return n;
@@ -2080,7 +2081,7 @@ var Kr = new class {
2080
2081
  }
2081
2082
  "childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
2082
2083
  }), n.extensions = t), e.renderer) {
2083
- let t = this.defaults.renderer || new Hr(this.defaults);
2084
+ let t = this.defaults.renderer || new Gr(this.defaults);
2084
2085
  for (let n in e.renderer) {
2085
2086
  if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
2086
2087
  if (["options", "parser"].includes(n)) continue;
@@ -2093,7 +2094,7 @@ var Kr = new class {
2093
2094
  n.renderer = t;
2094
2095
  }
2095
2096
  if (e.tokenizer) {
2096
- let t = this.defaults.tokenizer || new Vr(this.defaults);
2097
+ let t = this.defaults.tokenizer || new Wr(this.defaults);
2097
2098
  for (let n in e.tokenizer) {
2098
2099
  if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
2099
2100
  if ([
@@ -2110,13 +2111,13 @@ var Kr = new class {
2110
2111
  n.tokenizer = t;
2111
2112
  }
2112
2113
  if (e.hooks) {
2113
- let t = this.defaults.hooks || new Wr();
2114
+ let t = this.defaults.hooks || new qr();
2114
2115
  for (let n in e.hooks) {
2115
2116
  if (!(n in t)) throw Error(`hook '${n}' does not exist`);
2116
2117
  if (["options", "block"].includes(n)) continue;
2117
2118
  let r = n, i = e.hooks[r], a = t[r];
2118
- t[r] = Wr.passThroughHooks.has(n) ? (e) => {
2119
- if (t.options.async && Wr.passThroughHooksRespectAsync.has(n)) return (async () => {
2119
+ t[r] = qr.passThroughHooks.has(n) ? (e) => {
2120
+ if (t.options.async && qr.passThroughHooksRespectAsync.has(n)) return (async () => {
2120
2121
  let n = await i.call(t, e);
2121
2122
  return a.call(t, n);
2122
2123
  })();
@@ -2137,7 +2138,7 @@ var Kr = new class {
2137
2138
  let t = this.defaults.walkTokens, r = e.walkTokens;
2138
2139
  n.walkTokens = function(e) {
2139
2140
  let n = [];
2140
- return n.push(r.call(this, e)), t && Gr(n, t.call(this, e)), n;
2141
+ return n.push(r.call(this, e)), t && Jr(n, t.call(this, e)), n;
2141
2142
  };
2142
2143
  }
2143
2144
  this.defaults = {
@@ -2153,10 +2154,10 @@ var Kr = new class {
2153
2154
  }, this;
2154
2155
  }
2155
2156
  lexer(e, t) {
2156
- return H.lex(e, t ?? this.defaults);
2157
+ return V.lex(e, t ?? this.defaults);
2157
2158
  }
2158
2159
  parser(e, t) {
2159
- return U.parse(e, t ?? this.defaults);
2160
+ return H.parse(e, t ?? this.defaults);
2160
2161
  }
2161
2162
  parseMarkdown(e) {
2162
2163
  return (t, n) => {
@@ -2168,16 +2169,16 @@ var Kr = new class {
2168
2169
  if (typeof t > "u" || t === null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
2169
2170
  if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
2170
2171
  if (i.hooks && (i.hooks.options = i, i.hooks.block = e), i.async) return (async () => {
2171
- let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer(e) : e ? H.lex : H.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
2172
+ let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer(e) : e ? V.lex : V.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
2172
2173
  i.walkTokens && await Promise.all(this.walkTokens(a, i.walkTokens));
2173
- let o = await (i.hooks ? await i.hooks.provideParser(e) : e ? U.parse : U.parseInline)(a, i);
2174
+ let o = await (i.hooks ? await i.hooks.provideParser(e) : e ? H.parse : H.parseInline)(a, i);
2174
2175
  return i.hooks ? await i.hooks.postprocess(o) : o;
2175
2176
  })().catch(a);
2176
2177
  try {
2177
2178
  i.hooks && (t = i.hooks.preprocess(t));
2178
- let n = (i.hooks ? i.hooks.provideLexer(e) : e ? H.lex : H.lexInline)(t, i);
2179
+ let n = (i.hooks ? i.hooks.provideLexer(e) : e ? V.lex : V.lexInline)(t, i);
2179
2180
  i.hooks && (n = i.hooks.processAllTokens(n)), i.walkTokens && this.walkTokens(n, i.walkTokens);
2180
- let r = (i.hooks ? i.hooks.provideParser(e) : e ? U.parse : U.parseInline)(n, i);
2181
+ let r = (i.hooks ? i.hooks.provideParser(e) : e ? H.parse : H.parseInline)(n, i);
2181
2182
  return i.hooks && (r = i.hooks.postprocess(r)), r;
2182
2183
  } catch (e) {
2183
2184
  return a(e);
@@ -2187,7 +2188,7 @@ var Kr = new class {
2187
2188
  onError(e, t) {
2188
2189
  return (n) => {
2189
2190
  if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
2190
- let e = "<p>An error occurred:</p><pre>" + V(n.message + "", !0) + "</pre>";
2191
+ let e = "<p>An error occurred:</p><pre>" + B(n.message + "", !0) + "</pre>";
2191
2192
  return t ? Promise.resolve(e) : e;
2192
2193
  }
2193
2194
  if (t) return Promise.reject(n);
@@ -2195,31 +2196,31 @@ var Kr = new class {
2195
2196
  };
2196
2197
  }
2197
2198
  }();
2198
- function W(e, t) {
2199
- return Kr.parse(e, t);
2199
+ function U(e, t) {
2200
+ return Yr.parse(e, t);
2200
2201
  }
2201
- W.options = W.setOptions = function(e) {
2202
- return Kr.setOptions(e), W.defaults = Kr.defaults, ln(W.defaults), W;
2203
- }, W.getDefaults = sn, W.defaults = cn;
2204
- function qr(...e) {
2205
- return Kr.use(...e), W.defaults = Kr.defaults, ln(W.defaults), W;
2202
+ U.options = U.setOptions = function(e) {
2203
+ return Yr.setOptions(e), U.defaults = Yr.defaults, fn(U.defaults), U;
2204
+ }, U.getDefaults = un, U.defaults = dn;
2205
+ function Xr(...e) {
2206
+ return Yr.use(...e), U.defaults = Yr.defaults, fn(U.defaults), U;
2206
2207
  }
2207
- W.use = qr, W.walkTokens = function(e, t) {
2208
- return Kr.walkTokens(e, t);
2209
- }, W.parseInline = Kr.parseInline, W.Parser = U, W.parser = U.parse, W.Renderer = Hr, W.TextRenderer = Ur, W.Lexer = H, W.lexer = H.lex, W.Tokenizer = Vr, W.Hooks = Wr, W.parse = W, W.options, W.setOptions, W.walkTokens, W.parseInline, U.parse, H.lex;
2208
+ U.use = Xr, U.walkTokens = function(e, t) {
2209
+ return Yr.walkTokens(e, t);
2210
+ }, U.parseInline = Yr.parseInline, U.Parser = H, U.parser = H.parse, U.Renderer = Gr, U.TextRenderer = Kr, U.Lexer = V, U.lexer = V.lex, U.Tokenizer = Wr, U.Hooks = qr, U.parse = U, U.options, U.setOptions, U.walkTokens, U.parseInline, H.parse, V.lex;
2210
2211
  // ../../node_modules/.pnpm/dompurify@3.4.17/node_modules/dompurify/dist/purify.es.mjs
2211
- function Jr(e, t) {
2212
+ function Zr(e, t) {
2212
2213
  this.v = e, this.k = t;
2213
2214
  }
2214
- function Yr(e, t) {
2215
+ function Qr(e, t) {
2215
2216
  (t == null || t > e.length) && (t = e.length);
2216
2217
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
2217
2218
  return r;
2218
2219
  }
2219
- function Xr(e) {
2220
+ function $r(e) {
2220
2221
  if (Array.isArray(e)) return e;
2221
2222
  }
2222
- function Zr(e, t) {
2223
+ function ei(e, t) {
2223
2224
  var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
2224
2225
  if (n != null) {
2225
2226
  var r, i, a, o, s = [], c = !0, l = !1;
@@ -2240,24 +2241,24 @@ function Zr(e, t) {
2240
2241
  return s;
2241
2242
  }
2242
2243
  }
2243
- function Qr() {
2244
+ function ti() {
2244
2245
  throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2245
2246
  }
2246
- function $r(e, t) {
2247
- return Xr(e) || Zr(e, t) || ei(e, t) || Qr();
2247
+ function ni(e, t) {
2248
+ return $r(e) || ei(e, t) || ri(e, t) || ti();
2248
2249
  }
2249
- function ei(e, t) {
2250
+ function ri(e, t) {
2250
2251
  if (e) {
2251
- if (typeof e == "string") return Yr(e, t);
2252
+ if (typeof e == "string") return Qr(e, t);
2252
2253
  var n = {}.toString.call(e).slice(8, -1);
2253
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Yr(e, t) : void 0;
2254
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Qr(e, t) : void 0;
2254
2255
  }
2255
2256
  }
2256
- function ti(e) {
2257
+ function ii(e) {
2257
2258
  var t, n;
2258
2259
  function r(t, n) {
2259
2260
  try {
2260
- var a = e[t](n), o = a.value, s = o instanceof Jr;
2261
+ var a = e[t](n), o = a.value, s = o instanceof Zr;
2261
2262
  Promise.resolve(s ? o.v : o).then(function(n) {
2262
2263
  if (s) {
2263
2264
  var c = t === "return" && o.k ? t : "next";
@@ -2291,119 +2292,119 @@ function ti(e) {
2291
2292
  });
2292
2293
  }, typeof e.return != "function" && (this.return = void 0);
2293
2294
  }
2294
- ti.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
2295
+ ii.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
2295
2296
  return this;
2296
- }, ti.prototype.next = function(e) {
2297
+ }, ii.prototype.next = function(e) {
2297
2298
  return this._invoke("next", e);
2298
- }, ti.prototype.throw = function(e) {
2299
+ }, ii.prototype.throw = function(e) {
2299
2300
  return this._invoke("throw", e);
2300
- }, ti.prototype.return = function(e) {
2301
+ }, ii.prototype.return = function(e) {
2301
2302
  return this._invoke("return", e);
2302
2303
  };
2303
- var ni = Object.entries, ri = Object.setPrototypeOf, ii = Object.isFrozen, ai = Object.getPrototypeOf, oi = Object.getOwnPropertyDescriptor, G = Object.freeze, K = Object.seal, si = Object.create, ci = typeof Reflect < "u" && Reflect, li = ci.apply, ui = ci.construct;
2304
- G ||= function(e) {
2304
+ var ai = Object.entries, oi = Object.setPrototypeOf, si = Object.isFrozen, ci = Object.getPrototypeOf, li = Object.getOwnPropertyDescriptor, W = Object.freeze, G = Object.seal, ui = Object.create, di = typeof Reflect < "u" && Reflect, fi = di.apply, pi = di.construct;
2305
+ W ||= function(e) {
2305
2306
  return e;
2306
- }, K ||= function(e) {
2307
+ }, G ||= function(e) {
2307
2308
  return e;
2308
- }, li ||= function(e, t) {
2309
+ }, fi ||= function(e, t) {
2309
2310
  var n = [...arguments].slice(2);
2310
2311
  return e.apply(t, n);
2311
- }, ui ||= function(e) {
2312
+ }, pi ||= function(e) {
2312
2313
  return new e(...[...arguments].slice(1));
2313
2314
  };
2314
- var di = Y(Array.prototype.forEach);
2315
+ var mi = Y(Array.prototype.forEach);
2315
2316
  Array.prototype.indexOf;
2316
- var fi = Y(Array.prototype.lastIndexOf), pi = Y(Array.prototype.pop), mi = Y(Array.prototype.push), hi = Y(Array.prototype.slice), gi = Y(Array.prototype.splice), _i = Array.isArray, vi = Ni(Set), yi = Y(Set.prototype.add), bi = Y(Set.prototype.has), xi = Y(String.prototype.toLowerCase), Si = Y(String.prototype.toString), Ci = Y(String.prototype.match), wi = Y(String.prototype.replace), Ti = Y(String.prototype.indexOf), Ei = Y(String.prototype.trim), Di = Y(Number.prototype.toString), Oi = Y(Boolean.prototype.toString), ki = typeof BigInt > "u" ? null : Y(BigInt.prototype.toString), Ai = typeof Symbol > "u" ? null : Y(Symbol.prototype.toString), q = Y(Object.prototype.hasOwnProperty), ji = Y(Object.prototype.toString), J = Y(RegExp.prototype.test), Mi = Ni(TypeError);
2317
+ var hi = Y(Array.prototype.lastIndexOf), gi = Y(Array.prototype.pop), _i = Y(Array.prototype.push), vi = Y(Array.prototype.slice), yi = Y(Array.prototype.splice), bi = Array.isArray, xi = Fi(Set), Si = Y(Set.prototype.add), Ci = Y(Set.prototype.has), wi = Y(String.prototype.toLowerCase), Ti = Y(String.prototype.toString), Ei = Y(String.prototype.match), Di = Y(String.prototype.replace), Oi = Y(String.prototype.indexOf), ki = Y(String.prototype.trim), Ai = Y(Number.prototype.toString), ji = Y(Boolean.prototype.toString), Mi = typeof BigInt > "u" ? null : Y(BigInt.prototype.toString), Ni = typeof Symbol > "u" ? null : Y(Symbol.prototype.toString), K = Y(Object.prototype.hasOwnProperty), Pi = Y(Object.prototype.toString), q = Y(RegExp.prototype.test), J = Fi(TypeError);
2317
2318
  function Y(e) {
2318
2319
  return function(t) {
2319
2320
  t instanceof RegExp && (t.lastIndex = 0);
2320
2321
  var n = [...arguments].slice(1);
2321
- return li(e, t, n);
2322
+ return fi(e, t, n);
2322
2323
  };
2323
2324
  }
2324
- function Ni(e) {
2325
+ function Fi(e) {
2325
2326
  return function() {
2326
- return ui(e, [...arguments]);
2327
+ return pi(e, [...arguments]);
2327
2328
  };
2328
2329
  }
2329
2330
  function X(e, t) {
2330
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : xi;
2331
- if (ri && ri(e, null), !_i(t)) return e;
2331
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : wi;
2332
+ if (oi && oi(e, null), !bi(t)) return e;
2332
2333
  let r = t.length;
2333
2334
  for (; r--;) {
2334
2335
  let i = t[r];
2335
2336
  if (typeof i == "string") {
2336
2337
  let e = n(i);
2337
- e !== i && (ii(t) || (t[r] = e), i = e);
2338
+ e !== i && (si(t) || (t[r] = e), i = e);
2338
2339
  }
2339
2340
  e[i] = !0;
2340
2341
  }
2341
2342
  return e;
2342
2343
  }
2343
- function Pi(e) {
2344
- for (let t = 0; t < e.length; t++) q(e, t) || (e[t] = null);
2344
+ function Ii(e) {
2345
+ for (let t = 0; t < e.length; t++) K(e, t) || (e[t] = null);
2345
2346
  return e;
2346
2347
  }
2347
2348
  function Z(e) {
2348
- let t = si(null);
2349
- for (let r of ni(e)) {
2350
- var n = $r(r, 2);
2349
+ let t = ui(null);
2350
+ for (let r of ai(e)) {
2351
+ var n = ni(r, 2);
2351
2352
  let i = n[0], a = n[1];
2352
- q(e, i) && (t[i] = _i(a) ? Pi(a) : a && typeof a == "object" && a.constructor === Object ? Z(a) : a);
2353
+ K(e, i) && (t[i] = bi(a) ? Ii(a) : a && typeof a == "object" && a.constructor === Object ? Z(a) : a);
2353
2354
  }
2354
2355
  return t;
2355
2356
  }
2356
- function Fi(e) {
2357
+ function Li(e) {
2357
2358
  switch (typeof e) {
2358
2359
  case "string": return e;
2359
- case "number": return Di(e);
2360
- case "boolean": return Oi(e);
2361
- case "bigint": return ki ? ki(e) : "0";
2362
- case "symbol": return Ai ? Ai(e) : "Symbol()";
2363
- case "undefined": return ji(e);
2360
+ case "number": return Ai(e);
2361
+ case "boolean": return ji(e);
2362
+ case "bigint": return Mi ? Mi(e) : "0";
2363
+ case "symbol": return Ni ? Ni(e) : "Symbol()";
2364
+ case "undefined": return Pi(e);
2364
2365
  case "function":
2365
2366
  case "object": {
2366
- if (e === null) return ji(e);
2367
+ if (e === null) return Pi(e);
2367
2368
  let t = e, n = Q(t, "toString");
2368
2369
  if (typeof n == "function") {
2369
2370
  let e = n(t);
2370
- return typeof e == "string" ? e : ji(e);
2371
+ return typeof e == "string" ? e : Pi(e);
2371
2372
  }
2372
- return ji(e);
2373
+ return Pi(e);
2373
2374
  }
2374
- default: return ji(e);
2375
+ default: return Pi(e);
2375
2376
  }
2376
2377
  }
2377
2378
  function Q(e, t) {
2378
2379
  for (; e !== null;) {
2379
- let n = oi(e, t);
2380
+ let n = li(e, t);
2380
2381
  if (n) {
2381
2382
  if (n.get) return Y(n.get);
2382
2383
  if (typeof n.value == "function") return Y(n.value);
2383
2384
  }
2384
- e = ai(e);
2385
+ e = ci(e);
2385
2386
  }
2386
2387
  function n() {
2387
2388
  return null;
2388
2389
  }
2389
2390
  return n;
2390
2391
  }
2391
- function Ii(e, t) {
2392
+ function Ri(e, t) {
2392
2393
  for (; e !== null;) {
2393
- let n = oi(e, t);
2394
+ let n = li(e, t);
2394
2395
  if (n) return n.get ? Y(n.get) : null;
2395
- e = ai(e);
2396
+ e = ci(e);
2396
2397
  }
2397
2398
  return null;
2398
2399
  }
2399
- function Li(e) {
2400
+ function zi(e) {
2400
2401
  try {
2401
- return J(e, ""), !0;
2402
+ return q(e, ""), !0;
2402
2403
  } catch {
2403
2404
  return !1;
2404
2405
  }
2405
2406
  }
2406
- var Ri = G(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), zi = G(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), Bi = G([
2407
+ var Bi = W(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), Vi = W(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), Hi = W([
2407
2408
  "feBlend",
2408
2409
  "feColorMatrix",
2409
2410
  "feComponentTransfer",
@@ -2429,7 +2430,7 @@ var Ri = G(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
2429
2430
  "feSpotLight",
2430
2431
  "feTile",
2431
2432
  "feTurbulence"
2432
- ]), Vi = G([
2433
+ ]), Ui = W([
2433
2434
  "animate",
2434
2435
  "color-profile",
2435
2436
  "cursor",
@@ -2452,7 +2453,7 @@ var Ri = G(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
2452
2453
  "solidcolor",
2453
2454
  "unknown",
2454
2455
  "use"
2455
- ]), Hi = G(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), Ui = G([
2456
+ ]), Wi = W(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), Gi = W([
2456
2457
  "maction",
2457
2458
  "maligngroup",
2458
2459
  "malignmark",
@@ -2468,13 +2469,13 @@ var Ri = G(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
2468
2469
  "annotation-xml",
2469
2470
  "mprescripts",
2470
2471
  "none"
2471
- ]), Wi = G(["#text"]), Gi = G(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), Ki = G(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), qi = G(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), Ji = G([
2472
+ ]), Ki = W(["#text"]), qi = W(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), Ji = W(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), Yi = W(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), Xi = W([
2472
2473
  "xlink:href",
2473
2474
  "xml:id",
2474
2475
  "xlink:title",
2475
2476
  "xml:space",
2476
2477
  "xmlns:xlink"
2477
- ]), Yi = K(/{{[\w\W]*|^[\w\W]*}}/g), Xi = K(/<%[\w\W]*|^[\w\W]*%>/g), Zi = K(/\${[\w\W]*/g), Qi = K(/^data-[\-\w.\u00B7-\uFFFF]+$/), $i = K(/^aria-[\-\w]+$/), ea = K(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), ta = K(/^(?:\w+script|data):/i), na = K(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), ra = K(/^html$/i), ia = K(/^[a-z][.\w]*(-[.\w]+)+$/i), aa = K(/<[/\w!]/g), oa = K(/<[/\w]/g), sa = K(/<\/no(script|embed|frames)/i), ca = K(/\/>/i), $ = {
2478
+ ]), Zi = G(/{{[\w\W]*|^[\w\W]*}}/g), Qi = G(/<%[\w\W]*|^[\w\W]*%>/g), $i = G(/\${[\w\W]*/g), ea = G(/^data-[\-\w.\u00B7-\uFFFF]+$/), ta = G(/^aria-[\-\w]+$/), na = G(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), ra = G(/^(?:\w+script|data):/i), ia = G(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), aa = G(/^html$/i), oa = G(/^[a-z][.\w]*(-[.\w]+)+$/i), sa = G(/<[/\w!]/g), ca = G(/<[/\w]/g), la = G(/<\/no(script|embed|frames)/i), ua = G(/\/>/i), $ = {
2478
2479
  element: 1,
2479
2480
  attribute: 2,
2480
2481
  text: 3,
@@ -2487,7 +2488,7 @@ var Ri = G(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
2487
2488
  documentType: 10,
2488
2489
  documentFragment: 11,
2489
2490
  notation: 12
2490
- }, la = G(X({}, [
2491
+ }, da = W(X({}, [
2491
2492
  "style",
2492
2493
  "script",
2493
2494
  "xmp",
@@ -2496,9 +2497,9 @@ var Ri = G(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
2496
2497
  "noframes",
2497
2498
  "plaintext",
2498
2499
  "noscript"
2499
- ])), ua = function() {
2500
+ ])), fa = function() {
2500
2501
  return typeof window > "u" ? null : window;
2501
- }, da = function(e, t) {
2502
+ }, pa = function(e, t) {
2502
2503
  if (typeof e != "object" || typeof e.createPolicy != "function") return null;
2503
2504
  let n = null, r = "data-tt-policy-suffix";
2504
2505
  t && t.hasAttribute(r) && (n = t.getAttribute(r));
@@ -2515,7 +2516,7 @@ var Ri = G(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
2515
2516
  } catch {
2516
2517
  return console.warn("TrustedTypes policy " + i + " could not be created."), null;
2517
2518
  }
2518
- }, fa = function() {
2519
+ }, ma = function() {
2519
2520
  return {
2520
2521
  afterSanitizeAttributes: [],
2521
2522
  afterSanitizeElements: [],
@@ -2527,62 +2528,62 @@ var Ri = G(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
2527
2528
  uponSanitizeElement: [],
2528
2529
  uponSanitizeShadowNode: []
2529
2530
  };
2530
- }, pa = function(e, t, n, r) {
2531
- return q(e, t) && _i(e[t]) ? X(r.base ? Z(r.base) : {}, e[t], r.transform) : n;
2532
- }, ma = function(e, t, n) {
2533
- let r = q(e, t) ? e[t] : void 0;
2531
+ }, ha = function(e, t, n, r) {
2532
+ return K(e, t) && bi(e[t]) ? X(r.base ? Z(r.base) : {}, e[t], r.transform) : n;
2533
+ }, ga = function(e, t, n) {
2534
+ let r = K(e, t) ? e[t] : void 0;
2534
2535
  return r && typeof r == "object" ? Z(r) : n();
2535
2536
  };
2536
- function ha() {
2537
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ua(), t = (e) => ha(e);
2537
+ function _a() {
2538
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : fa(), t = (e) => _a(e);
2538
2539
  if (t.version = "3.4.17", t.removed = [], !e || !e.document || e.document.nodeType !== $.document || !e.Element) return t.isSupported = !1, t;
2539
2540
  let n = e.document, r = n, i = r.currentScript;
2540
2541
  e.DocumentFragment;
2541
2542
  let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
2542
2543
  e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
2543
- let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = Q(d, "cloneNode"), p = Q(d, "remove"), ee = Q(d, "removeAttributeNode"), m = Q(d, "nextSibling"), h = Q(d, "childNodes"), te = Q(d, "parentNode"), ne = Q(d, "shadowRoot"), re = Q(d, "attributes"), ie = o && o.prototype ? Q(o.prototype, "nodeType") : null, ae = o && o.prototype ? Q(o.prototype, "nodeName") : null, oe = o && o.prototype ? Q(o.prototype, "ownerDocument") : null, g = function(e) {
2544
- return ie ? ie(e) : e.nodeType;
2545
- }, se = function(e) {
2546
- return ae ? ae(e) : e.nodeName;
2547
- }, ce = Ii(d, "namespaceURI"), le = function(e) {
2548
- return ce ? ce(e) : e.namespaceURI;
2544
+ let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = Q(d, "cloneNode"), p = Q(d, "remove"), ee = Q(d, "removeAttributeNode"), m = Q(d, "nextSibling"), h = Q(d, "childNodes"), te = Q(d, "parentNode"), ne = Q(d, "shadowRoot"), re = Q(d, "attributes"), g = o && o.prototype ? Q(o.prototype, "nodeType") : null, ie = o && o.prototype ? Q(o.prototype, "nodeName") : null, ae = o && o.prototype ? Q(o.prototype, "ownerDocument") : null, _ = function(e) {
2545
+ return g ? g(e) : e.nodeType;
2546
+ }, oe = function(e) {
2547
+ return ie ? ie(e) : e.nodeName;
2548
+ }, se = Ri(d, "namespaceURI"), ce = function(e) {
2549
+ return se ? se(e) : e.namespaceURI;
2549
2550
  };
2550
2551
  if (typeof a == "function") {
2551
2552
  let e = n.createElement("template");
2552
2553
  e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
2553
2554
  }
2554
- let _, v = "", ue, de = !1, fe = 0, pe = function() {
2555
- if (fe > 0) throw Mi("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
2556
- }, y = function(e) {
2555
+ let v, le = "", ue, de = !1, fe = 0, pe = function() {
2556
+ if (fe > 0) throw J("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
2557
+ }, me = function(e) {
2557
2558
  pe(), fe++;
2558
2559
  try {
2559
- return _.createHTML(e);
2560
+ return v.createHTML(e);
2560
2561
  } finally {
2561
2562
  fe--;
2562
2563
  }
2563
- }, b = function(e) {
2564
+ }, he = function(e) {
2564
2565
  pe(), fe++;
2565
2566
  try {
2566
- return _.createScriptURL(e);
2567
+ return v.createScriptURL(e);
2567
2568
  } finally {
2568
2569
  fe--;
2569
2570
  }
2570
- }, me = function() {
2571
- return de ||= (ue = da(u, i), !0), ue;
2572
- }, x = n, he = x.implementation, ge = x.createNodeIterator, _e = x.createDocumentFragment, ve = x.getElementsByTagName, ye = r.importNode, S = fa();
2573
- t.isSupported = typeof ni == "function" && typeof te == "function" && he && he.createHTMLDocument !== void 0;
2574
- let be = Yi, xe = Xi, Se = Zi, Ce = Qi, we = $i, Te = ta, Ee = na, De = ia, Oe = ea, C = null, ke = X({}, [
2575
- ...Ri,
2576
- ...zi,
2571
+ }, ge = function() {
2572
+ return de ||= (ue = pa(u, i), !0), ue;
2573
+ }, y = n, _e = y.implementation, b = y.createNodeIterator, ve = y.createDocumentFragment, ye = y.getElementsByTagName, be = r.importNode, x = ma();
2574
+ t.isSupported = typeof ai == "function" && typeof te == "function" && _e && _e.createHTMLDocument !== void 0;
2575
+ let xe = Zi, Se = Qi, Ce = $i, we = ea, Te = ta, Ee = ra, De = ia, Oe = oa, ke = na, S = null, Ae = X({}, [
2577
2576
  ...Bi,
2577
+ ...Vi,
2578
2578
  ...Hi,
2579
- ...Wi
2580
- ]), w = null, Ae = X({}, [
2581
- ...Gi,
2582
- ...Ki,
2579
+ ...Wi,
2580
+ ...Ki
2581
+ ]), C = null, je = X({}, [
2583
2582
  ...qi,
2584
- ...Ji
2585
- ]), T = Object.seal(si(null, {
2583
+ ...Ji,
2584
+ ...Yi,
2585
+ ...Xi
2586
+ ]), w = Object.seal(ui(null, {
2586
2587
  tagNameCheck: {
2587
2588
  writable: !0,
2588
2589
  configurable: !1,
@@ -2601,7 +2602,7 @@ function ha() {
2601
2602
  enumerable: !0,
2602
2603
  value: !1
2603
2604
  }
2604
- })), je = null, Me = null, Ne = Object.seal(si(null, {
2605
+ })), Me = null, Ne = null, T = Object.seal(ui(null, {
2605
2606
  tagCheck: {
2606
2607
  writable: !0,
2607
2608
  configurable: !1,
@@ -2614,14 +2615,14 @@ function ha() {
2614
2615
  enumerable: !0,
2615
2616
  value: null
2616
2617
  }
2617
- })), Pe = !0, Fe = !0, Ie = !1, Le = !0, E = !1, Re = !0, ze = !1, Be = !1, Ve = null, He = null, D = !1, O = !1, Ue = !1, We = !1, k = !0, Ge = !1, Ke = "user-content-", qe = !0, Je = !1, Ye = null, Xe = {}, Ze = null, Qe = X({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), A = null, $e = X({}, [
2618
+ })), Pe = !0, Fe = !0, Ie = !1, Le = !0, E = !1, Re = !0, D = !1, ze = !1, Be = null, Ve = null, He = !1, Ue = !1, O = !1, k = !1, We = !0, Ge = !1, A = "user-content-", Ke = !0, qe = !1, Je = null, Ye = {}, Xe = null, Ze = X({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Qe = null, $e = X({}, [
2618
2619
  "audio",
2619
2620
  "video",
2620
2621
  "img",
2621
2622
  "source",
2622
2623
  "image",
2623
2624
  "track"
2624
- ]), et = null, tt = X({}, [
2625
+ ]), j = null, et = X({}, [
2625
2626
  "alt",
2626
2627
  "class",
2627
2628
  "for",
@@ -2636,70 +2637,70 @@ function ha() {
2636
2637
  "value",
2637
2638
  "style",
2638
2639
  "xmlns"
2639
- ]), j = "http://www.w3.org/1998/Math/MathML", nt = "http://www.w3.org/2000/svg", M = "http://www.w3.org/1999/xhtml", rt = M, it = !1, at = null, ot = X({}, [
2640
- j,
2640
+ ]), tt = "http://www.w3.org/1998/Math/MathML", nt = "http://www.w3.org/2000/svg", M = "http://www.w3.org/1999/xhtml", rt = M, it = !1, at = null, ot = X({}, [
2641
+ tt,
2641
2642
  nt,
2642
2643
  M
2643
- ], Si), st = G([
2644
+ ], Ti), st = W([
2644
2645
  "mi",
2645
2646
  "mo",
2646
2647
  "mn",
2647
2648
  "ms",
2648
2649
  "mtext"
2649
- ]), ct = X({}, st), lt = G(["annotation-xml"]), ut = X({}, lt), dt = X({}, [
2650
+ ]), ct = X({}, st), lt = W(["annotation-xml"]), ut = X({}, lt), dt = X({}, [
2650
2651
  "title",
2651
2652
  "style",
2652
2653
  "font",
2653
2654
  "a",
2654
2655
  "script"
2655
- ]), ft = null, pt = ["application/xhtml+xml", "text/html"], N = null, mt = null, ht = n.createElement("form"), gt = function(e) {
2656
+ ]), ft = null, pt = ["application/xhtml+xml", "text/html"], N = null, P = null, mt = n.createElement("form"), ht = function(e) {
2656
2657
  return e instanceof RegExp || e instanceof Function;
2657
- }, _t = function() {
2658
+ }, gt = function() {
2658
2659
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2659
- if (mt && mt === e) return;
2660
- e && typeof e == "object" || (e = {}), e = Z(e), ft = pt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, N = ft === "application/xhtml+xml" ? Si : xi, C = pa(e, "ALLOWED_TAGS", ke, { transform: N }), w = pa(e, "ALLOWED_ATTR", Ae, { transform: N }), at = pa(e, "ALLOWED_NAMESPACES", ot, { transform: Si }), et = pa(e, "ADD_URI_SAFE_ATTR", tt, {
2660
+ if (P && P === e) return;
2661
+ e && typeof e == "object" || (e = {}), e = Z(e), ft = pt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, N = ft === "application/xhtml+xml" ? Ti : wi, S = ha(e, "ALLOWED_TAGS", Ae, { transform: N }), C = ha(e, "ALLOWED_ATTR", je, { transform: N }), at = ha(e, "ALLOWED_NAMESPACES", ot, { transform: Ti }), j = ha(e, "ADD_URI_SAFE_ATTR", et, {
2661
2662
  transform: N,
2662
- base: tt
2663
- }), A = pa(e, "ADD_DATA_URI_TAGS", $e, {
2663
+ base: et
2664
+ }), Qe = ha(e, "ADD_DATA_URI_TAGS", $e, {
2664
2665
  transform: N,
2665
2666
  base: $e
2666
- }), Ze = pa(e, "FORBID_CONTENTS", Qe, { transform: N }), je = pa(e, "FORBID_TAGS", Z({}), { transform: N }), Me = pa(e, "FORBID_ATTR", Z({}), { transform: N }), Xe = q(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? Z(e.USE_PROFILES) : e.USE_PROFILES : !1, Pe = e.ALLOW_ARIA_ATTR !== !1, Fe = e.ALLOW_DATA_ATTR !== !1, Ie = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Le = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, E = e.SAFE_FOR_TEMPLATES || !1, Re = e.SAFE_FOR_XML !== !1, ze = e.WHOLE_DOCUMENT || !1, O = e.RETURN_DOM || !1, Ue = e.RETURN_DOM_FRAGMENT || !1, We = e.RETURN_TRUSTED_TYPE || !1, D = e.FORCE_BODY || !1, k = e.SANITIZE_DOM !== !1, Ge = e.SANITIZE_NAMED_PROPS || !1, qe = e.KEEP_CONTENT !== !1, Je = e.IN_PLACE || !1, Oe = Li(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : ea, rt = typeof e.NAMESPACE == "string" ? e.NAMESPACE : M, ct = ma(e, "MATHML_TEXT_INTEGRATION_POINTS", () => X({}, st)), ut = ma(e, "HTML_INTEGRATION_POINTS", () => X({}, lt));
2667
- let t = ma(e, "CUSTOM_ELEMENT_HANDLING", () => si(null));
2668
- if (T = si(null), q(t, "tagNameCheck") && gt(t.tagNameCheck) && (T.tagNameCheck = t.tagNameCheck), q(t, "attributeNameCheck") && gt(t.attributeNameCheck) && (T.attributeNameCheck = t.attributeNameCheck), q(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (T.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), K(T), E && (Fe = !1), Ue && (O = !0), Xe && (C = X({}, Wi), w = si(null), Xe.html === !0 && (X(C, Ri), X(w, Gi)), Xe.svg === !0 && (X(C, zi), X(w, Ki), X(w, Ji)), Xe.svgFilters === !0 && (X(C, Bi), X(w, Ki), X(w, Ji)), Xe.mathMl === !0 && (X(C, Hi), X(w, qi), X(w, Ji))), Ne.tagCheck = null, Ne.attributeCheck = null, q(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? Ne.tagCheck = e.ADD_TAGS : _i(e.ADD_TAGS) && (C === ke && (C = Z(C)), X(C, e.ADD_TAGS, N))), q(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? Ne.attributeCheck = e.ADD_ATTR : _i(e.ADD_ATTR) && (w === Ae && (w = Z(w)), X(w, e.ADD_ATTR, N))), q(e, "ADD_FORBID_CONTENTS") && _i(e.ADD_FORBID_CONTENTS) && (Ze === Qe && (Ze = Z(Ze)), X(Ze, e.ADD_FORBID_CONTENTS, N)), qe && (C["#text"] = !0), ze && X(C, [
2667
+ }), Xe = ha(e, "FORBID_CONTENTS", Ze, { transform: N }), Me = ha(e, "FORBID_TAGS", Z({}), { transform: N }), Ne = ha(e, "FORBID_ATTR", Z({}), { transform: N }), Ye = K(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? Z(e.USE_PROFILES) : e.USE_PROFILES : !1, Pe = e.ALLOW_ARIA_ATTR !== !1, Fe = e.ALLOW_DATA_ATTR !== !1, Ie = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Le = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, E = e.SAFE_FOR_TEMPLATES || !1, Re = e.SAFE_FOR_XML !== !1, D = e.WHOLE_DOCUMENT || !1, Ue = e.RETURN_DOM || !1, O = e.RETURN_DOM_FRAGMENT || !1, k = e.RETURN_TRUSTED_TYPE || !1, He = e.FORCE_BODY || !1, We = e.SANITIZE_DOM !== !1, Ge = e.SANITIZE_NAMED_PROPS || !1, Ke = e.KEEP_CONTENT !== !1, qe = e.IN_PLACE || !1, ke = zi(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : na, rt = typeof e.NAMESPACE == "string" ? e.NAMESPACE : M, ct = ga(e, "MATHML_TEXT_INTEGRATION_POINTS", () => X({}, st)), ut = ga(e, "HTML_INTEGRATION_POINTS", () => X({}, lt));
2668
+ let t = ga(e, "CUSTOM_ELEMENT_HANDLING", () => ui(null));
2669
+ if (w = ui(null), K(t, "tagNameCheck") && ht(t.tagNameCheck) && (w.tagNameCheck = t.tagNameCheck), K(t, "attributeNameCheck") && ht(t.attributeNameCheck) && (w.attributeNameCheck = t.attributeNameCheck), K(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (w.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), G(w), E && (Fe = !1), O && (Ue = !0), Ye && (S = X({}, Ki), C = ui(null), Ye.html === !0 && (X(S, Bi), X(C, qi)), Ye.svg === !0 && (X(S, Vi), X(C, Ji), X(C, Xi)), Ye.svgFilters === !0 && (X(S, Hi), X(C, Ji), X(C, Xi)), Ye.mathMl === !0 && (X(S, Wi), X(C, Yi), X(C, Xi))), T.tagCheck = null, T.attributeCheck = null, K(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? T.tagCheck = e.ADD_TAGS : bi(e.ADD_TAGS) && (S === Ae && (S = Z(S)), X(S, e.ADD_TAGS, N))), K(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? T.attributeCheck = e.ADD_ATTR : bi(e.ADD_ATTR) && (C === je && (C = Z(C)), X(C, e.ADD_ATTR, N))), K(e, "ADD_FORBID_CONTENTS") && bi(e.ADD_FORBID_CONTENTS) && (Xe === Ze && (Xe = Z(Xe)), X(Xe, e.ADD_FORBID_CONTENTS, N)), Ke && (S["#text"] = !0), D && X(S, [
2669
2670
  "html",
2670
2671
  "head",
2671
2672
  "body"
2672
- ]), C.table && (X(C, ["tbody"]), delete je.tbody), e.TRUSTED_TYPES_POLICY) {
2673
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw Mi("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
2674
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Mi("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
2675
- let t = _;
2676
- _ = e.TRUSTED_TYPES_POLICY;
2673
+ ]), S.table && (X(S, ["tbody"]), delete Me.tbody), e.TRUSTED_TYPES_POLICY) {
2674
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw J("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
2675
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw J("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
2676
+ let t = v;
2677
+ v = e.TRUSTED_TYPES_POLICY;
2677
2678
  try {
2678
- v = y("");
2679
+ le = me("");
2679
2680
  } catch (e) {
2680
- throw _ = t, e;
2681
+ throw v = t, e;
2681
2682
  }
2682
- } else e.TRUSTED_TYPES_POLICY === null ? (_ = void 0, v = "") : (_ === void 0 && (_ = me()), _ && typeof v == "string" && (v = y("")));
2683
- G && G(e), mt = e;
2684
- }, vt = X({}, [
2685
- ...zi,
2686
- ...Bi,
2687
- ...Vi
2688
- ]), yt = X({}, [...Hi, ...Ui]), bt = function(e, t, n) {
2689
- return t.namespaceURI === M ? e === "svg" : t.namespaceURI === j ? e === "svg" && (n === "annotation-xml" || ct[n]) : !!vt[e];
2683
+ } else e.TRUSTED_TYPES_POLICY === null ? (v = void 0, le = "") : (v === void 0 && (v = ge()), v && typeof le == "string" && (le = me("")));
2684
+ W && W(e), P = e;
2685
+ }, _t = X({}, [
2686
+ ...Vi,
2687
+ ...Hi,
2688
+ ...Ui
2689
+ ]), vt = X({}, [...Wi, ...Gi]), yt = function(e, t, n) {
2690
+ return t.namespaceURI === M ? e === "svg" : t.namespaceURI === tt ? e === "svg" && (n === "annotation-xml" || ct[n]) : !!_t[e];
2691
+ }, bt = function(e, t, n) {
2692
+ return t.namespaceURI === M ? e === "math" : t.namespaceURI === nt ? e === "math" && ut[n] : !!vt[e];
2690
2693
  }, xt = function(e, t, n) {
2691
- return t.namespaceURI === M ? e === "math" : t.namespaceURI === nt ? e === "math" && ut[n] : !!yt[e];
2692
- }, St = function(e, t, n) {
2693
- return t.namespaceURI === nt && !ut[n] || t.namespaceURI === j && !ct[n] ? !1 : !yt[e] && (dt[e] || !vt[e]);
2694
+ return t.namespaceURI === nt && !ut[n] || t.namespaceURI === tt && !ct[n] ? !1 : !vt[e] && (dt[e] || !_t[e]);
2695
+ }, St = function(e) {
2696
+ let t = ce(e), n = wi(oe(e)), r = te(e), i, a;
2697
+ return r && _(r) === $.element ? (i = { namespaceURI: ce(r) }, a = wi(oe(r))) : (i = { namespaceURI: rt }, a = "template"), at[t] ? t === nt ? yt(n, i, a) : t === tt ? bt(n, i, a) : t === M ? xt(n, i, a) : !!(ft === "application/xhtml+xml" && at[t]) : !1;
2694
2698
  }, Ct = function(e) {
2695
- let t = le(e), n = xi(se(e)), r = te(e), i, a;
2696
- return r && g(r) === $.element ? (i = { namespaceURI: le(r) }, a = xi(se(r))) : (i = { namespaceURI: rt }, a = "template"), at[t] ? t === nt ? bt(n, i, a) : t === j ? xt(n, i, a) : t === M ? St(n, i, a) : !!(ft === "application/xhtml+xml" && at[t]) : !1;
2697
- }, P = function(e) {
2698
- mi(t.removed, { element: e });
2699
+ _i(t.removed, { element: e });
2699
2700
  try {
2700
2701
  te(e).removeChild(e);
2701
2702
  } catch {
2702
- if (p(e), !te(e)) throw Mi("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
2703
+ if (p(e), !te(e)) throw J("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
2703
2704
  }
2704
2705
  }, wt = function(e, t, n) {
2705
2706
  try {
@@ -2712,12 +2713,12 @@ function ha() {
2712
2713
  }, Tt = function(e) {
2713
2714
  kt(e);
2714
2715
  let t = h(e);
2715
- t && di(hi(t), (e) => {
2716
+ t && mi(vi(t), (e) => {
2716
2717
  try {
2717
2718
  p(e);
2718
2719
  } catch {}
2719
2720
  });
2720
- let n = g(e) === $.element ? re(e) : null;
2721
+ let n = _(e) === $.element ? re(e) : null;
2721
2722
  if (n) for (let t = n.length - 1; t >= 0; --t) {
2722
2723
  let r = n[t], i = r && r.name;
2723
2724
  typeof i == "string" && wt(e, r, i);
@@ -2728,7 +2729,7 @@ function ha() {
2728
2729
  } catch {
2729
2730
  r = null;
2730
2731
  }
2731
- mi(t.removed, {
2732
+ _i(t.removed, {
2732
2733
  attribute: r || null,
2733
2734
  from: n
2734
2735
  });
@@ -2740,8 +2741,8 @@ function ha() {
2740
2741
  } catch {}
2741
2742
  }
2742
2743
  if (e === "is") {
2743
- if (O || Ue) try {
2744
- P(n);
2744
+ if (Ue || O) try {
2745
+ Ct(n);
2745
2746
  } catch {}
2746
2747
  else try {
2747
2748
  n.setAttribute(e, "");
@@ -2751,23 +2752,23 @@ function ha() {
2751
2752
  let t = re(e);
2752
2753
  if (t) for (let n = t.length - 1; n >= 0; --n) {
2753
2754
  let r = t[n], i = r && r.name;
2754
- typeof i != "string" || w[N(i)] || wt(e, r, i);
2755
+ typeof i != "string" || C[N(i)] || wt(e, r, i);
2755
2756
  }
2756
2757
  }, Ot = function(e, t) {
2757
2758
  let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], r = [e];
2758
2759
  for (; r.length > 0;) {
2759
2760
  let e = r.pop();
2760
2761
  if (t(e) === !1) continue;
2761
- if (n && g(e) === $.element) {
2762
+ if (n && _(e) === $.element) {
2762
2763
  let t = ne(e);
2763
- F(t) && r.push(t);
2764
+ Wt(t) && r.push(t);
2764
2765
  }
2765
2766
  let i = h(e);
2766
2767
  if (i) for (let e = i.length - 1; e >= 0; --e) r.push(i[e]);
2767
2768
  }
2768
2769
  }, kt = function(e) {
2769
2770
  Ot(e, (e) => {
2770
- g(e) === $.element && Dt(e);
2771
+ _(e) === $.element && Dt(e);
2771
2772
  });
2772
2773
  }, At = function(e) {
2773
2774
  let t = [];
@@ -2775,49 +2776,49 @@ function ha() {
2775
2776
  t.push(e);
2776
2777
  }, !0), t;
2777
2778
  }, jt = function(e, t) {
2778
- let n = vi();
2779
- di(At(e), (e) => {
2780
- g(e) === $.element && yi(n, e);
2781
- }), di(t, (e) => {
2782
- g(e) === $.element && !bi(n, e) && Dt(e);
2779
+ let n = xi();
2780
+ mi(At(e), (e) => {
2781
+ _(e) === $.element && Si(n, e);
2782
+ }), mi(t, (e) => {
2783
+ _(e) === $.element && !Ci(n, e) && Dt(e);
2783
2784
  });
2784
2785
  }, Mt = function(e, n) {
2785
2786
  let r = !1;
2786
- return di(t.removed, (t) => {
2787
+ return mi(t.removed, (t) => {
2787
2788
  t.element && (r ||= t.element === e, kt(t.element));
2788
2789
  }), jt(e, n), r;
2789
2790
  }, Nt = function(e, t) {
2790
- let n = Ye, r = null, i = () => (r || (r = vi(), di(t, (e) => {
2791
- yi(r, e);
2791
+ let n = Je, r = null, i = () => (r || (r = xi(), mi(t, (e) => {
2792
+ Si(r, e);
2792
2793
  })), r);
2793
2794
  for (let t = 0;; t++) {
2794
2795
  let r = At(e), a = [e], o = !1;
2795
- if (di(r, (e) => {
2796
- g(e) === $.documentFragment ? mi(a, e) : !o && !bi(n, e) && (o = bi(i(), e));
2796
+ if (mi(r, (e) => {
2797
+ _(e) === $.documentFragment ? _i(a, e) : !o && !Ci(n, e) && (o = Ci(i(), e));
2797
2798
  }), !o) return;
2798
- if (t >= 8) throw Mi("the tree kept changing during in-place sanitization; refusing to return it");
2799
- di(a, (t, n) => {
2799
+ if (t >= 8) throw J("the tree kept changing during in-place sanitization; refusing to return it");
2800
+ mi(a, (t, n) => {
2800
2801
  Pt(t, n > 0, e, i());
2801
2802
  });
2802
2803
  }
2803
2804
  }, Pt = function(e, t, n, r) {
2804
2805
  let i = zt(e), a;
2805
- for (; a = i.nextNode();) bi(r, a) && !bi(Ye, a) && (t && I(S.uponSanitizeShadowNode, a, null), Xt(a, n), L(a, n), F(a.content) && rn(a.content));
2806
+ for (; a = i.nextNode();) Ci(r, a) && !Ci(Je, a) && (t && F(x.uponSanitizeShadowNode, a, null), Zt(a, n), an(a, n), Wt(a.content) && on(a.content));
2806
2807
  }, Ft = function(e) {
2807
- Ye && yi(Ye, e);
2808
+ Je && Si(Je, e);
2808
2809
  }, It = function(e, t) {
2809
2810
  return Re ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
2810
2811
  }, Lt = function(e) {
2811
2812
  Re && Ot(e, (e) => {
2812
- let t = g(e);
2813
- if (t === $.processingInstruction || t === $.comment && J(oa, e.data)) {
2813
+ let t = _(e);
2814
+ if (t === $.processingInstruction || t === $.comment && q(ca, e.data)) {
2814
2815
  try {
2815
2816
  p(e);
2816
2817
  } catch {}
2817
2818
  return !1;
2818
2819
  }
2819
2820
  if (t === $.element) {
2820
- let t = e, n = N(se(e));
2821
+ let t = e, n = N(oe(e));
2821
2822
  try {
2822
2823
  t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && It("for", n) && t.removeAttribute("for");
2823
2824
  } catch {}
@@ -2826,69 +2827,69 @@ function ha() {
2826
2827
  });
2827
2828
  }, Rt = function(e) {
2828
2829
  let t = null, r = null;
2829
- if (D) e = "<remove></remove>" + e;
2830
+ if (He) e = "<remove></remove>" + e;
2830
2831
  else {
2831
- let t = Ci(e, /^[\r\n\t ]+/);
2832
+ let t = Ei(e, /^[\r\n\t ]+/);
2832
2833
  r = t && t[0];
2833
2834
  }
2834
2835
  ft === "application/xhtml+xml" && rt === M && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
2835
- let i = _ ? y(e) : e;
2836
+ let i = v ? me(e) : e;
2836
2837
  if (rt === M) try {
2837
2838
  t = new l().parseFromString(i, ft);
2838
2839
  } catch {}
2839
2840
  if (!t || !t.documentElement) {
2840
- t = he.createDocument(rt, "template", null);
2841
+ t = _e.createDocument(rt, "template", null);
2841
2842
  try {
2842
- t.documentElement.innerHTML = it ? v : i;
2843
+ t.documentElement.innerHTML = it ? le : i;
2843
2844
  } catch {}
2844
2845
  }
2845
2846
  let a = t.body || t.documentElement;
2846
- return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), rt === M ? ve.call(t, ze ? "html" : "body")[0] : ze ? t.documentElement : a;
2847
+ return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), rt === M ? ye.call(t, D ? "html" : "body")[0] : D ? t.documentElement : a;
2847
2848
  }, zt = function(e) {
2848
- let t = oe ? oe(e) : e.ownerDocument;
2849
- return ge.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
2849
+ let t = ae ? ae(e) : e.ownerDocument;
2850
+ return b.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
2850
2851
  }, Bt = function(e) {
2851
- return e = wi(e, be, " "), e = wi(e, xe, " "), e = wi(e, Se, " "), e;
2852
+ return e = Di(e, xe, " "), e = Di(e, Se, " "), e = Di(e, Ce, " "), e;
2852
2853
  }, Vt = function(e) {
2853
2854
  Ht(e);
2854
2855
  let t = e.querySelectorAll?.call(e, "template");
2855
- t && di(t, (e) => {
2856
- F(e.content) && Vt(e.content);
2856
+ t && mi(t, (e) => {
2857
+ Wt(e.content) && Vt(e.content);
2857
2858
  });
2858
2859
  }, Ht = function(e) {
2859
2860
  e.normalize();
2860
- let t = oe ? oe(e) : e.ownerDocument, n = ge.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
2861
+ let t = ae ? ae(e) : e.ownerDocument, n = b.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
2861
2862
  for (; r;) r.data = Bt(r.data), r = n.nextNode();
2862
2863
  }, Ut = function(e) {
2863
- let t = ae ? ae(e) : null;
2864
- return typeof t != "string" || N(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== re(e) || typeof e.removeAttribute != "function" || typeof e.removeAttributeNode != "function" || typeof e.getAttributeNode != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== ie(e) || e.childNodes !== h(e);
2865
- }, F = function(e) {
2866
- if (!ie || typeof e != "object" || !e) return !1;
2864
+ let t = ie ? ie(e) : null;
2865
+ return typeof t != "string" || N(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== re(e) || typeof e.removeAttribute != "function" || typeof e.removeAttributeNode != "function" || typeof e.getAttributeNode != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== g(e) || e.childNodes !== h(e);
2866
+ }, Wt = function(e) {
2867
+ if (!g || typeof e != "object" || !e) return !1;
2867
2868
  try {
2868
- return ie(e) === $.documentFragment;
2869
+ return g(e) === $.documentFragment;
2869
2870
  } catch {
2870
2871
  return !1;
2871
2872
  }
2872
- }, Wt = function(e) {
2873
- if (!ie || typeof e != "object" || !e) return !1;
2873
+ }, Gt = function(e) {
2874
+ if (!g || typeof e != "object" || !e) return !1;
2874
2875
  try {
2875
- return typeof ie(e) == "number";
2876
+ return typeof g(e) == "number";
2876
2877
  } catch {
2877
2878
  return !1;
2878
2879
  }
2879
2880
  };
2880
- function I(e, n, r) {
2881
- e.length !== 0 && di(e, (e) => {
2882
- e.call(t, n, r, mt);
2881
+ function F(e, n, r) {
2882
+ e.length !== 0 && mi(e, (e) => {
2883
+ e.call(t, n, r, P);
2883
2884
  });
2884
2885
  }
2885
- let Gt = function(e, t) {
2886
- return !!(Re && e.hasChildNodes() && !Wt(e.firstElementChild) && J(aa, e.textContent) && J(aa, e.innerHTML) || Re && la[t] && g(e) === $.element && le(e) === M && (Wt(e.firstElementChild) || typeof e.textContent == "string" && J(aa, e.textContent)) || e.nodeType === $.processingInstruction || Re && e.nodeType === $.comment && J(oa, e.data));
2887
- }, Kt = function(e, t) {
2888
- return e instanceof RegExp ? J(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
2889
- }, qt = function(e, t, n) {
2890
- if (!je[t] && $t(t) && Kt(T.tagNameCheck, t)) return !1;
2891
- if (qe && !Ze[t] && !Ze[xi(t)]) {
2886
+ let Kt = function(e, t) {
2887
+ return !!(Re && e.hasChildNodes() && !Gt(e.firstElementChild) && q(sa, e.textContent) && q(sa, e.innerHTML) || Re && da[t] && _(e) === $.element && ce(e) === M && (Gt(e.firstElementChild) || typeof e.textContent == "string" && q(sa, e.textContent)) || e.nodeType === $.processingInstruction || Re && e.nodeType === $.comment && q(ca, e.data));
2888
+ }, qt = function(e, t) {
2889
+ return e instanceof RegExp ? q(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
2890
+ }, Jt = function(e, t, n) {
2891
+ if (!Me[t] && en(t) && qt(w.tagNameCheck, t)) return !1;
2892
+ if (Ke && !Xe[t] && !Xe[wi(t)]) {
2892
2893
  let t = te(e), r = h(e);
2893
2894
  if (r && t) {
2894
2895
  let i = r.length;
@@ -2898,35 +2899,35 @@ function ha() {
2898
2899
  }
2899
2900
  }
2900
2901
  }
2901
- return P(e), !0;
2902
- }, Jt = function(e, t, n, r) {
2902
+ return Ct(e), !0;
2903
+ }, Yt = function(e, t, n, r) {
2903
2904
  return e.length === 0 ? t : t === n || t === r ? Z(t) : t;
2904
- }, Yt = function(e, t) {
2905
- return e === t || te(e) !== null ? !1 : (Je && kt(e), !0);
2906
- }, Xt = function(e, n) {
2907
- if (Ft(e), I(S.beforeSanitizeElements, e, null), Yt(e, n)) return !0;
2908
- if (Ut(e)) return P(e), !0;
2909
- let r = N(se(e));
2910
- if (C = Jt(S.uponSanitizeElement, C, ke, Ve), I(S.uponSanitizeElement, e, {
2905
+ }, Xt = function(e, t) {
2906
+ return e === t || te(e) !== null ? !1 : (qe && kt(e), !0);
2907
+ }, Zt = function(e, n) {
2908
+ if (Ft(e), F(x.beforeSanitizeElements, e, null), Xt(e, n)) return !0;
2909
+ if (Ut(e)) return Ct(e), !0;
2910
+ let r = N(oe(e));
2911
+ if (S = Yt(x.uponSanitizeElement, S, Ae, Be), F(x.uponSanitizeElement, e, {
2911
2912
  tagName: r,
2912
- allowedTags: C
2913
- }), Yt(e, n)) return !0;
2914
- if (Gt(e, r)) return P(e), !0;
2915
- if (je[r] || !(Ne.tagCheck instanceof Function && Ne.tagCheck(r)) && !C[r]) {
2916
- let t = qt(e, r, n);
2917
- return t === !1 && (I(S.afterSanitizeElements, e, null), Yt(e, n)) ? !0 : t;
2918
- }
2919
- if (g(e) === $.element && !Ct(e) || (r === "noscript" || r === "noembed" || r === "noframes") && J(sa, e.innerHTML)) return P(e), !0;
2913
+ allowedTags: S
2914
+ }), Xt(e, n)) return !0;
2915
+ if (Kt(e, r)) return Ct(e), !0;
2916
+ if (Me[r] || !(T.tagCheck instanceof Function && T.tagCheck(r)) && !S[r]) {
2917
+ let t = Jt(e, r, n);
2918
+ return t === !1 && (F(x.afterSanitizeElements, e, null), Xt(e, n)) ? !0 : t;
2919
+ }
2920
+ if (_(e) === $.element && !St(e) || (r === "noscript" || r === "noembed" || r === "noframes") && q(la, e.innerHTML)) return Ct(e), !0;
2920
2921
  if (E && e.nodeType === $.text) {
2921
2922
  let n = Bt(e.textContent);
2922
- e.textContent !== n && (mi(t.removed, { element: e.cloneNode() }), e.textContent = n);
2923
- }
2924
- return I(S.afterSanitizeElements, e, null), Yt(e, n);
2925
- }, Zt = function(e, t, r) {
2926
- if (Me[t] || It(t, e) || k && (t === "id" || t === "name") && (r in n || r in ht)) return !1;
2927
- let i = w[t] || Ne.attributeCheck instanceof Function && Ne.attributeCheck(t, e);
2928
- return Fe && J(Ce, t) || Pe && J(we, t) ? !0 : i ? et[t] || J(Oe, wi(r, Ee, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && Ti(r, "data:") === 0 && A[e] || Ie && !J(Te, wi(r, Ee, "")) ? !0 : !r : $t(e) && Kt(T.tagNameCheck, e) && Kt(T.attributeNameCheck, t, e) || t === "is" && T.allowCustomizedBuiltInElements && Kt(T.tagNameCheck, r);
2929
- }, Qt = X({}, [
2923
+ e.textContent !== n && (_i(t.removed, { element: e.cloneNode() }), e.textContent = n);
2924
+ }
2925
+ return F(x.afterSanitizeElements, e, null), Xt(e, n);
2926
+ }, Qt = function(e, t, r) {
2927
+ if (Ne[t] || It(t, e) || We && (t === "id" || t === "name") && (r in n || r in mt)) return !1;
2928
+ let i = C[t] || T.attributeCheck instanceof Function && T.attributeCheck(t, e);
2929
+ return Fe && q(we, t) || Pe && q(Te, t) ? !0 : i ? j[t] || q(ke, Di(r, De, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && Oi(r, "data:") === 0 && Qe[e] || Ie && !q(Ee, Di(r, De, "")) ? !0 : !r : en(e) && qt(w.tagNameCheck, e) && qt(w.attributeNameCheck, t, e) || t === "is" && w.allowCustomizedBuiltInElements && qt(w.tagNameCheck, r);
2930
+ }, $t = X({}, [
2930
2931
  "annotation-xml",
2931
2932
  "color-profile",
2932
2933
  "font-face",
@@ -2935,47 +2936,47 @@ function ha() {
2935
2936
  "font-face-src",
2936
2937
  "font-face-uri",
2937
2938
  "missing-glyph"
2938
- ]), $t = function(e) {
2939
- return !Qt[xi(e)] && J(De, e);
2940
- }, en = function(e, t, n, r) {
2941
- if (_ && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
2942
- case "TrustedHTML": return y(r);
2943
- case "TrustedScriptURL": return b(r);
2939
+ ]), en = function(e) {
2940
+ return !$t[wi(e)] && q(Oe, e);
2941
+ }, tn = function(e, t, n, r) {
2942
+ if (v && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
2943
+ case "TrustedHTML": return me(r);
2944
+ case "TrustedScriptURL": return he(r);
2944
2945
  }
2945
2946
  return r;
2946
- }, tn = function(e, t, n, r) {
2947
+ }, nn = function(e, t, n, r) {
2947
2948
  try {
2948
- return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !Ut(e) || (P(e), !1);
2949
+ return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !Ut(e) || (Ct(e), !1);
2949
2950
  } catch {
2950
2951
  return Et(t, e), !1;
2951
2952
  }
2952
- }, nn = function(e, t) {
2953
- return Re && J(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, t) ? !0 : xi(e) === "attributename" && Ci(t, "href") !== null;
2954
- }, L = function(e, n) {
2955
- if (I(S.beforeSanitizeAttributes, e, null), Yt(e, n)) return;
2953
+ }, rn = function(e, t) {
2954
+ return Re && q(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, t) ? !0 : wi(e) === "attributename" && Ei(t, "href") !== null;
2955
+ }, an = function(e, n) {
2956
+ if (F(x.beforeSanitizeAttributes, e, null), Xt(e, n)) return;
2956
2957
  let r = e.attributes;
2957
2958
  if (!r || Ut(e)) return;
2958
- w = Jt(S.uponSanitizeAttribute, w, Ae, He);
2959
+ C = Yt(x.uponSanitizeAttribute, C, je, Ve);
2959
2960
  let i = {
2960
2961
  attrName: "",
2961
2962
  attrValue: "",
2962
2963
  keepAttr: !0,
2963
- allowedAttributes: w,
2964
+ allowedAttributes: C,
2964
2965
  forceKeepAttr: void 0
2965
2966
  }, a = r.length, o = N(e.nodeName);
2966
2967
  for (; a--;) {
2967
- let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u = N(s), d = l, f = s === "value" ? d : Ei(d), p = !1;
2968
- i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, I(S.uponSanitizeAttribute, e, i), f = i.attrValue, Ge && (u === "id" || u === "name") && Ti(f, Ke) !== 0 && (Et(s, e, n), f = Ke + f, p = !0), nn(s, f) ? Et(s, e, n) : i.forceKeepAttr || (i.keepAttr ? !Le && J(ca, f) ? Et(s, e, n) : (E && (f = Bt(f)), Zt(o, u, f) ? (f = en(o, u, c, f), f !== d && tn(e, s, c, f) && p && pi(t.removed)) : Et(s, e, n)) : Et(s, e, n));
2968
+ let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u = N(s), d = l, f = s === "value" ? d : ki(d), p = !1;
2969
+ i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, F(x.uponSanitizeAttribute, e, i), f = i.attrValue, Ge && (u === "id" || u === "name") && Oi(f, A) !== 0 && (Et(s, e, n), f = A + f, p = !0), rn(s, f) ? Et(s, e, n) : i.forceKeepAttr || (i.keepAttr ? !Le && q(ua, f) ? Et(s, e, n) : (E && (f = Bt(f)), Qt(o, u, f) ? (f = tn(o, u, c, f), f !== d && nn(e, s, c, f) && p && gi(t.removed)) : Et(s, e, n)) : Et(s, e, n));
2969
2970
  }
2970
- I(S.afterSanitizeAttributes, e, null), Yt(e, n);
2971
- }, rn = function(e) {
2971
+ F(x.afterSanitizeAttributes, e, null), Xt(e, n);
2972
+ }, on = function(e) {
2972
2973
  let t = null, n = zt(e);
2973
- for (I(S.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (I(S.uponSanitizeShadowNode, t, null), Xt(t, e), L(t, e), F(t.content) && rn(t.content), g(t) === $.element) {
2974
+ for (F(x.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (F(x.uponSanitizeShadowNode, t, null), Zt(t, e), an(t, e), Wt(t.content) && on(t.content), _(t) === $.element) {
2974
2975
  let e = ne(t);
2975
- F(e) && (an(e), rn(e));
2976
+ Wt(e) && (I(e), on(e));
2976
2977
  }
2977
- E && Ht(e), I(S.afterSanitizeShadowDOM, e, null);
2978
- }, an = function(e) {
2978
+ E && Ht(e), F(x.afterSanitizeShadowDOM, e, null);
2979
+ }, I = function(e) {
2979
2980
  let t = [{
2980
2981
  node: e,
2981
2982
  shadow: null
@@ -2983,19 +2984,19 @@ function ha() {
2983
2984
  for (; t.length > 0;) {
2984
2985
  let e = t.pop();
2985
2986
  if (e.shadow) {
2986
- rn(e.shadow);
2987
+ on(e.shadow);
2987
2988
  continue;
2988
2989
  }
2989
- let n = e.node, r = g(n) === $.element, i = h(n);
2990
+ let n = e.node, r = _(n) === $.element, i = h(n);
2990
2991
  if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
2991
2992
  node: i[e],
2992
2993
  shadow: null
2993
2994
  });
2994
2995
  if (r) {
2995
- let e = ae ? ae(n) : null;
2996
+ let e = ie ? ie(n) : null;
2996
2997
  if (typeof e == "string" && N(e) === "template") {
2997
2998
  let e = n.content;
2998
- F(e) && t.push({
2999
+ Wt(e) && t.push({
2999
3000
  node: e,
3000
3001
  shadow: null
3001
3002
  });
@@ -3003,7 +3004,7 @@ function ha() {
3003
3004
  }
3004
3005
  if (r) {
3005
3006
  let e = ne(n);
3006
- F(e) && t.push({
3007
+ Wt(e) && t.push({
3007
3008
  node: null,
3008
3009
  shadow: e
3009
3010
  }, {
@@ -3015,81 +3016,81 @@ function ha() {
3015
3016
  };
3016
3017
  return t.sanitize = function(e) {
3017
3018
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
3018
- if (it = !e, it && (e = "<!-->"), typeof e != "string" && !Wt(e) && (e = Fi(e), typeof e != "string")) throw Mi("dirty is not a string, aborting");
3019
+ if (it = !e, it && (e = "<!-->"), typeof e != "string" && !Gt(e) && (e = Li(e), typeof e != "string")) throw J("dirty is not a string, aborting");
3019
3020
  if (!t.isSupported) return e;
3020
- Be ? (C = Ve, w = He) : _t(n), (S.uponSanitizeElement.length > 0 || S.uponSanitizeAttribute.length > 0) && (C = Z(C)), S.uponSanitizeAttribute.length > 0 && (w = Z(w)), t.removed = [];
3021
- let c = Je && typeof e != "string" && Wt(e), l = [], u = Ye;
3021
+ ze ? (S = Be, C = Ve) : gt(n), (x.uponSanitizeElement.length > 0 || x.uponSanitizeAttribute.length > 0) && (S = Z(S)), x.uponSanitizeAttribute.length > 0 && (C = Z(C)), t.removed = [];
3022
+ let c = qe && typeof e != "string" && Gt(e), l = [], u = Je;
3022
3023
  if (c) {
3023
3024
  Lt(e);
3024
- let t = se(e);
3025
+ let t = oe(e);
3025
3026
  if (typeof t == "string") {
3026
3027
  let n = N(t);
3027
- if (!C[n] || je[n]) throw Tt(e), Mi("root node is forbidden and cannot be sanitized in-place");
3028
+ if (!S[n] || Me[n]) throw Tt(e), J("root node is forbidden and cannot be sanitized in-place");
3028
3029
  }
3029
- if (Ut(e)) throw Tt(e), Mi("root node is clobbered and cannot be sanitized in-place");
3030
- l = At(e), Ye = vi();
3031
- } else if (Wt(e)) i = Rt("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === $.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), an(i);
3030
+ if (Ut(e)) throw Tt(e), J("root node is clobbered and cannot be sanitized in-place");
3031
+ l = At(e), Je = xi();
3032
+ } else if (Gt(e)) i = Rt("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === $.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), I(i);
3032
3033
  else {
3033
- if (!O && !E && !ze && e.indexOf("<") === -1) return _ && We ? y(e) : e;
3034
- if (i = Rt(e), !i) return O ? null : We ? v : "";
3034
+ if (!Ue && !E && !D && e.indexOf("<") === -1) return v && k ? me(e) : e;
3035
+ if (i = Rt(e), !i) return Ue ? null : k ? le : "";
3035
3036
  }
3036
- i && D && P(i.firstChild);
3037
+ i && He && Ct(i.firstChild);
3037
3038
  let d = c ? e : i;
3038
3039
  try {
3039
- c && an(e);
3040
+ c && I(e);
3040
3041
  let t = zt(d);
3041
- for (; o = t.nextNode();) Xt(o, d), L(o, d), F(o.content) && rn(o.content);
3042
+ for (; o = t.nextNode();) Zt(o, d), an(o, d), Wt(o.content) && on(o.content);
3042
3043
  c && Nt(e, l);
3043
3044
  } catch (t) {
3044
3045
  throw c && (Tt(e), Mt(e, l)), t;
3045
3046
  } finally {
3046
- Ye = u;
3047
+ Je = u;
3047
3048
  }
3048
3049
  if (c) {
3049
- if (Mt(e, l)) throw Mi("a node selected for removal could not be safely returned; refusing to sanitize in place");
3050
+ if (Mt(e, l)) throw J("a node selected for removal could not be safely returned; refusing to sanitize in place");
3050
3051
  return E && Vt(e), e;
3051
3052
  }
3052
- if (O) {
3053
- if (E && Vt(i), Ue) for (s = _e.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
3053
+ if (Ue) {
3054
+ if (E && Vt(i), O) for (s = ve.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
3054
3055
  else s = i;
3055
- return (w.shadowroot || w.shadowrootmode) && (s = ye.call(r, s, !0)), s;
3056
+ return (C.shadowroot || C.shadowrootmode) && (s = be.call(r, s, !0)), s;
3056
3057
  }
3057
- let f = ze ? i.outerHTML : i.innerHTML;
3058
- return ze && C["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && J(ra, i.ownerDocument.doctype.name) && (f = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + f), E && (f = Bt(f)), _ && We ? y(f) : f;
3058
+ let f = D ? i.outerHTML : i.innerHTML;
3059
+ return D && S["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && q(aa, i.ownerDocument.doctype.name) && (f = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + f), E && (f = Bt(f)), v && k ? me(f) : f;
3059
3060
  }, t.setConfig = function() {
3060
3061
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3061
- _t(e), Be = !0, Ve = C, He = w;
3062
+ gt(e), ze = !0, Be = S, Ve = C;
3062
3063
  }, t.clearConfig = function() {
3063
- mt = null, Be = !1, Ve = null, He = null, _ = ue, v = "";
3064
+ P = null, ze = !1, Be = null, Ve = null, v = ue, le = "";
3064
3065
  }, t.isValidAttribute = function(e, t, n) {
3065
- mt || _t({});
3066
+ P || gt({});
3066
3067
  let r = N(e), i = N(t);
3067
- return typeof n == "string" && (nn(t, n) || !Le && J(ca, n)) ? !1 : Zt(r, i, n);
3068
+ return typeof n == "string" && (rn(t, n) || !Le && q(ua, n)) ? !1 : Qt(r, i, n);
3068
3069
  }, t.addHook = function(e, t) {
3069
- typeof t == "function" && q(S, e) && mi(S[e], t);
3070
+ typeof t == "function" && K(x, e) && _i(x[e], t);
3070
3071
  }, t.removeHook = function(e, t) {
3071
- if (q(S, e)) {
3072
+ if (K(x, e)) {
3072
3073
  if (t !== void 0) {
3073
- let n = fi(S[e], t);
3074
- return n === -1 ? void 0 : gi(S[e], n, 1)[0];
3074
+ let n = hi(x[e], t);
3075
+ return n === -1 ? void 0 : yi(x[e], n, 1)[0];
3075
3076
  }
3076
- return pi(S[e]);
3077
+ return gi(x[e]);
3077
3078
  }
3078
3079
  }, t.removeHooks = function(e) {
3079
- q(S, e) && (S[e] = []);
3080
+ K(x, e) && (x[e] = []);
3080
3081
  }, t.removeAllHooks = function() {
3081
- S = fa();
3082
+ x = ma();
3082
3083
  }, t;
3083
3084
  }
3084
- var ga = ha();
3085
+ var va = _a();
3085
3086
  // ../../packages/components/src/chat/markdownHtml.ts
3086
- function _a(e) {
3087
+ function ya(e) {
3087
3088
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
3088
3089
  }
3089
- function va(e, t) {
3090
+ function ba(e, t) {
3090
3091
  return `<span class="katex-pending" data-katex="${encodeURIComponent(e)}" data-display="${t}"></span>`;
3091
3092
  }
3092
- var ya = {
3093
+ var xa = {
3093
3094
  ADD_ATTR: ["target"],
3094
3095
  ALLOW_UNKNOWN_PROTOCOLS: !0,
3095
3096
  FORBID_TAGS: [
@@ -3110,28 +3111,28 @@ var ya = {
3110
3111
  "background"
3111
3112
  ]
3112
3113
  };
3113
- ga.addHook("uponSanitizeAttribute", (e, t) => {
3114
- t.attrName === "src" && e.nodeName !== "IMG" && (t.keepAttr = !1);
3114
+ va.addHook("uponSanitizeAttribute", (e, t) => {
3115
+ t.attrName === "src" && e.nodeName !== "IMG" && (t.keepAttr = !1), (t.attrName.startsWith("data-pswp-") || t.attrName === "data-held-src") && (t.keepAttr = !1);
3115
3116
  });
3116
- var ba = "data-held-src";
3117
- function xa(e, t) {
3118
- if (!t) return ga.sanitize(e, ya);
3119
- let n = ga.sanitize(e, {
3120
- ...ya,
3117
+ var Sa = "data-held-src";
3118
+ function Ca(e, t) {
3119
+ if (!t) return va.sanitize(e, xa);
3120
+ let n = va.sanitize(e, {
3121
+ ...xa,
3121
3122
  RETURN_DOM_FRAGMENT: !0
3122
3123
  });
3123
3124
  for (let e of Array.from(n.querySelectorAll("img"))) {
3124
3125
  let n = e.getAttribute("src") ?? "";
3125
3126
  if (t.canLoad(n)) continue;
3126
3127
  let r = e.ownerDocument.createElement("button");
3127
- r.type = "button", r.className = "markdown-held-image", r.setAttribute(ba, n), r.textContent = t.label(t.hostOf(n) ?? n), e.replaceWith(r);
3128
+ r.type = "button", r.className = "markdown-held-image", r.setAttribute(Sa, n), r.textContent = t.label(t.hostOf(n) ?? n), e.replaceWith(r);
3128
3129
  }
3129
3130
  let r = n.ownerDocument.createElement("div");
3130
3131
  return r.append(n), r.innerHTML;
3131
3132
  }
3132
3133
  // ../../packages/components/src/chat/PkStreamingMarkdown.vue?vue&type=script&setup=true&lang.ts
3133
3134
  s(), c();
3134
- var Sa = ["innerHTML"], Ca = 100, wa = /*#__PURE__*/ re(/* @__PURE__ */ l({
3135
+ var wa = ["data-pswp-images", "innerHTML"], Ta = 100, Ea = /*#__PURE__*/ g(/* @__PURE__ */ l({
3135
3136
  __name: "PkStreamingMarkdown",
3136
3137
  props: {
3137
3138
  markdown: {
@@ -3160,16 +3161,16 @@ var Sa = ["innerHTML"], Ca = 100, wa = /*#__PURE__*/ re(/* @__PURE__ */ l({
3160
3161
  }
3161
3162
  },
3162
3163
  setup(s) {
3163
- let c = s, { t: l } = f({ useScope: "global" }), re = null;
3164
- function ae() {
3165
- return re ||= import("./dist-DhESaoD-.js"), re;
3164
+ let c = s, { t: l } = p({ useScope: "global" }), g = null;
3165
+ function _() {
3166
+ return g ||= import("./dist-DhESaoD-.js"), g;
3166
3167
  }
3167
3168
  let oe = null;
3168
- function g() {
3169
+ function se() {
3169
3170
  return oe ||= import("https://cdn.jsdelivr.net/npm/katex@0.18/dist/katex.mjs").then((e) => e.default), oe;
3170
3171
  }
3171
- let ce = /^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n$]))\1(?=[\s?!.,:\uFF1F\uFF01\u3002\uFF0C\uFF1A]|$)/, le = /^(\${1,2})\n((?:\\[^]|[^\\])+?)\n\1(?:\n|$)/;
3172
- W.use({ extensions: [{
3172
+ let v = /^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n$]))\1(?=[\s?!.,:\uFF1F\uFF01\u3002\uFF0C\uFF1A]|$)/, le = /^(\${1,2})\n((?:\\[^]|[^\\])+?)\n\1(?:\n|$)/;
3173
+ U.use({ extensions: [{
3173
3174
  name: "inlineKatex",
3174
3175
  level: "inline",
3175
3176
  start: (e) => {
@@ -3177,7 +3178,7 @@ var Sa = ["innerHTML"], Ca = 100, wa = /*#__PURE__*/ re(/* @__PURE__ */ l({
3177
3178
  if (t !== -1 && (t === 0 || e.charAt(t - 1) === " ")) return t;
3178
3179
  },
3179
3180
  tokenizer(e) {
3180
- let t = e.match(ce);
3181
+ let t = e.match(v);
3181
3182
  if (t) return {
3182
3183
  type: "inlineKatex",
3183
3184
  raw: t[0],
@@ -3186,7 +3187,7 @@ var Sa = ["innerHTML"], Ca = 100, wa = /*#__PURE__*/ re(/* @__PURE__ */ l({
3186
3187
  };
3187
3188
  },
3188
3189
  renderer(e) {
3189
- return va(e.text, e.displayMode);
3190
+ return ba(e.text, e.displayMode);
3190
3191
  }
3191
3192
  }, {
3192
3193
  name: "blockKatex",
@@ -3201,9 +3202,9 @@ var Sa = ["innerHTML"], Ca = 100, wa = /*#__PURE__*/ re(/* @__PURE__ */ l({
3201
3202
  };
3202
3203
  },
3203
3204
  renderer(e) {
3204
- return va(e.text, e.displayMode) + "\n";
3205
+ return ba(e.text, e.displayMode) + "\n";
3205
3206
  }
3206
- }] }), W.use({ extensions: [{
3207
+ }] }), U.use({ extensions: [{
3207
3208
  name: "thinking",
3208
3209
  level: "block",
3209
3210
  start: (e) => e.indexOf("<thinking>"),
@@ -3222,30 +3223,30 @@ var Sa = ["innerHTML"], Ca = 100, wa = /*#__PURE__*/ re(/* @__PURE__ */ l({
3222
3223
  return `<div class="thinking-block">${this.parser.parse(e.tokens ?? [])}</div>`;
3223
3224
  }
3224
3225
  }] });
3225
- let _ = new W.Renderer(), v = (e) => e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), ue = /^(?:javascript|data|vbscript|file):/i, de = !1, fe = (e) => v(e.replace(/^https?:\/\/(?:www\.)?/i, "").replace(/\/$/, "")).replace(/\//g, "/<wbr>");
3226
- _.link = function({ href: e, title: t, text: n, tokens: r }) {
3226
+ let ue = new U.Renderer(), de = (e) => e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), fe = /^(?:javascript|data|vbscript|file):/i, pe = !1, me = (e) => de(e.replace(/^https?:\/\/(?:www\.)?/i, "").replace(/\/$/, "")).replace(/\//g, "/<wbr>");
3227
+ ue.link = function({ href: e, title: t, text: n, tokens: r }) {
3227
3228
  let i = this.parser.parseInline(r), a = (e ?? "").trim().replace(/[\x00-\x1f]/g, "");
3228
- if (!a || ue.test(a)) return i;
3229
- let o = de && n === a, s = t || (o ? a : ""), c = s ? ` title="${v(s)}"` : "", l = h(a) ? "" : " target=\"_blank\" rel=\"noopener noreferrer\"";
3230
- return `<a href="${v(a)}"${c}${l}>${o ? fe(a) : i}</a>`;
3231
- }, _.table = function(e) {
3232
- de = !0;
3229
+ if (!a || fe.test(a)) return i;
3230
+ let o = pe && n === a, s = t || (o ? a : ""), c = s ? ` title="${de(s)}"` : "", l = te(a) ? "" : " target=\"_blank\" rel=\"noopener noreferrer\"";
3231
+ return `<a href="${de(a)}"${c}${l}>${o ? me(a) : i}</a>`;
3232
+ }, ue.table = function(e) {
3233
+ pe = !0;
3233
3234
  try {
3234
- let t = e.header.map((e) => v(this.parser.parseInline(e.tokens, this.parser.textRenderer))), n = (e) => `<tr role="row">${e.map((e, n) => {
3235
+ let t = e.header.map((e) => de(this.parser.parseInline(e.tokens, this.parser.textRenderer))), n = (e) => `<tr role="row">${e.map((e, n) => {
3235
3236
  let r = this.parser.parseInline(e.tokens), i = e.align ? ` align="${e.align}"` : "";
3236
3237
  return e.header ? `<th role="columnheader"${i}>${r}</th>` : `<td role="cell" data-label="${t[n] ?? ""}"${i}><span>${r}</span></td>`;
3237
3238
  }).join("")}</tr>`, r = e.rows.length ? `<tbody role="rowgroup">${e.rows.map(n).join("")}</tbody>` : "";
3238
3239
  return `<div class="table-wrapper u-table-scroll"><table class="${e.header.length >= 3 && e.rows.length ? "u-table u-table--stack" : "u-table"}" role="table"><thead role="rowgroup">${n(e.header)}</thead>${r}</table></div>\n`;
3239
3240
  } finally {
3240
- de = !1;
3241
+ pe = !1;
3241
3242
  }
3242
3243
  };
3243
- let pe = /^(sequenceDiagram|graph|classDiagram|stateDiagram|erDiagram|flowchart|xychart-beta)/;
3244
- _.code = ({ text: e }) => pe.test(e) ? `<pre class="mermaid">${_a(e)}</pre>` : `<pre><code>${_a(e)}</code></pre>`;
3245
- function y(e) {
3244
+ let he = /^(sequenceDiagram|graph|classDiagram|stateDiagram|erDiagram|flowchart|xychart-beta)/;
3245
+ ue.code = ({ text: e }) => he.test(e) ? `<pre class="mermaid">${ya(e)}</pre>` : `<pre><code>${ya(e)}</code></pre>`;
3246
+ function ge(e) {
3246
3247
  return e.replace(/\\\[([\s\S]*?)\\\]/g, (e, t) => `$$${t}$$`).replace(/\\\(([\s\S]*?)\\\)/g, (e, t) => `$${t}$`).replace(/^(\d+)\.(?!\s)/gm, "$1\\.");
3247
3248
  }
3248
- function b(e) {
3249
+ function y(e) {
3249
3250
  let t = /* @__PURE__ */ new Set(), n = /^(`{3,}|~{3,})[^\n]*\n([\s\S]*?)\n\1/gm, r;
3250
3251
  for (; (r = n.exec(e)) !== null;) for (let e = r.index; e < r.index + r[0].length; e++) t.add(e);
3251
3252
  return e.replace(/[{[]([\s\S]*?)[}\]]/g, (e, n, r) => {
@@ -3257,33 +3258,33 @@ var Sa = ["innerHTML"], Ca = 100, wa = /*#__PURE__*/ re(/* @__PURE__ */ l({
3257
3258
  }
3258
3259
  }).replace(/\n{3,}/g, "\n\n");
3259
3260
  }
3260
- let me = [
3261
- se,
3262
- b,
3263
- on,
3264
- y
3265
- ], x = i("container"), he = te(a(c, "markdown"), Ca), ge = o(() => c.tailLength ? m(he.value, c.tailLength) : he.value), { resolveText: _e } = ne(), ve = _e(ge), ye = ie(), S = o(() => {
3266
- let e = me.reduce((e, t) => t(e), ve.value);
3267
- return xa(W.parse(e, {
3261
+ let _e = [
3262
+ ce,
3263
+ y,
3264
+ ln,
3265
+ ge
3266
+ ], b = i("container"), ve = ne(a(c, "markdown"), Ta), ye = o(() => c.tailLength ? h(ve.value, c.tailLength) : ve.value), { resolveText: be } = re(), x = be(ye), xe = ie(), Se = ae(), Ce = o(() => {
3267
+ let e = _e.reduce((e, t) => t(e), x.value);
3268
+ return Ca(U.parse(e, {
3268
3269
  async: !1,
3269
3270
  breaks: !0,
3270
- renderer: _
3271
- }), ye.isGated.value ? {
3272
- canLoad: ye.canLoad,
3273
- hostOf: ye.hostOf,
3271
+ renderer: ue
3272
+ }), xe.isGated.value ? {
3273
+ canLoad: xe.canLoad,
3274
+ hostOf: xe.hostOf,
3274
3275
  label: (e) => l("label.imageHeld", { host: e })
3275
3276
  } : void 0);
3276
3277
  });
3277
- function be(e) {
3278
- let t = (e.target?.closest?.(`[${ba}]`))?.getAttribute(ba);
3279
- t && (e.preventDefault(), e.stopPropagation(), ye.release(t));
3278
+ function we(e) {
3279
+ let t = (e.target?.closest?.(`[${Sa}]`))?.getAttribute(Sa);
3280
+ t && (e.preventDefault(), e.stopPropagation(), xe.release(t));
3280
3281
  }
3281
- async function xe() {
3282
+ async function Te() {
3282
3283
  if (c.loading) return;
3283
3284
  await e();
3284
- let t = x.value?.querySelectorAll("pre.mermaid:not([data-rendered])");
3285
+ let t = b.value?.querySelectorAll("pre.mermaid:not([data-rendered])");
3285
3286
  if (!t?.length) return;
3286
- let { renderMermaidSVG: n, THEMES: r } = await ae(), i = c.isDark ? r["github-dark"] : r["github-light"];
3287
+ let { renderMermaidSVG: n, THEMES: r } = await _(), i = c.isDark ? r["github-dark"] : r["github-light"];
3287
3288
  for (let e of Array.from(t)) {
3288
3289
  if (!e.isConnected) continue;
3289
3290
  let t = e.textContent?.trim();
@@ -3293,19 +3294,19 @@ var Sa = ["innerHTML"], Ca = 100, wa = /*#__PURE__*/ re(/* @__PURE__ */ l({
3293
3294
  } catch {}
3294
3295
  }
3295
3296
  }
3296
- async function Se() {
3297
+ async function Ee() {
3297
3298
  await e();
3298
- let t = x.value?.querySelectorAll("pre:not(.mermaid) > code:not([data-highlighted])");
3299
+ let t = b.value?.querySelectorAll("pre:not(.mermaid) > code:not([data-highlighted])");
3299
3300
  if (!t?.length) return;
3300
3301
  let n = (await import("https://cdn.jsdelivr.net/npm/highlight.js@11/es/common.js")).default;
3301
3302
  for (let e of t) n.highlightElement(e), e.setAttribute("data-highlighted", "true");
3302
3303
  }
3303
- async function Ce() {
3304
+ async function De() {
3304
3305
  await e();
3305
- let t = x.value?.querySelectorAll(".katex-pending");
3306
+ let t = b.value?.querySelectorAll(".katex-pending");
3306
3307
  if (!t?.length) return;
3307
- let n = await g();
3308
- p("https://cdn.jsdelivr.net/npm/katex@0.18/dist/katex.min.css", ee(x.value));
3308
+ let n = await se();
3309
+ ee("https://cdn.jsdelivr.net/npm/katex@0.18/dist/katex.min.css", m(b.value));
3309
3310
  for (let e of Array.from(t)) {
3310
3311
  if (!e.isConnected) continue;
3311
3312
  let t = e.dataset.katex;
@@ -3319,11 +3320,11 @@ var Sa = ["innerHTML"], Ca = 100, wa = /*#__PURE__*/ re(/* @__PURE__ */ l({
3319
3320
  } catch {}
3320
3321
  }
3321
3322
  }
3322
- async function we() {
3323
+ async function Oe() {
3323
3324
  await e();
3324
- let t = x.value?.querySelectorAll("pre.mermaid[data-rendered]");
3325
+ let t = b.value?.querySelectorAll("pre.mermaid[data-rendered]");
3325
3326
  if (!t?.length) return;
3326
- let { renderMermaidSVG: n, THEMES: r } = await ae(), i = c.isDark ? r["github-dark"] : r["github-light"];
3327
+ let { renderMermaidSVG: n, THEMES: r } = await _(), i = c.isDark ? r["github-dark"] : r["github-light"];
3327
3328
  for (let e of Array.from(t)) {
3328
3329
  if (!e.isConnected) continue;
3329
3330
  let t = e.dataset.code;
@@ -3332,7 +3333,7 @@ var Sa = ["innerHTML"], Ca = 100, wa = /*#__PURE__*/ re(/* @__PURE__ */ l({
3332
3333
  } catch {}
3333
3334
  }
3334
3335
  }
3335
- function Te(e) {
3336
+ function ke(e) {
3336
3337
  let t = e.target;
3337
3338
  if (!(t instanceof HTMLImageElement) || t.dataset.broken) return;
3338
3339
  t.dataset.broken = "true";
@@ -3340,65 +3341,68 @@ var Sa = ["innerHTML"], Ca = 100, wa = /*#__PURE__*/ re(/* @__PURE__ */ l({
3340
3341
  n.className = "markdown-broken-image", n.textContent = t.alt || l("label.imageLoadError"), n.title = t.src, t.replaceWith(n);
3341
3342
  }
3342
3343
  n(() => {
3343
- x.value?.addEventListener("error", Te, !0);
3344
+ b.value?.addEventListener("error", ke, !0);
3344
3345
  }), t(() => {
3345
- x.value?.removeEventListener("error", Te, !0);
3346
- }), r([S, () => c.loading], xe, { immediate: !0 }), r(() => c.isDark, we), r(S, Se, { immediate: !0 }), r(S, Ce, { immediate: !0 });
3347
- let Ee = 0, De = {
3346
+ b.value?.removeEventListener("error", ke, !0);
3347
+ }), r([Ce, () => c.loading], Te, { immediate: !0 }), r(() => c.isDark, Oe), r(Ce, Ee, { immediate: !0 }), r(Ce, De, { immediate: !0 }), Se && r(Ce, (e) => {
3348
+ e.includes("<img") && Se.join();
3349
+ }, { immediate: !0 });
3350
+ let S = 0, Ae = {
3348
3351
  fadeIn: "pk-streaming-markdown-fade-in",
3349
3352
  blurIn: "pk-streaming-markdown-blur-in",
3350
3353
  dropIn: "pk-streaming-markdown-drop-in",
3351
3354
  slideUp: "pk-streaming-markdown-slide-up",
3352
3355
  fadeAndScale: "pk-streaming-markdown-fade-and-scale"
3353
3356
  };
3354
- function Oe(e, t) {
3355
- let n = document.createElement("span"), r = c.animation ? De[c.animation] : "none";
3357
+ function C(e, t) {
3358
+ let n = document.createElement("span"), r = c.animation ? Ae[c.animation] : "none";
3356
3359
  return n.style.cssText = `animation:${r} ${c.animationDuration} ease-out ${t}ms both;display:inline-block`, n.textContent = e, n.addEventListener("animationend", () => {
3357
3360
  let t = n.parentNode;
3358
3361
  t && (t.replaceChild(document.createTextNode(e), n), t.normalize());
3359
3362
  }, { once: !0 }), n;
3360
3363
  }
3361
- function C(e, t, n, r) {
3364
+ function je(e, t, n, r) {
3362
3365
  let i = r, a = e.split(/(\s+)/);
3363
- for (let e of a) e && (/^\s+$/.test(e) ? t.insertBefore(document.createTextNode(e), n) : (t.insertBefore(Oe(e, i * 30), n), i++));
3366
+ for (let e of a) e && (/^\s+$/.test(e) ? t.insertBefore(document.createTextNode(e), n) : (t.insertBefore(C(e, i * 30), n), i++));
3364
3367
  return i;
3365
3368
  }
3366
- function ke(e) {
3369
+ function w(e) {
3367
3370
  let t = document.createTreeWalker(e, NodeFilter.SHOW_TEXT, { acceptNode(e) {
3368
3371
  return e.parentElement?.closest("pre, code, .katex-pending, .markdown-broken-image") ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT;
3369
3372
  } }), n = [];
3370
3373
  for (; t.nextNode();) n.push(t.currentNode);
3371
3374
  return n;
3372
3375
  }
3373
- function w() {
3374
- if (!x.value || !c.loading || !c.animation) return;
3375
- let e = ke(x.value), t = 0, n = 0;
3376
+ function Me() {
3377
+ if (!b.value || !c.loading || !c.animation) return;
3378
+ let e = w(b.value), t = 0, n = 0;
3376
3379
  for (let r of e) {
3377
3380
  let e = r.textContent || "", i = t, a = t + e.length;
3378
- if (t = a, a <= Ee) continue;
3381
+ if (t = a, a <= S) continue;
3379
3382
  let o = r.parentNode;
3380
3383
  if (!o) continue;
3381
- if (i >= Ee) {
3384
+ if (i >= S) {
3382
3385
  let t = r.nextSibling;
3383
- o.removeChild(r), n = C(e, o, t, n);
3386
+ o.removeChild(r), n = je(e, o, t, n);
3384
3387
  continue;
3385
3388
  }
3386
- let s = Ee - i, c = r.splitText(s), l = c.textContent || "", u = c.nextSibling;
3387
- o.removeChild(c), n = C(l, o, u, n);
3389
+ let s = S - i, c = r.splitText(s), l = c.textContent || "", u = c.nextSibling;
3390
+ o.removeChild(c), n = je(l, o, u, n);
3388
3391
  }
3389
- Ee = t;
3392
+ S = t;
3390
3393
  }
3391
- return r(S, async () => {
3392
- await e(), w();
3394
+ return r(Ce, async () => {
3395
+ await e(), Me();
3393
3396
  }, { immediate: !0 }), r(() => c.markdown, (e, t) => {
3394
- (!e || t && e.length < t.length) && (Ee = 0);
3395
- }), (e, t) => (d(), u("div", {
3397
+ (!e || t && e.length < t.length) && (S = 0);
3398
+ }), (e, t) => (f(), d("div", {
3396
3399
  ref: "container",
3397
- onClick: be,
3398
- innerHTML: S.value
3399
- }, null, 8, Sa));
3400
+ "data-pswp-images": u(Se) ? "" : void 0,
3401
+ onClick: we,
3402
+ innerHTML: Ce.value
3403
+ }, null, 8, wa));
3400
3404
  }
3401
- }), [["styles", [".markdown-held-image{max-width:100%;padding:var(--spacing-4) var(--spacing-8);border:var(--border) dashed var(--color-surface-4);border-radius:var(--rounded-md);background-color:var(--color-surface-1);color:var(--color-word-3);font:inherit;font-size:var(--text-12);vertical-align:middle;cursor:pointer;align-items:center;display:inline-flex}.markdown-held-image:hover,.markdown-held-image:focus-visible{background-color:var(--color-surface-2);color:var(--color-word-2)}.markdown-broken-image{align-items:center;gap:var(--spacing-4);max-width:100%;padding:var(--spacing-4) var(--spacing-8);border:var(--border) dashed var(--color-surface-4);border-radius:var(--rounded-md);background-color:var(--color-surface-1);color:var(--color-word-4);font-size:var(--text-12);vertical-align:middle;display:inline-flex}@keyframes pk-streaming-markdown-fade-in{0%{opacity:0}to{opacity:1}}@keyframes pk-streaming-markdown-blur-in{0%{opacity:0;filter:blur(4px)}to{opacity:1;filter:blur()}}@keyframes pk-streaming-markdown-drop-in{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}@keyframes pk-streaming-markdown-slide-up{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes pk-streaming-markdown-fade-and-scale{0%{opacity:0;transform:scale(.85)}to{opacity:1;transform:scale(1)}}"]]]);
3402
- export { wa as t };
3405
+ }), [["styles", [".markdown-held-image{max-width:100%;padding:var(--spacing-4) var(--spacing-8);border:var(--border) dashed var(--color-surface-4);border-radius:var(--rounded-md);background-color:var(--color-surface-1);color:var(--color-word-3);font:inherit;font-size:var(--text-12);vertical-align:middle;cursor:pointer;align-items:center;display:inline-flex}.markdown-held-image:hover,.markdown-held-image:focus-visible{background-color:var(--color-surface-2);color:var(--color-word-2)}.markdown-broken-image{align-items:center;gap:var(--spacing-4);max-width:100%;padding:var(--spacing-4) var(--spacing-8);border:var(--border) dashed var(--color-surface-4);border-radius:var(--rounded-md);background-color:var(--color-surface-1);color:var(--color-word-4);font-size:var(--text-12);vertical-align:middle;display:inline-flex}[data-pswp-images] img:not(a img){cursor:zoom-in}@keyframes pk-streaming-markdown-fade-in{0%{opacity:0}to{opacity:1}}@keyframes pk-streaming-markdown-blur-in{0%{opacity:0;filter:blur(4px)}to{opacity:1;filter:blur()}}@keyframes pk-streaming-markdown-drop-in{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}@keyframes pk-streaming-markdown-slide-up{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes pk-streaming-markdown-fade-and-scale{0%{opacity:0;transform:scale(.85)}to{opacity:1;transform:scale(1)}}"]]]);
3406
+ export { Ea as t };
3403
3407
 
3404
- //# sourceMappingURL=PkStreamingMarkdown-BM-DSTPr.js.map
3408
+ //# sourceMappingURL=PkStreamingMarkdown-CfdkyZqP.js.map