(window.webpackJsonp=window.webpackJsonp||[]).push([[81],{815:function(e,t,r){var n;"undefined"!=typeof self&&self,n=function(){return function(){"use strict";var e={d:function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t={};e.d(t,{default:function(){return ia}});var r=function e(t,r){this.position=void 0;var n,o="KaTeX parse error: "+t,l=r&&r.loc;if(l&&l.start<=l.end){var input=l.lexer.input;n=l.start;var h=l.end;n===input.length?o+=" at end of input: ":o+=" at position "+(n+1)+": ";var m=input.slice(n,h).replace(/[^]/g,"$&̲");o+=(n>15?"…"+input.slice(n-15,n):input.slice(0,n))+m+(h+15":">","<":"<",'"':""","'":"'"},h=/[&><"']/g,m=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},c={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(text){return String(text).replace(h,(function(e){return l[e]}))},hyphenate:function(e){return e.replace(o,"-$1").toLowerCase()},getBaseElem:m,isCharacterBox:function(e){var t=m(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"}},d={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,defs){return defs.push(e),defs}},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(s){return Math.max(0,s)},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 f(e){if(e.default)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if("string"!=typeof r)return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}var v=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||{},d)if(d.hasOwnProperty(t)){var r=d[t];this[t]=void 0!==e[t]?r.processor?r.processor(e[t]):e[t]:f(r)}}var t=e.prototype;return t.reportNonstrict=function(e,t,r){var o=this.strict;if("function"==typeof o&&(o=o(e,t,r)),o&&"ignore"!==o){if(!0===o||"error"===o)throw new n("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",r);"warn"===o?"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 '"+o+"': "+t+" ["+e+"]")}},t.useStrictBehavior=function(e,t,r){var n=this.strict;if("function"==typeof n)try{n=n(e,t,r)}catch(e){n="error"}return!(!n||"ignore"===n||!0!==n&&"error"!==n&&("warn"===n?("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 '"+n+"': "+t+" ["+e+"]"),1)))},t.isTrusted=function(e){e.url&&!e.protocol&&(e.protocol=c.protocolFromUrl(e.url));var t="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(t)},e}(),y=function(){function e(e,t,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=r}var t=e.prototype;return t.sup=function(){return x[w[this.id]]},t.sub=function(){return x[k[this.id]]},t.fracNum=function(){return x[S[this.id]]},t.fracDen=function(){return x[M[this.id]]},t.cramp=function(){return x[z[this.id]]},t.text=function(){return x[A[this.id]]},t.isTight=function(){return this.size>=2},e}(),x=[new y(0,0,!1),new y(1,0,!0),new y(2,1,!1),new y(3,1,!0),new y(4,2,!1),new y(5,2,!0),new y(6,3,!1),new y(7,3,!0)],w=[4,5,4,5,6,7,6,7],k=[5,5,5,5,7,7,7,7],S=[2,3,4,5,6,7,6,7],M=[3,3,5,5,7,7,7,7],z=[1,1,3,3,5,5,7,7],A=[0,1,2,3,2,3,2,3],T={DISPLAY:x[0],TEXT:x[2],SCRIPT:x[4],SCRIPTSCRIPT:x[6]},B=[{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]]}],C=[];function N(e){for(var i=0;i=C[i]&&e<=C[i+1])return!0;return!1}B.forEach((function(s){return s.blocks.forEach((function(b){return C.push.apply(C,b)}))}));var I=80,path={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"},R=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 c.contains(this.classes,e)},t.toNode=function(){for(var e=document.createDocumentFragment(),i=0;i=5?0:e>=3?1:2]){var r=D[t]={cssEmPerMu:H.quad[t]/18};for(var n in H)H.hasOwnProperty(n)&&(r[n]=H[n][t])}return D[t]}(this.size)),this._fontMetrics},t.getColor=function(){return this.phantom?"transparent":this.color},e}();G.BASESIZE=6;var U=G,Y={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},X={ex:!0,em:!0,mu:!0},W=function(e){return"string"!=typeof e&&(e=e.unit),e in Y||e in X||"ex"===e},_=function(e,t){var r;if(e.unit in Y)r=Y[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)r=t.fontMetrics().cssEmPerMu;else{var o;if(o=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)r=o.fontMetrics().xHeight;else{if("em"!==e.unit)throw new n("Invalid unit: '"+e.unit+"'");r=o.fontMetrics().quad}o!==t&&(r*=o.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*r,t.maxSize)},j=function(e){return+e.toFixed(4)+"em"},$=function(e){return e.filter((function(e){return e})).join(" ")},Z=function(e,t,style){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=style||{},t){t.style.isTight()&&this.classes.push("mtight");var r=t.getColor();r&&(this.style.color=r)}},K=function(e){var t=document.createElement(e);for(var style in t.className=$(this.classes),this.style)this.style.hasOwnProperty(style)&&(t.style[style]=this.style[style]);for(var r in this.attributes)this.attributes.hasOwnProperty(r)&&t.setAttribute(r,this.attributes[r]);for(var i=0;i"},Q=function(){function e(e,t,r,style){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,Z.call(this,e,r,style),this.children=t||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return c.contains(this.classes,e)},t.toNode=function(){return K.call(this,"span")},t.toMarkup=function(){return J.call(this,"span")},e}(),ee=function(){function e(e,t,r,n){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,Z.call(this,t,n),this.children=r||[],this.setAttribute("href",e)}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return c.contains(this.classes,e)},t.toNode=function(){return K.call(this,"a")},t.toMarkup=function(){return J.call(this,"a")},e}(),te=function(){function e(e,t,style){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=style}var t=e.prototype;return t.hasClass=function(e){return c.contains(this.classes,e)},t.toNode=function(){var e=document.createElement("img");for(var style in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(style)&&(e.style[style]=this.style[style]);return e},t.toMarkup=function(){var e=""+this.alt+"=r[0]&&e<=r[1])return script.name}return null}(this.text.charCodeAt(0));script&&this.classes.push(script+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=re[this.text])}var t=e.prototype;return t.hasClass=function(e){return c.contains(this.classes,e)},t.toNode=function(){var e=document.createTextNode(this.text),span=null;for(var style in this.italic>0&&((span=document.createElement("span")).style.marginRight=j(this.italic)),this.classes.length>0&&((span=span||document.createElement("span")).className=$(this.classes)),this.style)this.style.hasOwnProperty(style)&&((span=span||document.createElement("span")).style[style]=this.style[style]);return span?(span.appendChild(e),span):e},t.toMarkup=function(){var e=!1,t="0&&(r+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(style)&&(r+=c.hyphenate(style)+":"+this.style[style]+";");r&&(e=!0,t+=' style="'+c.escape(r)+'"');var n=c.escape(this.text);return e?(t+=">",t+=n,t+=""):n},e}(),ae=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 i=0;i":""},e}(),oe=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="","\\gt",!0),ue(pe,main,Me,"∈","\\in",!0),ue(pe,main,Me,"","\\@not"),ue(pe,main,Me,"⊂","\\subset",!0),ue(pe,main,Me,"⊃","\\supset",!0),ue(pe,main,Me,"⊆","\\subseteq",!0),ue(pe,main,Me,"⊇","\\supseteq",!0),ue(pe,fe,Me,"⊈","\\nsubseteq",!0),ue(pe,fe,Me,"⊉","\\nsupseteq",!0),ue(pe,main,Me,"⊨","\\models"),ue(pe,main,Me,"←","\\leftarrow",!0),ue(pe,main,Me,"≤","\\le"),ue(pe,main,Me,"≤","\\leq",!0),ue(pe,main,Me,"<","\\lt",!0),ue(pe,main,Me,"→","\\rightarrow",!0),ue(pe,main,Me,"→","\\to"),ue(pe,fe,Me,"≱","\\ngeq",!0),ue(pe,fe,Me,"≰","\\nleq",!0),ue(pe,main,ze," ","\\ "),ue(pe,main,ze," ","\\space"),ue(pe,main,ze," ","\\nobreakspace"),ue(de,main,ze," ","\\ "),ue(de,main,ze," "," "),ue(de,main,ze," ","\\space"),ue(de,main,ze," ","\\nobreakspace"),ue(pe,main,ze,null,"\\nobreak"),ue(pe,main,ze,null,"\\allowbreak"),ue(pe,main,Se,",",","),ue(pe,main,Se,";",";"),ue(pe,fe,ve,"⊼","\\barwedge",!0),ue(pe,fe,ve,"⊻","\\veebar",!0),ue(pe,main,ve,"⊙","\\odot",!0),ue(pe,main,ve,"⊕","\\oplus",!0),ue(pe,main,ve,"⊗","\\otimes",!0),ue(pe,main,Ae,"∂","\\partial",!0),ue(pe,main,ve,"⊘","\\oslash",!0),ue(pe,fe,ve,"⊚","\\circledcirc",!0),ue(pe,fe,ve,"⊡","\\boxdot",!0),ue(pe,main,ve,"△","\\bigtriangleup"),ue(pe,main,ve,"▽","\\bigtriangledown"),ue(pe,main,ve,"†","\\dagger"),ue(pe,main,ve,"⋄","\\diamond"),ue(pe,main,ve,"⋆","\\star"),ue(pe,main,ve,"◃","\\triangleleft"),ue(pe,main,ve,"▹","\\triangleright"),ue(pe,main,ke,"{","\\{"),ue(de,main,Ae,"{","\\{"),ue(de,main,Ae,"{","\\textbraceleft"),ue(pe,main,be,"}","\\}"),ue(de,main,Ae,"}","\\}"),ue(de,main,Ae,"}","\\textbraceright"),ue(pe,main,ke,"{","\\lbrace"),ue(pe,main,be,"}","\\rbrace"),ue(pe,main,ke,"[","\\lbrack",!0),ue(de,main,Ae,"[","\\lbrack",!0),ue(pe,main,be,"]","\\rbrack",!0),ue(de,main,Ae,"]","\\rbrack",!0),ue(pe,main,ke,"(","\\lparen",!0),ue(pe,main,be,")","\\rparen",!0),ue(de,main,Ae,"<","\\textless",!0),ue(de,main,Ae,">","\\textgreater",!0),ue(pe,main,ke,"⌊","\\lfloor",!0),ue(pe,main,be,"⌋","\\rfloor",!0),ue(pe,main,ke,"⌈","\\lceil",!0),ue(pe,main,be,"⌉","\\rceil",!0),ue(pe,main,Ae,"\\","\\backslash"),ue(pe,main,Ae,"∣","|"),ue(pe,main,Ae,"∣","\\vert"),ue(de,main,Ae,"|","\\textbar",!0),ue(pe,main,Ae,"∥","\\|"),ue(pe,main,Ae,"∥","\\Vert"),ue(de,main,Ae,"∥","\\textbardbl"),ue(de,main,Ae,"~","\\textasciitilde"),ue(de,main,Ae,"\\","\\textbackslash"),ue(de,main,Ae,"^","\\textasciicircum"),ue(pe,main,Me,"↑","\\uparrow",!0),ue(pe,main,Me,"⇑","\\Uparrow",!0),ue(pe,main,Me,"↓","\\downarrow",!0),ue(pe,main,Me,"⇓","\\Downarrow",!0),ue(pe,main,Me,"↕","\\updownarrow",!0),ue(pe,main,Me,"⇕","\\Updownarrow",!0),ue(pe,main,we,"∐","\\coprod"),ue(pe,main,we,"⋁","\\bigvee"),ue(pe,main,we,"⋀","\\bigwedge"),ue(pe,main,we,"⨄","\\biguplus"),ue(pe,main,we,"⋂","\\bigcap"),ue(pe,main,we,"⋃","\\bigcup"),ue(pe,main,we,"∫","\\int"),ue(pe,main,we,"∫","\\intop"),ue(pe,main,we,"∬","\\iint"),ue(pe,main,we,"∭","\\iiint"),ue(pe,main,we,"∏","\\prod"),ue(pe,main,we,"∑","\\sum"),ue(pe,main,we,"⨂","\\bigotimes"),ue(pe,main,we,"⨁","\\bigoplus"),ue(pe,main,we,"⨀","\\bigodot"),ue(pe,main,we,"∮","\\oint"),ue(pe,main,we,"∯","\\oiint"),ue(pe,main,we,"∰","\\oiiint"),ue(pe,main,we,"⨆","\\bigsqcup"),ue(pe,main,we,"∫","\\smallint"),ue(de,main,ye,"…","\\textellipsis"),ue(pe,main,ye,"…","\\mathellipsis"),ue(de,main,ye,"…","\\ldots",!0),ue(pe,main,ye,"…","\\ldots",!0),ue(pe,main,ye,"⋯","\\@cdots",!0),ue(pe,main,ye,"⋱","\\ddots",!0),ue(pe,main,Ae,"⋮","\\varvdots"),ue(pe,main,ge,"ˊ","\\acute"),ue(pe,main,ge,"ˋ","\\grave"),ue(pe,main,ge,"¨","\\ddot"),ue(pe,main,ge,"~","\\tilde"),ue(pe,main,ge,"ˉ","\\bar"),ue(pe,main,ge,"˘","\\breve"),ue(pe,main,ge,"ˇ","\\check"),ue(pe,main,ge,"^","\\hat"),ue(pe,main,ge,"⃗","\\vec"),ue(pe,main,ge,"˙","\\dot"),ue(pe,main,ge,"˚","\\mathring"),ue(pe,main,xe,"","\\@imath"),ue(pe,main,xe,"","\\@jmath"),ue(pe,main,Ae,"ı","ı"),ue(pe,main,Ae,"ȷ","ȷ"),ue(de,main,Ae,"ı","\\i",!0),ue(de,main,Ae,"ȷ","\\j",!0),ue(de,main,Ae,"ß","\\ss",!0),ue(de,main,Ae,"æ","\\ae",!0),ue(de,main,Ae,"œ","\\oe",!0),ue(de,main,Ae,"ø","\\o",!0),ue(de,main,Ae,"Æ","\\AE",!0),ue(de,main,Ae,"Œ","\\OE",!0),ue(de,main,Ae,"Ø","\\O",!0),ue(de,main,ge,"ˊ","\\'"),ue(de,main,ge,"ˋ","\\`"),ue(de,main,ge,"ˆ","\\^"),ue(de,main,ge,"˜","\\~"),ue(de,main,ge,"ˉ","\\="),ue(de,main,ge,"˘","\\u"),ue(de,main,ge,"˙","\\."),ue(de,main,ge,"¸","\\c"),ue(de,main,ge,"˚","\\r"),ue(de,main,ge,"ˇ","\\v"),ue(de,main,ge,"¨",'\\"'),ue(de,main,ge,"˝","\\H"),ue(de,main,ge,"◯","\\textcircled");var Te={"--":!0,"---":!0,"``":!0,"''":!0};ue(de,main,Ae,"–","--",!0),ue(de,main,Ae,"–","\\textendash"),ue(de,main,Ae,"—","---",!0),ue(de,main,Ae,"—","\\textemdash"),ue(de,main,Ae,"‘","`",!0),ue(de,main,Ae,"‘","\\textquoteleft"),ue(de,main,Ae,"’","'",!0),ue(de,main,Ae,"’","\\textquoteright"),ue(de,main,Ae,"“","``",!0),ue(de,main,Ae,"“","\\textquotedblleft"),ue(de,main,Ae,"”","''",!0),ue(de,main,Ae,"”","\\textquotedblright"),ue(pe,main,Ae,"°","\\degree",!0),ue(de,main,Ae,"°","\\degree"),ue(de,main,Ae,"°","\\textdegree",!0),ue(pe,main,Ae,"£","\\pounds"),ue(pe,main,Ae,"£","\\mathsterling",!0),ue(de,main,Ae,"£","\\pounds"),ue(de,main,Ae,"£","\\textsterling",!0),ue(pe,fe,Ae,"✠","\\maltese"),ue(de,fe,Ae,"✠","\\maltese");for(var Be='0123456789/@."',i=0;it&&(t=o.height),o.depth>r&&(r=o.depth),o.maxFontSize>n&&(n=o.maxFontSize)}e.height=t,e.depth=r,e.maxFontSize=n},Ze=function(e,t,r,style){var span=new Q(e,t,r,style);return $e(span),span},Ke=function(e,t,r,style){return new Q(e,t,r,style)},Je=function(e){var t=new R(e);return $e(t),t},Qe=function(e,t,r){var n="";switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}return n+"-"+("textbf"===t&&"textit"===r?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},et={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"}},tt={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},nt={fontMap:et,makeSymbol:_e,mathsym:function(e,t,r,n){return void 0===n&&(n=[]),"boldsymbol"===r.font&&We(e,"Main-Bold",t).metrics?_e(e,"Main-Bold",t,r,n.concat(["mathbf"])):"\\"===e||"main"===ce[t][e].font?_e(e,"Main-Regular",t,r,n):_e(e,"AMS-Regular",t,r,n.concat(["amsrm"]))},makeSpan:Ze,makeSvgSpan:Ke,makeLineSpan:function(e,t,r){var line=Ze([e],[],t);return line.height=Math.max(r||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),line.style.borderBottomWidth=j(line.height),line.maxFontSize=1,line},makeAnchor:function(e,t,r,n){var o=new ee(e,t,r,n);return $e(o),o},makeFragment:Je,wrapFragment:function(e,t){return e instanceof R?Ze([],[e],t):e},makeVList:function(e,t){for(var r=function(e){if("individualShift"===e.positionType){for(var t=e.children,r=[t[0]],n=-t[0].shift-t[0].elem.depth,o=n,i=1;i0&&(h.push(Ct(m,t)),m=[]),h.push(o[i]));m.length>0&&h.push(Ct(m,t)),r?((l=Ct(kt(r,t,!0))).classes=["tag"],h.push(l)):n&&h.push(n);var d=vt(["katex-html"],h);if(d.setAttribute("aria-hidden","true"),l){var f=l.children[0];f.style.height=j(d.height+d.depth),d.depth&&(f.style.verticalAlign=j(-d.depth))}return d}function Nt(e){return new R(e)}var It=function(){function e(e,t,r){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=r||[]}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=$(this.classes));for(var i=0;i0&&(e+=' class ="'+c.escape($(this.classes))+'"'),e+=">";for(var i=0;i"},t.toText=function(){return this.children.map((function(e){return e.toText()})).join("")},e}(),Rt=function(){function e(text){this.text=void 0,this.text=text}var t=e.prototype;return t.toNode=function(){return document.createTextNode(this.text)},t.toMarkup=function(){return c.escape(this.toText())},t.toText=function(){return this.text},e}(),Ot={MathNode:It,TextNode:Rt,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",j(this.width)),e},t.toMarkup=function(){return this.character?""+this.character+"":''},t.toText=function(){return this.character?this.character:" "},e}(),newDocumentFragment:Nt},Ht=function(text,e,t){return!ce[e][text]||!ce[e][text].replace||55349===text.charCodeAt(0)||Te.hasOwnProperty(text)&&t&&(t.fontFamily&&"tt"===t.fontFamily.substr(4,2)||t.font&&"tt"===t.font.substr(4,2))||(text=ce[e][text].replace),new Ot.TextNode(text)},Et=function(body){return 1===body.length?body[0]:new Ot.MathNode("mrow",body)},Lt=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 r=t.font;if(!r||"mathnormal"===r)return null;var n=e.mode;if("mathit"===r)return"italic";if("boldsymbol"===r)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===r)return"bold";if("mathbb"===r)return"double-struck";if("mathfrak"===r)return"fraktur";if("mathscr"===r||"mathcal"===r)return"script";if("mathsf"===r)return"sans-serif";if("mathtt"===r)return"monospace";var text=e.text;return c.contains(["\\imath","\\jmath"],text)?null:(ce[n][text]&&ce[n][text].replace&&(text=ce[n][text].replace),L(text,nt.fontMap[r].fontName,n)?nt.fontMap[r].variant:null)},Dt=function(e,t,r){if(1===e.length){var n=Ft(e[0],t);return r&&n instanceof It&&"mo"===n.type&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var o,l=[],i=0;i0&&(y.text=y.text.slice(0,1)+"̸"+y.text.slice(1),l.pop())}}}l.push(h),o=h}return l},Pt=function(e,t,r){return Et(Dt(e,t,r))},Ft=function(e,t){if(!e)return new Ot.MathNode("mrow");if(ct[e.type])return ct[e.type](e,t);throw new n("Got group of unknown type: '"+e.type+"'")};function Vt(e,t,r,n,o){var l,h=Dt(e,r);l=1===h.length&&h[0]instanceof It&&c.contains(["mrow","mtable"],h[0].type)?h[0]:new Ot.MathNode("mrow",h);var m=new Ot.MathNode("annotation",[new Ot.TextNode(t)]);m.setAttribute("encoding","application/x-tex");var d=new Ot.MathNode("semantics",[l,m]),f=new Ot.MathNode("math",[d]);f.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&f.setAttribute("display","block");var v=o?"katex":"katex-mathml";return nt.makeSpan([v],[f])}var Gt=function(e){return new U({style:e.displayMode?T.DISPLAY:T.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},Ut=function(e,t){if(t.displayMode){var r=["katex-display"];t.leqno&&r.push("leqno"),t.fleqn&&r.push("fleqn"),e=nt.makeSpan(r,[e])}return e},Yt={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":"="},Xt={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]},Wt=function(e,label,t,r,n){var img,o=e.height+e.depth+t+r;if(/fbox|color|angl/.test(label)){if(img=nt.makeSpan(["stretchy",label],[],n),"fbox"===label){var l=n.color&&n.getColor();l&&(img.style.borderColor=l)}}else{var h=[];/^[bx]cancel$/.test(label)&&h.push(new oe({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(label)&&h.push(new oe({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var m=new ae(h,{width:"100%",height:j(o)});img=nt.makeSvgSpan([],[m],n)}return img.height=o,img.style.height=j(o),img},_t=function(label){var e=new Ot.MathNode("mo",[new Ot.TextNode(Yt[label.replace(/^\\/,"")])]);return e.setAttribute("stretchy","true"),e},jt=function(e,t){var r=function(){var r=4e5,label=e.label.substr(1);if(c.contains(["widehat","widecheck","widetilde","utilde"],label)){var n,o,l,h="ordgroup"===(y=e.base).type?y.body.length:1;if(h>5)"widehat"===label||"widecheck"===label?(n=420,r=2364,l=.42,o=label+"4"):(n=312,r=2340,l=.34,o="tilde4");else{var m=[1,1,2,2,3,3][h];"widehat"===label||"widecheck"===label?(r=[0,1062,2364,2364,2364][m],n=[0,239,300,360,420][m],l=[0,.24,.3,.3,.36,.42][m],o=label+m):(r=[0,600,1033,2339,2340][m],n=[0,260,286,306,312][m],l=[0,.26,.286,.3,.306,.34][m],o="tilde"+m)}var path=new ie(o),d=new ae([path],{width:"100%",height:j(l),viewBox:"0 0 "+r+" "+n,preserveAspectRatio:"none"});return{span:nt.makeSvgSpan([],[d],t),minWidth:0,height:l}}var f,v,y,x=[],data=Xt[label],w=data[0],k=data[1],S=data[2],M=S/1e3,z=w.length;if(1===z)f=["hide-tail"],v=[data[3]];else if(2===z)f=["halfarrow-left","halfarrow-right"],v=["xMinYMin","xMaxYMin"];else{if(3!==z)throw new Error("Correct katexImagesData or update code here to support\n "+z+" children.");f=["brace-left","brace-center","brace-right"],v=["xMinYMin","xMidYMin","xMaxYMin"]}for(var i=0;i0&&(span.style.minWidth=j(n)),span};function $t(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Zt(e){var t=Kt(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Kt(e){return e&&("atom"===e.type||he.hasOwnProperty(e.type))?e:null}var Jt=function(e,t){var base,r,n;e&&"supsub"===e.type?(base=(r=$t(e.base,"accent")).base,e.base=base,n=function(e){if(e instanceof Q)return e;throw new Error("Expected span but got "+String(e)+".")}(Bt(e,t)),e.base=r):base=(r=$t(e,"accent")).base;var body=Bt(base,t.havingCrampedStyle()),o=0;if(r.isShifty&&c.isCharacterBox(base)){var l=c.getBaseElem(base);o=se(Bt(l,t.havingCrampedStyle())).skew}var h,m="\\c"===r.label,d=m?body.height+body.depth:Math.min(body.height,t.fontMetrics().xHeight);if(r.isStretchy)h=jt(r,t),h=nt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:body},{type:"elem",elem:h,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+j(2*o)+")",marginLeft:j(2*o)}:void 0}]},t);else{var f,v;"\\vec"===r.label?(f=nt.staticSvg("vec",t),v=nt.svgData.vec[1]):((f=se(f=nt.makeOrd({mode:r.mode,text:r.label},t,"textord"))).italic=0,v=f.width,m&&(d+=f.depth)),h=nt.makeSpan(["accent-body"],[f]);var y="\\textcircled"===r.label;y&&(h.classes.push("accent-full"),d=body.height);var x=o;y||(x-=v/2),h.style.left=j(x),"\\textcircled"===r.label&&(h.style.top=".2em"),h=nt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:body},{type:"kern",size:-d},{type:"elem",elem:h}]},t)}var w=nt.makeSpan(["mord","accent"],[h],t);return n?(n.children[0]=w,n.height=Math.max(w.height,n.height),n.classes[0]="mord",n):w},Qt=function(e,t){var r=e.isStretchy?_t(e.label):new Ot.MathNode("mo",[Ht(e.label,e.mode)]),n=new Ot.MathNode("mover",[Ft(e.base,t),r]);return n.setAttribute("accent","true"),n},er=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((function(e){return"\\"+e})).join("|"));ut({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 base=ft(t[0]),r=!er.test(e.funcName),n=!r||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:n,base:base}},htmlBuilder:Jt,mathmlBuilder:Qt}),ut({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:function(e,t){var base=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:base}},htmlBuilder:Jt,mathmlBuilder:Qt}),ut({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(e,t){var r=e.parser,n=e.funcName,base=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:base}},htmlBuilder:function(e,t){var r=Bt(e.base,t),n=jt(e,t),o="\\utilde"===e.label?.12:0,l=nt.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:r}]},t);return nt.makeSpan(["mord","accentunder"],[l],t)},mathmlBuilder:function(e,t){var r=_t(e.label),n=new Ot.MathNode("munder",[Ft(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var rr=function(e){var t=new Ot.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ut({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,r){var n=e.parser,o=e.funcName;return{type:"xArrow",mode:n.mode,label:o,body:t[0],below:r[0]}},htmlBuilder:function(e,t){var r,style=t.style,n=t.havingStyle(style.sup()),o=nt.wrapFragment(Bt(e.body,n,t),t),l="\\x"===e.label.slice(0,2)?"x":"cd";o.classes.push(l+"-arrow-pad"),e.below&&(n=t.havingStyle(style.sub()),(r=nt.wrapFragment(Bt(e.below,n,t),t)).classes.push(l+"-arrow-pad"));var h,m=jt(e,t),c=-t.fontMetrics().axisHeight+.5*m.height,d=-t.fontMetrics().axisHeight-.5*m.height-.111;if((o.depth>.25||"\\xleftequilibrium"===e.label)&&(d-=o.depth),r){var f=-t.fontMetrics().axisHeight+r.height+.5*m.height+.111;h=nt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:d},{type:"elem",elem:m,shift:c},{type:"elem",elem:r,shift:f}]},t)}else h=nt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:d},{type:"elem",elem:m,shift:c}]},t);return h.children[0].children[0].children[1].classes.push("svg-align"),nt.makeSpan(["mrel","x-arrow"],[h],t)},mathmlBuilder:function(e,t){var r,n=_t(e.label);if(n.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var o=rr(Ft(e.body,t));if(e.below){var l=rr(Ft(e.below,t));r=new Ot.MathNode("munderover",[n,l,o])}else r=new Ot.MathNode("mover",[n,o])}else if(e.below){var h=rr(Ft(e.below,t));r=new Ot.MathNode("munder",[n,h])}else r=rr(),r=new Ot.MathNode("mover",[n,r]);return r}});var nr={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},ar=function(e){return"textord"===e.type&&"@"===e.text};function ir(e,t,r){var n=nr[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var o={type:"atom",text:n,mode:"math",family:"rel"},l={type:"ordgroup",mode:"math",body:[r.callFunction("\\\\cdleft",[t[0]],[]),r.callFunction("\\Big",[o],[]),r.callFunction("\\\\cdright",[t[1]],[])]};return r.callFunction("\\\\cdparent",[l],[]);case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return r.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}ut({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler:function(e,t){var r=e.parser,n=e.funcName;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder:function(e,t){var r=t.havingStyle(t.style.sup()),label=nt.wrapFragment(Bt(e.label,r,t),t);return label.classes.push("cd-label-"+e.side),label.style.bottom=j(.8-label.depth),label.height=0,label.depth=0,label},mathmlBuilder:function(e,t){var label=new Ot.MathNode("mrow",[Ft(e.label,t)]);return(label=new Ot.MathNode("mpadded",[label])).setAttribute("width","0"),"left"===e.side&&label.setAttribute("lspace","-1width"),label.setAttribute("voffset","0.7em"),(label=new Ot.MathNode("mstyle",[label])).setAttribute("displaystyle","false"),label.setAttribute("scriptlevel","1"),label}}),ut({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 r=nt.wrapFragment(Bt(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder:function(e,t){return new Ot.MathNode("mrow",[Ft(e.fragment,t)])}}),ut({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){for(var r=e.parser,o=$t(t[0],"ordgroup").body,l="",i=0;i=1114111)throw new n("\\@char with invalid code point "+l);return code<=65535?text=String.fromCharCode(code):(code-=65536,text=String.fromCharCode(55296+(code>>10),56320+(1023&code))),{type:"textord",mode:r.mode,text:text}}});var or=function(e,t){var r=kt(e.body,t.withColor(e.color),!1);return nt.makeFragment(r)},sr=function(e,t){var r=Dt(e.body,t.withColor(e.color)),n=new Ot.MathNode("mstyle",r);return n.setAttribute("mathcolor",e.color),n};ut({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler:function(e,t){var r=e.parser,n=$t(t[0],"color-token").color,body=t[1];return{type:"color",mode:r.mode,color:n,body:gt(body)}},htmlBuilder:or,mathmlBuilder:sr}),ut({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler:function(e,t){var r=e.parser,n=e.breakOnTokenText,o=$t(t[0],"color-token").color;r.gullet.macros.set("\\current@color",o);var body=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:o,body:body}},htmlBuilder:or,mathmlBuilder:sr}),ut({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(e,t,r){var n=e.parser,o=r[0],l=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:l,size:o&&$t(o,"size").value}},htmlBuilder:function(e,t){var span=nt.makeSpan(["mspace"],[],t);return e.newLine&&(span.classes.push("newline"),e.size&&(span.style.marginTop=j(_(e.size,t)))),span},mathmlBuilder:function(e,t){var r=new Ot.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",j(_(e.size,t)))),r}});var lr={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},mr=function(e){var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new n("Expected a control sequence",e);return t},cr=function(e,t,r,n){var o=e.gullet.macros.get(r.text);null==o&&(r.noexpand=!0,o={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,o,n)};ut({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.parser,r=e.funcName;t.consumeSpaces();var o=t.fetch();if(lr[o.text])return"\\global"!==r&&"\\\\globallong"!==r||(o.text=lr[o.text]),$t(t.parseFunction(),"internal");throw new n("Invalid token after macro prefix",o)}}),ut({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,r=e.funcName,o=t.gullet.popToken(),l=o.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(l))throw new n("Expected a control sequence",o);for(var h,m=0,c=[[]];"{"!==t.gullet.future().text;)if("#"===(o=t.gullet.popToken()).text){if("{"===t.gullet.future().text){h=t.gullet.future(),c[m].push("{");break}if(o=t.gullet.popToken(),!/^[1-9]$/.test(o.text))throw new n('Invalid argument number "'+o.text+'"');if(parseInt(o.text)!==m+1)throw new n('Argument number "'+o.text+'" out of order');m++,c.push([])}else{if("EOF"===o.text)throw new n("Expected a macro definition");c[m].push(o.text)}var d=t.gullet.consumeArg().tokens;return h&&d.unshift(h),"\\edef"!==r&&"\\xdef"!==r||(d=t.gullet.expandTokens(d)).reverse(),t.gullet.macros.set(l,{tokens:d,numArgs:m,delimiters:c},r===lr[r]),{type:"internal",mode:t.mode}}}),ut({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,r=e.funcName,n=mr(t.gullet.popToken());t.gullet.consumeSpaces();var o=function(e){var t=e.gullet.popToken();return"="===t.text&&" "===(t=e.gullet.popToken()).text&&(t=e.gullet.popToken()),t}(t);return cr(t,n,o,"\\\\globallet"===r),{type:"internal",mode:t.mode}}}),ut({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,r=e.funcName,n=mr(t.gullet.popToken()),o=t.gullet.popToken(),l=t.gullet.popToken();return cr(t,n,l,"\\\\globalfuture"===r),t.gullet.pushToken(l),t.gullet.pushToken(o),{type:"internal",mode:t.mode}}});var ur=function(symbol,e,t){var r=L(ce.math[symbol]&&ce.math[symbol].replace||symbol,e,t);if(!r)throw new Error("Unsupported symbol "+symbol+" and font size "+e+".");return r},pr=function(e,t,r,n){var o=r.havingBaseStyle(t),span=nt.makeSpan(n.concat(o.sizingClasses(r)),[e],r),l=o.sizeMultiplier/r.sizeMultiplier;return span.height*=l,span.depth*=l,span.maxFontSize=o.sizeMultiplier,span},dr=function(span,e,style){var t=e.havingBaseStyle(style),r=(1-e.sizeMultiplier/t.sizeMultiplier)*e.fontMetrics().axisHeight;span.classes.push("delimcenter"),span.style.top=j(r),span.height-=r,span.depth+=r},fr=function(e,t,r,n,o,l){var h=function(e,t,r,n){return nt.makeSymbol(e,"Size"+t+"-Regular",r,n)}(e,t,o,n),span=pr(nt.makeSpan(["delimsizing","size"+t],[h],n),T.TEXT,n,l);return r&&dr(span,n,T.TEXT),span},gr=function(symbol,e,t){var r;return r="Size1-Regular"===e?"delim-size1":"delim-size4",{type:"elem",elem:nt.makeSpan(["delimsizinginner",r],[nt.makeSpan([],[nt.makeSymbol(symbol,e,t)])])}},vr=function(e,t,r){var n=O["Size4-Regular"][e.charCodeAt(0)]?O["Size4-Regular"][e.charCodeAt(0)][4]:O["Size1-Regular"][e.charCodeAt(0)][4],path=new ie("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))),o=new ae([path],{width:j(n),height:j(t),style:"width:"+j(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),span=nt.makeSvgSpan([],[o],r);return span.height=t,span.style.height=j(t),span.style.width=j(n),{type:"elem",elem:span}},yr={type:"kern",size:-.008},xr=["|","\\lvert","\\rvert","\\vert"],wr=["\\|","\\lVert","\\rVert","\\Vert"],kr=function(e,t,r,n,o,l){var h,m,d,f;h=d=f=e,m=null;var v="Size1-Regular";"\\uparrow"===e?d=f="⏐":"\\Uparrow"===e?d=f="‖":"\\downarrow"===e?h=d="⏐":"\\Downarrow"===e?h=d="‖":"\\updownarrow"===e?(h="\\uparrow",d="⏐",f="\\downarrow"):"\\Updownarrow"===e?(h="\\Uparrow",d="‖",f="\\Downarrow"):c.contains(xr,e)?d="∣":c.contains(wr,e)?d="∥":"["===e||"\\lbrack"===e?(h="⎡",d="⎢",f="⎣",v="Size4-Regular"):"]"===e||"\\rbrack"===e?(h="⎤",d="⎥",f="⎦",v="Size4-Regular"):"\\lfloor"===e||"⌊"===e?(d=h="⎢",f="⎣",v="Size4-Regular"):"\\lceil"===e||"⌈"===e?(h="⎡",d=f="⎢",v="Size4-Regular"):"\\rfloor"===e||"⌋"===e?(d=h="⎥",f="⎦",v="Size4-Regular"):"\\rceil"===e||"⌉"===e?(h="⎤",d=f="⎥",v="Size4-Regular"):"("===e||"\\lparen"===e?(h="⎛",d="⎜",f="⎝",v="Size4-Regular"):")"===e||"\\rparen"===e?(h="⎞",d="⎟",f="⎠",v="Size4-Regular"):"\\{"===e||"\\lbrace"===e?(h="⎧",m="⎨",f="⎩",d="⎪",v="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(h="⎫",m="⎬",f="⎭",d="⎪",v="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(h="⎧",f="⎩",d="⎪",v="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(h="⎫",f="⎭",d="⎪",v="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(h="⎧",f="⎭",d="⎪",v="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(h="⎫",f="⎩",d="⎪",v="Size4-Regular");var y=ur(h,v,o),x=y.height+y.depth,w=ur(d,v,o),k=w.height+w.depth,S=ur(f,v,o),M=S.height+S.depth,z=0,A=1;if(null!==m){var B=ur(m,v,o);z=B.height+B.depth,A=2}var C=x+M+z,N=C+Math.max(0,Math.ceil((t-C)/(A*k)))*A*k,I=n.fontMetrics().axisHeight;r&&(I*=n.sizeMultiplier);var R=N/2-I,O=[];if(O.push(gr(f,v,o)),O.push(yr),null===m){var H=N-x-M+.016;O.push(vr(d,H,n))}else{var E=(N-x-M-z)/2+.016;O.push(vr(d,E,n)),O.push(yr),O.push(gr(m,v,o)),O.push(yr),O.push(vr(d,E,n))}O.push(yr),O.push(gr(h,v,o));var L=n.havingBaseStyle(T.TEXT),D=nt.makeVList({positionType:"bottom",positionData:R,children:O},L);return pr(nt.makeSpan(["delimsizing","mult"],[D],L),T.TEXT,n,l)},Sr=.08,Mr=function(e,t,r,n,o){var path=function(e,t,r){t*=1e3;var path="";switch(e){case"sqrtMain":path=function(e,t){return"M95,"+(622+e+t)+"\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"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"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+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,I);break;case"sqrtSize1":path=function(e,t){return"M263,"+(601+e+t)+"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"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"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+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,I);break;case"sqrtSize2":path=function(e,t){return"M983 "+(10+e+t)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\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+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,I);break;case"sqrtSize3":path=function(e,t){return"M424,"+(2398+e+t)+"\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"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"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+e)+" "+t+"\nh400000v"+(40+e)+"h-400000z"}(t,I);break;case"sqrtSize4":path=function(e,t){return"M473,"+(2713+e+t)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"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+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"}(t,I);break;case"sqrtTall":path=function(e,t,r){return"M702 "+(e+t)+"H400000"+(40+e)+"\nH742v"+(r-54-t-e)+"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 "+t+"H400000v"+(40+e)+"H742z"}(t,I,r)}return path}(e,n,r),l=new ie(e,path),svg=new ae([l],{width:"400em",height:j(t),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return nt.makeSvgSpan(["hide-tail"],[svg],o)},zr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Ar=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Tr=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Br=[0,1.2,1.8,2.4,3],Cr=[{type:"small",style:T.SCRIPTSCRIPT},{type:"small",style:T.SCRIPT},{type:"small",style:T.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],qr=[{type:"small",style:T.SCRIPTSCRIPT},{type:"small",style:T.SCRIPT},{type:"small",style:T.TEXT},{type:"stack"}],Nr=[{type:"small",style:T.SCRIPTSCRIPT},{type:"small",style:T.SCRIPT},{type:"small",style:T.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Ir=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 new Error("Add support for delim type '"+e.type+"' here.")},Rr=function(e,t,r,n){for(var i=Math.min(2,3-n.style.size);it)return r[i]}return r[r.length-1]},Or=function(e,t,r,n,o,l){var h;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),h=c.contains(Tr,e)?Cr:c.contains(zr,e)?Nr:qr;var m=Rr(e,t,h,n);return"small"===m.type?function(e,style,t,r,n,o){var text=nt.makeSymbol(e,"Main-Regular",n,r),span=pr(text,style,r,o);return t&&dr(span,r,style),span}(e,m.style,r,n,o,l):"large"===m.type?fr(e,m.size,r,n,o,l):kr(e,t,r,n,o,l)},Hr={sqrtImage:function(e,t){var span,r,n=t.havingBaseSizing(),o=Rr("\\surd",e*n.sizeMultiplier,Nr,n),l=n.sizeMultiplier,h=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),m=0,c=0,d=0;return"small"===o.type?(e<1?l=1:e<1.4&&(l=.7),c=(1+h)/l,(span=Mr("sqrtMain",m=(1+h+Sr)/l,d=1e3+1e3*h+80,h,t)).style.minWidth="0.853em",r=.833/l):"large"===o.type?(d=1080*Br[o.size],c=(Br[o.size]+h)/l,m=(Br[o.size]+h+Sr)/l,(span=Mr("sqrtSize"+o.size,m,d,h,t)).style.minWidth="1.02em",r=1/l):(m=e+h+Sr,c=e+h,d=Math.floor(1e3*e+h)+80,(span=Mr("sqrtTall",m,d,h,t)).style.minWidth="0.742em",r=1.056),span.height=c,span.style.height=j(m),{span:span,advanceWidth:r,ruleWidth:(t.fontMetrics().sqrtRuleThickness+h)*l}},sizedDelim:function(e,t,r,o,l){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),c.contains(zr,e)||c.contains(Tr,e))return fr(e,t,!1,r,o,l);if(c.contains(Ar,e))return kr(e,Br[t],!1,r,o,l);throw new n("Illegal delimiter: '"+e+"'")},sizeToMaxHeight:Br,customSizedDelim:Or,leftRightDelim:function(e,t,r,n,o,l){var h=n.fontMetrics().axisHeight*n.sizeMultiplier,m=5/n.fontMetrics().ptPerEm,c=Math.max(t-h,r+h),d=Math.max(c/500*901,2*c-m);return Or(e,d,!0,n,o,l)}},Er={"\\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}},Lr=["(","\\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 Dr(e,t){var r=Kt(e);if(r&&c.contains(Lr,r.text))return r;throw new n(r?"Invalid delimiter '"+r.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function Pr(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ut({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 r=Dr(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Er[e.funcName].size,mclass:Er[e.funcName].mclass,delim:r.text}},htmlBuilder:function(e,t){return"."===e.delim?nt.makeSpan([e.mclass]):Hr.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass])},mathmlBuilder:function(e){var t=[];"."!==e.delim&&t.push(Ht(e.delim,e.mode));var r=new Ot.MathNode("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=j(Hr.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}}),ut({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:function(e,t){var r=e.parser.gullet.macros.get("\\current@color");if(r&&"string"!=typeof r)throw new n("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Dr(t[0],e).text,color:r}}}),ut({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:function(e,t){var r=Dr(t[0],e),n=e.parser;++n.leftrightDepth;var body=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var o=$t(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:body,left:r.text,right:o.delim,rightColor:o.color}},htmlBuilder:function(e,t){Pr(e);for(var r,n,o=kt(e.body,t,!0,["mopen","mclose"]),l=0,h=0,m=!1,i=0;i-1?"mpadded":"menclose",[Ft(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),"\\fcolorbox"===e.label){var o=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+o+"em solid "+String(e.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};ut({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler:function(e,t,r){var n=e.parser,o=e.funcName,l=$t(t[0],"color-token").color,body=t[1];return{type:"enclose",mode:n.mode,label:o,backgroundColor:l,body:body}},htmlBuilder:Fr,mathmlBuilder:Vr}),ut({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler:function(e,t,r){var n=e.parser,o=e.funcName,l=$t(t[0],"color-token").color,h=$t(t[1],"color-token").color,body=t[2];return{type:"enclose",mode:n.mode,label:o,backgroundColor:h,borderColor:l,body:body}},htmlBuilder:Fr,mathmlBuilder:Vr}),ut({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]}}}),ut({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler:function(e,t){var r=e.parser,n=e.funcName,body=t[0];return{type:"enclose",mode:r.mode,label:n,body:body}},htmlBuilder:Fr,mathmlBuilder:Vr}),ut({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 Gr={};function Ur(e){for(var t=e.type,r=e.names,n=e.props,o=e.handler,l=e.htmlBuilder,h=e.mathmlBuilder,data={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:o},i=0;i1||!f)&&body.pop(),S.length0&&(z+=.25),d.push({pos:z,isDashed:e[i]})}for(A(h[0]),r=0;r0&&(N<(H+=M)&&(N=H),H=0),e.addJot&&(N+=w),I.height=C,I.depth=N,z+=C,I.pos=z,z+=N+H,body[r]=I,A(h[r+1])}var E,L,D=z/2+t.fontMetrics().axisHeight,P=e.cols||[],F=[],V=[];if(e.tags&&e.tags.some((function(e){return e})))for(r=0;r=m)){var Q=void 0;(o>0||e.hskipBeforeAndAfter)&&0!==(Q=c.deflt(W.pregap,y))&&((E=nt.makeSpan(["arraycolsep"],[])).style.width=j(Q),F.push(E));var col=[];for(r=0;r0){for(var line=nt.makeLineSpan("hline",t,f),ne=nt.makeLineSpan("hdashline",t,f),ae=[{type:"elem",elem:body,shift:0}];d.length>0;){var ie=d.pop(),oe=ie.pos-D;ie.isDashed?ae.push({type:"elem",elem:ne,shift:oe}):ae.push({type:"elem",elem:line,shift:oe})}body=nt.makeVList({positionType:"individualShift",children:ae},t)}if(0===V.length)return nt.makeSpan(["mord"],[body],t);var se=nt.makeVList({positionType:"individualShift",children:V},t);return se=nt.makeSpan(["tag"],[se],t),nt.makeFragment([body,se])},en={c:"center ",l:"left ",r:"right "},tn=function(e,t){for(var r=[],n=new Ot.MathNode("mtd",[],["mtr-glue"]),o=new Ot.MathNode("mtd",[],["mml-eqn-num"]),i=0;i0){var v=e.cols,y="",x=!1,w=0,k=v.length;"separator"===v[0].type&&(d+="top ",w=1),"separator"===v[v.length-1].type&&(d+="bottom ",k-=1);for(var S=w;S0?"left ":"",d+=B[B.length-1].length>0?"right ":"";for(var C=1;C-1?"alignat":"align",h="split"===e.envName,m=Kr(e.parser,{cols:o,addJot:!0,autoTag:h?void 0:Zr(e.envName),emptySingleRow:!0,colSeparationType:l,maxNumCols:h?2:void 0,leqno:e.parser.settings.leqno},"display"),c=0,d={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var f="",i=0;i0&&v&&(w=1),o[y]={type:"align",align:x,pregap:w,postgap:0}}return m.colSeparationType=v?"align":"alignat",m};Ur({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(e,t){var r=(Kt(t[0])?[t[0]]:$t(t[0],"ordgroup").body).map((function(e){var t=Zt(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 n("Unknown column alignment: "+t,e)})),o={cols:r,hskipBeforeAndAfter:!0,maxNumCols:r.length};return Kr(e.parser,o,Jr(e.envName))},htmlBuilder:Qr,mathmlBuilder:tn}),Ur({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("*","")],r="c",o={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if("*"===e.envName.charAt(e.envName.length-1)){var l=e.parser;if(l.consumeSpaces(),"["===l.fetch().text){if(l.consume(),l.consumeSpaces(),r=l.fetch().text,-1==="lcr".indexOf(r))throw new n("Expected l or c or r",l.nextToken);l.consume(),l.consumeSpaces(),l.expect("]"),l.consume(),o.cols=[{type:"align",align:r}]}}var h=Kr(e.parser,o,Jr(e.envName)),m=Math.max.apply(Math,[0].concat(h.body.map((function(e){return e.length}))));return h.cols=new Array(m).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[h],left:t[0],right:t[1],rightColor:void 0}:h},htmlBuilder:Qr,mathmlBuilder:tn}),Ur({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(e){var t=Kr(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:Qr,mathmlBuilder:tn}),Ur({type:"array",names:["subarray"],props:{numArgs:1},handler:function(e,t){var r=(Kt(t[0])?[t[0]]:$t(t[0],"ordgroup").body).map((function(e){var t=Zt(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new n("Unknown column alignment: "+t,e)}));if(r.length>1)throw new n("{subarray} can contain only one column");var o={cols:r,hskipBeforeAndAfter:!1,arraystretch:.5};if((o=Kr(e.parser,o,"script")).body.length>0&&o.body[0].length>1)throw new n("{subarray} can contain only one column");return o},htmlBuilder:Qr,mathmlBuilder:tn}),Ur({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler:function(e){var t=Kr(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},Jr(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:Qr,mathmlBuilder:tn}),Ur({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:rn,htmlBuilder:Qr,mathmlBuilder:tn}),Ur({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler:function(e){c.contains(["gather","gather*"],e.envName)&&$r(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Zr(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Kr(e.parser,t,"display")},htmlBuilder:Qr,mathmlBuilder:tn}),Ur({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:rn,htmlBuilder:Qr,mathmlBuilder:tn}),Ur({type:"array",names:["equation","equation*"],props:{numArgs:0},handler:function(e){$r(e);var t={autoTag:Zr(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Kr(e.parser,t,"display")},htmlBuilder:Qr,mathmlBuilder:tn}),Ur({type:"array",names:["CD"],props:{numArgs:0},handler:function(e){return $r(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 r=e.fetch().text;if("&"!==r&&"\\\\"!==r){if("\\end"===r){0===t[t.length-1].length&&t.pop();break}throw new n("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}for(var o,l,h=[],body=[h],i=0;i-1);else{if(!("<>AV".indexOf(f)>-1))throw new n('Expected one of "<>AV=|." after @',m[d]);for(var y=0;y<2;y++){for(var x=!0,w=d+1;w=T.SCRIPT.id?style.text():T.DISPLAY:"text"===e&&style.size===T.DISPLAY.size?style=T.TEXT:"script"===e?style=T.SCRIPT:"scriptscript"===e&&(style=T.SCRIPTSCRIPT),style},pn=function(e,t){var r,style=un(e.size,t.style),n=style.fracNum(),o=style.fracDen();r=t.havingStyle(n);var l=Bt(e.numer,r,t);if(e.continued){var h=8.5/t.fontMetrics().ptPerEm,m=3.5/t.fontMetrics().ptPerEm;l.height=l.height0?3*f:7*f,x=t.fontMetrics().denom1):(d>0?(v=t.fontMetrics().num2,y=f):(v=t.fontMetrics().num3,y=3*f),x=t.fontMetrics().denom2),c){var A=t.fontMetrics().axisHeight;v-l.depth-(A+.5*d)0&&(t="."===(t=e)?null:t),t};ut({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler:function(e,t){var r,n=e.parser,o=t[4],l=t[5],h=ft(t[0]),m="atom"===h.type&&"open"===h.family?gn(h.text):null,c=ft(t[1]),d="atom"===c.type&&"close"===c.family?gn(c.text):null,f=$t(t[2],"size"),v=null;r=!!f.isBlank||(v=f.value).number>0;var y="auto",x=t[3];if("ordgroup"===x.type){if(x.body.length>0){var w=$t(x.body[0],"textord");y=fn[Number(w.text)]}}else x=$t(x,"textord"),y=fn[Number(x.text)];return{type:"genfrac",mode:n.mode,numer:o,denom:l,continued:!1,hasBarLine:r,barSize:v,leftDelim:m,rightDelim:d,size:y}},htmlBuilder:pn,mathmlBuilder:dn}),ut({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(e,t){var r=e.parser,n=(e.funcName,e.token);return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:$t(t[0],"size").value,token:n}}}),ut({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(e,t){var r=e.parser,n=(e.funcName,t[0]),o=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}($t(t[1],"infix").size),l=t[2],h=o.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:l,continued:!1,hasBarLine:h,barSize:o,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:pn,mathmlBuilder:dn});var vn=function(e,t){var r,n,style=t.style;"supsub"===e.type?(r=e.sup?Bt(e.sup,t.havingStyle(style.sup()),t):Bt(e.sub,t.havingStyle(style.sub()),t),n=$t(e.base,"horizBrace")):n=$t(e,"horizBrace");var o,body=Bt(n.base,t.havingBaseStyle(T.DISPLAY)),l=jt(n,t);if(n.isOver?(o=nt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:body},{type:"kern",size:.1},{type:"elem",elem:l}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(o=nt.makeVList({positionType:"bottom",positionData:body.depth+.1+l.height,children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:body}]},t)).children[0].children[0].children[0].classes.push("svg-align"),r){var h=nt.makeSpan(["mord",n.isOver?"mover":"munder"],[o],t);o=n.isOver?nt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:.2},{type:"elem",elem:r}]},t):nt.makeVList({positionType:"bottom",positionData:h.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:h}]},t)}return nt.makeSpan(["mord",n.isOver?"mover":"munder"],[o],t)};ut({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(e,t){var r=e.parser,n=e.funcName;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:t[0]}},htmlBuilder:vn,mathmlBuilder:function(e,t){var r=_t(e.label);return new Ot.MathNode(e.isOver?"mover":"munder",[Ft(e.base,t),r])}}),ut({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(e,t){var r=e.parser,body=t[1],n=$t(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:n})?{type:"href",mode:r.mode,href:n,body:gt(body)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:function(e,t){var r=kt(e.body,t,!1);return nt.makeAnchor(e.href,[],r,t)},mathmlBuilder:function(e,t){var r=Pt(e.body,t);return r instanceof It||(r=new It("mrow",[r])),r.setAttribute("href",e.href),r}}),ut({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(e,t){var r=e.parser,n=$t(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var o=[],i=0;i0&&(n=_(e.totalheight,t)-r);var o=0;e.width.number>0&&(o=_(e.width,t));var style={height:j(r+n)};o>0&&(style.width=j(o)),n>0&&(style.verticalAlign=j(-n));var l=new te(e.src,e.alt,style);return l.height=r,l.depth=n,l},mathmlBuilder:function(e,t){var r=new Ot.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var n=_(e.height,t),o=0;if(e.totalheight.number>0&&(o=_(e.totalheight,t)-n,r.setAttribute("valign",j(-o))),r.setAttribute("height",j(n+o)),e.width.number>0){var l=_(e.width,t);r.setAttribute("width",j(l))}return r.setAttribute("src",e.src),r}}),ut({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler:function(e,t){var r=e.parser,n=e.funcName,o=$t(t[0],"size");if(r.settings.strict){var l="m"===n[1],h="mu"===o.value.unit;l?(h||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, not "+o.value.unit+" units"),"math"!==r.mode&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):h&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:o.value}},htmlBuilder:function(e,t){return nt.makeGlue(e.dimension,t)},mathmlBuilder:function(e,t){var r=_(e.dimension,t);return new Ot.SpaceNode(r)}}),ut({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var r=e.parser,n=e.funcName,body=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:body}},htmlBuilder:function(e,t){var r;"clap"===e.alignment?(r=nt.makeSpan([],[Bt(e.body,t)]),r=nt.makeSpan(["inner"],[r],t)):r=nt.makeSpan(["inner"],[Bt(e.body,t)]);var n=nt.makeSpan(["fix"],[]),o=nt.makeSpan([e.alignment],[r,n],t),l=nt.makeSpan(["strut"]);return l.style.height=j(o.height+o.depth),o.depth&&(l.style.verticalAlign=j(-o.depth)),o.children.unshift(l),o=nt.makeSpan(["thinbox"],[o],t),nt.makeSpan(["mord","vbox"],[o],t)},mathmlBuilder:function(e,t){var r=new Ot.MathNode("mpadded",[Ft(e.body,t)]);if("rlap"!==e.alignment){var n="llap"===e.alignment?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}}),ut({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var r=e.funcName,n=e.parser,o=n.mode;n.switchMode("math");var l="\\("===r?"\\)":"$",body=n.parseExpression(!1,l);return n.expect(l),n.switchMode(o),{type:"styling",mode:n.mode,style:"text",body:body}}}),ut({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){throw new n("Mismatched "+e.funcName)}});var yn=function(e,t){switch(t.style.size){case T.DISPLAY.size:return e.display;case T.TEXT.size:return e.text;case T.SCRIPT.size:return e.script;case T.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ut({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:function(e,t){return{type:"mathchoice",mode:e.parser.mode,display:gt(t[0]),text:gt(t[1]),script:gt(t[2]),scriptscript:gt(t[3])}},htmlBuilder:function(e,t){var body=yn(e,t),r=kt(body,t,!1);return nt.makeFragment(r)},mathmlBuilder:function(e,t){var body=yn(e,t);return Pt(body,t)}});var xn=function(base,e,t,r,style,n,o){base=nt.makeSpan([],[base]);var sub,sup,l,h=t&&c.isCharacterBox(t);if(e){var m=Bt(e,r.havingStyle(style.sup()),r);sup={elem:m,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-m.depth)}}if(t){var d=Bt(t,r.havingStyle(style.sub()),r);sub={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}if(sup&&sub){var f=r.fontMetrics().bigOpSpacing5+sub.elem.height+sub.elem.depth+sub.kern+base.depth+o;l=nt.makeVList({positionType:"bottom",positionData:f,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:sub.elem,marginLeft:j(-n)},{type:"kern",size:sub.kern},{type:"elem",elem:base},{type:"kern",size:sup.kern},{type:"elem",elem:sup.elem,marginLeft:j(n)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(sub){var v=base.height-o;l=nt.makeVList({positionType:"top",positionData:v,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:sub.elem,marginLeft:j(-n)},{type:"kern",size:sub.kern},{type:"elem",elem:base}]},r)}else{if(!sup)return base;var y=base.depth+o;l=nt.makeVList({positionType:"bottom",positionData:y,children:[{type:"elem",elem:base},{type:"kern",size:sup.kern},{type:"elem",elem:sup.elem,marginLeft:j(n)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}var x=[l];if(sub&&0!==n&&!h){var w=nt.makeSpan(["mspace"],[],r);w.style.marginRight=j(n),x.unshift(w)}return nt.makeSpan(["mop","op-limits"],x,r)},wn=["\\smallint"],kn=function(e,t){var r,n,o,l=!1;"supsub"===e.type?(r=e.sup,n=e.sub,o=$t(e.base,"op"),l=!0):o=$t(e,"op");var base,style=t.style,h=!1;if(style.size===T.DISPLAY.size&&o.symbol&&!c.contains(wn,o.name)&&(h=!0),o.symbol){var m=h?"Size2-Regular":"Size1-Regular",d="";if("\\oiint"!==o.name&&"\\oiiint"!==o.name||(d=o.name.substr(1),o.name="oiint"===d?"\\iint":"\\iiint"),base=nt.makeSymbol(o.name,m,"math",t,["mop","op-symbol",h?"large-op":"small-op"]),d.length>0){var f=base.italic,v=nt.staticSvg(d+"Size"+(h?"2":"1"),t);base=nt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:base,shift:0},{type:"elem",elem:v,shift:h?.08:0}]},t),o.name="\\"+d,base.classes.unshift("mop"),base.italic=f}}else if(o.body){var y=kt(o.body,t,!0);1===y.length&&y[0]instanceof ne?(base=y[0]).classes[0]="mop":base=nt.makeSpan(["mop"],y,t)}else{for(var output=[],i=1;i0){for(var body=o.body.map((function(e){var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e})),h=kt(body,t.withFont("mathrm"),!0),i=0;i=0?m.setAttribute("height",j(o)):(m.setAttribute("height",j(o)),m.setAttribute("depth",j(-o))),m.setAttribute("voffset",j(o)),m}});var Bn=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];ut({type:"sizing",names:Bn,props:{numArgs:0,allowedInText:!0},handler:function(e,t){var r=e.breakOnTokenText,n=e.funcName,o=e.parser,body=o.parseExpression(!1,r);return{type:"sizing",mode:o.mode,size:Bn.indexOf(n)+1,body:body}},htmlBuilder:function(e,t){var r=t.havingSize(e.size);return Tn(e.body,r,t)},mathmlBuilder:function(e,t){var r=t.havingSize(e.size),n=Dt(e.body,r),o=new Ot.MathNode("mstyle",n);return o.setAttribute("mathsize",j(r.sizeMultiplier)),o}}),ut({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(e,t,r){var n=e.parser,o=!1,l=!1,h=r[0]&&$t(r[0],"ordgroup");if(h)for(var m="",i=0;ir.height+r.depth+l&&(l=(l+f-r.height-r.depth)/2);var v=img.height-r.height-l-c;r.style.paddingLeft=j(d);var body=nt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+v)},{type:"elem",elem:img},{type:"kern",size:c}]},t);if(e.index){var y=t.havingStyle(T.SCRIPTSCRIPT),x=Bt(e.index,y,t),w=.6*(body.height-body.depth),k=nt.makeVList({positionType:"shift",positionData:-w,children:[{type:"elem",elem:x}]},t),S=nt.makeSpan(["root"],[k]);return nt.makeSpan(["mord","sqrt"],[S,body],t)}return nt.makeSpan(["mord","sqrt"],[body],t)},mathmlBuilder:function(e,t){var body=e.body,r=e.index;return r?new Ot.MathNode("mroot",[Ft(body,t),Ft(r,t)]):new Ot.MathNode("msqrt",[Ft(body,t)])}});var Cn={display:T.DISPLAY,text:T.TEXT,script:T.SCRIPT,scriptscript:T.SCRIPTSCRIPT};ut({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e,t){var r=e.breakOnTokenText,n=e.funcName,o=e.parser,body=o.parseExpression(!0,r),style=n.slice(1,n.length-5);return{type:"styling",mode:o.mode,style:style,body:body}},htmlBuilder:function(e,t){var r=Cn[e.style],n=t.havingStyle(r).withFont("");return Tn(e.body,n,t)},mathmlBuilder:function(e,t){var r=Cn[e.style],n=t.havingStyle(r),o=Dt(e.body,n),l=new Ot.MathNode("mstyle",o),h={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return l.setAttribute("scriptlevel",h[0]),l.setAttribute("displaystyle",h[1]),l}});var qn=function(e,t){var base=e.base;return base?"op"===base.type?base.limits&&(t.style.size===T.DISPLAY.size||base.alwaysHandleSupSub)?kn:null:"operatorname"===base.type?base.alwaysHandleSupSub&&(t.style.size===T.DISPLAY.size||base.limits)?An:null:"accent"===base.type?c.isCharacterBox(base.base)?Jt:null:"horizBrace"===base.type&&!e.sub===base.isOver?vn:null:null};pt({type:"supsub",htmlBuilder:function(e,t){var r=qn(e,t);if(r)return r(e,t);var n,o,l,h=e.base,m=e.sup,d=e.sub,base=Bt(h,t),f=t.fontMetrics(),v=0,y=0,x=h&&c.isCharacterBox(h);if(m){var w=t.havingStyle(t.style.sup());n=Bt(m,w,t),x||(v=base.height-w.fontMetrics().supDrop*w.sizeMultiplier/t.sizeMultiplier)}if(d){var k=t.havingStyle(t.style.sub());o=Bt(d,k,t),x||(y=base.depth+k.fontMetrics().subDrop*k.sizeMultiplier/t.sizeMultiplier)}l=t.style===T.DISPLAY?f.sup1:t.style.cramped?f.sup3:f.sup2;var S,M=t.sizeMultiplier,z=j(.5/f.ptPerEm/M),A=null;if(o){var B=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(base instanceof ne||B)&&(A=j(-base.italic))}if(n&&o){v=Math.max(v,l,n.depth+.25*f.xHeight),y=Math.max(y,f.sub2);var C=4*f.defaultRuleThickness;if(v-n.depth-(o.height-y)0&&(v+=N,y-=N)}var I=[{type:"elem",elem:o,shift:y,marginRight:z,marginLeft:A},{type:"elem",elem:n,shift:-v,marginRight:z}];S=nt.makeVList({positionType:"individualShift",children:I},t)}else if(o){y=Math.max(y,f.sub1,o.height-.8*f.xHeight);var R=[{type:"elem",elem:o,marginLeft:A,marginRight:z}];S=nt.makeVList({positionType:"shift",positionData:y,children:R},t)}else{if(!n)throw new Error("supsub must have either sup or sub.");v=Math.max(v,l,n.depth+.25*f.xHeight),S=nt.makeVList({positionType:"shift",positionData:-v,children:[{type:"elem",elem:n,marginRight:z}]},t)}var O=At(base,"right")||"mord";return nt.makeSpan([O],[base,nt.makeSpan(["msupsub"],[S])],t)},mathmlBuilder:function(e,t){var r,n=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(n=!0,r=e.base.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var o,l=[Ft(e.base,t)];if(e.sub&&l.push(Ft(e.sub,t)),e.sup&&l.push(Ft(e.sup,t)),n)o=r?"mover":"munder";else if(e.sub)if(e.sup){var h=e.base;o=h&&"op"===h.type&&h.limits&&t.style===T.DISPLAY||h&&"operatorname"===h.type&&h.alwaysHandleSupSub&&(t.style===T.DISPLAY||h.limits)?"munderover":"msubsup"}else{var m=e.base;o=m&&"op"===m.type&&m.limits&&(t.style===T.DISPLAY||m.alwaysHandleSupSub)||m&&"operatorname"===m.type&&m.alwaysHandleSupSub&&(m.limits||t.style===T.DISPLAY)?"munder":"msub"}else{var base=e.base;o=base&&"op"===base.type&&base.limits&&(t.style===T.DISPLAY||base.alwaysHandleSupSub)||base&&"operatorname"===base.type&&base.alwaysHandleSupSub&&(base.limits||t.style===T.DISPLAY)?"mover":"msup"}return new Ot.MathNode(o,l)}}),pt({type:"atom",htmlBuilder:function(e,t){return nt.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder:function(e,t){var r=new Ot.MathNode("mo",[Ht(e.text,e.mode)]);if("bin"===e.family){var n=Lt(e,t);"bold-italic"===n&&r.setAttribute("mathvariant",n)}else"punct"===e.family?r.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||r.setAttribute("stretchy","false");return r}});var Nn={mi:"italic",mn:"normal",mtext:"normal"};pt({type:"mathord",htmlBuilder:function(e,t){return nt.makeOrd(e,t,"mathord")},mathmlBuilder:function(e,t){var r=new Ot.MathNode("mi",[Ht(e.text,e.mode,t)]),n=Lt(e,t)||"italic";return n!==Nn[r.type]&&r.setAttribute("mathvariant",n),r}}),pt({type:"textord",htmlBuilder:function(e,t){return nt.makeOrd(e,t,"textord")},mathmlBuilder:function(e,t){var r,text=Ht(e.text,e.mode,t),n=Lt(e,t)||"normal";return r="text"===e.mode?new Ot.MathNode("mtext",[text]):/[0-9]/.test(e.text)?new Ot.MathNode("mn",[text]):"\\prime"===e.text?new Ot.MathNode("mo",[text]):new Ot.MathNode("mi",[text]),n!==Nn[r.type]&&r.setAttribute("mathvariant",n),r}});var In={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Rn={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};pt({type:"spacing",htmlBuilder:function(e,t){if(Rn.hasOwnProperty(e.text)){var r=Rn[e.text].className||"";if("text"===e.mode){var o=nt.makeOrd(e,t,"textord");return o.classes.push(r),o}return nt.makeSpan(["mspace",r],[nt.mathsym(e.text,e.mode,t)],t)}if(In.hasOwnProperty(e.text))return nt.makeSpan(["mspace",In[e.text]],[],t);throw new n('Unknown type of space "'+e.text+'"')},mathmlBuilder:function(e,t){if(!Rn.hasOwnProperty(e.text)){if(In.hasOwnProperty(e.text))return new Ot.MathNode("mspace");throw new n('Unknown type of space "'+e.text+'"')}return new Ot.MathNode("mtext",[new Ot.TextNode(" ")])}});var On=function(){var e=new Ot.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};pt({type:"tag",mathmlBuilder:function(e,t){var table=new Ot.MathNode("mtable",[new Ot.MathNode("mtr",[On(),new Ot.MathNode("mtd",[Pt(e.body,t)]),On(),new Ot.MathNode("mtd",[Pt(e.tag,t)])])]);return table.setAttribute("width","100%"),table}});var Hn={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},En={"\\textbf":"textbf","\\textmd":"textmd"},Ln={"\\textit":"textit","\\textup":"textup"},Dn=function(e,t){var r=e.font;return r?Hn[r]?t.withTextFontFamily(Hn[r]):En[r]?t.withTextFontWeight(En[r]):t.withTextFontShape(Ln[r]):t};ut({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 r=e.parser,n=e.funcName,body=t[0];return{type:"text",mode:r.mode,body:gt(body),font:n}},htmlBuilder:function(e,t){var r=Dn(e,t),n=kt(e.body,r,!0);return nt.makeSpan(["mord","text"],n,r)},mathmlBuilder:function(e,t){var r=Dn(e,t);return Pt(e.body,r)}}),ut({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 r=Bt(e.body,t),line=nt.makeLineSpan("underline-line",t),n=t.fontMetrics().defaultRuleThickness,o=nt.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:n},{type:"elem",elem:line},{type:"kern",size:3*n},{type:"elem",elem:r}]},t);return nt.makeSpan(["mord","underline"],[o],t)},mathmlBuilder:function(e,t){var r=new Ot.MathNode("mo",[new Ot.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new Ot.MathNode("munder",[Ft(e.body,t),r]);return n.setAttribute("accentunder","true"),n}}),ut({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 body=Bt(e.body,t),r=t.fontMetrics().axisHeight,n=.5*(body.height-r-(body.depth+r));return nt.makeVList({positionType:"shift",positionData:n,children:[{type:"elem",elem:body}]},t)},mathmlBuilder:function(e,t){return new Ot.MathNode("mpadded",[Ft(e.body,t)],["vcenter"])}}),ut({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(e,t,r){throw new n("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(e,t){for(var text=Pn(e),body=[],r=t.havingStyle(t.style.text()),i=0;i0;)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,r){if(void 0===r&&(r=!1),r){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var n=this.undefStack[this.undefStack.length-1];n&&!n.hasOwnProperty(e)&&(n[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t},e}(),Yn=Yr;Xr("\\noexpand",(function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}})),Xr("\\expandafter",(function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}})),Xr("\\@firstoftwo",(function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}})),Xr("\\@secondoftwo",(function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}})),Xr("\\@ifnextchar",(function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return 1===t[0].length&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),Xr("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Xr("\\TextOrMath",(function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));var Xn={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};Xr("\\char",(function(e){var base,t=e.popToken(),r="";if("'"===t.text)base=8,t=e.popToken();else if('"'===t.text)base=16,t=e.popToken();else if("`"===t.text)if("\\"===(t=e.popToken()).text[0])r=t.text.charCodeAt(1);else{if("EOF"===t.text)throw new n("\\char` missing argument");r=t.text.charCodeAt(0)}else base=10;if(base){if(null==(r=Xn[t.text])||r>=base)throw new n("Invalid base-"+base+" digit "+t.text);for(var o;null!=(o=Xn[e.future().text])&&o":"\\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"};Xr("\\dots",(function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in _n?t=_n[r]:("\\not"===r.substr(0,4)||r in ce.math&&c.contains(["bin","rel"],ce.math[r].group))&&(t="\\dotsb"),t}));var jn={")":!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};Xr("\\dotso",(function(e){return e.future().text in jn?"\\ldots\\,":"\\ldots"})),Xr("\\dotsc",(function(e){var t=e.future().text;return t in jn&&","!==t?"\\ldots\\,":"\\ldots"})),Xr("\\cdots",(function(e){return e.future().text in jn?"\\@cdots\\,":"\\@cdots"})),Xr("\\dotsb","\\cdots"),Xr("\\dotsm","\\cdots"),Xr("\\dotsi","\\!\\cdots"),Xr("\\dotsx","\\ldots\\,"),Xr("\\DOTSI","\\relax"),Xr("\\DOTSB","\\relax"),Xr("\\DOTSX","\\relax"),Xr("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Xr("\\,","\\tmspace+{3mu}{.1667em}"),Xr("\\thinspace","\\,"),Xr("\\>","\\mskip{4mu}"),Xr("\\:","\\tmspace+{4mu}{.2222em}"),Xr("\\medspace","\\:"),Xr("\\;","\\tmspace+{5mu}{.2777em}"),Xr("\\thickspace","\\;"),Xr("\\!","\\tmspace-{3mu}{.1667em}"),Xr("\\negthinspace","\\!"),Xr("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Xr("\\negthickspace","\\tmspace-{5mu}{.277em}"),Xr("\\enspace","\\kern.5em "),Xr("\\enskip","\\hskip.5em\\relax"),Xr("\\quad","\\hskip1em\\relax"),Xr("\\qquad","\\hskip2em\\relax"),Xr("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Xr("\\tag@paren","\\tag@literal{({#1})}"),Xr("\\tag@literal",(function(e){if(e.macros.get("\\df@tag"))throw new n("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),Xr("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Xr("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Xr("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Xr("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Xr("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Xr("\\newline","\\\\\\relax"),Xr("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var $n=j(O["Main-Regular"]["T".charCodeAt(0)][1]-.7*O["Main-Regular"]["A".charCodeAt(0)][1]);Xr("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+$n+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),Xr("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+$n+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),Xr("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Xr("\\@hspace","\\hskip #1\\relax"),Xr("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Xr("\\ordinarycolon",":"),Xr("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Xr("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Xr("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Xr("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Xr("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Xr("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Xr("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Xr("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Xr("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Xr("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Xr("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Xr("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Xr("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Xr("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Xr("∷","\\dblcolon"),Xr("∹","\\eqcolon"),Xr("≔","\\coloneqq"),Xr("≕","\\eqqcolon"),Xr("⩴","\\Coloneqq"),Xr("\\ratio","\\vcentcolon"),Xr("\\coloncolon","\\dblcolon"),Xr("\\colonequals","\\coloneqq"),Xr("\\coloncolonequals","\\Coloneqq"),Xr("\\equalscolon","\\eqqcolon"),Xr("\\equalscoloncolon","\\Eqqcolon"),Xr("\\colonminus","\\coloneq"),Xr("\\coloncolonminus","\\Coloneq"),Xr("\\minuscolon","\\eqcolon"),Xr("\\minuscoloncolon","\\Eqcolon"),Xr("\\coloncolonapprox","\\Colonapprox"),Xr("\\coloncolonsim","\\Colonsim"),Xr("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Xr("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Xr("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Xr("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Xr("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),Xr("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Xr("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Xr("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),Xr("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),Xr("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),Xr("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),Xr("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),Xr("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),Xr("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),Xr("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),Xr("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),Xr("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),Xr("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),Xr("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),Xr("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),Xr("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),Xr("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),Xr("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),Xr("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),Xr("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),Xr("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),Xr("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),Xr("\\imath","\\html@mathml{\\@imath}{ı}"),Xr("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),Xr("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),Xr("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),Xr("⟦","\\llbracket"),Xr("⟧","\\rrbracket"),Xr("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),Xr("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),Xr("⦃","\\lBrace"),Xr("⦄","\\rBrace"),Xr("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),Xr("⦵","\\minuso"),Xr("\\darr","\\downarrow"),Xr("\\dArr","\\Downarrow"),Xr("\\Darr","\\Downarrow"),Xr("\\lang","\\langle"),Xr("\\rang","\\rangle"),Xr("\\uarr","\\uparrow"),Xr("\\uArr","\\Uparrow"),Xr("\\Uarr","\\Uparrow"),Xr("\\N","\\mathbb{N}"),Xr("\\R","\\mathbb{R}"),Xr("\\Z","\\mathbb{Z}"),Xr("\\alef","\\aleph"),Xr("\\alefsym","\\aleph"),Xr("\\Alpha","\\mathrm{A}"),Xr("\\Beta","\\mathrm{B}"),Xr("\\bull","\\bullet"),Xr("\\Chi","\\mathrm{X}"),Xr("\\clubs","\\clubsuit"),Xr("\\cnums","\\mathbb{C}"),Xr("\\Complex","\\mathbb{C}"),Xr("\\Dagger","\\ddagger"),Xr("\\diamonds","\\diamondsuit"),Xr("\\empty","\\emptyset"),Xr("\\Epsilon","\\mathrm{E}"),Xr("\\Eta","\\mathrm{H}"),Xr("\\exist","\\exists"),Xr("\\harr","\\leftrightarrow"),Xr("\\hArr","\\Leftrightarrow"),Xr("\\Harr","\\Leftrightarrow"),Xr("\\hearts","\\heartsuit"),Xr("\\image","\\Im"),Xr("\\infin","\\infty"),Xr("\\Iota","\\mathrm{I}"),Xr("\\isin","\\in"),Xr("\\Kappa","\\mathrm{K}"),Xr("\\larr","\\leftarrow"),Xr("\\lArr","\\Leftarrow"),Xr("\\Larr","\\Leftarrow"),Xr("\\lrarr","\\leftrightarrow"),Xr("\\lrArr","\\Leftrightarrow"),Xr("\\Lrarr","\\Leftrightarrow"),Xr("\\Mu","\\mathrm{M}"),Xr("\\natnums","\\mathbb{N}"),Xr("\\Nu","\\mathrm{N}"),Xr("\\Omicron","\\mathrm{O}"),Xr("\\plusmn","\\pm"),Xr("\\rarr","\\rightarrow"),Xr("\\rArr","\\Rightarrow"),Xr("\\Rarr","\\Rightarrow"),Xr("\\real","\\Re"),Xr("\\reals","\\mathbb{R}"),Xr("\\Reals","\\mathbb{R}"),Xr("\\Rho","\\mathrm{P}"),Xr("\\sdot","\\cdot"),Xr("\\sect","\\S"),Xr("\\spades","\\spadesuit"),Xr("\\sub","\\subset"),Xr("\\sube","\\subseteq"),Xr("\\supe","\\supseteq"),Xr("\\Tau","\\mathrm{T}"),Xr("\\thetasym","\\vartheta"),Xr("\\weierp","\\wp"),Xr("\\Zeta","\\mathrm{Z}"),Xr("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Xr("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Xr("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Xr("\\bra","\\mathinner{\\langle{#1}|}"),Xr("\\ket","\\mathinner{|{#1}\\rangle}"),Xr("\\braket","\\mathinner{\\langle{#1}\\rangle}"),Xr("\\Bra","\\left\\langle#1\\right|"),Xr("\\Ket","\\left|#1\\right\\rangle"),Xr("\\angln","{\\angl n}"),Xr("\\blue","\\textcolor{##6495ed}{#1}"),Xr("\\orange","\\textcolor{##ffa500}{#1}"),Xr("\\pink","\\textcolor{##ff00af}{#1}"),Xr("\\red","\\textcolor{##df0030}{#1}"),Xr("\\green","\\textcolor{##28ae7b}{#1}"),Xr("\\gray","\\textcolor{gray}{#1}"),Xr("\\purple","\\textcolor{##9d38bd}{#1}"),Xr("\\blueA","\\textcolor{##ccfaff}{#1}"),Xr("\\blueB","\\textcolor{##80f6ff}{#1}"),Xr("\\blueC","\\textcolor{##63d9ea}{#1}"),Xr("\\blueD","\\textcolor{##11accd}{#1}"),Xr("\\blueE","\\textcolor{##0c7f99}{#1}"),Xr("\\tealA","\\textcolor{##94fff5}{#1}"),Xr("\\tealB","\\textcolor{##26edd5}{#1}"),Xr("\\tealC","\\textcolor{##01d1c1}{#1}"),Xr("\\tealD","\\textcolor{##01a995}{#1}"),Xr("\\tealE","\\textcolor{##208170}{#1}"),Xr("\\greenA","\\textcolor{##b6ffb0}{#1}"),Xr("\\greenB","\\textcolor{##8af281}{#1}"),Xr("\\greenC","\\textcolor{##74cf70}{#1}"),Xr("\\greenD","\\textcolor{##1fab54}{#1}"),Xr("\\greenE","\\textcolor{##0d923f}{#1}"),Xr("\\goldA","\\textcolor{##ffd0a9}{#1}"),Xr("\\goldB","\\textcolor{##ffbb71}{#1}"),Xr("\\goldC","\\textcolor{##ff9c39}{#1}"),Xr("\\goldD","\\textcolor{##e07d10}{#1}"),Xr("\\goldE","\\textcolor{##a75a05}{#1}"),Xr("\\redA","\\textcolor{##fca9a9}{#1}"),Xr("\\redB","\\textcolor{##ff8482}{#1}"),Xr("\\redC","\\textcolor{##f9685d}{#1}"),Xr("\\redD","\\textcolor{##e84d39}{#1}"),Xr("\\redE","\\textcolor{##bc2612}{#1}"),Xr("\\maroonA","\\textcolor{##ffbde0}{#1}"),Xr("\\maroonB","\\textcolor{##ff92c6}{#1}"),Xr("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Xr("\\maroonD","\\textcolor{##ca337c}{#1}"),Xr("\\maroonE","\\textcolor{##9e034e}{#1}"),Xr("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Xr("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Xr("\\purpleC","\\textcolor{##aa87ff}{#1}"),Xr("\\purpleD","\\textcolor{##7854ab}{#1}"),Xr("\\purpleE","\\textcolor{##543b78}{#1}"),Xr("\\mintA","\\textcolor{##f5f9e8}{#1}"),Xr("\\mintB","\\textcolor{##edf2df}{#1}"),Xr("\\mintC","\\textcolor{##e0e5cc}{#1}"),Xr("\\grayA","\\textcolor{##f6f7f7}{#1}"),Xr("\\grayB","\\textcolor{##f0f1f2}{#1}"),Xr("\\grayC","\\textcolor{##e3e5e6}{#1}"),Xr("\\grayD","\\textcolor{##d6d8da}{#1}"),Xr("\\grayE","\\textcolor{##babec2}{#1}"),Xr("\\grayF","\\textcolor{##888d93}{#1}"),Xr("\\grayG","\\textcolor{##626569}{#1}"),Xr("\\grayH","\\textcolor{##3b3e40}{#1}"),Xr("\\grayI","\\textcolor{##21242c}{#1}"),Xr("\\kaBlue","\\textcolor{##314453}{#1}"),Xr("\\kaGreen","\\textcolor{##71B307}{#1}");var Zn={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Kn=function(){function e(input,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=e,this.expansionCount=0,this.feed(input),this.macros=new Un(Yn,e.macros),this.mode=t,this.stack=[]}var t=e.prototype;return t.feed=function(input){this.lexer=new Gn(input,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,n;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken();var o=this.consumeArg(["]"]);n=o.tokens,r=o.end}else{var l=this.consumeArg();n=l.tokens,t=l.start,r=l.end}return this.pushToken(new _r("EOF",r.loc)),this.pushTokens(n),t.range(r,"")},t.consumeSpaces=function(){for(;" "===this.future().text;)this.stack.pop()},t.consumeArg=function(e){var t=[],r=e&&e.length>0;r||this.consumeSpaces();var o,l=this.future(),h=0,m=0;do{if(o=this.popToken(),t.push(o),"{"===o.text)++h;else if("}"===o.text){if(-1==--h)throw new n("Extra }",o)}else if("EOF"===o.text)throw new n("Unexpected end of input in a macro argument, expected '"+(e&&r?e[m]:"}")+"'",o);if(e&&r)if((0===h||1===h&&"{"===e[m])&&o.text===e[m]){if(++m===e.length){t.splice(-m,m);break}}else m=0}while(0!==h||r);return"{"===l.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:l,end:o}},t.consumeArgs=function(e,t){if(t){if(t.length!==e+1)throw new n("The length of delimiters doesn't match the number of args!");for(var r=t[0],i=0;ithis.settings.maxExpand)throw new n("Too many expansions: infinite loop or need to increase maxExpand setting");var l=o.tokens,h=this.consumeArgs(o.numArgs,o.delimiters);if(o.numArgs)for(var i=(l=l.slice()).length-1;i>=0;--i){var m=l[i];if("#"===m.text){if(0===i)throw new n("Incomplete placeholder at end of macro body",m);if("#"===(m=l[--i]).text)l.splice(i+1,1);else{if(!/^[1-9]$/.test(m.text))throw new n("Not a valid argument number",m);var c;(c=l).splice.apply(c,[i,2].concat(h[+m.text-1]))}}}return this.pushTokens(l),l},t.expandAfterFuture=function(){return this.expandOnce(),this.future()},t.expandNextToken=function(){for(;;){var e=this.expandOnce();if(e instanceof _r)return e.treatAsRelax&&(e.text="\\relax"),this.stack.pop()}throw new Error},t.expandMacro=function(e){return this.macros.has(e)?this.expandTokens([new _r(e)]):void 0},t.expandTokens=function(e){var output=[],t=this.stack.length;for(this.pushTokens(e);this.stack.length>t;){var r=this.expandOnce(!0);r instanceof _r&&(r.treatAsRelax&&(r.noexpand=!1,r.treatAsRelax=!1),output.push(this.stack.pop()))}return output},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 r=this.lexer.catcodes[e];if(null!=r&&13!==r)return}var n="function"==typeof t?t(this):t;if("string"==typeof n){var o=0;if(-1!==n.indexOf("#"))for(var l=n.replace(/##/g,"");-1!==l.indexOf("#"+(o+1));)++o;for(var h=new Gn(n,this.settings),m=[],c=h.lex();"EOF"!==c.text;)m.push(c),c=h.lex();return m.reverse(),{tokens:m,numArgs:o}}return n},t.isDefined=function(e){return this.macros.has(e)||Fn.hasOwnProperty(e)||ce.math.hasOwnProperty(e)||ce.text.hasOwnProperty(e)||Zn.hasOwnProperty(e)},t.isExpandable=function(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:Fn.hasOwnProperty(e)&&!Fn[e].primitive},e}(),Jn={"́":{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"}},Qn={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","ḉ":"ḉ","č":"č","ĉ":"ĉ","ċ":"ċ","ç":"ç","ď":"ď","ḋ":"ḋ","ḑ":"ḑ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ḝ":"ḝ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ȩ":"ȩ","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ģ":"ģ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","ḩ":"ḩ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ķ":"ķ","ĺ":"ĺ","ľ":"ľ","ļ":"ļ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ņ":"ņ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ŗ":"ŗ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ş":"ş","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ţ":"ţ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Ḉ":"Ḉ","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ç":"Ç","Ď":"Ď","Ḋ":"Ḋ","Ḑ":"Ḑ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ḝ":"Ḝ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ȩ":"Ȩ","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ģ":"Ģ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Ḩ":"Ḩ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ķ":"Ķ","Ĺ":"Ĺ","Ľ":"Ľ","Ļ":"Ļ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ņ":"Ņ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ŗ":"Ŗ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ş":"Ş","Ť":"Ť","Ṫ":"Ṫ","Ţ":"Ţ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"},ea=function(){function e(input,e){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 Kn(input,e,this.mode),this.settings=e,this.leftrightDepth=0}var t=e.prototype;return t.expect=function(text,e){if(void 0===e&&(e=!0),this.fetch().text!==text)throw new n("Expected '"+text+"', got '"+this.fetch().text+"'",this.fetch());e&&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 _r("}")),this.gullet.pushTokens(e);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,r},t.parseExpression=function(t,r){for(var body=[];;){"math"===this.mode&&this.consumeSpaces();var n=this.fetch();if(-1!==e.endOfExpression.indexOf(n.text))break;if(r&&n.text===r)break;if(t&&Fn[n.text]&&Fn[n.text].infix)break;var o=this.parseAtom(r);if(!o)break;"internal"!==o.type&&body.push(o)}return"text"===this.mode&&this.formLigatures(body),this.handleInfixNodes(body)},t.handleInfixNodes=function(body){for(var e,t=-1,i=0;i=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+text[0]+'" used in math mode',e);var s,l=ce[this.mode][text].group,h=Wr.range(e);if(le.hasOwnProperty(l)){var m=l;s={type:"atom",mode:this.mode,family:m,loc:h,text:text}}else s={type:l,mode:this.mode,loc:h,text:text};symbol=s}else{if(!(text.charCodeAt(0)>=128))return null;this.settings.strict&&(N(text.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+text[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+text[0]+'" ('+text.charCodeAt(0)+")",e)),symbol={type:"textord",mode:"text",loc:Wr.range(e),text:text}}if(this.consume(),o)for(var i=0;i