From fa36b5ea6a6939ccedfbfee737ed2943706f275f Mon Sep 17 00:00:00 2001 From: Concedo Date: Wed, 18 Dec 2024 00:27:17 +0800 Subject: [PATCH] reformat the LaTeX renderer --- index.html | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/index.html b/index.html index 0850239..8ea5846 100644 --- a/index.html +++ b/index.html @@ -3912,22 +3912,16 @@ } //LaTeX renderer temml from temml.org, under MIT license - var temml=function(){"use strict";class P{constructor(r,a){let n=" "+r,o;r=a&&a.loc;if(r&&r.start<=r.end){var a=r.lexer.input,r=(o=r.start,r.end),s=(o===a.length?n+=" at end of input: ":n+=" at position "+(o+1)+": ",a.slice(o,r).replace(/[^]/g,"$&\u0332"));let e;e=15":">","<":"<",'"':""","'":"'"},z=/[&><"']/g;function L(e){return"ordgroup"===e.type||"color"===e.type?1===e.body.length?L(e.body[0]):e:"font"===e.type?L(e.body):e}var l={deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(z,e=>I[e])},hyphenate:function(e){return e.replace(F,"-$1").toLowerCase()},getBaseElem:L,isCharacterBox:function(e){e=L(e);return"mathord"===e.type||"textord"===e.type||"atom"===e.type},protocolFromUrl:function(e){e=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return e?":"===e[2]&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?e[1].toLowerCase():null:"_relative"},round:function(e){return+e.toFixed(4)}};class ${constructor(e){this.displayMode=l.deflt((e=e||{}).displayMode,!1),this.annotate=l.deflt(e.annotate,!1),this.leqno=l.deflt(e.leqno,!1),this.throwOnError=l.deflt(e.throwOnError,!1),this.errorColor=l.deflt(e.errorColor,"#b22222"),this.macros=e.macros||{},this.wrap=l.deflt(e.wrap,"tex"),this.xml=l.deflt(e.xml,!1),this.colorIsTextColor=l.deflt(e.colorIsTextColor,!1),this.strict=l.deflt(e.strict,!1),this.trust=l.deflt(e.trust,!1),this.maxSize=void 0!==e.maxSize&&Array.isArray(e.maxSize)?e.maxSize:[1/0,1/0],this.maxExpand=Math.max(0,l.deflt(e.maxExpand,1e3))}isTrusted(e){if(e.url&&!e.protocol){var t=l.protocolFromUrl(e.url);if(null==t)return!1;e.protocol=t}t="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(t)}}const G={},R={};function r({type:e,names:t,props:r,handler:a,mathmlBuilder:n}){var o={type:e,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:void 0===r.allowedInMath||r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:a};for(let e=0;ee.toText()).join("")}}function V(e){return e.filter(e=>e).join(" ")}class _{constructor(e,t,r){!function(e,t){this.classes=e||[],this.attributes={},this.style=t||{}}.call(this,e,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}toNode(){return function(e){var t=document.createElement(e);t.className=V(this.classes);for(let r in this.style)Object.prototype.hasOwnProperty.call(this.style,r)&&(t.style[r]=this.style[r]);for(let a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&t.setAttribute(a,this.attributes[a]);for(let e=0;e`}.call(this,"span")}}let W=class{constructor(e){this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return l.escape(this.text)}};class X{constructor(e,t,r){this.alt=t,this.src=e,this.classes=["mord"],this.style=r}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(let t in this.style)Object.prototype.hasOwnProperty.call(this.style,t)&&(e.style[t]=this.style[t]);return e}toMarkup(){let e=`${this.alt}"}toText(){return this.children.map(e=>e.toText()).join("")}}class Z{constructor(e){this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return l.escape(this.toText())}toText(){return this.text}}const K=e=>{let t;return 1===e.length&&"mrow"===e[0].type?(t=e.pop()).type="mstyle":t=new i("mstyle",e),t};var N={MathNode:i,TextNode:Z,newDocumentFragment:function(e){return new H(e)}};function J(e){return e=new N.TextNode(ee[e.slice(1)]),(e=new N.MathNode("mo",[e])).setAttribute("stretchy","true"),e}const Q=e=>{let t=0;if(e.body)for(let a of e.body)t+=Q(a);else if("supsub"===e.type)t+=Q(e.base),e.sub&&(t+=.7*Q(e.sub)),e.sup&&(t+=.7*Q(e.sup));else if("mathord"===e.type||"textord"===e.type)for(let n of e.text.split("")){var r=n.codePointAt(0);t+=96{var t=J(e.label);return te.includes(e.label)&&(1<(e=Q(e.base))&&e<1.6?t.classes.push("tml-crooked-2"):1.6<=e&&e<2.5?t.classes.push("tml-crooked-3"):2.5<=e&&t.classes.push("tml-crooked-4")),t};const ne={bin:1,close:1,inner:1,open:1,punct:1,rel:1},oe={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},m={math:{},text:{}};function t(e,t,r,a,n){m[e][a]={group:t,replace:r},n&&r&&(m[e][r]=m[e][a])}var a="math",n="text",e="accent-token",o="bin",s="close",c="inner",u="mathord",p="op-token",h="open",g="punct",b="rel",f="spacing",Y="textord";t(a,b,"\u2261","\\equiv",!0),t(a,b,"\u227a","\\prec",!0),t(a,b,"\u227b","\\succ",!0),t(a,b,"\u223c","\\sim",!0),t(a,b,"\u27c2","\\perp",!0),t(a,b,"\u2aaf","\\preceq",!0),t(a,b,"\u2ab0","\\succeq",!0),t(a,b,"\u2243","\\simeq",!0),t(a,b,"\u224c","\\backcong",!0),t(a,b,"|","\\mid",!0),t(a,b,"\u226a","\\ll",!0),t(a,b,"\u226b","\\gg",!0),t(a,b,"\u224d","\\asymp",!0),t(a,b,"\u2225","\\parallel"),t(a,b,"\u2323","\\smile",!0),t(a,b,"\u2291","\\sqsubseteq",!0),t(a,b,"\u2292","\\sqsupseteq",!0),t(a,b,"\u2250","\\doteq",!0),t(a,b,"\u2322","\\frown",!0),t(a,b,"\u220b","\\ni",!0),t(a,b,"\u220c","\\notni",!0),t(a,b,"\u221d","\\propto",!0),t(a,b,"\u22a2","\\vdash",!0),t(a,b,"\u22a3","\\dashv",!0),t(a,b,"\u220b","\\owns"),t(a,b,"\u2258","\\arceq",!0),t(a,b,"\u2259","\\wedgeq",!0),t(a,b,"\u225a","\\veeeq",!0),t(a,b,"\u225b","\\stareq",!0),t(a,b,"\u225d","\\eqdef",!0),t(a,b,"\u225e","\\measeq",!0),t(a,b,"\u225f","\\questeq",!0),t(a,b,"\u2260","\\ne",!0),t(a,b,"\u2260","\\neq"),t(a,b,"\u2a75","\\eqeq",!0),t(a,b,"\u2a76","\\eqeqeq",!0),t(a,b,"\u2237","\\dblcolon",!0),t(a,b,"\u2254","\\coloneqq",!0),t(a,b,"\u2255","\\eqqcolon",!0),t(a,b,"\u2239","\\eqcolon",!0),t(a,b,"\u2A74","\\Coloneqq",!0),t(a,g,"\u002e","\\ldotp"),t(a,g,"\u00b7","\\cdotp"),t(a,Y,"\u0023","\\#"),t(n,Y,"\u0023","\\#"),t(a,Y,"\u0026","\\&"),t(n,Y,"\u0026","\\&"),t(a,Y,"\u2135","\\aleph",!0),t(a,Y,"\u2200","\\forall",!0),t(a,Y,"\u210f","\\hbar",!0),t(a,Y,"\u2203","\\exists",!0),t(a,o,"\u2207","\\nabla",!0),t(a,Y,"\u266d","\\flat",!0),t(a,Y,"\u2113","\\ell",!0),t(a,Y,"\u266e","\\natural",!0),t(a,Y,"Å","\\Angstrom",!0),t(n,Y,"Å","\\Angstrom",!0),t(a,Y,"\u2663","\\clubsuit",!0),t(a,Y,"\u2667","\\varclubsuit",!0),t(a,Y,"\u2118","\\wp",!0),t(a,Y,"\u266f","\\sharp",!0),t(a,Y,"\u2662","\\diamondsuit",!0),t(a,Y,"\u2666","\\vardiamondsuit",!0),t(a,Y,"\u211c","\\Re",!0),t(a,Y,"\u2661","\\heartsuit",!0),t(a,Y,"\u2665","\\varheartsuit",!0),t(a,Y,"\u2111","\\Im",!0),t(a,Y,"\u2660","\\spadesuit",!0), - t(a,Y,"\u2664","\\varspadesuit",!0),t(a,Y,"\u2640","\\female",!0),t(a,Y,"\u2642","\\male",!0),t(a,Y,"\u00a7","\\S",!0),t(n,Y,"\u00a7","\\S"),t(a,Y,"\u00b6","\\P",!0),t(n,Y,"\u00b6","\\P"),t(n,Y,"\u263a","\\smiley",!0),t(a,Y,"\u263a","\\smiley",!0),t(a,Y,"\u2020","\\dag"),t(n,Y,"\u2020","\\dag"),t(n,Y,"\u2020","\\textdagger"),t(a,Y,"\u2021","\\ddag"),t(n,Y,"\u2021","\\ddag"),t(n,Y,"\u2021","\\textdaggerdbl"),t(a,s,"\u23b1","\\rmoustache",!0),t(a,h,"\u23b0","\\lmoustache",!0),t(a,s,"\u27ef","\\rgroup",!0),t(a,h,"\u27ee","\\lgroup",!0),t(a,o,"\u2213","\\mp",!0),t(a,o,"\u2296","\\ominus",!0),t(a,o,"\u228e","\\uplus",!0),t(a,o,"\u2293","\\sqcap",!0),t(a,o,"\u2217","\\ast"),t(a,o,"\u2294","\\sqcup",!0),t(a,o,"\u25ef","\\bigcirc",!0),t(a,o,"\u2219","\\bullet",!0),t(a,o,"\u2021","\\ddagger"),t(a,o,"\u2240","\\wr",!0),t(a,o,"\u2a3f","\\amalg"),t(a,o,"\u0026","\\And"),t(a,o,"\u2AFD","\\sslash",!0),t(a,b,"\u27f5","\\longleftarrow",!0),t(a,b,"\u21d0","\\Leftarrow",!0),t(a,b,"\u27f8","\\Longleftarrow",!0),t(a,b,"\u27f6","\\longrightarrow",!0),t(a,b,"\u21d2","\\Rightarrow",!0),t(a,b,"\u27f9","\\Longrightarrow",!0),t(a,b,"\u2194","\\leftrightarrow",!0),t(a,b,"\u27f7","\\longleftrightarrow",!0),t(a,b,"\u21d4","\\Leftrightarrow",!0),t(a,b,"\u27fa","\\Longleftrightarrow",!0),t(a,b,"\u21a4","\\mapsfrom",!0),t(a,b,"\u21a6","\\mapsto",!0),t(a,b,"\u27fc","\\longmapsto",!0),t(a,b,"\u2197","\\nearrow",!0),t(a,b,"\u21a9","\\hookleftarrow",!0),t(a,b,"\u21aa","\\hookrightarrow",!0),t(a,b,"\u2198","\\searrow",!0),t(a,b,"\u21bc","\\leftharpoonup",!0),t(a,b,"\u21c0","\\rightharpoonup",!0),t(a,b,"\u2199","\\swarrow",!0),t(a,b,"\u21bd","\\leftharpoondown",!0),t(a,b,"\u21c1","\\rightharpoondown",!0),t(a,b,"\u2196","\\nwarrow",!0),t(a,b,"\u21cc","\\rightleftharpoons",!0),t(a,u,"\u21af","\\lightning",!0),t(a,u,"\u220E","\\QED",!0),t(a,u,"\u2030","\\permil",!0),t(n,Y,"\u2030","\\permil"),t(a,u,"\u2609","\\astrosun",!0),t(a,u,"\u263c","\\sun",!0),t(a,u,"\u263e","\\leftmoon",!0),t(a,u,"\u263d","\\rightmoon",!0),t(a,u,"\u2295","\\Earth"),t(a,b,"\u226e","\\nless",!0),t(a,b,"\u2a87","\\lneq",!0),t(a,b,"\u2268","\\lneqq",!0),t(a,b,"\u2268\ufe00","\\lvertneqq"),t(a,b,"\u22e6","\\lnsim",!0),t(a,b,"\u2a89","\\lnapprox",!0),t(a,b,"\u2280","\\nprec",!0),t(a,b,"\u22e0","\\npreceq",!0),t(a,b,"\u22e8","\\precnsim",!0),t(a,b,"\u2ab9","\\precnapprox",!0),t(a,b,"\u2241","\\nsim",!0),t(a,b,"\u2224","\\nmid",!0),t(a,b,"\u2224","\\nshortmid"),t(a,b,"\u22ac","\\nvdash",!0),t(a,b,"\u22ad","\\nvDash",!0),t(a,b,"\u22ea","\\ntriangleleft"),t(a,b,"\u22ec","\\ntrianglelefteq",!0),t(a,b,"\u2284","\\nsubset",!0),t(a,b,"\u2285","\\nsupset",!0),t(a,b,"\u228a","\\subsetneq",!0),t(a,b,"\u228a\ufe00","\\varsubsetneq"),t(a,b,"\u2acb","\\subsetneqq",!0),t(a,b,"\u2acb\ufe00","\\varsubsetneqq"),t(a,b,"\u226f","\\ngtr",!0),t(a,b,"\u2a88","\\gneq",!0),t(a,b,"\u2269","\\gneqq",!0),t(a,b,"\u2269\ufe00","\\gvertneqq"),t(a,b,"\u22e7","\\gnsim",!0),t(a,b,"\u2a8a","\\gnapprox",!0),t(a,b,"\u2281","\\nsucc",!0),t(a,b,"\u22e1","\\nsucceq",!0),t(a,b,"\u22e9","\\succnsim",!0),t(a,b,"\u2aba","\\succnapprox",!0),t(a,b,"\u2246","\\ncong",!0),t(a,b,"\u2226","\\nparallel",!0),t(a,b,"\u2226","\\nshortparallel"),t(a,b,"\u22af","\\nVDash",!0),t(a,b,"\u22eb","\\ntriangleright"),t(a,b,"\u22ed","\\ntrianglerighteq",!0),t(a,b,"\u228b","\\supsetneq",!0),t(a,b,"\u228b","\\varsupsetneq"),t(a,b,"\u2acc","\\supsetneqq",!0),t(a,b,"\u2acc\ufe00","\\varsupsetneqq"),t(a,b,"\u22ae","\\nVdash",!0),t(a,b,"\u2ab5","\\precneqq",!0),t(a,b,"\u2ab6","\\succneqq",!0),t(a,o,"\u22b4","\\unlhd"),t(a,o,"\u22b5","\\unrhd"),t(a,b,"\u219a","\\nleftarrow",!0),t(a,b,"\u219b","\\nrightarrow",!0),t(a,b,"\u21cd","\\nLeftarrow",!0),t(a,b,"\u21cf","\\nRightarrow",!0),t(a,b,"\u21ae","\\nleftrightarrow",!0),t(a,b,"\u21ce","\\nLeftrightarrow",!0),t(a,b,"\u25b3","\\vartriangle"),t(a,Y,"\u210f","\\hslash"),t(a,Y,"\u25bd","\\triangledown"),t(a,Y,"\u25ca","\\lozenge"),t(a,Y,"\u24c8","\\circledS"),t(a,Y,"\u00ae","\\circledR",!0),t(n,Y,"\u00ae","\\circledR"),t(n,Y,"\u00ae","\\textregistered"),t(a,Y,"\u2221","\\measuredangle",!0),t(a,Y,"\u2204","\\nexists"),t(a,Y,"\u2127","\\mho"),t(a,Y,"\u2132","\\Finv",!0),t(a,Y,"\u2141","\\Game",!0),t(a,Y,"\u2035","\\backprime"),t(a,Y,"\u2036","\\backdprime"),t(a,Y,"\u2037","\\backtrprime"),t(a,Y,"\u25b2","\\blacktriangle"),t(a,Y,"\u25bc","\\blacktriangledown"),t(a,Y,"\u25a0","\\blacksquare"),t(a,Y,"\u29eb","\\blacklozenge"),t(a,Y,"\u2605","\\bigstar"),t(a,Y,"\u2222","\\sphericalangle",!0),t(a,Y,"\u2201","\\complement",!0),t(a,Y,"\u00f0","\\eth",!0),t(n,Y,"\u00f0","\u00f0"),t(a,Y,"\u2571","\\diagup"),t(a,Y,"\u2572","\\diagdown"),t(a,Y,"\u25a1","\\square"),t(a,Y,"\u25a1","\\Box"),t(a,Y,"\u25ca","\\Diamond"),t(a,Y,"\u00a5","\\yen",!0),t(n,Y,"\u00a5","\\yen",!0),t(a,Y,"\u2713","\\checkmark",!0),t(n,Y,"\u2713","\\checkmark"),t(a,Y,"\u2717","\\ballotx",!0),t(n,Y,"\u2717","\\ballotx"),t(n,Y,"\u2022","\\textbullet"),t(a,Y,"\u2136","\\beth",!0),t(a,Y,"\u2138","\\daleth",!0),t(a,Y,"\u2137","\\gimel",!0),t(a,Y,"\u03dd","\\digamma",!0),t(a,Y,"\u03f0","\\varkappa"),t(a,h,"\u231C","\\ulcorner",!0),t(a,s,"\u231D","\\urcorner",!0),t(a,h,"\u231E","\\llcorner",!0),t(a,s,"\u231F","\\lrcorner",!0),t(a,b,"\u2266","\\leqq",!0),t(a,b,"\u2a7d","\\leqslant",!0),t(a,b,"\u2a95","\\eqslantless",!0),t(a,b,"\u2272","\\lesssim",!0),t(a,b,"\u2a85","\\lessapprox",!0),t(a,b,"\u224a","\\approxeq",!0),t(a,o,"\u22d6","\\lessdot"),t(a,b,"\u22d8","\\lll",!0),t(a,b,"\u2276","\\lessgtr",!0),t(a,b,"\u22da","\\lesseqgtr",!0),t(a,b,"\u2a8b","\\lesseqqgtr",!0),t(a,b,"\u2251","\\doteqdot"),t(a,b,"\u2253","\\risingdotseq",!0),t(a,b,"\u2252","\\fallingdotseq",!0),t(a,b,"\u223d","\\backsim",!0),t(a,b,"\u22cd","\\backsimeq",!0),t(a,b,"\u2ac5","\\subseteqq",!0),t(a,b,"\u22d0","\\Subset",!0),t(a,b,"\u228f","\\sqsubset",!0),t(a,b,"\u227c","\\preccurlyeq",!0),t(a,b,"\u22de","\\curlyeqprec",!0),t(a,b,"\u227e","\\precsim",!0),t(a,b,"\u2ab7","\\precapprox",!0),t(a,b,"\u22b2","\\vartriangleleft"),t(a,b,"\u22b4","\\trianglelefteq"),t(a,b,"\u22a8","\\vDash",!0),t(a,b,"\u22ab","\\VDash",!0),t(a,b,"\u22aa","\\Vvdash",!0),t(a,b,"\u2323","\\smallsmile"),t(a,b,"\u2322","\\smallfrown"),t(a,b,"\u224f","\\bumpeq",!0),t(a,b,"\u224e","\\Bumpeq",!0),t(a,b,"\u2267","\\geqq",!0),t(a,b,"\u2a7e","\\geqslant",!0),t(a,b,"\u2a96","\\eqslantgtr",!0),t(a,b,"\u2273","\\gtrsim",!0),t(a,b,"\u2a86","\\gtrapprox",!0),t(a,o,"\u22d7","\\gtrdot"),t(a,b,"\u22d9","\\ggg",!0),t(a,b,"\u2277","\\gtrless",!0),t(a,b,"\u22db","\\gtreqless",!0),t(a,b,"\u2a8c","\\gtreqqless",!0),t(a,b,"\u2256","\\eqcirc",!0),t(a,b,"\u2257","\\circeq",!0),t(a,b,"\u225c","\\triangleq",!0),t(a,b,"\u223c","\\thicksim"),t(a,b,"\u2248","\\thickapprox"),t(a,b,"\u2ac6","\\supseteqq",!0),t(a,b,"\u22d1","\\Supset",!0),t(a,b,"\u2290","\\sqsupset",!0),t(a,b,"\u227d","\\succcurlyeq",!0),t(a,b,"\u22df","\\curlyeqsucc",!0),t(a,b,"\u227f","\\succsim",!0),t(a,b,"\u2ab8","\\succapprox",!0),t(a,b,"\u22b3","\\vartriangleright"),t(a,b,"\u22b5","\\trianglerighteq"),t(a,b,"\u22a9","\\Vdash",!0),t(a,b,"\u2223","\\shortmid"),t(a,b,"\u2225","\\shortparallel"),t(a,b,"\u226c","\\between",!0),t(a,b,"\u22d4","\\pitchfork",!0),t(a,b,"\u221d","\\varpropto"),t(a,b,"\u25c0","\\blacktriangleleft"),t(a,b,"\u2234","\\therefore",!0),t(a,b,"\u220d","\\backepsilon"),t(a,b,"\u25b6","\\blacktriangleright"),t(a,b,"\u2235","\\because",!0),t(a,b,"\u22d8","\\llless"),t(a,b,"\u22d9","\\gggtr"),t(a,o,"\u22b2","\\lhd"),t(a,o,"\u22b3","\\rhd"),t(a,b,"\u2242","\\eqsim",!0),t(a,b,"\u2251","\\Doteq",!0),t(a,b,"\u297d","\\strictif",!0),t(a,b,"\u297c","\\strictfi",!0),t(a,o,"\u2214","\\dotplus",!0),t(a,o,"\u2216","\\smallsetminus"),t(a,o,"\u22d2","\\Cap",!0),t(a,o,"\u22d3","\\Cup",!0),t(a,o,"\u2a5e","\\doublebarwedge",!0),t(a,o,"\u229f","\\boxminus",!0),t(a,o,"\u229e","\\boxplus",!0),t(a,o,"\u29C4","\\boxslash",!0),t(a,o,"\u22c7","\\divideontimes",!0),t(a,o,"\u22c9","\\ltimes",!0),t(a,o,"\u22ca","\\rtimes",!0),t(a,o,"\u22cb","\\leftthreetimes",!0),t(a,o,"\u22cc","\\rightthreetimes",!0),t(a,o,"\u22cf","\\curlywedge",!0),t(a,o,"\u22ce","\\curlyvee",!0),t(a,o,"\u229d","\\circleddash",!0),t(a,o,"\u229b","\\circledast",!0),t(a,o,"\u22ba","\\intercal",!0),t(a,o,"\u22d2","\\doublecap"),t(a,o,"\u22d3","\\doublecup"),t(a,o,"\u22a0","\\boxtimes",!0),t(a,o,"\u22c8","\\bowtie",!0),t(a,o,"\u22c8","\\Join"),t(a,o,"\u27d5","\\leftouterjoin",!0),t(a,o,"\u27d6","\\rightouterjoin",!0),t(a,o,"\u27d7","\\fullouterjoin",!0),t(a,o,"\u2238","\\dotminus",!0),t(a,o,"\u27D1","\\wedgedot",!0),t(a,o,"\u27C7","\\veedot",!0),t(a,o,"\u2A62","\\doublebarvee",!0),t(a,o,"\u2A63","\\veedoublebar",!0),t(a,o,"\u2A5F","\\wedgebar",!0),t(a,o,"\u2A60","\\wedgedoublebar",!0),t(a,o,"\u2A54","\\Vee",!0),t(a,o,"\u2A53","\\Wedge",!0),t(a,o,"\u2A43","\\barcap",!0),t(a,o,"\u2A42","\\barcup",!0),t(a,o,"\u2A48","\\capbarcup",!0),t(a,o,"\u2A40","\\capdot",!0),t(a,o,"\u2A47","\\capovercup",!0),t(a,o,"\u2A46","\\cupovercap",!0),t(a,o,"\u2A4D","\\closedvarcap",!0),t(a,o,"\u2A4C","\\closedvarcup",!0),t(a,o,"\u2A2A","\\minusdot",!0),t(a,o,"\u2A2B","\\minusfdots",!0),t(a,o,"\u2A2C","\\minusrdots",!0),t(a,o,"\u22BB","\\Xor",!0),t(a,o,"\u22BC","\\Nand",!0),t(a,o,"\u22BD","\\Nor",!0),t(a,o,"\u22BD","\\barvee"),t(a,o,"\u2AF4","\\interleave",!0),t(a,o,"\u29E2","\\shuffle",!0),t(a,o,"\u2AF6","\\threedotcolon",!0),t(a,o,"\u2982","\\typecolon",!0),t(a,o,"\u223E","\\invlazys",!0),t(a,o,"\u2A4B","\\twocaps",!0),t(a,o,"\u2A4A","\\twocups",!0),t(a,o,"\u2A4E","\\Sqcap",!0),t(a,o,"\u2A4F","\\Sqcup",!0),t(a,o,"\u2A56","\\veeonvee",!0),t(a,o,"\u2A55","\\wedgeonwedge",!0),t(a,o,"\u29D7","\\blackhourglass",!0),t(a,o,"\u29C6","\\boxast",!0),t(a,o,"\u29C8","\\boxbox",!0),t(a,o,"\u29C7","\\boxcircle",!0),t(a,o,"\u229C","\\circledequal",!0),t(a,o,"\u29B7","\\circledparallel",!0),t(a,o,"\u29B6","\\circledvert",!0),t(a,o,"\u29B5","\\circlehbar",!0),t(a,o,"\u27E1","\\concavediamond",!0),t(a,o,"\u27E2","\\concavediamondtickleft",!0),t(a,o,"\u27E3","\\concavediamondtickright",!0),t(a,o,"\u22C4","\\diamond",!0),t(a,o,"\u29D6","\\hourglass",!0),t(a,o,"\u27E0","\\lozengeminus",!0),t(a,o,"\u233D","\\obar",!0),t(a,o,"\u29B8","\\obslash",!0),t(a,o,"\u2A38","\\odiv",!0),t(a,o,"\u29C1","\\ogreaterthan",!0),t(a,o,"\u29C0","\\olessthan",!0),t(a,o,"\u29B9","\\operp",!0),t(a,o,"\u2A37","\\Otimes",!0),t(a,o,"\u2A36","\\otimeshat",!0),t(a,o,"\u22C6","\\star",!0),t(a,o,"\u25B3","\\triangle",!0),t(a,o,"\u2A3A","\\triangleminus",!0),t(a,o,"\u2A39","\\triangleplus",!0),t(a,o,"\u2A3B","\\triangletimes",!0),t(a,o,"\u27E4","\\whitesquaretickleft",!0),t(a,o,"\u27E5","\\whitesquaretickright",!0), - t(a,o,"\u2A33","\\smashtimes",!0),t(a,b,"\u21e2","\\dashrightarrow",!0),t(a,b,"\u21e0","\\dashleftarrow",!0),t(a,b,"\u21c7","\\leftleftarrows",!0),t(a,b,"\u21c6","\\leftrightarrows",!0),t(a,b,"\u21da","\\Lleftarrow",!0),t(a,b,"\u219e","\\twoheadleftarrow",!0),t(a,b,"\u21a2","\\leftarrowtail",!0),t(a,b,"\u21ab","\\looparrowleft",!0),t(a,b,"\u21cb","\\leftrightharpoons",!0),t(a,b,"\u21b6","\\curvearrowleft",!0),t(a,b,"\u21ba","\\circlearrowleft",!0),t(a,b,"\u21b0","\\Lsh",!0),t(a,b,"\u21c8","\\upuparrows",!0),t(a,b,"\u21bf","\\upharpoonleft",!0),t(a,b,"\u21c3","\\downharpoonleft",!0),t(a,b,"\u22b6","\\origof",!0),t(a,b,"\u22b7","\\imageof",!0),t(a,b,"\u22b8","\\multimap",!0),t(a,b,"\u21ad","\\leftrightsquigarrow",!0),t(a,b,"\u21c9","\\rightrightarrows",!0),t(a,b,"\u21c4","\\rightleftarrows",!0),t(a,b,"\u21a0","\\twoheadrightarrow",!0),t(a,b,"\u21a3","\\rightarrowtail",!0),t(a,b,"\u21ac","\\looparrowright",!0),t(a,b,"\u21b7","\\curvearrowright",!0),t(a,b,"\u21bb","\\circlearrowright",!0),t(a,b,"\u21b1","\\Rsh",!0),t(a,b,"\u21ca","\\downdownarrows",!0),t(a,b,"\u21be","\\upharpoonright",!0),t(a,b,"\u21c2","\\downharpoonright",!0),t(a,b,"\u21dd","\\rightsquigarrow",!0),t(a,b,"\u21dd","\\leadsto"),t(a,b,"\u21db","\\Rrightarrow",!0),t(a,b,"\u21be","\\restriction"),t(a,Y,"\u2018","`"),t(a,Y,"$","\\$"),t(n,Y,"$","\\$"),t(n,Y,"$","\\textdollar"),t(a,Y,"¢","\\cent"),t(n,Y,"¢","\\cent"),t(a,Y,"%","\\%"),t(n,Y,"%","\\%"),t(a,Y,"_","\\_"),t(n,Y,"_","\\_"),t(n,Y,"_","\\textunderscore"),t(n,Y,"\u2423","\\textvisiblespace",!0),t(a,Y,"\u2220","\\angle",!0),t(a,Y,"\u221e","\\infty",!0),t(a,Y,"\u2032","\\prime"),t(a,Y,"\u2033","\\dprime"),t(a,Y,"\u2034","\\trprime"),t(a,Y,"\u2057","\\qprime"),t(a,Y,"\u25b3","\\triangle"),t(n,Y,"\u0391","\\Alpha",!0),t(n,Y,"\u0392","\\Beta",!0),t(n,Y,"\u0393","\\Gamma",!0),t(n,Y,"\u0394","\\Delta",!0),t(n,Y,"\u0395","\\Epsilon",!0),t(n,Y,"\u0396","\\Zeta",!0),t(n,Y,"\u0397","\\Eta",!0),t(n,Y,"\u0398","\\Theta",!0),t(n,Y,"\u0399","\\Iota",!0),t(n,Y,"\u039a","\\Kappa",!0),t(n,Y,"\u039b","\\Lambda",!0),t(n,Y,"\u039c","\\Mu",!0),t(n,Y,"\u039d","\\Nu",!0),t(n,Y,"\u039e","\\Xi",!0),t(n,Y,"\u039f","\\Omicron",!0),t(n,Y,"\u03a0","\\Pi",!0),t(n,Y,"\u03a1","\\Rho",!0),t(n,Y,"\u03a3","\\Sigma",!0),t(n,Y,"\u03a4","\\Tau",!0),t(n,Y,"\u03a5","\\Upsilon",!0),t(n,Y,"\u03a6","\\Phi",!0),t(n,Y,"\u03a7","\\Chi",!0),t(n,Y,"\u03a8","\\Psi",!0),t(n,Y,"\u03a9","\\Omega",!0),t(a,u,"\u0391","\\Alpha",!0),t(a,u,"\u0392","\\Beta",!0),t(a,u,"\u0393","\\Gamma",!0),t(a,u,"\u0394","\\Delta",!0),t(a,u,"\u0395","\\Epsilon",!0),t(a,u,"\u0396","\\Zeta",!0),t(a,u,"\u0397","\\Eta",!0),t(a,u,"\u0398","\\Theta",!0),t(a,u,"\u0399","\\Iota",!0),t(a,u,"\u039a","\\Kappa",!0),t(a,u,"\u039b","\\Lambda",!0),t(a,u,"\u039c","\\Mu",!0),t(a,u,"\u039d","\\Nu",!0),t(a,u,"\u039e","\\Xi",!0),t(a,u,"\u039f","\\Omicron",!0),t(a,u,"\u03a0","\\Pi",!0),t(a,u,"\u03a1","\\Rho",!0),t(a,u,"\u03a3","\\Sigma",!0),t(a,u,"\u03a4","\\Tau",!0),t(a,u,"\u03a5","\\Upsilon",!0),t(a,u,"\u03a6","\\Phi",!0),t(a,u,"\u03a7","\\Chi",!0),t(a,u,"\u03a8","\\Psi",!0),t(a,u,"\u03a9","\\Omega",!0),t(a,h,"\u00ac","\\neg",!0),t(a,h,"\u00ac","\\lnot"),t(a,Y,"\u22a4","\\top"),t(a,Y,"\u22a5","\\bot"),t(a,Y,"\u2205","\\emptyset"),t(a,Y,"\u2300","\\varnothing"),t(a,u,"\u03b1","\\alpha",!0),t(a,u,"\u03b2","\\beta",!0),t(a,u,"\u03b3","\\gamma",!0),t(a,u,"\u03b4","\\delta",!0),t(a,u,"\u03f5","\\epsilon",!0),t(a,u,"\u03b6","\\zeta",!0),t(a,u,"\u03b7","\\eta",!0),t(a,u,"\u03b8","\\theta",!0),t(a,u,"\u03b9","\\iota",!0),t(a,u,"\u03ba","\\kappa",!0),t(a,u,"\u03bb","\\lambda",!0),t(a,u,"\u03bc","\\mu",!0),t(a,u,"\u03bd","\\nu",!0),t(a,u,"\u03be","\\xi",!0),t(a,u,"\u03bf","\\omicron",!0),t(a,u,"\u03c0","\\pi",!0),t(a,u,"\u03c1","\\rho",!0),t(a,u,"\u03c3","\\sigma",!0),t(a,u,"\u03c4","\\tau",!0),t(a,u,"\u03c5","\\upsilon",!0),t(a,u,"\u03d5","\\phi",!0),t(a,u,"\u03c7","\\chi",!0),t(a,u,"\u03c8","\\psi",!0),t(a,u,"\u03c9","\\omega",!0),t(a,u,"\u03b5","\\varepsilon",!0),t(a,u,"\u03d1","\\vartheta",!0),t(a,u,"\u03d6","\\varpi",!0),t(a,u,"\u03f1","\\varrho",!0),t(a,u,"\u03c2","\\varsigma",!0),t(a,u,"\u03c6","\\varphi",!0),t(a,u,"\u03d8","\\Coppa",!0),t(a,u,"\u03d9","\\coppa",!0),t(a,u,"\u03d9","\\varcoppa",!0),t(a,u,"\u03de","\\Koppa",!0),t(a,u,"\u03df","\\koppa",!0),t(a,u,"\u03e0","\\Sampi",!0),t(a,u,"\u03e1","\\sampi",!0),t(a,u,"\u03da","\\Stigma",!0),t(a,u,"\u03db","\\stigma",!0),t(a,u,"\u2aeb","\\Bot"),t(a,o,"\u2217","\u2217",!0),t(a,o,"+","+"),t(a,o,"*","*"),t(a,o,"\u2044","/",!0),t(a,o,"\u2044","\u2044"),t(a,o,"\u2212","-",!0),t(a,o,"\u22c5","\\cdot",!0),t(a,o,"\u2218","\\circ",!0),t(a,o,"\u00f7","\\div",!0),t(a,o,"\u00b1","\\pm",!0),t(a,o,"\u00d7","\\times",!0),t(a,o,"\u2229","\\cap",!0),t(a,o,"\u222a","\\cup",!0),t(a,o,"\u2216","\\setminus",!0),t(a,o,"\u2227","\\land"),t(a,o,"\u2228","\\lor"),t(a,o,"\u2227","\\wedge",!0),t(a,o,"\u2228","\\vee",!0),t(a,h,"\u27e6","\\llbracket",!0),t(a,s,"\u27e7","\\rrbracket",!0),t(a,h,"\u27e8","\\langle",!0),t(a,h,"\u27ea","\\lAngle",!0),t(a,h,"\u2989","\\llangle",!0),t(a,h,"|","\\lvert"),t(a,h,"\u2016","\\lVert"),t(a,Y,"!","\\oc"),t(a,Y,"?","\\wn"),t(a,Y,"\u2193","\\shpos"),t(a,Y,"\u2195","\\shift"),t(a,Y,"\u2191","\\shneg"),t(a,s,"?","?"),t(a,s,"!","!"),t(a,s,"‼","‼"),t(a,s,"\u27e9","\\rangle",!0),t(a,s,"\u27eb","\\rAngle",!0),t(a,s,"\u298a","\\rrangle",!0),t(a,s,"|","\\rvert"),t(a,s,"\u2016","\\rVert"),t(a,h,"\u2983","\\lBrace",!0),t(a,s,"\u2984","\\rBrace",!0),t(a,b,"=","\\equal",!0),t(a,b,":",":"),t(a,b,"\u2248","\\approx",!0),t(a,b,"\u2245","\\cong",!0),t(a,b,"\u2265","\\ge"),t(a,b,"\u2265","\\geq",!0),t(a,b,"\u2190","\\gets"),t(a,b,">","\\gt",!0),t(a,b,"\u2208","\\in",!0),t(a,b,"\u2209","\\notin",!0),t(a,b,"\ue020","\\@not"),t(a,b,"\u2282","\\subset",!0),t(a,b,"\u2283","\\supset",!0),t(a,b,"\u2286","\\subseteq",!0),t(a,b,"\u2287","\\supseteq",!0),t(a,b,"\u2288","\\nsubseteq",!0),t(a,b,"\u2288","\\nsubseteqq"),t(a,b,"\u2289","\\nsupseteq",!0),t(a,b,"\u2289","\\nsupseteqq"),t(a,b,"\u22a8","\\models"),t(a,b,"\u2190","\\leftarrow",!0),t(a,b,"\u2264","\\le"),t(a,b,"\u2264","\\leq",!0),t(a,b,"<","\\lt",!0),t(a,b,"\u2192","\\rightarrow",!0),t(a,b,"\u2192","\\to"),t(a,b,"\u2271","\\ngeq",!0),t(a,b,"\u2271","\\ngeqq"),t(a,b,"\u2271","\\ngeqslant"),t(a,b,"\u2270","\\nleq",!0),t(a,b,"\u2270","\\nleqq"),t(a,b,"\u2270","\\nleqslant"),t(a,b,"\u2aeb","\\Perp",!0),t(a,f,"\u00a0","\\ "),t(a,f,"\u00a0","\\space"),t(a,f,"\u00a0","\\nobreakspace"),t(n,f,"\u00a0","\\ "),t(n,f,"\u00a0"," "),t(n,f,"\u00a0","\\space"),t(n,f,"\u00a0","\\nobreakspace"),t(a,f,null,"\\nobreak"),t(a,f,null,"\\allowbreak"),t(a,g,",",","),t(n,g,":",":"),t(a,g,";",";"),t(a,o,"\u22bc","\\barwedge"),t(a,o,"\u22bb","\\veebar"),t(a,o,"\u2299","\\odot",!0),t(a,o,"\u2295\uFE0E","\\oplus"),t(a,o,"\u2297","\\otimes",!0),t(a,Y,"\u2202","\\partial",!0),t(a,o,"\u2298","\\oslash",!0),t(a,o,"\u229a","\\circledcirc",!0),t(a,o,"\u22a1","\\boxdot",!0),t(a,o,"\u25b3","\\bigtriangleup"),t(a,o,"\u25bd","\\bigtriangledown"),t(a,o,"\u2020","\\dagger"),t(a,o,"\u22c4","\\diamond"),t(a,o,"\u25c3","\\triangleleft"),t(a,o,"\u25b9","\\triangleright"),t(a,h,"{","\\{"),t(n,Y,"{","\\{"),t(n,Y,"{","\\textbraceleft"),t(a,s,"}","\\}"),t(n,Y,"}","\\}"),t(n,Y,"}","\\textbraceright"),t(a,h,"{","\\lbrace"),t(a,s,"}","\\rbrace"),t(a,h,"[","\\lbrack",!0),t(n,Y,"[","\\lbrack",!0),t(a,s,"]","\\rbrack",!0),t(n,Y,"]","\\rbrack",!0),t(a,h,"(","\\lparen",!0),t(a,s,")","\\rparen",!0),t(a,h,"⦇","\\llparenthesis",!0),t(a,s,"⦈","\\rrparenthesis",!0),t(n,Y,"<","\\textless",!0),t(n,Y,">","\\textgreater",!0),t(a,h,"\u230a","\\lfloor",!0),t(a,s,"\u230b","\\rfloor",!0),t(a,h,"\u2308","\\lceil",!0),t(a,s,"\u2309","\\rceil",!0),t(a,Y,"\\","\\backslash"),t(a,Y,"|","|"),t(a,Y,"|","\\vert"),t(n,Y,"|","\\textbar",!0),t(a,Y,"\u2016","\\|"),t(a,Y,"\u2016","\\Vert"),t(n,Y,"\u2016","\\textbardbl"),t(n,Y,"~","\\textasciitilde"),t(n,Y,"\\","\\textbackslash"),t(n,Y,"^","\\textasciicircum"),t(a,b,"\u2191","\\uparrow",!0),t(a,b,"\u21d1","\\Uparrow",!0),t(a,b,"\u2193","\\downarrow",!0),t(a,b,"\u21d3","\\Downarrow",!0),t(a,b,"\u2195","\\updownarrow",!0),t(a,b,"\u21d5","\\Updownarrow",!0),t(a,p,"\u2210","\\coprod"),t(a,p,"\u22c1","\\bigvee"),t(a,p,"\u22c0","\\bigwedge"),t(a,p,"\u2a04","\\biguplus"),t(a,p,"\u2a04","\\bigcupplus"),t(a,p,"\u2a03","\\bigcupdot"),t(a,p,"\u2a07","\\bigdoublevee"),t(a,p,"\u2a08","\\bigdoublewedge"),t(a,p,"\u22c2","\\bigcap"),t(a,p,"\u22c3","\\bigcup"),t(a,p,"\u222b","\\int"),t(a,p,"\u222b","\\intop"),t(a,p,"\u222c","\\iint"),t(a,p,"\u222d","\\iiint"),t(a,p,"\u220f","\\prod"),t(a,p,"\u2211","\\sum"),t(a,p,"\u2a02","\\bigotimes"),t(a,p,"\u2a01","\\bigoplus"),t(a,p,"\u2a00","\\bigodot"),t(a,p,"\u2a09","\\bigtimes"),t(a,p,"\u222e","\\oint"),t(a,p,"\u222f","\\oiint"),t(a,p,"\u2230","\\oiiint"),t(a,p,"\u2231","\\intclockwise"),t(a,p,"\u2232","\\varointclockwise"),t(a,p,"\u2a0c","\\iiiint"),t(a,p,"\u2a0d","\\intbar"),t(a,p,"\u2a0e","\\intBar"),t(a,p,"\u2a0f","\\fint"),t(a,p,"\u2a12","\\rppolint"),t(a,p,"\u2a13","\\scpolint"),t(a,p,"\u2a15","\\pointint"),t(a,p,"\u2a16","\\sqint"),t(a,p,"\u2a17","\\intlarhk"),t(a,p,"\u2a18","\\intx"),t(a,p,"\u2a19","\\intcap"),t(a,p,"\u2a1a","\\intcup"),t(a,p,"\u2a05","\\bigsqcap"),t(a,p,"\u2a06","\\bigsqcup"),t(a,p,"\u222b","\\smallint"),t(n,c,"\u2026","\\textellipsis"),t(a,c,"\u2026","\\mathellipsis"),t(n,c,"\u2026","\\ldots",!0),t(a,c,"\u2026","\\ldots",!0),t(a,c,"\u22f0","\\iddots",!0),t(a,c,"\u22ef","\\@cdots",!0),t(a,c,"\u22f1","\\ddots",!0),t(a,Y,"\u22ee","\\varvdots"),t(n,Y,"\u22ee","\\textvdots"),t(a,e,"\u02ca","\\acute"),t(a,e,"\u0060","\\grave"),t(a,e,"\u00a8","\\ddot"),t(a,e,"\u2026","\\dddot"),t(a,e,"\u2026\u002e","\\ddddot"),t(a,e,"\u007e","\\tilde"),t(a,e,"\u203e","\\bar"),t(a,e,"\u02d8","\\breve"),t(a,e,"\u02c7","\\check"),t(a,e,"\u005e","\\hat"),t(a,e,"\u2192","\\vec"),t(a,e,"\u02d9","\\dot"),t(a,e,"\u02da","\\mathring"),t(a,u,"\u0131","\\imath",!0),t(a,u,"\u0237","\\jmath",!0),t(a,Y,"\u0131","\u0131"),t(a,Y,"\u0237","\u0237"),t(n,Y,"\u0131","\\i",!0),t(n,Y,"\u0237","\\j",!0),t(n,Y,"\u00df","\\ss",!0),t(n,Y,"\u00e6","\\ae",!0),t(n,Y,"\u0153","\\oe",!0),t(n,Y,"\u00f8","\\o",!0),t(a,u,"\u00f8","\\o",!0),t(n,Y,"\u00c6","\\AE",!0),t(n,Y,"\u0152","\\OE",!0),t(n,Y,"\u00d8","\\O",!0),t(a,u,"\u00d8","\\O",!0),t(n,e,"\u02ca","\\'"),t(n,e,"\u02cb","\\`"),t(n,e,"\u02c6","\\^"),t(n,e,"\u02dc","\\~"),t(n,e,"\u02c9","\\="),t(n,e,"\u02d8","\\u"),t(n,e,"\u02d9","\\."),t(n,e,"\u00b8","\\c"),t(n,e,"\u02da","\\r"),t(n,e,"\u02c7","\\v"),t(n,e,"\u00a8",'\\"'),t(n,e,"\u02dd","\\H"),t(a,e,"\u02ca","\\'"),t(a,e,"\u02cb","\\`"),t(a,e,"\u02c6","\\^"), - t(a,e,"\u02dc","\\~"),t(a,e,"\u02c9","\\="),t(a,e,"\u02d8","\\u"),t(a,e,"\u02d9","\\."),t(a,e,"\u00b8","\\c"),t(a,e,"\u02da","\\r"),t(a,e,"\u02c7","\\v"),t(a,e,"\u00a8",'\\"'),t(a,e,"\u02dd","\\H");const se={"--":!0,"---":!0,"``":!0,"''":!0};t(n,Y,"\u2013","--",!0),t(n,Y,"\u2013","\\textendash"),t(n,Y,"\u2014","---",!0),t(n,Y,"\u2014","\\textemdash"),t(n,Y,"\u2018","`",!0),t(n,Y,"\u2018","\\textquoteleft"),t(n,Y,"\u2019","'",!0),t(n,Y,"\u2019","\\textquoteright"),t(n,Y,"\u201c","``",!0),t(n,Y,"\u201c","\\textquotedblleft"),t(n,Y,"\u201d","''",!0),t(n,Y,"\u201d","\\textquotedblright"),t(a,Y,"\u00b0","\\degree",!0),t(n,Y,"\u00b0","\\degree"),t(n,Y,"\u00b0","\\textdegree",!0),t(a,Y,"\u00a3","\\pounds"),t(a,Y,"\u00a3","\\mathsterling",!0),t(n,Y,"\u00a3","\\pounds"),t(n,Y,"\u00a3","\\textsterling",!0),t(a,Y,"\u2720","\\maltese"),t(n,Y,"\u2720","\\maltese"),t(a,Y,"\u20ac","\\euro",!0),t(n,Y,"\u20ac","\\euro",!0),t(n,Y,"\u20ac","\\texteuro"),t(a,Y,"\u00a9","\\copyright",!0),t(n,Y,"\u00a9","\\textcopyright"),t(a,Y,"\u2300","\\diameter",!0),t(n,Y,"\u2300","\\diameter"),t(a,Y,"𝛤","\\varGamma"),t(a,Y,"𝛥","\\varDelta"),t(a,Y,"𝛩","\\varTheta"),t(a,Y,"𝛬","\\varLambda"),t(a,Y,"𝛯","\\varXi"),t(a,Y,"𝛱","\\varPi"),t(a,Y,"𝛴","\\varSigma"),t(a,Y,"𝛶","\\varUpsilon"),t(a,Y,"𝛷","\\varPhi"),t(a,Y,"𝛹","\\varPsi"),t(a,Y,"𝛺","\\varOmega"),t(n,Y,"𝛤","\\varGamma"),t(n,Y,"𝛥","\\varDelta"),t(n,Y,"𝛩","\\varTheta"),t(n,Y,"𝛬","\\varLambda"),t(n,Y,"𝛯","\\varXi"),t(n,Y,"𝛱","\\varPi"),t(n,Y,"𝛴","\\varSigma"),t(n,Y,"𝛶","\\varUpsilon"),t(n,Y,"𝛷","\\varPhi"),t(n,Y,"𝛹","\\varPsi"),t(n,Y,"𝛺","\\varOmega");var le='0123456789/@."';for(let e=0;e{var r;0===e.children.length||"mtext"!==e.children[e.children.length-1].type?(r=new N.MathNode("mtext",[new N.TextNode(t.children[0].text)]),e.children.push(r)):e.children[e.children.length-1].children[0].text+=t.children[0].text},xe=t=>{if("mrow"!==t.type&&"mstyle"!==t.type)return t;if(0===t.children.length)return t;var r=new N.MathNode("mrow");for(let e=0;e("textord"===e.type&&"."===e.text||"atom"===e.type&&","===e.text)&&e.loc&&t.loc&&e.loc.end===t.loc.start,ve=r=>{if(!(r.length<2)){var e,a=[];let t=!1;for(let e=0;ea[t].start+1&&"supsub"===(e=r[a[t].start+1]).type&&e.base&&"textord"===e.base.type&&ye.test(e.base.text)&&(e.base.text=r[a[t].start].text+e.base.text,r.splice(a[t].start,1))}}},ke=e=>"atom"===e.type&&"rel"===e.family||"mclass"===e.type&&"mrel"===e.mclass,w=function(t,r,e=!1){if(!e&&1===t.length)return(e=q(t[0],r))instanceof i&&"mo"===e.type&&(e.setAttribute("lspace","0em"),e.setAttribute("rspace","0em")),[e];ve(t);var a=[];for(let e=0;enew N.MathNode("mtd",[],[],{padding:"0",width:"50%"}),Te=(e,t,r,a)=>{t=S(t[0].body,r),(t=xe(t)).classes.push("tml-tag"),e=new N.MathNode("mtd",[e]);r=[Ae(),e,Ae()],r[a?0:2].classes.push(a?"tml-left":"tml-right"),r[a?0:2].children.push(t),e=new N.MathNode("mtr",r,["tml-tageqn"]),a=new N.MathNode("mtable",[e]);return a.style.width="100%",a.setAttribute("displaystyle","true"),a};function Ne(e,t,r,a){let n=null;1===e.length&&"tag"===e[0].type&&(n=e[0].tag,e=e[0].body);var e=w(e,r),o=a.displayMode||a.annotate?"none":a.wrap,s=0===e.length?null:e[0];let l=1===e.length&&null===n&&s instanceof i?e[0]:function(r,e,t){var a,n=[];let o=[],s=[],l=0,i=0,d=0;for(;i{var r=t.isStretchy?ae(t):new N.MathNode("mo",[y(t.label,t.mode)]);if("\\vec"===t.label)r.style.transform="scale(0.75) translate(10%, 30%)";else if(r.style.mathStyle="normal",r.style.mathDepth="0",Me.has(t.label)&&l.isCharacterBox(t.base)){let e="";var a=t.base.text;(-1t.maxSize[1]?{number:t.maxSize[1],unit:"pt"}:{number:r,unit:a};case"em":case"ex":return"ex"===a&&(r*=.431),r=Math.min(r/Ie(t.level),t.maxSize[0]),{number:l.round(r),unit:"em"};case"bp":return{number:r=r>t.maxSize[1]?t.maxSize[1]:r,unit:"pt"};case"pt":case"pc":case"dd":case"cc":case"nd":case"nc":case"sp":return r=Math.min(r*De[a],t.maxSize[1]),{number:l.round(r),unit:"pt"};case"mu":return r=Math.min(r/18,t.maxSize[0]),{number:l.round(r),unit:"em"};default:throw new P("Invalid unit: '"+a+"'")}}const Ce=new Set(["\\acute","\\grave","\\ddot","\\dddot","\\ddddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"]),Me=new Set(["\\acute","\\bar","\\breve","\\check","\\dot","\\ddot","\\grave","\\hat","\\mathring","\\'","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v"]), - Ee={"\\`":"\u0300","\\'":"\u0301","\\^":"\u0302","\\~":"\u0303","\\=":"\u0304","\\u":"\u0306","\\.":"\u0307",'\\"':"\u0308","\\r":"\u030A","\\H":"\u030B","\\v":"\u030C"},De=(r({type:"accent",names:["\\acute","\\grave","\\ddot","\\dddot","\\ddddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\overparen","\\widecheck","\\widehat","\\wideparen","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var t=U(t[0]),r=!Ce.has(e.funcName);return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,base:t}},mathmlBuilder:f}),r({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\c","\\u","\\.",'\\"',"\\r","\\H","\\v"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]}, handler:(e,t)=>{var t=U(t[0]),r=e.parser.mode; return"math"===r&&e.parser.settings.strict&&console.log(`Temml parse error: Command ${e.funcName} is invalid in math mode.`),"text"===r&&t.text&&1===t.text.length&&e.funcName in Ee&&-1{r=r[0];return{type:"accentUnder",mode:e.mode,label:t,base:r}},mathmlBuilder:(e,t)=>{var r=ae(e),e=(r.style["math-depth"]=0,new N.MathNode("munder",[q(e.base,t),r]));return e}}),{pt:800/803,pc:9600/803,dd:1238/1157*800/803,cc:12.792133216944668,nd:685/642*800/803,nc:1370/107*800/803,sp:1/65536*800/803,mm:25.4/72,cm:2.54/72,in:1/72,px:96/72}),Fe=["em","ex","mu","pt","mm","cm","in","px","bp","pc","dd","cc","nd","nc","sp"],Ie=e=>{return[1,.7,.5][Math.max(e-1,0)]},v=e=>{var t=new N.MathNode("mspace");return t.setAttribute("width",e+"em"),t},ze=(e,t=.3,r=0)=>{return null==e&&0===r?v(t):(e=e?[e]:[],0!==t&&e.unshift(v(t)),0Number(e)/Ie(t),$e=(e,t,r,a)=>{var n=re(e),o="eq"===e.slice(1,3),e="x"===e.charAt(1)?"1.75":"cd"===e.slice(2,4)?"3.0":o?"1.0":"2.0",a=(n.setAttribute("lspace","0"),n.setAttribute("rspace",o?"0.5em":"0"),a.withLevel(a.level<2?2:3)),s=Le(e,a.level),l=Le(e,3),s=ze(null,s.toFixed(4),0),l=ze(null,l.toFixed(4),0),o=Le(o?0:.3,a.level).toFixed(4);let i,d;var m=t&&t.body&&(t.body.body||0":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},He=()=>({type:"styling",body:[],mode:"math",scriptLevel:"display"}),Ve=e=>"textord"===e.type&&"@"===e.text;function _e(r){var a=[];for(r.gullet.beginGroup(),r.gullet.macros.set("\\cr","\\\\\\relax"),r.gullet.beginGroup();;){a.push(r.parseExpression(!1,"\\\\")),r.gullet.endGroup(),r.gullet.beginGroup();var e=r.fetch().text;if("&"!==e&&"\\\\"!==e){if("\\end"!==e)throw new P("Expected \\\\ or \\cr or \\end",r.nextToken);0===a[a.length-1].length&&a.pop();break}r.consume()}let n=[];var o,s,l=[n];for(let t=0;tAV".indexOf(d)))throw new P('Expected one of "<>AV=|." after @.');for(let r=0;r<2;r++){let t=!0;for(let e=a+1;e{let t=e.toString(16);return t=1===t.length?"0"+t:t}, - et=JSON.parse(`{ "Apricot": "#ffb484", "Aquamarine": "#08b4bc", "Bittersweet": "#c84c14", "blue": "#0000FF", "Blue": "#303494", "BlueGreen": "#08b4bc", "BlueViolet": "#503c94", "BrickRed": "#b8341c", "brown": "#BF8040", "Brown": "#802404", "BurntOrange": "#f8941c", "CadetBlue": "#78749c", "CarnationPink": "#f884b4", "Cerulean": "#08a4e4", "CornflowerBlue": "#40ace4", "cyan": "#00FFFF", "Cyan": "#08acec", "Dandelion": "#ffbc44", "darkgray": "#404040", "DarkOrchid": "#a8548c", "Emerald": "#08ac9c", "ForestGreen": "#089c54", "Fuchsia": "#90348c", "Goldenrod": "#ffdc44", "gray": "#808080", "Gray": "#98949c", "green": "#00FF00", "Green": "#08a44c", "GreenYellow": "#e0e474", "JungleGreen": "#08ac9c", "Lavender": "#f89cc4", "lightgray": "#c0c0c0", "lime": "#BFFF00", "LimeGreen": "#90c43c", "magenta": "#FF00FF", "Magenta": "#f0048c", "Mahogany": "#b0341c", "Maroon": "#b03434", "Melon": "#f89c7c", "MidnightBlue": "#086494", "Mulberry": "#b03c94", "NavyBlue": "#086cbc", "olive": "#7F7F00", "OliveGreen": "#407c34", "orange": "#FF8000", "Orange": "#f8843c", "OrangeRed": "#f0145c", "Orchid": "#b074ac", "Peach": "#f8945c", "Periwinkle": "#8074bc", "PineGreen": "#088c74", "pink": "#ff7f7f", "Plum": "#98248c", "ProcessBlue": "#08b4ec", "purple": "#BF0040", "Purple": "#a0449c", "RawSienna": "#983c04", "red": "#ff0000", "Red": "#f01c24", "RedOrange": "#f86434", "RedViolet": "#a0246c", "Rhodamine": "#f0549c", "Royallue": "#0874bc", "RoyalPurple": "#683c9c", "RubineRed": "#f0047c", "Salmon": "#f8948c", "SeaGreen": "#30bc9c", "Sepia": "#701404", "SkyBlue": "#48c4dc", "SpringGreen": "#c8dc64", "Tan": "#e09c74", "teal": "#007F7F", "TealBlue": "#08acb4", "Thistle": "#d884b4", "Turquoise": "#08b4cc", "violet": "#800080", "Violet": "#60449c", "VioletRed": "#f054a4", "WildStrawberry": "#f0246c", "yellow": "#FFFF00", "Yellow": "#fff404", "YellowGreen": "#98cc6c", "YellowOrange": "#ffa41c" }`), tt=(e,t)=>{let r="";if("HTML"===e){if(!We.test(t))throw new P("Invalid HTML input.");r=t}else if("RGB"===e){if(!Ze.test(t))throw new P("Invalid RGB input.");t.split(",").map(e=>{r+=Qe(Number(e.trim()))})}else{if(!Ke.test(t))throw new P("Invalid rbg input.");t.split(",").map(e=>{e=Number(e.trim());if(1{var a="\\\\color@"+e;if(Xe.exec(e))return Je.test(e)?"#"+e:("#"!==e.charAt(0)&&(t.has(a)?e=t.get(a).tokens[0].text:et[e]&&(e=et[e])),e);throw new P("Invalid color: '"+e+"'",r)};g=(t,e)=>{let r=w(t.body,e.withColor(t.color));return r=r.map(e=>(e.style.color=t.color,e)),N.newDocumentFragment(r)};r({type:"color",names:["\\textcolor"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,argTypes:["raw","raw","original"]},handler({parser:e,token:t},r,a){var n,a=a[0]&&k(a[0],"raw").string;let o="";o=a?(n=k(r[0],"raw").string,tt(a,n)):rt(k(r[0],"raw").string,e.gullet.macros,t);a=r[1];return{type:"color",mode:e.mode,color:o,isTextColor:!0,body:d(a)}},mathmlBuilder:g}),r({type:"color",names:["\\color"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0,argTypes:["raw","raw"]}, handler({parser:e,breakOnTokenText:t,token:r},a,n){var o,n=n[0]&&k(n[0],"raw").string;let s="";s=n?(o=k(a[0],"raw").string,tt(n,o)):rt(k(a[0],"raw").string,e.gullet.macros,r);n=e.parseExpression(!0,t,!0);return{type:"color",mode:e.mode,color:s,isTextColor:!1,body:n}},mathmlBuilder:g}),r({type:"color",names:["\\definecolor"],props:{numArgs:3,allowedInText:!0,argTypes:["raw","raw","raw"]},handler({parser:e,token:t},r){var a=k(r[0],"raw").string;if(!/^[A-Za-z]+$/.test(a))throw new P("Color name must be latin letters.",t);var n=k(r[1],"raw").string;if(["HTML","RGB","rgb"].includes(n))return r=k(r[2],"raw").string,n=tt(n,r),e.gullet.macros.set("\\\\color@"+a,{tokens:[{text:n}],numArgs:0}),{type:"internal",mode:e.mode};throw new P("Color model must be HTML, RGB, or rgb.",t)}}),r({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler({parser:e},t,r){var a="["===e.gullet.future().text?e.parseSizeGroup(!0):null,n=!e.settings.displayMode;return{type:"cr",mode:e.mode,newLine:n,size:a&&k(a,"size").value}},mathmlBuilder(e,t){var r=new N.MathNode("mo");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size)&&(e=B(e.size,t),r.setAttribute("height",e.number+e.unit)),r}});const at={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},nt=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new P("Expected a control sequence",e);return t},ot=(e,t,r,a)=>{let n=e.gullet.macros.get(r.text);null==n&&(r.noexpand=!0,n={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,n,a)},st=(r({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler({parser:e,funcName:t}){e.consumeSpaces();var r=e.fetch();if(at[r.text])return"\\global"!==t&&"\\\\globallong"!==t||(r.text=at[r.text]),k(e.parseFunction(),"internal");throw new P("Invalid token after macro prefix",r)}}),r({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler({parser:e,funcName:t}){let r=e.gullet.popToken();var a=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new P("Expected a control sequence",r);let n=0,o;for(var s=[[]];"{"!==e.gullet.future().text;)if("#"===(r=e.gullet.popToken()).text){if("{"===e.gullet.future().text){o=e.gullet.future(),s[n].push("{");break}if(r=e.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new P(`Invalid argument number "${r.text}"`);if(parseInt(r.text)!==n+1)throw new P(`Argument number "${r.text}" out of order`);n++,s.push([])}else{if("EOF"===r.text)throw new P("Expected a macro definition");s[n].push(r.text)}let l=e.gullet.consumeArg().tokens;if(o&&l.unshift(o),"\\edef"===t||"\\xdef"===t){if((l=e.gullet.expandTokens(l)).length>e.gullet.settings.maxExpand)throw new P("Too many expansions in an "+t);l.reverse()}return e.gullet.macros.set(a,{tokens:l,numArgs:n,delimiters:s},t===at[t]),{type:"internal",mode:e.mode}}}),r({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler({parser:e,funcName:t}){var r=nt(e.gullet.popToken()),a=(e.gullet.consumeSpaces(),(e=>{let t=e.gullet.popToken();return t="="===t.text&&" "===(t=e.gullet.popToken()).text?e.gullet.popToken():t})(e));return ot(e,r,a,"\\\\globallet"===t),{type:"internal",mode:e.mode}}}),r({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler({parser:e,funcName:t}){var r=nt(e.gullet.popToken()),a=e.gullet.popToken(),n=e.gullet.popToken();return ot(e,r,n,"\\\\globalfuture"===t),e.gullet.pushToken(n),e.gullet.pushToken(a),{type:"internal",mode:e.mode}}}),r({type:"internal",names:["\\newcommand","\\renewcommand","\\providecommand"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler({parser:e,funcName:t}){let r="";var a=e.gullet.popToken(),a=("{"===a.text?(r=nt(e.gullet.popToken()),e.gullet.popToken()):r=nt(a),e.gullet.isDefined(r));if(a&&"\\newcommand"===t)throw new P(`\\newcommand{${r}} attempting to redefine ${r}; use \\renewcommand`);if(!a&&"\\renewcommand"===t)throw new P(`\\renewcommand{${r}} when command ${r} does not yet exist; use \\newcommand`);let n=0;if("["===e.gullet.future().text){e.gullet.popToken();a=e.gullet.popToken();if(!/^[0-9]$/.test(a.text))throw new P(`Invalid number of arguments: "${a.text}"`);if(n=parseInt(a.text),"]"!==(a=e.gullet.popToken()).text)throw new P(`Invalid argument "${a.text}"`)}t=e.gullet.consumeArg().tokens;return e.gullet.macros.set(r,{tokens:t,numArgs:n}),{type:"internal",mode:e.mode}}}),{"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}}),lt=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","⦇","\\llparenthesis","⦈","\\rrparenthesis","\\lfloor","\\rfloor","\u230a","\u230b","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27e8","\\rangle","\u27e9","\\lAngle","\u27ea","\\rAngle","\u27eb","\\llangle","⦉","\\rrangle","⦊","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27ee","\u27ef","\\lmoustache","\\rmoustache","\u23b0","\u23b1","\\llbracket","\\rrbracket","\u27e6","\u27e6","\\lBrace","\\rBrace","\u2983","\u2984","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."],it=["}","\\left","\\middle","\\right"],dt=e=>0","\\gt"].includes(r.text)&&(r.text="⟩"),r;throw r?new P(`Invalid delimiter '${r.text}' after '${t.funcName}'`,e):new P(`Invalid delimiter type '${e.type}'`,e)}const ut=["\u002F","\u005C","\\backslash","\\vert","|"];r({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{t=ct(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:st[e.funcName].size,mclass:st[e.funcName].mclass,delim:t.text}},mathmlBuilder:e=>{var t=[],t=("."===e.delim&&(e.delim=""),t.push(y(e.delim,e.mode)),new N.MathNode("mo",t));return"mopen"===e.mclass||"mclose"===e.mclass?t.setAttribute("fence","true"):t.setAttribute("fence","false"),(ut.includes(e.delim)||-1({type:"leftright-right", - mode:e.parser.mode,delim:ct(t[0],e).text})}),r({type:"leftright",names:["\\left"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var t=ct(t[0],e),r=e.parser;++r.leftrightDepth;let a=r.parseExpression(!1,null,!0),n=r.fetch();for(;"\\middle"===n.text;){r.consume();var o=r.fetch().text;if(!m.math[o])throw new P(`Invalid delimiter '${o}' after '\\middle'`);ct({type:"atom",mode:"math",text:o},{funcName:"\\middle"}),a.push({type:"middle",mode:"math",delim:o}),r.consume(),a=a.concat(r.parseExpression(!1,null,!0)),n=r.fetch()}--r.leftrightDepth,r.expect("\\right",!1);e=k(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:a,left:t.text,right:e.delim}},mathmlBuilder:(e,t)=>{var r;if(e.body)return t=w(e.body,t),"."===e.left&&(e.left=""),(r=new N.MathNode("mo",[y(e.left,e.mode)])).setAttribute("fence","true"),r.setAttribute("form","prefix"),("/"===e.left||"\u005C"===e.left||-1{t=ct(t[0],e);if(e.parser.leftrightDepth)return{type:"middle",mode:e.parser.mode,delim:t.text};throw new P("\\middle without preceding \\left",t)},mathmlBuilder:(e,t)=>{var r=y(e.delim,e.mode),r=new N.MathNode("mo",[r]);return r.setAttribute("fence","true"),-1{var t=new N.MathNode("mspace");return t.setAttribute("width","3pt"),t};o=(e,t)=>{let r;switch(r=-1{let r="";for(let e=t.length-1;-1{e=e.future().text;return"EOF"===e?[null,""]:[Pt[e.charAt(0)],e]},xt=(t,r,a)=>{for(let e=1;ea&&(r+=" ",a=n),r+=t[e].text,a+=t[e].text.length}return r}T("\\char",function(r){let a=r.popToken(),n,o="";if("'"===a.text)n=8,a=r.popToken();else if('"'===a.text)n=16,a=r.popToken();else if("`"===a.text)if("\\"===(a=r.popToken()).text[0])o=a.text.charCodeAt(1);else{if("EOF"===a.text)throw new P("\\char` missing argument");o=a.text.charCodeAt(0)}else n=10;if(n){let e=a.text;if(null==(o=Pt[e.charAt(0)])||o>=n)throw new P(`Invalid base-${n} digit `+a.text);o=xt(o,e,n);let t;for([t,e]=Yt(r);null!=t&&t":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcap":"\\dotsb","\\bigsqcup":"\\dotsb","\\bigtimes":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},vt=(T("\\dots",function(e){let t="\\dotso";e=e.expandAfterFuture().text;return e in wt?t=wt[e]:("\\not"===e.slice(0,4)||e in m.math&&["bin","rel"].includes(m.math[e].group))&&(t="\\dotsb"),t}), {")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0}),kt=(T("\\dotso",function(e){return e.future().text in vt?"\\ldots\\,":"\\ldots"}),T("\\dotsc",function(e){e=e.future().text;return e in vt&&","!==e?"\\ldots\\,":"\\ldots"}),T("\\cdots",function(e){return e.future().text in vt?"\\@cdots\\,":"\\@cdots"}),T("\\dotsb","\\cdots"),T("\\dotsm","\\cdots"),T("\\dotsi","\\!\\cdots"),T("\\idotsint","\\dotsi"),T("\\dotsx","\\ldots\\,"),T("\\DOTSI","\\relax"),T("\\DOTSB","\\relax"),T("\\DOTSX","\\relax"),T("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),T("\\,","{\\tmspace+{3mu}{.1667em}}"),T("\\thinspace","\\,"),T("\\>","\\mskip{4mu}"),T("\\:","{\\tmspace+{4mu}{.2222em}}"),T("\\medspace","\\:"),T("\\;","{\\tmspace+{5mu}{.2777em}}"),T("\\thickspace","\\;"),T("\\!","{\\tmspace-{3mu}{.1667em}}"),T("\\negthinspace","\\!"),T("\\negmedspace","{\\tmspace-{4mu}{.2222em}}"),T("\\negthickspace","{\\tmspace-{5mu}{.277em}}"),T("\\enspace","\\kern.5em "),T("\\enskip","\\hskip.5em\\relax"),T("\\quad","\\hskip1em\\relax"),T("\\qquad","\\hskip2em\\relax"),T("\\AA","\\TextOrMath{\\Angstrom}{\\mathring{A}}\\relax"),T("\\tag","\\@ifstar\\tag@literal\\tag@paren"),T("\\tag@paren","\\tag@literal{({#1})}"),T("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new P("Multiple \\tag");return"\\def\\df@tag{\\text{#1}}"}),T("\\bmod","\\mathbin{\\text{mod}}"),T("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),T("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),T("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),T("\\newline","\\\\\\relax"),T("\\TeX","\\textrm{T}\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125em\\textrm{X}"),T("\\LaTeX","\\textrm{L}\\kern-.35em\\raisebox{0.2em}{\\scriptstyle A}\\kern-.15em\\TeX"),T("\\Temml","\\textrm{T}\\kern-0.2em\\lower{0.2em}{\\textrm{E}}\\kern-0.08em{\\textrm{M}\\kern-0.08em\\raise{0.2em}\\textrm{M}\\kern-0.08em\\textrm{L}}"),T("\\hspace","\\@ifstar\\@hspacer\\@hspace"),T("\\@hspace","\\hskip #1\\relax"),T("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),T("\\colon",'\\mathpunct{\\char"3a}'),T("\\prescript","\\pres@cript{_{#1}^{#2}}{}{#3}"),T("\\ordinarycolon",'\\char"3a'),T("\\vcentcolon","\\mathrel{\\raisebox{0.035em}{\\ordinarycolon}}"),T("\\coloneq",'\\mathrel{\\raisebox{0.035em}{\\ordinarycolon}\\char"2212}'),T("\\Coloneq",'\\mathrel{\\char"2237\\char"2212}'),T("\\Eqqcolon",'\\mathrel{\\char"3d\\char"2237}'),T("\\Eqcolon",'\\mathrel{\\char"2212\\char"2237}'),T("\\colonapprox",'\\mathrel{\\raisebox{0.035em}{\\ordinarycolon}\\char"2248}'),T("\\Colonapprox",'\\mathrel{\\char"2237\\char"2248}'),T("\\colonsim",'\\mathrel{\\raisebox{0.035em}{\\ordinarycolon}\\char"223c}'), - T("\\Colonsim",'\\mathrel{\\raisebox{0.035em}{\\ordinarycolon}\\char"223c}'),T("\\ratio","\\vcentcolon"),T("\\coloncolon","\\dblcolon"),T("\\colonequals","\\coloneqq"),T("\\coloncolonequals","\\Coloneqq"),T("\\equalscolon","\\eqqcolon"),T("\\equalscoloncolon","\\Eqqcolon"),T("\\colonminus","\\coloneq"),T("\\coloncolonminus","\\Coloneq"),T("\\minuscolon","\\eqcolon"),T("\\minuscoloncolon","\\Eqcolon"),T("\\coloncolonapprox","\\Colonapprox"),T("\\coloncolonsim","\\Colonsim"),T("\\notni","\\mathrel{\\char`\u220C}"),T("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),T("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),T("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),T("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),T("\\varlimsup","\\DOTSB\\operatorname*{\\overline{\\text{lim}}}"),T("\\varliminf","\\DOTSB\\operatorname*{\\underline{\\text{lim}}}"),T("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{\\text{lim}}}"),T("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{\\text{lim}}}"),T("\\centerdot","{\\medspace\\rule{0.167em}{0.189em}\\medspace}"),T("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),T("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),T("\\plim","\\DOTSB\\operatorname*{plim}"),T("\\leftmodels","\\mathop{\\reflectbox{$\\models$}}"),T("\\bra","\\mathinner{\\langle{#1}|}"),T("\\ket","\\mathinner{|{#1}\\rangle}"),T("\\braket","\\mathinner{\\langle{#1}\\rangle}"),T("\\Bra","\\left\\langle#1\\right|"),T("\\Ket","\\left|#1\\right\\rangle"),(e,t)=>{var r=`}\\,\\middle${"|"===t[0]?"\\vert":"\\Vert"}\\,{`;return e.slice(0,t.index)+r+e.slice(t.index+t[0].length)}),At=(T("\\Braket",function(e){let t=yt(e);for(var r,a=/\|\||\||\\\|/g;null!==(r=a.exec(t));)t=kt(t,r);return"\\left\\langle{"+t+"}\\right\\rangle"}),T("\\Set",function(e){let t=yt(e);e=/\|\||\||\\\|/.exec(t);return"\\left\\{\\:{"+(t=e?kt(t,e):t)+"}\\:\\right\\}"}),T("\\set",function(e){return"\\{{"+yt(e).replace(/\|/,"}\\mid{")+"}\\}"}),T("\\angln","{\\angl n}"),T("\\odv","\\@ifstar\\odv@next\\odv@numerator"),T("\\odv@numerator","\\frac{\\mathrm{d}#1}{\\mathrm{d}#2}"),T("\\odv@next","\\frac{\\mathrm{d}}{\\mathrm{d}#2}#1"),T("\\pdv","\\@ifstar\\pdv@next\\pdv@numerator"),e=>{var t=e[0][0].text,e=ft(e[1]).split(","),r=String(e.length),r="1"===r?"\\partial":"\\partial^"+r;let a="";return e.map(e=>{a+="\\partial "+e.trim()+"\\,"}),[t,r,a.replace(/\\,$/,"")]});function Tt(e){var t=[];e.consumeSpaces();let r=e.fetch().text;for("\\relax"===r&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);"\\hline"===r||"\\hdashline"===r;)e.consume(),t.push("\\hdashline"===r),e.consumeSpaces(),r=e.fetch().text;return t}T("\\pdv@numerator",function(e){var[e,t,r]=At(e.consumeArgs(2));return`\\frac{${t} ${e}}{${r}}`}),T("\\pdv@next",function(e){var[e,t,r]=At(e.consumeArgs(2));return`\\frac{${t}}{${r}} `+e}),T("\\upalpha","\\up@greek{\\alpha}"),T("\\upbeta","\\up@greek{\\beta}"),T("\\upgamma","\\up@greek{\\gamma}"),T("\\updelta","\\up@greek{\\delta}"),T("\\upepsilon","\\up@greek{\\epsilon}"),T("\\upzeta","\\up@greek{\\zeta}"),T("\\upeta","\\up@greek{\\eta}"),T("\\uptheta","\\up@greek{\\theta}"),T("\\upiota","\\up@greek{\\iota}"),T("\\upkappa","\\up@greek{\\kappa}"),T("\\uplambda","\\up@greek{\\lambda}"),T("\\upmu","\\up@greek{\\mu}"),T("\\upnu","\\up@greek{\\nu}"),T("\\upxi","\\up@greek{\\xi}"),T("\\upomicron","\\up@greek{\\omicron}"),T("\\uppi","\\up@greek{\\pi}"),T("\\upalpha","\\up@greek{\\alpha}"),T("\\uprho","\\up@greek{\\rho}"),T("\\upsigma","\\up@greek{\\sigma}"),T("\\uptau","\\up@greek{\\tau}"),T("\\upupsilon","\\up@greek{\\upsilon}"),T("\\upphi","\\up@greek{\\phi}"),T("\\upchi","\\up@greek{\\chi}"),T("\\uppsi","\\up@greek{\\psi}"),T("\\upomega","\\up@greek{\\omega}"),T("\\invamp",'\\mathbin{\\char"214b}'),T("\\parr",'\\mathbin{\\char"214b}'),T("\\with",'\\mathbin{\\char"26}'),T("\\multimapinv",'\\mathrel{\\char"27dc}'),T("\\multimapboth",'\\mathrel{\\char"29df}'),T("\\scoh",'{\\mkern5mu\\char"2322\\mkern5mu}'),T("\\sincoh",'{\\mkern5mu\\char"2323\\mkern5mu}'),T("\\coh",`{\\mkern5mu\\rule{}{0.7em}\\mathrlap{\\smash{\\raise2mu{\\char"2322}}} {\\smash{\\lower4mu{\\char"2323}}}\\mkern5mu}`),T("\\incoh",`{\\mkern5mu\\rule{}{0.7em}\\mathrlap{\\smash{\\raise2mu{\\char"2323}}} {\\smash{\\lower4mu{\\char"2322}}}\\mkern5mu}`),T("\\standardstate","\\text{\\tiny\\char`⦵}");const Nt=e=>{if(!e.parser.settings.displayMode)throw new P(`{${e.envName}} can be used only in display mode.`)},St=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/,qt=e=>{let t=e.get("\\arraystretch"),r=("string"!=typeof t&&(t=ft(t.tokens)),t=isNaN(t)?null:Number(t),e.get("\\arraycolsep"));"string"!=typeof r&&(r=ft(r.tokens));e=St.exec(r),e=e?{number:+(e[1]+e[2]),unit:e[3]}:null;return[t,e]};function C(r,{cols:e,envClasses:a,addEqnNum:n,singleRow:o,emptySingleRow:s,maxNumCols:l,leqno:t,arraystretch:i,arraycolsep:d},m){r.gullet.beginGroup(),o||r.gullet.macros.set("\\cr","\\\\\\relax"),n&&(r.gullet.macros.set("\\tag","\\@ifstar\\envtag@literal\\envtag@paren"),r.gullet.macros.set("\\envtag@paren","\\env@tag{{(\\text{#1})}}"),r.gullet.macros.set("\\envtag@literal","\\env@tag{\\text{#1}}"),r.gullet.macros.set("\\notag","\\env@notag"),r.gullet.macros.set("\\nonumber","\\env@notag")),r.gullet.beginGroup();let c=[];var u=[c],p=[],h=[];let g;var b=[];for(b.push(Tt(r));;){let t=r.parseExpression(!1,o?"\\end":"\\\\");if(n&&!g)for(let e=0;e{var t=new N.MathNode("mtd",[]);return t.style={padding:"0",width:"50%"},e.envClasses.includes("multline")&&(t.style.width="7.5%"),t};function M(o,s){var e,l=[],r=o.body.length;const a=o.hLinesBeforeRow;for(let t=0;t{let a;var n=e.tags.shift();if(n){if(!n.body)return a=new N.MathNode("mtext",[],[]);(a=S(n.body,t,!0)).classes=["tml-tag"]}else{if(e.envClasses.includes("multline")&&(e.leqno&&0!==r||!e.leqno&&r!==e.body.length-1))return a=new N.MathNode("mtext",[],[]);a=new N.MathNode("mtext",[new _(["tml-eqn"])])}return a})(o,s.withLevel(d),t),o.leqno?(i[0].children.push(c),i[0].classes.push("tml-left")):(i[i.length-1].children.push(c),i[i.length-1].classes.push("tml-right")));var c=new N.MathNode("mtr",i,[]);0===t&&0{e.style.borderTop="0.15em double"}):c.children.forEach(e=>{e.style.borderTop=a[0][0]?"0.06em dashed":"0.06em solid"})),0{e.style.borderBottom="0.15em double"}):c.children.forEach(e=>{e.style.borderBottom=a[t+1][0]?"0.06em dashed":"0.06em solid"})),l.push(c)}if(00===e&&0===t||e===y-1&&1===t?"0":"align"!==o.envClasses[0]?a:1===t?"0":o.addEqnNum?e%2?"1":"0":e%2?"0":"1";for(let t=0;t{var r=e.font,t=t.withFont(r),a=q(e.body,t);if(0===a.children.length)return a;if("boldsymbol"===r&&["mo","mpadded","mrow"].includes(a.type))return a.style.fontWeight="bold",a;if(((t,e)=>{if("mathrm"!==e||"ordgroup"!==t.body.type||1===t.body.body.length)return!1;if("mathord"!==t.body.body[0].type)return!1;for(let e=1;e{r=U(r[0]);let a=t;return a in Dt&&(a=Dt[a]),{type:"font",mode:e.mode,font:a.slice(1),body:r}},mathmlBuilder:h}),r({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:({parser:e,funcName:t,breakOnTokenText:r},a)=>{var n=e.mode,r=e.parseExpression(!0,r,!0);return{type:"font",mode:n,font:"math"+t.slice(1),body:{type:"ordgroup",mode:e.mode,body:r}}},mathmlBuilder:h}),["display","text","script","scriptscript"]),It={auto:-1,display:0,text:0,script:1,scriptscript:2};s=(e,t)=>{var r="auto"===e.scriptLevel?t.incrementLevel():"display"===e.scriptLevel?t.withLevel(O.TEXT):"text"===e.scriptLevel?t.withLevel(O.SCRIPT):t.withLevel(O.SCRIPTSCRIPT);let a=new N.MathNode("mfrac",[q(e.numer,r),q(e.denom,r)]);return e.hasBarLine?e.barSize&&(r=B(e.barSize,t),a.setAttribute("linethickness",r.number+r.unit)):a.setAttribute("linethickness","0px"),null==e.leftDelim&&null==e.rightDelim||(t=[],null!=e.leftDelim&&((r=new N.MathNode("mo",[new N.TextNode(e.leftDelim.replace("\\",""))])).setAttribute("fence","true"),t.push(r)),t.push(a),null!=e.rightDelim&&((r=new N.MathNode("mo",[new N.TextNode(e.rightDelim.replace("\\",""))])).setAttribute("fence","true"),t.push(r)),a=Pe(t)),"auto"!==e.scriptLevel&&((a=new N.MathNode("mstyle",[a])).setAttribute("displaystyle",String("display"===e.scriptLevel)),a.setAttribute("scriptlevel",It[e.scriptLevel])),a};r({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:({parser:e,funcName:t},r)=>{var a=r[0],r=r[1];let n=!1,o=null,s=null,l="auto";switch(t){case"\\dfrac":case"\\frac":case"\\tfrac":n=!0;break;case"\\\\atopfrac":n=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":o="(",s=")";break;case"\\\\bracefrac":o="\\{",s="\\}";break;case"\\\\brackfrac":o="[",s="]";break;default:throw new Error("Unrecognized genfrac command")}switch(t){case"\\dfrac":case"\\dbinom":l="display";break;case"\\tfrac":case"\\tbinom":l="text"}return{type:"genfrac",mode:e.mode,continued:!1,numer:a,denom:r,hasBarLine:n,leftDelim:o,rightDelim:s,scriptLevel:l,barSize:null}},mathmlBuilder:s}),r({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:({parser:e},t)=>{var r=t[0];return{type:"genfrac",mode:e.mode,continued:!0,numer:r,denom:t[1],hasBarLine:!0,leftDelim:null,rightDelim:null,scriptLevel:"display",barSize:null}}}),r({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler({parser:e,funcName:t,token:r}){let a;switch(t){case"\\over":a="\\frac";break;case"\\choose":a="\\binom";break;case"\\atop":a="\\\\atopfrac";break;case"\\brace":a="\\\\bracefrac";break;case"\\brack":a="\\\\brackfrac"; - break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:a,token:r}}});function zt(e){let t=null;return t=0{var r=t[0],a=function(e){if(e)return e;throw new Error("Expected non-null, but got "+String(e))}(k(t[1],"infix").barSize),n=0{var r=re(e.label);return r.style["math-depth"]=0,new N.MathNode(e.isOver?"mover":"munder",[q(e.base,t),r])}}),r({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:({parser:e,token:t},r)=>{var a=r[1],r=k(r[0],"url").url;if(e.settings.isTrusted({command:"\\href",url:r}))return{type:"href",mode:e.mode,href:r,body:d(a)};throw new P('Function "\\href" is not trusted',t)},mathmlBuilder:(e,t)=>{let r=S(e.body,t);return(r=r instanceof i?r:new i("mrow",[r])).setAttribute("href",e.href),r}}),r({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:({parser:e,token:t},r)=>{var a=k(r[0],"url").url;if(!e.settings.isTrusted({command:"\\url",url:a}))throw new P('Function "\\url" is not trusted',t);var n=[];for(let t=0;t{var n=k(a[0],"raw").string,a=a[1];if(e.settings.strict)throw new P(`Function "${t}" is disabled in strict mode`,r);let o;var s={};switch(t){case"\\class":s.class=n,o={command:"\\class",class:n};break;case"\\id":s.id=n,o={command:"\\id",id:n};break;case"\\style":s.style=n,o={command:"\\style",style:n};break;case"\\data":var l=n.split(",");for(let e=0;e{var r=S(e.body,t),t=[];e.attributes.class&&t.push(...e.attributes.class.trim().split(/\s+/)),r.classes=t;for(let a in e.attributes)"class"!==a&&Object.prototype.hasOwnProperty.call(e.attributes,a)&&r.setAttribute(a,e.attributes[a]);return r}});function Lt(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new P("Invalid size: '"+e+"' in \\includegraphics");if(e={number:+(t[1]+t[2]),unit:t[3]},Oe(e))return e;throw new P("Invalid unit: '"+e.unit+"' in \\includegraphics.")}r({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:({parser:e,token:t},r,a)=>{let n={number:0,unit:"em"},o={number:.9,unit:"em"},s={number:0,unit:"em"},l="";if(a[0]){var i=k(a[0],"raw").string.split(",");for(let e=0;e{var r=B(e.height,t),a={number:0,unit:"em"};0r.number&&(a.number=e.totalheight.number-r.number,a.unit=r.unit);let n=0;0{if(Rt.includes(t)){if(e.settings.strict&&"text"!==e.mode)throw new P(`{${t}} can be used only in text mode. Try \\math`+t.slice(1),r);t=t.slice(1)}else t=t.slice(5);r=a[0];return{type:"lap",mode:e.mode,alignment:t,body:r}},mathmlBuilder:(e,t)=>{let r;"llap"===e.alignment&&(a=w(d(e.body),t),a=new N.MathNode("mphantom",a),(r=new N.MathNode("mpadded",[a])).setAttribute("width","0px"));var a=q(e.body,t);let n;return n="llap"===e.alignment?(a.style.position="absolute",a.style.right="0",a.style.bottom="0",new N.MathNode("mpadded",[r,a])):new N.MathNode("mpadded",[a]),"rlap"===e.alignment?0({type:"mathchoice",mode:e.mode,display:d(t[0]),text:d(t[1]),script:d(t[2]),scriptscript:d(t[3])}),mathmlBuilder:(e,t)=>{e=((e,t)=>{switch(t.level){case O.DISPLAY:return e.display;case O.TEXT:return e.text;case O.SCRIPT:return e.script;case O.SCRIPTSCRIPT:return e.scriptscript;default:return e.text}})(e,t);return S(e,t)}}),["text","textord","mathord","atom"]),Ut=e=>{var t=new N.MathNode("mspace");return t.setAttribute("width",e+"em"),t};function Ht(e,t){let r;var a=w(e.body,t);return"minner"===e.mclass?r=new N.MathNode("mpadded",a):"mord"===e.mclass?e.isCharacterBox||"mathord"===a[0].type?((r=a[0]).type="mi",1===r.children.length&&r.children[0].text&&"∇"===r.children[0].text&&r.setAttribute("mathvariant","normal")):r=new N.MathNode("mi",a):(r=new N.MathNode("mrow",a),e.mustPromote?((r=a[0]).type="mo",e.isCharacterBox&&e.body[0].text&&/[A-Za-z]/.test(e.body[0].text)&&r.setAttribute("mathvariant","italic")):r=new N.MathNode("mrow",a),a=t.level<2,"mrow"===r.type?a&&("mbin"===e.mclass?(r.children.unshift(Ut(.2222)),r.children.push(Ut(.2222))):"mrel"===e.mclass?(r.children.unshift(Ut(.2778)),r.children.push(Ut(.2778))):"mpunct"===e.mclass?r.children.push(Ut(.1667)):"minner"===e.mclass&&(r.children.unshift(Ut(.0556)),r.children.push(Ut(.0556)))):"mbin"===e.mclass?(r.attributes.lspace=a?"0.2222em":"0",r.attributes.rspace=a?"0.2222em":"0"):"mrel"===e.mclass?(r.attributes.lspace=a?"0.2778em":"0",r.attributes.rspace=a?"0.2778em":"0"):"mpunct"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace=a?"0.1667em":"0"):"mopen"===e.mclass||"mclose"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0em"):"minner"===e.mclass&&a&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em"),"mopen"!==e.mclass&&"mclose"!==e.mclass&&(delete r.attributes.stretchy,delete r.attributes.form)),r}r({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler({parser:e,funcName:t},r){var r=r[0],a=l.isCharacterBox(r);let n=!0;const o={type:"mathord",text:"",mode:e.mode};for(let s of r.body||[r]){if(!jt.includes(s.type)){n=!1;break}m[e.mode][s.text]?o.text+=m[e.mode][s.text].replace:s.text?o.text+=s.text:s.body&&s.body.map(e=>{o.text+=e.text})}return{type:"mclass",mode:e.mode,mclass:"m"+t.slice(5),body:d(n?o:r),isCharacterBox:a,mustPromote:n}},mathmlBuilder:Ht});r({type:"mclass",names:["\\@binrel"],props:{numArgs:2}, - handler({parser:e},t){return{type:"mclass",mode:e.mode,mclass:(e=>{e="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==e.type||"bin"!==e.family&&"rel"!==e.family?"mord":"m"+e.family})(t[0]),body:d(t[1]),isCharacterBox:l.isCharacterBox(t[1])}}}),r({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler({funcName:e},t){var r=t[1],t=t[0],r={type:"op",mode:r.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,stack:!0,suppressBaseShift:"\\stackrel"!==e,body:d(r)};return{type:"supsub",mode:t.mode,base:r,sup:"\\underset"===e?null:t,sub:"\\underset"===e?t:null}},mathmlBuilder:Ht});const Vt=(e,t,r)=>{return!e||"mrow"===(e=q(e,t)).type&&0===e.children.length?r:e},_t=(r({type:"multiscript",names:["\\sideset","\\pres@cript"],props:{numArgs:3},handler({parser:e,funcName:t,token:r},a){if(0===a[2].body.length)throw new P(t+"cannot parse an empty base.");var n=a[2].body[0];if(e.settings.strict&&"\\sideset"===t&&!n.symbol)throw new P("The base of \\sideset must be a big operator. Try \\prescript.");if(0{e.attributes.lspace="0.1667em",e.attributes.rspace="0.1667em"};b=(e,t)=>{let r;var a;return e.symbol?(r=new i("mo",[y(e.name,e.mode)]),Wt.includes(e.name)?r.setAttribute("largeop","false"):e.limits?r.setAttribute("stretchy","true"):r.setAttribute("movablelimits","false"),e.fromMathOp&&Zt(r)):e.body?(r=new i("mo",w(e.body,t)),e.fromMathOp&&Zt(r)):(r=new i("mi",[new Z(e.name.slice(1))]),e.parentIsSupSub||(t=new i("mo",[y("\u2061","text")]),t=[r,t],e.needsLeadingSpace&&((a=new i("mspace")).setAttribute("width","0.1667em"),t.unshift(a)),e.isFollowedByDelimiter||((a=new i("mspace")).setAttribute("width","0.1667em"),t.push(a)),r=new i("mrow",t))),r};const Kt={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22c0":"\\bigwedge","\u22c1":"\\bigvee","\u22c2":"\\bigcap","\u22c3":"\\bigcup","\u2a00":"\\bigodot","\u2a01":"\\bigoplus","\u2a02":"\\bigotimes","\u2a04":"\\biguplus","\u2a05":"\\bigsqcap","\u2a06":"\\bigsqcup","\u2a03":"\\bigcupdot","\u2a07":"\\bigdoublevee","\u2a08":"\\bigdoublewedge","\u2a09":"\\bigtimes"},Jt=(r({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcupplus","\\bigcupdot","\\bigcap","\\bigcup","\\bigdoublevee","\\bigdoublewedge","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcap","\\bigsqcup","\\bigtimes","\\smallint","\u220F","\u2210","\u2211","\u22c0","\u22c1","\u22c2","\u22c3","\u2a00","\u2a01","\u2a02","\u2a04","\u2a06"],props:{numArgs:0},handler:({parser:e,funcName:t},r)=>{let a=t;return 1===a.length&&(a=Kt[a]),{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!0,stack:!1,name:a}},mathmlBuilder:b}),r({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:({parser:e},t)=>{var t=t[0],r=t.body||[t],a=1===r.length&&_t.includes(r[0].type);return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:a,fromMathOp:!0,stack:!1,name:a?r[0].text:null,body:a?null:d(t)}},mathmlBuilder:b}),{"\u222b":"\\int","\u222c":"\\iint","\u222d":"\\iiint","\u222e":"\\oint","\u222f":"\\oiint","\u2230":"\\oiiint","\u2231":"\\intclockwise","\u2232":"\\varointclockwise","\u2a0c":"\\iiiint","\u2a0d":"\\intbar","\u2a0e":"\\intBar","\u2a0f":"\\fint","\u2a12":"\\rppolint","\u2a13":"\\scpolint","\u2a15":"\\pointint","\u2a16":"\\sqint","\u2a17":"\\intlarhk","\u2a18":"\\intx","\u2a19":"\\intcap","\u2a1a":"\\intcup"});r({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\sgn","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler({parser:e,funcName:t}){var r=e.prevAtomType,a=e.gullet.future().text;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,stack:!1,isFollowedByDelimiter:dt(a),needsLeadingSpace:0{var r=r[0],a=e.prevAtomType,n=e.gullet.future().text;return{type:"operatorname",mode:e.mode,body:d(r),alwaysHandleSupSub:"\\operatornamewithlimits"===t,limits:!1,parentIsSupSub:!1,isFollowedByDelimiter:dt(n),needsLeadingSpace:0{let r=w(e.body,t.withFont("mathrm")),a=!0;for(let t=0;te.toText()).join("");r=[new N.TextNode(t)]}else if(1===r.length&&["mover","munder"].includes(r[0].type)&&("mi"===r[0].children[0].type||"mtext"===r[0].children[0].type))return r[0].children[0].type="mi",e.parentIsSupSub?new N.MathNode("mrow",r):(t=new N.MathNode("mo",[y("\u2061","text")]),N.newDocumentFragment([r[0],t]));let o;var s;return a?(o=new N.MathNode("mi",r),1===r[0].text.length&&o.setAttribute("mathvariant","normal")):o=new N.MathNode("mrow",r),e.parentIsSupSub?o:(t=new N.MathNode("mo",[y("\u2061","text")]),t=[o,t],e.needsLeadingSpace&&((s=new N.MathNode("mspace")).setAttribute("width","0.1667em"),t.unshift(s)),e.isFollowedByDelimiter||((s=new N.MathNode("mspace")).setAttribute("width","0.1667em"),t.push(s)),N.newDocumentFragment(t))}}),T("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),j({type:"ordgroup",mathmlBuilder(e,t){return S(e.body,t,e.semisimple)}}),r({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:({parser:e},t)=>{t=t[0];return{type:"phantom",mode:e.mode,body:d(t)}},mathmlBuilder:(e,t)=>{e=w(e.body,t);return new N.MathNode("mphantom",e)}}),r({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:({parser:e},t)=>{t=t[0];return{type:"hphantom",mode:e.mode,body:t}},mathmlBuilder:(e,t)=>{e=w(d(e.body),t),t=new N.MathNode("mphantom",e),e=new N.MathNode("mpadded",[t]);return e.setAttribute("height","0px"),e.setAttribute("depth","0px"),e}}),r({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:({parser:e},t)=>{t=t[0];return{type:"vphantom",mode:e.mode,body:t}},mathmlBuilder:(e,t)=>{e=w(d(e.body),t),t=new N.MathNode("mphantom",e),e=new N.MathNode("mpadded",[t]);return e.setAttribute("width","0px"),e}}),r({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler({parser:e},t){return{type:"pmb",mode:e.mode,body:d(t[0])}},mathmlBuilder(e,t){e=w(e.body,t),t=K(e);return t.setAttribute("style","font-weight:bold"),t}});p=(e,t)=>{var r=t.withLevel(O.TEXT),r=new N.MathNode("mpadded",[q(e.body,r)]),e=B(e.dy,t);return r.setAttribute("voffset",e.number+e.unit),0{r.settings.strict&&"math"===r.mode&&console.log(`Temml strict-mode warning: Command ${t} is invalid in math mode.`);e=r.parseExpression(!1,e,!0);return{type:"sizing",mode:r.mode,funcName:t,body:e}},mathmlBuilder:(e,t)=>{var r=t.withFontSize(er[e.funcName]),r=w(e.body,r),r=K(r),e=(er[e.funcName]/t.fontSize).toFixed(4);return r.setAttribute("mathsize",e+"em"),r}}),r({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:({parser:e},t,r)=>{let a=!1,n=!1;var o=r[0]&&k(r[0],"ordgroup");if(o){var s;for(let e=0;e{t=new N.MathNode("mpadded",[q(e.body,t)]);return e.smashHeight&&t.setAttribute("height","0px"),e.smashDepth&&t.setAttribute("depth","0px"),t}}),r({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler({parser:e},t,r){r=r[0],t=t[0];return{type:"sqrt",mode:e.mode,body:t,index:r}},mathmlBuilder(e,t){var{body:e,index:r}=e;return r?new N.MathNode("mroot",[q(e,t),q(r,t.incrementLevel())]):new N.MathNode("msqrt",[q(e,t)])}}),{display:0,text:1,script:2,scriptscript:3}),rr={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},ar=(r({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler({breakOnTokenText:e,funcName:t,parser:r},a){e=r.parseExpression(!0,e,!0),t=t.slice(1,t.length-5);return{type:"styling",mode:r.mode,scriptLevel:t,body:e}},mathmlBuilder(e,t){t=t.withLevel(tr[e.scriptLevel]),t=w(e.body,t),t=K(t),e=rr[e.scriptLevel];return t.setAttribute("scriptlevel",e[0]),t.setAttribute("displaystyle",e[1]),t}}),/^m(over|under|underover)$/),nr=(j({type:"supsub",mathmlBuilder(e,t){let r=!1,a;let n=!1,o=!1,s=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(r=!0,a=e.base.isOver),!e.base||e.base.stack||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0,n=!e.base.symbol,o=n&&!e.isFollowedByDelimiter,s=e.base.needsLeadingSpace);var l,i=e.base&&e.base.stack?[q(e.base.body[0],t)]:[q(e.base,t)],d=t.inSubOrSup();e.sub&&i.push(q(e.sub,d)),e.sup&&((l="mrow"===(d=q(e.sup,d)).type?d.children[0]:d)&&"mo"===l.type&&l.classes.includes("tml-prime")&&e.base&&e.base.text&&"f"===e.base.text&&l.classes.push("prime-pad"),i.push(d));let m,c=(m=r?a?"mover":"munder":e.sub?e.sup?(l=e.base)&&("op"===l.type&&l.limits||"multiscript"===l.type)&&(t.level===O.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(t.level===O.DISPLAY||l.limits)?"munderover":"msubsup":(d=e.base)&&"op"===d.type&&d.limits&&(t.level===O.DISPLAY||d.alwaysHandleSupSub)||d&&"operatorname"===d.type&&d.alwaysHandleSupSub&&(d.limits||t.level===O.DISPLAY)?"munder":"msub":(l=e.base)&&"op"===l.type&&l.limits&&(t.level===O.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.level===O.DISPLAY)?"mover":"msup",new N.MathNode(m,i));return n?(d=new N.MathNode("mo",[y("\u2061","text")]),c=s?((e=new N.MathNode("mspace")).setAttribute("width","0.1667em"),N.newDocumentFragment([e,c,d])):N.newDocumentFragment([c,d]), - o&&((l=new N.MathNode("mspace")).setAttribute("width","0.1667em"),c.children.push(l))):ar.test(m)&&(c=new N.MathNode("mrow",[c])),c}}),["\\shortmid","\\nshortmid","\\shortparallel","\\nshortparallel","\\smallsetminus"]),or=["\\Rsh","\\Lsh","\\restriction"],sr=(j({type:"atom",mathmlBuilder(e,t){var r,a,n=new N.MathNode("mo",[y(e.text,e.mode)]);return"punct"===e.family?n.setAttribute("separator","true"):"open"===e.family||"close"===e.family?"open"===e.family?(n.setAttribute("form","prefix"),n.setAttribute("stretchy","false")):"close"===e.family&&(n.setAttribute("form","postfix"),n.setAttribute("stretchy","false")):"\\mid"===e.text?(n.setAttribute("lspace","0.22em"),n.setAttribute("rspace","0.22em"),n.setAttribute("stretchy","false")):"rel"===e.family&&(1===(r=e.text).length?8591<(a=r.codePointAt(0))&&a<8704:-10,bold:e=>119743,italic:e=>119795,"bold-italic":e=>119847,script:e=>lr[e]||119899,"script-bold":e=>119951,fraktur:e=>ir[e]||120003,"fraktur-bold":e=>120107,"double-struck":e=>dr[e]||120055,"sans-serif":e=>120159,"sans-serif-bold":e=>120211,"sans-serif-italic":e=>120263,"sans-serif-bold-italic":e=>120380,monospace:e=>120367},lowerCaseLatin:{normal:e=>0,bold:e=>119737,italic:e=>"h"===e?8358:119789,"bold-italic":e=>119841,script:e=>lr[e]||119893,"script-bold":e=>119945,fraktur:e=>119997,"fraktur-bold":e=>120101,"double-struck":e=>120049,"sans-serif":e=>120153,"sans-serif-bold":e=>120205,"sans-serif-italic":e=>120257,"sans-serif-bold-italic":e=>120309,monospace:e=>120361},upperCaseGreek:{normal:e=>0,bold:e=>119575,italic:e=>119633,"bold-italic":e=>119575,script:e=>0,"script-bold":e=>0,fraktur:e=>0,"fraktur-bold":e=>0,"double-struck":e=>0,"sans-serif":e=>119749,"sans-serif-bold":e=>119749,"sans-serif-italic":e=>0,"sans-serif-bold-italic":e=>119807,monospace:e=>0},lowerCaseGreek:{normal:e=>0,bold:e=>119569,italic:e=>119627,"bold-italic":e=>"\u03d5"===e?119678:119685,script:e=>0,"script-bold":e=>0,fraktur:e=>0,"fraktur-bold":e=>0,"double-struck":e=>0,"sans-serif":e=>119743,"sans-serif-bold":e=>119743,"sans-serif-italic":e=>0,"sans-serif-bold-italic":e=>119801,monospace:e=>0},varGreek:{normal:e=>0,bold:e=>mr[e]||-51,italic:e=>0,"bold-italic":e=>cr[e]||58,script:e=>0,"script-bold":e=>0,fraktur:e=>0,"fraktur-bold":e=>0,"double-struck":e=>0,"sans-serif":e=>ur[e]||116,"sans-serif-bold":e=>ur[e]||116,"sans-serif-italic":e=>0,"sans-serif-bold-italic":e=>pr[e]||174,monospace:e=>0},numeral:{normal:e=>0,bold:e=>120734,italic:e=>0,"bold-italic":e=>0,script:e=>0,"script-bold":e=>0,fraktur:e=>0,"fraktur-bold":e=>0,"double-struck":e=>120744,"sans-serif":e=>120754,"sans-serif-bold":e=>120764,"sans-serif-italic":e=>0,"sans-serif-bold-italic":e=>0,monospace:e=>120774}}),gr=(e,t)=>{var r=e.codePointAt(0),a=64{r=new N.MathNode(r,[e]),e=new N.MathNode("mstyle",[r]);return e.style["font-style"]="italic",e.style["font-family"]="Cambria, 'Times New Roman', serif","bold-italic"===t&&(e.style["font-weight"]="bold"),e})(a,n,t);"normal"!==n&&(a.text=a.text.split("").map(e=>gr(e,n)).join("")),o=new N.MathNode(t,[a])}else"text"===e.mode?("normal"!==n&&(a.text=gr(a.text,n)),o=new N.MathNode("mtext",[a])):Yr.has(e.text)?(o=new N.MathNode("mo",[a])).classes.push("tml-prime"):(t=a.text,"italic"!==n&&(a.text=gr(a.text,n)),o=new N.MathNode("mi",[a]),a.text===t&&Pr.test(t)&&o.setAttribute("mathvariant","italic"));return o}}),{"\\nobreak":"nobreak","\\allowbreak":"allowbreak"}),yr={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}},wr=(j({type:"spacing",mathmlBuilder(e,t){let r;if(Object.prototype.hasOwnProperty.call(yr,e.text))r=new N.MathNode("mtext",[new N.TextNode("\u00a0")]);else{if(!Object.prototype.hasOwnProperty.call(xr,e.text))throw new P(`Unknown type of space "${e.text}"`);r=new N.MathNode("mo"),"\\nobreak"===e.text&&r.setAttribute("linebreak","nobreak")}return r}}),j({type:"tag"}),{"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm","\\textsc":"textsc"}),vr={"\\textbf":"textbf","\\textmd":"textmd"},kr={"\\textit":"textit","\\textup":"textup"},Ar=(r({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textsc","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler({parser:e,funcName:t},r){r=r[0];return{type:"text",mode:e.mode,body:d(r),font:t}},mathmlBuilder(e,t){t=((e,t)=>{e=e.font;return e?wr[e]?t.withTextFontFamily(wr[e]):vr[e]?t.withTextFontWeight(vr[e]):"\\emph"===e?"textit"===t.fontShape?t.withTextFontShape("textup"):t.withTextFontShape("textit"):t.withTextFontShape(kr[e]):t})(e,t),e=S(e.body,t);return xe(e)}}),r({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new P("\\verb ended by end of line instead of matching delimiter")},mathmlBuilder(e,t){e=new N.TextNode(Ar(e)),e=new N.MathNode("mtext",[e]);return e.setAttribute("mathvariant","monospace"),e}}),e=>e.body.replace(/ /g,e.star?"\u2423":" ")),Tr=G;class E{constructor(e,t,r){this.lexer=e,this.start=t,this.end=r}static range(e,t){return t?e&&e.loc&&t.loc&&e.loc.lexer===t.loc.lexer?new E(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc}}class D{constructor(e,t){this.text=e,this.loc=t}range(e,t){return new D(t,E.range(this,e))}}c="[\u0300-\u036f]";const Nr=new RegExp(c+"+$");class Sr{constructor(e,t){this.input=e,this.settings=t,this.tokenRegex=new RegExp("([ \r\n\t]+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF][\u0300-\u036f]*|[\uD800-\uDBFF][\uDC00-\uDFFF][\u0300-\u036f]*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|(\\\\[a-zA-Z@]+)[ \r\n\t]*|\\\\[^\uD800-\uDFFF])","g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new D("EOF",new E(this,t,t));var r=this.tokenRegex.exec(e);if(null===r||r.index!==t)throw new P(`Unexpected character: '${e[t]}'`,new D(e[t],new E(this,t,t+1)));r=r[6]||r[3]||(r[2]?"\\ ":" ");if(14!==this.catcodes[r])return new D(r,new E(this,t,this.tokenRegex.lastIndex));r=e.indexOf("\n",this.tokenRegex.lastIndex);if(-1===r){if(this.tokenRegex.lastIndex=e.length,this.settings.strict)throw new P("% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode")}else this.tokenRegex.lastIndex=r+1;return this.lex()}}class qr{constructor(e={},t={}){this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new P("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(void 0===e[t]?delete this.current[t]:this.current[t]=e[t])}has(e){return Object.prototype.hasOwnProperty.call(this.current,e)||Object.prototype.hasOwnProperty.call(this.builtins,e)}get(e){return(Object.prototype.hasOwnProperty.call(this.current,e)?this.current:this.builtins)[e]}set(t,e,r=!1){if(r){for(let e=0;ethis.settings.maxExpand)throw new P("Too many expansions: infinite loop or need to increase maxExpand setting");let n=a.tokens;var o=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs)for(let e=(n=n.slice()).length-1;0<=e;--e){var s=n[e];if("#"===s.text){if(0===e)throw new P("Incomplete placeholder at end of macro body",s);if("#"===(s=n[--e]).text)n.splice(e+1,1);else{if(!/^[1-9]$/.test(s.text))throw new P("Not a valid argument number",s);n.splice(e,2,...o[+s.text-1])}}}return this.pushTokens(n),n.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;){var e;if(!1===this.expandOnce())return(e=this.stack.pop()).treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new D(e)]):void 0}expandTokens(e){var t,r=[],a=this.stack.length;for(this.pushTokens(e);this.stack.length>a;)!1===this.expandOnce(!0)&&((t=this.stack.pop()).treatAsRelax&&(t.noexpand=!1,t.treatAsRelax=!1),r.push(t));return r}expandMacroAsText(e){e=this.expandMacro(e);return e&&e.map(e=>e.text).join("")}_getExpansion(r){var e=this.macros.get(r);if(null==e)return e;if(1===r.length){r=this.lexer.catcodes[r];if(null!=r&&13!==r)return}r="function"==typeof e?e(this):e;if("string"!=typeof r)return r;{let e=0;if(-1!==r.indexOf("#"))for(var a=r.replace(/##/g,"");-1!==a.indexOf("#"+(e+1));)++e;var n=new Sr(r,this.settings),o=[];let t=n.lex();for(;"EOF"!==t.text;)o.push(t),t=n.lex();return o.reverse(),{tokens:o,numArgs:e}}}isDefined(e){return this.macros.has(e)||Object.prototype.hasOwnProperty.call(Tr,e)||Object.prototype.hasOwnProperty.call(m.math,e)||Object.prototype.hasOwnProperty.call(m.text,e)||Object.prototype.hasOwnProperty.call(Br,e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:Object.prototype.hasOwnProperty.call(Tr,e)&&!Tr[e].primitive}}const Cr=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Mr=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1D62":"i","\u2C7C":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209A":"p","\u1D63":"r","\u209B":"s","\u209C":"t","\u1D64":"u","\u1D65":"v","\u2093":"x","\u1D66":"β","\u1D67":"γ","\u1D68":"ρ","\u1D69":"\u03d5","\u1D6A":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","\u1D2C":"A","\u1D2E":"B","\u1D30":"D","\u1D31":"E","\u1D33":"G","\u1D34":"H","\u1D35":"I","\u1D36":"J","\u1D37":"K","\u1D38":"L","\u1D39":"M","\u1D3A":"N","\u1D3C":"O","\u1D3E":"P","\u1D3F":"R","\u1D40":"T","\u1D41":"U","\u2C7D":"V","\u1D42":"W","\u1D43":"a","\u1D47":"b","\u1D9C":"c","\u1D48":"d","\u1D49":"e","\u1DA0":"f","\u1D4D":"g","\u02B0":"h","\u2071":"i","\u02B2":"j","\u1D4F":"k","\u02E1":"l","\u1D50":"m","\u207F":"n","\u1D52":"o","\u1D56":"p","\u02B3":"r","\u02E2":"s","\u1D57":"t","\u1D58":"u","\u1D5B":"v","\u02B7":"w","\u02E3":"x","\u02B8":"y","\u1DBB":"z","\u1D5D":"β","\u1D5E":"γ","\u1D5F":"δ","\u1D60":"\u03d5","\u1D61":"χ","\u1DBF":"θ"}),Er=Object.freeze({"\ud835\udc9c":"A","\u212c":"B","\ud835\udc9e":"C","\ud835\udc9f":"D","\u2130":"E","\u2131":"F","\ud835\udca2":"G","\u210B":"H","\u2110":"I","\ud835\udca5":"J","\ud835\udca6":"K","\u2112":"L","\u2133":"M","\ud835\udca9":"N","\ud835\udcaa":"O","\ud835\udcab":"P","\ud835\udcac":"Q","\u211B":"R","\ud835\udcae":"S","\ud835\udcaf":"T","\ud835\udcb0":"U","\ud835\udcb1":"V","\ud835\udcb2":"W","\ud835\udcb3":"X","\ud835\udcb4":"Y","\ud835\udcb5":"Z"});var Dr={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030c":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030a":{text:"\\r",math:"\\mathring"},"\u030b":{text:"\\H"},"\u0327":{text:"\\c"}},Fr={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","č":"č","ĉ":"ĉ","ċ":"ċ","ď":"ď","ḋ":"ḋ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ĺ":"ĺ","ľ":"ľ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ď":"Ď","Ḋ":"Ḋ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ĺ":"Ĺ","Ľ":"Ľ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ť":"Ť","Ṫ":"Ṫ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"};const Ir=["bin","op","open","punct","rel"],zr=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/;class Lr{constructor(e,t,r=!1){this.mode="math",this.gullet=new Or(e,t,this.mode),this.settings=t,this.isPreamble=r,this.leftrightDepth=0,this.prevAtomType=""}expect(e,t=!0){if(this.fetch().text!==e)throw new P(`Expected '${e}', got '${this.fetch().text}'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var e=this.parseExpression(!1);if(this.expect("EOF"),this.isPreamble){const r=Object.create(null);return Object.entries(this.gullet.macros.current).forEach(([e,t])=>{r[e]=t}),this.gullet.endGroup(),r}var t=this.gullet.macros.get("\\df@tag");return this.gullet.endGroup(),t&&(this.gullet.macros.current["\\df@tag"]=t),e}static get endOfExpression(){return["}","\\endgroup","\\end","\\right","\\endtoggle","&"]}subparse(e){var t=this.nextToken,e=(this.consume(),this.gullet.pushToken(new D("}")),this.gullet.pushTokens(e),this.parseExpression(!1));return this.expect("}"),this.nextToken=t,e}parseExpression(e,t,r){var a=[];for(this.prevAtomType="";;){"math"===this.mode&&this.consumeSpaces();var n=this.fetch();if(-1!==Lr.endOfExpression.indexOf(n.text))break;if(t&&n.text===t)break;if(r&&"\\middle"===n.text)break;if(e&&Tr[n.text]&&Tr[n.text].infix)break;n=this.parseAtom(t);if(!n)break;"internal"!==n.type&&(a.push(n),this.prevAtomType="atom"===n.type?n.family:n.type)}return"text"===this.mode&&this.formLigatures(a),this.handleInfixNodes(a)}handleInfixNodes(a){let n=-1,o;for(let e=0;e{t.appendChild(e.toNode())})):1{t.appendChild(e.toNode())})):t.appendChild(e.toNode())};"undefined"!=typeof document&&"CSS1Compat"!==document.compatMode&&("undefined"!=typeof console&&console.warn("Warning: Temml doesn't work in quirks mode. Make sure your website has a suitable doctype."),jr=function(){throw new P("Temml doesn't work in quirks mode.")});const Ur=function(e,t,r){if(!r.throwOnError&&e instanceof P)return(t=new _(["temml-error"],[new W(t+"\n"+e.toString())])).style.color=r.errorColor,t.style.whiteSpace="pre-line",t;throw e},Hr=function(t,r){r=new $(r);try{return Ne($r(t,r),t,new Rr({level:r.displayMode?O.DISPLAY:O.TEXT,maxSize:r.maxSize}),r)}catch(e){return Ur(e,t,r)}};return{version:"0.10.32",render:jr,renderToString:function(e,t){return Hr(e,t).toMarkup()},postProcess:function(e){const r={};let t=0;for(let o of e.getElementsByClassName("tml-tageqn")){var a=o.getElementsByClassName("tml-eqn"),n=(0{let t=r[e.getAttribute("href").slice(1)];")"!==(t="("!==(t=-1===e.className.indexOf("tml-eqref")?(t=t.replace(/^\(/,"")).replace(/\($/,""):t).charAt(0)?"("+t:t).slice(-1)&&(t+=")"),e.textContent=t})},ParseError:P,definePreamble:function(e,t){t=new $(t);if(t.macros={},"string"==typeof e||e instanceof String)return delete(e=new Lr(e,t,!0)).gullet.macros.current["\\df@tag"],e.parse();throw new TypeError("Temml can only parse string typed expression")},__parse:function(e,t){t=new $(t);return $r(e,t)},__renderToMathMLTree:Hr,__defineSymbol:t,__defineMacro:T}}(); + var temml=function(){"use strict";class e{constructor(t,r){let a,n=" "+t;if((t=r&&r.loc)&&t.start<=t.end){r=t.lexer.input,t=(a=t.start,t.end);var o=(a===r.length?n+=" at end of input: ":n+=" at position "+(a+1)+": ",r.slice(a,t).replace(/[^]/g,"$&̲"));let e,s;e=15":">","<":"<",'"':""","'":"'"},a=/[&><"']/g;function n(e){return"ordgroup"===e.type||"color"===e.type?1===e.body.length?n(e.body[0]):e:"font"===e.type?n(e.body):e}var o=function(e,t){return void 0===e?t:e},s=function(e){return String(e).replace(a,(e=>r[e]))},l=function(e){return e.replace(t,"-$1").toLowerCase()},i=function(e){return"mathord"===(e=n(e)).type||"textord"===e.type||"atom"===e.type},m=function(e){return(e=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e))?":"===e[2]&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?e[1].toLowerCase():null:"_relative"},p=function(e){return+e.toFixed(4)};class u{constructor(e){this.displayMode=o((e=e||{}).displayMode,!1),this.annotate=o(e.annotate,!1),this.leqno=o(e.leqno,!1),this.throwOnError=o(e.throwOnError,!1),this.errorColor=o(e.errorColor,"#b22222"),this.macros=e.macros||{},this.wrap=o(e.wrap,"tex"),this.xml=o(e.xml,!1),this.colorIsTextColor=o(e.colorIsTextColor,!1),this.strict=o(e.strict,!1),this.trust=o(e.trust,!1),this.maxSize=void 0!==e.maxSize&&Array.isArray(e.maxSize)?e.maxSize:[1/0,1/0],this.maxExpand=Math.max(0,o(e.maxExpand,1e3))}isTrusted(e){if(e.url&&!e.protocol){var t=m(e.url);if(null==t)return!1;e.protocol=t}return t="function"==typeof this.trust?this.trust(e):this.trust,Boolean(t)}}const d={},h={};function c({type:e,names:t,props:r,handler:a,mathmlBuilder:n}){var o={type:e,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:void 0===r.allowedInMath||r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:a};for(let e=0;ee.toText())).join("")}}function x(e){return e.filter((e=>e)).join(" ")}class w{constructor(e,t,r){(function(e,t){this.classes=e||[],this.attributes={},this.style=t||{}}).call(this,e,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}toNode(){return function(e){var t=document.createElement(e);t.className=x(this.classes);for(let e in this.style)Object.prototype.hasOwnProperty.call(this.style,e)&&(t.style[e]=this.style[e]);for(let e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&t.setAttribute(e,this.attributes[e]);for(let e=0;e`}.call(this,"span")}}let v=class{constructor(e){this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return s(this.text)}};class k{constructor(e,t,r){this.alt=t,this.src=e,this.classes=["mord"],this.style=r}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(let t in this.style)Object.prototype.hasOwnProperty.call(this.style,t)&&(e.style[t]=this.style[t]);return e}toMarkup(){let e=`${this.alt}"}}class A{constructor(e,t,r,a){this.type=e,this.attributes={},this.children=t||[],this.classes=r||[],this.style=a||{}}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(let t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);0"}toText(){return this.children.map((e=>e.toText())).join("")}}class N{constructor(e){this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return s(this.toText())}toText(){return this.text}}const T=e=>{let t;return 1===e.length&&"mrow"===e[0].type?(t=e.pop()).type="mstyle":t=new A("mstyle",e),t};var q={MathNode:A,TextNode:N,newDocumentFragment:function(e){return new y(e)}};function S(e){return e=new q.TextNode(M[e.slice(1)]),(e=new q.MathNode("mo",[e])).setAttribute("stretchy","true"),e}const O=e=>{let t=0;if(e.body)for(let r of e.body)t+=O(r);else if("supsub"===e.type)t+=O(e.base),e.sub&&(t+=.7*O(e.sub)),e.sup&&(t+=.7*O(e.sup));else if("mathord"===e.type||"textord"===e.type)for(let a of e.text.split("")){var r=a.codePointAt(0);t+=96{var t=S(e.label);return B.includes(e.label)&&(1<(e=O(e.base))&&e<1.6?t.classes.push("tml-crooked-2"):1.6<=e&&e<2.5?t.classes.push("tml-crooked-3"):2.5<=e&&t.classes.push("tml-crooked-4")),t};const E={bin:1,close:1,inner:1,open:1,punct:1,rel:1},I={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},L={math:{},text:{}};function F(e,t,r,a,n){L[e][a]={group:t,replace:r},n&&r&&(L[e][r]=L[e][a])}var $="math",G="text",D="accent-token",P="bin",j="close",R="inner",U="mathord",H="op-token",V="open",_="punct",W="rel",X="spacing",Z="textord";F($,W,"≡","\\equiv",!0),F($,W,"≺","\\prec",!0),F($,W,"≻","\\succ",!0),F($,W,"∼","\\sim",!0),F($,W,"⟂","\\perp",!0),F($,W,"⪯","\\preceq",!0),F($,W,"⪰","\\succeq",!0),F($,W,"≃","\\simeq",!0),F($,W,"≌","\\backcong",!0),F($,W,"|","\\mid",!0),F($,W,"≪","\\ll",!0),F($,W,"≫","\\gg",!0),F($,W,"≍","\\asymp",!0),F($,W,"∥","\\parallel"),F($,W,"⌣","\\smile",!0),F($,W,"⊑","\\sqsubseteq",!0),F($,W,"⊒","\\sqsupseteq",!0),F($,W,"≐","\\doteq",!0),F($,W,"⌢","\\frown",!0),F($,W,"∋","\\ni",!0),F($,W,"∌","\\notni",!0),F($,W,"∝","\\propto",!0),F($,W,"⊢","\\vdash",!0),F($,W,"⊣","\\dashv",!0),F($,W,"∋","\\owns"),F($,W,"≘","\\arceq",!0),F($,W,"≙","\\wedgeq",!0),F($,W,"≚","\\veeeq",!0),F($,W,"≛","\\stareq",!0),F($,W,"≝","\\eqdef",!0),F($,W,"≞","\\measeq",!0),F($,W,"≟","\\questeq",!0),F($,W,"≠","\\ne",!0),F($,W,"≠","\\neq"),F($,W,"⩵","\\eqeq",!0),F($,W,"⩶","\\eqeqeq",!0),F($,W,"∷","\\dblcolon",!0),F($,W,"≔","\\coloneqq",!0),F($,W,"≕","\\eqqcolon",!0),F($,W,"∹","\\eqcolon",!0),F($,W,"⩴","\\Coloneqq",!0),F($,_,".","\\ldotp"),F($,_,"·","\\cdotp"),F($,Z,"#","\\#"),F(G,Z,"#","\\#"),F($,Z,"&","\\&"),F(G,Z,"&","\\&"),F($,Z,"ℵ","\\aleph",!0),F($,Z,"∀","\\forall",!0),F($,Z,"ℏ","\\hbar",!0),F($,Z,"∃","\\exists",!0),F($,P,"∇","\\nabla",!0),F($,Z,"♭","\\flat",!0),F($,Z,"ℓ","\\ell",!0),F($,Z,"♮","\\natural",!0),F($,Z,"Å","\\Angstrom",!0),F(G,Z,"Å","\\Angstrom",!0),F($,Z,"♣","\\clubsuit",!0),F($,Z,"♧","\\varclubsuit",!0),F($,Z,"℘","\\wp",!0),F($,Z,"♯","\\sharp",!0),F($,Z,"♢","\\diamondsuit",!0),F($,Z,"♦","\\vardiamondsuit",!0),F($,Z,"ℜ","\\Re",!0),F($,Z,"♡","\\heartsuit",!0),F($,Z,"♥","\\varheartsuit",!0),F($,Z,"ℑ","\\Im",!0),F($,Z,"♠","\\spadesuit",!0),F($,Z,"♤","\\varspadesuit",!0),F($,Z,"♀","\\female",!0),F($,Z,"♂","\\male",!0),F($,Z,"§","\\S",!0),F(G,Z,"§","\\S"),F($,Z,"¶","\\P",!0),F(G,Z,"¶","\\P"),F(G,Z,"☺","\\smiley",!0),F($,Z,"☺","\\smiley",!0),F($,Z,"†","\\dag"),F(G,Z,"†","\\dag"),F(G,Z,"†","\\textdagger"),F($,Z,"‡","\\ddag"),F(G,Z,"‡","\\ddag"),F(G,Z,"‡","\\textdaggerdbl"),F($,j,"⎱","\\rmoustache",!0),F($,V,"⎰","\\lmoustache",!0),F($,j,"⟯","\\rgroup",!0),F($,V,"⟮","\\lgroup",!0),F($,P,"∓","\\mp",!0),F($,P,"⊖","\\ominus",!0),F($,P,"⊎","\\uplus",!0),F($,P,"⊓","\\sqcap",!0),F($,P,"∗","\\ast"),F($,P,"⊔","\\sqcup",!0),F($,P,"◯","\\bigcirc",!0),F($,P,"∙","\\bullet",!0),F($,P,"‡","\\ddagger"),F($,P,"≀","\\wr",!0),F($,P,"⨿","\\amalg"),F($,P,"&","\\And"),F($,P,"⫽","\\sslash",!0),F($,W,"⟵","\\longleftarrow",!0),F($,W,"⇐","\\Leftarrow",!0),F($,W,"⟸","\\Longleftarrow",!0),F($,W,"⟶","\\longrightarrow",!0),F($,W,"⇒","\\Rightarrow",!0),F($,W,"⟹","\\Longrightarrow",!0),F($,W,"↔","\\leftrightarrow",!0),F($,W,"⟷","\\longleftrightarrow",!0),F($,W,"⇔","\\Leftrightarrow",!0),F($,W,"⟺","\\Longleftrightarrow",!0),F($,W,"↤","\\mapsfrom",!0),F($,W,"↦","\\mapsto",!0),F($,W,"⟼","\\longmapsto",!0),F($,W,"↗","\\nearrow",!0),F($,W,"↩","\\hookleftarrow",!0),F($,W,"↪","\\hookrightarrow",!0),F($,W,"↘","\\searrow",!0),F($,W,"↼","\\leftharpoonup",!0),F($,W,"⇀","\\rightharpoonup",!0),F($,W,"↙","\\swarrow",!0),F($,W,"↽","\\leftharpoondown",!0),F($,W,"⇁","\\rightharpoondown",!0),F($,W,"↖","\\nwarrow",!0),F($,W,"⇌","\\rightleftharpoons",!0),F($,U,"↯","\\lightning",!0),F($,U,"∎","\\QED",!0),F($,U,"‰","\\permil",!0),F(G,Z,"‰","\\permil"),F($,U,"☉","\\astrosun",!0),F($,U,"☼","\\sun",!0),F($,U,"☾","\\leftmoon",!0),F($,U,"☽","\\rightmoon",!0),F($,U,"⊕","\\Earth"),F($,W,"≮","\\nless",!0),F($,W,"⪇","\\lneq",!0),F($,W,"≨","\\lneqq",!0),F($,W,"≨︀","\\lvertneqq"),F($,W,"⋦","\\lnsim",!0),F($,W,"⪉","\\lnapprox",!0),F($,W,"⊀","\\nprec",!0),F($,W,"⋠","\\npreceq",!0),F($,W,"⋨","\\precnsim",!0),F($,W,"⪹","\\precnapprox",!0),F($,W,"≁","\\nsim",!0),F($,W,"∤","\\nmid",!0),F($,W,"∤","\\nshortmid"),F($,W,"⊬","\\nvdash",!0),F($,W,"⊭","\\nvDash",!0),F($,W,"⋪","\\ntriangleleft"),F($,W,"⋬","\\ntrianglelefteq",!0),F($,W,"⊄","\\nsubset",!0),F($,W,"⊅","\\nsupset",!0),F($,W,"⊊","\\subsetneq",!0),F($,W,"⊊︀","\\varsubsetneq"),F($,W,"⫋","\\subsetneqq",!0),F($,W,"⫋︀","\\varsubsetneqq"),F($,W,"≯","\\ngtr",!0),F($,W,"⪈","\\gneq",!0),F($,W,"≩","\\gneqq",!0),F($,W,"≩︀","\\gvertneqq"),F($,W,"⋧","\\gnsim",!0),F($,W,"⪊","\\gnapprox",!0),F($,W,"⊁","\\nsucc",!0),F($,W,"⋡","\\nsucceq",!0),F($,W,"⋩","\\succnsim",!0),F($,W,"⪺","\\succnapprox",!0),F($,W,"≆","\\ncong",!0),F($,W,"∦","\\nparallel",!0),F($,W,"∦","\\nshortparallel"),F($,W,"⊯","\\nVDash",!0),F($,W,"⋫","\\ntriangleright"),F($,W,"⋭","\\ntrianglerighteq",!0),F($,W,"⊋","\\supsetneq",!0),F($,W,"⊋","\\varsupsetneq"),F($,W,"⫌","\\supsetneqq",!0),F($,W,"⫌︀","\\varsupsetneqq"),F($,W,"⊮","\\nVdash",!0),F($,W,"⪵","\\precneqq",!0),F($,W,"⪶","\\succneqq",!0),F($,P,"⊴","\\unlhd"),F($,P,"⊵","\\unrhd"),F($,W,"↚","\\nleftarrow",!0),F($,W,"↛","\\nrightarrow",!0),F($,W,"⇍","\\nLeftarrow",!0),F($,W,"⇏","\\nRightarrow",!0),F($,W,"↮","\\nleftrightarrow",!0),F($,W,"⇎","\\nLeftrightarrow",!0),F($,W,"△","\\vartriangle"),F($,Z,"ℏ","\\hslash"),F($,Z,"▽","\\triangledown"),F($,Z,"◊","\\lozenge"),F($,Z,"Ⓢ","\\circledS"),F($,Z,"®","\\circledR",!0),F(G,Z,"®","\\circledR"),F(G,Z,"®","\\textregistered"),F($,Z,"∡","\\measuredangle",!0),F($,Z,"∄","\\nexists"),F($,Z,"℧","\\mho"),F($,Z,"Ⅎ","\\Finv",!0),F($,Z,"⅁","\\Game",!0),F($,Z,"‵","\\backprime"),F($,Z,"‶","\\backdprime"),F($,Z,"‷","\\backtrprime"),F($,Z,"▲","\\blacktriangle"),F($,Z,"▼","\\blacktriangledown"),F($,Z,"■","\\blacksquare"),F($,Z,"⧫","\\blacklozenge"),F($,Z,"★","\\bigstar"),F($,Z,"∢","\\sphericalangle",!0),F($,Z,"∁","\\complement",!0),F($,Z,"ð","\\eth",!0),F(G,Z,"ð","ð"),F($,Z,"╱","\\diagup"),F($,Z,"╲","\\diagdown"),F($,Z,"□","\\square"),F($,Z,"□","\\Box"),F($,Z,"◊","\\Diamond"),F($,Z,"¥","\\yen",!0),F(G,Z,"¥","\\yen",!0),F($,Z,"✓","\\checkmark",!0),F(G,Z,"✓","\\checkmark"),F($,Z,"✗","\\ballotx",!0),F(G,Z,"✗","\\ballotx"),F(G,Z,"•","\\textbullet"),F($,Z,"ℶ","\\beth",!0),F($,Z,"ℸ","\\daleth",!0),F($,Z,"ℷ","\\gimel",!0),F($,Z,"ϝ","\\digamma",!0),F($,Z,"ϰ","\\varkappa"),F($,V,"⌜","\\ulcorner",!0),F($,j,"⌝","\\urcorner",!0),F($,V,"⌞","\\llcorner",!0),F($,j,"⌟","\\lrcorner",!0),F($,W,"≦","\\leqq",!0),F($,W,"⩽","\\leqslant",!0),F($,W,"⪕","\\eqslantless",!0),F($,W,"≲","\\lesssim",!0),F($,W,"⪅","\\lessapprox",!0),F($,W,"≊","\\approxeq",!0),F($,P,"⋖","\\lessdot"),F($,W,"⋘","\\lll",!0),F($,W,"≶","\\lessgtr",!0),F($,W,"⋚","\\lesseqgtr",!0),F($,W,"⪋","\\lesseqqgtr",!0),F($,W,"≑","\\doteqdot"),F($,W,"≓","\\risingdotseq",!0),F($,W,"≒","\\fallingdotseq",!0),F($,W,"∽","\\backsim",!0),F($,W,"⋍","\\backsimeq",!0),F($,W,"⫅","\\subseteqq",!0),F($,W,"⋐","\\Subset",!0),F($,W,"⊏","\\sqsubset",!0),F($,W,"≼","\\preccurlyeq",!0),F($,W,"⋞","\\curlyeqprec",!0),F($,W,"≾","\\precsim",!0),F($,W,"⪷","\\precapprox",!0),F($,W,"⊲","\\vartriangleleft"),F($,W,"⊴","\\trianglelefteq"),F($,W,"⊨","\\vDash",!0),F($,W,"⊫","\\VDash",!0),F($,W,"⊪","\\Vvdash",!0),F($,W,"⌣","\\smallsmile"),F($,W,"⌢","\\smallfrown"),F($,W,"≏","\\bumpeq",!0),F($,W,"≎","\\Bumpeq",!0),F($,W,"≧","\\geqq",!0),F($,W,"⩾","\\geqslant",!0),F($,W,"⪖","\\eqslantgtr",!0),F($,W,"≳","\\gtrsim",!0),F($,W,"⪆","\\gtrapprox",!0),F($,P,"⋗","\\gtrdot"),F($,W,"⋙","\\ggg",!0),F($,W,"≷","\\gtrless",!0),F($,W,"⋛","\\gtreqless",!0),F($,W,"⪌","\\gtreqqless",!0),F($,W,"≖","\\eqcirc",!0),F($,W,"≗","\\circeq",!0),F($,W,"≜","\\triangleq",!0),F($,W,"∼","\\thicksim"),F($,W,"≈","\\thickapprox"),F($,W,"⫆","\\supseteqq",!0),F($,W,"⋑","\\Supset",!0),F($,W,"⊐","\\sqsupset",!0),F($,W,"≽","\\succcurlyeq",!0),F($,W,"⋟","\\curlyeqsucc",!0),F($,W,"≿","\\succsim",!0),F($,W,"⪸","\\succapprox",!0),F($,W,"⊳","\\vartriangleright"),F($,W,"⊵","\\trianglerighteq"),F($,W,"⊩","\\Vdash",!0),F($,W,"∣","\\shortmid"),F($,W,"∥","\\shortparallel"),F($,W,"≬","\\between",!0),F($,W,"⋔","\\pitchfork",!0),F($,W,"∝","\\varpropto"),F($,W,"◀","\\blacktriangleleft"),F($,W,"∴","\\therefore",!0),F($,W,"∍","\\backepsilon"),F($,W,"▶","\\blacktriangleright"),F($,W,"∵","\\because",!0),F($,W,"⋘","\\llless"),F($,W,"⋙","\\gggtr"),F($,P,"⊲","\\lhd"),F($,P,"⊳","\\rhd"),F($,W,"≂","\\eqsim",!0),F($,W,"≑","\\Doteq",!0),F($,W,"⥽","\\strictif",!0),F($,W,"⥼","\\strictfi",!0),F($,P,"∔","\\dotplus",!0),F($,P,"∖","\\smallsetminus"),F($,P,"⋒","\\Cap",!0),F($,P,"⋓","\\Cup",!0),F($,P,"⩞","\\doublebarwedge",!0),F($,P,"⊟","\\boxminus",!0),F($,P,"⊞","\\boxplus",!0),F($,P,"⧄","\\boxslash",!0),F($,P,"⋇","\\divideontimes",!0),F($,P,"⋉","\\ltimes",!0),F($,P,"⋊","\\rtimes",!0),F($,P,"⋋","\\leftthreetimes",!0),F($,P,"⋌","\\rightthreetimes",!0),F($,P,"⋏","\\curlywedge",!0),F($,P,"⋎","\\curlyvee",!0),F($,P,"⊝","\\circleddash",!0),F($,P,"⊛","\\circledast",!0),F($,P,"⊺","\\intercal",!0),F($,P,"⋒","\\doublecap"),F($,P,"⋓","\\doublecup"),F($,P,"⊠","\\boxtimes",!0),F($,P,"⋈","\\bowtie",!0),F($,P,"⋈","\\Join"),F($,P,"⟕","\\leftouterjoin",!0),F($,P,"⟖","\\rightouterjoin",!0),F($,P,"⟗","\\fullouterjoin",!0),F($,P,"∸","\\dotminus",!0),F($,P,"⟑","\\wedgedot",!0),F($,P,"⟇","\\veedot",!0),F($,P,"⩢","\\doublebarvee",!0),F($,P,"⩣","\\veedoublebar",!0),F($,P,"⩟","\\wedgebar",!0),F($,P,"⩠","\\wedgedoublebar",!0),F($,P,"⩔","\\Vee",!0),F($,P,"⩓","\\Wedge",!0),F($,P,"⩃","\\barcap",!0),F($,P,"⩂","\\barcup",!0),F($,P,"⩈","\\capbarcup",!0),F($,P,"⩀","\\capdot",!0),F($,P,"⩇","\\capovercup",!0),F($,P,"⩆","\\cupovercap",!0),F($,P,"⩍","\\closedvarcap",!0),F($,P,"⩌","\\closedvarcup",!0),F($,P,"⨪","\\minusdot",!0),F($,P,"⨫","\\minusfdots",!0),F($,P,"⨬","\\minusrdots",!0),F($,P,"⊻","\\Xor",!0),F($,P,"⊼","\\Nand",!0),F($,P,"⊽","\\Nor",!0),F($,P,"⊽","\\barvee"),F($,P,"⫴","\\interleave",!0),F($,P,"⧢","\\shuffle",!0),F($,P,"⫶","\\threedotcolon",!0),F($,P,"⦂","\\typecolon",!0),F($,P,"∾","\\invlazys",!0),F($,P,"⩋","\\twocaps",!0),F($,P,"⩊","\\twocups",!0),F($,P,"⩎","\\Sqcap",!0),F($,P,"⩏","\\Sqcup",!0),F($,P,"⩖","\\veeonvee",!0),F($,P,"⩕","\\wedgeonwedge",!0),F($,P,"⧗","\\blackhourglass",!0),F($,P,"⧆","\\boxast",!0),F($,P,"⧈","\\boxbox",!0),F($,P,"⧇","\\boxcircle",!0),F($,P,"⊜","\\circledequal",!0),F($,P,"⦷","\\circledparallel",!0),F($,P,"⦶","\\circledvert",!0),F($,P,"⦵","\\circlehbar",!0),F($,P,"⟡","\\concavediamond",!0),F($,P,"⟢","\\concavediamondtickleft",!0),F($,P,"⟣","\\concavediamondtickright",!0),F($,P,"⋄","\\diamond",!0),F($,P,"⧖","\\hourglass",!0),F($,P,"⟠","\\lozengeminus",!0),F($,P,"⌽","\\obar",!0),F($,P,"⦸","\\obslash",!0),F($,P,"⨸","\\odiv",!0),F($,P,"⧁","\\ogreaterthan",!0),F($,P,"⧀","\\olessthan",!0),F($,P,"⦹","\\operp",!0),F($,P,"⨷","\\Otimes",!0),F($,P,"⨶","\\otimeshat",!0),F($,P,"⋆","\\star",!0),F($,P,"△","\\triangle",!0),F($,P,"⨺","\\triangleminus",!0),F($,P,"⨹","\\triangleplus",!0),F($,P,"⨻","\\triangletimes",!0),F($,P,"⟤","\\whitesquaretickleft",!0),F($,P,"⟥","\\whitesquaretickright",!0),F($,P,"⨳","\\smashtimes",!0),F($,W,"⇢","\\dashrightarrow",!0),F($,W,"⇠","\\dashleftarrow",!0),F($,W,"⇇","\\leftleftarrows",!0),F($,W,"⇆","\\leftrightarrows",!0),F($,W,"⇚","\\Lleftarrow",!0),F($,W,"↞","\\twoheadleftarrow",!0),F($,W,"↢","\\leftarrowtail",!0),F($,W,"↫","\\looparrowleft",!0),F($,W,"⇋","\\leftrightharpoons",!0),F($,W,"↶","\\curvearrowleft",!0),F($,W,"↺","\\circlearrowleft",!0),F($,W,"↰","\\Lsh",!0),F($,W,"⇈","\\upuparrows",!0),F($,W,"↿","\\upharpoonleft",!0),F($,W,"⇃","\\downharpoonleft",!0),F($,W,"⊶","\\origof",!0),F($,W,"⊷","\\imageof",!0),F($,W,"⊸","\\multimap",!0),F($,W,"↭","\\leftrightsquigarrow",!0),F($,W,"⇉","\\rightrightarrows",!0),F($,W,"⇄","\\rightleftarrows",!0),F($,W,"↠","\\twoheadrightarrow",!0),F($,W,"↣","\\rightarrowtail",!0),F($,W,"↬","\\looparrowright",!0),F($,W,"↷","\\curvearrowright",!0),F($,W,"↻","\\circlearrowright",!0),F($,W,"↱","\\Rsh",!0),F($,W,"⇊","\\downdownarrows",!0),F($,W,"↾","\\upharpoonright",!0),F($,W,"⇂","\\downharpoonright",!0),F($,W,"⇝","\\rightsquigarrow",!0),F($,W,"⇝","\\leadsto"),F($,W,"⇛","\\Rrightarrow",!0),F($,W,"↾","\\restriction"),F($,Z,"‘","`"),F($,Z,"$","\\$"),F(G,Z,"$","\\$"),F(G,Z,"$","\\textdollar"),F($,Z,"¢","\\cent"),F(G,Z,"¢","\\cent"),F($,Z,"%","\\%"),F(G,Z,"%","\\%"),F($,Z,"_","\\_"),F(G,Z,"_","\\_"),F(G,Z,"_","\\textunderscore"), + F(G,Z,"␣","\\textvisiblespace",!0),F($,Z,"∠","\\angle",!0),F($,Z,"∞","\\infty",!0),F($,Z,"′","\\prime"),F($,Z,"″","\\dprime"),F($,Z,"‴","\\trprime"),F($,Z,"⁗","\\qprime"),F($,Z,"△","\\triangle"),F(G,Z,"Α","\\Alpha",!0),F(G,Z,"Β","\\Beta",!0),F(G,Z,"Γ","\\Gamma",!0),F(G,Z,"Δ","\\Delta",!0),F(G,Z,"Ε","\\Epsilon",!0),F(G,Z,"Ζ","\\Zeta",!0),F(G,Z,"Η","\\Eta",!0),F(G,Z,"Θ","\\Theta",!0),F(G,Z,"Ι","\\Iota",!0),F(G,Z,"Κ","\\Kappa",!0),F(G,Z,"Λ","\\Lambda",!0),F(G,Z,"Μ","\\Mu",!0),F(G,Z,"Ν","\\Nu",!0),F(G,Z,"Ξ","\\Xi",!0),F(G,Z,"Ο","\\Omicron",!0),F(G,Z,"Π","\\Pi",!0),F(G,Z,"Ρ","\\Rho",!0),F(G,Z,"Σ","\\Sigma",!0),F(G,Z,"Τ","\\Tau",!0),F(G,Z,"Υ","\\Upsilon",!0),F(G,Z,"Φ","\\Phi",!0),F(G,Z,"Χ","\\Chi",!0),F(G,Z,"Ψ","\\Psi",!0),F(G,Z,"Ω","\\Omega",!0),F($,U,"Α","\\Alpha",!0),F($,U,"Β","\\Beta",!0),F($,U,"Γ","\\Gamma",!0),F($,U,"Δ","\\Delta",!0),F($,U,"Ε","\\Epsilon",!0),F($,U,"Ζ","\\Zeta",!0),F($,U,"Η","\\Eta",!0),F($,U,"Θ","\\Theta",!0),F($,U,"Ι","\\Iota",!0),F($,U,"Κ","\\Kappa",!0),F($,U,"Λ","\\Lambda",!0),F($,U,"Μ","\\Mu",!0),F($,U,"Ν","\\Nu",!0),F($,U,"Ξ","\\Xi",!0),F($,U,"Ο","\\Omicron",!0),F($,U,"Π","\\Pi",!0),F($,U,"Ρ","\\Rho",!0),F($,U,"Σ","\\Sigma",!0),F($,U,"Τ","\\Tau",!0),F($,U,"Υ","\\Upsilon",!0),F($,U,"Φ","\\Phi",!0),F($,U,"Χ","\\Chi",!0),F($,U,"Ψ","\\Psi",!0),F($,U,"Ω","\\Omega",!0),F($,V,"¬","\\neg",!0),F($,V,"¬","\\lnot"),F($,Z,"⊤","\\top"),F($,Z,"⊥","\\bot"),F($,Z,"∅","\\emptyset"),F($,Z,"⌀","\\varnothing"),F($,U,"α","\\alpha",!0),F($,U,"β","\\beta",!0),F($,U,"γ","\\gamma",!0),F($,U,"δ","\\delta",!0),F($,U,"ϵ","\\epsilon",!0),F($,U,"ζ","\\zeta",!0),F($,U,"η","\\eta",!0),F($,U,"θ","\\theta",!0),F($,U,"ι","\\iota",!0),F($,U,"κ","\\kappa",!0),F($,U,"λ","\\lambda",!0),F($,U,"μ","\\mu",!0),F($,U,"ν","\\nu",!0),F($,U,"ξ","\\xi",!0),F($,U,"ο","\\omicron",!0),F($,U,"π","\\pi",!0),F($,U,"ρ","\\rho",!0),F($,U,"σ","\\sigma",!0),F($,U,"τ","\\tau",!0),F($,U,"υ","\\upsilon",!0),F($,U,"ϕ","\\phi",!0),F($,U,"χ","\\chi",!0),F($,U,"ψ","\\psi",!0),F($,U,"ω","\\omega",!0),F($,U,"ε","\\varepsilon",!0),F($,U,"ϑ","\\vartheta",!0),F($,U,"ϖ","\\varpi",!0),F($,U,"ϱ","\\varrho",!0),F($,U,"ς","\\varsigma",!0),F($,U,"φ","\\varphi",!0),F($,U,"Ϙ","\\Coppa",!0),F($,U,"ϙ","\\coppa",!0),F($,U,"ϙ","\\varcoppa",!0),F($,U,"Ϟ","\\Koppa",!0),F($,U,"ϟ","\\koppa",!0),F($,U,"Ϡ","\\Sampi",!0),F($,U,"ϡ","\\sampi",!0),F($,U,"Ϛ","\\Stigma",!0),F($,U,"ϛ","\\stigma",!0),F($,U,"⫫","\\Bot"),F($,P,"∗","∗",!0),F($,P,"+","+"),F($,P,"*","*"),F($,P,"⁄","/",!0),F($,P,"⁄","⁄"),F($,P,"−","-",!0),F($,P,"⋅","\\cdot",!0),F($,P,"∘","\\circ",!0),F($,P,"÷","\\div",!0),F($,P,"±","\\pm",!0),F($,P,"×","\\times",!0),F($,P,"∩","\\cap",!0),F($,P,"∪","\\cup",!0),F($,P,"∖","\\setminus",!0),F($,P,"∧","\\land"),F($,P,"∨","\\lor"),F($,P,"∧","\\wedge",!0),F($,P,"∨","\\vee",!0),F($,V,"⟦","\\llbracket",!0),F($,j,"⟧","\\rrbracket",!0),F($,V,"⟨","\\langle",!0),F($,V,"⟪","\\lAngle",!0),F($,V,"⦉","\\llangle",!0),F($,V,"|","\\lvert"),F($,V,"‖","\\lVert"),F($,Z,"!","\\oc"),F($,Z,"?","\\wn"),F($,Z,"↓","\\shpos"),F($,Z,"↕","\\shift"),F($,Z,"↑","\\shneg"),F($,j,"?","?"),F($,j,"!","!"),F($,j,"‼","‼"),F($,j,"⟩","\\rangle",!0),F($,j,"⟫","\\rAngle",!0),F($,j,"⦊","\\rrangle",!0),F($,j,"|","\\rvert"),F($,j,"‖","\\rVert"),F($,V,"⦃","\\lBrace",!0),F($,j,"⦄","\\rBrace",!0),F($,W,"=","\\equal",!0),F($,W,":",":"),F($,W,"≈","\\approx",!0),F($,W,"≅","\\cong",!0),F($,W,"≥","\\ge"),F($,W,"≥","\\geq",!0),F($,W,"←","\\gets"),F($,W,">","\\gt",!0),F($,W,"∈","\\in",!0),F($,W,"∉","\\notin",!0),F($,W,"","\\@not"),F($,W,"⊂","\\subset",!0),F($,W,"⊃","\\supset",!0),F($,W,"⊆","\\subseteq",!0),F($,W,"⊇","\\supseteq",!0),F($,W,"⊈","\\nsubseteq",!0),F($,W,"⊈","\\nsubseteqq"),F($,W,"⊉","\\nsupseteq",!0),F($,W,"⊉","\\nsupseteqq"),F($,W,"⊨","\\models"),F($,W,"←","\\leftarrow",!0),F($,W,"≤","\\le"),F($,W,"≤","\\leq",!0),F($,W,"<","\\lt",!0),F($,W,"→","\\rightarrow",!0),F($,W,"→","\\to"),F($,W,"≱","\\ngeq",!0),F($,W,"≱","\\ngeqq"),F($,W,"≱","\\ngeqslant"),F($,W,"≰","\\nleq",!0),F($,W,"≰","\\nleqq"),F($,W,"≰","\\nleqslant"),F($,W,"⫫","\\Perp",!0),F($,X," ","\\ "),F($,X," ","\\space"),F($,X," ","\\nobreakspace"),F(G,X," ","\\ "),F(G,X," "," "),F(G,X," ","\\space"),F(G,X," ","\\nobreakspace"),F($,X,null,"\\nobreak"),F($,X,null,"\\allowbreak"),F($,_,",",","),F(G,_,":",":"),F($,_,";",";"),F($,P,"⊼","\\barwedge"),F($,P,"⊻","\\veebar"),F($,P,"⊙","\\odot",!0),F($,P,"⊕︎","\\oplus"),F($,P,"⊗","\\otimes",!0),F($,Z,"∂","\\partial",!0),F($,P,"⊘","\\oslash",!0),F($,P,"⊚","\\circledcirc",!0),F($,P,"⊡","\\boxdot",!0),F($,P,"△","\\bigtriangleup"),F($,P,"▽","\\bigtriangledown"),F($,P,"†","\\dagger"),F($,P,"⋄","\\diamond"),F($,P,"◃","\\triangleleft"),F($,P,"▹","\\triangleright"),F($,V,"{","\\{"),F(G,Z,"{","\\{"),F(G,Z,"{","\\textbraceleft"),F($,j,"}","\\}"),F(G,Z,"}","\\}"),F(G,Z,"}","\\textbraceright"),F($,V,"{","\\lbrace"),F($,j,"}","\\rbrace"),F($,V,"[","\\lbrack",!0),F(G,Z,"[","\\lbrack",!0),F($,j,"]","\\rbrack",!0),F(G,Z,"]","\\rbrack",!0),F($,V,"(","\\lparen",!0),F($,j,")","\\rparen",!0),F($,V,"⦇","\\llparenthesis",!0),F($,j,"⦈","\\rrparenthesis",!0),F(G,Z,"<","\\textless",!0),F(G,Z,">","\\textgreater",!0),F($,V,"⌊","\\lfloor",!0),F($,j,"⌋","\\rfloor",!0),F($,V,"⌈","\\lceil",!0),F($,j,"⌉","\\rceil",!0),F($,Z,"\\","\\backslash"),F($,Z,"|","|"),F($,Z,"|","\\vert"),F(G,Z,"|","\\textbar",!0),F($,Z,"‖","\\|"),F($,Z,"‖","\\Vert"),F(G,Z,"‖","\\textbardbl"),F(G,Z,"~","\\textasciitilde"),F(G,Z,"\\","\\textbackslash"),F(G,Z,"^","\\textasciicircum"),F($,W,"↑","\\uparrow",!0),F($,W,"⇑","\\Uparrow",!0),F($,W,"↓","\\downarrow",!0),F($,W,"⇓","\\Downarrow",!0),F($,W,"↕","\\updownarrow",!0),F($,W,"⇕","\\Updownarrow",!0),F($,H,"∐","\\coprod"),F($,H,"⋁","\\bigvee"),F($,H,"⋀","\\bigwedge"),F($,H,"⨄","\\biguplus"),F($,H,"⨄","\\bigcupplus"),F($,H,"⨃","\\bigcupdot"),F($,H,"⨇","\\bigdoublevee"),F($,H,"⨈","\\bigdoublewedge"),F($,H,"⋂","\\bigcap"),F($,H,"⋃","\\bigcup"),F($,H,"∫","\\int"),F($,H,"∫","\\intop"),F($,H,"∬","\\iint"),F($,H,"∭","\\iiint"),F($,H,"∏","\\prod"),F($,H,"∑","\\sum"),F($,H,"⨂","\\bigotimes"),F($,H,"⨁","\\bigoplus"),F($,H,"⨀","\\bigodot"),F($,H,"⨉","\\bigtimes"),F($,H,"∮","\\oint"),F($,H,"∯","\\oiint"),F($,H,"∰","\\oiiint"),F($,H,"∱","\\intclockwise"),F($,H,"∲","\\varointclockwise"),F($,H,"⨌","\\iiiint"),F($,H,"⨍","\\intbar"),F($,H,"⨎","\\intBar"),F($,H,"⨏","\\fint"),F($,H,"⨒","\\rppolint"),F($,H,"⨓","\\scpolint"),F($,H,"⨕","\\pointint"),F($,H,"⨖","\\sqint"),F($,H,"⨗","\\intlarhk"),F($,H,"⨘","\\intx"),F($,H,"⨙","\\intcap"),F($,H,"⨚","\\intcup"),F($,H,"⨅","\\bigsqcap"),F($,H,"⨆","\\bigsqcup"),F($,H,"∫","\\smallint"),F(G,R,"…","\\textellipsis"),F($,R,"…","\\mathellipsis"),F(G,R,"…","\\ldots",!0),F($,R,"…","\\ldots",!0),F($,R,"⋰","\\iddots",!0),F($,R,"⋯","\\@cdots",!0),F($,R,"⋱","\\ddots",!0),F($,Z,"⋮","\\varvdots"),F(G,Z,"⋮","\\textvdots"),F($,D,"ˊ","\\acute"),F($,D,"`","\\grave"),F($,D,"¨","\\ddot"),F($,D,"…","\\dddot"),F($,D,"….","\\ddddot"),F($,D,"~","\\tilde"),F($,D,"‾","\\bar"),F($,D,"˘","\\breve"),F($,D,"ˇ","\\check"),F($,D,"^","\\hat"),F($,D,"→","\\vec"),F($,D,"˙","\\dot"),F($,D,"˚","\\mathring"),F($,U,"ı","\\imath",!0),F($,U,"ȷ","\\jmath",!0),F($,Z,"ı","ı"),F($,Z,"ȷ","ȷ"),F(G,Z,"ı","\\i",!0),F(G,Z,"ȷ","\\j",!0),F(G,Z,"ß","\\ss",!0),F(G,Z,"æ","\\ae",!0),F(G,Z,"œ","\\oe",!0),F(G,Z,"ø","\\o",!0),F($,U,"ø","\\o",!0),F(G,Z,"Æ","\\AE",!0),F(G,Z,"Œ","\\OE",!0),F(G,Z,"Ø","\\O",!0),F($,U,"Ø","\\O",!0),F(G,D,"ˊ","\\'"),F(G,D,"ˋ","\\`"),F(G,D,"ˆ","\\^"),F(G,D,"˜","\\~"),F(G,D,"ˉ","\\="),F(G,D,"˘","\\u"),F(G,D,"˙","\\."),F(G,D,"¸","\\c"),F(G,D,"˚","\\r"),F(G,D,"ˇ","\\v"),F(G,D,"¨",'\\"'),F(G,D,"˝","\\H"),F($,D,"ˊ","\\'"),F($,D,"ˋ","\\`"),F($,D,"ˆ","\\^"),F($,D,"˜","\\~"),F($,D,"ˉ","\\="),F($,D,"˘","\\u"),F($,D,"˙","\\."),F($,D,"¸","\\c"),F($,D,"˚","\\r"),F($,D,"ˇ","\\v"),F($,D,"¨",'\\"'),F($,D,"˝","\\H");const Y={"--":!0,"---":!0,"``":!0,"''":!0};F(G,Z,"–","--",!0),F(G,Z,"–","\\textendash"),F(G,Z,"—","---",!0),F(G,Z,"—","\\textemdash"),F(G,Z,"‘","`",!0),F(G,Z,"‘","\\textquoteleft"),F(G,Z,"’","'",!0),F(G,Z,"’","\\textquoteright"),F(G,Z,"“","``",!0),F(G,Z,"“","\\textquotedblleft"),F(G,Z,"”","''",!0),F(G,Z,"”","\\textquotedblright"),F($,Z,"°","\\degree",!0),F(G,Z,"°","\\degree"),F(G,Z,"°","\\textdegree",!0),F($,Z,"£","\\pounds"),F($,Z,"£","\\mathsterling",!0),F(G,Z,"£","\\pounds"),F(G,Z,"£","\\textsterling",!0),F($,Z,"✠","\\maltese"),F(G,Z,"✠","\\maltese"),F($,Z,"€","\\euro",!0),F(G,Z,"€","\\euro",!0),F(G,Z,"€","\\texteuro"),F($,Z,"©","\\copyright",!0),F(G,Z,"©","\\textcopyright"),F($,Z,"⌀","\\diameter",!0),F(G,Z,"⌀","\\diameter"),F($,Z,"𝛤","\\varGamma"),F($,Z,"𝛥","\\varDelta"),F($,Z,"𝛩","\\varTheta"),F($,Z,"𝛬","\\varLambda"),F($,Z,"𝛯","\\varXi"),F($,Z,"𝛱","\\varPi"),F($,Z,"𝛴","\\varSigma"),F($,Z,"𝛶","\\varUpsilon"),F($,Z,"𝛷","\\varPhi"),F($,Z,"𝛹","\\varPsi"),F($,Z,"𝛺","\\varOmega"),F(G,Z,"𝛤","\\varGamma"),F(G,Z,"𝛥","\\varDelta"),F(G,Z,"𝛩","\\varTheta"),F(G,Z,"𝛬","\\varLambda"),F(G,Z,"𝛯","\\varXi"),F(G,Z,"𝛱","\\varPi"),F(G,Z,"𝛴","\\varSigma"),F(G,Z,"𝛶","\\varUpsilon"),F(G,Z,"𝛷","\\varPhi"),F(G,Z,"𝛹","\\varPsi"),F(G,Z,"𝛺","\\varOmega");var K='0123456789/@."';for(let e=0;e{var r;0===e.children.length||"mtext"!==e.children[e.children.length-1].type?(r=new q.MathNode("mtext",[new q.TextNode(t.children[0].text)]),e.children.push(r)):e.children[e.children.length-1].children[0].text+=t.children[0].text},pe=e=>{if("mrow"!==e.type&&"mstyle"!==e.type)return e;if(0===e.children.length)return e;var t=new q.MathNode("mrow");for(let n=0;n("textord"===e.type&&"."===e.text||"atom"===e.type&&","===e.text)&&e.loc&&t.loc&&e.loc.end===t.loc.start,he=e=>"atom"===e.type&&"rel"===e.family||"mclass"===e.type&&"mrel"===e.mclass,ce=function(e,t,r=!1){if(!r&&1===e.length)return(r=be(e[0],t))instanceof A&&"mo"===r.type&&(r.setAttribute("lspace","0em"),r.setAttribute("rspace","0em")),[r];(e=>{if(!(e.length<2)){var t,r=[];let n=!1;for(let t=0;tr[a].start+1&&"supsub"===(t=e[r[a].start+1]).type&&t.base&&"textord"===t.base.type&&ue.test(t.base.text)&&(t.base.text=e[r[a].start].text+t.base.text,e.splice(r[a].start,1))}}})(e);var a=[];for(let r=0;rnew q.MathNode("mtd",[],[],{padding:"0",width:"50%"});function ye(e,t,r,a){let n=null;1===e.length&&"tag"===e[0].type&&(n=e[0].tag,e=e[0].body);e=ce(e,r);var o=a.displayMode||a.annotate?"none":a.wrap,s=0===e.length?null:e[0];let l=1===e.length&&null===n&&s instanceof A?e[0]:function(e,t,r){var a,n=[];let o=[],s=[],l=0,i=0,m=0;for(;i(t=ge(t[0].body,r),(t=pe(t)).classes.push("tml-tag"),e=new q.MathNode("mtd",[e]),(r=[fe(),e,fe()])[a?0:2].classes.push(a?"tml-left":"tml-right"),r[a?0:2].children.push(t),e=new q.MathNode("mtr",r,["tml-tageqn"]),(a=new q.MathNode("mtable",[e])).style.width="100%",a.setAttribute("displaystyle","true"),a))(l,n,r,a.leqno)),a.annotate&&((s=new q.MathNode("annotation",[new q.TextNode(t)])).setAttribute("encoding","application/x-tex"),l=new q.MathNode("semantics",[l,s])),e=new q.MathNode("math",[l]),a.xml&&e.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a.displayMode&&(e.setAttribute("display","block"),e.style.display="block math",e.classes=["tml-display"]),e}const xe="acegıȷmnopqrsuvwxyzαγεηικμνοπρςστυχωϕ𝐚𝐜𝐞𝐠𝐦𝐧𝐨𝐩𝐪𝐫𝐬𝐮𝐯𝐰𝐱𝐲𝐳",we=new Set(["\\alpha","\\gamma","\\delta","\\epsilon","\\eta","\\iota","\\kappa","\\mu","\\nu","\\pi","\\rho","\\sigma","\\tau","\\upsilon","\\chi","\\psi","\\omega","\\imath","\\jmath"]),ve=new Set(["\\Gamma","\\Delta","\\Sigma","\\Omega","\\beta","\\delta","\\lambda","\\theta","\\psi"]);function ke(e){return"string"!=typeof e&&(e=e.unit),-1r.maxSize[1]?{number:r.maxSize[1],unit:"pt"}:{number:a,unit:n};case"em":case"ex":return"ex"===n&&(a*=.431),a=Math.min(a/Me(r.level),r.maxSize[0]),{number:p(a),unit:"em"};case"bp":return{number:a=a>r.maxSize[1]?r.maxSize[1]:a,unit:"pt"};case"pt":case"pc":case"dd":case"cc":case"nd":case"nc":case"sp":return a=Math.min(a*Se[n],r.maxSize[1]),{number:p(a),unit:"pt"};case"mu":return a=Math.min(a/18,r.maxSize[0]),{number:p(a),unit:"em"};default:throw new e("Invalid unit: '"+n+"'")}}X=(e,t)=>{var r=e.isStretchy?z(e):new q.MathNode("mo",[le(e.label,e.mode)]);if("\\vec"===e.label)r.style.transform="scale(0.75) translate(10%, 30%)";else if(r.style.mathStyle="normal",r.style.mathDepth="0",Te.has(e.label)&&i(e.base)){let t="";var a=e.base.text;(-1{t=b(t[0]);var r=!Ne.has(e.funcName);return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,base:t}},mathmlBuilder:X}),c({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\c","\\u","\\.",'\\"',"\\r","\\H","\\v"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{t=b(t[0]);var r=e.parser.mode;return"math"===r&&e.parser.settings.strict&&console.log(`Temml parse error: Command ${e.funcName} is invalid in math mode.`),"text"===r&&t.text&&1===t.text.length&&e.funcName in qe&&-1(r=r[0],{type:"accentUnder",mode:e.mode,label:t,base:r}),mathmlBuilder:(e,t)=>{var r=z(e);return e=(r.style["math-depth"]=0,new q.MathNode("munder",[be(e.base,t),r]))}}),{pt:800/803,pc:9600/803,dd:1238/1157*800/803,cc:12.792133216944668,nd:685/642*800/803,nc:1370/107*800/803,sp:1/65536*800/803,mm:25.4/72,cm:2.54/72,in:1/72,px:96/72}),Oe=["em","ex","mu","pt","mm","cm","in","px","bp","pc","dd","cc","nd","nc","sp"],Me=e=>[1,.7,.5][Math.max(e-1,0)],Be=e=>{var t=new q.MathNode("mspace");return t.setAttribute("width",e+"em"),t},Ce=(e,t=.3,r=0)=>null==e&&0===r?Be(t):(e=e?[e]:[],0!==t&&e.unshift(Be(t)),0Number(e)/Me(t),Ee=(e,t,r,a)=>{var n=C(e),o="eq"===e.slice(1,3),s=(e="x"===e.charAt(1)?"1.75":"cd"===e.slice(2,4)?"3.0":o?"1.0":"2.0",a=(n.setAttribute("lspace","0"),n.setAttribute("rspace",o?"0.5em":"0"),a.withLevel(a.level<2?2:3)),ze(e,a.level)),l=ze(e,3);s=Ce(null,s.toFixed(4),0),l=Ce(null,l.toFixed(4),0),o=ze(o?0:.3,a.level).toFixed(4);let i,m;var p=t&&t.body&&(t.body.body||0({type:"xArrow",mode:e.mode,name:t,body:r[0],below:a[0]}),mathmlBuilder:(e,t)=>((e=[Ee(e.name,e.body,e.below,t)]).unshift(Be(.2778)),e.push(Be(.2778)),new q.MathNode("mrow",e))}),{"\\xtofrom":["\\xrightarrow","\\xleftarrow"],"\\xleftrightharpoons":["\\xleftharpoonup","\\xrightharpoondown"],"\\xrightleftharpoons":["\\xrightharpoonup","\\xleftharpoondown"],"\\yieldsLeftRight":["\\yields","\\yieldsLeft"],"\\equilibrium":["\\longrightharpoonup","\\longleftharpoondown"],"\\equilibriumRight":["\\longrightharpoonup","\\eqleftharpoondown"],"\\equilibriumLeft":["\\eqrightharpoonup","\\longleftharpoondown"]});function Le(e,t){if(e&&e.type===t)return e;throw new Error(`Expected node of type ${t}, but got `+(e?"node of type "+e.type:String(e)))}function Fe(e){var t=$e(e);if(t)return t;throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)))}function $e(e){return e&&("atom"===e.type||Object.prototype.hasOwnProperty.call(I,e.type))?e:null}c({type:"stackedArrow",names:["\\xtofrom","\\xleftrightharpoons","\\xrightleftharpoons","\\yieldsLeftRight","\\equilibrium","\\equilibriumRight","\\equilibriumLeft"],props:{numArgs:1,numOptionalArgs:1},handler({parser:e,funcName:t},r,a){var n=r[0]?{type:"hphantom",mode:e.mode,body:r[0]}:null,o=a[0]?{type:"hphantom",mode:e.mode,body:a[0]}:null;return{type:"stackedArrow",mode:e.mode,name:t,body:r[0],upperArrowBelow:o,lowerArrowBody:n,below:a[0]}},mathmlBuilder(e,t){var r=Ie[e.name][0],a=Ie[e.name][1];r=Ee(r,e.body,e.upperArrowBelow,t),a=Ee(a,e.lowerArrowBody,e.below,t);let n;return(t=new q.MathNode("mpadded",[r])).setAttribute("voffset","0.3em"),t.setAttribute("height","+0.3em"),t.setAttribute("depth","-0.3em"),(n="\\equilibriumLeft"===e.name?((r=new q.MathNode("mpadded",[a])).setAttribute("width","0.5em"),new q.MathNode("mpadded",[Be(.2778),r,t,Be(.2778)])):(t.setAttribute("width","\\equilibriumRight"===e.name?"0.5em":"0"),new q.MathNode("mpadded",[Be(.2778),t,a,Be(.2778)]))).setAttribute("voffset","-0.18em"),n.setAttribute("height","-0.18em"),n.setAttribute("depth","+0.18em"),n}});const Ge={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},De=e=>"textord"===e.type&&"@"===e.text;c({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler:({parser:e,funcName:t},r)=>({type:"cdlabel",mode:e.mode,side:t.slice(4),label:r[0]}),mathmlBuilder(e,t){let r=new q.MathNode("mrow",[be(e.label,t)]);return(r=new q.MathNode("mpadded",[r])).setAttribute("width","0"),"left"===e.side&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),(r=new q.MathNode("mstyle",[r])).setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),c({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler:({parser:e},t)=>({type:"cdlabelparent",mode:e.mode,fragment:t[0]}),mathmlBuilder:(e,t)=>new q.MathNode("mrow",[be(e.fragment,t)])}),c({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler({parser:t,token:r},a){var n=Le(a[0],"ordgroup").body;let o="";for(let e=0;e{let t=e.toString(16);return 1===t.length?"0"+t:t},_e=JSON.parse('{ "Apricot": "#ffb484", "Aquamarine": "#08b4bc", "Bittersweet": "#c84c14", "blue": "#0000FF", "Blue": "#303494", "BlueGreen": "#08b4bc", "BlueViolet": "#503c94", "BrickRed": "#b8341c", "brown": "#BF8040", "Brown": "#802404", "BurntOrange": "#f8941c", "CadetBlue": "#78749c", "CarnationPink": "#f884b4", "Cerulean": "#08a4e4", "CornflowerBlue": "#40ace4", "cyan": "#00FFFF", "Cyan": "#08acec", "Dandelion": "#ffbc44", "darkgray": "#404040", "DarkOrchid": "#a8548c", "Emerald": "#08ac9c", "ForestGreen": "#089c54", "Fuchsia": "#90348c", "Goldenrod": "#ffdc44", "gray": "#808080", "Gray": "#98949c", "green": "#00FF00", "Green": "#08a44c", "GreenYellow": "#e0e474", "JungleGreen": "#08ac9c", "Lavender": "#f89cc4", "lightgray": "#c0c0c0", "lime": "#BFFF00", "LimeGreen": "#90c43c", "magenta": "#FF00FF", "Magenta": "#f0048c", "Mahogany": "#b0341c", "Maroon": "#b03434", "Melon": "#f89c7c", "MidnightBlue": "#086494", "Mulberry": "#b03c94", "NavyBlue": "#086cbc", "olive": "#7F7F00", "OliveGreen": "#407c34", "orange": "#FF8000", "Orange": "#f8843c", "OrangeRed": "#f0145c", "Orchid": "#b074ac", "Peach": "#f8945c", "Periwinkle": "#8074bc", "PineGreen": "#088c74", "pink": "#ff7f7f", "Plum": "#98248c", "ProcessBlue": "#08b4ec", "purple": "#BF0040", "Purple": "#a0449c", "RawSienna": "#983c04", "red": "#ff0000", "Red": "#f01c24", "RedOrange": "#f86434", "RedViolet": "#a0246c", "Rhodamine": "#f0549c", "Royallue": "#0874bc", "RoyalPurple": "#683c9c", "RubineRed": "#f0047c", "Salmon": "#f8948c", "SeaGreen": "#30bc9c", "Sepia": "#701404", "SkyBlue": "#48c4dc", "SpringGreen": "#c8dc64", "Tan": "#e09c74", "teal": "#007F7F", "TealBlue": "#08acb4", "Thistle": "#d884b4", "Turquoise": "#08b4cc", "violet": "#800080", "Violet": "#60449c", "VioletRed": "#f054a4", "WildStrawberry": "#f0246c", "yellow": "#FFFF00", "Yellow": "#fff404", "YellowGreen": "#98cc6c", "YellowOrange": "#ffa41c" }'),We=(t,r)=>{let a="";if("HTML"===t){if(!Pe.test(r))throw new e("Invalid HTML input.");a=r}else if("RGB"===t){if(!Re.test(r))throw new e("Invalid RGB input.");r.split(",").map((e=>{a+=Ve(Number(e.trim()))}))}else{if(!Ue.test(r))throw new e("Invalid rbg input.");r.split(",").map((t=>{if(1<(t=Number(t.trim())))throw new e("Color rgb input must be < 1.");a+=Ve(Number((255*t).toFixed(0)))}))}return a="#"!==a.charAt(0)?"#"+a:a},Xe=(t,r,a)=>{var n="\\\\color@"+t;if(je.exec(t))return He.test(t)?"#"+t:("#"!==t.charAt(0)&&(r.has(n)?t=r.get(n).tokens[0].text:_e[t]&&(t=_e[t])),t);throw new e("Invalid color: '"+t+"'",a)};_=(e,t)=>{let r=ce(e.body,t.withColor(e.color));return r=r.map((t=>(t.style.color=e.color,t))),q.newDocumentFragment(r)},c({type:"color",names:["\\textcolor"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,argTypes:["raw","raw","original"]},handler({parser:e,token:t},r,a){var n;let o="";return o=(a=a[0]&&Le(a[0],"raw").string)?(n=Le(r[0],"raw").string,We(a,n)):Xe(Le(r[0],"raw").string,e.gullet.macros,t),a=r[1],{type:"color",mode:e.mode,color:o,isTextColor:!0,body:f(a)}},mathmlBuilder:_}),c({type:"color",names:["\\color"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0,argTypes:["raw","raw"]},handler({parser:e,breakOnTokenText:t,token:r},a,n){var o;let s="";return s=(n=n[0]&&Le(n[0],"raw").string)?(o=Le(a[0],"raw").string,We(n,o)):Xe(Le(a[0],"raw").string,e.gullet.macros,r),n=e.parseExpression(!0,t,!0),{type:"color",mode:e.mode,color:s,isTextColor:!1,body:n}},mathmlBuilder:_}),c({type:"color",names:["\\definecolor"],props:{numArgs:3,allowedInText:!0,argTypes:["raw","raw","raw"]},handler({parser:t,token:r},a){var n=Le(a[0],"raw").string;if(!/^[A-Za-z]+$/.test(n))throw new e("Color name must be latin letters.",r);var o=Le(a[1],"raw").string;if(["HTML","RGB","rgb"].includes(o))return a=Le(a[2],"raw").string,o=We(o,a),t.gullet.macros.set("\\\\color@"+n,{tokens:[{text:o}],numArgs:0}),{type:"internal",mode:t.mode};throw new e("Color model must be HTML, RGB, or rgb.",r)}}),c({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler({parser:e},t,r){var a="["===e.gullet.future().text?e.parseSizeGroup(!0):null,n=!e.settings.displayMode;return{type:"cr",mode:e.mode,newLine:n,size:a&&Le(a,"size").value}},mathmlBuilder(e,t){var r=new q.MathNode("mo");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size)&&(e=Ae(e.size,t),r.setAttribute("height",e.number+e.unit)),r}});const Ze={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Ye=t=>{var r=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(r))throw new e("Expected a control sequence",t);return r},Ke=(e,t,r,a)=>{let n=e.gullet.macros.get(r.text);null==n&&(r.noexpand=!0,n={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,n,a)},Je=(c({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler({parser:t,funcName:r}){t.consumeSpaces();var a=t.fetch();if(Ze[a.text])return"\\global"!==r&&"\\\\globallong"!==r||(a.text=Ze[a.text]),Le(t.parseFunction(),"internal");throw new e("Invalid token after macro prefix",a)}}),c({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler({parser:t,funcName:r}){let a=t.gullet.popToken();var n=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(n))throw new e("Expected a control sequence",a);let o,s=0;for(var l=[[]];"{"!==t.gullet.future().text;)if("#"===(a=t.gullet.popToken()).text){if("{"===t.gullet.future().text){o=t.gullet.future(),l[s].push("{");break} + if(a=t.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new e(`Invalid argument number "${a.text}"`);if(parseInt(a.text)!==s+1)throw new e(`Argument number "${a.text}" out of order`);s++,l.push([])}else{if("EOF"===a.text)throw new e("Expected a macro definition");l[s].push(a.text)}let i=t.gullet.consumeArg().tokens;if(o&&i.unshift(o),"\\edef"===r||"\\xdef"===r){if((i=t.gullet.expandTokens(i)).length>t.gullet.settings.maxExpand)throw new e("Too many expansions in an "+r);i.reverse()}return t.gullet.macros.set(n,{tokens:i,numArgs:s,delimiters:l},r===Ze[r]),{type:"internal",mode:t.mode}}}),c({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler({parser:e,funcName:t}){var r=Ye(e.gullet.popToken()),a=(e.gullet.consumeSpaces(),(e=>{let t=e.gullet.popToken();return"="===t.text&&" "===(t=e.gullet.popToken()).text?e.gullet.popToken():t})(e));return Ke(e,r,a,"\\\\globallet"===t),{type:"internal",mode:e.mode}}}),c({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler({parser:e,funcName:t}){var r=Ye(e.gullet.popToken()),a=e.gullet.popToken(),n=e.gullet.popToken();return Ke(e,r,n,"\\\\globalfuture"===t),e.gullet.pushToken(n),e.gullet.pushToken(a),{type:"internal",mode:e.mode}}}),c({type:"internal",names:["\\newcommand","\\renewcommand","\\providecommand"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler({parser:t,funcName:r}){let a="";var n;if((n=("{"===(n=t.gullet.popToken()).text?(a=Ye(t.gullet.popToken()),t.gullet.popToken()):a=Ye(n),t.gullet.isDefined(a)))&&"\\newcommand"===r)throw new e(`\\newcommand{${a}} attempting to redefine ${a}; use \\renewcommand`);if(!n&&"\\renewcommand"===r)throw new e(`\\renewcommand{${a}} when command ${a} does not yet exist; use \\newcommand`);let o=0;if("["===t.gullet.future().text){if(t.gullet.popToken(),n=t.gullet.popToken(),!/^[0-9]$/.test(n.text))throw new e(`Invalid number of arguments: "${n.text}"`);if(o=parseInt(n.text),"]"!==(n=t.gullet.popToken()).text)throw new e(`Invalid argument "${n.text}"`)}return r=t.gullet.consumeArg().tokens,t.gullet.macros.set(a,{tokens:r,numArgs:o}),{type:"internal",mode:t.mode}}}),{"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}}),Qe=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","⦇","\\llparenthesis","⦈","\\rrparenthesis","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lAngle","⟪","\\rAngle","⟫","\\llangle","⦉","\\rrangle","⦊","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","\\llbracket","\\rrbracket","⟦","⟦","\\lBrace","\\rBrace","⦃","⦄","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."],et=["}","\\left","\\middle","\\right"],tt=e=>0","\\gt"].includes(a.text)&&(a.text="⟩"),a;throw new e(a?`Invalid delimiter '${a.text}' after '${r.funcName}'`:`Invalid delimiter type '${t.type}'`,t)}const nt=["/","\\","\\backslash","\\vert","|"];c({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>(t=at(t[0],e),{type:"delimsizing",mode:e.parser.mode,size:Je[e.funcName].size,mclass:Je[e.funcName].mclass,delim:t.text}),mathmlBuilder:e=>{var t=[];"."===e.delim&&(e.delim=""),t.push(le(e.delim,e.mode)),t=new q.MathNode("mo",t);return"mopen"===e.mclass||"mclose"===e.mclass?t.setAttribute("fence","true"):t.setAttribute("fence","false"),(nt.includes(e.delim)||-1({type:"leftright-right",mode:e.parser.mode,delim:at(t[0],e).text})}),c({type:"leftright",names:["\\left"],props:{numArgs:1,argTypes:["primitive"]},handler:(t,r)=>{r=at(r[0],t);var a=t.parser;++a.leftrightDepth;let n=a.parseExpression(!1,null,!0),o=a.fetch();for(;"\\middle"===o.text;){a.consume();var s=a.fetch().text;if(!L.math[s])throw new e(`Invalid delimiter '${s}' after '\\middle'`);at({type:"atom",mode:"math",text:s},{funcName:"\\middle"}),n.push({type:"middle",mode:"math",delim:s}),a.consume(),n=n.concat(a.parseExpression(!1,null,!0)),o=a.fetch()}return--a.leftrightDepth,a.expect("\\right",!1),t=Le(a.parseFunction(),"leftright-right"),{type:"leftright",mode:a.mode,body:n,left:r.text,right:t.delim}},mathmlBuilder:(e,t)=>{var r;if(e.body)return t=ce(e.body,t),"."===e.left&&(e.left=""),(r=new q.MathNode("mo",[le(e.left,e.mode)])).setAttribute("fence","true"),r.setAttribute("form","prefix"),("/"===e.left||"\\"===e.left||-1{if(r=at(r[0],t),t.parser.leftrightDepth)return{type:"middle",mode:t.parser.mode,delim:r.text};throw new e("\\middle without preceding \\left",r)},mathmlBuilder:(e,t)=>{var r=le(e.delim,e.mode);return(r=new q.MathNode("mo",[r])).setAttribute("fence","true"),-1{var t=new q.MathNode("mspace");return t.setAttribute("width","3pt"),t};P=(e,t)=>{let r;switch(r=-1({type:"enclose",mode:e.mode,label:"\\fbox",body:t[0]})}),c({type:"enclose",names:["\\angl","\\cancel","\\bcancel","\\xcancel","\\sout","\\overline","\\boxed","\\longdiv","\\phase"],props:{numArgs:1},handler:({parser:e,funcName:t},r)=>(r=r[0],{type:"enclose",mode:e.mode,label:t,body:r}),mathmlBuilder:P}),c({type:"enclose",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:({parser:e,funcName:t},r)=>(r=r[0],{type:"enclose",mode:e.mode,label:t,body:r}),mathmlBuilder:P}),c({type:"enclose",names:["\\textcircled"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler:({parser:e,funcName:t},r)=>(r=r[0],{type:"enclose",mode:e.mode,label:t,body:r}),mathmlBuilder:P});const st={};function lt({type:e,names:t,props:r,handler:a,mathmlBuilder:n}){var o={type:e,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a};for(let e=0;e{let t="";for(let r=e.length-1;-1"EOF"===(e=e.future().text)?[null,""]:[bt[e.charAt(0)],e],yt=(e,t,r)=>{for(let a=1;aa&&(r+=" ",a=n),r+=t[e].text,a+=t[e].text.length}return r}ht("\\char",(function(t){let r,a=t.popToken(),n="";if("'"===a.text)r=8,a=t.popToken();else if('"'===a.text)r=16,a=t.popToken();else if("`"===a.text)if("\\"===(a=t.popToken()).text[0])n=a.text.charCodeAt(1);else{if("EOF"===a.text)throw new e("\\char` missing argument");n=a.text.charCodeAt(0)}else r=10;if(r){let o,s=a.text;if(null==(n=bt[s.charAt(0)])||n>=r)throw new e(`Invalid base-${r} digit `+a.text);for(n=yt(n,s,r),[o,s]=ft(t);null!=o&&o":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcap":"\\dotsb","\\bigsqcup":"\\dotsb","\\bigtimes":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},vt=(ht("\\dots",(function(e){let t="\\dotso";return(e=e.expandAfterFuture().text)in wt?t=wt[e]:("\\not"===e.slice(0,4)||e in L.math&&["bin","rel"].includes(L.math[e].group))&&(t="\\dotsb"),t})),{")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0}),kt=(ht("\\dotso",(function(e){return e.future().text in vt?"\\ldots\\,":"\\ldots"})),ht("\\dotsc",(function(e){return(e=e.future().text)in vt&&","!==e?"\\ldots\\,":"\\ldots"})),ht("\\cdots",(function(e){return e.future().text in vt?"\\@cdots\\,":"\\@cdots"})),ht("\\dotsb","\\cdots"),ht("\\dotsm","\\cdots"),ht("\\dotsi","\\!\\cdots"),ht("\\idotsint","\\dotsi"),ht("\\dotsx","\\ldots\\,"),ht("\\DOTSI","\\relax"),ht("\\DOTSB","\\relax"),ht("\\DOTSX","\\relax"),ht("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),ht("\\,","{\\tmspace+{3mu}{.1667em}}"),ht("\\thinspace","\\,"),ht("\\>","\\mskip{4mu}"),ht("\\:","{\\tmspace+{4mu}{.2222em}}"),ht("\\medspace","\\:"),ht("\\;","{\\tmspace+{5mu}{.2777em}}"),ht("\\thickspace","\\;"),ht("\\!","{\\tmspace-{3mu}{.1667em}}"),ht("\\negthinspace","\\!"),ht("\\negmedspace","{\\tmspace-{4mu}{.2222em}}"),ht("\\negthickspace","{\\tmspace-{5mu}{.277em}}"),ht("\\enspace","\\kern.5em "),ht("\\enskip","\\hskip.5em\\relax"),ht("\\quad","\\hskip1em\\relax"),ht("\\qquad","\\hskip2em\\relax"),ht("\\AA","\\TextOrMath{\\Angstrom}{\\mathring{A}}\\relax"),ht("\\tag","\\@ifstar\\tag@literal\\tag@paren"),ht("\\tag@paren","\\tag@literal{({#1})}"),ht("\\tag@literal",(t=>{if(t.macros.get("\\df@tag"))throw new e("Multiple \\tag");return"\\def\\df@tag{\\text{#1}}"})),ht("\\bmod","\\mathbin{\\text{mod}}"),ht("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),ht("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),ht("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),ht("\\newline","\\\\\\relax"),ht("\\TeX","\\textrm{T}\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125em\\textrm{X}"),ht("\\LaTeX","\\textrm{L}\\kern-.35em\\raisebox{0.2em}{\\scriptstyle A}\\kern-.15em\\TeX"),ht("\\Temml","\\textrm{T}\\kern-0.2em\\lower{0.2em}{\\textrm{E}}\\kern-0.08em{\\textrm{M}\\kern-0.08em\\raise{0.2em}\\textrm{M}\\kern-0.08em\\textrm{L}}"),ht("\\hspace","\\@ifstar\\@hspacer\\@hspace"),ht("\\@hspace","\\hskip #1\\relax"),ht("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),ht("\\colon",'\\mathpunct{\\char"3a}'),ht("\\prescript","\\pres@cript{_{#1}^{#2}}{}{#3}"),ht("\\ordinarycolon",'\\char"3a'),ht("\\vcentcolon","\\mathrel{\\raisebox{0.035em}{\\ordinarycolon}}"),ht("\\coloneq",'\\mathrel{\\raisebox{0.035em}{\\ordinarycolon}\\char"2212}'),ht("\\Coloneq",'\\mathrel{\\char"2237\\char"2212}'),ht("\\Eqqcolon",'\\mathrel{\\char"3d\\char"2237}'),ht("\\Eqcolon",'\\mathrel{\\char"2212\\char"2237}'),ht("\\colonapprox",'\\mathrel{\\raisebox{0.035em}{\\ordinarycolon}\\char"2248}'),ht("\\Colonapprox",'\\mathrel{\\char"2237\\char"2248}'),ht("\\colonsim",'\\mathrel{\\raisebox{0.035em}{\\ordinarycolon}\\char"223c}'),ht("\\Colonsim",'\\mathrel{\\raisebox{0.035em}{\\ordinarycolon}\\char"223c}'),ht("\\ratio","\\vcentcolon"),ht("\\coloncolon","\\dblcolon"),ht("\\colonequals","\\coloneqq"),ht("\\coloncolonequals","\\Coloneqq"),ht("\\equalscolon","\\eqqcolon"),ht("\\equalscoloncolon","\\Eqqcolon"),ht("\\colonminus","\\coloneq"),ht("\\coloncolonminus","\\Coloneq"),ht("\\minuscolon","\\eqcolon"),ht("\\minuscoloncolon","\\Eqcolon"),ht("\\coloncolonapprox","\\Colonapprox"),ht("\\coloncolonsim","\\Colonsim"),ht("\\notni","\\mathrel{\\char`∌}"),ht("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),ht("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),ht("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),ht("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),ht("\\varlimsup","\\DOTSB\\operatorname*{\\overline{\\text{lim}}}"),ht("\\varliminf","\\DOTSB\\operatorname*{\\underline{\\text{lim}}}"),ht("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{\\text{lim}}}"),ht("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{\\text{lim}}}"),ht("\\centerdot","{\\medspace\\rule{0.167em}{0.189em}\\medspace}"),ht("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),ht("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),ht("\\plim","\\DOTSB\\operatorname*{plim}"),ht("\\leftmodels","\\mathop{\\reflectbox{$\\models$}}"),ht("\\bra","\\mathinner{\\langle{#1}|}"),ht("\\ket","\\mathinner{|{#1}\\rangle}"),ht("\\braket","\\mathinner{\\langle{#1}\\rangle}"),ht("\\Bra","\\left\\langle#1\\right|"),ht("\\Ket","\\left|#1\\right\\rangle"),(e,t)=>{var r=`}\\,\\middle${"|"===t[0]?"\\vert":"\\Vert"}\\,{`;return e.slice(0,t.index)+r+e.slice(t.index+t[0].length)}),At=(ht("\\Braket",(function(e){let t=xt(e);for(var r,a=/\|\||\||\\\|/g;null!==(r=a.exec(t));)t=kt(t,r);return"\\left\\langle{"+t+"}\\right\\rangle"})),ht("\\Set",(function(e){let t=xt(e);return"\\left\\{\\:{"+(t=(e=/\|\||\||\\\|/.exec(t))?kt(t,e):t)+"}\\:\\right\\}"})),ht("\\set",(function(e){return"\\{{"+xt(e).replace(/\|/,"}\\mid{")+"}\\}"})),ht("\\angln","{\\angl n}"),ht("\\odv","\\@ifstar\\odv@next\\odv@numerator"),ht("\\odv@numerator","\\frac{\\mathrm{d}#1}{\\mathrm{d}#2}"),ht("\\odv@next","\\frac{\\mathrm{d}}{\\mathrm{d}#2}#1"),ht("\\pdv","\\@ifstar\\pdv@next\\pdv@numerator"),e=>{var t=e[0][0].text,r=(e=gt(e[1]).split(","),"1"===(r=String(e.length))?"\\partial":"\\partial^"+r);let a="";return e.map((e=>{a+="\\partial "+e.trim()+"\\,"})),[t,r,a.replace(/\\,$/,"")]});function Nt(e){var t=[];e.consumeSpaces();let r=e.fetch().text;for("\\relax"===r&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);"\\hline"===r||"\\hdashline"===r;)e.consume(),t.push("\\hdashline"===r),e.consumeSpaces(),r=e.fetch().text;return t}ht("\\pdv@numerator",(function(e){var[e,t,r]=At(e.consumeArgs(2));return`\\frac{${t} ${e}}{${r}}`})),ht("\\pdv@next",(function(e){var[e,t,r]=At(e.consumeArgs(2));return`\\frac{${t}}{${r}} `+e})),ht("\\upalpha","\\up@greek{\\alpha}"),ht("\\upbeta","\\up@greek{\\beta}"),ht("\\upgamma","\\up@greek{\\gamma}"),ht("\\updelta","\\up@greek{\\delta}"),ht("\\upepsilon","\\up@greek{\\epsilon}"),ht("\\upzeta","\\up@greek{\\zeta}"),ht("\\upeta","\\up@greek{\\eta}"),ht("\\uptheta","\\up@greek{\\theta}"),ht("\\upiota","\\up@greek{\\iota}"),ht("\\upkappa","\\up@greek{\\kappa}"),ht("\\uplambda","\\up@greek{\\lambda}"),ht("\\upmu","\\up@greek{\\mu}"),ht("\\upnu","\\up@greek{\\nu}"),ht("\\upxi","\\up@greek{\\xi}"),ht("\\upomicron","\\up@greek{\\omicron}"),ht("\\uppi","\\up@greek{\\pi}"),ht("\\upalpha","\\up@greek{\\alpha}"),ht("\\uprho","\\up@greek{\\rho}"),ht("\\upsigma","\\up@greek{\\sigma}"),ht("\\uptau","\\up@greek{\\tau}"),ht("\\upupsilon","\\up@greek{\\upsilon}"),ht("\\upphi","\\up@greek{\\phi}"),ht("\\upchi","\\up@greek{\\chi}"),ht("\\uppsi","\\up@greek{\\psi}"),ht("\\upomega","\\up@greek{\\omega}"),ht("\\invamp",'\\mathbin{\\char"214b}'),ht("\\parr",'\\mathbin{\\char"214b}'),ht("\\with",'\\mathbin{\\char"26}'),ht("\\multimapinv",'\\mathrel{\\char"27dc}'),ht("\\multimapboth",'\\mathrel{\\char"29df}'),ht("\\scoh",'{\\mkern5mu\\char"2322\\mkern5mu}'),ht("\\sincoh",'{\\mkern5mu\\char"2323\\mkern5mu}'),ht("\\coh",'{\\mkern5mu\\rule{}{0.7em}\\mathrlap{\\smash{\\raise2mu{\\char"2322}}} {\\smash{\\lower4mu{\\char"2323}}}\\mkern5mu}'),ht("\\incoh",'{\\mkern5mu\\rule{}{0.7em}\\mathrlap{\\smash{\\raise2mu{\\char"2323}}} {\\smash{\\lower4mu{\\char"2322}}}\\mkern5mu}'),ht("\\standardstate","\\text{\\tiny\\char`⦵}");const Tt=t=>{if(!t.parser.settings.displayMode)throw new e(`{${t.envName}} can be used only in display mode.`)},qt=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/,St=e=>{let t=e.get("\\arraystretch"),r=("string"!=typeof t&&(t=gt(t.tokens)),t=isNaN(t)?null:Number(t),e.get("\\arraycolsep"));return"string"!=typeof r&&(r=gt(r.tokens)),[t,e=(e=qt.exec(r))?{number:+(e[1]+e[2]),unit:e[3]}:null]}; + function Ot(t,{cols:r,envClasses:a,addEqnNum:n,singleRow:o,emptySingleRow:s,maxNumCols:l,leqno:i,arraystretch:m,arraycolsep:p},u){t.gullet.beginGroup(),o||t.gullet.macros.set("\\cr","\\\\\\relax"),n&&(t.gullet.macros.set("\\tag","\\@ifstar\\envtag@literal\\envtag@paren"),t.gullet.macros.set("\\envtag@paren","\\env@tag{{(\\text{#1})}}"),t.gullet.macros.set("\\envtag@literal","\\env@tag{\\text{#1}}"),t.gullet.macros.set("\\notag","\\env@notag"),t.gullet.macros.set("\\nonumber","\\env@notag")),t.gullet.beginGroup();let d=[];var h=[d],c=[],g=[];let b;var f=[];for(f.push(Nt(t));;){let r=t.parseExpression(!1,o?"\\end":"\\\\");if(n&&!b)for(let e=0;e{var t=new q.MathNode("mtd",[]);return t.style={padding:"0",width:"50%"},e.envClasses.includes("multline")&&(t.style.width="7.5%"),t};function zt(e,t){var r,a=[],n=e.body.length;const o=e.hLinesBeforeRow;for(let r=0;r{let a;var n=e.tags.shift();if(n){if(!n.body)return new q.MathNode("mtext",[],[]);(a=ge(n.body,t,!0)).classes=["tml-tag"]}else{if(e.envClasses.includes("multline")&&(e.leqno&&0!==r||!e.leqno&&r!==e.body.length-1))return new q.MathNode("mtext",[],[]);a=new q.MathNode("mtext",[new w(["tml-eqn"])])}return a})(e,t.withLevel(i),r),e.leqno?(l[0].children.push(p),l[0].classes.push("tml-left")):(l[l.length-1].children.push(p),l[l.length-1].classes.push("tml-right")));var p=new q.MathNode("mtr",l,[]);0===r&&0{e.style.borderTop="0.15em double"})):p.children.forEach((e=>{e.style.borderTop=o[0][0]?"0.06em dashed":"0.06em solid"}))),0{e.style.borderBottom="0.15em double"})):p.children.forEach((e=>{e.style.borderBottom=o[r+1][0]?"0.06em dashed":"0.06em solid"}))),a.push(p)}if(00===t&&0===r||t===l-1&&1===r?"0":"align"!==e.envClasses[0]?o:1===r?"0":e.addEqnNum?t%2?"1":"0":t%2?"0":"1";for(let e=0;e((e=Ot(e.parser,{type:"small"},"script")).envClasses=["small"],e),mathmlBuilder:zt}),lt({type:"array",names:["subarray"],props:{numArgs:1},handler(t,r){if(1<(r=($e(r[0])?[r[0]]:Le(r[0],"ordgroup").body).map((function(t){var r=Fe(t).text;if(-1!=="lc".indexOf(r))return{type:"align",align:r};throw new e("Unknown column alignment: "+r,t)}))).length)throw new e("{subarray} can contain only one column");if(0<(t=Ot(t.parser,{cols:r,envClasses:["small"]},"script")).body.length&&1(Tt(t),function(t){var r=[];for(t.gullet.beginGroup(),t.gullet.macros.set("\\cr","\\\\\\relax"),t.gullet.beginGroup();;){r.push(t.parseExpression(!1,"\\\\")),t.gullet.endGroup(),t.gullet.beginGroup();var a=t.fetch().text;if("&"!==a&&"\\\\"!==a){if("\\end"!==a)throw new e("Expected \\\\ or \\cr or \\end",t.nextToken);0===r[r.length-1].length&&r.pop();break}t.consume()}let n=[];var o,s,l=[n];for(let a=0;aAV".indexOf(m)))throw new e('Expected one of "<>AV=|." after @.');for(let t=0;t<2;t++){let a=!0;for(let n=r+1;n({type:"envTag",mode:e.mode,body:t[0]}),mathmlBuilder:(e,t)=>new q.MathNode("mrow")}),c({type:"noTag",names:["\\env@notag"],props:{numArgs:0},handler:({parser:e})=>({type:"noTag",mode:e.mode}),mathmlBuilder:(e,t)=>new q.MathNode("mrow")});const Lt={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"},Ft=(c({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\up@greek","\\boldsymbol","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bm","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:({parser:e,funcName:t},r)=>{r=b(r[0]);let a=t;return a in Lt&&(a=Lt[a]),{type:"font",mode:e.mode,font:a.slice(1),body:r}},mathmlBuilder:V=(e,t)=>{var r=e.font,a=(t=t.withFont(r),be(e.body,t));if(0===a.children.length)return a;if("boldsymbol"===r&&["mo","mpadded","mrow"].includes(a.type))return a.style.fontWeight="bold",a;if(((e,t)=>{if("mathrm"!==t||"ordgroup"!==e.body.type||1===e.body.body.length)return!1;if("mathord"!==e.body.body[0].type)return!1;for(let t=1;t{var n=e.mode;r=e.parseExpression(!0,r,!0);return{type:"font",mode:n,font:"math"+t.slice(1),body:{type:"ordgroup",mode:e.mode,body:r}}},mathmlBuilder:V}),["display","text","script","scriptscript"]),$t={auto:-1,display:0,text:0,script:1,scriptscript:2};function Gt(e){let t=null;return 0{var r="auto"===e.scriptLevel?t.incrementLevel():"display"===e.scriptLevel?t.withLevel(mt):"text"===e.scriptLevel?t.withLevel(pt):t.withLevel(ut);let a=new q.MathNode("mfrac",[be(e.numer,r),be(e.denom,r)]);return e.hasBarLine?e.barSize&&(r=Ae(e.barSize,t),a.setAttribute("linethickness",r.number+r.unit)):a.setAttribute("linethickness","0px"),null==e.leftDelim&&null==e.rightDelim||(t=[],null!=e.leftDelim&&((r=new q.MathNode("mo",[new q.TextNode(e.leftDelim.replace("\\",""))])).setAttribute("fence","true"),t.push(r)),t.push(a),null!=e.rightDelim&&((r=new q.MathNode("mo",[new q.TextNode(e.rightDelim.replace("\\",""))])).setAttribute("fence","true"),t.push(r)),a=ie(t)),"auto"!==e.scriptLevel&&((a=new q.MathNode("mstyle",[a])).setAttribute("displaystyle",String("display"===e.scriptLevel)),a.setAttribute("scriptlevel",$t[e.scriptLevel])),a},c({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:({parser:e,funcName:t},r)=>{var a=r[0];r=r[1];let n=!1,o=null,s=null,l="auto";switch(t){case"\\dfrac":case"\\frac":case"\\tfrac":n=!0;break;case"\\\\atopfrac":n=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":o="(",s=")";break;case"\\\\bracefrac":o="\\{",s="\\}";break;case"\\\\brackfrac":o="[",s="]";break;default:throw new Error("Unrecognized genfrac command")}switch(t){case"\\dfrac":case"\\dbinom":l="display";break;case"\\tfrac":case"\\tbinom":l="text"}return{type:"genfrac",mode:e.mode,continued:!1,numer:a,denom:r,hasBarLine:n,leftDelim:o,rightDelim:s,scriptLevel:l,barSize:null}},mathmlBuilder:j}),c({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:({parser:e},t)=>{var r=t[0];return{type:"genfrac",mode:e.mode,continued:!0,numer:r,denom:t[1],hasBarLine:!0,leftDelim:null,rightDelim:null,scriptLevel:"display",barSize:null}}}),c({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler({parser:e,funcName:t,token:r}){let a;switch(t){case"\\over":a="\\frac";break;case"\\choose":a="\\binom";break;case"\\atop":a="\\\\atopfrac";break;case"\\brace":a="\\\\bracefrac";break;case"\\brack":a="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:a,token:r}}}),c({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler({parser:e},t){var r=t[4],a=t[5],n="atom"===(n=b(t[0])).type&&"open"===n.family?Gt(n.text):null,o="atom"===(o=b(t[1])).type&&"close"===o.family?Gt(o.text):null,s=Le(t[2],"size");let l,i=null,m=(l=!!s.isBlank||0<(i=s.value).number,"auto");return"ordgroup"===(s=t[3]).type?0({type:"infix",mode:e.mode,replaceWith:"\\\\abovefrac",barSize:Le(r[0],"size").value,token:t})}),c({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:({parser:e},t)=>{var r=t[0],a=function(e){if(e)return e;throw new Error("Expected non-null, but got "+String(e))}(Le(t[1],"infix").barSize),n=0({type:"hbox",mode:e.mode,body:f(t[0])}),mathmlBuilder:(e,t)=>(t=t.withLevel(mt),e=ge(e.body,t),pe(e))}),c({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:({parser:e,funcName:t},r)=>({type:"horizBrace",mode:e.mode,label:t,isOver:/^\\over/.test(t),base:r[0]}),mathmlBuilder:(e,t)=>{var r=C(e.label);return r.style["math-depth"]=0,new q.MathNode(e.isOver?"mover":"munder",[be(e.base,t),r])}}),c({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:({parser:t,token:r},a)=>{var n=a[1];a=Le(a[0],"url").url;if(t.settings.isTrusted({command:"\\href",url:a}))return{type:"href",mode:t.mode,href:a,body:f(n)};throw new e('Function "\\href" is not trusted',r)},mathmlBuilder:(e,t)=>{let r=ge(e.body,t);return(r=r instanceof A?r:new A("mrow",[r])).setAttribute("href",e.href),r}}),c({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:({parser:t,token:r},a)=>{var n=Le(a[0],"url").url;if(!t.settings.isTrusted({command:"\\url",url:n}))throw new e('Function "\\url" is not trusted',r);var o=[];for(let e=0;e{var o=Le(n[0],"raw").string;n=n[1];if(t.settings.strict)throw new e(`Function "${r}" is disabled in strict mode`,a);let s;var l={};switch(r){case"\\class":l.class=o,s={command:"\\class",class:o};break;case"\\id":l.id=o,s={command:"\\id",id:o};break;case"\\style":l.style=o,s={command:"\\style",style:o};break;case"\\data":var i=o.split(",");for(let t=0;t{var r=ge(e.body,t);t=[];e.attributes.class&&t.push(...e.attributes.class.trim().split(/\s+/)),r.classes=t;for(let t in e.attributes)"class"!==t&&Object.prototype.hasOwnProperty.call(e.attributes,t)&&r.setAttribute(t,e.attributes[t]);return r}}),c({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:({parser:t,token:r},a,n)=>{let o={number:0,unit:"em"},s={number:.9,unit:"em"},l={number:0,unit:"em"},i="";if(n[0]){var m=Le(n[0],"raw").string.split(",");for(let t=0;t{var r=Ae(e.height,t),a={number:0,unit:"em"};0r.number&&(a.number=e.totalheight.number-r.number,a.unit=r.unit);let n=0;return 0({type:"label",mode:e.mode,string:t[0].string.replace(jt,"")}),mathmlBuilder(e,t){var r=new q.MathNode("mrow",[],["tml-label"]);return 0{if(Rt.includes(r)){if(t.settings.strict&&"text"!==t.mode)throw new e(`{${r}} can be used only in text mode. Try \\math`+r.slice(1),a);r=r.slice(1)}else r=r.slice(5);return a=n[0],{type:"lap",mode:t.mode,alignment:r,body:a}},mathmlBuilder:(e,t)=>{let r;"llap"===e.alignment&&(a=ce(f(e.body),t),a=new q.MathNode("mphantom",a),(r=new q.MathNode("mpadded",[a])).setAttribute("width","0px"));var a=be(e.body,t);let n;return n="llap"===e.alignment?(a.style.position="absolute",a.style.right="0",a.style.bottom="0",new q.MathNode("mpadded",[r,a])):new q.MathNode("mpadded",[a]),"rlap"===e.alignment?0({type:"mathchoice",mode:e.mode,display:f(t[0]),text:f(t[1]),script:f(t[2]),scriptscript:f(t[3])}),mathmlBuilder:(e,t)=>(e=((e,t)=>{switch(t.level){case it:return e.display;case mt:return e.text;case pt:return e.script;case ut:return e.scriptscript;default:return e.text}})(e,t),ge(e,t))}),["text","textord","mathord","atom"]),Ht=e=>{var t=new q.MathNode("mspace");return t.setAttribute("width",e+"em"),t};function Vt(e,t){let r;var a=ce(e.body,t);return"minner"===e.mclass?r=new q.MathNode("mpadded",a):"mord"===e.mclass?e.isCharacterBox||"mathord"===a[0].type?((r=a[0]).type="mi",1===r.children.length&&r.children[0].text&&"∇"===r.children[0].text&&r.setAttribute("mathvariant","normal")):r=new q.MathNode("mi",a):(r=new q.MathNode("mrow",a),e.mustPromote?((r=a[0]).type="mo",e.isCharacterBox&&e.body[0].text&&/[A-Za-z]/.test(e.body[0].text)&&r.setAttribute("mathvariant","italic")):r=new q.MathNode("mrow",a),a=t.level<2,"mrow"===r.type?a&&("mbin"===e.mclass?(r.children.unshift(Ht(.2222)),r.children.push(Ht(.2222))):"mrel"===e.mclass?(r.children.unshift(Ht(.2778)),r.children.push(Ht(.2778))):"mpunct"===e.mclass?r.children.push(Ht(.1667)):"minner"===e.mclass&&(r.children.unshift(Ht(.0556)),r.children.push(Ht(.0556)))):"mbin"===e.mclass?(r.attributes.lspace=a?"0.2222em":"0",r.attributes.rspace=a?"0.2222em":"0"):"mrel"===e.mclass?(r.attributes.lspace=a?"0.2778em":"0",r.attributes.rspace=a?"0.2778em":"0"):"mpunct"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace=a?"0.1667em":"0"):"mopen"===e.mclass||"mclose"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0em"):"minner"===e.mclass&&a&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em"),"mopen"!==e.mclass&&"mclose"!==e.mclass&&(delete r.attributes.stretchy,delete r.attributes.form)),r}c({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler({parser:e,funcName:t},r){r=r[0];var a=i(r);let n=!0;const o={type:"mathord",text:"",mode:e.mode};for(let t of r.body||[r]){if(!Ut.includes(t.type)){n=!1;break}L[e.mode][t.text]?o.text+=L[e.mode][t.text].replace:t.text?o.text+=t.text:t.body&&t.body.map((e=>{o.text+=e.text}))}return{type:"mclass",mode:e.mode,mclass:"m"+t.slice(5),body:f(n?o:r),isCharacterBox:a,mustPromote:n}},mathmlBuilder:Vt}),c({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:({parser:e},t)=>({type:"mclass",mode:e.mode,mclass:(e=>"atom"!==(e="ordgroup"===e.type&&e.body.length?e.body[0]:e).type||"bin"!==e.family&&"rel"!==e.family?"mord":"m"+e.family)(t[0]),body:f(t[1]),isCharacterBox:i(t[1])})}),c({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler({funcName:e},t){var r=t[1];t=t[0],r={type:"op",mode:r.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,stack:!0,suppressBaseShift:"\\stackrel"!==e,body:f(r)};return{type:"supsub",mode:t.mode,base:r,sup:"\\underset"===e?null:t,sub:"\\underset"===e?t:null}},mathmlBuilder:Vt});const _t=(e,t,r)=>!e||"mrow"===(e=be(e,t)).type&&0===e.children.length?r:e,Wt=(c({type:"multiscript",names:["\\sideset","\\pres@cript"],props:{numArgs:3},handler({parser:t,funcName:r,token:a},n){if(0===n[2].body.length)throw new e(r+"cannot parse an empty base.");var o=n[2].body[0];if(t.settings.strict&&"\\sideset"===r&&!o.symbol)throw new e("The base of \\sideset must be a big operator. Try \\prescript.");if(0e.isCharacterBox?ce(e.body,t,!0)[0]:ge(e.body,t)}),["textord","mathord","atom"]),Xt=["\\smallint"],Zt=["textord","mathord","ordgroup","close","leftright","font"],Yt=e=>{e.attributes.lspace="0.1667em",e.attributes.rspace="0.1667em"};W=(e,t)=>{let r;var a;return e.symbol?(r=new A("mo",[le(e.name,e.mode)]),Xt.includes(e.name)?r.setAttribute("largeop","false"):e.limits?r.setAttribute("stretchy","true"):r.setAttribute("movablelimits","false"),e.fromMathOp&&Yt(r)):e.body?(r=new A("mo",ce(e.body,t)),e.fromMathOp&&Yt(r)):(r=new A("mi",[new N(e.name.slice(1))]),e.parentIsSupSub||(t=[r,t=new A("mo",[le("⁡","text")])],e.needsLeadingSpace&&((a=new A("mspace")).setAttribute("width","0.1667em"),t.unshift(a)),e.isFollowedByDelimiter||((a=new A("mspace")).setAttribute("width","0.1667em"),t.push(a)),r=new A("mrow",t))),r};const Kt={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨅":"\\bigsqcap","⨆":"\\bigsqcup","⨃":"\\bigcupdot","⨇":"\\bigdoublevee","⨈":"\\bigdoublewedge","⨉":"\\bigtimes"},Jt=(c({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcupplus","\\bigcupdot","\\bigcap","\\bigcup","\\bigdoublevee","\\bigdoublewedge","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcap","\\bigsqcup","\\bigtimes","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:({parser:e,funcName:t},r)=>{let a=t;return 1===a.length&&(a=Kt[a]),{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!0,stack:!1,name:a}},mathmlBuilder:W}),c({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:({parser:e},t)=>{var r=(t=t[0]).body||[t],a=1===r.length&&Wt.includes(r[0].type);return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:a,fromMathOp:!0,stack:!1,name:a?r[0].text:null,body:a?null:f(t)}},mathmlBuilder:W}),{"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint","∱":"\\intclockwise","∲":"\\varointclockwise","⨌":"\\iiiint","⨍":"\\intbar","⨎":"\\intBar","⨏":"\\fint","⨒":"\\rppolint","⨓":"\\scpolint","⨕":"\\pointint","⨖":"\\sqint","⨗":"\\intlarhk","⨘":"\\intx","⨙":"\\intcap","⨚":"\\intcup"}); + function Qt(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsc"===t.fontFamily)return"normal";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"sans-serif-bold":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";if(!(t=t.font)||"mathnormal"===t)return null;var r=e.mode;switch(t){case"mathit":return"italic";case"mathrm":var a=e.text.codePointAt(0);return 939{r=r[0];var a=e.prevAtomType,n=e.gullet.future().text;return{type:"operatorname",mode:e.mode,body:f(r),alwaysHandleSupSub:"\\operatornamewithlimits"===t,limits:!1,parentIsSupSub:!1,isFollowedByDelimiter:tt(n),needsLeadingSpace:0{let r,a=ce(e.body,t.withFont("mathrm")),n=!0;for(let e=0;ee.toText())).join(""),a=[new q.TextNode(t)];else if(1===a.length&&["mover","munder"].includes(a[0].type)&&("mi"===a[0].children[0].type||"mtext"===a[0].children[0].type))return a[0].children[0].type="mi",e.parentIsSupSub?new q.MathNode("mrow",a):(t=new q.MathNode("mo",[le("⁡","text")]),q.newDocumentFragment([a[0],t]));var s;return n?(r=new q.MathNode("mi",a),1===a[0].text.length&&r.setAttribute("mathvariant","normal")):r=new q.MathNode("mrow",a),e.parentIsSupSub?r:(t=[r,t=new q.MathNode("mo",[le("⁡","text")])],e.needsLeadingSpace&&((s=new q.MathNode("mspace")).setAttribute("width","0.1667em"),t.unshift(s)),e.isFollowedByDelimiter||((s=new q.MathNode("mspace")).setAttribute("width","0.1667em"),t.push(s)),q.newDocumentFragment(t))}}),ht("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),g({type:"ordgroup",mathmlBuilder:(e,t)=>ge(e.body,t,e.semisimple)}),c({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:({parser:e},t)=>(t=t[0],{type:"phantom",mode:e.mode,body:f(t)}),mathmlBuilder:(e,t)=>(e=ce(e.body,t),new q.MathNode("mphantom",e))}),c({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:({parser:e},t)=>(t=t[0],{type:"hphantom",mode:e.mode,body:t}),mathmlBuilder:(e,t)=>(e=ce(f(e.body),t),t=new q.MathNode("mphantom",e),(e=new q.MathNode("mpadded",[t])).setAttribute("height","0px"),e.setAttribute("depth","0px"),e)}),c({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:({parser:e},t)=>(t=t[0],{type:"vphantom",mode:e.mode,body:t}),mathmlBuilder:(e,t)=>(e=ce(f(e.body),t),t=new q.MathNode("mphantom",e),(e=new q.MathNode("mpadded",[t])).setAttribute("width","0px"),e)}),c({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler:({parser:e},t)=>({type:"pmb",mode:e.mode,body:f(t[0])}),mathmlBuilder:(e,t)=>(e=ce(e.body,t),(t=T(e)).setAttribute("style","font-weight:bold"),t)}),H=(e,t)=>{var r=t.withLevel(mt);r=new q.MathNode("mpadded",[be(e.body,r)]),e=Ae(e.dy,t);return r.setAttribute("voffset",e.number+e.unit),0({type:"ref",mode:e.mode,funcName:t,string:r[0].string.replace(jt,"")}),mathmlBuilder(e,t){var r="\\ref"===e.funcName?["tml-ref"]:["tml-ref","tml-eqref"];return(r=new q.MathNode("mtext",[new q.TextNode("")],r)).setAttribute("href","#"+e.string),r}}),c({type:"reflect",names:["\\reflectbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:({parser:e},t)=>({type:"reflect",mode:e.mode,body:t[0]}),mathmlBuilder:(e,t)=>((e=be(e.body,t)).style.transform="scaleX(-1)",e)}),c({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler:({parser:e})=>({type:"internal",mode:e.mode})}),c({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler({parser:e},t,r){r=r[0];var a=Le(t[0],"size");t=Le(t[1],"size");return{type:"rule",mode:e.mode,shift:r&&Le(r,"size").value,width:a.value,height:t.value}},mathmlBuilder(e,t){var r=Ae(e.width,t),a=Ae(e.height,t),n=(e=e.shift?Ae(e.shift,t):{number:0,unit:"em"},t=t.color&&t.getColor()||"black",new q.MathNode("mspace"));return 0(r.settings.strict&&"math"===r.mode&&console.log(`Temml strict-mode warning: Command ${t} is invalid in math mode.`),e=r.parseExpression(!1,e,!0),{type:"sizing",mode:r.mode,funcName:t,body:e}),mathmlBuilder:(e,t)=>{var r=t.withFontSize(er[e.funcName]);r=ce(e.body,r),r=T(r),e=(er[e.funcName]/t.fontSize).toFixed(4);return r.setAttribute("mathsize",e+"em"),r}}),c({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:({parser:e},t,r)=>{let a=!1,n=!1;var o,s=r[0]&&Le(r[0],"ordgroup");if(s)for(let e=0;e(t=new q.MathNode("mpadded",[be(e.body,t)]),e.smashHeight&&t.setAttribute("height","0px"),e.smashDepth&&t.setAttribute("depth","0px"),t)}),c({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:({parser:e},t,r)=>(r=r[0],t=t[0],{type:"sqrt",mode:e.mode,body:t,index:r}),mathmlBuilder(e,t){var{body:e,index:r}=e;return r?new q.MathNode("mroot",[be(e,t),be(r,t.incrementLevel())]):new q.MathNode("msqrt",[be(e,t)])}}),{display:0,text:1,script:2,scriptscript:3}), + rr={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},ar=(c({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:({breakOnTokenText:e,funcName:t,parser:r},a)=>(e=r.parseExpression(!0,e,!0),t=t.slice(1,t.length-5),{type:"styling",mode:r.mode,scriptLevel:t,body:e}),mathmlBuilder:(e,t)=>(t=t.withLevel(tr[e.scriptLevel]),t=ce(e.body,t),t=T(t),e=rr[e.scriptLevel],t.setAttribute("scriptlevel",e[0]),t.setAttribute("displaystyle",e[1]),t)}),/^m(over|under|underover)$/),nr=(g({type:"supsub",mathmlBuilder(e,t){let r,a=!1,n=!1,o=!1,s=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(a=!0,r=e.base.isOver),!e.base||e.base.stack||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0,n=!e.base.symbol,o=n&&!e.isFollowedByDelimiter,s=e.base.needsLeadingSpace);var l,i=e.base&&e.base.stack?[be(e.base.body[0],t)]:[be(e.base,t)],m=t.inSubOrSup();e.sub&&i.push(be(e.sub,m)),e.sup&&((l="mrow"===(m=be(e.sup,m)).type?m.children[0]:m)&&"mo"===l.type&&l.classes.includes("tml-prime")&&e.base&&e.base.text&&"f"===e.base.text&&l.classes.push("prime-pad"),i.push(m));let p,u=(p=a?r?"mover":"munder":e.sub?e.sup?(l=e.base)&&("op"===l.type&&l.limits||"multiscript"===l.type)&&(t.level===it||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(t.level===it||l.limits)?"munderover":"msubsup":(m=e.base)&&"op"===m.type&&m.limits&&(t.level===it||m.alwaysHandleSupSub)||m&&"operatorname"===m.type&&m.alwaysHandleSupSub&&(m.limits||t.level===it)?"munder":"msub":(l=e.base)&&"op"===l.type&&l.limits&&(t.level===it||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.level===it)?"mover":"msup",new q.MathNode(p,i));return n?(m=new q.MathNode("mo",[le("⁡","text")]),u=s?((e=new q.MathNode("mspace")).setAttribute("width","0.1667em"),q.newDocumentFragment([e,u,m])):q.newDocumentFragment([u,m]),o&&((l=new q.MathNode("mspace")).setAttribute("width","0.1667em"),u.children.push(l))):ar.test(p)&&(u=new q.MathNode("mrow",[u])),u}}),["\\shortmid","\\nshortmid","\\shortparallel","\\nshortparallel","\\smallsetminus"]),or=["\\Rsh","\\Lsh","\\restriction"],sr=(g({type:"atom",mathmlBuilder(e,t){var r,a,n=new q.MathNode("mo",[le(e.text,e.mode)]);return"punct"===e.family?n.setAttribute("separator","true"):"open"===e.family||"close"===e.family?"open"===e.family?(n.setAttribute("form","prefix"),n.setAttribute("stretchy","false")):"close"===e.family&&(n.setAttribute("form","postfix"),n.setAttribute("stretchy","false")):"\\mid"===e.text?(n.setAttribute("lspace","0.22em"),n.setAttribute("rspace","0.22em"),n.setAttribute("stretchy","false")):"rel"===e.family&&(1===(r=e.text).length?8591<(a=r.codePointAt(0))&&a<8704:-10,bold:e=>119743,italic:e=>119795,"bold-italic":e=>119847,script:e=>lr[e]||119899,"script-bold":e=>119951,fraktur:e=>ir[e]||120003,"fraktur-bold":e=>120107,"double-struck":e=>mr[e]||120055,"sans-serif":e=>120159,"sans-serif-bold":e=>120211,"sans-serif-italic":e=>120263,"sans-serif-bold-italic":e=>120380,monospace:e=>120367},lowerCaseLatin:{normal:e=>0,bold:e=>119737,italic:e=>"h"===e?8358:119789,"bold-italic":e=>119841,script:e=>lr[e]||119893,"script-bold":e=>119945,fraktur:e=>119997,"fraktur-bold":e=>120101,"double-struck":e=>120049,"sans-serif":e=>120153,"sans-serif-bold":e=>120205,"sans-serif-italic":e=>120257,"sans-serif-bold-italic":e=>120309,monospace:e=>120361},upperCaseGreek:{normal:e=>0,bold:e=>119575,italic:e=>119633,"bold-italic":e=>119575,script:e=>0,"script-bold":e=>0,fraktur:e=>0,"fraktur-bold":e=>0,"double-struck":e=>0,"sans-serif":e=>119749,"sans-serif-bold":e=>119749,"sans-serif-italic":e=>0,"sans-serif-bold-italic":e=>119807,monospace:e=>0},lowerCaseGreek:{normal:e=>0,bold:e=>119569,italic:e=>119627,"bold-italic":e=>"ϕ"===e?119678:119685,script:e=>0,"script-bold":e=>0,fraktur:e=>0,"fraktur-bold":e=>0,"double-struck":e=>0,"sans-serif":e=>119743,"sans-serif-bold":e=>119743,"sans-serif-italic":e=>0,"sans-serif-bold-italic":e=>119801,monospace:e=>0},varGreek:{normal:e=>0,bold:e=>pr[e]||-51,italic:e=>0,"bold-italic":e=>ur[e]||58,script:e=>0,"script-bold":e=>0,fraktur:e=>0,"fraktur-bold":e=>0,"double-struck":e=>0,"sans-serif":e=>dr[e]||116,"sans-serif-bold":e=>dr[e]||116,"sans-serif-italic":e=>0,"sans-serif-bold-italic":e=>hr[e]||174,monospace:e=>0},numeral:{normal:e=>0,bold:e=>120734,italic:e=>0,"bold-italic":e=>0,script:e=>0,"script-bold":e=>0,fraktur:e=>0,"fraktur-bold":e=>0,"double-struck":e=>120744,"sans-serif":e=>120754,"sans-serif-bold":e=>120764,"sans-serif-italic":e=>0,"sans-serif-bold-italic":e=>0,monospace:e=>120774}}),gr=(e,t)=>{var r=e.codePointAt(0),a=64(r=new q.MathNode(r,[e]),(e=new q.MathNode("mstyle",[r])).style["font-style"]="italic",e.style["font-family"]="Cambria, 'Times New Roman', serif","bold-italic"===t&&(e.style["font-weight"]="bold"),e))(a,n,t);"normal"!==n&&(a.text=a.text.split("").map((e=>gr(e,n))).join("")),o=new q.MathNode(t,[a])}else"text"===e.mode?("normal"!==n&&(a.text=gr(a.text,n)),o=new q.MathNode("mtext",[a])):xr.has(e.text)?(o=new q.MathNode("mo",[a])).classes.push("tml-prime"):(t=a.text,"italic"!==n&&(a.text=gr(a.text,n)),o=new q.MathNode("mi",[a]),a.text===t&&yr.test(t)&&o.setAttribute("mathvariant","italic"));return o}}),{"\\nobreak":"nobreak","\\allowbreak":"allowbreak"}),vr={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}},kr=(g({type:"spacing",mathmlBuilder(t,r){let a;if(Object.prototype.hasOwnProperty.call(vr,t.text))a=new q.MathNode("mtext",[new q.TextNode(" ")]);else{if(!Object.prototype.hasOwnProperty.call(wr,t.text))throw new e(`Unknown type of space "${t.text}"`);a=new q.MathNode("mo"),"\\nobreak"===t.text&&a.setAttribute("linebreak","nobreak")}return a}}),g({type:"tag"}),{"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm","\\textsc":"textsc"}),Ar={"\\textbf":"textbf","\\textmd":"textmd"},Nr={"\\textit":"textit","\\textup":"textup"},Tr=(c({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textsc","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler:({parser:e,funcName:t},r)=>(r=r[0],{type:"text",mode:e.mode,body:f(r),font:t}),mathmlBuilder:(e,t)=>(t=((e,t)=>(e=e.font)?kr[e]?t.withTextFontFamily(kr[e]):Ar[e]?t.withTextFontWeight(Ar[e]):"\\emph"===e?"textit"===t.fontShape?t.withTextFontShape("textup"):t.withTextFontShape("textit"):t.withTextFontShape(Nr[e]):t)(e,t),e=ge(e.body,t),pe(e))}),c({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(t,r,a){throw new e("\\verb ended by end of line instead of matching delimiter")},mathmlBuilder:(e,t)=>(e=new q.TextNode(Tr(e)),(e=new q.MathNode("mtext",[e])).setAttribute("mathvariant","monospace"),e)}),e=>e.body.replace(/ /g,e.star?"␣":" ")),qr=d;class Sr{constructor(e,t,r){this.lexer=e,this.start=t,this.end=r}static range(e,t){return t?e&&e.loc&&t.loc&&e.loc.lexer===t.loc.lexer?new Sr(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc}}class Or{constructor(e,t){this.text=e,this.loc=t}range(e,t){return new Or(t,Sr.range(this,e))}}R="[̀-ͯ]";const Mr=new RegExp(R+"+$");class Br{constructor(e,t){this.input=e,this.settings=t,this.tokenRegex=new RegExp("([ \r\n\t]+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-‧‪-퟿豈-￿][̀-ͯ]*|[\ud800-\udbff][\udc00-\udfff][̀-ͯ]*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|(\\\\[a-zA-Z@]+)[ \r\n\t]*|\\\\[^\ud800-\udfff])","g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new Or("EOF",new Sr(this,r,r));var a=this.tokenRegex.exec(t);if(null===a||a.index!==r)throw new e(`Unexpected character: '${t[r]}'`,new Or(t[r],new Sr(this,r,r+1)));if(a=a[6]||a[3]||(a[2]?"\\ ":" "),14!==this.catcodes[a])return new Or(a,new Sr(this,r,this.tokenRegex.lastIndex));if(-1===(a=t.indexOf("\n",this.tokenRegex.lastIndex))){if(this.tokenRegex.lastIndex=t.length,this.settings.strict)throw new e("% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode")}else this.tokenRegex.lastIndex=a+1;return this.lex()}}class Cr{constructor(e={},t={}){this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new e("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(void 0===t[e]?delete this.current[e]:this.current[e]=t[e])}has(e){return Object.prototype.hasOwnProperty.call(this.current,e)||Object.prototype.hasOwnProperty.call(this.builtins,e)}get(e){return(Object.prototype.hasOwnProperty.call(this.current,e)?this.current:this.builtins)[e]}set(e,t,r=!1){if(r){for(let t=0;tthis.settings.maxExpand)throw new e("Too many expansions: infinite loop or need to increase maxExpand setting");let o=n.tokens;var s=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs)for(let t=(o=o.slice()).length-1;0<=t;--t){var l=o[t];if("#"===l.text){if(0===t)throw new e("Incomplete placeholder at end of macro body",l);if("#"===(l=o[--t]).text)o.splice(t+1,1);else{if(!/^[1-9]$/.test(l.text))throw new e("Not a valid argument number",l);o.splice(t,2,...s[+l.text-1])}}}return this.pushTokens(o),o.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;){var e;if(!1===this.expandOnce())return(e=this.stack.pop()).treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new Or(e)]):void 0}expandTokens(e){var t,r=[],a=this.stack.length;for(this.pushTokens(e);this.stack.length>a;)!1===this.expandOnce(!0)&&((t=this.stack.pop()).treatAsRelax&&(t.noexpand=!1,t.treatAsRelax=!1),r.push(t));return r}expandMacroAsText(e){return(e=this.expandMacro(e))&&e.map((e=>e.text)).join("")}_getExpansion(e){var t=this.macros.get(e);if(null==t)return t;if(1!==e.length||null==(e=this.lexer.catcodes[e])||13===e){if("string"!=typeof(e="function"==typeof t?t(this):t))return e;{let t=0;if(-1!==e.indexOf("#"))for(var r=e.replace(/##/g,"");-1!==r.indexOf("#"+(t+1));)++t;var a=new Br(e,this.settings),n=[];let o=a.lex();for(;"EOF"!==o.text;)n.push(o),o=a.lex();return n.reverse(),{tokens:n,numArgs:t}}}}isDefined(e){return this.macros.has(e)||Object.prototype.hasOwnProperty.call(qr,e)||Object.prototype.hasOwnProperty.call(L.math,e)||Object.prototype.hasOwnProperty.call(L.text,e)||Object.prototype.hasOwnProperty.call(zr,e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:Object.prototype.hasOwnProperty.call(qr,e)&&!qr[e].primitive}}const Ir=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Lr=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g","ʰ":"h","ⁱ":"i","ʲ":"j","ᵏ":"k","ˡ":"l","ᵐ":"m","ⁿ":"n","ᵒ":"o","ᵖ":"p","ʳ":"r","ˢ":"s","ᵗ":"t","ᵘ":"u","ᵛ":"v","ʷ":"w","ˣ":"x","ʸ":"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Fr=Object.freeze({"𝒜":"A","ℬ":"B","𝒞":"C","𝒟":"D","ℰ":"E","ℱ":"F","𝒢":"G","ℋ":"H","ℐ":"I","𝒥":"J","𝒦":"K","ℒ":"L","ℳ":"M","𝒩":"N","𝒪":"O","𝒫":"P","𝒬":"Q","ℛ":"R","𝒮":"S","𝒯":"T","𝒰":"U","𝒱":"V","𝒲":"W","𝒳":"X","𝒴":"Y","𝒵":"Z"});var $r={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Gr={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","č":"č","ĉ":"ĉ","ċ":"ċ","ď":"ď","ḋ":"ḋ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ĺ":"ĺ","ľ":"ľ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ď":"Ď","Ḋ":"Ḋ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ĺ":"Ĺ","Ľ":"Ľ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ť":"Ť","Ṫ":"Ṫ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"};const Dr=["bin","op","open","punct","rel"],Pr=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/;class jr{constructor(e,t,r=!1){this.mode="math",this.gullet=new Er(e,t,this.mode),this.settings=t,this.isPreamble=r,this.leftrightDepth=0,this.prevAtomType=""}expect(t,r=!0){if(this.fetch().text!==t)throw new e(`Expected '${t}', got '${this.fetch().text}'`,this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken} + switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var e=this.parseExpression(!1);if(this.expect("EOF"),this.isPreamble){const e=Object.create(null);return Object.entries(this.gullet.macros.current).forEach((([t,r])=>{e[t]=r})),this.gullet.endGroup(),e}var t=this.gullet.macros.get("\\df@tag");return this.gullet.endGroup(),t&&(this.gullet.macros.current["\\df@tag"]=t),e}static get endOfExpression(){return["}","\\endgroup","\\end","\\right","\\endtoggle","&"]}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new Or("}")),this.gullet.pushTokens(e),e=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,e}parseExpression(e,t,r){var a=[];for(this.prevAtomType="";;){"math"===this.mode&&this.consumeSpaces();var n=this.fetch();if(-1!==jr.endOfExpression.indexOf(n.text))break;if(t&&n.text===t)break;if(r&&"\\middle"===n.text)break;if(e&&qr[n.text]&&qr[n.text].infix)break;if(!(n=this.parseAtom(t)))break;"internal"!==n.type&&(a.push(n),this.prevAtomType="atom"===n.type?n.family:n.type)}return"text"===this.mode&&this.formLigatures(a),this.handleInfixNodes(a)}handleInfixNodes(t){let r,a=-1;for(let n=0;n{t.appendChild(e.toNode())}))):t.appendChild(e.toNode())};"undefined"!=typeof document&&"CSS1Compat"!==document.compatMode&&("undefined"!=typeof console&&console.warn("Warning: Temml doesn't work in quirks mode. Make sure your website has a suitable doctype."),Vr=function(){throw new e("Temml doesn't work in quirks mode.")});const _r=function(t,r){r=new u(r);try{return ye(Rr(t,r),t,new Hr({level:r.displayMode?it:mt,maxSize:r.maxSize}),r)}catch(a){return function(t,r,a){if(!a.throwOnError&&t instanceof e)return(r=new w(["temml-error"],[new v(r+"\n"+t.toString())])).style.color=a.errorColor,r.style.whiteSpace="pre-line",r;throw t}(a,t,r)}};return{version:"0.10.32",render:Vr,renderToString:function(e,t){return _r(e,t).toMarkup()},postProcess:function(e){const t={};let r=0;for(let o of e.getElementsByClassName("tml-tageqn")){var a=o.getElementsByClassName("tml-eqn"),n=(0{let r=t[e.getAttribute("href").slice(1)];")"!==(r="("!==(r=-1===e.className.indexOf("tml-eqref")?(r=r.replace(/^\(/,"")).replace(/\($/,""):r).charAt(0)?"("+r:r).slice(-1)&&(r+=")"),e.textContent=r}))},ParseError:e,definePreamble:function(e,t){if((t=new u(t)).macros={},"string"==typeof e||e instanceof String)return delete(e=new jr(e,t,!0)).gullet.macros.current["\\df@tag"],e.parse();throw new TypeError("Temml can only parse string typed expression")},__parse:function(e,t){return t=new u(t),Rr(e,t)},__renderToMathMLTree:_r,__defineSymbol:F,__defineMacro:ht}}(); function copyMarkdownCode(btn) {