0?3*d:7*d,h=t.fontMetrics().denom1):(u>0?(f=t.fontMetrics().num2,p=d):(f=t.fontMetrics().num3,p=3*d),h=t.fontMetrics().denom2),l){var x=t.fontMetrics().axisHeight;f-i.depth-(x+.5*u)0&&(t="."===(t=e)?null:t),t};at({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(e,t){var n=e.parser,r=t[4],o=t[5],a=Ge(t[0],"atom");a&&(a=Ke(t[0],"open"));var i=a?Hn(a.text):null,c=Ge(t[1],"atom");c&&(c=Ke(t[1],"close"));var s,l=c?Hn(c.text):null,u=Ye(t[2],"size"),d=null;s=!!u.isBlank||(d=u.value).number>0;var f="auto",p=Ge(t[3],"ordgroup");if(p){if(p.body.length>0){var h=Ye(p.body[0],"textord");f=Rn[Number(h.text)]}}else p=Ye(t[3],"textord"),f=Rn[Number(p.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:o,continued:!1,hasBarLine:s,barSize:d,leftDelim:i,rightDelim:l,size:f}},htmlBuilder:Nn,mathmlBuilder:Ln}),at({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(e,t){var n=e.parser,r=(e.funcName,e.token);return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:Ye(t[0],"size").value,token:r}}}),at({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(e,t){var n=e.parser,r=(e.funcName,t[0]),o=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(Ye(t[1],"infix").size),a=t[2],i=o.number>0;return{type:"genfrac",mode:n.mode,numer:r,denom:a,continued:!1,hasBarLine:i,barSize:o,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Nn,mathmlBuilder:Ln});var Vn=function(e,t){var n,r,o=t.style,a=Ge(e,"supsub");a?(n=a.sup?yt(a.sup,t.havingStyle(o.sup()),t):yt(a.sub,t.havingStyle(o.sub()),t),r=Ye(a.base,"horizBrace")):r=Ye(e,"horizBrace");var i,c=yt(r.base,t.havingBaseStyle(E.DISPLAY)),s=Lt(r,t);if(r.isOver?(i=We.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:c},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(i=We.makeVList({positionType:"bottom",positionData:c.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:c}]},t)).children[0].children[0].children[0].classes.push("svg-align"),n){var l=We.makeSpan(["mord",r.isOver?"mover":"munder"],[i],t);i=r.isOver?We.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]},t):We.makeVList({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return We.makeSpan(["mord",r.isOver?"mover":"munder"],[i],t)};at({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:Vn,mathmlBuilder:function(e,t){var n=Nt(e.label);return new St.MathNode(e.isOver?"mover":"munder",[zt(e.base,t),n])}}),at({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=t[1],o=Ye(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:n.mode,href:o,body:ct(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:function(e,t){var n=pt(e.body,t,!1);return We.makeAnchor(e.href,[],n,t)},mathmlBuilder:function(e,t){var n=Tt(e.body,t);return n instanceof _t||(n=new _t("mrow",[n])),n.setAttribute("href",e.href),n}}),at({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=Ye(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var o=[],a=0;a0&&(r=De(e.totalheight,t)-n,r=Number(r.toFixed(2)));var o=0;e.width.number>0&&(o=De(e.width,t));var a={height:n+r+"em"};o>0&&(a.width=o+"em"),r>0&&(a.verticalAlign=-r+"em");var i=new H(e.src,e.alt,a);return i.height=n,i.depth=r,i},mathmlBuilder:function(e,t){var n=new St.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=De(e.height,t),o=0;if(e.totalheight.number>0&&(o=(o=De(e.totalheight,t)-r).toFixed(2),n.setAttribute("valign","-"+o+"em")),n.setAttribute("height",r+o+"em"),e.width.number>0){var a=De(e.width,t);n.setAttribute("width",a+"em")}return n.setAttribute("src",e.src),n}}),at({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,o=Ye(t[0],"size");if(n.settings.strict){var a="m"===r[1],i="mu"===o.value.unit;a?(i||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, not "+o.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):i&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:o.value}},htmlBuilder:function(e,t){return We.makeGlue(e.dimension,t)},mathmlBuilder:function(e,t){var n=De(e.dimension,t);return new St.SpaceNode(n)}}),at({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,o=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:o}},htmlBuilder:function(e,t){var n;"clap"===e.alignment?(n=We.makeSpan([],[yt(e.body,t)]),n=We.makeSpan(["inner"],[n],t)):n=We.makeSpan(["inner"],[yt(e.body,t)]);var r=We.makeSpan(["fix"],[]),o=We.makeSpan([e.alignment],[n,r],t),a=We.makeSpan(["strut"]);return a.style.height=o.height+o.depth+"em",a.style.verticalAlign=-o.depth+"em",o.children.unshift(a),o=We.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o}]},t),We.makeSpan(["mord"],[o],t)},mathmlBuilder:function(e,t){var n=new St.MathNode("mpadded",[zt(e.body,t)]);if("rlap"!==e.alignment){var r="llap"===e.alignment?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}}),at({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var n=e.funcName,r=e.parser,o=r.mode;r.switchMode("math");var a="\\("===n?"\\)":"$",i=r.parseExpression(!1,a);return r.expect(a),r.switchMode(o),{type:"styling",mode:r.mode,style:"text",body:i}}}),at({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){throw new i("Mismatched "+e.funcName)}});var Fn=function(e,t){switch(t.style.size){case E.DISPLAY.size:return e.display;case E.TEXT.size:return e.text;case E.SCRIPT.size:return e.script;case E.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};at({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(e,t){return{type:"mathchoice",mode:e.parser.mode,display:ct(t[0]),text:ct(t[1]),script:ct(t[2]),scriptscript:ct(t[3])}},htmlBuilder:function(e,t){var n=Fn(e,t),r=pt(n,t,!1);return We.makeFragment(r)},mathmlBuilder:function(e,t){var n=Fn(e,t);return Tt(n,t)}});var qn=function(e,t,n,r,o,a,i){var c,s,l;if(e=We.makeSpan([],[e]),t){var u=yt(t,r.havingStyle(o.sup()),r);s={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=yt(n,r.havingStyle(o.sub()),r);c={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}if(s&&c){var f=r.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+i;l=We.makeVList({positionType:"bottom",positionData:f,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:-a+"em"},{type:"kern",size:c.kern},{type:"elem",elem:e},{type:"kern",size:s.kern},{type:"elem",elem:s.elem,marginLeft:a+"em"},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(c){var p=e.height-i;l=We.makeVList({positionType:"top",positionData:p,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:-a+"em"},{type:"kern",size:c.kern},{type:"elem",elem:e}]},r)}else{if(!s)return e;var h=e.depth+i;l=We.makeVList({positionType:"bottom",positionData:h,children:[{type:"elem",elem:e},{type:"kern",size:s.kern},{type:"elem",elem:s.elem,marginLeft:a+"em"},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}return We.makeSpan(["mop","op-limits"],[l],r)},Un=["\\smallint"],Wn=function(e,t){var n,r,o,a=!1,i=Ge(e,"supsub");i?(n=i.sup,r=i.sub,o=Ye(i.base,"op"),a=!0):o=Ye(e,"op");var c,s=t.style,l=!1;if(s.size===E.DISPLAY.size&&o.symbol&&!d(Un,o.name)&&(l=!0),o.symbol){var u=l?"Size2-Regular":"Size1-Regular",f="";if("\\oiint"!==o.name&&"\\oiiint"!==o.name||(f=o.name.substr(1),o.name="oiint"===f?"\\iint":"\\iiint"),c=We.makeSymbol(o.name,u,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),f.length>0){var p=c.italic,h=We.staticSvg(f+"Size"+(l?"2":"1"),t);c=We.makeVList({positionType:"individualShift",children:[{type:"elem",elem:c,shift:0},{type:"elem",elem:h,shift:l?.08:0}]},t),o.name="\\"+f,c.classes.unshift("mop"),c.italic=p}}else if(o.body){var m=pt(o.body,t,!0);1===m.length&&m[0]instanceof B?(c=m[0]).classes[0]="mop":c=We.makeSpan(["mop"],We.tryCombineChars(m),t)}else{for(var g=[],v=1;v0){for(var s=o.body.map((function(e){var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e})),l=pt(s,t.withFont("mathrm"),!0),u=0;u=0?c.setAttribute("height","+"+o+"em"):(c.setAttribute("height",o+"em"),c.setAttribute("depth","+"+-o+"em")),c.setAttribute("voffset",o+"em"),c}});var Jn=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];at({type:"sizing",names:Jn,props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.breakOnTokenText,r=e.funcName,o=e.parser,a=o.parseExpression(!1,n);return{type:"sizing",mode:o.mode,size:Jn.indexOf(r)+1,body:a}},htmlBuilder:function(e,t){var n=t.havingSize(e.size);return Xn(e.body,n,t)},mathmlBuilder:function(e,t){var n=t.havingSize(e.size),r=Mt(e.body,n),o=new St.MathNode("mstyle",r);return o.setAttribute("mathsize",n.sizeMultiplier+"em"),o}}),at({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(e,t,n){var r=e.parser,o=!1,a=!1,i=n[0]&&Ye(n[0],"ordgroup");if(i)for(var c="",s=0;sn.height+n.depth+a&&(a=(a+u-n.height-n.depth)/2);var d=c.height-n.height-a-s;n.style.paddingLeft=l+"em";var f=We.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+d)},{type:"elem",elem:c},{type:"kern",size:s}]},t);if(e.index){var p=t.havingStyle(E.SCRIPTSCRIPT),h=yt(e.index,p,t),m=.6*(f.height-f.depth),g=We.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:h}]},t),v=We.makeSpan(["root"],[g]);return We.makeSpan(["mord","sqrt"],[v,f],t)}return We.makeSpan(["mord","sqrt"],[f],t)},mathmlBuilder:function(e,t){var n=e.body,r=e.index;return r?new St.MathNode("mroot",[zt(n,t),zt(r,t)]):new St.MathNode("msqrt",[zt(n,t)])}});var Zn={display:E.DISPLAY,text:E.TEXT,script:E.SCRIPT,scriptscript:E.SCRIPTSCRIPT};at({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.breakOnTokenText,r=e.funcName,o=e.parser,a=o.parseExpression(!0,n),i=r.slice(1,r.length-5);return{type:"styling",mode:o.mode,style:i,body:a}},htmlBuilder:function(e,t){var n=Zn[e.style],r=t.havingStyle(n).withFont("");return Xn(e.body,r,t)},mathmlBuilder:function(e,t){var n=Zn[e.style],r=t.havingStyle(n),o=Mt(e.body,r),a=new St.MathNode("mstyle",o),i={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return a.setAttribute("scriptlevel",i[0]),a.setAttribute("displaystyle",i[1]),a}}),it({type:"supsub",htmlBuilder:function(e,t){var n=function(e,t){var n=e.base;return n?"op"===n.type?n.limits&&(t.style.size===E.DISPLAY.size||n.alwaysHandleSupSub)?Wn:null:"operatorname"===n.type?n.alwaysHandleSupSub&&(t.style.size===E.DISPLAY.size||n.limits)?Qn:null:"accent"===n.type?g(n.base)?Rt:null:"horizBrace"===n.type&&!e.sub===n.isOver?Vn:null:null}(e,t);if(n)return n(e,t);var r,o,a,i=e.base,c=e.sup,s=e.sub,l=yt(i,t),u=t.fontMetrics(),d=0,f=0,p=i&&g(i);if(c){var h=t.havingStyle(t.style.sup());r=yt(c,h,t),p||(d=l.height-h.fontMetrics().supDrop*h.sizeMultiplier/t.sizeMultiplier)}if(s){var m=t.havingStyle(t.style.sub());o=yt(s,m,t),p||(f=l.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}a=t.style===E.DISPLAY?u.sup1:t.style.cramped?u.sup3:u.sup2;var v,y=t.sizeMultiplier,b=.5/u.ptPerEm/y+"em",x=null;if(o){var w=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(l instanceof B||w)&&(x=-l.italic+"em")}if(r&&o){d=Math.max(d,a,r.depth+.25*u.xHeight),f=Math.max(f,u.sub2);var _=4*u.defaultRuleThickness;if(d-r.depth-(o.height-f)<_){f=_-(d-r.depth)+o.height;var k=.8*u.xHeight-(d-r.depth);k>0&&(d+=k,f-=k)}v=We.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:f,marginRight:b,marginLeft:x},{type:"elem",elem:r,shift:-d,marginRight:b}]},t)}else if(o){f=Math.max(f,u.sub1,o.height-.8*u.xHeight),v=We.makeVList({positionType:"shift",positionData:f,children:[{type:"elem",elem:o,marginLeft:x,marginRight:b}]},t)}else{if(!r)throw new Error("supsub must have either sup or sub.");d=Math.max(d,a,r.depth+.25*u.xHeight),v=We.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:r,marginRight:b}]},t)}var S=gt(l,"right")||"mord";return We.makeSpan([S],[l,We.makeSpan(["msupsub"],[v])],t)},mathmlBuilder:function(e,t){var n,r=!1,o=Ge(e.base,"horizBrace");o&&!!e.sup===o.isOver&&(r=!0,n=o.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var a,i=[zt(e.base,t)];if(e.sub&&i.push(zt(e.sub,t)),e.sup&&i.push(zt(e.sup,t)),r)a=n?"mover":"munder";else if(e.sub)if(e.sup){var c=e.base;a=c&&"op"===c.type&&c.limits&&t.style===E.DISPLAY||c&&"operatorname"===c.type&&c.alwaysHandleSupSub&&(t.style===E.DISPLAY||c.limits)?"munderover":"msubsup"}else{var s=e.base;a=s&&"op"===s.type&&s.limits&&(t.style===E.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===E.DISPLAY)?"munder":"msub"}else{var l=e.base;a=l&&"op"===l.type&&l.limits&&(t.style===E.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===E.DISPLAY)?"mover":"msup"}return new St.MathNode(a,i)}}),it({type:"atom",htmlBuilder:function(e,t){return We.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder:function(e,t){var n=new St.MathNode("mo",[Ot(e.text,e.mode)]);if("bin"===e.family){var r=Et(e,t);"bold-italic"===r&&n.setAttribute("mathvariant",r)}else"punct"===e.family?n.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||n.setAttribute("stretchy","false");return n}});var $n={mi:"italic",mn:"normal",mtext:"normal"};it({type:"mathord",htmlBuilder:function(e,t){return We.makeOrd(e,t,"mathord")},mathmlBuilder:function(e,t){var n=new St.MathNode("mi",[Ot(e.text,e.mode,t)]),r=Et(e,t)||"italic";return r!==$n[n.type]&&n.setAttribute("mathvariant",r),n}}),it({type:"textord",htmlBuilder:function(e,t){return We.makeOrd(e,t,"textord")},mathmlBuilder:function(e,t){var n,r=Ot(e.text,e.mode,t),o=Et(e,t)||"normal";return n="text"===e.mode?new St.MathNode("mtext",[r]):/[0-9]/.test(e.text)?new St.MathNode("mn",[r]):"\\prime"===e.text?new St.MathNode("mo",[r]):new St.MathNode("mi",[r]),o!==$n[n.type]&&n.setAttribute("mathvariant",o),n}});var er={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},tr={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};it({type:"spacing",htmlBuilder:function(e,t){if(tr.hasOwnProperty(e.text)){var n=tr[e.text].className||"";if("text"===e.mode){var r=We.makeOrd(e,t,"textord");return r.classes.push(n),r}return We.makeSpan(["mspace",n],[We.mathsym(e.text,e.mode,t)],t)}if(er.hasOwnProperty(e.text))return We.makeSpan(["mspace",er[e.text]],[],t);throw new i('Unknown type of space "'+e.text+'"')},mathmlBuilder:function(e,t){if(!tr.hasOwnProperty(e.text)){if(er.hasOwnProperty(e.text))return new St.MathNode("mspace");throw new i('Unknown type of space "'+e.text+'"')}return new St.MathNode("mtext",[new St.TextNode(" ")])}});var nr=function(){var e=new St.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};it({type:"tag",mathmlBuilder:function(e,t){var n=new St.MathNode("mtable",[new St.MathNode("mtr",[nr(),new St.MathNode("mtd",[Tt(e.body,t)]),nr(),new St.MathNode("mtd",[Tt(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var rr={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},or={"\\textbf":"textbf","\\textmd":"textmd"},ar={"\\textit":"textit","\\textup":"textup"},ir=function(e,t){var n=e.font;return n?rr[n]?t.withTextFontFamily(rr[n]):or[n]?t.withTextFontWeight(or[n]):t.withTextFontShape(ar[n]):t};at({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,o=t[0];return{type:"text",mode:n.mode,body:ct(o),font:r}},htmlBuilder:function(e,t){var n=ir(e,t),r=pt(e.body,n,!0);return We.makeSpan(["mord","text"],We.tryCombineChars(r),n)},mathmlBuilder:function(e,t){var n=ir(e,t);return Tt(e.body,n)}}),at({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 n=yt(e.body,t),r=We.makeLineSpan("underline-line",t),o=t.fontMetrics().defaultRuleThickness,a=We.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:o},{type:"elem",elem:r},{type:"kern",size:3*o},{type:"elem",elem:n}]},t);return We.makeSpan(["mord","underline"],[a],t)},mathmlBuilder:function(e,t){var n=new St.MathNode("mo",[new St.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new St.MathNode("munder",[zt(e.body,t),n]);return r.setAttribute("accentunder","true"),r}}),at({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(e,t,n){throw new i("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(e,t){for(var n=cr(e),r=[],o=t.havingStyle(t.style.text()),a=0;a0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(e)&&(o[e]=this.current[e])}this.current[e]=t},e}(),pr={},hr=pr;function mr(e,t){pr[e]=t}mr("\\@firstoftwo",(function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}})),mr("\\@secondoftwo",(function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}})),mr("\\@ifnextchar",(function(e){var t=e.consumeArgs(3),n=e.future();return 1===t[0].length&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),mr("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),mr("\\TextOrMath",(function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));var gr={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};mr("\\char",(function(e){var t,n=e.popToken(),r="";if("'"===n.text)t=8,n=e.popToken();else if('"'===n.text)t=16,n=e.popToken();else if("`"===n.text)if("\\"===(n=e.popToken()).text[0])r=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new i("\\char` missing argument");r=n.text.charCodeAt(0)}else t=10;if(t){if(null==(r=gr[n.text])||r>=t)throw new i("Invalid base-"+t+" digit "+n.text);for(var o;null!=(o=gr[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"};mr("\\dots",(function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in br?t=br[n]:("\\not"===n.substr(0,4)||n in ee.math&&d(["bin","rel"],ee.math[n].group))&&(t="\\dotsb"),t}));var xr={")":!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};mr("\\dotso",(function(e){return e.future().text in xr?"\\ldots\\,":"\\ldots"})),mr("\\dotsc",(function(e){var t=e.future().text;return t in xr&&","!==t?"\\ldots\\,":"\\ldots"})),mr("\\cdots",(function(e){return e.future().text in xr?"\\@cdots\\,":"\\@cdots"})),mr("\\dotsb","\\cdots"),mr("\\dotsm","\\cdots"),mr("\\dotsi","\\!\\cdots"),mr("\\dotsx","\\ldots\\,"),mr("\\DOTSI","\\relax"),mr("\\DOTSB","\\relax"),mr("\\DOTSX","\\relax"),mr("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),mr("\\,","\\tmspace+{3mu}{.1667em}"),mr("\\thinspace","\\,"),mr("\\>","\\mskip{4mu}"),mr("\\:","\\tmspace+{4mu}{.2222em}"),mr("\\medspace","\\:"),mr("\\;","\\tmspace+{5mu}{.2777em}"),mr("\\thickspace","\\;"),mr("\\!","\\tmspace-{3mu}{.1667em}"),mr("\\negthinspace","\\!"),mr("\\negmedspace","\\tmspace-{4mu}{.2222em}"),mr("\\negthickspace","\\tmspace-{5mu}{.277em}"),mr("\\enspace","\\kern.5em "),mr("\\enskip","\\hskip.5em\\relax"),mr("\\quad","\\hskip1em\\relax"),mr("\\qquad","\\hskip2em\\relax"),mr("\\tag","\\@ifstar\\tag@literal\\tag@paren"),mr("\\tag@paren","\\tag@literal{({#1})}"),mr("\\tag@literal",(function(e){if(e.macros.get("\\df@tag"))throw new i("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),mr("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),mr("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),mr("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),mr("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),mr("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),mr("\\\\","\\newline"),mr("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var wr=Y["Main-Regular"]["T".charCodeAt(0)][1]-.7*Y["Main-Regular"]["A".charCodeAt(0)][1]+"em";mr("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+wr+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),mr("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+wr+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),mr("\\hspace","\\@ifstar\\@hspacer\\@hspace"),mr("\\@hspace","\\hskip #1\\relax"),mr("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),mr("\\ordinarycolon",":"),mr("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),mr("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),mr("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),mr("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),mr("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),mr("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),mr("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),mr("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),mr("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),mr("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),mr("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),mr("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),mr("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),mr("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),mr("∷","\\dblcolon"),mr("∹","\\eqcolon"),mr("≔","\\coloneqq"),mr("≕","\\eqqcolon"),mr("⩴","\\Coloneqq"),mr("\\ratio","\\vcentcolon"),mr("\\coloncolon","\\dblcolon"),mr("\\colonequals","\\coloneqq"),mr("\\coloncolonequals","\\Coloneqq"),mr("\\equalscolon","\\eqqcolon"),mr("\\equalscoloncolon","\\Eqqcolon"),mr("\\colonminus","\\coloneq"),mr("\\coloncolonminus","\\Coloneq"),mr("\\minuscolon","\\eqcolon"),mr("\\minuscoloncolon","\\Eqcolon"),mr("\\coloncolonapprox","\\Colonapprox"),mr("\\coloncolonsim","\\Colonsim"),mr("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),mr("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),mr("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),mr("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),mr("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),mr("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),mr("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),mr("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),mr("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),mr("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),mr("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),mr("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),mr("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),mr("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),mr("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),mr("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),mr("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),mr("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),mr("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),mr("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),mr("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),mr("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),mr("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),mr("⟦","\\llbracket"),mr("⟧","\\rrbracket"),mr("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),mr("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),mr("⦃","\\lBrace"),mr("⦄","\\rBrace"),mr("\\darr","\\downarrow"),mr("\\dArr","\\Downarrow"),mr("\\Darr","\\Downarrow"),mr("\\lang","\\langle"),mr("\\rang","\\rangle"),mr("\\uarr","\\uparrow"),mr("\\uArr","\\Uparrow"),mr("\\Uarr","\\Uparrow"),mr("\\N","\\mathbb{N}"),mr("\\R","\\mathbb{R}"),mr("\\Z","\\mathbb{Z}"),mr("\\alef","\\aleph"),mr("\\alefsym","\\aleph"),mr("\\Alpha","\\mathrm{A}"),mr("\\Beta","\\mathrm{B}"),mr("\\bull","\\bullet"),mr("\\Chi","\\mathrm{X}"),mr("\\clubs","\\clubsuit"),mr("\\cnums","\\mathbb{C}"),mr("\\Complex","\\mathbb{C}"),mr("\\Dagger","\\ddagger"),mr("\\diamonds","\\diamondsuit"),mr("\\empty","\\emptyset"),mr("\\Epsilon","\\mathrm{E}"),mr("\\Eta","\\mathrm{H}"),mr("\\exist","\\exists"),mr("\\harr","\\leftrightarrow"),mr("\\hArr","\\Leftrightarrow"),mr("\\Harr","\\Leftrightarrow"),mr("\\hearts","\\heartsuit"),mr("\\image","\\Im"),mr("\\infin","\\infty"),mr("\\Iota","\\mathrm{I}"),mr("\\isin","\\in"),mr("\\Kappa","\\mathrm{K}"),mr("\\larr","\\leftarrow"),mr("\\lArr","\\Leftarrow"),mr("\\Larr","\\Leftarrow"),mr("\\lrarr","\\leftrightarrow"),mr("\\lrArr","\\Leftrightarrow"),mr("\\Lrarr","\\Leftrightarrow"),mr("\\Mu","\\mathrm{M}"),mr("\\natnums","\\mathbb{N}"),mr("\\Nu","\\mathrm{N}"),mr("\\Omicron","\\mathrm{O}"),mr("\\plusmn","\\pm"),mr("\\rarr","\\rightarrow"),mr("\\rArr","\\Rightarrow"),mr("\\Rarr","\\Rightarrow"),mr("\\real","\\Re"),mr("\\reals","\\mathbb{R}"),mr("\\Reals","\\mathbb{R}"),mr("\\Rho","\\mathrm{P}"),mr("\\sdot","\\cdot"),mr("\\sect","\\S"),mr("\\spades","\\spadesuit"),mr("\\sub","\\subset"),mr("\\sube","\\subseteq"),mr("\\supe","\\supseteq"),mr("\\Tau","\\mathrm{T}"),mr("\\thetasym","\\vartheta"),mr("\\weierp","\\wp"),mr("\\Zeta","\\mathrm{Z}"),mr("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),mr("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),mr("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),mr("\\blue","\\textcolor{##6495ed}{#1}"),mr("\\orange","\\textcolor{##ffa500}{#1}"),mr("\\pink","\\textcolor{##ff00af}{#1}"),mr("\\red","\\textcolor{##df0030}{#1}"),mr("\\green","\\textcolor{##28ae7b}{#1}"),mr("\\gray","\\textcolor{gray}{#1}"),mr("\\purple","\\textcolor{##9d38bd}{#1}"),mr("\\blueA","\\textcolor{##ccfaff}{#1}"),mr("\\blueB","\\textcolor{##80f6ff}{#1}"),mr("\\blueC","\\textcolor{##63d9ea}{#1}"),mr("\\blueD","\\textcolor{##11accd}{#1}"),mr("\\blueE","\\textcolor{##0c7f99}{#1}"),mr("\\tealA","\\textcolor{##94fff5}{#1}"),mr("\\tealB","\\textcolor{##26edd5}{#1}"),mr("\\tealC","\\textcolor{##01d1c1}{#1}"),mr("\\tealD","\\textcolor{##01a995}{#1}"),mr("\\tealE","\\textcolor{##208170}{#1}"),mr("\\greenA","\\textcolor{##b6ffb0}{#1}"),mr("\\greenB","\\textcolor{##8af281}{#1}"),mr("\\greenC","\\textcolor{##74cf70}{#1}"),mr("\\greenD","\\textcolor{##1fab54}{#1}"),mr("\\greenE","\\textcolor{##0d923f}{#1}"),mr("\\goldA","\\textcolor{##ffd0a9}{#1}"),mr("\\goldB","\\textcolor{##ffbb71}{#1}"),mr("\\goldC","\\textcolor{##ff9c39}{#1}"),mr("\\goldD","\\textcolor{##e07d10}{#1}"),mr("\\goldE","\\textcolor{##a75a05}{#1}"),mr("\\redA","\\textcolor{##fca9a9}{#1}"),mr("\\redB","\\textcolor{##ff8482}{#1}"),mr("\\redC","\\textcolor{##f9685d}{#1}"),mr("\\redD","\\textcolor{##e84d39}{#1}"),mr("\\redE","\\textcolor{##bc2612}{#1}"),mr("\\maroonA","\\textcolor{##ffbde0}{#1}"),mr("\\maroonB","\\textcolor{##ff92c6}{#1}"),mr("\\maroonC","\\textcolor{##ed5fa6}{#1}"),mr("\\maroonD","\\textcolor{##ca337c}{#1}"),mr("\\maroonE","\\textcolor{##9e034e}{#1}"),mr("\\purpleA","\\textcolor{##ddd7ff}{#1}"),mr("\\purpleB","\\textcolor{##c6b9fc}{#1}"),mr("\\purpleC","\\textcolor{##aa87ff}{#1}"),mr("\\purpleD","\\textcolor{##7854ab}{#1}"),mr("\\purpleE","\\textcolor{##543b78}{#1}"),mr("\\mintA","\\textcolor{##f5f9e8}{#1}"),mr("\\mintB","\\textcolor{##edf2df}{#1}"),mr("\\mintC","\\textcolor{##e0e5cc}{#1}"),mr("\\grayA","\\textcolor{##f6f7f7}{#1}"),mr("\\grayB","\\textcolor{##f0f1f2}{#1}"),mr("\\grayC","\\textcolor{##e3e5e6}{#1}"),mr("\\grayD","\\textcolor{##d6d8da}{#1}"),mr("\\grayE","\\textcolor{##babec2}{#1}"),mr("\\grayF","\\textcolor{##888d93}{#1}"),mr("\\grayG","\\textcolor{##626569}{#1}"),mr("\\grayH","\\textcolor{##3b3e40}{#1}"),mr("\\grayI","\\textcolor{##21242c}{#1}"),mr("\\kaBlue","\\textcolor{##314453}{#1}"),mr("\\kaGreen","\\textcolor{##71B307}{#1}");var _r={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},kr=function(){function e(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new fr(hr,t.macros),this.mode=n,this.stack=[]}var t=e.prototype;return t.feed=function(e){this.lexer=new dr(e,this.settings)},t.switchMode=function(e){this.mode=e},t.beginGroup=function(){this.macros.beginGroup()},t.endGroup=function(){this.macros.endGroup()},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.consumeSpaces=function(){for(;" "===this.future().text;)this.stack.pop()},t.consumeArgs=function(e){for(var t=[],n=0;nthis.settings.maxExpand)throw new i("Too many expansions: infinite loop or need to increase maxExpand setting");var r=n.tokens;if(n.numArgs)for(var o=this.consumeArgs(n.numArgs),a=(r=r.slice()).length-1;a>=0;--a){var c=r[a];if("#"===c.text){if(0===a)throw new i("Incomplete placeholder at end of macro body",c);if("#"===(c=r[--a]).text)r.splice(a+1,1);else{if(!/^[1-9]$/.test(c.text))throw new i("Not a valid argument number",c);var s;(s=r).splice.apply(s,[a,2].concat(o[+c.text-1]))}}}return this.pushTokens(r),r},t.expandAfterFuture=function(){return this.expandOnce(),this.future()},t.expandNextToken=function(){for(;;){var e=this.expandOnce();if(e instanceof o){if("\\relax"!==e.text)return this.stack.pop();this.stack.pop()}}throw new Error},t.expandMacro=function(e){if(this.macros.get(e)){var t=[],n=this.stack.length;for(this.pushToken(new o(e));this.stack.length>n;)this.expandOnce()instanceof o&&t.push(this.stack.pop());return t}},t.expandMacroAsText=function(e){var t=this.expandMacro(e);return t?t.map((function(e){return e.text})).join(""):t},t._getExpansion=function(e){var t=this.macros.get(e);if(null==t)return t;var n="function"==typeof t?t(this):t;if("string"==typeof n){var r=0;if(-1!==n.indexOf("#"))for(var o=n.replace(/##/g,"");-1!==o.indexOf("#"+(r+1));)++r;for(var a=new dr(n,this.settings),i=[],c=a.lex();"EOF"!==c.text;)i.push(c),c=a.lex();return i.reverse(),{tokens:i,numArgs:r}}return n},t.isDefined=function(e){return this.macros.has(e)||sr.hasOwnProperty(e)||ee.math.hasOwnProperty(e)||ee.text.hasOwnProperty(e)||_r.hasOwnProperty(e)},e}(),Sr={"́":{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"}},Or={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","č":"č","ĉ":"ĉ","ċ":"ċ","ď":"ď","ḋ":"ḋ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ĺ":"ĺ","ľ":"ľ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ď":"Ď","Ḋ":"Ḋ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ĺ":"Ĺ","Ľ":"Ľ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ť":"Ť","Ṫ":"Ṫ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"},Cr=function(){function e(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new kr(e,t,this.mode),this.settings=t,this.leftrightDepth=0}var t=e.prototype;return t.expect=function(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new i("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()},t.consume=function(){this.nextToken=null},t.fetch=function(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},t.switchMode=function(e){this.mode=e,this.gullet.switchMode(e)},t.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var e=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),e},t.parseExpression=function(t,n){for(var r=[];;){"math"===this.mode&&this.consumeSpaces();var o=this.fetch();if(-1!==e.endOfExpression.indexOf(o.text))break;if(n&&o.text===n)break;if(t&&sr[o.text]&&sr[o.text].infix)break;var a=this.parseAtom(n);if(!a)break;r.push(a)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)},t.handleInfixNodes=function(e){for(var t,n=-1,r=0;r0&&!l||0===c&&!l&&"math"===this.mode,d=this.parseGroupOfType("argument to '"+e+"'",s,l,r,u);if(!d){if(l){a.push(null);continue}throw new i("Expected group after '"+e+"'",this.fetch())}(l?a:o).push(d)}return{args:o,optArgs:a}},t.parseGroupOfType=function(e,t,n,r,o){switch(t){case"color":return o&&this.consumeSpaces(),this.parseColorGroup(n);case"size":return o&&this.consumeSpaces(),this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n,o);case"math":case"text":return this.parseGroup(e,n,r,void 0,t,o);case"hbox":var a=this.parseGroup(e,n,r,void 0,"text",o);return a?{type:"styling",mode:a.mode,body:[a],style:"text"}:a;case"raw":if(o&&this.consumeSpaces(),n&&"{"===this.fetch().text)return null;var c=this.parseStringGroup("raw",n,!0);if(c)return{type:"raw",mode:"text",string:c.text};throw new i("Expected raw group",this.fetch());case"original":case null:case void 0:return this.parseGroup(e,n,r,void 0,void 0,o);default:throw new i("Unknown group type as "+e,this.fetch())}},t.consumeSpaces=function(){for(;" "===this.fetch().text;)this.consume()},t.parseStringGroup=function(e,t,n){var r=t?"[":"{",o=t?"]":"}",a=this.fetch();if(a.text!==r){if(t)return null;if(n&&"EOF"!==a.text&&/[^{}[\]]/.test(a.text))return this.consume(),a}var c=this.mode;this.mode="text",this.expect(r);for(var s,l="",u=this.fetch(),d=0,f=u;(s=this.fetch()).text!==o||n&&d>0;){switch(s.text){case"EOF":throw new i("Unexpected end of input in "+e,u.range(f,l));case r:d++;break;case o:d--}l+=(f=s).text,this.consume()}return this.expect(o),this.mode=c,u.range(f,l)},t.parseRegexGroup=function(e,t){var n=this.mode;this.mode="text";for(var r,o=this.fetch(),a=o,c="";"EOF"!==(r=this.fetch()).text&&e.test(c+r.text);)c+=(a=r).text,this.consume();if(""===c)throw new i("Invalid "+t+": '"+o.text+"'",o);return this.mode=n,o.range(a,c)},t.parseColorGroup=function(e){var t=this.parseStringGroup("color",e);if(!t)return null;var n=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new i("Invalid color: '"+t.text+"'",t);var r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r="#"+r),{type:"color-token",mode:this.mode,color:r}},t.parseSizeGroup=function(e){var t,n=!1;if(!(t=e||"{"===this.fetch().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;e||0!==t.text.length||(t.text="0pt",n=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new i("Invalid size: '"+t.text+"'",t);var o={number:+(r[1]+r[2]),unit:r[3]};if(!Pe(o))throw new i("Invalid unit: '"+o.unit+"'",t);return{type:"size",mode:this.mode,value:o,isBlank:n}},t.parseUrlGroup=function(e,t){this.gullet.lexer.setCatcode("%",13);var n=this.parseStringGroup("url",e,!0);if(this.gullet.lexer.setCatcode("%",14),!n)return null;var r=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}},t.parseGroup=function(t,n,o,a,c,s){var l=this.mode;c&&this.switchMode(c),s&&this.consumeSpaces();var u,d=this.fetch(),f=d.text;if(n?"["===f:"{"===f||"\\begingroup"===f){this.consume();var p=e.endOfGroup[f];this.gullet.beginGroup();var h=this.parseExpression(!1,p),m=this.fetch();this.expect(p),this.gullet.endGroup(),u={type:"ordgroup",mode:this.mode,loc:r.range(d,m),body:h,semisimple:"\\begingroup"===f||void 0}}else if(n)u=null;else if(null==(u=this.parseFunction(a,t,o)||this.parseSymbol())&&"\\"===f[0]&&!_r.hasOwnProperty(f)){if(this.settings.throwOnError)throw new i("Undefined control sequence: "+f,d);u=this.formatUnsupportedCmd(f),this.consume()}return c&&this.switchMode(l),u},t.formLigatures=function(e){for(var t=e.length-1,n=0;n=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var s,l=ee[this.mode][t].group,u=r.range(e);if(J.hasOwnProperty(l)){var d=l;s={type:"atom",mode:this.mode,family:d,loc:u,text:t}}else s={type:l,mode:this.mode,loc:u,text:t};a=s}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(z(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),a={type:"textord",mode:"text",loc:r.range(e),text:t}}if(this.consume(),c)for(var f=0;f15?"…"+e.slice(n-15,n):e.slice(0,n),c=t+15":">","<":"<",'"':""","'":"'"},f=/[&><"']/g,p=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};var h=function(e,t){return-1!==e.indexOf(t)},m=function(e,t){return void 0===e?t:e},g=function(e){return String(e).replace(f,e=>d[e])},v=function(e){return e.replace(u,"-$1").toLowerCase()},y=p,b=function(e){const t=p(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},x=function(e){const t=/^\s*([^\\/#]*?)(?::|*58|*3a)/i.exec(e);return null!=t?t[1]:"_relative"};class w{constructor(e){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,e=e||{},this.displayMode=m(e.displayMode,!1),this.output=m(e.output,"htmlAndMathml"),this.leqno=m(e.leqno,!1),this.fleqn=m(e.fleqn,!1),this.throwOnError=m(e.throwOnError,!0),this.errorColor=m(e.errorColor,"#cc0000"),this.macros=e.macros||{},this.minRuleThickness=Math.max(0,m(e.minRuleThickness,0)),this.colorIsTextColor=m(e.colorIsTextColor,!1),this.strict=m(e.strict,"warn"),this.trust=m(e.trust,!1),this.maxSize=Math.max(0,m(e.maxSize,1/0)),this.maxExpand=Math.max(0,m(e.maxExpand,1e3))}reportNonstrict(e,t,n){let r=this.strict;if("function"==typeof r&&(r=r(e,t,n)),r&&"ignore"!==r&&(!0===r||"error"===r))throw new l(`LaTeX-incompatible input and strict mode is set to 'error': ${t} [${e}]`,n)}useStrictBehavior(e,t,n){let r=this.strict;if("function"==typeof r)try{r=r(e,t,n)}catch(e){r="error"}return!(!r||"ignore"===r||!0!==r&&"error"!==r)}isTrusted(e){e.url&&!e.protocol&&(e.protocol=x(e.url));const t="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(t)}}class _{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return k[S[this.id]]}sub(){return k[O[this.id]]}fracNum(){return k[C[this.id]]}fracDen(){return k[E[this.id]]}cramp(){return k[M[this.id]]}text(){return k[T[this.id]]}isTight(){return this.size>=2}}const k=[new _(0,0,!1),new _(1,0,!0),new _(2,1,!1),new _(3,1,!0),new _(4,2,!1),new _(5,2,!0),new _(6,3,!1),new _(7,3,!0)],S=[4,5,4,5,6,7,6,7],O=[5,5,5,5,7,7,7,7],C=[2,3,4,5,6,7,6,7],E=[3,3,5,5,7,7,7,7],M=[1,1,3,3,5,5,7,7],T=[0,1,2,3,2,3,2,3];var z={DISPLAY:k[0],TEXT:k[2],SCRIPT:k[4],SCRIPTSCRIPT:k[6]};const A=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],P=[];function D(e){for(let t=0;t=P[t]&&e<=P[t+1])return!0;return!1}A.forEach(e=>e.blocks.forEach(e=>P.push(...e)));const j={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"};class I{constructor(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={}}hasClass(e){return h(this.classes,e)}toNode(){const e=document.createDocumentFragment();for(let t=0;te.toText()).join("")}}const N=function(e){return e.filter(e=>e).join(" ")},L=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push("mtight");const e=t.getColor();e&&(this.style.color=e)}},R=function(e){const t=document.createElement(e);t.className=N(this.classes);for(const e in this.style)this.style.hasOwnProperty(e)&&(t.style[e]=this.style[e]);for(const e in this.attributes)this.attributes.hasOwnProperty(e)&&t.setAttribute(e,this.attributes[e]);for(let e=0;e";for(let e=0;e`,t};class V{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,L.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return h(this.classes,e)}toNode(){return R.call(this,"span")}toMarkup(){return H.call(this,"span")}}class B{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,L.call(this,t,r),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return h(this.classes,e)}toNode(){return R.call(this,"a")}toMarkup(){return H.call(this,"a")}}class F{constructor(e,t,n){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=n}hasClass(e){return h(this.classes,e)}toNode(){const e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(const t in this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){let e=`
",e}}const q={"î":"ı̂","ï":"ı̈","í":"ı́","ì":"ı̀"};class U{constructor(e,t,n,r,o,a,i,c){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=o||0,this.width=a||0,this.classes=i||[],this.style=c||{},this.maxFontSize=0;const s=function(e){for(let t=0;t=r[0]&&e<=r[1])return n.name}}return null}(this.text.charCodeAt(0));s&&this.classes.push(s+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=q[this.text])}hasClass(e){return h(this.classes,e)}toNode(){const e=document.createTextNode(this.text);let t=null;this.italic>0&&(t=document.createElement("span"),t.style.marginRight=this.italic+"em"),this.classes.length>0&&(t=t||document.createElement("span"),t.className=N(this.classes));for(const e in this.style)this.style.hasOwnProperty(e)&&(t=t||document.createElement("span"),t.style[e]=this.style[e]);return t?(t.appendChild(e),t):e}toMarkup(){let e=!1,t="0&&(n+="margin-right:"+this.italic+"em;");for(const e in this.style)this.style.hasOwnProperty(e)&&(n+=v(e)+":"+this.style[e]+";");n&&(e=!0,t+=' style="'+g(n)+'"');const r=g(this.text);return e?(t+=">",t+=r,t+="",t):r}}class W{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){const e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(const t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(let t=0;t";for(let t=0;t",e}}class Y{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){const e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",j[this.pathName]),e}toMarkup(){return this.alternate?``:``}}class G{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){const e=document.createElementNS("http://www.w3.org/2000/svg","line");for(const t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e}toMarkup(){let e="",e}}function K(e){if(e instanceof U)return e;throw new Error(`Expected symbolNode but got ${String(e)}.`)}var Q={"AMS-Regular":{65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473]},"Fraktur-Regular":{33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],163:[0,.69444,0,0,.86853],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],163:[0,.69444,0,0,.76909],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],305:[0,.43056,0,.02778,.32246],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],567:[.19444,.43056,0,.08334,.38403],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,1],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.67,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.9,0,0,.278],8943:[-.19,.31,0,0,1.172],8945:[-.1,.82,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.744,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.744,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333]},"Math-Italic":{65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059]},"Math-Regular":{65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059]},"SansSerif-Bold":{33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212]},"Size1-Regular":{40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}};const X={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},J={"Å":"A","Ç":"C","Ð":"D","Þ":"o","å":"a","ç":"c","ð":"d","þ":"o","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"};function Z(e,t,n){if(!Q[t])throw new Error(`Font metrics not found for font: ${t}.`);let r=e.charCodeAt(0),o=Q[t][r];if(!o&&e[0]in J&&(r=J[e[0]].charCodeAt(0),o=Q[t][r]),o||"text"!==n||D(r)&&(o=Q[t][77]),o)return{depth:o[0],height:o[1],italic:o[2],skew:o[3],width:o[4]}}const $={},ee={bin:1,close:1,inner:1,open:1,punct:1,rel:1},te={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},ne={math:{},text:{}};function re(e,t,n,r,o,a){ne[e][o]={font:t,group:n,replace:r},a&&r&&(ne[e][r]=ne[e][o])}const oe="math",ae="main",ie="ams",ce="accent-token",se="bin",le="close",ue="mathord",de="op-token",fe="open",pe="rel",he="spacing",me="textord";re(oe,ae,pe,"≡","\\equiv",!0),re(oe,ae,pe,"≺","\\prec",!0),re(oe,ae,pe,"≻","\\succ",!0),re(oe,ae,pe,"∼","\\sim",!0),re(oe,ae,pe,"⊥","\\perp"),re(oe,ae,pe,"⪯","\\preceq",!0),re(oe,ae,pe,"⪰","\\succeq",!0),re(oe,ae,pe,"≃","\\simeq",!0),re(oe,ae,pe,"∣","\\mid",!0),re(oe,ae,pe,"≪","\\ll",!0),re(oe,ae,pe,"≫","\\gg",!0),re(oe,ae,pe,"≍","\\asymp",!0),re(oe,ae,pe,"∥","\\parallel"),re(oe,ae,pe,"⋈","\\bowtie",!0),re(oe,ae,pe,"⌣","\\smile",!0),re(oe,ae,pe,"⊑","\\sqsubseteq",!0),re(oe,ae,pe,"⊒","\\sqsupseteq",!0),re(oe,ae,pe,"≐","\\doteq",!0),re(oe,ae,pe,"⌢","\\frown",!0),re(oe,ae,pe,"∋","\\ni",!0),re(oe,ae,pe,"∝","\\propto",!0),re(oe,ae,pe,"⊢","\\vdash",!0),re(oe,ae,pe,"⊣","\\dashv",!0),re(oe,ae,pe,"∋","\\owns"),re(oe,ae,"punct",".","\\ldotp"),re(oe,ae,"punct","⋅","\\cdotp"),re(oe,ae,me,"#","\\#"),re("text",ae,me,"#","\\#"),re(oe,ae,me,"&","\\&"),re("text",ae,me,"&","\\&"),re(oe,ae,me,"ℵ","\\aleph",!0),re(oe,ae,me,"∀","\\forall",!0),re(oe,ae,me,"ℏ","\\hbar",!0),re(oe,ae,me,"∃","\\exists",!0),re(oe,ae,me,"∇","\\nabla",!0),re(oe,ae,me,"♭","\\flat",!0),re(oe,ae,me,"ℓ","\\ell",!0),re(oe,ae,me,"♮","\\natural",!0),re(oe,ae,me,"♣","\\clubsuit",!0),re(oe,ae,me,"℘","\\wp",!0),re(oe,ae,me,"♯","\\sharp",!0),re(oe,ae,me,"♢","\\diamondsuit",!0),re(oe,ae,me,"ℜ","\\Re",!0),re(oe,ae,me,"♡","\\heartsuit",!0),re(oe,ae,me,"ℑ","\\Im",!0),re(oe,ae,me,"♠","\\spadesuit",!0),re("text",ae,me,"§","\\S",!0),re("text",ae,me,"¶","\\P",!0),re(oe,ae,me,"†","\\dag"),re("text",ae,me,"†","\\dag"),re("text",ae,me,"†","\\textdagger"),re(oe,ae,me,"‡","\\ddag"),re("text",ae,me,"‡","\\ddag"),re("text",ae,me,"‡","\\textdaggerdbl"),re(oe,ae,le,"⎱","\\rmoustache",!0),re(oe,ae,fe,"⎰","\\lmoustache",!0),re(oe,ae,le,"⟯","\\rgroup",!0),re(oe,ae,fe,"⟮","\\lgroup",!0),re(oe,ae,se,"∓","\\mp",!0),re(oe,ae,se,"⊖","\\ominus",!0),re(oe,ae,se,"⊎","\\uplus",!0),re(oe,ae,se,"⊓","\\sqcap",!0),re(oe,ae,se,"∗","\\ast"),re(oe,ae,se,"⊔","\\sqcup",!0),re(oe,ae,se,"◯","\\bigcirc"),re(oe,ae,se,"∙","\\bullet"),re(oe,ae,se,"‡","\\ddagger"),re(oe,ae,se,"≀","\\wr",!0),re(oe,ae,se,"⨿","\\amalg"),re(oe,ae,se,"&","\\And"),re(oe,ae,pe,"⟵","\\longleftarrow",!0),re(oe,ae,pe,"⇐","\\Leftarrow",!0),re(oe,ae,pe,"⟸","\\Longleftarrow",!0),re(oe,ae,pe,"⟶","\\longrightarrow",!0),re(oe,ae,pe,"⇒","\\Rightarrow",!0),re(oe,ae,pe,"⟹","\\Longrightarrow",!0),re(oe,ae,pe,"↔","\\leftrightarrow",!0),re(oe,ae,pe,"⟷","\\longleftrightarrow",!0),re(oe,ae,pe,"⇔","\\Leftrightarrow",!0),re(oe,ae,pe,"⟺","\\Longleftrightarrow",!0),re(oe,ae,pe,"↦","\\mapsto",!0),re(oe,ae,pe,"⟼","\\longmapsto",!0),re(oe,ae,pe,"↗","\\nearrow",!0),re(oe,ae,pe,"↩","\\hookleftarrow",!0),re(oe,ae,pe,"↪","\\hookrightarrow",!0),re(oe,ae,pe,"↘","\\searrow",!0),re(oe,ae,pe,"↼","\\leftharpoonup",!0),re(oe,ae,pe,"⇀","\\rightharpoonup",!0),re(oe,ae,pe,"↙","\\swarrow",!0),re(oe,ae,pe,"↽","\\leftharpoondown",!0),re(oe,ae,pe,"⇁","\\rightharpoondown",!0),re(oe,ae,pe,"↖","\\nwarrow",!0),re(oe,ae,pe,"⇌","\\rightleftharpoons",!0),re(oe,ie,pe,"≮","\\nless",!0),re(oe,ie,pe,"","\\@nleqslant"),re(oe,ie,pe,"","\\@nleqq"),re(oe,ie,pe,"⪇","\\lneq",!0),re(oe,ie,pe,"≨","\\lneqq",!0),re(oe,ie,pe,"","\\@lvertneqq"),re(oe,ie,pe,"⋦","\\lnsim",!0),re(oe,ie,pe,"⪉","\\lnapprox",!0),re(oe,ie,pe,"⊀","\\nprec",!0),re(oe,ie,pe,"⋠","\\npreceq",!0),re(oe,ie,pe,"⋨","\\precnsim",!0),re(oe,ie,pe,"⪹","\\precnapprox",!0),re(oe,ie,pe,"≁","\\nsim",!0),re(oe,ie,pe,"","\\@nshortmid"),re(oe,ie,pe,"∤","\\nmid",!0),re(oe,ie,pe,"⊬","\\nvdash",!0),re(oe,ie,pe,"⊭","\\nvDash",!0),re(oe,ie,pe,"⋪","\\ntriangleleft"),re(oe,ie,pe,"⋬","\\ntrianglelefteq",!0),re(oe,ie,pe,"⊊","\\subsetneq",!0),re(oe,ie,pe,"","\\@varsubsetneq"),re(oe,ie,pe,"⫋","\\subsetneqq",!0),re(oe,ie,pe,"","\\@varsubsetneqq"),re(oe,ie,pe,"≯","\\ngtr",!0),re(oe,ie,pe,"","\\@ngeqslant"),re(oe,ie,pe,"","\\@ngeqq"),re(oe,ie,pe,"⪈","\\gneq",!0),re(oe,ie,pe,"≩","\\gneqq",!0),re(oe,ie,pe,"","\\@gvertneqq"),re(oe,ie,pe,"⋧","\\gnsim",!0),re(oe,ie,pe,"⪊","\\gnapprox",!0),re(oe,ie,pe,"⊁","\\nsucc",!0),re(oe,ie,pe,"⋡","\\nsucceq",!0),re(oe,ie,pe,"⋩","\\succnsim",!0),re(oe,ie,pe,"⪺","\\succnapprox",!0),re(oe,ie,pe,"≆","\\ncong",!0),re(oe,ie,pe,"","\\@nshortparallel"),re(oe,ie,pe,"∦","\\nparallel",!0),re(oe,ie,pe,"⊯","\\nVDash",!0),re(oe,ie,pe,"⋫","\\ntriangleright"),re(oe,ie,pe,"⋭","\\ntrianglerighteq",!0),re(oe,ie,pe,"","\\@nsupseteqq"),re(oe,ie,pe,"⊋","\\supsetneq",!0),re(oe,ie,pe,"","\\@varsupsetneq"),re(oe,ie,pe,"⫌","\\supsetneqq",!0),re(oe,ie,pe,"","\\@varsupsetneqq"),re(oe,ie,pe,"⊮","\\nVdash",!0),re(oe,ie,pe,"⪵","\\precneqq",!0),re(oe,ie,pe,"⪶","\\succneqq",!0),re(oe,ie,pe,"","\\@nsubseteqq"),re(oe,ie,se,"⊴","\\unlhd"),re(oe,ie,se,"⊵","\\unrhd"),re(oe,ie,pe,"↚","\\nleftarrow",!0),re(oe,ie,pe,"↛","\\nrightarrow",!0),re(oe,ie,pe,"⇍","\\nLeftarrow",!0),re(oe,ie,pe,"⇏","\\nRightarrow",!0),re(oe,ie,pe,"↮","\\nleftrightarrow",!0),re(oe,ie,pe,"⇎","\\nLeftrightarrow",!0),re(oe,ie,pe,"△","\\vartriangle"),re(oe,ie,me,"ℏ","\\hslash"),re(oe,ie,me,"▽","\\triangledown"),re(oe,ie,me,"◊","\\lozenge"),re(oe,ie,me,"Ⓢ","\\circledS"),re(oe,ie,me,"®","\\circledR"),re("text",ie,me,"®","\\circledR"),re(oe,ie,me,"∡","\\measuredangle",!0),re(oe,ie,me,"∄","\\nexists"),re(oe,ie,me,"℧","\\mho"),re(oe,ie,me,"Ⅎ","\\Finv",!0),re(oe,ie,me,"⅁","\\Game",!0),re(oe,ie,me,"‵","\\backprime"),re(oe,ie,me,"▲","\\blacktriangle"),re(oe,ie,me,"▼","\\blacktriangledown"),re(oe,ie,me,"■","\\blacksquare"),re(oe,ie,me,"⧫","\\blacklozenge"),re(oe,ie,me,"★","\\bigstar"),re(oe,ie,me,"∢","\\sphericalangle",!0),re(oe,ie,me,"∁","\\complement",!0),re(oe,ie,me,"ð","\\eth",!0),re(oe,ie,me,"╱","\\diagup"),re(oe,ie,me,"╲","\\diagdown"),re(oe,ie,me,"□","\\square"),re(oe,ie,me,"□","\\Box"),re(oe,ie,me,"◊","\\Diamond"),re(oe,ie,me,"¥","\\yen",!0),re("text",ie,me,"¥","\\yen",!0),re(oe,ie,me,"✓","\\checkmark",!0),re("text",ie,me,"✓","\\checkmark"),re(oe,ie,me,"ℶ","\\beth",!0),re(oe,ie,me,"ℸ","\\daleth",!0),re(oe,ie,me,"ℷ","\\gimel",!0),re(oe,ie,me,"ϝ","\\digamma",!0),re(oe,ie,me,"ϰ","\\varkappa"),re(oe,ie,fe,"┌","\\ulcorner",!0),re(oe,ie,le,"┐","\\urcorner",!0),re(oe,ie,fe,"└","\\llcorner",!0),re(oe,ie,le,"┘","\\lrcorner",!0),re(oe,ie,pe,"≦","\\leqq",!0),re(oe,ie,pe,"⩽","\\leqslant",!0),re(oe,ie,pe,"⪕","\\eqslantless",!0),re(oe,ie,pe,"≲","\\lesssim",!0),re(oe,ie,pe,"⪅","\\lessapprox",!0),re(oe,ie,pe,"≊","\\approxeq",!0),re(oe,ie,se,"⋖","\\lessdot"),re(oe,ie,pe,"⋘","\\lll",!0),re(oe,ie,pe,"≶","\\lessgtr",!0),re(oe,ie,pe,"⋚","\\lesseqgtr",!0),re(oe,ie,pe,"⪋","\\lesseqqgtr",!0),re(oe,ie,pe,"≑","\\doteqdot"),re(oe,ie,pe,"≓","\\risingdotseq",!0),re(oe,ie,pe,"≒","\\fallingdotseq",!0),re(oe,ie,pe,"∽","\\backsim",!0),re(oe,ie,pe,"⋍","\\backsimeq",!0),re(oe,ie,pe,"⫅","\\subseteqq",!0),re(oe,ie,pe,"⋐","\\Subset",!0),re(oe,ie,pe,"⊏","\\sqsubset",!0),re(oe,ie,pe,"≼","\\preccurlyeq",!0),re(oe,ie,pe,"⋞","\\curlyeqprec",!0),re(oe,ie,pe,"≾","\\precsim",!0),re(oe,ie,pe,"⪷","\\precapprox",!0),re(oe,ie,pe,"⊲","\\vartriangleleft"),re(oe,ie,pe,"⊴","\\trianglelefteq"),re(oe,ie,pe,"⊨","\\vDash",!0),re(oe,ie,pe,"⊪","\\Vvdash",!0),re(oe,ie,pe,"⌣","\\smallsmile"),re(oe,ie,pe,"⌢","\\smallfrown"),re(oe,ie,pe,"≏","\\bumpeq",!0),re(oe,ie,pe,"≎","\\Bumpeq",!0),re(oe,ie,pe,"≧","\\geqq",!0),re(oe,ie,pe,"⩾","\\geqslant",!0),re(oe,ie,pe,"⪖","\\eqslantgtr",!0),re(oe,ie,pe,"≳","\\gtrsim",!0),re(oe,ie,pe,"⪆","\\gtrapprox",!0),re(oe,ie,se,"⋗","\\gtrdot"),re(oe,ie,pe,"⋙","\\ggg",!0),re(oe,ie,pe,"≷","\\gtrless",!0),re(oe,ie,pe,"⋛","\\gtreqless",!0),re(oe,ie,pe,"⪌","\\gtreqqless",!0),re(oe,ie,pe,"≖","\\eqcirc",!0),re(oe,ie,pe,"≗","\\circeq",!0),re(oe,ie,pe,"≜","\\triangleq",!0),re(oe,ie,pe,"∼","\\thicksim"),re(oe,ie,pe,"≈","\\thickapprox"),re(oe,ie,pe,"⫆","\\supseteqq",!0),re(oe,ie,pe,"⋑","\\Supset",!0),re(oe,ie,pe,"⊐","\\sqsupset",!0),re(oe,ie,pe,"≽","\\succcurlyeq",!0),re(oe,ie,pe,"⋟","\\curlyeqsucc",!0),re(oe,ie,pe,"≿","\\succsim",!0),re(oe,ie,pe,"⪸","\\succapprox",!0),re(oe,ie,pe,"⊳","\\vartriangleright"),re(oe,ie,pe,"⊵","\\trianglerighteq"),re(oe,ie,pe,"⊩","\\Vdash",!0),re(oe,ie,pe,"∣","\\shortmid"),re(oe,ie,pe,"∥","\\shortparallel"),re(oe,ie,pe,"≬","\\between",!0),re(oe,ie,pe,"⋔","\\pitchfork",!0),re(oe,ie,pe,"∝","\\varpropto"),re(oe,ie,pe,"◀","\\blacktriangleleft"),re(oe,ie,pe,"∴","\\therefore",!0),re(oe,ie,pe,"∍","\\backepsilon"),re(oe,ie,pe,"▶","\\blacktriangleright"),re(oe,ie,pe,"∵","\\because",!0),re(oe,ie,pe,"⋘","\\llless"),re(oe,ie,pe,"⋙","\\gggtr"),re(oe,ie,se,"⊲","\\lhd"),re(oe,ie,se,"⊳","\\rhd"),re(oe,ie,pe,"≂","\\eqsim",!0),re(oe,ae,pe,"⋈","\\Join"),re(oe,ie,pe,"≑","\\Doteq",!0),re(oe,ie,se,"∔","\\dotplus",!0),re(oe,ie,se,"∖","\\smallsetminus"),re(oe,ie,se,"⋒","\\Cap",!0),re(oe,ie,se,"⋓","\\Cup",!0),re(oe,ie,se,"⩞","\\doublebarwedge",!0),re(oe,ie,se,"⊟","\\boxminus",!0),re(oe,ie,se,"⊞","\\boxplus",!0),re(oe,ie,se,"⋇","\\divideontimes",!0),re(oe,ie,se,"⋉","\\ltimes",!0),re(oe,ie,se,"⋊","\\rtimes",!0),re(oe,ie,se,"⋋","\\leftthreetimes",!0),re(oe,ie,se,"⋌","\\rightthreetimes",!0),re(oe,ie,se,"⋏","\\curlywedge",!0),re(oe,ie,se,"⋎","\\curlyvee",!0),re(oe,ie,se,"⊝","\\circleddash",!0),re(oe,ie,se,"⊛","\\circledast",!0),re(oe,ie,se,"⋅","\\centerdot"),re(oe,ie,se,"⊺","\\intercal",!0),re(oe,ie,se,"⋒","\\doublecap"),re(oe,ie,se,"⋓","\\doublecup"),re(oe,ie,se,"⊠","\\boxtimes",!0),re(oe,ie,pe,"⇢","\\dashrightarrow",!0),re(oe,ie,pe,"⇠","\\dashleftarrow",!0),re(oe,ie,pe,"⇇","\\leftleftarrows",!0),re(oe,ie,pe,"⇆","\\leftrightarrows",!0),re(oe,ie,pe,"⇚","\\Lleftarrow",!0),re(oe,ie,pe,"↞","\\twoheadleftarrow",!0),re(oe,ie,pe,"↢","\\leftarrowtail",!0),re(oe,ie,pe,"↫","\\looparrowleft",!0),re(oe,ie,pe,"⇋","\\leftrightharpoons",!0),re(oe,ie,pe,"↶","\\curvearrowleft",!0),re(oe,ie,pe,"↺","\\circlearrowleft",!0),re(oe,ie,pe,"↰","\\Lsh",!0),re(oe,ie,pe,"⇈","\\upuparrows",!0),re(oe,ie,pe,"↿","\\upharpoonleft",!0),re(oe,ie,pe,"⇃","\\downharpoonleft",!0),re(oe,ie,pe,"⊸","\\multimap",!0),re(oe,ie,pe,"↭","\\leftrightsquigarrow",!0),re(oe,ie,pe,"⇉","\\rightrightarrows",!0),re(oe,ie,pe,"⇄","\\rightleftarrows",!0),re(oe,ie,pe,"↠","\\twoheadrightarrow",!0),re(oe,ie,pe,"↣","\\rightarrowtail",!0),re(oe,ie,pe,"↬","\\looparrowright",!0),re(oe,ie,pe,"↷","\\curvearrowright",!0),re(oe,ie,pe,"↻","\\circlearrowright",!0),re(oe,ie,pe,"↱","\\Rsh",!0),re(oe,ie,pe,"⇊","\\downdownarrows",!0),re(oe,ie,pe,"↾","\\upharpoonright",!0),re(oe,ie,pe,"⇂","\\downharpoonright",!0),re(oe,ie,pe,"⇝","\\rightsquigarrow",!0),re(oe,ie,pe,"⇝","\\leadsto"),re(oe,ie,pe,"⇛","\\Rrightarrow",!0),re(oe,ie,pe,"↾","\\restriction"),re(oe,ae,me,"‘","`"),re(oe,ae,me,"$","\\$"),re("text",ae,me,"$","\\$"),re("text",ae,me,"$","\\textdollar"),re(oe,ae,me,"%","\\%"),re("text",ae,me,"%","\\%"),re(oe,ae,me,"_","\\_"),re("text",ae,me,"_","\\_"),re("text",ae,me,"_","\\textunderscore"),re(oe,ae,me,"∠","\\angle",!0),re(oe,ae,me,"∞","\\infty",!0),re(oe,ae,me,"′","\\prime"),re(oe,ae,me,"△","\\triangle"),re(oe,ae,me,"Γ","\\Gamma",!0),re(oe,ae,me,"Δ","\\Delta",!0),re(oe,ae,me,"Θ","\\Theta",!0),re(oe,ae,me,"Λ","\\Lambda",!0),re(oe,ae,me,"Ξ","\\Xi",!0),re(oe,ae,me,"Π","\\Pi",!0),re(oe,ae,me,"Σ","\\Sigma",!0),re(oe,ae,me,"Υ","\\Upsilon",!0),re(oe,ae,me,"Φ","\\Phi",!0),re(oe,ae,me,"Ψ","\\Psi",!0),re(oe,ae,me,"Ω","\\Omega",!0),re(oe,ae,me,"A","Α"),re(oe,ae,me,"B","Β"),re(oe,ae,me,"E","Ε"),re(oe,ae,me,"Z","Ζ"),re(oe,ae,me,"H","Η"),re(oe,ae,me,"I","Ι"),re(oe,ae,me,"K","Κ"),re(oe,ae,me,"M","Μ"),re(oe,ae,me,"N","Ν"),re(oe,ae,me,"O","Ο"),re(oe,ae,me,"P","Ρ"),re(oe,ae,me,"T","Τ"),re(oe,ae,me,"X","Χ"),re(oe,ae,me,"¬","\\neg",!0),re(oe,ae,me,"¬","\\lnot"),re(oe,ae,me,"⊤","\\top"),re(oe,ae,me,"⊥","\\bot"),re(oe,ae,me,"∅","\\emptyset"),re(oe,ie,me,"∅","\\varnothing"),re(oe,ae,ue,"α","\\alpha",!0),re(oe,ae,ue,"β","\\beta",!0),re(oe,ae,ue,"γ","\\gamma",!0),re(oe,ae,ue,"δ","\\delta",!0),re(oe,ae,ue,"ϵ","\\epsilon",!0),re(oe,ae,ue,"ζ","\\zeta",!0),re(oe,ae,ue,"η","\\eta",!0),re(oe,ae,ue,"θ","\\theta",!0),re(oe,ae,ue,"ι","\\iota",!0),re(oe,ae,ue,"κ","\\kappa",!0),re(oe,ae,ue,"λ","\\lambda",!0),re(oe,ae,ue,"μ","\\mu",!0),re(oe,ae,ue,"ν","\\nu",!0),re(oe,ae,ue,"ξ","\\xi",!0),re(oe,ae,ue,"ο","\\omicron",!0),re(oe,ae,ue,"π","\\pi",!0),re(oe,ae,ue,"ρ","\\rho",!0),re(oe,ae,ue,"σ","\\sigma",!0),re(oe,ae,ue,"τ","\\tau",!0),re(oe,ae,ue,"υ","\\upsilon",!0),re(oe,ae,ue,"ϕ","\\phi",!0),re(oe,ae,ue,"χ","\\chi",!0),re(oe,ae,ue,"ψ","\\psi",!0),re(oe,ae,ue,"ω","\\omega",!0),re(oe,ae,ue,"ε","\\varepsilon",!0),re(oe,ae,ue,"ϑ","\\vartheta",!0),re(oe,ae,ue,"ϖ","\\varpi",!0),re(oe,ae,ue,"ϱ","\\varrho",!0),re(oe,ae,ue,"ς","\\varsigma",!0),re(oe,ae,ue,"φ","\\varphi",!0),re(oe,ae,se,"∗","*"),re(oe,ae,se,"+","+"),re(oe,ae,se,"−","-"),re(oe,ae,se,"⋅","\\cdot",!0),re(oe,ae,se,"∘","\\circ"),re(oe,ae,se,"÷","\\div",!0),re(oe,ae,se,"±","\\pm",!0),re(oe,ae,se,"×","\\times",!0),re(oe,ae,se,"∩","\\cap",!0),re(oe,ae,se,"∪","\\cup",!0),re(oe,ae,se,"∖","\\setminus"),re(oe,ae,se,"∧","\\land"),re(oe,ae,se,"∨","\\lor"),re(oe,ae,se,"∧","\\wedge",!0),re(oe,ae,se,"∨","\\vee",!0),re(oe,ae,me,"√","\\surd"),re(oe,ae,fe,"(","("),re(oe,ae,fe,"[","["),re(oe,ae,fe,"⟨","\\langle",!0),re(oe,ae,fe,"∣","\\lvert"),re(oe,ae,fe,"∥","\\lVert"),re(oe,ae,le,")",")"),re(oe,ae,le,"]","]"),re(oe,ae,le,"?","?"),re(oe,ae,le,"!","!"),re(oe,ae,le,"⟩","\\rangle",!0),re(oe,ae,le,"∣","\\rvert"),re(oe,ae,le,"∥","\\rVert"),re(oe,ae,pe,"=","="),re(oe,ae,pe,"<","<"),re(oe,ae,pe,">",">"),re(oe,ae,pe,":",":"),re(oe,ae,pe,"≈","\\approx",!0),re(oe,ae,pe,"≅","\\cong",!0),re(oe,ae,pe,"≥","\\ge"),re(oe,ae,pe,"≥","\\geq",!0),re(oe,ae,pe,"←","\\gets"),re(oe,ae,pe,">","\\gt"),re(oe,ae,pe,"∈","\\in",!0),re(oe,ae,pe,"","\\@not"),re(oe,ae,pe,"⊂","\\subset",!0),re(oe,ae,pe,"⊃","\\supset",!0),re(oe,ae,pe,"⊆","\\subseteq",!0),re(oe,ae,pe,"⊇","\\supseteq",!0),re(oe,ie,pe,"⊈","\\nsubseteq",!0),re(oe,ie,pe,"⊉","\\nsupseteq",!0),re(oe,ae,pe,"⊨","\\models"),re(oe,ae,pe,"←","\\leftarrow",!0),re(oe,ae,pe,"≤","\\le"),re(oe,ae,pe,"≤","\\leq",!0),re(oe,ae,pe,"<","\\lt"),re(oe,ae,pe,"→","\\rightarrow",!0),re(oe,ae,pe,"→","\\to"),re(oe,ie,pe,"≱","\\ngeq",!0),re(oe,ie,pe,"≰","\\nleq",!0),re(oe,ae,he," ","\\ "),re(oe,ae,he," ","~"),re(oe,ae,he," ","\\space"),re(oe,ae,he," ","\\nobreakspace"),re("text",ae,he," ","\\ "),re("text",ae,he," ","~"),re("text",ae,he," ","\\space"),re("text",ae,he," ","\\nobreakspace"),re(oe,ae,he,null,"\\nobreak"),re(oe,ae,he,null,"\\allowbreak"),re(oe,ae,"punct",",",","),re(oe,ae,"punct",";",";"),re(oe,ie,se,"⊼","\\barwedge",!0),re(oe,ie,se,"⊻","\\veebar",!0),re(oe,ae,se,"⊙","\\odot",!0),re(oe,ae,se,"⊕","\\oplus",!0),re(oe,ae,se,"⊗","\\otimes",!0),re(oe,ae,me,"∂","\\partial",!0),re(oe,ae,se,"⊘","\\oslash",!0),re(oe,ie,se,"⊚","\\circledcirc",!0),re(oe,ie,se,"⊡","\\boxdot",!0),re(oe,ae,se,"△","\\bigtriangleup"),re(oe,ae,se,"▽","\\bigtriangledown"),re(oe,ae,se,"†","\\dagger"),re(oe,ae,se,"⋄","\\diamond"),re(oe,ae,se,"⋆","\\star"),re(oe,ae,se,"◃","\\triangleleft"),re(oe,ae,se,"▹","\\triangleright"),re(oe,ae,fe,"{","\\{"),re("text",ae,me,"{","\\{"),re("text",ae,me,"{","\\textbraceleft"),re(oe,ae,le,"}","\\}"),re("text",ae,me,"}","\\}"),re("text",ae,me,"}","\\textbraceright"),re(oe,ae,fe,"{","\\lbrace"),re(oe,ae,le,"}","\\rbrace"),re(oe,ae,fe,"[","\\lbrack"),re("text",ae,me,"[","\\lbrack"),re(oe,ae,le,"]","\\rbrack"),re("text",ae,me,"]","\\rbrack"),re(oe,ae,fe,"(","\\lparen"),re(oe,ae,le,")","\\rparen"),re("text",ae,me,"<","\\textless"),re("text",ae,me,">","\\textgreater"),re(oe,ae,fe,"⌊","\\lfloor",!0),re(oe,ae,le,"⌋","\\rfloor",!0),re(oe,ae,fe,"⌈","\\lceil",!0),re(oe,ae,le,"⌉","\\rceil",!0),re(oe,ae,me,"\\","\\backslash"),re(oe,ae,me,"∣","|"),re(oe,ae,me,"∣","\\vert"),re("text",ae,me,"|","\\textbar"),re(oe,ae,me,"∥","\\|"),re(oe,ae,me,"∥","\\Vert"),re("text",ae,me,"∥","\\textbardbl"),re("text",ae,me,"~","\\textasciitilde"),re("text",ae,me,"\\","\\textbackslash"),re("text",ae,me,"^","\\textasciicircum"),re(oe,ae,pe,"↑","\\uparrow",!0),re(oe,ae,pe,"⇑","\\Uparrow",!0),re(oe,ae,pe,"↓","\\downarrow",!0),re(oe,ae,pe,"⇓","\\Downarrow",!0),re(oe,ae,pe,"↕","\\updownarrow",!0),re(oe,ae,pe,"⇕","\\Updownarrow",!0),re(oe,ae,de,"∐","\\coprod"),re(oe,ae,de,"⋁","\\bigvee"),re(oe,ae,de,"⋀","\\bigwedge"),re(oe,ae,de,"⨄","\\biguplus"),re(oe,ae,de,"⋂","\\bigcap"),re(oe,ae,de,"⋃","\\bigcup"),re(oe,ae,de,"∫","\\int"),re(oe,ae,de,"∫","\\intop"),re(oe,ae,de,"∬","\\iint"),re(oe,ae,de,"∭","\\iiint"),re(oe,ae,de,"∏","\\prod"),re(oe,ae,de,"∑","\\sum"),re(oe,ae,de,"⨂","\\bigotimes"),re(oe,ae,de,"⨁","\\bigoplus"),re(oe,ae,de,"⨀","\\bigodot"),re(oe,ae,de,"∮","\\oint"),re(oe,ae,de,"∯","\\oiint"),re(oe,ae,de,"∰","\\oiiint"),re(oe,ae,de,"⨆","\\bigsqcup"),re(oe,ae,de,"∫","\\smallint"),re("text",ae,"inner","…","\\textellipsis"),re(oe,ae,"inner","…","\\mathellipsis"),re("text",ae,"inner","…","\\ldots",!0),re(oe,ae,"inner","…","\\ldots",!0),re(oe,ae,"inner","⋯","\\@cdots",!0),re(oe,ae,"inner","⋱","\\ddots",!0),re(oe,ae,me,"⋮","\\varvdots"),re(oe,ae,ce,"ˊ","\\acute"),re(oe,ae,ce,"ˋ","\\grave"),re(oe,ae,ce,"¨","\\ddot"),re(oe,ae,ce,"~","\\tilde"),re(oe,ae,ce,"ˉ","\\bar"),re(oe,ae,ce,"˘","\\breve"),re(oe,ae,ce,"ˇ","\\check"),re(oe,ae,ce,"^","\\hat"),re(oe,ae,ce,"⃗","\\vec"),re(oe,ae,ce,"˙","\\dot"),re(oe,ae,ce,"˚","\\mathring"),re(oe,ae,ue,"ı","\\imath",!0),re(oe,ae,ue,"ȷ","\\jmath",!0),re("text",ae,me,"ı","\\i",!0),re("text",ae,me,"ȷ","\\j",!0),re("text",ae,me,"ß","\\ss",!0),re("text",ae,me,"æ","\\ae",!0),re("text",ae,me,"æ","\\ae",!0),re("text",ae,me,"œ","\\oe",!0),re("text",ae,me,"ø","\\o",!0),re("text",ae,me,"Æ","\\AE",!0),re("text",ae,me,"Œ","\\OE",!0),re("text",ae,me,"Ø","\\O",!0),re("text",ae,ce,"ˊ","\\'"),re("text",ae,ce,"ˋ","\\`"),re("text",ae,ce,"ˆ","\\^"),re("text",ae,ce,"˜","\\~"),re("text",ae,ce,"ˉ","\\="),re("text",ae,ce,"˘","\\u"),re("text",ae,ce,"˙","\\."),re("text",ae,ce,"˚","\\r"),re("text",ae,ce,"ˇ","\\v"),re("text",ae,ce,"¨",'\\"'),re("text",ae,ce,"˝","\\H"),re("text",ae,ce,"◯","\\textcircled");const ge={"--":!0,"---":!0,"``":!0,"''":!0};re("text",ae,me,"–","--"),re("text",ae,me,"–","\\textendash"),re("text",ae,me,"—","---"),re("text",ae,me,"—","\\textemdash"),re("text",ae,me,"‘","`"),re("text",ae,me,"‘","\\textquoteleft"),re("text",ae,me,"’","'"),re("text",ae,me,"’","\\textquoteright"),re("text",ae,me,"“","``"),re("text",ae,me,"“","\\textquotedblleft"),re("text",ae,me,"”","''"),re("text",ae,me,"”","\\textquotedblright"),re(oe,ae,me,"°","\\degree",!0),re("text",ae,me,"°","\\degree"),re("text",ae,me,"°","\\textdegree",!0),re(oe,ae,ue,"£","\\pounds"),re(oe,ae,ue,"£","\\mathsterling",!0),re("text",ae,ue,"£","\\pounds"),re("text",ae,ue,"£","\\textsterling",!0),re(oe,ie,me,"✠","\\maltese"),re("text",ie,me,"✠","\\maltese"),re("text",ae,he," ","\\ "),re("text",ae,he," "," "),re("text",ae,he," ","~");for(let e=0;e<'0123456789/@."'.length;e++){const t='0123456789/@."'.charAt(e);re(oe,ae,me,t,t)}for(let e=0;e<'0123456789!@*()-=+[]<>|";:?/.,'.length;e++){const t='0123456789!@*()-=+[]<>|";:?/.,'.charAt(e);re("text",ae,me,t,t)}const ve="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(let e=0;e=5?0:e>=3?1:2,!$[t]){const e=$[t]={cssEmPerMu:X.quad[t]/18};for(const n in X)X.hasOwnProperty(n)&&(e[n]=X[n][t])}return $[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Se.BASESIZE=6;const Oe={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},Ce={ex:!0,em:!0,mu:!0},Ee=function(e){return"string"!=typeof e&&(e=e.unit),e in Oe||e in Ce||"ex"===e},Me=function(e,t){let n;if(e.unit in Oe)n=Oe[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)n=t.fontMetrics().cssEmPerMu;else{let r;if(r=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)n=r.fontMetrics().xHeight;else{if("em"!==e.unit)throw new l("Invalid unit: '"+e.unit+"'");n=r.fontMetrics().quad}r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},Te=["\\imath","ı","\\jmath","ȷ","\\pounds","\\mathsterling","\\textsterling","£"],ze=function(e,t,n){return ne[n][e]&&ne[n][e].replace&&(e=ne[n][e].replace),{value:e,metrics:Z(e,t,n)}},Ae=function(e,t,n,r,o){const a=ze(e,t,n),i=a.metrics;let c;if(e=a.value,i){let t=i.italic;("text"===n||r&&"mathit"===r.font)&&(t=0),c=new U(e,i.height,i.depth,t,i.skew,i.width,o)}else c=new U(e,0,0,0,0,0,o);if(r){c.maxFontSize=r.sizeMultiplier,r.style.isTight()&&c.classes.push("mtight");const e=r.getColor();e&&(c.style.color=e)}return c},Pe=(e,t)=>{if(N(e.classes)!==N(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;for(const n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;for(const n in t.style)if(t.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;return!0},De=function(e){let t=0,n=0,r=0;for(let o=0;ot&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},je=function(e,t,n,r){const o=new V(e,t,n,r);return De(o),o},Ie=(e,t,n,r)=>new V(e,t,n,r),Ne=function(e){const t=new I(e);return De(t),t},Le=function(e,t,n){let r,o="";switch(e){case"amsrm":o="AMS";break;case"textrm":o="Main";break;case"textsf":o="SansSerif";break;case"texttt":o="Typewriter";break;default:o=e}return r="textbf"===t&&"textit"===n?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular",`${o}-${r}`},Re={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-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"}},He={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]};var Ve={fontMap:Re,makeSymbol:Ae,mathsym:function(e,t,n,r){return void 0===r&&(r=[]),"boldsymbol"===n.font&&ze(e,"Main-Bold",t).metrics?Ae(e,"Main-Bold",t,n,r.concat(["mathbf"])):"\\"===e||"main"===ne[t][e].font?Ae(e,"Main-Regular",t,n,r):Ae(e,"AMS-Regular",t,n,r.concat(["amsrm"]))},makeSpan:je,makeSvgSpan:Ie,makeLineSpan:function(e,t,n){const r=je([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=r.height+"em",r.maxFontSize=1,r},makeAnchor:function(e,t,n,r){const o=new B(e,t,n,r);return De(o),o},makeFragment:Ne,wrapFragment:function(e,t){return e instanceof I?je([],[e],t):e},makeVList:function(e,t){const n=function(e){if("individualShift"===e.positionType){const t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth;let o=r;for(let e=1;e{const n=je(["mspace"],[],t),r=Me(e,t);return n.style.marginRight=r+"em",n},staticSvg:function(e,t){const n=He[e],r=n[0],o=n[1],a=n[2],i=new Y(r),c=new W([i],{width:o+"em",height:a+"em",style:"width:"+o+"em",viewBox:"0 0 "+1e3*o+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),s=Ie(["overlay"],[c],t);return s.height=a,s.style.height=a+"em",s.style.width=o+"em",s},svgData:He,tryCombineChars:e=>{for(let t=0;t{const n=t.classes[0],r=e.classes[0];"mbin"===n&&h(at,r)?t.classes[0]="mord":"mbin"===r&&h(ot,n)&&(e.classes[0]="mord")},{node:i},c),lt(o,(e,t)=>{const n=dt(t),r=dt(e),o=n&&r?e.hasClass("mtight")?Xe[n][r]:Qe[n][r]:null;if(o)return Ve.makeGlue(o,a)},{node:i},c),o},lt=function e(t,n,r,o){o&&t.push(o);let a=0;for(;an=>{t.splice(e+1,0,n),a++})(a)}o&&t.pop()},ut=function(e){return e instanceof I||e instanceof B?e:null},dt=function(e,t){return e?(t&&(e=function e(t,n){const r=ut(t);if(r){const t=r.children;if(t.length){if("right"===n)return e(t[t.length-1],"right");if("left"===n)return e(t[0],"left")}}return t}(e,t)),ct[e.classes[0]]||null):null},ft=function(e,t){const n=["nulldelimiter"].concat(e.baseSizingClasses());return rt(t.concat(n))},pt=function(e,t,n){if(!e)return rt();if(Ze[e.type]){let r=Ze[e.type](e,t);if(n&&t.size!==n.size){r=rt(t.sizingClasses(n),[r],t);const e=t.sizeMultiplier/n.sizeMultiplier;r.height*=e,r.depth*=e}return r}throw new l("Got group of unknown type: '"+e.type+"'")};function ht(e,t){const n=rt(["base"],e,t),r=rt(["strut"]);return r.style.height=n.height+n.depth+"em",r.style.verticalAlign=-n.depth+"em",n.children.unshift(r),n}function mt(e,t){let n=null;1===e.length&&"tag"===e[0].type&&(n=e[0].tag,e=e[0].body);const r=st(e,t,!0),o=[];let a,i=[];for(let e=0;e0&&(o.push(ht(i,t)),i=[]),o.push(r[e]));i.length>0&&o.push(ht(i,t)),n&&(a=ht(st(n,t,!0)),a.classes=["tag"],o.push(a));const c=rt(["katex-html"],o);if(c.setAttribute("aria-hidden","true"),a){const e=a.children[0];e.style.height=c.height+c.depth+"em",e.style.verticalAlign=-c.depth+"em"}return c}function gt(e){return new I(e)}class vt{constructor(e,t){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=e,this.attributes={},this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){const e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(const t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(let t=0;t";for(let t=0;t",e}toText(){return this.children.map(e=>e.toText()).join("")}}class yt{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return g(this.toText())}toText(){return this.text}}var bt={MathNode:vt,TextNode:yt,SpaceNode:class{constructor(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}toNode(){if(this.character)return document.createTextNode(this.character);{const e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",this.width+"em"),e}}toMarkup(){return this.character?`${this.character}`:``}toText(){return this.character?this.character:" "}},newDocumentFragment:gt};const xt=function(e,t,n){return!ne[t][e]||!ne[t][e].replace||55349===e.charCodeAt(0)||ge.hasOwnProperty(e)&&n&&(n.fontFamily&&"tt"===n.fontFamily.substr(4,2)||n.font&&"tt"===n.font.substr(4,2))||(e=ne[t][e].replace),new bt.TextNode(e)},wt=function(e){return 1===e.length?e[0]:new bt.MathNode("mrow",e)},_t=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";const n=t.font;if(!n||"mathnormal"===n)return null;const r=e.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"bold-italic";if("mathbf"===n)return"bold";if("mathbb"===n)return"double-struck";if("mathfrak"===n)return"fraktur";if("mathscr"===n||"mathcal"===n)return"script";if("mathsf"===n)return"sans-serif";if("mathtt"===n)return"monospace";let o=e.text;return h(["\\imath","\\jmath"],o)?null:(ne[r][o]&&ne[r][o].replace&&(o=ne[r][o].replace),Z(o,Ve.fontMap[n].fontName,r)?Ve.fontMap[n].variant:null)},kt=function(e,t,n){if(1===e.length){const r=Ot(e[0],t);return n&&r instanceof vt&&"mo"===r.type&&(r.setAttribute("lspace","0em"),r.setAttribute("rspace","0em")),[r]}const r=[];let o;for(let n=0;n0&&(e.text=e.text.slice(0,1)+"̸"+e.text.slice(1),r.pop())}}}r.push(a),o=a}return r},St=function(e,t,n){return wt(kt(e,t,n))},Ot=function(e,t){if(!e)return new bt.MathNode("mrow");if($e[e.type])return $e[e.type](e,t);throw new l("Got group of unknown type: '"+e.type+"'")};function Ct(e,t,n,r){const o=kt(e,n);let a;a=1===o.length&&o[0]instanceof vt&&h(["mrow","mtable"],o[0].type)?o[0]:new bt.MathNode("mrow",o);const i=new bt.MathNode("annotation",[new bt.TextNode(t)]);i.setAttribute("encoding","application/x-tex");const c=new bt.MathNode("semantics",[a,i]),s=new bt.MathNode("math",[c]);s.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");return Ve.makeSpan([r?"katex":"katex-mathml"],[s])}const Et=function(e){return new Se({style:e.displayMode?z.DISPLAY:z.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},Mt=function(e,t){if(t.displayMode){const n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=Ve.makeSpan(n,[e])}return e},Tt={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:"⇋"},zt={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"],xleftarrow:[["leftarrow"],1.469,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"],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]};var At=function(e){const t=new bt.MathNode("mo",[new bt.TextNode(Tt[e.substr(1)])]);return t.setAttribute("stretchy","true"),t},Pt=function(e,t){const n=function(){let n=4e5;const r=e.label.substr(1);if(h(["widehat","widecheck","widetilde","utilde"],r)){const a="ordgroup"===(o=e.base).type?o.body.length:1;let i,c,s;if(a>5)"widehat"===r||"widecheck"===r?(i=420,n=2364,s=.42,c=r+"4"):(i=312,n=2340,s=.34,c="tilde4");else{const e=[1,1,2,2,3,3][a];"widehat"===r||"widecheck"===r?(n=[0,1062,2364,2364,2364][e],i=[0,239,300,360,420][e],s=[0,.24,.3,.3,.36,.42][e],c=r+e):(n=[0,600,1033,2339,2340][e],i=[0,260,286,306,312][e],s=[0,.26,.286,.3,.306,.34][e],c="tilde"+e)}const l=new Y(c),u=new W([l],{width:"100%",height:s+"em",viewBox:`0 0 ${n} ${i}`,preserveAspectRatio:"none"});return{span:Ve.makeSvgSpan([],[u],t),minWidth:0,height:s}}{const e=[],o=zt[r],a=o[0],i=o[1],c=o[2],s=c/1e3,l=a.length;let u,d;if(1===l){const e=o[3];u=["hide-tail"],d=[e]}else if(2===l)u=["halfarrow-left","halfarrow-right"],d=["xMinYMin","xMaxYMin"];else{if(3!==l)throw new Error(`Correct katexImagesData or update code here to support\n ${l} children.`);u=["brace-left","brace-center","brace-right"],d=["xMinYMin","xMidYMin","xMaxYMin"]}for(let r=0;r0&&(r.style.minWidth=o+"em"),r};const Dt=(e,t)=>{let n,r;const o=Fe(e,"supsub");let a;o?(r=Be(o.base,"accent"),n=r.base,o.base=n,a=function(e){if(e instanceof V)return e;throw new Error(`Expected span but got ${String(e)}.`)}(pt(o,t)),o.base=r):(r=Be(e,"accent"),n=r.base);const i=pt(n,t.havingCrampedStyle());let c=0;if(r.isShifty&&b(n)){const e=y(n);c=K(pt(e,t.havingCrampedStyle())).skew}let s,l=Math.min(i.height,t.fontMetrics().xHeight);if(r.isStretchy)s=Pt(r,t),s=Ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:s,wrapperClasses:["svg-align"],wrapperStyle:c>0?{width:`calc(100% - ${2*c}em)`,marginLeft:2*c+"em"}:void 0}]},t);else{let e,n;"\\vec"===r.label?(e=Ve.staticSvg("vec",t),n=Ve.svgData.vec[1]):(e=Ve.makeOrd({mode:r.mode,text:r.label},t,"textord"),e=K(e),e.italic=0,n=e.width),s=Ve.makeSpan(["accent-body"],[e]);const o="\\textcircled"===r.label;o&&(s.classes.push("accent-full"),l=i.height);let a=c;o||(a-=n/2),s.style.left=a+"em","\\textcircled"===r.label&&(s.style.top=".2em"),s=Ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-l},{type:"elem",elem:s}]},t)}const u=Ve.makeSpan(["mord","accent"],[s],t);return a?(a.children[0]=u,a.height=Math.max(u.height,a.height),a.classes[0]="mord",a):u},jt=(e,t)=>{const n=e.isStretchy?At(e.label):new bt.MathNode("mo",[xt(e.label,e.mode)]),r=new bt.MathNode("mover",[Ot(e.base,t),n]);return r.setAttribute("accent","true"),r},It=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));et({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:(e,t)=>{const n=t[0],r=!It.test(e.funcName),o=!r||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:o,base:n}},htmlBuilder:Dt,mathmlBuilder:jt}),et({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:(e,t)=>{const n=t[0];return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:Dt,mathmlBuilder:jt}),et({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{let n=e.parser,r=e.funcName;const o=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:o}},htmlBuilder:(e,t)=>{const n=pt(e.base,t),r=Pt(e,t),o="\\utilde"===e.label?.12:0,a=Ve.makeVList({positionType:"bottom",positionData:r.height+o,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:n}]},t);return Ve.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{const n=At(e.label),r=new bt.MathNode("munder",[Ot(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});const Nt=e=>{const t=new bt.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};et({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"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){let r=e.parser,o=e.funcName;return{type:"xArrow",mode:r.mode,label:o,body:t[0],below:n[0]}},htmlBuilder(e,t){const n=t.style;let r=t.havingStyle(n.sup());const o=Ve.wrapFragment(pt(e.body,r,t),t);let a;o.classes.push("x-arrow-pad"),e.below&&(r=t.havingStyle(n.sub()),a=Ve.wrapFragment(pt(e.below,r,t),t),a.classes.push("x-arrow-pad"));const i=Pt(e,t),c=-t.fontMetrics().axisHeight+.5*i.height;let s,l=-t.fontMetrics().axisHeight-.5*i.height-.111;if((o.depth>.25||"\\xleftequilibrium"===e.label)&&(l-=o.depth),a){const e=-t.fontMetrics().axisHeight+a.height+.5*i.height+.111;s=Ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:l},{type:"elem",elem:i,shift:c},{type:"elem",elem:a,shift:e}]},t)}else s=Ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:l},{type:"elem",elem:i,shift:c}]},t);return s.children[0].children[0].children[1].classes.push("svg-align"),Ve.makeSpan(["mrel","x-arrow"],[s],t)},mathmlBuilder(e,t){const n=At(e.label);let r;if(e.body){const o=Nt(Ot(e.body,t));if(e.below){const a=Nt(Ot(e.below,t));r=new bt.MathNode("munderover",[n,a,o])}else r=new bt.MathNode("mover",[n,o])}else if(e.below){const o=Nt(Ot(e.below,t));r=new bt.MathNode("munder",[n,o])}else r=Nt(),r=new bt.MathNode("mover",[n,r]);return r}}),et({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){let n=e.parser;const r=Be(t[0],"ordgroup").body;let o="";for(let e=0;e{const n=st(e.body,t.withColor(e.color),!1);return Ve.makeFragment(n)},Rt=(e,t)=>{const n=kt(e.body,t.withColor(e.color)),r=new bt.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};et({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler(e,t){let n=e.parser;const r=Be(t[0],"color-token").color,o=t[1];return{type:"color",mode:n.mode,color:r,body:nt(o)}},htmlBuilder:Lt,mathmlBuilder:Rt}),et({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler(e,t){let n=e.parser,r=e.breakOnTokenText;const o=Be(t[0],"color-token").color;n.gullet.macros.set("\\current@color",o);const a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:o,body:a}},htmlBuilder:Lt,mathmlBuilder:Rt}),et({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler(e,t,n){let r=e.parser,o=e.funcName;const a=n[0],i="\\cr"===o;let c=!1;return i||(c=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")),{type:"cr",mode:r.mode,newLine:c,newRow:i,size:a&&Be(a,"size").value}},htmlBuilder(e,t){if(e.newRow)throw new l("\\cr valid only within a tabular/array environment");const n=Ve.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=Me(e.size,t)+"em")),n},mathmlBuilder(e,t){const n=new bt.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",Me(e.size,t)+"em")),n}});const Ht=function(e,t,n){const r=Z(ne.math[e]&&ne.math[e].replace||e,t,n);if(!r)throw new Error(`Unsupported symbol ${e} and font size ${t}.`);return r},Vt=function(e,t,n,r){const o=n.havingBaseStyle(t),a=Ve.makeSpan(r.concat(o.sizingClasses(n)),[e],n),i=o.sizeMultiplier/n.sizeMultiplier;return a.height*=i,a.depth*=i,a.maxFontSize=o.sizeMultiplier,a},Bt=function(e,t,n){const r=t.havingBaseStyle(n),o=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=o+"em",e.height-=o,e.depth+=o},Ft=function(e,t,n,r,o,a){const i=function(e,t,n,r){return Ve.makeSymbol(e,"Size"+t+"-Regular",n,r)}(e,t,o,r),c=Vt(Ve.makeSpan(["delimsizing","size"+t],[i],r),z.TEXT,r,a);return n&&Bt(c,r,z.TEXT),c},qt=function(e,t,n){let r;return r="Size1-Regular"===t?"delim-size1":"delim-size4",{type:"elem",elem:Ve.makeSpan(["delimsizinginner",r],[Ve.makeSpan([],[Ve.makeSymbol(e,t,n)])])}},Ut={type:"kern",size:-.005},Wt=function(e,t,n,r,o,a){let i,c,s,l;i=s=l=e,c=null;let u="Size1-Regular";"\\uparrow"===e?s=l="⏐":"\\Uparrow"===e?s=l="‖":"\\downarrow"===e?i=s="⏐":"\\Downarrow"===e?i=s="‖":"\\updownarrow"===e?(i="\\uparrow",s="⏐",l="\\downarrow"):"\\Updownarrow"===e?(i="\\Uparrow",s="‖",l="\\Downarrow"):"["===e||"\\lbrack"===e?(i="⎡",s="⎢",l="⎣",u="Size4-Regular"):"]"===e||"\\rbrack"===e?(i="⎤",s="⎥",l="⎦",u="Size4-Regular"):"\\lfloor"===e||"⌊"===e?(s=i="⎢",l="⎣",u="Size4-Regular"):"\\lceil"===e||"⌈"===e?(i="⎡",s=l="⎢",u="Size4-Regular"):"\\rfloor"===e||"⌋"===e?(s=i="⎥",l="⎦",u="Size4-Regular"):"\\rceil"===e||"⌉"===e?(i="⎤",s=l="⎥",u="Size4-Regular"):"("===e||"\\lparen"===e?(i="⎛",s="⎜",l="⎝",u="Size4-Regular"):")"===e||"\\rparen"===e?(i="⎞",s="⎟",l="⎠",u="Size4-Regular"):"\\{"===e||"\\lbrace"===e?(i="⎧",c="⎨",l="⎩",s="⎪",u="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(i="⎫",c="⎬",l="⎭",s="⎪",u="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(i="⎧",l="⎩",s="⎪",u="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(i="⎫",l="⎭",s="⎪",u="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(i="⎧",l="⎭",s="⎪",u="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(i="⎫",l="⎩",s="⎪",u="Size4-Regular");const d=Ht(i,u,o),f=d.height+d.depth,p=Ht(s,u,o),h=p.height+p.depth,m=Ht(l,u,o),g=m.height+m.depth;let v=0,y=1;if(null!==c){const e=Ht(c,u,o);v=e.height+e.depth,y=2}const b=f+g+v,x=Math.max(0,Math.ceil((t-b)/(y*h))),w=b+x*y*h;let _=r.fontMetrics().axisHeight;n&&(_*=r.sizeMultiplier);const k=w/2-_,S=.005*(x+1)-h,O=[];if(O.push(qt(l,u,o)),null===c)for(let e=0;e","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Xt=[0,1.2,1.8,2.4,3],Jt=[{type:"small",style:z.SCRIPTSCRIPT},{type:"small",style:z.SCRIPT},{type:"small",style:z.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Zt=[{type:"small",style:z.SCRIPTSCRIPT},{type:"small",style:z.SCRIPT},{type:"small",style:z.TEXT},{type:"stack"}],$t=[{type:"small",style:z.SCRIPTSCRIPT},{type:"small",style:z.SCRIPT},{type:"small",style:z.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],en=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.`)},tn=function(e,t,n,r){for(let o=Math.min(2,3-r.style.size);ot)return n[o]}return n[n.length-1]},nn=function(e,t,n,r,o,a){let i;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),i=h(Qt,e)?Jt:h(Gt,e)?$t:Zt;const c=tn(e,t,i,r);return"small"===c.type?function(e,t,n,r,o,a){const i=Ve.makeSymbol(e,"Main-Regular",o,r),c=Vt(i,t,r,a);return n&&Bt(c,r,t),c}(e,c.style,n,r,o,a):"large"===c.type?Ft(e,c.size,n,r,o,a):Wt(e,t,n,r,o,a)};var rn=function(e,t,n,r,o){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),h(Gt,e)||h(Qt,e))return Ft(e,t,!1,n,r,o);if(h(Kt,e))return Wt(e,Xt[t],!1,n,r,o);throw new l("Illegal delimiter: '"+e+"'")},on=nn,an=function(e,t,n,r,o,a){const i=r.fontMetrics().axisHeight*r.sizeMultiplier,c=5/r.fontMetrics().ptPerEm,s=Math.max(t-i,n+i),l=Math.max(s/500*901,2*s-c);return nn(e,l,!0,r,o,a)};const cn={"\\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}},sn=["(","\\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 ln(e,t){const n=We(e);if(n&&h(sn,n.text))return n;throw new l("Invalid delimiter: '"+(n?n.text:JSON.stringify(e))+"' after '"+t.funcName+"'",e)}function un(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}et({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:(e,t)=>{const n=ln(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:cn[e.funcName].size,mclass:cn[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>"."===e.delim?Ve.makeSpan([e.mclass]):rn(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{const t=[];"."!==e.delim&&t.push(xt(e.delim,e.mode));const n=new bt.MathNode("mo",t);return"mopen"===e.mclass||"mclose"===e.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n}}),et({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:(e,t)=>{const n=e.parser.gullet.macros.get("\\current@color");if(n&&"string"!=typeof n)throw new l("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:ln(t[0],e).text,color:n}}}),et({type:"leftright",names:["\\left"],props:{numArgs:1},handler:(e,t)=>{const n=ln(t[0],e),r=e.parser;++r.leftrightDepth;const o=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);const a=Be(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:o,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{un(e);const n=st(e.body,t,!0,["mopen","mclose"]);let r,o,a=0,i=0,c=!1;for(let e=0;e{un(e);const n=kt(e.body,t);if("."!==e.left){const t=new bt.MathNode("mo",[xt(e.left,e.mode)]);t.setAttribute("fence","true"),n.unshift(t)}if("."!==e.right){const t=new bt.MathNode("mo",[xt(e.right,e.mode)]);t.setAttribute("fence","true"),e.rightColor&&t.setAttribute("mathcolor",e.rightColor),n.push(t)}return wt(n)}}),et({type:"middle",names:["\\middle"],props:{numArgs:1},handler:(e,t)=>{const n=ln(t[0],e);if(!e.parser.leftrightDepth)throw new l("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{let n;if("."===e.delim)n=ft(t,[]);else{n=rn(e.delim,1,t,e.mode,[]);const r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{const n="\\vert"===e.delim||"|"===e.delim?xt("|","text"):xt(e.delim,e.mode),r=new bt.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});const dn=(e,t)=>{const n=Ve.wrapFragment(pt(e.body,t),t),r=e.label.substr(1),o=t.sizeMultiplier;let a,i=0;const c=b(e.body);if("sout"===r)a=Ve.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/o,i=-.5*t.fontMetrics().xHeight;else{/cancel/.test(r)?c||n.classes.push("cancel-pad"):n.classes.push("boxpad");let o=0,s=0;/box/.test(r)?(s=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),o=t.fontMetrics().fboxsep+("colorbox"===r?0:s)):o=c?.2:0,a=function(e,t,n,r){let o;const a=e.height+e.depth+2*n;if(/fbox|color/.test(t)){if(o=Ve.makeSpan(["stretchy",t],[],r),"fbox"===t){const e=r.color&&r.getColor();e&&(o.style.borderColor=e)}}else{const e=[];/^[bx]cancel$/.test(t)&&e.push(new G({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&e.push(new G({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));const n=new W(e,{width:"100%",height:a+"em"});o=Ve.makeSvgSpan([],[n],r)}return o.height=a,o.style.height=a+"em",o}(n,r,o,t),/fbox|boxed|fcolorbox/.test(r)&&(a.style.borderStyle="solid",a.style.borderWidth=s+"em"),i=n.depth+o,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}let s;return s=e.backgroundColor?Ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:i},{type:"elem",elem:n,shift:0}]},t):Ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:a,shift:i,wrapperClasses:/cancel/.test(r)?["svg-align"]:[]}]},t),/cancel/.test(r)&&(s.height=n.height,s.depth=n.depth),/cancel/.test(r)&&!c?Ve.makeSpan(["mord","cancel-lap"],[s],t):Ve.makeSpan(["mord"],[s],t)},fn=(e,t)=>{let n=0;const r=new bt.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Ot(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width",`+${2*n}pt`),r.setAttribute("height",`+${2*n}pt`),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),"\\fcolorbox"===e.label){const n=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+n+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};et({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler(e,t,n){let r=e.parser,o=e.funcName;const a=Be(t[0],"color-token").color,i=t[1];return{type:"enclose",mode:r.mode,label:o,backgroundColor:a,body:i}},htmlBuilder:dn,mathmlBuilder:fn}),et({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler(e,t,n){let r=e.parser,o=e.funcName;const a=Be(t[0],"color-token").color,i=Be(t[1],"color-token").color,c=t[2];return{type:"enclose",mode:r.mode,label:o,backgroundColor:i,borderColor:a,body:c}},htmlBuilder:dn,mathmlBuilder:fn}),et({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:(e,t)=>({type:"enclose",mode:e.parser.mode,label:"\\fbox",body:t[0]})}),et({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler(e,t,n){let r=e.parser,o=e.funcName;const a=t[0];return{type:"enclose",mode:r.mode,label:o,body:a}},htmlBuilder:dn,mathmlBuilder:fn});const pn={};function hn(e){let t=e.type,n=e.names,r=e.props,o=e.handler,a=e.htmlBuilder,i=e.mathmlBuilder;const c={type:t,numArgs:r.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:o};for(let e=0;e0&&(b+=.25),s.push({pos:b,isDashed:e[t]})}for(x(a[0]),n=0;n0&&(f+=y,l=i)continue;(r>0||e.hskipBeforeAndAfter)&&(a=m(s.pregap,f),0!==a&&(S=Ve.makeSpan(["arraycolsep"],[]),S.style.width=a+"em",k.push(S)));let p=[];for(n=0;n0){const e=Ve.makeLineSpan("hline",t,u),n=Ve.makeLineSpan("hdashline",t,u),r=[{type:"elem",elem:c,shift:0}];for(;s.length>0;){const t=s.pop(),o=t.pos-w;t.isDashed?r.push({type:"elem",elem:n,shift:o}):r.push({type:"elem",elem:e,shift:o})}c=Ve.makeVList({positionType:"individualShift",children:r},t)}return Ve.makeSpan(["mord"],[c],t)},bn={c:"center ",l:"left ",r:"right "},xn=function(e,t){let n=new bt.MathNode("mtable",e.body.map((function(e){return new bt.MathNode("mtr",e.map((function(e){return new bt.MathNode("mtd",[Ot(e,t)])})))})));const r=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);n.setAttribute("rowspacing",r+"em");let o="",a="";if(e.cols){const t=e.cols;let r="",i=!1,c=0,s=t.length;"separator"===t[0].type&&(o+="top ",c=1),"separator"===t[t.length-1].type&&(o+="bottom ",s-=1);for(let e=c;e0?"left ":"",o+=c[c.length-1].length>0?"right ":"";for(let e=1;e0&&s&&(r=1),n[e]={type:"align",align:t,pregap:r,postgap:0}}return r.colSeparationType=s?"align":"alignat",r};hn({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){const n={cols:(We(t[0])?[t[0]]:Be(t[0],"ordgroup").body).map((function(e){const t=Ue(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 l("Unknown column alignment: "+t,e)})),hskipBeforeAndAfter:!0};return gn(e.parser,n,vn(e.envName))},htmlBuilder:yn,mathmlBuilder:xn}),hn({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler(e){const t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName],n=gn(e.parser,{hskipBeforeAndAfter:!1},vn(e.envName));return t?{type:"leftright",mode:e.mode,body:[n],left:t[0],right:t[1],rightColor:void 0}:n},htmlBuilder:yn,mathmlBuilder:xn}),hn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){const t=gn(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:yn,mathmlBuilder:xn}),hn({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){const n=(We(t[0])?[t[0]]:Be(t[0],"ordgroup").body).map((function(e){const t=Ue(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new l("Unknown column alignment: "+t,e)}));if(n.length>1)throw new l("{subarray} can contain only one column");let r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if(r=gn(e.parser,r,"script"),r.body[0].length>1)throw new l("{subarray} can contain only one column");return r},htmlBuilder:yn,mathmlBuilder:xn}),hn({type:"array",names:["cases","dcases"],props:{numArgs:0},handler(e){const t=gn(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},vn(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:yn,mathmlBuilder:xn}),hn({type:"array",names:["aligned"],props:{numArgs:0},handler:wn,htmlBuilder:yn,mathmlBuilder:xn}),hn({type:"array",names:["gathered"],props:{numArgs:0},handler:e=>gn(e.parser,{cols:[{type:"align",align:"c"}],addJot:!0},"display"),htmlBuilder:yn,mathmlBuilder:xn}),hn({type:"array",names:["alignedat"],props:{numArgs:1},handler:wn,htmlBuilder:yn,mathmlBuilder:xn}),et({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new l(e.funcName+" valid only within array environment")}});const _n=pn;et({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){let n=e.parser,r=e.funcName;const o=t[0];if("ordgroup"!==o.type)throw new l("Invalid environment name",o);let a="";for(let e=0;e{const t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};et({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:(e,t)=>({type:"mclass",mode:e.parser.mode,mclass:Cn(t[0]),body:[t[1]],isCharacterBox:b(t[1])})}),et({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){let n=e.parser,r=e.funcName;const o=t[1],a=t[0];let i;i="\\stackrel"!==r?Cn(o):"mrel";const c={type:"op",mode:o.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==r,body:nt(o)},s={type:"supsub",mode:a.mode,base:c,sup:"\\underset"===r?null:a,sub:"\\underset"===r?a:null};return{type:"mclass",mode:n.mode,mclass:i,body:[s],isCharacterBox:b(s)}},htmlBuilder:Sn,mathmlBuilder:On});const En=(e,t)=>{const n=e.font,r=t.withFont(n);return pt(e.body,r)},Mn=(e,t)=>{const n=e.font,r=t.withFont(n);return Ot(e.body,r)},Tn={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};et({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:(e,t)=>{let n=e.parser,r=e.funcName;const o=t[0];let a=r;return a in Tn&&(a=Tn[a]),{type:"font",mode:n.mode,font:a.slice(1),body:o}},htmlBuilder:En,mathmlBuilder:Mn}),et({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:(e,t)=>{let n=e.parser;const r=t[0],o=b(r);return{type:"mclass",mode:n.mode,mclass:Cn(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:o}}}),et({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{let n=e.parser,r=e.funcName,o=e.breakOnTokenText;const a=n.mode,i=n.parseExpression(!0,o);return{type:"font",mode:a,font:"math"+r.slice(1),body:{type:"ordgroup",mode:n.mode,body:i}}},htmlBuilder:En,mathmlBuilder:Mn});const zn=(e,t)=>{let n=t;return"display"===e?n=n.id>=z.SCRIPT.id?n.text():z.DISPLAY:"text"===e&&n.size===z.DISPLAY.size?n=z.TEXT:"script"===e?n=z.SCRIPT:"scriptscript"===e&&(n=z.SCRIPTSCRIPT),n},An=(e,t)=>{const n=zn(e.size,t.style),r=n.fracNum(),o=n.fracDen();let a;a=t.havingStyle(r);const i=pt(e.numer,a,t);if(e.continued){const e=8.5/t.fontMetrics().ptPerEm,n=3.5/t.fontMetrics().ptPerEm;i.height=i.height0?3*u:7*u,p=t.fontMetrics().denom1):(l>0?(d=t.fontMetrics().num2,f=u):(d=t.fontMetrics().num3,f=3*u),p=t.fontMetrics().denom2),s){const e=t.fontMetrics().axisHeight;d-i.depth-(e+.5*l){let n=new bt.MathNode("mfrac",[Ot(e.numer,t),Ot(e.denom,t)]);if(e.hasBarLine){if(e.barSize){const r=Me(e.barSize,t);n.setAttribute("linethickness",r+"em")}}else n.setAttribute("linethickness","0px");const r=zn(e.size,t.style);if(r.size!==t.style.size){n=new bt.MathNode("mstyle",[n]);const e=r.size===z.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",e),n.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){const t=[];if(null!=e.leftDelim){const n=new bt.MathNode("mo",[new bt.TextNode(e.leftDelim.replace("\\",""))]);n.setAttribute("fence","true"),t.push(n)}if(t.push(n),null!=e.rightDelim){const n=new bt.MathNode("mo",[new bt.TextNode(e.rightDelim.replace("\\",""))]);n.setAttribute("fence","true"),t.push(n)}return wt(t)}return n};et({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:(e,t)=>{let n=e.parser,r=e.funcName;const o=t[0],a=t[1];let i,c=null,s=null,l="auto";switch(r){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":i=!0;break;case"\\\\atopfrac":i=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":i=!1,c="(",s=")";break;case"\\\\bracefrac":i=!1,c="\\{",s="\\}";break;case"\\\\brackfrac":i=!1,c="[",s="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\cfrac":case"\\dfrac":case"\\dbinom":l="display";break;case"\\tfrac":case"\\tbinom":l="text"}return{type:"genfrac",mode:n.mode,continued:"\\cfrac"===r,numer:o,denom:a,hasBarLine:i,leftDelim:c,rightDelim:s,size:l,barSize:null}},htmlBuilder:An,mathmlBuilder:Pn}),et({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){let t,n=e.parser,r=e.funcName,o=e.token;switch(r){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:n.mode,replaceWith:t,token:o}}});const Dn=["display","text","script","scriptscript"],jn=function(e){let t=null;return e.length>0&&(t=e,t="."===t?null:t),t};et({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler(e,t){let n=e.parser;const r=t[4],o=t[5];let a=Fe(t[0],"atom");a&&(a=qe(t[0],"open"));const i=a?jn(a.text):null;let c=Fe(t[1],"atom");c&&(c=qe(t[1],"close"));const s=c?jn(c.text):null,l=Be(t[2],"size");let u,d=null;l.isBlank?u=!0:(d=l.value,u=d.number>0);let f="auto",p=Fe(t[3],"ordgroup");if(p){if(p.body.length>0){const e=Be(p.body[0],"textord");f=Dn[Number(e.text)]}}else p=Be(t[3],"textord"),f=Dn[Number(p.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:o,continued:!1,hasBarLine:u,barSize:d,leftDelim:i,rightDelim:s,size:f}},htmlBuilder:An,mathmlBuilder:Pn}),et({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){let n=e.parser,r=(e.funcName,e.token);return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:Be(t[0],"size").value,token:r}}}),et({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{let n=e.parser;e.funcName;const r=t[0],o=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(Be(t[1],"infix").size),a=t[2],i=o.number>0;return{type:"genfrac",mode:n.mode,numer:r,denom:a,continued:!1,hasBarLine:i,barSize:o,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:An,mathmlBuilder:Pn});const In=(e,t)=>{const n=t.style;let r,o;const a=Fe(e,"supsub");a?(r=a.sup?pt(a.sup,t.havingStyle(n.sup()),t):pt(a.sub,t.havingStyle(n.sub()),t),o=Be(a.base,"horizBrace")):o=Be(e,"horizBrace");const i=pt(o.base,t.havingBaseStyle(z.DISPLAY)),c=Pt(o,t);let s;if(o.isOver?(s=Ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:c}]},t),s.children[0].children[0].children[1].classes.push("svg-align")):(s=Ve.makeVList({positionType:"bottom",positionData:i.depth+.1+c.height,children:[{type:"elem",elem:c},{type:"kern",size:.1},{type:"elem",elem:i}]},t),s.children[0].children[0].children[0].classes.push("svg-align")),r){const e=Ve.makeSpan(["mord",o.isOver?"mover":"munder"],[s],t);s=o.isOver?Ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:e},{type:"kern",size:.2},{type:"elem",elem:r}]},t):Ve.makeVList({positionType:"bottom",positionData:e.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:e}]},t)}return Ve.makeSpan(["mord",o.isOver?"mover":"munder"],[s],t)};et({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){let n=e.parser,r=e.funcName;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:In,mathmlBuilder:(e,t)=>{const n=At(e.label);return new bt.MathNode(e.isOver?"mover":"munder",[Ot(e.base,t),n])}}),et({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{let n=e.parser;const r=t[1],o=Be(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:n.mode,href:o,body:nt(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{const n=st(e.body,t,!1);return Ve.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{let n=St(e.body,t);return n instanceof vt||(n=new vt("mrow",[n])),n.setAttribute("href",e.href),n}}),et({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{let n=e.parser;const r=Be(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");const o=[];for(let e=0;e({type:"htmlmathml",mode:e.parser.mode,html:nt(t[0]),mathml:nt(t[1])}),htmlBuilder:(e,t)=>{const n=st(e.html,t,!1);return Ve.makeFragment(n)},mathmlBuilder:(e,t)=>St(e.mathml,t)});const Nn=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};{const t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new l("Invalid size: '"+e+"' in \\includegraphics");const n={number:+(t[1]+t[2]),unit:t[3]};if(!Ee(n))throw new l("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n}};et({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{let r=e.parser,o={number:0,unit:"em"},a={number:.9,unit:"em"},i={number:0,unit:"em"},c="";if(n[0]){const e=Be(n[0],"raw").string.split(",");for(let t=0;t{const n=Me(e.height,t);let r=0;e.totalheight.number>0&&(r=Me(e.totalheight,t)-n,r=Number(r.toFixed(2)));let o=0;e.width.number>0&&(o=Me(e.width,t));const a={height:n+r+"em"};o>0&&(a.width=o+"em"),r>0&&(a.verticalAlign=-r+"em");const i=new F(e.src,e.alt,a);return i.height=n,i.depth=r,i},mathmlBuilder:(e,t)=>{const n=new bt.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);const r=Me(e.height,t);let o=0;if(e.totalheight.number>0&&(o=Me(e.totalheight,t)-r,o=o.toFixed(2),n.setAttribute("valign","-"+o+"em")),n.setAttribute("height",r+o+"em"),e.width.number>0){const r=Me(e.width,t);n.setAttribute("width",r+"em")}return n.setAttribute("src",e.src),n}}),et({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler(e,t){let n=e.parser,r=e.funcName;const o=Be(t[0],"size");if(n.settings.strict){const e="m"===r[1],t="mu"===o.value.unit;e?(t||n.settings.reportNonstrict("mathVsTextUnits",`LaTeX's ${r} supports only mu units, not ${o.value.unit} units`),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits",`LaTeX's ${r} works only in math mode`)):t&&n.settings.reportNonstrict("mathVsTextUnits",`LaTeX's ${r} doesn't support mu units`)}return{type:"kern",mode:n.mode,dimension:o.value}},htmlBuilder:(e,t)=>Ve.makeGlue(e.dimension,t),mathmlBuilder(e,t){const n=Me(e.dimension,t);return new bt.SpaceNode(n)}}),et({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{let n=e.parser,r=e.funcName;const o=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:o}},htmlBuilder:(e,t)=>{let n;"clap"===e.alignment?(n=Ve.makeSpan([],[pt(e.body,t)]),n=Ve.makeSpan(["inner"],[n],t)):n=Ve.makeSpan(["inner"],[pt(e.body,t)]);const r=Ve.makeSpan(["fix"],[]);let o=Ve.makeSpan([e.alignment],[n,r],t);const a=Ve.makeSpan(["strut"]);return a.style.height=o.height+o.depth+"em",a.style.verticalAlign=-o.depth+"em",o.children.unshift(a),o=Ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o}]},t),Ve.makeSpan(["mord"],[o],t)},mathmlBuilder:(e,t)=>{const n=new bt.MathNode("mpadded",[Ot(e.body,t)]);if("rlap"!==e.alignment){const t="llap"===e.alignment?"-1":"-0.5";n.setAttribute("lspace",t+"width")}return n.setAttribute("width","0px"),n}}),et({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){let n=e.funcName,r=e.parser;const o=r.mode;r.switchMode("math");const a="\\("===n?"\\)":"$",i=r.parseExpression(!1,a);return r.expect(a),r.switchMode(o),{type:"styling",mode:r.mode,style:"text",body:i}}}),et({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new l("Mismatched "+e.funcName)}});const Ln=(e,t)=>{switch(t.style.size){case z.DISPLAY.size:return e.display;case z.TEXT.size:return e.text;case z.SCRIPT.size:return e.script;case z.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};et({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:(e,t)=>({type:"mathchoice",mode:e.parser.mode,display:nt(t[0]),text:nt(t[1]),script:nt(t[2]),scriptscript:nt(t[3])}),htmlBuilder:(e,t)=>{const n=Ln(e,t),r=st(n,t,!1);return Ve.makeFragment(r)},mathmlBuilder:(e,t)=>{const n=Ln(e,t);return St(n,t)}});const Rn=(e,t,n,r,o,a,i)=>{let c,s,l;if(e=Ve.makeSpan([],[e]),t){const e=pt(t,r.havingStyle(o.sup()),r);s={elem:e,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-e.depth)}}if(n){const e=pt(n,r.havingStyle(o.sub()),r);c={elem:e,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-e.height)}}if(s&&c){const t=r.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+i;l=Ve.makeVList({positionType:"bottom",positionData:t,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:-a+"em"},{type:"kern",size:c.kern},{type:"elem",elem:e},{type:"kern",size:s.kern},{type:"elem",elem:s.elem,marginLeft:a+"em"},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(c){const t=e.height-i;l=Ve.makeVList({positionType:"top",positionData:t,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:-a+"em"},{type:"kern",size:c.kern},{type:"elem",elem:e}]},r)}else{if(!s)return e;{const t=e.depth+i;l=Ve.makeVList({positionType:"bottom",positionData:t,children:[{type:"elem",elem:e},{type:"kern",size:s.kern},{type:"elem",elem:s.elem,marginLeft:a+"em"},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}}return Ve.makeSpan(["mop","op-limits"],[l],r)},Hn=["\\smallint"],Vn=(e,t)=>{let n,r,o,a=!1;const i=Fe(e,"supsub");i?(n=i.sup,r=i.sub,o=Be(i.base,"op"),a=!0):o=Be(e,"op");const c=t.style;let s,l=!1;if(c.size===z.DISPLAY.size&&o.symbol&&!h(Hn,o.name)&&(l=!0),o.symbol){const e=l?"Size2-Regular":"Size1-Regular";let n="";if("\\oiint"!==o.name&&"\\oiiint"!==o.name||(n=o.name.substr(1),o.name="oiint"===n?"\\iint":"\\iiint"),s=Ve.makeSymbol(o.name,e,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),n.length>0){const e=s.italic,r=Ve.staticSvg(n+"Size"+(l?"2":"1"),t);s=Ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:0},{type:"elem",elem:r,shift:l?.08:0}]},t),o.name="\\"+n,s.classes.unshift("mop"),s.italic=e}}else if(o.body){const e=st(o.body,t,!0);1===e.length&&e[0]instanceof U?(s=e[0],s.classes[0]="mop"):s=Ve.makeSpan(["mop"],Ve.tryCombineChars(e),t)}else{const e=[];for(let n=1;n{let n;if(e.symbol)n=new vt("mo",[xt(e.name,e.mode)]),h(Hn,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new vt("mo",kt(e.body,t));else{n=new vt("mi",[new yt(e.name.slice(1))]);const t=new vt("mo",[xt("","text")]);n=e.parentIsSupSub?new vt("mo",[n,t]):gt([n,t])}return n},Fn={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};et({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{let n=e.parser,r=e.funcName;return 1===r.length&&(r=Fn[r]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Vn,mathmlBuilder:Bn}),et({type:"op",names:["\\mathop"],props:{numArgs:1},handler:(e,t)=>{let n=e.parser;const r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:nt(r)}},htmlBuilder:Vn,mathmlBuilder:Bn});const qn={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};et({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){let t=e.parser,n=e.funcName;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Vn,mathmlBuilder:Bn}),et({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){let t=e.parser,n=e.funcName;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Vn,mathmlBuilder:Bn}),et({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){let t=e.parser,n=e.funcName;return 1===n.length&&(n=qn[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Vn,mathmlBuilder:Bn});const Un=(e,t)=>{let n,r,o,a=!1;const i=Fe(e,"supsub");let c;if(i?(n=i.sup,r=i.sub,o=Be(i.base,"operatorname"),a=!0):o=Be(e,"operatorname"),o.body.length>0){const e=o.body.map(e=>{const t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e}),n=st(e,t.withFont("mathrm"),!0);for(let e=0;e{let n=e.parser,r=e.funcName;const o=t[0];return{type:"operatorname",mode:n.mode,body:nt(o),alwaysHandleSupSub:"\\operatorname*"===r,limits:!1,parentIsSupSub:!1}},htmlBuilder:Un,mathmlBuilder:(e,t)=>{let n=kt(e.body,t.withFont("mathrm")),r=!0;for(let e=0;ee.toText()).join("");n=[new bt.TextNode(e)]}const o=new bt.MathNode("mi",n);o.setAttribute("mathvariant","normal");const a=new bt.MathNode("mo",[xt("","text")]);return e.parentIsSupSub?new bt.MathNode("mo",[o,a]):bt.newDocumentFragment([o,a])}}),tt({type:"ordgroup",htmlBuilder:(e,t)=>e.semisimple?Ve.makeFragment(st(e.body,t,!1)):Ve.makeSpan(["mord"],st(e.body,t,!0),t),mathmlBuilder:(e,t)=>St(e.body,t,!0)}),et({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){let n=e.parser;const r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){const n=pt(e.body,t.havingCrampedStyle()),r=Ve.makeLineSpan("overline-line",t),o=t.fontMetrics().defaultRuleThickness,a=Ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*o},{type:"elem",elem:r},{type:"kern",size:o}]},t);return Ve.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){const n=new bt.MathNode("mo",[new bt.TextNode("‾")]);n.setAttribute("stretchy","true");const r=new bt.MathNode("mover",[Ot(e.body,t),n]);return r.setAttribute("accent","true"),r}}),et({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{let n=e.parser;const r=t[0];return{type:"phantom",mode:n.mode,body:nt(r)}},htmlBuilder:(e,t)=>{const n=st(e.body,t.withPhantom(),!1);return Ve.makeFragment(n)},mathmlBuilder:(e,t)=>{const n=kt(e.body,t);return new bt.MathNode("mphantom",n)}}),et({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{let n=e.parser;const r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{let n=Ve.makeSpan([],[pt(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(let e=0;e{const n=kt(nt(e.body),t),r=new bt.MathNode("mphantom",n),o=new bt.MathNode("mpadded",[r]);return o.setAttribute("height","0px"),o.setAttribute("depth","0px"),o}}),et({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{let n=e.parser;const r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{const n=Ve.makeSpan(["inner"],[pt(e.body,t.withPhantom())]),r=Ve.makeSpan(["fix"],[]);return Ve.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{const n=kt(nt(e.body),t),r=new bt.MathNode("mphantom",n),o=new bt.MathNode("mpadded",[r]);return o.setAttribute("width","0px"),o}}),et({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){let n=e.parser;const r=Be(t[0],"size").value,o=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:o}},htmlBuilder(e,t){const n=pt(e.body,t),r=Me(e.dy,t);return Ve.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){const n=new bt.MathNode("mpadded",[Ot(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}}),et({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,n){let r=e.parser;const o=n[0],a=Be(t[0],"size"),i=Be(t[1],"size");return{type:"rule",mode:r.mode,shift:o&&Be(o,"size").value,width:a.value,height:i.value}},htmlBuilder(e,t){const n=Ve.makeSpan(["mord","rule"],[],t),r=Me(e.width,t),o=Me(e.height,t),a=e.shift?Me(e.shift,t):0;return n.style.borderRightWidth=r+"em",n.style.borderTopWidth=o+"em",n.style.bottom=a+"em",n.width=r,n.height=o+a,n.depth=-a,n.maxFontSize=1.125*o*t.sizeMultiplier,n},mathmlBuilder(e,t){const n=Me(e.width,t),r=Me(e.height,t),o=e.shift?Me(e.shift,t):0,a=t.color&&t.getColor()||"black",i=new bt.MathNode("mspace");i.setAttribute("mathbackground",a),i.setAttribute("width",n+"em"),i.setAttribute("height",r+"em");const c=new bt.MathNode("mpadded",[i]);return o>=0?c.setAttribute("height","+"+o+"em"):(c.setAttribute("height",o+"em"),c.setAttribute("depth","+"+-o+"em")),c.setAttribute("voffset",o+"em"),c}});const Yn=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];et({type:"sizing",names:Yn,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{let n=e.breakOnTokenText,r=e.funcName,o=e.parser;const a=o.parseExpression(!1,n);return{type:"sizing",mode:o.mode,size:Yn.indexOf(r)+1,body:a}},htmlBuilder:(e,t)=>{const n=t.havingSize(e.size);return Wn(e.body,n,t)},mathmlBuilder:(e,t)=>{const n=t.havingSize(e.size),r=kt(e.body,n),o=new bt.MathNode("mstyle",r);return o.setAttribute("mathsize",n.sizeMultiplier+"em"),o}}),et({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{let r=e.parser,o=!1,a=!1;const i=n[0]&&Be(n[0],"ordgroup");if(i){let e="";for(let t=0;t{const n=Ve.makeSpan([],[pt(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(let e=0;e{const n=new bt.MathNode("mpadded",[Ot(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}}),et({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){let r=e.parser;const o=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:o}},htmlBuilder(e,t){let n=pt(e.body,t.havingCrampedStyle());0===n.height&&(n.height=t.fontMetrics().xHeight),n=Ve.wrapFragment(n,t);const r=t.fontMetrics().defaultRuleThickness;let o=r;t.style.idn.height+n.depth+a&&(a=(a+u-n.height-n.depth)/2);const d=c.height-n.height-a-s;n.style.paddingLeft=l+"em";const f=Ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+d)},{type:"elem",elem:c},{type:"kern",size:s}]},t);if(e.index){const n=t.havingStyle(z.SCRIPTSCRIPT),r=pt(e.index,n,t),o=.6*(f.height-f.depth),a=Ve.makeVList({positionType:"shift",positionData:-o,children:[{type:"elem",elem:r}]},t),i=Ve.makeSpan(["root"],[a]);return Ve.makeSpan(["mord","sqrt"],[i,f],t)}return Ve.makeSpan(["mord","sqrt"],[f],t)},mathmlBuilder(e,t){const n=e.body,r=e.index;return r?new bt.MathNode("mroot",[Ot(n,t),Ot(r,t)]):new bt.MathNode("msqrt",[Ot(n,t)])}});const Gn={display:z.DISPLAY,text:z.TEXT,script:z.SCRIPT,scriptscript:z.SCRIPTSCRIPT};et({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler(e,t){let n=e.breakOnTokenText,r=e.funcName,o=e.parser;const a=o.parseExpression(!0,n),i=r.slice(1,r.length-5);return{type:"styling",mode:o.mode,style:i,body:a}},htmlBuilder(e,t){const n=Gn[e.style],r=t.havingStyle(n).withFont("");return Wn(e.body,r,t)},mathmlBuilder(e,t){const n=Gn[e.style],r=t.havingStyle(n),o=kt(e.body,r),a=new bt.MathNode("mstyle",o),i={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return a.setAttribute("scriptlevel",i[0]),a.setAttribute("displaystyle",i[1]),a}}),tt({type:"supsub",htmlBuilder(e,t){const n=function(e,t){const n=e.base;return n?"op"===n.type?n.limits&&(t.style.size===z.DISPLAY.size||n.alwaysHandleSupSub)?Vn:null:"operatorname"===n.type?n.alwaysHandleSupSub&&(t.style.size===z.DISPLAY.size||n.limits)?Un:null:"accent"===n.type?b(n.base)?Dt:null:"horizBrace"===n.type&&!e.sub===n.isOver?In:null:null}(e,t);if(n)return n(e,t);const r=e.base,o=e.sup,a=e.sub,i=pt(r,t);let c,s;const l=t.fontMetrics();let u=0,d=0;const f=r&&b(r);if(o){const e=t.havingStyle(t.style.sup());c=pt(o,e,t),f||(u=i.height-e.fontMetrics().supDrop*e.sizeMultiplier/t.sizeMultiplier)}if(a){const e=t.havingStyle(t.style.sub());s=pt(a,e,t),f||(d=i.depth+e.fontMetrics().subDrop*e.sizeMultiplier/t.sizeMultiplier)}let p;p=t.style===z.DISPLAY?l.sup1:t.style.cramped?l.sup3:l.sup2;const h=t.sizeMultiplier,m=.5/l.ptPerEm/h+"em";let g,v=null;if(s){const t=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(i instanceof U||t)&&(v=-i.italic+"em")}if(c&&s){u=Math.max(u,p,c.depth+.25*l.xHeight),d=Math.max(d,l.sub2);const e=4*l.defaultRuleThickness;if(u-c.depth-(s.height-d)0&&(u+=t,d-=t)}g=Ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:d,marginRight:m,marginLeft:v},{type:"elem",elem:c,shift:-u,marginRight:m}]},t)}else if(s){d=Math.max(d,l.sub1,s.height-.8*l.xHeight);g=Ve.makeVList({positionType:"shift",positionData:d,children:[{type:"elem",elem:s,marginLeft:v,marginRight:m}]},t)}else{if(!c)throw new Error("supsub must have either sup or sub.");u=Math.max(u,p,c.depth+.25*l.xHeight),g=Ve.makeVList({positionType:"shift",positionData:-u,children:[{type:"elem",elem:c,marginRight:m}]},t)}const y=dt(i,"right")||"mord";return Ve.makeSpan([y],[i,Ve.makeSpan(["msupsub"],[g])],t)},mathmlBuilder(e,t){let n,r,o=!1;const a=Fe(e.base,"horizBrace");a&&(r=!!e.sup,r===a.isOver&&(o=!0,n=a.isOver)),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);const i=[Ot(e.base,t)];let c;if(e.sub&&i.push(Ot(e.sub,t)),e.sup&&i.push(Ot(e.sup,t)),o)c=n?"mover":"munder";else if(e.sub)if(e.sup){const n=e.base;c=n&&"op"===n.type&&n.limits&&t.style===z.DISPLAY||n&&"operatorname"===n.type&&n.alwaysHandleSupSub&&(t.style===z.DISPLAY||n.limits)?"munderover":"msubsup"}else{const n=e.base;c=n&&"op"===n.type&&n.limits&&(t.style===z.DISPLAY||n.alwaysHandleSupSub)||n&&"operatorname"===n.type&&n.alwaysHandleSupSub&&(n.limits||t.style===z.DISPLAY)?"munder":"msub"}else{const n=e.base;c=n&&"op"===n.type&&n.limits&&(t.style===z.DISPLAY||n.alwaysHandleSupSub)||n&&"operatorname"===n.type&&n.alwaysHandleSupSub&&(n.limits||t.style===z.DISPLAY)?"mover":"msup"}return new bt.MathNode(c,i)}}),tt({type:"atom",htmlBuilder:(e,t)=>Ve.mathsym(e.text,e.mode,t,["m"+e.family]),mathmlBuilder(e,t){const n=new bt.MathNode("mo",[xt(e.text,e.mode)]);if("bin"===e.family){const r=_t(e,t);"bold-italic"===r&&n.setAttribute("mathvariant",r)}else"punct"===e.family?n.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||n.setAttribute("stretchy","false");return n}});const Kn={mi:"italic",mn:"normal",mtext:"normal"};tt({type:"mathord",htmlBuilder:(e,t)=>Ve.makeOrd(e,t,"mathord"),mathmlBuilder(e,t){const n=new bt.MathNode("mi",[xt(e.text,e.mode,t)]),r=_t(e,t)||"italic";return r!==Kn[n.type]&&n.setAttribute("mathvariant",r),n}}),tt({type:"textord",htmlBuilder:(e,t)=>Ve.makeOrd(e,t,"textord"),mathmlBuilder(e,t){const n=xt(e.text,e.mode,t),r=_t(e,t)||"normal";let o;return o="text"===e.mode?new bt.MathNode("mtext",[n]):/[0-9]/.test(e.text)?new bt.MathNode("mn",[n]):"\\prime"===e.text?new bt.MathNode("mo",[n]):new bt.MathNode("mi",[n]),r!==Kn[o.type]&&o.setAttribute("mathvariant",r),o}});const Qn={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Xn={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};tt({type:"spacing",htmlBuilder(e,t){if(Xn.hasOwnProperty(e.text)){const n=Xn[e.text].className||"";if("text"===e.mode){const r=Ve.makeOrd(e,t,"textord");return r.classes.push(n),r}return Ve.makeSpan(["mspace",n],[Ve.mathsym(e.text,e.mode,t)],t)}if(Qn.hasOwnProperty(e.text))return Ve.makeSpan(["mspace",Qn[e.text]],[],t);throw new l(`Unknown type of space "${e.text}"`)},mathmlBuilder(e,t){let n;if(!Xn.hasOwnProperty(e.text)){if(Qn.hasOwnProperty(e.text))return new bt.MathNode("mspace");throw new l(`Unknown type of space "${e.text}"`)}return n=new bt.MathNode("mtext",[new bt.TextNode(" ")]),n}});const Jn=()=>{const e=new bt.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};tt({type:"tag",mathmlBuilder(e,t){const n=new bt.MathNode("mtable",[new bt.MathNode("mtr",[Jn(),new bt.MathNode("mtd",[St(e.body,t)]),Jn(),new bt.MathNode("mtd",[St(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});const Zn={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},$n={"\\textbf":"textbf","\\textmd":"textmd"},er={"\\textit":"textit","\\textup":"textup"},tr=(e,t)=>{const n=e.font;return n?Zn[n]?t.withTextFontFamily(Zn[n]):$n[n]?t.withTextFontWeight($n[n]):t.withTextFontShape(er[n]):t};et({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler(e,t){let n=e.parser,r=e.funcName;const o=t[0];return{type:"text",mode:n.mode,body:nt(o),font:r}},htmlBuilder(e,t){const n=tr(e,t),r=st(e.body,n,!0);return Ve.makeSpan(["mord","text"],Ve.tryCombineChars(r),n)},mathmlBuilder(e,t){const n=tr(e,t);return St(e.body,n)}}),et({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>({type:"underline",mode:e.parser.mode,body:t[0]}),htmlBuilder(e,t){const n=pt(e.body,t),r=Ve.makeLineSpan("underline-line",t),o=t.fontMetrics().defaultRuleThickness,a=Ve.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:o},{type:"elem",elem:r},{type:"kern",size:3*o},{type:"elem",elem:n}]},t);return Ve.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){const n=new bt.MathNode("mo",[new bt.TextNode("‾")]);n.setAttribute("stretchy","true");const r=new bt.MathNode("munder",[Ot(e.body,t),n]);return r.setAttribute("accentunder","true"),r}}),et({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new l("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){const n=nr(e),r=[],o=t.havingStyle(t.style.text());for(let t=0;te.body.replace(/ /g,e.star?"␣":" "),rr=Je,or=new RegExp("^(\\\\[a-zA-Z@]+)[ \r\n\t]*$"),ar=new RegExp("[̀-ͯ]+$");class ir{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp("([ \r\n\t]+)|([!-\\[\\]-‧-豈-][̀-ͯ]*|[\ud800-\udbff][\udc00-\udfff][̀-ͯ]*|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*|\\\\[a-zA-Z@]+[ \r\n\t]*|\\\\[^\ud800-\udfff])","g"),this.catcodes={"%":14}}setCatcode(e,t){this.catcodes[e]=t}lex(){const e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new s("EOF",new c(this,t,t));const n=this.tokenRegex.exec(e);if(null===n||n.index!==t)throw new l(`Unexpected character: '${e[t]}'`,new s(e[t],new c(this,t,t+1)));let r=n[2]||" ";if(14===this.catcodes[r]){const t=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===t?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=t+1,this.lex()}const o=r.match(or);return o&&(r=o[1]),new s(r,new c(this,t,this.tokenRegex.lastIndex))}}class cr{constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new l("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");const e=this.undefStack.pop();for(const t in e)e.hasOwnProperty(t)&&(void 0===e[t]?delete this.current[t]:this.current[t]=e[t])}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,n){if(void 0===n&&(n=!1),n){for(let t=0;t0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{const t=this.undefStack[this.undefStack.length-1];t&&!t.hasOwnProperty(e)&&(t[e]=this.current[e])}this.current[e]=t}}const sr={};function lr(e,t){sr[e]=t}lr("\\@firstoftwo",(function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}})),lr("\\@secondoftwo",(function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}})),lr("\\@ifnextchar",(function(e){const t=e.consumeArgs(3),n=e.future();return 1===t[0].length&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),lr("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),lr("\\TextOrMath",(function(e){const t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));const ur={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};lr("\\char",(function(e){let t,n=e.popToken(),r="";if("'"===n.text)t=8,n=e.popToken();else if('"'===n.text)t=16,n=e.popToken();else if("`"===n.text)if(n=e.popToken(),"\\"===n.text[0])r=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new l("\\char` missing argument");r=n.text.charCodeAt(0)}else t=10;if(t){if(r=ur[n.text],null==r||r>=t)throw new l(`Invalid base-${t} digit ${n.text}`);let o;for(;null!=(o=ur[e.future().text])&&o{let n=e.consumeArgs(1)[0];if(1!==n.length)throw new l("\\gdef's first argument must be a macro name");const r=n[0].text;let o=0;for(n=e.consumeArgs(1)[0];1===n.length&&"#"===n[0].text;){if(n=e.consumeArgs(1)[0],1!==n.length)throw new l(`Invalid argument number length "${n.length}"`);if(!/^[1-9]$/.test(n[0].text))throw new l(`Invalid argument number "${n[0].text}"`);if(o++,parseInt(n[0].text)!==o)throw new l(`Argument number "${n[0].text}" out of order`);n=e.consumeArgs(1)[0]}return e.macros.set(r,{tokens:n,numArgs:o},t),""};lr("\\gdef",e=>dr(e,!0)),lr("\\def",e=>dr(e,!1)),lr("\\global",e=>{const t=e.consumeArgs(1)[0];if(1!==t.length)throw new l("Invalid command after \\global");const n=t[0].text;if("\\def"===n)return dr(e,!0);throw new l(`Invalid command '${n}' after \\global`)});const fr=(e,t,n)=>{let r=e.consumeArgs(1)[0];if(1!==r.length)throw new l("\\newcommand's first argument must be a macro name");const o=r[0].text,a=e.isDefined(o);if(a&&!t)throw new l(`\\newcommand{${o}} attempting to redefine `+o+"; use \\renewcommand");if(!a&&!n)throw new l(`\\renewcommand{${o}} when command ${o} does not yet exist; use \\newcommand`);let i=0;if(r=e.consumeArgs(1)[0],1===r.length&&"["===r[0].text){let t="",n=e.expandNextToken();for(;"]"!==n.text&&"EOF"!==n.text;)t+=n.text,n=e.expandNextToken();if(!t.match(/^\s*[0-9]+\s*$/))throw new l("Invalid number of arguments: "+t);i=parseInt(t),r=e.consumeArgs(1)[0]}return e.macros.set(o,{tokens:r,numArgs:i}),""};lr("\\newcommand",e=>fr(e,!1,!0)),lr("\\renewcommand",e=>fr(e,!0,!1)),lr("\\providecommand",e=>fr(e,!0,!0)),lr("\\bgroup","{"),lr("\\egroup","}"),lr("\\lq","`"),lr("\\rq","'"),lr("\\aa","\\r a"),lr("\\AA","\\r A"),lr("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),lr("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),lr("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),lr("ℬ","\\mathscr{B}"),lr("ℰ","\\mathscr{E}"),lr("ℱ","\\mathscr{F}"),lr("ℋ","\\mathscr{H}"),lr("ℐ","\\mathscr{I}"),lr("ℒ","\\mathscr{L}"),lr("ℳ","\\mathscr{M}"),lr("ℛ","\\mathscr{R}"),lr("ℭ","\\mathfrak{C}"),lr("ℌ","\\mathfrak{H}"),lr("ℨ","\\mathfrak{Z}"),lr("\\Bbbk","\\Bbb{k}"),lr("·","\\cdotp"),lr("\\llap","\\mathllap{\\textrm{#1}}"),lr("\\rlap","\\mathrlap{\\textrm{#1}}"),lr("\\clap","\\mathclap{\\textrm{#1}}"),lr("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),lr("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),lr("\\ne","\\neq"),lr("≠","\\neq"),lr("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),lr("∉","\\notin"),lr("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),lr("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),lr("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),lr("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),lr("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),lr("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),lr("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),lr("⟂","\\perp"),lr("‼","\\mathclose{!\\mkern-0.8mu!}"),lr("∌","\\notni"),lr("⌜","\\ulcorner"),lr("⌝","\\urcorner"),lr("⌞","\\llcorner"),lr("⌟","\\lrcorner"),lr("©","\\copyright"),lr("®","\\textregistered"),lr("️","\\textregistered"),lr("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),lr("⋮","\\vdots"),lr("\\varGamma","\\mathit{\\Gamma}"),lr("\\varDelta","\\mathit{\\Delta}"),lr("\\varTheta","\\mathit{\\Theta}"),lr("\\varLambda","\\mathit{\\Lambda}"),lr("\\varXi","\\mathit{\\Xi}"),lr("\\varPi","\\mathit{\\Pi}"),lr("\\varSigma","\\mathit{\\Sigma}"),lr("\\varUpsilon","\\mathit{\\Upsilon}"),lr("\\varPhi","\\mathit{\\Phi}"),lr("\\varPsi","\\mathit{\\Psi}"),lr("\\varOmega","\\mathit{\\Omega}"),lr("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),lr("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),lr("\\boxed","\\fbox{$\\displaystyle{#1}$}"),lr("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),lr("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),lr("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");const pr={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};lr("\\dots",(function(e){let t="\\dotso";const n=e.expandAfterFuture().text;return n in pr?t=pr[n]:("\\not"===n.substr(0,4)||n in ne.math&&h(["bin","rel"],ne.math[n].group))&&(t="\\dotsb"),t}));const hr={")":!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};lr("\\dotso",(function(e){return e.future().text in hr?"\\ldots\\,":"\\ldots"})),lr("\\dotsc",(function(e){const t=e.future().text;return t in hr&&","!==t?"\\ldots\\,":"\\ldots"})),lr("\\cdots",(function(e){return e.future().text in hr?"\\@cdots\\,":"\\@cdots"})),lr("\\dotsb","\\cdots"),lr("\\dotsm","\\cdots"),lr("\\dotsi","\\!\\cdots"),lr("\\dotsx","\\ldots\\,"),lr("\\DOTSI","\\relax"),lr("\\DOTSB","\\relax"),lr("\\DOTSX","\\relax"),lr("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),lr("\\,","\\tmspace+{3mu}{.1667em}"),lr("\\thinspace","\\,"),lr("\\>","\\mskip{4mu}"),lr("\\:","\\tmspace+{4mu}{.2222em}"),lr("\\medspace","\\:"),lr("\\;","\\tmspace+{5mu}{.2777em}"),lr("\\thickspace","\\;"),lr("\\!","\\tmspace-{3mu}{.1667em}"),lr("\\negthinspace","\\!"),lr("\\negmedspace","\\tmspace-{4mu}{.2222em}"),lr("\\negthickspace","\\tmspace-{5mu}{.277em}"),lr("\\enspace","\\kern.5em "),lr("\\enskip","\\hskip.5em\\relax"),lr("\\quad","\\hskip1em\\relax"),lr("\\qquad","\\hskip2em\\relax"),lr("\\tag","\\@ifstar\\tag@literal\\tag@paren"),lr("\\tag@paren","\\tag@literal{({#1})}"),lr("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new l("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),lr("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),lr("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),lr("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),lr("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),lr("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),lr("\\\\","\\newline"),lr("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");const mr=Q["Main-Regular"]["T".charCodeAt(0)][1]-.7*Q["Main-Regular"]["A".charCodeAt(0)][1]+"em";lr("\\LaTeX",`\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{${mr}}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}`),lr("\\KaTeX",`\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{${mr}}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}`),lr("\\hspace","\\@ifstar\\@hspacer\\@hspace"),lr("\\@hspace","\\hskip #1\\relax"),lr("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),lr("\\ordinarycolon",":"),lr("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),lr("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),lr("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),lr("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),lr("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),lr("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),lr("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),lr("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),lr("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),lr("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),lr("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),lr("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),lr("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),lr("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),lr("∷","\\dblcolon"),lr("∹","\\eqcolon"),lr("≔","\\coloneqq"),lr("≕","\\eqqcolon"),lr("⩴","\\Coloneqq"),lr("\\ratio","\\vcentcolon"),lr("\\coloncolon","\\dblcolon"),lr("\\colonequals","\\coloneqq"),lr("\\coloncolonequals","\\Coloneqq"),lr("\\equalscolon","\\eqqcolon"),lr("\\equalscoloncolon","\\Eqqcolon"),lr("\\colonminus","\\coloneq"),lr("\\coloncolonminus","\\Coloneq"),lr("\\minuscolon","\\eqcolon"),lr("\\minuscoloncolon","\\Eqcolon"),lr("\\coloncolonapprox","\\Colonapprox"),lr("\\coloncolonsim","\\Colonsim"),lr("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),lr("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),lr("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),lr("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),lr("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),lr("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),lr("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),lr("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),lr("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),lr("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),lr("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),lr("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),lr("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),lr("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),lr("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),lr("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),lr("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),lr("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),lr("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),lr("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),lr("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),lr("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),lr("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),lr("⟦","\\llbracket"),lr("⟧","\\rrbracket"),lr("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),lr("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),lr("⦃","\\lBrace"),lr("⦄","\\rBrace"),lr("\\darr","\\downarrow"),lr("\\dArr","\\Downarrow"),lr("\\Darr","\\Downarrow"),lr("\\lang","\\langle"),lr("\\rang","\\rangle"),lr("\\uarr","\\uparrow"),lr("\\uArr","\\Uparrow"),lr("\\Uarr","\\Uparrow"),lr("\\N","\\mathbb{N}"),lr("\\R","\\mathbb{R}"),lr("\\Z","\\mathbb{Z}"),lr("\\alef","\\aleph"),lr("\\alefsym","\\aleph"),lr("\\Alpha","\\mathrm{A}"),lr("\\Beta","\\mathrm{B}"),lr("\\bull","\\bullet"),lr("\\Chi","\\mathrm{X}"),lr("\\clubs","\\clubsuit"),lr("\\cnums","\\mathbb{C}"),lr("\\Complex","\\mathbb{C}"),lr("\\Dagger","\\ddagger"),lr("\\diamonds","\\diamondsuit"),lr("\\empty","\\emptyset"),lr("\\Epsilon","\\mathrm{E}"),lr("\\Eta","\\mathrm{H}"),lr("\\exist","\\exists"),lr("\\harr","\\leftrightarrow"),lr("\\hArr","\\Leftrightarrow"),lr("\\Harr","\\Leftrightarrow"),lr("\\hearts","\\heartsuit"),lr("\\image","\\Im"),lr("\\infin","\\infty"),lr("\\Iota","\\mathrm{I}"),lr("\\isin","\\in"),lr("\\Kappa","\\mathrm{K}"),lr("\\larr","\\leftarrow"),lr("\\lArr","\\Leftarrow"),lr("\\Larr","\\Leftarrow"),lr("\\lrarr","\\leftrightarrow"),lr("\\lrArr","\\Leftrightarrow"),lr("\\Lrarr","\\Leftrightarrow"),lr("\\Mu","\\mathrm{M}"),lr("\\natnums","\\mathbb{N}"),lr("\\Nu","\\mathrm{N}"),lr("\\Omicron","\\mathrm{O}"),lr("\\plusmn","\\pm"),lr("\\rarr","\\rightarrow"),lr("\\rArr","\\Rightarrow"),lr("\\Rarr","\\Rightarrow"),lr("\\real","\\Re"),lr("\\reals","\\mathbb{R}"),lr("\\Reals","\\mathbb{R}"),lr("\\Rho","\\mathrm{P}"),lr("\\sdot","\\cdot"),lr("\\sect","\\S"),lr("\\spades","\\spadesuit"),lr("\\sub","\\subset"),lr("\\sube","\\subseteq"),lr("\\supe","\\supseteq"),lr("\\Tau","\\mathrm{T}"),lr("\\thetasym","\\vartheta"),lr("\\weierp","\\wp"),lr("\\Zeta","\\mathrm{Z}"),lr("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),lr("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),lr("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),lr("\\blue","\\textcolor{##6495ed}{#1}"),lr("\\orange","\\textcolor{##ffa500}{#1}"),lr("\\pink","\\textcolor{##ff00af}{#1}"),lr("\\red","\\textcolor{##df0030}{#1}"),lr("\\green","\\textcolor{##28ae7b}{#1}"),lr("\\gray","\\textcolor{gray}{#1}"),lr("\\purple","\\textcolor{##9d38bd}{#1}"),lr("\\blueA","\\textcolor{##ccfaff}{#1}"),lr("\\blueB","\\textcolor{##80f6ff}{#1}"),lr("\\blueC","\\textcolor{##63d9ea}{#1}"),lr("\\blueD","\\textcolor{##11accd}{#1}"),lr("\\blueE","\\textcolor{##0c7f99}{#1}"),lr("\\tealA","\\textcolor{##94fff5}{#1}"),lr("\\tealB","\\textcolor{##26edd5}{#1}"),lr("\\tealC","\\textcolor{##01d1c1}{#1}"),lr("\\tealD","\\textcolor{##01a995}{#1}"),lr("\\tealE","\\textcolor{##208170}{#1}"),lr("\\greenA","\\textcolor{##b6ffb0}{#1}"),lr("\\greenB","\\textcolor{##8af281}{#1}"),lr("\\greenC","\\textcolor{##74cf70}{#1}"),lr("\\greenD","\\textcolor{##1fab54}{#1}"),lr("\\greenE","\\textcolor{##0d923f}{#1}"),lr("\\goldA","\\textcolor{##ffd0a9}{#1}"),lr("\\goldB","\\textcolor{##ffbb71}{#1}"),lr("\\goldC","\\textcolor{##ff9c39}{#1}"),lr("\\goldD","\\textcolor{##e07d10}{#1}"),lr("\\goldE","\\textcolor{##a75a05}{#1}"),lr("\\redA","\\textcolor{##fca9a9}{#1}"),lr("\\redB","\\textcolor{##ff8482}{#1}"),lr("\\redC","\\textcolor{##f9685d}{#1}"),lr("\\redD","\\textcolor{##e84d39}{#1}"),lr("\\redE","\\textcolor{##bc2612}{#1}"),lr("\\maroonA","\\textcolor{##ffbde0}{#1}"),lr("\\maroonB","\\textcolor{##ff92c6}{#1}"),lr("\\maroonC","\\textcolor{##ed5fa6}{#1}"),lr("\\maroonD","\\textcolor{##ca337c}{#1}"),lr("\\maroonE","\\textcolor{##9e034e}{#1}"),lr("\\purpleA","\\textcolor{##ddd7ff}{#1}"),lr("\\purpleB","\\textcolor{##c6b9fc}{#1}"),lr("\\purpleC","\\textcolor{##aa87ff}{#1}"),lr("\\purpleD","\\textcolor{##7854ab}{#1}"),lr("\\purpleE","\\textcolor{##543b78}{#1}"),lr("\\mintA","\\textcolor{##f5f9e8}{#1}"),lr("\\mintB","\\textcolor{##edf2df}{#1}"),lr("\\mintC","\\textcolor{##e0e5cc}{#1}"),lr("\\grayA","\\textcolor{##f6f7f7}{#1}"),lr("\\grayB","\\textcolor{##f0f1f2}{#1}"),lr("\\grayC","\\textcolor{##e3e5e6}{#1}"),lr("\\grayD","\\textcolor{##d6d8da}{#1}"),lr("\\grayE","\\textcolor{##babec2}{#1}"),lr("\\grayF","\\textcolor{##888d93}{#1}"),lr("\\grayG","\\textcolor{##626569}{#1}"),lr("\\grayH","\\textcolor{##3b3e40}{#1}"),lr("\\grayI","\\textcolor{##21242c}{#1}"),lr("\\kaBlue","\\textcolor{##314453}{#1}"),lr("\\kaGreen","\\textcolor{##71B307}{#1}");const gr={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class vr{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new cr(sr,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new ir(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}consumeSpaces(){for(;" "===this.future().text;)this.stack.pop()}consumeArgs(e){const t=[];for(let n=0;nthis.settings.maxExpand)throw new l("Too many expansions: infinite loop or need to increase maxExpand setting");let r=n.tokens;if(n.numArgs){const e=this.consumeArgs(n.numArgs);r=r.slice();for(let t=r.length-1;t>=0;--t){let n=r[t];if("#"===n.text){if(0===t)throw new l("Incomplete placeholder at end of macro body",n);if(n=r[--t],"#"===n.text)r.splice(t+1,1);else{if(!/^[1-9]$/.test(n.text))throw new l("Not a valid argument number",n);r.splice(t,2,...e[+n.text-1])}}}}return this.pushTokens(r),r}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;){const e=this.expandOnce();if(e instanceof s){if("\\relax"!==e.text)return this.stack.pop();this.stack.pop()}}throw new Error}expandMacro(e){if(!this.macros.get(e))return;const t=[],n=this.stack.length;for(this.pushToken(new s(e));this.stack.length>n;)this.expandOnce()instanceof s&&t.push(this.stack.pop());return t}expandMacroAsText(e){const t=this.expandMacro(e);return t?t.map(e=>e.text).join(""):t}_getExpansion(e){const t=this.macros.get(e);if(null==t)return t;const n="function"==typeof t?t(this):t;if("string"==typeof n){let e=0;if(-1!==n.indexOf("#")){const t=n.replace(/##/g,"");for(;-1!==t.indexOf("#"+(e+1));)++e}const t=new ir(n,this.settings),r=[];let o=t.lex();for(;"EOF"!==o.text;)r.push(o),o=t.lex();return r.reverse(),{tokens:r,numArgs:e}}return n}isDefined(e){return this.macros.has(e)||rr.hasOwnProperty(e)||ne.math.hasOwnProperty(e)||ne.text.hasOwnProperty(e)||gr.hasOwnProperty(e)}}var yr={"́":{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"}},br={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","č":"č","ĉ":"ĉ","ċ":"ċ","ď":"ď","ḋ":"ḋ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ĺ":"ĺ","ľ":"ľ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ď":"Ď","Ḋ":"Ḋ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ĺ":"Ĺ","Ľ":"Ľ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ť":"Ť","Ṫ":"Ṫ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"};class xr{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new vr(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new l(`Expected '${e}', got '${this.fetch().text}'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");const e=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),e}parseExpression(e,t){const n=[];for(;;){"math"===this.mode&&this.consumeSpaces();const r=this.fetch();if(-1!==xr.endOfExpression.indexOf(r.text))break;if(t&&r.text===t)break;if(e&&rr[r.text]&&rr[r.text].infix)break;const o=this.parseAtom(t);if(!o)break;n.push(o)}return"text"===this.mode&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){let t,n=-1;for(let r=0;r0&&!c||0===i&&!c&&"math"===this.mode,u=this.parseGroupOfType(`argument to '${e}'`,n,c,r,s);if(!u){if(c){a.push(null);continue}throw new l(`Expected group after '${e}'`,this.fetch())}(c?a:o).push(u)}return{args:o,optArgs:a}}parseGroupOfType(e,t,n,r,o){switch(t){case"color":return o&&this.consumeSpaces(),this.parseColorGroup(n);case"size":return o&&this.consumeSpaces(),this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n,o);case"math":case"text":return this.parseGroup(e,n,r,void 0,t,o);case"hbox":{const t=this.parseGroup(e,n,r,void 0,"text",o);return t?{type:"styling",mode:t.mode,body:[t],style:"text"}:t}case"raw":{if(o&&this.consumeSpaces(),n&&"{"===this.fetch().text)return null;const e=this.parseStringGroup("raw",n,!0);if(e)return{type:"raw",mode:"text",string:e.text};throw new l("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(e,n,r,void 0,void 0,o);default:throw new l("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;" "===this.fetch().text;)this.consume()}parseStringGroup(e,t,n){const r=t?"[":"{",o=t?"]":"}",a=this.fetch();if(a.text!==r){if(t)return null;if(n&&"EOF"!==a.text&&/[^{}[\]]/.test(a.text))return this.consume(),a}const i=this.mode;this.mode="text",this.expect(r);let c="";const s=this.fetch();let u,d=0,f=s;for(;(u=this.fetch()).text!==o||n&&d>0;){switch(u.text){case"EOF":throw new l("Unexpected end of input in "+e,s.range(f,c));case r:d++;break;case o:d--}f=u,c+=f.text,this.consume()}return this.expect(o),this.mode=i,s.range(f,c)}parseRegexGroup(e,t){const n=this.mode;this.mode="text";const r=this.fetch();let o,a=r,i="";for(;"EOF"!==(o=this.fetch()).text&&e.test(i+o.text);)a=o,i+=a.text,this.consume();if(""===i)throw new l("Invalid "+t+": '"+r.text+"'",r);return this.mode=n,r.range(a,i)}parseColorGroup(e){const t=this.parseStringGroup("color",e);if(!t)return null;const n=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new l("Invalid color: '"+t.text+"'",t);let r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r="#"+r),{type:"color-token",mode:this.mode,color:r}}parseSizeGroup(e){let t,n=!1;if(t=e||"{"===this.fetch().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"),!t)return null;e||0!==t.text.length||(t.text="0pt",n=!0);const r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new l("Invalid size: '"+t.text+"'",t);const o={number:+(r[1]+r[2]),unit:r[3]};if(!Ee(o))throw new l("Invalid unit: '"+o.unit+"'",t);return{type:"size",mode:this.mode,value:o,isBlank:n}}parseUrlGroup(e,t){this.gullet.lexer.setCatcode("%",13);const n=this.parseStringGroup("url",e,!0);if(this.gullet.lexer.setCatcode("%",14),!n)return null;const r=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}}parseGroup(e,t,n,r,o,a){const i=this.mode;o&&this.switchMode(o),a&&this.consumeSpaces();const s=this.fetch(),u=s.text;let d;if(t?"["===u:"{"===u||"\\begingroup"===u){this.consume();const e=xr.endOfGroup[u];this.gullet.beginGroup();const t=this.parseExpression(!1,e),n=this.fetch();this.expect(e),this.gullet.endGroup(),d={type:"ordgroup",mode:this.mode,loc:c.range(s,n),body:t,semisimple:"\\begingroup"===u||void 0}}else if(t)d=null;else if(d=this.parseFunction(r,e,n)||this.parseSymbol(),null==d&&"\\"===u[0]&&!gr.hasOwnProperty(u)){if(this.settings.throwOnError)throw new l("Undefined control sequence: "+u,s);d=this.formatUnsupportedCmd(u),this.consume()}return o&&this.switchMode(i),d}formLigatures(e){let t=e.length-1;for(let n=0;n=0&&this.settings.reportNonstrict("unicodeTextInMathMode",`Latin-1/Unicode text character "${t[0]}" used in math mode`,e);const n=ne[this.mode][t].group,o=c.range(e);let a;if(ee.hasOwnProperty(n)){const e=n;a={type:"atom",mode:this.mode,family:e,loc:o,text:t}}else a={type:n,mode:this.mode,loc:o,text:t};r=a}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(D(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",`Unicode text character "${t[0]}" used in math mode`,e):this.settings.reportNonstrict("unknownSymbol",`Unrecognized Unicode character "${t[0]}" (${t.charCodeAt(0)})`,e)),r={type:"textord",mode:"text",loc:c.range(e),text:t}}if(this.consume(),n)for(let t=0;t-1===t.indexOf(" "+e+" "))&&e(o,n)}}}(e,n)};var zr,Ar={input:"'",tag:"mtext",output:"mbox",tex:null,tType:10},Pr=[{input:"alpha",tag:"mi",output:"α",tex:null,tType:0},{input:"beta",tag:"mi",output:"β",tex:null,tType:0},{input:"chi",tag:"mi",output:"χ",tex:null,tType:0},{input:"delta",tag:"mi",output:"δ",tex:null,tType:0},{input:"Delta",tag:"mo",output:"Δ",tex:null,tType:0},{input:"epsi",tag:"mi",output:"ε",tex:"epsilon",tType:0},{input:"varepsilon",tag:"mi",output:"ɛ",tex:null,tType:0},{input:"eta",tag:"mi",output:"η",tex:null,tType:0},{input:"gamma",tag:"mi",output:"γ",tex:null,tType:0},{input:"Gamma",tag:"mo",output:"Γ",tex:null,tType:0},{input:"iota",tag:"mi",output:"ι",tex:null,tType:0},{input:"kappa",tag:"mi",output:"κ",tex:null,tType:0},{input:"lambda",tag:"mi",output:"λ",tex:null,tType:0},{input:"Lambda",tag:"mo",output:"Λ",tex:null,tType:0},{input:"lamda",tag:"mi",output:"lambda",tex:null,tType:8},{input:"Lamda",tag:"mi",output:"Lambda",tex:null,tType:8},{input:"mu",tag:"mi",output:"μ",tex:null,tType:0},{input:"nu",tag:"mi",output:"ν",tex:null,tType:0},{input:"omega",tag:"mi",output:"ω",tex:null,tType:0},{input:"Omega",tag:"mo",output:"Ω",tex:null,tType:0},{input:"phi",tag:"mi",output:"φ",tex:null,tType:0},{input:"varphi",tag:"mi",output:"ϕ",tex:null,tType:0},{input:"Phi",tag:"mo",output:"Φ",tex:null,tType:0},{input:"pi",tag:"mi",output:"π",tex:null,tType:0},{input:"Pi",tag:"mo",output:"Π",tex:null,tType:0},{input:"psi",tag:"mi",output:"ψ",tex:null,tType:0},{input:"Psi",tag:"mi",output:"Ψ",tex:null,tType:0},{input:"rho",tag:"mi",output:"ρ",tex:null,tType:0},{input:"sigma",tag:"mi",output:"σ",tex:null,tType:0},{input:"Sigma",tag:"mo",output:"Σ",tex:null,tType:0},{input:"tau",tag:"mi",output:"τ",tex:null,tType:0},{input:"theta",tag:"mi",output:"θ",tex:null,tType:0},{input:"vartheta",tag:"mi",output:"ϑ",tex:null,tType:0},{input:"Theta",tag:"mo",output:"Θ",tex:null,tType:0},{input:"upsilon",tag:"mi",output:"υ",tex:null,tType:0},{input:"xi",tag:"mi",output:"ξ",tex:null,tType:0},{input:"Xi",tag:"mo",output:"Ξ",tex:null,tType:0},{input:"zeta",tag:"mi",output:"ζ",tex:null,tType:0},{input:"*",tag:"mo",output:"⋅",tex:"cdot",tType:0},{input:"**",tag:"mo",output:"∗",tex:"ast",tType:0},{input:"***",tag:"mo",output:"⋆",tex:"star",tType:0},{input:"// ",tag:"mo",output:"/",tex:"/",tType:0,val:!0,noTexCopy:!0},{input:"\\\\",tag:"mo",output:"\\",tex:"backslash",tType:0},{input:"setminus",tag:"mo",output:"\\",tex:null,tType:0},{input:"xx",tag:"mo",output:"×",tex:"times",tType:0},{input:"|><",tag:"mo",output:"⋉",tex:"ltimes",tType:0},{input:"><|",tag:"mo",output:"⋊",tex:"rtimes",tType:0},{input:"|><|",tag:"mo",output:"⋈",tex:"bowtie",tType:0},{input:"-:",tag:"mo",output:"÷",tex:"div",tType:0},{input:"divide",tag:"mo",output:"-:",tex:null,tType:8},{input:"@",tag:"mo",output:"∘",tex:"circ",tType:0},{input:"o+",tag:"mo",output:"⊕",tex:"oplus",tType:0},{input:"ox",tag:"mo",output:"⊗",tex:"otimes",tType:0},{input:"o.",tag:"mo",output:"⊙",tex:"odot",tType:0},{input:"sum",tag:"mo",output:"∑",tex:null,tType:7},{input:"prod",tag:"mo",output:"∏",tex:null,tType:7},{input:"^^",tag:"mo",output:"∧",tex:"wedge",tType:0},{input:"^^^",tag:"mo",output:"⋀",tex:"bigwedge",tType:7},{input:"vv",tag:"mo",output:"∨",tex:"vee",tType:0},{input:"vvv",tag:"mo",output:"⋁",tex:"bigvee",tType:7},{input:"nn",tag:"mo",output:"∩",tex:"cap",tType:0},{input:"nnn",tag:"mo",output:"⋂",tex:"bigcap",tType:7},{input:"uu",tag:"mo",output:"∪",tex:"cup",tType:0},{input:"uuu",tag:"mo",output:"⋃",tex:"bigcup",tType:7},{input:"overset",tag:"mover",output:"stackrel",tex:null,tType:2},{input:"underset",tag:"munder",output:"stackrel",tex:null,tType:2},{input:"!=",tag:"mo",output:"≠",tex:"ne",tType:0},{input:":=",tag:"mo",output:":=",tex:null,tType:0},{input:"lt",tag:"mo",output:"<",tex:null,tType:0},{input:"gt",tag:"mo",output:">",tex:null,tType:0},{input:"<=",tag:"mo",output:"≤",tex:"le",tType:0},{input:"lt=",tag:"mo",output:"≤",tex:"leq",tType:0},{input:"gt=",tag:"mo",output:"≥",tex:"geq",tType:0},{input:">=",tag:"mo",output:"≥",tex:"ge",tType:0},{input:"-<",tag:"mo",output:"≺",tex:"prec",tType:0},{input:"-lt",tag:"mo",output:"≺",tex:null,tType:0},{input:">-",tag:"mo",output:"≻",tex:"succ",tType:0},{input:"-<=",tag:"mo",output:"⪯",tex:"preceq",tType:0},{input:">-=",tag:"mo",output:"⪰",tex:"succeq",tType:0},{input:"in",tag:"mo",output:"∈",tex:null,tType:0},{input:"!in",tag:"mo",output:"∉",tex:"notin",tType:0},{input:"sub",tag:"mo",output:"⊂",tex:"subset",tType:0},{input:"sup",tag:"mo",output:"⊃",tex:"supset",tType:0},{input:"sube",tag:"mo",output:"⊆",tex:"subseteq",tType:0},{input:"supe",tag:"mo",output:"⊇",tex:"supseteq",tType:0},{input:"-=",tag:"mo",output:"≡",tex:"equiv",tType:0},{input:"~=",tag:"mo",output:"≅",tex:"stackrel{\\sim}{=}",tType:0},{input:"cong",tag:"mo",output:"~=",tex:null,tType:8},{input:"~~",tag:"mo",output:"≈",tex:"approx",tType:0},{input:"prop",tag:"mo",output:"∝",tex:"propto",tType:0},{input:"and",tag:"mtext",output:"and",tex:null,tType:6},{input:"or",tag:"mtext",output:"or",tex:null,tType:6},{input:"not",tag:"mo",output:"¬",tex:"neg",tType:0},{input:"=>",tag:"mo",output:"⇒",tex:"Rightarrow",tType:0},{input:"implies",tag:"mo",output:"=>",tex:null,tType:8},{input:"if",tag:"mo",output:"if",tex:null,tType:6},{input:"<=>",tag:"mo",output:"⇔",tex:"Leftrightarrow",tType:0},{input:"iff",tag:"mo",output:"<=>",tex:null,tType:8},{input:"AA",tag:"mo",output:"∀",tex:"forall",tType:0},{input:"EE",tag:"mo",output:"∃",tex:"exists",tType:0},{input:"_|_",tag:"mo",output:"⊥",tex:"bot",tType:0},{input:"TT",tag:"mo",output:"⊤",tex:"top",tType:0},{input:"|--",tag:"mo",output:"⊢",tex:"vdash",tType:0},{input:"|==",tag:"mo",output:"⊨",tex:"models",tType:0},{input:"(",tag:"mo",output:"(",tex:null,tType:4,val:!0},{input:")",tag:"mo",output:")",tex:null,tType:5,val:!0},{input:"[",tag:"mo",output:"[",tex:null,tType:4,val:!0},{input:"]",tag:"mo",output:"]",tex:null,tType:5,val:!0},{input:"{",tag:"mo",output:"{",tex:"lbrace",tType:4},{input:"}",tag:"mo",output:"}",tex:"rbrace",tType:5},{input:"|",tag:"mo",output:"|",tex:null,tType:9,val:!0},{input:"(:",tag:"mo",output:"〈",tex:"langle",tType:4},{input:":)",tag:"mo",output:"〉",tex:"rangle",tType:5},{input:"<<",tag:"mo",output:"〈",tex:"langle",tType:4},{input:">>",tag:"mo",output:"〉",tex:"rangle",tType:5},{input:"{:",tag:"mo",output:"{:",tex:null,tType:4,invisible:!0},{input:":}",tag:"mo",output:":}",tex:null,tType:5,invisible:!0},{input:"int",tag:"mo",output:"∫",tex:null,tType:0},{input:"dx",tag:"mi",output:"{:d x:}",tex:null,tType:8},{input:"dy",tag:"mi",output:"{:d y:}",tex:null,tType:8},{input:"dz",tag:"mi",output:"{:d z:}",tex:null,tType:8},{input:"dt",tag:"mi",output:"{:d t:}",tex:null,tType:8},{input:"oint",tag:"mo",output:"∮",tex:null,tType:0},{input:"del",tag:"mo",output:"∂",tex:"partial",tType:0},{input:"grad",tag:"mo",output:"∇",tex:"nabla",tType:0},{input:"+-",tag:"mo",output:"±",tex:"pm",tType:0},{input:"O/",tag:"mo",output:"∅",tex:"emptyset",tType:0},{input:"oo",tag:"mo",output:"∞",tex:"infty",tType:0},{input:"aleph",tag:"mo",output:"ℵ",tex:null,tType:0},{input:"...",tag:"mo",output:"...",tex:"ldots",tType:0},{input:":.",tag:"mo",output:"∴",tex:"therefore",tType:0},{input:":'",tag:"mo",output:"∵",tex:"because",tType:0},{input:"/_",tag:"mo",output:"∠",tex:"angle",tType:0},{input:"/_\\",tag:"mo",output:"△",tex:"triangle",tType:0},{input:"\\ ",tag:"mo",output:" ",tex:null,tType:0,val:!0},{input:"frown",tag:"mo",output:"⌢",tex:null,tType:0},{input:"%",tag:"mo",output:"%",tex:"%",tType:0,noTexCopy:!0},{input:"quad",tag:"mo",output:" ",tex:null,tType:0},{input:"qquad",tag:"mo",output:" ",tex:null,tType:0},{input:"cdots",tag:"mo",output:"⋯",tex:null,tType:0},{input:"vdots",tag:"mo",output:"⋮",tex:null,tType:0},{input:"ddots",tag:"mo",output:"⋱",tex:null,tType:0},{input:"diamond",tag:"mo",output:"⋄",tex:null,tType:0},{input:"square",tag:"mo",output:"□",tex:"boxempty",tType:0},{input:"|__",tag:"mo",output:"⌊",tex:"lfloor",tType:0},{input:"__|",tag:"mo",output:"⌋",tex:"rfloor",tType:0},{input:"|~",tag:"mo",output:"⌈",tex:"lceil",tType:0},{input:"lceiling",tag:"mo",output:"|~",tex:null,tType:8},{input:"~|",tag:"mo",output:"⌉",tex:"rceil",tType:0},{input:"rceiling",tag:"mo",output:"~|",tex:null,tType:8},{input:"CC",tag:"mo",output:"ℂ",tex:"mathbb{C}",tType:0,noTexCopy:!0},{input:"NN",tag:"mo",output:"ℕ",tex:"mathbb{N}",tType:0,noTexCopy:!0},{input:"QQ",tag:"mo",output:"ℚ",tex:"mathbb{Q}",tType:0,noTexCopy:!0},{input:"RR",tag:"mo",output:"ℝ",tex:"mathbb{R}",tType:0,noTexCopy:!0},{input:"ZZ",tag:"mo",output:"ℤ",tex:"mathbb{Z}",tType:0,noTexCopy:!0},{input:"f",tag:"mi",output:"f",tex:null,tType:1,func:!0,val:!0},{input:"g",tag:"mi",output:"g",tex:null,tType:1,func:!0,val:!0},{input:"''",tag:"mo",output:"''",tex:null,val:!0},{input:"'''",tag:"mo",output:"'''",tex:null,val:!0},{input:"''''",tag:"mo",output:"''''",tex:null,val:!0},{input:"lim",tag:"mo",output:"lim",tex:null,tType:7},{input:"Lim",tag:"mo",output:"Lim",tex:null,tType:7},{input:"sin",tag:"mo",output:"sin",tex:null,tType:1,func:!0},{input:"cos",tag:"mo",output:"cos",tex:null,tType:1,func:!0},{input:"tan",tag:"mo",output:"tan",tex:null,tType:1,func:!0},{input:"arcsin",tag:"mo",output:"arcsin",tex:null,tType:1,func:!0},{input:"arccos",tag:"mo",output:"arccos",tex:null,tType:1,func:!0},{input:"arctan",tag:"mo",output:"arctan",tex:null,tType:1,func:!0},{input:"sinh",tag:"mo",output:"sinh",tex:null,tType:1,func:!0},{input:"cosh",tag:"mo",output:"cosh",tex:null,tType:1,func:!0},{input:"tanh",tag:"mo",output:"tanh",tex:null,tType:1,func:!0},{input:"cot",tag:"mo",output:"cot",tex:null,tType:1,func:!0},{input:"coth",tag:"mo",output:"coth",tex:null,tType:1,func:!0},{input:"sech",tag:"mo",output:"sech",tex:null,tType:1,func:!0},{input:"csch",tag:"mo",output:"csch",tex:null,tType:1,func:!0},{input:"sec",tag:"mo",output:"sec",tex:null,tType:1,func:!0},{input:"csc",tag:"mo",output:"csc",tex:null,tType:1,func:!0},{input:"log",tag:"mo",output:"log",tex:null,tType:1,func:!0},{input:"ln",tag:"mo",output:"ln",tex:null,tType:1,func:!0},{input:"abs",tag:"mo",output:"abs",tex:null,tType:1,noTexCopy:!0,rewriteLeftRight:["|","|"]},{input:"norm",tag:"mo",output:"norm",tex:null,tType:1,noTexCopy:!0,rewriteLeftRight:["\\|","\\|"]},{input:"floor",tag:"mo",output:"floor",tex:null,tType:1,noTexCopy:!0,rewriteLeftRight:["\\lfloor","\\rfloor"]},{input:"ceil",tag:"mo",output:"ceil",tex:null,tType:1,noTexCopy:!0,rewriteLeftRight:["\\lceil","\\rceil"]},{input:"Sin",tag:"mo",output:"sin",tex:null,tType:1,func:!0},{input:"Cos",tag:"mo",output:"cos",tex:null,tType:1,func:!0},{input:"Tan",tag:"mo",output:"tan",tex:null,tType:1,func:!0},{input:"Arcsin",tag:"mo",output:"arcsin",tex:null,tType:1,func:!0},{input:"Arccos",tag:"mo",output:"arccos",tex:null,tType:1,func:!0},{input:"Arctan",tag:"mo",output:"arctan",tex:null,tType:1,func:!0},{input:"Sinh",tag:"mo",output:"sinh",tex:null,tType:1,func:!0},{input:"Sosh",tag:"mo",output:"cosh",tex:null,tType:1,func:!0},{input:"Tanh",tag:"mo",output:"tanh",tex:null,tType:1,func:!0},{input:"Cot",tag:"mo",output:"cot",tex:null,tType:1,func:!0},{input:"Sec",tag:"mo",output:"sec",tex:null,tType:1,func:!0},{input:"Csc",tag:"mo",output:"csc",tex:null,tType:1,func:!0},{input:"Log",tag:"mo",output:"log",tex:null,tType:1,func:!0},{input:"Ln",tag:"mo",output:"ln",tex:null,tType:1,func:!0},{input:"Abs",tag:"mo",output:"abs",tex:null,tType:1,noTexCopy:!0,rewriteLeftRight:["|","|"]},{input:"det",tag:"mo",output:"det",tex:null,tType:1,func:!0},{input:"exp",tag:"mo",output:"exp",tex:null,tType:1,func:!0},{input:"dim",tag:"mo",output:"dim",tex:null,tType:0},{input:"mod",tag:"mo",output:"mod",tex:"text{mod}",tType:0,noTexCopy:!0},{input:"gcd",tag:"mo",output:"gcd",tex:null,tType:1,func:!0},{input:"lcm",tag:"mo",output:"lcm",tex:"text{lcm}",tType:1,func:!0,noTexCopy:!0},{input:"lub",tag:"mo",output:"lub",tex:null,tType:0},{input:"glb",tag:"mo",output:"glb",tex:null,tType:0},{input:"min",tag:"mo",output:"min",tex:null,tType:7},{input:"max",tag:"mo",output:"max",tex:null,tType:7},{input:"uarr",tag:"mo",output:"↑",tex:"uparrow",tType:0},{input:"darr",tag:"mo",output:"↓",tex:"downarrow",tType:0},{input:"rarr",tag:"mo",output:"→",tex:"rightarrow",tType:0},{input:"->",tag:"mo",output:"→",tex:"to",tType:0},{input:">->",tag:"mo",output:"↣",tex:"rightarrowtail",tType:0},{input:"->>",tag:"mo",output:"↠",tex:"twoheadrightarrow",tType:0},{input:">->>",tag:"mo",output:"⤖",tex:"twoheadrightarrowtail",tType:0},{input:"|->",tag:"mo",output:"↦",tex:"mapsto",tType:0},{input:"larr",tag:"mo",output:"←",tex:"leftarrow",tType:0},{input:"harr",tag:"mo",output:"↔",tex:"leftrightarrow",tType:0},{input:"rArr",tag:"mo",output:"⇒",tex:"Rightarrow",tType:0},{input:"lArr",tag:"mo",output:"⇐",tex:"Leftarrow",tType:0},{input:"hArr",tag:"mo",output:"⇔",tex:"Leftrightarrow",tType:0},{input:"sqrt",tag:"msqrt",output:"sqrt",tex:null,tType:1},{input:"root",tag:"mroot",output:"root",tex:null,tType:2},{input:"frac",tag:"mfrac",output:"/",tex:null,tType:2},{input:"/",tag:"mfrac",output:"/",tex:null,tType:3},{input:"stackrel",tag:"mover",output:"stackrel",tex:null,tType:2},{input:"_",tag:"msub",output:"_",tex:null,tType:3},{input:"^",tag:"msup",output:"^",tex:null,tType:3},{input:"cancel",tag:"menclose",output:"cancel",tex:null,tType:1},{input:"Sqrt",tag:"msqrt",output:"sqrt",tex:null,tType:1},{input:"hat",tag:"mover",output:"^",tex:null,tType:1,acc:!0},{input:"bar",tag:"mover",output:"¯",tex:"overline",tType:1,acc:!0},{input:"vec",tag:"mover",output:"→",tex:null,tType:1,acc:!0},{input:"tilde",tag:"mover",output:"~",tex:null,tType:1,acc:!0},{input:"dot",tag:"mover",output:".",tex:null,tType:1,acc:!0},{input:"ddot",tag:"mover",output:"..",tex:null,tType:1,acc:!0},{input:"ul",tag:"munder",output:"̲",tex:"underline",tType:1,acc:!0},{input:"ubrace",tag:"munder",output:"⏟",tex:"underbrace",tType:1,acc:!0},{input:"obrace",tag:"mover",output:"⏞",tex:"overbrace",tType:1,acc:!0},{input:"text",tag:"mtext",output:"text",tex:null,tType:10},{input:"mbox",tag:"mtext",output:"mbox",tex:null,tType:10},Ar,{input:"color",tag:"mstyle",tType:2},{input:"bb",tag:"mstyle",atName:"mathvariant",atVal:"bold",output:"bb",tex:"mathbf",tType:1,noTexCopy:!0},{input:"mathbf",tag:"mstyle",atName:"mathvariant",atVal:"bold",output:"mathbf",tex:null,tType:1},{input:"sf",tag:"mstyle",atName:"mathvariant",atVal:"sans-serif",output:"sf",tex:"mathsf",tType:1,noTexCopy:!0},{input:"mathsf",tag:"mstyle",atName:"mathvariant",atVal:"sans-serif",output:"mathsf",tex:null,tType:1},{input:"bbb",tag:"mstyle",atName:"mathvariant",atVal:"double-struck",output:"bbb",tex:"mathbb",tType:1,noTexCopy:!0},{input:"mathbb",tag:"mstyle",atName:"mathvariant",atVal:"double-struck",output:"mathbb",tex:null,tType:1},{input:"cc",tag:"mstyle",atName:"mathvariant",atVal:"script",output:"cc",tex:"mathcal",tType:1,noTexCopy:!0},{input:"mathcal",tag:"mstyle",atName:"mathvariant",atVal:"script",output:"mathcal",tex:null,tType:1},{input:"tt",tag:"mstyle",atName:"mathvariant",atVal:"monospace",output:"tt",tex:"mathtt",tType:1,noTexCopy:!0},{input:"mathtt",tag:"mstyle",atName:"mathvariant",atVal:"monospace",output:"mathtt",tex:null,tType:1},{input:"fr",tag:"mstyle",atName:"mathvariant",atVal:"fraktur",output:"fr",tex:"mathfrak",tType:1,noTexCopy:!0},{input:"mathfrak",tag:"mstyle",atName:"mathvariant",atVal:"fraktur",output:"mathfrak",tex:null,tType:1}],Dr=Pr.filter((function(e){return e.tex&&!0!==e.noTexCopy})).map((function(e){return{input:e.tex,tag:e.tag,output:e.output,tType:e.tType,acc:e.acc||!1}}));function jr(e,t){var n;n="\\"===e.charAt(t)&&"\\"!==e.charAt(t+1)&&" "!==e.charAt(t+1)?e.slice(t+1):e.slice(t);for(var r=0;r>1;e[o]=zr[i];if(t=n,""!==c)return n=Pr[r].tType,Pr[r];n=0,i=1,o=e.slice(0,1);for(var u=!0;"0"<=o&&o<="9"&&i<=e.length;)o=e.slice(i,i+1),i++;if("."===o&&"0"<=(o=e.slice(i,i+1))&&o<="9")for(u=!1,i++;"0"<=o&&o<="9"&&i<=e.length;)o=e.slice(i,i+1),i++;return u&&i>1||i>2?(o=e.slice(0,i-1),a="mn"):(i=2,a=("A">(o=e.slice(0,1))||o>"Z")&&("a">o||o>"z")?"mo":"mi"),"-"===o&&3===t?(n=3,{input:o,tag:a,output:o,tType:1,func:!0,val:!0}):{input:o,tag:a,output:o,tType:0,val:!0}}function Lr(e){if("{"===e.charAt(0)&&"}"===e.charAt(e.length-1)){var t=0,n=e.substr(1,5);"\\left"===n?"("===(n=e.charAt(6))||"["===n||"{"===n?t=7:"\\lbrace"===(n=e.substr(6,7))&&(t=13):"("!==(n=e.charAt(1))&&"["!==n||(t=2),t>0&&("\\right)}"===(n=e.substr(e.length-8))||"\\right]}"===n||"\\right.}"===n?e=(e="{"+e.substr(t)).substr(0,e.length-8)+"}":"\\rbrace}"===n&&(e=(e="{"+e.substr(t)).substr(0,e.length-14)+"}"))}return e}function Rr(e){var t;return t="boolean"==typeof e.val&&e.val?"":"\\",e.tex?t+e.tex:t+e.input}function Hr(e,t){var n=Nr(e=jr(e,0));if(!n||5===n.tType&&t>0)return[null,e];switch(8===n.tType&&(n=Nr(e=n.output+jr(e,n.input.length))),n.tType){case 7:case 0:e=jr(e,n.input.length);var r=Rr(n);return"\\"===r.charAt(0)||"mo"===n.tag?[r,e]:["{".concat(r,"}"),e];case 4:t++;var o=Br(e=jr(e,n.input.length),!0,t);t--;var a=0;"\\right"===o[0].substr(0,6)&&(")"===(p=o[0].charAt(6))||"]"===p||"}"===p?a=6:"."===p?a=7:"\\rbrace"===(p=o[0].substr(6,7))&&(a=13));var i="";return a>0?(o[0]=o[0].substr(a),i=n.invisible?"{".concat(o[0],"}"):"{".concat(Rr(n)).concat(o[0],"}")):i=n.invisible?"{\\left.".concat(o[0],"}"):"{\\left".concat(Rr(n)).concat(o[0],"}"),[i,o[1]];case 10:var c;n!==Ar&&(e=jr(e,n.input.length)),-1===(c="{"===e.charAt(0)?e.indexOf("}"):"("===e.charAt(0)?e.indexOf(")"):"["===e.charAt(0)?e.indexOf("]"):n===Ar?e.slice(1).indexOf("'")+1:0)&&(c=e.length);var s="";return" "===(p=e.slice(1,c)).charAt(0)&&(s="\\ "),s+="\\text{".concat(p,"}")," "===p.charAt(p.length-1)&&(s+="\\ "),[s,e=jr(e,c+1)];case 1:var l=Hr(e=jr(e,n.input.length),t);return null===l[0]?["{".concat(Rr(n),"}"),e]:!0===n.func?"^"===(p=e.charAt(0))||"_"===p||"/"===p||"|"===p||","===p||1===n.input.length&&n.input.match(/\w/)&&"("!==p?["{".concat(Rr(n),"}"),e]:["{".concat(Rr(n),"{").concat(l[0],"}}"),l[1]]:(l[0]=Lr(l[0]),"sqrt"===n.input?["\\sqrt{".concat(l[0],"}"),l[1]]:"cancel"===n.input?["\\cancel{".concat(l[0],"}"),l[1]]:void 0!==n.rewriteLeftRight?["{\\left".concat(n.rewriteLeftRight[0]).concat(l[0],"\\right").concat(n.rewriteLeftRight[1],"}"),l[1]]:!0===n.acc?["".concat(Rr(n),"{").concat(l[0],"}"),l[1]]:["{".concat(Rr(n),"{").concat(l[0],"}}"),l[1]]);case 2:var u=Hr(e=jr(e,n.input.length),t);if(null===u[0])return["{".concat(Rr(n),"}"),e];u[0]=Lr(u[0]);var d=Hr(u[1],t);return null===d[0]?["{".concat(Rr(n),"}"),e]:(d[0]=Lr(d[0]),["color"===n.input?"{\\color{".concat(u[0].replace(/[{}]/g,""),"}").concat(d[0],"}"):"root"===n.input?"{\\sqrt[".concat(u[0],"]{").concat(d[0],"}}"):"{".concat(Rr(n),"{").concat(u[0],"}{").concat(d[0],"}}"),d[1]]);case 3:return e=jr(e,n.input.length),[n.output,e];case 6:return e=jr(e,n.input.length),["{\\quad\\text{".concat(n.input,"}\\quad}"),e];case 9:t++;var f=Br(e=jr(e,n.input.length),!1,t);t--;var p="";return"|"===(p=f[0].charAt(f[0].length-1))?["{\\left|".concat(f[0],"}"),f[1]]:["{\\mid}",e];default:return e=jr(e,n.input.length),["{".concat(Rr(n),"}"),e]}}function Vr(e,t){var n,r=Nr(e=jr(e,0)),o=Hr(e,t),a=o[0],i=Nr(e=o[1]);if(3!==i.tType||"/"===i.input)return[a,e];if(null===(o=Hr(e=jr(e,i.input.length),t))[0]?o[0]="{}":o[0]=Lr(o[0]),e=o[1],"_"===i.input)if("^"===(n=Nr(e)).input){var c=Hr(e=jr(e,n.input.length),t);c[0]=Lr(c[0]),e=c[1],a="{".concat(a),a+="_{".concat(o[0],"}"),a+="^{".concat(c[0],"}"),a+="}"}else a+="_{".concat(o[0],"}");else a="".concat(a,"^{").concat(o[0],"}");return void 0!==r.func&&r.func&&3!==(n=Nr(e)).tType&&5!==n.tType&&(o=Vr(e,t),a="{".concat(a).concat(o[0],"}"),e=o[1]),[a,e]}function Br(e,t,n){var r,o,a,i,c="",s=!1;do{o=(a=Vr(e=jr(e,0),n))[0],3===(r=Nr(e=a[1])).tType&&"/"===r.input?(null===(a=Vr(e=jr(e,r.input.length),n))[0]?a[0]="{}":a[0]=Lr(a[0]),e=a[1],o=Lr(o),o="".concat("\\frac{").concat(o,"}"),c+=o+="{".concat(a[0],"}"),r=Nr(e)):o&&(c+=o)}while((5!==r.tType&&(9!==r.tType||t)||0===n)&&r&&r.output);if(5===r.tType||9===r.tType){var l=c.length;if(l>2&&"{"===c.charAt(0)&&c.indexOf(",")>0){var u=c.charAt(l-2);if(")"===u||"]"===u){var d=c.charAt(6);if("("===d&&")"===u&&"}"!==r.output||"["===d&&"]"===u){var f="\\matrix{",p=new Array;p.push(0);var h=!0,m=0,g=[];g[0]=[0];var v=0,y=0;for(i=1;i0&&h)for(i=0;i0&&(f+="\\\\");var x=void 0;if(0===i)if(1===g[p[i]].length)x=[c.substr(p[i]+7,p[i+1]-p[i]-15)];else{for(var w=[c.substring(p[i]+7,g[p[i]][1])],_=2;_0&&x.length!==b?h=!1:-1===b&&(b=x.length),f+=x.join("&")}f+="}",h&&(c=f)}}}e=jr(e,r.input.length),"boolean"==typeof r.invisible&&r.invisible?(c+="\\right.",s=!0):(c+=o="\\right".concat(Rr(r)),s=!0)}return n>0&&!s&&(c+="\\right."),[c,e]}function Fr(e){return(e=e.replace(/( |\u00a0| )/g,"").replace(/>/g,">").replace(/</g,"<")).match(/\S/)?Br(e.replace(/^\s+/g,""),!1,0)[0]:""}function qr(e){var t=e.elements,n=e.config,r=e.isAsciimath;t.length&&t.forEach((function(e){var t=e.textContent,o=r?Fr(t):t,a=i.renderToString(o,n);e.parentNode.outerHTML='').concat(a,"")}))}function Ur(e){return e.replace(/[-[\]/{}()*+?.\\$^|]/g,"\\$&")}Pr.push.apply(Pr,r(Dr)),Pr.sort((function(e,t){return e.input>t.input?1:-1})),zr=Pr.map((function(e){return e.input}));var Wr=function(e){return function(){var t=new DOMParser,o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n({displayMode:!0,throwOnError:!1,errorColor:"#ff0000"},e,{delimiters:(e.delimiters||[]).concat([{left:"$$",right:"$$",display:!1},{left:"~",right:"~",display:!1,asciimath:!0}])})}(e),a=o.delimiters.filter((function(e){return e.asciimath})).map((function(e){var t=e.left,n=e.right;return{test:new RegExp("".concat(Ur(t),"(.*?)").concat(Ur(n)),"g"),replacer:function(e,r){return"".concat(t).concat(Fr(r)).concat(n)}}}));return[{type:"output",filter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=t.parseFromString(e,"text/html").body;a.length&&n.querySelectorAll(":not(code):not(pre)").forEach((function(e){r(e.childNodes).filter((function(e){return"#text"===e.nodeName&&e.nodeValue.trim()})).forEach((function(e){var t=a.reduce((function(e,t){var n=t.test,r=t.replacer;return e.replace(n,r)}),e.nodeValue);e.nodeValue=t}))}));var i=n.querySelectorAll("code.latex.language-latex"),c=n.querySelectorAll("code.asciimath.language-asciimath");return qr({elements:i,config:o}),qr({elements:c,config:o,isAsciimath:!0}),Tr(n,o),n.innerHTML}}]}};return e.extension("showdown-katex",Wr()),Wr},e.exports=r(n("M55E"))}).call(this,n("yLpj"))},BfU5:function(e,t,n){var r=n("ekG2"),o=n("7whZ").document,a=r(o)&&r(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},BlVb:function(e,t,n){var r=n("hyiK");function o(e,t){return Math.abs(e-t)<1e-8}t.contain=function(e,t,n){var a=0,i=e[0];if(!i)return!1;for(var c=1;c.5?t:e}function d(e,t,n,r,o){var a=e.length;if(1===o)for(var i=0;io)e.length=o;else for(var a=r;a=0&&!(E[n]<=t);n--);n=Math.min(n,x-2)}else{for(n=V;nt);n++);n=Math.min(n-1,x-2)}V=n,B=t;var r=E[n+1]-E[n];if(0!==r)if(I=(t-E[n])/r,b)if(L=M[n],N=M[0===n?n:n-1],R=M[n>x-2?x-1:n+1],H=M[n>x-3?x-1:n+2],k)h(N,L,R,H,I,I*I,I*I*I,g(e,c),C);else{if(S)o=h(N,L,R,H,I,I*I,I*I*I,F,1),o=v(F);else{if(O)return u(L,R,I);o=m(N,L,R,H,I,I*I,I*I*I)}y(e,c,o)}else if(k)d(M[n],M[n+1],I,g(e,c),C);else{var o;if(S)d(M[n],M[n+1],I,F,1),o=v(F);else{if(O)return u(M[n],M[n+1],I);o=l(M[n],M[n+1],I)}y(e,c,o)}},ondestroy:n});return t&&"spline"!==t&&(q.easing=t),q}}}var b=function(e,t,n,r){this._tracks={},this._target=e,this._loop=t||!1,this._getter=n||c,this._setter=r||s,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};b.prototype={when:function(e,t){var n=this._tracks;for(var r in t)if(t.hasOwnProperty(r)){if(!n[r]){n[r]=[];var o=this._getter(this._target,r);if(null==o)continue;0!==e&&n[r].push({time:0,value:g(o)})}n[r].push({time:e,value:t[r]})}return this},during:function(e){return this._onframeList.push(e),this},pause:function(){for(var e=0;ee.length)&&(t=e.length);for(var n=0,r=new Array(t);n0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e));return r.createElement(N.Provider,{value:{siderHook:this.getSiderHook()}},r.createElement(u,E({className:f},d),s))}}]),n}(r.Component),V=L({suffixCls:"layout",tagName:"section",displayName:"Layout"})(H),B=L({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(R),F=L({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(R),q=L({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(R);V.Header=B,V.Footer=F,V.Content=q;var U=n("CtXQ");function W(e){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G(){return(G=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";return Z+=1,"".concat(e).concat(Z)}),ne=function(e){Q(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=J(e);if(t){var o=J(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return X(this,n)}}(n);function n(e){var o,a,s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(o=t.call(this,e)).responsiveHandler=function(e){o.setState({below:e.matches});var t=o.props.onBreakpoint;t&&t(e.matches),o.state.collapsed!==e.matches&&o.setCollapsed(e.matches,"responsive")},o.setCollapsed=function(e,t){"collapsed"in o.props||o.setState({collapsed:e});var n=o.props.onCollapse;n&&n(e,t)},o.toggle=function(){var e=!o.state.collapsed;o.setCollapsed(e,"clickTrigger")},o.belowShowChange=function(){o.setState((function(e){return{belowShow:!e.belowShow}}))},o.renderSider=function(e){var t,n=e.getPrefixCls,a=o.props,s=a.prefixCls,l=a.className,u=a.theme,d=a.collapsible,f=a.reverseArrow,p=a.trigger,h=a.style,m=a.width,g=a.collapsedWidth,v=a.zeroWidthTriggerStyle,y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=0;(t||o)&&a.restoreModeVerticalFromInline()},a.handleClick=function(e){a.handleOpenChange([]);var t=a.props.onClick;t&&t(e)},a.handleOpenChange=function(e){a.setOpenKeys(e);var t=a.props.onOpenChange;t&&t(e)},a.renderMenu=function(e){var t,n,s,l=e.getPopupContainer,u=e.getPrefixCls,d=a.props,f=d.prefixCls,p=d.className,h=d.theme,m=d.collapsedWidth,g=Object(c.default)(a.props,["collapsedWidth","siderCollapsed"]),v=a.getRealMenuMode(),y=a.getOpenMotionProps(v),b=u("menu",f),x=i()(p,"".concat(b,"-").concat(h),(t={},n="".concat(b,"-inline-collapsed"),s=a.getInlineCollapsed(),n in t?Object.defineProperty(t,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[n]=s,t)),w=ge({openKeys:a.state.openKeys,onOpenChange:a.handleOpenChange,className:x,mode:v},y);return"inline"!==v&&(w.onClick=a.handleClick),a.getInlineCollapsed()&&(0===m||"0"===m||"0px"===m)&&(w.openKeys=[]),r.createElement(o.e,ge({getPopupContainer:l},g,w,{prefixCls:b,onTransitionEnd:a.handleTransitionEnd,onMouseEnter:a.handleMouseEnter}))},Object(fe.a)(!("onOpen"in e||"onClose"in e),"Menu","`onOpen` and `onClose` are removed, please use `onOpenChange` instead, see: https://u.ant.design/menu-on-open-change."),Object(fe.a)(!("inlineCollapsed"in e&&"inline"!==e.mode),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Object(fe.a)(!(void 0!==e.siderCollapsed&&"inlineCollapsed"in e),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),"openKeys"in e?s=e.openKeys:"defaultOpenKeys"in e&&(s=e.defaultOpenKeys),a.state={openKeys:s||[],switchingModeFromInline:!1,inlineOpenKeys:[],prevProps:e},a}return be(n,[{key:"componentWillUnmount",value:function(){pe.a.cancel(this.mountRafId)}},{key:"setOpenKeys",value:function(e){"openKeys"in this.props||this.setState({openKeys:e})}},{key:"getRealMenuMode",value:function(){var e=this.getInlineCollapsed();if(this.state.switchingModeFromInline&&e)return"inline";var t=this.props.mode;return e?"vertical":t}},{key:"getInlineCollapsed",value:function(){var e=this.props.inlineCollapsed;return void 0!==this.props.siderCollapsed?this.props.siderCollapsed:e}},{key:"getOpenMotionProps",value:function(e){var t=this.props,n=t.openTransitionName,r=t.openAnimation,o=t.motion;return o?{motion:o}:r?(Object(fe.a)("string"==typeof r,"Menu","`openAnimation` do not support object. Please use `motion` instead."),{openAnimation:r}):n?{openTransitionName:n}:"horizontal"===e?{motion:{motionName:"slide-up"}}:"inline"===e?{motion:he.a}:{motion:{motionName:this.state.switchingModeFromInline?"":"zoom-big"}}}},{key:"restoreModeVerticalFromInline",value:function(){this.state.switchingModeFromInline&&this.setState({switchingModeFromInline:!1})}},{key:"render",value:function(){return r.createElement(f.Provider,{value:{inlineCollapsed:this.getInlineCollapsed()||!1,antdMenuTheme:this.props.theme}},r.createElement(k.a,null,this.renderMenu))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r={prevProps:e};return"inline"===n.mode&&"inline"!==e.mode&&(r.switchingModeFromInline=!0),"openKeys"in e?r.openKeys=e.openKeys:((e.inlineCollapsed&&!n.inlineCollapsed||e.siderCollapsed&&!n.siderCollapsed)&&(r.switchingModeFromInline=!0,r.inlineOpenKeys=t.openKeys,r.openKeys=[]),(!e.inlineCollapsed&&n.inlineCollapsed||!e.siderCollapsed&&n.siderCollapsed)&&(r.openKeys=t.inlineOpenKeys,r.inlineOpenKeys=[])),r}}]),n}(r.Component);Se.defaultProps={className:"",theme:"light",focusable:!1},Object(s.polyfill)(Se);var Oe=function(e){xe(n,e);var t=we(n);function n(){return ve(this,n),t.apply(this,arguments)}return be(n,[{key:"render",value:function(){var e=this;return r.createElement(ee.Consumer,null,(function(t){return r.createElement(Se,ge({},e.props,t))}))}}]),n}(r.Component);Oe.Divider=o.a,Oe.Item=de,Oe.SubMenu=w,Oe.ItemGroup=o.c},Bvq2:function(e,t,n){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},BwF7:function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)},o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function a(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map((function(e){return a(e,n)}))}function c(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function s(e,t){try{return t in e}catch(e){return!1}}function l(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||i,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=a;var o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&c(e).forEach((function(t){r[t]=a(e[t],n)})),c(t).forEach((function(o){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(s(e,o)&&n.isMergeableObject(t[o])?r[o]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(o,n)(e[o],t[o],n):r[o]=a(t[o],n))})),r}(e,t,n):a(t,n)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var u=l;e.exports=u},By1P:function(e,t,n){"use strict";var r=n("C61u"),o=n("mHY4"),a=n("/tXR"),i=n("GRew"),c=n("CYMq"),s=n("n7vu"),l=Object.assign;e.exports=!l||n("S4vA")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=r}))?function(e,t){for(var n=c(e),l=arguments.length,u=1,d=a.f,f=i.f;l>u;)for(var p,h=s(arguments[u++]),m=d?o(h).concat(d(h)):o(h),g=m.length,v=0;g>v;)p=m[v++],r&&!f.call(h,p)||(n[p]=h[p]);return n}:l},C0SR:function(e,t,n){var r=n("YH21"),o=function(){this._track=[]};function a(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}o.prototype={constructor:o,recognize:function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},clear:function(){return this._track.length=0,this},_doTrack:function(e,t,n){var o=e.touches;if(o){for(var a={points:[],touches:[],target:t,event:e},i=0,c=o.length;i1&&o&&o.length>1){var c=a(o)/a(i);!isFinite(c)&&(c=1),t.pinchScale=c;var s=[((r=o)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}},c=o;e.exports=c},C3ug:function(e,t,n){"use strict";var r=n("j5XY"),o=n("+Lan"),a=n("Cx3U"),i=n("dGO/"),c=n("A2Ma")("iterator");e.exports=function(e){if(!a(e))return o(e,c)||o(e,"@@iterator")||i[r(e)]}},C5kU:function(e,t,n){"use strict";var r=n("GfoU")(!0);n("OTpG")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},C61u:function(e,t,n){e.exports=!n("S4vA")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},C6mK:function(e,t,n){var r=n("z5Kx");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"CE4/":function(e,t,n){"use strict";var r=n("nAx8"),o=n("USwo"),a=n("CYMq"),i=n("xMGN"),c=n("bS86"),s=n("0WpP"),l=n("SkeG"),u=n("I90/");o(o.S+o.F*!n("h3Hq")((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,o,d,f=a(e),p="function"==typeof this?this:Array,h=arguments.length,m=h>1?arguments[1]:void 0,g=void 0!==m,v=0,y=u(f);if(g&&(m=r(m,h>2?arguments[2]:void 0,2)),null==y||p==Array&&c(y))for(n=new p(t=s(f.length));t>v;v++)l(n,v,g?m(f[v],v):f[v]);else for(d=y.call(f),n=new p;!(o=d.next()).done;v++)l(n,v,g?i(d,m,[o.value,v],!0):o.value);return n.length=v,n}})},CEcq:function(e,t,n){"use strict";"undefined"==typeof Promise&&(n("crqt").enable(),window.Promise=n("yiUt")),n("bZMm"),Object.assign=n("MgzW")},CFOf:function(e,t,n){"use strict";var r=n("jgZk");e.exports=r},CFxG:function(e,t,n){"use strict";var r=n("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=r(n("pVnL")),a=r(n("QILm")),i=r(n("cDcd")),c=(r(n("17x9")),r(n("TSYQ"))),s=r(n("d05B")),l=n("IeMT");n("ZntQ");var u=function(e){return{root:{display:"flex",alignItems:"center",justifyContent:"flex-end",flex:"0 0 auto",margin:"".concat(e.spacing.unit,"px ").concat(e.spacing.unit/2,"px")},action:{margin:"0 ".concat(e.spacing.unit/2,"px"),minWidth:64}}};function d(e){var t=e.disableActionSpacing,n=e.children,r=e.classes,s=e.className,u=(0,a.default)(e,["disableActionSpacing","children","classes","className"]);return i.default.createElement("div",(0,o.default)({className:(0,c.default)(r.root,s)},u),t?n:(0,l.cloneChildrenWithClassName)(n,r.action))}t.styles=u,d.propTypes={},d.defaultProps={disableActionSpacing:!1};var f=(0,s.default)(u,{name:"MuiDialogActions"})(d);t.default=f},CGtN:function(e,t,n){var r=n("3wbT"),o=n("Mdaw");e.exports=function(e){return function(t,n){var a,i,c=String(o(t)),s=r(n),l=c.length;return s<0||s>=l?e?"":void 0:(a=c.charCodeAt(s))<55296||a>56319||s+1===l||(i=c.charCodeAt(s+1))<56320||i>57343?e?c.charAt(s):a:e?c.slice(s,s+2):i-56320+(a-55296<<10)+65536}}},"CON+":function(e,t,n){},CWGi:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAAEi6oPRAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAASKADAAQAAAABAAAASAAAAACQMUbvAAAMV0lEQVR4AdVceaxNSRo/73p4bRu0Xdu3MN1tF0wj6cRYOv5AJsM/Es0M0rGHiG3I2DKdbj0YyzSJQWhLSEYGQ0IMocVMW0eIadOE2Bm7Z3k1v995p86tc07VWe69773uSuqdqq++5VffPadO1Vd1nmX5Ups2bZ736tXrhkrOUypCKavFvJRTE127dlUbrJo1a8q6kExWq1atLCGEm+/fvy+ZLAv2H6OGdn1iW+rly5cv0iL6kgRug4YuD1deXnGzi4kMkkhOtSyZQJNKPcpsfg9lxowZvy5fvnzRvHnzpHC6fePGjcNRIyB/TjOxkUllUupWvtNgSxTz2UX1T9rjKtVfDgL0c6Aem8l2kOqnJUuWqM50HbgPWtkhN7GOXAXZmDzuAJen3qxZszdGyX379g31C8Sse3S6Fs+cOeNCDyvAF67M+vXr/2idOnXqF6rlMGF/myqXl5+fX/TmzRvXo2D2QA2rqL9Qqly5cq3DmE1tb9++1TbZ/SV0tNq5Y8eOoqioyNObW7duCTwiLo/kfeedd5arWr9iQ1SSwsrV1uH6xq4V/+GT85rFYoDFRPlX8YtOVrJ5r0OHDj2Oge5to0aNXo0ePfprb2tEDUPFX8AS8INKA1KiDk2hCiDptmOQNz4mLpMqEFZu2rRpkQdWrVq1SLAV8VdbuXKlUendu3fJ4rYfPXp0AJVJz7PBTsU8sma+Kr8emfJSAXhmWWMLjDdgowsTPzFRx0qqnHO3pxXF0uAwnT171gVApfRRYv9AxsKIYQEJi3aKNbJLZvU6e/ZstWr/ai6iqlWrWo8f80UenXy/mvdd8+TJE+vp06eRWoYNG+bnaScJAtMFMXbsWNeBe/bsCfger2q3HYJqWeopJlISQ6/L4NfkE5Z8v6EWeWezzAbtGEQ6k98vxdRiHaoi0m1lDkNAqUaRK+//+dkQObUCzyxkV4k0HPs6bdq0zytUqOCOFBCUfjJeP/7445u7d++uFNtIGCN+tAoFBQWJAESBnDx58qEwm9q2tWvX/j5KcbbteDd5B2kdEnokW0NJ5UeOHHlLh8XaunXr5zplu3bt8j9uYvDgwQKLBvHNN98IDDme9qtXr4o5c+YIeECcO3fO08aKzgZmQ6Sn0/bt26eipmU+dOhQQGk2BJMdPMIeUFowFMacLBv7Adnx48cbbX366aeXrM8++2y/CXVAW44IGOyNoPIaNmz45saNG+UAKpBgP0DLBYEzYbwTtKo4wpaMVa25YuKFCxeMrakmTZocMrUePHjQ1JQVvX379pHyxt/08uXLObpzitW89957RlsffPDBdzZSTGFGoWBkZNvixYszBsYntUaNGqH6Hfs2HvtPKpVa5RBtQbkKHTJkiFbRwoULQwGqumKWbRz+P11U4X79+rlGp0yZYgOrXLmyWLZsmUs3FbgmUHWFlAv9IHT1i6oC3SvABESlqzoM5Ro642G03xkUqXaNZYMs13WZT8oUtAwHPKER3G/eZbse0kPyOvnPuMZKGSFlRO369etrLl26NPCHH36ojTBCPp5UUbt27cL333//DGKLXyHktDUWgkyZOA3ldBTysteRV053Oe3N1KZWDr9GfrPisFckgDCwThBCayM20Zn/ZgVEBcn5OTrIWWny5EQ5cgYGCFxdTgA3PihnAu4qUJXlquwsJKJBOTGREgUjO+VEXc2gnBVAqYCRoIz3lBN/CoCRYx5iEaJx48aBdqnYdF20aJFUIUaNGhWQd2JmQS85S5GAgKvNKWC6KypVqiSmTp0q/HOlZ8+eCYxXgi/l7t27+0XF999/H9DPjjhLsDQoO3itPAVqbwNasyAwUKzq9pXTgJw1kZY5C/sBUWxPaW0Q2I4dO6bYiCDFKKGRMaA1CwLeb0Y7bsTTXpwZAOHdlYV5vWhY520P6YL9UkivMjvq8uXLjV5y9mD0P1fbtm2zsxwiLTvsv3IV7Q/F2V7jn1mzGG0r3YR4c3cjIKyRSgwNZpxa3VeuXKmkbwE7g9ollTAeaVXfvn3bABXsYetvrbYcEOvWrfvW6KHNmzfnwEQyFYjEPDAC2rt3bzJtMbnv3Llj5MQQdIaNxnEBwiEPb2ZN7dq1M9qrWLFiCwvLllMmUFg1ZGbVIMUpjMmWQ8fFsrh3YmTs0qWLQX0ycsSbXtq3AfGPJGiv9NSLFy+SIVC4N2zYoNWr2sVCc6SLBhvVK2Rj586dbVWMP0uavHKagoWfuHbtmmJOX0T0TXz00UcBHVKX5gqSN7nC9evXd62AxaWrZZdBU9iyZYtWRpVXyxi5/4R6IP0WFFfRiBEjbFOHDx92abJ93LhxGhhekuSNeQWbPjF45AKQJjiPRnDUpvfp00dw7hyVVD0RZQbJQpMLaMCAAVF2je2MtMFKVF4aisRprK4qyhQUVyaqHk35kmMv1oUnhIwKOcBFJQQWjPLQze0MbTK9y7g7zWCWdg5imj6oFkwHacDDzcFfqrxJy9Mh4OntvXv3ohzEsJ9HBjpeIus3OJIicvjdwRNP2cMoRLipX0GOoJ4ju1v7ji7jJaMYo1GbpgEx7XYIK8/G9LT36dOn62OxaLpNNNJB0rvvvlvUoUOHm82bN/8HptkLJkyYYN7JCYqXLeXbb7+tNnHixC0tWrTgCSv/LVSiddqkbWIoWy/4rCMw9yu8TOxDraXtlDB7xERsPrilU8VE5+eDBg3iud8SvStypZ9YibnEvYNp6KQGDRrk9GBKrpwQRw+xsw85dxRmoxNKI44ep5O54GFf2KesHXXx4sU2nTp1KvUBNxdOiKODfWMfM3IUXs9/jWOEPIhICGwBiHXr1onhw4eLKlWqlPrYhICAfaBp1apV4siRI+LEiRMC2wOxcKxYsYJ9jZcw4crHWuweuGMpx2lP4xyNxyuXLl0qqlWrFqqLpybZmdatWwsGWRGwEly2h2Fg1HjmzJni0aNHRvvbtm0L1aHqZ5/Z91AvgaFK79695YwzlvLjx48bAfobcnVIiwGUOInrWNUJUWVMDV5Br/5TDDQUDBw4kIdEEynFjn0crGXGw0cvSZ8++eQTRpsKIONNY8aM+Q8oiZSRf/Xq1WXW+SjDx44dS9wf9snxRdpBGNi+zMQ5lJk/f34UzjJr37lzZ0YOYr8cn6AkRKpbt26JX+UcJHEYpsw6H9cwXxTYFEjsKPqEvrEWLFigPRccdUf5N8XjAi4LPjqJ55Wj+uRvp29SCEUMQUOiNGnSJKtly5aJZMqSGQO19eWXHEWSJds3OB/mCf1CRaSnDxw4UBY3QlY2sTsZ2S9/3zEvK0zhAGb646CYDsYzHZPzx8NWp04dz3dQcZBhe7B86tUrzguTpbBNyWSaSo/74cOH1uvXfBfFT/RNCgcS43xB5NGKtY6n/lOoZILZ9k2PHj3+jQ4mej65icI3w08p8bPfpP3s2bPn+RTmM9uS3gHPnz8vk4MySXFKfgTJ+Cm4rMa+YsG83WbGtwOJ12AQFAiS/+hvIoZgiDVpxrwpPfTgc+zZSRVIfoYoSuIwSLaeLywsFH379k3sGNkv+GQWyulUr149br5mrPDDDz8U8iOUbDuXjTy37vv3759xP+gDHJjQbkQXYMb5TOck3iXYQrE/PZw7d64I+66I8gx+MZiFDxiy6WssWby+xRdffCHwxsnKKbLf2DSnD4LhDhCZGJ/lv4MIGOO3mfwOU02MJup4w2j8Vur8+fOqmljlmzdvZnRqOwyLvw1nfNj31sihqSZCoP8Dh7bzOLor+KvJxHPHUXeU1IVt46ymB4wkYttZi0vayPSKPvP7oNhfSKXgzX+ajPE0lT/Uun//flG9evVQ8Js2bZJ+zfh68uTJUBsmzGF0p68ZnRkI/Twx7FHhMbUHDx4E/idLxp5xBBnX1hwdycZp6fN28GImqRyE/o6sBTF9+vScOyHKiTHPZ2nxKv3gKSX2LTQlOf5SF5r+htzZpBHLFouZp7+xHLFXz9iWsRB5tPOaNWssxmayTdSNk5yZqvkOggORb2eqIEqOe0frkaN+oUC7/78TRN0ppvakOxUO1o24Jg7tQCar1BHS/0IOOENHU99+ps7HoXOjUadfQzsNmvGOR1upphawxi1c4+mPXC1JYCPMQXvRntl+OwT9KckY5JeNqv8MDKOQxyBzfvEH3B082NoBuT0yO8HcDLkaclUn42J/38xvnB8j/xeZU39mfiFwCq9l6l2IzFnv18hrkHleKefp/0AYMJ6pqp6PAAAAAElFTkSuQmCC"},"CWI+":function(e,t,n){var r=n("Eqp/");"string"==typeof r&&(r=[[e.i,r,""]]);n("aET+")(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},CWQg:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){for(var e=arguments.length,t=new Array(e),n=0;n0?e.target.value.replace(/\s*/g,""):e.target.value,e.target.value.length,n.setState({loginValue:t,Phonenumberisnotco:void 0})})),y()(n,"Emailphonenumberverification",(function(e,t){N.a.get("/accounts/valid_email_and_phone.json",{params:{login:e,type:1}}).then((function(e){if(e)return-2===e.data.status?void("该手机号码或邮箱已被注册"===e.data.message?n.setState({Phonenumberisnotco:void 0,Phonenumberisnotcobool:!1}):n.setState({Phonenumberisnotco:e.data.message,Phonenumberisnotcobool:!0})):void n.setState({Phonenumberisnotco:void 0,Phonenumberisnotcobool:!1})})).catch((function(e){}))})),y()(n,"passwordChange",(function(){var e=n.refs.passwordText.value,t=e.length;n.setState({disabled:!1}),n.setState({bottonclass:"log-botton mt5 edu-back-blue"}),0==t&&(n.setState({bottonclass:"log-botton mt5"}),n.setState({disabled:!0})),n.setState({passValue:e})})),y()(n,"handleInputChange",(function(e){var t=e.target,r="checkbox"===t.type?t.checked:t.value,o=t.name;n.setState(y()({},o,r)),!0===r?n.setState({isGoingValue:1}):n.setState({isGoingValue:0})})),y()(n,"shortcutIdChange",(function(){var e=n.refs.shortcutText.value;if(e.length>0){if(!(/^(\w-*\.*)+@(\w-?)+(\.\w{2,})+$/.test(e)||/^1\d{10}$/.test(e)||/^[a-zA-z]\w{3,14}$/.test(e)))return n.setState({shortcutnum:0}),n.setState({disabledType:!0}),void n.setState({gaincode:"gain-code"});n.setState({gaincode:"gain-code edu-back-blue"}),n.setState({shortcutValue:e}),n.setState({shortcutnum:1}),n.setState({disabledType:!1})}else n.setState({shortcutValue:e})})),y()(n,"authCodeChange",(function(){var e=n.refs.authCodeText.value.length;e>3?(n.setState({authCodeType:!1}),n.setState({authCodeclass:"log-botton mt5 edu-back-blue"})):0==e&&(n.setState({authCodeType:!0}),n.setState({authCodeclass:"log-botton mt5"}))})),y()(n,"get_login_verification_code",(function(){!function(e){if(Z(e).attr("disabled"))return!1;if(/^1\d{10}$/.test(Z("#pass_name_input").val())||/^[a-zA-Z0-9]+([.\-_\\]*[a-zA-Z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/.test(Z("#pass_name_input").val()))if(window.IsPC()&&"验证通过"!=Z("#quick-drag .drag_text").html())Z("#passlogin_error_notice").show();else{var t;Z("#passlogin_error_notice").hide(),e.setAttribute("disabled","disabled");var n=6;/^1\d{10}$/.test(Z("#pass_name_input").val())?n=6:/^[a-zA-Z0-9]+([.\-_\\]*[a-zA-Z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/.test(Z("#pass_name_input").val())&&(n=7),Z.get("/account/get_verification_code",{value:_()(t=Z("#pass_name_input").val()).call(t),type:n},(function(t){if("2"==t.status){var r,o;6==n?S()(r=Z("#pass_name_input").next()).call(r,"p").html('该手机号尚未注册,你可以去注册').show():S()(o=Z("#pass_name_input").next()).call(o,"p").html("该邮箱尚未绑定,你可以登录后去绑定").show()}else{var a;if(S()(a=Z("#pass_name_input").next()).call(a,"p").hide(),6==n)Z("#send_code_notice").html(t.msg).show();else{var i=window.gotoEmail(t.link);Z("#send_code_notice").html("验证码已经发送到您的邮箱,去查收").show()}!function e(t){if(0==$)return Z(t).addClass("btn_orange_bg"),t.removeAttribute("disabled"),t.innerHTML="获取验证码",void($=60);Z(t).removeClass("btn_orange_bg"),t.setAttribute("disabled","disabled"),t.innerHTML=$+"s后重试",$--,x()((function(){e(t)}),1e3)}(e)}}))}}(Z("#get_verification_code")[0])})),y()(n,"dragWrapper",(function(){var e=window.$;e.fn.drag=function(t){var n,r=this,o=!1,a=(t=e.extend({},t),S()(r).call(r,".handler")),i=S()(r).call(r,".drag_bg"),c=S()(r).call(r,".drag_text"),s=100;a.mousedown((function(e){o=!0,n=e.pageX-C()(a.css("left"),10),s=r.width()-a.width()-2})),e(document).mousemove((function(t){var r=t.pageX-n;o&&(r>0&&r<=s?(a.css({left:r}),i.css({width:r})):r>s&&(a.removeClass("handler_bg").addClass("handler_ok_bg"),c.removeClass("slidetounlock").text("验证通过").css({color:"#fff"}),a.css({left:s}),i.css({width:s}),a.unbind("mousedown"),e(document).unbind("mousemove"),e(document).unbind("mouseup")))})).mouseup((function(e){o=!1,e.pageX-n0){n=!1;break}return n})),y()(n,"handleDialogClose",(function(){n.setState({isRender:!1}),n.props.Modifyloginvalue()})),y()(n,"loginEDU",(function(){var e=n.state,t=e.loginValue,r=e.passValue,o=e.regular,a=e.isGoingValue;if(1!==o){var c=t.replace(/(^\s*)|(\s*$)/g,""),s=r.replace(/(^\s*)|(\s*$)/g,"");N.a.post("/accounts/login.json",{login:c,password:Object(J.a)(s),autologin:a}).then((function(e){if(void 0!==e)if(-2===e.data.status)if("登录密码出错已达上限,账号已被锁定, 请10分钟后重新登录或找回密码"===e.data.message){var t=P.a.createElement("div",null,P.a.createElement("p",null,"登录密码出错已达上限,账号已被锁定;"),P.a.createElement("p",{className:"mt10"},"请10分钟后重新登录或",P.a.createElement("a",{href:"/resetPassword",style:{textDecoration:"underline",color:"#4CACFF"}},"找回密码")));n.openNotifications(t)}else i.a.open({message:"提示",description:e.data.message,duration:5});else Object(K.f)("refreshPage"),n.setState({isRender:!1}),G.a.save("supplyphone",!0),G.a.save("login",e.data.login),n.props.Modifyloginvalue(e.data),n.props.gopage?window.location.href=n.props.gopage:window.location.reload()})).catch((function(e){}))}})),y()(n,"setNotcompleteds",(function(){n.setState({Notcompleteds:!0,MyEduCoderModals:!1})})),y()(n,"setMyEduCoderModals",(function(){n.setState({MyEduCoderModals:!0})})),y()(n,"onKeydowns",(function(e){!1===n.state.disabled&&13===e.keyCode&&n.loginEDU()})),y()(n,"getloginurl",(function(e){window.location.href=e})),y()(n,"openNotifications",(function(e){i.a.open({message:"提示",description:e,duration:5,onClick:function(){}})})),y()(n,"openqqlogin",(function(){n.setState({qqlogin:!0}),window.location.href="https://graph.qq.com/oauth2.0/show?which=Login&display=pc&client_id=101508858&redirect_uri=https%3a%2f%2fwww.educoder.net%2fotherloginqq&state=null,".concat(window.location.host,"&response_type=code")})),y()(n,"openphoneqqlogin",(function(){window.open("https://xui.ptlogin2.qq.com/cgi-bin/xlogin?appid=716027609&pt_3rd_aid=101508858&daid=383&pt_skey_valid=0&style=35&s_url=http%3A%2F%2Fconnect.qq.com&refer_cgi=authorize&which=&client_id=101508858&response_type=code&scope=get_user_info&redirect_uri=https%3a%2f%2fwww.educoder.net%2fotherloginqq&state=null,".concat(window.location.host,"&response_type=code"))})),y()(n,"getTContainer",(function(){return document.body})),y()(n,"hideweixinlogin",(function(){n.setState({weixinlogin:!1,qqlogin:!1})})),n.state={open:!0,login:0,speedy:1,regular:0,loginValue:"",passValue:"",isGoing:!0,isGoingValue:1,disabled:!0,bottonclass:"log-botton mt5",dialogBox:"dialogBox",shortcutValue:"",shortcutnum:1,disabledType:!0,gaincode:"gain-code",authCodeType:!0,authCodeclass:"log-botton mt5",isRender:!1,MyEduCoderModals:!1,Phonenumberisnotco:void 0,Phonenumberisnotcobool:!1,weixinlogin:!1,qqlogin:!1,settings:void 0},n}return g()(t,e),u()(t,[{key:"componentWillReceiveProps",value:function(e){this.setState({isRender:e.isRender})}},{key:"componentDidMount",value:function(){var e=this,t=this.IsPC();this.setState({isphone:t,settings:localStorage.getItem("chromesetting")&&"undefined"!==localStorage.getItem("chromesetting")&&JSON.parse(localStorage.getItem("chromesetting")||"{}")}),null!=this.props.isRender&&this.setState({isRender:this.props.isRender}),this.dragWrapper(),N.a.interceptors.response.use((function(t){return null!=t&&t&&401===t.data.status&&(document.title="提示",e.setState({isRender:!0})),t}),(function(e){}))}},{key:"render",value:function(){var e,t=this,n=this.state,r=n.login,o=n.isGoing,i=n.isGoingValue,c=n.disabled,s=n.Phonenumberisnotco,l=n.dialogBox,u=n.isRender,d=n.weixinlogin,f=n.settings;return void 0===u&&(u=!1),P.a.createElement(j.a,{open:!0,id:"DialogID",className:"zindextest",style:{display:!1===u?"none":""},disableEscapeKeyDown:!0,disableBackdropClick:!0,onClose:function(){return t.handleDialogClose()}},P.a.createElement(X,{modalsType:this.state.MyEduCoderModals,setNotcompleteds:function(){t.setNotcompleteds()}}),P.a.createElement("style",null,"\n\t\t\t\t\t\t #DialogID .dialogBox {\n\t\t\t\t\t\t\t\t\twidth: 405px !important;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t.dialogBox {\n\t\t\t\t\t\t\t\t\theight: 290px !important;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t"),!0===u?P.a.createElement("div",{className:l},P.a.createElement("div",{id:"closeIcon",className:"logincloseIcon",onClick:function(){t.handleDialogClose()}},P.a.createElement("i",{className:"iconfont icon-shanchudiao"})),P.a.createElement("div",{id:"log_reg_content"},!0===d?"":P.a.createElement("ul",{className:"log_nav clearfix"},P.a.createElement("li",{onClick:function(){t.enter(0)}},"登录")),P.a.createElement("div",{className:"login-panel",id:"login-panel-1",style:{display:0==r?"block":"none"}},P.a.createElement("form",{acceptCharset:"UTF-8",action:"/login",id:"main_login_form",method:"post"},P.a.createElement("div",{style:{display:"inline",padding:"0",margin:"0"}},P.a.createElement("input",{name:"utf8",type:"hidden",value:"✓"}),P.a.createElement("input",{name:"authenticity_token",type:"hidden",value:"NVLiIlHZfhVBQtO9djnWncJqqdikNQIIxEmOvzK9vNM="})),P.a.createElement("input",{name:"back_url",type:"hidden",value:this.back_url}),P.a.createElement("input",{type:"text",className:"input-100-45 mt20",id:"name_loggin_input",ref:"loginPassText",onInput:this.loginChange,onBlur:function(e){return t.inputOnBlur(e,1)},onPressEnter:!1===c?this.loginEDU:function(){},value:this.state.loginValue,name:"username",placeholder:"请输入手机号/邮箱/用户名"}),P.a.createElement("div",{style:{height:"25px"}},P.a.createElement("p",{className:"color-orange edu-txt-left none",id:"username_error_notice",style:{display:void 0===s?"none":"block"}},s)),P.a.createElement("div",null,P.a.createElement("input",{type:"password",id:"password_loggin_input",name:"password",ref:"passwordText",onInput:this.passwordChange,onKeyDown:this.onKeydowns,className:"input-100-45 mt5",onPressEnter:!1===c?this.loginEDU:function(){},placeholder:"请输入登录密码"}),P.a.createElement("div",{style:{height:"25px"}},P.a.createElement("p",{className:"color-orange edu-txt-left none",id:"password_error_notice"},"请输入密码"))),P.a.createElement("div",{className:!1===c?"bluebutton edu-back-blue":"bluebutton",onClick:!1===c?this.loginEDU:function(){}},"登录"),P.a.createElement("p",{className:"clearfix mt20"},P.a.createElement("span",{className:"fl"},P.a.createElement("input",{type:"checkbox",className:"mr5 magic-checkbox",checked:o,onChange:this.handleInputChange,value:i,name:"isGoing",id:"p_autolog"}),P.a.createElement("label",{htmlFor:"p_autolog",style:{top:"0px"}},"下次自动登录")),P.a.createElement("span",{className:"fr"},P.a.createElement("a",{href:"/resetPassword",className:"mr3 color-grey-9"},"找回密码"),P.a.createElement("em",{className:"vertical-line"}),P.a.createElement("a",{href:"/register",className:"color-grey-9"},"注册"))),f&&f.third_party_new&&f.third_party_new.length>0?P.a.createElement("p",{className:"clearfix mt20"},P.a.createElement("span",{className:"startlogin"},"———————— 快速登录 ————————"),P.a.createElement("div",{className:"mt10"},z()(e=f.third_party_new).call(e,(function(e,t){return P.a.createElement("a",{href:"".concat(e.url),className:"ml12 mr12"},P.a.createElement(a.a,{title:"使用".concat("qq"===e.name?"QQ":"wechat"===e.name?"微信":e.name,"账号登录")},P.a.createElement("img",{src:"educoder"===e.name?L.a:"qq"===e.name?H.a:"wechat"===e.name?B.a:"gitee"===e.name?q.a:"github"===e.name?W.a:"",width:"42px",alt:"".concat(e.name,"登录")})))})))):"")))):"")}}])}(A.Component);t.a=ee},CYMq:function(e,t,n){var r=n("yQFZ");e.exports=function(e){return Object(r(e))}},CarK:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{onProcessRule:function(e){"keyframes"===e.type&&(e.key="@"+r.prefix.css+e.key.substr(1))},onProcessStyle:function(e,t){if("style"!==t.type)return e;for(var n in e){var o=e[n],a=!1,i=r.supportedProperty(n);i&&i!==n&&(a=!0);var c=!1,s=r.supportedValue(i,o);s&&s!==o&&(c=!0),(a||c)&&(a&&delete e[n],e[i||n]=s||o)}return e},onChangeValue:function(e,t){return r.supportedValue(t,e)}}};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n("YYyC"))},CgaS:function(e,t,n){"use strict";var r=n("xTJ+"),o=n("MLWZ"),a=n("9rSQ"),i=n("UnBK"),c=n("SntB"),s=n("hIuj"),l=s.validators;function u(e){this.defaults=e,this.interceptors={request:new a,response:new a}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=c(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&s.assertOptions(t,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!r){var u=[i,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(a),o=Promise.resolve(e);u.length;)o=o.then(u.shift(),u.shift());return o}for(var d=e;n.length;){var f=n.shift(),p=n.shift();try{d=f(d)}catch(e){p(e);break}}try{o=i(d)}catch(e){return Promise.reject(e)}for(;a.length;)o=o.then(a.shift(),a.shift());return o},u.prototype.getUri=function(e){return e=c(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(c(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(c(r||{},{method:e,url:t,data:n}))}})),e.exports=u},CkM1:function(e,t,n){"use strict";var r=n("OHYH");e.exports=r},CnBM:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=n("cDcd"),s=n("17x9"),l=[],u=[];function d(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e})).catch((function(e){throw n.loading=!1,n.error=e,e})),n}function f(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var o=d(e[r]);o.loading?t.loading=!0:(t.loaded[r]=o.loaded,t.error=o.error),n.push(o.promise),o.promise.then((function(e){t.loaded[r]=e})).catch((function(e){t.error=e}))}))}catch(e){t.error=e}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e})).catch((function(e){throw t.loading=!1,e})),t}function p(e,t){return c.createElement((n=e)&&n.__esModule?n.default:n,t);var n}function h(e,t){var d,f;if(!t.loading)throw new Error("react-loadable requires a `loading` component");var h=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:p,webpack:null,modules:null},t),m=null;function g(){return m||(m=e(h.loader)),m.promise}return l.push(g),"function"==typeof h.webpack&&u.push((function(){if(e=h.webpack,"object"===r(n.m)&&e().every((function(e){return void 0!==e&&void 0!==n.m[e]})))return g();var e})),f=d=function(t){function n(r){o(this,n);var i=a(this,t.call(this,r));return i.retry=function(){i.setState({error:null,loading:!0,timedOut:!1}),m=e(h.loader),i._loadModule()},g(),i.state={error:m.error,pastDelay:!1,timedOut:!1,loading:m.loading,loaded:m.loaded},i}return i(n,t),n.preload=function(){return g()},n.prototype.componentWillMount=function(){this._mounted=!0,this._loadModule()},n.prototype._loadModule=function(){var e=this;if(this.context.loadable&&Array.isArray(h.modules)&&h.modules.forEach((function(t){e.context.loadable.report(t)})),m.loading){"number"==typeof h.delay&&(0===h.delay?this.setState({pastDelay:!0}):this._delay=setTimeout((function(){e.setState({pastDelay:!0})}),h.delay)),"number"==typeof h.timeout&&(this._timeout=setTimeout((function(){e.setState({timedOut:!0})}),h.timeout));var t=function(){e._mounted&&(e.setState({error:m.error,loaded:m.loaded,loading:m.loading}),e._clearTimeouts())};m.promise.then((function(){t()})).catch((function(e){t()}))}},n.prototype.componentWillUnmount=function(){this._mounted=!1,this._clearTimeouts()},n.prototype._clearTimeouts=function(){clearTimeout(this._delay),clearTimeout(this._timeout)},n.prototype.render=function(){return this.state.loading||this.state.error?c.createElement(h.loading,{isLoading:this.state.loading,pastDelay:this.state.pastDelay,timedOut:this.state.timedOut,error:this.state.error,retry:this.retry}):this.state.loaded?h.render(this.state.loaded,this.props):null},n}(c.Component),d.contextTypes={loadable:s.shape({report:s.func.isRequired})},f}function m(e){return h(d,e)}m.Map=function(e){if("function"!=typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return h(f,e)};var g=function(e){function t(){return o(this,t),a(this,e.apply(this,arguments))}return i(t,e),t.prototype.getChildContext=function(){return{loadable:{report:this.props.report}}},t.prototype.render=function(){return c.Children.only(this.props.children)},t}(c.Component);function v(e){for(var t=[];e.length;){var n=e.pop();t.push(n())}return Promise.all(t).then((function(){if(e.length)return v(e)}))}g.propTypes={report:s.func.isRequired},g.childContextTypes={loadable:s.shape({report:s.func.isRequired}).isRequired},m.Capture=g,m.preloadAll=function(){return new Promise((function(e,t){v(l).then(e,t)}))},m.preloadReady=function(){return new Promise((function(e,t){v(u).then(e,e)}))},e.exports=m},CnV9:function(e,t,n){e.exports=n("gjfq")},CqEA:function(e,t,n){"use strict";var r=n("pevS"),o=n("T/97"),a=n("oBZR");r({target:"Object",stat:!0,forced:n("Bvq2")((function(){a(1)}))},{keys:function(e){return a(o(e))}})},CrYA:function(e,t,n){var r=n("MFOe").Global;function o(){return r.sessionStorage}function a(e){return o().getItem(e)}e.exports={name:"sessionStorage",read:a,write:function(e,t){return o().setItem(e,t)},each:function(e){for(var t=o().length-1;t>=0;t--){var n=o().key(t);e(a(n),n)}},remove:function(e){return o().removeItem(e)},clearAll:function(){return o().clear()}}},CtGH:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAABHNCSVQICAgIfAhkiAAAC1FJREFUeF7VXAlQlEcW/odDZrgdXFBQFAjqoAgIeLFJWfFYXbe4XJNsebBu1GjAeKEJnqQ8MIpXhAJdXcXormZV0FrjhYmxPFAEBIFBQEAERRQEBhgOh9l+vzXUzDD/0f8/M0KnLGPN69fvffP6Xd09AsLII0r6/Z/MBIIZ8q52z2fy6tHmAjOLt51Ndm8634rURRlg3l/e39y2sVP5rn2oyCVfZGJR8k6pvJIg2XLVmCILDL1YYOYsd/d+Hy3v6Or4c6W82qOlS27KZ00rE5FiiMi51MLE4nJZR+nBzMBLZXz4Mc01GEDRT3YcfN5WE5wrk7oyCcHncx8bSaWLhWPa3pEbV/DhQzVXrwB5583qP9ZEcihfVjK7RdFqYgiBqXhamVp2jbbxPJfdJf3q8ZhLb/W1tt4Amv3o62MVrVXz+W4hvorBFvSwcj31s09CBF9eMJ83QGufxC3Kay7e90xeZa0PgfTFY6jQReZn4xW9c8S6w3x4cgZIqVQKFhfG3L39NmsCHwEMPTfI3v/ekVFxQQKBQMllLU4ARRSsGvVSXn+3su2FLZdFjT3HVejcNEgknpQyal8B7trYAEUWbp6f0Zh73NhOGFcxbXpw4kH9A2b9OHLTFRxeWAAtLdz0w836jHU4C/Q22sniCbuSvbZ+y1Yu1gBtK0s8ffJF2udsGfdmurmDQk5v8oj6GxsZWQEUKY2Nv1F3Zw0bhn2FZppD0N6DklhGnRgBiinZE5z66sqFvqI4jpyznWaGbvdcTasbLUAQrfKbyvL6mkNmCxI4bl87T5+jXvH52KUGynPMZmQtrH/WVm3DdsG+SAcpwFX/4/ZUeRKlBSG/k4f8jndfVBpXZhTZclBkG6trnk6Atj1NWHny5YV9uAsx0QfajtEgqW6vIV601zJNM8rn8waFrNroEbVfezGdAKGt1Vwhr7LiI5mzhSMxzs6HmOIwifzb1pS6VHvQmEvAn/T6u8STFoO2dyhVGioa3HzV/1gPd9IDoLm5K09nyQo45zsATJTrAiLMcTonfKUtT4kTL84TabXXOc3nM2mivd/hY6N3faXOQwOgYTmT7R3ktm+4tCysTS1JYCKcw/nI2D0XgIorSyIym/L0wo8NE2iV1ImaBlT43WxQ0WsAFPE4+uz9xtzZbJip04ywcifiPNcSEisP3KmM9CnImnaWJzPS6YtgvJ3PuRTv+L/2AAiFdZOAjNBO3JwHwDnhHU/rY/gKn15/h4gp3k00K1r5smKcP7DfgHe/Bf7bAoX9LiDutqAtpftTztRcWsDIQY3AGOColkutvUasL4nHEY8z7WynGUe3e65ZpAHQF7krqh7JCl1wuJ73TaLcVqoQDiDSRTDVeuBzmhUtBB29sbabr41X9WmfA4O7AZqcNeejGnlDCQ44kUPmkU5Z10ioPEEkPj9JfmRjakWk+iURLhYDKdmDZYCFwHCxcCLOI3oqUEMfLTVOKmDa6VY08WYFucUW5q87dK8hZwlbgCCU3wh4D4D2aFI0E+MzNCMZHZhgOeGPlmmw+c5tKWU0hHwpIn8tW1E506HjpANnfH5cSQIUnrOstLCllHUImu8cRqx301RKXZLAjFANh0qnMGzFqQ81LfGgZAsxVRxEqZwxrAhF5JJUv+ThJED+90IUONGLzvcAP/iWd5QnkVsh1HEaEeO+jNYPQZSCnAfKDqCHlIFuGMMXQaWfNfGCqWBz6YGwn2v+dx7HFqVB7/2FMQZYWGZjHlHd/opoetdMFKEtaYPKlhuoLDH0+GzgX8IFG0r2HDn36sqXbBeDKJPma/jE7cSLVNJxAyCw5vt6zoqwMbMmIydYKQzwYfD/hsiRINwLlhfGpl+vvzOFLUBQkUNiaKiRhkBJqPyJUKL/IEpCscsmTYBtmvrqGvFr/T29iTZNHHRDMPPhP56Xtz0nYz6bYSiAIPrtLEsmrtfdJta7f8252IUtGVMcr5cazk04pEoQnL3kVXFruSMbcIDGEAABOBGP15I5U4JXLCuLYZJXPRdjoqX6fLilW63g4/ufy1931gtxmOjbSUfkRxPWCJxEyfc4YjDS8i1P/mAubhOMvD0N+8yaKcwzSq5GAN80NMoMVfDyBYkTQGxyFTYgqZLE9IATtKUIG150NJHSLZydNyeAQBh9KBVTspusvahqOgjhiSiiwYh0nU9ZGMehpBTSgSko+16AsnztAT5uSuY8TqkAZ4CmiCcRCZJYXl/uuIww2kJW/ZsHB/5gQmqP9bS3ENX2h8z+J5Rb4Q7BH+9/Jkc3TLGctGqRHZ7RnMOxKm+hc8xgYareNFWCql28Ulm2rqKYCSx007YNO8xrM+XqsME5w6DaXvAZbA1I/mCEOU2nDP8AdlEz2mIOQbRtX8kdvIMEMszjJoraAIHpox4udj8arGMkKhn01eRnsgb4fMHjaKwEkkwUcUsNKkFwtxsIG4UcL9RYxhq4AJGlBm6xSqcMznYDYcfZjaHdYvoGLgw15iDasR1kscql3aFrAbouoy56Nj6IrSJs6XB9ENnuAOZj7wUrWhVyXhe/tbuMEDWgModedCCyFO0zMwjPZEsDNf6NMXBbtZamoq7siRdNObVcdSmUMno36U8gO06sPNndhNemhW1FRqh3LaS56yPhZAMw1HsPUOON7dBoueI27bUXgWPnNL9kWmCoBNNX2UKnOK71AC+Npj2XYx91gSDUy9CZFtehsj6u8+nmqVopOM6Z5Kd+7AP/5nJwqC+FIB9K8d6tlz6QtkxR0ljs/nWPg0Nguq74h6SLtelL9aU0Lh9DgKR+IIkjT7Dj1ORdw78lz7W6z+bh8oJ/Rkgn32iGI4g2LVT26GoudlauzQe21XJkOThOWcXDsZ9D5++B/xH2uLwABFyvv/ABRddcyLAhbWDTrNc1H2qz5VJu3Ul/m1FnTvns/0LFt8cFqv5y69foPamZvpXG5QeOP8IlnPgUtVWY7h2BxcjQmZn6+T9uUgjyWZoIFfUiGfUFKiCam7c6IavpcSSuQoakB7Ak1h496jYpquDhQFEVoeDa33fuS0nL49JF9Lf1Tjw1Zm+Uui46L3FOfxjRhJ469cn70SrLg0MAnJtp6L607FpASo/nXToBWlW0deHlN7f+ZUirMDRv3NxshsPHC/dLNh/XlovyIvmSwg2Zt+ofBBhakd7A/xPxuIeHvbYH6pKFEiB4cjk9K6LhedvLPvGqkCvQsLXQUwQ77KcIsOCXhdGjcxqLcz9kbsRVcTbzoGL3tvUYQ/dUk/E51MbSfaFna37BPw5gI+EHpglzmhES57nmIp0YjADB5G+k3++9Vnd71QfWR6/Lowb/nkRJbDQTU1YAAZMdZUn/RU8Eui9YMzHuzZ8vcA4/u9592Rw2MrIGCJitKtp24PKb379hw7i30hjsUa9KYfBJv7z+7Vxfc9zgkGcOmBzO9ASTdR5EZwEri2N9C5vKb/WVbNtV5Nw8SCieYJQfFlABB+2RyKLYnF/r7mq+kutle+sT8fisQ5Kt41Geo+AiGpYP0rXA1qcHV9xpyN6BHuBZchHAUHOGiQa3BtmPXb/JY/kBPmvwBki1+KKCmCPZjfl/b+1q4/ULU3yUgbnQsvCxlRzVfhjHla/eAAIBJhbMEQ/vGnq4XF4VXNtRZ85VKC7zoBPoJhp8MVspXdwrf2BJW6nV6Ce6qttehuTKioZwUZjtHF8bSZWz0Cl174gNBkk/9GpBupSa9DDUY2i/YSvaFe0zK9qq3fmmBxCuhwldyoSmwisVHeX77waksT9sZ4u6Gp3BAdKWaVbO4kn2ptZTCaXSq6ajLqCfwNyiUdEkru9s1HDyg4UDG80Jc5mJQNBgb2ZTQAgEhQ2K5vRLfv80/BsENaH/D/bXtOn7ud7AAAAAAElFTkSuQmCC"},CtXQ:function(e,t,n){"use strict";var r=n("cDcd"),o=n("eHJ2"),a=n.n(o),i=n("Optq"),c=n("FxDB");function s(){return(s=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.scriptUrl,n=e.extraCommonProps,o=void 0===n?{}:n;if("undefined"!=typeof document&&"undefined"!=typeof window&&"function"==typeof document.createElement&&"string"==typeof t&&t.length&&!u.has(t)){var a=document.createElement("script");a.setAttribute("src",t),a.setAttribute("data-namespace",t),u.add(t),document.body.appendChild(a)}var i=function(e){var t=e.type,n=e.children,a=l(e,["type","children"]),i=null;return e.type&&(i=r.createElement("use",{xlinkHref:"#".concat(t)})),n&&(i=n),r.createElement(k,s({},o,a),i)};return i.displayName="Iconfont",i},_.getTwoToneColor=function(){return c.a.getTwoToneColors().primaryColor},_.setTwoToneColor=v;var k=t.a=_},CuL1:function(e,t,n){var r=n("mHY4"),o=n("/tXR"),a=n("GRew");e.exports=function(e){var t=r(e),n=o.f;if(n)for(var i,c=n(e),s=a.f,l=0;c.length>l;)s.call(e,i=c[l++])&&t.push(i);return t}},Cwc5:function(e,t,n){var r=n("NKxu"),o=n("Npjl");e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},Cx3U:function(e,t,n){"use strict";e.exports=function(e){return null==e}},CxMo:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},CyMi:function(e,t,n){"use strict";var r=n("xvux");e.exports=r},"D+tT":function(e,t,n){"use strict";var r=n("pevS"),o=n("cQZY"),a=n("T/97"),i=n("cWgI"),c=n("6Pj7"),s=n("/EgQ");r({target:"Date",proto:!0,forced:n("Bvq2")((function(){return null!==new Date(NaN).toJSON()||1!==o(Date.prototype.toJSON,{toISOString:function(){return 1}})}))},{toJSON:function(e){var t=a(this),n=i(t,"number");return"number"!=typeof n||isFinite(n)?"toISOString"in t||"Date"!==s(t)?t.toISOString():o(c,t):null}})},D1Df:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(){return(o=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n>6),t+=String.fromCharCode(128|63&r)):r<55296||r>=57344?(t+=String.fromCharCode(224|r>>12),t+=String.fromCharCode(128|r>>6&63),t+=String.fromCharCode(128|63&r)):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t+=String.fromCharCode(240|r>>18),t+=String.fromCharCode(128|r>>12&63),t+=String.fromCharCode(128|r>>6&63),t+=String.fromCharCode(128|63&r))}return t}var x={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1};function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[];return e.forEach((function(e,r){var o=null;e.forEach((function(a,i){if(!a&&null!==o)return n.push("M".concat(o+t," ").concat(r+t,"h").concat(i-o,"v1H").concat(o+t,"z")),void(o=null);if(i!==e.length-1)a&&null===o&&(o=i);else{if(!a)return;null===o?n.push("M".concat(i+t,",").concat(r+t," h1v1H").concat(i+t,"z")):n.push("M".concat(o+t,",").concat(r+t," h").concat(i+1-o,"v1H").concat(o+t,"z"))}}))})),n.join("")}function _(e,t){return e.slice().map((function(e,n){return n=t.y+t.h?e:e.map((function(e,n){return(n=t.x+t.w)&&e}))}))}function k(e,t){var n=e.imageSettings,r=e.size,o=e.includeMargin;if(null==n)return null;var a=o?4:0,i=t.length+2*a,c=Math.floor(.1*r),s=i/r,l=(n.width||c)*s,u=(n.height||c)*s,d=null==n.x?t.length/2-l/2:n.x*s,f=null==n.y?t.length/2-u/2:n.y*s,p=null;if(n.excavate){var h=Math.floor(d),m=Math.floor(f);p={x:h,y:m,w:Math.ceil(l+d-h),h:Math.ceil(u+f-m)}}return{x:d,y:f,h:u,w:l,excavation:p}}var S=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}(),O=function(e){function t(){var e,n;s(this,t);for(var r=arguments.length,o=new Array(r),a=0;a0;(f||!1===e.isLeaf)&&(u+=" "+r+"-menu-item-expand",e.loading||(d=o.a.createElement("span",{className:r+"-menu-item-expand-icon"},i))),"hover"!==a||!f&&!1!==e.isLeaf||(l={onMouseEnter:this.delayOnSelect.bind(this,s),onMouseLeave:this.delayOnSelect.bind(this),onClick:s}),this.isActiveOption(e,t)&&(u+=" "+r+"-menu-item-active",l.ref=this.saveMenuItem(t)),e.disabled&&(u+=" "+r+"-menu-item-disabled");var p=null;e.loading&&(u+=" "+r+"-menu-item-loading",p=c||null);var h="";return"title"in e?h=e.title:"string"==typeof e[this.getFieldName("label")]&&(h=e[this.getFieldName("label")]),o.a.createElement("li",v({key:e[this.getFieldName("value")],className:u,title:h},l,{role:"menuitem",onMouseDown:function(e){return e.preventDefault()}}),e[this.getFieldName("label")],d,p)}},{key:"getActiveOptions",value:function(e){var t=this,n=e||this.props.activeValue,r=this.props.options;return f()(r,(function(e,r){return e[t.getFieldName("value")]===n[r]}),{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var e=this,t=this.props.options,n=this.getActiveOptions().map((function(t){return t[e.getFieldName("children")]})).filter((function(e){return!!e}));return n.unshift(t),n}},{key:"delayOnSelect",value:function(e){for(var t=this,n=arguments.length,r=Array(n>1?n-1:0),o=1;o=a.length?0:c:(c-=1)<0?a.length-1:c:0,r[o]=a[c][n.getFieldName("value")]}else if(e.keyCode===u.a.LEFT||e.keyCode===u.a.BACKSPACE)e.preventDefault(),r.splice(r.length-1,1);else if(e.keyCode===u.a.RIGHT)e.preventDefault(),a[i]&&a[i][n.getFieldName("children")]&&r.push(a[i][n.getFieldName("children")][0][n.getFieldName("value")]);else if(e.keyCode===u.a.ESC||e.keyCode===u.a.TAB)return void n.setPopupVisible(!1);r&&0!==r.length||n.setPopupVisible(!1);var s=n.getActiveOptions(r),l=s[s.length-1];n.handleMenuSelect(l,s.length-1,e),n.props.onKeyDown&&n.props.onKeyDown(e)}else n.setPopupVisible(!0)}},n.saveTrigger=function(e){n.trigger=e};var r=[];return"value"in e?r=e.value||[]:"defaultValue"in e&&(r=e.defaultValue||[]),l()(!("filedNames"in e),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),n.state={popupVisible:e.popupVisible,activeValue:r,value:r,prevProps:e},n.defaultFieldNames={label:"label",value:"value",children:"children"},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),_(t,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(e){var t=this.defaultFieldNames,n=this.props,r=n.fieldNames,o=n.filedNames;return"filedNames"in this.props?o[e]||t[e]:r[e]||t[e]}},{key:"getFieldNames",value:function(){var e=this.props,t=e.fieldNames,n=e.filedNames;return"filedNames"in this.props?n:t}},{key:"getCurrentLevelOptions",value:function(){var e=this,t=this.props.options,n=void 0===t?[]:t,r=this.state.activeValue,o=void 0===r?[]:r,a=f()(n,(function(t,n){return t[e.getFieldName("value")]===o[n]}),{childrenKeyName:this.getFieldName("children")});return a[a.length-2]?a[a.length-2][this.getFieldName("children")]:[].concat(k(n)).filter((function(e){return!e.disabled}))}},{key:"getActiveOptions",value:function(e){var t=this;return f()(this.props.options||[],(function(n,r){return n[t.getFieldName("value")]===e[r]}),{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.transitionName,a=e.popupClassName,i=e.options,s=void 0===i?[]:i,l=e.disabled,u=e.builtinPlacements,d=e.popupPlacement,f=e.children,p=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children"]),h=o.a.createElement("div",null),m="";return s&&s.length>0?h=o.a.createElement(x,w({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):m=" "+t+"-menus-empty",o.a.createElement(c.a,w({ref:this.saveTrigger},p,{options:s,disabled:l,popupPlacement:d,builtinPlacements:u,popupTransitionName:n,action:l?[]:["click"],popupVisible:!l&&this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:t+"-menus",popupClassName:a+m,popup:h}),Object(r.cloneElement)(f,{onKeyDown:this.handleKeyDown,tabIndex:l?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=void 0===n?{}:n,o={prevProps:e};return"value"in e&&!h()(r.value,e.value)&&(o.value=e.value||[],"loadData"in e||(o.activeValue=e.value||[])),"popupVisible"in e&&(o.popupVisible=e.popupVisible),o}}]),t}(r.Component);S.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}},expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},S.propTypes={value:i.a.array,defaultValue:i.a.array,options:i.a.array.isRequired,onChange:i.a.func,onPopupVisibleChange:i.a.func,popupVisible:i.a.bool,disabled:i.a.bool,transitionName:i.a.string,popupClassName:i.a.string,popupPlacement:i.a.string,prefixCls:i.a.string,dropdownMenuColumnStyle:i.a.object,builtinPlacements:i.a.object,loadData:i.a.func,changeOnSelect:i.a.bool,children:i.a.node,onKeyDown:i.a.func,expandTrigger:i.a.string,fieldNames:i.a.object,filedNames:i.a.object,expandIcon:i.a.node,loadingIcon:i.a.node},Object(m.polyfill)(S);var O=S,C=n("eHJ2"),E=n.n(C),M=n("BGR+"),T=n("5rEg"),z=n("CtXQ"),A=n("H84U"),P=n("YMnH"),D=n("6CfX");function j(e){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function I(){return(I=Object.assign||function(e){for(var t=1;t-1}))}function q(e,t,n,o){return t.map((function(t,a){var i=t[o.label],c=i.indexOf(e)>-1?function(e,t,n){return e.split(t).map((function(e,o){return 0===o?e:[r.createElement("span",{className:"".concat(n,"-menu-item-keyword"),key:"seperator"},t),e]}))}(i,e,n):i;return 0===a?c:[" / ",c]}))}function U(e,t,n,r){function o(e){return e[r.label].indexOf(n)>-1}return e.findIndex(o)-t.findIndex(o)}function W(e){var t=function(e){var t=e.fieldNames,n=e.filedNames;return"filedNames"in e?n:t}(e)||{};return{children:t.children||"children",label:t.label||"label",value:t.value||"value"}}function Y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=W(t),o=[],a=r.children;return e.forEach((function(e){var r=n.concat(e);!t.changeOnSelect&&e[a]&&e[a].length||o.push(r),e[a]&&(o=o.concat(Y(e[a],t,r)))})),o}var G=function(e){return e.join(" / ")},K=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&R(e,t)}(i,e);var t,n,o,a=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=B(e);if(t){var o=B(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return H(this,n)}}(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).cachedOptions=[],t.setValue=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];"value"in t.props||t.setState({value:e});var r=t.props.onChange;r&&r(e,n)},t.saveInput=function(e){t.input=e},t.handleChange=function(e,n){if(t.setState({inputValue:""}),n[0].__IS_FILTERED_OPTION){var r=e[0],o=n[0].path;t.setValue(r,o)}else t.setValue(e,n)},t.handlePopupVisibleChange=function(e){"popupVisible"in t.props||t.setState((function(t){return{popupVisible:e,inputFocused:e,inputValue:e?t.inputValue:""}}));var n=t.props.onPopupVisibleChange;n&&n(e)},t.handleInputBlur=function(){t.setState({inputFocused:!1})},t.handleInputClick=function(e){var n=t.state,r=n.inputFocused,o=n.popupVisible;(r||o)&&(e.stopPropagation(),e.nativeEvent.stopImmediatePropagation&&e.nativeEvent.stopImmediatePropagation())},t.handleKeyDown=function(e){e.keyCode!==u.a.BACKSPACE&&e.keyCode!==u.a.SPACE||e.stopPropagation()},t.handleInputChange=function(e){var n=e.target.value;t.setState({inputValue:n})},t.clearSelection=function(e){e.preventDefault(),e.stopPropagation(),t.state.inputValue?t.setState({inputValue:""}):(t.setValue([]),t.handlePopupVisibleChange(!1))},t.renderCascader=function(e,n){var o,a,i,c,s,l=e.getPopupContainer,u=e.getPrefixCls,d=e.renderEmpty,f=V(t),p=f.props,h=f.state,m=p.prefixCls,g=p.inputPrefixCls,v=p.children,y=p.placeholder,b=void 0===y?n.placeholder||"Please select":y,x=p.size,w=p.disabled,_=p.className,k=p.style,S=p.allowClear,C=p.showSearch,A=void 0!==C&&C,P=p.suffixIcon,D=p.notFoundContent,j=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0||h.inputValue?r.createElement(z.a,{type:"close-circle",theme:"filled",className:"".concat(H,"-picker-clear"),onClick:t.clearSelection}):null,U=E()((N(a={},"".concat(H,"-picker-arrow"),!0),N(a,"".concat(H,"-picker-arrow-expand"),h.popupVisible),a)),Y=E()(_,"".concat(H,"-picker"),(N(i={},"".concat(H,"-picker-with-value"),h.inputValue),N(i,"".concat(H,"-picker-disabled"),w),N(i,"".concat(H,"-picker-").concat(x),!!x),N(i,"".concat(H,"-picker-show-search"),!!A),N(i,"".concat(H,"-picker-focused"),R),i)),G=Object(M.default)(j,["onChange","options","popupPlacement","transitionName","displayRender","onPopupVisibleChange","changeOnSelect","expandTrigger","popupVisible","getPopupContainer","loadData","popupClassName","filterOption","renderFilteredOption","sortFilteredOption","notFoundContent","fieldNames","filedNames"]),K=p.options,Q=W(t.props);K&&K.length>0?h.inputValue&&(K=t.generateFilteredOptions(H,d)):K=[(s={},N(s,Q.value,"ANT_CASCADER_NOT_FOUND"),N(s,Q.label,D||d("Cascader")),N(s,"disabled",!0),N(s,"isEmptyNode",!0),s)],h.popupVisible?t.cachedOptions=K:K=t.cachedOptions;var X={},J=1===(K||[]).length&&K[0].isEmptyNode;J&&(X.height="auto"),!1!==A.matchInputWidth&&(h.inputValue||J)&&t.input&&(X.width=t.input.input.offsetWidth);var Z=P&&(r.isValidElement(P)?r.cloneElement(P,{className:E()((c={},N(c,P.props.className,P.props.className),N(c,"".concat(H,"-picker-arrow"),!0),c))}):r.createElement("span",{className:"".concat(H,"-picker-arrow")},P))||r.createElement(z.a,{type:"down",className:U}),$=v||r.createElement("span",{style:k,className:Y},r.createElement("span",{className:"".concat(H,"-picker-label")},t.getLabel()),r.createElement(T.a,I({},G,{tabIndex:"-1",ref:t.saveInput,prefixCls:B,placeholder:L&&L.length>0?void 0:b,className:"".concat(H,"-input ").concat(F),value:h.inputValue,disabled:w,readOnly:!A,autoComplete:G.autoComplete||"off",onClick:A?t.handleInputClick:void 0,onBlur:A?t.handleInputBlur:void 0,onKeyDown:t.handleKeyDown,onChange:A?t.handleInputChange:void 0})),q,Z),ee=r.createElement(z.a,{type:"right"}),te=r.createElement("span",{className:"".concat(H,"-menu-item-loading-icon")},r.createElement(z.a,{type:"redo",spin:!0})),ne=p.getPopupContainer||l,re=Object(M.default)(p,["inputIcon","expandIcon","loadingIcon"]);return r.createElement(O,I({},re,{prefixCls:H,getPopupContainer:ne,options:K,value:L,popupVisible:h.popupVisible,onPopupVisibleChange:t.handlePopupVisibleChange,onChange:t.handleChange,dropdownMenuColumnStyle:X,expandIcon:ee,loadingIcon:te}),$)},t.state={value:e.value||e.defaultValue||[],inputValue:"",inputFocused:!1,popupVisible:e.popupVisible,flattenOptions:e.showSearch?Y(e.options,e):void 0,prevProps:e},t}return t=i,o=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r={prevProps:e};return"value"in e&&(r.value=e.value||[]),"popupVisible"in e&&(r.popupVisible=e.popupVisible),e.showSearch&&n.options!==e.options&&(r.flattenOptions=Y(e.options,e)),r}}],(n=[{key:"getLabel",value:function(){var e=this.props,t=e.options,n=e.displayRender,r=void 0===n?G:n,o=W(this.props),a=this.state.value,i=Array.isArray(a[0])?a[0]:a,c=f()(t,(function(e,t){return e[o.value]===i[t]}),{childrenKeyName:o.children});return r(c.map((function(e){return e[o.label]})),c)}},{key:"generateFilteredOptions",value:function(e,t){var n,r,o=this,a=this.props,i=a.showSearch,c=a.notFoundContent,s=W(this.props),l=i.filter,u=void 0===l?F:l,d=i.render,f=void 0===d?q:d,p=i.sort,h=void 0===p?U:p,m=i.limit,g=void 0===m?50:m,v=this.state,y=v.flattenOptions,b=void 0===y?[]:y,x=v.inputValue;if(g>0){r=[];var w=0;b.some((function(e){return u(o.state.inputValue,e,s)&&(r.push(e),w+=1),w>=g}))}else Object(D.a)("number"!=typeof g,"Cascader","'limit' of showSearch should be positive number or false."),r=b.filter((function(e){return u(o.state.inputValue,e,s)}));return r.sort((function(e,t){return h(e,t,x,s)})),r.length>0?r.map((function(t){var n;return N(n={__IS_FILTERED_OPTION:!0,path:t},s.value,t.map((function(e){return e[s.value]}))),N(n,s.label,f(x,t,e,s)),N(n,"disabled",t.some((function(e){return!!e.disabled}))),N(n,"isEmptyNode",!0),n})):[(n={},N(n,s.value,"ANT_CASCADER_NOT_FOUND"),N(n,s.label,c||t("Cascader")),N(n,"disabled",!0),N(n,"isEmptyNode",!0),n)]}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"render",value:function(){var e=this;return r.createElement(A.a,null,(function(t){return r.createElement(P.a,null,(function(n){return e.renderCascader(t,n)}))}))}}])&&L(t.prototype,n),o&&L(t,o),i}(r.Component);K.defaultProps={transitionName:"slide-up",popupPlacement:"bottomLeft",options:[],disabled:!1,allowClear:!0},Object(m.polyfill)(K),t.a=K},DFeQ:function(e,t,n){"use strict";var r=n("pevS"),o=n("cEKj"),a=n("uqd3").CONSTRUCTOR,i=n("lu2r"),c=n("mIMY"),s=n("+y2l"),l=n("/b46"),u=i&&i.prototype;if(r({target:"Promise",proto:!0,forced:a,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&s(i)){var d=c("Promise").prototype.catch;u.catch!==d&&l(u,"catch",d,{unsafe:!0})}},DIJN:function(e,t,n){"use strict";n("+UpH")("asyncDispose")},DKAG:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n("ptwB")),a=r(n("wmEG")),i=r(n("lWZf")),c=r(n("kc8Z")),s=r(n("92dX")),l=r(n("e5eY")),u=r(n("NlO1")),d=r(n("cDcd")),f=(r(n("17x9")),r(n("rzV7")));r(n("63PN"));var p,h=(p=null,function(){if(null!==p)return p;var e,t,n=!1;try{window.addEventListener("test",null,(e={},"passive",t={get:function(){n=!0}},Object.defineProperty(e,"passive",t)))}catch(e){}return p=n,n}()),m={capture:!1,passive:!1};function g(e){return u({},m,e)}function v(e,t,n){var r=[e,t];return r.push(h?n:n.capture),r}function y(e,t,n,r){e.addEventListener.apply(e,v(t,n,r))}function b(e,t,n,r){e.removeEventListener.apply(e,v(t,n,r))}var x=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),a(t,[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"shouldComponentUpdate",value:function(e){return!f(this.props,e)}},{key:"componentWillUpdate",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"addListeners",value:function(){this.applyListeners(y)}},{key:"removeListeners",value:function(){this.applyListeners(b)}},{key:"applyListeners",value:function(e){var t=this.props.target;if(t){var n=t;"string"==typeof t&&(n=window[t]),function(e,t){e.children,e.target;var n=l(e,["children","target"]);Object.keys(n).forEach((function(e){if("on"===e.substring(0,2)){var r=n[e],o=s(r),a="object"===o;if(a||"function"===o){var i="capture"===e.substr(-7).toLowerCase(),c=e.substring(2).toLowerCase();c=i?c.substring(0,c.length-7):c,a?t(c,r.handler,r.options):t(c,r,g({capture:i}))}}}))}(this.props,e.bind(null,n))}}},{key:"render",value:function(){return this.props.children||null}}]),t}(d.Component);x.propTypes={},t.withOptions=function(e,t){return{handler:e,options:g(t)}},t.default=x},DKI4:function(e,t,n){"use strict";n("4hld");var r=n("dktu");e.exports=r.parseFloat},DKiG:function(e,t,n){"use strict";var r=n("zhhU"),o=n("YiBS"),a=n("+y2l"),i=n("/EgQ"),c=n("jBKu"),s=r([].push);e.exports=function(e){if(a(e))return e;if(o(e)){for(var t=e.length,n=[],r=0;r=p&&(t.push(n({type:"childList",target:r,addedNodes:[l],removedNodes:[l],nextSibling:l.nextSibling,previousSibling:l.previousSibling})),s--),c.b&&d.b&&o(t,l,d.b,c.f),c.a&&3===l.nodeType&&l.nodeValue!==d.a&&t.push(n({type:"characterData",target:l,oldValue:d.a})),c.g&&u(l,d)}function u(r,a){for(var f,p,h,m,g,v=r.childNodes,y=a.c,b=v.length,x=y?y.length:0,w=0,_=0,k=0;_5e-5||e<-5e-5}var c=function(e){(e=e||{}).position||(this.position=[0,0]),null==e.rotation&&(this.rotation=0),e.scale||(this.scale=[1,1]),this.origin=this.origin||null},s=c.prototype;s.transform=null,s.needLocalTransform=function(){return i(this.rotation)||i(this.position[0])||i(this.position[1])||i(this.scale[0]-1)||i(this.scale[1]-1)};var l=[];s.updateTransform=function(){var e=this.parent,t=e&&e.transform,n=this.needLocalTransform(),o=this.transform;if(n||t){o=o||r.create(),n?this.getLocalTransform(o):a(o),t&&(n?r.mul(o,e.transform,o):r.copy(o,e.transform)),this.transform=o;var i=this.globalScaleRatio;if(null!=i&&1!==i){this.getGlobalScale(l);var c=l[0]<0?-1:1,s=l[1]<0?-1:1,u=((l[0]-c)*i+c)/l[0]||0,d=((l[1]-s)*i+s)/l[1]||0;o[0]*=u,o[1]*=u,o[2]*=d,o[3]*=d}this.invTransform=this.invTransform||r.create(),r.invert(this.invTransform,o)}else o&&a(o)},s.getLocalTransform=function(e){return c.getLocalTransform(this,e)},s.setTransform=function(e){var t=this.transform,n=e.dpr||1;t?e.setTransform(n*t[0],n*t[1],n*t[2],n*t[3],n*t[4],n*t[5]):e.setTransform(n,0,0,n,0,0)},s.restoreTransform=function(e){var t=e.dpr||1;e.setTransform(t,0,0,t,0,0)};var u=[],d=r.create();s.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=this.position,o=this.scale;i(t-1)&&(t=Math.sqrt(t)),i(n-1)&&(n=Math.sqrt(n)),e[0]<0&&(t=-t),e[3]<0&&(n=-n),r[0]=e[4],r[1]=e[5],o[0]=t,o[1]=n,this.rotation=Math.atan2(-e[1]/n,e[0]/t)}},s.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(r.mul(u,e.invTransform,t),t=u);var n=this.origin;n&&(n[0]||n[1])&&(d[4]=n[0],d[5]=n[1],r.mul(u,t,d),u[4]-=n[0],u[5]-=n[1],t=u),this.setLocalTransform(t)}},s.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},s.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&o.applyTransform(n,n,r),n},s.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&o.applyTransform(n,n,r),n},c.getLocalTransform=function(e,t){a(t=t||[]);var n=e.origin,o=e.scale||[1,1],i=e.rotation||0,c=e.position||[0,0];return n&&(t[4]-=n[0],t[5]-=n[1]),r.scale(t,t,o),i&&r.rotate(t,t,i),n&&(t[4]+=n[0],t[5]+=n[1]),t[4]+=c[0],t[5]+=c[1],t};var f=c;e.exports=f},DPDV:function(e,t,n){"use strict";var r=n("syO3"),o=n("nleh").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},DSbf:function(e,t,n){"use strict";var r=n("qQKe");e.exports=r},"DX+C":function(e,t,n){"use strict";var r=n("qpuQ");e.exports=r},DZ0b:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e.replace(r,(function(e,t){return t.toUpperCase()}))};var r=/-(.)/g;e.exports=t.default},Dagg:function(e,t,n){var r=n("Gev7"),o=n("mFDi"),a=n("bYtY"),i=n("Xnb7");function c(e){r.call(this,e)}c.prototype={constructor:c,type:"image",brush:function(e,t){var n=this.style,r=n.image;n.bind(e,this,t);var o=this._image=i.createOrUpdateImage(r,this._image,this,this.onload);if(o&&i.isImageReady(o)){var a=n.x||0,c=n.y||0,s=n.width,l=n.height,u=o.width/o.height;if(null==s&&null!=l?s=l*u:null==l&&null!=s?l=s/u:null==s&&null==l&&(s=o.width,l=o.height),this.setTransform(e),n.sWidth&&n.sHeight){var d=n.sx||0,f=n.sy||0;e.drawImage(o,d,f,n.sWidth,n.sHeight,a,c,s,l)}else if(n.sx&&n.sy){var p=s-(d=n.sx),h=l-(f=n.sy);e.drawImage(o,d,f,p,h,a,c,s,l)}else e.drawImage(o,a,c,s,l);null!=n.text&&(this.restoreTransform(e),this.drawRectText(e,this.getBoundingRect()))}},getBoundingRect:function(){var e=this.style;return this._rect||(this._rect=new o(e.x||0,e.y||0,e.width||0,e.height||0)),this._rect}},a.inherits(c,r);var s=c;e.exports=s},Dcj1:function(e,t,n){e.exports=n("/HVM")},Dew8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return e.createGenerateClassName&&(this.options.createGenerateClassName=e.createGenerateClassName,this.generateClassName=e.createGenerateClassName()),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),(e.virtual||e.Renderer)&&(this.options.Renderer=e.Renderer||(e.virtual?v.default:g.default)),e.plugins&&this.use.apply(this,e.plugins),this}},{key:"createStyleSheet",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.index;"number"!=typeof n&&(n=0===f.default.index?0:f.default.index+1);var r=new c.default(e,o({},t,{jss:this,generateClassName:t.generateClassName||this.generateClassName,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r}},{key:"removeStyleSheet",value:function(e){return e.detach(),f.default.remove(e),this}},{key:"createRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"===(void 0===e?"undefined":r(e))&&(n=t,t=e,e=void 0);var o=n;o.jss=this,o.Renderer=this.options.Renderer,o.generateClassName||(o.generateClassName=this.generateClassName),o.classes||(o.classes={});var a=(0,m.default)(e,t,o);return!o.selector&&a instanceof p.default&&(a.selector="."+o.generateClassName(a)),this.plugins.onProcessRule(a),a}},{key:"use",value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r={exports:{}};r.exports={defaults:{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:function(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},changeDefaults:function(e){r.exports.defaults=e}};var o=/[&<>"']/,a=/[&<>"']/g,i=/[<>"']|&(?!#?\w+;)/,c=/[<>"']|&(?!#?\w+;)/g,s={"&":"&","<":"<",">":">",'"':""","'":"'"},l=function(e){return s[e]},u=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function d(e){return e.replace(u,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var f=/(^|[^\[])\^/g,p=/[^\w:]/g,h=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,m={},g=/^[^:]+:\/*[^/]*$/,v=/^([^:]+:)[\s\S]*$/,y=/^([^:]+:\/*[^/]*)[\s\S]*$/;function b(e,t,n){var r=e.length;if(0===r)return"";for(var o=0;o=0&&"\\"===n[o];)r=!r;return r?"|":" |"})).split(/ \|/),r=0;if(n.length>t)n.splice(t);else for(;n.length1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:O(n,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],r=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var r=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=r.length?e.slice(r.length):e})).join("\n")}(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:r}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var r=O(n,"#");this.options.pedantic?n=r.trim():r&&!/ $/.test(r)||(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n}}},t.nptable=function(e){var t=this.rules.block.nptable.exec(e);if(t){var n={type:"table",header:C(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[],raw:t[0]};if(n.header.length===n.align.length){var r,o=n.align.length;for(r=0;r