@finogeeks2026/chatkit-web 0.0.10 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +24 -6
  2. package/dist/index.js +1101 -1091
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as sn from "react";
2
- import gn, { useRef as we, useEffect as We, useCallback as Oe, useState as et, useMemo as Ct, useImperativeHandle as dl, useLayoutEffect as fl, createContext as sa, useContext as la, forwardRef as pl, createElement as Oi } from "react";
2
+ import gn, { useRef as we, useState as Xe, useEffect as We, useCallback as Ae, useMemo as Ct, useImperativeHandle as dl, useLayoutEffect as fl, createContext as sa, useContext as la, forwardRef as pl, createElement as Oi } from "react";
3
3
  function Mi(e) {
4
4
  try {
5
5
  const t = JSON.parse(e);
@@ -163,7 +163,7 @@ class El {
163
163
  let i = n != null && n.assistantMessageId ? this.session.messages.find((f) => f.id === n.assistantMessageId) : null;
164
164
  if (i || (i = bl(), this.session.messages.push(i)), !this.session.messages.some((f) => f.role === "user" && f.content === r)) {
165
165
  const f = ml(r), g = this.session.messages.indexOf(i);
166
- this.session.messages.splice(g, 0, f), this.session.messages.filter((m) => m.role === "user").length === 1 && (this.session.title = ua(r));
166
+ this.session.messages.splice(g, 0, f), this.session.messages.filter((E) => E.role === "user").length === 1 && (this.session.title = ua(r));
167
167
  }
168
168
  this.session.updatedAt = (/* @__PURE__ */ new Date()).toISOString(), this.abortController = new AbortController();
169
169
  const o = this.session.threadId ?? `thread-${Date.now()}`, s = `run-${Date.now()}`, l = this.session.messages.filter((f) => f.role !== "assistant" || f.content || f.uiResources && f.uiResources.length > 0).map((f) => ({ role: f.role, content: f.content })), c = {
@@ -553,16 +553,16 @@ function Tl() {
553
553
  }
554
554
  var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, i = e.useEffect, a = e.useLayoutEffect, o = e.useDebugValue;
555
555
  function s(u, p) {
556
- var f = p(), g = r({ inst: { value: f, getSnapshot: p } }), m = g[0].inst, _ = g[1];
556
+ var f = p(), g = r({ inst: { value: f, getSnapshot: p } }), E = g[0].inst, _ = g[1];
557
557
  return a(
558
558
  function() {
559
- m.value = f, m.getSnapshot = p, l(m) && _({ inst: m });
559
+ E.value = f, E.getSnapshot = p, l(E) && _({ inst: E });
560
560
  },
561
561
  [u, f, p]
562
562
  ), i(
563
563
  function() {
564
- return l(m) && _({ inst: m }), u(function() {
565
- l(m) && _({ inst: m });
564
+ return l(E) && _({ inst: E }), u(function() {
565
+ l(E) && _({ inst: E });
566
566
  });
567
567
  },
568
568
  [u]
@@ -609,31 +609,31 @@ function Cl() {
609
609
  return lr.useSyncExternalStoreWithSelector = function(c, d, u, p, f) {
610
610
  var g = a(null);
611
611
  if (g.current === null) {
612
- var m = { hasValue: !1, value: null };
613
- g.current = m;
614
- } else m = g.current;
612
+ var E = { hasValue: !1, value: null };
613
+ g.current = E;
614
+ } else E = g.current;
615
615
  g = s(
616
616
  function() {
617
- function b(k) {
617
+ function m(k) {
618
618
  if (!w) {
619
- if (w = !0, x = k, k = p(k), f !== void 0 && m.hasValue) {
620
- var M = m.value;
619
+ if (w = !0, x = k, k = p(k), f !== void 0 && E.hasValue) {
620
+ var M = E.value;
621
621
  if (f(M, k))
622
622
  return v = M;
623
623
  }
624
624
  return v = k;
625
625
  }
626
626
  if (M = v, r(x, k)) return M;
627
- var F = p(k);
628
- return f !== void 0 && f(M, F) ? (x = k, M) : (x = k, v = F);
627
+ var P = p(k);
628
+ return f !== void 0 && f(M, P) ? (x = k, M) : (x = k, v = P);
629
629
  }
630
630
  var w = !1, x, v, O = u === void 0 ? null : u;
631
631
  return [
632
632
  function() {
633
- return b(d());
633
+ return m(d());
634
634
  },
635
635
  O === null ? void 0 : function() {
636
- return b(O());
636
+ return m(O());
637
637
  }
638
638
  ];
639
639
  },
@@ -642,7 +642,7 @@ function Cl() {
642
642
  var _ = i(c, g[0], g[1]);
643
643
  return o(
644
644
  function() {
645
- m.hasValue = !0, m.value = _;
645
+ E.hasValue = !0, E.value = _;
646
646
  },
647
647
  [_]
648
648
  ), l(_), _;
@@ -991,15 +991,22 @@ async function tc() {
991
991
  Ql(),
992
992
  ec()
993
993
  ]);
994
- t.length > 0 && Ne.setState({
995
- sessions: t,
996
- currentSessionId: n || ((e = t[0]) == null ? void 0 : e.id) || null
997
- });
994
+ if (t.length > 0) {
995
+ const r = n && t.some((i) => i.id === n) ? n : ((e = t[0]) == null ? void 0 : e.id) ?? null;
996
+ Ne.setState({
997
+ sessions: t,
998
+ currentSessionId: r
999
+ });
1000
+ }
998
1001
  } catch (t) {
999
1002
  console.warn("[chatkit-store] Failed to load from IndexedDB:", t);
1000
1003
  }
1001
1004
  At == null || At(), At = Ne.subscribe((t) => {
1002
- Zl(t.sessions).catch(console.warn), Jl(t.currentSessionId).catch(console.warn);
1005
+ var a;
1006
+ const n = t.sessions.filter((o) => o.messages.length > 0);
1007
+ Zl(n).catch(console.warn);
1008
+ const i = t.currentSessionId && t.sessions.some((o) => o.id === t.currentSessionId && o.messages.length > 0) ? t.currentSessionId : ((a = n[0]) == null ? void 0 : a.id) ?? null;
1009
+ Jl(i).catch(console.warn);
1003
1010
  });
1004
1011
  }
1005
1012
  function ly() {
@@ -1070,68 +1077,71 @@ function nc(e, t) {
1070
1077
  (e.type === "RUN_FINISHED" || e.type === "message.done" || e.type === "TEXT_MESSAGE_END" || e.type === "RUN_ERROR") && (n.setMessageStreaming((i == null ? void 0 : i.id) ?? t, !1), n.setLoading(!1));
1071
1078
  }
1072
1079
  function cy(e) {
1073
- const t = we(null), n = we(null), r = we(null), i = Ne.getState(), a = Ne((f) => f.sessions), o = Ne((f) => f.currentSessionId), s = Ne((f) => {
1074
- const g = f.sessions.find((m) => m.id === f.currentSessionId);
1075
- return (g == null ? void 0 : g.messages) ?? [];
1076
- }), l = Ne((f) => f.isLoading), c = Ne((f) => f.pinSession);
1080
+ const t = we(null), n = we(null), r = we(null), [i, a] = Xe(!1), o = Ne.getState(), s = Ne((m) => m.sessions), l = Ne((m) => m.currentSessionId), c = Ne((m) => {
1081
+ const w = m.sessions.find((x) => x.id === m.currentSessionId);
1082
+ return (w == null ? void 0 : w.messages) ?? [];
1083
+ }), d = Ne((m) => m.isLoading), u = Ne((m) => m.pinSession);
1077
1084
  We(() => {
1078
1085
  e.persist && tc();
1079
1086
  }, [e.persist]);
1080
- const d = Oe(() => (t.current || (t.current = new da(e)), t.current), [e.apiUrl, e.getBearerToken]);
1087
+ const p = Ae(() => (t.current || (t.current = new da(e)), t.current), [e.apiUrl, e.getBearerToken]);
1081
1088
  We(() => {
1082
- if (!o)
1089
+ if (!l)
1083
1090
  return;
1084
- const f = d(), g = Ne.getState().sessions.find((_) => _.id === o);
1085
- if (!g)
1091
+ const m = p(), w = Ne.getState().sessions.find((v) => v.id === l);
1092
+ if (!w)
1086
1093
  return;
1087
- let m = f.getConversation(o);
1088
- return m || (m = f.createConversation({ session: g })), n.current = m, () => {
1094
+ let x = m.getConversation(l);
1095
+ return x || (x = m.createConversation({ session: w })), n.current = x, () => {
1089
1096
  n.current = null;
1090
1097
  };
1091
- }, [o, d]);
1092
- const u = Oe(async (f) => {
1093
- var _;
1094
- if (!f.trim() || Ne.getState().isLoading)
1098
+ }, [l, p]);
1099
+ const f = Ae(async (m) => {
1100
+ var v;
1101
+ if (!m.trim() || Ne.getState().isLoading)
1095
1102
  return;
1096
- const g = Ne.getState();
1097
- g.currentSessionId || g.createSession(), g.addMessage("user", f.trim());
1098
- const m = g.addMessage("assistant", "", null, []);
1099
- g.setMessageStreaming(m, !0), g.setLoading(!0), (_ = r.current) == null || _.call(r);
1103
+ const w = Ne.getState();
1104
+ w.currentSessionId || w.createSession(), w.addMessage("user", m.trim());
1105
+ const x = w.addMessage("assistant", "", null, []);
1106
+ w.setMessageStreaming(x, !0), w.setLoading(!0), (v = r.current) == null || v.call(r);
1100
1107
  try {
1101
- const b = d(), w = Ne.getState().sessions.find((M) => M.id === Ne.getState().currentSessionId);
1102
- if (!w) {
1103
- g.setLoading(!1);
1108
+ const O = p(), k = Ne.getState().sessions.find((D) => D.id === Ne.getState().currentSessionId);
1109
+ if (!k) {
1110
+ w.setLoading(!1);
1104
1111
  return;
1105
1112
  }
1106
- let x = b.getConversation(w.id);
1107
- x || (x = b.createConversation({ session: w })), x.session = w, r.current = x.onEvent((M) => {
1108
- nc(M, m);
1109
- }), await x.sendMessage(f.trim(), { assistantMessageId: m }), x.session.threadId && w.id && g.setThreadId(w.id, x.session.threadId);
1110
- const v = Ne.getState();
1111
- v.isLoading && v.setLoading(!1);
1112
- const O = v.sessions.find((M) => M.id === v.currentSessionId), k = O == null ? void 0 : O.messages.find((M) => M.id === m);
1113
- k != null && k.isStreaming && v.setMessageStreaming(m, !1);
1114
- } catch (b) {
1115
- const w = Ne.getState();
1116
- throw w.setLoading(!1), w.setMessageStreaming(m, !1), b;
1117
- }
1118
- }, [d]), p = Oe(() => {
1119
- var f;
1120
- (f = n.current) == null || f.stop();
1121
- }, []);
1113
+ let M = O.getConversation(k.id);
1114
+ M || (M = O.createConversation({ session: k })), M.session = k, r.current = M.onEvent((D) => {
1115
+ nc(D, x);
1116
+ }), await M.sendMessage(m.trim(), { assistantMessageId: x }), M.session.threadId && k.id && w.setThreadId(k.id, M.session.threadId);
1117
+ const P = Ne.getState();
1118
+ P.isLoading && P.setLoading(!1);
1119
+ const U = P.sessions.find((D) => D.id === P.currentSessionId), S = U == null ? void 0 : U.messages.find((D) => D.id === x);
1120
+ S != null && S.isStreaming && P.setMessageStreaming(x, !1);
1121
+ } catch (O) {
1122
+ const k = Ne.getState();
1123
+ throw k.setLoading(!1), k.setMessageStreaming(x, !1), O;
1124
+ }
1125
+ }, [p]), g = Ae(() => {
1126
+ var m;
1127
+ (m = n.current) == null || m.stop();
1128
+ }, []), E = Ae(() => a(!0), []), _ = Ae(() => a(!1), []);
1122
1129
  return {
1123
- sessions: a,
1124
- currentSessionId: o,
1125
- messages: s,
1126
- isLoading: l,
1127
- sendMessage: u,
1128
- stop: p,
1129
- createSession: i.createSession,
1130
- switchSession: i.switchSession,
1131
- deleteSession: i.deleteSession,
1132
- pinSession: c,
1133
- runtime: d(),
1134
- // MCP-UI 回调透传
1130
+ sessions: s,
1131
+ currentSessionId: l,
1132
+ messages: c,
1133
+ isLoading: d,
1134
+ sendMessage: f,
1135
+ stop: g,
1136
+ createSession: o.createSession,
1137
+ startNewConversation: o.createSession,
1138
+ switchSession: o.switchSession,
1139
+ deleteSession: o.deleteSession,
1140
+ pinSession: u,
1141
+ historyPanelOpen: i,
1142
+ openHistory: E,
1143
+ closeHistory: _,
1144
+ runtime: p(),
1135
1145
  onCallTool: e.onCallTool,
1136
1146
  onTriggerIntent: e.onTriggerIntent,
1137
1147
  onSubmitPrompt: e.onSubmitPrompt,
@@ -1149,7 +1159,7 @@ function dy() {
1149
1159
  return { sessions: e, currentSessionId: t, switchSession: n };
1150
1160
  }
1151
1161
  function rc(e) {
1152
- const [t, n] = et("online");
1162
+ const [t, n] = Xe("online");
1153
1163
  return We(() => {
1154
1164
  if (!e) {
1155
1165
  n("online");
@@ -1258,9 +1268,9 @@ var aa;
1258
1268
  Vn = !1;
1259
1269
  });
1260
1270
  const uc = (e = {}) => {
1261
- const [t, n] = et(!1), [r, i] = et(e.initial !== !1), [a, o] = et(!1), s = we(null);
1271
+ const [t, n] = Xe(!1), [r, i] = Xe(e.initial !== !1), [a, o] = Xe(!1), s = we(null);
1262
1272
  s.current = e;
1263
- const l = Oe(() => {
1273
+ const l = Ae(() => {
1264
1274
  var v;
1265
1275
  if (!Vn)
1266
1276
  return !1;
@@ -1269,9 +1279,9 @@ const uc = (e = {}) => {
1269
1279
  return !1;
1270
1280
  const x = w.getRangeAt(0);
1271
1281
  return x.commonAncestorContainer.contains(_.current) || ((v = _.current) == null ? void 0 : v.contains(x.commonAncestorContainer));
1272
- }, []), c = Oe((w) => {
1282
+ }, []), c = Ae((w) => {
1273
1283
  u.isAtBottom = w, i(w);
1274
- }, []), d = Oe((w) => {
1284
+ }, []), d = Ae((w) => {
1275
1285
  u.escapedFromLock = w, n(w);
1276
1286
  }, []), u = Ct(() => {
1277
1287
  let w;
@@ -1290,10 +1300,10 @@ const uc = (e = {}) => {
1290
1300
  _.current && (_.current.scrollTop = x, u.ignoreScrollToTop = _.current.scrollTop);
1291
1301
  },
1292
1302
  get targetScrollTop() {
1293
- return !_.current || !b.current ? 0 : _.current.scrollHeight - 1 - _.current.clientHeight;
1303
+ return !_.current || !m.current ? 0 : _.current.scrollHeight - 1 - _.current.clientHeight;
1294
1304
  },
1295
1305
  get calculatedTargetScrollTop() {
1296
- if (!_.current || !b.current)
1306
+ if (!_.current || !m.current)
1297
1307
  return 0;
1298
1308
  const { targetScrollTop: x } = this;
1299
1309
  if (!e.targetScrollTop)
@@ -1302,7 +1312,7 @@ const uc = (e = {}) => {
1302
1312
  return w.calculatedScrollTop;
1303
1313
  const v = Math.max(Math.min(e.targetScrollTop(x, {
1304
1314
  scrollElement: _.current,
1305
- contentElement: b.current
1315
+ contentElement: m.current
1306
1316
  }), x), 0);
1307
1317
  return w = { targetScrollTop: x, calculatedScrollTop: v }, requestAnimationFrame(() => {
1308
1318
  w = void 0;
@@ -1315,50 +1325,50 @@ const uc = (e = {}) => {
1315
1325
  return this.scrollDifference <= sc;
1316
1326
  }
1317
1327
  };
1318
- }, []), p = Oe((w = {}) => {
1319
- var H;
1328
+ }, []), p = Ae((w = {}) => {
1329
+ var U;
1320
1330
  typeof w == "string" && (w = { animation: w }), w.preserveScrollPosition || c(!0);
1321
1331
  const x = Date.now() + (Number(w.wait) || 0), v = mr(s.current, w.animation), { ignoreEscapes: O = !1 } = w;
1322
1332
  let k, M = u.calculatedTargetScrollTop;
1323
1333
  w.duration instanceof Promise ? w.duration.finally(() => {
1324
1334
  k = Date.now();
1325
1335
  }) : k = x + (w.duration ?? 0);
1326
- const F = async () => {
1336
+ const P = async () => {
1327
1337
  const S = new Promise(requestAnimationFrame).then(() => {
1328
1338
  var A;
1329
1339
  if (!u.isAtBottom)
1330
1340
  return u.animation = void 0, !1;
1331
- const { scrollTop: B } = u, z = performance.now(), I = (z - (u.lastTick ?? z)) / lc;
1341
+ const { scrollTop: D } = u, z = performance.now(), I = (z - (u.lastTick ?? z)) / lc;
1332
1342
  if (u.animation || (u.animation = { behavior: v, promise: S, ignoreEscapes: O }), u.animation.behavior === v && (u.lastTick = z), l() || x > Date.now())
1333
- return F();
1334
- if (B < Math.min(M, u.calculatedTargetScrollTop)) {
1343
+ return P();
1344
+ if (D < Math.min(M, u.calculatedTargetScrollTop)) {
1335
1345
  if (((A = u.animation) == null ? void 0 : A.behavior) === v) {
1336
1346
  if (v === "instant")
1337
- return u.scrollTop = u.calculatedTargetScrollTop, F();
1338
- u.velocity = (v.damping * u.velocity + v.stiffness * u.scrollDifference) / v.mass, u.accumulated += u.velocity * I, u.scrollTop += u.accumulated, u.scrollTop !== B && (u.accumulated = 0);
1347
+ return u.scrollTop = u.calculatedTargetScrollTop, P();
1348
+ u.velocity = (v.damping * u.velocity + v.stiffness * u.scrollDifference) / v.mass, u.accumulated += u.velocity * I, u.scrollTop += u.accumulated, u.scrollTop !== D && (u.accumulated = 0);
1339
1349
  }
1340
- return F();
1350
+ return P();
1341
1351
  }
1342
- return k > Date.now() ? (M = u.calculatedTargetScrollTop, F()) : (u.animation = void 0, u.scrollTop < u.calculatedTargetScrollTop ? p({
1352
+ return k > Date.now() ? (M = u.calculatedTargetScrollTop, P()) : (u.animation = void 0, u.scrollTop < u.calculatedTargetScrollTop ? p({
1343
1353
  animation: mr(s.current, s.current.resize),
1344
1354
  ignoreEscapes: O,
1345
1355
  duration: Math.max(0, k - Date.now()) || void 0
1346
1356
  }) : u.isAtBottom);
1347
1357
  });
1348
- return S.then((B) => (requestAnimationFrame(() => {
1358
+ return S.then((D) => (requestAnimationFrame(() => {
1349
1359
  u.animation || (u.lastTick = void 0, u.velocity = 0);
1350
- }), B));
1360
+ }), D));
1351
1361
  };
1352
- return w.wait !== !0 && (u.animation = void 0), ((H = u.animation) == null ? void 0 : H.behavior) === v ? u.animation.promise : F();
1353
- }, [c, l, u]), f = Oe(() => {
1362
+ return w.wait !== !0 && (u.animation = void 0), ((U = u.animation) == null ? void 0 : U.behavior) === v ? u.animation.promise : P();
1363
+ }, [c, l, u]), f = Ae(() => {
1354
1364
  d(!0), c(!1);
1355
- }, [d, c]), g = Oe(({ target: w }) => {
1365
+ }, [d, c]), g = Ae(({ target: w }) => {
1356
1366
  if (w !== _.current)
1357
1367
  return;
1358
1368
  const { scrollTop: x, ignoreScrollToTop: v } = u;
1359
1369
  let { lastScrollTop: O = x } = u;
1360
1370
  u.lastScrollTop = x, u.ignoreScrollToTop = void 0, v && v > x && (O = v), o(u.isNearBottom), setTimeout(() => {
1361
- var F;
1371
+ var P;
1362
1372
  if (u.resizeDifference || x === v)
1363
1373
  return;
1364
1374
  if (l()) {
@@ -1366,13 +1376,13 @@ const uc = (e = {}) => {
1366
1376
  return;
1367
1377
  }
1368
1378
  const k = x > O, M = x < O;
1369
- if ((F = u.animation) != null && F.ignoreEscapes) {
1379
+ if ((P = u.animation) != null && P.ignoreEscapes) {
1370
1380
  u.scrollTop = O;
1371
1381
  return;
1372
1382
  }
1373
1383
  M && (d(!0), c(!1)), k && d(!1), !u.escapedFromLock && u.isNearBottom && c(!0);
1374
1384
  }, 1);
1375
- }, [d, c, l, u]), m = Oe(({ target: w, deltaY: x }) => {
1385
+ }, [d, c, l, u]), E = Ae(({ target: w, deltaY: x }) => {
1376
1386
  var O;
1377
1387
  let v = w;
1378
1388
  for (; !["scroll", "auto"].includes(getComputedStyle(v).overflow); ) {
@@ -1383,33 +1393,33 @@ const uc = (e = {}) => {
1383
1393
  v === _.current && x < 0 && _.current.scrollHeight > _.current.clientHeight && !((O = u.animation) != null && O.ignoreEscapes) && (d(!0), c(!1));
1384
1394
  }, [d, c, u]), _ = Vi((w) => {
1385
1395
  var x, v;
1386
- (x = _.current) == null || x.removeEventListener("scroll", g), (v = _.current) == null || v.removeEventListener("wheel", m), w == null || w.addEventListener("scroll", g, { passive: !0 }), w == null || w.addEventListener("wheel", m, { passive: !0 });
1387
- }, []), b = Vi((w) => {
1396
+ (x = _.current) == null || x.removeEventListener("scroll", g), (v = _.current) == null || v.removeEventListener("wheel", E), w == null || w.addEventListener("scroll", g, { passive: !0 }), w == null || w.addEventListener("wheel", E, { passive: !0 });
1397
+ }, []), m = Vi((w) => {
1388
1398
  var v, O;
1389
1399
  if ((v = u.resizeObserver) == null || v.disconnect(), !w)
1390
1400
  return;
1391
1401
  let x;
1392
1402
  u.resizeObserver = new ResizeObserver(([k]) => {
1393
- const { height: M } = k.contentRect, F = M - (x ?? M);
1394
- if (u.resizeDifference = F, u.scrollTop > u.targetScrollTop && (u.scrollTop = u.targetScrollTop), o(u.isNearBottom), F >= 0) {
1395
- const H = mr(s.current, x ? s.current.resize : s.current.initial);
1403
+ const { height: M } = k.contentRect, P = M - (x ?? M);
1404
+ if (u.resizeDifference = P, u.scrollTop > u.targetScrollTop && (u.scrollTop = u.targetScrollTop), o(u.isNearBottom), P >= 0) {
1405
+ const U = mr(s.current, x ? s.current.resize : s.current.initial);
1396
1406
  p({
1397
- animation: H,
1407
+ animation: U,
1398
1408
  wait: !0,
1399
1409
  preserveScrollPosition: !0,
1400
- duration: H === "instant" ? void 0 : cc
1410
+ duration: U === "instant" ? void 0 : cc
1401
1411
  });
1402
1412
  } else
1403
1413
  u.isNearBottom && (d(!1), c(!0));
1404
1414
  x = M, requestAnimationFrame(() => {
1405
1415
  setTimeout(() => {
1406
- u.resizeDifference === F && (u.resizeDifference = 0);
1416
+ u.resizeDifference === P && (u.resizeDifference = 0);
1407
1417
  }, 1);
1408
1418
  });
1409
1419
  }), (O = u.resizeObserver) == null || O.observe(w);
1410
1420
  }, []);
1411
1421
  return {
1412
- contentRef: b,
1422
+ contentRef: m,
1413
1423
  scrollRef: _,
1414
1424
  scrollToBottom: p,
1415
1425
  stopScroll: f,
@@ -1420,7 +1430,7 @@ const uc = (e = {}) => {
1420
1430
  };
1421
1431
  };
1422
1432
  function Vi(e, t) {
1423
- const n = Oe((r) => (n.current = r, e(r)), t);
1433
+ const n = Ae((r) => (n.current = r, e(r)), t);
1424
1434
  return n;
1425
1435
  }
1426
1436
  const hr = /* @__PURE__ */ new Map();
@@ -1453,11 +1463,11 @@ function Fn({ instance: e, children: t, resize: n, initial: r, mass: i, damping:
1453
1463
  resize: n,
1454
1464
  initial: r,
1455
1465
  targetScrollTop: u
1456
- }), { scrollRef: f, contentRef: g, scrollToBottom: m, stopScroll: _, isAtBottom: b, escapedFromLock: w, state: x } = e ?? p, v = Ct(() => ({
1457
- scrollToBottom: m,
1466
+ }), { scrollRef: f, contentRef: g, scrollToBottom: E, stopScroll: _, isAtBottom: m, escapedFromLock: w, state: x } = e ?? p, v = Ct(() => ({
1467
+ scrollToBottom: E,
1458
1468
  stopScroll: _,
1459
1469
  scrollRef: f,
1460
- isAtBottom: b,
1470
+ isAtBottom: m,
1461
1471
  escapedFromLock: w,
1462
1472
  contentRef: g,
1463
1473
  state: x,
@@ -1468,8 +1478,8 @@ function Fn({ instance: e, children: t, resize: n, initial: r, mass: i, damping:
1468
1478
  d.current = O;
1469
1479
  }
1470
1480
  }), [
1481
+ E,
1471
1482
  m,
1472
- b,
1473
1483
  g,
1474
1484
  f,
1475
1485
  _,
@@ -1575,7 +1585,7 @@ Ge.prototype.property = "";
1575
1585
  Ge.prototype.spaceSeparated = !1;
1576
1586
  Ge.prototype.space = void 0;
1577
1587
  let yc = 0;
1578
- const re = Ut(), Te = Ut(), Gr = Ut(), D = Ut(), xe = Ut(), Vt = Ut(), Ye = Ut();
1588
+ const re = Ut(), Te = Ut(), Gr = Ut(), L = Ut(), xe = Ut(), Vt = Ut(), Ye = Ut();
1579
1589
  function Ut() {
1580
1590
  return 2 ** ++yc;
1581
1591
  }
@@ -1585,7 +1595,7 @@ const qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1585
1595
  booleanish: Te,
1586
1596
  commaOrSpaceSeparated: Ye,
1587
1597
  commaSeparated: Vt,
1588
- number: D,
1598
+ number: L,
1589
1599
  overloadedBoolean: Gr,
1590
1600
  spaceSeparated: xe
1591
1601
  }, Symbol.toStringTag, { value: "Module" })), br = (
@@ -1639,9 +1649,9 @@ const Ea = Xt({
1639
1649
  ariaAutoComplete: null,
1640
1650
  ariaBusy: Te,
1641
1651
  ariaChecked: Te,
1642
- ariaColCount: D,
1643
- ariaColIndex: D,
1644
- ariaColSpan: D,
1652
+ ariaColCount: L,
1653
+ ariaColIndex: L,
1654
+ ariaColSpan: L,
1645
1655
  ariaControls: xe,
1646
1656
  ariaCurrent: null,
1647
1657
  ariaDescribedBy: xe,
@@ -1658,7 +1668,7 @@ const Ea = Xt({
1658
1668
  ariaKeyShortcuts: null,
1659
1669
  ariaLabel: null,
1660
1670
  ariaLabelledBy: xe,
1661
- ariaLevel: D,
1671
+ ariaLevel: L,
1662
1672
  ariaLive: null,
1663
1673
  ariaModal: Te,
1664
1674
  ariaMultiLine: Te,
@@ -1666,21 +1676,21 @@ const Ea = Xt({
1666
1676
  ariaOrientation: null,
1667
1677
  ariaOwns: xe,
1668
1678
  ariaPlaceholder: null,
1669
- ariaPosInSet: D,
1679
+ ariaPosInSet: L,
1670
1680
  ariaPressed: Te,
1671
1681
  ariaReadOnly: Te,
1672
1682
  ariaRelevant: null,
1673
1683
  ariaRequired: Te,
1674
1684
  ariaRoleDescription: xe,
1675
- ariaRowCount: D,
1676
- ariaRowIndex: D,
1677
- ariaRowSpan: D,
1685
+ ariaRowCount: L,
1686
+ ariaRowIndex: L,
1687
+ ariaRowSpan: L,
1678
1688
  ariaSelected: Te,
1679
- ariaSetSize: D,
1689
+ ariaSetSize: L,
1680
1690
  ariaSort: null,
1681
- ariaValueMax: D,
1682
- ariaValueMin: D,
1683
- ariaValueNow: D,
1691
+ ariaValueMax: L,
1692
+ ariaValueMin: L,
1693
+ ariaValueNow: L,
1684
1694
  ariaValueText: null,
1685
1695
  role: null
1686
1696
  },
@@ -1726,13 +1736,13 @@ const Ec = Xt({
1726
1736
  checked: re,
1727
1737
  cite: null,
1728
1738
  className: xe,
1729
- cols: D,
1739
+ cols: L,
1730
1740
  colSpan: null,
1731
1741
  content: null,
1732
1742
  contentEditable: Te,
1733
1743
  controls: re,
1734
1744
  controlsList: xe,
1735
- coords: D | Vt,
1745
+ coords: L | Vt,
1736
1746
  crossOrigin: null,
1737
1747
  data: null,
1738
1748
  dateTime: null,
@@ -1754,9 +1764,9 @@ const Ec = Xt({
1754
1764
  formNoValidate: re,
1755
1765
  formTarget: null,
1756
1766
  headers: xe,
1757
- height: D,
1767
+ height: L,
1758
1768
  hidden: Gr,
1759
- high: D,
1769
+ high: L,
1760
1770
  href: null,
1761
1771
  hrefLang: null,
1762
1772
  htmlFor: xe,
@@ -1781,14 +1791,14 @@ const Ec = Xt({
1781
1791
  list: null,
1782
1792
  loading: null,
1783
1793
  loop: re,
1784
- low: D,
1794
+ low: L,
1785
1795
  manifest: null,
1786
1796
  max: null,
1787
- maxLength: D,
1797
+ maxLength: L,
1788
1798
  media: null,
1789
1799
  method: null,
1790
1800
  min: null,
1791
- minLength: D,
1801
+ minLength: L,
1792
1802
  multiple: re,
1793
1803
  muted: re,
1794
1804
  name: null,
@@ -1884,7 +1894,7 @@ const Ec = Xt({
1884
1894
  onWaiting: null,
1885
1895
  onWheel: null,
1886
1896
  open: re,
1887
- optimum: D,
1897
+ optimum: L,
1888
1898
  pattern: null,
1889
1899
  ping: xe,
1890
1900
  placeholder: null,
@@ -1899,8 +1909,8 @@ const Ec = Xt({
1899
1909
  rel: xe,
1900
1910
  required: re,
1901
1911
  reversed: re,
1902
- rows: D,
1903
- rowSpan: D,
1912
+ rows: L,
1913
+ rowSpan: L,
1904
1914
  sandbox: xe,
1905
1915
  scope: null,
1906
1916
  scoped: re,
@@ -1910,19 +1920,19 @@ const Ec = Xt({
1910
1920
  shadowRootDelegatesFocus: re,
1911
1921
  shadowRootMode: null,
1912
1922
  shape: null,
1913
- size: D,
1923
+ size: L,
1914
1924
  sizes: null,
1915
1925
  slot: null,
1916
- span: D,
1926
+ span: L,
1917
1927
  spellCheck: Te,
1918
1928
  src: null,
1919
1929
  srcDoc: null,
1920
1930
  srcLang: null,
1921
1931
  srcSet: null,
1922
- start: D,
1932
+ start: L,
1923
1933
  step: null,
1924
1934
  style: null,
1925
- tabIndex: D,
1935
+ tabIndex: L,
1926
1936
  target: null,
1927
1937
  title: null,
1928
1938
  translate: null,
@@ -1930,7 +1940,7 @@ const Ec = Xt({
1930
1940
  typeMustMatch: re,
1931
1941
  useMap: null,
1932
1942
  value: Te,
1933
- width: D,
1943
+ width: L,
1934
1944
  wrap: null,
1935
1945
  writingSuggestions: null,
1936
1946
  // Legacy.
@@ -1947,11 +1957,11 @@ const Ec = Xt({
1947
1957
  // `<body>`. Use CSS `background-image` instead
1948
1958
  bgColor: null,
1949
1959
  // `<body>` and table elements. Use CSS `background-color` instead
1950
- border: D,
1960
+ border: L,
1951
1961
  // `<table>`. Use CSS `border-width` instead,
1952
1962
  borderColor: null,
1953
1963
  // `<table>`. Use CSS `border-color` instead,
1954
- bottomMargin: D,
1964
+ bottomMargin: L,
1955
1965
  // `<body>`
1956
1966
  cellPadding: null,
1957
1967
  // `<table>`
@@ -1985,9 +1995,9 @@ const Ec = Xt({
1985
1995
  // `<table>`
1986
1996
  frameBorder: null,
1987
1997
  // `<iframe>`. Use CSS `border` instead
1988
- hSpace: D,
1998
+ hSpace: L,
1989
1999
  // `<img>` and `<object>`
1990
- leftMargin: D,
2000
+ leftMargin: L,
1991
2001
  // `<body>`
1992
2002
  link: null,
1993
2003
  // `<body>`. Use CSS `a:link {color: *}` instead
@@ -1995,9 +2005,9 @@ const Ec = Xt({
1995
2005
  // `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
1996
2006
  lowSrc: null,
1997
2007
  // `<img>`. Use a `<picture>`
1998
- marginHeight: D,
2008
+ marginHeight: L,
1999
2009
  // `<body>`
2000
- marginWidth: D,
2010
+ marginWidth: L,
2001
2011
  // `<body>`
2002
2012
  noResize: re,
2003
2013
  // `<frame>`
@@ -2015,7 +2025,7 @@ const Ec = Xt({
2015
2025
  // `<isindex>`
2016
2026
  rev: null,
2017
2027
  // `<link>`
2018
- rightMargin: D,
2028
+ rightMargin: L,
2019
2029
  // `<body>`
2020
2030
  rules: null,
2021
2031
  // `<table>`
@@ -2029,7 +2039,7 @@ const Ec = Xt({
2029
2039
  // `<table>`
2030
2040
  text: null,
2031
2041
  // `<body>`. Use CSS `color` instead
2032
- topMargin: D,
2042
+ topMargin: L,
2033
2043
  // `<body>`
2034
2044
  valueType: null,
2035
2045
  // `<param>`
@@ -2039,7 +2049,7 @@ const Ec = Xt({
2039
2049
  // Several. Use CSS `vertical-align` instead
2040
2050
  vLink: null,
2041
2051
  // `<body>`. Use CSS `a:visited {color}` instead
2042
- vSpace: D,
2052
+ vSpace: L,
2043
2053
  // `<img>` and `<object>`
2044
2054
  // Non-standard Properties.
2045
2055
  allowTransparency: null,
@@ -2049,7 +2059,7 @@ const Ec = Xt({
2049
2059
  disableRemotePlayback: re,
2050
2060
  prefix: null,
2051
2061
  property: null,
2052
- results: D,
2062
+ results: L,
2053
2063
  security: null,
2054
2064
  unselectable: null
2055
2065
  },
@@ -2233,27 +2243,27 @@ const Ec = Xt({
2233
2243
  },
2234
2244
  properties: {
2235
2245
  about: Ye,
2236
- accentHeight: D,
2246
+ accentHeight: L,
2237
2247
  accumulate: null,
2238
2248
  additive: null,
2239
2249
  alignmentBaseline: null,
2240
- alphabetic: D,
2241
- amplitude: D,
2250
+ alphabetic: L,
2251
+ amplitude: L,
2242
2252
  arabicForm: null,
2243
- ascent: D,
2253
+ ascent: L,
2244
2254
  attributeName: null,
2245
2255
  attributeType: null,
2246
- azimuth: D,
2256
+ azimuth: L,
2247
2257
  bandwidth: null,
2248
2258
  baselineShift: null,
2249
2259
  baseFrequency: null,
2250
2260
  baseProfile: null,
2251
2261
  bbox: null,
2252
2262
  begin: null,
2253
- bias: D,
2263
+ bias: L,
2254
2264
  by: null,
2255
2265
  calcMode: null,
2256
- capHeight: D,
2266
+ capHeight: L,
2257
2267
  className: xe,
2258
2268
  clip: null,
2259
2269
  clipPath: null,
@@ -2274,26 +2284,26 @@ const Ec = Xt({
2274
2284
  d: null,
2275
2285
  dataType: null,
2276
2286
  defaultAction: null,
2277
- descent: D,
2278
- diffuseConstant: D,
2287
+ descent: L,
2288
+ diffuseConstant: L,
2279
2289
  direction: null,
2280
2290
  display: null,
2281
2291
  dur: null,
2282
- divisor: D,
2292
+ divisor: L,
2283
2293
  dominantBaseline: null,
2284
2294
  download: re,
2285
2295
  dx: null,
2286
2296
  dy: null,
2287
2297
  edgeMode: null,
2288
2298
  editable: null,
2289
- elevation: D,
2299
+ elevation: L,
2290
2300
  enableBackground: null,
2291
2301
  end: null,
2292
2302
  event: null,
2293
- exponent: D,
2303
+ exponent: L,
2294
2304
  externalResourcesRequired: null,
2295
2305
  fill: null,
2296
- fillOpacity: D,
2306
+ fillOpacity: L,
2297
2307
  fillRule: null,
2298
2308
  filter: null,
2299
2309
  filterRes: null,
@@ -2323,27 +2333,27 @@ const Ec = Xt({
2323
2333
  gradientTransform: null,
2324
2334
  gradientUnits: null,
2325
2335
  handler: null,
2326
- hanging: D,
2336
+ hanging: L,
2327
2337
  hatchContentUnits: null,
2328
2338
  hatchUnits: null,
2329
2339
  height: null,
2330
2340
  href: null,
2331
2341
  hrefLang: null,
2332
- horizAdvX: D,
2333
- horizOriginX: D,
2334
- horizOriginY: D,
2342
+ horizAdvX: L,
2343
+ horizOriginX: L,
2344
+ horizOriginY: L,
2335
2345
  id: null,
2336
- ideographic: D,
2346
+ ideographic: L,
2337
2347
  imageRendering: null,
2338
2348
  initialVisibility: null,
2339
2349
  in: null,
2340
2350
  in2: null,
2341
- intercept: D,
2342
- k: D,
2343
- k1: D,
2344
- k2: D,
2345
- k3: D,
2346
- k4: D,
2351
+ intercept: L,
2352
+ k: L,
2353
+ k1: L,
2354
+ k2: L,
2355
+ k3: L,
2356
+ k4: L,
2347
2357
  kernelMatrix: Ye,
2348
2358
  kernelUnitLength: null,
2349
2359
  keyPoints: null,
@@ -2357,7 +2367,7 @@ const Ec = Xt({
2357
2367
  lengthAdjust: null,
2358
2368
  letterSpacing: null,
2359
2369
  lightingColor: null,
2360
- limitingConeAngle: D,
2370
+ limitingConeAngle: L,
2361
2371
  local: null,
2362
2372
  markerEnd: null,
2363
2373
  markerMid: null,
@@ -2373,7 +2383,7 @@ const Ec = Xt({
2373
2383
  media: null,
2374
2384
  mediaCharacterEncoding: null,
2375
2385
  mediaContentEncodings: null,
2376
- mediaSize: D,
2386
+ mediaSize: L,
2377
2387
  mediaTime: null,
2378
2388
  method: null,
2379
2389
  min: null,
@@ -2479,12 +2489,12 @@ const Ec = Xt({
2479
2489
  origin: null,
2480
2490
  overflow: null,
2481
2491
  overlay: null,
2482
- overlinePosition: D,
2483
- overlineThickness: D,
2492
+ overlinePosition: L,
2493
+ overlineThickness: L,
2484
2494
  paintOrder: null,
2485
2495
  panose1: null,
2486
2496
  path: null,
2487
- pathLength: D,
2497
+ pathLength: L,
2488
2498
  patternContentUnits: null,
2489
2499
  patternTransform: null,
2490
2500
  patternUnits: null,
@@ -2494,9 +2504,9 @@ const Ec = Xt({
2494
2504
  playbackOrder: null,
2495
2505
  pointerEvents: null,
2496
2506
  points: null,
2497
- pointsAtX: D,
2498
- pointsAtY: D,
2499
- pointsAtZ: D,
2507
+ pointsAtX: L,
2508
+ pointsAtY: L,
2509
+ pointsAtZ: L,
2500
2510
  preserveAlpha: null,
2501
2511
  preserveAspectRatio: null,
2502
2512
  primitiveUnits: null,
@@ -2528,8 +2538,8 @@ const Ec = Xt({
2528
2538
  side: null,
2529
2539
  slope: null,
2530
2540
  snapshotTime: null,
2531
- specularConstant: D,
2532
- specularExponent: D,
2541
+ specularConstant: L,
2542
+ specularExponent: L,
2533
2543
  spreadMethod: null,
2534
2544
  spacing: null,
2535
2545
  startOffset: null,
@@ -2539,30 +2549,30 @@ const Ec = Xt({
2539
2549
  stitchTiles: null,
2540
2550
  stopColor: null,
2541
2551
  stopOpacity: null,
2542
- strikethroughPosition: D,
2543
- strikethroughThickness: D,
2552
+ strikethroughPosition: L,
2553
+ strikethroughThickness: L,
2544
2554
  string: null,
2545
2555
  stroke: null,
2546
2556
  strokeDashArray: Ye,
2547
2557
  strokeDashOffset: null,
2548
2558
  strokeLineCap: null,
2549
2559
  strokeLineJoin: null,
2550
- strokeMiterLimit: D,
2551
- strokeOpacity: D,
2560
+ strokeMiterLimit: L,
2561
+ strokeOpacity: L,
2552
2562
  strokeWidth: null,
2553
2563
  style: null,
2554
- surfaceScale: D,
2564
+ surfaceScale: L,
2555
2565
  syncBehavior: null,
2556
2566
  syncBehaviorDefault: null,
2557
2567
  syncMaster: null,
2558
2568
  syncTolerance: null,
2559
2569
  syncToleranceDefault: null,
2560
2570
  systemLanguage: Ye,
2561
- tabIndex: D,
2571
+ tabIndex: L,
2562
2572
  tableValues: null,
2563
2573
  target: null,
2564
- targetX: D,
2565
- targetY: D,
2574
+ targetX: L,
2575
+ targetY: L,
2566
2576
  textAnchor: null,
2567
2577
  textDecoration: null,
2568
2578
  textRendering: null,
@@ -2577,22 +2587,22 @@ const Ec = Xt({
2577
2587
  transformOrigin: null,
2578
2588
  u1: null,
2579
2589
  u2: null,
2580
- underlinePosition: D,
2581
- underlineThickness: D,
2590
+ underlinePosition: L,
2591
+ underlineThickness: L,
2582
2592
  unicode: null,
2583
2593
  unicodeBidi: null,
2584
2594
  unicodeRange: null,
2585
- unitsPerEm: D,
2595
+ unitsPerEm: L,
2586
2596
  values: null,
2587
- vAlphabetic: D,
2588
- vMathematical: D,
2597
+ vAlphabetic: L,
2598
+ vMathematical: L,
2589
2599
  vectorEffect: null,
2590
- vHanging: D,
2591
- vIdeographic: D,
2600
+ vHanging: L,
2601
+ vIdeographic: L,
2592
2602
  version: null,
2593
- vertAdvY: D,
2594
- vertOriginX: D,
2595
- vertOriginY: D,
2603
+ vertAdvY: L,
2604
+ vertOriginX: L,
2605
+ vertOriginY: L,
2596
2606
  viewBox: null,
2597
2607
  viewTarget: null,
2598
2608
  visibility: null,
@@ -2604,7 +2614,7 @@ const Ec = Xt({
2604
2614
  x1: null,
2605
2615
  x2: null,
2606
2616
  xChannelSelector: null,
2607
- xHeight: D,
2617
+ xHeight: L,
2608
2618
  y: null,
2609
2619
  y1: null,
2610
2620
  y2: null,
@@ -2694,11 +2704,11 @@ function Ac() {
2694
2704
  Ji = 1;
2695
2705
  var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, t = /\n/g, n = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, i = /^:\s*/, a = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, o = /^[;\s]*/, s = /^\s+|\s+$/g, l = `
2696
2706
  `, c = "/", d = "*", u = "", p = "comment", f = "declaration";
2697
- function g(_, b) {
2707
+ function g(_, m) {
2698
2708
  if (typeof _ != "string")
2699
2709
  throw new TypeError("First argument must be a string");
2700
2710
  if (!_) return [];
2701
- b = b || {};
2711
+ m = m || {};
2702
2712
  var w = 1, x = 1;
2703
2713
  function v(A) {
2704
2714
  var N = A.match(t);
@@ -2709,36 +2719,36 @@ function Ac() {
2709
2719
  function O() {
2710
2720
  var A = { line: w, column: x };
2711
2721
  return function(N) {
2712
- return N.position = new k(A), H(), N;
2722
+ return N.position = new k(A), U(), N;
2713
2723
  };
2714
2724
  }
2715
2725
  function k(A) {
2716
- this.start = A, this.end = { line: w, column: x }, this.source = b.source;
2726
+ this.start = A, this.end = { line: w, column: x }, this.source = m.source;
2717
2727
  }
2718
2728
  k.prototype.content = _;
2719
2729
  function M(A) {
2720
2730
  var N = new Error(
2721
- b.source + ":" + w + ":" + x + ": " + A
2731
+ m.source + ":" + w + ":" + x + ": " + A
2722
2732
  );
2723
- if (N.reason = A, N.filename = b.source, N.line = w, N.column = x, N.source = _, !b.silent) throw N;
2733
+ if (N.reason = A, N.filename = m.source, N.line = w, N.column = x, N.source = _, !m.silent) throw N;
2724
2734
  }
2725
- function F(A) {
2735
+ function P(A) {
2726
2736
  var N = A.exec(_);
2727
2737
  if (N) {
2728
2738
  var W = N[0];
2729
2739
  return v(W), _ = _.slice(W.length), N;
2730
2740
  }
2731
2741
  }
2732
- function H() {
2733
- F(n);
2742
+ function U() {
2743
+ P(n);
2734
2744
  }
2735
2745
  function S(A) {
2736
2746
  var N;
2737
- for (A = A || []; N = B(); )
2747
+ for (A = A || []; N = D(); )
2738
2748
  N !== !1 && A.push(N);
2739
2749
  return A;
2740
2750
  }
2741
- function B() {
2751
+ function D() {
2742
2752
  var A = O();
2743
2753
  if (!(c != _.charAt(0) || d != _.charAt(1))) {
2744
2754
  for (var N = 2; u != _.charAt(N) && (d != _.charAt(N) || c != _.charAt(N + 1)); )
@@ -2753,15 +2763,15 @@ function Ac() {
2753
2763
  }
2754
2764
  }
2755
2765
  function z() {
2756
- var A = O(), N = F(r);
2766
+ var A = O(), N = P(r);
2757
2767
  if (N) {
2758
- if (B(), !F(i)) return M("property missing ':'");
2759
- var W = F(a), ce = A({
2768
+ if (D(), !P(i)) return M("property missing ':'");
2769
+ var W = P(a), ce = A({
2760
2770
  type: f,
2761
- property: m(N[0].replace(e, u)),
2762
- value: W ? m(W[0].replace(e, u)) : u
2771
+ property: E(N[0].replace(e, u)),
2772
+ value: W ? E(W[0].replace(e, u)) : u
2763
2773
  });
2764
- return F(o), ce;
2774
+ return P(o), ce;
2765
2775
  }
2766
2776
  }
2767
2777
  function I() {
@@ -2771,9 +2781,9 @@ function Ac() {
2771
2781
  N !== !1 && (A.push(N), S(A));
2772
2782
  return A;
2773
2783
  }
2774
- return H(), I();
2784
+ return U(), I();
2775
2785
  }
2776
- function m(_) {
2786
+ function E(_) {
2777
2787
  return _ ? _.replace(s, u) : u;
2778
2788
  }
2779
2789
  return yr = g, yr;
@@ -3292,7 +3302,7 @@ function ci(e) {
3292
3302
  const n = ao.textContent;
3293
3303
  return n.charCodeAt(n.length - 1) === 59 && e !== "semi" || n === t ? !1 : n;
3294
3304
  }
3295
- function Xe(e, t, n, r) {
3305
+ function Ze(e, t, n, r) {
3296
3306
  const i = e.length;
3297
3307
  let a = 0, o;
3298
3308
  if (t < 0 ? t = -t > i ? 0 : i + t : t = t > i ? i : t, n = n > 0 ? n : 0, r.length < 1e4)
@@ -3301,8 +3311,8 @@ function Xe(e, t, n, r) {
3301
3311
  for (n && e.splice(t, n); a < r.length; )
3302
3312
  o = r.slice(a, a + 1e4), o.unshift(t, 0), e.splice(...o), a += 1e4, t += 1e4;
3303
3313
  }
3304
- function Je(e, t) {
3305
- return e.length > 0 ? (Xe(e, e.length, 0, t), e) : t;
3314
+ function et(e, t) {
3315
+ return e.length > 0 ? (Ze(e, e.length, 0, t), e) : t;
3306
3316
  }
3307
3317
  const so = {}.hasOwnProperty;
3308
3318
  function Oa(e) {
@@ -3334,7 +3344,7 @@ function ou(e, t) {
3334
3344
  const r = [];
3335
3345
  for (; ++n < t.length; )
3336
3346
  (t[n].add === "after" ? e : r).push(t[n]);
3337
- Xe(e, 0, 0, r);
3347
+ Ze(e, 0, 0, r);
3338
3348
  }
3339
3349
  function Ma(e, t) {
3340
3350
  const n = Number.parseInt(e, t);
@@ -3465,13 +3475,13 @@ function fu(e) {
3465
3475
  k = t.events[O][1].end;
3466
3476
  break;
3467
3477
  }
3468
- b(r);
3478
+ m(r);
3469
3479
  let M = v;
3470
3480
  for (; M < t.events.length; )
3471
3481
  t.events[M][1].end = {
3472
3482
  ...k
3473
3483
  }, M++;
3474
- return Xe(t.events, O + 1, 0, t.events.slice(v)), t.events.length = M, c(x);
3484
+ return Ze(t.events, O + 1, 0, t.events.slice(v)), t.events.length = M, c(x);
3475
3485
  }
3476
3486
  return s(x);
3477
3487
  }
@@ -3486,7 +3496,7 @@ function fu(e) {
3486
3496
  return t.containerState = {}, e.check(lo, d, u)(x);
3487
3497
  }
3488
3498
  function d(x) {
3489
- return i && w(), b(r), p(x);
3499
+ return i && w(), m(r), p(x);
3490
3500
  }
3491
3501
  function u(x) {
3492
3502
  return t.parser.lazy[t.now().line] = r !== n.length, o = t.now().offset, g(x);
@@ -3499,21 +3509,21 @@ function fu(e) {
3499
3509
  }
3500
3510
  function g(x) {
3501
3511
  if (x === null) {
3502
- i && w(), b(0), e.consume(x);
3512
+ i && w(), m(0), e.consume(x);
3503
3513
  return;
3504
3514
  }
3505
3515
  return i = i || t.parser.flow(t.now()), e.enter("chunkFlow", {
3506
3516
  _tokenizer: i,
3507
3517
  contentType: "flow",
3508
3518
  previous: a
3509
- }), m(x);
3519
+ }), E(x);
3510
3520
  }
3511
- function m(x) {
3521
+ function E(x) {
3512
3522
  if (x === null) {
3513
- _(e.exit("chunkFlow"), !0), b(0), e.consume(x);
3523
+ _(e.exit("chunkFlow"), !0), m(0), e.consume(x);
3514
3524
  return;
3515
3525
  }
3516
- return Y(x) ? (e.consume(x), _(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, s) : (e.consume(x), m);
3526
+ return Y(x) ? (e.consume(x), _(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, s) : (e.consume(x), E);
3517
3527
  }
3518
3528
  function _(x, v) {
3519
3529
  const O = t.sliceStream(x);
@@ -3528,23 +3538,23 @@ function fu(e) {
3528
3538
  )
3529
3539
  return;
3530
3540
  const M = t.events.length;
3531
- let F = M, H, S;
3532
- for (; F--; )
3533
- if (t.events[F][0] === "exit" && t.events[F][1].type === "chunkFlow") {
3534
- if (H) {
3535
- S = t.events[F][1].end;
3541
+ let P = M, U, S;
3542
+ for (; P--; )
3543
+ if (t.events[P][0] === "exit" && t.events[P][1].type === "chunkFlow") {
3544
+ if (U) {
3545
+ S = t.events[P][1].end;
3536
3546
  break;
3537
3547
  }
3538
- H = !0;
3548
+ U = !0;
3539
3549
  }
3540
- for (b(r), k = M; k < t.events.length; )
3550
+ for (m(r), k = M; k < t.events.length; )
3541
3551
  t.events[k][1].end = {
3542
3552
  ...S
3543
3553
  }, k++;
3544
- Xe(t.events, F + 1, 0, t.events.slice(M)), t.events.length = k;
3554
+ Ze(t.events, P + 1, 0, t.events.slice(M)), t.events.length = k;
3545
3555
  }
3546
3556
  }
3547
- function b(x) {
3557
+ function m(x) {
3548
3558
  let v = n.length;
3549
3559
  for (; v-- > x; ) {
3550
3560
  const O = n[v];
@@ -3626,7 +3636,7 @@ function gu(e, t) {
3626
3636
  ...o.start
3627
3637
  }, e[n][1].start = {
3628
3638
  ...s.end
3629
- }, c = [], e[r][1].end.offset - e[r][1].start.offset && (c = Je(c, [["enter", e[r][1], t], ["exit", e[r][1], t]])), c = Je(c, [["enter", i, t], ["enter", o, t], ["exit", o, t], ["enter", a, t]]), c = Je(c, Xn(t.parser.constructs.insideSpan.null, e.slice(r + 1, n), t)), c = Je(c, [["exit", a, t], ["enter", s, t], ["exit", s, t], ["exit", i, t]]), e[n][1].end.offset - e[n][1].start.offset ? (d = 2, c = Je(c, [["enter", e[n][1], t], ["exit", e[n][1], t]])) : d = 0, Xe(e, r - 1, n - r + 3, c), n = r + c.length - d - 2;
3639
+ }, c = [], e[r][1].end.offset - e[r][1].start.offset && (c = et(c, [["enter", e[r][1], t], ["exit", e[r][1], t]])), c = et(c, [["enter", i, t], ["enter", o, t], ["exit", o, t], ["enter", a, t]]), c = et(c, Xn(t.parser.constructs.insideSpan.null, e.slice(r + 1, n), t)), c = et(c, [["exit", a, t], ["enter", s, t], ["exit", s, t], ["exit", i, t]]), e[n][1].end.offset - e[n][1].start.offset ? (d = 2, c = et(c, [["enter", e[n][1], t], ["exit", e[n][1], t]])) : d = 0, Ze(e, r - 1, n - r + 3, c), n = r + c.length - d - 2;
3630
3640
  break;
3631
3641
  }
3632
3642
  }
@@ -3804,7 +3814,7 @@ function Su(e, t, n) {
3804
3814
  return k === s ? (o++, e.consume(k), d) : o < 3 ? n(k) : (e.exit("codeFencedFenceSequence"), se(k) ? de(e, u, "whitespace")(k) : u(k));
3805
3815
  }
3806
3816
  function u(k) {
3807
- return k === null || Y(k) ? (e.exit("codeFencedFence"), r.interrupt ? t(k) : e.check(uo, m, v)(k)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
3817
+ return k === null || Y(k) ? (e.exit("codeFencedFence"), r.interrupt ? t(k) : e.check(uo, E, v)(k)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
3808
3818
  contentType: "string"
3809
3819
  }), p(k));
3810
3820
  }
@@ -3819,17 +3829,17 @@ function Su(e, t, n) {
3819
3829
  function g(k) {
3820
3830
  return k === null || Y(k) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), u(k)) : k === 96 && k === s ? n(k) : (e.consume(k), g);
3821
3831
  }
3822
- function m(k) {
3832
+ function E(k) {
3823
3833
  return e.attempt(i, v, _)(k);
3824
3834
  }
3825
3835
  function _(k) {
3826
- return e.enter("lineEnding"), e.consume(k), e.exit("lineEnding"), b;
3836
+ return e.enter("lineEnding"), e.consume(k), e.exit("lineEnding"), m;
3827
3837
  }
3828
- function b(k) {
3838
+ function m(k) {
3829
3839
  return a > 0 && se(k) ? de(e, w, "linePrefix", a + 1)(k) : w(k);
3830
3840
  }
3831
3841
  function w(k) {
3832
- return k === null || Y(k) ? e.check(uo, m, v)(k) : (e.enter("codeFlowValue"), x(k));
3842
+ return k === null || Y(k) ? e.check(uo, E, v)(k) : (e.enter("codeFlowValue"), x(k));
3833
3843
  }
3834
3844
  function x(k) {
3835
3845
  return k === null || Y(k) ? (e.exit("codeFlowValue"), w(k)) : (e.consume(k), x);
@@ -3837,23 +3847,23 @@ function Su(e, t, n) {
3837
3847
  function v(k) {
3838
3848
  return e.exit("codeFenced"), t(k);
3839
3849
  }
3840
- function O(k, M, F) {
3841
- let H = 0;
3850
+ function O(k, M, P) {
3851
+ let U = 0;
3842
3852
  return S;
3843
3853
  function S(N) {
3844
- return k.enter("lineEnding"), k.consume(N), k.exit("lineEnding"), B;
3854
+ return k.enter("lineEnding"), k.consume(N), k.exit("lineEnding"), D;
3845
3855
  }
3846
- function B(N) {
3856
+ function D(N) {
3847
3857
  return k.enter("codeFencedFence"), se(N) ? de(k, z, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(N) : z(N);
3848
3858
  }
3849
3859
  function z(N) {
3850
- return N === s ? (k.enter("codeFencedFenceSequence"), I(N)) : F(N);
3860
+ return N === s ? (k.enter("codeFencedFenceSequence"), I(N)) : P(N);
3851
3861
  }
3852
3862
  function I(N) {
3853
- return N === s ? (H++, k.consume(N), I) : H >= o ? (k.exit("codeFencedFenceSequence"), se(N) ? de(k, A, "whitespace")(N) : A(N)) : F(N);
3863
+ return N === s ? (U++, k.consume(N), I) : U >= o ? (k.exit("codeFencedFenceSequence"), se(N) ? de(k, A, "whitespace")(N) : A(N)) : P(N);
3854
3864
  }
3855
3865
  function A(N) {
3856
- return N === null || Y(N) ? (k.exit("codeFencedFence"), M(N)) : F(N);
3866
+ return N === null || Y(N) ? (k.exit("codeFencedFence"), M(N)) : P(N);
3857
3867
  }
3858
3868
  }
3859
3869
  }
@@ -4140,7 +4150,7 @@ function Ba(e) {
4140
4150
  }, s = d.slice(i, n), s.unshift(r), d.splice(i, n - i + 1, s));
4141
4151
  }
4142
4152
  }
4143
- return Xe(e, 0, Number.POSITIVE_INFINITY, d.slice(0)), !c;
4153
+ return Ze(e, 0, Number.POSITIVE_INFINITY, d.slice(0)), !c;
4144
4154
  }
4145
4155
  function Du(e, t) {
4146
4156
  const n = e.get(t)[1], r = e.get(t)[2];
@@ -4149,8 +4159,8 @@ function Du(e, t) {
4149
4159
  let o = n._tokenizer;
4150
4160
  o || (o = r.parser[n.contentType](n.start), n._contentTypeTextTrailing && (o._contentTypeTextTrailing = !0));
4151
4161
  const s = o.events, l = [], c = {};
4152
- let d, u, p = -1, f = n, g = 0, m = 0;
4153
- const _ = [m];
4162
+ let d, u, p = -1, f = n, g = 0, E = 0;
4163
+ const _ = [E];
4154
4164
  for (; f; ) {
4155
4165
  for (; e.get(++i)[1] !== f; )
4156
4166
  ;
@@ -4158,10 +4168,10 @@ function Du(e, t) {
4158
4168
  }
4159
4169
  for (f = n; ++p < s.length; )
4160
4170
  // Find a void token that includes a break.
4161
- s[p][0] === "exit" && s[p - 1][0] === "enter" && s[p][1].type === s[p - 1][1].type && s[p][1].start.line !== s[p][1].end.line && (m = p + 1, _.push(m), f._tokenizer = void 0, f.previous = void 0, f = f.next);
4171
+ s[p][0] === "exit" && s[p - 1][0] === "enter" && s[p][1].type === s[p - 1][1].type && s[p][1].start.line !== s[p][1].end.line && (E = p + 1, _.push(E), f._tokenizer = void 0, f.previous = void 0, f = f.next);
4162
4172
  for (o.events = [], f ? (f._tokenizer = void 0, f.previous = void 0) : _.pop(), p = _.length; p--; ) {
4163
- const b = s.slice(_[p], _[p + 1]), w = a.pop();
4164
- l.push([w, w + b.length - 1]), e.splice(w, 2, b);
4173
+ const m = s.slice(_[p], _[p + 1]), w = a.pop();
4174
+ l.push([w, w + m.length - 1]), e.splice(w, 2, m);
4165
4175
  }
4166
4176
  for (l.reverse(), p = -1; ++p < l.length; )
4167
4177
  c[g + l[p][0]] = g + l[p][1], g += l[p][1] - l[p][0] - 1;
@@ -4215,27 +4225,27 @@ function Fa(e, t, n, r, i, a, o, s, l) {
4215
4225
  const c = l || Number.POSITIVE_INFINITY;
4216
4226
  let d = 0;
4217
4227
  return u;
4218
- function u(b) {
4219
- return b === 60 ? (e.enter(r), e.enter(i), e.enter(a), e.consume(b), e.exit(a), p) : b === null || b === 32 || b === 41 || zn(b) ? n(b) : (e.enter(r), e.enter(o), e.enter(s), e.enter("chunkString", {
4228
+ function u(m) {
4229
+ return m === 60 ? (e.enter(r), e.enter(i), e.enter(a), e.consume(m), e.exit(a), p) : m === null || m === 32 || m === 41 || zn(m) ? n(m) : (e.enter(r), e.enter(o), e.enter(s), e.enter("chunkString", {
4220
4230
  contentType: "string"
4221
- }), m(b));
4231
+ }), E(m));
4222
4232
  }
4223
- function p(b) {
4224
- return b === 62 ? (e.enter(a), e.consume(b), e.exit(a), e.exit(i), e.exit(r), t) : (e.enter(s), e.enter("chunkString", {
4233
+ function p(m) {
4234
+ return m === 62 ? (e.enter(a), e.consume(m), e.exit(a), e.exit(i), e.exit(r), t) : (e.enter(s), e.enter("chunkString", {
4225
4235
  contentType: "string"
4226
- }), f(b));
4236
+ }), f(m));
4227
4237
  }
4228
- function f(b) {
4229
- return b === 62 ? (e.exit("chunkString"), e.exit(s), p(b)) : b === null || b === 60 || Y(b) ? n(b) : (e.consume(b), b === 92 ? g : f);
4238
+ function f(m) {
4239
+ return m === 62 ? (e.exit("chunkString"), e.exit(s), p(m)) : m === null || m === 60 || Y(m) ? n(m) : (e.consume(m), m === 92 ? g : f);
4230
4240
  }
4231
- function g(b) {
4232
- return b === 60 || b === 62 || b === 92 ? (e.consume(b), f) : f(b);
4241
+ function g(m) {
4242
+ return m === 60 || m === 62 || m === 92 ? (e.consume(m), f) : f(m);
4233
4243
  }
4234
- function m(b) {
4235
- return !d && (b === null || b === 41 || ye(b)) ? (e.exit("chunkString"), e.exit(s), e.exit(o), e.exit(r), t(b)) : d < c && b === 40 ? (e.consume(b), d++, m) : b === 41 ? (e.consume(b), d--, m) : b === null || b === 32 || b === 40 || zn(b) ? n(b) : (e.consume(b), b === 92 ? _ : m);
4244
+ function E(m) {
4245
+ return !d && (m === null || m === 41 || ye(m)) ? (e.exit("chunkString"), e.exit(s), e.exit(o), e.exit(r), t(m)) : d < c && m === 40 ? (e.consume(m), d++, E) : m === 41 ? (e.consume(m), d--, E) : m === null || m === 32 || m === 40 || zn(m) ? n(m) : (e.consume(m), m === 92 ? _ : E);
4236
4246
  }
4237
- function _(b) {
4238
- return b === 40 || b === 41 || b === 92 ? (e.consume(b), m) : m(b);
4247
+ function _(m) {
4248
+ return m === 40 || m === 41 || m === 92 ? (e.consume(m), E) : E(m);
4239
4249
  }
4240
4250
  }
4241
4251
  function za(e, t, n, r, i, a) {
@@ -4389,7 +4399,7 @@ function ju(e, t) {
4389
4399
  start: e[r][1].start,
4390
4400
  end: e[n][1].end,
4391
4401
  contentType: "text"
4392
- }, Xe(e, r, n - r + 1, [["enter", i, t], ["enter", a, t], ["exit", a, t], ["exit", i, t]])), e;
4402
+ }, Ze(e, r, n - r + 1, [["enter", i, t], ["enter", a, t], ["exit", a, t], ["exit", i, t]])), e;
4393
4403
  }
4394
4404
  function Vu(e, t, n) {
4395
4405
  let r = 0;
@@ -4505,29 +4515,29 @@ function ed(e, t, n) {
4505
4515
  return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(h), u;
4506
4516
  }
4507
4517
  function u(h) {
4508
- return h === 33 ? (e.consume(h), p) : h === 47 ? (e.consume(h), a = !0, m) : h === 63 ? (e.consume(h), i = 3, r.interrupt ? t : y) : Ue(h) ? (e.consume(h), o = String.fromCharCode(h), _) : n(h);
4518
+ return h === 33 ? (e.consume(h), p) : h === 47 ? (e.consume(h), a = !0, E) : h === 63 ? (e.consume(h), i = 3, r.interrupt ? t : b) : Ue(h) ? (e.consume(h), o = String.fromCharCode(h), _) : n(h);
4509
4519
  }
4510
4520
  function p(h) {
4511
- return h === 45 ? (e.consume(h), i = 2, f) : h === 91 ? (e.consume(h), i = 5, s = 0, g) : Ue(h) ? (e.consume(h), i = 4, r.interrupt ? t : y) : n(h);
4521
+ return h === 45 ? (e.consume(h), i = 2, f) : h === 91 ? (e.consume(h), i = 5, s = 0, g) : Ue(h) ? (e.consume(h), i = 4, r.interrupt ? t : b) : n(h);
4512
4522
  }
4513
4523
  function f(h) {
4514
- return h === 45 ? (e.consume(h), r.interrupt ? t : y) : n(h);
4524
+ return h === 45 ? (e.consume(h), r.interrupt ? t : b) : n(h);
4515
4525
  }
4516
4526
  function g(h) {
4517
4527
  const X = "CDATA[";
4518
4528
  return h === X.charCodeAt(s++) ? (e.consume(h), s === X.length ? r.interrupt ? t : z : g) : n(h);
4519
4529
  }
4520
- function m(h) {
4530
+ function E(h) {
4521
4531
  return Ue(h) ? (e.consume(h), o = String.fromCharCode(h), _) : n(h);
4522
4532
  }
4523
4533
  function _(h) {
4524
4534
  if (h === null || h === 47 || h === 62 || ye(h)) {
4525
4535
  const X = h === 47, fe = o.toLowerCase();
4526
- return !X && !a && po.includes(fe) ? (i = 1, r.interrupt ? t(h) : z(h)) : Yu.includes(o.toLowerCase()) ? (i = 6, X ? (e.consume(h), b) : r.interrupt ? t(h) : z(h)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(h) : a ? w(h) : x(h));
4536
+ return !X && !a && po.includes(fe) ? (i = 1, r.interrupt ? t(h) : z(h)) : Yu.includes(o.toLowerCase()) ? (i = 6, X ? (e.consume(h), m) : r.interrupt ? t(h) : z(h)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(h) : a ? w(h) : x(h));
4527
4537
  }
4528
4538
  return h === 45 || Le(h) ? (e.consume(h), o += String.fromCharCode(h), _) : n(h);
4529
4539
  }
4530
- function b(h) {
4540
+ function m(h) {
4531
4541
  return h === 62 ? (e.consume(h), r.interrupt ? t : z) : n(h);
4532
4542
  }
4533
4543
  function w(h) {
@@ -4543,25 +4553,25 @@ function ed(e, t, n) {
4543
4553
  return h === 61 ? (e.consume(h), k) : se(h) ? (e.consume(h), O) : x(h);
4544
4554
  }
4545
4555
  function k(h) {
4546
- return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? n(h) : h === 34 || h === 39 ? (e.consume(h), l = h, M) : se(h) ? (e.consume(h), k) : F(h);
4556
+ return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? n(h) : h === 34 || h === 39 ? (e.consume(h), l = h, M) : se(h) ? (e.consume(h), k) : P(h);
4547
4557
  }
4548
4558
  function M(h) {
4549
- return h === l ? (e.consume(h), l = null, H) : h === null || Y(h) ? n(h) : (e.consume(h), M);
4559
+ return h === l ? (e.consume(h), l = null, U) : h === null || Y(h) ? n(h) : (e.consume(h), M);
4550
4560
  }
4551
- function F(h) {
4552
- return h === null || h === 34 || h === 39 || h === 47 || h === 60 || h === 61 || h === 62 || h === 96 || ye(h) ? O(h) : (e.consume(h), F);
4561
+ function P(h) {
4562
+ return h === null || h === 34 || h === 39 || h === 47 || h === 60 || h === 61 || h === 62 || h === 96 || ye(h) ? O(h) : (e.consume(h), P);
4553
4563
  }
4554
- function H(h) {
4564
+ function U(h) {
4555
4565
  return h === 47 || h === 62 || se(h) ? x(h) : n(h);
4556
4566
  }
4557
4567
  function S(h) {
4558
- return h === 62 ? (e.consume(h), B) : n(h);
4568
+ return h === 62 ? (e.consume(h), D) : n(h);
4559
4569
  }
4560
- function B(h) {
4561
- return h === null || Y(h) ? z(h) : se(h) ? (e.consume(h), B) : n(h);
4570
+ function D(h) {
4571
+ return h === null || Y(h) ? z(h) : se(h) ? (e.consume(h), D) : n(h);
4562
4572
  }
4563
4573
  function z(h) {
4564
- return h === 45 && i === 2 ? (e.consume(h), W) : h === 60 && i === 1 ? (e.consume(h), ce) : h === 62 && i === 4 ? (e.consume(h), q) : h === 63 && i === 3 ? (e.consume(h), y) : h === 93 && i === 5 ? (e.consume(h), ee) : Y(h) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Zu, le, I)(h)) : h === null || Y(h) ? (e.exit("htmlFlowData"), I(h)) : (e.consume(h), z);
4574
+ return h === 45 && i === 2 ? (e.consume(h), W) : h === 60 && i === 1 ? (e.consume(h), ce) : h === 62 && i === 4 ? (e.consume(h), q) : h === 63 && i === 3 ? (e.consume(h), b) : h === 93 && i === 5 ? (e.consume(h), ee) : Y(h) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Zu, le, I)(h)) : h === null || Y(h) ? (e.exit("htmlFlowData"), I(h)) : (e.consume(h), z);
4565
4575
  }
4566
4576
  function I(h) {
4567
4577
  return e.check(Qu, A, le)(h);
@@ -4573,7 +4583,7 @@ function ed(e, t, n) {
4573
4583
  return h === null || Y(h) ? I(h) : (e.enter("htmlFlowData"), z(h));
4574
4584
  }
4575
4585
  function W(h) {
4576
- return h === 45 ? (e.consume(h), y) : z(h);
4586
+ return h === 45 ? (e.consume(h), b) : z(h);
4577
4587
  }
4578
4588
  function ce(h) {
4579
4589
  return h === 47 ? (e.consume(h), o = "", Z) : z(h);
@@ -4586,10 +4596,10 @@ function ed(e, t, n) {
4586
4596
  return Ue(h) && o.length < 8 ? (e.consume(h), o += String.fromCharCode(h), Z) : z(h);
4587
4597
  }
4588
4598
  function ee(h) {
4589
- return h === 93 ? (e.consume(h), y) : z(h);
4599
+ return h === 93 ? (e.consume(h), b) : z(h);
4590
4600
  }
4591
- function y(h) {
4592
- return h === 62 ? (e.consume(h), q) : h === 45 && i === 2 ? (e.consume(h), y) : z(h);
4601
+ function b(h) {
4602
+ return h === 62 ? (e.consume(h), q) : h === 45 && i === 2 ? (e.consume(h), b) : z(h);
4593
4603
  }
4594
4604
  function q(h) {
4595
4605
  return h === null || Y(h) ? (e.exit("htmlFlowData"), le(h)) : (e.consume(h), q);
@@ -4622,93 +4632,93 @@ function id(e, t, n) {
4622
4632
  const r = this;
4623
4633
  let i, a, o;
4624
4634
  return s;
4625
- function s(y) {
4626
- return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(y), l;
4635
+ function s(b) {
4636
+ return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(b), l;
4627
4637
  }
4628
- function l(y) {
4629
- return y === 33 ? (e.consume(y), c) : y === 47 ? (e.consume(y), O) : y === 63 ? (e.consume(y), x) : Ue(y) ? (e.consume(y), F) : n(y);
4638
+ function l(b) {
4639
+ return b === 33 ? (e.consume(b), c) : b === 47 ? (e.consume(b), O) : b === 63 ? (e.consume(b), x) : Ue(b) ? (e.consume(b), P) : n(b);
4630
4640
  }
4631
- function c(y) {
4632
- return y === 45 ? (e.consume(y), d) : y === 91 ? (e.consume(y), a = 0, g) : Ue(y) ? (e.consume(y), w) : n(y);
4641
+ function c(b) {
4642
+ return b === 45 ? (e.consume(b), d) : b === 91 ? (e.consume(b), a = 0, g) : Ue(b) ? (e.consume(b), w) : n(b);
4633
4643
  }
4634
- function d(y) {
4635
- return y === 45 ? (e.consume(y), f) : n(y);
4644
+ function d(b) {
4645
+ return b === 45 ? (e.consume(b), f) : n(b);
4636
4646
  }
4637
- function u(y) {
4638
- return y === null ? n(y) : y === 45 ? (e.consume(y), p) : Y(y) ? (o = u, ce(y)) : (e.consume(y), u);
4647
+ function u(b) {
4648
+ return b === null ? n(b) : b === 45 ? (e.consume(b), p) : Y(b) ? (o = u, ce(b)) : (e.consume(b), u);
4639
4649
  }
4640
- function p(y) {
4641
- return y === 45 ? (e.consume(y), f) : u(y);
4650
+ function p(b) {
4651
+ return b === 45 ? (e.consume(b), f) : u(b);
4642
4652
  }
4643
- function f(y) {
4644
- return y === 62 ? W(y) : y === 45 ? p(y) : u(y);
4653
+ function f(b) {
4654
+ return b === 62 ? W(b) : b === 45 ? p(b) : u(b);
4645
4655
  }
4646
- function g(y) {
4656
+ function g(b) {
4647
4657
  const q = "CDATA[";
4648
- return y === q.charCodeAt(a++) ? (e.consume(y), a === q.length ? m : g) : n(y);
4658
+ return b === q.charCodeAt(a++) ? (e.consume(b), a === q.length ? E : g) : n(b);
4649
4659
  }
4650
- function m(y) {
4651
- return y === null ? n(y) : y === 93 ? (e.consume(y), _) : Y(y) ? (o = m, ce(y)) : (e.consume(y), m);
4660
+ function E(b) {
4661
+ return b === null ? n(b) : b === 93 ? (e.consume(b), _) : Y(b) ? (o = E, ce(b)) : (e.consume(b), E);
4652
4662
  }
4653
- function _(y) {
4654
- return y === 93 ? (e.consume(y), b) : m(y);
4663
+ function _(b) {
4664
+ return b === 93 ? (e.consume(b), m) : E(b);
4655
4665
  }
4656
- function b(y) {
4657
- return y === 62 ? W(y) : y === 93 ? (e.consume(y), b) : m(y);
4666
+ function m(b) {
4667
+ return b === 62 ? W(b) : b === 93 ? (e.consume(b), m) : E(b);
4658
4668
  }
4659
- function w(y) {
4660
- return y === null || y === 62 ? W(y) : Y(y) ? (o = w, ce(y)) : (e.consume(y), w);
4669
+ function w(b) {
4670
+ return b === null || b === 62 ? W(b) : Y(b) ? (o = w, ce(b)) : (e.consume(b), w);
4661
4671
  }
4662
- function x(y) {
4663
- return y === null ? n(y) : y === 63 ? (e.consume(y), v) : Y(y) ? (o = x, ce(y)) : (e.consume(y), x);
4672
+ function x(b) {
4673
+ return b === null ? n(b) : b === 63 ? (e.consume(b), v) : Y(b) ? (o = x, ce(b)) : (e.consume(b), x);
4664
4674
  }
4665
- function v(y) {
4666
- return y === 62 ? W(y) : x(y);
4675
+ function v(b) {
4676
+ return b === 62 ? W(b) : x(b);
4667
4677
  }
4668
- function O(y) {
4669
- return Ue(y) ? (e.consume(y), k) : n(y);
4678
+ function O(b) {
4679
+ return Ue(b) ? (e.consume(b), k) : n(b);
4670
4680
  }
4671
- function k(y) {
4672
- return y === 45 || Le(y) ? (e.consume(y), k) : M(y);
4681
+ function k(b) {
4682
+ return b === 45 || Le(b) ? (e.consume(b), k) : M(b);
4673
4683
  }
4674
- function M(y) {
4675
- return Y(y) ? (o = M, ce(y)) : se(y) ? (e.consume(y), M) : W(y);
4684
+ function M(b) {
4685
+ return Y(b) ? (o = M, ce(b)) : se(b) ? (e.consume(b), M) : W(b);
4676
4686
  }
4677
- function F(y) {
4678
- return y === 45 || Le(y) ? (e.consume(y), F) : y === 47 || y === 62 || ye(y) ? H(y) : n(y);
4687
+ function P(b) {
4688
+ return b === 45 || Le(b) ? (e.consume(b), P) : b === 47 || b === 62 || ye(b) ? U(b) : n(b);
4679
4689
  }
4680
- function H(y) {
4681
- return y === 47 ? (e.consume(y), W) : y === 58 || y === 95 || Ue(y) ? (e.consume(y), S) : Y(y) ? (o = H, ce(y)) : se(y) ? (e.consume(y), H) : W(y);
4690
+ function U(b) {
4691
+ return b === 47 ? (e.consume(b), W) : b === 58 || b === 95 || Ue(b) ? (e.consume(b), S) : Y(b) ? (o = U, ce(b)) : se(b) ? (e.consume(b), U) : W(b);
4682
4692
  }
4683
- function S(y) {
4684
- return y === 45 || y === 46 || y === 58 || y === 95 || Le(y) ? (e.consume(y), S) : B(y);
4693
+ function S(b) {
4694
+ return b === 45 || b === 46 || b === 58 || b === 95 || Le(b) ? (e.consume(b), S) : D(b);
4685
4695
  }
4686
- function B(y) {
4687
- return y === 61 ? (e.consume(y), z) : Y(y) ? (o = B, ce(y)) : se(y) ? (e.consume(y), B) : H(y);
4696
+ function D(b) {
4697
+ return b === 61 ? (e.consume(b), z) : Y(b) ? (o = D, ce(b)) : se(b) ? (e.consume(b), D) : U(b);
4688
4698
  }
4689
- function z(y) {
4690
- return y === null || y === 60 || y === 61 || y === 62 || y === 96 ? n(y) : y === 34 || y === 39 ? (e.consume(y), i = y, I) : Y(y) ? (o = z, ce(y)) : se(y) ? (e.consume(y), z) : (e.consume(y), A);
4699
+ function z(b) {
4700
+ return b === null || b === 60 || b === 61 || b === 62 || b === 96 ? n(b) : b === 34 || b === 39 ? (e.consume(b), i = b, I) : Y(b) ? (o = z, ce(b)) : se(b) ? (e.consume(b), z) : (e.consume(b), A);
4691
4701
  }
4692
- function I(y) {
4693
- return y === i ? (e.consume(y), i = void 0, N) : y === null ? n(y) : Y(y) ? (o = I, ce(y)) : (e.consume(y), I);
4702
+ function I(b) {
4703
+ return b === i ? (e.consume(b), i = void 0, N) : b === null ? n(b) : Y(b) ? (o = I, ce(b)) : (e.consume(b), I);
4694
4704
  }
4695
- function A(y) {
4696
- return y === null || y === 34 || y === 39 || y === 60 || y === 61 || y === 96 ? n(y) : y === 47 || y === 62 || ye(y) ? H(y) : (e.consume(y), A);
4705
+ function A(b) {
4706
+ return b === null || b === 34 || b === 39 || b === 60 || b === 61 || b === 96 ? n(b) : b === 47 || b === 62 || ye(b) ? U(b) : (e.consume(b), A);
4697
4707
  }
4698
- function N(y) {
4699
- return y === 47 || y === 62 || ye(y) ? H(y) : n(y);
4708
+ function N(b) {
4709
+ return b === 47 || b === 62 || ye(b) ? U(b) : n(b);
4700
4710
  }
4701
- function W(y) {
4702
- return y === 62 ? (e.consume(y), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(y);
4711
+ function W(b) {
4712
+ return b === 62 ? (e.consume(b), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(b);
4703
4713
  }
4704
- function ce(y) {
4705
- return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(y), e.exit("lineEnding"), Z;
4714
+ function ce(b) {
4715
+ return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(b), e.exit("lineEnding"), Z;
4706
4716
  }
4707
- function Z(y) {
4708
- return se(y) ? de(e, ee, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(y) : ee(y);
4717
+ function Z(b) {
4718
+ return se(b) ? de(e, ee, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(b) : ee(b);
4709
4719
  }
4710
- function ee(y) {
4711
- return e.enter("htmlTextData"), o(y);
4720
+ function ee(b) {
4721
+ return e.enter("htmlTextData"), o(b);
4712
4722
  }
4713
4723
  }
4714
4724
  const ui = {
@@ -4733,7 +4743,7 @@ function ld(e) {
4733
4743
  r.type = "data", t += i;
4734
4744
  }
4735
4745
  }
4736
- return e.length !== n.length && Xe(e, 0, e.length, n), e;
4746
+ return e.length !== n.length && Ze(e, 0, e.length, n), e;
4737
4747
  }
4738
4748
  function cd(e, t) {
4739
4749
  let n = e.length, r = 0, i, a, o, s;
@@ -4773,7 +4783,7 @@ function cd(e, t) {
4773
4783
  ...e[o - 2][1].start
4774
4784
  }
4775
4785
  };
4776
- return s = [["enter", l, t], ["enter", c, t]], s = Je(s, e.slice(a + 1, a + r + 3)), s = Je(s, [["enter", d, t]]), s = Je(s, Xn(t.parser.constructs.insideSpan.null, e.slice(a + r + 4, o - 3), t)), s = Je(s, [["exit", d, t], e[o - 2], e[o - 1], ["exit", c, t]]), s = Je(s, e.slice(o + 1)), s = Je(s, [["exit", l, t]]), Xe(e, a, e.length, s), e;
4786
+ return s = [["enter", l, t], ["enter", c, t]], s = et(s, e.slice(a + 1, a + r + 3)), s = et(s, [["enter", d, t]]), s = et(s, Xn(t.parser.constructs.insideSpan.null, e.slice(a + r + 4, o - 3), t)), s = et(s, [["exit", d, t], e[o - 2], e[o - 1], ["exit", c, t]]), s = et(s, e.slice(o + 1)), s = et(s, [["exit", l, t]]), Ze(e, a, e.length, s), e;
4777
4787
  }
4778
4788
  function ud(e, t, n) {
4779
4789
  const r = this;
@@ -5253,7 +5263,7 @@ function qd(e, t, n) {
5253
5263
  }, c = {
5254
5264
  code: null,
5255
5265
  containerState: {},
5256
- defineSkip: m,
5266
+ defineSkip: E,
5257
5267
  events: [],
5258
5268
  now: g,
5259
5269
  parser: e,
@@ -5264,72 +5274,72 @@ function qd(e, t, n) {
5264
5274
  };
5265
5275
  let d = t.tokenize.call(c, l);
5266
5276
  return t.resolveAll && a.push(t), c;
5267
- function u(B) {
5268
- return o = Je(o, B), _(), o[o.length - 1] !== null ? [] : (F(t, 0), c.events = Xn(a, c.events, c), c.events);
5277
+ function u(D) {
5278
+ return o = et(o, D), _(), o[o.length - 1] !== null ? [] : (P(t, 0), c.events = Xn(a, c.events, c), c.events);
5269
5279
  }
5270
- function p(B, z) {
5271
- return jd(f(B), z);
5280
+ function p(D, z) {
5281
+ return jd(f(D), z);
5272
5282
  }
5273
- function f(B) {
5274
- return Kd(o, B);
5283
+ function f(D) {
5284
+ return Kd(o, D);
5275
5285
  }
5276
5286
  function g() {
5277
5287
  const {
5278
- _bufferIndex: B,
5288
+ _bufferIndex: D,
5279
5289
  _index: z,
5280
5290
  line: I,
5281
5291
  column: A,
5282
5292
  offset: N
5283
5293
  } = r;
5284
5294
  return {
5285
- _bufferIndex: B,
5295
+ _bufferIndex: D,
5286
5296
  _index: z,
5287
5297
  line: I,
5288
5298
  column: A,
5289
5299
  offset: N
5290
5300
  };
5291
5301
  }
5292
- function m(B) {
5293
- i[B.line] = B.column, S();
5302
+ function E(D) {
5303
+ i[D.line] = D.column, S();
5294
5304
  }
5295
5305
  function _() {
5296
- let B;
5306
+ let D;
5297
5307
  for (; r._index < o.length; ) {
5298
5308
  const z = o[r._index];
5299
5309
  if (typeof z == "string")
5300
- for (B = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === B && r._bufferIndex < z.length; )
5301
- b(z.charCodeAt(r._bufferIndex));
5310
+ for (D = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === D && r._bufferIndex < z.length; )
5311
+ m(z.charCodeAt(r._bufferIndex));
5302
5312
  else
5303
- b(z);
5313
+ m(z);
5304
5314
  }
5305
5315
  }
5306
- function b(B) {
5307
- d = d(B);
5316
+ function m(D) {
5317
+ d = d(D);
5308
5318
  }
5309
- function w(B) {
5310
- Y(B) ? (r.line++, r.column = 1, r.offset += B === -3 ? 2 : 1, S()) : B !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
5319
+ function w(D) {
5320
+ Y(D) ? (r.line++, r.column = 1, r.offset += D === -3 ? 2 : 1, S()) : D !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
5311
5321
  // strings.
5312
5322
  /** @type {string} */
5313
- o[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous = B;
5323
+ o[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous = D;
5314
5324
  }
5315
- function x(B, z) {
5325
+ function x(D, z) {
5316
5326
  const I = z || {};
5317
- return I.type = B, I.start = g(), c.events.push(["enter", I, c]), s.push(I), I;
5327
+ return I.type = D, I.start = g(), c.events.push(["enter", I, c]), s.push(I), I;
5318
5328
  }
5319
- function v(B) {
5329
+ function v(D) {
5320
5330
  const z = s.pop();
5321
5331
  return z.end = g(), c.events.push(["exit", z, c]), z;
5322
5332
  }
5323
- function O(B, z) {
5324
- F(B, z.from);
5333
+ function O(D, z) {
5334
+ P(D, z.from);
5325
5335
  }
5326
- function k(B, z) {
5336
+ function k(D, z) {
5327
5337
  z.restore();
5328
5338
  }
5329
- function M(B, z) {
5339
+ function M(D, z) {
5330
5340
  return I;
5331
5341
  function I(A, N, W) {
5332
- let ce, Z, ee, y;
5342
+ let ce, Z, ee, b;
5333
5343
  return Array.isArray(A) ? (
5334
5344
  /* c8 ignore next 1 */
5335
5345
  le(A)
@@ -5343,13 +5353,13 @@ function qd(e, t, n) {
5343
5353
  function q(ge) {
5344
5354
  return Me;
5345
5355
  function Me(Be) {
5346
- const Ze = Be !== null && ge[Be], Ie = Be !== null && ge.null, Qe = [
5356
+ const Qe = Be !== null && ge[Be], Re = Be !== null && ge.null, Je = [
5347
5357
  // To do: add more extension tests.
5348
5358
  /* c8 ignore next 2 */
5349
- ...Array.isArray(Ze) ? Ze : Ze ? [Ze] : [],
5350
- ...Array.isArray(Ie) ? Ie : Ie ? [Ie] : []
5359
+ ...Array.isArray(Qe) ? Qe : Qe ? [Qe] : [],
5360
+ ...Array.isArray(Re) ? Re : Re ? [Re] : []
5351
5361
  ];
5352
- return le(Qe)(Be);
5362
+ return le(Je)(Be);
5353
5363
  }
5354
5364
  }
5355
5365
  function le(ge) {
@@ -5358,7 +5368,7 @@ function qd(e, t, n) {
5358
5368
  function h(ge) {
5359
5369
  return Me;
5360
5370
  function Me(Be) {
5361
- return y = H(), ee = ge, ge.partial || (c.currentConstruct = ge), ge.name && c.parser.constructs.disable.null.includes(ge.name) ? fe() : ge.tokenize.call(
5371
+ return b = U(), ee = ge, ge.partial || (c.currentConstruct = ge), ge.name && c.parser.constructs.disable.null.includes(ge.name) ? fe() : ge.tokenize.call(
5362
5372
  // If we do have fields, create an object w/ `context` as its
5363
5373
  // prototype.
5364
5374
  // This allows a “live binding”, which is needed for `interrupt`.
@@ -5370,24 +5380,24 @@ function qd(e, t, n) {
5370
5380
  }
5371
5381
  }
5372
5382
  function X(ge) {
5373
- return B(ee, y), N;
5383
+ return D(ee, b), N;
5374
5384
  }
5375
5385
  function fe(ge) {
5376
- return y.restore(), ++Z < ce.length ? h(ce[Z]) : W;
5386
+ return b.restore(), ++Z < ce.length ? h(ce[Z]) : W;
5377
5387
  }
5378
5388
  }
5379
5389
  }
5380
- function F(B, z) {
5381
- B.resolveAll && !a.includes(B) && a.push(B), B.resolve && Xe(c.events, z, c.events.length - z, B.resolve(c.events.slice(z), c)), B.resolveTo && (c.events = B.resolveTo(c.events, c));
5390
+ function P(D, z) {
5391
+ D.resolveAll && !a.includes(D) && a.push(D), D.resolve && Ze(c.events, z, c.events.length - z, D.resolve(c.events.slice(z), c)), D.resolveTo && (c.events = D.resolveTo(c.events, c));
5382
5392
  }
5383
- function H() {
5384
- const B = g(), z = c.previous, I = c.currentConstruct, A = c.events.length, N = Array.from(s);
5393
+ function U() {
5394
+ const D = g(), z = c.previous, I = c.currentConstruct, A = c.events.length, N = Array.from(s);
5385
5395
  return {
5386
5396
  from: A,
5387
5397
  restore: W
5388
5398
  };
5389
5399
  function W() {
5390
- r = B, c.previous = z, c.currentConstruct = I, c.events.length = A, s = N, S();
5400
+ r = D, c.previous = z, c.currentConstruct = I, c.events.length = A, s = N, S();
5391
5401
  }
5392
5402
  }
5393
5403
  function S() {
@@ -5534,20 +5544,20 @@ function tf(e) {
5534
5544
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
5535
5545
  enter: {
5536
5546
  autolink: a($e),
5537
- autolinkProtocol: H,
5538
- autolinkEmail: H,
5547
+ autolinkProtocol: U,
5548
+ autolinkEmail: U,
5539
5549
  atxHeading: a(tt),
5540
- blockQuote: a(Ie),
5541
- characterEscape: H,
5542
- characterReference: H,
5543
- codeFenced: a(Qe),
5550
+ blockQuote: a(Re),
5551
+ characterEscape: U,
5552
+ characterReference: U,
5553
+ codeFenced: a(Je),
5544
5554
  codeFencedFenceInfo: o,
5545
5555
  codeFencedFenceMeta: o,
5546
- codeIndented: a(Qe, o),
5556
+ codeIndented: a(Je, o),
5547
5557
  codeText: a(ft, o),
5548
- codeTextData: H,
5549
- data: H,
5550
- codeFlowValue: H,
5558
+ codeTextData: U,
5559
+ data: U,
5560
+ codeFlowValue: U,
5551
5561
  definition: a(pt),
5552
5562
  definitionDestinationString: o,
5553
5563
  definitionLabelString: o,
@@ -5556,9 +5566,9 @@ function tf(e) {
5556
5566
  hardBreakEscape: a(pe),
5557
5567
  hardBreakTrailing: a(pe),
5558
5568
  htmlFlow: a(qe, o),
5559
- htmlFlowData: H,
5569
+ htmlFlowData: U,
5560
5570
  htmlText: a(qe, o),
5561
- htmlTextData: H,
5571
+ htmlTextData: U,
5562
5572
  image: a(nt),
5563
5573
  label: o,
5564
5574
  link: a($e),
@@ -5579,7 +5589,7 @@ function tf(e) {
5579
5589
  atxHeading: l(),
5580
5590
  atxHeadingSequence: O,
5581
5591
  autolink: l(),
5582
- autolinkEmail: Ze,
5592
+ autolinkEmail: Qe,
5583
5593
  autolinkProtocol: Be,
5584
5594
  blockQuote: l(),
5585
5595
  characterEscapeValue: S,
@@ -5588,11 +5598,11 @@ function tf(e) {
5588
5598
  characterReferenceValue: ge,
5589
5599
  characterReference: Me,
5590
5600
  codeFenced: l(_),
5591
- codeFencedFence: m,
5601
+ codeFencedFence: E,
5592
5602
  codeFencedFenceInfo: f,
5593
5603
  codeFencedFenceMeta: g,
5594
5604
  codeFlowValue: S,
5595
- codeIndented: l(b),
5605
+ codeIndented: l(m),
5596
5606
  codeText: l(N),
5597
5607
  codeTextData: S,
5598
5608
  data: S,
@@ -5610,17 +5620,17 @@ function tf(e) {
5610
5620
  image: l(ce),
5611
5621
  label: ee,
5612
5622
  labelText: Z,
5613
- lineEnding: B,
5623
+ lineEnding: D,
5614
5624
  link: l(W),
5615
5625
  listItem: l(),
5616
5626
  listOrdered: l(),
5617
5627
  listUnordered: l(),
5618
5628
  paragraph: l(),
5619
5629
  referenceString: X,
5620
- resourceDestinationString: y,
5630
+ resourceDestinationString: b,
5621
5631
  resourceTitleString: q,
5622
5632
  resource: le,
5623
- setextHeading: l(F),
5633
+ setextHeading: l(P),
5624
5634
  setextHeadingLineSequence: M,
5625
5635
  setextHeadingText: k,
5626
5636
  strong: l(),
@@ -5631,12 +5641,12 @@ function tf(e) {
5631
5641
  const n = {};
5632
5642
  return r;
5633
5643
  function r(C) {
5634
- let P = {
5644
+ let F = {
5635
5645
  type: "root",
5636
5646
  children: []
5637
5647
  };
5638
5648
  const Q = {
5639
- stack: [P],
5649
+ stack: [F],
5640
5650
  tokenStack: [],
5641
5651
  config: t,
5642
5652
  enter: s,
@@ -5664,7 +5674,7 @@ function tf(e) {
5664
5674
  const Ke = Q.tokenStack[Q.tokenStack.length - 1];
5665
5675
  (Ke[1] || mo).call(Q, void 0, Ke[0]);
5666
5676
  }
5667
- for (P.position = {
5677
+ for (F.position = {
5668
5678
  start: St(C.length > 0 ? C[0][1].start : {
5669
5679
  line: 1,
5670
5680
  column: 1,
@@ -5676,11 +5686,11 @@ function tf(e) {
5676
5686
  offset: 0
5677
5687
  })
5678
5688
  }, he = -1; ++he < t.transforms.length; )
5679
- P = t.transforms[he](P) || P;
5680
- return P;
5689
+ F = t.transforms[he](F) || F;
5690
+ return F;
5681
5691
  }
5682
- function i(C, P, Q) {
5683
- let ae = P - 1, he = -1, Ke = !1, ht, rt, _t, Ot;
5692
+ function i(C, F, Q) {
5693
+ let ae = F - 1, he = -1, Ke = !1, ht, rt, _t, Ot;
5684
5694
  for (; ++ae <= Q; ) {
5685
5695
  const Fe = C[ae];
5686
5696
  switch (Fe[1].type) {
@@ -5727,12 +5737,12 @@ function tf(e) {
5727
5737
  }
5728
5738
  }
5729
5739
  }
5730
- return C[P][1]._spread = Ke, Q;
5740
+ return C[F][1]._spread = Ke, Q;
5731
5741
  }
5732
- function a(C, P) {
5742
+ function a(C, F) {
5733
5743
  return Q;
5734
5744
  function Q(ae) {
5735
- s.call(this, C(ae), ae), P && P.call(this, ae);
5745
+ s.call(this, C(ae), ae), F && F.call(this, ae);
5736
5746
  }
5737
5747
  }
5738
5748
  function o() {
@@ -5741,23 +5751,23 @@ function tf(e) {
5741
5751
  children: []
5742
5752
  });
5743
5753
  }
5744
- function s(C, P, Q) {
5745
- this.stack[this.stack.length - 1].children.push(C), this.stack.push(C), this.tokenStack.push([P, Q || void 0]), C.position = {
5746
- start: St(P.start),
5754
+ function s(C, F, Q) {
5755
+ this.stack[this.stack.length - 1].children.push(C), this.stack.push(C), this.tokenStack.push([F, Q || void 0]), C.position = {
5756
+ start: St(F.start),
5747
5757
  // @ts-expect-error: `end` will be patched later.
5748
5758
  end: void 0
5749
5759
  };
5750
5760
  }
5751
5761
  function l(C) {
5752
- return P;
5753
- function P(Q) {
5762
+ return F;
5763
+ function F(Q) {
5754
5764
  C && C.call(this, Q), c.call(this, Q);
5755
5765
  }
5756
5766
  }
5757
- function c(C, P) {
5767
+ function c(C, F) {
5758
5768
  const Q = this.stack.pop(), ae = this.tokenStack.pop();
5759
5769
  if (ae)
5760
- ae[0].type !== C.type && (P ? P.call(this, C, ae[0]) : (ae[1] || mo).call(this, C, ae[0]));
5770
+ ae[0].type !== C.type && (F ? F.call(this, C, ae[0]) : (ae[1] || mo).call(this, C, ae[0]));
5761
5771
  else throw new Error("Cannot close `" + C.type + "` (" + ln({
5762
5772
  start: C.start,
5763
5773
  end: C.end
@@ -5772,59 +5782,59 @@ function tf(e) {
5772
5782
  }
5773
5783
  function p(C) {
5774
5784
  if (this.data.expectingFirstListItemValue) {
5775
- const P = this.stack[this.stack.length - 2];
5776
- P.start = Number.parseInt(this.sliceSerialize(C), 10), this.data.expectingFirstListItemValue = void 0;
5785
+ const F = this.stack[this.stack.length - 2];
5786
+ F.start = Number.parseInt(this.sliceSerialize(C), 10), this.data.expectingFirstListItemValue = void 0;
5777
5787
  }
5778
5788
  }
5779
5789
  function f() {
5780
- const C = this.resume(), P = this.stack[this.stack.length - 1];
5781
- P.lang = C;
5790
+ const C = this.resume(), F = this.stack[this.stack.length - 1];
5791
+ F.lang = C;
5782
5792
  }
5783
5793
  function g() {
5784
- const C = this.resume(), P = this.stack[this.stack.length - 1];
5785
- P.meta = C;
5794
+ const C = this.resume(), F = this.stack[this.stack.length - 1];
5795
+ F.meta = C;
5786
5796
  }
5787
- function m() {
5797
+ function E() {
5788
5798
  this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
5789
5799
  }
5790
5800
  function _() {
5791
- const C = this.resume(), P = this.stack[this.stack.length - 1];
5792
- P.value = C.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
5801
+ const C = this.resume(), F = this.stack[this.stack.length - 1];
5802
+ F.value = C.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
5793
5803
  }
5794
- function b() {
5795
- const C = this.resume(), P = this.stack[this.stack.length - 1];
5796
- P.value = C.replace(/(\r?\n|\r)$/g, "");
5804
+ function m() {
5805
+ const C = this.resume(), F = this.stack[this.stack.length - 1];
5806
+ F.value = C.replace(/(\r?\n|\r)$/g, "");
5797
5807
  }
5798
5808
  function w(C) {
5799
- const P = this.resume(), Q = this.stack[this.stack.length - 1];
5800
- Q.label = P, Q.identifier = ot(this.sliceSerialize(C)).toLowerCase();
5809
+ const F = this.resume(), Q = this.stack[this.stack.length - 1];
5810
+ Q.label = F, Q.identifier = ot(this.sliceSerialize(C)).toLowerCase();
5801
5811
  }
5802
5812
  function x() {
5803
- const C = this.resume(), P = this.stack[this.stack.length - 1];
5804
- P.title = C;
5813
+ const C = this.resume(), F = this.stack[this.stack.length - 1];
5814
+ F.title = C;
5805
5815
  }
5806
5816
  function v() {
5807
- const C = this.resume(), P = this.stack[this.stack.length - 1];
5808
- P.url = C;
5817
+ const C = this.resume(), F = this.stack[this.stack.length - 1];
5818
+ F.url = C;
5809
5819
  }
5810
5820
  function O(C) {
5811
- const P = this.stack[this.stack.length - 1];
5812
- if (!P.depth) {
5821
+ const F = this.stack[this.stack.length - 1];
5822
+ if (!F.depth) {
5813
5823
  const Q = this.sliceSerialize(C).length;
5814
- P.depth = Q;
5824
+ F.depth = Q;
5815
5825
  }
5816
5826
  }
5817
5827
  function k() {
5818
5828
  this.data.setextHeadingSlurpLineEnding = !0;
5819
5829
  }
5820
5830
  function M(C) {
5821
- const P = this.stack[this.stack.length - 1];
5822
- P.depth = this.sliceSerialize(C).codePointAt(0) === 61 ? 1 : 2;
5831
+ const F = this.stack[this.stack.length - 1];
5832
+ F.depth = this.sliceSerialize(C).codePointAt(0) === 61 ? 1 : 2;
5823
5833
  }
5824
- function F() {
5834
+ function P() {
5825
5835
  this.data.setextHeadingSlurpLineEnding = void 0;
5826
5836
  }
5827
- function H(C) {
5837
+ function U(C) {
5828
5838
  const Q = this.stack[this.stack.length - 1].children;
5829
5839
  let ae = Q[Q.length - 1];
5830
5840
  (!ae || ae.type !== "text") && (ae = gt(), ae.position = {
@@ -5834,38 +5844,38 @@ function tf(e) {
5834
5844
  }, Q.push(ae)), this.stack.push(ae);
5835
5845
  }
5836
5846
  function S(C) {
5837
- const P = this.stack.pop();
5838
- P.value += this.sliceSerialize(C), P.position.end = St(C.end);
5847
+ const F = this.stack.pop();
5848
+ F.value += this.sliceSerialize(C), F.position.end = St(C.end);
5839
5849
  }
5840
- function B(C) {
5841
- const P = this.stack[this.stack.length - 1];
5850
+ function D(C) {
5851
+ const F = this.stack[this.stack.length - 1];
5842
5852
  if (this.data.atHardBreak) {
5843
- const Q = P.children[P.children.length - 1];
5853
+ const Q = F.children[F.children.length - 1];
5844
5854
  Q.position.end = St(C.end), this.data.atHardBreak = void 0;
5845
5855
  return;
5846
5856
  }
5847
- !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(P.type) && (H.call(this, C), S.call(this, C));
5857
+ !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(F.type) && (U.call(this, C), S.call(this, C));
5848
5858
  }
5849
5859
  function z() {
5850
5860
  this.data.atHardBreak = !0;
5851
5861
  }
5852
5862
  function I() {
5853
- const C = this.resume(), P = this.stack[this.stack.length - 1];
5854
- P.value = C;
5863
+ const C = this.resume(), F = this.stack[this.stack.length - 1];
5864
+ F.value = C;
5855
5865
  }
5856
5866
  function A() {
5857
- const C = this.resume(), P = this.stack[this.stack.length - 1];
5858
- P.value = C;
5867
+ const C = this.resume(), F = this.stack[this.stack.length - 1];
5868
+ F.value = C;
5859
5869
  }
5860
5870
  function N() {
5861
- const C = this.resume(), P = this.stack[this.stack.length - 1];
5862
- P.value = C;
5871
+ const C = this.resume(), F = this.stack[this.stack.length - 1];
5872
+ F.value = C;
5863
5873
  }
5864
5874
  function W() {
5865
5875
  const C = this.stack[this.stack.length - 1];
5866
5876
  if (this.data.inReference) {
5867
- const P = this.data.referenceType || "shortcut";
5868
- C.type += "Reference", C.referenceType = P, delete C.url, delete C.title;
5877
+ const F = this.data.referenceType || "shortcut";
5878
+ C.type += "Reference", C.referenceType = F, delete C.url, delete C.title;
5869
5879
  } else
5870
5880
  delete C.identifier, delete C.label;
5871
5881
  this.data.referenceType = void 0;
@@ -5873,31 +5883,31 @@ function tf(e) {
5873
5883
  function ce() {
5874
5884
  const C = this.stack[this.stack.length - 1];
5875
5885
  if (this.data.inReference) {
5876
- const P = this.data.referenceType || "shortcut";
5877
- C.type += "Reference", C.referenceType = P, delete C.url, delete C.title;
5886
+ const F = this.data.referenceType || "shortcut";
5887
+ C.type += "Reference", C.referenceType = F, delete C.url, delete C.title;
5878
5888
  } else
5879
5889
  delete C.identifier, delete C.label;
5880
5890
  this.data.referenceType = void 0;
5881
5891
  }
5882
5892
  function Z(C) {
5883
- const P = this.sliceSerialize(C), Q = this.stack[this.stack.length - 2];
5884
- Q.label = Qd(P), Q.identifier = ot(P).toLowerCase();
5893
+ const F = this.sliceSerialize(C), Q = this.stack[this.stack.length - 2];
5894
+ Q.label = Qd(F), Q.identifier = ot(F).toLowerCase();
5885
5895
  }
5886
5896
  function ee() {
5887
- const C = this.stack[this.stack.length - 1], P = this.resume(), Q = this.stack[this.stack.length - 1];
5897
+ const C = this.stack[this.stack.length - 1], F = this.resume(), Q = this.stack[this.stack.length - 1];
5888
5898
  if (this.data.inReference = !0, Q.type === "link") {
5889
5899
  const ae = C.children;
5890
5900
  Q.children = ae;
5891
5901
  } else
5892
- Q.alt = P;
5902
+ Q.alt = F;
5893
5903
  }
5894
- function y() {
5895
- const C = this.resume(), P = this.stack[this.stack.length - 1];
5896
- P.url = C;
5904
+ function b() {
5905
+ const C = this.resume(), F = this.stack[this.stack.length - 1];
5906
+ F.url = C;
5897
5907
  }
5898
5908
  function q() {
5899
- const C = this.resume(), P = this.stack[this.stack.length - 1];
5900
- P.title = C;
5909
+ const C = this.resume(), F = this.stack[this.stack.length - 1];
5910
+ F.title = C;
5901
5911
  }
5902
5912
  function le() {
5903
5913
  this.data.inReference = void 0;
@@ -5906,40 +5916,40 @@ function tf(e) {
5906
5916
  this.data.referenceType = "collapsed";
5907
5917
  }
5908
5918
  function X(C) {
5909
- const P = this.resume(), Q = this.stack[this.stack.length - 1];
5910
- Q.label = P, Q.identifier = ot(this.sliceSerialize(C)).toLowerCase(), this.data.referenceType = "full";
5919
+ const F = this.resume(), Q = this.stack[this.stack.length - 1];
5920
+ Q.label = F, Q.identifier = ot(this.sliceSerialize(C)).toLowerCase(), this.data.referenceType = "full";
5911
5921
  }
5912
5922
  function fe(C) {
5913
5923
  this.data.characterReferenceType = C.type;
5914
5924
  }
5915
5925
  function ge(C) {
5916
- const P = this.sliceSerialize(C), Q = this.data.characterReferenceType;
5926
+ const F = this.sliceSerialize(C), Q = this.data.characterReferenceType;
5917
5927
  let ae;
5918
- Q ? (ae = Ma(P, Q === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : ae = ci(P);
5928
+ Q ? (ae = Ma(F, Q === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : ae = ci(F);
5919
5929
  const he = this.stack[this.stack.length - 1];
5920
5930
  he.value += ae;
5921
5931
  }
5922
5932
  function Me(C) {
5923
- const P = this.stack.pop();
5924
- P.position.end = St(C.end);
5933
+ const F = this.stack.pop();
5934
+ F.position.end = St(C.end);
5925
5935
  }
5926
5936
  function Be(C) {
5927
5937
  S.call(this, C);
5928
- const P = this.stack[this.stack.length - 1];
5929
- P.url = this.sliceSerialize(C);
5938
+ const F = this.stack[this.stack.length - 1];
5939
+ F.url = this.sliceSerialize(C);
5930
5940
  }
5931
- function Ze(C) {
5941
+ function Qe(C) {
5932
5942
  S.call(this, C);
5933
- const P = this.stack[this.stack.length - 1];
5934
- P.url = "mailto:" + this.sliceSerialize(C);
5943
+ const F = this.stack[this.stack.length - 1];
5944
+ F.url = "mailto:" + this.sliceSerialize(C);
5935
5945
  }
5936
- function Ie() {
5946
+ function Re() {
5937
5947
  return {
5938
5948
  type: "blockquote",
5939
5949
  children: []
5940
5950
  };
5941
5951
  }
5942
- function Qe() {
5952
+ function Je() {
5943
5953
  return {
5944
5954
  type: "code",
5945
5955
  lang: null,
@@ -6645,8 +6655,8 @@ function Bf(e) {
6645
6655
  continue;
6646
6656
  const d = e.all(c), u = String(c.identifier).toUpperCase(), p = Zt(u.toLowerCase());
6647
6657
  let f = 0;
6648
- const g = [], m = e.footnoteCounts.get(u);
6649
- for (; m !== void 0 && ++f <= m; ) {
6658
+ const g = [], E = e.footnoteCounts.get(u);
6659
+ for (; E !== void 0 && ++f <= E; ) {
6650
6660
  g.length > 0 && g.push({ type: "text", value: " " });
6651
6661
  let w = typeof n == "string" ? n : n(l, f);
6652
6662
  typeof w == "string" && (w = { type: "text", value: w }), g.push({
@@ -6667,13 +6677,13 @@ function Bf(e) {
6667
6677
  w && w.type === "text" ? w.value += " " : _.children.push({ type: "text", value: " " }), _.children.push(...g);
6668
6678
  } else
6669
6679
  d.push(...g);
6670
- const b = {
6680
+ const m = {
6671
6681
  type: "element",
6672
6682
  tagName: "li",
6673
6683
  properties: { id: t + "fn-" + p },
6674
6684
  children: e.wrap(d, !0)
6675
6685
  };
6676
- e.patch(c, b), s.push(b);
6686
+ e.patch(c, m), s.push(m);
6677
6687
  }
6678
6688
  if (s.length !== 0)
6679
6689
  return {
@@ -6816,20 +6826,20 @@ function Za(e, t, n, r) {
6816
6826
  }
6817
6827
  return p;
6818
6828
  function p() {
6819
- let f = Xa, g, m, _;
6829
+ let f = Xa, g, E, _;
6820
6830
  if ((!t || a(l, c, d[d.length - 1] || void 0)) && (f = qf(n(l, d)), f[0] === Yr))
6821
6831
  return f;
6822
6832
  if ("children" in l && l.children) {
6823
- const b = (
6833
+ const m = (
6824
6834
  /** @type {UnistParent} */
6825
6835
  l
6826
6836
  );
6827
- if (b.children && f[0] !== Gf)
6828
- for (m = (r ? b.children.length : -1) + o, _ = d.concat(b); m > -1 && m < b.children.length; ) {
6829
- const w = b.children[m];
6830
- if (g = s(w, m, _)(), g[0] === Yr)
6837
+ if (m.children && f[0] !== Gf)
6838
+ for (E = (r ? m.children.length : -1) + o, _ = d.concat(m); E > -1 && E < m.children.length; ) {
6839
+ const w = m.children[E];
6840
+ if (g = s(w, E, _)(), g[0] === Yr)
6831
6841
  return g;
6832
- m = typeof g[1] == "number" ? g[1] : m + o;
6842
+ E = typeof g[1] == "number" ? g[1] : E + o;
6833
6843
  }
6834
6844
  }
6835
6845
  return f;
@@ -6874,8 +6884,8 @@ function jf(e, t) {
6874
6884
  return f(s, d, u);
6875
6885
  if (s.options.passThrough && s.options.passThrough.includes(p)) {
6876
6886
  if ("children" in d) {
6877
- const { children: m, ..._ } = d, b = $n(_);
6878
- return b.children = s.all(d), b;
6887
+ const { children: E, ..._ } = d, m = $n(_);
6888
+ return m.children = s.all(d), m;
6879
6889
  }
6880
6890
  return $n(d);
6881
6891
  }
@@ -6890,8 +6900,8 @@ function jf(e, t) {
6890
6900
  const g = s.one(p[f], d);
6891
6901
  if (g) {
6892
6902
  if (f && p[f - 1].type === "break" && (!Array.isArray(g) && g.type === "text" && (g.value = ko(g.value)), !Array.isArray(g) && g.type === "element")) {
6893
- const m = g.children[0];
6894
- m && m.type === "text" && (m.value = ko(m.value));
6903
+ const E = g.children[0];
6904
+ E && E.type === "text" && (E.value = ko(E.value));
6895
6905
  }
6896
6906
  Array.isArray(g) ? u.push(...g) : u.push(g);
6897
6907
  }
@@ -6998,12 +7008,12 @@ function Jf() {
6998
7008
  return c[d];
6999
7009
  };
7000
7010
  return wr = function l() {
7001
- var c, d, u, p, f, g, m = arguments[0], _ = 1, b = arguments.length, w = !1;
7002
- for (typeof m == "boolean" && (w = m, m = arguments[1] || {}, _ = 2), (m == null || typeof m != "object" && typeof m != "function") && (m = {}); _ < b; ++_)
7011
+ var c, d, u, p, f, g, E = arguments[0], _ = 1, m = arguments.length, w = !1;
7012
+ for (typeof E == "boolean" && (w = E, E = arguments[1] || {}, _ = 2), (E == null || typeof E != "object" && typeof E != "function") && (E = {}); _ < m; ++_)
7003
7013
  if (c = arguments[_], c != null)
7004
7014
  for (d in c)
7005
- u = s(m, d), p = s(c, d), m !== p && (w && p && (a(p) || (f = i(p))) ? (f ? (f = !1, g = u && i(u) ? u : []) : g = u && a(u) ? u : {}, o(m, { name: d, newValue: l(w, g, p) })) : typeof p < "u" && o(m, { name: d, newValue: p }));
7006
- return m;
7015
+ u = s(E, d), p = s(c, d), E !== p && (w && p && (a(p) || (f = i(p))) ? (f ? (f = !1, g = u && i(u) ? u : []) : g = u && a(u) ? u : {}, o(E, { name: d, newValue: l(w, g, p) })) : typeof p < "u" && o(E, { name: d, newValue: p }));
7016
+ return E;
7007
7017
  }, wr;
7008
7018
  }
7009
7019
  var ep = Jf();
@@ -8118,8 +8128,8 @@ class hi extends gp {
8118
8128
  r.push([c, ...d]);
8119
8129
  else if (d.length > 0) {
8120
8130
  let [f, ...g] = d;
8121
- const m = r[p][1];
8122
- Zr(m) && Zr(f) && (f = kr(!0, m, f)), r[p] = [c, f, ...g];
8131
+ const E = r[p][1];
8132
+ Zr(E) && Zr(f) && (f = kr(!0, E, f)), r[p] = [c, f, ...g];
8123
8133
  }
8124
8134
  }
8125
8135
  }
@@ -8238,8 +8248,8 @@ function Tp(e, t) {
8238
8248
  let f;
8239
8249
  for (f in Er)
8240
8250
  if (Object.hasOwn(Er, f) && Object.hasOwn(d.properties, f)) {
8241
- const g = d.properties[f], m = Er[f];
8242
- (m === null || m.includes(d.tagName)) && (d.properties[f] = l(String(g || ""), f, d));
8251
+ const g = d.properties[f], E = Er[f];
8252
+ (E === null || E.includes(d.tagName)) && (d.properties[f] = l(String(g || ""), f, d));
8243
8253
  }
8244
8254
  }
8245
8255
  if (d.type === "element") {
@@ -8296,7 +8306,7 @@ function Ap(e, t, n) {
8296
8306
  const u = d[d.length - 1], p = a[o][0], f = a[o][1];
8297
8307
  let g = 0;
8298
8308
  const _ = u.children.indexOf(c);
8299
- let b = !1, w = [];
8309
+ let m = !1, w = [];
8300
8310
  p.lastIndex = 0;
8301
8311
  let x = p.exec(c.value);
8302
8312
  for (; x; ) {
@@ -8309,11 +8319,11 @@ function Ap(e, t, n) {
8309
8319
  if (typeof k == "string" && (k = k.length > 0 ? { type: "text", value: k } : void 0), k === !1 ? p.lastIndex = v + 1 : (g !== v && w.push({
8310
8320
  type: "text",
8311
8321
  value: c.value.slice(g, v)
8312
- }), Array.isArray(k) ? w.push(...k) : k && w.push(k), g = v + x[0].length, b = !0), !p.global)
8322
+ }), Array.isArray(k) ? w.push(...k) : k && w.push(k), g = v + x[0].length, m = !0), !p.global)
8313
8323
  break;
8314
8324
  x = p.exec(c.value);
8315
8325
  }
8316
- return b ? (g < c.value.length && w.push({ type: "text", value: c.value.slice(g) }), u.children.splice(_, 1, ...w)) : w = [c], _ + w.length;
8326
+ return m ? (g < c.value.length && w.push({ type: "text", value: c.value.slice(g) }), u.children.splice(_, 1, ...w)) : w = [c], _ + w.length;
8317
8327
  }
8318
8328
  }
8319
8329
  function Ip(e) {
@@ -8600,59 +8610,59 @@ function ug(e, t) {
8600
8610
  const n = t || {}, r = (n.align || []).concat(), i = n.stringLength || cg, a = [], o = [], s = [], l = [];
8601
8611
  let c = 0, d = -1;
8602
8612
  for (; ++d < e.length; ) {
8603
- const m = [], _ = [];
8604
- let b = -1;
8605
- for (e[d].length > c && (c = e[d].length); ++b < e[d].length; ) {
8606
- const w = dg(e[d][b]);
8613
+ const E = [], _ = [];
8614
+ let m = -1;
8615
+ for (e[d].length > c && (c = e[d].length); ++m < e[d].length; ) {
8616
+ const w = dg(e[d][m]);
8607
8617
  if (n.alignDelimiters !== !1) {
8608
8618
  const x = i(w);
8609
- _[b] = x, (l[b] === void 0 || x > l[b]) && (l[b] = x);
8619
+ _[m] = x, (l[m] === void 0 || x > l[m]) && (l[m] = x);
8610
8620
  }
8611
- m.push(w);
8621
+ E.push(w);
8612
8622
  }
8613
- o[d] = m, s[d] = _;
8623
+ o[d] = E, s[d] = _;
8614
8624
  }
8615
8625
  let u = -1;
8616
8626
  if (typeof r == "object" && "length" in r)
8617
8627
  for (; ++u < c; )
8618
8628
  a[u] = Mo(r[u]);
8619
8629
  else {
8620
- const m = Mo(r);
8630
+ const E = Mo(r);
8621
8631
  for (; ++u < c; )
8622
- a[u] = m;
8632
+ a[u] = E;
8623
8633
  }
8624
8634
  u = -1;
8625
8635
  const p = [], f = [];
8626
8636
  for (; ++u < c; ) {
8627
- const m = a[u];
8628
- let _ = "", b = "";
8629
- m === 99 ? (_ = ":", b = ":") : m === 108 ? _ = ":" : m === 114 && (b = ":");
8637
+ const E = a[u];
8638
+ let _ = "", m = "";
8639
+ E === 99 ? (_ = ":", m = ":") : E === 108 ? _ = ":" : E === 114 && (m = ":");
8630
8640
  let w = n.alignDelimiters === !1 ? 1 : Math.max(
8631
8641
  1,
8632
- l[u] - _.length - b.length
8642
+ l[u] - _.length - m.length
8633
8643
  );
8634
- const x = _ + "-".repeat(w) + b;
8635
- n.alignDelimiters !== !1 && (w = _.length + w + b.length, w > l[u] && (l[u] = w), f[u] = w), p[u] = x;
8644
+ const x = _ + "-".repeat(w) + m;
8645
+ n.alignDelimiters !== !1 && (w = _.length + w + m.length, w > l[u] && (l[u] = w), f[u] = w), p[u] = x;
8636
8646
  }
8637
8647
  o.splice(1, 0, p), s.splice(1, 0, f), d = -1;
8638
8648
  const g = [];
8639
8649
  for (; ++d < o.length; ) {
8640
- const m = o[d], _ = s[d];
8650
+ const E = o[d], _ = s[d];
8641
8651
  u = -1;
8642
- const b = [];
8652
+ const m = [];
8643
8653
  for (; ++u < c; ) {
8644
- const w = m[u] || "";
8654
+ const w = E[u] || "";
8645
8655
  let x = "", v = "";
8646
8656
  if (n.alignDelimiters !== !1) {
8647
8657
  const O = l[u] - (_[u] || 0), k = a[u];
8648
8658
  k === 114 ? x = " ".repeat(O) : k === 99 ? O % 2 ? (x = " ".repeat(O / 2 + 0.5), v = " ".repeat(O / 2 - 0.5)) : (x = " ".repeat(O / 2), v = x) : v = " ".repeat(O);
8649
8659
  }
8650
- n.delimiterStart !== !1 && !u && b.push("|"), n.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
8660
+ n.delimiterStart !== !1 && !u && m.push("|"), n.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
8651
8661
  // empty: there will be a closing space.
8652
- !(n.alignDelimiters === !1 && w === "") && (n.delimiterStart !== !1 || u) && b.push(" "), n.alignDelimiters !== !1 && b.push(x), b.push(w), n.alignDelimiters !== !1 && b.push(v), n.padding !== !1 && b.push(" "), (n.delimiterEnd !== !1 || u !== c - 1) && b.push("|");
8662
+ !(n.alignDelimiters === !1 && w === "") && (n.delimiterStart !== !1 || u) && m.push(" "), n.alignDelimiters !== !1 && m.push(x), m.push(w), n.alignDelimiters !== !1 && m.push(v), n.padding !== !1 && m.push(" "), (n.delimiterEnd !== !1 || u !== c - 1) && m.push("|");
8653
8663
  }
8654
8664
  g.push(
8655
- n.delimiterEnd === !1 ? b.join("").replace(/ +$/, "") : b.join("")
8665
+ n.delimiterEnd === !1 ? m.join("").replace(/ +$/, "") : m.join("")
8656
8666
  );
8657
8667
  }
8658
8668
  return g.join(`
@@ -9341,21 +9351,21 @@ function Xg(e) {
9341
9351
  tableRow: s
9342
9352
  }
9343
9353
  };
9344
- function o(f, g, m, _) {
9345
- return c(d(f, m, _), f.align);
9354
+ function o(f, g, E, _) {
9355
+ return c(d(f, E, _), f.align);
9346
9356
  }
9347
- function s(f, g, m, _) {
9348
- const b = u(f, m, _), w = c([b]);
9357
+ function s(f, g, E, _) {
9358
+ const m = u(f, E, _), w = c([m]);
9349
9359
  return w.slice(0, w.indexOf(`
9350
9360
  `));
9351
9361
  }
9352
- function l(f, g, m, _) {
9353
- const b = m.enter("tableCell"), w = m.enter("phrasing"), x = m.containerPhrasing(f, {
9362
+ function l(f, g, E, _) {
9363
+ const m = E.enter("tableCell"), w = E.enter("phrasing"), x = E.containerPhrasing(f, {
9354
9364
  ..._,
9355
9365
  before: a,
9356
9366
  after: a
9357
9367
  });
9358
- return w(), b(), x;
9368
+ return w(), m(), x;
9359
9369
  }
9360
9370
  function c(f, g) {
9361
9371
  return ug(f, {
@@ -9368,25 +9378,25 @@ function Xg(e) {
9368
9378
  stringLength: i
9369
9379
  });
9370
9380
  }
9371
- function d(f, g, m) {
9381
+ function d(f, g, E) {
9372
9382
  const _ = f.children;
9373
- let b = -1;
9383
+ let m = -1;
9374
9384
  const w = [], x = g.enter("table");
9375
- for (; ++b < _.length; )
9376
- w[b] = u(_[b], g, m);
9385
+ for (; ++m < _.length; )
9386
+ w[m] = u(_[m], g, E);
9377
9387
  return x(), w;
9378
9388
  }
9379
- function u(f, g, m) {
9389
+ function u(f, g, E) {
9380
9390
  const _ = f.children;
9381
- let b = -1;
9391
+ let m = -1;
9382
9392
  const w = [], x = g.enter("tableRow");
9383
- for (; ++b < _.length; )
9384
- w[b] = l(_[b], f, g, m);
9393
+ for (; ++m < _.length; )
9394
+ w[m] = l(_[m], f, g, E);
9385
9395
  return x(), w;
9386
9396
  }
9387
- function p(f, g, m) {
9388
- let _ = ps.inlineCode(f, g, m);
9389
- return m.stack.includes("tableCell") && (_ = _.replace(/\|/g, "\\$&")), _;
9397
+ function p(f, g, E) {
9398
+ let _ = ps.inlineCode(f, g, E);
9399
+ return E.stack.includes("tableCell") && (_ = _.replace(/\|/g, "\\$&")), _;
9390
9400
  }
9391
9401
  }
9392
9402
  function Zg() {
@@ -9806,8 +9816,8 @@ function Eh(e, t, n) {
9806
9816
  return n(g);
9807
9817
  if (g === 93) {
9808
9818
  e.exit("chunkString");
9809
- const m = e.exit("gfmFootnoteDefinitionLabelString");
9810
- return a = ot(r.sliceSerialize(m)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(g), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), p;
9819
+ const E = e.exit("gfmFootnoteDefinitionLabelString");
9820
+ return a = ot(r.sliceSerialize(E)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(g), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), p;
9811
9821
  }
9812
9822
  return ye(g) || (s = !0), o++, e.consume(g), g === 92 ? u : d;
9813
9823
  }
@@ -9871,7 +9881,7 @@ function kh(e) {
9871
9881
  start: Object.assign({}, o[c][1].end),
9872
9882
  end: Object.assign({}, o[l][1].start)
9873
9883
  }, p = [["enter", d, s], ["enter", o[c][1], s], ["exit", o[c][1], s], ["enter", u, s]], f = s.parser.constructs.insideSpan.null;
9874
- f && Xe(p, p.length, 0, Xn(f, o.slice(c + 1, l), s)), Xe(p, p.length, 0, [["exit", u, s], ["enter", o[l][1], s], ["exit", o[l][1], s], ["exit", d, s]]), Xe(o, c - 1, l - c + 3, p), l = c + p.length - 2;
9884
+ f && Ze(p, p.length, 0, Xn(f, o.slice(c + 1, l), s)), Ze(p, p.length, 0, [["exit", u, s], ["enter", o[l][1], s], ["exit", o[l][1], s], ["exit", d, s]]), Ze(o, c - 1, l - c + 3, p), l = c + p.length - 2;
9875
9885
  break;
9876
9886
  }
9877
9887
  }
@@ -9887,12 +9897,12 @@ function kh(e) {
9887
9897
  return c === 126 && d[d.length - 1][1].type !== "characterEscape" ? l(g) : (o.enter("strikethroughSequenceTemporary"), f(g));
9888
9898
  }
9889
9899
  function f(g) {
9890
- const m = Yt(c);
9900
+ const E = Yt(c);
9891
9901
  if (g === 126)
9892
9902
  return u > 1 ? l(g) : (o.consume(g), u++, f);
9893
9903
  if (u < 2 && !n) return l(g);
9894
- const _ = o.exit("strikethroughSequenceTemporary"), b = Yt(g);
9895
- return _._open = !b || b === 2 && !!m, _._close = !m || m === 2 && !!b, s(g);
9904
+ const _ = o.exit("strikethroughSequenceTemporary"), m = Yt(g);
9905
+ return _._open = !m || m === 2 && !!E, _._close = !E || E === 2 && !!m, s(g);
9896
9906
  }
9897
9907
  }
9898
9908
  }
@@ -10000,14 +10010,14 @@ function Ch(e, t, n) {
10000
10010
  let i = 0, a = 0, o;
10001
10011
  return s;
10002
10012
  function s(S) {
10003
- let B = r.events.length - 1;
10004
- for (; B > -1; ) {
10005
- const A = r.events[B][1].type;
10013
+ let D = r.events.length - 1;
10014
+ for (; D > -1; ) {
10015
+ const A = r.events[D][1].type;
10006
10016
  if (A === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
10007
- A === "linePrefix") B--;
10017
+ A === "linePrefix") D--;
10008
10018
  else break;
10009
10019
  }
10010
- const z = B > -1 ? r.events[B][1].type : null, I = z === "tableHead" || z === "tableRow" ? k : l;
10020
+ const z = D > -1 ? r.events[D][1].type : null, I = z === "tableHead" || z === "tableRow" ? k : l;
10011
10021
  return I === k && r.parser.lazy[r.now().line] ? n(S) : I(S);
10012
10022
  }
10013
10023
  function l(S) {
@@ -10029,15 +10039,15 @@ function Ch(e, t, n) {
10029
10039
  return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(S) : (e.enter("tableDelimiterRow"), o = !1, se(S) ? de(e, g, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(S) : g(S));
10030
10040
  }
10031
10041
  function g(S) {
10032
- return S === 45 || S === 58 ? _(S) : S === 124 ? (o = !0, e.enter("tableCellDivider"), e.consume(S), e.exit("tableCellDivider"), m) : O(S);
10042
+ return S === 45 || S === 58 ? _(S) : S === 124 ? (o = !0, e.enter("tableCellDivider"), e.consume(S), e.exit("tableCellDivider"), E) : O(S);
10033
10043
  }
10034
- function m(S) {
10044
+ function E(S) {
10035
10045
  return se(S) ? de(e, _, "whitespace")(S) : _(S);
10036
10046
  }
10037
10047
  function _(S) {
10038
- return S === 58 ? (a += 1, o = !0, e.enter("tableDelimiterMarker"), e.consume(S), e.exit("tableDelimiterMarker"), b) : S === 45 ? (a += 1, b(S)) : S === null || Y(S) ? v(S) : O(S);
10048
+ return S === 58 ? (a += 1, o = !0, e.enter("tableDelimiterMarker"), e.consume(S), e.exit("tableDelimiterMarker"), m) : S === 45 ? (a += 1, m(S)) : S === null || Y(S) ? v(S) : O(S);
10039
10049
  }
10040
- function b(S) {
10050
+ function m(S) {
10041
10051
  return S === 45 ? (e.enter("tableDelimiterFiller"), w(S)) : O(S);
10042
10052
  }
10043
10053
  function w(S) {
@@ -10056,13 +10066,13 @@ function Ch(e, t, n) {
10056
10066
  return e.enter("tableRow"), M(S);
10057
10067
  }
10058
10068
  function M(S) {
10059
- return S === 124 ? (e.enter("tableCellDivider"), e.consume(S), e.exit("tableCellDivider"), M) : S === null || Y(S) ? (e.exit("tableRow"), t(S)) : se(S) ? de(e, M, "whitespace")(S) : (e.enter("data"), F(S));
10069
+ return S === 124 ? (e.enter("tableCellDivider"), e.consume(S), e.exit("tableCellDivider"), M) : S === null || Y(S) ? (e.exit("tableRow"), t(S)) : se(S) ? de(e, M, "whitespace")(S) : (e.enter("data"), P(S));
10060
10070
  }
10061
- function F(S) {
10062
- return S === null || S === 124 || ye(S) ? (e.exit("data"), M(S)) : (e.consume(S), S === 92 ? H : F);
10071
+ function P(S) {
10072
+ return S === null || S === 124 || ye(S) ? (e.exit("data"), M(S)) : (e.consume(S), S === 92 ? U : P);
10063
10073
  }
10064
- function H(S) {
10065
- return S === 92 || S === 124 ? (e.consume(S), F) : F(S);
10074
+ function U(S) {
10075
+ return S === 92 || S === 124 ? (e.consume(S), P) : P(S);
10066
10076
  }
10067
10077
  }
10068
10078
  function Ah(e, t) {
@@ -10106,8 +10116,8 @@ function In(e, t, n, r, i, a) {
10106
10116
  if (e.add(n[2], 0, [["enter", u, t]]), r !== 2) {
10107
10117
  const p = t.events[n[2]], f = t.events[n[3]];
10108
10118
  if (p[1].end = Object.assign({}, f[1].end), p[1].type = "chunkText", p[1].contentType = "text", n[3] > n[2] + 1) {
10109
- const g = n[2] + 1, m = n[3] - n[2] - 1;
10110
- e.add(g, m, []);
10119
+ const g = n[2] + 1, E = n[3] - n[2] - 1;
10120
+ e.add(g, E, []);
10111
10121
  }
10112
10122
  }
10113
10123
  e.add(n[3] + 1, 0, [["exit", u, t]]);
@@ -10637,7 +10647,7 @@ function Xh(e) {
10637
10647
  "while",
10638
10648
  "xor",
10639
10649
  "xor_eq"
10640
- ], m = [
10650
+ ], E = [
10641
10651
  "bool",
10642
10652
  "char",
10643
10653
  "char16_t",
@@ -10712,7 +10722,7 @@ function Xh(e) {
10712
10722
  "weak_ptr",
10713
10723
  "wstring",
10714
10724
  "wstring_view"
10715
- ], b = [
10725
+ ], m = [
10716
10726
  "abort",
10717
10727
  "abs",
10718
10728
  "acos",
@@ -10814,7 +10824,7 @@ function Xh(e) {
10814
10824
  "vprintf",
10815
10825
  "vsprintf"
10816
10826
  ], v = {
10817
- type: m,
10827
+ type: E,
10818
10828
  keyword: g,
10819
10829
  literal: [
10820
10830
  "NULL",
@@ -10830,7 +10840,7 @@ function Xh(e) {
10830
10840
  relevance: 0,
10831
10841
  keywords: {
10832
10842
  // Only for relevance, not highlighting.
10833
- _hint: b
10843
+ _hint: m
10834
10844
  },
10835
10845
  begin: t.concat(
10836
10846
  /\b/,
@@ -10879,7 +10889,7 @@ function Xh(e) {
10879
10889
  }
10880
10890
  ]),
10881
10891
  relevance: 0
10882
- }, F = {
10892
+ }, P = {
10883
10893
  className: "function",
10884
10894
  begin: "(" + o + "[\\*&\\s]+)+" + f,
10885
10895
  returnBegin: !0,
@@ -10972,7 +10982,7 @@ function Xh(e) {
10972
10982
  classNameAliases: { "function.dispatch": "built_in" },
10973
10983
  contains: [].concat(
10974
10984
  M,
10975
- F,
10985
+ P,
10976
10986
  O,
10977
10987
  k,
10978
10988
  [
@@ -11487,7 +11497,7 @@ function Qh(e) {
11487
11497
  returnBegin: !0,
11488
11498
  contains: [e.inherit(e.TITLE_MODE, { begin: /\w[\w\d_]*/ })],
11489
11499
  relevance: 0
11490
- }, m = [
11500
+ }, E = [
11491
11501
  "if",
11492
11502
  "then",
11493
11503
  "else",
@@ -11508,7 +11518,7 @@ function Qh(e) {
11508
11518
  ], _ = [
11509
11519
  "true",
11510
11520
  "false"
11511
- ], b = { match: /(\/[a-z._-]+)+/ }, w = [
11521
+ ], m = { match: /(\/[a-z._-]+)+/ }, w = [
11512
11522
  "break",
11513
11523
  "cd",
11514
11524
  "continue",
@@ -11732,7 +11742,7 @@ function Qh(e) {
11732
11742
  ],
11733
11743
  keywords: {
11734
11744
  $pattern: /\b[a-z][a-z0-9._-]+\b/,
11735
- keyword: m,
11745
+ keyword: E,
11736
11746
  literal: _,
11737
11747
  built_in: [
11738
11748
  ...w,
@@ -11753,7 +11763,7 @@ function Qh(e) {
11753
11763
  u,
11754
11764
  a,
11755
11765
  o,
11756
- b,
11766
+ m,
11757
11767
  s,
11758
11768
  l,
11759
11769
  c,
@@ -11903,7 +11913,7 @@ function Jh(e) {
11903
11913
  literal: "true false NULL",
11904
11914
  // TODO: apply hinting work similar to what was done in cpp.js
11905
11915
  built_in: "std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"
11906
- }, b = [
11916
+ }, m = [
11907
11917
  u,
11908
11918
  s,
11909
11919
  n,
@@ -11929,12 +11939,12 @@ function Jh(e) {
11929
11939
  }
11930
11940
  ],
11931
11941
  keywords: _,
11932
- contains: b.concat([
11942
+ contains: m.concat([
11933
11943
  {
11934
11944
  begin: /\(/,
11935
11945
  end: /\)/,
11936
11946
  keywords: _,
11937
- contains: b.concat(["self"]),
11947
+ contains: m.concat(["self"]),
11938
11948
  relevance: 0
11939
11949
  }
11940
11950
  ]),
@@ -12011,7 +12021,7 @@ function Jh(e) {
12011
12021
  contains: [].concat(
12012
12022
  w,
12013
12023
  x,
12014
- b,
12024
+ m,
12015
12025
  [
12016
12026
  u,
12017
12027
  {
@@ -12184,7 +12194,7 @@ function em(e) {
12184
12194
  "while",
12185
12195
  "xor",
12186
12196
  "xor_eq"
12187
- ], m = [
12197
+ ], E = [
12188
12198
  "bool",
12189
12199
  "char",
12190
12200
  "char16_t",
@@ -12259,7 +12269,7 @@ function em(e) {
12259
12269
  "weak_ptr",
12260
12270
  "wstring",
12261
12271
  "wstring_view"
12262
- ], b = [
12272
+ ], m = [
12263
12273
  "abort",
12264
12274
  "abs",
12265
12275
  "acos",
@@ -12361,7 +12371,7 @@ function em(e) {
12361
12371
  "vprintf",
12362
12372
  "vsprintf"
12363
12373
  ], v = {
12364
- type: m,
12374
+ type: E,
12365
12375
  keyword: g,
12366
12376
  literal: [
12367
12377
  "NULL",
@@ -12377,7 +12387,7 @@ function em(e) {
12377
12387
  relevance: 0,
12378
12388
  keywords: {
12379
12389
  // Only for relevance, not highlighting.
12380
- _hint: b
12390
+ _hint: m
12381
12391
  },
12382
12392
  begin: t.concat(
12383
12393
  /\b/,
@@ -12426,7 +12436,7 @@ function em(e) {
12426
12436
  }
12427
12437
  ]),
12428
12438
  relevance: 0
12429
- }, F = {
12439
+ }, P = {
12430
12440
  className: "function",
12431
12441
  begin: "(" + o + "[\\*&\\s]+)+" + f,
12432
12442
  returnBegin: !0,
@@ -12519,7 +12529,7 @@ function em(e) {
12519
12529
  classNameAliases: { "function.dispatch": "built_in" },
12520
12530
  contains: [].concat(
12521
12531
  M,
12522
- F,
12532
+ P,
12523
12533
  O,
12524
12534
  k,
12525
12535
  [
@@ -12733,7 +12743,7 @@ function tm(e) {
12733
12743
  e.BACKSLASH_ESCAPE,
12734
12744
  f
12735
12745
  ]
12736
- }, m = {
12746
+ }, E = {
12737
12747
  className: "string",
12738
12748
  begin: /\$@"/,
12739
12749
  end: '"',
@@ -12743,7 +12753,7 @@ function tm(e) {
12743
12753
  { begin: '""' },
12744
12754
  p
12745
12755
  ]
12746
- }, _ = e.inherit(m, {
12756
+ }, _ = e.inherit(E, {
12747
12757
  illegal: /\n/,
12748
12758
  contains: [
12749
12759
  { begin: /\{\{/ },
@@ -12753,7 +12763,7 @@ function tm(e) {
12753
12763
  ]
12754
12764
  });
12755
12765
  p.contains = [
12756
- m,
12766
+ E,
12757
12767
  g,
12758
12768
  d,
12759
12769
  e.APOS_STRING_MODE,
@@ -12769,9 +12779,9 @@ function tm(e) {
12769
12779
  l,
12770
12780
  e.inherit(e.C_BLOCK_COMMENT_MODE, { illegal: /\n/ })
12771
12781
  ];
12772
- const b = { variants: [
12782
+ const m = { variants: [
12773
12783
  c,
12774
- m,
12784
+ E,
12775
12785
  g,
12776
12786
  d,
12777
12787
  e.APOS_STRING_MODE,
@@ -12829,7 +12839,7 @@ function tm(e) {
12829
12839
  end: "$",
12830
12840
  keywords: { keyword: "if else elif endif define undef warning error line region endregion pragma checksum" }
12831
12841
  },
12832
- b,
12842
+ m,
12833
12843
  l,
12834
12844
  {
12835
12845
  beginKeywords: "class interface",
@@ -12920,7 +12930,7 @@ function tm(e) {
12920
12930
  keywords: o,
12921
12931
  relevance: 0,
12922
12932
  contains: [
12923
- b,
12933
+ m,
12924
12934
  l,
12925
12935
  e.C_BLOCK_COMMENT_MODE
12926
12936
  ]
@@ -14608,8 +14618,8 @@ const qo = "[A-Za-z$_][0-9A-Za-z$_]*", mm = [
14608
14618
  );
14609
14619
  function _m(e) {
14610
14620
  const t = e.regex, n = (Z, { after: ee }) => {
14611
- const y = "</" + Z[0].slice(1);
14612
- return Z.input.indexOf(y, ee) !== -1;
14621
+ const b = "</" + Z[0].slice(1);
14622
+ return Z.input.indexOf(b, ee) !== -1;
14613
14623
  }, r = qo, i = {
14614
14624
  begin: "<>",
14615
14625
  end: "</>"
@@ -14621,7 +14631,7 @@ function _m(e) {
14621
14631
  * @param {CallbackResponse} response
14622
14632
  */
14623
14633
  isTrulyOpeningTag: (Z, ee) => {
14624
- const y = Z[0].length + Z.index, q = Z.input[y];
14634
+ const b = Z[0].length + Z.index, q = Z.input[b];
14625
14635
  if (
14626
14636
  // HTML should not include another raw `<` inside a tag
14627
14637
  // nested type?
@@ -14633,9 +14643,9 @@ function _m(e) {
14633
14643
  ee.ignoreMatch();
14634
14644
  return;
14635
14645
  }
14636
- q === ">" && (n(Z, { after: y }) || ee.ignoreMatch());
14646
+ q === ">" && (n(Z, { after: b }) || ee.ignoreMatch());
14637
14647
  let le;
14638
- const h = Z.input.substring(y);
14648
+ const h = Z.input.substring(b);
14639
14649
  if (le = h.match(/^\s*=/)) {
14640
14650
  ee.ignoreMatch();
14641
14651
  return;
@@ -14699,7 +14709,7 @@ function _m(e) {
14699
14709
  ],
14700
14710
  subLanguage: "css"
14701
14711
  }
14702
- }, m = {
14712
+ }, E = {
14703
14713
  begin: ".?gql`",
14704
14714
  end: "",
14705
14715
  starts: {
@@ -14769,7 +14779,7 @@ function _m(e) {
14769
14779
  e.QUOTE_STRING_MODE,
14770
14780
  f,
14771
14781
  g,
14772
- m,
14782
+ E,
14773
14783
  _,
14774
14784
  // Skip numbers when they are part of a variable name
14775
14785
  { match: /\$\d+/ },
@@ -14839,7 +14849,7 @@ function _m(e) {
14839
14849
  }
14840
14850
  }
14841
14851
  ]
14842
- }, F = {
14852
+ }, P = {
14843
14853
  relevance: 0,
14844
14854
  match: t.either(
14845
14855
  // Hard coded exceptions
@@ -14863,7 +14873,7 @@ function _m(e) {
14863
14873
  ...Cs
14864
14874
  ]
14865
14875
  }
14866
- }, H = {
14876
+ }, U = {
14867
14877
  label: "use_strict",
14868
14878
  className: "meta",
14869
14879
  relevance: 10,
@@ -14893,7 +14903,7 @@ function _m(e) {
14893
14903
  label: "func.def",
14894
14904
  contains: [k],
14895
14905
  illegal: /%/
14896
- }, B = {
14906
+ }, D = {
14897
14907
  relevance: 0,
14898
14908
  match: /\b[A-Z][A-Z_0-9]+\b/,
14899
14909
  className: "variable.constant"
@@ -14966,7 +14976,7 @@ function _m(e) {
14966
14976
  aliases: ["js", "jsx", "mjs", "cjs"],
14967
14977
  keywords: s,
14968
14978
  // this will be extended by TypeScript
14969
- exports: { PARAMS_CONTAINS: O, CLASS_REFERENCE: F },
14979
+ exports: { PARAMS_CONTAINS: O, CLASS_REFERENCE: P },
14970
14980
  illegal: /#(?![$_A-z])/,
14971
14981
  contains: [
14972
14982
  e.SHEBANG({
@@ -14974,18 +14984,18 @@ function _m(e) {
14974
14984
  binary: "node",
14975
14985
  relevance: 5
14976
14986
  }),
14977
- H,
14987
+ U,
14978
14988
  e.APOS_STRING_MODE,
14979
14989
  e.QUOTE_STRING_MODE,
14980
14990
  f,
14981
14991
  g,
14982
- m,
14992
+ E,
14983
14993
  _,
14984
14994
  w,
14985
14995
  // Skip numbers when they are part of a variable name
14986
14996
  { match: /\$\d+/ },
14987
14997
  u,
14988
- F,
14998
+ P,
14989
14999
  {
14990
15000
  scope: "attr",
14991
15001
  match: r + t.lookahead(":"),
@@ -15105,7 +15115,7 @@ function _m(e) {
15105
15115
  contains: [k]
15106
15116
  },
15107
15117
  I,
15108
- B,
15118
+ D,
15109
15119
  M,
15110
15120
  N,
15111
15121
  {
@@ -16273,7 +16283,7 @@ function Rm(e) {
16273
16283
  }
16274
16284
  }
16275
16285
  ]
16276
- }, m = {
16286
+ }, E = {
16277
16287
  className: "keyword",
16278
16288
  begin: "@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",
16279
16289
  starts: {
@@ -16301,7 +16311,7 @@ function Rm(e) {
16301
16311
  returnEnd: !0,
16302
16312
  contains: p
16303
16313
  }
16304
- }, b = {
16314
+ }, m = {
16305
16315
  // first parse unambiguous selectors (i.e. those not starting with tag)
16306
16316
  // then fall into the scary lookahead-discriminator variant.
16307
16317
  // this mode also handles mixin definitions and calls
@@ -16359,16 +16369,16 @@ function Rm(e) {
16359
16369
  }, w = {
16360
16370
  begin: i + `:(:)?(${n.join("|")})`,
16361
16371
  returnBegin: !0,
16362
- contains: [b]
16372
+ contains: [m]
16363
16373
  };
16364
16374
  return o.push(
16365
16375
  e.C_LINE_COMMENT_MODE,
16366
16376
  e.C_BLOCK_COMMENT_MODE,
16367
- m,
16377
+ E,
16368
16378
  _,
16369
16379
  w,
16370
16380
  g,
16371
- b,
16381
+ m,
16372
16382
  f,
16373
16383
  t.FUNCTION_DISPATCH
16374
16384
  ), {
@@ -16658,8 +16668,8 @@ function Dm(e) {
16658
16668
  d,
16659
16669
  u,
16660
16670
  p
16661
- ].forEach((b) => {
16662
- b.contains = b.contains.concat(f);
16671
+ ].forEach((m) => {
16672
+ m.contains = m.contains.concat(f);
16663
16673
  }), f = f.concat(c, d), {
16664
16674
  name: "Markdown",
16665
16675
  aliases: [
@@ -17243,22 +17253,22 @@ function Pm(e) {
17243
17253
  // valid but infrequent and weird
17244
17254
  /#/
17245
17255
  // valid but infrequent and weird
17246
- ], p = (m, _, b = "\\1") => {
17247
- const w = b === "\\1" ? b : t.concat(b, _);
17256
+ ], p = (E, _, m = "\\1") => {
17257
+ const w = m === "\\1" ? m : t.concat(m, _);
17248
17258
  return t.concat(
17249
- t.concat("(?:", m, ")"),
17259
+ t.concat("(?:", E, ")"),
17250
17260
  _,
17251
17261
  /(?:\\.|[^\\\/])*?/,
17252
17262
  w,
17253
17263
  /(?:\\.|[^\\\/])*?/,
17254
- b,
17264
+ m,
17255
17265
  r
17256
17266
  );
17257
- }, f = (m, _, b) => t.concat(
17258
- t.concat("(?:", m, ")"),
17267
+ }, f = (E, _, m) => t.concat(
17268
+ t.concat("(?:", E, ")"),
17259
17269
  _,
17260
17270
  /(?:\\.|[^\\\/])*?/,
17261
- b,
17271
+ m,
17262
17272
  r
17263
17273
  ), g = [
17264
17274
  l,
@@ -17469,7 +17479,7 @@ function Bm(e) {
17469
17479
  u,
17470
17480
  p
17471
17481
  ]
17472
- }, m = {
17482
+ }, E = {
17473
17483
  scope: "number",
17474
17484
  variants: [
17475
17485
  { begin: "\\b0[bB][01]+(?:_[01]+)*\\b" },
@@ -17486,7 +17496,7 @@ function Bm(e) {
17486
17496
  "false",
17487
17497
  "null",
17488
17498
  "true"
17489
- ], b = [
17499
+ ], m = [
17490
17500
  // Magic constants:
17491
17501
  // <https://www.php.net/manual/en/language.constants.predefined.php>
17492
17502
  "__CLASS__",
@@ -17682,7 +17692,7 @@ function Bm(e) {
17682
17692
  "static",
17683
17693
  "stdClass"
17684
17694
  ], v = {
17685
- keyword: b,
17695
+ keyword: m,
17686
17696
  literal: ((A) => {
17687
17697
  const N = [];
17688
17698
  return A.forEach((W) => {
@@ -17704,7 +17714,7 @@ function Bm(e) {
17704
17714
  4: "title.class"
17705
17715
  }
17706
17716
  }
17707
- ] }, M = t.concat(r, "\\b(?!\\()"), F = { variants: [
17717
+ ] }, M = t.concat(r, "\\b(?!\\()"), P = { variants: [
17708
17718
  {
17709
17719
  match: [
17710
17720
  t.concat(
@@ -17757,7 +17767,7 @@ function Bm(e) {
17757
17767
  3: "variable.language"
17758
17768
  }
17759
17769
  }
17760
- ] }, H = {
17770
+ ] }, U = {
17761
17771
  scope: "attr",
17762
17772
  match: t.concat(r, t.lookahead(":"), t.lookahead(/(?!::)/))
17763
17773
  }, S = {
@@ -17766,20 +17776,20 @@ function Bm(e) {
17766
17776
  end: /\)/,
17767
17777
  keywords: v,
17768
17778
  contains: [
17769
- H,
17779
+ U,
17770
17780
  o,
17771
- F,
17781
+ P,
17772
17782
  e.C_BLOCK_COMMENT_MODE,
17773
17783
  g,
17774
- m,
17784
+ E,
17775
17785
  k
17776
17786
  ]
17777
- }, B = {
17787
+ }, D = {
17778
17788
  relevance: 0,
17779
17789
  match: [
17780
17790
  /\b/,
17781
17791
  // to prevent keywords from being confused as the function title
17782
- t.concat("(?!fn\\b|function\\b|", O(b).join("\\b|"), "|", O(w).join("\\b|"), "\\b)"),
17792
+ t.concat("(?!fn\\b|function\\b|", O(m).join("\\b|"), "|", O(w).join("\\b|"), "\\b)"),
17783
17793
  r,
17784
17794
  t.concat(f, "*"),
17785
17795
  t.lookahead(/(?=\()/)
@@ -17787,13 +17797,13 @@ function Bm(e) {
17787
17797
  scope: { 3: "title.function.invoke" },
17788
17798
  contains: [S]
17789
17799
  };
17790
- S.contains.push(B);
17800
+ S.contains.push(D);
17791
17801
  const z = [
17792
- H,
17793
- F,
17802
+ U,
17803
+ P,
17794
17804
  e.C_BLOCK_COMMENT_MODE,
17795
17805
  g,
17796
- m,
17806
+ E,
17797
17807
  k
17798
17808
  ], I = {
17799
17809
  begin: t.concat(
@@ -17877,8 +17887,8 @@ function Bm(e) {
17877
17887
  match: /\$this\b/
17878
17888
  },
17879
17889
  o,
17880
- B,
17881
- F,
17890
+ D,
17891
+ P,
17882
17892
  {
17883
17893
  match: [
17884
17894
  /const/,
@@ -17917,10 +17927,10 @@ function Bm(e) {
17917
17927
  "self",
17918
17928
  I,
17919
17929
  o,
17920
- F,
17930
+ P,
17921
17931
  e.C_BLOCK_COMMENT_MODE,
17922
17932
  g,
17923
- m
17933
+ E
17924
17934
  ]
17925
17935
  }
17926
17936
  ]
@@ -17970,7 +17980,7 @@ function Bm(e) {
17970
17980
  ]
17971
17981
  },
17972
17982
  g,
17973
- m
17983
+ E
17974
17984
  ]
17975
17985
  };
17976
17986
  }
@@ -18254,7 +18264,7 @@ function Um(e) {
18254
18264
  e.APOS_STRING_MODE,
18255
18265
  e.QUOTE_STRING_MODE
18256
18266
  ]
18257
- }, p = "[0-9](_?[0-9])*", f = `(\\b(${p}))?\\.(${p})|\\b(${p})\\.`, g = `\\b|${r.join("|")}`, m = {
18267
+ }, p = "[0-9](_?[0-9])*", f = `(\\b(${p}))?\\.(${p})|\\b(${p})\\.`, g = `\\b|${r.join("|")}`, E = {
18258
18268
  className: "number",
18259
18269
  relevance: 0,
18260
18270
  variants: [
@@ -18315,7 +18325,7 @@ function Um(e) {
18315
18325
  endsWithParent: !0
18316
18326
  }
18317
18327
  ]
18318
- }, b = {
18328
+ }, m = {
18319
18329
  className: "params",
18320
18330
  variants: [
18321
18331
  // Exclude params in functions without params
@@ -18333,7 +18343,7 @@ function Um(e) {
18333
18343
  contains: [
18334
18344
  "self",
18335
18345
  l,
18336
- m,
18346
+ E,
18337
18347
  u,
18338
18348
  e.HASH_COMMENT_MODE
18339
18349
  ]
@@ -18342,7 +18352,7 @@ function Um(e) {
18342
18352
  };
18343
18353
  return c.contains = [
18344
18354
  u,
18345
- m,
18355
+ E,
18346
18356
  l
18347
18357
  ], {
18348
18358
  name: "Python",
@@ -18356,7 +18366,7 @@ function Um(e) {
18356
18366
  illegal: /(<\/|\?)|=>/,
18357
18367
  contains: [
18358
18368
  l,
18359
- m,
18369
+ E,
18360
18370
  {
18361
18371
  // very common convention
18362
18372
  scope: "variable.language",
@@ -18382,7 +18392,7 @@ function Um(e) {
18382
18392
  1: "keyword",
18383
18393
  3: "title.function"
18384
18394
  },
18385
- contains: [b]
18395
+ contains: [m]
18386
18396
  },
18387
18397
  {
18388
18398
  variants: [
@@ -18416,8 +18426,8 @@ function Um(e) {
18416
18426
  begin: /^[\t ]*@/,
18417
18427
  end: /(?=#)|$/,
18418
18428
  contains: [
18429
+ E,
18419
18430
  m,
18420
- b,
18421
18431
  u
18422
18432
  ]
18423
18433
  }
@@ -18846,7 +18856,7 @@ function Wm(e) {
18846
18856
  // 0-prefixed implicit octal integer, optionally rational and/or imaginary
18847
18857
  { begin: "\\b0(_?[0-7])+r?i?\\b" }
18848
18858
  ]
18849
- }, m = {
18859
+ }, E = {
18850
18860
  variants: [
18851
18861
  {
18852
18862
  match: /\(\)/
@@ -18926,7 +18936,7 @@ function Wm(e) {
18926
18936
  3: "title.function"
18927
18937
  },
18928
18938
  contains: [
18929
- m
18939
+ E
18930
18940
  ]
18931
18941
  },
18932
18942
  {
@@ -19003,7 +19013,7 @@ function Wm(e) {
19003
19013
  relevance: 0
19004
19014
  }
19005
19015
  ].concat(l, c);
19006
- d.contains = k, m.contains = k;
19016
+ d.contains = k, E.contains = k;
19007
19017
  const S = [
19008
19018
  {
19009
19019
  begin: /^\s*=>/,
@@ -20817,14 +20827,14 @@ function tb(e) {
20817
20827
  ], f = d, g = [
20818
20828
  ...c,
20819
20829
  ...l
20820
- ].filter((O) => !d.includes(O)), m = {
20830
+ ].filter((O) => !d.includes(O)), E = {
20821
20831
  scope: "variable",
20822
20832
  match: /@[a-z0-9][a-z0-9_]*/
20823
20833
  }, _ = {
20824
20834
  scope: "operator",
20825
20835
  match: /[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,
20826
20836
  relevance: 0
20827
- }, b = {
20837
+ }, m = {
20828
20838
  match: t.concat(/\b/, t.either(...f), /\s*\(/),
20829
20839
  relevance: 0,
20830
20840
  keywords: { built_in: f }
@@ -20845,8 +20855,8 @@ function tb(e) {
20845
20855
  exceptions: k,
20846
20856
  when: M
20847
20857
  } = {}) {
20848
- const F = M;
20849
- return k = k || [], O.map((H) => H.match(/\|\d+$/) || k.includes(H) ? H : F(H) ? `${H}|0` : H);
20858
+ const P = M;
20859
+ return k = k || [], O.map((U) => U.match(/\|\d+$/) || k.includes(U) ? U : P(U) ? `${U}|0` : U);
20850
20860
  }
20851
20861
  return {
20852
20862
  name: "SQL",
@@ -20866,8 +20876,8 @@ function tb(e) {
20866
20876
  match: w(o)
20867
20877
  },
20868
20878
  x,
20869
- b,
20870
20879
  m,
20880
+ E,
20871
20881
  r,
20872
20882
  i,
20873
20883
  e.C_NUMBER_MODE,
@@ -21262,7 +21272,7 @@ function cb(e) {
21262
21272
  // Prevent -> from being highlighting as an operator.
21263
21273
  match: /->/,
21264
21274
  relevance: 0
21265
- }, m = {
21275
+ }, E = {
21266
21276
  className: "operator",
21267
21277
  relevance: 0,
21268
21278
  variants: [
@@ -21276,15 +21286,15 @@ function cb(e) {
21276
21286
  ]
21277
21287
  }, _ = [
21278
21288
  g,
21279
- m
21280
- ], b = "([0-9]_*)+", w = "([0-9a-fA-F]_*)+", x = {
21289
+ E
21290
+ ], m = "([0-9]_*)+", w = "([0-9a-fA-F]_*)+", x = {
21281
21291
  className: "number",
21282
21292
  relevance: 0,
21283
21293
  variants: [
21284
21294
  // decimal floating-point-literal (subsumes decimal-literal)
21285
- { match: `\\b(${b})(\\.(${b}))?([eE][+-]?(${b}))?\\b` },
21295
+ { match: `\\b(${m})(\\.(${m}))?([eE][+-]?(${m}))?\\b` },
21286
21296
  // hexadecimal floating-point-literal (subsumes hexadecimal-literal)
21287
- { match: `\\b0x(${w})(\\.(${w}))?([pP][+-]?(${b}))?\\b` },
21297
+ { match: `\\b0x(${w})(\\.(${w}))?([pP][+-]?(${m}))?\\b` },
21288
21298
  // octal-literal
21289
21299
  { match: /\b0o([0-7]_*)+\b/ },
21290
21300
  // binary-literal
@@ -21312,24 +21322,24 @@ function cb(e) {
21312
21322
  O(pe),
21313
21323
  k(pe)
21314
21324
  ]
21315
- }), F = (pe = "") => ({
21325
+ }), P = (pe = "") => ({
21316
21326
  begin: be(pe, /"/),
21317
21327
  end: be(/"/, pe),
21318
21328
  contains: [
21319
21329
  v(pe),
21320
21330
  k(pe)
21321
21331
  ]
21322
- }), H = {
21332
+ }), U = {
21323
21333
  className: "string",
21324
21334
  variants: [
21325
21335
  M(),
21326
21336
  M("#"),
21327
21337
  M("##"),
21328
21338
  M("###"),
21329
- F(),
21330
- F("#"),
21331
- F("##"),
21332
- F("###")
21339
+ P(),
21340
+ P("#"),
21341
+ P("##"),
21342
+ P("###")
21333
21343
  ]
21334
21344
  }, S = [
21335
21345
  e.BACKSLASH_ESCAPE,
@@ -21339,7 +21349,7 @@ function cb(e) {
21339
21349
  relevance: 0,
21340
21350
  contains: [e.BACKSLASH_ESCAPE]
21341
21351
  }
21342
- ], B = {
21352
+ ], D = {
21343
21353
  begin: /\/[^\s](?=[^/\n]*\/)/,
21344
21354
  end: /\//,
21345
21355
  contains: S
@@ -21363,7 +21373,7 @@ function cb(e) {
21363
21373
  z("###"),
21364
21374
  z("##"),
21365
21375
  z("#"),
21366
- B
21376
+ D
21367
21377
  ]
21368
21378
  }, A = { match: be(/`/, ct, /`/) }, N = {
21369
21379
  className: "variable",
@@ -21386,20 +21396,20 @@ function cb(e) {
21386
21396
  contains: [
21387
21397
  ..._,
21388
21398
  x,
21389
- H
21399
+ U
21390
21400
  ]
21391
21401
  }
21392
21402
  ] }
21393
21403
  }, ee = {
21394
21404
  scope: "keyword",
21395
21405
  match: be(/@/, ze(...sb), an(ze(/\(/, /\s+/)))
21396
- }, y = {
21406
+ }, b = {
21397
21407
  scope: "meta",
21398
21408
  match: be(/@/, ct)
21399
21409
  }, q = [
21400
21410
  Z,
21401
21411
  ee,
21402
- y
21412
+ b
21403
21413
  ], le = {
21404
21414
  match: an(/\b[A-Z]/),
21405
21415
  relevance: 0,
@@ -21462,7 +21472,7 @@ function cb(e) {
21462
21472
  ...f,
21463
21473
  ..._,
21464
21474
  x,
21465
- H,
21475
+ U,
21466
21476
  ...ce,
21467
21477
  ...q,
21468
21478
  le
@@ -21502,14 +21512,14 @@ function cb(e) {
21502
21512
  ...d,
21503
21513
  ..._,
21504
21514
  x,
21505
- H,
21515
+ U,
21506
21516
  ...q,
21507
21517
  le,
21508
21518
  fe
21509
21519
  ],
21510
21520
  endsParent: !0,
21511
21521
  illegal: /["']/
21512
- }, Ze = {
21522
+ }, Qe = {
21513
21523
  match: [
21514
21524
  /(func|macro)/,
21515
21525
  /\s+/,
@@ -21528,7 +21538,7 @@ function cb(e) {
21528
21538
  /\[/,
21529
21539
  /%/
21530
21540
  ]
21531
- }, Ie = {
21541
+ }, Re = {
21532
21542
  match: [
21533
21543
  /\b(?:subscript|init[?!]?)/,
21534
21544
  /\s*(?=[<(])/
@@ -21540,7 +21550,7 @@ function cb(e) {
21540
21550
  t
21541
21551
  ],
21542
21552
  illegal: /\[|%/
21543
- }, Qe = {
21553
+ }, Je = {
21544
21554
  match: [
21545
21555
  /operator/,
21546
21556
  /\s+/,
@@ -21619,7 +21629,7 @@ function cb(e) {
21619
21629
  }
21620
21630
  ]
21621
21631
  };
21622
- for (const pe of H.variants) {
21632
+ for (const pe of U.variants) {
21623
21633
  const qe = pe.contains.find(($e) => $e.label === "interpol");
21624
21634
  qe.keywords = c;
21625
21635
  const nt = [
@@ -21627,7 +21637,7 @@ function cb(e) {
21627
21637
  ...f,
21628
21638
  ..._,
21629
21639
  x,
21630
- H,
21640
+ U,
21631
21641
  ...ce
21632
21642
  ];
21633
21643
  qe.contains = [
@@ -21647,12 +21657,12 @@ function cb(e) {
21647
21657
  keywords: c,
21648
21658
  contains: [
21649
21659
  ...r,
21650
- Ze,
21651
- Ie,
21660
+ Qe,
21661
+ Re,
21652
21662
  pt,
21653
21663
  Rt,
21654
21664
  tt,
21655
- Qe,
21665
+ Je,
21656
21666
  ft,
21657
21667
  {
21658
21668
  beginKeywords: "import",
@@ -21665,7 +21675,7 @@ function cb(e) {
21665
21675
  ...f,
21666
21676
  ..._,
21667
21677
  x,
21668
- H,
21678
+ U,
21669
21679
  ...ce,
21670
21680
  ...q,
21671
21681
  le,
@@ -21821,8 +21831,8 @@ const Gn = "[A-Za-z$_][0-9A-Za-z$_]*", Ps = [
21821
21831
  );
21822
21832
  function ub(e) {
21823
21833
  const t = e.regex, n = (Z, { after: ee }) => {
21824
- const y = "</" + Z[0].slice(1);
21825
- return Z.input.indexOf(y, ee) !== -1;
21834
+ const b = "</" + Z[0].slice(1);
21835
+ return Z.input.indexOf(b, ee) !== -1;
21826
21836
  }, r = Gn, i = {
21827
21837
  begin: "<>",
21828
21838
  end: "</>"
@@ -21834,7 +21844,7 @@ function ub(e) {
21834
21844
  * @param {CallbackResponse} response
21835
21845
  */
21836
21846
  isTrulyOpeningTag: (Z, ee) => {
21837
- const y = Z[0].length + Z.index, q = Z.input[y];
21847
+ const b = Z[0].length + Z.index, q = Z.input[b];
21838
21848
  if (
21839
21849
  // HTML should not include another raw `<` inside a tag
21840
21850
  // nested type?
@@ -21846,9 +21856,9 @@ function ub(e) {
21846
21856
  ee.ignoreMatch();
21847
21857
  return;
21848
21858
  }
21849
- q === ">" && (n(Z, { after: y }) || ee.ignoreMatch());
21859
+ q === ">" && (n(Z, { after: b }) || ee.ignoreMatch());
21850
21860
  let le;
21851
- const h = Z.input.substring(y);
21861
+ const h = Z.input.substring(b);
21852
21862
  if (le = h.match(/^\s*=/)) {
21853
21863
  ee.ignoreMatch();
21854
21864
  return;
@@ -21912,7 +21922,7 @@ function ub(e) {
21912
21922
  ],
21913
21923
  subLanguage: "css"
21914
21924
  }
21915
- }, m = {
21925
+ }, E = {
21916
21926
  begin: ".?gql`",
21917
21927
  end: "",
21918
21928
  starts: {
@@ -21982,7 +21992,7 @@ function ub(e) {
21982
21992
  e.QUOTE_STRING_MODE,
21983
21993
  f,
21984
21994
  g,
21985
- m,
21995
+ E,
21986
21996
  _,
21987
21997
  // Skip numbers when they are part of a variable name
21988
21998
  { match: /\$\d+/ },
@@ -22052,7 +22062,7 @@ function ub(e) {
22052
22062
  }
22053
22063
  }
22054
22064
  ]
22055
- }, F = {
22065
+ }, P = {
22056
22066
  relevance: 0,
22057
22067
  match: t.either(
22058
22068
  // Hard coded exceptions
@@ -22076,7 +22086,7 @@ function ub(e) {
22076
22086
  ...zs
22077
22087
  ]
22078
22088
  }
22079
- }, H = {
22089
+ }, U = {
22080
22090
  label: "use_strict",
22081
22091
  className: "meta",
22082
22092
  relevance: 10,
@@ -22106,7 +22116,7 @@ function ub(e) {
22106
22116
  label: "func.def",
22107
22117
  contains: [k],
22108
22118
  illegal: /%/
22109
- }, B = {
22119
+ }, D = {
22110
22120
  relevance: 0,
22111
22121
  match: /\b[A-Z][A-Z_0-9]+\b/,
22112
22122
  className: "variable.constant"
@@ -22179,7 +22189,7 @@ function ub(e) {
22179
22189
  aliases: ["js", "jsx", "mjs", "cjs"],
22180
22190
  keywords: s,
22181
22191
  // this will be extended by TypeScript
22182
- exports: { PARAMS_CONTAINS: O, CLASS_REFERENCE: F },
22192
+ exports: { PARAMS_CONTAINS: O, CLASS_REFERENCE: P },
22183
22193
  illegal: /#(?![$_A-z])/,
22184
22194
  contains: [
22185
22195
  e.SHEBANG({
@@ -22187,18 +22197,18 @@ function ub(e) {
22187
22197
  binary: "node",
22188
22198
  relevance: 5
22189
22199
  }),
22190
- H,
22200
+ U,
22191
22201
  e.APOS_STRING_MODE,
22192
22202
  e.QUOTE_STRING_MODE,
22193
22203
  f,
22194
22204
  g,
22195
- m,
22205
+ E,
22196
22206
  _,
22197
22207
  w,
22198
22208
  // Skip numbers when they are part of a variable name
22199
22209
  { match: /\$\d+/ },
22200
22210
  u,
22201
- F,
22211
+ P,
22202
22212
  {
22203
22213
  scope: "attr",
22204
22214
  match: r + t.lookahead(":"),
@@ -22318,7 +22328,7 @@ function ub(e) {
22318
22328
  contains: [k]
22319
22329
  },
22320
22330
  I,
22321
- B,
22331
+ D,
22322
22332
  M,
22323
22333
  N,
22324
22334
  {
@@ -22386,14 +22396,14 @@ function db(e) {
22386
22396
  }, d = {
22387
22397
  className: "meta",
22388
22398
  begin: "@" + r
22389
- }, u = (m, _, b) => {
22390
- const w = m.contains.findIndex((x) => x.label === _);
22399
+ }, u = (E, _, m) => {
22400
+ const w = E.contains.findIndex((x) => x.label === _);
22391
22401
  if (w === -1)
22392
22402
  throw new Error("can not find mode to replace");
22393
- m.contains.splice(w, 1, b);
22403
+ E.contains.splice(w, 1, m);
22394
22404
  };
22395
22405
  Object.assign(n.keywords, c), n.exports.PARAMS_CONTAINS.push(d);
22396
- const p = n.contains.find((m) => m.scope === "attr"), f = Object.assign(
22406
+ const p = n.contains.find((E) => E.scope === "attr"), f = Object.assign(
22397
22407
  {},
22398
22408
  p,
22399
22409
  { match: t.concat(r, t.lookahead(/\s*\?:/)) }
@@ -22412,7 +22422,7 @@ function db(e) {
22412
22422
  f
22413
22423
  // Added for optional property assignment highlighting
22414
22424
  ]), u(n, "shebang", e.SHEBANG()), u(n, "use_strict", s);
22415
- const g = n.contains.find((m) => m.label === "func.def");
22425
+ const g = n.contains.find((E) => E.label === "func.def");
22416
22426
  return g.relevance = 0, Object.assign(n, {
22417
22427
  name: "TypeScript",
22418
22428
  aliases: [
@@ -22955,7 +22965,7 @@ function hb(e) {
22955
22965
  contains: [f],
22956
22966
  illegal: "\\n",
22957
22967
  relevance: 0
22958
- }, m = {
22968
+ }, E = {
22959
22969
  begin: "\\[",
22960
22970
  end: "\\]",
22961
22971
  contains: [f],
@@ -23038,11 +23048,11 @@ function hb(e) {
23038
23048
  relevance: 0
23039
23049
  },
23040
23050
  g,
23041
- m,
23051
+ E,
23042
23052
  a,
23043
23053
  o
23044
- ], b = [..._];
23045
- return b.pop(), b.push(s), f.contains = b, {
23054
+ ], m = [..._];
23055
+ return m.pop(), m.push(s), f.contains = m, {
23046
23056
  name: "YAML",
23047
23057
  case_insensitive: !0,
23048
23058
  aliases: ["yml"],
@@ -23092,15 +23102,15 @@ var Pr, Yo;
23092
23102
  function bb() {
23093
23103
  if (Yo) return Pr;
23094
23104
  Yo = 1;
23095
- function e(E) {
23096
- return E instanceof Map ? E.clear = E.delete = E.set = function() {
23105
+ function e(y) {
23106
+ return y instanceof Map ? y.clear = y.delete = y.set = function() {
23097
23107
  throw new Error("map is read-only");
23098
- } : E instanceof Set && (E.add = E.clear = E.delete = function() {
23108
+ } : y instanceof Set && (y.add = y.clear = y.delete = function() {
23099
23109
  throw new Error("set is read-only");
23100
- }), Object.freeze(E), Object.getOwnPropertyNames(E).forEach((R) => {
23101
- const U = E[R], te = typeof U;
23102
- (te === "object" || te === "function") && !Object.isFrozen(U) && e(U);
23103
- }), E;
23110
+ }), Object.freeze(y), Object.getOwnPropertyNames(y).forEach((R) => {
23111
+ const $ = y[R], te = typeof $;
23112
+ (te === "object" || te === "function") && !Object.isFrozen($) && e($);
23113
+ }), y;
23104
23114
  }
23105
23115
  class t {
23106
23116
  /**
@@ -23113,30 +23123,30 @@ function bb() {
23113
23123
  this.isMatchIgnored = !0;
23114
23124
  }
23115
23125
  }
23116
- function n(E) {
23117
- return E.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;");
23126
+ function n(y) {
23127
+ return y.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;");
23118
23128
  }
23119
- function r(E, ...R) {
23120
- const U = /* @__PURE__ */ Object.create(null);
23121
- for (const te in E)
23122
- U[te] = E[te];
23129
+ function r(y, ...R) {
23130
+ const $ = /* @__PURE__ */ Object.create(null);
23131
+ for (const te in y)
23132
+ $[te] = y[te];
23123
23133
  return R.forEach(function(te) {
23124
23134
  for (const ke in te)
23125
- U[ke] = te[ke];
23135
+ $[ke] = te[ke];
23126
23136
  }), /** @type {T} */
23127
- U;
23137
+ $;
23128
23138
  }
23129
- const i = "</span>", a = (E) => !!E.scope, o = (E, { prefix: R }) => {
23130
- if (E.startsWith("language:"))
23131
- return E.replace("language:", "language-");
23132
- if (E.includes(".")) {
23133
- const U = E.split(".");
23139
+ const i = "</span>", a = (y) => !!y.scope, o = (y, { prefix: R }) => {
23140
+ if (y.startsWith("language:"))
23141
+ return y.replace("language:", "language-");
23142
+ if (y.includes(".")) {
23143
+ const $ = y.split(".");
23134
23144
  return [
23135
- `${R}${U.shift()}`,
23136
- ...U.map((te, ke) => `${te}${"_".repeat(ke + 1)}`)
23145
+ `${R}${$.shift()}`,
23146
+ ...$.map((te, ke) => `${te}${"_".repeat(ke + 1)}`)
23137
23147
  ].join(" ");
23138
23148
  }
23139
- return `${R}${E}`;
23149
+ return `${R}${y}`;
23140
23150
  };
23141
23151
  class s {
23142
23152
  /**
@@ -23145,8 +23155,8 @@ function bb() {
23145
23155
  * @param {Tree} parseTree - the parse tree (must support `walk` API)
23146
23156
  * @param {{classPrefix: string}} options
23147
23157
  */
23148
- constructor(R, U) {
23149
- this.buffer = "", this.classPrefix = U.classPrefix, R.walk(this);
23158
+ constructor(R, $) {
23159
+ this.buffer = "", this.classPrefix = $.classPrefix, R.walk(this);
23150
23160
  }
23151
23161
  /**
23152
23162
  * Adds texts to the output stream
@@ -23161,11 +23171,11 @@ function bb() {
23161
23171
  * @param {Node} node */
23162
23172
  openNode(R) {
23163
23173
  if (!a(R)) return;
23164
- const U = o(
23174
+ const $ = o(
23165
23175
  R.scope,
23166
23176
  { prefix: this.classPrefix }
23167
23177
  );
23168
- this.span(U);
23178
+ this.span($);
23169
23179
  }
23170
23180
  /**
23171
23181
  * Adds a node close to the output stream (if needed)
@@ -23189,9 +23199,9 @@ function bb() {
23189
23199
  this.buffer += `<span class="${R}">`;
23190
23200
  }
23191
23201
  }
23192
- const l = (E = {}) => {
23202
+ const l = (y = {}) => {
23193
23203
  const R = { children: [] };
23194
- return Object.assign(R, E), R;
23204
+ return Object.assign(R, y), R;
23195
23205
  };
23196
23206
  class c {
23197
23207
  constructor() {
@@ -23209,8 +23219,8 @@ function bb() {
23209
23219
  }
23210
23220
  /** @param {string} scope */
23211
23221
  openNode(R) {
23212
- const U = l({ scope: R });
23213
- this.add(U), this.stack.push(U);
23222
+ const $ = l({ scope: R });
23223
+ this.add($), this.stack.push($);
23214
23224
  }
23215
23225
  closeNode() {
23216
23226
  if (this.stack.length > 1)
@@ -23233,15 +23243,15 @@ function bb() {
23233
23243
  * @param {Renderer} builder
23234
23244
  * @param {Node} node
23235
23245
  */
23236
- static _walk(R, U) {
23237
- return typeof U == "string" ? R.addText(U) : U.children && (R.openNode(U), U.children.forEach((te) => this._walk(R, te)), R.closeNode(U)), R;
23246
+ static _walk(R, $) {
23247
+ return typeof $ == "string" ? R.addText($) : $.children && (R.openNode($), $.children.forEach((te) => this._walk(R, te)), R.closeNode($)), R;
23238
23248
  }
23239
23249
  /**
23240
23250
  * @param {Node} node
23241
23251
  */
23242
23252
  static _collapse(R) {
23243
- typeof R != "string" && R.children && (R.children.every((U) => typeof U == "string") ? R.children = [R.children.join("")] : R.children.forEach((U) => {
23244
- c._collapse(U);
23253
+ typeof R != "string" && R.children && (R.children.every(($) => typeof $ == "string") ? R.children = [R.children.join("")] : R.children.forEach(($) => {
23254
+ c._collapse($);
23245
23255
  }));
23246
23256
  }
23247
23257
  }
@@ -23269,9 +23279,9 @@ function bb() {
23269
23279
  * @param {Emitter & {root: DataNode}} emitter
23270
23280
  * @param {string} name
23271
23281
  */
23272
- __addSublanguage(R, U) {
23282
+ __addSublanguage(R, $) {
23273
23283
  const te = R.root;
23274
- U && (te.scope = `language:${U}`), this.add(te);
23284
+ $ && (te.scope = `language:${$}`), this.add(te);
23275
23285
  }
23276
23286
  toHTML() {
23277
23287
  return new s(this, this.options).value();
@@ -23280,41 +23290,41 @@ function bb() {
23280
23290
  return this.closeAllNodes(), !0;
23281
23291
  }
23282
23292
  }
23283
- function u(E) {
23284
- return E ? typeof E == "string" ? E : E.source : null;
23293
+ function u(y) {
23294
+ return y ? typeof y == "string" ? y : y.source : null;
23285
23295
  }
23286
- function p(E) {
23287
- return m("(?=", E, ")");
23296
+ function p(y) {
23297
+ return E("(?=", y, ")");
23288
23298
  }
23289
- function f(E) {
23290
- return m("(?:", E, ")*");
23299
+ function f(y) {
23300
+ return E("(?:", y, ")*");
23291
23301
  }
23292
- function g(E) {
23293
- return m("(?:", E, ")?");
23302
+ function g(y) {
23303
+ return E("(?:", y, ")?");
23294
23304
  }
23295
- function m(...E) {
23296
- return E.map((U) => u(U)).join("");
23305
+ function E(...y) {
23306
+ return y.map(($) => u($)).join("");
23297
23307
  }
23298
- function _(E) {
23299
- const R = E[E.length - 1];
23300
- return typeof R == "object" && R.constructor === Object ? (E.splice(E.length - 1, 1), R) : {};
23308
+ function _(y) {
23309
+ const R = y[y.length - 1];
23310
+ return typeof R == "object" && R.constructor === Object ? (y.splice(y.length - 1, 1), R) : {};
23301
23311
  }
23302
- function b(...E) {
23303
- return "(" + (_(E).capture ? "" : "?:") + E.map((te) => u(te)).join("|") + ")";
23312
+ function m(...y) {
23313
+ return "(" + (_(y).capture ? "" : "?:") + y.map((te) => u(te)).join("|") + ")";
23304
23314
  }
23305
- function w(E) {
23306
- return new RegExp(E.toString() + "|").exec("").length - 1;
23315
+ function w(y) {
23316
+ return new RegExp(y.toString() + "|").exec("").length - 1;
23307
23317
  }
23308
- function x(E, R) {
23309
- const U = E && E.exec(R);
23310
- return U && U.index === 0;
23318
+ function x(y, R) {
23319
+ const $ = y && y.exec(R);
23320
+ return $ && $.index === 0;
23311
23321
  }
23312
23322
  const v = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
23313
- function O(E, { joinWith: R }) {
23314
- let U = 0;
23315
- return E.map((te) => {
23316
- U += 1;
23317
- const ke = U;
23323
+ function O(y, { joinWith: R }) {
23324
+ let $ = 0;
23325
+ return y.map((te) => {
23326
+ $ += 1;
23327
+ const ke = $;
23318
23328
  let Se = u(te), K = "";
23319
23329
  for (; Se.length > 0; ) {
23320
23330
  const G = v.exec(Se);
@@ -23322,17 +23332,17 @@ function bb() {
23322
23332
  K += Se;
23323
23333
  break;
23324
23334
  }
23325
- K += Se.substring(0, G.index), Se = Se.substring(G.index + G[0].length), G[0][0] === "\\" && G[1] ? K += "\\" + String(Number(G[1]) + ke) : (K += G[0], G[0] === "(" && U++);
23335
+ K += Se.substring(0, G.index), Se = Se.substring(G.index + G[0].length), G[0][0] === "\\" && G[1] ? K += "\\" + String(Number(G[1]) + ke) : (K += G[0], G[0] === "(" && $++);
23326
23336
  }
23327
23337
  return K;
23328
23338
  }).map((te) => `(${te})`).join(R);
23329
23339
  }
23330
- const k = /\b\B/, M = "[a-zA-Z]\\w*", F = "[a-zA-Z_]\\w*", H = "\\b\\d+(\\.\\d+)?", S = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", B = "\\b(0b[01]+)", z = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", I = (E = {}) => {
23340
+ const k = /\b\B/, M = "[a-zA-Z]\\w*", P = "[a-zA-Z_]\\w*", U = "\\b\\d+(\\.\\d+)?", S = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", D = "\\b(0b[01]+)", z = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", I = (y = {}) => {
23331
23341
  const R = /^#![ ]*\//;
23332
- return E.binary && (E.begin = m(
23342
+ return y.binary && (y.begin = E(
23333
23343
  R,
23334
23344
  /.*\b/,
23335
- E.binary,
23345
+ y.binary,
23336
23346
  /\b.*/
23337
23347
  )), r({
23338
23348
  scope: "meta",
@@ -23340,10 +23350,10 @@ function bb() {
23340
23350
  end: /$/,
23341
23351
  relevance: 0,
23342
23352
  /** @type {ModeCallback} */
23343
- "on:begin": (U, te) => {
23344
- U.index !== 0 && te.ignoreMatch();
23353
+ "on:begin": ($, te) => {
23354
+ $.index !== 0 && te.ignoreMatch();
23345
23355
  }
23346
- }, E);
23356
+ }, y);
23347
23357
  }, A = {
23348
23358
  begin: "\\\\[\\s\\S]",
23349
23359
  relevance: 0
@@ -23361,15 +23371,15 @@ function bb() {
23361
23371
  contains: [A]
23362
23372
  }, ce = {
23363
23373
  begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
23364
- }, Z = function(E, R, U = {}) {
23374
+ }, Z = function(y, R, $ = {}) {
23365
23375
  const te = r(
23366
23376
  {
23367
23377
  scope: "comment",
23368
- begin: E,
23378
+ begin: y,
23369
23379
  end: R,
23370
23380
  contains: []
23371
23381
  },
23372
- U
23382
+ $
23373
23383
  );
23374
23384
  te.contains.push({
23375
23385
  scope: "doctag",
@@ -23380,7 +23390,7 @@ function bb() {
23380
23390
  excludeBegin: !0,
23381
23391
  relevance: 0
23382
23392
  });
23383
- const ke = b(
23393
+ const ke = m(
23384
23394
  // list of common 1 and 2 letter words in English
23385
23395
  "I",
23386
23396
  "a",
@@ -23416,7 +23426,7 @@ function bb() {
23416
23426
  //
23417
23427
  // for a visual example please see:
23418
23428
  // https://github.com/highlightjs/highlight.js/issues/2827
23419
- begin: m(
23429
+ begin: E(
23420
23430
  /[ ]+/,
23421
23431
  // necessary to prevent us gobbling up doctags like /* @author Bob Mcgill */
23422
23432
  "(",
@@ -23427,9 +23437,9 @@ function bb() {
23427
23437
  // look for 3 words in a row
23428
23438
  }
23429
23439
  ), te;
23430
- }, ee = Z("//", "$"), y = Z("/\\*", "\\*/"), q = Z("#", "$"), le = {
23440
+ }, ee = Z("//", "$"), b = Z("/\\*", "\\*/"), q = Z("#", "$"), le = {
23431
23441
  scope: "number",
23432
- begin: H,
23442
+ begin: U,
23433
23443
  relevance: 0
23434
23444
  }, h = {
23435
23445
  scope: "number",
@@ -23437,7 +23447,7 @@ function bb() {
23437
23447
  relevance: 0
23438
23448
  }, X = {
23439
23449
  scope: "number",
23440
- begin: B,
23450
+ begin: D,
23441
23451
  relevance: 0
23442
23452
  }, fe = {
23443
23453
  scope: "regexp",
@@ -23458,35 +23468,35 @@ function bb() {
23458
23468
  relevance: 0
23459
23469
  }, Me = {
23460
23470
  scope: "title",
23461
- begin: F,
23471
+ begin: P,
23462
23472
  relevance: 0
23463
23473
  }, Be = {
23464
23474
  // excludes method names from keyword processing
23465
- begin: "\\.\\s*" + F,
23475
+ begin: "\\.\\s*" + P,
23466
23476
  relevance: 0
23467
23477
  };
23468
- var Ie = /* @__PURE__ */ Object.freeze({
23478
+ var Re = /* @__PURE__ */ Object.freeze({
23469
23479
  __proto__: null,
23470
23480
  APOS_STRING_MODE: N,
23471
23481
  BACKSLASH_ESCAPE: A,
23472
23482
  BINARY_NUMBER_MODE: X,
23473
- BINARY_NUMBER_RE: B,
23483
+ BINARY_NUMBER_RE: D,
23474
23484
  COMMENT: Z,
23475
- C_BLOCK_COMMENT_MODE: y,
23485
+ C_BLOCK_COMMENT_MODE: b,
23476
23486
  C_LINE_COMMENT_MODE: ee,
23477
23487
  C_NUMBER_MODE: h,
23478
23488
  C_NUMBER_RE: S,
23479
- END_SAME_AS_BEGIN: function(E) {
23489
+ END_SAME_AS_BEGIN: function(y) {
23480
23490
  return Object.assign(
23481
- E,
23491
+ y,
23482
23492
  {
23483
23493
  /** @type {ModeCallback} */
23484
- "on:begin": (R, U) => {
23485
- U.data._beginMatch = R[1];
23494
+ "on:begin": (R, $) => {
23495
+ $.data._beginMatch = R[1];
23486
23496
  },
23487
23497
  /** @type {ModeCallback} */
23488
- "on:end": (R, U) => {
23489
- U.data._beginMatch !== R[1] && U.ignoreMatch();
23498
+ "on:end": (R, $) => {
23499
+ $.data._beginMatch !== R[1] && $.ignoreMatch();
23490
23500
  }
23491
23501
  }
23492
23502
  );
@@ -23496,49 +23506,49 @@ function bb() {
23496
23506
  MATCH_NOTHING_RE: k,
23497
23507
  METHOD_GUARD: Be,
23498
23508
  NUMBER_MODE: le,
23499
- NUMBER_RE: H,
23509
+ NUMBER_RE: U,
23500
23510
  PHRASAL_WORDS_MODE: ce,
23501
23511
  QUOTE_STRING_MODE: W,
23502
23512
  REGEXP_MODE: fe,
23503
23513
  RE_STARTERS_RE: z,
23504
23514
  SHEBANG: I,
23505
23515
  TITLE_MODE: ge,
23506
- UNDERSCORE_IDENT_RE: F,
23516
+ UNDERSCORE_IDENT_RE: P,
23507
23517
  UNDERSCORE_TITLE_MODE: Me
23508
23518
  });
23509
- function Qe(E, R) {
23510
- E.input[E.index - 1] === "." && R.ignoreMatch();
23519
+ function Je(y, R) {
23520
+ y.input[y.index - 1] === "." && R.ignoreMatch();
23511
23521
  }
23512
- function ft(E, R) {
23513
- E.className !== void 0 && (E.scope = E.className, delete E.className);
23522
+ function ft(y, R) {
23523
+ y.className !== void 0 && (y.scope = y.className, delete y.className);
23514
23524
  }
23515
- function pt(E, R) {
23516
- R && E.beginKeywords && (E.begin = "\\b(" + E.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", E.__beforeBegin = Qe, E.keywords = E.keywords || E.beginKeywords, delete E.beginKeywords, E.relevance === void 0 && (E.relevance = 0));
23525
+ function pt(y, R) {
23526
+ R && y.beginKeywords && (y.begin = "\\b(" + y.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", y.__beforeBegin = Je, y.keywords = y.keywords || y.beginKeywords, delete y.beginKeywords, y.relevance === void 0 && (y.relevance = 0));
23517
23527
  }
23518
- function Rt(E, R) {
23519
- Array.isArray(E.illegal) && (E.illegal = b(...E.illegal));
23528
+ function Rt(y, R) {
23529
+ Array.isArray(y.illegal) && (y.illegal = m(...y.illegal));
23520
23530
  }
23521
- function tt(E, R) {
23522
- if (E.match) {
23523
- if (E.begin || E.end) throw new Error("begin & end are not supported with match");
23524
- E.begin = E.match, delete E.match;
23531
+ function tt(y, R) {
23532
+ if (y.match) {
23533
+ if (y.begin || y.end) throw new Error("begin & end are not supported with match");
23534
+ y.begin = y.match, delete y.match;
23525
23535
  }
23526
23536
  }
23527
- function pe(E, R) {
23528
- E.relevance === void 0 && (E.relevance = 1);
23537
+ function pe(y, R) {
23538
+ y.relevance === void 0 && (y.relevance = 1);
23529
23539
  }
23530
- const qe = (E, R) => {
23531
- if (!E.beforeMatch) return;
23532
- if (E.starts) throw new Error("beforeMatch cannot be used with starts");
23533
- const U = Object.assign({}, E);
23534
- Object.keys(E).forEach((te) => {
23535
- delete E[te];
23536
- }), E.keywords = U.keywords, E.begin = m(U.beforeMatch, p(U.begin)), E.starts = {
23540
+ const qe = (y, R) => {
23541
+ if (!y.beforeMatch) return;
23542
+ if (y.starts) throw new Error("beforeMatch cannot be used with starts");
23543
+ const $ = Object.assign({}, y);
23544
+ Object.keys(y).forEach((te) => {
23545
+ delete y[te];
23546
+ }), y.keywords = $.keywords, y.begin = E($.beforeMatch, p($.begin)), y.starts = {
23537
23547
  relevance: 0,
23538
23548
  contains: [
23539
- Object.assign(U, { endsParent: !0 })
23549
+ Object.assign($, { endsParent: !0 })
23540
23550
  ]
23541
- }, E.relevance = 0, delete U.beforeMatch;
23551
+ }, y.relevance = 0, delete $.beforeMatch;
23542
23552
  }, nt = [
23543
23553
  "of",
23544
23554
  "and",
@@ -23555,12 +23565,12 @@ function bb() {
23555
23565
  "value"
23556
23566
  // common variable name
23557
23567
  ], $e = "keyword";
23558
- function at(E, R, U = $e) {
23568
+ function at(y, R, $ = $e) {
23559
23569
  const te = /* @__PURE__ */ Object.create(null);
23560
- return typeof E == "string" ? ke(U, E.split(" ")) : Array.isArray(E) ? ke(U, E) : Object.keys(E).forEach(function(Se) {
23570
+ return typeof y == "string" ? ke($, y.split(" ")) : Array.isArray(y) ? ke($, y) : Object.keys(y).forEach(function(Se) {
23561
23571
  Object.assign(
23562
23572
  te,
23563
- at(E[Se], R, Se)
23573
+ at(y[Se], R, Se)
23564
23574
  );
23565
23575
  }), te;
23566
23576
  function ke(Se, K) {
@@ -23570,58 +23580,58 @@ function bb() {
23570
23580
  });
23571
23581
  }
23572
23582
  }
23573
- function Qt(E, R) {
23574
- return R ? Number(R) : er(E) ? 0 : 1;
23583
+ function Qt(y, R) {
23584
+ return R ? Number(R) : er(y) ? 0 : 1;
23575
23585
  }
23576
- function er(E) {
23577
- return nt.includes(E.toLowerCase());
23586
+ function er(y) {
23587
+ return nt.includes(y.toLowerCase());
23578
23588
  }
23579
- const En = {}, gt = (E) => {
23580
- console.error(E);
23581
- }, _n = (E, ...R) => {
23582
- console.log(`WARN: ${E}`, ...R);
23583
- }, C = (E, R) => {
23584
- En[`${E}/${R}`] || (console.log(`Deprecated as of ${E}. ${R}`), En[`${E}/${R}`] = !0);
23585
- }, P = new Error();
23586
- function Q(E, R, { key: U }) {
23589
+ const En = {}, gt = (y) => {
23590
+ console.error(y);
23591
+ }, _n = (y, ...R) => {
23592
+ console.log(`WARN: ${y}`, ...R);
23593
+ }, C = (y, R) => {
23594
+ En[`${y}/${R}`] || (console.log(`Deprecated as of ${y}. ${R}`), En[`${y}/${R}`] = !0);
23595
+ }, F = new Error();
23596
+ function Q(y, R, { key: $ }) {
23587
23597
  let te = 0;
23588
- const ke = E[U], Se = {}, K = {};
23598
+ const ke = y[$], Se = {}, K = {};
23589
23599
  for (let G = 1; G <= R.length; G++)
23590
23600
  K[G + te] = ke[G], Se[G + te] = !0, te += w(R[G - 1]);
23591
- E[U] = K, E[U]._emit = Se, E[U]._multi = !0;
23601
+ y[$] = K, y[$]._emit = Se, y[$]._multi = !0;
23592
23602
  }
23593
- function ae(E) {
23594
- if (Array.isArray(E.begin)) {
23595
- if (E.skip || E.excludeBegin || E.returnBegin)
23596
- throw gt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), P;
23597
- if (typeof E.beginScope != "object" || E.beginScope === null)
23598
- throw gt("beginScope must be object"), P;
23599
- Q(E, E.begin, { key: "beginScope" }), E.begin = O(E.begin, { joinWith: "" });
23603
+ function ae(y) {
23604
+ if (Array.isArray(y.begin)) {
23605
+ if (y.skip || y.excludeBegin || y.returnBegin)
23606
+ throw gt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), F;
23607
+ if (typeof y.beginScope != "object" || y.beginScope === null)
23608
+ throw gt("beginScope must be object"), F;
23609
+ Q(y, y.begin, { key: "beginScope" }), y.begin = O(y.begin, { joinWith: "" });
23600
23610
  }
23601
23611
  }
23602
- function he(E) {
23603
- if (Array.isArray(E.end)) {
23604
- if (E.skip || E.excludeEnd || E.returnEnd)
23605
- throw gt("skip, excludeEnd, returnEnd not compatible with endScope: {}"), P;
23606
- if (typeof E.endScope != "object" || E.endScope === null)
23607
- throw gt("endScope must be object"), P;
23608
- Q(E, E.end, { key: "endScope" }), E.end = O(E.end, { joinWith: "" });
23612
+ function he(y) {
23613
+ if (Array.isArray(y.end)) {
23614
+ if (y.skip || y.excludeEnd || y.returnEnd)
23615
+ throw gt("skip, excludeEnd, returnEnd not compatible with endScope: {}"), F;
23616
+ if (typeof y.endScope != "object" || y.endScope === null)
23617
+ throw gt("endScope must be object"), F;
23618
+ Q(y, y.end, { key: "endScope" }), y.end = O(y.end, { joinWith: "" });
23609
23619
  }
23610
23620
  }
23611
- function Ke(E) {
23612
- E.scope && typeof E.scope == "object" && E.scope !== null && (E.beginScope = E.scope, delete E.scope);
23621
+ function Ke(y) {
23622
+ y.scope && typeof y.scope == "object" && y.scope !== null && (y.beginScope = y.scope, delete y.scope);
23613
23623
  }
23614
- function ht(E) {
23615
- Ke(E), typeof E.beginScope == "string" && (E.beginScope = { _wrap: E.beginScope }), typeof E.endScope == "string" && (E.endScope = { _wrap: E.endScope }), ae(E), he(E);
23624
+ function ht(y) {
23625
+ Ke(y), typeof y.beginScope == "string" && (y.beginScope = { _wrap: y.beginScope }), typeof y.endScope == "string" && (y.endScope = { _wrap: y.endScope }), ae(y), he(y);
23616
23626
  }
23617
- function rt(E) {
23627
+ function rt(y) {
23618
23628
  function R(K, G) {
23619
23629
  return new RegExp(
23620
23630
  u(K),
23621
- "m" + (E.case_insensitive ? "i" : "") + (E.unicodeRegex ? "u" : "") + (G ? "g" : "")
23631
+ "m" + (y.case_insensitive ? "i" : "") + (y.unicodeRegex ? "u" : "") + (G ? "g" : "")
23622
23632
  );
23623
23633
  }
23624
- class U {
23634
+ class $ {
23625
23635
  constructor() {
23626
23636
  this.matchIndexes = {}, this.regexes = [], this.matchAt = 1, this.position = 0;
23627
23637
  }
@@ -23640,8 +23650,8 @@ function bb() {
23640
23650
  const J = this.matcherRe.exec(G);
23641
23651
  if (!J)
23642
23652
  return null;
23643
- const Ae = J.findIndex((Jt, tr) => tr > 0 && Jt !== void 0), ve = this.matchIndexes[Ae];
23644
- return J.splice(0, Ae), Object.assign(J, ve);
23653
+ const Ie = J.findIndex((Jt, tr) => tr > 0 && Jt !== void 0), ve = this.matchIndexes[Ie];
23654
+ return J.splice(0, Ie), Object.assign(J, ve);
23645
23655
  }
23646
23656
  }
23647
23657
  class te {
@@ -23651,8 +23661,8 @@ function bb() {
23651
23661
  // @ts-ignore
23652
23662
  getMatcher(G) {
23653
23663
  if (this.multiRegexes[G]) return this.multiRegexes[G];
23654
- const J = new U();
23655
- return this.rules.slice(G).forEach(([Ae, ve]) => J.addRule(Ae, ve)), J.compile(), this.multiRegexes[G] = J, J;
23664
+ const J = new $();
23665
+ return this.rules.slice(G).forEach(([Ie, ve]) => J.addRule(Ie, ve)), J.compile(), this.multiRegexes[G] = J, J;
23656
23666
  }
23657
23667
  resumingScanAtSamePosition() {
23658
23668
  return this.regexIndex !== 0;
@@ -23668,12 +23678,12 @@ function bb() {
23668
23678
  exec(G) {
23669
23679
  const J = this.getMatcher(this.regexIndex);
23670
23680
  J.lastIndex = this.lastIndex;
23671
- let Ae = J.exec(G);
23672
- if (this.resumingScanAtSamePosition() && !(Ae && Ae.index === this.lastIndex)) {
23681
+ let Ie = J.exec(G);
23682
+ if (this.resumingScanAtSamePosition() && !(Ie && Ie.index === this.lastIndex)) {
23673
23683
  const ve = this.getMatcher(0);
23674
- ve.lastIndex = this.lastIndex + 1, Ae = ve.exec(G);
23684
+ ve.lastIndex = this.lastIndex + 1, Ie = ve.exec(G);
23675
23685
  }
23676
- return Ae && (this.regexIndex += Ae.position + 1, this.regexIndex === this.count && this.considerAll()), Ae;
23686
+ return Ie && (this.regexIndex += Ie.position + 1, this.regexIndex === this.count && this.considerAll()), Ie;
23677
23687
  }
23678
23688
  }
23679
23689
  function ke(K) {
@@ -23693,7 +23703,7 @@ function bb() {
23693
23703
  tt,
23694
23704
  ht,
23695
23705
  qe
23696
- ].forEach((ve) => ve(K, G)), E.compilerExtensions.forEach((ve) => ve(K, G)), K.__beforeBegin = null, [
23706
+ ].forEach((ve) => ve(K, G)), y.compilerExtensions.forEach((ve) => ve(K, G)), K.__beforeBegin = null, [
23697
23707
  pt,
23698
23708
  // do this later so compiler extensions that come earlier have access to the
23699
23709
  // raw array if they wanted to perhaps manipulate it, etc.
@@ -23701,8 +23711,8 @@ function bb() {
23701
23711
  // default to 1 relevance if not specified
23702
23712
  pe
23703
23713
  ].forEach((ve) => ve(K, G)), K.isCompiled = !0;
23704
- let Ae = null;
23705
- return typeof K.keywords == "object" && K.keywords.$pattern && (K.keywords = Object.assign({}, K.keywords), Ae = K.keywords.$pattern, delete K.keywords.$pattern), Ae = Ae || /\w+/, K.keywords && (K.keywords = at(K.keywords, E.case_insensitive)), J.keywordPatternRe = R(Ae, !0), G && (K.begin || (K.begin = /\B|\b/), J.beginRe = R(J.begin), !K.end && !K.endsWithParent && (K.end = /\B|\b/), K.end && (J.endRe = R(J.end)), J.terminatorEnd = u(J.end) || "", K.endsWithParent && G.terminatorEnd && (J.terminatorEnd += (K.end ? "|" : "") + G.terminatorEnd)), K.illegal && (J.illegalRe = R(
23714
+ let Ie = null;
23715
+ return typeof K.keywords == "object" && K.keywords.$pattern && (K.keywords = Object.assign({}, K.keywords), Ie = K.keywords.$pattern, delete K.keywords.$pattern), Ie = Ie || /\w+/, K.keywords && (K.keywords = at(K.keywords, y.case_insensitive)), J.keywordPatternRe = R(Ie, !0), G && (K.begin || (K.begin = /\B|\b/), J.beginRe = R(J.begin), !K.end && !K.endsWithParent && (K.end = /\B|\b/), K.end && (J.endRe = R(J.end)), J.terminatorEnd = u(J.end) || "", K.endsWithParent && G.terminatorEnd && (J.terminatorEnd += (K.end ? "|" : "") + G.terminatorEnd)), K.illegal && (J.illegalRe = R(
23706
23716
  /** @type {RegExp | string} */
23707
23717
  K.illegal
23708
23718
  )), K.contains || (K.contains = []), K.contains = [].concat(...K.contains.map(function(ve) {
@@ -23715,29 +23725,29 @@ function bb() {
23715
23725
  );
23716
23726
  }), K.starts && Se(K.starts, G), J.matcher = ke(J), J;
23717
23727
  }
23718
- if (E.compilerExtensions || (E.compilerExtensions = []), E.contains && E.contains.includes("self"))
23728
+ if (y.compilerExtensions || (y.compilerExtensions = []), y.contains && y.contains.includes("self"))
23719
23729
  throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
23720
- return E.classNameAliases = r(E.classNameAliases || {}), Se(
23730
+ return y.classNameAliases = r(y.classNameAliases || {}), Se(
23721
23731
  /** @type Mode */
23722
- E
23732
+ y
23723
23733
  );
23724
23734
  }
23725
- function _t(E) {
23726
- return E ? E.endsWithParent || _t(E.starts) : !1;
23735
+ function _t(y) {
23736
+ return y ? y.endsWithParent || _t(y.starts) : !1;
23727
23737
  }
23728
- function Ot(E) {
23729
- return E.variants && !E.cachedVariants && (E.cachedVariants = E.variants.map(function(R) {
23730
- return r(E, { variants: null }, R);
23731
- })), E.cachedVariants ? E.cachedVariants : _t(E) ? r(E, { starts: E.starts ? r(E.starts) : null }) : Object.isFrozen(E) ? r(E) : E;
23738
+ function Ot(y) {
23739
+ return y.variants && !y.cachedVariants && (y.cachedVariants = y.variants.map(function(R) {
23740
+ return r(y, { variants: null }, R);
23741
+ })), y.cachedVariants ? y.cachedVariants : _t(y) ? r(y, { starts: y.starts ? r(y.starts) : null }) : Object.isFrozen(y) ? r(y) : y;
23732
23742
  }
23733
23743
  var Fe = "11.11.1";
23734
23744
  class xt extends Error {
23735
- constructor(R, U) {
23736
- super(R), this.name = "HTMLInjectionError", this.html = U;
23745
+ constructor(R, $) {
23746
+ super(R), this.name = "HTMLInjectionError", this.html = $;
23737
23747
  }
23738
23748
  }
23739
- const je = n, xi = r, wi = Symbol("nomatch"), Ks = 7, ki = function(E) {
23740
- const R = /* @__PURE__ */ Object.create(null), U = /* @__PURE__ */ Object.create(null), te = [];
23749
+ const je = n, xi = r, wi = Symbol("nomatch"), Ks = 7, ki = function(y) {
23750
+ const R = /* @__PURE__ */ Object.create(null), $ = /* @__PURE__ */ Object.create(null), te = [];
23741
23751
  let ke = !0;
23742
23752
  const Se = "Could not find the language '{}', did you forget to load/include a language module?", K = { disableAutodetect: !0, name: "Plain text", contains: [] };
23743
23753
  let G = {
@@ -23752,23 +23762,23 @@ function bb() {
23752
23762
  // https://github.com/highlightjs/highlight.js/issues/1086
23753
23763
  __emitter: d
23754
23764
  };
23755
- function J(L) {
23756
- return G.noHighlightRe.test(L);
23765
+ function J(B) {
23766
+ return G.noHighlightRe.test(B);
23757
23767
  }
23758
- function Ae(L) {
23759
- let V = L.className + " ";
23760
- V += L.parentNode ? L.parentNode.className : "";
23768
+ function Ie(B) {
23769
+ let V = B.className + " ";
23770
+ V += B.parentNode ? B.parentNode.className : "";
23761
23771
  const ue = G.languageDetectRe.exec(V);
23762
23772
  if (ue) {
23763
23773
  const Ee = wt(ue[1]);
23764
- return Ee || (_n(Se.replace("{}", ue[1])), _n("Falling back to no-highlight mode for this block.", L)), Ee ? ue[1] : "no-highlight";
23774
+ return Ee || (_n(Se.replace("{}", ue[1])), _n("Falling back to no-highlight mode for this block.", B)), Ee ? ue[1] : "no-highlight";
23765
23775
  }
23766
23776
  return V.split(/\s+/).find((Ee) => J(Ee) || wt(Ee));
23767
23777
  }
23768
- function ve(L, V, ue) {
23778
+ function ve(B, V, ue) {
23769
23779
  let Ee = "", Ce = "";
23770
- typeof V == "object" ? (Ee = L, ue = V.ignoreIllegals, Ce = V.language) : (C("10.7.0", "highlight(lang, code, ...args) has been deprecated."), C("10.7.0", `Please use highlight(code, options) instead.
23771
- https://github.com/highlightjs/highlight.js/issues/2277`), Ce = L, Ee = V), ue === void 0 && (ue = !0);
23780
+ typeof V == "object" ? (Ee = B, ue = V.ignoreIllegals, Ce = V.language) : (C("10.7.0", "highlight(lang, code, ...args) has been deprecated."), C("10.7.0", `Please use highlight(code, options) instead.
23781
+ https://github.com/highlightjs/highlight.js/issues/2277`), Ce = B, Ee = V), ue === void 0 && (ue = !0);
23772
23782
  const it = {
23773
23783
  code: Ee,
23774
23784
  language: Ce
@@ -23777,25 +23787,25 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ce = L, Ee = V), ue =
23777
23787
  const kt = it.result ? it.result : Jt(it.language, it.code, ue);
23778
23788
  return kt.code = it.code, wn("after:highlight", kt), kt;
23779
23789
  }
23780
- function Jt(L, V, ue, Ee) {
23790
+ function Jt(B, V, ue, Ee) {
23781
23791
  const Ce = /* @__PURE__ */ Object.create(null);
23782
- function it($, j) {
23783
- return $.keywords[j];
23792
+ function it(H, j) {
23793
+ return H.keywords[j];
23784
23794
  }
23785
23795
  function kt() {
23786
23796
  if (!ne.keywords) {
23787
- Re.addText(_e);
23797
+ Oe.addText(_e);
23788
23798
  return;
23789
23799
  }
23790
- let $ = 0;
23800
+ let H = 0;
23791
23801
  ne.keywordPatternRe.lastIndex = 0;
23792
23802
  let j = ne.keywordPatternRe.exec(_e), ie = "";
23793
23803
  for (; j; ) {
23794
- ie += _e.substring($, j.index);
23804
+ ie += _e.substring(H, j.index);
23795
23805
  const me = lt.case_insensitive ? j[0].toLowerCase() : j[0], De = it(ne, me);
23796
23806
  if (De) {
23797
23807
  const [mt, cl] = De;
23798
- if (Re.addText(ie), ie = "", Ce[me] = (Ce[me] || 0) + 1, Ce[me] <= Ks && (vn += cl), mt.startsWith("_"))
23808
+ if (Oe.addText(ie), ie = "", Ce[me] = (Ce[me] || 0) + 1, Ce[me] <= Ks && (vn += cl), mt.startsWith("_"))
23799
23809
  ie += j[0];
23800
23810
  else {
23801
23811
  const ul = lt.classNameAliases[mt] || mt;
@@ -23803,97 +23813,97 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ce = L, Ee = V), ue =
23803
23813
  }
23804
23814
  } else
23805
23815
  ie += j[0];
23806
- $ = ne.keywordPatternRe.lastIndex, j = ne.keywordPatternRe.exec(_e);
23816
+ H = ne.keywordPatternRe.lastIndex, j = ne.keywordPatternRe.exec(_e);
23807
23817
  }
23808
- ie += _e.substring($), Re.addText(ie);
23818
+ ie += _e.substring(H), Oe.addText(ie);
23809
23819
  }
23810
23820
  function kn() {
23811
23821
  if (_e === "") return;
23812
- let $ = null;
23822
+ let H = null;
23813
23823
  if (typeof ne.subLanguage == "string") {
23814
23824
  if (!R[ne.subLanguage]) {
23815
- Re.addText(_e);
23825
+ Oe.addText(_e);
23816
23826
  return;
23817
23827
  }
23818
- $ = Jt(ne.subLanguage, _e, !0, Ri[ne.subLanguage]), Ri[ne.subLanguage] = /** @type {CompiledMode} */
23819
- $._top;
23828
+ H = Jt(ne.subLanguage, _e, !0, Ri[ne.subLanguage]), Ri[ne.subLanguage] = /** @type {CompiledMode} */
23829
+ H._top;
23820
23830
  } else
23821
- $ = nr(_e, ne.subLanguage.length ? ne.subLanguage : null);
23822
- ne.relevance > 0 && (vn += $.relevance), Re.__addSublanguage($._emitter, $.language);
23831
+ H = nr(_e, ne.subLanguage.length ? ne.subLanguage : null);
23832
+ ne.relevance > 0 && (vn += H.relevance), Oe.__addSublanguage(H._emitter, H.language);
23823
23833
  }
23824
23834
  function Ve() {
23825
23835
  ne.subLanguage != null ? kn() : kt(), _e = "";
23826
23836
  }
23827
- function st($, j) {
23828
- $ !== "" && (Re.startScope(j), Re.addText($), Re.endScope());
23837
+ function st(H, j) {
23838
+ H !== "" && (Oe.startScope(j), Oe.addText(H), Oe.endScope());
23829
23839
  }
23830
- function Ni($, j) {
23840
+ function Ni(H, j) {
23831
23841
  let ie = 1;
23832
23842
  const me = j.length - 1;
23833
23843
  for (; ie <= me; ) {
23834
- if (!$._emit[ie]) {
23844
+ if (!H._emit[ie]) {
23835
23845
  ie++;
23836
23846
  continue;
23837
23847
  }
23838
- const De = lt.classNameAliases[$[ie]] || $[ie], mt = j[ie];
23848
+ const De = lt.classNameAliases[H[ie]] || H[ie], mt = j[ie];
23839
23849
  De ? st(mt, De) : (_e = mt, kt(), _e = ""), ie++;
23840
23850
  }
23841
23851
  }
23842
- function Ci($, j) {
23843
- return $.scope && typeof $.scope == "string" && Re.openNode(lt.classNameAliases[$.scope] || $.scope), $.beginScope && ($.beginScope._wrap ? (st(_e, lt.classNameAliases[$.beginScope._wrap] || $.beginScope._wrap), _e = "") : $.beginScope._multi && (Ni($.beginScope, j), _e = "")), ne = Object.create($, { parent: { value: ne } }), ne;
23852
+ function Ci(H, j) {
23853
+ return H.scope && typeof H.scope == "string" && Oe.openNode(lt.classNameAliases[H.scope] || H.scope), H.beginScope && (H.beginScope._wrap ? (st(_e, lt.classNameAliases[H.beginScope._wrap] || H.beginScope._wrap), _e = "") : H.beginScope._multi && (Ni(H.beginScope, j), _e = "")), ne = Object.create(H, { parent: { value: ne } }), ne;
23844
23854
  }
23845
- function Ai($, j, ie) {
23846
- let me = x($.endRe, ie);
23855
+ function Ai(H, j, ie) {
23856
+ let me = x(H.endRe, ie);
23847
23857
  if (me) {
23848
- if ($["on:end"]) {
23849
- const De = new t($);
23850
- $["on:end"](j, De), De.isMatchIgnored && (me = !1);
23858
+ if (H["on:end"]) {
23859
+ const De = new t(H);
23860
+ H["on:end"](j, De), De.isMatchIgnored && (me = !1);
23851
23861
  }
23852
23862
  if (me) {
23853
- for (; $.endsParent && $.parent; )
23854
- $ = $.parent;
23855
- return $;
23863
+ for (; H.endsParent && H.parent; )
23864
+ H = H.parent;
23865
+ return H;
23856
23866
  }
23857
23867
  }
23858
- if ($.endsWithParent)
23859
- return Ai($.parent, j, ie);
23868
+ if (H.endsWithParent)
23869
+ return Ai(H.parent, j, ie);
23860
23870
  }
23861
- function il($) {
23862
- return ne.matcher.regexIndex === 0 ? (_e += $[0], 1) : (ar = !0, 0);
23871
+ function il(H) {
23872
+ return ne.matcher.regexIndex === 0 ? (_e += H[0], 1) : (ar = !0, 0);
23863
23873
  }
23864
- function ol($) {
23865
- const j = $[0], ie = $.rule, me = new t(ie), De = [ie.__beforeBegin, ie["on:begin"]];
23874
+ function ol(H) {
23875
+ const j = H[0], ie = H.rule, me = new t(ie), De = [ie.__beforeBegin, ie["on:begin"]];
23866
23876
  for (const mt of De)
23867
- if (mt && (mt($, me), me.isMatchIgnored))
23877
+ if (mt && (mt(H, me), me.isMatchIgnored))
23868
23878
  return il(j);
23869
- return ie.skip ? _e += j : (ie.excludeBegin && (_e += j), Ve(), !ie.returnBegin && !ie.excludeBegin && (_e = j)), Ci(ie, $), ie.returnBegin ? 0 : j.length;
23879
+ return ie.skip ? _e += j : (ie.excludeBegin && (_e += j), Ve(), !ie.returnBegin && !ie.excludeBegin && (_e = j)), Ci(ie, H), ie.returnBegin ? 0 : j.length;
23870
23880
  }
23871
- function al($) {
23872
- const j = $[0], ie = V.substring($.index), me = Ai(ne, $, ie);
23881
+ function al(H) {
23882
+ const j = H[0], ie = V.substring(H.index), me = Ai(ne, H, ie);
23873
23883
  if (!me)
23874
23884
  return wi;
23875
23885
  const De = ne;
23876
- ne.endScope && ne.endScope._wrap ? (Ve(), st(j, ne.endScope._wrap)) : ne.endScope && ne.endScope._multi ? (Ve(), Ni(ne.endScope, $)) : De.skip ? _e += j : (De.returnEnd || De.excludeEnd || (_e += j), Ve(), De.excludeEnd && (_e = j));
23886
+ ne.endScope && ne.endScope._wrap ? (Ve(), st(j, ne.endScope._wrap)) : ne.endScope && ne.endScope._multi ? (Ve(), Ni(ne.endScope, H)) : De.skip ? _e += j : (De.returnEnd || De.excludeEnd || (_e += j), Ve(), De.excludeEnd && (_e = j));
23877
23887
  do
23878
- ne.scope && Re.closeNode(), !ne.skip && !ne.subLanguage && (vn += ne.relevance), ne = ne.parent;
23888
+ ne.scope && Oe.closeNode(), !ne.skip && !ne.subLanguage && (vn += ne.relevance), ne = ne.parent;
23879
23889
  while (ne !== me.parent);
23880
- return me.starts && Ci(me.starts, $), De.returnEnd ? 0 : j.length;
23890
+ return me.starts && Ci(me.starts, H), De.returnEnd ? 0 : j.length;
23881
23891
  }
23882
23892
  function sl() {
23883
- const $ = [];
23893
+ const H = [];
23884
23894
  for (let j = ne; j !== lt; j = j.parent)
23885
- j.scope && $.unshift(j.scope);
23886
- $.forEach((j) => Re.openNode(j));
23895
+ j.scope && H.unshift(j.scope);
23896
+ H.forEach((j) => Oe.openNode(j));
23887
23897
  }
23888
23898
  let Sn = {};
23889
- function Ii($, j) {
23899
+ function Ii(H, j) {
23890
23900
  const ie = j && j[0];
23891
- if (_e += $, ie == null)
23901
+ if (_e += H, ie == null)
23892
23902
  return Ve(), 0;
23893
23903
  if (Sn.type === "begin" && j.type === "end" && Sn.index === j.index && ie === "") {
23894
23904
  if (_e += V.slice(j.index, j.index + 1), !ke) {
23895
- const me = new Error(`0 width match regex (${L})`);
23896
- throw me.languageName = L, me.badRule = Sn.rule, me;
23905
+ const me = new Error(`0 width match regex (${B})`);
23906
+ throw me.languageName = B, me.badRule = Sn.rule, me;
23897
23907
  }
23898
23908
  return 1;
23899
23909
  }
@@ -23914,78 +23924,78 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ce = L, Ee = V), ue =
23914
23924
  throw new Error("potential infinite loop, way more iterations than matches");
23915
23925
  return _e += ie, ie.length;
23916
23926
  }
23917
- const lt = wt(L);
23927
+ const lt = wt(B);
23918
23928
  if (!lt)
23919
- throw gt(Se.replace("{}", L)), new Error('Unknown language: "' + L + '"');
23929
+ throw gt(Se.replace("{}", B)), new Error('Unknown language: "' + B + '"');
23920
23930
  const ll = rt(lt);
23921
23931
  let ir = "", ne = Ee || ll;
23922
- const Ri = {}, Re = new G.__emitter(G);
23932
+ const Ri = {}, Oe = new G.__emitter(G);
23923
23933
  sl();
23924
23934
  let _e = "", vn = 0, Mt = 0, or = 0, ar = !1;
23925
23935
  try {
23926
23936
  if (lt.__emitTokens)
23927
- lt.__emitTokens(V, Re);
23937
+ lt.__emitTokens(V, Oe);
23928
23938
  else {
23929
23939
  for (ne.matcher.considerAll(); ; ) {
23930
23940
  or++, ar ? ar = !1 : ne.matcher.considerAll(), ne.matcher.lastIndex = Mt;
23931
- const $ = ne.matcher.exec(V);
23932
- if (!$) break;
23933
- const j = V.substring(Mt, $.index), ie = Ii(j, $);
23934
- Mt = $.index + ie;
23941
+ const H = ne.matcher.exec(V);
23942
+ if (!H) break;
23943
+ const j = V.substring(Mt, H.index), ie = Ii(j, H);
23944
+ Mt = H.index + ie;
23935
23945
  }
23936
23946
  Ii(V.substring(Mt));
23937
23947
  }
23938
- return Re.finalize(), ir = Re.toHTML(), {
23939
- language: L,
23948
+ return Oe.finalize(), ir = Oe.toHTML(), {
23949
+ language: B,
23940
23950
  value: ir,
23941
23951
  relevance: vn,
23942
23952
  illegal: !1,
23943
- _emitter: Re,
23953
+ _emitter: Oe,
23944
23954
  _top: ne
23945
23955
  };
23946
- } catch ($) {
23947
- if ($.message && $.message.includes("Illegal"))
23956
+ } catch (H) {
23957
+ if (H.message && H.message.includes("Illegal"))
23948
23958
  return {
23949
- language: L,
23959
+ language: B,
23950
23960
  value: je(V),
23951
23961
  illegal: !0,
23952
23962
  relevance: 0,
23953
23963
  _illegalBy: {
23954
- message: $.message,
23964
+ message: H.message,
23955
23965
  index: Mt,
23956
23966
  context: V.slice(Mt - 100, Mt + 100),
23957
- mode: $.mode,
23967
+ mode: H.mode,
23958
23968
  resultSoFar: ir
23959
23969
  },
23960
- _emitter: Re
23970
+ _emitter: Oe
23961
23971
  };
23962
23972
  if (ke)
23963
23973
  return {
23964
- language: L,
23974
+ language: B,
23965
23975
  value: je(V),
23966
23976
  illegal: !1,
23967
23977
  relevance: 0,
23968
- errorRaised: $,
23969
- _emitter: Re,
23978
+ errorRaised: H,
23979
+ _emitter: Oe,
23970
23980
  _top: ne
23971
23981
  };
23972
- throw $;
23982
+ throw H;
23973
23983
  }
23974
23984
  }
23975
- function tr(L) {
23985
+ function tr(B) {
23976
23986
  const V = {
23977
- value: je(L),
23987
+ value: je(B),
23978
23988
  illegal: !1,
23979
23989
  relevance: 0,
23980
23990
  _top: K,
23981
23991
  _emitter: new G.__emitter(G)
23982
23992
  };
23983
- return V._emitter.addText(L), V;
23993
+ return V._emitter.addText(B), V;
23984
23994
  }
23985
- function nr(L, V) {
23995
+ function nr(B, V) {
23986
23996
  V = V || G.languages || Object.keys(R);
23987
- const ue = tr(L), Ee = V.filter(wt).filter(Ti).map(
23988
- (Ve) => Jt(Ve, L, !1)
23997
+ const ue = tr(B), Ee = V.filter(wt).filter(Ti).map(
23998
+ (Ve) => Jt(Ve, B, !1)
23989
23999
  );
23990
24000
  Ee.unshift(ue);
23991
24001
  const Ce = Ee.sort((Ve, st) => {
@@ -24000,40 +24010,40 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ce = L, Ee = V), ue =
24000
24010
  }), [it, kt] = Ce, kn = it;
24001
24011
  return kn.secondBest = kt, kn;
24002
24012
  }
24003
- function js(L, V, ue) {
24004
- const Ee = V && U[V] || ue;
24005
- L.classList.add("hljs"), L.classList.add(`language-${Ee}`);
24013
+ function js(B, V, ue) {
24014
+ const Ee = V && $[V] || ue;
24015
+ B.classList.add("hljs"), B.classList.add(`language-${Ee}`);
24006
24016
  }
24007
- function rr(L) {
24017
+ function rr(B) {
24008
24018
  let V = null;
24009
- const ue = Ae(L);
24019
+ const ue = Ie(B);
24010
24020
  if (J(ue)) return;
24011
24021
  if (wn(
24012
24022
  "before:highlightElement",
24013
- { el: L, language: ue }
24014
- ), L.dataset.highlighted) {
24015
- console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", L);
24023
+ { el: B, language: ue }
24024
+ ), B.dataset.highlighted) {
24025
+ console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", B);
24016
24026
  return;
24017
24027
  }
24018
- if (L.children.length > 0 && (G.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(L)), G.throwUnescapedHTML))
24028
+ if (B.children.length > 0 && (G.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(B)), G.throwUnescapedHTML))
24019
24029
  throw new xt(
24020
24030
  "One of your code blocks includes unescaped HTML.",
24021
- L.innerHTML
24031
+ B.innerHTML
24022
24032
  );
24023
- V = L;
24033
+ V = B;
24024
24034
  const Ee = V.textContent, Ce = ue ? ve(Ee, { language: ue, ignoreIllegals: !0 }) : nr(Ee);
24025
- L.innerHTML = Ce.value, L.dataset.highlighted = "yes", js(L, ue, Ce.language), L.result = {
24035
+ B.innerHTML = Ce.value, B.dataset.highlighted = "yes", js(B, ue, Ce.language), B.result = {
24026
24036
  language: Ce.language,
24027
24037
  // TODO: remove with version 11.0
24028
24038
  re: Ce.relevance,
24029
24039
  relevance: Ce.relevance
24030
- }, Ce.secondBest && (L.secondBest = {
24040
+ }, Ce.secondBest && (B.secondBest = {
24031
24041
  language: Ce.secondBest.language,
24032
24042
  relevance: Ce.secondBest.relevance
24033
- }), wn("after:highlightElement", { el: L, result: Ce, text: Ee });
24043
+ }), wn("after:highlightElement", { el: B, result: Ce, text: Ee });
24034
24044
  }
24035
- function Vs(L) {
24036
- G = xi(G, L);
24045
+ function Vs(B) {
24046
+ G = xi(G, B);
24037
24047
  }
24038
24048
  const Ys = () => {
24039
24049
  xn(), C("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
@@ -24043,76 +24053,76 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ce = L, Ee = V), ue =
24043
24053
  }
24044
24054
  let Si = !1;
24045
24055
  function xn() {
24046
- function L() {
24056
+ function B() {
24047
24057
  xn();
24048
24058
  }
24049
24059
  if (document.readyState === "loading") {
24050
- Si || window.addEventListener("DOMContentLoaded", L, !1), Si = !0;
24060
+ Si || window.addEventListener("DOMContentLoaded", B, !1), Si = !0;
24051
24061
  return;
24052
24062
  }
24053
24063
  document.querySelectorAll(G.cssSelector).forEach(rr);
24054
24064
  }
24055
- function Zs(L, V) {
24065
+ function Zs(B, V) {
24056
24066
  let ue = null;
24057
24067
  try {
24058
- ue = V(E);
24068
+ ue = V(y);
24059
24069
  } catch (Ee) {
24060
- if (gt("Language definition for '{}' could not be registered.".replace("{}", L)), ke)
24070
+ if (gt("Language definition for '{}' could not be registered.".replace("{}", B)), ke)
24061
24071
  gt(Ee);
24062
24072
  else
24063
24073
  throw Ee;
24064
24074
  ue = K;
24065
24075
  }
24066
- ue.name || (ue.name = L), R[L] = ue, ue.rawDefinition = V.bind(null, E), ue.aliases && vi(ue.aliases, { languageName: L });
24076
+ ue.name || (ue.name = B), R[B] = ue, ue.rawDefinition = V.bind(null, y), ue.aliases && vi(ue.aliases, { languageName: B });
24067
24077
  }
24068
- function Qs(L) {
24069
- delete R[L];
24070
- for (const V of Object.keys(U))
24071
- U[V] === L && delete U[V];
24078
+ function Qs(B) {
24079
+ delete R[B];
24080
+ for (const V of Object.keys($))
24081
+ $[V] === B && delete $[V];
24072
24082
  }
24073
24083
  function Js() {
24074
24084
  return Object.keys(R);
24075
24085
  }
24076
- function wt(L) {
24077
- return L = (L || "").toLowerCase(), R[L] || R[U[L]];
24086
+ function wt(B) {
24087
+ return B = (B || "").toLowerCase(), R[B] || R[$[B]];
24078
24088
  }
24079
- function vi(L, { languageName: V }) {
24080
- typeof L == "string" && (L = [L]), L.forEach((ue) => {
24081
- U[ue.toLowerCase()] = V;
24089
+ function vi(B, { languageName: V }) {
24090
+ typeof B == "string" && (B = [B]), B.forEach((ue) => {
24091
+ $[ue.toLowerCase()] = V;
24082
24092
  });
24083
24093
  }
24084
- function Ti(L) {
24085
- const V = wt(L);
24094
+ function Ti(B) {
24095
+ const V = wt(B);
24086
24096
  return V && !V.disableAutodetect;
24087
24097
  }
24088
- function el(L) {
24089
- L["before:highlightBlock"] && !L["before:highlightElement"] && (L["before:highlightElement"] = (V) => {
24090
- L["before:highlightBlock"](
24098
+ function el(B) {
24099
+ B["before:highlightBlock"] && !B["before:highlightElement"] && (B["before:highlightElement"] = (V) => {
24100
+ B["before:highlightBlock"](
24091
24101
  Object.assign({ block: V.el }, V)
24092
24102
  );
24093
- }), L["after:highlightBlock"] && !L["after:highlightElement"] && (L["after:highlightElement"] = (V) => {
24094
- L["after:highlightBlock"](
24103
+ }), B["after:highlightBlock"] && !B["after:highlightElement"] && (B["after:highlightElement"] = (V) => {
24104
+ B["after:highlightBlock"](
24095
24105
  Object.assign({ block: V.el }, V)
24096
24106
  );
24097
24107
  });
24098
24108
  }
24099
- function tl(L) {
24100
- el(L), te.push(L);
24109
+ function tl(B) {
24110
+ el(B), te.push(B);
24101
24111
  }
24102
- function nl(L) {
24103
- const V = te.indexOf(L);
24112
+ function nl(B) {
24113
+ const V = te.indexOf(B);
24104
24114
  V !== -1 && te.splice(V, 1);
24105
24115
  }
24106
- function wn(L, V) {
24107
- const ue = L;
24116
+ function wn(B, V) {
24117
+ const ue = B;
24108
24118
  te.forEach(function(Ee) {
24109
24119
  Ee[ue] && Ee[ue](V);
24110
24120
  });
24111
24121
  }
24112
- function rl(L) {
24113
- return C("10.7.0", "highlightBlock will be removed entirely in v12.0"), C("10.7.0", "Please use highlightElement now."), rr(L);
24122
+ function rl(B) {
24123
+ return C("10.7.0", "highlightBlock will be removed entirely in v12.0"), C("10.7.0", "Please use highlightElement now."), rr(B);
24114
24124
  }
24115
- Object.assign(E, {
24125
+ Object.assign(y, {
24116
24126
  highlight: ve,
24117
24127
  highlightAuto: nr,
24118
24128
  highlightAll: xn,
@@ -24131,20 +24141,20 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ce = L, Ee = V), ue =
24131
24141
  inherit: xi,
24132
24142
  addPlugin: tl,
24133
24143
  removePlugin: nl
24134
- }), E.debugMode = function() {
24144
+ }), y.debugMode = function() {
24135
24145
  ke = !1;
24136
- }, E.safeMode = function() {
24146
+ }, y.safeMode = function() {
24137
24147
  ke = !0;
24138
- }, E.versionString = Fe, E.regex = {
24139
- concat: m,
24148
+ }, y.versionString = Fe, y.regex = {
24149
+ concat: E,
24140
24150
  lookahead: p,
24141
- either: b,
24151
+ either: m,
24142
24152
  optional: g,
24143
24153
  anyNumberOfTimes: f
24144
24154
  };
24145
- for (const L in Ie)
24146
- typeof Ie[L] == "object" && e(Ie[L]);
24147
- return Object.assign(E, Ie), E;
24155
+ for (const B in Re)
24156
+ typeof Re[B] == "object" && e(Re[B]);
24157
+ return Object.assign(y, Re), y;
24148
24158
  }, Ht = ki({});
24149
24159
  return Ht.newInstance = () => ki({}), Pr = Ht, Ht.HighlightJS = Ht, Ht.default = Ht, Pr;
24150
24160
  }
@@ -24173,19 +24183,19 @@ function xb(e) {
24173
24183
  throw new Error("Could not highlight with `Highlight.js`", {
24174
24184
  cause: f.errorRaised
24175
24185
  });
24176
- const g = f._emitter.root, m = (
24186
+ const g = f._emitter.root, E = (
24177
24187
  /** @type {RootData} */
24178
24188
  g.data
24179
24189
  );
24180
- return m.language = f.language, m.relevance = f.relevance, g;
24190
+ return E.language = f.language, E.relevance = f.relevance, g;
24181
24191
  }
24182
24192
  function r(l, c) {
24183
24193
  const u = (c || Xo).subset || i();
24184
24194
  let p = -1, f = 0, g;
24185
24195
  for (; ++p < u.length; ) {
24186
- const m = u[p];
24187
- if (!t.getLanguage(m)) continue;
24188
- const _ = n(m, l, c);
24196
+ const E = u[p];
24197
+ if (!t.getLanguage(E)) continue;
24198
+ const _ = n(E, l, c);
24189
24199
  _.data && _.data.relevance !== void 0 && _.data.relevance > f && (f = _.data.relevance, g = _);
24190
24200
  }
24191
24201
  return g || {
@@ -24344,22 +24354,22 @@ function Sb(e) {
24344
24354
  Jn(d, "element", function(p, f, g) {
24345
24355
  if (p.tagName !== "code" || !g || g.type !== "element" || g.tagName !== "pre")
24346
24356
  return;
24347
- const m = vb(p);
24348
- if (m === !1 || !m && !r || m && a && a.includes(m))
24357
+ const E = vb(p);
24358
+ if (E === !1 || !E && !r || E && a && a.includes(E))
24349
24359
  return;
24350
24360
  Array.isArray(p.properties.className) || (p.properties.className = []), p.properties.className.includes(l) || p.properties.className.unshift(l);
24351
24361
  const _ = Wh(p, { whitespace: "pre" });
24352
- let b;
24362
+ let m;
24353
24363
  try {
24354
- b = m ? c.highlight(m, _, { prefix: o }) : c.highlightAuto(_, { prefix: o, subset: s });
24364
+ m = E ? c.highlight(E, _, { prefix: o }) : c.highlightAuto(_, { prefix: o, subset: s });
24355
24365
  } catch (w) {
24356
24366
  const x = (
24357
24367
  /** @type {Error} */
24358
24368
  w
24359
24369
  );
24360
- if (m && /Unknown language/.test(x.message)) {
24370
+ if (E && /Unknown language/.test(x.message)) {
24361
24371
  u.message(
24362
- "Cannot highlight as `" + m + "`, it’s not registered",
24372
+ "Cannot highlight as `" + E + "`, it’s not registered",
24363
24373
  {
24364
24374
  ancestors: [g, p],
24365
24375
  cause: x,
@@ -24372,8 +24382,8 @@ function Sb(e) {
24372
24382
  }
24373
24383
  throw x;
24374
24384
  }
24375
- !m && b.data && b.data.language && p.properties.className.push("language-" + b.data.language), b.children.length > 0 && (p.children = /** @type {Array<ElementContent>} */
24376
- b.children);
24385
+ !E && m.data && m.data.language && p.properties.className.push("language-" + m.data.language), m.children.length > 0 && (p.children = /** @type {Array<ElementContent>} */
24386
+ m.children);
24377
24387
  });
24378
24388
  };
24379
24389
  }
@@ -24495,18 +24505,18 @@ function Db() {
24495
24505
  }));
24496
24506
  }
24497
24507
  function Ws({ resource: e, messageId: t, isStreaming: n = !1, followLatest: r = !1, onCallTool: i, onTriggerIntent: a, onSubmitPrompt: o, onNotify: s }) {
24498
- const l = we(null), c = we(null), d = we(null), u = we(null), p = we(0), f = we(0), g = we(0), m = we(0), _ = we(!1), b = we(0), w = we(0), x = we(null), v = we(null), O = we(0), [k, M] = et(!0), F = Ct(() => kl(e), [e]), H = Ct(() => {
24499
- const q = F["initial-render-data"];
24508
+ const l = we(null), c = we(null), d = we(null), u = we(null), p = we(0), f = we(0), g = we(0), E = we(0), _ = we(!1), m = we(0), w = we(0), x = we(null), v = we(null), O = we(0), [k, M] = Xe(!0), P = Ct(() => kl(e), [e]), U = Ct(() => {
24509
+ const q = P["initial-render-data"];
24500
24510
  return q && typeof q == "object" ? q : Cb;
24501
- }, [F]), S = Ct(() => {
24502
- const q = F["fallback-text"];
24511
+ }, [P]), S = Ct(() => {
24512
+ const q = P["fallback-text"];
24503
24513
  return typeof q == "string" ? q : "";
24504
- }, [F]), B = e.mimeType || "", z = !!e.script || /\bremote-dom\b/i.test(B) && !!e.text, I = z, A = B === "text/uri-list", N = A && typeof e.text == "string" && e.text.split(`
24505
- `).map((q) => q.trim()).find(Boolean) || null, W = Ct(() => Mb(), []), ce = Ct(() => !I && !A && e.text ? n && !e.text.trim() ? "" : _l(e.text, H, t) : "", [e.text, H, t, I, A, n]), Z = Oe(() => {
24514
+ }, [P]), D = e.mimeType || "", z = !!e.script || /\bremote-dom\b/i.test(D) && !!e.text, I = z, A = D === "text/uri-list", N = A && typeof e.text == "string" && e.text.split(`
24515
+ `).map((q) => q.trim()).find(Boolean) || null, W = Ct(() => Mb(), []), ce = Ct(() => !I && !A && e.text ? n && !e.text.trim() ? "" : _l(e.text, U, t) : "", [e.text, U, t, I, A, n]), Z = Ae(() => {
24506
24516
  var le;
24507
24517
  if (!l.current || I)
24508
24518
  return;
24509
- (le = u.current) == null || le.destroy(), p.current = 0, f.current = 0, g.current = 0, m.current = 0, _.current = !1, b.current = 0, w.current = 0, O.current = 0, x.current && (clearTimeout(x.current), x.current = null), v.current && (clearTimeout(v.current), v.current = null), A && W && (v.current = setTimeout(() => {
24519
+ (le = u.current) == null || le.destroy(), p.current = 0, f.current = 0, g.current = 0, E.current = 0, _.current = !1, m.current = 0, w.current = 0, O.current = 0, x.current && (clearTimeout(x.current), x.current = null), v.current && (clearTimeout(v.current), v.current = null), A && W && (v.current = setTimeout(() => {
24510
24520
  _.current || (_.current = !0);
24511
24521
  }, Ob));
24512
24522
  let q = null;
@@ -24529,9 +24539,9 @@ function Ws({ resource: e, messageId: t, isStreaming: n = !1, followLatest: r =
24529
24539
  M(!1);
24530
24540
  return;
24531
24541
  }
24532
- M(!1), q.request("initialize", H).catch(() => {
24542
+ M(!1), q.request("initialize", U).catch(() => {
24533
24543
  }), q.notify("mcp-ui-request-size", { force: !0 });
24534
- }, [H, I, A, W, i, a, o, s]);
24544
+ }, [U, I, A, W, i, a, o, s]);
24535
24545
  return We(() => {
24536
24546
  if (I)
24537
24547
  return;
@@ -24539,13 +24549,13 @@ function Ws({ resource: e, messageId: t, isStreaming: n = !1, followLatest: r =
24539
24549
  const h = le.data;
24540
24550
  if (!h || l.current && le.source !== l.current.contentWindow)
24541
24551
  return;
24542
- const X = typeof h.method == "string" ? h.method : "", fe = typeof h.type == "string" ? h.type : "", ge = h.params && typeof h.params == "object" ? h.params : {}, Me = h.payload && typeof h.payload == "object" ? h.payload : ge, Be = X === "ui/notifications/size-changed" || fe === "ui-size-change", Ze = (Ie) => {
24543
- if (!l.current || Ie === void 0 || Ie === null)
24552
+ const X = typeof h.method == "string" ? h.method : "", fe = typeof h.type == "string" ? h.type : "", ge = h.params && typeof h.params == "object" ? h.params : {}, Me = h.payload && typeof h.payload == "object" ? h.payload : ge, Be = X === "ui/notifications/size-changed" || fe === "ui-size-change", Qe = (Re) => {
24553
+ if (!l.current || Re === void 0 || Re === null)
24544
24554
  return;
24545
- const Qe = Number(Ie);
24546
- if (!Number.isFinite(Qe) || Qe <= 0)
24555
+ const Je = Number(Re);
24556
+ if (!Number.isFinite(Je) || Je <= 0)
24547
24557
  return;
24548
- const ft = Math.min(Ab, Math.max(1, Math.ceil(Qe))), pt = ($e) => {
24558
+ const ft = Math.min(Ab, Math.max(1, Math.ceil(Je))), pt = ($e) => {
24549
24559
  l.current && $e !== p.current && (f.current = p.current, p.current = $e, A && W && g.current === 0 && (g.current = $e), l.current.style.height = `${$e}px`, l.current.style.minHeight = "", l.current.style.maxHeight = "", d.current && (d.current.style.height = `${$e}px`, d.current.style.minHeight = "", d.current.style.maxHeight = "", d.current.style.flexShrink = "0", d.current.style.flexGrow = "0"));
24550
24560
  };
24551
24561
  if (!A || !W) {
@@ -24558,16 +24568,16 @@ function Ws({ resource: e, messageId: t, isStreaming: n = !1, followLatest: r =
24558
24568
  if (Math.abs(tt - p.current) < Pn)
24559
24569
  return;
24560
24570
  const qe = Date.now();
24561
- if (m.current += 1, m.current > Ib && (_.current || (_.current = !0, w.current = 0, x.current && (clearTimeout(x.current), x.current = null))), b.current > 0 && qe - b.current < Zo) {
24571
+ if (E.current += 1, E.current > Ib && (_.current || (_.current = !0, w.current = 0, x.current && (clearTimeout(x.current), x.current = null))), m.current > 0 && qe - m.current < Zo) {
24562
24572
  if (w.current = Math.max(w.current || 0, tt), !x.current) {
24563
- const $e = Math.max(0, Zo - (qe - b.current));
24573
+ const $e = Math.max(0, Zo - (qe - m.current));
24564
24574
  x.current = setTimeout(() => {
24565
24575
  x.current = null;
24566
24576
  const at = w.current;
24567
24577
  if (w.current = 0, !at || _.current && at >= p.current || Math.abs(at - p.current) < Pn)
24568
24578
  return;
24569
24579
  const Qt = at + Pn;
24570
- pt(Qt), b.current = Date.now(), _.current = !0;
24580
+ pt(Qt), m.current = Date.now(), _.current = !0;
24571
24581
  }, $e);
24572
24582
  }
24573
24583
  return;
@@ -24575,7 +24585,7 @@ function Ws({ resource: e, messageId: t, isStreaming: n = !1, followLatest: r =
24575
24585
  if (_.current && tt >= p.current)
24576
24586
  return;
24577
24587
  const nt = tt + Pn;
24578
- pt(nt), b.current = qe;
24588
+ pt(nt), m.current = qe;
24579
24589
  };
24580
24590
  if (!(!Be && t && h.messageId !== t))
24581
24591
  switch (X) {
@@ -24592,10 +24602,10 @@ function Ws({ resource: e, messageId: t, isStreaming: n = !1, followLatest: r =
24592
24602
  a == null || a(ge);
24593
24603
  break;
24594
24604
  case "ui/notifications/size-changed":
24595
- Ze(Me == null ? void 0 : Me.height);
24605
+ Qe(Me == null ? void 0 : Me.height);
24596
24606
  break;
24597
24607
  default:
24598
- fe === "ui-size-change" && Ze(Me == null ? void 0 : Me.height);
24608
+ fe === "ui-size-change" && Qe(Me == null ? void 0 : Me.height);
24599
24609
  break;
24600
24610
  }
24601
24611
  };
@@ -24642,7 +24652,7 @@ function Ws({ resource: e, messageId: t, isStreaming: n = !1, followLatest: r =
24642
24652
  }
24643
24653
  },
24644
24654
  mcpUI: {
24645
- initialRenderData: H,
24655
+ initialRenderData: U,
24646
24656
  callTool: (X, fe) => {
24647
24657
  i && i({ toolName: X, args: fe });
24648
24658
  },
@@ -24666,10 +24676,10 @@ function Ws({ resource: e, messageId: t, isStreaming: n = !1, followLatest: r =
24666
24676
  const q = setTimeout(() => M(!1), 5e3);
24667
24677
  return () => clearTimeout(q);
24668
24678
  }
24669
- }, [I, A, e.script, e.text, H, i, a, o, s]), We(() => () => {
24679
+ }, [I, A, e.script, e.text, U, i, a, o, s]), We(() => () => {
24670
24680
  var q;
24671
24681
  (q = u.current) == null || q.destroy(), u.current = null, x.current && (clearTimeout(x.current), x.current = null), v.current && (clearTimeout(v.current), v.current = null);
24672
- }, []), B === "text/html" || B === "text/uri-list" || z ? (I ? !!e.script || /\bremote-dom\b/i.test(B) && !!e.text : A ? !!N : !!e.text && e.text.trim().length > 0) ? T.jsxs("div", { ref: d, style: Lt.container, children: [I ? T.jsx("div", { ref: c, style: Lt.remoteRoot }) : T.jsx("iframe", { ref: l, src: A ? N ?? void 0 : void 0, srcDoc: A ? void 0 : ce, sandbox: "allow-scripts allow-same-origin allow-forms allow-modals allow-popups allow-popups-to-escape-sandbox allow-downloads allow-pointer-lock allow-orientation-lock allow-presentation allow-top-navigation-by-user-activation allow-storage-access-by-user-activation", scrolling: "no", style: Lt.iframe(k), onLoad: Z }), k && T.jsx("div", { style: Lt.loadingPlaceholder, children: "应用加载中..." })] }) : S ? T.jsx("div", { style: Lt.fallback, children: S }) : T.jsx("div", { style: Lt.fallback, children: "MCP UI 资源内容为空" }) : S ? T.jsx("div", { style: Lt.fallback, children: S }) : null;
24682
+ }, []), D === "text/html" || D === "text/uri-list" || z ? (I ? !!e.script || /\bremote-dom\b/i.test(D) && !!e.text : A ? !!N : !!e.text && e.text.trim().length > 0) ? T.jsxs("div", { ref: d, style: Lt.container, children: [I ? T.jsx("div", { ref: c, style: Lt.remoteRoot }) : T.jsx("iframe", { ref: l, src: A ? N ?? void 0 : void 0, srcDoc: A ? void 0 : ce, sandbox: "allow-scripts allow-same-origin allow-forms allow-modals allow-popups allow-popups-to-escape-sandbox allow-downloads allow-pointer-lock allow-orientation-lock allow-presentation allow-top-navigation-by-user-activation allow-storage-access-by-user-activation", scrolling: "no", style: Lt.iframe(k), onLoad: Z }), k && T.jsx("div", { style: Lt.loadingPlaceholder, children: "应用加载中..." })] }) : S ? T.jsx("div", { style: Lt.fallback, children: S }) : T.jsx("div", { style: Lt.fallback, children: "MCP UI 资源内容为空" }) : S ? T.jsx("div", { style: Lt.fallback, children: S }) : null;
24673
24683
  }
24674
24684
  function Lb(e) {
24675
24685
  if (!e)
@@ -24944,7 +24954,7 @@ const fy = Et("Headphones", [
24944
24954
  overflowY: "auto",
24945
24955
  backgroundColor: "transparent",
24946
24956
  color: "var(--chatkit-text-primary)",
24947
- fontSize: 15,
24957
+ fontSize: 16,
24948
24958
  fontFamily: "inherit",
24949
24959
  lineHeight: 1.5,
24950
24960
  boxSizing: "border-box",
@@ -24969,23 +24979,23 @@ const fy = Et("Headphones", [
24969
24979
  }
24970
24980
  };
24971
24981
  function Zb({ onSend: e, disabled: t = !1, placeholder: n = "输入消息..." }) {
24972
- const [r, i] = et(""), [a, o] = et(!1), s = we(null), l = we(null);
24982
+ const [r, i] = Xe(""), [a, o] = Xe(!1), s = we(null), l = we(null);
24973
24983
  We(() => {
24974
24984
  const f = s.current;
24975
24985
  if (!f)
24976
24986
  return;
24977
24987
  const g = requestAnimationFrame(() => {
24978
- const m = f.scrollHeight;
24979
- l.current === null && (l.current = m), o(m > (l.current ?? 0));
24988
+ const E = f.scrollHeight;
24989
+ l.current === null && (l.current = E), o(E > (l.current ?? 0));
24980
24990
  });
24981
24991
  return () => cancelAnimationFrame(g);
24982
24992
  }, [r]);
24983
- const c = Oe(() => {
24993
+ const c = Ae(() => {
24984
24994
  const f = r.trim();
24985
24995
  !f || t || (e(f), i(""), s.current && s.current.focus());
24986
- }, [r, t, e]), d = Oe((f) => {
24996
+ }, [r, t, e]), d = Ae((f) => {
24987
24997
  f.preventDefault(), c();
24988
- }, [c]), u = Oe((f) => {
24998
+ }, [c]), u = Ae((f) => {
24989
24999
  f.key === "Enter" && !f.shiftKey && (f.preventDefault(), c());
24990
25000
  }, [c]), p = r.trim().length > 0 && !t;
24991
25001
  return T.jsx("form", { onSubmit: d, style: bt.form, children: T.jsx("div", { style: bt.pill, children: T.jsxs("div", { style: bt.grid(a), children: [T.jsx("div", { style: bt.textareaCell(a), children: T.jsx("textarea", { ref: s, value: r, onChange: (f) => i(f.target.value), onKeyDown: u, placeholder: n || "向 AI 助手提问...", rows: 1, style: bt.textarea(jb) }) }), T.jsx("div", { style: bt.actionsCell(a), children: T.jsx("button", { type: "button", "aria-label": "发送消息", disabled: !p, onClick: (f) => {
@@ -25195,7 +25205,7 @@ const Bt = {
25195
25205
  })
25196
25206
  };
25197
25207
  function by({ open: e, title: t = "需要您的确认", body: n = "请确认是否继续此操作。", acceptLabel: r = "同意", rejectLabel: i = "拒绝", onAccept: a, onReject: o }) {
25198
- const s = Oe((l) => {
25208
+ const s = Ae((l) => {
25199
25209
  l.target === l.currentTarget && o();
25200
25210
  }, [o]);
25201
25211
  return We(() => {
@@ -25287,7 +25297,7 @@ const ny = {
25287
25297
  }
25288
25298
  };
25289
25299
  function Ey({ onLoadMore: e, hasMore: t = !0, loading: n = !1 }) {
25290
- const r = we(null), i = Oe(() => {
25300
+ const r = we(null), i = Ae(() => {
25291
25301
  t && !n && e();
25292
25302
  }, [t, n, e]);
25293
25303
  return We(() => {
@@ -25658,7 +25668,7 @@ function ra({ onPin: e, onDelete: t, onPinClick: n, onDeleteClick: r }) {
25658
25668
  }, style: oe.actionBtnDelete, children: [T.jsx(Kb, { size: 14, color: "currentColor" }), "删除"] })] });
25659
25669
  }
25660
25670
  function xy({ open: e, onClose: t, sessions: n, currentSessionId: r, onSelect: i, onDelete: a, onPin: o, title: s = "历史对话" }) {
25661
- const [l, c] = et(null), [d, u] = et(null), [p, f] = et(null), g = we(null), m = n.filter((I) => I.pinned), _ = n.filter((I) => !I.pinned), b = gn.useMemo(() => {
25671
+ const [l, c] = Xe(null), [d, u] = Xe(null), [p, f] = Xe(null), g = we(null), E = n.filter((I) => I.pinned), _ = n.filter((I) => !I.pinned), m = gn.useMemo(() => {
25662
25672
  const I = /* @__PURE__ */ new Map(), A = [..._].sort((N, W) => new Date(W.updatedAt).getTime() - new Date(N.updatedAt).getTime());
25663
25673
  for (const N of A) {
25664
25674
  const W = ry(N.updatedAt || N.createdAt);
@@ -25698,20 +25708,20 @@ function xy({ open: e, onClose: t, sessions: n, currentSessionId: r, onSelect: i
25698
25708
  return;
25699
25709
  const N = A.touches[0].clientX;
25700
25710
  !p || p.id !== I ? f({ id: I, startX: g.current.x, currentX: N }) : f((W) => W ? { ...W, currentX: N } : null);
25701
- }, F = (I) => {
25711
+ }, P = (I) => {
25702
25712
  var A;
25703
25713
  if (((A = g.current) == null ? void 0 : A.id) === I && (g.current = null, (p == null ? void 0 : p.id) === I)) {
25704
25714
  const N = p.currentX - p.startX;
25705
25715
  u(N < -40 ? I : null), f(null);
25706
25716
  }
25707
- }, H = (I, A) => {
25717
+ }, U = (I, A) => {
25708
25718
  v && A.button === 0 && (g.current = { id: I, x: A.clientX }, d && d !== I && u(null));
25709
25719
  }, S = (I, A) => {
25710
25720
  if (!g.current || g.current.id !== I || A.buttons !== 1)
25711
25721
  return;
25712
25722
  const N = A.clientX;
25713
25723
  !p || p.id !== I ? f({ id: I, startX: g.current.x, currentX: N }) : f((W) => W ? { ...W, currentX: N } : null);
25714
- }, B = (I) => {
25724
+ }, D = (I) => {
25715
25725
  var A;
25716
25726
  if (((A = g.current) == null ? void 0 : A.id) === I && (g.current = null, (p == null ? void 0 : p.id) === I)) {
25717
25727
  const N = p.currentX - p.startX;
@@ -25723,7 +25733,7 @@ function xy({ open: e, onClose: t, sessions: n, currentSessionId: r, onSelect: i
25723
25733
  u(I < -40 ? p.id : null), f(null);
25724
25734
  }
25725
25735
  };
25726
- return e ? T.jsxs(T.Fragment, { children: [T.jsx("div", { role: "presentation", style: oe.overlay, onClick: t, onKeyDown: (I) => I.key === "Escape" && t() }), T.jsxs("div", { role: "dialog", "aria-label": s, style: oe.drawer, onClick: (I) => I.stopPropagation(), children: [T.jsxs("div", { style: oe.header, children: [T.jsx("h2", { style: oe.title, children: s }), T.jsx("button", { type: "button", onClick: t, "aria-label": "关闭", style: oe.closeBtn, children: "×" })] }), T.jsx("div", { style: oe.scrollArea, onClick: x, children: n.length === 0 ? T.jsx("div", { style: oe.empty, children: "暂无历史对话" }) : T.jsxs(T.Fragment, { children: [m.length > 0 && T.jsxs("div", { style: oe.section, children: [T.jsx(na, { children: "置顶" }), m.map((I) => {
25736
+ return e ? T.jsxs(T.Fragment, { children: [T.jsx("div", { role: "presentation", style: oe.overlay, onClick: t, onKeyDown: (I) => I.key === "Escape" && t() }), T.jsxs("div", { role: "dialog", "aria-label": s, style: oe.drawer, onClick: (I) => I.stopPropagation(), children: [T.jsxs("div", { style: oe.header, children: [T.jsx("h2", { style: oe.title, children: s }), T.jsx("button", { type: "button", onClick: t, "aria-label": "关闭", style: oe.closeBtn, children: "×" })] }), T.jsx("div", { style: oe.scrollArea, onClick: x, children: n.length === 0 ? T.jsx("div", { style: oe.empty, children: "暂无历史对话" }) : T.jsxs(T.Fragment, { children: [E.length > 0 && T.jsxs("div", { style: oe.section, children: [T.jsx(na, { children: "置顶" }), E.map((I) => {
25727
25737
  const A = O(I.id), N = r === I.id;
25728
25738
  return T.jsxs("div", { style: oe.rowWrap, children: [T.jsx("div", { style: oe.actionStrip, children: T.jsx(ra, { onPin: o, onDelete: a, onPinClick: () => {
25729
25739
  o == null || o(I.id), u(null);
@@ -25734,10 +25744,10 @@ function xy({ open: e, onClose: t, sessions: n, currentSessionId: r, onSelect: i
25734
25744
  }, style: oe.rowContentPinned(A, N), children: [T.jsxs("span", { style: oe.rowTitle, children: [T.jsx("span", { style: oe.rowTitleIcon, children: T.jsx(Gs, { size: 14 }) }), I.title || "新对话"] }), v && T.jsx("button", { type: "button", onClick: (W) => {
25735
25745
  W.stopPropagation(), u(d === I.id ? null : I.id);
25736
25746
  }, style: oe.menuTriggerBtn, "aria-label": "更多", children: "⋮" })] })] }, I.id);
25737
- })] }), b.map(([I, A]) => T.jsxs("div", { style: oe.section, children: [T.jsx(na, { children: I }), A.map((N) => {
25747
+ })] }), m.map(([I, A]) => T.jsxs("div", { style: oe.section, children: [T.jsx(na, { children: I }), A.map((N) => {
25738
25748
  var Z;
25739
25749
  const W = O(N.id), ce = r === N.id;
25740
- return T.jsxs("div", { style: oe.rowWrap, onTouchStart: (ee) => k(N.id, ee), onTouchMove: (ee) => M(N.id, ee), onTouchEnd: () => F(N.id), onMouseDown: (ee) => H(N.id, ee), onMouseMove: (ee) => S(N.id, ee), onMouseUp: () => B(N.id), onMouseLeave: z, children: [T.jsx("div", { style: oe.actionStrip, children: T.jsx(ra, { onPin: o, onDelete: a, onPinClick: () => {
25750
+ return T.jsxs("div", { style: oe.rowWrap, onTouchStart: (ee) => k(N.id, ee), onTouchMove: (ee) => M(N.id, ee), onTouchEnd: () => P(N.id), onMouseDown: (ee) => U(N.id, ee), onMouseMove: (ee) => S(N.id, ee), onMouseUp: () => D(N.id), onMouseLeave: z, children: [T.jsx("div", { style: oe.actionStrip, children: T.jsx(ra, { onPin: o, onDelete: a, onPinClick: () => {
25741
25751
  o == null || o(N.id), u(null);
25742
25752
  }, onDeleteClick: () => {
25743
25753
  u(null), c(N.id);
@@ -25757,7 +25767,7 @@ function xy({ open: e, onClose: t, sessions: n, currentSessionId: r, onSelect: i
25757
25767
  }
25758
25768
  const qs = sa(null);
25759
25769
  function wy({ children: e, defaultMode: t = "light", customVariables: n = {} }) {
25760
- const [r, i] = et(t), [a, o] = et(n), s = Ct(() => r === "auto" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : r, [r]);
25770
+ const [r, i] = Xe(t), [a, o] = Xe(n), s = Ct(() => r === "auto" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : r, [r]);
25761
25771
  We(() => {
25762
25772
  if (r !== "auto" || typeof window > "u" || !window.matchMedia)
25763
25773
  return;