@yext/pages-components 1.2.1 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,48 +1,47 @@
1
- import { jsxs as Er, jsx as Ir, Fragment as Tr } from "react/jsx-runtime";
1
+ import { a as We, b as Dt, j as Ze } from "./index-3y1PqoZ5.js";
2
2
  import "react";
3
- import { a as We, b as vt } from "./index-GeO8DZvj.js";
4
- const Un = 9, Vn = 32;
5
- function Pr(e) {
3
+ const Vn = 9, qn = 32;
4
+ function Ir(e) {
6
5
  const n = String(e), t = /\r?\n|\r/g;
7
6
  let r = t.exec(n), i = 0;
8
7
  const l = [];
9
8
  for (; r; )
10
9
  l.push(
11
- qn(n.slice(i, r.index), i > 0, !0),
10
+ $n(n.slice(i, r.index), i > 0, !0),
12
11
  r[0]
13
12
  ), i = r.index + r[0].length, r = t.exec(n);
14
- return l.push(qn(n.slice(i), i > 0, !1)), l.join("");
13
+ return l.push($n(n.slice(i), i > 0, !1)), l.join("");
15
14
  }
16
- function qn(e, n, t) {
15
+ function $n(e, n, t) {
17
16
  let r = 0, i = e.length;
18
17
  if (n) {
19
18
  let l = e.codePointAt(r);
20
- for (; l === Un || l === Vn; )
19
+ for (; l === Vn || l === qn; )
21
20
  r++, l = e.codePointAt(r);
22
21
  }
23
22
  if (t) {
24
23
  let l = e.codePointAt(i - 1);
25
- for (; l === Un || l === Vn; )
24
+ for (; l === Vn || l === qn; )
26
25
  i--, l = e.codePointAt(i - 1);
27
26
  }
28
27
  return i > r ? e.slice(r, i) : "";
29
28
  }
30
- function Ar(e, n) {
29
+ function Tr(e, n) {
31
30
  const t = {};
32
31
  return (e[e.length - 1] === "" ? [...e, ""] : e).join(
33
32
  (t.padRight ? " " : "") + "," + (t.padLeft === !1 ? "" : " ")
34
33
  ).trim();
35
34
  }
36
- const zr = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Lr = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Or = {};
37
- function $n(e, n) {
38
- return (Or.jsx ? Lr : zr).test(e);
35
+ const Pr = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Ar = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, zr = {};
36
+ function Wn(e, n) {
37
+ return (zr.jsx ? Ar : Pr).test(e);
39
38
  }
40
- const vr = /[ \t\n\f\r]/g;
41
- function Dr(e) {
42
- return typeof e == "object" ? e.type === "text" ? Wn(e.value) : !1 : Wn(e);
39
+ const Lr = /[ \t\n\f\r]/g;
40
+ function Or(e) {
41
+ return typeof e == "object" ? e.type === "text" ? Yn(e.value) : !1 : Yn(e);
43
42
  }
44
- function Wn(e) {
45
- return e.replace(vr, "") === "";
43
+ function Yn(e) {
44
+ return e.replace(Lr, "") === "";
46
45
  }
47
46
  class Me {
48
47
  /**
@@ -62,13 +61,13 @@ class Me {
62
61
  Me.prototype.normal = {};
63
62
  Me.prototype.property = {};
64
63
  Me.prototype.space = void 0;
65
- function Dt(e, n) {
64
+ function Nt(e, n) {
66
65
  const t = {}, r = {};
67
66
  for (const i of e)
68
67
  Object.assign(t, i.property), Object.assign(r, i.normal);
69
68
  return new Me(t, r, n);
70
69
  }
71
- function pn(e) {
70
+ function fn(e) {
72
71
  return e.toLowerCase();
73
72
  }
74
73
  class J {
@@ -96,25 +95,25 @@ J.prototype.overloadedBoolean = !1;
96
95
  J.prototype.property = "";
97
96
  J.prototype.spaceSeparated = !1;
98
97
  J.prototype.space = void 0;
99
- let Nr = 0;
100
- const z = be(), $ = be(), fn = be(), k = be(), R = be(), Ie = be(), ee = be();
98
+ let vr = 0;
99
+ const z = be(), $ = be(), hn = be(), k = be(), R = be(), Ie = be(), ee = be();
101
100
  function be() {
102
- return 2 ** ++Nr;
101
+ return 2 ** ++vr;
103
102
  }
104
- const hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
103
+ const mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
105
104
  __proto__: null,
106
105
  boolean: z,
107
106
  booleanish: $,
108
107
  commaOrSpaceSeparated: ee,
109
108
  commaSeparated: Ie,
110
109
  number: k,
111
- overloadedBoolean: fn,
110
+ overloadedBoolean: hn,
112
111
  spaceSeparated: R
113
- }, Symbol.toStringTag, { value: "Module" })), Ze = (
112
+ }, Symbol.toStringTag, { value: "Module" })), en = (
114
113
  /** @type {ReadonlyArray<keyof typeof types>} */
115
- Object.keys(hn)
114
+ Object.keys(mn)
116
115
  );
117
- class Sn extends J {
116
+ class En extends J {
118
117
  /**
119
118
  * @constructor
120
119
  * @param {string} property
@@ -130,31 +129,31 @@ class Sn extends J {
130
129
  */
131
130
  constructor(n, t, r, i) {
132
131
  let l = -1;
133
- if (super(n, t), Yn(this, "space", i), typeof r == "number")
134
- for (; ++l < Ze.length; ) {
135
- const o = Ze[l];
136
- Yn(this, Ze[l], (r & hn[o]) === hn[o]);
132
+ if (super(n, t), Xn(this, "space", i), typeof r == "number")
133
+ for (; ++l < en.length; ) {
134
+ const o = en[l];
135
+ Xn(this, en[l], (r & mn[o]) === mn[o]);
137
136
  }
138
137
  }
139
138
  }
140
- Sn.prototype.defined = !0;
141
- function Yn(e, n, t) {
139
+ En.prototype.defined = !0;
140
+ function Xn(e, n, t) {
142
141
  t && (e[n] = t);
143
142
  }
144
143
  function Pe(e) {
145
144
  const n = {}, t = {};
146
145
  for (const [r, i] of Object.entries(e.properties)) {
147
- const l = new Sn(
146
+ const l = new En(
148
147
  r,
149
148
  e.transform(e.attributes || {}, r),
150
149
  i,
151
150
  e.space
152
151
  );
153
- e.mustUseProperty && e.mustUseProperty.includes(r) && (l.mustUseProperty = !0), n[r] = l, t[pn(r)] = r, t[pn(l.attribute)] = r;
152
+ e.mustUseProperty && e.mustUseProperty.includes(r) && (l.mustUseProperty = !0), n[r] = l, t[fn(r)] = r, t[fn(l.attribute)] = r;
154
153
  }
155
154
  return new Me(n, t, e.space);
156
155
  }
157
- const Nt = Pe({
156
+ const _t = Pe({
158
157
  properties: {
159
158
  ariaActiveDescendant: null,
160
159
  ariaAtomic: $,
@@ -210,13 +209,13 @@ const Nt = Pe({
210
209
  return n === "role" ? n : "aria-" + n.slice(4).toLowerCase();
211
210
  }
212
211
  });
213
- function _t(e, n) {
212
+ function Ft(e, n) {
214
213
  return n in e ? e[n] : n;
215
214
  }
216
- function Ft(e, n) {
217
- return _t(e, n.toLowerCase());
215
+ function Rt(e, n) {
216
+ return Ft(e, n.toLowerCase());
218
217
  }
219
- const _r = Pe({
218
+ const Dr = Pe({
220
219
  attributes: {
221
220
  acceptcharset: "accept-charset",
222
221
  classname: "class",
@@ -264,7 +263,7 @@ const _r = Pe({
264
263
  dir: null,
265
264
  dirName: null,
266
265
  disabled: z,
267
- download: fn,
266
+ download: hn,
268
267
  draggable: $,
269
268
  encType: null,
270
269
  enterKeyHint: null,
@@ -277,7 +276,7 @@ const _r = Pe({
277
276
  formTarget: null,
278
277
  headers: R,
279
278
  height: k,
280
- hidden: fn,
279
+ hidden: hn,
281
280
  high: k,
282
281
  href: null,
283
282
  hrefLang: null,
@@ -576,8 +575,8 @@ const _r = Pe({
576
575
  unselectable: null
577
576
  },
578
577
  space: "html",
579
- transform: Ft
580
- }), Fr = Pe({
578
+ transform: Rt
579
+ }), Nr = Pe({
581
580
  attributes: {
582
581
  accentHeight: "accent-height",
583
582
  alignmentBaseline: "alignment-baseline",
@@ -1135,8 +1134,8 @@ const _r = Pe({
1135
1134
  zoomAndPan: null
1136
1135
  },
1137
1136
  space: "svg",
1138
- transform: _t
1139
- }), Rt = Pe({
1137
+ transform: Ft
1138
+ }), Mt = Pe({
1140
1139
  properties: {
1141
1140
  xLinkActuate: null,
1142
1141
  xLinkArcRole: null,
@@ -1150,18 +1149,18 @@ const _r = Pe({
1150
1149
  transform(e, n) {
1151
1150
  return "xlink:" + n.slice(5).toLowerCase();
1152
1151
  }
1153
- }), Mt = Pe({
1152
+ }), Bt = Pe({
1154
1153
  attributes: { xmlnsxlink: "xmlns:xlink" },
1155
1154
  properties: { xmlnsXLink: null, xmlns: null },
1156
1155
  space: "xmlns",
1157
- transform: Ft
1158
- }), Bt = Pe({
1156
+ transform: Rt
1157
+ }), jt = Pe({
1159
1158
  properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
1160
1159
  space: "xml",
1161
1160
  transform(e, n) {
1162
1161
  return "xml:" + n.slice(3).toLowerCase();
1163
1162
  }
1164
- }), Rr = {
1163
+ }), _r = {
1165
1164
  classId: "classID",
1166
1165
  dataType: "datatype",
1167
1166
  itemId: "itemID",
@@ -1179,49 +1178,49 @@ const _r = Pe({
1179
1178
  xLinkTitle: "xlinkTitle",
1180
1179
  xLinkType: "xlinkType",
1181
1180
  xmlnsXLink: "xmlnsXlink"
1182
- }, Mr = /[A-Z]/g, Xn = /-[a-z]/g, Br = /^data[-\w.:]+$/i;
1183
- function jr(e, n) {
1184
- const t = pn(n);
1181
+ }, Fr = /[A-Z]/g, Qn = /-[a-z]/g, Rr = /^data[-\w.:]+$/i;
1182
+ function Mr(e, n) {
1183
+ const t = fn(n);
1185
1184
  let r = n, i = J;
1186
1185
  if (t in e.normal)
1187
1186
  return e.property[e.normal[t]];
1188
- if (t.length > 4 && t.slice(0, 4) === "data" && Br.test(n)) {
1187
+ if (t.length > 4 && t.slice(0, 4) === "data" && Rr.test(n)) {
1189
1188
  if (n.charAt(4) === "-") {
1190
- const l = n.slice(5).replace(Xn, Ur);
1189
+ const l = n.slice(5).replace(Qn, jr);
1191
1190
  r = "data" + l.charAt(0).toUpperCase() + l.slice(1);
1192
1191
  } else {
1193
1192
  const l = n.slice(4);
1194
- if (!Xn.test(l)) {
1195
- let o = l.replace(Mr, Hr);
1193
+ if (!Qn.test(l)) {
1194
+ let o = l.replace(Fr, Br);
1196
1195
  o.charAt(0) !== "-" && (o = "-" + o), n = "data" + o;
1197
1196
  }
1198
1197
  }
1199
- i = Sn;
1198
+ i = En;
1200
1199
  }
1201
1200
  return new i(r, n);
1202
1201
  }
1203
- function Hr(e) {
1202
+ function Br(e) {
1204
1203
  return "-" + e.toLowerCase();
1205
1204
  }
1206
- function Ur(e) {
1205
+ function jr(e) {
1207
1206
  return e.charAt(1).toUpperCase();
1208
1207
  }
1209
- const Vr = Dt([Nt, _r, Rt, Mt, Bt], "html"), Cn = Dt([Nt, Fr, Rt, Mt, Bt], "svg");
1210
- function qr(e) {
1208
+ const Hr = Nt([_t, Dr, Mt, Bt, jt], "html"), Cn = Nt([_t, Nr, Mt, Bt, jt], "svg");
1209
+ function Ur(e) {
1211
1210
  return e.join(" ").trim();
1212
1211
  }
1213
- var En = {}, Qn = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, $r = /\n/g, Wr = /^\s*/, Yr = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, Xr = /^:\s*/, Qr = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Gr = /^[;\s]*/, Kr = /^\s+|\s+$/g, Jr = `
1214
- `, Gn = "/", Kn = "*", ke = "", Zr = "comment", ei = "declaration";
1215
- function ni(e, n) {
1212
+ var In = {}, Gn = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Vr = /\n/g, qr = /^\s*/, $r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, Wr = /^:\s*/, Yr = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Xr = /^[;\s]*/, Qr = /^\s+|\s+$/g, Gr = `
1213
+ `, Kn = "/", Jn = "*", ke = "", Kr = "comment", Jr = "declaration";
1214
+ function Zr(e, n) {
1216
1215
  if (typeof e != "string")
1217
1216
  throw new TypeError("First argument must be a string");
1218
1217
  if (!e) return [];
1219
1218
  n = n || {};
1220
1219
  var t = 1, r = 1;
1221
1220
  function i(y) {
1222
- var b = y.match($r);
1221
+ var b = y.match(Vr);
1223
1222
  b && (t += b.length);
1224
- var T = y.lastIndexOf(Jr);
1223
+ var T = y.lastIndexOf(Gr);
1225
1224
  r = ~T ? y.length - T : r + y.length;
1226
1225
  }
1227
1226
  function l() {
@@ -1248,7 +1247,7 @@ function ni(e, n) {
1248
1247
  }
1249
1248
  }
1250
1249
  function c() {
1251
- u(Wr);
1250
+ u(qr);
1252
1251
  }
1253
1252
  function s(y) {
1254
1253
  var b;
@@ -1258,28 +1257,28 @@ function ni(e, n) {
1258
1257
  }
1259
1258
  function f() {
1260
1259
  var y = l();
1261
- if (!(Gn != e.charAt(0) || Kn != e.charAt(1))) {
1262
- for (var b = 2; ke != e.charAt(b) && (Kn != e.charAt(b) || Gn != e.charAt(b + 1)); )
1260
+ if (!(Kn != e.charAt(0) || Jn != e.charAt(1))) {
1261
+ for (var b = 2; ke != e.charAt(b) && (Jn != e.charAt(b) || Kn != e.charAt(b + 1)); )
1263
1262
  ++b;
1264
1263
  if (b += 2, ke === e.charAt(b - 1))
1265
1264
  return a("End of comment missing");
1266
1265
  var T = e.slice(2, b - 2);
1267
1266
  return r += 2, i(T), e = e.slice(b), r += 2, y({
1268
- type: Zr,
1267
+ type: Kr,
1269
1268
  comment: T
1270
1269
  });
1271
1270
  }
1272
1271
  }
1273
1272
  function d() {
1274
- var y = l(), b = u(Yr);
1273
+ var y = l(), b = u($r);
1275
1274
  if (b) {
1276
- if (f(), !u(Xr)) return a("property missing ':'");
1277
- var T = u(Qr), w = y({
1278
- type: ei,
1279
- property: Jn(b[0].replace(Qn, ke)),
1280
- value: T ? Jn(T[0].replace(Qn, ke)) : ke
1275
+ if (f(), !u(Wr)) return a("property missing ':'");
1276
+ var T = u(Yr), w = y({
1277
+ type: Jr,
1278
+ property: Zn(b[0].replace(Gn, ke)),
1279
+ value: T ? Zn(T[0].replace(Gn, ke)) : ke
1281
1280
  });
1282
- return u(Gr), w;
1281
+ return u(Xr), w;
1283
1282
  }
1284
1283
  }
1285
1284
  function p() {
@@ -1291,20 +1290,20 @@ function ni(e, n) {
1291
1290
  }
1292
1291
  return c(), p();
1293
1292
  }
1294
- function Jn(e) {
1295
- return e ? e.replace(Kr, ke) : ke;
1293
+ function Zn(e) {
1294
+ return e ? e.replace(Qr, ke) : ke;
1296
1295
  }
1297
- var ti = ni, ri = We && We.__importDefault || function(e) {
1296
+ var ei = Zr, ni = We && We.__importDefault || function(e) {
1298
1297
  return e && e.__esModule ? e : { default: e };
1299
1298
  };
1300
- Object.defineProperty(En, "__esModule", { value: !0 });
1301
- En.default = li;
1302
- const ii = ri(ti);
1303
- function li(e, n) {
1299
+ Object.defineProperty(In, "__esModule", { value: !0 });
1300
+ In.default = ri;
1301
+ const ti = ni(ei);
1302
+ function ri(e, n) {
1304
1303
  let t = null;
1305
1304
  if (!e || typeof e != "string")
1306
1305
  return t;
1307
- const r = (0, ii.default)(e), i = typeof n == "function";
1306
+ const r = (0, ti.default)(e), i = typeof n == "function";
1308
1307
  return r.forEach((l) => {
1309
1308
  if (l.type !== "declaration")
1310
1309
  return;
@@ -1315,29 +1314,29 @@ function li(e, n) {
1315
1314
  var Qe = {};
1316
1315
  Object.defineProperty(Qe, "__esModule", { value: !0 });
1317
1316
  Qe.camelCase = void 0;
1318
- var oi = /^--[a-zA-Z0-9_-]+$/, ai = /-([a-z])/g, ui = /^[^-]+$/, si = /^-(webkit|moz|ms|o|khtml)-/, ci = /^-(ms)-/, pi = function(e) {
1319
- return !e || ui.test(e) || oi.test(e);
1320
- }, fi = function(e, n) {
1317
+ var ii = /^--[a-zA-Z0-9_-]+$/, li = /-([a-z])/g, oi = /^[^-]+$/, ai = /^-(webkit|moz|ms|o|khtml)-/, ui = /^-(ms)-/, si = function(e) {
1318
+ return !e || oi.test(e) || ii.test(e);
1319
+ }, ci = function(e, n) {
1321
1320
  return n.toUpperCase();
1322
- }, Zn = function(e, n) {
1321
+ }, et = function(e, n) {
1323
1322
  return "".concat(n, "-");
1324
- }, hi = function(e, n) {
1325
- return n === void 0 && (n = {}), pi(e) ? e : (e = e.toLowerCase(), n.reactCompat ? e = e.replace(ci, Zn) : e = e.replace(si, Zn), e.replace(ai, fi));
1323
+ }, pi = function(e, n) {
1324
+ return n === void 0 && (n = {}), si(e) ? e : (e = e.toLowerCase(), n.reactCompat ? e = e.replace(ui, et) : e = e.replace(ai, et), e.replace(li, ci));
1326
1325
  };
1327
- Qe.camelCase = hi;
1328
- var mi = We && We.__importDefault || function(e) {
1326
+ Qe.camelCase = pi;
1327
+ var fi = We && We.__importDefault || function(e) {
1329
1328
  return e && e.__esModule ? e : { default: e };
1330
- }, di = mi(En), gi = Qe;
1331
- function mn(e, n) {
1329
+ }, hi = fi(In), mi = Qe;
1330
+ function dn(e, n) {
1332
1331
  var t = {};
1333
- return !e || typeof e != "string" || (0, di.default)(e, function(r, i) {
1334
- r && i && (t[(0, gi.camelCase)(r, n)] = i);
1332
+ return !e || typeof e != "string" || (0, hi.default)(e, function(r, i) {
1333
+ r && i && (t[(0, mi.camelCase)(r, n)] = i);
1335
1334
  }), t;
1336
1335
  }
1337
- mn.default = mn;
1338
- var yi = mn;
1339
- const xi = /* @__PURE__ */ vt(yi), jt = Ht("end"), In = Ht("start");
1340
- function Ht(e) {
1336
+ dn.default = dn;
1337
+ var di = dn;
1338
+ const gi = /* @__PURE__ */ Dt(di), Ht = Ut("end"), Tn = Ut("start");
1339
+ function Ut(e) {
1341
1340
  return n;
1342
1341
  function n(t) {
1343
1342
  const r = t && t.position && t.position[e] || {};
@@ -1349,21 +1348,21 @@ function Ht(e) {
1349
1348
  };
1350
1349
  }
1351
1350
  }
1352
- function ki(e) {
1353
- const n = In(e), t = jt(e);
1351
+ function yi(e) {
1352
+ const n = Tn(e), t = Ht(e);
1354
1353
  if (n && t)
1355
1354
  return { start: n, end: t };
1356
1355
  }
1357
1356
  function Ne(e) {
1358
- return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? et(e.position) : "start" in e || "end" in e ? et(e) : "line" in e || "column" in e ? dn(e) : "";
1359
- }
1360
- function dn(e) {
1361
- return nt(e && e.line) + ":" + nt(e && e.column);
1357
+ return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? nt(e.position) : "start" in e || "end" in e ? nt(e) : "line" in e || "column" in e ? gn(e) : "";
1362
1358
  }
1363
- function et(e) {
1364
- return dn(e && e.start) + "-" + dn(e && e.end);
1359
+ function gn(e) {
1360
+ return tt(e && e.line) + ":" + tt(e && e.column);
1365
1361
  }
1366
1362
  function nt(e) {
1363
+ return gn(e && e.start) + "-" + gn(e && e.end);
1364
+ }
1365
+ function tt(e) {
1367
1366
  return e && typeof e == "number" ? e : 1;
1368
1367
  }
1369
1368
  class Q extends Error {
@@ -1437,7 +1436,7 @@ class Q extends Error {
1437
1436
  u && (l.place = u.position);
1438
1437
  }
1439
1438
  const a = l.place && "start" in l.place ? l.place.start : l.place;
1440
- this.ancestors = l.ancestors || void 0, this.cause = l.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 = Ne(l.place) || "1:1", this.place = l.place || void 0, this.reason = this.message, this.ruleId = l.ruleId || void 0, this.source = l.source || void 0, this.stack = o && l.cause && typeof l.cause.stack == "string" ? l.cause.stack : "", this.actual, this.expected, this.note, this.url;
1439
+ this.ancestors = l.ancestors || void 0, this.cause = l.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 = Ne(l.place) || "1:1", this.place = l.place || void 0, this.reason = this.message, this.ruleId = l.ruleId || void 0, this.source = l.source || void 0, this.stack = o && l.cause && typeof l.cause.stack == "string" ? l.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
1441
1440
  }
1442
1441
  }
1443
1442
  Q.prototype.file = "";
@@ -1453,8 +1452,8 @@ Q.prototype.fatal = void 0;
1453
1452
  Q.prototype.place = void 0;
1454
1453
  Q.prototype.ruleId = void 0;
1455
1454
  Q.prototype.source = void 0;
1456
- const Tn = {}.hasOwnProperty, bi = /* @__PURE__ */ new Map(), wi = /[A-Z]/g, Si = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), Ci = /* @__PURE__ */ new Set(["td", "th"]), Ut = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
1457
- function Ei(e, n) {
1455
+ const Pn = {}.hasOwnProperty, xi = /* @__PURE__ */ new Map(), ki = /[A-Z]/g, bi = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), wi = /* @__PURE__ */ new Set(["td", "th"]), Vt = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
1456
+ function Si(e, n) {
1458
1457
  if (!n || n.Fragment === void 0)
1459
1458
  throw new TypeError("Expected `Fragment` in options");
1460
1459
  const t = n.filePath || void 0;
@@ -1464,13 +1463,13 @@ function Ei(e, n) {
1464
1463
  throw new TypeError(
1465
1464
  "Expected `jsxDEV` in options when `development: true`"
1466
1465
  );
1467
- r = vi(t, n.jsxDEV);
1466
+ r = Li(t, n.jsxDEV);
1468
1467
  } else {
1469
1468
  if (typeof n.jsx != "function")
1470
1469
  throw new TypeError("Expected `jsx` in production options");
1471
1470
  if (typeof n.jsxs != "function")
1472
1471
  throw new TypeError("Expected `jsxs` in production options");
1473
- r = Oi(t, n.jsx, n.jsxs);
1472
+ r = zi(t, n.jsx, n.jsxs);
1474
1473
  }
1475
1474
  const i = {
1476
1475
  Fragment: n.Fragment,
@@ -1483,10 +1482,10 @@ function Ei(e, n) {
1483
1482
  ignoreInvalidStyle: n.ignoreInvalidStyle || !1,
1484
1483
  passKeys: n.passKeys !== !1,
1485
1484
  passNode: n.passNode || !1,
1486
- schema: n.space === "svg" ? Cn : Vr,
1485
+ schema: n.space === "svg" ? Cn : Hr,
1487
1486
  stylePropertyNameCase: n.stylePropertyNameCase || "dom",
1488
1487
  tableCellAlignToStyle: n.tableCellAlignToStyle !== !1
1489
- }, l = Vt(i, e, void 0);
1488
+ }, l = qt(i, e, void 0);
1490
1489
  return l && typeof l != "string" ? l : i.create(
1491
1490
  e,
1492
1491
  i.Fragment,
@@ -1494,31 +1493,31 @@ function Ei(e, n) {
1494
1493
  void 0
1495
1494
  );
1496
1495
  }
1497
- function Vt(e, n, t) {
1496
+ function qt(e, n, t) {
1498
1497
  if (n.type === "element")
1499
- return Ii(e, n, t);
1498
+ return Ei(e, n, t);
1500
1499
  if (n.type === "mdxFlowExpression" || n.type === "mdxTextExpression")
1501
- return Ti(e, n);
1500
+ return Ci(e, n);
1502
1501
  if (n.type === "mdxJsxFlowElement" || n.type === "mdxJsxTextElement")
1503
- return Ai(e, n, t);
1502
+ return Ti(e, n, t);
1504
1503
  if (n.type === "mdxjsEsm")
1505
- return Pi(e, n);
1504
+ return Ii(e, n);
1506
1505
  if (n.type === "root")
1507
- return zi(e, n, t);
1506
+ return Pi(e, n, t);
1508
1507
  if (n.type === "text")
1509
- return Li(e, n);
1508
+ return Ai(e, n);
1510
1509
  }
1511
- function Ii(e, n, t) {
1510
+ function Ei(e, n, t) {
1512
1511
  const r = e.schema;
1513
1512
  let i = r;
1514
1513
  n.tagName.toLowerCase() === "svg" && r.space === "html" && (i = Cn, e.schema = i), e.ancestors.push(n);
1515
- const l = $t(e, n.tagName, !1), o = Di(e, n);
1516
- let a = An(e, n);
1517
- return Si.has(n.tagName) && (a = a.filter(function(u) {
1518
- return typeof u == "string" ? !Dr(u) : !0;
1519
- })), qt(e, o, l, n), Pn(o, a), e.ancestors.pop(), e.schema = r, e.create(n, l, o, t);
1514
+ const l = Wt(e, n.tagName, !1), o = Oi(e, n);
1515
+ let a = zn(e, n);
1516
+ return bi.has(n.tagName) && (a = a.filter(function(u) {
1517
+ return typeof u == "string" ? !Or(u) : !0;
1518
+ })), $t(e, o, l, n), An(o, a), e.ancestors.pop(), e.schema = r, e.create(n, l, o, t);
1520
1519
  }
1521
- function Ti(e, n) {
1520
+ function Ci(e, n) {
1522
1521
  if (n.data && n.data.estree && e.evaluater) {
1523
1522
  const r = n.data.estree.body[0];
1524
1523
  return r.type, /** @type {Child | undefined} */
@@ -1526,7 +1525,7 @@ function Ti(e, n) {
1526
1525
  }
1527
1526
  Re(e, n.position);
1528
1527
  }
1529
- function Pi(e, n) {
1528
+ function Ii(e, n) {
1530
1529
  if (n.data && n.data.estree && e.evaluater)
1531
1530
  return (
1532
1531
  /** @type {Child | undefined} */
@@ -1534,40 +1533,40 @@ function Pi(e, n) {
1534
1533
  );
1535
1534
  Re(e, n.position);
1536
1535
  }
1537
- function Ai(e, n, t) {
1536
+ function Ti(e, n, t) {
1538
1537
  const r = e.schema;
1539
1538
  let i = r;
1540
1539
  n.name === "svg" && r.space === "html" && (i = Cn, e.schema = i), e.ancestors.push(n);
1541
- const l = n.name === null ? e.Fragment : $t(e, n.name, !0), o = Ni(e, n), a = An(e, n);
1542
- return qt(e, o, l, n), Pn(o, a), e.ancestors.pop(), e.schema = r, e.create(n, l, o, t);
1540
+ const l = n.name === null ? e.Fragment : Wt(e, n.name, !0), o = vi(e, n), a = zn(e, n);
1541
+ return $t(e, o, l, n), An(o, a), e.ancestors.pop(), e.schema = r, e.create(n, l, o, t);
1543
1542
  }
1544
- function zi(e, n, t) {
1543
+ function Pi(e, n, t) {
1545
1544
  const r = {};
1546
- return Pn(r, An(e, n)), e.create(n, e.Fragment, r, t);
1545
+ return An(r, zn(e, n)), e.create(n, e.Fragment, r, t);
1547
1546
  }
1548
- function Li(e, n) {
1547
+ function Ai(e, n) {
1549
1548
  return n.value;
1550
1549
  }
1551
- function qt(e, n, t, r) {
1550
+ function $t(e, n, t, r) {
1552
1551
  typeof t != "string" && t !== e.Fragment && e.passNode && (n.node = r);
1553
1552
  }
1554
- function Pn(e, n) {
1553
+ function An(e, n) {
1555
1554
  if (n.length > 0) {
1556
1555
  const t = n.length > 1 ? n : n[0];
1557
1556
  t && (e.children = t);
1558
1557
  }
1559
1558
  }
1560
- function Oi(e, n, t) {
1559
+ function zi(e, n, t) {
1561
1560
  return r;
1562
1561
  function r(i, l, o, a) {
1563
1562
  const c = Array.isArray(o.children) ? t : n;
1564
1563
  return a ? c(l, o, a) : c(l, o);
1565
1564
  }
1566
1565
  }
1567
- function vi(e, n) {
1566
+ function Li(e, n) {
1568
1567
  return t;
1569
1568
  function t(r, i, l, o) {
1570
- const a = Array.isArray(l.children), u = In(r);
1569
+ const a = Array.isArray(l.children), u = Tn(r);
1571
1570
  return n(
1572
1571
  i,
1573
1572
  l,
@@ -1582,15 +1581,15 @@ function vi(e, n) {
1582
1581
  );
1583
1582
  }
1584
1583
  }
1585
- function Di(e, n) {
1584
+ function Oi(e, n) {
1586
1585
  const t = {};
1587
1586
  let r, i;
1588
1587
  for (i in n.properties)
1589
- if (i !== "children" && Tn.call(n.properties, i)) {
1590
- const l = _i(e, i, n.properties[i]);
1588
+ if (i !== "children" && Pn.call(n.properties, i)) {
1589
+ const l = Di(e, i, n.properties[i]);
1591
1590
  if (l) {
1592
1591
  const [o, a] = l;
1593
- e.tableCellAlignToStyle && o === "align" && typeof a == "string" && Ci.has(n.tagName) ? r = a : t[o] = a;
1592
+ e.tableCellAlignToStyle && o === "align" && typeof a == "string" && wi.has(n.tagName) ? r = a : t[o] = a;
1594
1593
  }
1595
1594
  }
1596
1595
  if (r) {
@@ -1602,7 +1601,7 @@ function Di(e, n) {
1602
1601
  }
1603
1602
  return t;
1604
1603
  }
1605
- function Ni(e, n) {
1604
+ function vi(e, n) {
1606
1605
  const t = {};
1607
1606
  for (const r of n.attributes)
1608
1607
  if (r.type === "mdxJsxExpressionAttribute")
@@ -1634,10 +1633,10 @@ function Ni(e, n) {
1634
1633
  }
1635
1634
  return t;
1636
1635
  }
1637
- function An(e, n) {
1636
+ function zn(e, n) {
1638
1637
  const t = [];
1639
1638
  let r = -1;
1640
- const i = e.passKeys ? /* @__PURE__ */ new Map() : bi;
1639
+ const i = e.passKeys ? /* @__PURE__ */ new Map() : xi;
1641
1640
  for (; ++r < n.children.length; ) {
1642
1641
  const l = n.children[r];
1643
1642
  let o;
@@ -1648,27 +1647,27 @@ function An(e, n) {
1648
1647
  o = u + "-" + c, i.set(u, c + 1);
1649
1648
  }
1650
1649
  }
1651
- const a = Vt(e, l, o);
1650
+ const a = qt(e, l, o);
1652
1651
  a !== void 0 && t.push(a);
1653
1652
  }
1654
1653
  return t;
1655
1654
  }
1656
- function _i(e, n, t) {
1657
- const r = jr(e.schema, n);
1655
+ function Di(e, n, t) {
1656
+ const r = Mr(e.schema, n);
1658
1657
  if (!(t == null || typeof t == "number" && Number.isNaN(t))) {
1659
- if (Array.isArray(t) && (t = r.commaSeparated ? Ar(t) : qr(t)), r.property === "style") {
1660
- let i = typeof t == "object" ? t : Fi(e, String(t));
1661
- return e.stylePropertyNameCase === "css" && (i = Ri(i)), ["style", i];
1658
+ if (Array.isArray(t) && (t = r.commaSeparated ? Tr(t) : Ur(t)), r.property === "style") {
1659
+ let i = typeof t == "object" ? t : Ni(e, String(t));
1660
+ return e.stylePropertyNameCase === "css" && (i = _i(i)), ["style", i];
1662
1661
  }
1663
1662
  return [
1664
- e.elementAttributeNameCase === "react" && r.space ? Rr[r.property] || r.property : r.attribute,
1663
+ e.elementAttributeNameCase === "react" && r.space ? _r[r.property] || r.property : r.attribute,
1665
1664
  t
1666
1665
  ];
1667
1666
  }
1668
1667
  }
1669
- function Fi(e, n) {
1668
+ function Ni(e, n) {
1670
1669
  try {
1671
- return xi(n, { reactCompat: !0 });
1670
+ return gi(n, { reactCompat: !0 });
1672
1671
  } catch (t) {
1673
1672
  if (e.ignoreInvalidStyle)
1674
1673
  return {};
@@ -1681,10 +1680,10 @@ function Fi(e, n) {
1681
1680
  ruleId: "style",
1682
1681
  source: "hast-util-to-jsx-runtime"
1683
1682
  });
1684
- throw i.file = e.filePath || void 0, i.url = Ut + "#cannot-parse-style-attribute", i;
1683
+ throw i.file = e.filePath || void 0, i.url = Vt + "#cannot-parse-style-attribute", i;
1685
1684
  }
1686
1685
  }
1687
- function $t(e, n, t) {
1686
+ function Wt(e, n, t) {
1688
1687
  let r;
1689
1688
  if (!t)
1690
1689
  r = { type: "Literal", value: n };
@@ -1692,7 +1691,7 @@ function $t(e, n, t) {
1692
1691
  const i = n.split(".");
1693
1692
  let l = -1, o;
1694
1693
  for (; ++l < i.length; ) {
1695
- const a = $n(i[l]) ? { type: "Identifier", name: i[l] } : { type: "Literal", value: i[l] };
1694
+ const a = Wn(i[l]) ? { type: "Identifier", name: i[l] } : { type: "Literal", value: i[l] };
1696
1695
  o = o ? {
1697
1696
  type: "MemberExpression",
1698
1697
  object: o,
@@ -1703,13 +1702,13 @@ function $t(e, n, t) {
1703
1702
  }
1704
1703
  r = o;
1705
1704
  } else
1706
- r = $n(n) && !/^[a-z]/.test(n) ? { type: "Identifier", name: n } : { type: "Literal", value: n };
1705
+ r = Wn(n) && !/^[a-z]/.test(n) ? { type: "Identifier", name: n } : { type: "Literal", value: n };
1707
1706
  if (r.type === "Literal") {
1708
1707
  const i = (
1709
1708
  /** @type {string | number} */
1710
1709
  r.value
1711
1710
  );
1712
- return Tn.call(e.components, i) ? e.components[i] : i;
1711
+ return Pn.call(e.components, i) ? e.components[i] : i;
1713
1712
  }
1714
1713
  if (e.evaluater)
1715
1714
  return e.evaluater.evaluateExpression(r);
@@ -1725,23 +1724,23 @@ function Re(e, n) {
1725
1724
  source: "hast-util-to-jsx-runtime"
1726
1725
  }
1727
1726
  );
1728
- throw t.file = e.filePath || void 0, t.url = Ut + "#cannot-handle-mdx-estrees-without-createevaluater", t;
1727
+ throw t.file = e.filePath || void 0, t.url = Vt + "#cannot-handle-mdx-estrees-without-createevaluater", t;
1729
1728
  }
1730
- function Ri(e) {
1729
+ function _i(e) {
1731
1730
  const n = {};
1732
1731
  let t;
1733
1732
  for (t in e)
1734
- Tn.call(e, t) && (n[Mi(t)] = e[t]);
1733
+ Pn.call(e, t) && (n[Fi(t)] = e[t]);
1735
1734
  return n;
1736
1735
  }
1737
- function Mi(e) {
1738
- let n = e.replace(wi, Bi);
1736
+ function Fi(e) {
1737
+ let n = e.replace(ki, Ri);
1739
1738
  return n.slice(0, 3) === "ms-" && (n = "-" + n), n;
1740
1739
  }
1741
- function Bi(e) {
1740
+ function Ri(e) {
1742
1741
  return "-" + e.toLowerCase();
1743
1742
  }
1744
- const en = {
1743
+ const nn = {
1745
1744
  action: ["form"],
1746
1745
  cite: ["blockquote", "del", "ins", "q"],
1747
1746
  data: ["object"],
@@ -1763,38 +1762,42 @@ const en = {
1763
1762
  "track",
1764
1763
  "video"
1765
1764
  ]
1766
- }, ji = {};
1767
- function Hi(e, n) {
1768
- const t = ji, r = typeof t.includeImageAlt == "boolean" ? t.includeImageAlt : !0, i = typeof t.includeHtml == "boolean" ? t.includeHtml : !0;
1769
- return Wt(e, r, i);
1765
+ }, Mi = {};
1766
+ function Bi(e, n) {
1767
+ const t = Mi, r = typeof t.includeImageAlt == "boolean" ? t.includeImageAlt : !0, i = typeof t.includeHtml == "boolean" ? t.includeHtml : !0;
1768
+ return Yt(e, r, i);
1770
1769
  }
1771
- function Wt(e, n, t) {
1772
- if (Ui(e)) {
1770
+ function Yt(e, n, t) {
1771
+ if (ji(e)) {
1773
1772
  if ("value" in e)
1774
1773
  return e.type === "html" && !t ? "" : e.value;
1775
1774
  if (n && "alt" in e && e.alt)
1776
1775
  return e.alt;
1777
1776
  if ("children" in e)
1778
- return tt(e.children, n, t);
1777
+ return rt(e.children, n, t);
1779
1778
  }
1780
- return Array.isArray(e) ? tt(e, n, t) : "";
1779
+ return Array.isArray(e) ? rt(e, n, t) : "";
1781
1780
  }
1782
- function tt(e, n, t) {
1781
+ function rt(e, n, t) {
1783
1782
  const r = [];
1784
1783
  let i = -1;
1785
1784
  for (; ++i < e.length; )
1786
- r[i] = Wt(e[i], n, t);
1785
+ r[i] = Yt(e[i], n, t);
1787
1786
  return r.join("");
1788
1787
  }
1789
- function Ui(e) {
1788
+ function ji(e) {
1790
1789
  return !!(e && typeof e == "object");
1791
1790
  }
1792
- const rt = document.createElement("i");
1793
- function zn(e) {
1791
+ const it = document.createElement("i");
1792
+ function Ln(e) {
1794
1793
  const n = "&" + e + ";";
1795
- rt.innerHTML = n;
1796
- const t = rt.textContent;
1797
- return t.charCodeAt(t.length - 1) === 59 && e !== "semi" || t === n ? !1 : t;
1794
+ it.innerHTML = n;
1795
+ const t = it.textContent;
1796
+ return (
1797
+ // @ts-expect-error: TypeScript is wrong that `textContent` on elements can
1798
+ // yield `null`.
1799
+ t.charCodeAt(t.length - 1) === 59 && e !== "semi" || t === n ? !1 : t
1800
+ );
1798
1801
  }
1799
1802
  function se(e, n, t, r) {
1800
1803
  const i = e.length;
@@ -1808,24 +1811,24 @@ function se(e, n, t, r) {
1808
1811
  function te(e, n) {
1809
1812
  return e.length > 0 ? (se(e, e.length, 0, n), e) : n;
1810
1813
  }
1811
- const it = {}.hasOwnProperty;
1812
- function Vi(e) {
1814
+ const lt = {}.hasOwnProperty;
1815
+ function Hi(e) {
1813
1816
  const n = {};
1814
1817
  let t = -1;
1815
1818
  for (; ++t < e.length; )
1816
- qi(n, e[t]);
1819
+ Ui(n, e[t]);
1817
1820
  return n;
1818
1821
  }
1819
- function qi(e, n) {
1822
+ function Ui(e, n) {
1820
1823
  let t;
1821
1824
  for (t in n) {
1822
- const i = (it.call(e, t) ? e[t] : void 0) || (e[t] = {}), l = n[t];
1825
+ const i = (lt.call(e, t) ? e[t] : void 0) || (e[t] = {}), l = n[t];
1823
1826
  let o;
1824
1827
  if (l)
1825
1828
  for (o in l) {
1826
- it.call(i, o) || (i[o] = []);
1829
+ lt.call(i, o) || (i[o] = []);
1827
1830
  const a = l[o];
1828
- $i(
1831
+ Vi(
1829
1832
  // @ts-expect-error Looks like a list.
1830
1833
  i[o],
1831
1834
  Array.isArray(a) ? a : a ? [a] : []
@@ -1833,14 +1836,14 @@ function qi(e, n) {
1833
1836
  }
1834
1837
  }
1835
1838
  }
1836
- function $i(e, n) {
1839
+ function Vi(e, n) {
1837
1840
  let t = -1;
1838
1841
  const r = [];
1839
1842
  for (; ++t < n.length; )
1840
1843
  (n[t].add === "after" ? e : r).push(n[t]);
1841
1844
  se(e, 0, 0, r);
1842
1845
  }
1843
- function Yt(e, n) {
1846
+ function Xt(e, n) {
1844
1847
  const t = Number.parseInt(e, n);
1845
1848
  return (
1846
1849
  // C0 except for HT, LF, FF, CR, space.
@@ -1856,15 +1859,15 @@ function Yt(e, n) {
1856
1859
  function Te(e) {
1857
1860
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
1858
1861
  }
1859
- const ue = ge(/[A-Za-z]/), ne = ge(/[\dA-Za-z]/), Wi = ge(/[#-'*+\--9=?A-Z^-~]/);
1860
- function gn(e) {
1862
+ const ue = ge(/[A-Za-z]/), ne = ge(/[\dA-Za-z]/), qi = ge(/[#-'*+\--9=?A-Z^-~]/);
1863
+ function yn(e) {
1861
1864
  return (
1862
1865
  // Special whitespace codes (which have negative values), C0 and Control
1863
1866
  // character DEL
1864
1867
  e !== null && (e < 32 || e === 127)
1865
1868
  );
1866
1869
  }
1867
- const yn = ge(/\d/), Yi = ge(/[\dA-Fa-f]/), Xi = ge(/[!-/:-@[-`{-~]/);
1870
+ const xn = ge(/\d/), $i = ge(/[\dA-Fa-f]/), Wi = ge(/[!-/:-@[-`{-~]/);
1868
1871
  function P(e) {
1869
1872
  return e !== null && e < -2;
1870
1873
  }
@@ -1874,7 +1877,7 @@ function K(e) {
1874
1877
  function D(e) {
1875
1878
  return e === -2 || e === -1 || e === 32;
1876
1879
  }
1877
- const Qi = ge(new RegExp("\\p{P}|\\p{S}", "u")), Gi = ge(/\s/);
1880
+ const Yi = ge(new RegExp("\\p{P}|\\p{S}", "u")), Xi = ge(/\s/);
1878
1881
  function ge(e) {
1879
1882
  return n;
1880
1883
  function n(t) {
@@ -1911,10 +1914,10 @@ function M(e, n, t, r) {
1911
1914
  return D(u) && l++ < i ? (e.consume(u), a) : (e.exit(t), n(u));
1912
1915
  }
1913
1916
  }
1914
- const Ki = {
1915
- tokenize: Ji
1917
+ const Qi = {
1918
+ tokenize: Gi
1916
1919
  };
1917
- function Ji(e) {
1920
+ function Gi(e) {
1918
1921
  const n = e.attempt(this.parser.constructs.contentInitial, r, i);
1919
1922
  let t;
1920
1923
  return n;
@@ -1943,23 +1946,23 @@ function Ji(e) {
1943
1946
  return P(a) ? (e.consume(a), e.exit("chunkText"), l) : (e.consume(a), o);
1944
1947
  }
1945
1948
  }
1946
- const Zi = {
1947
- tokenize: el
1948
- }, lt = {
1949
- tokenize: nl
1949
+ const Ki = {
1950
+ tokenize: Ji
1951
+ }, ot = {
1952
+ tokenize: Zi
1950
1953
  };
1951
- function el(e) {
1954
+ function Ji(e) {
1952
1955
  const n = this, t = [];
1953
1956
  let r = 0, i, l, o;
1954
1957
  return a;
1955
- function a(C) {
1958
+ function a(E) {
1956
1959
  if (r < t.length) {
1957
1960
  const j = t[r];
1958
- return n.containerState = j[1], e.attempt(j[0].continuation, u, c)(C);
1961
+ return n.containerState = j[1], e.attempt(j[0].continuation, u, c)(E);
1959
1962
  }
1960
- return c(C);
1963
+ return c(E);
1961
1964
  }
1962
- function u(C) {
1965
+ function u(E) {
1963
1966
  if (r++, n.containerState._closeFlow) {
1964
1967
  n.containerState._closeFlow = void 0, i && L();
1965
1968
  const j = n.events.length;
@@ -1975,53 +1978,53 @@ function el(e) {
1975
1978
  n.events[N][1].end = {
1976
1979
  ...x
1977
1980
  }, N++;
1978
- return se(n.events, U + 1, 0, n.events.slice(j)), n.events.length = N, c(C);
1981
+ return se(n.events, U + 1, 0, n.events.slice(j)), n.events.length = N, c(E);
1979
1982
  }
1980
- return a(C);
1983
+ return a(E);
1981
1984
  }
1982
- function c(C) {
1985
+ function c(E) {
1983
1986
  if (r === t.length) {
1984
1987
  if (!i)
1985
- return d(C);
1988
+ return d(E);
1986
1989
  if (i.currentConstruct && i.currentConstruct.concrete)
1987
- return y(C);
1990
+ return y(E);
1988
1991
  n.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
1989
1992
  }
1990
- return n.containerState = {}, e.check(lt, s, f)(C);
1993
+ return n.containerState = {}, e.check(ot, s, f)(E);
1991
1994
  }
1992
- function s(C) {
1993
- return i && L(), w(r), d(C);
1995
+ function s(E) {
1996
+ return i && L(), w(r), d(E);
1994
1997
  }
1995
- function f(C) {
1996
- return n.parser.lazy[n.now().line] = r !== t.length, o = n.now().offset, y(C);
1998
+ function f(E) {
1999
+ return n.parser.lazy[n.now().line] = r !== t.length, o = n.now().offset, y(E);
1997
2000
  }
1998
- function d(C) {
1999
- return n.containerState = {}, e.attempt(lt, p, y)(C);
2001
+ function d(E) {
2002
+ return n.containerState = {}, e.attempt(ot, p, y)(E);
2000
2003
  }
2001
- function p(C) {
2002
- return r++, t.push([n.currentConstruct, n.containerState]), d(C);
2004
+ function p(E) {
2005
+ return r++, t.push([n.currentConstruct, n.containerState]), d(E);
2003
2006
  }
2004
- function y(C) {
2005
- if (C === null) {
2006
- i && L(), w(0), e.consume(C);
2007
+ function y(E) {
2008
+ if (E === null) {
2009
+ i && L(), w(0), e.consume(E);
2007
2010
  return;
2008
2011
  }
2009
2012
  return i = i || n.parser.flow(n.now()), e.enter("chunkFlow", {
2010
2013
  _tokenizer: i,
2011
2014
  contentType: "flow",
2012
2015
  previous: l
2013
- }), b(C);
2016
+ }), b(E);
2014
2017
  }
2015
- function b(C) {
2016
- if (C === null) {
2017
- T(e.exit("chunkFlow"), !0), w(0), e.consume(C);
2018
+ function b(E) {
2019
+ if (E === null) {
2020
+ T(e.exit("chunkFlow"), !0), w(0), e.consume(E);
2018
2021
  return;
2019
2022
  }
2020
- return P(C) ? (e.consume(C), T(e.exit("chunkFlow")), r = 0, n.interrupt = void 0, a) : (e.consume(C), b);
2023
+ return P(E) ? (e.consume(E), T(e.exit("chunkFlow")), r = 0, n.interrupt = void 0, a) : (e.consume(E), b);
2021
2024
  }
2022
- function T(C, j) {
2023
- const U = n.sliceStream(C);
2024
- if (j && U.push(null), C.previous = l, l && (l.next = C), l = C, i.defineSkip(C.start), i.write(U), n.parser.lazy[C.start.line]) {
2025
+ function T(E, j) {
2026
+ const U = n.sliceStream(E);
2027
+ if (j && U.push(null), E.previous = l, l && (l.next = E), l = E, i.defineSkip(E.start), i.write(U), n.parser.lazy[E.start.line]) {
2025
2028
  let x = i.events.length;
2026
2029
  for (; x--; )
2027
2030
  if (
@@ -2048,28 +2051,28 @@ function el(e) {
2048
2051
  se(n.events, V + 1, 0, n.events.slice(N)), n.events.length = x;
2049
2052
  }
2050
2053
  }
2051
- function w(C) {
2054
+ function w(E) {
2052
2055
  let j = t.length;
2053
- for (; j-- > C; ) {
2056
+ for (; j-- > E; ) {
2054
2057
  const U = t[j];
2055
2058
  n.containerState = U[1], U[0].exit.call(n, e);
2056
2059
  }
2057
- t.length = C;
2060
+ t.length = E;
2058
2061
  }
2059
2062
  function L() {
2060
2063
  i.write([null]), l = void 0, i = void 0, n.containerState._closeFlow = void 0;
2061
2064
  }
2062
2065
  }
2063
- function nl(e, n, t) {
2066
+ function Zi(e, n, t) {
2064
2067
  return M(e, e.attempt(this.parser.constructs.document, n, t), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
2065
2068
  }
2066
- function ot(e) {
2067
- if (e === null || K(e) || Gi(e))
2069
+ function at(e) {
2070
+ if (e === null || K(e) || Xi(e))
2068
2071
  return 1;
2069
- if (Qi(e))
2072
+ if (Yi(e))
2070
2073
  return 2;
2071
2074
  }
2072
- function Ln(e, n, t) {
2075
+ function On(e, n, t) {
2073
2076
  const r = [];
2074
2077
  let i = -1;
2075
2078
  for (; ++i < e.length; ) {
@@ -2078,12 +2081,12 @@ function Ln(e, n, t) {
2078
2081
  }
2079
2082
  return n;
2080
2083
  }
2081
- const xn = {
2084
+ const kn = {
2082
2085
  name: "attention",
2083
- resolveAll: tl,
2084
- tokenize: rl
2086
+ resolveAll: el,
2087
+ tokenize: nl
2085
2088
  };
2086
- function tl(e, n) {
2089
+ function el(e, n) {
2087
2090
  let t = -1, r, i, l, o, a, u, c, s;
2088
2091
  for (; ++t < e.length; )
2089
2092
  if (e[t][0] === "enter" && e[t][1].type === "attentionSequence" && e[t][1]._close) {
@@ -2098,7 +2101,7 @@ function tl(e, n) {
2098
2101
  }, d = {
2099
2102
  ...e[t][1].start
2100
2103
  };
2101
- at(f, -u), at(d, u), o = {
2104
+ ut(f, -u), ut(d, u), o = {
2102
2105
  type: u > 1 ? "strongSequence" : "emphasisSequence",
2103
2106
  start: f,
2104
2107
  end: {
@@ -2130,7 +2133,7 @@ function tl(e, n) {
2130
2133
  ...o.start
2131
2134
  }, e[t][1].start = {
2132
2135
  ...a.end
2133
- }, c = [], e[r][1].end.offset - e[r][1].start.offset && (c = te(c, [["enter", e[r][1], n], ["exit", e[r][1], n]])), c = te(c, [["enter", i, n], ["enter", o, n], ["exit", o, n], ["enter", l, n]]), c = te(c, Ln(n.parser.constructs.insideSpan.null, e.slice(r + 1, t), n)), c = te(c, [["exit", l, n], ["enter", a, n], ["exit", a, n], ["exit", i, n]]), e[t][1].end.offset - e[t][1].start.offset ? (s = 2, c = te(c, [["enter", e[t][1], n], ["exit", e[t][1], n]])) : s = 0, se(e, r - 1, t - r + 3, c), t = r + c.length - s - 2;
2136
+ }, c = [], e[r][1].end.offset - e[r][1].start.offset && (c = te(c, [["enter", e[r][1], n], ["exit", e[r][1], n]])), c = te(c, [["enter", i, n], ["enter", o, n], ["exit", o, n], ["enter", l, n]]), c = te(c, On(n.parser.constructs.insideSpan.null, e.slice(r + 1, t), n)), c = te(c, [["exit", l, n], ["enter", a, n], ["exit", a, n], ["exit", i, n]]), e[t][1].end.offset - e[t][1].start.offset ? (s = 2, c = te(c, [["enter", e[t][1], n], ["exit", e[t][1], n]])) : s = 0, se(e, r - 1, t - r + 3, c), t = r + c.length - s - 2;
2134
2137
  break;
2135
2138
  }
2136
2139
  }
@@ -2138,8 +2141,8 @@ function tl(e, n) {
2138
2141
  e[t][1].type === "attentionSequence" && (e[t][1].type = "data");
2139
2142
  return e;
2140
2143
  }
2141
- function rl(e, n) {
2142
- const t = this.parser.constructs.attentionMarkers.null, r = this.previous, i = ot(r);
2144
+ function nl(e, n) {
2145
+ const t = this.parser.constructs.attentionMarkers.null, r = this.previous, i = at(r);
2143
2146
  let l;
2144
2147
  return o;
2145
2148
  function o(u) {
@@ -2148,18 +2151,18 @@ function rl(e, n) {
2148
2151
  function a(u) {
2149
2152
  if (u === l)
2150
2153
  return e.consume(u), a;
2151
- const c = e.exit("attentionSequence"), s = ot(u), f = !s || s === 2 && i || t.includes(u), d = !i || i === 2 && s || t.includes(r);
2154
+ const c = e.exit("attentionSequence"), s = at(u), f = !s || s === 2 && i || t.includes(u), d = !i || i === 2 && s || t.includes(r);
2152
2155
  return c._open = !!(l === 42 ? f : f && (i || !d)), c._close = !!(l === 42 ? d : d && (s || !f)), n(u);
2153
2156
  }
2154
2157
  }
2155
- function at(e, n) {
2158
+ function ut(e, n) {
2156
2159
  e.column += n, e.offset += n, e._bufferIndex += n;
2157
2160
  }
2158
- const il = {
2161
+ const tl = {
2159
2162
  name: "autolink",
2160
- tokenize: ll
2163
+ tokenize: rl
2161
2164
  };
2162
- function ll(e, n, t) {
2165
+ function rl(e, n, t) {
2163
2166
  let r = 0;
2164
2167
  return i;
2165
2168
  function i(p) {
@@ -2175,10 +2178,10 @@ function ll(e, n, t) {
2175
2178
  return p === 58 ? (e.consume(p), r = 0, u) : (p === 43 || p === 45 || p === 46 || ne(p)) && r++ < 32 ? (e.consume(p), a) : (r = 0, c(p));
2176
2179
  }
2177
2180
  function u(p) {
2178
- return p === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.exit("autolink"), n) : p === null || p === 32 || p === 60 || gn(p) ? t(p) : (e.consume(p), u);
2181
+ return p === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.exit("autolink"), n) : p === null || p === 32 || p === 60 || yn(p) ? t(p) : (e.consume(p), u);
2179
2182
  }
2180
2183
  function c(p) {
2181
- return p === 64 ? (e.consume(p), s) : Wi(p) ? (e.consume(p), c) : t(p);
2184
+ return p === 64 ? (e.consume(p), s) : qi(p) ? (e.consume(p), c) : t(p);
2182
2185
  }
2183
2186
  function s(p) {
2184
2187
  return ne(p) ? f(p) : t(p);
@@ -2196,9 +2199,9 @@ function ll(e, n, t) {
2196
2199
  }
2197
2200
  const Ge = {
2198
2201
  partial: !0,
2199
- tokenize: ol
2202
+ tokenize: il
2200
2203
  };
2201
- function ol(e, n, t) {
2204
+ function il(e, n, t) {
2202
2205
  return r;
2203
2206
  function r(l) {
2204
2207
  return D(l) ? M(e, i, "linePrefix")(l) : i(l);
@@ -2207,15 +2210,15 @@ function ol(e, n, t) {
2207
2210
  return l === null || P(l) ? n(l) : t(l);
2208
2211
  }
2209
2212
  }
2210
- const Xt = {
2213
+ const Qt = {
2211
2214
  continuation: {
2212
- tokenize: ul
2215
+ tokenize: ol
2213
2216
  },
2214
- exit: sl,
2217
+ exit: al,
2215
2218
  name: "blockQuote",
2216
- tokenize: al
2219
+ tokenize: ll
2217
2220
  };
2218
- function al(e, n, t) {
2221
+ function ll(e, n, t) {
2219
2222
  const r = this;
2220
2223
  return i;
2221
2224
  function i(o) {
@@ -2231,37 +2234,37 @@ function al(e, n, t) {
2231
2234
  return D(o) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(o), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), n) : (e.exit("blockQuotePrefix"), n(o));
2232
2235
  }
2233
2236
  }
2234
- function ul(e, n, t) {
2237
+ function ol(e, n, t) {
2235
2238
  const r = this;
2236
2239
  return i;
2237
2240
  function i(o) {
2238
2241
  return D(o) ? M(e, l, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(o) : l(o);
2239
2242
  }
2240
2243
  function l(o) {
2241
- return e.attempt(Xt, n, t)(o);
2244
+ return e.attempt(Qt, n, t)(o);
2242
2245
  }
2243
2246
  }
2244
- function sl(e) {
2247
+ function al(e) {
2245
2248
  e.exit("blockQuote");
2246
2249
  }
2247
- const Qt = {
2250
+ const Gt = {
2248
2251
  name: "characterEscape",
2249
- tokenize: cl
2252
+ tokenize: ul
2250
2253
  };
2251
- function cl(e, n, t) {
2254
+ function ul(e, n, t) {
2252
2255
  return r;
2253
2256
  function r(l) {
2254
2257
  return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(l), e.exit("escapeMarker"), i;
2255
2258
  }
2256
2259
  function i(l) {
2257
- return Xi(l) ? (e.enter("characterEscapeValue"), e.consume(l), e.exit("characterEscapeValue"), e.exit("characterEscape"), n) : t(l);
2260
+ return Wi(l) ? (e.enter("characterEscapeValue"), e.consume(l), e.exit("characterEscapeValue"), e.exit("characterEscape"), n) : t(l);
2258
2261
  }
2259
2262
  }
2260
- const Gt = {
2263
+ const Kt = {
2261
2264
  name: "characterReference",
2262
- tokenize: pl
2265
+ tokenize: sl
2263
2266
  };
2264
- function pl(e, n, t) {
2267
+ function sl(e, n, t) {
2265
2268
  const r = this;
2266
2269
  let i = 0, l, o;
2267
2270
  return a;
@@ -2272,25 +2275,25 @@ function pl(e, n, t) {
2272
2275
  return f === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(f), e.exit("characterReferenceMarkerNumeric"), c) : (e.enter("characterReferenceValue"), l = 31, o = ne, s(f));
2273
2276
  }
2274
2277
  function c(f) {
2275
- return f === 88 || f === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(f), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), l = 6, o = Yi, s) : (e.enter("characterReferenceValue"), l = 7, o = yn, s(f));
2278
+ return f === 88 || f === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(f), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), l = 6, o = $i, s) : (e.enter("characterReferenceValue"), l = 7, o = xn, s(f));
2276
2279
  }
2277
2280
  function s(f) {
2278
2281
  if (f === 59 && i) {
2279
2282
  const d = e.exit("characterReferenceValue");
2280
- return o === ne && !zn(r.sliceSerialize(d)) ? t(f) : (e.enter("characterReferenceMarker"), e.consume(f), e.exit("characterReferenceMarker"), e.exit("characterReference"), n);
2283
+ return o === ne && !Ln(r.sliceSerialize(d)) ? t(f) : (e.enter("characterReferenceMarker"), e.consume(f), e.exit("characterReferenceMarker"), e.exit("characterReference"), n);
2281
2284
  }
2282
2285
  return o(f) && i++ < l ? (e.consume(f), s) : t(f);
2283
2286
  }
2284
2287
  }
2285
- const ut = {
2288
+ const st = {
2286
2289
  partial: !0,
2287
- tokenize: hl
2288
- }, st = {
2290
+ tokenize: pl
2291
+ }, ct = {
2289
2292
  concrete: !0,
2290
2293
  name: "codeFenced",
2291
- tokenize: fl
2294
+ tokenize: cl
2292
2295
  };
2293
- function fl(e, n, t) {
2296
+ function cl(e, n, t) {
2294
2297
  const r = this, i = {
2295
2298
  partial: !0,
2296
2299
  tokenize: U
@@ -2308,7 +2311,7 @@ function fl(e, n, t) {
2308
2311
  return x === a ? (o++, e.consume(x), s) : o < 3 ? t(x) : (e.exit("codeFencedFenceSequence"), D(x) ? M(e, f, "whitespace")(x) : f(x));
2309
2312
  }
2310
2313
  function f(x) {
2311
- return x === null || P(x) ? (e.exit("codeFencedFence"), r.interrupt ? n(x) : e.check(ut, b, j)(x)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
2314
+ return x === null || P(x) ? (e.exit("codeFencedFence"), r.interrupt ? n(x) : e.check(st, b, j)(x)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
2312
2315
  contentType: "string"
2313
2316
  }), d(x));
2314
2317
  }
@@ -2333,10 +2336,10 @@ function fl(e, n, t) {
2333
2336
  return l > 0 && D(x) ? M(e, L, "linePrefix", l + 1)(x) : L(x);
2334
2337
  }
2335
2338
  function L(x) {
2336
- return x === null || P(x) ? e.check(ut, b, j)(x) : (e.enter("codeFlowValue"), C(x));
2339
+ return x === null || P(x) ? e.check(st, b, j)(x) : (e.enter("codeFlowValue"), E(x));
2337
2340
  }
2338
- function C(x) {
2339
- return x === null || P(x) ? (e.exit("codeFlowValue"), L(x)) : (e.consume(x), C);
2341
+ function E(x) {
2342
+ return x === null || P(x) ? (e.exit("codeFlowValue"), L(x)) : (e.consume(x), E);
2340
2343
  }
2341
2344
  function j(x) {
2342
2345
  return e.exit("codeFenced"), n(x);
@@ -2348,9 +2351,9 @@ function fl(e, n, t) {
2348
2351
  return x.enter("lineEnding"), x.consume(v), x.exit("lineEnding"), I;
2349
2352
  }
2350
2353
  function I(v) {
2351
- return x.enter("codeFencedFence"), D(v) ? M(x, E, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(v) : E(v);
2354
+ return x.enter("codeFencedFence"), D(v) ? M(x, C, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(v) : C(v);
2352
2355
  }
2353
- function E(v) {
2356
+ function C(v) {
2354
2357
  return v === a ? (x.enter("codeFencedFenceSequence"), H(v)) : V(v);
2355
2358
  }
2356
2359
  function H(v) {
@@ -2361,7 +2364,7 @@ function fl(e, n, t) {
2361
2364
  }
2362
2365
  }
2363
2366
  }
2364
- function hl(e, n, t) {
2367
+ function pl(e, n, t) {
2365
2368
  const r = this;
2366
2369
  return i;
2367
2370
  function i(o) {
@@ -2371,14 +2374,14 @@ function hl(e, n, t) {
2371
2374
  return r.parser.lazy[r.now().line] ? t(o) : n(o);
2372
2375
  }
2373
2376
  }
2374
- const nn = {
2377
+ const tn = {
2375
2378
  name: "codeIndented",
2376
- tokenize: dl
2377
- }, ml = {
2379
+ tokenize: hl
2380
+ }, fl = {
2378
2381
  partial: !0,
2379
- tokenize: gl
2382
+ tokenize: ml
2380
2383
  };
2381
- function dl(e, n, t) {
2384
+ function hl(e, n, t) {
2382
2385
  const r = this;
2383
2386
  return i;
2384
2387
  function i(c) {
@@ -2389,7 +2392,7 @@ function dl(e, n, t) {
2389
2392
  return s && s[1].type === "linePrefix" && s[2].sliceSerialize(s[1], !0).length >= 4 ? o(c) : t(c);
2390
2393
  }
2391
2394
  function o(c) {
2392
- return c === null ? u(c) : P(c) ? e.attempt(ml, o, u)(c) : (e.enter("codeFlowValue"), a(c));
2395
+ return c === null ? u(c) : P(c) ? e.attempt(fl, o, u)(c) : (e.enter("codeFlowValue"), a(c));
2393
2396
  }
2394
2397
  function a(c) {
2395
2398
  return c === null || P(c) ? (e.exit("codeFlowValue"), o(c)) : (e.consume(c), a);
@@ -2398,7 +2401,7 @@ function dl(e, n, t) {
2398
2401
  return e.exit("codeIndented"), n(c);
2399
2402
  }
2400
2403
  }
2401
- function gl(e, n, t) {
2404
+ function ml(e, n, t) {
2402
2405
  const r = this;
2403
2406
  return i;
2404
2407
  function i(o) {
@@ -2409,13 +2412,13 @@ function gl(e, n, t) {
2409
2412
  return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? n(o) : P(o) ? i(o) : t(o);
2410
2413
  }
2411
2414
  }
2412
- const yl = {
2415
+ const dl = {
2413
2416
  name: "codeText",
2414
- previous: kl,
2415
- resolve: xl,
2416
- tokenize: bl
2417
+ previous: yl,
2418
+ resolve: gl,
2419
+ tokenize: xl
2417
2420
  };
2418
- function xl(e) {
2421
+ function gl(e) {
2419
2422
  let n = e.length - 4, t = 3, r, i;
2420
2423
  if ((e[t][1].type === "lineEnding" || e[t][1].type === "space") && (e[n][1].type === "lineEnding" || e[n][1].type === "space")) {
2421
2424
  for (r = t; ++r < n; )
@@ -2428,10 +2431,10 @@ function xl(e) {
2428
2431
  i === void 0 ? r !== n && e[r][1].type !== "lineEnding" && (i = r) : (r === n || 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), n -= r - i - 2, r = i + 2), i = void 0);
2429
2432
  return e;
2430
2433
  }
2431
- function kl(e) {
2434
+ function yl(e) {
2432
2435
  return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
2433
2436
  }
2434
- function bl(e, n, t) {
2437
+ function xl(e, n, t) {
2435
2438
  let r = 0, i, l;
2436
2439
  return o;
2437
2440
  function o(f) {
@@ -2450,7 +2453,7 @@ function bl(e, n, t) {
2450
2453
  return f === 96 ? (e.consume(f), i++, s) : i === r ? (e.exit("codeTextSequence"), e.exit("codeText"), n(f)) : (l.type = "codeTextData", c(f));
2451
2454
  }
2452
2455
  }
2453
- class wl {
2456
+ class kl {
2454
2457
  /**
2455
2458
  * @param {ReadonlyArray<T> | null | undefined} [initial]
2456
2459
  * Initial items (optional).
@@ -2622,10 +2625,10 @@ function ve(e, n) {
2622
2625
  for (; t < n.length; )
2623
2626
  e.push(...n.slice(t, t + 1e4)), t += 1e4;
2624
2627
  }
2625
- function Kt(e) {
2628
+ function Jt(e) {
2626
2629
  const n = {};
2627
2630
  let t = -1, r, i, l, o, a, u, c;
2628
- const s = new wl(e);
2631
+ const s = new kl(e);
2629
2632
  for (; ++t < s.length; ) {
2630
2633
  for (; t in n; )
2631
2634
  t = n[t];
@@ -2633,7 +2636,7 @@ function Kt(e) {
2633
2636
  for (; ++l < u.length && u[l][1].type !== "content"; )
2634
2637
  u[l][1].type === "chunkText" && (u[l][1]._isInFirstContentOfListItem = !0, l++);
2635
2638
  if (r[0] === "enter")
2636
- r[1].contentType && (Object.assign(n, Sl(s, t)), t = n[t], c = !0);
2639
+ r[1].contentType && (Object.assign(n, bl(s, t)), t = n[t], c = !0);
2637
2640
  else if (r[1]._container) {
2638
2641
  for (l = t, i = void 0; l--; )
2639
2642
  if (o = s.get(l), o[1].type === "lineEnding" || o[1].type === "lineEndingBlank")
@@ -2646,7 +2649,7 @@ function Kt(e) {
2646
2649
  }
2647
2650
  return se(e, 0, Number.POSITIVE_INFINITY, s.slice(0)), !c;
2648
2651
  }
2649
- function Sl(e, n) {
2652
+ function bl(e, n) {
2650
2653
  const t = e.get(n)[1], r = e.get(n)[2];
2651
2654
  let i = n - 1;
2652
2655
  const l = [];
@@ -2671,17 +2674,17 @@ function Sl(e, n) {
2671
2674
  c[y + u[d][0]] = y + u[d][1], y += u[d][1] - u[d][0] - 1;
2672
2675
  return c;
2673
2676
  }
2674
- const Cl = {
2675
- resolve: Il,
2676
- tokenize: Tl
2677
- }, El = {
2677
+ const wl = {
2678
+ resolve: El,
2679
+ tokenize: Cl
2680
+ }, Sl = {
2678
2681
  partial: !0,
2679
- tokenize: Pl
2682
+ tokenize: Il
2680
2683
  };
2681
- function Il(e) {
2682
- return Kt(e), e;
2684
+ function El(e) {
2685
+ return Jt(e), e;
2683
2686
  }
2684
- function Tl(e, n) {
2687
+ function Cl(e, n) {
2685
2688
  let t;
2686
2689
  return r;
2687
2690
  function r(a) {
@@ -2690,7 +2693,7 @@ function Tl(e, n) {
2690
2693
  }), i(a);
2691
2694
  }
2692
2695
  function i(a) {
2693
- return a === null ? l(a) : P(a) ? e.check(El, o, l)(a) : (e.consume(a), i);
2696
+ return a === null ? l(a) : P(a) ? e.check(Sl, o, l)(a) : (e.consume(a), i);
2694
2697
  }
2695
2698
  function l(a) {
2696
2699
  return e.exit("chunkContent"), e.exit("content"), n(a);
@@ -2702,7 +2705,7 @@ function Tl(e, n) {
2702
2705
  }), t = t.next, i;
2703
2706
  }
2704
2707
  }
2705
- function Pl(e, n, t) {
2708
+ function Il(e, n, t) {
2706
2709
  const r = this;
2707
2710
  return i;
2708
2711
  function i(o) {
@@ -2715,12 +2718,12 @@ function Pl(e, n, t) {
2715
2718
  return !r.parser.constructs.disable.null.includes("codeIndented") && a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? n(o) : e.interrupt(r.parser.constructs.flow, t, n)(o);
2716
2719
  }
2717
2720
  }
2718
- function Jt(e, n, t, r, i, l, o, a, u) {
2721
+ function Zt(e, n, t, r, i, l, o, a, u) {
2719
2722
  const c = u || Number.POSITIVE_INFINITY;
2720
2723
  let s = 0;
2721
2724
  return f;
2722
2725
  function f(w) {
2723
- return w === 60 ? (e.enter(r), e.enter(i), e.enter(l), e.consume(w), e.exit(l), d) : w === null || w === 32 || w === 41 || gn(w) ? t(w) : (e.enter(r), e.enter(o), e.enter(a), e.enter("chunkString", {
2726
+ return w === 60 ? (e.enter(r), e.enter(i), e.enter(l), e.consume(w), e.exit(l), d) : w === null || w === 32 || w === 41 || yn(w) ? t(w) : (e.enter(r), e.enter(o), e.enter(a), e.enter("chunkString", {
2724
2727
  contentType: "string"
2725
2728
  }), b(w));
2726
2729
  }
@@ -2736,13 +2739,13 @@ function Jt(e, n, t, r, i, l, o, a, u) {
2736
2739
  return w === 60 || w === 62 || w === 92 ? (e.consume(w), p) : p(w);
2737
2740
  }
2738
2741
  function b(w) {
2739
- return !s && (w === null || w === 41 || K(w)) ? (e.exit("chunkString"), e.exit(a), e.exit(o), e.exit(r), n(w)) : s < c && w === 40 ? (e.consume(w), s++, b) : w === 41 ? (e.consume(w), s--, b) : w === null || w === 32 || w === 40 || gn(w) ? t(w) : (e.consume(w), w === 92 ? T : b);
2742
+ return !s && (w === null || w === 41 || K(w)) ? (e.exit("chunkString"), e.exit(a), e.exit(o), e.exit(r), n(w)) : s < c && w === 40 ? (e.consume(w), s++, b) : w === 41 ? (e.consume(w), s--, b) : w === null || w === 32 || w === 40 || yn(w) ? t(w) : (e.consume(w), w === 92 ? T : b);
2740
2743
  }
2741
2744
  function T(w) {
2742
2745
  return w === 40 || w === 41 || w === 92 ? (e.consume(w), b) : b(w);
2743
2746
  }
2744
2747
  }
2745
- function Zt(e, n, t, r, i, l) {
2748
+ function er(e, n, t, r, i, l) {
2746
2749
  const o = this;
2747
2750
  let a = 0, u;
2748
2751
  return c;
@@ -2766,7 +2769,7 @@ function Zt(e, n, t, r, i, l) {
2766
2769
  return p === 91 || p === 92 || p === 93 ? (e.consume(p), a++, f) : f(p);
2767
2770
  }
2768
2771
  }
2769
- function er(e, n, t, r, i, l) {
2772
+ function nr(e, n, t, r, i, l) {
2770
2773
  let o;
2771
2774
  return a;
2772
2775
  function a(d) {
@@ -2794,14 +2797,14 @@ function _e(e, n) {
2794
2797
  return P(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), t = !0, r) : D(i) ? M(e, r, t ? "linePrefix" : "lineSuffix")(i) : n(i);
2795
2798
  }
2796
2799
  }
2797
- const Al = {
2800
+ const Tl = {
2798
2801
  name: "definition",
2799
- tokenize: Ll
2800
- }, zl = {
2802
+ tokenize: Al
2803
+ }, Pl = {
2801
2804
  partial: !0,
2802
- tokenize: Ol
2805
+ tokenize: zl
2803
2806
  };
2804
- function Ll(e, n, t) {
2807
+ function Al(e, n, t) {
2805
2808
  const r = this;
2806
2809
  let i;
2807
2810
  return l;
@@ -2809,7 +2812,7 @@ function Ll(e, n, t) {
2809
2812
  return e.enter("definition"), o(p);
2810
2813
  }
2811
2814
  function o(p) {
2812
- return Zt.call(
2815
+ return er.call(
2813
2816
  r,
2814
2817
  e,
2815
2818
  a,
@@ -2827,7 +2830,7 @@ function Ll(e, n, t) {
2827
2830
  return K(p) ? _e(e, c)(p) : c(p);
2828
2831
  }
2829
2832
  function c(p) {
2830
- return Jt(
2833
+ return Zt(
2831
2834
  e,
2832
2835
  s,
2833
2836
  // Note: we don’t need to reset the way `markdown-rs` does.
@@ -2840,7 +2843,7 @@ function Ll(e, n, t) {
2840
2843
  )(p);
2841
2844
  }
2842
2845
  function s(p) {
2843
- return e.attempt(zl, f, f)(p);
2846
+ return e.attempt(Pl, f, f)(p);
2844
2847
  }
2845
2848
  function f(p) {
2846
2849
  return D(p) ? M(e, d, "whitespace")(p) : d(p);
@@ -2849,13 +2852,13 @@ function Ll(e, n, t) {
2849
2852
  return p === null || P(p) ? (e.exit("definition"), r.parser.defined.push(i), n(p)) : t(p);
2850
2853
  }
2851
2854
  }
2852
- function Ol(e, n, t) {
2855
+ function zl(e, n, t) {
2853
2856
  return r;
2854
2857
  function r(a) {
2855
2858
  return K(a) ? _e(e, i)(a) : t(a);
2856
2859
  }
2857
2860
  function i(a) {
2858
- return er(e, l, t, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
2861
+ return nr(e, l, t, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
2859
2862
  }
2860
2863
  function l(a) {
2861
2864
  return D(a) ? M(e, o, "whitespace")(a) : o(a);
@@ -2864,11 +2867,11 @@ function Ol(e, n, t) {
2864
2867
  return a === null || P(a) ? n(a) : t(a);
2865
2868
  }
2866
2869
  }
2867
- const vl = {
2870
+ const Ll = {
2868
2871
  name: "hardBreakEscape",
2869
- tokenize: Dl
2872
+ tokenize: Ol
2870
2873
  };
2871
- function Dl(e, n, t) {
2874
+ function Ol(e, n, t) {
2872
2875
  return r;
2873
2876
  function r(l) {
2874
2877
  return e.enter("hardBreakEscape"), e.consume(l), i;
@@ -2877,12 +2880,12 @@ function Dl(e, n, t) {
2877
2880
  return P(l) ? (e.exit("hardBreakEscape"), n(l)) : t(l);
2878
2881
  }
2879
2882
  }
2880
- const Nl = {
2883
+ const vl = {
2881
2884
  name: "headingAtx",
2882
- resolve: _l,
2883
- tokenize: Fl
2885
+ resolve: Dl,
2886
+ tokenize: Nl
2884
2887
  };
2885
- function _l(e, n) {
2888
+ function Dl(e, n) {
2886
2889
  let t = e.length - 2, r = 3, i, l;
2887
2890
  return e[r][1].type === "whitespace" && (r += 2), t - 2 > r && e[t][1].type === "whitespace" && (t -= 2), e[t][1].type === "atxHeadingSequence" && (r === t - 1 || t - 4 > r && e[t - 2][1].type === "whitespace") && (t -= r + 1 === t ? 2 : 4), t > r && (i = {
2888
2891
  type: "atxHeadingText",
@@ -2895,7 +2898,7 @@ function _l(e, n) {
2895
2898
  contentType: "text"
2896
2899
  }, se(e, r, t - r + 1, [["enter", i, n], ["enter", l, n], ["exit", l, n], ["exit", i, n]])), e;
2897
2900
  }
2898
- function Fl(e, n, t) {
2901
+ function Nl(e, n, t) {
2899
2902
  let r = 0;
2900
2903
  return i;
2901
2904
  function i(s) {
@@ -2917,7 +2920,7 @@ function Fl(e, n, t) {
2917
2920
  return s === null || s === 35 || K(s) ? (e.exit("atxHeadingText"), a(s)) : (e.consume(s), c);
2918
2921
  }
2919
2922
  }
2920
- const Rl = [
2923
+ const _l = [
2921
2924
  "address",
2922
2925
  "article",
2923
2926
  "aside",
@@ -2980,25 +2983,25 @@ const Rl = [
2980
2983
  "tr",
2981
2984
  "track",
2982
2985
  "ul"
2983
- ], ct = ["pre", "script", "style", "textarea"], Ml = {
2986
+ ], pt = ["pre", "script", "style", "textarea"], Fl = {
2984
2987
  concrete: !0,
2985
2988
  name: "htmlFlow",
2986
- resolveTo: Hl,
2987
- tokenize: Ul
2988
- }, Bl = {
2989
+ resolveTo: Bl,
2990
+ tokenize: jl
2991
+ }, Rl = {
2989
2992
  partial: !0,
2990
- tokenize: ql
2991
- }, jl = {
2993
+ tokenize: Ul
2994
+ }, Ml = {
2992
2995
  partial: !0,
2993
- tokenize: Vl
2996
+ tokenize: Hl
2994
2997
  };
2995
- function Hl(e) {
2998
+ function Bl(e) {
2996
2999
  let n = e.length;
2997
3000
  for (; n-- && !(e[n][0] === "enter" && e[n][1].type === "htmlFlow"); )
2998
3001
  ;
2999
3002
  return n > 1 && e[n - 2][1].type === "linePrefix" && (e[n][1].start = e[n - 2][1].start, e[n + 1][1].start = e[n - 2][1].start, e.splice(n - 2, 2)), e;
3000
3003
  }
3001
- function Ul(e, n, t) {
3004
+ function jl(e, n, t) {
3002
3005
  const r = this;
3003
3006
  let i, l, o, a, u;
3004
3007
  return c;
@@ -3019,7 +3022,7 @@ function Ul(e, n, t) {
3019
3022
  }
3020
3023
  function y(m) {
3021
3024
  const le = "CDATA[";
3022
- return m === le.charCodeAt(a++) ? (e.consume(m), a === le.length ? r.interrupt ? n : E : y) : t(m);
3025
+ return m === le.charCodeAt(a++) ? (e.consume(m), a === le.length ? r.interrupt ? n : C : y) : t(m);
3023
3026
  }
3024
3027
  function b(m) {
3025
3028
  return ue(m) ? (e.consume(m), o = String.fromCharCode(m), T) : t(m);
@@ -3027,24 +3030,24 @@ function Ul(e, n, t) {
3027
3030
  function T(m) {
3028
3031
  if (m === null || m === 47 || m === 62 || K(m)) {
3029
3032
  const le = m === 47, ye = o.toLowerCase();
3030
- return !le && !l && ct.includes(ye) ? (i = 1, r.interrupt ? n(m) : E(m)) : Rl.includes(o.toLowerCase()) ? (i = 6, le ? (e.consume(m), w) : r.interrupt ? n(m) : E(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? t(m) : l ? L(m) : C(m));
3033
+ return !le && !l && pt.includes(ye) ? (i = 1, r.interrupt ? n(m) : C(m)) : _l.includes(o.toLowerCase()) ? (i = 6, le ? (e.consume(m), w) : r.interrupt ? n(m) : C(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? t(m) : l ? L(m) : E(m));
3031
3034
  }
3032
3035
  return m === 45 || ne(m) ? (e.consume(m), o += String.fromCharCode(m), T) : t(m);
3033
3036
  }
3034
3037
  function w(m) {
3035
- return m === 62 ? (e.consume(m), r.interrupt ? n : E) : t(m);
3038
+ return m === 62 ? (e.consume(m), r.interrupt ? n : C) : t(m);
3036
3039
  }
3037
3040
  function L(m) {
3038
3041
  return D(m) ? (e.consume(m), L) : B(m);
3039
3042
  }
3040
- function C(m) {
3041
- return m === 47 ? (e.consume(m), B) : m === 58 || m === 95 || ue(m) ? (e.consume(m), j) : D(m) ? (e.consume(m), C) : B(m);
3043
+ function E(m) {
3044
+ return m === 47 ? (e.consume(m), B) : m === 58 || m === 95 || ue(m) ? (e.consume(m), j) : D(m) ? (e.consume(m), E) : B(m);
3042
3045
  }
3043
3046
  function j(m) {
3044
3047
  return m === 45 || m === 46 || m === 58 || m === 95 || ne(m) ? (e.consume(m), j) : U(m);
3045
3048
  }
3046
3049
  function U(m) {
3047
- return m === 61 ? (e.consume(m), x) : D(m) ? (e.consume(m), U) : C(m);
3050
+ return m === 61 ? (e.consume(m), x) : D(m) ? (e.consume(m), U) : E(m);
3048
3051
  }
3049
3052
  function x(m) {
3050
3053
  return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? t(m) : m === 34 || m === 39 ? (e.consume(m), u = m, N) : D(m) ? (e.consume(m), x) : V(m);
@@ -3056,44 +3059,44 @@ function Ul(e, n, t) {
3056
3059
  return m === null || m === 34 || m === 39 || m === 47 || m === 60 || m === 61 || m === 62 || m === 96 || K(m) ? U(m) : (e.consume(m), V);
3057
3060
  }
3058
3061
  function _(m) {
3059
- return m === 47 || m === 62 || D(m) ? C(m) : t(m);
3062
+ return m === 47 || m === 62 || D(m) ? E(m) : t(m);
3060
3063
  }
3061
3064
  function B(m) {
3062
3065
  return m === 62 ? (e.consume(m), I) : t(m);
3063
3066
  }
3064
3067
  function I(m) {
3065
- return m === null || P(m) ? E(m) : D(m) ? (e.consume(m), I) : t(m);
3068
+ return m === null || P(m) ? C(m) : D(m) ? (e.consume(m), I) : t(m);
3066
3069
  }
3067
- function E(m) {
3068
- return m === 45 && i === 2 ? (e.consume(m), X) : m === 60 && i === 1 ? (e.consume(m), W) : m === 62 && i === 4 ? (e.consume(m), ie) : m === 63 && i === 3 ? (e.consume(m), h) : m === 93 && i === 5 ? (e.consume(m), ce) : P(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Bl, pe, H)(m)) : m === null || P(m) ? (e.exit("htmlFlowData"), H(m)) : (e.consume(m), E);
3070
+ function C(m) {
3071
+ return m === 45 && i === 2 ? (e.consume(m), X) : m === 60 && i === 1 ? (e.consume(m), W) : m === 62 && i === 4 ? (e.consume(m), ie) : m === 63 && i === 3 ? (e.consume(m), h) : m === 93 && i === 5 ? (e.consume(m), ce) : P(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Rl, pe, H)(m)) : m === null || P(m) ? (e.exit("htmlFlowData"), H(m)) : (e.consume(m), C);
3069
3072
  }
3070
3073
  function H(m) {
3071
- return e.check(jl, q, pe)(m);
3074
+ return e.check(Ml, q, pe)(m);
3072
3075
  }
3073
3076
  function q(m) {
3074
3077
  return e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), v;
3075
3078
  }
3076
3079
  function v(m) {
3077
- return m === null || P(m) ? H(m) : (e.enter("htmlFlowData"), E(m));
3080
+ return m === null || P(m) ? H(m) : (e.enter("htmlFlowData"), C(m));
3078
3081
  }
3079
3082
  function X(m) {
3080
- return m === 45 ? (e.consume(m), h) : E(m);
3083
+ return m === 45 ? (e.consume(m), h) : C(m);
3081
3084
  }
3082
3085
  function W(m) {
3083
- return m === 47 ? (e.consume(m), o = "", re) : E(m);
3086
+ return m === 47 ? (e.consume(m), o = "", re) : C(m);
3084
3087
  }
3085
3088
  function re(m) {
3086
3089
  if (m === 62) {
3087
3090
  const le = o.toLowerCase();
3088
- return ct.includes(le) ? (e.consume(m), ie) : E(m);
3091
+ return pt.includes(le) ? (e.consume(m), ie) : C(m);
3089
3092
  }
3090
- return ue(m) && o.length < 8 ? (e.consume(m), o += String.fromCharCode(m), re) : E(m);
3093
+ return ue(m) && o.length < 8 ? (e.consume(m), o += String.fromCharCode(m), re) : C(m);
3091
3094
  }
3092
3095
  function ce(m) {
3093
- return m === 93 ? (e.consume(m), h) : E(m);
3096
+ return m === 93 ? (e.consume(m), h) : C(m);
3094
3097
  }
3095
3098
  function h(m) {
3096
- return m === 62 ? (e.consume(m), ie) : m === 45 && i === 2 ? (e.consume(m), h) : E(m);
3099
+ return m === 62 ? (e.consume(m), ie) : m === 45 && i === 2 ? (e.consume(m), h) : C(m);
3097
3100
  }
3098
3101
  function ie(m) {
3099
3102
  return m === null || P(m) ? (e.exit("htmlFlowData"), pe(m)) : (e.consume(m), ie);
@@ -3102,7 +3105,7 @@ function Ul(e, n, t) {
3102
3105
  return e.exit("htmlFlow"), n(m);
3103
3106
  }
3104
3107
  }
3105
- function Vl(e, n, t) {
3108
+ function Hl(e, n, t) {
3106
3109
  const r = this;
3107
3110
  return i;
3108
3111
  function i(o) {
@@ -3112,17 +3115,17 @@ function Vl(e, n, t) {
3112
3115
  return r.parser.lazy[r.now().line] ? t(o) : n(o);
3113
3116
  }
3114
3117
  }
3115
- function ql(e, n, t) {
3118
+ function Ul(e, n, t) {
3116
3119
  return r;
3117
3120
  function r(i) {
3118
3121
  return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(Ge, n, t);
3119
3122
  }
3120
3123
  }
3121
- const $l = {
3124
+ const Vl = {
3122
3125
  name: "htmlText",
3123
- tokenize: Wl
3126
+ tokenize: ql
3124
3127
  };
3125
- function Wl(e, n, t) {
3128
+ function ql(e, n, t) {
3126
3129
  const r = this;
3127
3130
  let i, l, o;
3128
3131
  return a;
@@ -3130,7 +3133,7 @@ function Wl(e, n, t) {
3130
3133
  return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(h), u;
3131
3134
  }
3132
3135
  function u(h) {
3133
- return h === 33 ? (e.consume(h), c) : h === 47 ? (e.consume(h), U) : h === 63 ? (e.consume(h), C) : ue(h) ? (e.consume(h), V) : t(h);
3136
+ return h === 33 ? (e.consume(h), c) : h === 47 ? (e.consume(h), U) : h === 63 ? (e.consume(h), E) : ue(h) ? (e.consume(h), V) : t(h);
3134
3137
  }
3135
3138
  function c(h) {
3136
3139
  return h === 45 ? (e.consume(h), s) : h === 91 ? (e.consume(h), l = 0, y) : ue(h) ? (e.consume(h), L) : t(h);
@@ -3163,11 +3166,11 @@ function Wl(e, n, t) {
3163
3166
  function L(h) {
3164
3167
  return h === null || h === 62 ? X(h) : P(h) ? (o = L, W(h)) : (e.consume(h), L);
3165
3168
  }
3166
- function C(h) {
3167
- return h === null ? t(h) : h === 63 ? (e.consume(h), j) : P(h) ? (o = C, W(h)) : (e.consume(h), C);
3169
+ function E(h) {
3170
+ return h === null ? t(h) : h === 63 ? (e.consume(h), j) : P(h) ? (o = E, W(h)) : (e.consume(h), E);
3168
3171
  }
3169
3172
  function j(h) {
3170
- return h === 62 ? X(h) : C(h);
3173
+ return h === 62 ? X(h) : E(h);
3171
3174
  }
3172
3175
  function U(h) {
3173
3176
  return ue(h) ? (e.consume(h), x) : t(h);
@@ -3188,10 +3191,10 @@ function Wl(e, n, t) {
3188
3191
  return h === 45 || h === 46 || h === 58 || h === 95 || ne(h) ? (e.consume(h), B) : I(h);
3189
3192
  }
3190
3193
  function I(h) {
3191
- return h === 61 ? (e.consume(h), E) : P(h) ? (o = I, W(h)) : D(h) ? (e.consume(h), I) : _(h);
3194
+ return h === 61 ? (e.consume(h), C) : P(h) ? (o = I, W(h)) : D(h) ? (e.consume(h), I) : _(h);
3192
3195
  }
3193
- function E(h) {
3194
- return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? t(h) : h === 34 || h === 39 ? (e.consume(h), i = h, H) : P(h) ? (o = E, W(h)) : D(h) ? (e.consume(h), E) : (e.consume(h), q);
3196
+ function C(h) {
3197
+ return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? t(h) : h === 34 || h === 39 ? (e.consume(h), i = h, H) : P(h) ? (o = C, W(h)) : D(h) ? (e.consume(h), C) : (e.consume(h), q);
3195
3198
  }
3196
3199
  function H(h) {
3197
3200
  return h === i ? (e.consume(h), i = void 0, v) : h === null ? t(h) : P(h) ? (o = H, W(h)) : (e.consume(h), H);
@@ -3215,19 +3218,19 @@ function Wl(e, n, t) {
3215
3218
  return e.enter("htmlTextData"), o(h);
3216
3219
  }
3217
3220
  }
3218
- const On = {
3221
+ const vn = {
3219
3222
  name: "labelEnd",
3220
- resolveAll: Gl,
3221
- resolveTo: Kl,
3223
+ resolveAll: Xl,
3224
+ resolveTo: Ql,
3225
+ tokenize: Gl
3226
+ }, $l = {
3227
+ tokenize: Kl
3228
+ }, Wl = {
3222
3229
  tokenize: Jl
3223
3230
  }, Yl = {
3224
3231
  tokenize: Zl
3225
- }, Xl = {
3226
- tokenize: eo
3227
- }, Ql = {
3228
- tokenize: no
3229
3232
  };
3230
- function Gl(e) {
3233
+ function Xl(e) {
3231
3234
  let n = -1;
3232
3235
  const t = [];
3233
3236
  for (; ++n < e.length; ) {
@@ -3239,7 +3242,7 @@ function Gl(e) {
3239
3242
  }
3240
3243
  return e.length !== t.length && se(e, 0, e.length, t), e;
3241
3244
  }
3242
- function Kl(e, n) {
3245
+ function Ql(e, n) {
3243
3246
  let t = e.length, r = 0, i, l, o, a;
3244
3247
  for (; t--; )
3245
3248
  if (i = e[t][1], l) {
@@ -3277,9 +3280,9 @@ function Kl(e, n) {
3277
3280
  ...e[o - 2][1].start
3278
3281
  }
3279
3282
  };
3280
- return a = [["enter", u, n], ["enter", c, n]], a = te(a, e.slice(l + 1, l + r + 3)), a = te(a, [["enter", s, n]]), a = te(a, Ln(n.parser.constructs.insideSpan.null, e.slice(l + r + 4, o - 3), n)), a = te(a, [["exit", s, n], e[o - 2], e[o - 1], ["exit", c, n]]), a = te(a, e.slice(o + 1)), a = te(a, [["exit", u, n]]), se(e, l, e.length, a), e;
3283
+ return a = [["enter", u, n], ["enter", c, n]], a = te(a, e.slice(l + 1, l + r + 3)), a = te(a, [["enter", s, n]]), a = te(a, On(n.parser.constructs.insideSpan.null, e.slice(l + r + 4, o - 3), n)), a = te(a, [["exit", s, n], e[o - 2], e[o - 1], ["exit", c, n]]), a = te(a, e.slice(o + 1)), a = te(a, [["exit", u, n]]), se(e, l, e.length, a), e;
3281
3284
  }
3282
- function Jl(e, n, t) {
3285
+ function Gl(e, n, t) {
3283
3286
  const r = this;
3284
3287
  let i = r.events.length, l, o;
3285
3288
  for (; i--; )
@@ -3295,10 +3298,10 @@ function Jl(e, n, t) {
3295
3298
  }))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(d), e.exit("labelMarker"), e.exit("labelEnd"), u) : t(d);
3296
3299
  }
3297
3300
  function u(d) {
3298
- return d === 40 ? e.attempt(Yl, s, o ? s : f)(d) : d === 91 ? e.attempt(Xl, s, o ? c : f)(d) : o ? s(d) : f(d);
3301
+ return d === 40 ? e.attempt($l, s, o ? s : f)(d) : d === 91 ? e.attempt(Wl, s, o ? c : f)(d) : o ? s(d) : f(d);
3299
3302
  }
3300
3303
  function c(d) {
3301
- return e.attempt(Ql, s, f)(d);
3304
+ return e.attempt(Yl, s, f)(d);
3302
3305
  }
3303
3306
  function s(d) {
3304
3307
  return n(d);
@@ -3307,7 +3310,7 @@ function Jl(e, n, t) {
3307
3310
  return l._balanced = !0, t(d);
3308
3311
  }
3309
3312
  }
3310
- function Zl(e, n, t) {
3313
+ function Kl(e, n, t) {
3311
3314
  return r;
3312
3315
  function r(f) {
3313
3316
  return e.enter("resource"), e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), i;
@@ -3316,7 +3319,7 @@ function Zl(e, n, t) {
3316
3319
  return K(f) ? _e(e, l)(f) : l(f);
3317
3320
  }
3318
3321
  function l(f) {
3319
- return f === 41 ? s(f) : Jt(e, o, a, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(f);
3322
+ return f === 41 ? s(f) : Zt(e, o, a, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(f);
3320
3323
  }
3321
3324
  function o(f) {
3322
3325
  return K(f) ? _e(e, u)(f) : s(f);
@@ -3325,7 +3328,7 @@ function Zl(e, n, t) {
3325
3328
  return t(f);
3326
3329
  }
3327
3330
  function u(f) {
3328
- return f === 34 || f === 39 || f === 40 ? er(e, c, t, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(f) : s(f);
3331
+ return f === 34 || f === 39 || f === 40 ? nr(e, c, t, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(f) : s(f);
3329
3332
  }
3330
3333
  function c(f) {
3331
3334
  return K(f) ? _e(e, s)(f) : s(f);
@@ -3334,11 +3337,11 @@ function Zl(e, n, t) {
3334
3337
  return f === 41 ? (e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), e.exit("resource"), n) : t(f);
3335
3338
  }
3336
3339
  }
3337
- function eo(e, n, t) {
3340
+ function Jl(e, n, t) {
3338
3341
  const r = this;
3339
3342
  return i;
3340
3343
  function i(a) {
3341
- return Zt.call(r, e, l, o, "reference", "referenceMarker", "referenceString")(a);
3344
+ return er.call(r, e, l, o, "reference", "referenceMarker", "referenceString")(a);
3342
3345
  }
3343
3346
  function l(a) {
3344
3347
  return r.parser.defined.includes(Te(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? n(a) : t(a);
@@ -3347,7 +3350,7 @@ function eo(e, n, t) {
3347
3350
  return t(a);
3348
3351
  }
3349
3352
  }
3350
- function no(e, n, t) {
3353
+ function Zl(e, n, t) {
3351
3354
  return r;
3352
3355
  function r(l) {
3353
3356
  return e.enter("reference"), e.enter("referenceMarker"), e.consume(l), e.exit("referenceMarker"), i;
@@ -3356,12 +3359,12 @@ function no(e, n, t) {
3356
3359
  return l === 93 ? (e.enter("referenceMarker"), e.consume(l), e.exit("referenceMarker"), e.exit("reference"), n) : t(l);
3357
3360
  }
3358
3361
  }
3359
- const to = {
3362
+ const eo = {
3360
3363
  name: "labelStartImage",
3361
- resolveAll: On.resolveAll,
3362
- tokenize: ro
3364
+ resolveAll: vn.resolveAll,
3365
+ tokenize: no
3363
3366
  };
3364
- function ro(e, n, t) {
3367
+ function no(e, n, t) {
3365
3368
  const r = this;
3366
3369
  return i;
3367
3370
  function i(a) {
@@ -3374,12 +3377,12 @@ function ro(e, n, t) {
3374
3377
  return a === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? t(a) : n(a);
3375
3378
  }
3376
3379
  }
3377
- const io = {
3380
+ const to = {
3378
3381
  name: "labelStartLink",
3379
- resolveAll: On.resolveAll,
3380
- tokenize: lo
3382
+ resolveAll: vn.resolveAll,
3383
+ tokenize: ro
3381
3384
  };
3382
- function lo(e, n, t) {
3385
+ function ro(e, n, t) {
3383
3386
  const r = this;
3384
3387
  return i;
3385
3388
  function i(o) {
@@ -3389,11 +3392,11 @@ function lo(e, n, t) {
3389
3392
  return o === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? t(o) : n(o);
3390
3393
  }
3391
3394
  }
3392
- const tn = {
3395
+ const rn = {
3393
3396
  name: "lineEnding",
3394
- tokenize: oo
3397
+ tokenize: io
3395
3398
  };
3396
- function oo(e, n) {
3399
+ function io(e, n) {
3397
3400
  return t;
3398
3401
  function t(r) {
3399
3402
  return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), M(e, n, "linePrefix");
@@ -3401,9 +3404,9 @@ function oo(e, n) {
3401
3404
  }
3402
3405
  const qe = {
3403
3406
  name: "thematicBreak",
3404
- tokenize: ao
3407
+ tokenize: lo
3405
3408
  };
3406
- function ao(e, n, t) {
3409
+ function lo(e, n, t) {
3407
3410
  let r = 0, i;
3408
3411
  return l;
3409
3412
  function l(c) {
@@ -3421,25 +3424,25 @@ function ao(e, n, t) {
3421
3424
  }
3422
3425
  const G = {
3423
3426
  continuation: {
3424
- tokenize: po
3427
+ tokenize: so
3425
3428
  },
3426
- exit: ho,
3429
+ exit: po,
3427
3430
  name: "list",
3428
- tokenize: co
3429
- }, uo = {
3430
- partial: !0,
3431
- tokenize: mo
3432
- }, so = {
3431
+ tokenize: uo
3432
+ }, oo = {
3433
3433
  partial: !0,
3434
3434
  tokenize: fo
3435
+ }, ao = {
3436
+ partial: !0,
3437
+ tokenize: co
3435
3438
  };
3436
- function co(e, n, t) {
3439
+ function uo(e, n, t) {
3437
3440
  const r = this, i = r.events[r.events.length - 1];
3438
3441
  let l = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, o = 0;
3439
3442
  return a;
3440
3443
  function a(p) {
3441
3444
  const y = r.containerState.type || (p === 42 || p === 43 || p === 45 ? "listUnordered" : "listOrdered");
3442
- if (y === "listUnordered" ? !r.containerState.marker || p === r.containerState.marker : yn(p)) {
3445
+ if (y === "listUnordered" ? !r.containerState.marker || p === r.containerState.marker : xn(p)) {
3443
3446
  if (r.containerState.type || (r.containerState.type = y, e.enter(y, {
3444
3447
  _container: !0
3445
3448
  })), y === "listUnordered")
@@ -3450,14 +3453,14 @@ function co(e, n, t) {
3450
3453
  return t(p);
3451
3454
  }
3452
3455
  function u(p) {
3453
- return yn(p) && ++o < 10 ? (e.consume(p), u) : (!r.interrupt || o < 2) && (r.containerState.marker ? p === r.containerState.marker : p === 41 || p === 46) ? (e.exit("listItemValue"), c(p)) : t(p);
3456
+ return xn(p) && ++o < 10 ? (e.consume(p), u) : (!r.interrupt || o < 2) && (r.containerState.marker ? p === r.containerState.marker : p === 41 || p === 46) ? (e.exit("listItemValue"), c(p)) : t(p);
3454
3457
  }
3455
3458
  function c(p) {
3456
3459
  return e.enter("listItemMarker"), e.consume(p), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || p, e.check(
3457
3460
  Ge,
3458
3461
  // Can’t be empty when interrupting.
3459
3462
  r.interrupt ? t : s,
3460
- e.attempt(uo, d, f)
3463
+ e.attempt(oo, d, f)
3461
3464
  );
3462
3465
  }
3463
3466
  function s(p) {
@@ -3470,20 +3473,20 @@ function co(e, n, t) {
3470
3473
  return r.containerState.size = l + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, n(p);
3471
3474
  }
3472
3475
  }
3473
- function po(e, n, t) {
3476
+ function so(e, n, t) {
3474
3477
  const r = this;
3475
3478
  return r.containerState._closeFlow = void 0, e.check(Ge, i, l);
3476
3479
  function i(a) {
3477
3480
  return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, M(e, n, "listItemIndent", r.containerState.size + 1)(a);
3478
3481
  }
3479
3482
  function l(a) {
3480
- return r.containerState.furtherBlankLines || !D(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, o(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(so, n, o)(a));
3483
+ return r.containerState.furtherBlankLines || !D(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, o(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(ao, n, o)(a));
3481
3484
  }
3482
3485
  function o(a) {
3483
3486
  return r.containerState._closeFlow = !0, r.interrupt = void 0, M(e, e.attempt(G, n, t), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
3484
3487
  }
3485
3488
  }
3486
- function fo(e, n, t) {
3489
+ function co(e, n, t) {
3487
3490
  const r = this;
3488
3491
  return M(e, i, "listItemIndent", r.containerState.size + 1);
3489
3492
  function i(l) {
@@ -3491,10 +3494,10 @@ function fo(e, n, t) {
3491
3494
  return o && o[1].type === "listItemIndent" && o[2].sliceSerialize(o[1], !0).length === r.containerState.size ? n(l) : t(l);
3492
3495
  }
3493
3496
  }
3494
- function ho(e) {
3497
+ function po(e) {
3495
3498
  e.exit(this.containerState.type);
3496
3499
  }
3497
- function mo(e, n, t) {
3500
+ function fo(e, n, t) {
3498
3501
  const r = this;
3499
3502
  return M(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
3500
3503
  function i(l) {
@@ -3502,12 +3505,12 @@ function mo(e, n, t) {
3502
3505
  return !D(l) && o && o[1].type === "listItemPrefixWhitespace" ? n(l) : t(l);
3503
3506
  }
3504
3507
  }
3505
- const pt = {
3508
+ const ft = {
3506
3509
  name: "setextUnderline",
3507
- resolveTo: go,
3508
- tokenize: yo
3510
+ resolveTo: ho,
3511
+ tokenize: mo
3509
3512
  };
3510
- function go(e, n) {
3513
+ function ho(e, n) {
3511
3514
  let t = e.length, r, i, l;
3512
3515
  for (; t--; )
3513
3516
  if (e[t][0] === "enter") {
@@ -3531,7 +3534,7 @@ function go(e, n) {
3531
3534
  ...e[l][1].end
3532
3535
  }) : e[r][1] = o, e.push(["exit", o, n]), e;
3533
3536
  }
3534
- function yo(e, n, t) {
3537
+ function mo(e, n, t) {
3535
3538
  const r = this;
3536
3539
  let i;
3537
3540
  return l;
@@ -3554,16 +3557,16 @@ function yo(e, n, t) {
3554
3557
  return c === null || P(c) ? (e.exit("setextHeadingLine"), n(c)) : t(c);
3555
3558
  }
3556
3559
  }
3557
- const xo = {
3558
- tokenize: ko
3560
+ const go = {
3561
+ tokenize: yo
3559
3562
  };
3560
- function ko(e) {
3563
+ function yo(e) {
3561
3564
  const n = this, t = e.attempt(
3562
3565
  // Try to parse a blank line.
3563
3566
  Ge,
3564
3567
  r,
3565
3568
  // Try to parse initial flow (essentially, only code).
3566
- e.attempt(this.parser.constructs.flowInitial, i, M(e, e.attempt(this.parser.constructs.flow, i, e.attempt(Cl, i)), "linePrefix"))
3569
+ e.attempt(this.parser.constructs.flowInitial, i, M(e, e.attempt(this.parser.constructs.flow, i, e.attempt(wl, i)), "linePrefix"))
3567
3570
  );
3568
3571
  return t;
3569
3572
  function r(l) {
@@ -3581,12 +3584,12 @@ function ko(e) {
3581
3584
  return e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), n.currentConstruct = void 0, t;
3582
3585
  }
3583
3586
  }
3584
- const bo = {
3585
- resolveAll: tr()
3586
- }, wo = nr("string"), So = nr("text");
3587
- function nr(e) {
3587
+ const xo = {
3588
+ resolveAll: rr()
3589
+ }, ko = tr("string"), bo = tr("text");
3590
+ function tr(e) {
3588
3591
  return {
3589
- resolveAll: tr(e === "text" ? Co : void 0),
3592
+ resolveAll: rr(e === "text" ? wo : void 0),
3590
3593
  tokenize: n
3591
3594
  };
3592
3595
  function n(t) {
@@ -3620,7 +3623,7 @@ function nr(e) {
3620
3623
  }
3621
3624
  }
3622
3625
  }
3623
- function tr(e) {
3626
+ function rr(e) {
3624
3627
  return n;
3625
3628
  function n(t, r) {
3626
3629
  let i = -1, l;
@@ -3629,7 +3632,7 @@ function tr(e) {
3629
3632
  return e ? e(t, r) : t;
3630
3633
  }
3631
3634
  }
3632
- function Co(e, n) {
3635
+ function wo(e, n) {
3633
3636
  let t = 0;
3634
3637
  for (; ++t <= e.length; )
3635
3638
  if ((t === e.length || e[t][1].type === "lineEnding") && e[t - 1][1].type === "data") {
@@ -3671,7 +3674,7 @@ function Co(e, n) {
3671
3674
  }
3672
3675
  return e;
3673
3676
  }
3674
- const Eo = {
3677
+ const So = {
3675
3678
  42: G,
3676
3679
  43: G,
3677
3680
  45: G,
@@ -3685,57 +3688,57 @@ const Eo = {
3685
3688
  55: G,
3686
3689
  56: G,
3687
3690
  57: G,
3688
- 62: Xt
3691
+ 62: Qt
3692
+ }, Eo = {
3693
+ 91: Tl
3694
+ }, Co = {
3695
+ [-2]: tn,
3696
+ [-1]: tn,
3697
+ 32: tn
3689
3698
  }, Io = {
3690
- 91: Al
3691
- }, To = {
3692
- [-2]: nn,
3693
- [-1]: nn,
3694
- 32: nn
3695
- }, Po = {
3696
- 35: Nl,
3699
+ 35: vl,
3697
3700
  42: qe,
3698
- 45: [pt, qe],
3699
- 60: Ml,
3700
- 61: pt,
3701
+ 45: [ft, qe],
3702
+ 60: Fl,
3703
+ 61: ft,
3701
3704
  95: qe,
3702
- 96: st,
3703
- 126: st
3705
+ 96: ct,
3706
+ 126: ct
3707
+ }, To = {
3708
+ 38: Kt,
3709
+ 92: Gt
3710
+ }, Po = {
3711
+ [-5]: rn,
3712
+ [-4]: rn,
3713
+ [-3]: rn,
3714
+ 33: eo,
3715
+ 38: Kt,
3716
+ 42: kn,
3717
+ 60: [tl, Vl],
3718
+ 91: to,
3719
+ 92: [Ll, Gt],
3720
+ 93: vn,
3721
+ 95: kn,
3722
+ 96: dl
3704
3723
  }, Ao = {
3705
- 38: Gt,
3706
- 92: Qt
3724
+ null: [kn, xo]
3707
3725
  }, zo = {
3708
- [-5]: tn,
3709
- [-4]: tn,
3710
- [-3]: tn,
3711
- 33: to,
3712
- 38: Gt,
3713
- 42: xn,
3714
- 60: [il, $l],
3715
- 91: io,
3716
- 92: [vl, Qt],
3717
- 93: On,
3718
- 95: xn,
3719
- 96: yl
3720
- }, Lo = {
3721
- null: [xn, bo]
3722
- }, Oo = {
3723
3726
  null: [42, 95]
3724
- }, vo = {
3727
+ }, Lo = {
3725
3728
  null: []
3726
- }, Do = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3729
+ }, Oo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3727
3730
  __proto__: null,
3728
- attentionMarkers: Oo,
3729
- contentInitial: Io,
3730
- disable: vo,
3731
- document: Eo,
3732
- flow: Po,
3733
- flowInitial: To,
3734
- insideSpan: Lo,
3735
- string: Ao,
3736
- text: zo
3731
+ attentionMarkers: zo,
3732
+ contentInitial: Eo,
3733
+ disable: Lo,
3734
+ document: So,
3735
+ flow: Io,
3736
+ flowInitial: Co,
3737
+ insideSpan: Ao,
3738
+ string: To,
3739
+ text: Po
3737
3740
  }, Symbol.toStringTag, { value: "Module" }));
3738
- function No(e, n, t) {
3741
+ function vo(e, n, t) {
3739
3742
  let r = {
3740
3743
  _bufferIndex: -1,
3741
3744
  _index: 0,
@@ -3749,7 +3752,7 @@ function No(e, n, t) {
3749
3752
  attempt: N(U),
3750
3753
  check: N(x),
3751
3754
  consume: L,
3752
- enter: C,
3755
+ enter: E,
3753
3756
  exit: j,
3754
3757
  interrupt: N(x, {
3755
3758
  interrupt: !0
@@ -3769,25 +3772,25 @@ function No(e, n, t) {
3769
3772
  let s = n.tokenize.call(c, u);
3770
3773
  return n.resolveAll && l.push(n), c;
3771
3774
  function f(I) {
3772
- return o = te(o, I), T(), o[o.length - 1] !== null ? [] : (V(n, 0), c.events = Ln(l, c.events, c), c.events);
3775
+ return o = te(o, I), T(), o[o.length - 1] !== null ? [] : (V(n, 0), c.events = On(l, c.events, c), c.events);
3773
3776
  }
3774
- function d(I, E) {
3775
- return Fo(p(I), E);
3777
+ function d(I, C) {
3778
+ return No(p(I), C);
3776
3779
  }
3777
3780
  function p(I) {
3778
- return _o(o, I);
3781
+ return Do(o, I);
3779
3782
  }
3780
3783
  function y() {
3781
3784
  const {
3782
3785
  _bufferIndex: I,
3783
- _index: E,
3786
+ _index: C,
3784
3787
  line: H,
3785
3788
  column: q,
3786
3789
  offset: v
3787
3790
  } = r;
3788
3791
  return {
3789
3792
  _bufferIndex: I,
3790
- _index: E,
3793
+ _index: C,
3791
3794
  line: H,
3792
3795
  column: q,
3793
3796
  offset: v
@@ -3799,12 +3802,12 @@ function No(e, n, t) {
3799
3802
  function T() {
3800
3803
  let I;
3801
3804
  for (; r._index < o.length; ) {
3802
- const E = o[r._index];
3803
- if (typeof E == "string")
3804
- for (I = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === I && r._bufferIndex < E.length; )
3805
- w(E.charCodeAt(r._bufferIndex));
3805
+ const C = o[r._index];
3806
+ if (typeof C == "string")
3807
+ for (I = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === I && r._bufferIndex < C.length; )
3808
+ w(C.charCodeAt(r._bufferIndex));
3806
3809
  else
3807
- w(E);
3810
+ w(C);
3808
3811
  }
3809
3812
  }
3810
3813
  function w(I) {
@@ -3816,21 +3819,21 @@ function No(e, n, t) {
3816
3819
  /** @type {string} */
3817
3820
  o[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous = I;
3818
3821
  }
3819
- function C(I, E) {
3820
- const H = E || {};
3822
+ function E(I, C) {
3823
+ const H = C || {};
3821
3824
  return H.type = I, H.start = y(), c.events.push(["enter", H, c]), a.push(H), H;
3822
3825
  }
3823
3826
  function j(I) {
3824
- const E = a.pop();
3825
- return E.end = y(), c.events.push(["exit", E, c]), E;
3827
+ const C = a.pop();
3828
+ return C.end = y(), c.events.push(["exit", C, c]), C;
3826
3829
  }
3827
- function U(I, E) {
3828
- V(I, E.from);
3830
+ function U(I, C) {
3831
+ V(I, C.from);
3829
3832
  }
3830
- function x(I, E) {
3831
- E.restore();
3833
+ function x(I, C) {
3834
+ C.restore();
3832
3835
  }
3833
- function N(I, E) {
3836
+ function N(I, C) {
3834
3837
  return H;
3835
3838
  function H(q, v, X) {
3836
3839
  let W, re, ce, h;
@@ -3866,7 +3869,7 @@ function No(e, n, t) {
3866
3869
  // If we do have fields, create an object w/ `context` as its
3867
3870
  // prototype.
3868
3871
  // This allows a “live binding”, which is needed for `interrupt`.
3869
- E ? Object.assign(Object.create(c), E) : c,
3872
+ C ? Object.assign(Object.create(c), C) : c,
3870
3873
  u,
3871
3874
  le,
3872
3875
  ye
@@ -3881,24 +3884,24 @@ function No(e, n, t) {
3881
3884
  }
3882
3885
  }
3883
3886
  }
3884
- function V(I, E) {
3885
- I.resolveAll && !l.includes(I) && l.push(I), I.resolve && se(c.events, E, c.events.length - E, I.resolve(c.events.slice(E), c)), I.resolveTo && (c.events = I.resolveTo(c.events, c));
3887
+ function V(I, C) {
3888
+ I.resolveAll && !l.includes(I) && l.push(I), I.resolve && se(c.events, C, c.events.length - C, I.resolve(c.events.slice(C), c)), I.resolveTo && (c.events = I.resolveTo(c.events, c));
3886
3889
  }
3887
3890
  function _() {
3888
- const I = y(), E = c.previous, H = c.currentConstruct, q = c.events.length, v = Array.from(a);
3891
+ const I = y(), C = c.previous, H = c.currentConstruct, q = c.events.length, v = Array.from(a);
3889
3892
  return {
3890
3893
  from: q,
3891
3894
  restore: X
3892
3895
  };
3893
3896
  function X() {
3894
- r = I, c.previous = E, c.currentConstruct = H, c.events.length = q, a = v, B();
3897
+ r = I, c.previous = C, c.currentConstruct = H, c.events.length = q, a = v, B();
3895
3898
  }
3896
3899
  }
3897
3900
  function B() {
3898
3901
  r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
3899
3902
  }
3900
3903
  }
3901
- function _o(e, n) {
3904
+ function Do(e, n) {
3902
3905
  const t = n.start._index, r = n.start._bufferIndex, i = n.end._index, l = n.end._bufferIndex;
3903
3906
  let o;
3904
3907
  if (t === i)
@@ -3912,7 +3915,7 @@ function _o(e, n) {
3912
3915
  }
3913
3916
  return o;
3914
3917
  }
3915
- function Fo(e, n) {
3918
+ function No(e, n) {
3916
3919
  let t = -1;
3917
3920
  const r = [];
3918
3921
  let i;
@@ -3952,42 +3955,42 @@ function Fo(e, n) {
3952
3955
  }
3953
3956
  return r.join("");
3954
3957
  }
3955
- function Ro(e) {
3958
+ function _o(e) {
3956
3959
  const r = {
3957
3960
  constructs: (
3958
3961
  /** @type {FullNormalizedExtension} */
3959
- Vi([Do, ...(e || {}).extensions || []])
3962
+ Hi([Oo, ...(e || {}).extensions || []])
3960
3963
  ),
3961
- content: i(Ki),
3964
+ content: i(Qi),
3962
3965
  defined: [],
3963
- document: i(Zi),
3964
- flow: i(xo),
3966
+ document: i(Ki),
3967
+ flow: i(go),
3965
3968
  lazy: {},
3966
- string: i(wo),
3967
- text: i(So)
3969
+ string: i(ko),
3970
+ text: i(bo)
3968
3971
  };
3969
3972
  return r;
3970
3973
  function i(l) {
3971
3974
  return o;
3972
3975
  function o(a) {
3973
- return No(r, l, a);
3976
+ return vo(r, l, a);
3974
3977
  }
3975
3978
  }
3976
3979
  }
3977
- function Mo(e) {
3978
- for (; !Kt(e); )
3980
+ function Fo(e) {
3981
+ for (; !Jt(e); )
3979
3982
  ;
3980
3983
  return e;
3981
3984
  }
3982
- const ft = /[\0\t\n\r]/g;
3983
- function Bo() {
3985
+ const ht = /[\0\t\n\r]/g;
3986
+ function Ro() {
3984
3987
  let e = 1, n = "", t = !0, r;
3985
3988
  return i;
3986
3989
  function i(l, o, a) {
3987
3990
  const u = [];
3988
3991
  let c, s, f, d, p;
3989
3992
  for (l = n + (typeof l == "string" ? l.toString() : new TextDecoder(o || void 0).decode(l)), f = 0, n = "", t && (l.charCodeAt(0) === 65279 && f++, t = void 0); f < l.length; ) {
3990
- if (ft.lastIndex = f, c = ft.exec(l), d = c && c.index !== void 0 ? c.index : l.length, p = l.charCodeAt(d), !c) {
3993
+ if (ht.lastIndex = f, c = ht.exec(l), d = c && c.index !== void 0 ? c.index : l.length, p = l.charCodeAt(d), !c) {
3991
3994
  n = l.slice(f);
3992
3995
  break;
3993
3996
  }
@@ -4015,32 +4018,32 @@ function Bo() {
4015
4018
  return a && (r && u.push(-5), n && u.push(n), u.push(null)), u;
4016
4019
  }
4017
4020
  }
4018
- const jo = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
4019
- function Ho(e) {
4020
- return e.replace(jo, Uo);
4021
+ const Mo = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
4022
+ function Bo(e) {
4023
+ return e.replace(Mo, jo);
4021
4024
  }
4022
- function Uo(e, n, t) {
4025
+ function jo(e, n, t) {
4023
4026
  if (n)
4024
4027
  return n;
4025
4028
  if (t.charCodeAt(0) === 35) {
4026
4029
  const i = t.charCodeAt(1), l = i === 120 || i === 88;
4027
- return Yt(t.slice(l ? 2 : 1), l ? 16 : 10);
4030
+ return Xt(t.slice(l ? 2 : 1), l ? 16 : 10);
4028
4031
  }
4029
- return zn(t) || e;
4032
+ return Ln(t) || e;
4030
4033
  }
4031
- const rr = {}.hasOwnProperty;
4032
- function Vo(e, n, t) {
4033
- return typeof n != "string" && (t = n, n = void 0), qo(t)(Mo(Ro(t).document().write(Bo()(e, n, !0))));
4034
+ const ir = {}.hasOwnProperty;
4035
+ function Ho(e, n, t) {
4036
+ return typeof n != "string" && (t = n, n = void 0), Uo(t)(Fo(_o(t).document().write(Ro()(e, n, !0))));
4034
4037
  }
4035
- function qo(e) {
4038
+ function Uo(e) {
4036
4039
  const n = {
4037
4040
  transforms: [],
4038
4041
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
4039
4042
  enter: {
4040
- autolink: l(jn),
4043
+ autolink: l(Hn),
4041
4044
  autolinkProtocol: _,
4042
4045
  autolinkEmail: _,
4043
- atxHeading: l(Rn),
4046
+ atxHeading: l(Mn),
4044
4047
  blockQuote: l(Se),
4045
4048
  characterEscape: _,
4046
4049
  characterReference: _,
@@ -4048,35 +4051,35 @@ function qo(e) {
4048
4051
  codeFencedFenceInfo: o,
4049
4052
  codeFencedFenceMeta: o,
4050
4053
  codeIndented: l(je, o),
4051
- codeText: l(dr, o),
4054
+ codeText: l(gr, o),
4052
4055
  codeTextData: _,
4053
4056
  data: _,
4054
4057
  codeFlowValue: _,
4055
- definition: l(gr),
4058
+ definition: l(yr),
4056
4059
  definitionDestinationString: o,
4057
4060
  definitionLabelString: o,
4058
4061
  definitionTitleString: o,
4059
- emphasis: l(yr),
4060
- hardBreakEscape: l(Mn),
4061
- hardBreakTrailing: l(Mn),
4062
- htmlFlow: l(Bn, o),
4062
+ emphasis: l(xr),
4063
+ hardBreakEscape: l(Bn),
4064
+ hardBreakTrailing: l(Bn),
4065
+ htmlFlow: l(jn, o),
4063
4066
  htmlFlowData: _,
4064
- htmlText: l(Bn, o),
4067
+ htmlText: l(jn, o),
4065
4068
  htmlTextData: _,
4066
- image: l(xr),
4069
+ image: l(kr),
4067
4070
  label: o,
4068
- link: l(jn),
4069
- listItem: l(kr),
4071
+ link: l(Hn),
4072
+ listItem: l(br),
4070
4073
  listItemValue: d,
4071
- listOrdered: l(Hn, f),
4072
- listUnordered: l(Hn),
4073
- paragraph: l(br),
4074
+ listOrdered: l(Un, f),
4075
+ listUnordered: l(Un),
4076
+ paragraph: l(wr),
4074
4077
  reference: m,
4075
4078
  referenceString: o,
4076
4079
  resourceDestinationString: o,
4077
4080
  resourceTitleString: o,
4078
- setextHeading: l(Rn),
4079
- strong: l(wr),
4081
+ setextHeading: l(Mn),
4082
+ strong: l(Sr),
4080
4083
  thematicBreak: l(Cr)
4081
4084
  },
4082
4085
  exit: {
@@ -4103,10 +4106,10 @@ function qo(e) {
4103
4106
  definition: u(),
4104
4107
  definitionDestinationString: j,
4105
4108
  definitionLabelString: L,
4106
- definitionTitleString: C,
4109
+ definitionTitleString: E,
4107
4110
  emphasis: u(),
4108
- hardBreakEscape: u(E),
4109
- hardBreakTrailing: u(E),
4111
+ hardBreakEscape: u(C),
4112
+ hardBreakTrailing: u(C),
4110
4113
  htmlFlow: u(H),
4111
4114
  htmlFlowData: B,
4112
4115
  htmlText: u(q),
@@ -4131,7 +4134,7 @@ function qo(e) {
4131
4134
  thematicBreak: u()
4132
4135
  }
4133
4136
  };
4134
- ir(n, (e || {}).mdastExtensions || []);
4137
+ lr(n, (e || {}).mdastExtensions || []);
4135
4138
  const t = {};
4136
4139
  return r;
4137
4140
  function r(g) {
@@ -4160,13 +4163,13 @@ function qo(e) {
4160
4163
  }
4161
4164
  for (F = -1; ++F < g.length; ) {
4162
4165
  const oe = n[g[F][0]];
4163
- rr.call(oe, g[F][1].type) && oe[g[F][1].type].call(Object.assign({
4166
+ ir.call(oe, g[F][1].type) && oe[g[F][1].type].call(Object.assign({
4164
4167
  sliceSerialize: g[F][2].sliceSerialize
4165
4168
  }, A), g[F][1]);
4166
4169
  }
4167
4170
  if (A.tokenStack.length > 0) {
4168
4171
  const oe = A.tokenStack[A.tokenStack.length - 1];
4169
- (oe[1] || ht).call(A, void 0, oe[0]);
4172
+ (oe[1] || mt).call(A, void 0, oe[0]);
4170
4173
  }
4171
4174
  for (S.position = {
4172
4175
  start: de(g.length > 0 ? g[0][1].start : {
@@ -4209,25 +4212,25 @@ function qo(e) {
4209
4212
  }
4210
4213
  if (!F && Z[0] === "enter" && Z[1].type === "listItemPrefix" || F === -1 && Z[0] === "exit" && (Z[1].type === "listUnordered" || Z[1].type === "listOrdered")) {
4211
4214
  if (xe) {
4212
- let Ce = O;
4213
- for (fe = void 0; Ce--; ) {
4214
- const he = g[Ce];
4215
+ let Ee = O;
4216
+ for (fe = void 0; Ee--; ) {
4217
+ const he = g[Ee];
4215
4218
  if (he[1].type === "lineEnding" || he[1].type === "lineEndingBlank") {
4216
4219
  if (he[0] === "exit") continue;
4217
- fe && (g[fe][1].type = "lineEndingBlank", oe = !0), he[1].type = "lineEnding", fe = Ce;
4220
+ fe && (g[fe][1].type = "lineEndingBlank", oe = !0), he[1].type = "lineEnding", fe = Ee;
4218
4221
  } else if (!(he[1].type === "linePrefix" || he[1].type === "blockQuotePrefix" || he[1].type === "blockQuotePrefixWhitespace" || he[1].type === "blockQuoteMarker" || he[1].type === "listItemIndent")) break;
4219
4222
  }
4220
4223
  Le && (!fe || Le < fe) && (xe._spread = !0), xe.end = Object.assign({}, fe ? g[fe][1].start : Z[1].end), g.splice(fe || O, 0, ["exit", xe, Z[2]]), O++, A++;
4221
4224
  }
4222
4225
  if (Z[1].type === "listItemPrefix") {
4223
- const Ce = {
4226
+ const Ee = {
4224
4227
  type: "listItem",
4225
4228
  _spread: !1,
4226
4229
  start: Object.assign({}, Z[1].start),
4227
4230
  // @ts-expect-error: we’ll add `end` in a second.
4228
4231
  end: void 0
4229
4232
  };
4230
- xe = Ce, g.splice(O, 0, ["enter", Ce, Z[2]]), O++, A++, Le = void 0, Oe = !0;
4233
+ xe = Ee, g.splice(O, 0, ["enter", Ee, Z[2]]), O++, A++, Le = void 0, Oe = !0;
4231
4234
  }
4232
4235
  }
4233
4236
  }
@@ -4261,7 +4264,7 @@ function qo(e) {
4261
4264
  function c(g, S) {
4262
4265
  const A = this.stack.pop(), O = this.tokenStack.pop();
4263
4266
  if (O)
4264
- O[0].type !== g.type && (S ? S.call(this, g, O[0]) : (O[1] || ht).call(this, g, O[0]));
4267
+ O[0].type !== g.type && (S ? S.call(this, g, O[0]) : (O[1] || mt).call(this, g, O[0]));
4265
4268
  else throw new Error("Cannot close `" + g.type + "` (" + Ne({
4266
4269
  start: g.start,
4267
4270
  end: g.end
@@ -4269,7 +4272,7 @@ function qo(e) {
4269
4272
  A.position.end = de(g.end);
4270
4273
  }
4271
4274
  function s() {
4272
- return Hi(this.stack.pop());
4275
+ return Bi(this.stack.pop());
4273
4276
  }
4274
4277
  function f() {
4275
4278
  this.data.expectingFirstListItemValue = !0;
@@ -4303,7 +4306,7 @@ function qo(e) {
4303
4306
  const S = this.resume(), A = this.stack[this.stack.length - 1];
4304
4307
  A.label = S, A.identifier = Te(this.sliceSerialize(g)).toLowerCase();
4305
4308
  }
4306
- function C() {
4309
+ function E() {
4307
4310
  const g = this.resume(), S = this.stack[this.stack.length - 1];
4308
4311
  S.title = g;
4309
4312
  }
@@ -4331,7 +4334,7 @@ function qo(e) {
4331
4334
  function _(g) {
4332
4335
  const A = this.stack[this.stack.length - 1].children;
4333
4336
  let O = A[A.length - 1];
4334
- (!O || O.type !== "text") && (O = Sr(), O.position = {
4337
+ (!O || O.type !== "text") && (O = Er(), O.position = {
4335
4338
  start: de(g.start),
4336
4339
  // @ts-expect-error: we’ll add `end` later.
4337
4340
  end: void 0
@@ -4350,7 +4353,7 @@ function qo(e) {
4350
4353
  }
4351
4354
  !this.data.setextHeadingSlurpLineEnding && n.canContainEols.includes(S.type) && (_.call(this, g), B.call(this, g));
4352
4355
  }
4353
- function E() {
4356
+ function C() {
4354
4357
  this.data.atHardBreak = !0;
4355
4358
  }
4356
4359
  function H() {
@@ -4385,7 +4388,7 @@ function qo(e) {
4385
4388
  }
4386
4389
  function re(g) {
4387
4390
  const S = this.sliceSerialize(g), A = this.stack[this.stack.length - 2];
4388
- A.label = Ho(S), A.identifier = Te(S).toLowerCase();
4391
+ A.label = Bo(S), A.identifier = Te(S).toLowerCase();
4389
4392
  }
4390
4393
  function ce() {
4391
4394
  const g = this.stack[this.stack.length - 1], S = this.resume(), A = this.stack[this.stack.length - 1];
@@ -4419,7 +4422,7 @@ function qo(e) {
4419
4422
  function Y(g) {
4420
4423
  const S = this.sliceSerialize(g), A = this.data.characterReferenceType;
4421
4424
  let O;
4422
- A ? (O = Yt(S, A === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : O = zn(S);
4425
+ A ? (O = Xt(S, A === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : O = Ln(S);
4423
4426
  const F = this.stack[this.stack.length - 1];
4424
4427
  F.value += O;
4425
4428
  }
@@ -4451,13 +4454,13 @@ function qo(e) {
4451
4454
  value: ""
4452
4455
  };
4453
4456
  }
4454
- function dr() {
4457
+ function gr() {
4455
4458
  return {
4456
4459
  type: "inlineCode",
4457
4460
  value: ""
4458
4461
  };
4459
4462
  }
4460
- function gr() {
4463
+ function yr() {
4461
4464
  return {
4462
4465
  type: "definition",
4463
4466
  identifier: "",
@@ -4466,13 +4469,13 @@ function qo(e) {
4466
4469
  url: ""
4467
4470
  };
4468
4471
  }
4469
- function yr() {
4472
+ function xr() {
4470
4473
  return {
4471
4474
  type: "emphasis",
4472
4475
  children: []
4473
4476
  };
4474
4477
  }
4475
- function Rn() {
4478
+ function Mn() {
4476
4479
  return {
4477
4480
  type: "heading",
4478
4481
  // @ts-expect-error `depth` will be set later.
@@ -4480,18 +4483,18 @@ function qo(e) {
4480
4483
  children: []
4481
4484
  };
4482
4485
  }
4483
- function Mn() {
4486
+ function Bn() {
4484
4487
  return {
4485
4488
  type: "break"
4486
4489
  };
4487
4490
  }
4488
- function Bn() {
4491
+ function jn() {
4489
4492
  return {
4490
4493
  type: "html",
4491
4494
  value: ""
4492
4495
  };
4493
4496
  }
4494
- function xr() {
4497
+ function kr() {
4495
4498
  return {
4496
4499
  type: "image",
4497
4500
  title: null,
@@ -4499,7 +4502,7 @@ function qo(e) {
4499
4502
  alt: null
4500
4503
  };
4501
4504
  }
4502
- function jn() {
4505
+ function Hn() {
4503
4506
  return {
4504
4507
  type: "link",
4505
4508
  title: null,
@@ -4507,7 +4510,7 @@ function qo(e) {
4507
4510
  children: []
4508
4511
  };
4509
4512
  }
4510
- function Hn(g) {
4513
+ function Un(g) {
4511
4514
  return {
4512
4515
  type: "list",
4513
4516
  ordered: g.type === "listOrdered",
@@ -4516,7 +4519,7 @@ function qo(e) {
4516
4519
  children: []
4517
4520
  };
4518
4521
  }
4519
- function kr(g) {
4522
+ function br(g) {
4520
4523
  return {
4521
4524
  type: "listItem",
4522
4525
  spread: g._spread,
@@ -4524,19 +4527,19 @@ function qo(e) {
4524
4527
  children: []
4525
4528
  };
4526
4529
  }
4527
- function br() {
4530
+ function wr() {
4528
4531
  return {
4529
4532
  type: "paragraph",
4530
4533
  children: []
4531
4534
  };
4532
4535
  }
4533
- function wr() {
4536
+ function Sr() {
4534
4537
  return {
4535
4538
  type: "strong",
4536
4539
  children: []
4537
4540
  };
4538
4541
  }
4539
- function Sr() {
4542
+ function Er() {
4540
4543
  return {
4541
4544
  type: "text",
4542
4545
  value: ""
@@ -4555,17 +4558,17 @@ function de(e) {
4555
4558
  offset: e.offset
4556
4559
  };
4557
4560
  }
4558
- function ir(e, n) {
4561
+ function lr(e, n) {
4559
4562
  let t = -1;
4560
4563
  for (; ++t < n.length; ) {
4561
4564
  const r = n[t];
4562
- Array.isArray(r) ? ir(e, r) : $o(e, r);
4565
+ Array.isArray(r) ? lr(e, r) : Vo(e, r);
4563
4566
  }
4564
4567
  }
4565
- function $o(e, n) {
4568
+ function Vo(e, n) {
4566
4569
  let t;
4567
4570
  for (t in n)
4568
- if (rr.call(n, t))
4571
+ if (ir.call(n, t))
4569
4572
  switch (t) {
4570
4573
  case "canContainEols": {
4571
4574
  const r = n[t];
@@ -4585,7 +4588,7 @@ function $o(e, n) {
4585
4588
  }
4586
4589
  }
4587
4590
  }
4588
- function ht(e, n) {
4591
+ function mt(e, n) {
4589
4592
  throw e ? new Error("Cannot close `" + e.type + "` (" + Ne({
4590
4593
  start: e.start,
4591
4594
  end: e.end
@@ -4597,11 +4600,11 @@ function ht(e, n) {
4597
4600
  end: n.end
4598
4601
  }) + ") is still open");
4599
4602
  }
4600
- function Wo(e) {
4603
+ function qo(e) {
4601
4604
  const n = this;
4602
4605
  n.parser = t;
4603
4606
  function t(r) {
4604
- return Vo(r, {
4607
+ return Ho(r, {
4605
4608
  ...n.data("settings"),
4606
4609
  ...e,
4607
4610
  // Note: these options are not in the readme.
@@ -4612,7 +4615,7 @@ function Wo(e) {
4612
4615
  });
4613
4616
  }
4614
4617
  }
4615
- function Yo(e, n) {
4618
+ function $o(e, n) {
4616
4619
  const t = {
4617
4620
  type: "element",
4618
4621
  tagName: "blockquote",
@@ -4621,12 +4624,12 @@ function Yo(e, n) {
4621
4624
  };
4622
4625
  return e.patch(n, t), e.applyData(n, t);
4623
4626
  }
4624
- function Xo(e, n) {
4627
+ function Wo(e, n) {
4625
4628
  const t = { type: "element", tagName: "br", properties: {}, children: [] };
4626
4629
  return e.patch(n, t), [e.applyData(n, t), { type: "text", value: `
4627
4630
  ` }];
4628
4631
  }
4629
- function Qo(e, n) {
4632
+ function Yo(e, n) {
4630
4633
  const t = n.value ? n.value + `
4631
4634
  ` : "", r = {};
4632
4635
  n.lang && (r.className = ["language-" + n.lang]);
@@ -4638,7 +4641,7 @@ function Qo(e, n) {
4638
4641
  };
4639
4642
  return n.meta && (i.data = { meta: n.meta }), e.patch(n, i), i = e.applyData(n, i), i = { type: "element", tagName: "pre", properties: {}, children: [i] }, e.patch(n, i), i;
4640
4643
  }
4641
- function Go(e, n) {
4644
+ function Xo(e, n) {
4642
4645
  const t = {
4643
4646
  type: "element",
4644
4647
  tagName: "del",
@@ -4647,7 +4650,7 @@ function Go(e, n) {
4647
4650
  };
4648
4651
  return e.patch(n, t), e.applyData(n, t);
4649
4652
  }
4650
- function Ko(e, n) {
4653
+ function Qo(e, n) {
4651
4654
  const t = {
4652
4655
  type: "element",
4653
4656
  tagName: "em",
@@ -4656,7 +4659,7 @@ function Ko(e, n) {
4656
4659
  };
4657
4660
  return e.patch(n, t), e.applyData(n, t);
4658
4661
  }
4659
- function Jo(e, n) {
4662
+ function Go(e, n) {
4660
4663
  const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(n.identifier).toUpperCase(), i = Ae(r.toLowerCase()), l = e.footnoteOrder.indexOf(r);
4661
4664
  let o, a = e.footnoteCounts.get(r);
4662
4665
  a === void 0 ? (a = 0, e.footnoteOrder.push(r), o = e.footnoteOrder.length) : o = l + 1, a += 1, e.footnoteCounts.set(r, a);
@@ -4680,7 +4683,7 @@ function Jo(e, n) {
4680
4683
  };
4681
4684
  return e.patch(n, c), e.applyData(n, c);
4682
4685
  }
4683
- function Zo(e, n) {
4686
+ function Ko(e, n) {
4684
4687
  const t = {
4685
4688
  type: "element",
4686
4689
  tagName: "h" + n.depth,
@@ -4689,13 +4692,13 @@ function Zo(e, n) {
4689
4692
  };
4690
4693
  return e.patch(n, t), e.applyData(n, t);
4691
4694
  }
4692
- function ea(e, n) {
4695
+ function Jo(e, n) {
4693
4696
  if (e.options.allowDangerousHtml) {
4694
4697
  const t = { type: "raw", value: n.value };
4695
4698
  return e.patch(n, t), e.applyData(n, t);
4696
4699
  }
4697
4700
  }
4698
- function lr(e, n) {
4701
+ function or(e, n) {
4699
4702
  const t = n.referenceType;
4700
4703
  let r = "]";
4701
4704
  if (t === "collapsed" ? r += "[]" : t === "full" && (r += "[" + (n.label || n.identifier) + "]"), n.type === "imageReference")
@@ -4705,22 +4708,22 @@ function lr(e, n) {
4705
4708
  const o = i[i.length - 1];
4706
4709
  return o && o.type === "text" ? o.value += r : i.push({ type: "text", value: r }), i;
4707
4710
  }
4708
- function na(e, n) {
4711
+ function Zo(e, n) {
4709
4712
  const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
4710
4713
  if (!r)
4711
- return lr(e, n);
4714
+ return or(e, n);
4712
4715
  const i = { src: Ae(r.url || ""), alt: n.alt };
4713
4716
  r.title !== null && r.title !== void 0 && (i.title = r.title);
4714
4717
  const l = { type: "element", tagName: "img", properties: i, children: [] };
4715
4718
  return e.patch(n, l), e.applyData(n, l);
4716
4719
  }
4717
- function ta(e, n) {
4720
+ function ea(e, n) {
4718
4721
  const t = { src: Ae(n.url) };
4719
4722
  n.alt !== null && n.alt !== void 0 && (t.alt = n.alt), n.title !== null && n.title !== void 0 && (t.title = n.title);
4720
4723
  const r = { type: "element", tagName: "img", properties: t, children: [] };
4721
4724
  return e.patch(n, r), e.applyData(n, r);
4722
4725
  }
4723
- function ra(e, n) {
4726
+ function na(e, n) {
4724
4727
  const t = { type: "text", value: n.value.replace(/\r?\n|\r/g, " ") };
4725
4728
  e.patch(n, t);
4726
4729
  const r = {
@@ -4731,10 +4734,10 @@ function ra(e, n) {
4731
4734
  };
4732
4735
  return e.patch(n, r), e.applyData(n, r);
4733
4736
  }
4734
- function ia(e, n) {
4737
+ function ta(e, n) {
4735
4738
  const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
4736
4739
  if (!r)
4737
- return lr(e, n);
4740
+ return or(e, n);
4738
4741
  const i = { href: Ae(r.url || "") };
4739
4742
  r.title !== null && r.title !== void 0 && (i.title = r.title);
4740
4743
  const l = {
@@ -4745,7 +4748,7 @@ function ia(e, n) {
4745
4748
  };
4746
4749
  return e.patch(n, l), e.applyData(n, l);
4747
4750
  }
4748
- function la(e, n) {
4751
+ function ra(e, n) {
4749
4752
  const t = { href: Ae(n.url) };
4750
4753
  n.title !== null && n.title !== void 0 && (t.title = n.title);
4751
4754
  const r = {
@@ -4756,8 +4759,8 @@ function la(e, n) {
4756
4759
  };
4757
4760
  return e.patch(n, r), e.applyData(n, r);
4758
4761
  }
4759
- function oa(e, n, t) {
4760
- const r = e.all(n), i = t ? aa(t) : or(n), l = {}, o = [];
4762
+ function ia(e, n, t) {
4763
+ const r = e.all(n), i = t ? la(t) : ar(n), l = {}, o = [];
4761
4764
  if (typeof n.checked == "boolean") {
4762
4765
  const s = r[0];
4763
4766
  let f;
@@ -4780,22 +4783,22 @@ function oa(e, n, t) {
4780
4783
  const c = { type: "element", tagName: "li", properties: l, children: o };
4781
4784
  return e.patch(n, c), e.applyData(n, c);
4782
4785
  }
4783
- function aa(e) {
4786
+ function la(e) {
4784
4787
  let n = !1;
4785
4788
  if (e.type === "list") {
4786
4789
  n = e.spread || !1;
4787
4790
  const t = e.children;
4788
4791
  let r = -1;
4789
4792
  for (; !n && ++r < t.length; )
4790
- n = or(t[r]);
4793
+ n = ar(t[r]);
4791
4794
  }
4792
4795
  return n;
4793
4796
  }
4794
- function or(e) {
4797
+ function ar(e) {
4795
4798
  const n = e.spread;
4796
4799
  return n ?? e.children.length > 1;
4797
4800
  }
4798
- function ua(e, n) {
4801
+ function oa(e, n) {
4799
4802
  const t = {}, r = e.all(n);
4800
4803
  let i = -1;
4801
4804
  for (typeof n.start == "number" && n.start !== 1 && (t.start = n.start); ++i < r.length; ) {
@@ -4813,7 +4816,7 @@ function ua(e, n) {
4813
4816
  };
4814
4817
  return e.patch(n, l), e.applyData(n, l);
4815
4818
  }
4816
- function sa(e, n) {
4819
+ function aa(e, n) {
4817
4820
  const t = {
4818
4821
  type: "element",
4819
4822
  tagName: "p",
@@ -4822,11 +4825,11 @@ function sa(e, n) {
4822
4825
  };
4823
4826
  return e.patch(n, t), e.applyData(n, t);
4824
4827
  }
4825
- function ca(e, n) {
4828
+ function ua(e, n) {
4826
4829
  const t = { type: "root", children: e.wrap(e.all(n)) };
4827
4830
  return e.patch(n, t), e.applyData(n, t);
4828
4831
  }
4829
- function pa(e, n) {
4832
+ function sa(e, n) {
4830
4833
  const t = {
4831
4834
  type: "element",
4832
4835
  tagName: "strong",
@@ -4835,7 +4838,7 @@ function pa(e, n) {
4835
4838
  };
4836
4839
  return e.patch(n, t), e.applyData(n, t);
4837
4840
  }
4838
- function fa(e, n) {
4841
+ function ca(e, n) {
4839
4842
  const t = e.all(n), r = t.shift(), i = [];
4840
4843
  if (r) {
4841
4844
  const o = {
@@ -4852,7 +4855,7 @@ function fa(e, n) {
4852
4855
  tagName: "tbody",
4853
4856
  properties: {},
4854
4857
  children: e.wrap(t, !0)
4855
- }, a = In(n.children[1]), u = jt(n.children[n.children.length - 1]);
4858
+ }, a = Tn(n.children[1]), u = Ht(n.children[n.children.length - 1]);
4856
4859
  a && u && (o.position = { start: a, end: u }), i.push(o);
4857
4860
  }
4858
4861
  const l = {
@@ -4863,7 +4866,7 @@ function fa(e, n) {
4863
4866
  };
4864
4867
  return e.patch(n, l), e.applyData(n, l);
4865
4868
  }
4866
- function ha(e, n, t) {
4869
+ function pa(e, n, t) {
4867
4870
  const r = t ? t.children : void 0, l = (r ? r.indexOf(n) : 1) === 0 ? "th" : "td", o = t && t.type === "table" ? t.align : void 0, a = o ? o.length : n.children.length;
4868
4871
  let u = -1;
4869
4872
  const c = [];
@@ -4881,7 +4884,7 @@ function ha(e, n, t) {
4881
4884
  };
4882
4885
  return e.patch(n, s), e.applyData(n, s);
4883
4886
  }
4884
- function ma(e, n) {
4887
+ function fa(e, n) {
4885
4888
  const t = {
4886
4889
  type: "element",
4887
4890
  tagName: "td",
@@ -4891,11 +4894,11 @@ function ma(e, n) {
4891
4894
  };
4892
4895
  return e.patch(n, t), e.applyData(n, t);
4893
4896
  }
4894
- function da(e, n) {
4895
- const t = { type: "text", value: Pr(String(n.value)) };
4897
+ function ha(e, n) {
4898
+ const t = { type: "text", value: Ir(String(n.value)) };
4896
4899
  return e.patch(n, t), e.applyData(n, t);
4897
4900
  }
4898
- function ga(e, n) {
4901
+ function ma(e, n) {
4899
4902
  const t = {
4900
4903
  type: "element",
4901
4904
  tagName: "hr",
@@ -4904,31 +4907,31 @@ function ga(e, n) {
4904
4907
  };
4905
4908
  return e.patch(n, t), e.applyData(n, t);
4906
4909
  }
4907
- const ya = {
4908
- blockquote: Yo,
4909
- break: Xo,
4910
- code: Qo,
4911
- delete: Go,
4912
- emphasis: Ko,
4913
- footnoteReference: Jo,
4914
- heading: Zo,
4915
- html: ea,
4916
- imageReference: na,
4917
- image: ta,
4918
- inlineCode: ra,
4919
- linkReference: ia,
4920
- link: la,
4921
- listItem: oa,
4922
- list: ua,
4923
- paragraph: sa,
4910
+ const da = {
4911
+ blockquote: $o,
4912
+ break: Wo,
4913
+ code: Yo,
4914
+ delete: Xo,
4915
+ emphasis: Qo,
4916
+ footnoteReference: Go,
4917
+ heading: Ko,
4918
+ html: Jo,
4919
+ imageReference: Zo,
4920
+ image: ea,
4921
+ inlineCode: na,
4922
+ linkReference: ta,
4923
+ link: ra,
4924
+ listItem: ia,
4925
+ list: oa,
4926
+ paragraph: aa,
4924
4927
  // @ts-expect-error: root is different, but hard to type.
4925
- root: ca,
4926
- strong: pa,
4927
- table: fa,
4928
- tableCell: ma,
4929
- tableRow: ha,
4930
- text: da,
4931
- thematicBreak: ga,
4928
+ root: ua,
4929
+ strong: sa,
4930
+ table: ca,
4931
+ tableCell: fa,
4932
+ tableRow: pa,
4933
+ text: ha,
4934
+ thematicBreak: ma,
4932
4935
  toml: He,
4933
4936
  yaml: He,
4934
4937
  definition: He,
@@ -4936,14 +4939,14 @@ const ya = {
4936
4939
  };
4937
4940
  function He() {
4938
4941
  }
4939
- const ar = -1, Ke = 0, Fe = 1, Ye = 2, vn = 3, Dn = 4, Nn = 5, _n = 6, ur = 7, sr = 8, mt = typeof self == "object" ? self : globalThis, xa = (e, n) => {
4942
+ const ur = -1, Ke = 0, Fe = 1, Ye = 2, Dn = 3, Nn = 4, _n = 5, Fn = 6, sr = 7, cr = 8, dt = typeof self == "object" ? self : globalThis, ga = (e, n) => {
4940
4943
  const t = (i, l) => (e.set(l, i), i), r = (i) => {
4941
4944
  if (e.has(i))
4942
4945
  return e.get(i);
4943
4946
  const [l, o] = n[i];
4944
4947
  switch (l) {
4945
4948
  case Ke:
4946
- case ar:
4949
+ case ur:
4947
4950
  return t(o, i);
4948
4951
  case Fe: {
4949
4952
  const a = t([], i);
@@ -4957,29 +4960,29 @@ const ar = -1, Ke = 0, Fe = 1, Ye = 2, vn = 3, Dn = 4, Nn = 5, _n = 6, ur = 7, s
4957
4960
  a[r(u)] = r(c);
4958
4961
  return a;
4959
4962
  }
4960
- case vn:
4963
+ case Dn:
4961
4964
  return t(new Date(o), i);
4962
- case Dn: {
4965
+ case Nn: {
4963
4966
  const { source: a, flags: u } = o;
4964
4967
  return t(new RegExp(a, u), i);
4965
4968
  }
4966
- case Nn: {
4969
+ case _n: {
4967
4970
  const a = t(/* @__PURE__ */ new Map(), i);
4968
4971
  for (const [u, c] of o)
4969
4972
  a.set(r(u), r(c));
4970
4973
  return a;
4971
4974
  }
4972
- case _n: {
4975
+ case Fn: {
4973
4976
  const a = t(/* @__PURE__ */ new Set(), i);
4974
4977
  for (const u of o)
4975
4978
  a.add(r(u));
4976
4979
  return a;
4977
4980
  }
4978
- case ur: {
4981
+ case sr: {
4979
4982
  const { name: a, message: u } = o;
4980
- return t(new mt[a](u), i);
4983
+ return t(new dt[a](u), i);
4981
4984
  }
4982
- case sr:
4985
+ case cr:
4983
4986
  return t(BigInt(o), i);
4984
4987
  case "BigInt":
4985
4988
  return t(Object(BigInt(o)), i);
@@ -4990,32 +4993,32 @@ const ar = -1, Ke = 0, Fe = 1, Ye = 2, vn = 3, Dn = 4, Nn = 5, _n = 6, ur = 7, s
4990
4993
  return t(new DataView(a), o);
4991
4994
  }
4992
4995
  }
4993
- return t(new mt[l](o), i);
4996
+ return t(new dt[l](o), i);
4994
4997
  };
4995
4998
  return r;
4996
- }, dt = (e) => xa(/* @__PURE__ */ new Map(), e)(0), Ee = "", { toString: ka } = {}, { keys: ba } = Object, De = (e) => {
4999
+ }, gt = (e) => ga(/* @__PURE__ */ new Map(), e)(0), Ce = "", { toString: ya } = {}, { keys: xa } = Object, De = (e) => {
4997
5000
  const n = typeof e;
4998
5001
  if (n !== "object" || !e)
4999
5002
  return [Ke, n];
5000
- const t = ka.call(e).slice(8, -1);
5003
+ const t = ya.call(e).slice(8, -1);
5001
5004
  switch (t) {
5002
5005
  case "Array":
5003
- return [Fe, Ee];
5006
+ return [Fe, Ce];
5004
5007
  case "Object":
5005
- return [Ye, Ee];
5008
+ return [Ye, Ce];
5006
5009
  case "Date":
5007
- return [vn, Ee];
5010
+ return [Dn, Ce];
5008
5011
  case "RegExp":
5009
- return [Dn, Ee];
5012
+ return [Nn, Ce];
5010
5013
  case "Map":
5011
- return [Nn, Ee];
5014
+ return [_n, Ce];
5012
5015
  case "Set":
5013
- return [_n, Ee];
5016
+ return [Fn, Ce];
5014
5017
  case "DataView":
5015
5018
  return [Fe, t];
5016
5019
  }
5017
- return t.includes("Array") ? [Fe, t] : t.includes("Error") ? [ur, t] : [Ye, t];
5018
- }, Ue = ([e, n]) => e === Ke && (n === "function" || n === "symbol"), wa = (e, n, t, r) => {
5020
+ return t.includes("Array") ? [Fe, t] : t.includes("Error") ? [sr, t] : [Ye, t];
5021
+ }, Ue = ([e, n]) => e === Ke && (n === "function" || n === "symbol"), ka = (e, n, t, r) => {
5019
5022
  const i = (o, a) => {
5020
5023
  const u = r.push(o) - 1;
5021
5024
  return t.set(a, u), u;
@@ -5028,7 +5031,7 @@ const ar = -1, Ke = 0, Fe = 1, Ye = 2, vn = 3, Dn = 4, Nn = 5, _n = 6, ur = 7, s
5028
5031
  let s = o;
5029
5032
  switch (u) {
5030
5033
  case "bigint":
5031
- a = sr, s = o.toString();
5034
+ a = cr, s = o.toString();
5032
5035
  break;
5033
5036
  case "function":
5034
5037
  case "symbol":
@@ -5037,7 +5040,7 @@ const ar = -1, Ke = 0, Fe = 1, Ye = 2, vn = 3, Dn = 4, Nn = 5, _n = 6, ur = 7, s
5037
5040
  s = null;
5038
5041
  break;
5039
5042
  case "undefined":
5040
- return i([ar], o);
5043
+ return i([ur], o);
5041
5044
  }
5042
5045
  return i([a, s], o);
5043
5046
  }
@@ -5064,23 +5067,23 @@ const ar = -1, Ke = 0, Fe = 1, Ye = 2, vn = 3, Dn = 4, Nn = 5, _n = 6, ur = 7, s
5064
5067
  if (n && "toJSON" in o)
5065
5068
  return l(o.toJSON());
5066
5069
  const s = [], f = i([a, s], o);
5067
- for (const d of ba(o))
5070
+ for (const d of xa(o))
5068
5071
  (e || !Ue(De(o[d]))) && s.push([l(d), l(o[d])]);
5069
5072
  return f;
5070
5073
  }
5071
- case vn:
5074
+ case Dn:
5072
5075
  return i([a, o.toISOString()], o);
5073
- case Dn: {
5076
+ case Nn: {
5074
5077
  const { source: s, flags: f } = o;
5075
5078
  return i([a, { source: s, flags: f }], o);
5076
5079
  }
5077
- case Nn: {
5080
+ case _n: {
5078
5081
  const s = [], f = i([a, s], o);
5079
5082
  for (const [d, p] of o)
5080
5083
  (e || !(Ue(De(d)) || Ue(De(p)))) && s.push([l(d), l(p)]);
5081
5084
  return f;
5082
5085
  }
5083
- case _n: {
5086
+ case Fn: {
5084
5087
  const s = [], f = i([a, s], o);
5085
5088
  for (const d of o)
5086
5089
  (e || !Ue(De(d))) && s.push(l(d));
@@ -5091,14 +5094,14 @@ const ar = -1, Ke = 0, Fe = 1, Ye = 2, vn = 3, Dn = 4, Nn = 5, _n = 6, ur = 7, s
5091
5094
  return i([a, { name: u, message: c }], o);
5092
5095
  };
5093
5096
  return l;
5094
- }, gt = (e, { json: n, lossy: t } = {}) => {
5097
+ }, yt = (e, { json: n, lossy: t } = {}) => {
5095
5098
  const r = [];
5096
- return wa(!(n || t), !!n, /* @__PURE__ */ new Map(), r)(e), r;
5099
+ return ka(!(n || t), !!n, /* @__PURE__ */ new Map(), r)(e), r;
5097
5100
  }, Xe = typeof structuredClone == "function" ? (
5098
5101
  /* c8 ignore start */
5099
- (e, n) => n && ("json" in n || "lossy" in n) ? dt(gt(e, n)) : structuredClone(e)
5100
- ) : (e, n) => dt(gt(e, n));
5101
- function Sa(e, n) {
5102
+ (e, n) => n && ("json" in n || "lossy" in n) ? gt(yt(e, n)) : structuredClone(e)
5103
+ ) : (e, n) => gt(yt(e, n));
5104
+ function ba(e, n) {
5102
5105
  const t = [{ type: "text", value: "↩" }];
5103
5106
  return n > 1 && t.push({
5104
5107
  type: "element",
@@ -5107,11 +5110,11 @@ function Sa(e, n) {
5107
5110
  children: [{ type: "text", value: String(n) }]
5108
5111
  }), t;
5109
5112
  }
5110
- function Ca(e, n) {
5113
+ function wa(e, n) {
5111
5114
  return "Back to reference " + (e + 1) + (n > 1 ? "-" + n : "");
5112
5115
  }
5113
- function Ea(e) {
5114
- const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", t = e.options.footnoteBackContent || Sa, r = e.options.footnoteBackLabel || Ca, i = e.options.footnoteLabel || "Footnotes", l = e.options.footnoteLabelTagName || "h2", o = e.options.footnoteLabelProperties || {
5116
+ function Sa(e) {
5117
+ const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", t = e.options.footnoteBackContent || ba, r = e.options.footnoteBackLabel || wa, i = e.options.footnoteLabel || "Footnotes", l = e.options.footnoteLabelTagName || "h2", o = e.options.footnoteLabelProperties || {
5115
5118
  className: ["sr-only"]
5116
5119
  }, a = [];
5117
5120
  let u = -1;
@@ -5181,7 +5184,7 @@ function Ea(e) {
5181
5184
  ]
5182
5185
  };
5183
5186
  }
5184
- const cr = (
5187
+ const pr = (
5185
5188
  // Note: overloads in JSDoc can’t yet use different `@template`s.
5186
5189
  /**
5187
5190
  * @type {(
@@ -5198,28 +5201,28 @@ const cr = (
5198
5201
  */
5199
5202
  function(e) {
5200
5203
  if (e == null)
5201
- return Aa;
5204
+ return Ta;
5202
5205
  if (typeof e == "function")
5203
5206
  return Je(e);
5204
5207
  if (typeof e == "object")
5205
- return Array.isArray(e) ? Ia(e) : (
5208
+ return Array.isArray(e) ? Ea(e) : (
5206
5209
  // Cast because `ReadonlyArray` goes into the above but `isArray`
5207
5210
  // narrows to `Array`.
5208
- Ta(
5211
+ Ca(
5209
5212
  /** @type {Props} */
5210
5213
  e
5211
5214
  )
5212
5215
  );
5213
5216
  if (typeof e == "string")
5214
- return Pa(e);
5217
+ return Ia(e);
5215
5218
  throw new Error("Expected function, string, or object as test");
5216
5219
  }
5217
5220
  );
5218
- function Ia(e) {
5221
+ function Ea(e) {
5219
5222
  const n = [];
5220
5223
  let t = -1;
5221
5224
  for (; ++t < e.length; )
5222
- n[t] = cr(e[t]);
5225
+ n[t] = pr(e[t]);
5223
5226
  return Je(r);
5224
5227
  function r(...i) {
5225
5228
  let l = -1;
@@ -5228,7 +5231,7 @@ function Ia(e) {
5228
5231
  return !1;
5229
5232
  }
5230
5233
  }
5231
- function Ta(e) {
5234
+ function Ca(e) {
5232
5235
  const n = (
5233
5236
  /** @type {Record<string, unknown>} */
5234
5237
  e
@@ -5246,7 +5249,7 @@ function Ta(e) {
5246
5249
  return !0;
5247
5250
  }
5248
5251
  }
5249
- function Pa(e) {
5252
+ function Ia(e) {
5250
5253
  return Je(n);
5251
5254
  function n(t) {
5252
5255
  return t && t.type === e;
@@ -5255,7 +5258,7 @@ function Pa(e) {
5255
5258
  function Je(e) {
5256
5259
  return n;
5257
5260
  function n(t, r, i) {
5258
- return !!(za(t) && e.call(
5261
+ return !!(Pa(t) && e.call(
5259
5262
  this,
5260
5263
  t,
5261
5264
  typeof r == "number" ? r : void 0,
@@ -5263,17 +5266,17 @@ function Je(e) {
5263
5266
  ));
5264
5267
  }
5265
5268
  }
5266
- function Aa() {
5269
+ function Ta() {
5267
5270
  return !0;
5268
5271
  }
5269
- function za(e) {
5272
+ function Pa(e) {
5270
5273
  return e !== null && typeof e == "object" && "type" in e;
5271
5274
  }
5272
- const pr = [], La = !0, yt = !1, Oa = "skip";
5273
- function va(e, n, t, r) {
5275
+ const fr = [], Aa = !0, xt = !1, za = "skip";
5276
+ function La(e, n, t, r) {
5274
5277
  let i;
5275
5278
  typeof n == "function" && typeof t != "function" ? (r = t, t = n) : i = n;
5276
- const l = cr(i), o = r ? -1 : 1;
5279
+ const l = pr(i), o = r ? -1 : 1;
5277
5280
  a(e, void 0, [])();
5278
5281
  function a(u, c, s) {
5279
5282
  const f = (
@@ -5294,18 +5297,18 @@ function va(e, n, t, r) {
5294
5297
  }
5295
5298
  return d;
5296
5299
  function d() {
5297
- let p = pr, y, b, T;
5298
- if ((!n || l(u, c, s[s.length - 1] || void 0)) && (p = Da(t(u, s)), p[0] === yt))
5300
+ let p = fr, y, b, T;
5301
+ if ((!n || l(u, c, s[s.length - 1] || void 0)) && (p = Oa(t(u, s)), p[0] === xt))
5299
5302
  return p;
5300
5303
  if ("children" in u && u.children) {
5301
5304
  const w = (
5302
5305
  /** @type {UnistParent} */
5303
5306
  u
5304
5307
  );
5305
- if (w.children && p[0] !== Oa)
5308
+ if (w.children && p[0] !== za)
5306
5309
  for (b = (r ? w.children.length : -1) + o, T = s.concat(w); b > -1 && b < w.children.length; ) {
5307
5310
  const L = w.children[b];
5308
- if (y = a(L, b, T)(), y[0] === yt)
5311
+ if (y = a(L, b, T)(), y[0] === xt)
5309
5312
  return y;
5310
5313
  b = typeof y[1] == "number" ? y[1] : b + o;
5311
5314
  }
@@ -5314,22 +5317,22 @@ function va(e, n, t, r) {
5314
5317
  }
5315
5318
  }
5316
5319
  }
5317
- function Da(e) {
5318
- return Array.isArray(e) ? e : typeof e == "number" ? [La, e] : e == null ? pr : [e];
5320
+ function Oa(e) {
5321
+ return Array.isArray(e) ? e : typeof e == "number" ? [Aa, e] : e == null ? fr : [e];
5319
5322
  }
5320
- function fr(e, n, t, r) {
5323
+ function hr(e, n, t, r) {
5321
5324
  let i, l, o;
5322
- typeof n == "function" ? (l = void 0, o = n, i = t) : (l = n, o = t, i = r), va(e, l, a, i);
5325
+ typeof n == "function" ? (l = void 0, o = n, i = t) : (l = n, o = t, i = r), La(e, l, a, i);
5323
5326
  function a(u, c) {
5324
5327
  const s = c[c.length - 1], f = s ? s.children.indexOf(u) : void 0;
5325
5328
  return o(u, f, s);
5326
5329
  }
5327
5330
  }
5328
- const kn = {}.hasOwnProperty, Na = {};
5329
- function _a(e, n) {
5330
- const t = n || Na, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), o = { ...ya, ...t.handlers }, a = {
5331
+ const bn = {}.hasOwnProperty, va = {};
5332
+ function Da(e, n) {
5333
+ const t = n || va, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), o = { ...da, ...t.handlers }, a = {
5331
5334
  all: c,
5332
- applyData: Ra,
5335
+ applyData: _a,
5333
5336
  definitionById: r,
5334
5337
  footnoteById: i,
5335
5338
  footnoteCounts: l,
@@ -5337,10 +5340,10 @@ function _a(e, n) {
5337
5340
  handlers: o,
5338
5341
  one: u,
5339
5342
  options: t,
5340
- patch: Fa,
5341
- wrap: Ba
5343
+ patch: Na,
5344
+ wrap: Ra
5342
5345
  };
5343
- return fr(e, function(s) {
5346
+ return hr(e, function(s) {
5344
5347
  if (s.type === "definition" || s.type === "footnoteDefinition") {
5345
5348
  const f = s.type === "definition" ? r : i, d = String(s.identifier).toUpperCase();
5346
5349
  f.has(d) || f.set(d, s);
@@ -5348,7 +5351,7 @@ function _a(e, n) {
5348
5351
  }), a;
5349
5352
  function u(s, f) {
5350
5353
  const d = s.type, p = a.handlers[d];
5351
- if (kn.call(a.handlers, d) && p)
5354
+ if (bn.call(a.handlers, d) && p)
5352
5355
  return p(a, s, f);
5353
5356
  if (a.options.passThrough && a.options.passThrough.includes(d)) {
5354
5357
  if ("children" in s) {
@@ -5357,7 +5360,7 @@ function _a(e, n) {
5357
5360
  }
5358
5361
  return Xe(s);
5359
5362
  }
5360
- return (a.options.unknownHandler || Ma)(a, s, f);
5363
+ return (a.options.unknownHandler || Fa)(a, s, f);
5361
5364
  }
5362
5365
  function c(s) {
5363
5366
  const f = [];
@@ -5367,9 +5370,9 @@ function _a(e, n) {
5367
5370
  for (; ++p < d.length; ) {
5368
5371
  const y = a.one(d[p], s);
5369
5372
  if (y) {
5370
- if (p && d[p - 1].type === "break" && (!Array.isArray(y) && y.type === "text" && (y.value = xt(y.value)), !Array.isArray(y) && y.type === "element")) {
5373
+ if (p && d[p - 1].type === "break" && (!Array.isArray(y) && y.type === "text" && (y.value = kt(y.value)), !Array.isArray(y) && y.type === "element")) {
5371
5374
  const b = y.children[0];
5372
- b && b.type === "text" && (b.value = xt(b.value));
5375
+ b && b.type === "text" && (b.value = kt(b.value));
5373
5376
  }
5374
5377
  Array.isArray(y) ? f.push(...y) : f.push(y);
5375
5378
  }
@@ -5378,10 +5381,10 @@ function _a(e, n) {
5378
5381
  return f;
5379
5382
  }
5380
5383
  }
5381
- function Fa(e, n) {
5382
- e.position && (n.position = ki(e));
5384
+ function Na(e, n) {
5385
+ e.position && (n.position = yi(e));
5383
5386
  }
5384
- function Ra(e, n) {
5387
+ function _a(e, n) {
5385
5388
  let t = n;
5386
5389
  if (e && e.data) {
5387
5390
  const r = e.data.hName, i = e.data.hChildren, l = e.data.hProperties;
@@ -5396,8 +5399,8 @@ function Ra(e, n) {
5396
5399
  }
5397
5400
  return t;
5398
5401
  }
5399
- function Ma(e, n) {
5400
- const t = n.data || {}, r = "value" in n && !(kn.call(t, "hProperties") || kn.call(t, "hChildren")) ? { type: "text", value: n.value } : {
5402
+ function Fa(e, n) {
5403
+ const t = n.data || {}, r = "value" in n && !(bn.call(t, "hProperties") || bn.call(t, "hChildren")) ? { type: "text", value: n.value } : {
5401
5404
  type: "element",
5402
5405
  tagName: "div",
5403
5406
  properties: {},
@@ -5405,7 +5408,7 @@ function Ma(e, n) {
5405
5408
  };
5406
5409
  return e.patch(n, r), e.applyData(n, r);
5407
5410
  }
5408
- function Ba(e, n) {
5411
+ function Ra(e, n) {
5409
5412
  const t = [];
5410
5413
  let r = -1;
5411
5414
  for (n && t.push({ type: "text", value: `
@@ -5415,39 +5418,39 @@ function Ba(e, n) {
5415
5418
  return n && e.length > 0 && t.push({ type: "text", value: `
5416
5419
  ` }), t;
5417
5420
  }
5418
- function xt(e) {
5421
+ function kt(e) {
5419
5422
  let n = 0, t = e.charCodeAt(n);
5420
5423
  for (; t === 9 || t === 32; )
5421
5424
  n++, t = e.charCodeAt(n);
5422
5425
  return e.slice(n);
5423
5426
  }
5424
- function kt(e, n) {
5425
- const t = _a(e, n), r = t.one(e, void 0), i = Ea(t), l = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
5427
+ function bt(e, n) {
5428
+ const t = Da(e, n), r = t.one(e, void 0), i = Sa(t), l = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
5426
5429
  return i && l.children.push({ type: "text", value: `
5427
5430
  ` }, i), l;
5428
5431
  }
5429
- function ja(e, n) {
5432
+ function Ma(e, n) {
5430
5433
  return e && "run" in e ? async function(t, r) {
5431
5434
  const i = (
5432
5435
  /** @type {HastRoot} */
5433
- kt(t, { file: r, ...n })
5436
+ bt(t, { file: r, ...n })
5434
5437
  );
5435
5438
  await e.run(i, r);
5436
5439
  } : function(t, r) {
5437
5440
  return (
5438
5441
  /** @type {HastRoot} */
5439
- kt(t, { file: r, ...e || n })
5442
+ bt(t, { file: r, ...e || n })
5440
5443
  );
5441
5444
  };
5442
5445
  }
5443
- function bt(e) {
5446
+ function wt(e) {
5444
5447
  if (e)
5445
5448
  throw e;
5446
5449
  }
5447
- var $e = Object.prototype.hasOwnProperty, hr = Object.prototype.toString, wt = Object.defineProperty, St = Object.getOwnPropertyDescriptor, Ct = function(n) {
5448
- return typeof Array.isArray == "function" ? Array.isArray(n) : hr.call(n) === "[object Array]";
5449
- }, Et = function(n) {
5450
- if (!n || hr.call(n) !== "[object Object]")
5450
+ var $e = Object.prototype.hasOwnProperty, mr = Object.prototype.toString, St = Object.defineProperty, Et = Object.getOwnPropertyDescriptor, Ct = function(n) {
5451
+ return typeof Array.isArray == "function" ? Array.isArray(n) : mr.call(n) === "[object Array]";
5452
+ }, It = function(n) {
5453
+ if (!n || mr.call(n) !== "[object Object]")
5451
5454
  return !1;
5452
5455
  var t = $e.call(n, "constructor"), r = n.constructor && n.constructor.prototype && $e.call(n.constructor.prototype, "isPrototypeOf");
5453
5456
  if (n.constructor && !t && !r)
@@ -5456,36 +5459,36 @@ var $e = Object.prototype.hasOwnProperty, hr = Object.prototype.toString, wt = O
5456
5459
  for (i in n)
5457
5460
  ;
5458
5461
  return typeof i > "u" || $e.call(n, i);
5459
- }, It = function(n, t) {
5460
- wt && t.name === "__proto__" ? wt(n, t.name, {
5462
+ }, Tt = function(n, t) {
5463
+ St && t.name === "__proto__" ? St(n, t.name, {
5461
5464
  enumerable: !0,
5462
5465
  configurable: !0,
5463
5466
  value: t.newValue,
5464
5467
  writable: !0
5465
5468
  }) : n[t.name] = t.newValue;
5466
- }, Tt = function(n, t) {
5469
+ }, Pt = function(n, t) {
5467
5470
  if (t === "__proto__")
5468
5471
  if ($e.call(n, t)) {
5469
- if (St)
5470
- return St(n, t).value;
5472
+ if (Et)
5473
+ return Et(n, t).value;
5471
5474
  } else return;
5472
5475
  return n[t];
5473
- }, Ha = function e() {
5476
+ }, Ba = function e() {
5474
5477
  var n, t, r, i, l, o, a = arguments[0], u = 1, c = arguments.length, s = !1;
5475
5478
  for (typeof a == "boolean" && (s = a, a = arguments[1] || {}, u = 2), (a == null || typeof a != "object" && typeof a != "function") && (a = {}); u < c; ++u)
5476
5479
  if (n = arguments[u], n != null)
5477
5480
  for (t in n)
5478
- r = Tt(a, t), i = Tt(n, t), a !== i && (s && i && (Et(i) || (l = Ct(i))) ? (l ? (l = !1, o = r && Ct(r) ? r : []) : o = r && Et(r) ? r : {}, It(a, { name: t, newValue: e(s, o, i) })) : typeof i < "u" && It(a, { name: t, newValue: i }));
5481
+ r = Pt(a, t), i = Pt(n, t), a !== i && (s && i && (It(i) || (l = Ct(i))) ? (l ? (l = !1, o = r && Ct(r) ? r : []) : o = r && It(r) ? r : {}, Tt(a, { name: t, newValue: e(s, o, i) })) : typeof i < "u" && Tt(a, { name: t, newValue: i }));
5479
5482
  return a;
5480
5483
  };
5481
- const rn = /* @__PURE__ */ vt(Ha);
5482
- function bn(e) {
5484
+ const ln = /* @__PURE__ */ Dt(Ba);
5485
+ function wn(e) {
5483
5486
  if (typeof e != "object" || e === null)
5484
5487
  return !1;
5485
5488
  const n = Object.getPrototypeOf(e);
5486
5489
  return (n === null || n === Object.prototype || Object.getPrototypeOf(n) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
5487
5490
  }
5488
- function Ua() {
5491
+ function ja() {
5489
5492
  const e = [], n = { run: t, use: r };
5490
5493
  return n;
5491
5494
  function t(...i) {
@@ -5503,7 +5506,7 @@ function Ua() {
5503
5506
  }
5504
5507
  for (; ++f < i.length; )
5505
5508
  (c[f] === null || c[f] === void 0) && (c[f] = i[f]);
5506
- i = c, s ? Va(s, a)(...c) : o(null, ...c);
5509
+ i = c, s ? Ha(s, a)(...c) : o(null, ...c);
5507
5510
  }
5508
5511
  }
5509
5512
  function r(i) {
@@ -5514,7 +5517,7 @@ function Ua() {
5514
5517
  return e.push(i), n;
5515
5518
  }
5516
5519
  }
5517
- function Va(e, n) {
5520
+ function Ha(e, n) {
5518
5521
  let t;
5519
5522
  return r;
5520
5523
  function r(...o) {
@@ -5541,8 +5544,8 @@ function Va(e, n) {
5541
5544
  i(null, o);
5542
5545
  }
5543
5546
  }
5544
- const ae = { basename: qa, dirname: $a, extname: Wa, join: Ya, sep: "/" };
5545
- function qa(e, n) {
5547
+ const ae = { basename: Ua, dirname: Va, extname: qa, join: $a, sep: "/" };
5548
+ function Ua(e, n) {
5546
5549
  if (n !== void 0 && typeof n != "string")
5547
5550
  throw new TypeError('"ext" argument must be a string');
5548
5551
  Be(e);
@@ -5570,7 +5573,7 @@ function qa(e, n) {
5570
5573
  o < 0 && (l = !0, o = i + 1), a > -1 && (e.codePointAt(i) === n.codePointAt(a--) ? a < 0 && (r = i) : (a = -1, r = o));
5571
5574
  return t === r ? r = o : r < 0 && (r = e.length), e.slice(t, r);
5572
5575
  }
5573
- function $a(e) {
5576
+ function Va(e) {
5574
5577
  if (Be(e), e.length === 0)
5575
5578
  return ".";
5576
5579
  let n = -1, t = e.length, r;
@@ -5583,7 +5586,7 @@ function $a(e) {
5583
5586
  } else r || (r = !0);
5584
5587
  return n < 0 ? e.codePointAt(0) === 47 ? "/" : "." : n === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, n);
5585
5588
  }
5586
- function Wa(e) {
5589
+ function qa(e) {
5587
5590
  Be(e);
5588
5591
  let n = e.length, t = -1, r = 0, i = -1, l = 0, o;
5589
5592
  for (; n--; ) {
@@ -5601,19 +5604,19 @@ function Wa(e) {
5601
5604
  l === 0 || // The (right-most) trimmed path component is exactly `..`.
5602
5605
  l === 1 && i === t - 1 && i === r + 1 ? "" : e.slice(i, t);
5603
5606
  }
5604
- function Ya(...e) {
5607
+ function $a(...e) {
5605
5608
  let n = -1, t;
5606
5609
  for (; ++n < e.length; )
5607
5610
  Be(e[n]), e[n] && (t = t === void 0 ? e[n] : t + "/" + e[n]);
5608
- return t === void 0 ? "." : Xa(t);
5611
+ return t === void 0 ? "." : Wa(t);
5609
5612
  }
5610
- function Xa(e) {
5613
+ function Wa(e) {
5611
5614
  Be(e);
5612
5615
  const n = e.codePointAt(0) === 47;
5613
- let t = Qa(e, !n);
5616
+ let t = Ya(e, !n);
5614
5617
  return t.length === 0 && !n && (t = "."), t.length > 0 && e.codePointAt(e.length - 1) === 47 && (t += "/"), n ? "/" + t : t;
5615
5618
  }
5616
- function Qa(e, n) {
5619
+ function Ya(e, n) {
5617
5620
  let t = "", r = 0, i = -1, l = 0, o = -1, a, u;
5618
5621
  for (; ++o <= e.length; ) {
5619
5622
  if (o < e.length)
@@ -5650,18 +5653,18 @@ function Be(e) {
5650
5653
  "Path must be a string. Received " + JSON.stringify(e)
5651
5654
  );
5652
5655
  }
5653
- const Ga = { cwd: Ka };
5654
- function Ka() {
5656
+ const Xa = { cwd: Qa };
5657
+ function Qa() {
5655
5658
  return "/";
5656
5659
  }
5657
- function wn(e) {
5660
+ function Sn(e) {
5658
5661
  return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
5659
5662
  e.auth === void 0);
5660
5663
  }
5661
- function Ja(e) {
5664
+ function Ga(e) {
5662
5665
  if (typeof e == "string")
5663
5666
  e = new URL(e);
5664
- else if (!wn(e)) {
5667
+ else if (!Sn(e)) {
5665
5668
  const n = new TypeError(
5666
5669
  'The "path" argument must be of type string or an instance of URL. Received `' + e + "`"
5667
5670
  );
@@ -5671,9 +5674,9 @@ function Ja(e) {
5671
5674
  const n = new TypeError("The URL must be of scheme file");
5672
5675
  throw n.code = "ERR_INVALID_URL_SCHEME", n;
5673
5676
  }
5674
- return Za(e);
5677
+ return Ka(e);
5675
5678
  }
5676
- function Za(e) {
5679
+ function Ka(e) {
5677
5680
  if (e.hostname !== "") {
5678
5681
  const r = new TypeError(
5679
5682
  'File URL host must be "localhost" or empty on darwin'
@@ -5694,7 +5697,7 @@ function Za(e) {
5694
5697
  }
5695
5698
  return decodeURIComponent(n);
5696
5699
  }
5697
- const ln = (
5700
+ const on = (
5698
5701
  /** @type {const} */
5699
5702
  [
5700
5703
  "history",
@@ -5705,7 +5708,7 @@ const ln = (
5705
5708
  "dirname"
5706
5709
  ]
5707
5710
  );
5708
- class mr {
5711
+ class dr {
5709
5712
  /**
5710
5713
  * Create a new virtual file.
5711
5714
  *
@@ -5730,15 +5733,15 @@ class mr {
5730
5733
  */
5731
5734
  constructor(n) {
5732
5735
  let t;
5733
- n ? wn(n) ? t = { path: n } : typeof n == "string" || eu(n) ? t = { value: n } : t = n : t = {}, this.cwd = "cwd" in t ? "" : Ga.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
5736
+ n ? Sn(n) ? t = { path: n } : typeof n == "string" || Ja(n) ? t = { value: n } : t = n : t = {}, this.cwd = "cwd" in t ? "" : Xa.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
5734
5737
  let r = -1;
5735
- for (; ++r < ln.length; ) {
5736
- const l = ln[r];
5738
+ for (; ++r < on.length; ) {
5739
+ const l = on[r];
5737
5740
  l in t && t[l] !== void 0 && t[l] !== null && (this[l] = l === "history" ? [...t[l]] : t[l]);
5738
5741
  }
5739
5742
  let i;
5740
5743
  for (i in t)
5741
- ln.includes(i) || (this[i] = t[i]);
5744
+ on.includes(i) || (this[i] = t[i]);
5742
5745
  }
5743
5746
  /**
5744
5747
  * Get the basename (including extname) (example: `'index.min.js'`).
@@ -5762,7 +5765,7 @@ class mr {
5762
5765
  * Nothing.
5763
5766
  */
5764
5767
  set basename(n) {
5765
- an(n, "basename"), on(n, "basename"), this.path = ae.join(this.dirname || "", n);
5768
+ un(n, "basename"), an(n, "basename"), this.path = ae.join(this.dirname || "", n);
5766
5769
  }
5767
5770
  /**
5768
5771
  * Get the parent path (example: `'~'`).
@@ -5784,7 +5787,7 @@ class mr {
5784
5787
  * Nothing.
5785
5788
  */
5786
5789
  set dirname(n) {
5787
- Pt(this.basename, "dirname"), this.path = ae.join(n || "", this.basename);
5790
+ At(this.basename, "dirname"), this.path = ae.join(n || "", this.basename);
5788
5791
  }
5789
5792
  /**
5790
5793
  * Get the extname (including dot) (example: `'.js'`).
@@ -5808,7 +5811,7 @@ class mr {
5808
5811
  * Nothing.
5809
5812
  */
5810
5813
  set extname(n) {
5811
- if (on(n, "extname"), Pt(this.dirname, "extname"), n) {
5814
+ if (an(n, "extname"), At(this.dirname, "extname"), n) {
5812
5815
  if (n.codePointAt(0) !== 46)
5813
5816
  throw new Error("`extname` must start with `.`");
5814
5817
  if (n.includes(".", 1))
@@ -5838,7 +5841,7 @@ class mr {
5838
5841
  * Nothing.
5839
5842
  */
5840
5843
  set path(n) {
5841
- wn(n) && (n = Ja(n)), an(n, "path"), this.path !== n && this.history.push(n);
5844
+ Sn(n) && (n = Ga(n)), un(n, "path"), this.path !== n && this.history.push(n);
5842
5845
  }
5843
5846
  /**
5844
5847
  * Get the stem (basename w/o extname) (example: `'index.min'`).
@@ -5862,7 +5865,7 @@ class mr {
5862
5865
  * Nothing.
5863
5866
  */
5864
5867
  set stem(n) {
5865
- an(n, "stem"), on(n, "stem"), this.path = ae.join(this.dirname || "", n + (this.extname || ""));
5868
+ un(n, "stem"), an(n, "stem"), this.path = ae.join(this.dirname || "", n + (this.extname || ""));
5866
5869
  }
5867
5870
  // Normal prototypal methods.
5868
5871
  /**
@@ -6075,24 +6078,24 @@ class mr {
6075
6078
  return this.value === void 0 ? "" : typeof this.value == "string" ? this.value : new TextDecoder(n || void 0).decode(this.value);
6076
6079
  }
6077
6080
  }
6078
- function on(e, n) {
6081
+ function an(e, n) {
6079
6082
  if (e && e.includes(ae.sep))
6080
6083
  throw new Error(
6081
6084
  "`" + n + "` cannot be a path: did not expect `" + ae.sep + "`"
6082
6085
  );
6083
6086
  }
6084
- function an(e, n) {
6087
+ function un(e, n) {
6085
6088
  if (!e)
6086
6089
  throw new Error("`" + n + "` cannot be empty");
6087
6090
  }
6088
- function Pt(e, n) {
6091
+ function At(e, n) {
6089
6092
  if (!e)
6090
6093
  throw new Error("Setting `" + n + "` requires `path` to be set too");
6091
6094
  }
6092
- function eu(e) {
6095
+ function Ja(e) {
6093
6096
  return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
6094
6097
  }
6095
- const nu = (
6098
+ const Za = (
6096
6099
  /**
6097
6100
  * @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
6098
6101
  */
@@ -6119,13 +6122,13 @@ const nu = (
6119
6122
  }
6120
6123
  return l;
6121
6124
  }
6122
- ), tu = {}.hasOwnProperty;
6123
- class Fn extends nu {
6125
+ ), eu = {}.hasOwnProperty;
6126
+ class Rn extends Za {
6124
6127
  /**
6125
6128
  * Create a processor.
6126
6129
  */
6127
6130
  constructor() {
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 = Ua();
6131
+ 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 = ja();
6129
6132
  }
6130
6133
  /**
6131
6134
  * Copy a processor.
@@ -6141,14 +6144,14 @@ class Fn extends nu {
6141
6144
  copy() {
6142
6145
  const n = (
6143
6146
  /** @type {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>} */
6144
- new Fn()
6147
+ new Rn()
6145
6148
  );
6146
6149
  let t = -1;
6147
6150
  for (; ++t < this.attachers.length; ) {
6148
6151
  const r = this.attachers[t];
6149
6152
  n.use(...r);
6150
6153
  }
6151
- return n.data(rn(!0, {}, this.namespace)), n;
6154
+ return n.data(ln(!0, {}, this.namespace)), n;
6152
6155
  }
6153
6156
  /**
6154
6157
  * Configure the processor with info available to all plugins.
@@ -6210,7 +6213,7 @@ class Fn extends nu {
6210
6213
  * the entire dataset when getting without key.
6211
6214
  */
6212
6215
  data(n, t) {
6213
- return typeof n == "string" ? arguments.length === 2 ? (cn("data", this.frozen), this.namespace[n] = t, this) : tu.call(this.namespace, n) && this.namespace[n] || void 0 : n ? (cn("data", this.frozen), this.namespace = n, this) : this.namespace;
6216
+ return typeof n == "string" ? arguments.length === 2 ? (pn("data", this.frozen), this.namespace[n] = t, this) : eu.call(this.namespace, n) && this.namespace[n] || void 0 : n ? (pn("data", this.frozen), this.namespace = n, this) : this.namespace;
6214
6217
  }
6215
6218
  /**
6216
6219
  * Freeze a processor.
@@ -6264,7 +6267,7 @@ class Fn extends nu {
6264
6267
  parse(n) {
6265
6268
  this.freeze();
6266
6269
  const t = Ve(n), r = this.parser || this.Parser;
6267
- return un("parse", r), r(String(t), t);
6270
+ return sn("parse", r), r(String(t), t);
6268
6271
  }
6269
6272
  /**
6270
6273
  * Process the given file as configured on the processor.
@@ -6310,7 +6313,7 @@ class Fn extends nu {
6310
6313
  */
6311
6314
  process(n, t) {
6312
6315
  const r = this;
6313
- return this.freeze(), un("process", this.parser || this.Parser), sn("process", this.compiler || this.Compiler), t ? i(void 0, t) : new Promise(i);
6316
+ return this.freeze(), sn("process", this.parser || this.Parser), cn("process", this.compiler || this.Compiler), t ? i(void 0, t) : new Promise(i);
6314
6317
  function i(l, o) {
6315
6318
  const a = Ve(n), u = (
6316
6319
  /** @type {HeadTree extends undefined ? Node : HeadTree} */
@@ -6325,7 +6328,7 @@ class Fn extends nu {
6325
6328
  /** @type {unknown} */
6326
6329
  f
6327
6330
  ), y = r.stringify(p, d);
6328
- lu(y) ? d.value = y : d.result = y, c(
6331
+ ru(y) ? d.value = y : d.result = y, c(
6329
6332
  s,
6330
6333
  /** @type {VFileWithOutput<CompileResult>} */
6331
6334
  d
@@ -6369,9 +6372,9 @@ class Fn extends nu {
6369
6372
  */
6370
6373
  processSync(n) {
6371
6374
  let t = !1, r;
6372
- return this.freeze(), un("processSync", this.parser || this.Parser), sn("processSync", this.compiler || this.Compiler), this.process(n, i), zt("processSync", "process", t), r;
6375
+ return this.freeze(), sn("processSync", this.parser || this.Parser), cn("processSync", this.compiler || this.Compiler), this.process(n, i), Lt("processSync", "process", t), r;
6373
6376
  function i(l, o) {
6374
- t = !0, bt(l), r = o;
6377
+ t = !0, wt(l), r = o;
6375
6378
  }
6376
6379
  }
6377
6380
  /**
@@ -6413,7 +6416,7 @@ class Fn extends nu {
6413
6416
  * transformed tree.
6414
6417
  */
6415
6418
  run(n, t, r) {
6416
- At(n), this.freeze();
6419
+ zt(n), this.freeze();
6417
6420
  const i = this.transformers;
6418
6421
  return !r && typeof t == "function" && (r = t, t = void 0), r ? l(void 0, r) : new Promise(l);
6419
6422
  function l(o, a) {
@@ -6447,9 +6450,9 @@ class Fn extends nu {
6447
6450
  */
6448
6451
  runSync(n, t) {
6449
6452
  let r = !1, i;
6450
- return this.run(n, t, l), zt("runSync", "run", r), i;
6453
+ return this.run(n, t, l), Lt("runSync", "run", r), i;
6451
6454
  function l(o, a) {
6452
- bt(o), i = a, r = !0;
6455
+ wt(o), i = a, r = !0;
6453
6456
  }
6454
6457
  }
6455
6458
  /**
@@ -6484,7 +6487,7 @@ class Fn extends nu {
6484
6487
  stringify(n, t) {
6485
6488
  this.freeze();
6486
6489
  const r = Ve(t), i = this.compiler || this.Compiler;
6487
- return sn("stringify", i), At(n), i(n, r);
6490
+ return cn("stringify", i), zt(n), i(n, r);
6488
6491
  }
6489
6492
  /**
6490
6493
  * Configure the processor to use a plugin, a list of usable values, or a
@@ -6545,7 +6548,7 @@ class Fn extends nu {
6545
6548
  */
6546
6549
  use(n, ...t) {
6547
6550
  const r = this.attachers, i = this.namespace;
6548
- if (cn("use", this.frozen), n != null) if (typeof n == "function")
6551
+ if (pn("use", this.frozen), n != null) if (typeof n == "function")
6549
6552
  u(n, t);
6550
6553
  else if (typeof n == "object")
6551
6554
  Array.isArray(n) ? a(n) : o(n);
@@ -6572,7 +6575,7 @@ class Fn extends nu {
6572
6575
  throw new Error(
6573
6576
  "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"
6574
6577
  );
6575
- a(c.plugins), c.settings && (i.settings = rn(!0, i.settings, c.settings));
6578
+ a(c.plugins), c.settings && (i.settings = ln(!0, i.settings, c.settings));
6576
6579
  }
6577
6580
  function a(c) {
6578
6581
  let s = -1;
@@ -6596,49 +6599,49 @@ class Fn extends nu {
6596
6599
  else if (s.length > 0) {
6597
6600
  let [p, ...y] = s;
6598
6601
  const b = r[d][1];
6599
- bn(b) && bn(p) && (p = rn(!0, b, p)), r[d] = [c, p, ...y];
6602
+ wn(b) && wn(p) && (p = ln(!0, b, p)), r[d] = [c, p, ...y];
6600
6603
  }
6601
6604
  }
6602
6605
  }
6603
6606
  }
6604
- const ru = new Fn().freeze();
6605
- function un(e, n) {
6607
+ const nu = new Rn().freeze();
6608
+ function sn(e, n) {
6606
6609
  if (typeof n != "function")
6607
6610
  throw new TypeError("Cannot `" + e + "` without `parser`");
6608
6611
  }
6609
- function sn(e, n) {
6612
+ function cn(e, n) {
6610
6613
  if (typeof n != "function")
6611
6614
  throw new TypeError("Cannot `" + e + "` without `compiler`");
6612
6615
  }
6613
- function cn(e, n) {
6616
+ function pn(e, n) {
6614
6617
  if (n)
6615
6618
  throw new Error(
6616
6619
  "Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
6617
6620
  );
6618
6621
  }
6619
- function At(e) {
6620
- if (!bn(e) || typeof e.type != "string")
6622
+ function zt(e) {
6623
+ if (!wn(e) || typeof e.type != "string")
6621
6624
  throw new TypeError("Expected node, got `" + e + "`");
6622
6625
  }
6623
- function zt(e, n, t) {
6626
+ function Lt(e, n, t) {
6624
6627
  if (!t)
6625
6628
  throw new Error(
6626
6629
  "`" + e + "` finished async. Use `" + n + "` instead"
6627
6630
  );
6628
6631
  }
6629
6632
  function Ve(e) {
6630
- return iu(e) ? e : new mr(e);
6633
+ return tu(e) ? e : new dr(e);
6631
6634
  }
6632
- function iu(e) {
6635
+ function tu(e) {
6633
6636
  return !!(e && typeof e == "object" && "message" in e && "messages" in e);
6634
6637
  }
6635
- function lu(e) {
6636
- return typeof e == "string" || ou(e);
6638
+ function ru(e) {
6639
+ return typeof e == "string" || iu(e);
6637
6640
  }
6638
- function ou(e) {
6641
+ function iu(e) {
6639
6642
  return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
6640
6643
  }
6641
- const au = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", Lt = [], Ot = { allowDangerousHtml: !0 }, uu = /^(https?|ircs?|mailto|xmpp)$/i, su = [
6644
+ const lu = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", Ot = [], vt = { allowDangerousHtml: !0 }, ou = /^(https?|ircs?|mailto|xmpp)$/i, au = [
6642
6645
  { from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
6643
6646
  { from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
6644
6647
  {
@@ -6671,22 +6674,22 @@ const au = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
6671
6674
  { from: "transformImageUri", id: "#add-urltransform", to: "urlTransform" },
6672
6675
  { from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
6673
6676
  ];
6674
- function yu(e) {
6675
- const n = cu(e), t = pu(e);
6676
- return fu(n.runSync(n.parse(t), t), e);
6677
+ function mu(e) {
6678
+ const n = uu(e), t = su(e);
6679
+ return cu(n.runSync(n.parse(t), t), e);
6677
6680
  }
6678
- function cu(e) {
6679
- const n = e.rehypePlugins || Lt, t = e.remarkPlugins || Lt, r = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...Ot } : Ot;
6680
- return ru().use(Wo).use(t).use(ja, r).use(n);
6681
+ function uu(e) {
6682
+ const n = e.rehypePlugins || Ot, t = e.remarkPlugins || Ot, r = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...vt } : vt;
6683
+ return nu().use(qo).use(t).use(Ma, r).use(n);
6681
6684
  }
6682
- function pu(e) {
6683
- const n = e.children || "", t = new mr();
6685
+ function su(e) {
6686
+ const n = e.children || "", t = new dr();
6684
6687
  return typeof n == "string" && (t.value = n), t;
6685
6688
  }
6686
- function fu(e, n) {
6687
- const t = n.allowedElements, r = n.allowElement, i = n.components, l = n.disallowedElements, o = n.skipHtml, a = n.unwrapDisallowed, u = n.urlTransform || hu;
6688
- for (const s of su)
6689
- Object.hasOwn(n, s.from) && ("" + s.from + (s.to ? "use `" + s.to + "` instead" : "remove it") + au + s.id, void 0);
6689
+ function cu(e, n) {
6690
+ const t = n.allowedElements, r = n.allowElement, i = n.components, l = n.disallowedElements, o = n.skipHtml, a = n.unwrapDisallowed, u = n.urlTransform || pu;
6691
+ for (const s of au)
6692
+ Object.hasOwn(n, s.from) && ("" + s.from + (s.to ? "use `" + s.to + "` instead" : "remove it") + lu + s.id, void 0);
6690
6693
  return n.className && (e = {
6691
6694
  type: "element",
6692
6695
  tagName: "div",
@@ -6696,15 +6699,15 @@ function fu(e, n) {
6696
6699
  /** @type {Array<ElementContent>} */
6697
6700
  e.type === "root" ? e.children : [e]
6698
6701
  )
6699
- }), fr(e, c), Ei(e, {
6700
- Fragment: Tr,
6702
+ }), hr(e, c), Si(e, {
6703
+ Fragment: Ze.Fragment,
6701
6704
  // @ts-expect-error
6702
6705
  // React components are allowed to return numbers,
6703
6706
  // but not according to the types in hast-util-to-jsx-runtime
6704
6707
  components: i,
6705
6708
  ignoreInvalidStyle: !0,
6706
- jsx: Ir,
6707
- jsxs: Er,
6709
+ jsx: Ze.jsx,
6710
+ jsxs: Ze.jsxs,
6708
6711
  passKeys: !0,
6709
6712
  passNode: !0
6710
6713
  });
@@ -6713,9 +6716,9 @@ function fu(e, n) {
6713
6716
  return o ? d.children.splice(f, 1) : d.children[f] = { type: "text", value: s.value }, f;
6714
6717
  if (s.type === "element") {
6715
6718
  let p;
6716
- for (p in en)
6717
- if (Object.hasOwn(en, p) && Object.hasOwn(s.properties, p)) {
6718
- const y = s.properties[p], b = en[p];
6719
+ for (p in nn)
6720
+ if (Object.hasOwn(nn, p) && Object.hasOwn(s.properties, p)) {
6721
+ const y = s.properties[p], b = nn[p];
6719
6722
  (b === null || b.includes(s.tagName)) && (s.properties[p] = u(String(y || ""), p, s));
6720
6723
  }
6721
6724
  }
@@ -6726,16 +6729,16 @@ function fu(e, n) {
6726
6729
  }
6727
6730
  }
6728
6731
  }
6729
- function hu(e) {
6732
+ function pu(e) {
6730
6733
  const n = e.indexOf(":"), t = e.indexOf("?"), r = e.indexOf("#"), i = e.indexOf("/");
6731
6734
  return (
6732
6735
  // If there is no protocol, it’s relative.
6733
6736
  n === -1 || // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.
6734
6737
  i !== -1 && n > i || t !== -1 && n > t || r !== -1 && n > r || // It is a protocol, it should be allowed.
6735
- uu.test(e.slice(0, n)) ? e : ""
6738
+ ou.test(e.slice(0, n)) ? e : ""
6736
6739
  );
6737
6740
  }
6738
6741
  export {
6739
- yu as default,
6740
- hu as defaultUrlTransform
6742
+ mu as default,
6743
+ pu as defaultUrlTransform
6741
6744
  };