@marimo-team/islands 0.25.3-dev317 → 0.25.3-dev319

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/dist/{ConnectedDataExplorerComponent-DieU6L4x.js → ConnectedDataExplorerComponent-DkXBUBf3.js} +54 -54
  2. package/dist/{ErrorBoundary-BzPZHD9j.js → ErrorBoundary-CGES_4N-.js} +12 -12
  3. package/dist/{ImageComparisonComponent-DgvSuY9B.js → ImageComparisonComponent-CoiwlCwG.js} +3 -3
  4. package/dist/{Plot-Bfd0pJea.js → Plot-BHJLG4xm.js} +2 -2
  5. package/dist/{abnfDiagram-VCTEODGH-LOVrjbdp.js → abnfDiagram-VCTEODGH-BPS-pTU2.js} +3 -3
  6. package/dist/{any-language-editor-DMC2JE9_.js → any-language-editor-DIS7IdV1.js} +7 -7
  7. package/dist/{architectureDiagram-5GKGNRK7-RZsm312h.js → architectureDiagram-5GKGNRK7-DB2MHOb7.js} +5 -5
  8. package/dist/{assertNever-efcK_v3t.js → assertNever-HbUt8DyH.js} +5 -5
  9. package/dist/assets/__vite-browser-external-Ci3vRqC9.js +1 -0
  10. package/dist/assets/worker-D9NGcZWK.js +171 -0
  11. package/dist/{blockDiagram-I7D4REHJ-B4cvqWJn.js → blockDiagram-I7D4REHJ-BoCyD5KO.js} +9 -9
  12. package/dist/{button-BuSV-mLI.js → button-qQhINE7z.js} +4 -4
  13. package/dist/{c4Diagram-7LVT6UL2-k-4SLDdM.js → c4Diagram-7LVT6UL2-DmcTtm4p.js} +7 -7
  14. package/dist/{capabilities-BiN90k7v.js → capabilities-DKqMqBzm.js} +1 -1
  15. package/dist/{channel-CuTaWMxU.js → channel-B9eaiezW.js} +1 -1
  16. package/dist/{chat-ui-DASKYW38.js → chat-ui-85k50jaj.js} +1847 -1959
  17. package/dist/{check-DCQEEsUn.js → check-CApDh1-n.js} +1 -1
  18. package/dist/{chunk-4HAMMTFA-Bk_5S_m9.js → chunk-4HAMMTFA-qKgadZwy.js} +5 -5
  19. package/dist/{chunk-75Z2AOVW-9jQIEAxd.js → chunk-75Z2AOVW-76L6My3P.js} +1 -1
  20. package/dist/{chunk-YOKDWASO-KxncHymC.js → chunk-7TTQLYRW-DBSfUUe5.js} +6178 -5535
  21. package/dist/{chunk-DU6HZSFF-B20LZ-hE.js → chunk-DU6HZSFF-4SDIhUTY.js} +1 -1
  22. package/dist/{chunk-F27PBJKO-YjRXlNkT.js → chunk-F27PBJKO-COH2t-FO.js} +1 -1
  23. package/dist/{chunk-GMAD6QVW-DokpSFdf.js → chunk-GMAD6QVW-BJGF8QZL.js} +3 -3
  24. package/dist/{chunk-GVQU2GXP-DGvySV5W.js → chunk-GVQU2GXP-BkolpSXU.js} +2 -2
  25. package/dist/{chunk-IMKFNOWR-B6agbLjo.js → chunk-IMKFNOWR-CjFCedjx.js} +5 -5
  26. package/dist/{chunk-L3NEJ4N5-D9-ekjZc.js → chunk-L3NEJ4N5-B-BFQp9t.js} +5 -5
  27. package/dist/{chunk-OSK3NFVY-p7meGiY-.js → chunk-OSK3NFVY-BzfZ4VBG.js} +6 -6
  28. package/dist/{chunk-P2QGCYS3-74rxrEwb.js → chunk-P2QGCYS3-DJApLVdt.js} +1 -1
  29. package/dist/{chunk-POPQ4Y6H-EOTPk9Tj.js → chunk-POPQ4Y6H-BFSZel4w.js} +1 -1
  30. package/dist/{chunk-PWAF6VOD-oT_Qd2OU.js → chunk-PWAF6VOD-CRu_RGP2.js} +1 -1
  31. package/dist/{chunk-SHT3W25Y-CfULafYG.js → chunk-SHT3W25Y-Dptltg0_.js} +7 -7
  32. package/dist/{chunk-SVP7TREG-DEOpPMJp.js → chunk-SVP7TREG-2jBN760m.js} +2 -2
  33. package/dist/{chunk-TICWLB2K-DaH-gkX5.js → chunk-TICWLB2K-CS8BE-b9.js} +5 -5
  34. package/dist/classDiagram-ZZMXUADV-HtQWp-Cm.js +30 -0
  35. package/dist/classDiagram-v2-VYDZK3BY-DA9LETN-.js +30 -0
  36. package/dist/{code-visibility-nvHsJTCm.js → code-visibility-D8Bz8Vzb.js} +6 -6
  37. package/dist/{common-DmnownXk.js → common-B2CnTgiZ.js} +1201 -995
  38. package/dist/{compiler-runtime-DNezxW8I.js → compiler-runtime-C5KHtL5D.js} +2 -2
  39. package/dist/{config-CL7mwGLX.js → config-B171m9zn.js} +4 -4
  40. package/dist/{copy-icon-oHFcxX_y.js → copy-icon-k2_Fx5Qv.js} +6 -6
  41. package/dist/{createReducer-DHfURLCk.js → createReducer-BPPI11pP.js} +3 -3
  42. package/dist/{cynefinDiagram-5FMLGOSQ-DwGYhKu0.js → cynefinDiagram-5FMLGOSQ-eyocrg_E.js} +3 -3
  43. package/dist/{dagre-GXQ25YYZ-DfMaWJOV.js → dagre-GXQ25YYZ-Dtm96Nvx.js} +10 -10
  44. package/dist/{data-grid-overlay-editor-eXoZLGys.js → data-grid-overlay-editor-DEQv4695.js} +7 -7
  45. package/dist/{data-grid-types-CSElxhxo.js → data-grid-types-DIX_pCco.js} +1 -1
  46. package/dist/{diagram-S7CK7UJ4-Bw_L87GZ.js → diagram-S7CK7UJ4-C09TrdNO.js} +4 -4
  47. package/dist/{diagram-UQ7AKVKN-nsrs3Fbz.js → diagram-UQ7AKVKN-vHUsSML6.js} +3 -3
  48. package/dist/{diagram-VSXAHHWV-CodTjaL3.js → diagram-VSXAHHWV-LXjisZoM.js} +2 -2
  49. package/dist/{diagram-VX7I27RA-7ST9lEqP.js → diagram-VX7I27RA-Ch4mRgz8.js} +5 -5
  50. package/dist/{diagram-Z3DM3KII-BnGte-HX.js → diagram-Z3DM3KII-DyFQNdAL.js} +3 -3
  51. package/dist/{dialog-BIUdMLIS.js → dialog-C2Muh059.js} +6 -6
  52. package/dist/{dist-Du4PgaYp.js → dist-CiSkXlAO.js} +2 -2
  53. package/dist/{dropdown-menu-CAejOChE.js → dropdown-menu-BGbNnuFq.js} +141 -141
  54. package/dist/{ebnfDiagram-PWID7BFC-zaKyJ1YL.js → ebnfDiagram-PWID7BFC-N3SvlrCs.js} +3 -3
  55. package/dist/{erDiagram-RLTQ6QDP-Cx7g95FZ.js → erDiagram-RLTQ6QDP-RR2q2xtd.js} +12 -12
  56. package/dist/{error-banner-DkQNU4bn.js → error-banner-3_4Lc93Y.js} +6 -6
  57. package/dist/{error-entries-kb4H6PAT.js → error-entries-BhNAZWU1.js} +13 -13
  58. package/dist/{esm-BUoz9Vvv.js → esm-DQtHTnHn.js} +638 -658
  59. package/dist/{esm-BvhFNYzM.js → esm-Dc_RPXvZ.js} +4 -4
  60. package/dist/{feedback-button-DDdckIvG.js → feedback-button-Dk57Qg8m.js} +12 -12
  61. package/dist/flowDiagram-HODETNUW-nxd7WhlW.js +15 -0
  62. package/dist/{formats-qhBmYb0l.js → formats-aUcw6MrS.js} +6 -6
  63. package/dist/{ganttDiagram-EL5Y4UJY-DyUab7aO.js → ganttDiagram-EL5Y4UJY-YzTghq1V.js} +4 -4
  64. package/dist/{gitGraphDiagram-WWUBYQGX-BPeDECwG.js → gitGraphDiagram-WWUBYQGX-CK66dT35.js} +2 -2
  65. package/dist/{glide-data-editor-keVyefZP.js → glide-data-editor-BfWmi3id.js} +66 -66
  66. package/dist/{glide-utils-C4TKZeBA.js → glide-utils-D4UP8TGv.js} +4 -4
  67. package/dist/{globals-UY7m7ERN.js → globals-DgAztcbX.js} +3 -3
  68. package/dist/highlighted-body-JLMTFACH-yt0ZZn80.js +42 -0
  69. package/dist/{html-to-image-DR8VPB7E.js → html-to-image-DOOtP-4-.js} +41 -39
  70. package/dist/{infoDiagram-27XIBGKW-BTM_NXsn.js → infoDiagram-27XIBGKW-CUYXQKGf.js} +2 -2
  71. package/dist/{ishikawaDiagram-5VMMS53U-K0FZrlvv.js → ishikawaDiagram-5VMMS53U-v6gsCrlK.js} +3 -3
  72. package/dist/{journeyDiagram-3NMN7TZE-D7hcb3Vx.js → journeyDiagram-3NMN7TZE-CYXsL3IE.js} +2 -2
  73. package/dist/{jsx-runtime-6ZiU38At.js → jsx-runtime-D8btoEHk.js} +1 -1
  74. package/dist/{kanban-definition-UXKFOSKX-ftznOyrz.js → kanban-definition-UXKFOSKX-z236-0Ok.js} +9 -9
  75. package/dist/{katex-BmPSeP5t.js → katex-wAapZGrX.js} +782 -704
  76. package/dist/linear-TJTTbHM9.js +203 -0
  77. package/dist/{loader-BIlwkY0d.js → loader-Bin_dutt.js} +12 -12
  78. package/dist/main.js +164 -131
  79. package/dist/{mermaid-CNgH43ED.js → mermaid-C7lQ_2LJ.js} +56 -56
  80. package/dist/mermaid-WFAXDIZX-DHB2z13u.js +1 -0
  81. package/dist/{mhchem-CjWbCsjZ.js → mhchem-CX8M7Ktl.js} +1 -1
  82. package/dist/{mindmap-definition-YA3MSWOX-CmzbxKfM.js → mindmap-definition-YA3MSWOX--pZF7OCY.js} +11 -11
  83. package/dist/{number-overlay-editor-Dryq4VDA.js → number-overlay-editor-BjyH3Wu_.js} +5 -5
  84. package/dist/{pegDiagram-XKGWAZYB-DfTAWfGE.js → pegDiagram-XKGWAZYB-Bgw0Zz_6.js} +3 -3
  85. package/dist/{pencil-BUfnNZAE.js → pencil-RXFY-Ek8.js} +1 -1
  86. package/dist/{pieDiagram-E7YTZNPT-_kGQstZj.js → pieDiagram-E7YTZNPT-B27tDYvK.js} +3 -3
  87. package/dist/precisionRound-DMIVQrt2.js +97 -0
  88. package/dist/{process-output-BDMtqL6K.js → process-output-CiX_Dl4L.js} +4 -4
  89. package/dist/{quadrantDiagram-AXDQQJYC-DLJJzlPi.js → quadrantDiagram-AXDQQJYC-nGFBFig7.js} +2 -2
  90. package/dist/{railroadDiagram-O6MQD6OU-D41WmIff.js → railroadDiagram-O6MQD6OU-CBjPhGpj.js} +3 -3
  91. package/dist/{react-CHbZqgBF.js → react-Bgs_wQh3.js} +2 -2
  92. package/dist/{react-dom-DhWGW7e0.js → react-dom-DdqGVp5N.js} +3 -3
  93. package/dist/{react-vega-DVr24mNk.js → react-vega-CGgQEf0O.js} +14154 -17507
  94. package/dist/{requirementDiagram-BXWQKSXE-Bh53ZI3I.js → requirementDiagram-BXWQKSXE-DDDrLEw9.js} +11 -11
  95. package/dist/{reveal-component-BIBrITpY.js → reveal-component-fHqn0wUO.js} +14 -14
  96. package/dist/{sankeyDiagram-P5KCCOFB-Bd7wvmbF.js → sankeyDiagram-P5KCCOFB-CrOfyc2n.js} +1 -1
  97. package/dist/{select-XmXyen3r.js → select-Cv6lR39D.js} +16 -16
  98. package/dist/{sequenceDiagram-WJ2MYXX4-DBX27dNm.js → sequenceDiagram-WJ2MYXX4-DQPaMygQ.js} +4 -4
  99. package/dist/{spec-CSS9g9Su.js → spec-BoCLWa-M.js} +4 -4
  100. package/dist/{stateDiagram-D77RDMKH-CSYz2IZi.js → stateDiagram-D77RDMKH-BDoDVVnq.js} +13 -13
  101. package/dist/stateDiagram-v2-MP3YSRHH-KNko46uJ.js +30 -0
  102. package/dist/{static-state-Dtocd9UO.js → static-state-DgdOadIH.js} +2 -2
  103. package/dist/style.css +1 -1
  104. package/dist/{swimlanes-42K2YHIH-D59N0ktA.js → swimlanes-42K2YHIH-boFjOuiI.js} +10 -10
  105. package/dist/swimlanesDiagram-VR7AAH4N-BC4FLNwY.js +30 -0
  106. package/dist/{swiper-component-FBPvIqLf.js → swiper-component-DTdNB9wg.js} +5 -5
  107. package/dist/{time-Cc-G3e31.js → time-BlOl70lB.js} +18 -18
  108. package/dist/{timeline-definition-24CTP7MA-C_xIIZDM.js → timeline-definition-24CTP7MA-CLVPYA-v.js} +3 -3
  109. package/dist/{toast-xEFvuGpt.js → toast-CUuX7uXg.js} +9 -9
  110. package/dist/{tooltip-BekOCQ3v.js → tooltip-DBv8QUvS.js} +8 -8
  111. package/dist/{use-restore-focus-DyrKLdSB.js → use-restore-focus-BxJh5Zfa.js} +1756 -1730
  112. package/dist/{use-vega-container-remeasure-DFBTESqc.js → use-vega-container-remeasure-BrUpWQfF.js} +2 -2
  113. package/dist/{useAsyncData-DMBliR6D.js → useAsyncData-P5-Oovhq.js} +3 -3
  114. package/dist/{useDateFormatter-Brx-S2sN.js → useDateFormatter-2k4mHRBq.js} +4 -4
  115. package/dist/{useDeepCompareMemoize-CxywEb3a.js → useDeepCompareMemoize-Cb2GRQIS.js} +2 -2
  116. package/dist/{useEvent-xDnF2X04.js → useEvent-BoN7U38T.js} +2 -2
  117. package/dist/{useIframeCapabilities--px_wpZL.js → useIframeCapabilities-HTZiVlGV.js} +2 -2
  118. package/dist/{useLifecycle-BMlFy2yY.js → useLifecycle-B2fV3c8N.js} +5 -5
  119. package/dist/{vega-component-CeN8zClP.js → vega-component-do3stf0K.js} +16 -16
  120. package/dist/{vega-embed-container-DAT8OHp9.js → vega-embed-container-DgpACsCB.js} +6 -6
  121. package/dist/vega-loader.browser-Co9gYE8Z.js +1273 -0
  122. package/dist/{vennDiagram-4TSXK5OY-DlOf0Mjs.js → vennDiagram-4TSXK5OY-BLq7sNjb.js} +3 -3
  123. package/dist/{wardleyDiagram-VM6X3IG4-zD_2guVe.js → wardleyDiagram-VM6X3IG4-oyJEWWtb.js} +3 -3
  124. package/dist/{xychartDiagram-S5SC5T6Z-CA0Dy1ZM.js → xychartDiagram-S5SC5T6Z-DMjWgQPm.js} +6 -6
  125. package/package.json +22 -22
  126. package/src/css/katex.min.css +1 -1
  127. package/src/plugins/impl/data-explorer/functions/types.ts +1 -5
  128. package/src/plugins/layout/TexPlugin.tsx +0 -1
  129. package/dist/assets/__vite-browser-external-BSp9tJ_k.js +0 -1
  130. package/dist/assets/worker-BdfPA0g5.js +0 -171
  131. package/dist/classDiagram-ZZMXUADV-C0CyiWQ7.js +0 -30
  132. package/dist/classDiagram-v2-VYDZK3BY-xfIc9e2Y.js +0 -30
  133. package/dist/flowDiagram-HODETNUW-C7nIqaHP.js +0 -15
  134. package/dist/highlighted-body-KPVGNVTW-XbLtWlYz.js +0 -38
  135. package/dist/linear-BhKepphY.js +0 -251
  136. package/dist/mermaid-HWGCJPDP-_lKUMvTM.js +0 -1
  137. package/dist/precisionRound-DhAzeRcm.js +0 -49
  138. package/dist/stateDiagram-v2-MP3YSRHH-DVLvtOqn.js +0 -30
  139. package/dist/swimlanesDiagram-VR7AAH4N-CRgpmVSW.js +0 -30
  140. package/dist/vega-loader.browser-Cnf7IHA8.js +0 -927
@@ -1,20 +1,20 @@
1
1
  import { r as e } from "./rolldown-runtime-BPCzCO3I.js";
2
- //#region ../node_modules/.pnpm/katex@0.18.7/node_modules/katex/dist/katex.mjs
2
+ //#region ../node_modules/.pnpm/katex@0.19.0/node_modules/katex/dist/katex.mjs
3
3
  var t = /* @__PURE__ */ e({
4
4
  ParseError: () => n,
5
5
  SETTINGS_SCHEMA: () => f,
6
6
  __defineFunction: () => J,
7
7
  __defineMacro: () => $,
8
8
  __defineSymbol: () => M,
9
- __domTree: () => ka,
10
- __parse: () => wa,
11
- __renderToDomTree: () => Ea,
12
- __renderToHTMLTree: () => Da,
9
+ __domTree: () => Aa,
10
+ __parse: () => Ta,
11
+ __renderToDomTree: () => Da,
12
+ __renderToHTMLTree: () => Oa,
13
13
  __setFontMetrics: () => qe,
14
- default: () => Aa,
15
- render: () => Sa,
16
- renderToString: () => Ca,
17
- version: () => Oa
14
+ default: () => ja,
15
+ render: () => Ca,
16
+ renderToString: () => wa,
17
+ version: () => ka
18
18
  }), n = class e extends Error {
19
19
  constructor(t, n) {
20
20
  var r = "KaTeX parse error: " + t, i, a, o = n && n.loc;
@@ -159,22 +159,6 @@ var g = class {
159
159
  n && h(this, t, e, n);
160
160
  }
161
161
  }
162
- reportNonstrict(e, t, r) {
163
- var i = this.strict;
164
- if (typeof i == "function" && (i = i(e, t, r)), i && i !== "ignore") {
165
- if (i === !0 || i === "error") throw new n("LaTeX-incompatible input and strict mode is set to 'error': " + (t + " [" + e + "]"), r);
166
- i === "warn" ? typeof console < "u" && console.warn("LaTeX-incompatible input and strict mode is set to 'warn': " + (t + " [" + e + "]")) : typeof console < "u" && console.warn("LaTeX-incompatible input and strict mode is set to " + ("unrecognized '" + i + "': " + t + " [" + e + "]"));
167
- }
168
- }
169
- useStrictBehavior(e, t, n) {
170
- var r = this.strict;
171
- if (typeof r == "function") try {
172
- r = r(e, t, n);
173
- } catch {
174
- r = "error";
175
- }
176
- return !r || r === "ignore" ? !1 : r === !0 || r === "error" ? !0 : r === "warn" ? (typeof console < "u" && console.warn("LaTeX-incompatible input and strict mode is set to 'warn': " + (t + " [" + e + "]")), !1) : (typeof console < "u" && console.warn("LaTeX-incompatible input and strict mode is set to " + ("unrecognized '" + r + "': " + t + " [" + e + "]")), !1);
177
- }
178
162
  isTrusted(e) {
179
163
  if ("url" in e && e.url && !e.protocol) {
180
164
  var t = d(e.url);
@@ -15366,7 +15350,30 @@ var vt = {
15366
15350
  if (i === 120485 || i === 120486) return At[0];
15367
15351
  if (120486 < i && i < 120782) return St;
15368
15352
  throw new n("Unsupported character: " + e);
15369
- }, Nt = function(e, t, n) {
15353
+ };
15354
+ function Nt(e) {
15355
+ var t = e.strict, r = e.errorCode, i = e.errorMsg, a = e.token, o = e.report, s = t;
15356
+ if (typeof t == "function") {
15357
+ if (o) s = t(r, i, a);
15358
+ else try {
15359
+ s = t(r, i, a);
15360
+ } catch {
15361
+ s = "error";
15362
+ }
15363
+ }
15364
+ switch (s) {
15365
+ case !0:
15366
+ case "error":
15367
+ if (o) throw new n("LaTeX-incompatible input and strict mode is set to 'error': " + (i + " [" + r + "]"), a);
15368
+ return !0;
15369
+ case !1:
15370
+ case "ignore":
15371
+ if (!o) return !1;
15372
+ break;
15373
+ default: if (typeof console < "u" && console.warn("LaTeX-incompatible input and strict mode is set to 'warn': " + (i + " [" + r + "]")), !o) return !1;
15374
+ }
15375
+ }
15376
+ var Pt = function(e, t, n) {
15370
15377
  if (j[n][e]) {
15371
15378
  var r = j[n][e].replace;
15372
15379
  r && (e = r);
@@ -15375,63 +15382,65 @@ var vt = {
15375
15382
  value: e,
15376
15383
  metrics: Je(e, t, n)
15377
15384
  };
15378
- }, Pt = function(e, t, n, r, i) {
15379
- var a = Nt(e, t, n), o = a.metrics;
15385
+ }, Ft = function(e, t, n, r, i) {
15386
+ var a = Pt(e, t, n), o = a.metrics;
15380
15387
  e = a.value;
15381
15388
  var s;
15382
15389
  if (o) {
15383
15390
  var c = o.italic;
15384
15391
  (n === "text" || r && r.font === "mathit") && (c = 0), s = new Le(e, o.height, o.depth, c, o.skew, o.width, i);
15385
- } else typeof console < "u" && console.warn("No character metrics " + ("for '" + e + "' in style '" + t + "' and mode '" + n + "'")), s = new Le(e, 0, 0, 0, 0, 0, i);
15386
- if (r) {
15387
- s.maxFontSize = r.sizeMultiplier, r.style.isTight() && s.classes.push("mtight");
15388
- var l = r.getColor();
15389
- l && (s.style.color = l);
15390
- }
15391
- return s;
15392
- }, Ft = function(e, t, n, r) {
15393
- return r === void 0 && (r = []), n.font === "boldsymbol" && Nt(e, "Main-Bold", t).metrics ? Pt(e, "Main-Bold", t, n, r.concat(["mathbf"])) : e === "\\" || j[t][e].font === "main" ? Pt(e, "Main-Regular", t, n, r) : Pt(e, "AMS-Regular", t, n, r.concat(["amsrm"]));
15394
- }, It = function(e, t, n) {
15395
- return n !== "textord" && Nt(e, "Math-BoldItalic", t).metrics ? {
15392
+ } else Nt({
15393
+ strict: r.strict,
15394
+ errorCode: "symbolNotInFont",
15395
+ errorMsg: "No character metrics for '" + e + "' in style '" + t + "' and mode '" + n + "'",
15396
+ report: !0
15397
+ }), s = new Le(e, 0, 0, 0, 0, 0, i);
15398
+ s.maxFontSize = r.sizeMultiplier, r.style.isTight() && s.classes.push("mtight");
15399
+ var l = r.getColor();
15400
+ return l && (s.style.color = l), s;
15401
+ }, It = function(e, t, n, r) {
15402
+ return r === void 0 && (r = []), n.font === "boldsymbol" && Pt(e, "Main-Bold", t).metrics ? Ft(e, "Main-Bold", t, n, r.concat(["mathbf"])) : e === "\\" || j[t][e].font === "main" ? Ft(e, "Main-Regular", t, n, r) : Ft(e, "AMS-Regular", t, n, r.concat(["amsrm"]));
15403
+ }, Lt = function(e, t, n) {
15404
+ return n !== "textord" && Pt(e, "Math-BoldItalic", t).metrics ? {
15396
15405
  fontName: "Math-BoldItalic",
15397
15406
  fontClass: "boldsymbol"
15398
15407
  } : {
15399
15408
  fontName: "Main-Bold",
15400
15409
  fontClass: "mathbf"
15401
15410
  };
15402
- }, Lt = function(e, t) {
15411
+ }, Rt = function(e, t) {
15403
15412
  var n = e.type === "mathord" ? "mathord" : "textord", r = e.mode, i = e.text, a = ["mord"], o = t.font, s = t.fontFamily, c = t.fontWeight, l = t.fontShape, u = r === "math" || r === "text" && !!o, d = u ? o : s, f = "", p = "";
15404
15413
  if (i.charCodeAt(0) === 55349) {
15405
15414
  var m = Mt(i);
15406
15415
  f = m.font, p = m[r + "Class"];
15407
15416
  }
15408
- if (f) return Pt(i, f, r, t, a.concat(p));
15417
+ if (f) return Ft(i, f, r, t, a.concat(p));
15409
15418
  if (d) {
15410
15419
  var h, g;
15411
15420
  if (d === "boldsymbol") {
15412
- var _ = It(i, r, n);
15421
+ var _ = Lt(i, r, n);
15413
15422
  h = _.fontName, g = [_.fontClass];
15414
- } else u ? (h = Yt[o].fontName, g = [o]) : (h = Jt(s, c, l), g = [
15423
+ } else u ? (h = Xt[o].fontName, g = [o]) : (h = Yt(s, c, l), g = [
15415
15424
  s,
15416
15425
  c,
15417
15426
  l
15418
15427
  ]);
15419
- if (Nt(i, h, r).metrics) return Pt(i, h, r, t, a.concat(g));
15428
+ if (Pt(i, h, r).metrics) return Ft(i, h, r, t, a.concat(g));
15420
15429
  if (Object.prototype.hasOwnProperty.call(nt, i) && h.slice(0, 10) === "Typewriter") {
15421
- for (var v = [], y = 0; y < i.length; y++) v.push(Pt(i[y], h, r, t, a.concat(g)));
15422
- return Wt(v);
15430
+ for (var v = [], y = 0; y < i.length; y++) v.push(Ft(i[y], h, r, t, a.concat(g)));
15431
+ return Gt(v);
15423
15432
  }
15424
15433
  }
15425
- if (n === "mathord") return Pt(i, "Math-Italic", r, t, a.concat(["mathnormal"]));
15434
+ if (n === "mathord") return Ft(i, "Math-Italic", r, t, a.concat(["mathnormal"]));
15426
15435
  if (n === "textord") {
15427
15436
  var b = j[r][i] && j[r][i].font;
15428
- if (b === "ams") return Pt(i, Jt("amsrm", c, l), r, t, a.concat("amsrm", c, l));
15429
- if (b === "main" || !b) return Pt(i, Jt("textrm", c, l), r, t, a.concat(c, l));
15430
- var x = Jt(b, c, l);
15431
- return Pt(i, x, r, t, a.concat(x, c, l));
15437
+ if (b === "ams") return Ft(i, Yt("amsrm", c, l), r, t, a.concat("amsrm", c, l));
15438
+ if (b === "main" || !b) return Ft(i, Yt("textrm", c, l), r, t, a.concat(c, l));
15439
+ var x = Yt(b, c, l);
15440
+ return Ft(i, x, r, t, a.concat(x, c, l));
15432
15441
  }
15433
15442
  throw Error("unexpected type: " + n + " in makeOrd");
15434
- }, Rt = (e, t) => {
15443
+ }, zt = (e, t) => {
15435
15444
  if (De(e.classes) !== De(t.classes) || e.skew !== t.skew || e.maxFontSize !== t.maxFontSize || e.italic !== 0 && e.hasClass("mathnormal")) return !1;
15436
15445
  if (e.classes.length === 1) {
15437
15446
  var n = e.classes[0];
@@ -15440,13 +15449,13 @@ var vt = {
15440
15449
  for (var r of Object.keys(e.style)) if (e.style[r] !== t.style[r]) return !1;
15441
15450
  for (var i of Object.keys(t.style)) if (e.style[i] !== t.style[i]) return !1;
15442
15451
  return !0;
15443
- }, zt = (e) => {
15452
+ }, Bt = (e) => {
15444
15453
  for (var t = 0; t < e.length - 1; t++) {
15445
15454
  var n = e[t], r = e[t + 1];
15446
- n instanceof Le && r instanceof Le && Rt(n, r) && (n.text += r.text, n.height = Math.max(n.height, r.height), n.depth = Math.max(n.depth, r.depth), n.italic = r.italic, e.splice(t + 1, 1), t--);
15455
+ n instanceof Le && r instanceof Le && zt(n, r) && (n.text += r.text, n.height = Math.max(n.height, r.height), n.depth = Math.max(n.depth, r.depth), n.italic = r.italic, e.splice(t + 1, 1), t--);
15447
15456
  }
15448
15457
  return e;
15449
- }, Bt = function(e) {
15458
+ }, Vt = function(e) {
15450
15459
  for (var t = 0, n = 0, r = 0, i = 0; i < e.children.length; i++) {
15451
15460
  var a = e.children[i];
15452
15461
  a.height > t && (t = a.height), a.depth > n && (n = a.depth), a.maxFontSize > r && (r = a.maxFontSize);
@@ -15454,19 +15463,19 @@ var vt = {
15454
15463
  e.height = t, e.depth = n, e.maxFontSize = r;
15455
15464
  }, G = function(e, t, n, r) {
15456
15465
  var i = new Ne(e, t, n, r);
15457
- return Bt(i), i;
15458
- }, Vt = (e, t, n, r) => new Ne(e, t, n, r), Ht = function(e, t, n) {
15466
+ return Vt(i), i;
15467
+ }, Ht = (e, t, n, r) => new Ne(e, t, n, r), Ut = function(e, t, n) {
15459
15468
  var r = G([e], [], t);
15460
15469
  return r.height = Math.max(n || t.fontMetrics().defaultRuleThickness, t.minRuleThickness), r.style.borderBottomWidth = A(r.height), r.maxFontSize = 1, r;
15461
- }, Ut = function(e, t, n, r) {
15470
+ }, Wt = function(e, t, n, r) {
15462
15471
  var i = new Pe(e, t, n, r);
15463
- return Bt(i), i;
15464
- }, Wt = function(e) {
15472
+ return Vt(i), i;
15473
+ }, Gt = function(e) {
15465
15474
  var t = new Ce(e);
15466
- return Bt(t), t;
15467
- }, Gt = function(e, t) {
15475
+ return Vt(t), t;
15476
+ }, Kt = function(e, t) {
15468
15477
  return e instanceof Ce ? G([], [e], t) : e;
15469
- }, Kt = function(e) {
15478
+ }, qt = function(e) {
15470
15479
  if (e.positionType === "individualShift") {
15471
15480
  for (var t = e.children, n = [t[0]], r = -t[0].shift - t[0].elem.depth, i = r, a = 1; a < t.length; a++) {
15472
15481
  var o = -t[a].shift - i - t[a].elem.depth, s = o - (t[a - 1].elem.height + t[a - 1].elem.depth);
@@ -15500,7 +15509,7 @@ var vt = {
15500
15509
  depth: c
15501
15510
  };
15502
15511
  }, K = function(e, t) {
15503
- for (var n = Kt(e), r = n.children, i = n.depth, a = 0, o = 0; o < r.length; o++) {
15512
+ for (var n = qt(e), r = n.children, i = n.depth, a = 0, o = 0; o < r.length; o++) {
15504
15513
  var s = r[o];
15505
15514
  if (s.type === "elem") {
15506
15515
  var c = s.elem;
@@ -15528,10 +15537,10 @@ var vt = {
15528
15537
  } else x = [G(["vlist-r"], [b])];
15529
15538
  var C = G(["vlist-t"], x);
15530
15539
  return x.length === 2 && C.classes.push("vlist-t2"), C.height = f, C.depth = -d, C;
15531
- }, qt = (e, t) => {
15540
+ }, Jt = (e, t) => {
15532
15541
  var n = G(["mspace"], [], t), r = k(e, t);
15533
15542
  return n.style.marginRight = A(r), n;
15534
- }, Jt = (e, t, n) => {
15543
+ }, Yt = (e, t, n) => {
15535
15544
  var r, i;
15536
15545
  switch (e) {
15537
15546
  case "amsrm":
@@ -15549,7 +15558,7 @@ var vt = {
15549
15558
  default: r = e;
15550
15559
  }
15551
15560
  return i = t === "textbf" && n === "textit" ? "BoldItalic" : t === "textbf" ? "Bold" : n === "textit" ? "Italic" : "Regular", r + "-" + i;
15552
- }, Yt = {
15561
+ }, Xt = {
15553
15562
  mathbf: {
15554
15563
  variant: "bold",
15555
15564
  fontName: "Main-Bold"
@@ -15598,7 +15607,7 @@ var vt = {
15598
15607
  variant: "monospace",
15599
15608
  fontName: "Typewriter-Regular"
15600
15609
  }
15601
- }, Xt = {
15610
+ }, Zt = {
15602
15611
  vec: [
15603
15612
  "vec",
15604
15613
  .471,
@@ -15624,8 +15633,8 @@ var vt = {
15624
15633
  1.98,
15625
15634
  .659
15626
15635
  ]
15627
- }, Zt = function(e, t) {
15628
- var n = Xt[e], r = n[0], i = n[1], a = n[2], o = Vt(["katex-overlay"], [new Re([new ze(r)], {
15636
+ }, Qt = function(e, t) {
15637
+ var n = Zt[e], r = n[0], i = n[1], a = n[2], o = Ht(["katex-overlay"], [new Re([new ze(r)], {
15629
15638
  width: A(i),
15630
15639
  height: A(a),
15631
15640
  style: "width:" + A(i),
@@ -15636,48 +15645,48 @@ var vt = {
15636
15645
  }, q = {
15637
15646
  number: 3,
15638
15647
  unit: "mu"
15639
- }, Qt = {
15648
+ }, $t = {
15640
15649
  number: 4,
15641
15650
  unit: "mu"
15642
- }, $t = {
15651
+ }, en = {
15643
15652
  number: 5,
15644
15653
  unit: "mu"
15645
- }, en = {
15654
+ }, tn = {
15646
15655
  mord: {
15647
15656
  mop: q,
15648
- mbin: Qt,
15649
- mrel: $t,
15657
+ mbin: $t,
15658
+ mrel: en,
15650
15659
  minner: q
15651
15660
  },
15652
15661
  mop: {
15653
15662
  mord: q,
15654
15663
  mop: q,
15655
- mrel: $t,
15664
+ mrel: en,
15656
15665
  minner: q
15657
15666
  },
15658
15667
  mbin: {
15659
- mord: Qt,
15660
- mop: Qt,
15661
- mopen: Qt,
15662
- minner: Qt
15663
- },
15664
- mrel: {
15665
15668
  mord: $t,
15666
15669
  mop: $t,
15667
15670
  mopen: $t,
15668
15671
  minner: $t
15669
15672
  },
15673
+ mrel: {
15674
+ mord: en,
15675
+ mop: en,
15676
+ mopen: en,
15677
+ minner: en
15678
+ },
15670
15679
  mopen: {},
15671
15680
  mclose: {
15672
15681
  mop: q,
15673
- mbin: Qt,
15674
- mrel: $t,
15682
+ mbin: $t,
15683
+ mrel: en,
15675
15684
  minner: q
15676
15685
  },
15677
15686
  mpunct: {
15678
15687
  mord: q,
15679
15688
  mop: q,
15680
- mrel: $t,
15689
+ mrel: en,
15681
15690
  mopen: q,
15682
15691
  mclose: q,
15683
15692
  mpunct: q,
@@ -15686,13 +15695,13 @@ var vt = {
15686
15695
  minner: {
15687
15696
  mord: q,
15688
15697
  mop: q,
15689
- mbin: Qt,
15690
- mrel: $t,
15698
+ mbin: $t,
15699
+ mrel: en,
15691
15700
  mopen: q,
15692
15701
  mpunct: q,
15693
15702
  minner: q
15694
15703
  }
15695
- }, tn = {
15704
+ }, nn = {
15696
15705
  mord: { mop: q },
15697
15706
  mop: {
15698
15707
  mord: q,
@@ -15704,37 +15713,37 @@ var vt = {
15704
15713
  mclose: { mop: q },
15705
15714
  mpunct: {},
15706
15715
  minner: { mop: q }
15707
- }, nn = {}, rn = {}, an = {};
15716
+ }, rn = {}, an = {}, on = {};
15708
15717
  function J(e) {
15709
- for (var t = e.type, n = e.names, r = e.htmlBuilder, i = e.mathmlBuilder, a = 0; a < n.length; ++a) nn[n[a]] = e;
15710
- t && (r && (rn[t] = r), i && (an[t] = i));
15718
+ for (var t = e.type, n = e.names, r = e.htmlBuilder, i = e.mathmlBuilder, a = 0; a < n.length; ++a) rn[n[a]] = e;
15719
+ t && (r && (an[t] = r), i && (on[t] = i));
15711
15720
  }
15712
- function on(e) {
15721
+ function sn(e) {
15713
15722
  var t = e.type, n = e.htmlBuilder, r = e.mathmlBuilder;
15714
- n && (rn[t] = n), r && (an[t] = r);
15723
+ n && (an[t] = n), r && (on[t] = r);
15715
15724
  }
15716
- var sn = function(e) {
15725
+ var cn = function(e) {
15717
15726
  return e.type === "ordgroup" && e.body.length === 1 ? e.body[0] : e;
15718
- }, cn = function(e) {
15727
+ }, ln = function(e) {
15719
15728
  return e.type === "ordgroup" ? e.body : [e];
15720
- }, ln = /* @__PURE__ */ new Set([
15729
+ }, un = /* @__PURE__ */ new Set([
15721
15730
  "leftmost",
15722
15731
  "mbin",
15723
15732
  "mopen",
15724
15733
  "mrel",
15725
15734
  "mop",
15726
15735
  "mpunct"
15727
- ]), un = /* @__PURE__ */ new Set([
15736
+ ]), dn = /* @__PURE__ */ new Set([
15728
15737
  "rightmost",
15729
15738
  "mrel",
15730
15739
  "mclose",
15731
15740
  "mpunct"
15732
- ]), dn = {
15741
+ ]), fn = {
15733
15742
  display: D.DISPLAY,
15734
15743
  text: D.TEXT,
15735
15744
  script: D.SCRIPT,
15736
15745
  scriptscript: D.SCRIPTSCRIPT
15737
- }, fn = {
15746
+ }, pn = {
15738
15747
  mord: "mord",
15739
15748
  mop: "mop",
15740
15749
  mbin: "mbin",
@@ -15743,7 +15752,7 @@ var sn = function(e) {
15743
15752
  mclose: "mclose",
15744
15753
  mpunct: "mpunct",
15745
15754
  minner: "minner"
15746
- }, pn = function(e, t, n, r) {
15755
+ }, mn = function(e, t, n, r) {
15747
15756
  r === void 0 && (r = [null, null]);
15748
15757
  for (var i = [], a = 0; a < e.length; a++) {
15749
15758
  var o = Y(e[a], t);
@@ -15752,25 +15761,25 @@ var sn = function(e) {
15752
15761
  i.push(...s);
15753
15762
  } else i.push(o);
15754
15763
  }
15755
- if (zt(i), !n) return i;
15764
+ if (Bt(i), !n) return i;
15756
15765
  var c = t;
15757
15766
  if (e.length === 1) {
15758
15767
  var l = e[0];
15759
- l.type === "sizing" ? c = t.havingSize(l.size) : l.type === "styling" && (c = t.havingStyle(dn[l.style]));
15768
+ l.type === "sizing" ? c = t.havingSize(l.size) : l.type === "styling" && (c = t.havingStyle(fn[l.style]));
15760
15769
  }
15761
15770
  var u = G([r[0] || "leftmost"], [], t), d = G([r[1] || "rightmost"], [], t), f = n === "root";
15762
- return mn(i, (e, t) => {
15771
+ return hn(i, (e, t) => {
15763
15772
  var n = t.classes[0], r = e.classes[0];
15764
- n === "mbin" && un.has(r) ? t.classes[0] = "mord" : r === "mbin" && ln.has(n) && (e.classes[0] = "mord");
15765
- }, { node: u }, d, f), mn(i, (e, t) => {
15766
- var n = _n(t), r = _n(e), i = n && r ? e.hasClass("mtight") ? tn[n]?.[r] : en[n]?.[r] : null;
15767
- if (i) return qt(i, c);
15773
+ n === "mbin" && dn.has(r) ? t.classes[0] = "mord" : r === "mbin" && un.has(n) && (e.classes[0] = "mord");
15774
+ }, { node: u }, d, f), hn(i, (e, t) => {
15775
+ var n = vn(t), r = vn(e), i = n && r ? e.hasClass("mtight") ? nn[n]?.[r] : tn[n]?.[r] : null;
15776
+ if (i) return Jt(i, c);
15768
15777
  }, { node: u }, d, f), i;
15769
- }, mn = function(e, t, n, r, i) {
15778
+ }, hn = function(e, t, n, r, i) {
15770
15779
  r && e.push(r);
15771
15780
  for (var a = 0; a < e.length; a++) {
15772
- var o = e[a], s = hn(o);
15773
- if (s) mn(s.children, t, n, null, i);
15781
+ var o = e[a], s = gn(o);
15782
+ if (s) hn(s.children, t, n, null, i);
15774
15783
  else {
15775
15784
  var c = !o.hasClass("mspace");
15776
15785
  if (c) {
@@ -15783,27 +15792,27 @@ var sn = function(e) {
15783
15792
  }
15784
15793
  }
15785
15794
  r && e.pop();
15786
- }, hn = function(e) {
15795
+ }, gn = function(e) {
15787
15796
  return e instanceof Ce || e instanceof Pe || e instanceof Ne && e.hasClass("enclosing") ? e : null;
15788
- }, gn = function(e, t) {
15789
- var n = hn(e);
15797
+ }, _n = function(e, t) {
15798
+ var n = gn(e);
15790
15799
  if (n) {
15791
15800
  var r = n.children;
15792
15801
  if (r.length) {
15793
- if (t === "right") return gn(r[r.length - 1], "right");
15794
- if (t === "left") return gn(r[0], "left");
15802
+ if (t === "right") return _n(r[r.length - 1], "right");
15803
+ if (t === "left") return _n(r[0], "left");
15795
15804
  }
15796
15805
  }
15797
15806
  return e;
15798
- }, _n = function(e, t) {
15799
- return e ? (t && (e = gn(e, t)), fn[e.classes[0]] || null) : null;
15800
15807
  }, vn = function(e, t) {
15808
+ return e ? (t && (e = _n(e, t)), pn[e.classes[0]] || null) : null;
15809
+ }, yn = function(e, t) {
15801
15810
  var n = ["nulldelimiter"].concat(e.baseSizingClasses());
15802
15811
  return G(t.concat(n));
15803
15812
  }, Y = function(e, t, r) {
15804
15813
  if (!e) return G();
15805
- if (rn[e.type]) {
15806
- var i = rn[e.type](e, t);
15814
+ if (an[e.type]) {
15815
+ var i = an[e.type](e, t);
15807
15816
  if (r && t.size !== r.size) {
15808
15817
  i = G(t.sizingClasses(r), [i], t);
15809
15818
  var a = t.sizeMultiplier / r.sizeMultiplier;
@@ -15813,22 +15822,22 @@ var sn = function(e) {
15813
15822
  }
15814
15823
  throw new n("Got group of unknown type: '" + e.type + "'");
15815
15824
  };
15816
- function yn(e, t) {
15825
+ function bn(e, t) {
15817
15826
  var n = G(["katex-base"], e, t), r = G(["katex-strut"]);
15818
15827
  return r.style.height = A(n.height + n.depth), n.depth && (r.style.verticalAlign = A(-n.depth)), n.children.unshift(r), n;
15819
15828
  }
15820
- function bn(e, t) {
15829
+ function xn(e, t) {
15821
15830
  var n = null;
15822
15831
  e.length === 1 && e[0].type === "tag" && (n = e[0].tag, e = e[0].body);
15823
- var r = pn(e, t, "root"), i;
15832
+ var r = mn(e, t, "root"), i;
15824
15833
  r.length === 2 && r[1].hasClass("katex-tag") && (i = r.pop());
15825
15834
  for (var a = [], o = [], s = 0; s < r.length; s++) if (o.push(r[s]), r[s].hasClass("mbin") || r[s].hasClass("mrel") || r[s].hasClass("allowbreak")) {
15826
15835
  for (var c = !1; s < r.length - 1 && r[s + 1].hasClass("mspace") && !r[s + 1].hasClass("katex-newline");) s++, o.push(r[s]), r[s].hasClass("nobreak") && (c = !0);
15827
- c || (a.push(yn(o, t)), o = []);
15828
- } else r[s].hasClass("katex-newline") && (o.pop(), o.length > 0 && (a.push(yn(o, t)), o = []), a.push(r[s]));
15829
- o.length > 0 && a.push(yn(o, t));
15836
+ c || (a.push(bn(o, t)), o = []);
15837
+ } else r[s].hasClass("katex-newline") && (o.pop(), o.length > 0 && (a.push(bn(o, t)), o = []), a.push(r[s]));
15838
+ o.length > 0 && a.push(bn(o, t));
15830
15839
  var l;
15831
- n ? (l = yn(pn(n, t, !0), t), l.classes = ["katex-tag"], a.push(l)) : i && a.push(i);
15840
+ n ? (l = bn(mn(n, t, !0), t), l.classes = ["katex-tag"], a.push(l)) : i && a.push(i);
15832
15841
  var u = G(["katex-html"], a);
15833
15842
  if (u.setAttribute("aria-hidden", "true"), l) {
15834
15843
  var d = l.children[0];
@@ -15836,7 +15845,7 @@ function bn(e, t) {
15836
15845
  }
15837
15846
  return u;
15838
15847
  }
15839
- function xn(e) {
15848
+ function Sn(e) {
15840
15849
  return new Ce(e);
15841
15850
  }
15842
15851
  var X = class {
@@ -15856,9 +15865,9 @@ var X = class {
15856
15865
  e.setAttribute(n, r);
15857
15866
  }
15858
15867
  this.classes.length > 0 && (e.className = De(this.classes));
15859
- for (var i = 0; i < this.children.length; i++) if (this.children[i] instanceof Sn && this.children[i + 1] instanceof Sn) {
15860
- for (var a = this.children[i].toText() + this.children[++i].toText(); this.children[i + 1] instanceof Sn;) a += this.children[++i].toText();
15861
- e.appendChild(new Sn(a).toNode());
15868
+ for (var i = 0; i < this.children.length; i++) if (this.children[i] instanceof Cn && this.children[i + 1] instanceof Cn) {
15869
+ for (var a = this.children[i].toText() + this.children[++i].toText(); this.children[i + 1] instanceof Cn;) a += this.children[++i].toText();
15870
+ e.appendChild(new Cn(a).toNode());
15862
15871
  } else e.appendChild(this.children[i].toNode());
15863
15872
  return e;
15864
15873
  }
@@ -15875,7 +15884,7 @@ var X = class {
15875
15884
  toText() {
15876
15885
  return this.children.map((e) => e.toText()).join("");
15877
15886
  }
15878
- }, Sn = class {
15887
+ }, Cn = class {
15879
15888
  constructor(e) {
15880
15889
  this.text = void 0, this.text = e;
15881
15890
  }
@@ -15888,7 +15897,7 @@ var X = class {
15888
15897
  toText() {
15889
15898
  return this.text;
15890
15899
  }
15891
- }, Cn = class {
15900
+ }, wn = class {
15892
15901
  constructor(e) {
15893
15902
  this.width = void 0, this.character = void 0, this.width = e, this.character = e >= .05555 && e <= .05556 ? " " : e >= .1666 && e <= .1667 ? " " : e >= .2222 && e <= .2223 ? " " : e >= .2777 && e <= .2778 ? "  " : e >= -.05556 && e <= -.05555 ? " ⁣" : e >= -.1667 && e <= -.1666 ? " ⁣" : e >= -.2223 && e <= -.2222 ? " ⁣" : e >= -.2778 && e <= -.2777 ? " ⁣" : null;
15894
15903
  }
@@ -15903,12 +15912,12 @@ var X = class {
15903
15912
  toText() {
15904
15913
  return this.character ? this.character : " ";
15905
15914
  }
15906
- }, wn = /* @__PURE__ */ new Set(["\\imath", "\\jmath"]), Tn = /* @__PURE__ */ new Set(["mrow", "mtable"]), En = function(e, t, n) {
15915
+ }, Tn = /* @__PURE__ */ new Set(["\\imath", "\\jmath"]), En = /* @__PURE__ */ new Set(["mrow", "mtable"]), Dn = function(e, t, n) {
15907
15916
  var r, i;
15908
- return j[t][e] && j[t][e].replace && e.charCodeAt(0) !== 55349 && (!Object.prototype.hasOwnProperty.call(nt, e) || (n == null || (r = n.fontFamily) == null ? void 0 : r.slice(4, 6)) !== "tt" && (n == null || (i = n.font) == null ? void 0 : i.slice(4, 6)) !== "tt") && (e = j[t][e].replace), new Sn(e);
15909
- }, Dn = function(e) {
15917
+ return j[t][e] && j[t][e].replace && e.charCodeAt(0) !== 55349 && (!Object.prototype.hasOwnProperty.call(nt, e) || (n == null || (r = n.fontFamily) == null ? void 0 : r.slice(4, 6)) !== "tt" && (n == null || (i = n.font) == null ? void 0 : i.slice(4, 6)) !== "tt") && (e = j[t][e].replace), new Cn(e);
15918
+ }, On = function(e) {
15910
15919
  return e.length === 1 ? e[0] : new X("mrow", e);
15911
- }, On = {
15920
+ }, kn = {
15912
15921
  mathit: "italic",
15913
15922
  boldsymbol: (e) => e.type === "textord" ? "bold" : "bold-italic",
15914
15923
  mathbf: "bold",
@@ -15919,7 +15928,7 @@ var X = class {
15919
15928
  mathcal: "script",
15920
15929
  mathsf: "sans-serif",
15921
15930
  mathtt: "monospace"
15922
- }, kn = (e, t) => {
15931
+ }, An = (e, t) => {
15923
15932
  if (e.mode === "text") {
15924
15933
  if (t.fontFamily === "texttt") return "monospace";
15925
15934
  if (t.fontFamily === "textsf") return t.fontShape === "textit" && t.fontWeight === "textbf" ? "sans-serif-bold-italic" : t.fontShape === "textit" ? "sans-serif-italic" : t.fontWeight === "textbf" ? "bold-sans-serif" : "sans-serif";
@@ -15929,30 +15938,30 @@ var X = class {
15929
15938
  }
15930
15939
  var n = t.font;
15931
15940
  if (!n || n === "mathnormal") return null;
15932
- var r = e.mode, i = On[n];
15941
+ var r = e.mode, i = kn[n];
15933
15942
  if (i) return typeof i == "function" ? i(e) : i;
15934
15943
  var a = e.text;
15935
- if (wn.has(a)) return null;
15944
+ if (Tn.has(a)) return null;
15936
15945
  if (j[r][a]) {
15937
15946
  var o = j[r][a].replace;
15938
15947
  o && (a = o);
15939
15948
  }
15940
- var s = Yt[n].fontName;
15941
- return Je(a, s, r) ? Yt[n].variant : null;
15949
+ var s = Xt[n].fontName;
15950
+ return Je(a, s, r) ? Xt[n].variant : null;
15942
15951
  };
15943
- function An(e) {
15952
+ function jn(e) {
15944
15953
  if (!e) return !1;
15945
15954
  if (e.type === "mi" && e.children.length === 1) {
15946
15955
  var t = e.children[0];
15947
- return t instanceof Sn && t.text === ".";
15956
+ return t instanceof Cn && t.text === ".";
15948
15957
  }
15949
15958
  if (e.type === "mo" && e.children.length === 1 && e.getAttribute("separator") === "true" && e.getAttribute("lspace") === "0em" && e.getAttribute("rspace") === "0em") {
15950
15959
  var n = e.children[0];
15951
- return n instanceof Sn && n.text === ",";
15960
+ return n instanceof Cn && n.text === ",";
15952
15961
  }
15953
15962
  return !1;
15954
15963
  }
15955
- var jn = function(e, t, n) {
15964
+ var Mn = function(e, t, n) {
15956
15965
  if (e.length === 1) {
15957
15966
  var r = Z(e[0], t);
15958
15967
  return n && r instanceof X && r.type === "mo" && (r.setAttribute("lspace", "0em"), r.setAttribute("rspace", "0em")), [r];
@@ -15960,39 +15969,39 @@ var jn = function(e, t, n) {
15960
15969
  for (var i = [], a, o = 0; o < e.length; o++) {
15961
15970
  var s = Z(e[o], t);
15962
15971
  if (s instanceof X && a instanceof X) {
15963
- if (s.type === "mtext" && a.type === "mtext" && s.getAttribute("mathvariant") === a.getAttribute("mathvariant") || s.type === "mn" && a.type === "mn" || An(s) && a.type === "mn") {
15972
+ if (s.type === "mtext" && a.type === "mtext" && s.getAttribute("mathvariant") === a.getAttribute("mathvariant") || s.type === "mn" && a.type === "mn" || jn(s) && a.type === "mn") {
15964
15973
  a.children.push(...s.children);
15965
15974
  continue;
15966
15975
  }
15967
- if (s.type === "mn" && An(a)) s.children = [...a.children, ...s.children], i.pop();
15968
- else if ((s.type === "msup" || s.type === "msub") && s.children.length >= 1 && (a.type === "mn" || An(a))) {
15976
+ if (s.type === "mn" && jn(a)) s.children = [...a.children, ...s.children], i.pop();
15977
+ else if ((s.type === "msup" || s.type === "msub") && s.children.length >= 1 && (a.type === "mn" || jn(a))) {
15969
15978
  var c = s.children[0];
15970
15979
  c instanceof X && c.type === "mn" && (c.children = [...a.children, ...c.children], i.pop());
15971
15980
  } else if (a.type === "mi" && a.children.length === 1) {
15972
15981
  var l = a.children[0];
15973
- if (l instanceof Sn && l.text === "̸" && (s.type === "mo" || s.type === "mi" || s.type === "mn")) {
15982
+ if (l instanceof Cn && l.text === "̸" && (s.type === "mo" || s.type === "mi" || s.type === "mn")) {
15974
15983
  var u = s.children[0];
15975
- u instanceof Sn && u.text.length > 0 && (u.text = u.text.slice(0, 1) + "̸" + u.text.slice(1), i.pop());
15984
+ u instanceof Cn && u.text.length > 0 && (u.text = u.text.slice(0, 1) + "̸" + u.text.slice(1), i.pop());
15976
15985
  }
15977
15986
  }
15978
15987
  }
15979
15988
  i.push(s), a = s;
15980
15989
  }
15981
15990
  return i;
15982
- }, Mn = function(e, t, n) {
15983
- return Dn(jn(e, t, n));
15991
+ }, Nn = function(e, t, n) {
15992
+ return On(Mn(e, t, n));
15984
15993
  }, Z = function(e, t) {
15985
15994
  if (!e) return new X("mrow");
15986
- if (an[e.type]) return an[e.type](e, t);
15995
+ if (on[e.type]) return on[e.type](e, t);
15987
15996
  throw new n("Got group of unknown type: '" + e.type + "'");
15988
15997
  };
15989
- function Nn(e, t, n, r, i) {
15990
- var a = jn(e, n), o = a.length === 1 && a[0] instanceof X && Tn.has(a[0].type) ? a[0] : new X("mrow", a), s = new X("annotation", [new Sn(t)]);
15998
+ function Pn(e, t, n, r, i) {
15999
+ var a = Mn(e, n), o = a.length === 1 && a[0] instanceof X && En.has(a[0].type) ? a[0] : new X("mrow", a), s = new X("annotation", [new Cn(t)]);
15991
16000
  s.setAttribute("encoding", "application/x-tex");
15992
16001
  var c = new X("math", [new X("semantics", [o, s])]);
15993
16002
  return c.setAttribute("xmlns", "http://www.w3.org/1998/Math/MathML"), r && c.setAttribute("display", "block"), G([i ? "katex" : "katex-mathml"], [c]);
15994
16003
  }
15995
- var Pn = [
16004
+ var Fn = [
15996
16005
  [
15997
16006
  1,
15998
16007
  1,
@@ -16048,7 +16057,7 @@ var Pn = [
16048
16057
  10,
16049
16058
  9
16050
16059
  ]
16051
- ], Fn = [
16060
+ ], In = [
16052
16061
  .5,
16053
16062
  .6,
16054
16063
  .7,
@@ -16060,11 +16069,11 @@ var Pn = [
16060
16069
  1.728,
16061
16070
  2.074,
16062
16071
  2.488
16063
- ], In = function(e, t) {
16064
- return t.size < 2 ? e : Pn[e - 1][t.size - 1];
16065
- }, Ln = class e {
16072
+ ], Ln = function(e, t) {
16073
+ return t.size < 2 ? e : Fn[e - 1][t.size - 1];
16074
+ }, Rn = class e {
16066
16075
  constructor(t) {
16067
- this.style = void 0, this.color = void 0, this.size = void 0, this.textSize = void 0, this.phantom = void 0, this.font = void 0, this.fontFamily = void 0, this.fontWeight = void 0, this.fontShape = void 0, this.sizeMultiplier = void 0, this.maxSize = void 0, this.minRuleThickness = void 0, this._fontMetrics = void 0, this.style = t.style, this.color = t.color, this.size = t.size || e.BASESIZE, this.textSize = t.textSize || this.size, this.phantom = !!t.phantom, this.font = t.font || "", this.fontFamily = t.fontFamily || "", this.fontWeight = t.fontWeight || "", this.fontShape = t.fontShape || "", this.sizeMultiplier = Fn[this.size - 1], this.maxSize = t.maxSize, this.minRuleThickness = t.minRuleThickness, this._fontMetrics = void 0;
16076
+ this.style = void 0, this.color = void 0, this.size = void 0, this.textSize = void 0, this.phantom = void 0, this.font = void 0, this.fontFamily = void 0, this.fontWeight = void 0, this.fontShape = void 0, this.sizeMultiplier = void 0, this.maxSize = void 0, this.minRuleThickness = void 0, this._fontMetrics = void 0, this.strict = void 0, this.style = t.style, this.color = t.color, this.size = t.size || e.BASESIZE, this.textSize = t.textSize || this.size, this.phantom = !!t.phantom, this.font = t.font || "", this.fontFamily = t.fontFamily || "", this.fontWeight = t.fontWeight || "", this.fontShape = t.fontShape || "", this.sizeMultiplier = In[this.size - 1], this.maxSize = t.maxSize, this.minRuleThickness = t.minRuleThickness, this.strict = t.strict, this._fontMetrics = void 0;
16068
16077
  }
16069
16078
  extend(t) {
16070
16079
  var n = {
@@ -16078,14 +16087,15 @@ var Pn = [
16078
16087
  fontWeight: this.fontWeight,
16079
16088
  fontShape: this.fontShape,
16080
16089
  maxSize: this.maxSize,
16081
- minRuleThickness: this.minRuleThickness
16090
+ minRuleThickness: this.minRuleThickness,
16091
+ strict: this.strict
16082
16092
  };
16083
16093
  return Object.assign(n, t), new e(n);
16084
16094
  }
16085
16095
  havingStyle(e) {
16086
16096
  return this.style === e ? this : this.extend({
16087
16097
  style: e,
16088
- size: In(this.textSize, e)
16098
+ size: Ln(this.textSize, e)
16089
16099
  });
16090
16100
  }
16091
16101
  havingCrampedStyle() {
@@ -16096,12 +16106,12 @@ var Pn = [
16096
16106
  style: this.style.text(),
16097
16107
  size: e,
16098
16108
  textSize: e,
16099
- sizeMultiplier: Fn[e - 1]
16109
+ sizeMultiplier: In[e - 1]
16100
16110
  });
16101
16111
  }
16102
16112
  havingBaseStyle(t) {
16103
16113
  t ||= this.style.text();
16104
- var n = In(e.BASESIZE, t);
16114
+ var n = Ln(e.BASESIZE, t);
16105
16115
  return this.size === n && this.textSize === e.BASESIZE && this.style === t ? this : this.extend({
16106
16116
  style: t,
16107
16117
  size: n
@@ -16173,25 +16183,24 @@ var Pn = [
16173
16183
  return this.phantom ? "transparent" : this.color;
16174
16184
  }
16175
16185
  };
16176
- Ln.BASESIZE = 6;
16177
- var Rn = function(e) {
16178
- return new Ln({
16179
- style: e.displayMode ? D.DISPLAY : D.TEXT,
16180
- maxSize: e.maxSize,
16181
- minRuleThickness: e.minRuleThickness
16182
- });
16183
- }, zn = function(e, t) {
16186
+ Rn.BASESIZE = 6;
16187
+ var zn = (e) => new Rn({
16188
+ style: e.displayMode ? D.DISPLAY : D.TEXT,
16189
+ maxSize: e.maxSize,
16190
+ minRuleThickness: e.minRuleThickness,
16191
+ strict: e.strict
16192
+ }), Bn = function(e, t) {
16184
16193
  if (t.displayMode) {
16185
16194
  var n = ["katex-display"];
16186
16195
  t.leqno && n.push("leqno"), t.fleqn && n.push("fleqn"), e = G(n, [e]);
16187
16196
  }
16188
16197
  return e;
16189
- }, Bn = function(e, t, n) {
16190
- var r = Rn(n), i;
16191
- return n.output === "mathml" ? Nn(e, t, r, n.displayMode, !0) : (i = n.output === "html" ? G(["katex"], [bn(e, r)]) : G(["katex"], [Nn(e, t, r, n.displayMode, !1), bn(e, r)]), zn(i, n));
16192
16198
  }, Vn = function(e, t, n) {
16193
- return zn(G(["katex"], [bn(e, Rn(n))]), n);
16194
- }, Hn = {
16199
+ var r = zn(n), i;
16200
+ return n.output === "mathml" ? Pn(e, t, r, n.displayMode, !0) : (i = n.output === "html" ? G(["katex"], [xn(e, r)]) : G(["katex"], [Pn(e, t, r, n.displayMode, !1), xn(e, r)]), Bn(i, n));
16201
+ }, Hn = function(e, t) {
16202
+ return Bn(G(["katex"], [xn(e, zn(t))]), t);
16203
+ }, Un = {
16195
16204
  widehat: "^",
16196
16205
  widecheck: "ˇ",
16197
16206
  widetilde: "~",
@@ -16236,10 +16245,10 @@ var Rn = function(e) {
16236
16245
  "\\cdrightarrow": "→",
16237
16246
  "\\cdleftarrow": "←",
16238
16247
  "\\cdlongequal": "="
16239
- }, Un = function(e) {
16240
- var t = new X("mo", [new Sn(Hn[e.replace(/^\\/, "")])]);
16248
+ }, Wn = function(e) {
16249
+ var t = new X("mo", [new Cn(Un[e.replace(/^\\/, "")])]);
16241
16250
  return t.setAttribute("stretchy", "true"), t;
16242
- }, Wn = {
16251
+ }, Gn = {
16243
16252
  overrightarrow: [
16244
16253
  ["rightarrow"],
16245
16254
  .888,
@@ -16479,15 +16488,15 @@ var Rn = function(e) {
16479
16488
  1.75,
16480
16489
  716
16481
16490
  ]
16482
- }, Gn = /* @__PURE__ */ new Set([
16491
+ }, Kn = /* @__PURE__ */ new Set([
16483
16492
  "widehat",
16484
16493
  "widecheck",
16485
16494
  "widetilde",
16486
16495
  "utilde"
16487
- ]), Kn = function(e, t) {
16496
+ ]), qn = function(e, t) {
16488
16497
  function n() {
16489
16498
  var n = 4e5, r = e.label.slice(1);
16490
- if (Gn.has(r) && "base" in e) {
16499
+ if (Kn.has(r) && "base" in e) {
16491
16500
  var i = e.base.type === "ordgroup" ? e.base.body.length : 1, a, o, s;
16492
16501
  if (i > 5) r === "widehat" || r === "widecheck" ? (a = 420, n = 2364, s = .42, o = r + "4") : (a = 312, n = 2340, s = .34, o = "tilde4");
16493
16502
  else {
@@ -16540,7 +16549,7 @@ var Rn = function(e) {
16540
16549
  ][c], o = "tilde" + c);
16541
16550
  }
16542
16551
  return {
16543
- span: Vt([], [new Re([new ze(o)], {
16552
+ span: Ht([], [new Re([new ze(o)], {
16544
16553
  width: "100%",
16545
16554
  height: A(s),
16546
16555
  viewBox: "0 0 " + n + " " + a,
@@ -16550,7 +16559,7 @@ var Rn = function(e) {
16550
16559
  height: s
16551
16560
  };
16552
16561
  }
16553
- var l = [], u = Wn[r];
16562
+ var l = [], u = Gn[r];
16554
16563
  if (!u) throw Error("No SVG data for \"" + r + "\".");
16555
16564
  var d = u[0], f = u[1], p = u[2], m = p / 1e3, h = d.length, g, _;
16556
16565
  if (h === 1) {
@@ -16573,7 +16582,7 @@ var Rn = function(e) {
16573
16582
  height: A(m),
16574
16583
  viewBox: "0 0 " + n + " " + p,
16575
16584
  preserveAspectRatio: _[v] + " slice"
16576
- }), b = Vt([g[v]], [y], t);
16585
+ }), b = Ht([g[v]], [y], t);
16577
16586
  if (h === 1) return {
16578
16587
  span: b,
16579
16588
  minWidth: f,
@@ -16589,7 +16598,7 @@ var Rn = function(e) {
16589
16598
  }
16590
16599
  var r = n(), i = r.span, a = r.minWidth, o = r.height;
16591
16600
  return i.height = o, i.style.height = A(o), a > 0 && (i.style.minWidth = A(a)), i;
16592
- }, qn = function(e, t, n, r, i) {
16601
+ }, Jn = function(e, t, n, r, i) {
16593
16602
  var a, o = e.height + e.depth + n + r;
16594
16603
  if (/fbox|color|angl/.test(t)) {
16595
16604
  if (a = G(["katex-stretchy", t], [], i), t === "fbox") {
@@ -16610,58 +16619,58 @@ var Rn = function(e) {
16610
16619
  x2: "100%",
16611
16620
  y2: "0",
16612
16621
  "stroke-width": "0.046em"
16613
- })), a = Vt([], [new Re(c, {
16622
+ })), a = Ht([], [new Re(c, {
16614
16623
  width: "100%",
16615
16624
  height: A(o)
16616
16625
  })], i);
16617
16626
  }
16618
16627
  return a.height = o, a.style.height = A(o), a;
16619
- }, Jn = [
16628
+ }, Yn = [
16620
16629
  "bin",
16621
16630
  "close",
16622
16631
  "inner",
16623
16632
  "open",
16624
16633
  "punct",
16625
16634
  "rel"
16626
- ], Yn = [
16635
+ ], Xn = [
16627
16636
  "accent-token",
16628
16637
  "mathord",
16629
16638
  "op-token",
16630
16639
  "spacing",
16631
16640
  "textord"
16632
- ], Xn = new Set(Jn), Zn = new Set(Yn);
16633
- function Qn(e) {
16634
- return Xn.has(e);
16641
+ ], Zn = new Set(Yn), Qn = new Set(Xn);
16642
+ function $n(e) {
16643
+ return Zn.has(e);
16635
16644
  }
16636
16645
  function Q(e, t) {
16637
16646
  if (!e || e.type !== t) throw Error("Expected node of type " + t + ", but got " + (e ? "node of type " + e.type : String(e)));
16638
16647
  return e;
16639
16648
  }
16640
- function $n(e) {
16641
- var t = er(e);
16649
+ function er(e) {
16650
+ var t = tr(e);
16642
16651
  if (!t) throw Error("Expected node of symbol group type, but got " + (e ? "node of type " + e.type : String(e)));
16643
16652
  return t;
16644
16653
  }
16645
- function er(e) {
16646
- return e.type === "atom" || Zn.has(e.type) ? e : null;
16654
+ function tr(e) {
16655
+ return e.type === "atom" || Qn.has(e.type) ? e : null;
16647
16656
  }
16648
- function tr(e, t, r) {
16657
+ function nr(e, t, r) {
16649
16658
  var i = "";
16650
16659
  for (var a of e.body) if (a.type === "textord") i += a.text;
16651
16660
  else if (r && a.type === "spacing" && a.text === " ") i += " ";
16652
16661
  else throw new n(t, e);
16653
16662
  return i;
16654
16663
  }
16655
- var nr = (e) => {
16664
+ var rr = (e) => {
16656
16665
  if (e instanceof Le) return e;
16657
- if (Ue(e) && e.children.length === 1) return nr(e.children[0]);
16658
- }, rr = (e, t) => {
16666
+ if (Ue(e) && e.children.length === 1) return rr(e.children[0]);
16667
+ }, ir = (e, t) => {
16659
16668
  var n, r, i;
16660
16669
  e && e.type === "supsub" ? (r = Q(e.base, "accent"), n = r.base, e.base = n, i = He(Y(e, t)), e.base = r) : (r = Q(e, "accent"), n = r.base);
16661
16670
  var a = Y(n, t.havingCrampedStyle()), o = r.isShifty && u(n), s = 0;
16662
- o && (s = nr(a)?.skew ?? 0);
16671
+ o && (s = rr(a)?.skew ?? 0);
16663
16672
  var c = r.label === "\\c", l = c ? a.height + a.depth : Math.min(a.height, t.fontMetrics().xHeight), d;
16664
- if (r.isStretchy) d = Kn(r, t), d = K({
16673
+ if (r.isStretchy) d = qn(r, t), d = K({
16665
16674
  positionType: "firstBaseline",
16666
16675
  children: [{
16667
16676
  type: "elem",
@@ -16678,7 +16687,7 @@ var nr = (e) => {
16678
16687
  });
16679
16688
  else {
16680
16689
  var f, p;
16681
- r.label === "\\vec" ? (f = Zt("vec", t), p = Xt.vec[1]) : (f = Lt({
16690
+ r.label === "\\vec" ? (f = Qt("vec", t), p = Zt.vec[1]) : (f = Rt({
16682
16691
  type: "textord",
16683
16692
  mode: r.mode,
16684
16693
  text: r.label
@@ -16706,10 +16715,10 @@ var nr = (e) => {
16706
16715
  }
16707
16716
  var g = G(["mord", "katex-accent"], [d], t);
16708
16717
  return i ? (i.children[0] = g, i.height = Math.max(g.height, i.height), i.classes[0] = "mord", i) : g;
16709
- }, ir = (e, t) => {
16710
- var n = e.isStretchy ? Un(e.label) : new X("mo", [En(e.label, e.mode)]), r = new X("mover", [Z(e.base, t), n]);
16718
+ }, ar = (e, t) => {
16719
+ var n = e.isStretchy ? Wn(e.label) : new X("mo", [Dn(e.label, e.mode)]), r = new X("mover", [Z(e.base, t), n]);
16711
16720
  return r.setAttribute("accent", "true"), r;
16712
- }, ar = new RegExp([
16721
+ }, or = new RegExp([
16713
16722
  "\\acute",
16714
16723
  "\\grave",
16715
16724
  "\\ddot",
@@ -16750,7 +16759,7 @@ J({
16750
16759
  ],
16751
16760
  numArgs: 1,
16752
16761
  handler: (e, t) => {
16753
- var n = sn(t[0]), r = !ar.test(e.funcName), i = !r || e.funcName === "\\widehat" || e.funcName === "\\widetilde" || e.funcName === "\\widecheck";
16762
+ var n = cn(t[0]), r = !or.test(e.funcName), i = !r || e.funcName === "\\widehat" || e.funcName === "\\widetilde" || e.funcName === "\\widecheck";
16754
16763
  return {
16755
16764
  type: "accent",
16756
16765
  mode: e.parser.mode,
@@ -16760,8 +16769,8 @@ J({
16760
16769
  base: n
16761
16770
  };
16762
16771
  },
16763
- htmlBuilder: rr,
16764
- mathmlBuilder: ir
16772
+ htmlBuilder: ir,
16773
+ mathmlBuilder: ar
16765
16774
  }), J({
16766
16775
  type: "accent",
16767
16776
  names: [
@@ -16785,7 +16794,12 @@ J({
16785
16794
  argTypes: ["primitive"],
16786
16795
  handler: (e, t) => {
16787
16796
  var n = t[0], r = e.parser.mode;
16788
- return r === "math" && (e.parser.settings.reportNonstrict("mathVsTextAccents", "LaTeX's accent " + e.funcName + " works only in text mode"), r = "text"), {
16797
+ return r === "math" && (Nt({
16798
+ strict: e.parser.settings.strict,
16799
+ errorCode: "mathVsTextAccents",
16800
+ errorMsg: "LaTeX's accent " + e.funcName + " works only in text mode",
16801
+ report: !0
16802
+ }), r = "text"), {
16789
16803
  type: "accent",
16790
16804
  mode: r,
16791
16805
  label: e.funcName,
@@ -16815,7 +16829,7 @@ J({
16815
16829
  };
16816
16830
  },
16817
16831
  htmlBuilder: (e, t) => {
16818
- var n = Y(e.base, t), r = Kn(e, t), i = e.label === "\\utilde" ? .12 : 0;
16832
+ var n = Y(e.base, t), r = qn(e, t), i = e.label === "\\utilde" ? .12 : 0;
16819
16833
  return G(["mord", "accentunder"], [K({
16820
16834
  positionType: "top",
16821
16835
  positionData: n.height,
@@ -16837,11 +16851,11 @@ J({
16837
16851
  })], t);
16838
16852
  },
16839
16853
  mathmlBuilder: (e, t) => {
16840
- var n = Un(e.label), r = new X("munder", [Z(e.base, t), n]);
16854
+ var n = Wn(e.label), r = new X("munder", [Z(e.base, t), n]);
16841
16855
  return r.setAttribute("accentunder", "true"), r;
16842
16856
  }
16843
16857
  });
16844
- var or = (e) => {
16858
+ var sr = (e) => {
16845
16859
  var t = new X("mpadded", e ? [e] : []);
16846
16860
  return t.setAttribute("width", "+0.6em"), t.setAttribute("lspace", "0.3em"), t;
16847
16861
  };
@@ -16887,11 +16901,11 @@ J({
16887
16901
  };
16888
16902
  },
16889
16903
  htmlBuilder(e, t) {
16890
- var n = t.style, r = t.havingStyle(n.sup()), i = Gt(Y(e.body, r, t), t), a = e.label.slice(0, 2) === "\\x" ? "x" : "cd";
16904
+ var n = t.style, r = t.havingStyle(n.sup()), i = Kt(Y(e.body, r, t), t), a = e.label.slice(0, 2) === "\\x" ? "x" : "cd";
16891
16905
  i.classes.push(a + "-arrow-pad");
16892
16906
  var o;
16893
- e.below && (r = t.havingStyle(n.sub()), o = Gt(Y(e.below, r, t), t), o.classes.push(a + "-arrow-pad"));
16894
- var s = Kn(e, t), c = -t.fontMetrics().axisHeight + .5 * s.height, l = -t.fontMetrics().axisHeight - .5 * s.height - .111;
16907
+ e.below && (r = t.havingStyle(n.sub()), o = Kt(Y(e.below, r, t), t), o.classes.push(a + "-arrow-pad"));
16908
+ var s = qn(e, t), c = -t.fontMetrics().axisHeight + .5 * s.height, l = -t.fontMetrics().axisHeight - .5 * s.height - .111;
16895
16909
  (i.depth > .25 || e.label === "\\xleftequilibrium") && (l -= i.depth);
16896
16910
  var u;
16897
16911
  if (o) {
@@ -16933,26 +16947,26 @@ J({
16933
16947
  return G(["mrel", "x-arrow"], [u], t);
16934
16948
  },
16935
16949
  mathmlBuilder(e, t) {
16936
- var n = Un(e.label);
16950
+ var n = Wn(e.label);
16937
16951
  n.setAttribute("minsize", e.label.charAt(0) === "x" ? "1.75em" : "3.0em");
16938
16952
  var r;
16939
16953
  if (e.body) {
16940
- var i = or(Z(e.body, t));
16954
+ var i = sr(Z(e.body, t));
16941
16955
  r = e.below ? new X("munderover", [
16942
16956
  n,
16943
- or(Z(e.below, t)),
16957
+ sr(Z(e.below, t)),
16944
16958
  i
16945
16959
  ]) : new X("mover", [n, i]);
16946
- } else e.below ? r = new X("munder", [n, or(Z(e.below, t))]) : (r = or(), r = new X("mover", [n, r]));
16960
+ } else e.below ? r = new X("munder", [n, sr(Z(e.below, t))]) : (r = sr(), r = new X("mover", [n, r]));
16947
16961
  return r;
16948
16962
  }
16949
16963
  });
16950
- function sr(e, t) {
16951
- var n = pn(e.body, t, !0);
16964
+ function cr(e, t) {
16965
+ var n = mn(e.body, t, !0);
16952
16966
  return G([e.mclass], n, t);
16953
16967
  }
16954
- function cr(e, t) {
16955
- var n, r = jn(e.body, t);
16968
+ function lr(e, t) {
16969
+ var n, r = Mn(e.body, t);
16956
16970
  return e.mclass === "minner" ? n = new X("mpadded", r) : e.mclass === "mord" ? e.isCharacterBox ? (n = r[0], n.type = "mi") : n = new X("mi", r) : (e.isCharacterBox ? (n = r[0], n.type = "mo") : n = new X("mo", r), e.mclass === "mbin" ? (n.attributes.lspace = "0.22em", n.attributes.rspace = "0.22em") : e.mclass === "mpunct" ? (n.attributes.lspace = "0em", n.attributes.rspace = "0.17em") : (e.mclass === "mopen" || e.mclass === "mclose") && (n.attributes.lspace = "0em", n.attributes.rspace = "0em")), n;
16957
16971
  }
16958
16972
  J({
@@ -16974,14 +16988,14 @@ J({
16974
16988
  type: "mclass",
16975
16989
  mode: n.mode,
16976
16990
  mclass: "m" + r.slice(5),
16977
- body: cn(i),
16991
+ body: ln(i),
16978
16992
  isCharacterBox: u(i)
16979
16993
  };
16980
16994
  },
16981
- htmlBuilder: sr,
16982
- mathmlBuilder: cr
16995
+ htmlBuilder: cr,
16996
+ mathmlBuilder: lr
16983
16997
  });
16984
- var lr = (e) => {
16998
+ var ur = (e) => {
16985
16999
  var t = e.type === "ordgroup" && e.body.length ? e.body[0] : e;
16986
17000
  return t.type === "atom" && (t.family === "bin" || t.family === "rel") ? "m" + t.family : "mord";
16987
17001
  };
@@ -16993,8 +17007,8 @@ J({
16993
17007
  return {
16994
17008
  type: "mclass",
16995
17009
  mode: e.parser.mode,
16996
- mclass: lr(t[0]),
16997
- body: cn(t[1]),
17010
+ mclass: ur(t[0]),
17011
+ body: ln(t[1]),
16998
17012
  isCharacterBox: u(t[1])
16999
17013
  };
17000
17014
  }
@@ -17007,7 +17021,7 @@ J({
17007
17021
  ],
17008
17022
  numArgs: 2,
17009
17023
  handler(e, t) {
17010
- var n = e.parser, r = e.funcName, i = t[1], a = t[0], o = r === "\\stackrel" ? "mrel" : lr(i), s = {
17024
+ var n = e.parser, r = e.funcName, i = t[1], a = t[0], o = r === "\\stackrel" ? "mrel" : ur(i), s = {
17011
17025
  type: "op",
17012
17026
  mode: i.mode,
17013
17027
  limits: !0,
@@ -17015,7 +17029,7 @@ J({
17015
17029
  parentIsSupSub: !1,
17016
17030
  symbol: !1,
17017
17031
  suppressBaseShift: r !== "\\stackrel",
17018
- body: cn(i)
17032
+ body: ln(i)
17019
17033
  }, c = r === "\\underset" ? {
17020
17034
  type: "supsub",
17021
17035
  mode: a.mode,
@@ -17044,20 +17058,20 @@ J({
17044
17058
  return {
17045
17059
  type: "pmb",
17046
17060
  mode: e.parser.mode,
17047
- mclass: lr(t[0]),
17048
- body: cn(t[0])
17061
+ mclass: ur(t[0]),
17062
+ body: ln(t[0])
17049
17063
  };
17050
17064
  },
17051
17065
  htmlBuilder(e, t) {
17052
- var n = pn(e.body, t, !0), r = G([e.mclass], n, t);
17066
+ var n = mn(e.body, t, !0), r = G([e.mclass], n, t);
17053
17067
  return r.style.textShadow = "0.02em 0.01em 0.04px", r;
17054
17068
  },
17055
17069
  mathmlBuilder(e, t) {
17056
- var n = new X("mstyle", jn(e.body, t));
17070
+ var n = new X("mstyle", Mn(e.body, t));
17057
17071
  return n.setAttribute("style", "text-shadow: 0.02em 0.01em 0.04px"), n;
17058
17072
  }
17059
17073
  });
17060
- var ur = {
17074
+ var dr = {
17061
17075
  ">": "\\\\cdrightarrow",
17062
17076
  "<": "\\\\cdleftarrow",
17063
17077
  "=": "\\\\cdlongequal",
@@ -17065,15 +17079,15 @@ var ur = {
17065
17079
  V: "\\downarrow",
17066
17080
  "|": "\\Vert",
17067
17081
  ".": "no arrow"
17068
- }, dr = () => ({
17082
+ }, fr = () => ({
17069
17083
  type: "styling",
17070
17084
  body: [],
17071
17085
  mode: "math",
17072
17086
  style: "display",
17073
17087
  resetFont: !0
17074
- }), fr = (e) => e.type === "textord" && e.text === "@", pr = (e, t) => (e.type === "mathord" || e.type === "atom") && e.text === t;
17075
- function mr(e, t, n) {
17076
- var r = ur[e];
17088
+ }), pr = (e) => e.type === "textord" && e.text === "@", mr = (e, t) => (e.type === "mathord" || e.type === "atom") && e.text === t;
17089
+ function hr(e, t, n) {
17090
+ var r = dr[e];
17077
17091
  switch (r) {
17078
17092
  case "\\\\cdrightarrow":
17079
17093
  case "\\\\cdleftarrow": return n.callFunction(r, [t[0]], [t[1]]);
@@ -17107,7 +17121,7 @@ function mr(e, t, n) {
17107
17121
  };
17108
17122
  }
17109
17123
  }
17110
- function hr(e) {
17124
+ function gr(e) {
17111
17125
  var t = [];
17112
17126
  for (e.gullet.beginGroup(), e.gullet.macros.set("\\cr", "\\\\\\relax"), e.gullet.beginGroup();;) {
17113
17127
  t.push(e.parseExpression(!1, "\\\\")), e.gullet.endGroup(), e.gullet.beginGroup();
@@ -17119,10 +17133,10 @@ function hr(e) {
17119
17133
  } else throw new n("Expected \\\\ or \\cr or \\end", e.nextToken);
17120
17134
  }
17121
17135
  for (var i = [], a = [i], o = 0; o < t.length; o++) {
17122
- for (var s = t[o], c = dr(), l = 0; l < s.length; l++) if (!fr(s[l])) c.body.push(s[l]);
17136
+ for (var s = t[o], c = fr(), l = 0; l < s.length; l++) if (!pr(s[l])) c.body.push(s[l]);
17123
17137
  else {
17124
17138
  i.push(c), l += 1;
17125
- var u = $n(s[l]).text, d = [, ,];
17139
+ var u = er(s[l]).text, d = [, ,];
17126
17140
  if (d[0] = {
17127
17141
  type: "ordgroup",
17128
17142
  mode: "math",
@@ -17134,11 +17148,11 @@ function hr(e) {
17134
17148
  }, !"=|.".includes(u)) {
17135
17149
  if ("<>AV".includes(u)) for (var f = 0; f < 2; f++) {
17136
17150
  for (var p = !0, m = l + 1; m < s.length; m++) {
17137
- if (pr(s[m], u)) {
17151
+ if (mr(s[m], u)) {
17138
17152
  p = !1, l = m;
17139
17153
  break;
17140
17154
  }
17141
- if (fr(s[m])) throw new n("Missing a " + u + " character to complete a CD arrow.", s[m]);
17155
+ if (pr(s[m])) throw new n("Missing a " + u + " character to complete a CD arrow.", s[m]);
17142
17156
  d[f].body.push(s[m]);
17143
17157
  }
17144
17158
  if (p) throw new n("Missing a " + u + " character to complete a CD arrow.", s[l]);
@@ -17147,12 +17161,12 @@ function hr(e) {
17147
17161
  }
17148
17162
  var h = {
17149
17163
  type: "styling",
17150
- body: [mr(u, d, e)],
17164
+ body: [hr(u, d, e)],
17151
17165
  mode: "math",
17152
17166
  style: "display",
17153
17167
  resetFont: !0
17154
17168
  };
17155
- i.push(h), c = dr();
17169
+ i.push(h), c = fr();
17156
17170
  }
17157
17171
  o % 2 == 0 ? i.push(c) : i.shift(), i = [], a.push(i);
17158
17172
  }
@@ -17187,7 +17201,7 @@ J({
17187
17201
  };
17188
17202
  },
17189
17203
  htmlBuilder(e, t) {
17190
- var n = t.havingStyle(t.style.sup()), r = Gt(Y(e.label, n, t), t);
17204
+ var n = t.havingStyle(t.style.sup()), r = Kt(Y(e.label, n, t), t);
17191
17205
  return r.classes.push("cd-label-" + e.side), r.style.bottom = A(.8 - r.depth), r.height = 0, r.depth = 0, r;
17192
17206
  },
17193
17207
  mathmlBuilder(e, t) {
@@ -17206,7 +17220,7 @@ J({
17206
17220
  };
17207
17221
  },
17208
17222
  htmlBuilder(e, t) {
17209
- var n = Gt(Y(e.fragment, t), t);
17223
+ var n = Kt(Y(e.fragment, t), t);
17210
17224
  return n.classes.push("cd-vert-arrow"), n;
17211
17225
  },
17212
17226
  mathmlBuilder(e, t) {
@@ -17218,7 +17232,7 @@ J({
17218
17232
  numArgs: 1,
17219
17233
  allowedInText: !0,
17220
17234
  handler(e, t) {
17221
- var r = e.parser, i = tr(Q(t[0], "ordgroup"), "\\@char has non-numeric argument"), a = parseInt(i), o;
17235
+ var r = e.parser, i = nr(Q(t[0], "ordgroup"), "\\@char has non-numeric argument"), a = parseInt(i), o;
17222
17236
  if (isNaN(a)) throw new n("\\@char has non-numeric argument " + i);
17223
17237
  if (a < 0 || a > 1114111) throw new n("\\@char with invalid code point " + i);
17224
17238
  return a <= 65535 ? o = String.fromCharCode(a) : (a -= 65536, o = String.fromCharCode((a >> 10) + 55296, (a & 1023) + 56320)), {
@@ -17239,12 +17253,12 @@ J({
17239
17253
  type: "color",
17240
17254
  mode: n.mode,
17241
17255
  color: r,
17242
- body: cn(i)
17256
+ body: ln(i)
17243
17257
  };
17244
17258
  },
17245
- htmlBuilder: (e, t) => Wt(pn(e.body, t.withColor(e.color), !1)),
17259
+ htmlBuilder: (e, t) => Gt(mn(e.body, t.withColor(e.color), !1)),
17246
17260
  mathmlBuilder: (e, t) => {
17247
- var n = new X("mstyle", jn(e.body, t.withColor(e.color)));
17261
+ var n = new X("mstyle", Mn(e.body, t.withColor(e.color)));
17248
17262
  return n.setAttribute("mathcolor", e.color), n;
17249
17263
  }
17250
17264
  }), J({
@@ -17270,13 +17284,18 @@ J({
17270
17284
  numArgs: 0,
17271
17285
  numOptionalArgs: 0,
17272
17286
  allowedInText: !0,
17273
- handler(e, t, n) {
17274
- var r = e.parser, i = r.gullet.future().text === "[" ? r.parseSizeGroup(!0) : null, a = !r.settings.displayMode || !r.settings.useStrictBehavior("newLineInDisplayMode", "In LaTeX, \\\\ or \\newline does nothing in display mode");
17287
+ handler(e) {
17288
+ var t = e.parser, n = t.gullet.future().text === "[" ? t.parseSizeGroup(!0) : null, r = !t.settings.displayMode || !Nt({
17289
+ strict: t.settings.strict,
17290
+ errorCode: "newLineInDisplayMode",
17291
+ errorMsg: "In LaTeX, \\\\ or \\newline does nothing in display mode",
17292
+ report: !1
17293
+ });
17275
17294
  return {
17276
17295
  type: "cr",
17277
- mode: r.mode,
17278
- newLine: a,
17279
- size: i && Q(i, "size").value
17296
+ mode: t.mode,
17297
+ newLine: r,
17298
+ size: n && Q(n, "size").value
17280
17299
  };
17281
17300
  },
17282
17301
  htmlBuilder(e, t) {
@@ -17288,7 +17307,7 @@ J({
17288
17307
  return e.newLine && (n.setAttribute("linebreak", "newline"), e.size && n.setAttribute("height", A(k(e.size, t)))), n;
17289
17308
  }
17290
17309
  });
17291
- var gr = {
17310
+ var _r = {
17292
17311
  "\\global": "\\global",
17293
17312
  "\\long": "\\\\globallong",
17294
17313
  "\\\\globallong": "\\\\globallong",
@@ -17298,14 +17317,14 @@ var gr = {
17298
17317
  "\\xdef": "\\xdef",
17299
17318
  "\\let": "\\\\globallet",
17300
17319
  "\\futurelet": "\\\\globalfuture"
17301
- }, _r = (e) => {
17320
+ }, vr = (e) => {
17302
17321
  var t = e.text;
17303
17322
  if (/^(?:[\\{}$&#^_]|EOF)$/.test(t)) throw new n("Expected a control sequence", e);
17304
17323
  return t;
17305
- }, vr = (e) => {
17324
+ }, yr = (e) => {
17306
17325
  var t = e.gullet.popToken();
17307
17326
  return t.text === "=" && (t = e.gullet.popToken(), t.text === " " && (t = e.gullet.popToken())), t;
17308
- }, yr = (e, t, n, r) => {
17327
+ }, br = (e, t, n, r) => {
17309
17328
  var i = e.gullet.macros.get(n.text);
17310
17329
  i ??= (n.noexpand = !0, {
17311
17330
  tokens: [n],
@@ -17326,7 +17345,7 @@ J({
17326
17345
  var t = e.parser, r = e.funcName;
17327
17346
  t.consumeSpaces();
17328
17347
  var i = t.fetch();
17329
- if (gr[i.text]) return (r === "\\global" || r === "\\\\globallong") && (i.text = gr[i.text]), Q(t.parseFunction(), "internal");
17348
+ if (_r[i.text]) return (r === "\\global" || r === "\\\\globallong") && (i.text = _r[i.text]), Q(t.parseFunction(), "internal");
17330
17349
  throw new n("Invalid token after macro prefix", i);
17331
17350
  }
17332
17351
  }), J({
@@ -17358,7 +17377,7 @@ J({
17358
17377
  tokens: l,
17359
17378
  numArgs: o,
17360
17379
  delimiters: c
17361
- }, r === gr[r]), {
17380
+ }, r === _r[r]), {
17362
17381
  type: "internal",
17363
17382
  mode: t.mode
17364
17383
  };
@@ -17370,8 +17389,8 @@ J({
17370
17389
  allowedInText: !0,
17371
17390
  primitive: !0,
17372
17391
  handler(e) {
17373
- var t = e.parser, n = e.funcName, r = _r(t.gullet.popToken());
17374
- return t.gullet.consumeSpaces(), yr(t, r, vr(t), n === "\\\\globallet"), {
17392
+ var t = e.parser, n = e.funcName, r = vr(t.gullet.popToken());
17393
+ return t.gullet.consumeSpaces(), br(t, r, yr(t), n === "\\\\globallet"), {
17375
17394
  type: "internal",
17376
17395
  mode: t.mode
17377
17396
  };
@@ -17383,38 +17402,38 @@ J({
17383
17402
  allowedInText: !0,
17384
17403
  primitive: !0,
17385
17404
  handler(e) {
17386
- var t = e.parser, n = e.funcName, r = _r(t.gullet.popToken()), i = t.gullet.popToken(), a = t.gullet.popToken();
17387
- return yr(t, r, a, n === "\\\\globalfuture"), t.gullet.pushToken(a), t.gullet.pushToken(i), {
17405
+ var t = e.parser, n = e.funcName, r = vr(t.gullet.popToken()), i = t.gullet.popToken(), a = t.gullet.popToken();
17406
+ return br(t, r, a, n === "\\\\globalfuture"), t.gullet.pushToken(a), t.gullet.pushToken(i), {
17388
17407
  type: "internal",
17389
17408
  mode: t.mode
17390
17409
  };
17391
17410
  }
17392
17411
  });
17393
- var br = function(e, t, n) {
17412
+ var xr = function(e, t, n) {
17394
17413
  var r = Je(j.math[e] && j.math[e].replace || e, t, n);
17395
17414
  if (!r) throw Error("Unsupported symbol " + e + " and font size " + t + ".");
17396
17415
  return r;
17397
- }, xr = function(e, t, n, r) {
17416
+ }, Sr = function(e, t, n, r) {
17398
17417
  var i = n.havingBaseStyle(t), a = G(r.concat(i.sizingClasses(n)), [e], n), o = i.sizeMultiplier / n.sizeMultiplier;
17399
17418
  return a.height *= o, a.depth *= o, a.maxFontSize = i.sizeMultiplier, a;
17400
- }, Sr = function(e, t, n) {
17419
+ }, Cr = function(e, t, n) {
17401
17420
  var r = t.havingBaseStyle(n), i = (1 - t.sizeMultiplier / r.sizeMultiplier) * t.fontMetrics().axisHeight;
17402
17421
  e.classes.push("delimcenter"), e.style.top = A(i), e.height -= i, e.depth += i;
17403
- }, Cr = function(e, t, n, r, i, a) {
17404
- var o = xr(Pt(e, "Main-Regular", i, r), t, r, a);
17405
- return n && Sr(o, r, t), o;
17406
- }, wr = function(e, t, n, r) {
17407
- return Pt(e, "Size" + t + "-Regular", n, r);
17408
- }, Tr = function(e, t, n, r, i, a) {
17409
- var o = wr(e, t, i, r), s = xr(G(["delimsizing", "size" + t], [o], r), D.TEXT, r, a);
17410
- return n && Sr(s, r, D.TEXT), s;
17411
- }, Er = function(e, t, n) {
17422
+ }, wr = function(e, t, n, r, i, a) {
17423
+ var o = Sr(Ft(e, "Main-Regular", i, r), t, r, a);
17424
+ return n && Cr(o, r, t), o;
17425
+ }, Tr = function(e, t, n, r) {
17426
+ return Ft(e, "Size" + t + "-Regular", n, r);
17427
+ }, Er = function(e, t, n, r, i, a) {
17428
+ var o = Tr(e, t, i, r), s = Sr(G(["delimsizing", "size" + t], [o], r), D.TEXT, r, a);
17429
+ return n && Cr(s, r, D.TEXT), s;
17430
+ }, Dr = function(e, t, n, r) {
17412
17431
  return {
17413
17432
  type: "elem",
17414
- elem: G(["delimsizinginner", t === "Size1-Regular" ? "delim-size1" : "delim-size4"], [G([], [Pt(e, t, n)])])
17433
+ elem: G(["delimsizinginner", t === "Size1-Regular" ? "delim-size1" : "delim-size4"], [G([], [Ft(e, t, n, r)])])
17415
17434
  };
17416
- }, Dr = function(e, t, n) {
17417
- var r = We["Size4-Regular"][e.charCodeAt(0)] ? We["Size4-Regular"][e.charCodeAt(0)][4] : We["Size1-Regular"][e.charCodeAt(0)][4], i = Vt([], [new Re([new ze("inner", ye(e, Math.round(1e3 * t)))], {
17435
+ }, Or = function(e, t, n) {
17436
+ var r = We["Size4-Regular"][e.charCodeAt(0)] ? We["Size4-Regular"][e.charCodeAt(0)][4] : We["Size1-Regular"][e.charCodeAt(0)][4], i = Ht([], [new Re([new ze("inner", ye(e, Math.round(1e3 * t)))], {
17418
17437
  width: A(r),
17419
17438
  height: A(t),
17420
17439
  style: "width:" + A(r),
@@ -17425,34 +17444,34 @@ var br = function(e, t, n) {
17425
17444
  type: "elem",
17426
17445
  elem: i
17427
17446
  };
17428
- }, Or = .008, kr = {
17447
+ }, kr = .008, Ar = {
17429
17448
  type: "kern",
17430
- size: -1 * Or
17431
- }, Ar = /* @__PURE__ */ new Set([
17449
+ size: -1 * kr
17450
+ }, jr = /* @__PURE__ */ new Set([
17432
17451
  "|",
17433
17452
  "\\lvert",
17434
17453
  "\\rvert",
17435
17454
  "\\vert"
17436
- ]), jr = /* @__PURE__ */ new Set([
17455
+ ]), Mr = /* @__PURE__ */ new Set([
17437
17456
  "\\|",
17438
17457
  "\\lVert",
17439
17458
  "\\rVert",
17440
17459
  "\\Vert"
17441
- ]), Mr = function(e, t, n, r, i, a) {
17460
+ ]), Nr = function(e, t, n, r, i, a) {
17442
17461
  var o, s, c, l, u = "", d = 0;
17443
17462
  o = c = l = e, s = null;
17444
17463
  var f = "Size1-Regular";
17445
- e === "\\uparrow" ? c = l = "⏐" : e === "\\Uparrow" ? c = l = "‖" : e === "\\downarrow" ? o = c = "⏐" : e === "\\Downarrow" ? o = c = "‖" : e === "\\updownarrow" ? (o = "\\uparrow", c = "⏐", l = "\\downarrow") : e === "\\Updownarrow" ? (o = "\\Uparrow", c = "‖", l = "\\Downarrow") : Ar.has(e) ? (c = "∣", u = "vert", d = 333) : jr.has(e) ? (c = "∥", u = "doublevert", d = 556) : e === "[" || e === "\\lbrack" ? (o = "⎡", c = "⎢", l = "⎣", f = "Size4-Regular", u = "lbrack", d = 667) : e === "]" || e === "\\rbrack" ? (o = "⎤", c = "⎥", l = "⎦", f = "Size4-Regular", u = "rbrack", d = 667) : e === "\\lfloor" || e === "⌊" ? (c = o = "⎢", l = "⎣", f = "Size4-Regular", u = "lfloor", d = 667) : e === "\\lceil" || e === "⌈" ? (o = "⎡", c = l = "⎢", f = "Size4-Regular", u = "lceil", d = 667) : e === "\\rfloor" || e === "⌋" ? (c = o = "⎥", l = "⎦", f = "Size4-Regular", u = "rfloor", d = 667) : e === "\\rceil" || e === "⌉" ? (o = "⎤", c = l = "⎥", f = "Size4-Regular", u = "rceil", d = 667) : e === "(" || e === "\\lparen" ? (o = "⎛", c = "⎜", l = "⎝", f = "Size4-Regular", u = "lparen", d = 875) : e === ")" || e === "\\rparen" ? (o = "⎞", c = "⎟", l = "⎠", f = "Size4-Regular", u = "rparen", d = 875) : e === "\\{" || e === "\\lbrace" ? (o = "⎧", s = "⎨", l = "⎩", c = "⎪", f = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (o = "⎫", s = "⎬", l = "⎭", c = "⎪", f = "Size4-Regular") : e === "\\lgroup" || e === "⟮" ? (o = "⎧", l = "⎩", c = "⎪", f = "Size4-Regular") : e === "\\rgroup" || e === "⟯" ? (o = "⎫", l = "⎭", c = "⎪", f = "Size4-Regular") : e === "\\lmoustache" || e === "⎰" ? (o = "⎧", l = "⎭", c = "⎪", f = "Size4-Regular") : (e === "\\rmoustache" || e === "⎱") && (o = "⎫", l = "⎩", c = "⎪", f = "Size4-Regular");
17446
- var p = br(o, f, i), m = p.height + p.depth, h = br(c, f, i), g = h.height + h.depth, _ = br(l, f, i), v = _.height + _.depth, y = 0, b = 1;
17464
+ e === "\\uparrow" ? c = l = "⏐" : e === "\\Uparrow" ? c = l = "‖" : e === "\\downarrow" ? o = c = "⏐" : e === "\\Downarrow" ? o = c = "‖" : e === "\\updownarrow" ? (o = "\\uparrow", c = "⏐", l = "\\downarrow") : e === "\\Updownarrow" ? (o = "\\Uparrow", c = "‖", l = "\\Downarrow") : jr.has(e) ? (c = "∣", u = "vert", d = 333) : Mr.has(e) ? (c = "∥", u = "doublevert", d = 556) : e === "[" || e === "\\lbrack" ? (o = "⎡", c = "⎢", l = "⎣", f = "Size4-Regular", u = "lbrack", d = 667) : e === "]" || e === "\\rbrack" ? (o = "⎤", c = "⎥", l = "⎦", f = "Size4-Regular", u = "rbrack", d = 667) : e === "\\lfloor" || e === "⌊" ? (c = o = "⎢", l = "⎣", f = "Size4-Regular", u = "lfloor", d = 667) : e === "\\lceil" || e === "⌈" ? (o = "⎡", c = l = "⎢", f = "Size4-Regular", u = "lceil", d = 667) : e === "\\rfloor" || e === "⌋" ? (c = o = "⎥", l = "⎦", f = "Size4-Regular", u = "rfloor", d = 667) : e === "\\rceil" || e === "⌉" ? (o = "⎤", c = l = "⎥", f = "Size4-Regular", u = "rceil", d = 667) : e === "(" || e === "\\lparen" ? (o = "⎛", c = "⎜", l = "⎝", f = "Size4-Regular", u = "lparen", d = 875) : e === ")" || e === "\\rparen" ? (o = "⎞", c = "⎟", l = "⎠", f = "Size4-Regular", u = "rparen", d = 875) : e === "\\{" || e === "\\lbrace" ? (o = "⎧", s = "⎨", l = "⎩", c = "⎪", f = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (o = "⎫", s = "⎬", l = "⎭", c = "⎪", f = "Size4-Regular") : e === "\\lgroup" || e === "⟮" ? (o = "⎧", l = "⎩", c = "⎪", f = "Size4-Regular") : e === "\\rgroup" || e === "⟯" ? (o = "⎫", l = "⎭", c = "⎪", f = "Size4-Regular") : e === "\\lmoustache" || e === "⎰" ? (o = "⎧", l = "⎭", c = "⎪", f = "Size4-Regular") : (e === "\\rmoustache" || e === "⎱") && (o = "⎫", l = "⎩", c = "⎪", f = "Size4-Regular");
17465
+ var p = xr(o, f, i), m = p.height + p.depth, h = xr(c, f, i), g = h.height + h.depth, _ = xr(l, f, i), v = _.height + _.depth, y = 0, b = 1;
17447
17466
  if (s !== null) {
17448
- var x = br(s, f, i);
17467
+ var x = xr(s, f, i);
17449
17468
  y = x.height + x.depth, b = 2;
17450
17469
  }
17451
17470
  var S = m + v + y, C = S + Math.max(0, Math.ceil((t - S) / (b * g))) * b * g, w = r.fontMetrics().axisHeight;
17452
17471
  n && (w *= r.sizeMultiplier);
17453
17472
  var T = C / 2 - w, E = [];
17454
17473
  if (u.length > 0) {
17455
- var ee = C - m - v, te = Math.round(C * 1e3), ne = xe(u, Math.round(ee * 1e3)), re = new ze(u, ne), ie = A(d / 1e3), ae = A(te / 1e3), oe = Vt([], [new Re([re], {
17474
+ var ee = C - m - v, te = Math.round(C * 1e3), ne = xe(u, Math.round(ee * 1e3)), re = new ze(u, ne), ie = A(d / 1e3), ae = A(te / 1e3), oe = Ht([], [new Re([re], {
17456
17475
  width: ie,
17457
17476
  height: ae,
17458
17477
  viewBox: "0 0 " + d + " " + te
@@ -17462,36 +17481,36 @@ var br = function(e, t, n) {
17462
17481
  elem: oe
17463
17482
  });
17464
17483
  } else {
17465
- if (E.push(Er(l, f, i)), E.push(kr), s === null) {
17466
- var se = C - m - v + 2 * Or;
17467
- E.push(Dr(c, se, r));
17484
+ if (E.push(Dr(l, f, i, r)), E.push(Ar), s === null) {
17485
+ var se = C - m - v + 2 * kr;
17486
+ E.push(Or(c, se, r));
17468
17487
  } else {
17469
- var ce = (C - m - v - y) / 2 + 2 * Or;
17470
- E.push(Dr(c, ce, r)), E.push(kr), E.push(Er(s, f, i)), E.push(kr), E.push(Dr(c, ce, r));
17488
+ var ce = (C - m - v - y) / 2 + 2 * kr;
17489
+ E.push(Or(c, ce, r)), E.push(Ar), E.push(Dr(s, f, i, r)), E.push(Ar), E.push(Or(c, ce, r));
17471
17490
  }
17472
- E.push(kr), E.push(Er(o, f, i));
17491
+ E.push(Ar), E.push(Dr(o, f, i, r));
17473
17492
  }
17474
17493
  var le = r.havingBaseStyle(D.TEXT);
17475
- return xr(G(["delimsizing", "mult"], [K({
17494
+ return Sr(G(["delimsizing", "mult"], [K({
17476
17495
  positionType: "bottom",
17477
17496
  positionData: T,
17478
17497
  children: E
17479
17498
  })], le), D.TEXT, r, a);
17480
- }, Nr = 80, Pr = .08, Fr = function(e, t, n, r, i) {
17481
- return Vt(["hide-tail"], [new Re([new ze(e, ve(e, r, n))], {
17499
+ }, Pr = 80, Fr = .08, Ir = function(e, t, n, r, i) {
17500
+ return Ht(["hide-tail"], [new Re([new ze(e, ve(e, r, n))], {
17482
17501
  width: "400em",
17483
17502
  height: A(t),
17484
17503
  viewBox: "0 0 400000 " + n,
17485
17504
  preserveAspectRatio: "xMinYMin slice"
17486
17505
  })], i);
17487
- }, Ir = function(e, t) {
17488
- var n = t.havingBaseSizing(), r = Kr("\\surd", e * n.sizeMultiplier, Wr, n), i = n.sizeMultiplier, a = Math.max(0, t.minRuleThickness - t.fontMetrics().sqrtRuleThickness), o, s, c, l, u;
17489
- return r.type === "small" ? (l = 1e3 + 1e3 * a + Nr, e < 1 ? i = 1 : e < 1.4 && (i = .7), s = (1 + a + Pr) / i, c = (1 + a) / i, o = Fr("sqrtMain", s, l, a, t), o.style.minWidth = "0.853em", u = .833 / i) : r.type === "large" ? (l = (1e3 + Nr) * Br[r.size], c = (Br[r.size] + a) / i, s = (Br[r.size] + a + Pr) / i, o = Fr("sqrtSize" + r.size, s, l, a, t), o.style.minWidth = "1.02em", u = 1 / i) : (s = e + a + Pr, c = e + a, l = Math.floor(1e3 * e + a) + Nr, o = Fr("sqrtTall", s, l, a, t), o.style.minWidth = "0.742em", u = 1.056), o.height = c, o.style.height = A(s), {
17506
+ }, Lr = function(e, t) {
17507
+ var n = t.havingBaseSizing(), r = qr("\\surd", e * n.sizeMultiplier, Gr, n), i = n.sizeMultiplier, a = Math.max(0, t.minRuleThickness - t.fontMetrics().sqrtRuleThickness), o, s, c, l, u;
17508
+ return r.type === "small" ? (l = 1e3 + 1e3 * a + Pr, e < 1 ? i = 1 : e < 1.4 && (i = .7), s = (1 + a + Fr) / i, c = (1 + a) / i, o = Ir("sqrtMain", s, l, a, t), o.style.minWidth = "0.853em", u = .833 / i) : r.type === "large" ? (l = (1e3 + Pr) * Vr[r.size], c = (Vr[r.size] + a) / i, s = (Vr[r.size] + a + Fr) / i, o = Ir("sqrtSize" + r.size, s, l, a, t), o.style.minWidth = "1.02em", u = 1 / i) : (s = e + a + Fr, c = e + a, l = Math.floor(1e3 * e + a) + Pr, o = Ir("sqrtTall", s, l, a, t), o.style.minWidth = "0.742em", u = 1.056), o.height = c, o.style.height = A(s), {
17490
17509
  span: o,
17491
17510
  advanceWidth: u,
17492
17511
  ruleWidth: (t.fontMetrics().sqrtRuleThickness + a) * i
17493
17512
  };
17494
- }, Lr = /* @__PURE__ */ new Set([
17513
+ }, Rr = /* @__PURE__ */ new Set([
17495
17514
  "(",
17496
17515
  "\\lparen",
17497
17516
  ")",
@@ -17513,7 +17532,7 @@ var br = function(e, t, n) {
17513
17532
  "⌈",
17514
17533
  "⌉",
17515
17534
  "\\surd"
17516
- ]), Rr = /* @__PURE__ */ new Set([
17535
+ ]), zr = /* @__PURE__ */ new Set([
17517
17536
  "\\uparrow",
17518
17537
  "\\downarrow",
17519
17538
  "\\updownarrow",
@@ -17536,7 +17555,7 @@ var br = function(e, t, n) {
17536
17555
  "\\rmoustache",
17537
17556
  "⎰",
17538
17557
  "⎱"
17539
- ]), zr = /* @__PURE__ */ new Set([
17558
+ ]), Br = /* @__PURE__ */ new Set([
17540
17559
  "<",
17541
17560
  ">",
17542
17561
  "\\langle",
@@ -17545,17 +17564,17 @@ var br = function(e, t, n) {
17545
17564
  "\\backslash",
17546
17565
  "\\lt",
17547
17566
  "\\gt"
17548
- ]), Br = [
17567
+ ]), Vr = [
17549
17568
  0,
17550
17569
  1.2,
17551
17570
  1.8,
17552
17571
  2.4,
17553
17572
  3
17554
- ], Vr = function(e, t, r, i, a) {
17555
- if (e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle"), Lr.has(e) || zr.has(e)) return Tr(e, t, !1, r, i, a);
17556
- if (Rr.has(e)) return Mr(e, Br[t], !1, r, i, a);
17573
+ ], Hr = function(e, t, r, i, a) {
17574
+ if (e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle"), Rr.has(e) || Br.has(e)) return Er(e, t, !1, r, i, a);
17575
+ if (zr.has(e)) return Nr(e, Vr[t], !1, r, i, a);
17557
17576
  throw new n("Illegal delimiter: '" + e + "'");
17558
- }, Hr = [
17577
+ }, Ur = [
17559
17578
  {
17560
17579
  type: "small",
17561
17580
  style: D.SCRIPTSCRIPT
@@ -17584,7 +17603,7 @@ var br = function(e, t, n) {
17584
17603
  type: "large",
17585
17604
  size: 4
17586
17605
  }
17587
- ], Ur = [
17606
+ ], Wr = [
17588
17607
  {
17589
17608
  type: "small",
17590
17609
  style: D.SCRIPTSCRIPT
@@ -17598,7 +17617,7 @@ var br = function(e, t, n) {
17598
17617
  style: D.TEXT
17599
17618
  },
17600
17619
  { type: "stack" }
17601
- ], Wr = [
17620
+ ], Gr = [
17602
17621
  {
17603
17622
  type: "small",
17604
17623
  style: D.SCRIPTSCRIPT
@@ -17628,17 +17647,17 @@ var br = function(e, t, n) {
17628
17647
  size: 4
17629
17648
  },
17630
17649
  { type: "stack" }
17631
- ], Gr = function(e) {
17650
+ ], Kr = function(e) {
17632
17651
  if (e.type === "small") return "Main-Regular";
17633
17652
  if (e.type === "large") return "Size" + e.size + "-Regular";
17634
17653
  if (e.type === "stack") return "Size4-Regular";
17635
17654
  var t = e.type;
17636
17655
  throw Error("Add support for delim type '" + t + "' here.");
17637
- }, Kr = function(e, t, n, r) {
17656
+ }, qr = function(e, t, n, r) {
17638
17657
  for (var i = Math.min(2, 3 - r.style.size); i < n.length; i++) {
17639
17658
  var a = n[i];
17640
17659
  if (a.type === "stack") break;
17641
- var o = br(e, Gr(a), "math"), s = o.height + o.depth;
17660
+ var o = xr(e, Kr(a), "math"), s = o.height + o.depth;
17642
17661
  if (a.type === "small") {
17643
17662
  var c = r.havingBaseStyle(a.style);
17644
17663
  s *= c.sizeMultiplier;
@@ -17646,14 +17665,14 @@ var br = function(e, t, n) {
17646
17665
  if (s > t) return a;
17647
17666
  }
17648
17667
  return n[n.length - 1];
17649
- }, qr = function(e, t, n, r, i, a) {
17650
- e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle");
17651
- var o = zr.has(e) ? Hr : Lr.has(e) ? Wr : Ur, s = Kr(e, t, o, r);
17652
- return s.type === "small" ? Cr(e, s.style, n, r, i, a) : s.type === "large" ? Tr(e, s.size, n, r, i, a) : Mr(e, t, n, r, i, a);
17653
17668
  }, Jr = function(e, t, n, r, i, a) {
17669
+ e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle");
17670
+ var o = Br.has(e) ? Ur : Rr.has(e) ? Gr : Wr, s = qr(e, t, o, r);
17671
+ return s.type === "small" ? wr(e, s.style, n, r, i, a) : s.type === "large" ? Er(e, s.size, n, r, i, a) : Nr(e, t, n, r, i, a);
17672
+ }, Yr = function(e, t, n, r, i, a) {
17654
17673
  var o = r.fontMetrics().axisHeight * r.sizeMultiplier, s = 901, c = 5 / r.fontMetrics().ptPerEm, l = Math.max(t - o, n + o);
17655
- return qr(e, Math.max(l / 500 * s, 2 * l - c), !0, r, i, a);
17656
- }, Yr = {
17674
+ return Jr(e, Math.max(l / 500 * s, 2 * l - c), !0, r, i, a);
17675
+ }, Xr = {
17657
17676
  "\\bigl": {
17658
17677
  mclass: "mopen",
17659
17678
  size: 1
@@ -17718,13 +17737,13 @@ var br = function(e, t, n) {
17718
17737
  mclass: "mord",
17719
17738
  size: 4
17720
17739
  }
17721
- }, Xr = /* @__PURE__ */ new Set(/* @__PURE__ */ "(,\\lparen,),\\rparen,[,\\lbrack,],\\rbrack,\\{,\\lbrace,\\},\\rbrace,\\lfloor,\\rfloor,⌊,⌋,\\lceil,\\rceil,⌈,⌉,<,>,\\langle,⟨,\\rangle,⟩,\\lt,\\gt,\\lvert,\\rvert,\\lVert,\\rVert,\\lgroup,\\rgroup,⟮,⟯,\\lmoustache,\\rmoustache,⎰,⎱,/,\\backslash,|,\\vert,\\|,\\Vert,\\uparrow,\\Uparrow,\\downarrow,\\Downarrow,\\updownarrow,\\Updownarrow,.".split(","));
17722
- function Zr(e) {
17740
+ }, Zr = /* @__PURE__ */ new Set(/* @__PURE__ */ "(,\\lparen,),\\rparen,[,\\lbrack,],\\rbrack,\\{,\\lbrace,\\},\\rbrace,\\lfloor,\\rfloor,⌊,⌋,\\lceil,\\rceil,⌈,⌉,<,>,\\langle,⟨,\\rangle,⟩,\\lt,\\gt,\\lvert,\\rvert,\\lVert,\\rVert,\\lgroup,\\rgroup,⟮,⟯,\\lmoustache,\\rmoustache,⎰,⎱,/,\\backslash,|,\\vert,\\|,\\Vert,\\uparrow,\\Uparrow,\\downarrow,\\Downarrow,\\updownarrow,\\Updownarrow,.".split(","));
17741
+ function Qr(e) {
17723
17742
  return "isMiddle" in e;
17724
17743
  }
17725
- function Qr(e, t) {
17726
- var r = er(e);
17727
- if (r && Xr.has(r.text)) return r;
17744
+ function $r(e, t) {
17745
+ var r = tr(e);
17746
+ if (r && Zr.has(r.text)) return r;
17728
17747
  throw r ? new n("Invalid delimiter '" + r.text + "' after '" + t.funcName + "'", e) : new n("Invalid delimiter type '" + e.type + "'", e);
17729
17748
  }
17730
17749
  J({
@@ -17750,26 +17769,26 @@ J({
17750
17769
  numArgs: 1,
17751
17770
  argTypes: ["primitive"],
17752
17771
  handler: (e, t) => {
17753
- var n = Qr(sn(t[0]), e);
17772
+ var n = $r(cn(t[0]), e);
17754
17773
  return {
17755
17774
  type: "delimsizing",
17756
17775
  mode: e.parser.mode,
17757
- size: Yr[e.funcName].size,
17758
- mclass: Yr[e.funcName].mclass,
17776
+ size: Xr[e.funcName].size,
17777
+ mclass: Xr[e.funcName].mclass,
17759
17778
  delim: n.text
17760
17779
  };
17761
17780
  },
17762
- htmlBuilder: (e, t) => e.delim === "." ? G([e.mclass]) : Vr(e.delim, e.size, t, e.mode, [e.mclass]),
17781
+ htmlBuilder: (e, t) => e.delim === "." ? G([e.mclass]) : Hr(e.delim, e.size, t, e.mode, [e.mclass]),
17763
17782
  mathmlBuilder: (e) => {
17764
17783
  var t = [];
17765
- e.delim !== "." && t.push(En(e.delim, e.mode));
17784
+ e.delim !== "." && t.push(Dn(e.delim, e.mode));
17766
17785
  var n = new X("mo", t);
17767
17786
  e.mclass === "mopen" || e.mclass === "mclose" ? n.setAttribute("fence", "true") : n.setAttribute("fence", "false"), n.setAttribute("stretchy", "true");
17768
- var r = A(Br[e.size]);
17787
+ var r = A(Vr[e.size]);
17769
17788
  return n.setAttribute("minsize", r), n.setAttribute("maxsize", r), n;
17770
17789
  }
17771
17790
  });
17772
- function $r(e) {
17791
+ function ei(e) {
17773
17792
  if (!e.body) throw Error("Bug: The leftright ParseNode wasn't fully parsed.");
17774
17793
  }
17775
17794
  J({
@@ -17783,7 +17802,7 @@ J({
17783
17802
  return {
17784
17803
  type: "leftright-right",
17785
17804
  mode: e.parser.mode,
17786
- delim: Qr(t[0], e).text,
17805
+ delim: $r(t[0], e).text,
17787
17806
  color: r
17788
17807
  };
17789
17808
  }
@@ -17793,7 +17812,7 @@ J({
17793
17812
  numArgs: 1,
17794
17813
  primitive: !0,
17795
17814
  handler: (e, t) => {
17796
- var n = Qr(t[0], e), r = e.parser;
17815
+ var n = $r(t[0], e), r = e.parser;
17797
17816
  ++r.leftrightDepth;
17798
17817
  var i = r.parseExpression(!1);
17799
17818
  --r.leftrightDepth, r.expect("\\right", !1);
@@ -17808,40 +17827,40 @@ J({
17808
17827
  };
17809
17828
  },
17810
17829
  htmlBuilder: (e, t) => {
17811
- $r(e);
17812
- for (var n = pn(e.body, t, !0, ["mopen", "mclose"]), r = 0, i = 0, a = !1, o = 0; o < n.length; o++) {
17830
+ ei(e);
17831
+ for (var n = mn(e.body, t, !0, ["mopen", "mclose"]), r = 0, i = 0, a = !1, o = 0; o < n.length; o++) {
17813
17832
  var s = n[o];
17814
- Zr(s) ? a = !0 : (r = Math.max(n[o].height, r), i = Math.max(n[o].depth, i));
17833
+ Qr(s) ? a = !0 : (r = Math.max(n[o].height, r), i = Math.max(n[o].depth, i));
17815
17834
  }
17816
17835
  r *= t.sizeMultiplier, i *= t.sizeMultiplier;
17817
- var c = e.left === "." ? vn(t, ["mopen"]) : Jr(e.left, r, i, t, e.mode, ["mopen"]);
17836
+ var c = e.left === "." ? yn(t, ["mopen"]) : Yr(e.left, r, i, t, e.mode, ["mopen"]);
17818
17837
  if (n.unshift(c), a) for (var l = 1; l < n.length; l++) {
17819
17838
  var u = n[l];
17820
- if (Zr(u)) {
17839
+ if (Qr(u)) {
17821
17840
  var d = u.isMiddle;
17822
- n[l] = Jr(d.delim, r, i, d.options, e.mode, []);
17841
+ n[l] = Yr(d.delim, r, i, d.options, e.mode, []);
17823
17842
  }
17824
17843
  }
17825
17844
  var f;
17826
- if (e.right === ".") f = vn(t, ["mclose"]);
17845
+ if (e.right === ".") f = yn(t, ["mclose"]);
17827
17846
  else {
17828
17847
  var p = e.rightColor ? t.withColor(e.rightColor) : t;
17829
- f = Jr(e.right, r, i, p, e.mode, ["mclose"]);
17848
+ f = Yr(e.right, r, i, p, e.mode, ["mclose"]);
17830
17849
  }
17831
17850
  return n.push(f), G(["minner"], n, t);
17832
17851
  },
17833
17852
  mathmlBuilder: (e, t) => {
17834
- $r(e);
17835
- var n = jn(e.body, t);
17853
+ ei(e);
17854
+ var n = Mn(e.body, t);
17836
17855
  if (e.left !== ".") {
17837
- var r = new X("mo", [En(e.left, e.mode)]);
17856
+ var r = new X("mo", [Dn(e.left, e.mode)]);
17838
17857
  r.setAttribute("fence", "true"), n.unshift(r);
17839
17858
  }
17840
17859
  if (e.right !== ".") {
17841
- var i = new X("mo", [En(e.right, e.mode)]);
17860
+ var i = new X("mo", [Dn(e.right, e.mode)]);
17842
17861
  i.setAttribute("fence", "true"), e.rightColor && i.setAttribute("mathcolor", e.rightColor), n.push(i);
17843
17862
  }
17844
- return Dn(n);
17863
+ return On(n);
17845
17864
  }
17846
17865
  }), J({
17847
17866
  type: "middle",
@@ -17849,7 +17868,7 @@ J({
17849
17868
  numArgs: 1,
17850
17869
  primitive: !0,
17851
17870
  handler: (e, t) => {
17852
- var r = Qr(t[0], e);
17871
+ var r = $r(t[0], e);
17853
17872
  if (!e.parser.leftrightDepth) throw new n("\\middle without preceding \\left", r);
17854
17873
  return {
17855
17874
  type: "middle",
@@ -17859,13 +17878,13 @@ J({
17859
17878
  },
17860
17879
  htmlBuilder: (e, t) => {
17861
17880
  var n;
17862
- return e.delim === "." ? n = vn(t, []) : (n = Vr(e.delim, 1, t, e.mode, []), n.isMiddle = {
17881
+ return e.delim === "." ? n = yn(t, []) : (n = Hr(e.delim, 1, t, e.mode, []), n.isMiddle = {
17863
17882
  delim: e.delim,
17864
17883
  options: t
17865
17884
  }), n;
17866
17885
  },
17867
17886
  mathmlBuilder: (e, t) => {
17868
- var n = new X("mo", [e.delim === "\\vert" || e.delim === "|" ? En("|", "text") : En(e.delim, e.mode)]);
17887
+ var n = new X("mo", [e.delim === "\\vert" || e.delim === "|" ? Dn("|", "text") : Dn(e.delim, e.mode)]);
17869
17888
  return n.setAttribute("fence", "true"), n.setAttribute("lspace", "0.05em"), n.setAttribute("rspace", "0.05em"), n;
17870
17889
  }
17871
17890
  }), J({
@@ -17885,7 +17904,7 @@ J({
17885
17904
  };
17886
17905
  },
17887
17906
  htmlBuilder: (e, t) => {
17888
- var n = Gt(Y(e.body, t), t), r = e.label.slice(1), i = t.sizeMultiplier, a, o, s = u(e.body);
17907
+ var n = Kt(Y(e.body, t), t), r = e.label.slice(1), i = t.sizeMultiplier, a, o, s = u(e.body);
17889
17908
  if (r === "sout") a = G(["katex-stretchy", "katex-sout"]), a.height = t.fontMetrics().defaultRuleThickness / i, o = -.5 * t.fontMetrics().xHeight;
17890
17909
  else if (r === "phase") {
17891
17910
  var c = k({
@@ -17899,7 +17918,7 @@ J({
17899
17918
  var f = n.height + n.depth + c + l;
17900
17919
  n.style.paddingLeft = A(f / 2 + c);
17901
17920
  var p = Math.floor(1e3 * f * i);
17902
- a = Vt(["hide-tail"], [new Re([new ze("phase", ge(p))], {
17921
+ a = Ht(["hide-tail"], [new Re([new ze("phase", ge(p))], {
17903
17922
  width: "400em",
17904
17923
  height: A(p / 1e3),
17905
17924
  viewBox: "0 0 400000 " + p,
@@ -17908,7 +17927,7 @@ J({
17908
17927
  } else {
17909
17928
  /cancel/.test(r) ? s || n.classes.push("cancel-pad") : r === "angl" ? n.classes.push("anglpad") : n.classes.push("boxpad");
17910
17929
  var m, h, g = 0;
17911
- /box/.test(r) ? (g = Math.max(t.fontMetrics().fboxrule, t.minRuleThickness), m = t.fontMetrics().fboxsep + (r === "colorbox" ? 0 : g), h = m) : r === "angl" ? (g = Math.max(t.fontMetrics().defaultRuleThickness, t.minRuleThickness), m = 4 * g, h = Math.max(0, .25 - n.depth)) : (m = s ? .2 : 0, h = m), a = qn(n, r, m, h, t), /fbox|boxed|fcolorbox/.test(r) ? (a.style.borderStyle = "solid", a.style.borderWidth = A(g)) : r === "angl" && g !== .049 && (a.style.borderTopWidth = A(g), a.style.borderRightWidth = A(g)), o = n.depth + h, e.backgroundColor && (a.style.backgroundColor = e.backgroundColor, e.borderColor && (a.style.borderColor = e.borderColor));
17930
+ /box/.test(r) ? (g = Math.max(t.fontMetrics().fboxrule, t.minRuleThickness), m = t.fontMetrics().fboxsep + (r === "colorbox" ? 0 : g), h = m) : r === "angl" ? (g = Math.max(t.fontMetrics().defaultRuleThickness, t.minRuleThickness), m = 4 * g, h = Math.max(0, .25 - n.depth)) : (m = s ? .2 : 0, h = m), a = Jn(n, r, m, h, t), /fbox|boxed|fcolorbox/.test(r) ? (a.style.borderStyle = "solid", a.style.borderWidth = A(g)) : r === "angl" && g !== .049 && (a.style.borderTopWidth = A(g), a.style.borderRightWidth = A(g)), o = n.depth + h, e.backgroundColor && (a.style.backgroundColor = e.backgroundColor, e.borderColor && (a.style.borderColor = e.borderColor));
17912
17931
  }
17913
17932
  var _;
17914
17933
  if (e.backgroundColor) _ = K({
@@ -18033,7 +18052,12 @@ J({
18033
18052
  allowedInText: !0,
18034
18053
  handler(e, t) {
18035
18054
  var n = e.parser, r = e.funcName;
18036
- n.mode === "math" && n.settings.reportNonstrict("mathVsSout", "LaTeX's \\sout works only in text mode");
18055
+ n.mode === "math" && Nt({
18056
+ strict: n.settings.strict,
18057
+ errorCode: "mathVsSout",
18058
+ errorMsg: "LaTeX's \\sout works only in text mode",
18059
+ report: !0
18060
+ });
18037
18061
  var i = t[0];
18038
18062
  return {
18039
18063
  type: "enclose",
@@ -18057,50 +18081,50 @@ J({
18057
18081
  };
18058
18082
  }
18059
18083
  });
18060
- var ei = {};
18061
- function ti(e) {
18084
+ var ti = {};
18085
+ function ni(e) {
18062
18086
  for (var t = e.type, n = e.names, r = e.props, i = e.handler, a = e.htmlBuilder, o = e.mathmlBuilder, s = {
18063
18087
  type: t,
18064
18088
  numArgs: r.numArgs || 0,
18065
18089
  allowedInText: !1,
18066
18090
  numOptionalArgs: 0,
18067
18091
  handler: i
18068
- }, c = 0; c < n.length; ++c) ei[n[c]] = s;
18069
- a && (rn[t] = a), o && (an[t] = o);
18092
+ }, c = 0; c < n.length; ++c) ti[n[c]] = s;
18093
+ a && (an[t] = a), o && (on[t] = o);
18070
18094
  }
18071
- var ni = {};
18095
+ var ri = {};
18072
18096
  function $(e, t) {
18073
- ni[e] = t;
18097
+ ri[e] = t;
18074
18098
  }
18075
- var ri = class e {
18099
+ var ii = class e {
18076
18100
  constructor(e, t, n) {
18077
18101
  this.lexer = void 0, this.start = void 0, this.end = void 0, this.lexer = e, this.start = t, this.end = n;
18078
18102
  }
18079
18103
  static range(t, n) {
18080
18104
  return n ? !t || !t.loc || !n.loc || t.loc.lexer !== n.loc.lexer ? null : new e(t.loc.lexer, t.loc.start, n.loc.end) : t && t.loc;
18081
18105
  }
18082
- }, ii = class e {
18106
+ }, ai = class e {
18083
18107
  constructor(e, t) {
18084
18108
  this.text = void 0, this.loc = void 0, this.noexpand = void 0, this.treatAsRelax = void 0, this.text = e, this.loc = t;
18085
18109
  }
18086
18110
  range(t, n) {
18087
- return new e(n, ri.range(this, t));
18111
+ return new e(n, ii.range(this, t));
18088
18112
  }
18089
18113
  };
18090
- function ai(e) {
18114
+ function oi(e) {
18091
18115
  var t = [];
18092
18116
  e.consumeSpaces();
18093
18117
  var n = e.fetch().text;
18094
18118
  for (n === "\\relax" && (e.consume(), e.consumeSpaces(), n = e.fetch().text); n === "\\hline" || n === "\\hdashline";) e.consume(), t.push(n === "\\hdashline"), e.consumeSpaces(), n = e.fetch().text;
18095
18119
  return t;
18096
18120
  }
18097
- var oi = (e) => {
18121
+ var si = (e) => {
18098
18122
  if (!e.parser.settings.displayMode) throw new n("{" + e.envName + "} can be used only in display mode.");
18099
- }, si = /* @__PURE__ */ new Set(["gather", "gather*"]);
18100
- function ci(e) {
18123
+ }, ci = /* @__PURE__ */ new Set(["gather", "gather*"]);
18124
+ function li(e) {
18101
18125
  if (!e.includes("ed")) return !e.includes("*");
18102
18126
  }
18103
- function li(e, t, r) {
18127
+ function ui(e, t, r) {
18104
18128
  var i = t.hskipBeforeAndAfter, a = t.addJot, o = t.cols, s = t.arraystretch, c = t.colSeparationType, l = t.autoTag, u = t.singleRow, d = t.emptySingleRow, f = t.maxNumCols, p = t.leqno;
18105
18129
  if (e.gullet.beginGroup(), u || e.gullet.macros.set("\\cr", "\\\\\\relax"), !s) {
18106
18130
  var m = e.gullet.expandMacroAsText("\\arraystretch");
@@ -18113,9 +18137,9 @@ function li(e, t, r) {
18113
18137
  l && e.gullet.macros.set("\\@eqnsw", "1", !0);
18114
18138
  }
18115
18139
  function x() {
18116
- y && (e.gullet.macros.get("\\df@tag") ? (y.push(e.subparse([new ii("\\df@tag")])), e.gullet.macros.set("\\df@tag", void 0, !0)) : y.push(!!l && e.gullet.macros.get("\\@eqnsw") === "1"));
18140
+ y && (e.gullet.macros.get("\\df@tag") ? (y.push(e.subparse([new ai("\\df@tag")])), e.gullet.macros.set("\\df@tag", void 0, !0)) : y.push(!!l && e.gullet.macros.get("\\@eqnsw") === "1"));
18117
18141
  }
18118
- for (b(), v.push(ai(e));;) {
18142
+ for (b(), v.push(oi(e));;) {
18119
18143
  var S = e.parseExpression(!1, u ? "\\end" : "\\\\");
18120
18144
  e.gullet.endGroup(), e.gullet.beginGroup();
18121
18145
  var C = {
@@ -18134,16 +18158,21 @@ function li(e, t, r) {
18134
18158
  if (w === "&") {
18135
18159
  if (f && h.length === f) {
18136
18160
  if (u || c) throw new n("Too many tab characters: &", e.nextToken);
18137
- e.settings.reportNonstrict("textEnv", "Too few columns specified in the {array} column argument.");
18161
+ Nt({
18162
+ strict: e.settings.strict,
18163
+ errorCode: "textEnv",
18164
+ errorMsg: "Too few columns specified in the {array} column argument.",
18165
+ report: !0
18166
+ });
18138
18167
  }
18139
18168
  e.consume();
18140
18169
  } else if (w === "\\end") {
18141
- x(), h.length === 1 && C.type === "styling" && C.body.length === 1 && C.body[0].type === "ordgroup" && C.body[0].body.length === 0 && (g.length > 1 || !d) && !Array.isArray(y?.[y.length - 1]) && g.pop(), v.length < g.length + 1 && v.push([]);
18170
+ x(), h.length === 1 && C.type === "styling" && C.body.length === 1 && C.body[0].type === "ordgroup" && C.body[0].body.length === 0 && (g.length > 1 || !d) && !Array.isArray(y?.[y.length - 1]) && !(l && y?.[y.length - 1] === !0) && g.pop(), v.length < g.length + 1 && v.push([]);
18142
18171
  break;
18143
18172
  } else if (w === "\\\\") {
18144
18173
  e.consume();
18145
18174
  var T = void 0;
18146
- e.gullet.future().text !== " " && (T = e.parseSizeGroup(!0)), _.push(T ? T.value : null), x(), v.push(ai(e)), h = [], g.push(h), b();
18175
+ e.gullet.future().text !== " " && (T = e.parseSizeGroup(!0)), _.push(T ? T.value : null), x(), v.push(oi(e)), h = [], g.push(h), b();
18147
18176
  } else throw new n("Expected & or \\\\ or \\cr or \\end", e.nextToken);
18148
18177
  }
18149
18178
  return e.gullet.endGroup(), e.gullet.endGroup(), {
@@ -18161,10 +18190,10 @@ function li(e, t, r) {
18161
18190
  leqno: p
18162
18191
  };
18163
18192
  }
18164
- function ui(e) {
18193
+ function di(e) {
18165
18194
  return e.slice(0, 1) === "d" ? "display" : "text";
18166
18195
  }
18167
- var di = function(e, t) {
18196
+ var fi = function(e, t) {
18168
18197
  var r, i, a = e.body.length, o = e.hLinesBeforeRow, s = 0, c = Array(a), l = [], u = Math.max(t.fontMetrics().arrayRuleWidth, t.minRuleThickness), d = 1 / t.fontMetrics().ptPerEm, f = 5 * d;
18169
18198
  e.colSeparationType && e.colSeparationType === "small" && (f = .2778 * (t.havingStyle(D.SCRIPT).sizeMultiplier / t.sizeMultiplier));
18170
18199
  var p = e.colSeparationType === "CD" ? k({
@@ -18196,7 +18225,7 @@ var di = function(e, t) {
18196
18225
  var ee = v / 2 + t.fontMetrics().axisHeight, te = e.cols || [], ne = [], re, ie, ae = [];
18197
18226
  if (e.tags && e.tags.some((e) => e)) for (r = 0; r < a; ++r) {
18198
18227
  var oe = c[r], se = oe.pos - ee, ce = e.tags[r], le = void 0;
18199
- le = ce === !0 ? G(["eqn-num"], [], t) : ce === !1 ? G([], [], t) : G([], pn(ce, t, !0), t), le.depth = oe.depth, le.height = oe.height, ae.push({
18228
+ le = ce === !0 ? G(["eqn-num"], [], t) : ce === !1 ? G([], [], t) : G([], mn(ce, t, !0), t), le.depth = oe.depth, le.height = oe.height, ae.push({
18200
18229
  type: "elem",
18201
18230
  elem: le,
18202
18231
  shift: se
@@ -18237,7 +18266,7 @@ var di = function(e, t) {
18237
18266
  }
18238
18267
  var Se = G(["mtable"], ne);
18239
18268
  if (l.length > 0) {
18240
- for (var Ce = Ht("katex-hline", t, u), we = Ht("katex-hdashline", t, u), Te = [{
18269
+ for (var Ce = Ut("katex-hline", t, u), we = Ut("katex-hdashline", t, u), Te = [{
18241
18270
  type: "elem",
18242
18271
  elem: Se,
18243
18272
  shift: 0
@@ -18263,12 +18292,12 @@ var di = function(e, t) {
18263
18292
  positionType: "individualShift",
18264
18293
  children: ae
18265
18294
  })], t);
18266
- return Wt([Se, Oe]);
18267
- }, fi = {
18295
+ return Gt([Se, Oe]);
18296
+ }, pi = {
18268
18297
  c: "center ",
18269
18298
  l: "left ",
18270
18299
  r: "right "
18271
- }, pi = function(e, t) {
18300
+ }, mi = function(e, t) {
18272
18301
  for (var n = [], r = new X("mtd", [], ["mtr-glue"]), i = new X("mtd", [], ["mml-eqn-num"]), a = 0; a < e.body.length; a++) {
18273
18302
  for (var o = e.body[a], s = [], c = 0; c < o.length; c++) s.push(new X("mtd", [Z(o[c], t)]));
18274
18303
  e.tags && e.tags[a] && (s.unshift(r), s.push(r), e.leqno ? s.unshift(i) : s.push(i)), n.push(new X("mtr", s));
@@ -18281,7 +18310,7 @@ var di = function(e, t) {
18281
18310
  p[0].type === "separator" && (d += "top ", g = 1), p[p.length - 1].type === "separator" && (d += "bottom ", --_);
18282
18311
  for (var v = g; v < _; v++) {
18283
18312
  var y = p[v];
18284
- y.type === "align" ? (f += fi[y.align], h && (m += "none "), h = !0) : y.type === "separator" && (h &&= (m += y.separator === "|" ? "solid " : "dashed ", !1));
18313
+ y.type === "align" ? (f += pi[y.align], h && (m += "none "), h = !0) : y.type === "separator" && (h &&= (m += y.separator === "|" ? "solid " : "dashed ", !1));
18285
18314
  }
18286
18315
  l.setAttribute("columnalign", f.trim()), /[sd]/.test(m) && l.setAttribute("columnlines", m.trim());
18287
18316
  }
@@ -18293,12 +18322,12 @@ var di = function(e, t) {
18293
18322
  d += w[0].length > 0 ? "left " : "", d += w[w.length - 1].length > 0 ? "right " : "";
18294
18323
  for (var T = 1; T < w.length - 1; T++) C += w[T].length === 0 ? "none " : w[T][0] ? "dashed " : "solid ";
18295
18324
  return /[sd]/.test(C) && l.setAttribute("rowlines", C.trim()), d !== "" && (l = new X("menclose", [l]), l.setAttribute("notation", d.trim())), e.arraystretch && e.arraystretch < 1 && (l = new X("mstyle", [l]), l.setAttribute("scriptlevel", "1")), l;
18296
- }, mi = function(e, t) {
18297
- e.envName.includes("ed") || oi(e);
18298
- var r = [], i = e.envName === "split", a = li(e.parser, {
18325
+ }, hi = function(e, t) {
18326
+ e.envName.includes("ed") || si(e);
18327
+ var r = [], i = e.envName === "split", a = ui(e.parser, {
18299
18328
  cols: r,
18300
18329
  addJot: !0,
18301
- autoTag: i ? void 0 : ci(e.envName),
18330
+ autoTag: i ? void 0 : li(e.envName),
18302
18331
  emptySingleRow: !0,
18303
18332
  colSeparationType: e.envName.includes("at") ? "alignat" : "align",
18304
18333
  maxNumCols: i ? 2 : void 0,
@@ -18309,7 +18338,7 @@ var di = function(e, t) {
18309
18338
  body: []
18310
18339
  };
18311
18340
  if (t[0] && t[0].type === "ordgroup") {
18312
- var l = "Number of columns should be a positive integer", u = tr(t[0], l);
18341
+ var l = "Number of columns should be a positive integer", u = nr(t[0], l);
18313
18342
  if (!/^[0-9]+$/.test(u) || Number(u) < 1) throw new n(l, t[0]);
18314
18343
  o = Number(u), s = o * 2;
18315
18344
  }
@@ -18333,13 +18362,13 @@ var di = function(e, t) {
18333
18362
  }
18334
18363
  return a.colSeparationType = d ? "align" : "alignat", a;
18335
18364
  };
18336
- ti({
18365
+ ni({
18337
18366
  type: "array",
18338
18367
  names: ["array", "darray"],
18339
18368
  props: { numArgs: 1 },
18340
18369
  handler(e, t) {
18341
- var r = (er(t[0]) ? [t[0]] : Q(t[0], "ordgroup").body).map(function(e) {
18342
- var t = $n(e).text;
18370
+ var r = (tr(t[0]) ? [t[0]] : Q(t[0], "ordgroup").body).map(function(e) {
18371
+ var t = er(e).text;
18343
18372
  if ("lcr".includes(t)) return {
18344
18373
  type: "align",
18345
18374
  align: t
@@ -18358,11 +18387,11 @@ ti({
18358
18387
  hskipBeforeAndAfter: !0,
18359
18388
  maxNumCols: r.length
18360
18389
  };
18361
- return li(e.parser, i, ui(e.envName));
18390
+ return ui(e.parser, i, di(e.envName));
18362
18391
  },
18363
- htmlBuilder: di,
18364
- mathmlBuilder: pi
18365
- }), ti({
18392
+ htmlBuilder: fi,
18393
+ mathmlBuilder: mi
18394
+ }), ni({
18366
18395
  type: "array",
18367
18396
  names: [
18368
18397
  "matrix",
@@ -18404,7 +18433,7 @@ ti({
18404
18433
  }];
18405
18434
  }
18406
18435
  }
18407
- var o = li(e.parser, i, ui(e.envName)), s = Math.max(0, ...o.body.map((e) => e.length));
18436
+ var o = ui(e.parser, i, di(e.envName)), s = Math.max(0, ...o.body.map((e) => e.length));
18408
18437
  return o.cols = Array(s).fill({
18409
18438
  type: "align",
18410
18439
  align: r
@@ -18417,25 +18446,25 @@ ti({
18417
18446
  rightColor: void 0
18418
18447
  } : o;
18419
18448
  },
18420
- htmlBuilder: di,
18421
- mathmlBuilder: pi
18422
- }), ti({
18449
+ htmlBuilder: fi,
18450
+ mathmlBuilder: mi
18451
+ }), ni({
18423
18452
  type: "array",
18424
18453
  names: ["smallmatrix"],
18425
18454
  props: { numArgs: 0 },
18426
18455
  handler(e) {
18427
- var t = li(e.parser, { arraystretch: .5 }, "script");
18456
+ var t = ui(e.parser, { arraystretch: .5 }, "script");
18428
18457
  return t.colSeparationType = "small", t;
18429
18458
  },
18430
- htmlBuilder: di,
18431
- mathmlBuilder: pi
18432
- }), ti({
18459
+ htmlBuilder: fi,
18460
+ mathmlBuilder: mi
18461
+ }), ni({
18433
18462
  type: "array",
18434
18463
  names: ["subarray"],
18435
18464
  props: { numArgs: 1 },
18436
18465
  handler(e, t) {
18437
- var r = (er(t[0]) ? [t[0]] : Q(t[0], "ordgroup").body).map(function(e) {
18438
- var t = $n(e).text;
18466
+ var r = (tr(t[0]) ? [t[0]] : Q(t[0], "ordgroup").body).map(function(e) {
18467
+ var t = er(e).text;
18439
18468
  if ("lc".includes(t)) return {
18440
18469
  type: "align",
18441
18470
  align: t
@@ -18447,13 +18476,13 @@ ti({
18447
18476
  cols: r,
18448
18477
  hskipBeforeAndAfter: !1,
18449
18478
  arraystretch: .5
18450
- }, a = li(e.parser, i, "script");
18479
+ }, a = ui(e.parser, i, "script");
18451
18480
  if (a.body.length > 0 && a.body[0].length > 1) throw new n("{subarray} can contain only one column");
18452
18481
  return a;
18453
18482
  },
18454
- htmlBuilder: di,
18455
- mathmlBuilder: pi
18456
- }), ti({
18483
+ htmlBuilder: fi,
18484
+ mathmlBuilder: mi
18485
+ }), ni({
18457
18486
  type: "array",
18458
18487
  names: [
18459
18488
  "cases",
@@ -18463,7 +18492,7 @@ ti({
18463
18492
  ],
18464
18493
  props: { numArgs: 0 },
18465
18494
  handler(e) {
18466
- var t = li(e.parser, {
18495
+ var t = ui(e.parser, {
18467
18496
  arraystretch: 1.2,
18468
18497
  cols: [{
18469
18498
  type: "align",
@@ -18476,7 +18505,7 @@ ti({
18476
18505
  pregap: 0,
18477
18506
  postgap: 0
18478
18507
  }]
18479
- }, ui(e.envName));
18508
+ }, di(e.envName));
18480
18509
  return {
18481
18510
  type: "leftright",
18482
18511
  mode: e.mode,
@@ -18486,9 +18515,9 @@ ti({
18486
18515
  rightColor: void 0
18487
18516
  };
18488
18517
  },
18489
- htmlBuilder: di,
18490
- mathmlBuilder: pi
18491
- }), ti({
18518
+ htmlBuilder: fi,
18519
+ mathmlBuilder: mi
18520
+ }), ni({
18492
18521
  type: "array",
18493
18522
  names: [
18494
18523
  "align",
@@ -18497,10 +18526,10 @@ ti({
18497
18526
  "split"
18498
18527
  ],
18499
18528
  props: { numArgs: 0 },
18500
- handler: mi,
18501
- htmlBuilder: di,
18502
- mathmlBuilder: pi
18503
- }), ti({
18529
+ handler: hi,
18530
+ htmlBuilder: fi,
18531
+ mathmlBuilder: mi
18532
+ }), ni({
18504
18533
  type: "array",
18505
18534
  names: [
18506
18535
  "gathered",
@@ -18509,7 +18538,7 @@ ti({
18509
18538
  ],
18510
18539
  props: { numArgs: 0 },
18511
18540
  handler(e) {
18512
- si.has(e.envName) && oi(e);
18541
+ ci.has(e.envName) && si(e);
18513
18542
  var t = {
18514
18543
  cols: [{
18515
18544
  type: "align",
@@ -18517,15 +18546,15 @@ ti({
18517
18546
  }],
18518
18547
  addJot: !0,
18519
18548
  colSeparationType: "gather",
18520
- autoTag: ci(e.envName),
18549
+ autoTag: li(e.envName),
18521
18550
  emptySingleRow: !0,
18522
18551
  leqno: e.parser.settings.leqno
18523
18552
  };
18524
- return li(e.parser, t, "display");
18553
+ return ui(e.parser, t, "display");
18525
18554
  },
18526
- htmlBuilder: di,
18527
- mathmlBuilder: pi
18528
- }), ti({
18555
+ htmlBuilder: fi,
18556
+ mathmlBuilder: mi
18557
+ }), ni({
18529
18558
  type: "array",
18530
18559
  names: [
18531
18560
  "alignat",
@@ -18533,35 +18562,35 @@ ti({
18533
18562
  "alignedat"
18534
18563
  ],
18535
18564
  props: { numArgs: 1 },
18536
- handler: mi,
18537
- htmlBuilder: di,
18538
- mathmlBuilder: pi
18539
- }), ti({
18565
+ handler: hi,
18566
+ htmlBuilder: fi,
18567
+ mathmlBuilder: mi
18568
+ }), ni({
18540
18569
  type: "array",
18541
18570
  names: ["equation", "equation*"],
18542
18571
  props: { numArgs: 0 },
18543
18572
  handler(e) {
18544
- oi(e);
18573
+ si(e);
18545
18574
  var t = {
18546
- autoTag: ci(e.envName),
18575
+ autoTag: li(e.envName),
18547
18576
  emptySingleRow: !0,
18548
18577
  singleRow: !0,
18549
18578
  maxNumCols: 1,
18550
18579
  leqno: e.parser.settings.leqno
18551
18580
  };
18552
- return li(e.parser, t, "display");
18581
+ return ui(e.parser, t, "display");
18553
18582
  },
18554
- htmlBuilder: di,
18555
- mathmlBuilder: pi
18556
- }), ti({
18583
+ htmlBuilder: fi,
18584
+ mathmlBuilder: mi
18585
+ }), ni({
18557
18586
  type: "array",
18558
18587
  names: ["CD"],
18559
18588
  props: { numArgs: 0 },
18560
18589
  handler(e) {
18561
- return oi(e), hr(e.parser);
18590
+ return si(e), gr(e.parser);
18562
18591
  },
18563
- htmlBuilder: di,
18564
- mathmlBuilder: pi
18592
+ htmlBuilder: fi,
18593
+ mathmlBuilder: mi
18565
18594
  }), $("\\nonumber", "\\gdef\\@eqnsw{0}"), $("\\notag", "\\nonumber"), J({
18566
18595
  type: "text",
18567
18596
  names: ["\\hline", "\\hdashline"],
@@ -18572,7 +18601,7 @@ ti({
18572
18601
  throw new n(e.funcName + " valid only within array environment");
18573
18602
  }
18574
18603
  });
18575
- var hi = ei;
18604
+ var gi = ti;
18576
18605
  J({
18577
18606
  type: "environment",
18578
18607
  names: ["\\begin", "\\end"],
@@ -18581,10 +18610,10 @@ J({
18581
18610
  handler(e, t) {
18582
18611
  var r = e.parser, i = e.funcName, a = t[0];
18583
18612
  if (a.type !== "ordgroup") throw new n("Invalid environment name", a);
18584
- var o = tr(a, "Environment name should contain only text characters and spaces", !0);
18613
+ var o = nr(a, "Environment name should contain only text characters and spaces", !0);
18585
18614
  if (i === "\\begin") {
18586
- if (!Object.prototype.hasOwnProperty.call(hi, o)) throw new n("No such environment: " + o, a);
18587
- var s = hi[o], c = r.parseArguments("\\begin{" + o + "}", s), l = c.args, u = c.optArgs, d = {
18615
+ if (!Object.prototype.hasOwnProperty.call(gi, o)) throw new n("No such environment: " + o, a);
18616
+ var s = gi[o], c = r.parseArguments("\\begin{" + o + "}", s), l = c.args, u = c.optArgs, d = {
18588
18617
  mode: r.mode,
18589
18618
  envName: o,
18590
18619
  parser: r
@@ -18602,13 +18631,13 @@ J({
18602
18631
  };
18603
18632
  }
18604
18633
  });
18605
- var gi = (e, t) => {
18634
+ var _i = (e, t) => {
18606
18635
  var n = e.font, r = t.withFont(n);
18607
18636
  return Y(e.body, r);
18608
- }, _i = (e, t) => {
18637
+ }, vi = (e, t) => {
18609
18638
  var n = e.font, r = t.withFont(n);
18610
18639
  return Z(e.body, r);
18611
- }, vi = {
18640
+ }, yi = {
18612
18641
  "\\Bbb": "\\mathbb",
18613
18642
  "\\bold": "\\mathbf",
18614
18643
  "\\frak": "\\mathfrak"
@@ -18634,7 +18663,7 @@ J({
18634
18663
  numArgs: 1,
18635
18664
  allowedInArgument: !0,
18636
18665
  handler: (e, t) => {
18637
- var n = e.parser, r = e.funcName, i = sn(t[0]), a = r in vi ? vi[r] : r;
18666
+ var n = e.parser, r = e.funcName, i = cn(t[0]), a = r in yi ? yi[r] : r;
18638
18667
  return {
18639
18668
  type: "font",
18640
18669
  mode: n.mode,
@@ -18642,8 +18671,8 @@ J({
18642
18671
  body: i
18643
18672
  };
18644
18673
  },
18645
- htmlBuilder: gi,
18646
- mathmlBuilder: _i
18674
+ htmlBuilder: _i,
18675
+ mathmlBuilder: vi
18647
18676
  }), J({
18648
18677
  type: "mclass",
18649
18678
  names: ["\\boldsymbol", "\\bm"],
@@ -18653,7 +18682,7 @@ J({
18653
18682
  return {
18654
18683
  type: "mclass",
18655
18684
  mode: n.mode,
18656
- mclass: lr(r),
18685
+ mclass: ur(r),
18657
18686
  body: [{
18658
18687
  type: "font",
18659
18688
  mode: n.mode,
@@ -18689,7 +18718,7 @@ J({
18689
18718
  };
18690
18719
  }
18691
18720
  });
18692
- var yi = (e, t) => {
18721
+ var bi = (e, t) => {
18693
18722
  var n = t.style, r = n.fracNum(), i = n.fracDen(), a = t.havingStyle(r), o = Y(e.numer, a, t);
18694
18723
  if (e.continued) {
18695
18724
  var s = 8.5 / t.fontMetrics().ptPerEm, c = 3.5 / t.fontMetrics().ptPerEm;
@@ -18697,7 +18726,7 @@ var yi = (e, t) => {
18697
18726
  }
18698
18727
  a = t.havingStyle(i);
18699
18728
  var l = Y(e.denom, a, t), u, d, f;
18700
- e.hasBarLine ? (e.barSize ? (d = k(e.barSize, t), u = Ht("frac-line", t, d)) : u = Ht("frac-line", t), d = u.height, f = u.height) : (u = null, d = 0, f = t.fontMetrics().defaultRuleThickness);
18729
+ e.hasBarLine ? (e.barSize ? (d = k(e.barSize, t), u = Ut("frac-line", t, d)) : u = Ut("frac-line", t), d = u.height, f = u.height) : (u = null, d = 0, f = t.fontMetrics().defaultRuleThickness);
18701
18730
  var p, m, h;
18702
18731
  n.size === D.DISPLAY.size ? (p = t.fontMetrics().num1, m = d > 0 ? 3 * f : 7 * f, h = t.fontMetrics().denom1) : (d > 0 ? (p = t.fontMetrics().num2, m = f) : (p = t.fontMetrics().num3, m = 3 * f), h = t.fontMetrics().denom2);
18703
18732
  var g;
@@ -18741,13 +18770,13 @@ var yi = (e, t) => {
18741
18770
  });
18742
18771
  }
18743
18772
  a = t.havingStyle(n), g.height *= a.sizeMultiplier / t.sizeMultiplier, g.depth *= a.sizeMultiplier / t.sizeMultiplier;
18744
- var b = n.size === D.DISPLAY.size ? t.fontMetrics().delim1 : n.size === D.SCRIPTSCRIPT.size ? t.havingStyle(D.SCRIPT).fontMetrics().delim2 : t.fontMetrics().delim2, x = e.leftDelim == null ? vn(t, ["mopen"]) : qr(e.leftDelim, b, !0, t.havingStyle(n), e.mode, ["mopen"]), S = e.continued ? G([]) : e.rightDelim == null ? vn(t, ["mclose"]) : qr(e.rightDelim, b, !0, t.havingStyle(n), e.mode, ["mclose"]);
18773
+ var b = n.size === D.DISPLAY.size ? t.fontMetrics().delim1 : n.size === D.SCRIPTSCRIPT.size ? t.havingStyle(D.SCRIPT).fontMetrics().delim2 : t.fontMetrics().delim2, x = e.leftDelim == null ? yn(t, ["mopen"]) : Jr(e.leftDelim, b, !0, t.havingStyle(n), e.mode, ["mopen"]), S = e.continued ? G([]) : e.rightDelim == null ? yn(t, ["mclose"]) : Jr(e.rightDelim, b, !0, t.havingStyle(n), e.mode, ["mclose"]);
18745
18774
  return G(["mord"].concat(a.sizingClasses(t)), [
18746
18775
  x,
18747
18776
  G(["mfrac"], [g]),
18748
18777
  S
18749
18778
  ], t);
18750
- }, bi = (e, t) => {
18779
+ }, xi = (e, t) => {
18751
18780
  var n = new X("mfrac", [Z(e.numer, t), Z(e.denom, t)]);
18752
18781
  if (!e.hasBarLine) n.setAttribute("linethickness", "0px");
18753
18782
  else if (e.barSize) {
@@ -18757,17 +18786,17 @@ var yi = (e, t) => {
18757
18786
  if (e.leftDelim != null || e.rightDelim != null) {
18758
18787
  var i = [];
18759
18788
  if (e.leftDelim != null) {
18760
- var a = new X("mo", [new Sn(e.leftDelim.replace("\\", ""))]);
18789
+ var a = new X("mo", [new Cn(e.leftDelim.replace("\\", ""))]);
18761
18790
  a.setAttribute("fence", "true"), i.push(a);
18762
18791
  }
18763
18792
  if (i.push(n), e.rightDelim != null) {
18764
- var o = new X("mo", [new Sn(e.rightDelim.replace("\\", ""))]);
18793
+ var o = new X("mo", [new Cn(e.rightDelim.replace("\\", ""))]);
18765
18794
  o.setAttribute("fence", "true"), i.push(o);
18766
18795
  }
18767
- return Dn(i);
18796
+ return On(i);
18768
18797
  }
18769
18798
  return n;
18770
- }, xi = (e, t) => t ? {
18799
+ }, Si = (e, t) => t ? {
18771
18800
  type: "styling",
18772
18801
  mode: e.mode,
18773
18802
  style: t,
@@ -18815,7 +18844,7 @@ J({
18815
18844
  default: throw Error("Unrecognized genfrac command");
18816
18845
  }
18817
18846
  var l = r === "\\cfrac", u = null;
18818
- return l || r.startsWith("\\d") ? u = "display" : r.startsWith("\\t") && (u = "text"), xi({
18847
+ return l || r.startsWith("\\d") ? u = "display" : r.startsWith("\\t") && (u = "text"), Si({
18819
18848
  type: "genfrac",
18820
18849
  mode: n.mode,
18821
18850
  numer: i,
@@ -18827,8 +18856,8 @@ J({
18827
18856
  barSize: null
18828
18857
  }, u);
18829
18858
  },
18830
- htmlBuilder: yi,
18831
- mathmlBuilder: bi
18859
+ htmlBuilder: bi,
18860
+ mathmlBuilder: xi
18832
18861
  }), J({
18833
18862
  type: "infix",
18834
18863
  names: [
@@ -18868,12 +18897,12 @@ J({
18868
18897
  };
18869
18898
  }
18870
18899
  });
18871
- var Si = [
18900
+ var Ci = [
18872
18901
  "display",
18873
18902
  "text",
18874
18903
  "script",
18875
18904
  "scriptscript"
18876
- ], Ci = function(e) {
18905
+ ], wi = function(e) {
18877
18906
  var t = null;
18878
18907
  return e.length > 0 && (t = e, t = t === "." ? null : t), t;
18879
18908
  };
@@ -18891,16 +18920,16 @@ J({
18891
18920
  "math"
18892
18921
  ],
18893
18922
  handler(e, t) {
18894
- var n = e.parser, r = t[4], i = t[5], a = sn(t[0]), o = a.type === "atom" && a.family === "open" ? Ci(a.text) : null, s = sn(t[1]), c = s.type === "atom" && s.family === "close" ? Ci(s.text) : null, l = Q(t[2], "size"), u, d = null;
18923
+ var n = e.parser, r = t[4], i = t[5], a = cn(t[0]), o = a.type === "atom" && a.family === "open" ? wi(a.text) : null, s = cn(t[1]), c = s.type === "atom" && s.family === "close" ? wi(s.text) : null, l = Q(t[2], "size"), u, d = null;
18895
18924
  l.isBlank ? u = !0 : (d = l.value, u = d.number > 0);
18896
18925
  var f = null, p = t[3];
18897
18926
  if (p.type === "ordgroup") {
18898
18927
  if (p.body.length > 0) {
18899
18928
  var m = Q(p.body[0], "textord");
18900
- f = Si[Number(m.text)];
18929
+ f = Ci[Number(m.text)];
18901
18930
  }
18902
- } else p = Q(p, "textord"), f = Si[Number(p.text)];
18903
- return xi({
18931
+ } else p = Q(p, "textord"), f = Ci[Number(p.text)];
18932
+ return Si({
18904
18933
  type: "genfrac",
18905
18934
  mode: n.mode,
18906
18935
  numer: r,
@@ -18958,10 +18987,10 @@ J({
18958
18987
  };
18959
18988
  }
18960
18989
  });
18961
- var wi = (e, t) => {
18990
+ var Ti = (e, t) => {
18962
18991
  var n = t.style, r, i;
18963
18992
  e.type === "supsub" ? (r = e.sup ? Y(e.sup, t.havingStyle(n.sup()), t) : Y(e.sub, t.havingStyle(n.sub()), t), i = Q(e.base, "horizBrace")) : i = Q(e, "horizBrace");
18964
- var a = Y(i.base, t.havingBaseStyle(D.DISPLAY)), o = Kn(i, t), s = i.isOver ? K({
18993
+ var a = Y(i.base, t.havingBaseStyle(D.DISPLAY)), o = qn(i, t), s = i.isOver ? K({
18965
18994
  positionType: "firstBaseline",
18966
18995
  children: [
18967
18996
  {
@@ -19055,9 +19084,9 @@ J({
19055
19084
  base: t[0]
19056
19085
  };
19057
19086
  },
19058
- htmlBuilder: wi,
19087
+ htmlBuilder: Ti,
19059
19088
  mathmlBuilder: (e, t) => {
19060
- var n = Un(e.label);
19089
+ var n = Wn(e.label);
19061
19090
  return new X(e.isOver ? "mover" : "munder", [Z(e.base, t), n]);
19062
19091
  }
19063
19092
  }), J({
@@ -19075,15 +19104,15 @@ J({
19075
19104
  type: "href",
19076
19105
  mode: n.mode,
19077
19106
  href: i,
19078
- body: cn(r)
19107
+ body: ln(r)
19079
19108
  } : n.formatUnsupportedCmd("\\href");
19080
19109
  },
19081
19110
  htmlBuilder: (e, t) => {
19082
- var n = pn(e.body, t, !1);
19083
- return Ut(e.href, [], n, t);
19111
+ var n = mn(e.body, t, !1);
19112
+ return Wt(e.href, [], n, t);
19084
19113
  },
19085
19114
  mathmlBuilder: (e, t) => {
19086
- var n = Mn(e.body, t);
19115
+ var n = Nn(e.body, t);
19087
19116
  return n instanceof X || (n = new X("mrow", [n])), n.setAttribute("href", e.href), n;
19088
19117
  }
19089
19118
  }), J({
@@ -19116,7 +19145,7 @@ J({
19116
19145
  type: "href",
19117
19146
  mode: n.mode,
19118
19147
  href: r,
19119
- body: cn(s)
19148
+ body: ln(s)
19120
19149
  };
19121
19150
  }
19122
19151
  }), J({
@@ -19130,14 +19159,14 @@ J({
19130
19159
  return {
19131
19160
  type: "hbox",
19132
19161
  mode: e.parser.mode,
19133
- body: cn(t[0])
19162
+ body: ln(t[0])
19134
19163
  };
19135
19164
  },
19136
19165
  htmlBuilder(e, t) {
19137
- return Wt(pn(e.body, t.withFont(""), !1));
19166
+ return Gt(mn(e.body, t.withFont(""), !1));
19138
19167
  },
19139
19168
  mathmlBuilder(e, t) {
19140
- return new X("mrow", jn(e.body, t.withFont("")));
19169
+ return new X("mrow", Mn(e.body, t.withFont("")));
19141
19170
  }
19142
19171
  }), J({
19143
19172
  type: "html",
@@ -19154,7 +19183,12 @@ J({
19154
19183
  var r = e.parser, i = e.funcName;
19155
19184
  e.token;
19156
19185
  var a = Q(t[0], "raw").string, o = t[1];
19157
- r.settings.strict && r.settings.reportNonstrict("htmlExtension", "HTML extension is disabled on strict mode");
19186
+ r.settings.strict && Nt({
19187
+ strict: r.settings.strict,
19188
+ errorCode: "htmlExtension",
19189
+ errorMsg: "HTML extension is disabled on strict mode",
19190
+ report: !0
19191
+ });
19158
19192
  var s, c = {};
19159
19193
  switch (i) {
19160
19194
  case "\\htmlClass":
@@ -19195,11 +19229,11 @@ J({
19195
19229
  type: "html",
19196
19230
  mode: r.mode,
19197
19231
  attributes: c,
19198
- body: cn(o)
19232
+ body: ln(o)
19199
19233
  } : r.formatUnsupportedCmd(i);
19200
19234
  },
19201
19235
  htmlBuilder: (e, t) => {
19202
- var n = pn(e.body, t, !1), r = ["enclosing"];
19236
+ var n = mn(e.body, t, !1), r = ["enclosing"];
19203
19237
  e.attributes.class && r.push(...e.attributes.class.trim().split(/\s+/));
19204
19238
  var i = G(r, n, t);
19205
19239
  for (var a of Object.entries(e.attributes)) {
@@ -19208,7 +19242,7 @@ J({
19208
19242
  }
19209
19243
  return i;
19210
19244
  },
19211
- mathmlBuilder: (e, t) => Mn(e.body, t)
19245
+ mathmlBuilder: (e, t) => Nn(e.body, t)
19212
19246
  }), J({
19213
19247
  type: "htmlmathml",
19214
19248
  names: ["\\html@mathml"],
@@ -19218,13 +19252,13 @@ J({
19218
19252
  handler: (e, t) => ({
19219
19253
  type: "htmlmathml",
19220
19254
  mode: e.parser.mode,
19221
- html: cn(t[0]),
19222
- mathml: cn(t[1])
19255
+ html: ln(t[0]),
19256
+ mathml: ln(t[1])
19223
19257
  }),
19224
- htmlBuilder: (e, t) => Wt(pn(e.html, t, !1)),
19225
- mathmlBuilder: (e, t) => Mn(e.mathml, t)
19258
+ htmlBuilder: (e, t) => Gt(mn(e.html, t, !1)),
19259
+ mathmlBuilder: (e, t) => Nn(e.mathml, t)
19226
19260
  });
19227
- var Ti = function(e) {
19261
+ var Ei = function(e) {
19228
19262
  if (/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e)) return {
19229
19263
  number: +e,
19230
19264
  unit: "bp"
@@ -19265,13 +19299,13 @@ J({
19265
19299
  c = f;
19266
19300
  break;
19267
19301
  case "width":
19268
- a = Ti(f);
19302
+ a = Ei(f);
19269
19303
  break;
19270
19304
  case "height":
19271
- o = Ti(f);
19305
+ o = Ei(f);
19272
19306
  break;
19273
19307
  case "totalheight":
19274
- s = Ti(f);
19308
+ s = Ei(f);
19275
19309
  break;
19276
19310
  default: throw new n("Invalid key: '" + d[0] + "' in \\includegraphics.");
19277
19311
  }
@@ -19327,7 +19361,22 @@ J({
19327
19361
  var n = e.parser, r = e.funcName, i = Q(t[0], "size");
19328
19362
  if (n.settings.strict) {
19329
19363
  var a = r[1] === "m", o = i.value.unit === "mu";
19330
- a ? (o || n.settings.reportNonstrict("mathVsTextUnits", "LaTeX's " + r + " supports only mu units, " + ("not " + i.value.unit + " units")), n.mode !== "math" && n.settings.reportNonstrict("mathVsTextUnits", "LaTeX's " + r + " works only in math mode")) : o && n.settings.reportNonstrict("mathVsTextUnits", "LaTeX's " + r + " doesn't support mu units");
19364
+ a ? (o || Nt({
19365
+ strict: n.settings.strict,
19366
+ errorCode: "mathVsTextUnits",
19367
+ errorMsg: "LaTeX's " + r + " supports only mu units, " + ("not " + i.value.unit + " units"),
19368
+ report: !0
19369
+ }), n.mode !== "math" && Nt({
19370
+ strict: n.settings.strict,
19371
+ errorCode: "mathVsTextUnits",
19372
+ errorMsg: "LaTeX's " + r + " works only in math mode",
19373
+ report: !0
19374
+ })) : o && Nt({
19375
+ strict: n.settings.strict,
19376
+ errorCode: "mathVsTextUnits",
19377
+ errorMsg: "LaTeX's " + r + " doesn't support mu units",
19378
+ report: !0
19379
+ });
19331
19380
  }
19332
19381
  return {
19333
19382
  type: "kern",
@@ -19336,10 +19385,10 @@ J({
19336
19385
  };
19337
19386
  },
19338
19387
  htmlBuilder(e, t) {
19339
- return qt(e.dimension, t);
19388
+ return Jt(e.dimension, t);
19340
19389
  },
19341
19390
  mathmlBuilder(e, t) {
19342
- return new Cn(k(e.dimension, t));
19391
+ return new wn(k(e.dimension, t));
19343
19392
  }
19344
19393
  }), J({
19345
19394
  type: "lap",
@@ -19401,7 +19450,7 @@ J({
19401
19450
  throw new n("Mismatched " + e.funcName);
19402
19451
  }
19403
19452
  });
19404
- var Ei = (e, t) => {
19453
+ var Di = (e, t) => {
19405
19454
  switch (t.style.size) {
19406
19455
  case D.DISPLAY.size: return e.display;
19407
19456
  case D.TEXT.size: return e.text;
@@ -19418,15 +19467,15 @@ J({
19418
19467
  handler: (e, t) => ({
19419
19468
  type: "mathchoice",
19420
19469
  mode: e.parser.mode,
19421
- display: cn(t[0]),
19422
- text: cn(t[1]),
19423
- script: cn(t[2]),
19424
- scriptscript: cn(t[3])
19470
+ display: ln(t[0]),
19471
+ text: ln(t[1]),
19472
+ script: ln(t[2]),
19473
+ scriptscript: ln(t[3])
19425
19474
  }),
19426
- htmlBuilder: (e, t) => Wt(pn(Ei(e, t), t, !1)),
19427
- mathmlBuilder: (e, t) => Mn(Ei(e, t), t)
19475
+ htmlBuilder: (e, t) => Gt(mn(Di(e, t), t, !1)),
19476
+ mathmlBuilder: (e, t) => Nn(Di(e, t), t)
19428
19477
  });
19429
- var Di = (e, t, n, r, i, a, o) => {
19478
+ var Oi = (e, t, n, r, i, a, o) => {
19430
19479
  e = G([], [e]);
19431
19480
  var s = n && u(n), c, l;
19432
19481
  if (t) {
@@ -19533,20 +19582,20 @@ var Di = (e, t, n, r, i, a, o) => {
19533
19582
  h.style.marginRight = A(a), m.unshift(h);
19534
19583
  }
19535
19584
  return G(["mop", "op-limits"], m, r);
19536
- }, Oi = /* @__PURE__ */ new Set(["\\smallint"]), ki = (e, t) => {
19585
+ }, ki = /* @__PURE__ */ new Set(["\\smallint"]), Ai = (e, t) => {
19537
19586
  var n, r, i = !1, a;
19538
19587
  e.type === "supsub" ? (n = e.sup, r = e.sub, a = Q(e.base, "op"), i = !0) : a = Q(e, "op");
19539
19588
  var o = t.style, s = !1;
19540
- o.size === D.DISPLAY.size && a.symbol && !Oi.has(a.name) && (s = !0);
19589
+ o.size === D.DISPLAY.size && a.symbol && !ki.has(a.name) && (s = !0);
19541
19590
  var c, l;
19542
19591
  if (a.symbol) {
19543
19592
  var u = s ? "Size2-Regular" : "Size1-Regular", d = "";
19544
- if ((a.name === "\\oiint" || a.name === "\\oiiint") && (d = a.name.slice(1), a.name = d === "oiint" ? "\\iint" : "\\iiint"), c = Pt(a.name, u, "math", t, [
19593
+ if ((a.name === "\\oiint" || a.name === "\\oiiint") && (d = a.name.slice(1), a.name = d === "oiint" ? "\\iint" : "\\iiint"), c = Ft(a.name, u, "math", t, [
19545
19594
  "mop",
19546
19595
  "op-symbol",
19547
19596
  s ? "large-op" : "small-op"
19548
19597
  ]), l = c.italic, d.length > 0) {
19549
- var f = Zt(d + "Size" + (s ? "2" : "1"), t);
19598
+ var f = Qt(d + "Size" + (s ? "2" : "1"), t);
19550
19599
  c = K({
19551
19600
  positionType: "individualShift",
19552
19601
  children: [{
@@ -19561,25 +19610,25 @@ var Di = (e, t, n, r, i, a, o) => {
19561
19610
  }), a.name = "\\" + d, c.classes.unshift("mop"), c.italic = l;
19562
19611
  }
19563
19612
  } else if (a.body) {
19564
- var p = pn(a.body, t, !0);
19613
+ var p = mn(a.body, t, !0);
19565
19614
  p.length === 1 && p[0] instanceof Le ? (c = p[0], c.classes[0] = "mop") : c = G(["mop"], p, t);
19566
19615
  } else {
19567
- for (var m = [], h = 1; h < a.name.length; h++) m.push(Ft(a.name[h], a.mode, t));
19616
+ for (var m = [], h = 1; h < a.name.length; h++) m.push(It(a.name[h], a.mode, t));
19568
19617
  c = G(["mop"], m, t);
19569
19618
  }
19570
19619
  var g = 0, _ = 0;
19571
- return (c instanceof Le || a.name === "\\oiint" || a.name === "\\oiiint") && !a.suppressBaseShift && (g = (c.height - c.depth) / 2 - t.fontMetrics().axisHeight, _ = c.italic ?? 0), i ? Di(c, n, r, t, o, _, g) : (g && (c.style.position = "relative", c.style.top = A(g)), c);
19572
- }, Ai = (e, t) => {
19620
+ return (c instanceof Le || a.name === "\\oiint" || a.name === "\\oiiint") && !a.suppressBaseShift && (g = (c.height - c.depth) / 2 - t.fontMetrics().axisHeight, _ = c.italic ?? 0), i ? Oi(c, n, r, t, o, _, g) : (g && (c.style.position = "relative", c.style.top = A(g)), c);
19621
+ }, ji = (e, t) => {
19573
19622
  var n;
19574
- if (e.symbol) n = new X("mo", [En(e.name, e.mode)]), Oi.has(e.name) && n.setAttribute("largeop", "false");
19575
- else if (e.body) n = new X("mo", jn(e.body, t));
19623
+ if (e.symbol) n = new X("mo", [Dn(e.name, e.mode)]), ki.has(e.name) && n.setAttribute("largeop", "false");
19624
+ else if (e.body) n = new X("mo", Mn(e.body, t));
19576
19625
  else {
19577
- n = new X("mi", [new Sn(e.name.slice(1))]);
19578
- var r = new X("mo", [En("⁡", "text")]);
19579
- n = e.parentIsSupSub ? new X("mrow", [n, r]) : xn([n, r]);
19626
+ n = new X("mi", [new Cn(e.name.slice(1))]);
19627
+ var r = new X("mo", [Dn("⁡", "text")]);
19628
+ n = e.parentIsSupSub ? new X("mrow", [n, r]) : Sn([n, r]);
19580
19629
  }
19581
19630
  return n;
19582
- }, ji = {
19631
+ }, Mi = {
19583
19632
  "∏": "\\prod",
19584
19633
  "∐": "\\coprod",
19585
19634
  "∑": "\\sum",
@@ -19599,7 +19648,7 @@ J({
19599
19648
  numArgs: 0,
19600
19649
  handler: (e, t) => {
19601
19650
  var n = e.parser, r = e.funcName;
19602
- return r.length === 1 && (r = ji[r]), {
19651
+ return r.length === 1 && (r = Mi[r]), {
19603
19652
  type: "op",
19604
19653
  mode: n.mode,
19605
19654
  limits: !0,
@@ -19608,8 +19657,8 @@ J({
19608
19657
  name: r
19609
19658
  };
19610
19659
  },
19611
- htmlBuilder: ki,
19612
- mathmlBuilder: Ai
19660
+ htmlBuilder: Ai,
19661
+ mathmlBuilder: ji
19613
19662
  }), J({
19614
19663
  type: "op",
19615
19664
  names: ["\\mathop"],
@@ -19623,11 +19672,11 @@ J({
19623
19672
  limits: !1,
19624
19673
  parentIsSupSub: !1,
19625
19674
  symbol: !1,
19626
- body: cn(r)
19675
+ body: ln(r)
19627
19676
  };
19628
19677
  }
19629
19678
  });
19630
- var Mi = {
19679
+ var Ni = {
19631
19680
  "∫": "\\int",
19632
19681
  "∬": "\\iint",
19633
19682
  "∭": "\\iiint",
@@ -19694,7 +19743,7 @@ J({
19694
19743
  allowedInArgument: !0,
19695
19744
  handler(e) {
19696
19745
  var t = e.parser, n = e.funcName;
19697
- return n.length === 1 && (n = Mi[n]), {
19746
+ return n.length === 1 && (n = Ni[n]), {
19698
19747
  type: "op",
19699
19748
  mode: t.mode,
19700
19749
  limits: !1,
@@ -19704,12 +19753,12 @@ J({
19704
19753
  };
19705
19754
  }
19706
19755
  });
19707
- var Ni = (e, t) => {
19756
+ var Pi = (e, t) => {
19708
19757
  var n, r, i = !1, a;
19709
19758
  e.type === "supsub" ? (n = e.sup, r = e.sub, a = Q(e.base, "operatorname"), i = !0) : a = Q(e, "operatorname");
19710
19759
  var o;
19711
19760
  if (a.body.length > 0) {
19712
- for (var s = pn(a.body.map((e) => {
19761
+ for (var s = mn(a.body.map((e) => {
19713
19762
  var t = "text" in e ? e.text : void 0;
19714
19763
  return typeof t == "string" ? {
19715
19764
  type: "textord",
@@ -19722,7 +19771,7 @@ var Ni = (e, t) => {
19722
19771
  }
19723
19772
  o = G(["mop"], s, t);
19724
19773
  } else o = G(["mop"], [], t);
19725
- return i ? Di(o, n, r, t, t.style, 0, 0) : o;
19774
+ return i ? Oi(o, n, r, t, t.style, 0, 0) : o;
19726
19775
  };
19727
19776
  J({
19728
19777
  type: "operatorname",
@@ -19733,17 +19782,17 @@ J({
19733
19782
  return {
19734
19783
  type: "operatorname",
19735
19784
  mode: n.mode,
19736
- body: cn(i),
19785
+ body: ln(i),
19737
19786
  alwaysHandleSupSub: r === "\\operatornamewithlimits",
19738
19787
  limits: !1,
19739
19788
  parentIsSupSub: !1
19740
19789
  };
19741
19790
  },
19742
- htmlBuilder: Ni,
19791
+ htmlBuilder: Pi,
19743
19792
  mathmlBuilder: (e, t) => {
19744
- for (var n = jn(e.body, t.withFont("mathrm")), r = !0, i = 0; i < n.length; i++) {
19793
+ for (var n = Mn(e.body, t.withFont("mathrm")), r = !0, i = 0; i < n.length; i++) {
19745
19794
  var a = n[i];
19746
- if (!(a instanceof Cn)) {
19795
+ if (!(a instanceof wn)) {
19747
19796
  if (a instanceof X) switch (a.type) {
19748
19797
  case "mi":
19749
19798
  case "mn":
@@ -19751,26 +19800,26 @@ J({
19751
19800
  case "mtext": break;
19752
19801
  case "mo":
19753
19802
  var o = a.children[0];
19754
- a.children.length === 1 && o instanceof Sn ? o.text = o.text.replace(/\u2212/, "-").replace(/\u2217/, "*") : r = !1;
19803
+ a.children.length === 1 && o instanceof Cn ? o.text = o.text.replace(/\u2212/, "-").replace(/\u2217/, "*") : r = !1;
19755
19804
  break;
19756
19805
  default: r = !1;
19757
19806
  }
19758
19807
  else r = !1;
19759
19808
  }
19760
19809
  }
19761
- r && (n = [new Sn(n.map((e) => e.toText()).join(""))]);
19810
+ r && (n = [new Cn(n.map((e) => e.toText()).join(""))]);
19762
19811
  var s = new X("mi", n);
19763
19812
  s.setAttribute("mathvariant", "normal");
19764
- var c = new X("mo", [En("⁡", "text")]);
19765
- return e.parentIsSupSub ? new X("mrow", [s, c]) : xn([s, c]);
19813
+ var c = new X("mo", [Dn("⁡", "text")]);
19814
+ return e.parentIsSupSub ? new X("mrow", [s, c]) : Sn([s, c]);
19766
19815
  }
19767
- }), $("\\operatorname", "\\@ifstar\\operatornamewithlimits\\operatorname@"), on({
19816
+ }), $("\\operatorname", "\\@ifstar\\operatornamewithlimits\\operatorname@"), sn({
19768
19817
  type: "ordgroup",
19769
19818
  htmlBuilder(e, t) {
19770
- return e.semisimple ? Wt(pn(e.body, t, !1)) : G(["mord"], pn(e.body, t, !0), t);
19819
+ return e.semisimple ? Gt(mn(e.body, t, !1)) : G(["mord"], mn(e.body, t, !0), t);
19771
19820
  },
19772
19821
  mathmlBuilder(e, t) {
19773
- return Mn(e.body, t, !0);
19822
+ return Nn(e.body, t, !0);
19774
19823
  }
19775
19824
  }), J({
19776
19825
  type: "overline",
@@ -19785,7 +19834,7 @@ J({
19785
19834
  };
19786
19835
  },
19787
19836
  htmlBuilder(e, t) {
19788
- var n = Y(e.body, t.havingCrampedStyle()), r = Ht("overline-line", t), i = t.fontMetrics().defaultRuleThickness;
19837
+ var n = Y(e.body, t.havingCrampedStyle()), r = Ut("overline-line", t), i = t.fontMetrics().defaultRuleThickness;
19789
19838
  return G(["mord", "katex-overline"], [K({
19790
19839
  positionType: "firstBaseline",
19791
19840
  children: [
@@ -19809,7 +19858,7 @@ J({
19809
19858
  })], t);
19810
19859
  },
19811
19860
  mathmlBuilder(e, t) {
19812
- var n = new X("mo", [new Sn("‾")]);
19861
+ var n = new X("mo", [new Cn("‾")]);
19813
19862
  n.setAttribute("stretchy", "true");
19814
19863
  var r = new X("mover", [Z(e.body, t), n]);
19815
19864
  return r.setAttribute("accent", "true"), r;
@@ -19824,11 +19873,11 @@ J({
19824
19873
  return {
19825
19874
  type: "phantom",
19826
19875
  mode: n.mode,
19827
- body: cn(r)
19876
+ body: ln(r)
19828
19877
  };
19829
19878
  },
19830
- htmlBuilder: (e, t) => Wt(pn(e.body, t.withPhantom(), !1)),
19831
- mathmlBuilder: (e, t) => new X("mphantom", jn(e.body, t))
19879
+ htmlBuilder: (e, t) => Gt(mn(e.body, t.withPhantom(), !1)),
19880
+ mathmlBuilder: (e, t) => new X("mphantom", Mn(e.body, t))
19832
19881
  }), $("\\hphantom", "\\smash{\\phantom{#1}}"), J({
19833
19882
  type: "vphantom",
19834
19883
  names: ["\\vphantom"],
@@ -19844,7 +19893,7 @@ J({
19844
19893
  },
19845
19894
  htmlBuilder: (e, t) => G(["mord", "rlap"], [G(["katex-inner"], [Y(e.body, t.withPhantom())]), G(["katex-fix"], [])], t),
19846
19895
  mathmlBuilder: (e, t) => {
19847
- var n = new X("mpadded", [new X("mphantom", jn(cn(e.body), t))]);
19896
+ var n = new X("mpadded", [new X("mphantom", Mn(ln(e.body), t))]);
19848
19897
  return n.setAttribute("width", "0px"), n;
19849
19898
  }
19850
19899
  }), J({
@@ -19878,7 +19927,7 @@ J({
19878
19927
  return n.setAttribute("voffset", r), n;
19879
19928
  }
19880
19929
  });
19881
- var Pi = (e, t) => ({
19930
+ var Fi = (e, t) => ({
19882
19931
  type: "reflectbox",
19883
19932
  mode: e.parser.mode,
19884
19933
  body: t[0]
@@ -19889,7 +19938,7 @@ J({
19889
19938
  numArgs: 1,
19890
19939
  argTypes: ["hbox"],
19891
19940
  allowedInText: !0,
19892
- handler: Pi,
19941
+ handler: Fi,
19893
19942
  htmlBuilder(e, t) {
19894
19943
  return G(["mord", "reflectbox"], [Y(e.body, t)], t);
19895
19944
  },
@@ -19901,7 +19950,7 @@ J({
19901
19950
  names: ["\\mathreflectbox"],
19902
19951
  numArgs: 1,
19903
19952
  argTypes: ["math"],
19904
- handler: Pi
19953
+ handler: Fi
19905
19954
  }), J({
19906
19955
  type: "internal",
19907
19956
  names: ["\\relax"],
@@ -19947,14 +19996,14 @@ J({
19947
19996
  return i >= 0 ? s.setAttribute("height", A(i)) : (s.setAttribute("height", A(i)), s.setAttribute("depth", A(-i))), s.setAttribute("voffset", A(i)), s;
19948
19997
  }
19949
19998
  });
19950
- function Fi(e, t, n) {
19951
- for (var r = pn(e, t, !1), i = t.sizeMultiplier / n.sizeMultiplier, a = 0; a < r.length; a++) {
19999
+ function Ii(e, t, n) {
20000
+ for (var r = mn(e, t, !1), i = t.sizeMultiplier / n.sizeMultiplier, a = 0; a < r.length; a++) {
19952
20001
  var o = r[a].classes.indexOf("katex-sizing");
19953
20002
  o < 0 ? Array.prototype.push.apply(r[a].classes, t.sizingClasses(n)) : r[a].classes[o + 1] === "reset-size" + t.size && (r[a].classes[o + 1] = "reset-size" + n.size), r[a].height *= i, r[a].depth *= i;
19954
20003
  }
19955
- return Wt(r);
20004
+ return Gt(r);
19956
20005
  }
19957
- var Ii = [
20006
+ var Li = [
19958
20007
  "\\tiny",
19959
20008
  "\\sixptsize",
19960
20009
  "\\scriptsize",
@@ -19969,7 +20018,7 @@ var Ii = [
19969
20018
  ];
19970
20019
  J({
19971
20020
  type: "sizing",
19972
- names: Ii,
20021
+ names: Li,
19973
20022
  numArgs: 0,
19974
20023
  allowedInText: !0,
19975
20024
  handler: (e, t) => {
@@ -19977,16 +20026,16 @@ J({
19977
20026
  return {
19978
20027
  type: "sizing",
19979
20028
  mode: i.mode,
19980
- size: Ii.indexOf(r) + 1,
20029
+ size: Li.indexOf(r) + 1,
19981
20030
  body: a
19982
20031
  };
19983
20032
  },
19984
20033
  htmlBuilder: (e, t) => {
19985
20034
  var n = t.havingSize(e.size);
19986
- return Fi(e.body, n, t);
20035
+ return Ii(e.body, n, t);
19987
20036
  },
19988
20037
  mathmlBuilder: (e, t) => {
19989
- var n = t.havingSize(e.size), r = new X("mstyle", jn(e.body, n));
20038
+ var n = t.havingSize(e.size), r = new X("mstyle", Mn(e.body, n));
19990
20039
  return r.setAttribute("mathsize", A(n.sizeMultiplier)), r;
19991
20040
  }
19992
20041
  }), J({
@@ -19999,7 +20048,7 @@ J({
19999
20048
  var r = e.parser, i = !1, a = !1, o = n[0] && Q(n[0], "ordgroup");
20000
20049
  if (o) for (var s, c = 0; c < o.body.length; ++c) {
20001
20050
  var l = o.body[c];
20002
- if (s = $n(l).text, s === "t") i = !0;
20051
+ if (s = er(l).text, s === "t") i = !0;
20003
20052
  else if (s === "b") a = !0;
20004
20053
  else {
20005
20054
  i = !1, a = !1;
@@ -20049,10 +20098,10 @@ J({
20049
20098
  },
20050
20099
  htmlBuilder(e, t) {
20051
20100
  var n = Y(e.body, t.havingCrampedStyle());
20052
- n.height === 0 && (n.height = t.fontMetrics().xHeight), n = Gt(n, t);
20101
+ n.height === 0 && (n.height = t.fontMetrics().xHeight), n = Kt(n, t);
20053
20102
  var r = t.fontMetrics().defaultRuleThickness, i = r;
20054
20103
  t.style.id < D.TEXT.id && (i = t.fontMetrics().xHeight);
20055
- var a = r + i / 4, o = Ir(n.height + n.depth + a + r, t), s = o.span, c = o.ruleWidth, l = o.advanceWidth, u = s.height - c;
20104
+ var a = r + i / 4, o = Lr(n.height + n.depth + a + r, t), s = o.span, c = o.ruleWidth, l = o.advanceWidth, u = s.height - c;
20056
20105
  u > n.height + n.depth + a && (a = (a + u - n.height - n.depth) / 2);
20057
20106
  var d = s.height - n.height - a - c;
20058
20107
  n.style.paddingLeft = A(l);
@@ -20096,14 +20145,14 @@ J({
20096
20145
  return r ? new X("mroot", [Z(n, t), Z(r, t)]) : new X("msqrt", [Z(n, t)]);
20097
20146
  }
20098
20147
  });
20099
- var Li = {
20148
+ var Ri = {
20100
20149
  display: D.DISPLAY,
20101
20150
  text: D.TEXT,
20102
20151
  script: D.SCRIPT,
20103
20152
  scriptscript: D.SCRIPTSCRIPT
20104
20153
  };
20105
- function Ri(e) {
20106
- return e in Li;
20154
+ function zi(e) {
20155
+ return e in Ri;
20107
20156
  }
20108
20157
  J({
20109
20158
  type: "styling",
@@ -20118,7 +20167,7 @@ J({
20118
20167
  primitive: !0,
20119
20168
  handler(e, t) {
20120
20169
  var n = e.breakOnTokenText, r = e.funcName, i = e.parser, a = i.parseExpression(!0, n), o = r.slice(1, r.length - 5);
20121
- if (!Ri(o)) throw Error("Unknown style: " + o);
20170
+ if (!zi(o)) throw Error("Unknown style: " + o);
20122
20171
  return {
20123
20172
  type: "styling",
20124
20173
  mode: i.mode,
@@ -20127,13 +20176,13 @@ J({
20127
20176
  };
20128
20177
  },
20129
20178
  htmlBuilder(e, t) {
20130
- var n = Li[e.style], r = t.havingStyle(n);
20131
- return e.resetFont && (r = r.withFont("")), Fi(e.body, r, t);
20179
+ var n = Ri[e.style], r = t.havingStyle(n);
20180
+ return e.resetFont && (r = r.withFont("")), Ii(e.body, r, t);
20132
20181
  },
20133
20182
  mathmlBuilder(e, t) {
20134
- var n = Li[e.style], r = t.havingStyle(n);
20183
+ var n = Ri[e.style], r = t.havingStyle(n);
20135
20184
  e.resetFont && (r = r.withFont(""));
20136
- var i = new X("mstyle", jn(e.body, r)), a = {
20185
+ var i = new X("mstyle", Mn(e.body, r)), a = {
20137
20186
  display: ["0", "true"],
20138
20187
  text: ["0", "false"],
20139
20188
  script: ["1", "false"],
@@ -20142,14 +20191,14 @@ J({
20142
20191
  return i.setAttribute("scriptlevel", a[0]), i.setAttribute("displaystyle", a[1]), i;
20143
20192
  }
20144
20193
  });
20145
- var zi = function(e, t) {
20194
+ var Bi = function(e, t) {
20146
20195
  var n = e.base;
20147
- return n ? n.type === "op" ? n.limits && (t.style.size === D.DISPLAY.size || n.alwaysHandleSupSub) ? ki : null : n.type === "operatorname" ? n.alwaysHandleSupSub && (t.style.size === D.DISPLAY.size || n.limits) ? Ni : null : n.type === "accent" ? u(n.base) ? rr : null : n.type === "horizBrace" && !e.sub === n.isOver ? wi : null : null;
20196
+ return n ? n.type === "op" ? n.limits && (t.style.size === D.DISPLAY.size || n.alwaysHandleSupSub) ? Ai : null : n.type === "operatorname" ? n.alwaysHandleSupSub && (t.style.size === D.DISPLAY.size || n.limits) ? Pi : null : n.type === "accent" ? u(n.base) ? ir : null : n.type === "horizBrace" && !e.sub === n.isOver ? Ti : null : null;
20148
20197
  };
20149
- on({
20198
+ sn({
20150
20199
  type: "supsub",
20151
20200
  htmlBuilder(e, t) {
20152
- var n = zi(e, t);
20201
+ var n = Bi(e, t);
20153
20202
  if (n) return n(e, t);
20154
20203
  var r = e.base, i = e.sup, a = e.sub, o = Y(r, t), s, c, l = t.fontMetrics(), d = 0, f = 0, p = r && u(r);
20155
20204
  if (i) {
@@ -20209,7 +20258,7 @@ on({
20209
20258
  }]
20210
20259
  });
20211
20260
  else throw Error("supsub must have either sup or sub.");
20212
- return G([_n(o, "right") || "mord"], [o, G(["msupsub"], [x])], t);
20261
+ return G([vn(o, "right") || "mord"], [o, G(["msupsub"], [x])], t);
20213
20262
  },
20214
20263
  mathmlBuilder(e, t) {
20215
20264
  var n = !1, r, i;
@@ -20230,105 +20279,105 @@ on({
20230
20279
  }
20231
20280
  return new X(o, a);
20232
20281
  }
20233
- }), on({
20282
+ }), sn({
20234
20283
  type: "atom",
20235
20284
  htmlBuilder(e, t) {
20236
- return Ft(e.text, e.mode, t, ["m" + e.family]);
20285
+ return It(e.text, e.mode, t, ["m" + e.family]);
20237
20286
  },
20238
20287
  mathmlBuilder(e, t) {
20239
- var n = new X("mo", [En(e.text, e.mode)]);
20288
+ var n = new X("mo", [Dn(e.text, e.mode)]);
20240
20289
  if (e.family === "bin") {
20241
- var r = kn(e, t);
20290
+ var r = An(e, t);
20242
20291
  r === "bold-italic" && n.setAttribute("mathvariant", r);
20243
20292
  } else e.family === "punct" ? n.setAttribute("separator", "true") : (e.family === "open" || e.family === "close") && n.setAttribute("stretchy", "false");
20244
20293
  return n;
20245
20294
  }
20246
20295
  });
20247
- var Bi = {
20296
+ var Vi = {
20248
20297
  mi: "italic",
20249
20298
  mn: "normal",
20250
20299
  mtext: "normal"
20251
20300
  };
20252
- on({
20301
+ sn({
20253
20302
  type: "mathord",
20254
20303
  htmlBuilder(e, t) {
20255
- return Lt(e, t);
20304
+ return Rt(e, t);
20256
20305
  },
20257
20306
  mathmlBuilder(e, t) {
20258
- var n = new X("mi", [En(e.text, e.mode, t)]), r = kn(e, t) || "italic";
20259
- return r !== Bi[n.type] && n.setAttribute("mathvariant", r), n;
20307
+ var n = new X("mi", [Dn(e.text, e.mode, t)]), r = An(e, t) || "italic";
20308
+ return r !== Vi[n.type] && n.setAttribute("mathvariant", r), n;
20260
20309
  }
20261
- }), on({
20310
+ }), sn({
20262
20311
  type: "textord",
20263
20312
  htmlBuilder(e, t) {
20264
- return Lt(e, t);
20313
+ return Rt(e, t);
20265
20314
  },
20266
20315
  mathmlBuilder(e, t) {
20267
- var n = En(e.text, e.mode, t), r = kn(e, t) || "normal", i = e.mode === "text" ? new X("mtext", [n]) : /[0-9]/.test(e.text) ? new X("mn", [n]) : e.text === "\\prime" ? new X("mo", [n]) : new X("mi", [n]);
20268
- return r !== Bi[i.type] && i.setAttribute("mathvariant", r), i;
20316
+ var n = Dn(e.text, e.mode, t), r = An(e, t) || "normal", i = e.mode === "text" ? new X("mtext", [n]) : /[0-9]/.test(e.text) ? new X("mn", [n]) : e.text === "\\prime" ? new X("mo", [n]) : new X("mi", [n]);
20317
+ return r !== Vi[i.type] && i.setAttribute("mathvariant", r), i;
20269
20318
  }
20270
20319
  });
20271
- var Vi = /* @__PURE__ */ new Map([["\\nobreak", "nobreak"], ["\\allowbreak", "allowbreak"]]), Hi = /* @__PURE__ */ new Map([
20320
+ var Hi = /* @__PURE__ */ new Map([["\\nobreak", "nobreak"], ["\\allowbreak", "allowbreak"]]), Ui = /* @__PURE__ */ new Map([
20272
20321
  [" ", {}],
20273
20322
  ["\\ ", {}],
20274
20323
  ["~", { className: "nobreak" }],
20275
20324
  ["\\space", {}],
20276
20325
  ["\\nobreakspace", { className: "nobreak" }]
20277
20326
  ]);
20278
- on({
20327
+ sn({
20279
20328
  type: "spacing",
20280
20329
  htmlBuilder(e, t) {
20281
- var r = Hi.get(e.text), i = Vi.get(e.text);
20330
+ var r = Ui.get(e.text), i = Hi.get(e.text);
20282
20331
  if (r) {
20283
20332
  var a = r.className || "";
20284
20333
  if (e.mode === "text") {
20285
- var o = Lt(e, t);
20334
+ var o = Rt(e, t);
20286
20335
  return o.classes.push(a), o;
20287
20336
  }
20288
- return G(["mspace", a], [Ft(e.text, e.mode, t)], t);
20337
+ return G(["mspace", a], [It(e.text, e.mode, t)], t);
20289
20338
  }
20290
20339
  if (i) return G(["mspace", i], [], t);
20291
20340
  throw new n("Unknown type of space \"" + e.text + "\"");
20292
20341
  },
20293
20342
  mathmlBuilder(e, t) {
20294
20343
  var r;
20295
- if (Hi.has(e.text)) r = new X("mtext", [new Sn("\xA0")]);
20296
- else if (Vi.has(e.text)) return new X("mspace");
20344
+ if (Ui.has(e.text)) r = new X("mtext", [new Cn("\xA0")]);
20345
+ else if (Hi.has(e.text)) return new X("mspace");
20297
20346
  else throw new n("Unknown type of space \"" + e.text + "\"");
20298
20347
  return r;
20299
20348
  }
20300
20349
  });
20301
- var Ui = () => {
20350
+ var Wi = () => {
20302
20351
  var e = new X("mtd", []);
20303
20352
  return e.setAttribute("width", "50%"), e;
20304
20353
  };
20305
- on({
20354
+ sn({
20306
20355
  type: "tag",
20307
20356
  mathmlBuilder(e, t) {
20308
20357
  var n = new X("mtable", [new X("mtr", [
20309
- Ui(),
20310
- new X("mtd", [Mn(e.body, t)]),
20311
- Ui(),
20312
- new X("mtd", [Mn(e.tag, t)])
20358
+ Wi(),
20359
+ new X("mtd", [Nn(e.body, t)]),
20360
+ Wi(),
20361
+ new X("mtd", [Nn(e.tag, t)])
20313
20362
  ])]);
20314
20363
  return n.setAttribute("width", "100%"), n;
20315
20364
  }
20316
20365
  });
20317
- var Wi = {
20366
+ var Gi = {
20318
20367
  "\\text": void 0,
20319
20368
  "\\textrm": "textrm",
20320
20369
  "\\textsf": "textsf",
20321
20370
  "\\texttt": "texttt",
20322
20371
  "\\textnormal": "textrm"
20323
- }, Gi = {
20372
+ }, Ki = {
20324
20373
  "\\textbf": "textbf",
20325
20374
  "\\textmd": "textmd"
20326
- }, Ki = {
20375
+ }, qi = {
20327
20376
  "\\textit": "textit",
20328
20377
  "\\textup": "textup"
20329
- }, qi = (e, t) => {
20378
+ }, Ji = (e, t) => {
20330
20379
  var n = e.font;
20331
- return n ? Wi[n] ? t.withTextFontFamily(Wi[n]) : Gi[n] ? t.withTextFontWeight(Gi[n]) : n === "\\emph" ? t.fontShape === "textit" ? t.withTextFontShape("textup") : t.withTextFontShape("textit") : t.withTextFontShape(Ki[n]) : t;
20380
+ return n ? Gi[n] ? t.withTextFontFamily(Gi[n]) : Ki[n] ? t.withTextFontWeight(Ki[n]) : n === "\\emph" ? t.fontShape === "textit" ? t.withTextFontShape("textup") : t.withTextFontShape("textit") : t.withTextFontShape(qi[n]) : t;
20332
20381
  };
20333
20382
  J({
20334
20383
  type: "text",
@@ -20353,17 +20402,17 @@ J({
20353
20402
  return {
20354
20403
  type: "text",
20355
20404
  mode: n.mode,
20356
- body: cn(i),
20405
+ body: ln(i),
20357
20406
  font: r
20358
20407
  };
20359
20408
  },
20360
20409
  htmlBuilder(e, t) {
20361
- var n = qi(e, t);
20362
- return G(["mord", "text"], pn(e.body, n, !0), n);
20410
+ var n = Ji(e, t);
20411
+ return G(["mord", "text"], mn(e.body, n, !0), n);
20363
20412
  },
20364
20413
  mathmlBuilder(e, t) {
20365
- var n = qi(e, t);
20366
- return Mn(e.body, n);
20414
+ var n = Ji(e, t);
20415
+ return Nn(e.body, n);
20367
20416
  }
20368
20417
  }), J({
20369
20418
  type: "underline",
@@ -20378,7 +20427,7 @@ J({
20378
20427
  };
20379
20428
  },
20380
20429
  htmlBuilder(e, t) {
20381
- var n = Y(e.body, t), r = Ht("underline-line", t), i = t.fontMetrics().defaultRuleThickness;
20430
+ var n = Y(e.body, t), r = Ut("underline-line", t), i = t.fontMetrics().defaultRuleThickness;
20382
20431
  return G(["mord", "katex-underline"], [K({
20383
20432
  positionType: "top",
20384
20433
  positionData: n.height,
@@ -20403,7 +20452,7 @@ J({
20403
20452
  })], t);
20404
20453
  },
20405
20454
  mathmlBuilder(e, t) {
20406
- var n = new X("mo", [new Sn("‾")]);
20455
+ var n = new X("mo", [new Cn("‾")]);
20407
20456
  n.setAttribute("stretchy", "true");
20408
20457
  var r = new X("munder", [Z(e.body, t), n]);
20409
20458
  return r.setAttribute("accentunder", "true"), r;
@@ -20444,20 +20493,20 @@ J({
20444
20493
  throw new n("\\verb ended by end of line instead of matching delimiter");
20445
20494
  },
20446
20495
  htmlBuilder(e, t) {
20447
- for (var n = Ji(e), r = [], i = t.havingStyle(t.style.text()), a = 0; a < n.length; a++) {
20496
+ for (var n = Yi(e), r = [], i = t.havingStyle(t.style.text()), a = 0; a < n.length; a++) {
20448
20497
  var o = n[a];
20449
- o === "~" && (o = "\\textasciitilde"), r.push(Pt(o, "Typewriter-Regular", e.mode, i, ["mord", "texttt"]));
20498
+ o === "~" && (o = "\\textasciitilde"), r.push(Ft(o, "Typewriter-Regular", e.mode, i, ["mord", "texttt"]));
20450
20499
  }
20451
- return G(["mord", "text"].concat(i.sizingClasses(t)), zt(r), i);
20500
+ return G(["mord", "text"].concat(i.sizingClasses(t)), Bt(r), i);
20452
20501
  },
20453
20502
  mathmlBuilder(e, t) {
20454
- var n = new X("mtext", [new Sn(Ji(e))]);
20503
+ var n = new X("mtext", [new Cn(Yi(e))]);
20455
20504
  return n.setAttribute("mathvariant", "monospace"), n;
20456
20505
  }
20457
20506
  });
20458
- var Ji = (e) => e.body.replace(/ /g, e.star ? "␣" : "\xA0"), Yi = nn, Xi = "[ \r\n ]", Zi = "\\\\[a-zA-Z@]+", Qi = "\\\\[^\ud800-\udfff]", $i = "(" + Zi + ")" + Xi + "*", ea = "\\\\(\n|[ \r ]+\n?)[ \r ]*", ta = "[̀-ͯ]", na = RegExp(ta + "+$"), ra = "(" + Xi + "+)|" + (ea + "|") + "([!-\\[\\]-‧‪-퟿豈-￿]" + (ta + "*") + "|[\ud800-\udbff][\udc00-\udfff]" + (ta + "*") + "|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5" + ("|" + $i) + ("|" + Qi + ")"), ia = class {
20507
+ var Yi = (e) => e.body.replace(/ /g, e.star ? "␣" : "\xA0"), Xi = rn, Zi = "[ \r\n ]", Qi = "\\\\[a-zA-Z@]+", $i = "\\\\[^\ud800-\udfff]", ea = "(" + Qi + ")" + Zi + "*", ta = "\\\\(\n|[ \r ]+\n?)[ \r ]*", na = "[̀-ͯ]", ra = RegExp(na + "+$"), ia = "(" + Zi + "+)|" + (ta + "|") + "([!-\\[\\]-‧‪-퟿豈-￿]" + (na + "*") + "|[\ud800-\udbff][\udc00-\udfff]" + (na + "*") + "|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5" + ("|" + ea) + ("|" + $i + ")"), aa = class {
20459
20508
  constructor(e, t) {
20460
- this.input = void 0, this.settings = void 0, this.tokenRegex = void 0, this.catcodes = void 0, this.input = e, this.settings = t, this.tokenRegex = new RegExp(ra, "g"), this.catcodes = {
20509
+ this.input = void 0, this.settings = void 0, this.tokenRegex = void 0, this.catcodes = void 0, this.input = e, this.settings = t, this.tokenRegex = new RegExp(ia, "g"), this.catcodes = {
20461
20510
  "%": 14,
20462
20511
  "~": 13
20463
20512
  };
@@ -20467,17 +20516,22 @@ var Ji = (e) => e.body.replace(/ /g, e.star ? "␣" : "\xA0"), Yi = nn, Xi = "[
20467
20516
  }
20468
20517
  lex() {
20469
20518
  var e = this.input, t = this.tokenRegex.lastIndex;
20470
- if (t === e.length) return new ii("EOF", new ri(this, t, t));
20519
+ if (t === e.length) return new ai("EOF", new ii(this, t, t));
20471
20520
  var r = this.tokenRegex.exec(e);
20472
- if (r === null || r.index !== t) throw new n("Unexpected character: '" + e[t] + "'", new ii(e[t], new ri(this, t, t + 1)));
20521
+ if (r === null || r.index !== t) throw new n("Unexpected character: '" + e[t] + "'", new ai(e[t], new ii(this, t, t + 1)));
20473
20522
  var i = r[6] || r[3] || (r[2] ? "\\ " : " ");
20474
20523
  if (this.catcodes[i] === 14) {
20475
20524
  var a = e.indexOf("\n", this.tokenRegex.lastIndex);
20476
- return a === -1 ? (this.tokenRegex.lastIndex = e.length, this.settings.reportNonstrict("commentAtEnd", "% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")) : this.tokenRegex.lastIndex = a + 1, this.lex();
20525
+ return a === -1 ? (this.tokenRegex.lastIndex = e.length, Nt({
20526
+ strict: this.settings.strict,
20527
+ errorCode: "commentAtEnd",
20528
+ errorMsg: "% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)",
20529
+ report: !0
20530
+ })) : this.tokenRegex.lastIndex = a + 1, this.lex();
20477
20531
  }
20478
- return new ii(i, new ri(this, t, this.tokenRegex.lastIndex));
20532
+ return new ai(i, new ii(this, t, this.tokenRegex.lastIndex));
20479
20533
  }
20480
- }, aa = class {
20534
+ }, oa = class {
20481
20535
  constructor(e, t) {
20482
20536
  e === void 0 && (e = {}), t === void 0 && (t = {}), this.current = void 0, this.builtins = void 0, this.undefStack = void 0, this.current = t, this.builtins = e, this.undefStack = [];
20483
20537
  }
@@ -20509,7 +20563,7 @@ var Ji = (e) => e.body.replace(/ /g, e.star ? "␣" : "\xA0"), Yi = nn, Xi = "[
20509
20563
  }
20510
20564
  t == null ? delete this.current[e] : this.current[e] = t;
20511
20565
  }
20512
- }, oa = ni;
20566
+ }, sa = ri;
20513
20567
  $("\\noexpand", function(e) {
20514
20568
  var t = e.popToken();
20515
20569
  return e.isExpandable(t.text) && (t.noexpand = !0, t.treatAsRelax = !0), {
@@ -20553,7 +20607,7 @@ $("\\noexpand", function(e) {
20553
20607
  numArgs: 0
20554
20608
  };
20555
20609
  });
20556
- var sa = {
20610
+ var ca = {
20557
20611
  0: 0,
20558
20612
  1: 1,
20559
20613
  2: 2,
@@ -20587,12 +20641,12 @@ $("\\char", function(e) {
20587
20641
  else i = t.text.charCodeAt(0);
20588
20642
  } else r = 10;
20589
20643
  if (r) {
20590
- if (i = sa[t.text], i == null || i >= r) throw new n("Invalid base-" + r + " digit " + t.text);
20591
- for (var a; (a = sa[e.future().text]) != null && a < r;) i *= r, i += a, e.popToken();
20644
+ if (i = ca[t.text], i == null || i >= r) throw new n("Invalid base-" + r + " digit " + t.text);
20645
+ for (var a; (a = ca[e.future().text]) != null && a < r;) i *= r, i += a, e.popToken();
20592
20646
  }
20593
20647
  return "\\@char{" + i + "}";
20594
20648
  });
20595
- var ca = (e, t, r, i) => {
20649
+ var la = (e, t, r, i) => {
20596
20650
  var a = e.consumeArg().tokens;
20597
20651
  if (a.length !== 1) throw new n("\\newcommand's first argument must be a macro name");
20598
20652
  var o = a[0].text, s = e.isDefined(o);
@@ -20609,7 +20663,7 @@ var ca = (e, t, r, i) => {
20609
20663
  numArgs: c
20610
20664
  }), "";
20611
20665
  };
20612
- $("\\newcommand", (e) => ca(e, !1, !0, !1)), $("\\renewcommand", (e) => ca(e, !0, !1, !1)), $("\\providecommand", (e) => ca(e, !0, !0, !0)), $("\\message", (e) => {
20666
+ $("\\newcommand", (e) => la(e, !1, !0, !1)), $("\\renewcommand", (e) => la(e, !0, !1, !1)), $("\\providecommand", (e) => la(e, !0, !0, !0)), $("\\message", (e) => {
20613
20667
  var t = e.consumeArgs(1)[0];
20614
20668
  return console.log(t.reverse().map((e) => e.text).join("")), "";
20615
20669
  }), $("\\errmessage", (e) => {
@@ -20617,9 +20671,9 @@ $("\\newcommand", (e) => ca(e, !1, !0, !1)), $("\\renewcommand", (e) => ca(e, !0
20617
20671
  return console.error(t.reverse().map((e) => e.text).join("")), "";
20618
20672
  }), $("\\show", (e) => {
20619
20673
  var t = e.popToken(), n = t.text;
20620
- return console.log(t, e.macros.get(n), Yi[n], j.math[n], j.text[n]), "";
20674
+ return console.log(t, e.macros.get(n), Xi[n], j.math[n], j.text[n]), "";
20621
20675
  }), $("\\bgroup", "{"), $("\\egroup", "}"), $("~", "\\nobreakspace"), $("\\lq", "`"), $("\\rq", "'"), $("\\aa", "\\r a"), $("\\AA", "\\r A"), $("\\textcopyright", "\\html@mathml{\\textcircled{c}}{\\char`©}"), $("\\copyright", "\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"), $("\\textregistered", "\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"), $("ℬ", "\\mathscr{B}"), $("ℰ", "\\mathscr{E}"), $("ℱ", "\\mathscr{F}"), $("ℋ", "\\mathscr{H}"), $("ℐ", "\\mathscr{I}"), $("ℒ", "\\mathscr{L}"), $("ℳ", "\\mathscr{M}"), $("ℛ", "\\mathscr{R}"), $("ℭ", "\\mathfrak{C}"), $("ℌ", "\\mathfrak{H}"), $("ℨ", "\\mathfrak{Z}"), $("\\Bbbk", "\\Bbb{k}"), $("\\llap", "\\mathllap{\\textrm{#1}}"), $("\\rlap", "\\mathrlap{\\textrm{#1}}"), $("\\clap", "\\mathclap{\\textrm{#1}}"), $("\\mathstrut", "\\vphantom{(}"), $("\\underbar", "\\underline{\\text{#1}}"), $("\\not", "\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char\"338}"), $("\\neq", "\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"), $("\\ne", "\\neq"), $("≠", "\\neq"), $("\\notin", "\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"), $("∉", "\\notin"), $("≘", "\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"), $("≙", "\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"), $("≚", "\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"), $("≛", "\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"), $("≝", "\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"), $("≞", "\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"), $("≟", "\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"), $("⟂", "\\perp"), $("‼", "\\mathclose{!\\mkern-0.8mu!}"), $("∌", "\\notni"), $("⌜", "\\ulcorner"), $("⌝", "\\urcorner"), $("⌞", "\\llcorner"), $("⌟", "\\lrcorner"), $("©", "\\copyright"), $("®", "\\textregistered"), $("\\ulcorner", "\\html@mathml{\\@ulcorner}{\\mathop{\\char\"231c}}"), $("\\urcorner", "\\html@mathml{\\@urcorner}{\\mathop{\\char\"231d}}"), $("\\llcorner", "\\html@mathml{\\@llcorner}{\\mathop{\\char\"231e}}"), $("\\lrcorner", "\\html@mathml{\\@lrcorner}{\\mathop{\\char\"231f}}"), $("\\vdots", "{\\varvdots\\rule{0pt}{15pt}}"), $("⋮", "\\vdots"), $("\\varGamma", "\\mathit{\\Gamma}"), $("\\varDelta", "\\mathit{\\Delta}"), $("\\varTheta", "\\mathit{\\Theta}"), $("\\varLambda", "\\mathit{\\Lambda}"), $("\\varXi", "\\mathit{\\Xi}"), $("\\varPi", "\\mathit{\\Pi}"), $("\\varSigma", "\\mathit{\\Sigma}"), $("\\varUpsilon", "\\mathit{\\Upsilon}"), $("\\varPhi", "\\mathit{\\Phi}"), $("\\varPsi", "\\mathit{\\Psi}"), $("\\varOmega", "\\mathit{\\Omega}"), $("\\substack", "\\begin{subarray}{c}#1\\end{subarray}"), $("\\colon", "\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"), $("\\boxed", "\\fbox{$\\displaystyle{#1}$}"), $("\\iff", "\\DOTSB\\;\\Longleftrightarrow\\;"), $("\\implies", "\\DOTSB\\;\\Longrightarrow\\;"), $("\\impliedby", "\\DOTSB\\;\\Longleftarrow\\;"), $("\\dddot", "{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"), $("\\ddddot", "{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");
20622
- var la = {
20676
+ var ua = {
20623
20677
  ",": "\\dotsc",
20624
20678
  "\\not": "\\dotsb",
20625
20679
  "+": "\\dotsb",
@@ -20667,12 +20721,12 @@ var la = {
20667
20721
  "\\iiiint": "\\dotsi",
20668
20722
  "\\idotsint": "\\dotsi",
20669
20723
  "\\DOTSX": "\\dotsx"
20670
- }, ua = /* @__PURE__ */ new Set(["bin", "rel"]);
20724
+ }, da = /* @__PURE__ */ new Set(["bin", "rel"]);
20671
20725
  $("\\dots", function(e) {
20672
20726
  var t = "\\dotso", n = e.expandAfterFuture().text;
20673
- return n in la ? t = la[n] : (n.slice(0, 4) === "\\not" || n in j.math && ua.has(j.math[n].group)) && (t = "\\dotsb"), t;
20727
+ return n in ua ? t = ua[n] : (n.slice(0, 4) === "\\not" || n in j.math && da.has(j.math[n].group)) && (t = "\\dotsb"), t;
20674
20728
  });
20675
- var da = {
20729
+ var fa = {
20676
20730
  ")": !0,
20677
20731
  "]": !0,
20678
20732
  "\\rbrack": !0,
@@ -20694,19 +20748,19 @@ var da = {
20694
20748
  ",": !0
20695
20749
  };
20696
20750
  $("\\dotso", function(e) {
20697
- return e.future().text in da ? "\\ldots\\," : "\\ldots";
20751
+ return e.future().text in fa ? "\\ldots\\," : "\\ldots";
20698
20752
  }), $("\\dotsc", function(e) {
20699
20753
  var t = e.future().text;
20700
- return t in da && t !== "," ? "\\ldots\\," : "\\ldots";
20754
+ return t in fa && t !== "," ? "\\ldots\\," : "\\ldots";
20701
20755
  }), $("\\cdots", function(e) {
20702
- return e.future().text in da ? "\\@cdots\\," : "\\@cdots";
20756
+ return e.future().text in fa ? "\\@cdots\\," : "\\@cdots";
20703
20757
  }), $("\\dotsb", "\\cdots"), $("\\dotsm", "\\cdots"), $("\\dotsi", "\\!\\cdots"), $("\\dotsx", "\\ldots\\,"), $("\\DOTSI", "\\relax"), $("\\DOTSB", "\\relax"), $("\\DOTSX", "\\relax"), $("\\tmspace", "\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"), $("\\,", "\\tmspace+{3mu}{.1667em}"), $("\\thinspace", "\\,"), $("\\>", "\\mskip{4mu}"), $("\\:", "\\tmspace+{4mu}{.2222em}"), $("\\medspace", "\\:"), $("\\;", "\\tmspace+{5mu}{.2777em}"), $("\\thickspace", "\\;"), $("\\!", "\\tmspace-{3mu}{.1667em}"), $("\\negthinspace", "\\!"), $("\\negmedspace", "\\tmspace-{4mu}{.2222em}"), $("\\negthickspace", "\\tmspace-{5mu}{.277em}"), $("\\enspace", "\\kern.5em "), $("\\enskip", "\\hskip.5em\\relax"), $("\\quad", "\\hskip1em\\relax"), $("\\qquad", "\\hskip2em\\relax"), $("\\tag", "\\@ifstar\\tag@literal\\tag@paren"), $("\\tag@paren", "\\tag@literal{({#1})}"), $("\\tag@literal", (e) => {
20704
20758
  if (e.macros.get("\\df@tag")) throw new n("Multiple \\tag");
20705
20759
  return "\\gdef\\df@tag{\\text{#1}}";
20706
20760
  }), $("\\bmod", "\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"), $("\\pod", "\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"), $("\\pmod", "\\pod{{\\rm mod}\\mkern6mu#1}"), $("\\mod", "\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"), $("\\newline", "\\\\\\relax"), $("\\TeX", "\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");
20707
- var fa = A(We["Main-Regular"][84][1] - .7 * We["Main-Regular"][65][1]);
20708
- $("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + fa + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}"), $("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + fa + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}"), $("\\hspace", "\\@ifstar\\@hspacer\\@hspace"), $("\\@hspace", "\\hskip #1\\relax"), $("\\@hspacer", "\\rule{0pt}{0pt}\\hskip #1\\relax"), $("\\ordinarycolon", ":"), $("\\vcentcolon", "\\mathrel{\\mathop\\ordinarycolon}"), $("\\dblcolon", "\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char\"2237}}"), $("\\coloneqq", "\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char\"2254}}"), $("\\Coloneqq", "\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char\"2237\\char\"3d}}"), $("\\coloneq", "\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char\"3a\\char\"2212}}"), $("\\Coloneq", "\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char\"2237\\char\"2212}}"), $("\\eqqcolon", "\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char\"2255}}"), $("\\Eqqcolon", "\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char\"3d\\char\"2237}}"), $("\\eqcolon", "\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char\"2239}}"), $("\\Eqcolon", "\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char\"2212\\char\"2237}}"), $("\\colonapprox", "\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char\"3a\\char\"2248}}"), $("\\Colonapprox", "\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char\"2237\\char\"2248}}"), $("\\colonsim", "\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char\"3a\\char\"223c}}"), $("\\Colonsim", "\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char\"2237\\char\"223c}}"), $("∷", "\\dblcolon"), $("∹", "\\eqcolon"), $("≔", "\\coloneqq"), $("≕", "\\eqqcolon"), $("⩴", "\\Coloneqq"), $("\\ratio", "\\vcentcolon"), $("\\coloncolon", "\\dblcolon"), $("\\colonequals", "\\coloneqq"), $("\\coloncolonequals", "\\Coloneqq"), $("\\equalscolon", "\\eqqcolon"), $("\\equalscoloncolon", "\\Eqqcolon"), $("\\colonminus", "\\coloneq"), $("\\coloncolonminus", "\\Coloneq"), $("\\minuscolon", "\\eqcolon"), $("\\minuscoloncolon", "\\Eqcolon"), $("\\coloncolonapprox", "\\Colonapprox"), $("\\coloncolonsim", "\\Colonsim"), $("\\simcolon", "\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"), $("\\simcoloncolon", "\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"), $("\\approxcolon", "\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"), $("\\approxcoloncolon", "\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"), $("\\notni", "\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"), $("\\limsup", "\\DOTSB\\operatorname*{lim\\,sup}"), $("\\liminf", "\\DOTSB\\operatorname*{lim\\,inf}"), $("\\injlim", "\\DOTSB\\operatorname*{inj\\,lim}"), $("\\projlim", "\\DOTSB\\operatorname*{proj\\,lim}"), $("\\varlimsup", "\\DOTSB\\operatorname*{\\overline{lim}}"), $("\\varliminf", "\\DOTSB\\operatorname*{\\underline{lim}}"), $("\\varinjlim", "\\DOTSB\\operatorname*{\\underrightarrow{lim}}"), $("\\varprojlim", "\\DOTSB\\operatorname*{\\underleftarrow{lim}}"), $("\\gvertneqq", "\\html@mathml{\\@gvertneqq}{≩}"), $("\\lvertneqq", "\\html@mathml{\\@lvertneqq}{≨}"), $("\\ngeqq", "\\html@mathml{\\@ngeqq}{≱}"), $("\\ngeqslant", "\\html@mathml{\\@ngeqslant}{≱}"), $("\\nleqq", "\\html@mathml{\\@nleqq}{≰}"), $("\\nleqslant", "\\html@mathml{\\@nleqslant}{≰}"), $("\\nshortmid", "\\html@mathml{\\@nshortmid}{∤}"), $("\\nshortparallel", "\\html@mathml{\\@nshortparallel}{∦}"), $("\\nsubseteqq", "\\html@mathml{\\@nsubseteqq}{⊈}"), $("\\nsupseteqq", "\\html@mathml{\\@nsupseteqq}{⊉}"), $("\\varsubsetneq", "\\html@mathml{\\@varsubsetneq}{⊊}"), $("\\varsubsetneqq", "\\html@mathml{\\@varsubsetneqq}{⫋}"), $("\\varsupsetneq", "\\html@mathml{\\@varsupsetneq}{⊋}"), $("\\varsupsetneqq", "\\html@mathml{\\@varsupsetneqq}{⫌}"), $("\\imath", "\\html@mathml{\\@imath}{ı}"), $("\\jmath", "\\html@mathml{\\@jmath}{ȷ}"), $("\\llbracket", "\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"), $("\\rrbracket", "\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"), $("⟦", "\\llbracket"), $("⟧", "\\rrbracket"), $("\\lBrace", "\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"), $("\\rBrace", "\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"), $("↤", "\\mapsfrom"), $("\\mapsfrom", "\\html@mathml{\\mathrel{\\mathreflectbox{\\mapsto}}}{\\mathrel{\\char`↤}}"), $("⦃", "\\lBrace"), $("⦄", "\\rBrace"), $("\\minuso", "\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"), $("⦵", "\\minuso"), $("\\darr", "\\downarrow"), $("\\dArr", "\\Downarrow"), $("\\Darr", "\\Downarrow"), $("\\lang", "\\langle"), $("\\rang", "\\rangle"), $("\\uarr", "\\uparrow"), $("\\uArr", "\\Uparrow"), $("\\Uarr", "\\Uparrow"), $("\\N", "\\mathbb{N}"), $("\\R", "\\mathbb{R}"), $("\\Z", "\\mathbb{Z}"), $("\\alef", "\\aleph"), $("\\alefsym", "\\aleph"), $("\\Alpha", "\\mathrm{A}"), $("\\Beta", "\\mathrm{B}"), $("\\bull", "\\bullet"), $("\\Chi", "\\mathrm{X}"), $("\\clubs", "\\clubsuit"), $("\\cnums", "\\mathbb{C}"), $("\\Complex", "\\mathbb{C}"), $("\\Dagger", "\\ddagger"), $("\\diamonds", "\\diamondsuit"), $("\\empty", "\\emptyset"), $("\\Epsilon", "\\mathrm{E}"), $("\\Eta", "\\mathrm{H}"), $("\\exist", "\\exists"), $("\\harr", "\\leftrightarrow"), $("\\hArr", "\\Leftrightarrow"), $("\\Harr", "\\Leftrightarrow"), $("\\hearts", "\\heartsuit"), $("\\image", "\\Im"), $("\\infin", "\\infty"), $("\\Iota", "\\mathrm{I}"), $("\\isin", "\\in"), $("\\Kappa", "\\mathrm{K}"), $("\\larr", "\\leftarrow"), $("\\lArr", "\\Leftarrow"), $("\\Larr", "\\Leftarrow"), $("\\lrarr", "\\leftrightarrow"), $("\\lrArr", "\\Leftrightarrow"), $("\\Lrarr", "\\Leftrightarrow"), $("\\Mu", "\\mathrm{M}"), $("\\natnums", "\\mathbb{N}"), $("\\Nu", "\\mathrm{N}"), $("\\Omicron", "\\mathrm{O}"), $("\\plusmn", "\\pm"), $("\\rarr", "\\rightarrow"), $("\\rArr", "\\Rightarrow"), $("\\Rarr", "\\Rightarrow"), $("\\real", "\\Re"), $("\\reals", "\\mathbb{R}"), $("\\Reals", "\\mathbb{R}"), $("\\Rho", "\\mathrm{P}"), $("\\sdot", "\\cdot"), $("\\sect", "\\S"), $("\\spades", "\\spadesuit"), $("\\sub", "\\subset"), $("\\sube", "\\subseteq"), $("\\supe", "\\supseteq"), $("\\Tau", "\\mathrm{T}"), $("\\thetasym", "\\vartheta"), $("\\weierp", "\\wp"), $("\\Zeta", "\\mathrm{Z}"), $("\\argmin", "\\DOTSB\\operatorname*{arg\\,min}"), $("\\argmax", "\\DOTSB\\operatorname*{arg\\,max}"), $("\\plim", "\\DOTSB\\mathop{\\operatorname{plim}}\\limits"), $("\\bra", "\\mathinner{\\langle{#1}|}"), $("\\ket", "\\mathinner{|{#1}\\rangle}"), $("\\braket", "\\mathinner{\\langle{#1}\\rangle}"), $("\\Bra", "\\left\\langle#1\\right|"), $("\\Ket", "\\left|#1\\right\\rangle");
20709
- var pa = (e) => (t) => {
20761
+ var pa = A(We["Main-Regular"][84][1] - .7 * We["Main-Regular"][65][1]);
20762
+ $("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + pa + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}"), $("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + pa + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}"), $("\\hspace", "\\@ifstar\\@hspacer\\@hspace"), $("\\@hspace", "\\hskip #1\\relax"), $("\\@hspacer", "\\rule{0pt}{0pt}\\hskip #1\\relax"), $("\\ordinarycolon", ":"), $("\\vcentcolon", "\\mathrel{\\mathop\\ordinarycolon}"), $("\\dblcolon", "\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char\"2237}}"), $("\\coloneqq", "\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char\"2254}}"), $("\\Coloneqq", "\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char\"2237\\char\"3d}}"), $("\\coloneq", "\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char\"3a\\char\"2212}}"), $("\\Coloneq", "\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char\"2237\\char\"2212}}"), $("\\eqqcolon", "\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char\"2255}}"), $("\\Eqqcolon", "\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char\"3d\\char\"2237}}"), $("\\eqcolon", "\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char\"2239}}"), $("\\Eqcolon", "\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char\"2212\\char\"2237}}"), $("\\colonapprox", "\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char\"3a\\char\"2248}}"), $("\\Colonapprox", "\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char\"2237\\char\"2248}}"), $("\\colonsim", "\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char\"3a\\char\"223c}}"), $("\\Colonsim", "\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char\"2237\\char\"223c}}"), $("∷", "\\dblcolon"), $("∹", "\\eqcolon"), $("≔", "\\coloneqq"), $("≕", "\\eqqcolon"), $("⩴", "\\Coloneqq"), $("\\ratio", "\\vcentcolon"), $("\\coloncolon", "\\dblcolon"), $("\\colonequals", "\\coloneqq"), $("\\coloncolonequals", "\\Coloneqq"), $("\\equalscolon", "\\eqqcolon"), $("\\equalscoloncolon", "\\Eqqcolon"), $("\\colonminus", "\\coloneq"), $("\\coloncolonminus", "\\Coloneq"), $("\\minuscolon", "\\eqcolon"), $("\\minuscoloncolon", "\\Eqcolon"), $("\\coloncolonapprox", "\\Colonapprox"), $("\\coloncolonsim", "\\Colonsim"), $("\\simcolon", "\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"), $("\\simcoloncolon", "\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"), $("\\approxcolon", "\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"), $("\\approxcoloncolon", "\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"), $("\\notni", "\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"), $("\\limsup", "\\DOTSB\\operatorname*{lim\\,sup}"), $("\\liminf", "\\DOTSB\\operatorname*{lim\\,inf}"), $("\\injlim", "\\DOTSB\\operatorname*{inj\\,lim}"), $("\\projlim", "\\DOTSB\\operatorname*{proj\\,lim}"), $("\\varlimsup", "\\DOTSB\\operatorname*{\\overline{lim}}"), $("\\varliminf", "\\DOTSB\\operatorname*{\\underline{lim}}"), $("\\varinjlim", "\\DOTSB\\operatorname*{\\underrightarrow{lim}}"), $("\\varprojlim", "\\DOTSB\\operatorname*{\\underleftarrow{lim}}"), $("\\gvertneqq", "\\html@mathml{\\@gvertneqq}{≩}"), $("\\lvertneqq", "\\html@mathml{\\@lvertneqq}{≨}"), $("\\ngeqq", "\\html@mathml{\\@ngeqq}{≱}"), $("\\ngeqslant", "\\html@mathml{\\@ngeqslant}{≱}"), $("\\nleqq", "\\html@mathml{\\@nleqq}{≰}"), $("\\nleqslant", "\\html@mathml{\\@nleqslant}{≰}"), $("\\nshortmid", "\\html@mathml{\\@nshortmid}{∤}"), $("\\nshortparallel", "\\html@mathml{\\@nshortparallel}{∦}"), $("\\nsubseteqq", "\\html@mathml{\\@nsubseteqq}{⊈}"), $("\\nsupseteqq", "\\html@mathml{\\@nsupseteqq}{⊉}"), $("\\varsubsetneq", "\\html@mathml{\\@varsubsetneq}{⊊}"), $("\\varsubsetneqq", "\\html@mathml{\\@varsubsetneqq}{⫋}"), $("\\varsupsetneq", "\\html@mathml{\\@varsupsetneq}{⊋}"), $("\\varsupsetneqq", "\\html@mathml{\\@varsupsetneqq}{⫌}"), $("\\imath", "\\html@mathml{\\@imath}{ı}"), $("\\jmath", "\\html@mathml{\\@jmath}{ȷ}"), $("\\llbracket", "\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"), $("\\rrbracket", "\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"), $("⟦", "\\llbracket"), $("⟧", "\\rrbracket"), $("\\lBrace", "\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"), $("\\rBrace", "\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"), $("↤", "\\mapsfrom"), $("\\mapsfrom", "\\html@mathml{\\mathrel{\\mathreflectbox{\\mapsto}}}{\\mathrel{\\char`↤}}"), $("⦃", "\\lBrace"), $("⦄", "\\rBrace"), $("\\minuso", "\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"), $("⦵", "\\minuso"), $("\\darr", "\\downarrow"), $("\\dArr", "\\Downarrow"), $("\\Darr", "\\Downarrow"), $("\\lang", "\\langle"), $("\\rang", "\\rangle"), $("\\uarr", "\\uparrow"), $("\\uArr", "\\Uparrow"), $("\\Uarr", "\\Uparrow"), $("\\N", "\\mathbb{N}"), $("\\R", "\\mathbb{R}"), $("\\Z", "\\mathbb{Z}"), $("\\alef", "\\aleph"), $("\\alefsym", "\\aleph"), $("\\Alpha", "\\mathrm{A}"), $("\\Beta", "\\mathrm{B}"), $("\\bull", "\\bullet"), $("\\Chi", "\\mathrm{X}"), $("\\clubs", "\\clubsuit"), $("\\cnums", "\\mathbb{C}"), $("\\Complex", "\\mathbb{C}"), $("\\Dagger", "\\ddagger"), $("\\diamonds", "\\diamondsuit"), $("\\empty", "\\emptyset"), $("\\Epsilon", "\\mathrm{E}"), $("\\Eta", "\\mathrm{H}"), $("\\exist", "\\exists"), $("\\harr", "\\leftrightarrow"), $("\\hArr", "\\Leftrightarrow"), $("\\Harr", "\\Leftrightarrow"), $("\\hearts", "\\heartsuit"), $("\\image", "\\Im"), $("\\infin", "\\infty"), $("\\Iota", "\\mathrm{I}"), $("\\isin", "\\in"), $("\\Kappa", "\\mathrm{K}"), $("\\larr", "\\leftarrow"), $("\\lArr", "\\Leftarrow"), $("\\Larr", "\\Leftarrow"), $("\\lrarr", "\\leftrightarrow"), $("\\lrArr", "\\Leftrightarrow"), $("\\Lrarr", "\\Leftrightarrow"), $("\\Mu", "\\mathrm{M}"), $("\\natnums", "\\mathbb{N}"), $("\\Nu", "\\mathrm{N}"), $("\\Omicron", "\\mathrm{O}"), $("\\plusmn", "\\pm"), $("\\rarr", "\\rightarrow"), $("\\rArr", "\\Rightarrow"), $("\\Rarr", "\\Rightarrow"), $("\\real", "\\Re"), $("\\reals", "\\mathbb{R}"), $("\\Reals", "\\mathbb{R}"), $("\\Rho", "\\mathrm{P}"), $("\\sdot", "\\cdot"), $("\\sect", "\\S"), $("\\spades", "\\spadesuit"), $("\\sub", "\\subset"), $("\\sube", "\\subseteq"), $("\\supe", "\\supseteq"), $("\\Tau", "\\mathrm{T}"), $("\\thetasym", "\\vartheta"), $("\\weierp", "\\wp"), $("\\Zeta", "\\mathrm{Z}"), $("\\argmin", "\\DOTSB\\operatorname*{arg\\,min}"), $("\\argmax", "\\DOTSB\\operatorname*{arg\\,max}"), $("\\plim", "\\DOTSB\\mathop{\\operatorname{plim}}\\limits"), $("\\bra", "\\mathinner{\\langle{#1}|}"), $("\\ket", "\\mathinner{|{#1}\\rangle}"), $("\\braket", "\\mathinner{\\langle{#1}\\rangle}"), $("\\Bra", "\\left\\langle#1\\right|"), $("\\Ket", "\\left|#1\\right\\rangle");
20763
+ var ma = (e) => (t) => {
20710
20764
  var n = t.consumeArg().tokens, r = t.consumeArg().tokens, i = t.consumeArg().tokens, a = t.consumeArg().tokens, o = t.macros.get("|"), s = t.macros.get("\\|");
20711
20765
  t.macros.beginGroup();
20712
20766
  var c = (t) => (n) => {
@@ -20728,18 +20782,18 @@ var pa = (e) => (t) => {
20728
20782
  numArgs: 0
20729
20783
  };
20730
20784
  };
20731
- $("\\bra@ket", pa(!1)), $("\\bra@set", pa(!0)), $("\\Braket", "\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"), $("\\Set", "\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"), $("\\set", "\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"), $("\\angln", "{\\angl n}"), $("\\blue", "\\textcolor{##6495ed}{#1}"), $("\\orange", "\\textcolor{##ffa500}{#1}"), $("\\pink", "\\textcolor{##ff00af}{#1}"), $("\\red", "\\textcolor{##df0030}{#1}"), $("\\green", "\\textcolor{##28ae7b}{#1}"), $("\\gray", "\\textcolor{gray}{#1}"), $("\\purple", "\\textcolor{##9d38bd}{#1}"), $("\\blueA", "\\textcolor{##ccfaff}{#1}"), $("\\blueB", "\\textcolor{##80f6ff}{#1}"), $("\\blueC", "\\textcolor{##63d9ea}{#1}"), $("\\blueD", "\\textcolor{##11accd}{#1}"), $("\\blueE", "\\textcolor{##0c7f99}{#1}"), $("\\tealA", "\\textcolor{##94fff5}{#1}"), $("\\tealB", "\\textcolor{##26edd5}{#1}"), $("\\tealC", "\\textcolor{##01d1c1}{#1}"), $("\\tealD", "\\textcolor{##01a995}{#1}"), $("\\tealE", "\\textcolor{##208170}{#1}"), $("\\greenA", "\\textcolor{##b6ffb0}{#1}"), $("\\greenB", "\\textcolor{##8af281}{#1}"), $("\\greenC", "\\textcolor{##74cf70}{#1}"), $("\\greenD", "\\textcolor{##1fab54}{#1}"), $("\\greenE", "\\textcolor{##0d923f}{#1}"), $("\\goldA", "\\textcolor{##ffd0a9}{#1}"), $("\\goldB", "\\textcolor{##ffbb71}{#1}"), $("\\goldC", "\\textcolor{##ff9c39}{#1}"), $("\\goldD", "\\textcolor{##e07d10}{#1}"), $("\\goldE", "\\textcolor{##a75a05}{#1}"), $("\\redA", "\\textcolor{##fca9a9}{#1}"), $("\\redB", "\\textcolor{##ff8482}{#1}"), $("\\redC", "\\textcolor{##f9685d}{#1}"), $("\\redD", "\\textcolor{##e84d39}{#1}"), $("\\redE", "\\textcolor{##bc2612}{#1}"), $("\\maroonA", "\\textcolor{##ffbde0}{#1}"), $("\\maroonB", "\\textcolor{##ff92c6}{#1}"), $("\\maroonC", "\\textcolor{##ed5fa6}{#1}"), $("\\maroonD", "\\textcolor{##ca337c}{#1}"), $("\\maroonE", "\\textcolor{##9e034e}{#1}"), $("\\purpleA", "\\textcolor{##ddd7ff}{#1}"), $("\\purpleB", "\\textcolor{##c6b9fc}{#1}"), $("\\purpleC", "\\textcolor{##aa87ff}{#1}"), $("\\purpleD", "\\textcolor{##7854ab}{#1}"), $("\\purpleE", "\\textcolor{##543b78}{#1}"), $("\\mintA", "\\textcolor{##f5f9e8}{#1}"), $("\\mintB", "\\textcolor{##edf2df}{#1}"), $("\\mintC", "\\textcolor{##e0e5cc}{#1}"), $("\\grayA", "\\textcolor{##f6f7f7}{#1}"), $("\\grayB", "\\textcolor{##f0f1f2}{#1}"), $("\\grayC", "\\textcolor{##e3e5e6}{#1}"), $("\\grayD", "\\textcolor{##d6d8da}{#1}"), $("\\grayE", "\\textcolor{##babec2}{#1}"), $("\\grayF", "\\textcolor{##888d93}{#1}"), $("\\grayG", "\\textcolor{##626569}{#1}"), $("\\grayH", "\\textcolor{##3b3e40}{#1}"), $("\\grayI", "\\textcolor{##21242c}{#1}"), $("\\kaBlue", "\\textcolor{##314453}{#1}"), $("\\kaGreen", "\\textcolor{##71B307}{#1}");
20732
- var ma = {
20785
+ $("\\bra@ket", ma(!1)), $("\\bra@set", ma(!0)), $("\\Braket", "\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"), $("\\Set", "\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"), $("\\set", "\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"), $("\\angln", "{\\angl n}"), $("\\blue", "\\textcolor{##6495ed}{#1}"), $("\\orange", "\\textcolor{##ffa500}{#1}"), $("\\pink", "\\textcolor{##ff00af}{#1}"), $("\\red", "\\textcolor{##df0030}{#1}"), $("\\green", "\\textcolor{##28ae7b}{#1}"), $("\\gray", "\\textcolor{gray}{#1}"), $("\\purple", "\\textcolor{##9d38bd}{#1}"), $("\\blueA", "\\textcolor{##ccfaff}{#1}"), $("\\blueB", "\\textcolor{##80f6ff}{#1}"), $("\\blueC", "\\textcolor{##63d9ea}{#1}"), $("\\blueD", "\\textcolor{##11accd}{#1}"), $("\\blueE", "\\textcolor{##0c7f99}{#1}"), $("\\tealA", "\\textcolor{##94fff5}{#1}"), $("\\tealB", "\\textcolor{##26edd5}{#1}"), $("\\tealC", "\\textcolor{##01d1c1}{#1}"), $("\\tealD", "\\textcolor{##01a995}{#1}"), $("\\tealE", "\\textcolor{##208170}{#1}"), $("\\greenA", "\\textcolor{##b6ffb0}{#1}"), $("\\greenB", "\\textcolor{##8af281}{#1}"), $("\\greenC", "\\textcolor{##74cf70}{#1}"), $("\\greenD", "\\textcolor{##1fab54}{#1}"), $("\\greenE", "\\textcolor{##0d923f}{#1}"), $("\\goldA", "\\textcolor{##ffd0a9}{#1}"), $("\\goldB", "\\textcolor{##ffbb71}{#1}"), $("\\goldC", "\\textcolor{##ff9c39}{#1}"), $("\\goldD", "\\textcolor{##e07d10}{#1}"), $("\\goldE", "\\textcolor{##a75a05}{#1}"), $("\\redA", "\\textcolor{##fca9a9}{#1}"), $("\\redB", "\\textcolor{##ff8482}{#1}"), $("\\redC", "\\textcolor{##f9685d}{#1}"), $("\\redD", "\\textcolor{##e84d39}{#1}"), $("\\redE", "\\textcolor{##bc2612}{#1}"), $("\\maroonA", "\\textcolor{##ffbde0}{#1}"), $("\\maroonB", "\\textcolor{##ff92c6}{#1}"), $("\\maroonC", "\\textcolor{##ed5fa6}{#1}"), $("\\maroonD", "\\textcolor{##ca337c}{#1}"), $("\\maroonE", "\\textcolor{##9e034e}{#1}"), $("\\purpleA", "\\textcolor{##ddd7ff}{#1}"), $("\\purpleB", "\\textcolor{##c6b9fc}{#1}"), $("\\purpleC", "\\textcolor{##aa87ff}{#1}"), $("\\purpleD", "\\textcolor{##7854ab}{#1}"), $("\\purpleE", "\\textcolor{##543b78}{#1}"), $("\\mintA", "\\textcolor{##f5f9e8}{#1}"), $("\\mintB", "\\textcolor{##edf2df}{#1}"), $("\\mintC", "\\textcolor{##e0e5cc}{#1}"), $("\\grayA", "\\textcolor{##f6f7f7}{#1}"), $("\\grayB", "\\textcolor{##f0f1f2}{#1}"), $("\\grayC", "\\textcolor{##e3e5e6}{#1}"), $("\\grayD", "\\textcolor{##d6d8da}{#1}"), $("\\grayE", "\\textcolor{##babec2}{#1}"), $("\\grayF", "\\textcolor{##888d93}{#1}"), $("\\grayG", "\\textcolor{##626569}{#1}"), $("\\grayH", "\\textcolor{##3b3e40}{#1}"), $("\\grayI", "\\textcolor{##21242c}{#1}"), $("\\kaBlue", "\\textcolor{##314453}{#1}"), $("\\kaGreen", "\\textcolor{##71B307}{#1}");
20786
+ var ha = {
20733
20787
  "^": !0,
20734
20788
  _: !0,
20735
20789
  "\\limits": !0,
20736
20790
  "\\nolimits": !0
20737
- }, ha = class {
20791
+ }, ga = class {
20738
20792
  constructor(e, t, n) {
20739
- this.settings = void 0, this.expansionCount = void 0, this.lexer = void 0, this.macros = void 0, this.stack = void 0, this.mode = void 0, this.settings = t, this.expansionCount = 0, this.feed(e), this.macros = new aa(oa, t.macros), this.mode = n, this.stack = [];
20793
+ this.settings = void 0, this.expansionCount = void 0, this.lexer = void 0, this.macros = void 0, this.stack = void 0, this.mode = void 0, this.settings = t, this.expansionCount = 0, this.feed(e), this.macros = new oa(sa, t.macros), this.mode = n, this.stack = [];
20740
20794
  }
20741
20795
  feed(e) {
20742
- this.lexer = new ia(e, this.settings);
20796
+ this.lexer = new aa(e, this.settings);
20743
20797
  }
20744
20798
  switchMode(e) {
20745
20799
  this.mode = e;
@@ -20776,7 +20830,7 @@ var ma = {
20776
20830
  var a = this.consumeArg();
20777
20831
  r = a.tokens, t = a.start, n = a.end;
20778
20832
  }
20779
- return this.pushToken(new ii("EOF", n.loc)), this.pushTokens(r), new ii("", ri.range(t, n));
20833
+ return this.pushToken(new ai("EOF", n.loc)), this.pushTokens(r), new ai("", ii.range(t, n));
20780
20834
  }
20781
20835
  consumeSpaces() {
20782
20836
  for (; this.future().text === " ";) this.stack.pop();
@@ -20851,7 +20905,7 @@ var ma = {
20851
20905
  }
20852
20906
  }
20853
20907
  expandMacro(e) {
20854
- return this.macros.has(e) ? this.expandTokens([new ii(e)]) : void 0;
20908
+ return this.macros.has(e) ? this.expandTokens([new ai(e)]) : void 0;
20855
20909
  }
20856
20910
  expandTokens(e) {
20857
20911
  var t = [], n = this.stack.length;
@@ -20876,7 +20930,7 @@ var ma = {
20876
20930
  if (typeof r == "string") {
20877
20931
  var i = 0;
20878
20932
  if (r.includes("#")) for (var a = r.replace(/##/g, ""); a.includes("#" + (i + 1));) ++i;
20879
- for (var o = new ia(r, this.settings), s = [], c = o.lex(); c.text !== "EOF";) s.push(c), c = o.lex();
20933
+ for (var o = new aa(r, this.settings), s = [], c = o.lex(); c.text !== "EOF";) s.push(c), c = o.lex();
20880
20934
  return s.reverse(), {
20881
20935
  tokens: s,
20882
20936
  numArgs: i
@@ -20885,13 +20939,13 @@ var ma = {
20885
20939
  return r;
20886
20940
  }
20887
20941
  isDefined(e) {
20888
- return this.macros.has(e) || Object.prototype.hasOwnProperty.call(Yi, e) || Object.prototype.hasOwnProperty.call(j.math, e) || Object.prototype.hasOwnProperty.call(j.text, e) || Object.prototype.hasOwnProperty.call(ma, e);
20942
+ return this.macros.has(e) || Object.prototype.hasOwnProperty.call(Xi, e) || Object.prototype.hasOwnProperty.call(j.math, e) || Object.prototype.hasOwnProperty.call(j.text, e) || Object.prototype.hasOwnProperty.call(ha, e);
20889
20943
  }
20890
20944
  isExpandable(e) {
20891
20945
  var t = this.macros.get(e);
20892
- return t == null ? Object.prototype.hasOwnProperty.call(Yi, e) && !Yi[e].primitive : typeof t == "string" || typeof t == "function" || !t.unexpandable;
20946
+ return t == null ? Object.prototype.hasOwnProperty.call(Xi, e) && !Xi[e].primitive : typeof t == "string" || typeof t == "function" || !t.unexpandable;
20893
20947
  }
20894
- }, ga = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/, _a = Object.freeze({
20948
+ }, _a = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/, va = Object.freeze({
20895
20949
  "₊": "+",
20896
20950
  "₋": "-",
20897
20951
  "₌": "=",
@@ -20994,7 +21048,7 @@ var ma = {
20994
21048
  ᵠ: "ϕ",
20995
21049
  ᵡ: "χ",
20996
21050
  ᶿ: "θ"
20997
- }), va = {
21051
+ }), ya = {
20998
21052
  "́": {
20999
21053
  text: "\\'",
21000
21054
  math: "\\acute"
@@ -21037,7 +21091,7 @@ var ma = {
21037
21091
  },
21038
21092
  "̋": { text: "\\H" },
21039
21093
  "̧": { text: "\\c" }
21040
- }, ya = {
21094
+ }, ba = {
21041
21095
  á: "á",
21042
21096
  à: "à",
21043
21097
  ä: "ä",
@@ -21382,9 +21436,9 @@ var ma = {
21382
21436
  Ῠ: "Ῠ",
21383
21437
  Ώ: "Ώ",
21384
21438
  Ὼ: "Ὼ"
21385
- }, ba = class e {
21439
+ }, xa = class e {
21386
21440
  constructor(e, t) {
21387
- this.mode = void 0, this.gullet = void 0, this.settings = void 0, this.leftrightDepth = void 0, this.nextToken = void 0, this.mode = "math", this.gullet = new ha(e, t, this.mode), this.settings = t, this.leftrightDepth = 0, this.nextToken = null;
21441
+ this.mode = void 0, this.gullet = void 0, this.settings = void 0, this.leftrightDepth = void 0, this.nextToken = void 0, this.mode = "math", this.gullet = new ga(e, t, this.mode), this.settings = t, this.leftrightDepth = 0, this.nextToken = null;
21388
21442
  }
21389
21443
  expect(e, t) {
21390
21444
  if (t === void 0 && (t = !0), this.fetch().text !== e) throw new n("Expected '" + e + "', got '" + this.fetch().text + "'", this.fetch());
@@ -21410,7 +21464,7 @@ var ma = {
21410
21464
  }
21411
21465
  subparse(e) {
21412
21466
  var t = this.nextToken;
21413
- this.consume(), this.gullet.pushToken(new ii("}")), this.gullet.pushTokens(e);
21467
+ this.consume(), this.gullet.pushToken(new ai("}")), this.gullet.pushTokens(e);
21414
21468
  var n = this.parseExpression(!1);
21415
21469
  return this.expect("}"), this.nextToken = t, n;
21416
21470
  }
@@ -21418,7 +21472,7 @@ var ma = {
21418
21472
  for (var r = [];;) {
21419
21473
  this.mode === "math" && this.consumeSpaces();
21420
21474
  var i = this.fetch();
21421
- if (e.endOfExpression.has(i.text) || n && i.text === n || t && Yi[i.text] && Yi[i.text].infix) break;
21475
+ if (e.endOfExpression.has(i.text) || n && i.text === n || t && Xi[i.text] && Xi[i.text].infix) break;
21422
21476
  var a = this.parseAtom(n);
21423
21477
  if (!a) break;
21424
21478
  a.type !== "internal" && r.push(a);
@@ -21509,12 +21563,12 @@ var ma = {
21509
21563
  mode: this.mode,
21510
21564
  body: s
21511
21565
  };
21512
- } else if (_a[a.text]) {
21513
- var c = ga.test(a.text), l = [];
21514
- for (l.push(new ii(_a[a.text])), this.consume();;) {
21566
+ } else if (va[a.text]) {
21567
+ var c = _a.test(a.text), l = [];
21568
+ for (l.push(new ai(va[a.text])), this.consume();;) {
21515
21569
  var u = this.fetch().text;
21516
- if (!_a[u] || ga.test(u) !== c) break;
21517
- l.unshift(new ii(_a[u])), this.consume();
21570
+ if (!va[u] || _a.test(u) !== c) break;
21571
+ l.unshift(new ai(va[u])), this.consume();
21518
21572
  }
21519
21573
  var d = this.subparse(l);
21520
21574
  c ? i = {
@@ -21547,7 +21601,7 @@ var ma = {
21547
21601
  } : t;
21548
21602
  }
21549
21603
  parseFunction(e, t) {
21550
- var r = this.fetch(), i = r.text, a = Yi[i];
21604
+ var r = this.fetch(), i = r.text, a = Xi[i];
21551
21605
  if (!a) return null;
21552
21606
  if (this.consume(), t && t !== "atom" && !a.allowedInArgument) throw new n("Got function '" + i + "' with no arguments" + (t ? " as " + t : ""), r);
21553
21607
  if (this.mode === "text" && !a.allowedInText) throw new n("Can't use function '" + i + "' in text mode", r);
@@ -21561,7 +21615,7 @@ var ma = {
21561
21615
  parser: this,
21562
21616
  token: i,
21563
21617
  breakOnTokenText: a
21564
- }, s = Yi[e];
21618
+ }, s = Xi[e];
21565
21619
  if (s && s.handler) return s.handler(o, t, r);
21566
21620
  throw new n("No function handler for " + e);
21567
21621
  }
@@ -21697,11 +21751,11 @@ var ma = {
21697
21751
  this.expect(o), this.gullet.endGroup(), a = {
21698
21752
  type: "ordgroup",
21699
21753
  mode: this.mode,
21700
- loc: ri.range(r, c),
21754
+ loc: ii.range(r, c),
21701
21755
  body: s,
21702
21756
  semisimple: i === "\\begingroup" || void 0
21703
21757
  };
21704
- } else if (a = this.parseFunction(t, e) || this.parseSymbol(), a == null && i[0] === "\\" && !Object.prototype.hasOwnProperty.call(ma, i)) {
21758
+ } else if (a = this.parseFunction(t, e) || this.parseSymbol(), a == null && i[0] === "\\" && !Object.prototype.hasOwnProperty.call(ha, i)) {
21705
21759
  if (this.settings.throwOnError) throw new n("Undefined control sequence: " + i, r);
21706
21760
  a = this.formatUnsupportedCmd(i), this.consume();
21707
21761
  }
@@ -21718,19 +21772,19 @@ var ma = {
21718
21772
  n + 1 < t && o && o.type === "textord" && o.text === "-" ? (e.splice(n, 3, {
21719
21773
  type: "textord",
21720
21774
  mode: "text",
21721
- loc: ri.range(r, o),
21775
+ loc: ii.range(r, o),
21722
21776
  text: "---"
21723
21777
  }), t -= 2) : (e.splice(n, 2, {
21724
21778
  type: "textord",
21725
21779
  mode: "text",
21726
- loc: ri.range(r, a),
21780
+ loc: ii.range(r, a),
21727
21781
  text: "--"
21728
21782
  }), --t);
21729
21783
  }
21730
21784
  (i === "'" || i === "`") && a.text === i && (e.splice(n, 2, {
21731
21785
  type: "textord",
21732
21786
  mode: "text",
21733
- loc: ri.range(r, a),
21787
+ loc: ii.range(r, a),
21734
21788
  text: i + i
21735
21789
  }), --t);
21736
21790
  }
@@ -21750,14 +21804,26 @@ var ma = {
21750
21804
  star: i
21751
21805
  };
21752
21806
  }
21753
- Object.prototype.hasOwnProperty.call(ya, t[0]) && !j[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 = ya[t[0]] + t.slice(1));
21754
- var a = na.exec(t);
21807
+ Object.prototype.hasOwnProperty.call(ba, t[0]) && !j[this.mode][t[0]] && (this.settings.strict && this.mode === "math" && Nt({
21808
+ strict: this.settings.strict,
21809
+ errorCode: "unicodeTextInMathMode",
21810
+ errorMsg: "Accented Unicode text character \"" + t[0] + "\" used in math mode",
21811
+ report: !0,
21812
+ token: e
21813
+ }), t = ba[t[0]] + t.slice(1));
21814
+ var a = ra.exec(t);
21755
21815
  a && (t = t.substring(0, a.index), t === "i" ? t = "ı" : t === "j" && (t = "ȷ"));
21756
21816
  var o;
21757
21817
  if (j[this.mode][t]) {
21758
- this.settings.strict && this.mode === "math" && ht.includes(t) && this.settings.reportNonstrict("unicodeTextInMathMode", "Latin-1/Unicode text character \"" + t[0] + "\" used in math mode", e);
21759
- var s = j[this.mode][t].group, c = ri.range(e);
21760
- o = Qn(s) ? {
21818
+ this.settings.strict && this.mode === "math" && ht.includes(t) && Nt({
21819
+ strict: this.settings.strict,
21820
+ errorCode: "unicodeTextInMathMode",
21821
+ errorMsg: "Latin-1/Unicode text character \"" + t[0] + "\" used in math mode",
21822
+ report: !0,
21823
+ token: e
21824
+ });
21825
+ var s = j[this.mode][t].group, c = ii.range(e);
21826
+ o = $n(s) ? {
21761
21827
  type: "atom",
21762
21828
  mode: this.mode,
21763
21829
  family: s,
@@ -21769,22 +21835,34 @@ var ma = {
21769
21835
  loc: c,
21770
21836
  text: t
21771
21837
  };
21772
- } else if (t.charCodeAt(0) >= 128) this.settings.strict && (le(t.charCodeAt(0)) ? this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", "Unicode text character \"" + t[0] + "\" used in math mode", e) : this.settings.reportNonstrict("unknownSymbol", "Unrecognized Unicode character \"" + t[0] + "\"" + (" (" + t.charCodeAt(0) + ")"), e)), o = {
21838
+ } else if (t.charCodeAt(0) >= 128) this.settings.strict && (le(t.charCodeAt(0)) ? this.mode === "math" && Nt({
21839
+ strict: this.settings.strict,
21840
+ errorCode: "unicodeTextInMathMode",
21841
+ errorMsg: "Unicode text character \"" + t[0] + "\" used in math mode",
21842
+ report: !0,
21843
+ token: e
21844
+ }) : Nt({
21845
+ strict: this.settings.strict,
21846
+ errorCode: "unknownSymbol",
21847
+ errorMsg: "Unrecognized Unicode character \"" + t[0] + "\"" + (" (" + t.charCodeAt(0) + ")"),
21848
+ report: !0,
21849
+ token: e
21850
+ })), o = {
21773
21851
  type: "textord",
21774
21852
  mode: "text",
21775
- loc: ri.range(e),
21853
+ loc: ii.range(e),
21776
21854
  text: t
21777
21855
  };
21778
21856
  else return null;
21779
21857
  if (this.consume(), a) for (var l = 0; l < a[0].length; l++) {
21780
21858
  var u = a[0][l];
21781
- if (!va[u]) throw new n("Unknown accent ' " + u + "'", e);
21782
- var d = va[u][this.mode] || va[u].text;
21859
+ if (!ya[u]) throw new n("Unknown accent ' " + u + "'", e);
21860
+ var d = ya[u][this.mode] || ya[u].text;
21783
21861
  if (!d) throw new n("Accent " + u + " unsupported in " + this.mode + " mode", e);
21784
21862
  o = {
21785
21863
  type: "accent",
21786
21864
  mode: this.mode,
21787
- loc: ri.range(e),
21865
+ loc: ii.range(e),
21788
21866
  label: d,
21789
21867
  isStretchy: !1,
21790
21868
  isShifty: !0,
@@ -21794,16 +21872,16 @@ var ma = {
21794
21872
  return o;
21795
21873
  }
21796
21874
  };
21797
- ba.endOfExpression = /* @__PURE__ */ new Set([
21875
+ xa.endOfExpression = /* @__PURE__ */ new Set([
21798
21876
  "}",
21799
21877
  "\\endgroup",
21800
21878
  "\\end",
21801
21879
  "\\right",
21802
21880
  "&"
21803
21881
  ]);
21804
- var xa = function(e, t) {
21882
+ var Sa = function(e, t) {
21805
21883
  if (!(typeof e == "string" || e instanceof String)) throw TypeError("KaTeX can only parse string typed expression");
21806
- var r = new ba(e, t);
21884
+ var r = new xa(e, t);
21807
21885
  delete r.gullet.macros.current["\\df@tag"];
21808
21886
  var i = r.parse();
21809
21887
  if (delete r.gullet.macros.current["\\current@color"], delete r.gullet.macros.current["\\color"], r.gullet.macros.get("\\df@tag")) {
@@ -21812,61 +21890,61 @@ var xa = function(e, t) {
21812
21890
  type: "tag",
21813
21891
  mode: "text",
21814
21892
  body: i,
21815
- tag: r.subparse([new ii("\\df@tag")])
21893
+ tag: r.subparse([new ai("\\df@tag")])
21816
21894
  }];
21817
21895
  }
21818
21896
  return i;
21819
- }, Sa = function(e, t, n) {
21897
+ }, Ca = function(e, t, n) {
21820
21898
  t.textContent = "";
21821
- var r = Ea(e, n).toNode();
21899
+ var r = Da(e, n).toNode();
21822
21900
  t.appendChild(r);
21823
21901
  };
21824
- typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console < "u" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."), Sa = function() {
21902
+ typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console < "u" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."), Ca = function() {
21825
21903
  throw new n("KaTeX doesn't work in quirks mode.");
21826
21904
  });
21827
- var Ca = function(e, t) {
21828
- return Ea(e, t).toMarkup();
21829
- }, wa = function(e, t) {
21830
- return xa(e, new g(t));
21831
- }, Ta = function(e, t, r) {
21905
+ var wa = function(e, t) {
21906
+ return Da(e, t).toMarkup();
21907
+ }, Ta = function(e, t) {
21908
+ return Sa(e, new g(t));
21909
+ }, Ea = function(e, t, r) {
21832
21910
  if (r.throwOnError || !(e instanceof n)) throw e;
21833
21911
  var i = G(["katex-error"], [new Le(t)]);
21834
21912
  return i.setAttribute("title", e.toString()), i.setAttribute("style", "color:" + r.errorColor), i;
21835
- }, Ea = function(e, t) {
21913
+ }, Da = function(e, t) {
21836
21914
  var n = new g(t);
21837
21915
  try {
21838
- return Bn(xa(e, n), e, n);
21916
+ return Vn(Sa(e, n), e, n);
21839
21917
  } catch (t) {
21840
- return Ta(t, e, n);
21918
+ return Ea(t, e, n);
21841
21919
  }
21842
- }, Da = function(e, t) {
21920
+ }, Oa = function(e, t) {
21843
21921
  var n = new g(t);
21844
21922
  try {
21845
- return Vn(xa(e, n), e, n);
21923
+ return Hn(Sa(e, n), n);
21846
21924
  } catch (t) {
21847
- return Ta(t, e, n);
21925
+ return Ea(t, e, n);
21848
21926
  }
21849
- }, Oa = "0.18.7", ka = {
21927
+ }, ka = "0.19.0", Aa = {
21850
21928
  Span: Ne,
21851
21929
  Anchor: Pe,
21852
21930
  SymbolNode: Le,
21853
21931
  SvgNode: Re,
21854
21932
  PathNode: ze,
21855
21933
  LineNode: Be
21856
- }, Aa = {
21857
- version: Oa,
21858
- render: Sa,
21859
- renderToString: Ca,
21934
+ }, ja = {
21935
+ version: ka,
21936
+ render: Ca,
21937
+ renderToString: wa,
21860
21938
  ParseError: n,
21861
21939
  SETTINGS_SCHEMA: f,
21862
- __parse: wa,
21863
- __renderToDomTree: Ea,
21864
- __renderToHTMLTree: Da,
21940
+ __parse: Ta,
21941
+ __renderToDomTree: Da,
21942
+ __renderToHTMLTree: Oa,
21865
21943
  __setFontMetrics: qe,
21866
21944
  __defineSymbol: M,
21867
21945
  __defineFunction: J,
21868
21946
  __defineMacro: $,
21869
- __domTree: ka
21947
+ __domTree: Aa
21870
21948
  };
21871
21949
  //#endregion
21872
- export { t as n, Aa as t };
21950
+ export { t as n, ja as t };