q){n=this.Element("span");this.createChar(n,c.ext,f,d);k=n.bbox.h+n.bbox.d;var t=k-.05,u,v,w=c.mid?2:1;v=u=Math.min(Math.ceil((b-q)/(w*t)),this.maxStretchyParts);c.fullExtenders||(t=(b-q)/(w*u));b=u/(u+1)*(k-t);t=k-b;for(r+=b+t-n.bbox.h;0q){p=k.bbox.rw-k.bbox.lw;var t=p-.05,u,v,w=c.mid?2:1;v=u=Math.min(Math.ceil((b-q)/(w*t)),this.maxStretchyParts);c.fillExtenders||(t=(b-q)/(w*u));b=u/(u+1)*(p-t);t=p-b;for(r-=k.bbox.lw+b;0 a.bbox.h&&(a.bbox.h=0));b[5]&&(a.bbox.h+=b[5]);b[6]&&(a.bbox.d+=b[6]);this.AccentBug&&0===a.bbox.w&&(d.firstChild.nodeValue+=this.NBSP)},positionDelimiter:function(a,b){b-=a.bbox.h;a.bbox.d-=b;a.bbox.h+=b;b&&(this.safariVerticalAlignBug||this.konquerorVerticalAlignBug||this.operaVerticalAlignBug&&a.isMultiChar?(""===a.firstChild.style.display&&""!==a.style.top&&(a=a.firstChild,b-=e.unEm(a.style.top)),a.style.position="relative",a.style.top=this.Em(-b)):(a.style.verticalAlign=this.Em(b),e.ffVerticalAlignBug&&e.createRule(a.parentNode,a.bbox.h,0,0)))},handleVariant:function(a,b,c){var e="",d,g,h,l=a,n=!!a.style.fontFamily;if(0!==c.length){a.bbox||(a.bbox={w:0,h:-this.BIGDIMEN,d:-this.BIGDIMEN,rw:-this.BIGDIMEN,lw:this.BIGDIMEN});b||(b=this.FONTDATA.VARIANT[k.VARIANT.NORMAL]);h=b;for(var m=0,p=c.length;m d)m++,d=(d-55296<<10)+(c.charCodeAt(m)-56320)+65536,this.FONTDATA.RemapPlane1&&(b=this.FONTDATA.RemapPlane1(d,b),d=b.n,b=b.variant);else{var q,r=this.FONTDATA.RANGES;g=0;for(q=r.length;g
=r[g].low&&d<=r[g].high){r[g].remap&&r[g].remap[d]?d=t+r[g].remap[d]:(d=d-r[g].low+t,r[g].add&&(d+=r[g].add));b["variant"+r[g].offset]&&(b=this.FONTDATA.VARIANT[b["variant"+r[g].offset]]);break}}}b.remap&&b.remap[d]&&(b.remap[d]instanceof Array?(b=b.remap[d],d=b[0],b=this.FONTDATA.VARIANT[b[1]]):"string"===typeof b.remap[d]?(c=b.remap[d]+c.substr(m+1),m=0,p=c.length,d=c.charCodeAt(0)):(d=b.remap[d],b.remap.variant&&(b=this.FONTDATA.VARIANT[b.remap.variant])));this.FONTDATA.REMAP[d]&&!b.noRemap&&(d=this.FONTDATA.REMAP[d],d instanceof Array&&(b=this.FONTDATA.VARIANT[d[1]],d=d[0]),"string"===typeof d&&(c=d+c.substr(m+1),m=0,p=c.length,d=d.charCodeAt(0)));g=this.lookupChar(b,d);b=g[d];if(n||!this.checkFont(g,l.style)&&!b[5].img)e.length&&(this.addText(l,e),e=""),q=!!l.style.fontFamily||!!a.style.fontStyle||!!a.style.fontWeight||!g.directory||n,n=!1,l!==a&&(q=!this.checkFont(g,a.style),l=a),q&&(l=this.addElement(a,"span",{isMathJax:!0,subSpan:!0})),this.handleFont(l,g,l!==a);e=this.handleChar(l,g,b,d,e);(b[5]||{}).space||(b[0]/1E3>a.bbox.h&&(a.bbox.h=b[0]/1E3),b[1]/1E3>a.bbox.d&&(a.bbox.d=b[1]/1E3));a.bbox.w+b[3]/1E3a.bbox.rw&&(a.bbox.rw=a.bbox.w+b[4]/1E3);a.bbox.w+=b[2]/1E3}e.length&&this.addText(l,e);a.scale&&1!==a.scale&&(a.bbox.h*=a.scale,a.bbox.d*=a.scale,a.bbox.w*=a.scale,a.bbox.lw*=a.scale,a.bbox.rw*=a.scale);1==c.length&&g.skew&&g.skew[d]&&(a.bbox.skew=g.skew[d])}},checkFont:function(a,b){var c=b.fontWeight||"normal";c.match(/^\d+$/)&&(c=600<=parseInt(c)?"bold":"normal");return a.family.replace(/'/g,"")===b.fontFamily.replace(/'/g,"")&&(a.style||"normal")===(b.fontStyle||"normal")&&(a.weight||"normal")===c},handleFont:function(a,b,c){a.style.fontFamily=b.family;b.directory||(a.style.fontSize=Math.floor(100/e.scale+.5)+"%");if(!e.FontFaceBug||!b.isWebFont){var f=b.style||"normal";b=b.weight||"normal";if("normal"!==f||c)a.style.fontStyle=f;if("normal"!==b||c)a.style.fontWeight=b}},handleChar:function(a,b,c,f,d){var g=c[5];if(g.space)return d.length&&this.addText(a,d),e.createShift(a,c[2]/1E3),"";if(g.img)return this.handleImg(a,b,c,f,d);if(g.isUnknown&&this.FONTDATA.DELIMITERS[f])return d.length&&this.addText(a,d),d=a.scale,e.createDelimiter(a,f,0,1,b),"V"===this.FONTDATA.DELIMITERS[f].dir&&(a.style.verticalAlign=this.Em(a.bbox.d),a.bbox.h+=a.bbox.d,a.bbox.d=0),a.scale=d,c[0]=1E3*a.bbox.h,c[1]=1E3*a.bbox.d,c[2]=1E3*a.bbox.w,c[3]=1E3*a.bbox.lw,c[4]=1E3*a.bbox.rw,"";null==g.c&&(65535>=f?g.c=String.fromCharCode(f):(b=f-65536,g.c=String.fromCharCode((b>>10)+55296)+String.fromCharCode((b&1023)+56320)));if(g.rfix)return this.addText(a,d+g.c),e.createShift(a,g.rfix/1E3),"";if(c[2]||!this.msieAccentBug||d.length)return d+g.c;e.createShift(a,c[3]/1E3);e.createShift(a,(c[4]-c[3])/1E3);this.addText(a,g.c);e.createShift(a,-c[4]/1E3);return""},handleImg:function(a,b,c,e,d){return d},lookupChar:function(a,b){var c,f;if(!a.FONTS){var d=this.FONTDATA.FONTS,g=a.fonts||this.FONTDATA.VARIANT.normal.fonts;g instanceof Array||(g=[g]);a.fonts!=g&&(a.fonts=g);a.FONTS=[];c=0;for(f=g.length;c b.d&&(b.d=f.d);f.h>b.h&&(b.h=f.h);null!=f.D&&f.D>b.D&&(b.D=f.D);null!=f.H&&f.H>b.H&&(b.H=f.H);c.style.paddingLeft&&(b.w+=e.unEm(c.style.paddingLeft)*(c.scale||1));b.w+f.lw b.rw&&(b.rw=b.w+f.rw);b.w+=f.w;c.style.paddingRight&&(b.w+=e.unEm(c.style.paddingRight)*(c.scale||1));f.width&&(b.width=f.width,b.minWidth=f.minWidth);f.ic?b.ic=f.ic:delete b.ic;b.exactW&&!f.exactW&&delete b.exactW}},HTMLemptyBBox:function(a){a.h=a.d=a.H=a.D=a.rw=-e.BIGDIMEN;a.w=0;a.lw=e.BIGDIMEN;return a},HTMLcleanBBox:function(a){a.h===this.BIGDIMEN&&(a.h=a.d=a.H=a.D=a.w=a.rw=a.lw=0);a.D<=a.d&&delete a.D;a.H<=a.h&&delete a.H},HTMLzeroBBox:function(){return{h:0,d:0,w:0,lw:0,rw:0}},HTMLcanStretch:function(a){if(this.isEmbellished()){var b=this.Core();if(b&&b!==this)return b.HTMLcanStretch(a)}return!1},HTMLstretchH:function(a,b){return this.HTMLspanElement()},HTMLstretchV:function(a,b,c){return this.HTMLspanElement()},HTMLnotEmpty:function(a){for(;a;){if("mrow"!==a.type&&"texatom"!==a.type||1 =b.scriptlevel||this.hasValue("lspace")||this.hasValue("rspace")){var c=this.HTMLgetMu(a);b.lspace=Math.max(0,e.length2em(b.lspace,c));b.rspace=Math.max(0,e.length2em(b.rspace,c));for(var c=this,f=this.Parent();f&&f.isEmbellished()&&f.Core()===c;)c=f,f=f.Parent(),a=c.HTMLspanElement();b.lspace&&(a.style.paddingLeft=e.Em(b.lspace));b.rspace&&(a.style.paddingRight=e.Em(b.rspace))}}}else b=this.texSpacing(),""!==b&&(b=e.length2em(b,this.HTMLgetScale())/(a.scale||1),a.style.paddingLeft&&(b+=e.unEm(a.style.paddingLeft)),a.style.paddingLeft=e.Em(b))},HTMLgetScale:function(){var a=1,b=this.getValues("mathsize","scriptlevel","fontsize");if(this.style){var c=this.HTMLspanElement();""!=c.style.fontSize&&(b.fontsize=c.style.fontSize)}b.fontsize&&!this.mathsize&&(b.mathsize=b.fontsize);0!==b.scriptlevel&&(2 f.w&&1===c.length&&!b.noIC&&(f.ic=f.rw-f.w,e.createBlank(a,f.ic),f.w=f.rw);this.HTMLhandleSpace(a);this.HTMLhandleColor(a);return a}});k.mn.Augment({toHTML:function(a){a=this.HTMLhandleSize(this.HTMLcreateSpan(a));a.bbox=null;for(var b=this.HTMLgetVariant(),c=0,e=this.data.length;c a.bbox.w&&(a.bbox.ic=a.bbox.rw-a.bbox.w,e.createBlank(a,a.bbox.ic),a.bbox.w=a.bbox.rw));this.HTMLhandleSpace(a);this.HTMLhandleColor(a);return a},CoreParent:function(){for(var a=this;a&&a.isEmbellished()&&a.CoreMO()===this&&!a.isa(k.math);)a=a.Parent();return a},CoreText:function(a){if(!a)return"";if(a.isEmbellished())return a.CoreMO().data.join("");for(;(a.isa(k.mrow)||a.isa(k.TeXAtom)||a.isa(k.mstyle)||a.isa(k.mphantom))&&1===a.data.length&&a.data[0];)a=a.data[0];return a.isToken?a.data.join(""):""},HTMLremapChars:{"*":"\u2217",'"':"\u2033","\u00b0":"\u2218","\u00b2":"2","\u00b3":"3","\u00b4":"\u2032","\u00b9":"1"},HTMLremap:function(a,b){a=a.replace(/-/g,"\u2212");b&&(a=a.replace(/'/g,"\u2032").replace(/`/g,"\u2035"),1===a.length&&(a=b[a]||a));return a},HTMLcanStretch:function(a){if(!this.Get("stretchy"))return!1;var b=this.data.join("");if(1 e.linebreakWidth||this.hasNewline():!1},HTMLstretchH:function(a,b){this.HTMLremoveColor();var c=this.HTMLspanElement();this.data[this.core].HTMLstretchH(c,b);this.HTMLcomputeBBox(c,!0);this.HTMLhandleColor(c);return c},HTMLstretchV:function(a,b,c){this.HTMLremoveColor();a=this.HTMLspanElement();this.data[this.core].HTMLstretchV(a,b,c);this.HTMLcomputeBBox(a,!0);this.HTMLhandleColor(a);return a}});k.mstyle.Augment({toHTML:function(a,b,c){a=this.HTMLcreateSpan(a);if(null!=this.data[0]){var e=this.data[0].toHTML(a);null!=c?this.data[0].HTMLstretchV(a,b,c):null!=b&&this.data[0].HTMLstretchH(a,b);a.bbox=e.bbox}this.HTMLhandleSpace(a);this.HTMLhandleColor(a);return a},HTMLstretchH:k.mbase.HTMLstretchH,HTMLstretchV:k.mbase.HTMLstretchV});k.mfrac.Augment({toHTML:function(a){a=this.HTMLcreateSpan(a);var b=e.createStack(a),c=e.createBox(b),f=e.createBox(b);e.MeasureSpans([this.HTMLboxChild(0,c),this.HTMLboxChild(1,f)]);var d=this.getValues("displaystyle","linethickness","numalign","denomalign","bevelled"),g=this.HTMLgetScale(),h=d.displaystyle,l=e.TeX.axis_height*g;if(d.bevelled){var d=h?.4:.15,k=Math.max(c.bbox.h+c.bbox.d,f.bbox.h+f.bbox.d)+2*d,b=e.createBox(b);e.createDelimiter(b,47,k);e.placeBox(c,0,(c.bbox.d-c.bbox.h)/2+l+d);e.placeBox(b,c.bbox.w-d/2,(b.bbox.d-b.bbox.h)/2+l);e.placeBox(f,c.bbox.w+b.bbox.w-d,(f.bbox.d-f.bbox.h)/2+l-d)}else{var k=Math.max(c.bbox.w,f.bbox.w),m=e.thickness2em(d.linethickness,g),p,q,r=e.TeX.min_rule_thickness/this.em;h?(p=e.TeX.num1,q=e.TeX.denom1):(p=0===m?e.TeX.num3:e.TeX.num2,q=e.TeX.denom2);p*=g;q*=g;0===m?(g=Math.max((h?7:3)*e.TeX.rule_thickness,2*r),h=p-c.bbox.d-(f.bbox.h-q),h k&&(l=(d.bbox.h+d.bbox.d-(k-h))/2);k=e.FONTDATA.DELIMITERS[e.FONTDATA.RULECHAR];!k||m g?e.createRule(f,0,h,m):e.createDelimiter(f,e.FONTDATA.RULECHAR,m,g);k=p.bbox.h+l+h;l=k*e.rfuzz;d.isMultiChar&&(l=e.rfuzz);q=this.HTMLaddRoot(b,d,q,d.bbox.h+d.bbox.d-k,g);e.placeBox(d,q,k-d.bbox.h);e.placeBox(f,q+d.bbox.w,k-f.bbox.h+l);e.placeBox(c,q+d.bbox.w,0);this.HTMLhandleSpace(a);this.HTMLhandleColor(a);return a},HTMLaddRoot:function(a,b,c,e,d){return c}});k.mroot.Augment({toHTML:k.msqrt.prototype.toHTML,HTMLaddRoot:function(a,b,c,f,d){a=e.createBox(a);this.data[1]?(c=this.data[1].toHTML(a),c.style.paddingRight=c.style.paddingLeft="",e.Measured(c,a)):a.bbox=this.HTMLzeroBBox();f=this.HTMLrootHeight(b.bbox.h+b.bbox.d,d,a)-f;d=Math.min(a.bbox.w,a.bbox.rw);c=Math.max(d,b.offset);e.placeBox(a,c-d,f);return c-b.offset},HTMLrootHeight:function(a,b,c){return.45*(a-.9*b)+.6*b+Math.max(0,c.bbox.d-.075)}});k.mfenced.Augment({toHTML:function(a){a=this.HTMLcreateSpan(a);this.data.open&&this.data.open.toHTML(a);null!=this.data[0]&&this.data[0].toHTML(a);for(var b=1,c=this.data.length;b g&&(g=h[p].bbox.w),!n[p]&&g>l&&(l=g));null==c&&null!=b?l=b:l==-e.BIGDIMEN&&(l=g);p=g=0;for(q=this.data.length;p g&&(g=m.bbox.w));b=e.TeX.rule_thickness;c=e.FONTDATA.TeX_factor;var n=h[this.base]||{bbox:this.HTMLzeroBBox()},r,t,u,v=0;n.bbox.ic&&(v=1.3*n.bbox.ic+.05);p=0;for(q=this.data.length;pb&&(e.config.styles[".MathJax .MathJax_HitBox"]["background-color"]="white",e.config.styles[".MathJax .MathJax_HitBox"].opacity=0,e.config.styles[".MathJax .MathJax_HitBox"].filter="alpha(opacity\x3d0)");e.Augment({PaddingWidthBug:!0,msieAccentBug:!0,msieColorBug:!0,msieColorPositionBug:!0,msieRelativeWidthBug:d,msieDisappearingBug:8<=b,msieMarginScaleBug:8>b,msiePaddingWidthBug:!0,msieBorderWidthBug:d,msieFrameSizeBug:8>=b,msieInlineBlockAlignBug:!f||d,msiePlaceBoxBug:f&&!d,msieClipRectBug:!f,msieNegativeSpaceBug:d,cloneNodeBug:f&&"8.0"===a.version,initialSkipBug:8>b,msieNegativeBBoxBug:8<=b,msieIE6:!c,msieItalicWidthBug:!0,FontFaceBug:!0,msieFontCSSBug:a.isIE9,allowWebFonts:9<=b?"woff":"eot"})},Firefox:function(a){var b=!1;a.versionAtLeast("3.5")&&(a=String(document.location).replace(/[^\/]*$/,""),"file:"!==document.location.protocol||t.config.root.match(/^https?:\/\//)||(t.config.root+"/").substr(0,a.length)===a)&&(b="otf");e.Augment({ffVerticalAlignBug:!0,AccentBug:!0,allowWebFonts:b})},Safari:function(a){var b=a.versionAtLeast("3.0"),c=a.versionAtLeast("3.1"),f=navigator.appVersion.match(/ Safari\/\d/)&&navigator.appVersion.match(/ Version\/\d/)&&navigator.vendor.match(/Apple/),d=navigator.appVersion.match(/ Android (\d+)\.(\d+)/),d=c&&a.isMobile&&(navigator.platform.match(/iPad|iPod|iPhone/)&&!a.versionAtLeast("5.0")||null!=d&&(2>d[1]||2==d[1]&&2>d[2]));e.Augment({config:{styles:{".MathJax img, .MathJax nobr, .MathJax a":{"max-width":"5000em","max-height":"5000em"}}},rfuzz:.011,AccentBug:!0,AdjustSurd:!0,negativeBBoxes:!0,safariNegativeSpaceBug:!0,safariVerticalAlignBug:!c,safariTextNodeBug:!b,forceReflow:!0,allowWebFonts:c&&!d?"otf":!1});f&&e.Augment({webFontDefault:a.isMobile?"sans-serif":"serif"});a.isPC&&e.Augment({adjustAvailableFonts:e.removeSTIXfonts,checkWebFontsTwice:!0});d&&((a=t.config["HTML-CSS"])?(a.availableFonts=[],a.preferredFont=null):t.config["HTML-CSS"]={availableFonts:[],preferredFont:null})},Chrome:function(a){e.Augment({Em:e.EmRounded,cloneNodeBug:!0,rfuzz:.011,AccentBug:!0,AdjustSurd:!0,negativeBBoxes:!0,safariNegativeSpaceBug:!0,safariWebFontSerif:[""],forceReflow:!0,allowWebFonts:a.versionAtLeast("4.0")?"otf":"svg"})},Opera:function(a){a.isMini=null!=navigator.appVersion.match("Opera Mini");e.config.styles[".MathJax .merror"]["vertical-align"]=null;e.config.styles[".MathJax span"]["z-index"]=0;e.Augment({operaHeightBug:!0,operaVerticalAlignBug:!0,operaFontSizeBug:a.versionAtLeast("10.61"),initialSkipBug:!0,FontFaceBug:!0,PaddingWidthBug:!0,allowWebFonts:a.versionAtLeast("10.0")&&!a.isMini?"otf":!1,adjustAvailableFonts:e.removeSTIXfonts})},Konqueror:function(a){e.Augment({konquerorVerticalAlignBug:!0})}})});MathJax.Hub.Register.StartupHook("End Cookie",function(){"None"!==t.config.menuSettings.zoom&&v.Require("[MathJax]/extensions/MathZoom.js")})})(MathJax.Ajax,MathJax.Hub,MathJax.OutputJax["HTML-CSS"]);