@flyfish-group/file-viewer 1.0.4 → 1.0.6

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 (70) hide show
  1. package/LICENSE +160 -0
  2. package/README.md +152 -67
  3. package/dist/components/CadViewer.js +1 -0
  4. package/dist/components/CodeViewer.js +1 -0
  5. package/dist/components/ImageViewer.js +1 -1936
  6. package/dist/components/MarkdownViewer.js +1 -1479
  7. package/dist/components/OfdViewer.js +1 -0
  8. package/dist/components/PdfView.js +1 -22627
  9. package/dist/components/PptxRender.js +1 -21757
  10. package/dist/components/XlsxTable.js +1 -54393
  11. package/dist/components/_commonjsHelpers.js +1 -30
  12. package/dist/components/docx-preview.js +7 -5622
  13. package/dist/components/index.js +1 -1877
  14. package/dist/components/index2.js +1 -0
  15. package/dist/components/jszip.min.js +1 -0
  16. package/dist/components/ofd.js +1 -0
  17. package/dist/components/worker-ref.js +1 -26
  18. package/dist/index.d.ts +45 -0
  19. package/dist/index.mjs +1 -6
  20. package/dist/index.umd.js +7 -260
  21. package/dist/package/index.d.ts +6 -2
  22. package/dist/style.css +15 -46
  23. package/dist/worker/pdf.worker.js +1 -58
  24. package/dist/worker/pptx.worker.js +1 -21
  25. package/dist/worker/sheet.worker.js +1 -38
  26. package/package.json +73 -43
  27. package/dist/components/_commonjs-dynamic-modules.js +0 -6
  28. package/dist/components/utils.d.ts +0 -3
  29. package/dist/main.d.ts +0 -0
  30. package/dist/package/common/type.d.ts +0 -30
  31. package/dist/package/common/util.d.ts +0 -5
  32. package/dist/package/common/worker-ref.d.ts +0 -12
  33. package/dist/package/components/FileViewer/FileViewer.vue.d.ts +0 -18
  34. package/dist/package/components/FileViewer/index.d.ts +0 -2
  35. package/dist/package/components/FileViewer/util.d.ts +0 -2
  36. package/dist/package/use/index.d.ts +0 -1
  37. package/dist/package/use/worker.d.ts +0 -24
  38. package/dist/package/vendors/docx/index.d.ts +0 -4
  39. package/dist/package/vendors/image/ImageViewer.vue.d.ts +0 -15
  40. package/dist/package/vendors/image/index.d.ts +0 -5
  41. package/dist/package/vendors/md/MarkdownViewer.vue.d.ts +0 -15
  42. package/dist/package/vendors/md/index.d.ts +0 -5
  43. package/dist/package/vendors/mp4/index.d.ts +0 -4
  44. package/dist/package/vendors/pdf/PdfView.vue.d.ts +0 -15
  45. package/dist/package/vendors/pdf/index.d.ts +0 -2
  46. package/dist/package/vendors/pdf/worker/index.d.ts +0 -4
  47. package/dist/package/vendors/pptx/PptxRender.vue.d.ts +0 -87
  48. package/dist/package/vendors/pptx/index.d.ts +0 -7
  49. package/dist/package/vendors/pptx/options.d.ts +0 -39
  50. package/dist/package/vendors/pptx/support/chart.d.ts +0 -4
  51. package/dist/package/vendors/pptx/worker/index.d.ts +0 -4
  52. package/dist/package/vendors/renders.d.ts +0 -3
  53. package/dist/package/vendors/text/CodeViewer.vue.d.ts +0 -15
  54. package/dist/package/vendors/text/index.d.ts +0 -7
  55. package/dist/package/vendors/xlsx/XlsxTable.vue.d.ts +0 -17
  56. package/dist/package/vendors/xlsx/index.d.ts +0 -5
  57. package/dist/package/vendors/xlsx/render.d.ts +0 -6
  58. package/dist/package/vendors/xlsx/util.d.ts +0 -8
  59. package/dist/package/vendors/xlsx/worker/index.d.ts +0 -6
  60. package/dist/package/vendors/xlsx/worker/xls/SheetJsModel.d.ts +0 -36
  61. package/dist/package/vendors/xlsx/worker/xls/index.d.ts +0 -4
  62. package/dist/package/vendors/xlsx/worker/xls/sheet.worker.d.ts +0 -1
  63. package/dist/package/vendors/xlsx/worker/xlsx/ExcelJsModel.d.ts +0 -39
  64. package/dist/package/vendors/xlsx/worker/xlsx/color.d.ts +0 -2
  65. package/dist/package/vendors/xlsx/worker/xlsx/context.d.ts +0 -7
  66. package/dist/package/vendors/xlsx/worker/xlsx/index.d.ts +0 -4
  67. package/dist/package/vendors/xlsx/worker/xlsx/util.d.ts +0 -10
  68. package/dist/package/vendors/xlsx/worker/xlsx/xlsx.worker.d.ts +0 -2
  69. package/dist/vite.svg +0 -1
  70. package/dist/worker/xlsx.worker.js +0 -62
@@ -1,1479 +1 @@
1
- var we = Object.defineProperty, ye = Object.defineProperties;
2
- var $e = Object.getOwnPropertyDescriptors;
3
- var se = Object.getOwnPropertySymbols;
4
- var Te = Object.prototype.hasOwnProperty, _e = Object.prototype.propertyIsEnumerable;
5
- var H = (a, t, e) => t in a ? we(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e, x = (a, t) => {
6
- for (var e in t || (t = {}))
7
- Te.call(t, e) && H(a, e, t[e]);
8
- if (se)
9
- for (var e of se(t))
10
- _e.call(t, e) && H(a, e, t[e]);
11
- return a;
12
- }, R = (a, t) => ye(a, $e(t));
13
- var d = (a, t, e) => (H(a, typeof t != "symbol" ? t + "" : t, e), e), ze = (a, t, e) => {
14
- if (!t.has(a))
15
- throw TypeError("Cannot " + e);
16
- };
17
- var N = (a, t, e) => {
18
- if (t.has(a))
19
- throw TypeError("Cannot add the same private member more than once");
20
- t instanceof WeakSet ? t.add(a) : t.set(a, e);
21
- };
22
- var v = (a, t, e) => (ze(a, t, "access private method"), e);
23
- import { defineComponent as Re, computed as Ie } from "vue";
24
- import { n as Se } from "./index.js";
25
- function V() {
26
- return {
27
- async: !1,
28
- breaks: !1,
29
- extensions: null,
30
- gfm: !0,
31
- hooks: null,
32
- pedantic: !1,
33
- renderer: null,
34
- silent: !1,
35
- tokenizer: null,
36
- walkTokens: null
37
- };
38
- }
39
- let z = V();
40
- function ce(a) {
41
- z = a;
42
- }
43
- const he = /[&<>"']/, Ae = new RegExp(he.source, "g"), pe = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, Ee = new RegExp(pe.source, "g"), Ce = {
44
- "&": "&amp;",
45
- "<": "&lt;",
46
- ">": "&gt;",
47
- '"': "&quot;",
48
- "'": "&#39;"
49
- }, ie = (a) => Ce[a];
50
- function m(a, t) {
51
- if (t) {
52
- if (he.test(a))
53
- return a.replace(Ae, ie);
54
- } else if (pe.test(a))
55
- return a.replace(Ee, ie);
56
- return a;
57
- }
58
- const Le = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
59
- function ve(a) {
60
- return a.replace(Le, (t, e) => (e = e.toLowerCase(), e === "colon" ? ":" : e.charAt(0) === "#" ? e.charAt(1) === "x" ? String.fromCharCode(parseInt(e.substring(2), 16)) : String.fromCharCode(+e.substring(1)) : ""));
61
- }
62
- const Pe = /(^|[^\[])\^/g;
63
- function k(a, t) {
64
- let e = typeof a == "string" ? a : a.source;
65
- t = t || "";
66
- const n = {
67
- replace: (r, i) => {
68
- let s = typeof i == "string" ? i : i.source;
69
- return s = s.replace(Pe, "$1"), e = e.replace(r, s), n;
70
- },
71
- getRegex: () => new RegExp(e, t)
72
- };
73
- return n;
74
- }
75
- function re(a) {
76
- try {
77
- a = encodeURI(a).replace(/%25/g, "%");
78
- } catch (t) {
79
- return null;
80
- }
81
- return a;
82
- }
83
- const S = { exec: () => null };
84
- function le(a, t) {
85
- const e = a.replace(/\|/g, (i, s, l) => {
86
- let o = !1, p = s;
87
- for (; --p >= 0 && l[p] === "\\"; )
88
- o = !o;
89
- return o ? "|" : " |";
90
- }), n = e.split(/ \|/);
91
- let r = 0;
92
- if (n[0].trim() || n.shift(), n.length > 0 && !n[n.length - 1].trim() && n.pop(), t)
93
- if (n.length > t)
94
- n.splice(t);
95
- else
96
- for (; n.length < t; )
97
- n.push("");
98
- for (; r < n.length; r++)
99
- n[r] = n[r].trim().replace(/\\\|/g, "|");
100
- return n;
101
- }
102
- function P(a, t, e) {
103
- const n = a.length;
104
- if (n === 0)
105
- return "";
106
- let r = 0;
107
- for (; r < n; ) {
108
- const i = a.charAt(n - r - 1);
109
- if (i === t && !e)
110
- r++;
111
- else if (i !== t && e)
112
- r++;
113
- else
114
- break;
115
- }
116
- return a.slice(0, n - r);
117
- }
118
- function Ze(a, t) {
119
- if (a.indexOf(t[1]) === -1)
120
- return -1;
121
- let e = 0;
122
- for (let n = 0; n < a.length; n++)
123
- if (a[n] === "\\")
124
- n++;
125
- else if (a[n] === t[0])
126
- e++;
127
- else if (a[n] === t[1] && (e--, e < 0))
128
- return n;
129
- return -1;
130
- }
131
- function oe(a, t, e, n) {
132
- const r = t.href, i = t.title ? m(t.title) : null, s = a[1].replace(/\\([\[\]])/g, "$1");
133
- if (a[0].charAt(0) !== "!") {
134
- n.state.inLink = !0;
135
- const l = {
136
- type: "link",
137
- raw: e,
138
- href: r,
139
- title: i,
140
- text: s,
141
- tokens: n.inlineTokens(s)
142
- };
143
- return n.state.inLink = !1, l;
144
- }
145
- return {
146
- type: "image",
147
- raw: e,
148
- href: r,
149
- title: i,
150
- text: m(s)
151
- };
152
- }
153
- function Be(a, t) {
154
- const e = a.match(/^(\s+)(?:```)/);
155
- if (e === null)
156
- return t;
157
- const n = e[1];
158
- return t.split(`
159
- `).map((r) => {
160
- const i = r.match(/^\s+/);
161
- if (i === null)
162
- return r;
163
- const [s] = i;
164
- return s.length >= n.length ? r.slice(n.length) : r;
165
- }).join(`
166
- `);
167
- }
168
- class B {
169
- // set by the lexer
170
- constructor(t) {
171
- d(this, "options");
172
- d(this, "rules");
173
- // set by the lexer
174
- d(this, "lexer");
175
- this.options = t || z;
176
- }
177
- space(t) {
178
- const e = this.rules.block.newline.exec(t);
179
- if (e && e[0].length > 0)
180
- return {
181
- type: "space",
182
- raw: e[0]
183
- };
184
- }
185
- code(t) {
186
- const e = this.rules.block.code.exec(t);
187
- if (e) {
188
- const n = e[0].replace(/^ {1,4}/gm, "");
189
- return {
190
- type: "code",
191
- raw: e[0],
192
- codeBlockStyle: "indented",
193
- text: this.options.pedantic ? n : P(n, `
194
- `)
195
- };
196
- }
197
- }
198
- fences(t) {
199
- const e = this.rules.block.fences.exec(t);
200
- if (e) {
201
- const n = e[0], r = Be(n, e[3] || "");
202
- return {
203
- type: "code",
204
- raw: n,
205
- lang: e[2] ? e[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : e[2],
206
- text: r
207
- };
208
- }
209
- }
210
- heading(t) {
211
- const e = this.rules.block.heading.exec(t);
212
- if (e) {
213
- let n = e[2].trim();
214
- if (/#$/.test(n)) {
215
- const r = P(n, "#");
216
- (this.options.pedantic || !r || / $/.test(r)) && (n = r.trim());
217
- }
218
- return {
219
- type: "heading",
220
- raw: e[0],
221
- depth: e[1].length,
222
- text: n,
223
- tokens: this.lexer.inline(n)
224
- };
225
- }
226
- }
227
- hr(t) {
228
- const e = this.rules.block.hr.exec(t);
229
- if (e)
230
- return {
231
- type: "hr",
232
- raw: e[0]
233
- };
234
- }
235
- blockquote(t) {
236
- const e = this.rules.block.blockquote.exec(t);
237
- if (e) {
238
- const n = P(e[0].replace(/^ *>[ \t]?/gm, ""), `
239
- `), r = this.lexer.state.top;
240
- this.lexer.state.top = !0;
241
- const i = this.lexer.blockTokens(n);
242
- return this.lexer.state.top = r, {
243
- type: "blockquote",
244
- raw: e[0],
245
- tokens: i,
246
- text: n
247
- };
248
- }
249
- }
250
- list(t) {
251
- let e = this.rules.block.list.exec(t);
252
- if (e) {
253
- let n = e[1].trim();
254
- const r = n.length > 1, i = {
255
- type: "list",
256
- raw: "",
257
- ordered: r,
258
- start: r ? +n.slice(0, -1) : "",
259
- loose: !1,
260
- items: []
261
- };
262
- n = r ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r ? n : "[*+-]");
263
- const s = new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`);
264
- let l = "", o = "", p = !1;
265
- for (; t; ) {
266
- let c = !1;
267
- if (!(e = s.exec(t)) || this.rules.block.hr.test(t))
268
- break;
269
- l = e[0], t = t.substring(l.length);
270
- let u = e[2].split(`
271
- `, 1)[0].replace(/^\t+/, (O) => " ".repeat(3 * O.length)), h = t.split(`
272
- `, 1)[0], g = 0;
273
- this.options.pedantic ? (g = 2, o = u.trimStart()) : (g = e[2].search(/[^ ]/), g = g > 4 ? 1 : g, o = u.slice(g), g += e[1].length);
274
- let $ = !1;
275
- if (!u && /^ *$/.test(h) && (l += h + `
276
- `, t = t.substring(h.length + 1), c = !0), !c) {
277
- const O = new RegExp(`^ {0,${Math.min(3, g - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), ee = new RegExp(`^ {0,${Math.min(3, g - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), te = new RegExp(`^ {0,${Math.min(3, g - 1)}}(?:\`\`\`|~~~)`), ne = new RegExp(`^ {0,${Math.min(3, g - 1)}}#`);
278
- for (; t; ) {
279
- const j = t.split(`
280
- `, 1)[0];
281
- if (h = j, this.options.pedantic && (h = h.replace(/^ {1,4}(?=( {4})*[^ ])/g, " ")), te.test(h) || ne.test(h) || O.test(h) || ee.test(t))
282
- break;
283
- if (h.search(/[^ ]/) >= g || !h.trim())
284
- o += `
285
- ` + h.slice(g);
286
- else {
287
- if ($ || u.search(/[^ ]/) >= 4 || te.test(u) || ne.test(u) || ee.test(u))
288
- break;
289
- o += `
290
- ` + h;
291
- }
292
- !$ && !h.trim() && ($ = !0), l += j + `
293
- `, t = t.substring(j.length + 1), u = h.slice(g);
294
- }
295
- }
296
- i.loose || (p ? i.loose = !0 : /\n *\n *$/.test(l) && (p = !0));
297
- let b = null, T;
298
- this.options.gfm && (b = /^\[[ xX]\] /.exec(o), b && (T = b[0] !== "[ ] ", o = o.replace(/^\[[ xX]\] +/, ""))), i.items.push({
299
- type: "list_item",
300
- raw: l,
301
- task: !!b,
302
- checked: T,
303
- loose: !1,
304
- text: o,
305
- tokens: []
306
- }), i.raw += l;
307
- }
308
- i.items[i.items.length - 1].raw = l.trimEnd(), i.items[i.items.length - 1].text = o.trimEnd(), i.raw = i.raw.trimEnd();
309
- for (let c = 0; c < i.items.length; c++)
310
- if (this.lexer.state.top = !1, i.items[c].tokens = this.lexer.blockTokens(i.items[c].text, []), !i.loose) {
311
- const u = i.items[c].tokens.filter((g) => g.type === "space"), h = u.length > 0 && u.some((g) => /\n.*\n/.test(g.raw));
312
- i.loose = h;
313
- }
314
- if (i.loose)
315
- for (let c = 0; c < i.items.length; c++)
316
- i.items[c].loose = !0;
317
- return i;
318
- }
319
- }
320
- html(t) {
321
- const e = this.rules.block.html.exec(t);
322
- if (e)
323
- return {
324
- type: "html",
325
- block: !0,
326
- raw: e[0],
327
- pre: e[1] === "pre" || e[1] === "script" || e[1] === "style",
328
- text: e[0]
329
- };
330
- }
331
- def(t) {
332
- const e = this.rules.block.def.exec(t);
333
- if (e) {
334
- const n = e[1].toLowerCase().replace(/\s+/g, " "), r = e[2] ? e[2].replace(/^<(.*)>$/, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", i = e[3] ? e[3].substring(1, e[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : e[3];
335
- return {
336
- type: "def",
337
- tag: n,
338
- raw: e[0],
339
- href: r,
340
- title: i
341
- };
342
- }
343
- }
344
- table(t) {
345
- const e = this.rules.block.table.exec(t);
346
- if (!e || !/[:|]/.test(e[2]))
347
- return;
348
- const n = le(e[1]), r = e[2].replace(/^\||\| *$/g, "").split("|"), i = e[3] && e[3].trim() ? e[3].replace(/\n[ \t]*$/, "").split(`
349
- `) : [], s = {
350
- type: "table",
351
- raw: e[0],
352
- header: [],
353
- align: [],
354
- rows: []
355
- };
356
- if (n.length === r.length) {
357
- for (const l of r)
358
- /^ *-+: *$/.test(l) ? s.align.push("right") : /^ *:-+: *$/.test(l) ? s.align.push("center") : /^ *:-+ *$/.test(l) ? s.align.push("left") : s.align.push(null);
359
- for (const l of n)
360
- s.header.push({
361
- text: l,
362
- tokens: this.lexer.inline(l)
363
- });
364
- for (const l of i)
365
- s.rows.push(le(l, s.header.length).map((o) => ({
366
- text: o,
367
- tokens: this.lexer.inline(o)
368
- })));
369
- return s;
370
- }
371
- }
372
- lheading(t) {
373
- const e = this.rules.block.lheading.exec(t);
374
- if (e)
375
- return {
376
- type: "heading",
377
- raw: e[0],
378
- depth: e[2].charAt(0) === "=" ? 1 : 2,
379
- text: e[1],
380
- tokens: this.lexer.inline(e[1])
381
- };
382
- }
383
- paragraph(t) {
384
- const e = this.rules.block.paragraph.exec(t);
385
- if (e) {
386
- const n = e[1].charAt(e[1].length - 1) === `
387
- ` ? e[1].slice(0, -1) : e[1];
388
- return {
389
- type: "paragraph",
390
- raw: e[0],
391
- text: n,
392
- tokens: this.lexer.inline(n)
393
- };
394
- }
395
- }
396
- text(t) {
397
- const e = this.rules.block.text.exec(t);
398
- if (e)
399
- return {
400
- type: "text",
401
- raw: e[0],
402
- text: e[0],
403
- tokens: this.lexer.inline(e[0])
404
- };
405
- }
406
- escape(t) {
407
- const e = this.rules.inline.escape.exec(t);
408
- if (e)
409
- return {
410
- type: "escape",
411
- raw: e[0],
412
- text: m(e[1])
413
- };
414
- }
415
- tag(t) {
416
- const e = this.rules.inline.tag.exec(t);
417
- if (e)
418
- return !this.lexer.state.inLink && /^<a /i.test(e[0]) ? this.lexer.state.inLink = !0 : this.lexer.state.inLink && /^<\/a>/i.test(e[0]) && (this.lexer.state.inLink = !1), !this.lexer.state.inRawBlock && /^<(pre|code|kbd|script)(\s|>)/i.test(e[0]) ? this.lexer.state.inRawBlock = !0 : this.lexer.state.inRawBlock && /^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0]) && (this.lexer.state.inRawBlock = !1), {
419
- type: "html",
420
- raw: e[0],
421
- inLink: this.lexer.state.inLink,
422
- inRawBlock: this.lexer.state.inRawBlock,
423
- block: !1,
424
- text: e[0]
425
- };
426
- }
427
- link(t) {
428
- const e = this.rules.inline.link.exec(t);
429
- if (e) {
430
- const n = e[2].trim();
431
- if (!this.options.pedantic && /^</.test(n)) {
432
- if (!/>$/.test(n))
433
- return;
434
- const s = P(n.slice(0, -1), "\\");
435
- if ((n.length - s.length) % 2 === 0)
436
- return;
437
- } else {
438
- const s = Ze(e[2], "()");
439
- if (s > -1) {
440
- const o = (e[0].indexOf("!") === 0 ? 5 : 4) + e[1].length + s;
441
- e[2] = e[2].substring(0, s), e[0] = e[0].substring(0, o).trim(), e[3] = "";
442
- }
443
- }
444
- let r = e[2], i = "";
445
- if (this.options.pedantic) {
446
- const s = /^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);
447
- s && (r = s[1], i = s[3]);
448
- } else
449
- i = e[3] ? e[3].slice(1, -1) : "";
450
- return r = r.trim(), /^</.test(r) && (this.options.pedantic && !/>$/.test(n) ? r = r.slice(1) : r = r.slice(1, -1)), oe(e, {
451
- href: r && r.replace(this.rules.inline.anyPunctuation, "$1"),
452
- title: i && i.replace(this.rules.inline.anyPunctuation, "$1")
453
- }, e[0], this.lexer);
454
- }
455
- }
456
- reflink(t, e) {
457
- let n;
458
- if ((n = this.rules.inline.reflink.exec(t)) || (n = this.rules.inline.nolink.exec(t))) {
459
- const r = (n[2] || n[1]).replace(/\s+/g, " "), i = e[r.toLowerCase()];
460
- if (!i) {
461
- const s = n[0].charAt(0);
462
- return {
463
- type: "text",
464
- raw: s,
465
- text: s
466
- };
467
- }
468
- return oe(n, i, n[0], this.lexer);
469
- }
470
- }
471
- emStrong(t, e, n = "") {
472
- let r = this.rules.inline.emStrongLDelim.exec(t);
473
- if (!r || r[3] && n.match(/[\p{L}\p{N}]/u))
474
- return;
475
- if (!(r[1] || r[2] || "") || !n || this.rules.inline.punctuation.exec(n)) {
476
- const s = [...r[0]].length - 1;
477
- let l, o, p = s, c = 0;
478
- const u = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
479
- for (u.lastIndex = 0, e = e.slice(-1 * t.length + s); (r = u.exec(e)) != null; ) {
480
- if (l = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !l)
481
- continue;
482
- if (o = [...l].length, r[3] || r[4]) {
483
- p += o;
484
- continue;
485
- } else if ((r[5] || r[6]) && s % 3 && !((s + o) % 3)) {
486
- c += o;
487
- continue;
488
- }
489
- if (p -= o, p > 0)
490
- continue;
491
- o = Math.min(o, o + p + c);
492
- const h = [...r[0]][0].length, g = t.slice(0, s + r.index + h + o);
493
- if (Math.min(s, o) % 2) {
494
- const b = g.slice(1, -1);
495
- return {
496
- type: "em",
497
- raw: g,
498
- text: b,
499
- tokens: this.lexer.inlineTokens(b)
500
- };
501
- }
502
- const $ = g.slice(2, -2);
503
- return {
504
- type: "strong",
505
- raw: g,
506
- text: $,
507
- tokens: this.lexer.inlineTokens($)
508
- };
509
- }
510
- }
511
- }
512
- codespan(t) {
513
- const e = this.rules.inline.code.exec(t);
514
- if (e) {
515
- let n = e[2].replace(/\n/g, " ");
516
- const r = /[^ ]/.test(n), i = /^ /.test(n) && / $/.test(n);
517
- return r && i && (n = n.substring(1, n.length - 1)), n = m(n, !0), {
518
- type: "codespan",
519
- raw: e[0],
520
- text: n
521
- };
522
- }
523
- }
524
- br(t) {
525
- const e = this.rules.inline.br.exec(t);
526
- if (e)
527
- return {
528
- type: "br",
529
- raw: e[0]
530
- };
531
- }
532
- del(t) {
533
- const e = this.rules.inline.del.exec(t);
534
- if (e)
535
- return {
536
- type: "del",
537
- raw: e[0],
538
- text: e[2],
539
- tokens: this.lexer.inlineTokens(e[2])
540
- };
541
- }
542
- autolink(t) {
543
- const e = this.rules.inline.autolink.exec(t);
544
- if (e) {
545
- let n, r;
546
- return e[2] === "@" ? (n = m(e[1]), r = "mailto:" + n) : (n = m(e[1]), r = n), {
547
- type: "link",
548
- raw: e[0],
549
- text: n,
550
- href: r,
551
- tokens: [
552
- {
553
- type: "text",
554
- raw: n,
555
- text: n
556
- }
557
- ]
558
- };
559
- }
560
- }
561
- url(t) {
562
- var n, r;
563
- let e;
564
- if (e = this.rules.inline.url.exec(t)) {
565
- let i, s;
566
- if (e[2] === "@")
567
- i = m(e[0]), s = "mailto:" + i;
568
- else {
569
- let l;
570
- do
571
- l = e[0], e[0] = (r = (n = this.rules.inline._backpedal.exec(e[0])) == null ? void 0 : n[0]) != null ? r : "";
572
- while (l !== e[0]);
573
- i = m(e[0]), e[1] === "www." ? s = "http://" + e[0] : s = e[0];
574
- }
575
- return {
576
- type: "link",
577
- raw: e[0],
578
- text: i,
579
- href: s,
580
- tokens: [
581
- {
582
- type: "text",
583
- raw: i,
584
- text: i
585
- }
586
- ]
587
- };
588
- }
589
- }
590
- inlineText(t) {
591
- const e = this.rules.inline.text.exec(t);
592
- if (e) {
593
- let n;
594
- return this.lexer.state.inRawBlock ? n = e[0] : n = m(e[0]), {
595
- type: "text",
596
- raw: e[0],
597
- text: n
598
- };
599
- }
600
- }
601
- }
602
- const qe = /^(?: *(?:\n|$))+/, Me = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, Qe = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, C = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, De = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, ue = /(?:[*+-]|\d{1,9}[.)])/, fe = k(/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, ue).getRegex(), X = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Oe = /^[^\n]+/, G = /(?!\s*\])(?:\\.|[^\[\]\\])+/, je = k(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", G).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), He = k(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, ue).getRegex(), D = "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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", W = /<!--(?!-?>)[\s\S]*?(?:-->|$)/, Ne = k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", W).replace("tag", D).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ge = k(X).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", D).getRegex(), Fe = k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ge).getRegex(), J = {
603
- blockquote: Fe,
604
- code: Me,
605
- def: je,
606
- fences: Qe,
607
- heading: De,
608
- hr: C,
609
- html: Ne,
610
- lheading: fe,
611
- list: He,
612
- newline: qe,
613
- paragraph: ge,
614
- table: S,
615
- text: Oe
616
- }, ae = k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", D).getRegex(), Ue = R(x({}, J), {
617
- table: ae,
618
- paragraph: k(X).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ae).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", D).getRegex()
619
- }), Ve = R(x({}, J), {
620
- html: k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", W).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(),
621
- def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
622
- heading: /^(#{1,6})(.*)(?:\n+|$)/,
623
- fences: S,
624
- // fences not supported
625
- lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
626
- paragraph: k(X).replace("hr", C).replace("heading", ` *#{1,6} *[^
627
- ]`).replace("lheading", fe).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
628
- }), ke = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Xe = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, de = /^( {2,}|\\)\n(?!\s*$)/, Ge = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, L = "\\p{P}$+<=>`^|~", We = k(/^((?![*_])[\spunctuation])/, "u").replace(/punctuation/g, L).getRegex(), Je = /\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g, Ke = k(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, L).getRegex(), Ye = k("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, L).getRegex(), et = k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, L).getRegex(), tt = k(/\\([punct])/, "gu").replace(/punct/g, L).getRegex(), nt = k(/^<(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(), st = k(W).replace("(?:-->|$)", "-->").getRegex(), it = k("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", st).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, rt = k(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), xe = k(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", G).getRegex(), me = k(/^!?\[(ref)\](?:\[\])?/).replace("ref", G).getRegex(), lt = k("reflink|nolink(?!\\()", "g").replace("reflink", xe).replace("nolink", me).getRegex(), K = {
629
- _backpedal: S,
630
- // only used for GFM url
631
- anyPunctuation: tt,
632
- autolink: nt,
633
- blockSkip: Je,
634
- br: de,
635
- code: Xe,
636
- del: S,
637
- emStrongLDelim: Ke,
638
- emStrongRDelimAst: Ye,
639
- emStrongRDelimUnd: et,
640
- escape: ke,
641
- link: rt,
642
- nolink: me,
643
- punctuation: We,
644
- reflink: xe,
645
- reflinkSearch: lt,
646
- tag: it,
647
- text: Ge,
648
- url: S
649
- }, ot = R(x({}, K), {
650
- link: k(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(),
651
- reflink: k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex()
652
- }), F = R(x({}, K), {
653
- escape: k(ke).replace("])", "~|])").getRegex(),
654
- url: k(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
655
- _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
656
- del: /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,
657
- text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
658
- }), at = R(x({}, F), {
659
- br: k(de).replace("{2,}", "*").getRegex(),
660
- text: k(F.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
661
- }), Z = {
662
- normal: J,
663
- gfm: Ue,
664
- pedantic: Ve
665
- }, I = {
666
- normal: K,
667
- gfm: F,
668
- breaks: at,
669
- pedantic: ot
670
- };
671
- class w {
672
- constructor(t) {
673
- d(this, "tokens");
674
- d(this, "options");
675
- d(this, "state");
676
- d(this, "tokenizer");
677
- d(this, "inlineQueue");
678
- this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = t || z, this.options.tokenizer = this.options.tokenizer || new B(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
679
- inLink: !1,
680
- inRawBlock: !1,
681
- top: !0
682
- };
683
- const e = {
684
- block: Z.normal,
685
- inline: I.normal
686
- };
687
- this.options.pedantic ? (e.block = Z.pedantic, e.inline = I.pedantic) : this.options.gfm && (e.block = Z.gfm, this.options.breaks ? e.inline = I.breaks : e.inline = I.gfm), this.tokenizer.rules = e;
688
- }
689
- /**
690
- * Expose Rules
691
- */
692
- static get rules() {
693
- return {
694
- block: Z,
695
- inline: I
696
- };
697
- }
698
- /**
699
- * Static Lex Method
700
- */
701
- static lex(t, e) {
702
- return new w(e).lex(t);
703
- }
704
- /**
705
- * Static Lex Inline Method
706
- */
707
- static lexInline(t, e) {
708
- return new w(e).inlineTokens(t);
709
- }
710
- /**
711
- * Preprocessing
712
- */
713
- lex(t) {
714
- t = t.replace(/\r\n|\r/g, `
715
- `), this.blockTokens(t, this.tokens);
716
- for (let e = 0; e < this.inlineQueue.length; e++) {
717
- const n = this.inlineQueue[e];
718
- this.inlineTokens(n.src, n.tokens);
719
- }
720
- return this.inlineQueue = [], this.tokens;
721
- }
722
- blockTokens(t, e = []) {
723
- this.options.pedantic ? t = t.replace(/\t/g, " ").replace(/^ +$/gm, "") : t = t.replace(/^( *)(\t+)/gm, (l, o, p) => o + " ".repeat(p.length));
724
- let n, r, i, s;
725
- for (; t; )
726
- if (!(this.options.extensions && this.options.extensions.block && this.options.extensions.block.some((l) => (n = l.call({ lexer: this }, t, e)) ? (t = t.substring(n.raw.length), e.push(n), !0) : !1))) {
727
- if (n = this.tokenizer.space(t)) {
728
- t = t.substring(n.raw.length), n.raw.length === 1 && e.length > 0 ? e[e.length - 1].raw += `
729
- ` : e.push(n);
730
- continue;
731
- }
732
- if (n = this.tokenizer.code(t)) {
733
- t = t.substring(n.raw.length), r = e[e.length - 1], r && (r.type === "paragraph" || r.type === "text") ? (r.raw += `
734
- ` + n.raw, r.text += `
735
- ` + n.text, this.inlineQueue[this.inlineQueue.length - 1].src = r.text) : e.push(n);
736
- continue;
737
- }
738
- if (n = this.tokenizer.fences(t)) {
739
- t = t.substring(n.raw.length), e.push(n);
740
- continue;
741
- }
742
- if (n = this.tokenizer.heading(t)) {
743
- t = t.substring(n.raw.length), e.push(n);
744
- continue;
745
- }
746
- if (n = this.tokenizer.hr(t)) {
747
- t = t.substring(n.raw.length), e.push(n);
748
- continue;
749
- }
750
- if (n = this.tokenizer.blockquote(t)) {
751
- t = t.substring(n.raw.length), e.push(n);
752
- continue;
753
- }
754
- if (n = this.tokenizer.list(t)) {
755
- t = t.substring(n.raw.length), e.push(n);
756
- continue;
757
- }
758
- if (n = this.tokenizer.html(t)) {
759
- t = t.substring(n.raw.length), e.push(n);
760
- continue;
761
- }
762
- if (n = this.tokenizer.def(t)) {
763
- t = t.substring(n.raw.length), r = e[e.length - 1], r && (r.type === "paragraph" || r.type === "text") ? (r.raw += `
764
- ` + n.raw, r.text += `
765
- ` + n.raw, this.inlineQueue[this.inlineQueue.length - 1].src = r.text) : this.tokens.links[n.tag] || (this.tokens.links[n.tag] = {
766
- href: n.href,
767
- title: n.title
768
- });
769
- continue;
770
- }
771
- if (n = this.tokenizer.table(t)) {
772
- t = t.substring(n.raw.length), e.push(n);
773
- continue;
774
- }
775
- if (n = this.tokenizer.lheading(t)) {
776
- t = t.substring(n.raw.length), e.push(n);
777
- continue;
778
- }
779
- if (i = t, this.options.extensions && this.options.extensions.startBlock) {
780
- let l = 1 / 0;
781
- const o = t.slice(1);
782
- let p;
783
- this.options.extensions.startBlock.forEach((c) => {
784
- p = c.call({ lexer: this }, o), typeof p == "number" && p >= 0 && (l = Math.min(l, p));
785
- }), l < 1 / 0 && l >= 0 && (i = t.substring(0, l + 1));
786
- }
787
- if (this.state.top && (n = this.tokenizer.paragraph(i))) {
788
- r = e[e.length - 1], s && r.type === "paragraph" ? (r.raw += `
789
- ` + n.raw, r.text += `
790
- ` + n.text, this.inlineQueue.pop(), this.inlineQueue[this.inlineQueue.length - 1].src = r.text) : e.push(n), s = i.length !== t.length, t = t.substring(n.raw.length);
791
- continue;
792
- }
793
- if (n = this.tokenizer.text(t)) {
794
- t = t.substring(n.raw.length), r = e[e.length - 1], r && r.type === "text" ? (r.raw += `
795
- ` + n.raw, r.text += `
796
- ` + n.text, this.inlineQueue.pop(), this.inlineQueue[this.inlineQueue.length - 1].src = r.text) : e.push(n);
797
- continue;
798
- }
799
- if (t) {
800
- const l = "Infinite loop on byte: " + t.charCodeAt(0);
801
- if (this.options.silent) {
802
- console.error(l);
803
- break;
804
- } else
805
- throw new Error(l);
806
- }
807
- }
808
- return this.state.top = !0, e;
809
- }
810
- inline(t, e = []) {
811
- return this.inlineQueue.push({ src: t, tokens: e }), e;
812
- }
813
- /**
814
- * Lexing/Compiling
815
- */
816
- inlineTokens(t, e = []) {
817
- let n, r, i, s = t, l, o, p;
818
- if (this.tokens.links) {
819
- const c = Object.keys(this.tokens.links);
820
- if (c.length > 0)
821
- for (; (l = this.tokenizer.rules.inline.reflinkSearch.exec(s)) != null; )
822
- c.includes(l[0].slice(l[0].lastIndexOf("[") + 1, -1)) && (s = s.slice(0, l.index) + "[" + "a".repeat(l[0].length - 2) + "]" + s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
823
- }
824
- for (; (l = this.tokenizer.rules.inline.blockSkip.exec(s)) != null; )
825
- s = s.slice(0, l.index) + "[" + "a".repeat(l[0].length - 2) + "]" + s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
826
- for (; (l = this.tokenizer.rules.inline.anyPunctuation.exec(s)) != null; )
827
- s = s.slice(0, l.index) + "++" + s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
828
- for (; t; )
829
- if (o || (p = ""), o = !1, !(this.options.extensions && this.options.extensions.inline && this.options.extensions.inline.some((c) => (n = c.call({ lexer: this }, t, e)) ? (t = t.substring(n.raw.length), e.push(n), !0) : !1))) {
830
- if (n = this.tokenizer.escape(t)) {
831
- t = t.substring(n.raw.length), e.push(n);
832
- continue;
833
- }
834
- if (n = this.tokenizer.tag(t)) {
835
- t = t.substring(n.raw.length), r = e[e.length - 1], r && n.type === "text" && r.type === "text" ? (r.raw += n.raw, r.text += n.text) : e.push(n);
836
- continue;
837
- }
838
- if (n = this.tokenizer.link(t)) {
839
- t = t.substring(n.raw.length), e.push(n);
840
- continue;
841
- }
842
- if (n = this.tokenizer.reflink(t, this.tokens.links)) {
843
- t = t.substring(n.raw.length), r = e[e.length - 1], r && n.type === "text" && r.type === "text" ? (r.raw += n.raw, r.text += n.text) : e.push(n);
844
- continue;
845
- }
846
- if (n = this.tokenizer.emStrong(t, s, p)) {
847
- t = t.substring(n.raw.length), e.push(n);
848
- continue;
849
- }
850
- if (n = this.tokenizer.codespan(t)) {
851
- t = t.substring(n.raw.length), e.push(n);
852
- continue;
853
- }
854
- if (n = this.tokenizer.br(t)) {
855
- t = t.substring(n.raw.length), e.push(n);
856
- continue;
857
- }
858
- if (n = this.tokenizer.del(t)) {
859
- t = t.substring(n.raw.length), e.push(n);
860
- continue;
861
- }
862
- if (n = this.tokenizer.autolink(t)) {
863
- t = t.substring(n.raw.length), e.push(n);
864
- continue;
865
- }
866
- if (!this.state.inLink && (n = this.tokenizer.url(t))) {
867
- t = t.substring(n.raw.length), e.push(n);
868
- continue;
869
- }
870
- if (i = t, this.options.extensions && this.options.extensions.startInline) {
871
- let c = 1 / 0;
872
- const u = t.slice(1);
873
- let h;
874
- this.options.extensions.startInline.forEach((g) => {
875
- h = g.call({ lexer: this }, u), typeof h == "number" && h >= 0 && (c = Math.min(c, h));
876
- }), c < 1 / 0 && c >= 0 && (i = t.substring(0, c + 1));
877
- }
878
- if (n = this.tokenizer.inlineText(i)) {
879
- t = t.substring(n.raw.length), n.raw.slice(-1) !== "_" && (p = n.raw.slice(-1)), o = !0, r = e[e.length - 1], r && r.type === "text" ? (r.raw += n.raw, r.text += n.text) : e.push(n);
880
- continue;
881
- }
882
- if (t) {
883
- const c = "Infinite loop on byte: " + t.charCodeAt(0);
884
- if (this.options.silent) {
885
- console.error(c);
886
- break;
887
- } else
888
- throw new Error(c);
889
- }
890
- }
891
- return e;
892
- }
893
- }
894
- class M {
895
- constructor(t) {
896
- d(this, "options");
897
- this.options = t || z;
898
- }
899
- code(t, e, n) {
900
- var i;
901
- const r = (i = (e || "").match(/^\S*/)) == null ? void 0 : i[0];
902
- return t = t.replace(/\n$/, "") + `
903
- `, r ? '<pre><code class="language-' + m(r) + '">' + (n ? t : m(t, !0)) + `</code></pre>
904
- ` : "<pre><code>" + (n ? t : m(t, !0)) + `</code></pre>
905
- `;
906
- }
907
- blockquote(t) {
908
- return `<blockquote>
909
- ${t}</blockquote>
910
- `;
911
- }
912
- html(t, e) {
913
- return t;
914
- }
915
- heading(t, e, n) {
916
- return `<h${e}>${t}</h${e}>
917
- `;
918
- }
919
- hr() {
920
- return `<hr>
921
- `;
922
- }
923
- list(t, e, n) {
924
- const r = e ? "ol" : "ul", i = e && n !== 1 ? ' start="' + n + '"' : "";
925
- return "<" + r + i + `>
926
- ` + t + "</" + r + `>
927
- `;
928
- }
929
- listitem(t, e, n) {
930
- return `<li>${t}</li>
931
- `;
932
- }
933
- checkbox(t) {
934
- return "<input " + (t ? 'checked="" ' : "") + 'disabled="" type="checkbox">';
935
- }
936
- paragraph(t) {
937
- return `<p>${t}</p>
938
- `;
939
- }
940
- table(t, e) {
941
- return e && (e = `<tbody>${e}</tbody>`), `<table>
942
- <thead>
943
- ` + t + `</thead>
944
- ` + e + `</table>
945
- `;
946
- }
947
- tablerow(t) {
948
- return `<tr>
949
- ${t}</tr>
950
- `;
951
- }
952
- tablecell(t, e) {
953
- const n = e.header ? "th" : "td";
954
- return (e.align ? `<${n} align="${e.align}">` : `<${n}>`) + t + `</${n}>
955
- `;
956
- }
957
- /**
958
- * span level renderer
959
- */
960
- strong(t) {
961
- return `<strong>${t}</strong>`;
962
- }
963
- em(t) {
964
- return `<em>${t}</em>`;
965
- }
966
- codespan(t) {
967
- return `<code>${t}</code>`;
968
- }
969
- br() {
970
- return "<br>";
971
- }
972
- del(t) {
973
- return `<del>${t}</del>`;
974
- }
975
- link(t, e, n) {
976
- const r = re(t);
977
- if (r === null)
978
- return n;
979
- t = r;
980
- let i = '<a href="' + t + '"';
981
- return e && (i += ' title="' + e + '"'), i += ">" + n + "</a>", i;
982
- }
983
- image(t, e, n) {
984
- const r = re(t);
985
- if (r === null)
986
- return n;
987
- t = r;
988
- let i = `<img src="${t}" alt="${n}"`;
989
- return e && (i += ` title="${e}"`), i += ">", i;
990
- }
991
- text(t) {
992
- return t;
993
- }
994
- }
995
- class Y {
996
- // no need for block level renderers
997
- strong(t) {
998
- return t;
999
- }
1000
- em(t) {
1001
- return t;
1002
- }
1003
- codespan(t) {
1004
- return t;
1005
- }
1006
- del(t) {
1007
- return t;
1008
- }
1009
- html(t) {
1010
- return t;
1011
- }
1012
- text(t) {
1013
- return t;
1014
- }
1015
- link(t, e, n) {
1016
- return "" + n;
1017
- }
1018
- image(t, e, n) {
1019
- return "" + n;
1020
- }
1021
- br() {
1022
- return "";
1023
- }
1024
- }
1025
- class y {
1026
- constructor(t) {
1027
- d(this, "options");
1028
- d(this, "renderer");
1029
- d(this, "textRenderer");
1030
- this.options = t || z, this.options.renderer = this.options.renderer || new M(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.textRenderer = new Y();
1031
- }
1032
- /**
1033
- * Static Parse Method
1034
- */
1035
- static parse(t, e) {
1036
- return new y(e).parse(t);
1037
- }
1038
- /**
1039
- * Static Parse Inline Method
1040
- */
1041
- static parseInline(t, e) {
1042
- return new y(e).parseInline(t);
1043
- }
1044
- /**
1045
- * Parse Loop
1046
- */
1047
- parse(t, e = !0) {
1048
- let n = "";
1049
- for (let r = 0; r < t.length; r++) {
1050
- const i = t[r];
1051
- if (this.options.extensions && this.options.extensions.renderers && this.options.extensions.renderers[i.type]) {
1052
- const s = i, l = this.options.extensions.renderers[s.type].call({ parser: this }, s);
1053
- if (l !== !1 || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "paragraph", "text"].includes(s.type)) {
1054
- n += l || "";
1055
- continue;
1056
- }
1057
- }
1058
- switch (i.type) {
1059
- case "space":
1060
- continue;
1061
- case "hr": {
1062
- n += this.renderer.hr();
1063
- continue;
1064
- }
1065
- case "heading": {
1066
- const s = i;
1067
- n += this.renderer.heading(this.parseInline(s.tokens), s.depth, ve(this.parseInline(s.tokens, this.textRenderer)));
1068
- continue;
1069
- }
1070
- case "code": {
1071
- const s = i;
1072
- n += this.renderer.code(s.text, s.lang, !!s.escaped);
1073
- continue;
1074
- }
1075
- case "table": {
1076
- const s = i;
1077
- let l = "", o = "";
1078
- for (let c = 0; c < s.header.length; c++)
1079
- o += this.renderer.tablecell(this.parseInline(s.header[c].tokens), { header: !0, align: s.align[c] });
1080
- l += this.renderer.tablerow(o);
1081
- let p = "";
1082
- for (let c = 0; c < s.rows.length; c++) {
1083
- const u = s.rows[c];
1084
- o = "";
1085
- for (let h = 0; h < u.length; h++)
1086
- o += this.renderer.tablecell(this.parseInline(u[h].tokens), { header: !1, align: s.align[h] });
1087
- p += this.renderer.tablerow(o);
1088
- }
1089
- n += this.renderer.table(l, p);
1090
- continue;
1091
- }
1092
- case "blockquote": {
1093
- const s = i, l = this.parse(s.tokens);
1094
- n += this.renderer.blockquote(l);
1095
- continue;
1096
- }
1097
- case "list": {
1098
- const s = i, l = s.ordered, o = s.start, p = s.loose;
1099
- let c = "";
1100
- for (let u = 0; u < s.items.length; u++) {
1101
- const h = s.items[u], g = h.checked, $ = h.task;
1102
- let b = "";
1103
- if (h.task) {
1104
- const T = this.renderer.checkbox(!!g);
1105
- p ? h.tokens.length > 0 && h.tokens[0].type === "paragraph" ? (h.tokens[0].text = T + " " + h.tokens[0].text, h.tokens[0].tokens && h.tokens[0].tokens.length > 0 && h.tokens[0].tokens[0].type === "text" && (h.tokens[0].tokens[0].text = T + " " + h.tokens[0].tokens[0].text)) : h.tokens.unshift({
1106
- type: "text",
1107
- text: T + " "
1108
- }) : b += T + " ";
1109
- }
1110
- b += this.parse(h.tokens, p), c += this.renderer.listitem(b, $, !!g);
1111
- }
1112
- n += this.renderer.list(c, l, o);
1113
- continue;
1114
- }
1115
- case "html": {
1116
- const s = i;
1117
- n += this.renderer.html(s.text, s.block);
1118
- continue;
1119
- }
1120
- case "paragraph": {
1121
- const s = i;
1122
- n += this.renderer.paragraph(this.parseInline(s.tokens));
1123
- continue;
1124
- }
1125
- case "text": {
1126
- let s = i, l = s.tokens ? this.parseInline(s.tokens) : s.text;
1127
- for (; r + 1 < t.length && t[r + 1].type === "text"; )
1128
- s = t[++r], l += `
1129
- ` + (s.tokens ? this.parseInline(s.tokens) : s.text);
1130
- n += e ? this.renderer.paragraph(l) : l;
1131
- continue;
1132
- }
1133
- default: {
1134
- const s = 'Token with "' + i.type + '" type was not found.';
1135
- if (this.options.silent)
1136
- return console.error(s), "";
1137
- throw new Error(s);
1138
- }
1139
- }
1140
- }
1141
- return n;
1142
- }
1143
- /**
1144
- * Parse Inline Tokens
1145
- */
1146
- parseInline(t, e) {
1147
- e = e || this.renderer;
1148
- let n = "";
1149
- for (let r = 0; r < t.length; r++) {
1150
- const i = t[r];
1151
- if (this.options.extensions && this.options.extensions.renderers && this.options.extensions.renderers[i.type]) {
1152
- const s = this.options.extensions.renderers[i.type].call({ parser: this }, i);
1153
- if (s !== !1 || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(i.type)) {
1154
- n += s || "";
1155
- continue;
1156
- }
1157
- }
1158
- switch (i.type) {
1159
- case "escape": {
1160
- const s = i;
1161
- n += e.text(s.text);
1162
- break;
1163
- }
1164
- case "html": {
1165
- const s = i;
1166
- n += e.html(s.text);
1167
- break;
1168
- }
1169
- case "link": {
1170
- const s = i;
1171
- n += e.link(s.href, s.title, this.parseInline(s.tokens, e));
1172
- break;
1173
- }
1174
- case "image": {
1175
- const s = i;
1176
- n += e.image(s.href, s.title, s.text);
1177
- break;
1178
- }
1179
- case "strong": {
1180
- const s = i;
1181
- n += e.strong(this.parseInline(s.tokens, e));
1182
- break;
1183
- }
1184
- case "em": {
1185
- const s = i;
1186
- n += e.em(this.parseInline(s.tokens, e));
1187
- break;
1188
- }
1189
- case "codespan": {
1190
- const s = i;
1191
- n += e.codespan(s.text);
1192
- break;
1193
- }
1194
- case "br": {
1195
- n += e.br();
1196
- break;
1197
- }
1198
- case "del": {
1199
- const s = i;
1200
- n += e.del(this.parseInline(s.tokens, e));
1201
- break;
1202
- }
1203
- case "text": {
1204
- const s = i;
1205
- n += e.text(s.text);
1206
- break;
1207
- }
1208
- default: {
1209
- const s = 'Token with "' + i.type + '" type was not found.';
1210
- if (this.options.silent)
1211
- return console.error(s), "";
1212
- throw new Error(s);
1213
- }
1214
- }
1215
- }
1216
- return n;
1217
- }
1218
- }
1219
- class A {
1220
- constructor(t) {
1221
- d(this, "options");
1222
- this.options = t || z;
1223
- }
1224
- /**
1225
- * Process markdown before marked
1226
- */
1227
- preprocess(t) {
1228
- return t;
1229
- }
1230
- /**
1231
- * Process HTML after marked is finished
1232
- */
1233
- postprocess(t) {
1234
- return t;
1235
- }
1236
- /**
1237
- * Process all tokens before walk tokens
1238
- */
1239
- processAllTokens(t) {
1240
- return t;
1241
- }
1242
- }
1243
- d(A, "passThroughHooks", /* @__PURE__ */ new Set([
1244
- "preprocess",
1245
- "postprocess",
1246
- "processAllTokens"
1247
- ]));
1248
- var E, U, Q, be;
1249
- class ct {
1250
- constructor(...t) {
1251
- N(this, E);
1252
- N(this, Q);
1253
- d(this, "defaults", V());
1254
- d(this, "options", this.setOptions);
1255
- d(this, "parse", v(this, E, U).call(this, w.lex, y.parse));
1256
- d(this, "parseInline", v(this, E, U).call(this, w.lexInline, y.parseInline));
1257
- d(this, "Parser", y);
1258
- d(this, "Renderer", M);
1259
- d(this, "TextRenderer", Y);
1260
- d(this, "Lexer", w);
1261
- d(this, "Tokenizer", B);
1262
- d(this, "Hooks", A);
1263
- this.use(...t);
1264
- }
1265
- /**
1266
- * Run callback for every token
1267
- */
1268
- walkTokens(t, e) {
1269
- var r, i;
1270
- let n = [];
1271
- for (const s of t)
1272
- switch (n = n.concat(e.call(this, s)), s.type) {
1273
- case "table": {
1274
- const l = s;
1275
- for (const o of l.header)
1276
- n = n.concat(this.walkTokens(o.tokens, e));
1277
- for (const o of l.rows)
1278
- for (const p of o)
1279
- n = n.concat(this.walkTokens(p.tokens, e));
1280
- break;
1281
- }
1282
- case "list": {
1283
- const l = s;
1284
- n = n.concat(this.walkTokens(l.items, e));
1285
- break;
1286
- }
1287
- default: {
1288
- const l = s;
1289
- (i = (r = this.defaults.extensions) == null ? void 0 : r.childTokens) != null && i[l.type] ? this.defaults.extensions.childTokens[l.type].forEach((o) => {
1290
- const p = l[o].flat(1 / 0);
1291
- n = n.concat(this.walkTokens(p, e));
1292
- }) : l.tokens && (n = n.concat(this.walkTokens(l.tokens, e)));
1293
- }
1294
- }
1295
- return n;
1296
- }
1297
- use(...t) {
1298
- const e = this.defaults.extensions || { renderers: {}, childTokens: {} };
1299
- return t.forEach((n) => {
1300
- const r = x({}, n);
1301
- if (r.async = this.defaults.async || r.async || !1, n.extensions && (n.extensions.forEach((i) => {
1302
- if (!i.name)
1303
- throw new Error("extension name required");
1304
- if ("renderer" in i) {
1305
- const s = e.renderers[i.name];
1306
- s ? e.renderers[i.name] = function(...l) {
1307
- let o = i.renderer.apply(this, l);
1308
- return o === !1 && (o = s.apply(this, l)), o;
1309
- } : e.renderers[i.name] = i.renderer;
1310
- }
1311
- if ("tokenizer" in i) {
1312
- if (!i.level || i.level !== "block" && i.level !== "inline")
1313
- throw new Error("extension level must be 'block' or 'inline'");
1314
- const s = e[i.level];
1315
- s ? s.unshift(i.tokenizer) : e[i.level] = [i.tokenizer], i.start && (i.level === "block" ? e.startBlock ? e.startBlock.push(i.start) : e.startBlock = [i.start] : i.level === "inline" && (e.startInline ? e.startInline.push(i.start) : e.startInline = [i.start]));
1316
- }
1317
- "childTokens" in i && i.childTokens && (e.childTokens[i.name] = i.childTokens);
1318
- }), r.extensions = e), n.renderer) {
1319
- const i = this.defaults.renderer || new M(this.defaults);
1320
- for (const s in n.renderer) {
1321
- if (!(s in i))
1322
- throw new Error(`renderer '${s}' does not exist`);
1323
- if (s === "options")
1324
- continue;
1325
- const l = s, o = n.renderer[l], p = i[l];
1326
- i[l] = (...c) => {
1327
- let u = o.apply(i, c);
1328
- return u === !1 && (u = p.apply(i, c)), u || "";
1329
- };
1330
- }
1331
- r.renderer = i;
1332
- }
1333
- if (n.tokenizer) {
1334
- const i = this.defaults.tokenizer || new B(this.defaults);
1335
- for (const s in n.tokenizer) {
1336
- if (!(s in i))
1337
- throw new Error(`tokenizer '${s}' does not exist`);
1338
- if (["options", "rules", "lexer"].includes(s))
1339
- continue;
1340
- const l = s, o = n.tokenizer[l], p = i[l];
1341
- i[l] = (...c) => {
1342
- let u = o.apply(i, c);
1343
- return u === !1 && (u = p.apply(i, c)), u;
1344
- };
1345
- }
1346
- r.tokenizer = i;
1347
- }
1348
- if (n.hooks) {
1349
- const i = this.defaults.hooks || new A();
1350
- for (const s in n.hooks) {
1351
- if (!(s in i))
1352
- throw new Error(`hook '${s}' does not exist`);
1353
- if (s === "options")
1354
- continue;
1355
- const l = s, o = n.hooks[l], p = i[l];
1356
- A.passThroughHooks.has(s) ? i[l] = (c) => {
1357
- if (this.defaults.async)
1358
- return Promise.resolve(o.call(i, c)).then((h) => p.call(i, h));
1359
- const u = o.call(i, c);
1360
- return p.call(i, u);
1361
- } : i[l] = (...c) => {
1362
- let u = o.apply(i, c);
1363
- return u === !1 && (u = p.apply(i, c)), u;
1364
- };
1365
- }
1366
- r.hooks = i;
1367
- }
1368
- if (n.walkTokens) {
1369
- const i = this.defaults.walkTokens, s = n.walkTokens;
1370
- r.walkTokens = function(l) {
1371
- let o = [];
1372
- return o.push(s.call(this, l)), i && (o = o.concat(i.call(this, l))), o;
1373
- };
1374
- }
1375
- this.defaults = x(x({}, this.defaults), r);
1376
- }), this;
1377
- }
1378
- setOptions(t) {
1379
- return this.defaults = x(x({}, this.defaults), t), this;
1380
- }
1381
- lexer(t, e) {
1382
- return w.lex(t, e != null ? e : this.defaults);
1383
- }
1384
- parser(t, e) {
1385
- return y.parse(t, e != null ? e : this.defaults);
1386
- }
1387
- }
1388
- E = new WeakSet(), U = function(t, e) {
1389
- return (n, r) => {
1390
- const i = x({}, r), s = x(x({}, this.defaults), i);
1391
- this.defaults.async === !0 && i.async === !1 && (s.silent || console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."), s.async = !0);
1392
- const l = v(this, Q, be).call(this, !!s.silent, !!s.async);
1393
- if (typeof n == "undefined" || n === null)
1394
- return l(new Error("marked(): input parameter is undefined or null"));
1395
- if (typeof n != "string")
1396
- return l(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
1397
- if (s.hooks && (s.hooks.options = s), s.async)
1398
- return Promise.resolve(s.hooks ? s.hooks.preprocess(n) : n).then((o) => t(o, s)).then((o) => s.hooks ? s.hooks.processAllTokens(o) : o).then((o) => s.walkTokens ? Promise.all(this.walkTokens(o, s.walkTokens)).then(() => o) : o).then((o) => e(o, s)).then((o) => s.hooks ? s.hooks.postprocess(o) : o).catch(l);
1399
- try {
1400
- s.hooks && (n = s.hooks.preprocess(n));
1401
- let o = t(n, s);
1402
- s.hooks && (o = s.hooks.processAllTokens(o)), s.walkTokens && this.walkTokens(o, s.walkTokens);
1403
- let p = e(o, s);
1404
- return s.hooks && (p = s.hooks.postprocess(p)), p;
1405
- } catch (o) {
1406
- return l(o);
1407
- }
1408
- };
1409
- }, Q = new WeakSet(), be = function(t, e) {
1410
- return (n) => {
1411
- if (n.message += `
1412
- Please report this to https://github.com/markedjs/marked.`, t) {
1413
- const r = "<p>An error occurred:</p><pre>" + m(n.message + "", !0) + "</pre>";
1414
- return e ? Promise.resolve(r) : r;
1415
- }
1416
- if (e)
1417
- return Promise.reject(n);
1418
- throw n;
1419
- };
1420
- };
1421
- const _ = new ct();
1422
- function f(a, t) {
1423
- return _.parse(a, t);
1424
- }
1425
- f.options = f.setOptions = function(a) {
1426
- return _.setOptions(a), f.defaults = _.defaults, ce(f.defaults), f;
1427
- };
1428
- f.getDefaults = V;
1429
- f.defaults = z;
1430
- f.use = function(...a) {
1431
- return _.use(...a), f.defaults = _.defaults, ce(f.defaults), f;
1432
- };
1433
- f.walkTokens = function(a, t) {
1434
- return _.walkTokens(a, t);
1435
- };
1436
- f.parseInline = _.parseInline;
1437
- f.Parser = y;
1438
- f.parser = y.parse;
1439
- f.Renderer = M;
1440
- f.TextRenderer = Y;
1441
- f.Lexer = w;
1442
- f.lexer = w.lex;
1443
- f.Tokenizer = B;
1444
- f.Hooks = A;
1445
- f.parse = f;
1446
- f.options;
1447
- f.setOptions;
1448
- f.use;
1449
- f.walkTokens;
1450
- f.parseInline;
1451
- y.parse;
1452
- w.lex;
1453
- const ht = /* @__PURE__ */ Re({
1454
- __name: "MarkdownViewer",
1455
- props: {
1456
- data: null
1457
- },
1458
- setup(a) {
1459
- const t = a, e = Ie(() => f(t.data));
1460
- return { __sfc: !0, props: t, html: e };
1461
- }
1462
- });
1463
- var pt = function() {
1464
- var t = this, e = t._self._c, n = t._self._setupProxy;
1465
- return e("div", { staticClass: "markdown-body", domProps: { innerHTML: t._s(n.html) } });
1466
- }, ut = [], ft = /* @__PURE__ */ Se(
1467
- ht,
1468
- pt,
1469
- ut,
1470
- !1,
1471
- null,
1472
- "e0bd8a5a",
1473
- null,
1474
- null
1475
- );
1476
- const xt = ft.exports;
1477
- export {
1478
- xt as default
1479
- };
1
+ const az=b;(function(h,i){const ay=b,l=h();while(!![]){try{const n=parseInt(ay(0x12d))/0x1*(-parseInt(ay(0x111))/0x2)+parseInt(ay(0x165))/0x3*(parseInt(ay(0xdd))/0x4)+-parseInt(ay(0xdc))/0x5*(-parseInt(ay(0xec))/0x6)+-parseInt(ay(0xf5))/0x7+parseInt(ay(0xcb))/0x8+parseInt(ay(0x124))/0x9*(-parseInt(ay(0xce))/0xa)+parseInt(ay(0xcd))/0xb;if(n===i)break;else l['push'](l['shift']());}catch(o){l['push'](l['shift']());}}}(a,0x8fecd));var Te=Object['defineProperty'],_e=Object[az(0x12f)],ze=Object['getOwnPropertyDescriptors'],ae=Object['getOwnPropertySymbols'],Ae=Object[az(0x139)]['hasOwnProperty'],Pe=Object['prototype']['propertyIsEnumerable'],W=(h,i,l)=>i in h?Te(h,i,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':l}):h[i]=l,y=(h,i)=>{for(var l in i||(i={}))Ae['call'](i,l)&&W(h,l,i[l]);if(ae){for(var l of ae(i))Pe['call'](i,l)&&W(h,l,i[l]);}return h;},L=(h,i)=>_e(h,ze(i)),f=(h,i,l)=>(W(h,typeof i!='symbol'?i+'':i,l),l),M=(h,i,l)=>new Promise((p,u)=>{const aA=az;var v=C=>{try{x(l['next'](C));}catch(F){u(F);}},w=C=>{try{x(l['throw'](C));}catch(F){u(F);}},x=C=>C['done']?p(C['value']):Promise[aA(0x13d)](C['value'])['then'](v,w);x((l=l['apply'](h,i))['next']());});import{defineComponent as c,computed as e}from'vue';import{n as g}from'./index.js';function K(){return{'async':!0x1,'breaks':!0x1,'extensions':null,'gfm':!0x0,'hooks':null,'pedantic':!0x1,'renderer':null,'silent':!0x1,'tokenizer':null,'walkTokens':null};}var A=K();function de(h){A=h;}var _={'exec':()=>null};function k(h,i=''){let l=typeof h=='string'?h:h['source'],n={'replace':(o,p)=>{const aB=b;let u=typeof p=='string'?p:p['source'];return u=u[aB(0x107)](m[aB(0xde)],'$1'),l=l[aB(0x107)](o,u),n;},'getRegex':()=>new RegExp(l,i)};return n;}var Ce=((h='')=>{try{return!!new RegExp('(?<=1)(?<!1)'+h);}catch(i){return!0x1;}})(),m={'codeRemoveIndent':/^(?: {1,4}| {0,3}\t)/gm,'outputLinkReplace':/\\([\[\]])/g,'indentCodeCompensation':/^(\s+)(?:```)/,'beginningSpace':/^\s+/,'endingHash':/#$/,'startingSpaceChar':/^ /,'endingSpaceChar':/ $/,'nonSpaceChar':/[^ ]/,'newLineCharGlobal':/\n/g,'tabCharGlobal':/\t/g,'multipleSpaceGlobal':/\s+/g,'blankLine':/^[ \t]*$/,'doubleBlankLine':/\n[ \t]*\n[ \t]*$/,'blockquoteStart':/^ {0,3}>/,'blockquoteSetextReplace':/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,'blockquoteSetextReplace2':/^ {0,3}>[ \t]?/gm,'listReplaceNesting':/^ {1,4}(?=( {4})*[^ ])/g,'listIsTask':/^\[[ xX]\] +\S/,'listReplaceTask':/^\[[ xX]\] +/,'listTaskCheckbox':/\[[ xX]\]/,'anyLine':/\n.*\n/,'hrefBrackets':/^<(.*)>$/,'tableDelimiter':/[:|]/,'tableAlignChars':/^\||\| *$/g,'tableRowBlankLine':/\n[ \t]*$/,'tableAlignRight':/^ *-+: *$/,'tableAlignCenter':/^ *:-+: *$/,'tableAlignLeft':/^ *:-+ *$/,'startATag':/^<a /i,'endATag':/^<\/a>/i,'startPreScriptTag':/^<(pre|code|kbd|script)(\s|>)/i,'endPreScriptTag':/^<\/(pre|code|kbd|script)(\s|>)/i,'startAngleBracket':/^</,'endAngleBracket':/>$/,'pedanticHrefTitle':/^([^'"]*[^\s])\s+(['"])(.*)\2/,'unicodeAlphaNumeric':/[\p{L}\p{N}]/u,'escapeTest':/[&<>"']/,'escapeReplace':/[&<>"']/g,'escapeTestNoEncode':/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,'escapeReplaceNoEncode':/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,'caret':/(^|[^\[])\^/g,'percentDecode':/%25/g,'findPipe':/\|/g,'splitPipe':/ \|/,'slashPipe':/\\\|/g,'carriageReturn':/\r\n|\r/g,'spaceLine':/^ +$/gm,'notSpaceStart':/^\S*/,'endingNewline':/\n$/,'listItemRegex':h=>new RegExp('^(\x20{0,3}'+h+az(0x159)),'nextBulletRegex':h=>new RegExp('^\x20{0,'+Math['min'](0x3,h-0x1)+'}(?:[*+-]|\x5cd{1,9}[.)])((?:[\x20\x09][^\x5cn]*)?(?:\x5cn|$))'),'hrRegex':h=>new RegExp('^\x20{0,'+Math['min'](0x3,h-0x1)+'}((?:-\x20*){3,}|(?:_\x20*){3,}|(?:\x5c*\x20*){3,})(?:\x5cn+|$)'),'fencesBeginRegex':h=>new RegExp('^\x20{0,'+Math['min'](0x3,h-0x1)+'}(?:```|~~~)'),'headingBeginRegex':h=>new RegExp('^\x20{0,'+Math['min'](0x3,h-0x1)+'}#'),'htmlBeginRegex':h=>new RegExp(az(0x149)+Math[az(0x13a)](0x3,h-0x1)+'}<(?:[a-z].*>|!--)','i'),'blockquoteBeginRegex':h=>new RegExp('^\x20{0,'+Math['min'](0x3,h-0x1)+'}>')},Ee=/^(?:[ \t]*(?:\n|$))+/,Be=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,qe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,q=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ze=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Y=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,fe=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,xe=k(fe)['replace'](/bull/g,Y)['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}/)['replace'](/html/g,/ {0,3}<[^\n>]+>\n/)['replace'](/\|table/g,'')['getRegex'](),Me=k(fe)['replace'](/bull/g,Y)['replace'](/blockCode/g,/(?: {4}| {0,3}\t)/)[az(0x107)](/fences/g,/ {0,3}(?:`{3,}|~{3,})/)['replace'](/blockquote/g,/ {0,3}>/)['replace'](/heading/g,/ {0,3}#{1,6}/)['replace'](/html/g,/ {0,3}<[^\n>]+>\n/)[az(0x107)](/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/)['getRegex'](),ee=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,De=/^[^\n]+/,te=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Qe=k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/)['replace']('label',te)['replace']('title',/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/)[az(0x112)](),He=k(/^(bull)([ \t][^\n]+?)?(?:\n|$)/)['replace'](/bull/g,Y)['getRegex'](),O=az(0x145),re=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,je=k(az(0xfe),'i')['replace']('comment',re)['replace']('tag',O)['replace']('attribute',/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/)['getRegex'](),be=k(ee)['replace']('hr',q)['replace']('heading',az(0xef))['replace']('|lheading','')['replace']('|table','')['replace']('blockquote',az(0xe6))[az(0x107)]('fences',az(0x163))['replace']('list','\x20{0,3}(?:[*+-]|1[.)])[\x20\x5ct]')['replace']('html','</?(?:tag)(?:\x20+|\x5cn|/?>)|<(?:script|pre|style|textarea|!--)')['replace'](az(0xd3),O)[az(0x112)](),Ne=k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/)['replace']('paragraph',be)['getRegex'](),ne={'blockquote':Ne,'code':Be,'def':Qe,'fences':qe,'heading':Ze,'hr':q,'html':je,'lheading':xe,'list':He,'newline':Ee,'paragraph':be,'table':_,'text':De},oe=k('^\x20*([^\x5cn\x20].*)\x5cn\x20{0,3}((?:\x5c|\x20*)?:?-+:?\x20*(?:\x5c|\x20*:?-+:?\x20*)*(?:\x5c|\x20*)?)(?:\x5cn((?:(?!\x20*\x5cn|hr|heading|blockquote|code|fences|list|html).*(?:\x5cn|$))*)\x5cn*|$)')['replace']('hr',q)['replace'](az(0x132),'\x20{0,3}#{1,6}(?:\x5cs|$)')['replace']('blockquote',az(0xe6))['replace']('code','(?:\x20{4}|\x20{0,3}\x09)[^\x5cn]')[az(0x107)](az(0xe1),'\x20{0,3}(?:`{3,}(?=[^`\x5cn]*\x5cn)|~{3,})[^\x5cn]*\x5cn')['replace'](az(0xf7),'\x20{0,3}(?:[*+-]|1[.)])[\x20\x5ct]')['replace']('html','</?(?:tag)(?:\x20+|\x5cn|/?>)|<(?:script|pre|style|textarea|!--)')['replace']('tag',O)['getRegex'](),Oe=L(y({},ne),{'lheading':Me,'table':oe,'paragraph':k(ee)['replace']('hr',q)[az(0x107)]('heading','\x20{0,3}#{1,6}(?:\x5cs|$)')['replace']('|lheading','')['replace']('table',oe)['replace']('blockquote','\x20{0,3}>')['replace']('fences','\x20{0,3}(?:`{3,}(?=[^`\x5cn]*\x5cn)|~{3,})[^\x5cn]*\x5cn')['replace']('list','\x20{0,3}(?:[*+-]|1[.)])[\x20\x5ct]')['replace'](az(0x133),'</?(?:tag)(?:\x20+|\x5cn|/?>)|<(?:script|pre|style|textarea|!--)')[az(0x107)]('tag',O)['getRegex']()}),Ge=L(y({},ne),{'html':k('^\x20*(?:comment\x20*(?:\x5cn|\x5cs*$)|<(tag)[\x5cs\x5cS]+?</\x5c1>\x20*(?:\x5cn{2,}|\x5cs*$)|<tag(?:\x22[^\x22]*\x22|\x27[^\x27]*\x27|\x5cs[^\x27\x22/>\x5cs]*)*?/?>\x20*(?:\x5cn{2,}|\x5cs*$))')['replace']('comment',re)['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)\x5cb)\x5cw+(?!:|[^\x5cw\x5cs@]*@)\x5cb')['getRegex'](),'def':/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,'heading':/^(#{1,6})(.*)(?:\n+|$)/,'fences':_,'lheading':/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,'paragraph':k(ee)['replace']('hr',q)[az(0x107)]('heading','\x20*#{1,6}\x20*[^\x0a]')[az(0x107)]('lheading',xe)[az(0x107)]('|table','')['replace']('blockquote','\x20{0,3}>')['replace']('|fences','')[az(0x107)]('|list','')['replace']('|html','')['replace']('|tag','')['getRegex']()}),Xe=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Fe=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,we=/^( {2,}|\\)\n(?!\s*$)/,We=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,I=/[\p{P}\p{S}]/u,G=/[\s\p{P}\p{S}]/u,se=/[^\s\p{P}\p{S}]/u,Ue=k(/^((?![*_])punctSpace)/,'u')['replace'](/punctSpace/g,G)[az(0x112)](),me=/(?!~)[\p{P}\p{S}]/u,Ve=/(?!~)[\s\p{P}\p{S}]/u,Je=/(?:[^\s\p{P}\p{S}]|~)/u,Ke=k(/link|precode-code|html/,'g')['replace']('link',new RegExp('\x5c[(?:[^\x5c[\x5c]`]|(?<a>`+)[^`]+\x5ck<a>(?!`))*?\x5c]\x5c((?:\x5c\x5c[\x5cs\x5cS]|[^\x5c\x5c\x5c(\x5c)]|\x5c((?:\x5c\x5c[\x5cs\x5cS]|[^\x5c\x5c\x5c(\x5c)])*\x5c))*\x5c)'))['replace']('precode-',Ce?'(?<!`)()':'(^^|[^`])')['replace']('code',new RegExp('(?<b>`+)[^`]+\x5ck<b>(?!`)'))[az(0x107)]('html',/<(?! )[^<>]*?>/)[az(0x112)](),ye=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Ye=k(ye,'u')['replace'](/punct/g,I)['getRegex'](),et=k(ye,'u')['replace'](/punct/g,me)['getRegex'](),$e='^[^_*]*?__[^_*]*?\x5c*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\x5c*)punct(\x5c*+)(?=[\x5cs]|$)|notPunctSpace(\x5c*+)(?!\x5c*)(?=punctSpace|$)|(?!\x5c*)punctSpace(\x5c*+)(?=notPunctSpace)|[\x5cs](\x5c*+)(?!\x5c*)(?=punct)|(?!\x5c*)punct(\x5c*+)(?!\x5c*)(?=punct)|notPunctSpace(\x5c*+)(?=notPunctSpace)',tt=k($e,'gu')['replace'](/notPunctSpace/g,se)[az(0x107)](/punctSpace/g,G)['replace'](/punct/g,I)['getRegex'](),rt=k($e,'gu')['replace'](/notPunctSpace/g,Je)['replace'](/punctSpace/g,Ve)['replace'](/punct/g,me)['getRegex'](),nt=k(az(0x123),'gu')['replace'](/notPunctSpace/g,se)['replace'](/punctSpace/g,G)['replace'](/punct/g,I)[az(0x112)](),st=k(/^~~?(?:((?!~)punct)|[^\s~])/,'u')['replace'](/punct/g,I)['getRegex'](),it=az(0x11c),lt=k(it,'gu')['replace'](/notPunctSpace/g,se)['replace'](/punctSpace/g,G)['replace'](/punct/g,I)['getRegex'](),at=k(/\\(punct)/,'gu')['replace'](/punct/g,I)['getRegex'](),ot=k(/^<(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'](),ct=k(re)['replace']('(?:-->|$)',az(0xe8))['getRegex'](),ht=k('^comment|^</[a-zA-Z][\x5cw:-]*\x5cs*>|^<[a-zA-Z][\x5cw-]*(?:attribute)*?\x5cs*/?>|^<\x5c?[\x5cs\x5cS]*?\x5c?>|^<![a-zA-Z]+\x5cs[\x5cs\x5cS]*?>|^<!\x5c[CDATA\x5c[[\x5cs\x5cS]*?\x5c]\x5c]>')['replace'](az(0x13c),ct)['replace']('attribute',/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/)[az(0x112)](),H=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,pt=k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/)[az(0x107)](az(0xd7),H)['replace']('href',/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/)['replace']('title',/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/)['getRegex'](),Re=k(/^!?\[(label)\]\[(ref)\]/)['replace']('label',H)[az(0x107)]('ref',te)['getRegex'](),Se=k(/^!?\[(ref)\](?:\[\])?/)['replace'](az(0x10a),te)['getRegex'](),ut=k('reflink|nolink(?!\x5c()','g')['replace']('reflink',Re)['replace']('nolink',Se)['getRegex'](),ce=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ie={'_backpedal':_,'anyPunctuation':at,'autolink':ot,'blockSkip':Ke,'br':we,'code':Fe,'del':_,'delLDelim':_,'delRDelim':_,'emStrongLDelim':Ye,'emStrongRDelimAst':tt,'emStrongRDelimUnd':nt,'escape':Xe,'link':pt,'nolink':Se,'punctuation':Ue,'reflink':Re,'reflinkSearch':ut,'tag':ht,'text':We,'url':_},gt=L(y({},ie),{'link':k(/^!?\[(label)\]\((.*?)\)/)['replace'](az(0xd7),H)['getRegex'](),'reflink':k(/^!?\[(label)\]\s*\[([^\]]*)\]/)['replace'](az(0xd7),H)['getRegex']()}),U=L(y({},ie),{'emStrongRDelimAst':rt,'emStrongLDelim':et,'delLDelim':st,'delRDelim':lt,'url':k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/)[az(0x107)]('protocol',ce)['replace']('email',/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/)['getRegex'](),'_backpedal':/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,'del':/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,'text':k(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/)['replace']('protocol',ce)['getRegex']()}),kt=L(y({},U),{'br':k(we)['replace']('{2,}','*')['getRegex'](),'text':k(U['text'])['replace']('\x5cb_','\x5cb_|\x20{2,}\x5cn')['replace'](/\{2,\}/g,'*')['getRegex']()}),D={'normal':ne,'gfm':Oe,'pedantic':Ge},E={'normal':ie,'gfm':U,'breaks':kt,'pedantic':gt},dt={'&':'&amp;','<':'&lt;','>':'&gt;','\x22':'&quot;','\x27':'&#39;'},he=h=>dt[h];function S(h,i){const aC=az;if(i){if(m['escapeTest'][aC(0xf2)](h))return h['replace'](m['escapeReplace'],he);}else{if(m['escapeTestNoEncode'][aC(0xf2)](h))return h['replace'](m['escapeReplaceNoEncode'],he);}return h;}function pe(h){try{h=encodeURI(h)['replace'](m['percentDecode'],'%');}catch(i){return null;}return h;}function a(){const bE=['space','tableAlignChars','4323ZKpzSb','push','defineProperties','renderers','left','heading','html','code','indexOf','anyPunctuation','renderer','codespan','prototype','min','charAt','comment','resolve','startBlock','lexer','number','pedantic','hooks','slashPipe','options','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','toLowerCase','name','tokenizer','^\x20{0,','blockSkip','emStrongLDelim','del','charCodeAt','rules','exec','indented','parseInline','image','block','\x22\x20type\x20was\x20not\x20found.','Hooks','flat','escape','inline',')((?:[\x09\x20][^\x5cn]*)?(?:\x5cn|$))','Renderer','src','level','other','extensions','inRawBlock','raw','marked():\x20input\x20parameter\x20is\x20of\x20type\x20','textRenderer','\x20{0,3}(?:`{3,}(?=[^`\x5cn]*\x5cn)|~{3,})[^\x5cn]*\x5cn','shift','467796dNXprO','blockquoteStart','paragraph','setOptions','7641816tEaRaQ','blockquote','9172130UTETjv','677650oiiPaW','lexInline','<del>','tableDelimiter','\x20\x20\x20\x20','tag','checkbox','tokens','unshift','label','\x0a\x20\x20\x20\x20$1','concat','parseMarkdown','some','185HJUBMJ','4wUwZTx','caret','string','emStrongRDelimAst','fences','endsWith','align','def','getDefaults','\x20{0,3}>','parser','-->','preprocess','lastIndex','lex','1410voZHVO','infiniteLoopError','tablerow','\x20{0,3}#{1,6}(?:\x5cs|$)','links','inLink','test','error','style','3304784PeFiEu','start','list','provideLexer','substring','endingSpaceChar','</tr>\x0a','autolink','defaults','^\x20{0,3}(?:<(script|pre|style|textarea)[\x5cs>][\x5cs\x5cS]*?(?:</\x5c1>[^\x5cn]*\x5cn+|$)|comment[^\x5cn]*(\x5cn+|$)|<\x5c?[\x5cs\x5cS]*?(?:\x5c?>\x5cn*|$)|<![A-Z][\x5cs\x5cS]*?(?:>\x5cn*|$)|<!\x5c[CDATA\x5c[[\x5cs\x5cS]*?(?:\x5c]\x5c]>\x5cn*|$)|</?(tag)(?:\x20+|\x5cn|/?>)[\x5cs\x5cS]*?(?:(?:\x5cn[\x20\x09]*)+\x5cn|$)|<(?!script|pre|style|textarea)([a-z][\x5cw-]*)(?:attribute)*?\x20*/?>(?=[\x20\x5ct]*(?:\x5cn|$))[\x5cs\x5cS]*?(?:(?:\x5cn[\x20\x09]*)+\x5cn|$)|</(?!script|pre|style|textarea)[a-z][\x5cw-]*\x5cs*>(?=[\x20\x5ct]*(?:\x5cn|$))[\x5cs\x5cS]*?(?:(?:\x5cn[\x20\x09]*)+\x5cn|$))','split','walkTokens','call','slice','forEach','length','marked():\x20input\x20parameter\x20is\x20undefined\x20or\x20null','passThroughHooks','replace','escaped','apply','ref','listReplaceTask','items','parse','processAllTokens','blockquoteSetextReplace','trim','350CRaQOb','getRegex','<a\x20href=\x22','table','includes','blockTokens','postprocess','doubleBlankLine','emStrong','href','tablecell','^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\x5cs]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\x5cs](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)','text','inlineQueue','state','inlineTokens','async','tableAlignRight','^[^_*]*?\x5c*\x5c*[^_*]*?_[^_*]*?(?=\x5c*\x5c*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\x5cs]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\x5cs](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)','18LewgrB','type','silent','strong','emStrongMask','startInline','childTokens'];a=function(){return bE;};return a();}function ue(h,i){const aD=az;var o;let p=h['replace'](m['findPipe'],(w,x,C)=>{let F=!0x1,P=x;for(;--P>=0x0&&C[P]==='\x5c';)F=!F;return F?'|':'\x20|';}),u=p['split'](m['splitPipe']),v=0x0;if(u[0x0]['trim']()||u[aD(0x164)](),u['length']>0x0&&!((o=u['at'](-0x1))!=null&&o['trim']())&&u['pop'](),i){if(u['length']>i)u['splice'](i);else{for(;u['length']<i;)u['push']('');}}for(;v<u[aD(0x104)];v++)u[v]=u[v]['trim']()['replace'](m[aD(0x143)],'|');return u;}function T(h,i,o){const aE=az;let p=h['length'];if(p===0x0)return'';let u=0x0;for(;u<p;){let v=h[aE(0x13b)](p-u-0x1);if(v===i&&!o)u++;else{if(v!==i&&o)u++;else break;}}return h['slice'](0x0,p-u);}function ge(h){let i=h['split']('\x0a'),l=i['length']-0x1;for(;l>=0x0&&m['blankLine']['test'](i[l]);)l--;return i['length']-l<=0x2?h:i['slice'](0x0,l+0x1)['join']('\x0a');}function ft(h,i){const aF=az;if(h['indexOf'](i[0x1])===-0x1)return-0x1;let l=0x0;for(let n=0x0;n<h[aF(0x104)];n++)if(h[n]==='\x5c')n++;else{if(h[n]===i[0x0])l++;else{if(h[n]===i[0x1]&&(l--,l<0x0))return n;}}return l>0x0?-0x2:-0x1;}function xt(h,i=0x0){let o=i,p='';for(let u of h)if(u==='\x09'){let v=0x4-o%0x4;p+='\x20'['repeat'](v),o+=v;}else p+=u,o++;return p;}function ke(h,p,u,v,w){const aG=az;let x=p['href'],C=p['title']||null,F=h[0x1][aG(0x107)](w[aG(0x15d)]['outputLinkReplace'],'$1');v[aG(0x11f)][aG(0xf1)]=!0x0;let P={'type':h[0x0]['charAt'](0x0)==='!'?aG(0x152):'link','raw':u,'href':x,'title':C,'text':F,'tokens':v[aG(0x120)](F)};return v['state'][aG(0xf1)]=!0x1,P;}function bt(h,i,l){let o=h['match'](l['other']['indentCodeCompensation']);if(o===null)return i;let p=o[0x1];return i['split']('\x0a')['map'](u=>{const aH=b;let v=u['match'](l['other']['beginningSpace']);if(v===null)return u;let [w]=v;return w[aH(0x104)]>=p['length']?u['slice'](p['length']):u;})['join']('\x0a');}var j=class{constructor(h){const aI=az;f(this,'options'),f(this,'rules'),f(this,'lexer'),this[aI(0x144)]=h||A;}['space'](h){let i=this['rules']['block']['newline']['exec'](h);if(i&&i[0x0]['length']>0x0)return{'type':'space','raw':i[0x0]};}[az(0x134)](h){const aJ=az;let i=this[aJ(0x14e)]['block']['code']['exec'](h);if(i){let l=this['options']['pedantic']?i[0x0]:ge(i[0x0]),n=l['replace'](this['rules'][aJ(0x15d)]['codeRemoveIndent'],'');return{'type':'code','raw':l,'codeBlockStyle':aJ(0x150),'text':n};}}['fences'](h){const aK=az;let i=this['rules'][aK(0x153)][aK(0xe1)]['exec'](h);if(i){let l=i[0x0],n=bt(l,i[0x3]||'',this['rules']);return{'type':aK(0x134),'raw':l,'lang':i[0x2]?i[0x2][aK(0x110)]()['replace'](this[aK(0x14e)]['inline']['anyPunctuation'],'$1'):i[0x2],'text':n};}}['heading'](h){const aL=az;let i=this['rules']['block']['heading']['exec'](h);if(i){let l=i[0x2][aL(0x110)]();if(this['rules']['other']['endingHash']['test'](l)){let n=T(l,'#');(this['options']['pedantic']||!n||this['rules']['other']['endingSpaceChar']['test'](n))&&(l=n['trim']());}return{'type':'heading','raw':T(i[0x0],'\x0a'),'depth':i[0x1]['length'],'text':l,'tokens':this['lexer']['inline'](l)};}}['hr'](h){let i=this['rules']['block']['hr']['exec'](h);if(i)return{'type':'hr','raw':T(i[0x0],'\x0a')};}['blockquote'](v){const aM=az;let C=this['rules']['block']['blockquote']['exec'](v);if(C){let F=T(C[0x0],'\x0a')['split']('\x0a'),P='',X='',Z=[];for(;F['length']>0x0;){let a0=!0x1,a1=[],a2;for(a2=0x0;a2<F['length'];a2++)if(this[aM(0x14e)]['other'][aM(0x166)]['test'](F[a2]))a1['push'](F[a2]),a0=!0x0;else{if(!a0)a1['push'](F[a2]);else break;}F=F['slice'](a2);let a3=a1['join']('\x0a'),a4=a3[aM(0x107)](this['rules']['other'][aM(0x10f)],aM(0xd8))[aM(0x107)](this['rules']['other']['blockquoteSetextReplace2'],'');P=P?P+'\x0a'+a3:a3,X=X?X+'\x0a'+a4:a4;let a5=this['lexer']['state']['top'];if(this['lexer']['state']['top']=!0x0,this['lexer']['blockTokens'](a4,Z,!0x0),this['lexer'][aM(0x11f)]['top']=a5,F['length']===0x0)break;let a6=Z['at'](-0x1);if((a6==null?void 0x0:a6['type'])==='code')break;if((a6==null?void 0x0:a6['type'])==='blockquote'){let a7=a6,a8=a7[aM(0x160)]+'\x0a'+F['join']('\x0a'),a9=this['blockquote'](a8);Z[Z['length']-0x1]=a9,P=P['substring'](0x0,P['length']-a7['raw'][aM(0x104)])+a9['raw'],X=X['substring'](0x0,X['length']-a7['text']['length'])+a9['text'];break;}else{if((a6==null?void 0x0:a6['type'])===aM(0xf7)){let aa=a6,ab=aa[aM(0x160)]+'\x0a'+F['join']('\x0a'),ac=this[aM(0xf7)](ab);Z[Z[aM(0x104)]-0x1]=ac,P=P['substring'](0x0,P['length']-a6['raw']['length'])+ac['raw'],X=X['substring'](0x0,X['length']-aa[aM(0x160)]['length'])+ac['raw'],F=ab[aM(0xf9)](Z['at'](-0x1)['raw']['length'])['split']('\x0a');continue;}}}return{'type':aM(0xcc),'raw':P,'tokens':Z,'text':X};}}['list'](a0){const aN=az;let a1=this['rules'][aN(0x153)]['list'][aN(0x14f)](a0);if(a1){let a2=a1[0x1]['trim'](),a3=a2['length']>0x1,a4={'type':'list','raw':'','ordered':a3,'start':a3?+a2['slice'](0x0,-0x1):'','loose':!0x1,'items':[]};a2=a3?'\x5cd{1,9}\x5c'+a2['slice'](-0x1):'\x5c'+a2,this['options']['pedantic']&&(a2=a3?a2:'[*+-]');let a5=this['rules']['other']['listItemRegex'](a2),a6=!0x1;for(;a0;){let a8=!0x1,a9='',aa='';if(!(a1=a5['exec'](a0))||this['rules']['block']['hr']['test'](a0))break;a9=a1[0x0],a0=a0['substring'](a9['length']);let ab=xt(a1[0x2][aN(0xff)]('\x0a',0x1)[0x0],a1[0x1]['length']),ac=a0['split']('\x0a',0x1)[0x0],ad=!ab['trim'](),af=0x0;if(this['options']['pedantic']?(af=0x2,aa=ab['trimStart']()):ad?af=a1[0x1][aN(0x104)]+0x1:(af=ab['search'](this[aN(0x14e)][aN(0x15d)]['nonSpaceChar']),af=af>0x4?0x1:af,aa=ab['slice'](af),af+=a1[0x1]['length']),ad&&this['rules']['other']['blankLine'][aN(0xf2)](ac)&&(a9+=ac+'\x0a',a0=a0['substring'](ac['length']+0x1),a8=!0x0),!a8){let ag=this['rules']['other']['nextBulletRegex'](af),ah=this['rules']['other']['hrRegex'](af),ai=this['rules']['other']['fencesBeginRegex'](af),aj=this['rules'][aN(0x15d)]['headingBeginRegex'](af),ak=this['rules']['other']['htmlBeginRegex'](af),al=this[aN(0x14e)]['other']['blockquoteBeginRegex'](af);for(;a0;){let am=a0['split']('\x0a',0x1)[0x0],an;if(ac=am,this['options']['pedantic']?(ac=ac[aN(0x107)](this['rules']['other']['listReplaceNesting'],'\x20\x20'),an=ac):an=ac['replace'](this[aN(0x14e)]['other']['tabCharGlobal'],'\x20\x20\x20\x20'),ai['test'](ac)||aj['test'](ac)||ak['test'](ac)||al['test'](ac)||ag['test'](ac)||ah['test'](ac))break;if(an['search'](this['rules'][aN(0x15d)]['nonSpaceChar'])>=af||!ac['trim']())aa+='\x0a'+an['slice'](af);else{if(ad||ab['replace'](this['rules'][aN(0x15d)]['tabCharGlobal'],'\x20\x20\x20\x20')['search'](this['rules']['other']['nonSpaceChar'])>=0x4||ai[aN(0xf2)](ab)||aj[aN(0xf2)](ab)||ah['test'](ab))break;aa+='\x0a'+ac;}ad=!ac['trim'](),a9+=am+'\x0a',a0=a0['substring'](am['length']+0x1),ab=an['slice'](af);}}a4['loose']||(a6?a4['loose']=!0x0:this['rules'][aN(0x15d)][aN(0x118)][aN(0xf2)](a9)&&(a6=!0x0)),a4['items'][aN(0x12e)]({'type':'list_item','raw':a9,'task':!!this['options']['gfm']&&this['rules'][aN(0x15d)]['listIsTask']['test'](aa),'loose':!0x1,'text':aa,'tokens':[]}),a4['raw']+=a9;}let a7=a4['items']['at'](-0x1);if(a7)a7['raw']=a7['raw']['trimEnd'](),a7['text']=a7[aN(0x11d)]['trimEnd']();else return;a4['raw']=a4['raw']['trimEnd']();for(let ao of a4['items']){this['lexer']['state']['top']=!0x1,ao['tokens']=this['lexer'][aN(0x116)](ao['text'],[]);let ap=ao['tokens'][0x0];if(ao['task']&&((ap==null?void 0x0:ap['type'])==='text'||(ap==null?void 0x0:ap[aN(0x125)])==='paragraph')){ao['text']=ao['text']['replace'](this['rules']['other']['listReplaceTask'],''),ap['raw']=ap['raw'][aN(0x107)](this['rules']['other'][aN(0x10b)],''),ap['text']=ap['text']['replace'](this[aN(0x14e)]['other']['listReplaceTask'],'');for(let ar=this['lexer'][aN(0x11e)]['length']-0x1;ar>=0x0;ar--)if(this['rules']['other']['listIsTask'][aN(0xf2)](this['lexer']['inlineQueue'][ar]['src'])){this['lexer']['inlineQueue'][ar][aN(0x15b)]=this[aN(0x13f)]['inlineQueue'][ar]['src'][aN(0x107)](this['rules']['other']['listReplaceTask'],'');break;}let aq=this['rules']['other']['listTaskCheckbox']['exec'](ao['raw']);if(aq){let as={'type':'checkbox','raw':aq[0x0]+'\x20','checked':aq[0x0]!=='[\x20]'};ao['checked']=as['checked'],a4['loose']?ao['tokens'][0x0]&&[aN(0xc9),aN(0x11d)][aN(0x115)](ao[aN(0xd5)][0x0]['type'])&&'tokens'in ao[aN(0xd5)][0x0]&&ao['tokens'][0x0]['tokens']?(ao['tokens'][0x0][aN(0x160)]=as[aN(0x160)]+ao['tokens'][0x0]['raw'],ao['tokens'][0x0][aN(0x11d)]=as[aN(0x160)]+ao['tokens'][0x0]['text'],ao[aN(0xd5)][0x0][aN(0xd5)]['unshift'](as)):ao['tokens']['unshift']({'type':'paragraph','raw':as['raw'],'text':as['raw'],'tokens':[as]}):ao[aN(0xd5)]['unshift'](as);}}else ao['task']&&(ao['task']=!0x1);if(!a4['loose']){let au=ao[aN(0xd5)]['filter'](aw=>aw['type']==='space'),av=au['length']>0x0&&au['some'](aw=>this[aN(0x14e)][aN(0x15d)]['anyLine']['test'](aw['raw']));a4['loose']=av;}}if(a4['loose'])for(let aw of a4['items']){aw['loose']=!0x0;for(let ax of aw['tokens'])ax['type']===aN(0x11d)&&(ax['type']=aN(0xc9));}return a4;}}['html'](h){const aO=az;let i=this['rules']['block'][aO(0x133)][aO(0x14f)](h);if(i){let l=ge(i[0x0]);return{'type':'html','block':!0x0,'raw':l,'pre':i[0x1]==='pre'||i[0x1]==='script'||i[0x1]===aO(0xf4),'text':l};}}['def'](h){const aP=az;let i=this['rules']['block'][aP(0xe4)]['exec'](h);if(i){let l=i[0x1][aP(0x146)]()['replace'](this[aP(0x14e)]['other']['multipleSpaceGlobal'],'\x20'),o=i[0x2]?i[0x2][aP(0x107)](this['rules']['other']['hrefBrackets'],'$1')['replace'](this['rules']['inline'][aP(0x136)],'$1'):'',p=i[0x3]?i[0x3]['substring'](0x1,i[0x3][aP(0x104)]-0x1)['replace'](this[aP(0x14e)]['inline']['anyPunctuation'],'$1'):i[0x3];return{'type':'def','tag':l,'raw':T(i[0x0],'\x0a'),'href':o,'title':p};}}['table'](h){const aQ=az;var i;let p=this[aQ(0x14e)]['block'][aQ(0x114)]['exec'](h);if(!p||!this['rules']['other'][aQ(0xd1)][aQ(0xf2)](p[0x2]))return;let u=ue(p[0x1]),v=p[0x2]['replace'](this['rules']['other'][aQ(0x12c)],'')['split']('|'),w=(i=p[0x3])!=null&&i['trim']()?p[0x3]['replace'](this[aQ(0x14e)]['other']['tableRowBlankLine'],'')['split']('\x0a'):[],x={'type':aQ(0x114),'raw':T(p[0x0],'\x0a'),'header':[],'align':[],'rows':[]};if(u['length']===v['length']){for(let C of v)this['rules']['other'][aQ(0x122)]['test'](C)?x['align']['push']('right'):this[aQ(0x14e)]['other']['tableAlignCenter']['test'](C)?x[aQ(0xe3)]['push']('center'):this['rules']['other']['tableAlignLeft']['test'](C)?x['align']['push'](aQ(0x131)):x['align']['push'](null);for(let F=0x0;F<u['length'];F++)x['header']['push']({'text':u[F],'tokens':this['lexer']['inline'](u[F]),'header':!0x0,'align':x['align'][F]});for(let P of w)x['rows'][aQ(0x12e)](ue(P,x['header'][aQ(0x104)])['map']((X,Z)=>({'text':X,'tokens':this['lexer'][aQ(0x158)](X),'header':!0x1,'align':x['align'][Z]})));return x;}}['lheading'](h){let i=this['rules']['block']['lheading']['exec'](h);if(i){let l=i[0x1]['trim']();return{'type':'heading','raw':T(i[0x0],'\x0a'),'depth':i[0x2]['charAt'](0x0)==='='?0x1:0x2,'text':l,'tokens':this['lexer']['inline'](l)};}}['paragraph'](h){const aR=az;let i=this[aR(0x14e)][aR(0x153)]['paragraph'][aR(0x14f)](h);if(i){let l=i[0x1]['charAt'](i[0x1]['length']-0x1)==='\x0a'?i[0x1]['slice'](0x0,-0x1):i[0x1];return{'type':'paragraph','raw':i[0x0],'text':l,'tokens':this[aR(0x13f)]['inline'](l)};}}['text'](h){const aS=az;let i=this['rules']['block']['text'][aS(0x14f)](h);if(i)return{'type':'text','raw':i[0x0],'text':i[0x0],'tokens':this['lexer']['inline'](i[0x0])};}['escape'](h){const aT=az;let i=this['rules']['inline'][aT(0x157)]['exec'](h);if(i)return{'type':'escape','raw':i[0x0],'text':i[0x1]};}[az(0xd3)](h){const aU=az;let i=this[aU(0x14e)]['inline']['tag'][aU(0x14f)](h);if(i)return!this['lexer'][aU(0x11f)]['inLink']&&this['rules']['other']['startATag']['test'](i[0x0])?this['lexer']['state']['inLink']=!0x0:this['lexer']['state'][aU(0xf1)]&&this['rules'][aU(0x15d)]['endATag'][aU(0xf2)](i[0x0])&&(this['lexer']['state']['inLink']=!0x1),!this['lexer']['state']['inRawBlock']&&this['rules']['other']['startPreScriptTag']['test'](i[0x0])?this['lexer'][aU(0x11f)][aU(0x15f)]=!0x0:this[aU(0x13f)]['state']['inRawBlock']&&this['rules']['other']['endPreScriptTag']['test'](i[0x0])&&(this['lexer']['state']['inRawBlock']=!0x1),{'type':'html','raw':i[0x0],'inLink':this['lexer']['state']['inLink'],'inRawBlock':this['lexer']['state']['inRawBlock'],'block':!0x1,'text':i[0x0]};}['link'](h){const aV=az;let i=this[aV(0x14e)]['inline']['link'][aV(0x14f)](h);if(i){let o=i[0x2]['trim']();if(!this['options'][aV(0x141)]&&this['rules']['other']['startAngleBracket']['test'](o)){if(!this[aV(0x14e)]['other']['endAngleBracket']['test'](o))return;let v=T(o['slice'](0x0,-0x1),'\x5c');if((o['length']-v['length'])%0x2===0x0)return;}else{let w=ft(i[0x2],'()');if(w===-0x2)return;if(w>-0x1){let x=(i[0x0][aV(0x135)]('!')===0x0?0x5:0x4)+i[0x1][aV(0x104)]+w;i[0x2]=i[0x2]['substring'](0x0,w),i[0x0]=i[0x0]['substring'](0x0,x)['trim'](),i[0x3]='';}}let p=i[0x2],u='';if(this['options']['pedantic']){let C=this[aV(0x14e)][aV(0x15d)]['pedanticHrefTitle']['exec'](p);C&&(p=C[0x1],u=C[0x3]);}else u=i[0x3]?i[0x3][aV(0x102)](0x1,-0x1):'';return p=p['trim'](),this['rules']['other']['startAngleBracket']['test'](p)&&(this['options']['pedantic']&&!this[aV(0x14e)]['other']['endAngleBracket']['test'](o)?p=p['slice'](0x1):p=p['slice'](0x1,-0x1)),ke(i,{'href':p&&p['replace'](this['rules']['inline']['anyPunctuation'],'$1'),'title':u&&u['replace'](this['rules'][aV(0x158)][aV(0x136)],'$1')},i[0x0],this['lexer'],this['rules']);}}['reflink'](h,i){const aW=az;let o;if((o=this['rules']['inline']['reflink'][aW(0x14f)](h))||(o=this['rules']['inline']['nolink']['exec'](h))){let p=(o[0x2]||o[0x1])['replace'](this['rules']['other']['multipleSpaceGlobal'],'\x20'),u=i[p[aW(0x146)]()];if(!u){let v=o[0x0]['charAt'](0x0);return{'type':'text','raw':v,'text':v};}return ke(o,u,o[0x0],this['lexer'],this['rules']);}}[az(0x119)](p,v,x=''){const aX=az;let C=this[aX(0x14e)][aX(0x158)][aX(0x14b)]['exec'](p);if(!(!C||!C[0x1]&&!C[0x2]&&!C[0x3]&&!C[0x4]||C[0x4]&&x['match'](this['rules'][aX(0x15d)]['unicodeAlphaNumeric']))&&(!(C[0x1]||C[0x3])||!x||this['rules']['inline']['punctuation']['exec'](x))){let F=[...C[0x0]][aX(0x104)]-0x1,P,X,Z=F,a0=0x0,a1=C[0x0][0x0]==='*'?this['rules'][aX(0x158)][aX(0xe0)]:this['rules'][aX(0x158)]['emStrongRDelimUnd'];for(a1[aX(0xea)]=0x0,v=v['slice'](-0x1*p['length']+F);(C=a1['exec'](v))!==null;){if(P=C[0x1]||C[0x2]||C[0x3]||C[0x4]||C[0x5]||C[0x6],!P)continue;if(X=[...P][aX(0x104)],C[0x3]||C[0x4]){Z+=X;continue;}else{if((C[0x5]||C[0x6])&&F%0x3&&!((F+X)%0x3)){a0+=X;continue;}}if(Z-=X,Z>0x0)continue;X=Math['min'](X,X+Z+a0);let a2=[...C[0x0]][0x0][aX(0x104)],a3=p['slice'](0x0,F+C['index']+a2+X);if(Math[aX(0x13a)](F,X)%0x2){let a5=a3[aX(0x102)](0x1,-0x1);return{'type':'em','raw':a3,'text':a5,'tokens':this[aX(0x13f)]['inlineTokens'](a5)};}let a4=a3['slice'](0x2,-0x2);return{'type':'strong','raw':a3,'text':a4,'tokens':this[aX(0x13f)]['inlineTokens'](a4)};}}}['codespan'](h){const aY=az;let i=this['rules']['inline']['code']['exec'](h);if(i){let l=i[0x2]['replace'](this['rules']['other']['newLineCharGlobal'],'\x20'),o=this[aY(0x14e)]['other']['nonSpaceChar']['test'](l),p=this['rules']['other']['startingSpaceChar']['test'](l)&&this['rules'][aY(0x15d)][aY(0xfa)]['test'](l);return o&&p&&(l=l['substring'](0x1,l['length']-0x1)),{'type':aY(0x138),'raw':i[0x0],'text':l};}}['br'](h){let i=this['rules']['inline']['br']['exec'](h);if(i)return{'type':'br','raw':i[0x0]};}['del'](p,v,w=''){const aZ=az;let x=this['rules']['inline']['delLDelim']['exec'](p);if(x&&(!x[0x1]||!w||this['rules']['inline']['punctuation']['exec'](w))){let C=[...x[0x0]][aZ(0x104)]-0x1,F,P,X=C,Z=this['rules']['inline']['delRDelim'];for(Z[aZ(0xea)]=0x0,v=v[aZ(0x102)](-0x1*p['length']+C);(x=Z[aZ(0x14f)](v))!==null;){if(F=x[0x1]||x[0x2]||x[0x3]||x[0x4]||x[0x5]||x[0x6],!F||(P=[...F][aZ(0x104)],P!==C))continue;if(x[0x3]||x[0x4]){X+=P;continue;}if(X-=P,X>0x0)continue;P=Math['min'](P,P+X);let a0=[...x[0x0]][0x0]['length'],a1=p[aZ(0x102)](0x0,C+x['index']+a0+P),a2=a1['slice'](C,-C);return{'type':'del','raw':a1,'text':a2,'tokens':this['lexer']['inlineTokens'](a2)};}}}[az(0xfc)](h){const b0=az;let i=this[b0(0x14e)][b0(0x158)]['autolink']['exec'](h);if(i){let l,n;return i[0x2]==='@'?(l=i[0x1],n='mailto:'+l):(l=i[0x1],n=l),{'type':'link','raw':i[0x0],'text':l,'href':n,'tokens':[{'type':'text','raw':l,'text':l}]};}}['url'](h){const b1=az;var i,o;let p;if(p=this[b1(0x14e)]['inline']['url']['exec'](h)){let u,v;if(p[0x2]==='@')u=p[0x0],v='mailto:'+u;else{let w;do w=p[0x0],p[0x0]=(o=(i=this['rules']['inline']['_backpedal'][b1(0x14f)](p[0x0]))==null?void 0x0:i[0x0])!=null?o:'';while(w!==p[0x0]);u=p[0x0],p[0x1]==='www.'?v='http://'+p[0x0]:v=p[0x0];}return{'type':'link','raw':p[0x0],'text':u,'href':v,'tokens':[{'type':'text','raw':u,'text':u}]};}}['inlineText'](h){const b2=az;let i=this['rules']['inline']['text'][b2(0x14f)](h);if(i){let l=this['lexer']['state'][b2(0x15f)];return{'type':'text','raw':i[0x0],'text':i[0x0],'escaped':l};}}},$=class V{constructor(h){const b3=az;f(this,'tokens'),f(this,'options'),f(this,'state'),f(this,'inlineQueue'),f(this,'tokenizer'),(this['tokens']=[],this['tokens']['links']=Object['create'](null),this[b3(0x144)]=h||A,this['options']['tokenizer']=this['options']['tokenizer']||new j(),this['tokenizer']=this['options']['tokenizer'],this[b3(0x148)]['options']=this['options'],this['tokenizer']['lexer']=this,this['inlineQueue']=[],this['state']={'inLink':!0x1,'inRawBlock':!0x1,'top':!0x0});let i={'other':m,'block':D['normal'],'inline':E['normal']};this['options']['pedantic']?(i['block']=D['pedantic'],i['inline']=E['pedantic']):this[b3(0x144)]['gfm']&&(i[b3(0x153)]=D['gfm'],this[b3(0x144)]['breaks']?i['inline']=E['breaks']:i['inline']=E['gfm']),this['tokenizer']['rules']=i;}static get['rules'](){return{'block':D,'inline':E};}static['lex'](h,i){return new V(i)['lex'](h);}static['lexInline'](h,i){return new V(i)['inlineTokens'](h);}['lex'](h){const b4=az;h=h['replace'](m['carriageReturn'],'\x0a'),this[b4(0x116)](h,this[b4(0xd5)]);for(let i=0x0;i<this['inlineQueue']['length'];i++){let l=this['inlineQueue'][i];this['inlineTokens'](l['src'],l[b4(0xd5)]);}return this[b4(0x11e)]=[],this['tokens'];}['blockTokens'](p,r=[],v=!0x1){const b5=az;var w,x,C;this['tokenizer'][b5(0x13f)]=this,this['options']['pedantic']&&(p=p['replace'](m['tabCharGlobal'],b5(0xd2))['replace'](m['spaceLine'],''));let F=0x1/0x0;for(;p;){if(p['length']<F)F=p['length'];else{this['infiniteLoopError'](p['charCodeAt'](0x0));break;}let P;if((x=(w=this[b5(0x144)]['extensions'])==null?void 0x0:w[b5(0x153)])!=null&&x[b5(0xdb)](Z=>(P=Z['call']({'lexer':this},p,r))?(p=p['substring'](P['raw']['length']),r['push'](P),!0x0):!0x1))continue;if(P=this['tokenizer']['space'](p)){p=p['substring'](P['raw']['length']);let Z=r['at'](-0x1);P['raw'][b5(0x104)]===0x1&&Z!==void 0x0?Z['raw']+='\x0a':r['push'](P);continue;}if(P=this['tokenizer']['code'](p)){p=p[b5(0xf9)](P['raw']['length']);let a0=r['at'](-0x1);(a0==null?void 0x0:a0['type'])==='paragraph'||(a0==null?void 0x0:a0[b5(0x125)])===b5(0x11d)?(a0['raw']+=(a0['raw']['endsWith']('\x0a')?'':'\x0a')+P['raw'],a0['text']+='\x0a'+P['text'],this['inlineQueue']['at'](-0x1)['src']=a0['text']):r['push'](P);continue;}if(P=this[b5(0x148)][b5(0xe1)](p)){p=p[b5(0xf9)](P['raw'][b5(0x104)]),r['push'](P);continue;}if(P=this['tokenizer']['heading'](p)){p=p['substring'](P['raw']['length']),r['push'](P);continue;}if(P=this['tokenizer']['hr'](p)){p=p['substring'](P['raw']['length']),r['push'](P);continue;}if(P=this[b5(0x148)][b5(0xcc)](p)){p=p['substring'](P['raw']['length']),r[b5(0x12e)](P);continue;}if(P=this[b5(0x148)]['list'](p)){p=p['substring'](P['raw']['length']),r['push'](P);continue;}if(P=this['tokenizer'][b5(0x133)](p)){p=p['substring'](P[b5(0x160)]['length']),r['push'](P);continue;}if(P=this['tokenizer']['def'](p)){p=p['substring'](P['raw']['length']);let a1=r['at'](-0x1);(a1==null?void 0x0:a1['type'])===b5(0xc9)||(a1==null?void 0x0:a1['type'])==='text'?(a1['raw']+=(a1['raw'][b5(0xe2)]('\x0a')?'':'\x0a')+P['raw'],a1['text']+='\x0a'+P['raw'],this['inlineQueue']['at'](-0x1)[b5(0x15b)]=a1[b5(0x11d)]):this[b5(0xd5)]['links'][P['tag']]||(this['tokens'][b5(0xf0)][P['tag']]={'href':P[b5(0x11a)],'title':P['title']},r['push'](P));continue;}if(P=this[b5(0x148)]['table'](p)){p=p['substring'](P['raw'][b5(0x104)]),r['push'](P);continue;}if(P=this[b5(0x148)]['lheading'](p)){p=p['substring'](P[b5(0x160)]['length']),r['push'](P);continue;}let X=p;if((C=this['options'][b5(0x15e)])!=null&&C['startBlock']){let a2=0x1/0x0,a3=p['slice'](0x1),a4;this['options']['extensions']['startBlock'][b5(0x103)](a5=>{const b6=b5;a4=a5[b6(0x101)]({'lexer':this},a3),typeof a4=='number'&&a4>=0x0&&(a2=Math[b6(0x13a)](a2,a4));}),a2<0x1/0x0&&a2>=0x0&&(X=p['substring'](0x0,a2+0x1));}if(this['state']['top']&&(P=this['tokenizer'][b5(0xc9)](X))){let a5=r['at'](-0x1);v&&(a5==null?void 0x0:a5['type'])==='paragraph'?(a5['raw']+=(a5['raw'][b5(0xe2)]('\x0a')?'':'\x0a')+P['raw'],a5[b5(0x11d)]+='\x0a'+P['text'],this['inlineQueue']['pop'](),this[b5(0x11e)]['at'](-0x1)['src']=a5['text']):r['push'](P),v=X['length']!==p['length'],p=p['substring'](P[b5(0x160)]['length']);continue;}if(P=this['tokenizer']['text'](p)){p=p['substring'](P['raw']['length']);let a6=r['at'](-0x1);(a6==null?void 0x0:a6['type'])==='text'?(a6[b5(0x160)]+=(a6['raw']['endsWith']('\x0a')?'':'\x0a')+P['raw'],a6['text']+='\x0a'+P['text'],this['inlineQueue']['pop'](),this[b5(0x11e)]['at'](-0x1)['src']=a6['text']):r['push'](P);continue;}if(p){this['infiniteLoopError'](p['charCodeAt'](0x0));break;}}return this['state']['top']=!0x0,r;}['inline'](h,i=[]){return this['inlineQueue']['push']({'src':h,'tokens':i}),i;}['inlineTokens'](r,C=[]){const b7=az;var F,X,a0,a1,a2,a3;this['tokenizer']['lexer']=this;let a4=r,a5=null;if(this['tokens'][b7(0xf0)]){let aa=Object['keys'](this['tokens']['links']);if(aa['length']>0x0){for(;(a5=this['tokenizer']['rules']['inline']['reflinkSearch']['exec'](a4))!==null;)aa['includes'](a5[0x0][b7(0x102)](a5[0x0]['lastIndexOf']('[')+0x1,-0x1))&&(a4=a4[b7(0x102)](0x0,a5['index'])+'['+'a'['repeat'](a5[0x0]['length']-0x2)+']'+a4['slice'](this[b7(0x148)]['rules']['inline']['reflinkSearch']['lastIndex']));}}for(;(a5=this['tokenizer']['rules']['inline'][b7(0x136)]['exec'](a4))!==null;)a4=a4['slice'](0x0,a5['index'])+'++'+a4['slice'](this['tokenizer']['rules']['inline']['anyPunctuation']['lastIndex']);let a6;for(;(a5=this['tokenizer'][b7(0x14e)][b7(0x158)][b7(0x14a)]['exec'](a4))!==null;)a6=a5[0x2]?a5[0x2]['length']:0x0,a4=a4['slice'](0x0,a5['index']+a6)+'['+'a'['repeat'](a5[0x0]['length']-a6-0x2)+']'+a4[b7(0x102)](this['tokenizer']['rules']['inline']['blockSkip']['lastIndex']);a4=(a0=(X=(F=this['options']['hooks'])==null?void 0x0:F[b7(0x128)])==null?void 0x0:X['call']({'lexer':this},a4))!=null?a0:a4;let a7=!0x1,a8='',a9=0x1/0x0;for(;r;){if(r['length']<a9)a9=r['length'];else{this['infiniteLoopError'](r[b7(0x14d)](0x0));break;}a7||(a8=''),a7=!0x1;let ab;if((a2=(a1=this['options'][b7(0x15e)])==null?void 0x0:a1['inline'])!=null&&a2['some'](ad=>(ab=ad['call']({'lexer':this},r,C))?(r=r[b7(0xf9)](ab[b7(0x160)]['length']),C['push'](ab),!0x0):!0x1))continue;if(ab=this['tokenizer']['escape'](r)){r=r[b7(0xf9)](ab[b7(0x160)]['length']),C['push'](ab);continue;}if(ab=this['tokenizer'][b7(0xd3)](r)){r=r['substring'](ab['raw'][b7(0x104)]),C['push'](ab);continue;}if(ab=this['tokenizer']['link'](r)){r=r['substring'](ab['raw'][b7(0x104)]),C['push'](ab);continue;}if(ab=this[b7(0x148)]['reflink'](r,this['tokens']['links'])){r=r['substring'](ab['raw']['length']);let ad=C['at'](-0x1);ab['type']==='text'&&(ad==null?void 0x0:ad['type'])==='text'?(ad['raw']+=ab[b7(0x160)],ad['text']+=ab[b7(0x11d)]):C['push'](ab);continue;}if(ab=this['tokenizer']['emStrong'](r,a4,a8)){r=r[b7(0xf9)](ab['raw']['length']),C[b7(0x12e)](ab);continue;}if(ab=this['tokenizer']['codespan'](r)){r=r['substring'](ab[b7(0x160)]['length']),C['push'](ab);continue;}if(ab=this['tokenizer']['br'](r)){r=r['substring'](ab['raw']['length']),C['push'](ab);continue;}if(ab=this['tokenizer']['del'](r,a4,a8)){r=r['substring'](ab['raw']['length']),C['push'](ab);continue;}if(ab=this['tokenizer']['autolink'](r)){r=r['substring'](ab['raw']['length']),C['push'](ab);continue;}if(!this['state']['inLink']&&(ab=this['tokenizer']['url'](r))){r=r['substring'](ab['raw']['length']),C['push'](ab);continue;}let ac=r;if((a3=this['options']['extensions'])!=null&&a3[b7(0x129)]){let af=0x1/0x0,ag=r['slice'](0x1),ah;this['options']['extensions']['startInline']['forEach'](ai=>{const b8=b7;ah=ai['call']({'lexer':this},ag),typeof ah==b8(0x140)&&ah>=0x0&&(af=Math['min'](af,ah));}),af<0x1/0x0&&af>=0x0&&(ac=r[b7(0xf9)](0x0,af+0x1));}if(ab=this['tokenizer']['inlineText'](ac)){r=r['substring'](ab['raw']['length']),ab[b7(0x160)]['slice'](-0x1)!=='_'&&(a8=ab['raw'][b7(0x102)](-0x1)),a7=!0x0;let ai=C['at'](-0x1);(ai==null?void 0x0:ai['type'])==='text'?(ai['raw']+=ab[b7(0x160)],ai[b7(0x11d)]+=ab[b7(0x11d)]):C['push'](ab);continue;}if(r){this['infiniteLoopError'](r['charCodeAt'](0x0));break;}}return C;}[az(0xed)](h){const b9=az;let i='Infinite\x20loop\x20on\x20byte:\x20'+h;if(this['options'][b9(0x126)])console[b9(0xf3)](i);else throw new Error(i);}},N=class{constructor(h){f(this,'options'),f(this,'parser'),this['options']=h||A;}['space'](h){return'';}['code']({text:h,lang:i,escaped:o}){var p;let u=(p=(i||'')['match'](m['notSpaceStart']))==null?void 0x0:p[0x0],v=h['replace'](m['endingNewline'],'')+'\x0a';return u?'<pre><code\x20class=\x22language-'+S(u)+'\x22>'+(o?v:S(v,!0x0))+'</code></pre>\x0a':'<pre><code>'+(o?v:S(v,!0x0))+'</code></pre>\x0a';}['blockquote']({tokens:h}){return'<blockquote>\x0a'+this['parser']['parse'](h)+'</blockquote>\x0a';}[az(0x133)]({text:h}){return h;}['def'](h){return'';}[az(0x132)]({tokens:h,depth:i}){const ba=az;return'<h'+i+'>'+this[ba(0xe7)]['parseInline'](h)+'</h'+i+'>\x0a';}['hr'](h){return'<hr>\x0a';}['list'](h){let i=h['ordered'],p=h['start'],u='';for(let x=0x0;x<h['items']['length'];x++){let C=h['items'][x];u+=this['listitem'](C);}let v=i?'ol':'ul',w=i&&p!==0x1?'\x20start=\x22'+p+'\x22':'';return'<'+v+w+'>\x0a'+u+'</'+v+'>\x0a';}['listitem'](h){const bb=az;return'<li>'+this['parser'][bb(0x10d)](h['tokens'])+'</li>\x0a';}['checkbox']({checked:h}){return'<input\x20'+(h?'checked=\x22\x22\x20':'')+'disabled=\x22\x22\x20type=\x22checkbox\x22>\x20';}['paragraph']({tokens:h}){const bc=az;return'<p>'+this[bc(0xe7)]['parseInline'](h)+'</p>\x0a';}['table'](h){const bd=az;let i='',o='';for(let u=0x0;u<h['header']['length'];u++)o+=this['tablecell'](h['header'][u]);i+=this['tablerow']({'text':o});let p='';for(let v=0x0;v<h['rows']['length'];v++){let w=h['rows'][v];o='';for(let x=0x0;x<w['length'];x++)o+=this[bd(0x11b)](w[x]);p+=this[bd(0xee)]({'text':o});}return p&&(p='<tbody>'+p+'</tbody>'),'<table>\x0a<thead>\x0a'+i+'</thead>\x0a'+p+'</table>\x0a';}['tablerow']({text:h}){const bf=az;return'<tr>\x0a'+h+bf(0xfb);}['tablecell'](h){const bg=az;let i=this['parser']['parseInline'](h[bg(0xd5)]),l=h['header']?'th':'td';return(h['align']?'<'+l+'\x20align=\x22'+h[bg(0xe3)]+'\x22>':'<'+l+'>')+i+('</'+l+'>\x0a');}['strong']({tokens:h}){return'<strong>'+this['parser']['parseInline'](h)+'</strong>';}['em']({tokens:h}){return'<em>'+this['parser']['parseInline'](h)+'</em>';}['codespan']({text:h}){return'<code>'+S(h,!0x0)+'</code>';}['br'](h){return'<br>';}['del']({tokens:h}){const bh=az;return bh(0xd0)+this['parser'][bh(0x151)](h)+'</del>';}['link']({href:h,title:i,tokens:o}){const bi=az;let p=this['parser']['parseInline'](o),u=pe(h);if(u===null)return p;h=u;let v=bi(0x113)+h+'\x22';return i&&(v+='\x20title=\x22'+S(i)+'\x22'),v+='>'+p+'</a>',v;}['image']({href:h,title:i,text:o,tokens:p}){const bj=az;p&&(o=this['parser']['parseInline'](p,this['parser'][bj(0x162)]));let u=pe(h);if(u===null)return S(o);h=u;let v='<img\x20src=\x22'+h+'\x22\x20alt=\x22'+S(o)+'\x22';return i&&(v+='\x20title=\x22'+S(i)+'\x22'),v+='>',v;}['text'](h){const bk=az;return'tokens'in h&&h['tokens']?this[bk(0xe7)][bk(0x151)](h['tokens']):'escaped'in h&&h[bk(0x108)]?h['text']:S(h['text']);}},le=class{[az(0x127)]({text:h}){return h;}['em']({text:h}){return h;}['codespan']({text:h}){return h;}['del']({text:h}){return h;}[az(0x133)]({text:h}){return h;}['text']({text:h}){return h;}['link']({text:h}){return''+h;}['image']({text:h}){return''+h;}['br'](){return'';}['checkbox']({raw:h}){return h;}},R=class J{constructor(h){const bl=az;f(this,'options'),f(this,'renderer'),f(this,'textRenderer'),(this['options']=h||A,this[bl(0x144)][bl(0x137)]=this['options']['renderer']||new N(),this['renderer']=this['options'][bl(0x137)],this['renderer'][bl(0x144)]=this['options'],this['renderer']['parser']=this,this['textRenderer']=new le());}static[az(0x10d)](h,i){return new J(i)['parse'](h);}static['parseInline'](h,i){return new J(i)['parseInline'](h);}['parse'](p){const bm=az;var r,u;this['renderer']['parser']=this;let v='';for(let w=0x0;w<p[bm(0x104)];w++){let x=p[w];if((u=(r=this['options'][bm(0x15e)])==null?void 0x0:r['renderers'])!=null&&u[x['type']]){let F=x,P=this['options']['extensions']['renderers'][F['type']]['call']({'parser':this},F);if(P!==!0x1||!['space','hr','heading',bm(0x134),'table','blockquote','list',bm(0x133),'def','paragraph','text']['includes'](F['type'])){v+=P||'';continue;}}let C=x;switch(C['type']){case bm(0x12b):{v+=this['renderer'][bm(0x12b)](C);break;}case'hr':{v+=this[bm(0x137)]['hr'](C);break;}case'heading':{v+=this[bm(0x137)]['heading'](C);break;}case'code':{v+=this['renderer']['code'](C);break;}case bm(0x114):{v+=this['renderer'][bm(0x114)](C);break;}case'blockquote':{v+=this['renderer']['blockquote'](C);break;}case'list':{v+=this['renderer']['list'](C);break;}case'checkbox':{v+=this['renderer']['checkbox'](C);break;}case'html':{v+=this[bm(0x137)][bm(0x133)](C);break;}case'def':{v+=this['renderer']['def'](C);break;}case'paragraph':{v+=this['renderer'][bm(0xc9)](C);break;}case'text':{v+=this['renderer']['text'](C);break;}default:{let X='Token\x20with\x20\x22'+C['type']+bm(0x154);if(this['options']['silent'])return console['error'](X),'';throw new Error(X);}}}return v;}['parseInline'](p,r=this['renderer']){const bn=az;var u,v;this['renderer']['parser']=this;let w='';for(let x=0x0;x<p['length'];x++){let C=p[x];if((v=(u=this['options']['extensions'])==null?void 0x0:u['renderers'])!=null&&v[C[bn(0x125)]]){let P=this[bn(0x144)][bn(0x15e)]['renderers'][C['type']]['call']({'parser':this},C);if(P!==!0x1||![bn(0x157),bn(0x133),'link','image','strong','em','codespan','br','del','text']['includes'](C['type'])){w+=P||'';continue;}}let F=C;switch(F['type']){case'escape':{w+=r[bn(0x11d)](F);break;}case'html':{w+=r[bn(0x133)](F);break;}case'link':{w+=r['link'](F);break;}case'image':{w+=r['image'](F);break;}case'checkbox':{w+=r[bn(0xd4)](F);break;}case'strong':{w+=r['strong'](F);break;}case'em':{w+=r['em'](F);break;}case'codespan':{w+=r['codespan'](F);break;}case'br':{w+=r['br'](F);break;}case bn(0x14c):{w+=r[bn(0x14c)](F);break;}case'text':{w+=r['text'](F);break;}default:{let X='Token\x20with\x20\x22'+F[bn(0x125)]+bn(0x154);if(this['options']['silent'])return console[bn(0xf3)](X),'';throw new Error(X);}}}return w;}},Q,B=(Q=class{constructor(h){f(this,'options'),f(this,'block'),this['options']=h||A;}[az(0xe9)](h){return h;}['postprocess'](h){return h;}[az(0x10e)](h){return h;}['emStrongMask'](h){return h;}[az(0xf8)](h=this['block']){const bo=az;return h?$['lex']:$[bo(0xcf)];}['provideParser'](h=this['block']){return h?R['parse']:R['parseInline'];}},f(Q,'passThroughHooks',new Set(['preprocess',az(0x117),'processAllTokens','emStrongMask'])),f(Q,'passThroughHooksRespectAsync',new Set(['preprocess','postprocess','processAllTokens'])),Q),wt=class{constructor(...h){const bp=az;f(this,'defaults',K()),f(this,'options',this['setOptions']),f(this,'parse',this[bp(0xda)](!0x0)),f(this,'parseInline',this['parseMarkdown'](!0x1)),f(this,'Parser',R),f(this,bp(0x15a),N),f(this,'TextRenderer',le),f(this,'Lexer',$),f(this,'Tokenizer',j),f(this,bp(0x155),B),this['use'](...h);}['walkTokens'](h,p){const bq=az;var u,v;let w=[];for(let x of h)switch(w=w['concat'](p['call'](this,x)),x['type']){case'table':{let C=x;for(let F of C['header'])w=w['concat'](this['walkTokens'](F['tokens'],p));for(let P of C['rows'])for(let X of P)w=w[bq(0xd9)](this[bq(0x100)](X['tokens'],p));break;}case'list':{let Z=x;w=w['concat'](this[bq(0x100)](Z[bq(0x10c)],p));break;}default:{let a0=x;(v=(u=this['defaults']['extensions'])==null?void 0x0:u[bq(0x12a)])!=null&&v[a0['type']]?this[bq(0xfd)]['extensions']['childTokens'][a0['type']][bq(0x103)](a1=>{const br=bq;let a2=a0[a1][br(0x156)](0x1/0x0);w=w['concat'](this['walkTokens'](a2,p));}):a0[bq(0xd5)]&&(w=w[bq(0xd9)](this['walkTokens'](a0['tokens'],p)));}}return w;}['use'](...h){let i=this['defaults']['extensions']||{'renderers':{},'childTokens':{}};return h['forEach'](p=>{const bs=b;let u=y({},p);if(u['async']=this['defaults'][bs(0x121)]||u['async']||!0x1,p['extensions']&&(p['extensions']['forEach'](v=>{const bu=bs;if(!v['name'])throw new Error('extension\x20name\x20required');if('renderer'in v){let w=i['renderers'][v[bu(0x147)]];w?i[bu(0x130)][v[bu(0x147)]]=function(...x){let C=v['renderer']['apply'](this,x);return C===!0x1&&(C=w['apply'](this,x)),C;}:i['renderers'][v[bu(0x147)]]=v['renderer'];}if('tokenizer'in v){if(!v['level']||v['level']!=='block'&&v[bu(0x15c)]!=='inline')throw new Error('extension\x20level\x20must\x20be\x20\x27block\x27\x20or\x20\x27inline\x27');let x=i[v['level']];x?x[bu(0xd6)](v['tokenizer']):i[v[bu(0x15c)]]=[v['tokenizer']],v[bu(0xf6)]&&(v['level']==='block'?i['startBlock']?i['startBlock'][bu(0x12e)](v['start']):i[bu(0x13e)]=[v['start']]:v['level']==='inline'&&(i['startInline']?i['startInline'][bu(0x12e)](v[bu(0xf6)]):i['startInline']=[v[bu(0xf6)]]));}'childTokens'in v&&v['childTokens']&&(i[bu(0x12a)][v['name']]=v['childTokens']);}),u[bs(0x15e)]=i),p['renderer']){let v=this['defaults']['renderer']||new N(this[bs(0xfd)]);for(let w in p[bs(0x137)]){if(!(w in v))throw new Error('renderer\x20\x27'+w+'\x27\x20does\x20not\x20exist');if([bs(0x144),'parser']['includes'](w))continue;let x=w,C=p['renderer'][x],F=v[x];v[x]=(...P)=>{let X=C['apply'](v,P);return X===!0x1&&(X=F['apply'](v,P)),X||'';};}u['renderer']=v;}if(p['tokenizer']){let P=this['defaults']['tokenizer']||new j(this['defaults']);for(let X in p['tokenizer']){if(!(X in P))throw new Error('tokenizer\x20\x27'+X+'\x27\x20does\x20not\x20exist');if(['options','rules','lexer']['includes'](X))continue;let Z=X,a0=p['tokenizer'][Z],a1=P[Z];P[Z]=(...a2)=>{let a3=a0['apply'](P,a2);return a3===!0x1&&(a3=a1['apply'](P,a2)),a3;};}u['tokenizer']=P;}if(p['hooks']){let a2=this['defaults']['hooks']||new B();for(let a3 in p[bs(0x142)]){if(!(a3 in a2))throw new Error('hook\x20\x27'+a3+'\x27\x20does\x20not\x20exist');if(['options','block']['includes'](a3))continue;let a4=a3,a5=p['hooks'][a4],a6=a2[a4];B[bs(0x106)]['has'](a3)?a2[a4]=a7=>{if(this['defaults']['async']&&B['passThroughHooksRespectAsync']['has'](a3))return((()=>M(this,null,function*(){const bv=b;let a9=yield a5[bv(0x101)](a2,a7);return a6['call'](a2,a9);}))());let a8=a5['call'](a2,a7);return a6['call'](a2,a8);}:a2[a4]=(...a7)=>{const bw=bs;if(this['defaults'][bw(0x121)])return((()=>M(this,null,function*(){const bx=bw;let a9=yield a5['apply'](a2,a7);return a9===!0x1&&(a9=yield a6[bx(0x109)](a2,a7)),a9;}))());let a8=a5['apply'](a2,a7);return a8===!0x1&&(a8=a6['apply'](a2,a7)),a8;};}u['hooks']=a2;}if(p['walkTokens']){let a7=this[bs(0xfd)]['walkTokens'],a8=p['walkTokens'];u['walkTokens']=function(a9){let aa=[];return aa['push'](a8['call'](this,a9)),a7&&(aa=aa['concat'](a7['call'](this,a9))),aa;};}this[bs(0xfd)]=y(y({},this['defaults']),u);}),this;}['setOptions'](h){const by=az;return this[by(0xfd)]=y(y({},this[by(0xfd)]),h),this;}[az(0x13f)](h,i){return $['lex'](h,i!=null?i:this['defaults']);}['parser'](h,i){const bz=az;return R['parse'](h,i!=null?i:this[bz(0xfd)]);}['parseMarkdown'](h){return(i,p)=>{const bA=b;let u=y({},p),v=y(y({},this['defaults']),u),w=this['onError'](!!v['silent'],!!v['async']);if(this['defaults']['async']===!0x0&&u['async']===!0x1)return w(new Error('marked():\x20The\x20async\x20option\x20was\x20set\x20to\x20true\x20by\x20an\x20extension.\x20Remove\x20async:\x20false\x20from\x20the\x20parse\x20options\x20object\x20to\x20return\x20a\x20Promise.'));if(typeof i>'u'||i===null)return w(new Error(bA(0x105)));if(typeof i!=bA(0xdf))return w(new Error(bA(0x161)+Object['prototype']['toString']['call'](i)+',\x20string\x20expected'));if(v['hooks']&&(v['hooks']['options']=v,v['hooks']['block']=h),v['async'])return(()=>M(this,null,function*(){const bB=bA;let x=v['hooks']?yield v['hooks']['preprocess'](i):i,C=yield(v['hooks']?yield v['hooks'][bB(0xf8)](h):h?$[bB(0xeb)]:$[bB(0xcf)])(x,v),F=v[bB(0x142)]?yield v[bB(0x142)]['processAllTokens'](C):C;v['walkTokens']&&(yield Promise['all'](this['walkTokens'](F,v['walkTokens'])));let P=yield(v['hooks']?yield v['hooks']['provideParser'](h):h?R['parse']:R['parseInline'])(F,v);return v['hooks']?yield v['hooks']['postprocess'](P):P;}))()['catch'](w);try{v['hooks']&&(i=v['hooks']['preprocess'](i));let x=(v[bA(0x142)]?v['hooks']['provideLexer'](h):h?$['lex']:$[bA(0xcf)])(i,v);v['hooks']&&(x=v['hooks']['processAllTokens'](x)),v['walkTokens']&&this['walkTokens'](x,v['walkTokens']);let C=(v['hooks']?v['hooks']['provideParser'](h):h?R['parse']:R['parseInline'])(x,v);return v[bA(0x142)]&&(C=v['hooks']['postprocess'](C)),C;}catch(F){return w(F);}};}['onError'](h,i){return l=>{if(l['message']+='\x0aPlease\x20report\x20this\x20to\x20https://github.com/markedjs/marked.',h){let n='<p>An\x20error\x20occurred:</p><pre>'+S(l['message']+'',!0x0)+'</pre>';return i?Promise['resolve'](n):n;}if(i)return Promise['reject'](l);throw l;};}},z=new wt();function d(h,i){return z['parse'](h,i);}d['options']=d['setOptions']=function(h){const bC=az;return z[bC(0xca)](h),d['defaults']=z[bC(0xfd)],de(d['defaults']),d;},d[az(0xe5)]=K,d['defaults']=A,d['use']=function(...h){const bD=az;return z['use'](...h),d[bD(0xfd)]=z['defaults'],de(d['defaults']),d;},d['walkTokens']=function(h,i){return z['walkTokens'](h,i);},d['parseInline']=z['parseInline'],d['Parser']=R,d['parser']=R['parse'],d['Renderer']=N,d['TextRenderer']=le,d['Lexer']=$,d['lexer']=$['lex'],d['Tokenizer']=j,d['Hooks']=B,d['parse']=d,d[az(0x144)],d['setOptions'],d['use'],d['walkTokens'],d['parseInline'],R['parse'],$['lex'];const mt=c({'__name':'MarkdownViewer','props':{'data':null},'setup'(h){const i=h,l=e(()=>d(i['data']));return{'__sfc':!0x0,'props':i,'html':l};}});function b(c,d){c=c-0xc9;const e=a();let f=e[c];return f;}var yt=function(){var h=this,i=h['_self']['_c'],l=h['_self']['_setupProxy'];return i('div',{'staticClass':'markdown-body','domProps':{'innerHTML':h['_s'](l['html'])}});},$t=[],Rt=g(mt,yt,$t,!0x1,null,'e0bd8a5a',null,null);const zt=Rt['exports'];export{zt as default};