!function(e,t){"object"==typeofexports&&"object"==typeofmodule?module.exports=t():"function"==typeofdefine&&define.amd?define([],t):"object"==typeofexports?exports.katex=t():e.katex=t()}("undefined"!=typeofself?self:this,(function(){returnfunction(){"use strict";vare={d:function(t,r){for(varninr)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:function(e,t){returnObject.prototype.hasOwnProperty.call(e,t)}},t={};e.d(t,{default:function(){returnZn}});varr=functione(t,r){this.position=void0;varn,a="KaTeX parse error: "+t,i=r&&r.loc;if(i&&i.start<=i.end){varo=i.lexer.input;n=i.start;vars=i.end;n===o.length?a+=" at end of input: ":a+=" at position "+(n+1)+": ";varl=o.slice(n,s).replace(/[^]/g,"$&\u0332");a+=(n>15?"\u2026"+o.slice(n-15,n):o.slice(0,n))+l+(s+15<o.length?o.slice(s,s+15)+"\u2026":o.slice(s))}varh=newError(a);returnh.name="ParseError",h.__proto__=e.prototype,h.position=n,h};r.prototype.__proto__=Error.prototype;varn=r,a=/([A-Z])/g,i={"&":"&",">":">","<":"<",'"':""","'":"'"},o=/[&><"']/g;vars=functione(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},l={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){returnvoid0===e?t:e},escape:function(e){returnString(e).replace(o,(function(e){returni[e]}))},hyphenate:function(e){returne.replace(a,"-$1").toLowerCase()},getBaseElem:s,isCharacterBox:function(e){vart=s(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){vart=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(e);returnnull!=t?t[1]:"_relative"}},h=function(){functione(e){this.displayMode=void0,this.output=void0,this.leqno=void0,this.fleqn=void0,this.throwOnError=void0,this.errorColor=void0,this.macros=void0,this.minRuleThickness=void0,this.colorIsTextColor=void0,this.strict=void0,this.trust=void0,this.maxSize=void0,this.maxExpand=void0,this.globalGroup=void0,e=e||{},this.displayMode=l.deflt(e.displayMode,!1),this.output=l.deflt(e.output,"htmlAndMathml"),this.leqno=l.deflt(e.leqno,!1),this.fleqn=l.deflt(e.fleqn,!1),this.throwOnError=l.deflt(e.throwOnError,!0),this.errorColor=l.deflt(e.errorColor,"#cc0000"),this.macros=e.macros||{},this.minRuleThickness=Math.max(0,l.deflt(e.minRuleThickness,0)),this.colorIsTextColor=l.deflt(e.colorIsTextColor,!1),this.strict=l.deflt(e.strict,"warn"),this.trust=l.deflt(e.trust,!1),this.maxSize=Math.max(0,l.deflt(e.maxSize,1/0)),this.maxExpand=Math.max(0,l.deflt(e.maxExpand,1e3)),this.globalGroup=l.deflt(e.globalGroup,!1)}vart=e.prototype;returnt.reportNonstrict=function(e,t,r){vara=this.strict;if("function"==typeofa&&(a=a(e,t,r)),a&&"ignore"!==a){if(!0===a||"error"===a)thrownewn("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",r);"warn"===a?"undefined"!=typeofconsole&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeofconsole&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+a+"': "+t+" ["+e+"]")}},t.useStrictBehavior=function(e,t,r){varn=this.strict;if("function"==typeofn)try{n=n(e,t,r)}catch(e){n="error"}return!(!n||"ignore"===n)&&(!0===n||"error"===n||("warn"===n?("undefined"!=typeofconsole&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),!1):("undefined"!=typeofconsole&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]"),!1)))},t.isTrusted=function(e){e.url&&!e.protocol&&(e.protocol=l.protocolFromUrl(e.url));vart="function"==typeofthis.trust?this.trust(e):this.trust;returnBoolean(t)},e}(),m=function(){functione(e,t,r){this.id=void0,this.size=void0,this.cramped=void0,this.id=e,this.size=t,this.cramped=r}vart=e.prototype;returnt.sup=function(){returnc[u[this.id]]},t.sub=function(){returnc[p[this.id]]},t.fracNum=function(){returnc[d[this.id]]},t.fracDen=function(){returnc[f[this.id]]},t.cramp=function(){returnc[g[this.id]]},t.text=function(){returnc[