MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var t=MathJax.ElementJax.mml,e=MathJax.InputJax.TeX,i=e.Definitions;i.Add({macros:{mathchoice:"MathChoice"}},null,!0),e.Parse.Augment({MathChoice:function(e){var i=this.ParseArg(e),s=this.ParseArg(e),h=this.ParseArg(e),a=this.ParseArg(e);this.Push(t.TeXmathchoice(i,s,h,a))}}),t.TeXmathchoice=t.mbase.Subclass({type:"TeXmathchoice",notParent:!0,choice:function(){if(null!=this.selection)return this.selection;if(this.choosing)return 2;this.choosing=!0;var t=0,e=this.getValues("displaystyle","scriptlevel");t=e.scriptlevel>0?Math.min(3,e.scriptlevel+1):e.displaystyle?0:1;for(var i=this.inherit;i&&"math"!==i.type;)i=i.inherit;return i&&(this.selection=t),this.choosing=!1,t},selected:function(){return this.data[this.choice()]},setTeXclass:function(t){return this.selected().setTeXclass(t)},isSpacelike:function(){return this.selected().isSpacelike()},isEmbellished:function(){return this.selected().isEmbellished()},Core:function(){return this.selected()},CoreMO:function(){return this.selected().CoreMO()},toHTML:function(t){return t=this.HTMLcreateSpan(t),t.bbox=this.Core().toHTML(t).bbox,t.firstChild&&t.firstChild.style.marginLeft&&(t.style.marginLeft=t.firstChild.style.marginLeft,t.firstChild.style.marginLeft=""),t},toSVG:function(){var t=this.Core().toSVG();return this.SVGsaveData(t),t},toCommonHTML:function(t){return t=this.CHTMLcreateNode(t),this.CHTMLhandleStyle(t),this.CHTMLhandleColor(t),this.CHTMLaddChild(t,this.choice(),{}),t},toPreviewHTML:function(t){return t=this.PHTMLcreateSpan(t),this.PHTMLhandleStyle(t),this.PHTMLhandleColor(t),this.PHTMLaddChild(t,this.choice(),{}),t}}),MathJax.Hub.Startup.signal.Post("TeX mathchoice Ready")}),MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/mathchoice.js");