(function(d){varc=true,f=false,i,h=String.fromCharCode(160);vare=MathJax.Object.Subclass({Init:function(k){this.global={};this.data=[b.start().With({global:this.global})];if(k){this.data[0].env=k}this.env=this.data[0].env},Push:function(){varl,k,n,o;for(l=0,k=arguments.length;l<k;l++){n=arguments[l];if(ninstanceofi.mbase){n=b.mml(n)}n.global=this.global;o=(this.data.length?this.Top().checkItem(n):c);if(oinstanceofArray){this.Pop();this.Push.apply(this,o)}else{if(oinstanceofb){this.Pop();this.Push(o)}else{if(o){this.data.push(n);if(n.env){for(varpinthis.env){if(this.env.hasOwnProperty(p)){n.env[p]=this.env[p]}}this.env=n.env}else{n.env=this.env}}}}}},Pop:function(){vark=this.data.pop();if(!k.isOpen){deletek.env}this.env=(this.data.length?this.Top().env:{});returnk},Top:function(k){if(k==null){k=1}if(this.data.length<k){returnnull}returnthis.data[this.data.length-k]},Prev:function(k){varl=this.Top();if(k){returnl.data[l.data.length-1]}else{returnl.Pop()}},toString:function(){return"stack[\n "+this.data.join("\n ")+"\n]"}});varb=e.Item=MathJax.Object.Subclass({type:"base",closeError:"Extra close brace or missing open brace",rightError:"Missing \\left or extra \\right",Init:function(){if(this.isOpen){this.env={}}this.data=[];this.Push.apply(this,arguments)},Push:function(){this.data.push.apply(this.data,arguments)},Pop:function(){returnthis.data.pop()},mmlData:function(k,l){if(k==null){k=c}if(this.data.length===1&&!l){returnthis.data[0]}returni.mrow.apply(i,this.data).With((k?{inferred:c}:{}))},checkItem:function(k){if(k.type==="over"&&this.isOpen){k.num=this.mmlData(f);this.data=[]}if(k.type==="cell"&&this.isOpen){d.Error("Misplaced "+k.name)}if(k.isClose&&this[k.type+"Error"]){d.Error(this[k.type+"Error"])}if(!k.isNotStack){returnc}this.Push(k.data[0]);returnf},With:function(k){for(varlink){if(k.hasOwnProperty(l)){this[l]=k[l]}}returnthis},toString:function(){returnthis.type+"["+this.data.join("; ")+"]"}});b.start=b.Subclass({type:"start",isOpen:c,checkItem:function(k){if(k.type==="stop"){returnb.mml(this.mmlData())}returnthis.SUPER(arguments).checkItem.call(this,k)}});b.stop=b.Subclass({type:"stop",isClose:c});b.open=b.Subclass({type:"open",isOpen:c,stopError:"Extra open brace or missing close brace",checkItem:function(l){if(l.type==="close"){vark=this.mmlData();returnb.mml(i.TeXAtom(k))}returnthis.SUPER(arguments).checkItem.call(this,l)}});b.close=b.Subclass({type:"close",isClose:c});b.subsup=b.Subclass({type:"subsup",stopError:"Missing superscript or subscript argument",checkItem:function(l){vark=["","subscript","superscript"][this.position];if(l.type==="open"||l.type==="left"){returnc}if(l.type==="mml"){this.data[0].SetData(this.position,l.data[0]);returnb.mml(this.data[0])}if(this.SUPER(arguments).checkItem.call(this,l)){d.Error("Missing open brace for "+k)}},Pop:function(){}});b.over=b.Subclass({type:"over",isClose:c,name:"\\over",checkItem:function(m,k){if(m.type==="over"){d.Error("Ambiguous use of "+m.name)}if(m.isClose){varl=i.mfrac(this.num,this.mmlData(f));if(this.thickness!=null){l.linethickness=this.thickness}if(this.open||this.close){l.texClass=i.TEXCLASS.INNER;l.texWithDelims=c;l=i.mfenced(l).With({open:this.open,close:this.close})}return[b.mml(l),m]}returnthis.SUPER(arguments).checkItem.call(this,m)},toString:function(){return"over["+this.num+" / "+this.data.join("; ")+"]"}});b.left=b.Subclass({type:"left",isOpen:c,delim:"(",stopError:"Extra \\left or missing \\right",checkItem:function(l){if(l.type==="right"){vark=i.mfenced(this.data.length===1?this.data[0]:i.mrow.apply(i,this.data));returnb.mml(k.With({open:this.delim,close:l.delim}))}returnthis.SUPER(arguments).checkItem.call(this,l)}});b.right=b.Subclass({type:"right",isClose:c,delim:")"});b.begin=b.Subclass({type:"begin",isOpen:c,checkItem:function(k){if(k.type==="end"){if(k.name!==this.name){d.Error("\\begin{"+this.name+"} ended with \\end{"+k.name+"}")}if(!this.end){returnb.mml(this.mmlData())}returnthis.parse[this.end].call(this.parse,this,this.data)}if(k.type==="stop"){d.Error("Missing \\end{"+this.n