UNPKG

@zklogic/draw.io

Version:

Draw.IO - Graph Editor integration in Angular-cli

1 lines 50.1 kB
!function(t,e,i){var s,a=function(t){return MathJax.Localization._.apply(MathJax.Localization,[["TeX",t]].concat([].slice.call(arguments,1)))},r=MathJax.Object.isArray,n=MathJax.Object.Subclass({Init:function(t,e){this.global={isInner:e},this.data=[o.start(this.global)],t&&(this.data[0].env=t),this.env=this.data[0].env},Push:function(){var t,e,i,a;for(t=0,e=arguments.length;t<e;t++)if(i=arguments[t])if(i instanceof s.mbase&&(i=o.mml(i)),i.global=this.global,(a=!this.data.length||this.Top().checkItem(i))instanceof Array)this.Pop(),this.Push.apply(this,a);else if(a instanceof o)this.Pop(),this.Push(a);else if(a)if(this.data.push(i),i.env){if(!1!==i.copyEnv)for(var r in this.env)this.env.hasOwnProperty(r)&&(i.env[r]=this.env[r]);this.env=i.env}else i.env=this.env},Pop:function(){var t=this.data.pop();return t.isOpen||delete t.env,this.env=this.data.length?this.Top().env:{},t},Top:function(t){return null==t&&(t=1),this.data.length<t?null:this.data[this.data.length-t]},Prev:function(t){var e=this.Top();return t?e.data[e.data.length-1]:e.Pop()},toString:function(){return"stack[\n  "+this.data.join("\n  ")+"\n]"}}),o=n.Item=MathJax.Object.Subclass({type:"base",endError:["ExtraOpenMissingClose","Extra open brace or missing close brace"],closeError:["ExtraCloseMissingOpen","Extra close brace or missing open brace"],rightError:["MissingLeftExtraRight","Missing \\left or extra \\right"],Init:function(){this.isOpen&&(this.env={}),this.data=[],this.Push.apply(this,arguments)},Push:function(){this.data.push.apply(this.data,arguments)},Pop:function(){return this.data.pop()},mmlData:function(t,e){return null==t&&(t=!0),1!==this.data.length||e?s.mrow.apply(s,this.data).With(t?{inferred:!0}:{}):this.data[0]},checkItem:function(e){if("over"===e.type&&this.isOpen&&(e.num=this.mmlData(!1),this.data=[]),"cell"===e.type&&this.isOpen){if(e.linebreak)return!1;t.Error(["Misplaced","Misplaced %1",e.name])}return e.isClose&&this[e.type+"Error"]&&t.Error(this[e.type+"Error"]),!e.isNotStack||(this.Push(e.data[0]),!1)},With:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);return this},toString:function(){return this.type+"["+this.data.join("; ")+"]"}});o.start=o.Subclass({type:"start",isOpen:!0,Init:function(t){this.SUPER(arguments).Init.call(this),this.global=t},checkItem:function(t){return"stop"===t.type?o.mml(this.mmlData()):this.SUPER(arguments).checkItem.call(this,t)}}),o.stop=o.Subclass({type:"stop",isClose:!0}),o.open=o.Subclass({type:"open",isOpen:!0,stopError:["ExtraOpenMissingClose","Extra open brace or missing close brace"],checkItem:function(t){if("close"===t.type){var e=this.mmlData();return o.mml(s.TeXAtom(e))}return this.SUPER(arguments).checkItem.call(this,t)}}),o.close=o.Subclass({type:"close",isClose:!0}),o.prime=o.Subclass({type:"prime",checkItem:function(t){return"msubsup"!==this.data[0].type?[s.msup(this.data[0],this.data[1]),t]:(this.data[0].SetData(this.data[0].sup,this.data[1]),[this.data[0],t])}}),o.subsup=o.Subclass({type:"subsup",stopError:["MissingScript","Missing superscript or subscript argument"],supError:["MissingOpenForSup","Missing open brace for superscript"],subError:["MissingOpenForSub","Missing open brace for subscript"],checkItem:function(e){return"open"===e.type||"left"===e.type||("mml"===e.type?(this.primes&&(2!==this.position?this.data[0].SetData(2,this.primes):e.data[0]=s.mrow(this.primes.With({variantForm:!0}),e.data[0])),this.data[0].SetData(this.position,e.data[0]),null!=this.movesupsub&&(this.data[0].movesupsub=this.movesupsub),o.mml(this.data[0])):void(this.SUPER(arguments).checkItem.call(this,e)&&t.Error(this[["","subError","supError"][this.position]])))},Pop:function(){}}),o.over=o.Subclass({type:"over",isClose:!0,name:"\\over",checkItem:function(e,i){if("over"===e.type&&t.Error(["AmbiguousUseOf","Ambiguous use of %1",e.name]),e.isClose){var a=s.mfrac(this.num,this.mmlData(!1));return null!=this.thickness&&(a.linethickness=this.thickness),(this.open||this.close)&&(a.texWithDelims=!0,a=t.fixedFence(this.open,a,this.close)),[o.mml(a),e]}return this.SUPER(arguments).checkItem.call(this,e)},toString:function(){return"over["+this.num+" / "+this.data.join("; ")+"]"}}),o.left=o.Subclass({type:"left",isOpen:!0,delim:"(",stopError:["ExtraLeftMissingRight","Extra \\left or missing \\right"],checkItem:function(e){return"right"===e.type?o.mml(t.fenced(this.delim,this.mmlData(),e.delim)):this.SUPER(arguments).checkItem.call(this,e)}}),o.right=o.Subclass({type:"right",isClose:!0,delim:")"}),o.begin=o.Subclass({type:"begin",isOpen:!0,checkItem:function(e){return"end"===e.type?(e.name!==this.name&&t.Error(["EnvBadEnd","\\begin{%1} ended with \\end{%2}",this.name,e.name]),this.end?this.parse[this.end].call(this.parse,this,this.data):o.mml(this.mmlData())):("stop"===e.type&&t.Error(["EnvMissingEnd","Missing \\end{%1}",this.name]),this.SUPER(arguments).checkItem.call(this,e))}}),o.end=o.Subclass({type:"end",isClose:!0}),o.style=o.Subclass({type:"style",checkItem:function(t){if(!t.isClose)return this.SUPER(arguments).checkItem.call(this,t);var e=s.mstyle.apply(s,this.data).With(this.styles);return[o.mml(e),t]}}),o.position=o.Subclass({type:"position",checkItem:function(e){if(e.isClose&&t.Error(["MissingBoxFor","Missing box for %1",this.name]),e.isNotStack){var i=e.mmlData();switch(this.move){case"vertical":return i=s.mpadded(i).With({height:this.dh,depth:this.dd,voffset:this.dh}),[o.mml(i)];case"horizontal":return[o.mml(this.left),e,o.mml(this.right)]}}return this.SUPER(arguments).checkItem.call(this,e)}}),o.array=o.Subclass({type:"array",isOpen:!0,copyEnv:!1,arraydef:{},Init:function(){this.table=[],this.row=[],this.frame=[],this.hfill=[],this.SUPER(arguments).Init.apply(this,arguments)},checkItem:function(e){if(e.isClose&&"over"!==e.type){if(e.isEntry)return this.EndEntry(),this.clearEnv(),!1;if(e.isCR)return this.EndEntry(),this.EndRow(),this.clearEnv(),!1;this.EndTable(),this.clearEnv();var i=this.arraydef.scriptlevel;delete this.arraydef.scriptlevel;var a=s.mtable.apply(s,this.table).With(this.arraydef);if(4===this.frame.length?a.frame=this.frame.dashed?"dashed":"solid":this.frame.length&&(a.hasFrame=!0,this.arraydef.rowlines&&(this.arraydef.rowlines=this.arraydef.rowlines.replace(/none( none)+$/,"none")),a=s.menclose(a).With({notation:this.frame.join(" "),isFrame:!0}),"none"==(this.arraydef.columnlines||"none")&&"none"==(this.arraydef.rowlines||"none")||(a.padding=0)),i&&(a=s.mstyle(a).With({scriptlevel:i})),(this.open||this.close)&&(a=t.fenced(this.open,a,this.close)),a=o.mml(a),this.requireClose){if("close"===e.type)return a;t.Error(["MissingCloseBrace","Missing close brace"])}return[a,e]}return this.SUPER(arguments).checkItem.call(this,e)},EndEntry:function(){var t=s.mtd.apply(s,this.data);this.hfill.length&&(0===this.hfill[0]&&(t.columnalign="right"),this.hfill[this.hfill.length-1]===this.data.length&&(t.columnalign=t.columnalign?"center":"left")),this.row.push(t),this.data=[],this.hfill=[]},EndRow:function(){var t=s.mtr;this.isNumbered&&3===this.row.length&&(this.row.unshift(this.row.pop()),t=s.mlabeledtr),this.table.push(t.apply(s,this.row)),this.row=[]},EndTable:function(){(this.data.length||this.row.length)&&(this.EndEntry(),this.EndRow()),this.checkLines()},checkLines:function(){if(this.arraydef.rowlines){var t=this.arraydef.rowlines.split(/ /);t.length===this.table.length?(this.frame.push("bottom"),t.pop(),this.arraydef.rowlines=t.join(" ")):t.length<this.table.length-1&&(this.arraydef.rowlines+=" none")}if(this.rowspacing){for(var e=this.arraydef.rowspacing.split(/ /);e.length<this.table.length;)e.push(this.rowspacing+"em");this.arraydef.rowspacing=e.join(" ")}},clearEnv:function(){for(var t in this.env)this.env.hasOwnProperty(t)&&delete this.env[t]}}),o.cell=o.Subclass({type:"cell",isClose:!0}),o.mml=o.Subclass({type:"mml",isNotStack:!0,Add:function(){return this.data.push.apply(this.data,arguments),this}}),o.fn=o.Subclass({type:"fn",checkItem:function(t){if(this.data[0]){if(t.isOpen)return!0;if("fn"!==t.type){if("mml"!==t.type||!t.data[0])return[this.data[0],t];if(t.data[0].isa(s.mspace))return[this.data[0],t];var e=t.data[0];if(e.isEmbellished()&&(e=e.CoreMO()),[0,0,1,1,0,1,1,0,0,0][e.Get("texClass")])return[this.data[0],t]}return[this.data[0],s.mo(s.entity("#x2061")).With({texClass:s.TEXCLASS.NONE}),t]}return this.SUPER(arguments).checkItem.apply(this,arguments)}}),o.not=o.Subclass({type:"not",checkItem:function(t){var e,i;return"open"===t.type||"left"===t.type||("mml"===t.type&&t.data[0].type.match(/^(mo|mi|mtext)$/)&&1===(i=(e=t.data[0]).data.join("")).length&&!e.movesupsub&&1===e.data.length?((i=o.not.remap[i.charCodeAt(0)])?e.SetData(0,s.chars(String.fromCharCode(i))):e.Append(s.chars("̸")),t):(e=s.mpadded(s.mtext("⧸")).With({width:0}),[e=s.TeXAtom(e).With({texClass:s.TEXCLASS.REL}),t]))}}),o.not.remap={8592:8602,8594:8603,8596:8622,8656:8653,8658:8655,8660:8654,8712:8713,8715:8716,8739:8740,8741:8742,8764:8769,126:8769,8771:8772,8773:8775,8776:8777,8781:8813,61:8800,8801:8802,60:8814,62:8815,8804:8816,8805:8817,8818:8820,8819:8821,8822:8824,8823:8825,8826:8832,8827:8833,8834:8836,8835:8837,8838:8840,8839:8841,8866:8876,8872:8877,8873:8878,8875:8879,8828:8928,8829:8929,8849:8930,8850:8931,8882:8938,8883:8939,8884:8940,8885:8941,8707:8708},o.dots=o.Subclass({type:"dots",checkItem:function(t){if("open"===t.type||"left"===t.type)return!0;var e=this.ldots;if("mml"===t.type&&t.data[0].isEmbellished()){var i=t.data[0].CoreMO().Get("texClass");i!==s.TEXCLASS.BIN&&i!==s.TEXCLASS.REL||(e=this.cdots)}return[e,t]}});var h={Add:function(t,e,i){for(var s in e||(e=this),t)t.hasOwnProperty(s)&&("object"!=typeof t[s]||r(t[s])||"object"!=typeof e[s]&&"function"!=typeof e[s]?e[s]&&e[s].isUser&&i||(e[s]=t[s]):this.Add(t[s],e[s],t[s],i));return e}},l=MathJax.Object.Subclass({Init:function(e,i){var s;if(this.string=e,this.i=0,this.macroCount=0,i)for(var a in s={},i)i.hasOwnProperty(a)&&(s[a]=i[a]);this.stack=t.Stack(s,!!i),this.Parse(),this.Push(o.stop())},Parse:function(){for(var t,e;this.i<this.string.length;)(e=(t=this.string.charAt(this.i++)).charCodeAt(0))>=55296&&e<56320&&(t+=this.string.charAt(this.i++)),h.special.hasOwnProperty(t)?this[h.special[t]](t):h.letter.test(t)?this.Variable(t):h.digit.test(t)?this.Number(t):this.Other(t)},Push:function(){this.stack.Push.apply(this.stack,arguments)},mml:function(){return"mml"!==this.stack.Top().type?null:this.stack.Top().data[0]},mmlToken:function(t){return t},ControlSequence:function(t){var e=this.GetCS(),i=this.csFindMacro(e);if(i){r(i)||(i=[i]);var s=i[0];s instanceof Function||(s=this[s]),s.apply(this,[t+e].concat(i.slice(1)))}else h.mathchar0mi.hasOwnProperty(e)?this.csMathchar0mi(e,h.mathchar0mi[e]):h.mathchar0mo.hasOwnProperty(e)?this.csMathchar0mo(e,h.mathchar0mo[e]):h.mathchar7.hasOwnProperty(e)?this.csMathchar7(e,h.mathchar7[e]):h.delimiter.hasOwnProperty("\\"+e)?this.csDelimiter(e,h.delimiter["\\"+e]):this.csUndefined(t+e)},csFindMacro:function(t){return h.macros.hasOwnProperty(t)?h.macros[t]:null},csMathchar0mi:function(t,e){var i={mathvariant:s.VARIANT.ITALIC};r(e)&&(i=e[1],e=e[0]),this.Push(this.mmlToken(s.mi(s.entity("#x"+e)).With(i)))},csMathchar0mo:function(t,e){var i={stretchy:!1};r(e)&&((i=e[1]).stretchy=!1,e=e[0]),this.Push(this.mmlToken(s.mo(s.entity("#x"+e)).With(i)))},csMathchar7:function(t,e){var i={mathvariant:s.VARIANT.NORMAL};r(e)&&(i=e[1],e=e[0]),this.stack.env.font&&(i.mathvariant=this.stack.env.font),this.Push(this.mmlToken(s.mi(s.entity("#x"+e)).With(i)))},csDelimiter:function(t,e){var i={};r(e)&&(i=e[1],e=e[0]),e=4===e.length?s.entity("#x"+e):s.chars(e),this.Push(this.mmlToken(s.mo(e).With({fence:!1,stretchy:!1}).With(i)))},csUndefined:function(e){t.Error(["UndefinedControlSequence","Undefined control sequence %1",e])},Variable:function(t){var e={};this.stack.env.font&&(e.mathvariant=this.stack.env.font),this.Push(this.mmlToken(s.mi(s.chars(t)).With(e)))},Number:function(t){var e,i=this.string.slice(this.i-1).match(h.number);i?(e=s.mn(i[0].replace(/[{}]/g,"")),this.i+=i[0].length-1):e=s.mo(s.chars(t)),this.stack.env.font&&(e.mathvariant=this.stack.env.font),this.Push(this.mmlToken(e))},Open:function(t){this.Push(o.open())},Close:function(t){this.Push(o.close())},Tilde:function(t){this.Push(s.mtext(s.chars(" ")))},Space:function(t){},Superscript:function(e){this.GetNext().match(/\d/)&&(this.string=this.string.substr(0,this.i+1)+" "+this.string.substr(this.i+1));var i,a,r=this.stack.Top();"prime"===r.type?(a=r.data[0],i=r.data[1],this.stack.Pop()):(a=this.stack.Prev())||(a=s.mi("")),a.isEmbellishedWrapper&&(a=a.data[0].data[0]);var n=a.movesupsub,h=a.sup;("msubsup"===a.type&&a.data[a.sup]||"munderover"===a.type&&a.data[a.over]&&!a.subsupOK)&&t.Error(["DoubleExponent","Double exponent: use braces to clarify"]),"msubsup"!==a.type&&(n?(("munderover"!==a.type||a.data[a.over])&&(a.movablelimits&&a.isa(s.mi)&&(a=this.mi2mo(a)),a=s.munderover(a,null,null).With({movesupsub:!0})),h=a.over):h=(a=s.msubsup(a,null,null)).sup),this.Push(o.subsup(a).With({position:h,primes:i,movesupsub:n}))},Subscript:function(e){this.GetNext().match(/\d/)&&(this.string=this.string.substr(0,this.i+1)+" "+this.string.substr(this.i+1));var i,a,r=this.stack.Top();"prime"===r.type?(a=r.data[0],i=r.data[1],this.stack.Pop()):(a=this.stack.Prev())||(a=s.mi("")),a.isEmbellishedWrapper&&(a=a.data[0].data[0]);var n=a.movesupsub,h=a.sub;("msubsup"===a.type&&a.data[a.sub]||"munderover"===a.type&&a.data[a.under]&&!a.subsupOK)&&t.Error(["DoubleSubscripts","Double subscripts: use braces to clarify"]),"msubsup"!==a.type&&(n?(("munderover"!==a.type||a.data[a.under])&&(a.movablelimits&&a.isa(s.mi)&&(a=this.mi2mo(a)),a=s.munderover(a,null,null).With({movesupsub:!0})),h=a.under):h=(a=s.msubsup(a,null,null)).sub),this.Push(o.subsup(a).With({position:h,primes:i,movesupsub:n}))},PRIME:"′",SMARTQUOTE:"’",Prime:function(e){var i=this.stack.Prev();i||(i=s.mi()),"msubsup"===i.type&&i.data[i.sup]&&t.Error(["DoubleExponentPrime","Prime causes double exponent: use braces to clarify"]);var a="";this.i--;do{a+=this.PRIME,this.i++,e=this.GetNext()}while("'"===e||e===this.SMARTQUOTE);a=["","′","″","‴","⁗"][a.length]||a,this.Push(o.prime(i,this.mmlToken(s.mo(a))))},mi2mo:function(t){var e,i=s.mo();for(e in i.Append.apply(i,t.data),i.defaults)i.defaults.hasOwnProperty(e)&&null!=t[e]&&(i[e]=t[e]);for(e in s.copyAttributes)s.copyAttributes.hasOwnProperty(e)&&null!=t[e]&&(i[e]=t[e]);return i.lspace=i.rspace="0",i.useMMLspacing&=~(i.SPACE_ATTR.lspace|i.SPACE_ATTR.rspace),i},Comment:function(t){for(;this.i<this.string.length&&"\n"!=this.string.charAt(this.i);)this.i++},Hash:function(e){t.Error(["CantUseHash1","You can't use 'macro parameter character #' in math mode"])},Other:function(t){var e,i;this.stack.env.font&&(e={mathvariant:this.stack.env.font}),h.remap.hasOwnProperty(t)?(t=h.remap[t],r(t)&&(e=t[1],t=t[0]),i=s.mo(s.entity("#x"+t)).With(e)):i=s.mo(t).With(e),i.autoDefault("stretchy",!0)&&(i.stretchy=!1),""==i.autoDefault("texClass",!0)&&(i=s.TeXAtom(i)),this.Push(this.mmlToken(i))},SetFont:function(t,e){this.stack.env.font=e},SetStyle:function(t,e,i,s){this.stack.env.style=e,this.stack.env.level=s,this.Push(o.style().With({styles:{displaystyle:i,scriptlevel:s}}))},SetSize:function(t,e){this.stack.env.size=e,this.Push(o.style().With({styles:{mathsize:e+"em"}}))},Color:function(t){var e=this.GetArgument(t),i=this.stack.env.color;this.stack.env.color=e;var a=this.ParseArg(t);i?this.stack.env.color=i:delete this.stack.env.color,this.Push(s.mstyle(a).With({mathcolor:e}))},Spacer:function(t,e){this.Push(s.mspace().With({width:e,mathsize:s.SIZE.NORMAL,scriptlevel:0}))},LeftRight:function(t){this.Push(o[t.substr(1)]().With({delim:this.GetDelimiter(t)}))},Middle:function(e){var i=this.GetDelimiter(e);this.Push(s.TeXAtom().With({texClass:s.TEXCLASS.CLOSE})),"left"!==this.stack.Top().type&&t.Error(["MisplacedMiddle","%1 must be within \\left and \\right",e]),this.Push(s.mo(i).With({stretchy:!0})),this.Push(s.TeXAtom().With({texClass:s.TEXCLASS.OPEN}))},NamedFn:function(t,e){e||(e=t.substr(1));var i=s.mi(e).With({texClass:s.TEXCLASS.OP});this.Push(o.fn(this.mmlToken(i)))},NamedOp:function(t,e){e||(e=t.substr(1)),e=e.replace(/&thinsp;/," ");var i=s.mo(e).With({movablelimits:!0,movesupsub:!0,form:s.FORM.PREFIX,texClass:s.TEXCLASS.OP});this.Push(this.mmlToken(i))},Limits:function(e,i){var a=this.stack.Prev("nopop");(!a||a.Get("texClass")!==s.TEXCLASS.OP&&null==a.movesupsub)&&t.Error(["MisplacedLimits","%1 is allowed only on operators",e]);var r=this.stack.Top();"munderover"!==a.type||i?"msubsup"===a.type&&i&&(a=r.data[r.data.length-1]=s.munderover.apply(s.underover,a.data)):a=r.data[r.data.length-1]=s.msubsup.apply(s.subsup,a.data),a.movesupsub=!!i,a.Core().movablelimits=!1,a.movablelimits&&(a.movablelimits=!1)},Over:function(t,e,i){var s=o.over().With({name:t});e||i?(s.open=e,s.close=i):t.match(/withdelims$/)&&(s.open=this.GetDelimiter(t),s.close=this.GetDelimiter(t)),t.match(/^\\above/)?s.thickness=this.GetDimen(t):(t.match(/^\\atop/)||e||i)&&(s.thickness=0),this.Push(s)},Frac:function(t){var e=this.ParseArg(t),i=this.ParseArg(t);this.Push(s.mfrac(e,i))},Sqrt:function(e){var i=this.GetBrackets(e),a=this.GetArgument(e);"\\frac"===a&&(a+="{"+this.GetArgument(a)+"}{"+this.GetArgument(a)+"}");var r=t.Parse(a,this.stack.env).mml();r=i?s.mroot(r,this.parseRoot(i)):s.msqrt.apply(s,r.array()),this.Push(r)},Root:function(t){var e=this.GetUpTo(t,"\\of"),i=this.ParseArg(t);this.Push(s.mroot(i,this.parseRoot(e)))},parseRoot:function(e){var i=this.stack.env,a=i.inRoot;i.inRoot=!0;var r=t.Parse(e,i);e=r.mml();var n=r.stack.global;return(n.leftRoot||n.upRoot)&&(e=s.mpadded(e),n.leftRoot&&(e.width=n.leftRoot),n.upRoot&&(e.voffset=n.upRoot,e.height=n.upRoot)),i.inRoot=a,e},MoveRoot:function(e,i){this.stack.env.inRoot||t.Error(["MisplacedMoveRoot","%1 can appear only within a root",e]),this.stack.global[i]&&t.Error(["MultipleMoveRoot","Multiple use of %1",e]);var s=this.GetArgument(e);s.match(/-?[0-9]+/)||t.Error(["IntegerArg","The argument to %1 must be an integer",e]),"-"!==(s=s/15+"em").substr(0,1)&&(s="+"+s),this.stack.global[i]=s},Accent:function(t,e,i){var a=this.ParseArg(t),r={accent:!0};this.stack.env.font&&(r.mathvariant=this.stack.env.font);var n=this.mmlToken(s.mo(s.entity("#x"+e)).With(r));n.stretchy=!!i;var o=a.isEmbellished()?a.CoreMO():a;o.isa(s.mo)&&(o.movablelimits=!1),this.Push(s.TeXAtom(s.munderover(a,null,n).With({accent:!0})))},UnderOver:function(t,e,i,a){var r={o:"over",u:"under"}[t.charAt(1)],n=this.ParseArg(t);n.Get("movablelimits")&&(n.movablelimits=!1),n.isa(s.munderover)&&n.isEmbellished()&&(n.Core().With({lspace:0,rspace:0}),n=s.mrow(s.mo().With({rspace:0}),n));var o=s.munderover(n,null,null);o.SetData(o[r],this.mmlToken(s.mo(s.entity("#x"+e)).With({stretchy:!0,accent:!a}))),i&&(o=s.TeXAtom(o).With({texClass:s.TEXCLASS.OP,movesupsub:!0})),this.Push(o.With({subsupOK:!0}))},Overset:function(t){var e=this.ParseArg(t),i=this.ParseArg(t);i.movablelimits=!1,this.Push(s.mover(i,e))},Underset:function(t){var e=this.ParseArg(t),i=this.ParseArg(t);i.movablelimits=!1,this.Push(s.munder(i,e))},TeXAtom:function(e,i){var a,r={texClass:i};if(i==s.TEXCLASS.OP){r.movesupsub=r.movablelimits=!0;var n=this.GetArgument(e),h=n.match(/^\s*\\rm\s+([a-zA-Z0-9 ]+)$/);h?(r.mathvariant=s.VARIANT.NORMAL,a=o.fn(this.mmlToken(s.mi(h[1]).With(r)))):a=o.fn(s.TeXAtom(t.Parse(n,this.stack.env).mml()).With(r))}else a=s.TeXAtom(this.ParseArg(e)).With(r);this.Push(a)},MmlToken:function(e){var i,a=this.GetArgument(e),r=this.GetBrackets(e,"").replace(/^\s+/,""),n=this.GetArgument(e),o={attrNames:[]};for(s[a]&&s[a].prototype.isToken||t.Error(["NotMathMLToken","%1 is not a token element",a]);""!==r;){(i=r.match(/^([a-z]+)\s*=\s*('[^']*'|"[^"]*"|[^ ,]*)\s*,?\s*/i))||t.Error(["InvalidMathMLAttr","Invalid MathML attribute: %1",r]),null!=s[a].prototype.defaults[i[1]]||this.MmlTokenAllow[i[1]]||t.Error(["UnknownAttrForElement","%1 is not a recognized attribute for %2",i[1],a]);var h=this.MmlFilterAttribute(i[1],i[2].replace(/^(['"])(.*)\1$/,"$2"));h&&("true"===h.toLowerCase()?h=!0:"false"===h.toLowerCase()&&(h=!1),o[i[1]]=h,o.attrNames.push(i[1])),r=r.substr(i[0].length)}this.Push(this.mmlToken(s[a](n).With(o)))},MmlFilterAttribute:function(t,e){return e},MmlTokenAllow:{fontfamily:1,fontsize:1,fontweight:1,fontstyle:1,color:1,background:1,id:1,class:1,href:1,style:1},Strut:function(t){this.Push(s.mpadded(s.mrow()).With({height:"8.6pt",depth:"3pt",width:0}))},Phantom:function(t,e,i){var a=this.ParseArg(t);(e||i)&&(a=s.mpadded(a),i&&(a.height=a.depth=0),e&&(a.width=0)),this.Push(s.TeXAtom(s.mphantom(a)))},Smash:function(t){var e=this.trimSpaces(this.GetBrackets(t,"")),i=s.mpadded(this.ParseArg(t));switch(e){case"b":i.depth=0;break;case"t":i.height=0;break;default:i.height=i.depth=0}this.Push(s.TeXAtom(i))},Lap:function(t){var e=s.mpadded(this.ParseArg(t)).With({width:0});"\\llap"===t&&(e.lspace="-1width"),this.Push(s.TeXAtom(e))},RaiseLower:function(t){var e=this.GetDimen(t),i=o.position().With({name:t,move:"vertical"});"-"===e.charAt(0)&&(e=e.slice(1),t={raise:"\\lower",lower:"\\raise"}[t.substr(1)]),"\\lower"===t?(i.dh="-"+e,i.dd="+"+e):(i.dh="+"+e,i.dd="-"+e),this.Push(i)},MoveLeftRight:function(t){var e=this.GetDimen(t),i="-"===e.charAt(0)?e.slice(1):"-"+e;if("\\moveleft"===t){var a=e;e=i,i=a}this.Push(o.position().With({name:t,move:"horizontal",left:s.mspace().With({width:e,mathsize:s.SIZE.NORMAL}),right:s.mspace().With({width:i,mathsize:s.SIZE.NORMAL})}))},Hskip:function(t){this.Push(s.mspace().With({width:this.GetDimen(t),mathsize:s.SIZE.NORMAL}))},Rule:function(t,e){var i={width:this.GetDimen(t),height:this.GetDimen(t),depth:this.GetDimen(t)};"blank"!==e&&(i.mathbackground=this.stack.env.color||"black"),this.Push(s.mspace().With(i))},rule:function(t){var e=this.GetBrackets(t),i=this.GetDimen(t),a=this.GetDimen(t),r=s.mspace().With({width:i,height:a,mathbackground:this.stack.env.color||"black"});e&&(r=s.mpadded(r).With({voffset:e}),e.match(/^\-/)?(r.height=e,r.depth="+"+e.substr(1)):r.height="+"+e),this.Push(r)},MakeBig:function(t,e,i){i*=h.p_height,i=String(i).replace(/(\.\d\d\d).+/,"$1")+"em";var a=this.GetDelimiter(t,!0);this.Push(s.mstyle(s.TeXAtom(s.mo(a).With({minsize:i,maxsize:i,fence:!0,stretchy:!0,symmetric:!0})).With({texClass:e})).With({scriptlevel:0}))},BuildRel:function(t){var e=this.ParseUpTo(t,"\\over"),i=this.ParseArg(t);this.Push(s.TeXAtom(s.munderover(i,null,e)).With({texClass:s.TEXCLASS.REL}))},HBox:function(t,e){this.Push.apply(this,this.InternalMath(this.GetArgument(t),e))},FBox:function(t){this.Push(s.menclose.apply(s,this.InternalMath(this.GetArgument(t))).With({notation:"box"}))},Not:function(t){this.Push(o.not())},Dots:function(t){this.Push(o.dots().With({ldots:this.mmlToken(s.mo(s.entity("#x2026")).With({stretchy:!1})),cdots:this.mmlToken(s.mo(s.entity("#x22EF")).With({stretchy:!1}))}))},Require:function(t){var e=this.GetArgument(t).replace(/.*\//,"").replace(/[^a-z0-9_.-]/gi,"");this.Extension(null,e)},Extension:function(s,a,r){(a=t.extensionDir+"/"+a).match(/\.js$/)||(a+=".js"),i.loaded[i.fileURL(a)]||(null!=s&&delete h[r||"macros"][s.replace(/^\\/,"")],e.RestartAfter(i.Require(a)))},Macro:function(e,i,s,a){if(s){var r=[];if(null!=a){var n=this.GetBrackets(e);r.push(null==n?a:n)}for(var o=r.length;o<s;o++)r.push(this.GetArgument(e));i=this.SubstituteArgs(r,i)}this.string=this.AddArgs(i,this.string.slice(this.i)),this.i=0,++this.macroCount>t.config.MAXMACROS&&t.Error(["MaxMacroSub1","MathJax maximum macro substitution count exceeded; is there a recursive macro call?"])},Matrix:function(e,i,s,a,r,n,h,l,c){var m=this.GetNext();""===m&&t.Error(["MissingArgFor","Missing argument for %1",e]),"{"===m?this.i++:(this.string=m+"}"+this.string.slice(this.i+1),this.i=0);var u=o.array().With({requireClose:!0,arraydef:{rowspacing:n||"4pt",columnspacing:r||"1em"}});l&&(u.isCases=!0),c&&(u.isNumbered=!0,u.arraydef.side=c),(i||s)&&(u.open=i,u.close=s),"D"===h&&(u.arraydef.displaystyle=!0),null!=a&&(u.arraydef.columnalign=a),this.Push(u)},Entry:function(e){if(this.Push(o.cell().With({isEntry:!0,name:e})),this.stack.Top().isCases){for(var i=this.string,s=0,a=-1,r=this.i,n=i.length;r<n;){var h=i.charAt(r);"{"===h?(s++,r++):"}"===h?0===s?n=0:(0==--s&&a<0&&(a=r-this.i),r++):"&"===h&&0===s?t.Error(["ExtraAlignTab","Extra alignment tab in \\cases text"]):"\\"===h?i.substr(r).match(/^((\\cr)[^a-zA-Z]|\\\\)/)?n=0:r+=2:r++}var l=i.substr(this.i,r-this.i);l.match(/^\s*\\text[^a-zA-Z]/)&&a===l.replace(/\s+$/,"").length-1||(this.Push.apply(this,this.InternalMath(l,0)),this.i=r)}},Cr:function(t){this.Push(o.cell().With({isCR:!0,name:t}))},CrLaTeX:function(e,i){var a;i||"["!==this.string.charAt(this.i)||(a=this.GetBrackets(e,"").replace(/ /g,"").replace(/,/,"."))&&!this.matchDimen(a)&&t.Error(["BracketMustBeDimension","Bracket argument to %1 must be a dimension",e]),this.Push(o.cell().With({isCR:!0,name:e,linebreak:!0}));var r=this.stack.Top();if(r.isa(o.array)){if(a&&r.arraydef.rowspacing){var n=r.arraydef.rowspacing.split(/ /);for(r.rowspacing||(r.rowspacing=this.dimen2em(n[0]));n.length<r.table.length;)n.push(this.Em(r.rowspacing));n[r.table.length-1]=this.Em(Math.max(0,r.rowspacing+this.dimen2em(a))),r.arraydef.rowspacing=n.join(" ")}}else a&&this.Push(s.mspace().With({depth:a})),this.Push(s.mspace().With({linebreak:s.LINEBREAK.NEWLINE}))},emPerInch:7.2,pxPerInch:72,matchDimen:function(t){return t.match(/^(-?(?:\.\d+|\d+(?:\.\d*)?))(px|pt|em|ex|mu|pc|in|mm|cm)$/)},dimen2em:function(t){var e=this.matchDimen(t),i=parseFloat(e[1]||"1"),s=e[2];return"em"===s?i:"ex"===s?.43*i:"pt"===s?i/10:"pc"===s?1.2*i:"px"===s?i*this.emPerInch/this.pxPerInch:"in"===s?i*this.emPerInch:"cm"===s?i*this.emPerInch/2.54:"mm"===s?i*this.emPerInch/25.4:"mu"===s?i/18:0},Em:function(t){return Math.abs(t)<6e-4?"0em":t.toFixed(3).replace(/\.?0+$/,"")+"em"},HLine:function(e,i){null==i&&(i="solid");var s=this.stack.Top();if(s.isa(o.array)&&!s.data.length||t.Error(["Misplaced","Misplaced %1",e]),0==s.table.length)s.frame.push("top");else{for(var a=s.arraydef.rowlines?s.arraydef.rowlines.split(/ /):[];a.length<s.table.length;)a.push("none");a[s.table.length-1]=i,s.arraydef.rowlines=a.join(" ")}},HFill:function(e){var i=this.stack.Top();i.isa(o.array)?i.hfill.push(i.data.length):t.Error(["UnsupportedHFill","Unsupported use of %1",e])},BeginEnd:function(e){var i=this.GetArgument(e),s=!1;i.match(/^\\end\\/)&&(s=!0,i=i.substr(5)),i.match(/\\/i)&&t.Error(["InvalidEnv","Invalid environment name '%1'",i]);var a=this.envFindName(i);a||t.Error(["UnknownEnv","Unknown environment '%1'",i]),r(a)||(a=[a]);var n=r(a[1])?a[1][0]:a[1],h=o.begin().With({name:i,end:n,parse:this});"\\end"===e?h=!s&&r(a[1])&&this[a[1][1]]?this[a[1][1]].apply(this,[h].concat(a.slice(2))):o.end().With({name:i}):(++this.macroCount>t.config.MAXMACROS&&t.Error(["MaxMacroSub2","MathJax maximum substitution count exceeded; is there a recursive latex environment?"]),a[0]&&this[a[0]]&&(h=this[a[0]].apply(this,[h].concat(a.slice(2))))),this.Push(h)},envFindName:function(t){return h.environment.hasOwnProperty(t)?h.environment[t]:null},Equation:function(t,e){return e},ExtensionEnv:function(t,e){this.Extension(t.name,e,"environment")},Array:function(t,e,i,s,a,r,n,h){s||(s=this.GetArgument("\\begin{"+t.name+"}"));var l=("c"+s).replace(/[^clr|:]/g,"").replace(/[^|:]([|:])+/g,"$1");s=(s=s.replace(/[^clr]/g,"").split("").join(" ")).replace(/l/g,"left").replace(/r/g,"right").replace(/c/g,"center");var c=o.array().With({arraydef:{columnalign:s,columnspacing:a||"1em",rowspacing:r||"4pt"}});return l.match(/[|:]/)&&(l.charAt(0).match(/[|:]/)&&(c.frame.push("left"),c.frame.dashed=":"===l.charAt(0)),l.charAt(l.length-1).match(/[|:]/)&&c.frame.push("right"),l=l.substr(1,l.length-2),c.arraydef.columnlines=l.split("").join(" ").replace(/[^|: ]/g,"none").replace(/\|/g,"solid").replace(/:/g,"dashed")),e&&(c.open=this.convertDelimiter(e)),i&&(c.close=this.convertDelimiter(i)),"D"===n?c.arraydef.displaystyle=!0:n&&(c.arraydef.displaystyle=!1),"S"===n&&(c.arraydef.scriptlevel=1),h&&(c.arraydef.useHeight=!1),this.Push(t),c},AlignedArray:function(t){var e=this.GetBrackets("\\begin{"+t.name+"}");return this.setArrayAlign(this.Array.apply(this,arguments),e)},setArrayAlign:function(t,e){return"t"===(e=this.trimSpaces(e||""))?t.arraydef.align="baseline 1":"b"===e?t.arraydef.align="baseline -1":"c"===e?t.arraydef.align="center":e&&(t.arraydef.align=e),t},convertDelimiter:function(t){return t&&(t=h.delimiter.hasOwnProperty(t)?h.delimiter[t]:null),null==t?null:(r(t)&&(t=t[0]),4===t.length&&(t=String.fromCharCode(parseInt(t,16))),t)},trimSpaces:function(t){if("string"!=typeof t)return t;var e=t.replace(/^\s+|\s+$/g,"");return e.match(/\\$/)&&t.match(/ $/)&&(e+=" "),e},nextIsSpace:function(){return this.string.charAt(this.i).match(/\s/)},GetNext:function(){for(;this.nextIsSpace();)this.i++;return this.string.charAt(this.i)},GetCS:function(){var t=this.string.slice(this.i).match(/^([a-z]+|.) ?/i);return t?(this.i+=t[1].length,t[1]):(this.i++," ")},GetArgument:function(e,i){switch(this.GetNext()){case"":return i||t.Error(["MissingArgFor","Missing argument for %1",e]),null;case"}":return i||t.Error(["ExtraCloseMissingOpen","Extra close brace or missing open brace"]),null;case"\\":return this.i++,"\\"+this.GetCS();case"{":for(var s=++this.i,a=1;this.i<this.string.length;)switch(this.string.charAt(this.i++)){case"\\":this.i++;break;case"{":a++;break;case"}":if(0==--a)return this.string.slice(s,this.i-1)}t.Error(["MissingCloseBrace","Missing close brace"])}return this.string.charAt(this.i++)},GetBrackets:function(e,i){if("["!=this.GetNext())return i;for(var s=++this.i,a=0;this.i<this.string.length;)switch(this.string.charAt(this.i++)){case"{":a++;break;case"\\":this.i++;break;case"}":a--<=0&&t.Error(["ExtraCloseLooking","Extra close brace while looking for %1","']'"]);break;case"]":if(0==a)return this.string.slice(s,this.i-1)}t.Error(["MissingCloseBracket","Couldn't find closing ']' for argument to %1",e])},GetDelimiter:function(e,i){for(;this.nextIsSpace();)this.i++;var s=this.string.charAt(this.i);if(this.i++,this.i<=this.string.length&&("\\"==s?s+=this.GetCS(e):"{"===s&&i&&(this.i--,s=this.GetArgument(e).replace(/^\s+/,"").replace(/\s+$/,"")),h.delimiter.hasOwnProperty(s)))return this.convertDelimiter(s);t.Error(["MissingOrUnrecognizedDelim","Missing or unrecognized delimiter for %1",e])},GetDimen:function(e){var i;if(this.nextIsSpace()&&this.i++,"{"==this.string.charAt(this.i)){if((i=this.GetArgument(e)).match(/^\s*([-+]?([.,]\d+|\d+([.,]\d*)?))\s*(pt|em|ex|mu|px|mm|cm|in|pc)\s*$/))return i.replace(/ /g,"").replace(/,/,".")}else{var s=(i=this.string.slice(this.i)).match(/^\s*(([-+]?([.,]\d+|\d+([.,]\d*)?))\s*(pt|em|ex|mu|px|mm|cm|in|pc)) ?/);if(s)return this.i+=s[0].length,s[1].replace(/ /g,"").replace(/,/,".")}t.Error(["MissingDimOrUnits","Missing dimension or its units for %1",e])},GetUpTo:function(e,i){for(;this.nextIsSpace();)this.i++;for(var s,a,r=this.i,n=0;this.i<this.string.length;){switch(s=this.i,a=this.string.charAt(this.i++)){case"\\":a+=this.GetCS();break;case"{":n++;break;case"}":0==n&&t.Error(["ExtraCloseLooking","Extra close brace while looking for %1",i]),n--}if(0==n&&a==i)return this.string.slice(r,s)}t.Error(["TokenNotFoundForCommand","Couldn't find %1 for %2",i,e])},ParseArg:function(e){return t.Parse(this.GetArgument(e),this.stack.env).mml()},ParseUpTo:function(e,i){return t.Parse(this.GetUpTo(e,i),this.stack.env).mml()},InternalMath:function(e,i){var a,r=this.stack.env.font?{mathvariant:this.stack.env.font}:{},n=[],o=0,h=0,l="",c=0;if(e.match(/\\?[${}\\]|\\\(|\\(eq)?ref\s*\{/)){for(;o<e.length;)if("$"===(a=e.charAt(o++)))"$"===l&&0===c?(n.push(s.TeXAtom(t.Parse(e.slice(h,o-1),{}).mml())),l="",h=o):""===l&&(h<o-1&&n.push(this.InternalText(e.slice(h,o-1),r)),l="$",h=o);else if("{"===a&&""!==l)c++;else if("}"===a)"}"===l&&0===c?(n.push(s.TeXAtom(t.Parse(e.slice(h,o),{}).mml().With(r))),l="",h=o):""!==l&&c&&c--;else if("\\"===a)if(""===l&&e.substr(o).match(/^(eq)?ref\s*\{/)){var m=RegExp["$&"].length;h<o-1&&n.push(this.InternalText(e.slice(h,o-1),r)),l="}",h=o-1,o+=m}else"("===(a=e.charAt(o++))&&""===l?(h<o-2&&n.push(this.InternalText(e.slice(h,o-2),r)),l=")",h=o):")"===a&&")"===l&&0===c?(n.push(s.TeXAtom(t.Parse(e.slice(h,o-2),{}).mml())),l="",h=o):a.match(/[${}\\]/)&&""===l&&(o--,e=e.substr(0,o-1)+e.substr(o));""!==l&&t.Error(["MathNotTerminated","Math not terminated in text box"])}return h<e.length&&n.push(this.InternalText(e.slice(h),r)),null!=i?n=[s.mstyle.apply(s,n).With({displaystyle:!1,scriptlevel:i})]:n.length>1&&(n=[s.mrow.apply(s,n)]),n},InternalText:function(t,e){return t=t.replace(/^\s+/," ").replace(/\s+$/," "),s.mtext(s.chars(t)).With(e)},setDef:function(t,e){e.isUser=!0,h.macros[t]=e},setEnv:function(t,e){e.isUser=!0,h.environment[t]=e},SubstituteArgs:function(e,i){for(var s,a="",r="",n=0;n<i.length;)"\\"===(s=i.charAt(n++))?a+=s+i.charAt(n++):"#"===s?"#"===(s=i.charAt(n++))?a+=s:((!s.match(/[1-9]/)||s>e.length)&&t.Error(["IllegalMacroParam","Illegal macro parameter reference"]),r=this.AddArgs(this.AddArgs(r,a),e[s-1]),a=""):a+=s;return this.AddArgs(r,a)},AddArgs:function(e,i){return i.match(/^[a-z]/i)&&e.match(/(^|[^\\])(\\\\)*\\[a-z]+$/i)&&(e+=" "),e.length+i.length>t.config.MAXBUFFER&&t.Error(["MaxBufferSize","MathJax internal buffer size exceeded; is there a recursive macro call?"]),e+i}});t.Augment({Stack:n,Parse:l,Definitions:h,Startup:function(){if(s=MathJax.ElementJax.mml,e.Insert(h,{letter:/[a-z]/i,digit:/[0-9.]/,number:/^(?:[0-9]+(?:\{,\}[0-9]{3})*(?:\.[0-9]*)*|\.[0-9]+)/,special:{"\\":"ControlSequence","{":"Open","}":"Close","~":"Tilde","^":"Superscript",_:"Subscript"," ":"Space","\t":"Space","\r":"Space","\n":"Space","'":"Prime","%":"Comment","&":"Entry","#":"Hash"," ":"Space","’":"Prime"},remap:{"-":"2212","*":"2217","`":"2018"},mathchar0mi:{alpha:"03B1",beta:"03B2",gamma:"03B3",delta:"03B4",epsilon:"03F5",zeta:"03B6",eta:"03B7",theta:"03B8",iota:"03B9",kappa:"03BA",lambda:"03BB",mu:"03BC",nu:"03BD",xi:"03BE",omicron:"03BF",pi:"03C0",rho:"03C1",sigma:"03C3",tau:"03C4",upsilon:"03C5",phi:"03D5",chi:"03C7",psi:"03C8",omega:"03C9",varepsilon:"03B5",vartheta:"03D1",varpi:"03D6",varrho:"03F1",varsigma:"03C2",varphi:"03C6",S:["00A7",{mathvariant:s.VARIANT.NORMAL}],aleph:["2135",{mathvariant:s.VARIANT.NORMAL}],hbar:["210F",{variantForm:!0}],imath:"0131",jmath:"0237",ell:"2113",wp:["2118",{mathvariant:s.VARIANT.NORMAL}],Re:["211C",{mathvariant:s.VARIANT.NORMAL}],Im:["2111",{mathvariant:s.VARIANT.NORMAL}],partial:["2202",{mathvariant:s.VARIANT.NORMAL}],infty:["221E",{mathvariant:s.VARIANT.NORMAL}],prime:["2032",{mathvariant:s.VARIANT.NORMAL,variantForm:!0}],emptyset:["2205",{mathvariant:s.VARIANT.NORMAL}],nabla:["2207",{mathvariant:s.VARIANT.NORMAL}],top:["22A4",{mathvariant:s.VARIANT.NORMAL}],bot:["22A5",{mathvariant:s.VARIANT.NORMAL}],angle:["2220",{mathvariant:s.VARIANT.NORMAL}],triangle:["25B3",{mathvariant:s.VARIANT.NORMAL}],backslash:["2216",{mathvariant:s.VARIANT.NORMAL,variantForm:!0}],forall:["2200",{mathvariant:s.VARIANT.NORMAL}],exists:["2203",{mathvariant:s.VARIANT.NORMAL}],neg:["00AC",{mathvariant:s.VARIANT.NORMAL}],lnot:["00AC",{mathvariant:s.VARIANT.NORMAL}],flat:["266D",{mathvariant:s.VARIANT.NORMAL}],natural:["266E",{mathvariant:s.VARIANT.NORMAL}],sharp:["266F",{mathvariant:s.VARIANT.NORMAL}],clubsuit:["2663",{mathvariant:s.VARIANT.NORMAL}],diamondsuit:["2662",{mathvariant:s.VARIANT.NORMAL}],heartsuit:["2661",{mathvariant:s.VARIANT.NORMAL}],spadesuit:["2660",{mathvariant:s.VARIANT.NORMAL}]},mathchar0mo:{surd:"221A",coprod:["2210",{texClass:s.TEXCLASS.OP,movesupsub:!0}],bigvee:["22C1",{texClass:s.TEXCLASS.OP,movesupsub:!0}],bigwedge:["22C0",{texClass:s.TEXCLASS.OP,movesupsub:!0}],biguplus:["2A04",{texClass:s.TEXCLASS.OP,movesupsub:!0}],bigcap:["22C2",{texClass:s.TEXCLASS.OP,movesupsub:!0}],bigcup:["22C3",{texClass:s.TEXCLASS.OP,movesupsub:!0}],int:["222B",{texClass:s.TEXCLASS.OP}],intop:["222B",{texClass:s.TEXCLASS.OP,movesupsub:!0,movablelimits:!0}],iint:["222C",{texClass:s.TEXCLASS.OP}],iiint:["222D",{texClass:s.TEXCLASS.OP}],prod:["220F",{texClass:s.TEXCLASS.OP,movesupsub:!0}],sum:["2211",{texClass:s.TEXCLASS.OP,movesupsub:!0}],bigotimes:["2A02",{texClass:s.TEXCLASS.OP,movesupsub:!0}],bigoplus:["2A01",{texClass:s.TEXCLASS.OP,movesupsub:!0}],bigodot:["2A00",{texClass:s.TEXCLASS.OP,movesupsub:!0}],oint:["222E",{texClass:s.TEXCLASS.OP}],bigsqcup:["2A06",{texClass:s.TEXCLASS.OP,movesupsub:!0}],smallint:["222B",{largeop:!1}],triangleleft:"25C3",triangleright:"25B9",bigtriangleup:"25B3",bigtriangledown:"25BD",wedge:"2227",land:"2227",vee:"2228",lor:"2228",cap:"2229",cup:"222A",ddagger:"2021",dagger:"2020",sqcap:"2293",sqcup:"2294",uplus:"228E",amalg:"2A3F",diamond:"22C4",bullet:"2219",wr:"2240",div:"00F7",odot:["2299",{largeop:!1}],oslash:["2298",{largeop:!1}],otimes:["2297",{largeop:!1}],ominus:["2296",{largeop:!1}],oplus:["2295",{largeop:!1}],mp:"2213",pm:"00B1",circ:"2218",bigcirc:"25EF",setminus:["2216",{variantForm:!0}],cdot:"22C5",ast:"2217",times:"00D7",star:"22C6",propto:"221D",sqsubseteq:"2291",sqsupseteq:"2292",parallel:"2225",mid:"2223",dashv:"22A3",vdash:"22A2",leq:"2264",le:"2264",geq:"2265",ge:"2265",lt:"003C",gt:"003E",succ:"227B",prec:"227A",approx:"2248",succeq:"2AB0",preceq:"2AAF",supset:"2283",subset:"2282",supseteq:"2287",subseteq:"2286",in:"2208",ni:"220B",notin:"2209",owns:"220B",gg:"226B",ll:"226A",sim:"223C",simeq:"2243",perp:"22A5",equiv:"2261",asymp:"224D",smile:"2323",frown:"2322",ne:"2260",neq:"2260",cong:"2245",doteq:"2250",bowtie:"22C8",models:"22A8",notChar:"29F8",Leftrightarrow:"21D4",Leftarrow:"21D0",Rightarrow:"21D2",leftrightarrow:"2194",leftarrow:"2190",gets:"2190",rightarrow:"2192",to:"2192",mapsto:"21A6",leftharpoonup:"21BC",leftharpoondown:"21BD",rightharpoonup:"21C0",rightharpoondown:"21C1",nearrow:"2197",searrow:"2198",nwarrow:"2196",swarrow:"2199",rightleftharpoons:"21CC",hookrightarrow:"21AA",hookleftarrow:"21A9",longleftarrow:"27F5",Longleftarrow:"27F8",longrightarrow:"27F6",Longrightarrow:"27F9",Longleftrightarrow:"27FA",longleftrightarrow:"27F7",longmapsto:"27FC",ldots:"2026",cdots:"22EF",vdots:"22EE",ddots:"22F1",dotsc:"2026",dotsb:"22EF",dotsm:"22EF",dotsi:"22EF",dotso:"2026",ldotp:["002E",{texClass:s.TEXCLASS.PUNCT}],cdotp:["22C5",{texClass:s.TEXCLASS.PUNCT}],colon:["003A",{texClass:s.TEXCLASS.PUNCT}]},mathchar7:{Gamma:"0393",Delta:"0394",Theta:"0398",Lambda:"039B",Xi:"039E",Pi:"03A0",Sigma:"03A3",Upsilon:"03A5",Phi:"03A6",Psi:"03A8",Omega:"03A9",_:"005F","#":"0023",$:"0024","%":"0025","&":"0026",And:"0026"},delimiter:{"(":"(",")":")","[":"[","]":"]","<":"27E8",">":"27E9","\\lt":"27E8","\\gt":"27E9","/":"/","|":["|",{texClass:s.TEXCLASS.ORD}],".":"","\\\\":"\\","\\lmoustache":"23B0","\\rmoustache":"23B1","\\lgroup":"27EE","\\rgroup":"27EF","\\arrowvert":"23D0","\\Arrowvert":"2016","\\bracevert":"23AA","\\Vert":["2016",{texClass:s.TEXCLASS.ORD}],"\\|":["2016",{texClass:s.TEXCLASS.ORD}],"\\vert":["|",{texClass:s.TEXCLASS.ORD}],"\\uparrow":"2191","\\downarrow":"2193","\\updownarrow":"2195","\\Uparrow":"21D1","\\Downarrow":"21D3","\\Updownarrow":"21D5","\\backslash":"\\","\\rangle":"27E9","\\langle":"27E8","\\rbrace":"}","\\lbrace":"{","\\}":"}","\\{":"{","\\rceil":"2309","\\lceil":"2308","\\rfloor":"230B","\\lfloor":"230A","\\lbrack":"[","\\rbrack":"]"},macros:{displaystyle:["SetStyle","D",!0,0],textstyle:["SetStyle","T",!1,0],scriptstyle:["SetStyle","S",!1,1],scriptscriptstyle:["SetStyle","SS",!1,2],rm:["SetFont",s.VARIANT.NORMAL],mit:["SetFont",s.VARIANT.ITALIC],oldstyle:["SetFont",s.VARIANT.OLDSTYLE],cal:["SetFont",s.VARIANT.CALIGRAPHIC],it:["SetFont","-tex-mathit"],bf:["SetFont",s.VARIANT.BOLD],bbFont:["SetFont",s.VARIANT.DOUBLESTRUCK],scr:["SetFont",s.VARIANT.SCRIPT],frak:["SetFont",s.VARIANT.FRAKTUR],sf:["SetFont",s.VARIANT.SANSSERIF],tt:["SetFont",s.VARIANT.MONOSPACE],tiny:["SetSize",.5],Tiny:["SetSize",.6],scriptsize:["SetSize",.7],small:["SetSize",.85],normalsize:["SetSize",1],large:["SetSize",1.2],Large:["SetSize",1.44],LARGE:["SetSize",1.73],huge:["SetSize",2.07],Huge:["SetSize",2.49],arcsin:["NamedFn"],arccos:["NamedFn"],arctan:["NamedFn"],arg:["NamedFn"],cos:["NamedFn"],cosh:["NamedFn"],cot:["NamedFn"],coth:["NamedFn"],csc:["NamedFn"],deg:["NamedFn"],det:"NamedOp",dim:["NamedFn"],exp:["NamedFn"],gcd:"NamedOp",hom:["NamedFn"],inf:"NamedOp",ker:["NamedFn"],lg:["NamedFn"],lim:"NamedOp",liminf:["NamedOp","lim&thinsp;inf"],limsup:["NamedOp","lim&thinsp;sup"],ln:["NamedFn"],log:["NamedFn"],max:"NamedOp",min:"NamedOp",Pr:"NamedOp",sec:["NamedFn"],sin:["NamedFn"],sinh:["NamedFn"],sup:"NamedOp",tan:["NamedFn"],tanh:["NamedFn"],limits:["Limits",1],nolimits:["Limits",0],overline:["UnderOver","00AF",null,1],underline:["UnderOver","005F"],overbrace:["UnderOver","23DE",1],underbrace:["UnderOver","23DF",1],overparen:["UnderOver","23DC"],underparen:["UnderOver","23DD"],overrightarrow:["UnderOver","2192"],underrightarrow:["UnderOver","2192"],overleftarrow:["UnderOver","2190"],underleftarrow:["UnderOver","2190"],overleftrightarrow:["UnderOver","2194"],underleftrightarrow:["UnderOver","2194"],overset:"Overset",underset:"Underset",stackrel:["Macro","\\mathrel{\\mathop{#2}\\limits^{#1}}",2],over:"Over",overwithdelims:"Over",atop:"Over",atopwithdelims:"Over",above:"Over",abovewithdelims:"Over",brace:["Over","{","}"],brack:["Over","[","]"],choose:["Over","(",")"],frac:"Frac",sqrt:"Sqrt",root:"Root",uproot:["MoveRoot","upRoot"],leftroot:["MoveRoot","leftRoot"],left:"LeftRight",right:"LeftRight",middle:"Middle",llap:"Lap",rlap:"Lap",raise:"RaiseLower",lower:"RaiseLower",moveleft:"MoveLeftRight",moveright:"MoveLeftRight",",":["Spacer",s.LENGTH.THINMATHSPACE],":":["Spacer",s.LENGTH.MEDIUMMATHSPACE],">":["Spacer",s.LENGTH.MEDIUMMATHSPACE],";":["Spacer",s.LENGTH.THICKMATHSPACE],"!":["Spacer",s.LENGTH.NEGATIVETHINMATHSPACE],enspace:["Spacer",".5em"],quad:["Spacer","1em"],qquad:["Spacer","2em"],thinspace:["Spacer",s.LENGTH.THINMATHSPACE],negthinspace:["Spacer",s.LENGTH.NEGATIVETHINMATHSPACE],hskip:"Hskip",hspace:"Hskip",kern:"Hskip",mskip:"Hskip",mspace:"Hskip",mkern:"Hskip",rule:"rule",Rule:["Rule"],Space:["Rule","blank"],big:["MakeBig",s.TEXCLASS.ORD,.85],Big:["MakeBig",s.TEXCLASS.ORD,1.15],bigg:["MakeBig",s.TEXCLASS.ORD,1.45],Bigg:["MakeBig",s.TEXCLASS.ORD,1.75],bigl:["MakeBig",s.TEXCLASS.OPEN,.85],Bigl:["MakeBig",s.TEXCLASS.OPEN,1.15],biggl:["MakeBig",s.TEXCLASS.OPEN,1.45],Biggl:["MakeBig",s.TEXCLASS.OPEN,1.75],bigr:["MakeBig",s.TEXCLASS.CLOSE,.85],Bigr:["MakeBig",s.TEXCLASS.CLOSE,1.15],biggr:["MakeBig",s.TEXCLASS.CLOSE,1.45],Biggr:["MakeBig",s.TEXCLASS.CLOSE,1.75],bigm:["MakeBig",s.TEXCLASS.REL,.85],Bigm:["MakeBig",s.TEXCLASS.REL,1.15],biggm:["MakeBig",s.TEXCLASS.REL,1.45],Biggm:["MakeBig",s.TEXCLASS.REL,1.75],mathord:["TeXAtom",s.TEXCLASS.ORD],mathop:["TeXAtom",s.TEXCLASS.OP],mathopen:["TeXAtom",s.TEXCLASS.OPEN],mathclose:["TeXAtom",s.TEXCLASS.CLOSE],mathbin:["TeXAtom",s.TEXCLASS.BIN],mathrel:["TeXAtom",s.TEXCLASS.REL],mathpunct:["TeXAtom",s.TEXCLASS.PUNCT],mathinner:["TeXAtom",s.TEXCLASS.INNER],vcenter:["TeXAtom",s.TEXCLASS.VCENTER],mathchoice:["Extension","mathchoice"],buildrel:"BuildRel",hbox:["HBox",0],text:"HBox",mbox:["HBox",0],fbox:"FBox",strut:"Strut",mathstrut:["Macro","\\vphantom{(}"],phantom:"Phantom",vphantom:["Phantom",1,0],hphantom:["Phantom",0,1],smash:"Smash",acute:["Accent","00B4"],grave:["Accent","0060"],ddot:["Accent","00A8"],tilde:["Accent","007E"],bar:["Accent","00AF"],breve:["Accent","02D8"],check:["Accent","02C7"],hat:["Accent","005E"],vec:["Accent","2192"],dot:["Accent","02D9"],widetilde:["Accent","007E",1],widehat:["Accent","005E",1],matrix:"Matrix",array:"Matrix",pmatrix:["Matrix","(",")"],cases:["Matrix","{","","left left",null,".1em",null,!0],eqalign:["Matrix",null,null,"right left",s.LENGTH.THICKMATHSPACE,".5em","D"],displaylines:["Matrix",null,null,"center",null,".5em","D"],cr:"Cr","\\":"CrLaTeX",newline:["CrLaTeX",!0],hline:["HLine","solid"],hdashline:["HLine","dashed"],eqalignno:["Matrix",null,null,"right left",s.LENGTH.THICKMATHSPACE,".5em","D",null,"right"],leqalignno:["Matrix",null,null,"right left",s.LENGTH.THICKMATHSPACE,".5em","D",null,"left"],hfill:"HFill",hfil:"HFill",hfilll:"HFill",bmod:["Macro",'\\mmlToken{mo}[lspace="thickmathspace" rspace="thickmathspace"]{mod}'],pmod:["Macro","\\pod{\\mmlToken{mi}{mod}\\kern 6mu #1}",1],mod:["Macro","\\mathchoice{\\kern18mu}{\\kern12mu}{\\kern12mu}{\\kern12mu}\\mmlToken{mi}{mod}\\,\\,#1",1],pod:["Macro","\\mathchoice{\\kern18mu}{\\kern8mu}{\\kern8mu}{\\kern8mu}(#1)",1],iff:["Macro","\\;\\Longleftrightarrow\\;"],skew:["Macro","{{#2{#3\\mkern#1mu}\\mkern-#1mu}{}}",3],mathcal:["Macro","{\\cal #1}",1],mathscr:["Macro","{\\scr #1}",1],mathrm:["Macro","{\\rm #1}",1],mathbf:["Macro","{\\bf #1}",1],mathbb:["Macro","{\\bbFont #1}",1],Bbb:["Macro","{\\bbFont #1}",1],mathit:["Macro","{\\it #1}",1],mathfrak:["Macro","{\\frak #1}",1],mathsf:["Macro","{\\sf #1}",1],mathtt:["Macro","{\\tt #1}",1],textrm:["Macro","\\mathord{\\rm\\text{#1}}",1],textit:["Macro","\\mathord{\\it\\text{#1}}",1],textbf:["Macro","\\mathord{\\bf\\text{#1}}",1],textsf:["Macro","\\mathord{\\sf\\text{#1}}",1],texttt:["Macro","\\mathord{\\tt\\text{#1}}",1],pmb:["Macro","\\rlap{#1}\\kern1px{#1}",1],TeX:["Macro","T\\kern-.14em\\lower.5ex{E}\\kern-.115em X"],LaTeX:["Macro","L\\kern-.325em\\raise.21em{\\scriptstyle{A}}\\kern-.17em\\TeX"]," ":["Macro","\\text{ }"],not:"Not",dots:"Dots",space:"Tilde"," ":"Tilde",begin:"BeginEnd",end:"BeginEnd",newcommand:["Extension","newcommand"],renewcommand:["Extension","newcommand"],newenvironment:["Extension","newcommand"],renewenvironment:["Extension","newcommand"],def:["Extension","newcommand"],let:["Extension","newcommand"],verb:["Extension","verb"],boldsymbol:["Extension","boldsymbol"],tag:["Extension","AMSmath"],notag:["Extension","AMSmath"],label:["Extension","AMSmath"],ref:["Extension","AMSmath"],eqref:["Extension","AMSmath"],nonumber:["Macro","\\notag"],unicode:["Extension","unicode"],color:"Color",href:["Extension","HTML"],class:["Extension","HTML"],style:["Extension","HTML"],cssId:["Extension","HTML"],bbox:["Extension","bbox"],mmlToken:"MmlToken",require:"Require"},environment:{array:["AlignedArray"],matrix:["Array",null,null,null,"c"],pmatrix:["Array",null,"(",")","c"],bmatrix:["Array",null,"[","]","c"],Bmatrix:["Array",null,"\\{","\\}","c"],vmatrix:["Array",null,"\\vert","\\vert","c"],Vmatrix:["Array",null,"\\Vert","\\Vert","c"],cases:["Array",null,"\\{",".","ll",null,".2em","T"],equation:[null,"Equation"],"equation*":[null,"Equation"],eqnarray:["ExtensionEnv",null,"AMSmath"],"eqnarray*":["ExtensionEnv",null,"AMSmath"],align:["ExtensionEnv",null,"AMSmath"],"align*":["ExtensionEnv",null,"AMSmath"],aligned:["ExtensionEnv",null,"AMSmath"],multline:["ExtensionEnv",null,"AMSmath"],"multline*":["ExtensionEnv",null,"AMSmath"],split:["ExtensionEnv",null,"AMSmath"],gather:["ExtensionEnv",null,"AMSmath"],"gather*":["ExtensionEnv",null,"AMSmath"],gathered:["ExtensionEnv",null,"AMSmath"],alignat:["ExtensionEnv",null,"AMSmath"],"alignat*":["ExtensionEnv",null,"AMSmath"],alignedat:["ExtensionEnv",null,"AMSmath"]},p_height:1.2/.85}),this.config.Macros){var t=this.config.Macros;for(var i in t)t.hasOwnProperty(i)&&("string"==typeof t[i]?h.macros[i]=["Macro",t[i]]:h.macros[i]=["Macro"].concat(t[i]),h.macros[i].isUser=!0)}},config:{MAXMACROS:1e4,MAXBUFFER:5120},sourceMenuTitle:["TeXCommands","TeX Commands"],annotationEncoding:"application/x-tex",prefilterHooks:MathJax.Callback.Hooks(!0),postfilterHooks:MathJax.Callback.Hooks(!0),Config:function(){this.SUPER(arguments).Config.apply(this,arguments),"none"!==this.config.equationNumbers.autoNumber&&(this.config.extensions||(this.config.extensions=[]),this.config.extensions.push("AMSmath.js"))},Translate:function(e){var i,a=!1,r=MathJax.HTML.getScript(e),n=null!=e.type.replace(/\n/g," ").match(/(;|\s|\n)mode\s*=\s*display(;|\s|\n|$)/),o={math:r,display:n,script:e},h=this.prefilterHooks.Execute(o);if(h)return h;r=o.math;try{i=t.Parse(r).mml()}catch(t){if(!t.texError)throw t;i=this.formatError(t,r,n,e),a=!0}return i.isa(s.mtable)&&"inherit"===i.displaystyle&&(i.displaystyle=n),i=i.inferred?s.apply(MathJax.ElementJax,i.data):s(i),n&&(i.root.display="block"),a&&(i.texError=!0),o.math=i,this.postfilterHooks.Execute(o)||o.math},prefilterMath:function(t,e,i){return t},postfilterMath:function(t,e,i){return this.combineRelations(t.root),t},formatError:function(t,i,a,r){var n=t.message.replace(/\n.*/,"");return e.signal.Post(["TeX Jax - parse error",n,i,a,r]),s.Error(n)},Error:function(t){throw r(t)&&(t=a.apply(a,t)),e.Insert(Error(t),{texError:!0})},Macro:function(t,e,i){h.macros[t]=["Macro"].concat([].slice.call(arguments,1)),h.macros[t].isUser=!0},fenced:function(t,e,i){var a=s.mrow().With({open:t,close:i,texClass:s.TEXCLASS.INNER});return a.Append(s.mo(t).With({fence:!0,stretchy:!0,symmetric:!0,texClass:s.TEXCLASS.OPEN})),"mrow"===e.type&&e.inferred?a.Append.apply(a,e.data):a.Append(e),a.Append(s.mo(i).With({fence:!0,stretchy:!0,symmetric:!0,texClass:s.TEXCLASS.CLOSE})),a},fixedFence:function(t,e,i){var a=s.mrow().With({open:t,close:i,texClass:s.TEXCLASS.ORD});return t&&a.Append(this.mathPalette(t,"l")),"mrow"===e.type?a.Append.apply(a,e.data):a.Append(e),i&&a.Append(this.mathPalette(i,"r")),a},mathPalette:function(e,i){"{"!==e&&"}"!==e||(e="\\"+e);var s="{\\bigg"+i+" "+e+"}",a="{\\big"+i+" "+e+"}";return t.Parse("\\mathchoice"+s+a+a+a,{}).mml()},combineRelations:function(t){var e,i,a,r;for(e=0,i=t.data.length;e<i;e++)if(t.data[e]){if(t.isa(s.mrow))for(;e+1<i&&(a=t.data[e])&&(r=t.data[e+1])&&a.isa(s.mo)&&r.isa(s.mo)&&a.Get("texClass")===s.TEXCLASS.REL&&r.Get("texClass")===s.TEXCLASS.REL;)a.variantForm!=r.variantForm||a.Get("mathvariant")!=r.Get("mathvariant")||a.style!=r.style||a.class!=r.class||a.id||r.id?(a.rspace=r.lspace="0pt",e++):(a.Append.apply(a,r.data),t.data.splice(e+1,1),i--);t.data[e].isToken||this.combineRelations(t.data[e])}}}),t.prefilterHooks.Add((function(e){e.math=t.prefilterMath(e.math,e.display,e.script)})),t.postfilterHooks.Add((function(e){e.math=t.postfilterMath(e.math,e.display,e.script)})),t.loadComplete("jax.js")}(MathJax.InputJax.TeX,MathJax.Hub,MathJax.Ajax);