mw.loader.implement("ext.math.mathjax.mathjax",function($,jQuery){if(window.MathJax){window.MathJax={AuthorConfig:window.MathJax}}else{window.MathJax={}}if(document.getElementById&&document.childNodes&&document.createElement){if(!MathJax.Hub){MathJax.version="2.3";MathJax.fileversion="2.3";(function(BASENAME){var BASE=window[BASENAME];if(!BASE){BASE=window[BASENAME]={}}var PROTO=[];var OBJECT=function(def){var obj=def.constructor;if(!obj){obj=new Function("")}for(var id in def){if(id!=='constructor'&&def.hasOwnProperty(id)){obj[id]=def[id]}}return obj;};var CONSTRUCTOR=function(){return new Function("return arguments.callee.Init.call(this,arguments)");};var BUGTEST=CONSTRUCTOR();BUGTEST.prototype={bug_test:1};if(!BUGTEST.prototype.bug_test){CONSTRUCTOR=function(){return function(){return arguments.callee.Init.call(this,arguments)};};};BASE.Object=OBJECT({constructor:CONSTRUCTOR(),Subclass:function(def,classdef){var obj=CONSTRUCTOR();obj.SUPER=this;obj.Init=this.Init;obj.Subclass=this. Subclass;obj.Augment=this.Augment;obj.protoFunction=this.protoFunction;obj.can=this.can;obj.has=this.has;obj.isa=this.isa;obj.prototype=new this(PROTO);obj.prototype.constructor=obj;obj.Augment(def,classdef);return obj;},Init:function(args){var obj=this;if(args.length===1&&args[0]===PROTO){return obj}if(!(obj instanceof args.callee)){obj=new args.callee(PROTO)}return obj.Init.apply(obj,args)||obj;},Augment:function(def,classdef){var id;if(def!=null){for(id in def){if(def.hasOwnProperty(id)){this.protoFunction(id,def[id])}}if(def.toString!==this.prototype.toString&&def.toString!=={}.toString){this.protoFunction('toString',def.toString)}}if(classdef!=null){for(id in classdef){if(classdef.hasOwnProperty(id)){this[id]=classdef[id]}}}return this;},protoFunction:function(id,def){this.prototype[id]=def;if(typeof def==="function"){def.SUPER=this.SUPER.prototype}},prototype:{Init:function(){},SUPER:function(fn){return fn.callee.SUPER},can:function(method){return typeof(this[method])=== "function"},has:function(property){return typeof(this[property])!=="undefined"},isa:function(obj){return(obj instanceof Object)&&(this instanceof obj)}},can:function(method){return this.prototype.can.call(this,method)},has:function(property){return this.prototype.has.call(this,property)},isa:function(obj){var constructor=this;while(constructor){if(constructor===obj){return true}else{constructor=constructor.SUPER}}return false;},SimpleSUPER:OBJECT({constructor:function(def){return this.SimpleSUPER.define(def)},define:function(src){var dst={};if(src!=null){for(var id in src){if(src.hasOwnProperty(id)){dst[id]=this.wrap(id,src[id])}}if(src.toString!==this.prototype.toString&&src.toString!=={}.toString){dst.toString=this.wrap('toString',src.toString)}}return dst;},wrap:function(id,f){if(typeof(f)==='function'&&f.toString().match(/\.\s*SUPER\s*\(/)){var fn=new Function(this.wrapper);fn.label=id;fn.original=f;f=fn;fn.toString=this.stringify;}return f;},wrapper:function(){var fn=arguments. callee;this.SUPER=fn.SUPER[fn.label];try{var result=fn.original.apply(this,arguments)}catch(err){delete this.SUPER;throw err}delete this.SUPER;return result;}.toString().replace(/^\s*function\s*\(\)\s*\{\s*/i,"").replace(/\s*\}\s*$/i,""),toString:function(){return this.original.toString.apply(this.original,arguments);}})});})("MathJax");(function(BASENAME){var BASE=window[BASENAME];if(!BASE){BASE=window[BASENAME]={}}var CALLBACK=function(data){var cb=new Function("return arguments.callee.execute.apply(arguments.callee,arguments)");for(var id in CALLBACK.prototype){if(CALLBACK.prototype.hasOwnProperty(id)){if(typeof(data[id])!=='undefined'){cb[id]=data[id]}else{cb[id]=CALLBACK.prototype[id]}}}cb.toString=CALLBACK.prototype.toString;return cb;};CALLBACK.prototype={isCallback:true,hook:function(){},data:[],object:window,execute:function(){if(!this.called||this.autoReset){this.called=!this.autoReset;return this.hook.apply(this.object,this.data.concat([].slice.call(arguments,0)));}},reset: function(){delete this.called},toString:function(){return this.hook.toString.apply(this.hook,arguments)}};var ISCALLBACK=function(f){return(typeof(f)==="function"&&f.isCallback);} var EVAL=function(code){return eval.call(window,code)} EVAL("var __TeSt_VaR__ = 1");if(window.__TeSt_VaR__){try{delete window.__TeSt_VaR__;}catch(error){window.__TeSt_VaR__=null;}}else{if(window.execScript){EVAL=function(code){BASE.__code=code;code="try {"+BASENAME+".__result = eval("+BASENAME+".__code)} catch(err) {"+BASENAME+".__result = err}";window.execScript(code);var result=BASE.__result;delete BASE.__result;delete BASE.__code;if(result instanceof Error){throw result}return result;}}else{EVAL=function(code){BASE.__code=code;code="try {"+BASENAME+".__result = eval("+BASENAME+".__code)} catch(err) {"+BASENAME+".__result = err}";var head=(document.getElementsByTagName("head"))[0];if(!head){head=document.body}var script=document.createElement("script");script.appendChild(document.createTextNode(code));head.appendChild(script);head.removeChild(script);var result=BASE.__result;delete BASE.__result;delete BASE.__code;if(result instanceof Error){throw result}return result;}}}var USING=function(args,i){if(arguments.length>1){if(arguments. length===2&&!(typeof arguments[0]==='function')&&arguments[0]instanceof Object&&typeof arguments[1]==='number'){args=[].slice.call(args,i)}else{args=[].slice.call(arguments,0)}}if(args instanceof Array&&args.length===1){args=args[0]}if(typeof args==='function'){if(args.execute===CALLBACK.prototype.execute){return args}return CALLBACK({hook:args});}else if(args instanceof Array){if(typeof(args[0])==='string'&&args[1]instanceof Object&&typeof args[1][args[0]]==='function'){return CALLBACK({hook:args[1][args[0]],object:args[1],data:args.slice(2)});}else if(typeof args[0]==='function'){return CALLBACK({hook:args[0],data:args.slice(1)});}else if(typeof args[1]==='function'){return CALLBACK({hook:args[1],object:args[0],data:args.slice(2)});}}else if(typeof(args)==='string'){return CALLBACK({hook:EVAL,data:[args]});}else if(args instanceof Object){return CALLBACK(args);}else if(typeof(args)==='undefined'){return CALLBACK({});}throw Error("Can't make callback from given data");};var DELAY= function(time,callback){callback=USING(callback);callback.timeout=setTimeout(callback,time);return callback;};var WAITFOR=function(callback,signal){callback=USING(callback);if(!callback.called){WAITSIGNAL(callback,signal);signal.pending++}};var WAITEXECUTE=function(){var signals=this.signal;delete this.signal;this.execute=this.oldExecute;delete this.oldExecute;var result=this.execute.apply(this,arguments);if(ISCALLBACK(result)&&!result.called){WAITSIGNAL(result,signals)}else{for(var i=0,m=signals.length;i0&&prioritysheets){sheets=document.styleSheets.length}if(!head){head=(document.getElementsByTagName("head"))[0];if(!head){head=document.body}}return head;};var SCRIPTS=[];var REMOVESCRIPTS=function(){for(var i=0,m=SCRIPTS.length;i=this.timeout){callback(this.STATUS.ERROR);return 1}return 0;},file:function(file,status){if(status<0){BASE.Ajax.loadTimeout(file)}else{BASE.Ajax.loadComplete(file)}},execute:function(){this.hook.call(this.object,this,this.data[0],this.data[1])},checkSafari2:function(check,length,callback){if(check.time(callback))return;if(document.styleSheets.length>length&&document.styleSheets[length].cssRules&&document.styleSheets[length].cssRules.length){callback(check.STATUS.OK)}else{setTimeout(check,check.delay)}},checkLength:function(check,node,callback){if(check.time(callback))return;var isStyle=0;var sheet=(node.sheet||node.styleSheet);try{if((sheet.cssRules||sheet.rules||[]).length>0){isStyle=1}}catch(err){if(err.message.match(/protected variable|restricted URI/)){isStyle=1}else if(err.message.match(/Security error/)){isStyle=1;}}if(isStyle){setTimeout(BASE.Callback([callback,check.STATUS.OK]),0);}else{setTimeout(check,check.delay);}}},loadComplete:function(file){ file=this.fileURL(file);var loading=this.loading[file];if(loading&&!loading.preloaded){BASE.Message.Clear(loading.message);clearTimeout(loading.timeout);if(loading.script){if(SCRIPTS.length===0){setTimeout(REMOVESCRIPTS,0)}SCRIPTS.push(loading.script);}this.loaded[file]=loading.status;delete this.loading[file];this.addHook(file,loading.callback);}else{if(loading){delete this.loading[file]}this.loaded[file]=this.STATUS.OK;loading={status:this.STATUS.OK}}if(!this.loadHooks[file]){return null}return this.loadHooks[file].Execute(loading.status);},loadTimeout:function(file){if(this.loading[file].timeout){clearTimeout(this.loading[file].timeout)}this.loading[file].status=this.STATUS.ERROR;this.loadError(file);this.loadComplete(file);},loadError:function(file){BASE.Message.Set(["LoadFailed","File failed to load: %1",file],null,2000);BASE.Hub.signal.Post(["file load error",file]);},Styles:function(styles,callback){var styleString=this.StyleString(styles);if(styleString===""){callback=BASE. Callback(callback);callback();}else{var style=document.createElement("style");style.type="text/css";this.head=HEAD(this.head);this.head.appendChild(style);if(style.styleSheet&&typeof(style.styleSheet.cssText)!=='undefined'){style.styleSheet.cssText=styleString;}else{style.appendChild(document.createTextNode(styleString));}callback=this.timer.create.call(this,callback,style);}return callback;},StyleString:function(styles){if(typeof(styles)==='string'){return styles}var string="",id,style;for(id in styles){if(styles.hasOwnProperty(id)){if(typeof styles[id]==='string'){string+=id+" {"+styles[id]+"}\n";}else if(styles[id]instanceof Array){for(var i=0;i="0"&&c<="9"){parts[i]=args[parts[i]-1];if(typeof parts[i]==="number")parts[i]=this.number(parts[i]);}else if(c==="{"){c=parts[i].substr(1);if(c>="0"&&c<="9"){parts[i]=args[parts[i].substr(1,parts[i].length-2)-1];if(typeof parts[i]==="number")parts[i]=this.number(parts[i]);}else{var match=parts[i].match(/^\{([a-z]+):%(\d+)\|(.*)\}$/);if(match){if(match[1]==="plural"){var n=args[match[2]-1];if(typeof n==="undefined"){parts[i]="???";}else{n=this.plural(n)-1;var plurals=match[3].replace(/(^|[^%])(%%)*%\|/g,"$1$2%\uEFEF").split(/\|/);if(n>=0&&n=3){result.push([data[0],data[1],this.processSnippet(domain,data[2])]);}else{result.push(snippet[i]);}}else{result.push(snippet[i]);}}return result ;},markdownPattern:/(%.)|(\*{1,3})((?:%.|.)+?)\2|(`+)((?:%.|.)+?)\4|\[((?:%.|.)+?)\]\(([^\s\)]+)\)/,processMarkdown:function(phrase,args,domain){var result=[],data;var parts=phrase.split(this.markdownPattern);var string=parts[0];for(var i=1,m=parts.length;i1?preJax[1]:""));pre=null;}if(postJax&&(!config.preJax||preJax)){post.nodeValue=post.nodeValue.replace(config.postJax,(postJax.length>1?postJax[1]:""));}if(pre&&!pre.nodeValue.match(/\S/)){pre=pre.previousSibling}}if(config.preRemoveClass&&pre&&pre.className===config.preRemoveClass){script.MathJax.preview=pre}script.MathJax.checked=1;},processInput:function(state){var jax,STATE=MathJax.ElementJax.STATE;var script,prev,m=state.scripts.length;try{while(state.ithis.processUpdateTime&&state.i1){state.jax[jax.outputJax].push(script)}script.MathJax.state=STATE.OUTPUT;},prepareOutput:function(state,method){while(state.jthis.processUpdateTime&&state.i=0;i--){if((scripts[i].src||"").match(namePattern)){STARTUP.script=scripts[i].innerHTML;if(RegExp.$2){var params=RegExp.$2.substr(1).split(/\&/);for(var j=0,m=params.length;j=parseInt(v[i])}}return true;},Select:function(choices){var browser=choices[HUB.Browser];if(browser){return browser(HUB.Browser)}return null;}};var AGENT=navigator.userAgent.replace(/^Mozilla\/(\d+\.)+\d+ /,"").replace(/[a-z][-a-z0-9._: ]+\/\d+[^ ]*-[^ ]*\.([a-z][a-z])?\d+ /i,"").replace(/Gentoo |Ubuntu\/(\d+\.)*\d+ (\([^)]*\) )?/,"");HUB.Browser=HUB.Insert(HUB.Insert(new String("Unknown"),{version:"0.0"}),BROWSERS);for(var browser in BROWSERS){if(BROWSERS.hasOwnProperty(browser)){if(BROWSERS[browser]&&browser.substr(0,2)==="is"){browser=browser.slice(2);if(browser==="Mac"||browser==="PC")continue;HUB.Browser=HUB.Insert(new String(browser),BROWSERS);var VERSION=new RegExp( ".*(Version)/((?:\\d+\\.)+\\d+)|"+".*("+browser+")"+(browser=="MSIE"?" ":"/")+"((?:\\d+\\.)*\\d+)|"+"(?:^|\\(| )([a-z][-a-z0-9._: ]+|(?:Apple)?WebKit)/((?:\\d+\\.)+\\d+)");var MATCH=VERSION.exec(AGENT)||["","","","unknown","0.0"];HUB.Browser.name=(MATCH[1]=="Version"?browser:(MATCH[3]||MATCH[5]));HUB.Browser.version=MATCH[2]||MATCH[4]||MATCH[6];break;}}};HUB.Browser.Select({Safari:function(browser){var v=parseInt((String(browser.version).split("."))[0]);if(v>85){browser.webkit=browser.version}if(v>=534){browser.version="5.1"}else if(v>=533){browser.version="5.0"}else if(v>=526){browser.version="4.0"}else if(v>=525){browser.version="3.1"}else if(v>500){browser.version="3.0"}else if(v>400){browser.version="2.0"}else if(v>85){browser.version="1.0"}browser.isMobile=(navigator.appVersion.match(/Mobile/i)!=null);browser.noContextMenu=browser.isMobile;},Firefox:function(browser){if((browser.version==="0.0"||navigator.userAgent.match(/Firefox/)==null)&&navigator.product==="Gecko"){var rv= navigator.userAgent.match(/[\/ ]rv:(\d+\.\d.*?)[\) ]/);if(rv){browser.version=rv[1]}else{var date=(navigator.buildID||navigator.productSub||"0").substr(0,8);if(date>="20111220"){browser.version="9.0"}else if(date>="20111120"){browser.version="8.0"}else if(date>="20110927"){browser.version="7.0"}else if(date>="20110816"){browser.version="6.0"}else if(date>="20110621"){browser.version="5.0"}else if(date>="20110320"){browser.version="4.0"}else if(date>="20100121"){browser.version="3.6"}else if(date>="20090630"){browser.version="3.5"}else if(date>="20080617"){browser.version="3.0"}else if(date>="20061024"){browser.version="2.0"}}}browser.isMobile=(navigator.appVersion.match(/Android/i)!=null||navigator.userAgent.match(/ Fennec\//)!=null||navigator.userAgent.match(/Mobile/)!=null);},Opera:function(browser){browser.version=opera.version()},MSIE:function(browser){browser.isIE9=!!(document.documentMode&&(window.performance||window.msPerformance));MathJax.HTML.setScriptBug=!browser.isIE9|| document.documentMode<9;var MathPlayer=false;try{new ActiveXObject("MathPlayer.Factory.1");browser.hasMathPlayer=MathPlayer=true}catch(err){}try{if(MathPlayer&&!STARTUP.params.NoMathPlayer){var mathplayer=document.createElement("object");mathplayer.id="mathplayer";mathplayer.classid="clsid:32F66A20-7614-11D4-BD11-00104BD3F987";document.getElementsByTagName("head")[0].appendChild(mathplayer);document.namespaces.add("m","http://www.w3.org/1998/Math/MathML");browser.mpNamespace=true;if(document.readyState&&(document.readyState==="loading"||document.readyState==="interactive")){document.write('');browser.mpImported=true;}}else{document.namespaces.add("mjx_IE_fix","http://www.w3.org/1999/xlink");}}catch(err){}}});HUB.Browser.Select(MathJax.Message.browsers);if(BASE.AuthorConfig&&typeof BASE.AuthorConfig.AuthorInit==="function"){BASE.AuthorConfig.AuthorInit()}HUB.queue=BASE.Callback.Queue();HUB.queue.Push(["Post",STARTUP.signal,"Begin"],[ "Config",STARTUP],["Cookie",STARTUP],["Styles",STARTUP],["Message",STARTUP],function(){var queue=BASE.Callback.Queue(STARTUP.Jax(),STARTUP.Extensions());return queue.Push({});},["Menu",STARTUP],STARTUP.onLoad(),function(){MathJax.isReady=true},["Typeset",STARTUP],["Hash",STARTUP],["MenuZoom",STARTUP],["Post",STARTUP.signal,"End"]);})("MathJax");}};},{},{}); /* cache key: cybsr1_mediawiki_d:resourceloader:filter:minify-js:7:536c5f1cea37190d90e2bb7ec44fb4d4 */