@caseparts-org/caseblocks 0.0.194 → 0.0.196

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/assets/Admonition.css +1 -0
  2. package/dist/assets/MainNav.css +1 -1
  3. package/dist/assets/Markdown.css +1 -1
  4. package/dist/main-browser.d.ts +4 -6
  5. package/dist/main-browser.js +3 -5
  6. package/dist/main-client.js +54 -52
  7. package/dist/main-server.d.ts +2 -0
  8. package/dist/main-server.js +16 -14
  9. package/dist/main.d.ts +2 -0
  10. package/dist/main.js +18 -16
  11. package/dist/molecules/Admonition/Admonition.d.ts +10 -0
  12. package/dist/molecules/Admonition/Admonition.js +46 -0
  13. package/dist/molecules/Admonition/Admonition.stories.d.ts +13 -0
  14. package/dist/molecules/Admonition/Admonition.stories.js +51 -0
  15. package/dist/molecules/Markdown/Markdown.d.ts +12 -0
  16. package/dist/{atoms → molecules}/Markdown/Markdown.js +891 -855
  17. package/dist/{atoms → molecules}/Markdown/Markdown.stories.d.ts +2 -0
  18. package/dist/molecules/Markdown/Markdown.stories.js +148 -0
  19. package/dist/molecules/Markdown/remarkAdmonition.d.ts +15 -0
  20. package/dist/molecules/Markdown/remarkAdmonition.js +120 -0
  21. package/dist/{atoms → molecules}/Markdown/usePreprocessedMarkdown.d.ts +1 -1
  22. package/dist/molecules/Markdown/usePreprocessedMarkdown.js +86 -0
  23. package/dist/organisms/MainNav/MainNav.js +77 -75
  24. package/package.json +1 -1
  25. package/dist/atoms/Markdown/Markdown.d.ts +0 -7
  26. package/dist/atoms/Markdown/Markdown.stories.js +0 -69
  27. package/dist/atoms/Markdown/PreprocessedMarkdown.d.ts +0 -10
  28. package/dist/atoms/Markdown/PreprocessedMarkdown.js +0 -39
  29. package/dist/atoms/Markdown/PreprocessedMarkdown.stories.d.ts +0 -8
  30. package/dist/atoms/Markdown/PreprocessedMarkdown.stories.js +0 -73
  31. package/dist/atoms/Markdown/usePreprocessedMarkdown.js +0 -74
@@ -1,27 +1,30 @@
1
- import { jsxs as Ci, jsx as Pn, Fragment as Ei } from "react/jsx-runtime";
1
+ import { jsxs as Ci, jsx as je, Fragment as Ei } from "react/jsx-runtime";
2
+ import { remarkAdmonition as Ii } from "./remarkAdmonition.js";
3
+ import { Admonition as Ai } from "../Admonition/Admonition.js";
4
+ import { usePreprocessedMarkdown as Ti } from "./usePreprocessedMarkdown.js";
2
5
  import "react";
3
- import '../../assets/Markdown.css';var nn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
6
+ import '../../assets/Markdown.css';var tn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
7
  function ar(e) {
5
8
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
6
9
  }
7
- function Ii(e, t) {
10
+ function Pi(e, t) {
8
11
  const n = {};
9
12
  return (e[e.length - 1] === "" ? [...e, ""] : e).join(
10
13
  (n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")
11
14
  ).trim();
12
15
  }
13
- const Ai = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Ti = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Pi = {};
16
+ const vi = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, zi = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Di = {};
14
17
  function ft(e, t) {
15
- return (Pi.jsx ? Ti : Ai).test(e);
18
+ return (Di.jsx ? zi : vi).test(e);
16
19
  }
17
- const vi = /[ \t\n\f\r]/g;
18
- function zi(e) {
20
+ const Li = /[ \t\n\f\r]/g;
21
+ function Fi(e) {
19
22
  return typeof e == "object" ? e.type === "text" ? ht(e.value) : !1 : ht(e);
20
23
  }
21
24
  function ht(e) {
22
- return e.replace(vi, "") === "";
25
+ return e.replace(Li, "") === "";
23
26
  }
24
- class qe {
27
+ class We {
25
28
  /**
26
29
  * @param {SchemaType['property']} property
27
30
  * Property.
@@ -36,14 +39,14 @@ class qe {
36
39
  this.normal = n, this.property = t, r && (this.space = r);
37
40
  }
38
41
  }
39
- qe.prototype.normal = {};
40
- qe.prototype.property = {};
41
- qe.prototype.space = void 0;
42
+ We.prototype.normal = {};
43
+ We.prototype.property = {};
44
+ We.prototype.space = void 0;
42
45
  function ur(e, t) {
43
46
  const n = {}, r = {};
44
47
  for (const i of e)
45
48
  Object.assign(n, i.property), Object.assign(r, i.normal);
46
- return new qe(n, r, t);
49
+ return new We(n, r, t);
47
50
  }
48
51
  function vn(e) {
49
52
  return e.toLowerCase();
@@ -73,10 +76,10 @@ ee.prototype.overloadedBoolean = !1;
73
76
  ee.prototype.property = "";
74
77
  ee.prototype.spaceSeparated = !1;
75
78
  ee.prototype.space = void 0;
76
- let Di = 0;
79
+ let _i = 0;
77
80
  const D = Ie(), W = Ie(), zn = Ie(), S = Ie(), V = Ie(), De = Ie(), te = Ie();
78
81
  function Ie() {
79
- return 2 ** ++Di;
82
+ return 2 ** ++_i;
80
83
  }
81
84
  const Dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
82
85
  __proto__: null,
@@ -87,7 +90,7 @@ const Dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
87
90
  number: S,
88
91
  overloadedBoolean: zn,
89
92
  spaceSeparated: V
90
- }, Symbol.toStringTag, { value: "Module" })), pn = (
93
+ }, Symbol.toStringTag, { value: "Module" })), mn = (
91
94
  /** @type {ReadonlyArray<keyof typeof types>} */
92
95
  Object.keys(Dn)
93
96
  );
@@ -108,9 +111,9 @@ class Hn extends ee {
108
111
  constructor(t, n, r, i) {
109
112
  let o = -1;
110
113
  if (super(t, n), pt(this, "space", i), typeof r == "number")
111
- for (; ++o < pn.length; ) {
112
- const l = pn[o];
113
- pt(this, pn[o], (r & Dn[l]) === Dn[l]);
114
+ for (; ++o < mn.length; ) {
115
+ const l = mn[o];
116
+ pt(this, mn[o], (r & Dn[l]) === Dn[l]);
114
117
  }
115
118
  }
116
119
  }
@@ -129,7 +132,7 @@ function Fe(e) {
129
132
  );
130
133
  e.mustUseProperty && e.mustUseProperty.includes(r) && (o.mustUseProperty = !0), t[r] = o, n[vn(r)] = r, n[vn(o.attribute)] = r;
131
134
  }
132
- return new qe(t, n, e.space);
135
+ return new We(t, n, e.space);
133
136
  }
134
137
  const sr = Fe({
135
138
  properties: {
@@ -193,7 +196,7 @@ function cr(e, t) {
193
196
  function fr(e, t) {
194
197
  return cr(e, t.toLowerCase());
195
198
  }
196
- const Li = Fe({
199
+ const Ri = Fe({
197
200
  attributes: {
198
201
  acceptcharset: "accept-charset",
199
202
  classname: "class",
@@ -554,7 +557,7 @@ const Li = Fe({
554
557
  },
555
558
  space: "html",
556
559
  transform: fr
557
- }), Fi = Fe({
560
+ }), Oi = Fe({
558
561
  attributes: {
559
562
  accentHeight: "accent-height",
560
563
  alignmentBaseline: "alignment-baseline",
@@ -1138,7 +1141,7 @@ const Li = Fe({
1138
1141
  transform(e, t) {
1139
1142
  return "xml:" + t.slice(3).toLowerCase();
1140
1143
  }
1141
- }), _i = {
1144
+ }), Mi = {
1142
1145
  classId: "classID",
1143
1146
  dataType: "datatype",
1144
1147
  itemId: "itemID",
@@ -1156,20 +1159,20 @@ const Li = Fe({
1156
1159
  xLinkTitle: "xlinkTitle",
1157
1160
  xLinkType: "xlinkType",
1158
1161
  xmlnsXLink: "xmlnsXlink"
1159
- }, Ri = /[A-Z]/g, mt = /-[a-z]/g, Oi = /^data[-\w.:]+$/i;
1160
- function Mi(e, t) {
1162
+ }, Ni = /[A-Z]/g, mt = /-[a-z]/g, Bi = /^data[-\w.:]+$/i;
1163
+ function ji(e, t) {
1161
1164
  const n = vn(t);
1162
1165
  let r = t, i = ee;
1163
1166
  if (n in e.normal)
1164
1167
  return e.property[e.normal[n]];
1165
- if (n.length > 4 && n.slice(0, 4) === "data" && Oi.test(t)) {
1168
+ if (n.length > 4 && n.slice(0, 4) === "data" && Bi.test(t)) {
1166
1169
  if (t.charAt(4) === "-") {
1167
- const o = t.slice(5).replace(mt, Bi);
1170
+ const o = t.slice(5).replace(mt, Ui);
1168
1171
  r = "data" + o.charAt(0).toUpperCase() + o.slice(1);
1169
1172
  } else {
1170
1173
  const o = t.slice(4);
1171
1174
  if (!mt.test(o)) {
1172
- let l = o.replace(Ri, Ni);
1175
+ let l = o.replace(Ni, Hi);
1173
1176
  l.charAt(0) !== "-" && (l = "-" + l), t = "data" + l;
1174
1177
  }
1175
1178
  }
@@ -1177,28 +1180,28 @@ function Mi(e, t) {
1177
1180
  }
1178
1181
  return new i(r, t);
1179
1182
  }
1180
- function Ni(e) {
1183
+ function Hi(e) {
1181
1184
  return "-" + e.toLowerCase();
1182
1185
  }
1183
- function Bi(e) {
1186
+ function Ui(e) {
1184
1187
  return e.charAt(1).toUpperCase();
1185
1188
  }
1186
- const ji = ur([sr, Li, hr, pr, mr], "html"), Un = ur([sr, Fi, hr, pr, mr], "svg");
1187
- function Hi(e) {
1189
+ const Vi = ur([sr, Ri, hr, pr, mr], "html"), Un = ur([sr, Oi, hr, pr, mr], "svg");
1190
+ function $i(e) {
1188
1191
  return e.join(" ").trim();
1189
1192
  }
1190
- var Vn = {}, gt = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Ui = /\n/g, Vi = /^\s*/, $i = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, qi = /^:\s*/, Wi = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Yi = /^[;\s]*/, Xi = /^\s+|\s+$/g, Qi = `
1191
- `, dt = "/", yt = "*", Ce = "", Gi = "comment", Ki = "declaration";
1192
- function Ji(e, t) {
1193
+ var Vn = {}, gt = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, qi = /\n/g, Wi = /^\s*/, Yi = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, Xi = /^:\s*/, Qi = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Gi = /^[;\s]*/, Ki = /^\s+|\s+$/g, Ji = `
1194
+ `, dt = "/", yt = "*", Ce = "", Zi = "comment", el = "declaration";
1195
+ function nl(e, t) {
1193
1196
  if (typeof e != "string")
1194
1197
  throw new TypeError("First argument must be a string");
1195
1198
  if (!e) return [];
1196
1199
  t = t || {};
1197
1200
  var n = 1, r = 1;
1198
1201
  function i(d) {
1199
- var x = d.match(Ui);
1202
+ var x = d.match(qi);
1200
1203
  x && (n += x.length);
1201
- var C = d.lastIndexOf(Qi);
1204
+ var C = d.lastIndexOf(Ji);
1202
1205
  r = ~C ? d.length - C : r + d.length;
1203
1206
  }
1204
1207
  function o() {
@@ -1225,7 +1228,7 @@ function Ji(e, t) {
1225
1228
  }
1226
1229
  }
1227
1230
  function s() {
1228
- u(Vi);
1231
+ u(Wi);
1229
1232
  }
1230
1233
  function f(d) {
1231
1234
  var x;
@@ -1242,21 +1245,21 @@ function Ji(e, t) {
1242
1245
  return a("End of comment missing");
1243
1246
  var C = e.slice(2, x - 2);
1244
1247
  return r += 2, i(C), e = e.slice(x), r += 2, d({
1245
- type: Gi,
1248
+ type: Zi,
1246
1249
  comment: C
1247
1250
  });
1248
1251
  }
1249
1252
  }
1250
1253
  function p() {
1251
- var d = o(), x = u($i);
1254
+ var d = o(), x = u(Yi);
1252
1255
  if (x) {
1253
- if (c(), !u(qi)) return a("property missing ':'");
1254
- var C = u(Wi), y = d({
1255
- type: Ki,
1256
+ if (c(), !u(Xi)) return a("property missing ':'");
1257
+ var C = u(Qi), y = d({
1258
+ type: el,
1256
1259
  property: kt(x[0].replace(gt, Ce)),
1257
1260
  value: C ? kt(C[0].replace(gt, Ce)) : Ce
1258
1261
  });
1259
- return u(Yi), y;
1262
+ return u(Gi), y;
1260
1263
  }
1261
1264
  }
1262
1265
  function h() {
@@ -1269,19 +1272,19 @@ function Ji(e, t) {
1269
1272
  return s(), h();
1270
1273
  }
1271
1274
  function kt(e) {
1272
- return e ? e.replace(Xi, Ce) : Ce;
1275
+ return e ? e.replace(Ki, Ce) : Ce;
1273
1276
  }
1274
- var Zi = Ji, el = nn && nn.__importDefault || function(e) {
1277
+ var tl = nl, rl = tn && tn.__importDefault || function(e) {
1275
1278
  return e && e.__esModule ? e : { default: e };
1276
1279
  };
1277
1280
  Object.defineProperty(Vn, "__esModule", { value: !0 });
1278
- Vn.default = tl;
1279
- const nl = el(Zi);
1280
- function tl(e, t) {
1281
+ Vn.default = ll;
1282
+ const il = rl(tl);
1283
+ function ll(e, t) {
1281
1284
  let n = null;
1282
1285
  if (!e || typeof e != "string")
1283
1286
  return n;
1284
- const r = (0, nl.default)(e), i = typeof t == "function";
1287
+ const r = (0, il.default)(e), i = typeof t == "function";
1285
1288
  return r.forEach((o) => {
1286
1289
  if (o.type !== "declaration")
1287
1290
  return;
@@ -1289,31 +1292,31 @@ function tl(e, t) {
1289
1292
  i ? t(l, a, o) : a && (n = n || {}, n[l] = a);
1290
1293
  }), n;
1291
1294
  }
1292
- var an = {};
1293
- Object.defineProperty(an, "__esModule", { value: !0 });
1294
- an.camelCase = void 0;
1295
- var rl = /^--[a-zA-Z0-9_-]+$/, il = /-([a-z])/g, ll = /^[^-]+$/, ol = /^-(webkit|moz|ms|o|khtml)-/, al = /^-(ms)-/, ul = function(e) {
1296
- return !e || ll.test(e) || rl.test(e);
1297
- }, sl = function(e, t) {
1295
+ var un = {};
1296
+ Object.defineProperty(un, "__esModule", { value: !0 });
1297
+ un.camelCase = void 0;
1298
+ var ol = /^--[a-zA-Z0-9_-]+$/, al = /-([a-z])/g, ul = /^[^-]+$/, sl = /^-(webkit|moz|ms|o|khtml)-/, cl = /^-(ms)-/, fl = function(e) {
1299
+ return !e || ul.test(e) || ol.test(e);
1300
+ }, hl = function(e, t) {
1298
1301
  return t.toUpperCase();
1299
1302
  }, xt = function(e, t) {
1300
1303
  return "".concat(t, "-");
1301
- }, cl = function(e, t) {
1302
- return t === void 0 && (t = {}), ul(e) ? e : (e = e.toLowerCase(), t.reactCompat ? e = e.replace(al, xt) : e = e.replace(ol, xt), e.replace(il, sl));
1304
+ }, pl = function(e, t) {
1305
+ return t === void 0 && (t = {}), fl(e) ? e : (e = e.toLowerCase(), t.reactCompat ? e = e.replace(cl, xt) : e = e.replace(sl, xt), e.replace(al, hl));
1303
1306
  };
1304
- an.camelCase = cl;
1305
- var fl = nn && nn.__importDefault || function(e) {
1307
+ un.camelCase = pl;
1308
+ var ml = tn && tn.__importDefault || function(e) {
1306
1309
  return e && e.__esModule ? e : { default: e };
1307
- }, hl = fl(Vn), pl = an;
1310
+ }, gl = ml(Vn), dl = un;
1308
1311
  function Ln(e, t) {
1309
1312
  var n = {};
1310
- return !e || typeof e != "string" || (0, hl.default)(e, function(r, i) {
1311
- r && i && (n[(0, pl.camelCase)(r, t)] = i);
1313
+ return !e || typeof e != "string" || (0, gl.default)(e, function(r, i) {
1314
+ r && i && (n[(0, dl.camelCase)(r, t)] = i);
1312
1315
  }), n;
1313
1316
  }
1314
1317
  Ln.default = Ln;
1315
- var ml = Ln;
1316
- const gl = /* @__PURE__ */ ar(ml), gr = dr("end"), $n = dr("start");
1318
+ var yl = Ln;
1319
+ const kl = /* @__PURE__ */ ar(yl), gr = dr("end"), $n = dr("start");
1317
1320
  function dr(e) {
1318
1321
  return t;
1319
1322
  function t(n) {
@@ -1326,12 +1329,12 @@ function dr(e) {
1326
1329
  };
1327
1330
  }
1328
1331
  }
1329
- function dl(e) {
1332
+ function xl(e) {
1330
1333
  const t = $n(e), n = gr(e);
1331
1334
  if (t && n)
1332
1335
  return { start: t, end: n };
1333
1336
  }
1334
- function je(e) {
1337
+ function He(e) {
1335
1338
  return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? bt(e.position) : "start" in e || "end" in e ? bt(e) : "line" in e || "column" in e ? Fn(e) : "";
1336
1339
  }
1337
1340
  function Fn(e) {
@@ -1414,7 +1417,7 @@ class K extends Error {
1414
1417
  u && (o.place = u.position);
1415
1418
  }
1416
1419
  const a = o.place && "start" in o.place ? o.place.start : o.place;
1417
- this.ancestors = o.ancestors || void 0, this.cause = o.cause || void 0, this.column = a ? a.column : void 0, this.fatal = void 0, this.file = "", this.message = i, this.line = a ? a.line : void 0, this.name = je(o.place) || "1:1", this.place = o.place || void 0, this.reason = this.message, this.ruleId = o.ruleId || void 0, this.source = o.source || void 0, this.stack = l && o.cause && typeof o.cause.stack == "string" ? o.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
1420
+ this.ancestors = o.ancestors || void 0, this.cause = o.cause || void 0, this.column = a ? a.column : void 0, this.fatal = void 0, this.file = "", this.message = i, this.line = a ? a.line : void 0, this.name = He(o.place) || "1:1", this.place = o.place || void 0, this.reason = this.message, this.ruleId = o.ruleId || void 0, this.source = o.source || void 0, this.stack = l && o.cause && typeof o.cause.stack == "string" ? o.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
1418
1421
  }
1419
1422
  }
1420
1423
  K.prototype.file = "";
@@ -1430,8 +1433,8 @@ K.prototype.fatal = void 0;
1430
1433
  K.prototype.place = void 0;
1431
1434
  K.prototype.ruleId = void 0;
1432
1435
  K.prototype.source = void 0;
1433
- const qn = {}.hasOwnProperty, yl = /* @__PURE__ */ new Map(), kl = /[A-Z]/g, xl = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), bl = /* @__PURE__ */ new Set(["td", "th"]), yr = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
1434
- function wl(e, t) {
1436
+ const qn = {}.hasOwnProperty, bl = /* @__PURE__ */ new Map(), wl = /[A-Z]/g, Sl = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), Cl = /* @__PURE__ */ new Set(["td", "th"]), yr = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
1437
+ function El(e, t) {
1435
1438
  if (!t || t.Fragment === void 0)
1436
1439
  throw new TypeError("Expected `Fragment` in options");
1437
1440
  const n = t.filePath || void 0;
@@ -1441,13 +1444,13 @@ function wl(e, t) {
1441
1444
  throw new TypeError(
1442
1445
  "Expected `jsxDEV` in options when `development: true`"
1443
1446
  );
1444
- r = vl(n, t.jsxDEV);
1447
+ r = Ll(n, t.jsxDEV);
1445
1448
  } else {
1446
1449
  if (typeof t.jsx != "function")
1447
1450
  throw new TypeError("Expected `jsx` in production options");
1448
1451
  if (typeof t.jsxs != "function")
1449
1452
  throw new TypeError("Expected `jsxs` in production options");
1450
- r = Pl(n, t.jsx, t.jsxs);
1453
+ r = Dl(n, t.jsx, t.jsxs);
1451
1454
  }
1452
1455
  const i = {
1453
1456
  Fragment: t.Fragment,
@@ -1460,7 +1463,7 @@ function wl(e, t) {
1460
1463
  ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
1461
1464
  passKeys: t.passKeys !== !1,
1462
1465
  passNode: t.passNode || !1,
1463
- schema: t.space === "svg" ? Un : ji,
1466
+ schema: t.space === "svg" ? Un : Vi,
1464
1467
  stylePropertyNameCase: t.stylePropertyNameCase || "dom",
1465
1468
  tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
1466
1469
  }, o = kr(i, e, void 0);
@@ -1473,56 +1476,56 @@ function wl(e, t) {
1473
1476
  }
1474
1477
  function kr(e, t, n) {
1475
1478
  if (t.type === "element")
1476
- return Sl(e, t, n);
1479
+ return Il(e, t, n);
1477
1480
  if (t.type === "mdxFlowExpression" || t.type === "mdxTextExpression")
1478
- return Cl(e, t);
1481
+ return Al(e, t);
1479
1482
  if (t.type === "mdxJsxFlowElement" || t.type === "mdxJsxTextElement")
1480
- return Il(e, t, n);
1483
+ return Pl(e, t, n);
1481
1484
  if (t.type === "mdxjsEsm")
1482
- return El(e, t);
1485
+ return Tl(e, t);
1483
1486
  if (t.type === "root")
1484
- return Al(e, t, n);
1487
+ return vl(e, t, n);
1485
1488
  if (t.type === "text")
1486
- return Tl(e, t);
1489
+ return zl(e, t);
1487
1490
  }
1488
- function Sl(e, t, n) {
1491
+ function Il(e, t, n) {
1489
1492
  const r = e.schema;
1490
1493
  let i = r;
1491
1494
  t.tagName.toLowerCase() === "svg" && r.space === "html" && (i = Un, e.schema = i), e.ancestors.push(t);
1492
- const o = br(e, t.tagName, !1), l = zl(e, t);
1495
+ const o = br(e, t.tagName, !1), l = Fl(e, t);
1493
1496
  let a = Yn(e, t);
1494
- return xl.has(t.tagName) && (a = a.filter(function(u) {
1495
- return typeof u == "string" ? !zi(u) : !0;
1497
+ return Sl.has(t.tagName) && (a = a.filter(function(u) {
1498
+ return typeof u == "string" ? !Fi(u) : !0;
1496
1499
  })), xr(e, l, o, t), Wn(l, a), e.ancestors.pop(), e.schema = r, e.create(t, o, l, n);
1497
1500
  }
1498
- function Cl(e, t) {
1501
+ function Al(e, t) {
1499
1502
  if (t.data && t.data.estree && e.evaluater) {
1500
1503
  const r = t.data.estree.body[0];
1501
1504
  return r.type, /** @type {Child | undefined} */
1502
1505
  e.evaluater.evaluateExpression(r.expression);
1503
1506
  }
1504
- Ve(e, t.position);
1507
+ $e(e, t.position);
1505
1508
  }
1506
- function El(e, t) {
1509
+ function Tl(e, t) {
1507
1510
  if (t.data && t.data.estree && e.evaluater)
1508
1511
  return (
1509
1512
  /** @type {Child | undefined} */
1510
1513
  e.evaluater.evaluateProgram(t.data.estree)
1511
1514
  );
1512
- Ve(e, t.position);
1515
+ $e(e, t.position);
1513
1516
  }
1514
- function Il(e, t, n) {
1517
+ function Pl(e, t, n) {
1515
1518
  const r = e.schema;
1516
1519
  let i = r;
1517
1520
  t.name === "svg" && r.space === "html" && (i = Un, e.schema = i), e.ancestors.push(t);
1518
- const o = t.name === null ? e.Fragment : br(e, t.name, !0), l = Dl(e, t), a = Yn(e, t);
1521
+ const o = t.name === null ? e.Fragment : br(e, t.name, !0), l = _l(e, t), a = Yn(e, t);
1519
1522
  return xr(e, l, o, t), Wn(l, a), e.ancestors.pop(), e.schema = r, e.create(t, o, l, n);
1520
1523
  }
1521
- function Al(e, t, n) {
1524
+ function vl(e, t, n) {
1522
1525
  const r = {};
1523
1526
  return Wn(r, Yn(e, t)), e.create(t, e.Fragment, r, n);
1524
1527
  }
1525
- function Tl(e, t) {
1528
+ function zl(e, t) {
1526
1529
  return t.value;
1527
1530
  }
1528
1531
  function xr(e, t, n, r) {
@@ -1534,14 +1537,14 @@ function Wn(e, t) {
1534
1537
  n && (e.children = n);
1535
1538
  }
1536
1539
  }
1537
- function Pl(e, t, n) {
1540
+ function Dl(e, t, n) {
1538
1541
  return r;
1539
1542
  function r(i, o, l, a) {
1540
1543
  const s = Array.isArray(l.children) ? n : t;
1541
1544
  return a ? s(o, l, a) : s(o, l);
1542
1545
  }
1543
1546
  }
1544
- function vl(e, t) {
1547
+ function Ll(e, t) {
1545
1548
  return n;
1546
1549
  function n(r, i, o, l) {
1547
1550
  const a = Array.isArray(o.children), u = $n(r);
@@ -1559,15 +1562,15 @@ function vl(e, t) {
1559
1562
  );
1560
1563
  }
1561
1564
  }
1562
- function zl(e, t) {
1565
+ function Fl(e, t) {
1563
1566
  const n = {};
1564
1567
  let r, i;
1565
1568
  for (i in t.properties)
1566
1569
  if (i !== "children" && qn.call(t.properties, i)) {
1567
- const o = Ll(e, i, t.properties[i]);
1570
+ const o = Rl(e, i, t.properties[i]);
1568
1571
  if (o) {
1569
1572
  const [l, a] = o;
1570
- e.tableCellAlignToStyle && l === "align" && typeof a == "string" && bl.has(t.tagName) ? r = a : n[l] = a;
1573
+ e.tableCellAlignToStyle && l === "align" && typeof a == "string" && Cl.has(t.tagName) ? r = a : n[l] = a;
1571
1574
  }
1572
1575
  }
1573
1576
  if (r) {
@@ -1579,7 +1582,7 @@ function zl(e, t) {
1579
1582
  }
1580
1583
  return n;
1581
1584
  }
1582
- function Dl(e, t) {
1585
+ function _l(e, t) {
1583
1586
  const n = {};
1584
1587
  for (const r of t.attributes)
1585
1588
  if (r.type === "mdxJsxExpressionAttribute")
@@ -1594,7 +1597,7 @@ function Dl(e, t) {
1594
1597
  e.evaluater.evaluateExpression(a.argument)
1595
1598
  );
1596
1599
  } else
1597
- Ve(e, t.position);
1600
+ $e(e, t.position);
1598
1601
  else {
1599
1602
  const i = r.name;
1600
1603
  let o;
@@ -1603,7 +1606,7 @@ function Dl(e, t) {
1603
1606
  const a = r.value.data.estree.body[0];
1604
1607
  a.type, o = e.evaluater.evaluateExpression(a.expression);
1605
1608
  } else
1606
- Ve(e, t.position);
1609
+ $e(e, t.position);
1607
1610
  else
1608
1611
  o = r.value === null ? !0 : r.value;
1609
1612
  n[i] = /** @type {Props[keyof Props]} */
@@ -1614,7 +1617,7 @@ function Dl(e, t) {
1614
1617
  function Yn(e, t) {
1615
1618
  const n = [];
1616
1619
  let r = -1;
1617
- const i = e.passKeys ? /* @__PURE__ */ new Map() : yl;
1620
+ const i = e.passKeys ? /* @__PURE__ */ new Map() : bl;
1618
1621
  for (; ++r < t.children.length; ) {
1619
1622
  const o = t.children[r];
1620
1623
  let l;
@@ -1630,22 +1633,22 @@ function Yn(e, t) {
1630
1633
  }
1631
1634
  return n;
1632
1635
  }
1633
- function Ll(e, t, n) {
1634
- const r = Mi(e.schema, t);
1636
+ function Rl(e, t, n) {
1637
+ const r = ji(e.schema, t);
1635
1638
  if (!(n == null || typeof n == "number" && Number.isNaN(n))) {
1636
- if (Array.isArray(n) && (n = r.commaSeparated ? Ii(n) : Hi(n)), r.property === "style") {
1637
- let i = typeof n == "object" ? n : Fl(e, String(n));
1638
- return e.stylePropertyNameCase === "css" && (i = _l(i)), ["style", i];
1639
+ if (Array.isArray(n) && (n = r.commaSeparated ? Pi(n) : $i(n)), r.property === "style") {
1640
+ let i = typeof n == "object" ? n : Ol(e, String(n));
1641
+ return e.stylePropertyNameCase === "css" && (i = Ml(i)), ["style", i];
1639
1642
  }
1640
1643
  return [
1641
- e.elementAttributeNameCase === "react" && r.space ? _i[r.property] || r.property : r.attribute,
1644
+ e.elementAttributeNameCase === "react" && r.space ? Mi[r.property] || r.property : r.attribute,
1642
1645
  n
1643
1646
  ];
1644
1647
  }
1645
1648
  }
1646
- function Fl(e, t) {
1649
+ function Ol(e, t) {
1647
1650
  try {
1648
- return gl(t, { reactCompat: !0 });
1651
+ return kl(t, { reactCompat: !0 });
1649
1652
  } catch (n) {
1650
1653
  if (e.ignoreInvalidStyle)
1651
1654
  return {};
@@ -1690,9 +1693,9 @@ function br(e, t, n) {
1690
1693
  }
1691
1694
  if (e.evaluater)
1692
1695
  return e.evaluater.evaluateExpression(r);
1693
- Ve(e);
1696
+ $e(e);
1694
1697
  }
1695
- function Ve(e, t) {
1698
+ function $e(e, t) {
1696
1699
  const n = new K(
1697
1700
  "Cannot handle MDX estrees without `createEvaluater`",
1698
1701
  {
@@ -1704,21 +1707,21 @@ function Ve(e, t) {
1704
1707
  );
1705
1708
  throw n.file = e.filePath || void 0, n.url = yr + "#cannot-handle-mdx-estrees-without-createevaluater", n;
1706
1709
  }
1707
- function _l(e) {
1710
+ function Ml(e) {
1708
1711
  const t = {};
1709
1712
  let n;
1710
1713
  for (n in e)
1711
- qn.call(e, n) && (t[Rl(n)] = e[n]);
1714
+ qn.call(e, n) && (t[Nl(n)] = e[n]);
1712
1715
  return t;
1713
1716
  }
1714
- function Rl(e) {
1715
- let t = e.replace(kl, Ol);
1717
+ function Nl(e) {
1718
+ let t = e.replace(wl, Bl);
1716
1719
  return t.slice(0, 3) === "ms-" && (t = "-" + t), t;
1717
1720
  }
1718
- function Ol(e) {
1721
+ function Bl(e) {
1719
1722
  return "-" + e.toLowerCase();
1720
1723
  }
1721
- const mn = {
1724
+ const gn = {
1722
1725
  action: ["form"],
1723
1726
  cite: ["blockquote", "del", "ins", "q"],
1724
1727
  data: ["object"],
@@ -1740,13 +1743,13 @@ const mn = {
1740
1743
  "track",
1741
1744
  "video"
1742
1745
  ]
1743
- }, Ml = {};
1746
+ }, jl = {};
1744
1747
  function Xn(e, t) {
1745
- const n = Ml, r = typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, i = typeof n.includeHtml == "boolean" ? n.includeHtml : !0;
1748
+ const n = jl, r = typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, i = typeof n.includeHtml == "boolean" ? n.includeHtml : !0;
1746
1749
  return wr(e, r, i);
1747
1750
  }
1748
1751
  function wr(e, t, n) {
1749
- if (Nl(e)) {
1752
+ if (Hl(e)) {
1750
1753
  if ("value" in e)
1751
1754
  return e.type === "html" && !n ? "" : e.value;
1752
1755
  if (t && "alt" in e && e.alt)
@@ -1763,7 +1766,7 @@ function St(e, t, n) {
1763
1766
  r[i] = wr(e[i], t, n);
1764
1767
  return r.join("");
1765
1768
  }
1766
- function Nl(e) {
1769
+ function Hl(e) {
1767
1770
  return !!(e && typeof e == "object");
1768
1771
  }
1769
1772
  const Ct = document.createElement("i");
@@ -1790,10 +1793,10 @@ function Sr(e) {
1790
1793
  const t = {};
1791
1794
  let n = -1;
1792
1795
  for (; ++n < e.length; )
1793
- Bl(t, e[n]);
1796
+ Ul(t, e[n]);
1794
1797
  return t;
1795
1798
  }
1796
- function Bl(e, t) {
1799
+ function Ul(e, t) {
1797
1800
  let n;
1798
1801
  for (n in t) {
1799
1802
  const i = (Et.call(e, n) ? e[n] : void 0) || (e[n] = {}), o = t[n];
@@ -1802,7 +1805,7 @@ function Bl(e, t) {
1802
1805
  for (l in o) {
1803
1806
  Et.call(i, l) || (i[l] = []);
1804
1807
  const a = o[l];
1805
- jl(
1808
+ Vl(
1806
1809
  // @ts-expect-error Looks like a list.
1807
1810
  i[l],
1808
1811
  Array.isArray(a) ? a : a ? [a] : []
@@ -1810,7 +1813,7 @@ function Bl(e, t) {
1810
1813
  }
1811
1814
  }
1812
1815
  }
1813
- function jl(e, t) {
1816
+ function Vl(e, t) {
1814
1817
  let n = -1;
1815
1818
  const r = [];
1816
1819
  for (; ++n < t.length; )
@@ -1833,15 +1836,15 @@ function Cr(e, t) {
1833
1836
  function se(e) {
1834
1837
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
1835
1838
  }
1836
- const J = xe(/[A-Za-z]/), G = xe(/[\dA-Za-z]/), Hl = xe(/[#-'*+\--9=?A-Z^-~]/);
1837
- function tn(e) {
1839
+ const J = xe(/[A-Za-z]/), G = xe(/[\dA-Za-z]/), $l = xe(/[#-'*+\--9=?A-Z^-~]/);
1840
+ function rn(e) {
1838
1841
  return (
1839
1842
  // Special whitespace codes (which have negative values), C0 and Control
1840
1843
  // character DEL
1841
1844
  e !== null && (e < 32 || e === 127)
1842
1845
  );
1843
1846
  }
1844
- const _n = xe(/\d/), Ul = xe(/[\dA-Fa-f]/), Vl = xe(/[!-/:-@[-`{-~]/);
1847
+ const _n = xe(/\d/), ql = xe(/[\dA-Fa-f]/), Wl = xe(/[!-/:-@[-`{-~]/);
1845
1848
  function v(e) {
1846
1849
  return e !== null && e < -2;
1847
1850
  }
@@ -1851,7 +1854,7 @@ function U(e) {
1851
1854
  function _(e) {
1852
1855
  return e === -2 || e === -1 || e === 32;
1853
1856
  }
1854
- const un = xe(new RegExp("\\p{P}|\\p{S}", "u")), Ee = xe(/\s/);
1857
+ const sn = xe(new RegExp("\\p{P}|\\p{S}", "u")), Ee = xe(/\s/);
1855
1858
  function xe(e) {
1856
1859
  return t;
1857
1860
  function t(n) {
@@ -1888,10 +1891,10 @@ function O(e, t, n, r) {
1888
1891
  return _(u) && o++ < i ? (e.consume(u), a) : (e.exit(n), t(u));
1889
1892
  }
1890
1893
  }
1891
- const $l = {
1892
- tokenize: ql
1894
+ const Yl = {
1895
+ tokenize: Xl
1893
1896
  };
1894
- function ql(e) {
1897
+ function Xl(e) {
1895
1898
  const t = e.attempt(this.parser.constructs.contentInitial, r, i);
1896
1899
  let n;
1897
1900
  return t;
@@ -1920,12 +1923,12 @@ function ql(e) {
1920
1923
  return v(a) ? (e.consume(a), e.exit("chunkText"), o) : (e.consume(a), l);
1921
1924
  }
1922
1925
  }
1923
- const Wl = {
1924
- tokenize: Yl
1926
+ const Ql = {
1927
+ tokenize: Gl
1925
1928
  }, It = {
1926
- tokenize: Xl
1929
+ tokenize: Kl
1927
1930
  };
1928
- function Yl(e) {
1931
+ function Gl(e) {
1929
1932
  const t = this, n = [];
1930
1933
  let r = 0, i, o, l;
1931
1934
  return a;
@@ -2037,16 +2040,16 @@ function Yl(e) {
2037
2040
  i.write([null]), o = void 0, i = void 0, t.containerState._closeFlow = void 0;
2038
2041
  }
2039
2042
  }
2040
- function Xl(e, t, n) {
2043
+ function Kl(e, t, n) {
2041
2044
  return O(e, e.attempt(this.parser.constructs.document, t, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
2042
2045
  }
2043
2046
  function Le(e) {
2044
2047
  if (e === null || U(e) || Ee(e))
2045
2048
  return 1;
2046
- if (un(e))
2049
+ if (sn(e))
2047
2050
  return 2;
2048
2051
  }
2049
- function sn(e, t, n) {
2052
+ function cn(e, t, n) {
2050
2053
  const r = [];
2051
2054
  let i = -1;
2052
2055
  for (; ++i < e.length; ) {
@@ -2057,10 +2060,10 @@ function sn(e, t, n) {
2057
2060
  }
2058
2061
  const Rn = {
2059
2062
  name: "attention",
2060
- resolveAll: Ql,
2061
- tokenize: Gl
2063
+ resolveAll: Jl,
2064
+ tokenize: Zl
2062
2065
  };
2063
- function Ql(e, t) {
2066
+ function Jl(e, t) {
2064
2067
  let n = -1, r, i, o, l, a, u, s, f;
2065
2068
  for (; ++n < e.length; )
2066
2069
  if (e[n][0] === "enter" && e[n][1].type === "attentionSequence" && e[n][1]._close) {
@@ -2107,7 +2110,7 @@ function Ql(e, t) {
2107
2110
  ...l.start
2108
2111
  }, e[n][1].start = {
2109
2112
  ...a.end
2110
- }, s = [], e[r][1].end.offset - e[r][1].start.offset && (s = ie(s, [["enter", e[r][1], t], ["exit", e[r][1], t]])), s = ie(s, [["enter", i, t], ["enter", l, t], ["exit", l, t], ["enter", o, t]]), s = ie(s, sn(t.parser.constructs.insideSpan.null, e.slice(r + 1, n), t)), s = ie(s, [["exit", o, t], ["enter", a, t], ["exit", a, t], ["exit", i, t]]), e[n][1].end.offset - e[n][1].start.offset ? (f = 2, s = ie(s, [["enter", e[n][1], t], ["exit", e[n][1], t]])) : f = 0, re(e, r - 1, n - r + 3, s), n = r + s.length - f - 2;
2113
+ }, s = [], e[r][1].end.offset - e[r][1].start.offset && (s = ie(s, [["enter", e[r][1], t], ["exit", e[r][1], t]])), s = ie(s, [["enter", i, t], ["enter", l, t], ["exit", l, t], ["enter", o, t]]), s = ie(s, cn(t.parser.constructs.insideSpan.null, e.slice(r + 1, n), t)), s = ie(s, [["exit", o, t], ["enter", a, t], ["exit", a, t], ["exit", i, t]]), e[n][1].end.offset - e[n][1].start.offset ? (f = 2, s = ie(s, [["enter", e[n][1], t], ["exit", e[n][1], t]])) : f = 0, re(e, r - 1, n - r + 3, s), n = r + s.length - f - 2;
2111
2114
  break;
2112
2115
  }
2113
2116
  }
@@ -2115,7 +2118,7 @@ function Ql(e, t) {
2115
2118
  e[n][1].type === "attentionSequence" && (e[n][1].type = "data");
2116
2119
  return e;
2117
2120
  }
2118
- function Gl(e, t) {
2121
+ function Zl(e, t) {
2119
2122
  const n = this.parser.constructs.attentionMarkers.null, r = this.previous, i = Le(r);
2120
2123
  let o;
2121
2124
  return l;
@@ -2132,11 +2135,11 @@ function Gl(e, t) {
2132
2135
  function At(e, t) {
2133
2136
  e.column += t, e.offset += t, e._bufferIndex += t;
2134
2137
  }
2135
- const Kl = {
2138
+ const eo = {
2136
2139
  name: "autolink",
2137
- tokenize: Jl
2140
+ tokenize: no
2138
2141
  };
2139
- function Jl(e, t, n) {
2142
+ function no(e, t, n) {
2140
2143
  let r = 0;
2141
2144
  return i;
2142
2145
  function i(h) {
@@ -2152,10 +2155,10 @@ function Jl(e, t, n) {
2152
2155
  return h === 58 ? (e.consume(h), r = 0, u) : (h === 43 || h === 45 || h === 46 || G(h)) && r++ < 32 ? (e.consume(h), a) : (r = 0, s(h));
2153
2156
  }
2154
2157
  function u(h) {
2155
- return h === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), t) : h === null || h === 32 || h === 60 || tn(h) ? n(h) : (e.consume(h), u);
2158
+ return h === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), t) : h === null || h === 32 || h === 60 || rn(h) ? n(h) : (e.consume(h), u);
2156
2159
  }
2157
2160
  function s(h) {
2158
- return h === 64 ? (e.consume(h), f) : Hl(h) ? (e.consume(h), s) : n(h);
2161
+ return h === 64 ? (e.consume(h), f) : $l(h) ? (e.consume(h), s) : n(h);
2159
2162
  }
2160
2163
  function f(h) {
2161
2164
  return G(h) ? c(h) : n(h);
@@ -2171,11 +2174,11 @@ function Jl(e, t, n) {
2171
2174
  return n(h);
2172
2175
  }
2173
2176
  }
2174
- const We = {
2177
+ const Ye = {
2175
2178
  partial: !0,
2176
- tokenize: Zl
2179
+ tokenize: to
2177
2180
  };
2178
- function Zl(e, t, n) {
2181
+ function to(e, t, n) {
2179
2182
  return r;
2180
2183
  function r(o) {
2181
2184
  return _(o) ? O(e, i, "linePrefix")(o) : i(o);
@@ -2186,13 +2189,13 @@ function Zl(e, t, n) {
2186
2189
  }
2187
2190
  const Er = {
2188
2191
  continuation: {
2189
- tokenize: no
2192
+ tokenize: io
2190
2193
  },
2191
- exit: to,
2194
+ exit: lo,
2192
2195
  name: "blockQuote",
2193
- tokenize: eo
2196
+ tokenize: ro
2194
2197
  };
2195
- function eo(e, t, n) {
2198
+ function ro(e, t, n) {
2196
2199
  const r = this;
2197
2200
  return i;
2198
2201
  function i(l) {
@@ -2208,7 +2211,7 @@ function eo(e, t, n) {
2208
2211
  return _(l) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(l), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(l));
2209
2212
  }
2210
2213
  }
2211
- function no(e, t, n) {
2214
+ function io(e, t, n) {
2212
2215
  const r = this;
2213
2216
  return i;
2214
2217
  function i(l) {
@@ -2218,27 +2221,27 @@ function no(e, t, n) {
2218
2221
  return e.attempt(Er, t, n)(l);
2219
2222
  }
2220
2223
  }
2221
- function to(e) {
2224
+ function lo(e) {
2222
2225
  e.exit("blockQuote");
2223
2226
  }
2224
2227
  const Ir = {
2225
2228
  name: "characterEscape",
2226
- tokenize: ro
2229
+ tokenize: oo
2227
2230
  };
2228
- function ro(e, t, n) {
2231
+ function oo(e, t, n) {
2229
2232
  return r;
2230
2233
  function r(o) {
2231
2234
  return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(o), e.exit("escapeMarker"), i;
2232
2235
  }
2233
2236
  function i(o) {
2234
- return Vl(o) ? (e.enter("characterEscapeValue"), e.consume(o), e.exit("characterEscapeValue"), e.exit("characterEscape"), t) : n(o);
2237
+ return Wl(o) ? (e.enter("characterEscapeValue"), e.consume(o), e.exit("characterEscapeValue"), e.exit("characterEscape"), t) : n(o);
2235
2238
  }
2236
2239
  }
2237
2240
  const Ar = {
2238
2241
  name: "characterReference",
2239
- tokenize: io
2242
+ tokenize: ao
2240
2243
  };
2241
- function io(e, t, n) {
2244
+ function ao(e, t, n) {
2242
2245
  const r = this;
2243
2246
  let i = 0, o, l;
2244
2247
  return a;
@@ -2249,7 +2252,7 @@ function io(e, t, n) {
2249
2252
  return c === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(c), e.exit("characterReferenceMarkerNumeric"), s) : (e.enter("characterReferenceValue"), o = 31, l = G, f(c));
2250
2253
  }
2251
2254
  function s(c) {
2252
- return c === 88 || c === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(c), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, l = Ul, f) : (e.enter("characterReferenceValue"), o = 7, l = _n, f(c));
2255
+ return c === 88 || c === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(c), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, l = ql, f) : (e.enter("characterReferenceValue"), o = 7, l = _n, f(c));
2253
2256
  }
2254
2257
  function f(c) {
2255
2258
  if (c === 59 && i) {
@@ -2261,13 +2264,13 @@ function io(e, t, n) {
2261
2264
  }
2262
2265
  const Tt = {
2263
2266
  partial: !0,
2264
- tokenize: oo
2267
+ tokenize: so
2265
2268
  }, Pt = {
2266
2269
  concrete: !0,
2267
2270
  name: "codeFenced",
2268
- tokenize: lo
2271
+ tokenize: uo
2269
2272
  };
2270
- function lo(e, t, n) {
2273
+ function uo(e, t, n) {
2271
2274
  const r = this, i = {
2272
2275
  partial: !0,
2273
2276
  tokenize: F
@@ -2338,7 +2341,7 @@ function lo(e, t, n) {
2338
2341
  }
2339
2342
  }
2340
2343
  }
2341
- function oo(e, t, n) {
2344
+ function so(e, t, n) {
2342
2345
  const r = this;
2343
2346
  return i;
2344
2347
  function i(l) {
@@ -2348,14 +2351,14 @@ function oo(e, t, n) {
2348
2351
  return r.parser.lazy[r.now().line] ? n(l) : t(l);
2349
2352
  }
2350
2353
  }
2351
- const gn = {
2354
+ const dn = {
2352
2355
  name: "codeIndented",
2353
- tokenize: uo
2354
- }, ao = {
2356
+ tokenize: fo
2357
+ }, co = {
2355
2358
  partial: !0,
2356
- tokenize: so
2359
+ tokenize: ho
2357
2360
  };
2358
- function uo(e, t, n) {
2361
+ function fo(e, t, n) {
2359
2362
  const r = this;
2360
2363
  return i;
2361
2364
  function i(s) {
@@ -2366,7 +2369,7 @@ function uo(e, t, n) {
2366
2369
  return f && f[1].type === "linePrefix" && f[2].sliceSerialize(f[1], !0).length >= 4 ? l(s) : n(s);
2367
2370
  }
2368
2371
  function l(s) {
2369
- return s === null ? u(s) : v(s) ? e.attempt(ao, l, u)(s) : (e.enter("codeFlowValue"), a(s));
2372
+ return s === null ? u(s) : v(s) ? e.attempt(co, l, u)(s) : (e.enter("codeFlowValue"), a(s));
2370
2373
  }
2371
2374
  function a(s) {
2372
2375
  return s === null || v(s) ? (e.exit("codeFlowValue"), l(s)) : (e.consume(s), a);
@@ -2375,7 +2378,7 @@ function uo(e, t, n) {
2375
2378
  return e.exit("codeIndented"), t(s);
2376
2379
  }
2377
2380
  }
2378
- function so(e, t, n) {
2381
+ function ho(e, t, n) {
2379
2382
  const r = this;
2380
2383
  return i;
2381
2384
  function i(l) {
@@ -2386,13 +2389,13 @@ function so(e, t, n) {
2386
2389
  return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? t(l) : v(l) ? i(l) : n(l);
2387
2390
  }
2388
2391
  }
2389
- const co = {
2392
+ const po = {
2390
2393
  name: "codeText",
2391
- previous: ho,
2392
- resolve: fo,
2393
- tokenize: po
2394
+ previous: go,
2395
+ resolve: mo,
2396
+ tokenize: yo
2394
2397
  };
2395
- function fo(e) {
2398
+ function mo(e) {
2396
2399
  let t = e.length - 4, n = 3, r, i;
2397
2400
  if ((e[n][1].type === "lineEnding" || e[n][1].type === "space") && (e[t][1].type === "lineEnding" || e[t][1].type === "space")) {
2398
2401
  for (r = n; ++r < t; )
@@ -2405,10 +2408,10 @@ function fo(e) {
2405
2408
  i === void 0 ? r !== t && e[r][1].type !== "lineEnding" && (i = r) : (r === t || e[r][1].type === "lineEnding") && (e[i][1].type = "codeTextData", r !== i + 2 && (e[i][1].end = e[r - 1][1].end, e.splice(i + 2, r - i - 2), t -= r - i - 2, r = i + 2), i = void 0);
2406
2409
  return e;
2407
2410
  }
2408
- function ho(e) {
2411
+ function go(e) {
2409
2412
  return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
2410
2413
  }
2411
- function po(e, t, n) {
2414
+ function yo(e, t, n) {
2412
2415
  let r = 0, i, o;
2413
2416
  return l;
2414
2417
  function l(c) {
@@ -2427,7 +2430,7 @@ function po(e, t, n) {
2427
2430
  return c === 96 ? (e.consume(c), i++, f) : i === r ? (e.exit("codeTextSequence"), e.exit("codeText"), t(c)) : (o.type = "codeTextData", s(c));
2428
2431
  }
2429
2432
  }
2430
- class mo {
2433
+ class ko {
2431
2434
  /**
2432
2435
  * @param {ReadonlyArray<T> | null | undefined} [initial]
2433
2436
  * Initial items (optional).
@@ -2602,7 +2605,7 @@ function Ne(e, t) {
2602
2605
  function Tr(e) {
2603
2606
  const t = {};
2604
2607
  let n = -1, r, i, o, l, a, u, s;
2605
- const f = new mo(e);
2608
+ const f = new ko(e);
2606
2609
  for (; ++n < f.length; ) {
2607
2610
  for (; n in t; )
2608
2611
  n = t[n];
@@ -2610,7 +2613,7 @@ function Tr(e) {
2610
2613
  for (; ++o < u.length && u[o][1].type !== "content"; )
2611
2614
  u[o][1].type === "chunkText" && (u[o][1]._isInFirstContentOfListItem = !0, o++);
2612
2615
  if (r[0] === "enter")
2613
- r[1].contentType && (Object.assign(t, go(f, n)), n = t[n], s = !0);
2616
+ r[1].contentType && (Object.assign(t, xo(f, n)), n = t[n], s = !0);
2614
2617
  else if (r[1]._container) {
2615
2618
  for (o = n, i = void 0; o--; )
2616
2619
  if (l = f.get(o), l[1].type === "lineEnding" || l[1].type === "lineEndingBlank")
@@ -2623,7 +2626,7 @@ function Tr(e) {
2623
2626
  }
2624
2627
  return re(e, 0, Number.POSITIVE_INFINITY, f.slice(0)), !s;
2625
2628
  }
2626
- function go(e, t) {
2629
+ function xo(e, t) {
2627
2630
  const n = e.get(t)[1], r = e.get(t)[2];
2628
2631
  let i = t - 1;
2629
2632
  const o = [];
@@ -2648,17 +2651,17 @@ function go(e, t) {
2648
2651
  s[d + u[p][0]] = d + u[p][1], d += u[p][1] - u[p][0] - 1;
2649
2652
  return s;
2650
2653
  }
2651
- const yo = {
2652
- resolve: xo,
2653
- tokenize: bo
2654
- }, ko = {
2654
+ const bo = {
2655
+ resolve: So,
2656
+ tokenize: Co
2657
+ }, wo = {
2655
2658
  partial: !0,
2656
- tokenize: wo
2659
+ tokenize: Eo
2657
2660
  };
2658
- function xo(e) {
2661
+ function So(e) {
2659
2662
  return Tr(e), e;
2660
2663
  }
2661
- function bo(e, t) {
2664
+ function Co(e, t) {
2662
2665
  let n;
2663
2666
  return r;
2664
2667
  function r(a) {
@@ -2667,7 +2670,7 @@ function bo(e, t) {
2667
2670
  }), i(a);
2668
2671
  }
2669
2672
  function i(a) {
2670
- return a === null ? o(a) : v(a) ? e.check(ko, l, o)(a) : (e.consume(a), i);
2673
+ return a === null ? o(a) : v(a) ? e.check(wo, l, o)(a) : (e.consume(a), i);
2671
2674
  }
2672
2675
  function o(a) {
2673
2676
  return e.exit("chunkContent"), e.exit("content"), t(a);
@@ -2679,7 +2682,7 @@ function bo(e, t) {
2679
2682
  }), n = n.next, i;
2680
2683
  }
2681
2684
  }
2682
- function wo(e, t, n) {
2685
+ function Eo(e, t, n) {
2683
2686
  const r = this;
2684
2687
  return i;
2685
2688
  function i(l) {
@@ -2697,7 +2700,7 @@ function Pr(e, t, n, r, i, o, l, a, u) {
2697
2700
  let f = 0;
2698
2701
  return c;
2699
2702
  function c(y) {
2700
- return y === 60 ? (e.enter(r), e.enter(i), e.enter(o), e.consume(y), e.exit(o), p) : y === null || y === 32 || y === 41 || tn(y) ? n(y) : (e.enter(r), e.enter(l), e.enter(a), e.enter("chunkString", {
2703
+ return y === 60 ? (e.enter(r), e.enter(i), e.enter(o), e.consume(y), e.exit(o), p) : y === null || y === 32 || y === 41 || rn(y) ? n(y) : (e.enter(r), e.enter(l), e.enter(a), e.enter("chunkString", {
2701
2704
  contentType: "string"
2702
2705
  }), x(y));
2703
2706
  }
@@ -2713,7 +2716,7 @@ function Pr(e, t, n, r, i, o, l, a, u) {
2713
2716
  return y === 60 || y === 62 || y === 92 ? (e.consume(y), h) : h(y);
2714
2717
  }
2715
2718
  function x(y) {
2716
- return !f && (y === null || y === 41 || U(y)) ? (e.exit("chunkString"), e.exit(a), e.exit(l), e.exit(r), t(y)) : f < s && y === 40 ? (e.consume(y), f++, x) : y === 41 ? (e.consume(y), f--, x) : y === null || y === 32 || y === 40 || tn(y) ? n(y) : (e.consume(y), y === 92 ? C : x);
2719
+ return !f && (y === null || y === 41 || U(y)) ? (e.exit("chunkString"), e.exit(a), e.exit(l), e.exit(r), t(y)) : f < s && y === 40 ? (e.consume(y), f++, x) : y === 41 ? (e.consume(y), f--, x) : y === null || y === 32 || y === 40 || rn(y) ? n(y) : (e.consume(y), y === 92 ? C : x);
2717
2720
  }
2718
2721
  function C(y) {
2719
2722
  return y === 40 || y === 41 || y === 92 ? (e.consume(y), x) : x(y);
@@ -2764,21 +2767,21 @@ function zr(e, t, n, r, i, o) {
2764
2767
  return p === l || p === 92 ? (e.consume(p), f) : f(p);
2765
2768
  }
2766
2769
  }
2767
- function He(e, t) {
2770
+ function Ue(e, t) {
2768
2771
  let n;
2769
2772
  return r;
2770
2773
  function r(i) {
2771
2774
  return v(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : _(i) ? O(e, r, n ? "linePrefix" : "lineSuffix")(i) : t(i);
2772
2775
  }
2773
2776
  }
2774
- const So = {
2777
+ const Io = {
2775
2778
  name: "definition",
2776
- tokenize: Eo
2777
- }, Co = {
2779
+ tokenize: To
2780
+ }, Ao = {
2778
2781
  partial: !0,
2779
- tokenize: Io
2782
+ tokenize: Po
2780
2783
  };
2781
- function Eo(e, t, n) {
2784
+ function To(e, t, n) {
2782
2785
  const r = this;
2783
2786
  let i;
2784
2787
  return o;
@@ -2801,7 +2804,7 @@ function Eo(e, t, n) {
2801
2804
  return i = se(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), h === 58 ? (e.enter("definitionMarker"), e.consume(h), e.exit("definitionMarker"), u) : n(h);
2802
2805
  }
2803
2806
  function u(h) {
2804
- return U(h) ? He(e, s)(h) : s(h);
2807
+ return U(h) ? Ue(e, s)(h) : s(h);
2805
2808
  }
2806
2809
  function s(h) {
2807
2810
  return Pr(
@@ -2817,7 +2820,7 @@ function Eo(e, t, n) {
2817
2820
  )(h);
2818
2821
  }
2819
2822
  function f(h) {
2820
- return e.attempt(Co, c, c)(h);
2823
+ return e.attempt(Ao, c, c)(h);
2821
2824
  }
2822
2825
  function c(h) {
2823
2826
  return _(h) ? O(e, p, "whitespace")(h) : p(h);
@@ -2826,10 +2829,10 @@ function Eo(e, t, n) {
2826
2829
  return h === null || v(h) ? (e.exit("definition"), r.parser.defined.push(i), t(h)) : n(h);
2827
2830
  }
2828
2831
  }
2829
- function Io(e, t, n) {
2832
+ function Po(e, t, n) {
2830
2833
  return r;
2831
2834
  function r(a) {
2832
- return U(a) ? He(e, i)(a) : n(a);
2835
+ return U(a) ? Ue(e, i)(a) : n(a);
2833
2836
  }
2834
2837
  function i(a) {
2835
2838
  return zr(e, o, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
@@ -2841,11 +2844,11 @@ function Io(e, t, n) {
2841
2844
  return a === null || v(a) ? t(a) : n(a);
2842
2845
  }
2843
2846
  }
2844
- const Ao = {
2847
+ const vo = {
2845
2848
  name: "hardBreakEscape",
2846
- tokenize: To
2849
+ tokenize: zo
2847
2850
  };
2848
- function To(e, t, n) {
2851
+ function zo(e, t, n) {
2849
2852
  return r;
2850
2853
  function r(o) {
2851
2854
  return e.enter("hardBreakEscape"), e.consume(o), i;
@@ -2854,12 +2857,12 @@ function To(e, t, n) {
2854
2857
  return v(o) ? (e.exit("hardBreakEscape"), t(o)) : n(o);
2855
2858
  }
2856
2859
  }
2857
- const Po = {
2860
+ const Do = {
2858
2861
  name: "headingAtx",
2859
- resolve: vo,
2860
- tokenize: zo
2862
+ resolve: Lo,
2863
+ tokenize: Fo
2861
2864
  };
2862
- function vo(e, t) {
2865
+ function Lo(e, t) {
2863
2866
  let n = e.length - 2, r = 3, i, o;
2864
2867
  return e[r][1].type === "whitespace" && (r += 2), n - 2 > r && e[n][1].type === "whitespace" && (n -= 2), e[n][1].type === "atxHeadingSequence" && (r === n - 1 || n - 4 > r && e[n - 2][1].type === "whitespace") && (n -= r + 1 === n ? 2 : 4), n > r && (i = {
2865
2868
  type: "atxHeadingText",
@@ -2872,7 +2875,7 @@ function vo(e, t) {
2872
2875
  contentType: "text"
2873
2876
  }, re(e, r, n - r + 1, [["enter", i, t], ["enter", o, t], ["exit", o, t], ["exit", i, t]])), e;
2874
2877
  }
2875
- function zo(e, t, n) {
2878
+ function Fo(e, t, n) {
2876
2879
  let r = 0;
2877
2880
  return i;
2878
2881
  function i(f) {
@@ -2894,7 +2897,7 @@ function zo(e, t, n) {
2894
2897
  return f === null || f === 35 || U(f) ? (e.exit("atxHeadingText"), a(f)) : (e.consume(f), s);
2895
2898
  }
2896
2899
  }
2897
- const Do = [
2900
+ const _o = [
2898
2901
  "address",
2899
2902
  "article",
2900
2903
  "aside",
@@ -2957,25 +2960,25 @@ const Do = [
2957
2960
  "tr",
2958
2961
  "track",
2959
2962
  "ul"
2960
- ], vt = ["pre", "script", "style", "textarea"], Lo = {
2963
+ ], vt = ["pre", "script", "style", "textarea"], Ro = {
2961
2964
  concrete: !0,
2962
2965
  name: "htmlFlow",
2963
- resolveTo: Ro,
2964
- tokenize: Oo
2965
- }, Fo = {
2966
+ resolveTo: No,
2967
+ tokenize: Bo
2968
+ }, Oo = {
2966
2969
  partial: !0,
2967
- tokenize: No
2968
- }, _o = {
2970
+ tokenize: Ho
2971
+ }, Mo = {
2969
2972
  partial: !0,
2970
- tokenize: Mo
2973
+ tokenize: jo
2971
2974
  };
2972
- function Ro(e) {
2975
+ function No(e) {
2973
2976
  let t = e.length;
2974
2977
  for (; t-- && !(e[t][0] === "enter" && e[t][1].type === "htmlFlow"); )
2975
2978
  ;
2976
2979
  return t > 1 && e[t - 2][1].type === "linePrefix" && (e[t][1].start = e[t - 2][1].start, e[t + 1][1].start = e[t - 2][1].start, e.splice(t - 2, 2)), e;
2977
2980
  }
2978
- function Oo(e, t, n) {
2981
+ function Bo(e, t, n) {
2979
2982
  const r = this;
2980
2983
  let i, o, l, a, u;
2981
2984
  return s;
@@ -3004,7 +3007,7 @@ function Oo(e, t, n) {
3004
3007
  function C(g) {
3005
3008
  if (g === null || g === 47 || g === 62 || U(g)) {
3006
3009
  const ae = g === 47, be = l.toLowerCase();
3007
- return !ae && !o && vt.includes(be) ? (i = 1, r.interrupt ? t(g) : P(g)) : Do.includes(l.toLowerCase()) ? (i = 6, ae ? (e.consume(g), y) : r.interrupt ? t(g) : P(g)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(g) : o ? A(g) : E(g));
3010
+ return !ae && !o && vt.includes(be) ? (i = 1, r.interrupt ? t(g) : P(g)) : _o.includes(l.toLowerCase()) ? (i = 6, ae ? (e.consume(g), y) : r.interrupt ? t(g) : P(g)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(g) : o ? A(g) : E(g));
3008
3011
  }
3009
3012
  return g === 45 || G(g) ? (e.consume(g), l += String.fromCharCode(g), C) : n(g);
3010
3013
  }
@@ -3042,10 +3045,10 @@ function Oo(e, t, n) {
3042
3045
  return g === null || v(g) ? P(g) : _(g) ? (e.consume(g), T) : n(g);
3043
3046
  }
3044
3047
  function P(g) {
3045
- return g === 45 && i === 2 ? (e.consume(g), Q) : g === 60 && i === 1 ? (e.consume(g), Y) : g === 62 && i === 4 ? (e.consume(g), oe) : g === 63 && i === 3 ? (e.consume(g), m) : g === 93 && i === 5 ? (e.consume(g), he) : v(g) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Fo, pe, j)(g)) : g === null || v(g) ? (e.exit("htmlFlowData"), j(g)) : (e.consume(g), P);
3048
+ return g === 45 && i === 2 ? (e.consume(g), Q) : g === 60 && i === 1 ? (e.consume(g), Y) : g === 62 && i === 4 ? (e.consume(g), oe) : g === 63 && i === 3 ? (e.consume(g), m) : g === 93 && i === 5 ? (e.consume(g), he) : v(g) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Oo, pe, j)(g)) : g === null || v(g) ? (e.exit("htmlFlowData"), j(g)) : (e.consume(g), P);
3046
3049
  }
3047
3050
  function j(g) {
3048
- return e.check(_o, q, pe)(g);
3051
+ return e.check(Mo, q, pe)(g);
3049
3052
  }
3050
3053
  function q(g) {
3051
3054
  return e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"), N;
@@ -3079,7 +3082,7 @@ function Oo(e, t, n) {
3079
3082
  return e.exit("htmlFlow"), t(g);
3080
3083
  }
3081
3084
  }
3082
- function Mo(e, t, n) {
3085
+ function jo(e, t, n) {
3083
3086
  const r = this;
3084
3087
  return i;
3085
3088
  function i(l) {
@@ -3089,17 +3092,17 @@ function Mo(e, t, n) {
3089
3092
  return r.parser.lazy[r.now().line] ? n(l) : t(l);
3090
3093
  }
3091
3094
  }
3092
- function No(e, t, n) {
3095
+ function Ho(e, t, n) {
3093
3096
  return r;
3094
3097
  function r(i) {
3095
- return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(We, t, n);
3098
+ return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(Ye, t, n);
3096
3099
  }
3097
3100
  }
3098
- const Bo = {
3101
+ const Uo = {
3099
3102
  name: "htmlText",
3100
- tokenize: jo
3103
+ tokenize: Vo
3101
3104
  };
3102
- function jo(e, t, n) {
3105
+ function Vo(e, t, n) {
3103
3106
  const r = this;
3104
3107
  let i, o, l;
3105
3108
  return a;
@@ -3194,17 +3197,17 @@ function jo(e, t, n) {
3194
3197
  }
3195
3198
  const Gn = {
3196
3199
  name: "labelEnd",
3197
- resolveAll: $o,
3198
- resolveTo: qo,
3199
- tokenize: Wo
3200
- }, Ho = {
3201
- tokenize: Yo
3202
- }, Uo = {
3203
- tokenize: Xo
3204
- }, Vo = {
3200
+ resolveAll: Yo,
3201
+ resolveTo: Xo,
3205
3202
  tokenize: Qo
3203
+ }, $o = {
3204
+ tokenize: Go
3205
+ }, qo = {
3206
+ tokenize: Ko
3207
+ }, Wo = {
3208
+ tokenize: Jo
3206
3209
  };
3207
- function $o(e) {
3210
+ function Yo(e) {
3208
3211
  let t = -1;
3209
3212
  const n = [];
3210
3213
  for (; ++t < e.length; ) {
@@ -3216,7 +3219,7 @@ function $o(e) {
3216
3219
  }
3217
3220
  return e.length !== n.length && re(e, 0, e.length, n), e;
3218
3221
  }
3219
- function qo(e, t) {
3222
+ function Xo(e, t) {
3220
3223
  let n = e.length, r = 0, i, o, l, a;
3221
3224
  for (; n--; )
3222
3225
  if (i = e[n][1], o) {
@@ -3254,9 +3257,9 @@ function qo(e, t) {
3254
3257
  ...e[l - 2][1].start
3255
3258
  }
3256
3259
  };
3257
- return a = [["enter", u, t], ["enter", s, t]], a = ie(a, e.slice(o + 1, o + r + 3)), a = ie(a, [["enter", f, t]]), a = ie(a, sn(t.parser.constructs.insideSpan.null, e.slice(o + r + 4, l - 3), t)), a = ie(a, [["exit", f, t], e[l - 2], e[l - 1], ["exit", s, t]]), a = ie(a, e.slice(l + 1)), a = ie(a, [["exit", u, t]]), re(e, o, e.length, a), e;
3260
+ return a = [["enter", u, t], ["enter", s, t]], a = ie(a, e.slice(o + 1, o + r + 3)), a = ie(a, [["enter", f, t]]), a = ie(a, cn(t.parser.constructs.insideSpan.null, e.slice(o + r + 4, l - 3), t)), a = ie(a, [["exit", f, t], e[l - 2], e[l - 1], ["exit", s, t]]), a = ie(a, e.slice(l + 1)), a = ie(a, [["exit", u, t]]), re(e, o, e.length, a), e;
3258
3261
  }
3259
- function Wo(e, t, n) {
3262
+ function Qo(e, t, n) {
3260
3263
  const r = this;
3261
3264
  let i = r.events.length, o, l;
3262
3265
  for (; i--; )
@@ -3272,10 +3275,10 @@ function Wo(e, t, n) {
3272
3275
  }))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(p), e.exit("labelMarker"), e.exit("labelEnd"), u) : n(p);
3273
3276
  }
3274
3277
  function u(p) {
3275
- return p === 40 ? e.attempt(Ho, f, l ? f : c)(p) : p === 91 ? e.attempt(Uo, f, l ? s : c)(p) : l ? f(p) : c(p);
3278
+ return p === 40 ? e.attempt($o, f, l ? f : c)(p) : p === 91 ? e.attempt(qo, f, l ? s : c)(p) : l ? f(p) : c(p);
3276
3279
  }
3277
3280
  function s(p) {
3278
- return e.attempt(Vo, f, c)(p);
3281
+ return e.attempt(Wo, f, c)(p);
3279
3282
  }
3280
3283
  function f(p) {
3281
3284
  return t(p);
@@ -3284,19 +3287,19 @@ function Wo(e, t, n) {
3284
3287
  return o._balanced = !0, n(p);
3285
3288
  }
3286
3289
  }
3287
- function Yo(e, t, n) {
3290
+ function Go(e, t, n) {
3288
3291
  return r;
3289
3292
  function r(c) {
3290
3293
  return e.enter("resource"), e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), i;
3291
3294
  }
3292
3295
  function i(c) {
3293
- return U(c) ? He(e, o)(c) : o(c);
3296
+ return U(c) ? Ue(e, o)(c) : o(c);
3294
3297
  }
3295
3298
  function o(c) {
3296
3299
  return c === 41 ? f(c) : Pr(e, l, a, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(c);
3297
3300
  }
3298
3301
  function l(c) {
3299
- return U(c) ? He(e, u)(c) : f(c);
3302
+ return U(c) ? Ue(e, u)(c) : f(c);
3300
3303
  }
3301
3304
  function a(c) {
3302
3305
  return n(c);
@@ -3305,13 +3308,13 @@ function Yo(e, t, n) {
3305
3308
  return c === 34 || c === 39 || c === 40 ? zr(e, s, n, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(c) : f(c);
3306
3309
  }
3307
3310
  function s(c) {
3308
- return U(c) ? He(e, f)(c) : f(c);
3311
+ return U(c) ? Ue(e, f)(c) : f(c);
3309
3312
  }
3310
3313
  function f(c) {
3311
3314
  return c === 41 ? (e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), e.exit("resource"), t) : n(c);
3312
3315
  }
3313
3316
  }
3314
- function Xo(e, t, n) {
3317
+ function Ko(e, t, n) {
3315
3318
  const r = this;
3316
3319
  return i;
3317
3320
  function i(a) {
@@ -3324,7 +3327,7 @@ function Xo(e, t, n) {
3324
3327
  return n(a);
3325
3328
  }
3326
3329
  }
3327
- function Qo(e, t, n) {
3330
+ function Jo(e, t, n) {
3328
3331
  return r;
3329
3332
  function r(o) {
3330
3333
  return e.enter("reference"), e.enter("referenceMarker"), e.consume(o), e.exit("referenceMarker"), i;
@@ -3333,12 +3336,12 @@ function Qo(e, t, n) {
3333
3336
  return o === 93 ? (e.enter("referenceMarker"), e.consume(o), e.exit("referenceMarker"), e.exit("reference"), t) : n(o);
3334
3337
  }
3335
3338
  }
3336
- const Go = {
3339
+ const Zo = {
3337
3340
  name: "labelStartImage",
3338
3341
  resolveAll: Gn.resolveAll,
3339
- tokenize: Ko
3342
+ tokenize: ea
3340
3343
  };
3341
- function Ko(e, t, n) {
3344
+ function ea(e, t, n) {
3342
3345
  const r = this;
3343
3346
  return i;
3344
3347
  function i(a) {
@@ -3351,12 +3354,12 @@ function Ko(e, t, n) {
3351
3354
  return a === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? n(a) : t(a);
3352
3355
  }
3353
3356
  }
3354
- const Jo = {
3357
+ const na = {
3355
3358
  name: "labelStartLink",
3356
3359
  resolveAll: Gn.resolveAll,
3357
- tokenize: Zo
3360
+ tokenize: ta
3358
3361
  };
3359
- function Zo(e, t, n) {
3362
+ function ta(e, t, n) {
3360
3363
  const r = this;
3361
3364
  return i;
3362
3365
  function i(l) {
@@ -3366,21 +3369,21 @@ function Zo(e, t, n) {
3366
3369
  return l === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? n(l) : t(l);
3367
3370
  }
3368
3371
  }
3369
- const dn = {
3372
+ const yn = {
3370
3373
  name: "lineEnding",
3371
- tokenize: ea
3374
+ tokenize: ra
3372
3375
  };
3373
- function ea(e, t) {
3376
+ function ra(e, t) {
3374
3377
  return n;
3375
3378
  function n(r) {
3376
3379
  return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), O(e, t, "linePrefix");
3377
3380
  }
3378
3381
  }
3379
- const Ze = {
3382
+ const en = {
3380
3383
  name: "thematicBreak",
3381
- tokenize: na
3384
+ tokenize: ia
3382
3385
  };
3383
- function na(e, t, n) {
3386
+ function ia(e, t, n) {
3384
3387
  let r = 0, i;
3385
3388
  return o;
3386
3389
  function o(s) {
@@ -3398,19 +3401,19 @@ function na(e, t, n) {
3398
3401
  }
3399
3402
  const Z = {
3400
3403
  continuation: {
3401
- tokenize: la
3404
+ tokenize: ua
3402
3405
  },
3403
- exit: aa,
3406
+ exit: ca,
3404
3407
  name: "list",
3405
- tokenize: ia
3406
- }, ta = {
3408
+ tokenize: aa
3409
+ }, la = {
3407
3410
  partial: !0,
3408
- tokenize: ua
3409
- }, ra = {
3411
+ tokenize: fa
3412
+ }, oa = {
3410
3413
  partial: !0,
3411
- tokenize: oa
3414
+ tokenize: sa
3412
3415
  };
3413
- function ia(e, t, n) {
3416
+ function aa(e, t, n) {
3414
3417
  const r = this, i = r.events[r.events.length - 1];
3415
3418
  let o = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, l = 0;
3416
3419
  return a;
@@ -3420,7 +3423,7 @@ function ia(e, t, n) {
3420
3423
  if (r.containerState.type || (r.containerState.type = d, e.enter(d, {
3421
3424
  _container: !0
3422
3425
  })), d === "listUnordered")
3423
- return e.enter("listItemPrefix"), h === 42 || h === 45 ? e.check(Ze, n, s)(h) : s(h);
3426
+ return e.enter("listItemPrefix"), h === 42 || h === 45 ? e.check(en, n, s)(h) : s(h);
3424
3427
  if (!r.interrupt || h === 49)
3425
3428
  return e.enter("listItemPrefix"), e.enter("listItemValue"), u(h);
3426
3429
  }
@@ -3431,10 +3434,10 @@ function ia(e, t, n) {
3431
3434
  }
3432
3435
  function s(h) {
3433
3436
  return e.enter("listItemMarker"), e.consume(h), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || h, e.check(
3434
- We,
3437
+ Ye,
3435
3438
  // Can’t be empty when interrupting.
3436
3439
  r.interrupt ? n : f,
3437
- e.attempt(ta, p, c)
3440
+ e.attempt(la, p, c)
3438
3441
  );
3439
3442
  }
3440
3443
  function f(h) {
@@ -3447,20 +3450,20 @@ function ia(e, t, n) {
3447
3450
  return r.containerState.size = o + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(h);
3448
3451
  }
3449
3452
  }
3450
- function la(e, t, n) {
3453
+ function ua(e, t, n) {
3451
3454
  const r = this;
3452
- return r.containerState._closeFlow = void 0, e.check(We, i, o);
3455
+ return r.containerState._closeFlow = void 0, e.check(Ye, i, o);
3453
3456
  function i(a) {
3454
3457
  return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, O(e, t, "listItemIndent", r.containerState.size + 1)(a);
3455
3458
  }
3456
3459
  function o(a) {
3457
- return r.containerState.furtherBlankLines || !_(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, l(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(ra, t, l)(a));
3460
+ return r.containerState.furtherBlankLines || !_(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, l(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(oa, t, l)(a));
3458
3461
  }
3459
3462
  function l(a) {
3460
3463
  return r.containerState._closeFlow = !0, r.interrupt = void 0, O(e, e.attempt(Z, t, n), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
3461
3464
  }
3462
3465
  }
3463
- function oa(e, t, n) {
3466
+ function sa(e, t, n) {
3464
3467
  const r = this;
3465
3468
  return O(e, i, "listItemIndent", r.containerState.size + 1);
3466
3469
  function i(o) {
@@ -3468,10 +3471,10 @@ function oa(e, t, n) {
3468
3471
  return l && l[1].type === "listItemIndent" && l[2].sliceSerialize(l[1], !0).length === r.containerState.size ? t(o) : n(o);
3469
3472
  }
3470
3473
  }
3471
- function aa(e) {
3474
+ function ca(e) {
3472
3475
  e.exit(this.containerState.type);
3473
3476
  }
3474
- function ua(e, t, n) {
3477
+ function fa(e, t, n) {
3475
3478
  const r = this;
3476
3479
  return O(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
3477
3480
  function i(o) {
@@ -3481,10 +3484,10 @@ function ua(e, t, n) {
3481
3484
  }
3482
3485
  const zt = {
3483
3486
  name: "setextUnderline",
3484
- resolveTo: sa,
3485
- tokenize: ca
3487
+ resolveTo: ha,
3488
+ tokenize: pa
3486
3489
  };
3487
- function sa(e, t) {
3490
+ function ha(e, t) {
3488
3491
  let n = e.length, r, i, o;
3489
3492
  for (; n--; )
3490
3493
  if (e[n][0] === "enter") {
@@ -3508,7 +3511,7 @@ function sa(e, t) {
3508
3511
  ...e[o][1].end
3509
3512
  }) : e[r][1] = l, e.push(["exit", l, t]), e;
3510
3513
  }
3511
- function ca(e, t, n) {
3514
+ function pa(e, t, n) {
3512
3515
  const r = this;
3513
3516
  let i;
3514
3517
  return o;
@@ -3531,16 +3534,16 @@ function ca(e, t, n) {
3531
3534
  return s === null || v(s) ? (e.exit("setextHeadingLine"), t(s)) : n(s);
3532
3535
  }
3533
3536
  }
3534
- const fa = {
3535
- tokenize: ha
3537
+ const ma = {
3538
+ tokenize: ga
3536
3539
  };
3537
- function ha(e) {
3540
+ function ga(e) {
3538
3541
  const t = this, n = e.attempt(
3539
3542
  // Try to parse a blank line.
3540
- We,
3543
+ Ye,
3541
3544
  r,
3542
3545
  // Try to parse initial flow (essentially, only code).
3543
- e.attempt(this.parser.constructs.flowInitial, i, O(e, e.attempt(this.parser.constructs.flow, i, e.attempt(yo, i)), "linePrefix"))
3546
+ e.attempt(this.parser.constructs.flowInitial, i, O(e, e.attempt(this.parser.constructs.flow, i, e.attempt(bo, i)), "linePrefix"))
3544
3547
  );
3545
3548
  return n;
3546
3549
  function r(o) {
@@ -3558,12 +3561,12 @@ function ha(e) {
3558
3561
  return e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), t.currentConstruct = void 0, n;
3559
3562
  }
3560
3563
  }
3561
- const pa = {
3564
+ const da = {
3562
3565
  resolveAll: Lr()
3563
- }, ma = Dr("string"), ga = Dr("text");
3566
+ }, ya = Dr("string"), ka = Dr("text");
3564
3567
  function Dr(e) {
3565
3568
  return {
3566
- resolveAll: Lr(e === "text" ? da : void 0),
3569
+ resolveAll: Lr(e === "text" ? xa : void 0),
3567
3570
  tokenize: t
3568
3571
  };
3569
3572
  function t(n) {
@@ -3606,7 +3609,7 @@ function Lr(e) {
3606
3609
  return e ? e(n, r) : n;
3607
3610
  }
3608
3611
  }
3609
- function da(e, t) {
3612
+ function xa(e, t) {
3610
3613
  let n = 0;
3611
3614
  for (; ++n <= e.length; )
3612
3615
  if ((n === e.length || e[n][1].type === "lineEnding") && e[n - 1][1].type === "data") {
@@ -3648,7 +3651,7 @@ function da(e, t) {
3648
3651
  }
3649
3652
  return e;
3650
3653
  }
3651
- const ya = {
3654
+ const ba = {
3652
3655
  42: Z,
3653
3656
  43: Z,
3654
3657
  45: Z,
@@ -3663,56 +3666,56 @@ const ya = {
3663
3666
  56: Z,
3664
3667
  57: Z,
3665
3668
  62: Er
3666
- }, ka = {
3667
- 91: So
3668
- }, xa = {
3669
- [-2]: gn,
3670
- [-1]: gn,
3671
- 32: gn
3672
- }, ba = {
3673
- 35: Po,
3674
- 42: Ze,
3675
- 45: [zt, Ze],
3676
- 60: Lo,
3669
+ }, wa = {
3670
+ 91: Io
3671
+ }, Sa = {
3672
+ [-2]: dn,
3673
+ [-1]: dn,
3674
+ 32: dn
3675
+ }, Ca = {
3676
+ 35: Do,
3677
+ 42: en,
3678
+ 45: [zt, en],
3679
+ 60: Ro,
3677
3680
  61: zt,
3678
- 95: Ze,
3681
+ 95: en,
3679
3682
  96: Pt,
3680
3683
  126: Pt
3681
- }, wa = {
3684
+ }, Ea = {
3682
3685
  38: Ar,
3683
3686
  92: Ir
3684
- }, Sa = {
3685
- [-5]: dn,
3686
- [-4]: dn,
3687
- [-3]: dn,
3688
- 33: Go,
3687
+ }, Ia = {
3688
+ [-5]: yn,
3689
+ [-4]: yn,
3690
+ [-3]: yn,
3691
+ 33: Zo,
3689
3692
  38: Ar,
3690
3693
  42: Rn,
3691
- 60: [Kl, Bo],
3692
- 91: Jo,
3693
- 92: [Ao, Ir],
3694
+ 60: [eo, Uo],
3695
+ 91: na,
3696
+ 92: [vo, Ir],
3694
3697
  93: Gn,
3695
3698
  95: Rn,
3696
- 96: co
3697
- }, Ca = {
3698
- null: [Rn, pa]
3699
- }, Ea = {
3699
+ 96: po
3700
+ }, Aa = {
3701
+ null: [Rn, da]
3702
+ }, Ta = {
3700
3703
  null: [42, 95]
3701
- }, Ia = {
3704
+ }, Pa = {
3702
3705
  null: []
3703
- }, Aa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3706
+ }, va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3704
3707
  __proto__: null,
3705
- attentionMarkers: Ea,
3706
- contentInitial: ka,
3707
- disable: Ia,
3708
- document: ya,
3709
- flow: ba,
3710
- flowInitial: xa,
3711
- insideSpan: Ca,
3712
- string: wa,
3713
- text: Sa
3708
+ attentionMarkers: Ta,
3709
+ contentInitial: wa,
3710
+ disable: Pa,
3711
+ document: ba,
3712
+ flow: Ca,
3713
+ flowInitial: Sa,
3714
+ insideSpan: Aa,
3715
+ string: Ea,
3716
+ text: Ia
3714
3717
  }, Symbol.toStringTag, { value: "Module" }));
3715
- function Ta(e, t, n) {
3718
+ function za(e, t, n) {
3716
3719
  let r = {
3717
3720
  _bufferIndex: -1,
3718
3721
  _index: 0,
@@ -3746,13 +3749,13 @@ function Ta(e, t, n) {
3746
3749
  let f = t.tokenize.call(s, u);
3747
3750
  return t.resolveAll && o.push(t), s;
3748
3751
  function c(T) {
3749
- return l = ie(l, T), C(), l[l.length - 1] !== null ? [] : ($(t, 0), s.events = sn(o, s.events, s), s.events);
3752
+ return l = ie(l, T), C(), l[l.length - 1] !== null ? [] : ($(t, 0), s.events = cn(o, s.events, s), s.events);
3750
3753
  }
3751
3754
  function p(T, P) {
3752
- return va(h(T), P);
3755
+ return La(h(T), P);
3753
3756
  }
3754
3757
  function h(T) {
3755
- return Pa(l, T);
3758
+ return Da(l, T);
3756
3759
  }
3757
3760
  function d() {
3758
3761
  const {
@@ -3824,13 +3827,13 @@ function Ta(e, t, n) {
3824
3827
  function oe(X) {
3825
3828
  return Re;
3826
3829
  function Re(ye) {
3827
- const Ae = ye !== null && X[ye], Te = ye !== null && X.null, Xe = [
3830
+ const Ae = ye !== null && X[ye], Te = ye !== null && X.null, Qe = [
3828
3831
  // To do: add more extension tests.
3829
3832
  /* c8 ignore next 2 */
3830
3833
  ...Array.isArray(Ae) ? Ae : Ae ? [Ae] : [],
3831
3834
  ...Array.isArray(Te) ? Te : Te ? [Te] : []
3832
3835
  ];
3833
- return pe(Xe)(ye);
3836
+ return pe(Qe)(ye);
3834
3837
  }
3835
3838
  }
3836
3839
  function pe(X) {
@@ -3875,7 +3878,7 @@ function Ta(e, t, n) {
3875
3878
  r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
3876
3879
  }
3877
3880
  }
3878
- function Pa(e, t) {
3881
+ function Da(e, t) {
3879
3882
  const n = t.start._index, r = t.start._bufferIndex, i = t.end._index, o = t.end._bufferIndex;
3880
3883
  let l;
3881
3884
  if (n === i)
@@ -3889,7 +3892,7 @@ function Pa(e, t) {
3889
3892
  }
3890
3893
  return l;
3891
3894
  }
3892
- function va(e, t) {
3895
+ function La(e, t) {
3893
3896
  let n = -1;
3894
3897
  const r = [];
3895
3898
  let i;
@@ -3929,35 +3932,35 @@ function va(e, t) {
3929
3932
  }
3930
3933
  return r.join("");
3931
3934
  }
3932
- function za(e) {
3935
+ function Fa(e) {
3933
3936
  const r = {
3934
3937
  constructs: (
3935
3938
  /** @type {FullNormalizedExtension} */
3936
- Sr([Aa, ...(e || {}).extensions || []])
3939
+ Sr([va, ...(e || {}).extensions || []])
3937
3940
  ),
3938
- content: i($l),
3941
+ content: i(Yl),
3939
3942
  defined: [],
3940
- document: i(Wl),
3941
- flow: i(fa),
3943
+ document: i(Ql),
3944
+ flow: i(ma),
3942
3945
  lazy: {},
3943
- string: i(ma),
3944
- text: i(ga)
3946
+ string: i(ya),
3947
+ text: i(ka)
3945
3948
  };
3946
3949
  return r;
3947
3950
  function i(o) {
3948
3951
  return l;
3949
3952
  function l(a) {
3950
- return Ta(r, o, a);
3953
+ return za(r, o, a);
3951
3954
  }
3952
3955
  }
3953
3956
  }
3954
- function Da(e) {
3957
+ function _a(e) {
3955
3958
  for (; !Tr(e); )
3956
3959
  ;
3957
3960
  return e;
3958
3961
  }
3959
3962
  const Dt = /[\0\t\n\r]/g;
3960
- function La() {
3963
+ function Ra() {
3961
3964
  let e = 1, t = "", n = !0, r;
3962
3965
  return i;
3963
3966
  function i(o, l, a) {
@@ -3992,11 +3995,11 @@ function La() {
3992
3995
  return a && (r && u.push(-5), t && u.push(t), u.push(null)), u;
3993
3996
  }
3994
3997
  }
3995
- const Fa = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
3996
- function _a(e) {
3997
- return e.replace(Fa, Ra);
3998
+ const Oa = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
3999
+ function Ma(e) {
4000
+ return e.replace(Oa, Na);
3998
4001
  }
3999
- function Ra(e, t, n) {
4002
+ function Na(e, t, n) {
4000
4003
  if (t)
4001
4004
  return t;
4002
4005
  if (n.charCodeAt(0) === 35) {
@@ -4006,10 +4009,10 @@ function Ra(e, t, n) {
4006
4009
  return Qn(n) || e;
4007
4010
  }
4008
4011
  const Fr = {}.hasOwnProperty;
4009
- function Oa(e, t, n) {
4010
- return typeof t != "string" && (n = t, t = void 0), Ma(n)(Da(za(n).document().write(La()(e, t, !0))));
4012
+ function Ba(e, t, n) {
4013
+ return typeof t != "string" && (n = t, t = void 0), ja(n)(_a(Fa(n).document().write(Ra()(e, t, !0))));
4011
4014
  }
4012
- function Ma(e) {
4015
+ function ja(e) {
4013
4016
  const t = {
4014
4017
  transforms: [],
4015
4018
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
@@ -4021,10 +4024,10 @@ function Ma(e) {
4021
4024
  blockQuote: o(Te),
4022
4025
  characterEscape: B,
4023
4026
  characterReference: B,
4024
- codeFenced: o(Xe),
4027
+ codeFenced: o(Qe),
4025
4028
  codeFencedFenceInfo: l,
4026
4029
  codeFencedFenceMeta: l,
4027
- codeIndented: o(Xe, l),
4030
+ codeIndented: o(Qe, l),
4028
4031
  codeText: o(mi, l),
4029
4032
  codeTextData: B,
4030
4033
  data: B,
@@ -4239,7 +4242,7 @@ function Ma(e) {
4239
4242
  const z = this.stack.pop(), R = this.tokenStack.pop();
4240
4243
  if (R)
4241
4244
  R[0].type !== b.type && (I ? I.call(this, b, R[0]) : (R[1] || Lt).call(this, b, R[0]));
4242
- else throw new Error("Cannot close `" + b.type + "` (" + je({
4245
+ else throw new Error("Cannot close `" + b.type + "` (" + He({
4243
4246
  start: b.start,
4244
4247
  end: b.end
4245
4248
  }) + "): it’s not open");
@@ -4362,7 +4365,7 @@ function Ma(e) {
4362
4365
  }
4363
4366
  function le(b) {
4364
4367
  const I = this.sliceSerialize(b), z = this.stack[this.stack.length - 2];
4365
- z.label = _a(I), z.identifier = se(I).toLowerCase();
4368
+ z.label = Ma(I), z.identifier = se(I).toLowerCase();
4366
4369
  }
4367
4370
  function he() {
4368
4371
  const b = this.stack[this.stack.length - 1], I = this.resume(), z = this.stack[this.stack.length - 1];
@@ -4420,7 +4423,7 @@ function Ma(e) {
4420
4423
  children: []
4421
4424
  };
4422
4425
  }
4423
- function Xe() {
4426
+ function Qe() {
4424
4427
  return {
4425
4428
  type: "code",
4426
4429
  lang: null,
@@ -4536,10 +4539,10 @@ function _r(e, t) {
4536
4539
  let n = -1;
4537
4540
  for (; ++n < t.length; ) {
4538
4541
  const r = t[n];
4539
- Array.isArray(r) ? _r(e, r) : Na(e, r);
4542
+ Array.isArray(r) ? _r(e, r) : Ha(e, r);
4540
4543
  }
4541
4544
  }
4542
- function Na(e, t) {
4545
+ function Ha(e, t) {
4543
4546
  let n;
4544
4547
  for (n in t)
4545
4548
  if (Fr.call(t, n))
@@ -4563,22 +4566,22 @@ function Na(e, t) {
4563
4566
  }
4564
4567
  }
4565
4568
  function Lt(e, t) {
4566
- throw e ? new Error("Cannot close `" + e.type + "` (" + je({
4569
+ throw e ? new Error("Cannot close `" + e.type + "` (" + He({
4567
4570
  start: e.start,
4568
4571
  end: e.end
4569
- }) + "): a different token (`" + t.type + "`, " + je({
4572
+ }) + "): a different token (`" + t.type + "`, " + He({
4570
4573
  start: t.start,
4571
4574
  end: t.end
4572
- }) + ") is open") : new Error("Cannot close document, a token (`" + t.type + "`, " + je({
4575
+ }) + ") is open") : new Error("Cannot close document, a token (`" + t.type + "`, " + He({
4573
4576
  start: t.start,
4574
4577
  end: t.end
4575
4578
  }) + ") is still open");
4576
4579
  }
4577
- function Ba(e) {
4580
+ function Ua(e) {
4578
4581
  const t = this;
4579
4582
  t.parser = n;
4580
4583
  function n(r) {
4581
- return Oa(r, {
4584
+ return Ba(r, {
4582
4585
  ...t.data("settings"),
4583
4586
  ...e,
4584
4587
  // Note: these options are not in the readme.
@@ -4589,7 +4592,7 @@ function Ba(e) {
4589
4592
  });
4590
4593
  }
4591
4594
  }
4592
- function ja(e, t) {
4595
+ function Va(e, t) {
4593
4596
  const n = {
4594
4597
  type: "element",
4595
4598
  tagName: "blockquote",
@@ -4598,12 +4601,12 @@ function ja(e, t) {
4598
4601
  };
4599
4602
  return e.patch(t, n), e.applyData(t, n);
4600
4603
  }
4601
- function Ha(e, t) {
4604
+ function $a(e, t) {
4602
4605
  const n = { type: "element", tagName: "br", properties: {}, children: [] };
4603
4606
  return e.patch(t, n), [e.applyData(t, n), { type: "text", value: `
4604
4607
  ` }];
4605
4608
  }
4606
- function Ua(e, t) {
4609
+ function qa(e, t) {
4607
4610
  const n = t.value ? t.value + `
4608
4611
  ` : "", r = {}, i = t.lang ? t.lang.split(/\s+/) : [];
4609
4612
  i.length > 0 && (r.className = ["language-" + i[0]]);
@@ -4615,7 +4618,7 @@ function Ua(e, t) {
4615
4618
  };
4616
4619
  return t.meta && (o.data = { meta: t.meta }), e.patch(t, o), o = e.applyData(t, o), o = { type: "element", tagName: "pre", properties: {}, children: [o] }, e.patch(t, o), o;
4617
4620
  }
4618
- function Va(e, t) {
4621
+ function Wa(e, t) {
4619
4622
  const n = {
4620
4623
  type: "element",
4621
4624
  tagName: "del",
@@ -4624,7 +4627,7 @@ function Va(e, t) {
4624
4627
  };
4625
4628
  return e.patch(t, n), e.applyData(t, n);
4626
4629
  }
4627
- function $a(e, t) {
4630
+ function Ya(e, t) {
4628
4631
  const n = {
4629
4632
  type: "element",
4630
4633
  tagName: "em",
@@ -4633,7 +4636,7 @@ function $a(e, t) {
4633
4636
  };
4634
4637
  return e.patch(t, n), e.applyData(t, n);
4635
4638
  }
4636
- function qa(e, t) {
4639
+ function Xa(e, t) {
4637
4640
  const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), i = _e(r.toLowerCase()), o = e.footnoteOrder.indexOf(r);
4638
4641
  let l, a = e.footnoteCounts.get(r);
4639
4642
  a === void 0 ? (a = 0, e.footnoteOrder.push(r), l = e.footnoteOrder.length) : l = o + 1, a += 1, e.footnoteCounts.set(r, a);
@@ -4657,7 +4660,7 @@ function qa(e, t) {
4657
4660
  };
4658
4661
  return e.patch(t, s), e.applyData(t, s);
4659
4662
  }
4660
- function Wa(e, t) {
4663
+ function Qa(e, t) {
4661
4664
  const n = {
4662
4665
  type: "element",
4663
4666
  tagName: "h" + t.depth,
@@ -4666,7 +4669,7 @@ function Wa(e, t) {
4666
4669
  };
4667
4670
  return e.patch(t, n), e.applyData(t, n);
4668
4671
  }
4669
- function Ya(e, t) {
4672
+ function Ga(e, t) {
4670
4673
  if (e.options.allowDangerousHtml) {
4671
4674
  const n = { type: "raw", value: t.value };
4672
4675
  return e.patch(t, n), e.applyData(t, n);
@@ -4682,7 +4685,7 @@ function Rr(e, t) {
4682
4685
  const l = i[i.length - 1];
4683
4686
  return l && l.type === "text" ? l.value += r : i.push({ type: "text", value: r }), i;
4684
4687
  }
4685
- function Xa(e, t) {
4688
+ function Ka(e, t) {
4686
4689
  const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
4687
4690
  if (!r)
4688
4691
  return Rr(e, t);
@@ -4691,13 +4694,13 @@ function Xa(e, t) {
4691
4694
  const o = { type: "element", tagName: "img", properties: i, children: [] };
4692
4695
  return e.patch(t, o), e.applyData(t, o);
4693
4696
  }
4694
- function Qa(e, t) {
4697
+ function Ja(e, t) {
4695
4698
  const n = { src: _e(t.url) };
4696
4699
  t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title);
4697
4700
  const r = { type: "element", tagName: "img", properties: n, children: [] };
4698
4701
  return e.patch(t, r), e.applyData(t, r);
4699
4702
  }
4700
- function Ga(e, t) {
4703
+ function Za(e, t) {
4701
4704
  const n = { type: "text", value: t.value.replace(/\r?\n|\r/g, " ") };
4702
4705
  e.patch(t, n);
4703
4706
  const r = {
@@ -4708,7 +4711,7 @@ function Ga(e, t) {
4708
4711
  };
4709
4712
  return e.patch(t, r), e.applyData(t, r);
4710
4713
  }
4711
- function Ka(e, t) {
4714
+ function eu(e, t) {
4712
4715
  const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
4713
4716
  if (!r)
4714
4717
  return Rr(e, t);
@@ -4722,7 +4725,7 @@ function Ka(e, t) {
4722
4725
  };
4723
4726
  return e.patch(t, o), e.applyData(t, o);
4724
4727
  }
4725
- function Ja(e, t) {
4728
+ function nu(e, t) {
4726
4729
  const n = { href: _e(t.url) };
4727
4730
  t.title !== null && t.title !== void 0 && (n.title = t.title);
4728
4731
  const r = {
@@ -4733,8 +4736,8 @@ function Ja(e, t) {
4733
4736
  };
4734
4737
  return e.patch(t, r), e.applyData(t, r);
4735
4738
  }
4736
- function Za(e, t, n) {
4737
- const r = e.all(t), i = n ? eu(n) : Or(t), o = {}, l = [];
4739
+ function tu(e, t, n) {
4740
+ const r = e.all(t), i = n ? ru(n) : Or(t), o = {}, l = [];
4738
4741
  if (typeof t.checked == "boolean") {
4739
4742
  const f = r[0];
4740
4743
  let c;
@@ -4757,7 +4760,7 @@ function Za(e, t, n) {
4757
4760
  const s = { type: "element", tagName: "li", properties: o, children: l };
4758
4761
  return e.patch(t, s), e.applyData(t, s);
4759
4762
  }
4760
- function eu(e) {
4763
+ function ru(e) {
4761
4764
  let t = !1;
4762
4765
  if (e.type === "list") {
4763
4766
  t = e.spread || !1;
@@ -4772,7 +4775,7 @@ function Or(e) {
4772
4775
  const t = e.spread;
4773
4776
  return t ?? e.children.length > 1;
4774
4777
  }
4775
- function nu(e, t) {
4778
+ function iu(e, t) {
4776
4779
  const n = {}, r = e.all(t);
4777
4780
  let i = -1;
4778
4781
  for (typeof t.start == "number" && t.start !== 1 && (n.start = t.start); ++i < r.length; ) {
@@ -4790,7 +4793,7 @@ function nu(e, t) {
4790
4793
  };
4791
4794
  return e.patch(t, o), e.applyData(t, o);
4792
4795
  }
4793
- function tu(e, t) {
4796
+ function lu(e, t) {
4794
4797
  const n = {
4795
4798
  type: "element",
4796
4799
  tagName: "p",
@@ -4799,11 +4802,11 @@ function tu(e, t) {
4799
4802
  };
4800
4803
  return e.patch(t, n), e.applyData(t, n);
4801
4804
  }
4802
- function ru(e, t) {
4805
+ function ou(e, t) {
4803
4806
  const n = { type: "root", children: e.wrap(e.all(t)) };
4804
4807
  return e.patch(t, n), e.applyData(t, n);
4805
4808
  }
4806
- function iu(e, t) {
4809
+ function au(e, t) {
4807
4810
  const n = {
4808
4811
  type: "element",
4809
4812
  tagName: "strong",
@@ -4812,7 +4815,7 @@ function iu(e, t) {
4812
4815
  };
4813
4816
  return e.patch(t, n), e.applyData(t, n);
4814
4817
  }
4815
- function lu(e, t) {
4818
+ function uu(e, t) {
4816
4819
  const n = e.all(t), r = n.shift(), i = [];
4817
4820
  if (r) {
4818
4821
  const l = {
@@ -4840,7 +4843,7 @@ function lu(e, t) {
4840
4843
  };
4841
4844
  return e.patch(t, o), e.applyData(t, o);
4842
4845
  }
4843
- function ou(e, t, n) {
4846
+ function su(e, t, n) {
4844
4847
  const r = n ? n.children : void 0, o = (r ? r.indexOf(t) : 1) === 0 ? "th" : "td", l = n && n.type === "table" ? n.align : void 0, a = l ? l.length : t.children.length;
4845
4848
  let u = -1;
4846
4849
  const s = [];
@@ -4858,7 +4861,7 @@ function ou(e, t, n) {
4858
4861
  };
4859
4862
  return e.patch(t, f), e.applyData(t, f);
4860
4863
  }
4861
- function au(e, t) {
4864
+ function cu(e, t) {
4862
4865
  const n = {
4863
4866
  type: "element",
4864
4867
  tagName: "td",
@@ -4869,7 +4872,7 @@ function au(e, t) {
4869
4872
  return e.patch(t, n), e.applyData(t, n);
4870
4873
  }
4871
4874
  const Ft = 9, _t = 32;
4872
- function uu(e) {
4875
+ function fu(e) {
4873
4876
  const t = String(e), n = /\r?\n|\r/g;
4874
4877
  let r = n.exec(t), i = 0;
4875
4878
  const o = [];
@@ -4894,11 +4897,11 @@ function Rt(e, t, n) {
4894
4897
  }
4895
4898
  return i > r ? e.slice(r, i) : "";
4896
4899
  }
4897
- function su(e, t) {
4898
- const n = { type: "text", value: uu(String(t.value)) };
4900
+ function hu(e, t) {
4901
+ const n = { type: "text", value: fu(String(t.value)) };
4899
4902
  return e.patch(t, n), e.applyData(t, n);
4900
4903
  }
4901
- function cu(e, t) {
4904
+ function pu(e, t) {
4902
4905
  const n = {
4903
4906
  type: "element",
4904
4907
  tagName: "hr",
@@ -4907,54 +4910,54 @@ function cu(e, t) {
4907
4910
  };
4908
4911
  return e.patch(t, n), e.applyData(t, n);
4909
4912
  }
4910
- const fu = {
4911
- blockquote: ja,
4912
- break: Ha,
4913
- code: Ua,
4914
- delete: Va,
4915
- emphasis: $a,
4916
- footnoteReference: qa,
4917
- heading: Wa,
4918
- html: Ya,
4919
- imageReference: Xa,
4920
- image: Qa,
4921
- inlineCode: Ga,
4922
- linkReference: Ka,
4923
- link: Ja,
4924
- listItem: Za,
4925
- list: nu,
4926
- paragraph: tu,
4913
+ const mu = {
4914
+ blockquote: Va,
4915
+ break: $a,
4916
+ code: qa,
4917
+ delete: Wa,
4918
+ emphasis: Ya,
4919
+ footnoteReference: Xa,
4920
+ heading: Qa,
4921
+ html: Ga,
4922
+ imageReference: Ka,
4923
+ image: Ja,
4924
+ inlineCode: Za,
4925
+ linkReference: eu,
4926
+ link: nu,
4927
+ listItem: tu,
4928
+ list: iu,
4929
+ paragraph: lu,
4927
4930
  // @ts-expect-error: root is different, but hard to type.
4928
- root: ru,
4929
- strong: iu,
4930
- table: lu,
4931
- tableCell: au,
4932
- tableRow: ou,
4933
- text: su,
4934
- thematicBreak: cu,
4935
- toml: Qe,
4936
- yaml: Qe,
4937
- definition: Qe,
4938
- footnoteDefinition: Qe
4931
+ root: ou,
4932
+ strong: au,
4933
+ table: uu,
4934
+ tableCell: cu,
4935
+ tableRow: su,
4936
+ text: hu,
4937
+ thematicBreak: pu,
4938
+ toml: Ge,
4939
+ yaml: Ge,
4940
+ definition: Ge,
4941
+ footnoteDefinition: Ge
4939
4942
  };
4940
- function Qe() {
4943
+ function Ge() {
4941
4944
  }
4942
- const Mr = -1, cn = 0, Ue = 1, rn = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, Br = 8, Ot = typeof self == "object" ? self : globalThis, hu = (e, t) => {
4945
+ const Mr = -1, fn = 0, Ve = 1, ln = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, Br = 8, Ot = typeof self == "object" ? self : globalThis, gu = (e, t) => {
4943
4946
  const n = (i, o) => (e.set(o, i), i), r = (i) => {
4944
4947
  if (e.has(i))
4945
4948
  return e.get(i);
4946
4949
  const [o, l] = t[i];
4947
4950
  switch (o) {
4948
- case cn:
4951
+ case fn:
4949
4952
  case Mr:
4950
4953
  return n(l, i);
4951
- case Ue: {
4954
+ case Ve: {
4952
4955
  const a = n([], i);
4953
4956
  for (const u of l)
4954
4957
  a.push(r(u));
4955
4958
  return a;
4956
4959
  }
4957
- case rn: {
4960
+ case ln: {
4958
4961
  const a = n({}, i);
4959
4962
  for (const [u, s] of l)
4960
4963
  a[r(u)] = r(s);
@@ -4996,16 +4999,16 @@ const Mr = -1, cn = 0, Ue = 1, rn = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
4996
4999
  return n(new Ot[o](l), i);
4997
5000
  };
4998
5001
  return r;
4999
- }, Mt = (e) => hu(/* @__PURE__ */ new Map(), e)(0), ve = "", { toString: pu } = {}, { keys: mu } = Object, Be = (e) => {
5002
+ }, Mt = (e) => gu(/* @__PURE__ */ new Map(), e)(0), ve = "", { toString: du } = {}, { keys: yu } = Object, Be = (e) => {
5000
5003
  const t = typeof e;
5001
5004
  if (t !== "object" || !e)
5002
- return [cn, t];
5003
- const n = pu.call(e).slice(8, -1);
5005
+ return [fn, t];
5006
+ const n = du.call(e).slice(8, -1);
5004
5007
  switch (n) {
5005
5008
  case "Array":
5006
- return [Ue, ve];
5009
+ return [Ve, ve];
5007
5010
  case "Object":
5008
- return [rn, ve];
5011
+ return [ln, ve];
5009
5012
  case "Date":
5010
5013
  return [Kn, ve];
5011
5014
  case "RegExp":
@@ -5015,10 +5018,10 @@ const Mr = -1, cn = 0, Ue = 1, rn = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
5015
5018
  case "Set":
5016
5019
  return [et, ve];
5017
5020
  case "DataView":
5018
- return [Ue, n];
5021
+ return [Ve, n];
5019
5022
  }
5020
- return n.includes("Array") ? [Ue, n] : n.includes("Error") ? [Nr, n] : [rn, n];
5021
- }, Ge = ([e, t]) => e === cn && (t === "function" || t === "symbol"), gu = (e, t, n, r) => {
5023
+ return n.includes("Array") ? [Ve, n] : n.includes("Error") ? [Nr, n] : [ln, n];
5024
+ }, Ke = ([e, t]) => e === fn && (t === "function" || t === "symbol"), ku = (e, t, n, r) => {
5022
5025
  const i = (l, a) => {
5023
5026
  const u = r.push(l) - 1;
5024
5027
  return n.set(a, u), u;
@@ -5027,7 +5030,7 @@ const Mr = -1, cn = 0, Ue = 1, rn = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
5027
5030
  return n.get(l);
5028
5031
  let [a, u] = Be(l);
5029
5032
  switch (a) {
5030
- case cn: {
5033
+ case fn: {
5031
5034
  let f = l;
5032
5035
  switch (u) {
5033
5036
  case "bigint":
@@ -5044,7 +5047,7 @@ const Mr = -1, cn = 0, Ue = 1, rn = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
5044
5047
  }
5045
5048
  return i([a, f], l);
5046
5049
  }
5047
- case Ue: {
5050
+ case Ve: {
5048
5051
  if (u) {
5049
5052
  let p = l;
5050
5053
  return u === "DataView" ? p = new Uint8Array(l.buffer) : u === "ArrayBuffer" && (p = new Uint8Array(l)), i([u, [...p]], l);
@@ -5054,7 +5057,7 @@ const Mr = -1, cn = 0, Ue = 1, rn = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
5054
5057
  f.push(o(p));
5055
5058
  return c;
5056
5059
  }
5057
- case rn: {
5060
+ case ln: {
5058
5061
  if (u)
5059
5062
  switch (u) {
5060
5063
  case "BigInt":
@@ -5067,8 +5070,8 @@ const Mr = -1, cn = 0, Ue = 1, rn = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
5067
5070
  if (t && "toJSON" in l)
5068
5071
  return o(l.toJSON());
5069
5072
  const f = [], c = i([a, f], l);
5070
- for (const p of mu(l))
5071
- (e || !Ge(Be(l[p]))) && f.push([o(p), o(l[p])]);
5073
+ for (const p of yu(l))
5074
+ (e || !Ke(Be(l[p]))) && f.push([o(p), o(l[p])]);
5072
5075
  return c;
5073
5076
  }
5074
5077
  case Kn:
@@ -5080,13 +5083,13 @@ const Mr = -1, cn = 0, Ue = 1, rn = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
5080
5083
  case Zn: {
5081
5084
  const f = [], c = i([a, f], l);
5082
5085
  for (const [p, h] of l)
5083
- (e || !(Ge(Be(p)) || Ge(Be(h)))) && f.push([o(p), o(h)]);
5086
+ (e || !(Ke(Be(p)) || Ke(Be(h)))) && f.push([o(p), o(h)]);
5084
5087
  return c;
5085
5088
  }
5086
5089
  case et: {
5087
5090
  const f = [], c = i([a, f], l);
5088
5091
  for (const p of l)
5089
- (e || !Ge(Be(p))) && f.push(o(p));
5092
+ (e || !Ke(Be(p))) && f.push(o(p));
5090
5093
  return c;
5091
5094
  }
5092
5095
  }
@@ -5096,12 +5099,12 @@ const Mr = -1, cn = 0, Ue = 1, rn = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
5096
5099
  return o;
5097
5100
  }, Nt = (e, { json: t, lossy: n } = {}) => {
5098
5101
  const r = [];
5099
- return gu(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
5100
- }, ln = typeof structuredClone == "function" ? (
5102
+ return ku(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
5103
+ }, on = typeof structuredClone == "function" ? (
5101
5104
  /* c8 ignore start */
5102
5105
  (e, t) => t && ("json" in t || "lossy" in t) ? Mt(Nt(e, t)) : structuredClone(e)
5103
5106
  ) : (e, t) => Mt(Nt(e, t));
5104
- function du(e, t) {
5107
+ function xu(e, t) {
5105
5108
  const n = [{ type: "text", value: "↩" }];
5106
5109
  return t > 1 && n.push({
5107
5110
  type: "element",
@@ -5110,11 +5113,11 @@ function du(e, t) {
5110
5113
  children: [{ type: "text", value: String(t) }]
5111
5114
  }), n;
5112
5115
  }
5113
- function yu(e, t) {
5116
+ function bu(e, t) {
5114
5117
  return "Back to reference " + (e + 1) + (t > 1 ? "-" + t : "");
5115
5118
  }
5116
- function ku(e) {
5117
- const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", n = e.options.footnoteBackContent || du, r = e.options.footnoteBackLabel || yu, i = e.options.footnoteLabel || "Footnotes", o = e.options.footnoteLabelTagName || "h2", l = e.options.footnoteLabelProperties || {
5119
+ function wu(e) {
5120
+ const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", n = e.options.footnoteBackContent || xu, r = e.options.footnoteBackLabel || bu, i = e.options.footnoteLabel || "Footnotes", o = e.options.footnoteLabelTagName || "h2", l = e.options.footnoteLabelProperties || {
5118
5121
  className: ["sr-only"]
5119
5122
  }, a = [];
5120
5123
  let u = -1;
@@ -5166,7 +5169,7 @@ function ku(e) {
5166
5169
  type: "element",
5167
5170
  tagName: o,
5168
5171
  properties: {
5169
- ...ln(l),
5172
+ ...on(l),
5170
5173
  id: "footnote-label"
5171
5174
  },
5172
5175
  children: [{ type: "text", value: i }]
@@ -5184,7 +5187,7 @@ function ku(e) {
5184
5187
  ]
5185
5188
  };
5186
5189
  }
5187
- const fn = (
5190
+ const hn = (
5188
5191
  // Note: overloads in JSDoc can’t yet use different `@template`s.
5189
5192
  /**
5190
5193
  * @type {(
@@ -5201,29 +5204,29 @@ const fn = (
5201
5204
  */
5202
5205
  function(e) {
5203
5206
  if (e == null)
5204
- return Su;
5207
+ return Iu;
5205
5208
  if (typeof e == "function")
5206
- return hn(e);
5209
+ return pn(e);
5207
5210
  if (typeof e == "object")
5208
- return Array.isArray(e) ? xu(e) : (
5211
+ return Array.isArray(e) ? Su(e) : (
5209
5212
  // Cast because `ReadonlyArray` goes into the above but `isArray`
5210
5213
  // narrows to `Array`.
5211
- bu(
5214
+ Cu(
5212
5215
  /** @type {Props} */
5213
5216
  e
5214
5217
  )
5215
5218
  );
5216
5219
  if (typeof e == "string")
5217
- return wu(e);
5220
+ return Eu(e);
5218
5221
  throw new Error("Expected function, string, or object as test");
5219
5222
  }
5220
5223
  );
5221
- function xu(e) {
5224
+ function Su(e) {
5222
5225
  const t = [];
5223
5226
  let n = -1;
5224
5227
  for (; ++n < e.length; )
5225
- t[n] = fn(e[n]);
5226
- return hn(r);
5228
+ t[n] = hn(e[n]);
5229
+ return pn(r);
5227
5230
  function r(...i) {
5228
5231
  let o = -1;
5229
5232
  for (; ++o < t.length; )
@@ -5231,12 +5234,12 @@ function xu(e) {
5231
5234
  return !1;
5232
5235
  }
5233
5236
  }
5234
- function bu(e) {
5237
+ function Cu(e) {
5235
5238
  const t = (
5236
5239
  /** @type {Record<string, unknown>} */
5237
5240
  e
5238
5241
  );
5239
- return hn(n);
5242
+ return pn(n);
5240
5243
  function n(r) {
5241
5244
  const i = (
5242
5245
  /** @type {Record<string, unknown>} */
@@ -5249,16 +5252,16 @@ function bu(e) {
5249
5252
  return !0;
5250
5253
  }
5251
5254
  }
5252
- function wu(e) {
5253
- return hn(t);
5255
+ function Eu(e) {
5256
+ return pn(t);
5254
5257
  function t(n) {
5255
5258
  return n && n.type === e;
5256
5259
  }
5257
5260
  }
5258
- function hn(e) {
5261
+ function pn(e) {
5259
5262
  return t;
5260
5263
  function t(n, r, i) {
5261
- return !!(Cu(n) && e.call(
5264
+ return !!(Au(n) && e.call(
5262
5265
  this,
5263
5266
  n,
5264
5267
  typeof r == "number" ? r : void 0,
@@ -5266,17 +5269,17 @@ function hn(e) {
5266
5269
  ));
5267
5270
  }
5268
5271
  }
5269
- function Su() {
5272
+ function Iu() {
5270
5273
  return !0;
5271
5274
  }
5272
- function Cu(e) {
5275
+ function Au(e) {
5273
5276
  return e !== null && typeof e == "object" && "type" in e;
5274
5277
  }
5275
- const jr = [], Eu = !0, On = !1, Iu = "skip";
5278
+ const jr = [], Tu = !0, On = !1, Pu = "skip";
5276
5279
  function Hr(e, t, n, r) {
5277
5280
  let i;
5278
5281
  typeof t == "function" && typeof n != "function" ? (r = n, n = t) : i = t;
5279
- const o = fn(i), l = r ? -1 : 1;
5282
+ const o = hn(i), l = r ? -1 : 1;
5280
5283
  a(e, void 0, [])();
5281
5284
  function a(u, s, f) {
5282
5285
  const c = (
@@ -5298,14 +5301,14 @@ function Hr(e, t, n, r) {
5298
5301
  return p;
5299
5302
  function p() {
5300
5303
  let h = jr, d, x, C;
5301
- if ((!t || o(u, s, f[f.length - 1] || void 0)) && (h = Au(n(u, f)), h[0] === On))
5304
+ if ((!t || o(u, s, f[f.length - 1] || void 0)) && (h = vu(n(u, f)), h[0] === On))
5302
5305
  return h;
5303
5306
  if ("children" in u && u.children) {
5304
5307
  const y = (
5305
5308
  /** @type {UnistParent} */
5306
5309
  u
5307
5310
  );
5308
- if (y.children && h[0] !== Iu)
5311
+ if (y.children && h[0] !== Pu)
5309
5312
  for (x = (r ? y.children.length : -1) + l, C = f.concat(y); x > -1 && x < y.children.length; ) {
5310
5313
  const A = y.children[x];
5311
5314
  if (d = a(A, x, C)(), d[0] === On)
@@ -5317,8 +5320,8 @@ function Hr(e, t, n, r) {
5317
5320
  }
5318
5321
  }
5319
5322
  }
5320
- function Au(e) {
5321
- return Array.isArray(e) ? e : typeof e == "number" ? [Eu, e] : e == null ? jr : [e];
5323
+ function vu(e) {
5324
+ return Array.isArray(e) ? e : typeof e == "number" ? [Tu, e] : e == null ? jr : [e];
5322
5325
  }
5323
5326
  function nt(e, t, n, r) {
5324
5327
  let i, o, l;
@@ -5328,11 +5331,11 @@ function nt(e, t, n, r) {
5328
5331
  return l(u, c, f);
5329
5332
  }
5330
5333
  }
5331
- const Mn = {}.hasOwnProperty, Tu = {};
5332
- function Pu(e, t) {
5333
- const n = t || Tu, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), l = { ...fu, ...n.handlers }, a = {
5334
+ const Mn = {}.hasOwnProperty, zu = {};
5335
+ function Du(e, t) {
5336
+ const n = t || zu, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), l = { ...mu, ...n.handlers }, a = {
5334
5337
  all: s,
5335
- applyData: zu,
5338
+ applyData: Fu,
5336
5339
  definitionById: r,
5337
5340
  footnoteById: i,
5338
5341
  footnoteCounts: o,
@@ -5340,8 +5343,8 @@ function Pu(e, t) {
5340
5343
  handlers: l,
5341
5344
  one: u,
5342
5345
  options: n,
5343
- patch: vu,
5344
- wrap: Lu
5346
+ patch: Lu,
5347
+ wrap: Ru
5345
5348
  };
5346
5349
  return nt(e, function(f) {
5347
5350
  if (f.type === "definition" || f.type === "footnoteDefinition") {
@@ -5355,12 +5358,12 @@ function Pu(e, t) {
5355
5358
  return h(a, f, c);
5356
5359
  if (a.options.passThrough && a.options.passThrough.includes(p)) {
5357
5360
  if ("children" in f) {
5358
- const { children: x, ...C } = f, y = ln(C);
5361
+ const { children: x, ...C } = f, y = on(C);
5359
5362
  return y.children = a.all(f), y;
5360
5363
  }
5361
- return ln(f);
5364
+ return on(f);
5362
5365
  }
5363
- return (a.options.unknownHandler || Du)(a, f, c);
5366
+ return (a.options.unknownHandler || _u)(a, f, c);
5364
5367
  }
5365
5368
  function s(f) {
5366
5369
  const c = [];
@@ -5381,10 +5384,10 @@ function Pu(e, t) {
5381
5384
  return c;
5382
5385
  }
5383
5386
  }
5384
- function vu(e, t) {
5385
- e.position && (t.position = dl(e));
5387
+ function Lu(e, t) {
5388
+ e.position && (t.position = xl(e));
5386
5389
  }
5387
- function zu(e, t) {
5390
+ function Fu(e, t) {
5388
5391
  let n = t;
5389
5392
  if (e && e.data) {
5390
5393
  const r = e.data.hName, i = e.data.hChildren, o = e.data.hProperties;
@@ -5395,11 +5398,11 @@ function zu(e, t) {
5395
5398
  const l = "children" in n ? n.children : [n];
5396
5399
  n = { type: "element", tagName: r, properties: {}, children: l };
5397
5400
  }
5398
- n.type === "element" && o && Object.assign(n.properties, ln(o)), "children" in n && n.children && i !== null && i !== void 0 && (n.children = i);
5401
+ n.type === "element" && o && Object.assign(n.properties, on(o)), "children" in n && n.children && i !== null && i !== void 0 && (n.children = i);
5399
5402
  }
5400
5403
  return n;
5401
5404
  }
5402
- function Du(e, t) {
5405
+ function _u(e, t) {
5403
5406
  const n = t.data || {}, r = "value" in t && !(Mn.call(n, "hProperties") || Mn.call(n, "hChildren")) ? { type: "text", value: t.value } : {
5404
5407
  type: "element",
5405
5408
  tagName: "div",
@@ -5408,7 +5411,7 @@ function Du(e, t) {
5408
5411
  };
5409
5412
  return e.patch(t, r), e.applyData(t, r);
5410
5413
  }
5411
- function Lu(e, t) {
5414
+ function Ru(e, t) {
5412
5415
  const n = [];
5413
5416
  let r = -1;
5414
5417
  for (t && n.push({ type: "text", value: `
@@ -5425,11 +5428,11 @@ function Bt(e) {
5425
5428
  return e.slice(t);
5426
5429
  }
5427
5430
  function jt(e, t) {
5428
- const n = Pu(e, t), r = n.one(e, void 0), i = ku(n), o = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
5431
+ const n = Du(e, t), r = n.one(e, void 0), i = wu(n), o = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
5429
5432
  return i && o.children.push({ type: "text", value: `
5430
5433
  ` }, i), o;
5431
5434
  }
5432
- function Fu(e, t) {
5435
+ function Ou(e, t) {
5433
5436
  return e && "run" in e ? async function(n, r) {
5434
5437
  const i = (
5435
5438
  /** @type {HastRoot} */
@@ -5447,18 +5450,18 @@ function Ht(e) {
5447
5450
  if (e)
5448
5451
  throw e;
5449
5452
  }
5450
- var en = Object.prototype.hasOwnProperty, Ur = Object.prototype.toString, Ut = Object.defineProperty, Vt = Object.getOwnPropertyDescriptor, $t = function(t) {
5453
+ var nn = Object.prototype.hasOwnProperty, Ur = Object.prototype.toString, Ut = Object.defineProperty, Vt = Object.getOwnPropertyDescriptor, $t = function(t) {
5451
5454
  return typeof Array.isArray == "function" ? Array.isArray(t) : Ur.call(t) === "[object Array]";
5452
5455
  }, qt = function(t) {
5453
5456
  if (!t || Ur.call(t) !== "[object Object]")
5454
5457
  return !1;
5455
- var n = en.call(t, "constructor"), r = t.constructor && t.constructor.prototype && en.call(t.constructor.prototype, "isPrototypeOf");
5458
+ var n = nn.call(t, "constructor"), r = t.constructor && t.constructor.prototype && nn.call(t.constructor.prototype, "isPrototypeOf");
5456
5459
  if (t.constructor && !n && !r)
5457
5460
  return !1;
5458
5461
  var i;
5459
5462
  for (i in t)
5460
5463
  ;
5461
- return typeof i > "u" || en.call(t, i);
5464
+ return typeof i > "u" || nn.call(t, i);
5462
5465
  }, Wt = function(t, n) {
5463
5466
  Ut && n.name === "__proto__" ? Ut(t, n.name, {
5464
5467
  enumerable: !0,
@@ -5468,12 +5471,12 @@ var en = Object.prototype.hasOwnProperty, Ur = Object.prototype.toString, Ut = O
5468
5471
  }) : t[n.name] = n.newValue;
5469
5472
  }, Yt = function(t, n) {
5470
5473
  if (n === "__proto__")
5471
- if (en.call(t, n)) {
5474
+ if (nn.call(t, n)) {
5472
5475
  if (Vt)
5473
5476
  return Vt(t, n).value;
5474
5477
  } else return;
5475
5478
  return t[n];
5476
- }, _u = function e() {
5479
+ }, Mu = function e() {
5477
5480
  var t, n, r, i, o, l, a = arguments[0], u = 1, s = arguments.length, f = !1;
5478
5481
  for (typeof a == "boolean" && (f = a, a = arguments[1] || {}, u = 2), (a == null || typeof a != "object" && typeof a != "function") && (a = {}); u < s; ++u)
5479
5482
  if (t = arguments[u], t != null)
@@ -5481,14 +5484,14 @@ var en = Object.prototype.hasOwnProperty, Ur = Object.prototype.toString, Ut = O
5481
5484
  r = Yt(a, n), i = Yt(t, n), a !== i && (f && i && (qt(i) || (o = $t(i))) ? (o ? (o = !1, l = r && $t(r) ? r : []) : l = r && qt(r) ? r : {}, Wt(a, { name: n, newValue: e(f, l, i) })) : typeof i < "u" && Wt(a, { name: n, newValue: i }));
5482
5485
  return a;
5483
5486
  };
5484
- const yn = /* @__PURE__ */ ar(_u);
5487
+ const kn = /* @__PURE__ */ ar(Mu);
5485
5488
  function Nn(e) {
5486
5489
  if (typeof e != "object" || e === null)
5487
5490
  return !1;
5488
5491
  const t = Object.getPrototypeOf(e);
5489
5492
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
5490
5493
  }
5491
- function Ru() {
5494
+ function Nu() {
5492
5495
  const e = [], t = { run: n, use: r };
5493
5496
  return t;
5494
5497
  function n(...i) {
@@ -5506,7 +5509,7 @@ function Ru() {
5506
5509
  }
5507
5510
  for (; ++c < i.length; )
5508
5511
  (s[c] === null || s[c] === void 0) && (s[c] = i[c]);
5509
- i = s, f ? Ou(f, a)(...s) : l(null, ...s);
5512
+ i = s, f ? Bu(f, a)(...s) : l(null, ...s);
5510
5513
  }
5511
5514
  }
5512
5515
  function r(i) {
@@ -5517,7 +5520,7 @@ function Ru() {
5517
5520
  return e.push(i), t;
5518
5521
  }
5519
5522
  }
5520
- function Ou(e, t) {
5523
+ function Bu(e, t) {
5521
5524
  let n;
5522
5525
  return r;
5523
5526
  function r(...l) {
@@ -5544,11 +5547,11 @@ function Ou(e, t) {
5544
5547
  i(null, l);
5545
5548
  }
5546
5549
  }
5547
- const ce = { basename: Mu, dirname: Nu, extname: Bu, join: ju, sep: "/" };
5548
- function Mu(e, t) {
5550
+ const ce = { basename: ju, dirname: Hu, extname: Uu, join: Vu, sep: "/" };
5551
+ function ju(e, t) {
5549
5552
  if (t !== void 0 && typeof t != "string")
5550
5553
  throw new TypeError('"ext" argument must be a string');
5551
- Ye(e);
5554
+ Xe(e);
5552
5555
  let n = 0, r = -1, i = e.length, o;
5553
5556
  if (t === void 0 || t.length === 0 || t.length > e.length) {
5554
5557
  for (; i--; )
@@ -5573,8 +5576,8 @@ function Mu(e, t) {
5573
5576
  l < 0 && (o = !0, l = i + 1), a > -1 && (e.codePointAt(i) === t.codePointAt(a--) ? a < 0 && (r = i) : (a = -1, r = l));
5574
5577
  return n === r ? r = l : r < 0 && (r = e.length), e.slice(n, r);
5575
5578
  }
5576
- function Nu(e) {
5577
- if (Ye(e), e.length === 0)
5579
+ function Hu(e) {
5580
+ if (Xe(e), e.length === 0)
5578
5581
  return ".";
5579
5582
  let t = -1, n = e.length, r;
5580
5583
  for (; --n; )
@@ -5586,8 +5589,8 @@ function Nu(e) {
5586
5589
  } else r || (r = !0);
5587
5590
  return t < 0 ? e.codePointAt(0) === 47 ? "/" : "." : t === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, t);
5588
5591
  }
5589
- function Bu(e) {
5590
- Ye(e);
5592
+ function Uu(e) {
5593
+ Xe(e);
5591
5594
  let t = e.length, n = -1, r = 0, i = -1, o = 0, l;
5592
5595
  for (; t--; ) {
5593
5596
  const a = e.codePointAt(t);
@@ -5604,19 +5607,19 @@ function Bu(e) {
5604
5607
  o === 0 || // The (right-most) trimmed path component is exactly `..`.
5605
5608
  o === 1 && i === n - 1 && i === r + 1 ? "" : e.slice(i, n);
5606
5609
  }
5607
- function ju(...e) {
5610
+ function Vu(...e) {
5608
5611
  let t = -1, n;
5609
5612
  for (; ++t < e.length; )
5610
- Ye(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
5611
- return n === void 0 ? "." : Hu(n);
5613
+ Xe(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
5614
+ return n === void 0 ? "." : $u(n);
5612
5615
  }
5613
- function Hu(e) {
5614
- Ye(e);
5616
+ function $u(e) {
5617
+ Xe(e);
5615
5618
  const t = e.codePointAt(0) === 47;
5616
- let n = Uu(e, !t);
5619
+ let n = qu(e, !t);
5617
5620
  return n.length === 0 && !t && (n = "."), n.length > 0 && e.codePointAt(e.length - 1) === 47 && (n += "/"), t ? "/" + n : n;
5618
5621
  }
5619
- function Uu(e, t) {
5622
+ function qu(e, t) {
5620
5623
  let n = "", r = 0, i = -1, o = 0, l = -1, a, u;
5621
5624
  for (; ++l <= e.length; ) {
5622
5625
  if (l < e.length)
@@ -5647,21 +5650,21 @@ function Uu(e, t) {
5647
5650
  }
5648
5651
  return n;
5649
5652
  }
5650
- function Ye(e) {
5653
+ function Xe(e) {
5651
5654
  if (typeof e != "string")
5652
5655
  throw new TypeError(
5653
5656
  "Path must be a string. Received " + JSON.stringify(e)
5654
5657
  );
5655
5658
  }
5656
- const Vu = { cwd: $u };
5657
- function $u() {
5659
+ const Wu = { cwd: Yu };
5660
+ function Yu() {
5658
5661
  return "/";
5659
5662
  }
5660
5663
  function Bn(e) {
5661
5664
  return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
5662
5665
  e.auth === void 0);
5663
5666
  }
5664
- function qu(e) {
5667
+ function Xu(e) {
5665
5668
  if (typeof e == "string")
5666
5669
  e = new URL(e);
5667
5670
  else if (!Bn(e)) {
@@ -5674,9 +5677,9 @@ function qu(e) {
5674
5677
  const t = new TypeError("The URL must be of scheme file");
5675
5678
  throw t.code = "ERR_INVALID_URL_SCHEME", t;
5676
5679
  }
5677
- return Wu(e);
5680
+ return Qu(e);
5678
5681
  }
5679
- function Wu(e) {
5682
+ function Qu(e) {
5680
5683
  if (e.hostname !== "") {
5681
5684
  const r = new TypeError(
5682
5685
  'File URL host must be "localhost" or empty on darwin'
@@ -5697,7 +5700,7 @@ function Wu(e) {
5697
5700
  }
5698
5701
  return decodeURIComponent(t);
5699
5702
  }
5700
- const kn = (
5703
+ const xn = (
5701
5704
  /** @type {const} */
5702
5705
  [
5703
5706
  "history",
@@ -5733,15 +5736,15 @@ class Vr {
5733
5736
  */
5734
5737
  constructor(t) {
5735
5738
  let n;
5736
- t ? Bn(t) ? n = { path: t } : typeof t == "string" || Yu(t) ? n = { value: t } : n = t : n = {}, this.cwd = "cwd" in n ? "" : Vu.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
5739
+ t ? Bn(t) ? n = { path: t } : typeof t == "string" || Gu(t) ? n = { value: t } : n = t : n = {}, this.cwd = "cwd" in n ? "" : Wu.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
5737
5740
  let r = -1;
5738
- for (; ++r < kn.length; ) {
5739
- const o = kn[r];
5741
+ for (; ++r < xn.length; ) {
5742
+ const o = xn[r];
5740
5743
  o in n && n[o] !== void 0 && n[o] !== null && (this[o] = o === "history" ? [...n[o]] : n[o]);
5741
5744
  }
5742
5745
  let i;
5743
5746
  for (i in n)
5744
- kn.includes(i) || (this[i] = n[i]);
5747
+ xn.includes(i) || (this[i] = n[i]);
5745
5748
  }
5746
5749
  /**
5747
5750
  * Get the basename (including extname) (example: `'index.min.js'`).
@@ -5765,7 +5768,7 @@ class Vr {
5765
5768
  * Nothing.
5766
5769
  */
5767
5770
  set basename(t) {
5768
- bn(t, "basename"), xn(t, "basename"), this.path = ce.join(this.dirname || "", t);
5771
+ wn(t, "basename"), bn(t, "basename"), this.path = ce.join(this.dirname || "", t);
5769
5772
  }
5770
5773
  /**
5771
5774
  * Get the parent path (example: `'~'`).
@@ -5811,7 +5814,7 @@ class Vr {
5811
5814
  * Nothing.
5812
5815
  */
5813
5816
  set extname(t) {
5814
- if (xn(t, "extname"), Xt(this.dirname, "extname"), t) {
5817
+ if (bn(t, "extname"), Xt(this.dirname, "extname"), t) {
5815
5818
  if (t.codePointAt(0) !== 46)
5816
5819
  throw new Error("`extname` must start with `.`");
5817
5820
  if (t.includes(".", 1))
@@ -5841,7 +5844,7 @@ class Vr {
5841
5844
  * Nothing.
5842
5845
  */
5843
5846
  set path(t) {
5844
- Bn(t) && (t = qu(t)), bn(t, "path"), this.path !== t && this.history.push(t);
5847
+ Bn(t) && (t = Xu(t)), wn(t, "path"), this.path !== t && this.history.push(t);
5845
5848
  }
5846
5849
  /**
5847
5850
  * Get the stem (basename w/o extname) (example: `'index.min'`).
@@ -5865,7 +5868,7 @@ class Vr {
5865
5868
  * Nothing.
5866
5869
  */
5867
5870
  set stem(t) {
5868
- bn(t, "stem"), xn(t, "stem"), this.path = ce.join(this.dirname || "", t + (this.extname || ""));
5871
+ wn(t, "stem"), bn(t, "stem"), this.path = ce.join(this.dirname || "", t + (this.extname || ""));
5869
5872
  }
5870
5873
  // Normal prototypal methods.
5871
5874
  /**
@@ -6078,13 +6081,13 @@ class Vr {
6078
6081
  return this.value === void 0 ? "" : typeof this.value == "string" ? this.value : new TextDecoder(t || void 0).decode(this.value);
6079
6082
  }
6080
6083
  }
6081
- function xn(e, t) {
6084
+ function bn(e, t) {
6082
6085
  if (e && e.includes(ce.sep))
6083
6086
  throw new Error(
6084
6087
  "`" + t + "` cannot be a path: did not expect `" + ce.sep + "`"
6085
6088
  );
6086
6089
  }
6087
- function bn(e, t) {
6090
+ function wn(e, t) {
6088
6091
  if (!e)
6089
6092
  throw new Error("`" + t + "` cannot be empty");
6090
6093
  }
@@ -6092,10 +6095,10 @@ function Xt(e, t) {
6092
6095
  if (!e)
6093
6096
  throw new Error("Setting `" + t + "` requires `path` to be set too");
6094
6097
  }
6095
- function Yu(e) {
6098
+ function Gu(e) {
6096
6099
  return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
6097
6100
  }
6098
- const Xu = (
6101
+ const Ku = (
6099
6102
  /**
6100
6103
  * @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
6101
6104
  */
@@ -6116,13 +6119,13 @@ const Xu = (
6116
6119
  };
6117
6120
  return Object.setPrototypeOf(o, r), o;
6118
6121
  }
6119
- ), Qu = {}.hasOwnProperty;
6120
- class tt extends Xu {
6122
+ ), Ju = {}.hasOwnProperty;
6123
+ class tt extends Ku {
6121
6124
  /**
6122
6125
  * Create a processor.
6123
6126
  */
6124
6127
  constructor() {
6125
- super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers = Ru();
6128
+ super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers = Nu();
6126
6129
  }
6127
6130
  /**
6128
6131
  * Copy a processor.
@@ -6145,7 +6148,7 @@ class tt extends Xu {
6145
6148
  const r = this.attachers[n];
6146
6149
  t.use(...r);
6147
6150
  }
6148
- return t.data(yn(!0, {}, this.namespace)), t;
6151
+ return t.data(kn(!0, {}, this.namespace)), t;
6149
6152
  }
6150
6153
  /**
6151
6154
  * Configure the processor with info available to all plugins.
@@ -6207,7 +6210,7 @@ class tt extends Xu {
6207
6210
  * the entire dataset when getting without key.
6208
6211
  */
6209
6212
  data(t, n) {
6210
- return typeof t == "string" ? arguments.length === 2 ? (Cn("data", this.frozen), this.namespace[t] = n, this) : Qu.call(this.namespace, t) && this.namespace[t] || void 0 : t ? (Cn("data", this.frozen), this.namespace = t, this) : this.namespace;
6213
+ return typeof t == "string" ? arguments.length === 2 ? (En("data", this.frozen), this.namespace[t] = n, this) : Ju.call(this.namespace, t) && this.namespace[t] || void 0 : t ? (En("data", this.frozen), this.namespace = t, this) : this.namespace;
6211
6214
  }
6212
6215
  /**
6213
6216
  * Freeze a processor.
@@ -6260,8 +6263,8 @@ class tt extends Xu {
6260
6263
  */
6261
6264
  parse(t) {
6262
6265
  this.freeze();
6263
- const n = Ke(t), r = this.parser || this.Parser;
6264
- return wn("parse", r), r(String(n), n);
6266
+ const n = Je(t), r = this.parser || this.Parser;
6267
+ return Sn("parse", r), r(String(n), n);
6265
6268
  }
6266
6269
  /**
6267
6270
  * Process the given file as configured on the processor.
@@ -6307,9 +6310,9 @@ class tt extends Xu {
6307
6310
  */
6308
6311
  process(t, n) {
6309
6312
  const r = this;
6310
- return this.freeze(), wn("process", this.parser || this.Parser), Sn("process", this.compiler || this.Compiler), n ? i(void 0, n) : new Promise(i);
6313
+ return this.freeze(), Sn("process", this.parser || this.Parser), Cn("process", this.compiler || this.Compiler), n ? i(void 0, n) : new Promise(i);
6311
6314
  function i(o, l) {
6312
- const a = Ke(t), u = (
6315
+ const a = Je(t), u = (
6313
6316
  /** @type {HeadTree extends undefined ? Node : HeadTree} */
6314
6317
  /** @type {unknown} */
6315
6318
  r.parse(a)
@@ -6322,7 +6325,7 @@ class tt extends Xu {
6322
6325
  /** @type {unknown} */
6323
6326
  c
6324
6327
  ), d = r.stringify(h, p);
6325
- Ju(d) ? p.value = d : p.result = d, s(
6328
+ ns(d) ? p.value = d : p.result = d, s(
6326
6329
  f,
6327
6330
  /** @type {VFileWithOutput<CompileResult>} */
6328
6331
  p
@@ -6366,7 +6369,7 @@ class tt extends Xu {
6366
6369
  */
6367
6370
  processSync(t) {
6368
6371
  let n = !1, r;
6369
- return this.freeze(), wn("processSync", this.parser || this.Parser), Sn("processSync", this.compiler || this.Compiler), this.process(t, i), Gt("processSync", "process", n), r;
6372
+ return this.freeze(), Sn("processSync", this.parser || this.Parser), Cn("processSync", this.compiler || this.Compiler), this.process(t, i), Gt("processSync", "process", n), r;
6370
6373
  function i(o, l) {
6371
6374
  n = !0, Ht(o), r = l;
6372
6375
  }
@@ -6414,7 +6417,7 @@ class tt extends Xu {
6414
6417
  const i = this.transformers;
6415
6418
  return !r && typeof n == "function" && (r = n, n = void 0), r ? o(void 0, r) : new Promise(o);
6416
6419
  function o(l, a) {
6417
- const u = Ke(n);
6420
+ const u = Je(n);
6418
6421
  i.run(t, u, s);
6419
6422
  function s(f, c, p) {
6420
6423
  const h = (
@@ -6480,8 +6483,8 @@ class tt extends Xu {
6480
6483
  */
6481
6484
  stringify(t, n) {
6482
6485
  this.freeze();
6483
- const r = Ke(n), i = this.compiler || this.Compiler;
6484
- return Sn("stringify", i), Qt(t), i(t, r);
6486
+ const r = Je(n), i = this.compiler || this.Compiler;
6487
+ return Cn("stringify", i), Qt(t), i(t, r);
6485
6488
  }
6486
6489
  /**
6487
6490
  * Configure the processor to use a plugin, a list of usable values, or a
@@ -6542,7 +6545,7 @@ class tt extends Xu {
6542
6545
  */
6543
6546
  use(t, ...n) {
6544
6547
  const r = this.attachers, i = this.namespace;
6545
- if (Cn("use", this.frozen), t != null) if (typeof t == "function")
6548
+ if (En("use", this.frozen), t != null) if (typeof t == "function")
6546
6549
  u(t, n);
6547
6550
  else if (typeof t == "object")
6548
6551
  Array.isArray(t) ? a(t) : l(t);
@@ -6569,7 +6572,7 @@ class tt extends Xu {
6569
6572
  throw new Error(
6570
6573
  "Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither"
6571
6574
  );
6572
- a(s.plugins), s.settings && (i.settings = yn(!0, i.settings, s.settings));
6575
+ a(s.plugins), s.settings && (i.settings = kn(!0, i.settings, s.settings));
6573
6576
  }
6574
6577
  function a(s) {
6575
6578
  let f = -1;
@@ -6593,21 +6596,21 @@ class tt extends Xu {
6593
6596
  else if (f.length > 0) {
6594
6597
  let [h, ...d] = f;
6595
6598
  const x = r[p][1];
6596
- Nn(x) && Nn(h) && (h = yn(!0, x, h)), r[p] = [s, h, ...d];
6599
+ Nn(x) && Nn(h) && (h = kn(!0, x, h)), r[p] = [s, h, ...d];
6597
6600
  }
6598
6601
  }
6599
6602
  }
6600
6603
  }
6601
- const Gu = new tt().freeze();
6602
- function wn(e, t) {
6604
+ const Zu = new tt().freeze();
6605
+ function Sn(e, t) {
6603
6606
  if (typeof t != "function")
6604
6607
  throw new TypeError("Cannot `" + e + "` without `parser`");
6605
6608
  }
6606
- function Sn(e, t) {
6609
+ function Cn(e, t) {
6607
6610
  if (typeof t != "function")
6608
6611
  throw new TypeError("Cannot `" + e + "` without `compiler`");
6609
6612
  }
6610
- function Cn(e, t) {
6613
+ function En(e, t) {
6611
6614
  if (t)
6612
6615
  throw new Error(
6613
6616
  "Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
@@ -6623,19 +6626,19 @@ function Gt(e, t, n) {
6623
6626
  "`" + e + "` finished async. Use `" + t + "` instead"
6624
6627
  );
6625
6628
  }
6626
- function Ke(e) {
6627
- return Ku(e) ? e : new Vr(e);
6629
+ function Je(e) {
6630
+ return es(e) ? e : new Vr(e);
6628
6631
  }
6629
- function Ku(e) {
6632
+ function es(e) {
6630
6633
  return !!(e && typeof e == "object" && "message" in e && "messages" in e);
6631
6634
  }
6632
- function Ju(e) {
6633
- return typeof e == "string" || Zu(e);
6635
+ function ns(e) {
6636
+ return typeof e == "string" || ts(e);
6634
6637
  }
6635
- function Zu(e) {
6638
+ function ts(e) {
6636
6639
  return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
6637
6640
  }
6638
- const es = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", Kt = [], Jt = { allowDangerousHtml: !0 }, ns = /^(https?|ircs?|mailto|xmpp)$/i, ts = [
6641
+ const rs = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", Kt = [], Jt = { allowDangerousHtml: !0 }, is = /^(https?|ircs?|mailto|xmpp)$/i, ls = [
6639
6642
  { from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
6640
6643
  { from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
6641
6644
  {
@@ -6669,27 +6672,27 @@ const es = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
6669
6672
  { from: "transformImageUri", id: "#add-urltransform", to: "urlTransform" },
6670
6673
  { from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
6671
6674
  ];
6672
- function rs(e) {
6673
- const t = is(e), n = ls(e);
6674
- return os(t.runSync(t.parse(n), n), e);
6675
+ function os(e) {
6676
+ const t = as(e), n = us(e);
6677
+ return ss(t.runSync(t.parse(n), n), e);
6675
6678
  }
6676
- function is(e) {
6679
+ function as(e) {
6677
6680
  const t = e.rehypePlugins || Kt, n = e.remarkPlugins || Kt, r = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...Jt } : Jt;
6678
- return Gu().use(Ba).use(n).use(Fu, r).use(t);
6681
+ return Zu().use(Ua).use(n).use(Ou, r).use(t);
6679
6682
  }
6680
- function ls(e) {
6683
+ function us(e) {
6681
6684
  const t = e.children || "", n = new Vr();
6682
6685
  return typeof t == "string" && (n.value = t), n;
6683
6686
  }
6684
- function os(e, t) {
6685
- const n = t.allowedElements, r = t.allowElement, i = t.components, o = t.disallowedElements, l = t.skipHtml, a = t.unwrapDisallowed, u = t.urlTransform || as;
6686
- for (const f of ts)
6687
- Object.hasOwn(t, f.from) && ("" + f.from + (f.to ? "use `" + f.to + "` instead" : "remove it") + es + f.id, void 0);
6688
- return nt(e, s), wl(e, {
6687
+ function ss(e, t) {
6688
+ const n = t.allowedElements, r = t.allowElement, i = t.components, o = t.disallowedElements, l = t.skipHtml, a = t.unwrapDisallowed, u = t.urlTransform || cs;
6689
+ for (const f of ls)
6690
+ Object.hasOwn(t, f.from) && ("" + f.from + (f.to ? "use `" + f.to + "` instead" : "remove it") + rs + f.id, void 0);
6691
+ return nt(e, s), El(e, {
6689
6692
  Fragment: Ei,
6690
6693
  components: i,
6691
6694
  ignoreInvalidStyle: !0,
6692
- jsx: Pn,
6695
+ jsx: je,
6693
6696
  jsxs: Ci,
6694
6697
  passKeys: !0,
6695
6698
  passNode: !0
@@ -6699,9 +6702,9 @@ function os(e, t) {
6699
6702
  return l ? p.children.splice(c, 1) : p.children[c] = { type: "text", value: f.value }, c;
6700
6703
  if (f.type === "element") {
6701
6704
  let h;
6702
- for (h in mn)
6703
- if (Object.hasOwn(mn, h) && Object.hasOwn(f.properties, h)) {
6704
- const d = f.properties[h], x = mn[h];
6705
+ for (h in gn)
6706
+ if (Object.hasOwn(gn, h) && Object.hasOwn(f.properties, h)) {
6707
+ const d = f.properties[h], x = gn[h];
6705
6708
  (x === null || x.includes(f.tagName)) && (f.properties[h] = u(String(d || ""), h, f));
6706
6709
  }
6707
6710
  }
@@ -6712,13 +6715,13 @@ function os(e, t) {
6712
6715
  }
6713
6716
  }
6714
6717
  }
6715
- function as(e) {
6718
+ function cs(e) {
6716
6719
  const t = e.indexOf(":"), n = e.indexOf("?"), r = e.indexOf("#"), i = e.indexOf("/");
6717
6720
  return (
6718
6721
  // If there is no protocol, it’s relative.
6719
6722
  t === -1 || // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.
6720
6723
  i !== -1 && t > i || n !== -1 && t > n || r !== -1 && t > r || // It is a protocol, it should be allowed.
6721
- ns.test(e.slice(0, t)) ? e : ""
6724
+ is.test(e.slice(0, t)) ? e : ""
6722
6725
  );
6723
6726
  }
6724
6727
  function Zt(e, t) {
@@ -6730,13 +6733,13 @@ function Zt(e, t) {
6730
6733
  r++, i = n.indexOf(t, i + t.length);
6731
6734
  return r;
6732
6735
  }
6733
- function us(e) {
6736
+ function fs(e) {
6734
6737
  if (typeof e != "string")
6735
6738
  throw new TypeError("Expected a string");
6736
6739
  return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
6737
6740
  }
6738
6741
  function $r(e, t, n) {
6739
- const i = fn((n || {}).ignore || []), o = ss(t);
6742
+ const i = hn((n || {}).ignore || []), o = hs(t);
6740
6743
  let l = -1;
6741
6744
  for (; ++l < o.length; )
6742
6745
  Hr(e, "text", a);
@@ -6779,7 +6782,7 @@ function $r(e, t, n) {
6779
6782
  return y ? (d < s.value.length && A.push({ type: "text", value: s.value.slice(d) }), c.children.splice(C, 1, ...A)) : A = [s], C + A.length;
6780
6783
  }
6781
6784
  }
6782
- function ss(e) {
6785
+ function hs(e) {
6783
6786
  const t = [];
6784
6787
  if (!Array.isArray(e))
6785
6788
  throw new TypeError("Expected find and replace tuple or list of tuples");
@@ -6787,98 +6790,98 @@ function ss(e) {
6787
6790
  let r = -1;
6788
6791
  for (; ++r < n.length; ) {
6789
6792
  const i = n[r];
6790
- t.push([cs(i[0]), fs(i[1])]);
6793
+ t.push([ps(i[0]), ms(i[1])]);
6791
6794
  }
6792
6795
  return t;
6793
6796
  }
6794
- function cs(e) {
6795
- return typeof e == "string" ? new RegExp(us(e), "g") : e;
6797
+ function ps(e) {
6798
+ return typeof e == "string" ? new RegExp(fs(e), "g") : e;
6796
6799
  }
6797
- function fs(e) {
6800
+ function ms(e) {
6798
6801
  return typeof e == "function" ? e : function() {
6799
6802
  return e;
6800
6803
  };
6801
6804
  }
6802
- const En = "phrasing", In = ["autolink", "link", "image", "label"];
6803
- function hs() {
6805
+ const In = "phrasing", An = ["autolink", "link", "image", "label"];
6806
+ function gs() {
6804
6807
  return {
6805
- transforms: [xs],
6808
+ transforms: [Ss],
6806
6809
  enter: {
6807
- literalAutolink: ms,
6808
- literalAutolinkEmail: An,
6809
- literalAutolinkHttp: An,
6810
- literalAutolinkWww: An
6810
+ literalAutolink: ys,
6811
+ literalAutolinkEmail: Tn,
6812
+ literalAutolinkHttp: Tn,
6813
+ literalAutolinkWww: Tn
6811
6814
  },
6812
6815
  exit: {
6813
- literalAutolink: ks,
6814
- literalAutolinkEmail: ys,
6815
- literalAutolinkHttp: gs,
6816
- literalAutolinkWww: ds
6816
+ literalAutolink: ws,
6817
+ literalAutolinkEmail: bs,
6818
+ literalAutolinkHttp: ks,
6819
+ literalAutolinkWww: xs
6817
6820
  }
6818
6821
  };
6819
6822
  }
6820
- function ps() {
6823
+ function ds() {
6821
6824
  return {
6822
6825
  unsafe: [
6823
6826
  {
6824
6827
  character: "@",
6825
6828
  before: "[+\\-.\\w]",
6826
6829
  after: "[\\-.\\w]",
6827
- inConstruct: En,
6828
- notInConstruct: In
6830
+ inConstruct: In,
6831
+ notInConstruct: An
6829
6832
  },
6830
6833
  {
6831
6834
  character: ".",
6832
6835
  before: "[Ww]",
6833
6836
  after: "[\\-.\\w]",
6834
- inConstruct: En,
6835
- notInConstruct: In
6837
+ inConstruct: In,
6838
+ notInConstruct: An
6836
6839
  },
6837
6840
  {
6838
6841
  character: ":",
6839
6842
  before: "[ps]",
6840
6843
  after: "\\/",
6841
- inConstruct: En,
6842
- notInConstruct: In
6844
+ inConstruct: In,
6845
+ notInConstruct: An
6843
6846
  }
6844
6847
  ]
6845
6848
  };
6846
6849
  }
6847
- function ms(e) {
6850
+ function ys(e) {
6848
6851
  this.enter({ type: "link", title: null, url: "", children: [] }, e);
6849
6852
  }
6850
- function An(e) {
6853
+ function Tn(e) {
6851
6854
  this.config.enter.autolinkProtocol.call(this, e);
6852
6855
  }
6853
- function gs(e) {
6856
+ function ks(e) {
6854
6857
  this.config.exit.autolinkProtocol.call(this, e);
6855
6858
  }
6856
- function ds(e) {
6859
+ function xs(e) {
6857
6860
  this.config.exit.data.call(this, e);
6858
6861
  const t = this.stack[this.stack.length - 1];
6859
6862
  t.type, t.url = "http://" + this.sliceSerialize(e);
6860
6863
  }
6861
- function ys(e) {
6864
+ function bs(e) {
6862
6865
  this.config.exit.autolinkEmail.call(this, e);
6863
6866
  }
6864
- function ks(e) {
6867
+ function ws(e) {
6865
6868
  this.exit(e);
6866
6869
  }
6867
- function xs(e) {
6870
+ function Ss(e) {
6868
6871
  $r(
6869
6872
  e,
6870
6873
  [
6871
- [/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, bs],
6872
- [new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)", "gu"), ws]
6874
+ [/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, Cs],
6875
+ [new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)", "gu"), Es]
6873
6876
  ],
6874
6877
  { ignore: ["link", "linkReference"] }
6875
6878
  );
6876
6879
  }
6877
- function bs(e, t, n, r, i) {
6880
+ function Cs(e, t, n, r, i) {
6878
6881
  let o = "";
6879
- if (!qr(i) || (/^w/i.test(t) && (n = t + n, t = "", o = "http://"), !Ss(n)))
6882
+ if (!qr(i) || (/^w/i.test(t) && (n = t + n, t = "", o = "http://"), !Is(n)))
6880
6883
  return !1;
6881
- const l = Cs(n + r);
6884
+ const l = As(n + r);
6882
6885
  if (!l[0]) return !1;
6883
6886
  const a = {
6884
6887
  type: "link",
@@ -6888,7 +6891,7 @@ function bs(e, t, n, r, i) {
6888
6891
  };
6889
6892
  return l[1] ? [a, { type: "text", value: l[1] }] : a;
6890
6893
  }
6891
- function ws(e, t, n, r) {
6894
+ function Es(e, t, n, r) {
6892
6895
  return (
6893
6896
  // Not an expected previous character.
6894
6897
  !qr(r, !0) || // Label ends in not allowed character.
@@ -6900,11 +6903,11 @@ function ws(e, t, n, r) {
6900
6903
  }
6901
6904
  );
6902
6905
  }
6903
- function Ss(e) {
6906
+ function Is(e) {
6904
6907
  const t = e.split(".");
6905
6908
  return !(t.length < 2 || t[t.length - 1] && (/_/.test(t[t.length - 1]) || !/[a-zA-Z\d]/.test(t[t.length - 1])) || t[t.length - 2] && (/_/.test(t[t.length - 2]) || !/[a-zA-Z\d]/.test(t[t.length - 2])));
6906
6909
  }
6907
- function Cs(e) {
6910
+ function As(e) {
6908
6911
  const t = /[!"&'),.:;<>?\]}]+$/.exec(e);
6909
6912
  if (!t)
6910
6913
  return [e, void 0];
@@ -6918,44 +6921,44 @@ function Cs(e) {
6918
6921
  }
6919
6922
  function qr(e, t) {
6920
6923
  const n = e.input.charCodeAt(e.index - 1);
6921
- return (e.index === 0 || Ee(n) || un(n)) && // If it’s an email, the previous character should not be a slash.
6924
+ return (e.index === 0 || Ee(n) || sn(n)) && // If it’s an email, the previous character should not be a slash.
6922
6925
  (!t || n !== 47);
6923
6926
  }
6924
- Wr.peek = Ls;
6925
- function Es() {
6927
+ Wr.peek = Rs;
6928
+ function Ts() {
6926
6929
  this.buffer();
6927
6930
  }
6928
- function Is(e) {
6931
+ function Ps(e) {
6929
6932
  this.enter({ type: "footnoteReference", identifier: "", label: "" }, e);
6930
6933
  }
6931
- function As() {
6934
+ function vs() {
6932
6935
  this.buffer();
6933
6936
  }
6934
- function Ts(e) {
6937
+ function zs(e) {
6935
6938
  this.enter(
6936
6939
  { type: "footnoteDefinition", identifier: "", label: "", children: [] },
6937
6940
  e
6938
6941
  );
6939
6942
  }
6940
- function Ps(e) {
6943
+ function Ds(e) {
6941
6944
  const t = this.resume(), n = this.stack[this.stack.length - 1];
6942
6945
  n.type, n.identifier = se(
6943
6946
  this.sliceSerialize(e)
6944
6947
  ).toLowerCase(), n.label = t;
6945
6948
  }
6946
- function vs(e) {
6949
+ function Ls(e) {
6947
6950
  this.exit(e);
6948
6951
  }
6949
- function zs(e) {
6952
+ function Fs(e) {
6950
6953
  const t = this.resume(), n = this.stack[this.stack.length - 1];
6951
6954
  n.type, n.identifier = se(
6952
6955
  this.sliceSerialize(e)
6953
6956
  ).toLowerCase(), n.label = t;
6954
6957
  }
6955
- function Ds(e) {
6958
+ function _s(e) {
6956
6959
  this.exit(e);
6957
6960
  }
6958
- function Ls() {
6961
+ function Rs() {
6959
6962
  return "[";
6960
6963
  }
6961
6964
  function Wr(e, t, n, r) {
@@ -6966,23 +6969,23 @@ function Wr(e, t, n, r) {
6966
6969
  n.safe(n.associationId(e), { after: "]", before: o })
6967
6970
  ), a(), l(), o += i.move("]"), o;
6968
6971
  }
6969
- function Fs() {
6972
+ function Os() {
6970
6973
  return {
6971
6974
  enter: {
6972
- gfmFootnoteCallString: Es,
6973
- gfmFootnoteCall: Is,
6974
- gfmFootnoteDefinitionLabelString: As,
6975
- gfmFootnoteDefinition: Ts
6975
+ gfmFootnoteCallString: Ts,
6976
+ gfmFootnoteCall: Ps,
6977
+ gfmFootnoteDefinitionLabelString: vs,
6978
+ gfmFootnoteDefinition: zs
6976
6979
  },
6977
6980
  exit: {
6978
- gfmFootnoteCallString: Ps,
6979
- gfmFootnoteCall: vs,
6980
- gfmFootnoteDefinitionLabelString: zs,
6981
- gfmFootnoteDefinition: Ds
6981
+ gfmFootnoteCallString: Ds,
6982
+ gfmFootnoteCall: Ls,
6983
+ gfmFootnoteDefinitionLabelString: Fs,
6984
+ gfmFootnoteDefinition: _s
6982
6985
  }
6983
6986
  };
6984
6987
  }
6985
- function _s(e) {
6988
+ function Ms(e) {
6986
6989
  let t = !1;
6987
6990
  return e && e.firstLineBlank && (t = !0), {
6988
6991
  handlers: { footnoteDefinition: n, footnoteReference: Wr },
@@ -6999,18 +7002,18 @@ function _s(e) {
6999
7002
  (t ? `
7000
7003
  ` : " ") + o.indentLines(
7001
7004
  o.containerFlow(r, a.current()),
7002
- t ? Yr : Rs
7005
+ t ? Yr : Ns
7003
7006
  )
7004
7007
  )), s(), u;
7005
7008
  }
7006
7009
  }
7007
- function Rs(e, t, n) {
7010
+ function Ns(e, t, n) {
7008
7011
  return t === 0 ? e : Yr(e, t, n);
7009
7012
  }
7010
7013
  function Yr(e, t, n) {
7011
7014
  return (n ? "" : " ") + e;
7012
7015
  }
7013
- const Os = [
7016
+ const Bs = [
7014
7017
  "autolink",
7015
7018
  "destinationLiteral",
7016
7019
  "destinationRaw",
@@ -7018,30 +7021,30 @@ const Os = [
7018
7021
  "titleQuote",
7019
7022
  "titleApostrophe"
7020
7023
  ];
7021
- Xr.peek = Hs;
7022
- function Ms() {
7024
+ Xr.peek = $s;
7025
+ function js() {
7023
7026
  return {
7024
7027
  canContainEols: ["delete"],
7025
- enter: { strikethrough: Bs },
7026
- exit: { strikethrough: js }
7028
+ enter: { strikethrough: Us },
7029
+ exit: { strikethrough: Vs }
7027
7030
  };
7028
7031
  }
7029
- function Ns() {
7032
+ function Hs() {
7030
7033
  return {
7031
7034
  unsafe: [
7032
7035
  {
7033
7036
  character: "~",
7034
7037
  inConstruct: "phrasing",
7035
- notInConstruct: Os
7038
+ notInConstruct: Bs
7036
7039
  }
7037
7040
  ],
7038
7041
  handlers: { delete: Xr }
7039
7042
  };
7040
7043
  }
7041
- function Bs(e) {
7044
+ function Us(e) {
7042
7045
  this.enter({ type: "delete", children: [] }, e);
7043
7046
  }
7044
- function js(e) {
7047
+ function Vs(e) {
7045
7048
  this.exit(e);
7046
7049
  }
7047
7050
  function Xr(e, t, n, r) {
@@ -7053,20 +7056,20 @@ function Xr(e, t, n, r) {
7053
7056
  after: "~"
7054
7057
  }), l += i.move("~~"), o(), l;
7055
7058
  }
7056
- function Hs() {
7059
+ function $s() {
7057
7060
  return "~";
7058
7061
  }
7059
- function Us(e) {
7062
+ function qs(e) {
7060
7063
  return e.length;
7061
7064
  }
7062
- function Vs(e, t) {
7063
- const n = t || {}, r = (n.align || []).concat(), i = n.stringLength || Us, o = [], l = [], a = [], u = [];
7065
+ function Ws(e, t) {
7066
+ const n = t || {}, r = (n.align || []).concat(), i = n.stringLength || qs, o = [], l = [], a = [], u = [];
7064
7067
  let s = 0, f = -1;
7065
7068
  for (; ++f < e.length; ) {
7066
7069
  const x = [], C = [];
7067
7070
  let y = -1;
7068
7071
  for (e[f].length > s && (s = e[f].length); ++y < e[f].length; ) {
7069
- const A = $s(e[f][y]);
7072
+ const A = Ys(e[f][y]);
7070
7073
  if (n.alignDelimiters !== !1) {
7071
7074
  const E = i(A);
7072
7075
  C[y] = E, (u[y] === void 0 || E > u[y]) && (u[y] = E);
@@ -7121,26 +7124,26 @@ function Vs(e, t) {
7121
7124
  return d.join(`
7122
7125
  `);
7123
7126
  }
7124
- function $s(e) {
7127
+ function Ys(e) {
7125
7128
  return e == null ? "" : String(e);
7126
7129
  }
7127
7130
  function er(e) {
7128
7131
  const t = typeof e == "string" ? e.codePointAt(0) : 0;
7129
7132
  return t === 67 || t === 99 ? 99 : t === 76 || t === 108 ? 108 : t === 82 || t === 114 ? 114 : 0;
7130
7133
  }
7131
- function qs(e, t, n, r) {
7134
+ function Xs(e, t, n, r) {
7132
7135
  const i = n.enter("blockquote"), o = n.createTracker(r);
7133
7136
  o.move("> "), o.shift(2);
7134
7137
  const l = n.indentLines(
7135
7138
  n.containerFlow(e, o.current()),
7136
- Ws
7139
+ Qs
7137
7140
  );
7138
7141
  return i(), l;
7139
7142
  }
7140
- function Ws(e, t, n) {
7143
+ function Qs(e, t, n) {
7141
7144
  return ">" + (n ? "" : " ") + e;
7142
7145
  }
7143
- function Ys(e, t) {
7146
+ function Gs(e, t) {
7144
7147
  return nr(e, t.inConstruct, !0) && !nr(e, t.notInConstruct, !1);
7145
7148
  }
7146
7149
  function nr(e, t, n) {
@@ -7156,12 +7159,12 @@ function tr(e, t, n, r) {
7156
7159
  let i = -1;
7157
7160
  for (; ++i < n.unsafe.length; )
7158
7161
  if (n.unsafe[i].character === `
7159
- ` && Ys(n.stack, n.unsafe[i]))
7162
+ ` && Gs(n.stack, n.unsafe[i]))
7160
7163
  return /[ \t]/.test(r.before) ? "" : " ";
7161
7164
  return `\\
7162
7165
  `;
7163
7166
  }
7164
- function Xs(e, t) {
7167
+ function Ks(e, t) {
7165
7168
  const n = String(e);
7166
7169
  let r = n.indexOf(t), i = r, o = 0, l = 0;
7167
7170
  if (typeof t != "string")
@@ -7170,13 +7173,13 @@ function Xs(e, t) {
7170
7173
  r === i ? ++o > l && (l = o) : o = 1, i = r + t.length, r = n.indexOf(t, i);
7171
7174
  return l;
7172
7175
  }
7173
- function Qs(e, t) {
7176
+ function Js(e, t) {
7174
7177
  return !!(t.options.fences === !1 && e.value && // If there’s no info…
7175
7178
  !e.lang && // And there’s a non-whitespace character…
7176
7179
  /[^ \r\n]/.test(e.value) && // And the value doesn’t start or end in a blank…
7177
7180
  !/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value));
7178
7181
  }
7179
- function Gs(e) {
7182
+ function Zs(e) {
7180
7183
  const t = e.options.fence || "`";
7181
7184
  if (t !== "`" && t !== "~")
7182
7185
  throw new Error(
@@ -7184,13 +7187,13 @@ function Gs(e) {
7184
7187
  );
7185
7188
  return t;
7186
7189
  }
7187
- function Ks(e, t, n, r) {
7188
- const i = Gs(n), o = e.value || "", l = i === "`" ? "GraveAccent" : "Tilde";
7189
- if (Qs(e, n)) {
7190
- const c = n.enter("codeIndented"), p = n.indentLines(o, Js);
7190
+ function ec(e, t, n, r) {
7191
+ const i = Zs(n), o = e.value || "", l = i === "`" ? "GraveAccent" : "Tilde";
7192
+ if (Js(e, n)) {
7193
+ const c = n.enter("codeIndented"), p = n.indentLines(o, nc);
7191
7194
  return c(), p;
7192
7195
  }
7193
- const a = n.createTracker(r), u = i.repeat(Math.max(Xs(o, i) + 1, 3)), s = n.enter("codeFenced");
7196
+ const a = n.createTracker(r), u = i.repeat(Math.max(Ks(o, i) + 1, 3)), s = n.enter("codeFenced");
7194
7197
  let f = a.move(u);
7195
7198
  if (e.lang) {
7196
7199
  const c = n.enter(`codeFencedLang${l}`);
@@ -7219,7 +7222,7 @@ function Ks(e, t, n, r) {
7219
7222
  `), o && (f += a.move(o + `
7220
7223
  `)), f += a.move(u), s(), f;
7221
7224
  }
7222
- function Js(e, t, n) {
7225
+ function nc(e, t, n) {
7223
7226
  return (n ? "" : " ") + e;
7224
7227
  }
7225
7228
  function rt(e) {
@@ -7230,7 +7233,7 @@ function rt(e) {
7230
7233
  );
7231
7234
  return t;
7232
7235
  }
7233
- function Zs(e, t, n, r) {
7236
+ function tc(e, t, n, r) {
7234
7237
  const i = rt(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.enter("definition");
7235
7238
  let a = n.enter("label");
7236
7239
  const u = n.createTracker(r);
@@ -7260,7 +7263,7 @@ function Zs(e, t, n, r) {
7260
7263
  })
7261
7264
  ), s += u.move(i), a()), l(), s;
7262
7265
  }
7263
- function ec(e) {
7266
+ function rc(e) {
7264
7267
  const t = e.options.emphasis || "*";
7265
7268
  if (t !== "*" && t !== "_")
7266
7269
  throw new Error(
@@ -7268,10 +7271,10 @@ function ec(e) {
7268
7271
  );
7269
7272
  return t;
7270
7273
  }
7271
- function $e(e) {
7274
+ function qe(e) {
7272
7275
  return "&#x" + e.toString(16).toUpperCase() + ";";
7273
7276
  }
7274
- function on(e, t, n) {
7277
+ function an(e, t, n) {
7275
7278
  const r = Le(e), i = Le(t);
7276
7279
  return r === void 0 ? i === void 0 ? (
7277
7280
  // Letter inside:
@@ -7304,9 +7307,9 @@ function on(e, t, n) {
7304
7307
  { inside: !1, outside: !1 }
7305
7308
  );
7306
7309
  }
7307
- Qr.peek = nc;
7310
+ Qr.peek = ic;
7308
7311
  function Qr(e, t, n, r) {
7309
- const i = ec(n), o = n.enter("emphasis"), l = n.createTracker(r), a = l.move(i);
7312
+ const i = rc(n), o = n.enter("emphasis"), l = n.createTracker(r), a = l.move(i);
7310
7313
  let u = l.move(
7311
7314
  n.containerPhrasing(e, {
7312
7315
  after: i,
@@ -7314,33 +7317,33 @@ function Qr(e, t, n, r) {
7314
7317
  ...l.current()
7315
7318
  })
7316
7319
  );
7317
- const s = u.charCodeAt(0), f = on(
7320
+ const s = u.charCodeAt(0), f = an(
7318
7321
  r.before.charCodeAt(r.before.length - 1),
7319
7322
  s,
7320
7323
  i
7321
7324
  );
7322
- f.inside && (u = $e(s) + u.slice(1));
7323
- const c = u.charCodeAt(u.length - 1), p = on(r.after.charCodeAt(0), c, i);
7324
- p.inside && (u = u.slice(0, -1) + $e(c));
7325
+ f.inside && (u = qe(s) + u.slice(1));
7326
+ const c = u.charCodeAt(u.length - 1), p = an(r.after.charCodeAt(0), c, i);
7327
+ p.inside && (u = u.slice(0, -1) + qe(c));
7325
7328
  const h = l.move(i);
7326
7329
  return o(), n.attentionEncodeSurroundingInfo = {
7327
7330
  after: p.outside,
7328
7331
  before: f.outside
7329
7332
  }, a + u + h;
7330
7333
  }
7331
- function nc(e, t, n) {
7334
+ function ic(e, t, n) {
7332
7335
  return n.options.emphasis || "*";
7333
7336
  }
7334
- function tc(e, t) {
7337
+ function lc(e, t) {
7335
7338
  let n = !1;
7336
7339
  return nt(e, function(r) {
7337
7340
  if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
7338
7341
  return n = !0, On;
7339
7342
  }), !!((!e.depth || e.depth < 3) && Xn(e) && (t.options.setext || n));
7340
7343
  }
7341
- function rc(e, t, n, r) {
7344
+ function oc(e, t, n, r) {
7342
7345
  const i = Math.max(Math.min(6, e.depth || 1), 1), o = n.createTracker(r);
7343
- if (tc(e, n)) {
7346
+ if (lc(e, n)) {
7344
7347
  const f = n.enter("headingSetext"), c = n.enter("phrasing"), p = n.containerPhrasing(e, {
7345
7348
  ...o.current(),
7346
7349
  before: `
@@ -7365,16 +7368,16 @@ function rc(e, t, n, r) {
7365
7368
  `,
7366
7369
  ...o.current()
7367
7370
  });
7368
- return /^[\t ]/.test(s) && (s = $e(s.charCodeAt(0)) + s.slice(1)), s = s ? l + " " + s : l, n.options.closeAtx && (s += " " + l), u(), a(), s;
7371
+ return /^[\t ]/.test(s) && (s = qe(s.charCodeAt(0)) + s.slice(1)), s = s ? l + " " + s : l, n.options.closeAtx && (s += " " + l), u(), a(), s;
7369
7372
  }
7370
- Gr.peek = ic;
7373
+ Gr.peek = ac;
7371
7374
  function Gr(e) {
7372
7375
  return e.value || "";
7373
7376
  }
7374
- function ic() {
7377
+ function ac() {
7375
7378
  return "<";
7376
7379
  }
7377
- Kr.peek = lc;
7380
+ Kr.peek = uc;
7378
7381
  function Kr(e, t, n, r) {
7379
7382
  const i = rt(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.enter("image");
7380
7383
  let a = n.enter("label");
@@ -7400,10 +7403,10 @@ function Kr(e, t, n, r) {
7400
7403
  })
7401
7404
  ), s += u.move(i), a()), s += u.move(")"), l(), s;
7402
7405
  }
7403
- function lc() {
7406
+ function uc() {
7404
7407
  return "!";
7405
7408
  }
7406
- Jr.peek = oc;
7409
+ Jr.peek = sc;
7407
7410
  function Jr(e, t, n, r) {
7408
7411
  const i = e.referenceType, o = n.enter("imageReference");
7409
7412
  let l = n.enter("label");
@@ -7424,10 +7427,10 @@ function Jr(e, t, n, r) {
7424
7427
  });
7425
7428
  return l(), n.stack = f, o(), i === "full" || !s || s !== c ? u += a.move(c + "]") : i === "shortcut" ? u = u.slice(0, -1) : u += a.move("]"), u;
7426
7429
  }
7427
- function oc() {
7430
+ function sc() {
7428
7431
  return "!";
7429
7432
  }
7430
- Zr.peek = ac;
7433
+ Zr.peek = cc;
7431
7434
  function Zr(e, t, n) {
7432
7435
  let r = e.value || "", i = "`", o = -1;
7433
7436
  for (; new RegExp("(^|[^`])" + i + "([^`]|$)").test(r); )
@@ -7443,7 +7446,7 @@ function Zr(e, t, n) {
7443
7446
  }
7444
7447
  return i + r + i;
7445
7448
  }
7446
- function ac() {
7449
+ function cc() {
7447
7450
  return "`";
7448
7451
  }
7449
7452
  function ei(e, t) {
@@ -7457,7 +7460,7 @@ function ei(e, t) {
7457
7460
  // references don’t work), space, or angle brackets…
7458
7461
  !/[\0- <>\u007F]/.test(e.url));
7459
7462
  }
7460
- ni.peek = uc;
7463
+ ni.peek = fc;
7461
7464
  function ni(e, t, n, r) {
7462
7465
  const i = rt(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.createTracker(r);
7463
7466
  let a, u;
@@ -7499,10 +7502,10 @@ function ni(e, t, n, r) {
7499
7502
  })
7500
7503
  ), s += l.move(i), u()), s += l.move(")"), a(), s;
7501
7504
  }
7502
- function uc(e, t, n) {
7505
+ function fc(e, t, n) {
7503
7506
  return ei(e, n) ? "<" : "[";
7504
7507
  }
7505
- ti.peek = sc;
7508
+ ti.peek = hc;
7506
7509
  function ti(e, t, n, r) {
7507
7510
  const i = e.referenceType, o = n.enter("linkReference");
7508
7511
  let l = n.enter("label");
@@ -7523,7 +7526,7 @@ function ti(e, t, n, r) {
7523
7526
  });
7524
7527
  return l(), n.stack = f, o(), i === "full" || !s || s !== c ? u += a.move(c + "]") : i === "shortcut" ? u = u.slice(0, -1) : u += a.move("]"), u;
7525
7528
  }
7526
- function sc() {
7529
+ function hc() {
7527
7530
  return "[";
7528
7531
  }
7529
7532
  function it(e) {
@@ -7534,7 +7537,7 @@ function it(e) {
7534
7537
  );
7535
7538
  return t;
7536
7539
  }
7537
- function cc(e) {
7540
+ function pc(e) {
7538
7541
  const t = it(e), n = e.options.bulletOther;
7539
7542
  if (!n)
7540
7543
  return t === "*" ? "-" : "*";
@@ -7548,7 +7551,7 @@ function cc(e) {
7548
7551
  );
7549
7552
  return n;
7550
7553
  }
7551
- function fc(e) {
7554
+ function mc(e) {
7552
7555
  const t = e.options.bulletOrdered || ".";
7553
7556
  if (t !== "." && t !== ")")
7554
7557
  throw new Error(
@@ -7564,10 +7567,10 @@ function ri(e) {
7564
7567
  );
7565
7568
  return t;
7566
7569
  }
7567
- function hc(e, t, n, r) {
7570
+ function gc(e, t, n, r) {
7568
7571
  const i = n.enter("list"), o = n.bulletCurrent;
7569
- let l = e.ordered ? fc(n) : it(n);
7570
- const a = e.ordered ? l === "." ? ")" : "." : cc(n);
7572
+ let l = e.ordered ? mc(n) : it(n);
7573
+ const a = e.ordered ? l === "." ? ")" : "." : pc(n);
7571
7574
  let u = t && n.bulletLastUsed ? l === n.bulletLastUsed : !1;
7572
7575
  if (!e.ordered) {
7573
7576
  const f = e.children ? e.children[0] : void 0;
@@ -7592,7 +7595,7 @@ function hc(e, t, n, r) {
7592
7595
  const s = n.containerFlow(e, r);
7593
7596
  return n.bulletLastUsed = l, n.bulletCurrent = o, i(), s;
7594
7597
  }
7595
- function pc(e) {
7598
+ function dc(e) {
7596
7599
  const t = e.options.listItemIndent || "one";
7597
7600
  if (t !== "tab" && t !== "one" && t !== "mixed")
7598
7601
  throw new Error(
@@ -7600,8 +7603,8 @@ function pc(e) {
7600
7603
  );
7601
7604
  return t;
7602
7605
  }
7603
- function mc(e, t, n, r) {
7604
- const i = pc(n);
7606
+ function yc(e, t, n, r) {
7607
+ const i = dc(n);
7605
7608
  let o = n.bulletCurrent || it(n);
7606
7609
  t && t.type === "list" && t.ordered && (o = (typeof t.start == "number" && t.start > -1 ? t.start : 1) + (n.options.incrementListMarker === !1 ? 0 : t.children.indexOf(e)) + o);
7607
7610
  let l = o.length + 1;
@@ -7617,13 +7620,13 @@ function mc(e, t, n, r) {
7617
7620
  return p ? (h ? "" : " ".repeat(l)) + c : (h ? o : o + " ".repeat(l - o.length)) + c;
7618
7621
  }
7619
7622
  }
7620
- function gc(e, t, n, r) {
7623
+ function kc(e, t, n, r) {
7621
7624
  const i = n.enter("paragraph"), o = n.enter("phrasing"), l = n.containerPhrasing(e, r);
7622
7625
  return o(), i(), l;
7623
7626
  }
7624
- const dc = (
7627
+ const xc = (
7625
7628
  /** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
7626
- fn([
7629
+ hn([
7627
7630
  "break",
7628
7631
  "delete",
7629
7632
  "emphasis",
@@ -7647,12 +7650,12 @@ const dc = (
7647
7650
  "textDirective"
7648
7651
  ])
7649
7652
  );
7650
- function yc(e, t, n, r) {
7653
+ function bc(e, t, n, r) {
7651
7654
  return (e.children.some(function(l) {
7652
- return dc(l);
7655
+ return xc(l);
7653
7656
  }) ? n.containerPhrasing : n.containerFlow).call(n, e, r);
7654
7657
  }
7655
- function kc(e) {
7658
+ function wc(e) {
7656
7659
  const t = e.options.strong || "*";
7657
7660
  if (t !== "*" && t !== "_")
7658
7661
  throw new Error(
@@ -7660,9 +7663,9 @@ function kc(e) {
7660
7663
  );
7661
7664
  return t;
7662
7665
  }
7663
- ii.peek = xc;
7666
+ ii.peek = Sc;
7664
7667
  function ii(e, t, n, r) {
7665
- const i = kc(n), o = n.enter("strong"), l = n.createTracker(r), a = l.move(i + i);
7668
+ const i = wc(n), o = n.enter("strong"), l = n.createTracker(r), a = l.move(i + i);
7666
7669
  let u = l.move(
7667
7670
  n.containerPhrasing(e, {
7668
7671
  after: i,
@@ -7670,27 +7673,27 @@ function ii(e, t, n, r) {
7670
7673
  ...l.current()
7671
7674
  })
7672
7675
  );
7673
- const s = u.charCodeAt(0), f = on(
7676
+ const s = u.charCodeAt(0), f = an(
7674
7677
  r.before.charCodeAt(r.before.length - 1),
7675
7678
  s,
7676
7679
  i
7677
7680
  );
7678
- f.inside && (u = $e(s) + u.slice(1));
7679
- const c = u.charCodeAt(u.length - 1), p = on(r.after.charCodeAt(0), c, i);
7680
- p.inside && (u = u.slice(0, -1) + $e(c));
7681
+ f.inside && (u = qe(s) + u.slice(1));
7682
+ const c = u.charCodeAt(u.length - 1), p = an(r.after.charCodeAt(0), c, i);
7683
+ p.inside && (u = u.slice(0, -1) + qe(c));
7681
7684
  const h = l.move(i + i);
7682
7685
  return o(), n.attentionEncodeSurroundingInfo = {
7683
7686
  after: p.outside,
7684
7687
  before: f.outside
7685
7688
  }, a + u + h;
7686
7689
  }
7687
- function xc(e, t, n) {
7690
+ function Sc(e, t, n) {
7688
7691
  return n.options.strong || "*";
7689
7692
  }
7690
- function bc(e, t, n, r) {
7693
+ function Cc(e, t, n, r) {
7691
7694
  return n.safe(e.value, r);
7692
7695
  }
7693
- function wc(e) {
7696
+ function Ec(e) {
7694
7697
  const t = e.options.ruleRepetition || 3;
7695
7698
  if (t < 3)
7696
7699
  throw new Error(
@@ -7698,50 +7701,50 @@ function wc(e) {
7698
7701
  );
7699
7702
  return t;
7700
7703
  }
7701
- function Sc(e, t, n) {
7702
- const r = (ri(n) + (n.options.ruleSpaces ? " " : "")).repeat(wc(n));
7704
+ function Ic(e, t, n) {
7705
+ const r = (ri(n) + (n.options.ruleSpaces ? " " : "")).repeat(Ec(n));
7703
7706
  return n.options.ruleSpaces ? r.slice(0, -1) : r;
7704
7707
  }
7705
7708
  const li = {
7706
- blockquote: qs,
7709
+ blockquote: Xs,
7707
7710
  break: tr,
7708
- code: Ks,
7709
- definition: Zs,
7711
+ code: ec,
7712
+ definition: tc,
7710
7713
  emphasis: Qr,
7711
7714
  hardBreak: tr,
7712
- heading: rc,
7715
+ heading: oc,
7713
7716
  html: Gr,
7714
7717
  image: Kr,
7715
7718
  imageReference: Jr,
7716
7719
  inlineCode: Zr,
7717
7720
  link: ni,
7718
7721
  linkReference: ti,
7719
- list: hc,
7720
- listItem: mc,
7721
- paragraph: gc,
7722
- root: yc,
7722
+ list: gc,
7723
+ listItem: yc,
7724
+ paragraph: kc,
7725
+ root: bc,
7723
7726
  strong: ii,
7724
- text: bc,
7725
- thematicBreak: Sc
7727
+ text: Cc,
7728
+ thematicBreak: Ic
7726
7729
  };
7727
- function Cc() {
7730
+ function Ac() {
7728
7731
  return {
7729
7732
  enter: {
7730
- table: Ec,
7733
+ table: Tc,
7731
7734
  tableData: rr,
7732
7735
  tableHeader: rr,
7733
- tableRow: Ac
7736
+ tableRow: vc
7734
7737
  },
7735
7738
  exit: {
7736
- codeText: Tc,
7737
- table: Ic,
7738
- tableData: Tn,
7739
- tableHeader: Tn,
7740
- tableRow: Tn
7739
+ codeText: zc,
7740
+ table: Pc,
7741
+ tableData: Pn,
7742
+ tableHeader: Pn,
7743
+ tableRow: Pn
7741
7744
  }
7742
7745
  };
7743
7746
  }
7744
- function Ec(e) {
7747
+ function Tc(e) {
7745
7748
  const t = e._align;
7746
7749
  this.enter(
7747
7750
  {
@@ -7754,28 +7757,28 @@ function Ec(e) {
7754
7757
  e
7755
7758
  ), this.data.inTable = !0;
7756
7759
  }
7757
- function Ic(e) {
7760
+ function Pc(e) {
7758
7761
  this.exit(e), this.data.inTable = void 0;
7759
7762
  }
7760
- function Ac(e) {
7763
+ function vc(e) {
7761
7764
  this.enter({ type: "tableRow", children: [] }, e);
7762
7765
  }
7763
- function Tn(e) {
7766
+ function Pn(e) {
7764
7767
  this.exit(e);
7765
7768
  }
7766
7769
  function rr(e) {
7767
7770
  this.enter({ type: "tableCell", children: [] }, e);
7768
7771
  }
7769
- function Tc(e) {
7772
+ function zc(e) {
7770
7773
  let t = this.resume();
7771
- this.data.inTable && (t = t.replace(/\\([\\|])/g, Pc));
7774
+ this.data.inTable && (t = t.replace(/\\([\\|])/g, Dc));
7772
7775
  const n = this.stack[this.stack.length - 1];
7773
7776
  n.type, n.value = t, this.exit(e);
7774
7777
  }
7775
- function Pc(e, t) {
7778
+ function Dc(e, t) {
7776
7779
  return t === "|" ? t : e;
7777
7780
  }
7778
- function vc(e) {
7781
+ function Lc(e) {
7779
7782
  const t = e || {}, n = t.tableCellPadding, r = t.tablePipeAlign, i = t.stringLength, o = n ? " " : "|";
7780
7783
  return {
7781
7784
  unsafe: [
@@ -7821,7 +7824,7 @@ function vc(e) {
7821
7824
  return A(), y(), E;
7822
7825
  }
7823
7826
  function s(h, d) {
7824
- return Vs(h, {
7827
+ return Ws(h, {
7825
7828
  align: d,
7826
7829
  // @ts-expect-error: `markdown-table` types should support `null`.
7827
7830
  alignDelimiters: r,
@@ -7852,26 +7855,26 @@ function vc(e) {
7852
7855
  return x.stack.includes("tableCell") && (C = C.replace(/\|/g, "\\$&")), C;
7853
7856
  }
7854
7857
  }
7855
- function zc() {
7858
+ function Fc() {
7856
7859
  return {
7857
7860
  exit: {
7858
7861
  taskListCheckValueChecked: ir,
7859
7862
  taskListCheckValueUnchecked: ir,
7860
- paragraph: Lc
7863
+ paragraph: Rc
7861
7864
  }
7862
7865
  };
7863
7866
  }
7864
- function Dc() {
7867
+ function _c() {
7865
7868
  return {
7866
7869
  unsafe: [{ atBreak: !0, character: "-", after: "[:|-]" }],
7867
- handlers: { listItem: Fc }
7870
+ handlers: { listItem: Oc }
7868
7871
  };
7869
7872
  }
7870
7873
  function ir(e) {
7871
7874
  const t = this.stack[this.stack.length - 2];
7872
7875
  t.type, t.checked = e.type === "taskListCheckValueChecked";
7873
7876
  }
7874
- function Lc(e) {
7877
+ function Rc(e) {
7875
7878
  const t = this.stack[this.stack.length - 2];
7876
7879
  if (t && t.type === "listItem" && typeof t.checked == "boolean") {
7877
7880
  const n = this.stack[this.stack.length - 1];
@@ -7892,7 +7895,7 @@ function Lc(e) {
7892
7895
  }
7893
7896
  this.exit(e);
7894
7897
  }
7895
- function Fc(e, t, n, r) {
7898
+ function Oc(e, t, n, r) {
7896
7899
  const i = e.children[0], o = typeof e.checked == "boolean" && i && i.type === "paragraph", l = "[" + (e.checked ? "x" : " ") + "] ", a = n.createTracker(r);
7897
7900
  o && a.move(l);
7898
7901
  let u = li.listItem(e, t, n, {
@@ -7904,55 +7907,55 @@ function Fc(e, t, n, r) {
7904
7907
  return f + l;
7905
7908
  }
7906
7909
  }
7907
- function _c() {
7910
+ function Mc() {
7908
7911
  return [
7909
- hs(),
7910
- Fs(),
7911
- Ms(),
7912
- Cc(),
7913
- zc()
7912
+ gs(),
7913
+ Os(),
7914
+ js(),
7915
+ Ac(),
7916
+ Fc()
7914
7917
  ];
7915
7918
  }
7916
- function Rc(e) {
7919
+ function Nc(e) {
7917
7920
  return {
7918
7921
  extensions: [
7919
- ps(),
7920
- _s(e),
7921
- Ns(),
7922
- vc(e),
7923
- Dc()
7922
+ ds(),
7923
+ Ms(e),
7924
+ Hs(),
7925
+ Lc(e),
7926
+ _c()
7924
7927
  ]
7925
7928
  };
7926
7929
  }
7927
- const Oc = {
7928
- tokenize: Uc,
7930
+ const Bc = {
7931
+ tokenize: qc,
7929
7932
  partial: !0
7930
7933
  }, oi = {
7931
- tokenize: Vc,
7934
+ tokenize: Wc,
7932
7935
  partial: !0
7933
7936
  }, ai = {
7934
- tokenize: $c,
7937
+ tokenize: Yc,
7935
7938
  partial: !0
7936
7939
  }, ui = {
7937
- tokenize: qc,
7940
+ tokenize: Xc,
7938
7941
  partial: !0
7939
- }, Mc = {
7940
- tokenize: Wc,
7942
+ }, jc = {
7943
+ tokenize: Qc,
7941
7944
  partial: !0
7942
7945
  }, si = {
7943
7946
  name: "wwwAutolink",
7944
- tokenize: jc,
7947
+ tokenize: Vc,
7945
7948
  previous: fi
7946
7949
  }, ci = {
7947
7950
  name: "protocolAutolink",
7948
- tokenize: Hc,
7951
+ tokenize: $c,
7949
7952
  previous: hi
7950
7953
  }, de = {
7951
7954
  name: "emailAutolink",
7952
- tokenize: Bc,
7955
+ tokenize: Uc,
7953
7956
  previous: pi
7954
7957
  }, fe = {};
7955
- function Nc() {
7958
+ function Hc() {
7956
7959
  return {
7957
7960
  text: fe
7958
7961
  };
@@ -7968,7 +7971,7 @@ fe[72] = [de, ci];
7968
7971
  fe[104] = [de, ci];
7969
7972
  fe[87] = [de, si];
7970
7973
  fe[119] = [de, si];
7971
- function Bc(e, t, n) {
7974
+ function Uc(e, t, n) {
7972
7975
  const r = this;
7973
7976
  let i, o;
7974
7977
  return l;
@@ -7979,7 +7982,7 @@ function Bc(e, t, n) {
7979
7982
  return jn(c) ? (e.consume(c), a) : c === 64 ? (e.consume(c), u) : n(c);
7980
7983
  }
7981
7984
  function u(c) {
7982
- return c === 46 ? e.check(Mc, f, s)(c) : c === 45 || c === 95 || G(c) ? (o = !0, e.consume(c), u) : f(c);
7985
+ return c === 46 ? e.check(jc, f, s)(c) : c === 45 || c === 95 || G(c) ? (o = !0, e.consume(c), u) : f(c);
7983
7986
  }
7984
7987
  function s(c) {
7985
7988
  return e.consume(c), i = !0, u;
@@ -7988,17 +7991,17 @@ function Bc(e, t, n) {
7988
7991
  return o && i && J(r.previous) ? (e.exit("literalAutolinkEmail"), e.exit("literalAutolink"), t(c)) : n(c);
7989
7992
  }
7990
7993
  }
7991
- function jc(e, t, n) {
7994
+ function Vc(e, t, n) {
7992
7995
  const r = this;
7993
7996
  return i;
7994
7997
  function i(l) {
7995
- return l !== 87 && l !== 119 || !fi.call(r, r.previous) || lt(r.events) ? n(l) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(Oc, e.attempt(oi, e.attempt(ai, o), n), n)(l));
7998
+ return l !== 87 && l !== 119 || !fi.call(r, r.previous) || lt(r.events) ? n(l) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(Bc, e.attempt(oi, e.attempt(ai, o), n), n)(l));
7996
7999
  }
7997
8000
  function o(l) {
7998
8001
  return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(l);
7999
8002
  }
8000
8003
  }
8001
- function Hc(e, t, n) {
8004
+ function $c(e, t, n) {
8002
8005
  const r = this;
8003
8006
  let i = "", o = !1;
8004
8007
  return l;
@@ -8019,13 +8022,13 @@ function Hc(e, t, n) {
8019
8022
  return c === 47 ? (e.consume(c), o ? s : (o = !0, u)) : n(c);
8020
8023
  }
8021
8024
  function s(c) {
8022
- return c === null || tn(c) || U(c) || Ee(c) || un(c) ? n(c) : e.attempt(oi, e.attempt(ai, f), n)(c);
8025
+ return c === null || rn(c) || U(c) || Ee(c) || sn(c) ? n(c) : e.attempt(oi, e.attempt(ai, f), n)(c);
8023
8026
  }
8024
8027
  function f(c) {
8025
8028
  return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(c);
8026
8029
  }
8027
8030
  }
8028
- function Uc(e, t, n) {
8031
+ function qc(e, t, n) {
8029
8032
  let r = 0;
8030
8033
  return i;
8031
8034
  function i(l) {
@@ -8035,11 +8038,11 @@ function Uc(e, t, n) {
8035
8038
  return l === null ? n(l) : t(l);
8036
8039
  }
8037
8040
  }
8038
- function Vc(e, t, n) {
8041
+ function Wc(e, t, n) {
8039
8042
  let r, i, o;
8040
8043
  return l;
8041
8044
  function l(s) {
8042
- return s === 46 || s === 95 ? e.check(ui, u, a)(s) : s === null || U(s) || Ee(s) || s !== 45 && un(s) ? u(s) : (o = !0, e.consume(s), l);
8045
+ return s === 46 || s === 95 ? e.check(ui, u, a)(s) : s === null || U(s) || Ee(s) || s !== 45 && sn(s) ? u(s) : (o = !0, e.consume(s), l);
8043
8046
  }
8044
8047
  function a(s) {
8045
8048
  return s === 95 ? r = !0 : (i = r, r = void 0), e.consume(s), l;
@@ -8048,7 +8051,7 @@ function Vc(e, t, n) {
8048
8051
  return i || r || !o ? n(s) : t(s);
8049
8052
  }
8050
8053
  }
8051
- function $c(e, t) {
8054
+ function Yc(e, t) {
8052
8055
  let n = 0, r = 0;
8053
8056
  return i;
8054
8057
  function i(l) {
@@ -8058,7 +8061,7 @@ function $c(e, t) {
8058
8061
  return l === 41 && r++, e.consume(l), i;
8059
8062
  }
8060
8063
  }
8061
- function qc(e, t, n) {
8064
+ function Xc(e, t, n) {
8062
8065
  return r;
8063
8066
  function r(a) {
8064
8067
  return a === 33 || a === 34 || a === 39 || a === 41 || a === 42 || a === 44 || a === 46 || a === 58 || a === 59 || a === 63 || a === 95 || a === 126 ? (e.consume(a), r) : a === 38 ? (e.consume(a), o) : a === 93 ? (e.consume(a), i) : (
@@ -8077,7 +8080,7 @@ function qc(e, t, n) {
8077
8080
  return a === 59 ? (e.consume(a), r) : J(a) ? (e.consume(a), l) : n(a);
8078
8081
  }
8079
8082
  }
8080
- function Wc(e, t, n) {
8083
+ function Qc(e, t, n) {
8081
8084
  return r;
8082
8085
  function r(o) {
8083
8086
  return e.consume(o), i;
@@ -8113,37 +8116,37 @@ function lt(e) {
8113
8116
  }
8114
8117
  return e.length > 0 && !n && (e[e.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), n;
8115
8118
  }
8116
- const Yc = {
8117
- tokenize: nf,
8119
+ const Gc = {
8120
+ tokenize: lf,
8118
8121
  partial: !0
8119
8122
  };
8120
- function Xc() {
8123
+ function Kc() {
8121
8124
  return {
8122
8125
  document: {
8123
8126
  91: {
8124
8127
  name: "gfmFootnoteDefinition",
8125
- tokenize: Jc,
8128
+ tokenize: nf,
8126
8129
  continuation: {
8127
- tokenize: Zc
8130
+ tokenize: tf
8128
8131
  },
8129
- exit: ef
8132
+ exit: rf
8130
8133
  }
8131
8134
  },
8132
8135
  text: {
8133
8136
  91: {
8134
8137
  name: "gfmFootnoteCall",
8135
- tokenize: Kc
8138
+ tokenize: ef
8136
8139
  },
8137
8140
  93: {
8138
8141
  name: "gfmPotentialFootnoteCall",
8139
8142
  add: "after",
8140
- tokenize: Qc,
8141
- resolveTo: Gc
8143
+ tokenize: Jc,
8144
+ resolveTo: Zc
8142
8145
  }
8143
8146
  }
8144
8147
  };
8145
8148
  }
8146
- function Qc(e, t, n) {
8149
+ function Jc(e, t, n) {
8147
8150
  const r = this;
8148
8151
  let i = r.events.length;
8149
8152
  const o = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
@@ -8168,7 +8171,7 @@ function Qc(e, t, n) {
8168
8171
  return s.codePointAt(0) !== 94 || !o.includes(s.slice(1)) ? n(u) : (e.enter("gfmFootnoteCallLabelMarker"), e.consume(u), e.exit("gfmFootnoteCallLabelMarker"), t(u));
8169
8172
  }
8170
8173
  }
8171
- function Gc(e, t) {
8174
+ function Zc(e, t) {
8172
8175
  let n = e.length;
8173
8176
  for (; n--; )
8174
8177
  if (e[n][1].type === "labelImage" && e[n][0] === "enter") {
@@ -8218,7 +8221,7 @@ function Gc(e, t) {
8218
8221
  ];
8219
8222
  return e.splice(n, e.length - n + 1, ...a), e;
8220
8223
  }
8221
- function Kc(e, t, n) {
8224
+ function ef(e, t, n) {
8222
8225
  const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
8223
8226
  let o = 0, l;
8224
8227
  return a;
@@ -8248,7 +8251,7 @@ function Kc(e, t, n) {
8248
8251
  return c === 91 || c === 92 || c === 93 ? (e.consume(c), o++, s) : s(c);
8249
8252
  }
8250
8253
  }
8251
- function Jc(e, t, n) {
8254
+ function nf(e, t, n) {
8252
8255
  const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
8253
8256
  let o, l = 0, a;
8254
8257
  return u;
@@ -8284,13 +8287,13 @@ function Jc(e, t, n) {
8284
8287
  return t(d);
8285
8288
  }
8286
8289
  }
8287
- function Zc(e, t, n) {
8288
- return e.check(We, t, e.attempt(Yc, t, n));
8290
+ function tf(e, t, n) {
8291
+ return e.check(Ye, t, e.attempt(Gc, t, n));
8289
8292
  }
8290
- function ef(e) {
8293
+ function rf(e) {
8291
8294
  e.exit("gfmFootnoteDefinition");
8292
8295
  }
8293
- function nf(e, t, n) {
8296
+ function lf(e, t, n) {
8294
8297
  const r = this;
8295
8298
  return O(e, i, "gfmFootnoteDefinitionIndent", 5);
8296
8299
  function i(o) {
@@ -8298,7 +8301,7 @@ function nf(e, t, n) {
8298
8301
  return l && l[1].type === "gfmFootnoteDefinitionIndent" && l[2].sliceSerialize(l[1], !0).length === 4 ? t(o) : n(o);
8299
8302
  }
8300
8303
  }
8301
- function tf(e) {
8304
+ function of(e) {
8302
8305
  let n = (e || {}).singleTilde;
8303
8306
  const r = {
8304
8307
  name: "strikethrough",
@@ -8334,7 +8337,7 @@ function tf(e) {
8334
8337
  start: Object.assign({}, l[s][1].end),
8335
8338
  end: Object.assign({}, l[u][1].start)
8336
8339
  }, p = [["enter", f, a], ["enter", l[s][1], a], ["exit", l[s][1], a], ["enter", c, a]], h = a.parser.constructs.insideSpan.null;
8337
- h && re(p, p.length, 0, sn(h, l.slice(s + 1, u), a)), re(p, p.length, 0, [["exit", c, a], ["enter", l[u][1], a], ["exit", l[u][1], a], ["exit", f, a]]), re(l, s - 1, u - s + 3, p), u = s + p.length - 2;
8340
+ h && re(p, p.length, 0, cn(h, l.slice(s + 1, u), a)), re(p, p.length, 0, [["exit", c, a], ["enter", l[u][1], a], ["exit", l[u][1], a], ["exit", f, a]]), re(l, s - 1, u - s + 3, p), u = s + p.length - 2;
8338
8341
  break;
8339
8342
  }
8340
8343
  }
@@ -8359,7 +8362,7 @@ function tf(e) {
8359
8362
  }
8360
8363
  }
8361
8364
  }
8362
- class rf {
8365
+ class af {
8363
8366
  /**
8364
8367
  * Create a new edit map.
8365
8368
  */
@@ -8375,7 +8378,7 @@ class rf {
8375
8378
  * @returns {undefined}
8376
8379
  */
8377
8380
  add(t, n, r) {
8378
- lf(this, t, n, r);
8381
+ uf(this, t, n, r);
8379
8382
  }
8380
8383
  // To do: add this when moving to `micromark`.
8381
8384
  // /**
@@ -8414,7 +8417,7 @@ class rf {
8414
8417
  this.map.length = 0;
8415
8418
  }
8416
8419
  }
8417
- function lf(e, t, n, r) {
8420
+ function uf(e, t, n, r) {
8418
8421
  let i = 0;
8419
8422
  if (!(n === 0 && r.length === 0)) {
8420
8423
  for (; i < e.map.length; ) {
@@ -8427,7 +8430,7 @@ function lf(e, t, n, r) {
8427
8430
  e.map.push([t, n, r]);
8428
8431
  }
8429
8432
  }
8430
- function of(e, t) {
8433
+ function sf(e, t) {
8431
8434
  let n = !1;
8432
8435
  const r = [];
8433
8436
  for (; t < e.length; ) {
@@ -8447,18 +8450,18 @@ function of(e, t) {
8447
8450
  }
8448
8451
  return r;
8449
8452
  }
8450
- function af() {
8453
+ function cf() {
8451
8454
  return {
8452
8455
  flow: {
8453
8456
  null: {
8454
8457
  name: "table",
8455
- tokenize: uf,
8456
- resolveAll: sf
8458
+ tokenize: ff,
8459
+ resolveAll: hf
8457
8460
  }
8458
8461
  }
8459
8462
  };
8460
8463
  }
8461
- function uf(e, t, n) {
8464
+ function ff(e, t, n) {
8462
8465
  const r = this;
8463
8466
  let i = 0, o = 0, l;
8464
8467
  return a;
@@ -8528,9 +8531,9 @@ function uf(e, t, n) {
8528
8531
  return k === 92 || k === 124 ? (e.consume(k), $) : $(k);
8529
8532
  }
8530
8533
  }
8531
- function sf(e, t) {
8534
+ function hf(e, t) {
8532
8535
  let n = -1, r = !0, i = 0, o = [0, 0, 0, 0], l = [0, 0, 0, 0], a = !1, u = 0, s, f, c;
8533
- const p = new rf();
8536
+ const p = new af();
8534
8537
  for (; ++n < e.length; ) {
8535
8538
  const h = e[n], d = h[1];
8536
8539
  h[0] === "enter" ? d.type === "tableHead" ? (a = !1, u !== 0 && (lr(p, t, u, s, f), f = void 0, u = 0), s = {
@@ -8543,15 +8546,15 @@ function sf(e, t) {
8543
8546
  start: Object.assign({}, d.start),
8544
8547
  // Note: correct end is set later.
8545
8548
  end: Object.assign({}, d.end)
8546
- }, p.add(n, 0, [["enter", f, t]])), i = d.type === "tableDelimiterRow" ? 2 : f ? 3 : 1) : i && (d.type === "data" || d.type === "tableDelimiterMarker" || d.type === "tableDelimiterFiller") ? (r = !1, l[2] === 0 && (o[1] !== 0 && (l[0] = l[1], c = Je(p, t, o, i, void 0, c), o = [0, 0, 0, 0]), l[2] = n)) : d.type === "tableCellDivider" && (r ? r = !1 : (o[1] !== 0 && (l[0] = l[1], c = Je(p, t, o, i, void 0, c)), o = l, l = [o[1], n, 0, 0])) : d.type === "tableHead" ? (a = !0, u = n) : d.type === "tableRow" || d.type === "tableDelimiterRow" ? (u = n, o[1] !== 0 ? (l[0] = l[1], c = Je(p, t, o, i, n, c)) : l[1] !== 0 && (c = Je(p, t, l, i, n, c)), i = 0) : i && (d.type === "data" || d.type === "tableDelimiterMarker" || d.type === "tableDelimiterFiller") && (l[3] = n);
8549
+ }, p.add(n, 0, [["enter", f, t]])), i = d.type === "tableDelimiterRow" ? 2 : f ? 3 : 1) : i && (d.type === "data" || d.type === "tableDelimiterMarker" || d.type === "tableDelimiterFiller") ? (r = !1, l[2] === 0 && (o[1] !== 0 && (l[0] = l[1], c = Ze(p, t, o, i, void 0, c), o = [0, 0, 0, 0]), l[2] = n)) : d.type === "tableCellDivider" && (r ? r = !1 : (o[1] !== 0 && (l[0] = l[1], c = Ze(p, t, o, i, void 0, c)), o = l, l = [o[1], n, 0, 0])) : d.type === "tableHead" ? (a = !0, u = n) : d.type === "tableRow" || d.type === "tableDelimiterRow" ? (u = n, o[1] !== 0 ? (l[0] = l[1], c = Ze(p, t, o, i, n, c)) : l[1] !== 0 && (c = Ze(p, t, l, i, n, c)), i = 0) : i && (d.type === "data" || d.type === "tableDelimiterMarker" || d.type === "tableDelimiterFiller") && (l[3] = n);
8547
8550
  }
8548
8551
  for (u !== 0 && lr(p, t, u, s, f), p.consume(t.events), n = -1; ++n < t.events.length; ) {
8549
8552
  const h = t.events[n];
8550
- h[0] === "enter" && h[1].type === "table" && (h[1]._align = of(t.events, n));
8553
+ h[0] === "enter" && h[1].type === "table" && (h[1]._align = sf(t.events, n));
8551
8554
  }
8552
8555
  return e;
8553
8556
  }
8554
- function Je(e, t, n, r, i, o) {
8557
+ function Ze(e, t, n, r, i, o) {
8555
8558
  const l = r === 1 ? "tableHeader" : r === 2 ? "tableDelimiter" : "tableData", a = "tableContent";
8556
8559
  n[0] !== 0 && (o.end = Object.assign({}, ze(t.events, n[0])), e.add(n[0], 0, [["exit", o, t]]));
8557
8560
  const u = ze(t.events, n[1]);
@@ -8585,18 +8588,18 @@ function ze(e, t) {
8585
8588
  const n = e[t], r = n[0] === "enter" ? "start" : "end";
8586
8589
  return n[1][r];
8587
8590
  }
8588
- const cf = {
8591
+ const pf = {
8589
8592
  name: "tasklistCheck",
8590
- tokenize: hf
8593
+ tokenize: gf
8591
8594
  };
8592
- function ff() {
8595
+ function mf() {
8593
8596
  return {
8594
8597
  text: {
8595
- 91: cf
8598
+ 91: pf
8596
8599
  }
8597
8600
  };
8598
8601
  }
8599
- function hf(e, t, n) {
8602
+ function gf(e, t, n) {
8600
8603
  const r = this;
8601
8604
  return i;
8602
8605
  function i(u) {
@@ -8615,59 +8618,92 @@ function hf(e, t, n) {
8615
8618
  }
8616
8619
  function a(u) {
8617
8620
  return v(u) ? t(u) : _(u) ? e.check({
8618
- tokenize: pf
8621
+ tokenize: df
8619
8622
  }, t, n)(u) : n(u);
8620
8623
  }
8621
8624
  }
8622
- function pf(e, t, n) {
8625
+ function df(e, t, n) {
8623
8626
  return O(e, r, "whitespace");
8624
8627
  function r(i) {
8625
8628
  return i === null ? n(i) : t(i);
8626
8629
  }
8627
8630
  }
8628
- function mf(e) {
8631
+ function yf(e) {
8629
8632
  return Sr([
8630
- Nc(),
8631
- Xc(),
8632
- tf(e),
8633
- af(),
8634
- ff()
8633
+ Hc(),
8634
+ Kc(),
8635
+ of(e),
8636
+ cf(),
8637
+ mf()
8635
8638
  ]);
8636
8639
  }
8637
- const gf = {};
8638
- function df(e) {
8640
+ const kf = {};
8641
+ function xf(e) {
8639
8642
  const t = (
8640
8643
  /** @type {Processor<Root>} */
8641
8644
  this
8642
- ), n = e || gf, r = t.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), o = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), l = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
8643
- i.push(mf(n)), o.push(_c()), l.push(Rc(n));
8645
+ ), n = e || kf, r = t.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), o = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), l = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
8646
+ i.push(yf(n)), o.push(Mc()), l.push(Nc(n));
8644
8647
  }
8645
- function yf(e) {
8646
- $r(e, [/\r?\n|\r/g, kf]);
8648
+ function bf(e) {
8649
+ $r(e, [/\r?\n|\r/g, wf]);
8647
8650
  }
8648
- function kf() {
8651
+ function wf() {
8649
8652
  return { type: "break" };
8650
8653
  }
8651
- function xf() {
8654
+ function Sf() {
8652
8655
  return function(e) {
8653
- yf(e);
8656
+ bf(e);
8654
8657
  };
8655
8658
  }
8656
- const bf = "_markdown_w6izp_1", or = {
8657
- markdown: bf
8659
+ const Cf = "_markdown_33sn4_1", or = {
8660
+ markdown: Cf
8661
+ }, Ef = {
8662
+ aside: ({ node: e, className: t, children: n, ...r }) => {
8663
+ const i = (e == null ? void 0 : e.properties) ?? {}, o = typeof i["data-admonition"] == "string" ? i["data-admonition"] : "note", l = typeof i["data-admonition-variant"] == "string" ? i["data-admonition-variant"] : "unknown", a = typeof i["data-admonition-icon"] == "string" ? i["data-admonition-icon"] : void 0, u = typeof i["data-admonition-title"] == "string" ? i["data-admonition-title"] : void 0;
8664
+ return /* @__PURE__ */ je(
8665
+ Ai,
8666
+ {
8667
+ ...r,
8668
+ className: t,
8669
+ admonitionType: o,
8670
+ variant: l,
8671
+ icon: a,
8672
+ title: u,
8673
+ children: n
8674
+ }
8675
+ );
8676
+ }
8658
8677
  };
8659
- function Cf({ children: e, className: t, components: n }) {
8660
- if (!e) return null;
8661
- const r = t ? `${or.markdown} ${t}` : or.markdown;
8662
- return /* @__PURE__ */ Pn("div", { className: r, children: /* @__PURE__ */ Pn(
8663
- rs,
8678
+ function zf({
8679
+ children: e,
8680
+ className: t,
8681
+ components: n,
8682
+ url: r,
8683
+ validate: i,
8684
+ batchValidate: o,
8685
+ debug: l = !1
8686
+ }) {
8687
+ const a = e ?? "", { output: u } = Ti(
8688
+ a,
8689
+ r,
8690
+ i,
8691
+ l,
8692
+ o
8693
+ );
8694
+ if (!a) return null;
8695
+ const s = r ? {
8696
+ a: ({ node: p, ...h }) => /* @__PURE__ */ je("a", { ...h, target: "_blank", rel: "noopener noreferrer" })
8697
+ } : {}, f = t ? `${or.markdown} ${t}` : or.markdown, c = { ...Ef, ...s, ...n };
8698
+ return /* @__PURE__ */ je("div", { className: f, children: /* @__PURE__ */ je(
8699
+ os,
8664
8700
  {
8665
- remarkPlugins: [df, xf],
8666
- components: n,
8667
- children: e
8701
+ remarkPlugins: [xf, Sf, Ii],
8702
+ components: c,
8703
+ children: u
8668
8704
  }
8669
8705
  ) });
8670
8706
  }
8671
8707
  export {
8672
- Cf as Markdown
8708
+ zf as Markdown
8673
8709
  };