@yext/pages-components 1.2.2 → 1.2.4

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.js";
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-0El3OWzn.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 {
@@ -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,37 +1762,37 @@ 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;
1794
+ it.innerHTML = n;
1795
+ const t = it.textContent;
1797
1796
  return (
1798
1797
  // @ts-expect-error: TypeScript is wrong that `textContent` on elements can
1799
1798
  // yield `null`.
@@ -1812,24 +1811,24 @@ function se(e, n, t, r) {
1812
1811
  function te(e, n) {
1813
1812
  return e.length > 0 ? (se(e, e.length, 0, n), e) : n;
1814
1813
  }
1815
- const it = {}.hasOwnProperty;
1816
- function Vi(e) {
1814
+ const lt = {}.hasOwnProperty;
1815
+ function Hi(e) {
1817
1816
  const n = {};
1818
1817
  let t = -1;
1819
1818
  for (; ++t < e.length; )
1820
- qi(n, e[t]);
1819
+ Ui(n, e[t]);
1821
1820
  return n;
1822
1821
  }
1823
- function qi(e, n) {
1822
+ function Ui(e, n) {
1824
1823
  let t;
1825
1824
  for (t in n) {
1826
- 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];
1827
1826
  let o;
1828
1827
  if (l)
1829
1828
  for (o in l) {
1830
- it.call(i, o) || (i[o] = []);
1829
+ lt.call(i, o) || (i[o] = []);
1831
1830
  const a = l[o];
1832
- $i(
1831
+ Vi(
1833
1832
  // @ts-expect-error Looks like a list.
1834
1833
  i[o],
1835
1834
  Array.isArray(a) ? a : a ? [a] : []
@@ -1837,14 +1836,14 @@ function qi(e, n) {
1837
1836
  }
1838
1837
  }
1839
1838
  }
1840
- function $i(e, n) {
1839
+ function Vi(e, n) {
1841
1840
  let t = -1;
1842
1841
  const r = [];
1843
1842
  for (; ++t < n.length; )
1844
1843
  (n[t].add === "after" ? e : r).push(n[t]);
1845
1844
  se(e, 0, 0, r);
1846
1845
  }
1847
- function Yt(e, n) {
1846
+ function Xt(e, n) {
1848
1847
  const t = Number.parseInt(e, n);
1849
1848
  return (
1850
1849
  // C0 except for HT, LF, FF, CR, space.
@@ -1860,15 +1859,15 @@ function Yt(e, n) {
1860
1859
  function Te(e) {
1861
1860
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
1862
1861
  }
1863
- const ue = ge(/[A-Za-z]/), ne = ge(/[\dA-Za-z]/), Wi = ge(/[#-'*+\--9=?A-Z^-~]/);
1864
- function gn(e) {
1862
+ const ue = ge(/[A-Za-z]/), ne = ge(/[\dA-Za-z]/), qi = ge(/[#-'*+\--9=?A-Z^-~]/);
1863
+ function yn(e) {
1865
1864
  return (
1866
1865
  // Special whitespace codes (which have negative values), C0 and Control
1867
1866
  // character DEL
1868
1867
  e !== null && (e < 32 || e === 127)
1869
1868
  );
1870
1869
  }
1871
- const yn = ge(/\d/), Yi = ge(/[\dA-Fa-f]/), Xi = ge(/[!-/:-@[-`{-~]/);
1870
+ const xn = ge(/\d/), $i = ge(/[\dA-Fa-f]/), Wi = ge(/[!-/:-@[-`{-~]/);
1872
1871
  function P(e) {
1873
1872
  return e !== null && e < -2;
1874
1873
  }
@@ -1878,7 +1877,7 @@ function K(e) {
1878
1877
  function D(e) {
1879
1878
  return e === -2 || e === -1 || e === 32;
1880
1879
  }
1881
- 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/);
1882
1881
  function ge(e) {
1883
1882
  return n;
1884
1883
  function n(t) {
@@ -1915,10 +1914,10 @@ function M(e, n, t, r) {
1915
1914
  return D(u) && l++ < i ? (e.consume(u), a) : (e.exit(t), n(u));
1916
1915
  }
1917
1916
  }
1918
- const Ki = {
1919
- tokenize: Ji
1917
+ const Qi = {
1918
+ tokenize: Gi
1920
1919
  };
1921
- function Ji(e) {
1920
+ function Gi(e) {
1922
1921
  const n = e.attempt(this.parser.constructs.contentInitial, r, i);
1923
1922
  let t;
1924
1923
  return n;
@@ -1947,23 +1946,23 @@ function Ji(e) {
1947
1946
  return P(a) ? (e.consume(a), e.exit("chunkText"), l) : (e.consume(a), o);
1948
1947
  }
1949
1948
  }
1950
- const Zi = {
1951
- tokenize: el
1952
- }, lt = {
1953
- tokenize: nl
1949
+ const Ki = {
1950
+ tokenize: Ji
1951
+ }, ot = {
1952
+ tokenize: Zi
1954
1953
  };
1955
- function el(e) {
1954
+ function Ji(e) {
1956
1955
  const n = this, t = [];
1957
1956
  let r = 0, i, l, o;
1958
1957
  return a;
1959
- function a(C) {
1958
+ function a(E) {
1960
1959
  if (r < t.length) {
1961
1960
  const j = t[r];
1962
- 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);
1963
1962
  }
1964
- return c(C);
1963
+ return c(E);
1965
1964
  }
1966
- function u(C) {
1965
+ function u(E) {
1967
1966
  if (r++, n.containerState._closeFlow) {
1968
1967
  n.containerState._closeFlow = void 0, i && L();
1969
1968
  const j = n.events.length;
@@ -1979,53 +1978,53 @@ function el(e) {
1979
1978
  n.events[N][1].end = {
1980
1979
  ...x
1981
1980
  }, N++;
1982
- 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);
1983
1982
  }
1984
- return a(C);
1983
+ return a(E);
1985
1984
  }
1986
- function c(C) {
1985
+ function c(E) {
1987
1986
  if (r === t.length) {
1988
1987
  if (!i)
1989
- return d(C);
1988
+ return d(E);
1990
1989
  if (i.currentConstruct && i.currentConstruct.concrete)
1991
- return y(C);
1990
+ return y(E);
1992
1991
  n.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
1993
1992
  }
1994
- return n.containerState = {}, e.check(lt, s, f)(C);
1993
+ return n.containerState = {}, e.check(ot, s, f)(E);
1995
1994
  }
1996
- function s(C) {
1997
- return i && L(), w(r), d(C);
1995
+ function s(E) {
1996
+ return i && L(), w(r), d(E);
1998
1997
  }
1999
- function f(C) {
2000
- 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);
2001
2000
  }
2002
- function d(C) {
2003
- return n.containerState = {}, e.attempt(lt, p, y)(C);
2001
+ function d(E) {
2002
+ return n.containerState = {}, e.attempt(ot, p, y)(E);
2004
2003
  }
2005
- function p(C) {
2006
- 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);
2007
2006
  }
2008
- function y(C) {
2009
- if (C === null) {
2010
- i && L(), w(0), e.consume(C);
2007
+ function y(E) {
2008
+ if (E === null) {
2009
+ i && L(), w(0), e.consume(E);
2011
2010
  return;
2012
2011
  }
2013
2012
  return i = i || n.parser.flow(n.now()), e.enter("chunkFlow", {
2014
2013
  _tokenizer: i,
2015
2014
  contentType: "flow",
2016
2015
  previous: l
2017
- }), b(C);
2016
+ }), b(E);
2018
2017
  }
2019
- function b(C) {
2020
- if (C === null) {
2021
- 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);
2022
2021
  return;
2023
2022
  }
2024
- 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);
2025
2024
  }
2026
- function T(C, j) {
2027
- const U = n.sliceStream(C);
2028
- 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]) {
2029
2028
  let x = i.events.length;
2030
2029
  for (; x--; )
2031
2030
  if (
@@ -2052,28 +2051,28 @@ function el(e) {
2052
2051
  se(n.events, V + 1, 0, n.events.slice(N)), n.events.length = x;
2053
2052
  }
2054
2053
  }
2055
- function w(C) {
2054
+ function w(E) {
2056
2055
  let j = t.length;
2057
- for (; j-- > C; ) {
2056
+ for (; j-- > E; ) {
2058
2057
  const U = t[j];
2059
2058
  n.containerState = U[1], U[0].exit.call(n, e);
2060
2059
  }
2061
- t.length = C;
2060
+ t.length = E;
2062
2061
  }
2063
2062
  function L() {
2064
2063
  i.write([null]), l = void 0, i = void 0, n.containerState._closeFlow = void 0;
2065
2064
  }
2066
2065
  }
2067
- function nl(e, n, t) {
2066
+ function Zi(e, n, t) {
2068
2067
  return M(e, e.attempt(this.parser.constructs.document, n, t), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
2069
2068
  }
2070
- function ot(e) {
2071
- if (e === null || K(e) || Gi(e))
2069
+ function at(e) {
2070
+ if (e === null || K(e) || Xi(e))
2072
2071
  return 1;
2073
- if (Qi(e))
2072
+ if (Yi(e))
2074
2073
  return 2;
2075
2074
  }
2076
- function Ln(e, n, t) {
2075
+ function On(e, n, t) {
2077
2076
  const r = [];
2078
2077
  let i = -1;
2079
2078
  for (; ++i < e.length; ) {
@@ -2082,12 +2081,12 @@ function Ln(e, n, t) {
2082
2081
  }
2083
2082
  return n;
2084
2083
  }
2085
- const xn = {
2084
+ const kn = {
2086
2085
  name: "attention",
2087
- resolveAll: tl,
2088
- tokenize: rl
2086
+ resolveAll: el,
2087
+ tokenize: nl
2089
2088
  };
2090
- function tl(e, n) {
2089
+ function el(e, n) {
2091
2090
  let t = -1, r, i, l, o, a, u, c, s;
2092
2091
  for (; ++t < e.length; )
2093
2092
  if (e[t][0] === "enter" && e[t][1].type === "attentionSequence" && e[t][1]._close) {
@@ -2102,7 +2101,7 @@ function tl(e, n) {
2102
2101
  }, d = {
2103
2102
  ...e[t][1].start
2104
2103
  };
2105
- at(f, -u), at(d, u), o = {
2104
+ ut(f, -u), ut(d, u), o = {
2106
2105
  type: u > 1 ? "strongSequence" : "emphasisSequence",
2107
2106
  start: f,
2108
2107
  end: {
@@ -2134,7 +2133,7 @@ function tl(e, n) {
2134
2133
  ...o.start
2135
2134
  }, e[t][1].start = {
2136
2135
  ...a.end
2137
- }, 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;
2138
2137
  break;
2139
2138
  }
2140
2139
  }
@@ -2142,8 +2141,8 @@ function tl(e, n) {
2142
2141
  e[t][1].type === "attentionSequence" && (e[t][1].type = "data");
2143
2142
  return e;
2144
2143
  }
2145
- function rl(e, n) {
2146
- 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);
2147
2146
  let l;
2148
2147
  return o;
2149
2148
  function o(u) {
@@ -2152,18 +2151,18 @@ function rl(e, n) {
2152
2151
  function a(u) {
2153
2152
  if (u === l)
2154
2153
  return e.consume(u), a;
2155
- 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);
2156
2155
  return c._open = !!(l === 42 ? f : f && (i || !d)), c._close = !!(l === 42 ? d : d && (s || !f)), n(u);
2157
2156
  }
2158
2157
  }
2159
- function at(e, n) {
2158
+ function ut(e, n) {
2160
2159
  e.column += n, e.offset += n, e._bufferIndex += n;
2161
2160
  }
2162
- const il = {
2161
+ const tl = {
2163
2162
  name: "autolink",
2164
- tokenize: ll
2163
+ tokenize: rl
2165
2164
  };
2166
- function ll(e, n, t) {
2165
+ function rl(e, n, t) {
2167
2166
  let r = 0;
2168
2167
  return i;
2169
2168
  function i(p) {
@@ -2179,10 +2178,10 @@ function ll(e, n, t) {
2179
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));
2180
2179
  }
2181
2180
  function u(p) {
2182
- 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);
2183
2182
  }
2184
2183
  function c(p) {
2185
- 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);
2186
2185
  }
2187
2186
  function s(p) {
2188
2187
  return ne(p) ? f(p) : t(p);
@@ -2200,9 +2199,9 @@ function ll(e, n, t) {
2200
2199
  }
2201
2200
  const Ge = {
2202
2201
  partial: !0,
2203
- tokenize: ol
2202
+ tokenize: il
2204
2203
  };
2205
- function ol(e, n, t) {
2204
+ function il(e, n, t) {
2206
2205
  return r;
2207
2206
  function r(l) {
2208
2207
  return D(l) ? M(e, i, "linePrefix")(l) : i(l);
@@ -2211,15 +2210,15 @@ function ol(e, n, t) {
2211
2210
  return l === null || P(l) ? n(l) : t(l);
2212
2211
  }
2213
2212
  }
2214
- const Xt = {
2213
+ const Qt = {
2215
2214
  continuation: {
2216
- tokenize: ul
2215
+ tokenize: ol
2217
2216
  },
2218
- exit: sl,
2217
+ exit: al,
2219
2218
  name: "blockQuote",
2220
- tokenize: al
2219
+ tokenize: ll
2221
2220
  };
2222
- function al(e, n, t) {
2221
+ function ll(e, n, t) {
2223
2222
  const r = this;
2224
2223
  return i;
2225
2224
  function i(o) {
@@ -2235,37 +2234,37 @@ function al(e, n, t) {
2235
2234
  return D(o) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(o), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), n) : (e.exit("blockQuotePrefix"), n(o));
2236
2235
  }
2237
2236
  }
2238
- function ul(e, n, t) {
2237
+ function ol(e, n, t) {
2239
2238
  const r = this;
2240
2239
  return i;
2241
2240
  function i(o) {
2242
2241
  return D(o) ? M(e, l, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(o) : l(o);
2243
2242
  }
2244
2243
  function l(o) {
2245
- return e.attempt(Xt, n, t)(o);
2244
+ return e.attempt(Qt, n, t)(o);
2246
2245
  }
2247
2246
  }
2248
- function sl(e) {
2247
+ function al(e) {
2249
2248
  e.exit("blockQuote");
2250
2249
  }
2251
- const Qt = {
2250
+ const Gt = {
2252
2251
  name: "characterEscape",
2253
- tokenize: cl
2252
+ tokenize: ul
2254
2253
  };
2255
- function cl(e, n, t) {
2254
+ function ul(e, n, t) {
2256
2255
  return r;
2257
2256
  function r(l) {
2258
2257
  return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(l), e.exit("escapeMarker"), i;
2259
2258
  }
2260
2259
  function i(l) {
2261
- 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);
2262
2261
  }
2263
2262
  }
2264
- const Gt = {
2263
+ const Kt = {
2265
2264
  name: "characterReference",
2266
- tokenize: pl
2265
+ tokenize: sl
2267
2266
  };
2268
- function pl(e, n, t) {
2267
+ function sl(e, n, t) {
2269
2268
  const r = this;
2270
2269
  let i = 0, l, o;
2271
2270
  return a;
@@ -2276,25 +2275,25 @@ function pl(e, n, t) {
2276
2275
  return f === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(f), e.exit("characterReferenceMarkerNumeric"), c) : (e.enter("characterReferenceValue"), l = 31, o = ne, s(f));
2277
2276
  }
2278
2277
  function c(f) {
2279
- 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));
2280
2279
  }
2281
2280
  function s(f) {
2282
2281
  if (f === 59 && i) {
2283
2282
  const d = e.exit("characterReferenceValue");
2284
- 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);
2285
2284
  }
2286
2285
  return o(f) && i++ < l ? (e.consume(f), s) : t(f);
2287
2286
  }
2288
2287
  }
2289
- const ut = {
2288
+ const st = {
2290
2289
  partial: !0,
2291
- tokenize: hl
2292
- }, st = {
2290
+ tokenize: pl
2291
+ }, ct = {
2293
2292
  concrete: !0,
2294
2293
  name: "codeFenced",
2295
- tokenize: fl
2294
+ tokenize: cl
2296
2295
  };
2297
- function fl(e, n, t) {
2296
+ function cl(e, n, t) {
2298
2297
  const r = this, i = {
2299
2298
  partial: !0,
2300
2299
  tokenize: U
@@ -2312,7 +2311,7 @@ function fl(e, n, t) {
2312
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));
2313
2312
  }
2314
2313
  function f(x) {
2315
- 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", {
2316
2315
  contentType: "string"
2317
2316
  }), d(x));
2318
2317
  }
@@ -2337,10 +2336,10 @@ function fl(e, n, t) {
2337
2336
  return l > 0 && D(x) ? M(e, L, "linePrefix", l + 1)(x) : L(x);
2338
2337
  }
2339
2338
  function L(x) {
2340
- 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));
2341
2340
  }
2342
- function C(x) {
2343
- 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);
2344
2343
  }
2345
2344
  function j(x) {
2346
2345
  return e.exit("codeFenced"), n(x);
@@ -2352,9 +2351,9 @@ function fl(e, n, t) {
2352
2351
  return x.enter("lineEnding"), x.consume(v), x.exit("lineEnding"), I;
2353
2352
  }
2354
2353
  function I(v) {
2355
- 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);
2356
2355
  }
2357
- function E(v) {
2356
+ function C(v) {
2358
2357
  return v === a ? (x.enter("codeFencedFenceSequence"), H(v)) : V(v);
2359
2358
  }
2360
2359
  function H(v) {
@@ -2365,7 +2364,7 @@ function fl(e, n, t) {
2365
2364
  }
2366
2365
  }
2367
2366
  }
2368
- function hl(e, n, t) {
2367
+ function pl(e, n, t) {
2369
2368
  const r = this;
2370
2369
  return i;
2371
2370
  function i(o) {
@@ -2375,14 +2374,14 @@ function hl(e, n, t) {
2375
2374
  return r.parser.lazy[r.now().line] ? t(o) : n(o);
2376
2375
  }
2377
2376
  }
2378
- const nn = {
2377
+ const tn = {
2379
2378
  name: "codeIndented",
2380
- tokenize: dl
2381
- }, ml = {
2379
+ tokenize: hl
2380
+ }, fl = {
2382
2381
  partial: !0,
2383
- tokenize: gl
2382
+ tokenize: ml
2384
2383
  };
2385
- function dl(e, n, t) {
2384
+ function hl(e, n, t) {
2386
2385
  const r = this;
2387
2386
  return i;
2388
2387
  function i(c) {
@@ -2393,7 +2392,7 @@ function dl(e, n, t) {
2393
2392
  return s && s[1].type === "linePrefix" && s[2].sliceSerialize(s[1], !0).length >= 4 ? o(c) : t(c);
2394
2393
  }
2395
2394
  function o(c) {
2396
- 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));
2397
2396
  }
2398
2397
  function a(c) {
2399
2398
  return c === null || P(c) ? (e.exit("codeFlowValue"), o(c)) : (e.consume(c), a);
@@ -2402,7 +2401,7 @@ function dl(e, n, t) {
2402
2401
  return e.exit("codeIndented"), n(c);
2403
2402
  }
2404
2403
  }
2405
- function gl(e, n, t) {
2404
+ function ml(e, n, t) {
2406
2405
  const r = this;
2407
2406
  return i;
2408
2407
  function i(o) {
@@ -2413,13 +2412,13 @@ function gl(e, n, t) {
2413
2412
  return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? n(o) : P(o) ? i(o) : t(o);
2414
2413
  }
2415
2414
  }
2416
- const yl = {
2415
+ const dl = {
2417
2416
  name: "codeText",
2418
- previous: kl,
2419
- resolve: xl,
2420
- tokenize: bl
2417
+ previous: yl,
2418
+ resolve: gl,
2419
+ tokenize: xl
2421
2420
  };
2422
- function xl(e) {
2421
+ function gl(e) {
2423
2422
  let n = e.length - 4, t = 3, r, i;
2424
2423
  if ((e[t][1].type === "lineEnding" || e[t][1].type === "space") && (e[n][1].type === "lineEnding" || e[n][1].type === "space")) {
2425
2424
  for (r = t; ++r < n; )
@@ -2432,10 +2431,10 @@ function xl(e) {
2432
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);
2433
2432
  return e;
2434
2433
  }
2435
- function kl(e) {
2434
+ function yl(e) {
2436
2435
  return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
2437
2436
  }
2438
- function bl(e, n, t) {
2437
+ function xl(e, n, t) {
2439
2438
  let r = 0, i, l;
2440
2439
  return o;
2441
2440
  function o(f) {
@@ -2454,7 +2453,7 @@ function bl(e, n, t) {
2454
2453
  return f === 96 ? (e.consume(f), i++, s) : i === r ? (e.exit("codeTextSequence"), e.exit("codeText"), n(f)) : (l.type = "codeTextData", c(f));
2455
2454
  }
2456
2455
  }
2457
- class wl {
2456
+ class kl {
2458
2457
  /**
2459
2458
  * @param {ReadonlyArray<T> | null | undefined} [initial]
2460
2459
  * Initial items (optional).
@@ -2626,10 +2625,10 @@ function ve(e, n) {
2626
2625
  for (; t < n.length; )
2627
2626
  e.push(...n.slice(t, t + 1e4)), t += 1e4;
2628
2627
  }
2629
- function Kt(e) {
2628
+ function Jt(e) {
2630
2629
  const n = {};
2631
2630
  let t = -1, r, i, l, o, a, u, c;
2632
- const s = new wl(e);
2631
+ const s = new kl(e);
2633
2632
  for (; ++t < s.length; ) {
2634
2633
  for (; t in n; )
2635
2634
  t = n[t];
@@ -2637,7 +2636,7 @@ function Kt(e) {
2637
2636
  for (; ++l < u.length && u[l][1].type !== "content"; )
2638
2637
  u[l][1].type === "chunkText" && (u[l][1]._isInFirstContentOfListItem = !0, l++);
2639
2638
  if (r[0] === "enter")
2640
- 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);
2641
2640
  else if (r[1]._container) {
2642
2641
  for (l = t, i = void 0; l--; )
2643
2642
  if (o = s.get(l), o[1].type === "lineEnding" || o[1].type === "lineEndingBlank")
@@ -2650,7 +2649,7 @@ function Kt(e) {
2650
2649
  }
2651
2650
  return se(e, 0, Number.POSITIVE_INFINITY, s.slice(0)), !c;
2652
2651
  }
2653
- function Sl(e, n) {
2652
+ function bl(e, n) {
2654
2653
  const t = e.get(n)[1], r = e.get(n)[2];
2655
2654
  let i = n - 1;
2656
2655
  const l = [];
@@ -2675,17 +2674,17 @@ function Sl(e, n) {
2675
2674
  c[y + u[d][0]] = y + u[d][1], y += u[d][1] - u[d][0] - 1;
2676
2675
  return c;
2677
2676
  }
2678
- const Cl = {
2679
- resolve: Il,
2680
- tokenize: Tl
2681
- }, El = {
2677
+ const wl = {
2678
+ resolve: El,
2679
+ tokenize: Cl
2680
+ }, Sl = {
2682
2681
  partial: !0,
2683
- tokenize: Pl
2682
+ tokenize: Il
2684
2683
  };
2685
- function Il(e) {
2686
- return Kt(e), e;
2684
+ function El(e) {
2685
+ return Jt(e), e;
2687
2686
  }
2688
- function Tl(e, n) {
2687
+ function Cl(e, n) {
2689
2688
  let t;
2690
2689
  return r;
2691
2690
  function r(a) {
@@ -2694,7 +2693,7 @@ function Tl(e, n) {
2694
2693
  }), i(a);
2695
2694
  }
2696
2695
  function i(a) {
2697
- 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);
2698
2697
  }
2699
2698
  function l(a) {
2700
2699
  return e.exit("chunkContent"), e.exit("content"), n(a);
@@ -2706,7 +2705,7 @@ function Tl(e, n) {
2706
2705
  }), t = t.next, i;
2707
2706
  }
2708
2707
  }
2709
- function Pl(e, n, t) {
2708
+ function Il(e, n, t) {
2710
2709
  const r = this;
2711
2710
  return i;
2712
2711
  function i(o) {
@@ -2719,12 +2718,12 @@ function Pl(e, n, t) {
2719
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);
2720
2719
  }
2721
2720
  }
2722
- function Jt(e, n, t, r, i, l, o, a, u) {
2721
+ function Zt(e, n, t, r, i, l, o, a, u) {
2723
2722
  const c = u || Number.POSITIVE_INFINITY;
2724
2723
  let s = 0;
2725
2724
  return f;
2726
2725
  function f(w) {
2727
- 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", {
2728
2727
  contentType: "string"
2729
2728
  }), b(w));
2730
2729
  }
@@ -2740,13 +2739,13 @@ function Jt(e, n, t, r, i, l, o, a, u) {
2740
2739
  return w === 60 || w === 62 || w === 92 ? (e.consume(w), p) : p(w);
2741
2740
  }
2742
2741
  function b(w) {
2743
- 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);
2744
2743
  }
2745
2744
  function T(w) {
2746
2745
  return w === 40 || w === 41 || w === 92 ? (e.consume(w), b) : b(w);
2747
2746
  }
2748
2747
  }
2749
- function Zt(e, n, t, r, i, l) {
2748
+ function er(e, n, t, r, i, l) {
2750
2749
  const o = this;
2751
2750
  let a = 0, u;
2752
2751
  return c;
@@ -2770,7 +2769,7 @@ function Zt(e, n, t, r, i, l) {
2770
2769
  return p === 91 || p === 92 || p === 93 ? (e.consume(p), a++, f) : f(p);
2771
2770
  }
2772
2771
  }
2773
- function er(e, n, t, r, i, l) {
2772
+ function nr(e, n, t, r, i, l) {
2774
2773
  let o;
2775
2774
  return a;
2776
2775
  function a(d) {
@@ -2798,14 +2797,14 @@ function _e(e, n) {
2798
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);
2799
2798
  }
2800
2799
  }
2801
- const Al = {
2800
+ const Tl = {
2802
2801
  name: "definition",
2803
- tokenize: Ll
2804
- }, zl = {
2802
+ tokenize: Al
2803
+ }, Pl = {
2805
2804
  partial: !0,
2806
- tokenize: Ol
2805
+ tokenize: zl
2807
2806
  };
2808
- function Ll(e, n, t) {
2807
+ function Al(e, n, t) {
2809
2808
  const r = this;
2810
2809
  let i;
2811
2810
  return l;
@@ -2813,7 +2812,7 @@ function Ll(e, n, t) {
2813
2812
  return e.enter("definition"), o(p);
2814
2813
  }
2815
2814
  function o(p) {
2816
- return Zt.call(
2815
+ return er.call(
2817
2816
  r,
2818
2817
  e,
2819
2818
  a,
@@ -2831,7 +2830,7 @@ function Ll(e, n, t) {
2831
2830
  return K(p) ? _e(e, c)(p) : c(p);
2832
2831
  }
2833
2832
  function c(p) {
2834
- return Jt(
2833
+ return Zt(
2835
2834
  e,
2836
2835
  s,
2837
2836
  // Note: we don’t need to reset the way `markdown-rs` does.
@@ -2844,7 +2843,7 @@ function Ll(e, n, t) {
2844
2843
  )(p);
2845
2844
  }
2846
2845
  function s(p) {
2847
- return e.attempt(zl, f, f)(p);
2846
+ return e.attempt(Pl, f, f)(p);
2848
2847
  }
2849
2848
  function f(p) {
2850
2849
  return D(p) ? M(e, d, "whitespace")(p) : d(p);
@@ -2853,13 +2852,13 @@ function Ll(e, n, t) {
2853
2852
  return p === null || P(p) ? (e.exit("definition"), r.parser.defined.push(i), n(p)) : t(p);
2854
2853
  }
2855
2854
  }
2856
- function Ol(e, n, t) {
2855
+ function zl(e, n, t) {
2857
2856
  return r;
2858
2857
  function r(a) {
2859
2858
  return K(a) ? _e(e, i)(a) : t(a);
2860
2859
  }
2861
2860
  function i(a) {
2862
- return er(e, l, t, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
2861
+ return nr(e, l, t, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
2863
2862
  }
2864
2863
  function l(a) {
2865
2864
  return D(a) ? M(e, o, "whitespace")(a) : o(a);
@@ -2868,11 +2867,11 @@ function Ol(e, n, t) {
2868
2867
  return a === null || P(a) ? n(a) : t(a);
2869
2868
  }
2870
2869
  }
2871
- const vl = {
2870
+ const Ll = {
2872
2871
  name: "hardBreakEscape",
2873
- tokenize: Dl
2872
+ tokenize: Ol
2874
2873
  };
2875
- function Dl(e, n, t) {
2874
+ function Ol(e, n, t) {
2876
2875
  return r;
2877
2876
  function r(l) {
2878
2877
  return e.enter("hardBreakEscape"), e.consume(l), i;
@@ -2881,12 +2880,12 @@ function Dl(e, n, t) {
2881
2880
  return P(l) ? (e.exit("hardBreakEscape"), n(l)) : t(l);
2882
2881
  }
2883
2882
  }
2884
- const Nl = {
2883
+ const vl = {
2885
2884
  name: "headingAtx",
2886
- resolve: _l,
2887
- tokenize: Fl
2885
+ resolve: Dl,
2886
+ tokenize: Nl
2888
2887
  };
2889
- function _l(e, n) {
2888
+ function Dl(e, n) {
2890
2889
  let t = e.length - 2, r = 3, i, l;
2891
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 = {
2892
2891
  type: "atxHeadingText",
@@ -2899,7 +2898,7 @@ function _l(e, n) {
2899
2898
  contentType: "text"
2900
2899
  }, se(e, r, t - r + 1, [["enter", i, n], ["enter", l, n], ["exit", l, n], ["exit", i, n]])), e;
2901
2900
  }
2902
- function Fl(e, n, t) {
2901
+ function Nl(e, n, t) {
2903
2902
  let r = 0;
2904
2903
  return i;
2905
2904
  function i(s) {
@@ -2921,7 +2920,7 @@ function Fl(e, n, t) {
2921
2920
  return s === null || s === 35 || K(s) ? (e.exit("atxHeadingText"), a(s)) : (e.consume(s), c);
2922
2921
  }
2923
2922
  }
2924
- const Rl = [
2923
+ const _l = [
2925
2924
  "address",
2926
2925
  "article",
2927
2926
  "aside",
@@ -2984,25 +2983,25 @@ const Rl = [
2984
2983
  "tr",
2985
2984
  "track",
2986
2985
  "ul"
2987
- ], ct = ["pre", "script", "style", "textarea"], Ml = {
2986
+ ], pt = ["pre", "script", "style", "textarea"], Fl = {
2988
2987
  concrete: !0,
2989
2988
  name: "htmlFlow",
2990
- resolveTo: Hl,
2991
- tokenize: Ul
2992
- }, Bl = {
2989
+ resolveTo: Bl,
2990
+ tokenize: jl
2991
+ }, Rl = {
2993
2992
  partial: !0,
2994
- tokenize: ql
2995
- }, jl = {
2993
+ tokenize: Ul
2994
+ }, Ml = {
2996
2995
  partial: !0,
2997
- tokenize: Vl
2996
+ tokenize: Hl
2998
2997
  };
2999
- function Hl(e) {
2998
+ function Bl(e) {
3000
2999
  let n = e.length;
3001
3000
  for (; n-- && !(e[n][0] === "enter" && e[n][1].type === "htmlFlow"); )
3002
3001
  ;
3003
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;
3004
3003
  }
3005
- function Ul(e, n, t) {
3004
+ function jl(e, n, t) {
3006
3005
  const r = this;
3007
3006
  let i, l, o, a, u;
3008
3007
  return c;
@@ -3023,7 +3022,7 @@ function Ul(e, n, t) {
3023
3022
  }
3024
3023
  function y(m) {
3025
3024
  const le = "CDATA[";
3026
- 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);
3027
3026
  }
3028
3027
  function b(m) {
3029
3028
  return ue(m) ? (e.consume(m), o = String.fromCharCode(m), T) : t(m);
@@ -3031,24 +3030,24 @@ function Ul(e, n, t) {
3031
3030
  function T(m) {
3032
3031
  if (m === null || m === 47 || m === 62 || K(m)) {
3033
3032
  const le = m === 47, ye = o.toLowerCase();
3034
- 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));
3035
3034
  }
3036
3035
  return m === 45 || ne(m) ? (e.consume(m), o += String.fromCharCode(m), T) : t(m);
3037
3036
  }
3038
3037
  function w(m) {
3039
- 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);
3040
3039
  }
3041
3040
  function L(m) {
3042
3041
  return D(m) ? (e.consume(m), L) : B(m);
3043
3042
  }
3044
- function C(m) {
3045
- 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);
3046
3045
  }
3047
3046
  function j(m) {
3048
3047
  return m === 45 || m === 46 || m === 58 || m === 95 || ne(m) ? (e.consume(m), j) : U(m);
3049
3048
  }
3050
3049
  function U(m) {
3051
- 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);
3052
3051
  }
3053
3052
  function x(m) {
3054
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);
@@ -3060,44 +3059,44 @@ function Ul(e, n, t) {
3060
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);
3061
3060
  }
3062
3061
  function _(m) {
3063
- return m === 47 || m === 62 || D(m) ? C(m) : t(m);
3062
+ return m === 47 || m === 62 || D(m) ? E(m) : t(m);
3064
3063
  }
3065
3064
  function B(m) {
3066
3065
  return m === 62 ? (e.consume(m), I) : t(m);
3067
3066
  }
3068
3067
  function I(m) {
3069
- 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);
3070
3069
  }
3071
- function E(m) {
3072
- 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);
3073
3072
  }
3074
3073
  function H(m) {
3075
- return e.check(jl, q, pe)(m);
3074
+ return e.check(Ml, q, pe)(m);
3076
3075
  }
3077
3076
  function q(m) {
3078
3077
  return e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), v;
3079
3078
  }
3080
3079
  function v(m) {
3081
- 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));
3082
3081
  }
3083
3082
  function X(m) {
3084
- return m === 45 ? (e.consume(m), h) : E(m);
3083
+ return m === 45 ? (e.consume(m), h) : C(m);
3085
3084
  }
3086
3085
  function W(m) {
3087
- return m === 47 ? (e.consume(m), o = "", re) : E(m);
3086
+ return m === 47 ? (e.consume(m), o = "", re) : C(m);
3088
3087
  }
3089
3088
  function re(m) {
3090
3089
  if (m === 62) {
3091
3090
  const le = o.toLowerCase();
3092
- return ct.includes(le) ? (e.consume(m), ie) : E(m);
3091
+ return pt.includes(le) ? (e.consume(m), ie) : C(m);
3093
3092
  }
3094
- 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);
3095
3094
  }
3096
3095
  function ce(m) {
3097
- return m === 93 ? (e.consume(m), h) : E(m);
3096
+ return m === 93 ? (e.consume(m), h) : C(m);
3098
3097
  }
3099
3098
  function h(m) {
3100
- 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);
3101
3100
  }
3102
3101
  function ie(m) {
3103
3102
  return m === null || P(m) ? (e.exit("htmlFlowData"), pe(m)) : (e.consume(m), ie);
@@ -3106,7 +3105,7 @@ function Ul(e, n, t) {
3106
3105
  return e.exit("htmlFlow"), n(m);
3107
3106
  }
3108
3107
  }
3109
- function Vl(e, n, t) {
3108
+ function Hl(e, n, t) {
3110
3109
  const r = this;
3111
3110
  return i;
3112
3111
  function i(o) {
@@ -3116,17 +3115,17 @@ function Vl(e, n, t) {
3116
3115
  return r.parser.lazy[r.now().line] ? t(o) : n(o);
3117
3116
  }
3118
3117
  }
3119
- function ql(e, n, t) {
3118
+ function Ul(e, n, t) {
3120
3119
  return r;
3121
3120
  function r(i) {
3122
3121
  return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(Ge, n, t);
3123
3122
  }
3124
3123
  }
3125
- const $l = {
3124
+ const Vl = {
3126
3125
  name: "htmlText",
3127
- tokenize: Wl
3126
+ tokenize: ql
3128
3127
  };
3129
- function Wl(e, n, t) {
3128
+ function ql(e, n, t) {
3130
3129
  const r = this;
3131
3130
  let i, l, o;
3132
3131
  return a;
@@ -3134,7 +3133,7 @@ function Wl(e, n, t) {
3134
3133
  return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(h), u;
3135
3134
  }
3136
3135
  function u(h) {
3137
- 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);
3138
3137
  }
3139
3138
  function c(h) {
3140
3139
  return h === 45 ? (e.consume(h), s) : h === 91 ? (e.consume(h), l = 0, y) : ue(h) ? (e.consume(h), L) : t(h);
@@ -3167,11 +3166,11 @@ function Wl(e, n, t) {
3167
3166
  function L(h) {
3168
3167
  return h === null || h === 62 ? X(h) : P(h) ? (o = L, W(h)) : (e.consume(h), L);
3169
3168
  }
3170
- function C(h) {
3171
- 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);
3172
3171
  }
3173
3172
  function j(h) {
3174
- return h === 62 ? X(h) : C(h);
3173
+ return h === 62 ? X(h) : E(h);
3175
3174
  }
3176
3175
  function U(h) {
3177
3176
  return ue(h) ? (e.consume(h), x) : t(h);
@@ -3192,10 +3191,10 @@ function Wl(e, n, t) {
3192
3191
  return h === 45 || h === 46 || h === 58 || h === 95 || ne(h) ? (e.consume(h), B) : I(h);
3193
3192
  }
3194
3193
  function I(h) {
3195
- 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);
3196
3195
  }
3197
- function E(h) {
3198
- 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);
3199
3198
  }
3200
3199
  function H(h) {
3201
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);
@@ -3219,19 +3218,19 @@ function Wl(e, n, t) {
3219
3218
  return e.enter("htmlTextData"), o(h);
3220
3219
  }
3221
3220
  }
3222
- const On = {
3221
+ const vn = {
3223
3222
  name: "labelEnd",
3224
- resolveAll: Gl,
3225
- resolveTo: Kl,
3223
+ resolveAll: Xl,
3224
+ resolveTo: Ql,
3225
+ tokenize: Gl
3226
+ }, $l = {
3227
+ tokenize: Kl
3228
+ }, Wl = {
3226
3229
  tokenize: Jl
3227
3230
  }, Yl = {
3228
3231
  tokenize: Zl
3229
- }, Xl = {
3230
- tokenize: eo
3231
- }, Ql = {
3232
- tokenize: no
3233
3232
  };
3234
- function Gl(e) {
3233
+ function Xl(e) {
3235
3234
  let n = -1;
3236
3235
  const t = [];
3237
3236
  for (; ++n < e.length; ) {
@@ -3243,7 +3242,7 @@ function Gl(e) {
3243
3242
  }
3244
3243
  return e.length !== t.length && se(e, 0, e.length, t), e;
3245
3244
  }
3246
- function Kl(e, n) {
3245
+ function Ql(e, n) {
3247
3246
  let t = e.length, r = 0, i, l, o, a;
3248
3247
  for (; t--; )
3249
3248
  if (i = e[t][1], l) {
@@ -3281,9 +3280,9 @@ function Kl(e, n) {
3281
3280
  ...e[o - 2][1].start
3282
3281
  }
3283
3282
  };
3284
- 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;
3285
3284
  }
3286
- function Jl(e, n, t) {
3285
+ function Gl(e, n, t) {
3287
3286
  const r = this;
3288
3287
  let i = r.events.length, l, o;
3289
3288
  for (; i--; )
@@ -3299,10 +3298,10 @@ function Jl(e, n, t) {
3299
3298
  }))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(d), e.exit("labelMarker"), e.exit("labelEnd"), u) : t(d);
3300
3299
  }
3301
3300
  function u(d) {
3302
- 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);
3303
3302
  }
3304
3303
  function c(d) {
3305
- return e.attempt(Ql, s, f)(d);
3304
+ return e.attempt(Yl, s, f)(d);
3306
3305
  }
3307
3306
  function s(d) {
3308
3307
  return n(d);
@@ -3311,7 +3310,7 @@ function Jl(e, n, t) {
3311
3310
  return l._balanced = !0, t(d);
3312
3311
  }
3313
3312
  }
3314
- function Zl(e, n, t) {
3313
+ function Kl(e, n, t) {
3315
3314
  return r;
3316
3315
  function r(f) {
3317
3316
  return e.enter("resource"), e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), i;
@@ -3320,7 +3319,7 @@ function Zl(e, n, t) {
3320
3319
  return K(f) ? _e(e, l)(f) : l(f);
3321
3320
  }
3322
3321
  function l(f) {
3323
- 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);
3324
3323
  }
3325
3324
  function o(f) {
3326
3325
  return K(f) ? _e(e, u)(f) : s(f);
@@ -3329,7 +3328,7 @@ function Zl(e, n, t) {
3329
3328
  return t(f);
3330
3329
  }
3331
3330
  function u(f) {
3332
- 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);
3333
3332
  }
3334
3333
  function c(f) {
3335
3334
  return K(f) ? _e(e, s)(f) : s(f);
@@ -3338,11 +3337,11 @@ function Zl(e, n, t) {
3338
3337
  return f === 41 ? (e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), e.exit("resource"), n) : t(f);
3339
3338
  }
3340
3339
  }
3341
- function eo(e, n, t) {
3340
+ function Jl(e, n, t) {
3342
3341
  const r = this;
3343
3342
  return i;
3344
3343
  function i(a) {
3345
- return Zt.call(r, e, l, o, "reference", "referenceMarker", "referenceString")(a);
3344
+ return er.call(r, e, l, o, "reference", "referenceMarker", "referenceString")(a);
3346
3345
  }
3347
3346
  function l(a) {
3348
3347
  return r.parser.defined.includes(Te(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? n(a) : t(a);
@@ -3351,7 +3350,7 @@ function eo(e, n, t) {
3351
3350
  return t(a);
3352
3351
  }
3353
3352
  }
3354
- function no(e, n, t) {
3353
+ function Zl(e, n, t) {
3355
3354
  return r;
3356
3355
  function r(l) {
3357
3356
  return e.enter("reference"), e.enter("referenceMarker"), e.consume(l), e.exit("referenceMarker"), i;
@@ -3360,12 +3359,12 @@ function no(e, n, t) {
3360
3359
  return l === 93 ? (e.enter("referenceMarker"), e.consume(l), e.exit("referenceMarker"), e.exit("reference"), n) : t(l);
3361
3360
  }
3362
3361
  }
3363
- const to = {
3362
+ const eo = {
3364
3363
  name: "labelStartImage",
3365
- resolveAll: On.resolveAll,
3366
- tokenize: ro
3364
+ resolveAll: vn.resolveAll,
3365
+ tokenize: no
3367
3366
  };
3368
- function ro(e, n, t) {
3367
+ function no(e, n, t) {
3369
3368
  const r = this;
3370
3369
  return i;
3371
3370
  function i(a) {
@@ -3378,12 +3377,12 @@ function ro(e, n, t) {
3378
3377
  return a === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? t(a) : n(a);
3379
3378
  }
3380
3379
  }
3381
- const io = {
3380
+ const to = {
3382
3381
  name: "labelStartLink",
3383
- resolveAll: On.resolveAll,
3384
- tokenize: lo
3382
+ resolveAll: vn.resolveAll,
3383
+ tokenize: ro
3385
3384
  };
3386
- function lo(e, n, t) {
3385
+ function ro(e, n, t) {
3387
3386
  const r = this;
3388
3387
  return i;
3389
3388
  function i(o) {
@@ -3393,11 +3392,11 @@ function lo(e, n, t) {
3393
3392
  return o === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? t(o) : n(o);
3394
3393
  }
3395
3394
  }
3396
- const tn = {
3395
+ const rn = {
3397
3396
  name: "lineEnding",
3398
- tokenize: oo
3397
+ tokenize: io
3399
3398
  };
3400
- function oo(e, n) {
3399
+ function io(e, n) {
3401
3400
  return t;
3402
3401
  function t(r) {
3403
3402
  return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), M(e, n, "linePrefix");
@@ -3405,9 +3404,9 @@ function oo(e, n) {
3405
3404
  }
3406
3405
  const qe = {
3407
3406
  name: "thematicBreak",
3408
- tokenize: ao
3407
+ tokenize: lo
3409
3408
  };
3410
- function ao(e, n, t) {
3409
+ function lo(e, n, t) {
3411
3410
  let r = 0, i;
3412
3411
  return l;
3413
3412
  function l(c) {
@@ -3425,25 +3424,25 @@ function ao(e, n, t) {
3425
3424
  }
3426
3425
  const G = {
3427
3426
  continuation: {
3428
- tokenize: po
3427
+ tokenize: so
3429
3428
  },
3430
- exit: ho,
3429
+ exit: po,
3431
3430
  name: "list",
3432
- tokenize: co
3433
- }, uo = {
3434
- partial: !0,
3435
- tokenize: mo
3436
- }, so = {
3431
+ tokenize: uo
3432
+ }, oo = {
3437
3433
  partial: !0,
3438
3434
  tokenize: fo
3435
+ }, ao = {
3436
+ partial: !0,
3437
+ tokenize: co
3439
3438
  };
3440
- function co(e, n, t) {
3439
+ function uo(e, n, t) {
3441
3440
  const r = this, i = r.events[r.events.length - 1];
3442
3441
  let l = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, o = 0;
3443
3442
  return a;
3444
3443
  function a(p) {
3445
3444
  const y = r.containerState.type || (p === 42 || p === 43 || p === 45 ? "listUnordered" : "listOrdered");
3446
- 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)) {
3447
3446
  if (r.containerState.type || (r.containerState.type = y, e.enter(y, {
3448
3447
  _container: !0
3449
3448
  })), y === "listUnordered")
@@ -3454,14 +3453,14 @@ function co(e, n, t) {
3454
3453
  return t(p);
3455
3454
  }
3456
3455
  function u(p) {
3457
- 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);
3458
3457
  }
3459
3458
  function c(p) {
3460
3459
  return e.enter("listItemMarker"), e.consume(p), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || p, e.check(
3461
3460
  Ge,
3462
3461
  // Can’t be empty when interrupting.
3463
3462
  r.interrupt ? t : s,
3464
- e.attempt(uo, d, f)
3463
+ e.attempt(oo, d, f)
3465
3464
  );
3466
3465
  }
3467
3466
  function s(p) {
@@ -3474,20 +3473,20 @@ function co(e, n, t) {
3474
3473
  return r.containerState.size = l + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, n(p);
3475
3474
  }
3476
3475
  }
3477
- function po(e, n, t) {
3476
+ function so(e, n, t) {
3478
3477
  const r = this;
3479
3478
  return r.containerState._closeFlow = void 0, e.check(Ge, i, l);
3480
3479
  function i(a) {
3481
3480
  return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, M(e, n, "listItemIndent", r.containerState.size + 1)(a);
3482
3481
  }
3483
3482
  function l(a) {
3484
- 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));
3485
3484
  }
3486
3485
  function o(a) {
3487
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);
3488
3487
  }
3489
3488
  }
3490
- function fo(e, n, t) {
3489
+ function co(e, n, t) {
3491
3490
  const r = this;
3492
3491
  return M(e, i, "listItemIndent", r.containerState.size + 1);
3493
3492
  function i(l) {
@@ -3495,10 +3494,10 @@ function fo(e, n, t) {
3495
3494
  return o && o[1].type === "listItemIndent" && o[2].sliceSerialize(o[1], !0).length === r.containerState.size ? n(l) : t(l);
3496
3495
  }
3497
3496
  }
3498
- function ho(e) {
3497
+ function po(e) {
3499
3498
  e.exit(this.containerState.type);
3500
3499
  }
3501
- function mo(e, n, t) {
3500
+ function fo(e, n, t) {
3502
3501
  const r = this;
3503
3502
  return M(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
3504
3503
  function i(l) {
@@ -3506,12 +3505,12 @@ function mo(e, n, t) {
3506
3505
  return !D(l) && o && o[1].type === "listItemPrefixWhitespace" ? n(l) : t(l);
3507
3506
  }
3508
3507
  }
3509
- const pt = {
3508
+ const ft = {
3510
3509
  name: "setextUnderline",
3511
- resolveTo: go,
3512
- tokenize: yo
3510
+ resolveTo: ho,
3511
+ tokenize: mo
3513
3512
  };
3514
- function go(e, n) {
3513
+ function ho(e, n) {
3515
3514
  let t = e.length, r, i, l;
3516
3515
  for (; t--; )
3517
3516
  if (e[t][0] === "enter") {
@@ -3535,7 +3534,7 @@ function go(e, n) {
3535
3534
  ...e[l][1].end
3536
3535
  }) : e[r][1] = o, e.push(["exit", o, n]), e;
3537
3536
  }
3538
- function yo(e, n, t) {
3537
+ function mo(e, n, t) {
3539
3538
  const r = this;
3540
3539
  let i;
3541
3540
  return l;
@@ -3558,16 +3557,16 @@ function yo(e, n, t) {
3558
3557
  return c === null || P(c) ? (e.exit("setextHeadingLine"), n(c)) : t(c);
3559
3558
  }
3560
3559
  }
3561
- const xo = {
3562
- tokenize: ko
3560
+ const go = {
3561
+ tokenize: yo
3563
3562
  };
3564
- function ko(e) {
3563
+ function yo(e) {
3565
3564
  const n = this, t = e.attempt(
3566
3565
  // Try to parse a blank line.
3567
3566
  Ge,
3568
3567
  r,
3569
3568
  // Try to parse initial flow (essentially, only code).
3570
- 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"))
3571
3570
  );
3572
3571
  return t;
3573
3572
  function r(l) {
@@ -3585,12 +3584,12 @@ function ko(e) {
3585
3584
  return e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), n.currentConstruct = void 0, t;
3586
3585
  }
3587
3586
  }
3588
- const bo = {
3589
- resolveAll: tr()
3590
- }, wo = nr("string"), So = nr("text");
3591
- function nr(e) {
3587
+ const xo = {
3588
+ resolveAll: rr()
3589
+ }, ko = tr("string"), bo = tr("text");
3590
+ function tr(e) {
3592
3591
  return {
3593
- resolveAll: tr(e === "text" ? Co : void 0),
3592
+ resolveAll: rr(e === "text" ? wo : void 0),
3594
3593
  tokenize: n
3595
3594
  };
3596
3595
  function n(t) {
@@ -3624,7 +3623,7 @@ function nr(e) {
3624
3623
  }
3625
3624
  }
3626
3625
  }
3627
- function tr(e) {
3626
+ function rr(e) {
3628
3627
  return n;
3629
3628
  function n(t, r) {
3630
3629
  let i = -1, l;
@@ -3633,7 +3632,7 @@ function tr(e) {
3633
3632
  return e ? e(t, r) : t;
3634
3633
  }
3635
3634
  }
3636
- function Co(e, n) {
3635
+ function wo(e, n) {
3637
3636
  let t = 0;
3638
3637
  for (; ++t <= e.length; )
3639
3638
  if ((t === e.length || e[t][1].type === "lineEnding") && e[t - 1][1].type === "data") {
@@ -3675,7 +3674,7 @@ function Co(e, n) {
3675
3674
  }
3676
3675
  return e;
3677
3676
  }
3678
- const Eo = {
3677
+ const So = {
3679
3678
  42: G,
3680
3679
  43: G,
3681
3680
  45: G,
@@ -3689,57 +3688,57 @@ const Eo = {
3689
3688
  55: G,
3690
3689
  56: G,
3691
3690
  57: G,
3692
- 62: Xt
3691
+ 62: Qt
3692
+ }, Eo = {
3693
+ 91: Tl
3694
+ }, Co = {
3695
+ [-2]: tn,
3696
+ [-1]: tn,
3697
+ 32: tn
3693
3698
  }, Io = {
3694
- 91: Al
3695
- }, To = {
3696
- [-2]: nn,
3697
- [-1]: nn,
3698
- 32: nn
3699
- }, Po = {
3700
- 35: Nl,
3699
+ 35: vl,
3701
3700
  42: qe,
3702
- 45: [pt, qe],
3703
- 60: Ml,
3704
- 61: pt,
3701
+ 45: [ft, qe],
3702
+ 60: Fl,
3703
+ 61: ft,
3705
3704
  95: qe,
3706
- 96: st,
3707
- 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
3708
3723
  }, Ao = {
3709
- 38: Gt,
3710
- 92: Qt
3724
+ null: [kn, xo]
3711
3725
  }, zo = {
3712
- [-5]: tn,
3713
- [-4]: tn,
3714
- [-3]: tn,
3715
- 33: to,
3716
- 38: Gt,
3717
- 42: xn,
3718
- 60: [il, $l],
3719
- 91: io,
3720
- 92: [vl, Qt],
3721
- 93: On,
3722
- 95: xn,
3723
- 96: yl
3724
- }, Lo = {
3725
- null: [xn, bo]
3726
- }, Oo = {
3727
3726
  null: [42, 95]
3728
- }, vo = {
3727
+ }, Lo = {
3729
3728
  null: []
3730
- }, Do = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3729
+ }, Oo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3731
3730
  __proto__: null,
3732
- attentionMarkers: Oo,
3733
- contentInitial: Io,
3734
- disable: vo,
3735
- document: Eo,
3736
- flow: Po,
3737
- flowInitial: To,
3738
- insideSpan: Lo,
3739
- string: Ao,
3740
- 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
3741
3740
  }, Symbol.toStringTag, { value: "Module" }));
3742
- function No(e, n, t) {
3741
+ function vo(e, n, t) {
3743
3742
  let r = {
3744
3743
  _bufferIndex: -1,
3745
3744
  _index: 0,
@@ -3753,7 +3752,7 @@ function No(e, n, t) {
3753
3752
  attempt: N(U),
3754
3753
  check: N(x),
3755
3754
  consume: L,
3756
- enter: C,
3755
+ enter: E,
3757
3756
  exit: j,
3758
3757
  interrupt: N(x, {
3759
3758
  interrupt: !0
@@ -3773,25 +3772,25 @@ function No(e, n, t) {
3773
3772
  let s = n.tokenize.call(c, u);
3774
3773
  return n.resolveAll && l.push(n), c;
3775
3774
  function f(I) {
3776
- 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);
3777
3776
  }
3778
- function d(I, E) {
3779
- return Fo(p(I), E);
3777
+ function d(I, C) {
3778
+ return No(p(I), C);
3780
3779
  }
3781
3780
  function p(I) {
3782
- return _o(o, I);
3781
+ return Do(o, I);
3783
3782
  }
3784
3783
  function y() {
3785
3784
  const {
3786
3785
  _bufferIndex: I,
3787
- _index: E,
3786
+ _index: C,
3788
3787
  line: H,
3789
3788
  column: q,
3790
3789
  offset: v
3791
3790
  } = r;
3792
3791
  return {
3793
3792
  _bufferIndex: I,
3794
- _index: E,
3793
+ _index: C,
3795
3794
  line: H,
3796
3795
  column: q,
3797
3796
  offset: v
@@ -3803,12 +3802,12 @@ function No(e, n, t) {
3803
3802
  function T() {
3804
3803
  let I;
3805
3804
  for (; r._index < o.length; ) {
3806
- const E = o[r._index];
3807
- if (typeof E == "string")
3808
- for (I = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === I && r._bufferIndex < E.length; )
3809
- 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));
3810
3809
  else
3811
- w(E);
3810
+ w(C);
3812
3811
  }
3813
3812
  }
3814
3813
  function w(I) {
@@ -3820,21 +3819,21 @@ function No(e, n, t) {
3820
3819
  /** @type {string} */
3821
3820
  o[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous = I;
3822
3821
  }
3823
- function C(I, E) {
3824
- const H = E || {};
3822
+ function E(I, C) {
3823
+ const H = C || {};
3825
3824
  return H.type = I, H.start = y(), c.events.push(["enter", H, c]), a.push(H), H;
3826
3825
  }
3827
3826
  function j(I) {
3828
- const E = a.pop();
3829
- 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;
3830
3829
  }
3831
- function U(I, E) {
3832
- V(I, E.from);
3830
+ function U(I, C) {
3831
+ V(I, C.from);
3833
3832
  }
3834
- function x(I, E) {
3835
- E.restore();
3833
+ function x(I, C) {
3834
+ C.restore();
3836
3835
  }
3837
- function N(I, E) {
3836
+ function N(I, C) {
3838
3837
  return H;
3839
3838
  function H(q, v, X) {
3840
3839
  let W, re, ce, h;
@@ -3870,7 +3869,7 @@ function No(e, n, t) {
3870
3869
  // If we do have fields, create an object w/ `context` as its
3871
3870
  // prototype.
3872
3871
  // This allows a “live binding”, which is needed for `interrupt`.
3873
- E ? Object.assign(Object.create(c), E) : c,
3872
+ C ? Object.assign(Object.create(c), C) : c,
3874
3873
  u,
3875
3874
  le,
3876
3875
  ye
@@ -3885,24 +3884,24 @@ function No(e, n, t) {
3885
3884
  }
3886
3885
  }
3887
3886
  }
3888
- function V(I, E) {
3889
- 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));
3890
3889
  }
3891
3890
  function _() {
3892
- 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);
3893
3892
  return {
3894
3893
  from: q,
3895
3894
  restore: X
3896
3895
  };
3897
3896
  function X() {
3898
- 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();
3899
3898
  }
3900
3899
  }
3901
3900
  function B() {
3902
3901
  r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
3903
3902
  }
3904
3903
  }
3905
- function _o(e, n) {
3904
+ function Do(e, n) {
3906
3905
  const t = n.start._index, r = n.start._bufferIndex, i = n.end._index, l = n.end._bufferIndex;
3907
3906
  let o;
3908
3907
  if (t === i)
@@ -3916,7 +3915,7 @@ function _o(e, n) {
3916
3915
  }
3917
3916
  return o;
3918
3917
  }
3919
- function Fo(e, n) {
3918
+ function No(e, n) {
3920
3919
  let t = -1;
3921
3920
  const r = [];
3922
3921
  let i;
@@ -3956,42 +3955,42 @@ function Fo(e, n) {
3956
3955
  }
3957
3956
  return r.join("");
3958
3957
  }
3959
- function Ro(e) {
3958
+ function _o(e) {
3960
3959
  const r = {
3961
3960
  constructs: (
3962
3961
  /** @type {FullNormalizedExtension} */
3963
- Vi([Do, ...(e || {}).extensions || []])
3962
+ Hi([Oo, ...(e || {}).extensions || []])
3964
3963
  ),
3965
- content: i(Ki),
3964
+ content: i(Qi),
3966
3965
  defined: [],
3967
- document: i(Zi),
3968
- flow: i(xo),
3966
+ document: i(Ki),
3967
+ flow: i(go),
3969
3968
  lazy: {},
3970
- string: i(wo),
3971
- text: i(So)
3969
+ string: i(ko),
3970
+ text: i(bo)
3972
3971
  };
3973
3972
  return r;
3974
3973
  function i(l) {
3975
3974
  return o;
3976
3975
  function o(a) {
3977
- return No(r, l, a);
3976
+ return vo(r, l, a);
3978
3977
  }
3979
3978
  }
3980
3979
  }
3981
- function Mo(e) {
3982
- for (; !Kt(e); )
3980
+ function Fo(e) {
3981
+ for (; !Jt(e); )
3983
3982
  ;
3984
3983
  return e;
3985
3984
  }
3986
- const ft = /[\0\t\n\r]/g;
3987
- function Bo() {
3985
+ const ht = /[\0\t\n\r]/g;
3986
+ function Ro() {
3988
3987
  let e = 1, n = "", t = !0, r;
3989
3988
  return i;
3990
3989
  function i(l, o, a) {
3991
3990
  const u = [];
3992
3991
  let c, s, f, d, p;
3993
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; ) {
3994
- 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) {
3995
3994
  n = l.slice(f);
3996
3995
  break;
3997
3996
  }
@@ -4019,32 +4018,32 @@ function Bo() {
4019
4018
  return a && (r && u.push(-5), n && u.push(n), u.push(null)), u;
4020
4019
  }
4021
4020
  }
4022
- const jo = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
4023
- function Ho(e) {
4024
- 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);
4025
4024
  }
4026
- function Uo(e, n, t) {
4025
+ function jo(e, n, t) {
4027
4026
  if (n)
4028
4027
  return n;
4029
4028
  if (t.charCodeAt(0) === 35) {
4030
4029
  const i = t.charCodeAt(1), l = i === 120 || i === 88;
4031
- return Yt(t.slice(l ? 2 : 1), l ? 16 : 10);
4030
+ return Xt(t.slice(l ? 2 : 1), l ? 16 : 10);
4032
4031
  }
4033
- return zn(t) || e;
4032
+ return Ln(t) || e;
4034
4033
  }
4035
- const rr = {}.hasOwnProperty;
4036
- function Vo(e, n, t) {
4037
- 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))));
4038
4037
  }
4039
- function qo(e) {
4038
+ function Uo(e) {
4040
4039
  const n = {
4041
4040
  transforms: [],
4042
4041
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
4043
4042
  enter: {
4044
- autolink: l(jn),
4043
+ autolink: l(Hn),
4045
4044
  autolinkProtocol: _,
4046
4045
  autolinkEmail: _,
4047
- atxHeading: l(Rn),
4046
+ atxHeading: l(Mn),
4048
4047
  blockQuote: l(Se),
4049
4048
  characterEscape: _,
4050
4049
  characterReference: _,
@@ -4052,35 +4051,35 @@ function qo(e) {
4052
4051
  codeFencedFenceInfo: o,
4053
4052
  codeFencedFenceMeta: o,
4054
4053
  codeIndented: l(je, o),
4055
- codeText: l(dr, o),
4054
+ codeText: l(gr, o),
4056
4055
  codeTextData: _,
4057
4056
  data: _,
4058
4057
  codeFlowValue: _,
4059
- definition: l(gr),
4058
+ definition: l(yr),
4060
4059
  definitionDestinationString: o,
4061
4060
  definitionLabelString: o,
4062
4061
  definitionTitleString: o,
4063
- emphasis: l(yr),
4064
- hardBreakEscape: l(Mn),
4065
- hardBreakTrailing: l(Mn),
4066
- htmlFlow: l(Bn, o),
4062
+ emphasis: l(xr),
4063
+ hardBreakEscape: l(Bn),
4064
+ hardBreakTrailing: l(Bn),
4065
+ htmlFlow: l(jn, o),
4067
4066
  htmlFlowData: _,
4068
- htmlText: l(Bn, o),
4067
+ htmlText: l(jn, o),
4069
4068
  htmlTextData: _,
4070
- image: l(xr),
4069
+ image: l(kr),
4071
4070
  label: o,
4072
- link: l(jn),
4073
- listItem: l(kr),
4071
+ link: l(Hn),
4072
+ listItem: l(br),
4074
4073
  listItemValue: d,
4075
- listOrdered: l(Hn, f),
4076
- listUnordered: l(Hn),
4077
- paragraph: l(br),
4074
+ listOrdered: l(Un, f),
4075
+ listUnordered: l(Un),
4076
+ paragraph: l(wr),
4078
4077
  reference: m,
4079
4078
  referenceString: o,
4080
4079
  resourceDestinationString: o,
4081
4080
  resourceTitleString: o,
4082
- setextHeading: l(Rn),
4083
- strong: l(wr),
4081
+ setextHeading: l(Mn),
4082
+ strong: l(Sr),
4084
4083
  thematicBreak: l(Cr)
4085
4084
  },
4086
4085
  exit: {
@@ -4107,10 +4106,10 @@ function qo(e) {
4107
4106
  definition: u(),
4108
4107
  definitionDestinationString: j,
4109
4108
  definitionLabelString: L,
4110
- definitionTitleString: C,
4109
+ definitionTitleString: E,
4111
4110
  emphasis: u(),
4112
- hardBreakEscape: u(E),
4113
- hardBreakTrailing: u(E),
4111
+ hardBreakEscape: u(C),
4112
+ hardBreakTrailing: u(C),
4114
4113
  htmlFlow: u(H),
4115
4114
  htmlFlowData: B,
4116
4115
  htmlText: u(q),
@@ -4135,7 +4134,7 @@ function qo(e) {
4135
4134
  thematicBreak: u()
4136
4135
  }
4137
4136
  };
4138
- ir(n, (e || {}).mdastExtensions || []);
4137
+ lr(n, (e || {}).mdastExtensions || []);
4139
4138
  const t = {};
4140
4139
  return r;
4141
4140
  function r(g) {
@@ -4164,13 +4163,13 @@ function qo(e) {
4164
4163
  }
4165
4164
  for (F = -1; ++F < g.length; ) {
4166
4165
  const oe = n[g[F][0]];
4167
- 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({
4168
4167
  sliceSerialize: g[F][2].sliceSerialize
4169
4168
  }, A), g[F][1]);
4170
4169
  }
4171
4170
  if (A.tokenStack.length > 0) {
4172
4171
  const oe = A.tokenStack[A.tokenStack.length - 1];
4173
- (oe[1] || ht).call(A, void 0, oe[0]);
4172
+ (oe[1] || mt).call(A, void 0, oe[0]);
4174
4173
  }
4175
4174
  for (S.position = {
4176
4175
  start: de(g.length > 0 ? g[0][1].start : {
@@ -4213,25 +4212,25 @@ function qo(e) {
4213
4212
  }
4214
4213
  if (!F && Z[0] === "enter" && Z[1].type === "listItemPrefix" || F === -1 && Z[0] === "exit" && (Z[1].type === "listUnordered" || Z[1].type === "listOrdered")) {
4215
4214
  if (xe) {
4216
- let Ce = O;
4217
- for (fe = void 0; Ce--; ) {
4218
- const he = g[Ce];
4215
+ let Ee = O;
4216
+ for (fe = void 0; Ee--; ) {
4217
+ const he = g[Ee];
4219
4218
  if (he[1].type === "lineEnding" || he[1].type === "lineEndingBlank") {
4220
4219
  if (he[0] === "exit") continue;
4221
- 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;
4222
4221
  } else if (!(he[1].type === "linePrefix" || he[1].type === "blockQuotePrefix" || he[1].type === "blockQuotePrefixWhitespace" || he[1].type === "blockQuoteMarker" || he[1].type === "listItemIndent")) break;
4223
4222
  }
4224
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++;
4225
4224
  }
4226
4225
  if (Z[1].type === "listItemPrefix") {
4227
- const Ce = {
4226
+ const Ee = {
4228
4227
  type: "listItem",
4229
4228
  _spread: !1,
4230
4229
  start: Object.assign({}, Z[1].start),
4231
4230
  // @ts-expect-error: we’ll add `end` in a second.
4232
4231
  end: void 0
4233
4232
  };
4234
- 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;
4235
4234
  }
4236
4235
  }
4237
4236
  }
@@ -4265,7 +4264,7 @@ function qo(e) {
4265
4264
  function c(g, S) {
4266
4265
  const A = this.stack.pop(), O = this.tokenStack.pop();
4267
4266
  if (O)
4268
- 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]));
4269
4268
  else throw new Error("Cannot close `" + g.type + "` (" + Ne({
4270
4269
  start: g.start,
4271
4270
  end: g.end
@@ -4273,7 +4272,7 @@ function qo(e) {
4273
4272
  A.position.end = de(g.end);
4274
4273
  }
4275
4274
  function s() {
4276
- return Hi(this.stack.pop());
4275
+ return Bi(this.stack.pop());
4277
4276
  }
4278
4277
  function f() {
4279
4278
  this.data.expectingFirstListItemValue = !0;
@@ -4307,7 +4306,7 @@ function qo(e) {
4307
4306
  const S = this.resume(), A = this.stack[this.stack.length - 1];
4308
4307
  A.label = S, A.identifier = Te(this.sliceSerialize(g)).toLowerCase();
4309
4308
  }
4310
- function C() {
4309
+ function E() {
4311
4310
  const g = this.resume(), S = this.stack[this.stack.length - 1];
4312
4311
  S.title = g;
4313
4312
  }
@@ -4335,7 +4334,7 @@ function qo(e) {
4335
4334
  function _(g) {
4336
4335
  const A = this.stack[this.stack.length - 1].children;
4337
4336
  let O = A[A.length - 1];
4338
- (!O || O.type !== "text") && (O = Sr(), O.position = {
4337
+ (!O || O.type !== "text") && (O = Er(), O.position = {
4339
4338
  start: de(g.start),
4340
4339
  // @ts-expect-error: we’ll add `end` later.
4341
4340
  end: void 0
@@ -4354,7 +4353,7 @@ function qo(e) {
4354
4353
  }
4355
4354
  !this.data.setextHeadingSlurpLineEnding && n.canContainEols.includes(S.type) && (_.call(this, g), B.call(this, g));
4356
4355
  }
4357
- function E() {
4356
+ function C() {
4358
4357
  this.data.atHardBreak = !0;
4359
4358
  }
4360
4359
  function H() {
@@ -4389,7 +4388,7 @@ function qo(e) {
4389
4388
  }
4390
4389
  function re(g) {
4391
4390
  const S = this.sliceSerialize(g), A = this.stack[this.stack.length - 2];
4392
- A.label = Ho(S), A.identifier = Te(S).toLowerCase();
4391
+ A.label = Bo(S), A.identifier = Te(S).toLowerCase();
4393
4392
  }
4394
4393
  function ce() {
4395
4394
  const g = this.stack[this.stack.length - 1], S = this.resume(), A = this.stack[this.stack.length - 1];
@@ -4423,7 +4422,7 @@ function qo(e) {
4423
4422
  function Y(g) {
4424
4423
  const S = this.sliceSerialize(g), A = this.data.characterReferenceType;
4425
4424
  let O;
4426
- 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);
4427
4426
  const F = this.stack[this.stack.length - 1];
4428
4427
  F.value += O;
4429
4428
  }
@@ -4455,13 +4454,13 @@ function qo(e) {
4455
4454
  value: ""
4456
4455
  };
4457
4456
  }
4458
- function dr() {
4457
+ function gr() {
4459
4458
  return {
4460
4459
  type: "inlineCode",
4461
4460
  value: ""
4462
4461
  };
4463
4462
  }
4464
- function gr() {
4463
+ function yr() {
4465
4464
  return {
4466
4465
  type: "definition",
4467
4466
  identifier: "",
@@ -4470,13 +4469,13 @@ function qo(e) {
4470
4469
  url: ""
4471
4470
  };
4472
4471
  }
4473
- function yr() {
4472
+ function xr() {
4474
4473
  return {
4475
4474
  type: "emphasis",
4476
4475
  children: []
4477
4476
  };
4478
4477
  }
4479
- function Rn() {
4478
+ function Mn() {
4480
4479
  return {
4481
4480
  type: "heading",
4482
4481
  // @ts-expect-error `depth` will be set later.
@@ -4484,18 +4483,18 @@ function qo(e) {
4484
4483
  children: []
4485
4484
  };
4486
4485
  }
4487
- function Mn() {
4486
+ function Bn() {
4488
4487
  return {
4489
4488
  type: "break"
4490
4489
  };
4491
4490
  }
4492
- function Bn() {
4491
+ function jn() {
4493
4492
  return {
4494
4493
  type: "html",
4495
4494
  value: ""
4496
4495
  };
4497
4496
  }
4498
- function xr() {
4497
+ function kr() {
4499
4498
  return {
4500
4499
  type: "image",
4501
4500
  title: null,
@@ -4503,7 +4502,7 @@ function qo(e) {
4503
4502
  alt: null
4504
4503
  };
4505
4504
  }
4506
- function jn() {
4505
+ function Hn() {
4507
4506
  return {
4508
4507
  type: "link",
4509
4508
  title: null,
@@ -4511,7 +4510,7 @@ function qo(e) {
4511
4510
  children: []
4512
4511
  };
4513
4512
  }
4514
- function Hn(g) {
4513
+ function Un(g) {
4515
4514
  return {
4516
4515
  type: "list",
4517
4516
  ordered: g.type === "listOrdered",
@@ -4520,7 +4519,7 @@ function qo(e) {
4520
4519
  children: []
4521
4520
  };
4522
4521
  }
4523
- function kr(g) {
4522
+ function br(g) {
4524
4523
  return {
4525
4524
  type: "listItem",
4526
4525
  spread: g._spread,
@@ -4528,19 +4527,19 @@ function qo(e) {
4528
4527
  children: []
4529
4528
  };
4530
4529
  }
4531
- function br() {
4530
+ function wr() {
4532
4531
  return {
4533
4532
  type: "paragraph",
4534
4533
  children: []
4535
4534
  };
4536
4535
  }
4537
- function wr() {
4536
+ function Sr() {
4538
4537
  return {
4539
4538
  type: "strong",
4540
4539
  children: []
4541
4540
  };
4542
4541
  }
4543
- function Sr() {
4542
+ function Er() {
4544
4543
  return {
4545
4544
  type: "text",
4546
4545
  value: ""
@@ -4559,17 +4558,17 @@ function de(e) {
4559
4558
  offset: e.offset
4560
4559
  };
4561
4560
  }
4562
- function ir(e, n) {
4561
+ function lr(e, n) {
4563
4562
  let t = -1;
4564
4563
  for (; ++t < n.length; ) {
4565
4564
  const r = n[t];
4566
- Array.isArray(r) ? ir(e, r) : $o(e, r);
4565
+ Array.isArray(r) ? lr(e, r) : Vo(e, r);
4567
4566
  }
4568
4567
  }
4569
- function $o(e, n) {
4568
+ function Vo(e, n) {
4570
4569
  let t;
4571
4570
  for (t in n)
4572
- if (rr.call(n, t))
4571
+ if (ir.call(n, t))
4573
4572
  switch (t) {
4574
4573
  case "canContainEols": {
4575
4574
  const r = n[t];
@@ -4589,7 +4588,7 @@ function $o(e, n) {
4589
4588
  }
4590
4589
  }
4591
4590
  }
4592
- function ht(e, n) {
4591
+ function mt(e, n) {
4593
4592
  throw e ? new Error("Cannot close `" + e.type + "` (" + Ne({
4594
4593
  start: e.start,
4595
4594
  end: e.end
@@ -4601,11 +4600,11 @@ function ht(e, n) {
4601
4600
  end: n.end
4602
4601
  }) + ") is still open");
4603
4602
  }
4604
- function Wo(e) {
4603
+ function qo(e) {
4605
4604
  const n = this;
4606
4605
  n.parser = t;
4607
4606
  function t(r) {
4608
- return Vo(r, {
4607
+ return Ho(r, {
4609
4608
  ...n.data("settings"),
4610
4609
  ...e,
4611
4610
  // Note: these options are not in the readme.
@@ -4616,7 +4615,7 @@ function Wo(e) {
4616
4615
  });
4617
4616
  }
4618
4617
  }
4619
- function Yo(e, n) {
4618
+ function $o(e, n) {
4620
4619
  const t = {
4621
4620
  type: "element",
4622
4621
  tagName: "blockquote",
@@ -4625,12 +4624,12 @@ function Yo(e, n) {
4625
4624
  };
4626
4625
  return e.patch(n, t), e.applyData(n, t);
4627
4626
  }
4628
- function Xo(e, n) {
4627
+ function Wo(e, n) {
4629
4628
  const t = { type: "element", tagName: "br", properties: {}, children: [] };
4630
4629
  return e.patch(n, t), [e.applyData(n, t), { type: "text", value: `
4631
4630
  ` }];
4632
4631
  }
4633
- function Qo(e, n) {
4632
+ function Yo(e, n) {
4634
4633
  const t = n.value ? n.value + `
4635
4634
  ` : "", r = {};
4636
4635
  n.lang && (r.className = ["language-" + n.lang]);
@@ -4642,7 +4641,7 @@ function Qo(e, n) {
4642
4641
  };
4643
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;
4644
4643
  }
4645
- function Go(e, n) {
4644
+ function Xo(e, n) {
4646
4645
  const t = {
4647
4646
  type: "element",
4648
4647
  tagName: "del",
@@ -4651,7 +4650,7 @@ function Go(e, n) {
4651
4650
  };
4652
4651
  return e.patch(n, t), e.applyData(n, t);
4653
4652
  }
4654
- function Ko(e, n) {
4653
+ function Qo(e, n) {
4655
4654
  const t = {
4656
4655
  type: "element",
4657
4656
  tagName: "em",
@@ -4660,7 +4659,7 @@ function Ko(e, n) {
4660
4659
  };
4661
4660
  return e.patch(n, t), e.applyData(n, t);
4662
4661
  }
4663
- function Jo(e, n) {
4662
+ function Go(e, n) {
4664
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);
4665
4664
  let o, a = e.footnoteCounts.get(r);
4666
4665
  a === void 0 ? (a = 0, e.footnoteOrder.push(r), o = e.footnoteOrder.length) : o = l + 1, a += 1, e.footnoteCounts.set(r, a);
@@ -4684,7 +4683,7 @@ function Jo(e, n) {
4684
4683
  };
4685
4684
  return e.patch(n, c), e.applyData(n, c);
4686
4685
  }
4687
- function Zo(e, n) {
4686
+ function Ko(e, n) {
4688
4687
  const t = {
4689
4688
  type: "element",
4690
4689
  tagName: "h" + n.depth,
@@ -4693,13 +4692,13 @@ function Zo(e, n) {
4693
4692
  };
4694
4693
  return e.patch(n, t), e.applyData(n, t);
4695
4694
  }
4696
- function ea(e, n) {
4695
+ function Jo(e, n) {
4697
4696
  if (e.options.allowDangerousHtml) {
4698
4697
  const t = { type: "raw", value: n.value };
4699
4698
  return e.patch(n, t), e.applyData(n, t);
4700
4699
  }
4701
4700
  }
4702
- function lr(e, n) {
4701
+ function or(e, n) {
4703
4702
  const t = n.referenceType;
4704
4703
  let r = "]";
4705
4704
  if (t === "collapsed" ? r += "[]" : t === "full" && (r += "[" + (n.label || n.identifier) + "]"), n.type === "imageReference")
@@ -4709,22 +4708,22 @@ function lr(e, n) {
4709
4708
  const o = i[i.length - 1];
4710
4709
  return o && o.type === "text" ? o.value += r : i.push({ type: "text", value: r }), i;
4711
4710
  }
4712
- function na(e, n) {
4711
+ function Zo(e, n) {
4713
4712
  const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
4714
4713
  if (!r)
4715
- return lr(e, n);
4714
+ return or(e, n);
4716
4715
  const i = { src: Ae(r.url || ""), alt: n.alt };
4717
4716
  r.title !== null && r.title !== void 0 && (i.title = r.title);
4718
4717
  const l = { type: "element", tagName: "img", properties: i, children: [] };
4719
4718
  return e.patch(n, l), e.applyData(n, l);
4720
4719
  }
4721
- function ta(e, n) {
4720
+ function ea(e, n) {
4722
4721
  const t = { src: Ae(n.url) };
4723
4722
  n.alt !== null && n.alt !== void 0 && (t.alt = n.alt), n.title !== null && n.title !== void 0 && (t.title = n.title);
4724
4723
  const r = { type: "element", tagName: "img", properties: t, children: [] };
4725
4724
  return e.patch(n, r), e.applyData(n, r);
4726
4725
  }
4727
- function ra(e, n) {
4726
+ function na(e, n) {
4728
4727
  const t = { type: "text", value: n.value.replace(/\r?\n|\r/g, " ") };
4729
4728
  e.patch(n, t);
4730
4729
  const r = {
@@ -4735,10 +4734,10 @@ function ra(e, n) {
4735
4734
  };
4736
4735
  return e.patch(n, r), e.applyData(n, r);
4737
4736
  }
4738
- function ia(e, n) {
4737
+ function ta(e, n) {
4739
4738
  const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
4740
4739
  if (!r)
4741
- return lr(e, n);
4740
+ return or(e, n);
4742
4741
  const i = { href: Ae(r.url || "") };
4743
4742
  r.title !== null && r.title !== void 0 && (i.title = r.title);
4744
4743
  const l = {
@@ -4749,7 +4748,7 @@ function ia(e, n) {
4749
4748
  };
4750
4749
  return e.patch(n, l), e.applyData(n, l);
4751
4750
  }
4752
- function la(e, n) {
4751
+ function ra(e, n) {
4753
4752
  const t = { href: Ae(n.url) };
4754
4753
  n.title !== null && n.title !== void 0 && (t.title = n.title);
4755
4754
  const r = {
@@ -4760,8 +4759,8 @@ function la(e, n) {
4760
4759
  };
4761
4760
  return e.patch(n, r), e.applyData(n, r);
4762
4761
  }
4763
- function oa(e, n, t) {
4764
- 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 = [];
4765
4764
  if (typeof n.checked == "boolean") {
4766
4765
  const s = r[0];
4767
4766
  let f;
@@ -4784,22 +4783,22 @@ function oa(e, n, t) {
4784
4783
  const c = { type: "element", tagName: "li", properties: l, children: o };
4785
4784
  return e.patch(n, c), e.applyData(n, c);
4786
4785
  }
4787
- function aa(e) {
4786
+ function la(e) {
4788
4787
  let n = !1;
4789
4788
  if (e.type === "list") {
4790
4789
  n = e.spread || !1;
4791
4790
  const t = e.children;
4792
4791
  let r = -1;
4793
4792
  for (; !n && ++r < t.length; )
4794
- n = or(t[r]);
4793
+ n = ar(t[r]);
4795
4794
  }
4796
4795
  return n;
4797
4796
  }
4798
- function or(e) {
4797
+ function ar(e) {
4799
4798
  const n = e.spread;
4800
4799
  return n ?? e.children.length > 1;
4801
4800
  }
4802
- function ua(e, n) {
4801
+ function oa(e, n) {
4803
4802
  const t = {}, r = e.all(n);
4804
4803
  let i = -1;
4805
4804
  for (typeof n.start == "number" && n.start !== 1 && (t.start = n.start); ++i < r.length; ) {
@@ -4817,7 +4816,7 @@ function ua(e, n) {
4817
4816
  };
4818
4817
  return e.patch(n, l), e.applyData(n, l);
4819
4818
  }
4820
- function sa(e, n) {
4819
+ function aa(e, n) {
4821
4820
  const t = {
4822
4821
  type: "element",
4823
4822
  tagName: "p",
@@ -4826,11 +4825,11 @@ function sa(e, n) {
4826
4825
  };
4827
4826
  return e.patch(n, t), e.applyData(n, t);
4828
4827
  }
4829
- function ca(e, n) {
4828
+ function ua(e, n) {
4830
4829
  const t = { type: "root", children: e.wrap(e.all(n)) };
4831
4830
  return e.patch(n, t), e.applyData(n, t);
4832
4831
  }
4833
- function pa(e, n) {
4832
+ function sa(e, n) {
4834
4833
  const t = {
4835
4834
  type: "element",
4836
4835
  tagName: "strong",
@@ -4839,7 +4838,7 @@ function pa(e, n) {
4839
4838
  };
4840
4839
  return e.patch(n, t), e.applyData(n, t);
4841
4840
  }
4842
- function fa(e, n) {
4841
+ function ca(e, n) {
4843
4842
  const t = e.all(n), r = t.shift(), i = [];
4844
4843
  if (r) {
4845
4844
  const o = {
@@ -4856,7 +4855,7 @@ function fa(e, n) {
4856
4855
  tagName: "tbody",
4857
4856
  properties: {},
4858
4857
  children: e.wrap(t, !0)
4859
- }, 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]);
4860
4859
  a && u && (o.position = { start: a, end: u }), i.push(o);
4861
4860
  }
4862
4861
  const l = {
@@ -4867,7 +4866,7 @@ function fa(e, n) {
4867
4866
  };
4868
4867
  return e.patch(n, l), e.applyData(n, l);
4869
4868
  }
4870
- function ha(e, n, t) {
4869
+ function pa(e, n, t) {
4871
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;
4872
4871
  let u = -1;
4873
4872
  const c = [];
@@ -4885,7 +4884,7 @@ function ha(e, n, t) {
4885
4884
  };
4886
4885
  return e.patch(n, s), e.applyData(n, s);
4887
4886
  }
4888
- function ma(e, n) {
4887
+ function fa(e, n) {
4889
4888
  const t = {
4890
4889
  type: "element",
4891
4890
  tagName: "td",
@@ -4895,11 +4894,11 @@ function ma(e, n) {
4895
4894
  };
4896
4895
  return e.patch(n, t), e.applyData(n, t);
4897
4896
  }
4898
- function da(e, n) {
4899
- const t = { type: "text", value: Pr(String(n.value)) };
4897
+ function ha(e, n) {
4898
+ const t = { type: "text", value: Ir(String(n.value)) };
4900
4899
  return e.patch(n, t), e.applyData(n, t);
4901
4900
  }
4902
- function ga(e, n) {
4901
+ function ma(e, n) {
4903
4902
  const t = {
4904
4903
  type: "element",
4905
4904
  tagName: "hr",
@@ -4908,31 +4907,31 @@ function ga(e, n) {
4908
4907
  };
4909
4908
  return e.patch(n, t), e.applyData(n, t);
4910
4909
  }
4911
- const ya = {
4912
- blockquote: Yo,
4913
- break: Xo,
4914
- code: Qo,
4915
- delete: Go,
4916
- emphasis: Ko,
4917
- footnoteReference: Jo,
4918
- heading: Zo,
4919
- html: ea,
4920
- imageReference: na,
4921
- image: ta,
4922
- inlineCode: ra,
4923
- linkReference: ia,
4924
- link: la,
4925
- listItem: oa,
4926
- list: ua,
4927
- 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,
4928
4927
  // @ts-expect-error: root is different, but hard to type.
4929
- root: ca,
4930
- strong: pa,
4931
- table: fa,
4932
- tableCell: ma,
4933
- tableRow: ha,
4934
- text: da,
4935
- thematicBreak: ga,
4928
+ root: ua,
4929
+ strong: sa,
4930
+ table: ca,
4931
+ tableCell: fa,
4932
+ tableRow: pa,
4933
+ text: ha,
4934
+ thematicBreak: ma,
4936
4935
  toml: He,
4937
4936
  yaml: He,
4938
4937
  definition: He,
@@ -4940,14 +4939,14 @@ const ya = {
4940
4939
  };
4941
4940
  function He() {
4942
4941
  }
4943
- 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) => {
4944
4943
  const t = (i, l) => (e.set(l, i), i), r = (i) => {
4945
4944
  if (e.has(i))
4946
4945
  return e.get(i);
4947
4946
  const [l, o] = n[i];
4948
4947
  switch (l) {
4949
4948
  case Ke:
4950
- case ar:
4949
+ case ur:
4951
4950
  return t(o, i);
4952
4951
  case Fe: {
4953
4952
  const a = t([], i);
@@ -4961,29 +4960,29 @@ const ar = -1, Ke = 0, Fe = 1, Ye = 2, vn = 3, Dn = 4, Nn = 5, _n = 6, ur = 7, s
4961
4960
  a[r(u)] = r(c);
4962
4961
  return a;
4963
4962
  }
4964
- case vn:
4963
+ case Dn:
4965
4964
  return t(new Date(o), i);
4966
- case Dn: {
4965
+ case Nn: {
4967
4966
  const { source: a, flags: u } = o;
4968
4967
  return t(new RegExp(a, u), i);
4969
4968
  }
4970
- case Nn: {
4969
+ case _n: {
4971
4970
  const a = t(/* @__PURE__ */ new Map(), i);
4972
4971
  for (const [u, c] of o)
4973
4972
  a.set(r(u), r(c));
4974
4973
  return a;
4975
4974
  }
4976
- case _n: {
4975
+ case Fn: {
4977
4976
  const a = t(/* @__PURE__ */ new Set(), i);
4978
4977
  for (const u of o)
4979
4978
  a.add(r(u));
4980
4979
  return a;
4981
4980
  }
4982
- case ur: {
4981
+ case sr: {
4983
4982
  const { name: a, message: u } = o;
4984
- return t(new mt[a](u), i);
4983
+ return t(new dt[a](u), i);
4985
4984
  }
4986
- case sr:
4985
+ case cr:
4987
4986
  return t(BigInt(o), i);
4988
4987
  case "BigInt":
4989
4988
  return t(Object(BigInt(o)), i);
@@ -4994,32 +4993,32 @@ const ar = -1, Ke = 0, Fe = 1, Ye = 2, vn = 3, Dn = 4, Nn = 5, _n = 6, ur = 7, s
4994
4993
  return t(new DataView(a), o);
4995
4994
  }
4996
4995
  }
4997
- return t(new mt[l](o), i);
4996
+ return t(new dt[l](o), i);
4998
4997
  };
4999
4998
  return r;
5000
- }, 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) => {
5001
5000
  const n = typeof e;
5002
5001
  if (n !== "object" || !e)
5003
5002
  return [Ke, n];
5004
- const t = ka.call(e).slice(8, -1);
5003
+ const t = ya.call(e).slice(8, -1);
5005
5004
  switch (t) {
5006
5005
  case "Array":
5007
- return [Fe, Ee];
5006
+ return [Fe, Ce];
5008
5007
  case "Object":
5009
- return [Ye, Ee];
5008
+ return [Ye, Ce];
5010
5009
  case "Date":
5011
- return [vn, Ee];
5010
+ return [Dn, Ce];
5012
5011
  case "RegExp":
5013
- return [Dn, Ee];
5012
+ return [Nn, Ce];
5014
5013
  case "Map":
5015
- return [Nn, Ee];
5014
+ return [_n, Ce];
5016
5015
  case "Set":
5017
- return [_n, Ee];
5016
+ return [Fn, Ce];
5018
5017
  case "DataView":
5019
5018
  return [Fe, t];
5020
5019
  }
5021
- return t.includes("Array") ? [Fe, t] : t.includes("Error") ? [ur, t] : [Ye, t];
5022
- }, 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) => {
5023
5022
  const i = (o, a) => {
5024
5023
  const u = r.push(o) - 1;
5025
5024
  return t.set(a, u), u;
@@ -5032,7 +5031,7 @@ const ar = -1, Ke = 0, Fe = 1, Ye = 2, vn = 3, Dn = 4, Nn = 5, _n = 6, ur = 7, s
5032
5031
  let s = o;
5033
5032
  switch (u) {
5034
5033
  case "bigint":
5035
- a = sr, s = o.toString();
5034
+ a = cr, s = o.toString();
5036
5035
  break;
5037
5036
  case "function":
5038
5037
  case "symbol":
@@ -5041,7 +5040,7 @@ const ar = -1, Ke = 0, Fe = 1, Ye = 2, vn = 3, Dn = 4, Nn = 5, _n = 6, ur = 7, s
5041
5040
  s = null;
5042
5041
  break;
5043
5042
  case "undefined":
5044
- return i([ar], o);
5043
+ return i([ur], o);
5045
5044
  }
5046
5045
  return i([a, s], o);
5047
5046
  }
@@ -5068,23 +5067,23 @@ const ar = -1, Ke = 0, Fe = 1, Ye = 2, vn = 3, Dn = 4, Nn = 5, _n = 6, ur = 7, s
5068
5067
  if (n && "toJSON" in o)
5069
5068
  return l(o.toJSON());
5070
5069
  const s = [], f = i([a, s], o);
5071
- for (const d of ba(o))
5070
+ for (const d of xa(o))
5072
5071
  (e || !Ue(De(o[d]))) && s.push([l(d), l(o[d])]);
5073
5072
  return f;
5074
5073
  }
5075
- case vn:
5074
+ case Dn:
5076
5075
  return i([a, o.toISOString()], o);
5077
- case Dn: {
5076
+ case Nn: {
5078
5077
  const { source: s, flags: f } = o;
5079
5078
  return i([a, { source: s, flags: f }], o);
5080
5079
  }
5081
- case Nn: {
5080
+ case _n: {
5082
5081
  const s = [], f = i([a, s], o);
5083
5082
  for (const [d, p] of o)
5084
5083
  (e || !(Ue(De(d)) || Ue(De(p)))) && s.push([l(d), l(p)]);
5085
5084
  return f;
5086
5085
  }
5087
- case _n: {
5086
+ case Fn: {
5088
5087
  const s = [], f = i([a, s], o);
5089
5088
  for (const d of o)
5090
5089
  (e || !Ue(De(d))) && s.push(l(d));
@@ -5095,14 +5094,14 @@ const ar = -1, Ke = 0, Fe = 1, Ye = 2, vn = 3, Dn = 4, Nn = 5, _n = 6, ur = 7, s
5095
5094
  return i([a, { name: u, message: c }], o);
5096
5095
  };
5097
5096
  return l;
5098
- }, gt = (e, { json: n, lossy: t } = {}) => {
5097
+ }, yt = (e, { json: n, lossy: t } = {}) => {
5099
5098
  const r = [];
5100
- return wa(!(n || t), !!n, /* @__PURE__ */ new Map(), r)(e), r;
5099
+ return ka(!(n || t), !!n, /* @__PURE__ */ new Map(), r)(e), r;
5101
5100
  }, Xe = typeof structuredClone == "function" ? (
5102
5101
  /* c8 ignore start */
5103
- (e, n) => n && ("json" in n || "lossy" in n) ? dt(gt(e, n)) : structuredClone(e)
5104
- ) : (e, n) => dt(gt(e, n));
5105
- 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) {
5106
5105
  const t = [{ type: "text", value: "↩" }];
5107
5106
  return n > 1 && t.push({
5108
5107
  type: "element",
@@ -5111,11 +5110,11 @@ function Sa(e, n) {
5111
5110
  children: [{ type: "text", value: String(n) }]
5112
5111
  }), t;
5113
5112
  }
5114
- function Ca(e, n) {
5113
+ function wa(e, n) {
5115
5114
  return "Back to reference " + (e + 1) + (n > 1 ? "-" + n : "");
5116
5115
  }
5117
- function Ea(e) {
5118
- 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 || {
5119
5118
  className: ["sr-only"]
5120
5119
  }, a = [];
5121
5120
  let u = -1;
@@ -5185,7 +5184,7 @@ function Ea(e) {
5185
5184
  ]
5186
5185
  };
5187
5186
  }
5188
- const cr = (
5187
+ const pr = (
5189
5188
  // Note: overloads in JSDoc can’t yet use different `@template`s.
5190
5189
  /**
5191
5190
  * @type {(
@@ -5202,28 +5201,28 @@ const cr = (
5202
5201
  */
5203
5202
  function(e) {
5204
5203
  if (e == null)
5205
- return Aa;
5204
+ return Ta;
5206
5205
  if (typeof e == "function")
5207
5206
  return Je(e);
5208
5207
  if (typeof e == "object")
5209
- return Array.isArray(e) ? Ia(e) : (
5208
+ return Array.isArray(e) ? Ea(e) : (
5210
5209
  // Cast because `ReadonlyArray` goes into the above but `isArray`
5211
5210
  // narrows to `Array`.
5212
- Ta(
5211
+ Ca(
5213
5212
  /** @type {Props} */
5214
5213
  e
5215
5214
  )
5216
5215
  );
5217
5216
  if (typeof e == "string")
5218
- return Pa(e);
5217
+ return Ia(e);
5219
5218
  throw new Error("Expected function, string, or object as test");
5220
5219
  }
5221
5220
  );
5222
- function Ia(e) {
5221
+ function Ea(e) {
5223
5222
  const n = [];
5224
5223
  let t = -1;
5225
5224
  for (; ++t < e.length; )
5226
- n[t] = cr(e[t]);
5225
+ n[t] = pr(e[t]);
5227
5226
  return Je(r);
5228
5227
  function r(...i) {
5229
5228
  let l = -1;
@@ -5232,7 +5231,7 @@ function Ia(e) {
5232
5231
  return !1;
5233
5232
  }
5234
5233
  }
5235
- function Ta(e) {
5234
+ function Ca(e) {
5236
5235
  const n = (
5237
5236
  /** @type {Record<string, unknown>} */
5238
5237
  e
@@ -5250,7 +5249,7 @@ function Ta(e) {
5250
5249
  return !0;
5251
5250
  }
5252
5251
  }
5253
- function Pa(e) {
5252
+ function Ia(e) {
5254
5253
  return Je(n);
5255
5254
  function n(t) {
5256
5255
  return t && t.type === e;
@@ -5259,7 +5258,7 @@ function Pa(e) {
5259
5258
  function Je(e) {
5260
5259
  return n;
5261
5260
  function n(t, r, i) {
5262
- return !!(za(t) && e.call(
5261
+ return !!(Pa(t) && e.call(
5263
5262
  this,
5264
5263
  t,
5265
5264
  typeof r == "number" ? r : void 0,
@@ -5267,17 +5266,17 @@ function Je(e) {
5267
5266
  ));
5268
5267
  }
5269
5268
  }
5270
- function Aa() {
5269
+ function Ta() {
5271
5270
  return !0;
5272
5271
  }
5273
- function za(e) {
5272
+ function Pa(e) {
5274
5273
  return e !== null && typeof e == "object" && "type" in e;
5275
5274
  }
5276
- const pr = [], La = !0, yt = !1, Oa = "skip";
5277
- function va(e, n, t, r) {
5275
+ const fr = [], Aa = !0, xt = !1, za = "skip";
5276
+ function La(e, n, t, r) {
5278
5277
  let i;
5279
5278
  typeof n == "function" && typeof t != "function" ? (r = t, t = n) : i = n;
5280
- const l = cr(i), o = r ? -1 : 1;
5279
+ const l = pr(i), o = r ? -1 : 1;
5281
5280
  a(e, void 0, [])();
5282
5281
  function a(u, c, s) {
5283
5282
  const f = (
@@ -5298,18 +5297,18 @@ function va(e, n, t, r) {
5298
5297
  }
5299
5298
  return d;
5300
5299
  function d() {
5301
- let p = pr, y, b, T;
5302
- 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))
5303
5302
  return p;
5304
5303
  if ("children" in u && u.children) {
5305
5304
  const w = (
5306
5305
  /** @type {UnistParent} */
5307
5306
  u
5308
5307
  );
5309
- if (w.children && p[0] !== Oa)
5308
+ if (w.children && p[0] !== za)
5310
5309
  for (b = (r ? w.children.length : -1) + o, T = s.concat(w); b > -1 && b < w.children.length; ) {
5311
5310
  const L = w.children[b];
5312
- if (y = a(L, b, T)(), y[0] === yt)
5311
+ if (y = a(L, b, T)(), y[0] === xt)
5313
5312
  return y;
5314
5313
  b = typeof y[1] == "number" ? y[1] : b + o;
5315
5314
  }
@@ -5318,22 +5317,22 @@ function va(e, n, t, r) {
5318
5317
  }
5319
5318
  }
5320
5319
  }
5321
- function Da(e) {
5322
- 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];
5323
5322
  }
5324
- function fr(e, n, t, r) {
5323
+ function hr(e, n, t, r) {
5325
5324
  let i, l, o;
5326
- 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);
5327
5326
  function a(u, c) {
5328
5327
  const s = c[c.length - 1], f = s ? s.children.indexOf(u) : void 0;
5329
5328
  return o(u, f, s);
5330
5329
  }
5331
5330
  }
5332
- const kn = {}.hasOwnProperty, Na = {};
5333
- function _a(e, n) {
5334
- 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 = {
5335
5334
  all: c,
5336
- applyData: Ra,
5335
+ applyData: _a,
5337
5336
  definitionById: r,
5338
5337
  footnoteById: i,
5339
5338
  footnoteCounts: l,
@@ -5341,10 +5340,10 @@ function _a(e, n) {
5341
5340
  handlers: o,
5342
5341
  one: u,
5343
5342
  options: t,
5344
- patch: Fa,
5345
- wrap: Ba
5343
+ patch: Na,
5344
+ wrap: Ra
5346
5345
  };
5347
- return fr(e, function(s) {
5346
+ return hr(e, function(s) {
5348
5347
  if (s.type === "definition" || s.type === "footnoteDefinition") {
5349
5348
  const f = s.type === "definition" ? r : i, d = String(s.identifier).toUpperCase();
5350
5349
  f.has(d) || f.set(d, s);
@@ -5352,7 +5351,7 @@ function _a(e, n) {
5352
5351
  }), a;
5353
5352
  function u(s, f) {
5354
5353
  const d = s.type, p = a.handlers[d];
5355
- if (kn.call(a.handlers, d) && p)
5354
+ if (bn.call(a.handlers, d) && p)
5356
5355
  return p(a, s, f);
5357
5356
  if (a.options.passThrough && a.options.passThrough.includes(d)) {
5358
5357
  if ("children" in s) {
@@ -5361,7 +5360,7 @@ function _a(e, n) {
5361
5360
  }
5362
5361
  return Xe(s);
5363
5362
  }
5364
- return (a.options.unknownHandler || Ma)(a, s, f);
5363
+ return (a.options.unknownHandler || Fa)(a, s, f);
5365
5364
  }
5366
5365
  function c(s) {
5367
5366
  const f = [];
@@ -5371,9 +5370,9 @@ function _a(e, n) {
5371
5370
  for (; ++p < d.length; ) {
5372
5371
  const y = a.one(d[p], s);
5373
5372
  if (y) {
5374
- 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")) {
5375
5374
  const b = y.children[0];
5376
- b && b.type === "text" && (b.value = xt(b.value));
5375
+ b && b.type === "text" && (b.value = kt(b.value));
5377
5376
  }
5378
5377
  Array.isArray(y) ? f.push(...y) : f.push(y);
5379
5378
  }
@@ -5382,10 +5381,10 @@ function _a(e, n) {
5382
5381
  return f;
5383
5382
  }
5384
5383
  }
5385
- function Fa(e, n) {
5386
- e.position && (n.position = ki(e));
5384
+ function Na(e, n) {
5385
+ e.position && (n.position = yi(e));
5387
5386
  }
5388
- function Ra(e, n) {
5387
+ function _a(e, n) {
5389
5388
  let t = n;
5390
5389
  if (e && e.data) {
5391
5390
  const r = e.data.hName, i = e.data.hChildren, l = e.data.hProperties;
@@ -5400,8 +5399,8 @@ function Ra(e, n) {
5400
5399
  }
5401
5400
  return t;
5402
5401
  }
5403
- function Ma(e, n) {
5404
- 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 } : {
5405
5404
  type: "element",
5406
5405
  tagName: "div",
5407
5406
  properties: {},
@@ -5409,7 +5408,7 @@ function Ma(e, n) {
5409
5408
  };
5410
5409
  return e.patch(n, r), e.applyData(n, r);
5411
5410
  }
5412
- function Ba(e, n) {
5411
+ function Ra(e, n) {
5413
5412
  const t = [];
5414
5413
  let r = -1;
5415
5414
  for (n && t.push({ type: "text", value: `
@@ -5419,39 +5418,39 @@ function Ba(e, n) {
5419
5418
  return n && e.length > 0 && t.push({ type: "text", value: `
5420
5419
  ` }), t;
5421
5420
  }
5422
- function xt(e) {
5421
+ function kt(e) {
5423
5422
  let n = 0, t = e.charCodeAt(n);
5424
5423
  for (; t === 9 || t === 32; )
5425
5424
  n++, t = e.charCodeAt(n);
5426
5425
  return e.slice(n);
5427
5426
  }
5428
- function kt(e, n) {
5429
- 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: [] };
5430
5429
  return i && l.children.push({ type: "text", value: `
5431
5430
  ` }, i), l;
5432
5431
  }
5433
- function ja(e, n) {
5432
+ function Ma(e, n) {
5434
5433
  return e && "run" in e ? async function(t, r) {
5435
5434
  const i = (
5436
5435
  /** @type {HastRoot} */
5437
- kt(t, { file: r, ...n })
5436
+ bt(t, { file: r, ...n })
5438
5437
  );
5439
5438
  await e.run(i, r);
5440
5439
  } : function(t, r) {
5441
5440
  return (
5442
5441
  /** @type {HastRoot} */
5443
- kt(t, { file: r, ...e || n })
5442
+ bt(t, { file: r, ...e || n })
5444
5443
  );
5445
5444
  };
5446
5445
  }
5447
- function bt(e) {
5446
+ function wt(e) {
5448
5447
  if (e)
5449
5448
  throw e;
5450
5449
  }
5451
- var $e = Object.prototype.hasOwnProperty, hr = Object.prototype.toString, wt = Object.defineProperty, St = Object.getOwnPropertyDescriptor, Ct = function(n) {
5452
- return typeof Array.isArray == "function" ? Array.isArray(n) : hr.call(n) === "[object Array]";
5453
- }, Et = function(n) {
5454
- 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]")
5455
5454
  return !1;
5456
5455
  var t = $e.call(n, "constructor"), r = n.constructor && n.constructor.prototype && $e.call(n.constructor.prototype, "isPrototypeOf");
5457
5456
  if (n.constructor && !t && !r)
@@ -5460,36 +5459,36 @@ var $e = Object.prototype.hasOwnProperty, hr = Object.prototype.toString, wt = O
5460
5459
  for (i in n)
5461
5460
  ;
5462
5461
  return typeof i > "u" || $e.call(n, i);
5463
- }, It = function(n, t) {
5464
- wt && t.name === "__proto__" ? wt(n, t.name, {
5462
+ }, Tt = function(n, t) {
5463
+ St && t.name === "__proto__" ? St(n, t.name, {
5465
5464
  enumerable: !0,
5466
5465
  configurable: !0,
5467
5466
  value: t.newValue,
5468
5467
  writable: !0
5469
5468
  }) : n[t.name] = t.newValue;
5470
- }, Tt = function(n, t) {
5469
+ }, Pt = function(n, t) {
5471
5470
  if (t === "__proto__")
5472
5471
  if ($e.call(n, t)) {
5473
- if (St)
5474
- return St(n, t).value;
5472
+ if (Et)
5473
+ return Et(n, t).value;
5475
5474
  } else return;
5476
5475
  return n[t];
5477
- }, Ha = function e() {
5476
+ }, Ba = function e() {
5478
5477
  var n, t, r, i, l, o, a = arguments[0], u = 1, c = arguments.length, s = !1;
5479
5478
  for (typeof a == "boolean" && (s = a, a = arguments[1] || {}, u = 2), (a == null || typeof a != "object" && typeof a != "function") && (a = {}); u < c; ++u)
5480
5479
  if (n = arguments[u], n != null)
5481
5480
  for (t in n)
5482
- 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 }));
5483
5482
  return a;
5484
5483
  };
5485
- const rn = /* @__PURE__ */ vt(Ha);
5486
- function bn(e) {
5484
+ const ln = /* @__PURE__ */ Dt(Ba);
5485
+ function wn(e) {
5487
5486
  if (typeof e != "object" || e === null)
5488
5487
  return !1;
5489
5488
  const n = Object.getPrototypeOf(e);
5490
5489
  return (n === null || n === Object.prototype || Object.getPrototypeOf(n) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
5491
5490
  }
5492
- function Ua() {
5491
+ function ja() {
5493
5492
  const e = [], n = { run: t, use: r };
5494
5493
  return n;
5495
5494
  function t(...i) {
@@ -5507,7 +5506,7 @@ function Ua() {
5507
5506
  }
5508
5507
  for (; ++f < i.length; )
5509
5508
  (c[f] === null || c[f] === void 0) && (c[f] = i[f]);
5510
- i = c, s ? Va(s, a)(...c) : o(null, ...c);
5509
+ i = c, s ? Ha(s, a)(...c) : o(null, ...c);
5511
5510
  }
5512
5511
  }
5513
5512
  function r(i) {
@@ -5518,7 +5517,7 @@ function Ua() {
5518
5517
  return e.push(i), n;
5519
5518
  }
5520
5519
  }
5521
- function Va(e, n) {
5520
+ function Ha(e, n) {
5522
5521
  let t;
5523
5522
  return r;
5524
5523
  function r(...o) {
@@ -5545,8 +5544,8 @@ function Va(e, n) {
5545
5544
  i(null, o);
5546
5545
  }
5547
5546
  }
5548
- const ae = { basename: qa, dirname: $a, extname: Wa, join: Ya, sep: "/" };
5549
- function qa(e, n) {
5547
+ const ae = { basename: Ua, dirname: Va, extname: qa, join: $a, sep: "/" };
5548
+ function Ua(e, n) {
5550
5549
  if (n !== void 0 && typeof n != "string")
5551
5550
  throw new TypeError('"ext" argument must be a string');
5552
5551
  Be(e);
@@ -5574,7 +5573,7 @@ function qa(e, n) {
5574
5573
  o < 0 && (l = !0, o = i + 1), a > -1 && (e.codePointAt(i) === n.codePointAt(a--) ? a < 0 && (r = i) : (a = -1, r = o));
5575
5574
  return t === r ? r = o : r < 0 && (r = e.length), e.slice(t, r);
5576
5575
  }
5577
- function $a(e) {
5576
+ function Va(e) {
5578
5577
  if (Be(e), e.length === 0)
5579
5578
  return ".";
5580
5579
  let n = -1, t = e.length, r;
@@ -5587,7 +5586,7 @@ function $a(e) {
5587
5586
  } else r || (r = !0);
5588
5587
  return n < 0 ? e.codePointAt(0) === 47 ? "/" : "." : n === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, n);
5589
5588
  }
5590
- function Wa(e) {
5589
+ function qa(e) {
5591
5590
  Be(e);
5592
5591
  let n = e.length, t = -1, r = 0, i = -1, l = 0, o;
5593
5592
  for (; n--; ) {
@@ -5605,19 +5604,19 @@ function Wa(e) {
5605
5604
  l === 0 || // The (right-most) trimmed path component is exactly `..`.
5606
5605
  l === 1 && i === t - 1 && i === r + 1 ? "" : e.slice(i, t);
5607
5606
  }
5608
- function Ya(...e) {
5607
+ function $a(...e) {
5609
5608
  let n = -1, t;
5610
5609
  for (; ++n < e.length; )
5611
5610
  Be(e[n]), e[n] && (t = t === void 0 ? e[n] : t + "/" + e[n]);
5612
- return t === void 0 ? "." : Xa(t);
5611
+ return t === void 0 ? "." : Wa(t);
5613
5612
  }
5614
- function Xa(e) {
5613
+ function Wa(e) {
5615
5614
  Be(e);
5616
5615
  const n = e.codePointAt(0) === 47;
5617
- let t = Qa(e, !n);
5616
+ let t = Ya(e, !n);
5618
5617
  return t.length === 0 && !n && (t = "."), t.length > 0 && e.codePointAt(e.length - 1) === 47 && (t += "/"), n ? "/" + t : t;
5619
5618
  }
5620
- function Qa(e, n) {
5619
+ function Ya(e, n) {
5621
5620
  let t = "", r = 0, i = -1, l = 0, o = -1, a, u;
5622
5621
  for (; ++o <= e.length; ) {
5623
5622
  if (o < e.length)
@@ -5654,18 +5653,18 @@ function Be(e) {
5654
5653
  "Path must be a string. Received " + JSON.stringify(e)
5655
5654
  );
5656
5655
  }
5657
- const Ga = { cwd: Ka };
5658
- function Ka() {
5656
+ const Xa = { cwd: Qa };
5657
+ function Qa() {
5659
5658
  return "/";
5660
5659
  }
5661
- function wn(e) {
5660
+ function Sn(e) {
5662
5661
  return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
5663
5662
  e.auth === void 0);
5664
5663
  }
5665
- function Ja(e) {
5664
+ function Ga(e) {
5666
5665
  if (typeof e == "string")
5667
5666
  e = new URL(e);
5668
- else if (!wn(e)) {
5667
+ else if (!Sn(e)) {
5669
5668
  const n = new TypeError(
5670
5669
  'The "path" argument must be of type string or an instance of URL. Received `' + e + "`"
5671
5670
  );
@@ -5675,9 +5674,9 @@ function Ja(e) {
5675
5674
  const n = new TypeError("The URL must be of scheme file");
5676
5675
  throw n.code = "ERR_INVALID_URL_SCHEME", n;
5677
5676
  }
5678
- return Za(e);
5677
+ return Ka(e);
5679
5678
  }
5680
- function Za(e) {
5679
+ function Ka(e) {
5681
5680
  if (e.hostname !== "") {
5682
5681
  const r = new TypeError(
5683
5682
  'File URL host must be "localhost" or empty on darwin'
@@ -5698,7 +5697,7 @@ function Za(e) {
5698
5697
  }
5699
5698
  return decodeURIComponent(n);
5700
5699
  }
5701
- const ln = (
5700
+ const on = (
5702
5701
  /** @type {const} */
5703
5702
  [
5704
5703
  "history",
@@ -5709,7 +5708,7 @@ const ln = (
5709
5708
  "dirname"
5710
5709
  ]
5711
5710
  );
5712
- class mr {
5711
+ class dr {
5713
5712
  /**
5714
5713
  * Create a new virtual file.
5715
5714
  *
@@ -5734,15 +5733,15 @@ class mr {
5734
5733
  */
5735
5734
  constructor(n) {
5736
5735
  let t;
5737
- 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;
5738
5737
  let r = -1;
5739
- for (; ++r < ln.length; ) {
5740
- const l = ln[r];
5738
+ for (; ++r < on.length; ) {
5739
+ const l = on[r];
5741
5740
  l in t && t[l] !== void 0 && t[l] !== null && (this[l] = l === "history" ? [...t[l]] : t[l]);
5742
5741
  }
5743
5742
  let i;
5744
5743
  for (i in t)
5745
- ln.includes(i) || (this[i] = t[i]);
5744
+ on.includes(i) || (this[i] = t[i]);
5746
5745
  }
5747
5746
  /**
5748
5747
  * Get the basename (including extname) (example: `'index.min.js'`).
@@ -5766,7 +5765,7 @@ class mr {
5766
5765
  * Nothing.
5767
5766
  */
5768
5767
  set basename(n) {
5769
- 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);
5770
5769
  }
5771
5770
  /**
5772
5771
  * Get the parent path (example: `'~'`).
@@ -5788,7 +5787,7 @@ class mr {
5788
5787
  * Nothing.
5789
5788
  */
5790
5789
  set dirname(n) {
5791
- Pt(this.basename, "dirname"), this.path = ae.join(n || "", this.basename);
5790
+ At(this.basename, "dirname"), this.path = ae.join(n || "", this.basename);
5792
5791
  }
5793
5792
  /**
5794
5793
  * Get the extname (including dot) (example: `'.js'`).
@@ -5812,7 +5811,7 @@ class mr {
5812
5811
  * Nothing.
5813
5812
  */
5814
5813
  set extname(n) {
5815
- if (on(n, "extname"), Pt(this.dirname, "extname"), n) {
5814
+ if (an(n, "extname"), At(this.dirname, "extname"), n) {
5816
5815
  if (n.codePointAt(0) !== 46)
5817
5816
  throw new Error("`extname` must start with `.`");
5818
5817
  if (n.includes(".", 1))
@@ -5842,7 +5841,7 @@ class mr {
5842
5841
  * Nothing.
5843
5842
  */
5844
5843
  set path(n) {
5845
- 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);
5846
5845
  }
5847
5846
  /**
5848
5847
  * Get the stem (basename w/o extname) (example: `'index.min'`).
@@ -5866,7 +5865,7 @@ class mr {
5866
5865
  * Nothing.
5867
5866
  */
5868
5867
  set stem(n) {
5869
- 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 || ""));
5870
5869
  }
5871
5870
  // Normal prototypal methods.
5872
5871
  /**
@@ -6079,24 +6078,24 @@ class mr {
6079
6078
  return this.value === void 0 ? "" : typeof this.value == "string" ? this.value : new TextDecoder(n || void 0).decode(this.value);
6080
6079
  }
6081
6080
  }
6082
- function on(e, n) {
6081
+ function an(e, n) {
6083
6082
  if (e && e.includes(ae.sep))
6084
6083
  throw new Error(
6085
6084
  "`" + n + "` cannot be a path: did not expect `" + ae.sep + "`"
6086
6085
  );
6087
6086
  }
6088
- function an(e, n) {
6087
+ function un(e, n) {
6089
6088
  if (!e)
6090
6089
  throw new Error("`" + n + "` cannot be empty");
6091
6090
  }
6092
- function Pt(e, n) {
6091
+ function At(e, n) {
6093
6092
  if (!e)
6094
6093
  throw new Error("Setting `" + n + "` requires `path` to be set too");
6095
6094
  }
6096
- function eu(e) {
6095
+ function Ja(e) {
6097
6096
  return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
6098
6097
  }
6099
- const nu = (
6098
+ const Za = (
6100
6099
  /**
6101
6100
  * @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
6102
6101
  */
@@ -6123,13 +6122,13 @@ const nu = (
6123
6122
  }
6124
6123
  return l;
6125
6124
  }
6126
- ), tu = {}.hasOwnProperty;
6127
- class Fn extends nu {
6125
+ ), eu = {}.hasOwnProperty;
6126
+ class Rn extends Za {
6128
6127
  /**
6129
6128
  * Create a processor.
6130
6129
  */
6131
6130
  constructor() {
6132
- 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();
6133
6132
  }
6134
6133
  /**
6135
6134
  * Copy a processor.
@@ -6145,14 +6144,14 @@ class Fn extends nu {
6145
6144
  copy() {
6146
6145
  const n = (
6147
6146
  /** @type {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>} */
6148
- new Fn()
6147
+ new Rn()
6149
6148
  );
6150
6149
  let t = -1;
6151
6150
  for (; ++t < this.attachers.length; ) {
6152
6151
  const r = this.attachers[t];
6153
6152
  n.use(...r);
6154
6153
  }
6155
- return n.data(rn(!0, {}, this.namespace)), n;
6154
+ return n.data(ln(!0, {}, this.namespace)), n;
6156
6155
  }
6157
6156
  /**
6158
6157
  * Configure the processor with info available to all plugins.
@@ -6214,7 +6213,7 @@ class Fn extends nu {
6214
6213
  * the entire dataset when getting without key.
6215
6214
  */
6216
6215
  data(n, t) {
6217
- 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;
6218
6217
  }
6219
6218
  /**
6220
6219
  * Freeze a processor.
@@ -6268,7 +6267,7 @@ class Fn extends nu {
6268
6267
  parse(n) {
6269
6268
  this.freeze();
6270
6269
  const t = Ve(n), r = this.parser || this.Parser;
6271
- return un("parse", r), r(String(t), t);
6270
+ return sn("parse", r), r(String(t), t);
6272
6271
  }
6273
6272
  /**
6274
6273
  * Process the given file as configured on the processor.
@@ -6314,7 +6313,7 @@ class Fn extends nu {
6314
6313
  */
6315
6314
  process(n, t) {
6316
6315
  const r = this;
6317
- 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);
6318
6317
  function i(l, o) {
6319
6318
  const a = Ve(n), u = (
6320
6319
  /** @type {HeadTree extends undefined ? Node : HeadTree} */
@@ -6329,7 +6328,7 @@ class Fn extends nu {
6329
6328
  /** @type {unknown} */
6330
6329
  f
6331
6330
  ), y = r.stringify(p, d);
6332
- lu(y) ? d.value = y : d.result = y, c(
6331
+ ru(y) ? d.value = y : d.result = y, c(
6333
6332
  s,
6334
6333
  /** @type {VFileWithOutput<CompileResult>} */
6335
6334
  d
@@ -6373,9 +6372,9 @@ class Fn extends nu {
6373
6372
  */
6374
6373
  processSync(n) {
6375
6374
  let t = !1, r;
6376
- 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;
6377
6376
  function i(l, o) {
6378
- t = !0, bt(l), r = o;
6377
+ t = !0, wt(l), r = o;
6379
6378
  }
6380
6379
  }
6381
6380
  /**
@@ -6417,7 +6416,7 @@ class Fn extends nu {
6417
6416
  * transformed tree.
6418
6417
  */
6419
6418
  run(n, t, r) {
6420
- At(n), this.freeze();
6419
+ zt(n), this.freeze();
6421
6420
  const i = this.transformers;
6422
6421
  return !r && typeof t == "function" && (r = t, t = void 0), r ? l(void 0, r) : new Promise(l);
6423
6422
  function l(o, a) {
@@ -6451,9 +6450,9 @@ class Fn extends nu {
6451
6450
  */
6452
6451
  runSync(n, t) {
6453
6452
  let r = !1, i;
6454
- return this.run(n, t, l), zt("runSync", "run", r), i;
6453
+ return this.run(n, t, l), Lt("runSync", "run", r), i;
6455
6454
  function l(o, a) {
6456
- bt(o), i = a, r = !0;
6455
+ wt(o), i = a, r = !0;
6457
6456
  }
6458
6457
  }
6459
6458
  /**
@@ -6488,7 +6487,7 @@ class Fn extends nu {
6488
6487
  stringify(n, t) {
6489
6488
  this.freeze();
6490
6489
  const r = Ve(t), i = this.compiler || this.Compiler;
6491
- return sn("stringify", i), At(n), i(n, r);
6490
+ return cn("stringify", i), zt(n), i(n, r);
6492
6491
  }
6493
6492
  /**
6494
6493
  * Configure the processor to use a plugin, a list of usable values, or a
@@ -6549,7 +6548,7 @@ class Fn extends nu {
6549
6548
  */
6550
6549
  use(n, ...t) {
6551
6550
  const r = this.attachers, i = this.namespace;
6552
- if (cn("use", this.frozen), n != null) if (typeof n == "function")
6551
+ if (pn("use", this.frozen), n != null) if (typeof n == "function")
6553
6552
  u(n, t);
6554
6553
  else if (typeof n == "object")
6555
6554
  Array.isArray(n) ? a(n) : o(n);
@@ -6576,7 +6575,7 @@ class Fn extends nu {
6576
6575
  throw new Error(
6577
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"
6578
6577
  );
6579
- 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));
6580
6579
  }
6581
6580
  function a(c) {
6582
6581
  let s = -1;
@@ -6600,49 +6599,49 @@ class Fn extends nu {
6600
6599
  else if (s.length > 0) {
6601
6600
  let [p, ...y] = s;
6602
6601
  const b = r[d][1];
6603
- 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];
6604
6603
  }
6605
6604
  }
6606
6605
  }
6607
6606
  }
6608
- const ru = new Fn().freeze();
6609
- function un(e, n) {
6607
+ const nu = new Rn().freeze();
6608
+ function sn(e, n) {
6610
6609
  if (typeof n != "function")
6611
6610
  throw new TypeError("Cannot `" + e + "` without `parser`");
6612
6611
  }
6613
- function sn(e, n) {
6612
+ function cn(e, n) {
6614
6613
  if (typeof n != "function")
6615
6614
  throw new TypeError("Cannot `" + e + "` without `compiler`");
6616
6615
  }
6617
- function cn(e, n) {
6616
+ function pn(e, n) {
6618
6617
  if (n)
6619
6618
  throw new Error(
6620
6619
  "Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
6621
6620
  );
6622
6621
  }
6623
- function At(e) {
6624
- if (!bn(e) || typeof e.type != "string")
6622
+ function zt(e) {
6623
+ if (!wn(e) || typeof e.type != "string")
6625
6624
  throw new TypeError("Expected node, got `" + e + "`");
6626
6625
  }
6627
- function zt(e, n, t) {
6626
+ function Lt(e, n, t) {
6628
6627
  if (!t)
6629
6628
  throw new Error(
6630
6629
  "`" + e + "` finished async. Use `" + n + "` instead"
6631
6630
  );
6632
6631
  }
6633
6632
  function Ve(e) {
6634
- return iu(e) ? e : new mr(e);
6633
+ return tu(e) ? e : new dr(e);
6635
6634
  }
6636
- function iu(e) {
6635
+ function tu(e) {
6637
6636
  return !!(e && typeof e == "object" && "message" in e && "messages" in e);
6638
6637
  }
6639
- function lu(e) {
6640
- return typeof e == "string" || ou(e);
6638
+ function ru(e) {
6639
+ return typeof e == "string" || iu(e);
6641
6640
  }
6642
- function ou(e) {
6641
+ function iu(e) {
6643
6642
  return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
6644
6643
  }
6645
- 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 = [
6646
6645
  { from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
6647
6646
  { from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
6648
6647
  {
@@ -6675,22 +6674,22 @@ const au = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
6675
6674
  { from: "transformImageUri", id: "#add-urltransform", to: "urlTransform" },
6676
6675
  { from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
6677
6676
  ];
6678
- function yu(e) {
6679
- const n = cu(e), t = pu(e);
6680
- 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);
6681
6680
  }
6682
- function cu(e) {
6683
- const n = e.rehypePlugins || Lt, t = e.remarkPlugins || Lt, r = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...Ot } : Ot;
6684
- 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);
6685
6684
  }
6686
- function pu(e) {
6687
- const n = e.children || "", t = new mr();
6685
+ function su(e) {
6686
+ const n = e.children || "", t = new dr();
6688
6687
  return typeof n == "string" && (t.value = n), t;
6689
6688
  }
6690
- function fu(e, n) {
6691
- const t = n.allowedElements, r = n.allowElement, i = n.components, l = n.disallowedElements, o = n.skipHtml, a = n.unwrapDisallowed, u = n.urlTransform || hu;
6692
- for (const s of su)
6693
- 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);
6694
6693
  return n.className && (e = {
6695
6694
  type: "element",
6696
6695
  tagName: "div",
@@ -6700,15 +6699,15 @@ function fu(e, n) {
6700
6699
  /** @type {Array<ElementContent>} */
6701
6700
  e.type === "root" ? e.children : [e]
6702
6701
  )
6703
- }), fr(e, c), Ei(e, {
6704
- Fragment: Tr,
6702
+ }), hr(e, c), Si(e, {
6703
+ Fragment: Ze.Fragment,
6705
6704
  // @ts-expect-error
6706
6705
  // React components are allowed to return numbers,
6707
6706
  // but not according to the types in hast-util-to-jsx-runtime
6708
6707
  components: i,
6709
6708
  ignoreInvalidStyle: !0,
6710
- jsx: Ir,
6711
- jsxs: Er,
6709
+ jsx: Ze.jsx,
6710
+ jsxs: Ze.jsxs,
6712
6711
  passKeys: !0,
6713
6712
  passNode: !0
6714
6713
  });
@@ -6717,9 +6716,9 @@ function fu(e, n) {
6717
6716
  return o ? d.children.splice(f, 1) : d.children[f] = { type: "text", value: s.value }, f;
6718
6717
  if (s.type === "element") {
6719
6718
  let p;
6720
- for (p in en)
6721
- if (Object.hasOwn(en, p) && Object.hasOwn(s.properties, p)) {
6722
- 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];
6723
6722
  (b === null || b.includes(s.tagName)) && (s.properties[p] = u(String(y || ""), p, s));
6724
6723
  }
6725
6724
  }
@@ -6730,16 +6729,16 @@ function fu(e, n) {
6730
6729
  }
6731
6730
  }
6732
6731
  }
6733
- function hu(e) {
6732
+ function pu(e) {
6734
6733
  const n = e.indexOf(":"), t = e.indexOf("?"), r = e.indexOf("#"), i = e.indexOf("/");
6735
6734
  return (
6736
6735
  // If there is no protocol, it’s relative.
6737
6736
  n === -1 || // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.
6738
6737
  i !== -1 && n > i || t !== -1 && n > t || r !== -1 && n > r || // It is a protocol, it should be allowed.
6739
- uu.test(e.slice(0, n)) ? e : ""
6738
+ ou.test(e.slice(0, n)) ? e : ""
6740
6739
  );
6741
6740
  }
6742
6741
  export {
6743
- yu as default,
6744
- hu as defaultUrlTransform
6742
+ mu as default,
6743
+ pu as defaultUrlTransform
6745
6744
  };