@clevertask/scribe 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,17 +5,17 @@ import { c as Hr, t as Nr, C as Ks, f as Or, g as Xo, s as Pr, m as Yo, a as Zo,
5
5
  import { S as Zr, a as Qr } from "../../../index-V-gN11Y9.js";
6
6
  import Jr from "./extension-selectedText.js";
7
7
  import ei from "./slashCommand/renderItems.js";
8
- import { getSuggestionItems as ai } from "./slashCommand/items.js";
9
- import ti from "./emoji/suggest.js";
10
- import { ScribeTableOfContents as oi } from "./tableOfContents.js";
11
- function si(a = {}) {
8
+ import { getSuggestionItems as ai, getSlashCommandContext as ti } from "./slashCommand/items.js";
9
+ import oi from "./emoji/suggest.js";
10
+ import { ScribeTableOfContents as si } from "./tableOfContents.js";
11
+ function ni(a = {}) {
12
12
  return new Be({
13
13
  view(e) {
14
- return new ni(e, a);
14
+ return new ri(e, a);
15
15
  }
16
16
  });
17
17
  }
18
- class ni {
18
+ class ri {
19
19
  constructor(e, t) {
20
20
  var o;
21
21
  this.editorView = e, this.cursorPos = null, this.element = null, this.timeout = -1, this.width = (o = t.width) !== null && o !== void 0 ? o : 1, this.color = t.color === !1 ? void 0 : t.color || "black", this.class = t.class, this.handlers = ["dragover", "dragend", "drop", "dragleave"].map((s) => {
@@ -128,7 +128,7 @@ class J extends Ca {
128
128
  */
129
129
  static valid(e) {
130
130
  let t = e.parent;
131
- if (t.inlineContent || !ri(e) || !ii(e))
131
+ if (t.inlineContent || !ii(e) || !li(e))
132
132
  return !1;
133
133
  let o = t.type.spec.allowGapCursor;
134
134
  if (o != null)
@@ -192,7 +192,7 @@ class ko {
192
192
  function Xs(a) {
193
193
  return a.isAtom || a.spec.isolating || a.spec.createGapCursor;
194
194
  }
195
- function ri(a) {
195
+ function ii(a) {
196
196
  for (let e = a.depth; e >= 0; e--) {
197
197
  let t = a.index(e), o = a.node(e);
198
198
  if (t == 0) {
@@ -209,7 +209,7 @@ function ri(a) {
209
209
  }
210
210
  return !0;
211
211
  }
212
- function ii(a) {
212
+ function li(a) {
213
213
  for (let e = a.depth; e >= 0; e--) {
214
214
  let t = a.indexAfter(e), o = a.node(e);
215
215
  if (t == o.childCount) {
@@ -226,20 +226,20 @@ function ii(a) {
226
226
  }
227
227
  return !0;
228
228
  }
229
- function li() {
229
+ function pi() {
230
230
  return new Be({
231
231
  props: {
232
- decorations: ui,
232
+ decorations: di,
233
233
  createSelectionBetween(a, e, t) {
234
234
  return e.pos == t.pos && J.valid(t) ? new J(t) : null;
235
235
  },
236
- handleClick: mi,
237
- handleKeyDown: pi,
238
- handleDOMEvents: { beforeinput: ci }
236
+ handleClick: ci,
237
+ handleKeyDown: mi,
238
+ handleDOMEvents: { beforeinput: ui }
239
239
  }
240
240
  });
241
241
  }
242
- const pi = Dr({
242
+ const mi = Dr({
243
243
  ArrowLeft: Oa("horiz", -1),
244
244
  ArrowRight: Oa("horiz", 1),
245
245
  ArrowUp: Oa("vert", -1),
@@ -258,7 +258,7 @@ function Oa(a, e) {
258
258
  return u ? (s && s(o.tr.setSelection(new J(u))), !0) : !1;
259
259
  };
260
260
  }
261
- function mi(a, e, t) {
261
+ function ci(a, e, t) {
262
262
  if (!a || !a.editable)
263
263
  return !1;
264
264
  let o = a.state.doc.resolve(e);
@@ -267,7 +267,7 @@ function mi(a, e, t) {
267
267
  let s = a.posAtCoords({ left: t.clientX, top: t.clientY });
268
268
  return s && s.inside > -1 && vo.isSelectable(a.state.doc.nodeAt(s.inside)) ? !1 : (a.dispatch(a.state.tr.setSelection(new J(o))), !0);
269
269
  }
270
- function ci(a, e) {
270
+ function ui(a, e) {
271
271
  if (e.inputType != "insertCompositionText" || !(a.state.selection instanceof J))
272
272
  return !1;
273
273
  let { $from: t } = a.state.selection, o = t.parent.contentMatchAt(t.index()).findWrapping(a.state.schema.nodes.text);
@@ -279,7 +279,7 @@ function ci(a, e) {
279
279
  let n = a.state.tr.replace(t.pos, t.pos, new Ps(s, 0, 0));
280
280
  return n.setSelection(Ye.near(n.doc.resolve(t.pos + 1))), a.dispatch(n), !1;
281
281
  }
282
- function ui(a) {
282
+ function di(a) {
283
283
  if (!(a.selection instanceof J))
284
284
  return null;
285
285
  let e = document.createElement("div");
@@ -294,7 +294,7 @@ le.prototype.prepend = function(e) {
294
294
  return e.length ? le.from(e).append(this) : this;
295
295
  };
296
296
  le.prototype.appendInner = function(e) {
297
- return new di(this, e);
297
+ return new gi(this, e);
298
298
  };
299
299
  le.prototype.slice = function(e, t) {
300
300
  return e === void 0 && (e = 0), t === void 0 && (t = this.length), e >= t ? le.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, t));
@@ -349,7 +349,7 @@ var Ys = /* @__PURE__ */ (function(a) {
349
349
  }, Object.defineProperties(e.prototype, t), e;
350
350
  })(le);
351
351
  le.empty = new Ys([]);
352
- var di = /* @__PURE__ */ (function(a) {
352
+ var gi = /* @__PURE__ */ (function(a) {
353
353
  function e(t, o) {
354
354
  a.call(this), this.left = t, this.right = o, this.length = t.length + o.length, this.depth = Math.max(t.depth, o.depth) + 1;
355
355
  }
@@ -382,7 +382,7 @@ var di = /* @__PURE__ */ (function(a) {
382
382
  return this.left.depth >= Math.max(this.right.depth, o.depth) + 1 ? new e(this.left, new e(this.right, o)) : new e(this, o);
383
383
  }, e;
384
384
  })(le);
385
- const gi = 500;
385
+ const hi = 500;
386
386
  class xe {
387
387
  constructor(e, t) {
388
388
  this.items = e, this.eventCount = t;
@@ -424,7 +424,7 @@ class xe {
424
424
  (k = m && m.merge(b)) && (b = k, g ? n.pop() : l = l.slice(0, l.length - 1)), n.push(b), t && (i++, t = void 0), s || (m = b);
425
425
  }
426
426
  let u = i - o.depth;
427
- return u > fi && (l = hi(l, u), i -= u), new xe(l.append(n), i);
427
+ return u > vi && (l = fi(l, u), i -= u), new xe(l.append(n), i);
428
428
  }
429
429
  remapping(e, t) {
430
430
  let o = new wr();
@@ -464,7 +464,7 @@ class xe {
464
464
  for (let b = t; b < i; b++)
465
465
  u.push(new Ee(n.maps[b]));
466
466
  let g = this.items.slice(0, s).append(u).append(o), h = new xe(g, l);
467
- return h.emptyItemCount() > gi && (h = h.compress(this.items.length - o.length)), h;
467
+ return h.emptyItemCount() > hi && (h = h.compress(this.items.length - o.length)), h;
468
468
  }
469
469
  emptyItemCount() {
470
470
  let e = 0;
@@ -496,7 +496,7 @@ class xe {
496
496
  }
497
497
  }
498
498
  xe.empty = new xe(le.empty, 0);
499
- function hi(a, e) {
499
+ function fi(a, e) {
500
500
  let t;
501
501
  return a.forEach((o, s) => {
502
502
  if (o.selection && e-- == 0)
@@ -520,23 +520,23 @@ class Ke {
520
520
  this.done = e, this.undone = t, this.prevRanges = o, this.prevTime = s, this.prevComposition = n;
521
521
  }
522
522
  }
523
- const fi = 20;
524
- function vi(a, e, t, o) {
523
+ const vi = 20;
524
+ function bi(a, e, t, o) {
525
525
  let s = t.getMeta(na), n;
526
526
  if (s)
527
527
  return s.historyState;
528
- t.getMeta(ki) && (a = new Ke(a.done, a.undone, null, 0, -1));
528
+ t.getMeta(Fi) && (a = new Ke(a.done, a.undone, null, 0, -1));
529
529
  let i = t.getMeta("appendedTransaction");
530
530
  if (t.steps.length == 0)
531
531
  return a;
532
532
  if (i && i.getMeta(na))
533
533
  return i.getMeta(na).redo ? new Ke(a.done.addTransform(t, void 0, o, Ja(e)), a.undone, Jo(t.mapping.maps), a.prevTime, a.prevComposition) : new Ke(a.done, a.undone.addTransform(t, void 0, o, Ja(e)), null, a.prevTime, a.prevComposition);
534
534
  if (t.getMeta("addToHistory") !== !1 && !(i && i.getMeta("addToHistory") === !1)) {
535
- let l = t.getMeta("composition"), m = a.prevTime == 0 || !i && a.prevComposition != l && (a.prevTime < (t.time || 0) - o.newGroupDelay || !bi(t, a.prevRanges)), u = i ? It(a.prevRanges, t.mapping) : Jo(t.mapping.maps);
535
+ let l = t.getMeta("composition"), m = a.prevTime == 0 || !i && a.prevComposition != l && (a.prevTime < (t.time || 0) - o.newGroupDelay || !ji(t, a.prevRanges)), u = i ? It(a.prevRanges, t.mapping) : Jo(t.mapping.maps);
536
536
  return new Ke(a.done.addTransform(t, m ? e.selection.getBookmark() : void 0, o, Ja(e)), xe.empty, u, t.time, l ?? a.prevComposition);
537
537
  } else return (n = t.getMeta("rebased")) ? new Ke(a.done.rebased(t, n), a.undone.rebased(t, n), It(a.prevRanges, t.mapping), a.prevTime, a.prevComposition) : new Ke(a.done.addMaps(t.mapping.maps), a.undone.addMaps(t.mapping.maps), It(a.prevRanges, t.mapping), a.prevTime, a.prevComposition);
538
538
  }
539
- function bi(a, e) {
539
+ function ji(a, e) {
540
540
  if (!e)
541
541
  return !1;
542
542
  if (!a.docChanged)
@@ -563,7 +563,7 @@ function It(a, e) {
563
563
  }
564
564
  return t;
565
565
  }
566
- function ji(a, e, t) {
566
+ function ki(a, e, t) {
567
567
  let o = Ja(e), s = na.get(e).spec.config, n = (t ? a.undone : a.done).popEvent(e, o);
568
568
  if (!n)
569
569
  return null;
@@ -583,8 +583,8 @@ function Ja(a) {
583
583
  }
584
584
  return xt;
585
585
  }
586
- const na = new Me("history"), ki = new Me("closeHistory");
587
- function Fi(a = {}) {
586
+ const na = new Me("history"), Fi = new Me("closeHistory");
587
+ function yi(a = {}) {
588
588
  return a = {
589
589
  depth: a.depth || 100,
590
590
  newGroupDelay: a.newGroupDelay || 500
@@ -595,7 +595,7 @@ function Fi(a = {}) {
595
595
  return new Ke(xe.empty, xe.empty, null, 0, -1);
596
596
  },
597
597
  apply(e, t, o) {
598
- return vi(t, o, e, a);
598
+ return bi(t, o, e, a);
599
599
  }
600
600
  },
601
601
  config: a,
@@ -615,7 +615,7 @@ function Zs(a, e) {
615
615
  if (!s || (a ? s.undone : s.done).eventCount == 0)
616
616
  return !1;
617
617
  if (o) {
618
- let n = ji(s, t, a);
618
+ let n = ki(s, t, a);
619
619
  n && o(e ? n.scrollIntoView() : n);
620
620
  }
621
621
  return !0;
@@ -691,7 +691,7 @@ be.create({
691
691
  ];
692
692
  }
693
693
  });
694
- var yi = be.create({
694
+ var _i = be.create({
695
695
  name: "dropCursor",
696
696
  addOptions() {
697
697
  return {
@@ -701,9 +701,9 @@ var yi = be.create({
701
701
  };
702
702
  },
703
703
  addProseMirrorPlugins() {
704
- return [si(this.options)];
704
+ return [ni(this.options)];
705
705
  }
706
- }), _i = be.create({
706
+ }), Di = be.create({
707
707
  name: "focus",
708
708
  addOptions() {
709
709
  return {
@@ -745,10 +745,10 @@ var yi = be.create({
745
745
  })
746
746
  ];
747
747
  }
748
- }), Di = be.create({
748
+ }), wi = be.create({
749
749
  name: "gapCursor",
750
750
  addProseMirrorPlugins() {
751
- return [li()];
751
+ return [pi()];
752
752
  },
753
753
  extendNodeSchema(a) {
754
754
  var e;
@@ -762,10 +762,10 @@ var yi = be.create({
762
762
  };
763
763
  }
764
764
  }), as = "placeholder";
765
- function wi(a) {
765
+ function Ii(a) {
766
766
  return a.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
767
767
  }
768
- var Ii = be.create({
768
+ var xi = be.create({
769
769
  name: "placeholder",
770
770
  addOptions() {
771
771
  return {
@@ -779,7 +779,7 @@ var Ii = be.create({
779
779
  };
780
780
  },
781
781
  addProseMirrorPlugins() {
782
- const a = this.options.dataAttribute ? `data-${wi(this.options.dataAttribute)}` : `data-${as}`;
782
+ const a = this.options.dataAttribute ? `data-${Ii(this.options.dataAttribute)}` : `data-${as}`;
783
783
  return [
784
784
  new Be({
785
785
  key: new Me("placeholder"),
@@ -840,11 +840,11 @@ be.create({
840
840
  ];
841
841
  }
842
842
  });
843
- var xi = "skipTrailingNode";
843
+ var Ei = "skipTrailingNode";
844
844
  function ts({ types: a, node: e }) {
845
845
  return e && Array.isArray(a) && a.includes(e.type) || e?.type === a;
846
846
  }
847
- var Ei = be.create({
847
+ var Ci = be.create({
848
848
  name: "trailingNode",
849
849
  addOptions() {
850
850
  return {
@@ -860,7 +860,7 @@ var Ei = be.create({
860
860
  key: e,
861
861
  appendTransaction: (s, n, i) => {
862
862
  const { doc: l, tr: m, schema: u } = i, g = e.getState(i), h = l.content.size, b = u.nodes[t];
863
- if (!s.some((k) => k.getMeta(xi)) && g)
863
+ if (!s.some((k) => k.getMeta(Ei)) && g)
864
864
  return m.insert(h, b.create());
865
865
  },
866
866
  state: {
@@ -878,7 +878,7 @@ var Ei = be.create({
878
878
  })
879
879
  ];
880
880
  }
881
- }), Ci = be.create({
881
+ }), Ai = be.create({
882
882
  name: "undoRedo",
883
883
  addOptions() {
884
884
  return {
@@ -893,7 +893,7 @@ var Ei = be.create({
893
893
  };
894
894
  },
895
895
  addProseMirrorPlugins() {
896
- return [Fi(this.options)];
896
+ return [yi(this.options)];
897
897
  },
898
898
  addKeyboardShortcuts() {
899
899
  return {
@@ -905,7 +905,7 @@ var Ei = be.create({
905
905
  "Shift-Mod-я": () => this.editor.commands.redo()
906
906
  };
907
907
  }
908
- }), Ai = _i, Bi = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Mi = ae.create({
908
+ }), Bi = Di, Mi = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Si = ae.create({
909
909
  name: "image",
910
910
  addOptions() {
911
911
  return {
@@ -1019,7 +1019,7 @@ var Ei = be.create({
1019
1019
  addInputRules() {
1020
1020
  return [
1021
1021
  bo({
1022
- find: Bi,
1022
+ find: Mi,
1023
1023
  type: this.type,
1024
1024
  getAttributes: (a) => {
1025
1025
  const [, , e, t, o] = a;
@@ -1028,27 +1028,27 @@ var Ei = be.create({
1028
1028
  })
1029
1029
  ];
1030
1030
  }
1031
- }), Si = Mi;
1031
+ }), zi = Si;
1032
1032
  function ot(a) {
1033
1033
  return a === "left" || a === "right" || a === "center" ? a : null;
1034
1034
  }
1035
- function zi(a) {
1035
+ function Ti(a) {
1036
1036
  const e = (a.style.textAlign || "").trim().toLowerCase(), t = (a.getAttribute("align") || "").trim().toLowerCase();
1037
1037
  return ot(e || t);
1038
1038
  }
1039
- function Ti(a) {
1039
+ function qi(a) {
1040
1040
  return ot(a?.align);
1041
1041
  }
1042
1042
  function en() {
1043
1043
  return {
1044
1044
  default: null,
1045
- parseHTML: (a) => zi(a),
1045
+ parseHTML: (a) => Ti(a),
1046
1046
  renderHTML: (a) => a.align ? {
1047
1047
  style: `text-align: ${a.align}`
1048
1048
  } : {}
1049
1049
  };
1050
1050
  }
1051
- var qi = ae.create({
1051
+ var Li = ae.create({
1052
1052
  name: "tableCell",
1053
1053
  addOptions() {
1054
1054
  return {
@@ -1090,7 +1090,7 @@ var qi = ae.create({
1090
1090
  renderHTML({ HTMLAttributes: a }) {
1091
1091
  return ["td", V(this.options.HTMLAttributes, a), 0];
1092
1092
  }
1093
- }), Li = ae.create({
1093
+ }), Ri = ae.create({
1094
1094
  name: "tableHeader",
1095
1095
  addOptions() {
1096
1096
  return {
@@ -1124,7 +1124,7 @@ var qi = ae.create({
1124
1124
  renderHTML({ HTMLAttributes: a }) {
1125
1125
  return ["th", V(this.options.HTMLAttributes, a), 0];
1126
1126
  }
1127
- }), Ri = ae.create({
1127
+ }), Hi = ae.create({
1128
1128
  name: "tableRow",
1129
1129
  addOptions() {
1130
1130
  return {
@@ -1171,7 +1171,7 @@ function os(a, e, t, o, s, n) {
1171
1171
  const h = a.attrs.style && typeof a.attrs.style == "string" && /\bwidth\s*:/i.test(a.attrs.style);
1172
1172
  m && !h ? (t.style.width = `${l}px`, t.style.minWidth = "") : (t.style.width = "", t.style.minWidth = `${l}px`);
1173
1173
  }
1174
- var Hi = class {
1174
+ var Ni = class {
1175
1175
  constructor(a, e) {
1176
1176
  this.node = a, this.cellMinWidth = e, this.dom = document.createElement("div"), this.dom.className = "tableWrapper", this.table = this.dom.appendChild(document.createElement("table")), a.attrs.style && (this.table.style.cssText = a.attrs.style), this.colgroup = this.table.appendChild(document.createElement("colgroup")), os(a, this.colgroup, this.table, e), this.contentDOM = this.table.appendChild(document.createElement("tbody"));
1177
1177
  }
@@ -1183,7 +1183,7 @@ var Hi = class {
1183
1183
  return !!(t && !o && (a.type === "attributes" || a.type === "childList" || a.type === "characterData"));
1184
1184
  }
1185
1185
  };
1186
- function Ni(a, e, t, o) {
1186
+ function Oi(a, e, t, o) {
1187
1187
  let s = 0, n = !0;
1188
1188
  const i = [], l = a.firstChild;
1189
1189
  if (!l)
@@ -1203,7 +1203,7 @@ function Ni(a, e, t, o) {
1203
1203
  function ss(a, e) {
1204
1204
  return a.createAndFill();
1205
1205
  }
1206
- function Oi(a) {
1206
+ function Pi(a) {
1207
1207
  if (a.cached.tableNodeTypes)
1208
1208
  return a.cached.tableNodeTypes;
1209
1209
  const e = {};
@@ -1212,8 +1212,8 @@ function Oi(a) {
1212
1212
  o.spec.tableRole && (e[o.spec.tableRole] = o);
1213
1213
  }), a.cached.tableNodeTypes = e, e;
1214
1214
  }
1215
- function Pi(a, e, t, o, s) {
1216
- const n = Oi(a), i = [], l = [];
1215
+ function $i(a, e, t, o, s) {
1216
+ const n = Pi(a), i = [], l = [];
1217
1217
  for (let u = 0; u < t; u += 1) {
1218
1218
  const g = ss(n.cell);
1219
1219
  if (g && l.push(g), o) {
@@ -1226,12 +1226,12 @@ function Pi(a, e, t, o, s) {
1226
1226
  m.push(n.row.createChecked(null, o && u === 0 ? i : l));
1227
1227
  return n.table.createChecked(null, m);
1228
1228
  }
1229
- function $i(a) {
1229
+ function Gi(a) {
1230
1230
  return a instanceof Ks;
1231
1231
  }
1232
1232
  var Pa = ({ editor: a }) => {
1233
1233
  const { selection: e } = a.state;
1234
- if (!$i(e))
1234
+ if (!Gi(e))
1235
1235
  return !1;
1236
1236
  let t = 0;
1237
1237
  const o = Er(e.ranges[0].$from, (n) => n.type.name === "table");
@@ -1240,13 +1240,13 @@ var Pa = ({ editor: a }) => {
1240
1240
  return !1;
1241
1241
  ["tableCell", "tableHeader"].includes(n.type.name) && (t += 1);
1242
1242
  }), t === e.ranges.length ? (a.commands.deleteTable(), !0) : !1;
1243
- }, Gi = "";
1244
- function Wi(a) {
1243
+ }, Wi = "";
1244
+ function Vi(a) {
1245
1245
  return (a || "").replace(/\s+/g, " ").trim();
1246
1246
  }
1247
- function Vi(a, e, t = {}) {
1247
+ function Ui(a, e, t = {}) {
1248
1248
  var o;
1249
- const s = (o = t.cellLineSeparator) != null ? o : Gi;
1249
+ const s = (o = t.cellLineSeparator) != null ? o : Wi;
1250
1250
  if (!a || !a.content || a.content.length === 0)
1251
1251
  return "";
1252
1252
  const n = [];
@@ -1255,7 +1255,7 @@ function Vi(a, e, t = {}) {
1255
1255
  F.content && F.content.forEach((D) => {
1256
1256
  let M = "";
1257
1257
  D.content && Array.isArray(D.content) && D.content.length > 1 ? M = D.content.map((O) => e.renderChildren(O)).join(s) : M = D.content ? e.renderChildren(D.content) : "";
1258
- const S = Wi(M), T = D.type === "tableHeader", N = Ti(D.attrs);
1258
+ const S = Vi(M), T = D.type === "tableHeader", N = qi(D.attrs);
1259
1259
  _.push({ text: S, isHeader: T, align: N });
1260
1260
  }), n.push(_);
1261
1261
  });
@@ -1289,7 +1289,7 @@ function Vi(a, e, t = {}) {
1289
1289
  `;
1290
1290
  }), b;
1291
1291
  }
1292
- var Ui = Vi, Ki = ae.create({
1292
+ var Ki = Ui, Xi = ae.create({
1293
1293
  name: "table",
1294
1294
  // @ts-ignore
1295
1295
  addOptions() {
@@ -1300,7 +1300,7 @@ var Ui = Vi, Ki = ae.create({
1300
1300
  handleWidth: 5,
1301
1301
  cellMinWidth: 25,
1302
1302
  // TODO: fix
1303
- View: Hi,
1303
+ View: Ni,
1304
1304
  lastColumnResizable: !0,
1305
1305
  allowTableNodeSelection: !1
1306
1306
  };
@@ -1313,7 +1313,7 @@ var Ui = Vi, Ki = ae.create({
1313
1313
  return [{ tag: "table" }];
1314
1314
  },
1315
1315
  renderHTML({ node: a, HTMLAttributes: e }) {
1316
- const { colgroup: t, tableWidth: o, tableMinWidth: s } = Ni(a, this.options.cellMinWidth), n = e.style;
1316
+ const { colgroup: t, tableWidth: o, tableMinWidth: s } = Oi(a, this.options.cellMinWidth), n = e.style;
1317
1317
  function i() {
1318
1318
  return n || (o ? `width: ${o}` : `min-width: ${s}`);
1319
1319
  }
@@ -1348,11 +1348,11 @@ var Ui = Vi, Ki = ae.create({
1348
1348
  }), t.push(e.createNode("tableRow", {}, n));
1349
1349
  }), e.createNode("table", void 0, t);
1350
1350
  },
1351
- renderMarkdown: (a, e) => Ui(a, e),
1351
+ renderMarkdown: (a, e) => Ki(a, e),
1352
1352
  addCommands() {
1353
1353
  return {
1354
1354
  insertTable: ({ rows: a = 3, cols: e = 3, withHeaderRow: t = !0 } = {}) => ({ tr: o, dispatch: s, editor: n }) => {
1355
- const i = Pi(n.schema, a, e, t);
1355
+ const i = $i(n.schema, a, e, t);
1356
1356
  if (s) {
1357
1357
  const l = o.selection.from + 1;
1358
1358
  o.replaceSelectionWith(i).scrollIntoView().setSelection(Ye.near(o.doc.resolve(l)));
@@ -1421,11 +1421,11 @@ var Ui = Vi, Ki = ae.create({
1421
1421
  tableRole: $s(Gs(a, "tableRole", e))
1422
1422
  };
1423
1423
  }
1424
- }), Xi = be.create({
1424
+ }), Yi = be.create({
1425
1425
  name: "tableKit",
1426
1426
  addExtensions() {
1427
1427
  const a = [];
1428
- return this.options.table !== !1 && a.push(Ki.configure(this.options.table)), this.options.tableCell !== !1 && a.push(qi.configure(this.options.tableCell)), this.options.tableHeader !== !1 && a.push(Li.configure(this.options.tableHeader)), this.options.tableRow !== !1 && a.push(Ri.configure(this.options.tableRow)), a;
1428
+ return this.options.table !== !1 && a.push(Xi.configure(this.options.table)), this.options.tableCell !== !1 && a.push(Li.configure(this.options.tableCell)), this.options.tableHeader !== !1 && a.push(Ri.configure(this.options.tableHeader)), this.options.tableRow !== !1 && a.push(Hi.configure(this.options.tableRow)), a;
1429
1429
  }
1430
1430
  }), st = (a, e) => {
1431
1431
  if (a === "slot")
@@ -1436,7 +1436,7 @@ var Ui = Vi, Ki = ae.create({
1436
1436
  if (a === "svg")
1437
1437
  throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");
1438
1438
  return [a, o, t];
1439
- }, Yi = /^\s*>\s$/, Zi = ae.create({
1439
+ }, Zi = /^\s*>\s$/, Qi = ae.create({
1440
1440
  name: "blockquote",
1441
1441
  addOptions() {
1442
1442
  return {
@@ -1486,12 +1486,12 @@ ${t}
1486
1486
  addInputRules() {
1487
1487
  return [
1488
1488
  ha({
1489
- find: Yi,
1489
+ find: Zi,
1490
1490
  type: this.type
1491
1491
  })
1492
1492
  ];
1493
1493
  }
1494
- }), Qi = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, Ji = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, el = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, al = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, tl = ja.create({
1494
+ }), Ji = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, el = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, al = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, tl = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, ol = ja.create({
1495
1495
  name: "bold",
1496
1496
  addOptions() {
1497
1497
  return {
@@ -1545,11 +1545,11 @@ ${t}
1545
1545
  addInputRules() {
1546
1546
  return [
1547
1547
  ia({
1548
- find: Qi,
1548
+ find: Ji,
1549
1549
  type: this.type
1550
1550
  }),
1551
1551
  ia({
1552
- find: el,
1552
+ find: al,
1553
1553
  type: this.type
1554
1554
  })
1555
1555
  ];
@@ -1557,16 +1557,16 @@ ${t}
1557
1557
  addPasteRules() {
1558
1558
  return [
1559
1559
  ra({
1560
- find: Ji,
1560
+ find: el,
1561
1561
  type: this.type
1562
1562
  }),
1563
1563
  ra({
1564
- find: al,
1564
+ find: tl,
1565
1565
  type: this.type
1566
1566
  })
1567
1567
  ];
1568
1568
  }
1569
- }), ol = /(^|[^`])`([^`]+)`(?!`)$/, sl = /(^|[^`])`([^`]+)`(?!`)/g, nl = ja.create({
1569
+ }), sl = /(^|[^`])`([^`]+)`(?!`)$/, nl = /(^|[^`])`([^`]+)`(?!`)/g, rl = ja.create({
1570
1570
  name: "code",
1571
1571
  addOptions() {
1572
1572
  return {
@@ -1600,7 +1600,7 @@ ${t}
1600
1600
  addInputRules() {
1601
1601
  return [
1602
1602
  ia({
1603
- find: ol,
1603
+ find: sl,
1604
1604
  type: this.type
1605
1605
  })
1606
1606
  ];
@@ -1608,12 +1608,12 @@ ${t}
1608
1608
  addPasteRules() {
1609
1609
  return [
1610
1610
  ra({
1611
- find: sl,
1611
+ find: nl,
1612
1612
  type: this.type
1613
1613
  })
1614
1614
  ];
1615
1615
  }
1616
- }), Et = 4, rl = /^```([a-z]+)?[\s\n]$/, il = /^~~~([a-z]+)?[\s\n]$/, ll = ae.create({
1616
+ }), Et = 4, il = /^```([a-z]+)?[\s\n]$/, ll = /^~~~([a-z]+)?[\s\n]$/, pl = ae.create({
1617
1617
  name: "codeBlock",
1618
1618
  addOptions() {
1619
1619
  return {
@@ -1786,14 +1786,14 @@ ${t}
1786
1786
  addInputRules() {
1787
1787
  return [
1788
1788
  Zt({
1789
- find: rl,
1789
+ find: il,
1790
1790
  type: this.type,
1791
1791
  getAttributes: (a) => ({
1792
1792
  language: a[1]
1793
1793
  })
1794
1794
  }),
1795
1795
  Zt({
1796
- find: il,
1796
+ find: ll,
1797
1797
  type: this.type,
1798
1798
  getAttributes: (a) => ({
1799
1799
  language: a[1]
@@ -1822,14 +1822,14 @@ ${t}
1822
1822
  })
1823
1823
  ];
1824
1824
  }
1825
- }), pl = ae.create({
1825
+ }), ml = ae.create({
1826
1826
  name: "doc",
1827
1827
  topNode: !0,
1828
1828
  content: "block+",
1829
1829
  renderMarkdown: (a, e) => a.content ? e.renderChildren(a.content, `
1830
1830
 
1831
1831
  `) : ""
1832
- }), ml = ae.create({
1832
+ }), cl = ae.create({
1833
1833
  name: "hardBreak",
1834
1834
  markdownTokenName: "br",
1835
1835
  addOptions() {
@@ -1883,7 +1883,7 @@ ${t}
1883
1883
  "Shift-Enter": () => this.editor.commands.setHardBreak()
1884
1884
  };
1885
1885
  }
1886
- }), cl = ae.create({
1886
+ }), ul = ae.create({
1887
1887
  name: "heading",
1888
1888
  addOptions() {
1889
1889
  return {
@@ -1941,7 +1941,7 @@ ${t}
1941
1941
  }
1942
1942
  }));
1943
1943
  }
1944
- }), ul = ae.create({
1944
+ }), dl = ae.create({
1945
1945
  name: "horizontalRule",
1946
1946
  addOptions() {
1947
1947
  return {
@@ -1991,7 +1991,7 @@ ${t}
1991
1991
  })
1992
1992
  ];
1993
1993
  }
1994
- }), dl = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, gl = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, hl = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, fl = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, vl = ja.create({
1994
+ }), gl = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, hl = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, fl = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, vl = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, bl = ja.create({
1995
1995
  name: "italic",
1996
1996
  addOptions() {
1997
1997
  return {
@@ -2044,11 +2044,11 @@ ${t}
2044
2044
  addInputRules() {
2045
2045
  return [
2046
2046
  ia({
2047
- find: dl,
2047
+ find: gl,
2048
2048
  type: this.type
2049
2049
  }),
2050
2050
  ia({
2051
- find: hl,
2051
+ find: fl,
2052
2052
  type: this.type
2053
2053
  })
2054
2054
  ];
@@ -2056,19 +2056,19 @@ ${t}
2056
2056
  addPasteRules() {
2057
2057
  return [
2058
2058
  ra({
2059
- find: gl,
2059
+ find: hl,
2060
2060
  type: this.type
2061
2061
  }),
2062
2062
  ra({
2063
- find: fl,
2063
+ find: vl,
2064
2064
  type: this.type
2065
2065
  })
2066
2066
  ];
2067
2067
  }
2068
- }), bl = Object.defineProperty, jl = (a, e) => {
2068
+ }), jl = Object.defineProperty, kl = (a, e) => {
2069
2069
  for (var t in e)
2070
- bl(a, t, { get: e[t], enumerable: !0 });
2071
- }, kl = "listItem", ns = "textStyle", rs = /^\s*([-+*])\s$/, an = ae.create({
2070
+ jl(a, t, { get: e[t], enumerable: !0 });
2071
+ }, Fl = "listItem", ns = "textStyle", rs = /^\s*([-+*])\s$/, an = ae.create({
2072
2072
  name: "bulletList",
2073
2073
  addOptions() {
2074
2074
  return {
@@ -2100,7 +2100,7 @@ ${t}
2100
2100
  },
2101
2101
  addCommands() {
2102
2102
  return {
2103
- toggleBulletList: () => ({ commands: a, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(kl, this.editor.getAttributes(ns)).run() : a.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
2103
+ toggleBulletList: () => ({ commands: a, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(Fl, this.editor.getAttributes(ns)).run() : a.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
2104
2104
  };
2105
2105
  },
2106
2106
  addKeyboardShortcuts() {
@@ -2194,14 +2194,14 @@ ${t}
2194
2194
  "Shift-Tab": () => this.editor.commands.liftListItem(this.name)
2195
2195
  };
2196
2196
  }
2197
- }), Fl = {};
2198
- jl(Fl, {
2197
+ }), yl = {};
2198
+ kl(yl, {
2199
2199
  findListItemPos: () => Ma,
2200
2200
  getNextListDepth: () => Fo,
2201
2201
  handleBackspace: () => eo,
2202
2202
  handleDelete: () => ao,
2203
2203
  hasListBefore: () => on,
2204
- hasListItemAfter: () => yl,
2204
+ hasListItemAfter: () => _l,
2205
2205
  hasListItemBefore: () => sn,
2206
2206
  listItemHasSubList: () => nn,
2207
2207
  nextListIsDeeper: () => rn,
@@ -2268,7 +2268,7 @@ var Ma = (a, e) => {
2268
2268
  return !1;
2269
2269
  const { selection: t } = a.state, { $from: o, $to: s } = t;
2270
2270
  return !t.empty && o.sameParent(s) ? !1 : rn(e, a.state) ? a.chain().focus(a.state.selection.from + 4).lift(e).joinBackward().run() : ln(e, a.state) ? a.chain().joinForward().joinBackward().run() : a.commands.joinItemForward();
2271
- }, yl = (a, e) => {
2271
+ }, _l = (a, e) => {
2272
2272
  var t;
2273
2273
  const { $anchor: o } = e.selection, s = e.doc.resolve(o.pos - o.parentOffset - 2);
2274
2274
  return !(s.index() === s.parent.childCount - 1 || ((t = s.nodeAfter) == null ? void 0 : t.type.name) !== a);
@@ -2316,12 +2316,12 @@ var Ma = (a, e) => {
2316
2316
  }
2317
2317
  };
2318
2318
  }
2319
- }), is = /^(\s*)(\d+)\.\s+(.*)$/, _l = /^\s/;
2320
- function Dl(a) {
2319
+ }), is = /^(\s*)(\d+)\.\s+(.*)$/, Dl = /^\s/;
2320
+ function wl(a) {
2321
2321
  const e = a.trimStart();
2322
2322
  return /^[-+*]\s+/.test(e) || /^\d+\.\s+/.test(e) || /^>\s?/.test(e) || /^```/.test(e) || /^~~~/.test(e);
2323
2323
  }
2324
- function wl(a) {
2324
+ function Il(a) {
2325
2325
  const e = [], t = [];
2326
2326
  let o = !1;
2327
2327
  return a.forEach((s) => {
@@ -2333,7 +2333,7 @@ function wl(a) {
2333
2333
  o = !0, t.push(s);
2334
2334
  return;
2335
2335
  }
2336
- if (e.length > 0 && Dl(s)) {
2336
+ if (e.length > 0 && wl(s)) {
2337
2337
  o = !0, t.push(s);
2338
2338
  return;
2339
2339
  }
@@ -2343,7 +2343,7 @@ function wl(a) {
2343
2343
  blockLines: t
2344
2344
  };
2345
2345
  }
2346
- function Il(a) {
2346
+ function xl(a) {
2347
2347
  const e = [];
2348
2348
  let t = 0, o = 0;
2349
2349
  for (; t < a.length; ) {
@@ -2360,7 +2360,7 @@ function Il(a) {
2360
2360
  break;
2361
2361
  if (y.trim() === "")
2362
2362
  b.push(y), g.push(""), k = !0, h += 1;
2363
- else if (y.match(_l))
2363
+ else if (y.match(Dl))
2364
2364
  b.push(y), g.push(y.slice(u + 2)), h += 1;
2365
2365
  else {
2366
2366
  if (k)
@@ -2386,7 +2386,7 @@ function mn(a, e, t) {
2386
2386
  for (; s < a.length; ) {
2387
2387
  const n = a[s];
2388
2388
  if (n.indent === e) {
2389
- const { paragraphLines: i, blockLines: l } = wl(n.contentLines), m = i.join(`
2389
+ const { paragraphLines: i, blockLines: l } = Il(n.contentLines), m = i.join(`
2390
2390
  `).trim(), u = [];
2391
2391
  m && u.push({
2392
2392
  type: "paragraph",
@@ -2424,7 +2424,7 @@ function mn(a, e, t) {
2424
2424
  }
2425
2425
  return o;
2426
2426
  }
2427
- function xl(a, e) {
2427
+ function El(a, e) {
2428
2428
  return a.map((t) => {
2429
2429
  if (t.type !== "list_item")
2430
2430
  return e.parseChildren([t])[0];
@@ -2448,7 +2448,7 @@ function xl(a, e) {
2448
2448
  };
2449
2449
  });
2450
2450
  }
2451
- var El = "listItem", ls = "textStyle", ps = /^(\d+)\.\s$/, cn = ae.create({
2451
+ var Cl = "listItem", ls = "textStyle", ps = /^(\d+)\.\s$/, cn = ae.create({
2452
2452
  name: "orderedList",
2453
2453
  addOptions() {
2454
2454
  return {
@@ -2489,7 +2489,7 @@ var El = "listItem", ls = "textStyle", ps = /^(\d+)\.\s$/, cn = ae.create({
2489
2489
  parseMarkdown: (a, e) => {
2490
2490
  if (a.type !== "list" || !a.ordered)
2491
2491
  return [];
2492
- const t = a.start || 1, o = a.items ? xl(a.items, e) : [];
2492
+ const t = a.start || 1, o = a.items ? El(a.items, e) : [];
2493
2493
  return t !== 1 ? {
2494
2494
  type: "orderedList",
2495
2495
  attrs: { start: t },
@@ -2511,7 +2511,7 @@ var El = "listItem", ls = "textStyle", ps = /^(\d+)\.\s$/, cn = ae.create({
2511
2511
  tokenize: (a, e, t) => {
2512
2512
  var o;
2513
2513
  const s = a.split(`
2514
- `), [n, i] = Il(s);
2514
+ `), [n, i] = xl(s);
2515
2515
  if (n.length === 0)
2516
2516
  return;
2517
2517
  const l = mn(n, 0, t);
@@ -2530,7 +2530,7 @@ var El = "listItem", ls = "textStyle", ps = /^(\d+)\.\s$/, cn = ae.create({
2530
2530
  },
2531
2531
  addCommands() {
2532
2532
  return {
2533
- toggleOrderedList: () => ({ commands: a, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(El, this.editor.getAttributes(ls)).run() : a.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
2533
+ toggleOrderedList: () => ({ commands: a, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(Cl, this.editor.getAttributes(ls)).run() : a.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
2534
2534
  };
2535
2535
  },
2536
2536
  addKeyboardShortcuts() {
@@ -2555,7 +2555,7 @@ var El = "listItem", ls = "textStyle", ps = /^(\d+)\.\s$/, cn = ae.create({
2555
2555
  editor: this.editor
2556
2556
  })), [a];
2557
2557
  }
2558
- }), Cl = /^\s*(\[([( |x])?\])\s$/, un = ae.create({
2558
+ }), Al = /^\s*(\[([( |x])?\])\s$/, un = ae.create({
2559
2559
  name: "taskItem",
2560
2560
  addOptions() {
2561
2561
  return {
@@ -2683,7 +2683,7 @@ var El = "listItem", ls = "textStyle", ps = /^(\d+)\.\s$/, cn = ae.create({
2683
2683
  addInputRules() {
2684
2684
  return [
2685
2685
  ha({
2686
- find: Cl,
2686
+ find: Al,
2687
2687
  type: this.type,
2688
2688
  getAttributes: (a) => ({
2689
2689
  checked: a[a.length - 1] === "x"
@@ -2811,7 +2811,7 @@ be.create({
2811
2811
  return this.options.bulletList !== !1 && a.push(an.configure(this.options.bulletList)), this.options.listItem !== !1 && a.push(tn.configure(this.options.listItem)), this.options.listKeymap !== !1 && a.push(pn.configure(this.options.listKeymap)), this.options.orderedList !== !1 && a.push(cn.configure(this.options.orderedList)), this.options.taskItem !== !1 && a.push(un.configure(this.options.taskItem)), this.options.taskList !== !1 && a.push(dn.configure(this.options.taskList)), a;
2812
2812
  }
2813
2813
  });
2814
- var $a = "&nbsp;", Ct = " ", Al = ae.create({
2814
+ var $a = "&nbsp;", Ct = " ", Bl = ae.create({
2815
2815
  name: "paragraph",
2816
2816
  priority: 1e3,
2817
2817
  addOptions() {
@@ -2855,7 +2855,7 @@ var $a = "&nbsp;", Ct = " ", Al = ae.create({
2855
2855
  "Mod-Alt-0": () => this.editor.commands.setParagraph()
2856
2856
  };
2857
2857
  }
2858
- }), Bl = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, Ml = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, Sl = ja.create({
2858
+ }), Ml = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, Sl = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, zl = ja.create({
2859
2859
  name: "strike",
2860
2860
  addOptions() {
2861
2861
  return {
@@ -2901,7 +2901,7 @@ var $a = "&nbsp;", Ct = " ", Al = ae.create({
2901
2901
  addInputRules() {
2902
2902
  return [
2903
2903
  ia({
2904
- find: Bl,
2904
+ find: Ml,
2905
2905
  type: this.type
2906
2906
  })
2907
2907
  ];
@@ -2909,12 +2909,12 @@ var $a = "&nbsp;", Ct = " ", Al = ae.create({
2909
2909
  addPasteRules() {
2910
2910
  return [
2911
2911
  ra({
2912
- find: Ml,
2912
+ find: Sl,
2913
2913
  type: this.type
2914
2914
  })
2915
2915
  ];
2916
2916
  }
2917
- }), zl = ae.create({
2917
+ }), Tl = ae.create({
2918
2918
  name: "text",
2919
2919
  group: "inline",
2920
2920
  parseMarkdown: (a) => ({
@@ -2922,7 +2922,7 @@ var $a = "&nbsp;", Ct = " ", Al = ae.create({
2922
2922
  text: a.text || ""
2923
2923
  }),
2924
2924
  renderMarkdown: (a) => a.text || ""
2925
- }), Tl = ja.create({
2925
+ }), ql = ja.create({
2926
2926
  name: "underline",
2927
2927
  addOptions() {
2928
2928
  return {
@@ -2982,14 +2982,14 @@ var $a = "&nbsp;", Ct = " ", Al = ae.create({
2982
2982
  "Mod-U": () => this.editor.commands.toggleUnderline()
2983
2983
  };
2984
2984
  }
2985
- }), ql = be.create({
2985
+ }), Ll = be.create({
2986
2986
  name: "starterKit",
2987
2987
  addExtensions() {
2988
2988
  var a, e, t, o;
2989
2989
  const s = [];
2990
- return this.options.bold !== !1 && s.push(tl.configure(this.options.bold)), this.options.blockquote !== !1 && s.push(Zi.configure(this.options.blockquote)), this.options.bulletList !== !1 && s.push(an.configure(this.options.bulletList)), this.options.code !== !1 && s.push(nl.configure(this.options.code)), this.options.codeBlock !== !1 && s.push(ll.configure(this.options.codeBlock)), this.options.document !== !1 && s.push(pl.configure(this.options.document)), this.options.dropcursor !== !1 && s.push(yi.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && s.push(Di.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && s.push(ml.configure(this.options.hardBreak)), this.options.heading !== !1 && s.push(cl.configure(this.options.heading)), this.options.undoRedo !== !1 && s.push(Ci.configure(this.options.undoRedo)), this.options.horizontalRule !== !1 && s.push(ul.configure(this.options.horizontalRule)), this.options.italic !== !1 && s.push(vl.configure(this.options.italic)), this.options.listItem !== !1 && s.push(tn.configure(this.options.listItem)), this.options.listKeymap !== !1 && s.push(pn.configure((a = this.options) == null ? void 0 : a.listKeymap)), this.options.link !== !1 && s.push(kr.configure((e = this.options) == null ? void 0 : e.link)), this.options.orderedList !== !1 && s.push(cn.configure(this.options.orderedList)), this.options.paragraph !== !1 && s.push(Al.configure(this.options.paragraph)), this.options.strike !== !1 && s.push(Sl.configure(this.options.strike)), this.options.text !== !1 && s.push(zl.configure(this.options.text)), this.options.underline !== !1 && s.push(Tl.configure((t = this.options) == null ? void 0 : t.underline)), this.options.trailingNode !== !1 && s.push(Ei.configure((o = this.options) == null ? void 0 : o.trailingNode)), s;
2990
+ return this.options.bold !== !1 && s.push(ol.configure(this.options.bold)), this.options.blockquote !== !1 && s.push(Qi.configure(this.options.blockquote)), this.options.bulletList !== !1 && s.push(an.configure(this.options.bulletList)), this.options.code !== !1 && s.push(rl.configure(this.options.code)), this.options.codeBlock !== !1 && s.push(pl.configure(this.options.codeBlock)), this.options.document !== !1 && s.push(ml.configure(this.options.document)), this.options.dropcursor !== !1 && s.push(_i.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && s.push(wi.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && s.push(cl.configure(this.options.hardBreak)), this.options.heading !== !1 && s.push(ul.configure(this.options.heading)), this.options.undoRedo !== !1 && s.push(Ai.configure(this.options.undoRedo)), this.options.horizontalRule !== !1 && s.push(dl.configure(this.options.horizontalRule)), this.options.italic !== !1 && s.push(bl.configure(this.options.italic)), this.options.listItem !== !1 && s.push(tn.configure(this.options.listItem)), this.options.listKeymap !== !1 && s.push(pn.configure((a = this.options) == null ? void 0 : a.listKeymap)), this.options.link !== !1 && s.push(kr.configure((e = this.options) == null ? void 0 : e.link)), this.options.orderedList !== !1 && s.push(cn.configure(this.options.orderedList)), this.options.paragraph !== !1 && s.push(Bl.configure(this.options.paragraph)), this.options.strike !== !1 && s.push(zl.configure(this.options.strike)), this.options.text !== !1 && s.push(Tl.configure(this.options.text)), this.options.underline !== !1 && s.push(ql.configure((t = this.options) == null ? void 0 : t.underline)), this.options.trailingNode !== !1 && s.push(Ci.configure((o = this.options) == null ? void 0 : o.trailingNode)), s;
2991
2991
  }
2992
- }), Ll = ql, Rl = un, Hl = dn, Nl = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, Ol = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, Pl = ja.create({
2992
+ }), Rl = Ll, Hl = un, Nl = dn, Ol = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, Pl = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, $l = ja.create({
2993
2993
  name: "highlight",
2994
2994
  addOptions() {
2995
2995
  return {
@@ -3053,7 +3053,7 @@ var $a = "&nbsp;", Ct = " ", Al = ae.create({
3053
3053
  addInputRules() {
3054
3054
  return [
3055
3055
  ia({
3056
- find: Nl,
3056
+ find: Ol,
3057
3057
  type: this.type
3058
3058
  })
3059
3059
  ];
@@ -3061,12 +3061,12 @@ var $a = "&nbsp;", Ct = " ", Al = ae.create({
3061
3061
  addPasteRules() {
3062
3062
  return [
3063
3063
  ra({
3064
- find: Ol,
3064
+ find: Pl,
3065
3065
  type: this.type
3066
3066
  })
3067
3067
  ];
3068
3068
  }
3069
- }), $l = Pl, Gl = Ii;
3069
+ }), Gl = $l, Wl = xi;
3070
3070
  class x extends Error {
3071
3071
  // Error start position based on passed-in Token or ParseNode.
3072
3072
  // Length of affected text based on passed-in Token or ParseNode.
@@ -3084,13 +3084,13 @@ class x extends Error {
3084
3084
  super(o), this.name = "ParseError", Object.setPrototypeOf(this, x.prototype), this.position = s, s != null && n != null && (this.length = n - s), this.rawMessage = e;
3085
3085
  }
3086
3086
  }
3087
- var Wl = /([A-Z])/g, yo = (a) => a.replace(Wl, "-$1").toLowerCase(), Vl = {
3087
+ var Vl = /([A-Z])/g, yo = (a) => a.replace(Vl, "-$1").toLowerCase(), Ul = {
3088
3088
  "&": "&amp;",
3089
3089
  ">": "&gt;",
3090
3090
  "<": "&lt;",
3091
3091
  '"': "&quot;",
3092
3092
  "'": "&#x27;"
3093
- }, Ul = /[&><"']/g, pe = (a) => String(a).replace(Ul, (e) => Vl[e]), et = (a) => a.type === "ordgroup" || a.type === "color" ? a.body.length === 1 ? et(a.body[0]) : a : a.type === "font" ? et(a.body) : a, Kl = /* @__PURE__ */ new Set(["mathord", "textord", "atom"]), Ne = (a) => Kl.has(et(a).type), Xl = (a) => {
3093
+ }, Kl = /[&><"']/g, pe = (a) => String(a).replace(Kl, (e) => Ul[e]), et = (a) => a.type === "ordgroup" || a.type === "color" ? a.body.length === 1 ? et(a.body[0]) : a : a.type === "font" ? et(a.body) : a, Xl = /* @__PURE__ */ new Set(["mathord", "textord", "atom"]), Ne = (a) => Xl.has(et(a).type), Yl = (a) => {
3094
3094
  var e = /^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(a);
3095
3095
  return e ? e[2] !== ":" || !/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1]) ? null : e[1].toLowerCase() : "_relative";
3096
3096
  }, to = {
@@ -3180,7 +3180,7 @@ var Wl = /([A-Z])/g, yo = (a) => a.replace(Wl, "-$1").toLowerCase(), Vl = {
3180
3180
  cli: !1
3181
3181
  }
3182
3182
  };
3183
- function Yl(a) {
3183
+ function Zl(a) {
3184
3184
  if ("default" in a)
3185
3185
  return a.default;
3186
3186
  var e = a.type, t = Array.isArray(e) ? e[0] : e;
@@ -3202,7 +3202,7 @@ class _o {
3202
3202
  e === void 0 && (e = {}), e = e || {};
3203
3203
  for (var t of Object.keys(to)) {
3204
3204
  var o = to[t], s = e[t];
3205
- this[t] = s !== void 0 ? o.processor ? o.processor(s) : s : Yl(o);
3205
+ this[t] = s !== void 0 ? o.processor ? o.processor(s) : s : Zl(o);
3206
3206
  }
3207
3207
  }
3208
3208
  /**
@@ -3245,7 +3245,7 @@ class _o {
3245
3245
  */
3246
3246
  isTrusted(e) {
3247
3247
  if ("url" in e && e.url && !e.protocol) {
3248
- var t = Xl(e.url);
3248
+ var t = Yl(e.url);
3249
3249
  if (t == null)
3250
3250
  return !1;
3251
3251
  e.protocol = t;
@@ -3262,40 +3262,40 @@ class Ve {
3262
3262
  * Get the style of a superscript given a base in the current style.
3263
3263
  */
3264
3264
  sup() {
3265
- return Ce[Zl[this.id]];
3265
+ return Ce[Ql[this.id]];
3266
3266
  }
3267
3267
  /**
3268
3268
  * Get the style of a subscript given a base in the current style.
3269
3269
  */
3270
3270
  sub() {
3271
- return Ce[Ql[this.id]];
3271
+ return Ce[Jl[this.id]];
3272
3272
  }
3273
3273
  /**
3274
3274
  * Get the style of a fraction numerator given the fraction in the current
3275
3275
  * style.
3276
3276
  */
3277
3277
  fracNum() {
3278
- return Ce[Jl[this.id]];
3278
+ return Ce[ep[this.id]];
3279
3279
  }
3280
3280
  /**
3281
3281
  * Get the style of a fraction denominator given the fraction in the current
3282
3282
  * style.
3283
3283
  */
3284
3284
  fracDen() {
3285
- return Ce[ep[this.id]];
3285
+ return Ce[ap[this.id]];
3286
3286
  }
3287
3287
  /**
3288
3288
  * Get the cramped version of a style (in particular, cramping a cramped style
3289
3289
  * doesn't change the style).
3290
3290
  */
3291
3291
  cramp() {
3292
- return Ce[ap[this.id]];
3292
+ return Ce[tp[this.id]];
3293
3293
  }
3294
3294
  /**
3295
3295
  * Get a text or display version of this style.
3296
3296
  */
3297
3297
  text() {
3298
- return Ce[tp[this.id]];
3298
+ return Ce[op[this.id]];
3299
3299
  }
3300
3300
  /**
3301
3301
  * Return true if this style is tightly spaced (scriptstyle/scriptscriptstyle)
@@ -3304,7 +3304,7 @@ class Ve {
3304
3304
  return this.size >= 2;
3305
3305
  }
3306
3306
  }
3307
- var Do = 0, nt = 1, ga = 2, Re = 3, Aa = 4, _e = 5, fa = 6, de = 7, Ce = [new Ve(Do, 0, !1), new Ve(nt, 0, !0), new Ve(ga, 1, !1), new Ve(Re, 1, !0), new Ve(Aa, 2, !1), new Ve(_e, 2, !0), new Ve(fa, 3, !1), new Ve(de, 3, !0)], Zl = [Aa, _e, Aa, _e, fa, de, fa, de], Ql = [_e, _e, _e, _e, de, de, de, de], Jl = [ga, Re, Aa, _e, fa, de, fa, de], ep = [Re, Re, _e, _e, de, de, de, de], ap = [nt, nt, Re, Re, _e, _e, de, de], tp = [Do, nt, ga, Re, ga, Re, ga, Re], L = {
3307
+ var Do = 0, nt = 1, ga = 2, Re = 3, Aa = 4, _e = 5, fa = 6, de = 7, Ce = [new Ve(Do, 0, !1), new Ve(nt, 0, !0), new Ve(ga, 1, !1), new Ve(Re, 1, !0), new Ve(Aa, 2, !1), new Ve(_e, 2, !0), new Ve(fa, 3, !1), new Ve(de, 3, !0)], Ql = [Aa, _e, Aa, _e, fa, de, fa, de], Jl = [_e, _e, _e, _e, de, de, de, de], ep = [ga, Re, Aa, _e, fa, de, fa, de], ap = [Re, Re, _e, _e, de, de, de, de], tp = [nt, nt, Re, Re, _e, _e, de, de], op = [Do, nt, ga, Re, ga, Re, ga, Re], L = {
3308
3308
  DISPLAY: Ce[Do],
3309
3309
  TEXT: Ce[ga],
3310
3310
  SCRIPT: Ce[Aa],
@@ -3368,7 +3368,7 @@ var Do = 0, nt = 1, ga = 2, Re = 3, Aa = 4, _e = 5, fa = 6, de = 7, Ce = [new Ve
3368
3368
  name: "hangul",
3369
3369
  blocks: [[44032, 55215]]
3370
3370
  }];
3371
- function op(a) {
3371
+ function sp(a) {
3372
3372
  for (var e = 0; e < oo.length; e++)
3373
3373
  for (var t = oo[e], o = 0; o < t.blocks.length; o++) {
3374
3374
  var s = t.blocks[o];
@@ -3385,7 +3385,7 @@ function gn(a) {
3385
3385
  return !0;
3386
3386
  return !1;
3387
3387
  }
3388
- var re = (a) => a + " " + a, da = 80, sp = function(e, t) {
3388
+ var re = (a) => a + " " + a, da = 80, np = function(e, t) {
3389
3389
  return "M95," + (622 + e + t) + `
3390
3390
  c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
3391
3391
  c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
@@ -3398,7 +3398,7 @@ H400000v` + (40 + e) + `H845.2724
3398
3398
  s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
3399
3399
  c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
3400
3400
  M` + (834 + e) + " " + t + "h400000v" + (40 + e) + "h-400000z";
3401
- }, np = function(e, t) {
3401
+ }, rp = function(e, t) {
3402
3402
  return "M263," + (601 + e + t) + `c0.7,0,18,39.7,52,119
3403
3403
  c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
3404
3404
  c340,-704.7,510.7,-1060.3,512,-1067
@@ -3410,7 +3410,7 @@ c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
3410
3410
  s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
3411
3411
  c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
3412
3412
  M` + (1001 + e) + " " + t + "h400000v" + (40 + e) + "h-400000z";
3413
- }, rp = function(e, t) {
3413
+ }, ip = function(e, t) {
3414
3414
  return "M983 " + (10 + e + t) + `
3415
3415
  l` + e / 3.13 + " -" + e + `
3416
3416
  c4,-6.7,10,-10,18,-10 H400000v` + (40 + e) + `
@@ -3421,7 +3421,7 @@ c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
3421
3421
  c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
3422
3422
  c53.7,-170.3,84.5,-266.8,92.5,-289.5z
3423
3423
  M` + (1001 + e) + " " + t + "h400000v" + (40 + e) + "h-400000z";
3424
- }, ip = function(e, t) {
3424
+ }, lp = function(e, t) {
3425
3425
  return "M424," + (2398 + e + t) + `
3426
3426
  c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
3427
3427
  c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
@@ -3433,7 +3433,7 @@ s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
3433
3433
  c-2,6,-10,9,-24,9
3434
3434
  c-8,0,-12,-0.7,-12,-2z M` + (1001 + e) + " " + t + `
3435
3435
  h400000v` + (40 + e) + "h-400000z";
3436
- }, lp = function(e, t) {
3436
+ }, pp = function(e, t) {
3437
3437
  return "M473," + (2713 + e + t) + `
3438
3438
  c339.3,-1799.3,509.3,-2700,510,-2702 l` + e / 5.298 + " -" + e + `
3439
3439
  c3.3,-7.3,9.3,-11,18,-11 H400000v` + (40 + e) + `H1017.7
@@ -3442,40 +3442,40 @@ c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1
3442
3442
  c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
3443
3443
  s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
3444
3444
  606zM` + (1001 + e) + " " + t + "h400000v" + (40 + e) + "H1017.7z";
3445
- }, pp = function(e) {
3445
+ }, mp = function(e) {
3446
3446
  var t = e / 2;
3447
3447
  return "M400000 " + e + " H0 L" + t + " 0 l65 45 L145 " + (e - 80) + " H400000z";
3448
- }, mp = function(e, t, o) {
3448
+ }, cp = function(e, t, o) {
3449
3449
  var s = o - 54 - t - e;
3450
3450
  return "M702 " + (e + t) + "H400000" + (40 + e) + `
3451
3451
  H742v` + s + `l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
3452
3452
  h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
3453
3453
  c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
3454
3454
  219 661 l218 661zM702 ` + t + "H400000v" + (40 + e) + "H742z";
3455
- }, cp = function(e, t, o) {
3455
+ }, up = function(e, t, o) {
3456
3456
  t = 1e3 * t;
3457
3457
  var s = "";
3458
3458
  switch (e) {
3459
3459
  case "sqrtMain":
3460
- s = sp(t, da);
3460
+ s = np(t, da);
3461
3461
  break;
3462
3462
  case "sqrtSize1":
3463
- s = np(t, da);
3463
+ s = rp(t, da);
3464
3464
  break;
3465
3465
  case "sqrtSize2":
3466
- s = rp(t, da);
3466
+ s = ip(t, da);
3467
3467
  break;
3468
3468
  case "sqrtSize3":
3469
- s = ip(t, da);
3469
+ s = lp(t, da);
3470
3470
  break;
3471
3471
  case "sqrtSize4":
3472
- s = lp(t, da);
3472
+ s = pp(t, da);
3473
3473
  break;
3474
3474
  case "sqrtTall":
3475
- s = mp(t, da, o);
3475
+ s = cp(t, da, o);
3476
3476
  }
3477
3477
  return s;
3478
- }, up = function(e, t) {
3478
+ }, dp = function(e, t) {
3479
3479
  switch (e) {
3480
3480
  case "⎜":
3481
3481
  return re("M291 0 H417 V" + t + " H291z");
@@ -3750,7 +3750,7 @@ c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
3750
3750
  -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
3751
3751
  c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
3752
3752
  M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
3753
- }, dp = function(e, t) {
3753
+ }, gp = function(e, t) {
3754
3754
  switch (e) {
3755
3755
  case "lbrack":
3756
3756
  return "M403 1759 V84 H666 V0 H319 V1759 v" + t + ` v1759 h347 v-84
@@ -3861,12 +3861,12 @@ var so = {
3861
3861
  // https://tex.stackexchange.com/a/41371
3862
3862
  px: 803 / 800
3863
3863
  // \pdfpxdimen defaults to 1 bp in pdfTeX and LuaTeX
3864
- }, gp = {
3864
+ }, hp = {
3865
3865
  ex: !0,
3866
3866
  em: !0,
3867
3867
  mu: !0
3868
3868
  }, hn = function(e) {
3869
- return typeof e != "string" && (e = e.unit), e in so || e in gp || e === "ex";
3869
+ return typeof e != "string" && (e = e.unit), e in so || e in hp || e === "ex";
3870
3870
  }, Z = function(e, t) {
3871
3871
  var o;
3872
3872
  if (e.unit in so)
@@ -3904,7 +3904,7 @@ var so = {
3904
3904
  for (var n = 0; n < this.children.length; n++)
3905
3905
  t.appendChild(this.children[n].toNode());
3906
3906
  return t;
3907
- }, hp = /[\s"'>/=\x00-\x1f]/, bn = function(e) {
3907
+ }, fp = /[\s"'>/=\x00-\x1f]/, bn = function(e) {
3908
3908
  var t = "<" + e;
3909
3909
  this.classes.length && (t += ' class="' + pe(Ze(this.classes)) + '"');
3910
3910
  var o = "";
@@ -3912,7 +3912,7 @@ var so = {
3912
3912
  o += yo(s) + ":" + this.style[s] + ";";
3913
3913
  o && (t += ' style="' + pe(o) + '"');
3914
3914
  for (var n of Object.keys(this.attributes)) {
3915
- if (hp.test(n))
3915
+ if (fp.test(n))
3916
3916
  throw new x("Invalid attribute name '" + n + "'");
3917
3917
  t += " " + n + '="' + pe(this.attributes[n]) + '"';
3918
3918
  }
@@ -3960,7 +3960,7 @@ class ct {
3960
3960
  return bn.call(this, "a");
3961
3961
  }
3962
3962
  }
3963
- class fp {
3963
+ class vp {
3964
3964
  constructor(e, t, o) {
3965
3965
  this.alt = t, this.src = e, this.classes = ["mord"], this.height = 0, this.depth = 0, this.maxFontSize = 0, this.style = o;
3966
3966
  }
@@ -3981,7 +3981,7 @@ class fp {
3981
3981
  return t && (e += ' style="' + pe(t) + '"'), e += "'/>", e;
3982
3982
  }
3983
3983
  }
3984
- var vp = {
3984
+ var bp = {
3985
3985
  î: "ı̂",
3986
3986
  ï: "ı̈",
3987
3987
  í: "ı́",
@@ -3991,8 +3991,8 @@ var vp = {
3991
3991
  class ke {
3992
3992
  constructor(e, t, o, s, n, i, l, m) {
3993
3993
  this.text = e, this.height = t || 0, this.depth = o || 0, this.italic = s || 0, this.skew = n || 0, this.width = i || 0, this.classes = l || [], this.style = m || {}, this.maxFontSize = 0;
3994
- var u = op(this.text.charCodeAt(0));
3995
- u && this.classes.push(u + "_fallback"), /[îïíì]/.test(this.text) && (this.text = vp[this.text]);
3994
+ var u = sp(this.text.charCodeAt(0));
3995
+ u && this.classes.push(u + "_fallback"), /[îïíì]/.test(this.text) && (this.text = bp[this.text]);
3996
3996
  }
3997
3997
  hasClass(e) {
3998
3998
  return this.classes.includes(e);
@@ -4074,17 +4074,17 @@ class no {
4074
4074
  return e += "/>", e;
4075
4075
  }
4076
4076
  }
4077
- function bp(a) {
4077
+ function jp(a) {
4078
4078
  if (a instanceof ke)
4079
4079
  return a;
4080
4080
  throw new Error("Expected symbolNode but got " + String(a) + ".");
4081
4081
  }
4082
- function jp(a) {
4082
+ function kp(a) {
4083
4083
  if (a instanceof Fa)
4084
4084
  return a;
4085
4085
  throw new Error("Expected span<HtmlDomNode> but got " + String(a) + ".");
4086
4086
  }
4087
- var kp = (a) => a instanceof Fa || a instanceof ct || a instanceof ka, Ae = {
4087
+ var Fp = (a) => a instanceof Fa || a instanceof ct || a instanceof ka, Ae = {
4088
4088
  "AMS-Regular": {
4089
4089
  32: [0, 0, 0, 0, 0.25],
4090
4090
  65: [0, 0.68889, 0, 0, 0.72222],
@@ -6314,7 +6314,7 @@ var kp = (a) => a instanceof Fa || a instanceof ct || a instanceof ka, Ae = {
6314
6314
  ю: "m",
6315
6315
  я: "r"
6316
6316
  };
6317
- function Fp(a, e) {
6317
+ function yp(a, e) {
6318
6318
  Ae[a] = e;
6319
6319
  }
6320
6320
  function wo(a, e, t) {
@@ -6331,7 +6331,7 @@ function wo(a, e, t) {
6331
6331
  };
6332
6332
  }
6333
6333
  var At = {};
6334
- function yp(a) {
6334
+ function _p(a) {
6335
6335
  var e;
6336
6336
  if (a >= 5 ? e = 0 : a >= 3 ? e = 1 : e = 2, !At[e]) {
6337
6337
  var t = At[e] = {
@@ -6342,14 +6342,14 @@ function yp(a) {
6342
6342
  }
6343
6343
  return At[e];
6344
6344
  }
6345
- var _p = {
6345
+ var Dp = {
6346
6346
  bin: 1,
6347
6347
  close: 1,
6348
6348
  inner: 1,
6349
6349
  open: 1,
6350
6350
  punct: 1,
6351
6351
  rel: 1
6352
- }, Dp = {
6352
+ }, wp = {
6353
6353
  "accent-token": 1,
6354
6354
  mathord: 1,
6355
6355
  "op-token": 1,
@@ -7082,7 +7082,7 @@ var Ua = [
7082
7082
  // 0-9 bold sans-serif
7083
7083
  ["mathtt", "texttt", "Typewriter-Regular"]
7084
7084
  // 0-9 monospace
7085
- ], wp = (a, e) => {
7085
+ ], Ip = (a, e) => {
7086
7086
  var t = a.charCodeAt(0), o = a.charCodeAt(1), s = (t - 55296) * 1024 + (o - 56320) + 65536, n = e === "math" ? 0 : 1;
7087
7087
  if (119808 <= s && s < 120484) {
7088
7088
  var i = Math.floor((s - 119808) / 26);
@@ -7123,7 +7123,7 @@ var Ua = [
7123
7123
  return m;
7124
7124
  }, Io = function(e, t, o, s) {
7125
7125
  return s === void 0 && (s = []), o.font === "boldsymbol" && ut(e, "Main-Bold", t).metrics ? ue(e, "Main-Bold", t, o, s.concat(["mathbf"])) : e === "\\" || K[t][e].font === "main" ? ue(e, "Main-Regular", t, o, s) : ue(e, "AMS-Regular", t, o, s.concat(["amsrm"]));
7126
- }, Ip = function(e, t, o, s, n) {
7126
+ }, xp = function(e, t, o, s, n) {
7127
7127
  return n !== "textord" && ut(e, "Math-BoldItalic", t).metrics ? {
7128
7128
  fontName: "Math-BoldItalic",
7129
7129
  fontClass: "boldsymbol"
@@ -7133,12 +7133,12 @@ var Ua = [
7133
7133
  };
7134
7134
  }, dt = function(e, t, o) {
7135
7135
  var s = e.mode, n = e.text, i = ["mord"], l = s === "math" || s === "text" && t.font, m = l ? t.font : t.fontFamily, u = "", g = "";
7136
- if (n.charCodeAt(0) === 55349 && ([u, g] = wp(n, s)), u.length > 0)
7136
+ if (n.charCodeAt(0) === 55349 && ([u, g] = Ip(n, s)), u.length > 0)
7137
7137
  return ue(n, u, s, t, i.concat(g));
7138
7138
  if (m) {
7139
7139
  var h, b;
7140
7140
  if (m === "boldsymbol") {
7141
- var k = Ip(n, s, t, i, o);
7141
+ var k = xp(n, s, t, i, o);
7142
7142
  h = k.fontName, b = [k.fontClass];
7143
7143
  } else l ? (h = io[m].fontName, b = [m]) : (h = Ka(m, t.fontWeight, t.fontShape), b = [m, t.fontWeight, t.fontShape]);
7144
7144
  if (ut(n, h, s).metrics)
@@ -7165,7 +7165,7 @@ var Ua = [
7165
7165
  }
7166
7166
  } else
7167
7167
  throw new Error("unexpected type: " + o + " in makeOrd");
7168
- }, xp = (a, e) => {
7168
+ }, Ep = (a, e) => {
7169
7169
  if (Ze(a.classes) !== Ze(e.classes) || a.skew !== e.skew || a.maxFontSize !== e.maxFontSize || a.italic !== 0 && a.hasClass("mathnormal"))
7170
7170
  return !1;
7171
7171
  if (a.classes.length === 1) {
@@ -7183,7 +7183,7 @@ var Ua = [
7183
7183
  }, kn = (a) => {
7184
7184
  for (var e = 0; e < a.length - 1; e++) {
7185
7185
  var t = a[e], o = a[e + 1];
7186
- t instanceof ke && o instanceof ke && xp(t, o) && (t.text += o.text, t.height = Math.max(t.height, o.height), t.depth = Math.max(t.depth, o.depth), t.italic = o.italic, a.splice(e + 1, 1), e--);
7186
+ t instanceof ke && o instanceof ke && Ep(t, o) && (t.text += o.text, t.height = Math.max(t.height, o.height), t.depth = Math.max(t.depth, o.depth), t.italic = o.italic, a.splice(e + 1, 1), e--);
7187
7187
  }
7188
7188
  return a;
7189
7189
  }, xo = function(e) {
@@ -7198,7 +7198,7 @@ var Ua = [
7198
7198
  }, Je = (a, e, t, o) => new Fa(a, e, t, o), va = function(e, t, o) {
7199
7199
  var s = I([e], [], t);
7200
7200
  return s.height = Math.max(o || t.fontMetrics().defaultRuleThickness, t.minRuleThickness), s.style.borderBottomWidth = C(s.height), s.maxFontSize = 1, s;
7201
- }, Ep = function(e, t, o, s) {
7201
+ }, Cp = function(e, t, o, s) {
7202
7202
  var n = new ct(e, t, o, s);
7203
7203
  return xo(n), n;
7204
7204
  }, Pe = function(e) {
@@ -7206,7 +7206,7 @@ var Ua = [
7206
7206
  return xo(t), t;
7207
7207
  }, ba = function(e, t) {
7208
7208
  return e instanceof ka ? I([], [e], t) : e;
7209
- }, Cp = function(e) {
7209
+ }, Ap = function(e) {
7210
7210
  if (e.positionType === "individualShift") {
7211
7211
  for (var t = e.children, o = [t[0]], s = -t[0].shift - t[0].elem.depth, n = s, i = 1; i < t.length; i++) {
7212
7212
  var l = -t[i].shift - n - t[i].elem.depth, m = l - (t[i - 1].elem.height + t[i - 1].elem.depth);
@@ -7248,7 +7248,7 @@ var Ua = [
7248
7248
  for (var {
7249
7249
  children: o,
7250
7250
  depth: s
7251
- } = Cp(e), n = 0, i = 0; i < o.length; i++) {
7251
+ } = Ap(e), n = 0, i = 0; i < o.length; i++) {
7252
7252
  var l = o[i];
7253
7253
  if (l.type === "elem") {
7254
7254
  var m = l.elem;
@@ -7385,7 +7385,7 @@ var Ua = [
7385
7385
  }, qe = {
7386
7386
  number: 5,
7387
7387
  unit: "mu"
7388
- }, Ap = {
7388
+ }, Bp = {
7389
7389
  mord: {
7390
7390
  mop: Y,
7391
7391
  mbin: sa,
@@ -7435,7 +7435,7 @@ var Ua = [
7435
7435
  mpunct: Y,
7436
7436
  minner: Y
7437
7437
  }
7438
- }, Bp = {
7438
+ }, Mp = {
7439
7439
  mord: {
7440
7440
  mop: Y
7441
7441
  },
@@ -7500,12 +7500,12 @@ var pt = function(e) {
7500
7500
  return e.type === "ordgroup" && e.body.length === 1 ? e.body[0] : e;
7501
7501
  }, te = function(e) {
7502
7502
  return e.type === "ordgroup" ? e.body : [e];
7503
- }, Mp = /* @__PURE__ */ new Set(["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"]), Sp = /* @__PURE__ */ new Set(["rightmost", "mrel", "mclose", "mpunct"]), zp = {
7503
+ }, Sp = /* @__PURE__ */ new Set(["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"]), zp = /* @__PURE__ */ new Set(["rightmost", "mrel", "mclose", "mpunct"]), Tp = {
7504
7504
  display: L.DISPLAY,
7505
7505
  text: L.TEXT,
7506
7506
  script: L.SCRIPT,
7507
7507
  scriptscript: L.SCRIPTSCRIPT
7508
- }, Tp = {
7508
+ }, qp = {
7509
7509
  mord: "mord",
7510
7510
  mop: "mop",
7511
7511
  mbin: "mbin",
@@ -7529,16 +7529,16 @@ var pt = function(e) {
7529
7529
  var u = t;
7530
7530
  if (e.length === 1) {
7531
7531
  var g = e[0];
7532
- g.type === "sizing" ? u = t.havingSize(g.size) : g.type === "styling" && (u = t.havingStyle(zp[g.style]));
7532
+ g.type === "sizing" ? u = t.havingSize(g.size) : g.type === "styling" && (u = t.havingStyle(Tp[g.style]));
7533
7533
  }
7534
7534
  var h = I([s[0] || "leftmost"], [], t), b = I([s[1] || "rightmost"], [], t), k = o === "root";
7535
7535
  return lo(n, (y, F) => {
7536
7536
  var _ = F.classes[0], D = y.classes[0];
7537
- _ === "mbin" && Sp.has(D) ? F.classes[0] = "mord" : D === "mbin" && Mp.has(_) && (y.classes[0] = "mord");
7537
+ _ === "mbin" && zp.has(D) ? F.classes[0] = "mord" : D === "mbin" && Sp.has(_) && (y.classes[0] = "mord");
7538
7538
  }, {
7539
7539
  node: h
7540
7540
  }, b, k), lo(n, (y, F) => {
7541
- var _, D, M = mo(F), S = mo(y), T = M && S ? y.hasClass("mtight") ? (_ = Bp[M]) == null ? void 0 : _[S] : (D = Ap[M]) == null ? void 0 : D[S] : null;
7541
+ var _, D, M = mo(F), S = mo(y), T = M && S ? y.hasClass("mtight") ? (_ = Mp[M]) == null ? void 0 : _[S] : (D = Bp[M]) == null ? void 0 : D[S] : null;
7542
7542
  if (T)
7543
7543
  return Fn(T, u);
7544
7544
  }, {
@@ -7581,7 +7581,7 @@ var pt = function(e) {
7581
7581
  return null;
7582
7582
  t && (e = po(e, t));
7583
7583
  var o = e.classes[0];
7584
- return Tp[o] || null;
7584
+ return qp[o] || null;
7585
7585
  }, Ba = function(e, t) {
7586
7586
  var o = ["nulldelimiter"].concat(e.baseSizingClasses());
7587
7587
  return I(t.concat(o));
@@ -7734,7 +7734,7 @@ class xn {
7734
7734
  return this.character ? this.character : " ";
7735
7735
  }
7736
7736
  }
7737
- var qp = /* @__PURE__ */ new Set(["\\imath", "\\jmath"]), Lp = /* @__PURE__ */ new Set(["mrow", "mtable"]), De = function(e, t, o) {
7737
+ var Lp = /* @__PURE__ */ new Set(["\\imath", "\\jmath"]), Rp = /* @__PURE__ */ new Set(["mrow", "mtable"]), De = function(e, t, o) {
7738
7738
  return K[t][e] && K[t][e].replace && e.charCodeAt(0) !== 55349 && !(jn.hasOwnProperty(e) && o && (o.fontFamily && o.fontFamily.slice(4, 6) === "tt" || o.font && o.font.slice(4, 6) === "tt")) && (e = K[t][e].replace), new oe(e);
7739
7739
  }, Eo = function(e) {
7740
7740
  return e.length === 1 ? e[0] : new E("mrow", e);
@@ -7772,7 +7772,7 @@ var qp = /* @__PURE__ */ new Set(["\\imath", "\\jmath"]), Lp = /* @__PURE__ */ n
7772
7772
  if (o === "mathtt")
7773
7773
  return "monospace";
7774
7774
  var n = e.text;
7775
- if (qp.has(n))
7775
+ if (Lp.has(n))
7776
7776
  return null;
7777
7777
  if (K[s][n]) {
7778
7778
  var i = K[s][n].replace;
@@ -7839,7 +7839,7 @@ var ye = function(e, t, o) {
7839
7839
  };
7840
7840
  function vs(a, e, t, o, s) {
7841
7841
  var n = ye(a, t), i;
7842
- n.length === 1 && n[0] instanceof E && Lp.has(n[0].type) ? i = n[0] : i = new E("mrow", n);
7842
+ n.length === 1 && n[0] instanceof E && Rp.has(n[0].type) ? i = n[0] : i = new E("mrow", n);
7843
7843
  var l = new E("annotation", [new oe(e)]);
7844
7844
  l.setAttribute("encoding", "application/x-tex");
7845
7845
  var m = new E("semantics", [i, l]), u = new E("math", [m]);
@@ -7847,7 +7847,7 @@ function vs(a, e, t, o, s) {
7847
7847
  var g = s ? "katex" : "katex-mathml";
7848
7848
  return I([g], [u]);
7849
7849
  }
7850
- var Rp = [
7850
+ var Hp = [
7851
7851
  // Each element contains [textsize, scriptsize, scriptscriptsize].
7852
7852
  // The size mappings are taken from TeX with \normalsize=10pt.
7853
7853
  [1, 1, 1],
@@ -7887,7 +7887,7 @@ var Rp = [
7887
7887
  2.074,
7888
7888
  2.488
7889
7889
  ], js = function(e, t) {
7890
- return t.size < 2 ? e : Rp[e - 1][t.size - 1];
7890
+ return t.size < 2 ? e : Hp[e - 1][t.size - 1];
7891
7891
  };
7892
7892
  class Le {
7893
7893
  constructor(e) {
@@ -8047,7 +8047,7 @@ class Le {
8047
8047
  * Return the font metrics for this size.
8048
8048
  */
8049
8049
  fontMetrics() {
8050
- return this._fontMetrics || (this._fontMetrics = yp(this.size)), this._fontMetrics;
8050
+ return this._fontMetrics || (this._fontMetrics = _p(this.size)), this._fontMetrics;
8051
8051
  }
8052
8052
  /**
8053
8053
  * Gets the CSS color of the current options object
@@ -8069,7 +8069,7 @@ var En = function(e) {
8069
8069
  t.leqno && o.push("leqno"), t.fleqn && o.push("fleqn"), e = I(o, [e]);
8070
8070
  }
8071
8071
  return e;
8072
- }, Hp = function(e, t, o) {
8072
+ }, Np = function(e, t, o) {
8073
8073
  var s = En(o), n;
8074
8074
  if (o.output === "mathml")
8075
8075
  return vs(e, t, s, o.displayMode, !0);
@@ -8081,10 +8081,10 @@ var En = function(e) {
8081
8081
  n = I(["katex"], [l, m]);
8082
8082
  }
8083
8083
  return Cn(n, o);
8084
- }, Np = function(e, t, o) {
8084
+ }, Op = function(e, t, o) {
8085
8085
  var s = En(o), n = co(e, s), i = I(["katex"], [n]);
8086
8086
  return Cn(i, o);
8087
- }, Op = {
8087
+ }, Pp = {
8088
8088
  widehat: "^",
8089
8089
  widecheck: "ˇ",
8090
8090
  widetilde: "~",
@@ -8132,9 +8132,9 @@ var En = function(e) {
8132
8132
  "\\cdleftarrow": "←",
8133
8133
  "\\cdlongequal": "="
8134
8134
  }, gt = function(e) {
8135
- var t = new E("mo", [new oe(Op[e.replace(/^\\/, "")])]);
8135
+ var t = new E("mo", [new oe(Pp[e.replace(/^\\/, "")])]);
8136
8136
  return t.setAttribute("stretchy", "true"), t;
8137
- }, Pp = {
8137
+ }, $p = {
8138
8138
  // path(s), minWidth, height, align
8139
8139
  overrightarrow: [["rightarrow"], 0.888, 522, "xMaxYMin"],
8140
8140
  overleftarrow: [["leftarrow"], 0.888, 522, "xMinYMin"],
@@ -8183,10 +8183,10 @@ var En = function(e) {
8183
8183
  xrightleftarrows: [["baraboveleftarrow", "rightarrowabovebar"], 1.75, 901],
8184
8184
  xrightequilibrium: [["baraboveshortleftharpoon", "rightharpoonaboveshortbar"], 1.75, 716],
8185
8185
  xleftequilibrium: [["shortbaraboveleftharpoon", "shortrightharpoonabovebar"], 1.75, 716]
8186
- }, $p = /* @__PURE__ */ new Set(["widehat", "widecheck", "widetilde", "utilde"]), ht = function(e, t) {
8186
+ }, Gp = /* @__PURE__ */ new Set(["widehat", "widecheck", "widetilde", "utilde"]), ht = function(e, t) {
8187
8187
  function o() {
8188
8188
  var l = 4e5, m = e.label.slice(1);
8189
- if ($p.has(m)) {
8189
+ if (Gp.has(m)) {
8190
8190
  var u = e, g = u.base.type === "ordgroup" ? u.base.body.length : 1, h, b, k;
8191
8191
  if (g > 5)
8192
8192
  m === "widehat" || m === "widecheck" ? (h = 420, l = 2364, k = 0.42, b = m + "4") : (h = 312, l = 2340, k = 0.34, b = "tilde4");
@@ -8206,7 +8206,7 @@ var En = function(e) {
8206
8206
  height: k
8207
8207
  };
8208
8208
  } else {
8209
- var D = [], M = Pp[m], [S, T, N] = M, R = N / 1e3, O = S.length, U, G;
8209
+ var D = [], M = $p[m], [S, T, N] = M, R = N / 1e3, O = S.length, U, G;
8210
8210
  if (O === 1) {
8211
8211
  var he = M[3];
8212
8212
  U = ["hide-tail"], G = [he];
@@ -8245,7 +8245,7 @@ var En = function(e) {
8245
8245
  height: i
8246
8246
  } = o();
8247
8247
  return s.height = i, s.style.height = C(i), n > 0 && (s.style.minWidth = C(n)), s;
8248
- }, Gp = function(e, t, o, s, n) {
8248
+ }, Wp = function(e, t, o, s, n) {
8249
8249
  var i, l = e.height + e.depth + o + s;
8250
8250
  if (/fbox|color|angl/.test(t)) {
8251
8251
  if (i = I(["stretchy", t], [], n), t === "fbox") {
@@ -8287,16 +8287,16 @@ function ft(a) {
8287
8287
  return e;
8288
8288
  }
8289
8289
  function vt(a) {
8290
- return a && (a.type === "atom" || Dp.hasOwnProperty(a.type)) ? a : null;
8290
+ return a && (a.type === "atom" || wp.hasOwnProperty(a.type)) ? a : null;
8291
8291
  }
8292
8292
  var An = (a) => {
8293
8293
  if (a instanceof ke)
8294
8294
  return a;
8295
- if (kp(a) && a.children.length === 1)
8295
+ if (Fp(a) && a.children.length === 1)
8296
8296
  return An(a.children[0]);
8297
8297
  }, Ao = (a, e) => {
8298
8298
  var t, o, s;
8299
- a && a.type === "supsub" ? (o = H(a.base, "accent"), t = o.base, a.base = t, s = jp($(a, e)), a.base = o) : (o = H(a, "accent"), t = o.base);
8299
+ a && a.type === "supsub" ? (o = H(a.base, "accent"), t = o.base, a.base = t, s = kp($(a, e)), a.base = o) : (o = H(a, "accent"), t = o.base);
8300
8300
  var n = $(t, e.havingCrampedStyle()), i = o.isShifty && Ne(t), l = 0;
8301
8301
  if (i) {
8302
8302
  var m, u;
@@ -8324,7 +8324,7 @@ var An = (a) => {
8324
8324
  o.label === "\\vec" ? (k = _n("vec", e), y = yn.vec[1]) : (k = dt({
8325
8325
  mode: o.mode,
8326
8326
  text: o.label
8327
- }, e, "textord"), k = bp(k), k.italic = 0, y = k.width, g && (h += k.depth)), b = I(["accent-body"], [k]);
8327
+ }, e, "textord"), k = jp(k), k.italic = 0, y = k.width, g && (h += k.depth)), b = I(["accent-body"], [k]);
8328
8328
  var F = o.label === "\\textcircled";
8329
8329
  F && (b.classes.push("accent-full"), h = n.height);
8330
8330
  var _ = l;
@@ -8347,7 +8347,7 @@ var An = (a) => {
8347
8347
  }, Bn = (a, e) => {
8348
8348
  var t = a.isStretchy ? gt(a.label) : new E("mo", [De(a.label, a.mode)]), o = new E("mover", [W(a.base, e), t]);
8349
8349
  return o.setAttribute("accent", "true"), o;
8350
- }, Wp = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((a) => "\\" + a).join("|"));
8350
+ }, Vp = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((a) => "\\" + a).join("|"));
8351
8351
  A({
8352
8352
  type: "accent",
8353
8353
  names: ["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring", "\\widecheck", "\\widehat", "\\widetilde", "\\overrightarrow", "\\overleftarrow", "\\Overrightarrow", "\\overleftrightarrow", "\\overgroup", "\\overlinesegment", "\\overleftharpoon", "\\overrightharpoon"],
@@ -8355,7 +8355,7 @@ A({
8355
8355
  numArgs: 1
8356
8356
  },
8357
8357
  handler: (a, e) => {
8358
- var t = pt(e[0]), o = !Wp.test(a.funcName), s = !o || a.funcName === "\\widehat" || a.funcName === "\\widetilde" || a.funcName === "\\widecheck";
8358
+ var t = pt(e[0]), o = !Vp.test(a.funcName), s = !o || a.funcName === "\\widehat" || a.funcName === "\\widetilde" || a.funcName === "\\widecheck";
8359
8359
  return {
8360
8360
  type: "accent",
8361
8361
  mode: a.parser.mode,
@@ -8667,7 +8667,7 @@ A({
8667
8667
  return o.setAttribute("style", "text-shadow: 0.02em 0.01em 0.04px"), o;
8668
8668
  }
8669
8669
  });
8670
- var Vp = {
8670
+ var Up = {
8671
8671
  ">": "\\\\cdrightarrow",
8672
8672
  "<": "\\\\cdleftarrow",
8673
8673
  "=": "\\\\cdlongequal",
@@ -8680,9 +8680,9 @@ var Vp = {
8680
8680
  body: [],
8681
8681
  mode: "math",
8682
8682
  style: "display"
8683
- }), Fs = (a) => a.type === "textord" && a.text === "@", Up = (a, e) => (a.type === "mathord" || a.type === "atom") && a.text === e;
8684
- function Kp(a, e, t) {
8685
- var o = Vp[a];
8683
+ }), Fs = (a) => a.type === "textord" && a.text === "@", Kp = (a, e) => (a.type === "mathord" || a.type === "atom") && a.text === e;
8684
+ function Xp(a, e, t) {
8685
+ var o = Up[a];
8686
8686
  switch (o) {
8687
8687
  case "\\\\cdrightarrow":
8688
8688
  case "\\\\cdleftarrow":
@@ -8719,7 +8719,7 @@ function Kp(a, e, t) {
8719
8719
  };
8720
8720
  }
8721
8721
  }
8722
- function Xp(a) {
8722
+ function Yp(a) {
8723
8723
  var e = [];
8724
8724
  for (a.gullet.beginGroup(), a.gullet.macros.set("\\cr", "\\\\\\relax"), a.gullet.beginGroup(); ; ) {
8725
8725
  e.push(a.parseExpression(!1, "\\\\")), a.gullet.endGroup(), a.gullet.beginGroup();
@@ -8750,7 +8750,7 @@ function Xp(a) {
8750
8750
  }, !"=|.".includes(u)) if ("<>AV".includes(u))
8751
8751
  for (var h = 0; h < 2; h++) {
8752
8752
  for (var b = !0, k = m + 1; k < i.length; k++) {
8753
- if (Up(i[k], u)) {
8753
+ if (Kp(i[k], u)) {
8754
8754
  b = !1, m = k;
8755
8755
  break;
8756
8756
  }
@@ -8763,7 +8763,7 @@ function Xp(a) {
8763
8763
  }
8764
8764
  else
8765
8765
  throw new x('Expected one of "<>AV=|." after @', i[m]);
8766
- var y = Kp(u, g, a), F = {
8766
+ var y = Xp(u, g, a), F = {
8767
8767
  type: "styling",
8768
8768
  body: [y],
8769
8769
  mode: "math",
@@ -8971,7 +8971,7 @@ var uo = {
8971
8971
  if (/^(?:[\\{}$&#^_]|EOF)$/.test(e))
8972
8972
  throw new x("Expected a control sequence", a);
8973
8973
  return e;
8974
- }, Yp = (a) => {
8974
+ }, Zp = (a) => {
8975
8975
  var e = a.gullet.popToken();
8976
8976
  return e.text === "=" && (e = a.gullet.popToken(), e.text === " " && (e = a.gullet.popToken())), e;
8977
8977
  }, Ln = (a, e, t, o) => {
@@ -9069,7 +9069,7 @@ A({
9069
9069
  funcName: t
9070
9070
  } = a, o = qn(e.gullet.popToken());
9071
9071
  e.gullet.consumeSpaces();
9072
- var s = Yp(e);
9072
+ var s = Zp(e);
9073
9073
  return Ln(e, o, s, t === "\\\\globallet"), {
9074
9074
  type: "internal",
9075
9075
  mode: e.mode
@@ -9110,13 +9110,13 @@ var Ia = function(e, t, o) {
9110
9110
  }, Rn = function(e, t, o) {
9111
9111
  var s = t.havingBaseStyle(o), n = (1 - t.sizeMultiplier / s.sizeMultiplier) * t.fontMetrics().axisHeight;
9112
9112
  e.classes.push("delimcenter"), e.style.top = C(n), e.height -= n, e.depth += n;
9113
- }, Zp = function(e, t, o, s, n, i) {
9113
+ }, Qp = function(e, t, o, s, n, i) {
9114
9114
  var l = ue(e, "Main-Regular", n, s), m = Bo(l, t, s, i);
9115
9115
  return Rn(m, s, t), m;
9116
- }, Qp = function(e, t, o, s) {
9116
+ }, Jp = function(e, t, o, s) {
9117
9117
  return ue(e, "Size" + t + "-Regular", o, s);
9118
9118
  }, Hn = function(e, t, o, s, n, i) {
9119
- var l = Qp(e, t, n, s), m = Bo(I(["delimsizing", "size" + t], [l], s), L.TEXT, s, i);
9119
+ var l = Jp(e, t, n, s), m = Bo(I(["delimsizing", "size" + t], [l], s), L.TEXT, s, i);
9120
9120
  return o && Rn(m, s, L.TEXT), m;
9121
9121
  }, qt = function(e, t, o) {
9122
9122
  var s;
@@ -9127,7 +9127,7 @@ var Ia = function(e, t, o) {
9127
9127
  elem: n
9128
9128
  };
9129
9129
  }, Lt = function(e, t, o) {
9130
- var s = Ae["Size4-Regular"][e.charCodeAt(0)] ? Ae["Size4-Regular"][e.charCodeAt(0)][4] : Ae["Size1-Regular"][e.charCodeAt(0)][4], n = new Qe("inner", up(e, Math.round(1e3 * t))), i = new He([n], {
9130
+ var s = Ae["Size4-Regular"][e.charCodeAt(0)] ? Ae["Size4-Regular"][e.charCodeAt(0)][4] : Ae["Size1-Regular"][e.charCodeAt(0)][4], n = new Qe("inner", dp(e, Math.round(1e3 * t))), i = new He([n], {
9131
9131
  width: C(s),
9132
9132
  height: C(t),
9133
9133
  // Override CSS rule `.katex svg { width: 100% }`
@@ -9142,11 +9142,11 @@ var Ia = function(e, t, o) {
9142
9142
  }, go = 8e-3, Za = {
9143
9143
  type: "kern",
9144
9144
  size: -1 * go
9145
- }, Jp = /* @__PURE__ */ new Set(["|", "\\lvert", "\\rvert", "\\vert"]), em = /* @__PURE__ */ new Set(["\\|", "\\lVert", "\\rVert", "\\Vert"]), Nn = function(e, t, o, s, n, i) {
9145
+ }, em = /* @__PURE__ */ new Set(["|", "\\lvert", "\\rvert", "\\vert"]), am = /* @__PURE__ */ new Set(["\\|", "\\lVert", "\\rVert", "\\Vert"]), Nn = function(e, t, o, s, n, i) {
9146
9146
  var l, m, u, g, h = "", b = 0;
9147
9147
  l = u = g = e, m = null;
9148
9148
  var k = "Size1-Regular";
9149
- e === "\\uparrow" ? u = g = "⏐" : e === "\\Uparrow" ? u = g = "‖" : e === "\\downarrow" ? l = u = "⏐" : e === "\\Downarrow" ? l = u = "‖" : e === "\\updownarrow" ? (l = "\\uparrow", u = "⏐", g = "\\downarrow") : e === "\\Updownarrow" ? (l = "\\Uparrow", u = "‖", g = "\\Downarrow") : Jp.has(e) ? (u = "∣", h = "vert", b = 333) : em.has(e) ? (u = "∥", h = "doublevert", b = 556) : e === "[" || e === "\\lbrack" ? (l = "⎡", u = "⎢", g = "⎣", k = "Size4-Regular", h = "lbrack", b = 667) : e === "]" || e === "\\rbrack" ? (l = "⎤", u = "⎥", g = "⎦", k = "Size4-Regular", h = "rbrack", b = 667) : e === "\\lfloor" || e === "⌊" ? (u = l = "⎢", g = "⎣", k = "Size4-Regular", h = "lfloor", b = 667) : e === "\\lceil" || e === "⌈" ? (l = "⎡", u = g = "⎢", k = "Size4-Regular", h = "lceil", b = 667) : e === "\\rfloor" || e === "⌋" ? (u = l = "⎥", g = "⎦", k = "Size4-Regular", h = "rfloor", b = 667) : e === "\\rceil" || e === "⌉" ? (l = "⎤", u = g = "⎥", k = "Size4-Regular", h = "rceil", b = 667) : e === "(" || e === "\\lparen" ? (l = "⎛", u = "⎜", g = "⎝", k = "Size4-Regular", h = "lparen", b = 875) : e === ")" || e === "\\rparen" ? (l = "⎞", u = "⎟", g = "⎠", k = "Size4-Regular", h = "rparen", b = 875) : e === "\\{" || e === "\\lbrace" ? (l = "⎧", m = "⎨", g = "⎩", u = "⎪", k = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (l = "⎫", m = "⎬", g = "⎭", u = "⎪", k = "Size4-Regular") : e === "\\lgroup" || e === "⟮" ? (l = "⎧", g = "⎩", u = "⎪", k = "Size4-Regular") : e === "\\rgroup" || e === "⟯" ? (l = "⎫", g = "⎭", u = "⎪", k = "Size4-Regular") : e === "\\lmoustache" || e === "⎰" ? (l = "⎧", g = "⎭", u = "⎪", k = "Size4-Regular") : (e === "\\rmoustache" || e === "⎱") && (l = "⎫", g = "⎩", u = "⎪", k = "Size4-Regular");
9149
+ e === "\\uparrow" ? u = g = "⏐" : e === "\\Uparrow" ? u = g = "‖" : e === "\\downarrow" ? l = u = "⏐" : e === "\\Downarrow" ? l = u = "‖" : e === "\\updownarrow" ? (l = "\\uparrow", u = "⏐", g = "\\downarrow") : e === "\\Updownarrow" ? (l = "\\Uparrow", u = "‖", g = "\\Downarrow") : em.has(e) ? (u = "∣", h = "vert", b = 333) : am.has(e) ? (u = "∥", h = "doublevert", b = 556) : e === "[" || e === "\\lbrack" ? (l = "⎡", u = "⎢", g = "⎣", k = "Size4-Regular", h = "lbrack", b = 667) : e === "]" || e === "\\rbrack" ? (l = "⎤", u = "⎥", g = "⎦", k = "Size4-Regular", h = "rbrack", b = 667) : e === "\\lfloor" || e === "⌊" ? (u = l = "⎢", g = "⎣", k = "Size4-Regular", h = "lfloor", b = 667) : e === "\\lceil" || e === "⌈" ? (l = "⎡", u = g = "⎢", k = "Size4-Regular", h = "lceil", b = 667) : e === "\\rfloor" || e === "⌋" ? (u = l = "⎥", g = "⎦", k = "Size4-Regular", h = "rfloor", b = 667) : e === "\\rceil" || e === "⌉" ? (l = "⎤", u = g = "⎥", k = "Size4-Regular", h = "rceil", b = 667) : e === "(" || e === "\\lparen" ? (l = "⎛", u = "⎜", g = "⎝", k = "Size4-Regular", h = "lparen", b = 875) : e === ")" || e === "\\rparen" ? (l = "⎞", u = "⎟", g = "⎠", k = "Size4-Regular", h = "rparen", b = 875) : e === "\\{" || e === "\\lbrace" ? (l = "⎧", m = "⎨", g = "⎩", u = "⎪", k = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (l = "⎫", m = "⎬", g = "⎭", u = "⎪", k = "Size4-Regular") : e === "\\lgroup" || e === "⟮" ? (l = "⎧", g = "⎩", u = "⎪", k = "Size4-Regular") : e === "\\rgroup" || e === "⟯" ? (l = "⎫", g = "⎭", u = "⎪", k = "Size4-Regular") : e === "\\lmoustache" || e === "⎰" ? (l = "⎧", g = "⎭", u = "⎪", k = "Size4-Regular") : (e === "\\rmoustache" || e === "⎱") && (l = "⎫", g = "⎩", u = "⎪", k = "Size4-Regular");
9150
9150
  var y = Ia(l, k, n), F = y.height + y.depth, _ = Ia(u, k, n), D = _.height + _.depth, M = Ia(g, k, n), S = M.height + M.depth, T = 0, N = 1;
9151
9151
  if (m !== null) {
9152
9152
  var R = Ia(m, k, n);
@@ -9156,7 +9156,7 @@ var Ia = function(e, t, o) {
9156
9156
  o && (he *= s.sizeMultiplier);
9157
9157
  var me = G / 2 - he, ne = [];
9158
9158
  if (h.length > 0) {
9159
- var ta = G - F - S, fe = Math.round(G * 1e3), we = dp(h, Math.round(ta * 1e3)), $e = new Qe(h, we), pa = C(b / 1e3), ma = C(fe / 1e3), Dt = new He([$e], {
9159
+ var ta = G - F - S, fe = Math.round(G * 1e3), we = gp(h, Math.round(ta * 1e3)), $e = new Qe(h, we), pa = C(b / 1e3), ma = C(fe / 1e3), Dt = new He([$e], {
9160
9160
  width: pa,
9161
9161
  height: ma,
9162
9162
  viewBox: "0 0 " + b + " " + fe
@@ -9182,7 +9182,7 @@ var Ia = function(e, t, o) {
9182
9182
  });
9183
9183
  return Bo(I(["delimsizing", "mult"], [Ta], Ie), L.TEXT, s, i);
9184
9184
  }, Rt = 80, Ht = 0.08, Nt = function(e, t, o, s, n) {
9185
- var i = cp(e, s, o), l = new Qe(e, i), m = new He([l], {
9185
+ var i = up(e, s, o), l = new Qe(e, i), m = new He([l], {
9186
9186
  // Note: 1000:1 ratio of viewBox to document em width.
9187
9187
  width: "400em",
9188
9188
  height: C(t),
@@ -9190,7 +9190,7 @@ var Ia = function(e, t, o) {
9190
9190
  preserveAspectRatio: "xMinYMin slice"
9191
9191
  });
9192
9192
  return Je(["hide-tail"], [m], n);
9193
- }, am = function(e, t) {
9193
+ }, tm = function(e, t) {
9194
9194
  var o = t.havingBaseSizing(), s = Wn("\\surd", e * o.sizeMultiplier, Gn, o), n = o.sizeMultiplier, i = Math.max(0, t.minRuleThickness - t.fontMetrics().sqrtRuleThickness), l, m = 0, u = 0, g = 0, h;
9195
9195
  return s.type === "small" ? (g = 1e3 + 1e3 * i + Rt, e < 1 ? n = 1 : e < 1.4 && (n = 0.7), m = (1 + i + Ht) / n, u = (1 + i) / n, l = Nt("sqrtMain", m, g, i, t), l.style.minWidth = "0.853em", h = 0.833 / n) : s.type === "large" ? (g = (1e3 + Rt) * xa[s.size], u = (xa[s.size] + i) / n, m = (xa[s.size] + i + Ht) / n, l = Nt("sqrtSize" + s.size, m, g, i, t), l.style.minWidth = "1.02em", h = 1 / n) : (m = e + i + Ht, u = e + i, g = Math.floor(1e3 * e + i) + Rt, l = Nt("sqrtTall", m, g, i, t), l.style.minWidth = "0.742em", h = 1.056), l.height = u, l.style.height = C(m), {
9196
9196
  span: l,
@@ -9201,13 +9201,13 @@ var Ia = function(e, t, o) {
9201
9201
  // have thicker rules.
9202
9202
  ruleWidth: (t.fontMetrics().sqrtRuleThickness + i) * n
9203
9203
  };
9204
- }, On = /* @__PURE__ */ new Set(["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "\\surd"]), tm = /* @__PURE__ */ new Set(["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱"]), Pn = /* @__PURE__ */ new Set(["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"]), xa = [0, 1.2, 1.8, 2.4, 3], $n = function(e, t, o, s, n) {
9204
+ }, On = /* @__PURE__ */ new Set(["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "\\surd"]), om = /* @__PURE__ */ new Set(["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱"]), Pn = /* @__PURE__ */ new Set(["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"]), xa = [0, 1.2, 1.8, 2.4, 3], $n = function(e, t, o, s, n) {
9205
9205
  if (e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle"), On.has(e) || Pn.has(e))
9206
9206
  return Hn(e, t, !1, o, s, n);
9207
- if (tm.has(e))
9207
+ if (om.has(e))
9208
9208
  return Nn(e, xa[t], !1, o, s, n);
9209
9209
  throw new x("Illegal delimiter: '" + e + "'");
9210
- }, om = [{
9210
+ }, sm = [{
9211
9211
  type: "small",
9212
9212
  style: L.SCRIPTSCRIPT
9213
9213
  }, {
@@ -9228,7 +9228,7 @@ var Ia = function(e, t, o) {
9228
9228
  }, {
9229
9229
  type: "large",
9230
9230
  size: 4
9231
- }], sm = [{
9231
+ }], nm = [{
9232
9232
  type: "small",
9233
9233
  style: L.SCRIPTSCRIPT
9234
9234
  }, {
@@ -9262,7 +9262,7 @@ var Ia = function(e, t, o) {
9262
9262
  size: 4
9263
9263
  }, {
9264
9264
  type: "stack"
9265
- }], nm = function(e) {
9265
+ }], rm = function(e) {
9266
9266
  if (e.type === "small")
9267
9267
  return "Main-Regular";
9268
9268
  if (e.type === "large")
@@ -9276,7 +9276,7 @@ var Ia = function(e, t, o) {
9276
9276
  var l = o[i];
9277
9277
  if (l.type === "stack")
9278
9278
  break;
9279
- var m = Ia(e, nm(l), "math"), u = m.height + m.depth;
9279
+ var m = Ia(e, rm(l), "math"), u = m.height + m.depth;
9280
9280
  if (l.type === "small") {
9281
9281
  var g = s.havingBaseStyle(l.style);
9282
9282
  u *= g.sizeMultiplier;
@@ -9288,9 +9288,9 @@ var Ia = function(e, t, o) {
9288
9288
  }, ho = function(e, t, o, s, n, i) {
9289
9289
  e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle");
9290
9290
  var l;
9291
- Pn.has(e) ? l = om : On.has(e) ? l = Gn : l = sm;
9291
+ Pn.has(e) ? l = sm : On.has(e) ? l = Gn : l = nm;
9292
9292
  var m = Wn(e, t, l, s);
9293
- return m.type === "small" ? Zp(e, m.style, o, s, n, i) : m.type === "large" ? Hn(e, m.size, o, s, n, i) : Nn(e, t, o, s, n, i);
9293
+ return m.type === "small" ? Qp(e, m.style, o, s, n, i) : m.type === "large" ? Hn(e, m.size, o, s, n, i) : Nn(e, t, o, s, n, i);
9294
9294
  }, Ot = function(e, t, o, s, n, i) {
9295
9295
  var l = s.fontMetrics().axisHeight * s.sizeMultiplier, m = 901, u = 5 / s.fontMetrics().ptPerEm, g = Math.max(t - l, o + l), h = Math.max(
9296
9296
  // In real TeX, calculations are done using integral values which are
@@ -9371,10 +9371,10 @@ var Ia = function(e, t, o) {
9371
9371
  mclass: "mord",
9372
9372
  size: 4
9373
9373
  }
9374
- }, rm = /* @__PURE__ */ new Set(["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "<", ">", "\\langle", "⟨", "\\rangle", "⟩", "\\lt", "\\gt", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱", "/", "\\backslash", "|", "\\vert", "\\|", "\\Vert", "\\uparrow", "\\Uparrow", "\\downarrow", "\\Downarrow", "\\updownarrow", "\\Updownarrow", "."]);
9374
+ }, im = /* @__PURE__ */ new Set(["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "<", ">", "\\langle", "⟨", "\\rangle", "⟩", "\\lt", "\\gt", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱", "/", "\\backslash", "|", "\\vert", "\\|", "\\Vert", "\\uparrow", "\\Uparrow", "\\downarrow", "\\Downarrow", "\\updownarrow", "\\Updownarrow", "."]);
9375
9375
  function jt(a, e) {
9376
9376
  var t = vt(a);
9377
- if (t && rm.has(t.text))
9377
+ if (t && im.has(t.text))
9378
9378
  return t;
9379
9379
  throw t ? new x("Invalid delimiter '" + t.text + "' after '" + e.funcName + "'", a) : new x("Invalid delimiter type '" + a.type + "'", a);
9380
9380
  }
@@ -9536,7 +9536,7 @@ var kt = (a, e) => {
9536
9536
  s = s / g.sizeMultiplier;
9537
9537
  var h = t.height + t.depth + m + u;
9538
9538
  t.style.paddingLeft = C(h / 2 + m);
9539
- var b = Math.floor(1e3 * h * s), k = pp(b), y = new He([new Qe("phase", k)], {
9539
+ var b = Math.floor(1e3 * h * s), k = mp(b), y = new He([new Qe("phase", k)], {
9540
9540
  width: "400em",
9541
9541
  height: C(b / 1e3),
9542
9542
  viewBox: "0 0 400000 " + b,
@@ -9550,7 +9550,7 @@ var kt = (a, e) => {
9550
9550
  e.fontMetrics().fboxrule,
9551
9551
  // default
9552
9552
  e.minRuleThickness
9553
- ), F = e.fontMetrics().fboxsep + (o === "colorbox" ? 0 : D), _ = F) : o === "angl" ? (D = Math.max(e.fontMetrics().defaultRuleThickness, e.minRuleThickness), F = 4 * D, _ = Math.max(0, 0.25 - t.depth)) : (F = l ? 0.2 : 0, _ = F), n = Gp(t, o, F, _, e), /fbox|boxed|fcolorbox/.test(o) ? (n.style.borderStyle = "solid", n.style.borderWidth = C(D)) : o === "angl" && D !== 0.049 && (n.style.borderTopWidth = C(D), n.style.borderRightWidth = C(D)), i = t.depth + _, a.backgroundColor && (n.style.backgroundColor = a.backgroundColor, a.borderColor && (n.style.borderColor = a.borderColor));
9553
+ ), F = e.fontMetrics().fboxsep + (o === "colorbox" ? 0 : D), _ = F) : o === "angl" ? (D = Math.max(e.fontMetrics().defaultRuleThickness, e.minRuleThickness), F = 4 * D, _ = Math.max(0, 0.25 - t.depth)) : (F = l ? 0.2 : 0, _ = F), n = Wp(t, o, F, _, e), /fbox|boxed|fcolorbox/.test(o) ? (n.style.borderStyle = "solid", n.style.borderWidth = C(D)) : o === "angl" && D !== 0.049 && (n.style.borderTopWidth = C(D), n.style.borderRightWidth = C(D)), i = t.depth + _, a.backgroundColor && (n.style.backgroundColor = a.backgroundColor, a.borderColor && (n.style.borderColor = a.borderColor));
9554
9554
  }
9555
9555
  var M;
9556
9556
  if (a.backgroundColor)
@@ -9832,7 +9832,7 @@ var yt = (a) => {
9832
9832
  var e = a.parser.settings;
9833
9833
  if (!e.displayMode)
9834
9834
  throw new x("{" + a.envName + "} can be used only in display mode.");
9835
- }, im = /* @__PURE__ */ new Set(["gather", "gather*"]);
9835
+ }, lm = /* @__PURE__ */ new Set(["gather", "gather*"]);
9836
9836
  function Mo(a) {
9837
9837
  if (!a.includes("ed"))
9838
9838
  return !a.includes("*");
@@ -10033,7 +10033,7 @@ var ze = function(e, t) {
10033
10033
  children: pa
10034
10034
  }), jr = I(["tag"], [br], t);
10035
10035
  return Pe([Ra, jr]);
10036
- }, lm = {
10036
+ }, pm = {
10037
10037
  c: "center ",
10038
10038
  l: "left ",
10039
10039
  r: "right "
@@ -10051,7 +10051,7 @@ var ze = function(e, t) {
10051
10051
  y[0].type === "separator" && (b += "top ", D = 1), y[y.length - 1].type === "separator" && (b += "bottom ", M -= 1);
10052
10052
  for (var S = D; S < M; S++) {
10053
10053
  var T = y[S];
10054
- T.type === "align" ? (k += lm[T.align], _ && (F += "none "), _ = !0) : T.type === "separator" && _ && (F += T.separator === "|" ? "solid " : "dashed ", _ = !1);
10054
+ T.type === "align" ? (k += pm[T.align], _ && (F += "none "), _ = !0) : T.type === "separator" && _ && (F += T.separator === "|" ? "solid " : "dashed ", _ = !1);
10055
10055
  }
10056
10056
  g.setAttribute("columnalign", k.trim()), /[sd]/.test(F) && g.setAttribute("columnlines", F.trim());
10057
10057
  }
@@ -10297,7 +10297,7 @@ Se({
10297
10297
  numArgs: 0
10298
10298
  },
10299
10299
  handler(a) {
10300
- im.has(a.envName) && yt(a);
10300
+ lm.has(a.envName) && yt(a);
10301
10301
  var e = {
10302
10302
  cols: [{
10303
10303
  type: "align",
@@ -10351,7 +10351,7 @@ Se({
10351
10351
  numArgs: 0
10352
10352
  },
10353
10353
  handler(a) {
10354
- return yt(a), Xp(a.parser);
10354
+ return yt(a), Yp(a.parser);
10355
10355
  },
10356
10356
  htmlBuilder: ze,
10357
10357
  mathmlBuilder: Te
@@ -10518,7 +10518,7 @@ A({
10518
10518
  htmlBuilder: Xn,
10519
10519
  mathmlBuilder: Yn
10520
10520
  });
10521
- var pm = (a, e) => {
10521
+ var mm = (a, e) => {
10522
10522
  var t = e.style, o = t.fracNum(), s = t.fracDen(), n;
10523
10523
  n = e.havingStyle(o);
10524
10524
  var i = $(a.numer, n, e);
@@ -10572,7 +10572,7 @@ var pm = (a, e) => {
10572
10572
  t.size === L.DISPLAY.size ? T = e.fontMetrics().delim1 : t.size === L.SCRIPTSCRIPT.size ? T = e.havingStyle(L.SCRIPT).fontMetrics().delim2 : T = e.fontMetrics().delim2;
10573
10573
  var N, R;
10574
10574
  return a.leftDelim == null ? N = Ba(e, ["mopen"]) : N = ho(a.leftDelim, T, !0, e.havingStyle(t), a.mode, ["mopen"]), a.continued ? R = I([]) : a.rightDelim == null ? R = Ba(e, ["mclose"]) : R = ho(a.rightDelim, T, !0, e.havingStyle(t), a.mode, ["mclose"]), I(["mord"].concat(n.sizingClasses(e)), [N, I(["mfrac"], [_]), R], e);
10575
- }, mm = (a, e) => {
10575
+ }, cm = (a, e) => {
10576
10576
  var t = new E("mfrac", [W(a.numer, e), W(a.denom, e)]);
10577
10577
  if (!a.hasBarLine)
10578
10578
  t.setAttribute("linethickness", "0px");
@@ -10666,8 +10666,8 @@ A({
10666
10666
  barSize: null
10667
10667
  }, g);
10668
10668
  },
10669
- htmlBuilder: pm,
10670
- mathmlBuilder: mm
10669
+ htmlBuilder: mm,
10670
+ mathmlBuilder: cm
10671
10671
  });
10672
10672
  A({
10673
10673
  type: "infix",
@@ -10857,7 +10857,7 @@ var Qn = (a, e) => {
10857
10857
  });
10858
10858
  }
10859
10859
  return I(["minner", s.isOver ? "mover" : "munder"], [l], e);
10860
- }, cm = (a, e) => {
10860
+ }, um = (a, e) => {
10861
10861
  var t = gt(a.label);
10862
10862
  return new E(a.isOver ? "mover" : "munder", [W(a.base, e), t]);
10863
10863
  };
@@ -10881,7 +10881,7 @@ A({
10881
10881
  };
10882
10882
  },
10883
10883
  htmlBuilder: Qn,
10884
- mathmlBuilder: cm
10884
+ mathmlBuilder: um
10885
10885
  });
10886
10886
  A({
10887
10887
  type: "href",
@@ -10907,7 +10907,7 @@ A({
10907
10907
  },
10908
10908
  htmlBuilder: (a, e) => {
10909
10909
  var t = ie(a.body, e, !1);
10910
- return Ep(a.href, [], t, e);
10910
+ return Cp(a.href, [], t, e);
10911
10911
  },
10912
10912
  mathmlBuilder: (a, e) => {
10913
10913
  var t = ea(a.body, e);
@@ -11160,7 +11160,7 @@ A({
11160
11160
  height: C(t + o)
11161
11161
  };
11162
11162
  s > 0 && (n.width = C(s)), o > 0 && (n.verticalAlign = C(-o));
11163
- var i = new fp(a.src, a.alt, n);
11163
+ var i = new vp(a.src, a.alt, n);
11164
11164
  return i.height = t, i.depth = o, i;
11165
11165
  },
11166
11166
  mathmlBuilder: (a, e) => {
@@ -11460,7 +11460,7 @@ var Jn = (a, e, t, o, s, n, i) => {
11460
11460
  a.parentIsSupSub ? t = new E("mrow", [t, o]) : t = In([t, o]);
11461
11461
  }
11462
11462
  return t;
11463
- }, um = {
11463
+ }, dm = {
11464
11464
  "∏": "\\prod",
11465
11465
  "∐": "\\coprod",
11466
11466
  "∑": "\\sum",
@@ -11485,7 +11485,7 @@ A({
11485
11485
  parser: t,
11486
11486
  funcName: o
11487
11487
  } = a, s = o;
11488
- return s.length === 1 && (s = um[s]), {
11488
+ return s.length === 1 && (s = dm[s]), {
11489
11489
  type: "op",
11490
11490
  mode: t.mode,
11491
11491
  limits: !0,
@@ -11520,7 +11520,7 @@ A({
11520
11520
  htmlBuilder: _a,
11521
11521
  mathmlBuilder: za
11522
11522
  });
11523
- var dm = {
11523
+ var gm = {
11524
11524
  "∫": "\\int",
11525
11525
  "∬": "\\iint",
11526
11526
  "∭": "\\iiint",
@@ -11586,7 +11586,7 @@ A({
11586
11586
  parser: e,
11587
11587
  funcName: t
11588
11588
  } = a, o = t;
11589
- return o.length === 1 && (o = dm[o]), {
11589
+ return o.length === 1 && (o = gm[o]), {
11590
11590
  type: "op",
11591
11591
  mode: e.mode,
11592
11592
  limits: !1,
@@ -11618,7 +11618,7 @@ var ar = (a, e) => {
11618
11618
  } else
11619
11619
  i = I(["mop"], [], e);
11620
11620
  return s ? Jn(i, t, o, e, e.style, 0, 0) : i;
11621
- }, gm = (a, e) => {
11621
+ }, hm = (a, e) => {
11622
11622
  for (var t = ye(a.body, e.withFont("mathrm")), o = !0, s = 0; s < t.length; s++) {
11623
11623
  var n = t[s];
11624
11624
  if (!(n instanceof xn)) if (n instanceof E)
@@ -11670,7 +11670,7 @@ A({
11670
11670
  };
11671
11671
  },
11672
11672
  htmlBuilder: ar,
11673
- mathmlBuilder: gm
11673
+ mathmlBuilder: hm
11674
11674
  });
11675
11675
  d("\\operatorname", "\\@ifstar\\operatornamewithlimits\\operatorname@");
11676
11676
  la({
@@ -11870,7 +11870,7 @@ function tr(a, e, t) {
11870
11870
  }
11871
11871
  return Pe(o);
11872
11872
  }
11873
- var As = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"], hm = (a, e) => {
11873
+ var As = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"], fm = (a, e) => {
11874
11874
  var t = e.havingSize(a.size);
11875
11875
  return tr(a.body, t, e);
11876
11876
  };
@@ -11895,7 +11895,7 @@ A({
11895
11895
  body: n
11896
11896
  };
11897
11897
  },
11898
- htmlBuilder: hm,
11898
+ htmlBuilder: fm,
11899
11899
  mathmlBuilder: (a, e) => {
11900
11900
  var t = e.havingSize(a.size), o = ye(a.body, t), s = new E("mstyle", o);
11901
11901
  return s.setAttribute("mathsize", C(t.sizeMultiplier)), s;
@@ -11986,7 +11986,7 @@ A({
11986
11986
  span: m,
11987
11987
  ruleWidth: u,
11988
11988
  advanceWidth: g
11989
- } = am(l, e), h = m.height - u;
11989
+ } = tm(l, e), h = m.height - u;
11990
11990
  h > t.height + t.depth + i && (i = (i + h - t.height - t.depth) / 2);
11991
11991
  var b = m.height - t.height - i - u;
11992
11992
  t.style.paddingLeft = C(g);
@@ -12071,7 +12071,7 @@ A({
12071
12071
  return n.setAttribute("scriptlevel", l[0]), n.setAttribute("displaystyle", l[1]), n;
12072
12072
  }
12073
12073
  });
12074
- var fm = function(e, t) {
12074
+ var vm = function(e, t) {
12075
12075
  var o = e.base;
12076
12076
  if (o)
12077
12077
  if (o.type === "op") {
@@ -12094,7 +12094,7 @@ var fm = function(e, t) {
12094
12094
  la({
12095
12095
  type: "supsub",
12096
12096
  htmlBuilder(a, e) {
12097
- var t = fm(a, e);
12097
+ var t = vm(a, e);
12098
12098
  if (t)
12099
12099
  return t(a, e);
12100
12100
  var {
@@ -12294,7 +12294,7 @@ var Ss = {
12294
12294
  }, zs = {
12295
12295
  "\\textbf": "textbf",
12296
12296
  "\\textmd": "textmd"
12297
- }, vm = {
12297
+ }, bm = {
12298
12298
  "\\textit": "textit",
12299
12299
  "\\textup": "textup"
12300
12300
  }, Ts = (a, e) => {
@@ -12307,7 +12307,7 @@ var Ss = {
12307
12307
  if (t === "\\emph")
12308
12308
  return e.fontShape === "textit" ? e.withTextFontShape("textup") : e.withTextFontShape("textit");
12309
12309
  } else return e;
12310
- return e.withTextFontShape(vm[t]);
12310
+ return e.withTextFontShape(bm[t]);
12311
12311
  };
12312
12312
  A({
12313
12313
  type: "text",
@@ -12455,22 +12455,22 @@ A({
12455
12455
  }
12456
12456
  });
12457
12457
  var qs = (a) => a.body.replace(/ /g, a.star ? "␣" : " "), Xe = Dn, sr = `[ \r
12458
- ]`, bm = "\\\\[a-zA-Z@]+", jm = "\\\\[^\uD800-\uDFFF]", km = "(" + bm + ")" + sr + "*", Fm = `\\\\(
12458
+ ]`, jm = "\\\\[a-zA-Z@]+", km = "\\\\[^\uD800-\uDFFF]", Fm = "(" + jm + ")" + sr + "*", ym = `\\\\(
12459
12459
  |[ \r ]+
12460
- ?)[ \r ]*`, fo = "[̀-ͯ]", ym = new RegExp(fo + "+$"), _m = "(" + sr + "+)|" + // whitespace
12461
- (Fm + "|") + // \whitespace
12460
+ ?)[ \r ]*`, fo = "[̀-ͯ]", _m = new RegExp(fo + "+$"), Dm = "(" + sr + "+)|" + // whitespace
12461
+ (ym + "|") + // \whitespace
12462
12462
  "([!-\\[\\]-‧‪-퟿豈-￿]" + // single codepoint
12463
12463
  (fo + "*") + // ...plus accents
12464
12464
  "|[\uD800-\uDBFF][\uDC00-\uDFFF]" + // surrogate pair
12465
12465
  (fo + "*") + // ...plus accents
12466
12466
  "|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5" + // \verb unstarred
12467
- ("|" + km) + // \macroName + spaces
12468
- ("|" + jm + ")");
12467
+ ("|" + Fm) + // \macroName + spaces
12468
+ ("|" + km + ")");
12469
12469
  class Ls {
12470
12470
  // Category codes. The lexer only supports comment characters (14) for now.
12471
12471
  // MacroExpander additionally distinguishes active (13).
12472
12472
  constructor(e, t) {
12473
- this.input = e, this.settings = t, this.tokenRegex = new RegExp(_m, "g"), this.catcodes = {
12473
+ this.input = e, this.settings = t, this.tokenRegex = new RegExp(Dm, "g"), this.catcodes = {
12474
12474
  "%": 14,
12475
12475
  // comment character
12476
12476
  "~": 13
@@ -12499,7 +12499,7 @@ class Ls {
12499
12499
  return new je(s, new ve(this, t, this.tokenRegex.lastIndex));
12500
12500
  }
12501
12501
  }
12502
- class Dm {
12502
+ class wm {
12503
12503
  /**
12504
12504
  * Both arguments are optional. The first argument is an object of
12505
12505
  * built-in mappings which never change. The second argument is an object
@@ -12570,7 +12570,7 @@ class Dm {
12570
12570
  t == null ? delete this.current[e] : this.current[e] = t;
12571
12571
  }
12572
12572
  }
12573
- var wm = Un;
12573
+ var Im = Un;
12574
12574
  d("\\noexpand", function(a) {
12575
12575
  var e = a.popToken();
12576
12576
  return a.isExpandable(e.text) && (e.noexpand = !0, e.treatAsRelax = !0), {
@@ -12835,10 +12835,10 @@ var Hs = {
12835
12835
  "\\idotsint": "\\dotsi",
12836
12836
  // Symbols whose definition starts with \DOTSX:
12837
12837
  "\\DOTSX": "\\dotsx"
12838
- }, Im = /* @__PURE__ */ new Set(["bin", "rel"]);
12838
+ }, xm = /* @__PURE__ */ new Set(["bin", "rel"]);
12839
12839
  d("\\dots", function(a) {
12840
12840
  var e = "\\dotso", t = a.expandAfterFuture().text;
12841
- return t in Hs ? e = Hs[t] : (t.slice(0, 4) === "\\not" || t in K.math && Im.has(K.math[t].group)) && (e = "\\dotsb"), e;
12841
+ return t in Hs ? e = Hs[t] : (t.slice(0, 4) === "\\not" || t in K.math && xm.has(K.math[t].group)) && (e = "\\dotsb"), e;
12842
12842
  });
12843
12843
  var To = {
12844
12844
  // \rightdelim@ checks for the following:
@@ -13159,9 +13159,9 @@ var ir = {
13159
13159
  "\\nolimits": !0
13160
13160
  // Parser.js
13161
13161
  };
13162
- class xm {
13162
+ class Em {
13163
13163
  constructor(e, t, o) {
13164
- this.settings = t, this.expansionCount = 0, this.feed(e), this.macros = new Dm(wm, t.macros), this.mode = o, this.stack = [];
13164
+ this.settings = t, this.expansionCount = 0, this.feed(e), this.macros = new wm(Im, t.macros), this.mode = o, this.stack = [];
13165
13165
  }
13166
13166
  /**
13167
13167
  * Feed a new input string to the same MacroExpander
@@ -13950,7 +13950,7 @@ var Ns = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗ
13950
13950
  };
13951
13951
  class _t {
13952
13952
  constructor(e, t) {
13953
- this.mode = "math", this.gullet = new xm(e, t, this.mode), this.settings = t, this.leftrightDepth = 0, this.nextToken = null;
13953
+ this.mode = "math", this.gullet = new Em(e, t, this.mode), this.settings = t, this.leftrightDepth = 0, this.nextToken = null;
13954
13954
  }
13955
13955
  /**
13956
13956
  * Checks a result to make sure it has the right type, and throws an
@@ -14475,13 +14475,13 @@ class _t {
14475
14475
  };
14476
14476
  }
14477
14477
  Os.hasOwnProperty(t[0]) && !K[this.mode][t[0]] && (this.settings.strict && this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Accented Unicode text character "' + t[0] + '" used in math mode', e), t = Os[t[0]] + t.slice(1));
14478
- var n = ym.exec(t);
14478
+ var n = _m.exec(t);
14479
14479
  n && (t = t.substring(0, n.index), t === "i" ? t = "ı" : t === "j" && (t = "ȷ"));
14480
14480
  var i;
14481
14481
  if (K[this.mode][t]) {
14482
14482
  this.settings.strict && this.mode === "math" && ro.includes(t) && this.settings.reportNonstrict("unicodeTextInMathMode", 'Latin-1/Unicode text character "' + t[0] + '" used in math mode', e);
14483
14483
  var l = K[this.mode][t].group, m = ve.range(e), u;
14484
- if (_p.hasOwnProperty(l)) {
14484
+ if (Dp.hasOwnProperty(l)) {
14485
14485
  var g = l;
14486
14486
  u = {
14487
14487
  type: "atom",
@@ -14555,10 +14555,10 @@ var qo = function(e, t) {
14555
14555
  typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console < "u" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."), lr = function() {
14556
14556
  throw new x("KaTeX doesn't work in quirks mode.");
14557
14557
  });
14558
- var Em = function(e, t) {
14558
+ var Cm = function(e, t) {
14559
14559
  var o = Lo(e, t).toMarkup();
14560
14560
  return o;
14561
- }, Cm = function(e, t) {
14561
+ }, Am = function(e, t) {
14562
14562
  var o = new _o(t);
14563
14563
  return qo(e, o);
14564
14564
  }, pr = function(e, t, o) {
@@ -14570,19 +14570,19 @@ var Em = function(e, t) {
14570
14570
  var o = new _o(t);
14571
14571
  try {
14572
14572
  var s = qo(e, o);
14573
- return Hp(s, e, o);
14573
+ return Np(s, e, o);
14574
14574
  } catch (n) {
14575
14575
  return pr(n, e, o);
14576
14576
  }
14577
- }, Am = function(e, t) {
14577
+ }, Bm = function(e, t) {
14578
14578
  var o = new _o(t);
14579
14579
  try {
14580
14580
  var s = qo(e, o);
14581
- return Np(s, e, o);
14581
+ return Op(s, e, o);
14582
14582
  } catch (n) {
14583
14583
  return pr(n, e, o);
14584
14584
  }
14585
- }, Bm = "0.16.45", Mm = {
14585
+ }, Mm = "0.16.45", Sm = {
14586
14586
  Span: Fa,
14587
14587
  Anchor: ct,
14588
14588
  SymbolNode: ke,
@@ -14593,7 +14593,7 @@ var Em = function(e, t) {
14593
14593
  /**
14594
14594
  * Current KaTeX version
14595
14595
  */
14596
- version: Bm,
14596
+ version: Mm,
14597
14597
  /**
14598
14598
  * Renders the given LaTeX into an HTML+MathML combination, and adds
14599
14599
  * it as a child to the specified DOM node.
@@ -14603,7 +14603,7 @@ var Em = function(e, t) {
14603
14603
  * Renders the given LaTeX into an HTML+MathML combination string,
14604
14604
  * for sending to the client.
14605
14605
  */
14606
- renderToString: Em,
14606
+ renderToString: Cm,
14607
14607
  /**
14608
14608
  * KaTeX error, usually during parsing.
14609
14609
  */
@@ -14620,7 +14620,7 @@ var Em = function(e, t) {
14620
14620
  * The internal tree representation is unstable and is very likely
14621
14621
  * to change. Use at your own risk.
14622
14622
  */
14623
- __parse: Cm,
14623
+ __parse: Am,
14624
14624
  /**
14625
14625
  * Renders the given LaTeX into an HTML+MathML internal DOM tree
14626
14626
  * representation, without flattening that representation to a string.
@@ -14638,12 +14638,12 @@ var Em = function(e, t) {
14638
14638
  * The internal tree representation is unstable and is very likely
14639
14639
  * to change. Use at your own risk.
14640
14640
  */
14641
- __renderToHTMLTree: Am,
14641
+ __renderToHTMLTree: Bm,
14642
14642
  /**
14643
14643
  * extends internal font metrics object with a new object
14644
14644
  * each key in the new object represents a font name
14645
14645
  */
14646
- __setFontMetrics: Fp,
14646
+ __setFontMetrics: yp,
14647
14647
  /**
14648
14648
  * adds a new symbol to builtin symbols table
14649
14649
  */
@@ -14665,8 +14665,8 @@ var Em = function(e, t) {
14665
14665
  * The internal tree representation is unstable and is very likely
14666
14666
  * to change. Use at your own risk.
14667
14667
  */
14668
- __domTree: Mm
14669
- }, Sm = ae.create({
14668
+ __domTree: Sm
14669
+ }, zm = ae.create({
14670
14670
  name: "blockMath",
14671
14671
  group: "block",
14672
14672
  atom: !0,
@@ -14786,7 +14786,7 @@ var Em = function(e, t) {
14786
14786
  };
14787
14787
  };
14788
14788
  }
14789
- }), zm = ae.create({
14789
+ }), Tm = ae.create({
14790
14790
  name: "inlineMath",
14791
14791
  group: "inline",
14792
14792
  inline: !0,
@@ -14901,7 +14901,7 @@ var Em = function(e, t) {
14901
14901
  };
14902
14902
  };
14903
14903
  }
14904
- }), Tm = be.create({
14904
+ }), qm = be.create({
14905
14905
  name: "Mathematics",
14906
14906
  addOptions() {
14907
14907
  return {
@@ -14912,14 +14912,14 @@ var Em = function(e, t) {
14912
14912
  },
14913
14913
  addExtensions() {
14914
14914
  return [
14915
- Sm.configure({ ...this.options.blockOptions, katexOptions: this.options.katexOptions }),
14916
- zm.configure({ ...this.options.inlineOptions, katexOptions: this.options.katexOptions })
14915
+ zm.configure({ ...this.options.blockOptions, katexOptions: this.options.katexOptions }),
14916
+ Tm.configure({ ...this.options.inlineOptions, katexOptions: this.options.katexOptions })
14917
14917
  ];
14918
14918
  }
14919
- }), qm = (a) => ee({
14919
+ }), Lm = (a) => ee({
14920
14920
  find: /--$/,
14921
14921
  replace: a ?? "—"
14922
- }), Lm = (a) => ee({
14922
+ }), Rm = (a) => ee({
14923
14923
  find: /\.\.\.$/,
14924
14924
  replace: a ?? "…"
14925
14925
  }), Vt = (a) => ee({
@@ -14934,55 +14934,55 @@ var Em = function(e, t) {
14934
14934
  }), Xt = (a) => ee({
14935
14935
  find: /'$/,
14936
14936
  replace: a ?? "’"
14937
- }), Rm = (a) => ee({
14937
+ }), Hm = (a) => ee({
14938
14938
  find: /<-$/,
14939
14939
  replace: a ?? "←"
14940
- }), Hm = (a) => ee({
14940
+ }), Nm = (a) => ee({
14941
14941
  find: /->$/,
14942
14942
  replace: a ?? "→"
14943
- }), Nm = (a) => ee({
14943
+ }), Om = (a) => ee({
14944
14944
  find: /\(c\)$/,
14945
14945
  replace: a ?? "©"
14946
- }), Om = (a) => ee({
14946
+ }), Pm = (a) => ee({
14947
14947
  find: /\(tm\)$/,
14948
14948
  replace: a ?? "™"
14949
- }), Pm = (a) => ee({
14949
+ }), $m = (a) => ee({
14950
14950
  find: /\(sm\)$/,
14951
14951
  replace: a ?? "℠"
14952
- }), $m = (a) => ee({
14952
+ }), Gm = (a) => ee({
14953
14953
  find: /\(r\)$/,
14954
14954
  replace: a ?? "®"
14955
- }), Gm = (a) => ee({
14955
+ }), Wm = (a) => ee({
14956
14956
  find: /(?:^|\s)(1\/2)\s$/,
14957
14957
  replace: a ?? "½"
14958
- }), Wm = (a) => ee({
14958
+ }), Vm = (a) => ee({
14959
14959
  find: /\+\/-$/,
14960
14960
  replace: a ?? "±"
14961
- }), Vm = (a) => ee({
14961
+ }), Um = (a) => ee({
14962
14962
  find: /!=$/,
14963
14963
  replace: a ?? "≠"
14964
- }), Um = (a) => ee({
14964
+ }), Km = (a) => ee({
14965
14965
  find: /<<$/,
14966
14966
  replace: a ?? "«"
14967
- }), Km = (a) => ee({
14967
+ }), Xm = (a) => ee({
14968
14968
  find: />>$/,
14969
14969
  replace: a ?? "»"
14970
- }), Xm = (a) => ee({
14970
+ }), Ym = (a) => ee({
14971
14971
  find: /\d+\s?([*x])\s?\d+$/,
14972
14972
  replace: a ?? "×"
14973
- }), Ym = (a) => ee({
14973
+ }), Zm = (a) => ee({
14974
14974
  find: /\^2$/,
14975
14975
  replace: a ?? "²"
14976
- }), Zm = (a) => ee({
14976
+ }), Qm = (a) => ee({
14977
14977
  find: /\^3$/,
14978
14978
  replace: a ?? "³"
14979
- }), Qm = (a) => ee({
14979
+ }), Jm = (a) => ee({
14980
14980
  find: /(?:^|\s)(1\/4)\s$/,
14981
14981
  replace: a ?? "¼"
14982
- }), Jm = (a) => ee({
14982
+ }), ec = (a) => ee({
14983
14983
  find: /(?:^|\s)(3\/4)\s$/,
14984
14984
  replace: a ?? "¾"
14985
- }), ec = be.create({
14985
+ }), ac = be.create({
14986
14986
  name: "typography",
14987
14987
  addOptions() {
14988
14988
  return {
@@ -15013,7 +15013,7 @@ var Em = function(e, t) {
15013
15013
  addInputRules() {
15014
15014
  var a, e;
15015
15015
  const t = [];
15016
- this.options.emDash !== !1 && t.push(qm(this.options.emDash)), this.options.ellipsis !== !1 && t.push(Lm(this.options.ellipsis));
15016
+ this.options.emDash !== !1 && t.push(Lm(this.options.emDash)), this.options.ellipsis !== !1 && t.push(Rm(this.options.ellipsis));
15017
15017
  const o = this.editor.options.textDirection === "rtl";
15018
15018
  if ((a = this.options.doubleQuotes) != null && a.rtl) {
15019
15019
  const { open: s, close: n } = this.options.doubleQuotes.rtl;
@@ -15023,18 +15023,18 @@ var Em = function(e, t) {
15023
15023
  const { open: s, close: n } = this.options.singleQuotes.rtl;
15024
15024
  t.push(Kt(s)), t.push(Xt(n));
15025
15025
  } else o ? (t.push(Kt("’")), t.push(Xt("‘"))) : (this.options.openSingleQuote !== !1 && t.push(Kt(this.options.openSingleQuote)), this.options.closeSingleQuote !== !1 && t.push(Xt(this.options.closeSingleQuote)));
15026
- return this.options.leftArrow !== !1 && t.push(Rm(this.options.leftArrow)), this.options.rightArrow !== !1 && t.push(Hm(this.options.rightArrow)), this.options.copyright !== !1 && t.push(Nm(this.options.copyright)), this.options.trademark !== !1 && t.push(Om(this.options.trademark)), this.options.servicemark !== !1 && t.push(Pm(this.options.servicemark)), this.options.registeredTrademark !== !1 && t.push($m(this.options.registeredTrademark)), this.options.oneHalf !== !1 && t.push(Gm(this.options.oneHalf)), this.options.plusMinus !== !1 && t.push(Wm(this.options.plusMinus)), this.options.notEqual !== !1 && t.push(Vm(this.options.notEqual)), this.options.laquo !== !1 && t.push(Um(this.options.laquo)), this.options.raquo !== !1 && t.push(Km(this.options.raquo)), this.options.multiplication !== !1 && t.push(Xm(this.options.multiplication)), this.options.superscriptTwo !== !1 && t.push(Ym(this.options.superscriptTwo)), this.options.superscriptThree !== !1 && t.push(Zm(this.options.superscriptThree)), this.options.oneQuarter !== !1 && t.push(Qm(this.options.oneQuarter)), this.options.threeQuarters !== !1 && t.push(Jm(this.options.threeQuarters)), t;
15026
+ return this.options.leftArrow !== !1 && t.push(Hm(this.options.leftArrow)), this.options.rightArrow !== !1 && t.push(Nm(this.options.rightArrow)), this.options.copyright !== !1 && t.push(Om(this.options.copyright)), this.options.trademark !== !1 && t.push(Pm(this.options.trademark)), this.options.servicemark !== !1 && t.push($m(this.options.servicemark)), this.options.registeredTrademark !== !1 && t.push(Gm(this.options.registeredTrademark)), this.options.oneHalf !== !1 && t.push(Wm(this.options.oneHalf)), this.options.plusMinus !== !1 && t.push(Vm(this.options.plusMinus)), this.options.notEqual !== !1 && t.push(Um(this.options.notEqual)), this.options.laquo !== !1 && t.push(Km(this.options.laquo)), this.options.raquo !== !1 && t.push(Xm(this.options.raquo)), this.options.multiplication !== !1 && t.push(Ym(this.options.multiplication)), this.options.superscriptTwo !== !1 && t.push(Zm(this.options.superscriptTwo)), this.options.superscriptThree !== !1 && t.push(Qm(this.options.superscriptThree)), this.options.oneQuarter !== !1 && t.push(Jm(this.options.oneQuarter)), this.options.threeQuarters !== !1 && t.push(ec(this.options.threeQuarters)), t;
15027
15027
  }
15028
- }), ac = ec;
15029
- const tc = () => /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
15028
+ }), tc = ac;
15029
+ const oc = () => /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
15030
15030
  var Yt = /* @__PURE__ */ new Map();
15031
- function oc(a) {
15031
+ function sc(a) {
15032
15032
  if (Yt.has(a))
15033
15033
  return Yt.get(a);
15034
- var e = sc(a);
15034
+ var e = nc(a);
15035
15035
  return Yt.set(a, e), e;
15036
15036
  }
15037
- var sc = (function() {
15037
+ var nc = (function() {
15038
15038
  var a = null;
15039
15039
  try {
15040
15040
  a = document.createElement("canvas").getContext("2d");
@@ -36718,7 +36718,7 @@ var sc = (function() {
36718
36718
  version: 5,
36719
36719
  fallbackImage: "https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3f4-e0067-e0062-e0077-e006c-e0073-e007f.png"
36720
36720
  }
36721
- ], nc = [
36721
+ ], rc = [
36722
36722
  {
36723
36723
  name: "atom",
36724
36724
  shortcodes: ["atom"],
@@ -36852,15 +36852,15 @@ var sc = (function() {
36852
36852
  group: "GitHub",
36853
36853
  fallbackImage: "https://github.githubassets.com/images/icons/emoji/trollface.png"
36854
36854
  }
36855
- ], rc = [...cr, ...nc];
36856
- function ic(a) {
36855
+ ], ic = [...cr, ...rc];
36856
+ function lc(a) {
36857
36857
  return a.replace("︎", "").replace("️", "");
36858
36858
  }
36859
- function lc(a, e) {
36859
+ function pc(a, e) {
36860
36860
  var t;
36861
- return (t = e.find((o) => o.emoji === ic(a))) == null ? void 0 : t.shortcodes[0];
36861
+ return (t = e.find((o) => o.emoji === lc(a))) == null ? void 0 : t.shortcodes[0];
36862
36862
  }
36863
- function pc(a, e = JSON.stringify) {
36863
+ function mc(a, e = JSON.stringify) {
36864
36864
  const t = {};
36865
36865
  return a.filter((o) => {
36866
36866
  const s = e(o);
@@ -36870,7 +36870,7 @@ function pc(a, e = JSON.stringify) {
36870
36870
  function wa(a, e) {
36871
36871
  return e.find((t) => a === t.name || t.shortcodes.includes(a));
36872
36872
  }
36873
- var mc = new Me("emojiSuggestion"), cc = /:([a-zA-Z0-9_+-]+):$/, uc = /(^|\s):([a-zA-Z0-9_+-]+):/g, dc = ae.create({
36873
+ var cc = new Me("emojiSuggestion"), uc = /:([a-zA-Z0-9_+-]+):$/, dc = /(^|\s):([a-zA-Z0-9_+-]+):/g, gc = ae.create({
36874
36874
  name: "emoji",
36875
36875
  inline: !0,
36876
36876
  group: "inline",
@@ -36883,7 +36883,7 @@ var mc = new Me("emojiSuggestion"), cc = /:([a-zA-Z0-9_+-]+):$/, uc = /(^|\s):([
36883
36883
  forceFallbackImages: !1,
36884
36884
  suggestion: {
36885
36885
  char: ":",
36886
- pluginKey: mc,
36886
+ pluginKey: cc,
36887
36887
  command: ({ editor: a, range: e, props: t }) => {
36888
36888
  var o;
36889
36889
  const s = a.view.state.selection.$to.nodeAfter;
@@ -36906,11 +36906,11 @@ var mc = new Me("emojiSuggestion"), cc = /:([a-zA-Z0-9_+-]+):$/, uc = /(^|\s):([
36906
36906
  };
36907
36907
  },
36908
36908
  addStorage() {
36909
- const { emojis: a } = this.options, e = pc(a.map((t) => t.version)).filter((t) => typeof t == "number").reduce((t, o) => {
36909
+ const { emojis: a } = this.options, e = mc(a.map((t) => t.version)).filter((t) => typeof t == "number").reduce((t, o) => {
36910
36910
  const s = a.find((n) => n.version === o && n.emoji);
36911
36911
  return {
36912
36912
  ...t,
36913
- [o]: s ? oc(s.emoji) : !1
36913
+ [o]: s ? sc(s.emoji) : !1
36914
36914
  };
36915
36915
  }, {});
36916
36916
  return {
@@ -36981,7 +36981,7 @@ var mc = new Me("emojiSuggestion"), cc = /:([a-zA-Z0-9_+-]+):$/, uc = /(^|\s):([
36981
36981
  const a = [];
36982
36982
  if (a.push(
36983
36983
  new jo({
36984
- find: cc,
36984
+ find: uc,
36985
36985
  handler: ({ range: e, match: t, chain: o }) => {
36986
36986
  const s = t[1];
36987
36987
  wa(s, this.options.emojis) && o().insertContentAt(e, {
@@ -37016,7 +37016,7 @@ var mc = new Me("emojiSuggestion"), cc = /:([a-zA-Z0-9_+-]+):$/, uc = /(^|\s):([
37016
37016
  addPasteRules() {
37017
37017
  return [
37018
37018
  new Lr({
37019
- find: uc,
37019
+ find: dc,
37020
37020
  handler: ({ range: a, match: e, chain: t }) => {
37021
37021
  const o = e[1] || "", s = e[2];
37022
37022
  if (!wa(s, this.options.emojis))
@@ -37070,10 +37070,10 @@ var mc = new Me("emojiSuggestion"), cc = /:([a-zA-Z0-9_+-]+):$/, uc = /(^|\s):([
37070
37070
  qr(t.doc, l, (u) => u.type.isText).forEach(({ node: u, pos: g }) => {
37071
37071
  if (!u.text)
37072
37072
  return;
37073
- [...u.text.matchAll(tc())].forEach((b) => {
37073
+ [...u.text.matchAll(oc())].forEach((b) => {
37074
37074
  if (b.index === void 0)
37075
37075
  return;
37076
- const k = b[0], y = lc(k, this.options.emojis);
37076
+ const k = b[0], y = pc(k, this.options.emojis);
37077
37077
  if (!y)
37078
37078
  return;
37079
37079
  const F = s.mapping.map(g + b.index);
@@ -37091,64 +37091,79 @@ var mc = new Me("emojiSuggestion"), cc = /:([a-zA-Z0-9_+-]+):$/, uc = /(^|\s):([
37091
37091
  })
37092
37092
  ];
37093
37093
  }
37094
- }), gc = dc;
37095
- const wc = (a) => [
37096
- Ll.configure({
37097
- dropcursor: {
37098
- width: 4,
37099
- color: "#ebf6fe"
37100
- }
37101
- }),
37102
- Hl.configure({
37103
- HTMLAttributes: {
37104
- class: "scribe-task-list"
37105
- }
37106
- }),
37107
- Rl.configure({
37108
- nested: !0
37109
- }),
37110
- Xi.configure({
37111
- table: { resizable: !0 }
37112
- }),
37113
- Gl.configure({
37114
- showOnlyWhenEditable: !0,
37115
- includeChildren: !0,
37116
- showOnlyCurrent: !1,
37117
- emptyEditorClass: "is-editor-empty",
37118
- emptyNodeClass: "is-node-empty",
37119
- placeholder: ({ editor: e, node: t }) => e.isDestroyed ? "" : t.type.name === "heading" ? `Heading ${t.attrs.level}` : a.placeholderText || 'Type "/" for commands...'
37120
- }),
37121
- Ai.configure({ mode: "deepest", className: "has-focus" }),
37122
- yr,
37123
- Qr.configure({
37124
- slashSuggestion: {
37125
- items: ai,
37126
- render: ei
37127
- }
37128
- }),
37129
- $l,
37130
- Jr,
37131
- Fr,
37132
- Si.configure({
37133
- inline: !0,
37134
- HTMLAttributes: {
37135
- class: "scribe-image-node"
37136
- },
37137
- allowBase64: !0
37138
- }),
37139
- gc.configure({
37140
- emojis: rc,
37141
- enableEmoticons: !0,
37142
- suggestion: ti()
37143
- }),
37144
- Tm,
37145
- ac,
37146
- ...a.enableTableOfContents ? [
37147
- oi.configure({
37148
- onUpdate: a.onTableOfContentsChange
37149
- })
37150
- ] : []
37151
- ];
37094
+ }), hc = gc;
37095
+ const Ic = (a) => {
37096
+ const {
37097
+ items: e,
37098
+ render: t,
37099
+ ...o
37100
+ } = a.slashCommand ?? {};
37101
+ return [
37102
+ Rl.configure({
37103
+ dropcursor: {
37104
+ width: 4,
37105
+ color: "#ebf6fe"
37106
+ }
37107
+ }),
37108
+ Nl.configure({
37109
+ HTMLAttributes: {
37110
+ class: "scribe-task-list"
37111
+ }
37112
+ }),
37113
+ Hl.configure({
37114
+ nested: !0
37115
+ }),
37116
+ Yi.configure({
37117
+ table: { resizable: !0 }
37118
+ }),
37119
+ Wl.configure({
37120
+ showOnlyWhenEditable: !0,
37121
+ includeChildren: !0,
37122
+ showOnlyCurrent: !1,
37123
+ emptyEditorClass: "is-editor-empty",
37124
+ emptyNodeClass: "is-node-empty",
37125
+ placeholder: ({ editor: s, node: n }) => s.isDestroyed ? "" : n.type.name === "heading" ? `Heading ${n.attrs.level}` : a.placeholderText || 'Type "/" for commands...'
37126
+ }),
37127
+ Bi.configure({ mode: "deepest", className: "has-focus" }),
37128
+ yr,
37129
+ Qr.configure({
37130
+ slashSuggestion: {
37131
+ ...o,
37132
+ items: (s) => {
37133
+ const n = ai(s);
37134
+ return e ? e({
37135
+ ...s,
37136
+ context: ti(s.editor),
37137
+ defaultItems: n
37138
+ }) : n;
37139
+ },
37140
+ render: t ?? ei
37141
+ }
37142
+ }),
37143
+ Gl,
37144
+ Jr,
37145
+ Fr,
37146
+ zi.configure({
37147
+ inline: !0,
37148
+ HTMLAttributes: {
37149
+ class: "scribe-image-node"
37150
+ },
37151
+ allowBase64: !0
37152
+ }),
37153
+ hc.configure({
37154
+ emojis: ic,
37155
+ enableEmoticons: !0,
37156
+ suggestion: oi()
37157
+ }),
37158
+ qm,
37159
+ tc,
37160
+ ...a.enableTableOfContents ? [
37161
+ si.configure({
37162
+ onUpdate: a.onTableOfContentsChange
37163
+ })
37164
+ ] : []
37165
+ ];
37166
+ };
37152
37167
  export {
37153
- wc as initExtensions
37168
+ Ic as initExtensions
37154
37169
  };