diff --git a/build/guppy.js b/build/guppy.js index 86c30a5b..50f5fe99 100644 --- a/build/guppy.js +++ b/build/guppy.js @@ -5277,7 +5277,7 @@ var Guppy = (function () { output: { latex: "\\dfrac{{$1}}{{$2}}", small_latex: "\\frac{{$1}}{{$2}}", - asciimath: "({$1})/({$2})" + asciimath: "{$1}/{$2}" }, input: 1, keys: ["/"], diff --git a/build/guppy.min.js b/build/guppy.min.js index e56d480f..e4af032e 100644 --- a/build/guppy.min.js +++ b/build/guppy.min.js @@ -1 +1 @@ -var Guppy=function(){"use strict";var m={to_eqlist:function(e){return 0==e[1].length||["=","!=","<=",">=","<",">"].indexOf(e[1][0][0])<0?[e]:m.to_eqlist(e[1][0]).concat([[e[0],[e[1][0][1][1],e[1][1]]]])},to_text:function(e){var t={bracket:function(e){return"("+e[0]+")"},"=":function(e){return e[0]+" = "+e[1]},"!=":function(e){return e[0]+" != "+e[1]},"<=":function(e){return e[0]+" <= "+e[1]},">=":function(e){return e[0]+" >= "+e[1]},"<":function(e){return e[0]+" < "+e[1]},">":function(e){return e[0]+" > "+e[1]},"*":function(e){return"("+e[0]+" * "+e[1]+")"},"+":function(e){return"("+e[0]+" + "+e[1]+")"},"/":function(e){return"("+e[0]+" / "+e[1]+")"},fraction:function(e){return"("+e[0]+" / "+e[1]+")"},"-":function(e){return 1==e.length?"-"+e[0]:"("+e[0]+" - "+e[1]+")"},val:function(e){return e[0]+""},var:function(e){return e[0]},subscript:function(e){return"("+e[0]+"_"+e[1]+")"},exponential:function(e){return"("+e[0]+"^"+e[1]+")"},factorial:function(e){return"("+e[0]+")!"},_default:function(e,t){return e+"("+t.join(",")+")"}};return m.eval(e,t)},to_xml:function(e,s,l){for(var n=function(e,t){e.documentElement.firstChild.textContent=t+e.documentElement.firstChild.textContent},a=function(e,t){var r=e.documentElement.lastChild,n=t.documentElement.firstChild;for(r.firstChild.textContent+=n.firstChild.textContent,n=n.nextSibling;n;n=n.nextSibling)r.parentNode.insertBefore(n.cloneNode(!0),null)},h=function(e){for(var t=e.getElementsByTagName("e"),r=0;r","text/xml");h(n);var i=n.documentElement.firstChild,a=function(e){for(var t={},r=0;r","=","<=",">=","!="],u=0;u"+e[0]+"","text/xml")},t.var=function(e){return 1==e[0].length?(new window.DOMParser).parseFromString(""+e[0]+"","text/xml"):o(e[0],{})},t.list=function(e){for(var t=(new window.DOMParser).parseFromString("","text/xml"),r=0;r","text/xml"),d=c.documentElement.firstChild;d;d=d.nextSibling)p.documentElement.insertBefore(d.cloneNode(!0),null);return p},get_nodes:function(e,t){if(e.length<2)return[];var r=[];if(e[0]==t&&r.push(e[1]),"var"==e[0]||"val"==e[0])return r;for(var n=0;n=r.lbp&&(r.lbp=t):((r=Object.create(o.original_symbol)).id=r.value=e,r.lbp=t,(r.parent=o).symbol_table[e]=r),r},this.advance=function(e){var t,r,n,i;if(e&&this.token.id!==e)throw Error("Expected '"+e+"'");if(!(o.token_nr>=o.tokens.length)){n=o.tokens[o.token_nr],o.token_nr+=1,i=n.value;var a=null;if("name"===(t=n.type))r=this.symbol_table["(var)"];else if("operator"===t){if(!(r=this.symbol_table[i]))throw Error("Unknown operator")}else if("pass"===t)t="pass",r=this.symbol_table["(pass)"],a=n.args;else if("number"===t)t="literal",r=this.symbol_table["(literal)"];else{if("function"!==t)throw Error("Unexpected token",n);t="function",r=this.symbol_table["(function)"],a=n.args}return o.token=Object.create(r),o.token.type=t,o.token.value=i,a&&(o.token.args=a),o.token}o.token=this.symbol_table["(end)"]},this.expression=function(e){var t,r=o.token;for(o.advance(),t=r.nud();e",40),this.infix("<=",40),this.infix(">=",40),this.infix("+",50),this.infix("-",50),this.infix("*",60),this.infix("/",60),this.infix("!",70,function(e){return["factorial",[e]]}),this.infix("^",70,function(e){return["exponential",[e,o.expression(70)]]}),this.infix("_",70,function(e){return["subscript",[e,o.expression(70)]]}),this.infix("(",80,o.mul),this.symbol("(").nud=function(){var e=o.expression(0);return o.advance(")"),e},this.symbol(")"),this.symbol("{").nud=function(){var e=o.expression(0);return o.advance("}"),e},this.symbol("}"),this.symbol(","),this.prefix("-"),this.tokenise_and_parse=function(e){return this.parse(this.tokenise(e))},this.parse=function(e){return this.tokens=e,(this.token_nr=0)==this.tokens.length?["blank"]:(this.advance(),this.expression(10))}};e.prototype.tokenise=function(e){for(var t=[];0=|!=|>|<|=)",value:function(e){return e}},{type:"operator",re:"^[-+*/!]",value:function(e){return e}},{type:"name",re:"^[a-zA-Z]",value:function(e){return e}},{type:"space",re:"^\\s+",value:function(e){return e}}]),r=new e([{type:"number",re:"^[0-9.]+",value:function(e){if(isNaN(Number(e)))throw Error("Invalid number: "+e);return Number(e)}},{type:"operator",re:"^(!=|>=|<=)",value:function(e){return e}},{type:"operator",re:"^[-+*/,!()=<>_^]",value:function(e){return e}},{type:"name",re:"^[a-zA-Z_]*[a-zA-Z]",value:function(e){return e}},{type:"comma",re:"^,",value:function(e){return e}},{type:"space",re:"^\\s+",value:function(e){return e}}]),n=r.symbol("(var)",60);n.led=r.mul,n.nud=function(){if("("!=this.parent.token.id)return["var",[this.value]];var e=[];if(r.advance(),")"!==this.parent.token.id)for(;e.push(r.expression(0)),","===this.parent.token.id;)r.advance(",");return r.advance(")"),[this.value,e]};var i=new e([{type:"number",re:"^[0-9.]+",value:function(e){if(isNaN(Number(e)))throw Error("Invalid number: "+e);return Number(e)}},{type:"operator",re:"^(!=|>=|<=)",value:function(e){return e}},{type:"operator",re:"^[-+*/,!()=<>_^}{]",value:function(e){return e}},{type:"name",re:"^[a-zA-Z_]*[a-zA-Z]",value:function(e){return e}},{type:"name",re:"^\\\\[a-zA-Z]*[a-zA-Z]",value:function(e){return e.substring(1)}},{type:"space",re:"^\\s+",value:function(e){return e}}]);(n=i.symbol("(var)",60)).led=i.mul,n.nud=function(){for(var e=[];"{"==this.parent.token.id;)i.advance(),"}"!==this.parent.token.id&&(e.push(i.expression(0)),i.advance("}"));return 0"},keys:["{"],attrs:{group:"array",type:"vector"}},point:{output:{latex:"\\left( {$1{,}} \\right)",asciimath:"({$1{,}})"},keys:["{"],attrs:{group:"array",type:"point"}},mat:{output:{latex:"\\left(\\begin{matrix} {$1{ & }{\\\\}} \\end{matrix}\\right)",asciimath:"matrix({$1{,}{;}})"},keys:["["],attrs:{group:"array",type:"matrix"}},"*":{output:{latex:"\\cdot",asciimath:"*"},keys:["*"],attrs:{group:"operations",type:"*"},ast:{type:"operator"}},infinity:{output:{latex:"\\infty",asciimath:"oo"},attrs:{group:"functions",type:"infinity"}},_templates:{latex_func:{output:{latex:"\\{$name}\\left({$1}\\right)",asciimath:" {$name}({$1})"},attrs:{type:"{$name}",group:"functions"},args:[{delete:"1"}]},latex_trig_func:{output:{latex:"\\{$name}\\left({$1}\\right)",asciimath:" {$name}({$1})"},attrs:{type:"{$name}",group:"trigonometry"},args:[{delete:"1"}]},func:{output:{latex:"{$latex}\\left({$1}\\right)",asciimath:" {$asciimath}({$1})"},attrs:{type:"{$name}",group:"{$group}"},args:[{delete:"1"}]},char:{output:{latex:"\\{$name}",asciimath:" {$name} "},attrs:{group:"greek",type:"{$name}"}},utf8codepoint:{output:{latex:'{\\char"{$codepoint}}',asciimath:" \\u{$codepoint} "},attrs:{group:"unicode",type:"{$name}"},ast:{value:"\\u{$codepoint}"}},utf8char:{output:{latex:"\\text{{$char}}",asciimath:" {$name} "},attrs:{group:"emoji",type:"{$name}"}},binop:{output:{latex:"{$latex}",asciimath:"{$asciimath}"},keys:["{$type}"],attrs:{group:"operations",type:"{$type}"},ast:{type:"operator"}}},trig_functions:{template:"latex_trig_func",values:["sin","cos","tan","sec","csc","cot","arcsin","arccos","arctan","sinh","cosh","tanh"]},functions:{template:"latex_trig_func",values:["log","ln"]},greek:{template:"char",values:["alpha","beta","gamma","delta","epsilon","zeta","eta","theta","iota","kappa","lambda","mu","nu","xi","pi","rho","sigma","tau","upsilon","phi","chi","psi","omega","Gamma","Delta","Theta","Lambda","Xi","Pi","Sigma","Phi","Psi","Omega"]},comparisons:{template:"binop",values:{equal:{latex:"=",asciimath:" = ",type:"="},leq:{latex:"\\leq",asciimath:" <= ",type:"<="},less:{latex:"<",asciimath:" < ",type:"<"},geq:{latex:"\\geq",asciimath:" >= ",type:">="},greater:{latex:">",asciimath:" > ",type:">"},neq:{latex:"\\neq",asciimath:" != ",type:"!="}}}},h={GUPPY_VERSION:"2.0.0-alpha.1",DOC_VERSION:"1.2.0",SYMBOL_VERSION:"2.0.0-alpha.3",DOC_ERROR:function(e,t){throw Error("Document version mismatch for "+e+": Found "+t+", required "+h.DOC_VERSION+". To update your document, please see daniel3735928559.github.io/guppy/doc/version.html")},SYMBOL_ERROR:function(e,t){throw Error("Symbol version mismatch for "+e+": Found "+t+", required "+h.SYMBOL_VERSION+". To update your document, please see daniel3735928559.github.io/guppy/doc/version.html")}},w={symbols:{},templates:{},make_template_symbol:function(e,t,r){var n=JSON.parse(JSON.stringify(w.templates[e]));return w.eval_template(n,t,r)},eval_template:function(e,t,r){if(r.name=t,"[object String]"==Object.prototype.toString.call(e)){var n=e;for(var i in r)n=n.replace(new RegExp("\\{\\$"+i+"\\}"),r[i]);return n}for(var a in e)e[a]=w.eval_template(e[a],t,r);return e},lookup_type:function(e){for(var t in w.symbols)if(w.symbols[t].attrs.type==e)return t},add_symbols:function(e){var t=e._version,r=e._name;delete e._version,delete e._name,t&&t==h.SYMBOL_VERSION||h.SYMBOL_ERROR(r,t);var n=e._templates;if(n){for(var i in n)w.templates[i]=n[i];delete e._templates}for(var a in e)if(e[a].template)for(var o in e[a].values){var s=null,l=null;l="[object Array]"==Object.prototype.toString.call(e[a].values)?(s=e[a].values[o],{}):(s=o,e[a].values[o]),w.symbols[s]=w.make_template_symbol(e[a].template,s,l)}else w.symbols[a]=e[a]},validate:function(){for(var e in w.symbols){if(!w.symbols[e].output.latex)throw"Symbol "+e+" missing output.latex (needed for display)";if(!w.symbols[e].attrs.name)throw"Symbol "+e+" missing attrs.name (needed for text output)";if(!w.symbols[e].attrs.group)throw"Symbol "+e+" missing attrs.group (needed for mobile)"}},split_output:function(e){for(var t,r,n=/\{\$([0-9]+)/g,i=[],a=[],o=[];t=n.exec(e);)i.push(t.index),a.push(parseInt(t[1]));for(o.push({type:"text",val:e.substring(0,0":">","<":"<",'"':""","'":"'"},s=/[&><"']/g,l=function e(t){return"ordgroup"===t.type?1===t.body.length?e(t.body[0]):t:"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},X={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(s,function(e){return o[e]})},hyphenate:function(e){return e.replace(i,"-$1").toLowerCase()},getBaseElem:l,isCharacterBox:function(e){var t=l(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type}},c=function(){function e(e){this.displayMode=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.allowedProtocols=void 0,e=e||{},this.displayMode=X.deflt(e.displayMode,!1),this.throwOnError=X.deflt(e.throwOnError,!0),this.errorColor=X.deflt(e.errorColor,"#cc0000"),this.macros=e.macros||{},this.colorIsTextColor=X.deflt(e.colorIsTextColor,!1),this.strict=X.deflt(e.strict,"warn"),this.maxSize=Math.max(0,X.deflt(e.maxSize,1/0)),this.maxExpand=Math.max(0,X.deflt(e.maxExpand,1e3)),this.allowedProtocols=X.deflt(e.allowedProtocols,["http","https","mailto","_relative"])}var t=e.prototype;return t.reportNonstrict=function(e,t,r){var n=this.strict;if("function"==typeof n&&(n=n(e,t,r)),n&&"ignore"!==n){if(!0===n||"error"===n)throw new U("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",r);"warn"===n?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]")}},t.useStrictBehavior=function(e,t,r){var n=this.strict;if("function"==typeof n)try{n=n(e,t,r)}catch(e){n="error"}return!(!n||"ignore"===n||!0!==n&&"error"!==n&&("warn"===n?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]"),1))},e}(),h=function(){function e(e,t,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=r}var t=e.prototype;return t.sup=function(){return u[p[this.id]]},t.sub=function(){return u[m[this.id]]},t.fracNum=function(){return u[f[this.id]]},t.fracDen=function(){return u[g[this.id]]},t.cramp=function(){return u[v[this.id]]},t.text=function(){return u[y[this.id]]},t.isTight=function(){return 2<=this.size},e}(),u=[new h(0,0,!1),new h(1,0,!0),new h(2,1,!1),new h(3,1,!0),new h(4,2,!1),new h(5,2,!0),new h(6,3,!1),new h(7,3,!0)],p=[4,5,4,5,6,7,6,7],m=[5,5,5,5,7,7,7,7],f=[2,3,4,5,6,7,6,7],g=[3,3,5,5,7,7,7,7],v=[1,1,3,3,5,5,7,7],y=[0,1,2,3,2,3,2,3],E={DISPLAY:u[0],TEXT:u[2],SCRIPT:u[4],SCRIPTSCRIPT:u[6]},b=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],x=[];function _(e){for(var t=0;t=x[t]&&e<=x[t+1])return!0;return!1}b.forEach(function(e){return e.blocks.forEach(function(e){return x.push.apply(x,e)})});var w={path:{sqrtMain:"M95,702c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,\n-10,-9.5,-14c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54c44.2,-33.3,65.8,\n-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10s173,378,173,378c0.7,0,\n35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429c69,-144,104.5,-217.7,106.5,\n-221c5.3,-9.3,12,-14,20,-14H400000v40H845.2724s-225.272,467,-225.272,467\ns-235,486,-235,486c-2.7,4.7,-9,7,-19,7c-6,0,-10,-1,-12,-3s-194,-422,-194,-422\ns-65,47,-65,47z M834 80H400000v40H845z",sqrtSize1:"M263,681c0.7,0,18,39.7,52,119c34,79.3,68.167,\n158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120c340,-704.7,510.7,-1060.3,512,-1067\nc4.7,-7.3,11,-11,19,-11H40000v40H1012.3s-271.3,567,-271.3,567c-38.7,80.7,-84,\n175,-136,283c-52,108,-89.167,185.3,-111.5,232c-22.3,46.7,-33.8,70.3,-34.5,71\nc-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1s-109,-253,-109,-253c-72.7,-168,-109.3,\n-252,-110,-252c-10.7,8,-22,16.7,-34,26c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26\ns76,-59,76,-59s76,-60,76,-60z M1001 80H40000v40H1012z",sqrtSize2:"M1001,80H400000v40H1013.1s-83.4,268,-264.1,840c-180.7,\n572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,\n-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744c-10,12,-21,25,-33,39s-32,39,-32,39\nc-6,-5.3,-15,-14,-27,-26s25,-30,25,-30c26.7,-32.7,52,-63,76,-91s52,-60,52,-60\ns208,722,208,722c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,\n-658.5c53.7,-170.3,84.5,-266.8,92.5,-289.5c4,-6.7,10,-10,18,-10z\nM1001 80H400000v40H1013z",sqrtSize3:"M424,2478c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,\n-342,-109.8,-513.3,-110.5,-514c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,\n25c-5.7,9.3,-9.8,16,-12.5,20s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,\n-13s76,-122,76,-122s77,-121,77,-121s209,968,209,968c0,-2,84.7,-361.7,254,-1079\nc169.3,-717.3,254.7,-1077.7,256,-1081c4,-6.7,10,-10,18,-10H400000v40H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M1001 80H400000v40H1014z",sqrtSize4:"M473,2793c339.3,-1799.3,509.3,-2700,510,-2702\nc3.3,-7.3,9.3,-11,18,-11H400000v40H1017.7s-90.5,478,-276.2,1466c-185.7,988,\n-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,\n-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200c0,-1.3,-5.3,8.7,-16,30c-10.7,\n21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26s76,-153,76,-153s77,-151,\n77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,606z\nM1001 80H400000v40H1017z",doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 241v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"}},k=function(){function e(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var t=e.prototype;return t.hasClass=function(e){return X.contains(this.classes,e)},t.toNode=function(){for(var e=document.createDocumentFragment(),t=0;t"},A=function(){function e(e,t,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,C.call(this,e,r,n),this.children=t||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return X.contains(this.classes,e)},t.toNode=function(){return N.call(this,"span")},t.toMarkup=function(){return M.call(this,"span")},e}(),z=function(){function e(e,t,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,C.call(this,t,n),this.children=r||[],this.setAttribute("href",e)}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return X.contains(this.classes,e)},t.toNode=function(){return N.call(this,"a")},t.toMarkup=function(){return M.call(this,"a")},e}(),T=function(){function e(e,t,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=r}var t=e.prototype;return t.hasClass=function(e){return X.contains(this.classes,e)},t.toNode=function(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e},t.toMarkup=function(){var e=""+this.alt+"=i[0]&&e<=i[1])return r.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[\xee\xef\xed\xec]/.test(this.text)&&(this.text=B[this.text])}var t=e.prototype;return t.hasClass=function(e){return X.contains(this.classes,e)},t.toNode=function(){var e=document.createTextNode(this.text),t=null;for(var r in 0"):i},e}(),R=function(){function e(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var r=0;r":""},e}(),I=function(){function e(e){this.attributes=void 0,this.attributes=e||{}}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e},t.toMarkup=function(){var e="",">"),W(j,K,se,":",":"),W(j,K,se,"≈","\\approx",!0),W(j,K,se,"≅","\\cong",!0),W(j,K,se,"≥","\\ge"),W(j,K,se,"≥","\\geq",!0),W(j,K,se,"←","\\gets"),W(j,K,se,">","\\gt"),W(j,K,se,"∈","\\in",!0),W(j,K,se,"̸","\\@not"),W(j,K,se,"⊂","\\subset",!0),W(j,K,se,"⊃","\\supset",!0),W(j,K,se,"⊆","\\subseteq",!0),W(j,K,se,"⊇","\\supseteq",!0),W(j,J,se,"⊈","\\nsubseteq",!0),W(j,J,se,"⊉","\\nsupseteq",!0),W(j,K,se,"⊨","\\models"),W(j,K,se,"←","\\leftarrow",!0),W(j,K,se,"≤","\\le"),W(j,K,se,"≤","\\leq",!0),W(j,K,se,"<","\\lt"),W(j,K,se,"→","\\rightarrow",!0),W(j,K,se,"→","\\to"),W(j,J,se,"≱","\\ngeq",!0),W(j,J,se,"≰","\\nleq",!0),W(j,K,le," ","\\ "),W(j,K,le," ","~"),W(j,K,le," ","\\space"),W(j,K,le," ","\\nobreakspace"),W(Z,K,le," ","\\ "),W(Z,K,le," ","~"),W(Z,K,le," ","\\space"),W(Z,K,le," ","\\nobreakspace"),W(j,K,le,null,"\\nobreak"),W(j,K,le,null,"\\allowbreak"),W(j,K,oe,",",","),W(j,K,oe,";",";"),W(j,J,ee,"⊼","\\barwedge",!0),W(j,J,ee,"⊻","\\veebar",!0),W(j,K,ee,"⊙","\\odot",!0),W(j,K,ee,"⊕","\\oplus",!0),W(j,K,ee,"⊗","\\otimes",!0),W(j,K,he,"∂","\\partial",!0),W(j,K,ee,"⊘","\\oslash",!0),W(j,J,ee,"⊚","\\circledcirc",!0),W(j,J,ee,"⊡","\\boxdot",!0),W(j,K,ee,"△","\\bigtriangleup"),W(j,K,ee,"▽","\\bigtriangledown"),W(j,K,ee,"†","\\dagger"),W(j,K,ee,"⋄","\\diamond"),W(j,K,ee,"⋆","\\star"),W(j,K,ee,"◃","\\triangleleft"),W(j,K,ee,"▹","\\triangleright"),W(j,K,ae,"{","\\{"),W(Z,K,he,"{","\\{"),W(Z,K,he,"{","\\textbraceleft"),W(j,K,te,"}","\\}"),W(Z,K,he,"}","\\}"),W(Z,K,he,"}","\\textbraceright"),W(j,K,ae,"{","\\lbrace"),W(j,K,te,"}","\\rbrace"),W(j,K,ae,"[","\\lbrack"),W(Z,K,he,"[","\\lbrack"),W(j,K,te,"]","\\rbrack"),W(Z,K,he,"]","\\rbrack"),W(j,K,ae,"(","\\lparen"),W(j,K,te,")","\\rparen"),W(Z,K,he,"<","\\textless"),W(Z,K,he,">","\\textgreater"),W(j,K,ae,"⌊","\\lfloor",!0),W(j,K,te,"⌋","\\rfloor",!0),W(j,K,ae,"⌈","\\lceil",!0),W(j,K,te,"⌉","\\rceil",!0),W(j,K,he,"\\","\\backslash"),W(j,K,he,"∣","|"),W(j,K,he,"∣","\\vert"),W(Z,K,he,"|","\\textbar"),W(j,K,he,"∥","\\|"),W(j,K,he,"∥","\\Vert"),W(Z,K,he,"∥","\\textbardbl"),W(Z,K,he,"~","\\textasciitilde"),W(j,K,se,"↑","\\uparrow",!0),W(j,K,se,"⇑","\\Uparrow",!0),W(j,K,se,"↓","\\downarrow",!0),W(j,K,se,"⇓","\\Downarrow",!0),W(j,K,se,"↕","\\updownarrow",!0),W(j,K,se,"⇕","\\Updownarrow",!0),W(j,K,ie,"∐","\\coprod"),W(j,K,ie,"⋁","\\bigvee"),W(j,K,ie,"⋀","\\bigwedge"),W(j,K,ie,"⨄","\\biguplus"),W(j,K,ie,"⋂","\\bigcap"),W(j,K,ie,"⋃","\\bigcup"),W(j,K,ie,"∫","\\int"),W(j,K,ie,"∫","\\intop"),W(j,K,ie,"∬","\\iint"),W(j,K,ie,"∭","\\iiint"),W(j,K,ie,"∏","\\prod"),W(j,K,ie,"∑","\\sum"),W(j,K,ie,"⨂","\\bigotimes"),W(j,K,ie,"⨁","\\bigoplus"),W(j,K,ie,"⨀","\\bigodot"),W(j,K,ie,"∮","\\oint"),W(j,K,ie,"∯","\\oiint"),W(j,K,ie,"∰","\\oiiint"),W(j,K,ie,"⨆","\\bigsqcup"),W(j,K,ie,"∫","\\smallint"),W(Z,K,re,"…","\\textellipsis"),W(j,K,re,"…","\\mathellipsis"),W(Z,K,re,"…","\\ldots",!0),W(j,K,re,"…","\\ldots",!0),W(j,K,re,"⋯","\\@cdots",!0),W(j,K,re,"⋱","\\ddots",!0),W(j,K,he,"⋮","\\varvdots"),W(j,K,Q,"ˊ","\\acute"),W(j,K,Q,"ˋ","\\grave"),W(j,K,Q,"¨","\\ddot"),W(j,K,Q,"~","\\tilde"),W(j,K,Q,"ˉ","\\bar"),W(j,K,Q,"˘","\\breve"),W(j,K,Q,"ˇ","\\check"),W(j,K,Q,"^","\\hat"),W(j,K,Q,"⃗","\\vec"),W(j,K,Q,"˙","\\dot"),W(j,K,Q,"˚","\\mathring"),W(j,K,ne,"ı","\\imath",!0),W(j,K,ne,"ȷ","\\jmath",!0),W(Z,K,he,"ı","\\i",!0),W(Z,K,he,"ȷ","\\j",!0),W(Z,K,he,"ß","\\ss",!0),W(Z,K,he,"æ","\\ae",!0),W(Z,K,he,"æ","\\ae",!0),W(Z,K,he,"œ","\\oe",!0),W(Z,K,he,"ø","\\o",!0),W(Z,K,he,"Æ","\\AE",!0),W(Z,K,he,"Œ","\\OE",!0),W(Z,K,he,"Ø","\\O",!0),W(Z,K,Q,"ˊ","\\'"),W(Z,K,Q,"ˋ","\\`"),W(Z,K,Q,"ˆ","\\^"),W(Z,K,Q,"˜","\\~"),W(Z,K,Q,"ˉ","\\="),W(Z,K,Q,"˘","\\u"),W(Z,K,Q,"˙","\\."),W(Z,K,Q,"˚","\\r"),W(Z,K,Q,"ˇ","\\v"),W(Z,K,Q,"¨",'\\"'),W(Z,K,Q,"˝","\\H"),W(Z,K,Q,"◯","\\textcircled");var ue={"--":!0,"---":!0,"``":!0,"''":!0};W(Z,K,he,"–","--"),W(Z,K,he,"–","\\textendash"),W(Z,K,he,"—","---"),W(Z,K,he,"—","\\textemdash"),W(Z,K,he,"‘","`"),W(Z,K,he,"‘","\\textquoteleft"),W(Z,K,he,"’","'"),W(Z,K,he,"’","\\textquoteright"),W(Z,K,he,"“","``"),W(Z,K,he,"“","\\textquotedblleft"),W(Z,K,he,"”","''"),W(Z,K,he,"”","\\textquotedblright"),W(j,K,he,"°","\\degree",!0),W(Z,K,he,"°","\\degree"),W(Z,K,he,"°","\\textdegree",!0),W(j,K,ne,"£","\\pounds"),W(j,K,ne,"£","\\mathsterling",!0),W(Z,K,ne,"£","\\pounds"),W(Z,K,ne,"£","\\textsterling",!0),W(j,J,he,"✠","\\maltese"),W(Z,J,he,"✠","\\maltese"),W(Z,K,le," ","\\ "),W(Z,K,le," "," "),W(Z,K,le," ","~");for(var ce='0123456789/@."',pe=0;pet&&(t=a.height),a.depth>r&&(r=a.depth),a.maxFontSize>n&&(n=a.maxFontSize)}e.height=t,e.depth=r,e.maxFontSize=n},Ue=function(e,t,r,n){var i=new A(e,t,r,n);return Fe(i),i},Xe=function(e,t,r,n){return new A(e,t,r,n)},Ye=function(e){var t=new k(e);return Fe(t),t},Ge=function(e,t,r){var n="";switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}return n+"-"+("textbf"===t&&"textit"===r?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},We={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},je={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Ze={fontMap:We,makeSymbol:Ve,mathsym:function(e,t,r,n){return void 0===n&&(n=[]),r&&r.font&&"boldsymbol"===r.font&&$e(e,"Main-Bold",t).metrics?Ve(e,"Main-Bold",t,r,n.concat(["mathbf"])):"\\"===e||"main"===G[t][e].font?Ve(e,"Main-Regular",t,r,n):Ve(e,"AMS-Regular",t,r,n.concat(["amsrm"]))},makeSpan:Ue,makeSvgSpan:Xe,makeLineSpan:function(e,t,r){var n=Ue([e],[],t);return n.height=r||t.fontMetrics().defaultRuleThickness,n.style.borderBottomWidth=n.height+"em",n.maxFontSize=1,n},makeAnchor:function(e,t,r,n){var i=new z(e,t,r,n);return Fe(i),i},makeFragment:Ye,wrapFragment:function(e,t){return e instanceof k?Ue([],[e],t):e},makeVList:function(e,t){for(var r=function(e){if("individualShift"===e.positionType){for(var t=e.children,r=[t[0]],n=-t[0].shift-t[0].elem.depth,i=n,a=1;a"},t.toText=function(){return this.children.map(function(e){return e.toText()}).join("")},e}(),Mt=function(){function e(e,t){void 0===t&&(t=!0),this.text=void 0,this.needsEscape=void 0,this.text=e,this.needsEscape=t}var t=e.prototype;return t.toNode=function(){return document.createTextNode(this.toText())},t.toMarkup=function(){return this.toText()},t.toText=function(){return this.needsEscape?X.escape(this.text):this.text},e}(),At={MathNode:Nt,TextNode:Mt,SpaceNode:function(){function e(e){this.width=void 0,this.character=void 0,this.width=e,this.character=.05555<=e&&e<=.05556?" ":.1666<=e&&e<=.1667?" ":.2222<=e&&e<=.2223?" ":.2777<=e&&e<=.2778?"  ":-.05556<=e&&e<=-.05555?"​":-.1667<=e&&e<=-.1666?"​":-.2223<=e&&e<=-.2222?"​":-.2778<=e&&e<=-.2777?"​":null}var t=e.prototype;return t.toNode=function(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",this.width+"em"),e},t.toMarkup=function(){return this.character?""+this.character+"":''},t.toText=function(){return this.character?this.character:" "},e}(),newDocumentFragment:Ct},zt=function(e,t,r){return!G[t][e]||!G[t][e].replace||55349===e.charCodeAt(0)||ue.hasOwnProperty(e)&&r&&(r.fontFamily&&"tt"===r.fontFamily.substr(4,2)||r.font&&"tt"===r.font.substr(4,2))||(e=G[t][e].replace),new At.TextNode(e)},Tt=function(e){return 1===e.length?e[0]:new At.MathNode("mrow",e)},Et=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var r=t.font;if(!r||"mathnormal"===r)return null;var n=e.mode;if("mathit"===r)return"italic";if("boldsymbol"===r)return"bold-italic";var i=e.text;return X.contains(["\\imath","\\jmath"],i)?null:(G[n][i]&&G[n][i].replace&&(i=G[n][i].replace),$(i,Ze.fontMap[r].fontName,n)?Ze.fontMap[r].variant:null)},Bt=function(e,t){for(var r,n=[],i=0;i but got "+String(e)+".")}(wt(a,t)),a.base=n):r=(n=Ke(e,"accent")).base;var o=wt(r,t.havingCrampedStyle()),s=0;if(n.isShifty&&X.isCharacterBox(r)){var l=X.getBaseElem(r);s=function(e){if(e instanceof O)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}(wt(l,t.havingCrampedStyle())).skew}var h,u=Math.min(o.height,t.fontMetrics().xHeight);if(n.isStretchy)h=Pt(n,t),h=Ze.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"elem",elem:h,wrapperClasses:["svg-align"],wrapperStyle:0","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],tr=[0,1.2,1.8,2.4,3],rr=[{type:"small",style:E.SCRIPTSCRIPT},{type:"small",style:E.SCRIPT},{type:"small",style:E.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],nr=[{type:"small",style:E.SCRIPTSCRIPT},{type:"small",style:E.SCRIPT},{type:"small",style:E.TEXT},{type:"stack"}],ir=[{type:"small",style:E.SCRIPTSCRIPT},{type:"small",style:E.SCRIPT},{type:"small",style:E.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],ar=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},or=function(e,t,r,n){for(var i=Math.min(2,3-n.style.size);i"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),o=X.contains(er,e)?rr:X.contains(Jt,e)?ir:nr;var s,l,h,u,c,p,d,m=or(e,t,o,n);return"small"===m.type?(s=e,l=m.style,h=r,c=a,p=Ze.makeSymbol(s,"Main-Regular",i,u=n),d=Yt(p,l,u,c),h&&Gt(d,u,l),d):"large"===m.type?Wt(e,m.size,r,n,i,a):Zt(e,t,r,n,i,a)},lr=function(e,t,r,n,i){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),X.contains(Jt,e)||X.contains(er,e))return Wt(e,t,!1,r,n,i);if(X.contains(Qt,e))return Zt(e,tr[t],!1,r,n,i);throw new U("Illegal delimiter: '"+e+"'")},hr=sr,ur=function(e,t,r,n,i,a){var o=n.fontMetrics().axisHeight*n.sizeMultiplier,s=5/n.fontMetrics().ptPerEm,l=Math.max(t-o,r+o),h=Math.max(l/500*901,2*l-s);return sr(e,h,!0,n,i,a)},cr={"\\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}},pr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function dr(e,t){var r=et(e);if(r&&X.contains(pr,r.text))return r;throw new U("Invalid delimiter: '"+(r?r.text:JSON.stringify(e))+"' after '"+t.funcName+"'",e)}function mr(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ht({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(e,t){var r=dr(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:cr[e.funcName].size,mclass:cr[e.funcName].mclass,delim:r.text}},htmlBuilder:function(e,t){return"."===e.delim?Ze.makeSpan([e.mclass]):lr(e.delim,e.size,t,e.mode,[e.mclass])},mathmlBuilder:function(e){var t=[];"."!==e.delim&&t.push(zt(e.delim,e.mode));var r=new At.MathNode("mo",t);return"mopen"===e.mclass||"mclose"===e.mclass?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r}}),ht({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(e,t){return{type:"leftright-right",mode:e.parser.mode,delim:dr(t[0],e).text}}}),ht({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(e,t){var r=dr(t[0],e),n=e.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var a=Ke(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:a.delim}},htmlBuilder:function(e,t){mr(e);for(var r,n,i=vt(e.body,t,!0,["mopen","mclose"]),a=0,o=0,s=!1,l=0;lr.height+r.depth+f&&(f=(f+_-r.height-r.depth)/2);var w=y.height-r.height-f-b;r.style.paddingLeft=x+"em";var k=Ze.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+w)},{type:"elem",elem:y},{type:"kern",size:b}]},t);if(e.index){var S=t.havingStyle(E.SCRIPTSCRIPT),C=wt(e.index,S,t),N=.6*(k.height-k.depth),M=Ze.makeVList({positionType:"shift",positionData:-N,children:[{type:"elem",elem:C}]},t),A=Ze.makeSpan(["root"],[M]);return Ze.makeSpan(["mord","sqrt"],[A,k],t)}return Ze.makeSpan(["mord","sqrt"],[k],t)},mathmlBuilder:function(e,t){var r=e.body,n=e.index;return n?new At.MathNode("mroot",[Rt(r,t),Rt(n,t)]):new At.MathNode("msqrt",[Rt(r,t)])}});var Gr={display:E.DISPLAY,text:E.TEXT,script:E.SCRIPT,scriptscript:E.SCRIPTSCRIPT};ht({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(e,t){var r=e.breakOnTokenText,n=e.funcName,i=e.parser;i.consumeSpaces();var a=i.parseExpression(!0,r),o=n.slice(1,n.length-5);return{type:"styling",mode:i.mode,style:o,body:a}},htmlBuilder:function(e,t){var r=Gr[e.style],n=t.havingStyle(r).withFont("");return Ur(e.body,n,t)},mathmlBuilder:function(e,t){var r={display:E.DISPLAY,text:E.TEXT,script:E.SCRIPT,scriptscript:E.SCRIPTSCRIPT}[e.style],n=t.havingStyle(r),i=Bt(e.body,n),a=new At.MathNode("mstyle",i),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}}),ut({type:"supsub",htmlBuilder:function(e,t){var r,n,i,a=(n=t,(i=(r=e).base)?"op"!==i.type?"accent"===i.type?X.isCharacterBox(i.base)?$t:null:"horizBrace"!==i.type?null:!r.sub===i.isOver?qr:null:i.limits&&(n.style.size===E.DISPLAY.size||i.alwaysHandleSupSub)?$r:null:null);if(a)return a(e,t);var o,s,l,h=e.base,u=e.sup,c=e.sub,p=wt(h,t),d=t.fontMetrics(),m=0,f=0,g=h&&X.isCharacterBox(h);if(u){var v=t.havingStyle(t.style.sup());o=wt(u,v,t),g||(m=p.height-v.fontMetrics().supDrop*v.sizeMultiplier/t.sizeMultiplier)}if(c){var y=t.havingStyle(t.style.sub());s=wt(c,y,t),g||(f=p.depth+y.fontMetrics().subDrop*y.sizeMultiplier/t.sizeMultiplier)}l=t.style===E.DISPLAY?d.sup1:t.style.cramped?d.sup3:d.sup2;var b,x=t.sizeMultiplier,_=.5/d.ptPerEm/x+"em",w=null;if(s){var k=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(p instanceof O||k)&&(w=-p.italic+"em")}if(o&&s){m=Math.max(m,l,o.depth+.25*d.xHeight),f=Math.max(f,d.sub2);var S=4*d.defaultRuleThickness;if(m-o.depth-(s.height-f)":"\\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","\\bigsqcup":"\\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"};un("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in mn?t=mn[r]:"\\not"===r.substr(0,4)?t="\\dotsb":r in G.math&&X.contains(["bin","rel"],G.math[r].group)&&(t="\\dotsb"),t});var fn={")":!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};un("\\dotso",function(e){return e.future().text in fn?"\\ldots\\,":"\\ldots"}),un("\\dotsc",function(e){var t=e.future().text;return t in fn&&","!==t?"\\ldots\\,":"\\ldots"}),un("\\cdots",function(e){return e.future().text in fn?"\\@cdots\\,":"\\@cdots"}),un("\\dotsb","\\cdots"),un("\\dotsm","\\cdots"),un("\\dotsi","\\!\\cdots"),un("\\dotsx","\\ldots\\,"),un("\\DOTSI","\\relax"),un("\\DOTSB","\\relax"),un("\\DOTSX","\\relax"),un("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),un("\\,","\\tmspace+{3mu}{.1667em}"),un("\\thinspace","\\,"),un("\\>","\\mskip{4mu}"),un("\\:","\\tmspace+{4mu}{.2222em}"),un("\\medspace","\\:"),un("\\;","\\tmspace+{5mu}{.2777em}"),un("\\thickspace","\\;"),un("\\!","\\tmspace-{3mu}{.1667em}"),un("\\negthinspace","\\!"),un("\\negmedspace","\\tmspace-{4mu}{.2222em}"),un("\\negthickspace","\\tmspace-{5mu}{.277em}"),un("\\enspace","\\kern.5em "),un("\\enskip","\\hskip.5em\\relax"),un("\\quad","\\hskip1em\\relax"),un("\\qquad","\\hskip2em\\relax"),un("\\tag","\\@ifstar\\tag@literal\\tag@paren"),un("\\tag@paren","\\tag@literal{({#1})}"),un("\\tag@literal",function(e){if(e.macros.get("\\df@tag"))throw new U("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),un("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),un("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),un("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),un("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),un("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\mathrlap{\\mkern0.4mu\\raisebox{0.4mu}{$#1$}}{\\mkern0.8mu#1}}}{\\mathbf{#1}}"),un("\\\\","\\newline"),un("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var gn=q["Main-Regular"]["T".charCodeAt(0)][1]-.7*q["Main-Regular"]["A".charCodeAt(0)][1]+"em";un("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+gn+"}{\\scriptsize A}\\kern-.15em\\TeX}{LaTeX}}"),un("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+gn+"}{\\scriptsize A}\\kern-.15em\\TeX}{KaTeX}}"),un("\\hspace","\\@ifstar\\@hspacer\\@hspace"),un("\\@hspace","\\hskip #1\\relax"),un("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),un("\\ordinarycolon",":"),un("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),un("\\dblcolon","\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}"),un("\\coloneqq","\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}"),un("\\Coloneqq","\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}"),un("\\coloneq","\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}"),un("\\Coloneq","\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}"),un("\\eqqcolon","\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),un("\\Eqqcolon","\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}"),un("\\eqcolon","\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),un("\\Eqcolon","\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}"),un("\\colonapprox","\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}"),un("\\Colonapprox","\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}"),un("\\colonsim","\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}"),un("\\Colonsim","\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}"),un("≔","\\coloneqq"),un("≕","\\eqqcolon"),un("⩴","\\Coloneqq"),un("\\ratio","\\vcentcolon"),un("\\coloncolon","\\dblcolon"),un("\\colonequals","\\coloneqq"),un("\\coloncolonequals","\\Coloneqq"),un("\\equalscolon","\\eqqcolon"),un("\\equalscoloncolon","\\Eqqcolon"),un("\\colonminus","\\coloneq"),un("\\coloncolonminus","\\Coloneq"),un("\\minuscolon","\\eqcolon"),un("\\minuscoloncolon","\\Eqcolon"),un("\\coloncolonapprox","\\Colonapprox"),un("\\coloncolonsim","\\Colonsim"),un("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),un("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),un("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),un("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),un("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),un("\\limsup","\\DOTSB\\mathop{\\operatorname{lim\\,sup}}\\limits"),un("\\liminf","\\DOTSB\\mathop{\\operatorname{lim\\,inf}}\\limits"),un("⟦","\\mathopen{[\\mkern-3.2mu[}"),un("⟧","\\mathclose{]\\mkern-3.2mu]}"),un("\\darr","\\downarrow"),un("\\dArr","\\Downarrow"),un("\\Darr","\\Downarrow"),un("\\lang","\\langle"),un("\\rang","\\rangle"),un("\\uarr","\\uparrow"),un("\\uArr","\\Uparrow"),un("\\Uarr","\\Uparrow"),un("\\N","\\mathbb{N}"),un("\\R","\\mathbb{R}"),un("\\Z","\\mathbb{Z}"),un("\\alef","\\aleph"),un("\\alefsym","\\aleph"),un("\\Alpha","\\mathrm{A}"),un("\\Beta","\\mathrm{B}"),un("\\bull","\\bullet"),un("\\Chi","\\mathrm{X}"),un("\\clubs","\\clubsuit"),un("\\cnums","\\mathbb{C}"),un("\\Complex","\\mathbb{C}"),un("\\Dagger","\\ddagger"),un("\\diamonds","\\diamondsuit"),un("\\empty","\\emptyset"),un("\\Epsilon","\\mathrm{E}"),un("\\Eta","\\mathrm{H}"),un("\\exist","\\exists"),un("\\harr","\\leftrightarrow"),un("\\hArr","\\Leftrightarrow"),un("\\Harr","\\Leftrightarrow"),un("\\hearts","\\heartsuit"),un("\\image","\\Im"),un("\\infin","\\infty"),un("\\Iota","\\mathrm{I}"),un("\\isin","\\in"),un("\\Kappa","\\mathrm{K}"),un("\\larr","\\leftarrow"),un("\\lArr","\\Leftarrow"),un("\\Larr","\\Leftarrow"),un("\\lrarr","\\leftrightarrow"),un("\\lrArr","\\Leftrightarrow"),un("\\Lrarr","\\Leftrightarrow"),un("\\Mu","\\mathrm{M}"),un("\\natnums","\\mathbb{N}"),un("\\Nu","\\mathrm{N}"),un("\\Omicron","\\mathrm{O}"),un("\\plusmn","\\pm"),un("\\rarr","\\rightarrow"),un("\\rArr","\\Rightarrow"),un("\\Rarr","\\Rightarrow"),un("\\real","\\Re"),un("\\reals","\\mathbb{R}"),un("\\Reals","\\mathbb{R}"),un("\\Rho","\\mathrm{R}"),un("\\sdot","\\cdot"),un("\\sect","\\S"),un("\\spades","\\spadesuit"),un("\\sub","\\subset"),un("\\sube","\\subseteq"),un("\\supe","\\supseteq"),un("\\Tau","\\mathrm{T}"),un("\\thetasym","\\vartheta"),un("\\weierp","\\wp"),un("\\Zeta","\\mathrm{Z}");var vn={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},yn=function(){function e(e,t,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new sn(hn,t.macros),this.mode=r,this.stack=[]}var t=e.prototype;return t.feed=function(e){this.lexer=new on(e)},t.switchMode=function(e){this.mode=e},t.beginGroup=function(){this.macros.beginGroup()},t.endGroup=function(){this.macros.endGroup()},t.future=function(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},t.popToken=function(){return this.future(),this.stack.pop()},t.pushToken=function(e){this.stack.push(e)},t.pushTokens=function(e){var t;(t=this.stack).push.apply(t,e)},t.consumeSpaces=function(){for(;" "===this.future().text;)this.stack.pop()},t.consumeArgs=function(e){for(var t=[],r=0;rthis.settings.maxExpand)throw new U("Too many expansions: infinite loop or need to increase maxExpand setting");var n=r.tokens;if(r.numArgs)for(var i=this.consumeArgs(r.numArgs),a=(n=n.slice()).length-1;0<=a;--a){var o=n[a];if("#"===o.text){if(0===a)throw new U("Incomplete placeholder at end of macro body",o);if("#"===(o=n[--a]).text)n.splice(a+1,1);else{if(!/^[1-9]$/.test(o.text))throw new U("Not a valid argument number",o);var s;(s=n).splice.apply(s,[a,2].concat(i[+o.text-1]))}}}return this.pushTokens(n),n},t.expandAfterFuture=function(){return this.expandOnce(),this.future()},t.expandNextToken=function(){for(;;){var e=this.expandOnce();if(e instanceof a){if("\\relax"!==e.text)return this.stack.pop();this.stack.pop()}}throw new Error},t.expandMacro=function(e){if(this.macros.get(e)){var t=[],r=this.stack.length;for(this.pushToken(new a(e));this.stack.length>r;)this.expandOnce()instanceof a&&t.push(this.stack.pop());return t}},t.expandMacroAsText=function(e){var t=this.expandMacro(e);return t?t.map(function(e){return e.text}).join(""):t},t._getExpansion=function(e){var t=this.macros.get(e);if(null==t)return t;var r="function"==typeof t?t(this):t;if("string"!=typeof r)return r;var n=0;if(-1!==r.indexOf("#"))for(var i=r.replace(/##/g,"");-1!==i.indexOf("#"+(n+1));)++n;for(var a=new on(r),o=[],s=a.lex();"EOF"!==s.text;)o.push(s),s=a.lex();return o.reverse(),{tokens:o,numArgs:n}},t.isDefined=function(e){return this.macros.has(e)||rn.hasOwnProperty(e)||G.math.hasOwnProperty(e)||G.text.hasOwnProperty(e)||vn.hasOwnProperty(e)},e}(),bn={"́":{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"}},xn={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","č":"č","ĉ":"ĉ","ċ":"ċ","ď":"ď","ḋ":"ḋ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ĺ":"ĺ","ľ":"ľ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ď":"Ď","Ḋ":"Ḋ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ĺ":"Ĺ","Ľ":"Ľ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ť":"Ť","Ṫ":"Ṫ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"},_n=function(){function p(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new yn(e,t,this.mode),this.settings=t,this.leftrightDepth=0}var e=p.prototype;return e.expect=function(e,t){if(void 0===t&&(t=!0),this.nextToken.text!==e)throw new U("Expected '"+e+"', got '"+this.nextToken.text+"'",this.nextToken);t&&this.consume()},e.consume=function(){this.nextToken=this.gullet.expandNextToken()},e.switchMode=function(e){this.mode=e,this.gullet.switchMode(e)},e.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor"),this.consume();var e=this.parseExpression(!1);return this.expect("EOF",!1),this.gullet.endGroup(),e},e.parseExpression=function(e,t){for(var r=[];;){"math"===this.mode&&this.consumeSpaces();var n=this.nextToken;if(-1!==p.endOfExpression.indexOf(n.text))break;if(t&&n.text===t)break;if(e&&rn[n.text]&&rn[n.text].infix)break;var i=this.parseAtom(t);if(!i)break;r.push(i)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)},e.handleInfixNodes=function(e){for(var t,r=-1,n=0;n"):"latex"==t?this.import_latex(e):"text"==t?this.import_text(e):"ast"==t&&this.import_ast(e),this.root().hasAttribute("v")&&this.root().getAttribute("v")!=h.DOC_VERSION)throw h.DOC_ERROR;this.root().setAttribute("v",h.DOC_VERSION)});y.prototype.is_small=function(e){for(var t=e.parentNode;null!=t&&"m"!=t.nodeName;){if("yes"==t.getAttribute("small"))return!0;for(t=t.parentNode;null!=t&&"c"!=t.nodeName;)t=t.parentNode}return!1},y.prototype.ensure_text_nodes=function(){for(var e=this.base.getElementsByTagName("e"),t=0;t":">","|":"|","!":"!",",":",",".":".",";":";","=":"=","[":"[","]":"]","@":"@","'":"'","`":"`",":":":",'"':'"',"?":"?",space:" "},this.k_controls={up:"up",down:"down",right:"right",left:"left","alt+k":"up","alt+j":"down","alt+l":"right","alt+h":"left",space:"spacebar",home:"home",end:"end",backspace:"backspace",del:"delete_key","mod+a":"sel_all","mod+c":"sel_copy","mod+x":"sel_cut","mod+v":"sel_paste","mod+z":"undo","mod+y":"redo",enter:"done","mod+shift+right":"list_extend_copy_right","mod+shift+left":"list_extend_copy_left",",":"list_extend_right",";":"list_extend_down","mod+right":"list_extend_right","mod+left":"list_extend_left","mod+up":"list_extend_up","mod+down":"list_extend_down","mod+shift+up":"list_extend_copy_up","mod+shift+down":"list_extend_copy_down","mod+backspace":"list_remove","mod+shift+backspace":"list_remove_row","shift+left":"sel_left","shift+right":"sel_right",")":"right_paren","\\":"backslash",tab:"tab"},this.k_syms={},this.k_raw="mod+space";var e=0;for(e=65;e<=90;e++)this.k_chars[String.fromCharCode(e).toLowerCase()]=String.fromCharCode(e).toLowerCase(),this.k_chars["shift+"+String.fromCharCode(e).toLowerCase()]=String.fromCharCode(e).toUpperCase();for(e=48;e<=57;e++)this.k_chars[String.fromCharCode(e)]=String.fromCharCode(e)},d={config:{}};d.config.events={},d.config.valid_events=["change","left_end","right_end","done","completion","debug","error","focus"],d.config.settings={autoreplace:"auto",empty_content:"\\blue{[?]}",blank_caret:"",blank_placeholder:"[?]",blacklist:[],buttons:["osk","settings","symbols","controls"],cliptype:"latex"},d.settings_options={autoreplace:["auto","whole","delay","none"],cliptype:["latex","text","xml","ast","asciimath"]},d.panels={},d.panels.controls=document.createElement("div"),d.panels.controls.setAttribute("class","guppy_help"),d.panels.controls.style="padding:10px;border:1px solid black; background-color: #fff;position:absolute;top:0;left:0;display:none;",d.panels.controls.innerHTML='

Start typing the name of a mathematical function to automatically insert it.

(For example, "sqrt" for root, "mat" for matrix, or "defi" for definite integral.)

\n\n

Controls

Press......to do
',d.panels.symbols=document.createElement("div"),d.panels.symbols.setAttribute("class","guppy_help"),d.panels.symbols.style="padding:10px;border:1px solid black; background-color: #fff;position:absolute;top:0;left:0;display:none;",d.panels.symbols.innerHTML='

Start typing the name of a mathematical function to automatically insert it.

(For example, "sqrt" for root, "mat" for matrix, or "defi" for definite integral.)

\n\n

Symbols

Type......to get
',d.panels.settings=document.createElement("div"),d.panels.settings.setAttribute("class","guppy_help"),d.panels.settings.style="padding:10px;border:1px solid black; background-color: #fff;position:absolute;top:0;left:0;display:none;",d.panels.settings.innerHTML='

Global settings:

\n\n

Settings

',d.div_names=["controls","symbols","settings"];var f=function(e,t,r){var n=document.createElement("tr");return n.innerHTML=''+t+""+r+"",document.getElementById(e).appendChild(n),n},g=function(e){var t=document.createElement("div");t.setAttribute("class","guppy-card-x"),t.innerHTML='×',t.style="cursor:pointer;position:absolute;top:0;right:0;padding-right:5px;line-height:1;",t.onclick=function(){e.style.display="none"},e.appendChild(t)};d.hide_all=function(){for(var e=0;e'+r+"";var h=document.createElement("td");h.appendChild(a),l.appendChild(h),document.getElementById("guppy_settings_table").appendChild(l)}},d.init=function(e){for(var t=0;t=d.args.length?this.current=this.current.nextSibling:(this.down_from_f_to_blank(),this.caret=this.current.firstChild.textContent.length),this.sel_clear(),this.checkpoint(),!0},x.prototype.sel_get=function(){if(this.sel_status==x.SEL_NONE)return null;var e,t=[],r=[];if(this.sel_start.node==this.sel_end.node)return{node_list:[this.make_e(this.sel_start.node.firstChild.nodeValue.substring(this.sel_start.caret,this.sel_end.caret))],remnant:this.make_e(this.sel_start.node.firstChild.nodeValue.substring(0,this.sel_start.caret)+this.sel_end.node.firstChild.nodeValue.substring(this.sel_end.caret)),involved:[this.sel_start.node]};r.push(this.make_e(this.sel_start.node.firstChild.nodeValue.substring(this.sel_start.caret))),t.push(this.sel_start.node),t.push(this.sel_end.node),e=this.make_e(this.sel_start.node.firstChild.nodeValue.substring(0,this.sel_start.caret)+this.sel_end.node.firstChild.nodeValue.substring(this.sel_end.caret));for(var n=this.sel_start.node.nextSibling;null!=n&&n!=this.sel_end.node;)t.push(n),r.push(n),n=n.nextSibling;return r.push(this.make_e(this.sel_end.node.firstChild.nodeValue.substring(0,this.sel_end.caret))),{node_list:r,remnant:e,involved:t,cursor:0}},x.prototype.make_e=function(e){var t=this.doc.base,r=t.createElement("e");return r.appendChild(t.createTextNode(e)),r},x.prototype.insert_string=function(e){var t=this;this.sel_status!=x.SEL_NONE&&(this.sel_delete(),this.sel_clear()),this.current.firstChild.nodeValue=this.current.firstChild.nodeValue.splice(this.caret,e),this.caret+=e.length,this.checkpoint(),"auto"==this.setting("autoreplace")&&this.check_for_symbol(!1),"whole"==this.setting("autoreplace")&&this.check_for_symbol(!0),"delay"==this.setting("autoreplace")&&setTimeout&&(this.delayed_check&&clearTimeout(this.delayed_check),this.delayed_check=setTimeout(function(){t.check_for_symbol(!1)},200))},x.prototype.insert_doc=function(e){this.insert_nodes(e.root().childNodes,!0)},x.prototype.sel_copy=function(){var e=this.sel_get();if(e){x.clipboard=[];var t=this.setting("cliptype");if("none"!=t)var r=new y("");for(var n=0;n=S.get_length(this.current)){var e=this.current.nextSibling;null!=e&&(this.current=e.nextSibling,this.caret=0),this.set_sel_boundary(x.SEL_CURSOR_AT_END)}else this.caret+=1,this.set_sel_boundary(x.SEL_CURSOR_AT_END);this.sel_start.node==this.sel_end.node&&this.sel_start.caret==this.sel_end.caret&&(this.sel_status=x.SEL_NONE)},x.prototype.set_sel_boundary=function(e,t){(this.sel_status==x.SEL_NONE||t)&&(this.sel_status=e),this.sel_status==x.SEL_CURSOR_AT_START?this.set_sel_start():this.sel_status==x.SEL_CURSOR_AT_END&&this.set_sel_end()},x.prototype.sel_left=function(){if(this.sel_status==x.SEL_NONE&&(this.set_sel_end(),this.sel_status=x.SEL_CURSOR_AT_START),this.caret<=0){var e=this.current.previousSibling;null!=e&&(this.current=e.previousSibling,this.caret=this.current.firstChild.nodeValue.length),this.set_sel_boundary(x.SEL_CURSOR_AT_START)}else this.caret-=1,this.set_sel_boundary(x.SEL_CURSOR_AT_START);this.sel_start.node==this.sel_end.node&&this.sel_start.caret==this.sel_end.caret&&(this.sel_status=x.SEL_NONE)},x.prototype.list_extend_copy_right=function(){this.list_extend("right",!0)},x.prototype.list_extend_copy_left=function(){this.list_extend("left",!0)},x.prototype.list_extend_right=function(){this.list_extend("right",!1)},x.prototype.list_extend_left=function(){this.list_extend("left",!1)},x.prototype.list_extend_up=function(){this.list_extend("up",!1)},x.prototype.list_extend_down=function(){this.list_extend("down",!1)},x.prototype.list_extend_copy_up=function(){this.list_extend("up",!0)},x.prototype.list_extend_copy_down=function(){this.list_extend("down",!0)},x.prototype.list_vertical_move=function(e){for(var t=this.current;t.parentNode&&t.parentNode.parentNode&&("c"!=t.nodeName||"l"!=t.parentNode.nodeName||"l"!=t.parentNode.parentNode.nodeName);)t=t.parentNode;if(t.parentNode){for(var r=1,n=t;null!=n.previousSibling;)r++,n=n.previousSibling;var i=e?t.parentNode.nextSibling:t.parentNode.previousSibling;if(i){for(var a=1,o=i.firstChild;a=S.get_length(this.current)){var e=this.doc.xpath_node("following::e[1]",this.current);null!=e?(this.current=e,this.caret=0):this.fire_event("right_end")}else this.caret+=1},x.prototype.spacebar=function(){S.is_text(this.current)?this.insert_string(" "):this.space_caret=this.caret},x.prototype.left=function(){if(this.sel_clear(),this.caret<=0){var e=this.doc.xpath_node("preceding::e[1]",this.current);null!=e?(this.current=e,this.caret=this.current.firstChild.nodeValue.length):this.fire_event("left_end")}else this.caret-=1},x.prototype.delete_from_c=function(){for(var e=0,t=this.current.parentNode;t&&"c"==t.nodeName;)e++,t=t.previousSibling;for(var r=this.current.parentNode.getAttribute("delete"),n=[],i=this.doc.xpath_node("./c[position()="+r+"]",this.current.parentNode.parentNode).firstChild;null!=i;i=i.nextSibling)n.push(i);this.current=this.current.parentNode.parentNode,this.delete_from_f(),this.insert_nodes(n,r=this.undo_data.length-1)){this.undo_now++,this.restore(this.undo_now);var e=this.undo_data[this.undo_now-1]?(new XMLSerializer).serializeToString(this.undo_data[this.undo_now-1]):"[none]",t=(new XMLSerializer).serializeToString(this.undo_data[this.undo_now]);this.fire_event("change",{old:e,new:t})}},x.prototype.done=function(){if(S.is_symbol(this.current))this.complete_symbol();else if(S.is_utf8entry(this.current)){var e=this.current.firstChild.textContent;this.complete_utf8(e)}else this.fire_event("done")},x.prototype.complete_symbol=function(){var e=this.current.firstChild.textContent;this.symbols[e]&&(this.current=this.current.parentNode.parentNode,this.delete_from_f(),this.insert_symbol(e))},x.prototype.complete_utf8=function(e){e=parseInt("0x"+e),this.current=this.current.parentNode.parentNode,this.delete_from_f(),this.insert_utf8(e)},x.prototype.insert_utf8=function(e){if(e<=65535){var t=String.fromCharCode(e);this.insert_string(t)}else this.insert_symbol("utf8codepoint",{name:"UTF8",codepoint:e.toString(16)})},x.prototype.problem=function(e){this.fire_event("error",{message:e})},x.prototype.is_blacklisted=function(e){for(var t=this.setting("blacklist"),r=0;r":".","?":"/","|":"\\"},u={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"};for(t=1;t<20;++t)l[111+t]="f"+t;for(t=0;t<=9;++t)l[t+96]=t.toString();i.prototype.bind=function(e,t,r){return e=e instanceof Array?e:[e],this._bindMultiple.call(this,e,t,r),this},i.prototype.unbind=function(e,t){return this.bind.call(this,e,function(){},t)},i.prototype.trigger=function(e,t){return this._directMap[e+":"+t]&&this._directMap[e+":"+t]({},e),this},i.prototype.reset=function(){return this._callbacks={},this._directMap={},this},i.prototype.stopCallback=function(e,t){return!(-1<(" "+t.className+" ").indexOf(" mousetrap ")||function e(t,r){return null!==t&&t!==n&&(t===r||e(t.parentNode,r))}(t,this.target))&&("INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable)},i.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},i.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(l[t]=e[t]);s=null},i.init=function(){var e,t=i(n);for(e in t)"_"!==e.charAt(0)&&(i[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e))},i.init(),e.Mousetrap=i,o.exports&&(o.exports=i)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)}),C=function e(t){e.initialised||e.init();var r="string"==typeof t?document.getElementById(t):t,n=e.instances.get(r);if(n)return n;e.instances.set(r,this);var i=e.max_tabIndex||0;r.tabIndex=i,e.max_tabIndex=i+1,this.editor_active=!0,this.editor=r,this.blacklist=[],this.autoreplace=!0,this.engine=new x(this),this.temp_cursor={node:null,caret:0},this.editor.addEventListener("keydown",e.key_down,!1),this.editor.addEventListener("keyup",e.key_up,!1),this.editor.addEventListener("focus",function(){e.kb.alt_down=!1},!1),d.config.settings.buttons?this.set_buttons():this.configure("buttons",["settings","controls","symbols"]),this.render(!0),this.deactivate(),this.recompute_locations_paths()};return C.prototype.set_buttons=function(){var e=this.engine.setting("buttons"),t=this;if(e&&0!=e.length&&(this.buttons_div&&(this.buttons_div.parentElement.removeChild(this.buttons_div),delete this.buttons_div),this.buttons_div=document.createElement("div"),this.buttons_div.setAttribute("class","guppy_buttons"),e))for(var r=0;rr.right||e.clientY>r.bottom||e.clientY=","<",">"].indexOf(e[1][0][0])<0?[e]:m.to_eqlist(e[1][0]).concat([[e[0],[e[1][0][1][1],e[1][1]]]])},to_text:function(e){var t={bracket:function(e){return"("+e[0]+")"},"=":function(e){return e[0]+" = "+e[1]},"!=":function(e){return e[0]+" != "+e[1]},"<=":function(e){return e[0]+" <= "+e[1]},">=":function(e){return e[0]+" >= "+e[1]},"<":function(e){return e[0]+" < "+e[1]},">":function(e){return e[0]+" > "+e[1]},"*":function(e){return"("+e[0]+" * "+e[1]+")"},"+":function(e){return"("+e[0]+" + "+e[1]+")"},"/":function(e){return"("+e[0]+" / "+e[1]+")"},fraction:function(e){return"("+e[0]+" / "+e[1]+")"},"-":function(e){return 1==e.length?"-"+e[0]:"("+e[0]+" - "+e[1]+")"},val:function(e){return e[0]+""},var:function(e){return e[0]},subscript:function(e){return"("+e[0]+"_"+e[1]+")"},exponential:function(e){return"("+e[0]+"^"+e[1]+")"},factorial:function(e){return"("+e[0]+")!"},_default:function(e,t){return e+"("+t.join(",")+")"}};return m.eval(e,t)},to_xml:function(e,s,l){for(var n=function(e,t){e.documentElement.firstChild.textContent=t+e.documentElement.firstChild.textContent},a=function(e,t){var r=e.documentElement.lastChild,n=t.documentElement.firstChild;for(r.firstChild.textContent+=n.firstChild.textContent,n=n.nextSibling;n;n=n.nextSibling)r.parentNode.insertBefore(n.cloneNode(!0),null)},h=function(e){for(var t=e.getElementsByTagName("e"),r=0;r","text/xml");h(n);var i=n.documentElement.firstChild,a=function(e){for(var t={},r=0;r","=","<=",">=","!="],u=0;u"+e[0]+"","text/xml")},t.var=function(e){return 1==e[0].length?(new window.DOMParser).parseFromString(""+e[0]+"","text/xml"):o(e[0],{})},t.list=function(e){for(var t=(new window.DOMParser).parseFromString("","text/xml"),r=0;r","text/xml"),d=c.documentElement.firstChild;d;d=d.nextSibling)p.documentElement.insertBefore(d.cloneNode(!0),null);return p},get_nodes:function(e,t){if(e.length<2)return[];var r=[];if(e[0]==t&&r.push(e[1]),"var"==e[0]||"val"==e[0])return r;for(var n=0;n=r.lbp&&(r.lbp=t):((r=Object.create(o.original_symbol)).id=r.value=e,r.lbp=t,(r.parent=o).symbol_table[e]=r),r},this.advance=function(e){var t,r,n,i;if(e&&this.token.id!==e)throw Error("Expected '"+e+"'");if(!(o.token_nr>=o.tokens.length)){n=o.tokens[o.token_nr],o.token_nr+=1,i=n.value;var a=null;if("name"===(t=n.type))r=this.symbol_table["(var)"];else if("operator"===t){if(!(r=this.symbol_table[i]))throw Error("Unknown operator")}else if("pass"===t)t="pass",r=this.symbol_table["(pass)"],a=n.args;else if("number"===t)t="literal",r=this.symbol_table["(literal)"];else{if("function"!==t)throw Error("Unexpected token",n);t="function",r=this.symbol_table["(function)"],a=n.args}return o.token=Object.create(r),o.token.type=t,o.token.value=i,a&&(o.token.args=a),o.token}o.token=this.symbol_table["(end)"]},this.expression=function(e){var t,r=o.token;for(o.advance(),t=r.nud();e",40),this.infix("<=",40),this.infix(">=",40),this.infix("+",50),this.infix("-",50),this.infix("*",60),this.infix("/",60),this.infix("!",70,function(e){return["factorial",[e]]}),this.infix("^",70,function(e){return["exponential",[e,o.expression(70)]]}),this.infix("_",70,function(e){return["subscript",[e,o.expression(70)]]}),this.infix("(",80,o.mul),this.symbol("(").nud=function(){var e=o.expression(0);return o.advance(")"),e},this.symbol(")"),this.symbol("{").nud=function(){var e=o.expression(0);return o.advance("}"),e},this.symbol("}"),this.symbol(","),this.prefix("-"),this.tokenise_and_parse=function(e){return this.parse(this.tokenise(e))},this.parse=function(e){return this.tokens=e,(this.token_nr=0)==this.tokens.length?["blank"]:(this.advance(),this.expression(10))}};e.prototype.tokenise=function(e){for(var t=[];0=|!=|>|<|=)",value:function(e){return e}},{type:"operator",re:"^[-+*/!]",value:function(e){return e}},{type:"name",re:"^[a-zA-Z]",value:function(e){return e}},{type:"space",re:"^\\s+",value:function(e){return e}}]),r=new e([{type:"number",re:"^[0-9.]+",value:function(e){if(isNaN(Number(e)))throw Error("Invalid number: "+e);return Number(e)}},{type:"operator",re:"^(!=|>=|<=)",value:function(e){return e}},{type:"operator",re:"^[-+*/,!()=<>_^]",value:function(e){return e}},{type:"name",re:"^[a-zA-Z_]*[a-zA-Z]",value:function(e){return e}},{type:"comma",re:"^,",value:function(e){return e}},{type:"space",re:"^\\s+",value:function(e){return e}}]),n=r.symbol("(var)",60);n.led=r.mul,n.nud=function(){if("("!=this.parent.token.id)return["var",[this.value]];var e=[];if(r.advance(),")"!==this.parent.token.id)for(;e.push(r.expression(0)),","===this.parent.token.id;)r.advance(",");return r.advance(")"),[this.value,e]};var i=new e([{type:"number",re:"^[0-9.]+",value:function(e){if(isNaN(Number(e)))throw Error("Invalid number: "+e);return Number(e)}},{type:"operator",re:"^(!=|>=|<=)",value:function(e){return e}},{type:"operator",re:"^[-+*/,!()=<>_^}{]",value:function(e){return e}},{type:"name",re:"^[a-zA-Z_]*[a-zA-Z]",value:function(e){return e}},{type:"name",re:"^\\\\[a-zA-Z]*[a-zA-Z]",value:function(e){return e.substring(1)}},{type:"space",re:"^\\s+",value:function(e){return e}}]);(n=i.symbol("(var)",60)).led=i.mul,n.nud=function(){for(var e=[];"{"==this.parent.token.id;)i.advance(),"}"!==this.parent.token.id&&(e.push(i.expression(0)),i.advance("}"));return 0"},keys:["{"],attrs:{group:"array",type:"vector"}},point:{output:{latex:"\\left( {$1{,}} \\right)",asciimath:"({$1{,}})"},keys:["{"],attrs:{group:"array",type:"point"}},mat:{output:{latex:"\\left(\\begin{matrix} {$1{ & }{\\\\}} \\end{matrix}\\right)",asciimath:"matrix({$1{,}{;}})"},keys:["["],attrs:{group:"array",type:"matrix"}},"*":{output:{latex:"\\cdot",asciimath:"*"},keys:["*"],attrs:{group:"operations",type:"*"},ast:{type:"operator"}},infinity:{output:{latex:"\\infty",asciimath:"oo"},attrs:{group:"functions",type:"infinity"}},_templates:{latex_func:{output:{latex:"\\{$name}\\left({$1}\\right)",asciimath:" {$name}({$1})"},attrs:{type:"{$name}",group:"functions"},args:[{delete:"1"}]},latex_trig_func:{output:{latex:"\\{$name}\\left({$1}\\right)",asciimath:" {$name}({$1})"},attrs:{type:"{$name}",group:"trigonometry"},args:[{delete:"1"}]},func:{output:{latex:"{$latex}\\left({$1}\\right)",asciimath:" {$asciimath}({$1})"},attrs:{type:"{$name}",group:"{$group}"},args:[{delete:"1"}]},char:{output:{latex:"\\{$name}",asciimath:" {$name} "},attrs:{group:"greek",type:"{$name}"}},utf8codepoint:{output:{latex:'{\\char"{$codepoint}}',asciimath:" \\u{$codepoint} "},attrs:{group:"unicode",type:"{$name}"},ast:{value:"\\u{$codepoint}"}},utf8char:{output:{latex:"\\text{{$char}}",asciimath:" {$name} "},attrs:{group:"emoji",type:"{$name}"}},binop:{output:{latex:"{$latex}",asciimath:"{$asciimath}"},keys:["{$type}"],attrs:{group:"operations",type:"{$type}"},ast:{type:"operator"}}},trig_functions:{template:"latex_trig_func",values:["sin","cos","tan","sec","csc","cot","arcsin","arccos","arctan","sinh","cosh","tanh"]},functions:{template:"latex_trig_func",values:["log","ln"]},greek:{template:"char",values:["alpha","beta","gamma","delta","epsilon","zeta","eta","theta","iota","kappa","lambda","mu","nu","xi","pi","rho","sigma","tau","upsilon","phi","chi","psi","omega","Gamma","Delta","Theta","Lambda","Xi","Pi","Sigma","Phi","Psi","Omega"]},comparisons:{template:"binop",values:{equal:{latex:"=",asciimath:" = ",type:"="},leq:{latex:"\\leq",asciimath:" <= ",type:"<="},less:{latex:"<",asciimath:" < ",type:"<"},geq:{latex:"\\geq",asciimath:" >= ",type:">="},greater:{latex:">",asciimath:" > ",type:">"},neq:{latex:"\\neq",asciimath:" != ",type:"!="}}}},h={GUPPY_VERSION:"2.0.0-alpha.1",DOC_VERSION:"1.2.0",SYMBOL_VERSION:"2.0.0-alpha.3",DOC_ERROR:function(e,t){throw Error("Document version mismatch for "+e+": Found "+t+", required "+h.DOC_VERSION+". To update your document, please see daniel3735928559.github.io/guppy/doc/version.html")},SYMBOL_ERROR:function(e,t){throw Error("Symbol version mismatch for "+e+": Found "+t+", required "+h.SYMBOL_VERSION+". To update your document, please see daniel3735928559.github.io/guppy/doc/version.html")}},w={symbols:{},templates:{},make_template_symbol:function(e,t,r){var n=JSON.parse(JSON.stringify(w.templates[e]));return w.eval_template(n,t,r)},eval_template:function(e,t,r){if(r.name=t,"[object String]"==Object.prototype.toString.call(e)){var n=e;for(var i in r)n=n.replace(new RegExp("\\{\\$"+i+"\\}"),r[i]);return n}for(var a in e)e[a]=w.eval_template(e[a],t,r);return e},lookup_type:function(e){for(var t in w.symbols)if(w.symbols[t].attrs.type==e)return t},add_symbols:function(e){var t=e._version,r=e._name;delete e._version,delete e._name,t&&t==h.SYMBOL_VERSION||h.SYMBOL_ERROR(r,t);var n=e._templates;if(n){for(var i in n)w.templates[i]=n[i];delete e._templates}for(var a in e)if(e[a].template)for(var o in e[a].values){var s=null,l=null;l="[object Array]"==Object.prototype.toString.call(e[a].values)?(s=e[a].values[o],{}):(s=o,e[a].values[o]),w.symbols[s]=w.make_template_symbol(e[a].template,s,l)}else w.symbols[a]=e[a]},validate:function(){for(var e in w.symbols){if(!w.symbols[e].output.latex)throw"Symbol "+e+" missing output.latex (needed for display)";if(!w.symbols[e].attrs.name)throw"Symbol "+e+" missing attrs.name (needed for text output)";if(!w.symbols[e].attrs.group)throw"Symbol "+e+" missing attrs.group (needed for mobile)"}},split_output:function(e){for(var t,r,n=/\{\$([0-9]+)/g,i=[],a=[],o=[];t=n.exec(e);)i.push(t.index),a.push(parseInt(t[1]));for(o.push({type:"text",val:e.substring(0,0":">","<":"<",'"':""","'":"'"},s=/[&><"']/g,l=function e(t){return"ordgroup"===t.type?1===t.body.length?e(t.body[0]):t:"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},X={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(s,function(e){return o[e]})},hyphenate:function(e){return e.replace(i,"-$1").toLowerCase()},getBaseElem:l,isCharacterBox:function(e){var t=l(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type}},c=function(){function e(e){this.displayMode=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.allowedProtocols=void 0,e=e||{},this.displayMode=X.deflt(e.displayMode,!1),this.throwOnError=X.deflt(e.throwOnError,!0),this.errorColor=X.deflt(e.errorColor,"#cc0000"),this.macros=e.macros||{},this.colorIsTextColor=X.deflt(e.colorIsTextColor,!1),this.strict=X.deflt(e.strict,"warn"),this.maxSize=Math.max(0,X.deflt(e.maxSize,1/0)),this.maxExpand=Math.max(0,X.deflt(e.maxExpand,1e3)),this.allowedProtocols=X.deflt(e.allowedProtocols,["http","https","mailto","_relative"])}var t=e.prototype;return t.reportNonstrict=function(e,t,r){var n=this.strict;if("function"==typeof n&&(n=n(e,t,r)),n&&"ignore"!==n){if(!0===n||"error"===n)throw new U("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",r);"warn"===n?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]")}},t.useStrictBehavior=function(e,t,r){var n=this.strict;if("function"==typeof n)try{n=n(e,t,r)}catch(e){n="error"}return!(!n||"ignore"===n||!0!==n&&"error"!==n&&("warn"===n?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]"),1))},e}(),h=function(){function e(e,t,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=r}var t=e.prototype;return t.sup=function(){return u[p[this.id]]},t.sub=function(){return u[m[this.id]]},t.fracNum=function(){return u[f[this.id]]},t.fracDen=function(){return u[g[this.id]]},t.cramp=function(){return u[v[this.id]]},t.text=function(){return u[y[this.id]]},t.isTight=function(){return 2<=this.size},e}(),u=[new h(0,0,!1),new h(1,0,!0),new h(2,1,!1),new h(3,1,!0),new h(4,2,!1),new h(5,2,!0),new h(6,3,!1),new h(7,3,!0)],p=[4,5,4,5,6,7,6,7],m=[5,5,5,5,7,7,7,7],f=[2,3,4,5,6,7,6,7],g=[3,3,5,5,7,7,7,7],v=[1,1,3,3,5,5,7,7],y=[0,1,2,3,2,3,2,3],E={DISPLAY:u[0],TEXT:u[2],SCRIPT:u[4],SCRIPTSCRIPT:u[6]},b=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],x=[];function _(e){for(var t=0;t=x[t]&&e<=x[t+1])return!0;return!1}b.forEach(function(e){return e.blocks.forEach(function(e){return x.push.apply(x,e)})});var w={path:{sqrtMain:"M95,702c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,\n-10,-9.5,-14c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54c44.2,-33.3,65.8,\n-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10s173,378,173,378c0.7,0,\n35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429c69,-144,104.5,-217.7,106.5,\n-221c5.3,-9.3,12,-14,20,-14H400000v40H845.2724s-225.272,467,-225.272,467\ns-235,486,-235,486c-2.7,4.7,-9,7,-19,7c-6,0,-10,-1,-12,-3s-194,-422,-194,-422\ns-65,47,-65,47z M834 80H400000v40H845z",sqrtSize1:"M263,681c0.7,0,18,39.7,52,119c34,79.3,68.167,\n158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120c340,-704.7,510.7,-1060.3,512,-1067\nc4.7,-7.3,11,-11,19,-11H40000v40H1012.3s-271.3,567,-271.3,567c-38.7,80.7,-84,\n175,-136,283c-52,108,-89.167,185.3,-111.5,232c-22.3,46.7,-33.8,70.3,-34.5,71\nc-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1s-109,-253,-109,-253c-72.7,-168,-109.3,\n-252,-110,-252c-10.7,8,-22,16.7,-34,26c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26\ns76,-59,76,-59s76,-60,76,-60z M1001 80H40000v40H1012z",sqrtSize2:"M1001,80H400000v40H1013.1s-83.4,268,-264.1,840c-180.7,\n572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,\n-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744c-10,12,-21,25,-33,39s-32,39,-32,39\nc-6,-5.3,-15,-14,-27,-26s25,-30,25,-30c26.7,-32.7,52,-63,76,-91s52,-60,52,-60\ns208,722,208,722c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,\n-658.5c53.7,-170.3,84.5,-266.8,92.5,-289.5c4,-6.7,10,-10,18,-10z\nM1001 80H400000v40H1013z",sqrtSize3:"M424,2478c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,\n-342,-109.8,-513.3,-110.5,-514c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,\n25c-5.7,9.3,-9.8,16,-12.5,20s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,\n-13s76,-122,76,-122s77,-121,77,-121s209,968,209,968c0,-2,84.7,-361.7,254,-1079\nc169.3,-717.3,254.7,-1077.7,256,-1081c4,-6.7,10,-10,18,-10H400000v40H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M1001 80H400000v40H1014z",sqrtSize4:"M473,2793c339.3,-1799.3,509.3,-2700,510,-2702\nc3.3,-7.3,9.3,-11,18,-11H400000v40H1017.7s-90.5,478,-276.2,1466c-185.7,988,\n-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,\n-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200c0,-1.3,-5.3,8.7,-16,30c-10.7,\n21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26s76,-153,76,-153s77,-151,\n77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,606z\nM1001 80H400000v40H1017z",doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 241v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"}},k=function(){function e(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var t=e.prototype;return t.hasClass=function(e){return X.contains(this.classes,e)},t.toNode=function(){for(var e=document.createDocumentFragment(),t=0;t"},A=function(){function e(e,t,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,C.call(this,e,r,n),this.children=t||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return X.contains(this.classes,e)},t.toNode=function(){return N.call(this,"span")},t.toMarkup=function(){return M.call(this,"span")},e}(),z=function(){function e(e,t,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,C.call(this,t,n),this.children=r||[],this.setAttribute("href",e)}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return X.contains(this.classes,e)},t.toNode=function(){return N.call(this,"a")},t.toMarkup=function(){return M.call(this,"a")},e}(),T=function(){function e(e,t,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=r}var t=e.prototype;return t.hasClass=function(e){return X.contains(this.classes,e)},t.toNode=function(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e},t.toMarkup=function(){var e=""+this.alt+"=i[0]&&e<=i[1])return r.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[\xee\xef\xed\xec]/.test(this.text)&&(this.text=B[this.text])}var t=e.prototype;return t.hasClass=function(e){return X.contains(this.classes,e)},t.toNode=function(){var e=document.createTextNode(this.text),t=null;for(var r in 0"):i},e}(),R=function(){function e(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var r=0;r":""},e}(),I=function(){function e(e){this.attributes=void 0,this.attributes=e||{}}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e},t.toMarkup=function(){var e="",">"),W(j,K,se,":",":"),W(j,K,se,"≈","\\approx",!0),W(j,K,se,"≅","\\cong",!0),W(j,K,se,"≥","\\ge"),W(j,K,se,"≥","\\geq",!0),W(j,K,se,"←","\\gets"),W(j,K,se,">","\\gt"),W(j,K,se,"∈","\\in",!0),W(j,K,se,"̸","\\@not"),W(j,K,se,"⊂","\\subset",!0),W(j,K,se,"⊃","\\supset",!0),W(j,K,se,"⊆","\\subseteq",!0),W(j,K,se,"⊇","\\supseteq",!0),W(j,J,se,"⊈","\\nsubseteq",!0),W(j,J,se,"⊉","\\nsupseteq",!0),W(j,K,se,"⊨","\\models"),W(j,K,se,"←","\\leftarrow",!0),W(j,K,se,"≤","\\le"),W(j,K,se,"≤","\\leq",!0),W(j,K,se,"<","\\lt"),W(j,K,se,"→","\\rightarrow",!0),W(j,K,se,"→","\\to"),W(j,J,se,"≱","\\ngeq",!0),W(j,J,se,"≰","\\nleq",!0),W(j,K,le," ","\\ "),W(j,K,le," ","~"),W(j,K,le," ","\\space"),W(j,K,le," ","\\nobreakspace"),W(Z,K,le," ","\\ "),W(Z,K,le," ","~"),W(Z,K,le," ","\\space"),W(Z,K,le," ","\\nobreakspace"),W(j,K,le,null,"\\nobreak"),W(j,K,le,null,"\\allowbreak"),W(j,K,oe,",",","),W(j,K,oe,";",";"),W(j,J,ee,"⊼","\\barwedge",!0),W(j,J,ee,"⊻","\\veebar",!0),W(j,K,ee,"⊙","\\odot",!0),W(j,K,ee,"⊕","\\oplus",!0),W(j,K,ee,"⊗","\\otimes",!0),W(j,K,he,"∂","\\partial",!0),W(j,K,ee,"⊘","\\oslash",!0),W(j,J,ee,"⊚","\\circledcirc",!0),W(j,J,ee,"⊡","\\boxdot",!0),W(j,K,ee,"△","\\bigtriangleup"),W(j,K,ee,"▽","\\bigtriangledown"),W(j,K,ee,"†","\\dagger"),W(j,K,ee,"⋄","\\diamond"),W(j,K,ee,"⋆","\\star"),W(j,K,ee,"◃","\\triangleleft"),W(j,K,ee,"▹","\\triangleright"),W(j,K,ae,"{","\\{"),W(Z,K,he,"{","\\{"),W(Z,K,he,"{","\\textbraceleft"),W(j,K,te,"}","\\}"),W(Z,K,he,"}","\\}"),W(Z,K,he,"}","\\textbraceright"),W(j,K,ae,"{","\\lbrace"),W(j,K,te,"}","\\rbrace"),W(j,K,ae,"[","\\lbrack"),W(Z,K,he,"[","\\lbrack"),W(j,K,te,"]","\\rbrack"),W(Z,K,he,"]","\\rbrack"),W(j,K,ae,"(","\\lparen"),W(j,K,te,")","\\rparen"),W(Z,K,he,"<","\\textless"),W(Z,K,he,">","\\textgreater"),W(j,K,ae,"⌊","\\lfloor",!0),W(j,K,te,"⌋","\\rfloor",!0),W(j,K,ae,"⌈","\\lceil",!0),W(j,K,te,"⌉","\\rceil",!0),W(j,K,he,"\\","\\backslash"),W(j,K,he,"∣","|"),W(j,K,he,"∣","\\vert"),W(Z,K,he,"|","\\textbar"),W(j,K,he,"∥","\\|"),W(j,K,he,"∥","\\Vert"),W(Z,K,he,"∥","\\textbardbl"),W(Z,K,he,"~","\\textasciitilde"),W(j,K,se,"↑","\\uparrow",!0),W(j,K,se,"⇑","\\Uparrow",!0),W(j,K,se,"↓","\\downarrow",!0),W(j,K,se,"⇓","\\Downarrow",!0),W(j,K,se,"↕","\\updownarrow",!0),W(j,K,se,"⇕","\\Updownarrow",!0),W(j,K,ie,"∐","\\coprod"),W(j,K,ie,"⋁","\\bigvee"),W(j,K,ie,"⋀","\\bigwedge"),W(j,K,ie,"⨄","\\biguplus"),W(j,K,ie,"⋂","\\bigcap"),W(j,K,ie,"⋃","\\bigcup"),W(j,K,ie,"∫","\\int"),W(j,K,ie,"∫","\\intop"),W(j,K,ie,"∬","\\iint"),W(j,K,ie,"∭","\\iiint"),W(j,K,ie,"∏","\\prod"),W(j,K,ie,"∑","\\sum"),W(j,K,ie,"⨂","\\bigotimes"),W(j,K,ie,"⨁","\\bigoplus"),W(j,K,ie,"⨀","\\bigodot"),W(j,K,ie,"∮","\\oint"),W(j,K,ie,"∯","\\oiint"),W(j,K,ie,"∰","\\oiiint"),W(j,K,ie,"⨆","\\bigsqcup"),W(j,K,ie,"∫","\\smallint"),W(Z,K,re,"…","\\textellipsis"),W(j,K,re,"…","\\mathellipsis"),W(Z,K,re,"…","\\ldots",!0),W(j,K,re,"…","\\ldots",!0),W(j,K,re,"⋯","\\@cdots",!0),W(j,K,re,"⋱","\\ddots",!0),W(j,K,he,"⋮","\\varvdots"),W(j,K,Q,"ˊ","\\acute"),W(j,K,Q,"ˋ","\\grave"),W(j,K,Q,"¨","\\ddot"),W(j,K,Q,"~","\\tilde"),W(j,K,Q,"ˉ","\\bar"),W(j,K,Q,"˘","\\breve"),W(j,K,Q,"ˇ","\\check"),W(j,K,Q,"^","\\hat"),W(j,K,Q,"⃗","\\vec"),W(j,K,Q,"˙","\\dot"),W(j,K,Q,"˚","\\mathring"),W(j,K,ne,"ı","\\imath",!0),W(j,K,ne,"ȷ","\\jmath",!0),W(Z,K,he,"ı","\\i",!0),W(Z,K,he,"ȷ","\\j",!0),W(Z,K,he,"ß","\\ss",!0),W(Z,K,he,"æ","\\ae",!0),W(Z,K,he,"æ","\\ae",!0),W(Z,K,he,"œ","\\oe",!0),W(Z,K,he,"ø","\\o",!0),W(Z,K,he,"Æ","\\AE",!0),W(Z,K,he,"Œ","\\OE",!0),W(Z,K,he,"Ø","\\O",!0),W(Z,K,Q,"ˊ","\\'"),W(Z,K,Q,"ˋ","\\`"),W(Z,K,Q,"ˆ","\\^"),W(Z,K,Q,"˜","\\~"),W(Z,K,Q,"ˉ","\\="),W(Z,K,Q,"˘","\\u"),W(Z,K,Q,"˙","\\."),W(Z,K,Q,"˚","\\r"),W(Z,K,Q,"ˇ","\\v"),W(Z,K,Q,"¨",'\\"'),W(Z,K,Q,"˝","\\H"),W(Z,K,Q,"◯","\\textcircled");var ue={"--":!0,"---":!0,"``":!0,"''":!0};W(Z,K,he,"–","--"),W(Z,K,he,"–","\\textendash"),W(Z,K,he,"—","---"),W(Z,K,he,"—","\\textemdash"),W(Z,K,he,"‘","`"),W(Z,K,he,"‘","\\textquoteleft"),W(Z,K,he,"’","'"),W(Z,K,he,"’","\\textquoteright"),W(Z,K,he,"“","``"),W(Z,K,he,"“","\\textquotedblleft"),W(Z,K,he,"”","''"),W(Z,K,he,"”","\\textquotedblright"),W(j,K,he,"°","\\degree",!0),W(Z,K,he,"°","\\degree"),W(Z,K,he,"°","\\textdegree",!0),W(j,K,ne,"£","\\pounds"),W(j,K,ne,"£","\\mathsterling",!0),W(Z,K,ne,"£","\\pounds"),W(Z,K,ne,"£","\\textsterling",!0),W(j,J,he,"✠","\\maltese"),W(Z,J,he,"✠","\\maltese"),W(Z,K,le," ","\\ "),W(Z,K,le," "," "),W(Z,K,le," ","~");for(var ce='0123456789/@."',pe=0;pet&&(t=a.height),a.depth>r&&(r=a.depth),a.maxFontSize>n&&(n=a.maxFontSize)}e.height=t,e.depth=r,e.maxFontSize=n},Ue=function(e,t,r,n){var i=new A(e,t,r,n);return Fe(i),i},Xe=function(e,t,r,n){return new A(e,t,r,n)},Ye=function(e){var t=new k(e);return Fe(t),t},Ge=function(e,t,r){var n="";switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}return n+"-"+("textbf"===t&&"textit"===r?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},We={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},je={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Ze={fontMap:We,makeSymbol:Ve,mathsym:function(e,t,r,n){return void 0===n&&(n=[]),r&&r.font&&"boldsymbol"===r.font&&$e(e,"Main-Bold",t).metrics?Ve(e,"Main-Bold",t,r,n.concat(["mathbf"])):"\\"===e||"main"===G[t][e].font?Ve(e,"Main-Regular",t,r,n):Ve(e,"AMS-Regular",t,r,n.concat(["amsrm"]))},makeSpan:Ue,makeSvgSpan:Xe,makeLineSpan:function(e,t,r){var n=Ue([e],[],t);return n.height=r||t.fontMetrics().defaultRuleThickness,n.style.borderBottomWidth=n.height+"em",n.maxFontSize=1,n},makeAnchor:function(e,t,r,n){var i=new z(e,t,r,n);return Fe(i),i},makeFragment:Ye,wrapFragment:function(e,t){return e instanceof k?Ue([],[e],t):e},makeVList:function(e,t){for(var r=function(e){if("individualShift"===e.positionType){for(var t=e.children,r=[t[0]],n=-t[0].shift-t[0].elem.depth,i=n,a=1;a"},t.toText=function(){return this.children.map(function(e){return e.toText()}).join("")},e}(),Mt=function(){function e(e,t){void 0===t&&(t=!0),this.text=void 0,this.needsEscape=void 0,this.text=e,this.needsEscape=t}var t=e.prototype;return t.toNode=function(){return document.createTextNode(this.toText())},t.toMarkup=function(){return this.toText()},t.toText=function(){return this.needsEscape?X.escape(this.text):this.text},e}(),At={MathNode:Nt,TextNode:Mt,SpaceNode:function(){function e(e){this.width=void 0,this.character=void 0,this.width=e,this.character=.05555<=e&&e<=.05556?" ":.1666<=e&&e<=.1667?" ":.2222<=e&&e<=.2223?" ":.2777<=e&&e<=.2778?"  ":-.05556<=e&&e<=-.05555?"​":-.1667<=e&&e<=-.1666?"​":-.2223<=e&&e<=-.2222?"​":-.2778<=e&&e<=-.2777?"​":null}var t=e.prototype;return t.toNode=function(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",this.width+"em"),e},t.toMarkup=function(){return this.character?""+this.character+"":''},t.toText=function(){return this.character?this.character:" "},e}(),newDocumentFragment:Ct},zt=function(e,t,r){return!G[t][e]||!G[t][e].replace||55349===e.charCodeAt(0)||ue.hasOwnProperty(e)&&r&&(r.fontFamily&&"tt"===r.fontFamily.substr(4,2)||r.font&&"tt"===r.font.substr(4,2))||(e=G[t][e].replace),new At.TextNode(e)},Tt=function(e){return 1===e.length?e[0]:new At.MathNode("mrow",e)},Et=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var r=t.font;if(!r||"mathnormal"===r)return null;var n=e.mode;if("mathit"===r)return"italic";if("boldsymbol"===r)return"bold-italic";var i=e.text;return X.contains(["\\imath","\\jmath"],i)?null:(G[n][i]&&G[n][i].replace&&(i=G[n][i].replace),$(i,Ze.fontMap[r].fontName,n)?Ze.fontMap[r].variant:null)},Bt=function(e,t){for(var r,n=[],i=0;i but got "+String(e)+".")}(wt(a,t)),a.base=n):r=(n=Ke(e,"accent")).base;var o=wt(r,t.havingCrampedStyle()),s=0;if(n.isShifty&&X.isCharacterBox(r)){var l=X.getBaseElem(r);s=function(e){if(e instanceof O)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}(wt(l,t.havingCrampedStyle())).skew}var h,u=Math.min(o.height,t.fontMetrics().xHeight);if(n.isStretchy)h=Pt(n,t),h=Ze.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"elem",elem:h,wrapperClasses:["svg-align"],wrapperStyle:0","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],tr=[0,1.2,1.8,2.4,3],rr=[{type:"small",style:E.SCRIPTSCRIPT},{type:"small",style:E.SCRIPT},{type:"small",style:E.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],nr=[{type:"small",style:E.SCRIPTSCRIPT},{type:"small",style:E.SCRIPT},{type:"small",style:E.TEXT},{type:"stack"}],ir=[{type:"small",style:E.SCRIPTSCRIPT},{type:"small",style:E.SCRIPT},{type:"small",style:E.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],ar=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},or=function(e,t,r,n){for(var i=Math.min(2,3-n.style.size);i"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),o=X.contains(er,e)?rr:X.contains(Jt,e)?ir:nr;var s,l,h,u,c,p,d,m=or(e,t,o,n);return"small"===m.type?(s=e,l=m.style,h=r,c=a,p=Ze.makeSymbol(s,"Main-Regular",i,u=n),d=Yt(p,l,u,c),h&&Gt(d,u,l),d):"large"===m.type?Wt(e,m.size,r,n,i,a):Zt(e,t,r,n,i,a)},lr=function(e,t,r,n,i){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),X.contains(Jt,e)||X.contains(er,e))return Wt(e,t,!1,r,n,i);if(X.contains(Qt,e))return Zt(e,tr[t],!1,r,n,i);throw new U("Illegal delimiter: '"+e+"'")},hr=sr,ur=function(e,t,r,n,i,a){var o=n.fontMetrics().axisHeight*n.sizeMultiplier,s=5/n.fontMetrics().ptPerEm,l=Math.max(t-o,r+o),h=Math.max(l/500*901,2*l-s);return sr(e,h,!0,n,i,a)},cr={"\\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}},pr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function dr(e,t){var r=et(e);if(r&&X.contains(pr,r.text))return r;throw new U("Invalid delimiter: '"+(r?r.text:JSON.stringify(e))+"' after '"+t.funcName+"'",e)}function mr(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ht({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(e,t){var r=dr(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:cr[e.funcName].size,mclass:cr[e.funcName].mclass,delim:r.text}},htmlBuilder:function(e,t){return"."===e.delim?Ze.makeSpan([e.mclass]):lr(e.delim,e.size,t,e.mode,[e.mclass])},mathmlBuilder:function(e){var t=[];"."!==e.delim&&t.push(zt(e.delim,e.mode));var r=new At.MathNode("mo",t);return"mopen"===e.mclass||"mclose"===e.mclass?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r}}),ht({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(e,t){return{type:"leftright-right",mode:e.parser.mode,delim:dr(t[0],e).text}}}),ht({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(e,t){var r=dr(t[0],e),n=e.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var a=Ke(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:a.delim}},htmlBuilder:function(e,t){mr(e);for(var r,n,i=vt(e.body,t,!0,["mopen","mclose"]),a=0,o=0,s=!1,l=0;lr.height+r.depth+f&&(f=(f+_-r.height-r.depth)/2);var w=y.height-r.height-f-b;r.style.paddingLeft=x+"em";var k=Ze.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+w)},{type:"elem",elem:y},{type:"kern",size:b}]},t);if(e.index){var S=t.havingStyle(E.SCRIPTSCRIPT),C=wt(e.index,S,t),N=.6*(k.height-k.depth),M=Ze.makeVList({positionType:"shift",positionData:-N,children:[{type:"elem",elem:C}]},t),A=Ze.makeSpan(["root"],[M]);return Ze.makeSpan(["mord","sqrt"],[A,k],t)}return Ze.makeSpan(["mord","sqrt"],[k],t)},mathmlBuilder:function(e,t){var r=e.body,n=e.index;return n?new At.MathNode("mroot",[Rt(r,t),Rt(n,t)]):new At.MathNode("msqrt",[Rt(r,t)])}});var Gr={display:E.DISPLAY,text:E.TEXT,script:E.SCRIPT,scriptscript:E.SCRIPTSCRIPT};ht({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(e,t){var r=e.breakOnTokenText,n=e.funcName,i=e.parser;i.consumeSpaces();var a=i.parseExpression(!0,r),o=n.slice(1,n.length-5);return{type:"styling",mode:i.mode,style:o,body:a}},htmlBuilder:function(e,t){var r=Gr[e.style],n=t.havingStyle(r).withFont("");return Ur(e.body,n,t)},mathmlBuilder:function(e,t){var r={display:E.DISPLAY,text:E.TEXT,script:E.SCRIPT,scriptscript:E.SCRIPTSCRIPT}[e.style],n=t.havingStyle(r),i=Bt(e.body,n),a=new At.MathNode("mstyle",i),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}}),ut({type:"supsub",htmlBuilder:function(e,t){var r,n,i,a=(n=t,(i=(r=e).base)?"op"!==i.type?"accent"===i.type?X.isCharacterBox(i.base)?$t:null:"horizBrace"!==i.type?null:!r.sub===i.isOver?qr:null:i.limits&&(n.style.size===E.DISPLAY.size||i.alwaysHandleSupSub)?$r:null:null);if(a)return a(e,t);var o,s,l,h=e.base,u=e.sup,c=e.sub,p=wt(h,t),d=t.fontMetrics(),m=0,f=0,g=h&&X.isCharacterBox(h);if(u){var v=t.havingStyle(t.style.sup());o=wt(u,v,t),g||(m=p.height-v.fontMetrics().supDrop*v.sizeMultiplier/t.sizeMultiplier)}if(c){var y=t.havingStyle(t.style.sub());s=wt(c,y,t),g||(f=p.depth+y.fontMetrics().subDrop*y.sizeMultiplier/t.sizeMultiplier)}l=t.style===E.DISPLAY?d.sup1:t.style.cramped?d.sup3:d.sup2;var b,x=t.sizeMultiplier,_=.5/d.ptPerEm/x+"em",w=null;if(s){var k=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(p instanceof O||k)&&(w=-p.italic+"em")}if(o&&s){m=Math.max(m,l,o.depth+.25*d.xHeight),f=Math.max(f,d.sub2);var S=4*d.defaultRuleThickness;if(m-o.depth-(s.height-f)":"\\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","\\bigsqcup":"\\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"};un("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in mn?t=mn[r]:"\\not"===r.substr(0,4)?t="\\dotsb":r in G.math&&X.contains(["bin","rel"],G.math[r].group)&&(t="\\dotsb"),t});var fn={")":!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};un("\\dotso",function(e){return e.future().text in fn?"\\ldots\\,":"\\ldots"}),un("\\dotsc",function(e){var t=e.future().text;return t in fn&&","!==t?"\\ldots\\,":"\\ldots"}),un("\\cdots",function(e){return e.future().text in fn?"\\@cdots\\,":"\\@cdots"}),un("\\dotsb","\\cdots"),un("\\dotsm","\\cdots"),un("\\dotsi","\\!\\cdots"),un("\\dotsx","\\ldots\\,"),un("\\DOTSI","\\relax"),un("\\DOTSB","\\relax"),un("\\DOTSX","\\relax"),un("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),un("\\,","\\tmspace+{3mu}{.1667em}"),un("\\thinspace","\\,"),un("\\>","\\mskip{4mu}"),un("\\:","\\tmspace+{4mu}{.2222em}"),un("\\medspace","\\:"),un("\\;","\\tmspace+{5mu}{.2777em}"),un("\\thickspace","\\;"),un("\\!","\\tmspace-{3mu}{.1667em}"),un("\\negthinspace","\\!"),un("\\negmedspace","\\tmspace-{4mu}{.2222em}"),un("\\negthickspace","\\tmspace-{5mu}{.277em}"),un("\\enspace","\\kern.5em "),un("\\enskip","\\hskip.5em\\relax"),un("\\quad","\\hskip1em\\relax"),un("\\qquad","\\hskip2em\\relax"),un("\\tag","\\@ifstar\\tag@literal\\tag@paren"),un("\\tag@paren","\\tag@literal{({#1})}"),un("\\tag@literal",function(e){if(e.macros.get("\\df@tag"))throw new U("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),un("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),un("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),un("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),un("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),un("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\mathrlap{\\mkern0.4mu\\raisebox{0.4mu}{$#1$}}{\\mkern0.8mu#1}}}{\\mathbf{#1}}"),un("\\\\","\\newline"),un("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var gn=q["Main-Regular"]["T".charCodeAt(0)][1]-.7*q["Main-Regular"]["A".charCodeAt(0)][1]+"em";un("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+gn+"}{\\scriptsize A}\\kern-.15em\\TeX}{LaTeX}}"),un("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+gn+"}{\\scriptsize A}\\kern-.15em\\TeX}{KaTeX}}"),un("\\hspace","\\@ifstar\\@hspacer\\@hspace"),un("\\@hspace","\\hskip #1\\relax"),un("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),un("\\ordinarycolon",":"),un("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),un("\\dblcolon","\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}"),un("\\coloneqq","\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}"),un("\\Coloneqq","\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}"),un("\\coloneq","\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}"),un("\\Coloneq","\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}"),un("\\eqqcolon","\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),un("\\Eqqcolon","\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}"),un("\\eqcolon","\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),un("\\Eqcolon","\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}"),un("\\colonapprox","\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}"),un("\\Colonapprox","\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}"),un("\\colonsim","\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}"),un("\\Colonsim","\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}"),un("≔","\\coloneqq"),un("≕","\\eqqcolon"),un("⩴","\\Coloneqq"),un("\\ratio","\\vcentcolon"),un("\\coloncolon","\\dblcolon"),un("\\colonequals","\\coloneqq"),un("\\coloncolonequals","\\Coloneqq"),un("\\equalscolon","\\eqqcolon"),un("\\equalscoloncolon","\\Eqqcolon"),un("\\colonminus","\\coloneq"),un("\\coloncolonminus","\\Coloneq"),un("\\minuscolon","\\eqcolon"),un("\\minuscoloncolon","\\Eqcolon"),un("\\coloncolonapprox","\\Colonapprox"),un("\\coloncolonsim","\\Colonsim"),un("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),un("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),un("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),un("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),un("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),un("\\limsup","\\DOTSB\\mathop{\\operatorname{lim\\,sup}}\\limits"),un("\\liminf","\\DOTSB\\mathop{\\operatorname{lim\\,inf}}\\limits"),un("⟦","\\mathopen{[\\mkern-3.2mu[}"),un("⟧","\\mathclose{]\\mkern-3.2mu]}"),un("\\darr","\\downarrow"),un("\\dArr","\\Downarrow"),un("\\Darr","\\Downarrow"),un("\\lang","\\langle"),un("\\rang","\\rangle"),un("\\uarr","\\uparrow"),un("\\uArr","\\Uparrow"),un("\\Uarr","\\Uparrow"),un("\\N","\\mathbb{N}"),un("\\R","\\mathbb{R}"),un("\\Z","\\mathbb{Z}"),un("\\alef","\\aleph"),un("\\alefsym","\\aleph"),un("\\Alpha","\\mathrm{A}"),un("\\Beta","\\mathrm{B}"),un("\\bull","\\bullet"),un("\\Chi","\\mathrm{X}"),un("\\clubs","\\clubsuit"),un("\\cnums","\\mathbb{C}"),un("\\Complex","\\mathbb{C}"),un("\\Dagger","\\ddagger"),un("\\diamonds","\\diamondsuit"),un("\\empty","\\emptyset"),un("\\Epsilon","\\mathrm{E}"),un("\\Eta","\\mathrm{H}"),un("\\exist","\\exists"),un("\\harr","\\leftrightarrow"),un("\\hArr","\\Leftrightarrow"),un("\\Harr","\\Leftrightarrow"),un("\\hearts","\\heartsuit"),un("\\image","\\Im"),un("\\infin","\\infty"),un("\\Iota","\\mathrm{I}"),un("\\isin","\\in"),un("\\Kappa","\\mathrm{K}"),un("\\larr","\\leftarrow"),un("\\lArr","\\Leftarrow"),un("\\Larr","\\Leftarrow"),un("\\lrarr","\\leftrightarrow"),un("\\lrArr","\\Leftrightarrow"),un("\\Lrarr","\\Leftrightarrow"),un("\\Mu","\\mathrm{M}"),un("\\natnums","\\mathbb{N}"),un("\\Nu","\\mathrm{N}"),un("\\Omicron","\\mathrm{O}"),un("\\plusmn","\\pm"),un("\\rarr","\\rightarrow"),un("\\rArr","\\Rightarrow"),un("\\Rarr","\\Rightarrow"),un("\\real","\\Re"),un("\\reals","\\mathbb{R}"),un("\\Reals","\\mathbb{R}"),un("\\Rho","\\mathrm{R}"),un("\\sdot","\\cdot"),un("\\sect","\\S"),un("\\spades","\\spadesuit"),un("\\sub","\\subset"),un("\\sube","\\subseteq"),un("\\supe","\\supseteq"),un("\\Tau","\\mathrm{T}"),un("\\thetasym","\\vartheta"),un("\\weierp","\\wp"),un("\\Zeta","\\mathrm{Z}");var vn={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},yn=function(){function e(e,t,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new sn(hn,t.macros),this.mode=r,this.stack=[]}var t=e.prototype;return t.feed=function(e){this.lexer=new on(e)},t.switchMode=function(e){this.mode=e},t.beginGroup=function(){this.macros.beginGroup()},t.endGroup=function(){this.macros.endGroup()},t.future=function(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},t.popToken=function(){return this.future(),this.stack.pop()},t.pushToken=function(e){this.stack.push(e)},t.pushTokens=function(e){var t;(t=this.stack).push.apply(t,e)},t.consumeSpaces=function(){for(;" "===this.future().text;)this.stack.pop()},t.consumeArgs=function(e){for(var t=[],r=0;rthis.settings.maxExpand)throw new U("Too many expansions: infinite loop or need to increase maxExpand setting");var n=r.tokens;if(r.numArgs)for(var i=this.consumeArgs(r.numArgs),a=(n=n.slice()).length-1;0<=a;--a){var o=n[a];if("#"===o.text){if(0===a)throw new U("Incomplete placeholder at end of macro body",o);if("#"===(o=n[--a]).text)n.splice(a+1,1);else{if(!/^[1-9]$/.test(o.text))throw new U("Not a valid argument number",o);var s;(s=n).splice.apply(s,[a,2].concat(i[+o.text-1]))}}}return this.pushTokens(n),n},t.expandAfterFuture=function(){return this.expandOnce(),this.future()},t.expandNextToken=function(){for(;;){var e=this.expandOnce();if(e instanceof a){if("\\relax"!==e.text)return this.stack.pop();this.stack.pop()}}throw new Error},t.expandMacro=function(e){if(this.macros.get(e)){var t=[],r=this.stack.length;for(this.pushToken(new a(e));this.stack.length>r;)this.expandOnce()instanceof a&&t.push(this.stack.pop());return t}},t.expandMacroAsText=function(e){var t=this.expandMacro(e);return t?t.map(function(e){return e.text}).join(""):t},t._getExpansion=function(e){var t=this.macros.get(e);if(null==t)return t;var r="function"==typeof t?t(this):t;if("string"!=typeof r)return r;var n=0;if(-1!==r.indexOf("#"))for(var i=r.replace(/##/g,"");-1!==i.indexOf("#"+(n+1));)++n;for(var a=new on(r),o=[],s=a.lex();"EOF"!==s.text;)o.push(s),s=a.lex();return o.reverse(),{tokens:o,numArgs:n}},t.isDefined=function(e){return this.macros.has(e)||rn.hasOwnProperty(e)||G.math.hasOwnProperty(e)||G.text.hasOwnProperty(e)||vn.hasOwnProperty(e)},e}(),bn={"́":{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"}},xn={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","č":"č","ĉ":"ĉ","ċ":"ċ","ď":"ď","ḋ":"ḋ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ĺ":"ĺ","ľ":"ľ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ď":"Ď","Ḋ":"Ḋ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ĺ":"Ĺ","Ľ":"Ľ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ť":"Ť","Ṫ":"Ṫ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"},_n=function(){function p(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new yn(e,t,this.mode),this.settings=t,this.leftrightDepth=0}var e=p.prototype;return e.expect=function(e,t){if(void 0===t&&(t=!0),this.nextToken.text!==e)throw new U("Expected '"+e+"', got '"+this.nextToken.text+"'",this.nextToken);t&&this.consume()},e.consume=function(){this.nextToken=this.gullet.expandNextToken()},e.switchMode=function(e){this.mode=e,this.gullet.switchMode(e)},e.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor"),this.consume();var e=this.parseExpression(!1);return this.expect("EOF",!1),this.gullet.endGroup(),e},e.parseExpression=function(e,t){for(var r=[];;){"math"===this.mode&&this.consumeSpaces();var n=this.nextToken;if(-1!==p.endOfExpression.indexOf(n.text))break;if(t&&n.text===t)break;if(e&&rn[n.text]&&rn[n.text].infix)break;var i=this.parseAtom(t);if(!i)break;r.push(i)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)},e.handleInfixNodes=function(e){for(var t,r=-1,n=0;n"):"latex"==t?this.import_latex(e):"text"==t?this.import_text(e):"ast"==t&&this.import_ast(e),this.root().hasAttribute("v")&&this.root().getAttribute("v")!=h.DOC_VERSION)throw h.DOC_ERROR;this.root().setAttribute("v",h.DOC_VERSION)});y.prototype.is_small=function(e){for(var t=e.parentNode;null!=t&&"m"!=t.nodeName;){if("yes"==t.getAttribute("small"))return!0;for(t=t.parentNode;null!=t&&"c"!=t.nodeName;)t=t.parentNode}return!1},y.prototype.ensure_text_nodes=function(){for(var e=this.base.getElementsByTagName("e"),t=0;t":">","|":"|","!":"!",",":",",".":".",";":";","=":"=","[":"[","]":"]","@":"@","'":"'","`":"`",":":":",'"':'"',"?":"?",space:" "},this.k_controls={up:"up",down:"down",right:"right",left:"left","alt+k":"up","alt+j":"down","alt+l":"right","alt+h":"left",space:"spacebar",home:"home",end:"end",backspace:"backspace",del:"delete_key","mod+a":"sel_all","mod+c":"sel_copy","mod+x":"sel_cut","mod+v":"sel_paste","mod+z":"undo","mod+y":"redo",enter:"done","mod+shift+right":"list_extend_copy_right","mod+shift+left":"list_extend_copy_left",",":"list_extend_right",";":"list_extend_down","mod+right":"list_extend_right","mod+left":"list_extend_left","mod+up":"list_extend_up","mod+down":"list_extend_down","mod+shift+up":"list_extend_copy_up","mod+shift+down":"list_extend_copy_down","mod+backspace":"list_remove","mod+shift+backspace":"list_remove_row","shift+left":"sel_left","shift+right":"sel_right",")":"right_paren","\\":"backslash",tab:"tab"},this.k_syms={},this.k_raw="mod+space";var e=0;for(e=65;e<=90;e++)this.k_chars[String.fromCharCode(e).toLowerCase()]=String.fromCharCode(e).toLowerCase(),this.k_chars["shift+"+String.fromCharCode(e).toLowerCase()]=String.fromCharCode(e).toUpperCase();for(e=48;e<=57;e++)this.k_chars[String.fromCharCode(e)]=String.fromCharCode(e)},d={config:{}};d.config.events={},d.config.valid_events=["change","left_end","right_end","done","completion","debug","error","focus"],d.config.settings={autoreplace:"auto",empty_content:"\\blue{[?]}",blank_caret:"",blank_placeholder:"[?]",blacklist:[],buttons:["osk","settings","symbols","controls"],cliptype:"latex"},d.settings_options={autoreplace:["auto","whole","delay","none"],cliptype:["latex","text","xml","ast","asciimath"]},d.panels={},d.panels.controls=document.createElement("div"),d.panels.controls.setAttribute("class","guppy_help"),d.panels.controls.style="padding:10px;border:1px solid black; background-color: #fff;position:absolute;top:0;left:0;display:none;",d.panels.controls.innerHTML='

Start typing the name of a mathematical function to automatically insert it.

(For example, "sqrt" for root, "mat" for matrix, or "defi" for definite integral.)

\n\n

Controls

Press......to do
',d.panels.symbols=document.createElement("div"),d.panels.symbols.setAttribute("class","guppy_help"),d.panels.symbols.style="padding:10px;border:1px solid black; background-color: #fff;position:absolute;top:0;left:0;display:none;",d.panels.symbols.innerHTML='

Start typing the name of a mathematical function to automatically insert it.

(For example, "sqrt" for root, "mat" for matrix, or "defi" for definite integral.)

\n\n

Symbols

Type......to get
',d.panels.settings=document.createElement("div"),d.panels.settings.setAttribute("class","guppy_help"),d.panels.settings.style="padding:10px;border:1px solid black; background-color: #fff;position:absolute;top:0;left:0;display:none;",d.panels.settings.innerHTML='

Global settings:

\n\n

Settings

',d.div_names=["controls","symbols","settings"];var f=function(e,t,r){var n=document.createElement("tr");return n.innerHTML=''+t+""+r+"",document.getElementById(e).appendChild(n),n},g=function(e){var t=document.createElement("div");t.setAttribute("class","guppy-card-x"),t.innerHTML='×',t.style="cursor:pointer;position:absolute;top:0;right:0;padding-right:5px;line-height:1;",t.onclick=function(){e.style.display="none"},e.appendChild(t)};d.hide_all=function(){for(var e=0;e'+r+"";var h=document.createElement("td");h.appendChild(a),l.appendChild(h),document.getElementById("guppy_settings_table").appendChild(l)}},d.init=function(e){for(var t=0;t=d.args.length?this.current=this.current.nextSibling:(this.down_from_f_to_blank(),this.caret=this.current.firstChild.textContent.length),this.sel_clear(),this.checkpoint(),!0},x.prototype.sel_get=function(){if(this.sel_status==x.SEL_NONE)return null;var e,t=[],r=[];if(this.sel_start.node==this.sel_end.node)return{node_list:[this.make_e(this.sel_start.node.firstChild.nodeValue.substring(this.sel_start.caret,this.sel_end.caret))],remnant:this.make_e(this.sel_start.node.firstChild.nodeValue.substring(0,this.sel_start.caret)+this.sel_end.node.firstChild.nodeValue.substring(this.sel_end.caret)),involved:[this.sel_start.node]};r.push(this.make_e(this.sel_start.node.firstChild.nodeValue.substring(this.sel_start.caret))),t.push(this.sel_start.node),t.push(this.sel_end.node),e=this.make_e(this.sel_start.node.firstChild.nodeValue.substring(0,this.sel_start.caret)+this.sel_end.node.firstChild.nodeValue.substring(this.sel_end.caret));for(var n=this.sel_start.node.nextSibling;null!=n&&n!=this.sel_end.node;)t.push(n),r.push(n),n=n.nextSibling;return r.push(this.make_e(this.sel_end.node.firstChild.nodeValue.substring(0,this.sel_end.caret))),{node_list:r,remnant:e,involved:t,cursor:0}},x.prototype.make_e=function(e){var t=this.doc.base,r=t.createElement("e");return r.appendChild(t.createTextNode(e)),r},x.prototype.insert_string=function(e){var t=this;this.sel_status!=x.SEL_NONE&&(this.sel_delete(),this.sel_clear()),this.current.firstChild.nodeValue=this.current.firstChild.nodeValue.splice(this.caret,e),this.caret+=e.length,this.checkpoint(),"auto"==this.setting("autoreplace")&&this.check_for_symbol(!1),"whole"==this.setting("autoreplace")&&this.check_for_symbol(!0),"delay"==this.setting("autoreplace")&&setTimeout&&(this.delayed_check&&clearTimeout(this.delayed_check),this.delayed_check=setTimeout(function(){t.check_for_symbol(!1)},200))},x.prototype.insert_doc=function(e){this.insert_nodes(e.root().childNodes,!0)},x.prototype.sel_copy=function(){var e=this.sel_get();if(e){x.clipboard=[];var t=this.setting("cliptype");if("none"!=t)var r=new y("");for(var n=0;n=S.get_length(this.current)){var e=this.current.nextSibling;null!=e&&(this.current=e.nextSibling,this.caret=0),this.set_sel_boundary(x.SEL_CURSOR_AT_END)}else this.caret+=1,this.set_sel_boundary(x.SEL_CURSOR_AT_END);this.sel_start.node==this.sel_end.node&&this.sel_start.caret==this.sel_end.caret&&(this.sel_status=x.SEL_NONE)},x.prototype.set_sel_boundary=function(e,t){(this.sel_status==x.SEL_NONE||t)&&(this.sel_status=e),this.sel_status==x.SEL_CURSOR_AT_START?this.set_sel_start():this.sel_status==x.SEL_CURSOR_AT_END&&this.set_sel_end()},x.prototype.sel_left=function(){if(this.sel_status==x.SEL_NONE&&(this.set_sel_end(),this.sel_status=x.SEL_CURSOR_AT_START),this.caret<=0){var e=this.current.previousSibling;null!=e&&(this.current=e.previousSibling,this.caret=this.current.firstChild.nodeValue.length),this.set_sel_boundary(x.SEL_CURSOR_AT_START)}else this.caret-=1,this.set_sel_boundary(x.SEL_CURSOR_AT_START);this.sel_start.node==this.sel_end.node&&this.sel_start.caret==this.sel_end.caret&&(this.sel_status=x.SEL_NONE)},x.prototype.list_extend_copy_right=function(){this.list_extend("right",!0)},x.prototype.list_extend_copy_left=function(){this.list_extend("left",!0)},x.prototype.list_extend_right=function(){this.list_extend("right",!1)},x.prototype.list_extend_left=function(){this.list_extend("left",!1)},x.prototype.list_extend_up=function(){this.list_extend("up",!1)},x.prototype.list_extend_down=function(){this.list_extend("down",!1)},x.prototype.list_extend_copy_up=function(){this.list_extend("up",!0)},x.prototype.list_extend_copy_down=function(){this.list_extend("down",!0)},x.prototype.list_vertical_move=function(e){for(var t=this.current;t.parentNode&&t.parentNode.parentNode&&("c"!=t.nodeName||"l"!=t.parentNode.nodeName||"l"!=t.parentNode.parentNode.nodeName);)t=t.parentNode;if(t.parentNode){for(var r=1,n=t;null!=n.previousSibling;)r++,n=n.previousSibling;var i=e?t.parentNode.nextSibling:t.parentNode.previousSibling;if(i){for(var a=1,o=i.firstChild;a=S.get_length(this.current)){var e=this.doc.xpath_node("following::e[1]",this.current);null!=e?(this.current=e,this.caret=0):this.fire_event("right_end")}else this.caret+=1},x.prototype.spacebar=function(){S.is_text(this.current)?this.insert_string(" "):this.space_caret=this.caret},x.prototype.left=function(){if(this.sel_clear(),this.caret<=0){var e=this.doc.xpath_node("preceding::e[1]",this.current);null!=e?(this.current=e,this.caret=this.current.firstChild.nodeValue.length):this.fire_event("left_end")}else this.caret-=1},x.prototype.delete_from_c=function(){for(var e=0,t=this.current.parentNode;t&&"c"==t.nodeName;)e++,t=t.previousSibling;for(var r=this.current.parentNode.getAttribute("delete"),n=[],i=this.doc.xpath_node("./c[position()="+r+"]",this.current.parentNode.parentNode).firstChild;null!=i;i=i.nextSibling)n.push(i);this.current=this.current.parentNode.parentNode,this.delete_from_f(),this.insert_nodes(n,r=this.undo_data.length-1)){this.undo_now++,this.restore(this.undo_now);var e=this.undo_data[this.undo_now-1]?(new XMLSerializer).serializeToString(this.undo_data[this.undo_now-1]):"[none]",t=(new XMLSerializer).serializeToString(this.undo_data[this.undo_now]);this.fire_event("change",{old:e,new:t})}},x.prototype.done=function(){if(S.is_symbol(this.current))this.complete_symbol();else if(S.is_utf8entry(this.current)){var e=this.current.firstChild.textContent;this.complete_utf8(e)}else this.fire_event("done")},x.prototype.complete_symbol=function(){var e=this.current.firstChild.textContent;this.symbols[e]&&(this.current=this.current.parentNode.parentNode,this.delete_from_f(),this.insert_symbol(e))},x.prototype.complete_utf8=function(e){e=parseInt("0x"+e),this.current=this.current.parentNode.parentNode,this.delete_from_f(),this.insert_utf8(e)},x.prototype.insert_utf8=function(e){if(e<=65535){var t=String.fromCharCode(e);this.insert_string(t)}else this.insert_symbol("utf8codepoint",{name:"UTF8",codepoint:e.toString(16)})},x.prototype.problem=function(e){this.fire_event("error",{message:e})},x.prototype.is_blacklisted=function(e){for(var t=this.setting("blacklist"),r=0;r":".","?":"/","|":"\\"},u={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"};for(t=1;t<20;++t)l[111+t]="f"+t;for(t=0;t<=9;++t)l[t+96]=t.toString();i.prototype.bind=function(e,t,r){return e=e instanceof Array?e:[e],this._bindMultiple.call(this,e,t,r),this},i.prototype.unbind=function(e,t){return this.bind.call(this,e,function(){},t)},i.prototype.trigger=function(e,t){return this._directMap[e+":"+t]&&this._directMap[e+":"+t]({},e),this},i.prototype.reset=function(){return this._callbacks={},this._directMap={},this},i.prototype.stopCallback=function(e,t){return!(-1<(" "+t.className+" ").indexOf(" mousetrap ")||function e(t,r){return null!==t&&t!==n&&(t===r||e(t.parentNode,r))}(t,this.target))&&("INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable)},i.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},i.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(l[t]=e[t]);s=null},i.init=function(){var e,t=i(n);for(e in t)"_"!==e.charAt(0)&&(i[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e))},i.init(),e.Mousetrap=i,o.exports&&(o.exports=i)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)}),C=function e(t){e.initialised||e.init();var r="string"==typeof t?document.getElementById(t):t,n=e.instances.get(r);if(n)return n;e.instances.set(r,this);var i=e.max_tabIndex||0;r.tabIndex=i,e.max_tabIndex=i+1,this.editor_active=!0,this.editor=r,this.blacklist=[],this.autoreplace=!0,this.engine=new x(this),this.temp_cursor={node:null,caret:0},this.editor.addEventListener("keydown",e.key_down,!1),this.editor.addEventListener("keyup",e.key_up,!1),this.editor.addEventListener("focus",function(){e.kb.alt_down=!1},!1),d.config.settings.buttons?this.set_buttons():this.configure("buttons",["settings","controls","symbols"]),this.render(!0),this.deactivate(),this.recompute_locations_paths()};return C.prototype.set_buttons=function(){var e=this.engine.setting("buttons"),t=this;if(e&&0!=e.length&&(this.buttons_div&&(this.buttons_div.parentElement.removeChild(this.buttons_div),delete this.buttons_div),this.buttons_div=document.createElement("div"),this.buttons_div.setAttribute("class","guppy_buttons"),e))for(var r=0;rr.right||e.clientY>r.bottom||e.clientY