diff --git a/README.md b/README.md index 13495d074..308e28f7c 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,8 @@ A simple blog theme powered by [Zola](https://getzola.org). See a live preview [ ## Features - [X] Dark and light themes. Defaults to the OS setting, with a switcher in the navigation bar. +- [X] [KaTeX](https://katex.org/) support. +- [X] All JavaScript (theme switcher and KaTeX) can be fully disabled. - [X] Projects page. - [X] Archive page. - [x] Tags. diff --git a/content/blog/almost-no-js.md b/content/blog/almost-no-js.md index 304e5f6dd..e3f19db15 100644 --- a/content/blog/almost-no-js.md +++ b/content/blog/almost-no-js.md @@ -1,14 +1,17 @@ +++ title = "Almost no JavaScript" date = 2023-01-06 +updated = = 2023-04-15 description = "JavaScript is only used when HTML and CSS aren't enough." [taxonomies] tags = ["showcase"] +++ -# Javascript? +# JavaScript? -This theme has almost no JavaScript. It includes a single ~950 byte `.js` file with the logic for the light/dark mode switch. +This theme has almost no JavaScript. It includes a ~950 byte `.js` file with the logic for the light/dark mode switch which can be disabled by setting `theme_switcher = false` in the `config.toml` file. -Other than that, it's a fast site with html and css. Just the way (most of) the web should be :-) +KaTex support, which requires JavaScript, can be activated for specific posts. + +Other than that, it's a fast site with HTML and CSS. Just the way (most of) the web should be :-) diff --git a/content/blog/markdown.md b/content/blog/markdown.md index 477b4f238..88150c62a 100644 --- a/content/blog/markdown.md +++ b/content/blog/markdown.md @@ -1,13 +1,31 @@ +++ title = "Markdown examples" date = 2023-01-31 -updated = 2023-03-01 +updated = 2023-04-15 description = "This post showcases some examples of Markdown formatting, including a table, code blocks and tags, quotes, tables, and footnotes." [taxonomies] tags = ["markdown", "showcase"] + +[extra] +katex = true +++ +## KaTeX + +[KaTeX](https://katex.org/) is a fast and easy-to-use library that enables the rendering of mathematical notation, using LaTeX syntax. + +You can use KaTeX **inline** by wrapping the expression between `$` or between `\\(` and `\\)`. + +For example, `$ \sin(x) = \sum_{n=0}^{\infty} \frac{(-1)^n}{(2n + 1)!} x^{2n + 1} $` would render: $ \sin(x) = \sum_{n=0}^{\infty} \frac{(-1)^n}{(2n + 1)!} x^{2n + 1} $ + +To display the expression **on its own line and centered**, wrap it around `$$` or between `\\[` and `\\]`. + +For example, `\\[ r = \frac{\sum_{i=1}^{n}(x_i - \bar{x})(y_i - \bar{y})}{\sqrt{\sum_{i=1}^{n}(x_i - \bar{x})^2}\sqrt{\sum_{i=1}^{n}(y_i - \bar{y})^2}} \\]` renders: \\[ r = \frac{\sum_{i=1}^{n}(x_i - \bar{x})(y_i - \bar{y})}{\sqrt{\sum_{i=1}^{n}(x_i - \bar{x})^2}\sqrt{\sum_{i=1}^{n}(y_i - \bar{y})^2}} \\] + +To activate KaTeX for a post, include `katex = true` within the `[extra]` section of the post's front matter. For enhanced performance and security, the JavaScript, CSS, and fonts are hosted locally. + +**Note**: After enabling KaTeX, if you want to use \$ without rendering a mathematical expression, escape it with a single backslash: `\$`. ## Table @@ -20,7 +38,6 @@ Here's an example of a table[^1]. Its colours change depending on the current th | Fe | Iron | 26 | | Au | Gold | 79 | - ## Code Block ```rust diff --git a/static/fonts/KaTeX/KaTeX_AMS-Regular.ttf b/static/fonts/KaTeX/KaTeX_AMS-Regular.ttf new file mode 100644 index 000000000..c6f9a5e7c Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_AMS-Regular.ttf differ diff --git a/static/fonts/KaTeX/KaTeX_AMS-Regular.woff b/static/fonts/KaTeX/KaTeX_AMS-Regular.woff new file mode 100644 index 000000000..b804d7b33 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_AMS-Regular.woff differ diff --git a/static/fonts/KaTeX/KaTeX_AMS-Regular.woff2 b/static/fonts/KaTeX/KaTeX_AMS-Regular.woff2 new file mode 100644 index 000000000..0acaaff03 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_AMS-Regular.woff2 differ diff --git a/static/fonts/KaTeX/KaTeX_Caligraphic-Bold.ttf b/static/fonts/KaTeX/KaTeX_Caligraphic-Bold.ttf new file mode 100644 index 000000000..9ff4a5e04 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Caligraphic-Bold.ttf differ diff --git a/static/fonts/KaTeX/KaTeX_Caligraphic-Bold.woff b/static/fonts/KaTeX/KaTeX_Caligraphic-Bold.woff new file mode 100644 index 000000000..9759710d1 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Caligraphic-Bold.woff differ diff --git a/static/fonts/KaTeX/KaTeX_Caligraphic-Bold.woff2 b/static/fonts/KaTeX/KaTeX_Caligraphic-Bold.woff2 new file mode 100644 index 000000000..f390922ec Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Caligraphic-Bold.woff2 differ diff --git a/static/fonts/KaTeX/KaTeX_Caligraphic-Regular.ttf b/static/fonts/KaTeX/KaTeX_Caligraphic-Regular.ttf new file mode 100644 index 000000000..f522294ff Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Caligraphic-Regular.ttf differ diff --git a/static/fonts/KaTeX/KaTeX_Caligraphic-Regular.woff b/static/fonts/KaTeX/KaTeX_Caligraphic-Regular.woff new file mode 100644 index 000000000..9bdd534fd Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Caligraphic-Regular.woff differ diff --git a/static/fonts/KaTeX/KaTeX_Caligraphic-Regular.woff2 b/static/fonts/KaTeX/KaTeX_Caligraphic-Regular.woff2 new file mode 100644 index 000000000..75344a1f9 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Caligraphic-Regular.woff2 differ diff --git a/static/fonts/KaTeX/KaTeX_Fraktur-Bold.ttf b/static/fonts/KaTeX/KaTeX_Fraktur-Bold.ttf new file mode 100644 index 000000000..4e98259c3 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Fraktur-Bold.ttf differ diff --git a/static/fonts/KaTeX/KaTeX_Fraktur-Bold.woff b/static/fonts/KaTeX/KaTeX_Fraktur-Bold.woff new file mode 100644 index 000000000..e7730f662 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Fraktur-Bold.woff differ diff --git a/static/fonts/KaTeX/KaTeX_Fraktur-Bold.woff2 b/static/fonts/KaTeX/KaTeX_Fraktur-Bold.woff2 new file mode 100644 index 000000000..395f28bea Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Fraktur-Bold.woff2 differ diff --git a/static/fonts/KaTeX/KaTeX_Fraktur-Regular.ttf b/static/fonts/KaTeX/KaTeX_Fraktur-Regular.ttf new file mode 100644 index 000000000..b8461b275 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Fraktur-Regular.ttf differ diff --git a/static/fonts/KaTeX/KaTeX_Fraktur-Regular.woff b/static/fonts/KaTeX/KaTeX_Fraktur-Regular.woff new file mode 100644 index 000000000..acab069f9 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Fraktur-Regular.woff differ diff --git a/static/fonts/KaTeX/KaTeX_Fraktur-Regular.woff2 b/static/fonts/KaTeX/KaTeX_Fraktur-Regular.woff2 new file mode 100644 index 000000000..735f6948d Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Fraktur-Regular.woff2 differ diff --git a/static/fonts/KaTeX/KaTeX_Main-Bold.ttf b/static/fonts/KaTeX/KaTeX_Main-Bold.ttf new file mode 100644 index 000000000..4060e627d Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Main-Bold.ttf differ diff --git a/static/fonts/KaTeX/KaTeX_Main-Bold.woff b/static/fonts/KaTeX/KaTeX_Main-Bold.woff new file mode 100644 index 000000000..f38136ac1 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Main-Bold.woff differ diff --git a/static/fonts/KaTeX/KaTeX_Main-Bold.woff2 b/static/fonts/KaTeX/KaTeX_Main-Bold.woff2 new file mode 100644 index 000000000..ab2ad21da Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Main-Bold.woff2 differ diff --git a/static/fonts/KaTeX/KaTeX_Main-BoldItalic.ttf b/static/fonts/KaTeX/KaTeX_Main-BoldItalic.ttf new file mode 100644 index 000000000..dc007977e Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Main-BoldItalic.ttf differ diff --git a/static/fonts/KaTeX/KaTeX_Main-BoldItalic.woff b/static/fonts/KaTeX/KaTeX_Main-BoldItalic.woff new file mode 100644 index 000000000..67807b0bd Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Main-BoldItalic.woff differ diff --git a/static/fonts/KaTeX/KaTeX_Main-BoldItalic.woff2 b/static/fonts/KaTeX/KaTeX_Main-BoldItalic.woff2 new file mode 100644 index 000000000..5931794de Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Main-BoldItalic.woff2 differ diff --git a/static/fonts/KaTeX/KaTeX_Main-Italic.ttf b/static/fonts/KaTeX/KaTeX_Main-Italic.ttf new file mode 100644 index 000000000..0e9b0f354 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Main-Italic.ttf differ diff --git a/static/fonts/KaTeX/KaTeX_Main-Italic.woff b/static/fonts/KaTeX/KaTeX_Main-Italic.woff new file mode 100644 index 000000000..6f43b594b Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Main-Italic.woff differ diff --git a/static/fonts/KaTeX/KaTeX_Main-Italic.woff2 b/static/fonts/KaTeX/KaTeX_Main-Italic.woff2 new file mode 100644 index 000000000..b50920e13 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Main-Italic.woff2 differ diff --git a/static/fonts/KaTeX/KaTeX_Main-Regular.ttf b/static/fonts/KaTeX/KaTeX_Main-Regular.ttf new file mode 100644 index 000000000..dd45e1ed2 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Main-Regular.ttf differ diff --git a/static/fonts/KaTeX/KaTeX_Main-Regular.woff b/static/fonts/KaTeX/KaTeX_Main-Regular.woff new file mode 100644 index 000000000..21f581296 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Main-Regular.woff differ diff --git a/static/fonts/KaTeX/KaTeX_Main-Regular.woff2 b/static/fonts/KaTeX/KaTeX_Main-Regular.woff2 new file mode 100644 index 000000000..eb24a7ba2 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Main-Regular.woff2 differ diff --git a/static/fonts/KaTeX/KaTeX_Math-BoldItalic.ttf b/static/fonts/KaTeX/KaTeX_Math-BoldItalic.ttf new file mode 100644 index 000000000..728ce7a1e Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Math-BoldItalic.ttf differ diff --git a/static/fonts/KaTeX/KaTeX_Math-BoldItalic.woff b/static/fonts/KaTeX/KaTeX_Math-BoldItalic.woff new file mode 100644 index 000000000..0ae390d74 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Math-BoldItalic.woff differ diff --git a/static/fonts/KaTeX/KaTeX_Math-BoldItalic.woff2 b/static/fonts/KaTeX/KaTeX_Math-BoldItalic.woff2 new file mode 100644 index 000000000..29657023a Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Math-BoldItalic.woff2 differ diff --git a/static/fonts/KaTeX/KaTeX_Math-Italic.ttf b/static/fonts/KaTeX/KaTeX_Math-Italic.ttf new file mode 100644 index 000000000..70d559b4e Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Math-Italic.ttf differ diff --git a/static/fonts/KaTeX/KaTeX_Math-Italic.woff b/static/fonts/KaTeX/KaTeX_Math-Italic.woff new file mode 100644 index 000000000..eb5159d4c Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Math-Italic.woff differ diff --git a/static/fonts/KaTeX/KaTeX_Math-Italic.woff2 b/static/fonts/KaTeX/KaTeX_Math-Italic.woff2 new file mode 100644 index 000000000..215c143fd Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Math-Italic.woff2 differ diff --git a/static/fonts/KaTeX/KaTeX_SansSerif-Bold.ttf b/static/fonts/KaTeX/KaTeX_SansSerif-Bold.ttf new file mode 100644 index 000000000..2f65a8a3a Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_SansSerif-Bold.ttf differ diff --git a/static/fonts/KaTeX/KaTeX_SansSerif-Bold.woff b/static/fonts/KaTeX/KaTeX_SansSerif-Bold.woff new file mode 100644 index 000000000..8d47c02d9 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_SansSerif-Bold.woff differ diff --git a/static/fonts/KaTeX/KaTeX_SansSerif-Bold.woff2 b/static/fonts/KaTeX/KaTeX_SansSerif-Bold.woff2 new file mode 100644 index 000000000..cfaa3bda5 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_SansSerif-Bold.woff2 differ diff --git a/static/fonts/KaTeX/KaTeX_SansSerif-Italic.ttf b/static/fonts/KaTeX/KaTeX_SansSerif-Italic.ttf new file mode 100644 index 000000000..d5850df98 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_SansSerif-Italic.ttf differ diff --git a/static/fonts/KaTeX/KaTeX_SansSerif-Italic.woff b/static/fonts/KaTeX/KaTeX_SansSerif-Italic.woff new file mode 100644 index 000000000..7e02df963 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_SansSerif-Italic.woff differ diff --git a/static/fonts/KaTeX/KaTeX_SansSerif-Italic.woff2 b/static/fonts/KaTeX/KaTeX_SansSerif-Italic.woff2 new file mode 100644 index 000000000..349c06dc6 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_SansSerif-Italic.woff2 differ diff --git a/static/fonts/KaTeX/KaTeX_SansSerif-Regular.ttf b/static/fonts/KaTeX/KaTeX_SansSerif-Regular.ttf new file mode 100644 index 000000000..537279f6b Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_SansSerif-Regular.ttf differ diff --git a/static/fonts/KaTeX/KaTeX_SansSerif-Regular.woff b/static/fonts/KaTeX/KaTeX_SansSerif-Regular.woff new file mode 100644 index 000000000..31b84829b Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_SansSerif-Regular.woff differ diff --git a/static/fonts/KaTeX/KaTeX_SansSerif-Regular.woff2 b/static/fonts/KaTeX/KaTeX_SansSerif-Regular.woff2 new file mode 100644 index 000000000..a90eea85f Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_SansSerif-Regular.woff2 differ diff --git a/static/fonts/KaTeX/KaTeX_Script-Regular.ttf b/static/fonts/KaTeX/KaTeX_Script-Regular.ttf new file mode 100644 index 000000000..fd679bf37 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Script-Regular.ttf differ diff --git a/static/fonts/KaTeX/KaTeX_Script-Regular.woff b/static/fonts/KaTeX/KaTeX_Script-Regular.woff new file mode 100644 index 000000000..0e7da821e Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Script-Regular.woff differ diff --git a/static/fonts/KaTeX/KaTeX_Script-Regular.woff2 b/static/fonts/KaTeX/KaTeX_Script-Regular.woff2 new file mode 100644 index 000000000..b3048fc11 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Script-Regular.woff2 differ diff --git a/static/fonts/KaTeX/KaTeX_Size1-Regular.ttf b/static/fonts/KaTeX/KaTeX_Size1-Regular.ttf new file mode 100644 index 000000000..871fd7d19 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Size1-Regular.ttf differ diff --git a/static/fonts/KaTeX/KaTeX_Size1-Regular.woff b/static/fonts/KaTeX/KaTeX_Size1-Regular.woff new file mode 100644 index 000000000..7f292d911 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Size1-Regular.woff differ diff --git a/static/fonts/KaTeX/KaTeX_Size1-Regular.woff2 b/static/fonts/KaTeX/KaTeX_Size1-Regular.woff2 new file mode 100644 index 000000000..c5a8462fb Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Size1-Regular.woff2 differ diff --git a/static/fonts/KaTeX/KaTeX_Size2-Regular.ttf b/static/fonts/KaTeX/KaTeX_Size2-Regular.ttf new file mode 100644 index 000000000..7a212caf9 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Size2-Regular.ttf differ diff --git a/static/fonts/KaTeX/KaTeX_Size2-Regular.woff b/static/fonts/KaTeX/KaTeX_Size2-Regular.woff new file mode 100644 index 000000000..d241d9be2 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Size2-Regular.woff differ diff --git a/static/fonts/KaTeX/KaTeX_Size2-Regular.woff2 b/static/fonts/KaTeX/KaTeX_Size2-Regular.woff2 new file mode 100644 index 000000000..e1bccfe24 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Size2-Regular.woff2 differ diff --git a/static/fonts/KaTeX/KaTeX_Size3-Regular.ttf b/static/fonts/KaTeX/KaTeX_Size3-Regular.ttf new file mode 100644 index 000000000..00bff3495 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Size3-Regular.ttf differ diff --git a/static/fonts/KaTeX/KaTeX_Size3-Regular.woff b/static/fonts/KaTeX/KaTeX_Size3-Regular.woff new file mode 100644 index 000000000..e6e9b658d Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Size3-Regular.woff differ diff --git a/static/fonts/KaTeX/KaTeX_Size3-Regular.woff2 b/static/fonts/KaTeX/KaTeX_Size3-Regular.woff2 new file mode 100644 index 000000000..249a28662 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Size3-Regular.woff2 differ diff --git a/static/fonts/KaTeX/KaTeX_Size4-Regular.ttf b/static/fonts/KaTeX/KaTeX_Size4-Regular.ttf new file mode 100644 index 000000000..74f08921f Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Size4-Regular.ttf differ diff --git a/static/fonts/KaTeX/KaTeX_Size4-Regular.woff b/static/fonts/KaTeX/KaTeX_Size4-Regular.woff new file mode 100644 index 000000000..e1ec54576 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Size4-Regular.woff differ diff --git a/static/fonts/KaTeX/KaTeX_Size4-Regular.woff2 b/static/fonts/KaTeX/KaTeX_Size4-Regular.woff2 new file mode 100644 index 000000000..680c13085 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Size4-Regular.woff2 differ diff --git a/static/fonts/KaTeX/KaTeX_Typewriter-Regular.ttf b/static/fonts/KaTeX/KaTeX_Typewriter-Regular.ttf new file mode 100644 index 000000000..c83252c57 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Typewriter-Regular.ttf differ diff --git a/static/fonts/KaTeX/KaTeX_Typewriter-Regular.woff b/static/fonts/KaTeX/KaTeX_Typewriter-Regular.woff new file mode 100644 index 000000000..2432419f2 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Typewriter-Regular.woff differ diff --git a/static/fonts/KaTeX/KaTeX_Typewriter-Regular.woff2 b/static/fonts/KaTeX/KaTeX_Typewriter-Regular.woff2 new file mode 100644 index 000000000..771f1af70 Binary files /dev/null and b/static/fonts/KaTeX/KaTeX_Typewriter-Regular.woff2 differ diff --git a/static/js/katex.min.js b/static/js/katex.min.js new file mode 100644 index 000000000..7c1e322f1 --- /dev/null +++ b/static/js/katex.min.js @@ -0,0 +1 @@ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.katex=t():e.katex=t()}("undefined"!=typeof self?self:this,function(){return function(){"use strict";var e={d:function(t,$){for(var r in $)e.o($,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:$[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t={};e.d(t,{default:function(){return rC}});var $=function e(t,$){this.position=void 0;var r,_="KaTeX parse error: "+t,n=$&&$.loc;if(n&&n.start<=n.end){var a=n.lexer.input;r=n.start;var i=n.end;r===a.length?_+=" at end of input: ":_+=" at position "+(r+1)+": ";var o=a.slice(r,i).replace(/[^]/g,"$&̲");_+=(r>15?"…"+a.slice(r-15,r):a.slice(0,r))+o+(i+15":">","<":"<",'"':""","'":"'"},a=/[&><"']/g,i=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},o={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(a,function(e){return n[e]})},hyphenate:function(e){return e.replace(_,"-$1").toLowerCase()},getBaseElem:i,isCharacterBox:function(e){var t=i(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){var t=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(e);return null!=t?t[1]:"_relative"}},s={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:function(e){return"#"+e}},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:function(e,t){return t.push(e),t}},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:function(e){return Math.max(0,e)},cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:function(e){return Math.max(0,e)},cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:function(e){return Math.max(0,e)},cli:"-e, --max-expand ",cliProcessor:function(e){return"Infinity"===e?1/0:parseInt(e)}},globalGroup:{type:"boolean",cli:!1}};function l(e){if(e.default)return e.default;var t=e.type,$=Array.isArray(t)?t[0]:t;if("string"!=typeof $)return $.enum[0];switch($){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}var h=function(){function e(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},s)if(s.hasOwnProperty(t)){var $=s[t];this[t]=void 0!==e[t]?$.processor?$.processor(e[t]):e[t]:l($)}}var t=e.prototype;return t.reportNonstrict=function(e,t,$){var _=this.strict;if("function"==typeof _&&(_=_(e,t,$)),_&&"ignore"!==_){if(!0===_||"error"===_)throw new r("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",$);"warn"===_?"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 '"+_+"': "+t+" ["+e+"]")}},t.useStrictBehavior=function(e,t,$){var r=this.strict;if("function"==typeof r)try{r=r(e,t,$)}catch(_){r="error"}return!(!r||"ignore"===r)&&(!0===r||"error"===r||("warn"===r?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),!1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+r+"': "+t+" ["+e+"]"),!1)))},t.isTrusted=function(e){return e.url&&!e.protocol&&(e.protocol=o.protocolFromUrl(e.url)),Boolean("function"==typeof this.trust?this.trust(e):this.trust)},e}(),m=function(){function e(e,t,$){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=$}var t=e.prototype;return t.sup=function(){return c[u[this.id]]},t.sub=function(){return c[p[this.id]]},t.fracNum=function(){return c[d[this.id]]},t.fracDen=function(){return c[f[this.id]]},t.cramp=function(){return c[g[this.id]]},t.text=function(){return c[v[this.id]]},t.isTight=function(){return this.size>=2},e}(),c=[new m(0,0,!1),new m(1,0,!0),new m(2,1,!1),new m(3,1,!0),new m(4,2,!1),new m(5,2,!0),new m(6,3,!1),new m(7,3,!0)],u=[4,5,4,5,6,7,6,7],p=[5,5,5,5,7,7,7,7],d=[2,3,4,5,6,7,6,7],f=[3,3,5,5,7,7,7,7],g=[1,1,3,3,5,5,7,7],v=[0,1,2,3,2,3,2,3],b={DISPLAY:c[0],TEXT:c[2],SCRIPT:c[4],SCRIPTSCRIPT:c[6]},y=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{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 w(e){for(var t=0;t=x[t]&&e<=x[t+1])return!0;return!1}y.forEach(function(e){return e.blocks.forEach(function(e){return x.push.apply(x,e)})});var k={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 620v40h399900v-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"},S=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 o.contains(this.classes,e)},t.toNode=function(){for(var e=document.createDocumentFragment(),t=0;t=5?0:e>=3?1:2]){var $=B[t]={cssEmPerMu:M.quad[t]/18};for(var r in M)M.hasOwnProperty(r)&&($[r]=M[r][t])}return B[t]}(this.size)),this._fontMetrics},t.getColor=function(){return this.phantom?"transparent":this.color},e}();H.BASESIZE=6;var I=H,R={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},O={ex:!0,em:!0,mu:!0},L=function(e){return"string"!=typeof e&&(e=e.unit),e in R||e in O||"ex"===e},D=function(e,t){var $,_;if(e.unit in R)$=R[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)$=t.fontMetrics().cssEmPerMu;else{if(_=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)$=_.fontMetrics().xHeight;else{if("em"!==e.unit)throw new r("Invalid unit: '"+e.unit+"'");$=_.fontMetrics().quad}_!==t&&($*=_.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*$,t.maxSize)},E=function(e){return+e.toFixed(4)+"em"},P=function(e){return e.filter(function(e){return e}).join(" ")},V=function(e,t,$){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=$||{},t){t.style.isTight()&&this.classes.push("mtight");var r=t.getColor();r&&(this.style.color=r)}},F=function(e){var t=document.createElement(e);for(var $ in t.className=P(this.classes),this.style)this.style.hasOwnProperty($)&&(t.style[$]=this.style[$]);for(var r in this.attributes)this.attributes.hasOwnProperty(r)&&t.setAttribute(r,this.attributes[r]);for(var _=0;_"},U=function(){function e(e,t,$,r){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,V.call(this,e,$,r),this.children=t||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return o.contains(this.classes,e)},t.toNode=function(){return F.call(this,"span")},t.toMarkup=function(){return G.call(this,"span")},e}(),X=function(){function e(e,t,$,r){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,V.call(this,t,r),this.children=$||[],this.setAttribute("href",e)}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return o.contains(this.classes,e)},t.toNode=function(){return F.call(this,"a")},t.toMarkup=function(){return G.call(this,"a")},e}(),Y=function(){function e(e,t,$){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=$}var t=e.prototype;return t.hasClass=function(e){return o.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+"=_[0]&&e<=_[1])return $.name}return null}(this.text.charCodeAt(0));o&&this.classes.push(o+"_fallback"),/[\xee\xef\xed\xec]/.test(this.text)&&(this.text=W[this.text])}var t=e.prototype;return t.hasClass=function(e){return o.contains(this.classes,e)},t.toNode=function(){var e=document.createTextNode(this.text),t=null;for(var $ in this.italic>0&&((t=document.createElement("span")).style.marginRight=E(this.italic)),this.classes.length>0&&((t=t||document.createElement("span")).className=P(this.classes)),this.style)this.style.hasOwnProperty($)&&((t=t||document.createElement("span")).style[$]=this.style[$]);return t?(t.appendChild(e),t):e},t.toMarkup=function(){var e=!1,t="0&&($+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(r)&&($+=o.hyphenate(r)+":"+this.style[r]+";");$&&(e=!0,t+=' style="'+o.escape($)+'"');var _=o.escape(this.text);return e?(t+=">",t+=_,t+=""):_},e}(),Z=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 $=0;$"},e}(),K=function(){function e(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",k[this.pathName]),e},t.toMarkup=function(){return this.alternate?"":""},e}(),J=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=""},e}();function Q(e){if(e instanceof j)return e;throw Error("Expected symbolNode but got "+String(e)+".")}var ee={bin:1,close:1,inner:1,open:1,punct:1,rel:1},et={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},e$={math:{},text:{}},er=e$;function e_(e,t,$,r,_,n){e$[e][_]={font:t,group:$,replace:r},n&&r&&(e$[e][r]=e$[e][_])}var en="math",ea="text",ei="main",e2="accent-token",eo="close",es="inner",el="mathord",e3="op-token",e4="open",e5="punct",e1="spacing",e6="textord";e_(en,ei,"rel","≡","\\equiv",!0),e_(en,ei,"rel","≺","\\prec",!0),e_(en,ei,"rel","≻","\\succ",!0),e_(en,ei,"rel","∼","\\sim",!0),e_(en,ei,"rel","⊥","\\perp"),e_(en,ei,"rel","⪯","\\preceq",!0),e_(en,ei,"rel","⪰","\\succeq",!0),e_(en,ei,"rel","≃","\\simeq",!0),e_(en,ei,"rel","∣","\\mid",!0),e_(en,ei,"rel","≪","\\ll",!0),e_(en,ei,"rel","≫","\\gg",!0),e_(en,ei,"rel","≍","\\asymp",!0),e_(en,ei,"rel","∥","\\parallel"),e_(en,ei,"rel","⋈","\\bowtie",!0),e_(en,ei,"rel","⌣","\\smile",!0),e_(en,ei,"rel","⊑","\\sqsubseteq",!0),e_(en,ei,"rel","⊒","\\sqsupseteq",!0),e_(en,ei,"rel","≐","\\doteq",!0),e_(en,ei,"rel","⌢","\\frown",!0),e_(en,ei,"rel","∋","\\ni",!0),e_(en,ei,"rel","∝","\\propto",!0),e_(en,ei,"rel","⊢","\\vdash",!0),e_(en,ei,"rel","⊣","\\dashv",!0),e_(en,ei,"rel","∋","\\owns"),e_(en,ei,e5,".","\\ldotp"),e_(en,ei,e5,"⋅","\\cdotp"),e_(en,ei,e6,"#","\\#"),e_(ea,ei,e6,"#","\\#"),e_(en,ei,e6,"&","\\&"),e_(ea,ei,e6,"&","\\&"),e_(en,ei,e6,"ℵ","\\aleph",!0),e_(en,ei,e6,"∀","\\forall",!0),e_(en,ei,e6,"ℏ","\\hbar",!0),e_(en,ei,e6,"∃","\\exists",!0),e_(en,ei,e6,"∇","\\nabla",!0),e_(en,ei,e6,"♭","\\flat",!0),e_(en,ei,e6,"ℓ","\\ell",!0),e_(en,ei,e6,"♮","\\natural",!0),e_(en,ei,e6,"♣","\\clubsuit",!0),e_(en,ei,e6,"℘","\\wp",!0),e_(en,ei,e6,"♯","\\sharp",!0),e_(en,ei,e6,"♢","\\diamondsuit",!0),e_(en,ei,e6,"ℜ","\\Re",!0),e_(en,ei,e6,"♡","\\heartsuit",!0),e_(en,ei,e6,"ℑ","\\Im",!0),e_(en,ei,e6,"♠","\\spadesuit",!0),e_(en,ei,e6,"\xa7","\\S",!0),e_(ea,ei,e6,"\xa7","\\S"),e_(en,ei,e6,"\xb6","\\P",!0),e_(ea,ei,e6,"\xb6","\\P"),e_(en,ei,e6,"†","\\dag"),e_(ea,ei,e6,"†","\\dag"),e_(ea,ei,e6,"†","\\textdagger"),e_(en,ei,e6,"‡","\\ddag"),e_(ea,ei,e6,"‡","\\ddag"),e_(ea,ei,e6,"‡","\\textdaggerdbl"),e_(en,ei,eo,"⎱","\\rmoustache",!0),e_(en,ei,e4,"⎰","\\lmoustache",!0),e_(en,ei,eo,"⟯","\\rgroup",!0),e_(en,ei,e4,"⟮","\\lgroup",!0),e_(en,ei,"bin","∓","\\mp",!0),e_(en,ei,"bin","⊖","\\ominus",!0),e_(en,ei,"bin","⊎","\\uplus",!0),e_(en,ei,"bin","⊓","\\sqcap",!0),e_(en,ei,"bin","∗","\\ast"),e_(en,ei,"bin","⊔","\\sqcup",!0),e_(en,ei,"bin","◯","\\bigcirc",!0),e_(en,ei,"bin","∙","\\bullet",!0),e_(en,ei,"bin","‡","\\ddagger"),e_(en,ei,"bin","≀","\\wr",!0),e_(en,ei,"bin","⨿","\\amalg"),e_(en,ei,"bin","&","\\And"),e_(en,ei,"rel","⟵","\\longleftarrow",!0),e_(en,ei,"rel","⇐","\\Leftarrow",!0),e_(en,ei,"rel","⟸","\\Longleftarrow",!0),e_(en,ei,"rel","⟶","\\longrightarrow",!0),e_(en,ei,"rel","⇒","\\Rightarrow",!0),e_(en,ei,"rel","⟹","\\Longrightarrow",!0),e_(en,ei,"rel","↔","\\leftrightarrow",!0),e_(en,ei,"rel","⟷","\\longleftrightarrow",!0),e_(en,ei,"rel","⇔","\\Leftrightarrow",!0),e_(en,ei,"rel","⟺","\\Longleftrightarrow",!0),e_(en,ei,"rel","↦","\\mapsto",!0),e_(en,ei,"rel","⟼","\\longmapsto",!0),e_(en,ei,"rel","↗","\\nearrow",!0),e_(en,ei,"rel","↩","\\hookleftarrow",!0),e_(en,ei,"rel","↪","\\hookrightarrow",!0),e_(en,ei,"rel","↘","\\searrow",!0),e_(en,ei,"rel","↼","\\leftharpoonup",!0),e_(en,ei,"rel","⇀","\\rightharpoonup",!0),e_(en,ei,"rel","↙","\\swarrow",!0),e_(en,ei,"rel","↽","\\leftharpoondown",!0),e_(en,ei,"rel","⇁","\\rightharpoondown",!0),e_(en,ei,"rel","↖","\\nwarrow",!0),e_(en,ei,"rel","⇌","\\rightleftharpoons",!0),e_(en,"ams","rel","≮","\\nless",!0),e_(en,"ams","rel","","\\@nleqslant"),e_(en,"ams","rel","","\\@nleqq"),e_(en,"ams","rel","⪇","\\lneq",!0),e_(en,"ams","rel","≨","\\lneqq",!0),e_(en,"ams","rel","","\\@lvertneqq"),e_(en,"ams","rel","⋦","\\lnsim",!0),e_(en,"ams","rel","⪉","\\lnapprox",!0),e_(en,"ams","rel","⊀","\\nprec",!0),e_(en,"ams","rel","⋠","\\npreceq",!0),e_(en,"ams","rel","⋨","\\precnsim",!0),e_(en,"ams","rel","⪹","\\precnapprox",!0),e_(en,"ams","rel","≁","\\nsim",!0),e_(en,"ams","rel","","\\@nshortmid"),e_(en,"ams","rel","∤","\\nmid",!0),e_(en,"ams","rel","⊬","\\nvdash",!0),e_(en,"ams","rel","⊭","\\nvDash",!0),e_(en,"ams","rel","⋪","\\ntriangleleft"),e_(en,"ams","rel","⋬","\\ntrianglelefteq",!0),e_(en,"ams","rel","⊊","\\subsetneq",!0),e_(en,"ams","rel","","\\@varsubsetneq"),e_(en,"ams","rel","⫋","\\subsetneqq",!0),e_(en,"ams","rel","","\\@varsubsetneqq"),e_(en,"ams","rel","≯","\\ngtr",!0),e_(en,"ams","rel","","\\@ngeqslant"),e_(en,"ams","rel","","\\@ngeqq"),e_(en,"ams","rel","⪈","\\gneq",!0),e_(en,"ams","rel","≩","\\gneqq",!0),e_(en,"ams","rel","","\\@gvertneqq"),e_(en,"ams","rel","⋧","\\gnsim",!0),e_(en,"ams","rel","⪊","\\gnapprox",!0),e_(en,"ams","rel","⊁","\\nsucc",!0),e_(en,"ams","rel","⋡","\\nsucceq",!0),e_(en,"ams","rel","⋩","\\succnsim",!0),e_(en,"ams","rel","⪺","\\succnapprox",!0),e_(en,"ams","rel","≆","\\ncong",!0),e_(en,"ams","rel","","\\@nshortparallel"),e_(en,"ams","rel","∦","\\nparallel",!0),e_(en,"ams","rel","⊯","\\nVDash",!0),e_(en,"ams","rel","⋫","\\ntriangleright"),e_(en,"ams","rel","⋭","\\ntrianglerighteq",!0),e_(en,"ams","rel","","\\@nsupseteqq"),e_(en,"ams","rel","⊋","\\supsetneq",!0),e_(en,"ams","rel","","\\@varsupsetneq"),e_(en,"ams","rel","⫌","\\supsetneqq",!0),e_(en,"ams","rel","","\\@varsupsetneqq"),e_(en,"ams","rel","⊮","\\nVdash",!0),e_(en,"ams","rel","⪵","\\precneqq",!0),e_(en,"ams","rel","⪶","\\succneqq",!0),e_(en,"ams","rel","","\\@nsubseteqq"),e_(en,"ams","bin","⊴","\\unlhd"),e_(en,"ams","bin","⊵","\\unrhd"),e_(en,"ams","rel","↚","\\nleftarrow",!0),e_(en,"ams","rel","↛","\\nrightarrow",!0),e_(en,"ams","rel","⇍","\\nLeftarrow",!0),e_(en,"ams","rel","⇏","\\nRightarrow",!0),e_(en,"ams","rel","↮","\\nleftrightarrow",!0),e_(en,"ams","rel","⇎","\\nLeftrightarrow",!0),e_(en,"ams","rel","△","\\vartriangle"),e_(en,"ams",e6,"ℏ","\\hslash"),e_(en,"ams",e6,"▽","\\triangledown"),e_(en,"ams",e6,"◊","\\lozenge"),e_(en,"ams",e6,"Ⓢ","\\circledS"),e_(en,"ams",e6,"\xae","\\circledR"),e_(ea,"ams",e6,"\xae","\\circledR"),e_(en,"ams",e6,"∡","\\measuredangle",!0),e_(en,"ams",e6,"∄","\\nexists"),e_(en,"ams",e6,"℧","\\mho"),e_(en,"ams",e6,"Ⅎ","\\Finv",!0),e_(en,"ams",e6,"⅁","\\Game",!0),e_(en,"ams",e6,"‵","\\backprime"),e_(en,"ams",e6,"▲","\\blacktriangle"),e_(en,"ams",e6,"▼","\\blacktriangledown"),e_(en,"ams",e6,"■","\\blacksquare"),e_(en,"ams",e6,"⧫","\\blacklozenge"),e_(en,"ams",e6,"★","\\bigstar"),e_(en,"ams",e6,"∢","\\sphericalangle",!0),e_(en,"ams",e6,"∁","\\complement",!0),e_(en,"ams",e6,"\xf0","\\eth",!0),e_(ea,ei,e6,"\xf0","\xf0"),e_(en,"ams",e6,"╱","\\diagup"),e_(en,"ams",e6,"╲","\\diagdown"),e_(en,"ams",e6,"□","\\square"),e_(en,"ams",e6,"□","\\Box"),e_(en,"ams",e6,"◊","\\Diamond"),e_(en,"ams",e6,"\xa5","\\yen",!0),e_(ea,"ams",e6,"\xa5","\\yen",!0),e_(en,"ams",e6,"✓","\\checkmark",!0),e_(ea,"ams",e6,"✓","\\checkmark"),e_(en,"ams",e6,"ℶ","\\beth",!0),e_(en,"ams",e6,"ℸ","\\daleth",!0),e_(en,"ams",e6,"ℷ","\\gimel",!0),e_(en,"ams",e6,"ϝ","\\digamma",!0),e_(en,"ams",e6,"ϰ","\\varkappa"),e_(en,"ams",e4,"┌","\\@ulcorner",!0),e_(en,"ams",eo,"┐","\\@urcorner",!0),e_(en,"ams",e4,"└","\\@llcorner",!0),e_(en,"ams",eo,"┘","\\@lrcorner",!0),e_(en,"ams","rel","≦","\\leqq",!0),e_(en,"ams","rel","⩽","\\leqslant",!0),e_(en,"ams","rel","⪕","\\eqslantless",!0),e_(en,"ams","rel","≲","\\lesssim",!0),e_(en,"ams","rel","⪅","\\lessapprox",!0),e_(en,"ams","rel","≊","\\approxeq",!0),e_(en,"ams","bin","⋖","\\lessdot"),e_(en,"ams","rel","⋘","\\lll",!0),e_(en,"ams","rel","≶","\\lessgtr",!0),e_(en,"ams","rel","⋚","\\lesseqgtr",!0),e_(en,"ams","rel","⪋","\\lesseqqgtr",!0),e_(en,"ams","rel","≑","\\doteqdot"),e_(en,"ams","rel","≓","\\risingdotseq",!0),e_(en,"ams","rel","≒","\\fallingdotseq",!0),e_(en,"ams","rel","∽","\\backsim",!0),e_(en,"ams","rel","⋍","\\backsimeq",!0),e_(en,"ams","rel","⫅","\\subseteqq",!0),e_(en,"ams","rel","⋐","\\Subset",!0),e_(en,"ams","rel","⊏","\\sqsubset",!0),e_(en,"ams","rel","≼","\\preccurlyeq",!0),e_(en,"ams","rel","⋞","\\curlyeqprec",!0),e_(en,"ams","rel","≾","\\precsim",!0),e_(en,"ams","rel","⪷","\\precapprox",!0),e_(en,"ams","rel","⊲","\\vartriangleleft"),e_(en,"ams","rel","⊴","\\trianglelefteq"),e_(en,"ams","rel","⊨","\\vDash",!0),e_(en,"ams","rel","⊪","\\Vvdash",!0),e_(en,"ams","rel","⌣","\\smallsmile"),e_(en,"ams","rel","⌢","\\smallfrown"),e_(en,"ams","rel","≏","\\bumpeq",!0),e_(en,"ams","rel","≎","\\Bumpeq",!0),e_(en,"ams","rel","≧","\\geqq",!0),e_(en,"ams","rel","⩾","\\geqslant",!0),e_(en,"ams","rel","⪖","\\eqslantgtr",!0),e_(en,"ams","rel","≳","\\gtrsim",!0),e_(en,"ams","rel","⪆","\\gtrapprox",!0),e_(en,"ams","bin","⋗","\\gtrdot"),e_(en,"ams","rel","⋙","\\ggg",!0),e_(en,"ams","rel","≷","\\gtrless",!0),e_(en,"ams","rel","⋛","\\gtreqless",!0),e_(en,"ams","rel","⪌","\\gtreqqless",!0),e_(en,"ams","rel","≖","\\eqcirc",!0),e_(en,"ams","rel","≗","\\circeq",!0),e_(en,"ams","rel","≜","\\triangleq",!0),e_(en,"ams","rel","∼","\\thicksim"),e_(en,"ams","rel","≈","\\thickapprox"),e_(en,"ams","rel","⫆","\\supseteqq",!0),e_(en,"ams","rel","⋑","\\Supset",!0),e_(en,"ams","rel","⊐","\\sqsupset",!0),e_(en,"ams","rel","≽","\\succcurlyeq",!0),e_(en,"ams","rel","⋟","\\curlyeqsucc",!0),e_(en,"ams","rel","≿","\\succsim",!0),e_(en,"ams","rel","⪸","\\succapprox",!0),e_(en,"ams","rel","⊳","\\vartriangleright"),e_(en,"ams","rel","⊵","\\trianglerighteq"),e_(en,"ams","rel","⊩","\\Vdash",!0),e_(en,"ams","rel","∣","\\shortmid"),e_(en,"ams","rel","∥","\\shortparallel"),e_(en,"ams","rel","≬","\\between",!0),e_(en,"ams","rel","⋔","\\pitchfork",!0),e_(en,"ams","rel","∝","\\varpropto"),e_(en,"ams","rel","◀","\\blacktriangleleft"),e_(en,"ams","rel","∴","\\therefore",!0),e_(en,"ams","rel","∍","\\backepsilon"),e_(en,"ams","rel","▶","\\blacktriangleright"),e_(en,"ams","rel","∵","\\because",!0),e_(en,"ams","rel","⋘","\\llless"),e_(en,"ams","rel","⋙","\\gggtr"),e_(en,"ams","bin","⊲","\\lhd"),e_(en,"ams","bin","⊳","\\rhd"),e_(en,"ams","rel","≂","\\eqsim",!0),e_(en,ei,"rel","⋈","\\Join"),e_(en,"ams","rel","≑","\\Doteq",!0),e_(en,"ams","bin","∔","\\dotplus",!0),e_(en,"ams","bin","∖","\\smallsetminus"),e_(en,"ams","bin","⋒","\\Cap",!0),e_(en,"ams","bin","⋓","\\Cup",!0),e_(en,"ams","bin","⩞","\\doublebarwedge",!0),e_(en,"ams","bin","⊟","\\boxminus",!0),e_(en,"ams","bin","⊞","\\boxplus",!0),e_(en,"ams","bin","⋇","\\divideontimes",!0),e_(en,"ams","bin","⋉","\\ltimes",!0),e_(en,"ams","bin","⋊","\\rtimes",!0),e_(en,"ams","bin","⋋","\\leftthreetimes",!0),e_(en,"ams","bin","⋌","\\rightthreetimes",!0),e_(en,"ams","bin","⋏","\\curlywedge",!0),e_(en,"ams","bin","⋎","\\curlyvee",!0),e_(en,"ams","bin","⊝","\\circleddash",!0),e_(en,"ams","bin","⊛","\\circledast",!0),e_(en,"ams","bin","⋅","\\centerdot"),e_(en,"ams","bin","⊺","\\intercal",!0),e_(en,"ams","bin","⋒","\\doublecap"),e_(en,"ams","bin","⋓","\\doublecup"),e_(en,"ams","bin","⊠","\\boxtimes",!0),e_(en,"ams","rel","⇢","\\dashrightarrow",!0),e_(en,"ams","rel","⇠","\\dashleftarrow",!0),e_(en,"ams","rel","⇇","\\leftleftarrows",!0),e_(en,"ams","rel","⇆","\\leftrightarrows",!0),e_(en,"ams","rel","⇚","\\Lleftarrow",!0),e_(en,"ams","rel","↞","\\twoheadleftarrow",!0),e_(en,"ams","rel","↢","\\leftarrowtail",!0),e_(en,"ams","rel","↫","\\looparrowleft",!0),e_(en,"ams","rel","⇋","\\leftrightharpoons",!0),e_(en,"ams","rel","↶","\\curvearrowleft",!0),e_(en,"ams","rel","↺","\\circlearrowleft",!0),e_(en,"ams","rel","↰","\\Lsh",!0),e_(en,"ams","rel","⇈","\\upuparrows",!0),e_(en,"ams","rel","↿","\\upharpoonleft",!0),e_(en,"ams","rel","⇃","\\downharpoonleft",!0),e_(en,ei,"rel","⊶","\\origof",!0),e_(en,ei,"rel","⊷","\\imageof",!0),e_(en,"ams","rel","⊸","\\multimap",!0),e_(en,"ams","rel","↭","\\leftrightsquigarrow",!0),e_(en,"ams","rel","⇉","\\rightrightarrows",!0),e_(en,"ams","rel","⇄","\\rightleftarrows",!0),e_(en,"ams","rel","↠","\\twoheadrightarrow",!0),e_(en,"ams","rel","↣","\\rightarrowtail",!0),e_(en,"ams","rel","↬","\\looparrowright",!0),e_(en,"ams","rel","↷","\\curvearrowright",!0),e_(en,"ams","rel","↻","\\circlearrowright",!0),e_(en,"ams","rel","↱","\\Rsh",!0),e_(en,"ams","rel","⇊","\\downdownarrows",!0),e_(en,"ams","rel","↾","\\upharpoonright",!0),e_(en,"ams","rel","⇂","\\downharpoonright",!0),e_(en,"ams","rel","⇝","\\rightsquigarrow",!0),e_(en,"ams","rel","⇝","\\leadsto"),e_(en,"ams","rel","⇛","\\Rrightarrow",!0),e_(en,"ams","rel","↾","\\restriction"),e_(en,ei,e6,"‘","`"),e_(en,ei,e6,"$","\\$"),e_(ea,ei,e6,"$","\\$"),e_(ea,ei,e6,"$","\\textdollar"),e_(en,ei,e6,"%","\\%"),e_(ea,ei,e6,"%","\\%"),e_(en,ei,e6,"_","\\_"),e_(ea,ei,e6,"_","\\_"),e_(ea,ei,e6,"_","\\textunderscore"),e_(en,ei,e6,"∠","\\angle",!0),e_(en,ei,e6,"∞","\\infty",!0),e_(en,ei,e6,"′","\\prime"),e_(en,ei,e6,"△","\\triangle"),e_(en,ei,e6,"Γ","\\Gamma",!0),e_(en,ei,e6,"Δ","\\Delta",!0),e_(en,ei,e6,"Θ","\\Theta",!0),e_(en,ei,e6,"Λ","\\Lambda",!0),e_(en,ei,e6,"Ξ","\\Xi",!0),e_(en,ei,e6,"Π","\\Pi",!0),e_(en,ei,e6,"Σ","\\Sigma",!0),e_(en,ei,e6,"Υ","\\Upsilon",!0),e_(en,ei,e6,"Φ","\\Phi",!0),e_(en,ei,e6,"Ψ","\\Psi",!0),e_(en,ei,e6,"Ω","\\Omega",!0),e_(en,ei,e6,"A","Α"),e_(en,ei,e6,"B","Β"),e_(en,ei,e6,"E","Ε"),e_(en,ei,e6,"Z","Ζ"),e_(en,ei,e6,"H","Η"),e_(en,ei,e6,"I","Ι"),e_(en,ei,e6,"K","Κ"),e_(en,ei,e6,"M","Μ"),e_(en,ei,e6,"N","Ν"),e_(en,ei,e6,"O","Ο"),e_(en,ei,e6,"P","Ρ"),e_(en,ei,e6,"T","Τ"),e_(en,ei,e6,"X","Χ"),e_(en,ei,e6,"\xac","\\neg",!0),e_(en,ei,e6,"\xac","\\lnot"),e_(en,ei,e6,"⊤","\\top"),e_(en,ei,e6,"⊥","\\bot"),e_(en,ei,e6,"∅","\\emptyset"),e_(en,"ams",e6,"∅","\\varnothing"),e_(en,ei,el,"α","\\alpha",!0),e_(en,ei,el,"β","\\beta",!0),e_(en,ei,el,"γ","\\gamma",!0),e_(en,ei,el,"δ","\\delta",!0),e_(en,ei,el,"ϵ","\\epsilon",!0),e_(en,ei,el,"ζ","\\zeta",!0),e_(en,ei,el,"η","\\eta",!0),e_(en,ei,el,"θ","\\theta",!0),e_(en,ei,el,"ι","\\iota",!0),e_(en,ei,el,"κ","\\kappa",!0),e_(en,ei,el,"λ","\\lambda",!0),e_(en,ei,el,"μ","\\mu",!0),e_(en,ei,el,"ν","\\nu",!0),e_(en,ei,el,"ξ","\\xi",!0),e_(en,ei,el,"ο","\\omicron",!0),e_(en,ei,el,"π","\\pi",!0),e_(en,ei,el,"ρ","\\rho",!0),e_(en,ei,el,"σ","\\sigma",!0),e_(en,ei,el,"τ","\\tau",!0),e_(en,ei,el,"υ","\\upsilon",!0),e_(en,ei,el,"ϕ","\\phi",!0),e_(en,ei,el,"χ","\\chi",!0),e_(en,ei,el,"ψ","\\psi",!0),e_(en,ei,el,"ω","\\omega",!0),e_(en,ei,el,"ε","\\varepsilon",!0),e_(en,ei,el,"ϑ","\\vartheta",!0),e_(en,ei,el,"ϖ","\\varpi",!0),e_(en,ei,el,"ϱ","\\varrho",!0),e_(en,ei,el,"ς","\\varsigma",!0),e_(en,ei,el,"φ","\\varphi",!0),e_(en,ei,"bin","∗","*",!0),e_(en,ei,"bin","+","+"),e_(en,ei,"bin","−","-",!0),e_(en,ei,"bin","⋅","\\cdot",!0),e_(en,ei,"bin","∘","\\circ",!0),e_(en,ei,"bin","\xf7","\\div",!0),e_(en,ei,"bin","\xb1","\\pm",!0),e_(en,ei,"bin","\xd7","\\times",!0),e_(en,ei,"bin","∩","\\cap",!0),e_(en,ei,"bin","∪","\\cup",!0),e_(en,ei,"bin","∖","\\setminus",!0),e_(en,ei,"bin","∧","\\land"),e_(en,ei,"bin","∨","\\lor"),e_(en,ei,"bin","∧","\\wedge",!0),e_(en,ei,"bin","∨","\\vee",!0),e_(en,ei,e6,"√","\\surd"),e_(en,ei,e4,"⟨","\\langle",!0),e_(en,ei,e4,"∣","\\lvert"),e_(en,ei,e4,"∥","\\lVert"),e_(en,ei,eo,"?","?"),e_(en,ei,eo,"!","!"),e_(en,ei,eo,"⟩","\\rangle",!0),e_(en,ei,eo,"∣","\\rvert"),e_(en,ei,eo,"∥","\\rVert"),e_(en,ei,"rel","=","="),e_(en,ei,"rel",":",":"),e_(en,ei,"rel","≈","\\approx",!0),e_(en,ei,"rel","≅","\\cong",!0),e_(en,ei,"rel","≥","\\ge"),e_(en,ei,"rel","≥","\\geq",!0),e_(en,ei,"rel","←","\\gets"),e_(en,ei,"rel",">","\\gt",!0),e_(en,ei,"rel","∈","\\in",!0),e_(en,ei,"rel","","\\@not"),e_(en,ei,"rel","⊂","\\subset",!0),e_(en,ei,"rel","⊃","\\supset",!0),e_(en,ei,"rel","⊆","\\subseteq",!0),e_(en,ei,"rel","⊇","\\supseteq",!0),e_(en,"ams","rel","⊈","\\nsubseteq",!0),e_(en,"ams","rel","⊉","\\nsupseteq",!0),e_(en,ei,"rel","⊨","\\models"),e_(en,ei,"rel","←","\\leftarrow",!0),e_(en,ei,"rel","≤","\\le"),e_(en,ei,"rel","≤","\\leq",!0),e_(en,ei,"rel","<","\\lt",!0),e_(en,ei,"rel","→","\\rightarrow",!0),e_(en,ei,"rel","→","\\to"),e_(en,"ams","rel","≱","\\ngeq",!0),e_(en,"ams","rel","≰","\\nleq",!0),e_(en,ei,e1,"\xa0","\\ "),e_(en,ei,e1,"\xa0","\\space"),e_(en,ei,e1,"\xa0","\\nobreakspace"),e_(ea,ei,e1,"\xa0","\\ "),e_(ea,ei,e1,"\xa0"," "),e_(ea,ei,e1,"\xa0","\\space"),e_(ea,ei,e1,"\xa0","\\nobreakspace"),e_(en,ei,e1,null,"\\nobreak"),e_(en,ei,e1,null,"\\allowbreak"),e_(en,ei,e5,",",","),e_(en,ei,e5,";",";"),e_(en,"ams","bin","⊼","\\barwedge",!0),e_(en,"ams","bin","⊻","\\veebar",!0),e_(en,ei,"bin","⊙","\\odot",!0),e_(en,ei,"bin","⊕","\\oplus",!0),e_(en,ei,"bin","⊗","\\otimes",!0),e_(en,ei,e6,"∂","\\partial",!0),e_(en,ei,"bin","⊘","\\oslash",!0),e_(en,"ams","bin","⊚","\\circledcirc",!0),e_(en,"ams","bin","⊡","\\boxdot",!0),e_(en,ei,"bin","△","\\bigtriangleup"),e_(en,ei,"bin","▽","\\bigtriangledown"),e_(en,ei,"bin","†","\\dagger"),e_(en,ei,"bin","⋄","\\diamond"),e_(en,ei,"bin","⋆","\\star"),e_(en,ei,"bin","◃","\\triangleleft"),e_(en,ei,"bin","▹","\\triangleright"),e_(en,ei,e4,"{","\\{"),e_(ea,ei,e6,"{","\\{"),e_(ea,ei,e6,"{","\\textbraceleft"),e_(en,ei,eo,"}","\\}"),e_(ea,ei,e6,"}","\\}"),e_(ea,ei,e6,"}","\\textbraceright"),e_(en,ei,e4,"{","\\lbrace"),e_(en,ei,eo,"}","\\rbrace"),e_(en,ei,e4,"[","\\lbrack",!0),e_(ea,ei,e6,"[","\\lbrack",!0),e_(en,ei,eo,"]","\\rbrack",!0),e_(ea,ei,e6,"]","\\rbrack",!0),e_(en,ei,e4,"(","\\lparen",!0),e_(en,ei,eo,")","\\rparen",!0),e_(ea,ei,e6,"<","\\textless",!0),e_(ea,ei,e6,">","\\textgreater",!0),e_(en,ei,e4,"⌊","\\lfloor",!0),e_(en,ei,eo,"⌋","\\rfloor",!0),e_(en,ei,e4,"⌈","\\lceil",!0),e_(en,ei,eo,"⌉","\\rceil",!0),e_(en,ei,e6,"\\","\\backslash"),e_(en,ei,e6,"∣","|"),e_(en,ei,e6,"∣","\\vert"),e_(ea,ei,e6,"|","\\textbar",!0),e_(en,ei,e6,"∥","\\|"),e_(en,ei,e6,"∥","\\Vert"),e_(ea,ei,e6,"∥","\\textbardbl"),e_(ea,ei,e6,"~","\\textasciitilde"),e_(ea,ei,e6,"\\","\\textbackslash"),e_(ea,ei,e6,"^","\\textasciicircum"),e_(en,ei,"rel","↑","\\uparrow",!0),e_(en,ei,"rel","⇑","\\Uparrow",!0),e_(en,ei,"rel","↓","\\downarrow",!0),e_(en,ei,"rel","⇓","\\Downarrow",!0),e_(en,ei,"rel","↕","\\updownarrow",!0),e_(en,ei,"rel","⇕","\\Updownarrow",!0),e_(en,ei,e3,"∐","\\coprod"),e_(en,ei,e3,"⋁","\\bigvee"),e_(en,ei,e3,"⋀","\\bigwedge"),e_(en,ei,e3,"⨄","\\biguplus"),e_(en,ei,e3,"⋂","\\bigcap"),e_(en,ei,e3,"⋃","\\bigcup"),e_(en,ei,e3,"∫","\\int"),e_(en,ei,e3,"∫","\\intop"),e_(en,ei,e3,"∬","\\iint"),e_(en,ei,e3,"∭","\\iiint"),e_(en,ei,e3,"∏","\\prod"),e_(en,ei,e3,"∑","\\sum"),e_(en,ei,e3,"⨂","\\bigotimes"),e_(en,ei,e3,"⨁","\\bigoplus"),e_(en,ei,e3,"⨀","\\bigodot"),e_(en,ei,e3,"∮","\\oint"),e_(en,ei,e3,"∯","\\oiint"),e_(en,ei,e3,"∰","\\oiiint"),e_(en,ei,e3,"⨆","\\bigsqcup"),e_(en,ei,e3,"∫","\\smallint"),e_(ea,ei,es,"…","\\textellipsis"),e_(en,ei,es,"…","\\mathellipsis"),e_(ea,ei,es,"…","\\ldots",!0),e_(en,ei,es,"…","\\ldots",!0),e_(en,ei,es,"⋯","\\@cdots",!0),e_(en,ei,es,"⋱","\\ddots",!0),e_(en,ei,e6,"⋮","\\varvdots"),e_(en,ei,e2,"ˊ","\\acute"),e_(en,ei,e2,"ˋ","\\grave"),e_(en,ei,e2,"\xa8","\\ddot"),e_(en,ei,e2,"~","\\tilde"),e_(en,ei,e2,"ˉ","\\bar"),e_(en,ei,e2,"˘","\\breve"),e_(en,ei,e2,"ˇ","\\check"),e_(en,ei,e2,"^","\\hat"),e_(en,ei,e2,"⃗","\\vec"),e_(en,ei,e2,"˙","\\dot"),e_(en,ei,e2,"˚","\\mathring"),e_(en,ei,el,"","\\@imath"),e_(en,ei,el,"","\\@jmath"),e_(en,ei,e6,"ı","ı"),e_(en,ei,e6,"ȷ","ȷ"),e_(ea,ei,e6,"ı","\\i",!0),e_(ea,ei,e6,"ȷ","\\j",!0),e_(ea,ei,e6,"\xdf","\\ss",!0),e_(ea,ei,e6,"\xe6","\\ae",!0),e_(ea,ei,e6,"œ","\\oe",!0),e_(ea,ei,e6,"\xf8","\\o",!0),e_(ea,ei,e6,"\xc6","\\AE",!0),e_(ea,ei,e6,"Œ","\\OE",!0),e_(ea,ei,e6,"\xd8","\\O",!0),e_(ea,ei,e2,"ˊ","\\'"),e_(ea,ei,e2,"ˋ","\\`"),e_(ea,ei,e2,"ˆ","\\^"),e_(ea,ei,e2,"˜","\\~"),e_(ea,ei,e2,"ˉ","\\="),e_(ea,ei,e2,"˘","\\u"),e_(ea,ei,e2,"˙","\\."),e_(ea,ei,e2,"\xb8","\\c"),e_(ea,ei,e2,"˚","\\r"),e_(ea,ei,e2,"ˇ","\\v"),e_(ea,ei,e2,"\xa8",'\\"'),e_(ea,ei,e2,"˝","\\H"),e_(ea,ei,e2,"◯","\\textcircled");var eh={"--":!0,"---":!0,"``":!0,"''":!0};e_(ea,ei,e6,"–","--",!0),e_(ea,ei,e6,"–","\\textendash"),e_(ea,ei,e6,"—","---",!0),e_(ea,ei,e6,"—","\\textemdash"),e_(ea,ei,e6,"‘","`",!0),e_(ea,ei,e6,"‘","\\textquoteleft"),e_(ea,ei,e6,"’","'",!0),e_(ea,ei,e6,"’","\\textquoteright"),e_(ea,ei,e6,"“","``",!0),e_(ea,ei,e6,"“","\\textquotedblleft"),e_(ea,ei,e6,"”","''",!0),e_(ea,ei,e6,"”","\\textquotedblright"),e_(en,ei,e6,"\xb0","\\degree",!0),e_(ea,ei,e6,"\xb0","\\degree"),e_(ea,ei,e6,"\xb0","\\textdegree",!0),e_(en,ei,e6,"\xa3","\\pounds"),e_(en,ei,e6,"\xa3","\\mathsterling",!0),e_(ea,ei,e6,"\xa3","\\pounds"),e_(ea,ei,e6,"\xa3","\\textsterling",!0),e_(en,"ams",e6,"✠","\\maltese"),e_(ea,"ams",e6,"✠","\\maltese");for(var e0='0123456789/@."',em=0;emt&&(t=n.height),n.depth>$&&($=n.depth),n.maxFontSize>r&&(r=n.maxFontSize)}e.height=t,e.depth=$,e.maxFontSize=r},eN=function(e,t,$,r){var _=new U(e,t,$,r);return eq(_),_},eH=function(e,t,$,r){return new U(e,t,$,r)},eI=function(e){var t=new S(e);return eq(t),t},eR=function(e,t,$){var r="";switch(e){case"amsrm":r="AMS";break;case"textrm":r="Main";break;case"textsf":r="SansSerif";break;case"texttt":r="Typewriter";break;default:r=e}return r+"-"+("textbf"===t&&"textit"===$?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},eO={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-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"}},eL={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},eD={fontMap:eO,makeSymbol:eB,mathsym:function(e,t,$,r){return void 0===r&&(r=[]),"boldsymbol"===$.font&&eA(e,"Main-Bold",t).metrics?eB(e,"Main-Bold",t,$,r.concat(["mathbf"])):"\\"===e||"main"===er[t][e].font?eB(e,"Main-Regular",t,$,r):eB(e,"AMS-Regular",t,$,r.concat(["amsrm"]))},makeSpan:eN,makeSvgSpan:eH,makeLineSpan:function(e,t,$){var r=eN([e],[],t);return r.height=Math.max($||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=E(r.height),r.maxFontSize=1,r},makeAnchor:function(e,t,$,r){var _=new X(e,t,$,r);return eq(_),_},makeFragment:eI,wrapFragment:function(e,t){return e instanceof S?eN([],[e],t):e},makeVList:function(e,t){for(var $=function(e){if("individualShift"===e.positionType){for(var t,$=e.children,r=[$[0]],_=-$[0].shift-$[0].elem.depth,n=_,a=1;a<$.length;a++){var i=-$[a].shift-n-$[a].elem.depth,o=i-($[a-1].elem.height+$[a-1].elem.depth);n+=i,r.push({type:"kern",size:o}),r.push($[a])}return{children:r,depth:_}}if("top"===e.positionType){for(var s=e.positionData,l=0;l0&&(a.push(t2(i,t)),i=[]),a.push(_[o]));i.length>0&&a.push(t2(i,t)),$?((n=t2(tt($,t,!0))).classes=["tag"],a.push(n)):r&&a.push(r);var l=eZ(["katex-html"],a);if(l.setAttribute("aria-hidden","true"),n){var h=n.children[0];h.style.height=E(l.height+l.depth),l.depth&&(h.style.verticalAlign=E(-l.depth))}return l}function ts(e){return new S(e)}var tl=function(){function e(e,t,$){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=$||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.getAttribute=function(e){return this.attributes[e]},t.toNode=function(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=P(this.classes));for(var $=0;$0&&(e+=' class ="'+o.escape(P(this.classes))+'"'),e+=">";for(var $=0;$"},t.toText=function(){return this.children.map(function(e){return e.toText()}).join("")},e}(),t3=function(){function e(e){this.text=void 0,this.text=e}var t=e.prototype;return t.toNode=function(){return document.createTextNode(this.text)},t.toMarkup=function(){return o.escape(this.toText())},t.toText=function(){return this.text},e}(),t4={MathNode:tl,TextNode:t3,SpaceNode:function(){function e(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?" ":e>=.1666&&e<=.1667?" ":e>=.2222&&e<=.2223?" ":e>=.2777&&e<=.2778?"  ":e>=-.05556&&e<=-.05555?" ⁣":e>=-.1667&&e<=-.1666?" ⁣":e>=-.2223&&e<=-.2222?" ⁣":e>=-.2778&&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",E(this.width)),e},t.toMarkup=function(){return this.character?""+this.character+"":''},t.toText=function(){return this.character?this.character:" "},e}(),newDocumentFragment:ts},t5=function(e,t,$){return!er[t][e]||!er[t][e].replace||55349===e.charCodeAt(0)||eh.hasOwnProperty(e)&&$&&($.fontFamily&&"tt"===$.fontFamily.slice(4,6)||$.font&&"tt"===$.font.slice(4,6))||(e=er[t][e].replace),new t4.TextNode(e)},t1=function(e){return 1===e.length?e[0]:new t4.MathNode("mrow",e)},t6=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 $=t.font;if(!$||"mathnormal"===$)return null;var r=e.mode;if("mathit"===$)return"italic";if("boldsymbol"===$)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===$)return"bold";if("mathbb"===$)return"double-struck";if("mathfrak"===$)return"fraktur";if("mathscr"===$||"mathcal"===$)return"script";if("mathsf"===$)return"sans-serif";if("mathtt"===$)return"monospace";var _=e.text;return o.contains(["\\imath","\\jmath"],_)?null:(er[r][_]&&er[r][_].replace&&(_=er[r][_].replace),A(_,eD.fontMap[$].fontName,r)?eD.fontMap[$].variant:null)},th=function(e,t,$){if(1===e.length){var r=tm(e[0],t);return $&&r instanceof tl&&"mo"===r.type&&(r.setAttribute("lspace","0em"),r.setAttribute("rspace","0em")),[r]}for(var _,n=[],a=0;a0&&(c.text=c.text.slice(0,1)+"̸"+c.text.slice(1),n.pop())}}}n.push(i),_=i}return n},t0=function(e,t,$){return t1(th(e,t,$))},tm=function(e,t){if(!e)return new t4.MathNode("mrow");if(eY[e.type])return eY[e.type](e,t);throw new r("Got group of unknown type: '"+e.type+"'")};function tc(e,t,$,r,_){var n,a=th(e,$);n=1===a.length&&a[0]instanceof tl&&o.contains(["mrow","mtable"],a[0].type)?a[0]:new t4.MathNode("mrow",a);var i=new t4.MathNode("annotation",[new t4.TextNode(t)]);i.setAttribute("encoding","application/x-tex");var s=new t4.MathNode("semantics",[n,i]),l=new t4.MathNode("math",[s]);return l.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&l.setAttribute("display","block"),eD.makeSpan([_?"katex":"katex-mathml"],[l])}var tu=function(e){return new I({style:e.displayMode?b.DISPLAY:b.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},t7=function(e,t){if(t.displayMode){var $=["katex-display"];t.leqno&&$.push("leqno"),t.fleqn&&$.push("fleqn"),e=eD.makeSpan($,[e])}return e},tp=function(e,t,$){var r,_=tu($);if("mathml"===$.output)return tc(e,t,_,$.displayMode,!0);if("html"===$.output){var n=to(e,_);r=eD.makeSpan(["katex"],[n])}else{var a=tc(e,t,_,$.displayMode,!1),i=to(e,_);r=eD.makeSpan(["katex"],[a,i])}return t7(r,$)},td={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},tf={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},tg=function(e,t,$,r,_){var n,a=e.height+e.depth+$+r;if(/fbox|color|angl/.test(t)){if(n=eD.makeSpan(["stretchy",t],[],_),"fbox"===t){var i=_.color&&_.getColor();i&&(n.style.borderColor=i)}}else{var o=[];/^[bx]cancel$/.test(t)&&o.push(new J({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&o.push(new J({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var s=new Z(o,{width:"100%",height:E(a)});n=eD.makeSvgSpan([],[s],_)}return n.height=a,n.style.height=E(a),n},tv=function(e){var t=new t4.MathNode("mo",[new t4.TextNode(td[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},tb=function(e,t){var $=function(){var $=4e5,r=e.label.slice(1);if(o.contains(["widehat","widecheck","widetilde","utilde"],r)){var _,n,a,i="ordgroup"===(u=e.base).type?u.body.length:1;if(i>5)"widehat"===r||"widecheck"===r?(_=420,$=2364,a=.42,n=r+"4"):(_=312,$=2340,a=.34,n="tilde4");else{var s=[1,1,2,2,3,3][i];"widehat"===r||"widecheck"===r?($=[0,1062,2364,2364,2364][s],_=[0,239,300,360,420][s],a=[0,.24,.3,.3,.36,.42][s],n=r+s):($=[0,600,1033,2339,2340][s],_=[0,260,286,306,312][s],a=[0,.26,.286,.3,.306,.34][s],n="tilde"+s)}var l=new K(n),h=new Z([l],{width:"100%",height:E(a),viewBox:"0 0 "+$+" "+_,preserveAspectRatio:"none"});return{span:eD.makeSvgSpan([],[h],t),minWidth:0,height:a}}var m,c,u,p=[],d=tf[r],f=d[0],g=d[1],v=d[2],b=v/1e3,y=f.length;if(1===y)m=["hide-tail"],c=[d[3]];else if(2===y)m=["halfarrow-left","halfarrow-right"],c=["xMinYMin","xMaxYMin"];else{if(3!==y)throw Error("Correct katexImagesData or update code here to support\n "+y+" children.");m=["brace-left","brace-center","brace-right"],c=["xMinYMin","xMidYMin","xMaxYMin"]}for(var x=0;x0&&(r.style.minWidth=E(_)),r};function ty(e,t){if(!e||e.type!==t)throw Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function tx(e){var t=tw(e);if(!t)throw Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function tw(e){return e&&("atom"===e.type||et.hasOwnProperty(e.type))?e:null}var tk=function(e,t){e&&"supsub"===e.type?(n=(a=ty(e.base,"accent")).base,e.base=n,i=function(e){if(e instanceof U)return e;throw Error("Expected span but got "+String(e)+".")}(ti(e,t)),e.base=a):n=(a=ty(e,"accent")).base;var $=ti(n,t.havingCrampedStyle()),r=0;if(a.isShifty&&o.isCharacterBox(n)){var _=o.getBaseElem(n);r=Q(ti(_,t.havingCrampedStyle())).skew}var n,a,i,s,l="\\c"===a.label,h=l?$.height+$.depth:Math.min($.height,t.fontMetrics().xHeight);if(a.isStretchy)s=tb(a,t),s=eD.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:$},{type:"elem",elem:s,wrapperClasses:["svg-align"],wrapperStyle:r>0?{width:"calc(100% - "+E(2*r)+")",marginLeft:E(2*r)}:void 0}]},t);else{"\\vec"===a.label?(m=eD.staticSvg("vec",t),c=eD.svgData.vec[1]):((m=Q(m=eD.makeOrd({mode:a.mode,text:a.label},t,"textord"))).italic=0,c=m.width,l&&(h+=m.depth)),s=eD.makeSpan(["accent-body"],[m]);var m,c,u="\\textcircled"===a.label;u&&(s.classes.push("accent-full"),h=$.height);var p=r;u||(p-=c/2),s.style.left=E(p),"\\textcircled"===a.label&&(s.style.top=".2em"),s=eD.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:$},{type:"kern",size:-h},{type:"elem",elem:s}]},t)}var d=eD.makeSpan(["mord","accent"],[s],t);return i?(i.children[0]=d,i.height=Math.max(d.height,i.height),i.classes[0]="mord",i):d},tS=function(e,t){var $=e.isStretchy?tv(e.label):new t4.MathNode("mo",[t5(e.label,e.mode)]),r=new t4.MathNode("mover",[tm(e.base,t),$]);return r.setAttribute("accent","true"),r},tz=RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(e){return"\\"+e}).join("|"));eW({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(e,t){var $=e9(t[0]),r=!tz.test(e.funcName),_=!r||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:_,base:$}},htmlBuilder:tk,mathmlBuilder:tS}),eW({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:function(e,t){var $=t[0],r=e.parser.mode;return"math"===r&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:$}},htmlBuilder:tk,mathmlBuilder:tS}),eW({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(e,t){var $=e.parser,r=e.funcName,_=t[0];return{type:"accentUnder",mode:$.mode,label:r,base:_}},htmlBuilder:function(e,t){var $=ti(e.base,t),r=tb(e,t),_="\\utilde"===e.label?.12:0,n=eD.makeVList({positionType:"top",positionData:$.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:_},{type:"elem",elem:$}]},t);return eD.makeSpan(["mord","accentunder"],[n],t)},mathmlBuilder:function(e,t){var $=tv(e.label),r=new t4.MathNode("munder",[tm(e.base,t),$]);return r.setAttribute("accentunder","true"),r}});var tM=function(e){var t=new t4.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};eW({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,$){var r=e.parser,_=e.funcName;return{type:"xArrow",mode:r.mode,label:_,body:t[0],below:$[0]}},htmlBuilder:function(e,t){var $,r=t.style,_=t.havingStyle(r.sup()),n=eD.wrapFragment(ti(e.body,_,t),t),a="\\x"===e.label.slice(0,2)?"x":"cd";n.classes.push(a+"-arrow-pad"),e.below&&(_=t.havingStyle(r.sub()),($=eD.wrapFragment(ti(e.below,_,t),t)).classes.push(a+"-arrow-pad"));var i,o=tb(e,t),s=-t.fontMetrics().axisHeight+.5*o.height,l=-t.fontMetrics().axisHeight-.5*o.height-.111;if((n.depth>.25||"\\xleftequilibrium"===e.label)&&(l-=n.depth),$){var h=-t.fontMetrics().axisHeight+$.height+.5*o.height+.111;i=eD.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:l},{type:"elem",elem:o,shift:s},{type:"elem",elem:$,shift:h}]},t)}else i=eD.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:l},{type:"elem",elem:o,shift:s}]},t);return i.children[0].children[0].children[1].classes.push("svg-align"),eD.makeSpan(["mrel","x-arrow"],[i],t)},mathmlBuilder:function(e,t){var $,r=tv(e.label);if(r.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var _=tM(tm(e.body,t));if(e.below){var n=tM(tm(e.below,t));$=new t4.MathNode("munderover",[r,n,_])}else $=new t4.MathNode("mover",[r,_])}else if(e.below){var a=tM(tm(e.below,t));$=new t4.MathNode("munder",[r,a])}else $=tM(),$=new t4.MathNode("mover",[r,$]);return $}});var tT=eD.makeSpan;function tA(e,t){var $=tt(e.body,t,!0);return tT([e.mclass],$,t)}function tB(e,t){var $,r=th(e.body,t);return"minner"===e.mclass?$=new t4.MathNode("mpadded",r):"mord"===e.mclass?e.isCharacterBox?($=r[0]).type="mi":$=new t4.MathNode("mi",r):(e.isCharacterBox?($=r[0]).type="mo":$=new t4.MathNode("mo",r),"mbin"===e.mclass?($.attributes.lspace="0.22em",$.attributes.rspace="0.22em"):"mpunct"===e.mclass?($.attributes.lspace="0em",$.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?($.attributes.lspace="0em",$.attributes.rspace="0em"):"minner"===e.mclass&&($.attributes.lspace="0.0556em",$.attributes.width="+0.1111em")),$}eW({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler:function(e,t){var $=e.parser,r=e.funcName,_=t[0];return{type:"mclass",mode:$.mode,mclass:"m"+r.slice(5),body:ej(_),isCharacterBox:o.isCharacterBox(_)}},htmlBuilder:tA,mathmlBuilder:tB});var tC=function(e){var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};eW({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(e,t){return{type:"mclass",mode:e.parser.mode,mclass:tC(t[0]),body:ej(t[1]),isCharacterBox:o.isCharacterBox(t[1])}}}),eW({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(e,t){var $,r=e.parser,_=e.funcName,n=t[1],a=t[0];$="\\stackrel"!==_?tC(n):"mrel";var i={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==_,body:ej(n)},s={type:"supsub",mode:a.mode,base:i,sup:"\\underset"===_?null:a,sub:"\\underset"===_?a:null};return{type:"mclass",mode:r.mode,mclass:$,body:[s],isCharacterBox:o.isCharacterBox(s)}},htmlBuilder:tA,mathmlBuilder:tB}),eW({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){return{type:"pmb",mode:e.parser.mode,mclass:tC(t[0]),body:ej(t[0])}},htmlBuilder:function(e,t){var $=tt(e.body,t,!0),r=eD.makeSpan([e.mclass],$,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder:function(e,t){var $=th(e.body,t),r=new t4.MathNode("mstyle",$);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var tq={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},tN=function(e){return"textord"===e.type&&"@"===e.text};function tH(e,t,$){var r=tq[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return $.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var _={type:"ordgroup",mode:"math",body:[$.callFunction("\\\\cdleft",[t[0]],[]),$.callFunction("\\Big",[{type:"atom",text:r,mode:"math",family:"rel"}],[]),$.callFunction("\\\\cdright",[t[1]],[])]};return $.callFunction("\\\\cdparent",[_],[]);case"\\\\cdlongequal":return $.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return $.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}eW({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler:function(e,t){var $=e.parser,r=e.funcName;return{type:"cdlabel",mode:$.mode,side:r.slice(4),label:t[0]}},htmlBuilder:function(e,t){var $=t.havingStyle(t.style.sup()),r=eD.wrapFragment(ti(e.label,$,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=E(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder:function(e,t){var $=new t4.MathNode("mrow",[tm(e.label,t)]);return($=new t4.MathNode("mpadded",[$])).setAttribute("width","0"),"left"===e.side&&$.setAttribute("lspace","-1width"),$.setAttribute("voffset","0.7em"),($=new t4.MathNode("mstyle",[$])).setAttribute("displaystyle","false"),$.setAttribute("scriptlevel","1"),$}}),eW({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler:function(e,t){return{type:"cdlabelparent",mode:e.parser.mode,fragment:t[0]}},htmlBuilder:function(e,t){var $=eD.wrapFragment(ti(e.fragment,t),t);return $.classes.push("cd-vert-arrow"),$},mathmlBuilder:function(e,t){return new t4.MathNode("mrow",[tm(e.fragment,t)])}}),eW({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){for(var $=e.parser,_=ty(t[0],"ordgroup").body,n="",a=0;a<_.length;a++)n+=ty(_[a],"textord").text;var i,o=parseInt(n);if(isNaN(o))throw new r("\\@char has non-numeric argument "+n);if(o<0||o>=1114111)throw new r("\\@char with invalid code point "+n);return o<=65535?i=String.fromCharCode(o):(o-=65536,i=String.fromCharCode(55296+(o>>10),56320+(1023&o))),{type:"textord",mode:$.mode,text:i}}});var tI=function(e,t){var $=tt(e.body,t.withColor(e.color),!1);return eD.makeFragment($)},tR=function(e,t){var $=th(e.body,t.withColor(e.color)),r=new t4.MathNode("mstyle",$);return r.setAttribute("mathcolor",e.color),r};eW({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler:function(e,t){var $=e.parser,r=ty(t[0],"color-token").color,_=t[1];return{type:"color",mode:$.mode,color:r,body:ej(_)}},htmlBuilder:tI,mathmlBuilder:tR}),eW({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler:function(e,t){var $=e.parser,r=e.breakOnTokenText,_=ty(t[0],"color-token").color;$.gullet.macros.set("\\current@color",_);var n=$.parseExpression(!0,r);return{type:"color",mode:$.mode,color:_,body:n}},htmlBuilder:tI,mathmlBuilder:tR}),eW({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler:function(e,t,$){var r=e.parser,_="["===r.gullet.future().text?r.parseSizeGroup(!0):null,n=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:n,size:_&&ty(_,"size").value}},htmlBuilder:function(e,t){var $=eD.makeSpan(["mspace"],[],t);return e.newLine&&($.classes.push("newline"),e.size&&($.style.marginTop=E(D(e.size,t)))),$},mathmlBuilder:function(e,t){var $=new t4.MathNode("mspace");return e.newLine&&($.setAttribute("linebreak","newline"),e.size&&$.setAttribute("height",E(D(e.size,t)))),$}});var tO={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},tL=function(e){var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new r("Expected a control sequence",e);return t},tD=function(e,t,$,r){var _=e.gullet.macros.get($.text);null==_&&($.noexpand=!0,_={tokens:[$],numArgs:0,unexpandable:!e.gullet.isExpandable($.text)}),e.gullet.macros.set(t,_,r)};eW({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.parser,$=e.funcName;t.consumeSpaces();var _=t.fetch();if(tO[_.text])return"\\global"!==$&&"\\\\globallong"!==$||(_.text=tO[_.text]),ty(t.parseFunction(),"internal");throw new r("Invalid token after macro prefix",_)}}),eW({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,$=e.funcName,_=t.gullet.popToken(),n=_.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(n))throw new r("Expected a control sequence",_);for(var a,i=0,o=[[]];"{"!==t.gullet.future().text;)if("#"===(_=t.gullet.popToken()).text){if("{"===t.gullet.future().text){a=t.gullet.future(),o[i].push("{");break}if(_=t.gullet.popToken(),!/^[1-9]$/.test(_.text))throw new r('Invalid argument number "'+_.text+'"');if(parseInt(_.text)!==i+1)throw new r('Argument number "'+_.text+'" out of order');i++,o.push([])}else{if("EOF"===_.text)throw new r("Expected a macro definition");o[i].push(_.text)}var s=t.gullet.consumeArg().tokens;return a&&s.unshift(a),"\\edef"!==$&&"\\xdef"!==$||(s=t.gullet.expandTokens(s)).reverse(),t.gullet.macros.set(n,{tokens:s,numArgs:i,delimiters:o},$===tO[$]),{type:"internal",mode:t.mode}}}),eW({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t,$,r=e.parser,_=e.funcName,n=tL(r.gullet.popToken());r.gullet.consumeSpaces();var a=("="===($=(t=r).gullet.popToken()).text&&" "===($=t.gullet.popToken()).text&&($=t.gullet.popToken()),$);return tD(r,n,a,"\\\\globallet"===_),{type:"internal",mode:r.mode}}}),eW({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,$=e.funcName,r=tL(t.gullet.popToken()),_=t.gullet.popToken(),n=t.gullet.popToken();return tD(t,r,n,"\\\\globalfuture"===$),t.gullet.pushToken(n),t.gullet.pushToken(_),{type:"internal",mode:t.mode}}});var tE=function(e,t,$){var r=A(er.math[e]&&er.math[e].replace||e,t,$);if(!r)throw Error("Unsupported symbol "+e+" and font size "+t+".");return r},tP=function(e,t,$,r){var _=$.havingBaseStyle(t),n=eD.makeSpan(r.concat(_.sizingClasses($)),[e],$),a=_.sizeMultiplier/$.sizeMultiplier;return n.height*=a,n.depth*=a,n.maxFontSize=_.sizeMultiplier,n},tV=function(e,t,$){var r=t.havingBaseStyle($),_=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=E(_),e.height-=_,e.depth+=_},tF=function(e,t,$,r,_,n){var a,i,o,s,l=(a=e,i=t,o=_,s=r,eD.makeSymbol(a,"Size"+i+"-Regular",o,s)),h=tP(eD.makeSpan(["delimsizing","size"+t],[l],r),b.TEXT,r,n);return $&&tV(h,r,b.TEXT),h},tG=function(e,t,$){var r;return r="Size1-Regular"===t?"delim-size1":"delim-size4",{type:"elem",elem:eD.makeSpan(["delimsizinginner",r],[eD.makeSpan([],[eD.makeSymbol(e,t,$)])])}},tU=function(e,t,$){var r=z["Size4-Regular"][e.charCodeAt(0)]?z["Size4-Regular"][e.charCodeAt(0)][4]:z["Size1-Regular"][e.charCodeAt(0)][4],_=new K("inner",function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}}(e,Math.round(1e3*t))),n=new Z([_],{width:E(r),height:E(t),style:"width:"+E(r),viewBox:"0 0 "+1e3*r+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),a=eD.makeSvgSpan([],[n],$);return a.height=t,a.style.height=E(t),a.style.width=E(r),{type:"elem",elem:a}},tX={type:"kern",size:-.008},tY=["|","\\lvert","\\rvert","\\vert"],tW=["\\|","\\lVert","\\rVert","\\Vert"],t8=function(e,t,$,r,_,n){var a,i,s,l,h="",m=0;a=s=l=e,i=null;var c="Size1-Regular";"\\uparrow"===e?s=l="⏐":"\\Uparrow"===e?s=l="‖":"\\downarrow"===e?a=s="⏐":"\\Downarrow"===e?a=s="‖":"\\updownarrow"===e?(a="\\uparrow",s="⏐",l="\\downarrow"):"\\Updownarrow"===e?(a="\\Uparrow",s="‖",l="\\Downarrow"):o.contains(tY,e)?(s="∣",h="vert",m=333):o.contains(tW,e)?(s="∥",h="doublevert",m=556):"["===e||"\\lbrack"===e?(a="⎡",s="⎢",l="⎣",c="Size4-Regular",h="lbrack",m=667):"]"===e||"\\rbrack"===e?(a="⎤",s="⎥",l="⎦",c="Size4-Regular",h="rbrack",m=667):"\\lfloor"===e||"⌊"===e?(s=a="⎢",l="⎣",c="Size4-Regular",h="lfloor",m=667):"\\lceil"===e||"⌈"===e?(a="⎡",s=l="⎢",c="Size4-Regular",h="lceil",m=667):"\\rfloor"===e||"⌋"===e?(s=a="⎥",l="⎦",c="Size4-Regular",h="rfloor",m=667):"\\rceil"===e||"⌉"===e?(a="⎤",s=l="⎥",c="Size4-Regular",h="rceil",m=667):"("===e||"\\lparen"===e?(a="⎛",s="⎜",l="⎝",c="Size4-Regular",h="lparen",m=875):")"===e||"\\rparen"===e?(a="⎞",s="⎟",l="⎠",c="Size4-Regular",h="rparen",m=875):"\\{"===e||"\\lbrace"===e?(a="⎧",i="⎨",l="⎩",s="⎪",c="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(a="⎫",i="⎬",l="⎭",s="⎪",c="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(a="⎧",l="⎩",s="⎪",c="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(a="⎫",l="⎭",s="⎪",c="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(a="⎧",l="⎭",s="⎪",c="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(a="⎫",l="⎩",s="⎪",c="Size4-Regular");var u=tE(a,c,_),p=u.height+u.depth,d=tE(s,c,_),f=d.height+d.depth,g=tE(l,c,_),v=g.height+g.depth,y=0,x=1;if(null!==i){var w=tE(i,c,_);y=w.height+w.depth,x=2}var k=p+v+y,S=k+Math.max(0,Math.ceil((t-k)/(x*f)))*x*f,z=r.fontMetrics().axisHeight;$&&(z*=r.sizeMultiplier);var M=S/2-z,T=[];if(h.length>0){var A=Math.round(1e3*S),B=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw Error("Unknown stretchy delimiter.")}}(h,Math.round(1e3*(S-p-v))),C=new K(h,B),q=(m/1e3).toFixed(3)+"em",N=(A/1e3).toFixed(3)+"em",H=new Z([C],{width:q,height:N,viewBox:"0 0 "+m+" "+A}),I=eD.makeSvgSpan([],[H],r);I.height=A/1e3,I.style.width=q,I.style.height=N,T.push({type:"elem",elem:I})}else{if(T.push(tG(l,c,_)),T.push(tX),null===i)T.push(tU(s,S-p-v+.016,r));else{var R=(S-p-v-y)/2+.016;T.push(tU(s,R,r)),T.push(tX),T.push(tG(i,c,_)),T.push(tX),T.push(tU(s,R,r))}T.push(tX),T.push(tG(a,c,_))}var O=r.havingBaseStyle(b.TEXT),L=eD.makeVList({positionType:"bottom",positionData:M,children:T},O);return tP(eD.makeSpan(["delimsizing","mult"],[L],O),b.TEXT,r,n)},t9=function(e,t,$,r,_){var n=function(e,t,$){t*=1e3;var r,_,n,a,i,o,s,l="";switch(e){case"sqrtMain":l="M95,"+(622+(r=t)+80)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+r/2.075+" -"+r+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+r)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+r)+" 80h400000v"+(40+r)+"h-400000z";break;case"sqrtSize1":l="M263,"+(601+(_=t)+80)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+_/2.084+" -"+_+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+_)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+_)+" 80h400000v"+(40+_)+"h-400000z";break;case"sqrtSize2":l="M983 "+(10+(n=t)+80)+"\nl"+n/3.13+" -"+n+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+n)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+n)+" 80h400000v"+(40+n)+"h-400000z";break;case"sqrtSize3":l="M424,"+(2398+(a=t)+80)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+a/4.223+" -"+a+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+a)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+a)+" 80\nh400000v"+(40+a)+"h-400000z";break;case"sqrtSize4":l="M473,"+(2713+(i=t)+80)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+i/5.298+" -"+i+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+i)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+i)+" 80h400000v"+(40+i)+"H1017.7z";break;case"sqrtTall":l="M702 "+((o=t)+80)+"H400000"+(40+o)+"\nH742v"+((s=$)-54-80-o)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 80H400000v"+(40+o)+"H742z"}return l}(e,r,$),a=new K(e,n),i=new Z([a],{width:"400em",height:E(t),viewBox:"0 0 400000 "+$,preserveAspectRatio:"xMinYMin slice"});return eD.makeSvgSpan(["hide-tail"],[i],_)},tj=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],tZ=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],tK=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],tJ=[0,1.2,1.8,2.4,3],tQ=[{type:"small",style:b.SCRIPTSCRIPT},{type:"small",style:b.SCRIPT},{type:"small",style:b.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],$e=[{type:"small",style:b.SCRIPTSCRIPT},{type:"small",style:b.SCRIPT},{type:"small",style:b.TEXT},{type:"stack"}],$t=[{type:"small",style:b.SCRIPTSCRIPT},{type:"small",style:b.SCRIPT},{type:"small",style:b.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],$$=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 Error("Add support for delim type '"+e.type+"' here.")},$r=function(e,t,$,r){for(var _=Math.min(2,3-r.style.size);_<$.length&&"stack"!==$[_].type;_++){var n=tE(e,$$($[_]),"math"),a=n.height+n.depth;if("small"===$[_].type&&(a*=r.havingBaseStyle($[_].style).sizeMultiplier),a>t)return $[_]}return $[$.length-1]},$_=function(e,t,$,r,_,n){"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),a=o.contains(tK,e)?tQ:o.contains(tj,e)?$t:$e;var a,i,s,l,h,m,c,u,p,d=$r(e,t,a,r);return"small"===d.type?(i=e,s=d.style,l=$,h=r,m=_,c=n,p=tP(u=eD.makeSymbol(i,"Main-Regular",m,h),s,h,c),l&&tV(p,h,s),p):"large"===d.type?tF(e,d.size,$,r,_,n):t8(e,t,$,r,_,n)},$n={sqrtImage:function(e,t){var $,r,_=t.havingBaseSizing(),n=$r("\\surd",e*_.sizeMultiplier,$t,_),a=_.sizeMultiplier,i=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o=0,s=0,l=0;return"small"===n.type?(e<1?a=1:e<1.4&&(a=.7),s=(1+i)/a,($=t9("sqrtMain",o=(1+i+.08)/a,l=1e3+1e3*i+80,i,t)).style.minWidth="0.853em",r=.833/a):"large"===n.type?(l=1080*tJ[n.size],s=(tJ[n.size]+i)/a,o=(tJ[n.size]+i+.08)/a,($=t9("sqrtSize"+n.size,o,l,i,t)).style.minWidth="1.02em",r=1/a):(o=e+i+.08,s=e+i,($=t9("sqrtTall",o,l=Math.floor(1e3*e+i)+80,i,t)).style.minWidth="0.742em",r=1.056),$.height=s,$.style.height=E(o),{span:$,advanceWidth:r,ruleWidth:(t.fontMetrics().sqrtRuleThickness+i)*a}},sizedDelim:function(e,t,$,_,n){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),o.contains(tj,e)||o.contains(tK,e))return tF(e,t,!1,$,_,n);if(o.contains(tZ,e))return t8(e,tJ[t],!1,$,_,n);throw new r("Illegal delimiter: '"+e+"'")},sizeToMaxHeight:tJ,customSizedDelim:$_,leftRightDelim:function(e,t,$,r,_,n){var a=r.fontMetrics().axisHeight*r.sizeMultiplier,i=5/r.fontMetrics().ptPerEm,o=Math.max(t-a,$+a);return $_(e,Math.max(o/500*901,2*o-i),!0,r,_,n)}},$a={"\\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}},$i=["(","\\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 $2(e,t){var $=tw(e);if($&&o.contains($i,$.text))return $;throw new r($?"Invalid delimiter '"+$.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function $o(e){if(!e.body)throw Error("Bug: The leftright ParseNode wasn't fully parsed.")}eW({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:function(e,t){var $=$2(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:$a[e.funcName].size,mclass:$a[e.funcName].mclass,delim:$.text}},htmlBuilder:function(e,t){return"."===e.delim?eD.makeSpan([e.mclass]):$n.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass])},mathmlBuilder:function(e){var t=[];"."!==e.delim&&t.push(t5(e.delim,e.mode));var $=new t4.MathNode("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?$.setAttribute("fence","true"):$.setAttribute("fence","false"),$.setAttribute("stretchy","true");var r=E($n.sizeToMaxHeight[e.size]);return $.setAttribute("minsize",r),$.setAttribute("maxsize",r),$}}),eW({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:function(e,t){var $=e.parser.gullet.macros.get("\\current@color");if($&&"string"!=typeof $)throw new r("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:$2(t[0],e).text,color:$}}}),eW({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:function(e,t){var $=$2(t[0],e),r=e.parser;++r.leftrightDepth;var _=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var n=ty(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:_,left:$.text,right:n.delim,rightColor:n.color}},htmlBuilder:function(e,t){$o(e);for(var $,r,_=tt(e.body,t,!0,["mopen","mclose"]),n=0,a=0,i=!1,o=0;o<_.length;o++)_[o].isMiddle?i=!0:(n=Math.max(_[o].height,n),a=Math.max(_[o].depth,a));if(n*=t.sizeMultiplier,a*=t.sizeMultiplier,$="."===e.left?ta(t,["mopen"]):$n.leftRightDelim(e.left,n,a,t,e.mode,["mopen"]),_.unshift($),i)for(var s=1;s<_.length;s++){var l=_[s].isMiddle;l&&(_[s]=$n.leftRightDelim(l.delim,n,a,l.options,e.mode,[]))}if("."===e.right)r=ta(t,["mclose"]);else{var h=e.rightColor?t.withColor(e.rightColor):t;r=$n.leftRightDelim(e.right,n,a,h,e.mode,["mclose"])}return _.push(r),eD.makeSpan(["minner"],_,t)},mathmlBuilder:function(e,t){$o(e);var $=th(e.body,t);if("."!==e.left){var r=new t4.MathNode("mo",[t5(e.left,e.mode)]);r.setAttribute("fence","true"),$.unshift(r)}if("."!==e.right){var _=new t4.MathNode("mo",[t5(e.right,e.mode)]);_.setAttribute("fence","true"),e.rightColor&&_.setAttribute("mathcolor",e.rightColor),$.push(_)}return t1($)}}),eW({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:function(e,t){var $=$2(t[0],e);if(!e.parser.leftrightDepth)throw new r("\\middle without preceding \\left",$);return{type:"middle",mode:e.parser.mode,delim:$.text}},htmlBuilder:function(e,t){var $;if("."===e.delim)$=ta(t,[]);else{$=$n.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};$.isMiddle=r}return $},mathmlBuilder:function(e,t){var $="\\vert"===e.delim||"|"===e.delim?t5("|","text"):t5(e.delim,e.mode),r=new t4.MathNode("mo",[$]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var $s=function(e,t){var $,r,_,n=eD.wrapFragment(ti(e.body,t),t),a=e.label.slice(1),i=t.sizeMultiplier,s=0,l=o.isCharacterBox(e.body);if("sout"===a)($=eD.makeSpan(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/i,s=-.5*t.fontMetrics().xHeight;else if("phase"===a){var h=D({number:.6,unit:"pt"},t),m=D({number:.35,unit:"ex"},t);i/=t.havingBaseSizing().sizeMultiplier;var c=n.height+n.depth+h+m;n.style.paddingLeft=E(c/2+h);var u=Math.floor(1e3*c*i),p="M400000 "+(r=u)+" H0 L"+r/2+" 0 l65 45 L145 "+(r-80)+" H400000z",d=new Z([new K("phase",p)],{width:"400em",height:E(u/1e3),viewBox:"0 0 400000 "+u,preserveAspectRatio:"xMinYMin slice"});($=eD.makeSvgSpan(["hide-tail"],[d],t)).style.height=E(c),s=n.depth+h+m}else{/cancel/.test(a)?l||n.classes.push("cancel-pad"):"angl"===a?n.classes.push("anglpad"):n.classes.push("boxpad");var f=0,g=0,v=0;/box/.test(a)?(v=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),g=f=t.fontMetrics().fboxsep+("colorbox"===a?0:v)):"angl"===a?(f=4*(v=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness)),g=Math.max(0,.25-n.depth)):g=f=l?.2:0,$=tg(n,a,f,g,t),/fbox|boxed|fcolorbox/.test(a)?($.style.borderStyle="solid",$.style.borderWidth=E(v)):"angl"===a&&.049!==v&&($.style.borderTopWidth=E(v),$.style.borderRightWidth=E(v)),s=n.depth+g,e.backgroundColor&&($.style.backgroundColor=e.backgroundColor,e.borderColor&&($.style.borderColor=e.borderColor))}if(e.backgroundColor)_=eD.makeVList({positionType:"individualShift",children:[{type:"elem",elem:$,shift:s},{type:"elem",elem:n,shift:0}]},t);else{var b=/cancel|phase/.test(a)?["svg-align"]:[];_=eD.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:$,shift:s,wrapperClasses:b}]},t)}return/cancel/.test(a)&&(_.height=n.height,_.depth=n.depth),/cancel/.test(a)&&!l?eD.makeSpan(["mord","cancel-lap"],[_],t):eD.makeSpan(["mord"],[_],t)},$l=function(e,t){var $=0,r=new t4.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[tm(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if($=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*$+"pt"),r.setAttribute("height","+"+2*$+"pt"),r.setAttribute("lspace",$+"pt"),r.setAttribute("voffset",$+"pt"),"\\fcolorbox"===e.label){var _=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+_+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};eW({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler:function(e,t,$){var r=e.parser,_=e.funcName,n=ty(t[0],"color-token").color,a=t[1];return{type:"enclose",mode:r.mode,label:_,backgroundColor:n,body:a}},htmlBuilder:$s,mathmlBuilder:$l}),eW({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler:function(e,t,$){var r=e.parser,_=e.funcName,n=ty(t[0],"color-token").color,a=ty(t[1],"color-token").color,i=t[2];return{type:"enclose",mode:r.mode,label:_,backgroundColor:a,borderColor:n,body:i}},htmlBuilder:$s,mathmlBuilder:$l}),eW({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(e,t){return{type:"enclose",mode:e.parser.mode,label:"\\fbox",body:t[0]}}}),eW({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler:function(e,t){var $=e.parser,r=e.funcName,_=t[0];return{type:"enclose",mode:$.mode,label:r,body:_}},htmlBuilder:$s,mathmlBuilder:$l}),eW({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler:function(e,t){return{type:"enclose",mode:e.parser.mode,label:"\\angl",body:t[0]}}});var $3={};function $4(e){for(var t=e.type,$=e.names,r=e.props,_=e.handler,n=e.htmlBuilder,a=e.mathmlBuilder,i={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:_},o=0;o<$.length;++o)$3[$[o]]=i;n&&(eX[t]=n),a&&(eY[t]=a)}var $5={};function $1(e,t){$5[e]=t}var $6=function(){function e(e,t,$){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=$}return e.range=function(t,$){return $?t&&t.loc&&$.loc&&t.loc.lexer===$.loc.lexer?new e(t.loc.lexer,t.loc.start,$.loc.end):null:t&&t.loc},e}(),$h=function(){function e(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}return e.prototype.range=function(t,$){return new e($,$6.range(this,t))},e}();function $0(e){var t=[];e.consumeSpaces();var $=e.fetch().text;for("\\relax"===$&&(e.consume(),e.consumeSpaces(),$=e.fetch().text);"\\hline"===$||"\\hdashline"===$;)e.consume(),t.push("\\hdashline"===$),e.consumeSpaces(),$=e.fetch().text;return t}var $m=function(e){if(!e.parser.settings.displayMode)throw new r("{"+e.envName+"} can be used only in display mode.")};function $c(e){if(-1===e.indexOf("ed"))return -1===e.indexOf("*")}function $u(e,t,$){var _=t.hskipBeforeAndAfter,n=t.addJot,a=t.cols,i=t.arraystretch,o=t.colSeparationType,s=t.autoTag,l=t.singleRow,h=t.emptySingleRow,m=t.maxNumCols,c=t.leqno;if(e.gullet.beginGroup(),l||e.gullet.macros.set("\\cr","\\\\\\relax"),!i){var u=e.gullet.expandMacroAsText("\\arraystretch");if(null==u)i=1;else if(!(i=parseFloat(u))||i<0)throw new r("Invalid \\arraystretch: "+u)}e.gullet.beginGroup();var p=[],d=[p],f=[],g=[],v=null!=s?[]:void 0;function b(){s&&e.gullet.macros.set("\\@eqnsw","1",!0)}function y(){v&&(e.gullet.macros.get("\\df@tag")?(v.push(e.subparse([new $h("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):v.push(Boolean(s)&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(b(),g.push($0(e));;){var x=e.parseExpression(!1,l?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),x={type:"ordgroup",mode:e.mode,body:x},$&&(x={type:"styling",mode:e.mode,style:$,body:[x]}),p.push(x);var w=e.fetch().text;if("&"===w){if(m&&p.length===m){if(l||o)throw new r("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else{if("\\end"===w){y(),1===p.length&&"styling"===x.type&&0===x.body[0].body.length&&(d.length>1||!h)&&d.pop(),g.length0&&(v+=.25),l.push({pos:v,isDashed:e[t]})}for(y(a[0]),$=0;$0&&(k<(T+=g)&&(k=T),T=0),e.addJot&&(k+=p),S.height=w,S.depth=k,v+=w,S.pos=v,v+=k+T,s[$]=S,y(a[$+1])}var A,B,C=v/2+t.fontMetrics().axisHeight,q=e.cols||[],N=[],H=[];if(e.tags&&e.tags.some(function(e){return e}))for($=0;$=i)){var X=void 0;(_>0||e.hskipBeforeAndAfter)&&0!==(X=o.deflt(P.pregap,c))&&((A=eD.makeSpan(["arraycolsep"],[])).style.width=E(X),N.push(A));var Y=[];for($=0;$0){for(var K=eD.makeLineSpan("hline",t,h),J=eD.makeLineSpan("hdashline",t,h),Q=[{type:"elem",elem:s,shift:0}];l.length>0;){var ee=l.pop(),et=ee.pos-C;ee.isDashed?Q.push({type:"elem",elem:J,shift:et}):Q.push({type:"elem",elem:K,shift:et})}s=eD.makeVList({positionType:"individualShift",children:Q},t)}if(0===H.length)return eD.makeSpan(["mord"],[s],t);var e$=eD.makeVList({positionType:"individualShift",children:H},t);return e$=eD.makeSpan(["tag"],[e$],t),eD.makeFragment([s,e$])},$d={c:"center ",l:"left ",r:"right "},$f=function(e,t){for(var $=[],r=new t4.MathNode("mtd",[],["mtr-glue"]),_=new t4.MathNode("mtd",[],["mml-eqn-num"]),n=0;n0){var c=e.cols,u="",p=!1,d=0,f=c.length;"separator"===c[0].type&&(h+="top ",d=1),"separator"===c[c.length-1].type&&(h+="bottom ",f-=1);for(var g=d;g0?"left ":"",h+=w[w.length-1].length>0?"right ":"";for(var k=1;k-1?"alignat":"align",a="split"===e.envName,i=$u(e.parser,{cols:_,addJot:!0,autoTag:a?void 0:$c(e.envName),emptySingleRow:!0,colSeparationType:n,maxNumCols:a?2:void 0,leqno:e.parser.settings.leqno},"display"),o=0,s={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var l="",h=0;h0&&m&&(p=1),_[c]={type:"align",align:u,pregap:p,postgap:0}}return i.colSeparationType=m?"align":"alignat",i};$4({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(e,t){var $=(tw(t[0])?[t[0]]:ty(t[0],"ordgroup").body).map(function(e){var t=tx(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new r("Unknown column alignment: "+t,e)}),_={cols:$,hskipBeforeAndAfter:!0,maxNumCols:$.length};return $u(e.parser,_,$7(e.envName))},htmlBuilder:$p,mathmlBuilder:$f}),$4({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler:function(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],$="c",_={hskipBeforeAndAfter:!1,cols:[{type:"align",align:$}]};if("*"===e.envName.charAt(e.envName.length-1)){var n=e.parser;if(n.consumeSpaces(),"["===n.fetch().text){if(n.consume(),n.consumeSpaces(),$=n.fetch().text,-1==="lcr".indexOf($))throw new r("Expected l or c or r",n.nextToken);n.consume(),n.consumeSpaces(),n.expect("]"),n.consume(),_.cols=[{type:"align",align:$}]}}var a=$u(e.parser,_,$7(e.envName)),i=Math.max.apply(Math,[0].concat(a.body.map(function(e){return e.length})));return a.cols=Array(i).fill({type:"align",align:$}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:$p,mathmlBuilder:$f}),$4({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(e){var t=$u(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:$p,mathmlBuilder:$f}),$4({type:"array",names:["subarray"],props:{numArgs:1},handler:function(e,t){var $=(tw(t[0])?[t[0]]:ty(t[0],"ordgroup").body).map(function(e){var t=tx(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new r("Unknown column alignment: "+t,e)});if($.length>1)throw new r("{subarray} can contain only one column");var _={cols:$,hskipBeforeAndAfter:!1,arraystretch:.5};if((_=$u(e.parser,_,"script")).body.length>0&&_.body[0].length>1)throw new r("{subarray} can contain only one column");return _},htmlBuilder:$p,mathmlBuilder:$f}),$4({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler:function(e){var t=$u(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},$7(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:$p,mathmlBuilder:$f}),$4({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:$g,htmlBuilder:$p,mathmlBuilder:$f}),$4({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler:function(e){o.contains(["gather","gather*"],e.envName)&&$m(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:$c(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return $u(e.parser,t,"display")},htmlBuilder:$p,mathmlBuilder:$f}),$4({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:$g,htmlBuilder:$p,mathmlBuilder:$f}),$4({type:"array",names:["equation","equation*"],props:{numArgs:0},handler:function(e){$m(e);var t={autoTag:$c(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return $u(e.parser,t,"display")},htmlBuilder:$p,mathmlBuilder:$f}),$4({type:"array",names:["CD"],props:{numArgs:0},handler:function(e){return $m(e),function(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var $=e.fetch().text;if("&"!==$&&"\\\\"!==$){if("\\end"===$){0===t[t.length-1].length&&t.pop();break}throw new r("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}for(var _,n,a=[],i=[a],o=0;o-1);else{if(!("<>AV".indexOf(m)>-1))throw new r('Expected one of "<>AV=|." after @',s[h]);for(var u=0;u<2;u++){for(var p=!0,d=h+1;d=b.SCRIPT.id?$.text():b.DISPLAY:"text"===e&&$.size===b.DISPLAY.size?$=b.TEXT:"script"===e?$=b.SCRIPT:"scriptscript"===e&&($=b.SCRIPTSCRIPT),$},$k=function(e,t){var $,r=$w(e.size,t.style),_=r.fracNum(),n=r.fracDen();$=t.havingStyle(_);var a=ti(e.numer,$,t);if(e.continued){var i=8.5/t.fontMetrics().ptPerEm,o=3.5/t.fontMetrics().ptPerEm;a.height=a.height0?3*h:7*h,u=t.fontMetrics().denom1):(l>0?(m=t.fontMetrics().num2,c=h):(m=t.fontMetrics().num3,c=3*h),u=t.fontMetrics().denom2),s){var y=t.fontMetrics().axisHeight;m-a.depth-(y+.5*l)0&&(t="."===(t=e)?null:t),t};eW({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler:function(e,t){var $,r=e.parser,_=t[4],n=t[5],a=e9(t[0]),i="atom"===a.type&&"open"===a.family?$M(a.text):null,o=e9(t[1]),s="atom"===o.type&&"close"===o.family?$M(o.text):null,l=ty(t[2],"size"),h=null;$=!!l.isBlank||(h=l.value).number>0;var m="auto",c=t[3];if("ordgroup"===c.type){if(c.body.length>0){var u=ty(c.body[0],"textord");m=$z[Number(u.text)]}}else c=ty(c,"textord"),m=$z[Number(c.text)];return{type:"genfrac",mode:r.mode,numer:_,denom:n,continued:!1,hasBarLine:$,barSize:h,leftDelim:i,rightDelim:s,size:m}},htmlBuilder:$k,mathmlBuilder:$S}),eW({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(e,t){var $=e.parser,r=(e.funcName,e.token);return{type:"infix",mode:$.mode,replaceWith:"\\\\abovefrac",size:ty(t[0],"size").value,token:r}}}),eW({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(e,t){var $=e.parser,r=(e.funcName,t[0]),_=function(e){if(!e)throw Error("Expected non-null, but got "+String(e));return e}(ty(t[1],"infix").size),n=t[2],a=_.number>0;return{type:"genfrac",mode:$.mode,numer:r,denom:n,continued:!1,hasBarLine:a,barSize:_,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:$k,mathmlBuilder:$S});var $T=function(e,t){var $,r,_=t.style;"supsub"===e.type?($=e.sup?ti(e.sup,t.havingStyle(_.sup()),t):ti(e.sub,t.havingStyle(_.sub()),t),r=ty(e.base,"horizBrace")):r=ty(e,"horizBrace");var n,a=ti(r.base,t.havingBaseStyle(b.DISPLAY)),i=tb(r,t);if(r.isOver?(n=eD.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:i}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(n=eD.makeVList({positionType:"bottom",positionData:a.depth+.1+i.height,children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:a}]},t)).children[0].children[0].children[0].classes.push("svg-align"),$){var o=eD.makeSpan(["mord",r.isOver?"mover":"munder"],[n],t);n=r.isOver?eD.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.2},{type:"elem",elem:$}]},t):eD.makeVList({positionType:"bottom",positionData:o.depth+.2+$.height+$.depth,children:[{type:"elem",elem:$},{type:"kern",size:.2},{type:"elem",elem:o}]},t)}return eD.makeSpan(["mord",r.isOver?"mover":"munder"],[n],t)};eW({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(e,t){var $=e.parser,r=e.funcName;return{type:"horizBrace",mode:$.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:$T,mathmlBuilder:function(e,t){var $=tv(e.label);return new t4.MathNode(e.isOver?"mover":"munder",[tm(e.base,t),$])}}),eW({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(e,t){var $=e.parser,r=t[1],_=ty(t[0],"url").url;return $.settings.isTrusted({command:"\\href",url:_})?{type:"href",mode:$.mode,href:_,body:ej(r)}:$.formatUnsupportedCmd("\\href")},htmlBuilder:function(e,t){var $=tt(e.body,t,!1);return eD.makeAnchor(e.href,[],$,t)},mathmlBuilder:function(e,t){var $=t0(e.body,t);return $ instanceof tl||($=new tl("mrow",[$])),$.setAttribute("href",e.href),$}}),eW({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(e,t){var $=e.parser,r=ty(t[0],"url").url;if(!$.settings.isTrusted({command:"\\url",url:r}))return $.formatUnsupportedCmd("\\url");for(var _=[],n=0;n0&&(r=D(e.totalheight,t)-$);var _=0;e.width.number>0&&(_=D(e.width,t));var n={height:E($+r)};_>0&&(n.width=E(_)),r>0&&(n.verticalAlign=E(-r));var a=new Y(e.src,e.alt,n);return a.height=$,a.depth=r,a},mathmlBuilder:function(e,t){var $=new t4.MathNode("mglyph",[]);$.setAttribute("alt",e.alt);var r=D(e.height,t),_=0;if(e.totalheight.number>0&&(_=D(e.totalheight,t)-r,$.setAttribute("valign",E(-_))),$.setAttribute("height",E(r+_)),e.width.number>0){var n=D(e.width,t);$.setAttribute("width",E(n))}return $.setAttribute("src",e.src),$}}),eW({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler:function(e,t){var $=e.parser,r=e.funcName,_=ty(t[0],"size");if($.settings.strict){var n="m"===r[1],a="mu"===_.value.unit;n?(a||$.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, not "+_.value.unit+" units"),"math"!==$.mode&&$.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):a&&$.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:$.mode,dimension:_.value}},htmlBuilder:function(e,t){return eD.makeGlue(e.dimension,t)},mathmlBuilder:function(e,t){var $=D(e.dimension,t);return new t4.SpaceNode($)}}),eW({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var $=e.parser,r=e.funcName,_=t[0];return{type:"lap",mode:$.mode,alignment:r.slice(5),body:_}},htmlBuilder:function(e,t){"clap"===e.alignment?($=eD.makeSpan([],[ti(e.body,t)]),$=eD.makeSpan(["inner"],[$],t)):$=eD.makeSpan(["inner"],[ti(e.body,t)]);var $,r=eD.makeSpan(["fix"],[]),_=eD.makeSpan([e.alignment],[$,r],t),n=eD.makeSpan(["strut"]);return n.style.height=E(_.height+_.depth),_.depth&&(n.style.verticalAlign=E(-_.depth)),_.children.unshift(n),_=eD.makeSpan(["thinbox"],[_],t),eD.makeSpan(["mord","vbox"],[_],t)},mathmlBuilder:function(e,t){var $=new t4.MathNode("mpadded",[tm(e.body,t)]);if("rlap"!==e.alignment){var r="llap"===e.alignment?"-1":"-0.5";$.setAttribute("lspace",r+"width")}return $.setAttribute("width","0px"),$}}),eW({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var $=e.funcName,r=e.parser,_=r.mode;r.switchMode("math");var n="\\("===$?"\\)":"$",a=r.parseExpression(!1,n);return r.expect(n),r.switchMode(_),{type:"styling",mode:r.mode,style:"text",body:a}}}),eW({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){throw new r("Mismatched "+e.funcName)}});var $B=function(e,t){switch(t.style.size){case b.DISPLAY.size:return e.display;case b.TEXT.size:return e.text;case b.SCRIPT.size:return e.script;case b.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};eW({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:function(e,t){return{type:"mathchoice",mode:e.parser.mode,display:ej(t[0]),text:ej(t[1]),script:ej(t[2]),scriptscript:ej(t[3])}},htmlBuilder:function(e,t){var $=$B(e,t),r=tt($,t,!1);return eD.makeFragment(r)},mathmlBuilder:function(e,t){var $=$B(e,t);return t0($,t)}});var $C=function(e,t,$,r,_,n,a){e=eD.makeSpan([],[e]);var i,s,l,h=$&&o.isCharacterBox($);if(t){var m=ti(t,r.havingStyle(_.sup()),r);s={elem:m,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-m.depth)}}if($){var c=ti($,r.havingStyle(_.sub()),r);i={elem:c,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-c.height)}}if(s&&i){var u=r.fontMetrics().bigOpSpacing5+i.elem.height+i.elem.depth+i.kern+e.depth+a;l=eD.makeVList({positionType:"bottom",positionData:u,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:i.elem,marginLeft:E(-n)},{type:"kern",size:i.kern},{type:"elem",elem:e},{type:"kern",size:s.kern},{type:"elem",elem:s.elem,marginLeft:E(n)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(i){var p=e.height-a;l=eD.makeVList({positionType:"top",positionData:p,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:i.elem,marginLeft:E(-n)},{type:"kern",size:i.kern},{type:"elem",elem:e}]},r)}else{if(!s)return e;var d=e.depth+a;l=eD.makeVList({positionType:"bottom",positionData:d,children:[{type:"elem",elem:e},{type:"kern",size:s.kern},{type:"elem",elem:s.elem,marginLeft:E(n)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}var f=[l];if(i&&0!==n&&!h){var g=eD.makeSpan(["mspace"],[],r);g.style.marginRight=E(n),f.unshift(g)}return eD.makeSpan(["mop","op-limits"],f,r)},$q=["\\smallint"],$N=function(e,t){var $,r,_,n=!1;"supsub"===e.type?($=e.sup,r=e.sub,_=ty(e.base,"op"),n=!0):_=ty(e,"op");var a,i=t.style,s=!1;if(i.size===b.DISPLAY.size&&_.symbol&&!o.contains($q,_.name)&&(s=!0),_.symbol){var l=s?"Size2-Regular":"Size1-Regular",h="";if("\\oiint"!==_.name&&"\\oiiint"!==_.name||(h=_.name.slice(1),_.name="oiint"===h?"\\iint":"\\iiint"),a=eD.makeSymbol(_.name,l,"math",t,["mop","op-symbol",s?"large-op":"small-op"]),h.length>0){var m=a.italic,c=eD.staticSvg(h+"Size"+(s?"2":"1"),t);a=eD.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:c,shift:s?.08:0}]},t),_.name="\\"+h,a.classes.unshift("mop"),a.italic=m}}else if(_.body){var u=tt(_.body,t,!0);1===u.length&&u[0]instanceof j?(a=u[0]).classes[0]="mop":a=eD.makeSpan(["mop"],u,t)}else{for(var p=[],d=1;d<_.name.length;d++)p.push(eD.mathsym(_.name[d],_.mode,t));a=eD.makeSpan(["mop"],p,t)}var f=0,g=0;return(a instanceof j||"\\oiint"===_.name||"\\oiiint"===_.name)&&!_.suppressBaseShift&&(f=(a.height-a.depth)/2-t.fontMetrics().axisHeight,g=a.italic),n?$C(a,$,r,t,i,g,f):(f&&(a.style.position="relative",a.style.top=E(f)),a)},$H=function(e,t){var $;if(e.symbol)$=new tl("mo",[t5(e.name,e.mode)]),o.contains($q,e.name)&&$.setAttribute("largeop","false");else if(e.body)$=new tl("mo",th(e.body,t));else{$=new tl("mi",[new t3(e.name.slice(1))]);var r=new tl("mo",[t5("⁡","text")]);$=e.parentIsSupSub?new tl("mrow",[$,r]):ts([$,r])}return $},$I={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};eW({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:function(e,t){var $=e.parser,r=e.funcName;return 1===r.length&&(r=$I[r]),{type:"op",mode:$.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:$N,mathmlBuilder:$H}),eW({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:function(e,t){var $=e.parser,r=t[0];return{type:"op",mode:$.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ej(r)}},htmlBuilder:$N,mathmlBuilder:$H});var $R={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};eW({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(e){var t=e.parser,$=e.funcName;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:$}},htmlBuilder:$N,mathmlBuilder:$H}),eW({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(e){var t=e.parser,$=e.funcName;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:$}},htmlBuilder:$N,mathmlBuilder:$H}),eW({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler:function(e){var t=e.parser,$=e.funcName;return 1===$.length&&($=$R[$]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:$}},htmlBuilder:$N,mathmlBuilder:$H});var $O=function(e,t){var $,r,_,n,a=!1;if("supsub"===e.type?($=e.sup,r=e.sub,_=ty(e.base,"operatorname"),a=!0):_=ty(e,"operatorname"),_.body.length>0){for(var i=_.body.map(function(e){var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e}),o=tt(i,t.withFont("mathrm"),!0),s=0;s=0?i.setAttribute("height",E(_)):(i.setAttribute("height",E(_)),i.setAttribute("depth",E(-_))),i.setAttribute("voffset",E(_)),i}});var $D=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];eW({type:"sizing",names:$D,props:{numArgs:0,allowedInText:!0},handler:function(e,t){var $=e.breakOnTokenText,r=e.funcName,_=e.parser,n=_.parseExpression(!1,$);return{type:"sizing",mode:_.mode,size:$D.indexOf(r)+1,body:n}},htmlBuilder:function(e,t){var $=t.havingSize(e.size);return $L(e.body,$,t)},mathmlBuilder:function(e,t){var $=t.havingSize(e.size),r=th(e.body,$),_=new t4.MathNode("mstyle",r);return _.setAttribute("mathsize",E($.sizeMultiplier)),_}}),eW({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(e,t,$){var r=e.parser,_=!1,n=!1,a=$[0]&&ty($[0],"ordgroup");if(a)for(var i="",o=0;o$.height+$.depth+n&&(n=(n+h-$.height-$.depth)/2);var m=o.height-$.height-n-s;$.style.paddingLeft=E(l);var c=eD.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:$,wrapperClasses:["svg-align"]},{type:"kern",size:-($.height+m)},{type:"elem",elem:o},{type:"kern",size:s}]},t);if(e.index){var u=t.havingStyle(b.SCRIPTSCRIPT),p=ti(e.index,u,t),d=.6*(c.height-c.depth),f=eD.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:p}]},t),g=eD.makeSpan(["root"],[f]);return eD.makeSpan(["mord","sqrt"],[g,c],t)}return eD.makeSpan(["mord","sqrt"],[c],t)},mathmlBuilder:function(e,t){var $=e.body,r=e.index;return r?new t4.MathNode("mroot",[tm($,t),tm(r,t)]):new t4.MathNode("msqrt",[tm($,t)])}});var $E={display:b.DISPLAY,text:b.TEXT,script:b.SCRIPT,scriptscript:b.SCRIPTSCRIPT};eW({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e,t){var $=e.breakOnTokenText,r=e.funcName,_=e.parser,n=_.parseExpression(!0,$),a=r.slice(1,r.length-5);return{type:"styling",mode:_.mode,style:a,body:n}},htmlBuilder:function(e,t){var $=$E[e.style],r=t.havingStyle($).withFont("");return $L(e.body,r,t)},mathmlBuilder:function(e,t){var $=$E[e.style],r=t.havingStyle($),_=th(e.body,r),n=new t4.MathNode("mstyle",_),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return n.setAttribute("scriptlevel",a[0]),n.setAttribute("displaystyle",a[1]),n}});var $P=function(e,t){var $=e.base;return $?"op"===$.type?$.limits&&(t.style.size===b.DISPLAY.size||$.alwaysHandleSupSub)?$N:null:"operatorname"===$.type?$.alwaysHandleSupSub&&(t.style.size===b.DISPLAY.size||$.limits)?$O:null:"accent"===$.type?o.isCharacterBox($.base)?tk:null:"horizBrace"===$.type&&!e.sub===$.isOver?$T:null:null};e8({type:"supsub",htmlBuilder:function(e,t){var $=$P(e,t);if($)return $(e,t);var r,_,n,a=e.base,i=e.sup,s=e.sub,l=ti(a,t),h=t.fontMetrics(),m=0,c=0,u=a&&o.isCharacterBox(a);if(i){var p=t.havingStyle(t.style.sup());r=ti(i,p,t),u||(m=l.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(s){var d=t.havingStyle(t.style.sub());_=ti(s,d,t),u||(c=l.depth+d.fontMetrics().subDrop*d.sizeMultiplier/t.sizeMultiplier)}n=t.style===b.DISPLAY?h.sup1:t.style.cramped?h.sup3:h.sup2;var f,g=t.sizeMultiplier,v=E(.5/h.ptPerEm/g),y=null;if(_){var x=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(l instanceof j||x)&&(y=E(-l.italic))}if(r&&_){m=Math.max(m,n,r.depth+.25*h.xHeight),c=Math.max(c,h.sub2);var w=4*h.defaultRuleThickness;if(m-r.depth-(_.height-c)0&&(m+=k,c-=k)}var S=[{type:"elem",elem:_,shift:c,marginRight:v,marginLeft:y},{type:"elem",elem:r,shift:-m,marginRight:v}];f=eD.makeVList({positionType:"individualShift",children:S},t)}else if(_){c=Math.max(c,h.sub1,_.height-.8*h.xHeight);var z=[{type:"elem",elem:_,marginLeft:y,marginRight:v}];f=eD.makeVList({positionType:"shift",positionData:c,children:z},t)}else{if(!r)throw Error("supsub must have either sup or sub.");m=Math.max(m,n,r.depth+.25*h.xHeight),f=eD.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:r,marginRight:v}]},t)}var M=tn(l,"right")||"mord";return eD.makeSpan([M],[l,eD.makeSpan(["msupsub"],[f])],t)},mathmlBuilder:function(e,t){var $,r=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(r=!0,$=e.base.isOver),e.base&&("op"===e.base.type||"operatorname"===e.base.type)&&(e.base.parentIsSupSub=!0);var _,n=[tm(e.base,t)];if(e.sub&&n.push(tm(e.sub,t)),e.sup&&n.push(tm(e.sup,t)),r)_=$?"mover":"munder";else if(e.sub){if(e.sup){var a=e.base;_=a&&"op"===a.type&&a.limits&&t.style===b.DISPLAY||a&&"operatorname"===a.type&&a.alwaysHandleSupSub&&(t.style===b.DISPLAY||a.limits)?"munderover":"msubsup"}else{var i=e.base;_=i&&"op"===i.type&&i.limits&&(t.style===b.DISPLAY||i.alwaysHandleSupSub)||i&&"operatorname"===i.type&&i.alwaysHandleSupSub&&(i.limits||t.style===b.DISPLAY)?"munder":"msub"}}else{var o=e.base;_=o&&"op"===o.type&&o.limits&&(t.style===b.DISPLAY||o.alwaysHandleSupSub)||o&&"operatorname"===o.type&&o.alwaysHandleSupSub&&(o.limits||t.style===b.DISPLAY)?"mover":"msup"}return new t4.MathNode(_,n)}}),e8({type:"atom",htmlBuilder:function(e,t){return eD.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder:function(e,t){var $=new t4.MathNode("mo",[t5(e.text,e.mode)]);if("bin"===e.family){var r=t6(e,t);"bold-italic"===r&&$.setAttribute("mathvariant",r)}else"punct"===e.family?$.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||$.setAttribute("stretchy","false");return $}});var $V={mi:"italic",mn:"normal",mtext:"normal"};e8({type:"mathord",htmlBuilder:function(e,t){return eD.makeOrd(e,t,"mathord")},mathmlBuilder:function(e,t){var $=new t4.MathNode("mi",[t5(e.text,e.mode,t)]),r=t6(e,t)||"italic";return r!==$V[$.type]&&$.setAttribute("mathvariant",r),$}}),e8({type:"textord",htmlBuilder:function(e,t){return eD.makeOrd(e,t,"textord")},mathmlBuilder:function(e,t){var $,r=t5(e.text,e.mode,t),_=t6(e,t)||"normal";return $="text"===e.mode?new t4.MathNode("mtext",[r]):/[0-9]/.test(e.text)?new t4.MathNode("mn",[r]):"\\prime"===e.text?new t4.MathNode("mo",[r]):new t4.MathNode("mi",[r]),_!==$V[$.type]&&$.setAttribute("mathvariant",_),$}});var $F={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},$G={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};e8({type:"spacing",htmlBuilder:function(e,t){if($G.hasOwnProperty(e.text)){var $=$G[e.text].className||"";if("text"===e.mode){var _=eD.makeOrd(e,t,"textord");return _.classes.push($),_}return eD.makeSpan(["mspace",$],[eD.mathsym(e.text,e.mode,t)],t)}if($F.hasOwnProperty(e.text))return eD.makeSpan(["mspace",$F[e.text]],[],t);throw new r('Unknown type of space "'+e.text+'"')},mathmlBuilder:function(e,t){if(!$G.hasOwnProperty(e.text)){if($F.hasOwnProperty(e.text))return new t4.MathNode("mspace");throw new r('Unknown type of space "'+e.text+'"')}return new t4.MathNode("mtext",[new t4.TextNode("\xa0")])}});var $U=function(){var e=new t4.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};e8({type:"tag",mathmlBuilder:function(e,t){var $=new t4.MathNode("mtable",[new t4.MathNode("mtr",[$U(),new t4.MathNode("mtd",[t0(e.body,t)]),$U(),new t4.MathNode("mtd",[t0(e.tag,t)])])]);return $.setAttribute("width","100%"),$}});var $X={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},$Y={"\\textbf":"textbf","\\textmd":"textmd"},$W={"\\textit":"textit","\\textup":"textup"},$8=function(e,t){var $=e.font;return $?$X[$]?t.withTextFontFamily($X[$]):$Y[$]?t.withTextFontWeight($Y[$]):t.withTextFontShape($W[$]):t};eW({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler:function(e,t){var $=e.parser,r=e.funcName,_=t[0];return{type:"text",mode:$.mode,body:ej(_),font:r}},htmlBuilder:function(e,t){var $=$8(e,t),r=tt(e.body,$,!0);return eD.makeSpan(["mord","text"],r,$)},mathmlBuilder:function(e,t){var $=$8(e,t);return t0(e.body,$)}}),eW({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){return{type:"underline",mode:e.parser.mode,body:t[0]}},htmlBuilder:function(e,t){var $=ti(e.body,t),r=eD.makeLineSpan("underline-line",t),_=t.fontMetrics().defaultRuleThickness,n=eD.makeVList({positionType:"top",positionData:$.height,children:[{type:"kern",size:_},{type:"elem",elem:r},{type:"kern",size:3*_},{type:"elem",elem:$}]},t);return eD.makeSpan(["mord","underline"],[n],t)},mathmlBuilder:function(e,t){var $=new t4.MathNode("mo",[new t4.TextNode("‾")]);$.setAttribute("stretchy","true");var r=new t4.MathNode("munder",[tm(e.body,t),$]);return r.setAttribute("accentunder","true"),r}}),eW({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler:function(e,t){return{type:"vcenter",mode:e.parser.mode,body:t[0]}},htmlBuilder:function(e,t){var $=ti(e.body,t),r=t.fontMetrics().axisHeight,_=.5*($.height-r-($.depth+r));return eD.makeVList({positionType:"shift",positionData:_,children:[{type:"elem",elem:$}]},t)},mathmlBuilder:function(e,t){return new t4.MathNode("mpadded",[tm(e.body,t)],["vcenter"])}}),eW({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(e,t,$){throw new r("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(e,t){for(var $=re(e),r=[],_=t.havingStyle(t.style.text()),n=0;n<$.length;n++){var a=$[n];"~"===a&&(a="\\textasciitilde"),r.push(eD.makeSymbol(a,"Typewriter-Regular",e.mode,_,["mord","texttt"]))}return eD.makeSpan(["mord","text"].concat(_.sizingClasses(t)),eD.tryCombineChars(r),_)},mathmlBuilder:function(e,t){var $=new t4.TextNode(re(e)),r=new t4.MathNode("mtext",[$]);return r.setAttribute("mathvariant","monospace"),r}});var $9,$j,$Z,$K,$J,$Q,re=function(e){return e.body.replace(/ /g,e.star?"␣":"\xa0")},rt=eU,r$=RegExp("[̀-ͯ]+$"),rr=function(){function e(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=RegExp("([ \r\n ]+)|\\\\(\n|[ \r ]+\n?)[ \r ]*|([!-\\[\\]-‧‪-퟿豈-￿][̀-ͯ]*|[\ud800-\udbff][\udc00-\udfff][̀-ͯ]*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|(\\\\[a-zA-Z@]+)[ \r\n ]*|\\\\[^\ud800-\udfff])","g"),this.catcodes={"%":14,"~":13}}var t=e.prototype;return t.setCatcode=function(e,t){this.catcodes[e]=t},t.lex=function(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new $h("EOF",new $6(this,t,t));var $=this.tokenRegex.exec(e);if(null===$||$.index!==t)throw new r("Unexpected character: '"+e[t]+"'",new $h(e[t],new $6(this,t,t+1)));var _=$[6]||$[3]||($[2]?"\\ ":" ");if(14===this.catcodes[_]){var n=e.indexOf("\n",this.tokenRegex.lastIndex);return -1===n?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=n+1,this.lex()}return new $h(_,new $6(this,t,this.tokenRegex.lastIndex))},e}(),r_=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}var t=e.prototype;return t.beginGroup=function(){this.undefStack.push({})},t.endGroup=function(){if(0===this.undefStack.length)throw new r("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])},t.endGroups=function(){for(;this.undefStack.length>0;)this.endGroup()},t.has=function(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)},t.get=function(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]},t.set=function(e,t,$){if(void 0===$&&($=!1),$){for(var r=0;r0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var _=this.undefStack[this.undefStack.length-1];_&&!_.hasOwnProperty(e)&&(_[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t},e}(),rn=$5;$9=function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}},$5["\\noexpand"]=$9,$j=function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}},$5["\\expandafter"]=$j,$Z=function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}},$5["\\@firstoftwo"]=$Z,$K=function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}},$5["\\@secondoftwo"]=$K,$J=function(e){var t=e.consumeArgs(3);e.consumeSpaces();var $=e.future();return 1===t[0].length&&t[0][0].text===$.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}},$5["\\@ifnextchar"]=$J,$5["\\@ifstar"]="\\@ifnextchar *{\\@firstoftwo{#1}}",$Q=function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}},$5["\\TextOrMath"]=$Q;var ra,ri={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};ra=function(e){var t,$,_=e.popToken(),n="";if("'"===_.text)$=8,_=e.popToken();else if('"'===_.text)$=16,_=e.popToken();else if("`"===_.text){if("\\"===(_=e.popToken()).text[0])n=_.text.charCodeAt(1);else{if("EOF"===_.text)throw new r("\\char` missing argument");n=_.text.charCodeAt(0)}}else $=10;if($){if(null==(n=ri[_.text])||n>=$)throw new r("Invalid base-"+$+" digit "+_.text);for(;null!=(t=ri[e.future().text])&&t<$;)n*=$,n+=t,e.popToken()}return"\\@char{"+n+"}"},$5["\\char"]=ra;var r2,ro,rs,rl,r3,r4,r5=function(e,t,$){var _=e.consumeArg().tokens;if(1!==_.length)throw new r("\\newcommand's first argument must be a macro name");var n=_[0].text,a=e.isDefined(n);if(a&&!t)throw new r("\\newcommand{"+n+"} attempting to redefine "+n+"; use \\renewcommand");if(!a&&!$)throw new r("\\renewcommand{"+n+"} when command "+n+" does not yet exist; use \\newcommand");var i=0;if(1===(_=e.consumeArg().tokens).length&&"["===_[0].text){for(var o="",s=e.expandNextToken();"]"!==s.text&&"EOF"!==s.text;)o+=s.text,s=e.expandNextToken();if(!o.match(/^\s*[0-9]+\s*$/))throw new r("Invalid number of arguments: "+o);i=parseInt(o),_=e.consumeArg().tokens}return e.macros.set(n,{tokens:_,numArgs:i}),""};r2=function(e){return r5(e,!1,!0)},$5["\\newcommand"]=r2,ro=function(e){return r5(e,!0,!1)},$5["\\renewcommand"]=ro,rs=function(e){return r5(e,!0,!0)},$5["\\providecommand"]=rs,rl=function(e){var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(function(e){return e.text}).join("")),""},$5["\\message"]=rl,r3=function(e){var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(function(e){return e.text}).join("")),""},$5["\\errmessage"]=r3,r4=function(e){var t=e.popToken(),$=t.text;return console.log(t,e.macros.get($),rt[$],er.math[$],er.text[$]),""},$5["\\show"]=r4,$5["\\bgroup"]="{",$5["\\egroup"]="}",$5["~"]="\\nobreakspace",$5["\\lq"]="`",$5["\\rq"]="'",$5["\\aa"]="\\r a",$5["\\AA"]="\\r A",$5["\\textcopyright"]="\\html@mathml{\\textcircled{c}}{\\char`\xa9}",$5["\\copyright"]="\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}",$5["\\textregistered"]="\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xae}",$5["ℬ"]="\\mathscr{B}",$5["ℰ"]="\\mathscr{E}",$5["ℱ"]="\\mathscr{F}",$5["ℋ"]="\\mathscr{H}",$5["ℐ"]="\\mathscr{I}",$5["ℒ"]="\\mathscr{L}",$5["ℳ"]="\\mathscr{M}",$5["ℛ"]="\\mathscr{R}",$5["ℭ"]="\\mathfrak{C}",$5["ℌ"]="\\mathfrak{H}",$5["ℨ"]="\\mathfrak{Z}",$5["\\Bbbk"]="\\Bbb{k}",$5["\xb7"]="\\cdotp",$5["\\llap"]="\\mathllap{\\textrm{#1}}",$5["\\rlap"]="\\mathrlap{\\textrm{#1}}",$5["\\clap"]="\\mathclap{\\textrm{#1}}",$5["\\mathstrut"]="\\vphantom{(}",$5["\\underbar"]="\\underline{\\text{#1}}",$5["\\not"]='\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}',$5["\\neq"]="\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}",$5["\\ne"]="\\neq",$5["≠"]="\\neq",$5["\\notin"]="\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}",$5["∉"]="\\notin",$5["≘"]="\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}",$5["≙"]="\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}",$5["≚"]="\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}",$5["≛"]="\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}",$5["≝"]="\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}",$5["≞"]="\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}",$5["≟"]="\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}",$5["⟂"]="\\perp",$5["‼"]="\\mathclose{!\\mkern-0.8mu!}",$5["∌"]="\\notni",$5["⌜"]="\\ulcorner",$5["⌝"]="\\urcorner",$5["⌞"]="\\llcorner",$5["⌟"]="\\lrcorner",$5["\xa9"]="\\copyright",$5["\xae"]="\\textregistered",$5["️"]="\\textregistered",$5["\\ulcorner"]='\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}',$5["\\urcorner"]='\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}',$5["\\llcorner"]='\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}',$5["\\lrcorner"]='\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}',$5["\\vdots"]="\\mathord{\\varvdots\\rule{0pt}{15pt}}",$5["⋮"]="\\vdots",$5["\\varGamma"]="\\mathit{\\Gamma}",$5["\\varDelta"]="\\mathit{\\Delta}",$5["\\varTheta"]="\\mathit{\\Theta}",$5["\\varLambda"]="\\mathit{\\Lambda}",$5["\\varXi"]="\\mathit{\\Xi}",$5["\\varPi"]="\\mathit{\\Pi}",$5["\\varSigma"]="\\mathit{\\Sigma}",$5["\\varUpsilon"]="\\mathit{\\Upsilon}",$5["\\varPhi"]="\\mathit{\\Phi}",$5["\\varPsi"]="\\mathit{\\Psi}",$5["\\varOmega"]="\\mathit{\\Omega}",$5["\\substack"]="\\begin{subarray}{c}#1\\end{subarray}",$5["\\colon"]="\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax",$5["\\boxed"]="\\fbox{$\\displaystyle{#1}$}",$5["\\iff"]="\\DOTSB\\;\\Longleftrightarrow\\;",$5["\\implies"]="\\DOTSB\\;\\Longrightarrow\\;",$5["\\impliedby"]="\\DOTSB\\;\\Longleftarrow\\;";var r1,r6={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\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"};r1=function(e){var t="\\dotso",$=e.expandAfterFuture().text;return $ in r6?t=r6[$]:("\\not"===$.slice(0,4)||$ in er.math&&o.contains(["bin","rel"],er.math[$].group))&&(t="\\dotsb"),t},$5["\\dots"]=r1;var rh,r0,rm,rc,ru={")":!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};rh=function(e){return e.future().text in ru?"\\ldots\\,":"\\ldots"},$5["\\dotso"]=rh,r0=function(e){var t=e.future().text;return t in ru&&","!==t?"\\ldots\\,":"\\ldots"},$5["\\dotsc"]=r0,rm=function(e){return e.future().text in ru?"\\@cdots\\,":"\\@cdots"},$5["\\cdots"]=rm,$5["\\dotsb"]="\\cdots",$5["\\dotsm"]="\\cdots",$5["\\dotsi"]="\\!\\cdots",$5["\\dotsx"]="\\ldots\\,",$5["\\DOTSI"]="\\relax",$5["\\DOTSB"]="\\relax",$5["\\DOTSX"]="\\relax",$5["\\tmspace"]="\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax",$5["\\,"]="\\tmspace+{3mu}{.1667em}",$5["\\thinspace"]="\\,",$5["\\>"]="\\mskip{4mu}",$5["\\:"]="\\tmspace+{4mu}{.2222em}",$5["\\medspace"]="\\:",$5["\\;"]="\\tmspace+{5mu}{.2777em}",$5["\\thickspace"]="\\;",$5["\\!"]="\\tmspace-{3mu}{.1667em}",$5["\\negthinspace"]="\\!",$5["\\negmedspace"]="\\tmspace-{4mu}{.2222em}",$5["\\negthickspace"]="\\tmspace-{5mu}{.277em}",$5["\\enspace"]="\\kern.5em ",$5["\\enskip"]="\\hskip.5em\\relax",$5["\\quad"]="\\hskip1em\\relax",$5["\\qquad"]="\\hskip2em\\relax",$5["\\tag"]="\\@ifstar\\tag@literal\\tag@paren",$5["\\tag@paren"]="\\tag@literal{({#1})}",rc=function(e){if(e.macros.get("\\df@tag"))throw new r("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"},$5["\\tag@literal"]=rc,$5["\\bmod"]="\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}",$5["\\pod"]="\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)",$5["\\pmod"]="\\pod{{\\rm mod}\\mkern6mu#1}",$5["\\mod"]="\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1",$5["\\newline"]="\\\\\\relax",$5["\\TeX"]="\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}";var r7,rp,rd=E(z["Main-Regular"][84][1]-.7*z["Main-Regular"][65][1]);r7="\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+rd+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}",$5["\\LaTeX"]=r7,rp="\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+rd+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}",$5["\\KaTeX"]=rp,$5["\\hspace"]="\\@ifstar\\@hspacer\\@hspace",$5["\\@hspace"]="\\hskip #1\\relax",$5["\\@hspacer"]="\\rule{0pt}{0pt}\\hskip #1\\relax",$5["\\ordinarycolon"]=":",$5["\\vcentcolon"]="\\mathrel{\\mathop\\ordinarycolon}",$5["\\dblcolon"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}',$5["\\coloneqq"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}',$5["\\Coloneqq"]='\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}',$5["\\coloneq"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}',$5["\\Coloneq"]='\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}',$5["\\eqqcolon"]='\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}',$5["\\Eqqcolon"]='\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}',$5["\\eqcolon"]='\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}',$5["\\Eqcolon"]='\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}',$5["\\colonapprox"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}',$5["\\Colonapprox"]='\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}',$5["\\colonsim"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}',$5["\\Colonsim"]='\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}',$5["∷"]="\\dblcolon",$5["∹"]="\\eqcolon",$5["≔"]="\\coloneqq",$5["≕"]="\\eqqcolon",$5["⩴"]="\\Coloneqq",$5["\\ratio"]="\\vcentcolon",$5["\\coloncolon"]="\\dblcolon",$5["\\colonequals"]="\\coloneqq",$5["\\coloncolonequals"]="\\Coloneqq",$5["\\equalscolon"]="\\eqqcolon",$5["\\equalscoloncolon"]="\\Eqqcolon",$5["\\colonminus"]="\\coloneq",$5["\\coloncolonminus"]="\\Coloneq",$5["\\minuscolon"]="\\eqcolon",$5["\\minuscoloncolon"]="\\Eqcolon",$5["\\coloncolonapprox"]="\\Colonapprox",$5["\\coloncolonsim"]="\\Colonsim",$5["\\simcolon"]="\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}",$5["\\simcoloncolon"]="\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}",$5["\\approxcolon"]="\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}",$5["\\approxcoloncolon"]="\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}",$5["\\notni"]="\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}",$5["\\limsup"]="\\DOTSB\\operatorname*{lim\\,sup}",$5["\\liminf"]="\\DOTSB\\operatorname*{lim\\,inf}",$5["\\injlim"]="\\DOTSB\\operatorname*{inj\\,lim}",$5["\\projlim"]="\\DOTSB\\operatorname*{proj\\,lim}",$5["\\varlimsup"]="\\DOTSB\\operatorname*{\\overline{lim}}",$5["\\varliminf"]="\\DOTSB\\operatorname*{\\underline{lim}}",$5["\\varinjlim"]="\\DOTSB\\operatorname*{\\underrightarrow{lim}}",$5["\\varprojlim"]="\\DOTSB\\operatorname*{\\underleftarrow{lim}}",$5["\\gvertneqq"]="\\html@mathml{\\@gvertneqq}{≩}",$5["\\lvertneqq"]="\\html@mathml{\\@lvertneqq}{≨}",$5["\\ngeqq"]="\\html@mathml{\\@ngeqq}{≱}",$5["\\ngeqslant"]="\\html@mathml{\\@ngeqslant}{≱}",$5["\\nleqq"]="\\html@mathml{\\@nleqq}{≰}",$5["\\nleqslant"]="\\html@mathml{\\@nleqslant}{≰}",$5["\\nshortmid"]="\\html@mathml{\\@nshortmid}{∤}",$5["\\nshortparallel"]="\\html@mathml{\\@nshortparallel}{∦}",$5["\\nsubseteqq"]="\\html@mathml{\\@nsubseteqq}{⊈}",$5["\\nsupseteqq"]="\\html@mathml{\\@nsupseteqq}{⊉}",$5["\\varsubsetneq"]="\\html@mathml{\\@varsubsetneq}{⊊}",$5["\\varsubsetneqq"]="\\html@mathml{\\@varsubsetneqq}{⫋}",$5["\\varsupsetneq"]="\\html@mathml{\\@varsupsetneq}{⊋}",$5["\\varsupsetneqq"]="\\html@mathml{\\@varsupsetneqq}{⫌}",$5["\\imath"]="\\html@mathml{\\@imath}{ı}",$5["\\jmath"]="\\html@mathml{\\@jmath}{ȷ}",$5["\\llbracket"]="\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}",$5["\\rrbracket"]="\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}",$5["⟦"]="\\llbracket",$5["⟧"]="\\rrbracket",$5["\\lBrace"]="\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}",$5["\\rBrace"]="\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}",$5["⦃"]="\\lBrace",$5["⦄"]="\\rBrace",$5["\\minuso"]="\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}",$5["⦵"]="\\minuso",$5["\\darr"]="\\downarrow",$5["\\dArr"]="\\Downarrow",$5["\\Darr"]="\\Downarrow",$5["\\lang"]="\\langle",$5["\\rang"]="\\rangle",$5["\\uarr"]="\\uparrow",$5["\\uArr"]="\\Uparrow",$5["\\Uarr"]="\\Uparrow",$5["\\N"]="\\mathbb{N}",$5["\\R"]="\\mathbb{R}",$5["\\Z"]="\\mathbb{Z}",$5["\\alef"]="\\aleph",$5["\\alefsym"]="\\aleph",$5["\\Alpha"]="\\mathrm{A}",$5["\\Beta"]="\\mathrm{B}",$5["\\bull"]="\\bullet",$5["\\Chi"]="\\mathrm{X}",$5["\\clubs"]="\\clubsuit",$5["\\cnums"]="\\mathbb{C}",$5["\\Complex"]="\\mathbb{C}",$5["\\Dagger"]="\\ddagger",$5["\\diamonds"]="\\diamondsuit",$5["\\empty"]="\\emptyset",$5["\\Epsilon"]="\\mathrm{E}",$5["\\Eta"]="\\mathrm{H}",$5["\\exist"]="\\exists",$5["\\harr"]="\\leftrightarrow",$5["\\hArr"]="\\Leftrightarrow",$5["\\Harr"]="\\Leftrightarrow",$5["\\hearts"]="\\heartsuit",$5["\\image"]="\\Im",$5["\\infin"]="\\infty",$5["\\Iota"]="\\mathrm{I}",$5["\\isin"]="\\in",$5["\\Kappa"]="\\mathrm{K}",$5["\\larr"]="\\leftarrow",$5["\\lArr"]="\\Leftarrow",$5["\\Larr"]="\\Leftarrow",$5["\\lrarr"]="\\leftrightarrow",$5["\\lrArr"]="\\Leftrightarrow",$5["\\Lrarr"]="\\Leftrightarrow",$5["\\Mu"]="\\mathrm{M}",$5["\\natnums"]="\\mathbb{N}",$5["\\Nu"]="\\mathrm{N}",$5["\\Omicron"]="\\mathrm{O}",$5["\\plusmn"]="\\pm",$5["\\rarr"]="\\rightarrow",$5["\\rArr"]="\\Rightarrow",$5["\\Rarr"]="\\Rightarrow",$5["\\real"]="\\Re",$5["\\reals"]="\\mathbb{R}",$5["\\Reals"]="\\mathbb{R}",$5["\\Rho"]="\\mathrm{P}",$5["\\sdot"]="\\cdot",$5["\\sect"]="\\S",$5["\\spades"]="\\spadesuit",$5["\\sub"]="\\subset",$5["\\sube"]="\\subseteq",$5["\\supe"]="\\supseteq",$5["\\Tau"]="\\mathrm{T}",$5["\\thetasym"]="\\vartheta",$5["\\weierp"]="\\wp",$5["\\Zeta"]="\\mathrm{Z}",$5["\\argmin"]="\\DOTSB\\operatorname*{arg\\,min}",$5["\\argmax"]="\\DOTSB\\operatorname*{arg\\,max}",$5["\\plim"]="\\DOTSB\\mathop{\\operatorname{plim}}\\limits",$5["\\bra"]="\\mathinner{\\langle{#1}|}",$5["\\ket"]="\\mathinner{|{#1}\\rangle}",$5["\\braket"]="\\mathinner{\\langle{#1}\\rangle}",$5["\\Bra"]="\\left\\langle#1\\right|",$5["\\Ket"]="\\left|#1\\right\\rangle";var rf,rg,rv=function(e){return function(t){var $=t.consumeArg().tokens,r=t.consumeArg().tokens,_=t.consumeArg().tokens,n=t.consumeArg().tokens,a=t.macros.get("|"),i=t.macros.get("\\|");t.macros.beginGroup();var o=function(t){return function($){e&&($.macros.set("|",a),_.length&&$.macros.set("\\|",i));var n=t;return!t&&_.length&&"|"===$.future().text&&($.popToken(),n=!0),{tokens:n?_:r,numArgs:0}}};t.macros.set("|",o(!1)),_.length&&t.macros.set("\\|",o(!0));var s=t.consumeArg().tokens,l=t.expandTokens([].concat(n,s,$));return t.macros.endGroup(),{tokens:l.reverse(),numArgs:0}}};rf=rv(!1),$5["\\bra@ket"]=rf,rg=rv(!0),$5["\\bra@set"]=rg,$5["\\Braket"]="\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}",$5["\\Set"]="\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}",$5["\\set"]="\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}",$5["\\angln"]="{\\angl n}",$5["\\blue"]="\\textcolor{##6495ed}{#1}",$5["\\orange"]="\\textcolor{##ffa500}{#1}",$5["\\pink"]="\\textcolor{##ff00af}{#1}",$5["\\red"]="\\textcolor{##df0030}{#1}",$5["\\green"]="\\textcolor{##28ae7b}{#1}",$5["\\gray"]="\\textcolor{gray}{#1}",$5["\\purple"]="\\textcolor{##9d38bd}{#1}",$5["\\blueA"]="\\textcolor{##ccfaff}{#1}",$5["\\blueB"]="\\textcolor{##80f6ff}{#1}",$5["\\blueC"]="\\textcolor{##63d9ea}{#1}",$5["\\blueD"]="\\textcolor{##11accd}{#1}",$5["\\blueE"]="\\textcolor{##0c7f99}{#1}",$5["\\tealA"]="\\textcolor{##94fff5}{#1}",$5["\\tealB"]="\\textcolor{##26edd5}{#1}",$5["\\tealC"]="\\textcolor{##01d1c1}{#1}",$5["\\tealD"]="\\textcolor{##01a995}{#1}",$5["\\tealE"]="\\textcolor{##208170}{#1}",$5["\\greenA"]="\\textcolor{##b6ffb0}{#1}",$5["\\greenB"]="\\textcolor{##8af281}{#1}",$5["\\greenC"]="\\textcolor{##74cf70}{#1}",$5["\\greenD"]="\\textcolor{##1fab54}{#1}",$5["\\greenE"]="\\textcolor{##0d923f}{#1}",$5["\\goldA"]="\\textcolor{##ffd0a9}{#1}",$5["\\goldB"]="\\textcolor{##ffbb71}{#1}",$5["\\goldC"]="\\textcolor{##ff9c39}{#1}",$5["\\goldD"]="\\textcolor{##e07d10}{#1}",$5["\\goldE"]="\\textcolor{##a75a05}{#1}",$5["\\redA"]="\\textcolor{##fca9a9}{#1}",$5["\\redB"]="\\textcolor{##ff8482}{#1}",$5["\\redC"]="\\textcolor{##f9685d}{#1}",$5["\\redD"]="\\textcolor{##e84d39}{#1}",$5["\\redE"]="\\textcolor{##bc2612}{#1}",$5["\\maroonA"]="\\textcolor{##ffbde0}{#1}",$5["\\maroonB"]="\\textcolor{##ff92c6}{#1}",$5["\\maroonC"]="\\textcolor{##ed5fa6}{#1}",$5["\\maroonD"]="\\textcolor{##ca337c}{#1}",$5["\\maroonE"]="\\textcolor{##9e034e}{#1}",$5["\\purpleA"]="\\textcolor{##ddd7ff}{#1}",$5["\\purpleB"]="\\textcolor{##c6b9fc}{#1}",$5["\\purpleC"]="\\textcolor{##aa87ff}{#1}",$5["\\purpleD"]="\\textcolor{##7854ab}{#1}",$5["\\purpleE"]="\\textcolor{##543b78}{#1}",$5["\\mintA"]="\\textcolor{##f5f9e8}{#1}",$5["\\mintB"]="\\textcolor{##edf2df}{#1}",$5["\\mintC"]="\\textcolor{##e0e5cc}{#1}",$5["\\grayA"]="\\textcolor{##f6f7f7}{#1}",$5["\\grayB"]="\\textcolor{##f0f1f2}{#1}",$5["\\grayC"]="\\textcolor{##e3e5e6}{#1}",$5["\\grayD"]="\\textcolor{##d6d8da}{#1}",$5["\\grayE"]="\\textcolor{##babec2}{#1}",$5["\\grayF"]="\\textcolor{##888d93}{#1}",$5["\\grayG"]="\\textcolor{##626569}{#1}",$5["\\grayH"]="\\textcolor{##3b3e40}{#1}",$5["\\grayI"]="\\textcolor{##21242c}{#1}",$5["\\kaBlue"]="\\textcolor{##314453}{#1}",$5["\\kaGreen"]="\\textcolor{##71B307}{#1}";var rb={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},ry=function(){function e(e,t,$){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 r_(rn,t.macros),this.mode=$,this.stack=[]}var t=e.prototype;return t.feed=function(e){this.lexer=new rr(e,this.settings)},t.switchMode=function(e){this.mode=e},t.beginGroup=function(){this.macros.beginGroup()},t.endGroup=function(){this.macros.endGroup()},t.endGroups=function(){this.macros.endGroups()},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.scanArgument=function(e){var t,$,r;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken();var _=this.consumeArg(["]"]);r=_.tokens,$=_.end}else{var n=this.consumeArg();r=n.tokens,t=n.start,$=n.end}return this.pushToken(new $h("EOF",$.loc)),this.pushTokens(r),t.range($,"")},t.consumeSpaces=function(){for(;" "===this.future().text;)this.stack.pop()},t.consumeArg=function(e){var t=[],$=e&&e.length>0;$||this.consumeSpaces();var _,n=this.future(),a=0,i=0;do{if(_=this.popToken(),t.push(_),"{"===_.text)++a;else if("}"===_.text){if(-1==--a)throw new r("Extra }",_)}else if("EOF"===_.text)throw new r("Unexpected end of input in a macro argument, expected '"+(e&&$?e[i]:"}")+"'",_);if(e&&$){if((0===a||1===a&&"{"===e[i])&&_.text===e[i]){if(++i===e.length){t.splice(-i,i);break}}else i=0}}while(0!==a||$);return"{"===n.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:n,end:_}},t.consumeArgs=function(e,t){if(t){if(t.length!==e+1)throw new r("The length of delimiters doesn't match the number of args!");for(var $=t[0],_=0;_<$.length;_++){var n=this.popToken();if($[_]!==n.text)throw new r("Use of the macro doesn't match its definition",n)}}for(var a=[],i=0;ithis.settings.maxExpand)throw new r("Too many expansions: infinite loop or need to increase maxExpand setting");var n=_.tokens,a=this.consumeArgs(_.numArgs,_.delimiters);if(_.numArgs)for(var i=(n=n.slice()).length-1;i>=0;--i){var o,s=n[i];if("#"===s.text){if(0===i)throw new r("Incomplete placeholder at end of macro body",s);if("#"===(s=n[--i]).text)n.splice(i+1,1);else{if(!/^[1-9]$/.test(s.text))throw new r("Not a valid argument number",s);(o=n).splice.apply(o,[i,2].concat(a[+s.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 $h)return e.treatAsRelax&&(e.text="\\relax"),this.stack.pop()}throw Error()},t.expandMacro=function(e){return this.macros.has(e)?this.expandTokens([new $h(e)]):void 0},t.expandTokens=function(e){var t=[],$=this.stack.length;for(this.pushTokens(e);this.stack.length>$;){var r=this.expandOnce(!0);r instanceof $h&&(r.treatAsRelax&&(r.noexpand=!1,r.treatAsRelax=!1),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;if(1===e.length){var $=this.lexer.catcodes[e];if(null!=$&&13!==$)return}var r="function"==typeof t?t(this):t;if("string"==typeof r){var _=0;if(-1!==r.indexOf("#"))for(var n=r.replace(/##/g,"");-1!==n.indexOf("#"+(_+1));)++_;for(var a=new rr(r,this.settings),i=[],o=a.lex();"EOF"!==o.text;)i.push(o),o=a.lex();return i.reverse(),{tokens:i,numArgs:_}}return r},t.isDefined=function(e){return this.macros.has(e)||rt.hasOwnProperty(e)||er.math.hasOwnProperty(e)||er.text.hasOwnProperty(e)||rb.hasOwnProperty(e)},t.isExpandable=function(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:rt.hasOwnProperty(e)&&!rt[e].primitive},e}(),rx=/^[\u208a\u208b\u208c\u208d\u208e\u2080\u2081\u2082\u2083\u2084\u2085\u2086\u2087\u2088\u2089\u2090\u2091\u2095\u1d62\u2c7c\u2096\u2097\u2098\u2099\u2092\u209a\u1d63\u209b\u209c\u1d64\u1d65\u2093\u1d66\u1d67\u1d68\u1d69\u1d6a]/,rw=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9",ₐ:"a",ₑ:"e",ₕ:"h",ᵢ:"i",ⱼ:"j",ₖ:"k",ₗ:"l",ₘ:"m",ₙ:"n",ₒ:"o",ₚ:"p",ᵣ:"r",ₛ:"s",ₜ:"t",ᵤ:"u",ᵥ:"v",ₓ:"x",ᵦ:"β",ᵧ:"γ",ᵨ:"ρ",ᵩ:"ϕ",ᵪ:"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","\xb9":"1","\xb2":"2","\xb3":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9",ᴬ:"A",ᴮ:"B",ᴰ:"D",ᴱ:"E",ᴳ:"G",ᴴ:"H",ᴵ:"I",ᴶ:"J",ᴷ:"K",ᴸ:"L",ᴹ:"M",ᴺ:"N",ᴼ:"O",ᴾ:"P",ᴿ:"R",ᵀ:"T",ᵁ:"U",ⱽ:"V",ᵂ:"W",ᵃ:"a",ᵇ:"b",ᶜ:"c",ᵈ:"d",ᵉ:"e",ᶠ:"f",ᵍ:"g",ʰ:"h",ⁱ:"i",ʲ:"j",ᵏ:"k",ˡ:"l",ᵐ:"m",ⁿ:"n",ᵒ:"o",ᵖ:"p",ʳ:"r",ˢ:"s",ᵗ:"t",ᵘ:"u",ᵛ:"v",ʷ:"w",ˣ:"x",ʸ:"y",ᶻ:"z",ᵝ:"β",ᵞ:"γ",ᵟ:"δ",ᵠ:"ϕ",ᵡ:"χ",ᶿ:"θ"}),rk={"́":{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"},"̧":{text:"\\c"}},rS={á:"\xe1",à:"\xe0",ä:"\xe4",ǟ:"ǟ",ã:"\xe3",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"\xe2",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"\xe5",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"\xe7",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"\xe9",è:"\xe8",ë:"\xeb",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"\xea",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"\xed",ì:"\xec",ï:"\xef",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"\xee",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"\xf1",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"\xf3",ò:"\xf2",ö:"\xf6",ȫ:"ȫ",õ:"\xf5",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"\xf4",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"\xfa",ù:"\xf9",ü:"\xfc",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"\xfb",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"\xfd",ỳ:"ỳ",ÿ:"\xff",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"\xc1",À:"\xc0",Ä:"\xc4",Ǟ:"Ǟ",Ã:"\xc3",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"\xc2",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"\xc5",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"\xc7",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"\xc9",È:"\xc8",Ë:"\xcb",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"\xca",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"\xcd",Ì:"\xcc",Ï:"\xcf",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"\xce",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"\xd1",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"\xd3",Ò:"\xd2",Ö:"\xd6",Ȫ:"Ȫ",Õ:"\xd5",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"\xd4",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"\xda",Ù:"\xd9",Ü:"\xdc",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"\xdb",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"\xdd",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"},rz=function(){function e(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 ry(e,t,this.mode),this.settings=t,this.leftrightDepth=0}var t=e.prototype;return t.expect=function(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new r("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()},t.consume=function(){this.nextToken=null},t.fetch=function(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},t.switchMode=function(e){this.mode=e,this.gullet.switchMode(e)},t.parse=function(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}},t.subparse=function(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new $h("}")),this.gullet.pushTokens(e);var $=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,$},t.parseExpression=function(t,$){for(var r=[];;){"math"===this.mode&&this.consumeSpaces();var _=this.fetch();if(-1!==e.endOfExpression.indexOf(_.text)||$&&_.text===$||t&&rt[_.text]&&rt[_.text].infix)break;var n=this.parseAtom($);if(!n)break;"internal"!==n.type&&r.push(n)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)},t.handleInfixNodes=function(e){for(var t,$=-1,_=0;_=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var i,o=er[this.mode][t].group,s=$6.range(e);n=i=ee.hasOwnProperty(o)?{type:"atom",mode:this.mode,family:o,loc:s,text:t}:{type:o,mode:this.mode,loc:s,text:t}}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(w(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),n={type:"textord",mode:"text",loc:$6.range(e),text:t}}if(this.consume(),a)for(var l=0;l0&&(r.push({type:"text",data:e.slice(0,$)}),e=e.slice($));var n=t.findIndex(function(t){return e.startsWith(t.left)});if(-1===($=a(t[n].right,e,t[n].left.length)))break;var o=e.slice(0,$+t[n].right.length),s=i.test(o)?o:e.slice(t[n].left.length,$);r.push({type:"math",data:s,rawData:o,display:t[n].display}),e=e.slice($+t[n].right.length)}return""!==e&&r.push({type:"text",data:e}),r},s=function(e,t){var $=o(e,t.delimiters);if(1===$.length&&"text"===$[0].type)return null;for(var r=document.createDocumentFragment(),_=0;_<$.length;_++)if("text"===$[_].type)r.appendChild(document.createTextNode($[_].data));else{var a=document.createElement("span"),i=$[_].data;t.displayMode=$[_].display;try{t.preProcess&&(i=t.preProcess(i)),n().render(i,a,t)}catch(s){if(!(s instanceof n().ParseError))throw s;t.errorCallback("KaTeX auto-render: Failed to parse `"+$[_].data+"` with ",s),r.appendChild(document.createTextNode($[_].rawData));continue}r.appendChild(a)}return r},l=function e(t,$){for(var r=0;r.newline{display:block}.katex .base{position:relative;white-space:nowrap;width:-webkit-min-content;width:-moz-min-content;width:min-content}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;position:relative;vertical-align:bottom}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;font-size:1px;min-width:2px;vertical-align:bottom;width:2px}.katex .vbox{align-items:baseline;display:inline-flex;flex-direction:column}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{display:inline-flex;flex-direction:row}.katex .thinbox{max-width:0;width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .clap,.katex .llap,.katex .rlap{position:relative;width:0}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline{border-bottom-style:dashed;display:inline-block;width:100%}.katex .sqrt>.root{margin-left:.27777778em;margin-right:-.55555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.83333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.16666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.66666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.45666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.14666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.71428571em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.85714286em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.14285714em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.28571429em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.42857143em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.71428571em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.05714286em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.46857143em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.96285714em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.55428571em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.55555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.66666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.77777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.88888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.11111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.30444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.76444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.41666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.58333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.66666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.83333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.72833333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.07333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.34722222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.41666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.48611111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.55555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.69444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.83333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.44027778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.72777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.28935185em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.34722222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.40509259em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.46296296em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.52083333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.5787037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.69444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.83333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.20023148em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.43981481em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.24108004em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.28929605em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.33751205em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.38572806em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.43394407em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.48216008em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.57859209em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.69431051em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.83317261em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.19961427em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.20096463em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.24115756em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.28135048em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.32154341em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.36173633em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.40192926em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.48231511em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.57877814em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.69453376em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.83360129em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:block;height:inherit;position:absolute;width:100%}.katex svg path{stroke:none}.katex img{border-style:none;max-height:none;max-width:none;min-height:0;min-width:0}.katex .stretchy{display:block;overflow:hidden;position:relative;width:100%}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{overflow:hidden;position:relative;width:100%}.katex .halfarrow-left{left:0;overflow:hidden;position:absolute;width:50.2%}.katex .halfarrow-right{overflow:hidden;position:absolute;right:0;width:50.2%}.katex .brace-left{left:0;overflow:hidden;position:absolute;width:25.1%}.katex .brace-center{left:25%;overflow:hidden;position:absolute;width:50%}.katex .brace-right{overflow:hidden;position:absolute;right:0;width:25.1%}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{border:.04em solid;box-sizing:border-box}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{border-right:.049em solid;border-top:.049em solid;box-sizing:border-box;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;left:calc(50% + .3em);position:absolute;text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{padding-left:2em;text-align:left}body{counter-reset:katexEqnNo mmlEqnNo} diff --git a/templates/base.html b/templates/base.html index cba0fe3bf..273fe8ee3 100644 --- a/templates/base.html +++ b/templates/base.html @@ -21,6 +21,12 @@ {% endblock main_content %} {% include "partials/footer.html" %} + + {% if page.extra.katex and page.extra.katex == true %} + + + + {% endif %}