@clevertask/scribe 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { N as fa, P as pa, a as va, m as ga } from "../../../index-pCZujIH1.js";
1
+ import { N as fa, P as pa, a as va, m as ga } from "../../../index-DzExyr-e.js";
2
2
  class u0 {
3
3
  // The + prefix indicates that these fields aren't writeable
4
4
  // Lexer holding the input string.
@@ -43,10 +43,10 @@ class M {
43
43
  if (o && o.start <= o.end) {
44
44
  var h = o.lexer.input;
45
45
  n = o.start, s = o.end, n === h.length ? a += " at end of input: " : a += " at position " + (n + 1) + ": ";
46
- var m = h.slice(n, s).replace(/[^]/g, "$&̲"), p;
46
+ var c = h.slice(n, s).replace(/[^]/g, "$&̲"), p;
47
47
  n > 15 ? p = "…" + h.slice(n - 15, n) : p = h.slice(0, n);
48
48
  var g;
49
- s + 15 < h.length ? g = h.slice(s, s + 15) + "…" : g = h.slice(s), a += p + m + g;
49
+ s + 15 < h.length ? g = h.slice(s, s + 15) + "…" : g = h.slice(s), a += p + c + g;
50
50
  }
51
51
  var b = new Error(a);
52
52
  return b.name = "ParseError", b.__proto__ = M.prototype, b.position = n, n != null && s != null && (b.length = s - n), b.rawMessage = e, b;
@@ -472,7 +472,7 @@ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
472
472
  n = Va(t, _0, a);
473
473
  }
474
474
  return n;
475
- }, Ya = function(e, t) {
475
+ }, $a = function(e, t) {
476
476
  switch (e) {
477
477
  case "⎜":
478
478
  return "M291 0 H417 V" + t + " H291z M291 0 H417 V" + t + " H291z";
@@ -747,7 +747,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,
747
747
  -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
748
748
  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
749
749
  M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
750
- }, Xa = function(e, t) {
750
+ }, Ya = function(e, t) {
751
751
  switch (e) {
752
752
  case "lbrack":
753
753
  return "M403 1759 V84 H666 V0 H319 V1759 v" + t + ` v1759 h347 v-84
@@ -3061,7 +3061,7 @@ var x0 = {
3061
3061
  ю: "m",
3062
3062
  я: "r"
3063
3063
  };
3064
- function $a(r, e) {
3064
+ function Xa(r, e) {
3065
3065
  x0[r] = e;
3066
3066
  }
3067
3067
  function pt(r, e, t) {
@@ -3464,8 +3464,8 @@ var Qa = {
3464
3464
  ì: "ı̀"
3465
3465
  };
3466
3466
  class p0 {
3467
- constructor(e, t, a, n, s, o, h, m) {
3468
- this.text = void 0, this.height = void 0, this.depth = void 0, this.italic = void 0, this.skew = void 0, this.width = void 0, this.maxFontSize = void 0, this.classes = void 0, this.style = void 0, this.text = e, this.height = t || 0, this.depth = a || 0, this.italic = n || 0, this.skew = s || 0, this.width = o || 0, this.classes = h || [], this.style = m || {}, this.maxFontSize = 0;
3467
+ constructor(e, t, a, n, s, o, h, c) {
3468
+ this.text = void 0, this.height = void 0, this.depth = void 0, this.italic = void 0, this.skew = void 0, this.width = void 0, this.maxFontSize = void 0, this.classes = void 0, this.style = void 0, this.text = e, this.height = t || 0, this.depth = a || 0, this.italic = n || 0, this.skew = s || 0, this.width = o || 0, this.classes = h || [], this.style = c || {}, this.maxFontSize = 0;
3469
3469
  var p = Ia(this.text.charCodeAt(0));
3470
3470
  p && this.classes.push(p + "_fallback"), /[îïíì]/.test(this.text) && (this.text = Qa[this.text]);
3471
3471
  }
@@ -3572,16 +3572,16 @@ var e1 = {
3572
3572
  "op-token": 1,
3573
3573
  spacing: 1,
3574
3574
  textord: 1
3575
- }, $ = {
3575
+ }, X = {
3576
3576
  math: {},
3577
3577
  text: {}
3578
3578
  };
3579
3579
  function i(r, e, t, a, n, s) {
3580
- $[r][n] = {
3580
+ X[r][n] = {
3581
3581
  font: e,
3582
3582
  group: t,
3583
3583
  replace: a
3584
- }, s && a && ($[r][a] = $[r][n]);
3584
+ }, s && a && (X[r][a] = X[r][n]);
3585
3585
  }
3586
3586
  var l = "math", k = "text", u = "main", d = "ams", W = "accent-token", D = "bin", i0 = "close", re = "inner", E = "mathord", _ = "op-token", m0 = "open", qe = "punct", f = "rel", E0 = "spacing", v = "textord";
3587
3587
  i(l, u, f, "≡", "\\equiv", !0);
@@ -4183,18 +4183,18 @@ i(k, u, v, "£", "\\textsterling", !0);
4183
4183
  i(l, d, v, "✠", "\\maltese");
4184
4184
  i(k, d, v, "✠", "\\maltese");
4185
4185
  var Gt = '0123456789/@."';
4186
- for (var Ye = 0; Ye < Gt.length; Ye++) {
4187
- var Vt = Gt.charAt(Ye);
4186
+ for (var $e = 0; $e < Gt.length; $e++) {
4187
+ var Vt = Gt.charAt($e);
4188
4188
  i(l, u, v, Vt, Vt);
4189
4189
  }
4190
4190
  var Ut = '0123456789!@*()-=+";:?/.,';
4191
- for (var Xe = 0; Xe < Ut.length; Xe++) {
4192
- var Yt = Ut.charAt(Xe);
4193
- i(k, u, v, Yt, Yt);
4191
+ for (var Ye = 0; Ye < Ut.length; Ye++) {
4192
+ var $t = Ut.charAt(Ye);
4193
+ i(k, u, v, $t, $t);
4194
4194
  }
4195
4195
  var Be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
4196
- for (var $e = 0; $e < Be.length; $e++) {
4197
- var ge = Be.charAt($e);
4196
+ for (var Xe = 0; Xe < Be.length; Xe++) {
4197
+ var ge = Be.charAt(Xe);
4198
4198
  i(l, u, E, ge, ge), i(k, u, v, ge, ge);
4199
4199
  }
4200
4200
  i(l, d, v, "C", "ℂ");
@@ -4213,17 +4213,17 @@ i(l, d, v, "Z", "ℤ");
4213
4213
  i(k, d, v, "Z", "ℤ");
4214
4214
  i(l, u, E, "h", "ℎ");
4215
4215
  i(k, u, E, "h", "ℎ");
4216
- var I = "";
4216
+ var O = "";
4217
4217
  for (var a0 = 0; a0 < Be.length; a0++) {
4218
4218
  var J = Be.charAt(a0);
4219
- I = String.fromCharCode(55349, 56320 + a0), i(l, u, E, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56372 + a0), i(l, u, E, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56424 + a0), i(l, u, E, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56580 + a0), i(l, u, E, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56684 + a0), i(l, u, E, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56736 + a0), i(l, u, E, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56788 + a0), i(l, u, E, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56840 + a0), i(l, u, E, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56944 + a0), i(l, u, E, J, I), i(k, u, v, J, I), a0 < 26 && (I = String.fromCharCode(55349, 56632 + a0), i(l, u, E, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56476 + a0), i(l, u, E, J, I), i(k, u, v, J, I));
4219
+ O = String.fromCharCode(55349, 56320 + a0), i(l, u, E, J, O), i(k, u, v, J, O), O = String.fromCharCode(55349, 56372 + a0), i(l, u, E, J, O), i(k, u, v, J, O), O = String.fromCharCode(55349, 56424 + a0), i(l, u, E, J, O), i(k, u, v, J, O), O = String.fromCharCode(55349, 56580 + a0), i(l, u, E, J, O), i(k, u, v, J, O), O = String.fromCharCode(55349, 56684 + a0), i(l, u, E, J, O), i(k, u, v, J, O), O = String.fromCharCode(55349, 56736 + a0), i(l, u, E, J, O), i(k, u, v, J, O), O = String.fromCharCode(55349, 56788 + a0), i(l, u, E, J, O), i(k, u, v, J, O), O = String.fromCharCode(55349, 56840 + a0), i(l, u, E, J, O), i(k, u, v, J, O), O = String.fromCharCode(55349, 56944 + a0), i(l, u, E, J, O), i(k, u, v, J, O), a0 < 26 && (O = String.fromCharCode(55349, 56632 + a0), i(l, u, E, J, O), i(k, u, v, J, O), O = String.fromCharCode(55349, 56476 + a0), i(l, u, E, J, O), i(k, u, v, J, O));
4220
4220
  }
4221
- I = "𝕜";
4222
- i(l, u, E, "k", I);
4223
- i(k, u, v, "k", I);
4224
- for (var X0 = 0; X0 < 10; X0++) {
4225
- var F0 = X0.toString();
4226
- I = String.fromCharCode(55349, 57294 + X0), i(l, u, E, F0, I), i(k, u, v, F0, I), I = String.fromCharCode(55349, 57314 + X0), i(l, u, E, F0, I), i(k, u, v, F0, I), I = String.fromCharCode(55349, 57324 + X0), i(l, u, E, F0, I), i(k, u, v, F0, I), I = String.fromCharCode(55349, 57334 + X0), i(l, u, E, F0, I), i(k, u, v, F0, I);
4221
+ O = "𝕜";
4222
+ i(l, u, E, "k", O);
4223
+ i(k, u, v, "k", O);
4224
+ for (var Y0 = 0; Y0 < 10; Y0++) {
4225
+ var F0 = Y0.toString();
4226
+ O = String.fromCharCode(55349, 57294 + Y0), i(l, u, E, F0, O), i(k, u, v, F0, O), O = String.fromCharCode(55349, 57314 + Y0), i(l, u, E, F0, O), i(k, u, v, F0, O), O = String.fromCharCode(55349, 57324 + Y0), i(l, u, E, F0, O), i(k, u, v, F0, O), O = String.fromCharCode(55349, 57334 + Y0), i(l, u, E, F0, O), i(k, u, v, F0, O);
4227
4227
  }
4228
4228
  var lt = "ÐÞþ";
4229
4229
  for (var We = 0; We < lt.length; We++) {
@@ -4286,7 +4286,7 @@ var ye = [
4286
4286
  // A-Z monospace
4287
4287
  ["mathtt", "texttt", "Typewriter-Regular"]
4288
4288
  // a-z monospace
4289
- ], Xt = [
4289
+ ], Yt = [
4290
4290
  ["mathbf", "textbf", "Main-Bold"],
4291
4291
  // 0-9 bold
4292
4292
  ["", "", ""],
@@ -4303,8 +4303,8 @@ var ye = [
4303
4303
  var h = Math.floor((s - 119808) / 26);
4304
4304
  return [ye[h][2], ye[h][o]];
4305
4305
  } else if (120782 <= s && s <= 120831) {
4306
- var m = Math.floor((s - 120782) / 10);
4307
- return [Xt[m][2], Xt[m][o]];
4306
+ var c = Math.floor((s - 120782) / 10);
4307
+ return [Yt[c][2], Yt[c][o]];
4308
4308
  } else {
4309
4309
  if (s === 120485 || s === 120486)
4310
4310
  return [ye[0][2], ye[0][o]];
@@ -4313,27 +4313,27 @@ var ye = [
4313
4313
  throw new M("Unsupported character: " + e);
4314
4314
  }
4315
4315
  }, Ee = function(e, t, a) {
4316
- return $[a][e] && $[a][e].replace && (e = $[a][e].replace), {
4316
+ return X[a][e] && X[a][e].replace && (e = X[a][e].replace), {
4317
4317
  value: e,
4318
4318
  metrics: pt(e, t, a)
4319
4319
  };
4320
4320
  }, b0 = function(e, t, a, n, s) {
4321
4321
  var o = Ee(e, t, a), h = o.metrics;
4322
4322
  e = o.value;
4323
- var m;
4323
+ var c;
4324
4324
  if (h) {
4325
4325
  var p = h.italic;
4326
- (a === "text" || n && n.font === "mathit") && (p = 0), m = new p0(e, h.height, h.depth, p, h.skew, h.width, s);
4326
+ (a === "text" || n && n.font === "mathit") && (p = 0), c = new p0(e, h.height, h.depth, p, h.skew, h.width, s);
4327
4327
  } else
4328
- typeof console < "u" && console.warn("No character metrics " + ("for '" + e + "' in style '" + t + "' and mode '" + a + "'")), m = new p0(e, 0, 0, 0, 0, 0, s);
4328
+ typeof console < "u" && console.warn("No character metrics " + ("for '" + e + "' in style '" + t + "' and mode '" + a + "'")), c = new p0(e, 0, 0, 0, 0, 0, s);
4329
4329
  if (n) {
4330
- m.maxFontSize = n.sizeMultiplier, n.style.isTight() && m.classes.push("mtight");
4330
+ c.maxFontSize = n.sizeMultiplier, n.style.isTight() && c.classes.push("mtight");
4331
4331
  var g = n.getColor();
4332
- g && (m.style.color = g);
4332
+ g && (c.style.color = g);
4333
4333
  }
4334
- return m;
4334
+ return c;
4335
4335
  }, a1 = function(e, t, a, n) {
4336
- return n === void 0 && (n = []), a.font === "boldsymbol" && Ee(e, "Main-Bold", t).metrics ? b0(e, "Main-Bold", t, a, n.concat(["mathbf"])) : e === "\\" || $[t][e].font === "main" ? b0(e, "Main-Regular", t, a, n) : b0(e, "AMS-Regular", t, a, n.concat(["amsrm"]));
4336
+ return n === void 0 && (n = []), a.font === "boldsymbol" && Ee(e, "Main-Bold", t).metrics ? b0(e, "Main-Bold", t, a, n.concat(["mathbf"])) : e === "\\" || X[t][e].font === "main" ? b0(e, "Main-Regular", t, a, n) : b0(e, "AMS-Regular", t, a, n.concat(["amsrm"]));
4337
4337
  }, n1 = function(e, t, a, n, s) {
4338
4338
  return s !== "textord" && Ee(e, "Math-BoldItalic", t).metrics ? {
4339
4339
  fontName: "Math-BoldItalic",
@@ -4343,15 +4343,15 @@ var ye = [
4343
4343
  fontClass: "mathbf"
4344
4344
  };
4345
4345
  }, i1 = function(e, t, a) {
4346
- var n = e.mode, s = e.text, o = ["mord"], h = n === "math" || n === "text" && t.font, m = h ? t.font : t.fontFamily, p = "", g = "";
4346
+ var n = e.mode, s = e.text, o = ["mord"], h = n === "math" || n === "text" && t.font, c = h ? t.font : t.fontFamily, p = "", g = "";
4347
4347
  if (s.charCodeAt(0) === 55349 && ([p, g] = r1(s, n)), p.length > 0)
4348
4348
  return b0(s, p, n, t, o.concat(g));
4349
- if (m) {
4349
+ if (c) {
4350
4350
  var b, w;
4351
- if (m === "boldsymbol") {
4351
+ if (c === "boldsymbol") {
4352
4352
  var x = n1(s, n, t, o, a);
4353
4353
  b = x.fontName, w = [x.fontClass];
4354
- } else h ? (b = zr[m].fontName, w = [m]) : (b = xe(m, t.fontWeight, t.fontShape), w = [m, t.fontWeight, t.fontShape]);
4354
+ } else h ? (b = zr[c].fontName, w = [c]) : (b = xe(c, t.fontWeight, t.fontShape), w = [c, t.fontWeight, t.fontShape]);
4355
4355
  if (Ee(s, b, n).metrics)
4356
4356
  return b0(s, b, n, t, o.concat(w));
4357
4357
  if (kr.hasOwnProperty(s) && b.slice(0, 10) === "Typewriter") {
@@ -4363,13 +4363,13 @@ var ye = [
4363
4363
  if (a === "mathord")
4364
4364
  return b0(s, "Math-Italic", n, t, o.concat(["mathnormal"]));
4365
4365
  if (a === "textord") {
4366
- var C = $[n][s] && $[n][s].font;
4366
+ var C = X[n][s] && X[n][s].font;
4367
4367
  if (C === "ams") {
4368
4368
  var N = xe("amsrm", t.fontWeight, t.fontShape);
4369
4369
  return b0(s, N, n, t, o.concat("amsrm", t.fontWeight, t.fontShape));
4370
4370
  } else if (C === "main" || !C) {
4371
- var O = xe("textrm", t.fontWeight, t.fontShape);
4372
- return b0(s, O, n, t, o.concat(t.fontWeight, t.fontShape));
4371
+ var I = xe("textrm", t.fontWeight, t.fontShape);
4372
+ return b0(s, I, n, t, o.concat(t.fontWeight, t.fontShape));
4373
4373
  } else {
4374
4374
  var H = xe(C, t.fontWeight, t.fontShape);
4375
4375
  return b0(s, H, n, t, o.concat(H, t.fontWeight, t.fontShape));
@@ -4420,10 +4420,10 @@ var ye = [
4420
4420
  }, m1 = function(e) {
4421
4421
  if (e.positionType === "individualShift") {
4422
4422
  for (var t = e.children, a = [t[0]], n = -t[0].shift - t[0].elem.depth, s = n, o = 1; o < t.length; o++) {
4423
- var h = -t[o].shift - s - t[o].elem.depth, m = h - (t[o - 1].elem.height + t[o - 1].elem.depth);
4423
+ var h = -t[o].shift - s - t[o].elem.depth, c = h - (t[o - 1].elem.height + t[o - 1].elem.depth);
4424
4424
  s = s + h, a.push({
4425
4425
  type: "kern",
4426
- size: m
4426
+ size: c
4427
4427
  }), a.push(t[o]);
4428
4428
  }
4429
4429
  return {
@@ -4462,8 +4462,8 @@ var ye = [
4462
4462
  } = m1(e), s = 0, o = 0; o < a.length; o++) {
4463
4463
  var h = a[o];
4464
4464
  if (h.type === "elem") {
4465
- var m = h.elem;
4466
- s = Math.max(s, m.maxFontSize, m.height);
4465
+ var c = h.elem;
4466
+ s = Math.max(s, c.maxFontSize, c.height);
4467
4467
  }
4468
4468
  }
4469
4469
  s += 2;
@@ -4474,23 +4474,23 @@ var ye = [
4474
4474
  if (T.type === "kern")
4475
4475
  x += T.size;
4476
4476
  else {
4477
- var C = T.elem, N = T.wrapperClasses || [], O = T.wrapperStyle || {}, H = l0(N, [p, C], void 0, O);
4477
+ var C = T.elem, N = T.wrapperClasses || [], I = T.wrapperStyle || {}, H = l0(N, [p, C], void 0, I);
4478
4478
  H.style.top = A(-s - x - C.depth), T.marginLeft && (H.style.marginLeft = T.marginLeft), T.marginRight && (H.style.marginRight = T.marginRight), g.push(H), x += C.height + C.depth;
4479
4479
  }
4480
4480
  b = Math.min(b, x), w = Math.max(w, x);
4481
4481
  }
4482
- var V = l0(["vlist"], g);
4483
- V.style.height = A(w);
4482
+ var G = l0(["vlist"], g);
4483
+ G.style.height = A(w);
4484
4484
  var L;
4485
4485
  if (b < 0) {
4486
- var U = l0([], []), G = l0(["vlist"], [U]);
4487
- G.style.height = A(-b);
4486
+ var U = l0([], []), V = l0(["vlist"], [U]);
4487
+ V.style.height = A(-b);
4488
4488
  var j = l0(["vlist-s"], [new p0("​")]);
4489
- L = [l0(["vlist-r"], [V, j]), l0(["vlist-r"], [G])];
4489
+ L = [l0(["vlist-r"], [G, j]), l0(["vlist-r"], [V])];
4490
4490
  } else
4491
- L = [l0(["vlist-r"], [V])];
4492
- var Y = l0(["vlist-t"], L);
4493
- return L.length === 2 && Y.classes.push("vlist-t2"), Y.height = w, Y.depth = -b, Y;
4491
+ L = [l0(["vlist-r"], [G])];
4492
+ var $ = l0(["vlist-t"], L);
4493
+ return L.length === 2 && $.classes.push("vlist-t2"), $.height = w, $.depth = -b, $;
4494
4494
  }, d1 = (r, e) => {
4495
4495
  var t = l0(["mspace"], [], e), a = K(r, e);
4496
4496
  return t.style.marginRight = A(a), t;
@@ -4585,8 +4585,8 @@ var ye = [
4585
4585
  style: "width:" + A(n),
4586
4586
  viewBox: "0 0 " + 1e3 * n + " " + 1e3 * s,
4587
4587
  preserveAspectRatio: "xMinYMin"
4588
- }), m = Sr(["overlay"], [h], t);
4589
- return m.height = s, m.style.height = A(s), m.style.width = A(n), m;
4588
+ }), c = Sr(["overlay"], [h], t);
4589
+ return c.height = s, c.style.height = A(s), c.style.width = A(n), c;
4590
4590
  }, y = {
4591
4591
  fontMap: zr,
4592
4592
  makeSymbol: b0,
@@ -4606,7 +4606,7 @@ var ye = [
4606
4606
  }, Z = {
4607
4607
  number: 3,
4608
4608
  unit: "mu"
4609
- }, $0 = {
4609
+ }, X0 = {
4610
4610
  number: 4,
4611
4611
  unit: "mu"
4612
4612
  }, A0 = {
@@ -4615,7 +4615,7 @@ var ye = [
4615
4615
  }, p1 = {
4616
4616
  mord: {
4617
4617
  mop: Z,
4618
- mbin: $0,
4618
+ mbin: X0,
4619
4619
  mrel: A0,
4620
4620
  minner: Z
4621
4621
  },
@@ -4626,10 +4626,10 @@ var ye = [
4626
4626
  minner: Z
4627
4627
  },
4628
4628
  mbin: {
4629
- mord: $0,
4630
- mop: $0,
4631
- mopen: $0,
4632
- minner: $0
4629
+ mord: X0,
4630
+ mop: X0,
4631
+ mopen: X0,
4632
+ minner: X0
4633
4633
  },
4634
4634
  mrel: {
4635
4635
  mord: A0,
@@ -4640,7 +4640,7 @@ var ye = [
4640
4640
  mopen: {},
4641
4641
  mclose: {
4642
4642
  mop: Z,
4643
- mbin: $0,
4643
+ mbin: X0,
4644
4644
  mrel: A0,
4645
4645
  minner: Z
4646
4646
  },
@@ -4656,7 +4656,7 @@ var ye = [
4656
4656
  minner: {
4657
4657
  mord: Z,
4658
4658
  mop: Z,
4659
- mbin: $0,
4659
+ mbin: X0,
4660
4660
  mrel: A0,
4661
4661
  mopen: Z,
4662
4662
  mpunct: Z,
@@ -4700,8 +4700,8 @@ function B(r) {
4700
4700
  infix: !!a.infix,
4701
4701
  primitive: !!a.primitive,
4702
4702
  handler: n
4703
- }, m = 0; m < t.length; ++m)
4704
- Tr[t[m]] = h;
4703
+ }, c = 0; c < t.length; ++c)
4704
+ Tr[t[c]] = h;
4705
4705
  e && (s && (De[e] = s), o && (Ce[e] = o));
4706
4706
  }
4707
4707
  function W0(r) {
@@ -4746,8 +4746,8 @@ var Ne = function(e) {
4746
4746
  for (var s = [], o = 0; o < e.length; o++) {
4747
4747
  var h = P(e[o], t);
4748
4748
  if (h instanceof ue) {
4749
- var m = h.children;
4750
- s.push(...m);
4749
+ var c = h.children;
4750
+ s.push(...c);
4751
4751
  } else
4752
4752
  s.push(h);
4753
4753
  }
@@ -4759,24 +4759,24 @@ var Ne = function(e) {
4759
4759
  g.type === "sizing" ? p = t.havingSize(g.size) : g.type === "styling" && (p = t.havingStyle(y1[g.style]));
4760
4760
  }
4761
4761
  var b = N0([n[0] || "leftmost"], [], t), w = N0([n[1] || "rightmost"], [], t), x = a === "root";
4762
- return $t(s, (z, T) => {
4762
+ return Xt(s, (z, T) => {
4763
4763
  var C = T.classes[0], N = z.classes[0];
4764
4764
  C === "mbin" && q.contains(b1, N) ? T.classes[0] = "mord" : N === "mbin" && q.contains(g1, C) && (z.classes[0] = "mord");
4765
4765
  }, {
4766
4766
  node: b
4767
- }, w, x), $t(s, (z, T) => {
4768
- var C = ot(T), N = ot(z), O = C && N ? z.hasClass("mtight") ? v1[C][N] : p1[C][N] : null;
4769
- if (O)
4770
- return y.makeGlue(O, p);
4767
+ }, w, x), Xt(s, (z, T) => {
4768
+ var C = ot(T), N = ot(z), I = C && N ? z.hasClass("mtight") ? v1[C][N] : p1[C][N] : null;
4769
+ if (I)
4770
+ return y.makeGlue(I, p);
4771
4771
  }, {
4772
4772
  node: b
4773
4773
  }, w, x), s;
4774
- }, $t = function r(e, t, a, n, s) {
4774
+ }, Xt = function r(e, t, a, n, s) {
4775
4775
  n && e.push(n);
4776
4776
  for (var o = 0; o < e.length; o++) {
4777
- var h = e[o], m = Br(h);
4778
- if (m) {
4779
- r(m.children, t, a, null, s);
4777
+ var h = e[o], c = Br(h);
4778
+ if (c) {
4779
+ r(c.children, t, a, null, s);
4780
4780
  continue;
4781
4781
  }
4782
4782
  var p = !h.hasClass("mspace");
@@ -4833,9 +4833,9 @@ function ut(r, e) {
4833
4833
  a.length === 2 && a[1].hasClass("tag") && (n = a.pop());
4834
4834
  for (var s = [], o = [], h = 0; h < a.length; h++)
4835
4835
  if (o.push(a[h]), a[h].hasClass("mbin") || a[h].hasClass("mrel") || a[h].hasClass("allowbreak")) {
4836
- for (var m = !1; h < a.length - 1 && a[h + 1].hasClass("mspace") && !a[h + 1].hasClass("newline"); )
4837
- h++, o.push(a[h]), a[h].hasClass("nobreak") && (m = !0);
4838
- m || (s.push(we(o, e)), o = []);
4836
+ for (var c = !1; h < a.length - 1 && a[h + 1].hasClass("mspace") && !a[h + 1].hasClass("newline"); )
4837
+ h++, o.push(a[h]), a[h].hasClass("nobreak") && (c = !0);
4838
+ c || (s.push(we(o, e)), o = []);
4839
4839
  } else a[h].hasClass("newline") && (o.pop(), o.length > 0 && (s.push(we(o, e)), o = []), s.push(a[h]));
4840
4840
  o.length > 0 && s.push(we(o, e));
4841
4841
  var p;
@@ -4963,7 +4963,7 @@ var S = {
4963
4963
  SpaceNode: k1,
4964
4964
  newDocumentFragment: Dr
4965
4965
  }, v0 = function(e, t, a) {
4966
- return $[t][e] && $[t][e].replace && e.charCodeAt(0) !== 55349 && !(kr.hasOwnProperty(e) && a && (a.fontFamily && a.fontFamily.slice(4, 6) === "tt" || a.font && a.font.slice(4, 6) === "tt")) && (e = $[t][e].replace), new S.TextNode(e);
4966
+ return X[t][e] && X[t][e].replace && e.charCodeAt(0) !== 55349 && !(kr.hasOwnProperty(e) && a && (a.fontFamily && a.fontFamily.slice(4, 6) === "tt" || a.font && a.font.slice(4, 6) === "tt")) && (e = X[t][e].replace), new S.TextNode(e);
4967
4967
  }, bt = function(e) {
4968
4968
  return e.length === 1 ? e[0] : new S.MathNode("mrow", e);
4969
4969
  }, yt = function(e, t) {
@@ -5002,7 +5002,7 @@ var S = {
5002
5002
  var s = e.text;
5003
5003
  if (q.contains(["\\imath", "\\jmath"], s))
5004
5004
  return null;
5005
- $[n][s] && $[n][s].replace && (s = $[n][s].replace);
5005
+ X[n][s] && X[n][s].replace && (s = X[n][s].replace);
5006
5006
  var o = y.fontMap[a].fontName;
5007
5007
  return pt(s, o, n) ? y.fontMap[a].variant : null;
5008
5008
  };
@@ -5020,40 +5020,40 @@ function je(r) {
5020
5020
  }
5021
5021
  var o0 = function(e, t, a) {
5022
5022
  if (e.length === 1) {
5023
- var n = X(e[0], t);
5023
+ var n = Y(e[0], t);
5024
5024
  return a && n instanceof h0 && n.type === "mo" && (n.setAttribute("lspace", "0em"), n.setAttribute("rspace", "0em")), [n];
5025
5025
  }
5026
5026
  for (var s = [], o, h = 0; h < e.length; h++) {
5027
- var m = X(e[h], t);
5028
- if (m instanceof h0 && o instanceof h0) {
5029
- if (m.type === "mtext" && o.type === "mtext" && m.getAttribute("mathvariant") === o.getAttribute("mathvariant")) {
5030
- o.children.push(...m.children);
5027
+ var c = Y(e[h], t);
5028
+ if (c instanceof h0 && o instanceof h0) {
5029
+ if (c.type === "mtext" && o.type === "mtext" && c.getAttribute("mathvariant") === o.getAttribute("mathvariant")) {
5030
+ o.children.push(...c.children);
5031
5031
  continue;
5032
- } else if (m.type === "mn" && o.type === "mn") {
5033
- o.children.push(...m.children);
5032
+ } else if (c.type === "mn" && o.type === "mn") {
5033
+ o.children.push(...c.children);
5034
5034
  continue;
5035
- } else if (je(m) && o.type === "mn") {
5036
- o.children.push(...m.children);
5035
+ } else if (je(c) && o.type === "mn") {
5036
+ o.children.push(...c.children);
5037
5037
  continue;
5038
- } else if (m.type === "mn" && je(o))
5039
- m.children = [...o.children, ...m.children], s.pop();
5040
- else if ((m.type === "msup" || m.type === "msub") && m.children.length >= 1 && (o.type === "mn" || je(o))) {
5041
- var p = m.children[0];
5038
+ } else if (c.type === "mn" && je(o))
5039
+ c.children = [...o.children, ...c.children], s.pop();
5040
+ else if ((c.type === "msup" || c.type === "msub") && c.children.length >= 1 && (o.type === "mn" || je(o))) {
5041
+ var p = c.children[0];
5042
5042
  p instanceof h0 && p.type === "mn" && (p.children = [...o.children, ...p.children], s.pop());
5043
5043
  } else if (o.type === "mi" && o.children.length === 1) {
5044
5044
  var g = o.children[0];
5045
- if (g instanceof w0 && g.text === "̸" && (m.type === "mo" || m.type === "mi" || m.type === "mn")) {
5046
- var b = m.children[0];
5045
+ if (g instanceof w0 && g.text === "̸" && (c.type === "mo" || c.type === "mi" || c.type === "mn")) {
5046
+ var b = c.children[0];
5047
5047
  b instanceof w0 && b.text.length > 0 && (b.text = b.text.slice(0, 1) + "̸" + b.text.slice(1), s.pop());
5048
5048
  }
5049
5049
  }
5050
5050
  }
5051
- s.push(m), o = m;
5051
+ s.push(c), o = c;
5052
5052
  }
5053
5053
  return s;
5054
5054
  }, V0 = function(e, t, a) {
5055
5055
  return bt(o0(e, t, a));
5056
- }, X = function(e, t) {
5056
+ }, Y = function(e, t) {
5057
5057
  if (!e)
5058
5058
  return new S.MathNode("mrow");
5059
5059
  if (Ce[e.type]) {
@@ -5067,7 +5067,7 @@ function Wt(r, e, t, a, n) {
5067
5067
  s.length === 1 && s[0] instanceof h0 && q.contains(["mrow", "mtable"], s[0].type) ? o = s[0] : o = new S.MathNode("mrow", s);
5068
5068
  var h = new S.MathNode("annotation", [new S.TextNode(e)]);
5069
5069
  h.setAttribute("encoding", "application/x-tex");
5070
- var m = new S.MathNode("semantics", [o, h]), p = new S.MathNode("math", [m]);
5070
+ var c = new S.MathNode("semantics", [o, h]), p = new S.MathNode("math", [c]);
5071
5071
  p.setAttribute("xmlns", "http://www.w3.org/1998/Math/MathML"), a && p.setAttribute("display", "block");
5072
5072
  var g = n ? "katex" : "katex-mathml";
5073
5073
  return y.makeSpan([g], [p]);
@@ -5092,8 +5092,8 @@ var Cr = function(e) {
5092
5092
  var o = ut(e, n);
5093
5093
  s = y.makeSpan(["katex"], [o]);
5094
5094
  } else {
5095
- var h = Wt(e, t, n, a.displayMode, !1), m = ut(e, n);
5096
- s = y.makeSpan(["katex"], [h, m]);
5095
+ var h = Wt(e, t, n, a.displayMode, !1), c = ut(e, n);
5096
+ s = y.makeSpan(["katex"], [h, c]);
5097
5097
  }
5098
5098
  return Nr(s, a);
5099
5099
  }, M1 = function(e, t, a) {
@@ -5198,14 +5198,14 @@ var Cr = function(e) {
5198
5198
  return e.type === "ordgroup" ? e.body.length : 1;
5199
5199
  }, D1 = function(e, t) {
5200
5200
  function a() {
5201
- var h = 4e5, m = e.label.slice(1);
5202
- if (q.contains(["widehat", "widecheck", "widetilde", "utilde"], m)) {
5201
+ var h = 4e5, c = e.label.slice(1);
5202
+ if (q.contains(["widehat", "widecheck", "widetilde", "utilde"], c)) {
5203
5203
  var p = e, g = B1(p.base), b, w, x;
5204
5204
  if (g > 5)
5205
- m === "widehat" || m === "widecheck" ? (b = 420, h = 2364, x = 0.42, w = m + "4") : (b = 312, h = 2340, x = 0.34, w = "tilde4");
5205
+ c === "widehat" || c === "widecheck" ? (b = 420, h = 2364, x = 0.42, w = c + "4") : (b = 312, h = 2340, x = 0.34, w = "tilde4");
5206
5206
  else {
5207
5207
  var z = [1, 1, 2, 2, 3, 3][g];
5208
- m === "widehat" || m === "widecheck" ? (h = [0, 1062, 2364, 2364, 2364][z], b = [0, 239, 300, 360, 420][z], x = [0, 0.24, 0.3, 0.3, 0.36, 0.42][z], w = m + z) : (h = [0, 600, 1033, 2339, 2340][z], b = [0, 260, 286, 306, 312][z], x = [0, 0.26, 0.286, 0.3, 0.306, 0.34][z], w = "tilde" + z);
5208
+ c === "widehat" || c === "widecheck" ? (h = [0, 1062, 2364, 2364, 2364][z], b = [0, 239, 300, 360, 420][z], x = [0, 0.24, 0.3, 0.3, 0.36, 0.42][z], w = c + z) : (h = [0, 600, 1033, 2339, 2340][z], b = [0, 260, 286, 306, 312][z], x = [0, 0.26, 0.286, 0.3, 0.306, 0.34][z], w = "tilde" + z);
5209
5209
  }
5210
5210
  var T = new G0(w), C = new C0([T], {
5211
5211
  width: "100%",
@@ -5219,35 +5219,35 @@ var Cr = function(e) {
5219
5219
  height: x
5220
5220
  };
5221
5221
  } else {
5222
- var N = [], O = T1[m], [H, V, L] = O, U = L / 1e3, G = H.length, j, Y;
5223
- if (G === 1) {
5224
- var z0 = O[3];
5225
- j = ["hide-tail"], Y = [z0];
5226
- } else if (G === 2)
5227
- j = ["halfarrow-left", "halfarrow-right"], Y = ["xMinYMin", "xMaxYMin"];
5228
- else if (G === 3)
5229
- j = ["brace-left", "brace-center", "brace-right"], Y = ["xMinYMin", "xMidYMin", "xMaxYMin"];
5222
+ var N = [], I = T1[c], [H, G, L] = I, U = L / 1e3, V = H.length, j, $;
5223
+ if (V === 1) {
5224
+ var z0 = I[3];
5225
+ j = ["hide-tail"], $ = [z0];
5226
+ } else if (V === 2)
5227
+ j = ["halfarrow-left", "halfarrow-right"], $ = ["xMinYMin", "xMaxYMin"];
5228
+ else if (V === 3)
5229
+ j = ["brace-left", "brace-center", "brace-right"], $ = ["xMinYMin", "xMidYMin", "xMaxYMin"];
5230
5230
  else
5231
5231
  throw new Error(`Correct katexImagesData or update code here to support
5232
- ` + G + " children.");
5233
- for (var r0 = 0; r0 < G; r0++) {
5234
- var e0 = new G0(H[r0]), Y0 = new C0([e0], {
5232
+ ` + V + " children.");
5233
+ for (var r0 = 0; r0 < V; r0++) {
5234
+ var e0 = new G0(H[r0]), $0 = new C0([e0], {
5235
5235
  width: "400em",
5236
5236
  height: A(U),
5237
5237
  viewBox: "0 0 " + h + " " + L,
5238
- preserveAspectRatio: Y[r0] + " slice"
5239
- }), s0 = y.makeSvgSpan([j[r0]], [Y0], t);
5240
- if (G === 1)
5238
+ preserveAspectRatio: $[r0] + " slice"
5239
+ }), s0 = y.makeSvgSpan([j[r0]], [$0], t);
5240
+ if (V === 1)
5241
5241
  return {
5242
5242
  span: s0,
5243
- minWidth: V,
5243
+ minWidth: G,
5244
5244
  height: U
5245
5245
  };
5246
5246
  s0.style.height = A(U), N.push(s0);
5247
5247
  }
5248
5248
  return {
5249
5249
  span: y.makeSpan(["stretchy"], N, t),
5250
- minWidth: V,
5250
+ minWidth: G,
5251
5251
  height: U
5252
5252
  };
5253
5253
  }
@@ -5262,8 +5262,8 @@ var Cr = function(e) {
5262
5262
  var o, h = e.height + e.depth + a + n;
5263
5263
  if (/fbox|color|angl/.test(t)) {
5264
5264
  if (o = y.makeSpan(["stretchy", t], [], s), t === "fbox") {
5265
- var m = s.color && s.getColor();
5266
- m && (o.style.borderColor = m);
5265
+ var c = s.color && s.getColor();
5266
+ c && (o.style.borderColor = c);
5267
5267
  }
5268
5268
  } else {
5269
5269
  var p = [];
@@ -5311,7 +5311,7 @@ var wt = (r, e) => {
5311
5311
  r && r.type === "supsub" ? (a = F(r.base, "accent"), t = a.base, r.base = t, n = _a(P(r, e)), r.base = a) : (a = F(r, "accent"), t = a.base);
5312
5312
  var s = P(t, e.havingCrampedStyle()), o = a.isShifty && q.isCharacterBox(t), h = 0;
5313
5313
  if (o) {
5314
- var m = q.getBaseElem(t), p = P(m, e.havingCrampedStyle());
5314
+ var c = q.getBaseElem(t), p = P(c, e.havingCrampedStyle());
5315
5315
  h = Pt(p).skew;
5316
5316
  }
5317
5317
  var g = a.label === "\\c", b = g ? s.height + s.depth : Math.min(s.height, e.fontMetrics().xHeight), w;
@@ -5357,7 +5357,7 @@ var wt = (r, e) => {
5357
5357
  var N = y.makeSpan(["mord", "accent"], [w], e);
5358
5358
  return n ? (n.children[0] = N, n.height = Math.max(N.height, n.height), n.classes[0] = "mord", n) : N;
5359
5359
  }, qr = (r, e) => {
5360
- var t = r.isStretchy ? q0.mathMLnode(r.label) : new S.MathNode("mo", [v0(r.label, r.mode)]), a = new S.MathNode("mover", [X(r.base, e), t]);
5360
+ var t = r.isStretchy ? q0.mathMLnode(r.label) : new S.MathNode("mo", [v0(r.label, r.mode)]), a = new S.MathNode("mover", [Y(r.base, e), t]);
5361
5361
  return a.setAttribute("accent", "true"), a;
5362
5362
  }, N1 = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((r) => "\\" + r).join("|"));
5363
5363
  B({
@@ -5441,7 +5441,7 @@ B({
5441
5441
  return y.makeSpan(["mord", "accentunder"], [s], e);
5442
5442
  },
5443
5443
  mathmlBuilder: (r, e) => {
5444
- var t = q0.mathMLnode(r.label), a = new S.MathNode("munder", [X(r.base, e), t]);
5444
+ var t = q0.mathMLnode(r.label), a = new S.MathNode("munder", [Y(r.base, e), t]);
5445
5445
  return a.setAttribute("accentunder", "true"), a;
5446
5446
  }
5447
5447
  });
@@ -5505,7 +5505,7 @@ B({
5505
5505
  n.classes.push(s + "-arrow-pad");
5506
5506
  var o;
5507
5507
  r.below && (a = e.havingStyle(t.sub()), o = y.wrapFragment(P(r.below, a, e), e), o.classes.push(s + "-arrow-pad"));
5508
- var h = q0.svgSpan(r, e), m = -e.fontMetrics().axisHeight + 0.5 * h.height, p = -e.fontMetrics().axisHeight - 0.5 * h.height - 0.111;
5508
+ var h = q0.svgSpan(r, e), c = -e.fontMetrics().axisHeight + 0.5 * h.height, p = -e.fontMetrics().axisHeight - 0.5 * h.height - 0.111;
5509
5509
  (n.depth > 0.25 || r.label === "\\xleftequilibrium") && (p -= n.depth);
5510
5510
  var g;
5511
5511
  if (o) {
@@ -5519,7 +5519,7 @@ B({
5519
5519
  }, {
5520
5520
  type: "elem",
5521
5521
  elem: h,
5522
- shift: m
5522
+ shift: c
5523
5523
  }, {
5524
5524
  type: "elem",
5525
5525
  elem: o,
@@ -5536,7 +5536,7 @@ B({
5536
5536
  }, {
5537
5537
  type: "elem",
5538
5538
  elem: h,
5539
- shift: m
5539
+ shift: c
5540
5540
  }]
5541
5541
  }, e);
5542
5542
  return g.children[0].children[0].children[1].classes.push("svg-align"), y.makeSpan(["mrel", "x-arrow"], [g], e);
@@ -5546,14 +5546,14 @@ B({
5546
5546
  t.setAttribute("minsize", r.label.charAt(0) === "x" ? "1.75em" : "3.0em");
5547
5547
  var a;
5548
5548
  if (r.body) {
5549
- var n = ke(X(r.body, e));
5549
+ var n = ke(Y(r.body, e));
5550
5550
  if (r.below) {
5551
- var s = ke(X(r.below, e));
5551
+ var s = ke(Y(r.below, e));
5552
5552
  a = new S.MathNode("munderover", [t, s, n]);
5553
5553
  } else
5554
5554
  a = new S.MathNode("mover", [t, n]);
5555
5555
  } else if (r.below) {
5556
- var o = ke(X(r.below, e));
5556
+ var o = ke(Y(r.below, e));
5557
5557
  a = new S.MathNode("munder", [t, o]);
5558
5558
  } else
5559
5559
  a = ke(), a = new S.MathNode("mover", [t, a]);
@@ -5637,7 +5637,7 @@ B({
5637
5637
  symbol: !1,
5638
5638
  suppressBaseShift: a !== "\\stackrel",
5639
5639
  body: Q(n)
5640
- }, m = {
5640
+ }, c = {
5641
5641
  type: "supsub",
5642
5642
  mode: s.mode,
5643
5643
  base: h,
@@ -5648,8 +5648,8 @@ B({
5648
5648
  type: "mclass",
5649
5649
  mode: t.mode,
5650
5650
  mclass: o,
5651
- body: [m],
5652
- isCharacterBox: q.isCharacterBox(m)
5651
+ body: [c],
5652
+ isCharacterBox: q.isCharacterBox(c)
5653
5653
  };
5654
5654
  },
5655
5655
  htmlBuilder: Er,
@@ -5709,12 +5709,12 @@ function I1(r, e, t) {
5709
5709
  text: a,
5710
5710
  mode: "math",
5711
5711
  family: "rel"
5712
- }, o = t.callFunction("\\Big", [s], []), h = t.callFunction("\\\\cdright", [e[1]], []), m = {
5712
+ }, o = t.callFunction("\\Big", [s], []), h = t.callFunction("\\\\cdright", [e[1]], []), c = {
5713
5713
  type: "ordgroup",
5714
5714
  mode: "math",
5715
5715
  body: [n, o, h]
5716
5716
  };
5717
- return t.callFunction("\\\\cdparent", [m], []);
5717
+ return t.callFunction("\\\\cdparent", [c], []);
5718
5718
  }
5719
5719
  case "\\\\cdlongequal":
5720
5720
  return t.callFunction("\\\\cdlongequal", [], []);
@@ -5748,12 +5748,12 @@ function O1(r) {
5748
5748
  throw new M("Expected \\\\ or \\cr or \\end", r.nextToken);
5749
5749
  }
5750
5750
  for (var a = [], n = [a], s = 0; s < e.length; s++) {
5751
- for (var o = e[s], h = jt(), m = 0; m < o.length; m++)
5752
- if (!Zt(o[m]))
5753
- h.body.push(o[m]);
5751
+ for (var o = e[s], h = jt(), c = 0; c < o.length; c++)
5752
+ if (!Zt(o[c]))
5753
+ h.body.push(o[c]);
5754
5754
  else {
5755
- a.push(h), m += 1;
5756
- var p = xt(o[m]).text, g = new Array(2);
5755
+ a.push(h), c += 1;
5756
+ var p = xt(o[c]).text, g = new Array(2);
5757
5757
  if (g[0] = {
5758
5758
  type: "ordgroup",
5759
5759
  mode: "math",
@@ -5764,9 +5764,9 @@ function O1(r) {
5764
5764
  body: []
5765
5765
  }, !("=|.".indexOf(p) > -1)) if ("<>AV".indexOf(p) > -1)
5766
5766
  for (var b = 0; b < 2; b++) {
5767
- for (var w = !0, x = m + 1; x < o.length; x++) {
5767
+ for (var w = !0, x = c + 1; x < o.length; x++) {
5768
5768
  if (R1(o[x], p)) {
5769
- w = !1, m = x;
5769
+ w = !1, c = x;
5770
5770
  break;
5771
5771
  }
5772
5772
  if (Zt(o[x]))
@@ -5774,10 +5774,10 @@ function O1(r) {
5774
5774
  g[b].body.push(o[x]);
5775
5775
  }
5776
5776
  if (w)
5777
- throw new M("Missing a " + p + " character to complete a CD arrow.", o[m]);
5777
+ throw new M("Missing a " + p + " character to complete a CD arrow.", o[c]);
5778
5778
  }
5779
5779
  else
5780
- throw new M('Expected one of "<>AV=|." after @', o[m]);
5780
+ throw new M('Expected one of "<>AV=|." after @', o[c]);
5781
5781
  var z = I1(p, g, r), T = {
5782
5782
  type: "styling",
5783
5783
  body: [z],
@@ -5833,7 +5833,7 @@ B({
5833
5833
  return a.classes.push("cd-label-" + r.side), a.style.bottom = A(0.8 - a.depth), a.height = 0, a.depth = 0, a;
5834
5834
  },
5835
5835
  mathmlBuilder(r, e) {
5836
- var t = new S.MathNode("mrow", [X(r.label, e)]);
5836
+ var t = new S.MathNode("mrow", [Y(r.label, e)]);
5837
5837
  return t = new S.MathNode("mpadded", [t]), t.setAttribute("width", "0"), r.side === "left" && t.setAttribute("lspace", "-1width"), t.setAttribute("voffset", "0.7em"), t = new S.MathNode("mstyle", [t]), t.setAttribute("displaystyle", "false"), t.setAttribute("scriptlevel", "1"), t;
5838
5838
  }
5839
5839
  });
@@ -5858,7 +5858,7 @@ B({
5858
5858
  return t.classes.push("cd-vert-arrow"), t;
5859
5859
  },
5860
5860
  mathmlBuilder(r, e) {
5861
- return new S.MathNode("mrow", [X(r.fragment, e)]);
5861
+ return new S.MathNode("mrow", [Y(r.fragment, e)]);
5862
5862
  }
5863
5863
  });
5864
5864
  B({
@@ -5875,12 +5875,12 @@ B({
5875
5875
  var h = F(n[o], "textord");
5876
5876
  s += h.text;
5877
5877
  }
5878
- var m = parseInt(s), p;
5879
- if (isNaN(m))
5878
+ var c = parseInt(s), p;
5879
+ if (isNaN(c))
5880
5880
  throw new M("\\@char has non-numeric argument " + s);
5881
- if (m < 0 || m >= 1114111)
5881
+ if (c < 0 || c >= 1114111)
5882
5882
  throw new M("\\@char with invalid code point " + s);
5883
- return m <= 65535 ? p = String.fromCharCode(m) : (m -= 65536, p = String.fromCharCode((m >> 10) + 55296, (m & 1023) + 56320)), {
5883
+ return c <= 65535 ? p = String.fromCharCode(c) : (c -= 65536, p = String.fromCharCode((c >> 10) + 55296, (c & 1023) + 56320)), {
5884
5884
  type: "textord",
5885
5885
  mode: t.mode,
5886
5886
  text: p
@@ -6054,10 +6054,10 @@ B({
6054
6054
  h[s].push(a.text);
6055
6055
  }
6056
6056
  var {
6057
- tokens: m
6057
+ tokens: c
6058
6058
  } = e.gullet.consumeArg();
6059
- return o && m.unshift(o), (t === "\\edef" || t === "\\xdef") && (m = e.gullet.expandTokens(m), m.reverse()), e.gullet.macros.set(n, {
6060
- tokens: m,
6059
+ return o && c.unshift(o), (t === "\\edef" || t === "\\xdef") && (c = e.gullet.expandTokens(c), c.reverse()), e.gullet.macros.set(n, {
6060
+ tokens: c,
6061
6061
  numArgs: s,
6062
6062
  delimiters: h
6063
6063
  }, t === ht[t]), {
@@ -6115,7 +6115,7 @@ B({
6115
6115
  }
6116
6116
  });
6117
6117
  var ie = function(e, t, a) {
6118
- var n = $.math[e] && $.math[e].replace, s = pt(n || e, t, a);
6118
+ var n = X.math[e] && X.math[e].replace, s = pt(n || e, t, a);
6119
6119
  if (!s)
6120
6120
  throw new Error("Unsupported symbol " + e + " and font size " + t + ".");
6121
6121
  return s;
@@ -6126,13 +6126,13 @@ var ie = function(e, t, a) {
6126
6126
  var n = t.havingBaseStyle(a), s = (1 - t.sizeMultiplier / n.sizeMultiplier) * t.fontMetrics().axisHeight;
6127
6127
  e.classes.push("delimcenter"), e.style.top = A(s), e.height -= s, e.depth += s;
6128
6128
  }, F1 = function(e, t, a, n, s, o) {
6129
- var h = y.makeSymbol(e, "Main-Regular", s, n), m = kt(h, t, n, o);
6130
- return a && Lr(m, n, t), m;
6129
+ var h = y.makeSymbol(e, "Main-Regular", s, n), c = kt(h, t, n, o);
6130
+ return a && Lr(c, n, t), c;
6131
6131
  }, L1 = function(e, t, a, n) {
6132
6132
  return y.makeSymbol(e, "Size" + t + "-Regular", a, n);
6133
6133
  }, Pr = function(e, t, a, n, s, o) {
6134
- var h = L1(e, t, s, n), m = kt(y.makeSpan(["delimsizing", "size" + t], [h], n), R.TEXT, n, o);
6135
- return a && Lr(m, n, R.TEXT), m;
6134
+ var h = L1(e, t, s, n), c = kt(y.makeSpan(["delimsizing", "size" + t], [h], n), R.TEXT, n, o);
6135
+ return a && Lr(c, n, R.TEXT), c;
6136
6136
  }, Ze = function(e, t, a) {
6137
6137
  var n;
6138
6138
  t === "Size1-Regular" ? n = "delim-size1" : n = "delim-size4";
@@ -6142,7 +6142,7 @@ var ie = function(e, t, a) {
6142
6142
  elem: s
6143
6143
  };
6144
6144
  }, Ke = function(e, t, a) {
6145
- var n = x0["Size4-Regular"][e.charCodeAt(0)] ? x0["Size4-Regular"][e.charCodeAt(0)][4] : x0["Size1-Regular"][e.charCodeAt(0)][4], s = new G0("inner", Ya(e, Math.round(1e3 * t))), o = new C0([s], {
6145
+ var n = x0["Size4-Regular"][e.charCodeAt(0)] ? x0["Size4-Regular"][e.charCodeAt(0)][4] : x0["Size1-Regular"][e.charCodeAt(0)][4], s = new G0("inner", $a(e, Math.round(1e3 * t))), o = new C0([s], {
6146
6146
  width: A(n),
6147
6147
  height: A(t),
6148
6148
  // Override CSS rule `.katex svg { width: 100% }`
@@ -6158,20 +6158,20 @@ var ie = function(e, t, a) {
6158
6158
  type: "kern",
6159
6159
  size: -1 * mt
6160
6160
  }, P1 = ["|", "\\lvert", "\\rvert", "\\vert"], G1 = ["\\|", "\\lVert", "\\rVert", "\\Vert"], Gr = function(e, t, a, n, s, o) {
6161
- var h, m, p, g, b = "", w = 0;
6162
- h = p = g = e, m = null;
6161
+ var h, c, p, g, b = "", w = 0;
6162
+ h = p = g = e, c = null;
6163
6163
  var x = "Size1-Regular";
6164
- e === "\\uparrow" ? p = g = "⏐" : e === "\\Uparrow" ? p = g = "‖" : e === "\\downarrow" ? h = p = "⏐" : e === "\\Downarrow" ? h = p = "‖" : e === "\\updownarrow" ? (h = "\\uparrow", p = "⏐", g = "\\downarrow") : e === "\\Updownarrow" ? (h = "\\Uparrow", p = "‖", g = "\\Downarrow") : q.contains(P1, e) ? (p = "∣", b = "vert", w = 333) : q.contains(G1, e) ? (p = "∥", b = "doublevert", w = 556) : e === "[" || e === "\\lbrack" ? (h = "⎡", p = "⎢", g = "⎣", x = "Size4-Regular", b = "lbrack", w = 667) : e === "]" || e === "\\rbrack" ? (h = "⎤", p = "⎥", g = "⎦", x = "Size4-Regular", b = "rbrack", w = 667) : e === "\\lfloor" || e === "⌊" ? (p = h = "⎢", g = "⎣", x = "Size4-Regular", b = "lfloor", w = 667) : e === "\\lceil" || e === "⌈" ? (h = "⎡", p = g = "⎢", x = "Size4-Regular", b = "lceil", w = 667) : e === "\\rfloor" || e === "⌋" ? (p = h = "⎥", g = "⎦", x = "Size4-Regular", b = "rfloor", w = 667) : e === "\\rceil" || e === "⌉" ? (h = "⎤", p = g = "⎥", x = "Size4-Regular", b = "rceil", w = 667) : e === "(" || e === "\\lparen" ? (h = "⎛", p = "⎜", g = "⎝", x = "Size4-Regular", b = "lparen", w = 875) : e === ")" || e === "\\rparen" ? (h = "⎞", p = "⎟", g = "⎠", x = "Size4-Regular", b = "rparen", w = 875) : e === "\\{" || e === "\\lbrace" ? (h = "⎧", m = "⎨", g = "⎩", p = "⎪", x = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (h = "⎫", m = "⎬", g = "⎭", p = "⎪", x = "Size4-Regular") : e === "\\lgroup" || e === "⟮" ? (h = "⎧", g = "⎩", p = "⎪", x = "Size4-Regular") : e === "\\rgroup" || e === "⟯" ? (h = "⎫", g = "⎭", p = "⎪", x = "Size4-Regular") : e === "\\lmoustache" || e === "⎰" ? (h = "⎧", g = "⎭", p = "⎪", x = "Size4-Regular") : (e === "\\rmoustache" || e === "⎱") && (h = "⎫", g = "⎩", p = "⎪", x = "Size4-Regular");
6165
- var z = ie(h, x, s), T = z.height + z.depth, C = ie(p, x, s), N = C.height + C.depth, O = ie(g, x, s), H = O.height + O.depth, V = 0, L = 1;
6166
- if (m !== null) {
6167
- var U = ie(m, x, s);
6168
- V = U.height + U.depth, L = 2;
6164
+ e === "\\uparrow" ? p = g = "⏐" : e === "\\Uparrow" ? p = g = "‖" : e === "\\downarrow" ? h = p = "⏐" : e === "\\Downarrow" ? h = p = "‖" : e === "\\updownarrow" ? (h = "\\uparrow", p = "⏐", g = "\\downarrow") : e === "\\Updownarrow" ? (h = "\\Uparrow", p = "‖", g = "\\Downarrow") : q.contains(P1, e) ? (p = "∣", b = "vert", w = 333) : q.contains(G1, e) ? (p = "∥", b = "doublevert", w = 556) : e === "[" || e === "\\lbrack" ? (h = "⎡", p = "⎢", g = "⎣", x = "Size4-Regular", b = "lbrack", w = 667) : e === "]" || e === "\\rbrack" ? (h = "⎤", p = "⎥", g = "⎦", x = "Size4-Regular", b = "rbrack", w = 667) : e === "\\lfloor" || e === "⌊" ? (p = h = "⎢", g = "⎣", x = "Size4-Regular", b = "lfloor", w = 667) : e === "\\lceil" || e === "⌈" ? (h = "⎡", p = g = "⎢", x = "Size4-Regular", b = "lceil", w = 667) : e === "\\rfloor" || e === "⌋" ? (p = h = "⎥", g = "⎦", x = "Size4-Regular", b = "rfloor", w = 667) : e === "\\rceil" || e === "⌉" ? (h = "⎤", p = g = "⎥", x = "Size4-Regular", b = "rceil", w = 667) : e === "(" || e === "\\lparen" ? (h = "⎛", p = "⎜", g = "⎝", x = "Size4-Regular", b = "lparen", w = 875) : e === ")" || e === "\\rparen" ? (h = "⎞", p = "⎟", g = "⎠", x = "Size4-Regular", b = "rparen", w = 875) : e === "\\{" || e === "\\lbrace" ? (h = "⎧", c = "⎨", g = "⎩", p = "⎪", x = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (h = "⎫", c = "⎬", g = "⎭", p = "⎪", x = "Size4-Regular") : e === "\\lgroup" || e === "⟮" ? (h = "⎧", g = "⎩", p = "⎪", x = "Size4-Regular") : e === "\\rgroup" || e === "⟯" ? (h = "⎫", g = "⎭", p = "⎪", x = "Size4-Regular") : e === "\\lmoustache" || e === "⎰" ? (h = "⎧", g = "⎭", p = "⎪", x = "Size4-Regular") : (e === "\\rmoustache" || e === "⎱") && (h = "⎫", g = "⎩", p = "⎪", x = "Size4-Regular");
6165
+ var z = ie(h, x, s), T = z.height + z.depth, C = ie(p, x, s), N = C.height + C.depth, I = ie(g, x, s), H = I.height + I.depth, G = 0, L = 1;
6166
+ if (c !== null) {
6167
+ var U = ie(c, x, s);
6168
+ G = U.height + U.depth, L = 2;
6169
6169
  }
6170
- var G = T + H + V, j = Math.max(0, Math.ceil((t - G) / (L * N))), Y = G + j * L * N, z0 = n.fontMetrics().axisHeight;
6170
+ var V = T + H + G, j = Math.max(0, Math.ceil((t - V) / (L * N))), $ = V + j * L * N, z0 = n.fontMetrics().axisHeight;
6171
6171
  a && (z0 *= n.sizeMultiplier);
6172
- var r0 = Y / 2 - z0, e0 = [];
6172
+ var r0 = $ / 2 - z0, e0 = [];
6173
6173
  if (b.length > 0) {
6174
- var Y0 = Y - T - H, s0 = Math.round(Y * 1e3), g0 = Xa(b, Math.round(Y0 * 1e3)), R0 = new G0(b, g0), j0 = (w / 1e3).toFixed(3) + "em", Z0 = (s0 / 1e3).toFixed(3) + "em", Le = new C0([R0], {
6174
+ var $0 = $ - T - H, s0 = Math.round($ * 1e3), g0 = Ya(b, Math.round($0 * 1e3)), R0 = new G0(b, g0), j0 = (w / 1e3).toFixed(3) + "em", Z0 = (s0 / 1e3).toFixed(3) + "em", Le = new C0([R0], {
6175
6175
  width: j0,
6176
6176
  height: Z0,
6177
6177
  viewBox: "0 0 " + w + " " + s0
@@ -6181,12 +6181,12 @@ var ie = function(e, t, a) {
6181
6181
  elem: I0
6182
6182
  });
6183
6183
  } else {
6184
- if (e0.push(Ze(g, x, s)), e0.push(Se), m === null) {
6185
- var O0 = Y - T - H + 2 * mt;
6184
+ if (e0.push(Ze(g, x, s)), e0.push(Se), c === null) {
6185
+ var O0 = $ - T - H + 2 * mt;
6186
6186
  e0.push(Ke(p, O0, n));
6187
6187
  } else {
6188
- var c0 = (Y - T - H - V) / 2 + 2 * mt;
6189
- e0.push(Ke(p, c0, n)), e0.push(Se), e0.push(Ze(m, x, s)), e0.push(Se), e0.push(Ke(p, c0, n));
6188
+ var c0 = ($ - T - H - G) / 2 + 2 * mt;
6189
+ e0.push(Ke(p, c0, n)), e0.push(Se), e0.push(Ze(c, x, s)), e0.push(Se), e0.push(Ke(p, c0, n));
6190
6190
  }
6191
6191
  e0.push(Se), e0.push(Ze(h, x, s));
6192
6192
  }
@@ -6197,17 +6197,17 @@ var ie = function(e, t, a) {
6197
6197
  }, ne);
6198
6198
  return kt(y.makeSpan(["delimsizing", "mult"], [Pe], ne), R.TEXT, n, o);
6199
6199
  }, Je = 80, Qe = 0.08, _e = function(e, t, a, n, s) {
6200
- var o = Ua(e, n, a), h = new G0(e, o), m = new C0([h], {
6200
+ var o = Ua(e, n, a), h = new G0(e, o), c = new C0([h], {
6201
6201
  // Note: 1000:1 ratio of viewBox to document em width.
6202
6202
  width: "400em",
6203
6203
  height: A(t),
6204
6204
  viewBox: "0 0 400000 " + a,
6205
6205
  preserveAspectRatio: "xMinYMin slice"
6206
6206
  });
6207
- return y.makeSvgSpan(["hide-tail"], [m], s);
6207
+ return y.makeSvgSpan(["hide-tail"], [c], s);
6208
6208
  }, V1 = function(e, t) {
6209
- var a = t.havingBaseSizing(), n = Xr("\\surd", e * a.sizeMultiplier, Yr, a), s = a.sizeMultiplier, o = Math.max(0, t.minRuleThickness - t.fontMetrics().sqrtRuleThickness), h, m = 0, p = 0, g = 0, b;
6210
- return n.type === "small" ? (g = 1e3 + 1e3 * o + Je, e < 1 ? s = 1 : e < 1.4 && (s = 0.7), m = (1 + o + Qe) / s, p = (1 + o) / s, h = _e("sqrtMain", m, g, o, t), h.style.minWidth = "0.853em", b = 0.833 / s) : n.type === "large" ? (g = (1e3 + Je) * se[n.size], p = (se[n.size] + o) / s, m = (se[n.size] + o + Qe) / s, h = _e("sqrtSize" + n.size, m, g, o, t), h.style.minWidth = "1.02em", b = 1 / s) : (m = e + o + Qe, p = e + o, g = Math.floor(1e3 * e + o) + Je, h = _e("sqrtTall", m, g, o, t), h.style.minWidth = "0.742em", b = 1.056), h.height = p, h.style.height = A(m), {
6209
+ var a = t.havingBaseSizing(), n = Yr("\\surd", e * a.sizeMultiplier, $r, a), s = a.sizeMultiplier, o = Math.max(0, t.minRuleThickness - t.fontMetrics().sqrtRuleThickness), h, c = 0, p = 0, g = 0, b;
6210
+ return n.type === "small" ? (g = 1e3 + 1e3 * o + Je, e < 1 ? s = 1 : e < 1.4 && (s = 0.7), c = (1 + o + Qe) / s, p = (1 + o) / s, h = _e("sqrtMain", c, g, o, t), h.style.minWidth = "0.853em", b = 0.833 / s) : n.type === "large" ? (g = (1e3 + Je) * se[n.size], p = (se[n.size] + o) / s, c = (se[n.size] + o + Qe) / s, h = _e("sqrtSize" + n.size, c, g, o, t), h.style.minWidth = "1.02em", b = 1 / s) : (c = e + o + Qe, p = e + o, g = Math.floor(1e3 * e + o) + Je, h = _e("sqrtTall", c, g, o, t), h.style.minWidth = "0.742em", b = 1.056), h.height = p, h.style.height = A(c), {
6211
6211
  span: h,
6212
6212
  advanceWidth: b,
6213
6213
  // Calculate the actual line width.
@@ -6216,13 +6216,13 @@ var ie = function(e, t, a) {
6216
6216
  // have thicker rules.
6217
6217
  ruleWidth: (t.fontMetrics().sqrtRuleThickness + o) * s
6218
6218
  };
6219
- }, Vr = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "\\surd"], U1 = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱"], Ur = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], se = [0, 1.2, 1.8, 2.4, 3], Y1 = function(e, t, a, n, s) {
6219
+ }, Vr = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "\\surd"], U1 = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱"], Ur = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], se = [0, 1.2, 1.8, 2.4, 3], $1 = function(e, t, a, n, s) {
6220
6220
  if (e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle"), q.contains(Vr, e) || q.contains(Ur, e))
6221
6221
  return Pr(e, t, !1, a, n, s);
6222
6222
  if (q.contains(U1, e))
6223
6223
  return Gr(e, se[t], !1, a, n, s);
6224
6224
  throw new M("Illegal delimiter: '" + e + "'");
6225
- }, X1 = [{
6225
+ }, Y1 = [{
6226
6226
  type: "small",
6227
6227
  style: R.SCRIPTSCRIPT
6228
6228
  }, {
@@ -6243,7 +6243,7 @@ var ie = function(e, t, a) {
6243
6243
  }, {
6244
6244
  type: "large",
6245
6245
  size: 4
6246
- }], $1 = [{
6246
+ }], X1 = [{
6247
6247
  type: "small",
6248
6248
  style: R.SCRIPTSCRIPT
6249
6249
  }, {
@@ -6254,7 +6254,7 @@ var ie = function(e, t, a) {
6254
6254
  style: R.TEXT
6255
6255
  }, {
6256
6256
  type: "stack"
6257
- }], Yr = [{
6257
+ }], $r = [{
6258
6258
  type: "small",
6259
6259
  style: R.SCRIPTSCRIPT
6260
6260
  }, {
@@ -6285,25 +6285,25 @@ var ie = function(e, t, a) {
6285
6285
  if (e.type === "stack")
6286
6286
  return "Size4-Regular";
6287
6287
  throw new Error("Add support for delim type '" + e.type + "' here.");
6288
- }, Xr = function(e, t, a, n) {
6288
+ }, Yr = function(e, t, a, n) {
6289
6289
  for (var s = Math.min(2, 3 - n.style.size), o = s; o < a.length && a[o].type !== "stack"; o++) {
6290
- var h = ie(e, W1(a[o]), "math"), m = h.height + h.depth;
6290
+ var h = ie(e, W1(a[o]), "math"), c = h.height + h.depth;
6291
6291
  if (a[o].type === "small") {
6292
6292
  var p = n.havingBaseStyle(a[o].style);
6293
- m *= p.sizeMultiplier;
6293
+ c *= p.sizeMultiplier;
6294
6294
  }
6295
- if (m > t)
6295
+ if (c > t)
6296
6296
  return a[o];
6297
6297
  }
6298
6298
  return a[a.length - 1];
6299
- }, $r = function(e, t, a, n, s, o) {
6299
+ }, Xr = function(e, t, a, n, s, o) {
6300
6300
  e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle");
6301
6301
  var h;
6302
- q.contains(Ur, e) ? h = X1 : q.contains(Vr, e) ? h = Yr : h = $1;
6303
- var m = Xr(e, t, h, n);
6304
- return m.type === "small" ? F1(e, m.style, a, n, s, o) : m.type === "large" ? Pr(e, m.size, a, n, s, o) : Gr(e, t, a, n, s, o);
6302
+ q.contains(Ur, e) ? h = Y1 : q.contains(Vr, e) ? h = $r : h = X1;
6303
+ var c = Yr(e, t, h, n);
6304
+ return c.type === "small" ? F1(e, c.style, a, n, s, o) : c.type === "large" ? Pr(e, c.size, a, n, s, o) : Gr(e, t, a, n, s, o);
6305
6305
  }, j1 = function(e, t, a, n, s, o) {
6306
- var h = n.fontMetrics().axisHeight * n.sizeMultiplier, m = 901, p = 5 / n.fontMetrics().ptPerEm, g = Math.max(t - h, a + h), b = Math.max(
6306
+ var h = n.fontMetrics().axisHeight * n.sizeMultiplier, c = 901, p = 5 / n.fontMetrics().ptPerEm, g = Math.max(t - h, a + h), b = Math.max(
6307
6307
  // In real TeX, calculations are done using integral values which are
6308
6308
  // 65536 per pt, or 655360 per em. So, the division here truncates in
6309
6309
  // TeX but doesn't here, producing different results. If we wanted to
@@ -6313,15 +6313,15 @@ var ie = function(e, t, a) {
6313
6313
  // (To see the difference, compare
6314
6314
  // x^{x^{\left(\rule{0.1em}{0.68em}\right)}}
6315
6315
  // in TeX and KaTeX)
6316
- g / 500 * m,
6316
+ g / 500 * c,
6317
6317
  2 * g - p
6318
6318
  );
6319
- return $r(e, b, !0, n, s, o);
6319
+ return Xr(e, b, !0, n, s, o);
6320
6320
  }, D0 = {
6321
6321
  sqrtImage: V1,
6322
- sizedDelim: Y1,
6322
+ sizedDelim: $1,
6323
6323
  sizeToMaxHeight: se,
6324
- customSizedDelim: $r,
6324
+ customSizedDelim: Xr,
6325
6325
  leftRightDelim: j1
6326
6326
  }, Kt = {
6327
6327
  "\\bigl": {
@@ -6475,9 +6475,9 @@ B({
6475
6475
  a *= e.sizeMultiplier, n *= e.sizeMultiplier;
6476
6476
  var h;
6477
6477
  if (r.left === "." ? h = oe(e, ["mopen"]) : h = D0.leftRightDelim(r.left, a, n, e, r.mode, ["mopen"]), t.unshift(h), s)
6478
- for (var m = 1; m < t.length; m++) {
6479
- var p = t[m], g = p.isMiddle;
6480
- g && (t[m] = D0.leftRightDelim(g.delim, a, n, g.options, r.mode, []));
6478
+ for (var c = 1; c < t.length; c++) {
6479
+ var p = t[c], g = p.isMiddle;
6480
+ g && (t[c] = D0.leftRightDelim(g.delim, a, n, g.options, r.mode, []));
6481
6481
  }
6482
6482
  var b;
6483
6483
  if (r.right === ".")
@@ -6543,7 +6543,7 @@ var St = (r, e) => {
6543
6543
  if (a === "sout")
6544
6544
  s = y.makeSpan(["stretchy", "sout"]), s.height = e.fontMetrics().defaultRuleThickness / n, o = -0.5 * e.fontMetrics().xHeight;
6545
6545
  else if (a === "phase") {
6546
- var m = K({
6546
+ var c = K({
6547
6547
  number: 0.6,
6548
6548
  unit: "pt"
6549
6549
  }, e), p = K({
@@ -6551,15 +6551,15 @@ var St = (r, e) => {
6551
6551
  unit: "ex"
6552
6552
  }, e), g = e.havingBaseSizing();
6553
6553
  n = n / g.sizeMultiplier;
6554
- var b = t.height + t.depth + m + p;
6555
- t.style.paddingLeft = A(b / 2 + m);
6554
+ var b = t.height + t.depth + c + p;
6555
+ t.style.paddingLeft = A(b / 2 + c);
6556
6556
  var w = Math.floor(1e3 * b * n), x = Ga(w), z = new C0([new G0("phase", x)], {
6557
6557
  width: "400em",
6558
6558
  height: A(w / 1e3),
6559
6559
  viewBox: "0 0 400000 " + w,
6560
6560
  preserveAspectRatio: "xMinYMin slice"
6561
6561
  });
6562
- s = y.makeSvgSpan(["hide-tail"], [z], e), s.style.height = A(b), o = t.depth + m + p;
6562
+ s = y.makeSvgSpan(["hide-tail"], [z], e), s.style.height = A(b), o = t.depth + c + p;
6563
6563
  } else {
6564
6564
  /cancel/.test(a) ? h || t.classes.push("cancel-pad") : a === "angl" ? t.classes.push("anglpad") : t.classes.push("boxpad");
6565
6565
  var T = 0, C = 0, N = 0;
@@ -6570,9 +6570,9 @@ var St = (r, e) => {
6570
6570
  // User override.
6571
6571
  ), T = e.fontMetrics().fboxsep + (a === "colorbox" ? 0 : N), C = T) : a === "angl" ? (N = Math.max(e.fontMetrics().defaultRuleThickness, e.minRuleThickness), T = 4 * N, C = Math.max(0, 0.25 - t.depth)) : (T = h ? 0.2 : 0, C = T), s = q0.encloseSpan(t, a, T, C, e), /fbox|boxed|fcolorbox/.test(a) ? (s.style.borderStyle = "solid", s.style.borderWidth = A(N)) : a === "angl" && N !== 0.049 && (s.style.borderTopWidth = A(N), s.style.borderRightWidth = A(N)), o = t.depth + C, r.backgroundColor && (s.style.backgroundColor = r.backgroundColor, r.borderColor && (s.style.borderColor = r.borderColor));
6572
6572
  }
6573
- var O;
6573
+ var I;
6574
6574
  if (r.backgroundColor)
6575
- O = y.makeVList({
6575
+ I = y.makeVList({
6576
6576
  positionType: "individualShift",
6577
6577
  children: [
6578
6578
  // Put the color background behind inner;
@@ -6590,7 +6590,7 @@ var St = (r, e) => {
6590
6590
  }, e);
6591
6591
  else {
6592
6592
  var H = /cancel|phase/.test(a) ? ["svg-align"] : [];
6593
- O = y.makeVList({
6593
+ I = y.makeVList({
6594
6594
  positionType: "individualShift",
6595
6595
  children: [
6596
6596
  // Write the \cancel stroke on top of inner.
@@ -6608,9 +6608,9 @@ var St = (r, e) => {
6608
6608
  ]
6609
6609
  }, e);
6610
6610
  }
6611
- return /cancel/.test(a) && (O.height = t.height, O.depth = t.depth), /cancel/.test(a) && !h ? y.makeSpan(["mord", "cancel-lap"], [O], e) : y.makeSpan(["mord"], [O], e);
6611
+ return /cancel/.test(a) && (I.height = t.height, I.depth = t.depth), /cancel/.test(a) && !h ? y.makeSpan(["mord", "cancel-lap"], [I], e) : y.makeSpan(["mord"], [I], e);
6612
6612
  }, Mt = (r, e) => {
6613
- var t = 0, a = new S.MathNode(r.label.indexOf("colorbox") > -1 ? "mpadded" : "menclose", [X(r.body, e)]);
6613
+ var t = 0, a = new S.MathNode(r.label.indexOf("colorbox") > -1 ? "mpadded" : "menclose", [Y(r.body, e)]);
6614
6614
  switch (r.label) {
6615
6615
  case "\\cancel":
6616
6616
  a.setAttribute("notation", "updiagonalstrike");
@@ -6773,12 +6773,12 @@ function k0(r) {
6773
6773
  allowedInText: !1,
6774
6774
  numOptionalArgs: 0,
6775
6775
  handler: n
6776
- }, m = 0; m < t.length; ++m)
6777
- Wr[t[m]] = h;
6776
+ }, c = 0; c < t.length; ++c)
6777
+ Wr[t[c]] = h;
6778
6778
  s && (De[e] = s), o && (Ce[e] = o);
6779
6779
  }
6780
6780
  var jr = {};
6781
- function c(r, e) {
6781
+ function m(r, e) {
6782
6782
  jr[r] = e;
6783
6783
  }
6784
6784
  function Qt(r) {
@@ -6805,7 +6805,7 @@ function U0(r, e, t) {
6805
6805
  cols: s,
6806
6806
  arraystretch: o,
6807
6807
  colSeparationType: h,
6808
- autoTag: m,
6808
+ autoTag: c,
6809
6809
  singleRow: p,
6810
6810
  emptySingleRow: g,
6811
6811
  maxNumCols: b,
@@ -6819,12 +6819,12 @@ function U0(r, e, t) {
6819
6819
  throw new M("Invalid \\arraystretch: " + x);
6820
6820
  }
6821
6821
  r.gullet.beginGroup();
6822
- var z = [], T = [z], C = [], N = [], O = m != null ? [] : void 0;
6822
+ var z = [], T = [z], C = [], N = [], I = c != null ? [] : void 0;
6823
6823
  function H() {
6824
- m && r.gullet.macros.set("\\@eqnsw", "1", !0);
6824
+ c && r.gullet.macros.set("\\@eqnsw", "1", !0);
6825
6825
  }
6826
- function V() {
6827
- O && (r.gullet.macros.get("\\df@tag") ? (O.push(r.subparse([new f0("\\df@tag")])), r.gullet.macros.set("\\df@tag", void 0, !0)) : O.push(!!m && r.gullet.macros.get("\\@eqnsw") === "1"));
6826
+ function G() {
6827
+ I && (r.gullet.macros.get("\\df@tag") ? (I.push(r.subparse([new f0("\\df@tag")])), r.gullet.macros.set("\\df@tag", void 0, !0)) : I.push(!!c && r.gullet.macros.get("\\@eqnsw") === "1"));
6828
6828
  }
6829
6829
  for (H(), N.push(Qt(r)); ; ) {
6830
6830
  var L = r.parseExpression(!1, p ? "\\end" : "\\\\");
@@ -6847,12 +6847,12 @@ function U0(r, e, t) {
6847
6847
  }
6848
6848
  r.consume();
6849
6849
  } else if (U === "\\end") {
6850
- V(), z.length === 1 && L.type === "styling" && L.body[0].body.length === 0 && (T.length > 1 || !g) && T.pop(), N.length < T.length + 1 && N.push([]);
6850
+ G(), z.length === 1 && L.type === "styling" && L.body[0].body.length === 0 && (T.length > 1 || !g) && T.pop(), N.length < T.length + 1 && N.push([]);
6851
6851
  break;
6852
6852
  } else if (U === "\\\\") {
6853
6853
  r.consume();
6854
- var G = void 0;
6855
- r.gullet.future().text !== " " && (G = r.parseSizeGroup(!0)), C.push(G ? G.value : null), V(), N.push(Qt(r)), z = [], T.push(z), H();
6854
+ var V = void 0;
6855
+ r.gullet.future().text !== " " && (V = r.parseSizeGroup(!0)), C.push(V ? V.value : null), G(), N.push(Qt(r)), z = [], T.push(z), H();
6856
6856
  } else
6857
6857
  throw new M("Expected & or \\\\ or \\cr or \\end", r.nextToken);
6858
6858
  }
@@ -6867,7 +6867,7 @@ function U0(r, e, t) {
6867
6867
  hskipBeforeAndAfter: a,
6868
6868
  hLinesBeforeRow: N,
6869
6869
  colSeparationType: h,
6870
- tags: O,
6870
+ tags: I,
6871
6871
  leqno: w
6872
6872
  };
6873
6873
  }
@@ -6875,7 +6875,7 @@ function At(r) {
6875
6875
  return r.slice(0, 1) === "d" ? "display" : "text";
6876
6876
  }
6877
6877
  var S0 = function(e, t) {
6878
- var a, n, s = e.body.length, o = e.hLinesBeforeRow, h = 0, m = new Array(s), p = [], g = Math.max(
6878
+ var a, n, s = e.body.length, o = e.hLinesBeforeRow, h = 0, c = new Array(s), p = [], g = Math.max(
6879
6879
  // From LaTeX \showthe\arrayrulewidth. Equals 0.04 em.
6880
6880
  t.fontMetrics().arrayRuleWidth,
6881
6881
  t.minRuleThickness
@@ -6888,29 +6888,29 @@ var S0 = function(e, t) {
6888
6888
  var z = e.colSeparationType === "CD" ? K({
6889
6889
  number: 3,
6890
6890
  unit: "ex"
6891
- }, t) : 12 * b, T = 3 * b, C = e.arraystretch * z, N = 0.7 * C, O = 0.3 * C, H = 0;
6892
- function V(fe) {
6891
+ }, t) : 12 * b, T = 3 * b, C = e.arraystretch * z, N = 0.7 * C, I = 0.3 * C, H = 0;
6892
+ function G(fe) {
6893
6893
  for (var pe = 0; pe < fe.length; ++pe)
6894
6894
  pe > 0 && (H += 0.25), p.push({
6895
6895
  pos: H,
6896
6896
  isDashed: fe[pe]
6897
6897
  });
6898
6898
  }
6899
- for (V(o[0]), a = 0; a < e.body.length; ++a) {
6900
- var L = e.body[a], U = N, G = O;
6899
+ for (G(o[0]), a = 0; a < e.body.length; ++a) {
6900
+ var L = e.body[a], U = N, V = I;
6901
6901
  h < L.length && (h = L.length);
6902
6902
  var j = new Array(L.length);
6903
6903
  for (n = 0; n < L.length; ++n) {
6904
- var Y = P(L[n], t);
6905
- G < Y.depth && (G = Y.depth), U < Y.height && (U = Y.height), j[n] = Y;
6904
+ var $ = P(L[n], t);
6905
+ V < $.depth && (V = $.depth), U < $.height && (U = $.height), j[n] = $;
6906
6906
  }
6907
6907
  var z0 = e.rowGaps[a], r0 = 0;
6908
- z0 && (r0 = K(z0, t), r0 > 0 && (r0 += O, G < r0 && (G = r0), r0 = 0)), e.addJot && (G += T), j.height = U, j.depth = G, H += U, j.pos = H, H += G + r0, m[a] = j, V(o[a + 1]);
6908
+ z0 && (r0 = K(z0, t), r0 > 0 && (r0 += I, V < r0 && (V = r0), r0 = 0)), e.addJot && (V += T), j.height = U, j.depth = V, H += U, j.pos = H, H += V + r0, c[a] = j, G(o[a + 1]);
6909
6909
  }
6910
- var e0 = H / 2 + t.fontMetrics().axisHeight, Y0 = e.cols || [], s0 = [], g0, R0, j0 = [];
6910
+ var e0 = H / 2 + t.fontMetrics().axisHeight, $0 = e.cols || [], s0 = [], g0, R0, j0 = [];
6911
6911
  if (e.tags && e.tags.some((fe) => fe))
6912
6912
  for (a = 0; a < s; ++a) {
6913
- var Z0 = m[a], Le = Z0.pos - e0, I0 = e.tags[a], O0 = void 0;
6913
+ var Z0 = c[a], Le = Z0.pos - e0, I0 = e.tags[a], O0 = void 0;
6914
6914
  I0 === !0 ? O0 = y.makeSpan(["eqn-num"], [], t) : I0 === !1 ? O0 = y.makeSpan([], [], t) : O0 = y.makeSpan([], t0(I0, t, !0), t), O0.depth = Z0.depth, O0.height = Z0.height, j0.push({
6915
6915
  type: "elem",
6916
6916
  elem: O0,
@@ -6921,10 +6921,10 @@ var S0 = function(e, t) {
6921
6921
  n = 0, R0 = 0;
6922
6922
  // Continue while either there are more columns or more column
6923
6923
  // descriptions, so trailing separators don't get lost.
6924
- n < h || R0 < Y0.length;
6924
+ n < h || R0 < $0.length;
6925
6925
  ++n, ++R0
6926
6926
  ) {
6927
- for (var c0 = Y0[R0] || {}, ne = !0; c0.type === "separator"; ) {
6927
+ for (var c0 = $0[R0] || {}, ne = !0; c0.type === "separator"; ) {
6928
6928
  if (ne || (g0 = y.makeSpan(["arraycolsep"], []), g0.style.width = A(t.fontMetrics().doubleRuleSep), s0.push(g0)), c0.separator === "|" || c0.separator === ":") {
6929
6929
  var Pe = c0.separator === "|" ? "solid" : "dashed", K0 = y.makeSpan(["vertical-separator"], [], t);
6930
6930
  K0.style.height = A(H), K0.style.borderRightWidth = A(g), K0.style.borderRightStyle = Pe, K0.style.margin = "0 " + A(-g / 2);
@@ -6932,14 +6932,14 @@ var S0 = function(e, t) {
6932
6932
  Et && (K0.style.verticalAlign = A(-Et)), s0.push(K0);
6933
6933
  } else
6934
6934
  throw new M("Invalid separator type: " + c0.separator);
6935
- R0++, c0 = Y0[R0] || {}, ne = !1;
6935
+ R0++, c0 = $0[R0] || {}, ne = !1;
6936
6936
  }
6937
6937
  if (!(n >= h)) {
6938
6938
  var J0 = void 0;
6939
6939
  (n > 0 || e.hskipBeforeAndAfter) && (J0 = q.deflt(c0.pregap, w), J0 !== 0 && (g0 = y.makeSpan(["arraycolsep"], []), g0.style.width = A(J0), s0.push(g0)));
6940
6940
  var Q0 = [];
6941
6941
  for (a = 0; a < s; ++a) {
6942
- var ce = m[a], de = ce[n];
6942
+ var ce = c[a], de = ce[n];
6943
6943
  if (de) {
6944
6944
  var ma = ce.pos - e0;
6945
6945
  de.depth = ce.depth, de.height = ce.height, Q0.push({
@@ -6955,10 +6955,10 @@ var S0 = function(e, t) {
6955
6955
  }, t), Q0 = y.makeSpan(["col-align-" + (c0.align || "c")], [Q0]), s0.push(Q0), (n < h - 1 || e.hskipBeforeAndAfter) && (J0 = q.deflt(c0.postgap, w), J0 !== 0 && (g0 = y.makeSpan(["arraycolsep"], []), g0.style.width = A(J0), s0.push(g0)));
6956
6956
  }
6957
6957
  }
6958
- if (m = y.makeSpan(["mtable"], s0), p.length > 0) {
6958
+ if (c = y.makeSpan(["mtable"], s0), p.length > 0) {
6959
6959
  for (var ca = y.makeLineSpan("hline", t, g), da = y.makeLineSpan("hdashline", t, g), Ge = [{
6960
6960
  type: "elem",
6961
- elem: m,
6961
+ elem: c,
6962
6962
  shift: 0
6963
6963
  }]; p.length > 0; ) {
6964
6964
  var Rt = p.pop(), It = Rt.pos - e0;
@@ -6972,48 +6972,48 @@ var S0 = function(e, t) {
6972
6972
  shift: It
6973
6973
  });
6974
6974
  }
6975
- m = y.makeVList({
6975
+ c = y.makeVList({
6976
6976
  positionType: "individualShift",
6977
6977
  children: Ge
6978
6978
  }, t);
6979
6979
  }
6980
6980
  if (j0.length === 0)
6981
- return y.makeSpan(["mord"], [m], t);
6981
+ return y.makeSpan(["mord"], [c], t);
6982
6982
  var Ve = y.makeVList({
6983
6983
  positionType: "individualShift",
6984
6984
  children: j0
6985
6985
  }, t);
6986
- return Ve = y.makeSpan(["tag"], [Ve], t), y.makeFragment([m, Ve]);
6986
+ return Ve = y.makeSpan(["tag"], [Ve], t), y.makeFragment([c, Ve]);
6987
6987
  }, K1 = {
6988
6988
  c: "center ",
6989
6989
  l: "left ",
6990
6990
  r: "right "
6991
6991
  }, M0 = function(e, t) {
6992
6992
  for (var a = [], n = new S.MathNode("mtd", [], ["mtr-glue"]), s = new S.MathNode("mtd", [], ["mml-eqn-num"]), o = 0; o < e.body.length; o++) {
6993
- for (var h = e.body[o], m = [], p = 0; p < h.length; p++)
6994
- m.push(new S.MathNode("mtd", [X(h[p], t)]));
6995
- e.tags && e.tags[o] && (m.unshift(n), m.push(n), e.leqno ? m.unshift(s) : m.push(s)), a.push(new S.MathNode("mtr", m));
6993
+ for (var h = e.body[o], c = [], p = 0; p < h.length; p++)
6994
+ c.push(new S.MathNode("mtd", [Y(h[p], t)]));
6995
+ e.tags && e.tags[o] && (c.unshift(n), c.push(n), e.leqno ? c.unshift(s) : c.push(s)), a.push(new S.MathNode("mtr", c));
6996
6996
  }
6997
6997
  var g = new S.MathNode("mtable", a), b = e.arraystretch === 0.5 ? 0.1 : 0.16 + e.arraystretch - 1 + (e.addJot ? 0.09 : 0);
6998
6998
  g.setAttribute("rowspacing", A(b));
6999
6999
  var w = "", x = "";
7000
7000
  if (e.cols && e.cols.length > 0) {
7001
- var z = e.cols, T = "", C = !1, N = 0, O = z.length;
7002
- z[0].type === "separator" && (w += "top ", N = 1), z[z.length - 1].type === "separator" && (w += "bottom ", O -= 1);
7003
- for (var H = N; H < O; H++)
7001
+ var z = e.cols, T = "", C = !1, N = 0, I = z.length;
7002
+ z[0].type === "separator" && (w += "top ", N = 1), z[z.length - 1].type === "separator" && (w += "bottom ", I -= 1);
7003
+ for (var H = N; H < I; H++)
7004
7004
  z[H].type === "align" ? (x += K1[z[H].align], C && (T += "none "), C = !0) : z[H].type === "separator" && C && (T += z[H].separator === "|" ? "solid " : "dashed ", C = !1);
7005
7005
  g.setAttribute("columnalign", x.trim()), /[sd]/.test(T) && g.setAttribute("columnlines", T.trim());
7006
7006
  }
7007
7007
  if (e.colSeparationType === "align") {
7008
- for (var V = e.cols || [], L = "", U = 1; U < V.length; U++)
7008
+ for (var G = e.cols || [], L = "", U = 1; U < G.length; U++)
7009
7009
  L += U % 2 ? "0em " : "1em ";
7010
7010
  g.setAttribute("columnspacing", L.trim());
7011
7011
  } else e.colSeparationType === "alignat" || e.colSeparationType === "gather" ? g.setAttribute("columnspacing", "0em") : e.colSeparationType === "small" ? g.setAttribute("columnspacing", "0.2778em") : e.colSeparationType === "CD" ? g.setAttribute("columnspacing", "0.5em") : g.setAttribute("columnspacing", "1em");
7012
- var G = "", j = e.hLinesBeforeRow;
7012
+ var V = "", j = e.hLinesBeforeRow;
7013
7013
  w += j[0].length > 0 ? "left " : "", w += j[j.length - 1].length > 0 ? "right " : "";
7014
- for (var Y = 1; Y < j.length - 1; Y++)
7015
- G += j[Y].length === 0 ? "none " : j[Y][0] ? "dashed " : "solid ";
7016
- return /[sd]/.test(G) && g.setAttribute("rowlines", G.trim()), w !== "" && (g = new S.MathNode("menclose", [g]), g.setAttribute("notation", w.trim())), e.arraystretch && e.arraystretch < 1 && (g = new S.MathNode("mstyle", [g]), g.setAttribute("scriptlevel", "1")), g;
7014
+ for (var $ = 1; $ < j.length - 1; $++)
7015
+ V += j[$].length === 0 ? "none " : j[$][0] ? "dashed " : "solid ";
7016
+ return /[sd]/.test(V) && g.setAttribute("rowlines", V.trim()), w !== "" && (g = new S.MathNode("menclose", [g]), g.setAttribute("notation", w.trim())), e.arraystretch && e.arraystretch < 1 && (g = new S.MathNode("mstyle", [g]), g.setAttribute("scriptlevel", "1")), g;
7017
7017
  }, Zr = function(e, t) {
7018
7018
  e.envName.indexOf("ed") === -1 && He(e);
7019
7019
  var a = [], n = e.envName.indexOf("at") > -1 ? "alignat" : "align", s = e.envName === "split", o = U0(e.parser, {
@@ -7024,7 +7024,7 @@ var S0 = function(e, t) {
7024
7024
  colSeparationType: n,
7025
7025
  maxNumCols: s ? 2 : void 0,
7026
7026
  leqno: e.parser.settings.leqno
7027
- }, "display"), h, m = 0, p = {
7027
+ }, "display"), h, c = 0, p = {
7028
7028
  type: "ordgroup",
7029
7029
  mode: e.mode,
7030
7030
  body: []
@@ -7034,23 +7034,23 @@ var S0 = function(e, t) {
7034
7034
  var w = F(t[0].body[b], "textord");
7035
7035
  g += w.text;
7036
7036
  }
7037
- h = Number(g), m = h * 2;
7037
+ h = Number(g), c = h * 2;
7038
7038
  }
7039
- var x = !m;
7039
+ var x = !c;
7040
7040
  o.body.forEach(function(N) {
7041
- for (var O = 1; O < N.length; O += 2) {
7042
- var H = F(N[O], "styling"), V = F(H.body[0], "ordgroup");
7043
- V.body.unshift(p);
7041
+ for (var I = 1; I < N.length; I += 2) {
7042
+ var H = F(N[I], "styling"), G = F(H.body[0], "ordgroup");
7043
+ G.body.unshift(p);
7044
7044
  }
7045
7045
  if (x)
7046
- m < N.length && (m = N.length);
7046
+ c < N.length && (c = N.length);
7047
7047
  else {
7048
7048
  var L = N.length / 2;
7049
7049
  if (h < L)
7050
7050
  throw new M("Too many math in a row: " + ("expected " + h + ", but got " + L), N[0]);
7051
7051
  }
7052
7052
  });
7053
- for (var z = 0; z < m; ++z) {
7053
+ for (var z = 0; z < c; ++z) {
7054
7054
  var T = "r", C = 0;
7055
7055
  z % 2 === 1 ? T = "l" : z > 0 && x && (C = 1), a[z] = {
7056
7056
  type: "align",
@@ -7069,23 +7069,23 @@ k0({
7069
7069
  },
7070
7070
  handler(r, e) {
7071
7071
  var t = Re(e[0]), a = t ? [e[0]] : F(e[0], "ordgroup").body, n = a.map(function(o) {
7072
- var h = xt(o), m = h.text;
7073
- if ("lcr".indexOf(m) !== -1)
7072
+ var h = xt(o), c = h.text;
7073
+ if ("lcr".indexOf(c) !== -1)
7074
7074
  return {
7075
7075
  type: "align",
7076
- align: m
7076
+ align: c
7077
7077
  };
7078
- if (m === "|")
7078
+ if (c === "|")
7079
7079
  return {
7080
7080
  type: "separator",
7081
7081
  separator: "|"
7082
7082
  };
7083
- if (m === ":")
7083
+ if (c === ":")
7084
7084
  return {
7085
7085
  type: "separator",
7086
7086
  separator: ":"
7087
7087
  };
7088
- throw new M("Unknown column alignment: " + m, o);
7088
+ throw new M("Unknown column alignment: " + c, o);
7089
7089
  }), s = {
7090
7090
  cols: n,
7091
7091
  hskipBeforeAndAfter: !0,
@@ -7169,13 +7169,13 @@ k0({
7169
7169
  },
7170
7170
  handler(r, e) {
7171
7171
  var t = Re(e[0]), a = t ? [e[0]] : F(e[0], "ordgroup").body, n = a.map(function(o) {
7172
- var h = xt(o), m = h.text;
7173
- if ("lc".indexOf(m) !== -1)
7172
+ var h = xt(o), c = h.text;
7173
+ if ("lc".indexOf(c) !== -1)
7174
7174
  return {
7175
7175
  type: "align",
7176
- align: m
7176
+ align: c
7177
7177
  };
7178
- throw new M("Unknown column alignment: " + m, o);
7178
+ throw new M("Unknown column alignment: " + c, o);
7179
7179
  });
7180
7180
  if (n.length > 1)
7181
7181
  throw new M("{subarray} can contain only one column");
@@ -7305,8 +7305,8 @@ k0({
7305
7305
  htmlBuilder: S0,
7306
7306
  mathmlBuilder: M0
7307
7307
  });
7308
- c("\\nonumber", "\\gdef\\@eqnsw{0}");
7309
- c("\\notag", "\\nonumber");
7308
+ m("\\nonumber", "\\gdef\\@eqnsw{0}");
7309
+ m("\\notag", "\\nonumber");
7310
7310
  B({
7311
7311
  type: "text",
7312
7312
  // Doesn't matter what this is.
@@ -7341,13 +7341,13 @@ B({
7341
7341
  if (!_t.hasOwnProperty(s))
7342
7342
  throw new M("No such environment: " + s, n);
7343
7343
  var h = _t[s], {
7344
- args: m,
7344
+ args: c,
7345
7345
  optArgs: p
7346
7346
  } = t.parseArguments("\\begin{" + s + "}", h), g = {
7347
7347
  mode: t.mode,
7348
7348
  envName: s,
7349
7349
  parser: t
7350
- }, b = h.handler(g, m, p);
7350
+ }, b = h.handler(g, c, p);
7351
7351
  t.expect("\\end", !1);
7352
7352
  var w = t.nextToken, x = F(t.parseFunction(), "environment");
7353
7353
  if (x.name !== s)
@@ -7367,7 +7367,7 @@ var Kr = (r, e) => {
7367
7367
  return P(r.body, a);
7368
7368
  }, Jr = (r, e) => {
7369
7369
  var t = r.font, a = e.withFont(t);
7370
- return X(r.body, a);
7370
+ return Y(r.body, a);
7371
7371
  }, er = {
7372
7372
  "\\Bbb": "\\mathbb",
7373
7373
  "\\bold": "\\mathbf",
@@ -7475,8 +7475,8 @@ var Qr = (r, e) => {
7475
7475
  s = e.havingStyle(a);
7476
7476
  var o = P(r.numer, s, e);
7477
7477
  if (r.continued) {
7478
- var h = 8.5 / e.fontMetrics().ptPerEm, m = 3.5 / e.fontMetrics().ptPerEm;
7479
- o.height = o.height < h ? h : o.height, o.depth = o.depth < m ? m : o.depth;
7478
+ var h = 8.5 / e.fontMetrics().ptPerEm, c = 3.5 / e.fontMetrics().ptPerEm;
7479
+ o.height = o.height < h ? h : o.height, o.depth = o.depth < c ? c : o.depth;
7480
7480
  }
7481
7481
  s = e.havingStyle(n);
7482
7482
  var p = P(r.denom, s, e), g, b, w;
@@ -7485,9 +7485,9 @@ var Qr = (r, e) => {
7485
7485
  t.size === R.DISPLAY.size || r.size === "display" ? (x = e.fontMetrics().num1, b > 0 ? z = 3 * w : z = 7 * w, T = e.fontMetrics().denom1) : (b > 0 ? (x = e.fontMetrics().num2, z = w) : (x = e.fontMetrics().num3, z = 3 * w), T = e.fontMetrics().denom2);
7486
7486
  var C;
7487
7487
  if (g) {
7488
- var O = e.fontMetrics().axisHeight;
7489
- x - o.depth - (O + 0.5 * b) < z && (x += z - (x - o.depth - (O + 0.5 * b))), O - 0.5 * b - (p.height - T) < z && (T += z - (O - 0.5 * b - (p.height - T)));
7490
- var H = -(O - 0.5 * b);
7488
+ var I = e.fontMetrics().axisHeight;
7489
+ x - o.depth - (I + 0.5 * b) < z && (x += z - (x - o.depth - (I + 0.5 * b))), I - 0.5 * b - (p.height - T) < z && (T += z - (I - 0.5 * b - (p.height - T)));
7490
+ var H = -(I - 0.5 * b);
7491
7491
  C = y.makeVList({
7492
7492
  positionType: "individualShift",
7493
7493
  children: [{
@@ -7520,12 +7520,12 @@ var Qr = (r, e) => {
7520
7520
  }, e);
7521
7521
  }
7522
7522
  s = e.havingStyle(t), C.height *= s.sizeMultiplier / e.sizeMultiplier, C.depth *= s.sizeMultiplier / e.sizeMultiplier;
7523
- var V;
7524
- t.size === R.DISPLAY.size ? V = e.fontMetrics().delim1 : t.size === R.SCRIPTSCRIPT.size ? V = e.havingStyle(R.SCRIPT).fontMetrics().delim2 : V = e.fontMetrics().delim2;
7523
+ var G;
7524
+ t.size === R.DISPLAY.size ? G = e.fontMetrics().delim1 : t.size === R.SCRIPTSCRIPT.size ? G = e.havingStyle(R.SCRIPT).fontMetrics().delim2 : G = e.fontMetrics().delim2;
7525
7525
  var L, U;
7526
- return r.leftDelim == null ? L = oe(e, ["mopen"]) : L = D0.customSizedDelim(r.leftDelim, V, !0, e.havingStyle(t), r.mode, ["mopen"]), r.continued ? U = y.makeSpan([]) : r.rightDelim == null ? U = oe(e, ["mclose"]) : U = D0.customSizedDelim(r.rightDelim, V, !0, e.havingStyle(t), r.mode, ["mclose"]), y.makeSpan(["mord"].concat(s.sizingClasses(e)), [L, y.makeSpan(["mfrac"], [C]), U], e);
7526
+ return r.leftDelim == null ? L = oe(e, ["mopen"]) : L = D0.customSizedDelim(r.leftDelim, G, !0, e.havingStyle(t), r.mode, ["mopen"]), r.continued ? U = y.makeSpan([]) : r.rightDelim == null ? U = oe(e, ["mclose"]) : U = D0.customSizedDelim(r.rightDelim, G, !0, e.havingStyle(t), r.mode, ["mclose"]), y.makeSpan(["mord"].concat(s.sizingClasses(e)), [L, y.makeSpan(["mfrac"], [C]), U], e);
7527
7527
  }, Bt = (r, e) => {
7528
- var t = new S.MathNode("mfrac", [X(r.numer, e), X(r.denom, e)]);
7528
+ var t = new S.MathNode("mfrac", [Y(r.numer, e), Y(r.denom, e)]);
7529
7529
  if (!r.hasBarLine)
7530
7530
  t.setAttribute("linethickness", "0px");
7531
7531
  else if (r.barSize) {
@@ -7545,8 +7545,8 @@ var Qr = (r, e) => {
7545
7545
  h.setAttribute("fence", "true"), o.push(h);
7546
7546
  }
7547
7547
  if (o.push(t), r.rightDelim != null) {
7548
- var m = new S.MathNode("mo", [new S.TextNode(r.rightDelim.replace("\\", ""))]);
7549
- m.setAttribute("fence", "true"), o.push(m);
7548
+ var c = new S.MathNode("mo", [new S.TextNode(r.rightDelim.replace("\\", ""))]);
7549
+ c.setAttribute("fence", "true"), o.push(c);
7550
7550
  }
7551
7551
  return bt(o);
7552
7552
  }
@@ -7575,7 +7575,7 @@ B({
7575
7575
  var {
7576
7576
  parser: t,
7577
7577
  funcName: a
7578
- } = r, n = e[0], s = e[1], o, h = null, m = null, p = "auto";
7578
+ } = r, n = e[0], s = e[1], o, h = null, c = null, p = "auto";
7579
7579
  switch (a) {
7580
7580
  case "\\dfrac":
7581
7581
  case "\\frac":
@@ -7588,13 +7588,13 @@ B({
7588
7588
  case "\\dbinom":
7589
7589
  case "\\binom":
7590
7590
  case "\\tbinom":
7591
- o = !1, h = "(", m = ")";
7591
+ o = !1, h = "(", c = ")";
7592
7592
  break;
7593
7593
  case "\\\\bracefrac":
7594
- o = !1, h = "\\{", m = "\\}";
7594
+ o = !1, h = "\\{", c = "\\}";
7595
7595
  break;
7596
7596
  case "\\\\brackfrac":
7597
- o = !1, h = "[", m = "]";
7597
+ o = !1, h = "[", c = "]";
7598
7598
  break;
7599
7599
  default:
7600
7600
  throw new Error("Unrecognized genfrac command");
@@ -7617,7 +7617,7 @@ B({
7617
7617
  denom: s,
7618
7618
  hasBarLine: o,
7619
7619
  leftDelim: h,
7620
- rightDelim: m,
7620
+ rightDelim: c,
7621
7621
  size: p,
7622
7622
  barSize: null
7623
7623
  };
@@ -7705,7 +7705,7 @@ B({
7705
7705
  handler(r, e) {
7706
7706
  var {
7707
7707
  parser: t
7708
- } = r, a = e[4], n = e[5], s = Ne(e[0]), o = s.type === "atom" && s.family === "open" ? rr(s.text) : null, h = Ne(e[1]), m = h.type === "atom" && h.family === "close" ? rr(h.text) : null, p = F(e[2], "size"), g, b = null;
7708
+ } = r, a = e[4], n = e[5], s = Ne(e[0]), o = s.type === "atom" && s.family === "open" ? rr(s.text) : null, h = Ne(e[1]), c = h.type === "atom" && h.family === "close" ? rr(h.text) : null, p = F(e[2], "size"), g, b = null;
7709
7709
  p.isBlank ? g = !0 : (b = p.value, g = b.number > 0);
7710
7710
  var w = "auto", x = e[3];
7711
7711
  if (x.type === "ordgroup") {
@@ -7724,7 +7724,7 @@ B({
7724
7724
  hasBarLine: g,
7725
7725
  barSize: b,
7726
7726
  leftDelim: o,
7727
- rightDelim: m,
7727
+ rightDelim: c,
7728
7728
  size: w
7729
7729
  };
7730
7730
  },
@@ -7812,12 +7812,12 @@ var _r = (r, e) => {
7812
7812
  elem: s
7813
7813
  }]
7814
7814
  }, e), h.children[0].children[0].children[0].classes.push("svg-align")), a) {
7815
- var m = y.makeSpan(["mord", n.isOver ? "mover" : "munder"], [h], e);
7815
+ var c = y.makeSpan(["mord", n.isOver ? "mover" : "munder"], [h], e);
7816
7816
  n.isOver ? h = y.makeVList({
7817
7817
  positionType: "firstBaseline",
7818
7818
  children: [{
7819
7819
  type: "elem",
7820
- elem: m
7820
+ elem: c
7821
7821
  }, {
7822
7822
  type: "kern",
7823
7823
  size: 0.2
@@ -7827,7 +7827,7 @@ var _r = (r, e) => {
7827
7827
  }]
7828
7828
  }, e) : h = y.makeVList({
7829
7829
  positionType: "bottom",
7830
- positionData: m.depth + 0.2 + a.height + a.depth,
7830
+ positionData: c.depth + 0.2 + a.height + a.depth,
7831
7831
  children: [{
7832
7832
  type: "elem",
7833
7833
  elem: a
@@ -7836,14 +7836,14 @@ var _r = (r, e) => {
7836
7836
  size: 0.2
7837
7837
  }, {
7838
7838
  type: "elem",
7839
- elem: m
7839
+ elem: c
7840
7840
  }]
7841
7841
  }, e);
7842
7842
  }
7843
7843
  return y.makeSpan(["mord", n.isOver ? "mover" : "munder"], [h], e);
7844
7844
  }, J1 = (r, e) => {
7845
7845
  var t = q0.mathMLnode(r.label);
7846
- return new S.MathNode(r.isOver ? "mover" : "munder", [X(r.base, e), t]);
7846
+ return new S.MathNode(r.isOver ? "mover" : "munder", [Y(r.base, e), t]);
7847
7847
  };
7848
7848
  B({
7849
7849
  type: "horizBrace",
@@ -7979,22 +7979,22 @@ B({
7979
7979
  token: n
7980
7980
  } = r, s = F(e[0], "raw").string, o = e[1];
7981
7981
  t.settings.strict && t.settings.reportNonstrict("htmlExtension", "HTML extension is disabled on strict mode");
7982
- var h, m = {};
7982
+ var h, c = {};
7983
7983
  switch (a) {
7984
7984
  case "\\htmlClass":
7985
- m.class = s, h = {
7985
+ c.class = s, h = {
7986
7986
  command: "\\htmlClass",
7987
7987
  class: s
7988
7988
  };
7989
7989
  break;
7990
7990
  case "\\htmlId":
7991
- m.id = s, h = {
7991
+ c.id = s, h = {
7992
7992
  command: "\\htmlId",
7993
7993
  id: s
7994
7994
  };
7995
7995
  break;
7996
7996
  case "\\htmlStyle":
7997
- m.style = s, h = {
7997
+ c.style = s, h = {
7998
7998
  command: "\\htmlStyle",
7999
7999
  style: s
8000
8000
  };
@@ -8004,11 +8004,11 @@ B({
8004
8004
  var b = p[g].split("=");
8005
8005
  if (b.length !== 2)
8006
8006
  throw new M("Error parsing key-value for \\htmlData");
8007
- m["data-" + b[0].trim()] = b[1].trim();
8007
+ c["data-" + b[0].trim()] = b[1].trim();
8008
8008
  }
8009
8009
  h = {
8010
8010
  command: "\\htmlData",
8011
- attributes: m
8011
+ attributes: c
8012
8012
  };
8013
8013
  break;
8014
8014
  }
@@ -8018,7 +8018,7 @@ B({
8018
8018
  return t.settings.isTrusted(h) ? {
8019
8019
  type: "html",
8020
8020
  mode: t.mode,
8021
- attributes: m,
8021
+ attributes: c,
8022
8022
  body: Q(o)
8023
8023
  } : t.formatUnsupportedCmd(a);
8024
8024
  },
@@ -8097,7 +8097,7 @@ B({
8097
8097
  unit: "em"
8098
8098
  }, h = "";
8099
8099
  if (t[0])
8100
- for (var m = F(t[0], "raw").string, p = m.split(","), g = 0; g < p.length; g++) {
8100
+ for (var c = F(t[0], "raw").string, p = c.split(","), g = 0; g < p.length; g++) {
8101
8101
  var b = p[g].split("=");
8102
8102
  if (b.length === 2) {
8103
8103
  var w = b[1].trim();
@@ -8214,7 +8214,7 @@ B({
8214
8214
  return s.style.height = A(n.height + n.depth), n.depth && (s.style.verticalAlign = A(-n.depth)), n.children.unshift(s), n = y.makeSpan(["thinbox"], [n], e), y.makeSpan(["mord", "vbox"], [n], e);
8215
8215
  },
8216
8216
  mathmlBuilder: (r, e) => {
8217
- var t = new S.MathNode("mpadded", [X(r.body, e)]);
8217
+ var t = new S.MathNode("mpadded", [Y(r.body, e)]);
8218
8218
  if (r.alignment !== "rlap") {
8219
8219
  var a = r.alignment === "llap" ? "-1" : "-0.5";
8220
8220
  t.setAttribute("lspace", a + "width");
@@ -8303,7 +8303,7 @@ B({
8303
8303
  });
8304
8304
  var ea = (r, e, t, a, n, s, o) => {
8305
8305
  r = y.makeSpan([], [r]);
8306
- var h = t && q.isCharacterBox(t), m, p;
8306
+ var h = t && q.isCharacterBox(t), c, p;
8307
8307
  if (e) {
8308
8308
  var g = P(e, a.havingStyle(n.sup()), a);
8309
8309
  p = {
@@ -8313,14 +8313,14 @@ var ea = (r, e, t, a, n, s, o) => {
8313
8313
  }
8314
8314
  if (t) {
8315
8315
  var b = P(t, a.havingStyle(n.sub()), a);
8316
- m = {
8316
+ c = {
8317
8317
  elem: b,
8318
8318
  kern: Math.max(a.fontMetrics().bigOpSpacing2, a.fontMetrics().bigOpSpacing4 - b.height)
8319
8319
  };
8320
8320
  }
8321
8321
  var w;
8322
- if (p && m) {
8323
- var x = a.fontMetrics().bigOpSpacing5 + m.elem.height + m.elem.depth + m.kern + r.depth + o;
8322
+ if (p && c) {
8323
+ var x = a.fontMetrics().bigOpSpacing5 + c.elem.height + c.elem.depth + c.kern + r.depth + o;
8324
8324
  w = y.makeVList({
8325
8325
  positionType: "bottom",
8326
8326
  positionData: x,
@@ -8329,11 +8329,11 @@ var ea = (r, e, t, a, n, s, o) => {
8329
8329
  size: a.fontMetrics().bigOpSpacing5
8330
8330
  }, {
8331
8331
  type: "elem",
8332
- elem: m.elem,
8332
+ elem: c.elem,
8333
8333
  marginLeft: A(-s)
8334
8334
  }, {
8335
8335
  type: "kern",
8336
- size: m.kern
8336
+ size: c.kern
8337
8337
  }, {
8338
8338
  type: "elem",
8339
8339
  elem: r
@@ -8349,7 +8349,7 @@ var ea = (r, e, t, a, n, s, o) => {
8349
8349
  size: a.fontMetrics().bigOpSpacing5
8350
8350
  }]
8351
8351
  }, a);
8352
- } else if (m) {
8352
+ } else if (c) {
8353
8353
  var z = r.height - o;
8354
8354
  w = y.makeVList({
8355
8355
  positionType: "top",
@@ -8359,11 +8359,11 @@ var ea = (r, e, t, a, n, s, o) => {
8359
8359
  size: a.fontMetrics().bigOpSpacing5
8360
8360
  }, {
8361
8361
  type: "elem",
8362
- elem: m.elem,
8362
+ elem: c.elem,
8363
8363
  marginLeft: A(-s)
8364
8364
  }, {
8365
8365
  type: "kern",
8366
- size: m.kern
8366
+ size: c.kern
8367
8367
  }, {
8368
8368
  type: "elem",
8369
8369
  elem: r
@@ -8392,7 +8392,7 @@ var ea = (r, e, t, a, n, s, o) => {
8392
8392
  } else
8393
8393
  return r;
8394
8394
  var C = [w];
8395
- if (m && s !== 0 && !h) {
8395
+ if (c && s !== 0 && !h) {
8396
8396
  var N = y.makeSpan(["mspace"], [], a);
8397
8397
  N.style.marginRight = A(s), C.unshift(N);
8398
8398
  }
@@ -8402,34 +8402,34 @@ var ea = (r, e, t, a, n, s, o) => {
8402
8402
  r.type === "supsub" ? (t = r.sup, a = r.sub, s = F(r.base, "op"), n = !0) : s = F(r, "op");
8403
8403
  var o = e.style, h = !1;
8404
8404
  o.size === R.DISPLAY.size && s.symbol && !q.contains(ta, s.name) && (h = !0);
8405
- var m;
8405
+ var c;
8406
8406
  if (s.symbol) {
8407
8407
  var p = h ? "Size2-Regular" : "Size1-Regular", g = "";
8408
- if ((s.name === "\\oiint" || s.name === "\\oiiint") && (g = s.name.slice(1), s.name = g === "oiint" ? "\\iint" : "\\iiint"), m = y.makeSymbol(s.name, p, "math", e, ["mop", "op-symbol", h ? "large-op" : "small-op"]), g.length > 0) {
8409
- var b = m.italic, w = y.staticSvg(g + "Size" + (h ? "2" : "1"), e);
8410
- m = y.makeVList({
8408
+ if ((s.name === "\\oiint" || s.name === "\\oiiint") && (g = s.name.slice(1), s.name = g === "oiint" ? "\\iint" : "\\iiint"), c = y.makeSymbol(s.name, p, "math", e, ["mop", "op-symbol", h ? "large-op" : "small-op"]), g.length > 0) {
8409
+ var b = c.italic, w = y.staticSvg(g + "Size" + (h ? "2" : "1"), e);
8410
+ c = y.makeVList({
8411
8411
  positionType: "individualShift",
8412
8412
  children: [{
8413
8413
  type: "elem",
8414
- elem: m,
8414
+ elem: c,
8415
8415
  shift: 0
8416
8416
  }, {
8417
8417
  type: "elem",
8418
8418
  elem: w,
8419
8419
  shift: h ? 0.08 : 0
8420
8420
  }]
8421
- }, e), s.name = "\\" + g, m.classes.unshift("mop"), m.italic = b;
8421
+ }, e), s.name = "\\" + g, c.classes.unshift("mop"), c.italic = b;
8422
8422
  }
8423
8423
  } else if (s.body) {
8424
8424
  var x = t0(s.body, e, !0);
8425
- x.length === 1 && x[0] instanceof p0 ? (m = x[0], m.classes[0] = "mop") : m = y.makeSpan(["mop"], x, e);
8425
+ x.length === 1 && x[0] instanceof p0 ? (c = x[0], c.classes[0] = "mop") : c = y.makeSpan(["mop"], x, e);
8426
8426
  } else {
8427
8427
  for (var z = [], T = 1; T < s.name.length; T++)
8428
8428
  z.push(y.mathsym(s.name[T], s.mode, e));
8429
- m = y.makeSpan(["mop"], z, e);
8429
+ c = y.makeSpan(["mop"], z, e);
8430
8430
  }
8431
8431
  var C = 0, N = 0;
8432
- return (m instanceof p0 || s.name === "\\oiint" || s.name === "\\oiiint") && !s.suppressBaseShift && (C = (m.height - m.depth) / 2 - e.fontMetrics().axisHeight, N = m.italic), n ? ea(m, t, a, e, o, N, C) : (C && (m.style.position = "relative", m.style.top = A(C)), m);
8432
+ return (c instanceof p0 || s.name === "\\oiint" || s.name === "\\oiiint") && !s.suppressBaseShift && (C = (c.height - c.depth) / 2 - e.fontMetrics().axisHeight, N = c.italic), n ? ea(c, t, a, e, o, N, C) : (C && (c.style.position = "relative", c.style.top = A(C)), c);
8433
8433
  }, me = (r, e) => {
8434
8434
  var t;
8435
8435
  if (r.symbol)
@@ -8591,11 +8591,11 @@ var ra = (r, e) => {
8591
8591
  mode: b.mode,
8592
8592
  text: w
8593
8593
  } : b;
8594
- }), m = t0(h, e.withFont("mathrm"), !0), p = 0; p < m.length; p++) {
8595
- var g = m[p];
8594
+ }), c = t0(h, e.withFont("mathrm"), !0), p = 0; p < c.length; p++) {
8595
+ var g = c[p];
8596
8596
  g instanceof p0 && (g.text = g.text.replace(/\u2212/, "-").replace(/\u2217/, "*"));
8597
8597
  }
8598
- o = y.makeSpan(["mop"], m, e);
8598
+ o = y.makeSpan(["mop"], c, e);
8599
8599
  } else
8600
8600
  o = y.makeSpan(["mop"], [], e);
8601
8601
  return n ? ea(o, t, a, e, e.style, 0, 0) : o;
@@ -8626,10 +8626,10 @@ var ra = (r, e) => {
8626
8626
  var h = t.map((g) => g.toText()).join("");
8627
8627
  t = [new S.TextNode(h)];
8628
8628
  }
8629
- var m = new S.MathNode("mi", t);
8630
- m.setAttribute("mathvariant", "normal");
8629
+ var c = new S.MathNode("mi", t);
8630
+ c.setAttribute("mathvariant", "normal");
8631
8631
  var p = new S.MathNode("mo", [v0("⁡", "text")]);
8632
- return r.parentIsSupSub ? new S.MathNode("mrow", [m, p]) : S.newDocumentFragment([m, p]);
8632
+ return r.parentIsSupSub ? new S.MathNode("mrow", [c, p]) : S.newDocumentFragment([c, p]);
8633
8633
  };
8634
8634
  B({
8635
8635
  type: "operatorname",
@@ -8654,7 +8654,7 @@ B({
8654
8654
  htmlBuilder: ra,
8655
8655
  mathmlBuilder: e4
8656
8656
  });
8657
- c("\\operatorname", "\\@ifstar\\operatornamewithlimits\\operatorname@");
8657
+ m("\\operatorname", "\\@ifstar\\operatornamewithlimits\\operatorname@");
8658
8658
  W0({
8659
8659
  type: "ordgroup",
8660
8660
  htmlBuilder(r, e) {
@@ -8702,7 +8702,7 @@ B({
8702
8702
  mathmlBuilder(r, e) {
8703
8703
  var t = new S.MathNode("mo", [new S.TextNode("‾")]);
8704
8704
  t.setAttribute("stretchy", "true");
8705
- var a = new S.MathNode("mover", [X(r.body, e), t]);
8705
+ var a = new S.MathNode("mover", [Y(r.body, e), t]);
8706
8706
  return a.setAttribute("accent", "true"), a;
8707
8707
  }
8708
8708
  });
@@ -8824,7 +8824,7 @@ B({
8824
8824
  }, e);
8825
8825
  },
8826
8826
  mathmlBuilder(r, e) {
8827
- var t = new S.MathNode("mpadded", [X(r.body, e)]), a = r.dy.number + r.dy.unit;
8827
+ var t = new S.MathNode("mpadded", [Y(r.body, e)]), a = r.dy.number + r.dy.unit;
8828
8828
  return t.setAttribute("voffset", a), t;
8829
8829
  }
8830
8830
  });
@@ -8930,8 +8930,8 @@ B({
8930
8930
  parser: a
8931
8931
  } = r, n = !1, s = !1, o = t[0] && F(t[0], "ordgroup");
8932
8932
  if (o)
8933
- for (var h = "", m = 0; m < o.body.length; ++m) {
8934
- var p = o.body[m];
8933
+ for (var h = "", c = 0; c < o.body.length; ++c) {
8934
+ var p = o.body[c];
8935
8935
  if (h = p.text, h === "t")
8936
8936
  n = !0;
8937
8937
  else if (h === "b")
@@ -8972,7 +8972,7 @@ B({
8972
8972
  return y.makeSpan(["mord"], [s], e);
8973
8973
  },
8974
8974
  mathmlBuilder: (r, e) => {
8975
- var t = new S.MathNode("mpadded", [X(r.body, e)]);
8975
+ var t = new S.MathNode("mpadded", [Y(r.body, e)]);
8976
8976
  return r.smashHeight && t.setAttribute("height", "0px"), r.smashDepth && t.setAttribute("depth", "0px"), t;
8977
8977
  }
8978
8978
  });
@@ -9000,12 +9000,12 @@ B({
9000
9000
  var a = e.fontMetrics(), n = a.defaultRuleThickness, s = n;
9001
9001
  e.style.id < R.TEXT.id && (s = e.fontMetrics().xHeight);
9002
9002
  var o = n + s / 4, h = t.height + t.depth + o + n, {
9003
- span: m,
9003
+ span: c,
9004
9004
  ruleWidth: p,
9005
9005
  advanceWidth: g
9006
- } = D0.sqrtImage(h, e), b = m.height - p;
9006
+ } = D0.sqrtImage(h, e), b = c.height - p;
9007
9007
  b > t.height + t.depth + o && (o = (o + b - t.height - t.depth) / 2);
9008
- var w = m.height - t.height - o - p;
9008
+ var w = c.height - t.height - o - p;
9009
9009
  t.style.paddingLeft = A(g);
9010
9010
  var x = y.makeVList({
9011
9011
  positionType: "firstBaseline",
@@ -9018,7 +9018,7 @@ B({
9018
9018
  size: -(t.height + w)
9019
9019
  }, {
9020
9020
  type: "elem",
9021
- elem: m
9021
+ elem: c
9022
9022
  }, {
9023
9023
  type: "kern",
9024
9024
  size: p
@@ -9032,8 +9032,8 @@ B({
9032
9032
  type: "elem",
9033
9033
  elem: T
9034
9034
  }]
9035
- }, e), O = y.makeSpan(["root"], [N]);
9036
- return y.makeSpan(["mord", "sqrt"], [O, x], e);
9035
+ }, e), I = y.makeSpan(["root"], [N]);
9036
+ return y.makeSpan(["mord", "sqrt"], [I, x], e);
9037
9037
  } else
9038
9038
  return y.makeSpan(["mord", "sqrt"], [x], e);
9039
9039
  },
@@ -9042,7 +9042,7 @@ B({
9042
9042
  body: t,
9043
9043
  index: a
9044
9044
  } = r;
9045
- return a ? new S.MathNode("mroot", [X(t, e), X(a, e)]) : new S.MathNode("msqrt", [X(t, e)]);
9045
+ return a ? new S.MathNode("mroot", [Y(t, e), Y(a, e)]) : new S.MathNode("msqrt", [Y(t, e)]);
9046
9046
  }
9047
9047
  });
9048
9048
  var ir = {
@@ -9118,62 +9118,62 @@ W0({
9118
9118
  base: a,
9119
9119
  sup: n,
9120
9120
  sub: s
9121
- } = r, o = P(a, e), h, m, p = e.fontMetrics(), g = 0, b = 0, w = a && q.isCharacterBox(a);
9121
+ } = r, o = P(a, e), h, c, p = e.fontMetrics(), g = 0, b = 0, w = a && q.isCharacterBox(a);
9122
9122
  if (n) {
9123
9123
  var x = e.havingStyle(e.style.sup());
9124
9124
  h = P(n, x, e), w || (g = o.height - x.fontMetrics().supDrop * x.sizeMultiplier / e.sizeMultiplier);
9125
9125
  }
9126
9126
  if (s) {
9127
9127
  var z = e.havingStyle(e.style.sub());
9128
- m = P(s, z, e), w || (b = o.depth + z.fontMetrics().subDrop * z.sizeMultiplier / e.sizeMultiplier);
9128
+ c = P(s, z, e), w || (b = o.depth + z.fontMetrics().subDrop * z.sizeMultiplier / e.sizeMultiplier);
9129
9129
  }
9130
9130
  var T;
9131
9131
  e.style === R.DISPLAY ? T = p.sup1 : e.style.cramped ? T = p.sup3 : T = p.sup2;
9132
- var C = e.sizeMultiplier, N = A(0.5 / p.ptPerEm / C), O = null;
9133
- if (m) {
9132
+ var C = e.sizeMultiplier, N = A(0.5 / p.ptPerEm / C), I = null;
9133
+ if (c) {
9134
9134
  var H = r.base && r.base.type === "op" && r.base.name && (r.base.name === "\\oiint" || r.base.name === "\\oiiint");
9135
- (o instanceof p0 || H) && (O = A(-o.italic));
9135
+ (o instanceof p0 || H) && (I = A(-o.italic));
9136
9136
  }
9137
- var V;
9138
- if (h && m) {
9137
+ var G;
9138
+ if (h && c) {
9139
9139
  g = Math.max(g, T, h.depth + 0.25 * p.xHeight), b = Math.max(b, p.sub2);
9140
9140
  var L = p.defaultRuleThickness, U = 4 * L;
9141
- if (g - h.depth - (m.height - b) < U) {
9142
- b = U - (g - h.depth) + m.height;
9143
- var G = 0.8 * p.xHeight - (g - h.depth);
9144
- G > 0 && (g += G, b -= G);
9141
+ if (g - h.depth - (c.height - b) < U) {
9142
+ b = U - (g - h.depth) + c.height;
9143
+ var V = 0.8 * p.xHeight - (g - h.depth);
9144
+ V > 0 && (g += V, b -= V);
9145
9145
  }
9146
9146
  var j = [{
9147
9147
  type: "elem",
9148
- elem: m,
9148
+ elem: c,
9149
9149
  shift: b,
9150
9150
  marginRight: N,
9151
- marginLeft: O
9151
+ marginLeft: I
9152
9152
  }, {
9153
9153
  type: "elem",
9154
9154
  elem: h,
9155
9155
  shift: -g,
9156
9156
  marginRight: N
9157
9157
  }];
9158
- V = y.makeVList({
9158
+ G = y.makeVList({
9159
9159
  positionType: "individualShift",
9160
9160
  children: j
9161
9161
  }, e);
9162
- } else if (m) {
9163
- b = Math.max(b, p.sub1, m.height - 0.8 * p.xHeight);
9164
- var Y = [{
9162
+ } else if (c) {
9163
+ b = Math.max(b, p.sub1, c.height - 0.8 * p.xHeight);
9164
+ var $ = [{
9165
9165
  type: "elem",
9166
- elem: m,
9167
- marginLeft: O,
9166
+ elem: c,
9167
+ marginLeft: I,
9168
9168
  marginRight: N
9169
9169
  }];
9170
- V = y.makeVList({
9170
+ G = y.makeVList({
9171
9171
  positionType: "shift",
9172
9172
  positionData: b,
9173
- children: Y
9173
+ children: $
9174
9174
  }, e);
9175
9175
  } else if (h)
9176
- g = Math.max(g, T, h.depth + 0.25 * p.xHeight), V = y.makeVList({
9176
+ g = Math.max(g, T, h.depth + 0.25 * p.xHeight), G = y.makeVList({
9177
9177
  positionType: "shift",
9178
9178
  positionData: -g,
9179
9179
  children: [{
@@ -9185,13 +9185,13 @@ W0({
9185
9185
  else
9186
9186
  throw new Error("supsub must have either sup or sub.");
9187
9187
  var z0 = ot(o, "right") || "mord";
9188
- return y.makeSpan([z0], [o, y.makeSpan(["msupsub"], [V])], e);
9188
+ return y.makeSpan([z0], [o, y.makeSpan(["msupsub"], [G])], e);
9189
9189
  },
9190
9190
  mathmlBuilder(r, e) {
9191
9191
  var t = !1, a, n;
9192
9192
  r.base && r.base.type === "horizBrace" && (n = !!r.sup, n === r.base.isOver && (t = !0, a = r.base.isOver)), r.base && (r.base.type === "op" || r.base.type === "operatorname") && (r.base.parentIsSupSub = !0);
9193
- var s = [X(r.base, e)];
9194
- r.sub && s.push(X(r.sub, e)), r.sup && s.push(X(r.sup, e));
9193
+ var s = [Y(r.base, e)];
9194
+ r.sub && s.push(Y(r.sub, e)), r.sup && s.push(Y(r.sup, e));
9195
9195
  var o;
9196
9196
  if (t)
9197
9197
  o = a ? "mover" : "munder";
@@ -9200,8 +9200,8 @@ W0({
9200
9200
  var p = r.base;
9201
9201
  p && p.type === "op" && p.limits && e.style === R.DISPLAY || p && p.type === "operatorname" && p.alwaysHandleSupSub && (e.style === R.DISPLAY || p.limits) ? o = "munderover" : o = "msubsup";
9202
9202
  } else {
9203
- var m = r.base;
9204
- m && m.type === "op" && m.limits && (e.style === R.DISPLAY || m.alwaysHandleSupSub) || m && m.type === "operatorname" && m.alwaysHandleSupSub && (m.limits || e.style === R.DISPLAY) ? o = "munder" : o = "msub";
9203
+ var c = r.base;
9204
+ c && c.type === "op" && c.limits && (e.style === R.DISPLAY || c.alwaysHandleSupSub) || c && c.type === "operatorname" && c.alwaysHandleSupSub && (c.limits || e.style === R.DISPLAY) ? o = "munder" : o = "msub";
9205
9205
  }
9206
9206
  else {
9207
9207
  var h = r.base;
@@ -9410,7 +9410,7 @@ B({
9410
9410
  mathmlBuilder(r, e) {
9411
9411
  var t = new S.MathNode("mo", [new S.TextNode("‾")]);
9412
9412
  t.setAttribute("stretchy", "true");
9413
- var a = new S.MathNode("munder", [X(r.body, e), t]);
9413
+ var a = new S.MathNode("munder", [Y(r.body, e), t]);
9414
9414
  return a.setAttribute("accentunder", "true"), a;
9415
9415
  }
9416
9416
  });
@@ -9445,7 +9445,7 @@ B({
9445
9445
  }, e);
9446
9446
  },
9447
9447
  mathmlBuilder(r, e) {
9448
- return new S.MathNode("mpadded", [X(r.body, e)], ["vcenter"]);
9448
+ return new S.MathNode("mpadded", [Y(r.body, e)], ["vcenter"]);
9449
9449
  }
9450
9450
  });
9451
9451
  B({
@@ -9587,35 +9587,35 @@ class h4 {
9587
9587
  }
9588
9588
  }
9589
9589
  var m4 = jr;
9590
- c("\\noexpand", function(r) {
9590
+ m("\\noexpand", function(r) {
9591
9591
  var e = r.popToken();
9592
9592
  return r.isExpandable(e.text) && (e.noexpand = !0, e.treatAsRelax = !0), {
9593
9593
  tokens: [e],
9594
9594
  numArgs: 0
9595
9595
  };
9596
9596
  });
9597
- c("\\expandafter", function(r) {
9597
+ m("\\expandafter", function(r) {
9598
9598
  var e = r.popToken();
9599
9599
  return r.expandOnce(!0), {
9600
9600
  tokens: [e],
9601
9601
  numArgs: 0
9602
9602
  };
9603
9603
  });
9604
- c("\\@firstoftwo", function(r) {
9604
+ m("\\@firstoftwo", function(r) {
9605
9605
  var e = r.consumeArgs(2);
9606
9606
  return {
9607
9607
  tokens: e[0],
9608
9608
  numArgs: 0
9609
9609
  };
9610
9610
  });
9611
- c("\\@secondoftwo", function(r) {
9611
+ m("\\@secondoftwo", function(r) {
9612
9612
  var e = r.consumeArgs(2);
9613
9613
  return {
9614
9614
  tokens: e[1],
9615
9615
  numArgs: 0
9616
9616
  };
9617
9617
  });
9618
- c("\\@ifnextchar", function(r) {
9618
+ m("\\@ifnextchar", function(r) {
9619
9619
  var e = r.consumeArgs(3);
9620
9620
  r.consumeSpaces();
9621
9621
  var t = r.future();
@@ -9627,8 +9627,8 @@ c("\\@ifnextchar", function(r) {
9627
9627
  numArgs: 0
9628
9628
  };
9629
9629
  });
9630
- c("\\@ifstar", "\\@ifnextchar *{\\@firstoftwo{#1}}");
9631
- c("\\TextOrMath", function(r) {
9630
+ m("\\@ifstar", "\\@ifnextchar *{\\@firstoftwo{#1}}");
9631
+ m("\\TextOrMath", function(r) {
9632
9632
  var e = r.consumeArgs(2);
9633
9633
  return r.mode === "text" ? {
9634
9634
  tokens: e[0],
@@ -9662,7 +9662,7 @@ var cr = {
9662
9662
  f: 15,
9663
9663
  F: 15
9664
9664
  };
9665
- c("\\char", function(r) {
9665
+ m("\\char", function(r) {
9666
9666
  var e = r.popToken(), t, a = "";
9667
9667
  if (e.text === "'")
9668
9668
  t = 8, e = r.popToken();
@@ -9697,108 +9697,108 @@ var Dt = (r, e, t, a) => {
9697
9697
  throw new M("\\renewcommand{" + s + "} when command " + s + " does not yet exist; use \\newcommand");
9698
9698
  var h = 0;
9699
9699
  if (n = r.consumeArg().tokens, n.length === 1 && n[0].text === "[") {
9700
- for (var m = "", p = r.expandNextToken(); p.text !== "]" && p.text !== "EOF"; )
9701
- m += p.text, p = r.expandNextToken();
9702
- if (!m.match(/^\s*[0-9]+\s*$/))
9703
- throw new M("Invalid number of arguments: " + m);
9704
- h = parseInt(m), n = r.consumeArg().tokens;
9700
+ for (var c = "", p = r.expandNextToken(); p.text !== "]" && p.text !== "EOF"; )
9701
+ c += p.text, p = r.expandNextToken();
9702
+ if (!c.match(/^\s*[0-9]+\s*$/))
9703
+ throw new M("Invalid number of arguments: " + c);
9704
+ h = parseInt(c), n = r.consumeArg().tokens;
9705
9705
  }
9706
9706
  return o && a || r.macros.set(s, {
9707
9707
  tokens: n,
9708
9708
  numArgs: h
9709
9709
  }), "";
9710
9710
  };
9711
- c("\\newcommand", (r) => Dt(r, !1, !0, !1));
9712
- c("\\renewcommand", (r) => Dt(r, !0, !1, !1));
9713
- c("\\providecommand", (r) => Dt(r, !0, !0, !0));
9714
- c("\\message", (r) => {
9711
+ m("\\newcommand", (r) => Dt(r, !1, !0, !1));
9712
+ m("\\renewcommand", (r) => Dt(r, !0, !1, !1));
9713
+ m("\\providecommand", (r) => Dt(r, !0, !0, !0));
9714
+ m("\\message", (r) => {
9715
9715
  var e = r.consumeArgs(1)[0];
9716
9716
  return console.log(e.reverse().map((t) => t.text).join("")), "";
9717
9717
  });
9718
- c("\\errmessage", (r) => {
9718
+ m("\\errmessage", (r) => {
9719
9719
  var e = r.consumeArgs(1)[0];
9720
9720
  return console.error(e.reverse().map((t) => t.text).join("")), "";
9721
9721
  });
9722
- c("\\show", (r) => {
9722
+ m("\\show", (r) => {
9723
9723
  var e = r.popToken(), t = e.text;
9724
- return console.log(e, r.macros.get(t), L0[t], $.math[t], $.text[t]), "";
9724
+ return console.log(e, r.macros.get(t), L0[t], X.math[t], X.text[t]), "";
9725
9725
  });
9726
- c("\\bgroup", "{");
9727
- c("\\egroup", "}");
9728
- c("~", "\\nobreakspace");
9729
- c("\\lq", "`");
9730
- c("\\rq", "'");
9731
- c("\\aa", "\\r a");
9732
- c("\\AA", "\\r A");
9733
- c("\\textcopyright", "\\html@mathml{\\textcircled{c}}{\\char`©}");
9734
- c("\\copyright", "\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");
9735
- c("\\textregistered", "\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");
9736
- c("ℬ", "\\mathscr{B}");
9737
- c("ℰ", "\\mathscr{E}");
9738
- c("ℱ", "\\mathscr{F}");
9739
- c("ℋ", "\\mathscr{H}");
9740
- c("ℐ", "\\mathscr{I}");
9741
- c("ℒ", "\\mathscr{L}");
9742
- c("ℳ", "\\mathscr{M}");
9743
- c("ℛ", "\\mathscr{R}");
9744
- c("ℭ", "\\mathfrak{C}");
9745
- c("ℌ", "\\mathfrak{H}");
9746
- c("ℨ", "\\mathfrak{Z}");
9747
- c("\\Bbbk", "\\Bbb{k}");
9748
- c("·", "\\cdotp");
9749
- c("\\llap", "\\mathllap{\\textrm{#1}}");
9750
- c("\\rlap", "\\mathrlap{\\textrm{#1}}");
9751
- c("\\clap", "\\mathclap{\\textrm{#1}}");
9752
- c("\\mathstrut", "\\vphantom{(}");
9753
- c("\\underbar", "\\underline{\\text{#1}}");
9754
- c("\\not", '\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');
9755
- c("\\neq", "\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");
9756
- c("\\ne", "\\neq");
9757
- c("≠", "\\neq");
9758
- c("\\notin", "\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");
9759
- c("∉", "\\notin");
9760
- c("≘", "\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");
9761
- c("≙", "\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");
9762
- c("≚", "\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");
9763
- c("≛", "\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");
9764
- c("≝", "\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");
9765
- c("≞", "\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");
9766
- c("≟", "\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");
9767
- c("⟂", "\\perp");
9768
- c("‼", "\\mathclose{!\\mkern-0.8mu!}");
9769
- c("∌", "\\notni");
9770
- c("⌜", "\\ulcorner");
9771
- c("⌝", "\\urcorner");
9772
- c("⌞", "\\llcorner");
9773
- c("⌟", "\\lrcorner");
9774
- c("©", "\\copyright");
9775
- c("®", "\\textregistered");
9776
- c("️", "\\textregistered");
9777
- c("\\ulcorner", '\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');
9778
- c("\\urcorner", '\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');
9779
- c("\\llcorner", '\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');
9780
- c("\\lrcorner", '\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');
9781
- c("\\vdots", "{\\varvdots\\rule{0pt}{15pt}}");
9782
- c("⋮", "\\vdots");
9783
- c("\\varGamma", "\\mathit{\\Gamma}");
9784
- c("\\varDelta", "\\mathit{\\Delta}");
9785
- c("\\varTheta", "\\mathit{\\Theta}");
9786
- c("\\varLambda", "\\mathit{\\Lambda}");
9787
- c("\\varXi", "\\mathit{\\Xi}");
9788
- c("\\varPi", "\\mathit{\\Pi}");
9789
- c("\\varSigma", "\\mathit{\\Sigma}");
9790
- c("\\varUpsilon", "\\mathit{\\Upsilon}");
9791
- c("\\varPhi", "\\mathit{\\Phi}");
9792
- c("\\varPsi", "\\mathit{\\Psi}");
9793
- c("\\varOmega", "\\mathit{\\Omega}");
9794
- c("\\substack", "\\begin{subarray}{c}#1\\end{subarray}");
9795
- c("\\colon", "\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");
9796
- c("\\boxed", "\\fbox{$\\displaystyle{#1}$}");
9797
- c("\\iff", "\\DOTSB\\;\\Longleftrightarrow\\;");
9798
- c("\\implies", "\\DOTSB\\;\\Longrightarrow\\;");
9799
- c("\\impliedby", "\\DOTSB\\;\\Longleftarrow\\;");
9800
- c("\\dddot", "{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");
9801
- c("\\ddddot", "{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");
9726
+ m("\\bgroup", "{");
9727
+ m("\\egroup", "}");
9728
+ m("~", "\\nobreakspace");
9729
+ m("\\lq", "`");
9730
+ m("\\rq", "'");
9731
+ m("\\aa", "\\r a");
9732
+ m("\\AA", "\\r A");
9733
+ m("\\textcopyright", "\\html@mathml{\\textcircled{c}}{\\char`©}");
9734
+ m("\\copyright", "\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");
9735
+ m("\\textregistered", "\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");
9736
+ m("ℬ", "\\mathscr{B}");
9737
+ m("ℰ", "\\mathscr{E}");
9738
+ m("ℱ", "\\mathscr{F}");
9739
+ m("ℋ", "\\mathscr{H}");
9740
+ m("ℐ", "\\mathscr{I}");
9741
+ m("ℒ", "\\mathscr{L}");
9742
+ m("ℳ", "\\mathscr{M}");
9743
+ m("ℛ", "\\mathscr{R}");
9744
+ m("ℭ", "\\mathfrak{C}");
9745
+ m("ℌ", "\\mathfrak{H}");
9746
+ m("ℨ", "\\mathfrak{Z}");
9747
+ m("\\Bbbk", "\\Bbb{k}");
9748
+ m("·", "\\cdotp");
9749
+ m("\\llap", "\\mathllap{\\textrm{#1}}");
9750
+ m("\\rlap", "\\mathrlap{\\textrm{#1}}");
9751
+ m("\\clap", "\\mathclap{\\textrm{#1}}");
9752
+ m("\\mathstrut", "\\vphantom{(}");
9753
+ m("\\underbar", "\\underline{\\text{#1}}");
9754
+ m("\\not", '\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');
9755
+ m("\\neq", "\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");
9756
+ m("\\ne", "\\neq");
9757
+ m("≠", "\\neq");
9758
+ m("\\notin", "\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");
9759
+ m("∉", "\\notin");
9760
+ m("≘", "\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");
9761
+ m("≙", "\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");
9762
+ m("≚", "\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");
9763
+ m("≛", "\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");
9764
+ m("≝", "\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");
9765
+ m("≞", "\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");
9766
+ m("≟", "\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");
9767
+ m("⟂", "\\perp");
9768
+ m("‼", "\\mathclose{!\\mkern-0.8mu!}");
9769
+ m("∌", "\\notni");
9770
+ m("⌜", "\\ulcorner");
9771
+ m("⌝", "\\urcorner");
9772
+ m("⌞", "\\llcorner");
9773
+ m("⌟", "\\lrcorner");
9774
+ m("©", "\\copyright");
9775
+ m("®", "\\textregistered");
9776
+ m("️", "\\textregistered");
9777
+ m("\\ulcorner", '\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');
9778
+ m("\\urcorner", '\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');
9779
+ m("\\llcorner", '\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');
9780
+ m("\\lrcorner", '\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');
9781
+ m("\\vdots", "{\\varvdots\\rule{0pt}{15pt}}");
9782
+ m("⋮", "\\vdots");
9783
+ m("\\varGamma", "\\mathit{\\Gamma}");
9784
+ m("\\varDelta", "\\mathit{\\Delta}");
9785
+ m("\\varTheta", "\\mathit{\\Theta}");
9786
+ m("\\varLambda", "\\mathit{\\Lambda}");
9787
+ m("\\varXi", "\\mathit{\\Xi}");
9788
+ m("\\varPi", "\\mathit{\\Pi}");
9789
+ m("\\varSigma", "\\mathit{\\Sigma}");
9790
+ m("\\varUpsilon", "\\mathit{\\Upsilon}");
9791
+ m("\\varPhi", "\\mathit{\\Phi}");
9792
+ m("\\varPsi", "\\mathit{\\Psi}");
9793
+ m("\\varOmega", "\\mathit{\\Omega}");
9794
+ m("\\substack", "\\begin{subarray}{c}#1\\end{subarray}");
9795
+ m("\\colon", "\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");
9796
+ m("\\boxed", "\\fbox{$\\displaystyle{#1}$}");
9797
+ m("\\iff", "\\DOTSB\\;\\Longleftrightarrow\\;");
9798
+ m("\\implies", "\\DOTSB\\;\\Longrightarrow\\;");
9799
+ m("\\impliedby", "\\DOTSB\\;\\Longleftarrow\\;");
9800
+ m("\\dddot", "{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");
9801
+ m("\\ddddot", "{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");
9802
9802
  var dr = {
9803
9803
  ",": "\\dotsc",
9804
9804
  "\\not": "\\dotsb",
@@ -9854,9 +9854,9 @@ var dr = {
9854
9854
  // Symbols whose definition starts with \DOTSX:
9855
9855
  "\\DOTSX": "\\dotsx"
9856
9856
  };
9857
- c("\\dots", function(r) {
9857
+ m("\\dots", function(r) {
9858
9858
  var e = "\\dotso", t = r.expandAfterFuture().text;
9859
- return t in dr ? e = dr[t] : (t.slice(0, 4) === "\\not" || t in $.math && q.contains(["bin", "rel"], $.math[t].group)) && (e = "\\dotsb"), e;
9859
+ return t in dr ? e = dr[t] : (t.slice(0, 4) === "\\not" || t in X.math && q.contains(["bin", "rel"], X.math[t].group)) && (e = "\\dotsb"), e;
9860
9860
  });
9861
9861
  var Ct = {
9862
9862
  // \rightdelim@ checks for the following:
@@ -9882,206 +9882,206 @@ var Ct = {
9882
9882
  ".": !0,
9883
9883
  ",": !0
9884
9884
  };
9885
- c("\\dotso", function(r) {
9885
+ m("\\dotso", function(r) {
9886
9886
  var e = r.future().text;
9887
9887
  return e in Ct ? "\\ldots\\," : "\\ldots";
9888
9888
  });
9889
- c("\\dotsc", function(r) {
9889
+ m("\\dotsc", function(r) {
9890
9890
  var e = r.future().text;
9891
9891
  return e in Ct && e !== "," ? "\\ldots\\," : "\\ldots";
9892
9892
  });
9893
- c("\\cdots", function(r) {
9893
+ m("\\cdots", function(r) {
9894
9894
  var e = r.future().text;
9895
9895
  return e in Ct ? "\\@cdots\\," : "\\@cdots";
9896
9896
  });
9897
- c("\\dotsb", "\\cdots");
9898
- c("\\dotsm", "\\cdots");
9899
- c("\\dotsi", "\\!\\cdots");
9900
- c("\\dotsx", "\\ldots\\,");
9901
- c("\\DOTSI", "\\relax");
9902
- c("\\DOTSB", "\\relax");
9903
- c("\\DOTSX", "\\relax");
9904
- c("\\tmspace", "\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");
9905
- c("\\,", "\\tmspace+{3mu}{.1667em}");
9906
- c("\\thinspace", "\\,");
9907
- c("\\>", "\\mskip{4mu}");
9908
- c("\\:", "\\tmspace+{4mu}{.2222em}");
9909
- c("\\medspace", "\\:");
9910
- c("\\;", "\\tmspace+{5mu}{.2777em}");
9911
- c("\\thickspace", "\\;");
9912
- c("\\!", "\\tmspace-{3mu}{.1667em}");
9913
- c("\\negthinspace", "\\!");
9914
- c("\\negmedspace", "\\tmspace-{4mu}{.2222em}");
9915
- c("\\negthickspace", "\\tmspace-{5mu}{.277em}");
9916
- c("\\enspace", "\\kern.5em ");
9917
- c("\\enskip", "\\hskip.5em\\relax");
9918
- c("\\quad", "\\hskip1em\\relax");
9919
- c("\\qquad", "\\hskip2em\\relax");
9920
- c("\\tag", "\\@ifstar\\tag@literal\\tag@paren");
9921
- c("\\tag@paren", "\\tag@literal{({#1})}");
9922
- c("\\tag@literal", (r) => {
9897
+ m("\\dotsb", "\\cdots");
9898
+ m("\\dotsm", "\\cdots");
9899
+ m("\\dotsi", "\\!\\cdots");
9900
+ m("\\dotsx", "\\ldots\\,");
9901
+ m("\\DOTSI", "\\relax");
9902
+ m("\\DOTSB", "\\relax");
9903
+ m("\\DOTSX", "\\relax");
9904
+ m("\\tmspace", "\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");
9905
+ m("\\,", "\\tmspace+{3mu}{.1667em}");
9906
+ m("\\thinspace", "\\,");
9907
+ m("\\>", "\\mskip{4mu}");
9908
+ m("\\:", "\\tmspace+{4mu}{.2222em}");
9909
+ m("\\medspace", "\\:");
9910
+ m("\\;", "\\tmspace+{5mu}{.2777em}");
9911
+ m("\\thickspace", "\\;");
9912
+ m("\\!", "\\tmspace-{3mu}{.1667em}");
9913
+ m("\\negthinspace", "\\!");
9914
+ m("\\negmedspace", "\\tmspace-{4mu}{.2222em}");
9915
+ m("\\negthickspace", "\\tmspace-{5mu}{.277em}");
9916
+ m("\\enspace", "\\kern.5em ");
9917
+ m("\\enskip", "\\hskip.5em\\relax");
9918
+ m("\\quad", "\\hskip1em\\relax");
9919
+ m("\\qquad", "\\hskip2em\\relax");
9920
+ m("\\tag", "\\@ifstar\\tag@literal\\tag@paren");
9921
+ m("\\tag@paren", "\\tag@literal{({#1})}");
9922
+ m("\\tag@literal", (r) => {
9923
9923
  if (r.macros.get("\\df@tag"))
9924
9924
  throw new M("Multiple \\tag");
9925
9925
  return "\\gdef\\df@tag{\\text{#1}}";
9926
9926
  });
9927
- c("\\bmod", "\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");
9928
- c("\\pod", "\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");
9929
- c("\\pmod", "\\pod{{\\rm mod}\\mkern6mu#1}");
9930
- c("\\mod", "\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");
9931
- c("\\newline", "\\\\\\relax");
9932
- c("\\TeX", "\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");
9927
+ m("\\bmod", "\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");
9928
+ m("\\pod", "\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");
9929
+ m("\\pmod", "\\pod{{\\rm mod}\\mkern6mu#1}");
9930
+ m("\\mod", "\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");
9931
+ m("\\newline", "\\\\\\relax");
9932
+ m("\\TeX", "\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");
9933
9933
  var sa = A(x0["Main-Regular"][84][1] - 0.7 * x0["Main-Regular"][65][1]);
9934
- c("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + sa + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}");
9935
- c("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + sa + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}");
9936
- c("\\hspace", "\\@ifstar\\@hspacer\\@hspace");
9937
- c("\\@hspace", "\\hskip #1\\relax");
9938
- c("\\@hspacer", "\\rule{0pt}{0pt}\\hskip #1\\relax");
9939
- c("\\ordinarycolon", ":");
9940
- c("\\vcentcolon", "\\mathrel{\\mathop\\ordinarycolon}");
9941
- c("\\dblcolon", '\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');
9942
- c("\\coloneqq", '\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');
9943
- c("\\Coloneqq", '\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');
9944
- c("\\coloneq", '\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');
9945
- c("\\Coloneq", '\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');
9946
- c("\\eqqcolon", '\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');
9947
- c("\\Eqqcolon", '\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');
9948
- c("\\eqcolon", '\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');
9949
- c("\\Eqcolon", '\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');
9950
- c("\\colonapprox", '\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');
9951
- c("\\Colonapprox", '\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');
9952
- c("\\colonsim", '\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');
9953
- c("\\Colonsim", '\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');
9954
- c("∷", "\\dblcolon");
9955
- c("∹", "\\eqcolon");
9956
- c("≔", "\\coloneqq");
9957
- c("≕", "\\eqqcolon");
9958
- c("⩴", "\\Coloneqq");
9959
- c("\\ratio", "\\vcentcolon");
9960
- c("\\coloncolon", "\\dblcolon");
9961
- c("\\colonequals", "\\coloneqq");
9962
- c("\\coloncolonequals", "\\Coloneqq");
9963
- c("\\equalscolon", "\\eqqcolon");
9964
- c("\\equalscoloncolon", "\\Eqqcolon");
9965
- c("\\colonminus", "\\coloneq");
9966
- c("\\coloncolonminus", "\\Coloneq");
9967
- c("\\minuscolon", "\\eqcolon");
9968
- c("\\minuscoloncolon", "\\Eqcolon");
9969
- c("\\coloncolonapprox", "\\Colonapprox");
9970
- c("\\coloncolonsim", "\\Colonsim");
9971
- c("\\simcolon", "\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");
9972
- c("\\simcoloncolon", "\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");
9973
- c("\\approxcolon", "\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");
9974
- c("\\approxcoloncolon", "\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");
9975
- c("\\notni", "\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");
9976
- c("\\limsup", "\\DOTSB\\operatorname*{lim\\,sup}");
9977
- c("\\liminf", "\\DOTSB\\operatorname*{lim\\,inf}");
9978
- c("\\injlim", "\\DOTSB\\operatorname*{inj\\,lim}");
9979
- c("\\projlim", "\\DOTSB\\operatorname*{proj\\,lim}");
9980
- c("\\varlimsup", "\\DOTSB\\operatorname*{\\overline{lim}}");
9981
- c("\\varliminf", "\\DOTSB\\operatorname*{\\underline{lim}}");
9982
- c("\\varinjlim", "\\DOTSB\\operatorname*{\\underrightarrow{lim}}");
9983
- c("\\varprojlim", "\\DOTSB\\operatorname*{\\underleftarrow{lim}}");
9984
- c("\\gvertneqq", "\\html@mathml{\\@gvertneqq}{≩}");
9985
- c("\\lvertneqq", "\\html@mathml{\\@lvertneqq}{≨}");
9986
- c("\\ngeqq", "\\html@mathml{\\@ngeqq}{≱}");
9987
- c("\\ngeqslant", "\\html@mathml{\\@ngeqslant}{≱}");
9988
- c("\\nleqq", "\\html@mathml{\\@nleqq}{≰}");
9989
- c("\\nleqslant", "\\html@mathml{\\@nleqslant}{≰}");
9990
- c("\\nshortmid", "\\html@mathml{\\@nshortmid}{∤}");
9991
- c("\\nshortparallel", "\\html@mathml{\\@nshortparallel}{∦}");
9992
- c("\\nsubseteqq", "\\html@mathml{\\@nsubseteqq}{⊈}");
9993
- c("\\nsupseteqq", "\\html@mathml{\\@nsupseteqq}{⊉}");
9994
- c("\\varsubsetneq", "\\html@mathml{\\@varsubsetneq}{⊊}");
9995
- c("\\varsubsetneqq", "\\html@mathml{\\@varsubsetneqq}{⫋}");
9996
- c("\\varsupsetneq", "\\html@mathml{\\@varsupsetneq}{⊋}");
9997
- c("\\varsupsetneqq", "\\html@mathml{\\@varsupsetneqq}{⫌}");
9998
- c("\\imath", "\\html@mathml{\\@imath}{ı}");
9999
- c("\\jmath", "\\html@mathml{\\@jmath}{ȷ}");
10000
- c("\\llbracket", "\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");
10001
- c("\\rrbracket", "\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");
10002
- c("⟦", "\\llbracket");
10003
- c("⟧", "\\rrbracket");
10004
- c("\\lBrace", "\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");
10005
- c("\\rBrace", "\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");
10006
- c("⦃", "\\lBrace");
10007
- c("⦄", "\\rBrace");
10008
- c("\\minuso", "\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");
10009
- c("⦵", "\\minuso");
10010
- c("\\darr", "\\downarrow");
10011
- c("\\dArr", "\\Downarrow");
10012
- c("\\Darr", "\\Downarrow");
10013
- c("\\lang", "\\langle");
10014
- c("\\rang", "\\rangle");
10015
- c("\\uarr", "\\uparrow");
10016
- c("\\uArr", "\\Uparrow");
10017
- c("\\Uarr", "\\Uparrow");
10018
- c("\\N", "\\mathbb{N}");
10019
- c("\\R", "\\mathbb{R}");
10020
- c("\\Z", "\\mathbb{Z}");
10021
- c("\\alef", "\\aleph");
10022
- c("\\alefsym", "\\aleph");
10023
- c("\\Alpha", "\\mathrm{A}");
10024
- c("\\Beta", "\\mathrm{B}");
10025
- c("\\bull", "\\bullet");
10026
- c("\\Chi", "\\mathrm{X}");
10027
- c("\\clubs", "\\clubsuit");
10028
- c("\\cnums", "\\mathbb{C}");
10029
- c("\\Complex", "\\mathbb{C}");
10030
- c("\\Dagger", "\\ddagger");
10031
- c("\\diamonds", "\\diamondsuit");
10032
- c("\\empty", "\\emptyset");
10033
- c("\\Epsilon", "\\mathrm{E}");
10034
- c("\\Eta", "\\mathrm{H}");
10035
- c("\\exist", "\\exists");
10036
- c("\\harr", "\\leftrightarrow");
10037
- c("\\hArr", "\\Leftrightarrow");
10038
- c("\\Harr", "\\Leftrightarrow");
10039
- c("\\hearts", "\\heartsuit");
10040
- c("\\image", "\\Im");
10041
- c("\\infin", "\\infty");
10042
- c("\\Iota", "\\mathrm{I}");
10043
- c("\\isin", "\\in");
10044
- c("\\Kappa", "\\mathrm{K}");
10045
- c("\\larr", "\\leftarrow");
10046
- c("\\lArr", "\\Leftarrow");
10047
- c("\\Larr", "\\Leftarrow");
10048
- c("\\lrarr", "\\leftrightarrow");
10049
- c("\\lrArr", "\\Leftrightarrow");
10050
- c("\\Lrarr", "\\Leftrightarrow");
10051
- c("\\Mu", "\\mathrm{M}");
10052
- c("\\natnums", "\\mathbb{N}");
10053
- c("\\Nu", "\\mathrm{N}");
10054
- c("\\Omicron", "\\mathrm{O}");
10055
- c("\\plusmn", "\\pm");
10056
- c("\\rarr", "\\rightarrow");
10057
- c("\\rArr", "\\Rightarrow");
10058
- c("\\Rarr", "\\Rightarrow");
10059
- c("\\real", "\\Re");
10060
- c("\\reals", "\\mathbb{R}");
10061
- c("\\Reals", "\\mathbb{R}");
10062
- c("\\Rho", "\\mathrm{P}");
10063
- c("\\sdot", "\\cdot");
10064
- c("\\sect", "\\S");
10065
- c("\\spades", "\\spadesuit");
10066
- c("\\sub", "\\subset");
10067
- c("\\sube", "\\subseteq");
10068
- c("\\supe", "\\supseteq");
10069
- c("\\Tau", "\\mathrm{T}");
10070
- c("\\thetasym", "\\vartheta");
10071
- c("\\weierp", "\\wp");
10072
- c("\\Zeta", "\\mathrm{Z}");
10073
- c("\\argmin", "\\DOTSB\\operatorname*{arg\\,min}");
10074
- c("\\argmax", "\\DOTSB\\operatorname*{arg\\,max}");
10075
- c("\\plim", "\\DOTSB\\mathop{\\operatorname{plim}}\\limits");
10076
- c("\\bra", "\\mathinner{\\langle{#1}|}");
10077
- c("\\ket", "\\mathinner{|{#1}\\rangle}");
10078
- c("\\braket", "\\mathinner{\\langle{#1}\\rangle}");
10079
- c("\\Bra", "\\left\\langle#1\\right|");
10080
- c("\\Ket", "\\left|#1\\right\\rangle");
9934
+ m("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + sa + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}");
9935
+ m("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + sa + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}");
9936
+ m("\\hspace", "\\@ifstar\\@hspacer\\@hspace");
9937
+ m("\\@hspace", "\\hskip #1\\relax");
9938
+ m("\\@hspacer", "\\rule{0pt}{0pt}\\hskip #1\\relax");
9939
+ m("\\ordinarycolon", ":");
9940
+ m("\\vcentcolon", "\\mathrel{\\mathop\\ordinarycolon}");
9941
+ m("\\dblcolon", '\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');
9942
+ m("\\coloneqq", '\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');
9943
+ m("\\Coloneqq", '\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');
9944
+ m("\\coloneq", '\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');
9945
+ m("\\Coloneq", '\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');
9946
+ m("\\eqqcolon", '\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');
9947
+ m("\\Eqqcolon", '\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');
9948
+ m("\\eqcolon", '\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');
9949
+ m("\\Eqcolon", '\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');
9950
+ m("\\colonapprox", '\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');
9951
+ m("\\Colonapprox", '\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');
9952
+ m("\\colonsim", '\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');
9953
+ m("\\Colonsim", '\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');
9954
+ m("∷", "\\dblcolon");
9955
+ m("∹", "\\eqcolon");
9956
+ m("≔", "\\coloneqq");
9957
+ m("≕", "\\eqqcolon");
9958
+ m("⩴", "\\Coloneqq");
9959
+ m("\\ratio", "\\vcentcolon");
9960
+ m("\\coloncolon", "\\dblcolon");
9961
+ m("\\colonequals", "\\coloneqq");
9962
+ m("\\coloncolonequals", "\\Coloneqq");
9963
+ m("\\equalscolon", "\\eqqcolon");
9964
+ m("\\equalscoloncolon", "\\Eqqcolon");
9965
+ m("\\colonminus", "\\coloneq");
9966
+ m("\\coloncolonminus", "\\Coloneq");
9967
+ m("\\minuscolon", "\\eqcolon");
9968
+ m("\\minuscoloncolon", "\\Eqcolon");
9969
+ m("\\coloncolonapprox", "\\Colonapprox");
9970
+ m("\\coloncolonsim", "\\Colonsim");
9971
+ m("\\simcolon", "\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");
9972
+ m("\\simcoloncolon", "\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");
9973
+ m("\\approxcolon", "\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");
9974
+ m("\\approxcoloncolon", "\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");
9975
+ m("\\notni", "\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");
9976
+ m("\\limsup", "\\DOTSB\\operatorname*{lim\\,sup}");
9977
+ m("\\liminf", "\\DOTSB\\operatorname*{lim\\,inf}");
9978
+ m("\\injlim", "\\DOTSB\\operatorname*{inj\\,lim}");
9979
+ m("\\projlim", "\\DOTSB\\operatorname*{proj\\,lim}");
9980
+ m("\\varlimsup", "\\DOTSB\\operatorname*{\\overline{lim}}");
9981
+ m("\\varliminf", "\\DOTSB\\operatorname*{\\underline{lim}}");
9982
+ m("\\varinjlim", "\\DOTSB\\operatorname*{\\underrightarrow{lim}}");
9983
+ m("\\varprojlim", "\\DOTSB\\operatorname*{\\underleftarrow{lim}}");
9984
+ m("\\gvertneqq", "\\html@mathml{\\@gvertneqq}{≩}");
9985
+ m("\\lvertneqq", "\\html@mathml{\\@lvertneqq}{≨}");
9986
+ m("\\ngeqq", "\\html@mathml{\\@ngeqq}{≱}");
9987
+ m("\\ngeqslant", "\\html@mathml{\\@ngeqslant}{≱}");
9988
+ m("\\nleqq", "\\html@mathml{\\@nleqq}{≰}");
9989
+ m("\\nleqslant", "\\html@mathml{\\@nleqslant}{≰}");
9990
+ m("\\nshortmid", "\\html@mathml{\\@nshortmid}{∤}");
9991
+ m("\\nshortparallel", "\\html@mathml{\\@nshortparallel}{∦}");
9992
+ m("\\nsubseteqq", "\\html@mathml{\\@nsubseteqq}{⊈}");
9993
+ m("\\nsupseteqq", "\\html@mathml{\\@nsupseteqq}{⊉}");
9994
+ m("\\varsubsetneq", "\\html@mathml{\\@varsubsetneq}{⊊}");
9995
+ m("\\varsubsetneqq", "\\html@mathml{\\@varsubsetneqq}{⫋}");
9996
+ m("\\varsupsetneq", "\\html@mathml{\\@varsupsetneq}{⊋}");
9997
+ m("\\varsupsetneqq", "\\html@mathml{\\@varsupsetneqq}{⫌}");
9998
+ m("\\imath", "\\html@mathml{\\@imath}{ı}");
9999
+ m("\\jmath", "\\html@mathml{\\@jmath}{ȷ}");
10000
+ m("\\llbracket", "\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");
10001
+ m("\\rrbracket", "\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");
10002
+ m("⟦", "\\llbracket");
10003
+ m("⟧", "\\rrbracket");
10004
+ m("\\lBrace", "\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");
10005
+ m("\\rBrace", "\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");
10006
+ m("⦃", "\\lBrace");
10007
+ m("⦄", "\\rBrace");
10008
+ m("\\minuso", "\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");
10009
+ m("⦵", "\\minuso");
10010
+ m("\\darr", "\\downarrow");
10011
+ m("\\dArr", "\\Downarrow");
10012
+ m("\\Darr", "\\Downarrow");
10013
+ m("\\lang", "\\langle");
10014
+ m("\\rang", "\\rangle");
10015
+ m("\\uarr", "\\uparrow");
10016
+ m("\\uArr", "\\Uparrow");
10017
+ m("\\Uarr", "\\Uparrow");
10018
+ m("\\N", "\\mathbb{N}");
10019
+ m("\\R", "\\mathbb{R}");
10020
+ m("\\Z", "\\mathbb{Z}");
10021
+ m("\\alef", "\\aleph");
10022
+ m("\\alefsym", "\\aleph");
10023
+ m("\\Alpha", "\\mathrm{A}");
10024
+ m("\\Beta", "\\mathrm{B}");
10025
+ m("\\bull", "\\bullet");
10026
+ m("\\Chi", "\\mathrm{X}");
10027
+ m("\\clubs", "\\clubsuit");
10028
+ m("\\cnums", "\\mathbb{C}");
10029
+ m("\\Complex", "\\mathbb{C}");
10030
+ m("\\Dagger", "\\ddagger");
10031
+ m("\\diamonds", "\\diamondsuit");
10032
+ m("\\empty", "\\emptyset");
10033
+ m("\\Epsilon", "\\mathrm{E}");
10034
+ m("\\Eta", "\\mathrm{H}");
10035
+ m("\\exist", "\\exists");
10036
+ m("\\harr", "\\leftrightarrow");
10037
+ m("\\hArr", "\\Leftrightarrow");
10038
+ m("\\Harr", "\\Leftrightarrow");
10039
+ m("\\hearts", "\\heartsuit");
10040
+ m("\\image", "\\Im");
10041
+ m("\\infin", "\\infty");
10042
+ m("\\Iota", "\\mathrm{I}");
10043
+ m("\\isin", "\\in");
10044
+ m("\\Kappa", "\\mathrm{K}");
10045
+ m("\\larr", "\\leftarrow");
10046
+ m("\\lArr", "\\Leftarrow");
10047
+ m("\\Larr", "\\Leftarrow");
10048
+ m("\\lrarr", "\\leftrightarrow");
10049
+ m("\\lrArr", "\\Leftrightarrow");
10050
+ m("\\Lrarr", "\\Leftrightarrow");
10051
+ m("\\Mu", "\\mathrm{M}");
10052
+ m("\\natnums", "\\mathbb{N}");
10053
+ m("\\Nu", "\\mathrm{N}");
10054
+ m("\\Omicron", "\\mathrm{O}");
10055
+ m("\\plusmn", "\\pm");
10056
+ m("\\rarr", "\\rightarrow");
10057
+ m("\\rArr", "\\Rightarrow");
10058
+ m("\\Rarr", "\\Rightarrow");
10059
+ m("\\real", "\\Re");
10060
+ m("\\reals", "\\mathbb{R}");
10061
+ m("\\Reals", "\\mathbb{R}");
10062
+ m("\\Rho", "\\mathrm{P}");
10063
+ m("\\sdot", "\\cdot");
10064
+ m("\\sect", "\\S");
10065
+ m("\\spades", "\\spadesuit");
10066
+ m("\\sub", "\\subset");
10067
+ m("\\sube", "\\subseteq");
10068
+ m("\\supe", "\\supseteq");
10069
+ m("\\Tau", "\\mathrm{T}");
10070
+ m("\\thetasym", "\\vartheta");
10071
+ m("\\weierp", "\\wp");
10072
+ m("\\Zeta", "\\mathrm{Z}");
10073
+ m("\\argmin", "\\DOTSB\\operatorname*{arg\\,min}");
10074
+ m("\\argmax", "\\DOTSB\\operatorname*{arg\\,max}");
10075
+ m("\\plim", "\\DOTSB\\mathop{\\operatorname{plim}}\\limits");
10076
+ m("\\bra", "\\mathinner{\\langle{#1}|}");
10077
+ m("\\ket", "\\mathinner{|{#1}\\rangle}");
10078
+ m("\\braket", "\\mathinner{\\langle{#1}\\rangle}");
10079
+ m("\\Bra", "\\left\\langle#1\\right|");
10080
+ m("\\Ket", "\\left|#1\\right\\rangle");
10081
10081
  var la = (r) => (e) => {
10082
10082
  var t = e.consumeArg().tokens, a = e.consumeArg().tokens, n = e.consumeArg().tokens, s = e.consumeArg().tokens, o = e.macros.get("|"), h = e.macros.get("\\|");
10083
10083
  e.macros.beginGroup();
10084
- var m = (b) => (w) => {
10084
+ var c = (b) => (w) => {
10085
10085
  r && (w.macros.set("|", o), n.length && w.macros.set("\\|", h));
10086
10086
  var x = b;
10087
10087
  if (!b && n.length) {
@@ -10093,7 +10093,7 @@ var la = (r) => (e) => {
10093
10093
  numArgs: 0
10094
10094
  };
10095
10095
  };
10096
- e.macros.set("|", m(!1)), n.length && e.macros.set("\\|", m(!0));
10096
+ e.macros.set("|", c(!1)), n.length && e.macros.set("\\|", c(!0));
10097
10097
  var p = e.consumeArg().tokens, g = e.expandTokens([
10098
10098
  ...s,
10099
10099
  ...p,
@@ -10105,68 +10105,68 @@ var la = (r) => (e) => {
10105
10105
  numArgs: 0
10106
10106
  };
10107
10107
  };
10108
- c("\\bra@ket", la(!1));
10109
- c("\\bra@set", la(!0));
10110
- c("\\Braket", "\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");
10111
- c("\\Set", "\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");
10112
- c("\\set", "\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");
10113
- c("\\angln", "{\\angl n}");
10114
- c("\\blue", "\\textcolor{##6495ed}{#1}");
10115
- c("\\orange", "\\textcolor{##ffa500}{#1}");
10116
- c("\\pink", "\\textcolor{##ff00af}{#1}");
10117
- c("\\red", "\\textcolor{##df0030}{#1}");
10118
- c("\\green", "\\textcolor{##28ae7b}{#1}");
10119
- c("\\gray", "\\textcolor{gray}{#1}");
10120
- c("\\purple", "\\textcolor{##9d38bd}{#1}");
10121
- c("\\blueA", "\\textcolor{##ccfaff}{#1}");
10122
- c("\\blueB", "\\textcolor{##80f6ff}{#1}");
10123
- c("\\blueC", "\\textcolor{##63d9ea}{#1}");
10124
- c("\\blueD", "\\textcolor{##11accd}{#1}");
10125
- c("\\blueE", "\\textcolor{##0c7f99}{#1}");
10126
- c("\\tealA", "\\textcolor{##94fff5}{#1}");
10127
- c("\\tealB", "\\textcolor{##26edd5}{#1}");
10128
- c("\\tealC", "\\textcolor{##01d1c1}{#1}");
10129
- c("\\tealD", "\\textcolor{##01a995}{#1}");
10130
- c("\\tealE", "\\textcolor{##208170}{#1}");
10131
- c("\\greenA", "\\textcolor{##b6ffb0}{#1}");
10132
- c("\\greenB", "\\textcolor{##8af281}{#1}");
10133
- c("\\greenC", "\\textcolor{##74cf70}{#1}");
10134
- c("\\greenD", "\\textcolor{##1fab54}{#1}");
10135
- c("\\greenE", "\\textcolor{##0d923f}{#1}");
10136
- c("\\goldA", "\\textcolor{##ffd0a9}{#1}");
10137
- c("\\goldB", "\\textcolor{##ffbb71}{#1}");
10138
- c("\\goldC", "\\textcolor{##ff9c39}{#1}");
10139
- c("\\goldD", "\\textcolor{##e07d10}{#1}");
10140
- c("\\goldE", "\\textcolor{##a75a05}{#1}");
10141
- c("\\redA", "\\textcolor{##fca9a9}{#1}");
10142
- c("\\redB", "\\textcolor{##ff8482}{#1}");
10143
- c("\\redC", "\\textcolor{##f9685d}{#1}");
10144
- c("\\redD", "\\textcolor{##e84d39}{#1}");
10145
- c("\\redE", "\\textcolor{##bc2612}{#1}");
10146
- c("\\maroonA", "\\textcolor{##ffbde0}{#1}");
10147
- c("\\maroonB", "\\textcolor{##ff92c6}{#1}");
10148
- c("\\maroonC", "\\textcolor{##ed5fa6}{#1}");
10149
- c("\\maroonD", "\\textcolor{##ca337c}{#1}");
10150
- c("\\maroonE", "\\textcolor{##9e034e}{#1}");
10151
- c("\\purpleA", "\\textcolor{##ddd7ff}{#1}");
10152
- c("\\purpleB", "\\textcolor{##c6b9fc}{#1}");
10153
- c("\\purpleC", "\\textcolor{##aa87ff}{#1}");
10154
- c("\\purpleD", "\\textcolor{##7854ab}{#1}");
10155
- c("\\purpleE", "\\textcolor{##543b78}{#1}");
10156
- c("\\mintA", "\\textcolor{##f5f9e8}{#1}");
10157
- c("\\mintB", "\\textcolor{##edf2df}{#1}");
10158
- c("\\mintC", "\\textcolor{##e0e5cc}{#1}");
10159
- c("\\grayA", "\\textcolor{##f6f7f7}{#1}");
10160
- c("\\grayB", "\\textcolor{##f0f1f2}{#1}");
10161
- c("\\grayC", "\\textcolor{##e3e5e6}{#1}");
10162
- c("\\grayD", "\\textcolor{##d6d8da}{#1}");
10163
- c("\\grayE", "\\textcolor{##babec2}{#1}");
10164
- c("\\grayF", "\\textcolor{##888d93}{#1}");
10165
- c("\\grayG", "\\textcolor{##626569}{#1}");
10166
- c("\\grayH", "\\textcolor{##3b3e40}{#1}");
10167
- c("\\grayI", "\\textcolor{##21242c}{#1}");
10168
- c("\\kaBlue", "\\textcolor{##314453}{#1}");
10169
- c("\\kaGreen", "\\textcolor{##71B307}{#1}");
10108
+ m("\\bra@ket", la(!1));
10109
+ m("\\bra@set", la(!0));
10110
+ m("\\Braket", "\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");
10111
+ m("\\Set", "\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");
10112
+ m("\\set", "\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");
10113
+ m("\\angln", "{\\angl n}");
10114
+ m("\\blue", "\\textcolor{##6495ed}{#1}");
10115
+ m("\\orange", "\\textcolor{##ffa500}{#1}");
10116
+ m("\\pink", "\\textcolor{##ff00af}{#1}");
10117
+ m("\\red", "\\textcolor{##df0030}{#1}");
10118
+ m("\\green", "\\textcolor{##28ae7b}{#1}");
10119
+ m("\\gray", "\\textcolor{gray}{#1}");
10120
+ m("\\purple", "\\textcolor{##9d38bd}{#1}");
10121
+ m("\\blueA", "\\textcolor{##ccfaff}{#1}");
10122
+ m("\\blueB", "\\textcolor{##80f6ff}{#1}");
10123
+ m("\\blueC", "\\textcolor{##63d9ea}{#1}");
10124
+ m("\\blueD", "\\textcolor{##11accd}{#1}");
10125
+ m("\\blueE", "\\textcolor{##0c7f99}{#1}");
10126
+ m("\\tealA", "\\textcolor{##94fff5}{#1}");
10127
+ m("\\tealB", "\\textcolor{##26edd5}{#1}");
10128
+ m("\\tealC", "\\textcolor{##01d1c1}{#1}");
10129
+ m("\\tealD", "\\textcolor{##01a995}{#1}");
10130
+ m("\\tealE", "\\textcolor{##208170}{#1}");
10131
+ m("\\greenA", "\\textcolor{##b6ffb0}{#1}");
10132
+ m("\\greenB", "\\textcolor{##8af281}{#1}");
10133
+ m("\\greenC", "\\textcolor{##74cf70}{#1}");
10134
+ m("\\greenD", "\\textcolor{##1fab54}{#1}");
10135
+ m("\\greenE", "\\textcolor{##0d923f}{#1}");
10136
+ m("\\goldA", "\\textcolor{##ffd0a9}{#1}");
10137
+ m("\\goldB", "\\textcolor{##ffbb71}{#1}");
10138
+ m("\\goldC", "\\textcolor{##ff9c39}{#1}");
10139
+ m("\\goldD", "\\textcolor{##e07d10}{#1}");
10140
+ m("\\goldE", "\\textcolor{##a75a05}{#1}");
10141
+ m("\\redA", "\\textcolor{##fca9a9}{#1}");
10142
+ m("\\redB", "\\textcolor{##ff8482}{#1}");
10143
+ m("\\redC", "\\textcolor{##f9685d}{#1}");
10144
+ m("\\redD", "\\textcolor{##e84d39}{#1}");
10145
+ m("\\redE", "\\textcolor{##bc2612}{#1}");
10146
+ m("\\maroonA", "\\textcolor{##ffbde0}{#1}");
10147
+ m("\\maroonB", "\\textcolor{##ff92c6}{#1}");
10148
+ m("\\maroonC", "\\textcolor{##ed5fa6}{#1}");
10149
+ m("\\maroonD", "\\textcolor{##ca337c}{#1}");
10150
+ m("\\maroonE", "\\textcolor{##9e034e}{#1}");
10151
+ m("\\purpleA", "\\textcolor{##ddd7ff}{#1}");
10152
+ m("\\purpleB", "\\textcolor{##c6b9fc}{#1}");
10153
+ m("\\purpleC", "\\textcolor{##aa87ff}{#1}");
10154
+ m("\\purpleD", "\\textcolor{##7854ab}{#1}");
10155
+ m("\\purpleE", "\\textcolor{##543b78}{#1}");
10156
+ m("\\mintA", "\\textcolor{##f5f9e8}{#1}");
10157
+ m("\\mintB", "\\textcolor{##edf2df}{#1}");
10158
+ m("\\mintC", "\\textcolor{##e0e5cc}{#1}");
10159
+ m("\\grayA", "\\textcolor{##f6f7f7}{#1}");
10160
+ m("\\grayB", "\\textcolor{##f0f1f2}{#1}");
10161
+ m("\\grayC", "\\textcolor{##e3e5e6}{#1}");
10162
+ m("\\grayD", "\\textcolor{##d6d8da}{#1}");
10163
+ m("\\grayE", "\\textcolor{##babec2}{#1}");
10164
+ m("\\grayF", "\\textcolor{##888d93}{#1}");
10165
+ m("\\grayG", "\\textcolor{##626569}{#1}");
10166
+ m("\\grayH", "\\textcolor{##3b3e40}{#1}");
10167
+ m("\\grayI", "\\textcolor{##21242c}{#1}");
10168
+ m("\\kaBlue", "\\textcolor{##314453}{#1}");
10169
+ m("\\kaGreen", "\\textcolor{##71B307}{#1}");
10170
10170
  var oa = {
10171
10171
  "^": !0,
10172
10172
  // Parser.js
@@ -10360,16 +10360,16 @@ class c4 {
10360
10360
  if (n.numArgs) {
10361
10361
  s = s.slice();
10362
10362
  for (var h = s.length - 1; h >= 0; --h) {
10363
- var m = s[h];
10364
- if (m.text === "#") {
10363
+ var c = s[h];
10364
+ if (c.text === "#") {
10365
10365
  if (h === 0)
10366
- throw new M("Incomplete placeholder at end of macro body", m);
10367
- if (m = s[--h], m.text === "#")
10366
+ throw new M("Incomplete placeholder at end of macro body", c);
10367
+ if (c = s[--h], c.text === "#")
10368
10368
  s.splice(h + 1, 1);
10369
- else if (/^[1-9]$/.test(m.text))
10370
- s.splice(h, 2, ...o[+m.text - 1]);
10369
+ else if (/^[1-9]$/.test(c.text))
10370
+ s.splice(h, 2, ...o[+c.text - 1]);
10371
10371
  else
10372
- throw new M("Not a valid argument number", m);
10372
+ throw new M("Not a valid argument number", c);
10373
10373
  }
10374
10374
  }
10375
10375
  }
@@ -10443,11 +10443,11 @@ class c4 {
10443
10443
  if (n.indexOf("#") !== -1)
10444
10444
  for (var o = n.replace(/##/g, ""); o.indexOf("#" + (s + 1)) !== -1; )
10445
10445
  ++s;
10446
- for (var h = new mr(n, this.settings), m = [], p = h.lex(); p.text !== "EOF"; )
10447
- m.push(p), p = h.lex();
10448
- m.reverse();
10446
+ for (var h = new mr(n, this.settings), c = [], p = h.lex(); p.text !== "EOF"; )
10447
+ c.push(p), p = h.lex();
10448
+ c.reverse();
10449
10449
  var g = {
10450
- tokens: m,
10450
+ tokens: c,
10451
10451
  numArgs: s
10452
10452
  };
10453
10453
  return g;
@@ -10461,7 +10461,7 @@ class c4 {
10461
10461
  * `implicitCommands`.
10462
10462
  */
10463
10463
  isDefined(e) {
10464
- return this.macros.has(e) || L0.hasOwnProperty(e) || $.math.hasOwnProperty(e) || $.text.hasOwnProperty(e) || oa.hasOwnProperty(e);
10464
+ return this.macros.has(e) || L0.hasOwnProperty(e) || X.math.hasOwnProperty(e) || X.text.hasOwnProperty(e) || oa.hasOwnProperty(e);
10465
10465
  }
10466
10466
  /**
10467
10467
  * Determine whether a command is expandable.
@@ -11063,15 +11063,15 @@ class Fe {
11063
11063
  t = n, a = e[n].replaceWith;
11064
11064
  }
11065
11065
  if (t !== -1 && a) {
11066
- var s, o, h = e.slice(0, t), m = e.slice(t + 1);
11066
+ var s, o, h = e.slice(0, t), c = e.slice(t + 1);
11067
11067
  h.length === 1 && h[0].type === "ordgroup" ? s = h[0] : s = {
11068
11068
  type: "ordgroup",
11069
11069
  mode: this.mode,
11070
11070
  body: h
11071
- }, m.length === 1 && m[0].type === "ordgroup" ? o = m[0] : o = {
11071
+ }, c.length === 1 && c[0].type === "ordgroup" ? o = c[0] : o = {
11072
11072
  type: "ordgroup",
11073
11073
  mode: this.mode,
11074
- body: m
11074
+ body: c
11075
11075
  };
11076
11076
  var p;
11077
11077
  return a === "\\\\abovefrac" ? p = this.callFunction(a, [s, e[t], o], []) : p = this.callFunction(a, [s, o], []), [p];
@@ -11150,13 +11150,13 @@ class Fe {
11150
11150
  type: "textord",
11151
11151
  mode: this.mode,
11152
11152
  text: "\\prime"
11153
- }, m = [h];
11153
+ }, c = [h];
11154
11154
  for (this.consume(); this.fetch().text === "'"; )
11155
- m.push(h), this.consume();
11156
- this.fetch().text === "^" && m.push(this.handleSupSubscript("superscript")), a = {
11155
+ c.push(h), this.consume();
11156
+ this.fetch().text === "^" && c.push(this.handleSupSubscript("superscript")), a = {
11157
11157
  type: "ordgroup",
11158
11158
  mode: this.mode,
11159
- body: m
11159
+ body: c
11160
11160
  };
11161
11161
  } else if (Me[s.text]) {
11162
11162
  var p = fr.test(s.text), g = [];
@@ -11231,11 +11231,11 @@ class Fe {
11231
11231
  optArgs: []
11232
11232
  };
11233
11233
  for (var n = [], s = [], o = 0; o < a; o++) {
11234
- var h = t.argTypes && t.argTypes[o], m = o < t.numOptionalArgs;
11234
+ var h = t.argTypes && t.argTypes[o], c = o < t.numOptionalArgs;
11235
11235
  (t.primitive && h == null || // \sqrt expands into primitive if optional argument doesn't exist
11236
11236
  t.type === "sqrt" && o === 1 && s[0] == null) && (h = "primitive");
11237
- var p = this.parseGroupOfType("argument to '" + e + "'", h, m);
11238
- if (m)
11237
+ var p = this.parseGroupOfType("argument to '" + e + "'", h, c);
11238
+ if (c)
11239
11239
  s.push(p);
11240
11240
  else if (p != null)
11241
11241
  n.push(p);
@@ -11415,11 +11415,11 @@ class Fe {
11415
11415
  this.consume();
11416
11416
  var o = n === "{" ? "}" : "\\endgroup";
11417
11417
  this.gullet.beginGroup();
11418
- var h = this.parseExpression(!1, o), m = this.fetch();
11418
+ var h = this.parseExpression(!1, o), c = this.fetch();
11419
11419
  this.expect(o), this.gullet.endGroup(), s = {
11420
11420
  type: "ordgroup",
11421
11421
  mode: this.mode,
11422
- loc: u0.range(a, m),
11422
+ loc: u0.range(a, c),
11423
11423
  body: h,
11424
11424
  // A group formed by \begingroup...\endgroup is a semi-simple group
11425
11425
  // which doesn't affect spacing in math mode, i.e., is transparent.
@@ -11482,27 +11482,27 @@ class Fe {
11482
11482
  star: n
11483
11483
  };
11484
11484
  }
11485
- pr.hasOwnProperty(t[0]) && !$[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 = pr[t[0]] + t.slice(1));
11485
+ pr.hasOwnProperty(t[0]) && !X[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 = pr[t[0]] + t.slice(1));
11486
11486
  var s = o4.exec(t);
11487
11487
  s && (t = t.substring(0, s.index), t === "i" ? t = "ı" : t === "j" && (t = "ȷ"));
11488
11488
  var o;
11489
- if ($[this.mode][t]) {
11489
+ if (X[this.mode][t]) {
11490
11490
  this.settings.strict && this.mode === "math" && lt.indexOf(t) >= 0 && this.settings.reportNonstrict("unicodeTextInMathMode", 'Latin-1/Unicode text character "' + t[0] + '" used in math mode', e);
11491
- var h = $[this.mode][t].group, m = u0.range(e), p;
11491
+ var h = X[this.mode][t].group, c = u0.range(e), p;
11492
11492
  if (e1.hasOwnProperty(h)) {
11493
11493
  var g = h;
11494
11494
  p = {
11495
11495
  type: "atom",
11496
11496
  mode: this.mode,
11497
11497
  family: g,
11498
- loc: m,
11498
+ loc: c,
11499
11499
  text: t
11500
11500
  };
11501
11501
  } else
11502
11502
  p = {
11503
11503
  type: h,
11504
11504
  mode: this.mode,
11505
- loc: m,
11505
+ loc: c,
11506
11506
  text: t
11507
11507
  };
11508
11508
  o = p;
@@ -11651,7 +11651,7 @@ var d4 = function(e, t) {
11651
11651
  * extends internal font metrics object with a new object
11652
11652
  * each key in the new object represents a font name
11653
11653
  */
11654
- __setFontMetrics: $a,
11654
+ __setFontMetrics: Xa,
11655
11655
  /**
11656
11656
  * adds a new symbol to builtin symbols table
11657
11657
  */
@@ -11665,7 +11665,7 @@ var d4 = function(e, t) {
11665
11665
  /**
11666
11666
  * adds a new macro to builtin macro list
11667
11667
  */
11668
- __defineMacro: c,
11668
+ __defineMacro: m,
11669
11669
  /**
11670
11670
  * Expose the dom tree node types, which can be useful for type checking nodes.
11671
11671
  *
@@ -11732,28 +11732,26 @@ const x4 = fa.create({
11732
11732
  appendTransaction: (r, e, t) => {
11733
11733
  if (!r.some((o) => o.docChanged))
11734
11734
  return null;
11735
- const a = /(\[.*?\])|(\\[a-zA-Z]+(\{[^}]+\})*)/g;
11735
+ const a = /\$\$([\s\S]+?)\$\$|\$([^\$]+?)\$|\[([^\]]+?)\]|(\\[a-zA-Z]+(?:\{[^}]*\})*)/g;
11736
11736
  let n = t.tr, s = [];
11737
- return t.doc.descendants((o, h, m) => {
11738
- if (o.isText) {
11739
- const p = o.text;
11740
- if (p && m) {
11741
- if (m.type.name === "codeBlock" || m.type.name === "code" || o.marks.some((b) => b.type.name === "code") || m.type.name === "latex")
11742
- return;
11743
- let g;
11744
- for (; (g = a.exec(p)) !== null; ) {
11745
- const b = g[0], w = h + g.index, x = w + b.length;
11746
- s.push({ start: w, end: x, content: b });
11747
- }
11737
+ return t.doc.descendants((o, h, c) => {
11738
+ if (!o.isText) return;
11739
+ const p = o.text;
11740
+ if (!(!p || !c) && !(c.type.name === "codeBlock" || c.type.name === "code") && !o.marks.some((g) => g.type.name === "code") && c.type.name !== "latex" && (p.includes("$") || p.includes("[") || p.includes("\\"))) {
11741
+ let g;
11742
+ for (; (g = a.exec(p)) !== null; ) {
11743
+ const [b, w, x, z, T] = g, C = h + g.index, N = C + b.length;
11744
+ let I = w || x || z || T;
11745
+ const H = !!w || !!z;
11746
+ !H && !x && /\\(begin|end|left|right)/.test(I) || s.push({ start: C, end: N, content: I.trim(), isBlock: H });
11748
11747
  }
11749
11748
  }
11750
- }), s.length > 0 ? (s.reverse().forEach(({ start: o, end: h, content: m }) => {
11751
- const p = m.startsWith("[") && m.endsWith("]"), g = p ? m.slice(1, -1).trim() : m;
11749
+ }), s.length > 0 ? (s.reverse().forEach(({ start: o, end: h, content: c, isBlock: p }) => {
11752
11750
  n = n.replaceWith(
11753
11751
  o,
11754
11752
  h,
11755
11753
  t.schema.nodes.latex.create({
11756
- content: g,
11754
+ content: c,
11757
11755
  displayMode: p
11758
11756
  })
11759
11757
  );