!function(e,t){"object"==typeofexports&&"object"==typeofmodule?module.exports=t():"function"==typeofdefine&&define.amd?define([],t):"object"==typeofexports?exports.katex=t():e.katex=t()}(this,function(){returnfunction(e){vart={};functionr(n){if(t[n])returnt[n].exports;vara=t[n]={i:n,l:!1,exports:{}};returne[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}returnr.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){vart=e&&e.__esModule?function(){returne.default}:function(){returne};returnr.d(t,"a",t),t},r.o=function(e,t){returnObject.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=63)}([function(e,t,r){"use strict";varn=r(57),a=r.n(n),i=r(18),o=r.n(i),s=r(12),l=r(30),u=r(28),c=r(5),h=r(13),p=r(19),m=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xa3"],d=function(e,t,r){returnu.a[r][e]&&u.a[r][e].replace&&(e=u.a[r][e].replace),{value:e,metrics:l.a.getCharacterMetrics(e,t,r)}},f=function(e,t,r,n,a){vari=d(e,t,r),o=i.metrics;e=i.value;varl=void0;if(o){varu=o.italic;"text"===r&&(u=0),l=news.a.symbolNode(e,o.height,o.depth,u,o.skew,o.width,a)}else"undefined"!=typeofconsole&&console.warn("No character metrics for '"+e+"' in style '"+t+"'"),l=news.a.symbolNode(e,0,0,0,0,0,a);if(n){l.maxFontSize=n.sizeMultiplier,n.style.isTight()&&l.classes.push("mtight");varc=n.getColor();c&&(l.style.color=c)}returnl},v=function(e,t,r,n,a){if("mathord"===a){vari=g(e,t,r,n);returnf(e,i.fontName,t,r,n.concat([i.fontClass]))}if("textord"===a){if("ams"===(u.a[t][e]&&u.a[t][e].font)){varo=x("amsrm",r.fontWeight,r.fontShape);returnf(e,o,t,r,n.concat("amsrm",r.fontWeight,r.fontShape))}vars=x("textrm",r.fontWeight,r.fontShape);returnf(e,s,t,r,n.concat(r.fontWeight,r.fontShape))}thrownewError("unexpected type: "+a+" in mathDefault")},g=function(e,t,r,n){return/[0-9]/.test(e.charAt(0))||c.a.contains(m,e)?{fontName:"Main-Italic",fontClass:"mainit"}:{fontName:"Math-Italic",fontClass:"mathit"}},y=function(e){vart=0,r=0,n=0,a=!0,i=!1,s=void0;try{for(varl,u=o()(e.children);!(a=(l=u.next()).done);a=!0){varc=l.value;c.height>t&&(t=c.height),c.depth>r&&(r=c.depth),c.maxFontSize>n&&(n=c.maxFontSize)}}catch(e){i=!0,s=e}finally{try{!a&&u.return&&u.return()}finally{if(i)throws}}e.height=t,e.depth=r,e.maxFontSize=n},b=function(e,t,r,n){vara=news.a.span(e,t,r,n);returny(a),a},x=function(e,t,r){returnw(e)+"-"+k(t,r)},w=function(e){vart="";switch(e){case"amsrm":t="AMS";break;case"textrm":t="Main";break;case"textsf":t="SansSerif";break;case"texttt":t="Typewriter";break;default:thrownewError("Invalid font provided: "+e)}returnt},k=function(e,t){varr="";return"textbf"===e&&(r+="Bold"),"textit"===t&&(r+="Italic"),r||"Regular"},M={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{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"}},S={vec:["vec",.471,.714]};t.a={fontMap:M,makeSymbol:f,mathsym:function(e,t,r){varn=arguments.length>3&&void0!==arguments[3]?arguments[3]:[];returnr&&r.fontFamily&&"boldsymbol"===r.fontFamily&&d(e,"Main-Bold",t).metrics?f(e,"Main-Bold",t,r,n.concat(["mathbf"])):"\\"===e||"main"===u.a[t][e].font?f(e,"Main-Regular",t,r,n):f(e,"AMS-Regular",t,r,n.concat(["amsrm"]))},makeSpan:b,makeLineSpan:function(e,t){varr=t.fontMetrics().defaultRuleThickness,n=h.a.ruleSpan(e,r,t);returnn.height=r,n.style.height=5*n.height+"em",n.maxFontSize=1,n},makeAnchor:function(e,t,r,n){vara=news.a.anchor(e,t,r,n);returny(a),a},makeFragment:function(e){vart=news.a.documentFragment(e);returny(t),t},makeVList:function(e,t){varr=function(e){if("individualShift"===e.positionType){for(vart=e.children,r=[t[0]],n=-t[0].shift-t[0].elem.dep