AM_HTMLorMML.js 115 KB

12345678910111213
  1. /*
  2. * /MathJax/config/AM_HTMLorMML.js
  3. *
  4. * Copyright (c) 2010-2013 The MathJax Consortium
  5. *
  6. * Part of the MathJax library.
  7. * See http://www.mathjax.org for details.
  8. *
  9. * Licensed under the Apache License, Version 2.0;
  10. * you may not use this file except in compliance with the License.
  11. *
  12. * http://www.apache.org/licenses/LICENSE-2.0
  13. */MathJax.Hub.Config({delayJaxRegistration:!0});MathJax.Ajax.Preloading("[MathJax]/jax/input/AsciiMath/config.js","[MathJax]/jax/output/HTML-CSS/config.js","[MathJax]/jax/output/NativeMML/config.js","[MathJax]/config/MMLorHTML.js","[MathJax]/extensions/asciimath2jax.js","[MathJax]/extensions/MathEvents.js","[MathJax]/extensions/MathZoom.js","[MathJax]/extensions/MathMenu.js","[MathJax]/jax/element/mml/jax.js","[MathJax]/extensions/toMathML.js","[MathJax]/jax/input/AsciiMath/jax.js");MathJax.Hub.Config({"v1.0-compatible":!1});MathJax.InputJax.AsciiMath=MathJax.InputJax({id:"AsciiMath",version:"2.2",directory:MathJax.InputJax.directory+"/AsciiMath",extensionDir:MathJax.InputJax.extensionDir+"/AsciiMath",config:{displaystyle:!0,decimalsign:"."}});MathJax.InputJax.AsciiMath.Register("math/asciimath");MathJax.InputJax.AsciiMath.loadComplete("config.js");MathJax.OutputJax["HTML-CSS"]=MathJax.OutputJax({id:"HTML-CSS",version:"2.2",directory:MathJax.OutputJax.directory+"/HTML-CSS",extensionDir:MathJax.OutputJax.extensionDir+"/HTML-CSS",autoloadDir:MathJax.OutputJax.directory+"/HTML-CSS/autoload",fontDir:MathJax.OutputJax.directory+"/HTML-CSS/fonts",webfontDir:MathJax.OutputJax.fontDir+"/HTML-CSS",config:{scale:100,minScaleAdjust:50,availableFonts:["STIX","TeX"],preferredFont:"TeX",webFont:"TeX",imageFont:"TeX",undefinedFamily:"STIXGeneral,'Arial Unicode MS',serif",mtextFontInherit:!1,EqnChunk:MathJax.Hub.Browser.isMobile?10:50,EqnChunkFactor:1.5,EqnChunkDelay:100,linebreaks:{automatic:!1,width:"container"},styles:{".MathJax_Display":{"text-align":"center",margin:"1em 0em"},".MathJax .merror":{"background-color":"#FFFF88",color:"#CC0000",border:"1px solid #CC0000",padding:"1px 3px","font-style":"normal","font-size":"90%"},"#MathJax_Tooltip":{"background-color":"InfoBackground",color:"InfoText",border:"1px solid black","box-shadow":"2px 2px 5px #AAAAAA","-webkit-box-shadow":"2px 2px 5px #AAAAAA","-moz-box-shadow":"2px 2px 5px #AAAAAA","-khtml-box-shadow":"2px 2px 5px #AAAAAA",filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX\x3d2, OffY\x3d2, Color\x3d'gray', Positive\x3d'true')",padding:"3px 4px","z-index":401}}}});MathJax.Hub.Browser.isMSIE&&9<=document.documentMode&&delete MathJax.OutputJax["HTML-CSS"].config.styles["#MathJax_Tooltip"].filter;MathJax.Hub.config.delayJaxRegistration||MathJax.OutputJax["HTML-CSS"].Register("jax/mml");MathJax.Hub.Register.StartupHook("End Config",[function(a,c){var b=a.Insert({minBrowserVersion:{Firefox:3,Opera:9.52,MSIE:6,Chrome:.3,Safari:2,Konqueror:4},inlineMathDelimiters:["$","$"],displayMathDelimiters:["$$","$$"],multilineDisplay:!0,minBrowserTranslate:function(d){var c=a.getJaxFor(d),f=["[Math]"],k=document.createElement("span",{className:"MathJax_Preview"});"TeX"===c.inputJax&&(c.root.Get("displaystyle")?(f=b.displayMathDelimiters,f=[f[0]+c.originalText+f[1]],b.multilineDisplay&&(f=f[0].split(/\n/))):(f=b.inlineMathDelimiters,f=[f[0]+c.originalText.replace(/^\s+/,"").replace(/\s+$/,"")+f[1]]));for(var c=0,p=f.length;c<p;c++)k.appendChild(document.createTextNode(f[c])),c<p-1&&k.appendChild(document.createElement("br"));d.parentNode.insertBefore(k,d)}},a.config["HTML-CSS"]||{});"0.0"===a.Browser.version||a.Browser.versionAtLeast(b.minBrowserVersion[a.Browser]||0)||(c.Translate=b.minBrowserTranslate,a.Config({showProcessingMessages:!1}),MathJax.Message.Set(["MathJaxNotSupported","Your browser does not support MathJax"],null,4E3),a.Startup.signal.Post("MathJax not supported"))},MathJax.Hub,MathJax.OutputJax["HTML-CSS"]]);MathJax.OutputJax["HTML-CSS"].loadComplete("config.js");MathJax.OutputJax.NativeMML=MathJax.OutputJax({id:"NativeMML",version:"2.2",directory:MathJax.OutputJax.directory+"/NativeMML",extensionDir:MathJax.OutputJax.extensionDir+"/NativeMML",config:{scale:100,minScaleAdjust:50,styles:{"DIV.MathJax_MathML":{"text-align":"center",margin:".75em 0px"}}}});MathJax.Hub.config.delayJaxRegistration||MathJax.OutputJax.NativeMML.Register("jax/mml");MathJax.OutputJax.NativeMML.loadComplete("config.js");(function(a,c){var b=MathJax.Hub.CombineConfig("MMLorHTML",{prefer:{MSIE:"MML",Firefox:"HTML",Opera:"HTML",Chrome:"HTML",Safari:"HTML",other:"HTML"}}),d={Firefox:3,Opera:9.52,MSIE:6,Chrome:.3,Safari:2,Konqueror:4},g="0.0"===c.version||c.versionAtLeast(d[c]||0),f=c.isFirefox&&c.versionAtLeast("1.5")||c.isMSIE&&c.hasMathPlayer||c.isSafari&&c.versionAtLeast("5.0")||c.isOpera&&c.versionAtLeast("9.52");a.Register.StartupHook("End Config",function(){var d=b.prefer&&"object"===typeof b.prefer?b.prefer[MathJax.Hub.Browser]||b.prefer.other||"HTML":b.prefer;g||f?!f||"MML"!==d&&g?(MathJax.OutputJax["HTML-CSS"]?MathJax.OutputJax["HTML-CSS"].Register("jax/mml"):a.config.jax.unshift("output/HTML-CSS"),a.Startup.signal.Post("HTML-CSS output selected")):(MathJax.OutputJax.NativeMML?MathJax.OutputJax.NativeMML.Register("jax/mml"):a.config.jax.unshift("output/NativeMML"),a.Startup.signal.Post("NativeMML output selected")):(a.PreProcess.disabled=!0,a.prepareScripts.disabled=!0,MathJax.Message.Set(["MathJaxNotSupported","Your browser does not support MathJax"],null,4E3),a.Startup.signal.Post("MathJax not supported"))})})(MathJax.Hub,MathJax.Hub.Browser);MathJax.Ajax.loadComplete("[MathJax]/config/MMLorHTML.js");MathJax.Extension.asciimath2jax={version:"2.2",config:{delimiters:[["`","`"]],skipTags:"script noscript style textarea pre code".split(" "),ignoreClass:"asciimath2jax_ignore",processClass:"asciimath2jax_process",preview:"AsciiMath"},PreProcess:function(a){this.configured||(this.config=MathJax.Hub.CombineConfig("asciimath2jax",this.config),this.config.Augment&&MathJax.Hub.Insert(this,this.config.Augment),this.configured=!0);"string"===typeof a&&(a=document.getElementById(a));a||(a=document.body);this.createPatterns()&&this.scanElement(a,a.nextSibling)},createPatterns:function(){var a=[],c,b,d=this.config;this.match={};if(0===d.delimiters.length)return!1;c=0;for(b=d.delimiters.length;c<b;c++)a.push(this.patternQuote(d.delimiters[c][0])),this.match[d.delimiters[c][0]]={mode:"",end:d.delimiters[c][1],pattern:this.endPattern(d.delimiters[c][1])};this.start=new RegExp(a.sort(this.sortLength).join("|"),"g");this.skipTags=new RegExp("^("+d.skipTags.join("|")+")$","i");a=[];MathJax.Hub.config.preRemoveClass&&a.push(MathJax.Hub.config.preRemoveClass);d.ignoreClass&&a.push(d.ignoreClass);this.ignoreClass=a.length?new RegExp("(^| )("+a.join("|")+")( |$)"):/^$/;this.processClass=new RegExp("(^| )("+d.processClass+")( |$)");return!0},patternQuote:function(a){return a.replace(/([\^$(){}+*?\-|\[\]\:\\])/g,"\\$1")},endPattern:function(a){return new RegExp(this.patternQuote(a)+"|\\\\.","g")},sortLength:function(a,c){return a.length!==c.length?c.length-a.length:a==c?0:a<c?-1:1},scanElement:function(a,c,b){for(var d,g,f;a&&a!=c;)"#text"===a.nodeName.toLowerCase()?b||(a=this.scanText(a)):(d="undefined"===typeof a.className?"":a.className,g="undefined"===typeof a.tagName?"":a.tagName,"string"!==typeof d&&(d=String(d)),f=this.processClass.exec(d),!a.firstChild||d.match(/(^| )MathJax/)||!f&&this.skipTags.exec(g)||(d=(b||this.ignoreClass.exec(d))&&!f,this.scanElement(a.firstChild,c,d))),a&&(a=a.nextSibling)},scanText:function(a){if(""==a.nodeValue.replace(/\s+/,""))return a;var c,b;this.search={start:!0};for(this.pattern=this.start;a;){for(this.pattern.lastIndex=0;a&&"#text"===a.nodeName.toLowerCase()&&(c=this.pattern.exec(a.nodeValue));)a=this.search.start?this.startMatch(c,a):this.endMatch(c,a);this.search.matched&&(a=this.encloseMath(a));if(a){do b=a,a=a.nextSibling;while(a&&("br"===a.nodeName.toLowerCase()||"#comment"===a.nodeName.toLowerCase()));if(!a||"#text"!==a.nodeName)return b}}return a},startMatch:function(a,c){var b=this.match[a[0]];null!=b&&(this.search={end:b.end,mode:b.mode,open:c,olen:a[0].length,opos:this.pattern.lastIndex-a[0].length},this.switchPattern(b.pattern));return c},endMatch:function(a,c){a[0]==this.search.end&&(this.search.close=c,this.search.cpos=this.pattern.lastIndex,this.search.clen=this.search.isBeginEnd?0:a[0].length,this.search.matched=!0,c=this.encloseMath(c),this.switchPattern(this.start));return c},switchPattern:function(a){a.lastIndex=this.pattern.lastIndex;this.pattern=a;this.search.start=a===this.start},encloseMath:function(a){a=this.search;var c=a.close,b,d;(c=a.cpos===c.length?c.nextSibling:c.splitText(a.cpos))||(b=c=MathJax.HTML.addText(a.close.parentNode,""));a.close=c;for(d=a.opos?a.open.splitText(a.opos):a.open;d.nextSibling&&d.nextSibling!==c;)d.nodeValue=null!==d.nextSibling.nodeValue?"#comment"===d.nextSibling.nodeName?d.nodeValue+d.nextSibling.nodeValue.replace(/^\[CDATA\[((.|\n|\r)*)\]\]$/,"$1"):d.nodeValue+d.nextSibling.nodeValue:this.msieNewlineBug?d.nodeValue+("br"===d.nextSibling.nodeName.toLowerCase()?"\n":" "):d.nodeValue+" ",d.parentNode.removeChild(d.nextSibling);c=d.nodeValue.substr(a.olen,d.nodeValue.length-a.olen-a.clen);d.parentNode.removeChild(d);"none"!==this.config.preview&&this.createPreview(a.mode,c);d=this.createMathTag(a.mode,c);this.search={};this.pattern.lastIndex=0;b&&b.parentNode.removeChild(b);return d},insertNode:function(a){var c=this.search;c.close.parentNode.insertBefore(a,c.close)},createPreview:function(a,c){var b=this.config.preview;"none"!==b&&("AsciiMath"===b&&(b=[this.filterPreview(c)]),b&&(b=MathJax.HTML.Element("span",{className:MathJax.Hub.config.preRemoveClass},b),this.insertNode(b)))},createMathTag:function(a,c){var b=document.createElement("script");b.type="math/asciimath"+a;MathJax.HTML.setScript(b,c);this.insertNode(b);return b},filterPreview:function(a){return a},msieNewlineBug:MathJax.Hub.Browser.isMSIE&&9>(document.documentMode||0)};MathJax.Hub.Register.PreProcessor(["PreProcess",MathJax.Extension.asciimath2jax]);MathJax.Ajax.loadComplete("[MathJax]/extensions/asciimath2jax.js");(function(a,c,b,d,g,f,k){var p=MathJax.Extension,t=p.MathEvents={version:"2.2"},n=a.config.menuSettings,q={hover:500,frame:{x:3.5,y:5,bwidth:1,bcolor:"#A6D",hwidth:"15px",hcolor:"#83A"},button:{x:-4,y:-3,wx:-2,src:b.fileURL(f.imageDir+"/MenuArrow-15.png")},fadeinInc:.2,fadeoutInc:.05,fadeDelay:50,fadeoutStart:400,fadeoutDelay:15E3,styles:{".MathJax_Hover_Frame":{"border-radius":".25em","-webkit-border-radius":".25em","-moz-border-radius":".25em","-khtml-border-radius":".25em","box-shadow":"0px 0px 15px #83A","-webkit-box-shadow":"0px 0px 15px #83A","-moz-box-shadow":"0px 0px 15px #83A","-khtml-box-shadow":"0px 0px 15px #83A",border:"1px solid #A6D ! important",display:"inline-block",position:"absolute"},".MathJax_Hover_Arrow":{position:"absolute",width:"15px",height:"11px",cursor:"pointer"}}},h=t.Event={LEFTBUTTON:0,RIGHTBUTTON:2,MENUKEY:"altKey",Mousedown:function(a){return h.Handler(a,"Mousedown",this)},Mouseup:function(a){return h.Handler(a,"Mouseup",this)},Mousemove:function(a){return h.Handler(a,"Mousemove",this)},Mouseover:function(a){return h.Handler(a,"Mouseover",this)},Mouseout:function(a){return h.Handler(a,"Mouseout",this)},Click:function(a){return h.Handler(a,"Click",this)},DblClick:function(a){return h.Handler(a,"DblClick",this)},Menu:function(a){return h.Handler(a,"ContextMenu",this)},Handler:function(a,d,m){if(b.loadingMathMenu)return h.False(a);var c=f[m.jaxID];a||(a=window.event);a.isContextMenu="ContextMenu"===d;if(c[d])return c[d](a,m);if(p.MathZoom)return p.MathZoom.HandleEvent(a,d,m)},False:function(a){a||(a=window.event);a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0,a.returnValue=!1);return!1},ContextMenu:function(c,x,m){var e=f[x.jaxID],w=e.getJaxFromMath(x);if((null!=e.config.showMathMenu?e:a).config.showMathMenu&&("MathJax"===n.context||m)){t.msieEventBug&&(c=window.event||c);h.ClearSelection();r.ClearHoverTimer();w.hover&&(w.hover.remove&&(clearTimeout(w.hover.remove),delete w.hover.remove),w.hover.nofade=!0);var q=MathJax.Menu;if(q){if(q.loadingDomain)return h.False(c);e=g.loadDomain("MathMenu");if(!e)return q.jax=w,x=q.menu.Find("Show Math As").menu,x.items[0].name=w.sourceMenuTitle,x.items[0].format=w.sourceMenuFormat||"MathML",x.items[1].name=k[w.inputJax].sourceMenuTitle,q.menu.Find("Math Settings","MathPlayer").hidden=!("NativeMML"===w.outputJax&&a.Browser.hasMathPlayer),q.menu.Post(c);q.loadingDomain=!0;w=function(){delete q.loadingDomain}}else{if(b.loadingMathMenu)return h.False(c);b.loadingMathMenu=!0;e=b.Require("[MathJax]/extensions/MathMenu.js");w=function(){delete b.loadingMathMenu;MathJax.Menu||(MathJax.Menu={})}}d.Queue(e,w,["ContextMenu",h,{pageX:c.pageX,pageY:c.pageY,clientX:c.clientX,clientY:c.clientY},x,m]);return h.False(c)}},AltContextMenu:function(d,b){var m=f[b.jaxID],c=(null!=m.config.showMathMenu?m:a).config.showMathMenu;if(c){c=(null!=m.config.showMathMenuMSIE?m:a).config.showMathMenuMSIE;if("MathJax"===n.context&&!n.mpContext&&c){if(!t.noContextMenuBug||d.button!==h.RIGHTBUTTON)return}else if(!d[h.MENUKEY]||d.button!==h.LEFTBUTTON)return;return m.ContextMenu(d,b,!0)}},ClearSelection:function(){t.safariContextMenuBug&&setTimeout("window.getSelection().empty()",0);document.selection&&setTimeout("document.selection.empty()",0)},getBBox:function(a){a.appendChild(t.topImg);var d=t.topImg.offsetTop,b=a.offsetHeight-d,c=a.offsetWidth;a.removeChild(t.topImg);return{w:c,h:d,d:b}}},r=t.Hover={Mouseover:function(d,b){if(n.discoverable||"Hover"===n.zoom){var m=d.fromElement||d.relatedTarget,c=d.toElement||d.target;if(m&&c&&(m.isMathJax!=c.isMathJax||a.getJaxFor(m)!==a.getJaxFor(c)))return m=this.getJaxFromMath(b),m.hover?r.ReHover(m):r.HoverTimer(m,b),h.False(d)}},Mouseout:function(d,b){if(n.discoverable||"Hover"===n.zoom){var m=d.fromElement||d.relatedTarget,c=d.toElement||d.target;if(m&&c&&(m.isMathJax!=c.isMathJax||a.getJaxFor(m)!==a.getJaxFor(c)))return m=this.getJaxFromMath(b),m.hover?r.UnHover(m):r.ClearHoverTimer(),h.False(d)}},Mousemove:function(a,d){if(n.discoverable||"Hover"===n.zoom){var b=this.getJaxFromMath(d);if(!b.hover&&(r.lastX!=a.clientX||r.lastY!=a.clientY))return r.lastX=a.clientX,r.lastY=a.clientY,r.HoverTimer(b,d),h.False(a)}},HoverTimer:function(a,b){this.ClearHoverTimer();this.hoverTimer=setTimeout(d(["Hover",this,a,b]),q.hover)},ClearHoverTimer:function(){this.hoverTimer&&(clearTimeout(this.hoverTimer),delete this.hoverTimer)},Hover:function(d,b){if(!p.MathZoom||!p.MathZoom.Hover({},b)){var m=f[d.outputJax],e=m.getHoverSpan(d,b),g=m.getHoverBBox(d,e,b),h=(null!=m.config.showMathMenu?m:a).config.showMathMenu,k=q.frame.x,r=q.frame.y,n=q.frame.bwidth;t.msieBorderWidthBug&&(n=0);d.hover={opacity:0,id:d.inputID+"-Hover"};var v=c.Element("span",{id:d.hover.id,isMathJax:!0,style:{display:"inline-block",width:0,height:0,position:"relative"}},[["span",{className:"MathJax_Hover_Frame",isMathJax:!0,style:{display:"inline-block",position:"absolute",top:this.Px(-g.h-r-n-(g.y||0)),left:this.Px(-k-n+(g.x||0)),width:this.Px(g.w+2*k),height:this.Px(g.h+g.d+2*r),opacity:0,filter:"alpha(opacity\x3d0)"}}]]),m=c.Element("span",{isMathJax:!0,id:d.hover.id+"Menu",style:{display:"inline-block","z-index":1,width:0,height:0,position:"relative"}},[["img",{className:"MathJax_Hover_Arrow",isMathJax:!0,math:b,src:q.button.src,onclick:this.HoverMenu,jax:m.id,style:{left:this.Px(g.w+k+n+(g.x||0)+q.button.x),top:this.Px(-g.h-r-n-(g.y||0)-q.button.y),opacity:0,filter:"alpha(opacity\x3d0)"}}]]);g.width&&(v.style.width=m.style.width=g.width,v.style.marginRight=m.style.marginRight="-"+g.width,v.firstChild.style.width=g.width,m.firstChild.style.left="",m.firstChild.style.right=this.Px(q.button.wx));e.parentNode.insertBefore(v,e);h&&e.parentNode.insertBefore(m,e);e.style&&(e.style.position="relative");this.ReHover(d)}},ReHover:function(a){a.hover.remove&&clearTimeout(a.hover.remove);a.hover.remove=setTimeout(d(["UnHover",this,a]),q.fadeoutDelay);this.HoverFadeTimer(a,q.fadeinInc)},UnHover:function(a){a.hover.nofade||this.HoverFadeTimer(a,-q.fadeoutInc,q.fadeoutStart)},HoverFade:function(a){delete a.hover.timer;a.hover.opacity=Math.max(0,Math.min(1,a.hover.opacity+a.hover.inc));a.hover.opacity=Math.floor(1E3*a.hover.opacity)/1E3;var d=document.getElementById(a.hover.id),b=document.getElementById(a.hover.id+"Menu");d.firstChild.style.opacity=a.hover.opacity;d.firstChild.style.filter="alpha(opacity\x3d"+Math.floor(100*a.hover.opacity)+")";b&&(b.firstChild.style.opacity=a.hover.opacity,b.firstChild.style.filter=d.style.filter);1!==a.hover.opacity&&(0<a.hover.opacity?this.HoverFadeTimer(a,a.hover.inc):(d.parentNode.removeChild(d),b&&b.parentNode.removeChild(b),a.hover.remove&&clearTimeout(a.hover.remove),delete a.hover))},HoverFadeTimer:function(a,b,c){a.hover.inc=b;a.hover.timer||(a.hover.timer=setTimeout(d(["HoverFade",this,a]),c||q.fadeDelay))},HoverMenu:function(a){a||(a=window.event);return f[this.jax].ContextMenu(a,this.math,!0)},ClearHover:function(a){a.hover.remove&&clearTimeout(a.hover.remove);a.hover.timer&&clearTimeout(a.hover.timer);r.ClearHoverTimer();delete a.hover},Px:function(a){return.006>Math.abs(a)?"0px":a.toFixed(2).replace(/\.?0+$/,"")+"px"},getImages:function(){(new Image).src=q.button.src}},v=t.Touch={last:0,delay:500,start:function(a){var d=(new Date).getTime(),b=d-v.last<v.delay&&v.up;v.last=d;v.up=!1;b&&(v.timeout=setTimeout(v.menu,v.delay,a,this),a.preventDefault())},end:function(a){var d=(new Date).getTime();v.up=d-v.last<v.delay;if(v.timeout)return clearTimeout(v.timeout),delete v.timeout,v.last=0,v.up=!1,a.preventDefault(),h.Handler(a.touches[0]||a.touch,"DblClick",this)},menu:function(a,d){delete v.timeout;v.last=0;v.up=!1;return h.Handler(a.touches[0]||a.touch,"ContextMenu",d)}};if(a.Browser.isMobile){var e=q.styles[".MathJax_Hover_Arrow"];e.width="25px";e.height="18px";q.button.x=-6}a.Browser.Select({MSIE:function(a){var d=document.documentMode||0,b=a.versionAtLeast("8.0");t.msieBorderWidthBug="BackCompat"===document.compatMode;t.msieEventBug=a.isIE9;t.msieAlignBug=!b||8>d;9>d&&(h.LEFTBUTTON=1)},Safari:function(a){t.safariContextMenuBug=!0},Opera:function(a){t.operaPositionBug=!0},Konqueror:function(a){t.noContextMenuBug=!0}});t.topImg=t.msieAlignBug?c.Element("img",{style:{width:0,height:0,position:"relative"},src:"about:blank"}):c.Element("span",{style:{width:0,height:0,display:"inline-block"}});t.operaPositionBug&&(t.topImg.style.border="1px solid");t.config=q=a.CombineConfig("MathEvents",q);d.Queue(a.Register.StartupHook("End Config",{}),[function(){var a=q.styles[".MathJax_Hover_Frame"];a.border=q.frame.bwidth+"px solid "+q.frame.bcolor+" ! important";a["box-shadow"]=a["-webkit-box-shadow"]=a["-moz-box-shadow"]=a["-khtml-box-shadow"]="0px 0px "+q.frame.hwidth+" "+q.frame.hcolor}],["getImages",r],["Styles",b,q.styles],["Post",a.Startup.signal,"MathEvents Ready"],["loadComplete",b,"[MathJax]/extensions/MathEvents.js"])})(MathJax.Hub,MathJax.HTML,MathJax.Ajax,MathJax.Callback,MathJax.Localization,MathJax.OutputJax,MathJax.InputJax);(function(a,c,b,d,g){var f=a.CombineConfig("MathZoom",{styles:{"#MathJax_Zoom":{position:"absolute","background-color":"#F0F0F0",overflow:"auto",display:"block","z-index":301,padding:".5em",border:"1px solid black",margin:0,"font-weight":"normal","font-style":"normal","text-align":"left","text-indent":0,"text-transform":"none","line-height":"normal","letter-spacing":"normal","word-spacing":"normal","word-wrap":"normal","white-space":"nowrap","float":"none","box-shadow":"5px 5px 15px #AAAAAA","-webkit-box-shadow":"5px 5px 15px #AAAAAA","-moz-box-shadow":"5px 5px 15px #AAAAAA","-khtml-box-shadow":"5px 5px 15px #AAAAAA",filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX\x3d2, OffY\x3d2, Color\x3d'gray', Positive\x3d'true')"},"#MathJax_ZoomOverlay":{position:"absolute",left:0,top:0,"z-index":300,display:"inline-block",width:"100%",height:"100%",border:0,padding:0,margin:0,"background-color":"white",opacity:0,filter:"alpha(opacity\x3d0)"},"#MathJax_ZoomFrame":{position:"relative",display:"inline-block",height:0,width:0},"#MathJax_ZoomEventTrap":{position:"absolute",left:0,top:0,"z-index":302,display:"inline-block",border:0,padding:0,margin:0,"background-color":"white",opacity:0,filter:"alpha(opacity\x3d0)"}}}),k,p,t;MathJax.Hub.Register.StartupHook("MathEvents Ready",function(){t=MathJax.Extension.MathEvents.Event;k=MathJax.Extension.MathEvents.Event.False;p=MathJax.Extension.MathEvents.Hover});var n=MathJax.Extension.MathZoom={version:"2.2",settings:a.config.menuSettings,scrollSize:18,HandleEvent:function(a,d,b){return n.settings.CTRL&&!a.ctrlKey||n.settings.ALT&&!a.altKey||n.settings.CMD&&!a.metaKey||n.settings.Shift&&!a.shiftKey||!n[d]?!0:n[d](a,b)},Click:function(a,d){if("Click"===this.settings.zoom)return this.Zoom(a,d)},DblClick:function(a,d){if("Double-Click"===this.settings.zoom)return this.Zoom(a,d)},Hover:function(a,d){return"Hover"===this.settings.zoom?(this.Zoom(a,d),!0):!1},Zoom:function(d,b){this.Remove();p.ClearHoverTimer();t.ClearSelection();var g=MathJax.OutputJax[b.jaxID],n=g.getJaxFromMath(b);n.hover&&p.UnHover(n);var e=Math.floor(.85*document.body.clientWidth),l=Math.floor(.85*Math.max(document.body.clientHeight,document.documentElement.clientHeight)),x=c.Element("span",{id:"MathJax_ZoomFrame"},[["span",{id:"MathJax_ZoomOverlay",onmousedown:this.Remove}],["span",{id:"MathJax_Zoom",onclick:this.Remove,style:{visibility:"hidden",fontSize:this.settings.zscale,"max-width":e+"px","max-height":l+"px"}},[["span",{style:{display:"inline-block","white-space":"nowrap"}}]]]]),m=x.lastChild,A=m.firstChild,w=x.firstChild;b.parentNode.insertBefore(x,b);b.parentNode.insertBefore(b,x);A.addEventListener&&A.addEventListener("mousedown",this.Remove,!0);if(this.msieTrapEventBug){var y=c.Element("span",{id:"MathJax_ZoomEventTrap",onmousedown:this.Remove});x.insertBefore(y,m)}this.msieZIndexBug&&(c.addElement(document.body,"img",{src:"about:blank",id:"MathJax_ZoomTracker",width:0,height:0,style:{width:0,height:0,position:"relative"}}),x.style.position="relative",x.style.zIndex=f.styles["#MathJax_ZoomOverlay"]["z-index"]);g=g.Zoom(n,A,b,e,l);this.msiePositionBug&&(this.msieSizeBug&&(m.style.height=g.zH+"px",m.style.width=g.zW+"px"),m.offsetHeight>l&&(m.style.height=l+"px",m.style.width=g.zW+this.scrollSize+"px"),m.offsetWidth>e&&(m.style.width=e+"px",m.style.height=g.zH+this.scrollSize+"px"));this.operaPositionBug&&(m.style.width=Math.min(e,g.zW)+"px");m.offsetWidth&&m.offsetWidth<e&&m.offsetHeight<l&&(m.style.overflow="visible");this.Position(m,g);this.msieTrapEventBug&&(y.style.height=m.clientHeight+"px",y.style.width=m.clientWidth+"px",y.style.left=parseFloat(m.style.left)+m.clientLeft+"px",y.style.top=parseFloat(m.style.top)+m.clientTop+"px");m.style.visibility="";"Hover"===this.settings.zoom&&(w.onmouseover=this.Remove);window.addEventListener?addEventListener("resize",this.Resize,!1):window.attachEvent?attachEvent("onresize",this.Resize):(this.onresize=window.onresize,window.onresize=this.Resize);a.signal.Post(["math zoomed",n]);return k(d)},Position:function(a,d){var b=this.Resize(),c=b.y,g=d.mW,f=d.Y;a.style.left=Math.max(-g-Math.floor((a.offsetWidth-g)/2),10-b.x)+"px";a.style.top=Math.max(f,10-c)+"px";n.msiePositionBug||n.SetWH()},Resize:function(a){if(n.onresize)n.onresize(a);var d=document.getElementById("MathJax_ZoomFrame");a=document.getElementById("MathJax_ZoomOverlay");for(var b=n.getXY(d),d=d.parentNode,c=n.getOverflow(d);d.parentNode&&d!==document.body&&"visible"===c;)d=d.parentNode,c=n.getOverflow(d);"visible"!==c&&(a.scroll_parent=d,c=n.getXY(d),b.x-=c.x,b.y-=c.y,c=n.getBorder(d),b.x-=c.x,b.y-=c.y);a.style.left=-b.x+"px";a.style.top=-b.y+"px";n.msiePositionBug?setTimeout(n.SetWH,0):n.SetWH();return b},SetWH:function(){var a=document.getElementById("MathJax_ZoomOverlay");a.style.width=a.style.height="1px";var d=a.scroll_parent||document.documentElement||document.body;a.style.width=d.scrollWidth+"px";a.style.height=Math.max(d.clientHeight,d.scrollHeight)+"px"},getOverflow:window.getComputedStyle?function(a){return getComputedStyle(a).overflow}:function(a){return(a.currentStyle||{overflow:"visible"}).overflow},getBorder:function(a){var d={thin:1,medium:2,thick:3},b=window.getComputedStyle?getComputedStyle(a):a.currentStyle||{borderLeftWidth:0,borderTopWidth:0};a=b.borderLeftWidth;b=b.borderTopWidth;a=d[a]?d[a]:parseInt(a);b=d[b]?d[b]:parseInt(b);return{x:a,y:b}},getXY:function(a){var d=0,b=0,c;for(c=a;c.offsetParent;)d+=c.offsetLeft,c=c.offsetParent;n.operaPositionBug&&(a.style.border="1px solid");for(c=a;c.offsetParent;)b+=c.offsetTop,c=c.offsetParent;n.operaPositionBug&&(a.style.border="");return{x:d,y:b}},Remove:function(d){var b=document.getElementById("MathJax_ZoomFrame");if(b){var g=MathJax.OutputJax[b.previousSibling.jaxID].getJaxFromMath(b.previousSibling);a.signal.Post(["math unzoomed",g]);b.parentNode.removeChild(b);(b=document.getElementById("MathJax_ZoomTracker"))&&b.parentNode.removeChild(b);n.operaRefreshBug&&(b=c.addElement(document.body,"div",{style:{position:"fixed",left:0,top:0,width:"100%",height:"100%",backgroundColor:"white",opacity:0},id:"MathJax_OperaDiv"}),document.body.removeChild(b));window.removeEventListener?removeEventListener("resize",n.Resize,!1):window.detachEvent?detachEvent("onresize",n.Resize):(window.onresize=n.onresize,delete n.onresize)}return k(d)}};a.Browser.Select({MSIE:function(a){var d=document.documentMode||0,b=9<=d;n.msiePositionBug=!b;n.msieSizeBug=a.versionAtLeast("7.0")&&(!document.documentMode||7===d||8===d);n.msieZIndexBug=7>=d;n.msieInlineBlockAlignBug=7>=d;n.msieTrapEventBug=!window.addEventListener;"BackCompat"===document.compatMode&&(n.scrollSize=52);b&&delete f.styles["#MathJax_Zoom"].filter},Opera:function(a){n.operaPositionBug=!0;n.operaRefreshBug=!0}});n.topImg=n.msieInlineBlockAlignBug?c.Element("img",{style:{width:0,height:0,position:"relative"},src:"about:blank"}):c.Element("span",{style:{width:0,height:0,display:"inline-block"}});if(n.operaPositionBug||n.msieTopBug)n.topImg.style.border="1px solid";MathJax.Callback.Queue(["StartupHook",MathJax.Hub.Register,"Begin Styles",{}],["Styles",b,f.styles],["Post",a.Startup.signal,"MathZoom Ready"],["loadComplete",b,"[MathJax]/extensions/MathZoom.js"])})(MathJax.Hub,MathJax.HTML,MathJax.Ajax,MathJax.OutputJax["HTML-CSS"],MathJax.OutputJax.NativeMML);(function(a,c,b,d,g){var f=MathJax.Callback.Signal("menu");MathJax.Extension.MathMenu={version:"2.2",signal:f};var k=function(a){return MathJax.Localization._.apply(MathJax.Localization,[["MathMenu",a]].concat([].slice.call(arguments,1)))},p=a.Browser.isPC,t=a.Browser.isMSIE,n=8<(document.documentMode||0),q=p?null:"5px",h=a.CombineConfig("MathMenu",{delay:150,closeImg:b.fileURL(g.imageDir+"/CloseX-31.png"),showRenderer:!0,showMathPlayer:!0,showFontMenu:!1,showContext:!1,showDiscoverable:!1,showLocale:!0,showLocaleURL:!1,windowSettings:{status:"no",toolbar:"no",locationbar:"no",menubar:"no",directories:"no",personalbar:"no",resizable:"yes",scrollbars:"yes",width:400,height:300,left:Math.round((screen.width-400)/2),top:Math.round((screen.height-300)/3)},styles:{"#MathJax_About":{position:"fixed",left:"50%",width:"auto","text-align":"center",border:"3px outset",padding:"1em 2em","background-color":"#DDDDDD",color:"black",cursor:"default","font-family":"message-box","font-size":"120%","font-style":"normal","text-indent":0,"text-transform":"none","line-height":"normal","letter-spacing":"normal","word-spacing":"normal","word-wrap":"normal","white-space":"nowrap","float":"none","z-index":201,"border-radius":"15px","-webkit-border-radius":"15px","-moz-border-radius":"15px","-khtml-border-radius":"15px","box-shadow":"0px 10px 20px #808080","-webkit-box-shadow":"0px 10px 20px #808080","-moz-box-shadow":"0px 10px 20px #808080","-khtml-box-shadow":"0px 10px 20px #808080",filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX\x3d2, OffY\x3d2, Color\x3d'gray', Positive\x3d'true')"},".MathJax_Menu":{position:"absolute","background-color":"white",color:"black",width:"auto",padding:p?"2px":"5px 0px",border:"1px solid #CCCCCC",margin:0,cursor:"default",font:"menu","text-align":"left","text-indent":0,"text-transform":"none","line-height":"normal","letter-spacing":"normal","word-spacing":"normal","word-wrap":"normal","white-space":"nowrap","float":"none","z-index":201,"border-radius":q,"-webkit-border-radius":q,"-moz-border-radius":q,"-khtml-border-radius":q,"box-shadow":"0px 10px 20px #808080","-webkit-box-shadow":"0px 10px 20px #808080","-moz-box-shadow":"0px 10px 20px #808080","-khtml-box-shadow":"0px 10px 20px #808080",filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX\x3d2, OffY\x3d2, Color\x3d'gray', Positive\x3d'true')"},".MathJax_MenuItem":{padding:p?"2px 2em":"1px 2em",background:"transparent"},".MathJax_MenuArrow":{position:"absolute",right:".5em",color:"#666666","font-family":t?"'Arial unicode MS'":null},".MathJax_MenuActive .MathJax_MenuArrow":{color:"white"},".MathJax_MenuCheck":{position:"absolute",left:".7em","font-family":t?"'Arial unicode MS'":null},".MathJax_MenuRadioCheck":{position:"absolute",left:p?"1em":".7em"},".MathJax_MenuLabel":{padding:p?"2px 2em 4px 1.33em":"1px 2em 3px 1.33em","font-style":"italic"},".MathJax_MenuRule":{"border-top":p?"1px solid #CCCCCC":"1px solid #DDDDDD",margin:p?"4px 1px 0px":"4px 3px"},".MathJax_MenuDisabled":{color:"GrayText"},".MathJax_MenuActive":{"background-color":p?"Highlight":"#606872",color:p?"HighlightText":"white"},".MathJax_Menu_Close":{position:"absolute",width:"31px",height:"31px",top:"-15px",left:"-15px"}}}),r,v;a.Register.StartupHook("MathEvents Ready",function(){r=MathJax.Extension.MathEvents.Event.False;v=MathJax.Extension.MathEvents.Hover});var e=MathJax.Menu=MathJax.Object.Subclass({version:"2.2",items:[],posted:!1,title:null,margin:5,Init:function(a){this.items=[].slice.call(arguments,0)},With:function(d){d&&a.Insert(this,d);return this},Post:function(a,d){a||(a=window.event);var b=document.getElementById("MathJax_MenuFrame");b||(b=e.Background(this),delete l.lastItem,delete l.lastMenu,delete e.skipUp,f.Post(["post",e.jax]));var g=c.addElement(b,"div",{onmouseup:e.Mouseup,ondblclick:r,ondragstart:r,onselectstart:r,oncontextmenu:r,menuItem:this,className:"MathJax_Menu"});MathJax.Localization.setCSS(g);for(var k=0,n=this.items.length;k<n;k++)this.items[k].Create(g);e.isMobile&&c.addElement(g,"span",{className:"MathJax_Menu_Close",menu:d,ontouchstart:e.Close,ontouchend:r,onmousedown:e.Close,onmouseup:r},[["img",{src:h.closeImg,style:{width:"100%",height:"100%"}}]]);this.posted=!0;g.style.width=g.offsetWidth+2+"px";k=a.pageX;n=a.pageY;k||n||(k=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,n=a.clientY+document.body.scrollTop+document.documentElement.scrollTop);if(d){for(var q="left",t=d.offsetWidth,k=e.isMobile?30:t-2,n=0;d&&d!==b;)k+=d.offsetLeft,n+=d.offsetTop,d=d.parentNode;k+g.offsetWidth>document.body.offsetWidth-this.margin&&!e.isMobile&&(q="right",k=Math.max(this.margin,k-t-g.offsetWidth+6));p||(g.style["borderRadiusTop"+q]=0,g.style["WebkitBorderRadiusTop"+q]=0,g.style["MozBorderRadiusTop"+q]=0,g.style["KhtmlBorderRadiusTop"+q]=0)}else k+g.offsetWidth>document.body.offsetWidth-this.margin&&(k=document.body.offsetWidth-g.offsetWidth-this.margin),e.isMobile&&(k=Math.max(5,k-Math.floor(g.offsetWidth/2)),n-=20),e.skipUp=a.isContextMenu;g.style.left=k+"px";g.style.top=n+"px";document.selection&&document.selection.empty&&document.selection.empty();return r(a)},Remove:function(a,d){f.Post(["unpost",e.jax]);var b=document.getElementById("MathJax_MenuFrame");b&&(b.parentNode.removeChild(b),this.msieFixedPositionBug&&detachEvent("onresize",e.Resize));e.jax.hover&&(delete e.jax.hover.nofade,v.UnHover(e.jax));return r(a)},Find:function(a){return this.FindN(1,a,[].slice.call(arguments,1))},FindId:function(a){return this.FindN(0,a,[].slice.call(arguments,1))},FindN:function(a,d,b){for(var c=0,g=this.items.length;c<g;c++)if(this.items[c].name[a]===d){if(b.length){if(!this.items[c].menu)break;return this.items[c].menu.FindN(a,b[0],b.slice(1))}return this.items[c]}return null},IndexOf:function(a){return this.IndexOfN(1,a)},IndexOfId:function(a){return this.IndexOfN(0,a)},IndexOfN:function(a,d){for(var b=0,c=this.items.length;b<c;b++)if(this.items[b].name[a]===d)return b;return null}},{config:h,div:null,Close:function(a){return e.Event(a,this.menu||this.parentNode,this.menu?"Touchend":"Remove")},Remove:function(a){return e.Event(a,this,"Remove")},Mouseover:function(a){return e.Event(a,this,"Mouseover")},Mouseout:function(a){return e.Event(a,this,"Mouseout")},Mousedown:function(a){return e.Event(a,this,"Mousedown")},Mouseup:function(a){return e.Event(a,this,"Mouseup")},Touchstart:function(a){return e.Event(a,this,"Touchstart")},Touchend:function(a){return e.Event(a,this,"Touchend")},Event:function(a,d,b,c){if(e.skipMouseover&&"Mouseover"===b&&!c)return r(a);if(e.skipUp){if(b.match(/Mouseup|Touchend/))return delete e.skipUp,r(a);("Touchstart"===b||"Mousedown"===b&&!e.skipMousedown)&&delete e.skipUp}a||(a=window.event);return(c=d.menuItem)&&c[b]?c[b](a,d):null},BGSTYLE:{position:"absolute",left:0,top:0,"z-index":200,width:"100%",height:"100%",border:0,padding:0,margin:0},Background:function(a){a=c.addElement(document.body,"div",{style:this.BGSTYLE,id:"MathJax_MenuFrame"},[["div",{style:this.BGSTYLE,menuItem:a,onmousedown:this.Remove}]]);var d=a.firstChild;e.msieBackgroundBug&&(d.style.backgroundColor="white",d.style.filter="alpha(opacity\x3d0)");e.msieFixedPositionBug?(a.width=a.height=0,this.Resize(),attachEvent("onresize",this.Resize)):d.style.position="fixed";return a},Resize:function(){setTimeout(e.SetWH,0)},SetWH:function(){var a=document.getElementById("MathJax_MenuFrame");a&&(a=a.firstChild,a.style.width=a.style.height="1px",a.style.width=document.body.scrollWidth+"px",a.style.height=document.body.scrollHeight+"px")},saveCookie:function(){c.Cookie.Set("menu",this.cookie)},getCookie:function(){this.cookie=c.Cookie.Get("menu")},getImages:function(){e.isMobile&&((new Image).src=h.closeImg)}}),l=e.ITEM=MathJax.Object.Subclass({name:"",Create:function(a){if(!this.hidden){var d={onmouseover:e.Mouseover,onmouseout:e.Mouseout,onmouseup:e.Mouseup,onmousedown:e.Mousedown,ondragstart:r,onselectstart:r,onselectend:r,ontouchstart:e.Touchstart,ontouchend:e.Touchend,className:"MathJax_MenuItem",menuItem:this};this.disabled&&(d.className+=" MathJax_MenuDisabled");c.addElement(a,"div",d,this.Label(d,a))}},Name:function(){return k(this.name[0],this.name[1])},Mouseover:function(a,d){this.disabled||this.Activate(d);if(!this.menu||!this.menu.posted){for(var b=document.getElementById("MathJax_MenuFrame").childNodes,c=d.parentNode.childNodes,g=0,f=c.length;g<f;g++){var k=c[g].menuItem;k&&k.menu&&k.menu.posted&&k.Deactivate(c[g])}for(f=b.length-1;0<=f&&d.parentNode.menuItem!==b[f].menuItem;)b[f].menuItem.posted=!1,b[f].parentNode.removeChild(b[f]),f--;this.Timer&&!e.isMobile&&this.Timer(a,d)}},Mouseout:function(a,d){this.menu&&this.menu.posted||this.Deactivate(d);this.timer&&(clearTimeout(this.timer),delete this.timer)},Mouseup:function(a,d){return this.Remove(a,d)},Touchstart:function(a,d){return this.TouchEvent(a,d,"Mousedown")},Touchend:function(a,d){return this.TouchEvent(a,d,"Mouseup")},TouchEvent:function(a,d,b){this!==l.lastItem&&(l.lastMenu&&e.Event(a,l.lastMenu,"Mouseout"),e.Event(a,d,"Mouseover",!0),l.lastItem=this,l.lastMenu=d);if(this.nativeTouch)return null;e.Event(a,d,b);return!1},Remove:function(a,d){d=d.parentNode.menuItem;return d.Remove(a,d)},Activate:function(a){this.Deactivate(a);a.className+=" MathJax_MenuActive"},Deactivate:function(a){a.className=a.className.replace(/ MathJax_MenuActive/,"")},With:function(d){d&&a.Insert(this,d);return this}});e.ITEM.COMMAND=e.ITEM.Subclass({action:function(){},Init:function(a,d,b){a instanceof Array||(a=[a,a]);this.name=a;this.action=d;this.With(b)},Label:function(a,d){return[this.Name()]},Mouseup:function(a,d){this.disabled||(this.Remove(a,d),f.Post(["command",this]),this.action.call(this,a));return r(a)}});e.ITEM.SUBMENU=e.ITEM.Subclass({menu:null,marker:p&&!a.Browser.isSafari?"\u25b6":"\u25b8",Init:function(a,d){a instanceof Array||(a=[a,a]);this.name=a;var b=1;d instanceof e.ITEM||(this.With(d),b++);this.menu=e.apply(e,[].slice.call(arguments,b))},Label:function(a,d){this.menu.posted=!1;return[this.Name()+" ",["span",{className:"MathJax_MenuArrow"},[this.marker]]]},Timer:function(a,b){this.timer&&clearTimeout(this.timer);a={clientX:a.clientX,clientY:a.clientY};this.timer=setTimeout(d(["Mouseup",this,a,b]),h.delay)},Touchend:function(a,d){var b=this.menu.posted,c=this.SUPER(arguments).Touchend.apply(this,arguments);b&&(this.Deactivate(d),delete l.lastItem,delete l.lastMenu);return c},Mouseup:function(a,d){if(!this.disabled)if(this.menu.posted)for(var b=document.getElementById("MathJax_MenuFrame").childNodes,c=b.length-1;0<=c;){var g=b[c];g.menuItem.posted=!1;g.parentNode.removeChild(g);if(g.menuItem===this.menu)break;c--}else this.timer&&(clearTimeout(this.timer),delete this.timer),this.menu.Post(a,d);return r(a)}});e.ITEM.RADIO=e.ITEM.Subclass({variable:null,marker:p?"\u25cf":"\u2713",Init:function(a,d,b){a instanceof Array||(a=[a,a]);this.name=a;this.variable=d;this.With(b);null==this.value&&(this.value=this.name[0])},Label:function(a,d){var b={className:"MathJax_MenuRadioCheck"};h.settings[this.variable]!==this.value&&(b={style:{display:"none"}});return[["span",b,[this.marker]]," "+this.Name()]},Mouseup:function(a,d){if(!this.disabled){for(var b=d.parentNode.childNodes,c=0,g=b.length;c<g;c++){var k=b[c].menuItem;k&&k.variable===this.variable&&(b[c].firstChild.style.display="none")}d.firstChild.display="";h.settings[this.variable]=this.value;e.cookie[this.variable]=h.settings[this.variable];e.saveCookie();f.Post(["radio button",this])}this.Remove(a,d);this.action&&!this.disabled&&this.action.call(e,this);return r(a)}});e.ITEM.CHECKBOX=e.ITEM.Subclass({variable:null,marker:"\u2713",Init:function(a,d,b){a instanceof Array||(a=[a,a]);this.name=a;this.variable=d;this.With(b)},Label:function(a,d){var b={className:"MathJax_MenuCheck"};h.settings[this.variable]||(b={style:{display:"none"}});return[["span",b,[this.marker]]," "+this.Name()]},Mouseup:function(a,d){this.disabled||(d.firstChild.display=h.settings[this.variable]?"none":"",h.settings[this.variable]=!h.settings[this.variable],e.cookie[this.variable]=h.settings[this.variable],e.saveCookie(),f.Post(["checkbox",this]));this.Remove(a,d);this.action&&!this.disabled&&this.action.call(e,this);return r(a)}});e.ITEM.LABEL=e.ITEM.Subclass({Init:function(a,d){a instanceof Array||(a=[a,a]);this.name=a;this.With(d)},Label:function(a,d){delete a.onmouseover;delete a.onmouseout;delete a.onmousedown;a.className+=" MathJax_MenuLabel";return[this.Name()]}});e.ITEM.RULE=e.ITEM.Subclass({Label:function(a,d){delete a.onmouseover;delete a.onmouseout;delete a.onmousedown;a.className+=" MathJax_MenuRule";return null}});e.About=function(){var d=g["HTML-CSS"]||{},b=(d.imgFonts?"image":d.fontInUse?(d.webFonts?"web":"local")+" "+d.fontInUse:g.SVG?"web SVG":"generic")+" fonts",d=!d.webFonts||d.imgFonts?null:d.allowWebFonts.replace(/otf/,"woff or otf")+" fonts",f=["MathJax.js v"+MathJax.fileversion,["br"]];f.push(["div",{style:{"border-top":"groove 2px",margin:".25em 0"}}]);e.About.GetJax(f,MathJax.InputJax,["InputJax","%1 Input Jax v%2"]);e.About.GetJax(f,MathJax.OutputJax,["OutputJax","%1 Output Jax v%2"]);e.About.GetJax(f,MathJax.ElementJax,["ElementJax","%1 Element Jax v%2"]);f.push(["div",{style:{"border-top":"groove 2px",margin:".25em 0"}}]);e.About.GetJax(f,MathJax.Extension,["Extension","%1 Extension v%2"],!0);f.push(["div",{style:{"border-top":"groove 2px",margin:".25em 0"}}],["center",{},[a.Browser+" v"+a.Browser.version+(d?" \u2014 "+k(d.replace(/ /g,""),d):"")]]);e.About.div=e.Background(e.About);b=c.addElement(e.About.div,"div",{id:"MathJax_About"},[["b",{style:{fontSize:"120%"}},["MathJax"]]," v"+MathJax.version,["br"],k(b.replace(/ /g,""),"using "+b),["br"],["br"],["span",{style:{display:"inline-block","text-align":"left","font-size":"80%","max-height":"20em",overflow:"auto","background-color":"#E4E4E4",padding:".4em .6em",border:"1px inset"}},f],["br"],["br"],["a",{href:"http://www.mathjax.org/"},["www.mathjax.org"]],["img",{src:h.closeImg,style:{width:"21px",height:"21px",position:"absolute",top:".2em",right:".2em"},onclick:e.About.Remove}]]);MathJax.Localization.setCSS(b);d=document.documentElement||{};d=window.innerHeight||d.clientHeight||d.scrollHeight||0;e.prototype.msieAboutBug?(b.style.width="20em",b.style.position="absolute",b.style.left=Math.floor((document.documentElement.scrollWidth-b.offsetWidth)/2)+"px",b.style.top=Math.floor((d-b.offsetHeight)/3)+document.body.scrollTop+"px"):(b.style.marginLeft=Math.floor(-b.offsetWidth/2)+"px",b.style.top=Math.floor((d-b.offsetHeight)/3)+"px")};e.About.Remove=function(a){e.About.div&&(document.body.removeChild(e.About.div),delete e.About.div)};e.About.GetJax=function(a,d,b,c){var g=[],f;for(f in d)d.hasOwnProperty(f)&&d[f]&&(c&&d[f].version||d[f].isa&&d[f].isa(d))&&g.push(k(b[0],b[1],d[f].id||f,d[f].version));g.sort();d=0;for(b=g.length;d<b;d++)a.push(g[d],["br"]);return a};e.Help=function(){b.Require("[MathJax]/extensions/HelpDialog.js",function(){MathJax.Extension.Help.Dialog()})};e.ShowSource=function(a){a||(a=window.event);var c={screenX:a.screenX,screenY:a.screenY};if(e.jax)if("MathML"===this.format){var g=MathJax.ElementJax.mml;if(g&&"undefined"!==typeof g.mbase.prototype.toMathML)try{e.ShowSource.Text(e.jax.root.toMathML(),a)}catch(f){if(!f.restart)throw f;d.After([this,e.ShowSource,c],f.restart)}else b.loadingToMathML||(b.loadingToMathML=!0,e.ShowSource.Window(a),d.Queue(b.Require("[MathJax]/extensions/toMathML.js"),function(){delete b.loadingToMathML;g.mbase.prototype.toMathML||(g.mbase.prototype.toMathML=function(){})},[this,e.ShowSource,c]))}else"Error"===this.format?e.ShowSource.Text(e.jax.errorText,a):null==e.jax.originalText?alert(k("NoOriginalForm","No original form available")):e.ShowSource.Text(e.jax.originalText,a)};e.ShowSource.Window=function(a){if(!e.ShowSource.w){a=[];var d=h.windowSettings,b;for(b in d)d.hasOwnProperty(b)&&a.push(b+"\x3d"+d[b]);e.ShowSource.w=window.open("","_blank",a.join(","))}return e.ShowSource.w};e.ShowSource.Text=function(a,d){var b=e.ShowSource.Window(d);delete e.ShowSource.w;a=a.replace(/^\s*/,"").replace(/\s*$/,"");a=a.replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;");var c=k("EqSource","MathJax Equation Source");if(e.isMobile)b.document.open(),b.document.write("\x3chtml\x3e\x3chead\x3e\x3cmeta name\x3d'viewport' content\x3d'width\x3ddevice-width, initial-scale\x3d1.0' /\x3e\x3ctitle\x3e"+c+"\x3c/title\x3e\x3c/head\x3e\x3cbody style\x3d'font-size:85%'\x3e"),b.document.write("\x3cpre\x3e"+a+"\x3c/pre\x3e"),b.document.write("\x3chr\x3e\x3cinput type\x3d'button' value\x3d'"+k("Close","Close")+"' onclick\x3d'window.close()' /\x3e"),b.document.write("\x3c/body\x3e\x3c/html\x3e"),b.document.close();else{b.document.open();b.document.write("\x3chtml\x3e\x3chead\x3e\x3ctitle\x3e"+c+"\x3c/title\x3e\x3c/head\x3e\x3cbody style\x3d'font-size:85%'\x3e");b.document.write("\x3ctable\x3e\x3ctr\x3e\x3ctd\x3e\x3cpre\x3e"+a+"\x3c/pre\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e");b.document.write("\x3c/body\x3e\x3c/html\x3e");b.document.close();var g=b.document.body.firstChild;setTimeout(function(){var a=b.outerHeight-b.innerHeight||30,c=b.outerWidth-b.innerWidth||30,c=Math.max(100,Math.min(Math.floor(.5*screen.width),g.offsetWidth+c+25)),a=Math.max(40,Math.min(Math.floor(.5*screen.height),g.offsetHeight+a+25));b.resizeTo(c,a);d&&null!=d.screenX&&(c=Math.max(0,Math.min(d.screenX-Math.floor(c/2),screen.width-c-20)),a=Math.max(0,Math.min(d.screenY-Math.floor(a/2),screen.height-a-20)),b.moveTo(c,a))},50)}};e.Scale=function(){var d=g["HTML-CSS"],b=g.NativeMML,c=g.SVG,f=(d||b||c||{config:{scale:100}}).config.scale,h=prompt(k("ScaleMath","Scale all mathematics (compared to surrounding text) by"),f+"%");h&&(h.match(/^\s*\d+(\.\d*)?\s*%?\s*$/)?(h=parseFloat(h))?h!==f&&(d&&(d.config.scale=h),b&&(b.config.scale=h),c&&(c.config.scale=h),e.cookie.scale=h,e.saveCookie(),a.Reprocess()):alert(k("NonZeroScale","The scale should not be zero")):alert(k("PercentScale","The scale should be a percentage (e.g., 120%%)")))};e.Zoom=function(){MathJax.Extension.MathZoom||b.Require("[MathJax]/extensions/MathZoom.js")};e.Renderer=function(){var d=a.outputJax["jax/mml"];if(d[0]!==h.settings.renderer){var b=a.Browser,g,f=e.Renderer.Messages,l;switch(h.settings.renderer){case "NativeMML":h.settings.warnedMML||(b.isChrome&&"24."!==b.version.substr(0,3)?g=f.MML.WebKit:b.isSafari&&!b.versionAtLeast("5.0")?g=f.MML.WebKit:b.isMSIE?b.hasMathPlayer||(g=f.MML.MSIE):g=f.MML[b],l="warnedMML");break;case "SVG":h.settings.warnedSVG||!b.isMSIE||n||(g=f.SVG.MSIE)}if(g){g=k(g[0],g[1]);g=g+"\n\n"+k("SwitchAnyway","Switch the renderer anyway?\n\n(Press OK to switch, CANCEL to continue with the current renderer)");e.cookie.renderer=d[0].id;e.saveCookie();if(!confirm(g)){e.cookie.renderer=h.settings.renderer=c.Cookie.Get("menu").renderer;e.saveCookie();return}l&&(e.cookie.warned=h.settings.warned=!0);e.cookie.renderer=h.settings.renderer;e.saveCookie()}a.Queue(["setRenderer",a,h.settings.renderer,"jax/mml"],["Rerender",a])}};e.Renderer.Messages={MML:{WebKit:["WebkitNativeMMLWarning","Your browser doesn't seem to support MathML natively, so switching to MathML output may cause the mathematics on the page to become unreadable."],MSIE:["MSIENativeMMLWarning","Internet Explorer requires the MathPlayer plugin in order to process MathML output."],Opera:["OperaNativeMMLWarning","Opera's support for MathML is limited, so switching to MathML output may cause some expressions to render poorly."],Safari:["SafariNativeMMLWarning","Your browser's native MathML does not implement all the features used by MathJax, so some expressions may not render properly."],Firefox:["FirefoxNativeMMLWarning","Your browser's native MathML does not implement all the features used by MathJax, so some expressions may not render properly."]},SVG:{MSIE:["MSIESVGWarning","SVG is not implemented in Internet Explorer prior to IE9 or when it is emulating IE8 or below. Switching to SVG output will cause the mathematics to not display properly."]}};e.Font=function(){g["HTML-CSS"]&&document.location.reload()};e.Locale=function(){MathJax.Localization.setLocale(h.settings.locale);MathJax.Hub.Queue(["Reprocess",MathJax.Hub])};e.LoadLocale=function(){var a=prompt(k("LoadURL","Load translation data from this URL:"));a&&(a.match(/\.js$/)||alert(k("BadURL","The URL should be for a javascript file that defines MathJax translation data. Javascript file names should end with '.js'")),b.Require(a,function(d){d!=b.STATUS.OK&&alert(k("BadData","Failed to load translation data from %1",a))}))};e.MPEvents=function(a){var d=h.settings.discoverable,b=e.MPEvents.Messages;n?!d&&"Menu Events"===a.name[1]&&h.settings.mpContext&&alert(k.apply(k,b.IE9warning)):h.settings.mpMouse&&!confirm(k.apply(k,b.IE8warning))?(delete e.cookie.mpContext,delete h.settings.mpContext,delete e.cookie.mpMouse,delete h.settings.mpMouse,e.saveCookie()):(h.settings.mpContext=h.settings.mpMouse,e.cookie.mpContext=e.cookie.mpMouse=h.settings.mpMouse,e.saveCookie(),MathJax.Hub.Queue(["Rerender",MathJax.Hub]))};e.MPEvents.Messages={IE8warning:["IE8warning","This will disable the MathJax menu and zoom features, but you can Alt-Click on an expression to obtain the MathJax menu instead.\n\nReally change the MathPlayer settings?"],IE9warning:["IE9warning","The MathJax contextual menu will be disabled, but you can Alt-Click on an expression to obtain the MathJax menu instead."]};a.Browser.Select({MSIE:function(a){var d="BackCompat"===document.compatMode;a=a.versionAtLeast("8.0")&&7<document.documentMode;e.Augment({margin:20,msieBackgroundBug:9>document.documentMode,msieFixedPositionBug:d||!a,msieAboutBug:d});n&&(delete h.styles["#MathJax_About"].filter,delete h.styles[".MathJax_Menu"].filter)},Firefox:function(a){e.skipMouseover=a.isMobile&&a.versionAtLeast("6.0");e.skipMousedown=a.isMobile}});e.isMobile=a.Browser.isMobile;e.noContextMenu=a.Browser.noContextMenu;e.CreateLocaleMenu=function(){if(e.menu){var a=e.menu.Find("Language").menu,d=a.items,b=[],c=MathJax.Localization.strings,g;for(g in c)c.hasOwnProperty(g)&&b.push(g);b=b.sort();a.items=[];g=0;for(var f=b.length;g<f;g++){var k=c[b[g]].menuTitle,k=k?k+(" ("+b[g]+")"):b[g];a.items.push(l.RADIO([b[g],k],"locale",{action:e.Locale}))}a.items.push(d[d.length-2],d[d.length-1])}};a.Register.StartupHook("End Config",function(){h.settings=a.config.menuSettings;"undefined"!==typeof h.settings.showRenderer&&(h.showRenderer=h.settings.showRenderer);"undefined"!==typeof h.settings.showFontMenu&&(h.showFontMenu=h.settings.showFontMenu);"undefined"!==typeof h.settings.showContext&&(h.showContext=h.settings.showContext);e.getCookie();e.menu=e(l.SUBMENU(["Show","Show Math As"],l.COMMAND(["MathMLcode","MathML Code"],e.ShowSource,{nativeTouch:!0,format:"MathML"}),l.COMMAND(["Original","Original Form"],e.ShowSource,{nativeTouch:!0}),l.RULE(),l.CHECKBOX(["texHints","Show TeX hints in MathML"],"texHints")),l.RULE(),l.SUBMENU(["Settings","Math Settings"],l.SUBMENU(["ZoomTrigger","Zoom Trigger"],l.RADIO(["Hover","Hover"],"zoom",{action:e.Zoom}),l.RADIO(["Click","Click"],"zoom",{action:e.Zoom}),l.RADIO(["DoubleClick","Double-Click"],"zoom",{action:e.Zoom}),l.RADIO(["NoZoom","No Zoom"],"zoom",{value:"None"}),l.RULE(),l.LABEL(["TriggerRequires","Trigger Requires:"]),l.CHECKBOX(a.Browser.isMac?["Option","Option"]:["Alt","Alt"],"ALT"),l.CHECKBOX(["Command","Command"],"CMD",{hidden:!a.Browser.isMac}),l.CHECKBOX(["Control","Control"],"CTRL",{hidden:a.Browser.isMac}),l.CHECKBOX(["Shift","Shift"],"Shift")),l.SUBMENU(["ZoomFactor","Zoom Factor"],l.RADIO("125%","zscale"),l.RADIO("133%","zscale"),l.RADIO("150%","zscale"),l.RADIO("175%","zscale"),l.RADIO("200%","zscale"),l.RADIO("250%","zscale"),l.RADIO("300%","zscale"),l.RADIO("400%","zscale")),l.RULE(),l.SUBMENU(["Renderer","Math Renderer"],{hidden:!h.showRenderer},l.RADIO("HTML-CSS","renderer",{action:e.Renderer}),l.RADIO("MathML","renderer",{action:e.Renderer,value:"NativeMML"}),l.RADIO("SVG","renderer",{action:e.Renderer})),l.SUBMENU("MathPlayer",{hidden:!a.Browser.isMSIE||!h.showMathPlayer,disabled:!a.Browser.hasMathPlayer},l.LABEL(["MPHandles","Let MathPlayer Handle:"]),l.CHECKBOX(["MenuEvents","Menu Events"],"mpContext",{action:e.MPEvents,hidden:!n}),l.CHECKBOX(["MouseEvents","Mouse Events"],"mpMouse",{action:e.MPEvents,hidden:!n}),l.CHECKBOX(["MenuAndMouse","Mouse and Menu Events"],"mpMouse",{action:e.MPEvents,hidden:n})),l.SUBMENU(["FontPrefs","Font Preference"],{hidden:!h.showFontMenu},l.LABEL(["ForHTMLCSS","For HTML-CSS:"]),l.RADIO(["Auto","Auto"],"font",{action:e.Font}),l.RULE(),l.RADIO(["TeXLocal","TeX (local)"],"font",{action:e.Font}),l.RADIO(["TeXWeb","TeX (web)"],"font",{action:e.Font}),l.RADIO(["TeXImage","TeX (image)"],"font",{action:e.Font}),l.RULE(),l.RADIO(["STIXlocal","STIX (local)"],"font",{action:e.Font})),l.SUBMENU(["ContextMenu","Contextual Menu"],{hidden:!h.showContext},l.RADIO("MathJax","context"),l.RADIO(["Browser","Browser"],"context")),l.COMMAND(["Scale","Scale All Math ..."],e.Scale),l.RULE().With({hidden:!h.showDiscoverable,name:["","discover_rule"]}),l.CHECKBOX(["Discoverable","Highlight on Hover"],"discoverable",{hidden:!h.showDiscoverable})),l.SUBMENU(["Locale","Language"],{hidden:!h.showLocale},l.RADIO("en","locale",{action:e.Locale}),l.RULE().With({hidden:!h.showLocaleURL,name:["","localURL_rule"]}),l.COMMAND(["LoadLocale","Load from URL ..."],e.LoadLocale,{hidden:!h.showLocaleURL})),l.RULE(),l.COMMAND(["About","About MathJax"],e.About),l.COMMAND(["Help","MathJax Help"],e.Help));if(e.isMobile){var d=h.settings,b=e.menu.Find("Math Settings","Zoom Trigger").menu;b.items[0].disabled=b.items[1].disabled=!0;if("Hover"===d.zoom||"Click"==d.zoom)d.zoom="None";b.items=b.items.slice(0,4);navigator.appVersion.match(/[ (]Android[) ]/)&&e.ITEM.SUBMENU.Augment({marker:"\u00bb"})}e.CreateLocaleMenu()});e.showRenderer=function(a){e.cookie.showRenderer=h.showRenderer=a;e.saveCookie();e.menu.Find("Math Settings","Math Renderer").hidden=!a};e.showMathPlayer=function(a){e.cookie.showMathPlayer=h.showMathPlayer=a;e.saveCookie();e.menu.Find("Math Settings","MathPlayer").hidden=!a};e.showFontMenu=function(a){e.cookie.showFontMenu=h.showFontMenu=a;e.saveCookie();e.menu.Find("Math Settings","Font Preference").hidden=!a};e.showContext=function(a){e.cookie.showContext=h.showContext=a;e.saveCookie();e.menu.Find("Math Settings","Contextual Menu").hidden=!a};e.showDiscoverable=function(a){e.cookie.showDiscoverable=h.showDiscoverable=a;e.saveCookie();e.menu.Find("Math Settings","Highlight on Hover").hidden=!a;e.menu.Find("Math Settings","discover_rule").hidden=!a};e.showLocale=function(a){e.cookie.showLocale=h.showLocale=a;e.saveCookie();e.menu.Find("Language").hidden=!a};MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function(){MathJax.OutputJax["HTML-CSS"].config.imageFont||(e.menu.Find("Math Settings","Font Preference","TeX (image)").disabled=!0)});d.Queue(a.Register.StartupHook("End Config",{}),["getImages",e],["Styles",b,h.styles],["Post",a.Startup.signal,"MathMenu Ready"],["loadComplete",b,"[MathJax]/extensions/MathMenu.js"])})(MathJax.Hub,MathJax.HTML,MathJax.Ajax,MathJax.CallBack,MathJax.OutputJax);MathJax.ElementJax.mml=MathJax.ElementJax({mimeType:"jax/mml"},{id:"mml",version:"2.2",directory:MathJax.ElementJax.directory+"/mml",extensionDir:MathJax.ElementJax.extensionDir+"/mml",optableDir:MathJax.ElementJax.directory+"/mml/optable"});MathJax.ElementJax.mml.Augment({Init:function(){this.root=1===arguments.length&&"math"===arguments[0].type?arguments[0]:MathJax.ElementJax.mml.math.apply(this,arguments);if(this.root.attr&&this.root.attr.mode){this.root.display||"display"!==this.root.attr.mode||(this.root.display="block",this.root.attrNames.push("display"));delete this.root.attr.mode;for(var a=0,c=this.root.attrNames.length;a<c;a++)if("mode"===this.root.attrNames[a]){this.root.attrNames.splice(a,1);break}}}},{INHERIT:"_inherit_",AUTO:"_auto_",SIZE:{INFINITY:"infinity",SMALL:"small",NORMAL:"normal",BIG:"big"},COLOR:{TRANSPARENT:"transparent"},VARIANT:{NORMAL:"normal",BOLD:"bold",ITALIC:"italic",BOLDITALIC:"bold-italic",DOUBLESTRUCK:"double-struck",FRAKTUR:"fraktur",BOLDFRAKTUR:"bold-fraktur",SCRIPT:"script",BOLDSCRIPT:"bold-script",SANSSERIF:"sans-serif",BOLDSANSSERIF:"bold-sans-serif",SANSSERIFITALIC:"sans-serif-italic",SANSSERIFBOLDITALIC:"sans-serif-bold-italic",MONOSPACE:"monospace",INITIAL:"inital",TAILED:"tailed",LOOPED:"looped",STRETCHED:"stretched",CALIGRAPHIC:"-tex-caligraphic",OLDSTYLE:"-tex-oldstyle"},FORM:{PREFIX:"prefix",INFIX:"infix",POSTFIX:"postfix"},LINEBREAK:{AUTO:"auto",NEWLINE:"newline",NOBREAK:"nobreak",GOODBREAK:"goodbreak",BADBREAK:"badbreak"},LINEBREAKSTYLE:{BEFORE:"before",AFTER:"after",DUPLICATE:"duplicate",INFIXLINBREAKSTYLE:"infixlinebreakstyle"},INDENTALIGN:{LEFT:"left",CENTER:"center",RIGHT:"right",AUTO:"auto",ID:"id",INDENTALIGN:"indentalign"},INDENTSHIFT:{INDENTSHIFT:"indentshift"},LINETHICKNESS:{THIN:"thin",MEDIUM:"medium",THICK:"thick"},NOTATION:{LONGDIV:"longdiv",ACTUARIAL:"actuarial",RADICAL:"radical",BOX:"box",ROUNDEDBOX:"roundedbox",CIRCLE:"circle",LEFT:"left",RIGHT:"right",TOP:"top",BOTTOM:"bottom",UPDIAGONALSTRIKE:"updiagonalstrike",DOWNDIAGONALSTRIKE:"downdiagonalstrike",VERTICALSTRIKE:"verticalstrike",HORIZONTALSTRIKE:"horizontalstrike",MADRUWB:"madruwb"},ALIGN:{TOP:"top",BOTTOM:"bottom",CENTER:"center",BASELINE:"baseline",AXIS:"axis",LEFT:"left",RIGHT:"right"},LINES:{NONE:"none",SOLID:"solid",DASHED:"dashed"},SIDE:{LEFT:"left",RIGHT:"right",LEFTOVERLAP:"leftoverlap",RIGHTOVERLAP:"rightoverlap"},WIDTH:{AUTO:"auto",FIT:"fit"},ACTIONTYPE:{TOGGLE:"toggle",STATUSLINE:"statusline",TOOLTIP:"tooltip",INPUT:"input"},LENGTH:{VERYVERYTHINMATHSPACE:"veryverythinmathspace",VERYTHINMATHSPACE:"verythinmathspace",THINMATHSPACE:"thinmathspace",MEDIUMMATHSPACE:"mediummathspace",THICKMATHSPACE:"thickmathspace",VERYTHICKMATHSPACE:"verythickmathspace",VERYVERYTHICKMATHSPACE:"veryverythickmathspace",NEGATIVEVERYVERYTHINMATHSPACE:"negativeveryverythinmathspace",NEGATIVEVERYTHINMATHSPACE:"negativeverythinmathspace",NEGATIVETHINMATHSPACE:"negativethinmathspace",NEGATIVEMEDIUMMATHSPACE:"negativemediummathspace",NEGATIVETHICKMATHSPACE:"negativethickmathspace",NEGATIVEVERYTHICKMATHSPACE:"negativeverythickmathspace",NEGATIVEVERYVERYTHICKMATHSPACE:"negativeveryverythickmathspace"},OVERFLOW:{LINBREAK:"linebreak",SCROLL:"scroll",ELIDE:"elide",TRUNCATE:"truncate",SCALE:"scale"},UNIT:{EM:"em",EX:"ex",PX:"px",IN:"in",CM:"cm",MM:"mm",PT:"pt",PC:"pc"},TEXCLASS:{ORD:0,OP:1,BIN:2,REL:3,OPEN:4,CLOSE:5,PUNCT:6,INNER:7,VCENTER:8,NONE:-1},TEXCLASSNAMES:"ORD OP BIN REL OPEN CLOSE PUNCT INNER VCENTER".split(" "),copyAttributes:{fontfamily:!0,fontsize:!0,fontweight:!0,fontstyle:!0,color:!0,background:!0,id:!0,"class":!0,href:!0,style:!0},skipAttributes:{texClass:!0,useHeight:!0,texprimestyle:!0},copyAttributeNames:"fontfamily fontsize fontweight fontstyle color background id class href style".split(" ")});(function(a){a.mbase=MathJax.Object.Subclass({type:"base",isToken:!1,defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT},noInherit:{},noInheritAttribute:{texClass:!0},linebreakContainer:!1,Init:function(){this.data=[];!this.inferRow||1===arguments.length&&arguments[0].inferred||this.Append(a.mrow().With({inferred:!0,notParent:!0}));this.Append.apply(this,arguments)},With:function(a){for(var b in a)a.hasOwnProperty(b)&&(this[b]=a[b]);return this},Append:function(){if(this.inferRow&&this.data.length)this.data[0].Append.apply(this.data[0],arguments);else for(var a=0,b=arguments.length;a<b;a++)this.SetData(this.data.length,arguments[a])},SetData:function(d,b){null!=b&&(b instanceof a.mbase||(b=this.isToken?a.chars(b):a.mtext(b)),b.parent=this,b.setInherit(this.inheritFromMe?this:this.inherit));this.data[d]=b},Parent:function(){for(var a=this.parent;a&&a.notParent;)a=a.parent;return a},Get:function(d,b){if(null!=this[d])return this[d];if(this.attr&&null!=this.attr[d])return this.attr[d];var c=this.Parent();if(c&&null!=c["adjustChild_"+d])return c["adjustChild_"+d](this.childPosition(),b);for(var k=c=this.inherit;c;){k=c[d];null==k&&c.attr&&(k=c.attr[d]);if(null!=k&&c.noInheritAttribute&&!c.noInheritAttribute[d]){var p=c.noInherit[this.type];if(!p||!p[d])return k}k=c;c=c.inherit}if(!b){if(this.defaults[d]===a.AUTO)return this.autoDefault(d);if(this.defaults[d]!==a.INHERIT&&null!=this.defaults[d])return this.defaults[d];if(k)return k.defaults[d]}return null},hasValue:function(a){return null!=this.Get(a,!0)},getValues:function(){for(var a={},b=0,c=arguments.length;b<c;b++)a[arguments[b]]=this.Get(arguments[b]);return a},adjustChild_scriptlevel:function(a,b){return this.Get("scriptlevel",b)},adjustChild_displaystyle:function(a,b){return this.Get("displaystyle",b)},adjustChild_texprimestyle:function(a,b){return this.Get("texprimestyle",b)},childPosition:function(){for(var a=this,b=a.parent;b.notParent;)a=b,b=a.parent;for(var c=0,k=b.data.length;c<k;c++)if(b.data[c]===a)return c;return null},setInherit:function(a){if(a!==this.inherit&&null==this.inherit){this.inherit=a;for(var b=0,c=this.data.length;b<c;b++)this.data[b]&&this.data[b].setInherit&&this.data[b].setInherit(a)}},setTeXclass:function(a){this.getPrevClass(a);return"undefined"!==typeof this.texClass?this:a},getPrevClass:function(a){a&&(this.prevClass=a.Get("texClass"),this.prevLevel=a.Get("scriptlevel"))},updateTeXclass:function(a){a&&(this.prevClass=a.prevClass,delete a.prevClass,this.prevLevel=a.prevLevel,delete a.prevLevel,this.texClass=a.Get("texClass"))},texSpacing:function(){var b=null!=this.prevClass?this.prevClass:a.TEXCLASS.NONE,c=this.Get("texClass")||a.TEXCLASS.ORD;if(b===a.TEXCLASS.NONE||c===a.TEXCLASS.NONE)return"";b===a.TEXCLASS.VCENTER&&(b=a.TEXCLASS.ORD);c===a.TEXCLASS.VCENTER&&(c=a.TEXCLASS.ORD);b=this.TEXSPACE[b][c];return 0<this.prevLevel&&0<this.Get("scriptlevel")&&0<=b?"":this.TEXSPACELENGTH[Math.abs(b)]},TEXSPACELENGTH:["",a.LENGTH.THINMATHSPACE,a.LENGTH.MEDIUMMATHSPACE,a.LENGTH.THICKMATHSPACE],TEXSPACE:[[0,-1,2,3,0,0,0,1],[-1,-1,0,3,0,0,0,1],[2,2,0,0,2,0,0,2],[3,3,0,0,3,0,0,3],[0,0,0,0,0,0,0,0],[0,-1,2,3,0,0,0,1],[1,1,0,1,1,1,1,1],[1,-1,2,3,1,0,1,1]],autoDefault:function(a){return""},isSpacelike:function(){return!1},isEmbellished:function(){return!1},Core:function(){return this},CoreMO:function(){return this},hasNewline:function(){if(this.isEmbellished())return this.CoreMO().hasNewline();if(this.isToken||this.linebreakContainer)return!1;for(var a=0,b=this.data.length;a<b;a++)if(this.data[a]&&this.data[a].hasNewline())return!0;return!1},array:function(){return this.inferred?this.data:[this]},toString:function(){return this.type+"("+this.data.join(",")+")"}},{childrenSpacelike:function(){for(var a=0,b=this.data.length;a<b;a++)if(!this.data[a].isSpacelike())return!1;return!0},childEmbellished:function(){return this.data[0]&&this.data[0].isEmbellished()},childCore:function(){return this.data[0]},childCoreMO:function(){return this.data[0]?this.data[0].CoreMO():null},setChildTeXclass:function(a){this.data[0]&&(a=this.data[0].setTeXclass(a),this.updateTeXclass(this.data[0]));return a},setBaseTeXclasses:function(b){this.getPrevClass(b);this.texClass=null;this.data[0]?this.isEmbellished()||this.data[0].isa(a.mi)?(b=this.data[0].setTeXclass(b),this.updateTeXclass(this.Core())):(this.data[0].setTeXclass(),b=this):b=this;for(var c=1,f=this.data.length;c<f;c++)this.data[c]&&this.data[c].setTeXclass();return b},setSeparateTeXclasses:function(a){this.getPrevClass(a);a=0;for(var b=this.data.length;a<b;a++)this.data[a]&&this.data[a].setTeXclass();this.isEmbellished()&&this.updateTeXclass(this.Core());return this}});a.mi=a.mbase.Subclass({type:"mi",isToken:!0,texClass:a.TEXCLASS.ORD,defaults:{mathvariant:a.AUTO,mathsize:a.INHERIT,mathbackground:a.INHERIT,mathcolor:a.INHERIT},autoDefault:function(b){return"mathvariant"===b?(b=(this.data[0]||"").toString(),1===b.length||2===b.length&&55296<=b.charCodeAt(0)&&56320>b.charCodeAt(0)?a.VARIANT.ITALIC:a.VARIANT.NORMAL):""},setTeXclass:function(b){this.getPrevClass(b);b=this.data.join("");1<b.length&&b.match(/^[a-z][a-z0-9]*$/i)&&this.texClass===a.TEXCLASS.ORD&&(this.texClass=a.TEXCLASS.OP,this.autoOP=!0);return this}});a.mn=a.mbase.Subclass({type:"mn",isToken:!0,texClass:a.TEXCLASS.ORD,defaults:{mathvariant:a.INHERIT,mathsize:a.INHERIT,mathbackground:a.INHERIT,mathcolor:a.INHERIT}});a.mo=a.mbase.Subclass({type:"mo",isToken:!0,defaults:{mathvariant:a.INHERIT,mathsize:a.INHERIT,mathbackground:a.INHERIT,mathcolor:a.INHERIT,form:a.AUTO,fence:a.AUTO,separator:a.AUTO,lspace:a.AUTO,rspace:a.AUTO,stretchy:a.AUTO,symmetric:a.AUTO,maxsize:a.AUTO,minsize:a.AUTO,largeop:a.AUTO,movablelimits:a.AUTO,accent:a.AUTO,linebreak:a.LINEBREAK.AUTO,lineleading:a.INHERIT,linebreakstyle:a.AUTO,linebreakmultchar:a.INHERIT,indentalign:a.INHERIT,indentshift:a.INHERIT,indenttarget:a.INHERIT,indentalignfirst:a.INHERIT,indentshiftfirst:a.INHERIT,indentalignlast:a.INHERIT,indentshiftlast:a.INHERIT,texClass:a.AUTO},defaultDef:{form:a.FORM.INFIX,fence:!1,separator:!1,lspace:a.LENGTH.THICKMATHSPACE,rspace:a.LENGTH.THICKMATHSPACE,stretchy:!1,symmetric:!0,maxsize:a.SIZE.INFINITY,minsize:"0em",largeop:!1,movablelimits:!1,accent:!1,linebreak:a.LINEBREAK.AUTO,lineleading:"1ex",linebreakstyle:"before",indentalign:a.INDENTALIGN.AUTO,indentshift:"0",indenttarget:"",indentalignfirst:a.INDENTALIGN.INDENTALIGN,indentshiftfirst:a.INDENTSHIFT.INDENTSHIFT,indentalignlast:a.INDENTALIGN.INDENTALIGN,indentshiftlast:a.INDENTSHIFT.INDENTSHIFT,texClass:a.TEXCLASS.REL},SPACE_ATTR:{lspace:1,rspace:2,form:4},useMMLspacing:7,autoDefault:function(b,c){var f=this.def;if(!f){if("form"===b)return this.useMMLspacing&=~this.SPACE_ATTR.form,this.getForm();for(var k=this.data.join(""),p=[this.Get("form"),a.FORM.INFIX,a.FORM.POSTFIX,a.FORM.PREFIX],t=0,n=p.length;t<n;t++){var q=this.OPTABLE[p[t]][k];if(q){f=this.makeDef(q);break}}f||(f=this.CheckRange(k));!f&&c?f={}:(f||(f=MathJax.Hub.Insert({},this.defaultDef)),f.form=p[0],this.def=f)}this.useMMLspacing&=~(this.SPACE_ATTR[b]||0);return null!=f[b]?f[b]:c?"":this.defaultDef[b]},CheckRange:function(b){var c=b.charCodeAt(0);55296<=c&&56320>c&&(c=(c-55296<<10)+(b.charCodeAt(1)-56320)+65536);for(var f=0,k=this.RANGES.length;f<k&&this.RANGES[f][0]<=c;f++)if(c<=this.RANGES[f][1])return this.RANGES[f][3]&&(c=a.optableDir+"/"+this.RANGES[f][3]+".js",this.RANGES[f][3]=null,MathJax.Hub.RestartAfter(MathJax.Ajax.Require(c))),f=a.TEXCLASSNAMES[this.RANGES[f][2]],f=this.OPTABLE.infix[b]=a.mo.OPTYPES["BIN"===f?"BIN3":f],this.makeDef(f);return null},makeDef:function(b){null==b[2]&&(b[2]=this.defaultDef.texClass);b[3]||(b[3]={});var c=MathJax.Hub.Insert({},b[3]);c.lspace=this.SPACE[b[0]];c.rspace=this.SPACE[b[1]];c.texClass=b[2];c.texClass===a.TEXCLASS.REL&&(this.movablelimits||this.data.join("").match(/^[a-z]+$/i))&&(c.texClass=a.TEXCLASS.OP);return c},getForm:function(){for(var b=this,c=this.parent,f=this.Parent();f&&f.isEmbellished();)b=c,c=f.parent,f=f.Parent();if(c&&"mrow"===c.type&&1!==c.NonSpaceLength()){if(c.FirstNonSpace()===b)return a.FORM.PREFIX;if(c.LastNonSpace()===b)return a.FORM.POSTFIX}return a.FORM.INFIX},isEmbellished:function(){return!0},hasNewline:function(){return this.Get("linebreak")===a.LINEBREAK.NEWLINE},setTeXclass:function(b){this.getValues("lspace","rspace");if(this.useMMLspacing)return this.texClass=a.TEXCLASS.NONE,this;this.texClass=this.Get("texClass");return"\u2061"===this.data.join("")?(b&&(b.texClass=a.TEXCLASS.OP),this.texClass=this.prevClass=a.TEXCLASS.NONE,b):this.adjustTeXclass(b)},adjustTeXclass:function(b){if(this.texClass===a.TEXCLASS.NONE)return b;b?(!b.autoOP||this.texClass!==a.TEXCLASS.BIN&&this.texClass!==a.TEXCLASS.REL||(b.texClass=a.TEXCLASS.ORD),this.prevClass=b.texClass||a.TEXCLASS.ORD,this.prevLevel=b.Get("scriptlevel")):this.prevClass=a.TEXCLASS.NONE;this.texClass!==a.TEXCLASS.BIN||this.prevClass!==a.TEXCLASS.NONE&&this.prevClass!==a.TEXCLASS.BIN&&this.prevClass!==a.TEXCLASS.OP&&this.prevClass!==a.TEXCLASS.REL&&this.prevClass!==a.TEXCLASS.OPEN&&this.prevClass!==a.TEXCLASS.PUNCT?this.prevClass!==a.TEXCLASS.BIN||this.texClass!==a.TEXCLASS.REL&&this.texClass!==a.TEXCLASS.CLOSE&&this.texClass!==a.TEXCLASS.PUNCT||(b.texClass=this.prevClass=a.TEXCLASS.ORD):this.texClass=a.TEXCLASS.ORD;return this}});a.mtext=a.mbase.Subclass({type:"mtext",isToken:!0,isSpacelike:function(){return!0},texClass:a.TEXCLASS.ORD,defaults:{mathvariant:a.INHERIT,mathsize:a.INHERIT,mathbackground:a.INHERIT,mathcolor:a.INHERIT}});a.mspace=a.mbase.Subclass({type:"mspace",isToken:!0,isSpacelike:function(){return!0},defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,width:"0em",height:"0ex",depth:"0ex",linebreak:a.LINEBREAK.AUTO},hasDimAttr:function(){return this.hasValue("width")||this.hasValue("height")||this.hasValue("depth")},hasNewline:function(){return!this.hasDimAttr()&&this.Get("linebreak")===a.LINEBREAK.NEWLINE}});a.ms=a.mbase.Subclass({type:"ms",isToken:!0,texClass:a.TEXCLASS.ORD,defaults:{mathvariant:a.INHERIT,mathsize:a.INHERIT,mathbackground:a.INHERIT,mathcolor:a.INHERIT,lquote:'"',rquote:'"'}});a.mglyph=a.mbase.Subclass({type:"mglyph",isToken:!0,texClass:a.TEXCLASS.ORD,defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,alt:"",src:"",width:a.AUTO,height:a.AUTO,valign:"0em"}});a.mrow=a.mbase.Subclass({type:"mrow",isSpacelike:a.mbase.childrenSpacelike,inferred:!1,notParent:!1,isEmbellished:function(){for(var a=!1,b=0,c=this.data.length;b<c;b++)if(null!=this.data[b])if(this.data[b].isEmbellished()){if(a)return!1;a=!0;this.core=b}else if(!this.data[b].isSpacelike())return!1;return a},NonSpaceLength:function(){for(var a=0,b=0,c=this.data.length;b<c;b++)this.data[b]&&!this.data[b].isSpacelike()&&a++;return a},FirstNonSpace:function(){for(var a=0,b=this.data.length;a<b;a++)if(this.data[a]&&!this.data[a].isSpacelike())return this.data[a];return null},LastNonSpace:function(){for(var a=this.data.length-1;0<=a;a--)if(this.data[0]&&!this.data[a].isSpacelike())return this.data[a];return null},Core:function(){return this.isEmbellished()&&"undefined"!==typeof this.core?this.data[this.core]:this},CoreMO:function(){return this.isEmbellished()&&"undefined"!==typeof this.core?this.data[this.core].CoreMO():this},toString:function(){return this.inferred?"["+this.data.join(",")+"]":this.SUPER(arguments).toString.call(this)},setTeXclass:function(a){for(var b=0,c=this.data.length;b<c;b++)this.data[b]&&(a=this.data[b].setTeXclass(a));this.data[0]&&this.updateTeXclass(this.data[0]);return a}});a.mfrac=a.mbase.Subclass({type:"mfrac",num:0,den:1,linebreakContainer:!0,texClass:a.TEXCLASS.INNER,isEmbellished:a.mbase.childEmbellished,Core:a.mbase.childCore,CoreMO:a.mbase.childCoreMO,defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,linethickness:a.LINETHICKNESS.MEDIUM,numalign:a.ALIGN.CENTER,denomalign:a.ALIGN.CENTER,bevelled:!1},adjustChild_displaystyle:function(a){return!1},adjustChild_scriptlevel:function(a){a=this.Get("scriptlevel");(!this.Get("displaystyle")||0<a)&&a++;return a},adjustChild_texprimestyle:function(a){return a==this.den?!0:this.Get("texprimestyle")},setTeXclass:a.mbase.setSeparateTeXclasses});a.msqrt=a.mbase.Subclass({type:"msqrt",inferRow:!0,linebreakContainer:!0,texClass:a.TEXCLASS.ORD,setTeXclass:a.mbase.setSeparateTeXclasses,adjustChild_texprimestyle:function(a){return!0}});a.mroot=a.mbase.Subclass({type:"mroot",linebreakContainer:!0,texClass:a.TEXCLASS.ORD,adjustChild_displaystyle:function(a){return 1===a?!1:this.Get("displaystyle")},adjustChild_scriptlevel:function(a){var b=this.Get("scriptlevel");1===a&&(b+=2);return b},adjustChild_texprimestyle:function(a){return 0===a?!0:this.Get("texprimestyle")},setTeXclass:a.mbase.setSeparateTeXclasses});a.mstyle=a.mbase.Subclass({type:"mstyle",isSpacelike:a.mbase.childrenSpacelike,isEmbellished:a.mbase.childEmbellished,Core:a.mbase.childCore,CoreMO:a.mbase.childCoreMO,inferRow:!0,defaults:{scriptlevel:a.INHERIT,displaystyle:a.INHERIT,scriptsizemultiplier:Math.sqrt(.5),scriptminsize:"8pt",mathbackground:a.INHERIT,mathcolor:a.INHERIT,infixlinebreakstyle:a.LINEBREAKSTYLE.BEFORE,decimalseparator:"."},adjustChild_scriptlevel:function(a){a=this.scriptlevel;if(null==a)a=this.Get("scriptlevel");else if(String(a).match(/^ *[-+]/)){delete this.scriptlevel;var b=this.Get("scriptlevel");this.scriptlevel=a;a=b+parseInt(a)}return a},inheritFromMe:!0,noInherit:{mpadded:{width:!0,height:!0,depth:!0,lspace:!0,voffset:!0},mtable:{width:!0,height:!0,depth:!0,align:!0}},setTeXclass:a.mbase.setChildTeXclass});a.merror=a.mbase.Subclass({type:"merror",inferRow:!0,linebreakContainer:!0,texClass:a.TEXCLASS.ORD});a.mpadded=a.mbase.Subclass({type:"mpadded",inferRow:!0,isSpacelike:a.mbase.childrenSpacelike,isEmbellished:a.mbase.childEmbellished,Core:a.mbase.childCore,CoreMO:a.mbase.childCoreMO,defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,width:"",height:"",depth:"",lspace:0,voffset:0},setTeXclass:a.mbase.setChildTeXclass});a.mphantom=a.mbase.Subclass({type:"mphantom",texClass:a.TEXCLASS.ORD,inferRow:!0,isSpacelike:a.mbase.childrenSpacelike,isEmbellished:a.mbase.childEmbellished,Core:a.mbase.childCore,CoreMO:a.mbase.childCoreMO,setTeXclass:a.mbase.setChildTeXclass});a.mfenced=a.mbase.Subclass({type:"mfenced",defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,open:"(",close:")",separators:","},texClass:a.TEXCLASS.OPEN,setTeXclass:function(b){this.getPrevClass(b);var c=this.getValues("open","close","separators");c.open=c.open.replace(/[ \t\n\r]/g,"");c.close=c.close.replace(/[ \t\n\r]/g,"");c.separators=c.separators.replace(/[ \t\n\r]/g,"");""!==c.open&&(this.SetData("open",a.mo(c.open).With({stretchy:!0,texClass:a.TEXCLASS.OPEN})),b=this.data.open.setTeXclass(b));if(""!==c.separators)for(;c.separators.length<this.data.length;)c.separators+=c.separators.charAt(c.separators.length-1);this.data[0]&&(b=this.data[0].setTeXclass(b));for(var f=1,k=this.data.length;f<k;f++)this.data[f]&&(""!==c.separators&&(this.SetData("sep"+f,a.mo(c.separators.charAt(f-1))),b=this.data["sep"+f].setTeXclass(b)),b=this.data[f].setTeXclass(b));""!==c.close&&(this.SetData("close",a.mo(c.close).With({stretchy:!0,texClass:a.TEXCLASS.CLOSE})),b=this.data.close.setTeXclass(b));this.updateTeXclass(this.data.open);return b}});a.menclose=a.mbase.Subclass({type:"menclose",inferRow:!0,linebreakContainer:!0,defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,notation:a.NOTATION.LONGDIV,texClass:a.TEXCLASS.ORD},setTeXclass:a.mbase.setSeparateTeXclasses});a.msubsup=a.mbase.Subclass({type:"msubsup",base:0,sub:1,sup:2,isEmbellished:a.mbase.childEmbellished,Core:a.mbase.childCore,CoreMO:a.mbase.childCoreMO,defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,subscriptshift:"",superscriptshift:"",texClass:a.AUTO},autoDefault:function(b){return"texClass"===b?this.isEmbellished()?this.CoreMO().Get(b):a.TEXCLASS.ORD:0},adjustChild_displaystyle:function(a){return 0<a?!1:this.Get("displaystyle")},adjustChild_scriptlevel:function(a){var b=this.Get("scriptlevel");0<a&&b++;return b},adjustChild_texprimestyle:function(a){return a===this.sub?!0:this.Get("texprimestyle")},setTeXclass:a.mbase.setBaseTeXclasses});a.msub=a.msubsup.Subclass({type:"msub"});a.msup=a.msubsup.Subclass({type:"msup",sub:2,sup:1});a.mmultiscripts=a.msubsup.Subclass({type:"mmultiscripts",adjustChild_texprimestyle:function(a){return 1===a%2?!0:this.Get("texprimestyle")}});a.mprescripts=a.mbase.Subclass({type:"mprescripts"});a.none=a.mbase.Subclass({type:"none"});a.munderover=a.mbase.Subclass({type:"munderover",base:0,under:1,over:2,sub:1,sup:2,ACCENTS:["","accentunder","accent"],linebreakContainer:!0,isEmbellished:a.mbase.childEmbellished,Core:a.mbase.childCore,CoreMO:a.mbase.childCoreMO,defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,accent:a.AUTO,accentunder:a.AUTO,align:a.ALIGN.CENTER,texClass:a.AUTO,subscriptshift:"",superscriptshift:""},autoDefault:function(b){return"texClass"===b?this.isEmbellished()?this.CoreMO().Get(b):a.TEXCLASS.ORD:"accent"===b&&this.data[this.over]?this.data[this.over].CoreMO().Get("accent"):"accentunder"===b&&this.data[this.under]?this.data[this.under].CoreMO().Get("accent"):!1},adjustChild_displaystyle:function(a){return 0<a?!1:this.Get("displaystyle")},adjustChild_scriptlevel:function(a){var b=this.Get("scriptlevel"),c=this.data[this.base]&&!this.Get("displaystyle")&&this.data[this.base].CoreMO().Get("movablelimits");a!=this.under||!c&&this.Get("accentunder")||b++;a!=this.over||!c&&this.Get("accent")||b++;return b},adjustChild_texprimestyle:function(a){return a===this.base&&this.data[this.over]?!0:this.Get("texprimestyle")},setTeXclass:a.mbase.setBaseTeXclasses});a.munder=a.munderover.Subclass({type:"munder"});a.mover=a.munderover.Subclass({type:"mover",over:1,under:2,sup:1,sub:2,ACCENTS:["","accent","accentunder"]});a.mtable=a.mbase.Subclass({type:"mtable",defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,align:a.ALIGN.AXIS,rowalign:a.ALIGN.BASELINE,columnalign:a.ALIGN.CENTER,groupalign:"{left}",alignmentscope:!0,columnwidth:a.WIDTH.AUTO,width:a.WIDTH.AUTO,rowspacing:"1ex",columnspacing:".8em",rowlines:a.LINES.NONE,columnlines:a.LINES.NONE,frame:a.LINES.NONE,framespacing:"0.4em 0.5ex",equalrows:!1,equalcolumns:!1,displaystyle:!1,side:a.SIDE.RIGHT,minlabelspacing:"0.8em",texClass:a.TEXCLASS.ORD,useHeight:1},inheritFromMe:!0,noInherit:{mover:{align:!0},munder:{align:!0},munderover:{align:!0},mtable:{align:!0,rowalign:!0,columnalign:!0,groupalign:!0,alignmentscope:!0,columnwidth:!0,width:!0,rowspacing:!0,columnspacing:!0,rowlines:!0,columnlines:!0,frame:!0,framespacing:!0,equalrows:!0,equalcolumns:!0,side:!0,minlabelspacing:!0,texClass:!0,useHeight:1}},linebreakContainer:!0,Append:function(){for(var b=0,c=arguments.length;b<c;b++)arguments[b]instanceof a.mtr||arguments[b]instanceof a.mlabeledtr||(arguments[b]=a.mtd(arguments[b]));this.SUPER(arguments).Append.apply(this,arguments)},setTeXclass:a.mbase.setSeparateTeXclasses});a.mtr=a.mbase.Subclass({type:"mtr",defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,rowalign:a.INHERIT,columnalign:a.INHERIT,groupalign:a.INHERIT},inheritFromMe:!0,noInherit:{mrow:{rowalign:!0,columnalign:!0,groupalign:!0},mtable:{rowalign:!0,columnalign:!0,groupalign:!0}},linebreakContainer:!0,Append:function(){for(var b=0,c=arguments.length;b<c;b++)arguments[b]instanceof a.mtd||(arguments[b]=a.mtd(arguments[b]));this.SUPER(arguments).Append.apply(this,arguments)},setTeXclass:a.mbase.setSeparateTeXclasses});a.mtd=a.mbase.Subclass({type:"mtd",inferRow:!0,linebreakContainer:!0,isEmbellished:a.mbase.childEmbellished,Core:a.mbase.childCore,CoreMO:a.mbase.childCoreMO,defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,rowspan:1,columnspan:1,rowalign:a.INHERIT,columnalign:a.INHERIT,groupalign:a.INHERIT},setTeXclass:a.mbase.setSeparateTeXclasses});a.maligngroup=a.mbase.Subclass({type:"malign",isSpacelike:function(){return!0},defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,groupalign:a.INHERIT},inheritFromMe:!0,noInherit:{mrow:{groupalign:!0},mtable:{groupalign:!0}}});a.malignmark=a.mbase.Subclass({type:"malignmark",defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,edge:a.SIDE.LEFT},isSpacelike:function(){return!0}});a.mlabeledtr=a.mtr.Subclass({type:"mlabeledtr"});a.maction=a.mbase.Subclass({type:"maction",defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,actiontype:a.ACTIONTYPE.TOGGLE,selection:1},selected:function(){return this.data[this.Get("selection")-1]||a.NULL},isEmbellished:function(){return this.selected().isEmbellished()},isSpacelike:function(){return this.selected().isSpacelike()},Core:function(){return this.selected().Core()},CoreMO:function(){return this.selected().CoreMO()},setTeXclass:function(b){this.Get("actiontype")===a.ACTIONTYPE.TOOLTIP&&this.data[1]&&this.data[1].setTeXclass();return this.selected().setTeXclass(b)}});a.semantics=a.mbase.Subclass({type:"semantics",notParent:!0,isEmbellished:a.mbase.childEmbellished,Core:a.mbase.childCore,CoreMO:a.mbase.childCoreMO,defaults:{definitionURL:null,encoding:null},setTeXclass:a.mbase.setChildTeXclass});a.annotation=a.mbase.Subclass({type:"annotation",isToken:!0,linebreakContainer:!0,defaults:{definitionURL:null,encoding:null,cd:"mathmlkeys",name:"",src:null}});a["annotation-xml"]=a.mbase.Subclass({type:"annotation-xml",linebreakContainer:!0,defaults:{definitionURL:null,encoding:null,cd:"mathmlkeys",name:"",src:null}});a.math=a.mstyle.Subclass({type:"math",defaults:{mathvariant:a.VARIANT.NORMAL,mathsize:a.SIZE.NORMAL,mathcolor:"",mathbackground:a.COLOR.TRANSPARENT,scriptlevel:0,displaystyle:a.AUTO,display:"inline",maxwidth:"",overflow:a.OVERFLOW.LINEBREAK,altimg:"","altimg-width":"","altimg-height":"","altimg-valign":"",alttext:"",cdgroup:"",scriptsizemultiplier:Math.sqrt(.5),scriptminsize:"8px",infixlinebreakstyle:a.LINEBREAKSTYLE.BEFORE,lineleading:"1ex",indentshift:"auto",indentalign:a.INDENTALIGN.AUTO,indentalignfirst:a.INDENTALIGN.INDENTALIGN,indentshiftfirst:a.INDENTSHIFT.INDENTSHIFT,indentalignlast:a.INDENTALIGN.INDENTALIGN,indentshiftlast:a.INDENTSHIFT.INDENTSHIFT,decimalseparator:".",texprimestyle:!1},autoDefault:function(a){return"displaystyle"===a?"block"===this.Get("display"):""},linebreakContainer:!0,setTeXclass:a.mbase.setChildTeXclass});a.chars=a.mbase.Subclass({type:"chars",Append:function(){this.data.push.apply(this.data,arguments)},value:function(){return this.data.join("")},toString:function(){return this.data.join("")}});a.entity=a.mbase.Subclass({type:"entity",Append:function(){this.data.push.apply(this.data,arguments)},value:function(){return"#x"===this.data[0].substr(0,2)?parseInt(this.data[0].substr(2),16):"#"===this.data[0].substr(0,1)?parseInt(this.data[0].substr(1)):0},toString:function(){var a=this.value();if(65535>=a)return String.fromCharCode(a);a-=65536;return String.fromCharCode((a>>10)+55296)+String.fromCharCode((a&1023)+56320)}});a.xml=a.mbase.Subclass({type:"xml",Init:function(){this.div=document.createElement("div");return this.SUPER(arguments).Init.apply(this,arguments)},Append:function(){for(var a=0,b=arguments.length;a<b;a++){var c=this.Import(arguments[a]);this.data.push(c);this.div.appendChild(c)}},Import:function(a){if(document.importNode)return document.importNode(a,!0);var b,c,k;if(1===a.nodeType){b=document.createElement(a.nodeName);c=0;for(k=a.attributes.length;c<k;c++){var p=a.attributes[c];p.specified&&null!=p.nodeValue&&""!=p.nodeValue&&b.setAttribute(p.nodeName,p.nodeValue);"style"===p.nodeName&&(b.style.cssText=p.nodeValue)}a.className&&(b.className=a.className)}else if(3===a.nodeType||4===a.nodeType)b=document.createTextNode(a.nodeValue);else if(8===a.nodeType)b=document.createComment(a.nodeValue);else return document.createTextNode("");c=0;for(k=a.childNodes.length;c<k;c++)b.appendChild(this.Import(a.childNodes[c]));return b},value:function(){return this.div},toString:function(){return this.div.innerHTML}});a.TeXAtom=a.mbase.Subclass({type:"texatom",inferRow:!0,notParent:!0,texClass:a.TEXCLASS.ORD,Core:a.mbase.childCore,CoreMO:a.mbase.childCoreMO,isEmbellished:a.mbase.childEmbellished,setTeXclass:function(a){this.data[0].setTeXclass();return this.adjustTeXclass(a)},adjustTeXclass:a.mo.prototype.adjustTeXclass});a.NULL=a.mbase().With({type:"null"});var c=a.TEXCLASS,b={ORD:[0,0,c.ORD],ORD11:[1,1,c.ORD],ORD21:[2,1,c.ORD],ORD02:[0,2,c.ORD],ORD55:[5,5,c.ORD],OP:[1,2,c.OP,{largeop:!0,movablelimits:!0,symmetric:!0}],OPFIXED:[1,2,c.OP,{largeop:!0,movablelimits:!0}],INTEGRAL:[0,1,c.OP,{largeop:!0,symmetric:!0}],INTEGRAL2:[1,2,c.OP,{largeop:!0,symmetric:!0}],BIN3:[3,3,c.BIN],BIN4:[4,4,c.BIN],BIN01:[0,1,c.BIN],BIN5:[5,5,c.BIN],TALLBIN:[4,4,c.BIN,{stretchy:!0}],BINOP:[4,4,c.BIN,{largeop:!0,movablelimits:!0}],REL:[5,5,c.REL],REL1:[1,1,c.REL,{stretchy:!0}],REL4:[4,4,c.REL],RELSTRETCH:[5,5,c.REL,{stretchy:!0}],RELACCENT:[5,5,c.REL,{accent:!0}],WIDEREL:[5,5,c.REL,{accent:!0,stretchy:!0}],OPEN:[0,0,c.OPEN,{fence:!0,stretchy:!0,symmetric:!0}],CLOSE:[0,0,c.CLOSE,{fence:!0,stretchy:!0,symmetric:!0}],INNER:[0,0,c.INNER],PUNCT:[0,3,c.PUNCT],ACCENT:[0,0,c.ORD,{accent:!0}],WIDEACCENT:[0,0,c.ORD,{accent:!0,stretchy:!0}]};a.mo.Augment({SPACE:"0em 0.1111em 0.1667em 0.2222em 0.2667em 0.3333em".split(" "),RANGES:[[32,127,c.REL,"BasicLatin"],[160,255,c.ORD,"Latin1Supplement"],[256,383,c.ORD],[384,591,c.ORD],[688,767,c.ORD,"SpacingModLetters"],[768,879,c.ORD,"CombDiacritMarks"],[880,1023,c.ORD,"GreekAndCoptic"],[7680,7935,c.ORD],[8192,8303,c.PUNCT,"GeneralPunctuation"],[8304,8351,c.ORD],[8352,8399,c.ORD],[8400,8447,c.ORD,"CombDiactForSymbols"],[8448,8527,c.ORD,"LetterlikeSymbols"],[8528,8591,c.ORD],[8592,8703,c.REL,"Arrows"],[8704,8959,c.BIN,"MathOperators"],[8960,9215,c.ORD,"MiscTechnical"],[9312,9471,c.ORD],[9472,9631,c.ORD],[9632,9727,c.ORD,"GeometricShapes"],[9984,10175,c.ORD,"Dingbats"],[10176,10223,c.ORD,"MiscMathSymbolsA"],[10224,10239,c.REL,"SupplementalArrowsA"],[10496,10623,c.REL,"SupplementalArrowsB"],[10624,10751,c.ORD,"MiscMathSymbolsB"],[10752,11007,c.BIN,"SuppMathOperators"],[11008,11263,c.ORD,"MiscSymbolsAndArrows"],[119808,120831,c.ORD]],OPTABLE:{prefix:{"\u2200":b.ORD21,"\u2202":b.ORD21,"\u2203":b.ORD21,"\u2207":b.ORD21,"\u220f":b.OP,"\u2210":b.OP,"\u2211":b.OP,"\u2212":b.BIN01,"\u2213":b.BIN01,"\u221a":[1,1,c.ORD,{stretchy:!0}],"\u2220":b.ORD,"\u222b":b.INTEGRAL,"\u222e":b.INTEGRAL,"\u22c0":b.OP,"\u22c1":b.OP,"\u22c2":b.OP,"\u22c3":b.OP,"\u2308":b.OPEN,"\u230a":b.OPEN,"\u27e8":b.OPEN,"\u27ee":b.OPEN,"\u2a00":b.OP,"\u2a01":b.OP,"\u2a02":b.OP,"\u2a04":b.OP,"\u2a06":b.OP,"\u00ac":b.ORD21,"\u00b1":b.BIN01,"(":b.OPEN,"+":b.BIN01,"-":b.BIN01,"[":b.OPEN,"{":b.OPEN,"|":b.OPEN},postfix:{"!":[1,0,c.CLOSE],"\x26":b.ORD,"\u2032":b.ORD02,"\u203e":b.WIDEACCENT,"\u2309":b.CLOSE,"\u230b":b.CLOSE,"\u23de":b.WIDEACCENT,"\u23df":b.WIDEACCENT,"\u266d":b.ORD02,"\u266e":b.ORD02,"\u266f":b.ORD02,"\u27e9":b.CLOSE,"\u27ef":b.CLOSE,"\u02c6":b.WIDEACCENT,"\u02c7":b.WIDEACCENT,"\u02c9":b.WIDEACCENT,"\u02ca":b.ACCENT,"\u02cb":b.ACCENT,"\u02d8":b.ACCENT,"\u02d9":b.ACCENT,"\u02dc":b.WIDEACCENT,"\u0302":b.WIDEACCENT,"\u00a8":b.ACCENT,"\u00af":b.WIDEACCENT,")":b.CLOSE,"]":b.CLOSE,"^":b.WIDEACCENT,_:b.WIDEACCENT,"`":b.ACCENT,"|":b.CLOSE,"}":b.CLOSE,"~":b.WIDEACCENT},infix:{"":b.ORD,"%":[3,3,c.ORD],"\u2022":b.BIN4,"\u2026":b.INNER,"\u2044":b.TALLBIN,"\u2061":b.ORD,"\u2062":b.ORD,"\u2063":[0,0,c.ORD,{linebreakstyle:"after",separator:!0}],"\u2064":b.ORD,"\u2190":b.WIDEREL,"\u2191":b.RELSTRETCH,"\u2192":b.WIDEREL,"\u2193":b.RELSTRETCH,"\u2194":b.WIDEREL,"\u2195":b.RELSTRETCH,"\u2196":b.RELSTRETCH,"\u2197":b.RELSTRETCH,"\u2198":b.RELSTRETCH,"\u2199":b.RELSTRETCH,"\u21a6":b.WIDEREL,"\u21a9":b.WIDEREL,"\u21aa":b.WIDEREL,"\u21bc":b.WIDEREL,"\u21bd":b.WIDEREL,"\u21c0":b.WIDEREL,"\u21c1":b.WIDEREL,"\u21cc":b.WIDEREL,"\u21d0":b.WIDEREL,"\u21d1":b.RELSTRETCH,"\u21d2":b.WIDEREL,"\u21d3":b.RELSTRETCH,"\u21d4":b.WIDEREL,"\u21d5":b.RELSTRETCH,"\u2208":b.REL,"\u2209":b.REL,"\u220b":b.REL,"\u2212":b.BIN4,"\u2213":b.BIN4,"\u2215":b.TALLBIN,"\u2216":b.BIN4,"\u2217":b.BIN4,"\u2218":b.BIN4,"\u2219":b.BIN4,"\u221d":b.REL,"\u2223":b.REL,"\u2225":b.REL,"\u2227":b.BIN4,"\u2228":b.BIN4,"\u2229":b.BIN4,"\u222a":b.BIN4,"\u223c":b.REL,"\u2240":b.BIN4,"\u2243":b.REL,"\u2245":b.REL,"\u2248":b.REL,"\u224d":b.REL,"\u2250":b.REL,"\u2260":b.REL,"\u2261":b.REL,"\u2264":b.REL,"\u2265":b.REL,"\u226a":b.REL,"\u226b":b.REL,"\u227a":b.REL,"\u227b":b.REL,"\u2282":b.REL,"\u2283":b.REL,"\u2286":b.REL,"\u2287":b.REL,"\u228e":b.BIN4,"\u2291":b.REL,"\u2292":b.REL,"\u2293":b.BIN4,"\u2294":b.BIN4,"\u2295":b.BIN4,"\u2296":b.BIN4,"\u2297":b.BIN4,"\u2298":b.BIN4,"\u2299":b.BIN4,"\u22a2":b.REL,"\u22a3":b.REL,"\u22a4":b.ORD55,"\u22a5":b.REL,"\u22a8":b.REL,"\u22c4":b.BIN4,"\u22c5":b.BIN4,"\u22c6":b.BIN4,"\u22c8":b.REL,"\u22ee":b.ORD55,"\u22ef":b.INNER,"\u22f1":[5,5,c.INNER],"\u25b3":b.BIN4,"\u25b5":b.BIN4,"\u25b9":b.BIN4,"\u25bd":b.BIN4,"\u25bf":b.BIN4,"\u25c3":b.BIN4,"\u2758":b.REL,"\u27f5":b.WIDEREL,"\u27f6":b.WIDEREL,"\u27f7":b.WIDEREL,"\u27f8":b.WIDEREL,"\u27f9":b.WIDEREL,"\u27fa":b.WIDEREL,"\u27fc":b.WIDEREL,"\u2a2f":b.BIN4,"\u2a3f":b.BIN4,"\u2aaf":b.REL,"\u2ab0":b.REL,"\u00b1":b.BIN4,"\u00b7":b.BIN4,"\u00d7":b.BIN4,"\u00f7":b.BIN4,"*":b.BIN3,"+":b.BIN4,",":[0,3,c.PUNCT,{linebreakstyle:"after",separator:!0}],"-":b.BIN4,".":[3,3,c.ORD],"/":b.ORD11,":":[1,2,c.REL],";":[0,3,c.PUNCT,{linebreakstyle:"after",separator:!0}],"\x3c":b.REL,"\x3d":b.REL,"\x3e":b.REL,"?":[1,1,c.CLOSE],"\\":b.ORD,"^":b.ORD11,_:b.ORD11,"|":[2,2,c.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"#":b.ORD,$:b.ORD,".":[0,3,c.PUNCT,{separator:!0}],"\u02b9":b.ORD,"\u0300":b.ACCENT,"\u0301":b.ACCENT,"\u0303":b.WIDEACCENT,"\u0304":b.ACCENT,"\u0306":b.ACCENT,"\u0307":b.ACCENT,"\u0308":b.ACCENT,"\u030c":b.ACCENT,"\u0332":b.WIDEACCENT,"\u0338":b.REL4,"\u2015":[0,0,c.ORD,{stretchy:!0}],"\u2017":[0,0,c.ORD,{stretchy:!0}],"\u2020":b.BIN3,"\u2021":b.BIN3,"\u20d7":b.ACCENT,"\u2111":b.ORD,"\u2113":b.ORD,"\u2118":b.ORD,"\u211c":b.ORD,"\u2205":b.ORD,"\u221e":b.ORD,"\u2305":b.BIN3,"\u2306":b.BIN3,"\u2322":b.REL4,"\u2323":b.REL4,"\u2329":b.OPEN,"\u232a":b.CLOSE,"\u23aa":b.ORD,"\u23af":[0,0,c.ORD,{stretchy:!0}],"\u23b0":b.OPEN,"\u23b1":b.CLOSE,"\u2500":b.ORD,"\u25ef":b.BIN3,"\u2660":b.ORD,"\u2661":b.ORD,"\u2662":b.ORD,"\u2663":b.ORD,"\u3008":b.OPEN,"\u3009":b.CLOSE,"\ufe37":b.WIDEACCENT,"\ufe38":b.WIDEACCENT}}},{OPTYPES:b});a.mo.prototype.OPTABLE.infix["^"]=b.WIDEREL;a.mo.prototype.OPTABLE.infix._=b.WIDEREL})(MathJax.ElementJax.mml);MathJax.ElementJax.mml.loadComplete("jax.js");MathJax.Hub.Register.LoadHook("[MathJax]/jax/element/mml/jax.js",function(){var a=MathJax.ElementJax.mml;SETTINGS=MathJax.Hub.config.menuSettings;a.mbase.Augment({toMathML:function(a){var b=this.inferred&&this.parent.inferRow;null==a&&(a="");var d=this.type,g=this.toMathMLattributes();if("mspace"===d)return a+"\x3c"+d+g+" /\x3e";for(var f=[],k=this.isToken?"":a+(b?"":" "),p=0,t=this.data.length;p<t;p++)this.data[p]?f.push(this.data[p].toMathML(k)):this.isToken||f.push(k+"\x3cmrow /\x3e");return this.isToken?a+"\x3c"+d+g+"\x3e"+f.join("")+"\x3c/"+d+"\x3e":b?f.join("\n"):0===f.length||1===f.length&&""===f[0]?a+"\x3c"+d+g+" /\x3e":a+"\x3c"+d+g+"\x3e\n"+f.join("\n")+"\n"+a+"\x3c/"+d+"\x3e"},toMathMLattributes:function(){var c=[],b=this.defaults,d=this.attrNames||a.copyAttributeNames,g=a.skipAttributes;"math"!==this.type||this.attr&&this.attr.xmlns||c.push('xmlns\x3d"http://www.w3.org/1998/Math/MathML"');if(!this.attrNames){"mstyle"===this.type&&(b=a.math.prototype.defaults);for(var f in b)if(!g[f]&&b.hasOwnProperty(f)){var k="open"===f||"close"===f;if(null!=this[f]&&(k||this[f]!==b[f])){var p=this[f];delete this[f];(k||this.Get(f)!==p)&&c.push(f+'\x3d"'+this.toMathMLattribute(p)+'"');this[f]=p}}}b=0;for(g=d.length;b<g;b++)"class"!==d[b]&&(p=(this.attr||{})[d[b]],null==p&&(p=this[d[b]]),null!=p&&c.push(d[b]+'\x3d"'+this.toMathMLquote(p)+'"'));this.toMathMLclass(c);return c.length?" "+c.join(" "):""},toMathMLclass:function(c){var b=[];this["class"]&&b.push(this["class"]);if(this.isa(a.TeXAtom)&&SETTINGS.texHints){var d="ORD OP BIN REL OPEN CLOSE PUNCT INNER VCENTER".split(" ")[this.texClass];d&&b.push("MJX-TeXAtom-"+d)}this.mathvariant&&this.toMathMLvariants[this.mathvariant]&&b.push("MJX"+this.mathvariant);this.arrow&&b.push("MJX-arrow");this.variantForm&&b.push("MJX-variant");b.length&&c.unshift('class\x3d"'+b.join(" ")+'"')},toMathMLattribute:function(a){return"string"===typeof a&&a.replace(/ /g,"").match(/^(([-+])?(\d+(\.\d*)?|\.\d+))mu$/)?RegExp.$2+(1/18*RegExp.$3).toFixed(3).replace(/\.?0+$/,"")+"em":this.toMathMLvariants[a]?this.toMathMLvariants[a]:this.toMathMLquote(a)},toMathMLvariants:{"-tex-caligraphic":a.VARIANT.SCRIPT,"-tex-caligraphic-bold":a.VARIANT.BOLDSCRIPT,"-tex-oldstyle":a.VARIANT.NORMAL,"-tex-oldstyle-bold":a.VARIANT.BOLD,"-tex-mathit":a.VARIANT.ITALIC},toMathMLquote:function(a){a=String(a).split("");for(var b=0,d=a.length;b<d;b++){var g=a[b].charCodeAt(0);if(55295>=g||57344<=g)32>g||126<g?a[b]="\x26#x"+g.toString(16).toUpperCase()+";":(g={"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;"}[a[b]])&&(a[b]=g);else if(b+1<d){var f=a[b+1].charCodeAt(0);a[b]="\x26#x"+((g-55296<<10)+(f-56320)+65536).toString(16).toUpperCase()+";";a[b+1]="";b++}else a[b]=""}return a.join("")}});a.msubsup.Augment({toMathML:function(a){var b=this.type;null==this.data[this.sup]&&(b="msub");null==this.data[this.sub]&&(b="msup");var d=this.toMathMLattributes();delete this.data[0].inferred;for(var g=[],f=0,k=this.data.length;f<k;f++)this.data[f]&&g.push(this.data[f].toMathML(a+" "));return a+"\x3c"+b+d+"\x3e\n"+g.join("\n")+"\n"+a+"\x3c/"+b+"\x3e"}});a.munderover.Augment({toMathML:function(a){var b=this.type;null==this.data[this.under]&&(b="mover");null==this.data[this.over]&&(b="munder");var d=this.toMathMLattributes();delete this.data[0].inferred;for(var g=[],f=0,k=this.data.length;f<k;f++)this.data[f]&&g.push(this.data[f].toMathML(a+" "));return a+"\x3c"+b+d+"\x3e\n"+g.join("\n")+"\n"+a+"\x3c/"+b+"\x3e"}});a.TeXAtom.Augment({toMathML:function(a){var b=this.toMathMLattributes();return b||1!==this.data[0].data.length?a+"\x3cmrow"+b+"\x3e\n"+this.data[0].toMathML(a+" ")+"\n"+a+"\x3c/mrow\x3e":a.substr(2)+this.data[0].toMathML(a)}});a.chars.Augment({toMathML:function(a){return(a||"")+this.toMathMLquote(this.toString())}});a.entity.Augment({toMathML:function(a){return(a||"")+"\x26"+this.data[0]+";\x3c!-- "+this.toString()+" --\x3e"}});a.xml.Augment({toMathML:function(a){return(a||"")+this.toString()}});MathJax.Hub.Register.StartupHook("TeX mathchoice Ready",function(){a.TeXmathchoice.Augment({toMathML:function(a){return this.Core().toMathML(a)}})});MathJax.Hub.Startup.signal.Post("toMathML Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/toMathML.js");(function(a){function c(a){return C?m.createElement(a):m.createElementNS("http://www.w3.org/1999/xhtml",a)}function b(a,b){return a.input>b.input?1:-1}function d(){var a=[],c;for(c=0;c<u.length;c++)u[c].tex&&(a[a.length]={input:u[c].tex,tag:u[c].tag,output:u[c].output,ttype:u[c].ttype});u=u.concat(a);u.sort(b);for(c=0;c<u.length;c++)z[c]=u[c].input}function g(a){return C?m.createElement("m:"+a):m.createElementNS("http://www.w3.org/1998/Math/MathML",a)}function f(a,b){var c=C?m.createElement("m:"+a):m.createElementNS("http://www.w3.org/1998/Math/MathML",a);c.appendChild(b);return c}function k(a,b){var c;c="\\"==a.charAt(b)&&"\\"!=a.charAt(b+1)&&" "!=a.charAt(b+1)?a.slice(b+1):a.slice(b);for(var d=0;d<c.length&&32>=c.charCodeAt(d);d+=1);return c.slice(d)}function p(a,b,c){if(0==c){var d,e;c=-1;for(d=a.length;c+1<d;)e=c+d>>1,a[e]<b?c=e:d=e;return d}for(;c<a.length&&a[c]<b;c++);return c}function t(a){var b=0,c,d,e="";d=!0;for(var f=1;f<=a.length&&d;f++)d=a.slice(0,f),b=p(z,d,b),b<z.length&&a.slice(0,z[b].length)==z[b]&&(e=z[b],c=b,f=e.length),d=b<z.length&&a.slice(0,z[b].length)>=z[b];I=D;if(""!=e)return D=u[c].ttype,u[c];D=0;b=1;d=a.slice(0,1);for(c=!0;"0"<=d&&"9">=d&&b<=a.length;)d=a.slice(b,b+1),b++;if(d==H&&(d=a.slice(b,b+1),"0"<=d&&"9">=d))for(c=!1,b++;"0"<=d&&"9">=d&&b<=a.length;)d=a.slice(b,b+1),b++;c&&1<b||2<b?(d=a.slice(0,b-1),a="mn"):(d=a.slice(0,1),a=("A">d||"Z"<d)&&("a">d||"z"<d)?"mo":"mi");return"-"==d&&3==I?(D=3,{input:d,tag:a,output:d,ttype:1,func:!0}):{input:d,tag:a,output:d,ttype:0}}function n(a){var b;"mrow"==a.nodeName&&(b=a.firstChild.firstChild.nodeValue,"("!=b&&"["!=b&&"{"!=b||a.removeChild(a.firstChild));"mrow"==a.nodeName&&(b=a.lastChild.firstChild.nodeValue,")"!=b&&"]"!=b&&"}"!=b||a.removeChild(a.lastChild))}function q(a){var b,c,d,e,h,l=m.createDocumentFragment();a=k(a,0);b=t(a);if(null==b||5==b.ttype&&0<B)return[null,a];8==b.ttype&&(a=b.output+k(a,b.input.length),b=t(a));switch(b.ttype){case 7:case 0:return a=k(a,b.input.length),[f(b.tag,m.createTextNode(b.output)),a];case 4:return B++,a=k(a,b.input.length),d=r(a,!0),B--,"boolean"==typeof b.invisible&&b.invisible?c=f("mrow",d[0]):(c=f("mo",m.createTextNode(b.output)),c=f("mrow",c),c.appendChild(d[0])),[c,d[1]];case 10:return b!=F&&(a=k(a,b.input.length)),e="{"==a.charAt(0)?a.indexOf("}"):"("==a.charAt(0)?a.indexOf(")"):"["==a.charAt(0)?a.indexOf("]"):b==F?a.slice(1).indexOf('"')+1:0,-1==e&&(e=a.length),h=a.slice(1,e)," "==h.charAt(0)&&(c=g("mspace"),c.setAttribute("width","1ex"),l.appendChild(c)),l.appendChild(f(b.tag,m.createTextNode(h)))," "==h.charAt(h.length-1)&&(c=g("mspace"),c.setAttribute("width","1ex"),l.appendChild(c)),a=k(a,e+1),[f("mrow",l),a];case 1:a=k(a,b.input.length);d=q(a);if(null==d[0])return[f(b.tag,m.createTextNode(b.output)),a];if("boolean"==typeof b.func&&b.func){h=a.charAt(0);if("^"==h||"_"==h||"/"==h||"|"==h||","==h)return[f(b.tag,m.createTextNode(b.output)),a];c=f("mrow",f(b.tag,m.createTextNode(b.output)));c.appendChild(d[0]);return[c,d[1]]}n(d[0]);if("sqrt"==b.input)return[f(b.tag,d[0]),d[1]];if("boolean"==typeof b.acc&&b.acc)c=f(b.tag,d[0]),c.appendChild(f("mo",m.createTextNode(b.output)));else{if(!C&&"undefined"!=typeof b.codes)for(e=0;e<d[0].childNodes.length;e++)if("mi"==d[0].childNodes[e].nodeName||"mi"==d[0].nodeName){h="mi"==d[0].nodeName?d[0].firstChild.nodeValue:d[0].childNodes[e].firstChild.nodeValue;a=[];for(l=0;l<h.length;l++)a=64<h.charCodeAt(l)&&91>h.charCodeAt(l)?a+String.fromCharCode(b.codes[h.charCodeAt(l)-65]):a+h.charAt(l);"mi"==d[0].nodeName?d[0]=g("mo").appendChild(m.createTextNode(a)):d[0].replaceChild(g("mo").appendChild(m.createTextNode(a)),d[0].childNodes[e])}c=f(b.tag,d[0]);c.setAttribute(b.atname,b.atval)}return[c,d[1]];case 2:a=k(a,b.input.length);d=q(a);if(null==d[0])return[f("mo",m.createTextNode(b.input)),a];n(d[0]);e=q(d[1]);if(null==e[0])return[f("mo",m.createTextNode(b.input)),a];n(e[0]);"root"!=b.input&&"stackrel"!=b.input||l.appendChild(e[0]);l.appendChild(d[0]);"frac"==b.input&&l.appendChild(e[0]);return[f(b.tag,l),e[1]];case 3:return a=k(a,b.input.length),[f("mo",m.createTextNode(b.output)),a];case 6:return a=k(a,b.input.length),c=g("mspace"),c.setAttribute("width","1ex"),l.appendChild(c),l.appendChild(f(b.tag,m.createTextNode(b.output))),c=g("mspace"),c.setAttribute("width","1ex"),l.appendChild(c),[f("mrow",l),a];case 9:B++;a=k(a,b.input.length);d=r(a,!1);B--;h="";null!=d[0].lastChild&&(h=d[0].lastChild.firstChild.nodeValue);if("|"==h)return c=f("mo",m.createTextNode(b.output)),c=f("mrow",c),c.appendChild(d[0]),[c,d[1]];c=f("mo",m.createTextNode(b.output));c=f("mrow",c);return[c,a];default:return a=k(a,b.input.length),[f(b.tag,m.createTextNode(b.output)),a]}}function h(a){var b,c,d,e;a=k(a,0);c=t(a);e=q(a);d=e[0];a=e[1];b=t(a);3==b.ttype&&"/"!=b.input&&(a=k(a,b.input.length),e=q(a),null==e[0]?e[0]=f("mo",m.createTextNode("\u25a1")):n(e[0]),a=e[1],"_"==b.input?(b=t(a),c=7==c.ttype,"^"==b.input?(a=k(a,b.input.length),b=q(a),n(b[0]),a=b[1],d=f(c?"munderover":"msubsup",d),d.appendChild(e[0]),d.appendChild(b[0]),d=f("mrow",d)):(d=f(c?"munder":"msub",d),d.appendChild(e[0]))):(d=f(b.tag,d),d.appendChild(e[0])));return[d,a]}function r(a,b){var c,d,e,g=m.createDocumentFragment();do a=k(a,0),e=h(a),d=e[0],a=e[1],c=t(a),3==c.ttype&&"/"==c.input?(a=k(a,c.input.length),e=h(a),null==e[0]?e[0]=f("mo",m.createTextNode("\u25a1")):n(e[0]),a=e[1],n(d),d=f(c.tag,d),d.appendChild(e[0]),g.appendChild(d),c=t(a)):void 0!=d&&g.appendChild(d);while((5!=c.ttype&&(9!=c.ttype||b)||0==B)&&null!=c&&""!=c.output);if(5==c.ttype||9==c.ttype){d=g.childNodes.length;if(0<d&&"mrow"==g.childNodes[d-1].nodeName&&1<d&&"mo"==g.childNodes[d-2].nodeName&&","==g.childNodes[d-2].firstChild.nodeValue){var l=g.childNodes[d-1].lastChild.firstChild.nodeValue;if(")"==l||"]"==l){var p=g.childNodes[d-1].firstChild.firstChild.nodeValue;if("("==p&&")"==l&&"}"!=c.output||"["==p&&"]"==l){var q=[],r=!0,v=g.childNodes.length;for(e=0;r&&e<v;e+=2){q[e]=[];d=g.childNodes[e];r&&(r="mrow"==d.nodeName&&(e==v-1||"mo"==d.nextSibling.nodeName&&","==d.nextSibling.firstChild.nodeValue)&&d.firstChild.firstChild.nodeValue==p&&d.lastChild.firstChild.nodeValue==l);if(r)for(var u=0;u<d.childNodes.length;u++)","==d.childNodes[u].firstChild.nodeValue&&(q[e][q[e].length]=u);r&&1<e&&(r=q[e].length==q[e-2].length)}if(r){var w,x=m.createDocumentFragment();for(e=0;e<v;e+=2){l=m.createDocumentFragment();p=m.createDocumentFragment();d=g.firstChild;r=d.childNodes.length;w=0;d.removeChild(d.firstChild);for(u=1;u<r-1;u++)"undefined"!=typeof q[e][w]&&u==q[e][w]?(d.removeChild(d.firstChild),l.appendChild(f("mtd",p)),w++):p.appendChild(d.firstChild);l.appendChild(f("mtd",p));2<g.childNodes.length&&(g.removeChild(g.firstChild),g.removeChild(g.firstChild));x.appendChild(f("mtr",l))}d=f("mtable",x);"boolean"==typeof c.invisible&&c.invisible&&d.setAttribute("columnalign","left");g.replaceChild(d,g.firstChild)}}}}a=k(a,c.input.length);"boolean"==typeof c.invisible&&c.invisible||(d=f("mo",m.createTextNode(c.output)),g.appendChild(d))}return[g,a]}function v(a){var b=g("mstyle");""!=w&&b.setAttribute("mathcolor",w);E&&b.setAttribute("displaystyle","true");""!=y&&b.setAttribute("fontfamily",y);B=0;b.appendChild(r(a.replace(/^\s+/g,""),!1)[0]);b=f("math",b);G&&b.setAttribute("title",a.replace(/\s+/g," "));return""==y||!C&&"serif"==y?b:(a=c("font"),a.setAttribute("face",y),a.appendChild(b),a)}var e,l=MathJax.Object.Subclass({firstChild:null,lastChild:null,Init:function(){this.childNodes=[]},appendChild:function(a){a.parent&&a.parent.removeChild(a);this.lastChild&&(this.lastChild.nextSibling=a);this.firstChild||(this.firstChild=a);this.childNodes.push(a);a.parent=this;return this.lastChild=a},removeChild:function(a){for(var b=0,c=this.childNodes.length;b<c&&this.childNodes[b]!==a;b++);if(b!==c)return this.childNodes.splice(b,1),a===this.firstChild&&(this.firstChild=a.nextSibling),a===this.lastChild&&(this.lastChild=this.childNodes.length?this.childNodes[this.childNodes.length-1]:null),b&&(this.childNodes[b-1].nextSibling=a.nextSibling),a.nextSibling=a.parent=null,a},replaceChild:function(a,b){for(var c=0,d=this.childNodes.length;c<d&&this.childNodes[c]!==b;c++);c?this.childNodes[c-1].nextSibling=a:this.firstChild=a;c>=d-1&&(this.lastChild=a);this.childNodes[c]=a;a.nextSibling=b.nextSibling;b.nextSibling=b.parent=null;return b},toString:function(){return"{"+this.childNodes.join("")+"}"}}),x=function(){e=MathJax.ElementJax.mml;var a=e.mbase.prototype.Init;e.mbase.Augment({firstChild:null,lastChild:null,nodeValue:"",nextSibling:null,Init:function(){var b=a.apply(this,arguments)||this;b.childNodes=b.data;b.nodeName=b.type;return b},appendChild:function(a){a.parent&&a.parent.removeChild(a);var b=arguments;a.isa(l)&&(b=a.childNodes,a.data=a.childNodes=[],a.firstChild=a.lastChild=null);for(var c=0,d=b.length;c<d;c++)a=b[c],this.lastChild&&(this.lastChild.nextSibling=a),this.firstChild||(this.firstChild=a),this.Append(a),this.lastChild=a,this.nodeValue+=a.nodeValue;return a},removeChild:function(a){for(var b=0,c=this.childNodes.length;b<c&&this.childNodes[b]!==a;b++);if(b!==c){this.childNodes.splice(b,1);a===this.firstChild&&(this.firstChild=a.nextSibling);a===this.lastChild&&(this.lastChild=this.childNodes.length?this.childNodes[this.childNodes.length-1]:null);b&&(this.childNodes[b-1].nextSibling=a.nextSibling);this.nodeValue="";b=0;for(c=this.childNodes.length;b<c;b++)this.nodeValue+=this.childNodes[b].nodeValue;a.nextSibling=a.parent=null;return a}},replaceChild:function(a,b){for(var c=0,d=this.childNodes.length;c<d&&this.childNodes[c]!==b;c++);c?this.childNodes[c-1].nextSibling=a:this.firstChild=a;c>=d-1&&(this.lastChild=a);this.SetData(c,a);a.nextSibling=b.nextSibling;this.nodeValue="";c=0;for(d=this.childNodes.length;c<d;c++)this.nodeValue+=this.childNodes[c].nodeValue;b.nextSibling=b.parent=null;return b},setAttribute:function(a,b){this[a]=b}})},m={getElementById:!0,createElementNS:function(a,b){return e[b]()},createTextNode:function(a){return e.chars(a).With({nodeValue:a})},createDocumentFragment:function(){return l()}},A,w="red",y="serif",E=!0,G=!0,H=".",C=null==m.createElementNS,J=[61237,8492,61238,61239,8496,8497,61240,8459,8464,61241,61242,8466,8499,61243,61244,61245,61246,8475,61247,61248,61249,61250,61251,61252,61253,61254],K=[61277,61278,8493,61279,61280,61281,61282,8460,8465,61283,61284,61285,61286,61287,61288,61289,61290,8476,61291,61292,61293,61294,61295,61296,61297,8488],L=[61324,61325,8450,61326,61327,61328,61329,8461,61330,61331,61332,61333,61334,8469,61335,8473,8474,8477,61336,61337,61338,61339,61340,61341,61342,8484],F={input:'"',tag:"mtext",output:"mbox",tex:null,ttype:10},u=[{input:"alpha",tag:"mi",output:"\u03b1",tex:null,ttype:0},{input:"beta",tag:"mi",output:"\u03b2",tex:null,ttype:0},{input:"chi",tag:"mi",output:"\u03c7",tex:null,ttype:0},{input:"delta",tag:"mi",output:"\u03b4",tex:null,ttype:0},{input:"Delta",tag:"mo",output:"\u0394",tex:null,ttype:0},{input:"epsi",tag:"mi",output:"\u03b5",tex:"epsilon",ttype:0},{input:"varepsilon",tag:"mi",output:"\u025b",tex:null,ttype:0},{input:"eta",tag:"mi",output:"\u03b7",tex:null,ttype:0},{input:"gamma",tag:"mi",output:"\u03b3",tex:null,ttype:0},{input:"Gamma",tag:"mo",output:"\u0393",tex:null,ttype:0},{input:"iota",tag:"mi",output:"\u03b9",tex:null,ttype:0},{input:"kappa",tag:"mi",output:"\u03ba",tex:null,ttype:0},{input:"lambda",tag:"mi",output:"\u03bb",tex:null,ttype:0},{input:"Lambda",tag:"mo",output:"\u039b",tex:null,ttype:0},{input:"mu",tag:"mi",output:"\u03bc",tex:null,ttype:0},{input:"nu",tag:"mi",output:"\u03bd",tex:null,ttype:0},{input:"omega",tag:"mi",output:"\u03c9",tex:null,ttype:0},{input:"Omega",tag:"mo",output:"\u03a9",tex:null,ttype:0},{input:"phi",tag:"mi",output:"\u03c6",tex:null,ttype:0},{input:"varphi",tag:"mi",output:"\u03d5",tex:null,ttype:0},{input:"Phi",tag:"mo",output:"\u03a6",tex:null,ttype:0},{input:"pi",tag:"mi",output:"\u03c0",tex:null,ttype:0},{input:"Pi",tag:"mo",output:"\u03a0",tex:null,ttype:0},{input:"psi",tag:"mi",output:"\u03c8",tex:null,ttype:0},{input:"Psi",tag:"mi",output:"\u03a8",tex:null,ttype:0},{input:"rho",tag:"mi",output:"\u03c1",tex:null,ttype:0},{input:"sigma",tag:"mi",output:"\u03c3",tex:null,ttype:0},{input:"Sigma",tag:"mo",output:"\u03a3",tex:null,ttype:0},{input:"tau",tag:"mi",output:"\u03c4",tex:null,ttype:0},{input:"theta",tag:"mi",output:"\u03b8",tex:null,ttype:0},{input:"vartheta",tag:"mi",output:"\u03d1",tex:null,ttype:0},{input:"Theta",tag:"mo",output:"\u0398",tex:null,ttype:0},{input:"upsilon",tag:"mi",output:"\u03c5",tex:null,ttype:0},{input:"xi",tag:"mi",output:"\u03be",tex:null,ttype:0},{input:"Xi",tag:"mo",output:"\u039e",tex:null,ttype:0},{input:"zeta",tag:"mi",output:"\u03b6",tex:null,ttype:0},{input:"*",tag:"mo",output:"\u22c5",tex:"cdot",ttype:0},{input:"**",tag:"mo",output:"\u22c6",tex:"star",ttype:0},{input:"//",tag:"mo",output:"/",tex:null,ttype:0},{input:"\\\\",tag:"mo",output:"\\",tex:"backslash",ttype:0},{input:"setminus",tag:"mo",output:"\\",tex:null,ttype:0},{input:"xx",tag:"mo",output:"\u00d7",tex:"times",ttype:0},{input:"-:",tag:"mo",output:"\u00f7",tex:"divide",ttype:0},{input:"@",tag:"mo",output:"\u2218",tex:"circ",ttype:0},{input:"o+",tag:"mo",output:"\u2295",tex:"oplus",ttype:0},{input:"ox",tag:"mo",output:"\u2297",tex:"otimes",ttype:0},{input:"o.",tag:"mo",output:"\u2299",tex:"odot",ttype:0},{input:"sum",tag:"mo",output:"\u2211",tex:null,ttype:7},{input:"prod",tag:"mo",output:"\u220f",tex:null,ttype:7},{input:"^^",tag:"mo",output:"\u2227",tex:"wedge",ttype:0},{input:"^^^",tag:"mo",output:"\u22c0",tex:"bigwedge",ttype:7},{input:"vv",tag:"mo",output:"\u2228",tex:"vee",ttype:0},{input:"vvv",tag:"mo",output:"\u22c1",tex:"bigvee",ttype:7},{input:"nn",tag:"mo",output:"\u2229",tex:"cap",ttype:0},{input:"nnn",tag:"mo",output:"\u22c2",tex:"bigcap",ttype:7},{input:"uu",tag:"mo",output:"\u222a",tex:"cup",ttype:0},{input:"uuu",tag:"mo",output:"\u22c3",tex:"bigcup",ttype:7},{input:"!\x3d",tag:"mo",output:"\u2260",tex:"ne",ttype:0},{input:":\x3d",tag:"mo",output:":\x3d",tex:null,ttype:0},{input:"lt",tag:"mo",output:"\x3c",tex:null,ttype:0},{input:"\x3c\x3d",tag:"mo",output:"\u2264",tex:"le",ttype:0},{input:"lt\x3d",tag:"mo",output:"\u2264",tex:"leq",ttype:0},{input:"\x3e\x3d",tag:"mo",output:"\u2265",tex:"ge",ttype:0},{input:"geq",tag:"mo",output:"\u2265",tex:null,ttype:0},{input:"-\x3c",tag:"mo",output:"\u227a",tex:"prec",ttype:0},{input:"-lt",tag:"mo",output:"\u227a",tex:null,ttype:0},{input:"\x3e-",tag:"mo",output:"\u227b",tex:"succ",ttype:0},{input:"in",tag:"mo",output:"\u2208",tex:null,ttype:0},{input:"!in",tag:"mo",output:"\u2209",tex:"notin",ttype:0},{input:"sub",tag:"mo",output:"\u2282",tex:"subset",ttype:0},{input:"sup",tag:"mo",output:"\u2283",tex:"supset",ttype:0},{input:"sube",tag:"mo",output:"\u2286",tex:"subseteq",ttype:0},{input:"supe",tag:"mo",output:"\u2287",tex:"supseteq",ttype:0},{input:"-\x3d",tag:"mo",output:"\u2261",tex:"equiv",ttype:0},{input:"~\x3d",tag:"mo",output:"\u2245",tex:"cong",ttype:0},{input:"~~",tag:"mo",output:"\u2248",tex:"approx",ttype:0},{input:"prop",tag:"mo",output:"\u221d",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:"\u00ac",tex:"neg",ttype:0},{input:"\x3d\x3e",tag:"mo",output:"\u21d2",tex:"implies",ttype:0},{input:"if",tag:"mo",output:"if",tex:null,ttype:6},{input:"\x3c\x3d\x3e",tag:"mo",output:"\u21d4",tex:"iff",ttype:0},{input:"AA",tag:"mo",output:"\u2200",tex:"forall",ttype:0},{input:"EE",tag:"mo",output:"\u2203",tex:"exists",ttype:0},{input:"_|_",tag:"mo",output:"\u22a5",tex:"bot",ttype:0},{input:"TT",tag:"mo",output:"\u22a4",tex:"top",ttype:0},{input:"|--",tag:"mo",output:"\u22a2",tex:"vdash",ttype:0},{input:"|\x3d\x3d",tag:"mo",output:"\u22a8",tex:"models",ttype:0},{input:"(",tag:"mo",output:"(",tex:null,ttype:4},{input:")",tag:"mo",output:")",tex:null,ttype:5},{input:"[",tag:"mo",output:"[",tex:null,ttype:4},{input:"]",tag:"mo",output:"]",tex:null,ttype:5},{input:"{",tag:"mo",output:"{",tex:null,ttype:4},{input:"}",tag:"mo",output:"}",tex:null,ttype:5},{input:"|",tag:"mo",output:"|",tex:null,ttype:9},{input:"(:",tag:"mo",output:"\u2329",tex:"langle",ttype:4},{input:":)",tag:"mo",output:"\u232a",tex:"rangle",ttype:5},{input:"\x3c\x3c",tag:"mo",output:"\u2329",tex:null,ttype:4},{input:"\x3e\x3e",tag:"mo",output:"\u232a",tex:null,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:"\u222b",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:"\u222e",tex:null,ttype:0},{input:"del",tag:"mo",output:"\u2202",tex:"partial",ttype:0},{input:"grad",tag:"mo",output:"\u2207",tex:"nabla",ttype:0},{input:"+-",tag:"mo",output:"\u00b1",tex:"pm",ttype:0},{input:"O/",tag:"mo",output:"\u2205",tex:"emptyset",ttype:0},{input:"oo",tag:"mo",output:"\u221e",tex:"infty",ttype:0},{input:"aleph",tag:"mo",output:"\u2135",tex:null,ttype:0},{input:"...",tag:"mo",output:"...",tex:"ldots",ttype:0},{input:":.",tag:"mo",output:"\u2234",tex:"therefore",ttype:0},{input:"/_",tag:"mo",output:"\u2220",tex:"angle",ttype:0},{input:"\\ ",tag:"mo",output:"\u00a0",tex:null,ttype:0},{input:"quad",tag:"mo",output:"\u00a0\u00a0",tex:null,ttype:0},{input:"qquad",tag:"mo",output:"\u00a0\u00a0\u00a0\u00a0",tex:null,ttype:0},{input:"cdots",tag:"mo",output:"\u22ef",tex:null,ttype:0},{input:"vdots",tag:"mo",output:"\u22ee",tex:null,ttype:0},{input:"ddots",tag:"mo",output:"\u22f1",tex:null,ttype:0},{input:"diamond",tag:"mo",output:"\u22c4",tex:null,ttype:0},{input:"square",tag:"mo",output:"\u25a1",tex:null,ttype:0},{input:"|__",tag:"mo",output:"\u230a",tex:"lfloor",ttype:0},{input:"__|",tag:"mo",output:"\u230b",tex:"rfloor",ttype:0},{input:"|~",tag:"mo",output:"\u2308",tex:"lceiling",ttype:0},{input:"~|",tag:"mo",output:"\u2309",tex:"rceiling",ttype:0},{input:"CC",tag:"mo",output:"\u2102",tex:null,ttype:0},{input:"NN",tag:"mo",output:"\u2115",tex:null,ttype:0},{input:"QQ",tag:"mo",output:"\u211a",tex:null,ttype:0},{input:"RR",tag:"mo",output:"\u211d",tex:null,ttype:0},{input:"ZZ",tag:"mo",output:"\u2124",tex:null,ttype:0},{input:"f",tag:"mi",output:"f",tex:null,ttype:1,func:!0},{input:"g",tag:"mi",output:"g",tex:null,ttype:1,func:!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:"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:"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:"det",tag:"mo",output:"det",tex:null,ttype:1,func:!0},{input:"dim",tag:"mo",output:"dim",tex:null,ttype:0},{input:"mod",tag:"mo",output:"mod",tex:null,ttype:0},{input:"gcd",tag:"mo",output:"gcd",tex:null,ttype:1,func:!0},{input:"lcm",tag:"mo",output:"lcm",tex:null,ttype:1,func:!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:"\u2191",tex:"uparrow",ttype:0},{input:"darr",tag:"mo",output:"\u2193",tex:"downarrow",ttype:0},{input:"rarr",tag:"mo",output:"\u2192",tex:"rightarrow",ttype:0},{input:"-\x3e",tag:"mo",output:"\u2192",tex:"to",ttype:0},{input:"|-\x3e",tag:"mo",output:"\u21a6",tex:"mapsto",ttype:0},{input:"larr",tag:"mo",output:"\u2190",tex:"leftarrow",ttype:0},{input:"harr",tag:"mo",output:"\u2194",tex:"leftrightarrow",ttype:0},{input:"rArr",tag:"mo",output:"\u21d2",tex:"Rightarrow",ttype:0},{input:"lArr",tag:"mo",output:"\u21d0",tex:"Leftarrow",ttype:0},{input:"hArr",tag:"mo",output:"\u21d4",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:"hat",tag:"mover",output:"^",tex:null,ttype:1,acc:!0},{input:"bar",tag:"mover",output:"\u00af",tex:"overline",ttype:1,acc:!0},{input:"vec",tag:"mover",output:"\u2192",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:"\u0332",tex:"underline",ttype:1,acc:!0},{input:"text",tag:"mtext",output:"text",tex:null,ttype:10},{input:"mbox",tag:"mtext",output:"mbox",tex:null,ttype:10},F,{input:"bb",tag:"mstyle",atname:"fontweight",atval:"bold",output:"bb",tex:null,ttype:1},{input:"mathbf",tag:"mstyle",atname:"fontweight",atval:"bold",output:"mathbf",tex:null,ttype:1},{input:"sf",tag:"mstyle",atname:"fontfamily",atval:"sans-serif",output:"sf",tex:null,ttype:1},{input:"mathsf",tag:"mstyle",atname:"fontfamily",atval:"sans-serif",output:"mathsf",tex:null,ttype:1},{input:"bbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"bbb",tex:null,ttype:1,codes:L},{input:"mathbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"mathbb",tex:null,ttype:1,codes:L},{input:"cc",tag:"mstyle",atname:"mathvariant",atval:"script",output:"cc",tex:null,ttype:1,codes:J},{input:"mathcal",tag:"mstyle",atname:"mathvariant",atval:"script",output:"mathcal",tex:null,ttype:1,codes:J},{input:"tt",tag:"mstyle",atname:"fontfamily",atval:"monospace",output:"tt",tex:null,ttype:1},{input:"mathtt",tag:"mstyle",atname:"fontfamily",atval:"monospace",output:"mathtt",tex:null,ttype:1},{input:"fr",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"fr",tex:null,ttype:1,codes:K},{input:"mathfrak",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"mathfrak",tex:null,ttype:1,codes:K}],z=[],B,I,D,G=!1,w=y="";(function(){for(var a=0,b=u.length;a<b;a++)if(u[a].codes&&delete u[a].codes,u[a].func&&(u[a].tag="mi"),"fontfamily"===u[a].atname||"fontweight"===u[a].atname)u[a].atname="mathvariant"})();u.push({input:"gt",tag:"mo",output:"\x3e",tex:null,ttype:0},{input:"gt\x3d",tag:"mo",output:"\u2265",tex:"geq",ttype:0},{input:"-\x3c\x3d",tag:"mo",output:"\u2aaf",tex:"preceq",ttype:0},{input:"\x3e-\x3d",tag:"mo",output:"\u2ab0",tex:"succeq",ttype:0},{input:"'",tag:"mo",output:"\u2032",tex:"prime",ttype:0},{input:"arcsin",tag:"mi",output:"arcsin",tex:null,ttype:1,func:!0},{input:"arccos",tag:"mi",output:"arccos",tex:null,ttype:1,func:!0},{input:"arctan",tag:"mi",output:"arctan",tex:null,ttype:1,func:!0},{input:"coth",tag:"mi",output:"coth",tex:null,ttype:1,func:!0},{input:"sech",tag:"mi",output:"sech",tex:null,ttype:1,func:!0},{input:"csch",tag:"mi",output:"csch",tex:null,ttype:1,func:!0},{input:"abs",tag:"mi",output:"abs",tex:null,ttype:1,func:!0},{input:"exp",tag:"mi",output:"exp",tex:null,ttype:1,func:!0},{input:"tilde",tag:"mover",output:"~",tex:null,ttype:1,acc:!0});a.Augment({AM:{Init:function(){E=a.config.displaystyle;H=a.config.decimal||a.config.decimalsign;x();d()},Augment:function(a){for(var b in a)if(a.hasOwnProperty(b)){switch(b){case "displaystyle":E=a[b];break;case "decimal":decimal=a[b];break;case "parseMath":v=a[b];break;case "parseExpr":r=a[b];break;case "parseIexpr":h=a[b];break;case "parseSexpr":q=a[b];break;case "removeBrackets":n=a[b];break;case "getSymbol":t=a[b];break;case "position":p=a[b];break;case "removeCharsAndBlanks":k=a[b];break;case "createMmlNode":f=a[b];break;case "createElementMathML":g=a[b];break;case "createElementXHTML":c=a[b];break;case "initSymbols":d=a[b];break;case "compareNames":comareNames=a[b]}this[b]=a[b]}},parseMath:v,parseExpr:r,parseIexpr:h,parseSexr:q,removeBrackets:n,getSymbol:t,position:p,removeCharsAndBlanks:k,createMmlNode:f,createElementMathML:g,createElementXHTML:c,initSymbols:d,compareNames:b,createDocumentFragment:l,document:m,define:function(a,c){u=u.concat([{input:a,tag:"mo",output:c,tex:null,ttype:8}]);u.sort(b);for(A=0;A<u.length;A++)z[A]=u[A].input},symbols:u,names:z,TOKEN:{CONST:0,UNARY:1,BINARY:2,INFIX:3,LEFTBRACKET:4,RIGHTBRACKET:5,SPACE:6,UNDEROVER:7,DEFINITION:8,LEFTRIGHT:9,TEXT:10}}})})(MathJax.InputJax.AsciiMath);(function(a){var c;a.Augment({sourceMenuTitle:["AsciiMathInput","AsciiMath Input"],prefilterHooks:MathJax.Callback.Hooks(!0),postfilterHooks:MathJax.Callback.Hooks(!0),Translate:function(a){var d,g=MathJax.HTML.getScript(a);a={math:g,script:a};this.prefilterHooks.Execute(a);g=a.math;try{d=this.AM.parseMath(g)}catch(f){if(!f.asciimathError)throw f;d=this.formatError(f,g)}a.math=c(d);this.postfilterHooks.Execute(a);return a.math},formatError:function(a,d,g){a=a.message.replace(/\n.*/,"");MathJax.Hub.signal.Post(["AsciiMath Jax - parse error",a,d,g]);return c.merror(a)},Error:function(a){throw MathJax.Hub.Insert(Error(a),{asciimathError:!0});},Startup:function(){c=MathJax.ElementJax.mml;this.AM.Init()}});a.loadComplete("jax.js")})(MathJax.InputJax.AsciiMath);MathJax.Ajax.loadComplete("[MathJax]/config/AM_HTMLorMML.js");