@adyen/bento-vue2 1.75.0 → 1.76.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.
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid-template.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/header-meta.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/chunks/calendar.Fm_dfQC5.js +1871 -0
- package/dist/chunks/calendar.Fm_dfQC5.js.map +1 -0
- package/dist/chunks/constructNow.CHWWeLPc.js +8 -0
- package/dist/chunks/constructNow.CHWWeLPc.js.map +1 -0
- package/dist/chunks/{dashboard-section.jIpBvP6X.js → dashboard-section.D1l7wDX3.js} +2 -2
- package/dist/chunks/{dashboard-section.jIpBvP6X.js.map → dashboard-section.D1l7wDX3.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CozTcWQ0.js → data-grid-template.DGUDqzjj.js} +2 -2
- package/dist/chunks/{data-grid-template.CozTcWQ0.js.map → data-grid-template.DGUDqzjj.js.map} +1 -1
- package/dist/chunks/{data-grid.D5fTwSvx.js → data-grid.B5aCkT0o.js} +25 -28
- package/dist/chunks/{data-grid.D5fTwSvx.js.map → data-grid.B5aCkT0o.js.map} +1 -1
- package/dist/chunks/{date-picker.BLii86mM.js → date-picker.DImAYvoM.js} +4 -4
- package/dist/chunks/date-picker.DImAYvoM.js.map +1 -0
- package/dist/chunks/date-range-picker.DgZMERzx.js +914 -0
- package/dist/chunks/date-range-picker.DgZMERzx.js.map +1 -0
- package/dist/chunks/{get-date-locale.CAyOIbcp.js → differenceInMonths.C8FyCrav.js} +580 -364
- package/dist/chunks/differenceInMonths.C8FyCrav.js.map +1 -0
- package/dist/chunks/es6.MoTTyETW.js.map +1 -1
- package/dist/chunks/{filter-bar.DfTOz6xI.js → filter-bar.C0S87JZD.js} +507 -482
- package/dist/chunks/filter-bar.C0S87JZD.js.map +1 -0
- package/dist/chunks/getRoundingMethod.C3eaeGLR.js +10 -0
- package/dist/chunks/getRoundingMethod.C3eaeGLR.js.map +1 -0
- package/dist/chunks/{index.BrH1t1iu.js → getTimezoneOffsetInMilliseconds.BW7U6PxE.js} +254 -177
- package/dist/chunks/getTimezoneOffsetInMilliseconds.BW7U6PxE.js.map +1 -0
- package/dist/chunks/header-meta.D-6dL1Vg.js +170 -0
- package/dist/chunks/header-meta.D-6dL1Vg.js.map +1 -0
- package/dist/chunks/{header-with-views.AKprhFPj.js → header-with-views.j16q5wEc.js} +2 -2
- package/dist/chunks/{header-with-views.AKprhFPj.js.map → header-with-views.j16q5wEc.js.map} +1 -1
- package/dist/chunks/{header.DwSyDQ68.js → header.DoWKsA15.js} +2 -2
- package/dist/chunks/{header.DwSyDQ68.js.map → header.DoWKsA15.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.CKWtFjkF.js → rich-text-editor.eYW8X_YP.js} +353 -351
- package/dist/chunks/{rich-text-editor.CKWtFjkF.js.map → rich-text-editor.eYW8X_YP.js.map} +1 -1
- package/dist/chunks/{timeline-item.VSw9vKdO.js → timeline-item.CZBuknZ_.js} +156 -168
- package/dist/chunks/timeline-item.CZBuknZ_.js.map +1 -0
- package/dist/dashboard-template.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/filter-bar.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +11 -11
- package/dist/internal.js +2 -2
- package/dist/rich-text-editor.js +1 -1
- package/dist/styles/bento-dark.css +7 -5
- package/dist/styles/bento-light.css +7 -5
- package/dist/styles/bento.css +7 -5
- package/dist/styles/legacy.css +7 -5
- package/dist/styles/styleguide.css +7 -5
- package/dist/timeline.js +1 -1
- package/dist/web-types.json +18 -10
- package/package.json +12 -27
- package/dist/chunks/_commonjsHelpers.C6fGbg64.js +0 -7
- package/dist/chunks/_commonjsHelpers.C6fGbg64.js.map +0 -1
- package/dist/chunks/calendar.EfqJlztU.js +0 -2093
- package/dist/chunks/calendar.EfqJlztU.js.map +0 -1
- package/dist/chunks/date-picker.BLii86mM.js.map +0 -1
- package/dist/chunks/date-range-picker.Btgdly1q.js +0 -917
- package/dist/chunks/date-range-picker.Btgdly1q.js.map +0 -1
- package/dist/chunks/filter-bar.DfTOz6xI.js.map +0 -1
- package/dist/chunks/get-date-locale.CAyOIbcp.js.map +0 -1
- package/dist/chunks/header-meta.uiIO1wHP.js +0 -185
- package/dist/chunks/header-meta.uiIO1wHP.js.map +0 -1
- package/dist/chunks/index.BrH1t1iu.js.map +0 -1
- package/dist/chunks/index.BxBB1rsx.js +0 -15
- package/dist/chunks/index.BxBB1rsx.js.map +0 -1
- package/dist/chunks/timeline-item.VSw9vKdO.js.map +0 -1
|
@@ -9,10 +9,9 @@ import { B as nr } from "./checkbox.nyUc0gLb.js";
|
|
|
9
9
|
import { u as rr } from "./index.B6WW_F-J.js";
|
|
10
10
|
import { u as ir } from "./aria-label.CaUURpnB.js";
|
|
11
11
|
import { g as _e } from "./generate-uid.NJ8tVoha.js";
|
|
12
|
-
import {
|
|
13
|
-
import { F as lr, E as ar } from "./field-label.Auq-Pzho.js";
|
|
12
|
+
import { F as ur, E as lr } from "./field-label.Auq-Pzho.js";
|
|
14
13
|
import "../assets/rich-text-editor.css";
|
|
15
|
-
const
|
|
14
|
+
const ar = /* @__PURE__ */ At({
|
|
16
15
|
__name: "rich-text-editor-content-area",
|
|
17
16
|
props: {
|
|
18
17
|
value: { default: null },
|
|
@@ -34,18 +33,18 @@ const or = /* @__PURE__ */ At({
|
|
|
34
33
|
), { __sfc: !0, props: e, emit: n, editableRef: r, onInput: i, preserveCursor: u };
|
|
35
34
|
}
|
|
36
35
|
});
|
|
37
|
-
var
|
|
36
|
+
var or = function() {
|
|
38
37
|
var n = this, e = n._self._c, r = n._self._setupProxy;
|
|
39
38
|
return e("div", { ref: "editableRef", staticClass: "b-rich-text-editor-content-area", attrs: { contenteditable: "true", tabindex: "0", disabled: n.disabled }, on: { input: r.onInput, keydown: r.preserveCursor } });
|
|
40
|
-
},
|
|
39
|
+
}, sr = [], cr = /* @__PURE__ */ yt(
|
|
40
|
+
ar,
|
|
41
41
|
or,
|
|
42
42
|
sr,
|
|
43
|
-
cr,
|
|
44
43
|
!1,
|
|
45
44
|
null,
|
|
46
45
|
"c67b6a8d"
|
|
47
46
|
);
|
|
48
|
-
const
|
|
47
|
+
const fr = cr.exports;
|
|
49
48
|
function X(t, n, e, r) {
|
|
50
49
|
const i = t.length;
|
|
51
50
|
let u = 0, l;
|
|
@@ -63,10 +62,10 @@ function on(t) {
|
|
|
63
62
|
const n = {};
|
|
64
63
|
let e = -1;
|
|
65
64
|
for (; ++e < t.length; )
|
|
66
|
-
|
|
65
|
+
hr(n, t[e]);
|
|
67
66
|
return n;
|
|
68
67
|
}
|
|
69
|
-
function
|
|
68
|
+
function hr(t, n) {
|
|
70
69
|
let e;
|
|
71
70
|
for (e in n) {
|
|
72
71
|
const i = (Ae.call(t, e) ? t[e] : void 0) || (t[e] = {}), u = n[e];
|
|
@@ -75,7 +74,7 @@ function pr(t, n) {
|
|
|
75
74
|
for (l in u) {
|
|
76
75
|
Ae.call(i, l) || (i[l] = []);
|
|
77
76
|
const a = u[l];
|
|
78
|
-
|
|
77
|
+
pr(
|
|
79
78
|
// @ts-expect-error Looks like a list.
|
|
80
79
|
i[l],
|
|
81
80
|
Array.isArray(a) ? a : a ? [a] : []
|
|
@@ -83,14 +82,14 @@ function pr(t, n) {
|
|
|
83
82
|
}
|
|
84
83
|
}
|
|
85
84
|
}
|
|
86
|
-
function
|
|
85
|
+
function pr(t, n) {
|
|
87
86
|
let e = -1;
|
|
88
87
|
const r = [];
|
|
89
88
|
for (; ++e < n.length; )
|
|
90
89
|
(n[e].add === "after" ? t : r).push(n[e]);
|
|
91
90
|
X(t, 0, 0, r);
|
|
92
91
|
}
|
|
93
|
-
const
|
|
92
|
+
const mr = /[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/, Z = dt(/[A-Za-z]/), Y = dt(/[\dA-Za-z]/), gr = dt(/[#-'*+\--9=?A-Z^-~]/);
|
|
94
93
|
function jt(t) {
|
|
95
94
|
return (
|
|
96
95
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
@@ -98,7 +97,7 @@ function jt(t) {
|
|
|
98
97
|
t !== null && (t < 32 || t === 127)
|
|
99
98
|
);
|
|
100
99
|
}
|
|
101
|
-
const ae = dt(/\d/),
|
|
100
|
+
const ae = dt(/\d/), dr = dt(/[\dA-Fa-f]/), xr = dt(/[!-/:-@[-`{-~]/);
|
|
102
101
|
function z(t) {
|
|
103
102
|
return t !== null && t < -2;
|
|
104
103
|
}
|
|
@@ -108,38 +107,38 @@ function H(t) {
|
|
|
108
107
|
function B(t) {
|
|
109
108
|
return t === -2 || t === -1 || t === 32;
|
|
110
109
|
}
|
|
111
|
-
const qt = dt(
|
|
110
|
+
const qt = dt(mr), bt = dt(/\s/);
|
|
112
111
|
function dt(t) {
|
|
113
112
|
return n;
|
|
114
113
|
function n(e) {
|
|
115
114
|
return e !== null && t.test(String.fromCharCode(e));
|
|
116
115
|
}
|
|
117
116
|
}
|
|
118
|
-
const
|
|
119
|
-
tokenize:
|
|
117
|
+
const kr = {
|
|
118
|
+
tokenize: Sr,
|
|
120
119
|
partial: !0
|
|
121
120
|
}, sn = {
|
|
122
|
-
tokenize:
|
|
121
|
+
tokenize: _r,
|
|
123
122
|
partial: !0
|
|
124
123
|
}, cn = {
|
|
125
|
-
tokenize:
|
|
124
|
+
tokenize: Ar,
|
|
126
125
|
partial: !0
|
|
127
126
|
}, fn = {
|
|
128
|
-
tokenize:
|
|
127
|
+
tokenize: Er,
|
|
129
128
|
partial: !0
|
|
130
|
-
},
|
|
131
|
-
tokenize:
|
|
129
|
+
}, br = {
|
|
130
|
+
tokenize: zr,
|
|
132
131
|
partial: !0
|
|
133
132
|
}, hn = {
|
|
134
|
-
tokenize:
|
|
133
|
+
tokenize: Cr,
|
|
135
134
|
previous: mn
|
|
136
135
|
}, pn = {
|
|
137
|
-
tokenize:
|
|
136
|
+
tokenize: Fr,
|
|
138
137
|
previous: gn
|
|
139
138
|
}, ft = {
|
|
140
|
-
tokenize:
|
|
139
|
+
tokenize: wr,
|
|
141
140
|
previous: dn
|
|
142
|
-
}, lt = {},
|
|
141
|
+
}, lt = {}, yr = {
|
|
143
142
|
text: lt
|
|
144
143
|
};
|
|
145
144
|
let xt = 48;
|
|
@@ -153,7 +152,7 @@ lt[72] = [ft, pn];
|
|
|
153
152
|
lt[104] = [ft, pn];
|
|
154
153
|
lt[87] = [ft, hn];
|
|
155
154
|
lt[119] = [ft, hn];
|
|
156
|
-
function
|
|
155
|
+
function wr(t, n, e) {
|
|
157
156
|
const r = this;
|
|
158
157
|
let i, u;
|
|
159
158
|
return l;
|
|
@@ -165,7 +164,7 @@ function Cr(t, n, e) {
|
|
|
165
164
|
}
|
|
166
165
|
function c(o) {
|
|
167
166
|
return o === 46 ? t.check(
|
|
168
|
-
|
|
167
|
+
br,
|
|
169
168
|
f,
|
|
170
169
|
s
|
|
171
170
|
)(o) : o === 45 || o === 95 || Y(o) ? (u = !0, t.consume(o), c) : f(o);
|
|
@@ -177,12 +176,12 @@ function Cr(t, n, e) {
|
|
|
177
176
|
return u && i && Z(r.previous) ? (t.exit("literalAutolinkEmail"), t.exit("literalAutolink"), n(o)) : e(o);
|
|
178
177
|
}
|
|
179
178
|
}
|
|
180
|
-
function
|
|
179
|
+
function Cr(t, n, e) {
|
|
181
180
|
const r = this;
|
|
182
181
|
return i;
|
|
183
182
|
function i(l) {
|
|
184
183
|
return l !== 87 && l !== 119 || !mn.call(r, r.previous) || me(r.events) ? e(l) : (t.enter("literalAutolink"), t.enter("literalAutolinkWww"), t.check(
|
|
185
|
-
|
|
184
|
+
kr,
|
|
186
185
|
t.attempt(sn, t.attempt(cn, u), e),
|
|
187
186
|
e
|
|
188
187
|
)(l));
|
|
@@ -191,7 +190,7 @@ function Fr(t, n, e) {
|
|
|
191
190
|
return t.exit("literalAutolinkWww"), t.exit("literalAutolink"), n(l);
|
|
192
191
|
}
|
|
193
192
|
}
|
|
194
|
-
function
|
|
193
|
+
function Fr(t, n, e) {
|
|
195
194
|
const r = this;
|
|
196
195
|
let i = "", u = !1;
|
|
197
196
|
return l;
|
|
@@ -218,7 +217,7 @@ function Sr(t, n, e) {
|
|
|
218
217
|
return t.exit("literalAutolinkHttp"), t.exit("literalAutolink"), n(o);
|
|
219
218
|
}
|
|
220
219
|
}
|
|
221
|
-
function
|
|
220
|
+
function Sr(t, n, e) {
|
|
222
221
|
let r = 0;
|
|
223
222
|
return i;
|
|
224
223
|
function i(l) {
|
|
@@ -228,7 +227,7 @@ function _r(t, n, e) {
|
|
|
228
227
|
return l === null ? e(l) : n(l);
|
|
229
228
|
}
|
|
230
229
|
}
|
|
231
|
-
function
|
|
230
|
+
function _r(t, n, e) {
|
|
232
231
|
let r, i, u;
|
|
233
232
|
return l;
|
|
234
233
|
function l(s) {
|
|
@@ -241,7 +240,7 @@ function Ar(t, n, e) {
|
|
|
241
240
|
return i || r || !u ? e(s) : n(s);
|
|
242
241
|
}
|
|
243
242
|
}
|
|
244
|
-
function
|
|
243
|
+
function Ar(t, n) {
|
|
245
244
|
let e = 0, r = 0;
|
|
246
245
|
return i;
|
|
247
246
|
function i(l) {
|
|
@@ -251,7 +250,7 @@ function Er(t, n) {
|
|
|
251
250
|
return l === 41 && r++, t.consume(l), i;
|
|
252
251
|
}
|
|
253
252
|
}
|
|
254
|
-
function
|
|
253
|
+
function Er(t, n, e) {
|
|
255
254
|
return r;
|
|
256
255
|
function r(a) {
|
|
257
256
|
return a === 33 || a === 34 || a === 39 || a === 41 || a === 42 || a === 44 || a === 46 || a === 58 || a === 59 || a === 63 || a === 95 || a === 126 ? (t.consume(a), r) : a === 38 ? (t.consume(a), u) : a === 93 ? (t.consume(a), i) : (
|
|
@@ -270,7 +269,7 @@ function zr(t, n, e) {
|
|
|
270
269
|
return a === 59 ? (t.consume(a), r) : Z(a) ? (t.consume(a), l) : e(a);
|
|
271
270
|
}
|
|
272
271
|
}
|
|
273
|
-
function
|
|
272
|
+
function zr(t, n, e) {
|
|
274
273
|
return r;
|
|
275
274
|
function r(u) {
|
|
276
275
|
return t.consume(u), i;
|
|
@@ -323,10 +322,10 @@ function Vt(t, n, e) {
|
|
|
323
322
|
}
|
|
324
323
|
const se = {
|
|
325
324
|
name: "attention",
|
|
326
|
-
tokenize:
|
|
327
|
-
resolveAll:
|
|
325
|
+
tokenize: Tr,
|
|
326
|
+
resolveAll: Ir
|
|
328
327
|
};
|
|
329
|
-
function
|
|
328
|
+
function Ir(t, n) {
|
|
330
329
|
let e = -1, r, i, u, l, a, c, s, f;
|
|
331
330
|
for (; ++e < t.length; )
|
|
332
331
|
if (t[e][0] === "enter" && t[e][1].type === "attentionSequence" && t[e][1]._close) {
|
|
@@ -384,7 +383,7 @@ function Tr(t, n) {
|
|
|
384
383
|
t[e][1].type === "attentionSequence" && (t[e][1].type = "data");
|
|
385
384
|
return t;
|
|
386
385
|
}
|
|
387
|
-
function
|
|
386
|
+
function Tr(t, n) {
|
|
388
387
|
const e = this.parser.constructs.attentionMarkers.null, r = this.previous, i = Ht(r);
|
|
389
388
|
let u;
|
|
390
389
|
return l;
|
|
@@ -401,11 +400,11 @@ function Dr(t, n) {
|
|
|
401
400
|
function Ee(t, n) {
|
|
402
401
|
t.column += n, t.offset += n, t._bufferIndex += n;
|
|
403
402
|
}
|
|
404
|
-
const
|
|
403
|
+
const Dr = {
|
|
405
404
|
name: "autolink",
|
|
406
|
-
tokenize:
|
|
405
|
+
tokenize: Lr
|
|
407
406
|
};
|
|
408
|
-
function
|
|
407
|
+
function Lr(t, n, e) {
|
|
409
408
|
let r = 0;
|
|
410
409
|
return i;
|
|
411
410
|
function i(h) {
|
|
@@ -424,7 +423,7 @@ function Br(t, n, e) {
|
|
|
424
423
|
return h === 62 ? (t.exit("autolinkProtocol"), t.enter("autolinkMarker"), t.consume(h), t.exit("autolinkMarker"), t.exit("autolink"), n) : h === null || h === 32 || h === 60 || jt(h) ? e(h) : (t.consume(h), c);
|
|
425
424
|
}
|
|
426
425
|
function s(h) {
|
|
427
|
-
return h === 64 ? (t.consume(h), f) :
|
|
426
|
+
return h === 64 ? (t.consume(h), f) : gr(h) ? (t.consume(h), s) : e(h);
|
|
428
427
|
}
|
|
429
428
|
function f(h) {
|
|
430
429
|
return Y(h) ? o(h) : e(h);
|
|
@@ -452,10 +451,10 @@ function P(t, n, e, r) {
|
|
|
452
451
|
}
|
|
453
452
|
}
|
|
454
453
|
const Dt = {
|
|
455
|
-
tokenize:
|
|
454
|
+
tokenize: Br,
|
|
456
455
|
partial: !0
|
|
457
456
|
};
|
|
458
|
-
function
|
|
457
|
+
function Br(t, n, e) {
|
|
459
458
|
return r;
|
|
460
459
|
function r(u) {
|
|
461
460
|
return B(u) ? P(t, i, "linePrefix")(u) : i(u);
|
|
@@ -466,13 +465,13 @@ function Pr(t, n, e) {
|
|
|
466
465
|
}
|
|
467
466
|
const xn = {
|
|
468
467
|
name: "blockQuote",
|
|
469
|
-
tokenize:
|
|
468
|
+
tokenize: Pr,
|
|
470
469
|
continuation: {
|
|
471
|
-
tokenize:
|
|
470
|
+
tokenize: Rr
|
|
472
471
|
},
|
|
473
|
-
exit:
|
|
472
|
+
exit: Mr
|
|
474
473
|
};
|
|
475
|
-
function
|
|
474
|
+
function Pr(t, n, e) {
|
|
476
475
|
const r = this;
|
|
477
476
|
return i;
|
|
478
477
|
function i(l) {
|
|
@@ -488,7 +487,7 @@ function Rr(t, n, e) {
|
|
|
488
487
|
return B(l) ? (t.enter("blockQuotePrefixWhitespace"), t.consume(l), t.exit("blockQuotePrefixWhitespace"), t.exit("blockQuotePrefix"), n) : (t.exit("blockQuotePrefix"), n(l));
|
|
489
488
|
}
|
|
490
489
|
}
|
|
491
|
-
function
|
|
490
|
+
function Rr(t, n, e) {
|
|
492
491
|
const r = this;
|
|
493
492
|
return i;
|
|
494
493
|
function i(l) {
|
|
@@ -503,20 +502,20 @@ function Mr(t, n, e) {
|
|
|
503
502
|
return t.attempt(xn, n, e)(l);
|
|
504
503
|
}
|
|
505
504
|
}
|
|
506
|
-
function
|
|
505
|
+
function Mr(t) {
|
|
507
506
|
t.exit("blockQuote");
|
|
508
507
|
}
|
|
509
508
|
const kn = {
|
|
510
509
|
name: "characterEscape",
|
|
511
|
-
tokenize:
|
|
510
|
+
tokenize: Or
|
|
512
511
|
};
|
|
513
|
-
function
|
|
512
|
+
function Or(t, n, e) {
|
|
514
513
|
return r;
|
|
515
514
|
function r(u) {
|
|
516
515
|
return t.enter("characterEscape"), t.enter("escapeMarker"), t.consume(u), t.exit("escapeMarker"), i;
|
|
517
516
|
}
|
|
518
517
|
function i(u) {
|
|
519
|
-
return
|
|
518
|
+
return xr(u) ? (t.enter("characterEscapeValue"), t.consume(u), t.exit("characterEscapeValue"), t.exit("characterEscape"), n) : e(u);
|
|
520
519
|
}
|
|
521
520
|
}
|
|
522
521
|
const ze = document.createElement("i");
|
|
@@ -532,9 +531,9 @@ function ge(t) {
|
|
|
532
531
|
}
|
|
533
532
|
const bn = {
|
|
534
533
|
name: "characterReference",
|
|
535
|
-
tokenize:
|
|
534
|
+
tokenize: jr
|
|
536
535
|
};
|
|
537
|
-
function
|
|
536
|
+
function jr(t, n, e) {
|
|
538
537
|
const r = this;
|
|
539
538
|
let i = 0, u, l;
|
|
540
539
|
return a;
|
|
@@ -545,7 +544,7 @@ function Hr(t, n, e) {
|
|
|
545
544
|
return o === 35 ? (t.enter("characterReferenceMarkerNumeric"), t.consume(o), t.exit("characterReferenceMarkerNumeric"), s) : (t.enter("characterReferenceValue"), u = 31, l = Y, f(o));
|
|
546
545
|
}
|
|
547
546
|
function s(o) {
|
|
548
|
-
return o === 88 || o === 120 ? (t.enter("characterReferenceMarkerHexadecimal"), t.consume(o), t.exit("characterReferenceMarkerHexadecimal"), t.enter("characterReferenceValue"), u = 6, l =
|
|
547
|
+
return o === 88 || o === 120 ? (t.enter("characterReferenceMarkerHexadecimal"), t.consume(o), t.exit("characterReferenceMarkerHexadecimal"), t.enter("characterReferenceValue"), u = 6, l = dr, f) : (t.enter("characterReferenceValue"), u = 7, l = ae, f(o));
|
|
549
548
|
}
|
|
550
549
|
function f(o) {
|
|
551
550
|
if (o === 59 && i) {
|
|
@@ -556,14 +555,14 @@ function Hr(t, n, e) {
|
|
|
556
555
|
}
|
|
557
556
|
}
|
|
558
557
|
const Ie = {
|
|
559
|
-
tokenize:
|
|
558
|
+
tokenize: $r,
|
|
560
559
|
partial: !0
|
|
561
560
|
}, Te = {
|
|
562
561
|
name: "codeFenced",
|
|
563
|
-
tokenize:
|
|
562
|
+
tokenize: Hr,
|
|
564
563
|
concrete: !0
|
|
565
564
|
};
|
|
566
|
-
function
|
|
565
|
+
function Hr(t, n, e) {
|
|
567
566
|
const r = this, i = {
|
|
568
567
|
tokenize: L,
|
|
569
568
|
partial: !0
|
|
@@ -644,7 +643,7 @@ function $r(t, n, e) {
|
|
|
644
643
|
}
|
|
645
644
|
}
|
|
646
645
|
}
|
|
647
|
-
function
|
|
646
|
+
function $r(t, n, e) {
|
|
648
647
|
const r = this;
|
|
649
648
|
return i;
|
|
650
649
|
function i(l) {
|
|
@@ -656,12 +655,12 @@ function qr(t, n, e) {
|
|
|
656
655
|
}
|
|
657
656
|
const Qt = {
|
|
658
657
|
name: "codeIndented",
|
|
659
|
-
tokenize:
|
|
660
|
-
},
|
|
661
|
-
tokenize:
|
|
658
|
+
tokenize: Vr
|
|
659
|
+
}, qr = {
|
|
660
|
+
tokenize: vr,
|
|
662
661
|
partial: !0
|
|
663
662
|
};
|
|
664
|
-
function
|
|
663
|
+
function Vr(t, n, e) {
|
|
665
664
|
const r = this;
|
|
666
665
|
return i;
|
|
667
666
|
function i(s) {
|
|
@@ -672,7 +671,7 @@ function vr(t, n, e) {
|
|
|
672
671
|
return f && f[1].type === "linePrefix" && f[2].sliceSerialize(f[1], !0).length >= 4 ? l(s) : e(s);
|
|
673
672
|
}
|
|
674
673
|
function l(s) {
|
|
675
|
-
return s === null ? c(s) : z(s) ? t.attempt(
|
|
674
|
+
return s === null ? c(s) : z(s) ? t.attempt(qr, l, c)(s) : (t.enter("codeFlowValue"), a(s));
|
|
676
675
|
}
|
|
677
676
|
function a(s) {
|
|
678
677
|
return s === null || z(s) ? (t.exit("codeFlowValue"), l(s)) : (t.consume(s), a);
|
|
@@ -681,7 +680,7 @@ function vr(t, n, e) {
|
|
|
681
680
|
return t.exit("codeIndented"), n(s);
|
|
682
681
|
}
|
|
683
682
|
}
|
|
684
|
-
function
|
|
683
|
+
function vr(t, n, e) {
|
|
685
684
|
const r = this;
|
|
686
685
|
return i;
|
|
687
686
|
function i(l) {
|
|
@@ -692,13 +691,13 @@ function Nr(t, n, e) {
|
|
|
692
691
|
return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? n(l) : z(l) ? i(l) : e(l);
|
|
693
692
|
}
|
|
694
693
|
}
|
|
695
|
-
const
|
|
694
|
+
const Nr = {
|
|
696
695
|
name: "codeText",
|
|
697
|
-
tokenize:
|
|
698
|
-
resolve:
|
|
699
|
-
previous:
|
|
696
|
+
tokenize: Qr,
|
|
697
|
+
resolve: Ur,
|
|
698
|
+
previous: Wr
|
|
700
699
|
};
|
|
701
|
-
function
|
|
700
|
+
function Ur(t) {
|
|
702
701
|
let n = t.length - 4, e = 3, r, i;
|
|
703
702
|
if ((t[e][1].type === "lineEnding" || t[e][1].type === "space") && (t[n][1].type === "lineEnding" || t[n][1].type === "space")) {
|
|
704
703
|
for (r = e; ++r < n; )
|
|
@@ -711,10 +710,10 @@ function Wr(t) {
|
|
|
711
710
|
i === void 0 ? r !== n && t[r][1].type !== "lineEnding" && (i = r) : (r === n || t[r][1].type === "lineEnding") && (t[i][1].type = "codeTextData", r !== i + 2 && (t[i][1].end = t[r - 1][1].end, t.splice(i + 2, r - i - 2), n -= r - i - 2, r = i + 2), i = void 0);
|
|
712
711
|
return t;
|
|
713
712
|
}
|
|
714
|
-
function
|
|
713
|
+
function Wr(t) {
|
|
715
714
|
return t !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
|
|
716
715
|
}
|
|
717
|
-
function
|
|
716
|
+
function Qr(t, n, e) {
|
|
718
717
|
let r = 0, i, u;
|
|
719
718
|
return l;
|
|
720
719
|
function l(o) {
|
|
@@ -743,7 +742,7 @@ function yn(t) {
|
|
|
743
742
|
for (; ++u < c.length && c[u][1].type !== "content"; )
|
|
744
743
|
c[u][1].type === "chunkText" && (c[u][1]._isInFirstContentOfListItem = !0, u++);
|
|
745
744
|
if (r[0] === "enter")
|
|
746
|
-
r[1].contentType && (Object.assign(n,
|
|
745
|
+
r[1].contentType && (Object.assign(n, Zr(t, e)), e = n[e], s = !0);
|
|
747
746
|
else if (r[1]._container) {
|
|
748
747
|
for (u = e, i = void 0; u-- && (l = t[u], l[1].type === "lineEnding" || l[1].type === "lineEndingBlank"); )
|
|
749
748
|
l[0] === "enter" && (i && (t[i][1].type = "lineEndingBlank"), l[1].type = "lineEnding", i = u);
|
|
@@ -752,7 +751,7 @@ function yn(t) {
|
|
|
752
751
|
}
|
|
753
752
|
return !s;
|
|
754
753
|
}
|
|
755
|
-
function
|
|
754
|
+
function Zr(t, n) {
|
|
756
755
|
const e = t[n][1], r = t[n][2];
|
|
757
756
|
let i = n - 1;
|
|
758
757
|
const u = [], l = e._tokenizer || r.parser[e.contentType](e.start), a = l.events, c = [], s = {};
|
|
@@ -774,17 +773,17 @@ function Gr(t, n) {
|
|
|
774
773
|
s[d + c[g][0]] = d + c[g][1], d += c[g][1] - c[g][0] - 1;
|
|
775
774
|
return s;
|
|
776
775
|
}
|
|
777
|
-
const
|
|
776
|
+
const Gr = {
|
|
777
|
+
tokenize: Xr,
|
|
778
|
+
resolve: Jr
|
|
779
|
+
}, Yr = {
|
|
778
780
|
tokenize: Kr,
|
|
779
|
-
resolve: Xr
|
|
780
|
-
}, Jr = {
|
|
781
|
-
tokenize: ti,
|
|
782
781
|
partial: !0
|
|
783
782
|
};
|
|
784
|
-
function
|
|
783
|
+
function Jr(t) {
|
|
785
784
|
return yn(t), t;
|
|
786
785
|
}
|
|
787
|
-
function
|
|
786
|
+
function Xr(t, n) {
|
|
788
787
|
let e;
|
|
789
788
|
return r;
|
|
790
789
|
function r(a) {
|
|
@@ -794,7 +793,7 @@ function Kr(t, n) {
|
|
|
794
793
|
}
|
|
795
794
|
function i(a) {
|
|
796
795
|
return a === null ? u(a) : z(a) ? t.check(
|
|
797
|
-
|
|
796
|
+
Yr,
|
|
798
797
|
l,
|
|
799
798
|
u
|
|
800
799
|
)(a) : (t.consume(a), i);
|
|
@@ -809,7 +808,7 @@ function Kr(t, n) {
|
|
|
809
808
|
}), e = e.next, i;
|
|
810
809
|
}
|
|
811
810
|
}
|
|
812
|
-
function
|
|
811
|
+
function Kr(t, n, e) {
|
|
813
812
|
const r = this;
|
|
814
813
|
return i;
|
|
815
814
|
function i(l) {
|
|
@@ -908,14 +907,14 @@ function Tt(t, n) {
|
|
|
908
907
|
function it(t) {
|
|
909
908
|
return t.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
910
909
|
}
|
|
911
|
-
const
|
|
910
|
+
const ti = {
|
|
912
911
|
name: "definition",
|
|
913
|
-
tokenize:
|
|
914
|
-
},
|
|
915
|
-
tokenize:
|
|
912
|
+
tokenize: ni
|
|
913
|
+
}, ei = {
|
|
914
|
+
tokenize: ri,
|
|
916
915
|
partial: !0
|
|
917
916
|
};
|
|
918
|
-
function
|
|
917
|
+
function ni(t, n, e) {
|
|
919
918
|
const r = this;
|
|
920
919
|
let i;
|
|
921
920
|
return u;
|
|
@@ -956,7 +955,7 @@ function ri(t, n, e) {
|
|
|
956
955
|
)(h);
|
|
957
956
|
}
|
|
958
957
|
function f(h) {
|
|
959
|
-
return t.attempt(
|
|
958
|
+
return t.attempt(ei, o, o)(h);
|
|
960
959
|
}
|
|
961
960
|
function o(h) {
|
|
962
961
|
return B(h) ? P(t, g, "whitespace")(h) : g(h);
|
|
@@ -965,7 +964,7 @@ function ri(t, n, e) {
|
|
|
965
964
|
return h === null || z(h) ? (t.exit("definition"), r.parser.defined.push(i), n(h)) : e(h);
|
|
966
965
|
}
|
|
967
966
|
}
|
|
968
|
-
function
|
|
967
|
+
function ri(t, n, e) {
|
|
969
968
|
return r;
|
|
970
969
|
function r(a) {
|
|
971
970
|
return H(a) ? Tt(t, i)(a) : e(a);
|
|
@@ -987,11 +986,11 @@ function ii(t, n, e) {
|
|
|
987
986
|
return a === null || z(a) ? n(a) : e(a);
|
|
988
987
|
}
|
|
989
988
|
}
|
|
990
|
-
const
|
|
989
|
+
const ii = {
|
|
991
990
|
name: "hardBreakEscape",
|
|
992
|
-
tokenize:
|
|
991
|
+
tokenize: ui
|
|
993
992
|
};
|
|
994
|
-
function
|
|
993
|
+
function ui(t, n, e) {
|
|
995
994
|
return r;
|
|
996
995
|
function r(u) {
|
|
997
996
|
return t.enter("hardBreakEscape"), t.consume(u), i;
|
|
@@ -1000,12 +999,12 @@ function li(t, n, e) {
|
|
|
1000
999
|
return z(u) ? (t.exit("hardBreakEscape"), n(u)) : e(u);
|
|
1001
1000
|
}
|
|
1002
1001
|
}
|
|
1003
|
-
const
|
|
1002
|
+
const li = {
|
|
1004
1003
|
name: "headingAtx",
|
|
1005
|
-
tokenize:
|
|
1006
|
-
resolve:
|
|
1004
|
+
tokenize: oi,
|
|
1005
|
+
resolve: ai
|
|
1007
1006
|
};
|
|
1008
|
-
function
|
|
1007
|
+
function ai(t, n) {
|
|
1009
1008
|
let e = t.length - 2, r = 3, i, u;
|
|
1010
1009
|
return t[r][1].type === "whitespace" && (r += 2), e - 2 > r && t[e][1].type === "whitespace" && (e -= 2), t[e][1].type === "atxHeadingSequence" && (r === e - 1 || e - 4 > r && t[e - 2][1].type === "whitespace") && (e -= r + 1 === e ? 2 : 4), e > r && (i = {
|
|
1011
1010
|
type: "atxHeadingText",
|
|
@@ -1023,7 +1022,7 @@ function oi(t, n) {
|
|
|
1023
1022
|
["exit", i, n]
|
|
1024
1023
|
])), t;
|
|
1025
1024
|
}
|
|
1026
|
-
function
|
|
1025
|
+
function oi(t, n, e) {
|
|
1027
1026
|
let r = 0;
|
|
1028
1027
|
return i;
|
|
1029
1028
|
function i(f) {
|
|
@@ -1045,7 +1044,7 @@ function si(t, n, e) {
|
|
|
1045
1044
|
return f === null || f === 35 || H(f) ? (t.exit("atxHeadingText"), a(f)) : (t.consume(f), s);
|
|
1046
1045
|
}
|
|
1047
1046
|
}
|
|
1048
|
-
const
|
|
1047
|
+
const si = [
|
|
1049
1048
|
"address",
|
|
1050
1049
|
"article",
|
|
1051
1050
|
"aside",
|
|
@@ -1108,25 +1107,25 @@ const ci = [
|
|
|
1108
1107
|
"tr",
|
|
1109
1108
|
"track",
|
|
1110
1109
|
"ul"
|
|
1111
|
-
], De = ["pre", "script", "style", "textarea"],
|
|
1110
|
+
], De = ["pre", "script", "style", "textarea"], ci = {
|
|
1112
1111
|
name: "htmlFlow",
|
|
1113
|
-
tokenize:
|
|
1114
|
-
resolveTo:
|
|
1112
|
+
tokenize: mi,
|
|
1113
|
+
resolveTo: pi,
|
|
1115
1114
|
concrete: !0
|
|
1116
|
-
},
|
|
1117
|
-
tokenize: xi,
|
|
1118
|
-
partial: !0
|
|
1119
|
-
}, pi = {
|
|
1115
|
+
}, fi = {
|
|
1120
1116
|
tokenize: di,
|
|
1121
1117
|
partial: !0
|
|
1118
|
+
}, hi = {
|
|
1119
|
+
tokenize: gi,
|
|
1120
|
+
partial: !0
|
|
1122
1121
|
};
|
|
1123
|
-
function
|
|
1122
|
+
function pi(t) {
|
|
1124
1123
|
let n = t.length;
|
|
1125
1124
|
for (; n-- && !(t[n][0] === "enter" && t[n][1].type === "htmlFlow"); )
|
|
1126
1125
|
;
|
|
1127
1126
|
return n > 1 && t[n - 2][1].type === "linePrefix" && (t[n][1].start = t[n - 2][1].start, t[n + 1][1].start = t[n - 2][1].start, t.splice(n - 2, 2)), t;
|
|
1128
1127
|
}
|
|
1129
|
-
function
|
|
1128
|
+
function mi(t, n, e) {
|
|
1130
1129
|
const r = this;
|
|
1131
1130
|
let i, u, l, a, c;
|
|
1132
1131
|
return s;
|
|
@@ -1155,7 +1154,7 @@ function gi(t, n, e) {
|
|
|
1155
1154
|
function S(m) {
|
|
1156
1155
|
if (m === null || m === 47 || m === 62 || H(m)) {
|
|
1157
1156
|
const nt = m === 47, wt = l.toLowerCase();
|
|
1158
|
-
return !nt && !u && De.includes(wt) ? (i = 1, r.interrupt ? n(m) : A(m)) :
|
|
1157
|
+
return !nt && !u && De.includes(wt) ? (i = 1, r.interrupt ? n(m) : A(m)) : si.includes(l.toLowerCase()) ? (i = 6, nt ? (t.consume(m), b) : r.interrupt ? n(m) : A(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? e(m) : u ? E(m) : C(m));
|
|
1159
1158
|
}
|
|
1160
1159
|
return m === 45 || Y(m) ? (t.consume(m), l += String.fromCharCode(m), S) : e(m);
|
|
1161
1160
|
}
|
|
@@ -1194,14 +1193,14 @@ function gi(t, n, e) {
|
|
|
1194
1193
|
}
|
|
1195
1194
|
function A(m) {
|
|
1196
1195
|
return m === 45 && i === 2 ? (t.consume(m), W) : m === 60 && i === 1 ? (t.consume(m), N) : m === 62 && i === 4 ? (t.consume(m), et) : m === 63 && i === 3 ? (t.consume(m), p) : m === 93 && i === 5 ? (t.consume(m), at) : z(m) && (i === 6 || i === 7) ? (t.exit("htmlFlowData"), t.check(
|
|
1197
|
-
|
|
1196
|
+
fi,
|
|
1198
1197
|
ot,
|
|
1199
1198
|
O
|
|
1200
1199
|
)(m)) : m === null || z(m) ? (t.exit("htmlFlowData"), O(m)) : (t.consume(m), A);
|
|
1201
1200
|
}
|
|
1202
1201
|
function O(m) {
|
|
1203
1202
|
return t.check(
|
|
1204
|
-
|
|
1203
|
+
hi,
|
|
1205
1204
|
q,
|
|
1206
1205
|
ot
|
|
1207
1206
|
)(m);
|
|
@@ -1238,7 +1237,7 @@ function gi(t, n, e) {
|
|
|
1238
1237
|
return t.exit("htmlFlow"), n(m);
|
|
1239
1238
|
}
|
|
1240
1239
|
}
|
|
1241
|
-
function
|
|
1240
|
+
function gi(t, n, e) {
|
|
1242
1241
|
const r = this;
|
|
1243
1242
|
return i;
|
|
1244
1243
|
function i(l) {
|
|
@@ -1248,17 +1247,17 @@ function di(t, n, e) {
|
|
|
1248
1247
|
return r.parser.lazy[r.now().line] ? e(l) : n(l);
|
|
1249
1248
|
}
|
|
1250
1249
|
}
|
|
1251
|
-
function
|
|
1250
|
+
function di(t, n, e) {
|
|
1252
1251
|
return r;
|
|
1253
1252
|
function r(i) {
|
|
1254
1253
|
return t.enter("lineEnding"), t.consume(i), t.exit("lineEnding"), t.attempt(Dt, n, e);
|
|
1255
1254
|
}
|
|
1256
1255
|
}
|
|
1257
|
-
const
|
|
1256
|
+
const xi = {
|
|
1258
1257
|
name: "htmlText",
|
|
1259
|
-
tokenize:
|
|
1258
|
+
tokenize: ki
|
|
1260
1259
|
};
|
|
1261
|
-
function
|
|
1260
|
+
function ki(t, n, e) {
|
|
1262
1261
|
const r = this;
|
|
1263
1262
|
let i, u, l;
|
|
1264
1263
|
return a;
|
|
@@ -1358,17 +1357,17 @@ function bi(t, n, e) {
|
|
|
1358
1357
|
}
|
|
1359
1358
|
const de = {
|
|
1360
1359
|
name: "labelEnd",
|
|
1361
|
-
tokenize:
|
|
1362
|
-
resolveTo:
|
|
1363
|
-
resolveAll:
|
|
1360
|
+
tokenize: Si,
|
|
1361
|
+
resolveTo: Fi,
|
|
1362
|
+
resolveAll: Ci
|
|
1363
|
+
}, bi = {
|
|
1364
|
+
tokenize: _i
|
|
1364
1365
|
}, yi = {
|
|
1365
1366
|
tokenize: Ai
|
|
1366
1367
|
}, wi = {
|
|
1367
1368
|
tokenize: Ei
|
|
1368
|
-
}, Ci = {
|
|
1369
|
-
tokenize: zi
|
|
1370
1369
|
};
|
|
1371
|
-
function
|
|
1370
|
+
function Ci(t) {
|
|
1372
1371
|
let n = -1;
|
|
1373
1372
|
for (; ++n < t.length; ) {
|
|
1374
1373
|
const e = t[n][1];
|
|
@@ -1376,7 +1375,7 @@ function Fi(t) {
|
|
|
1376
1375
|
}
|
|
1377
1376
|
return t;
|
|
1378
1377
|
}
|
|
1379
|
-
function
|
|
1378
|
+
function Fi(t, n) {
|
|
1380
1379
|
let e = t.length, r = 0, i, u, l, a;
|
|
1381
1380
|
for (; e--; )
|
|
1382
1381
|
if (i = t[e][1], u) {
|
|
@@ -1419,7 +1418,7 @@ function Si(t, n) {
|
|
|
1419
1418
|
["exit", s, n]
|
|
1420
1419
|
]), a = K(a, t.slice(l + 1)), a = K(a, [["exit", c, n]]), X(t, u, t.length, a), t;
|
|
1421
1420
|
}
|
|
1422
|
-
function
|
|
1421
|
+
function Si(t, n, e) {
|
|
1423
1422
|
const r = this;
|
|
1424
1423
|
let i = r.events.length, u, l;
|
|
1425
1424
|
for (; i--; )
|
|
@@ -1440,18 +1439,18 @@ function _i(t, n, e) {
|
|
|
1440
1439
|
}
|
|
1441
1440
|
function c(g) {
|
|
1442
1441
|
return g === 40 ? t.attempt(
|
|
1443
|
-
|
|
1442
|
+
bi,
|
|
1444
1443
|
f,
|
|
1445
1444
|
l ? f : o
|
|
1446
1445
|
)(g) : g === 91 ? t.attempt(
|
|
1447
|
-
|
|
1446
|
+
yi,
|
|
1448
1447
|
f,
|
|
1449
1448
|
l ? s : o
|
|
1450
1449
|
)(g) : l ? f(g) : o(g);
|
|
1451
1450
|
}
|
|
1452
1451
|
function s(g) {
|
|
1453
1452
|
return t.attempt(
|
|
1454
|
-
|
|
1453
|
+
wi,
|
|
1455
1454
|
f,
|
|
1456
1455
|
o
|
|
1457
1456
|
)(g);
|
|
@@ -1463,7 +1462,7 @@ function _i(t, n, e) {
|
|
|
1463
1462
|
return u._balanced = !0, e(g);
|
|
1464
1463
|
}
|
|
1465
1464
|
}
|
|
1466
|
-
function
|
|
1465
|
+
function _i(t, n, e) {
|
|
1467
1466
|
return r;
|
|
1468
1467
|
function r(o) {
|
|
1469
1468
|
return t.enter("resource"), t.enter("resourceMarker"), t.consume(o), t.exit("resourceMarker"), i;
|
|
@@ -1507,7 +1506,7 @@ function Ai(t, n, e) {
|
|
|
1507
1506
|
return o === 41 ? (t.enter("resourceMarker"), t.consume(o), t.exit("resourceMarker"), t.exit("resource"), n) : e(o);
|
|
1508
1507
|
}
|
|
1509
1508
|
}
|
|
1510
|
-
function
|
|
1509
|
+
function Ai(t, n, e) {
|
|
1511
1510
|
const r = this;
|
|
1512
1511
|
return i;
|
|
1513
1512
|
function i(a) {
|
|
@@ -1532,7 +1531,7 @@ function Ei(t, n, e) {
|
|
|
1532
1531
|
return e(a);
|
|
1533
1532
|
}
|
|
1534
1533
|
}
|
|
1535
|
-
function
|
|
1534
|
+
function Ei(t, n, e) {
|
|
1536
1535
|
return r;
|
|
1537
1536
|
function r(u) {
|
|
1538
1537
|
return t.enter("reference"), t.enter("referenceMarker"), t.consume(u), t.exit("referenceMarker"), i;
|
|
@@ -1541,12 +1540,12 @@ function zi(t, n, e) {
|
|
|
1541
1540
|
return u === 93 ? (t.enter("referenceMarker"), t.consume(u), t.exit("referenceMarker"), t.exit("reference"), n) : e(u);
|
|
1542
1541
|
}
|
|
1543
1542
|
}
|
|
1544
|
-
const
|
|
1543
|
+
const zi = {
|
|
1545
1544
|
name: "labelStartImage",
|
|
1546
|
-
tokenize:
|
|
1545
|
+
tokenize: Ii,
|
|
1547
1546
|
resolveAll: de.resolveAll
|
|
1548
1547
|
};
|
|
1549
|
-
function
|
|
1548
|
+
function Ii(t, n, e) {
|
|
1550
1549
|
const r = this;
|
|
1551
1550
|
return i;
|
|
1552
1551
|
function i(a) {
|
|
@@ -1559,12 +1558,12 @@ function Ti(t, n, e) {
|
|
|
1559
1558
|
return a === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? e(a) : n(a);
|
|
1560
1559
|
}
|
|
1561
1560
|
}
|
|
1562
|
-
const
|
|
1561
|
+
const Ti = {
|
|
1563
1562
|
name: "labelStartLink",
|
|
1564
|
-
tokenize:
|
|
1563
|
+
tokenize: Di,
|
|
1565
1564
|
resolveAll: de.resolveAll
|
|
1566
1565
|
};
|
|
1567
|
-
function
|
|
1566
|
+
function Di(t, n, e) {
|
|
1568
1567
|
const r = this;
|
|
1569
1568
|
return i;
|
|
1570
1569
|
function i(l) {
|
|
@@ -1576,9 +1575,9 @@ function Li(t, n, e) {
|
|
|
1576
1575
|
}
|
|
1577
1576
|
const Zt = {
|
|
1578
1577
|
name: "lineEnding",
|
|
1579
|
-
tokenize:
|
|
1578
|
+
tokenize: Li
|
|
1580
1579
|
};
|
|
1581
|
-
function
|
|
1580
|
+
function Li(t, n) {
|
|
1582
1581
|
return e;
|
|
1583
1582
|
function e(r) {
|
|
1584
1583
|
return t.enter("lineEnding"), t.consume(r), t.exit("lineEnding"), P(t, n, "linePrefix");
|
|
@@ -1586,9 +1585,9 @@ function Bi(t, n) {
|
|
|
1586
1585
|
}
|
|
1587
1586
|
const Rt = {
|
|
1588
1587
|
name: "thematicBreak",
|
|
1589
|
-
tokenize:
|
|
1588
|
+
tokenize: Bi
|
|
1590
1589
|
};
|
|
1591
|
-
function
|
|
1590
|
+
function Bi(t, n, e) {
|
|
1592
1591
|
let r = 0, i;
|
|
1593
1592
|
return u;
|
|
1594
1593
|
function u(s) {
|
|
@@ -1606,19 +1605,19 @@ function Pi(t, n, e) {
|
|
|
1606
1605
|
}
|
|
1607
1606
|
const G = {
|
|
1608
1607
|
name: "list",
|
|
1609
|
-
tokenize:
|
|
1608
|
+
tokenize: Mi,
|
|
1610
1609
|
continuation: {
|
|
1611
|
-
tokenize:
|
|
1610
|
+
tokenize: Oi
|
|
1612
1611
|
},
|
|
1613
|
-
exit:
|
|
1614
|
-
},
|
|
1615
|
-
tokenize:
|
|
1612
|
+
exit: Hi
|
|
1613
|
+
}, Pi = {
|
|
1614
|
+
tokenize: $i,
|
|
1616
1615
|
partial: !0
|
|
1617
|
-
},
|
|
1618
|
-
tokenize:
|
|
1616
|
+
}, Ri = {
|
|
1617
|
+
tokenize: ji,
|
|
1619
1618
|
partial: !0
|
|
1620
1619
|
};
|
|
1621
|
-
function
|
|
1620
|
+
function Mi(t, n, e) {
|
|
1622
1621
|
const r = this, i = r.events[r.events.length - 1];
|
|
1623
1622
|
let u = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, l = 0;
|
|
1624
1623
|
return a;
|
|
@@ -1643,7 +1642,7 @@ function Oi(t, n, e) {
|
|
|
1643
1642
|
// Can’t be empty when interrupting.
|
|
1644
1643
|
r.interrupt ? e : f,
|
|
1645
1644
|
t.attempt(
|
|
1646
|
-
|
|
1645
|
+
Pi,
|
|
1647
1646
|
g,
|
|
1648
1647
|
o
|
|
1649
1648
|
)
|
|
@@ -1659,7 +1658,7 @@ function Oi(t, n, e) {
|
|
|
1659
1658
|
return r.containerState.size = u + r.sliceSerialize(t.exit("listItemPrefix"), !0).length, n(h);
|
|
1660
1659
|
}
|
|
1661
1660
|
}
|
|
1662
|
-
function
|
|
1661
|
+
function Oi(t, n, e) {
|
|
1663
1662
|
const r = this;
|
|
1664
1663
|
return r.containerState._closeFlow = void 0, t.check(Dt, i, u);
|
|
1665
1664
|
function i(a) {
|
|
@@ -1671,7 +1670,7 @@ function ji(t, n, e) {
|
|
|
1671
1670
|
)(a);
|
|
1672
1671
|
}
|
|
1673
1672
|
function u(a) {
|
|
1674
|
-
return r.containerState.furtherBlankLines || !B(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, l(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, t.attempt(
|
|
1673
|
+
return r.containerState.furtherBlankLines || !B(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, l(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, t.attempt(Ri, n, l)(a));
|
|
1675
1674
|
}
|
|
1676
1675
|
function l(a) {
|
|
1677
1676
|
return r.containerState._closeFlow = !0, r.interrupt = void 0, P(
|
|
@@ -1682,7 +1681,7 @@ function ji(t, n, e) {
|
|
|
1682
1681
|
)(a);
|
|
1683
1682
|
}
|
|
1684
1683
|
}
|
|
1685
|
-
function
|
|
1684
|
+
function ji(t, n, e) {
|
|
1686
1685
|
const r = this;
|
|
1687
1686
|
return P(
|
|
1688
1687
|
t,
|
|
@@ -1695,10 +1694,10 @@ function Hi(t, n, e) {
|
|
|
1695
1694
|
return l && l[1].type === "listItemIndent" && l[2].sliceSerialize(l[1], !0).length === r.containerState.size ? n(u) : e(u);
|
|
1696
1695
|
}
|
|
1697
1696
|
}
|
|
1698
|
-
function
|
|
1697
|
+
function Hi(t) {
|
|
1699
1698
|
t.exit(this.containerState.type);
|
|
1700
1699
|
}
|
|
1701
|
-
function
|
|
1700
|
+
function $i(t, n, e) {
|
|
1702
1701
|
const r = this;
|
|
1703
1702
|
return P(
|
|
1704
1703
|
t,
|
|
@@ -1713,10 +1712,10 @@ function qi(t, n, e) {
|
|
|
1713
1712
|
}
|
|
1714
1713
|
const Le = {
|
|
1715
1714
|
name: "setextUnderline",
|
|
1716
|
-
tokenize:
|
|
1717
|
-
resolveTo:
|
|
1715
|
+
tokenize: Vi,
|
|
1716
|
+
resolveTo: qi
|
|
1718
1717
|
};
|
|
1719
|
-
function
|
|
1718
|
+
function qi(t, n) {
|
|
1720
1719
|
let e = t.length, r, i, u;
|
|
1721
1720
|
for (; e--; )
|
|
1722
1721
|
if (t[e][0] === "enter") {
|
|
@@ -1734,7 +1733,7 @@ function Vi(t, n) {
|
|
|
1734
1733
|
};
|
|
1735
1734
|
return t[i][1].type = "setextHeadingText", u ? (t.splice(i, 0, ["enter", l, n]), t.splice(u + 1, 0, ["exit", t[r][1], n]), t[r][1].end = Object.assign({}, t[u][1].end)) : t[r][1] = l, t.push(["exit", l, n]), t;
|
|
1736
1735
|
}
|
|
1737
|
-
function
|
|
1736
|
+
function Vi(t, n, e) {
|
|
1738
1737
|
const r = this;
|
|
1739
1738
|
let i;
|
|
1740
1739
|
return u;
|
|
@@ -1757,34 +1756,34 @@ function vi(t, n, e) {
|
|
|
1757
1756
|
return s === null || z(s) ? (t.exit("setextHeadingLine"), n(s)) : e(s);
|
|
1758
1757
|
}
|
|
1759
1758
|
}
|
|
1760
|
-
const
|
|
1761
|
-
tokenize:
|
|
1759
|
+
const vi = {
|
|
1760
|
+
tokenize: Ji,
|
|
1762
1761
|
partial: !0
|
|
1763
1762
|
};
|
|
1764
|
-
function
|
|
1763
|
+
function Ni() {
|
|
1765
1764
|
return {
|
|
1766
1765
|
document: {
|
|
1767
1766
|
91: {
|
|
1768
|
-
tokenize:
|
|
1767
|
+
tokenize: Zi,
|
|
1769
1768
|
continuation: {
|
|
1770
|
-
tokenize:
|
|
1769
|
+
tokenize: Gi
|
|
1771
1770
|
},
|
|
1772
|
-
exit:
|
|
1771
|
+
exit: Yi
|
|
1773
1772
|
}
|
|
1774
1773
|
},
|
|
1775
1774
|
text: {
|
|
1776
1775
|
91: {
|
|
1777
|
-
tokenize:
|
|
1776
|
+
tokenize: Qi
|
|
1778
1777
|
},
|
|
1779
1778
|
93: {
|
|
1780
1779
|
add: "after",
|
|
1781
|
-
tokenize:
|
|
1782
|
-
resolveTo:
|
|
1780
|
+
tokenize: Ui,
|
|
1781
|
+
resolveTo: Wi
|
|
1783
1782
|
}
|
|
1784
1783
|
}
|
|
1785
1784
|
};
|
|
1786
1785
|
}
|
|
1787
|
-
function
|
|
1786
|
+
function Ui(t, n, e) {
|
|
1788
1787
|
const r = this;
|
|
1789
1788
|
let i = r.events.length;
|
|
1790
1789
|
const u = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
@@ -1811,7 +1810,7 @@ function Wi(t, n, e) {
|
|
|
1811
1810
|
return s.codePointAt(0) !== 94 || !u.includes(s.slice(1)) ? e(c) : (t.enter("gfmFootnoteCallLabelMarker"), t.consume(c), t.exit("gfmFootnoteCallLabelMarker"), n(c));
|
|
1812
1811
|
}
|
|
1813
1812
|
}
|
|
1814
|
-
function
|
|
1813
|
+
function Wi(t, n) {
|
|
1815
1814
|
let e = t.length;
|
|
1816
1815
|
for (; e--; )
|
|
1817
1816
|
if (t[e][1].type === "labelImage" && t[e][0] === "enter") {
|
|
@@ -1861,7 +1860,7 @@ function Qi(t, n) {
|
|
|
1861
1860
|
];
|
|
1862
1861
|
return t.splice(e, t.length - e + 1, ...a), t;
|
|
1863
1862
|
}
|
|
1864
|
-
function
|
|
1863
|
+
function Qi(t, n, e) {
|
|
1865
1864
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
1866
1865
|
let u = 0, l;
|
|
1867
1866
|
return a;
|
|
@@ -1891,7 +1890,7 @@ function Zi(t, n, e) {
|
|
|
1891
1890
|
return o === 91 || o === 92 || o === 93 ? (t.consume(o), u++, s) : s(o);
|
|
1892
1891
|
}
|
|
1893
1892
|
}
|
|
1894
|
-
function
|
|
1893
|
+
function Zi(t, n, e) {
|
|
1895
1894
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
1896
1895
|
let u, l = 0, a;
|
|
1897
1896
|
return c;
|
|
@@ -1931,13 +1930,13 @@ function Gi(t, n, e) {
|
|
|
1931
1930
|
return n(d);
|
|
1932
1931
|
}
|
|
1933
1932
|
}
|
|
1934
|
-
function
|
|
1935
|
-
return t.check(Dt, n, t.attempt(
|
|
1933
|
+
function Gi(t, n, e) {
|
|
1934
|
+
return t.check(Dt, n, t.attempt(vi, n, e));
|
|
1936
1935
|
}
|
|
1937
|
-
function
|
|
1936
|
+
function Yi(t) {
|
|
1938
1937
|
t.exit("gfmFootnoteDefinition");
|
|
1939
1938
|
}
|
|
1940
|
-
function
|
|
1939
|
+
function Ji(t, n, e) {
|
|
1941
1940
|
const r = this;
|
|
1942
1941
|
return P(
|
|
1943
1942
|
t,
|
|
@@ -1950,7 +1949,7 @@ function Xi(t, n, e) {
|
|
|
1950
1949
|
return l && l[1].type === "gfmFootnoteDefinitionIndent" && l[2].sliceSerialize(l[1], !0).length === 4 ? n(u) : e(u);
|
|
1951
1950
|
}
|
|
1952
1951
|
}
|
|
1953
|
-
function
|
|
1952
|
+
function Xi(t) {
|
|
1954
1953
|
let e = (t || {}).singleTilde;
|
|
1955
1954
|
const r = {
|
|
1956
1955
|
tokenize: u,
|
|
@@ -2025,7 +2024,7 @@ function Ki(t) {
|
|
|
2025
2024
|
}
|
|
2026
2025
|
}
|
|
2027
2026
|
}
|
|
2028
|
-
class
|
|
2027
|
+
class Ki {
|
|
2029
2028
|
/**
|
|
2030
2029
|
* Create a new edit map.
|
|
2031
2030
|
*/
|
|
@@ -2041,7 +2040,7 @@ class tu {
|
|
|
2041
2040
|
* @returns {void}
|
|
2042
2041
|
*/
|
|
2043
2042
|
add(n, e, r) {
|
|
2044
|
-
|
|
2043
|
+
tu(this, n, e, r);
|
|
2045
2044
|
}
|
|
2046
2045
|
// To do: not used here.
|
|
2047
2046
|
// /**
|
|
@@ -2075,7 +2074,7 @@ class tu {
|
|
|
2075
2074
|
this.map.length = 0;
|
|
2076
2075
|
}
|
|
2077
2076
|
}
|
|
2078
|
-
function
|
|
2077
|
+
function tu(t, n, e, r) {
|
|
2079
2078
|
let i = 0;
|
|
2080
2079
|
if (!(e === 0 && r.length === 0)) {
|
|
2081
2080
|
for (; i < t.map.length; ) {
|
|
@@ -2088,7 +2087,7 @@ function eu(t, n, e, r) {
|
|
|
2088
2087
|
t.map.push([n, e, r]);
|
|
2089
2088
|
}
|
|
2090
2089
|
}
|
|
2091
|
-
function
|
|
2090
|
+
function eu(t, n) {
|
|
2092
2091
|
let e = !1;
|
|
2093
2092
|
const r = [];
|
|
2094
2093
|
for (; n < t.length; ) {
|
|
@@ -2110,15 +2109,15 @@ function nu(t, n) {
|
|
|
2110
2109
|
}
|
|
2111
2110
|
return r;
|
|
2112
2111
|
}
|
|
2113
|
-
const
|
|
2112
|
+
const nu = {
|
|
2114
2113
|
flow: {
|
|
2115
2114
|
null: {
|
|
2116
|
-
tokenize:
|
|
2117
|
-
resolveAll:
|
|
2115
|
+
tokenize: ru,
|
|
2116
|
+
resolveAll: iu
|
|
2118
2117
|
}
|
|
2119
2118
|
}
|
|
2120
2119
|
};
|
|
2121
|
-
function
|
|
2120
|
+
function ru(t, n, e) {
|
|
2122
2121
|
const r = this;
|
|
2123
2122
|
let i = 0, u = 0, l;
|
|
2124
2123
|
return a;
|
|
@@ -2194,9 +2193,9 @@ function iu(t, n, e) {
|
|
|
2194
2193
|
return x === 92 || x === 124 ? (t.consume(x), $) : $(x);
|
|
2195
2194
|
}
|
|
2196
2195
|
}
|
|
2197
|
-
function
|
|
2196
|
+
function iu(t, n) {
|
|
2198
2197
|
let e = -1, r = !0, i = 0, u = [0, 0, 0, 0], l = [0, 0, 0, 0], a = !1, c = 0, s, f, o;
|
|
2199
|
-
const g = new
|
|
2198
|
+
const g = new Ki();
|
|
2200
2199
|
for (; ++e < t.length; ) {
|
|
2201
2200
|
const h = t[e], d = h[1];
|
|
2202
2201
|
h[0] === "enter" ? d.type === "tableHead" ? (a = !1, c !== 0 && (Be(g, n, c, s, f), f = void 0, c = 0), s = {
|
|
@@ -2234,7 +2233,7 @@ function uu(t, n) {
|
|
|
2234
2233
|
}
|
|
2235
2234
|
for (c !== 0 && Be(g, n, c, s, f), g.consume(n.events), e = -1; ++e < n.events.length; ) {
|
|
2236
2235
|
const h = n.events[e];
|
|
2237
|
-
h[0] === "enter" && h[1].type === "table" && (h[1]._align =
|
|
2236
|
+
h[0] === "enter" && h[1].type === "table" && (h[1]._align = eu(n.events, e));
|
|
2238
2237
|
}
|
|
2239
2238
|
return t;
|
|
2240
2239
|
}
|
|
@@ -2272,14 +2271,14 @@ function _t(t, n) {
|
|
|
2272
2271
|
const e = t[n], r = e[0] === "enter" ? "start" : "end";
|
|
2273
2272
|
return e[1][r];
|
|
2274
2273
|
}
|
|
2275
|
-
const
|
|
2276
|
-
tokenize:
|
|
2277
|
-
},
|
|
2274
|
+
const uu = {
|
|
2275
|
+
tokenize: au
|
|
2276
|
+
}, lu = {
|
|
2278
2277
|
text: {
|
|
2279
|
-
91:
|
|
2278
|
+
91: uu
|
|
2280
2279
|
}
|
|
2281
2280
|
};
|
|
2282
|
-
function
|
|
2281
|
+
function au(t, n, e) {
|
|
2283
2282
|
const r = this;
|
|
2284
2283
|
return i;
|
|
2285
2284
|
function i(c) {
|
|
@@ -2299,26 +2298,26 @@ function ou(t, n, e) {
|
|
|
2299
2298
|
function a(c) {
|
|
2300
2299
|
return z(c) ? n(c) : B(c) ? t.check(
|
|
2301
2300
|
{
|
|
2302
|
-
tokenize:
|
|
2301
|
+
tokenize: ou
|
|
2303
2302
|
},
|
|
2304
2303
|
n,
|
|
2305
2304
|
e
|
|
2306
2305
|
)(c) : e(c);
|
|
2307
2306
|
}
|
|
2308
2307
|
}
|
|
2309
|
-
function
|
|
2308
|
+
function ou(t, n, e) {
|
|
2310
2309
|
return P(t, r, "whitespace");
|
|
2311
2310
|
function r(i) {
|
|
2312
2311
|
return i === null ? e(i) : n(i);
|
|
2313
2312
|
}
|
|
2314
2313
|
}
|
|
2315
|
-
function
|
|
2314
|
+
function su(t) {
|
|
2316
2315
|
return on([
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2316
|
+
yr,
|
|
2317
|
+
Ni(),
|
|
2318
|
+
Xi(t),
|
|
2319
|
+
nu,
|
|
2320
|
+
lu
|
|
2322
2321
|
]);
|
|
2323
2322
|
}
|
|
2324
2323
|
function Pe(t, n) {
|
|
@@ -2330,7 +2329,7 @@ function Pe(t, n) {
|
|
|
2330
2329
|
r++, i = e.indexOf(n, i + n.length);
|
|
2331
2330
|
return r;
|
|
2332
2331
|
}
|
|
2333
|
-
function
|
|
2332
|
+
function cu(t) {
|
|
2334
2333
|
if (typeof t != "string")
|
|
2335
2334
|
throw new TypeError("Expected a string");
|
|
2336
2335
|
return t.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
@@ -2348,17 +2347,17 @@ const xe = (
|
|
|
2348
2347
|
*/
|
|
2349
2348
|
function(t) {
|
|
2350
2349
|
if (t == null)
|
|
2351
|
-
return
|
|
2350
|
+
return mu;
|
|
2352
2351
|
if (typeof t == "string")
|
|
2353
|
-
return
|
|
2352
|
+
return pu(t);
|
|
2354
2353
|
if (typeof t == "object")
|
|
2355
|
-
return Array.isArray(t) ?
|
|
2354
|
+
return Array.isArray(t) ? fu(t) : hu(t);
|
|
2356
2355
|
if (typeof t == "function")
|
|
2357
2356
|
return vt(t);
|
|
2358
2357
|
throw new Error("Expected function, string, or object as test");
|
|
2359
2358
|
}
|
|
2360
2359
|
);
|
|
2361
|
-
function
|
|
2360
|
+
function fu(t) {
|
|
2362
2361
|
const n = [];
|
|
2363
2362
|
let e = -1;
|
|
2364
2363
|
for (; ++e < t.length; )
|
|
@@ -2371,7 +2370,7 @@ function hu(t) {
|
|
|
2371
2370
|
return !1;
|
|
2372
2371
|
}
|
|
2373
2372
|
}
|
|
2374
|
-
function
|
|
2373
|
+
function hu(t) {
|
|
2375
2374
|
return vt(n);
|
|
2376
2375
|
function n(e) {
|
|
2377
2376
|
let r;
|
|
@@ -2380,7 +2379,7 @@ function pu(t) {
|
|
|
2380
2379
|
return !0;
|
|
2381
2380
|
}
|
|
2382
2381
|
}
|
|
2383
|
-
function
|
|
2382
|
+
function pu(t) {
|
|
2384
2383
|
return vt(n);
|
|
2385
2384
|
function n(e) {
|
|
2386
2385
|
return e && e.type === t;
|
|
@@ -2392,10 +2391,10 @@ function vt(t) {
|
|
|
2392
2391
|
return !!(e && typeof e == "object" && "type" in e && t.call(this, e, ...r));
|
|
2393
2392
|
}
|
|
2394
2393
|
}
|
|
2395
|
-
function
|
|
2394
|
+
function mu() {
|
|
2396
2395
|
return !0;
|
|
2397
2396
|
}
|
|
2398
|
-
const
|
|
2397
|
+
const gu = !0, Re = !1, du = "skip", xu = (
|
|
2399
2398
|
/**
|
|
2400
2399
|
* @type {(
|
|
2401
2400
|
* (<Tree extends Node, Check extends Test>(tree: Tree, test: Check, visitor: BuildVisitor<Tree, Check>, reverse?: boolean | null | undefined) => void) &
|
|
@@ -2429,9 +2428,9 @@ const du = !0, Re = !1, xu = "skip", ku = (
|
|
|
2429
2428
|
return o;
|
|
2430
2429
|
function o() {
|
|
2431
2430
|
let g = [], h, d, w;
|
|
2432
|
-
if (i(a, c, s[s.length - 1] || null) && (g =
|
|
2431
|
+
if (i(a, c, s[s.length - 1] || null) && (g = ku(e(a, s)), g[0] === Re))
|
|
2433
2432
|
return g;
|
|
2434
|
-
if (a.children && g[0] !==
|
|
2433
|
+
if (a.children && g[0] !== du)
|
|
2435
2434
|
for (d = -1 + u, w = s.concat(a); d > -1 && d < a.children.length; ) {
|
|
2436
2435
|
if (h = l(a.children[d], d, w)(), h[0] === Re)
|
|
2437
2436
|
return h;
|
|
@@ -2442,10 +2441,10 @@ const du = !0, Re = !1, xu = "skip", ku = (
|
|
|
2442
2441
|
}
|
|
2443
2442
|
}
|
|
2444
2443
|
);
|
|
2445
|
-
function
|
|
2446
|
-
return Array.isArray(t) ? t : typeof t == "number" ? [
|
|
2444
|
+
function ku(t) {
|
|
2445
|
+
return Array.isArray(t) ? t : typeof t == "number" ? [gu, t] : [t];
|
|
2447
2446
|
}
|
|
2448
|
-
const
|
|
2447
|
+
const bu = {}.hasOwnProperty, yu = (
|
|
2449
2448
|
/**
|
|
2450
2449
|
* @type {(
|
|
2451
2450
|
* (<Tree extends Node>(tree: Tree, find: Find, replace?: Replace | null | undefined, options?: Options | null | undefined) => Tree) &
|
|
@@ -2463,10 +2462,10 @@ const yu = {}.hasOwnProperty, wu = (
|
|
|
2463
2462
|
function(t, n, e, r) {
|
|
2464
2463
|
let i, u;
|
|
2465
2464
|
typeof n == "string" || n instanceof RegExp ? (u = [[n, e]], i = r) : (u = n, i = e), i || (i = {});
|
|
2466
|
-
const l = xe(i.ignore || []), a =
|
|
2465
|
+
const l = xe(i.ignore || []), a = wu(u);
|
|
2467
2466
|
let c = -1;
|
|
2468
2467
|
for (; ++c < a.length; )
|
|
2469
|
-
|
|
2468
|
+
xu(t, "text", s);
|
|
2470
2469
|
return t;
|
|
2471
2470
|
function s(o, g) {
|
|
2472
2471
|
let h = -1, d;
|
|
@@ -2510,7 +2509,7 @@ const yu = {}.hasOwnProperty, wu = (
|
|
|
2510
2509
|
}
|
|
2511
2510
|
}
|
|
2512
2511
|
);
|
|
2513
|
-
function
|
|
2512
|
+
function wu(t) {
|
|
2514
2513
|
const n = [];
|
|
2515
2514
|
if (typeof t != "object")
|
|
2516
2515
|
throw new TypeError("Expected array or object as schema");
|
|
@@ -2524,31 +2523,31 @@ function Cu(t) {
|
|
|
2524
2523
|
} else {
|
|
2525
2524
|
let e;
|
|
2526
2525
|
for (e in t)
|
|
2527
|
-
|
|
2526
|
+
bu.call(t, e) && n.push([Me(e), Oe(t[e])]);
|
|
2528
2527
|
}
|
|
2529
2528
|
return n;
|
|
2530
2529
|
}
|
|
2531
2530
|
function Me(t) {
|
|
2532
|
-
return typeof t == "string" ? new RegExp(
|
|
2531
|
+
return typeof t == "string" ? new RegExp(cu(t), "g") : t;
|
|
2533
2532
|
}
|
|
2534
2533
|
function Oe(t) {
|
|
2535
2534
|
return typeof t == "function" ? t : () => t;
|
|
2536
2535
|
}
|
|
2537
|
-
const Gt = "phrasing", Yt = ["autolink", "link", "image", "label"],
|
|
2538
|
-
transforms: [
|
|
2536
|
+
const Gt = "phrasing", Yt = ["autolink", "link", "image", "label"], Cu = {
|
|
2537
|
+
transforms: [Iu],
|
|
2539
2538
|
enter: {
|
|
2540
|
-
literalAutolink:
|
|
2539
|
+
literalAutolink: Su,
|
|
2541
2540
|
literalAutolinkEmail: Jt,
|
|
2542
2541
|
literalAutolinkHttp: Jt,
|
|
2543
2542
|
literalAutolinkWww: Jt
|
|
2544
2543
|
},
|
|
2545
2544
|
exit: {
|
|
2546
|
-
literalAutolink:
|
|
2547
|
-
literalAutolinkEmail:
|
|
2548
|
-
literalAutolinkHttp:
|
|
2549
|
-
literalAutolinkWww:
|
|
2545
|
+
literalAutolink: zu,
|
|
2546
|
+
literalAutolinkEmail: Eu,
|
|
2547
|
+
literalAutolinkHttp: _u,
|
|
2548
|
+
literalAutolinkWww: Au
|
|
2550
2549
|
}
|
|
2551
|
-
},
|
|
2550
|
+
}, Fu = {
|
|
2552
2551
|
unsafe: [
|
|
2553
2552
|
{
|
|
2554
2553
|
character: "@",
|
|
@@ -2567,16 +2566,16 @@ const Gt = "phrasing", Yt = ["autolink", "link", "image", "label"], Fu = {
|
|
|
2567
2566
|
{ character: ":", before: "[ps]", after: "\\/", inConstruct: Gt, notInConstruct: Yt }
|
|
2568
2567
|
]
|
|
2569
2568
|
};
|
|
2570
|
-
function
|
|
2569
|
+
function Su(t) {
|
|
2571
2570
|
this.enter({ type: "link", title: null, url: "", children: [] }, t);
|
|
2572
2571
|
}
|
|
2573
2572
|
function Jt(t) {
|
|
2574
2573
|
this.config.enter.autolinkProtocol.call(this, t);
|
|
2575
2574
|
}
|
|
2576
|
-
function
|
|
2575
|
+
function _u(t) {
|
|
2577
2576
|
this.config.exit.autolinkProtocol.call(this, t);
|
|
2578
2577
|
}
|
|
2579
|
-
function
|
|
2578
|
+
function Au(t) {
|
|
2580
2579
|
this.config.exit.data.call(this, t);
|
|
2581
2580
|
const n = (
|
|
2582
2581
|
/** @type {Link} */
|
|
@@ -2584,27 +2583,27 @@ function Eu(t) {
|
|
|
2584
2583
|
);
|
|
2585
2584
|
n.url = "http://" + this.sliceSerialize(t);
|
|
2586
2585
|
}
|
|
2587
|
-
function
|
|
2586
|
+
function Eu(t) {
|
|
2588
2587
|
this.config.exit.autolinkEmail.call(this, t);
|
|
2589
2588
|
}
|
|
2590
|
-
function
|
|
2589
|
+
function zu(t) {
|
|
2591
2590
|
this.exit(t);
|
|
2592
2591
|
}
|
|
2593
|
-
function
|
|
2594
|
-
|
|
2592
|
+
function Iu(t) {
|
|
2593
|
+
yu(
|
|
2595
2594
|
t,
|
|
2596
2595
|
[
|
|
2597
|
-
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,
|
|
2598
|
-
[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,
|
|
2596
|
+
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, Tu],
|
|
2597
|
+
[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g, Du]
|
|
2599
2598
|
],
|
|
2600
2599
|
{ ignore: ["link", "linkReference"] }
|
|
2601
2600
|
);
|
|
2602
2601
|
}
|
|
2603
|
-
function
|
|
2602
|
+
function Tu(t, n, e, r, i) {
|
|
2604
2603
|
let u = "";
|
|
2605
|
-
if (!Sn(i) || (/^w/i.test(n) && (e = n + e, n = "", u = "http://"), !
|
|
2604
|
+
if (!Sn(i) || (/^w/i.test(n) && (e = n + e, n = "", u = "http://"), !Lu(e)))
|
|
2606
2605
|
return !1;
|
|
2607
|
-
const l =
|
|
2606
|
+
const l = Bu(e + r);
|
|
2608
2607
|
if (!l[0]) return !1;
|
|
2609
2608
|
const a = {
|
|
2610
2609
|
type: "link",
|
|
@@ -2614,7 +2613,7 @@ function Du(t, n, e, r, i) {
|
|
|
2614
2613
|
};
|
|
2615
2614
|
return l[1] ? [a, { type: "text", value: l[1] }] : a;
|
|
2616
2615
|
}
|
|
2617
|
-
function
|
|
2616
|
+
function Du(t, n, e, r) {
|
|
2618
2617
|
return (
|
|
2619
2618
|
// Not an expected previous character.
|
|
2620
2619
|
!Sn(r, !0) || // Label ends in not allowed character.
|
|
@@ -2626,11 +2625,11 @@ function Lu(t, n, e, r) {
|
|
|
2626
2625
|
}
|
|
2627
2626
|
);
|
|
2628
2627
|
}
|
|
2629
|
-
function
|
|
2628
|
+
function Lu(t) {
|
|
2630
2629
|
const n = t.split(".");
|
|
2631
2630
|
return !(n.length < 2 || n[n.length - 1] && (/_/.test(n[n.length - 1]) || !/[a-zA-Z\d]/.test(n[n.length - 1])) || n[n.length - 2] && (/_/.test(n[n.length - 2]) || !/[a-zA-Z\d]/.test(n[n.length - 2])));
|
|
2632
2631
|
}
|
|
2633
|
-
function
|
|
2632
|
+
function Bu(t) {
|
|
2634
2633
|
const n = /[!"&'),.:;<>?\]}]+$/.exec(t);
|
|
2635
2634
|
if (!n)
|
|
2636
2635
|
return [t, void 0];
|
|
@@ -2657,11 +2656,11 @@ function _n(t, n) {
|
|
|
2657
2656
|
e > 1114111 ? "�" : String.fromCharCode(e)
|
|
2658
2657
|
);
|
|
2659
2658
|
}
|
|
2660
|
-
const
|
|
2659
|
+
const Pu = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
|
|
2661
2660
|
function An(t) {
|
|
2662
|
-
return t.replace(
|
|
2661
|
+
return t.replace(Pu, Ru);
|
|
2663
2662
|
}
|
|
2664
|
-
function
|
|
2663
|
+
function Ru(t, n, e) {
|
|
2665
2664
|
if (n)
|
|
2666
2665
|
return n;
|
|
2667
2666
|
if (e.charCodeAt(0) === 35) {
|
|
@@ -2673,7 +2672,7 @@ function Mu(t, n, e) {
|
|
|
2673
2672
|
function En(t) {
|
|
2674
2673
|
return t.label || !t.identifier ? t.label || "" : An(t.identifier);
|
|
2675
2674
|
}
|
|
2676
|
-
function
|
|
2675
|
+
function Mu(t, n, e) {
|
|
2677
2676
|
const r = n.indexStack, i = t.children || [], u = n.createTracker(e), l = [];
|
|
2678
2677
|
let a = -1;
|
|
2679
2678
|
for (r.push(-1); ++a < i.length; ) {
|
|
@@ -2689,12 +2688,12 @@ function Ou(t, n, e) {
|
|
|
2689
2688
|
})
|
|
2690
2689
|
)
|
|
2691
2690
|
), c.type !== "list" && (n.bulletLastUsed = void 0), a < i.length - 1 && l.push(
|
|
2692
|
-
u.move(
|
|
2691
|
+
u.move(Ou(c, i[a + 1], t, n))
|
|
2693
2692
|
);
|
|
2694
2693
|
}
|
|
2695
2694
|
return r.pop(), l.join("");
|
|
2696
2695
|
}
|
|
2697
|
-
function
|
|
2696
|
+
function Ou(t, n, e, r) {
|
|
2698
2697
|
let i = r.join.length;
|
|
2699
2698
|
for (; i--; ) {
|
|
2700
2699
|
const u = r.join[i](t, n, e, r);
|
|
@@ -2714,11 +2713,11 @@ function ju(t, n, e, r) {
|
|
|
2714
2713
|
|
|
2715
2714
|
`;
|
|
2716
2715
|
}
|
|
2717
|
-
const
|
|
2718
|
-
function
|
|
2716
|
+
const ju = /\r?\n|\r/g;
|
|
2717
|
+
function Hu(t, n) {
|
|
2719
2718
|
const e = [];
|
|
2720
2719
|
let r = 0, i = 0, u;
|
|
2721
|
-
for (; u =
|
|
2720
|
+
for (; u = ju.exec(t); )
|
|
2722
2721
|
l(t.slice(r, u.index)), e.push(u[0]), r = u.index + u[0].length, i++;
|
|
2723
2722
|
return l(t.slice(r)), e.join("");
|
|
2724
2723
|
function l(a) {
|
|
@@ -2735,7 +2734,7 @@ function zn(t) {
|
|
|
2735
2734
|
}
|
|
2736
2735
|
return t._compiled;
|
|
2737
2736
|
}
|
|
2738
|
-
function
|
|
2737
|
+
function $u(t, n) {
|
|
2739
2738
|
return je(t, n.inConstruct, !0) && !je(t, n.notInConstruct, !1);
|
|
2740
2739
|
}
|
|
2741
2740
|
function je(t, n, e) {
|
|
@@ -2752,7 +2751,7 @@ function In(t, n, e) {
|
|
|
2752
2751
|
let a = -1;
|
|
2753
2752
|
for (; ++a < t.unsafe.length; ) {
|
|
2754
2753
|
const f = t.unsafe[a];
|
|
2755
|
-
if (
|
|
2754
|
+
if (!$u(t.stack, f))
|
|
2756
2755
|
continue;
|
|
2757
2756
|
const o = zn(f);
|
|
2758
2757
|
let g;
|
|
@@ -2761,7 +2760,7 @@ function In(t, n, e) {
|
|
|
2761
2760
|
i.includes(w) ? (l[w].before && !h && (l[w].before = !1), l[w].after && !d && (l[w].after = !1)) : (i.push(w), l[w] = { before: h, after: d });
|
|
2762
2761
|
}
|
|
2763
2762
|
}
|
|
2764
|
-
i.sort(
|
|
2763
|
+
i.sort(qu);
|
|
2765
2764
|
let c = e.before ? e.before.length : 0;
|
|
2766
2765
|
const s = r.length - (e.after ? e.after.length : 0);
|
|
2767
2766
|
for (a = -1; ++a < i.length; ) {
|
|
@@ -2772,7 +2771,7 @@ function In(t, n, e) {
|
|
|
2772
2771
|
}
|
|
2773
2772
|
return u.push(He(r.slice(c, s), e.after)), u.join("");
|
|
2774
2773
|
}
|
|
2775
|
-
function
|
|
2774
|
+
function qu(t, n) {
|
|
2776
2775
|
return t - n;
|
|
2777
2776
|
}
|
|
2778
2777
|
function He(t, n) {
|
|
@@ -2799,40 +2798,40 @@ function Nt(t) {
|
|
|
2799
2798
|
return i += o.length - 1, u = o.length === 1 ? u + g.length : 1 + g.length + r, f;
|
|
2800
2799
|
}
|
|
2801
2800
|
}
|
|
2802
|
-
Tn.peek =
|
|
2803
|
-
function
|
|
2801
|
+
Tn.peek = Xu;
|
|
2802
|
+
function Vu() {
|
|
2804
2803
|
return {
|
|
2805
2804
|
enter: {
|
|
2806
|
-
gfmFootnoteDefinition:
|
|
2807
|
-
gfmFootnoteDefinitionLabelString:
|
|
2808
|
-
gfmFootnoteCall:
|
|
2809
|
-
gfmFootnoteCallString:
|
|
2805
|
+
gfmFootnoteDefinition: Nu,
|
|
2806
|
+
gfmFootnoteDefinitionLabelString: Uu,
|
|
2807
|
+
gfmFootnoteCall: Zu,
|
|
2808
|
+
gfmFootnoteCallString: Gu
|
|
2810
2809
|
},
|
|
2811
2810
|
exit: {
|
|
2812
|
-
gfmFootnoteDefinition:
|
|
2813
|
-
gfmFootnoteDefinitionLabelString:
|
|
2814
|
-
gfmFootnoteCall:
|
|
2815
|
-
gfmFootnoteCallString:
|
|
2811
|
+
gfmFootnoteDefinition: Qu,
|
|
2812
|
+
gfmFootnoteDefinitionLabelString: Wu,
|
|
2813
|
+
gfmFootnoteCall: Ju,
|
|
2814
|
+
gfmFootnoteCallString: Yu
|
|
2816
2815
|
}
|
|
2817
2816
|
};
|
|
2818
2817
|
}
|
|
2819
|
-
function
|
|
2818
|
+
function vu() {
|
|
2820
2819
|
return {
|
|
2821
2820
|
// This is on by default already.
|
|
2822
2821
|
unsafe: [{ character: "[", inConstruct: ["phrasing", "label", "reference"] }],
|
|
2823
|
-
handlers: { footnoteDefinition:
|
|
2822
|
+
handlers: { footnoteDefinition: Ku, footnoteReference: Tn }
|
|
2824
2823
|
};
|
|
2825
2824
|
}
|
|
2826
|
-
function
|
|
2825
|
+
function Nu(t) {
|
|
2827
2826
|
this.enter(
|
|
2828
2827
|
{ type: "footnoteDefinition", identifier: "", label: "", children: [] },
|
|
2829
2828
|
t
|
|
2830
2829
|
);
|
|
2831
2830
|
}
|
|
2832
|
-
function
|
|
2831
|
+
function Uu() {
|
|
2833
2832
|
this.buffer();
|
|
2834
2833
|
}
|
|
2835
|
-
function
|
|
2834
|
+
function Wu(t) {
|
|
2836
2835
|
const n = this.resume(), e = (
|
|
2837
2836
|
/** @type {FootnoteDefinition} */
|
|
2838
2837
|
this.stack[this.stack.length - 1]
|
|
@@ -2841,16 +2840,16 @@ function Qu(t) {
|
|
|
2841
2840
|
this.sliceSerialize(t)
|
|
2842
2841
|
).toLowerCase();
|
|
2843
2842
|
}
|
|
2844
|
-
function
|
|
2843
|
+
function Qu(t) {
|
|
2845
2844
|
this.exit(t);
|
|
2846
2845
|
}
|
|
2847
|
-
function
|
|
2846
|
+
function Zu(t) {
|
|
2848
2847
|
this.enter({ type: "footnoteReference", identifier: "", label: "" }, t);
|
|
2849
2848
|
}
|
|
2850
|
-
function
|
|
2849
|
+
function Gu() {
|
|
2851
2850
|
this.buffer();
|
|
2852
2851
|
}
|
|
2853
|
-
function
|
|
2852
|
+
function Yu(t) {
|
|
2854
2853
|
const n = this.resume(), e = (
|
|
2855
2854
|
/** @type {FootnoteDefinition} */
|
|
2856
2855
|
this.stack[this.stack.length - 1]
|
|
@@ -2859,7 +2858,7 @@ function Ju(t) {
|
|
|
2859
2858
|
this.sliceSerialize(t)
|
|
2860
2859
|
).toLowerCase();
|
|
2861
2860
|
}
|
|
2862
|
-
function
|
|
2861
|
+
function Ju(t) {
|
|
2863
2862
|
this.exit(t);
|
|
2864
2863
|
}
|
|
2865
2864
|
function Tn(t, n, e, r) {
|
|
@@ -2874,10 +2873,10 @@ function Tn(t, n, e, r) {
|
|
|
2874
2873
|
})
|
|
2875
2874
|
), a(), l(), u += i.move("]"), u;
|
|
2876
2875
|
}
|
|
2877
|
-
function
|
|
2876
|
+
function Xu() {
|
|
2878
2877
|
return "[";
|
|
2879
2878
|
}
|
|
2880
|
-
function
|
|
2879
|
+
function Ku(t, n, e, r) {
|
|
2881
2880
|
const i = Nt(r);
|
|
2882
2881
|
let u = i.move("[^");
|
|
2883
2882
|
const l = e.enter("footnoteDefinition"), a = e.enter("label");
|
|
@@ -2890,10 +2889,10 @@ function tl(t, n, e, r) {
|
|
|
2890
2889
|
), a(), u += i.move(
|
|
2891
2890
|
"]:" + (t.children && t.children.length > 0 ? " " : "")
|
|
2892
2891
|
), i.shift(4), u += i.move(
|
|
2893
|
-
|
|
2892
|
+
Hu(Mu(t, e, i.current()), tl)
|
|
2894
2893
|
), l(), u;
|
|
2895
2894
|
}
|
|
2896
|
-
function
|
|
2895
|
+
function tl(t, n, e) {
|
|
2897
2896
|
return n === 0 ? t : (e ? "" : " ") + t;
|
|
2898
2897
|
}
|
|
2899
2898
|
function Dn(t, n, e) {
|
|
@@ -2929,7 +2928,7 @@ function Dn(t, n, e) {
|
|
|
2929
2928
|
}
|
|
2930
2929
|
return r.pop(), u.join("");
|
|
2931
2930
|
}
|
|
2932
|
-
const
|
|
2931
|
+
const el = [
|
|
2933
2932
|
"autolink",
|
|
2934
2933
|
"destinationLiteral",
|
|
2935
2934
|
"destinationRaw",
|
|
@@ -2937,25 +2936,25 @@ const nl = [
|
|
|
2937
2936
|
"titleQuote",
|
|
2938
2937
|
"titleApostrophe"
|
|
2939
2938
|
];
|
|
2940
|
-
Ln.peek =
|
|
2941
|
-
const
|
|
2939
|
+
Ln.peek = ll;
|
|
2940
|
+
const nl = {
|
|
2942
2941
|
canContainEols: ["delete"],
|
|
2943
|
-
enter: { strikethrough:
|
|
2944
|
-
exit: { strikethrough:
|
|
2945
|
-
},
|
|
2942
|
+
enter: { strikethrough: il },
|
|
2943
|
+
exit: { strikethrough: ul }
|
|
2944
|
+
}, rl = {
|
|
2946
2945
|
unsafe: [
|
|
2947
2946
|
{
|
|
2948
2947
|
character: "~",
|
|
2949
2948
|
inConstruct: "phrasing",
|
|
2950
|
-
notInConstruct:
|
|
2949
|
+
notInConstruct: el
|
|
2951
2950
|
}
|
|
2952
2951
|
],
|
|
2953
2952
|
handlers: { delete: Ln }
|
|
2954
2953
|
};
|
|
2955
|
-
function
|
|
2954
|
+
function il(t) {
|
|
2956
2955
|
this.enter({ type: "delete", children: [] }, t);
|
|
2957
2956
|
}
|
|
2958
|
-
function
|
|
2957
|
+
function ul(t) {
|
|
2959
2958
|
this.exit(t);
|
|
2960
2959
|
}
|
|
2961
2960
|
function Ln(t, n, e, r) {
|
|
@@ -2967,10 +2966,10 @@ function Ln(t, n, e, r) {
|
|
|
2967
2966
|
after: "~"
|
|
2968
2967
|
}), l += i.move("~~"), u(), l;
|
|
2969
2968
|
}
|
|
2970
|
-
function
|
|
2969
|
+
function ll() {
|
|
2971
2970
|
return "~";
|
|
2972
2971
|
}
|
|
2973
|
-
Bn.peek =
|
|
2972
|
+
Bn.peek = al;
|
|
2974
2973
|
function Bn(t, n, e) {
|
|
2975
2974
|
let r = t.value || "", i = "`", u = -1;
|
|
2976
2975
|
for (; new RegExp("(^|[^`])" + i + "([^`]|$)").test(r); )
|
|
@@ -2986,20 +2985,20 @@ function Bn(t, n, e) {
|
|
|
2986
2985
|
}
|
|
2987
2986
|
return i + r + i;
|
|
2988
2987
|
}
|
|
2989
|
-
function
|
|
2988
|
+
function al() {
|
|
2990
2989
|
return "`";
|
|
2991
2990
|
}
|
|
2992
|
-
function
|
|
2991
|
+
function ol(t) {
|
|
2993
2992
|
return t.length;
|
|
2994
2993
|
}
|
|
2995
|
-
function
|
|
2996
|
-
const e = n || {}, r = (e.align || []).concat(), i = e.stringLength ||
|
|
2994
|
+
function sl(t, n) {
|
|
2995
|
+
const e = n || {}, r = (e.align || []).concat(), i = e.stringLength || ol, u = [], l = [], a = [], c = [];
|
|
2997
2996
|
let s = 0, f = -1;
|
|
2998
2997
|
for (; ++f < t.length; ) {
|
|
2999
2998
|
const w = [], S = [];
|
|
3000
2999
|
let b = -1;
|
|
3001
3000
|
for (t[f].length > s && (s = t[f].length); ++b < t[f].length; ) {
|
|
3002
|
-
const E =
|
|
3001
|
+
const E = cl(t[f][b]);
|
|
3003
3002
|
if (e.alignDelimiters !== !1) {
|
|
3004
3003
|
const C = i(E);
|
|
3005
3004
|
S[b] = C, (c[b] === void 0 || C > c[b]) && (c[b] = C);
|
|
@@ -3054,29 +3053,29 @@ function cl(t, n) {
|
|
|
3054
3053
|
return d.join(`
|
|
3055
3054
|
`);
|
|
3056
3055
|
}
|
|
3057
|
-
function
|
|
3056
|
+
function cl(t) {
|
|
3058
3057
|
return t == null ? "" : String(t);
|
|
3059
3058
|
}
|
|
3060
3059
|
function $e(t) {
|
|
3061
3060
|
const n = typeof t == "string" ? t.codePointAt(0) : 0;
|
|
3062
3061
|
return n === 67 || n === 99 ? 99 : n === 76 || n === 108 ? 108 : n === 82 || n === 114 ? 114 : 0;
|
|
3063
3062
|
}
|
|
3064
|
-
const
|
|
3063
|
+
const fl = {
|
|
3065
3064
|
enter: {
|
|
3066
|
-
table:
|
|
3065
|
+
table: hl,
|
|
3067
3066
|
tableData: qe,
|
|
3068
3067
|
tableHeader: qe,
|
|
3069
|
-
tableRow:
|
|
3068
|
+
tableRow: ml
|
|
3070
3069
|
},
|
|
3071
3070
|
exit: {
|
|
3072
|
-
codeText:
|
|
3073
|
-
table:
|
|
3071
|
+
codeText: gl,
|
|
3072
|
+
table: pl,
|
|
3074
3073
|
tableData: Xt,
|
|
3075
3074
|
tableHeader: Xt,
|
|
3076
3075
|
tableRow: Xt
|
|
3077
3076
|
}
|
|
3078
3077
|
};
|
|
3079
|
-
function
|
|
3078
|
+
function hl(t) {
|
|
3080
3079
|
const n = t._align;
|
|
3081
3080
|
this.enter(
|
|
3082
3081
|
{
|
|
@@ -3087,10 +3086,10 @@ function pl(t) {
|
|
|
3087
3086
|
t
|
|
3088
3087
|
), this.setData("inTable", !0);
|
|
3089
3088
|
}
|
|
3090
|
-
function
|
|
3089
|
+
function pl(t) {
|
|
3091
3090
|
this.exit(t), this.setData("inTable");
|
|
3092
3091
|
}
|
|
3093
|
-
function
|
|
3092
|
+
function ml(t) {
|
|
3094
3093
|
this.enter({ type: "tableRow", children: [] }, t);
|
|
3095
3094
|
}
|
|
3096
3095
|
function Xt(t) {
|
|
@@ -3099,19 +3098,19 @@ function Xt(t) {
|
|
|
3099
3098
|
function qe(t) {
|
|
3100
3099
|
this.enter({ type: "tableCell", children: [] }, t);
|
|
3101
3100
|
}
|
|
3102
|
-
function
|
|
3101
|
+
function gl(t) {
|
|
3103
3102
|
let n = this.resume();
|
|
3104
|
-
this.getData("inTable") && (n = n.replace(/\\([\\|])/g,
|
|
3103
|
+
this.getData("inTable") && (n = n.replace(/\\([\\|])/g, dl));
|
|
3105
3104
|
const e = (
|
|
3106
3105
|
/** @type {InlineCode} */
|
|
3107
3106
|
this.stack[this.stack.length - 1]
|
|
3108
3107
|
);
|
|
3109
3108
|
e.value = n, this.exit(t);
|
|
3110
3109
|
}
|
|
3111
|
-
function
|
|
3110
|
+
function dl(t, n) {
|
|
3112
3111
|
return n === "|" ? n : t;
|
|
3113
3112
|
}
|
|
3114
|
-
function
|
|
3113
|
+
function xl(t) {
|
|
3115
3114
|
const n = t || {}, e = n.tableCellPadding, r = n.tablePipeAlign, i = n.stringLength, u = e ? " " : "|";
|
|
3116
3115
|
return {
|
|
3117
3116
|
unsafe: [
|
|
@@ -3160,7 +3159,7 @@ function kl(t) {
|
|
|
3160
3159
|
return E(), b(), C;
|
|
3161
3160
|
}
|
|
3162
3161
|
function s(h, d) {
|
|
3163
|
-
return
|
|
3162
|
+
return sl(h, {
|
|
3164
3163
|
align: d,
|
|
3165
3164
|
// @ts-expect-error: `markdown-table` types should support `null`.
|
|
3166
3165
|
alignDelimiters: r,
|
|
@@ -3200,7 +3199,7 @@ function kl(t) {
|
|
|
3200
3199
|
return w.stack.includes("tableCell") && (S = S.replace(/\|/g, "\\$&")), S;
|
|
3201
3200
|
}
|
|
3202
3201
|
}
|
|
3203
|
-
function
|
|
3202
|
+
function kl(t) {
|
|
3204
3203
|
const n = t.options.bullet || "*";
|
|
3205
3204
|
if (n !== "*" && n !== "+" && n !== "-")
|
|
3206
3205
|
throw new Error(
|
|
@@ -3208,7 +3207,7 @@ function bl(t) {
|
|
|
3208
3207
|
);
|
|
3209
3208
|
return n;
|
|
3210
3209
|
}
|
|
3211
|
-
function
|
|
3210
|
+
function bl(t) {
|
|
3212
3211
|
const n = t.options.listItemIndent || "tab";
|
|
3213
3212
|
if (n === 1 || n === "1")
|
|
3214
3213
|
return "one";
|
|
@@ -3218,9 +3217,9 @@ function yl(t) {
|
|
|
3218
3217
|
);
|
|
3219
3218
|
return n;
|
|
3220
3219
|
}
|
|
3221
|
-
function
|
|
3222
|
-
const i =
|
|
3223
|
-
let u = e.bulletCurrent ||
|
|
3220
|
+
function yl(t, n, e, r) {
|
|
3221
|
+
const i = bl(e);
|
|
3222
|
+
let u = e.bulletCurrent || kl(e);
|
|
3224
3223
|
n && n.type === "list" && n.ordered && (u = (typeof n.start == "number" && n.start > -1 ? n.start : 1) + (e.options.incrementListMarker === !1 ? 0 : n.children.indexOf(t)) + u);
|
|
3225
3224
|
let l = u.length + 1;
|
|
3226
3225
|
(i === "tab" || i === "mixed" && (n && n.type === "list" && n.spread || t.spread)) && (l = Math.ceil(l / 4) * 4);
|
|
@@ -3235,15 +3234,15 @@ function wl(t, n, e, r) {
|
|
|
3235
3234
|
return g ? (h ? "" : " ".repeat(l)) + o : (h ? u : u + " ".repeat(l - u.length)) + o;
|
|
3236
3235
|
}
|
|
3237
3236
|
}
|
|
3238
|
-
const
|
|
3237
|
+
const wl = {
|
|
3239
3238
|
exit: {
|
|
3240
3239
|
taskListCheckValueChecked: Ve,
|
|
3241
3240
|
taskListCheckValueUnchecked: Ve,
|
|
3242
|
-
paragraph:
|
|
3241
|
+
paragraph: Fl
|
|
3243
3242
|
}
|
|
3244
|
-
},
|
|
3243
|
+
}, Cl = {
|
|
3245
3244
|
unsafe: [{ atBreak: !0, character: "-", after: "[:|-]" }],
|
|
3246
|
-
handlers: { listItem:
|
|
3245
|
+
handlers: { listItem: Sl }
|
|
3247
3246
|
};
|
|
3248
3247
|
function Ve(t) {
|
|
3249
3248
|
const n = (
|
|
@@ -3252,7 +3251,7 @@ function Ve(t) {
|
|
|
3252
3251
|
);
|
|
3253
3252
|
n.checked = t.type === "taskListCheckValueChecked";
|
|
3254
3253
|
}
|
|
3255
|
-
function
|
|
3254
|
+
function Fl(t) {
|
|
3256
3255
|
const n = (
|
|
3257
3256
|
/** @type {Parents} */
|
|
3258
3257
|
this.stack[this.stack.length - 2]
|
|
@@ -3277,10 +3276,10 @@ function Sl(t) {
|
|
|
3277
3276
|
}
|
|
3278
3277
|
this.exit(t);
|
|
3279
3278
|
}
|
|
3280
|
-
function
|
|
3279
|
+
function Sl(t, n, e, r) {
|
|
3281
3280
|
const i = t.children[0], u = typeof t.checked == "boolean" && i && i.type === "paragraph", l = "[" + (t.checked ? "x" : " ") + "] ", a = Nt(r);
|
|
3282
3281
|
u && a.move(l);
|
|
3283
|
-
let c =
|
|
3282
|
+
let c = yl(t, n, e, {
|
|
3284
3283
|
...r,
|
|
3285
3284
|
...a.current()
|
|
3286
3285
|
});
|
|
@@ -3289,29 +3288,29 @@ function _l(t, n, e, r) {
|
|
|
3289
3288
|
return f + l;
|
|
3290
3289
|
}
|
|
3291
3290
|
}
|
|
3292
|
-
function
|
|
3291
|
+
function _l() {
|
|
3293
3292
|
return [
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3293
|
+
Cu,
|
|
3294
|
+
Vu(),
|
|
3295
|
+
nl,
|
|
3296
|
+
fl,
|
|
3297
|
+
wl
|
|
3299
3298
|
];
|
|
3300
3299
|
}
|
|
3301
|
-
function
|
|
3300
|
+
function Al(t) {
|
|
3302
3301
|
return {
|
|
3303
3302
|
extensions: [
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3303
|
+
Fu,
|
|
3304
|
+
vu(),
|
|
3305
|
+
rl,
|
|
3306
|
+
xl(t),
|
|
3307
|
+
Cl
|
|
3309
3308
|
]
|
|
3310
3309
|
};
|
|
3311
3310
|
}
|
|
3312
|
-
function
|
|
3311
|
+
function El(t = {}) {
|
|
3313
3312
|
const n = this.data();
|
|
3314
|
-
e("micromarkExtensions",
|
|
3313
|
+
e("micromarkExtensions", su(t)), e("fromMarkdownExtensions", _l()), e("toMarkdownExtensions", Al(t));
|
|
3315
3314
|
function e(r, i) {
|
|
3316
3315
|
/** @type {unknown[]} */
|
|
3317
3316
|
// Other extensions
|
|
@@ -3323,6 +3322,9 @@ function ve(t) {
|
|
|
3323
3322
|
if (t)
|
|
3324
3323
|
throw t;
|
|
3325
3324
|
}
|
|
3325
|
+
function zl(t) {
|
|
3326
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
3327
|
+
}
|
|
3326
3328
|
var Mt = Object.prototype.hasOwnProperty, Pn = Object.prototype.toString, Ne = Object.defineProperty, Ue = Object.getOwnPropertyDescriptor, We = function(n) {
|
|
3327
3329
|
return typeof Array.isArray == "function" ? Array.isArray(n) : Pn.call(n) === "[object Array]";
|
|
3328
3330
|
}, Qe = function(n) {
|
|
@@ -3357,7 +3359,7 @@ var Mt = Object.prototype.hasOwnProperty, Pn = Object.prototype.toString, Ne = O
|
|
|
3357
3359
|
r = Ge(a, e), i = Ge(n, e), a !== i && (f && i && (Qe(i) || (u = We(i))) ? (u ? (u = !1, l = r && We(r) ? r : []) : l = r && Qe(r) ? r : {}, Ze(a, { name: e, newValue: t(f, l, i) })) : typeof i < "u" && Ze(a, { name: e, newValue: i }));
|
|
3358
3360
|
return a;
|
|
3359
3361
|
};
|
|
3360
|
-
const Kt = /* @__PURE__ */
|
|
3362
|
+
const Kt = /* @__PURE__ */ zl(Il);
|
|
3361
3363
|
function ce(t) {
|
|
3362
3364
|
if (typeof t != "object" || t === null)
|
|
3363
3365
|
return !1;
|
|
@@ -4832,7 +4834,7 @@ function la(t) {
|
|
|
4832
4834
|
t.attempt(
|
|
4833
4835
|
this.parser.constructs.flow,
|
|
4834
4836
|
i,
|
|
4835
|
-
t.attempt(
|
|
4837
|
+
t.attempt(Gr, i)
|
|
4836
4838
|
),
|
|
4837
4839
|
"linePrefix"
|
|
4838
4840
|
)
|
|
@@ -5175,16 +5177,16 @@ const ma = {
|
|
|
5175
5177
|
57: G,
|
|
5176
5178
|
62: xn
|
|
5177
5179
|
}, ga = {
|
|
5178
|
-
91:
|
|
5180
|
+
91: ti
|
|
5179
5181
|
}, da = {
|
|
5180
5182
|
[-2]: Qt,
|
|
5181
5183
|
[-1]: Qt,
|
|
5182
5184
|
32: Qt
|
|
5183
5185
|
}, xa = {
|
|
5184
|
-
35:
|
|
5186
|
+
35: li,
|
|
5185
5187
|
42: Rt,
|
|
5186
5188
|
45: [Le, Rt],
|
|
5187
|
-
60:
|
|
5189
|
+
60: ci,
|
|
5188
5190
|
61: Le,
|
|
5189
5191
|
95: Rt,
|
|
5190
5192
|
96: Te,
|
|
@@ -5196,15 +5198,15 @@ const ma = {
|
|
|
5196
5198
|
[-5]: Zt,
|
|
5197
5199
|
[-4]: Zt,
|
|
5198
5200
|
[-3]: Zt,
|
|
5199
|
-
33:
|
|
5201
|
+
33: zi,
|
|
5200
5202
|
38: bn,
|
|
5201
5203
|
42: se,
|
|
5202
|
-
60: [
|
|
5203
|
-
91:
|
|
5204
|
-
92: [
|
|
5204
|
+
60: [Dr, xi],
|
|
5205
|
+
91: Ti,
|
|
5206
|
+
92: [ii, kn],
|
|
5205
5207
|
93: de,
|
|
5206
5208
|
95: se,
|
|
5207
|
-
96:
|
|
5209
|
+
96: Nr
|
|
5208
5210
|
}, ya = {
|
|
5209
5211
|
null: [se, aa]
|
|
5210
5212
|
}, wa = {
|
|
@@ -5896,7 +5898,7 @@ function Ta(t) {
|
|
|
5896
5898
|
} });
|
|
5897
5899
|
}
|
|
5898
5900
|
function Da(t) {
|
|
5899
|
-
return Ql().use(Ta).use(
|
|
5901
|
+
return Ql().use(Ta).use(El).freeze().parse(t);
|
|
5900
5902
|
}
|
|
5901
5903
|
const La = new RegExp(
|
|
5902
5904
|
"^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$"
|
|
@@ -6176,7 +6178,7 @@ const co = {
|
|
|
6176
6178
|
I === "visual" && !s.value && E();
|
|
6177
6179
|
},
|
|
6178
6180
|
{ immediate: !0 }
|
|
6179
|
-
), { __sfc: !0, t: r, errorId: i, descriptionId: u, attrs: l, props: e, emit: n, selectedMode: a, internalValue: c, node: s, error: f, richTextEditorModeOptions: o, conditionalClasses: g, rendererConditionalClasses: h, computedAriaLabelFallbackMessage: d, ariaLabelAttribute: w, computedAriaLabel: S, ariaDescribedBy: b, updateNodeValue: E, onInput: C, BentoTypography: Xn, BentoSegmentedControl: Kn, BentoAlert: tr, ErrorMessage:
|
|
6181
|
+
), { __sfc: !0, t: r, errorId: i, descriptionId: u, attrs: l, props: e, emit: n, selectedMode: a, internalValue: c, node: s, error: f, richTextEditorModeOptions: o, conditionalClasses: g, rendererConditionalClasses: h, computedAriaLabelFallbackMessage: d, ariaLabelAttribute: w, computedAriaLabel: S, ariaDescribedBy: b, updateNodeValue: E, onInput: C, BentoTypography: Xn, BentoSegmentedControl: Kn, BentoAlert: tr, ErrorMessage: lr, FieldLabel: ur, RichTextEditorContentArea: fr, RichTextEditorRenderer: co };
|
|
6180
6182
|
}
|
|
6181
6183
|
});
|
|
6182
6184
|
var mo = function() {
|
|
@@ -6194,8 +6196,8 @@ var mo = function() {
|
|
|
6194
6196
|
null,
|
|
6195
6197
|
"9241ad8d"
|
|
6196
6198
|
);
|
|
6197
|
-
const
|
|
6199
|
+
const To = xo.exports;
|
|
6198
6200
|
export {
|
|
6199
|
-
|
|
6201
|
+
To as r
|
|
6200
6202
|
};
|
|
6201
|
-
//# sourceMappingURL=rich-text-editor.
|
|
6203
|
+
//# sourceMappingURL=rich-text-editor.eYW8X_YP.js.map
|