@burdenoff/fe-libs 2026.720.1 → 2026.720.3
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.
- package/dist/node_modules/ccount/index.js +10 -0
- package/dist/node_modules/hast-util-sanitize/lib/index.js +161 -0
- package/dist/node_modules/hast-util-sanitize/lib/schema.js +74 -0
- package/dist/node_modules/longest-streak/index.js +9 -0
- package/dist/node_modules/markdown-table/index.js +59 -0
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +61 -0
- package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +7 -0
- package/dist/node_modules/mdast-util-gfm/lib/index.js +26 -0
- package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +129 -0
- package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +97 -0
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +49 -0
- package/dist/node_modules/mdast-util-gfm-table/lib/index.js +137 -0
- package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +58 -0
- package/dist/node_modules/mdast-util-phrasing/lib/index.js +22 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +12 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +9 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +36 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +24 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +25 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +24 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +10 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +23 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +28 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +44 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +19 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +23 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +41 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +18 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +26 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +7 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +9 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +25 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +9 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +38 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +12 -0
- package/dist/node_modules/micromark-extension-gfm/index.js +18 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +174 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +193 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +96 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +43 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +20 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +201 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +34 -0
- package/dist/node_modules/rehype-sanitize/lib/index.js +9 -0
- package/dist/node_modules/remark-gfm/lib/index.js +10 -0
- package/dist/shared/components/Markdown.d.ts +22 -0
- package/dist/shared/components/Markdown.d.ts.map +1 -0
- package/dist/shared/components/Markdown.js +38 -0
- package/dist/shared/components/index.d.ts +2 -0
- package/dist/shared/components/index.d.ts.map +1 -1
- package/dist/shared/graphql/fetch.d.ts.map +1 -1
- package/dist/shared/pages/LegalPage.js +1 -1
- package/dist/shared/tours/routeCatalog.d.ts.map +1 -1
- package/dist/shared/tours/routeCatalog.js +88 -0
- package/dist/shared-components.js +2 -1
- package/dist/shared.js +59 -58
- package/package.json +7 -1
- package/dist/shared/components/LegalPage.d.ts +0 -19
- package/dist/shared/components/LegalPage.d.ts.map +0 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region node_modules/ccount/index.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
let n = String(e);
|
|
4
|
+
if (typeof t != "string") throw TypeError("Expected character");
|
|
5
|
+
let r = 0, i = n.indexOf(t);
|
|
6
|
+
for (; i !== -1;) r++, i = n.indexOf(t, i + t.length);
|
|
7
|
+
return r;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { e as ccount };
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { position as e } from "../../unist-util-position/lib/index.js";
|
|
2
|
+
import t from "../../@ungap/structured-clone/esm/index.js";
|
|
3
|
+
import { defaultSchema as n } from "./schema.js";
|
|
4
|
+
//#region node_modules/hast-util-sanitize/lib/index.js
|
|
5
|
+
var r = {}.hasOwnProperty;
|
|
6
|
+
function i(e, t) {
|
|
7
|
+
let r = {
|
|
8
|
+
type: "root",
|
|
9
|
+
children: []
|
|
10
|
+
}, i = a({
|
|
11
|
+
schema: t ? {
|
|
12
|
+
...n,
|
|
13
|
+
...t
|
|
14
|
+
} : n,
|
|
15
|
+
stack: []
|
|
16
|
+
}, e);
|
|
17
|
+
return i && (Array.isArray(i) ? i.length === 1 ? r = i[0] : r.children = i : r = i), r;
|
|
18
|
+
}
|
|
19
|
+
function a(e, t) {
|
|
20
|
+
if (t && typeof t == "object") {
|
|
21
|
+
let n = t;
|
|
22
|
+
switch (typeof n.type == "string" ? n.type : "") {
|
|
23
|
+
case "comment": return o(e, n);
|
|
24
|
+
case "doctype": return s(e, n);
|
|
25
|
+
case "element": return c(e, n);
|
|
26
|
+
case "root": return l(e, n);
|
|
27
|
+
case "text": return u(e, n);
|
|
28
|
+
default:
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
function o(e, t) {
|
|
33
|
+
if (e.schema.allowComments) {
|
|
34
|
+
let e = typeof t.value == "string" ? t.value : "", n = e.indexOf("-->"), r = {
|
|
35
|
+
type: "comment",
|
|
36
|
+
value: n < 0 ? e : e.slice(0, n)
|
|
37
|
+
};
|
|
38
|
+
return _(r, t), r;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function s(e, t) {
|
|
42
|
+
if (e.schema.allowDoctypes) {
|
|
43
|
+
let e = { type: "doctype" };
|
|
44
|
+
return _(e, t), e;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
function c(e, t) {
|
|
48
|
+
let n = typeof t.tagName == "string" ? t.tagName : "";
|
|
49
|
+
e.stack.push(n);
|
|
50
|
+
let i = d(e, t.children), a = f(e, t.properties);
|
|
51
|
+
e.stack.pop();
|
|
52
|
+
let o = !1;
|
|
53
|
+
if (n && n !== "*" && (!e.schema.tagNames || e.schema.tagNames.includes(n)) && (o = !0, e.schema.ancestors && r.call(e.schema.ancestors, n))) {
|
|
54
|
+
let t = e.schema.ancestors[n], r = -1;
|
|
55
|
+
for (o = !1; ++r < t.length;) e.stack.includes(t[r]) && (o = !0);
|
|
56
|
+
}
|
|
57
|
+
if (!o) return e.schema.strip && !e.schema.strip.includes(n) ? i : void 0;
|
|
58
|
+
let s = {
|
|
59
|
+
type: "element",
|
|
60
|
+
tagName: n,
|
|
61
|
+
properties: a,
|
|
62
|
+
children: i
|
|
63
|
+
};
|
|
64
|
+
return _(s, t), s;
|
|
65
|
+
}
|
|
66
|
+
function l(e, t) {
|
|
67
|
+
let n = {
|
|
68
|
+
type: "root",
|
|
69
|
+
children: d(e, t.children)
|
|
70
|
+
};
|
|
71
|
+
return _(n, t), n;
|
|
72
|
+
}
|
|
73
|
+
function u(e, t) {
|
|
74
|
+
let n = {
|
|
75
|
+
type: "text",
|
|
76
|
+
value: typeof t.value == "string" ? t.value : ""
|
|
77
|
+
};
|
|
78
|
+
return _(n, t), n;
|
|
79
|
+
}
|
|
80
|
+
function d(e, t) {
|
|
81
|
+
let n = [];
|
|
82
|
+
if (Array.isArray(t)) {
|
|
83
|
+
let r = t, i = -1;
|
|
84
|
+
for (; ++i < r.length;) {
|
|
85
|
+
let t = a(e, r[i]);
|
|
86
|
+
t && (Array.isArray(t) ? n.push(...t) : n.push(t));
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return n;
|
|
90
|
+
}
|
|
91
|
+
function f(e, t) {
|
|
92
|
+
let n = e.stack[e.stack.length - 1], i = e.schema.attributes, a = e.schema.required, o = i && r.call(i, n) ? i[n] : void 0, s = i && r.call(i, "*") ? i["*"] : void 0, c = t && typeof t == "object" ? t : {}, l = {}, u;
|
|
93
|
+
for (u in c) if (r.call(c, u)) {
|
|
94
|
+
let t = c[u], n = p(e, v(o, u), u, t);
|
|
95
|
+
n ??= p(e, v(s, u), u, t), n != null && (l[u] = n);
|
|
96
|
+
}
|
|
97
|
+
if (a && r.call(a, n)) {
|
|
98
|
+
let e = a[n];
|
|
99
|
+
for (u in e) r.call(e, u) && !r.call(l, u) && (l[u] = e[u]);
|
|
100
|
+
}
|
|
101
|
+
return l;
|
|
102
|
+
}
|
|
103
|
+
function p(e, t, n, r) {
|
|
104
|
+
return t ? Array.isArray(r) ? m(e, t, n, r) : h(e, t, n, r) : void 0;
|
|
105
|
+
}
|
|
106
|
+
function m(e, t, n, r) {
|
|
107
|
+
let i = -1, a = [];
|
|
108
|
+
for (; ++i < r.length;) {
|
|
109
|
+
let o = h(e, t, n, r[i]);
|
|
110
|
+
(typeof o == "number" || typeof o == "string") && a.push(o);
|
|
111
|
+
}
|
|
112
|
+
return a;
|
|
113
|
+
}
|
|
114
|
+
function h(e, t, n, r) {
|
|
115
|
+
if (!(typeof r != "boolean" && typeof r != "number" && typeof r != "string") && g(e, n, r)) {
|
|
116
|
+
if (typeof t == "object" && t.length > 1) {
|
|
117
|
+
let e = !1, n = 0;
|
|
118
|
+
for (; ++n < t.length;) {
|
|
119
|
+
let i = t[n];
|
|
120
|
+
if (i && typeof i == "object" && "flags" in i) {
|
|
121
|
+
if (i.test(String(r))) {
|
|
122
|
+
e = !0;
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
} else if (i === r) {
|
|
126
|
+
e = !0;
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
if (!e) return;
|
|
131
|
+
}
|
|
132
|
+
return e.schema.clobber && e.schema.clobberPrefix && e.schema.clobber.includes(n) ? e.schema.clobberPrefix + r : r;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
function g(e, t, n) {
|
|
136
|
+
let i = e.schema.protocols && r.call(e.schema.protocols, t) ? e.schema.protocols[t] : void 0;
|
|
137
|
+
if (!i || i.length === 0) return !0;
|
|
138
|
+
let a = String(n), o = a.indexOf(":"), s = a.indexOf("?"), c = a.indexOf("#"), l = a.indexOf("/");
|
|
139
|
+
if (o < 0 || l > -1 && o > l || s > -1 && o > s || c > -1 && o > c) return !0;
|
|
140
|
+
let u = -1;
|
|
141
|
+
for (; ++u < i.length;) {
|
|
142
|
+
let e = i[u];
|
|
143
|
+
if (o === e.length && a.slice(0, e.length) === e) return !0;
|
|
144
|
+
}
|
|
145
|
+
return !1;
|
|
146
|
+
}
|
|
147
|
+
function _(n, r) {
|
|
148
|
+
let i = e(r);
|
|
149
|
+
r.data && (n.data = t(r.data)), i && (n.position = i);
|
|
150
|
+
}
|
|
151
|
+
function v(e, t) {
|
|
152
|
+
let n, r = -1;
|
|
153
|
+
if (e) for (; ++r < e.length;) {
|
|
154
|
+
let i = e[r], a = typeof i == "string" ? i : i[0];
|
|
155
|
+
if (a === t) return i;
|
|
156
|
+
a === "data*" && (n = i);
|
|
157
|
+
}
|
|
158
|
+
if (t.length > 4 && t.slice(0, 4).toLowerCase() === "data") return n;
|
|
159
|
+
}
|
|
160
|
+
//#endregion
|
|
161
|
+
export { i as sanitize };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
//#region node_modules/hast-util-sanitize/lib/schema.js
|
|
2
|
+
var e = [
|
|
3
|
+
"ariaDescribedBy",
|
|
4
|
+
"ariaLabel",
|
|
5
|
+
"ariaLabelledBy"
|
|
6
|
+
], t = {
|
|
7
|
+
ancestors: {
|
|
8
|
+
tbody: ["table"],
|
|
9
|
+
td: ["table"],
|
|
10
|
+
th: ["table"],
|
|
11
|
+
thead: ["table"],
|
|
12
|
+
tfoot: ["table"],
|
|
13
|
+
tr: ["table"]
|
|
14
|
+
},
|
|
15
|
+
attributes: {
|
|
16
|
+
a: [
|
|
17
|
+
...e,
|
|
18
|
+
"dataFootnoteBackref",
|
|
19
|
+
"dataFootnoteRef",
|
|
20
|
+
["className", "data-footnote-backref"],
|
|
21
|
+
"href"
|
|
22
|
+
],
|
|
23
|
+
blockquote: ["cite"],
|
|
24
|
+
code: [["className", /^language-./]],
|
|
25
|
+
del: ["cite"],
|
|
26
|
+
div: ["itemScope", "itemType"],
|
|
27
|
+
dl: [...e],
|
|
28
|
+
h2: [["className", "sr-only"]],
|
|
29
|
+
img: [
|
|
30
|
+
...e,
|
|
31
|
+
"longDesc",
|
|
32
|
+
"src"
|
|
33
|
+
],
|
|
34
|
+
input: [["disabled", !0], ["type", "checkbox"]],
|
|
35
|
+
ins: ["cite"],
|
|
36
|
+
li: [["className", "task-list-item"]],
|
|
37
|
+
ol: [...e, ["className", "contains-task-list"]],
|
|
38
|
+
q: ["cite"],
|
|
39
|
+
section: ["dataFootnotes", ["className", "footnotes"]],
|
|
40
|
+
source: ["srcSet"],
|
|
41
|
+
summary: [...e],
|
|
42
|
+
table: [...e],
|
|
43
|
+
ul: [...e, ["className", "contains-task-list"]],
|
|
44
|
+
"*": /* @__PURE__ */ "abbr.accept.acceptCharset.accessKey.action.align.alt.axis.border.cellPadding.cellSpacing.char.charOff.charSet.checked.clear.colSpan.color.cols.compact.coords.dateTime.dir.encType.frame.hSpace.headers.height.hrefLang.htmlFor.id.isMap.itemProp.label.lang.maxLength.media.method.multiple.name.noHref.noShade.noWrap.open.prompt.readOnly.rev.rowSpan.rows.rules.scope.selected.shape.size.span.start.summary.tabIndex.title.useMap.vAlign.value.width".split(".")
|
|
45
|
+
},
|
|
46
|
+
clobber: [
|
|
47
|
+
"ariaDescribedBy",
|
|
48
|
+
"ariaLabelledBy",
|
|
49
|
+
"id",
|
|
50
|
+
"name"
|
|
51
|
+
],
|
|
52
|
+
clobberPrefix: "user-content-",
|
|
53
|
+
protocols: {
|
|
54
|
+
cite: ["http", "https"],
|
|
55
|
+
href: [
|
|
56
|
+
"http",
|
|
57
|
+
"https",
|
|
58
|
+
"irc",
|
|
59
|
+
"ircs",
|
|
60
|
+
"mailto",
|
|
61
|
+
"xmpp"
|
|
62
|
+
],
|
|
63
|
+
longDesc: ["http", "https"],
|
|
64
|
+
src: ["http", "https"]
|
|
65
|
+
},
|
|
66
|
+
required: { input: {
|
|
67
|
+
disabled: !0,
|
|
68
|
+
type: "checkbox"
|
|
69
|
+
} },
|
|
70
|
+
strip: ["script"],
|
|
71
|
+
tagNames: /* @__PURE__ */ "a.b.blockquote.br.code.dd.del.details.div.dl.dt.em.h1.h2.h3.h4.h5.h6.hr.i.img.input.ins.kbd.li.ol.p.picture.pre.q.rp.rt.ruby.s.samp.section.source.span.strike.strong.sub.summary.sup.table.tbody.td.tfoot.th.thead.tr.tt.ul.var".split(".")
|
|
72
|
+
};
|
|
73
|
+
//#endregion
|
|
74
|
+
export { t as defaultSchema };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region node_modules/longest-streak/index.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
let n = String(e), r = n.indexOf(t), i = r, a = 0, o = 0;
|
|
4
|
+
if (typeof t != "string") throw TypeError("Expected substring");
|
|
5
|
+
for (; r !== -1;) r === i ? ++a > o && (o = a) : a = 1, i = r + t.length, r = n.indexOf(t, i);
|
|
6
|
+
return o;
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { e as longestStreak };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
//#region node_modules/markdown-table/index.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
return e.length;
|
|
4
|
+
}
|
|
5
|
+
function t(t, i) {
|
|
6
|
+
let a = i || {}, o = (a.align || []).concat(), s = a.stringLength || e, c = [], l = [], u = [], d = [], f = 0, p = -1;
|
|
7
|
+
for (; ++p < t.length;) {
|
|
8
|
+
let e = [], r = [], i = -1;
|
|
9
|
+
for (t[p].length > f && (f = t[p].length); ++i < t[p].length;) {
|
|
10
|
+
let o = n(t[p][i]);
|
|
11
|
+
if (a.alignDelimiters !== !1) {
|
|
12
|
+
let e = s(o);
|
|
13
|
+
r[i] = e, (d[i] === void 0 || e > d[i]) && (d[i] = e);
|
|
14
|
+
}
|
|
15
|
+
e.push(o);
|
|
16
|
+
}
|
|
17
|
+
l[p] = e, u[p] = r;
|
|
18
|
+
}
|
|
19
|
+
let m = -1;
|
|
20
|
+
if (typeof o == "object" && "length" in o) for (; ++m < f;) c[m] = r(o[m]);
|
|
21
|
+
else {
|
|
22
|
+
let e = r(o);
|
|
23
|
+
for (; ++m < f;) c[m] = e;
|
|
24
|
+
}
|
|
25
|
+
m = -1;
|
|
26
|
+
let h = [], g = [];
|
|
27
|
+
for (; ++m < f;) {
|
|
28
|
+
let e = c[m], t = "", n = "";
|
|
29
|
+
e === 99 ? (t = ":", n = ":") : e === 108 ? t = ":" : e === 114 && (n = ":");
|
|
30
|
+
let r = a.alignDelimiters === !1 ? 1 : Math.max(1, d[m] - t.length - n.length), i = t + "-".repeat(r) + n;
|
|
31
|
+
a.alignDelimiters !== !1 && (r = t.length + r + n.length, r > d[m] && (d[m] = r), g[m] = r), h[m] = i;
|
|
32
|
+
}
|
|
33
|
+
l.splice(1, 0, h), u.splice(1, 0, g), p = -1;
|
|
34
|
+
let _ = [];
|
|
35
|
+
for (; ++p < l.length;) {
|
|
36
|
+
let e = l[p], t = u[p];
|
|
37
|
+
m = -1;
|
|
38
|
+
let n = [];
|
|
39
|
+
for (; ++m < f;) {
|
|
40
|
+
let r = e[m] || "", i = "", o = "";
|
|
41
|
+
if (a.alignDelimiters !== !1) {
|
|
42
|
+
let e = d[m] - (t[m] || 0), n = c[m];
|
|
43
|
+
n === 114 ? i = " ".repeat(e) : n === 99 ? e % 2 ? (i = " ".repeat(e / 2 + .5), o = " ".repeat(e / 2 - .5)) : (i = " ".repeat(e / 2), o = i) : o = " ".repeat(e);
|
|
44
|
+
}
|
|
45
|
+
a.delimiterStart !== !1 && !m && n.push("|"), a.padding !== !1 && !(a.alignDelimiters === !1 && r === "") && (a.delimiterStart !== !1 || m) && n.push(" "), a.alignDelimiters !== !1 && n.push(i), n.push(r), a.alignDelimiters !== !1 && n.push(o), a.padding !== !1 && n.push(" "), (a.delimiterEnd !== !1 || m !== f - 1) && n.push("|");
|
|
46
|
+
}
|
|
47
|
+
_.push(a.delimiterEnd === !1 ? n.join("").replace(/ +$/, "") : n.join(""));
|
|
48
|
+
}
|
|
49
|
+
return _.join("\n");
|
|
50
|
+
}
|
|
51
|
+
function n(e) {
|
|
52
|
+
return e == null ? "" : String(e);
|
|
53
|
+
}
|
|
54
|
+
function r(e) {
|
|
55
|
+
let t = typeof e == "string" ? e.codePointAt(0) : 0;
|
|
56
|
+
return t === 67 || t === 99 ? 99 : t === 76 || t === 108 ? 108 : t === 82 || t === 114 ? 114 : 0;
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
export { t as markdownTable };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { convert as e } from "../../unist-util-is/lib/index.js";
|
|
2
|
+
import { visitParents as t } from "../../unist-util-visit-parents/lib/index.js";
|
|
3
|
+
import n from "../node_modules/escape-string-regexp/index.js";
|
|
4
|
+
//#region node_modules/mdast-util-find-and-replace/lib/index.js
|
|
5
|
+
function r(n, r, a) {
|
|
6
|
+
let o = e((a || {}).ignore || []), s = i(r), c = -1;
|
|
7
|
+
for (; ++c < s.length;) t(n, "text", l);
|
|
8
|
+
function l(e, t) {
|
|
9
|
+
let n = -1, r;
|
|
10
|
+
for (; ++n < t.length;) {
|
|
11
|
+
let e = t[n], i = r ? r.children : void 0;
|
|
12
|
+
if (o(e, i ? i.indexOf(e) : void 0, r)) return;
|
|
13
|
+
r = e;
|
|
14
|
+
}
|
|
15
|
+
if (r) return u(e, t);
|
|
16
|
+
}
|
|
17
|
+
function u(e, t) {
|
|
18
|
+
let n = t[t.length - 1], r = s[c][0], i = s[c][1], a = 0, o = n.children.indexOf(e), l = !1, u = [];
|
|
19
|
+
r.lastIndex = 0;
|
|
20
|
+
let d = r.exec(e.value);
|
|
21
|
+
for (; d;) {
|
|
22
|
+
let n = d.index, o = {
|
|
23
|
+
index: d.index,
|
|
24
|
+
input: d.input,
|
|
25
|
+
stack: [...t, e]
|
|
26
|
+
}, s = i(...d, o);
|
|
27
|
+
if (typeof s == "string" && (s = s.length > 0 ? {
|
|
28
|
+
type: "text",
|
|
29
|
+
value: s
|
|
30
|
+
} : void 0), s === !1 ? r.lastIndex = n + 1 : (a !== n && u.push({
|
|
31
|
+
type: "text",
|
|
32
|
+
value: e.value.slice(a, n)
|
|
33
|
+
}), Array.isArray(s) ? u.push(...s) : s && u.push(s), a = n + d[0].length, l = !0), !r.global) break;
|
|
34
|
+
d = r.exec(e.value);
|
|
35
|
+
}
|
|
36
|
+
return l ? (a < e.value.length && u.push({
|
|
37
|
+
type: "text",
|
|
38
|
+
value: e.value.slice(a)
|
|
39
|
+
}), n.children.splice(o, 1, ...u)) : u = [e], o + u.length;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function i(e) {
|
|
43
|
+
let t = [];
|
|
44
|
+
if (!Array.isArray(e)) throw TypeError("Expected find and replace tuple or list of tuples");
|
|
45
|
+
let n = !e[0] || Array.isArray(e[0]) ? e : [e], r = -1;
|
|
46
|
+
for (; ++r < n.length;) {
|
|
47
|
+
let e = n[r];
|
|
48
|
+
t.push([a(e[0]), o(e[1])]);
|
|
49
|
+
}
|
|
50
|
+
return t;
|
|
51
|
+
}
|
|
52
|
+
function a(e) {
|
|
53
|
+
return typeof e == "string" ? new RegExp(n(e), "g") : e;
|
|
54
|
+
}
|
|
55
|
+
function o(e) {
|
|
56
|
+
return typeof e == "function" ? e : function() {
|
|
57
|
+
return e;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
//#endregion
|
|
61
|
+
export { r as findAndReplace };
|
package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
if (typeof e != "string") throw TypeError("Expected a string");
|
|
4
|
+
return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { e as default };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { gfmAutolinkLiteralFromMarkdown as e, gfmAutolinkLiteralToMarkdown as t } from "../../mdast-util-gfm-autolink-literal/lib/index.js";
|
|
2
|
+
import { gfmFootnoteFromMarkdown as n, gfmFootnoteToMarkdown as r } from "../../mdast-util-gfm-footnote/lib/index.js";
|
|
3
|
+
import { gfmStrikethroughFromMarkdown as i, gfmStrikethroughToMarkdown as a } from "../../mdast-util-gfm-strikethrough/lib/index.js";
|
|
4
|
+
import { gfmTableFromMarkdown as o, gfmTableToMarkdown as s } from "../../mdast-util-gfm-table/lib/index.js";
|
|
5
|
+
import { gfmTaskListItemFromMarkdown as c, gfmTaskListItemToMarkdown as l } from "../../mdast-util-gfm-task-list-item/lib/index.js";
|
|
6
|
+
//#region node_modules/mdast-util-gfm/lib/index.js
|
|
7
|
+
function u() {
|
|
8
|
+
return [
|
|
9
|
+
e(),
|
|
10
|
+
n(),
|
|
11
|
+
i(),
|
|
12
|
+
o(),
|
|
13
|
+
c()
|
|
14
|
+
];
|
|
15
|
+
}
|
|
16
|
+
function d(e) {
|
|
17
|
+
return { extensions: [
|
|
18
|
+
t(),
|
|
19
|
+
r(e),
|
|
20
|
+
a(),
|
|
21
|
+
s(e),
|
|
22
|
+
l()
|
|
23
|
+
] };
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { u as gfmFromMarkdown, d as gfmToMarkdown };
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import "../../devlop/lib/default.js";
|
|
2
|
+
import { unicodePunctuation as e, unicodeWhitespace as t } from "../../micromark-util-character/index.js";
|
|
3
|
+
import { ccount as n } from "../../ccount/index.js";
|
|
4
|
+
import { findAndReplace as r } from "../../mdast-util-find-and-replace/lib/index.js";
|
|
5
|
+
//#region node_modules/mdast-util-gfm-autolink-literal/lib/index.js
|
|
6
|
+
var i = "phrasing", a = [
|
|
7
|
+
"autolink",
|
|
8
|
+
"link",
|
|
9
|
+
"image",
|
|
10
|
+
"label"
|
|
11
|
+
];
|
|
12
|
+
function o() {
|
|
13
|
+
return {
|
|
14
|
+
transforms: [m],
|
|
15
|
+
enter: {
|
|
16
|
+
literalAutolink: c,
|
|
17
|
+
literalAutolinkEmail: l,
|
|
18
|
+
literalAutolinkHttp: l,
|
|
19
|
+
literalAutolinkWww: l
|
|
20
|
+
},
|
|
21
|
+
exit: {
|
|
22
|
+
literalAutolink: p,
|
|
23
|
+
literalAutolinkEmail: f,
|
|
24
|
+
literalAutolinkHttp: u,
|
|
25
|
+
literalAutolinkWww: d
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function s() {
|
|
30
|
+
return { unsafe: [
|
|
31
|
+
{
|
|
32
|
+
character: "@",
|
|
33
|
+
before: "[+\\-.\\w]",
|
|
34
|
+
after: "[\\-.\\w]",
|
|
35
|
+
inConstruct: i,
|
|
36
|
+
notInConstruct: a
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
character: ".",
|
|
40
|
+
before: "[Ww]",
|
|
41
|
+
after: "[\\-.\\w]",
|
|
42
|
+
inConstruct: i,
|
|
43
|
+
notInConstruct: a
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
character: ":",
|
|
47
|
+
before: "[ps]",
|
|
48
|
+
after: "\\/",
|
|
49
|
+
inConstruct: i,
|
|
50
|
+
notInConstruct: a
|
|
51
|
+
}
|
|
52
|
+
] };
|
|
53
|
+
}
|
|
54
|
+
function c(e) {
|
|
55
|
+
this.enter({
|
|
56
|
+
type: "link",
|
|
57
|
+
title: null,
|
|
58
|
+
url: "",
|
|
59
|
+
children: []
|
|
60
|
+
}, e);
|
|
61
|
+
}
|
|
62
|
+
function l(e) {
|
|
63
|
+
this.config.enter.autolinkProtocol.call(this, e);
|
|
64
|
+
}
|
|
65
|
+
function u(e) {
|
|
66
|
+
this.config.exit.autolinkProtocol.call(this, e);
|
|
67
|
+
}
|
|
68
|
+
function d(e) {
|
|
69
|
+
this.config.exit.data.call(this, e);
|
|
70
|
+
let t = this.stack[this.stack.length - 1];
|
|
71
|
+
t.type, t.url = "http://" + this.sliceSerialize(e);
|
|
72
|
+
}
|
|
73
|
+
function f(e) {
|
|
74
|
+
this.config.exit.autolinkEmail.call(this, e);
|
|
75
|
+
}
|
|
76
|
+
function p(e) {
|
|
77
|
+
this.exit(e);
|
|
78
|
+
}
|
|
79
|
+
function m(e) {
|
|
80
|
+
r(e, [[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, h], [/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu, g]], { ignore: ["link", "linkReference"] });
|
|
81
|
+
}
|
|
82
|
+
function h(e, t, n, r, i) {
|
|
83
|
+
let a = "";
|
|
84
|
+
if (!y(i) || (/^w/i.test(t) && (n = t + n, t = "", a = "http://"), !_(n))) return !1;
|
|
85
|
+
let o = v(n + r);
|
|
86
|
+
if (!o[0]) return !1;
|
|
87
|
+
let s = {
|
|
88
|
+
type: "link",
|
|
89
|
+
title: null,
|
|
90
|
+
url: a + t + o[0],
|
|
91
|
+
children: [{
|
|
92
|
+
type: "text",
|
|
93
|
+
value: t + o[0]
|
|
94
|
+
}]
|
|
95
|
+
};
|
|
96
|
+
return o[1] ? [s, {
|
|
97
|
+
type: "text",
|
|
98
|
+
value: o[1]
|
|
99
|
+
}] : s;
|
|
100
|
+
}
|
|
101
|
+
function g(e, t, n, r) {
|
|
102
|
+
return !y(r, !0) || /[-\d_]$/.test(n) ? !1 : {
|
|
103
|
+
type: "link",
|
|
104
|
+
title: null,
|
|
105
|
+
url: "mailto:" + t + "@" + n,
|
|
106
|
+
children: [{
|
|
107
|
+
type: "text",
|
|
108
|
+
value: t + "@" + n
|
|
109
|
+
}]
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
function _(e) {
|
|
113
|
+
let t = e.split(".");
|
|
114
|
+
return !(t.length < 2 || t[t.length - 1] && (/_/.test(t[t.length - 1]) || !/[a-zA-Z\d]/.test(t[t.length - 1])) || t[t.length - 2] && (/_/.test(t[t.length - 2]) || !/[a-zA-Z\d]/.test(t[t.length - 2])));
|
|
115
|
+
}
|
|
116
|
+
function v(e) {
|
|
117
|
+
let t = /[!"&'),.:;<>?\]}]+$/.exec(e);
|
|
118
|
+
if (!t) return [e, void 0];
|
|
119
|
+
e = e.slice(0, t.index);
|
|
120
|
+
let r = t[0], i = r.indexOf(")"), a = n(e, "("), o = n(e, ")");
|
|
121
|
+
for (; i !== -1 && a > o;) e += r.slice(0, i + 1), r = r.slice(i + 1), i = r.indexOf(")"), o++;
|
|
122
|
+
return [e, r];
|
|
123
|
+
}
|
|
124
|
+
function y(n, r) {
|
|
125
|
+
let i = n.input.charCodeAt(n.index - 1);
|
|
126
|
+
return (n.index === 0 || t(i) || e(i)) && (!r || i !== 47);
|
|
127
|
+
}
|
|
128
|
+
//#endregion
|
|
129
|
+
export { o as gfmAutolinkLiteralFromMarkdown, s as gfmAutolinkLiteralToMarkdown };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import "../../devlop/lib/default.js";
|
|
2
|
+
import { normalizeIdentifier as e } from "../../micromark-util-normalize-identifier/index.js";
|
|
3
|
+
//#region node_modules/mdast-util-gfm-footnote/lib/index.js
|
|
4
|
+
u.peek = l;
|
|
5
|
+
function t() {
|
|
6
|
+
this.buffer();
|
|
7
|
+
}
|
|
8
|
+
function n(e) {
|
|
9
|
+
this.enter({
|
|
10
|
+
type: "footnoteReference",
|
|
11
|
+
identifier: "",
|
|
12
|
+
label: ""
|
|
13
|
+
}, e);
|
|
14
|
+
}
|
|
15
|
+
function r() {
|
|
16
|
+
this.buffer();
|
|
17
|
+
}
|
|
18
|
+
function i(e) {
|
|
19
|
+
this.enter({
|
|
20
|
+
type: "footnoteDefinition",
|
|
21
|
+
identifier: "",
|
|
22
|
+
label: "",
|
|
23
|
+
children: []
|
|
24
|
+
}, e);
|
|
25
|
+
}
|
|
26
|
+
function a(t) {
|
|
27
|
+
let n = this.resume(), r = this.stack[this.stack.length - 1];
|
|
28
|
+
r.type, r.identifier = e(this.sliceSerialize(t)).toLowerCase(), r.label = n;
|
|
29
|
+
}
|
|
30
|
+
function o(e) {
|
|
31
|
+
this.exit(e);
|
|
32
|
+
}
|
|
33
|
+
function s(t) {
|
|
34
|
+
let n = this.resume(), r = this.stack[this.stack.length - 1];
|
|
35
|
+
r.type, r.identifier = e(this.sliceSerialize(t)).toLowerCase(), r.label = n;
|
|
36
|
+
}
|
|
37
|
+
function c(e) {
|
|
38
|
+
this.exit(e);
|
|
39
|
+
}
|
|
40
|
+
function l() {
|
|
41
|
+
return "[";
|
|
42
|
+
}
|
|
43
|
+
function u(e, t, n, r) {
|
|
44
|
+
let i = n.createTracker(r), a = i.move("[^"), o = n.enter("footnoteReference"), s = n.enter("reference");
|
|
45
|
+
return a += i.move(n.safe(n.associationId(e), {
|
|
46
|
+
after: "]",
|
|
47
|
+
before: a
|
|
48
|
+
})), s(), o(), a += i.move("]"), a;
|
|
49
|
+
}
|
|
50
|
+
function d() {
|
|
51
|
+
return {
|
|
52
|
+
enter: {
|
|
53
|
+
gfmFootnoteCallString: t,
|
|
54
|
+
gfmFootnoteCall: n,
|
|
55
|
+
gfmFootnoteDefinitionLabelString: r,
|
|
56
|
+
gfmFootnoteDefinition: i
|
|
57
|
+
},
|
|
58
|
+
exit: {
|
|
59
|
+
gfmFootnoteCallString: a,
|
|
60
|
+
gfmFootnoteCall: o,
|
|
61
|
+
gfmFootnoteDefinitionLabelString: s,
|
|
62
|
+
gfmFootnoteDefinition: c
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function f(e) {
|
|
67
|
+
let t = !1;
|
|
68
|
+
return e && e.firstLineBlank && (t = !0), {
|
|
69
|
+
handlers: {
|
|
70
|
+
footnoteDefinition: n,
|
|
71
|
+
footnoteReference: u
|
|
72
|
+
},
|
|
73
|
+
unsafe: [{
|
|
74
|
+
character: "[",
|
|
75
|
+
inConstruct: [
|
|
76
|
+
"label",
|
|
77
|
+
"phrasing",
|
|
78
|
+
"reference"
|
|
79
|
+
]
|
|
80
|
+
}]
|
|
81
|
+
};
|
|
82
|
+
function n(e, n, r, i) {
|
|
83
|
+
let a = r.createTracker(i), o = a.move("[^"), s = r.enter("footnoteDefinition"), c = r.enter("label");
|
|
84
|
+
return o += a.move(r.safe(r.associationId(e), {
|
|
85
|
+
before: o,
|
|
86
|
+
after: "]"
|
|
87
|
+
})), c(), o += a.move("]:"), e.children && e.children.length > 0 && (a.shift(4), o += a.move((t ? "\n" : " ") + r.indentLines(r.containerFlow(e, a.current()), t ? m : p))), s(), o;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
function p(e, t, n) {
|
|
91
|
+
return t === 0 ? e : m(e, t, n);
|
|
92
|
+
}
|
|
93
|
+
function m(e, t, n) {
|
|
94
|
+
return (n ? "" : " ") + e;
|
|
95
|
+
}
|
|
96
|
+
//#endregion
|
|
97
|
+
export { d as gfmFootnoteFromMarkdown, f as gfmFootnoteToMarkdown };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
//#region node_modules/mdast-util-gfm-strikethrough/lib/index.js
|
|
2
|
+
var e = [
|
|
3
|
+
"autolink",
|
|
4
|
+
"destinationLiteral",
|
|
5
|
+
"destinationRaw",
|
|
6
|
+
"reference",
|
|
7
|
+
"titleQuote",
|
|
8
|
+
"titleApostrophe"
|
|
9
|
+
];
|
|
10
|
+
a.peek = o;
|
|
11
|
+
function t() {
|
|
12
|
+
return {
|
|
13
|
+
canContainEols: ["delete"],
|
|
14
|
+
enter: { strikethrough: r },
|
|
15
|
+
exit: { strikethrough: i }
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function n() {
|
|
19
|
+
return {
|
|
20
|
+
unsafe: [{
|
|
21
|
+
character: "~",
|
|
22
|
+
inConstruct: "phrasing",
|
|
23
|
+
notInConstruct: e
|
|
24
|
+
}],
|
|
25
|
+
handlers: { delete: a }
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function r(e) {
|
|
29
|
+
this.enter({
|
|
30
|
+
type: "delete",
|
|
31
|
+
children: []
|
|
32
|
+
}, e);
|
|
33
|
+
}
|
|
34
|
+
function i(e) {
|
|
35
|
+
this.exit(e);
|
|
36
|
+
}
|
|
37
|
+
function a(e, t, n, r) {
|
|
38
|
+
let i = n.createTracker(r), a = n.enter("strikethrough"), o = i.move("~~");
|
|
39
|
+
return o += n.containerPhrasing(e, {
|
|
40
|
+
...i.current(),
|
|
41
|
+
before: o,
|
|
42
|
+
after: "~"
|
|
43
|
+
}), o += i.move("~~"), a(), o;
|
|
44
|
+
}
|
|
45
|
+
function o() {
|
|
46
|
+
return "~";
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
export { t as gfmStrikethroughFromMarkdown, n as gfmStrikethroughToMarkdown };
|