!function(e,t){"object"==typeofexports&&"object"==typeofmodule?module.exports=t(require("katex")):"function"==typeofdefine&&define.amd?define(["katex"],t):"object"==typeofexports?exports.renderMathInElement=t(require("katex")):e.renderMathInElement=t(e.katex)}("undefined"!=typeofself?self:this,(function(e){returnfunction(){"use strict";vart={974:function(t){t.exports=e}},r={};functionn(e){if(r[e])returnr[e].exports;vara=r[e]={exports:{}};returnt[e](a,a.exports,n),a.exports}n.n=function(e){vart=e&&e.__esModule?function(){returne.default}:function(){returne};returnn.d(t,{a:t}),t},n.d=function(e,t){for(varrint)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){returnObject.prototype.hasOwnProperty.call(e,t)};vara={};returnfunction(){n.d(a,{default:function(){returns}});vare=n(974),t=n.n(e),r=function(e,t,r){for(varn=r,a=0,i=e.length;n<t.length;){varo=t[n];if(a<=0&&t.slice(n,n+i)===e)returnn;"\\"===o?n++:"{"===o?a++:"}"===o&&a--,n++}return-1},i=/^\\begin{/,o=function(e,t){for(varn,a=[],o=newRegExp("("+t.map((function(e){returne.left.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")})).join("|")+")");-1!==(n=e.search(o));){n>0&&(a.push({type:"text",data:e.slice(0,n)}),e=e.slice(n));varl=t.findIndex((function(t){returne.startsWith(t.left)}));if(-1===(n=r(t[l].right,e,t[l].left.length)))break;vard=e.slice(0,n+t[l].right.length),s=i.test(d)?d:e.slice(t[l].left.length,n);a.push({type:"math",data:s,rawData:d,display:t[l].display}),e=e.slice(n+t[l].right.length)}return""!==e&&a.push({type:"text",data:e}),a},l=function(e,r){varn=o(e,r.delimiters);if(1===n.length&&"text"===n[0].type)returnnull;for(vara=document.createDocumentFragment(),i=0;i<n.length;i++)if("text"===n[i].type)a.appendChild(document.createTextNode(n[i].data));else{varl=document.createElement("span"),d=n[i].data;r.displayMode=n[i].display;try{r.preProcess&&(d=r.preProcess(d)),t().render(d,l,r)}catch(e){if(!(einstanceoft().ParseError))throwe;r.errorCallback("KaTeX auto-render: Failed to parse `"+n[i].data+"` with ",e),a.appendChild(document.createTextNode(n[i].rawData));continue}a.appendChild(l)}returna},d=functione(t,r){for(varn=0;n<t.childNodes.length;n++){vara=t.childNodes[n];if(3===a.nodeType){vari=l(a.textContent,r);i&&(n+=i.childNodes.length-1,t.replaceChild(i,a))}else1===a.nodeType&&function(){vart=" "+a.className+" ";-1===r.ignoredTags.indexOf(a.nodeName.toLowerCase())&&r.ignoredClasses.every((function(e){return-1===t.indexOf(" "+e+" ")}))&&e(a,r)}()}},s=function(e,t){if(!e)thrownewError("No element provided to render");varr={};for(varnint)t.hasOwnProperty(n)&&(r[n]=t[n]);r.delimiters=r.delimiters||[{left:"$$",right:"$$",display:!0},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}],r.ignoredTags=r.ignoredTags||["script","noscript","style","textarea","pre","code","option"],r.ignoredClasses=r.ignoredClasses||[],r.errorCallback=r.errorCallback||console.error,r.macros=r.macros||{},d(e,r)}}(),a=a.default}()}));