@opentiny/tiny-robot 0.3.0-alpha.1 → 0.3.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bubble/index.js +1077 -1069
- package/dist/index.d.ts +23 -7
- package/dist/style.css +1 -1
- package/package.json +3 -3
package/dist/bubble/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var bn = Object.defineProperty;
|
|
2
2
|
var _n = (u, e, t) => e in u ? bn(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t;
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as ku, ref as
|
|
3
|
+
var Iu = (u, e, t) => _n(u, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { defineComponent as ku, ref as Se, createElementBlock as M, openBlock as T, createElementVNode as I, createVNode as ee, toDisplayString as xu, unref as uu, normalizeClass as mu, withDirectives as At, vShow as Ct, computed as Ou, useCssModule as mn, createCommentVNode as Nu, createTextVNode as xn, inject as j0, useAttrs as gn, createBlock as ru, resolveDynamicComponent as Cu, mergeProps as Pu, useCssVars as kn, useSlots as En, renderSlot as Ce, Fragment as te, renderList as ue, normalizeProps as n0, watch as An, createSlots as G0, withCtx as W0, guardReactiveProps as Cn, h as Z0, provide as V0 } from "vue";
|
|
5
5
|
import { _ as Dn } from "../loading.js";
|
|
6
6
|
import { t as yn } from "../utils.js";
|
|
7
7
|
import { f as Dt, T as Fn, A as Tn, y as Sn } from "../tiny-robot-svgs.js";
|
|
8
|
-
import { _ as
|
|
8
|
+
import { _ as Uu } from "../_plugin-vue_export-helper.js";
|
|
9
9
|
import { u as wn } from "../index2.js";
|
|
10
10
|
class s0 {
|
|
11
11
|
}
|
|
@@ -16,13 +16,13 @@ const vn = { class: "tr-bubble__step-text" }, Rn = { class: "tr-bubble__step-tex
|
|
|
16
16
|
content: {}
|
|
17
17
|
},
|
|
18
18
|
setup(u) {
|
|
19
|
-
const e = u, t =
|
|
19
|
+
const e = u, t = Se(!1);
|
|
20
20
|
return (n, r) => (T(), M("div", vn, [
|
|
21
21
|
I("div", Rn, [
|
|
22
22
|
I("span", null, xu(e.title), 1),
|
|
23
|
-
|
|
23
|
+
ee(uu(Dt), {
|
|
24
24
|
class: mu(["expand-icon", { "rotate-180": t.value }]),
|
|
25
|
-
onClick: r[0] || (r[0] = (
|
|
25
|
+
onClick: r[0] || (r[0] = (o) => t.value = !t.value)
|
|
26
26
|
}, null, 8, ["class"])
|
|
27
27
|
]),
|
|
28
28
|
I("div", Mn, [
|
|
@@ -32,7 +32,7 @@ const vn = { class: "tr-bubble__step-text" }, Rn = { class: "tr-bubble__step-tex
|
|
|
32
32
|
])
|
|
33
33
|
]));
|
|
34
34
|
}
|
|
35
|
-
}), Ln = /* @__PURE__ */
|
|
35
|
+
}), Ln = /* @__PURE__ */ Uu(In, [["__scopeId", "data-v-08a61852"]]), On = Ln, Nn = { class: "tr-bubble__text" }, Pn = /* @__PURE__ */ ku({
|
|
36
36
|
__name: "text",
|
|
37
37
|
props: {
|
|
38
38
|
content: {}
|
|
@@ -41,7 +41,7 @@ const vn = { class: "tr-bubble__step-text" }, Rn = { class: "tr-bubble__step-tex
|
|
|
41
41
|
const e = u;
|
|
42
42
|
return (t, n) => (T(), M("span", Nn, xu(e.content), 1));
|
|
43
43
|
}
|
|
44
|
-
}),
|
|
44
|
+
}), Bn = /* @__PURE__ */ Uu(Pn, [["__scopeId", "data-v-44822584"]]), l0 = Bn, zn = { class: "tr-bubble__step-tool" }, qn = { class: "tr-bubble__step-tool-header" }, Un = { class: "tr-bubble__step-tool-left" }, Hn = { class: "tr-bubble__step-tool-title" }, $n = { class: "tr-bubble__step-tool-name" }, jn = { class: "tr-bubble__step-tool-expand" }, Gn = {
|
|
45
45
|
key: 0,
|
|
46
46
|
class: "tr-bubble__step-tool-params"
|
|
47
47
|
}, Wn = ["innerHTML"], Zn = /* @__PURE__ */ ku({
|
|
@@ -53,45 +53,45 @@ const vn = { class: "tr-bubble__step-text" }, Rn = { class: "tr-bubble__step-tex
|
|
|
53
53
|
formatPretty: { type: Boolean }
|
|
54
54
|
},
|
|
55
55
|
setup(u) {
|
|
56
|
-
const e = u, t =
|
|
56
|
+
const e = u, t = Se(!1), n = Ou(() => e.status === "running" ? "正在调用" : e.status === "success" ? "已调用" : e.status === "failed" ? "调用失败" : "已取消"), r = mn(), o = (i) => {
|
|
57
57
|
if (!i)
|
|
58
58
|
return "";
|
|
59
|
-
let
|
|
59
|
+
let c = "";
|
|
60
60
|
const a = e.formatPretty ? 2 : 0;
|
|
61
61
|
try {
|
|
62
|
-
typeof i == "string" ?
|
|
62
|
+
typeof i == "string" ? c = JSON.stringify(JSON.parse(i), null, a) : c = JSON.stringify(i, null, a);
|
|
63
63
|
} catch (s) {
|
|
64
64
|
console.warn(s);
|
|
65
65
|
}
|
|
66
|
-
return
|
|
66
|
+
return c = c.replace(
|
|
67
67
|
/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)/g,
|
|
68
68
|
(s) => {
|
|
69
69
|
let f = "number";
|
|
70
70
|
return /^"/.test(s) ? f = /:$/.test(s) ? "key" : "string" : /true|false/.test(s) ? f = "boolean" : /null/.test(s) && (f = "null"), `<span class="${r[f]}">${s}</span>`;
|
|
71
71
|
}
|
|
72
|
-
),
|
|
72
|
+
), c;
|
|
73
73
|
};
|
|
74
|
-
return (i,
|
|
74
|
+
return (i, c) => (T(), M("div", zn, [
|
|
75
75
|
I("div", qn, [
|
|
76
76
|
I("div", Un, [
|
|
77
|
-
|
|
77
|
+
ee(uu(Fn), { class: "tr-bubble__step-tool-icon" }),
|
|
78
78
|
I("span", Hn, [
|
|
79
79
|
xn(xu(n.value) + " ", 1),
|
|
80
80
|
I("span", $n, xu(e.name), 1)
|
|
81
81
|
])
|
|
82
82
|
]),
|
|
83
83
|
I("div", jn, [
|
|
84
|
-
|
|
84
|
+
ee(uu(Tn), {
|
|
85
85
|
class: mu(["expand-icon", { "-rotate-90": t.value }]),
|
|
86
|
-
onClick:
|
|
86
|
+
onClick: c[0] || (c[0] = (a) => t.value = !t.value)
|
|
87
87
|
}, null, 8, ["class"])
|
|
88
88
|
])
|
|
89
89
|
]),
|
|
90
|
-
t.value ?
|
|
91
|
-
|
|
90
|
+
t.value ? Nu("", !0) : (T(), M("div", Gn, [
|
|
91
|
+
c[1] || (c[1] = I("hr", { class: "tr-bubble__step-tool-hr" }, null, -1)),
|
|
92
92
|
I("div", {
|
|
93
93
|
class: "tr-bubble__step-tool-params-content",
|
|
94
|
-
innerHTML:
|
|
94
|
+
innerHTML: o(e.params)
|
|
95
95
|
}, null, 8, Wn)
|
|
96
96
|
]))
|
|
97
97
|
]));
|
|
@@ -104,7 +104,7 @@ const vn = { class: "tr-bubble__step-text" }, Rn = { class: "tr-bubble__step-tex
|
|
|
104
104
|
null: "_null_jtifp_18"
|
|
105
105
|
}, Kn = {
|
|
106
106
|
$style: Qn
|
|
107
|
-
}, ur = /* @__PURE__ */
|
|
107
|
+
}, ur = /* @__PURE__ */ Uu(Zn, [["__cssModules", Kn], ["__scopeId", "data-v-95e13117"]]), er = ur, yt = /* @__PURE__ */ new Map([
|
|
108
108
|
["text", l0],
|
|
109
109
|
["tool", er],
|
|
110
110
|
["collapsible-text", On]
|
|
@@ -115,19 +115,24 @@ const vn = { class: "tr-bubble__step-text" }, Rn = { class: "tr-bubble__step-tex
|
|
|
115
115
|
type: {}
|
|
116
116
|
},
|
|
117
117
|
setup(u) {
|
|
118
|
-
const e = j0(Ft, yt), t = j0(Tt, l0), n = u, r = gn(),
|
|
119
|
-
const
|
|
120
|
-
return typeof
|
|
121
|
-
}, { isComponent: i, vNodeOrComponent:
|
|
122
|
-
return (
|
|
118
|
+
const e = j0(Ft, yt), t = j0(Tt, l0), n = u, r = gn(), o = (s) => {
|
|
119
|
+
const f = { ...r, ...n }, d = e.get(s) || t;
|
|
120
|
+
return typeof d == "function" ? { isComponent: !1, vNodeOrComponent: d(f) } : d instanceof s0 ? { isComponent: !1, vNodeOrComponent: d.render(f) } : typeof d == "object" && "component" in d ? { isComponent: !0, vNodeOrComponent: d.component, defaultProps: d.defaultProps } : { isComponent: !0, vNodeOrComponent: d };
|
|
121
|
+
}, { isComponent: i, vNodeOrComponent: c, defaultProps: a } = o(n.type);
|
|
122
|
+
return (s, f) => uu(i) ? (T(), ru(Cu(uu(c)), Pu({ key: 0 }, { ...uu(a), ...n, ...uu(r) }, {
|
|
123
|
+
"data-type": n.type
|
|
124
|
+
}), null, 16, ["data-type"])) : (T(), ru(Cu(uu(c)), {
|
|
125
|
+
key: 1,
|
|
126
|
+
"data-type": n.type
|
|
127
|
+
}, null, 8, ["data-type"]));
|
|
123
128
|
}
|
|
124
129
|
}), nr = {
|
|
125
130
|
key: 0,
|
|
126
131
|
class: "tr-bubble__avatar"
|
|
127
|
-
}, rr = { class: "tr-bubble__content-wrapper" },
|
|
132
|
+
}, rr = { class: "tr-bubble__content-wrapper" }, or = {
|
|
128
133
|
key: 0,
|
|
129
134
|
class: "tr-bubble__content-messages"
|
|
130
|
-
},
|
|
135
|
+
}, cr = {
|
|
131
136
|
key: 1,
|
|
132
137
|
class: "tr-bubble__body-text"
|
|
133
138
|
}, ir = {
|
|
@@ -154,26 +159,26 @@ const vn = { class: "tr-bubble__step-text" }, Rn = { class: "tr-bubble__step-tex
|
|
|
154
159
|
},
|
|
155
160
|
setup(u) {
|
|
156
161
|
kn((i) => ({
|
|
157
|
-
"
|
|
162
|
+
"555751ca": uu(yn)(e.maxWidth)
|
|
158
163
|
}));
|
|
159
|
-
const e = u, t = En(), n =
|
|
164
|
+
const e = u, t = En(), n = Ou(() => {
|
|
160
165
|
const i = e.contentRenderer;
|
|
161
|
-
return i ? typeof i == "function" ? { isComponent: !1, vNodeOrComponent: i(e) } : i instanceof s0 ? { isComponent: !1, vNodeOrComponent: i.render(e) } : { isComponent: !0, vNodeOrComponent: i } : null;
|
|
162
|
-
}), r =
|
|
163
|
-
return (i,
|
|
166
|
+
return i ? typeof i == "function" ? { isComponent: !1, vNodeOrComponent: i(e) } : i instanceof s0 ? { isComponent: !1, vNodeOrComponent: i.render(e) } : typeof i == "object" && "component" in i ? { isComponent: !0, vNodeOrComponent: i.component, defaultProps: i.defaultProps } : { isComponent: !0, vNodeOrComponent: i } : null;
|
|
167
|
+
}), r = Ou(() => e.content), o = Ou(() => e.placement === "start");
|
|
168
|
+
return (i, c) => {
|
|
164
169
|
var a;
|
|
165
170
|
return T(), M("div", {
|
|
166
171
|
class: mu([
|
|
167
172
|
"tr-bubble",
|
|
168
173
|
{
|
|
169
|
-
"placement-start":
|
|
170
|
-
"placement-end": !
|
|
174
|
+
"placement-start": o.value,
|
|
175
|
+
"placement-end": !o.value
|
|
171
176
|
}
|
|
172
177
|
])
|
|
173
178
|
}, [
|
|
174
179
|
e.avatar ? (T(), M("div", nr, [
|
|
175
180
|
(T(), ru(Cu(e.avatar)))
|
|
176
|
-
])) :
|
|
181
|
+
])) : Nu("", !0),
|
|
177
182
|
I("div", rr, [
|
|
178
183
|
e.loading ? Ce(i.$slots, "loading", {
|
|
179
184
|
key: 0,
|
|
@@ -181,7 +186,7 @@ const vn = { class: "tr-bubble__step-text" }, Rn = { class: "tr-bubble__step-tex
|
|
|
181
186
|
}, () => [
|
|
182
187
|
I("div", {
|
|
183
188
|
class: mu(["tr-bubble__content", { "border-corner": e.shape === "corner" }])
|
|
184
|
-
},
|
|
189
|
+
}, c[0] || (c[0] = [
|
|
185
190
|
I("img", {
|
|
186
191
|
src: Dn,
|
|
187
192
|
alt: "loading",
|
|
@@ -192,26 +197,26 @@ const vn = { class: "tr-bubble__step-text" }, Rn = { class: "tr-bubble__step-tex
|
|
|
192
197
|
key: 1,
|
|
193
198
|
class: mu(["tr-bubble__content", { "border-corner": e.shape === "corner" }])
|
|
194
199
|
}, [
|
|
195
|
-
(a = e.messages) != null && a.length ? (T(), M("div",
|
|
196
|
-
(T(!0), M(
|
|
200
|
+
(a = e.messages) != null && a.length ? (T(), M("div", or, [
|
|
201
|
+
(T(!0), M(te, null, ue(e.messages, (s, f) => (T(), ru(tr, Pu({ key: f }, { ref_for: !0 }, s), null, 16))), 128))
|
|
197
202
|
])) : Ce(i.$slots, "default", {
|
|
198
203
|
key: 1,
|
|
199
204
|
bubbleProps: e
|
|
200
205
|
}, () => [
|
|
201
|
-
n.value ? (T(), M(
|
|
202
|
-
n.value.isComponent ? (T(), ru(Cu(n.value.vNodeOrComponent),
|
|
203
|
-
], 64)) : (T(), M("span",
|
|
206
|
+
n.value ? (T(), M(te, { key: 0 }, [
|
|
207
|
+
n.value.isComponent ? (T(), ru(Cu(n.value.vNodeOrComponent), n0(Pu({ key: 0 }, { ...n.value.defaultProps, ...e })), null, 16)) : (T(), ru(Cu(n.value.vNodeOrComponent), { key: 1 }))
|
|
208
|
+
], 64)) : (T(), M("span", cr, xu(r.value), 1))
|
|
204
209
|
], !0),
|
|
205
|
-
e.aborted ? (T(), M("span", ir, "(用户停止)")) :
|
|
210
|
+
e.aborted ? (T(), M("span", ir, "(用户停止)")) : Nu("", !0),
|
|
206
211
|
t.footer ? (T(), M("div", ar, [
|
|
207
212
|
Ce(i.$slots, "footer", { bubbleProps: e }, void 0, !0)
|
|
208
|
-
])) :
|
|
213
|
+
])) : Nu("", !0)
|
|
209
214
|
], 2))
|
|
210
215
|
])
|
|
211
216
|
], 2);
|
|
212
217
|
};
|
|
213
218
|
}
|
|
214
|
-
}), Du = /* @__PURE__ */
|
|
219
|
+
}), Du = /* @__PURE__ */ Uu(sr, [["__scopeId", "data-v-7e75e225"]]), lr = /* @__PURE__ */ ku({
|
|
215
220
|
__name: "BubbleList",
|
|
216
221
|
props: {
|
|
217
222
|
items: {},
|
|
@@ -221,24 +226,24 @@ const vn = { class: "tr-bubble__step-text" }, Rn = { class: "tr-bubble__step-tex
|
|
|
221
226
|
autoScroll: { type: Boolean }
|
|
222
227
|
},
|
|
223
228
|
setup(u) {
|
|
224
|
-
const e = u, t =
|
|
229
|
+
const e = u, t = Se(null), { y: n } = wn(t, {
|
|
225
230
|
behavior: "smooth",
|
|
226
231
|
throttle: 100
|
|
227
|
-
}), r =
|
|
232
|
+
}), r = Ou(() => e.items.at(-1));
|
|
228
233
|
An([() => e.items.length, () => {
|
|
229
234
|
var a;
|
|
230
235
|
return (a = r.value) == null ? void 0 : a.content;
|
|
231
236
|
}], () => {
|
|
232
237
|
!e.autoScroll || !t.value || (n.value = t.value.scrollHeight);
|
|
233
238
|
});
|
|
234
|
-
const
|
|
235
|
-
var
|
|
236
|
-
const s = a.role ? ((
|
|
237
|
-
return { ...
|
|
239
|
+
const o = (a) => {
|
|
240
|
+
var p;
|
|
241
|
+
const s = a.role ? ((p = e.roles) == null ? void 0 : p[a.role]) || {} : {}, { slots: f, ...d } = s, { slots: _, ...h } = a;
|
|
242
|
+
return { ...d, ...h };
|
|
238
243
|
}, i = (a) => {
|
|
239
244
|
var f;
|
|
240
245
|
return { ...(a.role ? ((f = e.roles) == null ? void 0 : f[a.role]) || {} : {}).slots, ...a.slots };
|
|
241
|
-
},
|
|
246
|
+
}, c = Ou(() => {
|
|
242
247
|
var f;
|
|
243
248
|
if (!(e.loading && e.loadingRole && ((f = e.roles) != null && f[e.loadingRole])))
|
|
244
249
|
return null;
|
|
@@ -250,76 +255,77 @@ const vn = { class: "tr-bubble__step-text" }, Rn = { class: "tr-bubble__step-tex
|
|
|
250
255
|
ref_key: "scrollContainerRef",
|
|
251
256
|
ref: t
|
|
252
257
|
}, [
|
|
253
|
-
(T(!0), M(
|
|
254
|
-
key: f.id ||
|
|
258
|
+
(T(!0), M(te, null, ue(e.items, (f, d) => (T(), M(te, {
|
|
259
|
+
key: f.id || d
|
|
255
260
|
}, [
|
|
256
|
-
f.hidden ?
|
|
261
|
+
f.hidden ? Nu("", !0) : (T(), ru(Du, Pu({
|
|
257
262
|
key: 0,
|
|
258
263
|
ref_for: !0
|
|
259
|
-
},
|
|
260
|
-
|
|
261
|
-
name:
|
|
262
|
-
fn: W0((
|
|
263
|
-
(T(), ru(Cu(_),
|
|
264
|
+
}, o(f)), G0({ _: 2 }, [
|
|
265
|
+
ue(i(f), (_, h) => ({
|
|
266
|
+
name: h,
|
|
267
|
+
fn: W0((p) => [
|
|
268
|
+
(T(), ru(Cu(_), Pu({ ref_for: !0 }, p), null, 16))
|
|
264
269
|
])
|
|
265
270
|
}))
|
|
266
271
|
]), 1040))
|
|
267
272
|
], 64))), 128)),
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
name:
|
|
273
|
+
c.value ? (T(), ru(Du, n0(Pu({ key: 0 }, c.value.props)), G0({ _: 2 }, [
|
|
274
|
+
ue(c.value.slots, (f, d) => ({
|
|
275
|
+
name: d,
|
|
271
276
|
fn: W0((_) => [
|
|
272
|
-
(T(), ru(Cu(f),
|
|
277
|
+
(T(), ru(Cu(f), n0(Cn(_)), null, 16))
|
|
273
278
|
])
|
|
274
279
|
}))
|
|
275
|
-
]), 1040)) :
|
|
280
|
+
]), 1040)) : Nu("", !0)
|
|
276
281
|
], 512));
|
|
277
282
|
}
|
|
278
|
-
}),
|
|
283
|
+
}), ne = /* @__PURE__ */ Uu(lr, [["__scopeId", "data-v-24c3a7d6"]]), fr = { class: "tr-chain-list" }, dr = { class: "tr-chain-item__header" }, pr = { class: "tr-chain-item__icon" }, hr = { class: "tr-chain-item__title" }, br = { class: "tr-chain-item__body" }, _r = ["innerHTML"], mr = /* @__PURE__ */ ku({
|
|
279
284
|
__name: "chain",
|
|
280
285
|
props: {
|
|
281
286
|
items: {},
|
|
282
287
|
html: { type: Boolean, default: !0 },
|
|
283
|
-
contentClass: {}
|
|
288
|
+
contentClass: {},
|
|
289
|
+
contentRenderer: {}
|
|
284
290
|
},
|
|
285
291
|
setup(u) {
|
|
286
|
-
const e = u, t =
|
|
287
|
-
t.value[
|
|
288
|
-
};
|
|
289
|
-
return (
|
|
290
|
-
(T(!0), M(
|
|
292
|
+
const e = u, t = Se({}), n = (o) => {
|
|
293
|
+
t.value[o] = !t.value[o];
|
|
294
|
+
}, r = (o) => e.contentRenderer ? e.contentRenderer(o) : o;
|
|
295
|
+
return (o, i) => (T(), M("div", fr, [
|
|
296
|
+
(T(!0), M(te, null, ue(e.items, (c, a) => (T(), M("div", {
|
|
291
297
|
class: "tr-chain-item",
|
|
292
|
-
key:
|
|
298
|
+
key: a
|
|
293
299
|
}, [
|
|
294
300
|
I("div", dr, [
|
|
295
|
-
I("div",
|
|
296
|
-
|
|
301
|
+
I("div", pr, [
|
|
302
|
+
ee(uu(Sn))
|
|
297
303
|
]),
|
|
298
|
-
I("div",
|
|
299
|
-
|
|
300
|
-
class: mu(["expand-icon", { "rotate-180": t.value[
|
|
301
|
-
onClick: (
|
|
304
|
+
I("div", hr, xu(c.title), 1),
|
|
305
|
+
ee(uu(Dt), {
|
|
306
|
+
class: mu(["expand-icon", { "rotate-180": t.value[a] }]),
|
|
307
|
+
onClick: (s) => n(a)
|
|
302
308
|
}, null, 8, ["class", "onClick"])
|
|
303
309
|
]),
|
|
304
310
|
At(I("div", br, [
|
|
305
|
-
|
|
311
|
+
i[0] || (i[0] = I("div", { class: "tr-chain-item__chain-line-wrapper" }, [
|
|
306
312
|
I("div", { class: "tr-chain-item__chain-line" })
|
|
307
313
|
], -1)),
|
|
308
314
|
e.html ? (T(), M("div", {
|
|
309
315
|
key: 1,
|
|
310
316
|
class: mu(["tr-chain-item__content", e.contentClass]),
|
|
311
|
-
innerHTML:
|
|
317
|
+
innerHTML: r(c.content)
|
|
312
318
|
}, null, 10, _r)) : (T(), M("div", {
|
|
313
319
|
key: 0,
|
|
314
320
|
class: mu(["tr-chain-item__content", e.contentClass])
|
|
315
|
-
}, xu(
|
|
321
|
+
}, xu(r(c.content)), 3))
|
|
316
322
|
], 512), [
|
|
317
|
-
[Ct, !t.value[
|
|
323
|
+
[Ct, !t.value[a]]
|
|
318
324
|
])
|
|
319
325
|
]))), 128))
|
|
320
326
|
]));
|
|
321
327
|
}
|
|
322
|
-
}), xr = /* @__PURE__ */
|
|
328
|
+
}), xr = /* @__PURE__ */ Uu(mr, [["__scopeId", "data-v-92295647"]]), Pi = xr;
|
|
323
329
|
/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
|
|
324
330
|
const {
|
|
325
331
|
entries: St,
|
|
@@ -334,7 +340,7 @@ let {
|
|
|
334
340
|
create: wt
|
|
335
341
|
} = Object, {
|
|
336
342
|
apply: r0,
|
|
337
|
-
construct:
|
|
343
|
+
construct: o0
|
|
338
344
|
} = typeof Reflect < "u" && Reflect;
|
|
339
345
|
G || (G = function(e) {
|
|
340
346
|
return e;
|
|
@@ -345,10 +351,10 @@ J || (J = function(e) {
|
|
|
345
351
|
r0 || (r0 = function(e, t, n) {
|
|
346
352
|
return e.apply(t, n);
|
|
347
353
|
});
|
|
348
|
-
|
|
354
|
+
o0 || (o0 = function(e, t) {
|
|
349
355
|
return new e(...t);
|
|
350
356
|
});
|
|
351
|
-
const ge = W(Array.prototype.forEach), Ar = W(Array.prototype.lastIndexOf), X0 = W(Array.prototype.pop),
|
|
357
|
+
const ge = W(Array.prototype.forEach), Ar = W(Array.prototype.lastIndexOf), X0 = W(Array.prototype.pop), Yu = W(Array.prototype.push), Cr = W(Array.prototype.splice), De = W(String.prototype.toLowerCase), Ge = W(String.prototype.toString), J0 = W(String.prototype.match), Xu = W(String.prototype.replace), Dr = W(String.prototype.indexOf), yr = W(String.prototype.trim), K = W(Object.prototype.hasOwnProperty), j = W(RegExp.prototype.test), Ju = Fr(TypeError);
|
|
352
358
|
function W(u) {
|
|
353
359
|
return function(e) {
|
|
354
360
|
e instanceof RegExp && (e.lastIndex = 0);
|
|
@@ -361,7 +367,7 @@ function Fr(u) {
|
|
|
361
367
|
return function() {
|
|
362
368
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
363
369
|
t[n] = arguments[n];
|
|
364
|
-
return
|
|
370
|
+
return o0(u, t);
|
|
365
371
|
};
|
|
366
372
|
}
|
|
367
373
|
function F(u, e) {
|
|
@@ -371,8 +377,8 @@ function F(u, e) {
|
|
|
371
377
|
for (; n--; ) {
|
|
372
378
|
let r = e[n];
|
|
373
379
|
if (typeof r == "string") {
|
|
374
|
-
const
|
|
375
|
-
|
|
380
|
+
const o = t(r);
|
|
381
|
+
o !== r && (gr(e) || (e[n] = o), r = o);
|
|
376
382
|
}
|
|
377
383
|
u[r] = !0;
|
|
378
384
|
}
|
|
@@ -389,7 +395,7 @@ function du(u) {
|
|
|
389
395
|
K(u, t) && (Array.isArray(n) ? e[t] = Tr(n) : n && typeof n == "object" && n.constructor === Object ? e[t] = du(n) : e[t] = n);
|
|
390
396
|
return e;
|
|
391
397
|
}
|
|
392
|
-
function
|
|
398
|
+
function Qu(u, e) {
|
|
393
399
|
for (; u !== null; ) {
|
|
394
400
|
const n = Er(u, e);
|
|
395
401
|
if (n) {
|
|
@@ -405,18 +411,18 @@ function Ju(u, e) {
|
|
|
405
411
|
}
|
|
406
412
|
return t;
|
|
407
413
|
}
|
|
408
|
-
const Q0 = G(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]),
|
|
414
|
+
const Q0 = G(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), We = G(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Ze = G(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Sr = G(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Ve = G(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), wr = G(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), K0 = G(["#text"]), ut = G(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Ye = G(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), et = G(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), ke = G(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), vr = J(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Rr = J(/<%[\w\W]*|[\w\W]*%>/gm), Mr = J(/\$\{[\w\W]*/gm), Ir = J(/^data-[\-\w.\u00B7-\uFFFF]+$/), Lr = J(/^aria-[\-\w]+$/), vt = J(
|
|
409
415
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
410
416
|
// eslint-disable-line no-useless-escape
|
|
411
417
|
), Or = J(/^(?:\w+script|data):/i), Nr = J(
|
|
412
418
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
413
419
|
// eslint-disable-line no-control-regex
|
|
414
|
-
), Rt = J(/^html$/i),
|
|
420
|
+
), Rt = J(/^html$/i), Pr = J(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
415
421
|
var tt = /* @__PURE__ */ Object.freeze({
|
|
416
422
|
__proto__: null,
|
|
417
423
|
ARIA_ATTR: Lr,
|
|
418
424
|
ATTR_WHITESPACE: Nr,
|
|
419
|
-
CUSTOM_ELEMENT:
|
|
425
|
+
CUSTOM_ELEMENT: Pr,
|
|
420
426
|
DATA_ATTR: Ir,
|
|
421
427
|
DOCTYPE_NAME: Rt,
|
|
422
428
|
ERB_EXPR: Rr,
|
|
@@ -425,14 +431,14 @@ var tt = /* @__PURE__ */ Object.freeze({
|
|
|
425
431
|
MUSTACHE_EXPR: vr,
|
|
426
432
|
TMPLIT_EXPR: Mr
|
|
427
433
|
});
|
|
428
|
-
const
|
|
434
|
+
const Ku = {
|
|
429
435
|
element: 1,
|
|
430
436
|
text: 3,
|
|
431
437
|
// Deprecated
|
|
432
438
|
progressingInstruction: 7,
|
|
433
439
|
comment: 8,
|
|
434
440
|
document: 9
|
|
435
|
-
},
|
|
441
|
+
}, Br = function() {
|
|
436
442
|
return typeof window > "u" ? null : window;
|
|
437
443
|
}, zr = function(e, t) {
|
|
438
444
|
if (typeof e != "object" || typeof e.createPolicy != "function")
|
|
@@ -440,9 +446,9 @@ const Qu = {
|
|
|
440
446
|
let n = null;
|
|
441
447
|
const r = "data-tt-policy-suffix";
|
|
442
448
|
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
443
|
-
const
|
|
449
|
+
const o = "dompurify" + (n ? "#" + n : "");
|
|
444
450
|
try {
|
|
445
|
-
return e.createPolicy(
|
|
451
|
+
return e.createPolicy(o, {
|
|
446
452
|
createHTML(i) {
|
|
447
453
|
return i;
|
|
448
454
|
},
|
|
@@ -451,7 +457,7 @@ const Qu = {
|
|
|
451
457
|
}
|
|
452
458
|
});
|
|
453
459
|
} catch {
|
|
454
|
-
return console.warn("TrustedTypes policy " +
|
|
460
|
+
return console.warn("TrustedTypes policy " + o + " could not be created."), null;
|
|
455
461
|
}
|
|
456
462
|
}, nt = function() {
|
|
457
463
|
return {
|
|
@@ -467,24 +473,24 @@ const Qu = {
|
|
|
467
473
|
};
|
|
468
474
|
};
|
|
469
475
|
function Mt() {
|
|
470
|
-
let u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
476
|
+
let u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Br();
|
|
471
477
|
const e = (g) => Mt(g);
|
|
472
|
-
if (e.version = "3.2.6", e.removed = [], !u || !u.document || u.document.nodeType !==
|
|
478
|
+
if (e.version = "3.2.6", e.removed = [], !u || !u.document || u.document.nodeType !== Ku.document || !u.Element)
|
|
473
479
|
return e.isSupported = !1, e;
|
|
474
480
|
let {
|
|
475
481
|
document: t
|
|
476
482
|
} = u;
|
|
477
483
|
const n = t, r = n.currentScript, {
|
|
478
|
-
DocumentFragment:
|
|
484
|
+
DocumentFragment: o,
|
|
479
485
|
HTMLTemplateElement: i,
|
|
480
|
-
Node:
|
|
486
|
+
Node: c,
|
|
481
487
|
Element: a,
|
|
482
488
|
NodeFilter: s,
|
|
483
489
|
NamedNodeMap: f = u.NamedNodeMap || u.MozNamedAttrMap,
|
|
484
|
-
HTMLFormElement:
|
|
490
|
+
HTMLFormElement: d,
|
|
485
491
|
DOMParser: _,
|
|
486
|
-
trustedTypes:
|
|
487
|
-
} = u,
|
|
492
|
+
trustedTypes: h
|
|
493
|
+
} = u, p = a.prototype, C = Qu(p, "cloneNode"), D = Qu(p, "remove"), S = Qu(p, "nextSibling"), E = Qu(p, "childNodes"), k = Qu(p, "parentNode");
|
|
488
494
|
if (typeof i == "function") {
|
|
489
495
|
const g = t.createElement("template");
|
|
490
496
|
g.content && g.content.ownerDocument && (t = g.content.ownerDocument);
|
|
@@ -494,28 +500,28 @@ function Mt() {
|
|
|
494
500
|
implementation: y,
|
|
495
501
|
createNodeIterator: L,
|
|
496
502
|
createDocumentFragment: Y,
|
|
497
|
-
getElementsByTagName:
|
|
503
|
+
getElementsByTagName: tu
|
|
498
504
|
} = t, {
|
|
499
505
|
importNode: Eu
|
|
500
506
|
} = n;
|
|
501
507
|
let O = nt();
|
|
502
508
|
e.isSupported = typeof St == "function" && typeof k == "function" && y && y.createHTMLDocument !== void 0;
|
|
503
509
|
const {
|
|
504
|
-
MUSTACHE_EXPR:
|
|
505
|
-
ERB_EXPR:
|
|
510
|
+
MUSTACHE_EXPR: $u,
|
|
511
|
+
ERB_EXPR: ju,
|
|
506
512
|
TMPLIT_EXPR: yu,
|
|
507
|
-
DATA_ATTR:
|
|
508
|
-
ARIA_ATTR:
|
|
513
|
+
DATA_ATTR: pu,
|
|
514
|
+
ARIA_ATTR: Ie,
|
|
509
515
|
IS_SCRIPT_OR_DATA: rn,
|
|
510
516
|
ATTR_WHITESPACE: g0,
|
|
511
|
-
CUSTOM_ELEMENT:
|
|
517
|
+
CUSTOM_ELEMENT: on
|
|
512
518
|
} = tt;
|
|
513
519
|
let {
|
|
514
520
|
IS_ALLOWED_URI: k0
|
|
515
|
-
} = tt,
|
|
516
|
-
const E0 = F({}, [...Q0, ...
|
|
521
|
+
} = tt, P = null;
|
|
522
|
+
const E0 = F({}, [...Q0, ...We, ...Ze, ...Ve, ...K0]);
|
|
517
523
|
let U = null;
|
|
518
|
-
const A0 = F({}, [...ut, ...
|
|
524
|
+
const A0 = F({}, [...ut, ...Ye, ...et, ...ke]);
|
|
519
525
|
let R = Object.seal(wt(null, {
|
|
520
526
|
tagNameCheck: {
|
|
521
527
|
writable: !0,
|
|
@@ -535,47 +541,47 @@ function Mt() {
|
|
|
535
541
|
enumerable: !0,
|
|
536
542
|
value: !1
|
|
537
543
|
}
|
|
538
|
-
})),
|
|
539
|
-
const
|
|
540
|
-
let
|
|
544
|
+
})), Gu = null, Le = null, C0 = !0, Oe = !0, D0 = !1, y0 = !0, Fu = !1, de = !0, Au = !1, Ne = !1, Pe = !1, Tu = !1, pe = !1, he = !1, F0 = !0, T0 = !1;
|
|
545
|
+
const cn = "user-content-";
|
|
546
|
+
let Be = !0, Wu = !1, Su = {}, wu = null;
|
|
541
547
|
const S0 = F({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
542
548
|
let w0 = null;
|
|
543
549
|
const v0 = F({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
544
|
-
let
|
|
545
|
-
const R0 = F({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]),
|
|
546
|
-
let vu = su,
|
|
547
|
-
const an = F({}, [
|
|
548
|
-
let
|
|
550
|
+
let ze = null;
|
|
551
|
+
const R0 = F({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), be = "http://www.w3.org/1998/Math/MathML", _e = "http://www.w3.org/2000/svg", su = "http://www.w3.org/1999/xhtml";
|
|
552
|
+
let vu = su, qe = !1, Ue = null;
|
|
553
|
+
const an = F({}, [be, _e, su], Ge);
|
|
554
|
+
let me = F({}, ["mi", "mo", "mn", "ms", "mtext"]), xe = F({}, ["annotation-xml"]);
|
|
549
555
|
const sn = F({}, ["title", "style", "font", "a", "script"]);
|
|
550
|
-
let
|
|
556
|
+
let Zu = null;
|
|
551
557
|
const ln = ["application/xhtml+xml", "text/html"], fn = "text/html";
|
|
552
|
-
let
|
|
558
|
+
let B = null, Ru = null;
|
|
553
559
|
const dn = t.createElement("form"), M0 = function(l) {
|
|
554
560
|
return l instanceof RegExp || l instanceof Function;
|
|
555
|
-
},
|
|
561
|
+
}, He = function() {
|
|
556
562
|
let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
557
563
|
if (!(Ru && Ru === l)) {
|
|
558
|
-
if ((!l || typeof l != "object") && (l = {}), l = du(l),
|
|
559
|
-
ln.indexOf(l.PARSER_MEDIA_TYPE) === -1 ? fn : l.PARSER_MEDIA_TYPE,
|
|
564
|
+
if ((!l || typeof l != "object") && (l = {}), l = du(l), Zu = // eslint-disable-next-line unicorn/prefer-includes
|
|
565
|
+
ln.indexOf(l.PARSER_MEDIA_TYPE) === -1 ? fn : l.PARSER_MEDIA_TYPE, B = Zu === "application/xhtml+xml" ? Ge : De, P = K(l, "ALLOWED_TAGS") ? F({}, l.ALLOWED_TAGS, B) : E0, U = K(l, "ALLOWED_ATTR") ? F({}, l.ALLOWED_ATTR, B) : A0, Ue = K(l, "ALLOWED_NAMESPACES") ? F({}, l.ALLOWED_NAMESPACES, Ge) : an, ze = K(l, "ADD_URI_SAFE_ATTR") ? F(du(R0), l.ADD_URI_SAFE_ATTR, B) : R0, w0 = K(l, "ADD_DATA_URI_TAGS") ? F(du(v0), l.ADD_DATA_URI_TAGS, B) : v0, wu = K(l, "FORBID_CONTENTS") ? F({}, l.FORBID_CONTENTS, B) : S0, Gu = K(l, "FORBID_TAGS") ? F({}, l.FORBID_TAGS, B) : du({}), Le = K(l, "FORBID_ATTR") ? F({}, l.FORBID_ATTR, B) : du({}), Su = K(l, "USE_PROFILES") ? l.USE_PROFILES : !1, C0 = l.ALLOW_ARIA_ATTR !== !1, Oe = l.ALLOW_DATA_ATTR !== !1, D0 = l.ALLOW_UNKNOWN_PROTOCOLS || !1, y0 = l.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Fu = l.SAFE_FOR_TEMPLATES || !1, de = l.SAFE_FOR_XML !== !1, Au = l.WHOLE_DOCUMENT || !1, Tu = l.RETURN_DOM || !1, pe = l.RETURN_DOM_FRAGMENT || !1, he = l.RETURN_TRUSTED_TYPE || !1, Pe = l.FORCE_BODY || !1, F0 = l.SANITIZE_DOM !== !1, T0 = l.SANITIZE_NAMED_PROPS || !1, Be = l.KEEP_CONTENT !== !1, Wu = l.IN_PLACE || !1, k0 = l.ALLOWED_URI_REGEXP || vt, vu = l.NAMESPACE || su, me = l.MATHML_TEXT_INTEGRATION_POINTS || me, xe = l.HTML_INTEGRATION_POINTS || xe, R = l.CUSTOM_ELEMENT_HANDLING || {}, l.CUSTOM_ELEMENT_HANDLING && M0(l.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (R.tagNameCheck = l.CUSTOM_ELEMENT_HANDLING.tagNameCheck), l.CUSTOM_ELEMENT_HANDLING && M0(l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (R.attributeNameCheck = l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), l.CUSTOM_ELEMENT_HANDLING && typeof l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (R.allowCustomizedBuiltInElements = l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Fu && (Oe = !1), pe && (Tu = !0), Su && (P = F({}, K0), U = [], Su.html === !0 && (F(P, Q0), F(U, ut)), Su.svg === !0 && (F(P, We), F(U, Ye), F(U, ke)), Su.svgFilters === !0 && (F(P, Ze), F(U, Ye), F(U, ke)), Su.mathMl === !0 && (F(P, Ve), F(U, et), F(U, ke))), l.ADD_TAGS && (P === E0 && (P = du(P)), F(P, l.ADD_TAGS, B)), l.ADD_ATTR && (U === A0 && (U = du(U)), F(U, l.ADD_ATTR, B)), l.ADD_URI_SAFE_ATTR && F(ze, l.ADD_URI_SAFE_ATTR, B), l.FORBID_CONTENTS && (wu === S0 && (wu = du(wu)), F(wu, l.FORBID_CONTENTS, B)), Be && (P["#text"] = !0), Au && F(P, ["html", "head", "body"]), P.table && (F(P, ["tbody"]), delete Gu.tbody), l.TRUSTED_TYPES_POLICY) {
|
|
560
566
|
if (typeof l.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
561
|
-
throw
|
|
567
|
+
throw Ju('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
562
568
|
if (typeof l.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
563
|
-
throw
|
|
569
|
+
throw Ju('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
564
570
|
m = l.TRUSTED_TYPES_POLICY, A = m.createHTML("");
|
|
565
571
|
} else
|
|
566
|
-
m === void 0 && (m = zr(
|
|
572
|
+
m === void 0 && (m = zr(h, r)), m !== null && typeof A == "string" && (A = m.createHTML(""));
|
|
567
573
|
G && G(l), Ru = l;
|
|
568
574
|
}
|
|
569
|
-
}, I0 = F({}, [...
|
|
575
|
+
}, I0 = F({}, [...We, ...Ze, ...Sr]), L0 = F({}, [...Ve, ...wr]), pn = function(l) {
|
|
570
576
|
let b = k(l);
|
|
571
577
|
(!b || !b.tagName) && (b = {
|
|
572
578
|
namespaceURI: vu,
|
|
573
579
|
tagName: "template"
|
|
574
580
|
});
|
|
575
581
|
const x = De(l.tagName), v = De(b.tagName);
|
|
576
|
-
return
|
|
577
|
-
},
|
|
578
|
-
|
|
582
|
+
return Ue[l.namespaceURI] ? l.namespaceURI === _e ? b.namespaceURI === su ? x === "svg" : b.namespaceURI === be ? x === "svg" && (v === "annotation-xml" || me[v]) : !!I0[x] : l.namespaceURI === be ? b.namespaceURI === su ? x === "math" : b.namespaceURI === _e ? x === "math" && xe[v] : !!L0[x] : l.namespaceURI === su ? b.namespaceURI === _e && !xe[v] || b.namespaceURI === be && !me[v] ? !1 : !L0[x] && (sn[x] || !I0[x]) : !!(Zu === "application/xhtml+xml" && Ue[l.namespaceURI]) : !1;
|
|
583
|
+
}, nu = function(l) {
|
|
584
|
+
Yu(e.removed, {
|
|
579
585
|
element: l
|
|
580
586
|
});
|
|
581
587
|
try {
|
|
@@ -585,20 +591,20 @@ function Mt() {
|
|
|
585
591
|
}
|
|
586
592
|
}, Mu = function(l, b) {
|
|
587
593
|
try {
|
|
588
|
-
|
|
594
|
+
Yu(e.removed, {
|
|
589
595
|
attribute: b.getAttributeNode(l),
|
|
590
596
|
from: b
|
|
591
597
|
});
|
|
592
598
|
} catch {
|
|
593
|
-
|
|
599
|
+
Yu(e.removed, {
|
|
594
600
|
attribute: null,
|
|
595
601
|
from: b
|
|
596
602
|
});
|
|
597
603
|
}
|
|
598
604
|
if (b.removeAttribute(l), l === "is")
|
|
599
|
-
if (Tu ||
|
|
605
|
+
if (Tu || pe)
|
|
600
606
|
try {
|
|
601
|
-
|
|
607
|
+
nu(b);
|
|
602
608
|
} catch {
|
|
603
609
|
}
|
|
604
610
|
else
|
|
@@ -614,22 +620,22 @@ function Mt() {
|
|
|
614
620
|
const N = J0(l, /^[\r\n\t ]+/);
|
|
615
621
|
x = N && N[0];
|
|
616
622
|
}
|
|
617
|
-
|
|
623
|
+
Zu === "application/xhtml+xml" && vu === su && (l = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + l + "</body></html>");
|
|
618
624
|
const v = m ? m.createHTML(l) : l;
|
|
619
625
|
if (vu === su)
|
|
620
626
|
try {
|
|
621
|
-
b = new _().parseFromString(v,
|
|
627
|
+
b = new _().parseFromString(v, Zu);
|
|
622
628
|
} catch {
|
|
623
629
|
}
|
|
624
630
|
if (!b || !b.documentElement) {
|
|
625
631
|
b = y.createDocument(vu, "template", null);
|
|
626
632
|
try {
|
|
627
|
-
b.documentElement.innerHTML =
|
|
633
|
+
b.documentElement.innerHTML = qe ? A : v;
|
|
628
634
|
} catch {
|
|
629
635
|
}
|
|
630
636
|
}
|
|
631
637
|
const H = b.body || b.documentElement;
|
|
632
|
-
return l && x && H.insertBefore(t.createTextNode(x), H.childNodes[0] || null), vu === su ?
|
|
638
|
+
return l && x && H.insertBefore(t.createTextNode(x), H.childNodes[0] || null), vu === su ? tu.call(b, Au ? "html" : "body")[0] : Au ? b.documentElement : H;
|
|
633
639
|
}, N0 = function(l) {
|
|
634
640
|
return L.call(
|
|
635
641
|
l.ownerDocument || l,
|
|
@@ -638,30 +644,30 @@ function Mt() {
|
|
|
638
644
|
s.SHOW_ELEMENT | s.SHOW_COMMENT | s.SHOW_TEXT | s.SHOW_PROCESSING_INSTRUCTION | s.SHOW_CDATA_SECTION,
|
|
639
645
|
null
|
|
640
646
|
);
|
|
641
|
-
},
|
|
642
|
-
return l instanceof
|
|
643
|
-
},
|
|
644
|
-
return typeof
|
|
647
|
+
}, $e = function(l) {
|
|
648
|
+
return l instanceof d && (typeof l.nodeName != "string" || typeof l.textContent != "string" || typeof l.removeChild != "function" || !(l.attributes instanceof f) || typeof l.removeAttribute != "function" || typeof l.setAttribute != "function" || typeof l.namespaceURI != "string" || typeof l.insertBefore != "function" || typeof l.hasChildNodes != "function");
|
|
649
|
+
}, P0 = function(l) {
|
|
650
|
+
return typeof c == "function" && l instanceof c;
|
|
645
651
|
};
|
|
646
652
|
function lu(g, l, b) {
|
|
647
653
|
ge(g, (x) => {
|
|
648
654
|
x.call(e, l, b, Ru);
|
|
649
655
|
});
|
|
650
656
|
}
|
|
651
|
-
const
|
|
657
|
+
const B0 = function(l) {
|
|
652
658
|
let b = null;
|
|
653
|
-
if (lu(O.beforeSanitizeElements, l, null),
|
|
654
|
-
return
|
|
655
|
-
const x =
|
|
659
|
+
if (lu(O.beforeSanitizeElements, l, null), $e(l))
|
|
660
|
+
return nu(l), !0;
|
|
661
|
+
const x = B(l.nodeName);
|
|
656
662
|
if (lu(O.uponSanitizeElement, l, {
|
|
657
663
|
tagName: x,
|
|
658
|
-
allowedTags:
|
|
659
|
-
}),
|
|
660
|
-
return
|
|
661
|
-
if (!
|
|
662
|
-
if (!
|
|
664
|
+
allowedTags: P
|
|
665
|
+
}), de && l.hasChildNodes() && !P0(l.firstElementChild) && j(/<[/\w!]/g, l.innerHTML) && j(/<[/\w!]/g, l.textContent) || l.nodeType === Ku.progressingInstruction || de && l.nodeType === Ku.comment && j(/<[/\w]/g, l.data))
|
|
666
|
+
return nu(l), !0;
|
|
667
|
+
if (!P[x] || Gu[x]) {
|
|
668
|
+
if (!Gu[x] && q0(x) && (R.tagNameCheck instanceof RegExp && j(R.tagNameCheck, x) || R.tagNameCheck instanceof Function && R.tagNameCheck(x)))
|
|
663
669
|
return !1;
|
|
664
|
-
if (
|
|
670
|
+
if (Be && !wu[x]) {
|
|
665
671
|
const v = k(l) || l.parentNode, H = E(l) || l.childNodes;
|
|
666
672
|
if (H && v) {
|
|
667
673
|
const N = H.length;
|
|
@@ -671,19 +677,19 @@ function Mt() {
|
|
|
671
677
|
}
|
|
672
678
|
}
|
|
673
679
|
}
|
|
674
|
-
return
|
|
680
|
+
return nu(l), !0;
|
|
675
681
|
}
|
|
676
|
-
return l instanceof a && !
|
|
677
|
-
b =
|
|
678
|
-
}), l.textContent !== b && (
|
|
682
|
+
return l instanceof a && !pn(l) || (x === "noscript" || x === "noembed" || x === "noframes") && j(/<\/no(script|embed|frames)/i, l.innerHTML) ? (nu(l), !0) : (Fu && l.nodeType === Ku.text && (b = l.textContent, ge([$u, ju, yu], (v) => {
|
|
683
|
+
b = Xu(b, v, " ");
|
|
684
|
+
}), l.textContent !== b && (Yu(e.removed, {
|
|
679
685
|
element: l.cloneNode()
|
|
680
686
|
}), l.textContent = b)), lu(O.afterSanitizeElements, l, null), !1);
|
|
681
687
|
}, z0 = function(l, b, x) {
|
|
682
688
|
if (F0 && (b === "id" || b === "name") && (x in t || x in dn))
|
|
683
689
|
return !1;
|
|
684
|
-
if (!(
|
|
685
|
-
if (!(C0 && j(
|
|
686
|
-
if (!U[b] ||
|
|
690
|
+
if (!(Oe && !Le[b] && j(pu, b))) {
|
|
691
|
+
if (!(C0 && j(Ie, b))) {
|
|
692
|
+
if (!U[b] || Le[b]) {
|
|
687
693
|
if (
|
|
688
694
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
689
695
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
@@ -692,10 +698,10 @@ function Mt() {
|
|
|
692
698
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
693
699
|
b === "is" && R.allowCustomizedBuiltInElements && (R.tagNameCheck instanceof RegExp && j(R.tagNameCheck, x) || R.tagNameCheck instanceof Function && R.tagNameCheck(x)))
|
|
694
700
|
) return !1;
|
|
695
|
-
} else if (!
|
|
696
|
-
if (!j(k0,
|
|
701
|
+
} else if (!ze[b]) {
|
|
702
|
+
if (!j(k0, Xu(x, g0, ""))) {
|
|
697
703
|
if (!((b === "src" || b === "xlink:href" || b === "href") && l !== "script" && Dr(x, "data:") === 0 && w0[l])) {
|
|
698
|
-
if (!(D0 && !j(rn,
|
|
704
|
+
if (!(D0 && !j(rn, Xu(x, g0, "")))) {
|
|
699
705
|
if (x)
|
|
700
706
|
return !1;
|
|
701
707
|
}
|
|
@@ -706,13 +712,13 @@ function Mt() {
|
|
|
706
712
|
}
|
|
707
713
|
return !0;
|
|
708
714
|
}, q0 = function(l) {
|
|
709
|
-
return l !== "annotation-xml" && J0(l,
|
|
715
|
+
return l !== "annotation-xml" && J0(l, on);
|
|
710
716
|
}, U0 = function(l) {
|
|
711
717
|
lu(O.beforeSanitizeAttributes, l, null);
|
|
712
718
|
const {
|
|
713
719
|
attributes: b
|
|
714
720
|
} = l;
|
|
715
|
-
if (!b ||
|
|
721
|
+
if (!b || $e(l))
|
|
716
722
|
return;
|
|
717
723
|
const x = {
|
|
718
724
|
attrName: "",
|
|
@@ -727,9 +733,9 @@ function Mt() {
|
|
|
727
733
|
name: N,
|
|
728
734
|
namespaceURI: Z,
|
|
729
735
|
value: fu
|
|
730
|
-
} = H,
|
|
731
|
-
let $ = N === "value" ?
|
|
732
|
-
if (x.attrName =
|
|
736
|
+
} = H, Vu = B(N), je = fu;
|
|
737
|
+
let $ = N === "value" ? je : yr(je);
|
|
738
|
+
if (x.attrName = Vu, x.attrValue = $, x.keepAttr = !0, x.forceKeepAttr = void 0, lu(O.uponSanitizeAttribute, l, x), $ = x.attrValue, T0 && (Vu === "id" || Vu === "name") && (Mu(N, l), $ = cn + $), de && j(/((--!?|])>)|<\/(style|title)/i, $)) {
|
|
733
739
|
Mu(N, l);
|
|
734
740
|
continue;
|
|
735
741
|
}
|
|
@@ -743,16 +749,16 @@ function Mt() {
|
|
|
743
749
|
Mu(N, l);
|
|
744
750
|
continue;
|
|
745
751
|
}
|
|
746
|
-
Fu && ge([
|
|
747
|
-
$ =
|
|
752
|
+
Fu && ge([$u, ju, yu], ($0) => {
|
|
753
|
+
$ = Xu($, $0, " ");
|
|
748
754
|
});
|
|
749
|
-
const H0 =
|
|
750
|
-
if (!z0(H0,
|
|
755
|
+
const H0 = B(l.nodeName);
|
|
756
|
+
if (!z0(H0, Vu, $)) {
|
|
751
757
|
Mu(N, l);
|
|
752
758
|
continue;
|
|
753
759
|
}
|
|
754
|
-
if (m && typeof
|
|
755
|
-
switch (
|
|
760
|
+
if (m && typeof h == "object" && typeof h.getAttributeType == "function" && !Z)
|
|
761
|
+
switch (h.getAttributeType(H0, Vu)) {
|
|
756
762
|
case "TrustedHTML": {
|
|
757
763
|
$ = m.createHTML($);
|
|
758
764
|
break;
|
|
@@ -762,39 +768,39 @@ function Mt() {
|
|
|
762
768
|
break;
|
|
763
769
|
}
|
|
764
770
|
}
|
|
765
|
-
if ($ !==
|
|
771
|
+
if ($ !== je)
|
|
766
772
|
try {
|
|
767
|
-
Z ? l.setAttributeNS(Z, N, $) : l.setAttribute(N, $),
|
|
773
|
+
Z ? l.setAttributeNS(Z, N, $) : l.setAttribute(N, $), $e(l) ? nu(l) : X0(e.removed);
|
|
768
774
|
} catch {
|
|
769
775
|
Mu(N, l);
|
|
770
776
|
}
|
|
771
777
|
}
|
|
772
778
|
lu(O.afterSanitizeAttributes, l, null);
|
|
773
|
-
},
|
|
779
|
+
}, hn = function g(l) {
|
|
774
780
|
let b = null;
|
|
775
781
|
const x = N0(l);
|
|
776
782
|
for (lu(O.beforeSanitizeShadowDOM, l, null); b = x.nextNode(); )
|
|
777
|
-
lu(O.uponSanitizeShadowNode, b, null),
|
|
783
|
+
lu(O.uponSanitizeShadowNode, b, null), B0(b), U0(b), b.content instanceof o && g(b.content);
|
|
778
784
|
lu(O.afterSanitizeShadowDOM, l, null);
|
|
779
785
|
};
|
|
780
786
|
return e.sanitize = function(g) {
|
|
781
787
|
let l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, b = null, x = null, v = null, H = null;
|
|
782
|
-
if (
|
|
788
|
+
if (qe = !g, qe && (g = "<!-->"), typeof g != "string" && !P0(g))
|
|
783
789
|
if (typeof g.toString == "function") {
|
|
784
790
|
if (g = g.toString(), typeof g != "string")
|
|
785
|
-
throw
|
|
791
|
+
throw Ju("dirty is not a string, aborting");
|
|
786
792
|
} else
|
|
787
|
-
throw
|
|
793
|
+
throw Ju("toString is not a function");
|
|
788
794
|
if (!e.isSupported)
|
|
789
795
|
return g;
|
|
790
|
-
if (
|
|
796
|
+
if (Ne || He(l), e.removed = [], typeof g == "string" && (Wu = !1), Wu) {
|
|
791
797
|
if (g.nodeName) {
|
|
792
|
-
const fu =
|
|
793
|
-
if (!
|
|
794
|
-
throw
|
|
798
|
+
const fu = B(g.nodeName);
|
|
799
|
+
if (!P[fu] || Gu[fu])
|
|
800
|
+
throw Ju("root node is forbidden and cannot be sanitized in-place");
|
|
795
801
|
}
|
|
796
|
-
} else if (g instanceof
|
|
797
|
-
b = O0("<!---->"), x = b.ownerDocument.importNode(g, !0), x.nodeType ===
|
|
802
|
+
} else if (g instanceof c)
|
|
803
|
+
b = O0("<!---->"), x = b.ownerDocument.importNode(g, !0), x.nodeType === Ku.element && x.nodeName === "BODY" || x.nodeName === "HTML" ? b = x : b.appendChild(x);
|
|
798
804
|
else {
|
|
799
805
|
if (!Tu && !Fu && !Au && // eslint-disable-next-line unicorn/prefer-includes
|
|
800
806
|
g.indexOf("<") === -1)
|
|
@@ -802,14 +808,14 @@ function Mt() {
|
|
|
802
808
|
if (b = O0(g), !b)
|
|
803
809
|
return Tu ? null : he ? A : "";
|
|
804
810
|
}
|
|
805
|
-
b && Pe &&
|
|
806
|
-
const N = N0(
|
|
811
|
+
b && Pe && nu(b.firstChild);
|
|
812
|
+
const N = N0(Wu ? g : b);
|
|
807
813
|
for (; v = N.nextNode(); )
|
|
808
|
-
|
|
809
|
-
if (
|
|
814
|
+
B0(v), U0(v), v.content instanceof o && hn(v.content);
|
|
815
|
+
if (Wu)
|
|
810
816
|
return g;
|
|
811
817
|
if (Tu) {
|
|
812
|
-
if (
|
|
818
|
+
if (pe)
|
|
813
819
|
for (H = Y.call(b.ownerDocument); b.firstChild; )
|
|
814
820
|
H.appendChild(b.firstChild);
|
|
815
821
|
else
|
|
@@ -817,21 +823,21 @@ function Mt() {
|
|
|
817
823
|
return (U.shadowroot || U.shadowrootmode) && (H = Eu.call(n, H, !0)), H;
|
|
818
824
|
}
|
|
819
825
|
let Z = Au ? b.outerHTML : b.innerHTML;
|
|
820
|
-
return Au &&
|
|
821
|
-
` + Z), Fu && ge([
|
|
822
|
-
Z =
|
|
826
|
+
return Au && P["!doctype"] && b.ownerDocument && b.ownerDocument.doctype && b.ownerDocument.doctype.name && j(Rt, b.ownerDocument.doctype.name) && (Z = "<!DOCTYPE " + b.ownerDocument.doctype.name + `>
|
|
827
|
+
` + Z), Fu && ge([$u, ju, yu], (fu) => {
|
|
828
|
+
Z = Xu(Z, fu, " ");
|
|
823
829
|
}), m && he ? m.createHTML(Z) : Z;
|
|
824
830
|
}, e.setConfig = function() {
|
|
825
831
|
let g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
826
|
-
|
|
832
|
+
He(g), Ne = !0;
|
|
827
833
|
}, e.clearConfig = function() {
|
|
828
|
-
Ru = null,
|
|
834
|
+
Ru = null, Ne = !1;
|
|
829
835
|
}, e.isValidAttribute = function(g, l, b) {
|
|
830
|
-
Ru ||
|
|
831
|
-
const x =
|
|
836
|
+
Ru || He({});
|
|
837
|
+
const x = B(g), v = B(l);
|
|
832
838
|
return z0(x, v, b);
|
|
833
839
|
}, e.addHook = function(g, l) {
|
|
834
|
-
typeof l == "function" &&
|
|
840
|
+
typeof l == "function" && Yu(O[g], l);
|
|
835
841
|
}, e.removeHook = function(g, l) {
|
|
836
842
|
if (l !== void 0) {
|
|
837
843
|
const b = Ar(O[g], l);
|
|
@@ -861,38 +867,38 @@ function Ur(u) {
|
|
|
861
867
|
}
|
|
862
868
|
return e;
|
|
863
869
|
}
|
|
864
|
-
function
|
|
865
|
-
typeof e != "string" && (e =
|
|
870
|
+
function zu(u, e) {
|
|
871
|
+
typeof e != "string" && (e = zu.defaultChars);
|
|
866
872
|
const t = Ur(e);
|
|
867
873
|
return u.replace(/(%[a-f0-9]{2})+/gi, function(n) {
|
|
868
874
|
let r = "";
|
|
869
|
-
for (let
|
|
870
|
-
const
|
|
871
|
-
if (
|
|
872
|
-
r += t[
|
|
875
|
+
for (let o = 0, i = n.length; o < i; o += 3) {
|
|
876
|
+
const c = parseInt(n.slice(o + 1, o + 3), 16);
|
|
877
|
+
if (c < 128) {
|
|
878
|
+
r += t[c];
|
|
873
879
|
continue;
|
|
874
880
|
}
|
|
875
|
-
if ((
|
|
876
|
-
const a = parseInt(n.slice(
|
|
881
|
+
if ((c & 224) === 192 && o + 3 < i) {
|
|
882
|
+
const a = parseInt(n.slice(o + 4, o + 6), 16);
|
|
877
883
|
if ((a & 192) === 128) {
|
|
878
|
-
const s =
|
|
879
|
-
s < 128 ? r += "��" : r += String.fromCharCode(s),
|
|
884
|
+
const s = c << 6 & 1984 | a & 63;
|
|
885
|
+
s < 128 ? r += "��" : r += String.fromCharCode(s), o += 3;
|
|
880
886
|
continue;
|
|
881
887
|
}
|
|
882
888
|
}
|
|
883
|
-
if ((
|
|
884
|
-
const a = parseInt(n.slice(
|
|
889
|
+
if ((c & 240) === 224 && o + 6 < i) {
|
|
890
|
+
const a = parseInt(n.slice(o + 4, o + 6), 16), s = parseInt(n.slice(o + 7, o + 9), 16);
|
|
885
891
|
if ((a & 192) === 128 && (s & 192) === 128) {
|
|
886
|
-
const f =
|
|
887
|
-
f < 2048 || f >= 55296 && f <= 57343 ? r += "���" : r += String.fromCharCode(f),
|
|
892
|
+
const f = c << 12 & 61440 | a << 6 & 4032 | s & 63;
|
|
893
|
+
f < 2048 || f >= 55296 && f <= 57343 ? r += "���" : r += String.fromCharCode(f), o += 6;
|
|
888
894
|
continue;
|
|
889
895
|
}
|
|
890
896
|
}
|
|
891
|
-
if ((
|
|
892
|
-
const a = parseInt(n.slice(
|
|
897
|
+
if ((c & 248) === 240 && o + 9 < i) {
|
|
898
|
+
const a = parseInt(n.slice(o + 4, o + 6), 16), s = parseInt(n.slice(o + 7, o + 9), 16), f = parseInt(n.slice(o + 10, o + 12), 16);
|
|
893
899
|
if ((a & 192) === 128 && (s & 192) === 128 && (f & 192) === 128) {
|
|
894
|
-
let
|
|
895
|
-
|
|
900
|
+
let d = c << 18 & 1835008 | a << 12 & 258048 | s << 6 & 4032 | f & 63;
|
|
901
|
+
d < 65536 || d > 1114111 ? r += "����" : (d -= 65536, r += String.fromCharCode(55296 + (d >> 10), 56320 + (d & 1023))), o += 9;
|
|
896
902
|
continue;
|
|
897
903
|
}
|
|
898
904
|
}
|
|
@@ -901,14 +907,14 @@ function Pu(u, e) {
|
|
|
901
907
|
return r;
|
|
902
908
|
});
|
|
903
909
|
}
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
const
|
|
910
|
+
zu.defaultChars = ";/?:@&=+$,#";
|
|
911
|
+
zu.componentChars = "";
|
|
912
|
+
const ot = {};
|
|
907
913
|
function Hr(u) {
|
|
908
|
-
let e =
|
|
914
|
+
let e = ot[u];
|
|
909
915
|
if (e)
|
|
910
916
|
return e;
|
|
911
|
-
e =
|
|
917
|
+
e = ot[u] = [];
|
|
912
918
|
for (let t = 0; t < 128; t++) {
|
|
913
919
|
const n = String.fromCharCode(t);
|
|
914
920
|
/^[0-9a-z]$/i.test(n) ? e.push(n) : e.push("%" + ("0" + t.toString(16).toUpperCase()).slice(-2));
|
|
@@ -917,46 +923,46 @@ function Hr(u) {
|
|
|
917
923
|
e[u.charCodeAt(t)] = u[t];
|
|
918
924
|
return e;
|
|
919
925
|
}
|
|
920
|
-
function
|
|
921
|
-
typeof e != "string" && (t = e, e =
|
|
926
|
+
function se(u, e, t) {
|
|
927
|
+
typeof e != "string" && (t = e, e = se.defaultChars), typeof t > "u" && (t = !0);
|
|
922
928
|
const n = Hr(e);
|
|
923
929
|
let r = "";
|
|
924
|
-
for (let
|
|
925
|
-
const
|
|
926
|
-
if (t &&
|
|
927
|
-
r += u.slice(
|
|
930
|
+
for (let o = 0, i = u.length; o < i; o++) {
|
|
931
|
+
const c = u.charCodeAt(o);
|
|
932
|
+
if (t && c === 37 && o + 2 < i && /^[0-9a-f]{2}$/i.test(u.slice(o + 1, o + 3))) {
|
|
933
|
+
r += u.slice(o, o + 3), o += 2;
|
|
928
934
|
continue;
|
|
929
935
|
}
|
|
930
|
-
if (
|
|
931
|
-
r += n[
|
|
936
|
+
if (c < 128) {
|
|
937
|
+
r += n[c];
|
|
932
938
|
continue;
|
|
933
939
|
}
|
|
934
|
-
if (
|
|
935
|
-
if (
|
|
936
|
-
const a = u.charCodeAt(
|
|
940
|
+
if (c >= 55296 && c <= 57343) {
|
|
941
|
+
if (c >= 55296 && c <= 56319 && o + 1 < i) {
|
|
942
|
+
const a = u.charCodeAt(o + 1);
|
|
937
943
|
if (a >= 56320 && a <= 57343) {
|
|
938
|
-
r += encodeURIComponent(u[
|
|
944
|
+
r += encodeURIComponent(u[o] + u[o + 1]), o++;
|
|
939
945
|
continue;
|
|
940
946
|
}
|
|
941
947
|
}
|
|
942
948
|
r += "%EF%BF%BD";
|
|
943
949
|
continue;
|
|
944
950
|
}
|
|
945
|
-
r += encodeURIComponent(u[
|
|
951
|
+
r += encodeURIComponent(u[o]);
|
|
946
952
|
}
|
|
947
953
|
return r;
|
|
948
954
|
}
|
|
949
|
-
|
|
950
|
-
|
|
955
|
+
se.defaultChars = ";/?:@&=+$,-_.!~*'()#";
|
|
956
|
+
se.componentChars = "-_.!~*'()";
|
|
951
957
|
function f0(u) {
|
|
952
958
|
let e = "";
|
|
953
959
|
return e += u.protocol || "", e += u.slashes ? "//" : "", e += u.auth ? u.auth + "@" : "", u.hostname && u.hostname.indexOf(":") !== -1 ? e += "[" + u.hostname + "]" : e += u.hostname || "", e += u.port ? ":" + u.port : "", e += u.pathname || "", e += u.search || "", e += u.hash || "", e;
|
|
954
960
|
}
|
|
955
|
-
function
|
|
961
|
+
function ye() {
|
|
956
962
|
this.protocol = null, this.slashes = null, this.auth = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.pathname = null;
|
|
957
963
|
}
|
|
958
964
|
const $r = /^([a-z0-9.+-]+:)/i, jr = /:[0-9]*$/, Gr = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, Wr = ["<", ">", '"', "`", " ", "\r", `
|
|
959
|
-
`, " "], Zr = ["{", "}", "|", "\\", "^", "`"].concat(Wr), Vr = ["'"].concat(Zr),
|
|
965
|
+
`, " "], Zr = ["{", "}", "|", "\\", "^", "`"].concat(Wr), Vr = ["'"].concat(Zr), ct = ["%", "/", "?", ";", "#"].concat(Vr), it = ["/", "?", "#"], Yr = 255, at = /^[+a-z0-9A-Z_-]{0,63}$/, Xr = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, st = {
|
|
960
966
|
javascript: !0,
|
|
961
967
|
"javascript:": !0
|
|
962
968
|
}, lt = {
|
|
@@ -972,80 +978,80 @@ const $r = /^([a-z0-9.+-]+:)/i, jr = /:[0-9]*$/, Gr = /^(\/\/?(?!\/)[^\?\s]*)(\?
|
|
|
972
978
|
"file:": !0
|
|
973
979
|
};
|
|
974
980
|
function d0(u, e) {
|
|
975
|
-
if (u && u instanceof
|
|
976
|
-
const t = new
|
|
981
|
+
if (u && u instanceof ye) return u;
|
|
982
|
+
const t = new ye();
|
|
977
983
|
return t.parse(u, e), t;
|
|
978
984
|
}
|
|
979
|
-
|
|
980
|
-
let t, n, r,
|
|
981
|
-
if (
|
|
982
|
-
const s = Gr.exec(
|
|
985
|
+
ye.prototype.parse = function(u, e) {
|
|
986
|
+
let t, n, r, o = u;
|
|
987
|
+
if (o = o.trim(), !e && u.split("#").length === 1) {
|
|
988
|
+
const s = Gr.exec(o);
|
|
983
989
|
if (s)
|
|
984
990
|
return this.pathname = s[1], s[2] && (this.search = s[2]), this;
|
|
985
991
|
}
|
|
986
|
-
let i = $r.exec(
|
|
987
|
-
if (i && (i = i[0], t = i.toLowerCase(), this.protocol = i,
|
|
992
|
+
let i = $r.exec(o);
|
|
993
|
+
if (i && (i = i[0], t = i.toLowerCase(), this.protocol = i, o = o.substr(i.length)), (e || i || o.match(/^\/\/[^@\/]+@[^@\/]+/)) && (r = o.substr(0, 2) === "//", r && !(i && st[i]) && (o = o.substr(2), this.slashes = !0)), !st[i] && (r || i && !lt[i])) {
|
|
988
994
|
let s = -1;
|
|
989
|
-
for (let
|
|
990
|
-
n =
|
|
991
|
-
let f,
|
|
992
|
-
s === -1 ?
|
|
993
|
-
for (let
|
|
994
|
-
n =
|
|
995
|
-
s === -1 && (s =
|
|
996
|
-
const _ =
|
|
997
|
-
|
|
998
|
-
const
|
|
999
|
-
if (!
|
|
1000
|
-
const
|
|
1001
|
-
for (let C = 0, D =
|
|
1002
|
-
const S =
|
|
995
|
+
for (let p = 0; p < it.length; p++)
|
|
996
|
+
n = o.indexOf(it[p]), n !== -1 && (s === -1 || n < s) && (s = n);
|
|
997
|
+
let f, d;
|
|
998
|
+
s === -1 ? d = o.lastIndexOf("@") : d = o.lastIndexOf("@", s), d !== -1 && (f = o.slice(0, d), o = o.slice(d + 1), this.auth = f), s = -1;
|
|
999
|
+
for (let p = 0; p < ct.length; p++)
|
|
1000
|
+
n = o.indexOf(ct[p]), n !== -1 && (s === -1 || n < s) && (s = n);
|
|
1001
|
+
s === -1 && (s = o.length), o[s - 1] === ":" && s--;
|
|
1002
|
+
const _ = o.slice(0, s);
|
|
1003
|
+
o = o.slice(s), this.parseHost(_), this.hostname = this.hostname || "";
|
|
1004
|
+
const h = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
1005
|
+
if (!h) {
|
|
1006
|
+
const p = this.hostname.split(/\./);
|
|
1007
|
+
for (let C = 0, D = p.length; C < D; C++) {
|
|
1008
|
+
const S = p[C];
|
|
1003
1009
|
if (S && !S.match(at)) {
|
|
1004
1010
|
let E = "";
|
|
1005
1011
|
for (let k = 0, m = S.length; k < m; k++)
|
|
1006
1012
|
S.charCodeAt(k) > 127 ? E += "x" : E += S[k];
|
|
1007
1013
|
if (!E.match(at)) {
|
|
1008
|
-
const k =
|
|
1009
|
-
A && (k.push(A[1]), m.unshift(A[2])), m.length && (
|
|
1014
|
+
const k = p.slice(0, C), m = p.slice(C + 1), A = S.match(Xr);
|
|
1015
|
+
A && (k.push(A[1]), m.unshift(A[2])), m.length && (o = m.join(".") + o), this.hostname = k.join(".");
|
|
1010
1016
|
break;
|
|
1011
1017
|
}
|
|
1012
1018
|
}
|
|
1013
1019
|
}
|
|
1014
1020
|
}
|
|
1015
|
-
this.hostname.length > Yr && (this.hostname = ""),
|
|
1021
|
+
this.hostname.length > Yr && (this.hostname = ""), h && (this.hostname = this.hostname.substr(1, this.hostname.length - 2));
|
|
1016
1022
|
}
|
|
1017
|
-
const
|
|
1018
|
-
|
|
1019
|
-
const a =
|
|
1020
|
-
return a !== -1 && (this.search =
|
|
1023
|
+
const c = o.indexOf("#");
|
|
1024
|
+
c !== -1 && (this.hash = o.substr(c), o = o.slice(0, c));
|
|
1025
|
+
const a = o.indexOf("?");
|
|
1026
|
+
return a !== -1 && (this.search = o.substr(a), o = o.slice(0, a)), o && (this.pathname = o), lt[t] && this.hostname && !this.pathname && (this.pathname = ""), this;
|
|
1021
1027
|
};
|
|
1022
|
-
|
|
1028
|
+
ye.prototype.parseHost = function(u) {
|
|
1023
1029
|
let e = jr.exec(u);
|
|
1024
1030
|
e && (e = e[0], e !== ":" && (this.port = e.substr(1)), u = u.substr(0, u.length - e.length)), u && (this.hostname = u);
|
|
1025
1031
|
};
|
|
1026
1032
|
const Jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1027
1033
|
__proto__: null,
|
|
1028
|
-
decode:
|
|
1029
|
-
encode:
|
|
1034
|
+
decode: zu,
|
|
1035
|
+
encode: se,
|
|
1030
1036
|
format: f0,
|
|
1031
1037
|
parse: d0
|
|
1032
|
-
}, Symbol.toStringTag, { value: "Module" })), It = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Lt = /[\0-\x1F\x7F-\x9F]/, Qr = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,
|
|
1038
|
+
}, Symbol.toStringTag, { value: "Module" })), It = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Lt = /[\0-\x1F\x7F-\x9F]/, Qr = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, p0 = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, Ot = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, Nt = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, Kr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1033
1039
|
__proto__: null,
|
|
1034
1040
|
Any: It,
|
|
1035
1041
|
Cc: Lt,
|
|
1036
1042
|
Cf: Qr,
|
|
1037
|
-
P:
|
|
1043
|
+
P: p0,
|
|
1038
1044
|
S: Ot,
|
|
1039
1045
|
Z: Nt
|
|
1040
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1046
|
+
}, Symbol.toStringTag, { value: "Module" })), uo = new Uint16Array(
|
|
1041
1047
|
// prettier-ignore
|
|
1042
1048
|
'ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((u) => u.charCodeAt(0))
|
|
1043
|
-
),
|
|
1049
|
+
), eo = new Uint16Array(
|
|
1044
1050
|
// prettier-ignore
|
|
1045
1051
|
"Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((u) => u.charCodeAt(0))
|
|
1046
1052
|
);
|
|
1047
|
-
var
|
|
1048
|
-
const
|
|
1053
|
+
var Xe;
|
|
1054
|
+
const to = /* @__PURE__ */ new Map([
|
|
1049
1055
|
[0, 65533],
|
|
1050
1056
|
// C1 Unicode control character reference replacements
|
|
1051
1057
|
[128, 8364],
|
|
@@ -1075,37 +1081,37 @@ const tc = /* @__PURE__ */ new Map([
|
|
|
1075
1081
|
[156, 339],
|
|
1076
1082
|
[158, 382],
|
|
1077
1083
|
[159, 376]
|
|
1078
|
-
]),
|
|
1084
|
+
]), no = (
|
|
1079
1085
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins
|
|
1080
|
-
(
|
|
1086
|
+
(Xe = String.fromCodePoint) !== null && Xe !== void 0 ? Xe : function(u) {
|
|
1081
1087
|
let e = "";
|
|
1082
1088
|
return u > 65535 && (u -= 65536, e += String.fromCharCode(u >>> 10 & 1023 | 55296), u = 56320 | u & 1023), e += String.fromCharCode(u), e;
|
|
1083
1089
|
}
|
|
1084
1090
|
);
|
|
1085
|
-
function
|
|
1091
|
+
function ro(u) {
|
|
1086
1092
|
var e;
|
|
1087
|
-
return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e =
|
|
1093
|
+
return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e = to.get(u)) !== null && e !== void 0 ? e : u;
|
|
1088
1094
|
}
|
|
1089
1095
|
var q;
|
|
1090
1096
|
(function(u) {
|
|
1091
1097
|
u[u.NUM = 35] = "NUM", u[u.SEMI = 59] = "SEMI", u[u.EQUALS = 61] = "EQUALS", u[u.ZERO = 48] = "ZERO", u[u.NINE = 57] = "NINE", u[u.LOWER_A = 97] = "LOWER_A", u[u.LOWER_F = 102] = "LOWER_F", u[u.LOWER_X = 120] = "LOWER_X", u[u.LOWER_Z = 122] = "LOWER_Z", u[u.UPPER_A = 65] = "UPPER_A", u[u.UPPER_F = 70] = "UPPER_F", u[u.UPPER_Z = 90] = "UPPER_Z";
|
|
1092
1098
|
})(q || (q = {}));
|
|
1093
|
-
const
|
|
1099
|
+
const oo = 32;
|
|
1094
1100
|
var _u;
|
|
1095
1101
|
(function(u) {
|
|
1096
1102
|
u[u.VALUE_LENGTH = 49152] = "VALUE_LENGTH", u[u.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", u[u.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
1097
1103
|
})(_u || (_u = {}));
|
|
1098
|
-
function
|
|
1104
|
+
function c0(u) {
|
|
1099
1105
|
return u >= q.ZERO && u <= q.NINE;
|
|
1100
1106
|
}
|
|
1101
|
-
function
|
|
1107
|
+
function co(u) {
|
|
1102
1108
|
return u >= q.UPPER_A && u <= q.UPPER_F || u >= q.LOWER_A && u <= q.LOWER_F;
|
|
1103
1109
|
}
|
|
1104
|
-
function
|
|
1105
|
-
return u >= q.UPPER_A && u <= q.UPPER_Z || u >= q.LOWER_A && u <= q.LOWER_Z ||
|
|
1110
|
+
function io(u) {
|
|
1111
|
+
return u >= q.UPPER_A && u <= q.UPPER_Z || u >= q.LOWER_A && u <= q.LOWER_Z || c0(u);
|
|
1106
1112
|
}
|
|
1107
|
-
function
|
|
1108
|
-
return u === q.EQUALS ||
|
|
1113
|
+
function ao(u) {
|
|
1114
|
+
return u === q.EQUALS || io(u);
|
|
1109
1115
|
}
|
|
1110
1116
|
var z;
|
|
1111
1117
|
(function(u) {
|
|
@@ -1115,7 +1121,7 @@ var bu;
|
|
|
1115
1121
|
(function(u) {
|
|
1116
1122
|
u[u.Legacy = 0] = "Legacy", u[u.Strict = 1] = "Strict", u[u.Attribute = 2] = "Attribute";
|
|
1117
1123
|
})(bu || (bu = {}));
|
|
1118
|
-
class
|
|
1124
|
+
class so {
|
|
1119
1125
|
constructor(e, t, n) {
|
|
1120
1126
|
this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state = z.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = bu.Strict;
|
|
1121
1127
|
}
|
|
@@ -1158,12 +1164,12 @@ class sc {
|
|
|
1158
1164
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
1159
1165
|
*/
|
|
1160
1166
|
stateNumericStart(e, t) {
|
|
1161
|
-
return t >= e.length ? -1 : (e.charCodeAt(t) |
|
|
1167
|
+
return t >= e.length ? -1 : (e.charCodeAt(t) | oo) === q.LOWER_X ? (this.state = z.NumericHex, this.consumed += 1, this.stateNumericHex(e, t + 1)) : (this.state = z.NumericDecimal, this.stateNumericDecimal(e, t));
|
|
1162
1168
|
}
|
|
1163
1169
|
addToNumericResult(e, t, n, r) {
|
|
1164
1170
|
if (t !== n) {
|
|
1165
|
-
const
|
|
1166
|
-
this.result = this.result * Math.pow(r,
|
|
1171
|
+
const o = n - t;
|
|
1172
|
+
this.result = this.result * Math.pow(r, o) + parseInt(e.substr(t, o), r), this.consumed += o;
|
|
1167
1173
|
}
|
|
1168
1174
|
}
|
|
1169
1175
|
/**
|
|
@@ -1179,7 +1185,7 @@ class sc {
|
|
|
1179
1185
|
const n = t;
|
|
1180
1186
|
for (; t < e.length; ) {
|
|
1181
1187
|
const r = e.charCodeAt(t);
|
|
1182
|
-
if (
|
|
1188
|
+
if (c0(r) || co(r))
|
|
1183
1189
|
t += 1;
|
|
1184
1190
|
else
|
|
1185
1191
|
return this.addToNumericResult(e, n, t, 16), this.emitNumericEntity(r, 3);
|
|
@@ -1199,7 +1205,7 @@ class sc {
|
|
|
1199
1205
|
const n = t;
|
|
1200
1206
|
for (; t < e.length; ) {
|
|
1201
1207
|
const r = e.charCodeAt(t);
|
|
1202
|
-
if (
|
|
1208
|
+
if (c0(r))
|
|
1203
1209
|
t += 1;
|
|
1204
1210
|
else
|
|
1205
1211
|
return this.addToNumericResult(e, n, t, 10), this.emitNumericEntity(r, 2);
|
|
@@ -1227,7 +1233,7 @@ class sc {
|
|
|
1227
1233
|
this.consumed += 1;
|
|
1228
1234
|
else if (this.decodeMode === bu.Strict)
|
|
1229
1235
|
return 0;
|
|
1230
|
-
return this.emitCodePoint(
|
|
1236
|
+
return this.emitCodePoint(ro(this.result), this.consumed), this.errors && (e !== q.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
1231
1237
|
}
|
|
1232
1238
|
/**
|
|
1233
1239
|
* Parses a named entity.
|
|
@@ -1240,17 +1246,17 @@ class sc {
|
|
|
1240
1246
|
*/
|
|
1241
1247
|
stateNamedEntity(e, t) {
|
|
1242
1248
|
const { decodeTree: n } = this;
|
|
1243
|
-
let r = n[this.treeIndex],
|
|
1249
|
+
let r = n[this.treeIndex], o = (r & _u.VALUE_LENGTH) >> 14;
|
|
1244
1250
|
for (; t < e.length; t++, this.excess++) {
|
|
1245
1251
|
const i = e.charCodeAt(t);
|
|
1246
|
-
if (this.treeIndex =
|
|
1252
|
+
if (this.treeIndex = lo(n, r, this.treeIndex + Math.max(1, o), i), this.treeIndex < 0)
|
|
1247
1253
|
return this.result === 0 || // If we are parsing an attribute
|
|
1248
1254
|
this.decodeMode === bu.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
1249
|
-
(
|
|
1250
|
-
|
|
1251
|
-
if (r = n[this.treeIndex],
|
|
1255
|
+
(o === 0 || // And there should be no invalid characters.
|
|
1256
|
+
ao(i)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
1257
|
+
if (r = n[this.treeIndex], o = (r & _u.VALUE_LENGTH) >> 14, o !== 0) {
|
|
1252
1258
|
if (i === q.SEMI)
|
|
1253
|
-
return this.emitNamedEntityData(this.treeIndex,
|
|
1259
|
+
return this.emitNamedEntityData(this.treeIndex, o, this.consumed + this.excess);
|
|
1254
1260
|
this.decodeMode !== bu.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
1255
1261
|
}
|
|
1256
1262
|
}
|
|
@@ -1302,64 +1308,64 @@ class sc {
|
|
|
1302
1308
|
}
|
|
1303
1309
|
}
|
|
1304
1310
|
}
|
|
1305
|
-
function
|
|
1311
|
+
function Pt(u) {
|
|
1306
1312
|
let e = "";
|
|
1307
|
-
const t = new
|
|
1308
|
-
return function(r,
|
|
1309
|
-
let i = 0,
|
|
1310
|
-
for (; (
|
|
1311
|
-
e += r.slice(i,
|
|
1313
|
+
const t = new so(u, (n) => e += no(n));
|
|
1314
|
+
return function(r, o) {
|
|
1315
|
+
let i = 0, c = 0;
|
|
1316
|
+
for (; (c = r.indexOf("&", c)) >= 0; ) {
|
|
1317
|
+
e += r.slice(i, c), t.startEntity(o);
|
|
1312
1318
|
const s = t.write(
|
|
1313
1319
|
r,
|
|
1314
1320
|
// Skip the "&"
|
|
1315
|
-
|
|
1321
|
+
c + 1
|
|
1316
1322
|
);
|
|
1317
1323
|
if (s < 0) {
|
|
1318
|
-
i =
|
|
1324
|
+
i = c + t.end();
|
|
1319
1325
|
break;
|
|
1320
1326
|
}
|
|
1321
|
-
i =
|
|
1327
|
+
i = c + s, c = s === 0 ? i + 1 : i;
|
|
1322
1328
|
}
|
|
1323
1329
|
const a = e + r.slice(i);
|
|
1324
1330
|
return e = "", a;
|
|
1325
1331
|
};
|
|
1326
1332
|
}
|
|
1327
|
-
function
|
|
1328
|
-
const r = (e & _u.BRANCH_LENGTH) >> 7,
|
|
1333
|
+
function lo(u, e, t, n) {
|
|
1334
|
+
const r = (e & _u.BRANCH_LENGTH) >> 7, o = e & _u.JUMP_TABLE;
|
|
1329
1335
|
if (r === 0)
|
|
1330
|
-
return
|
|
1331
|
-
if (
|
|
1332
|
-
const a = n -
|
|
1336
|
+
return o !== 0 && n === o ? t : -1;
|
|
1337
|
+
if (o) {
|
|
1338
|
+
const a = n - o;
|
|
1333
1339
|
return a < 0 || a >= r ? -1 : u[t + a] - 1;
|
|
1334
1340
|
}
|
|
1335
|
-
let i = t,
|
|
1336
|
-
for (; i <=
|
|
1337
|
-
const a = i +
|
|
1341
|
+
let i = t, c = i + r - 1;
|
|
1342
|
+
for (; i <= c; ) {
|
|
1343
|
+
const a = i + c >>> 1, s = u[a];
|
|
1338
1344
|
if (s < n)
|
|
1339
1345
|
i = a + 1;
|
|
1340
1346
|
else if (s > n)
|
|
1341
|
-
|
|
1347
|
+
c = a - 1;
|
|
1342
1348
|
else
|
|
1343
1349
|
return u[a + r];
|
|
1344
1350
|
}
|
|
1345
1351
|
return -1;
|
|
1346
1352
|
}
|
|
1347
|
-
const
|
|
1348
|
-
|
|
1349
|
-
function
|
|
1350
|
-
return
|
|
1353
|
+
const fo = Pt(uo);
|
|
1354
|
+
Pt(eo);
|
|
1355
|
+
function Bt(u, e = bu.Legacy) {
|
|
1356
|
+
return fo(u, e);
|
|
1351
1357
|
}
|
|
1352
|
-
function
|
|
1358
|
+
function po(u) {
|
|
1353
1359
|
return Object.prototype.toString.call(u);
|
|
1354
1360
|
}
|
|
1355
|
-
function
|
|
1356
|
-
return
|
|
1361
|
+
function h0(u) {
|
|
1362
|
+
return po(u) === "[object String]";
|
|
1357
1363
|
}
|
|
1358
|
-
const
|
|
1359
|
-
function
|
|
1360
|
-
return
|
|
1364
|
+
const ho = Object.prototype.hasOwnProperty;
|
|
1365
|
+
function bo(u, e) {
|
|
1366
|
+
return ho.call(u, e);
|
|
1361
1367
|
}
|
|
1362
|
-
function
|
|
1368
|
+
function we(u) {
|
|
1363
1369
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
|
1364
1370
|
if (t) {
|
|
1365
1371
|
if (typeof t != "object")
|
|
@@ -1376,7 +1382,7 @@ function zt(u, e, t) {
|
|
|
1376
1382
|
function b0(u) {
|
|
1377
1383
|
return !(u >= 55296 && u <= 57343 || u >= 64976 && u <= 65007 || (u & 65535) === 65535 || (u & 65535) === 65534 || u >= 0 && u <= 8 || u === 11 || u >= 14 && u <= 31 || u >= 127 && u <= 159 || u > 1114111);
|
|
1378
1384
|
}
|
|
1379
|
-
function
|
|
1385
|
+
function Fe(u) {
|
|
1380
1386
|
if (u > 65535) {
|
|
1381
1387
|
u -= 65536;
|
|
1382
1388
|
const e = 55296 + (u >> 10), t = 56320 + (u & 1023);
|
|
@@ -1384,38 +1390,38 @@ function Te(u) {
|
|
|
1384
1390
|
}
|
|
1385
1391
|
return String.fromCharCode(u);
|
|
1386
1392
|
}
|
|
1387
|
-
const qt = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,
|
|
1388
|
-
function
|
|
1389
|
-
if (e.charCodeAt(0) === 35 &&
|
|
1393
|
+
const qt = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, _o = /&([a-z#][a-z0-9]{1,31});/gi, mo = new RegExp(qt.source + "|" + _o.source, "gi"), xo = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;
|
|
1394
|
+
function go(u, e) {
|
|
1395
|
+
if (e.charCodeAt(0) === 35 && xo.test(e)) {
|
|
1390
1396
|
const n = e[1].toLowerCase() === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10);
|
|
1391
|
-
return b0(n) ?
|
|
1397
|
+
return b0(n) ? Fe(n) : u;
|
|
1392
1398
|
}
|
|
1393
|
-
const t =
|
|
1399
|
+
const t = Bt(u);
|
|
1394
1400
|
return t !== u ? t : u;
|
|
1395
1401
|
}
|
|
1396
|
-
function
|
|
1402
|
+
function ko(u) {
|
|
1397
1403
|
return u.indexOf("\\") < 0 ? u : u.replace(qt, "$1");
|
|
1398
1404
|
}
|
|
1399
|
-
function
|
|
1400
|
-
return u.indexOf("\\") < 0 && u.indexOf("&") < 0 ? u : u.replace(
|
|
1401
|
-
return t ||
|
|
1405
|
+
function qu(u) {
|
|
1406
|
+
return u.indexOf("\\") < 0 && u.indexOf("&") < 0 ? u : u.replace(mo, function(e, t, n) {
|
|
1407
|
+
return t || go(e, n);
|
|
1402
1408
|
});
|
|
1403
1409
|
}
|
|
1404
|
-
const
|
|
1410
|
+
const Eo = /[&<>"]/, Ao = /[&<>"]/g, Co = {
|
|
1405
1411
|
"&": "&",
|
|
1406
1412
|
"<": "<",
|
|
1407
1413
|
">": ">",
|
|
1408
1414
|
'"': """
|
|
1409
1415
|
};
|
|
1410
|
-
function
|
|
1411
|
-
return
|
|
1416
|
+
function Do(u) {
|
|
1417
|
+
return Co[u];
|
|
1412
1418
|
}
|
|
1413
1419
|
function gu(u) {
|
|
1414
|
-
return
|
|
1420
|
+
return Eo.test(u) ? u.replace(Ao, Do) : u;
|
|
1415
1421
|
}
|
|
1416
|
-
const
|
|
1417
|
-
function
|
|
1418
|
-
return u.replace(
|
|
1422
|
+
const yo = /[.?*+^$[\]\\(){}|-]/g;
|
|
1423
|
+
function Fo(u) {
|
|
1424
|
+
return u.replace(yo, "\\$&");
|
|
1419
1425
|
}
|
|
1420
1426
|
function w(u) {
|
|
1421
1427
|
switch (u) {
|
|
@@ -1425,7 +1431,7 @@ function w(u) {
|
|
|
1425
1431
|
}
|
|
1426
1432
|
return !1;
|
|
1427
1433
|
}
|
|
1428
|
-
function
|
|
1434
|
+
function re(u) {
|
|
1429
1435
|
if (u >= 8192 && u <= 8202)
|
|
1430
1436
|
return !0;
|
|
1431
1437
|
switch (u) {
|
|
@@ -1444,8 +1450,8 @@ function ne(u) {
|
|
|
1444
1450
|
}
|
|
1445
1451
|
return !1;
|
|
1446
1452
|
}
|
|
1447
|
-
function
|
|
1448
|
-
return
|
|
1453
|
+
function oe(u) {
|
|
1454
|
+
return p0.test(u) || Ot.test(u);
|
|
1449
1455
|
}
|
|
1450
1456
|
function ce(u) {
|
|
1451
1457
|
switch (u) {
|
|
@@ -1486,37 +1492,37 @@ function ce(u) {
|
|
|
1486
1492
|
return !1;
|
|
1487
1493
|
}
|
|
1488
1494
|
}
|
|
1489
|
-
function
|
|
1495
|
+
function ve(u) {
|
|
1490
1496
|
return u = u.trim().replace(/\s+/g, " "), "ẞ".toLowerCase() === "Ṿ" && (u = u.replace(/ẞ/g, "ß")), u.toLowerCase().toUpperCase();
|
|
1491
1497
|
}
|
|
1492
|
-
const
|
|
1498
|
+
const To = { mdurl: Jr, ucmicro: Kr }, So = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1493
1499
|
__proto__: null,
|
|
1494
1500
|
arrayReplaceAt: zt,
|
|
1495
|
-
assign:
|
|
1501
|
+
assign: we,
|
|
1496
1502
|
escapeHtml: gu,
|
|
1497
|
-
escapeRE:
|
|
1498
|
-
fromCodePoint:
|
|
1499
|
-
has:
|
|
1503
|
+
escapeRE: Fo,
|
|
1504
|
+
fromCodePoint: Fe,
|
|
1505
|
+
has: bo,
|
|
1500
1506
|
isMdAsciiPunct: ce,
|
|
1501
|
-
isPunctChar:
|
|
1507
|
+
isPunctChar: oe,
|
|
1502
1508
|
isSpace: w,
|
|
1503
|
-
isString:
|
|
1509
|
+
isString: h0,
|
|
1504
1510
|
isValidEntityCode: b0,
|
|
1505
|
-
isWhiteSpace:
|
|
1506
|
-
lib:
|
|
1507
|
-
normalizeReference:
|
|
1508
|
-
unescapeAll:
|
|
1509
|
-
unescapeMd:
|
|
1511
|
+
isWhiteSpace: re,
|
|
1512
|
+
lib: To,
|
|
1513
|
+
normalizeReference: ve,
|
|
1514
|
+
unescapeAll: qu,
|
|
1515
|
+
unescapeMd: ko
|
|
1510
1516
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1511
|
-
function
|
|
1512
|
-
let n, r,
|
|
1513
|
-
const
|
|
1514
|
-
for (u.pos = e + 1, n = 1; u.pos <
|
|
1515
|
-
if (
|
|
1517
|
+
function wo(u, e, t) {
|
|
1518
|
+
let n, r, o, i;
|
|
1519
|
+
const c = u.posMax, a = u.pos;
|
|
1520
|
+
for (u.pos = e + 1, n = 1; u.pos < c; ) {
|
|
1521
|
+
if (o = u.src.charCodeAt(u.pos), o === 93 && (n--, n === 0)) {
|
|
1516
1522
|
r = !0;
|
|
1517
1523
|
break;
|
|
1518
1524
|
}
|
|
1519
|
-
if (i = u.pos, u.md.inline.skipToken(u),
|
|
1525
|
+
if (i = u.pos, u.md.inline.skipToken(u), o === 91) {
|
|
1520
1526
|
if (i === u.pos - 1)
|
|
1521
1527
|
n++;
|
|
1522
1528
|
else if (t)
|
|
@@ -1526,9 +1532,9 @@ function Sc(u, e, t) {
|
|
|
1526
1532
|
let s = -1;
|
|
1527
1533
|
return r && (s = u.pos), u.pos = a, s;
|
|
1528
1534
|
}
|
|
1529
|
-
function
|
|
1535
|
+
function vo(u, e, t) {
|
|
1530
1536
|
let n, r = e;
|
|
1531
|
-
const
|
|
1537
|
+
const o = {
|
|
1532
1538
|
ok: !1,
|
|
1533
1539
|
pos: 0,
|
|
1534
1540
|
str: ""
|
|
@@ -1536,16 +1542,16 @@ function wc(u, e, t) {
|
|
|
1536
1542
|
if (u.charCodeAt(r) === 60) {
|
|
1537
1543
|
for (r++; r < t; ) {
|
|
1538
1544
|
if (n = u.charCodeAt(r), n === 10 || n === 60)
|
|
1539
|
-
return
|
|
1545
|
+
return o;
|
|
1540
1546
|
if (n === 62)
|
|
1541
|
-
return
|
|
1547
|
+
return o.pos = r + 1, o.str = qu(u.slice(e + 1, r)), o.ok = !0, o;
|
|
1542
1548
|
if (n === 92 && r + 1 < t) {
|
|
1543
1549
|
r += 2;
|
|
1544
1550
|
continue;
|
|
1545
1551
|
}
|
|
1546
1552
|
r++;
|
|
1547
1553
|
}
|
|
1548
|
-
return
|
|
1554
|
+
return o;
|
|
1549
1555
|
}
|
|
1550
1556
|
let i = 0;
|
|
1551
1557
|
for (; r < t && (n = u.charCodeAt(r), !(n === 32 || n < 32 || n === 127)); ) {
|
|
@@ -1556,7 +1562,7 @@ function wc(u, e, t) {
|
|
|
1556
1562
|
continue;
|
|
1557
1563
|
}
|
|
1558
1564
|
if (n === 40 && (i++, i > 32))
|
|
1559
|
-
return
|
|
1565
|
+
return o;
|
|
1560
1566
|
if (n === 41) {
|
|
1561
1567
|
if (i === 0)
|
|
1562
1568
|
break;
|
|
@@ -1564,10 +1570,10 @@ function wc(u, e, t) {
|
|
|
1564
1570
|
}
|
|
1565
1571
|
r++;
|
|
1566
1572
|
}
|
|
1567
|
-
return e === r || i !== 0 || (
|
|
1573
|
+
return e === r || i !== 0 || (o.str = qu(u.slice(e, r)), o.pos = r, o.ok = !0), o;
|
|
1568
1574
|
}
|
|
1569
|
-
function
|
|
1570
|
-
let r,
|
|
1575
|
+
function Ro(u, e, t, n) {
|
|
1576
|
+
let r, o = e;
|
|
1571
1577
|
const i = {
|
|
1572
1578
|
// if `true`, this is a valid link title
|
|
1573
1579
|
ok: !1,
|
|
@@ -1583,63 +1589,63 @@ function vc(u, e, t, n) {
|
|
|
1583
1589
|
if (n)
|
|
1584
1590
|
i.str = n.str, i.marker = n.marker;
|
|
1585
1591
|
else {
|
|
1586
|
-
if (
|
|
1592
|
+
if (o >= t)
|
|
1587
1593
|
return i;
|
|
1588
|
-
let
|
|
1589
|
-
if (
|
|
1594
|
+
let c = u.charCodeAt(o);
|
|
1595
|
+
if (c !== 34 && c !== 39 && c !== 40)
|
|
1590
1596
|
return i;
|
|
1591
|
-
e++,
|
|
1597
|
+
e++, o++, c === 40 && (c = 41), i.marker = c;
|
|
1592
1598
|
}
|
|
1593
|
-
for (;
|
|
1594
|
-
if (r = u.charCodeAt(
|
|
1595
|
-
return i.pos =
|
|
1599
|
+
for (; o < t; ) {
|
|
1600
|
+
if (r = u.charCodeAt(o), r === i.marker)
|
|
1601
|
+
return i.pos = o + 1, i.str += qu(u.slice(e, o)), i.ok = !0, i;
|
|
1596
1602
|
if (r === 40 && i.marker === 41)
|
|
1597
1603
|
return i;
|
|
1598
|
-
r === 92 &&
|
|
1604
|
+
r === 92 && o + 1 < t && o++, o++;
|
|
1599
1605
|
}
|
|
1600
|
-
return i.can_continue = !0, i.str +=
|
|
1606
|
+
return i.can_continue = !0, i.str += qu(u.slice(e, o)), i;
|
|
1601
1607
|
}
|
|
1602
|
-
const
|
|
1608
|
+
const Mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1603
1609
|
__proto__: null,
|
|
1604
|
-
parseLinkDestination:
|
|
1605
|
-
parseLinkLabel:
|
|
1606
|
-
parseLinkTitle:
|
|
1610
|
+
parseLinkDestination: vo,
|
|
1611
|
+
parseLinkLabel: wo,
|
|
1612
|
+
parseLinkTitle: Ro
|
|
1607
1613
|
}, Symbol.toStringTag, { value: "Module" })), iu = {};
|
|
1608
1614
|
iu.code_inline = function(u, e, t, n, r) {
|
|
1609
|
-
const
|
|
1610
|
-
return "<code" + r.renderAttrs(
|
|
1615
|
+
const o = u[e];
|
|
1616
|
+
return "<code" + r.renderAttrs(o) + ">" + gu(o.content) + "</code>";
|
|
1611
1617
|
};
|
|
1612
1618
|
iu.code_block = function(u, e, t, n, r) {
|
|
1613
|
-
const
|
|
1614
|
-
return "<pre" + r.renderAttrs(
|
|
1619
|
+
const o = u[e];
|
|
1620
|
+
return "<pre" + r.renderAttrs(o) + "><code>" + gu(u[e].content) + `</code></pre>
|
|
1615
1621
|
`;
|
|
1616
1622
|
};
|
|
1617
1623
|
iu.fence = function(u, e, t, n, r) {
|
|
1618
|
-
const
|
|
1619
|
-
let
|
|
1624
|
+
const o = u[e], i = o.info ? qu(o.info).trim() : "";
|
|
1625
|
+
let c = "", a = "";
|
|
1620
1626
|
if (i) {
|
|
1621
1627
|
const f = i.split(/(\s+)/g);
|
|
1622
|
-
|
|
1628
|
+
c = f[0], a = f.slice(2).join("");
|
|
1623
1629
|
}
|
|
1624
1630
|
let s;
|
|
1625
|
-
if (t.highlight ? s = t.highlight(
|
|
1631
|
+
if (t.highlight ? s = t.highlight(o.content, c, a) || gu(o.content) : s = gu(o.content), s.indexOf("<pre") === 0)
|
|
1626
1632
|
return s + `
|
|
1627
1633
|
`;
|
|
1628
1634
|
if (i) {
|
|
1629
|
-
const f =
|
|
1630
|
-
f < 0 ?
|
|
1635
|
+
const f = o.attrIndex("class"), d = o.attrs ? o.attrs.slice() : [];
|
|
1636
|
+
f < 0 ? d.push(["class", t.langPrefix + c]) : (d[f] = d[f].slice(), d[f][1] += " " + t.langPrefix + c);
|
|
1631
1637
|
const _ = {
|
|
1632
|
-
attrs:
|
|
1638
|
+
attrs: d
|
|
1633
1639
|
};
|
|
1634
1640
|
return `<pre><code${r.renderAttrs(_)}>${s}</code></pre>
|
|
1635
1641
|
`;
|
|
1636
1642
|
}
|
|
1637
|
-
return `<pre><code${r.renderAttrs(
|
|
1643
|
+
return `<pre><code${r.renderAttrs(o)}>${s}</code></pre>
|
|
1638
1644
|
`;
|
|
1639
1645
|
};
|
|
1640
1646
|
iu.image = function(u, e, t, n, r) {
|
|
1641
|
-
const
|
|
1642
|
-
return
|
|
1647
|
+
const o = u[e];
|
|
1648
|
+
return o.attrs[o.attrIndex("alt")][1] = r.renderInlineAsText(o.children, t, n), r.renderToken(u, e, t);
|
|
1643
1649
|
};
|
|
1644
1650
|
iu.hardbreak = function(u, e, t) {
|
|
1645
1651
|
return t.xhtmlOut ? `<br />
|
|
@@ -1661,10 +1667,10 @@ iu.html_block = function(u, e) {
|
|
|
1661
1667
|
iu.html_inline = function(u, e) {
|
|
1662
1668
|
return u[e].content;
|
|
1663
1669
|
};
|
|
1664
|
-
function
|
|
1665
|
-
this.rules =
|
|
1670
|
+
function Hu() {
|
|
1671
|
+
this.rules = we({}, iu);
|
|
1666
1672
|
}
|
|
1667
|
-
|
|
1673
|
+
Hu.prototype.renderAttrs = function(e) {
|
|
1668
1674
|
let t, n, r;
|
|
1669
1675
|
if (!e.attrs)
|
|
1670
1676
|
return "";
|
|
@@ -1672,33 +1678,33 @@ Uu.prototype.renderAttrs = function(e) {
|
|
|
1672
1678
|
r += " " + gu(e.attrs[t][0]) + '="' + gu(e.attrs[t][1]) + '"';
|
|
1673
1679
|
return r;
|
|
1674
1680
|
};
|
|
1675
|
-
|
|
1681
|
+
Hu.prototype.renderToken = function(e, t, n) {
|
|
1676
1682
|
const r = e[t];
|
|
1677
|
-
let
|
|
1683
|
+
let o = "";
|
|
1678
1684
|
if (r.hidden)
|
|
1679
1685
|
return "";
|
|
1680
|
-
r.block && r.nesting !== -1 && t && e[t - 1].hidden && (
|
|
1681
|
-
`),
|
|
1686
|
+
r.block && r.nesting !== -1 && t && e[t - 1].hidden && (o += `
|
|
1687
|
+
`), o += (r.nesting === -1 ? "</" : "<") + r.tag, o += this.renderAttrs(r), r.nesting === 0 && n.xhtmlOut && (o += " /");
|
|
1682
1688
|
let i = !1;
|
|
1683
1689
|
if (r.block && (i = !0, r.nesting === 1 && t + 1 < e.length)) {
|
|
1684
|
-
const
|
|
1685
|
-
(
|
|
1690
|
+
const c = e[t + 1];
|
|
1691
|
+
(c.type === "inline" || c.hidden || c.nesting === -1 && c.tag === r.tag) && (i = !1);
|
|
1686
1692
|
}
|
|
1687
|
-
return
|
|
1688
|
-
` : ">",
|
|
1693
|
+
return o += i ? `>
|
|
1694
|
+
` : ">", o;
|
|
1689
1695
|
};
|
|
1690
|
-
|
|
1696
|
+
Hu.prototype.renderInline = function(u, e, t) {
|
|
1691
1697
|
let n = "";
|
|
1692
1698
|
const r = this.rules;
|
|
1693
|
-
for (let
|
|
1694
|
-
const
|
|
1695
|
-
typeof r[
|
|
1699
|
+
for (let o = 0, i = u.length; o < i; o++) {
|
|
1700
|
+
const c = u[o].type;
|
|
1701
|
+
typeof r[c] < "u" ? n += r[c](u, o, e, t, this) : n += this.renderToken(u, o, e);
|
|
1696
1702
|
}
|
|
1697
1703
|
return n;
|
|
1698
1704
|
};
|
|
1699
|
-
|
|
1705
|
+
Hu.prototype.renderInlineAsText = function(u, e, t) {
|
|
1700
1706
|
let n = "";
|
|
1701
|
-
for (let r = 0,
|
|
1707
|
+
for (let r = 0, o = u.length; r < o; r++)
|
|
1702
1708
|
switch (u[r].type) {
|
|
1703
1709
|
case "text":
|
|
1704
1710
|
n += u[r].content;
|
|
@@ -1718,12 +1724,12 @@ Uu.prototype.renderInlineAsText = function(u, e, t) {
|
|
|
1718
1724
|
}
|
|
1719
1725
|
return n;
|
|
1720
1726
|
};
|
|
1721
|
-
|
|
1727
|
+
Hu.prototype.render = function(u, e, t) {
|
|
1722
1728
|
let n = "";
|
|
1723
1729
|
const r = this.rules;
|
|
1724
|
-
for (let
|
|
1725
|
-
const
|
|
1726
|
-
|
|
1730
|
+
for (let o = 0, i = u.length; o < i; o++) {
|
|
1731
|
+
const c = u[o].type;
|
|
1732
|
+
c === "inline" ? n += this.renderInline(u[o].children, e, t) : typeof r[c] < "u" ? n += r[c](u, o, e, t, this) : n += this.renderToken(u, o, e, t);
|
|
1727
1733
|
}
|
|
1728
1734
|
return n;
|
|
1729
1735
|
};
|
|
@@ -1755,25 +1761,25 @@ V.prototype.at = function(u, e, t) {
|
|
|
1755
1761
|
this.__rules__[n].fn = e, this.__rules__[n].alt = r.alt || [], this.__cache__ = null;
|
|
1756
1762
|
};
|
|
1757
1763
|
V.prototype.before = function(u, e, t, n) {
|
|
1758
|
-
const r = this.__find__(u),
|
|
1764
|
+
const r = this.__find__(u), o = n || {};
|
|
1759
1765
|
if (r === -1)
|
|
1760
1766
|
throw new Error("Parser rule not found: " + u);
|
|
1761
1767
|
this.__rules__.splice(r, 0, {
|
|
1762
1768
|
name: e,
|
|
1763
1769
|
enabled: !0,
|
|
1764
1770
|
fn: t,
|
|
1765
|
-
alt:
|
|
1771
|
+
alt: o.alt || []
|
|
1766
1772
|
}), this.__cache__ = null;
|
|
1767
1773
|
};
|
|
1768
1774
|
V.prototype.after = function(u, e, t, n) {
|
|
1769
|
-
const r = this.__find__(u),
|
|
1775
|
+
const r = this.__find__(u), o = n || {};
|
|
1770
1776
|
if (r === -1)
|
|
1771
1777
|
throw new Error("Parser rule not found: " + u);
|
|
1772
1778
|
this.__rules__.splice(r + 1, 0, {
|
|
1773
1779
|
name: e,
|
|
1774
1780
|
enabled: !0,
|
|
1775
1781
|
fn: t,
|
|
1776
|
-
alt:
|
|
1782
|
+
alt: o.alt || []
|
|
1777
1783
|
}), this.__cache__ = null;
|
|
1778
1784
|
};
|
|
1779
1785
|
V.prototype.push = function(u, e, t) {
|
|
@@ -1819,10 +1825,10 @@ V.prototype.disable = function(u, e) {
|
|
|
1819
1825
|
V.prototype.getRules = function(u) {
|
|
1820
1826
|
return this.__cache__ === null && this.__compile__(), this.__cache__[u] || [];
|
|
1821
1827
|
};
|
|
1822
|
-
function
|
|
1828
|
+
function eu(u, e, t) {
|
|
1823
1829
|
this.type = u, this.tag = e, this.attrs = null, this.map = null, this.nesting = t, this.level = 0, this.children = null, this.content = "", this.markup = "", this.info = "", this.meta = null, this.block = !1, this.hidden = !1;
|
|
1824
1830
|
}
|
|
1825
|
-
|
|
1831
|
+
eu.prototype.attrIndex = function(e) {
|
|
1826
1832
|
if (!this.attrs)
|
|
1827
1833
|
return -1;
|
|
1828
1834
|
const t = this.attrs;
|
|
@@ -1831,168 +1837,168 @@ uu.prototype.attrIndex = function(e) {
|
|
|
1831
1837
|
return n;
|
|
1832
1838
|
return -1;
|
|
1833
1839
|
};
|
|
1834
|
-
|
|
1840
|
+
eu.prototype.attrPush = function(e) {
|
|
1835
1841
|
this.attrs ? this.attrs.push(e) : this.attrs = [e];
|
|
1836
1842
|
};
|
|
1837
|
-
|
|
1843
|
+
eu.prototype.attrSet = function(e, t) {
|
|
1838
1844
|
const n = this.attrIndex(e), r = [e, t];
|
|
1839
1845
|
n < 0 ? this.attrPush(r) : this.attrs[n] = r;
|
|
1840
1846
|
};
|
|
1841
|
-
|
|
1847
|
+
eu.prototype.attrGet = function(e) {
|
|
1842
1848
|
const t = this.attrIndex(e);
|
|
1843
1849
|
let n = null;
|
|
1844
1850
|
return t >= 0 && (n = this.attrs[t][1]), n;
|
|
1845
1851
|
};
|
|
1846
|
-
|
|
1852
|
+
eu.prototype.attrJoin = function(e, t) {
|
|
1847
1853
|
const n = this.attrIndex(e);
|
|
1848
1854
|
n < 0 ? this.attrPush([e, t]) : this.attrs[n][1] = this.attrs[n][1] + " " + t;
|
|
1849
1855
|
};
|
|
1850
1856
|
function Ut(u, e, t) {
|
|
1851
1857
|
this.src = u, this.env = t, this.tokens = [], this.inlineMode = !1, this.md = e;
|
|
1852
1858
|
}
|
|
1853
|
-
Ut.prototype.Token =
|
|
1854
|
-
const
|
|
1855
|
-
function
|
|
1859
|
+
Ut.prototype.Token = eu;
|
|
1860
|
+
const Io = /\r\n?|\n/g, Lo = /\0/g;
|
|
1861
|
+
function Oo(u) {
|
|
1856
1862
|
let e;
|
|
1857
|
-
e = u.src.replace(
|
|
1858
|
-
`), e = e.replace(
|
|
1863
|
+
e = u.src.replace(Io, `
|
|
1864
|
+
`), e = e.replace(Lo, "�"), u.src = e;
|
|
1859
1865
|
}
|
|
1860
|
-
function
|
|
1866
|
+
function No(u) {
|
|
1861
1867
|
let e;
|
|
1862
1868
|
u.inlineMode ? (e = new u.Token("inline", "", 0), e.content = u.src, e.map = [0, 1], e.children = [], u.tokens.push(e)) : u.md.block.parse(u.src, u.md, u.env, u.tokens);
|
|
1863
1869
|
}
|
|
1864
|
-
function
|
|
1870
|
+
function Po(u) {
|
|
1865
1871
|
const e = u.tokens;
|
|
1866
1872
|
for (let t = 0, n = e.length; t < n; t++) {
|
|
1867
1873
|
const r = e[t];
|
|
1868
1874
|
r.type === "inline" && u.md.inline.parse(r.content, u.md, u.env, r.children);
|
|
1869
1875
|
}
|
|
1870
1876
|
}
|
|
1871
|
-
function
|
|
1877
|
+
function Bo(u) {
|
|
1872
1878
|
return /^<a[>\s]/i.test(u);
|
|
1873
1879
|
}
|
|
1874
|
-
function
|
|
1880
|
+
function zo(u) {
|
|
1875
1881
|
return /^<\/a\s*>/i.test(u);
|
|
1876
1882
|
}
|
|
1877
|
-
function
|
|
1883
|
+
function qo(u) {
|
|
1878
1884
|
const e = u.tokens;
|
|
1879
1885
|
if (u.md.options.linkify)
|
|
1880
1886
|
for (let t = 0, n = e.length; t < n; t++) {
|
|
1881
1887
|
if (e[t].type !== "inline" || !u.md.linkify.pretest(e[t].content))
|
|
1882
1888
|
continue;
|
|
1883
|
-
let r = e[t].children,
|
|
1889
|
+
let r = e[t].children, o = 0;
|
|
1884
1890
|
for (let i = r.length - 1; i >= 0; i--) {
|
|
1885
|
-
const
|
|
1886
|
-
if (
|
|
1887
|
-
for (i--; r[i].level !==
|
|
1891
|
+
const c = r[i];
|
|
1892
|
+
if (c.type === "link_close") {
|
|
1893
|
+
for (i--; r[i].level !== c.level && r[i].type !== "link_open"; )
|
|
1888
1894
|
i--;
|
|
1889
1895
|
continue;
|
|
1890
1896
|
}
|
|
1891
|
-
if (
|
|
1892
|
-
const a =
|
|
1897
|
+
if (c.type === "html_inline" && (Bo(c.content) && o > 0 && o--, zo(c.content) && o++), !(o > 0) && c.type === "text" && u.md.linkify.test(c.content)) {
|
|
1898
|
+
const a = c.content;
|
|
1893
1899
|
let s = u.md.linkify.match(a);
|
|
1894
1900
|
const f = [];
|
|
1895
|
-
let
|
|
1901
|
+
let d = c.level, _ = 0;
|
|
1896
1902
|
s.length > 0 && s[0].index === 0 && i > 0 && r[i - 1].type === "text_special" && (s = s.slice(1));
|
|
1897
|
-
for (let
|
|
1898
|
-
const
|
|
1903
|
+
for (let h = 0; h < s.length; h++) {
|
|
1904
|
+
const p = s[h].url, C = u.md.normalizeLink(p);
|
|
1899
1905
|
if (!u.md.validateLink(C))
|
|
1900
1906
|
continue;
|
|
1901
|
-
let D = s[
|
|
1902
|
-
s[
|
|
1903
|
-
const S = s[
|
|
1907
|
+
let D = s[h].text;
|
|
1908
|
+
s[h].schema ? s[h].schema === "mailto:" && !/^mailto:/i.test(D) ? D = u.md.normalizeLinkText("mailto:" + D).replace(/^mailto:/, "") : D = u.md.normalizeLinkText(D) : D = u.md.normalizeLinkText("http://" + D).replace(/^http:\/\//, "");
|
|
1909
|
+
const S = s[h].index;
|
|
1904
1910
|
if (S > _) {
|
|
1905
1911
|
const A = new u.Token("text", "", 0);
|
|
1906
|
-
A.content = a.slice(_, S), A.level =
|
|
1912
|
+
A.content = a.slice(_, S), A.level = d, f.push(A);
|
|
1907
1913
|
}
|
|
1908
1914
|
const E = new u.Token("link_open", "a", 1);
|
|
1909
|
-
E.attrs = [["href", C]], E.level =
|
|
1915
|
+
E.attrs = [["href", C]], E.level = d++, E.markup = "linkify", E.info = "auto", f.push(E);
|
|
1910
1916
|
const k = new u.Token("text", "", 0);
|
|
1911
|
-
k.content = D, k.level =
|
|
1917
|
+
k.content = D, k.level = d, f.push(k);
|
|
1912
1918
|
const m = new u.Token("link_close", "a", -1);
|
|
1913
|
-
m.level = --
|
|
1919
|
+
m.level = --d, m.markup = "linkify", m.info = "auto", f.push(m), _ = s[h].lastIndex;
|
|
1914
1920
|
}
|
|
1915
1921
|
if (_ < a.length) {
|
|
1916
|
-
const
|
|
1917
|
-
|
|
1922
|
+
const h = new u.Token("text", "", 0);
|
|
1923
|
+
h.content = a.slice(_), h.level = d, f.push(h);
|
|
1918
1924
|
}
|
|
1919
1925
|
e[t].children = r = zt(r, i, f);
|
|
1920
1926
|
}
|
|
1921
1927
|
}
|
|
1922
1928
|
}
|
|
1923
1929
|
}
|
|
1924
|
-
const Ht = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/,
|
|
1930
|
+
const Ht = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, Uo = /\((c|tm|r)\)/i, Ho = /\((c|tm|r)\)/ig, $o = {
|
|
1925
1931
|
c: "©",
|
|
1926
1932
|
r: "®",
|
|
1927
1933
|
tm: "™"
|
|
1928
1934
|
};
|
|
1929
|
-
function
|
|
1930
|
-
return
|
|
1935
|
+
function jo(u, e) {
|
|
1936
|
+
return $o[e.toLowerCase()];
|
|
1931
1937
|
}
|
|
1932
|
-
function
|
|
1938
|
+
function Go(u) {
|
|
1933
1939
|
let e = 0;
|
|
1934
1940
|
for (let t = u.length - 1; t >= 0; t--) {
|
|
1935
1941
|
const n = u[t];
|
|
1936
|
-
n.type === "text" && !e && (n.content = n.content.replace(
|
|
1942
|
+
n.type === "text" && !e && (n.content = n.content.replace(Ho, jo)), n.type === "link_open" && n.info === "auto" && e--, n.type === "link_close" && n.info === "auto" && e++;
|
|
1937
1943
|
}
|
|
1938
1944
|
}
|
|
1939
|
-
function
|
|
1945
|
+
function Wo(u) {
|
|
1940
1946
|
let e = 0;
|
|
1941
1947
|
for (let t = u.length - 1; t >= 0; t--) {
|
|
1942
1948
|
const n = u[t];
|
|
1943
1949
|
n.type === "text" && !e && Ht.test(n.content) && (n.content = n.content.replace(/\+-/g, "±").replace(/\.{2,}/g, "…").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/mg, "$1—").replace(/(^|\s)--(?=\s|$)/mg, "$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg, "$1–")), n.type === "link_open" && n.info === "auto" && e--, n.type === "link_close" && n.info === "auto" && e++;
|
|
1944
1950
|
}
|
|
1945
1951
|
}
|
|
1946
|
-
function
|
|
1952
|
+
function Zo(u) {
|
|
1947
1953
|
let e;
|
|
1948
1954
|
if (u.md.options.typographer)
|
|
1949
1955
|
for (e = u.tokens.length - 1; e >= 0; e--)
|
|
1950
|
-
u.tokens[e].type === "inline" && (
|
|
1956
|
+
u.tokens[e].type === "inline" && (Uo.test(u.tokens[e].content) && Go(u.tokens[e].children), Ht.test(u.tokens[e].content) && Wo(u.tokens[e].children));
|
|
1951
1957
|
}
|
|
1952
|
-
const
|
|
1958
|
+
const Vo = /['"]/, ft = /['"]/g, dt = "’";
|
|
1953
1959
|
function Ee(u, e, t) {
|
|
1954
1960
|
return u.slice(0, e) + t + u.slice(e + 1);
|
|
1955
1961
|
}
|
|
1956
|
-
function
|
|
1962
|
+
function Yo(u, e) {
|
|
1957
1963
|
let t;
|
|
1958
1964
|
const n = [];
|
|
1959
1965
|
for (let r = 0; r < u.length; r++) {
|
|
1960
|
-
const
|
|
1966
|
+
const o = u[r], i = u[r].level;
|
|
1961
1967
|
for (t = n.length - 1; t >= 0 && !(n[t].level <= i); t--)
|
|
1962
1968
|
;
|
|
1963
|
-
if (n.length = t + 1,
|
|
1969
|
+
if (n.length = t + 1, o.type !== "text")
|
|
1964
1970
|
continue;
|
|
1965
|
-
let
|
|
1971
|
+
let c = o.content, a = 0, s = c.length;
|
|
1966
1972
|
u:
|
|
1967
1973
|
for (; a < s; ) {
|
|
1968
1974
|
ft.lastIndex = a;
|
|
1969
|
-
const f = ft.exec(
|
|
1975
|
+
const f = ft.exec(c);
|
|
1970
1976
|
if (!f)
|
|
1971
1977
|
break;
|
|
1972
|
-
let
|
|
1978
|
+
let d = !0, _ = !0;
|
|
1973
1979
|
a = f.index + 1;
|
|
1974
|
-
const
|
|
1975
|
-
let
|
|
1980
|
+
const h = f[0] === "'";
|
|
1981
|
+
let p = 32;
|
|
1976
1982
|
if (f.index - 1 >= 0)
|
|
1977
|
-
|
|
1983
|
+
p = c.charCodeAt(f.index - 1);
|
|
1978
1984
|
else
|
|
1979
1985
|
for (t = r - 1; t >= 0 && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t--)
|
|
1980
1986
|
if (u[t].content) {
|
|
1981
|
-
|
|
1987
|
+
p = u[t].content.charCodeAt(u[t].content.length - 1);
|
|
1982
1988
|
break;
|
|
1983
1989
|
}
|
|
1984
1990
|
let C = 32;
|
|
1985
1991
|
if (a < s)
|
|
1986
|
-
C =
|
|
1992
|
+
C = c.charCodeAt(a);
|
|
1987
1993
|
else
|
|
1988
1994
|
for (t = r + 1; t < u.length && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t++)
|
|
1989
1995
|
if (u[t].content) {
|
|
1990
1996
|
C = u[t].content.charCodeAt(0);
|
|
1991
1997
|
break;
|
|
1992
1998
|
}
|
|
1993
|
-
const D = ce(
|
|
1994
|
-
if (k ?
|
|
1995
|
-
|
|
1999
|
+
const D = ce(p) || oe(String.fromCharCode(p)), S = ce(C) || oe(String.fromCharCode(C)), E = re(p), k = re(C);
|
|
2000
|
+
if (k ? d = !1 : S && (E || D || (d = !1)), E ? _ = !1 : D && (k || S || (_ = !1)), C === 34 && f[0] === '"' && p >= 48 && p <= 57 && (_ = d = !1), d && _ && (d = D, _ = S), !d && !_) {
|
|
2001
|
+
h && (o.content = Ee(o.content, f.index, dt));
|
|
1996
2002
|
continue;
|
|
1997
2003
|
}
|
|
1998
2004
|
if (_)
|
|
@@ -2000,59 +2006,59 @@ function Vc(u, e) {
|
|
|
2000
2006
|
let m = n[t];
|
|
2001
2007
|
if (n[t].level < i)
|
|
2002
2008
|
break;
|
|
2003
|
-
if (m.single ===
|
|
2009
|
+
if (m.single === h && n[t].level === i) {
|
|
2004
2010
|
m = n[t];
|
|
2005
2011
|
let A, y;
|
|
2006
|
-
|
|
2012
|
+
h ? (A = e.md.options.quotes[2], y = e.md.options.quotes[3]) : (A = e.md.options.quotes[0], y = e.md.options.quotes[1]), o.content = Ee(o.content, f.index, y), u[m.token].content = Ee(
|
|
2007
2013
|
u[m.token].content,
|
|
2008
2014
|
m.pos,
|
|
2009
2015
|
A
|
|
2010
|
-
), a += y.length - 1, m.token === r && (a += A.length - 1),
|
|
2016
|
+
), a += y.length - 1, m.token === r && (a += A.length - 1), c = o.content, s = c.length, n.length = t;
|
|
2011
2017
|
continue u;
|
|
2012
2018
|
}
|
|
2013
2019
|
}
|
|
2014
|
-
|
|
2020
|
+
d ? n.push({
|
|
2015
2021
|
token: r,
|
|
2016
2022
|
pos: f.index,
|
|
2017
|
-
single:
|
|
2023
|
+
single: h,
|
|
2018
2024
|
level: i
|
|
2019
|
-
}) : _ &&
|
|
2025
|
+
}) : _ && h && (o.content = Ee(o.content, f.index, dt));
|
|
2020
2026
|
}
|
|
2021
2027
|
}
|
|
2022
2028
|
}
|
|
2023
|
-
function
|
|
2029
|
+
function Xo(u) {
|
|
2024
2030
|
if (u.md.options.typographer)
|
|
2025
2031
|
for (let e = u.tokens.length - 1; e >= 0; e--)
|
|
2026
|
-
u.tokens[e].type !== "inline" || !
|
|
2032
|
+
u.tokens[e].type !== "inline" || !Vo.test(u.tokens[e].content) || Yo(u.tokens[e].children, u);
|
|
2027
2033
|
}
|
|
2028
|
-
function
|
|
2034
|
+
function Jo(u) {
|
|
2029
2035
|
let e, t;
|
|
2030
2036
|
const n = u.tokens, r = n.length;
|
|
2031
|
-
for (let
|
|
2032
|
-
if (n[
|
|
2033
|
-
const i = n[
|
|
2034
|
-
for (e = 0; e <
|
|
2037
|
+
for (let o = 0; o < r; o++) {
|
|
2038
|
+
if (n[o].type !== "inline") continue;
|
|
2039
|
+
const i = n[o].children, c = i.length;
|
|
2040
|
+
for (e = 0; e < c; e++)
|
|
2035
2041
|
i[e].type === "text_special" && (i[e].type = "text");
|
|
2036
|
-
for (e = t = 0; e <
|
|
2037
|
-
i[e].type === "text" && e + 1 <
|
|
2042
|
+
for (e = t = 0; e < c; e++)
|
|
2043
|
+
i[e].type === "text" && e + 1 < c && i[e + 1].type === "text" ? i[e + 1].content = i[e].content + i[e + 1].content : (e !== t && (i[t] = i[e]), t++);
|
|
2038
2044
|
e !== t && (i.length = t);
|
|
2039
2045
|
}
|
|
2040
2046
|
}
|
|
2041
|
-
const
|
|
2042
|
-
["normalize",
|
|
2043
|
-
["block",
|
|
2044
|
-
["inline",
|
|
2045
|
-
["linkify",
|
|
2046
|
-
["replacements",
|
|
2047
|
-
["smartquotes",
|
|
2047
|
+
const Je = [
|
|
2048
|
+
["normalize", Oo],
|
|
2049
|
+
["block", No],
|
|
2050
|
+
["inline", Po],
|
|
2051
|
+
["linkify", qo],
|
|
2052
|
+
["replacements", Zo],
|
|
2053
|
+
["smartquotes", Xo],
|
|
2048
2054
|
// `text_join` finds `text_special` tokens (for escape sequences)
|
|
2049
2055
|
// and joins them with the rest of the text
|
|
2050
|
-
["text_join",
|
|
2056
|
+
["text_join", Jo]
|
|
2051
2057
|
];
|
|
2052
2058
|
function _0() {
|
|
2053
2059
|
this.ruler = new V();
|
|
2054
|
-
for (let u = 0; u <
|
|
2055
|
-
this.ruler.push(
|
|
2060
|
+
for (let u = 0; u < Je.length; u++)
|
|
2061
|
+
this.ruler.push(Je[u][0], Je[u][1]);
|
|
2056
2062
|
}
|
|
2057
2063
|
_0.prototype.process = function(u) {
|
|
2058
2064
|
const e = this.ruler.getRules("");
|
|
@@ -2063,20 +2069,20 @@ _0.prototype.State = Ut;
|
|
|
2063
2069
|
function au(u, e, t, n) {
|
|
2064
2070
|
this.src = u, this.md = e, this.env = t, this.tokens = n, this.bMarks = [], this.eMarks = [], this.tShift = [], this.sCount = [], this.bsCount = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.ddIndent = -1, this.listIndent = -1, this.parentType = "root", this.level = 0;
|
|
2065
2071
|
const r = this.src;
|
|
2066
|
-
for (let
|
|
2067
|
-
const
|
|
2072
|
+
for (let o = 0, i = 0, c = 0, a = 0, s = r.length, f = !1; i < s; i++) {
|
|
2073
|
+
const d = r.charCodeAt(i);
|
|
2068
2074
|
if (!f)
|
|
2069
|
-
if (w(
|
|
2070
|
-
|
|
2075
|
+
if (w(d)) {
|
|
2076
|
+
c++, d === 9 ? a += 4 - a % 4 : a++;
|
|
2071
2077
|
continue;
|
|
2072
2078
|
} else
|
|
2073
2079
|
f = !0;
|
|
2074
|
-
(
|
|
2080
|
+
(d === 10 || i === s - 1) && (d !== 10 && i++, this.bMarks.push(o), this.eMarks.push(i), this.tShift.push(c), this.sCount.push(a), this.bsCount.push(0), f = !1, c = 0, a = 0, o = i + 1);
|
|
2075
2081
|
}
|
|
2076
2082
|
this.bMarks.push(r.length), this.eMarks.push(r.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1;
|
|
2077
2083
|
}
|
|
2078
2084
|
au.prototype.push = function(u, e, t) {
|
|
2079
|
-
const n = new
|
|
2085
|
+
const n = new eu(u, e, t);
|
|
2080
2086
|
return n.block = !0, t < 0 && this.level--, n.level = this.level, t > 0 && this.level++, this.tokens.push(n), n;
|
|
2081
2087
|
};
|
|
2082
2088
|
au.prototype.isEmpty = function(e) {
|
|
@@ -2119,60 +2125,60 @@ au.prototype.skipCharsBack = function(e, t, n) {
|
|
|
2119
2125
|
au.prototype.getLines = function(e, t, n, r) {
|
|
2120
2126
|
if (e >= t)
|
|
2121
2127
|
return "";
|
|
2122
|
-
const
|
|
2123
|
-
for (let i = 0,
|
|
2128
|
+
const o = new Array(t - e);
|
|
2129
|
+
for (let i = 0, c = e; c < t; c++, i++) {
|
|
2124
2130
|
let a = 0;
|
|
2125
|
-
const s = this.bMarks[
|
|
2126
|
-
let f = s,
|
|
2127
|
-
for (
|
|
2131
|
+
const s = this.bMarks[c];
|
|
2132
|
+
let f = s, d;
|
|
2133
|
+
for (c + 1 < t || r ? d = this.eMarks[c] + 1 : d = this.eMarks[c]; f < d && a < n; ) {
|
|
2128
2134
|
const _ = this.src.charCodeAt(f);
|
|
2129
2135
|
if (w(_))
|
|
2130
|
-
_ === 9 ? a += 4 - (a + this.bsCount[
|
|
2131
|
-
else if (f - s < this.tShift[
|
|
2136
|
+
_ === 9 ? a += 4 - (a + this.bsCount[c]) % 4 : a++;
|
|
2137
|
+
else if (f - s < this.tShift[c])
|
|
2132
2138
|
a++;
|
|
2133
2139
|
else
|
|
2134
2140
|
break;
|
|
2135
2141
|
f++;
|
|
2136
2142
|
}
|
|
2137
|
-
a > n ?
|
|
2143
|
+
a > n ? o[i] = new Array(a - n + 1).join(" ") + this.src.slice(f, d) : o[i] = this.src.slice(f, d);
|
|
2138
2144
|
}
|
|
2139
|
-
return
|
|
2145
|
+
return o.join("");
|
|
2140
2146
|
};
|
|
2141
|
-
au.prototype.Token =
|
|
2142
|
-
const
|
|
2143
|
-
function
|
|
2147
|
+
au.prototype.Token = eu;
|
|
2148
|
+
const Qo = 65536;
|
|
2149
|
+
function Qe(u, e) {
|
|
2144
2150
|
const t = u.bMarks[e] + u.tShift[e], n = u.eMarks[e];
|
|
2145
2151
|
return u.src.slice(t, n);
|
|
2146
2152
|
}
|
|
2147
|
-
function
|
|
2153
|
+
function pt(u) {
|
|
2148
2154
|
const e = [], t = u.length;
|
|
2149
|
-
let n = 0, r = u.charCodeAt(n),
|
|
2155
|
+
let n = 0, r = u.charCodeAt(n), o = !1, i = 0, c = "";
|
|
2150
2156
|
for (; n < t; )
|
|
2151
|
-
r === 124 && (
|
|
2152
|
-
return e.push(
|
|
2157
|
+
r === 124 && (o ? (c += u.substring(i, n - 1), i = n) : (e.push(c + u.substring(i, n)), c = "", i = n + 1)), o = r === 92, n++, r = u.charCodeAt(n);
|
|
2158
|
+
return e.push(c + u.substring(i)), e;
|
|
2153
2159
|
}
|
|
2154
|
-
function
|
|
2160
|
+
function Ko(u, e, t, n) {
|
|
2155
2161
|
if (e + 2 > t)
|
|
2156
2162
|
return !1;
|
|
2157
2163
|
let r = e + 1;
|
|
2158
2164
|
if (u.sCount[r] < u.blkIndent || u.sCount[r] - u.blkIndent >= 4)
|
|
2159
2165
|
return !1;
|
|
2160
|
-
let
|
|
2161
|
-
if (
|
|
2166
|
+
let o = u.bMarks[r] + u.tShift[r];
|
|
2167
|
+
if (o >= u.eMarks[r])
|
|
2162
2168
|
return !1;
|
|
2163
|
-
const i = u.src.charCodeAt(
|
|
2164
|
-
if (i !== 124 && i !== 45 && i !== 58 ||
|
|
2169
|
+
const i = u.src.charCodeAt(o++);
|
|
2170
|
+
if (i !== 124 && i !== 45 && i !== 58 || o >= u.eMarks[r])
|
|
2165
2171
|
return !1;
|
|
2166
|
-
const
|
|
2167
|
-
if (
|
|
2172
|
+
const c = u.src.charCodeAt(o++);
|
|
2173
|
+
if (c !== 124 && c !== 45 && c !== 58 && !w(c) || i === 45 && w(c))
|
|
2168
2174
|
return !1;
|
|
2169
|
-
for (;
|
|
2170
|
-
const m = u.src.charCodeAt(
|
|
2175
|
+
for (; o < u.eMarks[r]; ) {
|
|
2176
|
+
const m = u.src.charCodeAt(o);
|
|
2171
2177
|
if (m !== 124 && m !== 45 && m !== 58 && !w(m))
|
|
2172
2178
|
return !1;
|
|
2173
|
-
|
|
2179
|
+
o++;
|
|
2174
2180
|
}
|
|
2175
|
-
let a =
|
|
2181
|
+
let a = Qe(u, e + 1), s = a.split("|");
|
|
2176
2182
|
const f = [];
|
|
2177
2183
|
for (let m = 0; m < s.length; m++) {
|
|
2178
2184
|
const A = s[m].trim();
|
|
@@ -2185,18 +2191,18 @@ function Qc(u, e, t, n) {
|
|
|
2185
2191
|
return !1;
|
|
2186
2192
|
A.charCodeAt(A.length - 1) === 58 ? f.push(A.charCodeAt(0) === 58 ? "center" : "right") : A.charCodeAt(0) === 58 ? f.push("left") : f.push("");
|
|
2187
2193
|
}
|
|
2188
|
-
if (a =
|
|
2194
|
+
if (a = Qe(u, e).trim(), a.indexOf("|") === -1 || u.sCount[e] - u.blkIndent >= 4)
|
|
2189
2195
|
return !1;
|
|
2190
|
-
s =
|
|
2191
|
-
const
|
|
2192
|
-
if (
|
|
2196
|
+
s = pt(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop();
|
|
2197
|
+
const d = s.length;
|
|
2198
|
+
if (d === 0 || d !== f.length)
|
|
2193
2199
|
return !1;
|
|
2194
2200
|
if (n)
|
|
2195
2201
|
return !0;
|
|
2196
2202
|
const _ = u.parentType;
|
|
2197
2203
|
u.parentType = "table";
|
|
2198
|
-
const
|
|
2199
|
-
|
|
2204
|
+
const h = u.md.block.ruler.getRules("blockquote"), p = u.push("table_open", "table", 1), C = [e, 0];
|
|
2205
|
+
p.map = C;
|
|
2200
2206
|
const D = u.push("thead_open", "thead", 1);
|
|
2201
2207
|
D.map = [e, e + 1];
|
|
2202
2208
|
const S = u.push("tr_open", "tr", 1);
|
|
@@ -2211,12 +2217,12 @@ function Qc(u, e, t, n) {
|
|
|
2211
2217
|
let E, k = 0;
|
|
2212
2218
|
for (r = e + 2; r < t && !(u.sCount[r] < u.blkIndent); r++) {
|
|
2213
2219
|
let m = !1;
|
|
2214
|
-
for (let y = 0, L =
|
|
2215
|
-
if (
|
|
2220
|
+
for (let y = 0, L = h.length; y < L; y++)
|
|
2221
|
+
if (h[y](u, r, t, !0)) {
|
|
2216
2222
|
m = !0;
|
|
2217
2223
|
break;
|
|
2218
2224
|
}
|
|
2219
|
-
if (m || (a =
|
|
2225
|
+
if (m || (a = Qe(u, r).trim(), !a) || u.sCount[r] - u.blkIndent >= 4 || (s = pt(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), k += d - s.length, k > Qo))
|
|
2220
2226
|
break;
|
|
2221
2227
|
if (r === e + 2) {
|
|
2222
2228
|
const y = u.push("tbody_open", "tbody", 1);
|
|
@@ -2224,7 +2230,7 @@ function Qc(u, e, t, n) {
|
|
|
2224
2230
|
}
|
|
2225
2231
|
const A = u.push("tr_open", "tr", 1);
|
|
2226
2232
|
A.map = [r, r + 1];
|
|
2227
|
-
for (let y = 0; y <
|
|
2233
|
+
for (let y = 0; y < d; y++) {
|
|
2228
2234
|
const L = u.push("td_open", "td", 1);
|
|
2229
2235
|
f[y] && (L.attrs = [["style", "text-align:" + f[y]]]);
|
|
2230
2236
|
const Y = u.push("inline", "", 0);
|
|
@@ -2234,7 +2240,7 @@ function Qc(u, e, t, n) {
|
|
|
2234
2240
|
}
|
|
2235
2241
|
return E && (u.push("tbody_close", "tbody", -1), E[1] = r), u.push("table_close", "table", -1), C[1] = r, u.parentType = _, u.line = r, !0;
|
|
2236
2242
|
}
|
|
2237
|
-
function
|
|
2243
|
+
function uc(u, e, t) {
|
|
2238
2244
|
if (u.sCount[e] - u.blkIndent < 4)
|
|
2239
2245
|
return !1;
|
|
2240
2246
|
let n = e + 1, r = n;
|
|
@@ -2250,124 +2256,124 @@ function Kc(u, e, t) {
|
|
|
2250
2256
|
break;
|
|
2251
2257
|
}
|
|
2252
2258
|
u.line = r;
|
|
2253
|
-
const
|
|
2254
|
-
return
|
|
2255
|
-
`,
|
|
2259
|
+
const o = u.push("code_block", "code", 0);
|
|
2260
|
+
return o.content = u.getLines(e, r, 4 + u.blkIndent, !1) + `
|
|
2261
|
+
`, o.map = [e, u.line], !0;
|
|
2256
2262
|
}
|
|
2257
|
-
function
|
|
2258
|
-
let r = u.bMarks[e] + u.tShift[e],
|
|
2259
|
-
if (u.sCount[e] - u.blkIndent >= 4 || r + 3 >
|
|
2263
|
+
function ec(u, e, t, n) {
|
|
2264
|
+
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2265
|
+
if (u.sCount[e] - u.blkIndent >= 4 || r + 3 > o)
|
|
2260
2266
|
return !1;
|
|
2261
2267
|
const i = u.src.charCodeAt(r);
|
|
2262
2268
|
if (i !== 126 && i !== 96)
|
|
2263
2269
|
return !1;
|
|
2264
|
-
let
|
|
2270
|
+
let c = r;
|
|
2265
2271
|
r = u.skipChars(r, i);
|
|
2266
|
-
let a = r -
|
|
2272
|
+
let a = r - c;
|
|
2267
2273
|
if (a < 3)
|
|
2268
2274
|
return !1;
|
|
2269
|
-
const s = u.src.slice(
|
|
2275
|
+
const s = u.src.slice(c, r), f = u.src.slice(r, o);
|
|
2270
2276
|
if (i === 96 && f.indexOf(String.fromCharCode(i)) >= 0)
|
|
2271
2277
|
return !1;
|
|
2272
2278
|
if (n)
|
|
2273
2279
|
return !0;
|
|
2274
|
-
let
|
|
2275
|
-
for (;
|
|
2276
|
-
if (u.src.charCodeAt(r) === i && !(u.sCount[
|
|
2280
|
+
let d = e, _ = !1;
|
|
2281
|
+
for (; d++, !(d >= t || (r = c = u.bMarks[d] + u.tShift[d], o = u.eMarks[d], r < o && u.sCount[d] < u.blkIndent)); )
|
|
2282
|
+
if (u.src.charCodeAt(r) === i && !(u.sCount[d] - u.blkIndent >= 4) && (r = u.skipChars(r, i), !(r - c < a) && (r = u.skipSpaces(r), !(r < o)))) {
|
|
2277
2283
|
_ = !0;
|
|
2278
2284
|
break;
|
|
2279
2285
|
}
|
|
2280
|
-
a = u.sCount[e], u.line =
|
|
2281
|
-
const
|
|
2282
|
-
return
|
|
2286
|
+
a = u.sCount[e], u.line = d + (_ ? 1 : 0);
|
|
2287
|
+
const h = u.push("fence", "code", 0);
|
|
2288
|
+
return h.info = f, h.content = u.getLines(e + 1, d, a, !0), h.markup = s, h.map = [e, u.line], !0;
|
|
2283
2289
|
}
|
|
2284
|
-
function
|
|
2285
|
-
let r = u.bMarks[e] + u.tShift[e],
|
|
2290
|
+
function tc(u, e, t, n) {
|
|
2291
|
+
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2286
2292
|
const i = u.lineMax;
|
|
2287
2293
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 62)
|
|
2288
2294
|
return !1;
|
|
2289
2295
|
if (n)
|
|
2290
2296
|
return !0;
|
|
2291
|
-
const
|
|
2297
|
+
const c = [], a = [], s = [], f = [], d = u.md.block.ruler.getRules("blockquote"), _ = u.parentType;
|
|
2292
2298
|
u.parentType = "blockquote";
|
|
2293
|
-
let
|
|
2294
|
-
for (
|
|
2295
|
-
const k = u.sCount[
|
|
2296
|
-
if (r = u.bMarks[
|
|
2299
|
+
let h = !1, p;
|
|
2300
|
+
for (p = e; p < t; p++) {
|
|
2301
|
+
const k = u.sCount[p] < u.blkIndent;
|
|
2302
|
+
if (r = u.bMarks[p] + u.tShift[p], o = u.eMarks[p], r >= o)
|
|
2297
2303
|
break;
|
|
2298
2304
|
if (u.src.charCodeAt(r++) === 62 && !k) {
|
|
2299
|
-
let A = u.sCount[
|
|
2300
|
-
u.src.charCodeAt(r) === 32 ? (r++, A++, L = !1, y = !0) : u.src.charCodeAt(r) === 9 ? (y = !0, (u.bsCount[
|
|
2305
|
+
let A = u.sCount[p] + 1, y, L;
|
|
2306
|
+
u.src.charCodeAt(r) === 32 ? (r++, A++, L = !1, y = !0) : u.src.charCodeAt(r) === 9 ? (y = !0, (u.bsCount[p] + A) % 4 === 3 ? (r++, A++, L = !1) : L = !0) : y = !1;
|
|
2301
2307
|
let Y = A;
|
|
2302
|
-
for (
|
|
2303
|
-
const
|
|
2304
|
-
if (w(
|
|
2305
|
-
|
|
2308
|
+
for (c.push(u.bMarks[p]), u.bMarks[p] = r; r < o; ) {
|
|
2309
|
+
const tu = u.src.charCodeAt(r);
|
|
2310
|
+
if (w(tu))
|
|
2311
|
+
tu === 9 ? Y += 4 - (Y + u.bsCount[p] + (L ? 1 : 0)) % 4 : Y++;
|
|
2306
2312
|
else
|
|
2307
2313
|
break;
|
|
2308
2314
|
r++;
|
|
2309
2315
|
}
|
|
2310
|
-
|
|
2316
|
+
h = r >= o, a.push(u.bsCount[p]), u.bsCount[p] = u.sCount[p] + 1 + (y ? 1 : 0), s.push(u.sCount[p]), u.sCount[p] = Y - A, f.push(u.tShift[p]), u.tShift[p] = r - u.bMarks[p];
|
|
2311
2317
|
continue;
|
|
2312
2318
|
}
|
|
2313
|
-
if (
|
|
2319
|
+
if (h)
|
|
2314
2320
|
break;
|
|
2315
2321
|
let m = !1;
|
|
2316
|
-
for (let A = 0, y =
|
|
2317
|
-
if (
|
|
2322
|
+
for (let A = 0, y = d.length; A < y; A++)
|
|
2323
|
+
if (d[A](u, p, t, !0)) {
|
|
2318
2324
|
m = !0;
|
|
2319
2325
|
break;
|
|
2320
2326
|
}
|
|
2321
2327
|
if (m) {
|
|
2322
|
-
u.lineMax =
|
|
2328
|
+
u.lineMax = p, u.blkIndent !== 0 && (c.push(u.bMarks[p]), a.push(u.bsCount[p]), f.push(u.tShift[p]), s.push(u.sCount[p]), u.sCount[p] -= u.blkIndent);
|
|
2323
2329
|
break;
|
|
2324
2330
|
}
|
|
2325
|
-
|
|
2331
|
+
c.push(u.bMarks[p]), a.push(u.bsCount[p]), f.push(u.tShift[p]), s.push(u.sCount[p]), u.sCount[p] = -1;
|
|
2326
2332
|
}
|
|
2327
2333
|
const C = u.blkIndent;
|
|
2328
2334
|
u.blkIndent = 0;
|
|
2329
2335
|
const D = u.push("blockquote_open", "blockquote", 1);
|
|
2330
2336
|
D.markup = ">";
|
|
2331
2337
|
const S = [e, 0];
|
|
2332
|
-
D.map = S, u.md.block.tokenize(u, e,
|
|
2338
|
+
D.map = S, u.md.block.tokenize(u, e, p);
|
|
2333
2339
|
const E = u.push("blockquote_close", "blockquote", -1);
|
|
2334
2340
|
E.markup = ">", u.lineMax = i, u.parentType = _, S[1] = u.line;
|
|
2335
2341
|
for (let k = 0; k < f.length; k++)
|
|
2336
|
-
u.bMarks[k + e] =
|
|
2342
|
+
u.bMarks[k + e] = c[k], u.tShift[k + e] = f[k], u.sCount[k + e] = s[k], u.bsCount[k + e] = a[k];
|
|
2337
2343
|
return u.blkIndent = C, !0;
|
|
2338
2344
|
}
|
|
2339
|
-
function
|
|
2345
|
+
function nc(u, e, t, n) {
|
|
2340
2346
|
const r = u.eMarks[e];
|
|
2341
2347
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2342
2348
|
return !1;
|
|
2343
|
-
let
|
|
2344
|
-
const i = u.src.charCodeAt(
|
|
2349
|
+
let o = u.bMarks[e] + u.tShift[e];
|
|
2350
|
+
const i = u.src.charCodeAt(o++);
|
|
2345
2351
|
if (i !== 42 && i !== 45 && i !== 95)
|
|
2346
2352
|
return !1;
|
|
2347
|
-
let
|
|
2348
|
-
for (;
|
|
2349
|
-
const s = u.src.charCodeAt(
|
|
2353
|
+
let c = 1;
|
|
2354
|
+
for (; o < r; ) {
|
|
2355
|
+
const s = u.src.charCodeAt(o++);
|
|
2350
2356
|
if (s !== i && !w(s))
|
|
2351
2357
|
return !1;
|
|
2352
|
-
s === i &&
|
|
2358
|
+
s === i && c++;
|
|
2353
2359
|
}
|
|
2354
|
-
if (
|
|
2360
|
+
if (c < 3)
|
|
2355
2361
|
return !1;
|
|
2356
2362
|
if (n)
|
|
2357
2363
|
return !0;
|
|
2358
2364
|
u.line = e + 1;
|
|
2359
2365
|
const a = u.push("hr", "hr", 0);
|
|
2360
|
-
return a.map = [e, u.line], a.markup = Array(
|
|
2366
|
+
return a.map = [e, u.line], a.markup = Array(c + 1).join(String.fromCharCode(i)), !0;
|
|
2361
2367
|
}
|
|
2362
|
-
function
|
|
2368
|
+
function ht(u, e) {
|
|
2363
2369
|
const t = u.eMarks[e];
|
|
2364
2370
|
let n = u.bMarks[e] + u.tShift[e];
|
|
2365
2371
|
const r = u.src.charCodeAt(n++);
|
|
2366
2372
|
if (r !== 42 && r !== 45 && r !== 43)
|
|
2367
2373
|
return -1;
|
|
2368
2374
|
if (n < t) {
|
|
2369
|
-
const
|
|
2370
|
-
if (!w(
|
|
2375
|
+
const o = u.src.charCodeAt(n);
|
|
2376
|
+
if (!w(o))
|
|
2371
2377
|
return -1;
|
|
2372
2378
|
}
|
|
2373
2379
|
return n;
|
|
@@ -2377,99 +2383,99 @@ function bt(u, e) {
|
|
|
2377
2383
|
let r = t;
|
|
2378
2384
|
if (r + 1 >= n)
|
|
2379
2385
|
return -1;
|
|
2380
|
-
let
|
|
2381
|
-
if (
|
|
2386
|
+
let o = u.src.charCodeAt(r++);
|
|
2387
|
+
if (o < 48 || o > 57)
|
|
2382
2388
|
return -1;
|
|
2383
2389
|
for (; ; ) {
|
|
2384
2390
|
if (r >= n)
|
|
2385
2391
|
return -1;
|
|
2386
|
-
if (
|
|
2392
|
+
if (o = u.src.charCodeAt(r++), o >= 48 && o <= 57) {
|
|
2387
2393
|
if (r - t >= 10)
|
|
2388
2394
|
return -1;
|
|
2389
2395
|
continue;
|
|
2390
2396
|
}
|
|
2391
|
-
if (
|
|
2397
|
+
if (o === 41 || o === 46)
|
|
2392
2398
|
break;
|
|
2393
2399
|
return -1;
|
|
2394
2400
|
}
|
|
2395
|
-
return r < n && (
|
|
2401
|
+
return r < n && (o = u.src.charCodeAt(r), !w(o)) ? -1 : r;
|
|
2396
2402
|
}
|
|
2397
|
-
function
|
|
2403
|
+
function rc(u, e) {
|
|
2398
2404
|
const t = u.level + 2;
|
|
2399
2405
|
for (let n = e + 2, r = u.tokens.length - 2; n < r; n++)
|
|
2400
2406
|
u.tokens[n].level === t && u.tokens[n].type === "paragraph_open" && (u.tokens[n + 2].hidden = !0, u.tokens[n].hidden = !0, n += 2);
|
|
2401
2407
|
}
|
|
2402
|
-
function
|
|
2403
|
-
let r,
|
|
2408
|
+
function oc(u, e, t, n) {
|
|
2409
|
+
let r, o, i, c, a = e, s = !0;
|
|
2404
2410
|
if (u.sCount[a] - u.blkIndent >= 4 || u.listIndent >= 0 && u.sCount[a] - u.listIndent >= 4 && u.sCount[a] < u.blkIndent)
|
|
2405
2411
|
return !1;
|
|
2406
2412
|
let f = !1;
|
|
2407
2413
|
n && u.parentType === "paragraph" && u.sCount[a] >= u.blkIndent && (f = !0);
|
|
2408
|
-
let
|
|
2409
|
-
if ((
|
|
2410
|
-
if (
|
|
2411
|
-
} else if ((
|
|
2412
|
-
|
|
2414
|
+
let d, _, h;
|
|
2415
|
+
if ((h = bt(u, a)) >= 0) {
|
|
2416
|
+
if (d = !0, i = u.bMarks[a] + u.tShift[a], _ = Number(u.src.slice(i, h - 1)), f && _ !== 1) return !1;
|
|
2417
|
+
} else if ((h = ht(u, a)) >= 0)
|
|
2418
|
+
d = !1;
|
|
2413
2419
|
else
|
|
2414
2420
|
return !1;
|
|
2415
|
-
if (f && u.skipSpaces(
|
|
2421
|
+
if (f && u.skipSpaces(h) >= u.eMarks[a])
|
|
2416
2422
|
return !1;
|
|
2417
2423
|
if (n)
|
|
2418
2424
|
return !0;
|
|
2419
|
-
const
|
|
2420
|
-
|
|
2425
|
+
const p = u.src.charCodeAt(h - 1), C = u.tokens.length;
|
|
2426
|
+
d ? (c = u.push("ordered_list_open", "ol", 1), _ !== 1 && (c.attrs = [["start", _]])) : c = u.push("bullet_list_open", "ul", 1);
|
|
2421
2427
|
const D = [a, 0];
|
|
2422
|
-
|
|
2428
|
+
c.map = D, c.markup = String.fromCharCode(p);
|
|
2423
2429
|
let S = !1;
|
|
2424
2430
|
const E = u.md.block.ruler.getRules("list"), k = u.parentType;
|
|
2425
2431
|
for (u.parentType = "list"; a < t; ) {
|
|
2426
|
-
|
|
2427
|
-
const m = u.sCount[a] +
|
|
2432
|
+
o = h, r = u.eMarks[a];
|
|
2433
|
+
const m = u.sCount[a] + h - (u.bMarks[a] + u.tShift[a]);
|
|
2428
2434
|
let A = m;
|
|
2429
|
-
for (;
|
|
2430
|
-
const
|
|
2431
|
-
if (
|
|
2435
|
+
for (; o < r; ) {
|
|
2436
|
+
const pu = u.src.charCodeAt(o);
|
|
2437
|
+
if (pu === 9)
|
|
2432
2438
|
A += 4 - (A + u.bsCount[a]) % 4;
|
|
2433
|
-
else if (
|
|
2439
|
+
else if (pu === 32)
|
|
2434
2440
|
A++;
|
|
2435
2441
|
else
|
|
2436
2442
|
break;
|
|
2437
|
-
|
|
2443
|
+
o++;
|
|
2438
2444
|
}
|
|
2439
|
-
const y =
|
|
2445
|
+
const y = o;
|
|
2440
2446
|
let L;
|
|
2441
2447
|
y >= r ? L = 1 : L = A - m, L > 4 && (L = 1);
|
|
2442
2448
|
const Y = m + L;
|
|
2443
|
-
|
|
2444
|
-
const
|
|
2445
|
-
|
|
2446
|
-
const Eu = u.tight, O = u.tShift[a],
|
|
2447
|
-
if (u.listIndent = u.blkIndent, u.blkIndent = Y, u.tight = !0, u.tShift[a] = y - u.bMarks[a], u.sCount[a] = A, y >= r && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, a, t, !0), (!u.tight || S) && (s = !1), S = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent =
|
|
2449
|
+
c = u.push("list_item_open", "li", 1), c.markup = String.fromCharCode(p);
|
|
2450
|
+
const tu = [a, 0];
|
|
2451
|
+
c.map = tu, d && (c.info = u.src.slice(i, h - 1));
|
|
2452
|
+
const Eu = u.tight, O = u.tShift[a], $u = u.sCount[a], ju = u.listIndent;
|
|
2453
|
+
if (u.listIndent = u.blkIndent, u.blkIndent = Y, u.tight = !0, u.tShift[a] = y - u.bMarks[a], u.sCount[a] = A, y >= r && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, a, t, !0), (!u.tight || S) && (s = !1), S = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = ju, u.tShift[a] = O, u.sCount[a] = $u, u.tight = Eu, c = u.push("list_item_close", "li", -1), c.markup = String.fromCharCode(p), a = u.line, tu[1] = a, a >= t || u.sCount[a] < u.blkIndent || u.sCount[a] - u.blkIndent >= 4)
|
|
2448
2454
|
break;
|
|
2449
2455
|
let yu = !1;
|
|
2450
|
-
for (let
|
|
2451
|
-
if (E[
|
|
2456
|
+
for (let pu = 0, Ie = E.length; pu < Ie; pu++)
|
|
2457
|
+
if (E[pu](u, a, t, !0)) {
|
|
2452
2458
|
yu = !0;
|
|
2453
2459
|
break;
|
|
2454
2460
|
}
|
|
2455
2461
|
if (yu)
|
|
2456
2462
|
break;
|
|
2457
|
-
if (
|
|
2458
|
-
if (
|
|
2463
|
+
if (d) {
|
|
2464
|
+
if (h = bt(u, a), h < 0)
|
|
2459
2465
|
break;
|
|
2460
2466
|
i = u.bMarks[a] + u.tShift[a];
|
|
2461
|
-
} else if (
|
|
2467
|
+
} else if (h = ht(u, a), h < 0)
|
|
2462
2468
|
break;
|
|
2463
|
-
if (
|
|
2469
|
+
if (p !== u.src.charCodeAt(h - 1))
|
|
2464
2470
|
break;
|
|
2465
2471
|
}
|
|
2466
|
-
return
|
|
2472
|
+
return d ? c = u.push("ordered_list_close", "ol", -1) : c = u.push("bullet_list_close", "ul", -1), c.markup = String.fromCharCode(p), D[1] = a, u.line = a, u.parentType = k, s && rc(u, C), !0;
|
|
2467
2473
|
}
|
|
2468
|
-
function
|
|
2469
|
-
let r = u.bMarks[e] + u.tShift[e],
|
|
2474
|
+
function cc(u, e, t, n) {
|
|
2475
|
+
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e], i = e + 1;
|
|
2470
2476
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 91)
|
|
2471
2477
|
return !1;
|
|
2472
|
-
function
|
|
2478
|
+
function c(E) {
|
|
2473
2479
|
const k = u.lineMax;
|
|
2474
2480
|
if (E >= k || u.isEmpty(E))
|
|
2475
2481
|
return null;
|
|
@@ -2477,22 +2483,22 @@ function co(u, e, t, n) {
|
|
|
2477
2483
|
if (u.sCount[E] - u.blkIndent > 3 && (m = !0), u.sCount[E] < 0 && (m = !0), !m) {
|
|
2478
2484
|
const L = u.md.block.ruler.getRules("reference"), Y = u.parentType;
|
|
2479
2485
|
u.parentType = "reference";
|
|
2480
|
-
let
|
|
2486
|
+
let tu = !1;
|
|
2481
2487
|
for (let Eu = 0, O = L.length; Eu < O; Eu++)
|
|
2482
2488
|
if (L[Eu](u, E, k, !0)) {
|
|
2483
|
-
|
|
2489
|
+
tu = !0;
|
|
2484
2490
|
break;
|
|
2485
2491
|
}
|
|
2486
|
-
if (u.parentType = Y,
|
|
2492
|
+
if (u.parentType = Y, tu)
|
|
2487
2493
|
return null;
|
|
2488
2494
|
}
|
|
2489
2495
|
const A = u.bMarks[E] + u.tShift[E], y = u.eMarks[E];
|
|
2490
2496
|
return u.src.slice(A, y + 1);
|
|
2491
2497
|
}
|
|
2492
|
-
let a = u.src.slice(r,
|
|
2493
|
-
|
|
2498
|
+
let a = u.src.slice(r, o + 1);
|
|
2499
|
+
o = a.length;
|
|
2494
2500
|
let s = -1;
|
|
2495
|
-
for (r = 1; r <
|
|
2501
|
+
for (r = 1; r < o; r++) {
|
|
2496
2502
|
const E = a.charCodeAt(r);
|
|
2497
2503
|
if (E === 91)
|
|
2498
2504
|
return !1;
|
|
@@ -2500,63 +2506,63 @@ function co(u, e, t, n) {
|
|
|
2500
2506
|
s = r;
|
|
2501
2507
|
break;
|
|
2502
2508
|
} else if (E === 10) {
|
|
2503
|
-
const k =
|
|
2504
|
-
k !== null && (a += k,
|
|
2505
|
-
} else if (E === 92 && (r++, r <
|
|
2506
|
-
const k =
|
|
2507
|
-
k !== null && (a += k,
|
|
2509
|
+
const k = c(i);
|
|
2510
|
+
k !== null && (a += k, o = a.length, i++);
|
|
2511
|
+
} else if (E === 92 && (r++, r < o && a.charCodeAt(r) === 10)) {
|
|
2512
|
+
const k = c(i);
|
|
2513
|
+
k !== null && (a += k, o = a.length, i++);
|
|
2508
2514
|
}
|
|
2509
2515
|
}
|
|
2510
2516
|
if (s < 0 || a.charCodeAt(s + 1) !== 58)
|
|
2511
2517
|
return !1;
|
|
2512
|
-
for (r = s + 2; r <
|
|
2518
|
+
for (r = s + 2; r < o; r++) {
|
|
2513
2519
|
const E = a.charCodeAt(r);
|
|
2514
2520
|
if (E === 10) {
|
|
2515
|
-
const k =
|
|
2516
|
-
k !== null && (a += k,
|
|
2521
|
+
const k = c(i);
|
|
2522
|
+
k !== null && (a += k, o = a.length, i++);
|
|
2517
2523
|
} else if (!w(E)) break;
|
|
2518
2524
|
}
|
|
2519
|
-
const f = u.md.helpers.parseLinkDestination(a, r,
|
|
2525
|
+
const f = u.md.helpers.parseLinkDestination(a, r, o);
|
|
2520
2526
|
if (!f.ok)
|
|
2521
2527
|
return !1;
|
|
2522
|
-
const
|
|
2523
|
-
if (!u.md.validateLink(
|
|
2528
|
+
const d = u.md.normalizeLink(f.str);
|
|
2529
|
+
if (!u.md.validateLink(d))
|
|
2524
2530
|
return !1;
|
|
2525
2531
|
r = f.pos;
|
|
2526
|
-
const _ = r,
|
|
2527
|
-
for (; r <
|
|
2532
|
+
const _ = r, h = i, p = r;
|
|
2533
|
+
for (; r < o; r++) {
|
|
2528
2534
|
const E = a.charCodeAt(r);
|
|
2529
2535
|
if (E === 10) {
|
|
2530
|
-
const k =
|
|
2531
|
-
k !== null && (a += k,
|
|
2536
|
+
const k = c(i);
|
|
2537
|
+
k !== null && (a += k, o = a.length, i++);
|
|
2532
2538
|
} else if (!w(E)) break;
|
|
2533
2539
|
}
|
|
2534
|
-
let C = u.md.helpers.parseLinkTitle(a, r,
|
|
2540
|
+
let C = u.md.helpers.parseLinkTitle(a, r, o);
|
|
2535
2541
|
for (; C.can_continue; ) {
|
|
2536
|
-
const E =
|
|
2542
|
+
const E = c(i);
|
|
2537
2543
|
if (E === null) break;
|
|
2538
|
-
a += E, r =
|
|
2544
|
+
a += E, r = o, o = a.length, i++, C = u.md.helpers.parseLinkTitle(a, r, o, C);
|
|
2539
2545
|
}
|
|
2540
2546
|
let D;
|
|
2541
|
-
for (r <
|
|
2547
|
+
for (r < o && p !== r && C.ok ? (D = C.str, r = C.pos) : (D = "", r = _, i = h); r < o; ) {
|
|
2542
2548
|
const E = a.charCodeAt(r);
|
|
2543
2549
|
if (!w(E))
|
|
2544
2550
|
break;
|
|
2545
2551
|
r++;
|
|
2546
2552
|
}
|
|
2547
|
-
if (r <
|
|
2548
|
-
for (D = "", r = _, i =
|
|
2553
|
+
if (r < o && a.charCodeAt(r) !== 10 && D)
|
|
2554
|
+
for (D = "", r = _, i = h; r < o; ) {
|
|
2549
2555
|
const E = a.charCodeAt(r);
|
|
2550
2556
|
if (!w(E))
|
|
2551
2557
|
break;
|
|
2552
2558
|
r++;
|
|
2553
2559
|
}
|
|
2554
|
-
if (r <
|
|
2560
|
+
if (r < o && a.charCodeAt(r) !== 10)
|
|
2555
2561
|
return !1;
|
|
2556
|
-
const S =
|
|
2557
|
-
return S ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[S] > "u" && (u.env.references[S] = { title: D, href:
|
|
2562
|
+
const S = ve(a.slice(1, s));
|
|
2563
|
+
return S ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[S] > "u" && (u.env.references[S] = { title: D, href: d }), u.line = i), !0) : !1;
|
|
2558
2564
|
}
|
|
2559
|
-
const
|
|
2565
|
+
const ic = [
|
|
2560
2566
|
"address",
|
|
2561
2567
|
"article",
|
|
2562
2568
|
"aside",
|
|
@@ -2619,30 +2625,30 @@ const oo = [
|
|
|
2619
2625
|
"tr",
|
|
2620
2626
|
"track",
|
|
2621
2627
|
"ul"
|
|
2622
|
-
],
|
|
2628
|
+
], ac = "[a-zA-Z_:][a-zA-Z0-9:._-]*", sc = "[^\"'=<>`\\x00-\\x20]+", lc = "'[^']*'", fc = '"[^"]*"', dc = "(?:" + sc + "|" + lc + "|" + fc + ")", pc = "(?:\\s+" + ac + "(?:\\s*=\\s*" + dc + ")?)", $t = "<[A-Za-z][A-Za-z0-9\\-]*" + pc + "*\\s*\\/?>", jt = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", hc = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", bc = "<[?][\\s\\S]*?[?]>", _c = "<![A-Za-z][^>]*>", mc = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", xc = new RegExp("^(?:" + $t + "|" + jt + "|" + hc + "|" + bc + "|" + _c + "|" + mc + ")"), gc = new RegExp("^(?:" + $t + "|" + jt + ")"), Lu = [
|
|
2623
2629
|
[/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
|
|
2624
2630
|
[/^<!--/, /-->/, !0],
|
|
2625
2631
|
[/^<\?/, /\?>/, !0],
|
|
2626
2632
|
[/^<![A-Z]/, />/, !0],
|
|
2627
2633
|
[/^<!\[CDATA\[/, /\]\]>/, !0],
|
|
2628
|
-
[new RegExp("^</?(" +
|
|
2629
|
-
[new RegExp(
|
|
2634
|
+
[new RegExp("^</?(" + ic.join("|") + ")(?=(\\s|/?>|$))", "i"), /^$/, !0],
|
|
2635
|
+
[new RegExp(gc.source + "\\s*$"), /^$/, !1]
|
|
2630
2636
|
];
|
|
2631
|
-
function
|
|
2632
|
-
let r = u.bMarks[e] + u.tShift[e],
|
|
2637
|
+
function kc(u, e, t, n) {
|
|
2638
|
+
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2633
2639
|
if (u.sCount[e] - u.blkIndent >= 4 || !u.md.options.html || u.src.charCodeAt(r) !== 60)
|
|
2634
2640
|
return !1;
|
|
2635
|
-
let i = u.src.slice(r,
|
|
2636
|
-
for (;
|
|
2641
|
+
let i = u.src.slice(r, o), c = 0;
|
|
2642
|
+
for (; c < Lu.length && !Lu[c][0].test(i); c++)
|
|
2637
2643
|
;
|
|
2638
|
-
if (
|
|
2644
|
+
if (c === Lu.length)
|
|
2639
2645
|
return !1;
|
|
2640
2646
|
if (n)
|
|
2641
|
-
return
|
|
2647
|
+
return Lu[c][2];
|
|
2642
2648
|
let a = e + 1;
|
|
2643
|
-
if (!
|
|
2649
|
+
if (!Lu[c][1].test(i)) {
|
|
2644
2650
|
for (; a < t && !(u.sCount[a] < u.blkIndent); a++)
|
|
2645
|
-
if (r = u.bMarks[a] + u.tShift[a],
|
|
2651
|
+
if (r = u.bMarks[a] + u.tShift[a], o = u.eMarks[a], i = u.src.slice(r, o), Lu[c][1].test(i)) {
|
|
2646
2652
|
i.length !== 0 && a++;
|
|
2647
2653
|
break;
|
|
2648
2654
|
}
|
|
@@ -2651,117 +2657,117 @@ function ko(u, e, t, n) {
|
|
|
2651
2657
|
const s = u.push("html_block", "", 0);
|
|
2652
2658
|
return s.map = [e, a], s.content = u.getLines(e, a, u.blkIndent, !0), !0;
|
|
2653
2659
|
}
|
|
2654
|
-
function
|
|
2655
|
-
let r = u.bMarks[e] + u.tShift[e],
|
|
2660
|
+
function Ec(u, e, t, n) {
|
|
2661
|
+
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2656
2662
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2657
2663
|
return !1;
|
|
2658
2664
|
let i = u.src.charCodeAt(r);
|
|
2659
|
-
if (i !== 35 || r >=
|
|
2665
|
+
if (i !== 35 || r >= o)
|
|
2660
2666
|
return !1;
|
|
2661
|
-
let
|
|
2662
|
-
for (i = u.src.charCodeAt(++r); i === 35 && r <
|
|
2663
|
-
|
|
2664
|
-
if (
|
|
2667
|
+
let c = 1;
|
|
2668
|
+
for (i = u.src.charCodeAt(++r); i === 35 && r < o && c <= 6; )
|
|
2669
|
+
c++, i = u.src.charCodeAt(++r);
|
|
2670
|
+
if (c > 6 || r < o && !w(i))
|
|
2665
2671
|
return !1;
|
|
2666
2672
|
if (n)
|
|
2667
2673
|
return !0;
|
|
2668
|
-
|
|
2669
|
-
const a = u.skipCharsBack(
|
|
2670
|
-
a > r && w(u.src.charCodeAt(a - 1)) && (
|
|
2671
|
-
const s = u.push("heading_open", "h" + String(
|
|
2672
|
-
s.markup = "########".slice(0,
|
|
2674
|
+
o = u.skipSpacesBack(o, r);
|
|
2675
|
+
const a = u.skipCharsBack(o, 35, r);
|
|
2676
|
+
a > r && w(u.src.charCodeAt(a - 1)) && (o = a), u.line = e + 1;
|
|
2677
|
+
const s = u.push("heading_open", "h" + String(c), 1);
|
|
2678
|
+
s.markup = "########".slice(0, c), s.map = [e, u.line];
|
|
2673
2679
|
const f = u.push("inline", "", 0);
|
|
2674
|
-
f.content = u.src.slice(r,
|
|
2675
|
-
const
|
|
2676
|
-
return
|
|
2680
|
+
f.content = u.src.slice(r, o).trim(), f.map = [e, u.line], f.children = [];
|
|
2681
|
+
const d = u.push("heading_close", "h" + String(c), -1);
|
|
2682
|
+
return d.markup = "########".slice(0, c), !0;
|
|
2677
2683
|
}
|
|
2678
|
-
function
|
|
2684
|
+
function Ac(u, e, t) {
|
|
2679
2685
|
const n = u.md.block.ruler.getRules("paragraph");
|
|
2680
2686
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2681
2687
|
return !1;
|
|
2682
2688
|
const r = u.parentType;
|
|
2683
2689
|
u.parentType = "paragraph";
|
|
2684
|
-
let
|
|
2685
|
-
for (;
|
|
2686
|
-
if (u.sCount[
|
|
2690
|
+
let o = 0, i, c = e + 1;
|
|
2691
|
+
for (; c < t && !u.isEmpty(c); c++) {
|
|
2692
|
+
if (u.sCount[c] - u.blkIndent > 3)
|
|
2687
2693
|
continue;
|
|
2688
|
-
if (u.sCount[
|
|
2689
|
-
let
|
|
2690
|
-
const
|
|
2691
|
-
if (
|
|
2692
|
-
|
|
2694
|
+
if (u.sCount[c] >= u.blkIndent) {
|
|
2695
|
+
let h = u.bMarks[c] + u.tShift[c];
|
|
2696
|
+
const p = u.eMarks[c];
|
|
2697
|
+
if (h < p && (i = u.src.charCodeAt(h), (i === 45 || i === 61) && (h = u.skipChars(h, i), h = u.skipSpaces(h), h >= p))) {
|
|
2698
|
+
o = i === 61 ? 1 : 2;
|
|
2693
2699
|
break;
|
|
2694
2700
|
}
|
|
2695
2701
|
}
|
|
2696
|
-
if (u.sCount[
|
|
2702
|
+
if (u.sCount[c] < 0)
|
|
2697
2703
|
continue;
|
|
2698
2704
|
let _ = !1;
|
|
2699
|
-
for (let
|
|
2700
|
-
if (n[
|
|
2705
|
+
for (let h = 0, p = n.length; h < p; h++)
|
|
2706
|
+
if (n[h](u, c, t, !0)) {
|
|
2701
2707
|
_ = !0;
|
|
2702
2708
|
break;
|
|
2703
2709
|
}
|
|
2704
2710
|
if (_)
|
|
2705
2711
|
break;
|
|
2706
2712
|
}
|
|
2707
|
-
if (!
|
|
2713
|
+
if (!o)
|
|
2708
2714
|
return !1;
|
|
2709
|
-
const a = u.getLines(e,
|
|
2710
|
-
u.line =
|
|
2711
|
-
const s = u.push("heading_open", "h" + String(
|
|
2715
|
+
const a = u.getLines(e, c, u.blkIndent, !1).trim();
|
|
2716
|
+
u.line = c + 1;
|
|
2717
|
+
const s = u.push("heading_open", "h" + String(o), 1);
|
|
2712
2718
|
s.markup = String.fromCharCode(i), s.map = [e, u.line];
|
|
2713
2719
|
const f = u.push("inline", "", 0);
|
|
2714
2720
|
f.content = a, f.map = [e, u.line - 1], f.children = [];
|
|
2715
|
-
const
|
|
2716
|
-
return
|
|
2721
|
+
const d = u.push("heading_close", "h" + String(o), -1);
|
|
2722
|
+
return d.markup = String.fromCharCode(i), u.parentType = r, !0;
|
|
2717
2723
|
}
|
|
2718
|
-
function
|
|
2724
|
+
function Cc(u, e, t) {
|
|
2719
2725
|
const n = u.md.block.ruler.getRules("paragraph"), r = u.parentType;
|
|
2720
|
-
let
|
|
2721
|
-
for (u.parentType = "paragraph";
|
|
2722
|
-
if (u.sCount[
|
|
2726
|
+
let o = e + 1;
|
|
2727
|
+
for (u.parentType = "paragraph"; o < t && !u.isEmpty(o); o++) {
|
|
2728
|
+
if (u.sCount[o] - u.blkIndent > 3 || u.sCount[o] < 0)
|
|
2723
2729
|
continue;
|
|
2724
2730
|
let s = !1;
|
|
2725
|
-
for (let f = 0,
|
|
2726
|
-
if (n[f](u,
|
|
2731
|
+
for (let f = 0, d = n.length; f < d; f++)
|
|
2732
|
+
if (n[f](u, o, t, !0)) {
|
|
2727
2733
|
s = !0;
|
|
2728
2734
|
break;
|
|
2729
2735
|
}
|
|
2730
2736
|
if (s)
|
|
2731
2737
|
break;
|
|
2732
2738
|
}
|
|
2733
|
-
const i = u.getLines(e,
|
|
2734
|
-
u.line =
|
|
2735
|
-
const
|
|
2736
|
-
|
|
2739
|
+
const i = u.getLines(e, o, u.blkIndent, !1).trim();
|
|
2740
|
+
u.line = o;
|
|
2741
|
+
const c = u.push("paragraph_open", "p", 1);
|
|
2742
|
+
c.map = [e, u.line];
|
|
2737
2743
|
const a = u.push("inline", "", 0);
|
|
2738
2744
|
return a.content = i, a.map = [e, u.line], a.children = [], u.push("paragraph_close", "p", -1), u.parentType = r, !0;
|
|
2739
2745
|
}
|
|
2740
2746
|
const Ae = [
|
|
2741
2747
|
// First 2 params - rule name & source. Secondary array - list of rules,
|
|
2742
2748
|
// which can be terminated by this one.
|
|
2743
|
-
["table",
|
|
2744
|
-
["code",
|
|
2745
|
-
["fence",
|
|
2746
|
-
["blockquote",
|
|
2747
|
-
["hr",
|
|
2748
|
-
["list",
|
|
2749
|
-
["reference",
|
|
2750
|
-
["html_block",
|
|
2751
|
-
["heading",
|
|
2752
|
-
["lheading",
|
|
2753
|
-
["paragraph",
|
|
2749
|
+
["table", Ko, ["paragraph", "reference"]],
|
|
2750
|
+
["code", uc],
|
|
2751
|
+
["fence", ec, ["paragraph", "reference", "blockquote", "list"]],
|
|
2752
|
+
["blockquote", tc, ["paragraph", "reference", "blockquote", "list"]],
|
|
2753
|
+
["hr", nc, ["paragraph", "reference", "blockquote", "list"]],
|
|
2754
|
+
["list", oc, ["paragraph", "reference", "blockquote"]],
|
|
2755
|
+
["reference", cc],
|
|
2756
|
+
["html_block", kc, ["paragraph", "reference", "blockquote"]],
|
|
2757
|
+
["heading", Ec, ["paragraph", "reference", "blockquote"]],
|
|
2758
|
+
["lheading", Ac],
|
|
2759
|
+
["paragraph", Cc]
|
|
2754
2760
|
];
|
|
2755
|
-
function
|
|
2761
|
+
function Re() {
|
|
2756
2762
|
this.ruler = new V();
|
|
2757
2763
|
for (let u = 0; u < Ae.length; u++)
|
|
2758
2764
|
this.ruler.push(Ae[u][0], Ae[u][1], { alt: (Ae[u][2] || []).slice() });
|
|
2759
2765
|
}
|
|
2760
|
-
|
|
2761
|
-
const n = this.ruler.getRules(""), r = n.length,
|
|
2762
|
-
let i = e,
|
|
2766
|
+
Re.prototype.tokenize = function(u, e, t) {
|
|
2767
|
+
const n = this.ruler.getRules(""), r = n.length, o = u.md.options.maxNesting;
|
|
2768
|
+
let i = e, c = !1;
|
|
2763
2769
|
for (; i < t && (u.line = i = u.skipEmptyLines(i), !(i >= t || u.sCount[i] < u.blkIndent)); ) {
|
|
2764
|
-
if (u.level >=
|
|
2770
|
+
if (u.level >= o) {
|
|
2765
2771
|
u.line = t;
|
|
2766
2772
|
break;
|
|
2767
2773
|
}
|
|
@@ -2774,39 +2780,39 @@ Me.prototype.tokenize = function(u, e, t) {
|
|
|
2774
2780
|
break;
|
|
2775
2781
|
}
|
|
2776
2782
|
if (!s) throw new Error("none of the block rules matched");
|
|
2777
|
-
u.tight = !
|
|
2783
|
+
u.tight = !c, u.isEmpty(u.line - 1) && (c = !0), i = u.line, i < t && u.isEmpty(i) && (c = !0, i++, u.line = i);
|
|
2778
2784
|
}
|
|
2779
2785
|
};
|
|
2780
|
-
|
|
2786
|
+
Re.prototype.parse = function(u, e, t, n) {
|
|
2781
2787
|
if (!u)
|
|
2782
2788
|
return;
|
|
2783
2789
|
const r = new this.State(u, e, t, n);
|
|
2784
2790
|
this.tokenize(r, r.line, r.lineMax);
|
|
2785
2791
|
};
|
|
2786
|
-
|
|
2787
|
-
function
|
|
2792
|
+
Re.prototype.State = au;
|
|
2793
|
+
function le(u, e, t, n) {
|
|
2788
2794
|
this.src = u, this.env = t, this.md = e, this.tokens = n, this.tokens_meta = Array(n.length), this.pos = 0, this.posMax = this.src.length, this.level = 0, this.pending = "", this.pendingLevel = 0, this.cache = {}, this.delimiters = [], this._prev_delimiters = [], this.backticks = {}, this.backticksScanned = !1, this.linkLevel = 0;
|
|
2789
2795
|
}
|
|
2790
|
-
|
|
2791
|
-
const u = new
|
|
2796
|
+
le.prototype.pushPending = function() {
|
|
2797
|
+
const u = new eu("text", "", 0);
|
|
2792
2798
|
return u.content = this.pending, u.level = this.pendingLevel, this.tokens.push(u), this.pending = "", u;
|
|
2793
2799
|
};
|
|
2794
|
-
|
|
2800
|
+
le.prototype.push = function(u, e, t) {
|
|
2795
2801
|
this.pending && this.pushPending();
|
|
2796
|
-
const n = new
|
|
2802
|
+
const n = new eu(u, e, t);
|
|
2797
2803
|
let r = null;
|
|
2798
2804
|
return t < 0 && (this.level--, this.delimiters = this._prev_delimiters.pop()), n.level = this.level, t > 0 && (this.level++, this._prev_delimiters.push(this.delimiters), this.delimiters = [], r = { delimiters: this.delimiters }), this.pendingLevel = this.level, this.tokens.push(n), this.tokens_meta.push(r), n;
|
|
2799
2805
|
};
|
|
2800
|
-
|
|
2806
|
+
le.prototype.scanDelims = function(u, e) {
|
|
2801
2807
|
const t = this.posMax, n = this.src.charCodeAt(u), r = u > 0 ? this.src.charCodeAt(u - 1) : 32;
|
|
2802
|
-
let
|
|
2803
|
-
for (;
|
|
2804
|
-
|
|
2805
|
-
const i =
|
|
2806
|
-
return { can_open: _ && (e || !
|
|
2807
|
-
};
|
|
2808
|
-
|
|
2809
|
-
function
|
|
2808
|
+
let o = u;
|
|
2809
|
+
for (; o < t && this.src.charCodeAt(o) === n; )
|
|
2810
|
+
o++;
|
|
2811
|
+
const i = o - u, c = o < t ? this.src.charCodeAt(o) : 32, a = ce(r) || oe(String.fromCharCode(r)), s = ce(c) || oe(String.fromCharCode(c)), f = re(r), d = re(c), _ = !d && (!s || f || a), h = !f && (!a || d || s);
|
|
2812
|
+
return { can_open: _ && (e || !h || a), can_close: h && (e || !_ || s), length: i };
|
|
2813
|
+
};
|
|
2814
|
+
le.prototype.Token = eu;
|
|
2815
|
+
function Dc(u) {
|
|
2810
2816
|
switch (u) {
|
|
2811
2817
|
case 10:
|
|
2812
2818
|
case 33:
|
|
@@ -2836,38 +2842,38 @@ function Do(u) {
|
|
|
2836
2842
|
return !1;
|
|
2837
2843
|
}
|
|
2838
2844
|
}
|
|
2839
|
-
function
|
|
2845
|
+
function yc(u, e) {
|
|
2840
2846
|
let t = u.pos;
|
|
2841
|
-
for (; t < u.posMax && !
|
|
2847
|
+
for (; t < u.posMax && !Dc(u.src.charCodeAt(t)); )
|
|
2842
2848
|
t++;
|
|
2843
2849
|
return t === u.pos ? !1 : (e || (u.pending += u.src.slice(u.pos, t)), u.pos = t, !0);
|
|
2844
2850
|
}
|
|
2845
|
-
const
|
|
2846
|
-
function
|
|
2851
|
+
const Fc = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;
|
|
2852
|
+
function Tc(u, e) {
|
|
2847
2853
|
if (!u.md.options.linkify || u.linkLevel > 0) return !1;
|
|
2848
2854
|
const t = u.pos, n = u.posMax;
|
|
2849
2855
|
if (t + 3 > n || u.src.charCodeAt(t) !== 58 || u.src.charCodeAt(t + 1) !== 47 || u.src.charCodeAt(t + 2) !== 47) return !1;
|
|
2850
|
-
const r = u.pending.match(
|
|
2856
|
+
const r = u.pending.match(Fc);
|
|
2851
2857
|
if (!r) return !1;
|
|
2852
|
-
const
|
|
2858
|
+
const o = r[1], i = u.md.linkify.matchAtStart(u.src.slice(t - o.length));
|
|
2853
2859
|
if (!i) return !1;
|
|
2854
|
-
let
|
|
2855
|
-
if (
|
|
2856
|
-
|
|
2857
|
-
const a = u.md.normalizeLink(
|
|
2860
|
+
let c = i.url;
|
|
2861
|
+
if (c.length <= o.length) return !1;
|
|
2862
|
+
c = c.replace(/\*+$/, "");
|
|
2863
|
+
const a = u.md.normalizeLink(c);
|
|
2858
2864
|
if (!u.md.validateLink(a)) return !1;
|
|
2859
2865
|
if (!e) {
|
|
2860
|
-
u.pending = u.pending.slice(0, -
|
|
2866
|
+
u.pending = u.pending.slice(0, -o.length);
|
|
2861
2867
|
const s = u.push("link_open", "a", 1);
|
|
2862
2868
|
s.attrs = [["href", a]], s.markup = "linkify", s.info = "auto";
|
|
2863
2869
|
const f = u.push("text", "", 0);
|
|
2864
|
-
f.content = u.md.normalizeLinkText(
|
|
2865
|
-
const
|
|
2866
|
-
|
|
2870
|
+
f.content = u.md.normalizeLinkText(c);
|
|
2871
|
+
const d = u.push("link_close", "a", -1);
|
|
2872
|
+
d.markup = "linkify", d.info = "auto";
|
|
2867
2873
|
}
|
|
2868
|
-
return u.pos +=
|
|
2874
|
+
return u.pos += c.length - o.length, !0;
|
|
2869
2875
|
}
|
|
2870
|
-
function
|
|
2876
|
+
function Sc(u, e) {
|
|
2871
2877
|
let t = u.pos;
|
|
2872
2878
|
if (u.src.charCodeAt(t) !== 10)
|
|
2873
2879
|
return !1;
|
|
@@ -2875,9 +2881,9 @@ function So(u, e) {
|
|
|
2875
2881
|
if (!e)
|
|
2876
2882
|
if (n >= 0 && u.pending.charCodeAt(n) === 32)
|
|
2877
2883
|
if (n >= 1 && u.pending.charCodeAt(n - 1) === 32) {
|
|
2878
|
-
let
|
|
2879
|
-
for (;
|
|
2880
|
-
u.pending = u.pending.slice(0,
|
|
2884
|
+
let o = n - 1;
|
|
2885
|
+
for (; o >= 1 && u.pending.charCodeAt(o - 1) === 32; ) o--;
|
|
2886
|
+
u.pending = u.pending.slice(0, o), u.push("hardbreak", "br", 0);
|
|
2881
2887
|
} else
|
|
2882
2888
|
u.pending = u.pending.slice(0, -1), u.push("softbreak", "br", 0);
|
|
2883
2889
|
else
|
|
@@ -2892,7 +2898,7 @@ for (let u = 0; u < 256; u++)
|
|
|
2892
2898
|
"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(u) {
|
|
2893
2899
|
m0[u.charCodeAt(0)] = 1;
|
|
2894
2900
|
});
|
|
2895
|
-
function
|
|
2901
|
+
function wc(u, e) {
|
|
2896
2902
|
let t = u.pos;
|
|
2897
2903
|
const n = u.posMax;
|
|
2898
2904
|
if (u.src.charCodeAt(t) !== 92 || (t++, t >= n)) return !1;
|
|
@@ -2902,59 +2908,59 @@ function wo(u, e) {
|
|
|
2902
2908
|
t++;
|
|
2903
2909
|
return u.pos = t, !0;
|
|
2904
2910
|
}
|
|
2905
|
-
let
|
|
2911
|
+
let o = u.src[t];
|
|
2906
2912
|
if (r >= 55296 && r <= 56319 && t + 1 < n) {
|
|
2907
|
-
const
|
|
2908
|
-
|
|
2913
|
+
const c = u.src.charCodeAt(t + 1);
|
|
2914
|
+
c >= 56320 && c <= 57343 && (o += u.src[t + 1], t++);
|
|
2909
2915
|
}
|
|
2910
|
-
const i = "\\" +
|
|
2916
|
+
const i = "\\" + o;
|
|
2911
2917
|
if (!e) {
|
|
2912
|
-
const
|
|
2913
|
-
r < 256 && m0[r] !== 0 ?
|
|
2918
|
+
const c = u.push("text_special", "", 0);
|
|
2919
|
+
r < 256 && m0[r] !== 0 ? c.content = o : c.content = i, c.markup = i, c.info = "escape";
|
|
2914
2920
|
}
|
|
2915
2921
|
return u.pos = t + 1, !0;
|
|
2916
2922
|
}
|
|
2917
|
-
function
|
|
2923
|
+
function vc(u, e) {
|
|
2918
2924
|
let t = u.pos;
|
|
2919
2925
|
if (u.src.charCodeAt(t) !== 96)
|
|
2920
2926
|
return !1;
|
|
2921
2927
|
const r = t;
|
|
2922
2928
|
t++;
|
|
2923
|
-
const
|
|
2924
|
-
for (; t <
|
|
2929
|
+
const o = u.posMax;
|
|
2930
|
+
for (; t < o && u.src.charCodeAt(t) === 96; )
|
|
2925
2931
|
t++;
|
|
2926
|
-
const i = u.src.slice(r, t),
|
|
2927
|
-
if (u.backticksScanned && (u.backticks[
|
|
2928
|
-
return e || (u.pending += i), u.pos +=
|
|
2932
|
+
const i = u.src.slice(r, t), c = i.length;
|
|
2933
|
+
if (u.backticksScanned && (u.backticks[c] || 0) <= r)
|
|
2934
|
+
return e || (u.pending += i), u.pos += c, !0;
|
|
2929
2935
|
let a = t, s;
|
|
2930
2936
|
for (; (s = u.src.indexOf("`", a)) !== -1; ) {
|
|
2931
|
-
for (a = s + 1; a <
|
|
2937
|
+
for (a = s + 1; a < o && u.src.charCodeAt(a) === 96; )
|
|
2932
2938
|
a++;
|
|
2933
2939
|
const f = a - s;
|
|
2934
|
-
if (f ===
|
|
2940
|
+
if (f === c) {
|
|
2935
2941
|
if (!e) {
|
|
2936
|
-
const
|
|
2937
|
-
|
|
2942
|
+
const d = u.push("code_inline", "code", 0);
|
|
2943
|
+
d.markup = i, d.content = u.src.slice(t, s).replace(/\n/g, " ").replace(/^ (.+) $/, "$1");
|
|
2938
2944
|
}
|
|
2939
2945
|
return u.pos = a, !0;
|
|
2940
2946
|
}
|
|
2941
2947
|
u.backticks[f] = s;
|
|
2942
2948
|
}
|
|
2943
|
-
return u.backticksScanned = !0, e || (u.pending += i), u.pos +=
|
|
2949
|
+
return u.backticksScanned = !0, e || (u.pending += i), u.pos += c, !0;
|
|
2944
2950
|
}
|
|
2945
|
-
function
|
|
2951
|
+
function Rc(u, e) {
|
|
2946
2952
|
const t = u.pos, n = u.src.charCodeAt(t);
|
|
2947
2953
|
if (e || n !== 126)
|
|
2948
2954
|
return !1;
|
|
2949
2955
|
const r = u.scanDelims(u.pos, !0);
|
|
2950
|
-
let
|
|
2956
|
+
let o = r.length;
|
|
2951
2957
|
const i = String.fromCharCode(n);
|
|
2952
|
-
if (
|
|
2958
|
+
if (o < 2)
|
|
2953
2959
|
return !1;
|
|
2954
|
-
let
|
|
2955
|
-
|
|
2956
|
-
for (let a = 0; a <
|
|
2957
|
-
|
|
2960
|
+
let c;
|
|
2961
|
+
o % 2 && (c = u.push("text", "", 0), c.content = i, o--);
|
|
2962
|
+
for (let a = 0; a < o; a += 2)
|
|
2963
|
+
c = u.push("text", "", 0), c.content = i + i, u.delimiters.push({
|
|
2958
2964
|
marker: n,
|
|
2959
2965
|
length: 0,
|
|
2960
2966
|
// disable "rule of 3" length checks meant for emphasis
|
|
@@ -2968,37 +2974,37 @@ function Ro(u, e) {
|
|
|
2968
2974
|
function _t(u, e) {
|
|
2969
2975
|
let t;
|
|
2970
2976
|
const n = [], r = e.length;
|
|
2971
|
-
for (let
|
|
2972
|
-
const i = e[
|
|
2977
|
+
for (let o = 0; o < r; o++) {
|
|
2978
|
+
const i = e[o];
|
|
2973
2979
|
if (i.marker !== 126 || i.end === -1)
|
|
2974
2980
|
continue;
|
|
2975
|
-
const
|
|
2976
|
-
t = u.tokens[i.token], t.type = "s_open", t.tag = "s", t.nesting = 1, t.markup = "~~", t.content = "", t = u.tokens[
|
|
2981
|
+
const c = e[i.end];
|
|
2982
|
+
t = u.tokens[i.token], t.type = "s_open", t.tag = "s", t.nesting = 1, t.markup = "~~", t.content = "", t = u.tokens[c.token], t.type = "s_close", t.tag = "s", t.nesting = -1, t.markup = "~~", t.content = "", u.tokens[c.token - 1].type === "text" && u.tokens[c.token - 1].content === "~" && n.push(c.token - 1);
|
|
2977
2983
|
}
|
|
2978
2984
|
for (; n.length; ) {
|
|
2979
|
-
const
|
|
2980
|
-
let i =
|
|
2985
|
+
const o = n.pop();
|
|
2986
|
+
let i = o + 1;
|
|
2981
2987
|
for (; i < u.tokens.length && u.tokens[i].type === "s_close"; )
|
|
2982
2988
|
i++;
|
|
2983
|
-
i--,
|
|
2989
|
+
i--, o !== i && (t = u.tokens[i], u.tokens[i] = u.tokens[o], u.tokens[o] = t);
|
|
2984
2990
|
}
|
|
2985
2991
|
}
|
|
2986
|
-
function
|
|
2992
|
+
function Mc(u) {
|
|
2987
2993
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
|
2988
2994
|
_t(u, u.delimiters);
|
|
2989
2995
|
for (let n = 0; n < t; n++)
|
|
2990
2996
|
e[n] && e[n].delimiters && _t(u, e[n].delimiters);
|
|
2991
2997
|
}
|
|
2992
2998
|
const Gt = {
|
|
2993
|
-
tokenize:
|
|
2994
|
-
postProcess:
|
|
2999
|
+
tokenize: Rc,
|
|
3000
|
+
postProcess: Mc
|
|
2995
3001
|
};
|
|
2996
|
-
function
|
|
3002
|
+
function Ic(u, e) {
|
|
2997
3003
|
const t = u.pos, n = u.src.charCodeAt(t);
|
|
2998
3004
|
if (e || n !== 95 && n !== 42)
|
|
2999
3005
|
return !1;
|
|
3000
3006
|
const r = u.scanDelims(u.pos, n === 42);
|
|
3001
|
-
for (let
|
|
3007
|
+
for (let o = 0; o < r.length; o++) {
|
|
3002
3008
|
const i = u.push("text", "", 0);
|
|
3003
3009
|
i.content = String.fromCharCode(n), u.delimiters.push({
|
|
3004
3010
|
// Char code of the starting marker (number).
|
|
@@ -3029,92 +3035,92 @@ function mt(u, e) {
|
|
|
3029
3035
|
const r = e[n];
|
|
3030
3036
|
if (r.marker !== 95 && r.marker !== 42 || r.end === -1)
|
|
3031
3037
|
continue;
|
|
3032
|
-
const
|
|
3038
|
+
const o = e[r.end], i = n > 0 && e[n - 1].end === r.end + 1 && // check that first two markers match and adjacent
|
|
3033
3039
|
e[n - 1].marker === r.marker && e[n - 1].token === r.token - 1 && // check that last two markers are adjacent (we can safely assume they match)
|
|
3034
|
-
e[r.end + 1].token ===
|
|
3035
|
-
a.type = i ? "strong_open" : "em_open", a.tag = i ? "strong" : "em", a.nesting = 1, a.markup = i ?
|
|
3036
|
-
const s = u.tokens[
|
|
3037
|
-
s.type = i ? "strong_close" : "em_close", s.tag = i ? "strong" : "em", s.nesting = -1, s.markup = i ?
|
|
3040
|
+
e[r.end + 1].token === o.token + 1, c = String.fromCharCode(r.marker), a = u.tokens[r.token];
|
|
3041
|
+
a.type = i ? "strong_open" : "em_open", a.tag = i ? "strong" : "em", a.nesting = 1, a.markup = i ? c + c : c, a.content = "";
|
|
3042
|
+
const s = u.tokens[o.token];
|
|
3043
|
+
s.type = i ? "strong_close" : "em_close", s.tag = i ? "strong" : "em", s.nesting = -1, s.markup = i ? c + c : c, s.content = "", i && (u.tokens[e[n - 1].token].content = "", u.tokens[e[r.end + 1].token].content = "", n--);
|
|
3038
3044
|
}
|
|
3039
3045
|
}
|
|
3040
|
-
function
|
|
3046
|
+
function Lc(u) {
|
|
3041
3047
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
|
3042
3048
|
mt(u, u.delimiters);
|
|
3043
3049
|
for (let n = 0; n < t; n++)
|
|
3044
3050
|
e[n] && e[n].delimiters && mt(u, e[n].delimiters);
|
|
3045
3051
|
}
|
|
3046
3052
|
const Wt = {
|
|
3047
|
-
tokenize:
|
|
3048
|
-
postProcess:
|
|
3053
|
+
tokenize: Ic,
|
|
3054
|
+
postProcess: Lc
|
|
3049
3055
|
};
|
|
3050
|
-
function
|
|
3051
|
-
let t, n, r,
|
|
3056
|
+
function Oc(u, e) {
|
|
3057
|
+
let t, n, r, o, i = "", c = "", a = u.pos, s = !0;
|
|
3052
3058
|
if (u.src.charCodeAt(u.pos) !== 91)
|
|
3053
3059
|
return !1;
|
|
3054
|
-
const f = u.pos,
|
|
3055
|
-
if (
|
|
3060
|
+
const f = u.pos, d = u.posMax, _ = u.pos + 1, h = u.md.helpers.parseLinkLabel(u, u.pos, !0);
|
|
3061
|
+
if (h < 0)
|
|
3056
3062
|
return !1;
|
|
3057
|
-
let
|
|
3058
|
-
if (
|
|
3059
|
-
for (s = !1,
|
|
3063
|
+
let p = h + 1;
|
|
3064
|
+
if (p < d && u.src.charCodeAt(p) === 40) {
|
|
3065
|
+
for (s = !1, p++; p < d && (t = u.src.charCodeAt(p), !(!w(t) && t !== 10)); p++)
|
|
3060
3066
|
;
|
|
3061
|
-
if (
|
|
3067
|
+
if (p >= d)
|
|
3062
3068
|
return !1;
|
|
3063
|
-
if (a =
|
|
3064
|
-
for (i = u.md.normalizeLink(r.str), u.md.validateLink(i) ?
|
|
3069
|
+
if (a = p, r = u.md.helpers.parseLinkDestination(u.src, p, u.posMax), r.ok) {
|
|
3070
|
+
for (i = u.md.normalizeLink(r.str), u.md.validateLink(i) ? p = r.pos : i = "", a = p; p < d && (t = u.src.charCodeAt(p), !(!w(t) && t !== 10)); p++)
|
|
3065
3071
|
;
|
|
3066
|
-
if (r = u.md.helpers.parseLinkTitle(u.src,
|
|
3067
|
-
for (
|
|
3072
|
+
if (r = u.md.helpers.parseLinkTitle(u.src, p, u.posMax), p < d && a !== p && r.ok)
|
|
3073
|
+
for (c = r.str, p = r.pos; p < d && (t = u.src.charCodeAt(p), !(!w(t) && t !== 10)); p++)
|
|
3068
3074
|
;
|
|
3069
3075
|
}
|
|
3070
|
-
(
|
|
3076
|
+
(p >= d || u.src.charCodeAt(p) !== 41) && (s = !0), p++;
|
|
3071
3077
|
}
|
|
3072
3078
|
if (s) {
|
|
3073
3079
|
if (typeof u.env.references > "u")
|
|
3074
3080
|
return !1;
|
|
3075
|
-
if (
|
|
3081
|
+
if (p < d && u.src.charCodeAt(p) === 91 ? (a = p + 1, p = u.md.helpers.parseLinkLabel(u, p), p >= 0 ? n = u.src.slice(a, p++) : p = h + 1) : p = h + 1, n || (n = u.src.slice(_, h)), o = u.env.references[ve(n)], !o)
|
|
3076
3082
|
return u.pos = f, !1;
|
|
3077
|
-
i =
|
|
3083
|
+
i = o.href, c = o.title;
|
|
3078
3084
|
}
|
|
3079
3085
|
if (!e) {
|
|
3080
|
-
u.pos = _, u.posMax =
|
|
3086
|
+
u.pos = _, u.posMax = h;
|
|
3081
3087
|
const C = u.push("link_open", "a", 1), D = [["href", i]];
|
|
3082
|
-
C.attrs = D,
|
|
3088
|
+
C.attrs = D, c && D.push(["title", c]), u.linkLevel++, u.md.inline.tokenize(u), u.linkLevel--, u.push("link_close", "a", -1);
|
|
3083
3089
|
}
|
|
3084
|
-
return u.pos =
|
|
3090
|
+
return u.pos = p, u.posMax = d, !0;
|
|
3085
3091
|
}
|
|
3086
|
-
function
|
|
3087
|
-
let t, n, r,
|
|
3088
|
-
const
|
|
3092
|
+
function Nc(u, e) {
|
|
3093
|
+
let t, n, r, o, i, c, a, s, f = "";
|
|
3094
|
+
const d = u.pos, _ = u.posMax;
|
|
3089
3095
|
if (u.src.charCodeAt(u.pos) !== 33 || u.src.charCodeAt(u.pos + 1) !== 91)
|
|
3090
3096
|
return !1;
|
|
3091
|
-
const
|
|
3092
|
-
if (
|
|
3097
|
+
const h = u.pos + 2, p = u.md.helpers.parseLinkLabel(u, u.pos + 1, !1);
|
|
3098
|
+
if (p < 0)
|
|
3093
3099
|
return !1;
|
|
3094
|
-
if (
|
|
3095
|
-
for (
|
|
3100
|
+
if (o = p + 1, o < _ && u.src.charCodeAt(o) === 40) {
|
|
3101
|
+
for (o++; o < _ && (t = u.src.charCodeAt(o), !(!w(t) && t !== 10)); o++)
|
|
3096
3102
|
;
|
|
3097
|
-
if (
|
|
3103
|
+
if (o >= _)
|
|
3098
3104
|
return !1;
|
|
3099
|
-
for (s =
|
|
3105
|
+
for (s = o, c = u.md.helpers.parseLinkDestination(u.src, o, u.posMax), c.ok && (f = u.md.normalizeLink(c.str), u.md.validateLink(f) ? o = c.pos : f = ""), s = o; o < _ && (t = u.src.charCodeAt(o), !(!w(t) && t !== 10)); o++)
|
|
3100
3106
|
;
|
|
3101
|
-
if (
|
|
3102
|
-
for (a =
|
|
3107
|
+
if (c = u.md.helpers.parseLinkTitle(u.src, o, u.posMax), o < _ && s !== o && c.ok)
|
|
3108
|
+
for (a = c.str, o = c.pos; o < _ && (t = u.src.charCodeAt(o), !(!w(t) && t !== 10)); o++)
|
|
3103
3109
|
;
|
|
3104
3110
|
else
|
|
3105
3111
|
a = "";
|
|
3106
|
-
if (
|
|
3107
|
-
return u.pos =
|
|
3108
|
-
|
|
3112
|
+
if (o >= _ || u.src.charCodeAt(o) !== 41)
|
|
3113
|
+
return u.pos = d, !1;
|
|
3114
|
+
o++;
|
|
3109
3115
|
} else {
|
|
3110
3116
|
if (typeof u.env.references > "u")
|
|
3111
3117
|
return !1;
|
|
3112
|
-
if (
|
|
3113
|
-
return u.pos =
|
|
3118
|
+
if (o < _ && u.src.charCodeAt(o) === 91 ? (s = o + 1, o = u.md.helpers.parseLinkLabel(u, o), o >= 0 ? r = u.src.slice(s, o++) : o = p + 1) : o = p + 1, r || (r = u.src.slice(h, p)), i = u.env.references[ve(r)], !i)
|
|
3119
|
+
return u.pos = d, !1;
|
|
3114
3120
|
f = i.href, a = i.title;
|
|
3115
3121
|
}
|
|
3116
3122
|
if (!e) {
|
|
3117
|
-
n = u.src.slice(
|
|
3123
|
+
n = u.src.slice(h, p);
|
|
3118
3124
|
const C = [];
|
|
3119
3125
|
u.md.inline.parse(
|
|
3120
3126
|
n,
|
|
@@ -3125,10 +3131,10 @@ function No(u, e) {
|
|
|
3125
3131
|
const D = u.push("image", "img", 0), S = [["src", f], ["alt", ""]];
|
|
3126
3132
|
D.attrs = S, D.children = C, D.content = n, a && S.push(["title", a]);
|
|
3127
3133
|
}
|
|
3128
|
-
return u.pos =
|
|
3134
|
+
return u.pos = o, u.posMax = _, !0;
|
|
3129
3135
|
}
|
|
3130
|
-
const
|
|
3131
|
-
function
|
|
3136
|
+
const Pc = /^([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])?)*)$/, Bc = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
|
|
3137
|
+
function zc(u, e) {
|
|
3132
3138
|
let t = u.pos;
|
|
3133
3139
|
if (u.src.charCodeAt(t) !== 60)
|
|
3134
3140
|
return !1;
|
|
@@ -3139,88 +3145,88 @@ function zo(u, e) {
|
|
|
3139
3145
|
if (i === 60) return !1;
|
|
3140
3146
|
if (i === 62) break;
|
|
3141
3147
|
}
|
|
3142
|
-
const
|
|
3143
|
-
if (
|
|
3144
|
-
const i = u.md.normalizeLink(
|
|
3148
|
+
const o = u.src.slice(n + 1, t);
|
|
3149
|
+
if (Bc.test(o)) {
|
|
3150
|
+
const i = u.md.normalizeLink(o);
|
|
3145
3151
|
if (!u.md.validateLink(i))
|
|
3146
3152
|
return !1;
|
|
3147
3153
|
if (!e) {
|
|
3148
|
-
const
|
|
3149
|
-
|
|
3154
|
+
const c = u.push("link_open", "a", 1);
|
|
3155
|
+
c.attrs = [["href", i]], c.markup = "autolink", c.info = "auto";
|
|
3150
3156
|
const a = u.push("text", "", 0);
|
|
3151
|
-
a.content = u.md.normalizeLinkText(
|
|
3157
|
+
a.content = u.md.normalizeLinkText(o);
|
|
3152
3158
|
const s = u.push("link_close", "a", -1);
|
|
3153
3159
|
s.markup = "autolink", s.info = "auto";
|
|
3154
3160
|
}
|
|
3155
|
-
return u.pos +=
|
|
3161
|
+
return u.pos += o.length + 2, !0;
|
|
3156
3162
|
}
|
|
3157
|
-
if (
|
|
3158
|
-
const i = u.md.normalizeLink("mailto:" +
|
|
3163
|
+
if (Pc.test(o)) {
|
|
3164
|
+
const i = u.md.normalizeLink("mailto:" + o);
|
|
3159
3165
|
if (!u.md.validateLink(i))
|
|
3160
3166
|
return !1;
|
|
3161
3167
|
if (!e) {
|
|
3162
|
-
const
|
|
3163
|
-
|
|
3168
|
+
const c = u.push("link_open", "a", 1);
|
|
3169
|
+
c.attrs = [["href", i]], c.markup = "autolink", c.info = "auto";
|
|
3164
3170
|
const a = u.push("text", "", 0);
|
|
3165
|
-
a.content = u.md.normalizeLinkText(
|
|
3171
|
+
a.content = u.md.normalizeLinkText(o);
|
|
3166
3172
|
const s = u.push("link_close", "a", -1);
|
|
3167
3173
|
s.markup = "autolink", s.info = "auto";
|
|
3168
3174
|
}
|
|
3169
|
-
return u.pos +=
|
|
3175
|
+
return u.pos += o.length + 2, !0;
|
|
3170
3176
|
}
|
|
3171
3177
|
return !1;
|
|
3172
3178
|
}
|
|
3173
|
-
function
|
|
3179
|
+
function qc(u) {
|
|
3174
3180
|
return /^<a[>\s]/i.test(u);
|
|
3175
3181
|
}
|
|
3176
|
-
function
|
|
3182
|
+
function Uc(u) {
|
|
3177
3183
|
return /^<\/a\s*>/i.test(u);
|
|
3178
3184
|
}
|
|
3179
|
-
function
|
|
3185
|
+
function Hc(u) {
|
|
3180
3186
|
const e = u | 32;
|
|
3181
3187
|
return e >= 97 && e <= 122;
|
|
3182
3188
|
}
|
|
3183
|
-
function $
|
|
3189
|
+
function $c(u, e) {
|
|
3184
3190
|
if (!u.md.options.html)
|
|
3185
3191
|
return !1;
|
|
3186
3192
|
const t = u.posMax, n = u.pos;
|
|
3187
3193
|
if (u.src.charCodeAt(n) !== 60 || n + 2 >= t)
|
|
3188
3194
|
return !1;
|
|
3189
3195
|
const r = u.src.charCodeAt(n + 1);
|
|
3190
|
-
if (r !== 33 && r !== 63 && r !== 47 && !
|
|
3196
|
+
if (r !== 33 && r !== 63 && r !== 47 && !Hc(r))
|
|
3191
3197
|
return !1;
|
|
3192
|
-
const
|
|
3193
|
-
if (!
|
|
3198
|
+
const o = u.src.slice(n).match(xc);
|
|
3199
|
+
if (!o)
|
|
3194
3200
|
return !1;
|
|
3195
3201
|
if (!e) {
|
|
3196
3202
|
const i = u.push("html_inline", "", 0);
|
|
3197
|
-
i.content =
|
|
3203
|
+
i.content = o[0], qc(i.content) && u.linkLevel++, Uc(i.content) && u.linkLevel--;
|
|
3198
3204
|
}
|
|
3199
|
-
return u.pos +=
|
|
3205
|
+
return u.pos += o[0].length, !0;
|
|
3200
3206
|
}
|
|
3201
|
-
const
|
|
3202
|
-
function
|
|
3207
|
+
const jc = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, Gc = /^&([a-z][a-z0-9]{1,31});/i;
|
|
3208
|
+
function Wc(u, e) {
|
|
3203
3209
|
const t = u.pos, n = u.posMax;
|
|
3204
3210
|
if (u.src.charCodeAt(t) !== 38 || t + 1 >= n) return !1;
|
|
3205
3211
|
if (u.src.charCodeAt(t + 1) === 35) {
|
|
3206
|
-
const
|
|
3207
|
-
if (
|
|
3212
|
+
const o = u.src.slice(t).match(jc);
|
|
3213
|
+
if (o) {
|
|
3208
3214
|
if (!e) {
|
|
3209
|
-
const i =
|
|
3210
|
-
|
|
3215
|
+
const i = o[1][0].toLowerCase() === "x" ? parseInt(o[1].slice(1), 16) : parseInt(o[1], 10), c = u.push("text_special", "", 0);
|
|
3216
|
+
c.content = b0(i) ? Fe(i) : Fe(65533), c.markup = o[0], c.info = "entity";
|
|
3211
3217
|
}
|
|
3212
|
-
return u.pos +=
|
|
3218
|
+
return u.pos += o[0].length, !0;
|
|
3213
3219
|
}
|
|
3214
3220
|
} else {
|
|
3215
|
-
const
|
|
3216
|
-
if (
|
|
3217
|
-
const i =
|
|
3218
|
-
if (i !==
|
|
3221
|
+
const o = u.src.slice(t).match(Gc);
|
|
3222
|
+
if (o) {
|
|
3223
|
+
const i = Bt(o[0]);
|
|
3224
|
+
if (i !== o[0]) {
|
|
3219
3225
|
if (!e) {
|
|
3220
|
-
const
|
|
3221
|
-
|
|
3226
|
+
const c = u.push("text_special", "", 0);
|
|
3227
|
+
c.content = i, c.markup = o[0], c.info = "entity";
|
|
3222
3228
|
}
|
|
3223
|
-
return u.pos +=
|
|
3229
|
+
return u.pos += o[0].length, !0;
|
|
3224
3230
|
}
|
|
3225
3231
|
}
|
|
3226
3232
|
}
|
|
@@ -3230,96 +3236,96 @@ function xt(u) {
|
|
|
3230
3236
|
const e = {}, t = u.length;
|
|
3231
3237
|
if (!t) return;
|
|
3232
3238
|
let n = 0, r = -2;
|
|
3233
|
-
const
|
|
3239
|
+
const o = [];
|
|
3234
3240
|
for (let i = 0; i < t; i++) {
|
|
3235
|
-
const
|
|
3236
|
-
if (
|
|
3237
|
-
e.hasOwnProperty(
|
|
3238
|
-
const a = e[
|
|
3239
|
-
let s = n -
|
|
3240
|
-
for (; s > a; s -=
|
|
3241
|
-
const
|
|
3242
|
-
if (
|
|
3241
|
+
const c = u[i];
|
|
3242
|
+
if (o.push(0), (u[n].marker !== c.marker || r !== c.token - 1) && (n = i), r = c.token, c.length = c.length || 0, !c.close) continue;
|
|
3243
|
+
e.hasOwnProperty(c.marker) || (e[c.marker] = [-1, -1, -1, -1, -1, -1]);
|
|
3244
|
+
const a = e[c.marker][(c.open ? 3 : 0) + c.length % 3];
|
|
3245
|
+
let s = n - o[n] - 1, f = s;
|
|
3246
|
+
for (; s > a; s -= o[s] + 1) {
|
|
3247
|
+
const d = u[s];
|
|
3248
|
+
if (d.marker === c.marker && d.open && d.end < 0) {
|
|
3243
3249
|
let _ = !1;
|
|
3244
|
-
if ((
|
|
3245
|
-
const
|
|
3246
|
-
|
|
3250
|
+
if ((d.close || c.open) && (d.length + c.length) % 3 === 0 && (d.length % 3 !== 0 || c.length % 3 !== 0) && (_ = !0), !_) {
|
|
3251
|
+
const h = s > 0 && !u[s - 1].open ? o[s - 1] + 1 : 0;
|
|
3252
|
+
o[i] = i - s + h, o[s] = h, c.open = !1, d.end = i, d.close = !1, f = -1, r = -2;
|
|
3247
3253
|
break;
|
|
3248
3254
|
}
|
|
3249
3255
|
}
|
|
3250
3256
|
}
|
|
3251
|
-
f !== -1 && (e[
|
|
3257
|
+
f !== -1 && (e[c.marker][(c.open ? 3 : 0) + (c.length || 0) % 3] = f);
|
|
3252
3258
|
}
|
|
3253
3259
|
}
|
|
3254
|
-
function
|
|
3260
|
+
function Zc(u) {
|
|
3255
3261
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
|
3256
3262
|
xt(u.delimiters);
|
|
3257
3263
|
for (let n = 0; n < t; n++)
|
|
3258
3264
|
e[n] && e[n].delimiters && xt(e[n].delimiters);
|
|
3259
3265
|
}
|
|
3260
|
-
function
|
|
3266
|
+
function Vc(u) {
|
|
3261
3267
|
let e, t, n = 0;
|
|
3262
|
-
const r = u.tokens,
|
|
3263
|
-
for (e = t = 0; e <
|
|
3264
|
-
r[e].nesting < 0 && n--, r[e].level = n, r[e].nesting > 0 && n++, r[e].type === "text" && e + 1 <
|
|
3268
|
+
const r = u.tokens, o = u.tokens.length;
|
|
3269
|
+
for (e = t = 0; e < o; e++)
|
|
3270
|
+
r[e].nesting < 0 && n--, r[e].level = n, r[e].nesting > 0 && n++, r[e].type === "text" && e + 1 < o && r[e + 1].type === "text" ? r[e + 1].content = r[e].content + r[e + 1].content : (e !== t && (r[t] = r[e]), t++);
|
|
3265
3271
|
e !== t && (r.length = t);
|
|
3266
3272
|
}
|
|
3267
|
-
const
|
|
3268
|
-
["text",
|
|
3269
|
-
["linkify",
|
|
3270
|
-
["newline",
|
|
3271
|
-
["escape",
|
|
3272
|
-
["backticks",
|
|
3273
|
+
const Ke = [
|
|
3274
|
+
["text", yc],
|
|
3275
|
+
["linkify", Tc],
|
|
3276
|
+
["newline", Sc],
|
|
3277
|
+
["escape", wc],
|
|
3278
|
+
["backticks", vc],
|
|
3273
3279
|
["strikethrough", Gt.tokenize],
|
|
3274
3280
|
["emphasis", Wt.tokenize],
|
|
3275
|
-
["link",
|
|
3276
|
-
["image",
|
|
3277
|
-
["autolink",
|
|
3278
|
-
["html_inline", $
|
|
3279
|
-
["entity",
|
|
3280
|
-
],
|
|
3281
|
-
["balance_pairs",
|
|
3281
|
+
["link", Oc],
|
|
3282
|
+
["image", Nc],
|
|
3283
|
+
["autolink", zc],
|
|
3284
|
+
["html_inline", $c],
|
|
3285
|
+
["entity", Wc]
|
|
3286
|
+
], u0 = [
|
|
3287
|
+
["balance_pairs", Zc],
|
|
3282
3288
|
["strikethrough", Gt.postProcess],
|
|
3283
3289
|
["emphasis", Wt.postProcess],
|
|
3284
3290
|
// rules for pairs separate '**' into its own text tokens, which may be left unused,
|
|
3285
3291
|
// rule below merges unused segments back with the rest of the text
|
|
3286
|
-
["fragments_join",
|
|
3292
|
+
["fragments_join", Vc]
|
|
3287
3293
|
];
|
|
3288
|
-
function
|
|
3294
|
+
function fe() {
|
|
3289
3295
|
this.ruler = new V();
|
|
3290
|
-
for (let u = 0; u <
|
|
3291
|
-
this.ruler.push(
|
|
3296
|
+
for (let u = 0; u < Ke.length; u++)
|
|
3297
|
+
this.ruler.push(Ke[u][0], Ke[u][1]);
|
|
3292
3298
|
this.ruler2 = new V();
|
|
3293
|
-
for (let u = 0; u <
|
|
3294
|
-
this.ruler2.push(
|
|
3299
|
+
for (let u = 0; u < u0.length; u++)
|
|
3300
|
+
this.ruler2.push(u0[u][0], u0[u][1]);
|
|
3295
3301
|
}
|
|
3296
|
-
|
|
3297
|
-
const e = u.pos, t = this.ruler.getRules(""), n = t.length, r = u.md.options.maxNesting,
|
|
3298
|
-
if (typeof
|
|
3299
|
-
u.pos =
|
|
3302
|
+
fe.prototype.skipToken = function(u) {
|
|
3303
|
+
const e = u.pos, t = this.ruler.getRules(""), n = t.length, r = u.md.options.maxNesting, o = u.cache;
|
|
3304
|
+
if (typeof o[e] < "u") {
|
|
3305
|
+
u.pos = o[e];
|
|
3300
3306
|
return;
|
|
3301
3307
|
}
|
|
3302
3308
|
let i = !1;
|
|
3303
3309
|
if (u.level < r) {
|
|
3304
|
-
for (let
|
|
3305
|
-
if (u.level++, i = t[
|
|
3310
|
+
for (let c = 0; c < n; c++)
|
|
3311
|
+
if (u.level++, i = t[c](u, !0), u.level--, i) {
|
|
3306
3312
|
if (e >= u.pos)
|
|
3307
3313
|
throw new Error("inline rule didn't increment state.pos");
|
|
3308
3314
|
break;
|
|
3309
3315
|
}
|
|
3310
3316
|
} else
|
|
3311
3317
|
u.pos = u.posMax;
|
|
3312
|
-
i || u.pos++,
|
|
3318
|
+
i || u.pos++, o[e] = u.pos;
|
|
3313
3319
|
};
|
|
3314
|
-
|
|
3320
|
+
fe.prototype.tokenize = function(u) {
|
|
3315
3321
|
const e = this.ruler.getRules(""), t = e.length, n = u.posMax, r = u.md.options.maxNesting;
|
|
3316
3322
|
for (; u.pos < n; ) {
|
|
3317
|
-
const
|
|
3323
|
+
const o = u.pos;
|
|
3318
3324
|
let i = !1;
|
|
3319
3325
|
if (u.level < r) {
|
|
3320
|
-
for (let
|
|
3321
|
-
if (i = e[
|
|
3322
|
-
if (
|
|
3326
|
+
for (let c = 0; c < t; c++)
|
|
3327
|
+
if (i = e[c](u, !1), i) {
|
|
3328
|
+
if (o >= u.pos)
|
|
3323
3329
|
throw new Error("inline rule didn't increment state.pos");
|
|
3324
3330
|
break;
|
|
3325
3331
|
}
|
|
@@ -3333,17 +3339,17 @@ le.prototype.tokenize = function(u) {
|
|
|
3333
3339
|
}
|
|
3334
3340
|
u.pending && u.pushPending();
|
|
3335
3341
|
};
|
|
3336
|
-
|
|
3342
|
+
fe.prototype.parse = function(u, e, t, n) {
|
|
3337
3343
|
const r = new this.State(u, e, t, n);
|
|
3338
3344
|
this.tokenize(r);
|
|
3339
|
-
const
|
|
3340
|
-
for (let
|
|
3341
|
-
c
|
|
3345
|
+
const o = this.ruler2.getRules(""), i = o.length;
|
|
3346
|
+
for (let c = 0; c < i; c++)
|
|
3347
|
+
o[c](r);
|
|
3342
3348
|
};
|
|
3343
|
-
|
|
3344
|
-
function
|
|
3349
|
+
fe.prototype.State = le;
|
|
3350
|
+
function Yc(u) {
|
|
3345
3351
|
const e = {};
|
|
3346
|
-
u = u || {}, e.src_Any = It.source, e.src_Cc = Lt.source, e.src_Z = Nt.source, e.src_P =
|
|
3352
|
+
u = u || {}, e.src_Any = It.source, e.src_Cc = Lt.source, e.src_Z = Nt.source, e.src_P = p0.source, e.src_ZPCc = [e.src_Z, e.src_P, e.src_Cc].join("|"), e.src_ZCc = [e.src_Z, e.src_Cc].join("|");
|
|
3347
3353
|
const t = "[><|]";
|
|
3348
3354
|
return e.src_pseudo_letter = "(?:(?!" + t + "|" + e.src_ZPCc + ")" + e.src_Any + ")", e.src_ip4 = "(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)", e.src_auth = "(?:(?:(?!" + e.src_ZCc + "|[@/\\[\\]()]).)+@)?", e.src_port = "(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?", e.src_host_terminator = "(?=$|" + t + "|" + e.src_ZPCc + ")(?!" + (u["---"] ? "-(?!--)|" : "-|") + "_|:\\d|\\.-|\\.(?!$|" + e.src_ZPCc + "))", e.src_path = "(?:[/?#](?:(?!" + e.src_ZCc + "|" + t + `|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!` + e.src_ZCc + "|\\]).)*\\]|\\((?:(?!" + e.src_ZCc + "|[)]).)*\\)|\\{(?:(?!" + e.src_ZCc + '|[}]).)*\\}|\\"(?:(?!' + e.src_ZCc + `|["]).)+\\"|\\'(?:(?!` + e.src_ZCc + "|[']).)+\\'|\\'(?=" + e.src_pseudo_letter + "|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!" + e.src_ZCc + "|[.]|$)|" + (u["---"] ? "\\-(?!--(?:[^-]|$))(?:-*)|" : "\\-+|") + // allow `,,,` in paths
|
|
3349
3355
|
",(?!" + e.src_ZCc + "|$)|;(?!" + e.src_ZCc + "|$)|\\!+(?!" + e.src_ZCc + "|[!]|$)|\\?(?!" + e.src_ZCc + "|[?]|$))+|\\/)?", e.src_email_name = '[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*', e.src_xn = "xn--[a-z0-9\\-]{1,59}", e.src_domain_root = // Allow letters & digits (http://test1)
|
|
@@ -3360,22 +3366,22 @@ function i0(u) {
|
|
|
3360
3366
|
});
|
|
3361
3367
|
}), u;
|
|
3362
3368
|
}
|
|
3363
|
-
function
|
|
3369
|
+
function Me(u) {
|
|
3364
3370
|
return Object.prototype.toString.call(u);
|
|
3365
3371
|
}
|
|
3366
|
-
function
|
|
3367
|
-
return
|
|
3372
|
+
function Xc(u) {
|
|
3373
|
+
return Me(u) === "[object String]";
|
|
3368
3374
|
}
|
|
3369
|
-
function
|
|
3370
|
-
return
|
|
3375
|
+
function Jc(u) {
|
|
3376
|
+
return Me(u) === "[object Object]";
|
|
3371
3377
|
}
|
|
3372
|
-
function
|
|
3373
|
-
return
|
|
3378
|
+
function Qc(u) {
|
|
3379
|
+
return Me(u) === "[object RegExp]";
|
|
3374
3380
|
}
|
|
3375
3381
|
function gt(u) {
|
|
3376
|
-
return
|
|
3382
|
+
return Me(u) === "[object Function]";
|
|
3377
3383
|
}
|
|
3378
|
-
function
|
|
3384
|
+
function Kc(u) {
|
|
3379
3385
|
return u.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
|
|
3380
3386
|
}
|
|
3381
3387
|
const Zt = {
|
|
@@ -3424,7 +3430,7 @@ const ei = {
|
|
|
3424
3430
|
function ri(u) {
|
|
3425
3431
|
u.__index__ = -1, u.__text_cache__ = "";
|
|
3426
3432
|
}
|
|
3427
|
-
function
|
|
3433
|
+
function oi(u) {
|
|
3428
3434
|
return function(e, t) {
|
|
3429
3435
|
const n = e.slice(t);
|
|
3430
3436
|
return u.test(n) ? n.match(u)[0].length : 0;
|
|
@@ -3435,58 +3441,58 @@ function kt() {
|
|
|
3435
3441
|
e.normalize(u);
|
|
3436
3442
|
};
|
|
3437
3443
|
}
|
|
3438
|
-
function
|
|
3439
|
-
const e = u.re =
|
|
3444
|
+
function Te(u) {
|
|
3445
|
+
const e = u.re = Yc(u.__opts__), t = u.__tlds__.slice();
|
|
3440
3446
|
u.onCompile(), u.__tlds_replaced__ || t.push(ti), t.push(e.src_xn), e.src_tlds = t.join("|");
|
|
3441
|
-
function n(
|
|
3442
|
-
return
|
|
3447
|
+
function n(c) {
|
|
3448
|
+
return c.replace("%TLDS%", e.src_tlds);
|
|
3443
3449
|
}
|
|
3444
3450
|
e.email_fuzzy = RegExp(n(e.tpl_email_fuzzy), "i"), e.link_fuzzy = RegExp(n(e.tpl_link_fuzzy), "i"), e.link_no_ip_fuzzy = RegExp(n(e.tpl_link_no_ip_fuzzy), "i"), e.host_fuzzy_test = RegExp(n(e.tpl_host_fuzzy_test), "i");
|
|
3445
3451
|
const r = [];
|
|
3446
3452
|
u.__compiled__ = {};
|
|
3447
|
-
function c
|
|
3448
|
-
throw new Error('(LinkifyIt) Invalid schema "' +
|
|
3453
|
+
function o(c, a) {
|
|
3454
|
+
throw new Error('(LinkifyIt) Invalid schema "' + c + '": ' + a);
|
|
3449
3455
|
}
|
|
3450
|
-
Object.keys(u.__schemas__).forEach(function(
|
|
3451
|
-
const a = u.__schemas__[
|
|
3456
|
+
Object.keys(u.__schemas__).forEach(function(c) {
|
|
3457
|
+
const a = u.__schemas__[c];
|
|
3452
3458
|
if (a === null)
|
|
3453
3459
|
return;
|
|
3454
3460
|
const s = { validate: null, link: null };
|
|
3455
|
-
if (u.__compiled__[
|
|
3456
|
-
|
|
3461
|
+
if (u.__compiled__[c] = s, Jc(a)) {
|
|
3462
|
+
Qc(a.validate) ? s.validate = oi(a.validate) : gt(a.validate) ? s.validate = a.validate : o(c, a), gt(a.normalize) ? s.normalize = a.normalize : a.normalize ? o(c, a) : s.normalize = kt();
|
|
3457
3463
|
return;
|
|
3458
3464
|
}
|
|
3459
|
-
if (
|
|
3460
|
-
r.push(
|
|
3465
|
+
if (Xc(a)) {
|
|
3466
|
+
r.push(c);
|
|
3461
3467
|
return;
|
|
3462
3468
|
}
|
|
3463
|
-
c
|
|
3464
|
-
}), r.forEach(function(
|
|
3465
|
-
u.__compiled__[u.__schemas__[
|
|
3469
|
+
o(c, a);
|
|
3470
|
+
}), r.forEach(function(c) {
|
|
3471
|
+
u.__compiled__[u.__schemas__[c]] && (u.__compiled__[c].validate = u.__compiled__[u.__schemas__[c]].validate, u.__compiled__[c].normalize = u.__compiled__[u.__schemas__[c]].normalize);
|
|
3466
3472
|
}), u.__compiled__[""] = { validate: null, normalize: kt() };
|
|
3467
|
-
const i = Object.keys(u.__compiled__).filter(function(
|
|
3468
|
-
return
|
|
3469
|
-
}).map(
|
|
3473
|
+
const i = Object.keys(u.__compiled__).filter(function(c) {
|
|
3474
|
+
return c.length > 0 && u.__compiled__[c];
|
|
3475
|
+
}).map(Kc).join("|");
|
|
3470
3476
|
u.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" + i + ")", "i"), u.re.schema_search = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" + i + ")", "ig"), u.re.schema_at_start = RegExp("^" + u.re.schema_search.source, "i"), u.re.pretest = RegExp(
|
|
3471
3477
|
"(" + u.re.schema_test.source + ")|(" + u.re.host_fuzzy_test.source + ")|@",
|
|
3472
3478
|
"i"
|
|
3473
3479
|
), ri(u);
|
|
3474
3480
|
}
|
|
3475
|
-
function
|
|
3481
|
+
function ci(u, e) {
|
|
3476
3482
|
const t = u.__index__, n = u.__last_index__, r = u.__text_cache__.slice(t, n);
|
|
3477
3483
|
this.schema = u.__schema__.toLowerCase(), this.index = t + e, this.lastIndex = n + e, this.raw = r, this.text = r, this.url = r;
|
|
3478
3484
|
}
|
|
3479
3485
|
function a0(u, e) {
|
|
3480
|
-
const t = new
|
|
3486
|
+
const t = new ci(u, e);
|
|
3481
3487
|
return u.__compiled__[t.schema].normalize(t, u), t;
|
|
3482
3488
|
}
|
|
3483
3489
|
function X(u, e) {
|
|
3484
3490
|
if (!(this instanceof X))
|
|
3485
3491
|
return new X(u, e);
|
|
3486
|
-
e || ui(u) && (e = u, u = {}), this.__opts__ = i0({}, Zt, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = i0({}, ei, u), this.__compiled__ = {}, this.__tlds__ = ni, this.__tlds_replaced__ = !1, this.re = {},
|
|
3492
|
+
e || ui(u) && (e = u, u = {}), this.__opts__ = i0({}, Zt, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = i0({}, ei, u), this.__compiled__ = {}, this.__tlds__ = ni, this.__tlds_replaced__ = !1, this.re = {}, Te(this);
|
|
3487
3493
|
}
|
|
3488
3494
|
X.prototype.add = function(e, t) {
|
|
3489
|
-
return this.__schemas__[e] = t,
|
|
3495
|
+
return this.__schemas__[e] = t, Te(this), this;
|
|
3490
3496
|
};
|
|
3491
3497
|
X.prototype.set = function(e) {
|
|
3492
3498
|
return this.__opts__ = i0(this.__opts__, e), this;
|
|
@@ -3494,15 +3500,15 @@ X.prototype.set = function(e) {
|
|
|
3494
3500
|
X.prototype.test = function(e) {
|
|
3495
3501
|
if (this.__text_cache__ = e, this.__index__ = -1, !e.length)
|
|
3496
3502
|
return !1;
|
|
3497
|
-
let t, n, r,
|
|
3503
|
+
let t, n, r, o, i, c, a, s, f;
|
|
3498
3504
|
if (this.re.schema_test.test(e)) {
|
|
3499
3505
|
for (a = this.re.schema_search, a.lastIndex = 0; (t = a.exec(e)) !== null; )
|
|
3500
|
-
if (
|
|
3501
|
-
this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length +
|
|
3506
|
+
if (o = this.testSchemaAt(e, t[2], a.lastIndex), o) {
|
|
3507
|
+
this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + o;
|
|
3502
3508
|
break;
|
|
3503
3509
|
}
|
|
3504
3510
|
}
|
|
3505
|
-
return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (s = e.search(this.re.host_fuzzy_test), s >= 0 && (this.__index__ < 0 || s < this.__index__) && (n = e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (i = n.index + n[1].length, (this.__index__ < 0 || i < this.__index__) && (this.__schema__ = "", this.__index__ = i, this.__last_index__ = n.index + n[0].length))), this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && (f = e.indexOf("@"), f >= 0 && (r = e.match(this.re.email_fuzzy)) !== null && (i = r.index + r[1].length,
|
|
3511
|
+
return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (s = e.search(this.re.host_fuzzy_test), s >= 0 && (this.__index__ < 0 || s < this.__index__) && (n = e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (i = n.index + n[1].length, (this.__index__ < 0 || i < this.__index__) && (this.__schema__ = "", this.__index__ = i, this.__last_index__ = n.index + n[0].length))), this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && (f = e.indexOf("@"), f >= 0 && (r = e.match(this.re.email_fuzzy)) !== null && (i = r.index + r[1].length, c = r.index + r[0].length, (this.__index__ < 0 || i < this.__index__ || i === this.__index__ && c > this.__last_index__) && (this.__schema__ = "mailto:", this.__index__ = i, this.__last_index__ = c))), this.__index__ >= 0;
|
|
3506
3512
|
};
|
|
3507
3513
|
X.prototype.pretest = function(e) {
|
|
3508
3514
|
return this.re.pretest.test(e);
|
|
@@ -3527,24 +3533,24 @@ X.prototype.matchAtStart = function(e) {
|
|
|
3527
3533
|
return n ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + n, a0(this, 0)) : null;
|
|
3528
3534
|
};
|
|
3529
3535
|
X.prototype.tlds = function(e, t) {
|
|
3530
|
-
return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(n, r,
|
|
3531
|
-
return n !==
|
|
3532
|
-
}).reverse(),
|
|
3536
|
+
return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(n, r, o) {
|
|
3537
|
+
return n !== o[r - 1];
|
|
3538
|
+
}).reverse(), Te(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, Te(this), this);
|
|
3533
3539
|
};
|
|
3534
3540
|
X.prototype.normalize = function(e) {
|
|
3535
3541
|
e.schema || (e.url = "http://" + e.url), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = "mailto:" + e.url);
|
|
3536
3542
|
};
|
|
3537
3543
|
X.prototype.onCompile = function() {
|
|
3538
3544
|
};
|
|
3539
|
-
const Bu = 2147483647,
|
|
3545
|
+
const Bu = 2147483647, ou = 36, x0 = 1, ie = 26, ii = 38, ai = 700, Vt = 72, Yt = 128, Xt = "-", si = /^xn--/, li = /[^\0-\x7F]/, fi = /[\x2E\u3002\uFF0E\uFF61]/g, di = {
|
|
3540
3546
|
overflow: "Overflow: input needs wider integers to process",
|
|
3541
3547
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
3542
3548
|
"invalid-input": "Invalid input"
|
|
3543
|
-
},
|
|
3544
|
-
function
|
|
3549
|
+
}, e0 = ou - x0, cu = Math.floor, t0 = String.fromCharCode;
|
|
3550
|
+
function hu(u) {
|
|
3545
3551
|
throw new RangeError(di[u]);
|
|
3546
3552
|
}
|
|
3547
|
-
function
|
|
3553
|
+
function pi(u, e) {
|
|
3548
3554
|
const t = [];
|
|
3549
3555
|
let n = u.length;
|
|
3550
3556
|
for (; n--; )
|
|
@@ -3555,8 +3561,8 @@ function Jt(u, e) {
|
|
|
3555
3561
|
const t = u.split("@");
|
|
3556
3562
|
let n = "";
|
|
3557
3563
|
t.length > 1 && (n = t[0] + "@", u = t[1]), u = u.replace(fi, ".");
|
|
3558
|
-
const r = u.split("."),
|
|
3559
|
-
return n +
|
|
3564
|
+
const r = u.split("."), o = pi(r, e).join(".");
|
|
3565
|
+
return n + o;
|
|
3560
3566
|
}
|
|
3561
3567
|
function Qt(u) {
|
|
3562
3568
|
const e = [];
|
|
@@ -3565,72 +3571,72 @@ function Qt(u) {
|
|
|
3565
3571
|
for (; t < n; ) {
|
|
3566
3572
|
const r = u.charCodeAt(t++);
|
|
3567
3573
|
if (r >= 55296 && r <= 56319 && t < n) {
|
|
3568
|
-
const
|
|
3569
|
-
(
|
|
3574
|
+
const o = u.charCodeAt(t++);
|
|
3575
|
+
(o & 64512) == 56320 ? e.push(((r & 1023) << 10) + (o & 1023) + 65536) : (e.push(r), t--);
|
|
3570
3576
|
} else
|
|
3571
3577
|
e.push(r);
|
|
3572
3578
|
}
|
|
3573
3579
|
return e;
|
|
3574
3580
|
}
|
|
3575
|
-
const
|
|
3576
|
-
return u >= 48 && u < 58 ? 26 + (u - 48) : u >= 65 && u < 91 ? u - 65 : u >= 97 && u < 123 ? u - 97 :
|
|
3581
|
+
const hi = (u) => String.fromCodePoint(...u), bi = function(u) {
|
|
3582
|
+
return u >= 48 && u < 58 ? 26 + (u - 48) : u >= 65 && u < 91 ? u - 65 : u >= 97 && u < 123 ? u - 97 : ou;
|
|
3577
3583
|
}, Et = function(u, e) {
|
|
3578
3584
|
return u + 22 + 75 * (u < 26) - ((e != 0) << 5);
|
|
3579
3585
|
}, Kt = function(u, e, t) {
|
|
3580
3586
|
let n = 0;
|
|
3581
|
-
for (u = t ?
|
|
3582
|
-
u =
|
|
3583
|
-
return
|
|
3587
|
+
for (u = t ? cu(u / ai) : u >> 1, u += cu(u / e); u > e0 * ie >> 1; n += ou)
|
|
3588
|
+
u = cu(u / e0);
|
|
3589
|
+
return cu(n + (e0 + 1) * u / (u + ii));
|
|
3584
3590
|
}, un = function(u) {
|
|
3585
3591
|
const e = [], t = u.length;
|
|
3586
|
-
let n = 0, r = Yt,
|
|
3592
|
+
let n = 0, r = Yt, o = Vt, i = u.lastIndexOf(Xt);
|
|
3587
3593
|
i < 0 && (i = 0);
|
|
3588
|
-
for (let
|
|
3589
|
-
u.charCodeAt(
|
|
3590
|
-
for (let
|
|
3594
|
+
for (let c = 0; c < i; ++c)
|
|
3595
|
+
u.charCodeAt(c) >= 128 && hu("not-basic"), e.push(u.charCodeAt(c));
|
|
3596
|
+
for (let c = i > 0 ? i + 1 : 0; c < t; ) {
|
|
3591
3597
|
const a = n;
|
|
3592
|
-
for (let f = 1,
|
|
3593
|
-
|
|
3594
|
-
const _ = bi(u.charCodeAt(
|
|
3595
|
-
_ >=
|
|
3596
|
-
const
|
|
3597
|
-
if (_ <
|
|
3598
|
+
for (let f = 1, d = ou; ; d += ou) {
|
|
3599
|
+
c >= t && hu("invalid-input");
|
|
3600
|
+
const _ = bi(u.charCodeAt(c++));
|
|
3601
|
+
_ >= ou && hu("invalid-input"), _ > cu((Bu - n) / f) && hu("overflow"), n += _ * f;
|
|
3602
|
+
const h = d <= o ? x0 : d >= o + ie ? ie : d - o;
|
|
3603
|
+
if (_ < h)
|
|
3598
3604
|
break;
|
|
3599
|
-
const
|
|
3600
|
-
f >
|
|
3605
|
+
const p = ou - h;
|
|
3606
|
+
f > cu(Bu / p) && hu("overflow"), f *= p;
|
|
3601
3607
|
}
|
|
3602
3608
|
const s = e.length + 1;
|
|
3603
|
-
|
|
3609
|
+
o = Kt(n - a, s, a == 0), cu(n / s) > Bu - r && hu("overflow"), r += cu(n / s), n %= s, e.splice(n++, 0, r);
|
|
3604
3610
|
}
|
|
3605
3611
|
return String.fromCodePoint(...e);
|
|
3606
3612
|
}, en = function(u) {
|
|
3607
3613
|
const e = [];
|
|
3608
3614
|
u = Qt(u);
|
|
3609
3615
|
const t = u.length;
|
|
3610
|
-
let n = Yt, r = 0,
|
|
3616
|
+
let n = Yt, r = 0, o = Vt;
|
|
3611
3617
|
for (const a of u)
|
|
3612
|
-
a < 128 && e.push(
|
|
3618
|
+
a < 128 && e.push(t0(a));
|
|
3613
3619
|
const i = e.length;
|
|
3614
|
-
let
|
|
3615
|
-
for (i && e.push(Xt);
|
|
3620
|
+
let c = i;
|
|
3621
|
+
for (i && e.push(Xt); c < t; ) {
|
|
3616
3622
|
let a = Bu;
|
|
3617
3623
|
for (const f of u)
|
|
3618
3624
|
f >= n && f < a && (a = f);
|
|
3619
|
-
const s =
|
|
3620
|
-
a - n >
|
|
3625
|
+
const s = c + 1;
|
|
3626
|
+
a - n > cu((Bu - r) / s) && hu("overflow"), r += (a - n) * s, n = a;
|
|
3621
3627
|
for (const f of u)
|
|
3622
|
-
if (f < n && ++r > Bu &&
|
|
3623
|
-
let
|
|
3624
|
-
for (let _ =
|
|
3625
|
-
const
|
|
3626
|
-
if (
|
|
3628
|
+
if (f < n && ++r > Bu && hu("overflow"), f === n) {
|
|
3629
|
+
let d = r;
|
|
3630
|
+
for (let _ = ou; ; _ += ou) {
|
|
3631
|
+
const h = _ <= o ? x0 : _ >= o + ie ? ie : _ - o;
|
|
3632
|
+
if (d < h)
|
|
3627
3633
|
break;
|
|
3628
|
-
const
|
|
3634
|
+
const p = d - h, C = ou - h;
|
|
3629
3635
|
e.push(
|
|
3630
|
-
|
|
3631
|
-
),
|
|
3636
|
+
t0(Et(h + p % C, 0))
|
|
3637
|
+
), d = cu(p / C);
|
|
3632
3638
|
}
|
|
3633
|
-
e.push(
|
|
3639
|
+
e.push(t0(Et(d, 0))), o = Kt(r, s, c === i), r = 0, ++c;
|
|
3634
3640
|
}
|
|
3635
3641
|
++r, ++n;
|
|
3636
3642
|
}
|
|
@@ -3659,7 +3665,7 @@ const pi = (u) => String.fromCodePoint(...u), bi = function(u) {
|
|
|
3659
3665
|
*/
|
|
3660
3666
|
ucs2: {
|
|
3661
3667
|
decode: Qt,
|
|
3662
|
-
encode:
|
|
3668
|
+
encode: hi
|
|
3663
3669
|
},
|
|
3664
3670
|
decode: un,
|
|
3665
3671
|
encode: en,
|
|
@@ -3847,7 +3853,7 @@ function yi(u) {
|
|
|
3847
3853
|
e.hostname = tn.toASCII(e.hostname);
|
|
3848
3854
|
} catch {
|
|
3849
3855
|
}
|
|
3850
|
-
return
|
|
3856
|
+
return se(f0(e));
|
|
3851
3857
|
}
|
|
3852
3858
|
function Fi(u) {
|
|
3853
3859
|
const e = d0(u, !0);
|
|
@@ -3856,19 +3862,19 @@ function Fi(u) {
|
|
|
3856
3862
|
e.hostname = tn.toUnicode(e.hostname);
|
|
3857
3863
|
} catch {
|
|
3858
3864
|
}
|
|
3859
|
-
return
|
|
3865
|
+
return zu(f0(e), zu.defaultChars + "%");
|
|
3860
3866
|
}
|
|
3861
3867
|
function Q(u, e) {
|
|
3862
3868
|
if (!(this instanceof Q))
|
|
3863
3869
|
return new Q(u, e);
|
|
3864
|
-
e ||
|
|
3870
|
+
e || h0(u) || (e = u || {}, u = "default"), this.inline = new fe(), this.block = new Re(), this.core = new _0(), this.renderer = new Hu(), this.linkify = new X(), this.validateLink = Di, this.normalizeLink = yi, this.normalizeLinkText = Fi, this.utils = So, this.helpers = we({}, Mo), this.options = {}, this.configure(u), e && this.set(e);
|
|
3865
3871
|
}
|
|
3866
3872
|
Q.prototype.set = function(u) {
|
|
3867
|
-
return
|
|
3873
|
+
return we(this.options, u), this;
|
|
3868
3874
|
};
|
|
3869
3875
|
Q.prototype.configure = function(u) {
|
|
3870
3876
|
const e = this;
|
|
3871
|
-
if (
|
|
3877
|
+
if (h0(u)) {
|
|
3872
3878
|
const t = u;
|
|
3873
3879
|
if (u = Ei[t], !u)
|
|
3874
3880
|
throw new Error('Wrong `markdown-it` preset "' + t + '", check name');
|
|
@@ -3923,28 +3929,30 @@ Q.prototype.parseInline = function(u, e) {
|
|
|
3923
3929
|
Q.prototype.renderInline = function(u, e) {
|
|
3924
3930
|
return e = e || {}, this.renderer.render(this.parseInline(u, e), this.options, e);
|
|
3925
3931
|
};
|
|
3926
|
-
class
|
|
3927
|
-
constructor(t, n) {
|
|
3932
|
+
class Bi extends s0 {
|
|
3933
|
+
constructor({ mdConfig: t, dompurifyConfig: n, sanitizeDisabled: r, styleOptions: o } = {}) {
|
|
3928
3934
|
super();
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
this
|
|
3935
|
+
Iu(this, "md");
|
|
3936
|
+
Iu(this, "mdConfig");
|
|
3937
|
+
Iu(this, "dompurifyConfig");
|
|
3938
|
+
Iu(this, "sanitizeDisabled");
|
|
3939
|
+
Iu(this, "styleOptions");
|
|
3940
|
+
this.mdConfig = t || {}, this.dompurifyConfig = n || {}, this.md = Q(this.mdConfig), this.sanitizeDisabled = r ?? !1, this.styleOptions = o ?? {};
|
|
3933
3941
|
}
|
|
3934
3942
|
render(t) {
|
|
3935
3943
|
let n = "";
|
|
3936
3944
|
try {
|
|
3937
3945
|
n = this.md.render(t.content ?? "");
|
|
3938
|
-
} catch (
|
|
3939
|
-
console.error("Error rendering markdown:",
|
|
3946
|
+
} catch (o) {
|
|
3947
|
+
console.error("Error rendering markdown:", o), n = t.content ?? "";
|
|
3940
3948
|
}
|
|
3941
|
-
if (this.
|
|
3942
|
-
return console.warn("HTML sanitization is disabled, potential XSS risk"), Z0("div", { innerHTML: n });
|
|
3949
|
+
if (this.sanitizeDisabled)
|
|
3950
|
+
return console.warn("HTML sanitization is disabled, potential XSS risk"), Z0("div", { innerHTML: n, class: this.styleOptions.class, style: this.styleOptions.style });
|
|
3943
3951
|
const r = qr.sanitize(n, this.dompurifyConfig);
|
|
3944
|
-
return Z0("div", { innerHTML: r });
|
|
3952
|
+
return Z0("div", { innerHTML: r, class: this.styleOptions.class, style: this.styleOptions.style });
|
|
3945
3953
|
}
|
|
3946
3954
|
}
|
|
3947
|
-
const
|
|
3955
|
+
const ae = /* @__PURE__ */ ku({
|
|
3948
3956
|
__name: "BubbleProvider",
|
|
3949
3957
|
props: {
|
|
3950
3958
|
messageRenderers: { default: () => ({}) }
|
|
@@ -3964,23 +3972,23 @@ const Ti = function(u) {
|
|
|
3964
3972
|
};
|
|
3965
3973
|
Du.install = Ti;
|
|
3966
3974
|
const zi = Du;
|
|
3967
|
-
|
|
3975
|
+
ne.name = "TrBubbleList";
|
|
3968
3976
|
const Si = function(u) {
|
|
3969
|
-
u.component(
|
|
3977
|
+
u.component(ne.name, ne);
|
|
3970
3978
|
};
|
|
3971
|
-
|
|
3972
|
-
const qi =
|
|
3973
|
-
|
|
3979
|
+
ne.install = Si;
|
|
3980
|
+
const qi = ne;
|
|
3981
|
+
ae.name = "TrBubbleProvider";
|
|
3974
3982
|
const wi = function(u) {
|
|
3975
|
-
u.component(
|
|
3983
|
+
u.component(ae.name, ae);
|
|
3976
3984
|
};
|
|
3977
|
-
|
|
3978
|
-
const Ui =
|
|
3985
|
+
ae.install = wi;
|
|
3986
|
+
const Ui = ae;
|
|
3979
3987
|
export {
|
|
3980
3988
|
zi as Bubble,
|
|
3981
|
-
|
|
3989
|
+
Pi as BubbleChainMessageRenderer,
|
|
3982
3990
|
qi as BubbleList,
|
|
3983
|
-
|
|
3991
|
+
Bi as BubbleMarkdownMessageRenderer,
|
|
3984
3992
|
s0 as BubbleMessageClassRenderer,
|
|
3985
3993
|
Ui as BubbleProvider
|
|
3986
3994
|
};
|