MathJax.Extension["semantic-enrich"]={version:"1.6.0",config:MathJax.Hub.CombineConfig("semantic-enrich",{disabled:!1}),dependents:[],running:!1,mstyleLookup:{mi:["mathvariant"],mo:["mathvariant","accent","largeop","form","fence","separator","movablelimits"],mn:["mathvariant"],mtext:["mathvariant"],ms:["mathvariant"],mfrac:["linethickness"],mfenced:["open","close","separators"],menclose:["notation"],munder:["accentunder"],mover:["accent"],munderover:["accent","accentunder"]},Filter:function(t,a,e){if(delete t.enriched,!this.config.disabled)try{this.running=!0;var n=sre.Enrich.semanticMathmlSync(t.root.toMathML());t.root=MathJax.InputJax.MathML.Parse.prototype.MakeMML(n),t.root.inputID=e.id,t.enriched=!0,this.running=!1}catch(t){throw this.running=!1,t}},Enable:function(t,a){this.config.disabled=!1,t&&MathJax.Hub.Queue(["Reprocess",MathJax.Hub])},Disable:function(t,a){this.config.disabled=!0;for(var e=this.dependents.length-1;0<=e;e--){var n=this.dependents[e];n.Disable&&n.Disable(!1,a)}t&&MathJax.Hub.Queue(["Reprocess",MathJax.Hub])},Dependent:function(t){this.dependents.push(t)}},function(){var t=MathJax.Ajax.config.path;t.a11y||(t.a11y=HUB.config.root+"/extensions/a11y"),t.SRE||(t.SRE=MathJax.Ajax.fileURL(t.a11y)),MathJax.Ajax.Load("[SRE]/mathjax-sre.js"),MathJax.Hub.Register.StartupHook("Sre Ready",["loadComplete",MathJax.Ajax,"[SRE]/mathjax-sre.js"])}(),MathJax.Callback.Queue(["Require",MathJax.Ajax,"[MathJax]/jax/element/mml/jax.js"],["Require",MathJax.Ajax,"[MathJax]/jax/input/MathML/config.js"],["Require",MathJax.Ajax,"[MathJax]/jax/input/MathML/jax.js"],["Require",MathJax.Ajax,"[MathJax]/extensions/toMathML.js"],MathJax.Hub.Register.StartupHook("Sre Ready",function(){var t=MathJax.ElementJax.mml,a=MathJax.Extension["semantic-enrich"];t.mbase.Augment({toMathMLattributes:function(){var e="mstyle"===this.type?t.math.prototype.defaults:this.defaults,n=this.attrNames||t.copyAttributeNames,s=t.skipAttributes,i=t.copyAttributes,h=a.running&&a.mstyleLookup[this.type]||[],r=[],o=this.attr||{};if("math"!==this.type||this.attr&&"xmlns"in this.attr||r.push('xmlns="http://www.w3.org/1998/Math/MathML"'),!this.attrNames)for(var u in e)s[u]||i[u]||!e.hasOwnProperty(u)||null!=this[u]&&this[u]!==e[u]&&this.Get(u,null,1)!==this[u]&&this.toMathMLaddAttr(r,u,this[u]);for(var l=0,c=n.length;l<c;l++)1===i[n[l]]&&!e.hasOwnProperty(n[l])||(value=o[n[l]],null==value&&(value=this[n[l]]),null!=value&&this.toMathMLaddAttr(r,n[l],value));for(l=0,c=h.length;l<c;l++)u=h[l],e.hasOwnProperty(u)&&!r["_"+u]&&(value=this.Get(u,1),null!=value&&this.toMathMLaddAttr(r,u,value));return this.toMathMLclass(r),r.length?" "+r.join(" "):""},toMathMLaddAttr:function(t,a,e){t.push(a+'="'+this.toMathMLquote(e)+'"'),t["_"+a]=1}});var e=t.mo.prototype.setTeXclass;t.mo.Augment({setTeXclass:function(a){return this.getValues("form","lspace","rspace"),this.useMMLspacing?(this.texClass=t.TEXCLASS.NONE,this):this.attr&&this.attr["data-semantic-added"]?(this.texClass=this.prevClass=t.TEXCLASS.NONE,a):e.apply(this,arguments)}})}),function(){MathJax.Hub.postInputHooks.Add(["Filter",MathJax.Extension["semantic-enrich"]],50),MathJax.Hub.Startup.signal.Post("Semantic Enrich Ready"),MathJax.Ajax.loadComplete("[a11y]/semantic-enrich.js")});