44 lines
32 KiB
JavaScript
44 lines
32 KiB
JavaScript
/*************************************************************
|
|
*
|
|
* MathJax.js
|
|
*
|
|
* The main code for the MathJax math-typesetting library. See
|
|
* http://www.mathjax.org/ for details.
|
|
*
|
|
* ---------------------------------------------------------------------
|
|
*
|
|
* Copyright (c) 2009-2010 Design Science, Inc.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
if (!window.MathJax) {window.MathJax = {}}
|
|
|
|
MathJax.Unpack = function (data) {
|
|
var k, d, n, m, i;
|
|
for (k = 0, m = data.length; k < m; k++) {
|
|
d = data[k];
|
|
for (i = 0, n = d.length; i < n; i++)
|
|
{if (typeof(d[i]) == 'number') {d[i] = d[d[i]]}}
|
|
data[k] = d.join('');
|
|
}
|
|
eval(data.join(''));
|
|
};
|
|
MathJax.isPacked = true;
|
|
|
|
MathJax.Unpack([
|
|
['if(','document.','getElementById','&&',1,'childNodes&&',1,'createElement','){','if(!','window.MathJax','){',10,'={}}',9,'MathJax.','Hub){',15,'version="1.0.8";(','function(','d){','var b=','window[d];if(!','b){b','=window[d]={}}var ','f','=[];','var c=',19,'g','){var h=','g.','constructor',';if(!','h){h=','new Function','("")}','for(var ','i in g){if(i!=="',32,'"&&g','.hasOwnProperty','(i)){h[i]=g[i]}}','return ','h};var a=','function(){',43,35,'("',43,'arguments','.callee','.Init','.call(this,',50,')")};var e=a();e','.prototype','={bug_test:1};',9,'e',56,'.bug_test){a=',45,43,45,43,50,51,'.Init',53,50,')}}}b.','Object','=c({',32,':a(),Subclass:',19,'g,i',30,'a();h.SUPER=this;h.Init=this.Init;h','.Subclass','=this',80,';h.Augment=this.Augment;h.','protoFunction','=this.',84,';h.can=this.can;h.has=this.has;h.isa=this.isa;h',56,'=new this(f);h',56,'.',32,'=h;h.Augment(g,i);',43,'h},Init:',19,'g',30,'this;if(g','.length===','1&&g[0]===f','){return ','h}if(!(h ','instanceof ','g',51,')){h=new g',51,'(f)}',43,'h.Init.apply(h,g)||h},Augment:',19,'g,h){var i;if(g','!=null){for(i in ','g){if(g',41,'(i)){this','.',84,'(i,g[i','])}}if(g.toString!==this.prototype.toString&&g.toString!=={}.toString){this.protoFunction("toString",g.toString)}}','if(h',114,'h){if(','h',41,117,'[i]=h[i]}}}',43,'this},',84,':',19,'h,g){this',56,'[h]=g;','if(typeof',' g','==="function"){','g.SUPER=this.SUPER',56,'}},prototype:{Init',':function(){},','SUPER:',19,'g',102,'g',51,'.SUPER},can:',19,'g',102,'typeof(this[g','])==="function"},has:',19,'g',102,154,'])!=="undefined','"},isa:',19,'g){return(g ',104,72,')&&(this ',104,'g)}},can:',19,'g',102,'this',56,'.can',53,'g)},has:',19,'g',102,'this',56,'.has',53,'g)},isa:',19,'h){var g=this;while(',115,'===h',102,'true}else{g=g.SUPER}}',43,'false},SimpleSUPER:c({',32,':',19,'g',102,'this.SimpleSUPER.define(g)},define:',19,'g){var i={};if(g','!=null){',37,'h in ',115,41,'(h)){this.',84,'(h,g[h',121,43,'i},wrap:',19,'i,h){',137,'(h',')==="function"&&','h','.toString','().match(/\\.\\s*SUPER\\s*\\(/)){var g=',35,'(this.wrapper);g.label=i;g','.original','=h;h=g;g',218,'=this.stringify}',43,'h},wrapper:',45,'var h=',50,51,';this.SUPER=h.SUPER[h.label];try{var g=h',222,'.apply(this',',',50,')}catch(i){','delete this.','SUPER;','throw i}',238,239,43,'g}.','toString().replace','(/^\\s*function \\(\\)\\s*\\{\\s*/i,"").replace(/\\s*\\}\\s*$/i,""),toString:',45,43,'this',222,218,234,222,',',50,')}})})})("MathJax");(',19,'BASENAME){var ','BASE=window[BASENAME','];',9,'BASE){',259,']={}}var ','CALLBACK','=',19,'data){var cb=',35,'("',43,50,51,'.execute','.apply(',50,51,',',50,')");',37,'id in ','CALLBACK.prototype','){if(',283,41,'(id)){',137,'(data[id',160,'"){cb[id]=data[id]}else{cb[id]=',283,'[id]}}}cb',218,'=',283,218,';',43,'cb};',283,'={isCallback:true,hook',143,'data:[],object:window,execute:',45,9,'this.called||this.autoReset){this.called=!this.autoReset;',43,'this.hook',234,'.object,this','.data.concat([].slice.call(',50,',0)))}},reset:',45,238,'called},toString:',45,43,309,218,234,'.hook,',50,')}};var ISCALLBACK=',19,'f){return(typeof(f',216,'f.isCallback)};var EVAL=',19,'code',102,'eval.call(window,code)};EVAL("var __TeSt_VaR__ = 1','");if(','window.__TeSt_VaR__','){try{delete ',335,'}catch(error){',335,'=null}}else{if(','window.execScript','){EVAL=',19,'code){BASE.__code=code;code="try {"+BASENAME+".__result = eval("+BASENAME+".__code)} catch(err) {"+BASENAME+".__result = err}";',341,'(code',');var result=BASE.__result;delete BASE.__result;delete BASE.__code;if(result instanceof Error){throw result}return result','}}else{EVAL=',19,344,'var head=(',1,'getElementsByTagName("head"))[0];if(!','head){head=',1,'body}var script=',1,7,'("script");','script','.appendChild(',1,'createTextNode','(code));head',361,'script);','head.removeChild(','script',347,'}}}var USING=',19,'args,i','){if(',50,'.length','>1){if(',50,100,'2&&!(typeof ',50,'[0]==="function")&&',50,'[0] ',104,'Object&&typeof ',50,'[1]==="number"){','args=[].slice.call(',372,')}else{',388,50,',0)}}if(args ',104,'Array&&args',100,'1){args=args[0]}',137,' args',139,'if(args',274,'===',283,274,102,'args}',43,265,'({hook:args})}else{if(args ',104,'Array){',137,'(args[0])==="string"&&args[1] ',104,385,'args[1][args[0]]==="','function"){return CALLBACK({hook:args[','1][args[0]],object:args[1','],data:args.slice(','2)})}else{',137,' args[0]==="',418,'0',420,'1)})}else{',137,' args[1]==="',418,'1],object:args[0',420,'2)})}}}}else{',137,'(args)==="','string"){',43,265,'({hook:EVAL,data:[args]})}else{if(args ',104,72,102,265,'(args',390,137,'(args',')==="undefined"){',43,265,'({})}}}}}','throw Error("Can\'t ','make ','callback',' from given data")};var DELAY=',19,'time,',454,'){callback=USING(callback);',454,'.timeout=','setTimeout(',454,',time);','return callback','};var WAITFOR=',19,454,',signal',459,9,454,'.called){','WAITSIGNAL(',454,469,');signal.pending++}};var WAITEXECUTE=',45,'var signals=this','.signal',';',238,'signal;this',274,'=this.','oldExecute;',238,486,'var result=','this',274,234,',',50,');','if(ISCALLBACK(result)&&!result.called){',474,'result,signals',390,'for(var i=0,m=','signals','.length;i<m;i++){','signals[i].pending','--;if(',503,'<=0){signals[i].call()}}}};var WAITSIGNAL=',19,454,',signals){if(!(signals ',104,'Array)){','signals=[signals]}',9,454,480,'){',454,'.oldExecute=',454,274,';',454,274,'=WAITEXECUTE;',454,480,'=signals}else{if(signals',100,'1){',454,480,'.push(signals[0','])}else{',454,480,'=',454,480,'.concat(signals)}}};var AFTER=',19,454,459,454,'.pending=0;',37,'i=1,m=',50,502,'if(',50,'[i]){WAITFOR(',50,'[i],',454,')}}if(',454,'.pending===0){',489,454,'();','if(ISCALLBACK(result',')){',454,'=result}}',465,'};var HOOKS=',19,'hooks,data,reset){',9,'hooks',102,'null}if(!(hooks ',104,511,'hooks=[hooks]}if(!(data ',104,511,'data=(data==null?[]:[data])}var ','callbacks','=[{}];',500,'hooks',502,'if(reset){hooks[i].reset()}',489,'hooks[i].apply(window,data);',496,579,'.push(result)}}if(',579,100,'1',102,'null}if(',579,100,'2',102,579,'[1]}',43,'AFTER.apply({},',579,')};var QUEUE=BASE.',72,80,'({Init:',45,'this.pending','=0;','this.running','=0;','this.queue',26,'this.Push',234,',',50,')},Push:',45,'var ',454,';',500,50,502,454,'=USING(',50,'[i]);if(',454,'===',50,'[i]&&!',454,473,454,'=USING(["wait",this,',454,'])}',613,'.push(',454,')}',9,611,'&&!',609,'){','this.Process','()}',465,'},Process:',19,'queue){while(!',611,'&&!',609,'&&',613,375,'){var ',454,'=',613,'[0];queue=',613,'.slice(1);',613,26,'this.Suspend();',489,454,'();','this.Resume();','if(queue',375,'){',613,'=queue.concat(',613,')}',496,'WAITFOR(result,this',')}}},Suspend:',45,611,'++},Resume:',45,'if(',611,'){',611,'--}},call:',45,650,234,',',50,')},wait:',19,454,'){',465,'}});var SIGNAL=QUEUE',80,'({Init:',19,'name){','QUEUE',56,'.Init','.call(this',');this.name=name;','this.posted',26,'this.listeners','=[]},Post:',19,'message,',454,',forget',459,'if(this.posting||this.pending){',615,'(["Post",this,message,',454,722,533,'this.',454,'=',454,';',454,'.reset();',9,'forget){',715,'.push(message)}',671,'this.posting=1;',500,717,502,717,'[i].reset();var result=(',717,'[i])(','message);',496,684,')}}',675,238,'posting',33,609,'){this.call()}}',465,'},Clear:',19,454,459,724,454,'=',615,'(["Clear",this,',454,533,715,26,454,'()}',465,'},call:',45,'this.',454,'(this);',650,'()},Interest:',19,454,',ignorePast',459,717,'[',717,375,']=',454,33,'ignorePast){',500,715,502,454,736,489,454,'(',715,'[i]);',561,')&&i===',715,375,'-1){',684,')}}}',465,'},NoInterest:',19,454,'){',500,717,502,'if(',717,'[i]===',454,'){',717,'.splice(i,1);return}}},MessageHook:',19,'msg,',454,459,9,'this.hooks','){',833,'={};this.Interest(["','ExecuteHooks','",this])}',9,'this.hooks[msg',']){',840,']=[]}',840,'].push(',454,');',500,715,502,'if(',715,'[i]==msg){',454,736,454,'(',715,'[i])}}',465,'},',837,':',19,'msg,more){var type=((msg ',104,'Array)?msg[0]:msg);',43,'HOOKS(',833,'[type],[msg],true)}},{signals:{},find:',19,709,9,'SIGNAL.signals[name',']){',875,']=new SIGNAL(name)}',43,875,']}});BASE.Callback=BASE.CallBack=USING',';BASE.Callback.','Delay=DELAY',882,'After=AFTER',882,'Queue=QUEUE',882,'Signal=SIGNAL.find',882,837,'=HOOKS})("MathJax");(',19,'d','){var a=',22,'a){a',24,'c=(','navigator.vendor==="Apple Computer, Inc."&&typeof navigator.vendorSub==="undefined','");var f=0;var g=',19,124,1,'styleSheets','&&',1,905,375,'>f){f=',1,905,375,'}',9,'h){h=(',1,353,34,1,'body}}',43,'h};var e',26,21,45,37,'j=0,h=e',375,';j<h;j++){','a.Ajax.',367,'e[j])}e=[]};a.Ajax={loaded:{},loading:{},loadHooks:{},timeout:15*1000,styleDelay:1,config:{root:""},STATUS:{OK:1,ERROR:-1},rootPattern:new RegExp("^\\\\["+d+"\\\\]"),fileURL:',19,'h',102,'h.replace(this.rootPattern,this.config.root)},Require:',19,'j,m){m','=a.Callback(','m',');var k;if(j instanceof Object){for(var h in j){}k=h.toUpperCase();j=j[h]}else{k=j.split(/\\./).pop().toUpperCase()}j=this.fileURL(j);if(this.','loaded[j]){m(','this.loaded[','j',533,'var l={};l[k]=j;this.Load(l,m)}',43,'m},Load:',19,'j,l){l',940,'l',942,'loading[j]){',9,'this.loadHooks[','j]){',957,'j]=[]}',957,'j].push(l',390,'this.head=g(this.head);','if(this.loader[k]){this.loader[k].call(this,j,l',390,452,'load files of type "+k)}}',43,'l},LoadHook:',19,'j,k){k',940,'k);if(j ',104,72,'){',37,203,'j){j=j[h]}}j=','this.fileURL(','j);if(',944,'j]){k(',944,'j',533,9,957,'j]){',957,'j]=[]}',957,'j].push(k)}',43,'k},loader:{JS:',19,'i,k',30,1,7,359,'var j=','a.Callback','(["','loadTimeout','",this,i]);','this.loading','[i]={',454,':k',',message:a.Message.File(','i),timeout:',462,'j,this.timeout),status:','this.STATUS.OK',',script:h};h.onerror=j;h.type="text/javascript";h.src=i;','this.head',361,'h)},CSS:',19,'h,j){var i=',1,7,'("link");i.rel="stylesheet";','i.type="text/css";','i.href=h;',1008,'[h]={',454,':j',1012,'h),status:',1016,'};',1018,361,'i);','this.timer','.create',713,',[',1039,'.file,h],i)}},timer:{create:',19,213,'i',940,'i);if(','h.nodeName==="STYLE','"&&h','.styleSheet&&typeof(','h','.styleSheet.cssText)!=="undefined"){i','(',1016,390,'if(window.chrome&&typeof(window.sessionStorage)!=="undefined"&&',1050,'"){i(',1016,390,'if(c){','this.timer.start(this,[this.timer.','checkSafari2',',f++,','i],this.styleDelay',390,1064,'checkLength,h,',1067,')}}}',43,'i},start:',19,'i,h,j,k){h',940,'h);h',274,'=this',274,';h.time=this.time;h.STATUS=i.STATUS;h',461,'k||i.timeout;h.delay=h.total=0;',462,'h,j)},time:',19,'h){this.total+=this.delay;this.delay=Math.floor(this.delay*1.05+5);if(this.total>=this.timeout){h(','this.STATUS.ERROR',');',43,'1}',43,'0},file:',19,'i,',124,'h<0){',931,1006,'(i',390,931,'loadComplete','(i)}},execute:',45,309,713,311,',this.data[0],this.data[1])},',1065,':',19,'h,i,j){if(h.time(j)){return}if(',1,905,375,'>i&&',1,905,'[i].cssRules','&&',1,905,1121,375,'){j(h.STATUS.OK',390,462,'h,h.delay',')}},checkLength:',19,'h,k,m){if(h.time(m)){return}var l=0;var i=(k.sheet||k.styleSheet);try{if((i.cssRules||i.rules||[]).length>0){l=1}}catch(j){','if(j.message.match(/','protected variable|restricted URI/)){l=1}else{',1134,'Security error/)){l=1}}}if(l){',462,1004,'([m,h.STATUS.OK]),0',390,462,1130,')}}},',1104,':',19,34,981,'h);var i=',1008,'[h];if(i){a.Message.Clear(i.',750,'clearTimeout(','i.timeout);if(i.script){if(e',100,'0){',462,'b,0)}e.push(i.script)}',944,'h]=i.status;',238,'loading[h];',9,957,'h]){',957,'h]=[]}',957,'h].push(i.',454,390,944,'h]=',1016,';i={status:',1016,'}}',1004,'.',837,'(',957,'h],i.status)},',1006,':',19,124,1008,'[h].timeout','){',1154,1008,1190,')}',1008,'[h].status=',1089,';this.loadError(h);this.',1104,'(h)},loadError:',19,'h){a.Message.Set("File failed to load: "+h,null,2000)},Styles:',19,'j,k',30,'this.StyleString(',982,'h===""){k',940,'k);k()}else{var i=',1,7,'("style");',1026,964,1018,361,1049,'i',1052,'i',1054,'.styleSheet.cssText=h}else{i',361,1,363,'(h))}k=',1039,'.create',53,'k,i)}',43,'k},StyleString:',19,'m){',137,'(m)==="',436,43,'m}var j="",n,l;for(n in m){if(m',41,'(n)){',137,' m[n]==="',436,'j+=n+" {"+','m[n]+"}\\n"}else{if(m[n] ',104,412,37,'k=0;k<m[n].length;k++){l={};l[n]=m[n][k];j+=',1207,'l)}}else{if(n.substr(0,6)==="@media"){',1247,1207,'m[n])+"}\\n"}else{if(m[n]!=null){l',26,37,203,'m[n]){if(m[n][h]!=null){l[l',375,']=h+": "+m[n][h]}}',1247,'l.join("; ")+"}\\n"}}}}}}',43,'j}}})("MathJax");',15,'HTML={Element:',19,'c,e,d){var f=',1,7,'(c);if(e){if(e.style){',21,'e.style;e.style={};',37,'g in b){if(b',41,'(g)){e.style[g.replace(/-([a-z])/g,this.ucMatch)]=b[g]}}}',15,'Hub.Insert(f,e)}if(d){',37,'a=0;a<d',375,';a++){if(d[a] ',104,412,'f',361,'this.Element(','d[a][0],d[a][1],d[a][2]))}else{f',361,1,363,'(d[a]))}}}',43,'f},ucMatch:',19,'a,b',102,'b.toUpperCase()},addElement:',19,'b,a,d,c',102,'b',361,1291,'a,d,c))},TextNode:',19,'a',102,1,363,'(a)},addText:',19,'a,b',102,'a',361,'this.TextNode(b))},Cookie:{prefix:"mjx",expires:365,Set:',19,'a,d){var c',26,'if(d){',37,'f in d){if(d',41,'(f)){c.push(f+":"+d[f].',245,'(/&/g,"&&"))}}}',21,'this.prefix+"."+a+"="+escape(c.join("&;"));if(this.expires){var e=new Date();e.setDate(e.getDate()+this.expires);b+="; expires="+e.toGMTString()}',1,'cookie=b+"; path=/"},Get:',19,'c,h){',9,'h){h={}}var g=new RegExp("(?:^|;\\\\s*)"+this.prefix+"\\\\."+c+"=([^;]*)(?:;|$)");',21,'g.exec(',1,'cookie);if(b&&b[1]!==""){var e=unescape(b[1]).split("&;");',37,'d=0,a=e',375,';d<a;d++){b=e[d].match(/([^:]+):(.*)/);var f=b[2].replace(/&&/g,"&");if(f==="true"){f=true}else{if(f==="false"){f=false}else{if(f.match(/^-?(\\d+(\\.\\d+)?|\\.\\d+)$/)){f=parseFloat(f)}}}h[b[1]]=f}}',43,'h}}};',15,'Message={log:[{}],current:null,textNodeBug:(',900,'")||(window',41,'&&window',41,'("konqueror")),styles:{"#','MathJax_Message','":{position:"','fixed",left:"1px",bottom:"2px","background-color":"#E6E6E6",border:"1px solid #959595','",margin:"0px",padding:"','2px 8px","z-index":"102",color:"black","font-size":"80%",width:"auto","white-space":"nowrap"},"#','MathJax_MSIE_Frame',1359,'absolute",top:0,left:0,width:"0px","z-index":101,border:"0px',1361,'0px"}},browsers:{MSIE:',19,'a){','MathJax.Hub.config.styles["#MathJax_Message"].','position="absolute";',15,'Message.quirks','=(',1,'compatMode==="BackCompat")},Chrome:',19,'a){',1370,'bottom="1.5em";',1370,'left="1em"}},Init:',45,9,1,'body',102,'false}if(','this.div','&&',1389,'.parentNode==null){',1389,'=',1,2,'("',1358,334,1389,'){this.text=',1389,'.firstChild','}}',9,1389,895,1,'body;if(',15,'Hub.Browser.isMSIE){a=this.frame','=this.addDiv(',1,'body);a.style.',1371,'a.style.border=a.style.margin=a.style.padding="0px";a.style.zIndex="101";a.style.height="0px";a',1412,'a);a.id="',1363,'";','window.attachEvent("','onscroll",','this.MoveFrame',');',1421,'onresize",',1423,');',1423,'()}',1389,1412,'a);','this.div.style.display','="none";this.text=',1389,361,1,363,'(""))}',43,'true},addDiv:',19,'a){',21,1,7,'("div");b.id="',1358,'";if(a',1403,'){a.insertBefore(b,a',1403,390,'a',361,'b)}',43,'b},MoveFrame:',45,'var a=(',15,1373,'?',1,'body:',1,'documentElement);',21,15,'Message.frame;b.style.left=a.scrollLeft+"px";b.style.top=a.scrollTop+"px";b.style.width=a.clientWidth+"px";b=b',1403,';b.style.height=a.clientHeight+"px"},filterText:',19,'a,b){if(',15,'Hub.config.messageStyle','==="simple"){if(a.match(/^Loading /)){',9,1008,'){',1008,'="Loading "}a=',1008,';',1008,'+="."}else{if(a.match(/^Processing /)){',9,'this.processing','){',1489,'="Processing "}a=',1489,';',1489,'+="."}}}',43,'a},Set:',19,'b,c,a){if(',1039,'){',1154,1039,');',238,'timeout}if(c==null){c=this.log',375,';','this.log[','c]={}}',1510,'c].text=b;b=this.filterText(b,c);',137,'(','this.log[c].next',448,1516,'=','this.current',';if(',1520,201,1510,1520,'].prev=c}',1520,'=c}if(',1520,'===c&&',15,1477,'!=="none"){if(this.Init()){if(this.textNodeBug){',1389,'.innerHTML=b}else{this.text.nodeValue=b}',1434,'="";if(this.status){window.status="";',238,'status}}else{window.status=b;this.status=true}}if(a){',462,15,'Callback',769,'c]),a)}',43,'c},Clear:',19,'b,a){if(',1510,'b'],
|
|
['].prev','!=null){','this.log[',2,'b].prev','].next=',2,'b].next','}if(',2,7,1,2,2,7,0,'=',2,4,'}if(','this.current','===b){',20,'=',2,7,';if','(this.','text){if',27,'div','.parentNode','==null','){this.','Init','()}if(',20,32,'){if',27,'timer){clearTimeout',27,'timer)}this.timer=setTimeout(','MathJax.Callback','(["Remove",this]),(a||600))}else{if',27,'textNodeBug',33,'div','.innerHTML','=',2,20,'].text','}else{','this.text','.nodeValue','=',2,20,53,'}}','if(this.status){window.status','="";delete this.status}}else{',62,'=(',20,32,'?"":',2,20,53,')}}}delete ',2,7,';delete ',2,4,'},Remove',':function(){',55,56,'="";this.div','.style.display="none','"},File',':function(','b){var a=','MathJax.','Ajax','.config.','root;if(b','.substr(0,','a.length)===a){b="[','MathJax',']"+b.substr(a.length)}','return ','this.Set("Loading "+b)},Log',79,'var b=[];','for(var ','c=1,a=this.log','.length;c<a;c++){','b[c]=',2,'c',53,'}',95,'b.join("\\n")}};',87,'Hub={config:{root:"",config:[],styleSheets:[],styles:{},jax:[],','extensions',':[],','preJax',':null,','postJax',114,'displayAlign:"center",displayIndent:"0",','preRemoveClass',':"MathJax_Preview",showProcessingMessages:true,messageStyle:"normal",','delayStartupUntil',':"none",','skipStartupTypeset',':false,','preProcessors',':[],','inputJax',':{},','outputJax',':{},menuSettings:{zoom:"None",CTRL:false,ALT:false,CMD:false,Shift:false,zscale:"200%",renderer:"",font:"Auto",context:"',93,'"},','errorSettings',':{message:["[Math Processing Error]"],style:{color:"#CC0000","font-style":"italic"}}},','processUpdateTime',':250,signal:',43,'.Signal("','Hub"),','Config',85,'a){this','.Insert(','this.config',',a);if(','this.config.','Augment',33,146,'(',145,146,')}},','Register',':{PreProcessor',85,'a){','MathJax.Hub.config','.',124,'.push(',43,'(a))},','MessageHook',79,95,87,'Hub','.signal.',163,'.apply(',87,'Hub','.signal,arguments)},','StartupHook',79,95,'MathJax.Hub.Startup',168,163,170,177,173,'LoadHook',79,95,87,'Ajax.',183,170,87,'Ajax,arguments)}},getAllJax',85,'e){var c=[],b=this.elementScripts(e);for(var d=0,a=b.length;d<a;d++){if(b[d].MathJax&&b[d].MathJax.elementJax','){c.push(b[d].','MathJax.elementJax',')}}',95,'c},getJaxByType',85,'f,',193,'&&b[d].',195,'.mimeType','===f){c.push(b[d].',195,')}}',95,'c},getJaxByInputType',85,'f,',193,202,'type',202,'type.replace(/ *;(.|\\','s)*/,"")===f){c.push(b[d].',195,')}}',95,'c},getJaxFor',85,'a){','if(typeof(a)==="string"){a=document.getElementById(a',')}','if(a.MathJax){',95,'a.',195,'}',95,'null},isJax',85,'a){',224,')}','if(a.tagName!=null&&a.tagName.toLowerCase()==="script"){',226,'return(a','.MathJax.state','===',93,'.ElementJax.','STATE','.PROCESSED','?1:-1)}if(a.type&&',145,126,'[a.',216,'s)*/,"")]){return -1}}',95,'0},Queue',79,95,'this.queue.Push','.apply',27,'queue,arguments)},Typeset',85,'b,c){if(!',87,'isReady){',95,'null}var ','a','=this.elementCallback(','b,c);',95,43,'.Queue(["','PreProcess','",this,a.element','],["','Process',273,']).','Push(a.callback)},',272,85,'b,c){var a',267,'b,c);',95,43,271,'Post",this.signal,"','Begin ',272,'"],["ExecuteHooks",',43,',(','arguments.callee.disabled','?[]:',145,124,'),a.element,true],["',287,'End ',272,'"]).',278,275,85,'a,b){return this.takeAction("',275,'",a,b)},','Update',85,305,308,307,'Reprocess',85,305,313,307,'takeAction',85,'d,c,e){var b',267,'c,e);var a=[];',95,43,271,'Clear",this.signal','],["Post",this.signal,["','Begin "+','d,b.element',']],["','prepareScripts','",this,',329,',a],["','processScripts',332,'a',327,'End "+',329,']]).Push(b.callback)},','scriptAction',':{',275,85,'a){},',308,85,86,'b.',195,';if(a&&a.','originalText','===(b.text==""?b',49,':b.text)){b',240,'=a.',244,245,54,'a.',128,'.Remove(','a);b',240,'=a','.STATE.UPDATE','}},',313,85,86,'b.',195,';if(a){a.',128,364,'a);b',240,'=a',368,'}}},',331,85,'h,e,f){if(',293,'){return}var b=this.','elementScripts','(e);var g=',93,243,244,';',99,'d=0,a=b.length;d<a;d++){var c=b[d];if(c.type&&',145,126,'[c.',216,'n)*/,"")]){if(c.',93,'&&c',240,'!==g.PENDING',33,342,'[h](c)}if(!c.',93,'){c.',93,'={state:g.PENDING}}if(c',240,'!==g',245,'){f.push(c)}}}},','checkScriptSiblings',85,'a){if(a.',93,'&&a.',87,'checked',387,'config;var g=a','.previousSibling',';if(g&&g.nodeName=="#text"){var d,f;var c=a.nextSibling;if(c&&c.nodeName!="#text"){c=null}if(b.',113,'){if(typeof(b.',113,')==="string"){b.',113,'=new RegExp','(b.',113,'+"$")}d=g',56,'.match(b.',113,')}if(b.',115,'&&c',428,115,430,115,432,'("^"+b.',115,')}f=c',56,437,115,')}if(d&&(!b.',115,'||f)){g',56,'=g',56,'.replace(b.',113,',(d.length>1?d[1]:""));g=null}if(f&&(!b.',113,'||d)){c',56,'=c',56,459,115,',(f.length>1?f[1]:""))}if(g&&!g',56,'.match(/\\S/)){','g=g',425,'}}if(b.',118,'&&g&&g.className==b.',118,'){try{g',49,'=""}catch(e){}g',83,'"}',226,'a.',87,422,'=1}},',335,85,'h,b,d){if(',293,'){',95,265,'q,o=',93,243,244,';var p=',145,126,',c=',145,128,';try{if(!b){b=','new Date().getTime','()}var j=0,l,f;while(j<h.length){l=h[j];if(!l){continue}f=l',425,';if(f&&f.className==="','MathJax_Error','"){f',31,'.removeChild(f)}var k=l.',216,'s)*/,"");if(!l.',93,'||l',240,'===o',245,'){continue}if(!l.',195,'||l',240,'===o.UPDATE',33,416,'(l);q=p[k].','Translate(l);if(typeof q==="function"){','if(q.called){continue}this.RestartAfter(q)}','q.Attach(l,p[k])}var a=l.',195,';if(!c[a',204,']){l',240,'=o.UPDATE;','throw Error','("No output jax registered for "+a',204,')}a.',128,'=c[a',204,'][0];q=a.',128,'.',529,'l',240,537,530,'l',240,'=o',245,';this',168,'Post(["New Math",a.inputID]);j++;if(',506,'()-b>this.',134,'&&j<h.length){b=0;this.','RestartAfter','(',43,'.Delay(1))}}}catch(g){if(!g.restart){if(!',145,132,'.message){throw g}this.formatError(l,g);j++}if(!d){d=0}var e=Math.floor((d+j)/(d+h.length)*100);d+=j;if(',145,'showProcessingMessages){MathJax.Message.Set("Processing ','math: "+e+"%",0)}',95,43,'.After(["',335,332,'h.slice(j),b,d],g.restart)}if((d||h.length)&&',145,572,'Math: 100%",0);',87,'Message.','Clear(0)}',95,'null},formatError',85,'a,c){var b=',87,'HTML.Element("span",{className:"',510,'"},',145,132,'.message);a',31,'.insertBefore(b,a);this.lastError=c},',564,85,'a){throw this',142,'Error("restart"),{restart:',43,'(a)})},elementCallback',85,'a,b){if(','b',32,'&&(a ','instanceof Array','||typeof a==="','function','")){b=a;a=','document.','body',54,'if(a==null){a=document.body}','else{',224,')}}}if(!a){',538,'("No such element")}if(!b){b={}}return{element:a,callback:b}},',388,85,'a){',224,')}',618,237,'return[a]}',95,'a.','getElementsByTagName("','script")},Insert',85,'c,a){',99,'b in a){if(a','.hasOwnProperty','(b)){if(typeof a[b]==="object"&&!(a[b] ',611,')&&(','typeof c[b]==="','object"||',644,613,'")){this',142,'c[b],a[b])}else{c[b]=a[b]}}}',95,'c}};',87,'Hub',142,157,'.styles',',',87,584,'styles);',87,'Hub',142,157,657,',{".',510,'":',157,'.',132,'.style});',87,'Extension={};',177,'={script:"",queue:',43,'.Queue(),','signal:',43,137,'Startup"),',139,79,'this.queue.Push(["',287,288,139,'"]);var b=',87,'HTML.Cookie','.Get("user");if(b.URL||b.',139,'){if(confirm("',93,' has found a user-configuration cookie that includes code to be run. Do you want to run it?\\n\\n(You should press Cancel unless you set up the cookie yourself.)")){if(b.URL){',686,'Require",MathJax.Ajax,','b.URL])}if(b.',139,'){',87,'userConfig=new Function(b.',139,')}}else{',87,692,'.Set("user",{})}}if',27,'script',471,256,27,'script+";\\n1;")}else{if',27,'params&&this.params.config){var d=this.params',89,'split(/,/);',99,'c=0,a=d',101,'if(!d[c].match(/\\.js$/)){d[c]+=".js"}',686,699,'this.URL("config','",d[c])])}}else{',686,699,726,'","',87,'js")])}}',95,256,'([',613,'(e,f){if(e.',120,'.isCallback){',95,'e.',120,'}if(e.',120,'==="onload"){',95,'f}',95,613,'(){}},',157,',this.onload','],[function(','e){',95,'e.','loadArray','(',157,'.config,"config",null,true)},this],["',287,'End ',139,'"])},Cookie',79,95,686,287,288,'Cookie"],["Get",',87,692,',"menu",',157,'.menuSettings',754,'f,c){if(f.renderer){var d="output/"+f.renderer;',99,'e=0,b=c.length,a','=0;e<b;e++){if(','c[e]===d){c.splice(e,1);a=0;break}if(c','[e].substr(0,7)==="output/"){','a=(a?0:e+1)}}c.unshift(d);if(a){c.splice(a,1)}}},',157,776,',',157,'.jax],["',287,'End Cookie"])},Styles',79,95,686,287,288,'Styles','"],["loadArray",this,',157,'.styleSheets,"config"],["Styles",',87,'Ajax,',157,657,'],["',287,'End Styles"])},Jax',79,'var d=',157,';d.',128,'.order={};',99,'e=0,b=d.jax.length,c',781,'d.jax',783,'d.',128,'.order[d.jax[e].substr(7)]=c;c++}}var a=',43,'.Queue();',95,'a','.Push(["',287,288,'Jax',798,'d.jax,"jax","config.js"],["',287,'End Jax"])},','Extensions',79,'var a=',43,823,95,'a',826,287,288,834,798,157,'.',111,',"',111,'"],["',287,'End ',834,'"])},onLoad',85,'a){var b=this.onload=',43,'(','function(){',177,168,'Post("onLoad")});if(','window.addEventListener','){',864,'("load",b,false)}else{if(','window.attachEvent','){',868,'("onload",b)}else{window.onload=b}}',95,'b},Typeset',85,607,157,'.',122,'){',95,613,'(){}}',95,686,287,288,'Typeset"],["Typeset",',87,'Hub,a,b],["',287,'End Typeset"])},URL',85,'b,a){if(!a.match(/^([a-z]+:\\/\\/|\\[|\\/)/)){a="[',93,']/"+b+"/"+a}',95,'a},',758,85,'b,f,c,a){if(b){if(!(b ',611,')){b=[b]}if(b.length){var h=',43,679,'j={},e;',99,'g=0,d=b.length;g<d;g++){e=this.URL(f,b[g]);if(c){e+="/"+c}if(a){h',826,699,'e,j])}else{h.Push(',87,'Ajax.Require(e,j))}}',95,'h.Push({})}}',95,'null}};(',613,'(d){var b=window[d],e="["+d+"]";var c=b.Hub,a=b.Ajax,f=b.Callback;var g=',87,'Object.Subclass({JAXFILE:"jax.js",','require',114,'config:{},',34,85,'i,h){if(arguments.length===0){',95,'this}return(','this.constructor.Subclass(i,h','))()},',146,85,'k,','j){var i=','this.constructor,h={};if(k',1,99,'l in k){if(k',640,'(l)){if(typeof k[l]==="',613,'"){','i.protoFunction','(l,k[l])}else{h[l]=k[l]}}}if(k.toString!==i.','prototype.','toString&&k.toString!=={}.toString){',943,'("toString",k.toString)}}c',142,'i.prototype,h);i.',146,'(null,j);',95,'this},','Translate',85,'h','){this.constructor.prototype.Translate=this.noTranslate;',95,'a.Require',27,'directory+"/"+this.JAXFILE',')},noTranslate',85,'h){',538,27,962,'+" failed to redefine the ',955,'() method")},',153,85,'h){},',139,79,'c',142,143,',(c.config[this.id]||{}));if(',145,146,33,146,'(',145,146,')}},Startup:',613,'(){},','loadComplete',85,'n){if(n==="config.js"){',95,'a.',991,27,'directory+"/"+','n)}else{var j=f',823,'j.Push(["Post",c.Startup.signal,this.id+" Jax ',139,'"]);j',826,139,'",this]);',1001,'Require"]);if',27,921,'){','var k=this.',921,';if(!(k instanceof Array)){k=[k]}for(var ','l=0,h=k.length;l<h;l++){','j.Push(a.Require(','k[l]))}j',826,758,'",',177,',',145,921,',"config"])}',1001,'Startup"]);j',826,'Startup",this]);',1001,'Ready"]);',95,'j',826,991,'",a,this.',998,'n])}}},{id:"unknown",','version:"1.0.1",directory:','e+"/jax",extensionDir:e+"/',111,'"});b.InputJax','=g.Subclass({','elementJax',':"mml",',955,85,'o',958,'var j=f',823,1012,1044,1014,'n=0,h=k','.length;n<h;n++){var ','l=b',243,998,'k[n]+"/"+this.JAXFILE;','if(!this.require){this.require=[]}else{if(!(this.require instanceof Array)){this.require=[this.require]}}this.require.push(','l);',1016,'l))}',1016,'this.',962,'));k=c',89,128,'["jax/"+k[0]];if(k){',1016,'k[0].',962,'))}',95,'j.Push({})},',153,85,'h){if(!b.Hub',89,126,'){c',89,126,'={}}c',89,126,'[h]=this}},{',1039,'g.directory+"/','input','",extensionDir:g.extensionDir','});b.OutputJax',1043,153,85,'i){var h=c',89,128,';if(!h[i]){h[i]=[];if(!','c.config.menuSettings.renderer','){',1102,'=this.id}}if(h[i].length&&(h.order[this.id]||0)<(h.order[h[i][0].id]||0)){h[i].unshift(this)}else{h[i].push(this)}',1061,'b',243,'directory+"/"+(i.split(/\\//)[1])+"/"+this.JAXFILE)},Remove',85,'h){}},{',1039,1091,'output',1093,',fontDir:e+(b.isPacked?"":"/..")+"/fonts"});b.ElementJax',1043,34,85,'i,h){',95,929,')},',126,114,128,114,'inputID',114,353,':"",mimeType:"",Text',85,'j,k){','var h=this.SourceElement();','if(','h.firstChild','){if(',1136,'.nodeName!=="#text"){h.text=j',54,1136,56,'=j}}else{try{h',49,'=j','}catch(i){h.','text=j}}h',240,'=this',368,';',95,'c.',308,'(h,k)},',313,85,'i){',1134,'h',240,'=this',368,';',95,'c.',313,'(h,i)},Remove',79,'this.',128,364,'this);c',168,'Post(["Remove Math",this.inputID]);this.Detach()},SourceElement',79,95,615,'getElementById',27,'inputID)},Attach',85,'i,j){var h=i.',195,';if(i',240,'===this',368,'){h.Clone(this)}else{h=i.',195,'=this;if(i.id',33,'inputID=i.id',54,'i.id=this.inputID=b',243,'GetID();this.newID=1}}h.',353,'=(i.text==""?i',49,':i.text);h.',126,'=j},Detach',79,1134,'if(!h){return}try{delete h.',93,1146,93,'=null}if',27,'newID){h.id=""}},Clone',85,'h){var i;for(i in this){if(!this',640,'(i)){continue}if(typeof(','h','[i])==="undefined','"&&i!=="newID"){delete this[i]}}for(i in h){if(!this',640,1216,'this',1218,'"||(this[i]!==h[i]&&i!=="inputID")){this[i]=h[i]}}}},{version:"1.0",directory:',1091,'element',1093,',ID:0,',244,':{PENDING:1,PROCESSED:2,UPDATE:3},GetID',79,'this.ID++;return"',93,'-Element-"+this.ID},Subclass',79,'var h=g.Subclass',170,'this,arguments);h.',991,'=this.',945,991,';',95,'h}});b',243,945,244,'=b',243,244,'})("',93,'");(',613,'(l){var f=window[l];if(!f){f=window[l]={}}var c=f.Hub;var q=c.Startup;var u=c.config;var e=',615,634,'head")[0];if(!e){e=',615,'childNodes[0]}var b=(',615,'documentElement||document).',634,'script");var d',432,'("(^|/)"+l+"\\\\.js(\\\\?.*)?$");',99,'o=b.length-1;o>=0;o--){if(b[o].src.match(d)){q.script=b[o].innerHTML;if(RegExp.$2){q.params={};var r=RegExp.$2.substr(1).split(/\\&/);',99,'n=0,h=r',1056,'k=r[n].match(/(.*)=(.*)/);if(k){q.params[unescape(k[1])]=unescape(k[2])}}}u.root=b[o].src.replace(/(^|\\/)[^\\/]*$/,"");break}}f.Ajax.config=u;var a={isMac',':(navigator.platform.substr(0,3)==="','Mac"),isPC',1274,'Win"),isMSIE:(window.ActiveXObject','!=null&&window.','clipboardData!=null),isFirefox:(window.netscape!=null&&',615,'ATTRIBUTE_NODE',1278,'opera',32,'),isSafari:(','navigator.userAgent.','match(/ (Apple)?WebKit\\//)!=null&&','window.chrome',32,'),isChrome:(',1288,1278,'chrome.loadTimes!=null),isOpera:(window.opera',1278,'opera.version','!=null),isKonqueror:(window',640,'&&window',640,'("konqueror")&&navigator.vendor=="KDE"),versionAtLeast',85,'x){var w=(this','.version).split','(".");x=(','new String','(x)).split(".");',99,'y=0,j=x.length;y<j;y++){if(w[y]!=x[y]){',95,'parseInt(w[y]||"0")>=parseInt(x[y])}}',95,'true},Select',85,934,'j[c.Browser];if(i){',95,'i(c.Browser)}',95,'null}};var g=',1286,'replace(/^Mozilla\\/(\\d+\\.)+\\d+ /,"").replace(/[a-z][-a-z0-9._: ]+\\/\\d+[^ ]*-[^ ]*\\.([a-z][a-z])?\\d+ /i,"").replace(/Gentoo |Ubuntu\\/(\\d+\\.)*\\d+ (\\([^)]*\\) )?/,"");c.Browser=c',142,'c',142,1305,'("Unknown"),{version:"0.0"}),a);',99,'t in a){if(a',640,'(t)){if(a[t]&&t',91,'2)==="is"){t=t.slice(2);if(t==="Mac"||t==="PC"){continue}c.Browser=c',142,1305,'(t),a);var p',432,'(".*(Version',')/((?:\\\\d+\\\\.)+\\\\d','+)|.*("+t+")"+(t=="MSIE"?" ":"/")+"((?:\\\\d+\\\\.)*\\\\d+)|(?:^|\\\\(| )([a-z][-a-z0-9._: ]+|WebKit',1338,'+)");var s=p.exec(g)||["","","","unknown","0.0"];c.Browser.name=(s[1]=="Version"?t:(s[3]||s[5]));c.Browser.version=s[2]||s[4]||s[6];break}}}','c.Browser.Select','({Safari',85,934,'parseInt((String(j',1303,'("."))[0]);if(i>=526){','j.version="','4.0','"}else{if(i','>=525){',1349,'3.1',1351,'>500){',1349,'3.0',1351,'>400){',1349,'2.0',1351,'>85){',1349,'1.0"}}}}}},Firefox',85,'j){if(j.version==="0.0"&&navigator.product==="Gecko"&&','navigator.productSub','){var i=',1369,91,'8);if(i>="20090630"){',1349,'3.5',1351,'>="20080617"){',1349,'3.0',1351,'>="20061024"){',1349,'2.0"}}}}},Opera',85,'i){i.version=',1295,'()}});',1342,'(',87,584,'browsers);c.queue=f.Callback',823,'c.queue',826,'Post",q.signal,"','Begin"],["',139,'",q],["Cookie",q],["Styles",q],',860,'var i=f.Callback.Queue(q.Jax(),q.',834,'());',95,'i.Push({})},q.onLoad(),',860,87,'isReady=true},["Typeset",q],["',1396,'End"])})("',93,'")}};']
|
|
]);
|
|
|