@clevertask/scribe 0.0.5 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { B as o } from "../../index-B9XP9QDO.js";
2
+ import { B as o } from "../../index-dyNx8_Ul.js";
3
3
  const l = ({ editor: n }) => /* @__PURE__ */ e(o, { className: "bubble-menu-wrapper", editor: n, children: /* @__PURE__ */ e("div", { className: "menu-item-wrapper", children: [
4
4
  {
5
5
  ariaLabel: "Heading 1",
@@ -1,4 +1,4 @@
1
- import { M as Pe, c as Ne, m as le, P as qt, a as Vt, d as Ie, g as we, f as ve, h as He, i as Ue } from "../../../index-DzExyr-e.js";
1
+ import { M as Pe, c as Ne, m as le, P as qt, a as Vt, d as Ie, g as we, f as ve, h as He, i as Ue } from "../../../index-o3ZWOEgq.js";
2
2
  const xe = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", De = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", B = (t, n) => {
3
3
  for (const e in n)
4
4
  t[e] = n[e];
@@ -1,4 +1,4 @@
1
- import { E as r } from "../../../index-DzExyr-e.js";
1
+ import { E as r } from "../../../index-o3ZWOEgq.js";
2
2
  const s = r.create({
3
3
  name: "SelectedText",
4
4
  addCommands: () => ({
@@ -1,5 +1,5 @@
1
1
  import dt from "./extension-link.js";
2
- import { E as X, P as _, a as W, D as K, b as G, N as T, n as qe, m as M, S as v, k as Xe, j as ut, T as x, F as H, l as $, o as pe, p as pt, q as Ge, r as Je, s as ht, w as J, M as te, c as j, t as Q, u as we, v as ft, x as mt, y as gt, z as bt, A } from "../../../index-DzExyr-e.js";
2
+ import { E as X, P as _, a as W, D as K, b as G, N as T, n as qe, m as M, S as v, k as Xe, j as ut, T as x, F as H, l as $, o as pe, p as pt, q as Ge, r as Je, s as ht, w as J, M as te, c as j, t as Q, u as we, v as ft, x as mt, y as gt, z as bt, A } from "../../../index-o3ZWOEgq.js";
3
3
  import { SlashCommand as wt } from "./slashCommand/index.js";
4
4
  import yt from "./extension-selectedText.js";
5
5
  import Ct from "./slashCommand/renderItems.js";
@@ -1,4 +1,4 @@
1
- import { N as fa, P as pa, a as va, m as ga } from "../../../index-DzExyr-e.js";
1
+ import { N as fa, P as pa, a as va, m as ga } from "../../../index-o3ZWOEgq.js";
2
2
  class u0 {
3
3
  // The + prefix indicates that these fields aren't writeable
4
4
  // Lexer holding the input string.
@@ -3583,7 +3583,7 @@ function i(r, e, t, a, n, s) {
3583
3583
  replace: a
3584
3584
  }, s && a && (X[r][a] = X[r][n]);
3585
3585
  }
3586
- var l = "math", k = "text", u = "main", d = "ams", W = "accent-token", D = "bin", i0 = "close", re = "inner", E = "mathord", _ = "op-token", m0 = "open", qe = "punct", f = "rel", E0 = "spacing", v = "textord";
3586
+ var l = "math", k = "text", u = "main", d = "ams", W = "accent-token", N = "bin", i0 = "close", re = "inner", E = "mathord", _ = "op-token", m0 = "open", qe = "punct", f = "rel", E0 = "spacing", v = "textord";
3587
3587
  i(l, u, f, "≡", "\\equiv", !0);
3588
3588
  i(l, u, f, "≺", "\\prec", !0);
3589
3589
  i(l, u, f, "≻", "\\succ", !0);
@@ -3644,18 +3644,18 @@ i(l, u, i0, "⎱", "\\rmoustache", !0);
3644
3644
  i(l, u, m0, "⎰", "\\lmoustache", !0);
3645
3645
  i(l, u, i0, "⟯", "\\rgroup", !0);
3646
3646
  i(l, u, m0, "⟮", "\\lgroup", !0);
3647
- i(l, u, D, "∓", "\\mp", !0);
3648
- i(l, u, D, "⊖", "\\ominus", !0);
3649
- i(l, u, D, "⊎", "\\uplus", !0);
3650
- i(l, u, D, "⊓", "\\sqcap", !0);
3651
- i(l, u, D, "∗", "\\ast");
3652
- i(l, u, D, "⊔", "\\sqcup", !0);
3653
- i(l, u, D, "◯", "\\bigcirc", !0);
3654
- i(l, u, D, "∙", "\\bullet", !0);
3655
- i(l, u, D, "‡", "\\ddagger");
3656
- i(l, u, D, "≀", "\\wr", !0);
3657
- i(l, u, D, "⨿", "\\amalg");
3658
- i(l, u, D, "&", "\\And");
3647
+ i(l, u, N, "∓", "\\mp", !0);
3648
+ i(l, u, N, "⊖", "\\ominus", !0);
3649
+ i(l, u, N, "⊎", "\\uplus", !0);
3650
+ i(l, u, N, "⊓", "\\sqcap", !0);
3651
+ i(l, u, N, "∗", "\\ast");
3652
+ i(l, u, N, "⊔", "\\sqcup", !0);
3653
+ i(l, u, N, "◯", "\\bigcirc", !0);
3654
+ i(l, u, N, "∙", "\\bullet", !0);
3655
+ i(l, u, N, "‡", "\\ddagger");
3656
+ i(l, u, N, "≀", "\\wr", !0);
3657
+ i(l, u, N, "⨿", "\\amalg");
3658
+ i(l, u, N, "&", "\\And");
3659
3659
  i(l, u, f, "⟵", "\\longleftarrow", !0);
3660
3660
  i(l, u, f, "⇐", "\\Leftarrow", !0);
3661
3661
  i(l, u, f, "⟸", "\\Longleftarrow", !0);
@@ -3729,8 +3729,8 @@ i(l, d, f, "⊮", "\\nVdash", !0);
3729
3729
  i(l, d, f, "⪵", "\\precneqq", !0);
3730
3730
  i(l, d, f, "⪶", "\\succneqq", !0);
3731
3731
  i(l, d, f, "", "\\@nsubseteqq");
3732
- i(l, d, D, "⊴", "\\unlhd");
3733
- i(l, d, D, "⊵", "\\unrhd");
3732
+ i(l, d, N, "⊴", "\\unlhd");
3733
+ i(l, d, N, "⊵", "\\unrhd");
3734
3734
  i(l, d, f, "↚", "\\nleftarrow", !0);
3735
3735
  i(l, d, f, "↛", "\\nrightarrow", !0);
3736
3736
  i(l, d, f, "⇍", "\\nLeftarrow", !0);
@@ -3783,7 +3783,7 @@ i(l, d, f, "⪕", "\\eqslantless", !0);
3783
3783
  i(l, d, f, "≲", "\\lesssim", !0);
3784
3784
  i(l, d, f, "⪅", "\\lessapprox", !0);
3785
3785
  i(l, d, f, "≊", "\\approxeq", !0);
3786
- i(l, d, D, "⋖", "\\lessdot");
3786
+ i(l, d, N, "⋖", "\\lessdot");
3787
3787
  i(l, d, f, "⋘", "\\lll", !0);
3788
3788
  i(l, d, f, "≶", "\\lessgtr", !0);
3789
3789
  i(l, d, f, "⋚", "\\lesseqgtr", !0);
@@ -3813,7 +3813,7 @@ i(l, d, f, "⩾", "\\geqslant", !0);
3813
3813
  i(l, d, f, "⪖", "\\eqslantgtr", !0);
3814
3814
  i(l, d, f, "≳", "\\gtrsim", !0);
3815
3815
  i(l, d, f, "⪆", "\\gtrapprox", !0);
3816
- i(l, d, D, "⋗", "\\gtrdot");
3816
+ i(l, d, N, "⋗", "\\gtrdot");
3817
3817
  i(l, d, f, "⋙", "\\ggg", !0);
3818
3818
  i(l, d, f, "≷", "\\gtrless", !0);
3819
3819
  i(l, d, f, "⋛", "\\gtreqless", !0);
@@ -3845,32 +3845,32 @@ i(l, d, f, "▶", "\\blacktriangleright");
3845
3845
  i(l, d, f, "∵", "\\because", !0);
3846
3846
  i(l, d, f, "⋘", "\\llless");
3847
3847
  i(l, d, f, "⋙", "\\gggtr");
3848
- i(l, d, D, "⊲", "\\lhd");
3849
- i(l, d, D, "⊳", "\\rhd");
3848
+ i(l, d, N, "⊲", "\\lhd");
3849
+ i(l, d, N, "⊳", "\\rhd");
3850
3850
  i(l, d, f, "≂", "\\eqsim", !0);
3851
3851
  i(l, u, f, "⋈", "\\Join");
3852
3852
  i(l, d, f, "≑", "\\Doteq", !0);
3853
- i(l, d, D, "∔", "\\dotplus", !0);
3854
- i(l, d, D, "∖", "\\smallsetminus");
3855
- i(l, d, D, "⋒", "\\Cap", !0);
3856
- i(l, d, D, "⋓", "\\Cup", !0);
3857
- i(l, d, D, "⩞", "\\doublebarwedge", !0);
3858
- i(l, d, D, "⊟", "\\boxminus", !0);
3859
- i(l, d, D, "⊞", "\\boxplus", !0);
3860
- i(l, d, D, "⋇", "\\divideontimes", !0);
3861
- i(l, d, D, "⋉", "\\ltimes", !0);
3862
- i(l, d, D, "⋊", "\\rtimes", !0);
3863
- i(l, d, D, "⋋", "\\leftthreetimes", !0);
3864
- i(l, d, D, "⋌", "\\rightthreetimes", !0);
3865
- i(l, d, D, "⋏", "\\curlywedge", !0);
3866
- i(l, d, D, "⋎", "\\curlyvee", !0);
3867
- i(l, d, D, "⊝", "\\circleddash", !0);
3868
- i(l, d, D, "⊛", "\\circledast", !0);
3869
- i(l, d, D, "⋅", "\\centerdot");
3870
- i(l, d, D, "⊺", "\\intercal", !0);
3871
- i(l, d, D, "⋒", "\\doublecap");
3872
- i(l, d, D, "⋓", "\\doublecup");
3873
- i(l, d, D, "⊠", "\\boxtimes", !0);
3853
+ i(l, d, N, "∔", "\\dotplus", !0);
3854
+ i(l, d, N, "∖", "\\smallsetminus");
3855
+ i(l, d, N, "⋒", "\\Cap", !0);
3856
+ i(l, d, N, "⋓", "\\Cup", !0);
3857
+ i(l, d, N, "⩞", "\\doublebarwedge", !0);
3858
+ i(l, d, N, "⊟", "\\boxminus", !0);
3859
+ i(l, d, N, "⊞", "\\boxplus", !0);
3860
+ i(l, d, N, "⋇", "\\divideontimes", !0);
3861
+ i(l, d, N, "⋉", "\\ltimes", !0);
3862
+ i(l, d, N, "⋊", "\\rtimes", !0);
3863
+ i(l, d, N, "⋋", "\\leftthreetimes", !0);
3864
+ i(l, d, N, "⋌", "\\rightthreetimes", !0);
3865
+ i(l, d, N, "⋏", "\\curlywedge", !0);
3866
+ i(l, d, N, "⋎", "\\curlyvee", !0);
3867
+ i(l, d, N, "⊝", "\\circleddash", !0);
3868
+ i(l, d, N, "⊛", "\\circledast", !0);
3869
+ i(l, d, N, "⋅", "\\centerdot");
3870
+ i(l, d, N, "⊺", "\\intercal", !0);
3871
+ i(l, d, N, "⋒", "\\doublecap");
3872
+ i(l, d, N, "⋓", "\\doublecup");
3873
+ i(l, d, N, "⊠", "\\boxtimes", !0);
3874
3874
  i(l, d, f, "⇢", "\\dashrightarrow", !0);
3875
3875
  i(l, d, f, "⇠", "\\dashleftarrow", !0);
3876
3876
  i(l, d, f, "⇇", "\\leftleftarrows", !0);
@@ -3978,21 +3978,21 @@ i(l, u, E, "ϖ", "\\varpi", !0);
3978
3978
  i(l, u, E, "ϱ", "\\varrho", !0);
3979
3979
  i(l, u, E, "ς", "\\varsigma", !0);
3980
3980
  i(l, u, E, "φ", "\\varphi", !0);
3981
- i(l, u, D, "∗", "*", !0);
3982
- i(l, u, D, "+", "+");
3983
- i(l, u, D, "−", "-", !0);
3984
- i(l, u, D, "⋅", "\\cdot", !0);
3985
- i(l, u, D, "∘", "\\circ", !0);
3986
- i(l, u, D, "÷", "\\div", !0);
3987
- i(l, u, D, "±", "\\pm", !0);
3988
- i(l, u, D, "×", "\\times", !0);
3989
- i(l, u, D, "∩", "\\cap", !0);
3990
- i(l, u, D, "∪", "\\cup", !0);
3991
- i(l, u, D, "∖", "\\setminus", !0);
3992
- i(l, u, D, "∧", "\\land");
3993
- i(l, u, D, "∨", "\\lor");
3994
- i(l, u, D, "∧", "\\wedge", !0);
3995
- i(l, u, D, "∨", "\\vee", !0);
3981
+ i(l, u, N, "∗", "*", !0);
3982
+ i(l, u, N, "+", "+");
3983
+ i(l, u, N, "−", "-", !0);
3984
+ i(l, u, N, "⋅", "\\cdot", !0);
3985
+ i(l, u, N, "∘", "\\circ", !0);
3986
+ i(l, u, N, "÷", "\\div", !0);
3987
+ i(l, u, N, "±", "\\pm", !0);
3988
+ i(l, u, N, "×", "\\times", !0);
3989
+ i(l, u, N, "∩", "\\cap", !0);
3990
+ i(l, u, N, "∪", "\\cup", !0);
3991
+ i(l, u, N, "∖", "\\setminus", !0);
3992
+ i(l, u, N, "∧", "\\land");
3993
+ i(l, u, N, "∨", "\\lor");
3994
+ i(l, u, N, "∧", "\\wedge", !0);
3995
+ i(l, u, N, "∨", "\\vee", !0);
3996
3996
  i(l, u, v, "√", "\\surd");
3997
3997
  i(l, u, m0, "⟨", "\\langle", !0);
3998
3998
  i(l, u, m0, "∣", "\\lvert");
@@ -4038,22 +4038,22 @@ i(l, u, E0, null, "\\nobreak");
4038
4038
  i(l, u, E0, null, "\\allowbreak");
4039
4039
  i(l, u, qe, ",", ",");
4040
4040
  i(l, u, qe, ";", ";");
4041
- i(l, d, D, "⊼", "\\barwedge", !0);
4042
- i(l, d, D, "⊻", "\\veebar", !0);
4043
- i(l, u, D, "⊙", "\\odot", !0);
4044
- i(l, u, D, "⊕", "\\oplus", !0);
4045
- i(l, u, D, "⊗", "\\otimes", !0);
4041
+ i(l, d, N, "⊼", "\\barwedge", !0);
4042
+ i(l, d, N, "⊻", "\\veebar", !0);
4043
+ i(l, u, N, "⊙", "\\odot", !0);
4044
+ i(l, u, N, "⊕", "\\oplus", !0);
4045
+ i(l, u, N, "⊗", "\\otimes", !0);
4046
4046
  i(l, u, v, "∂", "\\partial", !0);
4047
- i(l, u, D, "⊘", "\\oslash", !0);
4048
- i(l, d, D, "⊚", "\\circledcirc", !0);
4049
- i(l, d, D, "⊡", "\\boxdot", !0);
4050
- i(l, u, D, "△", "\\bigtriangleup");
4051
- i(l, u, D, "▽", "\\bigtriangledown");
4052
- i(l, u, D, "†", "\\dagger");
4053
- i(l, u, D, "⋄", "\\diamond");
4054
- i(l, u, D, "⋆", "\\star");
4055
- i(l, u, D, "◃", "\\triangleleft");
4056
- i(l, u, D, "▹", "\\triangleright");
4047
+ i(l, u, N, "⊘", "\\oslash", !0);
4048
+ i(l, d, N, "⊚", "\\circledcirc", !0);
4049
+ i(l, d, N, "⊡", "\\boxdot", !0);
4050
+ i(l, u, N, "△", "\\bigtriangleup");
4051
+ i(l, u, N, "▽", "\\bigtriangledown");
4052
+ i(l, u, N, "†", "\\dagger");
4053
+ i(l, u, N, "⋄", "\\diamond");
4054
+ i(l, u, N, "⋆", "\\star");
4055
+ i(l, u, N, "◃", "\\triangleleft");
4056
+ i(l, u, N, "▹", "\\triangleright");
4057
4057
  i(l, u, m0, "{", "\\{");
4058
4058
  i(k, u, v, "{", "\\{");
4059
4059
  i(k, u, v, "{", "\\textbraceleft");
@@ -4363,15 +4363,15 @@ var ye = [
4363
4363
  if (a === "mathord")
4364
4364
  return b0(s, "Math-Italic", n, t, o.concat(["mathnormal"]));
4365
4365
  if (a === "textord") {
4366
- var C = X[n][s] && X[n][s].font;
4367
- if (C === "ams") {
4368
- var N = xe("amsrm", t.fontWeight, t.fontShape);
4369
- return b0(s, N, n, t, o.concat("amsrm", t.fontWeight, t.fontShape));
4370
- } else if (C === "main" || !C) {
4366
+ var D = X[n][s] && X[n][s].font;
4367
+ if (D === "ams") {
4368
+ var C = xe("amsrm", t.fontWeight, t.fontShape);
4369
+ return b0(s, C, n, t, o.concat("amsrm", t.fontWeight, t.fontShape));
4370
+ } else if (D === "main" || !D) {
4371
4371
  var I = xe("textrm", t.fontWeight, t.fontShape);
4372
4372
  return b0(s, I, n, t, o.concat(t.fontWeight, t.fontShape));
4373
4373
  } else {
4374
- var H = xe(C, t.fontWeight, t.fontShape);
4374
+ var H = xe(D, t.fontWeight, t.fontShape);
4375
4375
  return b0(s, H, n, t, o.concat(H, t.fontWeight, t.fontShape));
4376
4376
  }
4377
4377
  } else
@@ -4474,21 +4474,21 @@ var ye = [
4474
4474
  if (T.type === "kern")
4475
4475
  x += T.size;
4476
4476
  else {
4477
- var C = T.elem, N = T.wrapperClasses || [], I = T.wrapperStyle || {}, H = l0(N, [p, C], void 0, I);
4478
- H.style.top = A(-s - x - C.depth), T.marginLeft && (H.style.marginLeft = T.marginLeft), T.marginRight && (H.style.marginRight = T.marginRight), g.push(H), x += C.height + C.depth;
4477
+ var D = T.elem, C = T.wrapperClasses || [], I = T.wrapperStyle || {}, H = l0(C, [p, D], void 0, I);
4478
+ H.style.top = A(-s - x - D.depth), T.marginLeft && (H.style.marginLeft = T.marginLeft), T.marginRight && (H.style.marginRight = T.marginRight), g.push(H), x += D.height + D.depth;
4479
4479
  }
4480
4480
  b = Math.min(b, x), w = Math.max(w, x);
4481
4481
  }
4482
- var G = l0(["vlist"], g);
4483
- G.style.height = A(w);
4482
+ var P = l0(["vlist"], g);
4483
+ P.style.height = A(w);
4484
4484
  var L;
4485
4485
  if (b < 0) {
4486
4486
  var U = l0([], []), V = l0(["vlist"], [U]);
4487
4487
  V.style.height = A(-b);
4488
4488
  var j = l0(["vlist-s"], [new p0("​")]);
4489
- L = [l0(["vlist-r"], [G, j]), l0(["vlist-r"], [V])];
4489
+ L = [l0(["vlist-r"], [P, j]), l0(["vlist-r"], [V])];
4490
4490
  } else
4491
- L = [l0(["vlist-r"], [G])];
4491
+ L = [l0(["vlist-r"], [P])];
4492
4492
  var $ = l0(["vlist-t"], L);
4493
4493
  return L.length === 2 && $.classes.push("vlist-t2"), $.height = w, $.depth = -b, $;
4494
4494
  }, d1 = (r, e) => {
@@ -4744,7 +4744,7 @@ var Ne = function(e) {
4744
4744
  }, t0 = function(e, t, a, n) {
4745
4745
  n === void 0 && (n = [null, null]);
4746
4746
  for (var s = [], o = 0; o < e.length; o++) {
4747
- var h = P(e[o], t);
4747
+ var h = G(e[o], t);
4748
4748
  if (h instanceof ue) {
4749
4749
  var c = h.children;
4750
4750
  s.push(...c);
@@ -4760,12 +4760,12 @@ var Ne = function(e) {
4760
4760
  }
4761
4761
  var b = N0([n[0] || "leftmost"], [], t), w = N0([n[1] || "rightmost"], [], t), x = a === "root";
4762
4762
  return Xt(s, (z, T) => {
4763
- var C = T.classes[0], N = z.classes[0];
4764
- C === "mbin" && q.contains(b1, N) ? T.classes[0] = "mord" : N === "mbin" && q.contains(g1, C) && (z.classes[0] = "mord");
4763
+ var D = T.classes[0], C = z.classes[0];
4764
+ D === "mbin" && q.contains(b1, C) ? T.classes[0] = "mord" : C === "mbin" && q.contains(g1, D) && (z.classes[0] = "mord");
4765
4765
  }, {
4766
4766
  node: b
4767
4767
  }, w, x), Xt(s, (z, T) => {
4768
- var C = ot(T), N = ot(z), I = C && N ? z.hasClass("mtight") ? v1[C][N] : p1[C][N] : null;
4768
+ var D = ot(T), C = ot(z), I = D && C ? z.hasClass("mtight") ? v1[D][C] : p1[D][C] : null;
4769
4769
  if (I)
4770
4770
  return y.makeGlue(I, p);
4771
4771
  }, {
@@ -4808,7 +4808,7 @@ var Ne = function(e) {
4808
4808
  }, oe = function(e, t) {
4809
4809
  var a = ["nulldelimiter"].concat(e.baseSizingClasses());
4810
4810
  return N0(t.concat(a));
4811
- }, P = function(e, t, a) {
4811
+ }, G = function(e, t, a) {
4812
4812
  if (!e)
4813
4813
  return N0();
4814
4814
  if (De[e.type]) {
@@ -5207,19 +5207,19 @@ var Cr = function(e) {
5207
5207
  var z = [1, 1, 2, 2, 3, 3][g];
5208
5208
  c === "widehat" || c === "widecheck" ? (h = [0, 1062, 2364, 2364, 2364][z], b = [0, 239, 300, 360, 420][z], x = [0, 0.24, 0.3, 0.3, 0.36, 0.42][z], w = c + z) : (h = [0, 600, 1033, 2339, 2340][z], b = [0, 260, 286, 306, 312][z], x = [0, 0.26, 0.286, 0.3, 0.306, 0.34][z], w = "tilde" + z);
5209
5209
  }
5210
- var T = new G0(w), C = new C0([T], {
5210
+ var T = new G0(w), D = new C0([T], {
5211
5211
  width: "100%",
5212
5212
  height: A(x),
5213
5213
  viewBox: "0 0 " + h + " " + b,
5214
5214
  preserveAspectRatio: "none"
5215
5215
  });
5216
5216
  return {
5217
- span: y.makeSvgSpan([], [C], t),
5217
+ span: y.makeSvgSpan([], [D], t),
5218
5218
  minWidth: 0,
5219
5219
  height: x
5220
5220
  };
5221
5221
  } else {
5222
- var N = [], I = T1[c], [H, G, L] = I, U = L / 1e3, V = H.length, j, $;
5222
+ var C = [], I = T1[c], [H, P, L] = I, U = L / 1e3, V = H.length, j, $;
5223
5223
  if (V === 1) {
5224
5224
  var z0 = I[3];
5225
5225
  j = ["hide-tail"], $ = [z0];
@@ -5240,14 +5240,14 @@ var Cr = function(e) {
5240
5240
  if (V === 1)
5241
5241
  return {
5242
5242
  span: s0,
5243
- minWidth: G,
5243
+ minWidth: P,
5244
5244
  height: U
5245
5245
  };
5246
- s0.style.height = A(U), N.push(s0);
5246
+ s0.style.height = A(U), C.push(s0);
5247
5247
  }
5248
5248
  return {
5249
- span: y.makeSpan(["stretchy"], N, t),
5250
- minWidth: G,
5249
+ span: y.makeSpan(["stretchy"], C, t),
5250
+ minWidth: P,
5251
5251
  height: U
5252
5252
  };
5253
5253
  }
@@ -5308,10 +5308,10 @@ function Re(r) {
5308
5308
  }
5309
5309
  var wt = (r, e) => {
5310
5310
  var t, a, n;
5311
- r && r.type === "supsub" ? (a = F(r.base, "accent"), t = a.base, r.base = t, n = _a(P(r, e)), r.base = a) : (a = F(r, "accent"), t = a.base);
5312
- var s = P(t, e.havingCrampedStyle()), o = a.isShifty && q.isCharacterBox(t), h = 0;
5311
+ r && r.type === "supsub" ? (a = F(r.base, "accent"), t = a.base, r.base = t, n = _a(G(r, e)), r.base = a) : (a = F(r, "accent"), t = a.base);
5312
+ var s = G(t, e.havingCrampedStyle()), o = a.isShifty && q.isCharacterBox(t), h = 0;
5313
5313
  if (o) {
5314
- var c = q.getBaseElem(t), p = P(c, e.havingCrampedStyle());
5314
+ var c = q.getBaseElem(t), p = G(c, e.havingCrampedStyle());
5315
5315
  h = Pt(p).skew;
5316
5316
  }
5317
5317
  var g = a.label === "\\c", b = g ? s.height + s.depth : Math.min(s.height, e.fontMetrics().xHeight), w;
@@ -5339,8 +5339,8 @@ var wt = (r, e) => {
5339
5339
  }, e, "textord"), x = Pt(x), x.italic = 0, z = x.width, g && (b += x.depth)), w = y.makeSpan(["accent-body"], [x]);
5340
5340
  var T = a.label === "\\textcircled";
5341
5341
  T && (w.classes.push("accent-full"), b = s.height);
5342
- var C = h;
5343
- T || (C -= z / 2), w.style.left = A(C), a.label === "\\textcircled" && (w.style.top = ".2em"), w = y.makeVList({
5342
+ var D = h;
5343
+ T || (D -= z / 2), w.style.left = A(D), a.label === "\\textcircled" && (w.style.top = ".2em"), w = y.makeVList({
5344
5344
  positionType: "firstBaseline",
5345
5345
  children: [{
5346
5346
  type: "elem",
@@ -5354,8 +5354,8 @@ var wt = (r, e) => {
5354
5354
  }]
5355
5355
  }, e);
5356
5356
  }
5357
- var N = y.makeSpan(["mord", "accent"], [w], e);
5358
- return n ? (n.children[0] = N, n.height = Math.max(N.height, n.height), n.classes[0] = "mord", n) : N;
5357
+ var C = y.makeSpan(["mord", "accent"], [w], e);
5358
+ return n ? (n.children[0] = C, n.height = Math.max(C.height, n.height), n.classes[0] = "mord", n) : C;
5359
5359
  }, qr = (r, e) => {
5360
5360
  var t = r.isStretchy ? q0.mathMLnode(r.label) : new S.MathNode("mo", [v0(r.label, r.mode)]), a = new S.MathNode("mover", [Y(r.base, e), t]);
5361
5361
  return a.setAttribute("accent", "true"), a;
@@ -5423,7 +5423,7 @@ B({
5423
5423
  };
5424
5424
  },
5425
5425
  htmlBuilder: (r, e) => {
5426
- var t = P(r.base, e), a = q0.svgSpan(r, e), n = r.label === "\\utilde" ? 0.12 : 0, s = y.makeVList({
5426
+ var t = G(r.base, e), a = q0.svgSpan(r, e), n = r.label === "\\utilde" ? 0.12 : 0, s = y.makeVList({
5427
5427
  positionType: "top",
5428
5428
  positionData: t.height,
5429
5429
  children: [{
@@ -5501,10 +5501,10 @@ B({
5501
5501
  // Flow is unable to correctly infer the type of `group`, even though it's
5502
5502
  // unambiguously determined from the passed-in `type` above.
5503
5503
  htmlBuilder(r, e) {
5504
- var t = e.style, a = e.havingStyle(t.sup()), n = y.wrapFragment(P(r.body, a, e), e), s = r.label.slice(0, 2) === "\\x" ? "x" : "cd";
5504
+ var t = e.style, a = e.havingStyle(t.sup()), n = y.wrapFragment(G(r.body, a, e), e), s = r.label.slice(0, 2) === "\\x" ? "x" : "cd";
5505
5505
  n.classes.push(s + "-arrow-pad");
5506
5506
  var o;
5507
- r.below && (a = e.havingStyle(t.sub()), o = y.wrapFragment(P(r.below, a, e), e), o.classes.push(s + "-arrow-pad"));
5507
+ r.below && (a = e.havingStyle(t.sub()), o = y.wrapFragment(G(r.below, a, e), e), o.classes.push(s + "-arrow-pad"));
5508
5508
  var h = q0.svgSpan(r, e), c = -e.fontMetrics().axisHeight + 0.5 * h.height, p = -e.fontMetrics().axisHeight - 0.5 * h.height - 0.111;
5509
5509
  (n.depth > 0.25 || r.label === "\\xleftequilibrium") && (p -= n.depth);
5510
5510
  var g;
@@ -5790,7 +5790,7 @@ function O1(r) {
5790
5790
  s % 2 === 0 ? a.push(h) : a.shift(), a = [], n.push(a);
5791
5791
  }
5792
5792
  r.gullet.endGroup(), r.gullet.endGroup();
5793
- var C = new Array(n[0].length).fill({
5793
+ var D = new Array(n[0].length).fill({
5794
5794
  type: "align",
5795
5795
  align: "c",
5796
5796
  pregap: 0.25,
@@ -5805,7 +5805,7 @@ function O1(r) {
5805
5805
  arraystretch: 1,
5806
5806
  addJot: !0,
5807
5807
  rowGaps: [null],
5808
- cols: C,
5808
+ cols: D,
5809
5809
  colSeparationType: "CD",
5810
5810
  hLinesBeforeRow: new Array(n.length + 1).fill([])
5811
5811
  };
@@ -5829,7 +5829,7 @@ B({
5829
5829
  };
5830
5830
  },
5831
5831
  htmlBuilder(r, e) {
5832
- var t = e.havingStyle(e.style.sup()), a = y.wrapFragment(P(r.label, t, e), e);
5832
+ var t = e.havingStyle(e.style.sup()), a = y.wrapFragment(G(r.label, t, e), e);
5833
5833
  return a.classes.push("cd-label-" + r.side), a.style.bottom = A(0.8 - a.depth), a.height = 0, a.depth = 0, a;
5834
5834
  },
5835
5835
  mathmlBuilder(r, e) {
@@ -5854,7 +5854,7 @@ B({
5854
5854
  };
5855
5855
  },
5856
5856
  htmlBuilder(r, e) {
5857
- var t = y.wrapFragment(P(r.fragment, e), e);
5857
+ var t = y.wrapFragment(G(r.fragment, e), e);
5858
5858
  return t.classes.push("cd-vert-arrow"), t;
5859
5859
  },
5860
5860
  mathmlBuilder(r, e) {
@@ -6162,12 +6162,12 @@ var ie = function(e, t, a) {
6162
6162
  h = p = g = e, c = null;
6163
6163
  var x = "Size1-Regular";
6164
6164
  e === "\\uparrow" ? p = g = "⏐" : e === "\\Uparrow" ? p = g = "‖" : e === "\\downarrow" ? h = p = "⏐" : e === "\\Downarrow" ? h = p = "‖" : e === "\\updownarrow" ? (h = "\\uparrow", p = "⏐", g = "\\downarrow") : e === "\\Updownarrow" ? (h = "\\Uparrow", p = "‖", g = "\\Downarrow") : q.contains(P1, e) ? (p = "∣", b = "vert", w = 333) : q.contains(G1, e) ? (p = "∥", b = "doublevert", w = 556) : e === "[" || e === "\\lbrack" ? (h = "⎡", p = "⎢", g = "⎣", x = "Size4-Regular", b = "lbrack", w = 667) : e === "]" || e === "\\rbrack" ? (h = "⎤", p = "⎥", g = "⎦", x = "Size4-Regular", b = "rbrack", w = 667) : e === "\\lfloor" || e === "⌊" ? (p = h = "⎢", g = "⎣", x = "Size4-Regular", b = "lfloor", w = 667) : e === "\\lceil" || e === "⌈" ? (h = "⎡", p = g = "⎢", x = "Size4-Regular", b = "lceil", w = 667) : e === "\\rfloor" || e === "⌋" ? (p = h = "⎥", g = "⎦", x = "Size4-Regular", b = "rfloor", w = 667) : e === "\\rceil" || e === "⌉" ? (h = "⎤", p = g = "⎥", x = "Size4-Regular", b = "rceil", w = 667) : e === "(" || e === "\\lparen" ? (h = "⎛", p = "⎜", g = "⎝", x = "Size4-Regular", b = "lparen", w = 875) : e === ")" || e === "\\rparen" ? (h = "⎞", p = "⎟", g = "⎠", x = "Size4-Regular", b = "rparen", w = 875) : e === "\\{" || e === "\\lbrace" ? (h = "⎧", c = "⎨", g = "⎩", p = "⎪", x = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (h = "⎫", c = "⎬", g = "⎭", p = "⎪", x = "Size4-Regular") : e === "\\lgroup" || e === "⟮" ? (h = "⎧", g = "⎩", p = "⎪", x = "Size4-Regular") : e === "\\rgroup" || e === "⟯" ? (h = "⎫", g = "⎭", p = "⎪", x = "Size4-Regular") : e === "\\lmoustache" || e === "⎰" ? (h = "⎧", g = "⎭", p = "⎪", x = "Size4-Regular") : (e === "\\rmoustache" || e === "⎱") && (h = "⎫", g = "⎩", p = "⎪", x = "Size4-Regular");
6165
- var z = ie(h, x, s), T = z.height + z.depth, C = ie(p, x, s), N = C.height + C.depth, I = ie(g, x, s), H = I.height + I.depth, G = 0, L = 1;
6165
+ var z = ie(h, x, s), T = z.height + z.depth, D = ie(p, x, s), C = D.height + D.depth, I = ie(g, x, s), H = I.height + I.depth, P = 0, L = 1;
6166
6166
  if (c !== null) {
6167
6167
  var U = ie(c, x, s);
6168
- G = U.height + U.depth, L = 2;
6168
+ P = U.height + U.depth, L = 2;
6169
6169
  }
6170
- var V = T + H + G, j = Math.max(0, Math.ceil((t - V) / (L * N))), $ = V + j * L * N, z0 = n.fontMetrics().axisHeight;
6170
+ var V = T + H + P, j = Math.max(0, Math.ceil((t - V) / (L * C))), $ = V + j * L * C, z0 = n.fontMetrics().axisHeight;
6171
6171
  a && (z0 *= n.sizeMultiplier);
6172
6172
  var r0 = $ / 2 - z0, e0 = [];
6173
6173
  if (b.length > 0) {
@@ -6185,7 +6185,7 @@ var ie = function(e, t, a) {
6185
6185
  var O0 = $ - T - H + 2 * mt;
6186
6186
  e0.push(Ke(p, O0, n));
6187
6187
  } else {
6188
- var c0 = ($ - T - H - G) / 2 + 2 * mt;
6188
+ var c0 = ($ - T - H - P) / 2 + 2 * mt;
6189
6189
  e0.push(Ke(p, c0, n)), e0.push(Se), e0.push(Ze(c, x, s)), e0.push(Se), e0.push(Ke(p, c0, n));
6190
6190
  }
6191
6191
  e0.push(Se), e0.push(Ze(h, x, s));
@@ -6539,7 +6539,7 @@ B({
6539
6539
  }
6540
6540
  });
6541
6541
  var St = (r, e) => {
6542
- var t = y.wrapFragment(P(r.body, e), e), a = r.label.slice(1), n = e.sizeMultiplier, s, o = 0, h = q.isCharacterBox(r.body);
6542
+ var t = y.wrapFragment(G(r.body, e), e), a = r.label.slice(1), n = e.sizeMultiplier, s, o = 0, h = q.isCharacterBox(r.body);
6543
6543
  if (a === "sout")
6544
6544
  s = y.makeSpan(["stretchy", "sout"]), s.height = e.fontMetrics().defaultRuleThickness / n, o = -0.5 * e.fontMetrics().xHeight;
6545
6545
  else if (a === "phase") {
@@ -6562,13 +6562,13 @@ var St = (r, e) => {
6562
6562
  s = y.makeSvgSpan(["hide-tail"], [z], e), s.style.height = A(b), o = t.depth + c + p;
6563
6563
  } else {
6564
6564
  /cancel/.test(a) ? h || t.classes.push("cancel-pad") : a === "angl" ? t.classes.push("anglpad") : t.classes.push("boxpad");
6565
- var T = 0, C = 0, N = 0;
6566
- /box/.test(a) ? (N = Math.max(
6565
+ var T = 0, D = 0, C = 0;
6566
+ /box/.test(a) ? (C = Math.max(
6567
6567
  e.fontMetrics().fboxrule,
6568
6568
  // default
6569
6569
  e.minRuleThickness
6570
6570
  // User override.
6571
- ), T = e.fontMetrics().fboxsep + (a === "colorbox" ? 0 : N), C = T) : a === "angl" ? (N = Math.max(e.fontMetrics().defaultRuleThickness, e.minRuleThickness), T = 4 * N, C = Math.max(0, 0.25 - t.depth)) : (T = h ? 0.2 : 0, C = T), s = q0.encloseSpan(t, a, T, C, e), /fbox|boxed|fcolorbox/.test(a) ? (s.style.borderStyle = "solid", s.style.borderWidth = A(N)) : a === "angl" && N !== 0.049 && (s.style.borderTopWidth = A(N), s.style.borderRightWidth = A(N)), o = t.depth + C, r.backgroundColor && (s.style.backgroundColor = r.backgroundColor, r.borderColor && (s.style.borderColor = r.borderColor));
6571
+ ), T = e.fontMetrics().fboxsep + (a === "colorbox" ? 0 : C), D = T) : a === "angl" ? (C = Math.max(e.fontMetrics().defaultRuleThickness, e.minRuleThickness), T = 4 * C, D = Math.max(0, 0.25 - t.depth)) : (T = h ? 0.2 : 0, D = T), s = q0.encloseSpan(t, a, T, D, e), /fbox|boxed|fcolorbox/.test(a) ? (s.style.borderStyle = "solid", s.style.borderWidth = A(C)) : a === "angl" && C !== 0.049 && (s.style.borderTopWidth = A(C), s.style.borderRightWidth = A(C)), o = t.depth + D, r.backgroundColor && (s.style.backgroundColor = r.backgroundColor, r.borderColor && (s.style.borderColor = r.borderColor));
6572
6572
  }
6573
6573
  var I;
6574
6574
  if (r.backgroundColor)
@@ -6819,14 +6819,14 @@ function U0(r, e, t) {
6819
6819
  throw new M("Invalid \\arraystretch: " + x);
6820
6820
  }
6821
6821
  r.gullet.beginGroup();
6822
- var z = [], T = [z], C = [], N = [], I = c != null ? [] : void 0;
6822
+ var z = [], T = [z], D = [], C = [], I = c != null ? [] : void 0;
6823
6823
  function H() {
6824
6824
  c && r.gullet.macros.set("\\@eqnsw", "1", !0);
6825
6825
  }
6826
- function G() {
6826
+ function P() {
6827
6827
  I && (r.gullet.macros.get("\\df@tag") ? (I.push(r.subparse([new f0("\\df@tag")])), r.gullet.macros.set("\\df@tag", void 0, !0)) : I.push(!!c && r.gullet.macros.get("\\@eqnsw") === "1"));
6828
6828
  }
6829
- for (H(), N.push(Qt(r)); ; ) {
6829
+ for (H(), C.push(Qt(r)); ; ) {
6830
6830
  var L = r.parseExpression(!1, p ? "\\end" : "\\\\");
6831
6831
  r.gullet.endGroup(), r.gullet.beginGroup(), L = {
6832
6832
  type: "ordgroup",
@@ -6847,12 +6847,12 @@ function U0(r, e, t) {
6847
6847
  }
6848
6848
  r.consume();
6849
6849
  } else if (U === "\\end") {
6850
- G(), z.length === 1 && L.type === "styling" && L.body[0].body.length === 0 && (T.length > 1 || !g) && T.pop(), N.length < T.length + 1 && N.push([]);
6850
+ P(), z.length === 1 && L.type === "styling" && L.body[0].body.length === 0 && (T.length > 1 || !g) && T.pop(), C.length < T.length + 1 && C.push([]);
6851
6851
  break;
6852
6852
  } else if (U === "\\\\") {
6853
6853
  r.consume();
6854
6854
  var V = void 0;
6855
- r.gullet.future().text !== " " && (V = r.parseSizeGroup(!0)), C.push(V ? V.value : null), G(), N.push(Qt(r)), z = [], T.push(z), H();
6855
+ r.gullet.future().text !== " " && (V = r.parseSizeGroup(!0)), D.push(V ? V.value : null), P(), C.push(Qt(r)), z = [], T.push(z), H();
6856
6856
  } else
6857
6857
  throw new M("Expected & or \\\\ or \\cr or \\end", r.nextToken);
6858
6858
  }
@@ -6863,9 +6863,9 @@ function U0(r, e, t) {
6863
6863
  arraystretch: o,
6864
6864
  body: T,
6865
6865
  cols: s,
6866
- rowGaps: C,
6866
+ rowGaps: D,
6867
6867
  hskipBeforeAndAfter: a,
6868
- hLinesBeforeRow: N,
6868
+ hLinesBeforeRow: C,
6869
6869
  colSeparationType: h,
6870
6870
  tags: I,
6871
6871
  leqno: w
@@ -6888,24 +6888,24 @@ var S0 = function(e, t) {
6888
6888
  var z = e.colSeparationType === "CD" ? K({
6889
6889
  number: 3,
6890
6890
  unit: "ex"
6891
- }, t) : 12 * b, T = 3 * b, C = e.arraystretch * z, N = 0.7 * C, I = 0.3 * C, H = 0;
6892
- function G(fe) {
6891
+ }, t) : 12 * b, T = 3 * b, D = e.arraystretch * z, C = 0.7 * D, I = 0.3 * D, H = 0;
6892
+ function P(fe) {
6893
6893
  for (var pe = 0; pe < fe.length; ++pe)
6894
6894
  pe > 0 && (H += 0.25), p.push({
6895
6895
  pos: H,
6896
6896
  isDashed: fe[pe]
6897
6897
  });
6898
6898
  }
6899
- for (G(o[0]), a = 0; a < e.body.length; ++a) {
6900
- var L = e.body[a], U = N, V = I;
6899
+ for (P(o[0]), a = 0; a < e.body.length; ++a) {
6900
+ var L = e.body[a], U = C, V = I;
6901
6901
  h < L.length && (h = L.length);
6902
6902
  var j = new Array(L.length);
6903
6903
  for (n = 0; n < L.length; ++n) {
6904
- var $ = P(L[n], t);
6904
+ var $ = G(L[n], t);
6905
6905
  V < $.depth && (V = $.depth), U < $.height && (U = $.height), j[n] = $;
6906
6906
  }
6907
6907
  var z0 = e.rowGaps[a], r0 = 0;
6908
- z0 && (r0 = K(z0, t), r0 > 0 && (r0 += I, V < r0 && (V = r0), r0 = 0)), e.addJot && (V += T), j.height = U, j.depth = V, H += U, j.pos = H, H += V + r0, c[a] = j, G(o[a + 1]);
6908
+ z0 && (r0 = K(z0, t), r0 > 0 && (r0 += I, V < r0 && (V = r0), r0 = 0)), e.addJot && (V += T), j.height = U, j.depth = V, H += U, j.pos = H, H += V + r0, c[a] = j, P(o[a + 1]);
6909
6909
  }
6910
6910
  var e0 = H / 2 + t.fontMetrics().axisHeight, $0 = e.cols || [], s0 = [], g0, R0, j0 = [];
6911
6911
  if (e.tags && e.tags.some((fe) => fe))
@@ -6998,14 +6998,14 @@ var S0 = function(e, t) {
6998
6998
  g.setAttribute("rowspacing", A(b));
6999
6999
  var w = "", x = "";
7000
7000
  if (e.cols && e.cols.length > 0) {
7001
- var z = e.cols, T = "", C = !1, N = 0, I = z.length;
7002
- z[0].type === "separator" && (w += "top ", N = 1), z[z.length - 1].type === "separator" && (w += "bottom ", I -= 1);
7003
- for (var H = N; H < I; H++)
7004
- z[H].type === "align" ? (x += K1[z[H].align], C && (T += "none "), C = !0) : z[H].type === "separator" && C && (T += z[H].separator === "|" ? "solid " : "dashed ", C = !1);
7001
+ var z = e.cols, T = "", D = !1, C = 0, I = z.length;
7002
+ z[0].type === "separator" && (w += "top ", C = 1), z[z.length - 1].type === "separator" && (w += "bottom ", I -= 1);
7003
+ for (var H = C; H < I; H++)
7004
+ z[H].type === "align" ? (x += K1[z[H].align], D && (T += "none "), D = !0) : z[H].type === "separator" && D && (T += z[H].separator === "|" ? "solid " : "dashed ", D = !1);
7005
7005
  g.setAttribute("columnalign", x.trim()), /[sd]/.test(T) && g.setAttribute("columnlines", T.trim());
7006
7006
  }
7007
7007
  if (e.colSeparationType === "align") {
7008
- for (var G = e.cols || [], L = "", U = 1; U < G.length; U++)
7008
+ for (var P = e.cols || [], L = "", U = 1; U < P.length; U++)
7009
7009
  L += U % 2 ? "0em " : "1em ";
7010
7010
  g.setAttribute("columnspacing", L.trim());
7011
7011
  } else e.colSeparationType === "alignat" || e.colSeparationType === "gather" ? g.setAttribute("columnspacing", "0em") : e.colSeparationType === "small" ? g.setAttribute("columnspacing", "0.2778em") : e.colSeparationType === "CD" ? g.setAttribute("columnspacing", "0.5em") : g.setAttribute("columnspacing", "1em");
@@ -7037,25 +7037,25 @@ var S0 = function(e, t) {
7037
7037
  h = Number(g), c = h * 2;
7038
7038
  }
7039
7039
  var x = !c;
7040
- o.body.forEach(function(N) {
7041
- for (var I = 1; I < N.length; I += 2) {
7042
- var H = F(N[I], "styling"), G = F(H.body[0], "ordgroup");
7043
- G.body.unshift(p);
7040
+ o.body.forEach(function(C) {
7041
+ for (var I = 1; I < C.length; I += 2) {
7042
+ var H = F(C[I], "styling"), P = F(H.body[0], "ordgroup");
7043
+ P.body.unshift(p);
7044
7044
  }
7045
7045
  if (x)
7046
- c < N.length && (c = N.length);
7046
+ c < C.length && (c = C.length);
7047
7047
  else {
7048
- var L = N.length / 2;
7048
+ var L = C.length / 2;
7049
7049
  if (h < L)
7050
- throw new M("Too many math in a row: " + ("expected " + h + ", but got " + L), N[0]);
7050
+ throw new M("Too many math in a row: " + ("expected " + h + ", but got " + L), C[0]);
7051
7051
  }
7052
7052
  });
7053
7053
  for (var z = 0; z < c; ++z) {
7054
- var T = "r", C = 0;
7055
- z % 2 === 1 ? T = "l" : z > 0 && x && (C = 1), a[z] = {
7054
+ var T = "r", D = 0;
7055
+ z % 2 === 1 ? T = "l" : z > 0 && x && (D = 1), a[z] = {
7056
7056
  type: "align",
7057
7057
  align: T,
7058
- pregap: C,
7058
+ pregap: D,
7059
7059
  postgap: 0
7060
7060
  };
7061
7061
  }
@@ -7364,7 +7364,7 @@ B({
7364
7364
  });
7365
7365
  var Kr = (r, e) => {
7366
7366
  var t = r.font, a = e.withFont(t);
7367
- return P(r.body, a);
7367
+ return G(r.body, a);
7368
7368
  }, Jr = (r, e) => {
7369
7369
  var t = r.font, a = e.withFont(t);
7370
7370
  return Y(r.body, a);
@@ -7473,22 +7473,22 @@ var Qr = (r, e) => {
7473
7473
  }, Tt = (r, e) => {
7474
7474
  var t = Qr(r.size, e.style), a = t.fracNum(), n = t.fracDen(), s;
7475
7475
  s = e.havingStyle(a);
7476
- var o = P(r.numer, s, e);
7476
+ var o = G(r.numer, s, e);
7477
7477
  if (r.continued) {
7478
7478
  var h = 8.5 / e.fontMetrics().ptPerEm, c = 3.5 / e.fontMetrics().ptPerEm;
7479
7479
  o.height = o.height < h ? h : o.height, o.depth = o.depth < c ? c : o.depth;
7480
7480
  }
7481
7481
  s = e.havingStyle(n);
7482
- var p = P(r.denom, s, e), g, b, w;
7482
+ var p = G(r.denom, s, e), g, b, w;
7483
7483
  r.hasBarLine ? (r.barSize ? (b = K(r.barSize, e), g = y.makeLineSpan("frac-line", e, b)) : g = y.makeLineSpan("frac-line", e), b = g.height, w = g.height) : (g = null, b = 0, w = e.fontMetrics().defaultRuleThickness);
7484
7484
  var x, z, T;
7485
7485
  t.size === R.DISPLAY.size || r.size === "display" ? (x = e.fontMetrics().num1, b > 0 ? z = 3 * w : z = 7 * w, T = e.fontMetrics().denom1) : (b > 0 ? (x = e.fontMetrics().num2, z = w) : (x = e.fontMetrics().num3, z = 3 * w), T = e.fontMetrics().denom2);
7486
- var C;
7486
+ var D;
7487
7487
  if (g) {
7488
7488
  var I = e.fontMetrics().axisHeight;
7489
7489
  x - o.depth - (I + 0.5 * b) < z && (x += z - (x - o.depth - (I + 0.5 * b))), I - 0.5 * b - (p.height - T) < z && (T += z - (I - 0.5 * b - (p.height - T)));
7490
7490
  var H = -(I - 0.5 * b);
7491
- C = y.makeVList({
7491
+ D = y.makeVList({
7492
7492
  positionType: "individualShift",
7493
7493
  children: [{
7494
7494
  type: "elem",
@@ -7505,8 +7505,8 @@ var Qr = (r, e) => {
7505
7505
  }]
7506
7506
  }, e);
7507
7507
  } else {
7508
- var N = x - o.depth - (p.height - T);
7509
- N < z && (x += 0.5 * (z - N), T += 0.5 * (z - N)), C = y.makeVList({
7508
+ var C = x - o.depth - (p.height - T);
7509
+ C < z && (x += 0.5 * (z - C), T += 0.5 * (z - C)), D = y.makeVList({
7510
7510
  positionType: "individualShift",
7511
7511
  children: [{
7512
7512
  type: "elem",
@@ -7519,11 +7519,11 @@ var Qr = (r, e) => {
7519
7519
  }]
7520
7520
  }, e);
7521
7521
  }
7522
- s = e.havingStyle(t), C.height *= s.sizeMultiplier / e.sizeMultiplier, C.depth *= s.sizeMultiplier / e.sizeMultiplier;
7523
- var G;
7524
- t.size === R.DISPLAY.size ? G = e.fontMetrics().delim1 : t.size === R.SCRIPTSCRIPT.size ? G = e.havingStyle(R.SCRIPT).fontMetrics().delim2 : G = e.fontMetrics().delim2;
7522
+ s = e.havingStyle(t), D.height *= s.sizeMultiplier / e.sizeMultiplier, D.depth *= s.sizeMultiplier / e.sizeMultiplier;
7523
+ var P;
7524
+ t.size === R.DISPLAY.size ? P = e.fontMetrics().delim1 : t.size === R.SCRIPTSCRIPT.size ? P = e.havingStyle(R.SCRIPT).fontMetrics().delim2 : P = e.fontMetrics().delim2;
7525
7525
  var L, U;
7526
- return r.leftDelim == null ? L = oe(e, ["mopen"]) : L = D0.customSizedDelim(r.leftDelim, G, !0, e.havingStyle(t), r.mode, ["mopen"]), r.continued ? U = y.makeSpan([]) : r.rightDelim == null ? U = oe(e, ["mclose"]) : U = D0.customSizedDelim(r.rightDelim, G, !0, e.havingStyle(t), r.mode, ["mclose"]), y.makeSpan(["mord"].concat(s.sizingClasses(e)), [L, y.makeSpan(["mfrac"], [C]), U], e);
7526
+ return r.leftDelim == null ? L = oe(e, ["mopen"]) : L = D0.customSizedDelim(r.leftDelim, P, !0, e.havingStyle(t), r.mode, ["mopen"]), r.continued ? U = y.makeSpan([]) : r.rightDelim == null ? U = oe(e, ["mclose"]) : U = D0.customSizedDelim(r.rightDelim, P, !0, e.havingStyle(t), r.mode, ["mclose"]), y.makeSpan(["mord"].concat(s.sizingClasses(e)), [L, y.makeSpan(["mfrac"], [D]), U], e);
7527
7527
  }, Bt = (r, e) => {
7528
7528
  var t = new S.MathNode("mfrac", [Y(r.numer, e), Y(r.denom, e)]);
7529
7529
  if (!r.hasBarLine)
@@ -7784,8 +7784,8 @@ B({
7784
7784
  });
7785
7785
  var _r = (r, e) => {
7786
7786
  var t = e.style, a, n;
7787
- r.type === "supsub" ? (a = r.sup ? P(r.sup, e.havingStyle(t.sup()), e) : P(r.sub, e.havingStyle(t.sub()), e), n = F(r.base, "horizBrace")) : n = F(r, "horizBrace");
7788
- var s = P(n.base, e.havingBaseStyle(R.DISPLAY)), o = q0.svgSpan(n, e), h;
7787
+ r.type === "supsub" ? (a = r.sup ? G(r.sup, e.havingStyle(t.sup()), e) : G(r.sub, e.havingStyle(t.sub()), e), n = F(r.base, "horizBrace")) : n = F(r, "horizBrace");
7788
+ var s = G(n.base, e.havingBaseStyle(R.DISPLAY)), o = q0.svgSpan(n, e), h;
7789
7789
  if (n.isOver ? (h = y.makeVList({
7790
7790
  positionType: "firstBaseline",
7791
7791
  children: [{
@@ -8209,7 +8209,7 @@ B({
8209
8209
  },
8210
8210
  htmlBuilder: (r, e) => {
8211
8211
  var t;
8212
- r.alignment === "clap" ? (t = y.makeSpan([], [P(r.body, e)]), t = y.makeSpan(["inner"], [t], e)) : t = y.makeSpan(["inner"], [P(r.body, e)]);
8212
+ r.alignment === "clap" ? (t = y.makeSpan([], [G(r.body, e)]), t = y.makeSpan(["inner"], [t], e)) : t = y.makeSpan(["inner"], [G(r.body, e)]);
8213
8213
  var a = y.makeSpan(["fix"], []), n = y.makeSpan([r.alignment], [t, a], e), s = y.makeSpan(["strut"]);
8214
8214
  return s.style.height = A(n.height + n.depth), n.depth && (s.style.verticalAlign = A(-n.depth)), n.children.unshift(s), n = y.makeSpan(["thinbox"], [n], e), y.makeSpan(["mord", "vbox"], [n], e);
8215
8215
  },
@@ -8305,14 +8305,14 @@ var ea = (r, e, t, a, n, s, o) => {
8305
8305
  r = y.makeSpan([], [r]);
8306
8306
  var h = t && q.isCharacterBox(t), c, p;
8307
8307
  if (e) {
8308
- var g = P(e, a.havingStyle(n.sup()), a);
8308
+ var g = G(e, a.havingStyle(n.sup()), a);
8309
8309
  p = {
8310
8310
  elem: g,
8311
8311
  kern: Math.max(a.fontMetrics().bigOpSpacing1, a.fontMetrics().bigOpSpacing3 - g.depth)
8312
8312
  };
8313
8313
  }
8314
8314
  if (t) {
8315
- var b = P(t, a.havingStyle(n.sub()), a);
8315
+ var b = G(t, a.havingStyle(n.sub()), a);
8316
8316
  c = {
8317
8317
  elem: b,
8318
8318
  kern: Math.max(a.fontMetrics().bigOpSpacing2, a.fontMetrics().bigOpSpacing4 - b.height)
@@ -8391,12 +8391,12 @@ var ea = (r, e, t, a, n, s, o) => {
8391
8391
  }, a);
8392
8392
  } else
8393
8393
  return r;
8394
- var C = [w];
8394
+ var D = [w];
8395
8395
  if (c && s !== 0 && !h) {
8396
- var N = y.makeSpan(["mspace"], [], a);
8397
- N.style.marginRight = A(s), C.unshift(N);
8396
+ var C = y.makeSpan(["mspace"], [], a);
8397
+ C.style.marginRight = A(s), D.unshift(C);
8398
8398
  }
8399
- return y.makeSpan(["mop", "op-limits"], C, a);
8399
+ return y.makeSpan(["mop", "op-limits"], D, a);
8400
8400
  }, ta = ["\\smallint"], ae = (r, e) => {
8401
8401
  var t, a, n = !1, s;
8402
8402
  r.type === "supsub" ? (t = r.sup, a = r.sub, s = F(r.base, "op"), n = !0) : s = F(r, "op");
@@ -8428,8 +8428,8 @@ var ea = (r, e, t, a, n, s, o) => {
8428
8428
  z.push(y.mathsym(s.name[T], s.mode, e));
8429
8429
  c = y.makeSpan(["mop"], z, e);
8430
8430
  }
8431
- var C = 0, N = 0;
8432
- return (c instanceof p0 || s.name === "\\oiint" || s.name === "\\oiiint") && !s.suppressBaseShift && (C = (c.height - c.depth) / 2 - e.fontMetrics().axisHeight, N = c.italic), n ? ea(c, t, a, e, o, N, C) : (C && (c.style.position = "relative", c.style.top = A(C)), c);
8431
+ var D = 0, C = 0;
8432
+ return (c instanceof p0 || s.name === "\\oiint" || s.name === "\\oiiint") && !s.suppressBaseShift && (D = (c.height - c.depth) / 2 - e.fontMetrics().axisHeight, C = c.italic), n ? ea(c, t, a, e, o, C, D) : (D && (c.style.position = "relative", c.style.top = A(D)), c);
8433
8433
  }, me = (r, e) => {
8434
8434
  var t;
8435
8435
  if (r.symbol)
@@ -8681,7 +8681,7 @@ B({
8681
8681
  };
8682
8682
  },
8683
8683
  htmlBuilder(r, e) {
8684
- var t = P(r.body, e.havingCrampedStyle()), a = y.makeLineSpan("overline-line", e), n = e.fontMetrics().defaultRuleThickness, s = y.makeVList({
8684
+ var t = G(r.body, e.havingCrampedStyle()), a = y.makeLineSpan("overline-line", e), n = e.fontMetrics().defaultRuleThickness, s = y.makeVList({
8685
8685
  positionType: "firstBaseline",
8686
8686
  children: [{
8687
8687
  type: "elem",
@@ -8750,7 +8750,7 @@ B({
8750
8750
  };
8751
8751
  },
8752
8752
  htmlBuilder: (r, e) => {
8753
- var t = y.makeSpan([], [P(r.body, e.withPhantom())]);
8753
+ var t = y.makeSpan([], [G(r.body, e.withPhantom())]);
8754
8754
  if (t.height = 0, t.depth = 0, t.children)
8755
8755
  for (var a = 0; a < t.children.length; a++)
8756
8756
  t.children[a].height = 0, t.children[a].depth = 0;
@@ -8785,7 +8785,7 @@ B({
8785
8785
  };
8786
8786
  },
8787
8787
  htmlBuilder: (r, e) => {
8788
- var t = y.makeSpan(["inner"], [P(r.body, e.withPhantom())]), a = y.makeSpan(["fix"], []);
8788
+ var t = y.makeSpan(["inner"], [G(r.body, e.withPhantom())]), a = y.makeSpan(["fix"], []);
8789
8789
  return y.makeSpan(["mord", "rlap"], [t, a], e);
8790
8790
  },
8791
8791
  mathmlBuilder: (r, e) => {
@@ -8813,7 +8813,7 @@ B({
8813
8813
  };
8814
8814
  },
8815
8815
  htmlBuilder(r, e) {
8816
- var t = P(r.body, e), a = K(r.dy, e);
8816
+ var t = G(r.body, e), a = K(r.dy, e);
8817
8817
  return y.makeVList({
8818
8818
  positionType: "shift",
8819
8819
  positionData: -a,
@@ -8953,7 +8953,7 @@ B({
8953
8953
  };
8954
8954
  },
8955
8955
  htmlBuilder: (r, e) => {
8956
- var t = y.makeSpan([], [P(r.body, e)]);
8956
+ var t = y.makeSpan([], [G(r.body, e)]);
8957
8957
  if (!r.smashHeight && !r.smashDepth)
8958
8958
  return t;
8959
8959
  if (r.smashHeight && (t.height = 0, t.children))
@@ -8995,7 +8995,7 @@ B({
8995
8995
  };
8996
8996
  },
8997
8997
  htmlBuilder(r, e) {
8998
- var t = P(r.body, e.havingCrampedStyle());
8998
+ var t = G(r.body, e.havingCrampedStyle());
8999
8999
  t.height === 0 && (t.height = e.fontMetrics().xHeight), t = y.wrapFragment(t, e);
9000
9000
  var a = e.fontMetrics(), n = a.defaultRuleThickness, s = n;
9001
9001
  e.style.id < R.TEXT.id && (s = e.fontMetrics().xHeight);
@@ -9025,14 +9025,14 @@ B({
9025
9025
  }]
9026
9026
  }, e);
9027
9027
  if (r.index) {
9028
- var z = e.havingStyle(R.SCRIPTSCRIPT), T = P(r.index, z, e), C = 0.6 * (x.height - x.depth), N = y.makeVList({
9028
+ var z = e.havingStyle(R.SCRIPTSCRIPT), T = G(r.index, z, e), D = 0.6 * (x.height - x.depth), C = y.makeVList({
9029
9029
  positionType: "shift",
9030
- positionData: -C,
9030
+ positionData: -D,
9031
9031
  children: [{
9032
9032
  type: "elem",
9033
9033
  elem: T
9034
9034
  }]
9035
- }, e), I = y.makeSpan(["root"], [N]);
9035
+ }, e), I = y.makeSpan(["root"], [C]);
9036
9036
  return y.makeSpan(["mord", "sqrt"], [I, x], e);
9037
9037
  } else
9038
9038
  return y.makeSpan(["mord", "sqrt"], [x], e);
@@ -9118,23 +9118,23 @@ W0({
9118
9118
  base: a,
9119
9119
  sup: n,
9120
9120
  sub: s
9121
- } = r, o = P(a, e), h, c, p = e.fontMetrics(), g = 0, b = 0, w = a && q.isCharacterBox(a);
9121
+ } = r, o = G(a, e), h, c, p = e.fontMetrics(), g = 0, b = 0, w = a && q.isCharacterBox(a);
9122
9122
  if (n) {
9123
9123
  var x = e.havingStyle(e.style.sup());
9124
- h = P(n, x, e), w || (g = o.height - x.fontMetrics().supDrop * x.sizeMultiplier / e.sizeMultiplier);
9124
+ h = G(n, x, e), w || (g = o.height - x.fontMetrics().supDrop * x.sizeMultiplier / e.sizeMultiplier);
9125
9125
  }
9126
9126
  if (s) {
9127
9127
  var z = e.havingStyle(e.style.sub());
9128
- c = P(s, z, e), w || (b = o.depth + z.fontMetrics().subDrop * z.sizeMultiplier / e.sizeMultiplier);
9128
+ c = G(s, z, e), w || (b = o.depth + z.fontMetrics().subDrop * z.sizeMultiplier / e.sizeMultiplier);
9129
9129
  }
9130
9130
  var T;
9131
9131
  e.style === R.DISPLAY ? T = p.sup1 : e.style.cramped ? T = p.sup3 : T = p.sup2;
9132
- var C = e.sizeMultiplier, N = A(0.5 / p.ptPerEm / C), I = null;
9132
+ var D = e.sizeMultiplier, C = A(0.5 / p.ptPerEm / D), I = null;
9133
9133
  if (c) {
9134
9134
  var H = r.base && r.base.type === "op" && r.base.name && (r.base.name === "\\oiint" || r.base.name === "\\oiiint");
9135
9135
  (o instanceof p0 || H) && (I = A(-o.italic));
9136
9136
  }
9137
- var G;
9137
+ var P;
9138
9138
  if (h && c) {
9139
9139
  g = Math.max(g, T, h.depth + 0.25 * p.xHeight), b = Math.max(b, p.sub2);
9140
9140
  var L = p.defaultRuleThickness, U = 4 * L;
@@ -9147,15 +9147,15 @@ W0({
9147
9147
  type: "elem",
9148
9148
  elem: c,
9149
9149
  shift: b,
9150
- marginRight: N,
9150
+ marginRight: C,
9151
9151
  marginLeft: I
9152
9152
  }, {
9153
9153
  type: "elem",
9154
9154
  elem: h,
9155
9155
  shift: -g,
9156
- marginRight: N
9156
+ marginRight: C
9157
9157
  }];
9158
- G = y.makeVList({
9158
+ P = y.makeVList({
9159
9159
  positionType: "individualShift",
9160
9160
  children: j
9161
9161
  }, e);
@@ -9165,27 +9165,27 @@ W0({
9165
9165
  type: "elem",
9166
9166
  elem: c,
9167
9167
  marginLeft: I,
9168
- marginRight: N
9168
+ marginRight: C
9169
9169
  }];
9170
- G = y.makeVList({
9170
+ P = y.makeVList({
9171
9171
  positionType: "shift",
9172
9172
  positionData: b,
9173
9173
  children: $
9174
9174
  }, e);
9175
9175
  } else if (h)
9176
- g = Math.max(g, T, h.depth + 0.25 * p.xHeight), G = y.makeVList({
9176
+ g = Math.max(g, T, h.depth + 0.25 * p.xHeight), P = y.makeVList({
9177
9177
  positionType: "shift",
9178
9178
  positionData: -g,
9179
9179
  children: [{
9180
9180
  type: "elem",
9181
9181
  elem: h,
9182
- marginRight: N
9182
+ marginRight: C
9183
9183
  }]
9184
9184
  }, e);
9185
9185
  else
9186
9186
  throw new Error("supsub must have either sup or sub.");
9187
9187
  var z0 = ot(o, "right") || "mord";
9188
- return y.makeSpan([z0], [o, y.makeSpan(["msupsub"], [G])], e);
9188
+ return y.makeSpan([z0], [o, y.makeSpan(["msupsub"], [P])], e);
9189
9189
  },
9190
9190
  mathmlBuilder(r, e) {
9191
9191
  var t = !1, a, n;
@@ -9388,7 +9388,7 @@ B({
9388
9388
  };
9389
9389
  },
9390
9390
  htmlBuilder(r, e) {
9391
- var t = P(r.body, e), a = y.makeLineSpan("underline-line", e), n = e.fontMetrics().defaultRuleThickness, s = y.makeVList({
9391
+ var t = G(r.body, e), a = y.makeLineSpan("underline-line", e), n = e.fontMetrics().defaultRuleThickness, s = y.makeVList({
9392
9392
  positionType: "top",
9393
9393
  positionData: t.height,
9394
9394
  children: [{
@@ -9434,7 +9434,7 @@ B({
9434
9434
  };
9435
9435
  },
9436
9436
  htmlBuilder(r, e) {
9437
- var t = P(r.body, e), a = e.fontMetrics().axisHeight, n = 0.5 * (t.height - a - (t.depth + a));
9437
+ var t = G(r.body, e), a = e.fontMetrics().axisHeight, n = 0.5 * (t.height - a - (t.depth + a));
9438
9438
  return y.makeVList({
9439
9439
  positionType: "shift",
9440
9440
  positionData: n,
@@ -11730,32 +11730,36 @@ const x4 = fa.create({
11730
11730
  new pa({
11731
11731
  key: new va("latexAutoDetect"),
11732
11732
  appendTransaction: (r, e, t) => {
11733
- if (!r.some((o) => o.docChanged))
11734
- return null;
11735
- const a = /\$\$([\s\S]+?)\$\$|\$([^\$]+?)\$|\[([^\]]+?)\]|(\\[a-zA-Z]+(?:\{[^}]*\})*)/g;
11736
- let n = t.tr, s = [];
11737
- return t.doc.descendants((o, h, c) => {
11738
- if (!o.isText) return;
11739
- const p = o.text;
11740
- if (!(!p || !c) && !(c.type.name === "codeBlock" || c.type.name === "code") && !o.marks.some((g) => g.type.name === "code") && c.type.name !== "latex" && (p.includes("$") || p.includes("[") || p.includes("\\"))) {
11741
- let g;
11742
- for (; (g = a.exec(p)) !== null; ) {
11743
- const [b, w, x, z, T] = g, C = h + g.index, N = C + b.length;
11744
- let I = w || x || z || T;
11745
- const H = !!w || !!z;
11746
- !H && !x && /\\(begin|end|left|right)/.test(I) || s.push({ start: C, end: N, content: I.trim(), isBlock: H });
11733
+ const a = this.editor.isEditable, n = a ? /\$(\\[^\$]+?)\$|\[(\\[^\]]+?)\]/g : /\$\$([\s\S]+?)\$\$|\$([^\$]+?)\$|\[([^\]]+?)\]|(\\[a-zA-Z]+(?:\{[^}]*\})*)/g;
11734
+ let s = t.tr, o = [];
11735
+ return t.doc.descendants((h, c, p) => {
11736
+ if (!h.isText) return;
11737
+ const g = h.text;
11738
+ if (!(!g || !p) && !(p.type.name === "codeBlock" || p.type.name === "code") && !h.marks.some((b) => b.type.name === "code") && p.type.name !== "latex" && (g.includes("$") || g.includes("[") || g.includes("\\"))) {
11739
+ let b;
11740
+ for (; (b = n.exec(g)) !== null; ) {
11741
+ const [w] = b, x = c + b.index, z = x + w.length;
11742
+ let T, D, C, I;
11743
+ a ? [, D, C] = b : [, T, D, C, I] = b;
11744
+ let H = T || D || C || I;
11745
+ const P = !!T || !!C, L = !!D;
11746
+ if (H) {
11747
+ if (!P && !L && /\\(begin|end|left|right)/.test(H))
11748
+ continue;
11749
+ o.push({ start: x, end: z, content: H.trim(), isBlock: P });
11750
+ }
11747
11751
  }
11748
11752
  }
11749
- }), s.length > 0 ? (s.reverse().forEach(({ start: o, end: h, content: c, isBlock: p }) => {
11750
- n = n.replaceWith(
11751
- o,
11753
+ }), o.length > 0 ? (o.reverse().forEach(({ start: h, end: c, content: p, isBlock: g }) => {
11754
+ s = s.replaceWith(
11752
11755
  h,
11756
+ c,
11753
11757
  t.schema.nodes.latex.create({
11754
- content: c,
11755
- displayMode: p
11758
+ content: p,
11759
+ displayMode: g
11756
11760
  })
11757
11761
  );
11758
- }), n) : null;
11762
+ }), s) : null;
11759
11763
  }
11760
11764
  })
11761
11765
  ];
@@ -1,4 +1,4 @@
1
- import { a as F, P as T, D as U, b as j, e as z, E as G } from "../../../../index-DzExyr-e.js";
1
+ import { a as F, P as T, D as U, b as j, e as z, E as G } from "../../../../index-o3ZWOEgq.js";
2
2
  function H(f) {
3
3
  var s;
4
4
  const { char: g, allowSpaces: v, allowToIncludeChar: I, allowedPrefixes: m, startOfLine: R, $position: d } = f, P = v && !I, p = z(g), D = new RegExp(`\\s${p}$`), h = R ? "^" : "", C = I ? "" : p, K = P ? new RegExp(`${h}${p}.*?(?=\\s${C}|$)`, "gm") : new RegExp(`${h}(?:^)?${p}[^\\s${C}]*`, "gm"), r = ((s = d.nodeBefore) === null || s === void 0 ? void 0 : s.isText) && d.nodeBefore.text;
@@ -1,4 +1,4 @@
1
- import { R as l, t as c } from "../../../../index-B9XP9QDO.js";
1
+ import { R as l, t as c } from "../../../../index-dyNx8_Ul.js";
2
2
  import { l as a, S as d } from "../../../../SlashCommandList-DLPd43Tg.js";
3
3
  const m = () => {
4
4
  let n, t = [], r, i = !a.isEmpty(t);
@@ -1,5 +1,5 @@
1
1
  import { jsx as i, jsxs as S } from "react/jsx-runtime";
2
- import { u as H, E as k } from "../../index-B9XP9QDO.js";
2
+ import { u as H, E as k } from "../../index-dyNx8_Ul.js";
3
3
  import { initExtensions as B } from "./extension/index.js";
4
4
  import { forwardRef as L, useCallback as f, useImperativeHandle as T, useEffect as u } from "react";
5
5
  import A from "../Menu/BarMenu.js";
@@ -35,6 +35,7 @@ const R = L((t, o) => {
35
35
  } = t, n = H(
36
36
  {
37
37
  ...c,
38
+ editable: r,
38
39
  extensions: [...B(t), ...h ?? []],
39
40
  onUpdate({ editor: a }) {
40
41
  const m = a.getHTML(), l = a.getJSON();
@@ -1,4 +1,4 @@
1
- import { P as Ur, a as Fr, B as kr, y as qr, C as zr, E as Kr, G as Gr } from "./index-DzExyr-e.js";
1
+ import { P as Ur, a as Fr, B as kr, y as qr, C as zr, E as Kr, G as Gr } from "./index-o3ZWOEgq.js";
2
2
  import P, { useRef as Yr, useState as At, useDebugValue as lr, useEffect as _t, forwardRef as Xr, useLayoutEffect as Jr, useContext as dr, createContext as fr } from "react";
3
3
  import Qr, { flushSync as Zr } from "react-dom";
4
4
  var U = "top", G = "bottom", Y = "right", F = "left", Rt = "auto", Fe = [U, G, Y, F], Te = "start", He = "end", en = "clippingParents", pr = "viewport", je = "popper", tn = "reference", Wt = /* @__PURE__ */ Fe.reduce(function(t, e) {
@@ -11823,7 +11823,7 @@ class od extends cc {
11823
11823
  let n = t;
11824
11824
  if ([].concat(e).forEach((s) => {
11825
11825
  const o = typeof s == "string" ? `${s}$` : s.key;
11826
- n = t.filter((l) => !l.key.startsWith(o));
11826
+ n = n.filter((l) => !l.key.startsWith(o));
11827
11827
  }), t.length === n.length)
11828
11828
  return;
11829
11829
  const i = this.state.reconfigure({
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "A Tiptap-based rich text editor with a Notion-style block interface for viewing and creating content. Perfect for diverse needs like notes, documents, AI chat, Markdown parsing, and comments.",
4
4
  "author": "CleverTask",
5
5
  "private": false,
6
- "version": "0.0.5",
6
+ "version": "0.0.7",
7
7
  "type": "module",
8
8
  "main": "dist/main.js",
9
9
  "types": "dist/main.d.ts",
@@ -49,10 +49,10 @@
49
49
  "@types/lodash": "^4.17.16",
50
50
  "@types/node": "^22.15.3",
51
51
  "@types/react": "^18.3.20",
52
- "@types/react-dom": "^18.3.6",
52
+ "@types/react-dom": "^18.3.7",
53
53
  "@types/turndown": "^5.0.5",
54
- "@typescript-eslint/eslint-plugin": "^8.31.0",
55
- "@typescript-eslint/parser": "^8.31.0",
54
+ "@typescript-eslint/eslint-plugin": "^8.31.1",
55
+ "@typescript-eslint/parser": "^8.31.1",
56
56
  "@vitejs/plugin-react": "^4.4.1",
57
57
  "autoprefixer": "^10.4.21",
58
58
  "eslint": "^9.25.1",
@@ -65,7 +65,7 @@
65
65
  "prettier": "3.4.2",
66
66
  "tailwindcss": "^3.4.17",
67
67
  "typescript": "^5.8.3",
68
- "vite": "^6.3.3",
68
+ "vite": "^6.3.4",
69
69
  "vite-plugin-dts": "^4.5.3",
70
70
  "vite-plugin-lib-inject-css": "^2.2.2"
71
71
  },
@@ -75,23 +75,23 @@
75
75
  "registry": "https://registry.npmjs.org/"
76
76
  },
77
77
  "dependencies": {
78
- "@tiptap/core": "^2.11.7",
79
- "@tiptap/extension-focus": "^2.11.7",
80
- "@tiptap/extension-highlight": "^2.11.7",
81
- "@tiptap/extension-image": "^2.11.7",
82
- "@tiptap/extension-link": "^2.11.7",
83
- "@tiptap/extension-placeholder": "^2.11.7",
84
- "@tiptap/extension-table": "^2.11.7",
85
- "@tiptap/extension-table-cell": "^2.11.7",
86
- "@tiptap/extension-table-header": "^2.11.7",
87
- "@tiptap/extension-table-row": "^2.11.7",
88
- "@tiptap/extension-task-item": "^2.11.7",
89
- "@tiptap/extension-task-list": "^2.11.7",
90
- "@tiptap/extension-typography": "^2.11.7",
91
- "@tiptap/pm": "^2.11.7",
92
- "@tiptap/react": "^2.11.7",
93
- "@tiptap/starter-kit": "^2.11.7",
94
- "@tiptap/suggestion": "^2.11.7",
78
+ "@tiptap/core": "^2.11.9",
79
+ "@tiptap/extension-focus": "^2.11.9",
80
+ "@tiptap/extension-highlight": "^2.11.9",
81
+ "@tiptap/extension-image": "^2.11.9",
82
+ "@tiptap/extension-link": "^2.11.9",
83
+ "@tiptap/extension-placeholder": "^2.11.9",
84
+ "@tiptap/extension-table": "^2.11.9",
85
+ "@tiptap/extension-table-cell": "^2.11.9",
86
+ "@tiptap/extension-table-header": "^2.11.9",
87
+ "@tiptap/extension-table-row": "^2.11.9",
88
+ "@tiptap/extension-task-item": "^2.11.9",
89
+ "@tiptap/extension-task-list": "^2.11.9",
90
+ "@tiptap/extension-typography": "^2.11.9",
91
+ "@tiptap/pm": "^2.11.9",
92
+ "@tiptap/react": "^2.11.9",
93
+ "@tiptap/starter-kit": "^2.11.9",
94
+ "@tiptap/suggestion": "^2.11.9",
95
95
  "clsx": "^2.1.1",
96
96
  "isomorphic-dompurify": "^2.24.0",
97
97
  "katex": "^0.16.22",