@kong-ui-public/document-viewer 2.6.6 → 2.6.7-pr.4063.f9e4f8cdb.0

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 (47) hide show
  1. package/dist/document-viewer.es.js +1064 -12
  2. package/dist/document-viewer.umd.js +16 -16
  3. package/dist/prism-bash.min-BSY2OtLX.js +174 -0
  4. package/dist/prism-css.min-Dvuxzq5c.js +54 -0
  5. package/dist/prism-docker.min-Ch3_J8xI.js +74 -0
  6. package/dist/prism-go.min-DpuveEXM.js +20 -0
  7. package/dist/prism-http.min-BDgs53mG.js +107 -0
  8. package/dist/prism-javascript.min-TTu9gTO1.js +101 -0
  9. package/dist/prism-jq.min-wjT5eiX4.js +57 -0
  10. package/dist/prism-json.min-BRMWDas8.js +25 -0
  11. package/dist/prism-log.min-CcmZYCOq.js +97 -0
  12. package/dist/prism-lua.min-CL-6tP_v.js +16 -0
  13. package/dist/prism-makefile.min-CfFQPrwo.js +28 -0
  14. package/dist/prism-markdown.min-CHFT4_Ei.js +240 -0
  15. package/dist/prism-python.min-BMa8XQns.js +59 -0
  16. package/dist/prism-regex.min-KRUvJnhz.js +78 -0
  17. package/dist/prism-rest.min-C38D2pbN.js +151 -0
  18. package/dist/prism-rust.min-D7QzzLfK.js +91 -0
  19. package/dist/prism-scss.min-Bg9jNB2R.js +52 -0
  20. package/dist/prism-sql.min-BufanzXb.js +28 -0
  21. package/dist/prism-typescript.min-Ck6Xh8q0.js +37 -0
  22. package/dist/prism-xml-doc.min-CcH35smE.js +18 -0
  23. package/dist/prism-yaml.min-CkLxSivi.js +67 -0
  24. package/dist/style.css +2 -1
  25. package/package.json +2 -2
  26. package/dist/index-Dm0akurK.js +0 -1632
  27. package/dist/prism-bash.min-HHIMdNJ_.js +0 -6
  28. package/dist/prism-css.min-BgYu_Rzi.js +0 -7
  29. package/dist/prism-docker.min-Cc3clOcH.js +0 -22
  30. package/dist/prism-go.min-C7UmK6TW.js +0 -1
  31. package/dist/prism-http.min-CP9t4YhN.js +0 -22
  32. package/dist/prism-javascript.min-CEqHqgbm.js +0 -8
  33. package/dist/prism-jq.min-DSs6jyUo.js +0 -36
  34. package/dist/prism-json.min-B1GJqK1k.js +0 -1
  35. package/dist/prism-log.min-SDopTpKN.js +0 -1
  36. package/dist/prism-lua.min-DwRnUVfS.js +0 -1
  37. package/dist/prism-makefile.min-DyutknhE.js +0 -1
  38. package/dist/prism-markdown.min-D9nktPdA.js +0 -60
  39. package/dist/prism-python.min-CwGdPpz_.js +0 -29
  40. package/dist/prism-regex.min-BqTi0NTp.js +0 -4
  41. package/dist/prism-rest.min-B6veHRJF.js +0 -1
  42. package/dist/prism-rust.min-Ccuw6kc-.js +0 -36
  43. package/dist/prism-scss.min-DsoMAB2f.js +0 -29
  44. package/dist/prism-sql.min-BHXzX-c_.js +0 -1
  45. package/dist/prism-typescript.min-fwm2QbJz.js +0 -33
  46. package/dist/prism-xml-doc.min-BGai1RKL.js +0 -7
  47. package/dist/prism-yaml.min-C3Yo-ypE.js +0 -28
@@ -1,13 +1,1065 @@
1
- import { T as s, a as d, b as i, c as l, D as o, i as t, d as g, e as n, f as u, t as T } from "./index-Dm0akurK.js";
2
- export {
3
- s as TableCellAlign,
4
- d as TableRowSection,
5
- i as addSlug,
6
- l as addUniqueHeadingSlugs,
7
- o as default,
8
- t as isHeadingNode,
9
- g as isListNode,
10
- n as isTableHeaderNode,
11
- u as isTextNode,
12
- T as toSlug
1
+ import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, mergeProps as l, normalizeClass as u, openBlock as d, ref as f, renderSlot as p, resolveComponent as m, resolveDynamicComponent as h, toDisplayString as g, unref as _, watch as v, withCtx as y } from "vue";
2
+ import { createI18n as b, i18nTComponent as x } from "@kong-ui-public/i18n";
3
+ // \0rolldown/runtime.js
4
+ var S = Object.create, C = Object.defineProperty, w = Object.getOwnPropertyDescriptor, T = Object.getOwnPropertyNames, E = Object.getPrototypeOf, D = Object.prototype.hasOwnProperty, O = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), k = (e, t, n, r) => {
5
+ if (t && typeof t == "object" || typeof t == "function") for (var i = T(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !D.call(e, s) && s !== n && C(e, s, {
6
+ get: ((e) => t[e]).bind(null, s),
7
+ enumerable: !(r = w(t, s)) || r.enumerable
8
+ });
9
+ return e;
10
+ }, A = (e, t, n) => (n = e == null ? {} : S(E(e)), k(t || !e || !e.__esModule || !D.call(e, "default") ? C(n, "default", {
11
+ value: e,
12
+ enumerable: !0
13
+ }) : n, e)), j = /* @__PURE__ */ function(e) {
14
+ return e.header = "header", e.body = "body", e.footer = "footer", e;
15
+ }({}), M = /* @__PURE__ */ function(e) {
16
+ return e.left = "left", e.center = "center", e.right = "right", e;
17
+ }({});
18
+ function N(e) {
19
+ return e?.type === "table_header";
20
+ }
21
+ function P(e) {
22
+ return e?.type === "text";
23
+ }
24
+ function F(e) {
25
+ return e?.type === "heading";
26
+ }
27
+ function I(e) {
28
+ return e?.type === "list";
29
+ }
30
+ // \0plugin-vue:export-helper
31
+ var L = (e, t) => {
32
+ let n = e.__vccOpts || e;
33
+ for (let [e, r] of t) n[e] = r;
34
+ return n;
35
+ }, ee = {};
36
+ function te(e, t) {
37
+ return d(), i("blockquote", null, [p(e.$slots, "default", {}, void 0, !0)]);
38
+ }
39
+ var ne = /*#__PURE__*/ L(ee, [["render", te], ["__scopeId", "data-v-b12de275"]]), re = {};
40
+ function ie(e, t) {
41
+ return d(), i("code", null, [p(e.$slots, "default", {}, void 0, !0)]);
42
+ }
43
+ var ae = /*#__PURE__*/ L(re, [["render", ie], ["__scopeId", "data-v-0af3d2af"]]), R = /* @__PURE__ */ A((/* @__PURE__ */ O(((e, t) => {
44
+ var n = function(e) {
45
+ var t = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, n = 0, r = {}, i = {
46
+ manual: e.Prism && e.Prism.manual,
47
+ disableWorkerMessageHandler: e.Prism && e.Prism.disableWorkerMessageHandler,
48
+ util: {
49
+ encode: function e(t) {
50
+ return t instanceof a ? new a(t.type, e(t.content), t.alias) : Array.isArray(t) ? t.map(e) : t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
51
+ },
52
+ type: function(e) {
53
+ return Object.prototype.toString.call(e).slice(8, -1);
54
+ },
55
+ objId: function(e) {
56
+ return e.__id || Object.defineProperty(e, "__id", { value: ++n }), e.__id;
57
+ },
58
+ clone: function e(t, n) {
59
+ n ||= {};
60
+ var r, a;
61
+ switch (i.util.type(t)) {
62
+ case "Object":
63
+ if (a = i.util.objId(t), n[a]) return n[a];
64
+ for (var o in r = {}, n[a] = r, t) t.hasOwnProperty(o) && (r[o] = e(t[o], n));
65
+ return r;
66
+ case "Array": return a = i.util.objId(t), n[a] ? n[a] : (r = [], n[a] = r, t.forEach(function(t, i) {
67
+ r[i] = e(t, n);
68
+ }), r);
69
+ default: return t;
70
+ }
71
+ },
72
+ getLanguage: function(e) {
73
+ for (; e;) {
74
+ var n = t.exec(e.className);
75
+ if (n) return n[1].toLowerCase();
76
+ e = e.parentElement;
77
+ }
78
+ return "none";
79
+ },
80
+ setLanguage: function(e, n) {
81
+ e.className = e.className.replace(RegExp(t, "gi"), ""), e.classList.add("language-" + n);
82
+ },
83
+ currentScript: function() {
84
+ if (typeof document > "u") return null;
85
+ if (document.currentScript && document.currentScript.tagName === "SCRIPT") return document.currentScript;
86
+ try {
87
+ throw Error();
88
+ } catch (r) {
89
+ var e = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack) || [])[1];
90
+ if (e) {
91
+ var t = document.getElementsByTagName("script");
92
+ for (var n in t) if (t[n].src == e) return t[n];
93
+ }
94
+ return null;
95
+ }
96
+ },
97
+ isActive: function(e, t, n) {
98
+ for (var r = "no-" + t; e;) {
99
+ var i = e.classList;
100
+ if (i.contains(t)) return !0;
101
+ if (i.contains(r)) return !1;
102
+ e = e.parentElement;
103
+ }
104
+ return !!n;
105
+ }
106
+ },
107
+ languages: {
108
+ plain: r,
109
+ plaintext: r,
110
+ text: r,
111
+ txt: r,
112
+ extend: function(e, t) {
113
+ var n = i.util.clone(i.languages[e]);
114
+ for (var r in t) n[r] = t[r];
115
+ return n;
116
+ },
117
+ insertBefore: function(e, t, n, r) {
118
+ r ||= i.languages;
119
+ var a = r[e], o = {};
120
+ for (var s in a) if (a.hasOwnProperty(s)) {
121
+ if (s == t) for (var c in n) n.hasOwnProperty(c) && (o[c] = n[c]);
122
+ n.hasOwnProperty(s) || (o[s] = a[s]);
123
+ }
124
+ var l = r[e];
125
+ return r[e] = o, i.languages.DFS(i.languages, function(t, n) {
126
+ n === l && t != e && (this[t] = o);
127
+ }), o;
128
+ },
129
+ DFS: function e(t, n, r, a) {
130
+ a ||= {};
131
+ var o = i.util.objId;
132
+ for (var s in t) if (t.hasOwnProperty(s)) {
133
+ n.call(t, s, t[s], r || s);
134
+ var c = t[s], l = i.util.type(c);
135
+ l === "Object" && !a[o(c)] ? (a[o(c)] = !0, e(c, n, null, a)) : l === "Array" && !a[o(c)] && (a[o(c)] = !0, e(c, n, s, a));
136
+ }
137
+ }
138
+ },
139
+ plugins: {},
140
+ highlightAll: function(e, t) {
141
+ i.highlightAllUnder(document, e, t);
142
+ },
143
+ highlightAllUnder: function(e, t, n) {
144
+ var r = {
145
+ callback: n,
146
+ container: e,
147
+ selector: "code[class*=\"language-\"], [class*=\"language-\"] code, code[class*=\"lang-\"], [class*=\"lang-\"] code"
148
+ };
149
+ i.hooks.run("before-highlightall", r), r.elements = Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)), i.hooks.run("before-all-elements-highlight", r);
150
+ for (var a = 0, o; o = r.elements[a++];) i.highlightElement(o, t === !0, r.callback);
151
+ },
152
+ highlightElement: function(t, n, r) {
153
+ var a = i.util.getLanguage(t), o = i.languages[a];
154
+ i.util.setLanguage(t, a);
155
+ var s = t.parentElement;
156
+ s && s.nodeName.toLowerCase() === "pre" && i.util.setLanguage(s, a);
157
+ var c = {
158
+ element: t,
159
+ language: a,
160
+ grammar: o,
161
+ code: t.textContent
162
+ };
163
+ function l(e) {
164
+ c.highlightedCode = e, i.hooks.run("before-insert", c), c.element.innerHTML = c.highlightedCode, i.hooks.run("after-highlight", c), i.hooks.run("complete", c), r && r.call(c.element);
165
+ }
166
+ if (i.hooks.run("before-sanity-check", c), s = c.element.parentElement, s && s.nodeName.toLowerCase() === "pre" && !s.hasAttribute("tabindex") && s.setAttribute("tabindex", "0"), !c.code) i.hooks.run("complete", c), r && r.call(c.element);
167
+ else if (i.hooks.run("before-highlight", c), !c.grammar) l(i.util.encode(c.code));
168
+ else if (n && e.Worker) {
169
+ var u = new Worker(i.filename);
170
+ u.onmessage = function(e) {
171
+ l(e.data);
172
+ }, u.postMessage(JSON.stringify({
173
+ language: c.language,
174
+ code: c.code,
175
+ immediateClose: !0
176
+ }));
177
+ } else l(i.highlight(c.code, c.grammar, c.language));
178
+ },
179
+ highlight: function(e, t, n) {
180
+ var r = {
181
+ code: e,
182
+ grammar: t,
183
+ language: n
184
+ };
185
+ if (i.hooks.run("before-tokenize", r), !r.grammar) throw Error("The language \"" + r.language + "\" has no grammar.");
186
+ return r.tokens = i.tokenize(r.code, r.grammar), i.hooks.run("after-tokenize", r), a.stringify(i.util.encode(r.tokens), r.language);
187
+ },
188
+ tokenize: function(e, t) {
189
+ var n = t.rest;
190
+ if (n) {
191
+ for (var r in n) t[r] = n[r];
192
+ delete t.rest;
193
+ }
194
+ var i = new c();
195
+ return l(i, i.head, e), s(e, i, t, i.head, 0), d(i);
196
+ },
197
+ hooks: {
198
+ all: {},
199
+ add: function(e, t) {
200
+ var n = i.hooks.all;
201
+ n[e] = n[e] || [], n[e].push(t);
202
+ },
203
+ run: function(e, t) {
204
+ var n = i.hooks.all[e];
205
+ if (n && n.length) for (var r = 0, a; a = n[r++];) a(t);
206
+ }
207
+ },
208
+ Token: a
209
+ };
210
+ e.Prism = i;
211
+ function a(e, t, n, r) {
212
+ this.type = e, this.content = t, this.alias = n, this.length = (r || "").length | 0;
213
+ }
214
+ a.stringify = function e(t, n) {
215
+ if (typeof t == "string") return t;
216
+ if (Array.isArray(t)) {
217
+ var r = "";
218
+ return t.forEach(function(t) {
219
+ r += e(t, n);
220
+ }), r;
221
+ }
222
+ var a = {
223
+ type: t.type,
224
+ content: e(t.content, n),
225
+ tag: "span",
226
+ classes: ["token", t.type],
227
+ attributes: {},
228
+ language: n
229
+ }, o = t.alias;
230
+ o && (Array.isArray(o) ? Array.prototype.push.apply(a.classes, o) : a.classes.push(o)), i.hooks.run("wrap", a);
231
+ var s = "";
232
+ for (var c in a.attributes) s += " " + c + "=\"" + (a.attributes[c] || "").replace(/"/g, "&quot;") + "\"";
233
+ return "<" + a.tag + " class=\"" + a.classes.join(" ") + "\"" + s + ">" + a.content + "</" + a.tag + ">";
234
+ };
235
+ function o(e, t, n, r) {
236
+ e.lastIndex = t;
237
+ var i = e.exec(n);
238
+ if (i && r && i[1]) {
239
+ var a = i[1].length;
240
+ i.index += a, i[0] = i[0].slice(a);
241
+ }
242
+ return i;
243
+ }
244
+ function s(e, t, n, r, c, d) {
245
+ for (var f in n) if (n.hasOwnProperty(f) && n[f]) {
246
+ var p = n[f];
247
+ p = Array.isArray(p) ? p : [p];
248
+ for (var m = 0; m < p.length; ++m) {
249
+ if (d && d.cause == f + "," + m) return;
250
+ var h = p[m], g = h.inside, _ = !!h.lookbehind, v = !!h.greedy, y = h.alias;
251
+ if (v && !h.pattern.global) {
252
+ var b = h.pattern.toString().match(/[imsuy]*$/)[0];
253
+ h.pattern = RegExp(h.pattern.source, b + "g");
254
+ }
255
+ for (var x = h.pattern || h, S = r.next, C = c; S !== t.tail && !(d && C >= d.reach); C += S.value.length, S = S.next) {
256
+ var w = S.value;
257
+ if (t.length > e.length) return;
258
+ if (!(w instanceof a)) {
259
+ var T = 1, E;
260
+ if (v) {
261
+ if (E = o(x, C, e, _), !E || E.index >= e.length) break;
262
+ var D = E.index, O = E.index + E[0].length, k = C;
263
+ for (k += S.value.length; D >= k;) S = S.next, k += S.value.length;
264
+ if (k -= S.value.length, C = k, S.value instanceof a) continue;
265
+ for (var A = S; A !== t.tail && (k < O || typeof A.value == "string"); A = A.next) T++, k += A.value.length;
266
+ T--, w = e.slice(C, k), E.index -= C;
267
+ } else if (E = o(x, 0, w, _), !E) continue;
268
+ var D = E.index, j = E[0], M = w.slice(0, D), N = w.slice(D + j.length), P = C + w.length;
269
+ d && P > d.reach && (d.reach = P);
270
+ var F = S.prev;
271
+ M && (F = l(t, F, M), C += M.length), u(t, F, T);
272
+ var I = new a(f, g ? i.tokenize(j, g) : j, y, j);
273
+ if (S = l(t, F, I), N && l(t, S, N), T > 1) {
274
+ var L = {
275
+ cause: f + "," + m,
276
+ reach: P
277
+ };
278
+ s(e, t, n, S.prev, C, L), d && L.reach > d.reach && (d.reach = L.reach);
279
+ }
280
+ }
281
+ }
282
+ }
283
+ }
284
+ }
285
+ function c() {
286
+ var e = {
287
+ value: null,
288
+ prev: null,
289
+ next: null
290
+ }, t = {
291
+ value: null,
292
+ prev: e,
293
+ next: null
294
+ };
295
+ e.next = t, this.head = e, this.tail = t, this.length = 0;
296
+ }
297
+ function l(e, t, n) {
298
+ var r = t.next, i = {
299
+ value: n,
300
+ prev: t,
301
+ next: r
302
+ };
303
+ return t.next = i, r.prev = i, e.length++, i;
304
+ }
305
+ function u(e, t, n) {
306
+ for (var r = t.next, i = 0; i < n && r !== e.tail; i++) r = r.next;
307
+ t.next = r, r.prev = t, e.length -= i;
308
+ }
309
+ function d(e) {
310
+ for (var t = [], n = e.head.next; n !== e.tail;) t.push(n.value), n = n.next;
311
+ return t;
312
+ }
313
+ if (!e.document) return e.addEventListener && (i.disableWorkerMessageHandler || e.addEventListener("message", function(t) {
314
+ var n = JSON.parse(t.data), r = n.language, a = n.code, o = n.immediateClose;
315
+ e.postMessage(i.highlight(a, i.languages[r], r)), o && e.close();
316
+ }, !1)), i;
317
+ var f = i.util.currentScript();
318
+ f && (i.filename = f.src, f.hasAttribute("data-manual") && (i.manual = !0));
319
+ function p() {
320
+ i.manual || i.highlightAll();
321
+ }
322
+ if (!i.manual) {
323
+ var m = document.readyState;
324
+ m === "loading" || m === "interactive" && f && f.defer ? document.addEventListener("DOMContentLoaded", p) : window.requestAnimationFrame ? window.requestAnimationFrame(p) : window.setTimeout(p, 16);
325
+ }
326
+ return i;
327
+ }(typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {});
328
+ t !== void 0 && t.exports && (t.exports = n), typeof global < "u" && (global.Prism = n), n.languages.markup = {
329
+ comment: {
330
+ pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
331
+ greedy: !0
332
+ },
333
+ prolog: {
334
+ pattern: /<\?[\s\S]+?\?>/,
335
+ greedy: !0
336
+ },
337
+ doctype: {
338
+ pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,
339
+ greedy: !0,
340
+ inside: {
341
+ "internal-subset": {
342
+ pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/,
343
+ lookbehind: !0,
344
+ greedy: !0,
345
+ inside: null
346
+ },
347
+ string: {
348
+ pattern: /"[^"]*"|'[^']*'/,
349
+ greedy: !0
350
+ },
351
+ punctuation: /^<!|>$|[[\]]/,
352
+ "doctype-tag": /^DOCTYPE/i,
353
+ name: /[^\s<>'"]+/
354
+ }
355
+ },
356
+ cdata: {
357
+ pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
358
+ greedy: !0
359
+ },
360
+ tag: {
361
+ pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
362
+ greedy: !0,
363
+ inside: {
364
+ tag: {
365
+ pattern: /^<\/?[^\s>\/]+/,
366
+ inside: {
367
+ punctuation: /^<\/?/,
368
+ namespace: /^[^\s>\/:]+:/
369
+ }
370
+ },
371
+ "special-attr": [],
372
+ "attr-value": {
373
+ pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
374
+ inside: { punctuation: [{
375
+ pattern: /^=/,
376
+ alias: "attr-equals"
377
+ }, {
378
+ pattern: /^(\s*)["']|["']$/,
379
+ lookbehind: !0
380
+ }] }
381
+ },
382
+ punctuation: /\/?>/,
383
+ "attr-name": {
384
+ pattern: /[^\s>\/]+/,
385
+ inside: { namespace: /^[^\s>\/:]+:/ }
386
+ }
387
+ }
388
+ },
389
+ entity: [{
390
+ pattern: /&[\da-z]{1,8};/i,
391
+ alias: "named-entity"
392
+ }, /&#x?[\da-f]{1,8};/i]
393
+ }, n.languages.markup.tag.inside["attr-value"].inside.entity = n.languages.markup.entity, n.languages.markup.doctype.inside["internal-subset"].inside = n.languages.markup, n.hooks.add("wrap", function(e) {
394
+ e.type === "entity" && (e.attributes.title = e.content.replace(/&amp;/, "&"));
395
+ }), Object.defineProperty(n.languages.markup.tag, "addInlined", { value: function(e, t) {
396
+ var r = {};
397
+ r["language-" + t] = {
398
+ pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
399
+ lookbehind: !0,
400
+ inside: n.languages[t]
401
+ }, r.cdata = /^<!\[CDATA\[|\]\]>$/i;
402
+ var i = { "included-cdata": {
403
+ pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
404
+ inside: r
405
+ } };
406
+ i["language-" + t] = {
407
+ pattern: /[\s\S]+/,
408
+ inside: n.languages[t]
409
+ };
410
+ var a = {};
411
+ a[e] = {
412
+ pattern: RegExp("(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)".replace(/__/g, function() {
413
+ return e;
414
+ }), "i"),
415
+ lookbehind: !0,
416
+ greedy: !0,
417
+ inside: i
418
+ }, n.languages.insertBefore("markup", "cdata", a);
419
+ } }), Object.defineProperty(n.languages.markup.tag, "addAttribute", { value: function(e, t) {
420
+ n.languages.markup.tag.inside["special-attr"].push({
421
+ pattern: RegExp("(^|[\"'\\s])(?:" + e + ")\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))", "i"),
422
+ lookbehind: !0,
423
+ inside: {
424
+ "attr-name": /^[^\s=]+/,
425
+ "attr-value": {
426
+ pattern: /=[\s\S]+/,
427
+ inside: {
428
+ value: {
429
+ pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
430
+ lookbehind: !0,
431
+ alias: [t, "language-" + t],
432
+ inside: n.languages[t]
433
+ },
434
+ punctuation: [{
435
+ pattern: /^=/,
436
+ alias: "attr-equals"
437
+ }, /"|'/]
438
+ }
439
+ }
440
+ }
441
+ });
442
+ } }), n.languages.html = n.languages.markup, n.languages.mathml = n.languages.markup, n.languages.svg = n.languages.markup, n.languages.xml = n.languages.extend("markup", {}), n.languages.ssml = n.languages.xml, n.languages.atom = n.languages.xml, n.languages.rss = n.languages.xml, (function(e) {
443
+ var t = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
444
+ e.languages.css = {
445
+ comment: /\/\*[\s\S]*?\*\//,
446
+ atrule: {
447
+ pattern: RegExp("@[\\w-](?:[^;{\\s\"']|\\s+(?!\\s)|" + t.source + ")*?(?:;|(?=\\s*\\{))"),
448
+ inside: {
449
+ rule: /^@[\w-]+/,
450
+ "selector-function-argument": {
451
+ pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
452
+ lookbehind: !0,
453
+ alias: "selector"
454
+ },
455
+ keyword: {
456
+ pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/,
457
+ lookbehind: !0
458
+ }
459
+ }
460
+ },
461
+ url: {
462
+ pattern: RegExp("\\burl\\((?:" + t.source + "|(?:[^\\\\\\r\\n()\"']|\\\\[\\s\\S])*)\\)", "i"),
463
+ greedy: !0,
464
+ inside: {
465
+ function: /^url/i,
466
+ punctuation: /^\(|\)$/,
467
+ string: {
468
+ pattern: RegExp("^" + t.source + "$"),
469
+ alias: "url"
470
+ }
471
+ }
472
+ },
473
+ selector: {
474
+ pattern: RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|" + t.source + ")*(?=\\s*\\{)"),
475
+ lookbehind: !0
476
+ },
477
+ string: {
478
+ pattern: t,
479
+ greedy: !0
480
+ },
481
+ property: {
482
+ pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
483
+ lookbehind: !0
484
+ },
485
+ important: /!important\b/i,
486
+ function: {
487
+ pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,
488
+ lookbehind: !0
489
+ },
490
+ punctuation: /[(){};:,]/
491
+ }, e.languages.css.atrule.inside.rest = e.languages.css;
492
+ var n = e.languages.markup;
493
+ n && (n.tag.addInlined("style", "css"), n.tag.addAttribute("style", "css"));
494
+ })(n), n.languages.clike = {
495
+ comment: [{
496
+ pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
497
+ lookbehind: !0,
498
+ greedy: !0
499
+ }, {
500
+ pattern: /(^|[^\\:])\/\/.*/,
501
+ lookbehind: !0,
502
+ greedy: !0
503
+ }],
504
+ string: {
505
+ pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
506
+ greedy: !0
507
+ },
508
+ "class-name": {
509
+ pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,
510
+ lookbehind: !0,
511
+ inside: { punctuation: /[.\\]/ }
512
+ },
513
+ keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,
514
+ boolean: /\b(?:false|true)\b/,
515
+ function: /\b\w+(?=\()/,
516
+ number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
517
+ operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
518
+ punctuation: /[{}[\];(),.:]/
519
+ }, n.languages.javascript = n.languages.extend("clike", {
520
+ "class-name": [n.languages.clike["class-name"], {
521
+ pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
522
+ lookbehind: !0
523
+ }],
524
+ keyword: [{
525
+ pattern: /((?:^|\})\s*)catch\b/,
526
+ lookbehind: !0
527
+ }, {
528
+ pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,
529
+ lookbehind: !0
530
+ }],
531
+ function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
532
+ number: {
533
+ pattern: RegExp("(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])"),
534
+ lookbehind: !0
535
+ },
536
+ operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/
537
+ }), n.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, n.languages.insertBefore("javascript", "keyword", {
538
+ regex: {
539
+ pattern: RegExp("((?:^|[^$\\w\\xA0-\\uFFFF.\"'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))"),
540
+ lookbehind: !0,
541
+ greedy: !0,
542
+ inside: {
543
+ "regex-source": {
544
+ pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
545
+ lookbehind: !0,
546
+ alias: "language-regex",
547
+ inside: n.languages.regex
548
+ },
549
+ "regex-delimiter": /^\/|\/$/,
550
+ "regex-flags": /^[a-z]+$/
551
+ }
552
+ },
553
+ "function-variable": {
554
+ pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,
555
+ alias: "function"
556
+ },
557
+ parameter: [
558
+ {
559
+ pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
560
+ lookbehind: !0,
561
+ inside: n.languages.javascript
562
+ },
563
+ {
564
+ pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
565
+ lookbehind: !0,
566
+ inside: n.languages.javascript
567
+ },
568
+ {
569
+ pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
570
+ lookbehind: !0,
571
+ inside: n.languages.javascript
572
+ },
573
+ {
574
+ pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,
575
+ lookbehind: !0,
576
+ inside: n.languages.javascript
577
+ }
578
+ ],
579
+ constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/
580
+ }), n.languages.insertBefore("javascript", "string", {
581
+ hashbang: {
582
+ pattern: /^#!.*/,
583
+ greedy: !0,
584
+ alias: "comment"
585
+ },
586
+ "template-string": {
587
+ pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,
588
+ greedy: !0,
589
+ inside: {
590
+ "template-punctuation": {
591
+ pattern: /^`|`$/,
592
+ alias: "string"
593
+ },
594
+ interpolation: {
595
+ pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
596
+ lookbehind: !0,
597
+ inside: {
598
+ "interpolation-punctuation": {
599
+ pattern: /^\$\{|\}$/,
600
+ alias: "punctuation"
601
+ },
602
+ rest: n.languages.javascript
603
+ }
604
+ },
605
+ string: /[\s\S]+/
606
+ }
607
+ },
608
+ "string-property": {
609
+ pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,
610
+ lookbehind: !0,
611
+ greedy: !0,
612
+ alias: "property"
613
+ }
614
+ }), n.languages.insertBefore("javascript", "operator", { "literal-property": {
615
+ pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,
616
+ lookbehind: !0,
617
+ alias: "property"
618
+ } }), n.languages.markup && (n.languages.markup.tag.addInlined("script", "javascript"), n.languages.markup.tag.addAttribute("on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)", "javascript")), n.languages.js = n.languages.javascript, (function() {
619
+ if (n === void 0 || typeof document > "u") return;
620
+ Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
621
+ var e = "Loading…", t = function(e, t) {
622
+ return "✖ Error " + e + " while fetching file: " + t;
623
+ }, r = "✖ Error: File does not exist or is empty", i = {
624
+ js: "javascript",
625
+ py: "python",
626
+ rb: "ruby",
627
+ ps1: "powershell",
628
+ psm1: "powershell",
629
+ sh: "bash",
630
+ bat: "batch",
631
+ h: "c",
632
+ tex: "latex"
633
+ }, a = "data-src-status", o = "loading", s = "loaded", c = "failed", l = "pre[data-src]:not([" + a + "=\"" + s + "\"]):not([" + a + "=\"" + o + "\"])";
634
+ function u(e, n, i) {
635
+ var a = new XMLHttpRequest();
636
+ a.open("GET", e, !0), a.onreadystatechange = function() {
637
+ a.readyState == 4 && (a.status < 400 && a.responseText ? n(a.responseText) : a.status >= 400 ? i(t(a.status, a.statusText)) : i(r));
638
+ }, a.send(null);
639
+ }
640
+ function d(e) {
641
+ var t = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e || "");
642
+ if (t) {
643
+ var n = Number(t[1]), r = t[2], i = t[3];
644
+ return r ? i ? [n, Number(i)] : [n, void 0] : [n, n];
645
+ }
646
+ }
647
+ n.hooks.add("before-highlightall", function(e) {
648
+ e.selector += ", " + l;
649
+ }), n.hooks.add("before-sanity-check", function(t) {
650
+ var r = t.element;
651
+ if (r.matches(l)) {
652
+ t.code = "", r.setAttribute(a, o);
653
+ var f = r.appendChild(document.createElement("CODE"));
654
+ f.textContent = e;
655
+ var p = r.getAttribute("data-src"), m = t.language;
656
+ if (m === "none") {
657
+ var h = (/\.(\w+)$/.exec(p) || [, "none"])[1];
658
+ m = i[h] || h;
659
+ }
660
+ n.util.setLanguage(f, m), n.util.setLanguage(r, m);
661
+ var g = n.plugins.autoloader;
662
+ g && g.loadLanguages(m), u(p, function(e) {
663
+ r.setAttribute(a, s);
664
+ var t = d(r.getAttribute("data-range"));
665
+ if (t) {
666
+ var i = e.split(/\r\n?|\n/g), o = t[0], c = t[1] == null ? i.length : t[1];
667
+ o < 0 && (o += i.length), o = Math.max(0, Math.min(o - 1, i.length)), c < 0 && (c += i.length), c = Math.max(0, Math.min(c, i.length)), e = i.slice(o, c).join("\n"), r.hasAttribute("data-start") || r.setAttribute("data-start", String(o + 1));
668
+ }
669
+ f.textContent = e, n.highlightElement(f);
670
+ }, function(e) {
671
+ r.setAttribute(a, c), f.textContent = e;
672
+ });
673
+ }
674
+ }), n.plugins.fileHighlight = { highlight: function(e) {
675
+ for (var t = (e || document).querySelectorAll(l), r = 0, i; i = t[r++];) n.highlightElement(i);
676
+ } };
677
+ var f = !1;
678
+ n.fileHighlight = function() {
679
+ f ||= (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), !0), n.plugins.fileHighlight.highlight.apply(this, arguments);
680
+ };
681
+ })();
682
+ })))(), 1), oe = /*#__PURE__*/ L(/* @__PURE__ */ c({
683
+ __name: "CodeBlock",
684
+ props: {
685
+ codeBlockIndex: {
686
+ type: Number,
687
+ default: 1
688
+ },
689
+ lines: {
690
+ type: Array,
691
+ required: !0
692
+ },
693
+ lang: {
694
+ type: String,
695
+ default: "plaintext"
696
+ },
697
+ isSingleLine: {
698
+ type: Boolean,
699
+ default: !1
700
+ }
701
+ },
702
+ setup(e) {
703
+ R.default.manual = !0;
704
+ let r = e, i = f(!1);
705
+ function a(e) {
706
+ i.value = !0, R.default.languages[e.language] || console.warn(`Prism: the language “${e.language}” isn’t enabled.`), e.preElement.classList.contains(`language-${e.language}`) || e.preElement.classList.add(`language-${e.language}`), e.codeElement.innerHTML = o(e.code), R.default.highlightElement(e.codeElement), i.value = !1;
707
+ }
708
+ let o = (e) => e.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll("\"", "&quot;").replaceAll("'", "&#039;"), s = t(() => `document-code-block-${r.codeBlockIndex}`), c = t(() => {
709
+ let e = r.lines?.flatMap((e) => e.text)?.join("") || "";
710
+ return e.endsWith("\n") && !r.isSingleLine ? e.slice(0, -1) : e;
711
+ });
712
+ return v(() => r.lang, async () => {
713
+ try {
714
+ await Promise.all([
715
+ import("./prism-bash.min-BSY2OtLX.js"),
716
+ import("./prism-css.min-Dvuxzq5c.js"),
717
+ import("./prism-docker.min-Ch3_J8xI.js"),
718
+ import("./prism-go.min-DpuveEXM.js"),
719
+ import("./prism-http.min-BDgs53mG.js"),
720
+ import("./prism-javascript.min-TTu9gTO1.js"),
721
+ import("./prism-jq.min-wjT5eiX4.js"),
722
+ import("./prism-json.min-BRMWDas8.js"),
723
+ import("./prism-log.min-CcmZYCOq.js"),
724
+ import("./prism-lua.min-CL-6tP_v.js"),
725
+ import("./prism-makefile.min-CfFQPrwo.js"),
726
+ import("./prism-markdown.min-CHFT4_Ei.js"),
727
+ import("./prism-python.min-BMa8XQns.js"),
728
+ import("./prism-regex.min-KRUvJnhz.js"),
729
+ import("./prism-rust.min-D7QzzLfK.js"),
730
+ import("./prism-rest.min-C38D2pbN.js"),
731
+ import("./prism-scss.min-Bg9jNB2R.js"),
732
+ import("./prism-sql.min-BufanzXb.js"),
733
+ import("./prism-typescript.min-Ck6Xh8q0.js"),
734
+ import("./prism-yaml.min-CkLxSivi.js"),
735
+ import("./prism-xml-doc.min-CcH35smE.js")
736
+ ]);
737
+ } catch {
738
+ console.warn("Could not import PrismJS language file.");
739
+ }
740
+ R.default.highlightAll();
741
+ }, { immediate: !0 }), (t, r) => {
742
+ let o = m("KCodeBlock");
743
+ return d(), n(o, {
744
+ id: s.value,
745
+ class: "document-code-block",
746
+ code: c.value,
747
+ language: e.lang,
748
+ processing: i.value,
749
+ "single-line": e.isSingleLine,
750
+ theme: "light",
751
+ onCodeBlockRender: a
752
+ }, null, 8, [
753
+ "id",
754
+ "code",
755
+ "language",
756
+ "processing",
757
+ "single-line"
758
+ ]);
759
+ };
760
+ }
761
+ }), [["__scopeId", "data-v-116da7e2"]]), se = /* @__PURE__ */ c({
762
+ __name: "Emphasis",
763
+ props: { level: {
764
+ type: Number,
765
+ default: 1,
766
+ validator(e) {
767
+ if (!Number.isInteger(e)) return !1;
768
+ let t = e;
769
+ return t > 0 && t < 3;
770
+ }
771
+ } },
772
+ setup(e) {
773
+ let t = e.level === 1 ? "em" : "strong";
774
+ return (e, r) => (d(), n(h(_(t)), null, {
775
+ default: y(() => [p(e.$slots, "default")]),
776
+ _: 3
777
+ }));
778
+ }
779
+ }), z = /*#__PURE__*/ L(/* @__PURE__ */ c({
780
+ __name: "Heading",
781
+ props: {
782
+ level: {
783
+ type: Number,
784
+ validator(e) {
785
+ if (!Number.isInteger(e)) return !1;
786
+ let t = e;
787
+ return t > 0 && t < 7;
788
+ },
789
+ default: 1
790
+ },
791
+ slug: {
792
+ type: String,
793
+ default: ""
794
+ }
795
+ },
796
+ setup(e) {
797
+ let t = e, r = `${t.slug}`, i = `h${t.level}`;
798
+ return (e, t) => (d(), n(h(i), { id: r }, {
799
+ default: y(() => [p(e.$slots, "default", {}, void 0, !0)]),
800
+ _: 3
801
+ }));
802
+ }
803
+ }), [["__scopeId", "data-v-2c4c210c"]]), B = [
804
+ "alt",
805
+ "src",
806
+ "title"
807
+ ], V = /*#__PURE__*/ L(/* @__PURE__ */ c({
808
+ __name: "Image",
809
+ props: {
810
+ url: {
811
+ type: String,
812
+ required: !0
813
+ },
814
+ alt: {
815
+ type: String,
816
+ default: ""
817
+ },
818
+ title: {
819
+ type: String,
820
+ default: ""
821
+ }
822
+ },
823
+ setup(e) {
824
+ return (t, n) => (d(), i("img", {
825
+ alt: e.alt,
826
+ src: e.url,
827
+ title: e.title
828
+ }, null, 8, B));
829
+ }
830
+ }), [["__scopeId", "data-v-13314abe"]]), H = {};
831
+ function U(e, t) {
832
+ return d(), i("hr");
833
+ }
834
+ var W = /*#__PURE__*/ L(H, [["render", U], ["__scopeId", "data-v-a17c1200"]]), G = {};
835
+ function K(e, t) {
836
+ return d(), i("s", null, [p(e.$slots, "default")]);
837
+ }
838
+ var ce = /*#__PURE__*/ L(G, [["render", K]]), le = {};
839
+ function ue(e, t) {
840
+ return d(), i("table", null, [p(e.$slots, "default", {}, void 0, !0)]);
841
+ }
842
+ var de = /*#__PURE__*/ L(le, [["render", ue], ["__scopeId", "data-v-ebdb90e2"]]), q = /*#__PURE__*/ L(/* @__PURE__ */ c({
843
+ __name: "TableRow",
844
+ props: { section: {
845
+ type: String,
846
+ default: j.body
847
+ } },
848
+ setup(e) {
849
+ let t = e, r;
850
+ return t.section === j.header ? r = "thead" : t.section === j.body ? r = "tbody" : t.section === j.footer && (r = "tfoot"), (e, t) => (d(), n(h(_(r)), null, {
851
+ default: y(() => [a("tr", null, [p(e.$slots, "default", {}, void 0, !0)])]),
852
+ _: 3
853
+ }));
854
+ }
855
+ }), [["__scopeId", "data-v-212b210d"]]), fe = /*#__PURE__*/ L(/* @__PURE__ */ c({
856
+ __name: "TableCell",
857
+ props: {
858
+ alignment: {
859
+ type: String,
860
+ default: M.left
861
+ },
862
+ parent: {
863
+ type: Object,
864
+ required: !0
865
+ }
866
+ },
867
+ setup(e) {
868
+ let t = e, r = t.parent?.section === j.header ? "th" : "td", i;
869
+ return t.alignment === M.center ? i = "align-center" : t.alignment === M.right && (i = "align-right"), (e, t) => (d(), n(h(_(r)), { class: u(_(i)) }, {
870
+ default: y(() => [p(e.$slots, "default", {}, void 0, !0)]),
871
+ _: 3
872
+ }, 8, ["class"]));
873
+ }
874
+ }), [["__scopeId", "data-v-f415aa3f"]]), pe = ["checked"], me = /* @__PURE__ */ c({
875
+ __name: "TaskCheckbox",
876
+ props: { checked: { type: Boolean } },
877
+ setup(e) {
878
+ let t = f(e.checked);
879
+ return (e, n) => (d(), i("input", {
880
+ "aria-label": "Display-only checkbox for task",
881
+ checked: t.value,
882
+ type: "checkbox"
883
+ }, null, 8, pe));
884
+ }
885
+ }), he = { key: 0 }, ge = { key: 1 }, _e = /* @__PURE__ */ c({
886
+ inheritAttrs: !1,
887
+ __name: "Text",
888
+ props: {
889
+ text: {
890
+ type: String,
891
+ required: !0
892
+ },
893
+ appendSpace: {
894
+ type: Boolean,
895
+ default: !1
896
+ },
897
+ hardBreak: {
898
+ type: Boolean,
899
+ default: !1
900
+ }
901
+ },
902
+ setup(t) {
903
+ return (n, a) => (d(), i(e, null, [
904
+ o(g(t.text), 1),
905
+ t.appendSpace ? (d(), i("span", he, "\xA0")) : r("", !0),
906
+ t.hardBreak ? (d(), i("br", ge)) : r("", !0)
907
+ ], 64));
908
+ }
909
+ }), ve = {};
910
+ function ye(e, t) {
911
+ return d(), i("span", null, [p(e.$slots, "default")]);
912
+ }
913
+ var be = /*#__PURE__*/ L(ve, [["render", ye]]), xe = {};
914
+ function Se(e, t) {
915
+ return d(), i("p", null, [p(e.$slots, "default", {}, void 0, !0)]);
916
+ }
917
+ var Ce = /*#__PURE__*/ L(xe, [["render", Se], ["__scopeId", "data-v-c4466049"]]), we = /*#__PURE__*/ L(/* @__PURE__ */ c({
918
+ __name: "List",
919
+ props: {
920
+ isOrdered: {
921
+ type: Boolean,
922
+ default: !1
923
+ },
924
+ hasTaskItems: {
925
+ type: Boolean,
926
+ default: !1
927
+ }
928
+ },
929
+ setup(e) {
930
+ let t = e.isOrdered ? "ol" : "ul";
931
+ return (r, i) => (d(), n(h(_(t)), { class: u({ "has-task-items": e.hasTaskItems }) }, {
932
+ default: y(() => [p(r.$slots, "default", {}, void 0, !0)]),
933
+ _: 3
934
+ }, 8, ["class"]));
935
+ }
936
+ }), [["__scopeId", "data-v-d8f4c3cb"]]), Te = {};
937
+ function Ee(e, t) {
938
+ return d(), i("li", null, [p(e.$slots, "default", {}, void 0, !0)]);
939
+ }
940
+ var De = /*#__PURE__*/ L(Te, [["render", Ee], ["__scopeId", "data-v-4f70a0ca"]]), Oe = ["href", "title"], ke = {
941
+ blockquote: ne,
942
+ code: ae,
943
+ code_block: oe,
944
+ emphasis: se,
945
+ heading: z,
946
+ image: V,
947
+ break: W,
948
+ link: /* @__PURE__ */ L(/* @__PURE__ */ c({
949
+ __name: "Link",
950
+ props: {
951
+ href: {
952
+ type: String,
953
+ required: !0
954
+ },
955
+ title: {
956
+ type: String,
957
+ default: ""
958
+ }
959
+ },
960
+ setup(e) {
961
+ return (t, n) => (d(), i("a", {
962
+ class: "noZensmooth",
963
+ href: e.href,
964
+ rel: "noreferrer noopener nofollow",
965
+ title: e.title
966
+ }, [p(t.$slots, "default", {}, void 0, !0)], 8, Oe));
967
+ }
968
+ }), [["__scopeId", "data-v-9be3ce74"]]),
969
+ list: we,
970
+ list_item: De,
971
+ paragraph: Ce,
972
+ strikethrough: ce,
973
+ table: de,
974
+ table_header: q,
975
+ table_row: q,
976
+ table_cell: fe,
977
+ task_checkbox: me,
978
+ text: _e,
979
+ text_block: be
980
+ }, J = [];
981
+ function Ae(e) {
982
+ J.indexOf(e) === -1 && (J.push(e), console.warn(`[DocumentViewer] Unable to render an unknown node type "${e}"`));
983
+ }
984
+ function Y(e, t) {
985
+ return e.map((e, n) => {
986
+ if (!e) return null;
987
+ let { type: r, children: i, ...a } = e, o = ke[e.type];
988
+ if (!o) return Ae(r), null;
989
+ if (N(e) && (e.section = j.header), I(e)) {
990
+ let n = e.children?.some((e) => e.children?.some((e) => e.children?.some((e) => e.type === "task_checkbox")));
991
+ return s(o, l({ hasTaskItems: n }, a, { parent: t }), { default: () => i && Y(i, e) });
992
+ }
993
+ return e?.type === "code_block" ? s(o, l(a, {
994
+ lines: i,
995
+ isSingleLine: i?.length && i.length === 1,
996
+ codeBlockIndex: n
997
+ }), null) : s(o, l(a, { parent: t }), { default: () => i && Y(i, e) });
998
+ });
999
+ }
1000
+ var X = { documentViewer: {
1001
+ error: "Error: Markdown content missing",
1002
+ "ANOTHER-key": "ok"
1003
+ } };
1004
+ // src/composables/useI18n.ts
1005
+ function je() {
1006
+ let e = b("en-us", X);
1007
+ return {
1008
+ i18n: e,
1009
+ i18nT: x(e)
1010
+ };
1011
+ }
1012
+ // src/composables/useUtilities.ts
1013
+ function Me() {
1014
+ return { hasRequiredProps: (e, t) => {
1015
+ let n = !0;
1016
+ return e.forEach((e) => {
1017
+ t.forEach((t) => {
1018
+ e[t] || (n = !1);
1019
+ });
1020
+ }), n;
1021
+ } };
1022
+ }
1023
+ // src/composables/index.ts
1024
+ var Ne = {
1025
+ useI18n: je,
1026
+ useUtilities: Me
13
1027
  };
1028
+ // src/utils/toSlug.ts
1029
+ function Z(e, t = "") {
1030
+ return e.toLowerCase().trim().replace(/ /g, "-").replace(/[^\w-]+/g, "") + t;
1031
+ }
1032
+ // src/utils/addUniqueHeadingSlugs.ts
1033
+ function Q(e, t = /* @__PURE__ */ new Map()) {
1034
+ if (!e) return e;
1035
+ let n = t || /* @__PURE__ */ new Map();
1036
+ return e.map((e) => F(e) ? $(e, t) : (e.children &&= Q(e.children, n), e));
1037
+ }
1038
+ function $(e, t, n = "doc-heading-") {
1039
+ let r = e.children?.[0], i = `level-${e.level}`, a = P(r) && r.text || i, o = (t.get(a) || 0) + 1;
1040
+ t.set(a, o);
1041
+ let s = n + Z(a, o > 1 ? `-${o}` : "");
1042
+ return {
1043
+ ...e,
1044
+ slug: s
1045
+ };
1046
+ }
1047
+ // src/components/DocumentViewer.vue?vue&type=script&setup=true&lang.ts
1048
+ var Pe = {
1049
+ class: "document-viewer",
1050
+ "data-testid": "document-viewer"
1051
+ }, Fe = {
1052
+ key: 1,
1053
+ "data-testid": "document-viewer-error"
1054
+ }, Ie = /* @__PURE__ */ L(/* @__PURE__ */ c({
1055
+ __name: "DocumentViewer",
1056
+ props: { document: {
1057
+ type: Object,
1058
+ required: !0
1059
+ } },
1060
+ setup(e) {
1061
+ let r = e, { i18n: a } = Ne.useI18n(), o = (e) => !e || Object.keys(e).length === 0 && e.constructor === Object, s = t(() => !o(r.document)), c = Q(r.document?.children), l = () => r.document?.children ? Y(c) : null;
1062
+ return (e, t) => (d(), i("div", Pe, [s.value ? (d(), n(l, { key: 0 })) : (d(), i("div", Fe, g(_(a).t("documentViewer.error")), 1))]));
1063
+ }
1064
+ }), [["__scopeId", "data-v-b3c05df4"]]);
1065
+ export { M as TableCellAlign, j as TableRowSection, $ as addSlug, Q as addUniqueHeadingSlugs, Ie as default, F as isHeadingNode, I as isListNode, N as isTableHeaderNode, P as isTextNode, Z as toSlug };