!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(r){varn={};functioni(e){if(n[e])returnn[e].exports;vart=n[e]={i:e,l:!1,exports:{}};returnr[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}returni.m=r,i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)returnt;if(4&e&&"object"==typeoft&&t&&t.__esModule)returnt;varr=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeoft)for(varnint)i.d(r,n,function(e){returnt[e]}.bind(null,n));returnr},i.n=function(e){vart=e&&e.__esModule?function(){returne.default}:function(){returne};returni.d(t,"a",t),t},i.o=function(e,t){returnObject.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=2)}([function(e,t,r){},,function(e,t,r){"use strict";r.r(t);r(0);varp=function(){functionr(e,t,r){this.lexer=void0,this.start=void0,this.end=void0,this.lexer=e,this.start=t,this.end=r}returnr.prototype.getSource=function(){returnthis.lexer.input.slice(this.start,this.end)},r.range=function(e,t){returnt?e&&e.loc&&t.loc&&e.loc.lexer===t.loc.lexer?newr(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc},r}(),a=function(){functionr(e,t){this.text=void0,this.loc=void0,this.text=e,this.loc=t}returnr.prototype.range=function(e,t){returnnewr(t,p.range(this,e))},r}(),n=functione(t,r){this.position=void0;varn,i="KaTeX parse error: "+t,a=r&&r.loc;if(a&&a.start<=a.end){varo=a.lexer.input;n=a.start;vars=a.end;n===o.length?i+=" at end of input: ":i+=" at position "+(n+1)+": ";varl=o.slice(n,s).replace(/[^]/g,"$&\u0332");i+=(15<n?"\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(i);returnh.name="ParseError",h.__proto__=e.prototype,h.position=n,h};n.prototype.__proto__=Error.prototype;varX=n,i=/([A-Z])/g,o={"&":"&",">":">","<":"<",'"':""","'":"'"},s=/[&><"']/g;varl=functione(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},T=function(e){if(!e)thrownewError("Expected non-null, but got "+String(e));returne},Y={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){returnvoid0===e?t:e},escape:function(e){returnString(e).replace(s,function(e){returno[e]})},hyphenate:function(e){returne.replace(i,"-$1").toLowerCase()},getBaseElem:l,isCharacterBox:function(e){vart=l(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type}},h=function(){functione(e){this.displayMode=void0,this.throwOnError=void0,this.errorColor=void0,this.macros=void0,this.colorIsTextColor=void0,this.strict=void0,this.maxSize=void0,this.maxExpand=void0,this.allowedProtocols=void0,e=e||{},this.displayMode=Y.deflt(e.displayMode,!1),this.throwOnError=Y.deflt(e.throwOnError,!0),this.errorColor=Y.deflt(e.errorColor,"#cc0000"),this.macros=e.macros||{},this.colorIsTextColor=Y.deflt(e.colorIsTextColor,!1),this.strict=Y.deflt(e.strict,"warn"),this.maxSize=Math.max(0,Y.deflt(e.maxSize,1/0)),this.maxExpand=Math.max(0,Y.deflt(e.maxExpand,1e3)),this.allowedProtocols=Y.deflt(e.allowedProtocols,["http","https","mailto","_relative"])}vart=e.prototype;returnt.reportNonstrict=function(e,t,r){varn=this.strict;if("function"==typeofn&&(n=n(e,t,r)),n&&"ignore"!==n){if(!0===n||"error"===n)thrownewX("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",r);"warn"===n?"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 '"+n+"': "+t+" ["+e+