@burdenoff/fe-libs 2026.720.1 → 2026.720.2

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 (72) hide show
  1. package/dist/node_modules/ccount/index.js +10 -0
  2. package/dist/node_modules/hast-util-sanitize/lib/index.js +161 -0
  3. package/dist/node_modules/hast-util-sanitize/lib/schema.js +74 -0
  4. package/dist/node_modules/longest-streak/index.js +9 -0
  5. package/dist/node_modules/markdown-table/index.js +59 -0
  6. package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +61 -0
  7. package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +7 -0
  8. package/dist/node_modules/mdast-util-gfm/lib/index.js +26 -0
  9. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +129 -0
  10. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +97 -0
  11. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +49 -0
  12. package/dist/node_modules/mdast-util-gfm-table/lib/index.js +137 -0
  13. package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +58 -0
  14. package/dist/node_modules/mdast-util-phrasing/lib/index.js +22 -0
  15. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +12 -0
  16. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +9 -0
  17. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +36 -0
  18. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +24 -0
  19. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +25 -0
  20. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +24 -0
  21. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +10 -0
  22. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +23 -0
  23. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +28 -0
  24. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +44 -0
  25. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +19 -0
  26. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +23 -0
  27. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +41 -0
  28. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +18 -0
  29. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +26 -0
  30. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +7 -0
  31. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +9 -0
  32. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +25 -0
  33. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +6 -0
  34. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +9 -0
  35. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +8 -0
  36. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +11 -0
  37. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +8 -0
  38. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +8 -0
  39. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +8 -0
  40. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +8 -0
  41. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +8 -0
  42. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +8 -0
  43. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +8 -0
  44. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +8 -0
  45. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +6 -0
  46. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +38 -0
  47. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +6 -0
  48. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +11 -0
  49. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +8 -0
  50. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +12 -0
  51. package/dist/node_modules/micromark-extension-gfm/index.js +18 -0
  52. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +174 -0
  53. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +193 -0
  54. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +96 -0
  55. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +43 -0
  56. package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +20 -0
  57. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +201 -0
  58. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +34 -0
  59. package/dist/node_modules/rehype-sanitize/lib/index.js +9 -0
  60. package/dist/node_modules/remark-gfm/lib/index.js +10 -0
  61. package/dist/shared/components/Markdown.d.ts +22 -0
  62. package/dist/shared/components/Markdown.d.ts.map +1 -0
  63. package/dist/shared/components/Markdown.js +38 -0
  64. package/dist/shared/components/index.d.ts +2 -0
  65. package/dist/shared/components/index.d.ts.map +1 -1
  66. package/dist/shared/graphql/fetch.d.ts.map +1 -1
  67. package/dist/shared/pages/LegalPage.js +1 -1
  68. package/dist/shared-components.js +2 -1
  69. package/dist/shared.js +59 -58
  70. package/package.json +7 -1
  71. package/dist/shared/components/LegalPage.d.ts +0 -19
  72. package/dist/shared/components/LegalPage.d.ts.map +0 -1
@@ -0,0 +1,137 @@
1
+ import "../../devlop/lib/default.js";
2
+ import { markdownTable as e } from "../../markdown-table/index.js";
3
+ import { handle as t } from "../../mdast-util-to-markdown/lib/handle/index.js";
4
+ //#region node_modules/mdast-util-gfm-table/lib/index.js
5
+ function n() {
6
+ return {
7
+ enter: {
8
+ table: r,
9
+ tableData: s,
10
+ tableHeader: s,
11
+ tableRow: a
12
+ },
13
+ exit: {
14
+ codeText: c,
15
+ table: i,
16
+ tableData: o,
17
+ tableHeader: o,
18
+ tableRow: o
19
+ }
20
+ };
21
+ }
22
+ function r(e) {
23
+ let t = e._align;
24
+ this.enter({
25
+ type: "table",
26
+ align: t.map(function(e) {
27
+ return e === "none" ? null : e;
28
+ }),
29
+ children: []
30
+ }, e), this.data.inTable = !0;
31
+ }
32
+ function i(e) {
33
+ this.exit(e), this.data.inTable = void 0;
34
+ }
35
+ function a(e) {
36
+ this.enter({
37
+ type: "tableRow",
38
+ children: []
39
+ }, e);
40
+ }
41
+ function o(e) {
42
+ this.exit(e);
43
+ }
44
+ function s(e) {
45
+ this.enter({
46
+ type: "tableCell",
47
+ children: []
48
+ }, e);
49
+ }
50
+ function c(e) {
51
+ let t = this.resume();
52
+ this.data.inTable && (t = t.replace(/\\([\\|])/g, l));
53
+ let n = this.stack[this.stack.length - 1];
54
+ n.type, n.value = t, this.exit(e);
55
+ }
56
+ function l(e, t) {
57
+ return t === "|" ? t : e;
58
+ }
59
+ function u(n) {
60
+ let r = n || {}, i = r.tableCellPadding, a = r.tablePipeAlign, o = r.stringLength, s = i ? " " : "|";
61
+ return {
62
+ unsafe: [
63
+ {
64
+ character: "\r",
65
+ inConstruct: "tableCell"
66
+ },
67
+ {
68
+ character: "\n",
69
+ inConstruct: "tableCell"
70
+ },
71
+ {
72
+ atBreak: !0,
73
+ character: "|",
74
+ after: "[ :-]"
75
+ },
76
+ {
77
+ character: "|",
78
+ inConstruct: "tableCell"
79
+ },
80
+ {
81
+ atBreak: !0,
82
+ character: ":",
83
+ after: "-"
84
+ },
85
+ {
86
+ atBreak: !0,
87
+ character: "-",
88
+ after: "[:|-]"
89
+ }
90
+ ],
91
+ handlers: {
92
+ inlineCode: m,
93
+ table: c,
94
+ tableCell: u,
95
+ tableRow: l
96
+ }
97
+ };
98
+ function c(e, t, n, r) {
99
+ return d(f(e, n, r), e.align);
100
+ }
101
+ function l(e, t, n, r) {
102
+ let i = d([p(e, n, r)]);
103
+ return i.slice(0, i.indexOf("\n"));
104
+ }
105
+ function u(e, t, n, r) {
106
+ let i = n.enter("tableCell"), a = n.enter("phrasing"), o = n.containerPhrasing(e, {
107
+ ...r,
108
+ before: s,
109
+ after: s
110
+ });
111
+ return a(), i(), o;
112
+ }
113
+ function d(t, n) {
114
+ return e(t, {
115
+ align: n,
116
+ alignDelimiters: a,
117
+ padding: i,
118
+ stringLength: o
119
+ });
120
+ }
121
+ function f(e, t, n) {
122
+ let r = e.children, i = -1, a = [], o = t.enter("table");
123
+ for (; ++i < r.length;) a[i] = p(r[i], t, n);
124
+ return o(), a;
125
+ }
126
+ function p(e, t, n) {
127
+ let r = e.children, i = -1, a = [], o = t.enter("tableRow");
128
+ for (; ++i < r.length;) a[i] = u(r[i], e, t, n);
129
+ return o(), a;
130
+ }
131
+ function m(e, n, r) {
132
+ let i = t.inlineCode(e, n, r);
133
+ return r.stack.includes("tableCell") && (i = i.replace(/\|/g, "\\$&")), i;
134
+ }
135
+ }
136
+ //#endregion
137
+ export { n as gfmTableFromMarkdown, u as gfmTableToMarkdown };
@@ -0,0 +1,58 @@
1
+ import "../../devlop/lib/default.js";
2
+ import { handle as e } from "../../mdast-util-to-markdown/lib/handle/index.js";
3
+ //#region node_modules/mdast-util-gfm-task-list-item/lib/index.js
4
+ function t() {
5
+ return { exit: {
6
+ taskListCheckValueChecked: r,
7
+ taskListCheckValueUnchecked: r,
8
+ paragraph: i
9
+ } };
10
+ }
11
+ function n() {
12
+ return {
13
+ unsafe: [{
14
+ atBreak: !0,
15
+ character: "-",
16
+ after: "[:|-]"
17
+ }],
18
+ handlers: { listItem: a }
19
+ };
20
+ }
21
+ function r(e) {
22
+ let t = this.stack[this.stack.length - 2];
23
+ t.type, t.checked = e.type === "taskListCheckValueChecked";
24
+ }
25
+ function i(e) {
26
+ let t = this.stack[this.stack.length - 2];
27
+ if (t && t.type === "listItem" && typeof t.checked == "boolean") {
28
+ let e = this.stack[this.stack.length - 1];
29
+ e.type;
30
+ let n = e.children[0];
31
+ if (n && n.type === "text") {
32
+ let r = t.children, i = -1, a;
33
+ for (; ++i < r.length;) {
34
+ let e = r[i];
35
+ if (e.type === "paragraph") {
36
+ a = e;
37
+ break;
38
+ }
39
+ }
40
+ a === e && (n.value = n.value.slice(1), n.value.length === 0 ? e.children.shift() : e.position && n.position && typeof n.position.start.offset == "number" && (n.position.start.column++, n.position.start.offset++, e.position.start = Object.assign({}, n.position.start)));
41
+ }
42
+ }
43
+ this.exit(e);
44
+ }
45
+ function a(t, n, r, i) {
46
+ let a = t.children[0], o = typeof t.checked == "boolean" && a && a.type === "paragraph", s = "[" + (t.checked ? "x" : " ") + "] ", c = r.createTracker(i);
47
+ o && c.move(s);
48
+ let l = e.listItem(t, n, r, {
49
+ ...i,
50
+ ...c.current()
51
+ });
52
+ return o && (l = l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/, u)), l;
53
+ function u(e) {
54
+ return e + s;
55
+ }
56
+ }
57
+ //#endregion
58
+ export { t as gfmTaskListItemFromMarkdown, n as gfmTaskListItemToMarkdown };
@@ -0,0 +1,22 @@
1
+ import { convert as e } from "../../unist-util-is/lib/index.js";
2
+ //#region node_modules/mdast-util-phrasing/lib/index.js
3
+ var t = e([
4
+ "break",
5
+ "delete",
6
+ "emphasis",
7
+ "footnote",
8
+ "footnoteReference",
9
+ "image",
10
+ "imageReference",
11
+ "inlineCode",
12
+ "inlineMath",
13
+ "link",
14
+ "linkReference",
15
+ "mdxJsxTextElement",
16
+ "mdxTextExpression",
17
+ "strong",
18
+ "text",
19
+ "textDirective"
20
+ ]);
21
+ //#endregion
22
+ export { t as phrasing };
@@ -0,0 +1,12 @@
1
+ //#region node_modules/mdast-util-to-markdown/lib/handle/blockquote.js
2
+ function e(e, n, r, i) {
3
+ let a = r.enter("blockquote"), o = r.createTracker(i);
4
+ o.move("> "), o.shift(2);
5
+ let s = r.indentLines(r.containerFlow(e, o.current()), t);
6
+ return a(), s;
7
+ }
8
+ function t(e, t, n) {
9
+ return ">" + (n ? "" : " ") + e;
10
+ }
11
+ //#endregion
12
+ export { e as blockquote };
@@ -0,0 +1,9 @@
1
+ import { patternInScope as e } from "../util/pattern-in-scope.js";
2
+ //#region node_modules/mdast-util-to-markdown/lib/handle/break.js
3
+ function t(t, n, r, i) {
4
+ let a = -1;
5
+ for (; ++a < r.unsafe.length;) if (r.unsafe[a].character === "\n" && e(r.stack, r.unsafe[a])) return /[ \t]/.test(i.before) ? "" : " ";
6
+ return "\\\n";
7
+ }
8
+ //#endregion
9
+ export { t as hardBreak };
@@ -0,0 +1,36 @@
1
+ import { longestStreak as e } from "../../../longest-streak/index.js";
2
+ import { formatCodeAsIndented as t } from "../util/format-code-as-indented.js";
3
+ import { checkFence as n } from "../util/check-fence.js";
4
+ //#region node_modules/mdast-util-to-markdown/lib/handle/code.js
5
+ function r(r, a, o, s) {
6
+ let c = n(o), l = r.value || "", u = c === "`" ? "GraveAccent" : "Tilde";
7
+ if (t(r, o)) {
8
+ let e = o.enter("codeIndented"), t = o.indentLines(l, i);
9
+ return e(), t;
10
+ }
11
+ let d = o.createTracker(s), f = c.repeat(Math.max(e(l, c) + 1, 3)), p = o.enter("codeFenced"), m = d.move(f);
12
+ if (r.lang) {
13
+ let e = o.enter(`codeFencedLang${u}`);
14
+ m += d.move(o.safe(r.lang, {
15
+ before: m,
16
+ after: " ",
17
+ encode: ["`"],
18
+ ...d.current()
19
+ })), e();
20
+ }
21
+ if (r.lang && r.meta) {
22
+ let e = o.enter(`codeFencedMeta${u}`);
23
+ m += d.move(" "), m += d.move(o.safe(r.meta, {
24
+ before: m,
25
+ after: "\n",
26
+ encode: ["`"],
27
+ ...d.current()
28
+ })), e();
29
+ }
30
+ return m += d.move("\n"), l && (m += d.move(l + "\n")), m += d.move(f), p(), m;
31
+ }
32
+ function i(e, t, n) {
33
+ return (n ? "" : " ") + e;
34
+ }
35
+ //#endregion
36
+ export { r as code };
@@ -0,0 +1,24 @@
1
+ import { checkQuote as e } from "../util/check-quote.js";
2
+ //#region node_modules/mdast-util-to-markdown/lib/handle/definition.js
3
+ function t(t, n, r, i) {
4
+ let a = e(r), o = a === "\"" ? "Quote" : "Apostrophe", s = r.enter("definition"), c = r.enter("label"), l = r.createTracker(i), u = l.move("[");
5
+ return u += l.move(r.safe(r.associationId(t), {
6
+ before: u,
7
+ after: "]",
8
+ ...l.current()
9
+ })), u += l.move("]: "), c(), !t.url || /[\0- \u007F]/.test(t.url) ? (c = r.enter("destinationLiteral"), u += l.move("<"), u += l.move(r.safe(t.url, {
10
+ before: u,
11
+ after: ">",
12
+ ...l.current()
13
+ })), u += l.move(">")) : (c = r.enter("destinationRaw"), u += l.move(r.safe(t.url, {
14
+ before: u,
15
+ after: t.title ? " " : "\n",
16
+ ...l.current()
17
+ }))), c(), t.title && (c = r.enter(`title${o}`), u += l.move(" " + a), u += l.move(r.safe(t.title, {
18
+ before: u,
19
+ after: a,
20
+ ...l.current()
21
+ })), u += l.move(a), c()), s(), u;
22
+ }
23
+ //#endregion
24
+ export { t as definition };
@@ -0,0 +1,25 @@
1
+ import { checkEmphasis as e } from "../util/check-emphasis.js";
2
+ import { encodeCharacterReference as t } from "../util/encode-character-reference.js";
3
+ import { encodeInfo as n } from "../util/encode-info.js";
4
+ //#region node_modules/mdast-util-to-markdown/lib/handle/emphasis.js
5
+ r.peek = i;
6
+ function r(r, i, a, o) {
7
+ let s = e(a), c = a.enter("emphasis"), l = a.createTracker(o), u = l.move(s), d = l.move(a.containerPhrasing(r, {
8
+ after: s,
9
+ before: u,
10
+ ...l.current()
11
+ })), f = d.charCodeAt(0), p = n(o.before.charCodeAt(o.before.length - 1), f, s);
12
+ p.inside && (d = t(f) + d.slice(1));
13
+ let m = d.charCodeAt(d.length - 1), h = n(o.after.charCodeAt(0), m, s);
14
+ h.inside && (d = d.slice(0, -1) + t(m));
15
+ let g = l.move(s);
16
+ return c(), a.attentionEncodeSurroundingInfo = {
17
+ after: h.outside,
18
+ before: p.outside
19
+ }, u + d + g;
20
+ }
21
+ function i(e, t, n) {
22
+ return n.options.emphasis || "*";
23
+ }
24
+ //#endregion
25
+ export { r as emphasis };
@@ -0,0 +1,24 @@
1
+ import { encodeCharacterReference as e } from "../util/encode-character-reference.js";
2
+ import { formatHeadingAsSetext as t } from "../util/format-heading-as-setext.js";
3
+ //#region node_modules/mdast-util-to-markdown/lib/handle/heading.js
4
+ function n(n, r, i, a) {
5
+ let o = Math.max(Math.min(6, n.depth || 1), 1), s = i.createTracker(a);
6
+ if (t(n, i)) {
7
+ let e = i.enter("headingSetext"), t = i.enter("phrasing"), r = i.containerPhrasing(n, {
8
+ ...s.current(),
9
+ before: "\n",
10
+ after: "\n"
11
+ });
12
+ return t(), e(), r + "\n" + (o === 1 ? "=" : "-").repeat(r.length - (Math.max(r.lastIndexOf("\r"), r.lastIndexOf("\n")) + 1));
13
+ }
14
+ let c = "#".repeat(o), l = i.enter("headingAtx"), u = i.enter("phrasing");
15
+ s.move(c + " ");
16
+ let d = i.containerPhrasing(n, {
17
+ before: "# ",
18
+ after: "\n",
19
+ ...s.current()
20
+ });
21
+ return /^[\t ]/.test(d) && (d = e(d.charCodeAt(0)) + d.slice(1)), d = d ? c + " " + d : c, i.options.closeAtx && (d += " " + c), u(), l(), d;
22
+ }
23
+ //#endregion
24
+ export { n as heading };
@@ -0,0 +1,10 @@
1
+ //#region node_modules/mdast-util-to-markdown/lib/handle/html.js
2
+ e.peek = t;
3
+ function e(e) {
4
+ return e.value || "";
5
+ }
6
+ function t() {
7
+ return "<";
8
+ }
9
+ //#endregion
10
+ export { e as html };
@@ -0,0 +1,23 @@
1
+ //#region node_modules/mdast-util-to-markdown/lib/handle/image-reference.js
2
+ e.peek = t;
3
+ function e(e, t, n, r) {
4
+ let i = e.referenceType, a = n.enter("imageReference"), o = n.enter("label"), s = n.createTracker(r), c = s.move("!["), l = n.safe(e.alt, {
5
+ before: c,
6
+ after: "]",
7
+ ...s.current()
8
+ });
9
+ c += s.move(l + "]["), o();
10
+ let u = n.stack;
11
+ n.stack = [], o = n.enter("reference");
12
+ let d = n.safe(n.associationId(e), {
13
+ before: c,
14
+ after: "]",
15
+ ...s.current()
16
+ });
17
+ return o(), n.stack = u, a(), i === "full" || !l || l !== d ? c += s.move(d + "]") : i === "shortcut" ? c = c.slice(0, -1) : c += s.move("]"), c;
18
+ }
19
+ function t() {
20
+ return "!";
21
+ }
22
+ //#endregion
23
+ export { e as imageReference };
@@ -0,0 +1,28 @@
1
+ import { checkQuote as e } from "../util/check-quote.js";
2
+ //#region node_modules/mdast-util-to-markdown/lib/handle/image.js
3
+ t.peek = n;
4
+ function t(t, n, r, i) {
5
+ let a = e(r), o = a === "\"" ? "Quote" : "Apostrophe", s = r.enter("image"), c = r.enter("label"), l = r.createTracker(i), u = l.move("![");
6
+ return u += l.move(r.safe(t.alt, {
7
+ before: u,
8
+ after: "]",
9
+ ...l.current()
10
+ })), u += l.move("]("), c(), !t.url && t.title || /[\0- \u007F]/.test(t.url) ? (c = r.enter("destinationLiteral"), u += l.move("<"), u += l.move(r.safe(t.url, {
11
+ before: u,
12
+ after: ">",
13
+ ...l.current()
14
+ })), u += l.move(">")) : (c = r.enter("destinationRaw"), u += l.move(r.safe(t.url, {
15
+ before: u,
16
+ after: t.title ? " " : ")",
17
+ ...l.current()
18
+ }))), c(), t.title && (c = r.enter(`title${o}`), u += l.move(" " + a), u += l.move(r.safe(t.title, {
19
+ before: u,
20
+ after: a,
21
+ ...l.current()
22
+ })), u += l.move(a), c()), u += l.move(")"), s(), u;
23
+ }
24
+ function n() {
25
+ return "!";
26
+ }
27
+ //#endregion
28
+ export { t as image };
@@ -0,0 +1,44 @@
1
+ import { blockquote as e } from "./blockquote.js";
2
+ import { hardBreak as t } from "./break.js";
3
+ import { code as n } from "./code.js";
4
+ import { definition as r } from "./definition.js";
5
+ import { emphasis as i } from "./emphasis.js";
6
+ import { heading as a } from "./heading.js";
7
+ import { html as o } from "./html.js";
8
+ import { image as s } from "./image.js";
9
+ import { imageReference as c } from "./image-reference.js";
10
+ import { inlineCode as l } from "./inline-code.js";
11
+ import { link as u } from "./link.js";
12
+ import { linkReference as d } from "./link-reference.js";
13
+ import { list as f } from "./list.js";
14
+ import { listItem as p } from "./list-item.js";
15
+ import { paragraph as m } from "./paragraph.js";
16
+ import { root as h } from "./root.js";
17
+ import { strong as g } from "./strong.js";
18
+ import { text as _ } from "./text.js";
19
+ import { thematicBreak as v } from "./thematic-break.js";
20
+ //#region node_modules/mdast-util-to-markdown/lib/handle/index.js
21
+ var y = {
22
+ blockquote: e,
23
+ break: t,
24
+ code: n,
25
+ definition: r,
26
+ emphasis: i,
27
+ hardBreak: t,
28
+ heading: a,
29
+ html: o,
30
+ image: s,
31
+ imageReference: c,
32
+ inlineCode: l,
33
+ link: u,
34
+ linkReference: d,
35
+ list: f,
36
+ listItem: p,
37
+ paragraph: m,
38
+ root: h,
39
+ strong: g,
40
+ text: _,
41
+ thematicBreak: v
42
+ };
43
+ //#endregion
44
+ export { y as handle };
@@ -0,0 +1,19 @@
1
+ //#region node_modules/mdast-util-to-markdown/lib/handle/inline-code.js
2
+ e.peek = t;
3
+ function e(e, t, n) {
4
+ let r = e.value || "", i = "`", a = -1;
5
+ for (; RegExp("(^|[^`])" + i + "([^`]|$)").test(r);) i += "`";
6
+ for (/[^ \r\n]/.test(r) && (/^[ \r\n]/.test(r) && /[ \r\n]$/.test(r) || /^`|`$/.test(r)) && (r = " " + r + " "); ++a < n.unsafe.length;) {
7
+ let e = n.unsafe[a], t = n.compilePattern(e), i;
8
+ if (e.atBreak) for (; i = t.exec(r);) {
9
+ let e = i.index;
10
+ r.charCodeAt(e) === 10 && r.charCodeAt(e - 1) === 13 && e--, r = r.slice(0, e) + " " + r.slice(i.index + 1);
11
+ }
12
+ }
13
+ return i + r + i;
14
+ }
15
+ function t() {
16
+ return "`";
17
+ }
18
+ //#endregion
19
+ export { e as inlineCode };
@@ -0,0 +1,23 @@
1
+ //#region node_modules/mdast-util-to-markdown/lib/handle/link-reference.js
2
+ e.peek = t;
3
+ function e(e, t, n, r) {
4
+ let i = e.referenceType, a = n.enter("linkReference"), o = n.enter("label"), s = n.createTracker(r), c = s.move("["), l = n.containerPhrasing(e, {
5
+ before: c,
6
+ after: "]",
7
+ ...s.current()
8
+ });
9
+ c += s.move(l + "]["), o();
10
+ let u = n.stack;
11
+ n.stack = [], o = n.enter("reference");
12
+ let d = n.safe(n.associationId(e), {
13
+ before: c,
14
+ after: "]",
15
+ ...s.current()
16
+ });
17
+ return o(), n.stack = u, a(), i === "full" || !l || l !== d ? c += s.move(d + "]") : i === "shortcut" ? c = c.slice(0, -1) : c += s.move("]"), c;
18
+ }
19
+ function t() {
20
+ return "[";
21
+ }
22
+ //#endregion
23
+ export { e as linkReference };
@@ -0,0 +1,41 @@
1
+ import { checkQuote as e } from "../util/check-quote.js";
2
+ import { formatLinkAsAutolink as t } from "../util/format-link-as-autolink.js";
3
+ //#region node_modules/mdast-util-to-markdown/lib/handle/link.js
4
+ n.peek = r;
5
+ function n(n, r, i, a) {
6
+ let o = e(i), s = o === "\"" ? "Quote" : "Apostrophe", c = i.createTracker(a), l, u;
7
+ if (t(n, i)) {
8
+ let e = i.stack;
9
+ i.stack = [], l = i.enter("autolink");
10
+ let t = c.move("<");
11
+ return t += c.move(i.containerPhrasing(n, {
12
+ before: t,
13
+ after: ">",
14
+ ...c.current()
15
+ })), t += c.move(">"), l(), i.stack = e, t;
16
+ }
17
+ l = i.enter("link"), u = i.enter("label");
18
+ let d = c.move("[");
19
+ return d += c.move(i.containerPhrasing(n, {
20
+ before: d,
21
+ after: "](",
22
+ ...c.current()
23
+ })), d += c.move("]("), u(), !n.url && n.title || /[\0- \u007F]/.test(n.url) ? (u = i.enter("destinationLiteral"), d += c.move("<"), d += c.move(i.safe(n.url, {
24
+ before: d,
25
+ after: ">",
26
+ ...c.current()
27
+ })), d += c.move(">")) : (u = i.enter("destinationRaw"), d += c.move(i.safe(n.url, {
28
+ before: d,
29
+ after: n.title ? " " : ")",
30
+ ...c.current()
31
+ }))), u(), n.title && (u = i.enter(`title${s}`), d += c.move(" " + o), d += c.move(i.safe(n.title, {
32
+ before: d,
33
+ after: o,
34
+ ...c.current()
35
+ })), d += c.move(o), u()), d += c.move(")"), l(), d;
36
+ }
37
+ function r(e, n, r) {
38
+ return t(e, r) ? "<" : "[";
39
+ }
40
+ //#endregion
41
+ export { n as link };
@@ -0,0 +1,18 @@
1
+ import { checkBullet as e } from "../util/check-bullet.js";
2
+ import { checkListItemIndent as t } from "../util/check-list-item-indent.js";
3
+ //#region node_modules/mdast-util-to-markdown/lib/handle/list-item.js
4
+ function n(n, r, i, a) {
5
+ let o = t(i), s = i.bulletCurrent || e(i);
6
+ r && r.type === "list" && r.ordered && (s = (typeof r.start == "number" && r.start > -1 ? r.start : 1) + (i.options.incrementListMarker === !1 ? 0 : r.children.indexOf(n)) + s);
7
+ let c = s.length + 1;
8
+ (o === "tab" || o === "mixed" && (r && r.type === "list" && r.spread || n.spread)) && (c = Math.ceil(c / 4) * 4);
9
+ let l = i.createTracker(a);
10
+ l.move(s + " ".repeat(c - s.length)), l.shift(c);
11
+ let u = i.enter("listItem"), d = i.indentLines(i.containerFlow(n, l.current()), f);
12
+ return u(), d;
13
+ function f(e, t, n) {
14
+ return t ? (n ? "" : " ".repeat(c)) + e : (n ? s : s + " ".repeat(c - s.length)) + e;
15
+ }
16
+ }
17
+ //#endregion
18
+ export { n as listItem };
@@ -0,0 +1,26 @@
1
+ import { checkBullet as e } from "../util/check-bullet.js";
2
+ import { checkBulletOther as t } from "../util/check-bullet-other.js";
3
+ import { checkBulletOrdered as n } from "../util/check-bullet-ordered.js";
4
+ import { checkRule as r } from "../util/check-rule.js";
5
+ //#region node_modules/mdast-util-to-markdown/lib/handle/list.js
6
+ function i(i, a, o, s) {
7
+ let c = o.enter("list"), l = o.bulletCurrent, u = i.ordered ? n(o) : e(o), d = i.ordered ? u === "." ? ")" : "." : t(o), f = a && o.bulletLastUsed ? u === o.bulletLastUsed : !1;
8
+ if (!i.ordered) {
9
+ let e = i.children ? i.children[0] : void 0;
10
+ if ((u === "*" || u === "-") && e && (!e.children || !e.children[0]) && o.stack[o.stack.length - 1] === "list" && o.stack[o.stack.length - 2] === "listItem" && o.stack[o.stack.length - 3] === "list" && o.stack[o.stack.length - 4] === "listItem" && o.indexStack[o.indexStack.length - 1] === 0 && o.indexStack[o.indexStack.length - 2] === 0 && o.indexStack[o.indexStack.length - 3] === 0 && (f = !0), r(o) === u && e) {
11
+ let e = -1;
12
+ for (; ++e < i.children.length;) {
13
+ let t = i.children[e];
14
+ if (t && t.type === "listItem" && t.children && t.children[0] && t.children[0].type === "thematicBreak") {
15
+ f = !0;
16
+ break;
17
+ }
18
+ }
19
+ }
20
+ }
21
+ f && (u = d), o.bulletCurrent = u;
22
+ let p = o.containerFlow(i, s);
23
+ return o.bulletLastUsed = u, o.bulletCurrent = l, c(), p;
24
+ }
25
+ //#endregion
26
+ export { i as list };
@@ -0,0 +1,7 @@
1
+ //#region node_modules/mdast-util-to-markdown/lib/handle/paragraph.js
2
+ function e(e, t, n, r) {
3
+ let i = n.enter("paragraph"), a = n.enter("phrasing"), o = n.containerPhrasing(e, r);
4
+ return a(), i(), o;
5
+ }
6
+ //#endregion
7
+ export { e as paragraph };
@@ -0,0 +1,9 @@
1
+ import { phrasing as e } from "../../../mdast-util-phrasing/lib/index.js";
2
+ //#region node_modules/mdast-util-to-markdown/lib/handle/root.js
3
+ function t(t, n, r, i) {
4
+ return (t.children.some(function(t) {
5
+ return e(t);
6
+ }) ? r.containerPhrasing : r.containerFlow).call(r, t, i);
7
+ }
8
+ //#endregion
9
+ export { t as root };
@@ -0,0 +1,25 @@
1
+ import { encodeCharacterReference as e } from "../util/encode-character-reference.js";
2
+ import { encodeInfo as t } from "../util/encode-info.js";
3
+ import { checkStrong as n } from "../util/check-strong.js";
4
+ //#region node_modules/mdast-util-to-markdown/lib/handle/strong.js
5
+ r.peek = i;
6
+ function r(r, i, a, o) {
7
+ let s = n(a), c = a.enter("strong"), l = a.createTracker(o), u = l.move(s + s), d = l.move(a.containerPhrasing(r, {
8
+ after: s,
9
+ before: u,
10
+ ...l.current()
11
+ })), f = d.charCodeAt(0), p = t(o.before.charCodeAt(o.before.length - 1), f, s);
12
+ p.inside && (d = e(f) + d.slice(1));
13
+ let m = d.charCodeAt(d.length - 1), h = t(o.after.charCodeAt(0), m, s);
14
+ h.inside && (d = d.slice(0, -1) + e(m));
15
+ let g = l.move(s + s);
16
+ return c(), a.attentionEncodeSurroundingInfo = {
17
+ after: h.outside,
18
+ before: p.outside
19
+ }, u + d + g;
20
+ }
21
+ function i(e, t, n) {
22
+ return n.options.strong || "*";
23
+ }
24
+ //#endregion
25
+ export { r as strong };
@@ -0,0 +1,6 @@
1
+ //#region node_modules/mdast-util-to-markdown/lib/handle/text.js
2
+ function e(e, t, n, r) {
3
+ return n.safe(e.value, r);
4
+ }
5
+ //#endregion
6
+ export { e as text };
@@ -0,0 +1,9 @@
1
+ import { checkRule as e } from "../util/check-rule.js";
2
+ import { checkRuleRepetition as t } from "../util/check-rule-repetition.js";
3
+ //#region node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js
4
+ function n(n, r, i) {
5
+ let a = (e(i) + (i.options.ruleSpaces ? " " : "")).repeat(t(i));
6
+ return i.options.ruleSpaces ? a.slice(0, -1) : a;
7
+ }
8
+ //#endregion
9
+ export { n as thematicBreak };