From 2122e48b22bca9f14b63eb304bcccb03cbaa516d Mon Sep 17 00:00:00 2001 From: Jeff Parsons Date: Sat, 12 Sep 2015 02:05:05 -0700 Subject: [PATCH] v1.19.5 update (fixes a CALLF bug and a VGA ATC bug, and adds improved WDEB386-style load notifications) --- docs/pcjs/demos/pc-dbg.js | 784 ++++++++++++++++----------------- docs/pcjs/demos/pc.js | 466 ++++++++++---------- modules/pcjs/lib/debugger.js | 60 ++- modules/pcjs/lib/interrupts.js | 9 +- modules/pcjs/lib/video.js | 41 +- modules/pcjs/lib/x86func.js | 6 +- versions/pcjs/1.19.5/pc-dbg.js | 784 ++++++++++++++++----------------- versions/pcjs/1.19.5/pc.js | 466 ++++++++++---------- 8 files changed, 1349 insertions(+), 1267 deletions(-) diff --git a/docs/pcjs/demos/pc-dbg.js b/docs/pcjs/demos/pc-dbg.js index 46d7bcb36e..683497aad7 100644 --- a/docs/pcjs/demos/pc-dbg.js +++ b/docs/pcjs/demos/pc-dbg.js @@ -10,16 +10,16 @@ function Ba(){if(null==Aa){var a=!1;if(window)try{window.localStorage.setItem("P function Ea(a){if(window){var b=window?window.navigator.userAgent:"";return"iOS"==a&&b.match(/(iPod|iPhone|iPad)/)&&b.match(/AppleWebKit/)||"MSIE"==a&&b.match(/(MSIE|Trident)/)||0<=b.indexOf(a)?!0:!1}return!1}function Fa(a,b,c){function d(){--a;0<=a&&(b()||(a=0));0=this.x&&a=this.y&&b=c>>2);d?(b=new yb(a.x,a.y,a.Sc,a.A*b/c|0),a.y+=b.A,a.A-=b.A):(b=new yb(a.x,a.y,a.Sc*b/c|0,a.A),a.x+=b.Sc,a.Sc-=b.Sc);return b}f=wb.prototype;f.Tb=function(a,b,c){return this.pa&&this.pa.Tb(a,b,c)||this.O&&this.O.Tb(a,b,c)||this.P&&this.P.Tb(a,b,c)||this.ga&&this.ga.Tb(a,b,c)?!0:this.parent.Tb.call(this,a,b,c)}; -f.Hc=function(a,b,c,d){this.pa=a;this.na=b;this.O=c;this.ga=d;this.P=Ab(a,"Keyboard")};f.pc=function(a,b){b||Bb();return!0};f.oc=function(){return!0};f.Fe=function(a,b){a.button||(this.fa=b?0:-1,Cb(this,a,b))};f.pf=function(a){Cb(this,a)}; -function Cb(a,b,c){var d=1280/null.offsetWidth,e=720/null.offsetHeight,g=null.getBoundingClientRect(),d=(b.clientX-g.left)*d|0;b=(b.clientY-g.top)*e|0;null==c&&(a.fa||(a.fa=Math.abs(a.X-d)>Math.abs(a.S-b)?1:2),1==a.fa?b=a.S:2==a.fa&&(d=a.X));a.X=d;a.S=b;if(0<=d&&1280>d&&0<=b&&720>b){a:{c=d;if(960>c&&a.A&&a.A.Ae)for(g=0;gd&&(g=d);c=g;break a}c=n}if(c!==n&&(c&=-16,c!=a.Ha)){b=c;if(a.context&&a.ja&&a.qa){e=a.ja.width;a.qa.fillStyle="black";a.qa.fillRect(0,360,e,360);Eb(a,378,a.ja,a.qa);a.sa=a.Ja.width/24|0;if(null==b)Fb(a,"Mouse over memory to dump");else for(Fb(a,"0x"+k(b),null,0,1),g=1;16>=g;g++){d="";for(h=1;8>=h;h++){var m=Gb(a.na,b++);Fb(a,k(m,2),null,1);d+=32<=m&&128>m?String.fromCharCode(m):"."}Fb(a,d,null,0,1)}a.context.drawImage(a.ja,0,360,e,360,a.nb,a.yb,a.Ua,a.bb)}a.Ha=c}}}f.gd=function(){}; -function Hb(a,b,c,d){a.A.lf[a.A.Ti++]={Yj:b,Bd:c,type:d};return sa(Db,b,c,0,d)}function Eb(a,b,c,d){var e,g=null.style.color,h=a.Ra=10;a.B=h;a.Y=b;a.aa=a.Da=18;e||(e=a.Ba||a.Da+"px Monaco, Lucida Console, Courier New");a.Ca=a.Ba=e;c&&(a.Ja=c);d&&(a.R=d,a.La=g||"white")} +function wb(a){Ta.call(this,"Panel",a,wb);this.X=this.S=this.fa=-1}bb(wb);function xb(a,b,c,d){this.A=[a,b,c,d];this.B=null;void 0===a&&(this.A[0]=256*Math.random()|0,this.A[1]=256*Math.random()|0,this.A[2]=256*Math.random()|0,this.A[3]=255,this.B=null)}xb.prototype.toString=function(){this.B||(this.B="#"+k(this.A[0],2)+k(this.A[1],2)+k(this.A[2],2));return this.B};function yb(a,b,c,d){this.x=a;this.y=b;this.Rc=c;this.A=d} +yb.prototype.contains=function(a,b){return a>=this.x&&a=this.y&&b=c>>2);d?(b=new yb(a.x,a.y,a.Rc,a.A*b/c|0),a.y+=b.A,a.A-=b.A):(b=new yb(a.x,a.y,a.Rc*b/c|0,a.A),a.x+=b.Rc,a.Rc-=b.Rc);return b}f=wb.prototype;f.Tb=function(a,b,c){return this.pa&&this.pa.Tb(a,b,c)||this.O&&this.O.Tb(a,b,c)||this.P&&this.P.Tb(a,b,c)||this.ga&&this.ga.Tb(a,b,c)?!0:this.parent.Tb.call(this,a,b,c)}; +f.Hc=function(a,b,c,d){this.pa=a;this.na=b;this.O=c;this.ga=d;this.P=Ab(a,"Keyboard")};f.pc=function(a,b){b||Bb();return!0};f.oc=function(){return!0};f.Ee=function(a,b){a.button||(this.fa=b?0:-1,Cb(this,a,b))};f.pf=function(a){Cb(this,a)}; +function Cb(a,b,c){var d=1280/null.offsetWidth,e=720/null.offsetHeight,g=null.getBoundingClientRect(),d=(b.clientX-g.left)*d|0;b=(b.clientY-g.top)*e|0;null==c&&(a.fa||(a.fa=Math.abs(a.X-d)>Math.abs(a.S-b)?1:2),1==a.fa?b=a.S:2==a.fa&&(d=a.X));a.X=d;a.S=b;if(0<=d&&1280>d&&0<=b&&720>b){a:{c=d;if(960>c&&a.A&&a.A.ze)for(g=0;gd&&(g=d);c=g;break a}c=n}if(c!==n&&(c&=-16,c!=a.Ha)){b=c;if(a.context&&a.ja&&a.qa){e=a.ja.width;a.qa.fillStyle="black";a.qa.fillRect(0,360,e,360);Eb(a,378,a.ja,a.qa);a.sa=a.Ja.width/24|0;if(null==b)Fb(a,"Mouse over memory to dump");else for(Fb(a,"0x"+k(b),null,0,1),g=1;16>=g;g++){d="";for(h=1;8>=h;h++){var m=Gb(a.na,b++);Fb(a,k(m,2),null,1);d+=32<=m&&128>m?String.fromCharCode(m):"."}Fb(a,d,null,0,1)}a.context.drawImage(a.ja,0,360,e,360,a.ob,a.yb,a.Ua,a.bb)}a.Ha=c}}}f.gd=function(){}; +function Hb(a,b,c,d){a.A.lf[a.A.Ti++]={Zj:b,Bd:c,type:d};return sa(Db,b,c,0,d)}function Eb(a,b,c,d){var e,g=null.style.color,h=a.Ra=10;a.B=h;a.Y=b;a.aa=a.Da=18;e||(e=a.Ba||a.Da+"px Monaco, Lucida Console, Courier New");a.Ca=a.Ba=e;c&&(a.Ja=c);d&&(a.R=d,a.La=g||"white")} function Fb(a,b,c,d,e){a.R.font=a.Ca;a.R.fillStyle=a.La;a.R.fillText(b,a.B,a.Y);a.B+=a.sa;null!=c&&(16!=a.jb?b=c.toString():(b=8>a.Oa?"0x":"",b+=k(c,a.Oa)),a.R.fillText(b,a.B,a.Y),a.B+=a.sa);d&&(a.B+=a.sa*d);e&&(a.B=a.Ra,a.Y+=(a.aa+2)*(e||1))}function Bb(){for(var a=!1,b=jb(window.document,"pcjs","panel"),c=0;c=this.X?12:24>=this.X?14:15;this.Kb=1<>2;this.A=this.Kb-1;this.aa=this.da/this.Kb|0;this.pa=this.aa-1;this.P=[];this.R=[];this.na=this.Y=!1;this.fa=[];this.Ca=[];a=new Jb;this.wa=Array(this.aa);for(b=0;b>>a.Qa;0a.Kb?a.Kb:c;if(h&&h.size){if(h.type==d&&h.controller==e){if(b+c<=h.Sa)return h.ye+=h.Sa-b,h.Sa=b,!0;if(b>=h.Sa+h.ye){q=h.size-(b-m);q>c&&(q=c);h.ye=b-h.Sa+q;c-=q;b=m+a.Kb;continue}}return Qb(1,b,c)}h=a.wa[g];b=new Jb(b,q,a.Kb,d,e);Rb(b,h,a.ga);a.wa[g++]=b;b=m+a.Kb;c-=q}return 0>>this.Qa;0>>a.Qa;0>>=a.Qa;0>>a.Qa;0>>this.Qa].wc(a&this.A,a)};function Gb(a,b){return a.wa[(b&a.B)>>>a.Qa].cf(b&a.A,b)} -function dc(a,b){var c=b&a.A,d=(b&a.B)>>>a.Qa;return c!=a.A?a.wa[d].Rg(c,b):a.wa[d++].cf(c,b)|a.wa[d&a.pa].cf(0,b+1)<<8}f.pb=function(a){var b=a&this.A,c=(a&this.B)>>>this.Qa;if(b>>this.Qa].yc(a&this.A,b&255,a)}; -f.Fb=function(a,b){var c=a&this.A,d=(a&this.B)>>>this.Qa;c!=this.A?this.wa[d].Kf(c,b&65535,a):(this.wa[d++].yc(c,b&255,a),this.wa[d&this.pa].yc(0,b>>8&255,a+1))};function ec(a,b,c){var d=b&a.A,e=(b&a.B)>>>a.Qa;d!=a.A?a.wa[e].Ni(d,c&65535,b):(a.wa[e++].Jf(d,c&255,b),a.wa[e&a.pa].Jf(0,c>>8&255,b+1))}function fc(a,b){if(void 0===b)return a.na=!a.na,a.na;void 0===a.P[b]&&(a.P[b]=[null,!1]);a.P[b][1]=!a.P[b][1];return a.P[b][1]} +function Ib(a,b,c){Ta.call(this,"Bus",a,Ib);this.O=b;this.ga=c;this.X=a.buswidth||20;this.da=Math.pow(2,this.X);this.Zf=this.B=this.da-1|0;this.Qa=32==this.X||20>=this.X?12:24>=this.X?14:15;this.Kb=1<>2;this.A=this.Kb-1;this.aa=this.da/this.Kb|0;this.pa=this.aa-1;this.P=[];this.R=[];this.na=this.Y=!1;this.fa=[];this.Ca=[];a=new Jb;this.xa=Array(this.aa);for(b=0;b>>a.Qa;0a.Kb?a.Kb:c;if(h&&h.size){if(h.type==d&&h.controller==e){if(b+c<=h.Sa)return h.xe+=h.Sa-b,h.Sa=b,!0;if(b>=h.Sa+h.xe){q=h.size-(b-m);q>c&&(q=c);h.xe=b-h.Sa+q;c-=q;b=m+a.Kb;continue}}return Qb(1,b,c)}h=a.xa[g];b=new Jb(b,q,a.Kb,d,e);Rb(b,h,a.ga);a.xa[g++]=b;b=m+a.Kb;c-=q}return 0>>this.Qa;0>>a.Qa;0>>=a.Qa;0>>a.Qa;0>>this.Qa].wc(a&this.A,a)};function Gb(a,b){return a.xa[(b&a.B)>>>a.Qa].cf(b&a.A,b)} +function dc(a,b){var c=b&a.A,d=(b&a.B)>>>a.Qa;return c!=a.A?a.xa[d].Rg(c,b):a.xa[d++].cf(c,b)|a.xa[d&a.pa].cf(0,b+1)<<8}f.lb=function(a){var b=a&this.A,c=(a&this.B)>>>this.Qa;if(b>>this.Qa].yc(a&this.A,b&255,a)}; +f.Fb=function(a,b){var c=a&this.A,d=(a&this.B)>>>this.Qa;c!=this.A?this.xa[d].Kf(c,b&65535,a):(this.xa[d++].yc(c,b&255,a),this.xa[d&this.pa].yc(0,b>>8&255,a+1))};function ec(a,b,c){var d=b&a.A,e=(b&a.B)>>>a.Qa;d!=a.A?a.xa[e].Ni(d,c&65535,b):(a.xa[e++].Jf(d,c&255,b),a.xa[e&a.pa].Jf(0,c>>8&255,b+1))}function fc(a,b){if(void 0===b)return a.na=!a.na,a.na;void 0===a.P[b]&&(a.P[b]=[null,!1]);a.P[b][1]=!a.P[b][1];return a.P[b][1]} function gc(a,b,c,d){void 0===d&&(d=0);for(var e in c){var g=a,h=+e+d,m=c[e].bind(b);if(void 0!==m)for(var q=+e+d;q<=h;q++)void 0!==g.P[q]?ya("Input port "+ga(q)+" already registered"):g.P[q]=[m,!1]}}function hc(a,b,c,d){for(var e=0,g=0;0>>=g)&q;if(void 0!==h){if(h[0])h[0](b,q,e);a.ga&&a.Y!=h[1]&&mc(a.ga,b,q)}else a.ga&&(kb(a.ga,a,b,q,e),a.Y&&mc(a.ga,b,q));g+=m<<3;b+=m;c-=m}}function Qb(a,b,c){ya("Memory block error ("+a+","+k(b)+","+k(c)+")");return!1}var nc;if(ub){var oc=new ArrayBuffer(2);(new DataView(oc)).setUint16(0,256,!0);nc=256===(new Uint16Array(oc))[0]}else nc=!1;var $b=nc; -function Jb(a,b,c,d,e,g){this.id=pc+=2;this.ia=null;this.A=0;this.Sa=a;this.ye=b;this.size=c||0;this.type=d||qc;this.na=d==Zb;this.controller=null;this.O=g;this.fb=this.dj=!1;this.da=this.fa=0;rc(this);if(c)if(e)this.controller=e,a=e.hj(a),this.ia=a[0],this.A=a[1],Ub(this,e.uh());else if(ub)this.pa=new ArrayBuffer(c),this.Y=new DataView(this.pa,0,c),this.B=new Uint8Array(this.pa,0,c),this.Ca=new Uint16Array(this.pa,0,c>>1),this.ia=new Int32Array(this.pa,0,c>>2),Ub(this,$b?ac:bc);else{this.ia=Array(c>> -2);for(e=0;e>8&65280|a>>>24);return a} -Jb.prototype={constructor:Jb,parent:null,save:function(){var a,b;if(this.controller)a=null;else if(ub)for(a=Array(this.size>>2),b=0;b>>=g)&q;if(void 0!==h){if(h[0])h[0](b,q,e);a.ga&&a.Y!=h[1]&&mc(a.ga,b,q)}else a.ga&&(kb(a.ga,a,b,q,e),a.Y&&mc(a.ga,b,q));g+=m<<3;b+=m;c-=m}}function Qb(a,b,c){ya("Memory block error ("+a+","+k(b)+","+k(c)+")");return!1}var nc;if(rb){var oc=new ArrayBuffer(2);(new DataView(oc)).setUint16(0,256,!0);nc=256===(new Uint16Array(oc))[0]}else nc=!1;var $b=nc; +function Jb(a,b,c,d,e,g){this.id=pc+=2;this.ia=null;this.A=0;this.Sa=a;this.xe=b;this.size=c||0;this.type=d||qc;this.na=d==Zb;this.controller=null;this.O=g;this.fb=this.dj=!1;this.da=this.fa=0;rc(this);if(c)if(e)this.controller=e,a=e.hj(a),this.ia=a[0],this.A=a[1],Ub(this,e.uh());else if(rb)this.pa=new ArrayBuffer(c),this.Y=new DataView(this.pa,0,c),this.B=new Uint8Array(this.pa,0,c),this.Ca=new Uint16Array(this.pa,0,c>>1),this.ia=new Int32Array(this.pa,0,c>>2),Ub(this,$b?ac:bc);else{this.ia=Array(c>> +2);for(e=0;e>8&65280|a>>>24);return a} +Jb.prototype={constructor:Jb,parent:null,save:function(){var a,b;if(this.controller)a=null;else if(rb)for(a=Array(this.size>>2),b=0;b>8,c)},qa:function(a,b,c){this.yc(a++,b&255, c++);this.yc(a++,b>>8&255,c++);this.yc(a++,b>>16&255,c++);this.yc(a,b>>>24,c)},Ma:function(a){return this.ia[a>>2]>>>((a&3)<<3)&255},tb:function(a){var b=a>>2;a=(a&3)<<3;var c=this.ia[b]>>a;return 24>a?c&65535:c&255|(this.ia[b+1]&255)<<8},bb:function(a){var b=a>>2;a=(a&3)<<3;var c=this.ia[b];a&&(c=c>>>a|this.ia[b+1]<<32-a);return c},hc:function(a,b){var c=a>>2,d=(a&3)<<3;this.ia[c]=this.ia[c]&~(255<>2,d=(a&3)<<3;24>d?this.ia[c]=this.ia[c]&~(65535<>8);this.fb=!0},Nc:function(a,b){var c=a>>2,d=(a&3)<<3;if(d){var e=-1<>>32-d}else this.ia[c]=b;this.fb=!0},Ja:function(a,b){this.ga&&Bc(this.ga,b)||this.O&&Cc(this.O,b,1,!1);return this.cf(a,b)},jb:function(a,b){this.ga&&Bc(this.ga,b,2)||this.O&&Cc(this.O,b,2,!1);return this.Rg(a,b)},Ua:function(a,b){this.ga&&Bc(this.ga,b,4)||this.O&&Cc(this.O,b,4,!1);return this.Ji(a, -b)},Yb:function(a,b,c){this.ga&&Dc(this.ga,c)||this.O&&Cc(this.O,c,1,!0);this.na?this.aa(a,b,c):this.Jf(a,b,c)},kd:function(a,b,c){this.ga&&Dc(this.ga,c,2)||this.O&&Cc(this.O,c,2,!0);this.na?this.aa(a,b,c):this.Ni(a,b,c)},Lc:function(a,b,c){this.ga&&Dc(this.ga,c,4)||this.O&&Cc(this.O,c,4,!0);this.na?this.aa(a,b,c):this.Ea(a,b,c)},Na:function(a,b){this.P.ia[this.X]|=this.ya;this.R.ia[this.S]|=this.ya;return this.fe.wc(a,b)},yb:function(a,b){this.P.ia[this.X]|=this.ya;this.R.ia[this.S]|=this.ya;return this.fe.Qg(a, -b)},eb:function(a,b){this.P.ia[this.X]|=this.ya;this.R.ia[this.S]|=this.ya;return this.fe.te(a,b)},zc:function(a,b,c){this.P.ia[this.X]|=this.ya;this.R.ia[this.S]|=this.ja;this.fe.yc(a,b,c)},od:function(a,b,c){this.P.ia[this.X]|=this.ya;this.R.ia[this.S]|=this.ja;this.fe.Kf(a,b,c)},$c:function(a,b,c){this.P.ia[this.X]|=this.ya;this.R.ia[this.S]|=this.ja;this.fe.ah(a,b,c)},Oa:function(a,b){return Ec(this.O,b,!1).wc(a,b)},Db:function(a,b){return Ec(this.O,b,!1).Qg(a,b)},Ec:function(a,b){return Ec(this.O, -b,!1).te(a,b)},Kc:function(a,b,c){Ec(this.O,c,!0).yc(a,b,c)},xd:function(a,b,c){Ec(this.O,c,!0).Kf(a,b,c)},jd:function(a,b,c){Ec(this.O,c,!0).ah(a,b,c)},Ha:function(a){return this.B[a]},La:function(a){return this.B[a]},ib:function(a){return this.Y.getUint16(a,!0)},nb:function(a){return a&1?this.B[a]|this.B[a+1]<<8:this.Ca[a>>1]},Ra:function(a){return this.Y.getInt32(a,!0)},Za:function(a){return a&3?this.B[a]|this.B[a+1]<<8|this.B[a+2]<<16|this.B[a+3]<<24:this.ia[a>>2]},Ub:function(a,b){this.B[a]= -b;this.fb=!0},ac:function(a,b){this.B[a]=b;this.fb=!0},hd:function(a,b){this.Y.setUint16(a,b,!0);this.fb=!0},md:function(a,b){a&1?(this.B[a]=b,this.B[a+1]=b>>8):this.Ca[a>>1]=b;this.fb=!0},Pd:function(a,b){this.Y.setInt32(a,b,!0);this.fb=!0},Mc:function(a,b){a&3?(this.B[a]=b,this.B[a+1]=b>>8,this.B[a+2]=b>>16,this.B[a+3]=b>>24):this.ia[a>>2]=b;this.fb=!0}};function Rb(a,b,c){b&&(c&&(a.ga=c),b.O&&(a.O=b.O),(a.da=b.da)&&vc(a,wc,!1),(a.fa=b.fa)&&Ac(a,wc,!1))} -function Fc(a,b){b?0===--a.fa&&(a.yc=a.na?a.aa:a.Jf,a.Kf=a.na?a.sa:a.Ni,a.ah=a.na?a.qa:a.Ea):0===--a.da&&(a.wc=a.cf,a.Qg=a.Rg,a.te=a.Ji)}function rc(a,b,c,d,e,g){a.fe=b;a.P=c;a.X=d>>2;a.R=e;a.S=g>>2;a.ja=b?uc(Gc|Hc):0;a.ya=b?uc(Gc):0}function Ac(a,b,c){c&&a.fa||(a.yc=!a.na&&b[3]||a.aa,a.Kf=!a.na&&b[4]||a.sa,a.ah=!a.na&&b[5]||a.qa);if(c||void 0===c)a.Jf=b[3]||a.aa,a.Ni=b[4]||a.sa,a.Ea=b[5]||a.qa} -function vc(a,b,c){c&&a.da||(a.wc=b[0]||a.Ba,a.Qg=b[1]||a.Da,a.te=b[2]||a.ua);if(c||void 0===c)a.cf=b[0]||a.Ba,a.Rg=b[1]||a.Da,a.Ji=b[2]||a.ua}function Ub(a,b,c){b||(b=5==a.type?Ic:6==a.type?Jc:Kc);vc(a,b,c);Ac(a,b,c)} -var Kc=[],cc=[Jb.prototype.Ma,Jb.prototype.tb,Jb.prototype.bb,Jb.prototype.hc,Jb.prototype.nd,Jb.prototype.Nc],wc=[Jb.prototype.Ja,Jb.prototype.jb,Jb.prototype.Ua,Jb.prototype.Yb,Jb.prototype.kd,Jb.prototype.Lc],Jc=[Jb.prototype.Na,Jb.prototype.yb,Jb.prototype.eb,Jb.prototype.zc,Jb.prototype.od,Jb.prototype.$c],Ic=[Jb.prototype.Oa,Jb.prototype.Db,Jb.prototype.Ec,Jb.prototype.Kc,Jb.prototype.xd,Jb.prototype.jd]; -if(ub)var bc=[Jb.prototype.Ha,Jb.prototype.ib,Jb.prototype.Ra,Jb.prototype.Ub,Jb.prototype.hd,Jb.prototype.Pd],ac=[Jb.prototype.La,Jb.prototype.nb,Jb.prototype.Za,Jb.prototype.ac,Jb.prototype.md,Jb.prototype.Mc]; -function Lc(a,b){Ta.call(this,"CPU",a,Lc,1);var c=a.cycles||b,d=a.multiplier||1;this.Z={};this.Z.yd=c;this.Z.Fd=d;this.Z.Wf=Math.round(this.Z.yd/1E4)/100;this.Z.pe=this.Z.Wf*this.Z.Fd;this.oa.Eb=!1;this.oa.sh=!1;this.oa.oh=a.autoStart;this.oa.ej=!1;c=Wa.autostart;void 0!==c&&(this.oa.oh="true"==c?!0:"false"==c?!1:null);this.oa.He=!1;this.Z.qf=this.Z.Se=0;this.Z.rf=a.csStart;this.Z.Re=a.csInterval;this.Z.Te=a.csStop;this.$c=[];var e=this;this.dh=function(){e.ve()};ob(this)}bb(Lc);f=Lc.prototype; -f.Hc=function(a,b,c,d){this.na=b;this.ga=d;this.pa=a;for(b=null;b=Ab(a,"Video",b);)this.$c.push(b);this.X=Ab(a,"ChipSet");ob(this)};f.reset=function(){};f.save=function(){return null};f.restore=function(){return!1};f.pc=function(a,b){if(!b){if(a&&this.restore){Mc(this);if(!this.restore(a))return!1;Nc(this)}else this.reset();this.ga?this.ga.$k():this.V("No debugger detected")}Oc(this);return!0};f.oc=function(a){return a&&this.save?this.save():!0}; -function Sc(a){(!0===a.oa.oh||null===a.oa.oh&&!a.ga&&void 0===a.ya.run)&&a.ve()}f.gj=function(){return 0};function Nc(a){void 0===a.Z.rf&&(a.Z.rf=0);void 0===a.Z.Re&&(a.Z.Re=-1);void 0===a.Z.Te&&(a.Z.Te=-1);a.oa.He=0<=a.Z.rf&&0=a.Z.Se&&(a.Z.Se+=a.Z.Re,c=!0);0<=a.Z.Te&&a.Z.Te<=Uc(a)&&(a.Z.Re=a.Z.Te=-1,Nc(a),a.Xb(),c=!0);c&&a.V(Uc(a)+" cycles: checksum="+k(a.Z.qf))}} +b<>8);this.fb=!0},Mc:function(a,b){var c=a>>2,d=(a&3)<<3;if(d){var e=-1<>>32-d}else this.ia[c]=b;this.fb=!0},Ja:function(a,b){this.ga&&Bc(this.ga,b)||this.O&&Cc(this.O,b,1,!1);return this.cf(a,b)},jb:function(a,b){this.ga&&Bc(this.ga,b,2)||this.O&&Cc(this.O,b,2,!1);return this.Rg(a,b)},Ua:function(a,b){this.ga&&Bc(this.ga,b,4)||this.O&&Cc(this.O,b,4,!1);return this.Ji(a, +b)},Yb:function(a,b,c){this.ga&&Dc(this.ga,c)||this.O&&Cc(this.O,c,1,!0);this.na?this.aa(a,b,c):this.Jf(a,b,c)},kd:function(a,b,c){this.ga&&Dc(this.ga,c,2)||this.O&&Cc(this.O,c,2,!0);this.na?this.aa(a,b,c):this.Ni(a,b,c)},Kc:function(a,b,c){this.ga&&Dc(this.ga,c,4)||this.O&&Cc(this.O,c,4,!0);this.na?this.aa(a,b,c):this.Ea(a,b,c)},Na:function(a,b){this.P.ia[this.X]|=this.ya;this.R.ia[this.S]|=this.ya;return this.ee.wc(a,b)},yb:function(a,b){this.P.ia[this.X]|=this.ya;this.R.ia[this.S]|=this.ya;return this.ee.Qg(a, +b)},eb:function(a,b){this.P.ia[this.X]|=this.ya;this.R.ia[this.S]|=this.ya;return this.ee.se(a,b)},zc:function(a,b,c){this.P.ia[this.X]|=this.ya;this.R.ia[this.S]|=this.ja;this.ee.yc(a,b,c)},od:function(a,b,c){this.P.ia[this.X]|=this.ya;this.R.ia[this.S]|=this.ja;this.ee.Kf(a,b,c)},$c:function(a,b,c){this.P.ia[this.X]|=this.ya;this.R.ia[this.S]|=this.ja;this.ee.ah(a,b,c)},Oa:function(a,b){return Ec(this.O,b,!1).wc(a,b)},Db:function(a,b){return Ec(this.O,b,!1).Qg(a,b)},Ec:function(a,b){return Ec(this.O, +b,!1).se(a,b)},Jc:function(a,b,c){Ec(this.O,c,!0).yc(a,b,c)},wd:function(a,b,c){Ec(this.O,c,!0).Kf(a,b,c)},jd:function(a,b,c){Ec(this.O,c,!0).ah(a,b,c)},Ha:function(a){return this.B[a]},La:function(a){return this.B[a]},ib:function(a){return this.Y.getUint16(a,!0)},ob:function(a){return a&1?this.B[a]|this.B[a+1]<<8:this.Ca[a>>1]},Ra:function(a){return this.Y.getInt32(a,!0)},Za:function(a){return a&3?this.B[a]|this.B[a+1]<<8|this.B[a+2]<<16|this.B[a+3]<<24:this.ia[a>>2]},Ub:function(a,b){this.B[a]= +b;this.fb=!0},ac:function(a,b){this.B[a]=b;this.fb=!0},hd:function(a,b){this.Y.setUint16(a,b,!0);this.fb=!0},md:function(a,b){a&1?(this.B[a]=b,this.B[a+1]=b>>8):this.Ca[a>>1]=b;this.fb=!0},Od:function(a,b){this.Y.setInt32(a,b,!0);this.fb=!0},Lc:function(a,b){a&3?(this.B[a]=b,this.B[a+1]=b>>8,this.B[a+2]=b>>16,this.B[a+3]=b>>24):this.ia[a>>2]=b;this.fb=!0}};function Rb(a,b,c){b&&(c&&(a.ga=c),b.O&&(a.O=b.O),(a.da=b.da)&&vc(a,wc,!1),(a.fa=b.fa)&&Ac(a,wc,!1))} +function Fc(a,b){b?0===--a.fa&&(a.yc=a.na?a.aa:a.Jf,a.Kf=a.na?a.sa:a.Ni,a.ah=a.na?a.qa:a.Ea):0===--a.da&&(a.wc=a.cf,a.Qg=a.Rg,a.se=a.Ji)}function rc(a,b,c,d,e,g){a.ee=b;a.P=c;a.X=d>>2;a.R=e;a.S=g>>2;a.ja=b?uc(Gc|Hc):0;a.ya=b?uc(Gc):0}function Ac(a,b,c){c&&a.fa||(a.yc=!a.na&&b[3]||a.aa,a.Kf=!a.na&&b[4]||a.sa,a.ah=!a.na&&b[5]||a.qa);if(c||void 0===c)a.Jf=b[3]||a.aa,a.Ni=b[4]||a.sa,a.Ea=b[5]||a.qa} +function vc(a,b,c){c&&a.da||(a.wc=b[0]||a.Ba,a.Qg=b[1]||a.Da,a.se=b[2]||a.ua);if(c||void 0===c)a.cf=b[0]||a.Ba,a.Rg=b[1]||a.Da,a.Ji=b[2]||a.ua}function Ub(a,b,c){b||(b=5==a.type?Ic:6==a.type?Jc:Kc);vc(a,b,c);Ac(a,b,c)} +var Kc=[],cc=[Jb.prototype.Ma,Jb.prototype.tb,Jb.prototype.bb,Jb.prototype.hc,Jb.prototype.nd,Jb.prototype.Mc],wc=[Jb.prototype.Ja,Jb.prototype.jb,Jb.prototype.Ua,Jb.prototype.Yb,Jb.prototype.kd,Jb.prototype.Kc],Jc=[Jb.prototype.Na,Jb.prototype.yb,Jb.prototype.eb,Jb.prototype.zc,Jb.prototype.od,Jb.prototype.$c],Ic=[Jb.prototype.Oa,Jb.prototype.Db,Jb.prototype.Ec,Jb.prototype.Jc,Jb.prototype.wd,Jb.prototype.jd]; +if(rb)var bc=[Jb.prototype.Ha,Jb.prototype.ib,Jb.prototype.Ra,Jb.prototype.Ub,Jb.prototype.hd,Jb.prototype.Od],ac=[Jb.prototype.La,Jb.prototype.ob,Jb.prototype.Za,Jb.prototype.ac,Jb.prototype.md,Jb.prototype.Lc]; +function Lc(a,b){Ta.call(this,"CPU",a,Lc,1);var c=a.cycles||b,d=a.multiplier||1;this.Z={};this.Z.xd=c;this.Z.Fd=d;this.Z.Wf=Math.round(this.Z.xd/1E4)/100;this.Z.oe=this.Z.Wf*this.Z.Fd;this.oa.Eb=!1;this.oa.sh=!1;this.oa.oh=a.autoStart;this.oa.ej=!1;c=Wa.autostart;void 0!==c&&(this.oa.oh="true"==c?!0:"false"==c?!1:null);this.oa.He=!1;this.Z.qf=this.Z.Se=0;this.Z.rf=a.csStart;this.Z.Re=a.csInterval;this.Z.Te=a.csStop;this.$c=[];var e=this;this.dh=function(){e.ue()};ob(this)}bb(Lc);f=Lc.prototype; +f.Hc=function(a,b,c,d){this.na=b;this.ga=d;this.pa=a;for(b=null;b=Ab(a,"Video",b);)this.$c.push(b);this.X=Ab(a,"ChipSet");ob(this)};f.reset=function(){};f.save=function(){return null};f.restore=function(){return!1};f.pc=function(a,b){if(!b){if(a&&this.restore){Mc(this);if(!this.restore(a))return!1;Nc(this)}else this.reset();this.ga?this.ga.al():this.V("No debugger detected")}Oc(this);return!0};f.oc=function(a){return a&&this.save?this.save():!0}; +function Pc(a){(!0===a.oa.oh||null===a.oa.oh&&!a.ga&&void 0===a.ya.run)&&a.ue()}f.gj=function(){return 0};function Nc(a){void 0===a.Z.rf&&(a.Z.rf=0);void 0===a.Z.Re&&(a.Z.Re=-1);void 0===a.Z.Te&&(a.Z.Te=-1);a.oa.He=0<=a.Z.rf&&0=a.Z.Se&&(a.Z.Se+=a.Z.Re,c=!0);0<=a.Z.Te&&a.Z.Te<=Uc(a)&&(a.Z.Re=a.Z.Te=-1,Nc(a),a.Xb(),c=!0);c&&a.V(Uc(a)+" cycles: checksum="+k(a.Z.qf))}} f.gd=function(){this.pa&&this.pa.Id&&this.pa.Id.gd()}; -function Vc(a,b){for(var c=0;c>>d.Qa;g=g+h-1>>>d.Qa;e.nh=0;for(e.Bd=0;m<=g;)h=d.wa[m],e.nh+=h.size,h.size&&(e.fh.push(sa(Db,m,0,0,h.type)),e.Bd++),m++;c.A=e;c.Ea=c.A.Bd*c.na.Kb/691200;d=0;c.A.Ti=0;c.A.lf||(c.A.lf=[]);var e=-1,m=0,q=-1;for(g=0;g>1),q=h.y+(h.A>>1),r=h.A,h.Sc< -h.A&&(r=h.Sc,m.ua=!0,m.R.save(),m.R.translate(g,q),m.R.rotate(-Math.PI/2),g=q=0),r>1,m.Y+=(m.aa>>1)-2,Fb(m,e),m.ua&&(m.R.restore(),m.ua=!1)}}else Fb(c,"This space intentionally left blank");c.context.drawImage(c.da,0,0,c.da.width,c.da.height,c.tb,c.Db,c.Za,c.eb);c.Na=!1}}f.Yc=function(){this.$c.length&&this.$c[0].Yc()}; -f.Tb=function(a,b,c){var d=this;a=!1;switch(b){case "run":this.ya[b]=c;c.onclick=function(){var a;if(a=d.pa)if(a=d.pa,a.oa.mc)a=!0;else{var b=null,c,m=eb(a.id);for(c=0;cc&&(c=60);2>c&&(c=2);var d=1;b&&1a.Z.Wf&&(c=Math.round(c/a.Z.Fd));return c}function Mc(a){a.Z.$d=0;a.hc=a.ac=a.ib=a.A=0;Nc(a);Yc(a,1)} -function Yc(a,b,c){var d=!1;if(void 0!==b){.8>a.Z.$d/a.Z.pe?b=1:d=!0;a.Z.Fd=b;b=a.Z.Wf*a.Z.Fd;if(a.Z.pe!=b){a.Z.pe=b;b=a.Z.pe.toFixed(2)+"Mhz";var e=a.ya.setSpeed;e&&(e.textContent=b);a.V("target speed: "+b)}c&&a.Yc()}$c(a,a.ac);a.ac=0;a.Z.Qe=pa();a.Z.qe=0;ad(a);return d} -f.ve=function(a){if(mb(this,!0)){if(!this.oa.Eb){Yc(this);this.pa&&this.pa.start(this.Z.Qe,Uc(this));this.oa.Eb=!0;this.oa.sh=!0;this.X&&bd(this.X);var b=this.ya.run;b&&(b.textContent="Halt");this.gd(!0);a&&this.Yc()}this.Z.Ch>=this.Z.yd&&ad(this,!0);this.Z.uf=0;this.Z.Xf=pa();this.Z.qe&&(a=this.Z.Xf-this.Z.qe,a>this.Z.lj&&(this.Z.Qe+=a,this.Z.Qe>this.Z.Xf&&(this.Z.Qe=this.Z.Xf)));try{do{var c=this.oa.He?1:this.Z.jl;if(this.X){cd(this.X);var d=this.X;a=c;var e=d.X[0];if(e.ie){var g=(Uc(d.O,d.ua)- -e.sd)/d.nb|0,h=dd(d,0)-g;6==e.mode&&(h-=g);var m=h*d.nb|0;6==e.mode&&(m>>=1);a>m&&(a=m)}var c=a,q=this.X;a=c;if(q.A&&q.A[11]&64){var r=q.Ja-Uc(q.O,q.ua);0r&&(a=r)}c=a}try{this.gf(c)}catch(x){if("number"!=typeof x)throw x;}var E=this.ib-this.A;this.ac+=E;this.Z.uf+=E;$c(this,0,!0);Tc(this,E);this.Z.tf-=E;0>=this.Z.tf&&(this.Z.tf+=this.Z.nj,Vc(this));this.Z.sf-=E;0>=this.Z.sf&&(this.Z.sf+=this.Z.mj,this.gd());this.Z.Ue-=E;if(0>=this.Z.Ue){this.Z.Ue+=this.Z.Bh;break}}while(this.oa.Eb)}catch(B){this.Xb(); -Oc(this);this.pa&&this.pa.stop(pa(),Uc(this));mb(this,!1);qb(this,B.stack||B.message);return}c=setTimeout;d=this.dh;this.Z.qe=pa();e=this.Z.lj;this.Z.uf&&(e=Math.round(e*this.Z.uf/this.Z.Bh));e-=this.Z.qe-this.Z.Xf;if(g=this.Z.qe-this.Z.Qe)this.Z.$d=Math.round(this.ac/(10*g))/100,864E5<=g&&(this.hc=0,this.X&&cd(this.X,!0),Yc(this));if(0>e||this.Z.$d>>d.Qa;g=g+h-1>>>d.Qa;e.nh=0;for(e.Bd=0;m<=g;)h=d.xa[m],e.nh+=h.size,h.size&&(e.fh.push(sa(Db,m,0,0,h.type)),e.Bd++),m++;c.A=e;c.Ea=c.A.Bd*c.na.Kb/691200;d=0;c.A.Ti=0;c.A.lf||(c.A.lf=[]);var e=-1,m=0,q=-1;for(g=0;g>1),q=h.y+(h.A>>1),r=h.A,h.Rc< +h.A&&(r=h.Rc,m.ua=!0,m.R.save(),m.R.translate(g,q),m.R.rotate(-Math.PI/2),g=q=0),r>1,m.Y+=(m.aa>>1)-2,Fb(m,e),m.ua&&(m.R.restore(),m.ua=!1)}}else Fb(c,"This space intentionally left blank");c.context.drawImage(c.da,0,0,c.da.width,c.da.height,c.tb,c.Db,c.Za,c.eb);c.Na=!1}}f.Xc=function(){this.$c.length&&this.$c[0].Xc()}; +f.Tb=function(a,b,c){var d=this;a=!1;switch(b){case "run":this.ya[b]=c;c.onclick=function(){var a;if(a=d.pa)if(a=d.pa,a.oa.mc)a=!0;else{var b=null,c,m=eb(a.id);for(c=0;cc&&(c=60);2>c&&(c=2);var d=1;b&&1a.Z.Wf&&(c=Math.round(c/a.Z.Fd));return c}function Mc(a){a.Z.Zd=0;a.hc=a.ac=a.ib=a.A=0;Nc(a);Yc(a,1)} +function Yc(a,b,c){var d=!1;if(void 0!==b){.8>a.Z.Zd/a.Z.oe?b=1:d=!0;a.Z.Fd=b;b=a.Z.Wf*a.Z.Fd;if(a.Z.oe!=b){a.Z.oe=b;b=a.Z.oe.toFixed(2)+"Mhz";var e=a.ya.setSpeed;e&&(e.textContent=b);a.V("target speed: "+b)}c&&a.Xc()}$c(a,a.ac);a.ac=0;a.Z.Qe=pa();a.Z.pe=0;ad(a);return d} +f.ue=function(a){if(mb(this,!0)){if(!this.oa.Eb){Yc(this);this.pa&&this.pa.start(this.Z.Qe,Uc(this));this.oa.Eb=!0;this.oa.sh=!0;this.X&&bd(this.X);var b=this.ya.run;b&&(b.textContent="Halt");this.gd(!0);a&&this.Xc()}this.Z.Ch>=this.Z.xd&&ad(this,!0);this.Z.uf=0;this.Z.Xf=pa();this.Z.pe&&(a=this.Z.Xf-this.Z.pe,a>this.Z.kj&&(this.Z.Qe+=a,this.Z.Qe>this.Z.Xf&&(this.Z.Qe=this.Z.Xf)));try{do{var c=this.oa.He?1:this.Z.ll;if(this.X){cd(this.X);var d=this.X;a=c;var e=d.X[0];if(e.he){var g=(Uc(d.O,d.ua)- +e.sd)/d.ob|0,h=dd(d,0)-g;6==e.mode&&(h-=g);var m=h*d.ob|0;6==e.mode&&(m>>=1);a>m&&(a=m)}var c=a,q=this.X;a=c;if(q.A&&q.A[11]&64){var r=q.Ja-Uc(q.O,q.ua);0r&&(a=r)}c=a}try{this.gf(c)}catch(x){if("number"!=typeof x)throw x;}var E=this.ib-this.A;this.ac+=E;this.Z.uf+=E;$c(this,0,!0);Tc(this,E);this.Z.tf-=E;0>=this.Z.tf&&(this.Z.tf+=this.Z.mj,Vc(this));this.Z.sf-=E;0>=this.Z.sf&&(this.Z.sf+=this.Z.lj,this.gd());this.Z.Ue-=E;if(0>=this.Z.Ue){this.Z.Ue+=this.Z.Bh;break}}while(this.oa.Eb)}catch(B){this.Xb(); +Oc(this);this.pa&&this.pa.stop(pa(),Uc(this));mb(this,!1);qb(this,B.stack||B.message);return}c=setTimeout;d=this.dh;this.Z.pe=pa();e=this.Z.kj;this.Z.uf&&(e=Math.round(e*this.Z.uf/this.Z.Bh));e-=this.Z.pe-this.Z.Xf;if(g=this.Z.pe-this.Z.Qe)this.Z.Zd=Math.round(this.ac/(10*g))/100,864E5<=g&&(this.hc=0,this.X&&cd(this.X,!0),Yc(this));if(0>e||this.Z.Zdthis.id&&p.call(e,13,a&65532)}return n};f.gl=function(a){var b=this.O;a=b.cd+(a<<2);var c=b.va(a);this.Xg=2;b.ca&=-769;return this.load(b.va(a+2))+c|0}; -f.fl=function(a){var b=this.O;a<<=3;var c=b.cd+a|0;if(7<=(b.Sd-c|0))return this.P=!0,a=id(this,c,a),a!==n&&(a+=this.Bf),a;p.call(b,13,a|2);return n};f.Vi=function(a){return this.Fa+a|0};f.Xi=function(a){return this.Fa+a|0};f.Ui=function(a,b){return(a>>>0)+b<=this.$b?this.Fa+a|0:this.Qf()};f.Nj=function(a,b){return(a>>>0)+b>this.$b?this.Fa+a|0:this.Qf()};f.Qf=function(){p.call(this.O,13,0);return n};f.Wi=function(a,b){return(a>>>0)+b<=this.$b?this.Fa+a|0:this.Rf()}; -f.Oj=function(a,b){return(a>>>0)+b>this.$b?this.Fa+a|0:this.Rf()};f.Rf=function(){p.call(this.O,13,0);return n};function jd(a,b,c){var d=a.O,e=d.va(b+2),g=d.va(b)|(e&255)<<16,d=d.va(b+4);a.ea=c;a.Fa=g;a.Va=d;a.$b=(d>>>0)+1;a.zb=e;a.type=e&7936;a.ext=0;a.Zb=b;gd(a,!0)} +function ed(a,b,c,d){this.O=a;this.ga=a.ga;this.id=b;this.Hf=c||"";this.ea=0;this.Va=65535;this.$b=this.Va+1;this.Rb=this.Bc=this.ext=this.zb=this.type=this.Fa=0;this.Zb=n;this.ha=this.Yc=2;this.C=this.Ga=65535;this.na=this.vh;this.X=this.Vi;this.S=this.Xi;this.A={ea:0,Fa:0,Va:0,zb:0,type:0,ext:0,Zb:n};this.id==fd&&(this.Bf=0,this.P=null,this.Me=!1,this.Xg=2,this.R=Array(32),this.B=[]);gd(this,!0,d)}var fd=1;function hd(a,b){a.B.push(b);return[a.B.length,1]}f=ed.prototype; +f.vh=function(a){this.ea=a&65535;return this.Fa=this.ea<<4};f.Vf=function(a,b){var c,d,e=this.O;a&=65535;a&4?(c=e.Dc.Fa,d=c+e.Dc.Va|0):(c=e.bd,d=e.Qd);if(c){c=c+(a&65528)|0;if(d-c|0)return e.A-=15,id(this,c,a,b);6>this.id&&p.call(e,13,a&65532)}return n};f.il=function(a){var b=this.O;a=b.cd+(a<<2);var c=b.va(a);this.Xg=2;b.ca&=-769;return this.load(b.va(a+2))+c|0}; +f.hl=function(a){var b=this.O;a<<=3;var c=b.cd+a|0;if(7<=(b.Rd-c|0))return this.P=!0,a=id(this,c,a),a!==n&&(a+=this.Bf),a;p.call(b,13,a|2);return n};f.Vi=function(a){return this.Fa+a|0};f.Xi=function(a){return this.Fa+a|0};f.Ui=function(a,b){return(a>>>0)+b<=this.$b?this.Fa+a|0:this.Qf()};f.Oj=function(a,b){return(a>>>0)+b>this.$b?this.Fa+a|0:this.Qf()};f.Qf=function(){p.call(this.O,13,0);return n};f.Wi=function(a,b){return(a>>>0)+b<=this.$b?this.Fa+a|0:this.Rf()}; +f.Pj=function(a,b){return(a>>>0)+b>this.$b?this.Fa+a|0:this.Rf()};f.Rf=function(){p.call(this.O,13,0);return n};function jd(a,b,c){var d=a.O,e=d.va(b+2),g=d.va(b)|(e&255)<<16,d=d.va(b+4);a.ea=c;a.Fa=g;a.Va=d;a.$b=(d>>>0)+1;a.zb=e;a.type=e&7936;a.ext=0;a.Zb=b;gd(a,!0)} function id(a,b,c,d){var e=a.O;if(!d&&c===a.A.ea)return a.ea=c,a.Fa=a.A.Fa,a.Va=a.A.Va,a.$b=(a.A.Va>>>0)+1,a.zb=a.A.zb,a.type=a.A.type,a.ext=a.A.ext,a.Zb=a.A.Zb,a.A.ea=0,gd(a,!0,!0,!1),a.Fa;a.A.ea=0;var g=e.va(b+0),h=e.va(b+4),m=h&7936,q=e.va(b+2)|(h&255)<<16,r=e.va(b+6),x=c&65528;if(80386<=e.ra){var E=g,q=q|(r&65280)<<16,g=g|(r&15)<<16;r&128&&(g=g<<12|4095)}switch(a.id){case fd:a.Me=!1;a.Xg=a.ha;var B=a.P;if(B&&1==c&&a.B.length){var T=a.B[a.Bf-1];if(T&&!T())return n}var T=c&3,J=(h&24576)>>13,I,U, -N;if(x&&!(h&32768))return 6>a.id&&p.call(e,11,c&65532),n;if(6144<=m){T=c&3;if(T>a.Rb){if(!1!==B&&!(J==a.Rb||m&1024&&J<=a.Rb))return n;I=kd(e);ld(e,kd(e),!0);t(e,I);a.Me=!0}I=0}else{if(256==m||2304==m)return od(a,c,B)?a.Fa:n;if(1024==m)I=2,N=0,Ta.id&&p.call(e,11,c&65532),n;if(6144<=m){T=c&3;if(T>a.Rb){if(!1!==B&&!(J==a.Rb||m&1024&&J<=a.Rb))return n;I=kd(e);ld(e,kd(e),!0);t(e,I);a.Me=!0}I=0}else{if(256==m||2304==m)return md(a,c,B)?a.Fa:n;if(1024==m)I=2,N=0,Ta.id&&p.call(e,13,c&65532|(U?2:0)),n;break;case 2:if(x){if(4096>m||2048==(m&2560))return 6>a.id&&p.call(e,13,c&65532),n;if(!(h&32768))return 6>a.id&&p.call(e,11,c&65532),n}break;case 3:if(!(h&32768))return 6>a.id&&p.call(e,12,c&65532),n;if(!x||4096>m||512!=(m&2560))return 6>a.id&&p.call(e,13,c&65532,!0),n;break;case 4:B=m&-513;if(!x||256!=B&&2304!=B)return 6>a.id&&p.call(e,13,c&65532,!0),n;2304==B&&(a.Pi= -q+e.va(q+100+2)|0,a.Kj=q+a.Va|0);break;case 6:if(!(m&4096)&&768>>0)+1,a.zb=h,a.type=m,a.ext=r,a.Zb=b,gd(a,!0,!0,!1));return q} -function od(a,b,c){var d=a.O,e=a.Rb,g=d.Ya.ea,h=d.Ya.Fa;if(!c){if(!(d.Ya.type&512))return p.call(d,13,b&65532,!0),!1;d.Fb(d.Ya.Zb+4,d.Ya.zb&=-513)}if(d.Ya.load(b)===n)return!1;var m=d.Ya.Fa;if(!1!==c){if(d.Ya.type&512)return p.call(d,13,b&65532,!0),!1;d.Fb(d.Ya.Zb+4,d.Ya.zb|=512)}d.Ya.type=d.Ya.type&-513|d.Ya.zb&512;256==d.Ya.type||768==d.Ya.type?(d.Fb(h+14,v(d)),d.Fb(h+16,zd(d)),d.Fb(h+18,d.F),d.Fb(h+20,d.G),d.Fb(h+22,d.H),d.Fb(h+24,d.D),d.Fb(h+26,u(d)),d.Fb(h+28,d.L),d.Fb(h+30,d.K),d.Fb(h+32,d.J), -d.Fb(h+34,d.cb.ea),d.Fb(h+36,d.za.ea),d.Fb(h+38,d.xa.ea),d.Fb(h+40,d.xb.ea),d.Dc.load(d.va(m+42)),Ad(d,d.va(m+16)|(c?16384:0)),d.F=d.va(m+18),d.G=d.va(m+20),d.H=d.va(m+22),d.D=d.va(m+24),d.L=d.va(m+28),d.K=d.va(m+30),d.J=d.va(m+32),d.cb.load(d.va(m+34)),d.xb.load(d.va(m+40)),Bd(d,d.va(m+14),d.va(m+36)),b=38,h=26,a.Rb>>0)+1)}; -function gd(a,b,c,d){void 0===c&&(c=!!(a.O.mb&1));a.Uc=!1;if(c)if(a.load=a.Vf,a.kj=a.fl,a.Ac=a.Ui,a.sc=a.Wi,void 0===d&&(d=!!(a.O.ca&131072)),d)a.load=a.na,a.Ac=a.X,a.sc=a.S,a.Rb=a.Bc=3,a.ha=a.Zc=2,a.C=a.Ga=65535,a.Va=65535,a.$b=a.Va+1,a.Zc=a.ha,a.Zb=n,a.Me=!1;else{if(!(a.ea&-4))a.Ac=a.Qf,a.sc=a.Rf;else if(a.type&4096){6144==(a.type&6656)&&(a.Ac=a.Qf);if(a.type&2048||!(a.type&512))a.sc=a.Rf;1024==(a.type&3072)&&(a.Ac==a.Ui&&(a.Ac=a.Nj),a.sc==a.Wi&&(a.sc=a.Oj),a.Uc=!0);b&&6>a.id&&a.ea&-4&&a.Zb!==n&& -(c=a.Zb+5,a.O.rc(c,a.O.Wa(c)|1))}b&&(a.Rb=a.ea&3,a.Bc=(a.zb&24576)>>13,80386>a.O.ra||!(a.ext&64)?(a.ha=2,a.C=65535):(a.ha=4,a.C=-1),a.Zc=a.ha,a.Ga=a.C)}else a.load=a.vh,a.kj=a.gl,a.Ac=a.Vi,a.sc=a.Xi,a.Rb=a.Bc=0,a.Zb=n,a.Me=!1} -function Dd(a){this.ra=a.model||8088;var b=0;switch(this.ra){default:b=4772727;break;case 80286:b=6E6;break;case 80386:b=16E6}Lc.call(this,a,b);this.Ef=61442;this.Kc=1792;this.Df=28672;this.xd=4;this.Ba=255;this.B=80386==this.ra?Ed:80286==this.ra?Fd:Gd;this.da=Hd;this.If=Id;this.Yg=Jd;this.Zg=Kd;if(80186<=this.ra&&(this.da=Hd.slice(),this.If=Id.slice(),this.Yg=Jd.slice(),this.Ba=31,this.da[15]=Ld,this.da[96]=Md,this.da[97]=Nd,this.da[98]=Od,this.da[99]=Ld,this.da[100]=Ld,this.da[101]=Ld,this.da[102]= -Ld,this.da[103]=Ld,this.da[104]=Pd,this.da[105]=Qd,this.da[106]=Rd,this.da[107]=Sd,this.da[108]=Td,this.da[109]=Ud,this.da[110]=Vd,this.da[111]=Wd,this.da[192]=ae,this.da[193]=be,this.da[200]=ce,this.da[201]=de,this.da[241]=ee,this.If[7]=fe,this.Yg[7]=fe,80286<=this.ra)){this.Ef=2;this.Kc|=28672;this.xd=0;this.da[15]=ge;this.kd=he.slice();for(a=0;a>>20,g=a.Ad[(a.Kd+e&a.hd)>>>a.Qa],h=g.te(e);if(!(h&1))return d||we.call(a,b,!1,c),a.md;if(!(h&4)&&3==a.sa)return d||we.call(a,b,!0,c),a.md;var m=(b&4190208)>>>10,h=a.Ad[((h&-4096)+m&a.hd)>>>a.Qa],q=h.te(m);if(!(q&1))return d||we.call(a,b,!1,c),a.md;if(!(q&4)&&3==a.sa)return d||we.call(a,b,!0,c),a.md;c=a.Ad[((q&-4096)+(b&4095)&a.hd)>>>a.Qa];if(d)return c;d=new Jb(b&-4096,0,0,6);rc(d,c,g,e,h,m);b>>>=a.Qa;a.wa[b]=d;a.Zd.push(b);return d} -function xe(a){a.wa!=a.Ad&&(a.wa=a.Ad,a.bf=null,a.Zd=null,a.md=null)}f=Dd.prototype;f.reset=function(){this.oa.Eb&&this.Xb();ue(this);Mc(this);this.oa.pd=!1};function ye(a,b){var c;switch(b){case 0:c=a.F;break;case 1:c=a.G;break;case 2:c=a.H;break;case 3:c=a.D;break;case 4:c=u(a);break;case 5:c=a.L;break;case 6:c=a.K;break;case 7:c=a.J}return c} +q+e.va(q+100+2)|0,a.Lj=q+a.Va|0);break;case 6:if(!(m&4096)&&768>>0)+1,a.zb=h,a.type=m,a.ext=r,a.Zb=b,gd(a,!0,!0,!1));return q} +function md(a,b,c){var d=a.O,e=a.Rb,g=d.Ya.ea,h=d.Ya.Fa;if(!c){if(!(d.Ya.type&512))return p.call(d,13,b&65532,!0),!1;d.Fb(d.Ya.Zb+4,d.Ya.zb&=-513)}if(d.Ya.load(b)===n)return!1;var m=d.Ya.Fa;if(!1!==c){if(d.Ya.type&512)return p.call(d,13,b&65532,!0),!1;d.Fb(d.Ya.Zb+4,d.Ya.zb|=512)}d.Ya.type=d.Ya.type&-513|d.Ya.zb&512;256==d.Ya.type||768==d.Ya.type?(d.Fb(h+14,v(d)),d.Fb(h+16,vd(d)),d.Fb(h+18,d.F),d.Fb(h+20,d.G),d.Fb(h+22,d.H),d.Fb(h+24,d.D),d.Fb(h+26,u(d)),d.Fb(h+28,d.L),d.Fb(h+30,d.K),d.Fb(h+32,d.J), +d.Fb(h+34,d.cb.ea),d.Fb(h+36,d.Aa.ea),d.Fb(h+38,d.wa.ea),d.Fb(h+40,d.xb.ea),d.Dc.load(d.va(m+42)),wd(d,d.va(m+16)|(c?16384:0)),d.F=d.va(m+18),d.G=d.va(m+20),d.H=d.va(m+22),d.D=d.va(m+24),d.L=d.va(m+28),d.K=d.va(m+30),d.J=d.va(m+32),d.cb.load(d.va(m+34)),d.xb.load(d.va(m+40)),Bd(d,d.va(m+14),d.va(m+36)),b=38,h=26,a.Rb>>0)+1)}; +function gd(a,b,c,d){void 0===c&&(c=!!(a.O.nb&1));a.Tc=!1;if(c)if(a.load=a.Vf,a.jj=a.hl,a.Ac=a.Ui,a.sc=a.Wi,void 0===d&&(d=!!(a.O.ca&131072)),d)a.load=a.na,a.Ac=a.X,a.sc=a.S,a.Rb=a.Bc=3,a.ha=a.Yc=2,a.C=a.Ga=65535,a.Va=65535,a.$b=a.Va+1,a.Yc=a.ha,a.Zb=n,a.Me=!1;else{if(!(a.ea&-4))a.Ac=a.Qf,a.sc=a.Rf;else if(a.type&4096){6144==(a.type&6656)&&(a.Ac=a.Qf);if(a.type&2048||!(a.type&512))a.sc=a.Rf;1024==(a.type&3072)&&(a.Ac==a.Ui&&(a.Ac=a.Oj),a.sc==a.Wi&&(a.sc=a.Pj),a.Tc=!0);b&&6>a.id&&a.ea&-4&&a.Zb!==n&& +(c=a.Zb+5,a.O.rc(c,a.O.Wa(c)|1))}b&&(a.Rb=a.ea&3,a.Bc=(a.zb&24576)>>13,80386>a.O.ra||!(a.ext&64)?(a.ha=2,a.C=65535):(a.ha=4,a.C=-1),a.Yc=a.ha,a.Ga=a.C)}else a.load=a.vh,a.jj=a.il,a.Ac=a.Vi,a.sc=a.Xi,a.Rb=a.Bc=0,a.Zb=n,a.Me=!1} +function Dd(a){this.ra=a.model||8088;var b=0;switch(this.ra){default:b=4772727;break;case 80286:b=6E6;break;case 80386:b=16E6}Lc.call(this,a,b);this.Ef=61442;this.Jc=1792;this.Df=28672;this.wd=4;this.Ba=255;this.B=80386==this.ra?Ed:80286==this.ra?Fd:Gd;this.da=Hd;this.If=Id;this.Yg=Jd;this.Zg=Kd;if(80186<=this.ra&&(this.da=Hd.slice(),this.If=Id.slice(),this.Yg=Jd.slice(),this.Ba=31,this.da[15]=Ld,this.da[96]=Md,this.da[97]=Nd,this.da[98]=Od,this.da[99]=Ld,this.da[100]=Ld,this.da[101]=Ld,this.da[102]= +Ld,this.da[103]=Ld,this.da[104]=Pd,this.da[105]=Qd,this.da[106]=Rd,this.da[107]=Sd,this.da[108]=Td,this.da[109]=Ud,this.da[110]=Vd,this.da[111]=Wd,this.da[192]=ae,this.da[193]=be,this.da[200]=ce,this.da[201]=de,this.da[241]=ee,this.If[7]=fe,this.Yg[7]=fe,80286<=this.ra)){this.Ef=2;this.Jc|=28672;this.wd=0;this.da[15]=ge;this.kd=he.slice();for(a=0;a>>20,g=a.Ad[(a.Jd+e&a.hd)>>>a.Qa],h=g.se(e);if(!(h&1))return d||we.call(a,b,!1,c),a.md;if(!(h&4)&&3==a.sa)return d||we.call(a,b,!0,c),a.md;var m=(b&4190208)>>>10,h=a.Ad[((h&-4096)+m&a.hd)>>>a.Qa],q=h.se(m);if(!(q&1))return d||we.call(a,b,!1,c),a.md;if(!(q&4)&&3==a.sa)return d||we.call(a,b,!0,c),a.md;c=a.Ad[((q&-4096)+(b&4095)&a.hd)>>>a.Qa];if(d)return c;d=new Jb(b&-4096,0,0,6);rc(d,c,g,e,h,m);b>>>=a.Qa;a.xa[b]=d;a.Yd.push(b);return d} +function xe(a){a.xa!=a.Ad&&(a.xa=a.Ad,a.bf=null,a.Yd=null,a.md=null)}f=Dd.prototype;f.reset=function(){this.oa.Eb&&this.Xb();ue(this);Mc(this);this.oa.pd=!1};function ye(a,b){var c;switch(b){case 0:c=a.F;break;case 1:c=a.G;break;case 2:c=a.H;break;case 3:c=a.D;break;case 4:c=u(a);break;case 5:c=a.L;break;case 6:c=a.K;break;case 7:c=a.J}return c} function ze(a,b,c){switch(b){case 0:a.F=c;break;case 1:a.G=c;break;case 2:a.H=c;break;case 3:a.D=c;break;case 4:t(a,c);break;case 5:a.L=c;break;case 6:a.K=c;break;case 7:a.J=c}} -function ue(a){a.F=0;a.D=0;a.G=0;a.H=0;a.jb=0;a.L=0;a.K=0;a.J=0;a.Ja=!1;a.qa=a.Ma=0;a.Db=0;a.le=0;a.mb=65520;a.cd=0;a.Sd=1023;a.ca=a.bb=0;a.Mc=a.od=a.Lc=a.Nc=0;a.nb=-1;a.Ea=a.La=n;a.za=new ed(a,fd,"CS");a.xb=new ed(a,2,"DS");a.cb=new ed(a,2,"ES");a.xa=new ed(a,3,"SS");t(a,0);ld(a,0);80386<=a.ra&&(a.H=772,a.mb=16,a.Ki=0,a.de=0,a.Kd=0,a.Oa=[0,0,0,0,null,null,0,0],a.se=[null,null,null,null,null,null,0,0],a.Ob=new ed(a,2,"FS"),a.Pb=new ed(a,2,"GS"),xe(a));a.bh=new ed(a,0,"NULL");a.R=a.xb;a.S=a.xa;a.W= -a.Y=0;a.P=a.aa=n;a.ua=0;Bd(a,0,65535);if(80286<=a.ra){a.bd=0;a.Rd=65535;a.Dc=new ed(a,5,"LDT",!0);a.Ya=new ed(a,4,"TSS",!0);a.Ha=new ed(a,6,"VER",!0);Bd(a,65520,61440);var b,c=v(a);b=a.za;var d=-65536;80386>b.O.ra&&(d&=16777215);b=b.Fa=d;a.Aa=b+c|0;a.oe=b+a.za.Va|0}Ad(a,0);pd(a)}function Ae(a,b){b.ea&65528&&b.Bc>16,e=0;4>e;e++){if(c&3){var g=!!(d&1),h=a.Oa[e],h=h&~(d>>2&3);b?a.wa[h>>>a.Qa].Qd(h&a.Ra,g,a):Fc(a.wa[h>>>a.Qa],g)}c>>=2;d>>=4}} -function Cc(a,b,c,d){if(!(a.W&8192)&&a.Oa[7]&255){c--;var e=a.Oa[7],g=e>>16;d=d?1:0==d?3:0;for(var h=0;4>h;h++){if(e&3&&(g&3)==d){var m=g>>2;if(b+c>=a.Oa[h]&&b<=a.Oa[h]+m){a.Oa[6]|=1<>=2;g>>=4}}}function pd(a,b,c){void 0===b&&(b=!!(a.mb&1));void 0===c&&(c=!!(a.ca&131072));a.Zg=b&&!c?Qe:Kd;gd(a.za,!1,b,c);gd(a.xb,!1,b,c);gd(a.xa,!1,b,c);gd(a.cb,!1,b,c);80386<=a.ra&&(gd(a.Ob,!1,b,c),gd(a.Pb,!1,b,c),rd(a))} -f.save=function(){var a=new Re(this);Se(a,0,[this.F,this.D,this.G,this.H,u(this),this.L,this.K,this.J]);var b=v(this),c=this.za.save(),d=this.xb.save(),e=this.xa.save(),g=this.cb.save(),h;null!=this.bd?(h=[this.mb,this.bd,this.Rd,this.cd,this.Sd,this.Dc.save(),this.Ya.save(),this.bb],80386<=this.ra&&(h.push(this.Ki),h.push(this.de),h.push(this.Kd),h.push(this.Oa),h.push(this.se))):h=null;b=[b,c,d,e,g,h,zd(this)];80386<=this.ra&&(b.push(this.Ob.save()),b.push(this.Pb.save()));Se(a,1,b);Se(a,2,[this.R.Hf, -this.S.Hf,this.W,this.Y,this.ua,this.P,this.aa]);Se(a,3,[0,this.hc,this.Z.Fd]);b=this.na;c=0;d=[];(e=!b.S&&b.Zf==b.B)||Ob(b,!0);for(g=0;gc&&0<=(a.oe^a.Aa)&&(8088>=a.ra||a.za.Va==a.za.Ga?D(a,a.Aa-a.za.Fa):-1>c&&p.call(a,13,0))}function u(a){return a.jb&~a.xa.Ga|a.ja-a.xa.Fa}function t(a,b){a.jb=b;a.ja=a.xa.Fa+(b&a.xa.Ga)|0}function We(a,b,c,d,e,g){if(63!=(e&63)&&e!=a.resultType){var h=(e^a.resultType)&a.resultType;h&&(h&1&&Xe(a),h&2&&Ye(a),h&4&&Ze(a),h&8&&$e(a),h&16&&af(a),h&32&&bf(a))}g?(a.Mc=d,a.Lc=b):(a.Mc=b,a.Lc=d);a.od=c;a.Nc=d;a.resultType=e} -function cf(a,b,c,d,e){a.resultType=c|26;a.Nc=b;d?df(a):ef(a);e?ff(a):gf(a);return b}function hf(a,b,c,d){c&d?df(a):ef(a);(b^c)&d?ff(a):gf(a)}function jf(a){return Xe(a)?1:0}function Xe(a){a.resultType&1&&(a.ca&=-2,(a.Mc^(a.Mc^a.od)&(a.od^a.Lc))&a.resultType&-2147450752&&(a.ca|=1),a.resultType&=-2);return a.ca&1}function Ye(a){a.resultType&2&&(a.ca&=-5,38505>>((a.Nc^a.Nc>>4)&15)&1&&(a.ca|=4),a.resultType&=-3);return a.ca&4} -function Ze(a){a.resultType&4&&(a.ca&=-17,(a.Lc^a.Mc^a.od)&16&&(a.ca|=16),a.resultType&=-5);return a.ca&16}function $e(a){a.resultType&8&&(a.ca&=-65,a.Nc&((a.resultType&-2147450752)-1|a.resultType&-2147450752)||(a.ca|=64),a.resultType&=-9);return a.ca&64}function af(a){a.resultType&16&&(a.ca&=-129,a.Nc&a.resultType&-2147450752&&(a.ca|=128),a.resultType&=-17);return a.ca&128} -function bf(a){a.resultType&32&&(a.ca&=-2049,(a.Mc^a.Lc)&(a.od^a.Lc)&a.resultType&-2147450752&&(a.ca|=2048),a.resultType&=-33);return a.ca&2048}function ef(a){a.resultType&=-2;a.ca&=-2}function kf(a){a.resultType&=-5;a.ca&=-17}function lf(a){a.resultType&=-9;a.ca&=-65}function gf(a){a.resultType&=-33;a.ca&=-2049}function df(a){a.resultType&=-2;a.ca|=1}function nf(a){a.resultType&=-5;a.ca|=16}function of(a){a.resultType&=-9;a.ca|=64}function ff(a){a.resultType&=-33;a.ca|=2048} -function zd(a){return a.ca&-2262|Xe(a)|Ye(a)|Ze(a)|$e(a)|af(a)|bf(a)}function pf(a,b){b=b|a.mb&1|65520;a.mb=a.mb&-65536|b&65535;a.mb&1&&pd(a,!0)}function Ad(a,b,c){a.mb&1||(b&=~a.Df);void 0===c&&(c=a.sa);c?b=b&-12289|a.ca&12288:a.bb=(b&12288)>>12;c>a.bb&&(b=b&-513|a.ca&512);a.resultType=128;a.ca=a.ca&~(a.Kc|2261)|b&(a.Kc|2261)|a.Ef;a.ca&256&&(a.ua|=2,a.W|=4)} -function qf(a,b,c,d){var e=0;if(a.mb&1&&(a.sa>a.bb||a.ca&131072)&&a.Ya.Pi)for(var g=a.Ya.Pi+(b>>>3),e=(1<>>=8,g++;return e?(a.ta(256)&&a.Ca("checkIOPM("+ga(b)+","+c+","+(d?"input":"output")+"): trapped",!0,!0),p.call(a,13,0,!1),!1):!0} +function ue(a){a.F=0;a.D=0;a.G=0;a.H=0;a.jb=0;a.L=0;a.K=0;a.J=0;a.Ja=!1;a.qa=a.Ma=0;a.Db=0;a.ke=0;a.nb=65520;a.cd=0;a.Rd=1023;a.ca=a.bb=0;a.Lc=a.od=a.Kc=a.Mc=0;a.ob=-1;a.Ea=a.La=n;a.Aa=new ed(a,fd,"CS");a.xb=new ed(a,2,"DS");a.cb=new ed(a,2,"ES");a.wa=new ed(a,3,"SS");t(a,0);ld(a,0);80386<=a.ra&&(a.H=772,a.nb=16,a.Ki=0,a.ce=0,a.Jd=0,a.Oa=[0,0,0,0,null,null,0,0],a.re=[null,null,null,null,null,null,0,0],a.Ob=new ed(a,2,"FS"),a.Pb=new ed(a,2,"GS"),xe(a));a.bh=new ed(a,0,"NULL");a.R=a.xb;a.S=a.wa;a.W= +a.Y=0;a.P=a.aa=n;a.ua=0;Bd(a,0,65535);if(80286<=a.ra){a.bd=0;a.Qd=65535;a.Dc=new ed(a,5,"LDT",!0);a.Ya=new ed(a,4,"TSS",!0);a.Ha=new ed(a,6,"VER",!0);Bd(a,65520,61440);var b,c=v(a);b=a.Aa;var d=-65536;80386>b.O.ra&&(d&=16777215);b=b.Fa=d;a.za=b+c|0;a.ne=b+a.Aa.Va|0}wd(a,0);nd(a)}function Ae(a,b){b.ea&65528&&b.Bc>16,e=0;4>e;e++){if(c&3){var g=!!(d&1),h=a.Oa[e],h=h&~(d>>2&3);b?a.xa[h>>>a.Qa].Pd(h&a.Ra,g,a):Fc(a.xa[h>>>a.Qa],g)}c>>=2;d>>=4}} +function Cc(a,b,c,d){if(!(a.W&8192)&&a.Oa[7]&255){c--;var e=a.Oa[7],g=e>>16;d=d?1:0==d?3:0;for(var h=0;4>h;h++){if(e&3&&(g&3)==d){var m=g>>2;if(b+c>=a.Oa[h]&&b<=a.Oa[h]+m){a.Oa[6]|=1<>=2;g>>=4}}}function nd(a,b,c){void 0===b&&(b=!!(a.nb&1));void 0===c&&(c=!!(a.ca&131072));a.Zg=b&&!c?Qe:Kd;gd(a.Aa,!1,b,c);gd(a.xb,!1,b,c);gd(a.wa,!1,b,c);gd(a.cb,!1,b,c);80386<=a.ra&&(gd(a.Ob,!1,b,c),gd(a.Pb,!1,b,c),rd(a))} +f.save=function(){var a=new Re(this);Se(a,0,[this.F,this.D,this.G,this.H,u(this),this.L,this.K,this.J]);var b=v(this),c=this.Aa.save(),d=this.xb.save(),e=this.wa.save(),g=this.cb.save(),h;null!=this.bd?(h=[this.nb,this.bd,this.Qd,this.cd,this.Rd,this.Dc.save(),this.Ya.save(),this.bb],80386<=this.ra&&(h.push(this.Ki),h.push(this.ce),h.push(this.Jd),h.push(this.Oa),h.push(this.re))):h=null;b=[b,c,d,e,g,h,vd(this)];80386<=this.ra&&(b.push(this.Ob.save()),b.push(this.Pb.save()));Se(a,1,b);Se(a,2,[this.R.Hf, +this.S.Hf,this.W,this.Y,this.ua,this.P,this.aa]);Se(a,3,[0,this.hc,this.Z.Fd]);b=this.na;c=0;d=[];(e=!b.S&&b.Zf==b.B)||Ob(b,!0);for(g=0;gc&&0<=(a.ne^a.za)&&(8088>=a.ra||a.Aa.Va==a.Aa.Ga?D(a,a.za-a.Aa.Fa):-1>c&&p.call(a,13,0))}function u(a){return a.jb&~a.wa.Ga|a.ja-a.wa.Fa}function t(a,b){a.jb=b;a.ja=a.wa.Fa+(b&a.wa.Ga)|0}function We(a,b,c,d,e,g){if(63!=(e&63)&&e!=a.resultType){var h=(e^a.resultType)&a.resultType;h&&(h&1&&Xe(a),h&2&&Ye(a),h&4&&Ze(a),h&8&&$e(a),h&16&&af(a),h&32&&bf(a))}g?(a.Lc=d,a.Kc=b):(a.Lc=b,a.Kc=d);a.od=c;a.Mc=d;a.resultType=e} +function cf(a,b,c,d,e){a.resultType=c|26;a.Mc=b;d?df(a):ef(a);e?ff(a):gf(a);return b}function hf(a,b,c,d){c&d?df(a):ef(a);(b^c)&d?ff(a):gf(a)}function jf(a){return Xe(a)?1:0}function Xe(a){a.resultType&1&&(a.ca&=-2,(a.Lc^(a.Lc^a.od)&(a.od^a.Kc))&a.resultType&-2147450752&&(a.ca|=1),a.resultType&=-2);return a.ca&1}function Ye(a){a.resultType&2&&(a.ca&=-5,38505>>((a.Mc^a.Mc>>4)&15)&1&&(a.ca|=4),a.resultType&=-3);return a.ca&4} +function Ze(a){a.resultType&4&&(a.ca&=-17,(a.Kc^a.Lc^a.od)&16&&(a.ca|=16),a.resultType&=-5);return a.ca&16}function $e(a){a.resultType&8&&(a.ca&=-65,a.Mc&((a.resultType&-2147450752)-1|a.resultType&-2147450752)||(a.ca|=64),a.resultType&=-9);return a.ca&64}function af(a){a.resultType&16&&(a.ca&=-129,a.Mc&a.resultType&-2147450752&&(a.ca|=128),a.resultType&=-17);return a.ca&128} +function bf(a){a.resultType&32&&(a.ca&=-2049,(a.Lc^a.Kc)&(a.od^a.Kc)&a.resultType&-2147450752&&(a.ca|=2048),a.resultType&=-33);return a.ca&2048}function ef(a){a.resultType&=-2;a.ca&=-2}function kf(a){a.resultType&=-5;a.ca&=-17}function lf(a){a.resultType&=-9;a.ca&=-65}function gf(a){a.resultType&=-33;a.ca&=-2049}function df(a){a.resultType&=-2;a.ca|=1}function nf(a){a.resultType&=-5;a.ca|=16}function of(a){a.resultType&=-9;a.ca|=64}function ff(a){a.resultType&=-33;a.ca|=2048} +function vd(a){return a.ca&-2262|Xe(a)|Ye(a)|Ze(a)|$e(a)|af(a)|bf(a)}function pf(a,b){b=b|a.nb&1|65520;a.nb=a.nb&-65536|b&65535;a.nb&1&&nd(a,!0)}function wd(a,b,c){a.nb&1||(b&=~a.Df);void 0===c&&(c=a.sa);c?b=b&-12289|a.ca&12288:a.bb=(b&12288)>>12;c>a.bb&&(b=b&-513|a.ca&512);a.resultType=128;a.ca=a.ca&~(a.Jc|2261)|b&(a.Jc|2261)|a.Ef;a.ca&256&&(a.ua|=2,a.W|=4)} +function qf(a,b,c,d){var e=0;if(a.nb&1&&(a.sa>a.bb||a.ca&131072)&&a.Ya.Pi)for(var g=a.Ya.Pi+(b>>>3),e=(1<>>=8,g++;return e?(a.ta(256)&&a.Ca("checkIOPM("+ga(b)+","+c+","+(d?"input":"output")+"): trapped",!0,!0),p.call(a,13,0,!1),!1):!0} f.Tb=function(a,b,c){var d=!1;switch(b){case "EAX":case "EBX":case "ECX":case "EDX":case "ESP":case "EBP":case "ESI":case "EDI":case "EIP":case "AX":case "BX":case "CX":case "DX":case "SP":case "BP":case "SI":case "DI":case "IP":case "PC":case "CS":case "DS":case "SS":case "ES":case "FS":case "GS":case "CR0":case "CR2":case "CR3":case "PS":case "C":case "P":case "A":case "Z":case "S":case "T":case "I":case "D":case "V":this.ya[b]=c;this.$g++;d=!0;break;default:d=this.parent.Tb.call(this,a,b,c)}return d}; -function rf(a,b,c){var d=a.wa[(b&a.tb)>>>a.Qa];d&&5==d.type&&(d=Ec(a,b,!1,!0));if(d)switch(a=b&a.Ra,c){default:return d.cf(a,b);case 2:return d.Rg(a,b);case 4:return d.Ji(a,b)}return null}f.Wa=function(a){return this.wa[(a&this.tb)>>>this.Qa].wc(a&this.Ra,a)};f.va=function(a){var b=a&this.Ra,c=(a&this.tb)>>>this.Qa;this.A-=this.B.zf;if(b>>this.Qa;if(b>>this.Qa].yc(a&this.Ra,b&255,a)};f.Fb=function(a,b){var c=a&this.Ra,d=(a&this.tb)>>>this.Qa;this.A-=this.B.zf;c>8&255,a+1))}; -f.Qb=function(a,b){var c=a&this.Ra,d=(a&this.tb)>>>this.Qa;this.A-=this.B.zf;if(c>>=8}};function sf(a,b,c){a.Ub=b;a.P=b.Ac(a.yb=c,1);return a.W&1?0:a.Wa(a.P)}function F(a,b){return sf(a,a.R,b&a.Ga)}function G(a,b){return sf(a,a.S,b&a.Ga)}function tf(a,b,c){a.Ub=b;a.P=b.Ac(a.yb=c,a.ha);return a.W&1?0:a.nc(a.P)}function H(a,b){return tf(a,a.R,b&a.Ga)} +function rf(a,b,c){var d=a.xa[(b&a.tb)>>>a.Qa];d&&5==d.type&&(d=Ec(a,b,!1,!0));if(d)switch(a=b&a.Ra,c){default:return d.cf(a,b);case 2:return d.Rg(a,b);case 4:return d.Ji(a,b)}return null}f.Wa=function(a){return this.xa[(a&this.tb)>>>this.Qa].wc(a&this.Ra,a)};f.va=function(a){var b=a&this.Ra,c=(a&this.tb)>>>this.Qa;this.A-=this.B.zf;if(b>>this.Qa;if(b>>this.Qa].yc(a&this.Ra,b&255,a)};f.Fb=function(a,b){var c=a&this.Ra,d=(a&this.tb)>>>this.Qa;this.A-=this.B.zf;c>8&255,a+1))}; +f.Qb=function(a,b){var c=a&this.Ra,d=(a&this.tb)>>>this.Qa;this.A-=this.B.zf;if(c>>=8}};function sf(a,b,c){a.Ub=b;a.P=b.Ac(a.yb=c,1);return a.W&1?0:a.Wa(a.P)}function F(a,b){return sf(a,a.R,b&a.Ga)}function G(a,b){return sf(a,a.S,b&a.Ga)}function tf(a,b,c){a.Ub=b;a.P=b.Ac(a.yb=c,a.ha);return a.W&1?0:a.nc(a.P)}function H(a,b){return tf(a,a.R,b&a.Ga)} function K(a,b){return tf(a,a.S,b&a.Ga)}function uf(a,b,c){a.Ub=b;a.aa=a.P=b.Ac(a.yb=c,1);return a.W&1?0:a.Wa(a.P)}function L(a,b){return uf(a,a.R,b&a.Ga)}function M(a,b){return uf(a,a.S,b&a.Ga)}function vf(a,b,c){a.Ub=b;a.aa=a.P=b.Ac(a.yb=c,a.ha);return a.W&1?0:a.nc(a.P)}function O(a,b){return vf(a,a.R,b&a.Ga)}function P(a,b){return vf(a,a.S,b&a.Ga)}function Q(a,b){a.W&2||a.rc(a.Ub.sc(a.yb,1),b)}function R(a,b){a.W&2||a.zc(a.Ub.sc(a.yb,a.ha),b)}function qd(a,b,c){return a.nc(b.Ac(c,a.ha))} -f.ba=function(){var a=this.Wa(this.Aa);Ve(this,1);return a};function wf(a){var b=a.va(a.Aa);Ve(a,2);return b}function S(a){var b=a.ec(a.Aa);Ve(a,a.Zc);return b}f.Pa=function(){var a=this.nc(this.Aa);Ve(this,this.ha);return a};f.M=function(){var a=this.Wa(this.Aa)<<24>>24;Ve(this,1);return a};function V(a,b){var c=a.Wa(a.Aa);Ve(a,1);return xf[c].call(a,b)} -function kd(a){var b=a.nc(a.ja);a.ja=a.ja+a.ha|0;var c=a.Ug-a.ja|0;0>c&&0<=(a.Ug^a.ja)&&(8088>=a.ra||!a.xa.Uc&&a.xa.Va==a.xa.Ga||a.xa.Uc&&!a.xa.Va?t(a,a.ja-a.xa.Fa&a.xa.Ga):-1>c&&p.call(a,12,0));return b}function yf(a,b,c){a.ja=a.ja-c|0;0>(a.ja-a.nd|0)&&0<=(a.nd^a.ja)&&(8088>=a.ra||!a.xa.Uc&&a.xa.Va==a.xa.Ga||a.xa.Uc&&!a.xa.Va?t(a,a.ja-a.xa.Fa&a.xa.Ga):p.call(a,12,0));2==c?a.Fb(a.ja,b):a.Qb(a.ja,b)} -function sd(a,b){a.ja=a.ja-a.ha|0;0>(a.ja-a.nd|0)&&0<=(a.nd^a.ja)&&(8088>=a.ra||!a.xa.Uc&&a.xa.Va==a.xa.Ga||a.xa.Uc&&!a.xa.Va?t(a,a.ja-a.xa.Fa&a.xa.Ga):p.call(a,12,0));a.zc(a.ja,b)}function zf(a,b,c){var d=4;1==b.length&&(d=1,c=c?1:0);if(80386>a.ra)2this.ra?0:1,e=0;2>e;e++){switch(d){case 0:if(this.ua&1&&this.ca&512){var g=Bf(this.X);if(-1<=g&&(this.ua&=-2,0<=g)){this.ua&=-5;Kf.call(this, -this.nb=g,null,11);d=!0;break a}}break;case 1:if(this.ua&2){this.ua&=-3;80386<=this.ra&&(this.Oa[6]|=16384);Kf.call(this,this.nb=1,null,11);d=!0;break a}}d=1-d}if(d=this.ua&8){d=this.X;e=!1;for(g=0;g>24;Ve(this,1);return a};function V(a,b){var c=a.Wa(a.za);Ve(a,1);return xf[c].call(a,b)} +function kd(a){var b=a.nc(a.ja);a.ja=a.ja+a.ha|0;var c=a.Ug-a.ja|0;0>c&&0<=(a.Ug^a.ja)&&(8088>=a.ra||!a.wa.Tc&&a.wa.Va==a.wa.Ga||a.wa.Tc&&!a.wa.Va?t(a,a.ja-a.wa.Fa&a.wa.Ga):-1>c&&p.call(a,12,0));return b}function yf(a,b,c){a.ja=a.ja-c|0;0>(a.ja-a.nd|0)&&0<=(a.nd^a.ja)&&(8088>=a.ra||!a.wa.Tc&&a.wa.Va==a.wa.Ga||a.wa.Tc&&!a.wa.Va?t(a,a.ja-a.wa.Fa&a.wa.Ga):p.call(a,12,0));2==c?a.Fb(a.ja,b):a.Qb(a.ja,b)} +function sd(a,b){a.ja=a.ja-a.ha|0;0>(a.ja-a.nd|0)&&0<=(a.nd^a.ja)&&(8088>=a.ra||!a.wa.Tc&&a.wa.Va==a.wa.Ga||a.wa.Tc&&!a.wa.Va?t(a,a.ja-a.wa.Fa&a.wa.Ga):p.call(a,12,0));a.zc(a.ja,b)}function zf(a,b,c){var d=4;1==b.length&&(d=1,c=c?1:0);if(80386>a.ra)2this.ra?0:1,e=0;2>e;e++){switch(d){case 0:if(this.ua&1&&this.ca&512){var g=Bf(this.X);if(-1<=g&&(this.ua&=-2,0<=g)){this.ua&=-5;Kf.call(this, +this.ob=g,null,11);d=!0;break a}}break;case 1:if(this.ua&2){this.ua&=-3;80386<=this.ra&&(this.Oa[6]|=16384);Kf.call(this,this.ob=1,null,11);d=!0;break a}}d=1-d}if(d=this.ua&8){d=this.X;e=!1;for(g=0;g>16,c=c<<16>>16,d=d<<16>>16);this.A-=this.B.Hh;(bd)&&p.call(this,5);this.W|=2;return a}function Vf(a,b){var c=0;if(b){lf(this);for(var d=1;d&this.C;){if(b&d){a=c;break}d<<=1;c++}}else of(this);this.A-=11+3*c;return a} function Wf(a,b){var c=0;if(b){lf(this);for(var d=2==this.ha?15:31,e=1<>>=1;c++;d--}}else of(this);this.A-=11+3*c;return a}function Xf(a,b){a&1<<(b&(2==this.ha?15:31))?df(this):ef(this);this.A-=this.P===n?3:6;this.W|=2;return a}function Yf(a,b){var c=1<<(b&(2==this.ha?15:31));a&c?df(this):ef(this);this.A-=this.P===n?6:8;return a^c}function Zf(a,b){var c=1<<(b&(2==this.ha?15:31));a&c?df(this):ef(this);this.A-=this.P===n?6:8;return a&~c} function $f(a,b){var c=1<<(b&(2==this.ha?15:31));a&c?df(this):ef(this);this.A-=this.P===n?6:8;return a|c}function ag(a,b){if(this.P===n)return Xf.call(this,a,b);var c=this.ha<<3;if(b>=c||b<-c)a=tf(this,this.Ub,this.yb+(b>>(2==this.ha?4:5))*this.ha);b=1<<(b&(2==this.ha?15:31));a&b?df(this):ef(this);this.A-=6;this.W|=2;return a} function bg(a,b){if(this.P===n)return Yf.call(this,a,b);var c=this.ha<<3;if(b>=c||b<-c)a=tf(this,this.Ub,this.yb+(b>>(2==this.ha?4:5))*this.ha);b=1<<(b&(2==this.ha?15:31));a&b?df(this):ef(this);this.A-=8;return a^b}function cg(a,b){if(this.P===n)return Zf.call(this,a,b);var c=this.ha<<3;if(b>=c||b<-c)a=tf(this,this.Ub,this.yb+(b>>(2==this.ha?4:5))*this.ha);b=1<<(b&(2==this.ha?15:31));a&b?df(this):ef(this);this.A-=8;return a&~b} -function dg(a,b){if(this.P===n)return $f.call(this,a,b);var c=this.ha<<3;if(b>=c||b<-c)a=tf(this,this.Ub,this.yb+(b>>(2==this.ha?4:5))*this.ha);b=1<<(b&(2==this.ha?15:31));a&b?df(this):ef(this);this.A-=8;return a|b}function eg(a,b){var c=this.za.ea,d=v(this),e=this.za.ha;null!=Bd(this,a,b,!0)&&(yf(this,c,e),yf(this,d,e))}function fg(a,b){We(this,a,b,a-b|0,191,!0);this.A-=this.aa===n?this.P===n?this.B.fc:this.B.fg:this.B.Nb;this.W|=2;return a} +function dg(a,b){if(this.P===n)return $f.call(this,a,b);var c=this.ha<<3;if(b>=c||b<-c)a=tf(this,this.Ub,this.yb+(b>>(2==this.ha?4:5))*this.ha);b=1<<(b&(2==this.ha?15:31));a&b?df(this):ef(this);this.A-=8;return a|b}function eg(a,b){var c=this.Aa.ea,d=v(this),e=this.ha;null!=Bd(this,a,b,!0)&&(yf(this,c,e),yf(this,d,e))}function fg(a,b){We(this,a,b,a-b|0,191,!0);this.A-=this.aa===n?this.P===n?this.B.fc:this.B.fg:this.B.Nb;this.W|=2;return a} function gg(a,b){We(this,a,b,a-b|0,this.Na|63,!0);this.A-=this.aa===n?this.P===n?this.B.fc:this.B.fg:this.B.Nb;this.W|=2;return a}function hg(a){var b=a-1|0;We(this,a,1,b,this.Na|62,!0);this.A-=2;return a&~this.C|b&this.C}function ig(a,b){var c=a[1]-b[1];c||(c=a[0]-b[0]);return c} function jg(a,b,c){this.Ja=!1;if((c>>>=0)&&!(c<=b>>>0)){var d=0,e=1;c=[c>>>0,0];for(a=[a>>>0,b>>>0];0>>=0,b[1]++);e+=e}do 0<=ig(a,c)&&(b=a,g=c,b[0]-=g[0],b[1]-=g[1],0>b[0]&&(b[0]>>>=0,b[1]--),d+=e),b=c,b[0]>>>=1,b[1]&1&&(b[0]=(b[0]|2147483648)>>>0),b[1]>>>=1,e>>>=1;while(e);this.qa=d;this.Ma=a[0];this.Ja=!0}}function kg(a){return a} function lg(a,b){a=this.M();var c=(b<<16>>16)*a|0;32767c?(df(this),ff(this)):(ef(this),gf(this));this.A-=this.P===n?21:24;return c&65535}function mg(a,b){var c,d;a=this.Pa();2==this.ha?(d=(b<<16>>16)*(a<<16>>16)|0,c=32767d):(d=b*a,c=2147483647d);c?(df(this),ff(this)):(ef(this),gf(this));d&=this.C;this.A-=this.P===n?21:24;return d} function ng(a,b){var c=(a<<16>>16)*(b<<16>>16)|0;32767c?(df(this),ff(this)):(ef(this),gf(this));this.A-=this.P===n?9:12;return c&65535}function og(a,b){var c=a*b;2147483647c?(df(this),ff(this)):(ef(this),gf(this));this.A-=this.P===n?9:12;return c|0}function pg(a){var b=a+1|0;We(this,a,1,b,this.Na|62);this.A-=2;return a&~this.C|b&this.C} -function Kf(a,b,c){this.A-=this.B.bi+c;c=zd(this);var d=this.za.ea,e=v(this);a=this.za.kj(a);if(a!==n){var g=this.za.Xg;yf(this,c,g);yf(this,d,g);yf(this,e,g);null!=b&&yf(this,b,g);this.nb=-1;rd(this);this.Aa=a;this.oe=this.za.Fa+this.za.Va|0;this.sa=this.za.Rb}}function qg(a,b){this.A-=14+(this.P===n?0:2);lf(this);this.Ha.load(b)!==n&&this.Ha.Bc>=this.sa&&this.Ha.Bc>=(b&3)&&(of(this),a=this.Ha.zb&-256,2=this.sa)&&this.Ha.Bc>=(b&3))return of(this),this.Ha.Va;lf(this);return a} -function yg(a,b){if(this.P===n)return ie.call(this),a;ld(this,this.va(this.P+this.ha));this.A-=this.B.re;return b}function zg(a,b){this.A-=this.aa===n?this.P===n?this.B.ri:this.B.pi:this.B.ni;return b}function Ag(a,b){return b}function Bg(){this.aa!==n&&Ke(this);return zg.call(this,0,this.Db)}function Cg(a,b){var c=b&65535,d=b>>>16,e=a&65535,g=a>>>16,h=c*e,e=(h>>>16)+d*e,m=e>>>16,e=(e&65535)+c*g;this.Ja=!0;this.qa=e<<16|h&65535;this.Ma=m+((e>>>16)+d*g)|0} -function Dg(a,b){this.A-=this.aa===n?this.P===n?this.B.fc:this.B.Nb:this.B.vc;return cf(this,a|b,128)}function Eg(a,b){this.A-=this.aa===n?this.P===n?this.B.fc:this.B.Nb:this.B.vc;return cf(this,a|b,this.Na)}function Fg(a){this.La=this.ja;var b=kd(this),c=kd(this);a&&t(this,u(this)+a);Bd(this,b,c,!1)&&(a&&t(this,u(this)+a),Ae(this,this.xb),Ae(this,this.cb),80386<=this.ra&&(Ae(this,this.Ob),Ae(this,this.Pb)));2==a&&this.me&&Oe(this,this.Aa);this.La=n} +function Kf(a,b,c){this.A-=this.B.bi+c;c=vd(this);var d=this.Aa.ea,e=v(this);a=this.Aa.jj(a);if(a!==n){var g=this.Aa.Xg;yf(this,c,g);yf(this,d,g);yf(this,e,g);null!=b&&yf(this,b,g);this.ob=-1;rd(this);this.za=a;this.ne=this.Aa.Fa+this.Aa.Va|0;this.sa=this.Aa.Rb}}function qg(a,b){this.A-=14+(this.P===n?0:2);lf(this);this.Ha.load(b)!==n&&this.Ha.Bc>=this.sa&&this.Ha.Bc>=(b&3)&&(of(this),a=this.Ha.zb&-256,2=this.sa)&&this.Ha.Bc>=(b&3))return of(this),this.Ha.Va;lf(this);return a} +function yg(a,b){if(this.P===n)return ie.call(this),a;ld(this,this.va(this.P+this.ha));this.A-=this.B.qe;return b}function zg(a,b){this.A-=this.aa===n?this.P===n?this.B.ri:this.B.pi:this.B.ni;return b}function Ag(a,b){return b}function Bg(){this.aa!==n&&Ke(this);return zg.call(this,0,this.Db)}function Cg(a,b){var c=b&65535,d=b>>>16,e=a&65535,g=a>>>16,h=c*e,e=(h>>>16)+d*e,m=e>>>16,e=(e&65535)+c*g;this.Ja=!0;this.qa=e<<16|h&65535;this.Ma=m+((e>>>16)+d*g)|0} +function Dg(a,b){this.A-=this.aa===n?this.P===n?this.B.fc:this.B.Nb:this.B.vc;return cf(this,a|b,128)}function Eg(a,b){this.A-=this.aa===n?this.P===n?this.B.fc:this.B.Nb:this.B.vc;return cf(this,a|b,this.Na)}function Fg(a){this.La=this.ja;var b=kd(this),c=kd(this);a&&t(this,u(this)+a);Bd(this,b,c,!1)&&(a&&t(this,u(this)+a),Ae(this,this.xb),Ae(this,this.cb),80386<=this.ra&&(Ae(this,this.Ob),Ae(this,this.Pb)));2==a&&this.le&&Oe(this,this.za);this.La=n} function Gg(a,b){var c=a-b-jf(this)|0;We(this,a,b,c,191,!0);this.A-=this.aa===n?this.P===n?this.B.fc:this.B.Nb:this.B.vc;return c&255}function Hg(a,b){var c=a-b-jf(this)|0;We(this,a,b,c,this.Na|63,!0);this.A-=this.aa===n?this.P===n?this.B.fc:this.B.Nb:this.B.vc;return c&this.C}function Ig(a){this.W|=1;this.eb[this.ba()].call(this,a);this.A-=this.P===n?4:5}function Jg(){return bf(this)?1:0}function Kg(){return Xe(this)?1:0}function Lg(){return Xe(this)?0:1}function Mg(){return $e(this)?1:0} function Ng(){return $e(this)?0:1}function Og(){return Xe(this)||$e(this)?1:0}function Pg(){return Xe(this)||$e(this)?0:1}function Qg(){return af(this)?1:0}function Rg(){return af(this)?0:1}function Sg(){return Ye(this)?1:0}function Tg(){return Ye(this)?0:1}function Ug(){return!af(this)!=!bf(this)?1:0}function Vg(){return!af(this)!=!bf(this)?0:1}function Wg(){return $e(this)||!af(this)!=!bf(this)?1:0}function Xg(){return $e(this)||!af(this)!=!bf(this)?0:1} function Yg(a,b,c){if(c){16>>16-c)&65535;cf(this,a,32768,d&32768)}return a}function Zg(a,b,c){if(c){var d=a<>>32-c;cf(this,a,-2147483648,d&-2147483648)}return a}function $g(a,b){return Yg.call(this,a,b,this.ba())}function ah(a,b){return Zg.call(this,a,b,this.ba())}function bh(a,b){return Yg.call(this,a,b,this.G&31)}function ch(a,b){return Zg.call(this,a,b,this.G&31)} -function dh(a,b,c){if(c){16>>c-1;a=(d>>>1|b<<16-c)&65535;cf(this,a,32768,d&1)}return a}function eh(a,b,c){if(c){var d=a>>>c-1;a=d>>>1|b<<32-c;cf(this,a,-2147483648,d&1)}return a}function fh(a,b){return dh.call(this,a,b,this.ba())}function gh(a,b){return eh.call(this,a,b,this.ba())}function xh(a,b){return dh.call(this,a,b,this.G&31)}function yh(a,b){return eh.call(this,a,b,this.G&31)} +function dh(a,b,c){if(c){16>>c-1;a=(d>>>1|b<<16-c)&65535;cf(this,a,32768,d&1)}return a}function eh(a,b,c){if(c){var d=a>>>c-1;a=d>>>1|b<<32-c;cf(this,a,-2147483648,d&1)}return a}function fh(a,b){return dh.call(this,a,b,this.ba())}function gh(a,b){return eh.call(this,a,b,this.ba())}function hh(a,b){return dh.call(this,a,b,this.G&31)}function yh(a,b){return eh.call(this,a,b,this.G&31)} function zh(a,b){var c=a-b|0;We(this,a,b,c,191,!0);this.A-=this.aa===n?this.P===n?this.B.fc:this.B.Nb:this.B.vc;return c&255}function Ah(a,b){var c=a-b|0;We(this,a,b,c,this.Na|63,!0);this.A-=this.aa===n?this.P===n?this.B.fc:this.B.Nb:this.B.vc;return c&this.C}function Bh(a,b){cf(this,a&b,128);this.A-=this.aa===n?this.P===n?this.B.Hg:this.B.$e:this.B.$e;this.W|=2;return a}function Ch(a,b){cf(this,a&b,this.Na);this.A-=this.aa===n?this.P===n?this.B.Hg:this.B.$e:this.B.$e;this.W|=2;return a} -function Dh(a,b){if(this.P===n){switch(this.le&7){case 0:this.F=this.F&-256|a;break;case 1:this.G=this.G&-256|a;break;case 2:this.H=this.H&-256|a;break;case 3:this.D=this.D&-256|a;break;case 4:this.F=this.F&-65281|a<<8;break;case 5:this.G=this.G&-65281|a<<8;break;case 6:this.H=this.H&-65281|a<<8;break;case 7:this.D=this.D&-65281|a<<8}this.A-=this.B.Jg}else this.aa=this.P,Q(this,a),this.A-=this.B.Ig;return b} -function Eh(a,b){if(this.P===n){switch(this.le&7){case 0:this.F=this.F&~this.C|a;break;case 1:this.G=this.G&~this.C|a;break;case 2:this.H=this.H&~this.C|a;break;case 3:this.D=this.D&~this.C|a;break;case 4:t(this,u(this)&~this.C|a);break;case 5:this.L=this.D&~this.C|a;break;case 6:this.K=this.K&~this.C|a;break;case 7:this.J=this.J&~this.C|a}this.A-=this.B.Jg}else this.aa=this.P,R(this,a),this.A-=this.B.Ig;return b} +function Dh(a,b){if(this.P===n){switch(this.ke&7){case 0:this.F=this.F&-256|a;break;case 1:this.G=this.G&-256|a;break;case 2:this.H=this.H&-256|a;break;case 3:this.D=this.D&-256|a;break;case 4:this.F=this.F&-65281|a<<8;break;case 5:this.G=this.G&-65281|a<<8;break;case 6:this.H=this.H&-65281|a<<8;break;case 7:this.D=this.D&-65281|a<<8}this.A-=this.B.Jg}else this.aa=this.P,Q(this,a),this.A-=this.B.Ig;return b} +function Eh(a,b){if(this.P===n){switch(this.ke&7){case 0:this.F=this.F&~this.C|a;break;case 1:this.G=this.G&~this.C|a;break;case 2:this.H=this.H&~this.C|a;break;case 3:this.D=this.D&~this.C|a;break;case 4:t(this,u(this)&~this.C|a);break;case 5:this.L=this.D&~this.C|a;break;case 6:this.K=this.K&~this.C|a;break;case 7:this.J=this.J&~this.C|a}this.A-=this.B.Jg}else this.aa=this.P,R(this,a),this.A-=this.B.Ig;return b} function Fh(a,b){var c=a^b;cf(this,c,128);this.A-=this.aa===n?this.P===n?this.B.fc:this.B.Nb:this.B.vc;return c}function Gh(a,b){this.A-=this.aa===n?this.P===n?this.B.fc:this.B.Nb:this.B.vc;return cf(this,a^b,this.Na)}function Hh(a){p.call(this,13,0);return a}function fe(a){p.call(this,6);return a}function Ih(a){ie.call(this);return a}function Jh(){p.call(this,0,null,!1,2)}function Kh(){this.A-=this.P===n?2:this.B.Ei;return 1} function Lh(){var a=this.G&255;this.A-=(this.P===n?this.B.Ag:this.B.zg)+(a<this.nb?(D(this,this.Ea-this.za.Fa),this.La!=n&&(t(this,this.jb&~this.xa.Ga|this.La-this.xa.Fa),this.La=n),e=!0):8!=this.nb?(b=0,a=8,e=!0):(a=-1,b=0,ue(this),c=!1)):D(this,this.Ea-this.za.Fa);var g=a,h=b,m=32,q=rf(this,this.Aa);204!=q||this.Sd||(c=!1);this.ca&131072&&(6==g&&99==q||13==g&&205==q)&&(c=!1);14==g&&207==q&&(c=!0);!1===c&&(m|=1);983040<=this.Aa&&1048575>=this.Aa&&(c=!1);this.ta(m|-2147483648)&&(c=!0);if(this.ta(m)||c){var r=this.oa.Eb, -g="Fault "+fa(g)+(null!=h?" ("+ga(h)+")":"")+" on opcode "+fa(q);c&&r&&(g+=" (blocked by PCjs Debugger)");this.Ca(g,c||m,!0)?c&&(c=r,this.ga.Xb()):(this.Ta(g),this.Xb())}c&&(e=!1);if(e)throw this.nb=a,Kf.call(this,a,b,d||0),this.Ea=this.Aa,this.W=1==a?this.W|8192:this.W|4096,a;}function we(a,b,c){this.de=a;a=0;b&&(a|=1);c&&(a|=2);3==this.sa&&(a|=4);p.call(this,14,a)}function ge(){this.kd[this.ba()].call(this)}function je(){sd(this,u(this)&this.C);this.A-=this.B.Cc} +function p(a,b,c,d){var e=null;this.oa.Dd?80186<=this.ra&&(0>this.ob?(rd(this),D(this,this.Ea-this.Aa.Fa),this.La!=n&&(t(this,this.jb&~this.wa.Ga|this.La-this.wa.Fa),this.La=n),e=!0):8!=this.ob?(b=0,a=8,e=!0):(a=-1,b=0,ue(this),c=!1)):(rd(this),D(this,this.Ea-this.Aa.Fa));var g=a,h=b,m=32,q=rf(this,this.za);204!=q||this.Rd||(c=!1);this.ca&131072&&(6==g&&99==q||13==g&&205==q)&&(c=!1);14==g&&207==q&&(c=!0);!1===c&&(m|=1);983040<=this.za&&1048575>=this.za&&(c=!1);this.ta(m|-2147483648)&&(c=!0);if(this.ta(m)|| +c){var r=this.oa.Eb,g="Fault "+fa(g)+(null!=h?" ("+ga(h)+")":"")+" on opcode "+fa(q);c&&r&&(g+=" (blocked by PCjs Debugger)");this.Ca(g,c||m,!0)?c&&(c=r,this.ga.Xb()):(this.Ta(g),this.Xb())}c&&(e=!1);if(e)throw this.ob=a,Kf.call(this,a,b,d||0),this.Ea=this.za,this.W=1==a?this.W|8192:this.W|4096,a;}function we(a,b,c){this.ce=a;a=0;b&&(a|=1);c&&(a|=2);3==this.sa&&(a|=4);p.call(this,14,a)}function ge(){this.kd[this.ba()].call(this)}function je(){sd(this,u(this)&this.C);this.A-=this.B.Cc} function Md(){var a=u(this)&this.C;sd(this,this.F&this.C);sd(this,this.G&this.C);sd(this,this.H&this.C);sd(this,this.D&this.C);sd(this,a);sd(this,this.L&this.C);sd(this,this.K&this.C);sd(this,this.J&this.C);this.A-=this.B.yi}function Nd(){this.J=this.J&~this.C|kd(this);this.K=this.K&~this.C|kd(this);this.L=this.L&~this.C|kd(this);t(this,u(this)+this.ha);this.D=this.D&~this.C|kd(this);this.H=this.H&~this.C|kd(this);this.G=this.G&~this.C|kd(this);this.F=this.F&~this.C|kd(this);this.A-=this.B.wi} -function Od(){this.fa[this.ba()].call(this,Uf)}function pe(){!(this.mb&1)||this.ca&131072?p.call(this,6):this.Da[this.ba()].call(this,Tf)}function qe(){this.W|=20;this.R=this.S=this.Ob;this.A-=this.B.Wc}function re(){this.W|=20;this.R=this.S=this.Pb;this.A-=this.B.Wc}function se(){this.W|=1024;this.Y&1024||(this.ha^=6,this.C^=-65536,Le(this));this.A-=this.B.Wc}function te(){this.W|=2048;this.Y&2048||(this.Zc^=6,this.Ga^=-65536,Be(this));this.A-=this.B.Wc} +function Od(){this.fa[this.ba()].call(this,Uf)}function pe(){!(this.nb&1)||this.ca&131072?p.call(this,6):this.Da[this.ba()].call(this,Tf)}function qe(){this.W|=20;this.R=this.S=this.Ob;this.A-=this.B.Vc}function re(){this.W|=20;this.R=this.S=this.Pb;this.A-=this.B.Vc}function se(){this.W|=1024;this.Y&1024||(this.ha^=6,this.C^=-65536,Le(this));this.A-=this.B.Vc}function te(){this.W|=2048;this.Y&2048||(this.Yc^=6,this.Ga^=-65536,Be(this));this.A-=this.B.Vc} function Pd(){sd(this,this.Pa());this.A-=this.B.Cc}function Qd(){this.fa[this.ba()].call(this,mg)}function Rd(){sd(this,this.M());this.A-=this.B.Cc}function Sd(){this.fa[this.ba()].call(this,lg)} -function Td(){var a=1,b=0,c=this.Ga,d=5;this.Y&192&&(a=this.G&c,b=1,this.Y&256&&(d=4));if(a--){var e=this.H&65535;qf(this,e,1,!0)&&(e=hc(this.na,e,1,this.Aa-b-1),this.rc(this.cb.sc(this.J&c,1),e),this.W&4096||(this.J=this.J&~c|this.J+(this.ca&1024?-1:1)&c,this.G=this.G&~c|this.G-b&c,this.A-=d,a&&(this.Aa=this.Ea,this.W|=256)))}} -function Ud(){var a=1,b=0,c=this.Ga,d=5;this.Y&192&&(a=this.G&c,b=1,this.Y&256&&(d=4));if(a--){var e=this.H&65535;qf(this,e,this.ha,!0)&&(e=hc(this.na,e,this.ha,this.Aa-b-1),this.zc(this.cb.sc(this.J&c,this.ha),e),this.W&4096||(this.J=this.J&~c|this.J+(this.ca&1024?-this.ha:this.ha)&c,this.G=this.G&~c|this.G-b&c,this.A-=d,a&&(this.Aa=this.Ea,this.W|=256)))}} -function Vd(){var a=1,b=0,c=this.Ga,d=5;this.Y&192&&(a=this.G&c,b=1,this.Y&256&&(d=4));if(a--){var e=this.H&65535;if(qf(this,e,1,!1)){var g=this.Wa(this.xb.Ac(this.K&c,1));this.W&4096||(lc(this.na,e,1,g,this.Aa-b-1),this.K=this.K&~c|this.K+(this.ca&1024?-1:1)&c,this.G=this.G&~c|this.G-b&c,this.A-=d,a&&(this.Aa=this.Ea,this.W|=256))}}} -function Wd(){var a=1,b=0,c=this.Ga,d=5;this.Y&192&&(a=this.G&c,b=1,this.Y&256&&(d=4));if(a--){var e=qd(this,this.xb,this.K&c);if(!(this.W&4096)){var g=this.H&65535;qf(this,g,this.ha,!1)&&(lc(this.na,g,this.ha,e,this.Aa-b-1),this.K=this.K&~c|this.K+(this.ca&1024?-this.ha:this.ha)&c,this.G=this.G&~c|this.G-b&c,this.A-=d,a&&(this.Aa=this.Ea,this.W|=256))}}}function Ph(){var a=this.M();bf(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab} +function Td(){var a=1,b=0,c=this.Ga,d=5;this.Y&192&&(a=this.G&c,b=1,this.Y&256&&(d=4));if(a--){var e=this.H&65535;qf(this,e,1,!0)&&(e=hc(this.na,e,1,this.za-b-1),this.rc(this.cb.sc(this.J&c,1),e),this.W&4096||(this.J=this.J&~c|this.J+(this.ca&1024?-1:1)&c,this.G=this.G&~c|this.G-b&c,this.A-=d,a&&(this.za=this.Ea,this.W|=256)))}} +function Ud(){var a=1,b=0,c=this.Ga,d=5;this.Y&192&&(a=this.G&c,b=1,this.Y&256&&(d=4));if(a--){var e=this.H&65535;qf(this,e,this.ha,!0)&&(e=hc(this.na,e,this.ha,this.za-b-1),this.zc(this.cb.sc(this.J&c,this.ha),e),this.W&4096||(this.J=this.J&~c|this.J+(this.ca&1024?-this.ha:this.ha)&c,this.G=this.G&~c|this.G-b&c,this.A-=d,a&&(this.za=this.Ea,this.W|=256)))}} +function Vd(){var a=1,b=0,c=this.Ga,d=5;this.Y&192&&(a=this.G&c,b=1,this.Y&256&&(d=4));if(a--){var e=this.H&65535;if(qf(this,e,1,!1)){var g=this.Wa(this.xb.Ac(this.K&c,1));this.W&4096||(lc(this.na,e,1,g,this.za-b-1),this.K=this.K&~c|this.K+(this.ca&1024?-1:1)&c,this.G=this.G&~c|this.G-b&c,this.A-=d,a&&(this.za=this.Ea,this.W|=256))}}} +function Wd(){var a=1,b=0,c=this.Ga,d=5;this.Y&192&&(a=this.G&c,b=1,this.Y&256&&(d=4));if(a--){var e=qd(this,this.xb,this.K&c);if(!(this.W&4096)){var g=this.H&65535;qf(this,g,this.ha,!1)&&(lc(this.na,g,this.ha,e,this.za-b-1),this.K=this.K&~c|this.K+(this.ca&1024?-this.ha:this.ha)&c,this.G=this.G&~c|this.G-b&c,this.A-=d,a&&(this.za=this.Ea,this.W|=256))}}}function Ph(){var a=this.M();bf(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab} function Qh(){var a=this.M();bf(this)?this.A-=this.B.ab:(D(this,v(this)+a),this.A-=this.B.$a)}function Rh(){var a=this.M();Xe(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab}function Sh(){var a=this.M();Xe(this)?this.A-=this.B.ab:(D(this,v(this)+a),this.A-=this.B.$a)}function Th(){var a=this.M();$e(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab}function Uh(){var a=this.M();$e(this)?this.A-=this.B.ab:(D(this,v(this)+a),this.A-=this.B.$a)} function Vh(){var a=this.M();Xe(this)||$e(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab}function Wh(){var a=this.M();Xe(this)||$e(this)?this.A-=this.B.ab:(D(this,v(this)+a),this.A-=this.B.$a)}function Xh(){var a=this.M();af(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab}function Yh(){var a=this.M();af(this)?this.A-=this.B.ab:(D(this,v(this)+a),this.A-=this.B.$a)}function Zh(){var a=this.M();Ye(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab} function $h(){var a=this.M();Ye(this)?this.A-=this.B.ab:(D(this,v(this)+a),this.A-=this.B.$a)}function ai(){var a=this.M();!af(this)!=!bf(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab}function bi(){var a=this.M();!af(this)==!bf(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab}function ci(){var a=this.M();$e(this)||!af(this)!=!bf(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab} function di(){var a=this.M();$e(this)||!af(this)!=!bf(this)?this.A-=this.B.ab:(D(this,v(this)+a),this.A-=this.B.$a)}function ei(){this.Yb[this.ba()].call(this,fi,this.ba);this.A-=this.aa===n?1:this.B.xf}function ae(){this.Yb[this.ba()].call(this,gi,Mh)}function be(){this.Ua[this.ba()].call(this,2==this.ha?hi:ii,Mh)}function ji(){var a=wf(this),b=kd(this);D(this,b);a&&t(this,u(this)+a);this.A-=this.B.Di}function ki(){var a=kd(this);D(this,a);this.A-=this.B.Ai} -function ce(){var a=wf(this),b=this.ba()&31;this.A-=11;sd(this,this.L);var c=u(this)&this.C;if(0>8&255;9<(c&15)||Ze(this)?(c=c+6&15,d=d+1&255,a=b=1):a=b=0;this.F=this.F&-65536|d<<8|c;a?df(this):ef(this); -b?nf(this):kf(this);this.A-=this.B.ae},function(){this.eb[this.ba()].call(this,fg)},function(){this.Da[this.ba()].call(this,gg)},function(){this.Za[this.ba()].call(this,fg)},function(){this.fa[this.ba()].call(this,gg)},function(){fg.call(this,this.F&255,this.ba());this.A--},function(){gg.call(this,this.F&this.C,this.Pa());this.A--},function(){this.W|=20;this.R=this.S=this.xb;this.A-=this.B.Wc},function(){var a,b,c=this.F&255,d=this.F>>8&255;9<(c&15)||Ze(this)?(c=c-6&15,d=d-1&255,a=b=1):a=b=0;this.F= -this.F&-65536|d<<8|c;a?df(this):ef(this);b?nf(this):kf(this);this.A-=this.B.ae},function(){this.F=pg.call(this,this.F)},function(){this.G=pg.call(this,this.G)},function(){this.H=pg.call(this,this.H)},function(){this.D=pg.call(this,this.D)},function(){t(this,pg.call(this,u(this)))},function(){this.L=pg.call(this,this.L)},function(){this.K=pg.call(this,this.K)},function(){this.J=pg.call(this,this.J)},function(){this.F=hg.call(this,this.F)},function(){this.G=hg.call(this,this.G)},function(){this.H=hg.call(this, +function ce(){var a=wf(this),b=this.ba()&31;this.A-=11;sd(this,this.L);var c=u(this)&this.C;if(0>8&255;9<(c&15)||Ze(this)?(c=c+6&15,d=d+1&255,a=b=1):a=b=0;this.F=this.F&-65536|d<<8|c;a?df(this):ef(this); +b?nf(this):kf(this);this.A-=this.B.$d},function(){this.eb[this.ba()].call(this,fg)},function(){this.Da[this.ba()].call(this,gg)},function(){this.Za[this.ba()].call(this,fg)},function(){this.fa[this.ba()].call(this,gg)},function(){fg.call(this,this.F&255,this.ba());this.A--},function(){gg.call(this,this.F&this.C,this.Pa());this.A--},function(){this.W|=20;this.R=this.S=this.xb;this.A-=this.B.Vc},function(){var a,b,c=this.F&255,d=this.F>>8&255;9<(c&15)||Ze(this)?(c=c-6&15,d=d-1&255,a=b=1):a=b=0;this.F= +this.F&-65536|d<<8|c;a?df(this):ef(this);b?nf(this):kf(this);this.A-=this.B.$d},function(){this.F=pg.call(this,this.F)},function(){this.G=pg.call(this,this.G)},function(){this.H=pg.call(this,this.H)},function(){this.D=pg.call(this,this.D)},function(){t(this,pg.call(this,u(this)))},function(){this.L=pg.call(this,this.L)},function(){this.K=pg.call(this,this.K)},function(){this.J=pg.call(this,this.J)},function(){this.F=hg.call(this,this.F)},function(){this.G=hg.call(this,this.G)},function(){this.H=hg.call(this, this.H)},function(){this.D=hg.call(this,this.D)},function(){t(this,hg.call(this,u(this)))},function(){this.L=hg.call(this,this.L)},function(){this.K=hg.call(this,this.K)},function(){this.J=hg.call(this,this.J)},function(){sd(this,this.F&this.C);this.A-=this.B.Cc},function(){sd(this,this.G&this.C);this.A-=this.B.Cc},function(){sd(this,this.H&this.C);this.A-=this.B.Cc},function(){sd(this,this.D&this.C);this.A-=this.B.Cc},function(){sd(this,u(this)-2&65535);this.A-=this.B.Cc},function(){sd(this,this.L& this.C);this.A-=this.B.Cc},function(){sd(this,this.K&this.C);this.A-=this.B.Cc},function(){sd(this,this.J&this.C);this.A-=this.B.Cc},function(){this.F=this.F&~this.C|kd(this);this.A-=this.B.gc},function(){this.G=this.G&~this.C|kd(this);this.A-=this.B.gc},function(){this.H=this.H&~this.C|kd(this);this.A-=this.B.gc},function(){this.D=this.D&~this.C|kd(this);this.A-=this.B.gc},function(){t(this,u(this)&~this.C|kd(this));this.A-=this.B.gc},function(){this.L=this.L&~this.C|kd(this);this.A-=this.B.gc}, -function(){this.K=this.K&~this.C|kd(this);this.A-=this.B.gc},function(){this.J=this.J&~this.C|kd(this);this.A-=this.B.gc},Ph,Qh,Rh,Sh,Th,Uh,Vh,Wh,Xh,Yh,Zh,$h,ai,bi,ci,di,Ph,Qh,Rh,Sh,Th,Uh,Vh,Wh,Xh,Yh,Zh,$h,ai,bi,ci,di,ei,function(){this.Ua[this.ba()].call(this,pi,this.Pa);this.A-=this.aa===n?1:this.B.xf},ei,function(){this.Ua[this.ba()].call(this,pi,this.M);this.A-=this.aa===n?1:this.B.xf},function(){this.eb[this.ba()].call(this,Bh)},function(){this.Da[this.ba()].call(this,Ch)},function(){this.Za[this.le= -this.ba()].call(this,Dh)},function(){this.fa[this.le=this.ba()].call(this,Eh)},function(){this.W|=1;this.eb[this.ba()].call(this,zg)},function(){this.W|=1;this.Da[this.ba()].call(this,zg)},function(){this.Za[this.ba()].call(this,zg)},function(){this.fa[this.ba()].call(this,zg)},function(){var a=this.ba();switch((a&56)>>3){case 0:this.Db=this.cb.ea;break;case 1:this.Db=this.za.ea;break;case 2:this.Db=this.xa.ea;break;case 3:this.Db=this.xb.ea;break;case 4:if(80386<=this.ra){this.Db=this.Ob.ea;break}p.call(this, +function(){this.K=this.K&~this.C|kd(this);this.A-=this.B.gc},function(){this.J=this.J&~this.C|kd(this);this.A-=this.B.gc},Ph,Qh,Rh,Sh,Th,Uh,Vh,Wh,Xh,Yh,Zh,$h,ai,bi,ci,di,Ph,Qh,Rh,Sh,Th,Uh,Vh,Wh,Xh,Yh,Zh,$h,ai,bi,ci,di,ei,function(){this.Ua[this.ba()].call(this,pi,this.Pa);this.A-=this.aa===n?1:this.B.xf},ei,function(){this.Ua[this.ba()].call(this,pi,this.M);this.A-=this.aa===n?1:this.B.xf},function(){this.eb[this.ba()].call(this,Bh)},function(){this.Da[this.ba()].call(this,Ch)},function(){this.Za[this.ke= +this.ba()].call(this,Dh)},function(){this.fa[this.ke=this.ba()].call(this,Eh)},function(){this.W|=1;this.eb[this.ba()].call(this,zg)},function(){this.W|=1;this.Da[this.ba()].call(this,zg)},function(){this.Za[this.ba()].call(this,zg)},function(){this.fa[this.ba()].call(this,zg)},function(){var a=this.ba();switch((a&56)>>3){case 0:this.Db=this.cb.ea;break;case 1:this.Db=this.Aa.ea;break;case 2:this.Db=this.wa.ea;break;case 3:this.Db=this.xb.ea;break;case 4:if(80386<=this.ra){this.Db=this.Ob.ea;break}p.call(this, 6);return;case 5:if(80386<=this.ra){this.Db=this.Pb.ea;break}default:p.call(this,6);return}this.W|=1;this.Da[a].call(this,Bg)},function(){this.W|=1;this.R=this.S=this.bh;this.fa[this.ba()].call(this,tg)},function(){var a,b;b=this.ba();var c=(b&56)>>3;switch(c){case 0:a=this.F;break;case 2:a=this.H;break;case 3:a=this.D;break;default:if(80286==this.ra||80386==this.ra&&4!=c&&5!=c){p.call(this,6);return}switch(c){case 1:a=this.G;break;case 4:a=u(this);break;case 5:a=this.L;break;case 6:a=this.K;break; case 7:a=this.J}}this.fa[b].call(this,zg);switch(c){case 0:b=this.F;this.F=a;ud(this,b);break;case 1:b=this.G;this.G=a;Ue(this,b);break;case 2:b=this.H;this.H=a;ld(this,b);break;case 3:b=this.D;this.D=a;td(this,b);break;case 4:b=u(this);t(this,a);80386<=this.ra?this.Ob.load(b):ud(this,b);break;case 5:b=this.L;this.L=a;80386<=this.ra?this.Pb.load(b):Ue(this,b);break;case 6:b=this.K;this.K=a;ld(this,b);break;case 7:b=this.J,this.J=a,td(this,b)}},function(){this.W|=1;this.Db=kd(this);this.Ua[this.ba()].call(this, qi,Oh)},function(){this.A-=3},function(){var a=this.F;this.F=this.F&~this.C|this.G&this.C;this.G=this.G&~this.C|a&this.C;this.A-=3},function(){var a=this.F;this.F=this.F&~this.C|this.H&this.C;this.H=this.H&~this.C|a&this.C;this.A-=3},function(){var a=this.F;this.F=this.F&~this.C|this.D&this.C;this.D=this.D&~this.C|a&this.C;this.A-=3},function(){var a=this.F,b=u(this);this.F=this.F&~this.C|b&this.C;t(this,b&~this.C|a&this.C);this.A-=3},function(){var a=this.F;this.F=this.F&~this.C|this.L&this.C;this.L= this.L&~this.C|a&this.C;this.A-=3},function(){var a=this.F;this.F=this.F&~this.C|this.K&this.C;this.K=this.K&~this.C|a&this.C;this.A-=3},function(){var a=this.F;this.F=this.F&~this.C|this.J&this.C;this.J=this.J&~this.C|a&this.C;this.A-=3},function(){this.F=2==this.ha?this.F&-65536|this.F<<24>>24&65535:this.F<<16>>16;this.A-=2},function(){this.H=2==this.ha?this.H&-65536|(this.F&32768?65535:0):this.F&-2147483648?-1:0;this.A-=this.B.Jh},function(){eg.call(this,this.Pa(),wf(this));this.A-=this.B.Mh}, -function(){this.Ca("WAIT not implemented");this.A--},function(){var a=zd(this);a&131072&&3>this.bb?p.call(this,13,0):(sd(this,a&-196609),this.A-=this.B.Cc)},function(){if(this.ca&131072&&3>this.bb)p.call(this,13,0);else{var a=kd(this),a=a&65535|this.ca&-65536;Ad(this,a);this.A-=this.B.gc}},function(){var a=this.F>>8&255;a&1?df(this):ef(this);a&4?(this.resultType&=-3,this.ca|=4):(this.resultType&=-3,this.ca&=-5);a&16?nf(this):kf(this);a&64?of(this):lf(this);a&128?(this.resultType&=-17,this.ca|=128): -(this.resultType&=-17,this.ca&=-129);this.A-=this.B.Vb},function(){this.F=this.F&-65281|(zd(this)&213)<<8;this.A-=this.B.Vb},function(){var a=this.F&-256,b;b=S(this);b=this.Wa(this.R.Ac(b,1));this.F=a|b;this.A-=this.B.pg},function(){this.F=this.F&~this.C|qd(this,this.R,S(this));this.A-=this.B.pg},function(){var a=S(this),b=this.F;this.rc(this.R.sc(a,1),b);this.A-=this.B.qg},function(){var a=S(this),b=this.F;this.zc(this.R.sc(a,this.ha),b);this.A-=this.B.qg},function(){var a=1,b=0,c=this.Ga,d=this.B.rg; -this.Y&192&&(a=this.G&c,b=1,d=this.B.tg,this.Y&256||(this.A-=this.B.sg));if(a--){var e=this.Wa(this.R.Ac(this.K&c,1));this.rc(this.cb.sc(this.J&c,1),e);this.W&4096||(e=this.ca&1024?-1:1,this.K=this.K&~c|this.K+e&c,this.J=this.J&~c|this.J+e&c,this.A-=d,this.G=this.G&~c|this.G-b&c,a&&(this.Aa=this.Ea,this.W|=256))}},function(){var a=1,b=0,c=this.Ga,d=this.B.rg;this.Y&192&&(a=this.G&c,b=1,d=this.B.tg,this.Y&256||(this.A-=this.B.sg));if(a--){var e=qd(this,this.R,this.K&c);this.zc(this.cb.sc(this.J&c, -this.ha),e);this.W&4096||(e=this.ca&1024?-this.ha:this.ha,this.K=this.K&~c|this.K+e&c,this.J=this.J&~c|this.J+e&c,this.A-=d,this.G=this.G&~c|this.G-b&c,a&&(this.Aa=this.Ea,this.W|=256))}},function(){var a=1,b=0,c=this.Ga,d=this.B.cg;this.Y&192&&(a=this.G&c,b=1,d=this.B.eg,this.Y&256||(this.A-=this.B.dg));if(a--){var e=sf(this,this.R,this.K&c),g=uf(this,this.cb,this.J&c);this.W&4096||(fg.call(this,e,g),e=this.ca&1024?-1:1,this.K=this.K&~c|this.K+e&c,this.J=this.J&~c|this.J+e&c,this.G=this.G&~c|this.G- -b&c,this.A-=d-this.B.Nb,a&&$e(this)==(this.Y&64)&&(this.Aa=this.Ea,this.W|=256))}},function(){var a=1,b=0,c=this.Ga,d=this.B.cg;this.Y&192&&(a=this.G&c,b=1,d=this.B.eg,this.Y&256||(this.A-=this.B.dg));if(a--){var e=tf(this,this.R,this.K&c),g=vf(this,this.cb,this.J&c);this.W&4096||(gg.call(this,e,g),e=this.ca&1024?-this.ha:this.ha,this.K=this.K&~c|this.K+e&c,this.J=this.J&~c|this.J+e&c,this.G=this.G&~c|this.G-b&c,this.A-=d-this.B.Nb,a&&$e(this)==(this.Y&64)&&(this.Aa=this.Ea,this.W|=256))}},function(){cf(this, -this.F&this.ba(),128);this.A-=this.B.ae},function(){cf(this,this.F&this.Pa(),this.Na);this.A-=this.B.ae},function(){var a=1,b=0,c=this.Ga,d=this.B.Cg;this.Y&192&&(a=this.G&c,b=1,d=this.B.Eg,this.Y&256||(this.A-=this.B.Dg));if(a--){var e=this.F;this.rc(this.cb.sc(this.J&c,1),e);this.W&4096||(this.J=this.J&~c|this.J+(this.ca&1024?-1:1)&c,this.G=this.G&~c|this.G-b&c,this.A-=d,a&&(this.Aa=this.Ea,this.W|=256))}},function(){var a=1,b=0,c=this.Ga,d=this.B.Cg;this.Y&192&&(a=this.G&c,b=1,d=this.B.Eg,this.Y& -256||(this.A-=this.B.Dg));if(a--){var e=this.F;this.zc(this.cb.sc(this.J&c,this.ha),e);this.W&4096||(this.J=this.J&~c|this.J+(this.ca&1024?-this.ha:this.ha)&c,this.G=this.G&~c|this.G-b&c,this.A-=d,a&&(this.Aa=this.Ea,this.W|=256))}},function(){var a=1,b=0,c=this.Ga,d=this.B.jg;this.Y&192&&(a=this.G&c,b=1,d=this.B.lg,this.Y&256||(this.A-=this.B.kg));if(a--){var e=this.Wa(this.R.Ac(this.K&c,1));this.W&4096||(this.F=this.F&-256|e,this.K=this.K&~c|this.K+(this.ca&1024?-1:1)&c,this.G=this.G&~c|this.G- -b&c,this.A-=d,a&&(this.Aa=this.Ea,this.W|=256))}},function(){var a=1,b=0,c=this.Ga,d=this.B.jg;this.Y&192&&(a=this.G&c,b=1,d=this.B.lg,this.Y&256||(this.A-=this.B.kg));if(a--){var e=qd(this,this.R,this.K&c);this.W&4096||(this.F=this.F&~this.C|e,this.K=this.K&~c|this.K+(this.ca&1024?-this.ha:this.ha)&c,this.G=this.G&~c|this.G-b&c,this.A-=d,a&&(this.Aa=this.Ea,this.W|=256))}},function(){var a=1,b=0,c=this.Ga,d=this.B.wg;this.Y&192&&(a=this.G&c,b=1,d=this.B.yg,this.Y&256||(this.A-=this.B.xg));a--&&(fg.call(this, -this.F&255,uf(this,this.cb,this.J&c)),this.W&4096||(this.J=this.J&~c|this.J+(this.ca&1024?-1:1)&c,this.G=this.G&~c|this.G-b&c,this.A-=d-this.B.Nb,a&&$e(this)==(this.Y&64)&&(this.Aa=this.Ea,this.W|=256)))},function(){var a=1,b=0,c=this.Ga,d=this.B.wg;this.Y&192&&(a=this.G&c,b=1,d=this.B.yg,this.Y&256||(this.A-=this.B.xg));a--&&(gg.call(this,this.F&this.C,vf(this,this.cb,this.J&c)),this.W&4096||(this.J=this.J&~c|this.J+(this.ca&1024?-this.ha:this.ha)&c,this.G=this.G&~c|this.G-b&c,this.A-=d-this.B.Nb, -a&&$e(this)==(this.Y&64)&&(this.Aa=this.Ea,this.W|=256)))},function(){this.F=this.F&-256|this.ba();this.A-=this.B.Vb},function(){this.G=this.G&-256|this.ba();this.A-=this.B.Vb},function(){this.H=this.H&-256|this.ba();this.A-=this.B.Vb},function(){this.D=this.D&-256|this.ba();this.A-=this.B.Vb},function(){this.F=this.F&-65281|this.ba()<<8;this.A-=this.B.Vb},function(){this.G=this.G&-65281|this.ba()<<8;this.A-=this.B.Vb},function(){this.H=this.H&-65281|this.ba()<<8;this.A-=this.B.Vb},function(){this.D= +function(){this.Ca("WAIT not implemented");this.A--},function(){var a=vd(this);a&131072&&3>this.bb?p.call(this,13,0):(sd(this,a&-196609),this.A-=this.B.Cc)},function(){if(this.ca&131072&&3>this.bb)p.call(this,13,0);else{var a=kd(this),a=a&65535|this.ca&-65536;wd(this,a);this.A-=this.B.gc}},function(){var a=this.F>>8&255;a&1?df(this):ef(this);a&4?(this.resultType&=-3,this.ca|=4):(this.resultType&=-3,this.ca&=-5);a&16?nf(this):kf(this);a&64?of(this):lf(this);a&128?(this.resultType&=-17,this.ca|=128): +(this.resultType&=-17,this.ca&=-129);this.A-=this.B.Vb},function(){this.F=this.F&-65281|(vd(this)&213)<<8;this.A-=this.B.Vb},function(){var a=this.F&-256,b;b=S(this);b=this.Wa(this.R.Ac(b,1));this.F=a|b;this.A-=this.B.pg},function(){this.F=this.F&~this.C|qd(this,this.R,S(this));this.A-=this.B.pg},function(){var a=S(this),b=this.F;this.rc(this.R.sc(a,1),b);this.A-=this.B.qg},function(){var a=S(this),b=this.F;this.zc(this.R.sc(a,this.ha),b);this.A-=this.B.qg},function(){var a=1,b=0,c=this.Ga,d=this.B.rg; +this.Y&192&&(a=this.G&c,b=1,d=this.B.tg,this.Y&256||(this.A-=this.B.sg));if(a--){var e=this.Wa(this.R.Ac(this.K&c,1));this.rc(this.cb.sc(this.J&c,1),e);this.W&4096||(e=this.ca&1024?-1:1,this.K=this.K&~c|this.K+e&c,this.J=this.J&~c|this.J+e&c,this.A-=d,this.G=this.G&~c|this.G-b&c,a&&(this.za=this.Ea,this.W|=256))}},function(){var a=1,b=0,c=this.Ga,d=this.B.rg;this.Y&192&&(a=this.G&c,b=1,d=this.B.tg,this.Y&256||(this.A-=this.B.sg));if(a--){var e=qd(this,this.R,this.K&c);this.zc(this.cb.sc(this.J&c, +this.ha),e);this.W&4096||(e=this.ca&1024?-this.ha:this.ha,this.K=this.K&~c|this.K+e&c,this.J=this.J&~c|this.J+e&c,this.A-=d,this.G=this.G&~c|this.G-b&c,a&&(this.za=this.Ea,this.W|=256))}},function(){var a=1,b=0,c=this.Ga,d=this.B.cg;this.Y&192&&(a=this.G&c,b=1,d=this.B.eg,this.Y&256||(this.A-=this.B.dg));if(a--){var e=sf(this,this.R,this.K&c),g=uf(this,this.cb,this.J&c);this.W&4096||(fg.call(this,e,g),e=this.ca&1024?-1:1,this.K=this.K&~c|this.K+e&c,this.J=this.J&~c|this.J+e&c,this.G=this.G&~c|this.G- +b&c,this.A-=d-this.B.Nb,a&&$e(this)==(this.Y&64)&&(this.za=this.Ea,this.W|=256))}},function(){var a=1,b=0,c=this.Ga,d=this.B.cg;this.Y&192&&(a=this.G&c,b=1,d=this.B.eg,this.Y&256||(this.A-=this.B.dg));if(a--){var e=tf(this,this.R,this.K&c),g=vf(this,this.cb,this.J&c);this.W&4096||(gg.call(this,e,g),e=this.ca&1024?-this.ha:this.ha,this.K=this.K&~c|this.K+e&c,this.J=this.J&~c|this.J+e&c,this.G=this.G&~c|this.G-b&c,this.A-=d-this.B.Nb,a&&$e(this)==(this.Y&64)&&(this.za=this.Ea,this.W|=256))}},function(){cf(this, +this.F&this.ba(),128);this.A-=this.B.$d},function(){cf(this,this.F&this.Pa(),this.Na);this.A-=this.B.$d},function(){var a=1,b=0,c=this.Ga,d=this.B.Cg;this.Y&192&&(a=this.G&c,b=1,d=this.B.Eg,this.Y&256||(this.A-=this.B.Dg));if(a--){var e=this.F;this.rc(this.cb.sc(this.J&c,1),e);this.W&4096||(this.J=this.J&~c|this.J+(this.ca&1024?-1:1)&c,this.G=this.G&~c|this.G-b&c,this.A-=d,a&&(this.za=this.Ea,this.W|=256))}},function(){var a=1,b=0,c=this.Ga,d=this.B.Cg;this.Y&192&&(a=this.G&c,b=1,d=this.B.Eg,this.Y& +256||(this.A-=this.B.Dg));if(a--){var e=this.F;this.zc(this.cb.sc(this.J&c,this.ha),e);this.W&4096||(this.J=this.J&~c|this.J+(this.ca&1024?-this.ha:this.ha)&c,this.G=this.G&~c|this.G-b&c,this.A-=d,a&&(this.za=this.Ea,this.W|=256))}},function(){var a=1,b=0,c=this.Ga,d=this.B.jg;this.Y&192&&(a=this.G&c,b=1,d=this.B.lg,this.Y&256||(this.A-=this.B.kg));if(a--){var e=this.Wa(this.R.Ac(this.K&c,1));this.W&4096||(this.F=this.F&-256|e,this.K=this.K&~c|this.K+(this.ca&1024?-1:1)&c,this.G=this.G&~c|this.G- +b&c,this.A-=d,a&&(this.za=this.Ea,this.W|=256))}},function(){var a=1,b=0,c=this.Ga,d=this.B.jg;this.Y&192&&(a=this.G&c,b=1,d=this.B.lg,this.Y&256||(this.A-=this.B.kg));if(a--){var e=qd(this,this.R,this.K&c);this.W&4096||(this.F=this.F&~this.C|e,this.K=this.K&~c|this.K+(this.ca&1024?-this.ha:this.ha)&c,this.G=this.G&~c|this.G-b&c,this.A-=d,a&&(this.za=this.Ea,this.W|=256))}},function(){var a=1,b=0,c=this.Ga,d=this.B.wg;this.Y&192&&(a=this.G&c,b=1,d=this.B.yg,this.Y&256||(this.A-=this.B.xg));a--&&(fg.call(this, +this.F&255,uf(this,this.cb,this.J&c)),this.W&4096||(this.J=this.J&~c|this.J+(this.ca&1024?-1:1)&c,this.G=this.G&~c|this.G-b&c,this.A-=d-this.B.Nb,a&&$e(this)==(this.Y&64)&&(this.za=this.Ea,this.W|=256)))},function(){var a=1,b=0,c=this.Ga,d=this.B.wg;this.Y&192&&(a=this.G&c,b=1,d=this.B.yg,this.Y&256||(this.A-=this.B.xg));a--&&(gg.call(this,this.F&this.C,vf(this,this.cb,this.J&c)),this.W&4096||(this.J=this.J&~c|this.J+(this.ca&1024?-this.ha:this.ha)&c,this.G=this.G&~c|this.G-b&c,this.A-=d-this.B.Nb, +a&&$e(this)==(this.Y&64)&&(this.za=this.Ea,this.W|=256)))},function(){this.F=this.F&-256|this.ba();this.A-=this.B.Vb},function(){this.G=this.G&-256|this.ba();this.A-=this.B.Vb},function(){this.H=this.H&-256|this.ba();this.A-=this.B.Vb},function(){this.D=this.D&-256|this.ba();this.A-=this.B.Vb},function(){this.F=this.F&-65281|this.ba()<<8;this.A-=this.B.Vb},function(){this.G=this.G&-65281|this.ba()<<8;this.A-=this.B.Vb},function(){this.H=this.H&-65281|this.ba()<<8;this.A-=this.B.Vb},function(){this.D= this.D&-65281|this.ba()<<8;this.A-=this.B.Vb},function(){this.F=this.F&~this.C|this.Pa();this.A-=this.B.Vb},function(){this.G=this.G&~this.C|this.Pa();this.A-=this.B.Vb},function(){this.H=this.H&~this.C|this.Pa();this.A-=this.B.Vb},function(){this.D=this.D&~this.C|this.Pa();this.A-=this.B.Vb},function(){t(this,u(this)&~this.C|this.Pa());this.A-=this.B.Vb},function(){this.L=this.L&~this.C|this.Pa();this.A-=this.B.Vb},function(){this.K=this.K&~this.C|this.Pa();this.A-=this.B.Vb},function(){this.J=this.J& -~this.C|this.Pa();this.A-=this.B.Vb},ji,ki,ji,ki,function(){this.fa[this.ba()].call(this,ug)},function(){this.fa[this.ba()].call(this,sg)},function(){this.W|=1;this.Yb[this.ba()].call(this,ri,this.ba)},function(){this.W|=1;this.Ua[this.ba()].call(this,ri,this.Pa)},li,mi,li,mi,function(){this.ca&131072&&3>this.bb?p.call(this,13,0):(this.nb=-1,Kf.call(this,3,null,this.B.ci))},function(){var a=this.ba();if(this.ca&131072&&3>this.bb)p.call(this,13,0);else{var b;a:{b=this.je[a];if(void 0!==b)for(var c= -0;cthis.bb?p.call(this,13,0):(this.nb=-1,Kf.call(this,4,null,this.B.di)):this.A-=this.B.ei},function(){if(this.ca&131072&&3>this.bb)p.call(this,13,0);else{this.La=this.ja;this.A-=this.B.ai;if(this.mb&1&&this.ca&16384){var a=this.va(this.Ya.Fa+0);od(this.za,a,!1)}else{var a=this.sa,b=kd(this),c=kd(this),d=kd(this);if(this.ca& -131072)d=d&131071|this.ca&-131072;else if(d&131072){var e=kd(this),g=kd(this),h=kd(this),m=kd(this),q=kd(this),r=kd(this);pd(this,!0,!0);ld(this,g);t(this,e);ud(this,h);td(this,m);this.Ob.load(q);this.Pb.load(r)}null!=Bd(this,b,c,!1)&&(Ad(this,d,a),this.me&&Oe(this,this.Aa))}this.La=n}},function(){this.Yb[this.ba()].call(this,gi,Kh)},function(){this.Ua[this.ba()].call(this,2==this.ha?hi:ii,Kh)},function(){this.Yb[this.ba()].call(this,gi,Lh)},function(){this.Ua[this.ba()].call(this,2==this.ha?hi:ii, +~this.C|this.Pa();this.A-=this.B.Vb},ji,ki,ji,ki,function(){this.fa[this.ba()].call(this,ug)},function(){this.fa[this.ba()].call(this,sg)},function(){this.W|=1;this.Yb[this.ba()].call(this,ri,this.ba)},function(){this.W|=1;this.Ua[this.ba()].call(this,ri,this.Pa)},li,mi,li,mi,function(){this.ca&131072&&3>this.bb?p.call(this,13,0):(this.ob=-1,Kf.call(this,3,null,this.B.ci))},function(){var a=this.ba();if(this.ca&131072&&3>this.bb)p.call(this,13,0);else{var b;a:{b=this.ie[a];if(void 0!==b)for(var c= +0;cthis.bb?p.call(this,13,0):(this.ob=-1,Kf.call(this,4,null,this.B.di)):this.A-=this.B.ei},function(){if(this.ca&131072&&3>this.bb)p.call(this,13,0);else{this.La=this.ja;this.A-=this.B.ai;if(this.nb&1&&this.ca&16384){var a=this.va(this.Ya.Fa+0);md(this.Aa,a,!1)}else{var a=this.sa,b=kd(this),c=kd(this),d=kd(this);if(this.ca& +131072)d=d&131071|this.ca&-131072;else if(d&131072){var e=kd(this),g=kd(this),h=kd(this),m=kd(this),q=kd(this),r=kd(this);nd(this,!0,!0);ld(this,g);t(this,e);ud(this,h);td(this,m);this.Ob.load(q);this.Pb.load(r)}null!=Bd(this,b,c,!1)&&(wd(this,d,a),this.le&&Oe(this,this.za))}this.La=n}},function(){this.Yb[this.ba()].call(this,gi,Kh)},function(){this.Ua[this.ba()].call(this,2==this.ha?hi:ii,Kh)},function(){this.Yb[this.ba()].call(this,gi,Lh)},function(){this.Ua[this.ba()].call(this,2==this.ha?hi:ii, Lh)},function(){var a=this.ba();if(a){var b=this.F&255;this.F=this.F&-65536|b/a<<8|b%a;cf(this,this.F,128);this.A-=this.B.Gh}},function(){var a=this.ba();this.F=this.F&-65536|(this.F>>8&255)*a+this.F&255;cf(this,this.F,128);this.A-=this.B.Fh},function(){this.F=this.F&-256|(Xe(this)?255:0);this.A-=2},function(){this.F=this.F&-256|sf(this,this.R,this.D+(this.F&255)&65535);this.A-=this.B.Fi},ni,ni,ni,ni,ni,ni,ni,ni,function(){var a=this.M(),b=this.G-1&this.Ga;this.G=this.G&~this.Ga|b;b&&!$e(this)?(D(this, -v(this)+a),this.A-=this.B.li):this.A-=this.B.mg},function(){var a=this.M(),b=this.G-1&this.Ga;this.G=this.G&~this.Ga|b;b&&$e(this)?(D(this,v(this)+a),this.A-=this.B.ng):this.A-=this.B.og},function(){var a=this.M(),b=this.G-1&this.Ga;this.G=this.G&~this.Ga|b;b?(D(this,v(this)+a),this.A-=this.B.ki):this.A-=this.B.mg},function(){var a=this.M();this.G&this.Ga?this.A-=this.B.og:(D(this,v(this)+a),this.A-=this.B.ng)},function(){var a=this.ba();qf(this,a,1,!0)&&(this.F=this.F&-256|hc(this.na,a,1,this.Aa- -2)&255,this.A-=this.B.hg)},function(){var a=this.ba();qf(this,a,this.ha,!0)&&(this.F=this.F&~this.C|hc(this.na,a,this.ha,this.Aa-2)&this.C,this.A-=this.B.hg)},function(){var a=this.ba();qf(this,a,1,!1)&&(lc(this.na,a,1,this.F&255,this.Aa-2),this.A-=this.B.vg)},function(){var a=this.ba();qf(this,a,this.ha,!1)&&(lc(this.na,a,this.ha,this.F&this.C,this.Aa-2),this.A-=this.B.vg)},function(){var a=this.Pa(),b=v(this),a=b+a;sd(this,b);D(this,a);this.A-=this.B.Kh},function(){var a=this.Pa();D(this,v(this)+ -a);this.A-=this.B.ig},function(){Bd(this,this.Pa(),wf(this));this.A-=this.B.gi},function(){var a=this.M();D(this,v(this)+a);this.A-=this.B.ig},function(){var a=this.H&65535;qf(this,a,1,!0)&&(this.F=this.F&-256|hc(this.na,a,1,this.Aa-1)&255,this.A-=this.B.gg)},function(){var a=this.H&65535;qf(this,a,this.ha,!0)&&(this.F=this.F&~this.C|hc(this.na,a,this.ha,this.Aa-1)&this.C,this.A-=this.B.gg)},function(){var a=this.H&65535;qf(this,a,1,!1)&&(lc(this.na,a,1,this.F&255,this.Aa-1),this.A-=this.B.ug)},function(){var a= -this.H&65535;qf(this,a,2,!1)&&(lc(this.na,a,this.ha,this.F&this.C,this.Aa-1),this.A-=this.B.ug)},oi,oi,function(){this.W|=132;this.A-=this.B.Wc},function(){this.W|=68;this.A-=this.B.Wc},function(){this.ca&131072?p.call(this,13,0):(this.ua|=4,this.A-=2,this.ga&&this.ta(-2147483648)?(this.Aa=this.Aa+-1|0,this.Xb()):this.ca&512||(this.ga&&(this.Aa=this.Aa+-1|0),this.Xb()))},function(){Xe(this)?ef(this):df(this);this.A-=2},function(){this.Ja=!1;this.Yb[this.ba()].call(this,ti,Nh);this.Ja&&(this.F=this.F& +v(this)+a),this.A-=this.B.li):this.A-=this.B.mg},function(){var a=this.M(),b=this.G-1&this.Ga;this.G=this.G&~this.Ga|b;b&&$e(this)?(D(this,v(this)+a),this.A-=this.B.ng):this.A-=this.B.og},function(){var a=this.M(),b=this.G-1&this.Ga;this.G=this.G&~this.Ga|b;b?(D(this,v(this)+a),this.A-=this.B.ki):this.A-=this.B.mg},function(){var a=this.M();this.G&this.Ga?this.A-=this.B.og:(D(this,v(this)+a),this.A-=this.B.ng)},function(){var a=this.ba();qf(this,a,1,!0)&&(this.F=this.F&-256|hc(this.na,a,1,this.za- +2)&255,this.A-=this.B.hg)},function(){var a=this.ba();qf(this,a,this.ha,!0)&&(this.F=this.F&~this.C|hc(this.na,a,this.ha,this.za-2)&this.C,this.A-=this.B.hg)},function(){var a=this.ba();qf(this,a,1,!1)&&(lc(this.na,a,1,this.F&255,this.za-2),this.A-=this.B.vg)},function(){var a=this.ba();qf(this,a,this.ha,!1)&&(lc(this.na,a,this.ha,this.F&this.C,this.za-2),this.A-=this.B.vg)},function(){var a=this.Pa(),b=v(this),a=b+a;sd(this,b);D(this,a);this.A-=this.B.Kh},function(){var a=this.Pa();D(this,v(this)+ +a);this.A-=this.B.ig},function(){Bd(this,this.Pa(),wf(this));this.A-=this.B.gi},function(){var a=this.M();D(this,v(this)+a);this.A-=this.B.ig},function(){var a=this.H&65535;qf(this,a,1,!0)&&(this.F=this.F&-256|hc(this.na,a,1,this.za-1)&255,this.A-=this.B.gg)},function(){var a=this.H&65535;qf(this,a,this.ha,!0)&&(this.F=this.F&~this.C|hc(this.na,a,this.ha,this.za-1)&this.C,this.A-=this.B.gg)},function(){var a=this.H&65535;qf(this,a,1,!1)&&(lc(this.na,a,1,this.F&255,this.za-1),this.A-=this.B.ug)},function(){var a= +this.H&65535;qf(this,a,2,!1)&&(lc(this.na,a,this.ha,this.F&this.C,this.za-1),this.A-=this.B.ug)},oi,oi,function(){this.W|=132;this.A-=this.B.Vc},function(){this.W|=68;this.A-=this.B.Vc},function(){this.ca&131072?p.call(this,13,0):(this.ua|=4,this.A-=2,this.ga&&this.ta(-2147483648)?(this.za=this.za+-1|0,this.Xb()):this.ca&512||(this.ga&&(this.za=this.za+-1|0),this.Xb()))},function(){Xe(this)?ef(this):df(this);this.A-=2},function(){this.Ja=!1;this.Yb[this.ba()].call(this,ti,Nh);this.Ja&&(this.F=this.F& ~this.C|this.qa&this.C)},function(){this.Ja=!1;this.Ua[this.ba()].call(this,ui,Nh);this.Ja&&(this.F=this.F&~this.C|this.qa&this.C,this.H=this.H&~this.C|this.Ma&this.C)},function(){ef(this);this.A-=2},function(){df(this);this.A-=2},function(){this.sa>this.bb?p.call(this,13,0):(this.ca&=-513,this.A-=this.B.Ih)},function(){this.sa>this.bb?p.call(this,13,0):(this.ca|=512,this.W|=4,this.A-=2)},function(){this.ca&=-1025;this.A-=2},function(){this.ca|=1024;this.A-=2},function(){this.Yb[this.ba()].call(this, Id,Nh)},function(){this.Ua[this.ba()].call(this,Jd,Nh)}],fi=[Pf,Dg,Nf,Gg,Rf,zh,Fh,fg],pi=[Qf,Eg,Of,Hg,Sf,Ah,Gh,gg],qi=[function(a,b){this.A-=this.aa===n?this.B.gc:this.B.xi;return b},Hh,Hh,Hh,Hh,Hh,Hh,Hh],ri=[function(a,b){this.A-=this.aa===n?this.B.oi:this.B.mi;return b},Ih,Ih,Ih,Ih,Ih,Ih,Ih],gi=[function(a,b){var c=a,d=b&this.Ba;if(d){var e;(d&=7)?(e=a<>8-d)&255):e=a<<7;hf(this,c,e,128)}return c},function(a,b){var c=a,d=b&this.Ba;if(d){var e;(d&=7)?(e=a<<8-d,c=(a>>>d|e)&255):e=a; hf(this,c,e,128)}return c},function(a,b){var c=a,d=b&this.Ba;if(d){var e=jf(this);(d%=9)?(c=(a<>9-d)&255,e=a<>d|e<<8-d|a<<9-d)&255,e=a<<8-d):e<<=7;hf(this,c,e,128)}return c},function(a,b){var c=a,d=b&this.Ba;if(d){var e=0;8>>c-1,a=c>>>1&255,cf(this,a,128,c&1,a&128));return a}, @@ -221,18 +221,18 @@ this.B.Ph;this.W|=2;return a},function(a,b){if(!a)return Jh.call(this),a;var c=a n?this.B.Sh:this.B.Rh;this.W|=2;return a},function(a,b){if(2==this.ha){if(!a)return Jh.call(this),a;var c=a<<16>>16,d=(b=this.H<<16|this.F&65535)/c|0;if(d!=d<<16>>16||8086==this.ra&&-32768==d)return Jh.call(this),a;this.Ja=!0;this.qa=d&65535;this.Ma=b%c&65535}else{var c=this.F,d=this.H,e=a,g=!1,h=!1;0>e&&(e=-e|0,g=!g);0>d&&(c=-c|0,d=~d+(c?0:1)|0,h=!0,g=!g);jg.call(this,c,d,e);2147483647this.ra&&(b=a));sd(this, -b);this.A-=this.P===n?this.B.Cc:this.B.zi;this.W|=2;return a},Hh],he=Array(256);he[0]=function(){var a=this.ba();16>(a&56)&&(this.W|=1);this.Ua[a].call(this,this.Zg,Nh)};he[1]=function(){var a=this.ba();a&16||(this.W|=1);this.Ua[a].call(this,vi,Nh)};he[2]=function(){!(this.mb&1)||this.ca&131072?p.call(this,6):this.fa[this.ba()].call(this,qg)};he[3]=function(){!(this.mb&1)||this.ca&131072?p.call(this,6):this.fa[this.ba()].call(this,xg)}; -he[5]=function(){this.sa?p.call(this,13,0,!0):(pf(this,this.va(2054)),this.J=this.va(2086),this.K=this.va(2088),this.L=this.va(2090),this.D=this.va(2094),this.H=this.va(2096),this.G=this.va(2098),this.F=this.va(2100),jd(this.cb,2102,this.va(2084)),jd(this.za,2108,this.va(2082)),jd(this.xa,2114,this.va(2080)),jd(this.xb,2120,this.va(2078)),Ad(this,this.va(2072)),D(this,this.va(2074)),t(this,this.va(2092)),this.bd=this.va(2126)|this.Wa(2128)<<16,this.Rd=this.bd+this.va(2130),jd(this.Dc,2132,this.va(2076)), -this.cd=this.va(2138)|this.Wa(2140)<<16,this.Sd=this.cd+this.va(2142),jd(this.Ya,2144,this.va(2070)),this.A-=195)};he[6]=function(){this.sa?p.call(this,13,0):(this.mb&=-9,this.A-=2)};he[11]=Ld;he[166]=Ld;he[255]=Ld;var w=[];w[5]=Ld;w[7]=function(){this.sa?p.call(this,13,0,!0):(ie.call(this),this.A-=100)}; -w[32]=function(){if(this.sa)p.call(this,13,0);else{var a,b=this.ba();switch((b&56)>>3){case 0:a=this.mb;break;case 2:a=this.de;break;case 3:a=this.Kd;break;default:ie.call(this);return}ze(this,b&7,a);this.A-=6}};w[33]=function(){if(this.sa)p.call(this,13,0);else{var a=this.ba(),b=(a&56)>>3;4==b||5==b?ie.call(this):(ze(this,a&7,this.Oa[b]),this.A-=22)}}; -w[34]=function(){if(this.sa)p.call(this,13,0);else{var a=this.ba(),b=ye(this,a&7);switch((a&56)>>3){case 0:rg.call(this,b);this.A-=10;break;case 2:this.de=b;this.A-=4;break;case 3:Cd.call(this,b);this.A-=5;break;default:ie.call(this)}}};w[35]=function(){if(this.sa)p.call(this,13,0);else{var a=this.ba(),b=(a&56)>>3;4==b||5==b?ie.call(this):(a=ye(this,a&7),a!=this.Oa[b]&&(Pe(this,!1),this.Oa[b]=a,Pe(this,!0)),this.A-=4>b?22:14)}}; -w[36]=function(){if(this.sa)p.call(this,13,0);else{var a=this.ba(),b=(a&56)>>3;6>b?ie.call(this):(ze(this,a&7,this.se[b]),this.A-=12)}};w[38]=function(){if(this.sa)p.call(this,13,0);else{var a=this.ba(),b=(a&56)>>3;6>b?ie.call(this):(this.se[b]=ye(this,a&7),this.A-=12)}};w[128]=function(){var a=this.Pa();bf(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab};w[129]=function(){var a=this.Pa();bf(this)?this.A-=this.B.ab:(D(this,v(this)+a),this.A-=this.B.$a)}; +b);this.A-=this.P===n?this.B.Cc:this.B.zi;this.W|=2;return a},Hh],he=Array(256);he[0]=function(){var a=this.ba();16>(a&56)&&(this.W|=1);this.Ua[a].call(this,this.Zg,Nh)};he[1]=function(){var a=this.ba();a&16||(this.W|=1);this.Ua[a].call(this,vi,Nh)};he[2]=function(){!(this.nb&1)||this.ca&131072?p.call(this,6):this.fa[this.ba()].call(this,qg)};he[3]=function(){!(this.nb&1)||this.ca&131072?p.call(this,6):this.fa[this.ba()].call(this,xg)}; +he[5]=function(){this.sa?p.call(this,13,0,!0):(pf(this,this.va(2054)),this.J=this.va(2086),this.K=this.va(2088),this.L=this.va(2090),this.D=this.va(2094),this.H=this.va(2096),this.G=this.va(2098),this.F=this.va(2100),jd(this.cb,2102,this.va(2084)),jd(this.Aa,2108,this.va(2082)),jd(this.wa,2114,this.va(2080)),jd(this.xb,2120,this.va(2078)),wd(this,this.va(2072)),D(this,this.va(2074)),t(this,this.va(2092)),this.bd=this.va(2126)|this.Wa(2128)<<16,this.Qd=this.bd+this.va(2130),jd(this.Dc,2132,this.va(2076)), +this.cd=this.va(2138)|this.Wa(2140)<<16,this.Rd=this.cd+this.va(2142),jd(this.Ya,2144,this.va(2070)),this.A-=195)};he[6]=function(){this.sa?p.call(this,13,0):(this.nb&=-9,this.A-=2)};he[11]=Ld;he[166]=Ld;he[255]=Ld;var w=[];w[5]=Ld;w[7]=function(){this.sa?p.call(this,13,0,!0):(ie.call(this),this.A-=100)}; +w[32]=function(){if(this.sa)p.call(this,13,0);else{var a,b=this.ba();switch((b&56)>>3){case 0:a=this.nb;break;case 2:a=this.ce;break;case 3:a=this.Jd;break;default:ie.call(this);return}ze(this,b&7,a);this.A-=6}};w[33]=function(){if(this.sa)p.call(this,13,0);else{var a=this.ba(),b=(a&56)>>3;4==b||5==b?ie.call(this):(ze(this,a&7,this.Oa[b]),this.A-=22)}}; +w[34]=function(){if(this.sa)p.call(this,13,0);else{var a=this.ba(),b=ye(this,a&7);switch((a&56)>>3){case 0:rg.call(this,b);this.A-=10;break;case 2:this.ce=b;this.A-=4;break;case 3:Cd.call(this,b);this.A-=5;break;default:ie.call(this)}}};w[35]=function(){if(this.sa)p.call(this,13,0);else{var a=this.ba(),b=(a&56)>>3;4==b||5==b?ie.call(this):(a=ye(this,a&7),a!=this.Oa[b]&&(Pe(this,!1),this.Oa[b]=a,Pe(this,!0)),this.A-=4>b?22:14)}}; +w[36]=function(){if(this.sa)p.call(this,13,0);else{var a=this.ba(),b=(a&56)>>3;6>b?ie.call(this):(ze(this,a&7,this.re[b]),this.A-=12)}};w[38]=function(){if(this.sa)p.call(this,13,0);else{var a=this.ba(),b=(a&56)>>3;6>b?ie.call(this):(this.re[b]=ye(this,a&7),this.A-=12)}};w[128]=function(){var a=this.Pa();bf(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab};w[129]=function(){var a=this.Pa();bf(this)?this.A-=this.B.ab:(D(this,v(this)+a),this.A-=this.B.$a)}; w[130]=function(){var a=this.Pa();Xe(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab};w[131]=function(){var a=this.Pa();Xe(this)?this.A-=this.B.ab:(D(this,v(this)+a),this.A-=this.B.$a)};w[132]=function(){var a=this.Pa();$e(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab};w[133]=function(){var a=this.Pa();$e(this)?this.A-=this.B.ab:(D(this,v(this)+a),this.A-=this.B.$a)};w[134]=function(){var a=this.Pa();Xe(this)||$e(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab}; w[135]=function(){var a=this.Pa();Xe(this)||$e(this)?this.A-=this.B.ab:(D(this,v(this)+a),this.A-=this.B.$a)};w[136]=function(){var a=this.Pa();af(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab};w[137]=function(){var a=this.Pa();af(this)?this.A-=this.B.ab:(D(this,v(this)+a),this.A-=this.B.$a)};w[138]=function(){var a=this.Pa();Ye(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab};w[139]=function(){var a=this.Pa();Ye(this)?this.A-=this.B.ab:(D(this,v(this)+a),this.A-=this.B.$a)}; w[140]=function(){var a=this.Pa();!af(this)!=!bf(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab};w[141]=function(){var a=this.Pa();!af(this)==!bf(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab};w[142]=function(){var a=this.Pa();$e(this)||!af(this)!=!bf(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab};w[143]=function(){var a=this.Pa();$e(this)||!af(this)!=!bf(this)?this.A-=this.B.ab:(D(this,v(this)+a),this.A-=this.B.$a)};w[144]=function(){Ig.call(this,Jg)}; w[145]=function(){Ig.call(this,Jg)};w[146]=function(){Ig.call(this,Kg)};w[147]=function(){Ig.call(this,Lg)};w[148]=function(){Ig.call(this,Mg)};w[149]=function(){Ig.call(this,Ng)};w[150]=function(){Ig.call(this,Og)};w[151]=function(){Ig.call(this,Pg)};w[152]=function(){Ig.call(this,Qg)};w[153]=function(){Ig.call(this,Rg)};w[154]=function(){Ig.call(this,Sg)};w[155]=function(){Ig.call(this,Tg)};w[156]=function(){Ig.call(this,Ug)};w[157]=function(){Ig.call(this,Vg)};w[158]=function(){Ig.call(this,Wg)}; -w[159]=function(){Ig.call(this,Xg)};w[160]=function(){sd(this,this.Ob.ea);this.A-=this.B.be};w[161]=function(){this.La=this.ja;var a=kd(this);this.Ob.load(a);this.A-=this.B.gc;this.La=n};w[163]=function(){this.Da[this.ba()].call(this,ag);this.P!==n&&(this.A-=6)};w[164]=function(){this.Da[this.ba()].call(this,2==this.ha?$g:ah);this.A-=this.P===n?3:7};w[165]=function(){this.Da[this.ba()].call(this,2==this.ha?bh:ch);this.A-=this.P===n?3:7};w[168]=function(){sd(this,this.Pb.ea);this.A-=this.B.be}; -w[169]=function(){this.La=this.ja;var a=kd(this);this.Pb.load(a);this.A-=this.B.gc;this.La=n};w[171]=function(){this.Da[this.ba()].call(this,dg);this.P!==n&&(this.A-=5)};w[172]=function(){this.Da[this.ba()].call(this,2==this.ha?fh:gh);this.A-=this.P===n?3:7};w[173]=function(){this.Da[this.ba()].call(this,2==this.ha?xh:yh);this.A-=this.P===n?3:7};w[175]=function(){this.fa[this.ba()].call(this,2==this.ha?ng:og)};w[178]=function(){this.fa[this.ba()].call(this,yg)}; +w[159]=function(){Ig.call(this,Xg)};w[160]=function(){sd(this,this.Ob.ea);this.A-=this.B.ae};w[161]=function(){this.La=this.ja;var a=kd(this);this.Ob.load(a);this.A-=this.B.gc;this.La=n};w[163]=function(){this.Da[this.ba()].call(this,ag);this.P!==n&&(this.A-=6)};w[164]=function(){this.Da[this.ba()].call(this,2==this.ha?$g:ah);this.A-=this.P===n?3:7};w[165]=function(){this.Da[this.ba()].call(this,2==this.ha?bh:ch);this.A-=this.P===n?3:7};w[168]=function(){sd(this,this.Pb.ea);this.A-=this.B.ae}; +w[169]=function(){this.La=this.ja;var a=kd(this);this.Pb.load(a);this.A-=this.B.gc;this.La=n};w[171]=function(){this.Da[this.ba()].call(this,dg);this.P!==n&&(this.A-=5)};w[172]=function(){this.Da[this.ba()].call(this,2==this.ha?fh:gh);this.A-=this.P===n?3:7};w[173]=function(){this.Da[this.ba()].call(this,2==this.ha?hh:yh);this.A-=this.P===n?3:7};w[175]=function(){this.fa[this.ba()].call(this,2==this.ha?ng:og)};w[178]=function(){this.fa[this.ba()].call(this,yg)}; w[179]=function(){this.Da[this.ba()].call(this,cg);this.P!==n&&(this.A-=5)};w[180]=function(){this.fa[this.ba()].call(this,vg)};w[181]=function(){this.fa[this.ba()].call(this,wg)}; w[182]=function(){var a,b=this.ba(),c=(b&56)>>3;switch(c){case 4:a=this.F;break;case 5:a=this.G;break;case 6:a=this.H;break;case 7:a=this.D}this.Za[b].call(this,Ag);switch(c){case 0:this.F=this.F&~this.C|this.F&255;break;case 1:this.G=this.G&~this.C|this.G&255;break;case 2:this.H=this.H&~this.C|this.H&255;break;case 3:this.D=this.D&~this.C|this.D&255;break;case 4:this.jb=this.jb&~this.C|this.F>>8&255;this.F=a;break;case 5:this.L=this.L&~this.C|this.G>>8&255;this.G=a;break;case 6:this.K=this.K&~this.C| this.H>>8&255;this.H=a;break;case 7:this.J=this.J&~this.C|this.D>>8&255,this.D=a}this.A-=this.P===n?3:6};w[183]=function(){var a=this.ba();Ke(this);this.fa[a].call(this,Ag);switch((a&56)>>3){case 0:this.F=this.F&65535;break;case 1:this.G=this.G&65535;break;case 2:this.H=this.H&65535;break;case 3:this.D=this.D&65535;break;case 4:this.jb=this.jb&65535;break;case 5:this.L=this.L&65535;break;case 6:this.K=this.K&65535;break;case 7:this.J=this.J&65535}this.A-=this.P===n?3:6}; @@ -241,8 +241,8 @@ w[190]=function(){var a,b=this.ba(),c=(b&56)>>3;switch(c){case 4:a=this.F;break; this.L&~this.C|this.G<<16>>24&this.C;this.G=a;break;case 6:this.K=this.K&~this.C|this.H<<16>>24&this.C;this.H=a;break;case 7:this.J=this.J&~this.C|this.D<<16>>24&this.C,this.D=a}this.A-=this.P===n?3:6}; w[191]=function(){var a=this.ba();Ke(this);this.fa[a].call(this,Ag);switch((a&56)>>3){case 0:this.F=this.F<<16>>16;break;case 1:this.G=this.G<<16>>16;break;case 2:this.H=this.H<<16>>16;break;case 3:this.D=this.D<<16>>16;break;case 4:this.jb=this.jb<<16>>16;break;case 5:this.L=this.L<<16>>16;break;case 6:this.K=this.K<<16>>16;break;case 7:this.J=this.J<<16>>16}this.A-=this.P===n?3:6}; var Qe=[function(){this.A-=2+(this.P===n?0:1);return this.Dc.ea},function(){this.A-=2+(this.P===n?0:1);return this.Ya.ea},function(a){this.W|=2;this.Dc.load(a);this.A-=17+(this.P===n?0:2);return a},function(a){this.W|=2;this.Ya.load(a)!==n&&(this.Fb(this.Ya.Zb+4,this.Ya.zb|=512),this.Ya.type|=512);this.A-=17+(this.P===n?0:2);return a},function(a){this.W|=2;this.A-=14+(this.P===n?0:2);if(this.Ha.load(a)!==n&&2048!=(this.Ha.zb&2560)&&(this.Ha.Bc>=this.sa&&this.Ha.Bc>=(a&3)||7168==(this.Ha.zb&7168)))return of(this), -a;lf(this);return a},function(a){this.W|=2;this.A-=14+(this.P===n?0:2);if(this.Ha.load(a)!==n&&512==(this.Ha.zb&2560)&&this.Ha.Bc>=this.sa&&this.Ha.Bc>=(a&3))return of(this),a;lf(this);return a},Ih,Ih],Kd=[fe,fe,fe,fe,fe,fe,Ih,Ih],vi=[function(a){if(this.P===n)p.call(this,6);else{a=this.Rd-this.bd;var b=this.bd;80286==this.ra?b|=-16777216:80386<=this.ra&&(2==this.ha?b&=16777215:a|=b<<16);this.Qb(this.P+2,b);this.A-=11}return a},function(a){if(this.P===n)p.call(this,6);else{a=this.Sd-this.cd;var b= -this.cd;80286==this.ra?b|=-16777216:80386<=this.ra&&(2==this.ha?b&=16777215:a|=b<<16);this.Qb(this.P+2,b);this.A-=12}return a},function(a){this.P===n||this.ca&131072?p.call(this,6):(this.bd=this.pb(this.P+2)&(this.C|this.C<<8),a&=65535,this.Rd=this.bd+a,this.W|=2,this.A-=11);return a},function(a){this.P===n||this.ca&131072?p.call(this,6):(this.cd=this.pb(this.P+2)&(this.C|this.C<<8),a&=65535,this.Sd=this.cd+a,this.W|=2,this.A-=12);return a},function(){this.A-=2+(this.P===n?0:1);return this.mb},Ih, +a;lf(this);return a},function(a){this.W|=2;this.A-=14+(this.P===n?0:2);if(this.Ha.load(a)!==n&&512==(this.Ha.zb&2560)&&this.Ha.Bc>=this.sa&&this.Ha.Bc>=(a&3))return of(this),a;lf(this);return a},Ih,Ih],Kd=[fe,fe,fe,fe,fe,fe,Ih,Ih],vi=[function(a){if(this.P===n)p.call(this,6);else{a=this.Qd-this.bd;var b=this.bd;80286==this.ra?b|=-16777216:80386<=this.ra&&(2==this.ha?b&=16777215:a|=b<<16);this.Qb(this.P+2,b);this.A-=11}return a},function(a){if(this.P===n)p.call(this,6);else{a=this.Rd-this.cd;var b= +this.cd;80286==this.ra?b|=-16777216:80386<=this.ra&&(2==this.ha?b&=16777215:a|=b<<16);this.Qb(this.P+2,b);this.A-=12}return a},function(a){this.P===n||this.ca&131072?p.call(this,6):(this.bd=this.lb(this.P+2)&(this.C|this.C<<8),a&=65535,this.Qd=this.bd+a,this.W|=2,this.A-=11);return a},function(a){this.P===n||this.ca&131072?p.call(this,6):(this.cd=this.lb(this.P+2)&(this.C|this.C<<8),a&=65535,this.Rd=this.cd+a,this.W|=2,this.A-=12);return a},function(){this.A-=2+(this.P===n?0:1);return this.nb},Ih, function(a){this.ca&131072?p.call(this,6):(pf(this,a),this.A-=this.P===n?3:6,this.W|=2);return a},Ih],wi=[Ih,Ih,Ih,Ih,Xf,$f,Zf,Yf],y=[function(a){a=a.call(this,this.F&255,F(this,this.D+this.K));this.F=this.F&-256|a;this.A-=this.B.ka},function(a){a=a.call(this,this.F&255,F(this,this.D+this.J));this.F=this.F&-256|a;this.A-=this.B.la},function(a){a=a.call(this,this.F&255,G(this,this.L+this.K));this.F=this.F&-256|a;this.A-=this.B.la},function(a){a=a.call(this,this.F&255,G(this,this.L+this.J));this.F= this.F&-256|a;this.A-=this.B.ka},function(a){a=a.call(this,this.F&255,F(this,this.K));this.F=this.F&-256|a;this.A-=this.B.N},function(a){a=a.call(this,this.F&255,F(this,this.J));this.F=this.F&-256|a;this.A-=this.B.N},function(a){a=a.call(this,this.F&255,F(this,S(this)));this.F=this.F&-256|a;this.A-=this.B.ma},function(a){a=a.call(this,this.F&255,F(this,this.D));this.F=this.F&-256|a;this.A-=this.B.N},function(a){a=a.call(this,this.G&255,F(this,this.D+this.K));this.G=this.G&-256|a;this.A-=this.B.ka}, function(a){a=a.call(this,this.G&255,F(this,this.D+this.J));this.G=this.G&-256|a;this.A-=this.B.la},function(a){a=a.call(this,this.G&255,G(this,this.L+this.K));this.G=this.G&-256|a;this.A-=this.B.la},function(a){a=a.call(this,this.G&255,G(this,this.L+this.J));this.G=this.G&-256|a;this.A-=this.B.ka},function(a){a=a.call(this,this.G&255,F(this,this.K));this.G=this.G&-256|a;this.A-=this.B.N},function(a){a=a.call(this,this.G&255,F(this,this.J));this.G=this.G&-256|a;this.A-=this.B.N},function(a){a=a.call(this, @@ -802,73 +802,73 @@ function(){return this.F},function(){return this.G},function(){return this.H},fu (this.L<<3)},function(){return this.D+(this.L<<3)},function(){this.R=this.S;return u(this)+(this.L<<3)},function(a){return(a?(this.R=this.S,this.L):S(this))+(this.L<<3)},function(){return this.K+(this.L<<3)},function(){return this.J+(this.L<<3)},function(){return this.F+(this.K<<3)},function(){return this.G+(this.K<<3)},function(){return this.H+(this.K<<3)},function(){return this.D+(this.K<<3)},function(){this.R=this.S;return u(this)+(this.K<<3)},function(a){return(a?(this.R=this.S,this.L):S(this))+ (this.K<<3)},function(){return this.K+(this.K<<3)},function(){return this.J+(this.K<<3)},function(){return this.F+(this.J<<3)},function(){return this.G+(this.J<<3)},function(){return this.H+(this.J<<3)},function(){return this.D+(this.J<<3)},function(){this.R=this.S;return u(this)+(this.J<<3)},function(a){return(a?(this.R=this.S,this.L):S(this))+(this.J<<3)},function(){return this.K+(this.J<<3)},function(){return this.J+(this.J<<3)}]; function xi(a){Ta.call(this,"ChipSet",a,xi,32768);this.ra=(this.ra=a.model)&&yi[this.ra]||zi;this.S=0;var b=a.sw1;if(b)this.S=Ai(b,Bi|Ci.Ij);else{this.sa=[360,360];(b=a.floppies)&&b.length&&(this.sa=b);if(b=this.sa.length)this.S|=Di.eh,b--,this.S|=(b&3)<=Ei&&(this.ib=this.Ma=2);this.ua=a.scaleTimers||!1;this.hc=a.rtcDate;this.Ub=!1; -a.sound&&(this.yb=this.Na=null,window&&(this.yb=window.AudioContext||window.webkitAudioContext),this.yb&&(this.Na=new this.yb));this.reset(!0);ob(this)}bb(xi);var zi=5150,Ei=5170,yi={5150:zi,5160:5160,5170:Ei,deskpro386:5180},Fi={none:0,tv:1,color:2,mono:3,ega:0,vga:0},Di={eh:1,ONE:0,Vm:64,Tm:128,ym:192,hf:192,jf:6},Bi=12,Ci={Um:16,rm:32,Ij:48,hf:48,jf:4};f=xi.prototype; +a.sound&&(this.yb=this.Na=null,window&&(this.yb=window.AudioContext||window.webkitAudioContext),this.yb&&(this.Na=new this.yb));this.reset(!0);ob(this)}bb(xi);var zi=5150,Ei=5170,yi={5150:zi,5160:5160,5170:Ei,deskpro386:5180},Fi={none:0,tv:1,color:2,mono:3,ega:0,vga:0},Di={eh:1,ONE:0,Xm:64,Vm:128,Am:192,hf:192,jf:6},Bi=12,Ci={Wm:16,tm:32,Ij:48,hf:48,jf:4};f=xi.prototype; f.Tb=function(a,b,c){switch(b){case "sw1":return this.ya[b]=c,Gi(this,b,c,this.S,{0:this.ra==zi?"Bootable Floppy Drive":"Loop on POST",1:this.ra==zi?"Reserved":"Coprocessor",2:"Base Memory Size",4:"Monitor Type",6:"Number of Floppy Drives"}),!0;case "sw2":if(this.ra==zi)return this.ya[b]=c,Gi(this,b,c,this.Ba,{0:"Expansion Memory Size",4:"Reserved"}),!0;break;case "swdesc":return this.ya[b]=c,!0}return!1}; -f.Hc=function(a,b,c,d){this.na=b;this.O=c;this.ga=d;this.pa=a;this.P=Ab(a,"Keyboard");this.nb=c.Z.yd/1193181;gc(b,this,Hi);kc(b,this,Ii);this.rab;b++){var c=13>=b?Pi(e,b):e.A[b];a&&(a+="\n");a+="CMOS["+fa(b)+"]: "+fa(c)}e.ga.V(a)})}Me(c,26,this.cl.bind(this))};f.pc=function(a,b){if(!b)if(!a)this.reset();else if(!this.restore(a))return!1;return!0};f.oc=function(a){return a&&this.save?this.save():!0}; +f.Hc=function(a,b,c,d){this.na=b;this.O=c;this.ga=d;this.pa=a;this.P=Ab(a,"Keyboard");this.ob=c.Z.xd/1193181;gc(b,this,Hi);kc(b,this,Ii);this.rab;b++){var c=13>=b?Pi(e,b):e.A[b];a&&(a+="\n");a+="CMOS["+fa(b)+"]: "+fa(c)}e.ga.V(a)})}Me(c,26,this.dl.bind(this))};f.pc=function(a,b){if(!b)if(!a)this.reset();else if(!this.restore(a))return!1;return!0};f.oc=function(a){return a&&this.save?this.save():!0}; f.reset=function(a){var b;this.da=this.S;this.Ea=this.Ba;Qi(this);this.R=Array(this.ib);for(b=0;b=Ei){this.B=16;this.ja=0;this.fa=16;this.Ra=0;this.qa=160;512<=Ui(this)&&(this.qa|=16);3==Vi(this)&&(this.qa|=64);5180==this.ra&&(this.qa|=12);this.Ua=3;this.Ha=Array(8); this.Da=0;a&&(this.A=Array(64));Wi(this,this.hc);for(a=21;24>=a;a++)this.A[a]=0;for(a=14;46>a;a++)void 0===this.A[a]&&(this.A[a]=0);this.A[20]=this.da&(Ci.hf|2|Di.eh|Di.hf);this.A[16]=Xi(this,0)<<4|Xi(this,1);Yi(this)}}; function Wi(a,b){var c=b?new Date(b):new Date;"[object Date]"!==Object.prototype.toString.call(c)||isNaN(c.getTime())?(c=new Date,a.V("CMOS date invalid ("+b+"), using "+c)):b&&a.V("CMOS date: "+c);a.A[0]=c.getSeconds();a.A[1]=0;a.A[2]=c.getMinutes();a.A[3]=0;a.A[4]=c.getHours();a.A[5]=0;a.A[6]=c.getDay()+1;a.A[7]=c.getDate();a.A[8]=c.getMonth()+1;c=c.getFullYear();a.A[9]=c%100;c/=100;a.A[50]=c%10|c/10<<4;a.A[10]=38;a.A[11]=2;a.A[12]=0;a.A[13]=128;a.Oa=a.Ja=0;a.Yb=a.jb=null} function Pi(a,b){var c=a.A[b];if(10>b){var d=!1;4!=b&&5!=b||a.A[11]&2||(12>c?c=c?c:12:c=(c-=12)?c+128:140,d=!0);a.A[11]&4||(d&&128c;c++)b+=a.A[c];a.A[47]=b&255;a.A[46]=b>>8} -f.save=function(){var a=new Re(this);Se(a,0,[this.S,this.Ba,this.da,this.Ea]);for(var b=[],c=0;c=Ei&&(Se(a,5,[this.B,this.ja,this.fa,this.Ra,this.qa,this.Ua]),Se(a,6,[this.Ha[7],this.Ha,this.Da,this.A,this.Oa,this.Ja]));return a.data()}; f.restore=function(a){var b,c;b=a[0];this.S=b[0];this.Ba=b[1];this.da=b[2];this.Ea=b[3];b=a[1];for(c=0;c>2)+1)*a.ac+32*((b?a.Ba:a.Ea)&15)} +this.A=b[3],this.Oa=b[4],this.Ja=b[5],Wi(this);return!0};var $i=[0,null,null,0,Array(4)];function Ri(a,b,c){var d=a.R[b];d||(d={bc:Array(4)});c=c&&5==c.length?c:$i;d.dd=c[0];d.kh=c[1];d.Si=c[2];d.Gb=c[3];d.jl=b<<2;for(var e=0;e>2)+1)*a.ac+32*((b?a.Ba:a.Ea)&15)} function fj(a,b){var c=b?a.S:a.da;return a.ra!=zi||c&Di.eh?((c&Di.hf)>>Di.jf)+1:0}function Xi(a,b){if(b>Ci.jf} function Gi(a,b,c,d,e){for(var g="",h=1;8>=h;h++){var m="pcjs-bitCell";h||(m+=" pcjs-bitCellLeft");g+='
'+h+"
\n"}c.innerHTML=g;b=jb(c,"pcjs-bitCell");c=null;for(h=0;hh.vb[0]&&(h.vb[0]=255,h.vb[1]--,0>h.vb[1]&&(h.vb[1]=255)));return m}function kj(a,b,c,d,e,g){var h=a.R[b];a.ta(768)&&l(a,d,e,g,"DMA"+b+".CHANNEL"+c+".COUNT["+h.Gb+"]",null,!0);a=h.bc[c];a.vb[h.Gb]=a.tc[h.Gb]=e;h.Gb^=1}function lj(a,b,c,d){var e=a.R[b],g=e.dd|1;e.dd&=-16;a.ta(768)&&l(a,c,null,d,"DMA"+b+".STATUS",g,!0);return g} -function mj(a,b,c,d,e){var g=a.R[b];a.ta(768)&&l(a,c,d,e,"DMA"+b+".REQ",null,!0);a=d&3;g.dd=g.dd&~(16<>2].bc[b&3],c,d,e)} function oj(a,b,c){b=a.R[b>>2].bc[b&3];b.Sf&&b.th&&b.Lg?(c&&(b.done=c),b.Ed||Lf(a,b,!0)):c&&c(!0)}function Lf(a,b,c){c&&(b.count=b.vb[1]<<8|b.vb[0],b.type=b.mode&12,b.fj=b.pd=!1);for(var d=!1;0<=b.count&&(c=b.Nf<<16|b.Ab[1]<<8|b.Ab[0],4==b.type?(d=!0,function(c){b.th.call(b.Sf,b.Lg,-1,function(g,h){0>g&&(b.fj||(b.fj=!0),g=255);b.Ed||a.na.rc(c,g);(d=h)&&setTimeout(function(){wj(b)||Lf(a,b)},0)})}(c)):8==b.type?(c=a.na.Wa(c),0>b.th.call(b.Sf,b.Lg,c)&&(b.pd=!0)):0!=b.type&&(b.pd=!0)),!d&&!wj(b););} -function wj(a){if(!a.pd&&0<=--a.count&&(a.mode&32?(a.Ab[0]--,0>a.Ab[0]&&(a.Ab[0]=255,a.Ab[1]--,0>a.Ab[1]&&(a.Ab[1]=255))):(a.Ab[0]++,255>3];b=1<<(b&7);d.cc&b||(d.cc|=b,d.Ve=c||0,zj(a))}function Dj(a,b){var c=a.ic[b>>3],d=1<<(b&7);c.cc&d&&(c.cc&=~d,zj(a))}function zj(a,b){var c,d=-1;1>=1),Zc(a.O,d))),2==b&&bd(a))}f=xi.prototype;f.Lk=function(a,b){l(this,a,null,b,"PIT1_CTRL",null,2048);return this.bb}; -f.$l=function(a,b,c){this.bb=b;l(this,a,b,c,"PIT1_CTRL",null,2048);a=b&192;if(192==a){if(!(b&16))for(a=0;2>=a;a++)b&2<=a;a++)b&2<>=6;c=b&1;var d=b&14;b&=48;if(0==b)Ij(this,a);else{var e=a,g=this.X[e];g.Gf=b;g.mode=d;g.mh=c;g.tc=[0,0];g.vb=[0,0];g.ge=[0,0];g.qd=!1;g.Ie=!1;g.ie=!1;g.Ne=!1;Fj(this,e);0==a&&Dj(this,0);2==a&&255==this.ic[0].td&&77==this.aa&&(a=this.X[0], -a.Rc[0]=a.tc[0],a.Rc[1]=a.tc[1],a.sd=Uc(this.O,this.ua))}}};function Hj(a,b){var c=a.X[b],d=c.tc[1]<<8|c.tc[0];d||(d=1==c.ed?256:65536);return d}function dd(a,b){var c=a.X[b],d=c.Rc[1]<<8|c.Rc[0];d||(d=1==c.ed?256:65536);return d}function Ij(a,b){Oi(a,b);var c=a.X[b];c.ge[0]=c.vb[0];c.ge[1]=c.vb[1];c.Ie=!0;Fj(a,b)}function Fj(a,b){var c=a.X[b];c.vd=32==c.Gf?1:0;c.ed=48==c.Gf?2:1} -function Oi(a,b,c){var d=a.X[b];if(d.ie&&(2!=b||a.aa&1)){var e=Uc(a.O,a.ua),g=(e-d.sd)/a.nb|0;0>g&&(d.sd=e,g=0);var h=Hj(a,b),m=dd(a,b)-g;0==d.mode?(0>=m&&(m=0),m||(d.qd=!0,d.ie=!1,b||Cj(a,0))):4==d.mode?(d.qd=1!=m,0>=m&&(m=h+m,0>=m&&(m=h),d.Rc[0]=m&255,d.Rc[1]=m>>8&255,d.sd=e,!b&&d.qd&&Cj(a,0))):6==d.mode&&(m-=g,0>=m&&(d.qd=!d.qd,m=h+m,0>=m&&(m=h),d.Rc[0]=m&255,d.Rc[1]=m>>8&255,d.sd=e,!b&&d.qd&&Cj(a,0)));d.vb[0]=m&255;d.vb[1]=m>>8&255;c&&(a.sd=0)}return d} -function cd(a,b){for(var c=0;c=Ei){var c=a.O.Z.yd,d=Uc(a.O,a.ua);null==a.jb&&(a.Oa=Uc(a.O,a.ua),a.Yb=1024,a.jb=Math.floor(a.O.Z.yd/a.Yb),Zi(a));d>=a.Ja&&(a.A[12]|=64,a.A[11]&64&&(a.A[12]|=128,Cj(a,8)),a.Ja=d+a.jb);a.A[0]==a.A[1]&&a.A[2]==a.A[3]&&a.A[4]==a.A[5]&&(a.A[12]|=32,a.A[11]&32&&(a.A[12]|=128,Cj(a,8)));var e=d-a.Oa,g=Math.floor(e/c);if(g&&!(a.A[11]&128)){for(;g--;)if(60<=++a.A[0]&&(a.A[0]=0,60<=++a.A[2]&&(a.A[2]=0,24<=++a.A[4]))){a.A[4]=0;a.A[6]=a.A[6]%7+1; -var h;h=a.A[9];var m=ra[a.A[8]-1];28==m&&0===h%4&&(h%100||0===h%400)&&m++;h=m;++a.A[7]>h&&(a.A[7]=1,12<++a.A[8]&&(a.A[8]=1,a.A[9]=(a.A[9]+1)%100))}a.A[12]|=16;a.A[11]&16&&(a.A[12]|=128,Cj(a,8))}a.Oa=d-e%c}}f.Mk=function(a,b){var c=this.eb;if(this.La&16)if(this.aa&128)c=this.da;else if(this.P){var c=this.P,d=0;c.A.length&&(d=c.A[0]);c.ta()&&c.Ca("scan code "+fa(d)+" delivered");c=d}l(this,a,null,b,"PPI_A",c);return c};f.am=function(a,b,c){l(this,a,b,c,"PPI_A");this.eb=b}; -f.Nk=function(a,b){var c=this.aa;l(this,a,null,b,"PPI_B",c);return c};f.bm=function(a,b,c){l(this,a,b,c,"PPI_B");Jj(this,b)};function Jj(a,b){var c=!!(b&2),d=!!(a.aa&2);a.aa=b;a.P&&Kj(a.P,!(b&128),!!(b&64));c!=d&&bd(a,c)}f.Ok=function(a,b){var c=0,c=this.ra==zi?this.aa&4?c|this.Ea&15:c|this.Ea>>4&1:this.aa&8?c|this.da>>4:c|this.da&15;this.aa&1&&Oi(this,2).qd&&(c=this.aa&2?c|32:c|16);l(this,a,null,b,"PPI_C",c,32896);return c};f.cm=function(a,b,c){l(this,a,b,c,"PPI_C");this.tb=b}; -f.Pk=function(a,b){var c=this.La;l(this,a,null,b,"PPI_CTRL",c);return c};f.dm=function(a,b,c){l(this,a,b,c,"PPI_CTRL");this.La=b};f.ak=function(a,b){var c=this.Ra;l(this,a,null,b,"8042_OUTBUFF",c,16384);this.B&=-258;this.P&&Lj(this.P);return c};f.ol=function(a,b,c){l(this,a,b,c,"8042_INBUF.DATA",null,16384);if(this.B&8)switch(this.ja){case 96:Mj(this,b);break;case 209:Nj(this,b);break;default:if(Mj(this,this.fa&-17),this.P){a=-1;switch(b){case 255:a=250,Oj(this.P)}Pj(this,a)}}this.ja=b;this.B&=-9}; -f.bk=function(a,b){var c=this.aa&-209|(Uc(this.O)&64?16:0);l(this,a,null,b,"8042_RWREG",c,16384);return c};f.pl=function(a,b,c){l(this,a,b,c,"8042_RWREG",null,16384);Jj(this,b)};f.ck=function(a,b){l(this,a,null,b,"8042_STATUS",this.B,16384);var c=this.B&255;this.B&256&&(this.B|=1,this.B&=-257);return c}; -f.nl=function(a,b,c){l(this,a,b,c,"8042_INBUFF.CMD",null,16384);this.ja=b;this.B|=8;a=0;240<=this.ja&&(a=this.ja^15,this.ja=240);switch(this.ja){case 32:Pj(this,this.fa);break;case 173:Mj(this,this.fa|16);break;case 174:Mj(this,this.fa&-17);this.P&&Lj(this.P);break;case 170:this.P&&(a=this.P,a.A=[],a.ta()&&a.Ca("scan codes flushed"));Mj(this,this.fa|16);Pj(this,85);Nj(this,3);break;case 171:Pj(this,0);break;case 192:Pj(this,this.qa);break;case 208:Pj(this,this.Ua);break;case 224:Pj(this,this.fa&16? -0:1);break;case 240:a&1&&ue(this.O)}};function Mj(a,b){a.fa=b;a.B=a.B&-5|b&4;a.P&&Kj(a.P,!!(b&8),!(b&16))}function Pj(a,b,c){0<=b&&(a.Ra=b,c?a.B|=1:(a.B&=-2,a.B|=256))}function Nj(a,b){a.Ua=b;Ob(a.na,!!(b&2));b&1||ue(a.O)}function Qj(a,b){a.ra=c?Pi(this,c):this.A[c];this.ta(4352)&&l(this,a,null,b,"CMOS.DATA["+fa(c)+"]",d,!0);null!=b&&12==c&&(this.A[c]&=15,d&128&&Dj(this,8),d&64&&this.A[11]&64&&Zi(this));return d}; -f.El=function(a,b,c){var d=this.Da&63;this.ta(4352)&&l(this,a,b,c,"CMOS.DATA["+fa(d)+"]",null,!0);a=b^this.A[d];if(13>=d){if(c=b,10>d){var e=!1;this.A[11]&4||(c=10*(c>>4)+(c&15),e=!0);if(4==d||5==d)e&&23=c?c=12==c?0:c:(c-=116,c=24==c?12:c))}}else c=b;this.A[d]=c;11==d&&a&64&&b&64&&Zi(this)};f.Zl=function(a,b,c){l(this,a,b,c,"NMI");this.Za=b};f.Fl=function(a,b,c){l(this,a,b,c,"COPROC.CLEAR")};f.Gl=function(a,b,c){l(this,a,b,c,"COPROC.RESET")}; -f.cl=function(a){if(this.ta(16)&&si(this.ga,26,a)){var b=this.O.F>>8;Ne(this.O,a,function(a,d){return function(e){d=Uc(a.O)-d;var g,h=a.O.H&255,m=a.O.H>>8,q=a.O.H&255,r=a.O.H>>8;if(2==b||3==b)g=" CH(hour)="+ga(m)+" CL(min)="+fa(h)+" DH(sec)="+fa(r);else if(4==b||5==b)g=" CX(year)="+ga(a.O.G)+" DH(month)="+fa(r)+" DL(day)="+fa(q);h=a.ga;m=d;h.message("INT "+fa(26)+": C="+(Xe(h.O)?1:0)+(g||"")+" (cycles="+m+(e?",level="+(e+1):"")+")")}}(this,Uc(this.O)))}return!0}; +function wj(a){if(!a.pd&&0<=--a.count&&(a.mode&32?(a.Ab[0]--,0>a.Ab[0]&&(a.Ab[0]=255,a.Ab[1]--,0>a.Ab[1]&&(a.Ab[1]=255))):(a.Ab[0]++,255>3];b=1<<(b&7);d.cc&b||(d.cc|=b,d.Ve=c||0,zj(a))}function Dj(a,b){var c=a.ic[b>>3],d=1<<(b&7);c.cc&d&&(c.cc&=~d,zj(a))}function zj(a,b){var c,d=-1;1>=1),Zc(a.O,d))),2==b&&bd(a))}f=xi.prototype;f.Mk=function(a,b){l(this,a,null,b,"PIT1_CTRL",null,2048);return this.bb}; +f.bm=function(a,b,c){this.bb=b;l(this,a,b,c,"PIT1_CTRL",null,2048);a=b&192;if(192==a){if(!(b&16))for(a=0;2>=a;a++)b&2<=a;a++)b&2<>=6;c=b&1;var d=b&14;b&=48;if(0==b)Ij(this,a);else{var e=a,g=this.X[e];g.Gf=b;g.mode=d;g.mh=c;g.tc=[0,0];g.vb=[0,0];g.fe=[0,0];g.qd=!1;g.Ie=!1;g.he=!1;g.Ne=!1;Fj(this,e);0==a&&Dj(this,0);2==a&&255==this.ic[0].td&&77==this.aa&&(a=this.X[0], +a.Qc[0]=a.tc[0],a.Qc[1]=a.tc[1],a.sd=Uc(this.O,this.ua))}}};function Hj(a,b){var c=a.X[b],d=c.tc[1]<<8|c.tc[0];d||(d=1==c.ed?256:65536);return d}function dd(a,b){var c=a.X[b],d=c.Qc[1]<<8|c.Qc[0];d||(d=1==c.ed?256:65536);return d}function Ij(a,b){Oi(a,b);var c=a.X[b];c.fe[0]=c.vb[0];c.fe[1]=c.vb[1];c.Ie=!0;Fj(a,b)}function Fj(a,b){var c=a.X[b];c.vd=32==c.Gf?1:0;c.ed=48==c.Gf?2:1} +function Oi(a,b,c){var d=a.X[b];if(d.he&&(2!=b||a.aa&1)){var e=Uc(a.O,a.ua),g=(e-d.sd)/a.ob|0;0>g&&(d.sd=e,g=0);var h=Hj(a,b),m=dd(a,b)-g;0==d.mode?(0>=m&&(m=0),m||(d.qd=!0,d.he=!1,b||Cj(a,0))):4==d.mode?(d.qd=1!=m,0>=m&&(m=h+m,0>=m&&(m=h),d.Qc[0]=m&255,d.Qc[1]=m>>8&255,d.sd=e,!b&&d.qd&&Cj(a,0))):6==d.mode&&(m-=g,0>=m&&(d.qd=!d.qd,m=h+m,0>=m&&(m=h),d.Qc[0]=m&255,d.Qc[1]=m>>8&255,d.sd=e,!b&&d.qd&&Cj(a,0)));d.vb[0]=m&255;d.vb[1]=m>>8&255;c&&(a.sd=0)}return d} +function cd(a,b){for(var c=0;c=Ei){var c=a.O.Z.xd,d=Uc(a.O,a.ua);null==a.jb&&(a.Oa=Uc(a.O,a.ua),a.Yb=1024,a.jb=Math.floor(a.O.Z.xd/a.Yb),Zi(a));d>=a.Ja&&(a.A[12]|=64,a.A[11]&64&&(a.A[12]|=128,Cj(a,8)),a.Ja=d+a.jb);a.A[0]==a.A[1]&&a.A[2]==a.A[3]&&a.A[4]==a.A[5]&&(a.A[12]|=32,a.A[11]&32&&(a.A[12]|=128,Cj(a,8)));var e=d-a.Oa,g=Math.floor(e/c);if(g&&!(a.A[11]&128)){for(;g--;)if(60<=++a.A[0]&&(a.A[0]=0,60<=++a.A[2]&&(a.A[2]=0,24<=++a.A[4]))){a.A[4]=0;a.A[6]=a.A[6]%7+1; +var h;h=a.A[9];var m=ra[a.A[8]-1];28==m&&0===h%4&&(h%100||0===h%400)&&m++;h=m;++a.A[7]>h&&(a.A[7]=1,12<++a.A[8]&&(a.A[8]=1,a.A[9]=(a.A[9]+1)%100))}a.A[12]|=16;a.A[11]&16&&(a.A[12]|=128,Cj(a,8))}a.Oa=d-e%c}}f.Nk=function(a,b){var c=this.eb;if(this.La&16)if(this.aa&128)c=this.da;else if(this.P){var c=this.P,d=0;c.A.length&&(d=c.A[0]);c.ta()&&c.Ca("scan code "+fa(d)+" delivered");c=d}l(this,a,null,b,"PPI_A",c);return c};f.cm=function(a,b,c){l(this,a,b,c,"PPI_A");this.eb=b}; +f.Ok=function(a,b){var c=this.aa;l(this,a,null,b,"PPI_B",c);return c};f.dm=function(a,b,c){l(this,a,b,c,"PPI_B");Jj(this,b)};function Jj(a,b){var c=!!(b&2),d=!!(a.aa&2);a.aa=b;a.P&&Kj(a.P,!(b&128),!!(b&64));c!=d&&bd(a,c)}f.Pk=function(a,b){var c=0,c=this.ra==zi?this.aa&4?c|this.Ea&15:c|this.Ea>>4&1:this.aa&8?c|this.da>>4:c|this.da&15;this.aa&1&&Oi(this,2).qd&&(c=this.aa&2?c|32:c|16);l(this,a,null,b,"PPI_C",c,32896);return c};f.em=function(a,b,c){l(this,a,b,c,"PPI_C");this.tb=b}; +f.Qk=function(a,b){var c=this.La;l(this,a,null,b,"PPI_CTRL",c);return c};f.fm=function(a,b,c){l(this,a,b,c,"PPI_CTRL");this.La=b};f.bk=function(a,b){var c=this.Ra;l(this,a,null,b,"8042_OUTBUFF",c,16384);this.B&=-258;this.P&&Lj(this.P);return c};f.ql=function(a,b,c){l(this,a,b,c,"8042_INBUF.DATA",null,16384);if(this.B&8)switch(this.ja){case 96:Mj(this,b);break;case 209:Nj(this,b);break;default:if(Mj(this,this.fa&-17),this.P){a=-1;switch(b){case 255:a=250,Oj(this.P)}Pj(this,a)}}this.ja=b;this.B&=-9}; +f.ck=function(a,b){var c=this.aa&-209|(Uc(this.O)&64?16:0);l(this,a,null,b,"8042_RWREG",c,16384);return c};f.rl=function(a,b,c){l(this,a,b,c,"8042_RWREG",null,16384);Jj(this,b)};f.dk=function(a,b){l(this,a,null,b,"8042_STATUS",this.B,16384);var c=this.B&255;this.B&256&&(this.B|=1,this.B&=-257);return c}; +f.pl=function(a,b,c){l(this,a,b,c,"8042_INBUFF.CMD",null,16384);this.ja=b;this.B|=8;a=0;240<=this.ja&&(a=this.ja^15,this.ja=240);switch(this.ja){case 32:Pj(this,this.fa);break;case 173:Mj(this,this.fa|16);break;case 174:Mj(this,this.fa&-17);this.P&&Lj(this.P);break;case 170:this.P&&(a=this.P,a.A=[],a.ta()&&a.Ca("scan codes flushed"));Mj(this,this.fa|16);Pj(this,85);Nj(this,3);break;case 171:Pj(this,0);break;case 192:Pj(this,this.qa);break;case 208:Pj(this,this.Ua);break;case 224:Pj(this,this.fa&16? +0:1);break;case 240:a&1&&ue(this.O)}};function Mj(a,b){a.fa=b;a.B=a.B&-5|b&4;a.P&&Kj(a.P,!!(b&8),!(b&16))}function Pj(a,b,c){0<=b&&(a.Ra=b,c?a.B|=1:(a.B&=-2,a.B|=256))}function Nj(a,b){a.Ua=b;Ob(a.na,!!(b&2));b&1||ue(a.O)}function Qj(a,b){a.ra=c?Pi(this,c):this.A[c];this.ta(4352)&&l(this,a,null,b,"CMOS.DATA["+fa(c)+"]",d,!0);null!=b&&12==c&&(this.A[c]&=15,d&128&&Dj(this,8),d&64&&this.A[11]&64&&Zi(this));return d}; +f.Gl=function(a,b,c){var d=this.Da&63;this.ta(4352)&&l(this,a,b,c,"CMOS.DATA["+fa(d)+"]",null,!0);a=b^this.A[d];if(13>=d){if(c=b,10>d){var e=!1;this.A[11]&4||(c=10*(c>>4)+(c&15),e=!0);if(4==d||5==d)e&&23=c?c=12==c?0:c:(c-=116,c=24==c?12:c))}}else c=b;this.A[d]=c;11==d&&a&64&&b&64&&Zi(this)};f.am=function(a,b,c){l(this,a,b,c,"NMI");this.Za=b};f.Hl=function(a,b,c){l(this,a,b,c,"COPROC.CLEAR")};f.Il=function(a,b,c){l(this,a,b,c,"COPROC.RESET")}; +f.dl=function(a){if(this.ta(16)&&si(this.ga,26,a)){var b=this.O.F>>8;Ne(this.O,a,function(a,d){return function(e){d=Uc(a.O)-d;var g,h=a.O.H&255,m=a.O.H>>8,q=a.O.H&255,r=a.O.H>>8;if(2==b||3==b)g=" CH(hour)="+ga(m)+" CL(min)="+fa(h)+" DH(sec)="+fa(r);else if(4==b||5==b)g=" CX(year)="+ga(a.O.G)+" DH(month)="+fa(r)+" DL(day)="+fa(q);h=a.ga;m=d;h.message("INT "+fa(26)+": C="+(Xe(h.O)?1:0)+(g||"")+" (cycles="+m+(e?",level="+(e+1):"")+")")}}(this,Uc(this.O)))}return!0}; function Ai(a,b){if(void 0===a)return b;for(var c=0,d=1,e=0;ec||2E4>>4,this.S,this.P,this.Y),delete this.Y);return!0};Sj.prototype.oc=function(){return!0}; Sj.prototype.aa=function(a,b,c){if(c)this.Ta("Unable to load system ROM (error "+c+")");else{if("["==b.charAt(0)||"{"==b.charAt(0))try{var d=eval("("+b+")"),e=d.bytes,g=d.data;if(e)this.A=e;else if(g)for(this.A=Array(4*g.length),c=b=0;b>8&255,this.A[c++]=g[b]>>16&255,this.A[c++]=g[b]>>24&255;else this.A=d;this.Y=d.symbols;if(!this.A.length){ya("Empty ROM: "+a);return}if(1==this.A.length){ya(this.A[0]);return}}catch(h){this.Ta("ROM data error: "+ h.message);return}else for(a=b.replace(/\n/gm," ").replace(/ +$/,"").split(" "),this.A=Array(a.length),d=0;d>>d.Qa].Jf(e&d.A,a.A[c]&255,e)}b=!0}else b=!1;if(b){b=[];"number"==typeof a.R?b.push(a.R):null!=a.R&&a.R.length&&(b=a.R);for(c=0;c>>d.Qa].Jf(e&d.A,a.A[c]&255,e)}b=!0}else b=!1;if(b){b=[];"number"==typeof a.R?b.push(a.R):null!=a.R&&a.R.length&&(b=a.R);for(c=0;cthis.B?21:23,c=a.A[b]|a.A[b+1]<<8,c=c+(this.A>>10);a.A[b]=c&255;a.A[b+ +f.reset=function(){if(!this.B&&!this.R&&this.X){var a=1024*Ui(this.X);this.A&&a!=this.A&&(Yb(this.na,this.B,this.A),this.P=!1);this.A=a}!this.P&&this.A&&Pb(this.na,this.B,this.A,1)&&(this.P=!0,this.status(Math.floor(this.A/1024)+"Kb allocated"),"ramCPQ"==this.Od&&(this.controller=new Yj(this),Pb(this.na,Zj,4,4,this.controller)));if(this.P){if(this.S||ec(this.na,1138,4660),"ramCPQ"!=this.Od&&this.X&&(a=this.X,a.A)){var b=1048576>this.B?21:23,c=a.A[b]|a.A[b+1]<<8,c=c+(this.A>>10);a.A[b]=c&255;a.A[b+ 1]=c>>8;Yi(a)}}else ya("No RAM allocated")};f.save=function(){var a=new Re(this);this.controller&&Se(a,0,this.controller.save());return a.data()};f.restore=function(a){return this.controller?this.controller.restore(a[0]):!0};function Yj(a){this.R=a;this.P=ak;this.ga=bk;this.B=ck;this.A=null}var Zj=-2134900736,ak=65535,bk=2575,ck=2,dk=[null,0],ek=[function(a){return this.controller.Wa(a)},null,null,function(a,b){this.controller.rc(a,b)},null,null];f=Yj.prototype;f.save=function(){return[this.P,this.B]}; f.restore=function(a){this.rc(0,a[0]&255);this.rc(2,a[1]&255);return!0};f.Wa=function(a){var b=255;2>a?b=a&1?this.ga>>8:this.ga&255:4>a&&(b=a&1?this.B>>8:this.B&255);return b};f.rc=function(a,b){if(a)2==a&&(this.B=this.B&-256|b);else if(b!=(this.P&255)){var c=this.R.na;if(b&1)this.A&&(Sb(c,917504,131072,this.A),this.A=null);else{this.A||(this.A=Tb(c,917504,131072));var d=Tb(c,16646144,131072);Sb(c,917504,131072,d,b&2?1:Zb)}this.P=this.P&-256|b}};f.hj=function(){return dk};f.uh=function(){return ek}; Pa(function(){for(var a=jb(window.document,"pcjs","ram"),b=0;b":62,"?":63,"@":64,om:65,pm:66,qm:67,vm:68,E:69,wm:70,zm:71,Am:72,Bm:73,Cm:74,Dm:75,Em:76,Fm:77,Gm:78,Hm:79,Im:80,Q:81,Jm:82,Nm:83,Sm:84,Wm:85,Xm:86,Ym:87,$m:88,an:89,bn:90,"[":91,"\\":92,"]":93,"^":94,_:95,"`":96,cn:97,dn:98,gn:99,d:100,e:101,hn:102,jn:103,kn:104,mn:105,nn:106,k:107,on:108, -pn:109,n:110,rn:111,p:112,q:113,r:114,sn:115,t:116,tn:117,un:118,vn:119,x:120,y:121,z:122,"{":123,"|":124,"}":125,"~":126},gk={};gk[186]=X[";"];gk[187]=X["="];gk[188]=X[","];gk[189]=X["-"];gk[190]=X["."];gk[191]=X["/"];gk[192]=X["`"];gk[219]=X["["];gk[220]=X["\\"];gk[221]=X["]"];gk[222]=X["'"];gk[173]=X["-"];var hk={};hk[X["1"]]=X["!"];hk[X["2"]]=X["@"];hk[X["3"]]=X["#"];hk[X["4"]]=X.$;hk[X["5"]]=X["%"];hk[X["6"]]=X["^"];hk[X["7"]]=X["&"];hk[X["8"]]=X["*"];hk[X["9"]]=X["("];hk[X["0"]]=X[")"]; +var X={um:1,vm:3,wm:26," ":32,"!":33,'"':34,"#":35,$:36,"%":37,"&":38,"'":39,"(":40,")":41,"*":42,"+":43,",":44,"-":45,".":46,"/":47,0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,":":58,";":59,"<":60,"=":61,">":62,"?":63,"@":64,qm:65,rm:66,sm:67,xm:68,E:69,ym:70,Bm:71,Cm:72,Dm:73,Em:74,Fm:75,Gm:76,Hm:77,Im:78,Jm:79,Km:80,Q:81,Lm:82,Pm:83,Um:84,Ym:85,Zm:86,$m:87,bn:88,cn:89,dn:90,"[":91,"\\":92,"]":93,"^":94,_:95,"`":96,en:97,fn:98,jn:99,d:100,e:101,kn:102,mn:103,nn:104,on:105,pn:106,k:107,qn:108, +rn:109,n:110,tn:111,p:112,q:113,r:114,un:115,t:116,vn:117,wn:118,xn:119,x:120,y:121,z:122,"{":123,"|":124,"}":125,"~":126},gk={};gk[186]=X[";"];gk[187]=X["="];gk[188]=X[","];gk[189]=X["-"];gk[190]=X["."];gk[191]=X["/"];gk[192]=X["`"];gk[219]=X["["];gk[220]=X["\\"];gk[221]=X["]"];gk[222]=X["'"];gk[173]=X["-"];var hk={};hk[X["1"]]=X["!"];hk[X["2"]]=X["@"];hk[X["3"]]=X["#"];hk[X["4"]]=X.$;hk[X["5"]]=X["%"];hk[X["6"]]=X["^"];hk[X["7"]]=X["&"];hk[X["8"]]=X["*"];hk[X["9"]]=X["("];hk[X["0"]]=X[")"]; hk[186]=X[":"];hk[187]=X["+"];hk[188]=X["<"];hk[189]=X._;hk[190]=X[">"];hk[191]=X["?"];hk[192]=X["~"];hk[219]=X["{"];hk[220]=X["|"];hk[221]=X["}"];hk[222]=X['"'];hk[173]=X._;hk[61]=X["+"];hk[59]=X[":"]; var ik={3016:1,1016:2,1017:8,1018:32,1091:128,1093:64,1224:128,1020:512,1144:1024,1145:2048},jk={TAB:1009,ESC:1027,F1:1112,F2:1113,F3:1114,F4:1115,F5:1116,F6:1117,F7:1118,F8:1119,F9:1120,F10:1121,LEFT:1037,UP:1038,RIGHT:1039,DOWN:1040,CTRL_C:4003,CTRL_BREAK:4008,CTRL_ALT_DEL:4046},kk={esc:1027,1:X["1"],2:X["2"],3:X["3"],4:X["4"],5:X["5"],6:X["6"],7:X["7"],8:X["8"],9:X["9"],0:X["0"],"-":X["-"],"=":X["="],bs:1008,tab:1009,q:81,w:87,e:69,r:82,t:84,y:89,u:85,i:73,o:79,p:80,"[":X["["],"]":X["]"],enter:13, ctrl:1017,a:65,s:83,d:68,f:70,g:71,h:72,j:74,k:75,l:76,";":X[";"],quote:X["'"],"`":X["`"],shift:1016,"\\":X["\\"],z:90,x:88,c:67,v:86,b:66,n:78,m:77,",":X[","],".":X["."],"/":X["/"],"right-shift":3016,prtsc:1044,alt:1018,space:X[" "],"caps-lock":1020,f1:1112,f2:1113,f3:1114,f4:1115,f5:1116,f6:1117,f7:1118,f8:1119,f9:1120,f10:1121,"num-lock":1144,"scroll-lock":1145,"num-home":1036,"num-up":1038,"num-pgup":1033,"num-sub":1109,"num-left":1037,"num-center":1101,"num-right":1039,"num-add":1107,"num-end":1035, @@ -876,189 +876,189 @@ ctrl:1017,a:65,s:83,d:68,f:70,g:71,h:72,j:74,k:75,l:76,";":X[";"],quote:X["'"]," Y[81]=10768;Y[119]=17;Y[87]=10769;Y[101]=18;Y[69]=10770;Y[114]=19;Y[82]=10771;Y[116]=20;Y[84]=10772;Y[121]=21;Y[89]=10773;Y[117]=22;Y[85]=10774;Y[105]=23;Y[73]=10775;Y[111]=24;Y[79]=10776;Y[112]=25;Y[80]=10777;Y[X["["]]=26;Y[X["{"]]=10778;Y[X["]"]]=27;Y[X["}"]]=10779;Y[13]=28;Y[1017]=29;Y[97]=30;Y[65]=10782;Y[115]=31;Y[83]=10783;Y[100]=32;Y[68]=10784;Y[102]=33;Y[70]=10785;Y[103]=34;Y[71]=10786;Y[104]=35;Y[72]=10787;Y[106]=36;Y[74]=10788;Y[107]=37;Y[75]=10789;Y[108]=38;Y[76]=10790;Y[X[";"]]=39; Y[X[":"]]=10791;Y[X["'"]]=40;Y[X['"']]=10792;Y[X["`"]]=41;Y[X["~"]]=10793;Y[1016]=42;Y[X["\\"]]=43;Y[X["|"]]=10795;Y[122]=44;Y[90]=10796;Y[120]=45;Y[88]=10797;Y[99]=46;Y[67]=10798;Y[118]=47;Y[86]=10799;Y[98]=48;Y[66]=10800;Y[110]=49;Y[78]=10801;Y[109]=50;Y[77]=10802;Y[X[","]]=51;Y[X["<"]]=10803;Y[X["."]]=52;Y[X[">"]]=10804;Y[X["/"]]=53;Y[X["?"]]=10805;Y[3016]=54;Y[1044]=55;Y[1018]=56;Y[X[" "]]=57;Y[1020]=58;Y[1112]=59;Y[1113]=60;Y[1114]=61;Y[1115]=62;Y[1116]=63;Y[1117]=64;Y[1118]=65;Y[1119]=66; Y[1120]=67;Y[1121]=68;Y[1144]=69;Y[1145]=70;Y[1036]=71;Y[1038]=72;Y[1033]=73;Y[1109]=74;Y[1037]=75;Y[1101]=76;Y[1039]=77;Y[1107]=78;Y[1035]=79;Y[1040]=80;Y[1034]=81;Y[1045]=82;Y[1046]=83;Y[1122]=87;Y[1123]=88;Y[1091]=91;Y[1093]=93;Y[1224]=91;Y[4003]=7470;Y[4008]=7494;Y[4046]=3677523;f=fk.prototype; -f.Tb=function(a,b,c){var d=this,e=a+"-"+b;if(void 0===this.ya[e])switch(b){case "kbd":return c.onkeydown=function(a){return mk(d,a,!0)},c.onkeypress=function(a){a=a||window.event;a=a.which||a.keyCode;var b=!Y[a]||!!(d.kc&128);b||nk(d,a,!0);return b},c.onkeyup=function(a){return mk(d,a,!1)},!0;case "caps-lock":return this.ya[e]=c,c.onclick=function(){d.O&&d.O.Yc();nk(d,1020,!0)},!0;case "num-lock":return this.ya[e]=c,c.onclick=function(){d.O&&d.O.Yc();nk(d,1144,!0)},!0;case "scroll-lock":return this.ya[e]= -c,c.onclick=function(){d.O&&d.O.Yc();nk(d,1145,!0)},!0;default:var g=b.toUpperCase().replace(/-/g,"_");if(void 0!==jk[g]&&"button"==a)return this.ya[e]=c,c.onclick=function(a,b,c){return function(){a.O&&a.O.Yc();ok(a,c,!0);nk(a,c,!0)}}(this,g,jk[g]),!0;if(void 0!==kk[b])return this.aa++,this.ya[e]=c,a=function(a,b,c){return function(){nk(a,c)}}(this,b,kk[b]),b=function(a,b,c){return function(){pk(a,c)}}(this,b,kk[b]),"ontouchstart"in window?(c.ontouchstart=a,c.ontouchend=b):(c.onmousedown=a,c.onmouseup= +f.Tb=function(a,b,c){var d=this,e=a+"-"+b;if(void 0===this.ya[e])switch(b){case "kbd":return c.onkeydown=function(a){return mk(d,a,!0)},c.onkeypress=function(a){a=a||window.event;a=a.which||a.keyCode;var b=!Y[a]||!!(d.kc&128);b||nk(d,a,!0);return b},c.onkeyup=function(a){return mk(d,a,!1)},!0;case "caps-lock":return this.ya[e]=c,c.onclick=function(){d.O&&d.O.Xc();nk(d,1020,!0)},!0;case "num-lock":return this.ya[e]=c,c.onclick=function(){d.O&&d.O.Xc();nk(d,1144,!0)},!0;case "scroll-lock":return this.ya[e]= +c,c.onclick=function(){d.O&&d.O.Xc();nk(d,1145,!0)},!0;default:var g=b.toUpperCase().replace(/-/g,"_");if(void 0!==jk[g]&&"button"==a)return this.ya[e]=c,c.onclick=function(a,b,c){return function(){a.O&&a.O.Xc();ok(a,c,!0);nk(a,c,!0)}}(this,g,jk[g]),!0;if(void 0!==kk[b])return this.aa++,this.ya[e]=c,a=function(a,b,c){return function(){nk(a,c)}}(this,b,kk[b]),b=function(a,b,c){return function(){pk(a,c)}}(this,b,kk[b]),"ontouchstart"in window?(c.ontouchstart=a,c.ontouchend=b):(c.onmousedown=a,c.onmouseup= c.onmouseout=b),!0}return!1};function qk(a,b,c){if(a.aa){for(var d in hk)if(b==hk[d]){b=+d;(d=gk[d])&&(b=d);break}for(var e in kk)if((d=kk[e]==b)||(d=b,97<=d&&122>=d&&(d-=32),d=kk[e]==d),d){(a=a.ya["key-"+e])&&void 0!==c&&(a.style.color=c?"#ffffff":"#000000",a.style.backgroundColor=c?"#000000":"#ffffff");break}}}f.Hc=function(a,b,c,d){this.na=b;this.O=c;this.ga=d;this.X=Ab(a,"ChipSet")};function Oj(a,b){a.Ca("keyboard reset",65792);a.A=[170];a.R=!0;b&&a.X&&Qj(a.X,a.A[0])} function Kj(a,b,c){a.Y!==c&&(a.Y=a.pa=c)&&(a.R=!0);a.S!==b&&(a.S=b)&&!a.pa&&Rj(a,!0);a.S&&a.pa&&(Oj(a,!0),a.pa=!1)}function Lj(a){var b=0;a.A.length&&a.R&&(b=a.A[0],a.X&&Qj(a.X,b));a.ta()&&a.Ca("scan code "+fa(b)+" available")}function Rj(a,b){0>=1);if(b&3584){if(!1===d)return!0;d=null}null==d?d=!((c?a.P:a.kc)&b):d||b&255&&(b=255);if(c){a.P&=~b;d&&(a.P|=b);c=b;var g,h;for(h in lk)d="led-"+h,e=lk[h],c&&c!=e||!(g=a.ya[d])||(g.style.backgroundColor=a.P&e?"#00ff00":"#000000")}else a.kc&=~b,d&&(a.kc|=b);return!0}}return!1} -function nk(a,b,c){if(Y[b]&&a.O&&a.O.oa.Eb){ik[b]&&a.B.length&&0e||(e==a.B.length&&(d={},d.xe=b,d.kc=a.kc,qk(a,b,!0),e++),0b.zd){if(!b.of){pk(a,b.xe);return}b.of=!1;c=a.qa}else c=1==b.zd++?500:100;b.xj=setTimeout(function(a){return function(){sk(a,b)}}(a),c)}}else pk(a,b.xe,!0)} +function nk(a,b,c){if(Y[b]&&a.O&&a.O.oa.Eb){ik[b]&&a.B.length&&0e||(e==a.B.length&&(d={},d.we=b,d.kc=a.kc,qk(a,b,!0),e++),0b.yd){if(!b.of){pk(a,b.we);return}b.of=!1;c=a.qa}else c=1==b.yd++?500:100;b.wj=setTimeout(function(a){return function(){sk(a,b)}}(a),c)}}else pk(a,b.we,!0)} function uk(a,b,c){var d=b;if(65<=b&&90>=b)!(a.kc&515)==c&&(d=b+32);else if(97<=b&&122>=b)!!(a.kc&515)==c&&(d=b-32);else if(!!(a.kc&3)==c){if(a=hk[b])d=a}else if(a=gk[b])d=a;return d}f.Mg=function(a){a||(this.kc&=-256)}; -function mk(a,b,c){var d=!0,e=!1,g=!1,h=b.keyCode,m=uk(a,h,!0);a.qh&&m==X["`"]&&(h=m=27);if(Y[h+1E3])if(m+=1E3,2==b.location&&(m+=2E3),ok(a,m,!1,c)){if(20==h||144==h||145==h)a.ja||(c=e=!0);if(!(c||91!=h&&93!=h))for(var q=0;q=b||97<=b&&122>=b;d>>>=8;){var h=0,m=d&255;224==g||225==g?e.push(g|(c?0:128)):(42==m?a.P&3||a.P&512&&b||(h=m):29==m?a.P&12||(h=m):56==m?a.P&48||(h=m):e.push(g|(c?0:128)),h&&(c?e.unshift(h):e.push(h|128)))}for(c=0;cd.A.length?(d.ta()&&d.Ca("scan code "+fa(g)+" buffered"),d.A.push(g),1==d.A.length&&d.X&&Qj(d.X,g)):(20== d.A.length&&d.A.push(255),d.Ca("scan code buffer overflow")))}}Pa(function(){for(var a=jb(window.document,"pcjs","keyboard"),b=0;bc.length)c=[!1,0,null,null,0,Array(5>b?Nk:Ok)];this.ga=a.ga;this.type=e[0];this.port=e[1];this.lb=b;this.ob=e[2];this.Wb=e[3];this.ud=d||e[4];65536<=this.ud&&720896<=this.ob&&(this.Wb=Math.min(this.ud>>2,32768));this.uc=c[0];this.Xc=c[1];this.df=c[2];this.Ia=c[3];this.qc=c[4]&255;this.Sg=c[4]>>8&255;this.sb=c[5];this.xh=Nk;this.Mf=Pk;if(5<=b){this.xh=Ok;this.Mf=Qk;b=c[6];void 0===b&&(b=[!1,0,Array(20), -0,3==g?0:1,0,0,Array(5),0,0,0,Array(9),0,[this.ob,this.Wb,this.ud],Array(this.ud>>2),-2147478512,0,-1,0,-1,0,-1,0,0,0,0,1,255,0,0,0,Array(256)]);this.wd=b[0];this.Jd=b[1];this.Ic=b[2];this.hh=Rk;this.Vg=b[3];this.ff=b[4];this.Ff=b[5];this.Nd=b[6];this.ue=b[7];this.jh=Sk;this.rj=b[8];this.sj=b[9];this.Md=b[10];this.Ld=b[11];this.ih=Tk;this.Bb=b[12];d=b[13];"number"==typeof d&&(d=[this.ob,this.Wb,d]);this.ob=d[0];this.Wb=d[1];d=this.ud>>2;if((this.ld=b[14])&&this.ld.lengthc.length)c=[!1,0,null,null,0,Array(5>b?Nk:Ok)];this.ga=a.ga;this.type=e[0];this.port=e[1];this.mb=b;this.pb=e[2];this.Wb=e[3];this.ud=d||e[4];65536<=this.ud&&720896<=this.pb&&(this.Wb=Math.min(this.ud>>2,32768));this.uc=c[0];this.Wc=c[1];this.df=c[2];this.Ia=c[3];this.qc=c[4]&255;this.Sg=c[4]>>8&255;this.sb=c[5];this.xh=Nk;this.Mf=Pk;if(5<=b){this.xh=Ok;this.Mf=Qk;b=c[6];void 0===b&&(b=[!1,0,Array(20), +0,3==g?0:1,0,0,Array(5),0,0,0,Array(9),0,[this.pb,this.Wb,this.ud],Array(this.ud>>2),-2147478512,0,-1,0,-1,0,-1,0,0,0,0,1,255,0,0,0,Array(256)]);this.Ge=b[0];this.zd=b[1];this.Ic=b[2];this.hh=Rk;this.Vg=b[3];this.ff=b[4];this.Ff=b[5];this.Md=b[6];this.te=b[7];this.jh=Sk;this.qj=b[8];this.rj=b[9];this.Ld=b[10];this.Kd=b[11];this.ih=Tk;this.Bb=b[12];d=b[13];"number"==typeof d&&(d=[this.pb,this.Wb,d]);this.pb=d[0];this.Wb=d[1];d=this.ud>>2;if((this.ld=b[14])&&this.ld.length>this.controller.Gi&255};Vk[17408]=function(a){return(this.controller.Bb=this.ia[(a&-4)+this.A])>>((a&3)<<3)&255};Vk[5120]=function(a){a+=this.A;var b=this.controller.Bb=this.ia[a&-2];return(a&1?b>>8:b)&255};Vk[1280]=function(a){a+=this.A;a=this.controller.Bb=this.ia[a];for(var b=this.controller.zh,c=this.controller.yh&b,d=0,e=128;e;)(a&b)==c&&(d|=e),c>>>=1,b>>>=1,e>>=1;return d}; -Vk[0]=function(a,b){var c=a+this.A,d;d=(b|b<<8|b<<16|b<<24)&this.controller.Hd|this.controller.ce;d=d&this.controller.Ib|this.controller.Bb&~this.controller.Ib;d=d&this.controller.rb|this.ia[c]&~this.controller.rb;this.ia[c]!=d&&(this.ia[c]=d,this.fb=!0)}; -Vk[32]=function(a,b){var c=a+this.A;b=b>>this.controller.Vc|b<<8-this.controller.Vc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.Hd|this.controller.ce;d=d&this.controller.Ib|this.controller.Bb&~this.controller.Ib;d=d&this.controller.rb|this.ia[c]&~this.controller.rb;this.ia[c]!=d&&(this.ia[c]=d,this.fb=!0)}; -Vk[96]=function(a,b){var c=a+this.A;b=b>>this.controller.Vc|b<<8-this.controller.Vc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.Hd|this.controller.ce;d&=this.controller.Bb;d=d&this.controller.Ib|this.controller.Bb&~this.controller.Ib;d=d&this.controller.rb|this.ia[c]&~this.controller.rb;this.ia[c]!=d&&(this.ia[c]=d,this.fb=!0)}; -Vk[160]=function(a,b){var c=a+this.A;b=b>>this.controller.Vc|b<<8-this.controller.Vc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.Hd|this.controller.ce;d|=this.controller.Bb;d=d&this.controller.Ib|this.controller.Bb&~this.controller.Ib;d=d&this.controller.rb|this.ia[c]&~this.controller.rb;this.ia[c]!=d&&(this.ia[c]=d,this.fb=!0)}; -Vk[224]=function(a,b){var c=a+this.A;b=b>>this.controller.Vc|b<<8-this.controller.Vc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.Hd|this.controller.ce;d^=this.controller.Bb;d=d&this.controller.Ib|this.controller.Bb&~this.controller.Ib;d=d&this.controller.rb|this.ia[c]&~this.controller.rb;this.ia[c]!=d&&(this.ia[c]=d,this.fb=!0)};Vk[4]=function(a,b){var c=(a&-4)+this.A,d=(a&3)<<3,d=b<>this.controller.Uc|b<<8-this.controller.Uc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.Hd|this.controller.be;d=d&this.controller.Ib|this.controller.Bb&~this.controller.Ib;d=d&this.controller.rb|this.ia[c]&~this.controller.rb;this.ia[c]!=d&&(this.ia[c]=d,this.fb=!0)}; +Vk[96]=function(a,b){var c=a+this.A;b=b>>this.controller.Uc|b<<8-this.controller.Uc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.Hd|this.controller.be;d&=this.controller.Bb;d=d&this.controller.Ib|this.controller.Bb&~this.controller.Ib;d=d&this.controller.rb|this.ia[c]&~this.controller.rb;this.ia[c]!=d&&(this.ia[c]=d,this.fb=!0)}; +Vk[160]=function(a,b){var c=a+this.A;b=b>>this.controller.Uc|b<<8-this.controller.Uc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.Hd|this.controller.be;d|=this.controller.Bb;d=d&this.controller.Ib|this.controller.Bb&~this.controller.Ib;d=d&this.controller.rb|this.ia[c]&~this.controller.rb;this.ia[c]!=d&&(this.ia[c]=d,this.fb=!0)}; +Vk[224]=function(a,b){var c=a+this.A;b=b>>this.controller.Uc|b<<8-this.controller.Uc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.Hd|this.controller.be;d^=this.controller.Bb;d=d&this.controller.Ib|this.controller.Bb&~this.controller.Ib;d=d&this.controller.rb|this.ia[c]&~this.controller.rb;this.ia[c]!=d&&(this.ia[c]=d,this.fb=!0)};Vk[4]=function(a,b){var c=(a&-4)+this.A,d=(a&3)<<3,d=b<>this.controller.Vc|b<<8-this.controller.Vc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.Ib;d=this.controller.yf&d|this.controller.Bb&~d;d=d&this.controller.rb|this.ia[c]&~this.controller.rb;this.ia[c]!=d&&(this.ia[c]=d,this.fb=!0)}; -function Wk(a){var b=[];if(void 0!==a.lb){b[0]=a.uc;b[1]=a.Xc;b[2]=a.df;b[3]=a.Ia;b[4]=a.qc|a.Sg<<8;b[5]=a.sb;if(5<=a.lb){var c=[];c[0]=a.wd;c[1]=a.Jd;c[2]=a.Ic;c[3]=a.Vg;c[4]=a.ff;c[5]=a.Ff;c[6]=a.Nd;c[7]=a.ue;c[8]=a.rj;c[9]=a.sj;c[10]=a.Md;c[11]=a.Ld;c[12]=a.Bb;c[13]=[a.ob,a.Wb,a.ud];var d;a:if(d=a.ld){var e=0,g=[];if(void 0!==d[0])for(var h=0;2>h;h++)for(var m=h;m>1;g[e++]=q;m=r}if(g.length>this.controller.Uc|b<<8-this.controller.Uc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.Ib;d=this.controller.yf&d|this.controller.Bb&~d;d=d&this.controller.rb|this.ia[c]&~this.controller.rb;this.ia[c]!=d&&(this.ia[c]=d,this.fb=!0)}; +function Wk(a){var b=[];if(void 0!==a.mb){b[0]=a.uc;b[1]=a.Wc;b[2]=a.df;b[3]=a.Ia;b[4]=a.qc|a.Sg<<8;b[5]=a.sb;if(5<=a.mb){var c=[];c[0]=a.Ge;c[1]=a.zd;c[2]=a.Ic;c[3]=a.Vg;c[4]=a.ff;c[5]=a.Ff;c[6]=a.Md;c[7]=a.te;c[8]=a.qj;c[9]=a.rj;c[10]=a.Ld;c[11]=a.Kd;c[12]=a.Bb;c[13]=[a.pb,a.Wb,a.ud];var d;a:if(d=a.ld){var e=0,g=[];if(void 0!==d[0])for(var h=0;2>h;h++)for(var m=h;m>1;g[e++]=q;m=r}if(g.length>3;for(c=0;c=d&&(T=d,E=!0);break;case "p":0<= -d&&3>=d&&(J=d);break;case "w":d=b.ob&&(g-=b.ob);a="";for(c=0;cJ?k(N):ea(N>>(J<<3)));E&&(g+=I-T);a&&(a+="\n");a+=U}a&&b.ga.V(a);b.B=g}else b.ga.V("no buffer")}else e.ga.V("BIOSMODE: "+fa(e.Ra)),b=e.B,Xk(b,"CRTC",b.qc,b.sb,b.Mf),5<=b.lb&&(Xk(b," GRC",b.Md,b.Ld,b.ih),Xk(b," SEQ",b.Nd,b.ue,b.jh),Xk(b," ATC",b.Jd,b.Ic,b.hh),b.ga.V(" ATCDATA: "+ -b.wd),Xk(b," FEAT",b.Ff),Xk(b," MISC",b.ff),Xk(b," STATUS0",b.Vg)),Xk(b," STATUS1",b.Ia),b.lb!=wk&&3!=b.lb||Xk(b," MODEREG",b.Xc),3==b.lb&&Xk(b," COLOR",b.df),5<=b.lb&&(b.ga.V(" LATCHES: 0x"+k(b.Bb)),b.ga.V(" ACCESS: "+ga(b.Yf)),b.ga.V("Use 'dump video [addr]' to dump video memory"));else e.ga.V("no active video card")})}if((this.P=Ab(a,"Keyboard"))&&this.ua){for(var g in this.ya)0c&&(a=Math.round(c/b*100)+"%")}this.me?(this.ua.style.width=a,this.ua.style.width=a,this.ua.style.display="block",this.ua.style.margin="auto"):(this.ja.style.width=a,this.ja.style.height="auto");this.ja.style.backgroundColor="black";this.ja.Ge();a=!0}this.Yc()}return a}; -function Ak(a,b){!b&&a.ja&&(a.me?a.ua.style.width=a.ua.style.height="":a.ja.style.width=a.ja.style.height="");a.Ca("notifyFullScreen("+b+")",!0);a.P&&(a.P.qh=b)}f.ne=function(a){var b=!1;this.S&&(a?this.S.ne&&(this.S.ne(),this.Y&&this.Y.Af(!0),b=!0):this.S.yj&&(this.S.yj(),this.Y&&this.Y.Af(!1),b=!0),this.Yc());return b};f.Af=function(a){this.Y&&(this.Y.Af(a),this.P&&(this.P.qh=a));var b=this.ya.lockPointer;b&&(b.textContent=a?"Press Esc to Unlock Pointer":this.dh)}; -function fl(a,b){var c=a.S;c&&!a.xd&&(c.addEventListener("touchstart",function(b){gl(a,b,!0)},!1),c.addEventListener("touchmove",function(b){gl(a,b)},!0),c.addEventListener("touchend",function(b){gl(a,b,!1)},!1),a.xd=b,a.hc=a.zc=a.Ef=-1)}f.Mg=function(a){this.je=a;this.P&&this.P.Mg(a)}; -function gl(a,b,c){var d,e;a.je&&b.preventDefault();var g=0,h=0;e=a.ua;do isNaN(e.offsetLeft)||(g+=e.offsetLeft,h+=e.offsetTop);while(e=e.offsetParent);var m=a.Da/a.ua.offsetWidth,q=a.Ma/a.ua.offsetHeight;b.targetTouches&&b.targetTouches.length?(d=b.targetTouches[0].pageX,e=b.targetTouches[0].pageY):(d=b.pageX,e=b.pageY);d=(d-g)*m;e=(e-h)*q;if(1==a.xd)d=d/(a.Da/3)|0,e=e/(a.Ma/3)|0,1!=e?e?nk(a.P,1040,!0):nk(a.P,1038,!0):1!=d&&(d?nk(a.P,1039,!0):nk(a.P,1037,!0));else if(a.Y){!0===c&&(a.Ef=b.timeStamp); -if(!1===c&&(b=b.timeStamp-a.Ef,a.V("processTouchEvent(false,"+b+")"),200>b)){a.Y.Fe(hl,!0);a.Y.Fe(hl,!1);return}if(c||0>a.hc||0>a.zc)a.hc=d,a.zc=e;c=Math.round(d-a.hc);b=Math.round(e-a.zc);a.hc=d;a.zc=e;a.Y.pf(c,b,a.hc,a.zc)}}f.pc=function(a,b){if(!b)if(!a||!this.restore)this.reset();else if(!this.restore(a))return!1;return!0};f.oc=function(a){return a&&this.save?this.save():!0}; -f.reset=function(){var a=!0,b=0;this.X&&(b=Vi(this.X));this.ra||(this.lb=3==b?wk:3);this.Ha=3;switch(this.lb){case Wj:b=7;break;case 5:var c=Ck[this.Lc];c&&(b=c[0]);b||(b=4);break;case wk:b=3;this.Ha=yk;break;default:b=2}this.Ja!==b&&(this.Ja=b,a=!0);this.B=null;this.Ba=this.hd=new Lk(this,wk);this.da=this.Mc=new Lk(this,3);5>this.lb?this.A=new Lk:(this.A=new Lk(this,this.lb,null,this.ud),il(this));Bl(this);this.Ra=null;this.ib=this.sa=-1;this.Za=0;Cl(this,this.Ha);if(this.B.ob&&a){a=this.B.ob+this.Ub; -for(b=this.B.ob;b>1&255,d=d>>8&-129,d>>4==(d&15)&&(d^=15)):(c=d&255,d=(d&256?7:112)|8&d>>8);ec(this.na,b,c|d<<8)}Wc(this,!0)}};function il(a){a.A.ff&1?(a.Ba=a.hd,a.da=a.A):(a.Ba=a.A,a.da=a.Mc)}f.save=function(){var a=new Re(this);Se(a,0,Wk(this.hd));Se(a,1,Wk(this.Mc));Se(a,2,[this.Ja,this.Ha,this.Ra]);Se(a,3,Wk(this.A));return a.data()}; -f.restore=function(a){var b=a[2];this.Ja=b[0];this.Ha=b[1];this.Ra=b[2];this.B=null;this.Ba=this.hd=new Lk(this,wk,a[0]);this.da=this.Mc=new Lk(this,3,a[1]);this.A=new Lk(this,this.lb,a[3],this.ud);this.A.uc&&il(this);Bl(this);if(!Dl(this))return!1;El(this);return!0}; -f.ll=function(a,b,c){if(c)this.Ta("Unable to load font ROM image (error "+c+")");else{try{var d=eval("("+b+")");if(!d.length){ya("Empty font ROM image: "+a);return}if(1==d.length){ya(d[0]);return}if(8192==d.length)Vj(this,d,[6144,0]);else{this.Ta("Unrecognized font data length ("+d.length+")");return}}catch(e){this.Ta("Font ROM data error: "+e.message);return}(this.qa||this.ga)&&ob(this)}}; -function Fl(a,b){if(1==b)return a.La[0]=Fk[0],a.La[1]=Fk[7],a.La;if(2==b){var c=a.B.df;if(a.B===a.A){var d=a.A.Ic[0],c=d&7;d&16&&(c|=8);18!=a.A.Ic[1]&&(c|=32)}a.La[0]=Fk[c&15];c=c&32?Hk:Gk;for(d=0;dg;g++)h=d[g]||0,m=h<<2&252,q=h>>4&252,h=h>>10&252,a.La[g]=[m,q,h,255];else{var r=d&&d[255];e=null!=c.Ic[15]?c.Ic:Ik;for(g=0;16>g;g++)h=e[g]&63,r?(h|= -(c.Ic[20]&12)<<4,c.Ic[16]&128&&(h&=-49,h|=(c.Ic[20]&3)<<4),h=d[h],m=h<<2&252,q=h>>4&252,h=h>>10&252):(m=(h&4?170:0)|(h&32?85:0),q=(h&2?170:0)|(h&16?85:0),h=(h&1?170:0)|(h&8?85:0)),a.La[g]=[m,q,h,255]}a.eb=!0}return a.La}function Vj(a,b,c,d){a.Kc=b;a.jd=c;a.tb=d} -function Bl(a,b){var c=!1;if(window&&a.Kc&&(!b||a.pa)){var d=0,e=a.tb?a.tb:8,g=Fl(a);Gl(a,3,a.jd[0],d,e,8,a.Kc,g)&&(c=!0);d=a.tb?0:2048;e=a.tb?a.tb:9;Gl(a,1,a.jd[1],d,e,14,a.Kc,Dk,Ek)&&(c=!0);a.tb&&Gl(a,a.lb,a.jd[1],0,a.tb,14,a.Kc,g)&&(c=!0)}return c}function Gl(a,b,c,d,e,g,h,m,q){var r=!1;null!=c&&(Hl(a,b,c,d,e,g,h,m,q)&&(r=!0),a.$g&&Hl(a,b<<1,c,d,e,g,h,m,q)&&(r=!0));return r} -function Hl(a,b,c,d,e,g,h,m,q){var r=!1,x=b&1?0:1,E=a.Ua[b],B=16>m.length?m.length:16;E||(E={Fc:e<ca||!N?ca:8,md=Za.createImageData(r.Fc,r.Gc),Na=0;256>Na;Na++){for(oa= -0;oa=ca-2,Xd=va[oa>(8<=rb&&192<=Na&&223>=Na?7:rb)?T:La;Il(md,Yd,Zd,$d);I&&Il(md,Yd+1,Zd,$d)}Za.putImageData(md,(Na&15)*r.Fc,(Na>>4)*r.Gc)}r.ze[J]="#"+k(T[0],2)+k(T[1],2)+k(T[2],2);r.Oi[J]=T;r.gh[J]=Ma;r=!0}}a.Ua[b]=E;return r}function Jl(a){0a.ib&&(a.ib=0):a.ib=-1} -function El(a){if(a.pa){for(var b=10;15>=b;b++)if(null==a.B.sb[b])return;var c=a.B.sb[10],b=c&31,d=a.B.sb[11]&31,e=a.B.sb[9]&31,g=!1;a.B===a.A&&(g=!0,7!=e||4!=b||d||(d=7));if(c&32||b>d&&!g||b>e)Kl(a);else{c=a.B.sb[15]+((a.B.sb[14]&63)<<8);a.sa!=c&&(Kl(a),a.sa=c);d=d-b+1;if(a.If!=b||a.ke!=d)a.If=b,a.ke=d;a.bb=e+1;Jl(a)}}} -function Kl(a){if(0<=a.sa){if(void 0!==a.fa){var b=a.fa[a.sa];if(b&131072){var b=b&-131073,c=a.sa%a.R,d=a.sa/a.R|0;a.pa&&a.Ua[a.pa]&&(a.nb&&Ll(a,c,d,b,a.nb),Ll(a,c,d,b));a.fa[a.sa]=b}}a.sa=-1}} -function Ml(a){var b,c=a.B;a.le=!1;var d=c.Ld[5];if(null!=d){b=1024;var e=0,g=c.Ld[3]&31;switch(d&3){case 0:if(g){e=32;switch(g&24){case 8:e=96;break;case 16:e=160;break;case 24:e=224}c.Vc=g&7}break;case 1:e=1;break;case 2:switch(g&24){default:e=2;break;case 8:e=98;break;case 16:e=162;break;case 24:e=226}break;case 3:a.lb==Wj&&(e=3,c.Vc=g&7)}d&8&&(b=1280);c=c.ue[4];null!=c&&(c&4||(b|=4096,e|=16),d&64&&(c&8&&(b|=16384,e|=4),a.le=!0));b|=e}return b} -function Nl(a,b){var c=a.B;c&&null!=b&&b!=c.Yf&&(c.Wg(b),a.na.Wg(c.ob,c.Wb,c.uh()))} -function Dl(a,b){var c,d=a.Ra,e=a.B;if(e)if(e.lb==wk)d=yk;else if(5<=e.lb){var d=null,g=e.ud>>2,h=32768=e.sb[18]?19:20:21:h&128||350>g?d=c?13:14:480<=g&&(d=3==a.Ja?17:18):d=c?7-d:6:d-=c?2:0);c=Ml(a)}}else e.Xc&8&&(e.Xc&2?(d=e.Xc&16?6:5,e.Xc&4||--d):(d=e.Xc&1?3:1,e.Xc&4&&--d));else a.Ra=null,null==d&&(d=a.Ha);if(!Cl(a,d,b))return!1;Nl(a,c);return!0} -function Cl(a,b,c){if(null!=b&&(b!=a.Ra||c)){a.Yg=0;a.Ra=b;a.eb=!1;b=a.B||(b==yk?a.Ba:a.da);if(b!=a.B||b.ob!=a.ob||b.Wb!=a.Wb){Kl(a);if(a.ob){if(!Yb(a.na,a.ob,a.Wb))return!1;a.B&&(a.B.uc=!1)}a.B=b;b.uc=!0;a.ob=b.ob;a.Wb=b.Wb;if(!Pb(a.na,b.ob,b.Wb,3,b===a.A?b:null))return!1}a.pa=0;a.R=a.$c;a.aa=a.od;a.Db=a.R;a.Nc=xk[yk][2];b=0;if(c=xk[a.Ra])a.R=c[0],a.aa=c[1],a.Nc=c[2],b=c[3],a.pa=c[4],4!=a.Ja&&7!=a.Ja||a.B!==a.A||3!=a.pa||(7==a.A.sb[9]?a.aa=43:a.pa=a.lb);a.se=a.R*a.aa|0;a.oe=a.se/a.Nc|0;a.Ub=a.oe; -a.kd=0;void 0!==b&&(a.Ub=(a.Ub<<1)+b|0,a.kd=a.Ub+b>>1);a.Ua.length&&(a.Na=a.Da/a.R|0,a.Oa=a.Ma/a.aa|0,a.pa?(b=a.Ua[a.pa],c=a.Ua[a.pa<<1],a.bh&&80==a.R?c&&a.Na>=3*c.Fc>>2&&(a.pa<<=1,b=c):(c&&a.Na>=c.Fc&&(a.pa<<=1,b=c),b&&(a.Na=b.Fc,a.Oa=b.Gc)),a.Yb=a.ac=0,b&&(a.Yb=a.R*b.Fc,a.ac=a.aa*b.Gc)):(a.Na=a.Oa=1,a.Yb=a.R,a.ac=a.aa),a.yb=a.qa.createImageData(a.Yb,a.ac),a.jb=window.document.createElement("canvas"),a.jb.width=a.Yb,a.jb.height=a.ac,a.nb=a.jb.getContext("2d"),a.Xd=a.Zd=0,a.md=a.Da,a.nd=a.Ma,b=a.Da- -a.R*a.Na,c=a.Ma-a.aa*a.Oa,0>1,a.md-=b),0>1,a.nd-=c),b||c)&&(a.qa.fillStyle=a.ua.style.backgroundColor,a.qa.fillRect(0,0,a.Da,a.Ma));a.eb=!1;Ol(a,!0);Wc(a)}return!0}function Il(a,b,c,d){b=(b+c*a.width)*d.length;a.data[b]=d[0];a.data[b+1]=d[1];a.data[b+2]=d[2];a.data[b+3]=d[3]}function Ol(a,b){a.Za=-1;a.Ea=!1;if(b){var c=a.oe;if(void 0===a.fa||a.fa.length!=c)a.fa=Array(c)}} -function Ll(a,b,c,d,e){var g=d&255,h=d>>8;d=h&15;var m=a.Ua[a.pa];m.kf&&(d=m.kf[d]);var q=h>>4&15;m.kf&&(q=m.kf[q]);e?(b*=m.Fc,c*=m.Gc,e.fillStyle=m.ze[q],e.fillRect(b,c,m.Fc,m.Gc)):(b=b*a.Na+a.Xd,c=c*a.Oa+a.Zd,a.qa.fillStyle=m.ze[q],a.qa.fillRect(b,c,a.Na,a.Oa));h&256&&(q=(g&15)*m.Fc,g=(g>>4)*m.Gc,e?e.drawImage(m.gh[d],q,g,m.Fc,m.Gc,b,c,m.Fc,m.Gc):a.qa.drawImage(m.gh[d],q,g,m.Fc,m.Gc,b,c,a.Na,a.Oa));h&512&&(g=a.If,h=a.ke,e?(a.bb&&a.bb!==m.Gc&&(g=g*m.Gc/a.bb|0,h=h*m.Gc/a.bb|0),e.fillStyle=m.ze[d], -e.fillRect(b,c+g,m.Fc,h)):(a.bb&&a.bb!==a.Oa&&(g=g*a.Oa/a.bb|0,h=h*a.Oa/a.bb|0),a.qa.fillStyle=m.ze[d],a.qa.fillRect(b,c+g,a.Na,h)))} -function Wc(a,b){if(a.oa.mc){var c=!1,d=a.B;d&&(d!==a.A?d.Xc&8&&(c=!0):d.Jd&32&&(c=!0));if(c||b){if(b)Ol(a,!0);else if(void 0===a.fa)return;var e=!1;!(b||++a.Yg&15)&&0<=a.ib&&(a.ib++,e=!0);var g=0,h=a.se,m=a.ob,c=m,q=c+a.Wb;19<=a.Ra&&(m=c=655360,q=c+65536);if(Pl(a,d)&8||d.af&&d.afq&&(r=q-c,0>r&&(r=0)); -q=c+r;if(d=!b&&a.Ea){for(var d=a.na,x=!0,E=c>>>d.Qa;0a.sa)return;g=a.sa;h=g+1}}if(a.pa){if(a.Ua[a.pa]){e=0;m=a.Za=0;d=1048575;r=a.B.Xc&32;5<=a.lb&&(r=a.B.Ic[16]&8);r&&(m=32768,d&=~m,a.ib&2||(d&=-65537));for(c+=g<<1;c>8|(B&255)<<8;var N=m,W=16;x>=d))>>(W-=d);Il(a.yb,x++,E,r[va])}x>J&&(J=x);E=U&&(U=E+1)}q+=2;g++;if(x>=a.R){x=0;E+=2;if(E>a.aa)break;E==a.aa&&(E=1,q=c+a.kd)}}a.Ea=!0;Ta.R?a.Db-a.R-B>>3:0;cW&&(ca=W)):(g<<=B,ca-=B,a.Ea=!1):(a.Ea&&g===a.fa[e]?(r+=ca,ca=0):a.fa[e]=g,e++);if(ca){r>>=8;r>T&&(T=r);x=I&&(I=x+1)}c+=U;if(r>=a.R){r=0;if(++x>a.aa)break;c+=N}}B||(a.Ea=!0);Ea.R?a.Db-a.R-I>>3:0;cN&&(W=N)):(B<<=I,W-=I,a.Ea=!1):(a.Ea&&B===a.fa[g]?(d+=W,W=0):a.fa[g]=B,g++);if(W){dE&&(E=d);r=J&&(J=r+1)}if(d>=a.R){d=0;if(++r>a.aa)break;c+=U}}I||(a.Ea=!0);xd&&(b.Eh=d,d=-d|0);d%b.Ah>b.il&&(c|=1);d%b.Dh>b.kl&&(c|=9);b.Hi=d/b.Dh|0;return c}f.Hk=function(a,b){return Ql(this,this.Ba,a,b)};f.Wl=function(a,b,c){var d=this.Ba;d.Sg=d.qc;d.qc=b&31;l(this,a,b,c,"CRTC.INDX")};f.Gk=function(a,b){return Rl(this,this.Ba,a,b)};f.Vl=function(a,b,c){Sl(this,this.Ba,a,b,c)};f.Ik=function(a,b){return Tl(this,this.Ba,b)};f.Xl=function(a,b,c){a=this.Ba;l(this,a.port+4,b,c,"MODE");a.Xc=b;Dl(this,!1)}; -f.Jk=function(a,b){return Ul(this,this.Ba,b)};f.qj=function(a,b,c){this.A.Ff=this.A.Ff&-4|b&3;l(this,a,b,c,"FEAT")};f.jj=function(a,b){var c=this.A.wd?this.A.Ic[this.A.Jd&31]:this.A.Jd;b&&!this.ta()||l(this,960,null,b,"ATC."+(this.A.wd?this.A.hh[this.A.Jd&31]:"INDX"),c);this.A.wd=!this.A.wd;return c}; -f.pj=function(a,b,c){var d=this.A,e=d.Jd&32;if(d.wd){d.wd=!1;var g=d.Jd&31;if(16<=g||!e)c&&!this.ta()||l(this,a,b,c,"ATC."+d.hh[g]),d.Ic[g]=b,this.eb=!1,Ol(this,void 0)}else d.Jd=b,l(this,a,b,c,"ATC.INDX"),d.wd=!0,b&32&&!e&&Bl(this,!0)&&Wc(this,!0),d.Cf=(d.sb[12]<<8)+d.sb[13]|0,d.af=0}; -f.Tk=function(a,b){var c=0;if(5==this.lb)c=3-((this.A.ff&12)>>2),c=(this.Lc&1<>this.A.xc&63;b&&!this.ta()||l(this,969,null,b,"DAC.DATA["+fa(this.A.fd)+"]["+fa(this.A.xc)+"]",c);this.A.xc+=6;12>3;for(c=0;c=d&&(T=d,E=!0);break;case "p":0<= +d&&3>=d&&(J=d);break;case "w":d=b.pb&&(g-=b.pb);a="";for(c=0;cJ?k(N):ea(N>>(J<<3)));E&&(g+=I-T);a&&(a+="\n");a+=U}a&&b.ga.V(a);b.B=g}else b.ga.V("no buffer")}else e.ga.V("BIOSMODE: "+fa(e.Ra)),b=e.B,Xk(b,"CRTC",b.qc,b.sb,b.Mf),5<=b.mb&&(Xk(b," GRC",b.Ld,b.Kd,b.ih),Xk(b," SEQ",b.Md,b.te,b.jh),Xk(b," ATC",b.zd,b.Ic,b.hh),Xk(b," ATCINDX", +b.zd),b.ga.V(" ATCDATA: "+b.Ge),Xk(b," FEAT",b.Ff),Xk(b," MISC",b.ff),Xk(b," STATUS0",b.Vg)),Xk(b," STATUS1",b.Ia),b.mb!=wk&&3!=b.mb||Xk(b," MODEREG",b.Wc),3==b.mb&&Xk(b," COLOR",b.df),5<=b.mb&&(b.ga.V(" LATCHES: 0x"+k(b.Bb)),b.ga.V(" ACCESS: "+ga(b.Yf)),b.ga.V("Use 'dump video [addr]' to dump video memory"));else e.ga.V("no active video card")})}if((this.P=Ab(a,"Keyboard"))&&this.ua){for(var g in this.ya)0c&&(a=Math.round(c/b*100)+"%")}this.le?(this.ua.style.width=a,this.ua.style.width=a,this.ua.style.display="block",this.ua.style.margin="auto"):(this.ja.style.width=a,this.ja.style.height="auto");this.ja.style.backgroundColor="black";this.ja.Fe();a=!0}this.Xc()}return a}; +function Ak(a,b){!b&&a.ja&&(a.le?a.ua.style.width=a.ua.style.height="":a.ja.style.width=a.ja.style.height="");a.Ca("notifyFullScreen("+b+")",!0);a.P&&(a.P.qh=b)}f.me=function(a){var b=!1;this.S&&(a?this.S.me&&(this.S.me(),this.Y&&this.Y.Af(!0),b=!0):this.S.xj&&(this.S.xj(),this.Y&&this.Y.Af(!1),b=!0),this.Xc());return b};f.Af=function(a){this.Y&&(this.Y.Af(a),this.P&&(this.P.qh=a));var b=this.ya.lockPointer;b&&(b.textContent=a?"Press Esc to Unlock Pointer":this.dh)}; +function fl(a,b){var c=a.S;c&&!a.wd&&(c.addEventListener("touchstart",function(b){gl(a,b,!0)},!1),c.addEventListener("touchmove",function(b){gl(a,b)},!0),c.addEventListener("touchend",function(b){gl(a,b,!1)},!1),a.wd=b,a.hc=a.zc=a.Ef=-1)}f.Mg=function(a){this.ie=a;this.P&&this.P.Mg(a)}; +function gl(a,b,c){var d,e;a.ie&&b.preventDefault();var g=0,h=0;e=a.ua;do isNaN(e.offsetLeft)||(g+=e.offsetLeft,h+=e.offsetTop);while(e=e.offsetParent);var m=a.Da/a.ua.offsetWidth,q=a.Ma/a.ua.offsetHeight;b.targetTouches&&b.targetTouches.length?(d=b.targetTouches[0].pageX,e=b.targetTouches[0].pageY):(d=b.pageX,e=b.pageY);d=(d-g)*m;e=(e-h)*q;if(1==a.wd)d=d/(a.Da/3)|0,e=e/(a.Ma/3)|0,1!=e?e?nk(a.P,1040,!0):nk(a.P,1038,!0):1!=d&&(d?nk(a.P,1039,!0):nk(a.P,1037,!0));else if(a.Y){!0===c&&(a.Ef=b.timeStamp); +if(!1===c&&(b=b.timeStamp-a.Ef,a.V("processTouchEvent(false,"+b+")"),200>b)){a.Y.Ee(hl,!0);a.Y.Ee(hl,!1);return}if(c||0>a.hc||0>a.zc)a.hc=d,a.zc=e;c=Math.round(d-a.hc);b=Math.round(e-a.zc);a.hc=d;a.zc=e;a.Y.pf(c,b,a.hc,a.zc)}}f.pc=function(a,b){if(!b)if(!a||!this.restore)this.reset();else if(!this.restore(a))return!1;return!0};f.oc=function(a){return a&&this.save?this.save():!0}; +f.reset=function(){var a=!0,b=0;this.X&&(b=Vi(this.X));this.ra||(this.mb=3==b?wk:3);this.Ha=3;switch(this.mb){case Wj:b=7;break;case 5:var c=Ck[this.Kc];c&&(b=c[0]);b||(b=4);break;case wk:b=3;this.Ha=yk;break;default:b=2}this.Ja!==b&&(this.Ja=b,a=!0);this.B=null;this.Ba=this.hd=new Lk(this,wk);this.da=this.Lc=new Lk(this,3);5>this.mb?this.A=new Lk:(this.A=new Lk(this,this.mb,null,this.ud),il(this));Bl(this);this.Ra=null;this.ib=this.sa=-1;this.Za=0;Cl(this,this.Ha);if(this.B.pb&&a){a=this.B.pb+this.Ub; +for(b=this.B.pb;b>1&255,d=d>>8&-129,d>>4==(d&15)&&(d^=15)):(c=d&255,d=(d&256?7:112)|8&d>>8);ec(this.na,b,c|d<<8)}Wc(this,!0)}};function il(a){a.A.ff&1?(a.Ba=a.hd,a.da=a.A):(a.Ba=a.A,a.da=a.Lc)}f.save=function(){var a=new Re(this);Se(a,0,Wk(this.hd));Se(a,1,Wk(this.Lc));Se(a,2,[this.Ja,this.Ha,this.Ra]);Se(a,3,Wk(this.A));return a.data()}; +f.restore=function(a){var b=a[2];this.Ja=b[0];this.Ha=b[1];this.Ra=b[2];this.B=null;this.Ba=this.hd=new Lk(this,wk,a[0]);this.da=this.Lc=new Lk(this,3,a[1]);this.A=new Lk(this,this.mb,a[3],this.ud);this.A.uc&&il(this);Bl(this);if(!Dl(this))return!1;El(this);return!0}; +f.nl=function(a,b,c){if(c)this.Ta("Unable to load font ROM image (error "+c+")");else{try{var d=eval("("+b+")");if(!d.length){ya("Empty font ROM image: "+a);return}if(1==d.length){ya(d[0]);return}if(8192==d.length)Vj(this,d,[6144,0]);else{this.Ta("Unrecognized font data length ("+d.length+")");return}}catch(e){this.Ta("Font ROM data error: "+e.message);return}(this.qa||this.ga)&&ob(this)}}; +function Fl(a,b){if(1==b)return a.La[0]=Fk[0],a.La[1]=Fk[7],a.La;if(2==b){var c=a.B.df;if(a.B===a.A){var d=a.A.Ic[0],c=d&7;d&16&&(c|=8);18!=a.A.Ic[1]&&(c|=32)}a.La[0]=Fk[c&15];c=c&32?Hk:Gk;for(d=0;dg;g++)h=d[g]||0,m=h<<2&252,q=h>>4&252,h=h>>10&252,a.La[g]=[m,q,h,255];else{var r=d&&d[255];e=null!=c.Ic[15]?c.Ic:Ik;for(g=0;16>g;g++)h=e[g]&63,r?(h|= +(c.Ic[20]&12)<<4,c.Ic[16]&128&&(h&=-49,h|=(c.Ic[20]&3)<<4),h=d[h],m=h<<2&252,q=h>>4&252,h=h>>10&252):(m=(h&4?170:0)|(h&32?85:0),q=(h&2?170:0)|(h&16?85:0),h=(h&1?170:0)|(h&8?85:0)),a.La[g]=[m,q,h,255]}a.eb=!0}return a.La}function Vj(a,b,c,d){a.Jc=b;a.jd=c;a.tb=d} +function Bl(a,b){var c=!1;if(window&&a.Jc&&(!b||a.pa)){var d=0,e=a.tb?a.tb:8,g=Fl(a);Gl(a,3,a.jd[0],d,e,8,a.Jc,g)&&(c=!0);d=a.tb?0:2048;e=a.tb?a.tb:9;Gl(a,1,a.jd[1],d,e,14,a.Jc,Dk,Ek)&&(c=!0);a.tb&&Gl(a,a.mb,a.jd[1],0,a.tb,14,a.Jc,g)&&(c=!0)}return c}function Gl(a,b,c,d,e,g,h,m,q){var r=!1;null!=c&&(Hl(a,b,c,d,e,g,h,m,q)&&(r=!0),a.$g&&Hl(a,b<<1,c,d,e,g,h,m,q)&&(r=!0));return r} +function Hl(a,b,c,d,e,g,h,m,q){var r=!1,x=b&1?0:1,E=a.Ua[b],B=16>m.length?m.length:16;E||(E={Fc:e<ca||!N?ca:8,od=Za.createImageData(r.Fc,r.Gc),Na=0;256>Na;Na++){for(oa= +0;oa=ca-2,Xd=va[oa>(8<=sb&&192<=Na&&223>=Na?7:sb)?T:La;Il(od,Yd,Zd,$d);I&&Il(od,Yd+1,Zd,$d)}Za.putImageData(od,(Na&15)*r.Fc,(Na>>4)*r.Gc)}r.ye[J]="#"+k(T[0],2)+k(T[1],2)+k(T[2],2);r.Oi[J]=T;r.gh[J]=Ma;r=!0}}a.Ua[b]=E;return r}function Jl(a){0a.ib&&(a.ib=0):a.ib=-1} +function El(a){if(a.pa){for(var b=10;15>=b;b++)if(null==a.B.sb[b])return;var c=a.B.sb[10],b=c&31,d=a.B.sb[11]&31,e=a.B.sb[9]&31,g=!1;a.B===a.A&&(g=!0,7!=e||4!=b||d||(d=7));if(c&32||b>d&&!g||b>e)Kl(a);else{c=a.B.sb[15]+((a.B.sb[14]&63)<<8);a.sa!=c&&(Kl(a),a.sa=c);d=d-b+1;if(a.If!=b||a.je!=d)a.If=b,a.je=d;a.bb=e+1;Jl(a)}}} +function Kl(a){if(0<=a.sa){if(void 0!==a.fa){var b=a.fa[a.sa];if(b&131072){var b=b&-131073,c=a.sa%a.R,d=a.sa/a.R|0;a.pa&&a.Ua[a.pa]&&(a.ob&&Ll(a,c,d,b,a.ob),Ll(a,c,d,b));a.fa[a.sa]=b}}a.sa=-1}} +function Ml(a){var b,c=a.B;a.ke=!1;var d=c.Kd[5];if(null!=d){b=1024;var e=0,g=c.Kd[3]&31;switch(d&3){case 0:if(g){e=32;switch(g&24){case 8:e=96;break;case 16:e=160;break;case 24:e=224}c.Uc=g&7}break;case 1:e=1;break;case 2:switch(g&24){default:e=2;break;case 8:e=98;break;case 16:e=162;break;case 24:e=226}break;case 3:a.mb==Wj&&(e=3,c.Uc=g&7)}d&8&&(b=1280);c=c.te[4];null!=c&&(c&4||(b|=4096,e|=16),d&64&&(c&8&&(b|=16384,e|=4),a.ke=!0));b|=e}return b} +function Nl(a,b){var c=a.B;c&&null!=b&&b!=c.Yf&&(c.Wg(b),a.na.Wg(c.pb,c.Wb,c.uh()))} +function Dl(a,b){var c,d=a.Ra,e=a.B;if(e)if(e.mb==wk)d=yk;else if(5<=e.mb){var d=null,g=e.ud>>2,h=32768=e.sb[18]?19:20:21:h&128||350>g?d=c?13:14:480<=g&&(d=3==a.Ja?17:18):d=c?7-d:6:d-=c?2:0);c=Ml(a)}}else e.Wc&8&&(e.Wc&2?(d=e.Wc&16?6:5,e.Wc&4||--d):(d=e.Wc&1?3:1,e.Wc&4&&--d));else a.Ra=null,null==d&&(d=a.Ha);if(!Cl(a,d,b))return!1;Nl(a,c);return!0} +function Cl(a,b,c){if(null!=b&&(b!=a.Ra||c)){a.Yg=0;a.Ra=b;a.eb=!1;b=a.B||(b==yk?a.Ba:a.da);if(b!=a.B||b.pb!=a.pb||b.Wb!=a.Wb){Kl(a);if(a.pb){if(!Yb(a.na,a.pb,a.Wb))return!1;a.B&&(a.B.uc=!1)}a.B=b;b.uc=!0;a.pb=b.pb;a.Wb=b.Wb;if(!Pb(a.na,b.pb,b.Wb,3,b===a.A?b:null))return!1}a.pa=0;a.R=a.$c;a.aa=a.od;a.Db=a.R;a.Mc=xk[yk][2];b=0;if(c=xk[a.Ra])a.R=c[0],a.aa=c[1],a.Mc=c[2],b=c[3],a.pa=c[4],4!=a.Ja&&7!=a.Ja||a.B!==a.A||3!=a.pa||(7==a.A.sb[9]?a.aa=43:a.pa=a.mb);a.re=a.R*a.aa|0;a.ne=a.re/a.Mc|0;a.Ub=a.ne; +a.kd=0;void 0!==b&&(a.Ub=(a.Ub<<1)+b|0,a.kd=a.Ub+b>>1);a.Ua.length&&(a.Na=a.Da/a.R|0,a.Oa=a.Ma/a.aa|0,a.pa?(b=a.Ua[a.pa],c=a.Ua[a.pa<<1],a.bh&&80==a.R?c&&a.Na>=3*c.Fc>>2&&(a.pa<<=1,b=c):(c&&a.Na>=c.Fc&&(a.pa<<=1,b=c),b&&(a.Na=b.Fc,a.Oa=b.Gc)),a.Yb=a.ac=0,b&&(a.Yb=a.R*b.Fc,a.ac=a.aa*b.Gc)):(a.Na=a.Oa=1,a.Yb=a.R,a.ac=a.aa),a.yb=a.qa.createImageData(a.Yb,a.ac),a.jb=window.document.createElement("canvas"),a.jb.width=a.Yb,a.jb.height=a.ac,a.ob=a.jb.getContext("2d"),a.Wd=a.Yd=0,a.md=a.Da,a.nd=a.Ma,b=a.Da- +a.R*a.Na,c=a.Ma-a.aa*a.Oa,0>1,a.md-=b),0>1,a.nd-=c),b||c)&&(a.qa.fillStyle=a.ua.style.backgroundColor,a.qa.fillRect(0,0,a.Da,a.Ma));a.eb=!1;Ol(a,!0);Wc(a)}return!0}function Il(a,b,c,d){b=(b+c*a.width)*d.length;a.data[b]=d[0];a.data[b+1]=d[1];a.data[b+2]=d[2];a.data[b+3]=d[3]}function Ol(a,b){a.Za=-1;a.Ea=!1;if(b){var c=a.ne;if(void 0===a.fa||a.fa.length!=c)a.fa=Array(c)}} +function Ll(a,b,c,d,e){var g=d&255,h=d>>8;d=h&15;var m=a.Ua[a.pa];m.kf&&(d=m.kf[d]);var q=h>>4&15;m.kf&&(q=m.kf[q]);e?(b*=m.Fc,c*=m.Gc,e.fillStyle=m.ye[q],e.fillRect(b,c,m.Fc,m.Gc)):(b=b*a.Na+a.Wd,c=c*a.Oa+a.Yd,a.qa.fillStyle=m.ye[q],a.qa.fillRect(b,c,a.Na,a.Oa));h&256&&(q=(g&15)*m.Fc,g=(g>>4)*m.Gc,e?e.drawImage(m.gh[d],q,g,m.Fc,m.Gc,b,c,m.Fc,m.Gc):a.qa.drawImage(m.gh[d],q,g,m.Fc,m.Gc,b,c,a.Na,a.Oa));h&512&&(g=a.If,h=a.je,e?(a.bb&&a.bb!==m.Gc&&(g=g*m.Gc/a.bb|0,h=h*m.Gc/a.bb|0),e.fillStyle=m.ye[d], +e.fillRect(b,c+g,m.Fc,h)):(a.bb&&a.bb!==a.Oa&&(g=g*a.Oa/a.bb|0,h=h*a.Oa/a.bb|0),a.qa.fillStyle=m.ye[d],a.qa.fillRect(b,c+g,a.Na,h)))} +function Wc(a,b){if(a.oa.mc){var c=!1,d=a.B;d&&(d!==a.A?d.Wc&8&&(c=!0):d.zd&32&&(c=!0));if(c||b){if(b)Ol(a,!0);else if(void 0===a.fa)return;var e=!1;!(b||++a.Yg&15)&&0<=a.ib&&(a.ib++,e=!0);var g=0,h=a.re,m=a.pb,c=m,q=c+a.Wb;19<=a.Ra&&(m=c=655360,q=c+65536);if(Pl(a,d)&8||d.af&&d.afq&&(r=q-c,0>r&&(r=0)); +q=c+r;if(d=!b&&a.Ea){for(var d=a.na,x=!0,E=c>>>d.Qa;0a.sa)return;g=a.sa;h=g+1}}if(a.pa){if(a.Ua[a.pa]){e=0;m=a.Za=0;d=1048575;r=a.B.Wc&32;5<=a.mb&&(r=a.B.Ic[16]&8);r&&(m=32768,d&=~m,a.ib&2||(d&=-65537));for(c+=g<<1;c>8|(B&255)<<8;var N=m,W=16;x>=d))>>(W-=d);Il(a.yb,x++,E,r[va])}x>J&&(J=x);E=U&&(U=E+1)}q+=2;g++;if(x>=a.R){x=0;E+=2;if(E>a.aa)break;E==a.aa&&(E=1,q=c+a.kd)}}a.Ea=!0;Ta.R?a.Db-a.R-B>>3:0;cW&&(ca=W)):(g<<=B,ca-=B,a.Ea=!1):(a.Ea&&g===a.fa[e]?(r+=ca,ca=0):a.fa[e]=g,e++);if(ca){r>>=8;r>T&&(T=r);x=I&&(I=x+1)}c+=U;if(r>=a.R){r=0;if(++x>a.aa)break;c+=N}}B||(a.Ea=!0);Ea.R?a.Db-a.R-I>>3:0;cN&&(W=N)):(B<<=I,W-=I,a.Ea=!1):(a.Ea&&B===a.fa[g]?(d+=W,W=0):a.fa[g]=B,g++);if(W){dE&&(E=d);r=J&&(J=r+1)}if(d>=a.R){d=0;if(++r>a.aa)break;c+=U}}I||(a.Ea=!0);xd&&(b.Eh=d,d=-d|0);d%b.Ah>b.kl&&(c|=1);d%b.Dh>b.ml&&(c|=9);b.Hi=d/b.Dh|0;return c}f.Ik=function(a,b){return Ql(this,this.Ba,a,b)};f.Yl=function(a,b,c){var d=this.Ba;d.Sg=d.qc;d.qc=b&31;l(this,a,b,c,"CRTC.INDX")};f.Hk=function(a,b){return Rl(this,this.Ba,a,b)};f.Xl=function(a,b,c){Sl(this,this.Ba,a,b,c)};f.Jk=function(a,b){return Tl(this,this.Ba,b)};f.Zl=function(a,b,c){a=this.Ba;l(this,a.port+4,b,c,"MODE");a.Wc=b;Dl(this,!1)}; +f.Kk=function(a,b){return Ul(this,this.Ba,b)};f.pj=function(a,b,c){this.A.Ff=this.A.Ff&-4|b&3;l(this,a,b,c,"FEAT")};f.ik=function(a,b){var c=this.A.zd;b&&!this.ta()||l(this,960,null,b,"ATC.INDX",c);return c};f.Jj=function(a,b){var c=this.A.Ic[this.A.zd&31];b&&!this.ta()||l(this,960,null,b,"ATC."+this.A.hh[this.A.zd&31],c);return c}; +f.oj=function(a,b,c){var d=this.A,e=d.zd&32;if(d.Ge){d.Ge=!1;var g=d.zd&31;if(16<=g||!e)c&&!this.ta()||l(this,a,b,c,"ATC."+d.hh[g]),d.Ic[g]=b,this.eb=!1,Ol(this,void 0)}else d.zd=b,l(this,a,b,c,"ATC.INDX"),d.Ge=!0,b&32&&!e&&Bl(this,!0)&&Wc(this,!0),d.Cf=(d.sb[12]<<8)+d.sb[13]|0,d.af=0}; +f.Uk=function(a,b){var c=0;if(5==this.mb)c=3-((this.A.ff&12)>>2),c=(this.Kc&1<>this.A.xc&63;b&&!this.ta()||l(this,969,null,b,"DAC.DATA["+fa(this.A.fd)+"]["+fa(this.A.xc)+"]",c);this.A.xc+=6;12Missing <canvas> support. Please try a newer web browser.";break}e.setAttribute("class","pcjs-canvas");e.setAttribute("width",d.screenWidth);e.setAttribute("height",d.screenHeight);e.style.backgroundColor=d.screenColor;e.style.height="auto";0<=(window?window.navigator.userAgent:"").indexOf("MSIE")&&(c.onresize= function(a,b,c,d){return function(){b.style.height=(a.clientWidth*d/c|0)+"px"}}(c,e,d.screenWidth,d.screenHeight),c.onresize());c.appendChild(e);var g=window.document.createElement("textarea");Ea("iOS")&&(g.setAttribute("autocapitalize","off"),g.setAttribute("autocorrect","off"));c.appendChild(g);var h=e.getContext("2d"),d=new Z(d,e,h,g,c);ib(d,c)}}); -function Vl(a){this.ua=a.adapter;switch(this.ua){case 1:this.ja=1016;this.da=4;break;case 2:this.ja=760;this.da=3;break;default:ya("Unrecognized serial adapter #"+this.ua);return}this.S=null;Ta.call(this,"SerialPort",a,Vl,4194304);var b=a.binding,c;a=Wl;b&&(void 0===c&&(c="Panel"),(c=gb(c,this.id))&&(b=c.ya[b])&&this.Tb(null,a,b))}bb(Vl);var Wl="buffer";f=Vl.prototype;f.Qi=function(a,b){return a==this.Pd?(this.Y=b,this):null}; +function Vl(a){this.ua=a.adapter;switch(this.ua){case 1:this.ja=1016;this.da=4;break;case 2:this.ja=760;this.da=3;break;default:ya("Unrecognized serial adapter #"+this.ua);return}this.S=null;Ta.call(this,"SerialPort",a,Vl,4194304);var b=a.binding,c;a=Wl;b&&(void 0===c&&(c="Panel"),(c=gb(c,this.id))&&(b=c.ya[b])&&this.Tb(null,a,b))}bb(Vl);var Wl="buffer";f=Vl.prototype;f.Qi=function(a,b){return a==this.Od?(this.Y=b,this):null}; f.Tb=function(a,b,c){var d=this;switch(b){case Wl:return this.ya[b]=this.S=c,c.onkeydown=function(a){a=a||window.event;var b=a.keyCode;if(8===b||a.ctrlKey&&65<=b&&90>=b)a.preventDefault&&a.preventDefault(),64>8:this.fa;l(this,a,null,b,this.B&128?"DLM":"IER",c);return c};f.Ck=function(a,b){var c=this.R;l(this,a,null,b,"IIR",c);return c}; -f.Dk=function(a,b){var c=this.B;l(this,a,null,b,"LCR",c);return c};f.Fk=function(a,b){var c=this.P;l(this,a,null,b,"MCR",c);return c};f.Ek=function(a,b){var c=this.A;l(this,a,null,b,"LSR",c);return c};f.Kk=function(a,b){var c=this.qa;l(this,a,null,b,"MSR",c);return c}; -f.gm=function(a,b,c){l(this,a,b,c,this.B&128?"DLL":"THR");this.B&128?this.pa=this.pa&-256|b:(this.sa=b,this.A&=-97,this.S?(13!=b&&(8==b?this.S.value=this.S.value.slice(0,-1):(this.S.value+=String.fromCharCode(b),this.S.scrollTop=this.S.scrollHeight)),a=!0):a=!1,a&&(this.A|=96))};f.Sl=function(a,b,c){l(this,a,b,c,this.B&128?"DLM":"IER");this.B&128?this.pa=this.pa&255|b<<8:this.fa=b};f.Tl=function(a,b,c){l(this,a,b,c,"LCR");this.B=b}; -f.Ul=function(a,b,c){var d=this.P;l(this,a,b,c,"MCR");this.P=b;this.Y&&(d^b)&3&&(a=this.Y,b=this.P,(c=3==(b&3))?a.uc||(d=!1,a.P&2||(a.reset(),a.Ca("serial mouse reset"),d=!0),a.P&1||(a.Ca("serial mouse ID requested"),d=!0),d&&(Xl(a.R,[77,77]),a.Ca("serial mouse ID sent")),bm(a),a.uc=c):a.uc&&(a.Ca("serial mouse inactive"),cm(a),a.uc=c),a.P=b)}; -var Yl={0:Vl.prototype.Qk,1:Vl.prototype.Bk,2:Vl.prototype.Ck,3:Vl.prototype.Dk,4:Vl.prototype.Fk,5:Vl.prototype.Ek,6:Vl.prototype.Kk},Zl={0:Vl.prototype.gm,1:Vl.prototype.Sl,3:Vl.prototype.Tl,4:Vl.prototype.Ul};Pa(function(){for(var a=jb(window.document,"pcjs","serial"),b=0;b>8:this.fa;l(this,a,null,b,this.B&128?"DLM":"IER",c);return c};f.Dk=function(a,b){var c=this.R;l(this,a,null,b,"IIR",c);return c}; +f.Ek=function(a,b){var c=this.B;l(this,a,null,b,"LCR",c);return c};f.Gk=function(a,b){var c=this.P;l(this,a,null,b,"MCR",c);return c};f.Fk=function(a,b){var c=this.A;l(this,a,null,b,"LSR",c);return c};f.Lk=function(a,b){var c=this.qa;l(this,a,null,b,"MSR",c);return c}; +f.im=function(a,b,c){l(this,a,b,c,this.B&128?"DLL":"THR");this.B&128?this.pa=this.pa&-256|b:(this.sa=b,this.A&=-97,this.S?(13!=b&&(8==b?this.S.value=this.S.value.slice(0,-1):(this.S.value+=String.fromCharCode(b),this.S.scrollTop=this.S.scrollHeight)),a=!0):a=!1,a&&(this.A|=96))};f.Ul=function(a,b,c){l(this,a,b,c,this.B&128?"DLM":"IER");this.B&128?this.pa=this.pa&255|b<<8:this.fa=b};f.Vl=function(a,b,c){l(this,a,b,c,"LCR");this.B=b}; +f.Wl=function(a,b,c){var d=this.P;l(this,a,b,c,"MCR");this.P=b;this.Y&&(d^b)&3&&(a=this.Y,b=this.P,(c=3==(b&3))?a.uc||(d=!1,a.P&2||(a.reset(),a.Ca("serial mouse reset"),d=!0),a.P&1||(a.Ca("serial mouse ID requested"),d=!0),d&&(Xl(a.R,[77,77]),a.Ca("serial mouse ID sent")),bm(a),a.uc=c):a.uc&&(a.Ca("serial mouse inactive"),cm(a),a.uc=c),a.P=b)}; +var Yl={0:Vl.prototype.Rk,1:Vl.prototype.Ck,2:Vl.prototype.Dk,3:Vl.prototype.Ek,4:Vl.prototype.Gk,5:Vl.prototype.Fk,6:Vl.prototype.Lk},Zl={0:Vl.prototype.im,1:Vl.prototype.Ul,3:Vl.prototype.Vl,4:Vl.prototype.Wl};Pa(function(){for(var a=jb(window.document,"pcjs","serial"),b=0;ba.X||0>a.S)a.X=b.clientX,a.S=b.clientY;a.ja?(c=b.movementX||b.mozMovementX||b.webkitMovementX||0,d=b.movementY||b.mozMovementY||b.webkitMovementY||0):(c=b.clientX-a.X,d=b.clientY-a.S);a.X=b.clientX;a.S=b.clientY;a.pf(c,d,a.X,a.S)}} -f.Fe=function(a,b){if(this.uc&&this.O&&this.O.oa.Eb){var c="mouse button"+a+" "+(b?"dn":"up");switch(a){case hl:this.da!=b&&(this.da=b,hm(this,c));break;case 2:this.fa!=b&&(this.fa=b,hm(this,c))}}};f.pf=function(a,b,c,d){this.uc&&this.O&&this.O.oa.Eb&&(a||b)&&(this.Y=a,this.aa=b,hm(this,null,c,d))}; +function gm(a,b,c){if(void 0!==c){var d;!(d=!1!==a.ja)&&(d=a.B.length)&&(d=a.B[0],d=d.Zg?d.me(!0):!1);d||(a.ja=null);a.Ee(b.button,c)}else{if(0>a.X||0>a.S)a.X=b.clientX,a.S=b.clientY;a.ja?(c=b.movementX||b.mozMovementX||b.webkitMovementX||0,d=b.movementY||b.mozMovementY||b.webkitMovementY||0):(c=b.clientX-a.X,d=b.clientY-a.S);a.X=b.clientX;a.S=b.clientY;a.pf(c,d,a.X,a.S)}} +f.Ee=function(a,b){if(this.uc&&this.O&&this.O.oa.Eb){var c="mouse button"+a+" "+(b?"dn":"up");switch(a){case hl:this.da!=b&&(this.da=b,hm(this,c));break;case 2:this.fa!=b&&(this.fa=b,hm(this,c))}}};f.pf=function(a,b,c,d){this.uc&&this.O&&this.O.oa.Eb&&(a||b)&&(this.Y=a,this.aa=b,hm(this,null,c,d))}; function hm(a,b,c,d){var e=64|(a.da?32:0)|(a.fa?16:0)|(a.aa&192)>>4|(a.Y&192)>>6,g=a.Y&63,h=a.aa&63;a.ta(4194304)&&a.Ca((b?b+": ":"")+(void 0!==d?"mouse ("+c+","+d+"): ":"")+"serial packet ["+fa(e)+","+fa(g)+","+fa(h)+"]",0,!0);Xl(a.R,[e,g,h]);a.Y=a.aa=0}Pa(function(){for(var a=jb(window.document,"pcjs","mouse"),b=0;b>2;var e=d=0,a=new DataView(a,0,c);h.A=Array(h.Lb);for(c=0;cb.indexOf("/api/v1/dump")&&(a=ia(b),"json"==a?g=encodeURI(b):"demandrw"==this.mode||"demandro"==this.mode?(g=nm(this,b),this.Tf=!0):(c="path",d="&mbhd=10",!b.indexOf("http:")||!b.indexOf("ftp:")||0<="dsk ima img 360 720 12 144".split(" ").indexOf(a)?(c="disk",d="&mbhd=0"):-1!==b.indexOf("/",b.length-1)&&(c="dir"),g=xa()+ -"/api/v1/dump?"+c+"="+encodeURIComponent(b)+(this.Le?"":d)+"&format=json")),wa(g,!0,null,this,this.Tj,b)}; -f.Tj=function(a,b,c,d){var e=null;this.Oe=!1;var g=0>c&&this.pa&&!this.pa.oa.mc;if(this.Tf)c?this.controller.Ta('Unable to connect to disk "'+d+'" (error '+c+": "+b+")",g):(this.R=!0,e=this);else if(c)this.controller.Ta('Unable to load disk "'+this.P+'" (error '+c+")",g);else try{if(0h&&0b.indexOf("/api/v1/dump")&&(a=ia(b),"json"==a?g=encodeURI(b):"demandrw"==this.mode||"demandro"==this.mode?(g=nm(this,b),this.Tf=!0):(c="path",d="&mbhd=10",!b.indexOf("http:")||!b.indexOf("ftp:")||0<="dsk ima img 360 720 12 144".split(" ").indexOf(a)?(c="disk",d="&mbhd=0"):-1!==b.indexOf("/",b.length-1)&&(c="dir"),g=xa()+ +"/api/v1/dump?"+c+"="+encodeURIComponent(b)+(this.Le?"":d)+"&format=json")),wa(g,!0,null,this,this.Uj,b)}; +f.Uj=function(a,b,c,d){var e=null;this.Oe=!1;var g=0>c&&this.pa&&!this.pa.oa.mc;if(this.Tf)c?this.controller.Ta('Unable to connect to disk "'+d+'" (error '+c+": "+b+")",g):(this.R=!0,e=this);else if(c)this.controller.Ta('Unable to load disk "'+this.P+'" (error '+c+")",g);else try{if(0h&&0b.indexOf("0x")&&'["'!=b.substr(0,2)?JSON.parse(b.replace(/([a-z]+):/gm,'"$1":').replace(/\/\/[^\n]*/gm,"")):eval("("+b+")");if(m.length)if(1==m.length)ya(m[0]);else{this.Lb=m.length;this.Mb=m[0].length;this.Sb=m[0][0].length;var q=m[0][0][0];this.Hb=q&&q.length||512;for(b=a=0;b>2,x=q.pattern;void 0===x&&(x=q.pattern=0);var E=q.data;if(void 0===E){var B=q.bytes;if(void 0!== -B&&B.length){for(var g=r<<2,T=B.length;Tb&&(b=0);2E3>2,e=Array(d),g=0;g>2,e=a.data;a=a.pattern;for(var g=0;g>8&255;c[d++]=h>>16&255;c[d++]=h>>24&255}return c}function tm(a,b){var c=-1;if(a&&b>2,c=(d>((b&3)<<3)&255;return c} -f.write=function(a,b,c){if(this.Oe)return!1;if(b>2;b=(b&3)<<3;for(var h=d.length;h<=g;h++)d[h]=e;a.Qc?g=a.rd+a.Qc&&(a.Qc+=g-(a.rd+a.Qc)+1):(a.rd=g,a.Qc=1);d[g]=d[g]&~(255<>2;b=(b&3)<<3;for(var h=d.length;h<=g;h++)d[h]=e;a.Pc?g=a.rd+a.Pc&&(a.Pc+=g-(a.rd+a.Pc)+1):(a.rd=g,a.Pc=1);d[g]=d[g]&~(255<=this.A.length||q>=this.A[m].length||r>=this.A[m][q].length){c="sector (CHS="+m+":"+q+":"+r+") out of range ("+ -b+" changes applied)";b=-1;break}if(this.Oe){c="unable to modify write-protected disk";b=-1;break}e=h[g++];g=h[g++];h=e+g.length;if(m=this.A[m][q][r]){for(q=m.data.length;qb&&-2!=b&&this.controller.Ta("Unable to restore disk '"+this.P+": "+c);return b}; +b+" changes applied)";b=-1;break}if(this.Oe){c="unable to modify write-protected disk";b=-1;break}e=h[g++];g=h[g++];h=e+g.length;if(m=this.A[m][q][r]){for(q=m.data.length;qb&&-2!=b&&this.controller.Ta("Unable to restore disk '"+this.P+": "+c);return b}; f.toJSON=function(){var a=JSON.stringify(this.A,function(a,c){return"file"==a?void 0:c}),a=a.replace(/,"length":512/gm,"").replace(/,"pattern":0/gm,""),a=a.replace(/"(sector|length|data|pattern)":/gm,"$1:"),a=a.replace(/,"[^"]*":([0-9]+|true|false)/gm,""),a=a.replace(/(sector|length|data|pattern):/gm,'"$1":');return a=a.replace(/([\]}]),/gm,"$1,\n")}; -function um(a){Ta.call(this,"FDC",a,um,524288);this.dmaRead=this.Ej;this.dmaWrite=this.Fj;this.dmaFormat=this.Qj;this.aa=null;if(a.autoMount&&(this.aa=a.autoMount,"string"==typeof this.aa))try{this.aa=eval("("+a.autoMount+")")}catch(b){ya("FDC auto-mount error: "+b.message+" ("+a.autoMount+")"),this.aa=null}this.B=[];this.qa=!Ea("Mobi")&&window&&"FileReader"in window}bb(um);aa={}; -var vm={3:{Cd:3,Vd:0,name:aa.Rm},4:{Cd:2,Vd:1,name:aa.Pm},5:{Cd:9,Vd:7,name:aa.Zm},6:{Cd:9,Vd:7,name:aa.Km},7:{Cd:2,Vd:0,name:aa.Mm},8:{Cd:1,Vd:2,name:aa.Qm},10:{Cd:2,Vd:7,name:aa.Lm},13:{Cd:6,Vd:7,name:aa.xm},15:{Cd:3,Vd:0,name:aa.Om}};f=um.prototype; +function um(a){Ta.call(this,"FDC",a,um,524288);this.dmaRead=this.Dj;this.dmaWrite=this.Ej;this.dmaFormat=this.Rj;this.aa=null;if(a.autoMount&&(this.aa=a.autoMount,"string"==typeof this.aa))try{this.aa=eval("("+a.autoMount+")")}catch(b){ya("FDC auto-mount error: "+b.message+" ("+a.autoMount+")"),this.aa=null}this.B=[];this.qa=!Ea("Mobi")&&window&&"FileReader"in window}bb(um);aa={}; +var vm={3:{Cd:3,Ud:0,name:aa.Tm},4:{Cd:2,Ud:1,name:aa.Rm},5:{Cd:9,Ud:7,name:aa.an},6:{Cd:9,Ud:7,name:aa.Mm},7:{Cd:2,Ud:0,name:aa.Om},8:{Cd:1,Ud:2,name:aa.Sm},10:{Cd:2,Ud:7,name:aa.Nm},13:{Cd:6,Ud:7,name:aa.zm},15:{Cd:3,Ud:0,name:aa.Qm}};f=um.prototype; f.Tb=function(a,b,c){var d=this;switch(b){case "listDisks":return this.ya[b]=c,c.onchange=function(){var a=d.ya.descDisk,b=c.options[c.selectedIndex];if(a&&b){var h={};if(b=b.getAttribute("data-value"))try{h=eval("({"+b+"})")}catch(m){ya("FDC option error: "+m.message)}b=h.desc;void 0===b&&(b="");h=h.href;void 0!==h&&(b=''+b+"");a.innerHTML=b}},!0;case "descDisk":case "listDrives":return this.ya[b]=c,c.onchange=function(){var a=da(c.value,10);null!=a&&wm(d,a)}, !0;case "loadDrive":return this.ya[b]=c,c.onclick=function(){var a=d.ya.listDisks;a&&xm(d,a.options[a.selectedIndex].text,a.value)},!0;case "mountDrive":return this.qa?(this.ya[b]=c,c.addEventListener("change",function(){var a=c.children[0];a.children[1].disabled=!a.children[0].files.length}),c.onsubmit=function(a){if(a=a.currentTarget[1].files[0]){var b=a.name;xm(d,ha(b,!0),b,a)}return!1}):c.parentNode.removeChild(c),!0}return!1}; f.Hc=function(a,b,c,d){this.na=b;this.O=c;this.ga=d;this.pa=a;this.X=Ab(a,"ChipSet");ym(this);gc(b,this,zm);kc(b,this,Am);this.qa&&Bm(this,"Local Disk","?");Bm(this,"Remote Disk","??");Cm(this)||ob(this)}; f.pc=function(a,b){if(!b){if(!a||!this.restore){if(this.reset(),this.pa.rh){this.B=[];for(var c=0;ch.Ka.restore(B)&&(m=!1);m&&h.Ka&&void 0!==h.gb&&(h.qb=h.Ka.seek(h.Jb,h.kb,h.ub));m||(e=!1)}a.Y=b[c++]||0;a.sa=b[c]||0;return e}f.Yi=function(a){var b;a=this.A[a];if(void 0!==a){b={};for(var c in a)b[c]=a[c]}return b}; -f.vj=function(a,b,c){if(a.Ka){var d=a.Ka.info(),e=d[2],g=d[1]*e;if(b+c<=d[0]*g)return a.Jb=Math.floor(b/g),b%=g,a.kb=Math.floor(b/e),a.ub=b%e+1,a.Cb=c*d[3],a.wb=0,!0}return!1};function Cm(a,b){b||(a.fa=0);if(a.aa)for(var c in a.aa){var d=a.aa[c];if(d.name&&d.path){var e=c.charCodeAt(0)-65;if(0<=e&&eh.Ka.restore(B)&&(m=!1);m&&h.Ka&&void 0!==h.gb&&(h.qb=h.Ka.seek(h.Jb,h.kb,h.ub));m||(e=!1)}a.Y=b[c++]||0;a.sa=b[c]||0;return e}f.Yi=function(a){var b;a=this.A[a];if(void 0!==a){b={};for(var c in a)b[c]=a[c]}return b}; +f.uj=function(a,b,c){if(a.Ka){var d=a.Ka.info(),e=d[2],g=d[1]*e;if(b+c<=d[0]*g)return a.Jb=Math.floor(b/g),b%=g,a.kb=Math.floor(b/e),a.ub=b%e+1,a.Cb=c*d[3],a.wb=0,!0}return!1};function Cm(a,b){b||(a.fa=0);if(a.aa)for(var c in a.aa){var d=a.aa[c];if(d.name&&d.path){var e=c.charCodeAt(0)-65;if(0<=e&&ea.Lb||g[1]>a.Mb)&&(this.Ta('Diskette "'+c+'" too large for drive '+String.fromCharCode(65+a.hb)),b=null);b?(a.Ka=b,a.uj=c,a.we=d,Gm(this,c,d,b),g=b.info(),this.Y|=128,this.Ta('Mounted diskette "'+c+'" in drive '+String.fromCharCode(65+a.hb),a.he||e),a.$f=g[0],a.vf=g[1],a.wf=g[2]):a.Je=!1;a.he&&(a.he=!1,--this.fa||ob(this));wm(this,a.hb)}; -function Bm(a,b,c){if(a=a.ya.listDisks){for(var d=0;d=this.P&&(this.Ia&=-81,this.R=this.P=0);return c}; -f.Ml=function(a,b,c){this.ta()&&l(this,a,b,c,"DATA["+this.P+"]");this.P=vm[a].Cd){b=!1;this.R=0;a=Hm(this);var d,e,g,h,m=a&31;switch(m){case 3:Hm(this);Hm(this);Im(this);break;case 4:c=Hm(this);this.hb=c&3;d=this.A[this.hb];Im(this);Jm(this,(d.wb&-16777216)>>>24);break;case 5:case 6:c=Hm(this);b=c>>2&1;this.hb=c&3;d=this.A[this.hb];d.kb=b;c=d.Jb=Hm(this);e=Hm(this);g=d.ub=Hm(this);h=Hm(this);d.Cb=128<>2&1;this.hb=c&3;d= -this.A[this.hb];c=d.Jb;e=d.kb=b;g=d.ub=1;h=0;d.wb=0;d.Ka&&(d.qb=d.Ka.seek(d.Jb,d.kb,d.ub))?h=d.qb.length>>8:d.wb=72;Km(this,d,a,b,c,e,g,h);b=!0;break;case 13:c=Hm(this);b=c>>2&1;this.hb=c&3;d=this.A[this.hb];c=d.Jb;e=d.kb=b;g=1;h=Hm(this);d.Cb=128<>2&1,c=Hm(this),d.Jb+=c-d.Td,0>d.Jb&&(d.Jb=0),d.Jb>=d.Lb&&(d.Jb=d.Lb-1),d.Td=c,d.wb=32,d.Jb||(d.wb|=268435456),Im(this),b=!0}0a.Lb||g[1]>a.Mb)&&(this.Ta('Diskette "'+c+'" too large for drive '+String.fromCharCode(65+a.hb)),b=null);b?(a.Ka=b,a.tj=c,a.ve=d,Gm(this,c,d,b),g=b.info(),this.Y|=128,this.Ta('Mounted diskette "'+c+'" in drive '+String.fromCharCode(65+a.hb),a.ge||e),a.$f=g[0],a.vf=g[1],a.wf=g[2]):a.Je=!1;a.ge&&(a.ge=!1,--this.fa||ob(this));wm(this,a.hb)}; +function Bm(a,b,c){if(a=a.ya.listDisks){for(var d=0;d=this.P&&(this.Ia&=-81,this.R=this.P=0);return c}; +f.Ol=function(a,b,c){this.ta()&&l(this,a,b,c,"DATA["+this.P+"]");this.P=vm[a].Cd){b=!1;this.R=0;a=Hm(this);var d,e,g,h,m=a&31;switch(m){case 3:Hm(this);Hm(this);Im(this);break;case 4:c=Hm(this);this.hb=c&3;d=this.A[this.hb];Im(this);Jm(this,(d.wb&-16777216)>>>24);break;case 5:case 6:c=Hm(this);b=c>>2&1;this.hb=c&3;d=this.A[this.hb];d.kb=b;c=d.Jb=Hm(this);e=Hm(this);g=d.ub=Hm(this);h=Hm(this);d.Cb=128<>2&1;this.hb=c&3;d= +this.A[this.hb];c=d.Jb;e=d.kb=b;g=d.ub=1;h=0;d.wb=0;d.Ka&&(d.qb=d.Ka.seek(d.Jb,d.kb,d.ub))?h=d.qb.length>>8:d.wb=72;Km(this,d,a,b,c,e,g,h);b=!0;break;case 13:c=Hm(this);b=c>>2&1;this.hb=c&3;d=this.A[this.hb];c=d.Jb;e=d.kb=b;g=1;h=Hm(this);d.Cb=128<>2&1,c=Hm(this),d.Jb+=c-d.Sd,0>d.Jb&&(d.Jb=0),d.Jb>=d.Lb&&(d.Jb=d.Lb-1),d.Sd=c,d.wb=32,d.Jb||(d.wb|=268435456),Im(this),b=!0}0>>8);Jm(a,(b.wb&16711680)>>>16);var q=0;if(e!=b.Jb||g!=b.kb)q=h=1;c&128&&(g^=q,d||(q=0));Jm(a,e+q);Jm(a,g);Jm(a,h);Jm(a,m)}function Hm(a){var b=a.S[a.R];a.R++;return b}function Im(a){a.R=a.P=0}function Jm(a,b){a.S[a.P++]=b} -f.Ej=function(a,b,c){if(void 0===b||0>b){b=-1;var d=null,e=0;if(!a.wb&&a.Ka){do{if(a.qb&&(e=a.gb,0<=(b=tm(a.qb,a.gb++)))){d=a.qb;break}a.qb=a.Ka.seek(a.Jb,a.kb,a.ub);if(!a.qb){a.wb=1088;break}a.gb=0;Lm(a)}while(1)}c(b,!1,d,e)}else c(-1,!1)};f.Fj=function(a,b){return void 0!==b&&0<=b?Mm(a,b):-1}; -f.Qj=function(a,b){var c;if(void 0!==b&&0<=b)a:if(c=b,a.wb)c=-1;else{a.ad[a.Ee++]=c;if(a.Ee==a.ad.length){a.Jb=a.ad[0];a.kb=a.ad[1];a.ub=a.ad[2];a.Cb=128<Mm(a,a.Ri)){c=-1;break a}a.Pf++}a.Pf>=a.Ud&&(c=-1)}else c=-1;return c};function Mm(a,b){if(a.wb||!a.Ka)return-1;do{if(a.qb&&a.Ka.write(a.qb,a.gb++,b))break;a.qb=a.Ka.seek(a.Jb,a.kb,a.ub);if(!a.qb){a.wb=8256;b=-1;break}a.gb=0;Lm(a)}while(1);return b} -function Lm(a){a.ub++;a.ub>=a.wf+1&&(a.ub=1,a.kb++,a.kb>=a.vf&&(a.kb=0,a.Jb++))}var zm={1012:um.prototype.yk,1013:um.prototype.wk,1015:um.prototype.xk},Am={1010:um.prototype.Nl,1013:um.prototype.Ml,1015:um.prototype.Ll};Pa(function(){for(var a=jb(window.document,"pcjs","fdc"),b=0;bb){b=-1;var d=null,e=0;if(!a.wb&&a.Ka){do{if(a.qb&&(e=a.gb,0<=(b=tm(a.qb,a.gb++)))){d=a.qb;break}a.qb=a.Ka.seek(a.Jb,a.kb,a.ub);if(!a.qb){a.wb=1088;break}a.gb=0;Lm(a)}while(1)}c(b,!1,d,e)}else c(-1,!1)};f.Ej=function(a,b){return void 0!==b&&0<=b?Mm(a,b):-1}; +f.Rj=function(a,b){var c;if(void 0!==b&&0<=b)a:if(c=b,a.wb)c=-1;else{a.ad[a.De++]=c;if(a.De==a.ad.length){a.Jb=a.ad[0];a.kb=a.ad[1];a.ub=a.ad[2];a.Cb=128<Mm(a,a.Ri)){c=-1;break a}a.Pf++}a.Pf>=a.Td&&(c=-1)}else c=-1;return c};function Mm(a,b){if(a.wb||!a.Ka)return-1;do{if(a.qb&&a.Ka.write(a.qb,a.gb++,b))break;a.qb=a.Ka.seek(a.Jb,a.kb,a.ub);if(!a.qb){a.wb=8256;b=-1;break}a.gb=0;Lm(a)}while(1);return b} +function Lm(a){a.ub++;a.ub>=a.wf+1&&(a.ub=1,a.kb++,a.kb>=a.vf&&(a.kb=0,a.Jb++))}var zm={1012:um.prototype.zk,1013:um.prototype.xk,1015:um.prototype.yk},Am={1010:um.prototype.Pl,1013:um.prototype.Ol,1015:um.prototype.Nl};Pa(function(){for(var a=jb(window.document,"pcjs","fdc"),b=0;bq.Ka.restore(h)&&(T=!1),T&&void 0!==q.gb&&(q.qb=q.Ka.seek(q.Od,q.kb,q.ub+q.Of)));T||(e=!1);null!=a.sa&&1>=d&&(a.sa|=(g.type&3)<<(1-d<<1))}0<=a.hb&&(a.B=a.A[a.hb]); -return e}f.Yi=function(a){var b;a=this.A[a];if(void 0!==a){b={};for(var c in a)b[c]=a[c]}return b};function Vm(a,b,c){if(b){var d=0,e=0;null==c&&((d=b.Be[2])?e=b.Be[0]<<8|b.Be[1]:c=b.type);null==c||d||(d=Om[a.Ba][c][1],e=Om[a.Ba][c][0]);d&&((c=Om[a.Ba][b.type])&&e!=c[0]&&d!=c[1]&&a.Ta("Warning: drive parameters ("+e+","+d+") do not match drive type "+b.type+" ("+c[0]+","+c[1]+")"),b.Lb=e,b.Mb=d,null==b.Ka&&(b.Ka=new im(a,b,b.mode)))}} -f.vj=function(a,b,c){if(a.Ka){var d=a.Ka.info(),e=d[0];if(e){var g=d[2],h=d[1]*g;if(b+c<=e*h)return a.Od=Math.floor(b/h),b%=h,a.kb=Math.floor(b/g),a.ub=b%g,a.Cb=c*d[3],a.errorCode=0,!0}}return!1}; -function Tm(a,b){b||(a.fa=0);for(var c=0;c=this.P&&(this.R=this.P=0,this.Ia&=-15);return c}; -f.im=function(a,b,c){l(this,a,b,c,"DATA["+this.P+"]");this.P=a&&(this.Ia|=2,this.Ia&=-2,Wm(this))};f.Zk=function(a,b){var c=this.Ia;l(this,a,null,b,"STATUS",c);this.R=a.B.Hb?(a.Ia=128,Ym(a.B,function(b){0<=b?(Zm(a),a.Ia=88):(a.Ia=1,a.aa=16)},!1)):a.Ia=80));return d} -f.fk=function(a,b){return Xm(this,a,b)|Xm(this,a,b)<<8};function $m(a,b,c,d){if(a.B&&a.B.Cb>=a.B.Hb)if(0>an(a.B,c))a.Ia=1,a.aa=16;else if(1==a.B.gb||a.B.gb==a.B.Hb)a.ta(1048832)&&l(a,b,c,d,"DATA["+a.B.gb+"]"),1=a.B.Hb&&(a.Ia|=8))}f.tl=function(a,b,c){$m(this,a,b&255,c);$m(this,a,b>>8&255,c)};f.hk=function(a,b){var c=this.aa;l(this,a,null,b,"ERROR",c);return c};f.yl=function(a,b,c){l(this,a,b,c,"WPREC");this.Ra=b}; -f.ik=function(a,b){var c=this.da;l(this,a,null,b,"SECCNT",c);return c};f.wl=function(a,b,c){l(this,a,b,c,"SECCNT");this.da=b};f.jk=function(a,b){var c=this.Ha;l(this,a,null,b,"SECNUM",c);return c};f.xl=function(a,b,c){l(this,a,b,c,"SECNUM");this.Ha=b};f.ek=function(a,b){var c=this.Ea;l(this,a,null,b,"CYLLO",c);return c};f.sl=function(a,b,c){l(this,a,b,c,"CYLLO");this.Ea=b};f.dk=function(a,b){var c=this.Da;l(this,a,null,b,"CYLHI",c);return c};f.rl=function(a,b,c){l(this,a,b,c,"CYLHI");this.Da=b}; -f.gk=function(a,b){var c=this.ua;l(this,a,null,b,"DRVHD",c);return c};f.ul=function(a,b,c){l(this,a,b,c,"DRVHD");this.ua=b;this.Ia=this.A[this.ua&16?1:0]?this.Ia|80:this.Ia&-65};f.kk=function(a,b){var c=this.Ia;l(this,a,null,b,"STATUS",c);return c};f.ql=function(a,b,c){l(this,a,b,c,"COMMAND");this.La=b;this.X&&Dj(this.X,14);bn(this)};f.vl=function(a,b,c){l(this,a,b,c,"FDR");this.ja&4&&!(b&4)&&(this.aa=1);this.ja=b}; -function bn(a){var b=!1,c=a.La,d=a.ua&16?1:0,e=a.ua&15,g=a.Ea|(a.Da&3)<<8,h=a.Ha,m=a.da||256;a.hb=-1;a.B=null;a.aa=0;a.Ia=80;var q=a.A[d];q?(q.Od=g,q.kb=e,q.ub=h,q.Cb=m*q.Hb,c=144<=c?c:c&240,q.qb=null,q.gb=0,q.errorCode=0,a.hb=d,a.B=q):c=-1;switch(c&240){case 16:b=!0;break;case 32:a.Ia=128;Ym(q,function(b){0<=b&&a.X?(Zm(a),a.Ia=88):(a.Ia=1,a.aa=16)},!1);break;case 48:a.Ia=8;break;case 64:b=!0;break;case 112:b=!0;break;case 144:a.aa=1;b=!0;break;case 145:q.Mb=e+1,q.Sb=m,b=!0}b&&Zm(a)} +b&&(b=[]);for(d=0;dq.Ka.restore(h)&&(T=!1),T&&void 0!==q.gb&&(q.qb=q.Ka.seek(q.Nd,q.kb,q.ub+q.Of)));T||(e=!1);null!=a.sa&&1>=d&&(a.sa|=(g.type&3)<<(1-d<<1))}0<=a.hb&&(a.B=a.A[a.hb]); +return e}f.Yi=function(a){var b;a=this.A[a];if(void 0!==a){b={};for(var c in a)b[c]=a[c]}return b};function Vm(a,b,c){if(b){var d=0,e=0;null==c&&((d=b.Ae[2])?e=b.Ae[0]<<8|b.Ae[1]:c=b.type);null==c||d||(d=Om[a.Ba][c][1],e=Om[a.Ba][c][0]);d&&((c=Om[a.Ba][b.type])&&e!=c[0]&&d!=c[1]&&a.Ta("Warning: drive parameters ("+e+","+d+") do not match drive type "+b.type+" ("+c[0]+","+c[1]+")"),b.Lb=e,b.Mb=d,null==b.Ka&&(b.Ka=new im(a,b,b.mode)))}} +f.uj=function(a,b,c){if(a.Ka){var d=a.Ka.info(),e=d[0];if(e){var g=d[2],h=d[1]*g;if(b+c<=e*h)return a.Nd=Math.floor(b/h),b%=h,a.kb=Math.floor(b/g),a.ub=b%g,a.Cb=c*d[3],a.errorCode=0,!0}}return!1}; +function Tm(a,b){b||(a.fa=0);for(var c=0;c=this.P&&(this.R=this.P=0,this.Ia&=-15);return c}; +f.km=function(a,b,c){l(this,a,b,c,"DATA["+this.P+"]");this.P=a&&(this.Ia|=2,this.Ia&=-2,Wm(this))};f.$k=function(a,b){var c=this.Ia;l(this,a,null,b,"STATUS",c);this.R=a.B.Hb?(a.Ia=128,Ym(a.B,function(b){0<=b?(Zm(a),a.Ia=88):(a.Ia=1,a.aa=16)},!1)):a.Ia=80));return d} +f.Hj=function(a,b){return Xm(this,a,b)|Xm(this,a,b)<<8};function $m(a,b,c,d){if(a.B&&a.B.Cb>=a.B.Hb)if(0>an(a.B,c))a.Ia=1,a.aa=16;else if(1==a.B.gb||a.B.gb==a.B.Hb)a.ta(1048832)&&l(a,b,c,d,"DATA["+a.B.gb+"]"),1=a.B.Hb&&(a.Ia|=8))}f.vl=function(a,b,c){$m(this,a,b&255,c);$m(this,a,b>>8&255,c)};f.hk=function(a,b){var c=this.aa;l(this,a,null,b,"ERROR",c);return c};f.Al=function(a,b,c){l(this,a,b,c,"WPREC");this.Ra=b}; +f.jk=function(a,b){var c=this.da;l(this,a,null,b,"SECCNT",c);return c};f.yl=function(a,b,c){l(this,a,b,c,"SECCNT");this.da=b};f.kk=function(a,b){var c=this.Ha;l(this,a,null,b,"SECNUM",c);return c};f.zl=function(a,b,c){l(this,a,b,c,"SECNUM");this.Ha=b};f.fk=function(a,b){var c=this.Ea;l(this,a,null,b,"CYLLO",c);return c};f.ul=function(a,b,c){l(this,a,b,c,"CYLLO");this.Ea=b};f.ek=function(a,b){var c=this.Da;l(this,a,null,b,"CYLHI",c);return c};f.tl=function(a,b,c){l(this,a,b,c,"CYLHI");this.Da=b}; +f.gk=function(a,b){var c=this.ua;l(this,a,null,b,"DRVHD",c);return c};f.wl=function(a,b,c){l(this,a,b,c,"DRVHD");this.ua=b;this.Ia=this.A[this.ua&16?1:0]?this.Ia|80:this.Ia&-65};f.lk=function(a,b){var c=this.Ia;l(this,a,null,b,"STATUS",c);return c};f.sl=function(a,b,c){l(this,a,b,c,"COMMAND");this.La=b;this.X&&Dj(this.X,14);bn(this)};f.xl=function(a,b,c){l(this,a,b,c,"FDR");this.ja&4&&!(b&4)&&(this.aa=1);this.ja=b}; +function bn(a){var b=!1,c=a.La,d=a.ua&16?1:0,e=a.ua&15,g=a.Ea|(a.Da&3)<<8,h=a.Ha,m=a.da||256;a.hb=-1;a.B=null;a.aa=0;a.Ia=80;var q=a.A[d];q?(q.Nd=g,q.kb=e,q.ub=h,q.Cb=m*q.Hb,c=144<=c?c:c&240,q.qb=null,q.gb=0,q.errorCode=0,a.hb=d,a.B=q):c=-1;switch(c&240){case 16:b=!0;break;case 32:a.Ia=128;Ym(q,function(b){0<=b&&a.X?(Zm(a),a.Ia=88):(a.Ia=1,a.aa=16)},!1);break;case 48:a.Ia=8;break;case 64:b=!0;break;case 112:b=!0;break;case 144:a.aa=1;b=!0;break;case 145:q.Mb=e+1,q.Sb=m,b=!0}b&&Zm(a)} function Zm(a){!a.X||a.ja&2||Cj(a.X,14,120)} -function Wm(a){a.R=0;var b=cn(a),c=cn(a),d=c&32,e=d>>5,g=c&31,h=cn(a),m=cn(a),q=h<<2&768|m,r=h&63,x=cn(a),E=cn(a),B=a.A[e];B&&(B.Od=q,B.kb=g,B.ub=r,B.Cb=x*B.Hb);switch(b){case 3:dn(a,B?B.errorCode:4);en(a,c);en(a,h);en(a,m);en(a,0|d);b=-1;break;case 12:for(c=0;0<=(b=cn(a));)B&&cb?Ym(a,c):c(-1,!1)};f.Hj=function(a,b){return void 0!==b&&0<=b?an(a,b):-1}; -f.Rj=function(a,b){var c;void 0!==b&&0<=b?(c=b,a.gban(a,a.Ri)){c=-1;break a}a.Pf++}a.Pf>=a.Ud&&(c=-1)}else c=-1;return c}; +function Wm(a){a.R=0;var b=cn(a),c=cn(a),d=c&32,e=d>>5,g=c&31,h=cn(a),m=cn(a),q=h<<2&768|m,r=h&63,x=cn(a),E=cn(a),B=a.A[e];B&&(B.Nd=q,B.kb=g,B.ub=r,B.Cb=x*B.Hb);switch(b){case 3:dn(a,B?B.errorCode:4);en(a,c);en(a,h);en(a,m);en(a,0|d);b=-1;break;case 12:for(c=0;0<=(b=cn(a));)B&&cb?Ym(a,c):c(-1,!1)};f.Gj=function(a,b){return void 0!==b&&0<=b?an(a,b):-1}; +f.Sj=function(a,b){var c;void 0!==b&&0<=b?(c=b,a.gban(a,a.Ri)){c=-1;break a}a.Pf++}a.Pf>=a.Td&&(c=-1)}else c=-1;return c}; function fn(a,b,c){b.errorCode=4;if(b.Ka&&(b.qb=null,a.X)){b.errorCode=0;vj(a.X,3,a,"dmaRead",b);oj(a.X,3,function(a){a||0!=b.errorCode||(b.errorCode=4);c(b.errorCode?2:0)});return}c(b.errorCode?2:0)}function gn(a,b,c){b.errorCode=4;if(b.Ka&&(b.qb=null,a.X)){b.errorCode=0;vj(a.X,3,a,"dmaWrite",b);oj(a.X,3,function(a){a||(0==b.errorCode&&(b.errorCode=4),20==b.errorCode&&(b.errorCode=0));c(b.errorCode?2:0)});return}c(b.errorCode?2:0)} -function hn(a,b,c){b.errorCode=4;b.Ce&&b.Ce.length==b.Cb||(b.Ce=Array(b.Cb));b.gb=0;a.X?(b.errorCode=0,vj(a.X,3,a,"dmaWriteBuffer",b),oj(a.X,3,function(a){a||0!=b.errorCode||(b.errorCode=4);c(b.errorCode?2:0)})):c(b.errorCode?2:0)} -function Ym(a,b,c){var d=-1,e=null,g=0;if(a.errorCode)return b&&b(d,!1,e,g),d;var h=!1!==c?1:0;if(a.qb&&(g=a.gb,d=tm(a.qb,a.gb),a.gb+=h,0<=d))return e=a.qb,b&&b(d,!1,e,g),d;if(b){if(a.Ka)return a.Ka.seek(a.Od,a.kb,a.ub+a.Of,!1,function(c,q){(a.qb=c)?(e=c,g=a.gb=0,jn(a),d=tm(a.qb,a.gb),a.gb+=h):a.errorCode=20;b(d,q,e,g)}),d;a.errorCode=20;b(d,!1,e,g)}return d} -function an(a,b){if(a.errorCode)return-1;do{if(a.qb&&a.Ka.write(a.qb,a.gb++,b))break;a.Ka&&a.Ka.seek(a.Od,a.kb,a.ub+a.Of,!0,function(b){a.qb=b});if(!a.qb){a.errorCode=20;b=-1;break}a.gb=0;jn(a)}while(1);return b}function jn(a){a.ub++;var b=1-a.Of;a.ub>=a.Sb+b&&(a.ub=b,a.kb++,a.kb>=a.Mb&&(a.kb=0,a.Od++))}f.al=function(){var a=this.O.H&255;!(this.O.F>>8)&&128>8||!this.X)||(a=!(this.X.ic[0].td&64));return a?!0:!1}; -var Qm={800:Nm.prototype.Yk,801:Nm.prototype.Zk,802:Nm.prototype.Xk},Pm={496:Nm.prototype.fk,497:Nm.prototype.hk,498:Nm.prototype.ik,499:Nm.prototype.jk,500:Nm.prototype.ek,501:Nm.prototype.dk,502:Nm.prototype.gk,503:Nm.prototype.kk},Sm={800:Nm.prototype.im,801:Nm.prototype.lm,802:Nm.prototype.km,803:Nm.prototype.jm,807:Nm.prototype.Ii,811:Nm.prototype.Ii,815:Nm.prototype.Ii},Rm={496:Nm.prototype.tl,497:Nm.prototype.yl,498:Nm.prototype.wl,499:Nm.prototype.xl,500:Nm.prototype.sl,501:Nm.prototype.rl, -502:Nm.prototype.ul,503:Nm.prototype.ql,1014:Nm.prototype.vl};Pa(function(){for(var a=jb(window.document,"pcjs","hdc"),b=0;b=a.Sb+b&&(a.ub=b,a.kb++,a.kb>=a.Mb&&(a.kb=0,a.Nd++))}f.bl=function(){var a=this.O.H&255;!(this.O.F>>8)&&128>8||!this.X)||(a=!(this.X.ic[0].td&64));return a?!0:!1}; +var Qm={800:Nm.prototype.Zk,801:Nm.prototype.$k,802:Nm.prototype.Yk},Pm={496:Nm.prototype.Hj,497:Nm.prototype.hk,498:Nm.prototype.jk,499:Nm.prototype.kk,500:Nm.prototype.fk,501:Nm.prototype.ek,502:Nm.prototype.gk,503:Nm.prototype.lk},Sm={800:Nm.prototype.km,801:Nm.prototype.nm,802:Nm.prototype.mm,803:Nm.prototype.lm,807:Nm.prototype.Ii,811:Nm.prototype.Ii,815:Nm.prototype.Ii},Rm={496:Nm.prototype.vl,497:Nm.prototype.Al,498:Nm.prototype.yl,499:Nm.prototype.zl,500:Nm.prototype.ul,501:Nm.prototype.tl, +502:Nm.prototype.wl,503:Nm.prototype.sl,1014:Nm.prototype.xl};Pa(function(){for(var a=jb(window.document,"pcjs","hdc"),b=0;b>2;this.Ga=b.Zf;this.nb=new ed(this.O,7,"DBG");this.Ja=An;80186<=this.O.ra&&(this.Ja=An.slice(),this.Ja[15]=yn,80286<=this.O.ra&&(this.Ja[15]=zn,80386<=this.O.ra&&(this.Ma=8)));Ni(this,64,function(a){Dn(d,d.O.Ad,a[0])});Ni(this,128,function(a){Dn(d,d.O.wa,a[0],d.O.wa!==d.O.Ad)});Ni(this,4,function(a){if(a=a[0]){var b=En(d,a);if(void 0===b)d.V("invalid selector: "+a);else if(a= +f.Hc=function(a,b,c,d){this.na=b;this.O=c;this.pa=a;this.tb=Ab(a,"FDC");this.ib=Ab(a,"HDC");this.Y=Ab(a,"Mouse");this.Da=b.X>>2;this.Ga=b.Zf;this.ob=new ed(this.O,7,"DBG");this.Ja=An;80186<=this.O.ra&&(this.Ja=An.slice(),this.Ja[15]=yn,80286<=this.O.ra&&(this.Ja[15]=zn,80386<=this.O.ra&&(this.Ma=8)));Ni(this,64,function(a){Dn(d,d.O.Ad,a[0])});Ni(this,128,function(a){Dn(d,d.O.xa,a[0],d.O.xa!==d.O.Ad)});Ni(this,4,function(a){if(a=a[0]){var b=En(d,a);if(void 0===b)d.V("invalid selector: "+a);else if(a= Fn(d,b,2),d.V("dumpSel("+ga(a?a.ea:b)+"): %"+k(a?a.Zb:null,d.Da)),a){var c,b=!1;if(a.type&4096)a.type&2048?(c="code"+(a.type&512?",readable":",execonly"),a.type&1024&&(c+=",conforming")):(c="data"+(a.type&512?",writable":",readonly"),a.type&1024&&(c+=",expdown")),a.type&256&&(c+=",accessed");else{var m=Gn[a.type];m&&(c=m[0],b=m[1])}!c||a.zb&32768||(c+=",not present");d.V((b?"seg="+ga(a.Fa&65535)+" off="+ga(a.Va):"base="+k(a.Fa,d.Da)+" limit="+Hn(a.Va))+" type="+fa(a.type>>8)+" ("+c+") ext="+ga(a.ext& -65296)+" dpl="+fa(a.Bc))}}else d.V("no selector")});Ni(this,8,function(a){a:{if(a=a[0]){var b=En(d,a);if(void 0===b){d.V("invalid task selector: "+a);break a}a=Fn(d,b,2)}else a=d.O.Ya;d.V("dumpTSS("+ga(a?a.ea:b)+"): %"+k(a?a.Fa:null,d.Da));if(a){var b="",c=a.type&-513,m=256==c?4:8,q=256==c?In:Jn,r,x,E,B;for(B in q)r=q[B],x=a.Fa+r,E=rf(d.O,x)|rf(d.O,x+1)<<8,2304==c&&(E=E|rf(d.O,x+2)<<16|rf(d.O,x+3)<<24),b&&(b+="\n"),b+=ga(r)+" "+la(B+":",11)+k(E,m);if(2304==c)for(B=0,r=E>>>16;rB;){x=a.Fa+ -r;E=rf(d.O,x)|rf(d.O,x+1)<<8;x=2;c="";if(!x||4>=8;b+="\n"+ga(r)+" ports "+ga(B)+"-"+ga(B+15)+": "+c;B+=16;r+=2}d.V(b)}}});Ni(this,134217728,function(a){var b;(a=a[0])&&(b=En(d,a));if(void 0===b)d.V("invalid MCB");else for(d.V("dumpMCB("+ga(b)+")");b;){a=ln(d,0,b);var c=d.Wa(a,1),m=d.Jc(a,2),q=d.Jc(a,5);if(77!=c&&90!=c)break;d.V(Kn(0,b)+": '"+String.fromCharCode(c)+"' PID="+ga(m)+" LEN="+ga(q)+' "'+Ln(d,a,8)+'"');b+=1+q}});this.ja=null;Me(this.O, -65,this.dl.bind(this));this.qa=null;Me(this.O,104,this.el.bind(this));ob(this)};function Mn(a,b,c,d,e,g){b=Ln(a,b);var h=Fn(a,d),h=h?h.Va+1:0,m=(e?"_CODE":"_DATA")+k(c,2);g&&a.V(b+"!undefined "+(e?"code":"data")+"("+k(c,4)+")=#"+k(d,4)+" len "+k(h));c={};c[b+m]=0;Uj(a,d,0,h,c)} -function Nn(a,b,c,d){var e=a.Jc(b,2),g=a.Jc(b,2),h=a.pb(b,4),m=a.pb(b,4),q=ln(a,a.pb(b,4),a.Jc(b,2)),r=ln(a,a.pb(b,4),a.Jc(b,2)),g=a.Jc(b,2)||g;b=Ln(a,r).toUpperCase();q=Ln(a,q).toUpperCase();r=(c?"_CODE":"_DATA")+k(e,2);d&&a.V(b+"!"+q+"!undefined "+(c?"code":"data")+"("+k(e,4)+")="+k(g,4)+":"+k(h)+" len "+k(m));c={};c[q+r]=h;Uj(a,g,h,m,c)} -f.dl=function(a){var b=this.O,c=b.F&65535,d=b.D&65535,e=b.G&65535,g=b.H&65535,h=b.K&65535,m=b.J&65535,q=b.cb.ea;if(null==this.ja)return 79==c&&Ne(b,a,function(a){return function(){62342!=(b.F&65535)?(b.F=b.F&-65536|62342,a.V("INT 0x41 handling enabled"),a.ja=!0):(a.V("INT 0x41 monitoring enabled"),a.ja=!1)}}(this)),!0;switch(c){case 79:this.ja&&(b.F=b.F&-65536|62342);break;case 80:Mn(this,ln(this,m,q),d+1,e,!(h&1),this.ja);break;case 336:Nn(this,ln(this,b.D,g),!h,this.ja);break;default:this.ja&&this.V("INT 0x41: "+ -ga(c))}return!this.ja}; -f.el=function(a){var b=this.O,c=b.F&255,d=b.F>>8&255,e=b.J&65535,g=b.cb.ea;if(null==this.qa){if(67==d){if(609437257==b.pb((b.za.ea<<4)+10)||1111835735==b.pb((b.za.ea<<4)+95))return!0;Ne(b,a,function(a){return function(){62342!=(b.F&65535)?(b.F=b.F&-65536|62342,a.V("INT 0x68 handling enabled"),a.ja=a.qa=!0):(a.V("INT 0x68 monitoring enabled"),a.qa=!1)}}(this))}return!0}switch(d){case 67:this.qa&&(b.F=b.F&-65536|62342);break;case 68:this.qa&&(a=hd(b.za,this.Mj.bind(this)))&&(b.J=a[0],ud(b,a[1]));break; -case 80:32!=c&&(128>c||Nn(this,ln(this,e,g),!(c&1),this.qa));this.qa&&(b.F=b.F&-256|1);break;default:this.qa&&this.V("INT 0x68: "+fa(d))}return!this.qa};f.Mj=function(){var a=this.O,b=a.F&255;this.V("INT 0x68 callback: "+fa(b));5==b&&(a.G=a.K=0,a.F=a.F&-256|1);return!1}; +r;E=rf(d.O,x)|rf(d.O,x+1)<<8;x=2;c="";if(!x||4>=8;b+="\n"+ga(r)+" ports "+ga(B)+"-"+ga(B+15)+": "+c;B+=16;r+=2}d.V(b)}}});Ni(this,134217728,function(a){var b;(a=a[0])&&(b=En(d,a));if(void 0===b)d.V("invalid MCB");else for(d.V("dumpMCB("+ga(b)+")");b;){a=ln(d,0,b);var c=d.Wa(a,1),m=d.Zc(a,2),q=d.Zc(a,5);if(77!=c&&90!=c)break;d.V(Kn(0,b)+": '"+String.fromCharCode(c)+"' PID="+ga(m)+" LEN="+ga(q)+' "'+Ln(d,a,8)+'"');b+=1+q}});this.ja=null;Me(this.O, +48,this.el.bind(this));Me(this.O,65,this.fl.bind(this));this.sa=null;Me(this.O,104,this.gl.bind(this));ob(this)};function Mn(a,b,c,d,e,g){b=Ln(a,b);var h=Fn(a,d),h=h?h.Va+1:0,m=(e?"_CODE":"_DATA")+k(c,2);g&&a.V(b+"!undefined "+(e?"code":"data")+"("+k(c,4)+")=#"+k(d,4)+" len "+k(h));c={};c[b+m]=0;Uj(a,d,0,h,c)} +function Nn(a,b,c,d){var e=a.Zc(b,2),g=a.Zc(b,2),h=a.lb(b,4),m=a.lb(b,4),q=ln(a,a.lb(b,4),a.Zc(b,2));b=ln(a,a.lb(b,4),a.Zc(b,2));b=Ln(a,b).toUpperCase();var q=Ln(a,q).toUpperCase(),r=(c?"_CODE":"_DATA")+k(e,2);d&&a.V(b+"!"+q+"!undefined "+(c?"code":"data")+"("+k(e,4)+")="+k(g,4)+":"+k(h)+" len "+k(m));c={};c[q+r]=h;Uj(a,g,h,m,c)} +f.el=function(){var a=this.O;if(null!=this.ja&&2752554==a.F){var b=a.H&65535,c=a.K&65535,d=ln(this,u(a)+12,a.wa.ea);switch(this.lb(d)){case 336:Nn(this,ln(this,a.D,b),!c,this.ja)}}return!0}; +f.fl=function(a){var b=this.O,c=b.F&65535,d=b.D&65535,e=b.G&65535,g=b.H&65535,h=b.K&65535,m=b.J&65535,q=b.cb.ea;if(null==this.ja)return 79==c&&Ne(b,a,function(a){return function(){62342!=(b.F&65535)?(b.F=b.F&-65536|62342,a.V("INT 0x41 handling enabled"),a.ja=!0):(a.V("INT 0x41 monitoring enabled"),a.ja=!1)}}(this)),!0;switch(c){case 79:this.ja&&(b.F=b.F&-65536|62342);break;case 80:Mn(this,ln(this,m,q),d+1,e,!(h&1),this.ja);break;case 336:Nn(this,ln(this,b.D,g),!h,this.ja)}return!this.ja}; +f.gl=function(a){var b=this.O,c=b.F&255,d=b.F>>8&255,e=b.J&65535,g=b.cb.ea;if(null==this.sa){if(67==d){if(609437257==b.lb((b.Aa.ea<<4)+10)||1111835735==b.lb((b.Aa.ea<<4)+95))return!0;Ne(b,a,function(a){return function(){62342!=(b.F&65535)?(b.F=b.F&-65536|62342,a.V("INT 0x68 handling enabled"),a.ja=a.sa=!0):(a.V("INT 0x68 monitoring enabled"),a.sa=!1)}}(this))}return!0}switch(d){case 67:this.sa&&(b.F=b.F&-65536|62342);break;case 68:this.sa&&(a=hd(b.Aa,this.Nj.bind(this)))&&(b.J=a[0],ud(b,a[1]));break; +case 80:32!=c&&(128>c||Nn(this,ln(this,e,g),!(c&1),this.sa)),this.sa&&(b.F=b.F&-256|1)}return!this.sa};f.Nj=function(){var a=this.O;5==(a.F&255)&&(a.G=a.K=0,a.F=a.F&-256|1);return!1}; f.Tb=function(a,b,c){var d=this;switch(b){case "debugInput":return this.Na=this.ya[b]=c,c.onkeydown=function(a){var b;if(13==a.keyCode){b=c.value;c.value="";var h=On(d,b,!0),m;for(m in h)pn(d,h[m])}else 27==a.keyCode?c.value=b="":(38==a.keyCode?d.X>>0)+1;a.zb=g;a.type=h;a.ext=q;a.Zb=d;gd(a,!0,!0,!1)}}return a}f.ec=function(a,b,c){var d=a&&a.Sa;if(null==d&&(d=n,a)){var e=Fn(this,a.ea,a.type);e&&(b=a.Xa||0,c=c||1,d=e=e.Zb===n||e.Uc&&(b>>>0)+c>e.$b||!e.Uc&&(b>>>0)+c<=e.$b?e.Fa+b|0:n,a.Sa=d)}return d};f.Wa=function(a,b){var c=255,d=this.ec(a,!1,1);d!==n&&(c=rf(this.O,d)|0,b&&Qn(this,a,b));return c}; -f.nc=function(a,b){return a.dc?this.pb(a,b?4:0):this.Jc(a,b?2:0)};f.Jc=function(a,b){var c=65535,d=this.ec(a,!1,2);d!==n&&(c=rf(this.O,d)|rf(this.O,d+1)<<8,b&&Qn(this,a,b));return c};f.pb=function(a,b){var c=-1,d=this.ec(a,!1,4);d!==n&&(c=rf(this.O,d)|rf(this.O,d+1)<<8|rf(this.O,d+2)<<16|rf(this.O,d+3)<<24,b&&Qn(this,a,b));return c};f.rc=function(a,b,c){var d=this.ec(a,!0,1);d!==n&&(this.O.rc(d,b),c&&Qn(this,a,c),Oc(this.O,!0))}; -f.Fb=function(a,b,c){var d=this.ec(a,!0,2);d!==n&&(this.O.Fb(d,b),c&&Qn(this,a,c),Oc(this.O,!0))};function ln(a,b,c,d,e,g,h){return Rn(a,{},b,c,d,e,g,h)}function Rn(a,b,c,d,e,g,h,m){b.Xa=c||0;b.ea=d;b.Sa=e;b.type=g||(Pn(a)?2:1);b.dc=null!=h?h:a.O&&4==a.O.za.ha;b.lc=null!=m?m:a.O&&4==a.O.za.Zc;b.Wd=!1;return b}function Sn(a){return[a.Xa,a.ea,a.Sa,a.Wd,a.dc,a.lc,a.De,a.Dd]}function Tn(a){return{Xa:a[0],ea:a[1],Sa:a[2],Wd:a[3],dc:a[4],lc:a[5],De:a[6],Dd:a[7]}} -function Un(a,b,c){if(null!=b.ea&&(a=Fn(a,b.ea,b.type))){var d=b.Xa&a.Ga;if(!a.Uc){if(d>>>0>=a.$b)return!1}else if(d>>>0>>0)+1;a.zb=g;a.type=h;a.ext=q;a.Zb=d;gd(a,!0,!0,!1)}}return a}f.ec=function(a,b,c){var d=a&&a.Sa;if(null==d&&(d=n,a)){var e=Fn(this,a.ea,a.type);e&&(b=a.Xa||0,c=c||1,d=e=e.Zb===n||e.Tc&&(b>>>0)+c>e.$b||!e.Tc&&(b>>>0)+c<=e.$b?e.Fa+b|0:n,a.Sa=d)}return d};f.Wa=function(a,b){var c=255,d=this.ec(a,!1,1);d!==n&&(c=rf(this.O,d)|0,b&&Qn(this,a,b));return c}; +f.nc=function(a,b){return a.dc?this.lb(a,b?4:0):this.Zc(a,b?2:0)};f.Zc=function(a,b){var c=65535,d=this.ec(a,!1,2);d!==n&&(c=rf(this.O,d)|rf(this.O,d+1)<<8,b&&Qn(this,a,b));return c};f.lb=function(a,b){var c=-1,d=this.ec(a,!1,4);d!==n&&(c=rf(this.O,d)|rf(this.O,d+1)<<8|rf(this.O,d+2)<<16|rf(this.O,d+3)<<24,b&&Qn(this,a,b));return c};f.rc=function(a,b,c){var d=this.ec(a,!0,1);d!==n&&(this.O.rc(d,b),c&&Qn(this,a,c),Oc(this.O,!0))}; +f.Fb=function(a,b,c){var d=this.ec(a,!0,2);d!==n&&(this.O.Fb(d,b),c&&Qn(this,a,c),Oc(this.O,!0))};function ln(a,b,c,d,e,g,h){return Rn(a,{},b,c,d,e,g,h)}function Rn(a,b,c,d,e,g,h,m){b.Xa=c||0;b.ea=d;b.Sa=e;b.type=g||(Pn(a)?2:1);b.dc=null!=h?h:a.O&&4==a.O.Aa.ha;b.lc=null!=m?m:a.O&&4==a.O.Aa.Yc;b.Vd=!1;return b}function Sn(a){return[a.Xa,a.ea,a.Sa,a.Vd,a.dc,a.lc,a.Ce,a.Dd]}function Tn(a){return{Xa:a[0],ea:a[1],Sa:a[2],Vd:a[3],dc:a[4],lc:a[5],Ce:a[6],Dd:a[7]}} +function Un(a,b,c){if(null!=b.ea&&(a=Fn(a,b.ea,b.type))){var d=b.Xa&a.Ga;if(!a.Tc){if(d>>>0>=a.$b)return!1}else if(d>>>0m?null!=h?(g= -Xn(a,b,void 0),m=null):(m=Xn(a,b,void 0),null==m&&(g=null)):(h=Xn(a,b.substring(0,m),void 0),g=Xn(a,b.substring(m+1),void 0),m=null)}null!=g&&(e=ln(a,g,h,m,c),d||Un(a,e,!0)||(a.V("invalid offset: "+Yn(e)),e=null));return e}function Zn(a,b,c){c&&(c=c.match(/(['"])(.*?)\1/))&&(b.Jj=On(a,b.tj=c[2]))}function Qn(a,b,c){c=c||1;null!=b.Sa&&(b.Sa+=c);null!=b.ea&&(b.Xa+=c,Un(a,b)||(b.Xa=0,b.Sa=null))}function Kn(a,b,c){return null!=b?k(b,4)+":"+k(a,a&-65536||c?8:4):k(a)} +Xn(a,b,void 0),m=null):(m=Xn(a,b,void 0),null==m&&(g=null)):(h=Xn(a,b.substring(0,m),void 0),g=Xn(a,b.substring(m+1),void 0),m=null)}null!=g&&(e=ln(a,g,h,m,c),d||Un(a,e,!0)||(a.V("invalid offset: "+Yn(e)),e=null));return e}function Zn(a,b,c){c&&(c=c.match(/(['"])(.*?)\1/))&&(b.Kj=On(a,b.sj=c[2]))}function Qn(a,b,c){c=c||1;null!=b.Sa&&(b.Sa+=c);null!=b.ea&&(b.Xa+=c,Un(a,b)||(b.Xa=0,b.Sa=null))}function Kn(a,b,c){return null!=b?k(b,4)+":"+k(a,a&-65536||c?8:4):k(a)} function Yn(a){var b="";switch(a.type){case 1:case 3:b="&";break;case 2:b="#";break;case 4:b="%"}return null==a.ea?"%"+k(a.Sa):b+Kn(a.Xa,a.ea,a.lc)}function Ln(a,b,c){var d="";for(c=c||256;d.length>>=a.O.Qa;g=1}a.V("blkid "+(d?"linear ":"physical")+" blkaddr used size type");a.V("-------- --------- -------- ------ ------ ----");c=-1;for(var h=0;g--;)d=b[e],d.type==c?h++||a.V("..."):(c=d.type,h=sc[c],6==c&&(d=d.fe,h+=" -> "+sc[d.type]),d&&a.V(k(d.id)+" %"+k(e<>>=a.O.Qa;g=1}a.V("blkid "+(d?"linear ":"physical")+" blkaddr used size type");a.V("-------- --------- -------- ------ ------ ----");c=-1;for(var h=0;g--;)d=b[e],d.type==c?h++||a.V("..."):(c=d.type,h=sc[c],6==c&&(d=d.ee,h+=" -> "+sc[d.type]),d&&a.V(k(d.id)+" %"+k(e<c&&(c=ua(vn,a.substr(b,2))));return c} +function on(a,b){a.ga=a;a.jc=a.Mj=1073741824;a.Oa=null;a.Ra=[];var c=On(a,b.replace("keys","key").replace("kbd","keyboard"),!1,"|");if(c.length)for(var d in xn)0<=ua(c,d)&&(a.jc|=xn[d],a.V(d+" messages enabled"));nn(a)}function Ni(a,b,c){for(var d in xn)if(b==xn[d]){a.Ra[d]=c;break}}function $n(a,b){var c;a=a.toUpperCase();null==b?c=ua(vn,a):(c=ua(vn,a.substr(b,3)),0>c&&(c=ua(vn,a.substr(b,2))));return c} function ao(a,b){var c=0,d=bo(a,b);if(void 0!==d)switch(b){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:c=2;break;case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 22:case 16:case 17:case 18:case 19:case 20:case 21:c=4;break;case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 56:c=8;break;case 23:c=a.Ma}return c?k(d,c):"??"} -function bo(a,b){var c;if(0<=b){var d=a.O;switch(b){case 0:c=d.F&255;break;case 1:c=d.G&255;break;case 2:c=d.H&255;break;case 3:c=d.D&255;break;case 4:c=d.F>>8&255;break;case 5:c=d.G>>8&255;break;case 6:c=d.H>>8&255;break;case 7:c=d.D>>8&255;break;case 8:c=d.F&65535;break;case 9:c=d.G&65535;break;case 10:c=d.H&65535;break;case 11:c=d.D&65535;break;case 12:c=u(d)&65535;break;case 13:c=d.L&65535;break;case 14:c=d.K&65535;break;case 15:c=d.J&65535;break;case 22:c=v(d)&65535;break;case 23:c=zd(d);break; -case 16:c=d.cb.ea;break;case 17:c=d.za.ea;break;case 18:c=d.xa.ea;break;case 19:c=d.xb.ea;break;default:if(80286==a.O.ra)32==b&&(c=d.mb);else if(80386<=a.O.ra)switch(b){case 24:c=d.F;break;case 25:c=d.G;break;case 26:c=d.H;break;case 27:c=d.D;break;case 28:c=u(d);break;case 29:c=d.L;break;case 30:c=d.K;break;case 31:c=d.J;break;case 32:c=d.mb;break;case 33:c=d.Ki;break;case 34:c=d.de;break;case 35:c=d.Kd;break;case 20:c=d.Ob.ea;break;case 21:c=d.Pb.ea;break;case 56:c=v(d)}}}return c} +function bo(a,b){var c;if(0<=b){var d=a.O;switch(b){case 0:c=d.F&255;break;case 1:c=d.G&255;break;case 2:c=d.H&255;break;case 3:c=d.D&255;break;case 4:c=d.F>>8&255;break;case 5:c=d.G>>8&255;break;case 6:c=d.H>>8&255;break;case 7:c=d.D>>8&255;break;case 8:c=d.F&65535;break;case 9:c=d.G&65535;break;case 10:c=d.H&65535;break;case 11:c=d.D&65535;break;case 12:c=u(d)&65535;break;case 13:c=d.L&65535;break;case 14:c=d.K&65535;break;case 15:c=d.J&65535;break;case 22:c=v(d)&65535;break;case 23:c=vd(d);break; +case 16:c=d.cb.ea;break;case 17:c=d.Aa.ea;break;case 18:c=d.wa.ea;break;case 19:c=d.xb.ea;break;default:if(80286==a.O.ra)32==b&&(c=d.nb);else if(80386<=a.O.ra)switch(b){case 24:c=d.F;break;case 25:c=d.G;break;case 26:c=d.H;break;case 27:c=d.D;break;case 28:c=u(d);break;case 29:c=d.L;break;case 30:c=d.K;break;case 31:c=d.J;break;case 32:c=d.nb;break;case 33:c=d.Ki;break;case 34:c=d.ce;break;case 35:c=d.Jd;break;case 20:c=d.Ob.ea;break;case 21:c=d.Pb.ea;break;case 56:c=v(d)}}}return c} function co(a,b){b=Wn(a,b);for(var c=0,d,e;0<=(c=b.indexOf("%",c));)e=$n(b,c+1),0<=e&&(b=b.substr(0,c)+ao(a,e)+b.substr(c+1+vn[e].length)),c++;for(c=0;0<=(c=b.indexOf("#",c));)e=b.substr(c+1,2),d=da(e,16),null!=d&&32<=d&&128>d?(d=e+" '"+String.fromCharCode(d)+"'",b=b.replace("#"+e,d),c+=d.length):c++;for(c=0;0<=(c=b.indexOf("$",c));)if(e=b.substr(c+1,9),d=Vn(a,e))d=e+' "'+Ln(a,d)+'"',b=b.replace("$"+e,d),c+=d.length;for(c=0;0<=(c=b.indexOf("^",c));)if(e=b.substr(c+1,9),d=Vn(a,e))Qn(a,d),d=e+' "'+ -Ln(a,d,11)+'"',b=b.replace("^"+e,d),c+=d.length;return b}f=kn.prototype;f.message=function(a,b){b&&(a+=" @"+Kn(v(this.O),this.O.za.ea)+" (%"+k(this.O.Aa)+")");if(!this.Oa||a!=this.Oa)if(this.V(a),this.Oa=a,this.O){this.jc&-2147483648&&this.Xb();var c=this.O;c.Z.Ue=0;c.ib-=c.A;c.A=0;Oc(c)}}; -function si(a,b,c,d){var e,g;if(!d&&(d=a.ta(1)&&0>rn.indexOf(b),!d)){var h=qn[b];h&&(d=a.ta(h)?!0:524288==h&&a.ta(h=1048576))}d&&(e=a.O.F>>8&255,g=a.O.H&255,33==b&&11==e||524288==h&&128<=g||1048576==h&&128>g)&&(d=!1);d&&((h=(h=vb[b])&&h[e]||"")&&(h=" "+co(a,h)),a.message("INT "+fa(b)+": AH="+fa(e)+" @"+Kn(c-2-a.O.za.Fa,a.O.za.ea)+h));return d} -function kb(a,b,c,d,e,g,h,m){m|=256;if(null==e||(a.jc&m)==m)m=null,null!=e&&(m=a.O.za.ea,e-=a.O.za.Fa),a.message(b.Pd+"."+(null!=d?"outPort":"inPort")+"("+ga(c)+","+(g?g:"unknown")+(null!=d?","+fa(d):"")+")"+(null!=h?": "+fa(h):"")+(null!=e?" @"+Kn(e,m):""))}f.$k=function(){this.V("Type ? for help with PCjs Debugger commands");this.gd();if(this.Za){var a=On(this,this.Za);this.Za=null;for(var b in a)pn(this,a[b])}}; -function nn(a){var b;if(Af(a)){if(!a.Ca||!a.Ca.length){a.Ca=Array(1E3);for(b=0;brn.indexOf(b),!d)){var h=qn[b];h&&(d=a.ta(h)?!0:524288==h&&a.ta(h=1048576))}d&&(e=a.O.F>>8&255,g=a.O.H&255,33==b&&11==e||524288==h&&128<=g||1048576==h&&128>g)&&(d=!1);d&&((h=(h=vb[b])&&h[e]||"")&&(h=" "+co(a,h)),a.message("INT "+fa(b)+": AH="+fa(e)+" @"+Kn(c-2-a.O.Aa.Fa,a.O.Aa.ea)+h));return d} +function kb(a,b,c,d,e,g,h,m){m|=256;if(null==e||(a.jc&m)==m)m=null,null!=e&&(m=a.O.Aa.ea,e-=a.O.Aa.Fa),a.message(b.Od+"."+(null!=d?"outPort":"inPort")+"("+ga(c)+","+(g?g:"unknown")+(null!=d?","+fa(d):"")+")"+(null!=h?": "+fa(h):"")+(null!=e?" @"+Kn(e,m):""))}f.al=function(){this.V("Type ? for help with PCjs Debugger commands");this.gd();if(this.Za){var a=On(this,this.Za);this.Za=null;for(var b in a)pn(this,a[b])}}; +function nn(a){var b;if(Af(a)){if(!a.Ca||!a.Ca.length){a.Ca=Array(1E3);for(b=0;b>>c.Qa],!1)}a.sa=["br"];if(void 0!==a.fa)for(b=1;b>>c.Qa],!0);a.fa=["bw"];a.Ua=0} -f.Qd=function(a,b,c){var d=!0;c||jo(this,a,b,!1,!0);if(a!=this.A){var e=this.ec(b);if(e==n)this.V("invalid address: "+Yn(b)),d=!1;else{var g=this.na;g.wa[e>>>g.Qa].Qd(e&g.A,a==this.fa);b.ea=null}}d&&(a.push(b),c?(null!=b.Sa&&(b.ea=null),b.Wd=!0):(ko(this,a,a.length-1),nn(this)));return d}; -function jo(a,b,c,d,e){for(var g=!1,h=lo(a,a.ec(c)),m=1;m>>c.Qa],b==a.fa));nn(a);break}}return g}function mo(a,b){for(var c=1;c>>c.Qa],!1)}a.qa=["br"];if(void 0!==a.fa)for(b=1;b>>c.Qa],!0);a.fa=["bw"];a.Ua=0} +f.Pd=function(a,b,c){var d=!0;c||jo(this,a,b,!1,!0);if(a!=this.A){var e=this.ec(b);if(e==n)this.V("invalid address: "+Yn(b)),d=!1;else{var g=this.na;g.xa[e>>>g.Qa].Pd(e&g.A,a==this.fa);b.ea=null}}d&&(a.push(b),c?(null!=b.Sa&&(b.ea=null),b.Vd=!0):(ko(this,a,a.length-1),nn(this)));return d}; +function jo(a,b,c,d,e){for(var g=!1,h=lo(a,a.ec(c)),m=1;m>>c.Qa],b==a.fa));nn(a);break}}return g}function mo(a,b){for(var c=1;c=tn.length&&(q=a.Wa(b,1),h=Cn[r-tn.length][q>>3&7]);var r=tn[h[0]],x=h.length-1,E="";if(164<=g&&167>=g||170<=g&&175>=g)x=0,b.dc&&"W"==r.slice(-1)&&(r=r.slice(0,-1)+"D");for(var g=null,B=!0,T=1;T<=x;T++){var J,I;J="";I=h[T];if(void 0!==I){null==g&&(g=I>> -14);var U=I&15;if(0!=U)if(15==U)B=!1;else{var N=I&240;if(128<=N)if(0>q&&(q=a.Wa(b,1)),160>N){J=a;var N=x,U=b,W="",ca=q>>6,va=q&7;if(3>ca){var La=void 0;if(!ca&&(!U.lc&&6==va||U.lc&&5==va))ca=2;else{if(U.lc)if(4!=va)va+=8;else{var W=J,La=ca,Ma=U,Za=W.Wa(Ma,1),Na=Za>>6,rb=Za>>3&7,Za=Za&7,oa="";if(La||5!=Za)oa=wn[Za+8];4!=rb&&(oa&&(oa+="+"),oa+=wn[rb+8],Na&&(oa+="*"+(1<>24,W+="-"+k(-La,2)):W+= -"+"+k(La,2)):2==ca&&(W&&(W+="+"),U.lc?(La=J.pb(U,4),W+=k(La)):(La=J.Jc(U,2),W+=k(La,4)));W="["+W+"]";if(1==N){J="";I&=15;4==I&&(I=U.dc?5:3);switch(I){case 7:J="FAR";break;case 1:J="BYTE";break;case 3:J="WORD";break;case 5:J="DWORD"}J&&(W=J+" "+W)}}else W=oo(J,va,I,U);J=W}else J=160==N?oo(a,q&7,I,b):oo(a,q>>3&7,I,b);else if(16==N)J="1";else if(0==N){J=a;U=I;N=b;I=" ";switch(U&15){case 1:U&12288&&(I=k(J.Wa(N,1),2));break;case 2:I=k(J.Wa(N,1)<<24>>24,N.dc?8:4);break;case 4:case 8:if(N.dc){I=k(J.pb(N, -4));break}case 3:I=k(J.Jc(N,2),4);break;case 7:N=ln(J,J.nc(N,!0),J.Jc(N,2),null,N.type,N.dc,N.lc);I=Yn(N);J=po(J,N);J[0]&&(I+=" ("+J[0]+")");break;default:I="imm("+ga(U)+")"}J=I}else 32==N?(b.lc?(J=8,I=a.pb(b,4)):(J=4,I=a.Jc(b,2)),J="["+k(I,J)+"]"):48==N?(J=1==U?a.Wa(b,1)<<24>>24:a.nc(b,!0),I=b.Xa+J&(b.dc?-1:65535),J=k(I,b.dc?8:4),I=po(a,ln(a,I,b.ea)),I[0]&&(J+=" ("+I[0]+")")):96==N?J=oo(a,(I&3840)>>8,I,b):112==N?J=oo(a,(I&3840)>>8,192,b):64==N?J="DS:[SI]":80==N&&(J="ES:[DI]");if(!J||!J.length){E= +14);var U=I&15;if(0!=U)if(15==U)B=!1;else{var N=I&240;if(128<=N)if(0>q&&(q=a.Wa(b,1)),160>N){J=a;var N=x,U=b,W="",ca=q>>6,va=q&7;if(3>ca){var La=void 0;if(!ca&&(!U.lc&&6==va||U.lc&&5==va))ca=2;else{if(U.lc)if(4!=va)va+=8;else{var W=J,La=ca,Ma=U,Za=W.Wa(Ma,1),Na=Za>>6,sb=Za>>3&7,Za=Za&7,oa="";if(La||5!=Za)oa=wn[Za+8];4!=sb&&(oa&&(oa+="+"),oa+=wn[sb+8],Na&&(oa+="*"+(1<>24,W+="-"+k(-La,2)):W+= +"+"+k(La,2)):2==ca&&(W&&(W+="+"),U.lc?(La=J.lb(U,4),W+=k(La)):(La=J.Zc(U,2),W+=k(La,4)));W="["+W+"]";if(1==N){J="";I&=15;4==I&&(I=U.dc?5:3);switch(I){case 7:J="FAR";break;case 1:J="BYTE";break;case 3:J="WORD";break;case 5:J="DWORD"}J&&(W=J+" "+W)}}else W=oo(J,va,I,U);J=W}else J=160==N?oo(a,q&7,I,b):oo(a,q>>3&7,I,b);else if(16==N)J="1";else if(0==N){J=a;U=I;N=b;I=" ";switch(U&15){case 1:U&12288&&(I=k(J.Wa(N,1),2));break;case 2:I=k(J.Wa(N,1)<<24>>24,N.dc?8:4);break;case 4:case 8:if(N.dc){I=k(J.lb(N, +4));break}case 3:I=k(J.Zc(N,2),4);break;case 7:N=ln(J,J.nc(N,!0),J.Zc(N,2),null,N.type,N.dc,N.lc);I=Yn(N);J=po(J,N);J[0]&&(I+=" ("+J[0]+")");break;default:I="imm("+ga(U)+")"}J=I}else 32==N?(b.lc?(J=8,I=a.lb(b,4)):(J=4,I=a.Zc(b,2)),J="["+k(I,J)+"]"):48==N?(J=1==U?a.Wa(b,1)<<24>>24:a.nc(b,!0),I=b.Xa+J&(b.dc?-1:65535),J=k(I,b.dc?8:4),I=po(a,ln(a,I,b.ea)),I[0]&&(J+=" ("+I[0]+")")):96==N?J=oo(a,(I&3840)>>8,I,b):112==N?J=oo(a,(I&3840)>>8,192,b):64==N?J="DS:[SI]":80==N&&(J="ES:[DI]");if(!J||!J.length){E= "INVALID";break}0a.O.ra)return"??";b+=16}else if(208==e)b+=32;else if(224==e)b+=40;else if(240==e)b+=48;else if(a=c&15,3<=a&&(8>b&&(b+=8),5==a||4==a&&d.dc))b+=16;return vn[b]} function ro(a,b){var c;switch(b){case "V":c=bf(a.O);break;case "D":c=a.O.ca&1024;break;case "I":c=a.O.ca&512;break;case "T":c=a.O.ca&256;break;case "S":c=af(a.O);break;case "Z":c=$e(a.O);break;case "A":c=Ze(a.O);break;case "P":c=Ye(a.O);break;case "C":c=Xe(a.O);break;default:c=0}return b+(c?"1":"0")+" "}function Hn(a){return k(a,a&-65536?8:4)}function so(a,b){8<=b&&15>=b&&4a.O.ra&&(d="\n"+d,c+=e,e="");c+="\n"+to(a,a.O.za,b)+" ";80386<=a.O.ra&&(e+="\n",c+=to(a,a.O.Ob,b)+" "+to(a,a.O.Pb,b)+"\n");c+=uo(a,"LD",a.O.Dc.ea,a.O.Dc.Fa,a.O.Dc.Fa+a.O.Dc.Va)+" "+uo(a,"GD",null,a.O.bd,a.O.Rd)+" "+uo(a, -"ID",null,a.O.cd,a.O.Sd)+" ";c=c+(d+" "+e)+so(a,32);80386<=a.O.ra&&(c+=so(a,34)+so(a,35))}else 80386<=a.O.ra&&(c+=to(a,a.O.Ob,b)+" "+to(a,a.O.Pb,b)+" ");return c+=so(a,23)+ro(a,"V")+ro(a,"D")+ro(a,"I")+ro(a,"T")+ro(a,"S")+ro(a,"Z")+ro(a,"A")+ro(a,"P")+ro(a,"C")}var wo={"||":0,"&&":1,"|":2,"^":3,"&":4,"!=":5,"==":5,">=":6,">":6,"<=":6,"<":6,">>>":7,">>":7,"<<":7,"-":8,"+":8,"%":9,"/":9,"*":9}; +function vo(a,b){var c;void 0===b&&(b=Pn(a));c=so(a,8)+so(a,11)+so(a,9)+so(a,10)+(4a.O.ra&&(d="\n"+d,c+=e,e="");c+="\n"+to(a,a.O.Aa,b)+" ";80386<=a.O.ra&&(e+="\n",c+=to(a,a.O.Ob,b)+" "+to(a,a.O.Pb,b)+"\n");c+=uo(a,"LD",a.O.Dc.ea,a.O.Dc.Fa,a.O.Dc.Fa+a.O.Dc.Va)+" "+uo(a,"GD",null,a.O.bd,a.O.Qd)+" "+uo(a, +"ID",null,a.O.cd,a.O.Rd)+" ";c=c+(d+" "+e)+so(a,32);80386<=a.O.ra&&(c+=so(a,34)+so(a,35))}else 80386<=a.O.ra&&(c+=to(a,a.O.Ob,b)+" "+to(a,a.O.Pb,b)+" ");return c+=so(a,23)+ro(a,"V")+ro(a,"D")+ro(a,"I")+ro(a,"T")+ro(a,"S")+ro(a,"Z")+ro(a,"A")+ro(a,"P")+ro(a,"C")}var wo={"||":0,"&&":1,"|":2,"^":3,"&":4,"!=":5,"==":5,">=":6,">":6,"<=":6,"<":6,">>>":7,">>":7,"<<":7,"-":8,"+":8,"%":9,"/":9,"*":9}; function xo(a,b,c){for(c=c||-1;c--&&b.length;){var d=b.pop();if(2>a.length)return!1;var e=a.pop(),g=a.pop();switch(d){case "*":d=g*e;break;case "/":if(!e)return!1;d=g/e;break;case "%":if(!e)return!1;d=g%e;break;case "+":d=g+e;break;case "-":d=g-e;break;case "<<":d=g<>":d=g>>e;break;case ">>>":d=g>>>e;break;case "<":d=g":d=g>e?1:0;break;case ">=":d=g>=e?1:0;break;case "==":d=g==e?1:0;break;case "!=":d=g!=e?1:0;break;case "&":d=g&e;break; case "^":d=g^e;break;case "|":d=g|e;break;case "&&":d=g&&e?1:0;break;case "||":d=g||e?1:0;break;default:return!1}a.push(d|0)}return!0} function Xn(a,b,c){var d;if(b){b=Wn(a,b);for(var e=0,g=!1,h=b,m=[],q=[],r=b.split(/(\|\||&&|\||^|&|!=|==|>=|>>>|>>|>|<=|<<|<|-|\+|%|\/|\*)/);ec?(a.V("out of data at address "+Yn(b)),x=!0):(a.rc(b,c,1),r++)})})(a,h);a.V(r+ +function Fo(a,b){if(b[1]&&"?"!=b[1]){var c="json"==b[1],d,e=0,g=0,h=c?{}:Vn(a,b[1],32);if(h&&(d=En(a,b[2],"drive #"),void 0!==d)){if(!c){e=En(a,b[3],"sector #");if(void 0===e)return;g=En(a,b[4],"# of sectors");void 0===g&&(g=1)}var m=a.tb;2<=d&&a.ib&&(d-=2,m=a.ib);if(m){var q=m.Yi(d);if(q)if(q.Ka)if(c)Bo(a),a.V(q.Ka.toJSON());else if(m.uj(q,e,g)){for(var r=0,x=!1,c=Yn(h);!x&&0c?(a.V("out of data at address "+Yn(b)),x=!0):(a.rc(b,c,1),r++)})})(a,h);a.V(r+ " bytes read at "+c)}else a.V("sector "+e+" request out of range");else a.V("drive "+d+" not loaded");else a.V("invalid drive: "+d)}else a.V("disk controller not present")}}else a.V("list/load commands:"),a.V("\tl [address] [drive #] [sector #] [# sectors]")} function fo(a,b){var c;if(b&&"?"==b[1])a.V("register commands:"),a.V("\tr\tdump registers"),a.V("\trp\tdump all registers"),a.V("\trx [#]\tset flag or register x to [#]");else{var d;null==c&&(c=!0);if(null!=b&&1=a.Ma&&(q=null);switch(q){case "AL":a.O.F= a.O.F&-256|m&255;break;case "AH":a.O.F=a.O.F&-65281|m<<8&255;break;case "AX":a.O.F=a.O.F&-65536|m&65535;break;case "BL":a.O.D=a.O.D&-256|m&255;break;case "BH":a.O.D=a.O.D&-65281|m<<8&255;break;case "BX":a.O.D=a.O.D&-65536|m&65535;break;case "CL":a.O.G=a.O.G&-256|m&255;break;case "CH":a.O.G=a.O.G&-65281|m<<8&255;break;case "CX":a.O.G=a.O.G&-65536|m&65535;break;case "DL":a.O.H=a.O.H&-256|m&255;break;case "DH":a.O.H=a.O.H&-65281|m<<8&255;break;case "DX":a.O.H=a.O.H&-65536|m&65535;break;case "SP":t(a.O, -u(a.O)&-65536|m&65535);break;case "BP":a.O.L=a.O.L&-65536|m&65535;break;case "SI":a.O.K=a.O.K&-65536|m&65535;break;case "DI":a.O.J=a.O.J&-65536|m&65535;break;case "DS":td(a.O,m);break;case "ES":ud(a.O,m);break;case "SS":ld(a.O,m);break;case "CS":Ue(a.O,m);a.aa=ln(a,v(a.O),a.O.za.ea);break;case "IP":case "EIP":D(a.O,m);a.aa=ln(a,v(a.O),a.O.za.ea);break;case "PC":case "PS":Ad(a.O,m);break;case "C":m?df(a.O):ef(a.O);break;case "P":m?(e=a.O,e.resultType&=-3,e.ca|=4):(e=a.O,e.resultType&=-3,e.ca&=-5); +u(a.O)&-65536|m&65535);break;case "BP":a.O.L=a.O.L&-65536|m&65535;break;case "SI":a.O.K=a.O.K&-65536|m&65535;break;case "DI":a.O.J=a.O.J&-65536|m&65535;break;case "DS":td(a.O,m);break;case "ES":ud(a.O,m);break;case "SS":ld(a.O,m);break;case "CS":Ue(a.O,m);a.aa=ln(a,v(a.O),a.O.Aa.ea);break;case "IP":case "EIP":D(a.O,m);a.aa=ln(a,v(a.O),a.O.Aa.ea);break;case "PC":case "PS":wd(a.O,m);break;case "C":m?df(a.O):ef(a.O);break;case "P":m?(e=a.O,e.resultType&=-3,e.ca|=4):(e=a.O,e.resultType&=-3,e.ca&=-5); break;case "A":m?nf(a.O):kf(a.O);break;case "Z":m?of(a.O):lf(a.O);break;case "S":m?(e=a.O,e.resultType&=-17,e.ca|=128):(e=a.O,e.resultType&=-17,e.ca&=-129);break;case "I":m?(e=a.O,e.ca|=512):(e=a.O,e.ca&=-513);break;case "D":m?(e=a.O,e.ca|=1024):(e=a.O,e.ca&=-1025);break;case "V":m?ff(a.O):gf(a.O);break;default:var r=!0;if(80286<=a.O.ra)switch(r=!1,q){case "MS":pf(a.O,m);break;case "TR":a.O.Ya.load(m)===n&&(h=!1);break;default:if(r=!0,80386<=a.O.ra)switch(r=!1,q){case "EAX":a.O.F=m;break;case "EBX":a.O.D= -m;break;case "ECX":a.O.G=m;break;case "EDX":a.O.H=m;break;case "ESP":t(a.O,m);break;case "EBP":a.O.L=m;break;case "ESI":a.O.K=m;break;case "EDI":a.O.J=m;break;case "FS":a.O.Ob.load(m);break;case "GS":a.O.Pb.load(m);break;case "CR0":a.O.mb=m;rg.call(a.O,m);break;case "CR2":a.O.de=m;break;case "CR3":a.O.Kd=m;Cd.call(a.O,m);break;default:r=!0}}if(r){a.V("unknown register: "+e);return}}}if(!h){a.V("invalid value: "+g);return}Oc(a.O);a.V("updated registers:")}}a.V(vo(a,d));c&&(a.aa=ln(a,v(a.O),a.O.za.ea), +m;break;case "ECX":a.O.G=m;break;case "EDX":a.O.H=m;break;case "ESP":t(a.O,m);break;case "EBP":a.O.L=m;break;case "ESI":a.O.K=m;break;case "EDI":a.O.J=m;break;case "FS":a.O.Ob.load(m);break;case "GS":a.O.Pb.load(m);break;case "CR0":a.O.nb=m;rg.call(a.O,m);break;case "CR2":a.O.ce=m;break;case "CR3":a.O.Jd=m;Cd.call(a.O,m);break;default:r=!0}}if(r){a.V("unknown register: "+e);return}}}if(!h){a.V("invalid value: "+g);return}Oc(a.O);a.V("updated registers:")}}a.V(vo(a,d));c&&(a.aa=ln(a,v(a.O),a.O.Aa.ea), go(a,Yn(a.aa)))}}function Go(a,b){b=ma(b);var c=b.match(/^(['"])(.*?)\1$/);c?a.V(co(a,c[2])):Xn(a,b,!0)}function Ho(a,b,c){for(var d=null,e=b.Xa,g=e,h=1;6>=h&&e;h++){if(2q[0].indexOf("+"))){var r=q[0]+":";q[2]&&(r+=" "+q[2]);a.V(r)}q[3]&&(m=q[3],h=null);h=no(a,b,m,h);b.Dd||d||d++;a.V(h);a.aa=b;e-=b.Sa-g;c++}}} function On(a,b,c,d){if(c)if(b){0>a.X&&a.R.length&&(a.X=0);if(0>a.X||b!=a.R[a.X])a.R.splice(0,0,b),a.X=0;a.X--}else b=a.R[a.X+1];a=[];if(b){b=b.replace(/""/g,"'");c=0;var e=null;d=d||";";for(var g=0;g<=b.length;g++){var h=b.charAt(g);if('"'==h||"'"==h)e?h==e&&(e=null):e=h;else if(h==d&&!e||!h)a.push(ma(b.substring(c,g))),c=g+1}}return a} function Jo(a){if(a&&a.length)for(var b=a[0],c=b.charAt(0),d=1;de||"z"Vb.length&&(a.V("note: only "+Vb.length+" available"),lb=Vb.length);cb-=lb;0>cb&&(null==Vb[Vb.length-1].ea?(lb=cb+lb, -cb=0):cb+=Vb.length);var hh=[];"call"==$d&&(vd=1E5,hh=["CALL"]);for(void 0!==Zd&&a.V(lb+" instructions earlier:");0=Vb.length&&(cb=0);a.jb=lb;kl++;vd--}}kl||(a.V("no "+jl+"history available"),a.jb=void 0)}else if("di"==W)U.shift(),a.V("no information");else{var wd=Vn(a,ca,32);if(wd&& -(null!=wd.ea||null!=wd.Sa)){var Cf=0;va&&("l"==va.charAt(0)&&(va=va.substr(1)||La),Cf=En(a,va)>>>0,65536>4||1,ih="dd"==W?4:"dw"==W?2:1,ml=0;mllh;lh++){var Ef=a.Wa(wd,1),Df=Df|Ef<<(jh++<<3);jh==ih&&(ke+=k(Df,2*ih),ke+=1==ih?7==lh?"-":" ":" ",Df=jh=0);kh+=32<=Ef&&128>Ef?String.fromCharCode(Ef):"."}Pc&&(Pc+="\n");Pc+=ca+" "+ke+" "+kh}Pc&&a.V(Pc);a.eb=wd}}}}break;case "e":if("else"==h[0])break;var Ff= -1,nl=255,ol=a.Wa,pl=a.rc;"ew"==h[0]&&(Ff=2,nl=65535,ol=a.Jc,pl=a.Fb);var ql=Ff<<1,rl=h[1];if(null==rl)a.V("edit memory commands:"),a.V("\teb [a] [...] edit bytes at address a"),a.V("\tew [a] [...] edit words at address a");else{var Gf=Vn(a,rl,32);if(Gf)for(var Hf=2;Hfrh;){for(var yc=null,hp=256;xc.Xa>>>0>>0;){xd.Xa=a.nc(xc,!0);if(null==xc.Sa|| -!hp--)break;xd.ea=tl;if(yc=Ho(a,xd))break;xd.ea=a.nc(xc);if(yc=Ho(a,xd,!0)){tl=a.nc(xc,!0);0Vb.length&&(a.V("note: only "+Vb.length+" available"),lb=Vb.length);cb-=lb;0>cb&&(null==Vb[Vb.length-1].ea?(lb=cb+lb, +cb=0):cb+=Vb.length);var ih=[];"call"==$d&&(xd=1E5,ih=["CALL"]);for(void 0!==Zd&&a.V(lb+" instructions earlier:");0=Vb.length&&(cb=0);a.jb=lb;kl++;xd--}}kl||(a.V("no "+jl+"history available"),a.jb=void 0)}else if("di"==W)U.shift(),a.V("no information");else{var yd=Vn(a,ca,32);if(yd&& +(null!=yd.ea||null!=yd.Sa)){var Cf=0;va&&("l"==va.charAt(0)&&(va=va.substr(1)||La),Cf=En(a,va)>>>0,65536>4||1,jh="dd"==W?4:"dw"==W?2:1,ml=0;mlmh;mh++){var Ef=a.Wa(yd,1),Df=Df|Ef<<(kh++<<3);kh==jh&&(ke+=k(Df,2*jh),ke+=1==jh?7==mh?"-":" ":" ",Df=kh=0);lh+=32<=Ef&&128>Ef?String.fromCharCode(Ef):"."}Qc&&(Qc+="\n");Qc+=ca+" "+ke+" "+lh}Qc&&a.V(Qc);a.eb=yd}}}}break;case "e":if("else"==h[0])break;var Ff= +1,nl=255,ol=a.Wa,pl=a.rc;"ew"==h[0]&&(Ff=2,nl=65535,ol=a.Zc,pl=a.Fb);var ql=Ff<<1,rl=h[1];if(null==rl)a.V("edit memory commands:"),a.V("\teb [a] [...] edit bytes at address a"),a.V("\tew [a] [...] edit words at address a");else{var Gf=Vn(a,rl,32);if(Gf)for(var Hf=2;Hfsh;){for(var yc=null,hp=256;xc.Xa>>>0>>0;){zd.Xa=a.nc(xc,!0);if(null==xc.Sa|| +!hp--)break;zd.ea=tl;if(yc=Ho(a,zd))break;zd.ea=a.nc(xc);if(yc=Ho(a,zd,!0)){tl=a.nc(xc,!0);0Ro){if(d.load(this.P)){this.B=new Re(this,To,"failsafe");this.B.load()&&(Wo(this,d),a=2,Mo(this.B));Se(this.B,"timestamp",qa());No(this.B);var e=this.Ec&&!this.R;if(1==a||za("Click OK to restore the previous PCjs machine state, or CANCEL to reset the machine.")){if(c=Oo(d)){var g=Po(d,"code"),h=Po(d,"data");g&&("ok"==g?d.load(h):("error"==g&&"no machine state"!=h?(this.Ta("Error: "+ h),"unable to verify user"==h&&(Da("user",""),this.A=null)):this.V(g+": "+h),Mo(d),d.load()?(c=Oo(d),e=!0):c=!1))}e&&Vo(this,c?d:null)}else 2==a&&d.clear()}else Vo(this);delete this.P;delete this.X}e=eb(this.id);for(g=0;ga[1];a=a[2];this.oa.mc=!0;this.Aj||(this.V("PCjs v"+To+"\nCopyright \u00a9 2012-2015 Jeff Parsons \nLicense: GPL version 3 or later "),this.Aj=!0);this.O&&(Xo(this,this.O,b,c,a),Sc(this.O));this.Y&&(Wo(this,b),b.clear());!c&&this.B&&(this.B.clear(),delete this.B)}; -function Wo(a,b){if(za("There may be a problem with your PCjs machine.\n\nTo help us diagnose it, click OK to send this PCjs machine state to http://www.pcjs.org.")){var c=a.aa,d=a.Yd(),e=b.toString(),g={app:"PCjs"};g.ver=To;g.url=c;g.user=d;g.type="bug";g.data=e;wa("http://www.pcjs.org/api/v1/report",!0,g)}} +function Xo(a,b,c,d,e){if(!b.oa.mc){b.oa.mc=!0;if(b.pc){var g=null;e&&((g=Po(c,b.id))||(g=Po(c,b.id.replace(/[a-z0-9]\./i,"."))));"string"===typeof g&&(g=null);!b.pc(g,d)&&g&&(ya("Unable to restore state for "+b.type),a.S&&!a.P?(c.clear(),a.Ec=Ro,window&&window.location.reload()):a.Y=!0,b.pc(null),e=!1)}if(!d&&b.yj)for(a=b.yj.split("|"),c=0;ca[1];a=a[2];this.oa.mc=!0;this.zj||(this.V("PCjs v"+To+"\nCopyright \u00a9 2012-2015 Jeff Parsons \nLicense: GPL version 3 or later "),this.zj=!0);this.O&&(Xo(this,this.O,b,c,a),Pc(this.O));this.Y&&(Wo(this,b),b.clear());!c&&this.B&&(this.B.clear(),delete this.B)}; +function Wo(a,b){if(za("There may be a problem with your PCjs machine.\n\nTo help us diagnose it, click OK to send this PCjs machine state to http://www.pcjs.org.")){var c=a.aa,d=a.Xd(),e=b.toString(),g={app:"PCjs"};g.ver=To;g.url=c;g.user=d;g.type="bug";g.data=e;wa("http://www.pcjs.org/api/v1/report",!0,g)}} function Ko(a,b,c){var d,e="none",g=new Re(a,To),h=new Re(a,To,"validate"),m=qa();Se(h,"timestamp",m);Se(g,"timestamp",m);Se(g,"version","1.19.5");Se(g,"url",window?window.location.href:null);Se(g,"browser",window?window.navigator.userAgent:"");a.O&&a.O.oc&&(c&&a.O.Xb(),d=a.O.oc(b,c),"object"===typeof d&&Se(g,a.O.id,d),c&&(a.O.oa.mc=!1,!1===d&&(e=null)));for(var m=eb(a.id),q=0;qm.indexOf("/")&&(m=window.location.pathname+m);a=a.replace(/(]*\sid=)(['"]).*?\2/,"$1$2"+c+"$2"+(d?" state=$2"+d+"$2":"")+(m?" url=$2"+m+"$2":""))}m=null;if("<"==a.charAt(0))try{e||(a=a.replace(/\s*/g,"")),window.ActiveXObject||"ActiveXObject"in window?(m=new window.ActiveXObject("Microsoft.XMLDOM"),m.async=!1,m.loadXML(a)):m=(new window.DOMParser).parseFromString(a,"text/xml")}catch(E){m= null,a=E.message}else a="unrecognized XML: "+(255=this.x&&a=this.y&&b=c>>2);d?(b=new eb(a.x,a.y,a.sc,a.A*b/c|0),a.y+=b.A,a.A-=b.A):(b=new eb(a.x,a.y,a.sc*b/c|0,a.A),a.x+=b.sc,a.sc-=b.sc);return b}f=cb.prototype; f.Hb=function(a,b,c){return this.xa&&this.xa.Hb(a,b,c)||this.A&&this.A.Hb(a,b,c)||this.D&&this.D.Hb(a,b,c)?!0:this.parent.Hb.call(this,a,b,c)};f.uc=function(a,b,c,d){this.xa=a;this.ma=b;this.A=c;this.Qa=d;this.D=gb(a,"Keyboard")};f.bc=function(a,b){b||hb();return!0};f.ac=function(){return!0};f.pf=function(a,b){a.button||(this.U=b?0:-1,ib(this,a,b))};f.Pg=function(a){ib(this,a)}; -function ib(a,b,c){var d=1280/null.offsetWidth,e=720/null.offsetHeight,k=null.getBoundingClientRect(),d=(b.clientX-k.left)*d|0;b=(b.clientY-k.top)*e|0;null==c&&(a.U||(a.U=Math.abs(a.K-d)>Math.abs(a.L-b)?1:2),1==a.U?b=a.L:2==a.U&&(d=a.K));a.K=d;a.L=b;if(0<=d&&1280>d&&0<=b&&720>b){a:{c=d;if(960>c&&a.B&&a.B.Pd)for(k=0;kd&& -(k=d);c=k;break a}c=g}if(c!==g&&(c&=-16,c!=a.na)){b=c;if(a.context&&a.V&&a.ga){e=a.V.width;a.ga.fillStyle="black";a.ga.fillRect(0,360,e,360);kb(a,378,a.V,a.ga);a.Z=a.pa.width/24|0;if(null==b)lb(a,"Mouse over memory to dump");else for(lb(a,"0x"+da(b),null,0,1),k=1;16>=k;k++){d="";for(l=1;8>=l;l++){var p=mb(a.ma,b++);lb(a,da(p,2),null,1);d+=32<=p&&128>p?String.fromCharCode(p):"."}lb(a,d,null,0,1)}a.context.drawImage(a.V,0,360,e,360,a.Ha,a.Sa,a.ya,a.Da)}a.na=c}}}f.Nd=function(){}; -function nb(a,b,c,d){a.B.Ce[a.B.xi++]={xj:b,$c:c,type:d};return oa(jb,b,c,0,d)}function kb(a,b,c,d){var e,k=null.style.color,l=a.va=10;a.F=l;a.O=b;a.P=a.ja=18;e||(e=a.ha||a.ja+"px Monaco, Lucida Console, Courier New");a.Y=a.ha=e;c&&(a.pa=c);d&&(a.I=d,a.qa=k||"white")} +function ib(a,b,c){var d=1280/null.offsetWidth,e=720/null.offsetHeight,k=null.getBoundingClientRect(),d=(b.clientX-k.left)*d|0;b=(b.clientY-k.top)*e|0;null==c&&(a.U||(a.U=Math.abs(a.K-d)>Math.abs(a.L-b)?1:2),1==a.U?b=a.L:2==a.U&&(d=a.K));a.K=d;a.L=b;if(0<=d&&1280>d&&0<=b&&720>b){a:{c=d;if(960>c&&a.B&&a.B.Od)for(k=0;kd&& +(k=d);c=k;break a}c=g}if(c!==g&&(c&=-16,c!=a.na)){b=c;if(a.context&&a.V&&a.ga){e=a.V.width;a.ga.fillStyle="black";a.ga.fillRect(0,360,e,360);kb(a,378,a.V,a.ga);a.Z=a.pa.width/24|0;if(null==b)lb(a,"Mouse over memory to dump");else for(lb(a,"0x"+da(b),null,0,1),k=1;16>=k;k++){d="";for(l=1;8>=l;l++){var p=mb(a.ma,b++);lb(a,da(p,2),null,1);d+=32<=p&&128>p?String.fromCharCode(p):"."}lb(a,d,null,0,1)}a.context.drawImage(a.V,0,360,e,360,a.Ha,a.Sa,a.ya,a.Da)}a.na=c}}}f.Md=function(){}; +function nb(a,b,c,d){a.B.Be[a.B.xi++]={yj:b,$c:c,type:d};return oa(jb,b,c,0,d)}function kb(a,b,c,d){var e,k=null.style.color,l=a.va=10;a.F=l;a.O=b;a.P=a.ja=18;e||(e=a.ha||a.ja+"px Monaco, Lucida Console, Courier New");a.Y=a.ha=e;c&&(a.pa=c);d&&(a.I=d,a.qa=k||"white")} function lb(a,b,c,d,e){a.I.font=a.Y;a.I.fillStyle=a.qa;a.I.fillText(b,a.F,a.O);a.F+=a.Z;null!=c&&(16!=a.Ga?b=c.toString():(b=8>a.Ma?"0x":"",b+=da(c,a.Ma)),a.I.fillText(b,a.F,a.O),a.F+=a.Z);d&&(a.F+=a.Z*d);e&&(a.F=a.va,a.O+=(a.P+2)*(e||1))}function hb(){for(var a=!1,b=Xa(window.document,"pcjs","panel"),c=0;c=this.F?12:24>=this.F?14:15;this.qb=1<>2;this.B=this.qb-1;this.L=this.T/this.qb|0;this.K=this.L-1;this.O=[];this.P=[];this.U=[];this.Y=[];a=new h;this.fa=Array(this.L);for(b=0;b>>a.na;0a.qb?a.qb:c;if(l&&l.size){if(l.type==d&&l.controller==e){if(b+c<=l.De)return l.pe+=l.De-b,l.De=b,!0;if(b>=l.De+l.pe){q=l.size-(b-p);q>c&&(q=c);l.pe=b-l.De+q;c-=q;b=p+a.qb;continue}}return wb(1,b,c)}l=a.fa[k];b=new h(b,q,a.qb,d,e);xb(b,l,a.Qa);a.fa[k++]=b;b=p+a.qb;c-=q}return 0>>this.na;0=this.F?12:24>=this.F?14:15;this.qb=1<>2;this.B=this.qb-1;this.L=this.T/this.qb|0;this.K=this.L-1;this.O=[];this.P=[];this.U=[];this.Y=[];a=new h;this.fa=Array(this.L);for(b=0;b>>a.na;0a.qb?a.qb:c;if(l&&l.size){if(l.type==d&&l.controller==e){if(b+c<=l.Ce)return l.oe+=l.Ce-b,l.Ce=b,!0;if(b>=l.Ce+l.oe){q=l.size-(b-p);q>c&&(q=c);l.oe=b-l.Ce+q;c-=q;b=p+a.qb;continue}}return wb(1,b,c)}l=a.fa[k];b=new h(b,q,a.qb,d,e);xb(b,l,a.Qa);a.fa[k++]=b;b=p+a.qb;c-=q}return 0>>this.na;0>>a.na;0>>=a.na;0>>a.na;0>>this.na].jc(a&this.B,a)};function mb(a,b){return a.fa[(b&a.D)>>>a.na].ke(b&a.B,b)} -function Hb(a,b){var c=b&a.B,d=(b&a.D)>>>a.na;return c!=a.B?a.fa[d].pg(c,b):a.fa[d++].ke(c,b)|a.fa[d&a.K].ke(0,b+1)<<8}f.Tb=function(a){var b=a&this.B,c=(a&this.D)>>>this.na;if(b>>this.na].dc(a&this.B,b&255,a)}; +function yb(a,b,c,d,e){for(var k=0,l=b>>>a.na;0>>this.na].jc(a&this.B,a)};function mb(a,b){return a.fa[(b&a.D)>>>a.na].je(b&a.B,b)} +function Hb(a,b){var c=b&a.B,d=(b&a.D)>>>a.na;return c!=a.B?a.fa[d].pg(c,b):a.fa[d++].je(c,b)|a.fa[d&a.K].je(0,b+1)<<8}f.Tb=function(a){var b=a&this.B,c=(a&this.D)>>>this.na;if(b>>this.na].dc(a&this.B,b&255,a)}; f.zb=function(a,b){var c=a&this.B,d=(a&this.D)>>>this.na;c!=this.B?this.fa[d].$e(c,b&65535,a):(this.fa[d++].dc(c,b&255,a),this.fa[d&this.K].dc(0,b>>8&255,a+1))};function Ib(a,b,c){var d=b&a.B,e=(b&a.D)>>>a.na;d!=a.B?a.fa[e].gi(d,c&65535,b):(a.fa[e++].Ze(d,c&255,b),a.fa[e&a.K].Ze(0,c>>8&255,b+1))} function Jb(a,b,c,d){void 0===d&&(d=0);for(var e in c){var k=a,l=+e+d,p=c[e].bind(b);if(void 0!==p)for(var q=+e+d;q<=l;q++)void 0!==k.O[q]?ta("Input port 0x"+da(q,4)+" already registered"):k.O[q]=[p,!1]}}function Kb(a,b,c,d){for(var e=0,k=0;0>>=k)&q;if(void 0!==l&&l[0])l[0](b,q,e);k+=p<<3;b+=p;c-=p}}function wb(a,b,c){ta("Memory block error ("+a+","+da(b)+","+da(c)+")");return!1}var Ob; if(bb){var Pb=new ArrayBuffer(2);(new DataView(Pb)).setUint16(0,256,!0);Ob=256===(new Uint16Array(Pb))[0]}else Ob=!1;var Db=Ob; -function h(a,b,c,d,e,k){this.id=Qb+=2;this.ba=null;this.B=0;this.De=a;this.pe=b;this.size=c||0;this.type=d||Rb;this.O=d==Cb;this.controller=null;this.A=k;this.Pa=this.Hi=!1;this.V=this.ga=0;Sb(this);if(c)if(e)this.controller=e,a=e.Mi(a),this.ba=a[0],this.B=a[1],Ab(this,e.Ng());else if(bb)this.U=new ArrayBuffer(c),this.T=new DataView(this.U,0,c),this.D=new Uint8Array(this.U,0,c),this.Z=new Uint16Array(this.U,0,c>>1),this.ba=new Int32Array(this.U,0,c>>2),Ab(this,Db?Eb:Fb);else{this.ba=Array(c>>2);for(e= +function h(a,b,c,d,e,k){this.id=Qb+=2;this.ba=null;this.B=0;this.Ce=a;this.oe=b;this.size=c||0;this.type=d||Rb;this.O=d==Cb;this.controller=null;this.A=k;this.Pa=this.Hi=!1;this.V=this.ga=0;Sb(this);if(c)if(e)this.controller=e,a=e.Mi(a),this.ba=a[0],this.B=a[1],Ab(this,e.Ng());else if(bb)this.U=new ArrayBuffer(c),this.T=new DataView(this.U,0,c),this.D=new Uint8Array(this.U,0,c),this.Z=new Uint16Array(this.U,0,c>>1),this.ba=new Int32Array(this.U,0,c>>2),Ab(this,Db?Eb:Fb);else{this.ba=Array(c>>2);for(e= 0;e>8&65280|a>>>24);return a} h.prototype={constructor:h,parent:null,save:function(){var a,b;if(this.controller)a=null;else if(bb)for(a=Array(this.size>>2),b=0;b>8,c)},ma:function(a,b,c){this.dc(a++,b&255,c++);this.dc(a++,b>>8&255,c++);this.dc(a++,b>>16&255,c++);this.dc(a,b>>>24,c)},ta:function(a){return this.ba[a>>2]>>>((a&3)<<3)&255},Na:function(a){var b=a>>2;a=(a&3)<<3;var c=this.ba[b]>>a;return 24>a?c&65535:c&255|(this.ba[b+1]&255)<<8},Ea:function(a){var b=a>>2;a=(a&3)<<3;var c=this.ba[b];a&&(c=c>>>a|this.ba[b+1]<< -32-a);return c},bb:function(a,b){var c=a>>2,d=(a&3)<<3;this.ba[c]=this.ba[c]&~(255<>2,d=(a&3)<<3;24>d?this.ba[c]=this.ba[c]&~(65535<>8);this.Pa=!0},Jb:function(a,b){var c=a>>2,d=(a&3)<<3;if(d){var e=-1<>>32-d}else this.ba[c]=b;this.Pa=!0},qa:function(a,b){this.A&&Xb(this.A,b,1,!1);return this.ke(a,b)},Ia:function(a, -b){this.A&&Xb(this.A,b,2,!1);return this.pg(a,b)},Aa:function(a,b){this.A&&Xb(this.A,b,4,!1);return this.ci(a,b)},Xa:function(a,b,c){this.A&&Xb(this.A,c,1,!0);this.O||this.Ze(a,b,c)},Qb:function(a,b,c){this.A&&Xb(this.A,c,2,!0);this.O||this.gi(a,b,c)},Bb:function(a,b,c){this.A&&Xb(this.A,c,4,!0);this.O||this.na(a,b,c)},Ma:function(a,b){this.F.ba[this.K]|=this.P;this.I.ba[this.L]|=this.P;return this.Y.jc(a,b)},Oa:function(a,b){this.F.ba[this.K]|=this.P;this.I.ba[this.L]|=this.P;return this.Y.og(a, -b)},Fa:function(a,b){this.F.ba[this.K]|=this.P;this.I.ba[this.L]|=this.P;return this.Y.Jd(a,b)},lb:function(a,b,c){this.F.ba[this.K]|=this.P;this.I.ba[this.L]|=this.fa;this.Y.dc(a,b,c)},gc:function(a,b,c){this.F.ba[this.K]|=this.P;this.I.ba[this.L]|=this.fa;this.Y.$e(a,b,c)},Ib:function(a,b,c){this.F.ba[this.K]|=this.P;this.I.ba[this.L]|=this.fa;this.Y.wg(a,b,c)},va:function(a,b){return Yb(this.A,b,!1).jc(a,b)},Ua:function(a,b){return Yb(this.A,b,!1).og(a,b)},Ga:function(a,b){return Yb(this.A,b,!1).Jd(a, +32-a);return c},bb:function(a,b){var c=a>>2,d=(a&3)<<3;this.ba[c]=this.ba[c]&~(255<>2,d=(a&3)<<3;24>d?this.ba[c]=this.ba[c]&~(65535<>8);this.Pa=!0},Jb:function(a,b){var c=a>>2,d=(a&3)<<3;if(d){var e=-1<>>32-d}else this.ba[c]=b;this.Pa=!0},qa:function(a,b){this.A&&Wb(this.A,b,1,!1);return this.je(a,b)},Ia:function(a, +b){this.A&&Wb(this.A,b,2,!1);return this.pg(a,b)},Aa:function(a,b){this.A&&Wb(this.A,b,4,!1);return this.ci(a,b)},Xa:function(a,b,c){this.A&&Wb(this.A,c,1,!0);this.O||this.Ze(a,b,c)},Qb:function(a,b,c){this.A&&Wb(this.A,c,2,!0);this.O||this.gi(a,b,c)},Bb:function(a,b,c){this.A&&Wb(this.A,c,4,!0);this.O||this.na(a,b,c)},Ma:function(a,b){this.F.ba[this.K]|=this.P;this.I.ba[this.L]|=this.P;return this.Y.jc(a,b)},Oa:function(a,b){this.F.ba[this.K]|=this.P;this.I.ba[this.L]|=this.P;return this.Y.og(a, +b)},Fa:function(a,b){this.F.ba[this.K]|=this.P;this.I.ba[this.L]|=this.P;return this.Y.Id(a,b)},lb:function(a,b,c){this.F.ba[this.K]|=this.P;this.I.ba[this.L]|=this.fa;this.Y.dc(a,b,c)},gc:function(a,b,c){this.F.ba[this.K]|=this.P;this.I.ba[this.L]|=this.fa;this.Y.$e(a,b,c)},Ib:function(a,b,c){this.F.ba[this.K]|=this.P;this.I.ba[this.L]|=this.fa;this.Y.wg(a,b,c)},va:function(a,b){return Yb(this.A,b,!1).jc(a,b)},Ua:function(a,b){return Yb(this.A,b,!1).og(a,b)},Ga:function(a,b){return Yb(this.A,b,!1).Id(a, b)},pb:function(a,b,c){Yb(this.A,c,!0).dc(a,b,c)},hc:function(a,b,c){Yb(this.A,c,!0).$e(a,b,c)},lc:function(a,b,c){Yb(this.A,c,!0).wg(a,b,c)},pa:function(a){return this.D[a]},sa:function(a){return this.D[a]},Ha:function(a){return this.T.getUint16(a,!0)},Sa:function(a){return a&1?this.D[a]|this.D[a+1]<<8:this.Z[a>>1]},ya:function(a){return this.T.getInt32(a,!0)},Da:function(a){return a&3?this.D[a]|this.D[a+1]<<8|this.D[a+2]<<16|this.D[a+3]<<24:this.ba[a>>2]},Wa:function(a,b){this.D[a]=b;this.Pa=!0}, ab:function(a,b){this.D[a]=b;this.Pa=!0},Ob:function(a,b){this.T.setUint16(a,b,!0);this.Pa=!0},Xb:function(a,b){a&1?(this.D[a]=b,this.D[a+1]=b>>8):this.Z[a>>1]=b;this.Pa=!0},Ab:function(a,b){this.T.setInt32(a,b,!0);this.Pa=!0},Cb:function(a,b){a&3?(this.D[a]=b,this.D[a+1]=b>>8,this.D[a+2]=b>>16,this.D[a+3]=b>>24):this.ba[a>>2]=b;this.Pa=!0}};function xb(a,b,c){b&&(c&&(a.Qa=c),b.A&&(a.A=b.A),(a.V=b.V)&&Zb(a,$b,!1),(a.ga=b.ga)&&ac(a,$b,!1))} -function Sb(a,b,c,d,e,k){a.Y=b;a.F=c;a.K=d>>2;a.I=e;a.L=k>>2;a.fa=b?Vb(bc|cc):0;a.P=b?Vb(bc):0}function ac(a,b,c){c&&a.ga||(a.dc=!a.O&&b[3]||a.ra,a.$e=!a.O&&b[4]||a.ha,a.wg=!a.O&&b[5]||a.ma);if(c||void 0===c)a.Ze=b[3]||a.ra,a.gi=b[4]||a.ha,a.na=b[5]||a.ma}function Zb(a,b,c){c&&a.V||(a.jc=b[0]||a.ka,a.og=b[1]||a.xa,a.Jd=b[2]||a.ja);if(c||void 0===c)a.ke=b[0]||a.ka,a.pg=b[1]||a.xa,a.ci=b[2]||a.ja}function Ab(a,b,c){b||(b=5==a.type?dc:6==a.type?ec:fc);Zb(a,b,c);ac(a,b,c)} +function Sb(a,b,c,d,e,k){a.Y=b;a.F=c;a.K=d>>2;a.I=e;a.L=k>>2;a.fa=b?Vb(bc|cc):0;a.P=b?Vb(bc):0}function ac(a,b,c){c&&a.ga||(a.dc=!a.O&&b[3]||a.ra,a.$e=!a.O&&b[4]||a.ha,a.wg=!a.O&&b[5]||a.ma);if(c||void 0===c)a.Ze=b[3]||a.ra,a.gi=b[4]||a.ha,a.na=b[5]||a.ma}function Zb(a,b,c){c&&a.V||(a.jc=b[0]||a.ka,a.og=b[1]||a.xa,a.Id=b[2]||a.ja);if(c||void 0===c)a.je=b[0]||a.ka,a.pg=b[1]||a.xa,a.ci=b[2]||a.ja}function Ab(a,b,c){b||(b=5==a.type?dc:6==a.type?ec:fc);Zb(a,b,c);ac(a,b,c)} var fc=[],Gb=[h.prototype.ta,h.prototype.Na,h.prototype.Ea,h.prototype.bb,h.prototype.Zb,h.prototype.Jb],$b=[h.prototype.qa,h.prototype.Ia,h.prototype.Aa,h.prototype.Xa,h.prototype.Qb,h.prototype.Bb],ec=[h.prototype.Ma,h.prototype.Oa,h.prototype.Fa,h.prototype.lb,h.prototype.gc,h.prototype.Ib],dc=[h.prototype.va,h.prototype.Ua,h.prototype.Ga,h.prototype.pb,h.prototype.hc,h.prototype.lc]; if(bb)var Fb=[h.prototype.pa,h.prototype.Ha,h.prototype.ya,h.prototype.Wa,h.prototype.Ob,h.prototype.Ab],Eb=[h.prototype.sa,h.prototype.Sa,h.prototype.Da,h.prototype.ab,h.prototype.Xb,h.prototype.Cb]; -function gc(a,b){Ja.call(this,"CPU",a,gc);var c=a.cycles||b,d=a.multiplier||1;this.W={};this.W.Sc=c;this.W.rd=d;this.W.vf=Math.round(this.W.Sc/1E4)/100;this.W.be=this.W.vf*this.W.rd;this.ia.Kb=!1;this.ia.Ji=!1;this.ia.Ig=a.autoStart;this.ia.Ii=!1;c=Ma.autostart;void 0!==c&&(this.ia.Ig="true"==c?!0:"false"==c?!1:null);this.ia.rf=!1;this.W.xf=this.W.de=0;this.W.yf=a.csStart;this.W.He=a.csInterval;this.W.Ie=a.csStop;this.re=[];var e=this;this.vj=function(){hc(e)};Za(this)}Ra(gc);f=gc.prototype; -f.uc=function(a,b,c,d){this.ma=b;this.Qa=d;this.xa=a;for(b=null;b=gb(a,"Video",b);)this.re.push(b);this.Y=gb(a,"ChipSet");Za(this)};f.reset=function(){};f.save=function(){return null};f.restore=function(){return!1};f.bc=function(a,b){if(!b){if(a&&this.restore){ic(this);if(!this.restore(a))return!1;jc(this)}else this.reset();this.cc("No debugger detected")}kc(this);return!0};f.ac=function(a){return a&&this.save?this.save():!0}; -function lc(a){(!0===a.ia.Ig||null===a.ia.Ig&&void 0===a.ra.run)&&hc(a)}f.Li=function(){return 0};function jc(a){void 0===a.W.yf&&(a.W.yf=0);void 0===a.W.He&&(a.W.He=-1);void 0===a.W.Ie&&(a.W.Ie=-1);a.ia.rf=0<=a.W.yf&&0>>d.na;k=k+l-1>>>d.na;e.Gg=0;for(e.$c=0;p<=k;)l=d.fa[p],e.Gg+=l.size,l.size&&(e.Bg.push(oa(jb,p,0,0,l.type)),e.$c++),p++;c.B=e;c.ka=c.B.$c*c.ma.qb/691200;d=0;c.B.xi=0;c.B.Ce||(c.B.Ce=[]);var e=-1,p=0,q=-1;for(k=0;k>1),q=l.y+(l.A>>1),w=l.A,l.sc>1,p.O+=(p.P>>1)-2,lb(p,e),p.fa&&(p.I.restore(),p.fa=!1)}}else lb(c,"This space intentionally left blank");c.context.drawImage(c.T,0,0,c.T.width,c.T.height,c.Ia,c.Na,c.Aa,c.Ea);c.ta=!1}}f.Zc=function(){this.re.length&&this.re[0].Zc()}; -f.Hb=function(a,b,c){var d=this;a=!1;switch(b){case "run":this.ra[b]=c;c.onclick=function(){var a;if(a=d.xa)if(a=d.xa,a.ia.Yb)a=!0;else{var b=null,c,p=Sa(a.id);for(c=0;cc&&(c=60);2>c&&(c=2);var d=1;b&&1a.W.vf&&(c=Math.round(c/a.W.rd));return c}function ic(a){a.W.qd=0;a.Wc=a.Mc=a.gc=a.A=0;jc(a);qc(a,1)} -function qc(a,b,c){if(void 0!==b){.8>a.W.qd/a.W.be&&(b=1);a.W.rd=b;b=a.W.vf*a.W.rd;if(a.W.be!=b){a.W.be=b;b=a.W.be.toFixed(2)+"Mhz";var d=a.ra.setSpeed;d&&(d.textContent=b);a.cc("target speed: "+b)}c&&a.Zc()}sc(a,a.Mc);a.Mc=0;a.W.ce=ka();a.W.Hd=0;uc(a)} -function hc(a,b){if(Ya(a,!0)){if(!a.ia.Kb){qc(a);a.xa&&a.xa.start(a.W.ce,vc(a));a.ia.Kb=!0;a.ia.Ji=!0;a.Y&&wc(a.Y);var c=a.ra.run;c&&(c.textContent="Halt");a.Nd(!0);b&&a.Zc()}a.W.Wg>=a.W.Sc&&uc(a,!0);a.W.Me=0;a.W.wf=ka();a.W.Hd&&(c=a.W.wf-a.W.Hd,c>a.W.Ri&&(a.W.ce+=c,a.W.ce>a.W.wf&&(a.W.ce=a.W.wf)));try{do{var d=a.ia.rf?1:a.W.Fk;if(a.Y){xc(a.Y);var e=a.Y,c=d,k=e.L[0];if(k.Fd){var l=(vc(e.A,e.ha)-k.dd)/e.Ia|0,p=yc(e,0)-l;6==k.mode&&(p-=l);var q=p*e.Ia|0;6==k.mode&&(q>>=1);c>q&&(c=q)}var d=c,w=a.Y,c= -d;if(w.B&&w.B[11]&64){var C=w.pa-vc(w.A,w.ha);0C&&(c=C)}d=c}try{a.aj(d)}catch(G){if("number"!=typeof G)throw G;}var D=a.gc-a.A;a.Mc+=D;a.W.Me+=D;sc(a,0,!0);var c=a,R=D;if(c.ia.rf){var V=!1;c.W.xf=c.W.xf+c.Li()|0;c.W.de-=R;0>=c.W.de&&(c.W.de+=c.W.He,V=!0);0<=c.W.Ie&&c.W.Ie<=vc(c)&&(c.W.He=c.W.Ie=-1,jc(c),oc(c),V=!0);V&&c.cc(vc(c)+" cycles: checksum="+da(c.W.xf))}a.W.Ke-=D;0>=a.W.Ke&&(a.W.Ke+=a.W.Ti,mc(a));a.W.Je-=D;0>=a.W.Je&&(a.W.Je+=a.W.Si,a.Nd());a.W.Le-=D;if(0>=a.W.Le){a.W.Le+=a.W.Vg;break}}while(a.ia.Kb)}catch(U){oc(a); -kc(a);a.xa&&a.xa.stop(ka(),vc(a));Ya(a,!1);ab(a,U.stack||U.message);return}d=setTimeout;e=a.vj;a.W.Hd=ka();k=a.W.Ri;a.W.Me&&(k=Math.round(k*a.W.Me/a.W.Vg));k-=a.W.Hd-a.W.wf;if(l=a.W.Hd-a.W.ce)a.W.qd=Math.round(a.Mc/(10*l))/100,864E5<=l&&(a.Wc=0,a.Y&&xc(a.Y,!0),qc(a));if(0>k||a.W.qdthis.id&&m.call(e,13,a&65532)}return g};f.Ck=function(a){var b=this.A;a=b.Ob+(a<<2);var c=b.la(a);this.vg=2;b.T&=-769;return this.load(b.la(a+2))+c|0};f.Bk=function(a){var b=this.A;a<<=3;var c=b.Ob+a|0;if(7<=(b.Vc-c|0))return this.F=!0,a=Cc(this,c,a),a!==g&&(a+=this.Ue),a;m.call(b,13,a|2);return g};f.Ai=function(a){return this.Ba+a|0}; -f.Ci=function(a){return this.Ba+a|0};f.zi=function(a,b){return(a>>>0)+b<=this.D?this.Ba+a|0:this.nf()};f.jj=function(a,b){return(a>>>0)+b>this.D?this.Ba+a|0:this.nf()};f.nf=function(){m.call(this.A,13,0);return g};f.Bi=function(a,b){return(a>>>0)+b<=this.D?this.Ba+a|0:this.of()};f.kj=function(a,b){return(a>>>0)+b>this.D?this.Ba+a|0:this.of()};f.of=function(){m.call(this.A,13,0);return g}; +function gc(a,b){Ja.call(this,"CPU",a,gc);var c=a.cycles||b,d=a.multiplier||1;this.W={};this.W.Sc=c;this.W.qd=d;this.W.vf=Math.round(this.W.Sc/1E4)/100;this.W.ae=this.W.vf*this.W.qd;this.ia.Kb=!1;this.ia.Ji=!1;this.ia.Ig=a.autoStart;this.ia.Ii=!1;c=Ma.autostart;void 0!==c&&(this.ia.Ig="true"==c?!0:"false"==c?!1:null);this.ia.rf=!1;this.W.xf=this.W.ce=0;this.W.yf=a.csStart;this.W.He=a.csInterval;this.W.Ie=a.csStop;this.qe=[];var e=this;this.wj=function(){hc(e)};Za(this)}Ra(gc);f=gc.prototype; +f.uc=function(a,b,c,d){this.ma=b;this.Qa=d;this.xa=a;for(b=null;b=gb(a,"Video",b);)this.qe.push(b);this.Y=gb(a,"ChipSet");Za(this)};f.reset=function(){};f.save=function(){return null};f.restore=function(){return!1};f.bc=function(a,b){if(!b){if(a&&this.restore){ic(this);if(!this.restore(a))return!1;jc(this)}else this.reset();this.cc("No debugger detected")}kc(this);return!0};f.ac=function(a){return a&&this.save?this.save():!0}; +function lc(a){(!0===a.ia.Ig||null===a.ia.Ig&&void 0===a.ra.run)&&hc(a)}f.Li=function(){return 0};function jc(a){void 0===a.W.yf&&(a.W.yf=0);void 0===a.W.He&&(a.W.He=-1);void 0===a.W.Ie&&(a.W.Ie=-1);a.ia.rf=0<=a.W.yf&&0>>d.na;k=k+l-1>>>d.na;e.Gg=0;for(e.$c=0;p<=k;)l=d.fa[p],e.Gg+=l.size,l.size&&(e.Bg.push(oa(jb,p,0,0,l.type)),e.$c++),p++;c.B=e;c.ka=c.B.$c*c.ma.qb/691200;d=0;c.B.xi=0;c.B.Be||(c.B.Be=[]);var e=-1,p=0,q=-1;for(k=0;k>1),q=l.y+(l.A>>1),w=l.A,l.sc>1,p.O+=(p.P>>1)-2,lb(p,e),p.fa&&(p.I.restore(),p.fa=!1)}}else lb(c,"This space intentionally left blank");c.context.drawImage(c.T,0,0,c.T.width,c.T.height,c.Ia,c.Na,c.Aa,c.Ea);c.ta=!1}}f.Zc=function(){this.qe.length&&this.qe[0].Zc()}; +f.Hb=function(a,b,c){var d=this;a=!1;switch(b){case "run":this.ra[b]=c;c.onclick=function(){var a;if(a=d.xa)if(a=d.xa,a.ia.Yb)a=!0;else{var b=null,c,p=Sa(a.id);for(c=0;cc&&(c=60);2>c&&(c=2);var d=1;b&&1a.W.vf&&(c=Math.round(c/a.W.qd));return c}function ic(a){a.W.pd=0;a.Wc=a.Mc=a.gc=a.A=0;jc(a);qc(a,1)} +function qc(a,b,c){if(void 0!==b){.8>a.W.pd/a.W.ae&&(b=1);a.W.qd=b;b=a.W.vf*a.W.qd;if(a.W.ae!=b){a.W.ae=b;b=a.W.ae.toFixed(2)+"Mhz";var d=a.ra.setSpeed;d&&(d.textContent=b);a.cc("target speed: "+b)}c&&a.Zc()}sc(a,a.Mc);a.Mc=0;a.W.be=ka();a.W.Gd=0;tc(a)} +function hc(a,b){if(Ya(a,!0)){if(!a.ia.Kb){qc(a);a.xa&&a.xa.start(a.W.be,vc(a));a.ia.Kb=!0;a.ia.Ji=!0;a.Y&&wc(a.Y);var c=a.ra.run;c&&(c.textContent="Halt");a.Md(!0);b&&a.Zc()}a.W.Wg>=a.W.Sc&&tc(a,!0);a.W.Me=0;a.W.wf=ka();a.W.Gd&&(c=a.W.wf-a.W.Gd,c>a.W.Qi&&(a.W.be+=c,a.W.be>a.W.wf&&(a.W.be=a.W.wf)));try{do{var d=a.ia.rf?1:a.W.Gk;if(a.Y){xc(a.Y);var e=a.Y,c=d,k=e.L[0];if(k.Ed){var l=(vc(e.A,e.ha)-k.dd)/e.Ia|0,p=yc(e,0)-l;6==k.mode&&(p-=l);var q=p*e.Ia|0;6==k.mode&&(q>>=1);c>q&&(c=q)}var d=c,w=a.Y,c= +d;if(w.B&&w.B[11]&64){var C=w.pa-vc(w.A,w.ha);0C&&(c=C)}d=c}try{a.$i(d)}catch(G){if("number"!=typeof G)throw G;}var D=a.gc-a.A;a.Mc+=D;a.W.Me+=D;sc(a,0,!0);var c=a,R=D;if(c.ia.rf){var V=!1;c.W.xf=c.W.xf+c.Li()|0;c.W.ce-=R;0>=c.W.ce&&(c.W.ce+=c.W.He,V=!0);0<=c.W.Ie&&c.W.Ie<=vc(c)&&(c.W.He=c.W.Ie=-1,jc(c),oc(c),V=!0);V&&c.cc(vc(c)+" cycles: checksum="+da(c.W.xf))}a.W.Ke-=D;0>=a.W.Ke&&(a.W.Ke+=a.W.Si,mc(a));a.W.Je-=D;0>=a.W.Je&&(a.W.Je+=a.W.Ri,a.Md());a.W.Le-=D;if(0>=a.W.Le){a.W.Le+=a.W.Vg;break}}while(a.ia.Kb)}catch(U){oc(a); +kc(a);a.xa&&a.xa.stop(ka(),vc(a));Ya(a,!1);ab(a,U.stack||U.message);return}d=setTimeout;e=a.wj;a.W.Gd=ka();k=a.W.Qi;a.W.Me&&(k=Math.round(k*a.W.Me/a.W.Vg));k-=a.W.Gd-a.W.wf;if(l=a.W.Gd-a.W.be)a.W.pd=Math.round(a.Mc/(10*l))/100,864E5<=l&&(a.Wc=0,a.Y&&xc(a.Y,!0),qc(a));if(0>k||a.W.pdthis.id&&m.call(e,13,a&65532)}return g};f.Dk=function(a){var b=this.A;a=b.Ob+(a<<2);var c=b.la(a);this.vg=2;b.T&=-769;return this.load(b.la(a+2))+c|0};f.Ck=function(a){var b=this.A;a<<=3;var c=b.Ob+a|0;if(7<=(b.Vc-c|0))return this.F=!0,a=Cc(this,c,a),a!==g&&(a+=this.Ue),a;m.call(b,13,a|2);return g};f.Ai=function(a){return this.Ba+a|0}; +f.Ci=function(a){return this.Ba+a|0};f.zi=function(a,b){return(a>>>0)+b<=this.D?this.Ba+a|0:this.nf()};f.kj=function(a,b){return(a>>>0)+b>this.D?this.Ba+a|0:this.nf()};f.nf=function(){m.call(this.A,13,0);return g};f.Bi=function(a,b){return(a>>>0)+b<=this.D?this.Ba+a|0:this.of()};f.lj=function(a,b){return(a>>>0)+b>this.D?this.Ba+a|0:this.of()};f.of=function(){m.call(this.A,13,0);return g}; function Dc(a,b,c){var d=a.A,e=d.la(b+2),k=d.la(b)|(e&255)<<16,d=d.la(b+4);a.oa=c;a.Ba=k;a.Za=d;a.D=(d>>>0)+1;a.mb=e;a.type=e&7936;a.ext=0;a.ec=b;Bc(a,!0)} -function Cc(a,b,c,d){var e=a.A;if(!d&&c===a.B.oa)return a.oa=c,a.Ba=a.B.Ba,a.Za=a.B.Za,a.D=(a.B.Za>>>0)+1,a.mb=a.B.mb,a.type=a.B.type,a.ext=a.B.ext,a.ec=a.B.ec,a.B.oa=0,Bc(a,!0,!0,!1),a.Ba;a.B.oa=0;var k=e.la(b+0),l=e.la(b+4),p=l&7936,q=e.la(b+2)|(l&255)<<16,w=e.la(b+6),C=c&65528;if(80386<=e.ga){var G=k,q=q|(w&65280)<<16,k=k|(w&15)<<16;w&128&&(k=k<<12|4095)}switch(a.id){case Ac:a.Yd=!1;a.vg=a.aa;var D=a.F;if(D&&1==c&&a.I.length){var R=a.I[a.Ue-1];if(R&&!R())return g}var R=c&3,V=(l&24576)>>13,U,va, -ia;if(C&&!(l&32768))return 6>a.id&&m.call(e,11,c&65532),g;if(6144<=p){R=c&3;if(R>a.xb){if(!1!==D&&!(V==a.xb||p&1024&&V<=a.xb))return g;U=n(e);Ec(e,n(e),!0);r(e,U);a.Yd=!0}U=0}else{if(256==p||2304==p)return Fc(a,c,D)?a.Ba:g;if(1024==p)U=2,ia=0,R>>0)+1,a.mb=a.B.mb,a.type=a.B.type,a.ext=a.B.ext,a.ec=a.B.ec,a.B.oa=0,Bc(a,!0,!0,!1),a.Ba;a.B.oa=0;var k=e.la(b+0),l=e.la(b+4),p=l&7936,q=e.la(b+2)|(l&255)<<16,w=e.la(b+6),C=c&65528;if(80386<=e.ga){var G=k,q=q|(w&65280)<<16,k=k|(w&15)<<16;w&128&&(k=k<<12|4095)}switch(a.id){case Ac:a.Xd=!1;a.vg=a.aa;var D=a.F;if(D&&1==c&&a.I.length){var R=a.I[a.Ue-1];if(R&&!R())return g}var R=c&3,V=(l&24576)>>13,U,va, +ia;if(C&&!(l&32768))return 6>a.id&&m.call(e,11,c&65532),g;if(6144<=p){R=c&3;if(R>a.xb){if(!1!==D&&!(V==a.xb||p&1024&&V<=a.xb))return g;U=n(e);Ec(e,n(e),!0);r(e,U);a.Xd=!0}U=0}else{if(256==p||2304==p)return Fc(a,c,D)?a.Ba:g;if(1024==p)U=2,ia=0,Ra.id&&m.call(e,13,c&65532|(va?2:0)),g;break;case 2:if(C){if(4096>p||2048==(p&2560))return 6>a.id&&m.call(e,13,c&65532),g;if(!(l&32768))return 6>a.id&&m.call(e,11,c&65532),g}break;case 3:if(!(l&32768))return 6>a.id&&m.call(e,12,c&65532),g;if(!C||4096>p||512!=(p&2560))return 6>a.id&&m.call(e,13,c&65532,!0),g;break;case 4:D=p&-513;if(!C||256!=D&&2304!=D)return 6>a.id&&m.call(e,13,c&65532,!0),g;2304==D&&(a.si= -q+e.la(q+100+2)|0,a.ij=q+a.Za|0);break;case 6:if(!(p&4096)&&768>>0)+1,a.mb=l,a.type=p,a.ext=w,a.ec=b,Bc(a,!0,!0,!1));return q} +u(e,e.ya.oa),Kc(e,0));u(e,D);for(u(e,l);k;)u(e,a.K[--k]);a.Xd=!0}return a.Ba}if(0!==U)return 6>a.id&&m.call(e,13,c&65532|(va?2:0)),g;break;case 2:if(C){if(4096>p||2048==(p&2560))return 6>a.id&&m.call(e,13,c&65532),g;if(!(l&32768))return 6>a.id&&m.call(e,11,c&65532),g}break;case 3:if(!(l&32768))return 6>a.id&&m.call(e,12,c&65532),g;if(!C||4096>p||512!=(p&2560))return 6>a.id&&m.call(e,13,c&65532,!0),g;break;case 4:D=p&-513;if(!C||256!=D&&2304!=D)return 6>a.id&&m.call(e,13,c&65532,!0),g;2304==D&&(a.si= +q+e.la(q+100+2)|0,a.jj=q+a.Za|0);break;case 6:if(!(p&4096)&&768>>0)+1,a.mb=l,a.type=p,a.ext=w,a.ec=b,Bc(a,!0,!0,!1));return q} function Fc(a,b,c){var d=a.A,e=a.xb,k=d.qa.oa,l=d.qa.Ba;if(!c){if(!(d.qa.type&512))return m.call(d,13,b&65532,!0),!1;d.zb(d.qa.ec+4,d.qa.mb&=-513)}if(d.qa.load(b)===g)return!1;var p=d.qa.Ba;if(!1!==c){if(d.qa.type&512)return m.call(d,13,b&65532,!0),!1;d.zb(d.qa.ec+4,d.qa.mb|=512)}d.qa.type=d.qa.type&-513|d.qa.mb&512;256==d.qa.type||768==d.qa.type?(d.zb(l+14,v(d)),d.zb(l+16,Lc(d)),d.zb(l+18,d.G),d.zb(l+20,d.F),d.zb(l+22,d.H),d.zb(l+24,d.D),d.zb(l+26,t(d)),d.zb(l+28,d.L),d.zb(l+30,d.K),d.zb(l+32,d.I), d.zb(l+34,d.ya.oa),d.zb(l+36,d.ka.oa),d.zb(l+38,d.Z.oa),d.zb(l+40,d.Ha.oa),d.Fc.load(d.la(p+42)),Mc(d,d.la(p+16)|(c?16384:0)),d.G=d.la(p+18),d.F=d.la(p+20),d.H=d.la(p+22),d.D=d.la(p+24),d.L=d.la(p+28),d.K=d.la(p+30),d.I=d.la(p+32),d.ya.load(d.la(p+34)),d.Ha.load(d.la(p+40)),Nc(d,d.la(p+14),d.la(p+36)),b=38,l=26,a.xb>>0)+1)}; -function Bc(a,b,c,d){void 0===c&&(c=!!(a.A.Aa&1));a.od=!1;if(c)if(a.load=a.uf,a.Pi=a.Bk,a.fc=a.zi,a.Vb=a.Bi,void 0===d&&(d=!!(a.A.T&131072)),d)a.load=a.P,a.fc=a.L,a.Vb=a.O,a.xb=a.oc=3,a.aa=a.Nc=2,a.C=a.ua=65535,a.Za=65535,a.D=a.Za+1,a.Nc=a.aa,a.ec=g,a.Yd=!1;else{if(!(a.oa&-4))a.fc=a.nf,a.Vb=a.of;else if(a.type&4096){6144==(a.type&6656)&&(a.fc=a.nf);if(a.type&2048||!(a.type&512))a.Vb=a.of;1024==(a.type&3072)&&(a.fc==a.zi&&(a.fc=a.jj),a.Vb==a.Bi&&(a.Vb=a.kj),a.od=!0);b&&6>a.id&&a.oa&-4&&a.ec!==g&&(c= -a.ec+5,a.A.Gc(c,a.A.Sb(c)|1))}b&&(a.xb=a.oa&3,a.oc=(a.mb&24576)>>13,80386>a.A.ga||!(a.ext&64)?(a.aa=2,a.C=65535):(a.aa=4,a.C=-1),a.Nc=a.aa,a.ua=a.C)}else a.load=a.Qi,a.Pi=a.Ck,a.fc=a.Ai,a.Vb=a.Ci,a.xb=a.oc=0,a.ec=g,a.Yd=!1} -function Pc(a){this.ga=a.model||8088;var b=0;switch(this.ga){default:b=4772727;break;case 80286:b=6E6;break;case 80386:b=16E6}gc.call(this,a,b);this.ji=61442;this.wd=1792;this.ii=28672;this.af=4;this.Ga=255;this.B=80386==this.ga?Qc:80286==this.ga?Rc:Sc;this.sa=Tc;this.li=Uc;this.mi=Vc;this.ni=Wc;if(80186<=this.ga&&(this.sa=Tc.slice(),this.li=Uc.slice(),this.mi=Vc.slice(),this.Ga=31,this.sa[15]=Xc,this.sa[96]=Yc,this.sa[97]=Zc,this.sa[98]=$c,this.sa[99]=Xc,this.sa[100]=Xc,this.sa[101]=Xc,this.sa[102]= -Xc,this.sa[103]=Xc,this.sa[104]=ad,this.sa[105]=bd,this.sa[106]=cd,this.sa[107]=dd,this.sa[108]=ed,this.sa[109]=fd,this.sa[110]=gd,this.sa[111]=hd,this.sa[192]=id,this.sa[193]=jd,this.sa[200]=kd,this.sa[201]=ld,this.sa[241]=md,this.li[7]=nd,this.mi[7]=nd,80286<=this.ga)){this.ji=2;this.wd|=28672;this.af=0;this.sa[15]=od;this.ue=pd.slice();for(a=0;a>>20,k=a.Uc[(a.Yc+e&a.te)>>>a.na],l=k.Jd(e);if(!(l&1))return d||zd.call(a,b,!1,c),a.we;if(!(l&4)&&3==a.Ea)return d||zd.call(a,b,!0,c),a.we;var p=(b&4190208)>>>10,l=a.Uc[((l&-4096)+p&a.te)>>>a.na],q=l.Jd(p);if(!(q&1))return d||zd.call(a,b,!1,c),a.we;if(!(q&4)&&3==a.Ea)return d||zd.call(a,b,!0,c),a.we;c=a.Uc[((q&-4096)+(b&4095)&a.te)>>>a.na];if(d)return c;d=new h(b&-4096,0,0,6);Sb(d,c,k,e,l,p);b>>>=a.na;a.fa[b]=d;a.cf.push(b);return d} -function Ad(a){a.fa!=a.Uc&&(a.fa=a.Uc,a.yg=null,a.cf=null,a.we=null)}f=Pc.prototype;f.reset=function(){this.ia.Kb&&oc(this);xd(this);ic(this);this.ia.Rc=!1};function Bd(a,b){var c;switch(b){case 0:c=a.G;break;case 1:c=a.F;break;case 2:c=a.H;break;case 3:c=a.D;break;case 4:c=t(a);break;case 5:c=a.L;break;case 6:c=a.K;break;case 7:c=a.I}return c} +function Bc(a,b,c,d){void 0===c&&(c=!!(a.A.Aa&1));a.nd=!1;if(c)if(a.load=a.uf,a.Oi=a.Ck,a.fc=a.zi,a.Vb=a.Bi,void 0===d&&(d=!!(a.A.T&131072)),d)a.load=a.P,a.fc=a.L,a.Vb=a.O,a.xb=a.oc=3,a.aa=a.Nc=2,a.C=a.ua=65535,a.Za=65535,a.D=a.Za+1,a.Nc=a.aa,a.ec=g,a.Xd=!1;else{if(!(a.oa&-4))a.fc=a.nf,a.Vb=a.of;else if(a.type&4096){6144==(a.type&6656)&&(a.fc=a.nf);if(a.type&2048||!(a.type&512))a.Vb=a.of;1024==(a.type&3072)&&(a.fc==a.zi&&(a.fc=a.kj),a.Vb==a.Bi&&(a.Vb=a.lj),a.nd=!0);b&&6>a.id&&a.oa&-4&&a.ec!==g&&(c= +a.ec+5,a.A.Gc(c,a.A.Sb(c)|1))}b&&(a.xb=a.oa&3,a.oc=(a.mb&24576)>>13,80386>a.A.ga||!(a.ext&64)?(a.aa=2,a.C=65535):(a.aa=4,a.C=-1),a.Nc=a.aa,a.ua=a.C)}else a.load=a.Pi,a.Oi=a.Dk,a.fc=a.Ai,a.Vb=a.Ci,a.xb=a.oc=0,a.ec=g,a.Xd=!1} +function Pc(a){this.ga=a.model||8088;var b=0;switch(this.ga){default:b=4772727;break;case 80286:b=6E6;break;case 80386:b=16E6}gc.call(this,a,b);this.ji=61442;this.vd=1792;this.ii=28672;this.af=4;this.Ga=255;this.B=80386==this.ga?Qc:80286==this.ga?Rc:Sc;this.sa=Tc;this.li=Uc;this.mi=Vc;this.ni=Wc;if(80186<=this.ga&&(this.sa=Tc.slice(),this.li=Uc.slice(),this.mi=Vc.slice(),this.Ga=31,this.sa[15]=Xc,this.sa[96]=Yc,this.sa[97]=Zc,this.sa[98]=$c,this.sa[99]=Xc,this.sa[100]=Xc,this.sa[101]=Xc,this.sa[102]= +Xc,this.sa[103]=Xc,this.sa[104]=ad,this.sa[105]=bd,this.sa[106]=cd,this.sa[107]=dd,this.sa[108]=ed,this.sa[109]=fd,this.sa[110]=gd,this.sa[111]=hd,this.sa[192]=id,this.sa[193]=jd,this.sa[200]=kd,this.sa[201]=ld,this.sa[241]=md,this.li[7]=nd,this.mi[7]=nd,80286<=this.ga)){this.ji=2;this.vd|=28672;this.af=0;this.sa[15]=od;this.te=pd.slice();for(a=0;a>>20,k=a.Uc[(a.Yc+e&a.se)>>>a.na],l=k.Id(e);if(!(l&1))return d||zd.call(a,b,!1,c),a.ve;if(!(l&4)&&3==a.Ea)return d||zd.call(a,b,!0,c),a.ve;var p=(b&4190208)>>>10,l=a.Uc[((l&-4096)+p&a.se)>>>a.na],q=l.Id(p);if(!(q&1))return d||zd.call(a,b,!1,c),a.ve;if(!(q&4)&&3==a.Ea)return d||zd.call(a,b,!0,c),a.ve;c=a.Uc[((q&-4096)+(b&4095)&a.se)>>>a.na];if(d)return c;d=new h(b&-4096,0,0,6);Sb(d,c,k,e,l,p);b>>>=a.na;a.fa[b]=d;a.cf.push(b);return d} +function Ad(a){a.fa!=a.Uc&&(a.fa=a.Uc,a.yg=null,a.cf=null,a.ve=null)}f=Pc.prototype;f.reset=function(){this.ia.Kb&&oc(this);xd(this);ic(this);this.ia.Rc=!1};function Bd(a,b){var c;switch(b){case 0:c=a.G;break;case 1:c=a.F;break;case 2:c=a.H;break;case 3:c=a.D;break;case 4:c=t(a);break;case 5:c=a.L;break;case 6:c=a.K;break;case 7:c=a.I}return c} function Cd(a,b,c){switch(b){case 0:a.G=c;break;case 1:a.F=c;break;case 2:a.H=c;break;case 3:a.D=c;break;case 4:r(a,c);break;case 5:a.L=c;break;case 6:a.K=c;break;case 7:a.I=c}} -function xd(a){a.G=0;a.D=0;a.F=0;a.H=0;a.Qb=0;a.L=0;a.K=0;a.I=0;a.Ua=!1;a.Da=a.Xa=0;a.Dc=0;a.ef=0;a.Aa=65520;a.Ob=0;a.Vc=1023;a.T=a.Cb=0;a.Bd=a.ye=a.Ad=a.qe=0;a.Zb=-1;a.Na=a.Wa=g;a.ka=new zc(a,Ac,"CS");a.Ha=new zc(a,2,"DS");a.ya=new zc(a,2,"ES");a.Z=new zc(a,3,"SS");r(a,0);Ec(a,0);80386<=a.ga&&(a.H=772,a.Aa=16,a.Di=0,a.zd=0,a.Yc=0,a.pb=[0,0,0,0,null,null,0,0],a.gf=[null,null,null,null,null,null,0,0],a.bb=new zc(a,2,"FS"),a.lb=new zc(a,2,"GS"),Ad(a));a.Gi=new zc(a,0,"NULL");a.U=a.Ha;a.V=a.Z;a.O=a.ja= -0;a.P=a.pa=g;a.Fa=0;Nc(a,0,65535);if(80286<=a.ga){a.Xb=0;a.xd=65535;a.Fc=new zc(a,5,"LDT",!0);a.qa=new zc(a,4,"TSS",!0);a.Oa=new zc(a,6,"VER",!0);Nc(a,65520,61440);var b,c=v(a);b=a.ka;var d=-65536;80386>b.A.ga&&(d&=16777215);b=b.Ba=d;a.ha=b+c|0;a.ff=b+a.ka.Za|0}Mc(a,0);Gc(a)}function Dd(a,b){b.oa&65528&&b.ocb.A.ga&&(d&=16777215);b=b.Ba=d;a.ha=b+c|0;a.ff=b+a.ka.Za|0}Mc(a,0);Gc(a)}function Dd(a,b){b.oa&65528&&b.oc>16,e=0;4>e;e++){if(c&3){var k=!!(d&1),l=a.pb[e],l=l&~(d>>2&3);if(b){var l=a.fa[l>>>a.na],p=a;k?0===l.ga++&&(p&&(l.A=p),ac(l,$b,!1)):0===l.V++&&(p&&(l.A=p),Zb(l,$b,!1))}else l=a.fa[l>>>a.na],k?0===--l.ga&&(k=l,k.dc=k.O?k.ra:k.Ze,k.$e=k.O?k.ha:k.gi,k.wg=k.O?k.ma:k.na):0===--l.V&&(k=l,k.jc=k.ke,k.og=k.pg,k.Jd=k.ci)}c>>=2;d>>=4}} -function Xb(a,b,c,d){if(!(a.O&8192)&&a.pb[7]&255){c--;var e=a.pb[7],k=e>>16;d=d?1:0==d?3:0;for(var l=0;4>l;l++){if(e&3&&(k&3)==d){var p=k>>2;if(b+c>=a.pb[l]&&b<=a.pb[l]+p){a.pb[6]|=1<>=2;k>>=4}}}function Gc(a,b,c){void 0===b&&(b=!!(a.Aa&1));void 0===c&&(c=!!(a.T&131072));a.ni=b&&!c?Ud:Wc;Bc(a.ka,!1,b,c);Bc(a.Ha,!1,b,c);Bc(a.Z,!1,b,c);Bc(a.ya,!1,b,c);80386<=a.ga&&(Bc(a.bb,!1,b,c),Bc(a.lb,!1,b,c),Ic(a))} -f.save=function(){var a=new Vd(this);E(a,0,[this.G,this.D,this.F,this.H,t(this),this.L,this.K,this.I]);var b=v(this),c=this.ka.save(),d=this.Ha.save(),e=this.Z.save(),k=this.ya.save(),l;null!=this.Xb?(l=[this.Aa,this.Xb,this.xd,this.Ob,this.Vc,this.Fc.save(),this.qa.save(),this.Cb],80386<=this.ga&&(l.push(this.Di),l.push(this.zd),l.push(this.Yc),l.push(this.pb),l.push(this.gf))):l=null;b=[b,c,d,e,k,l,Lc(this)];80386<=this.ga&&(b.push(this.bb.save()),b.push(this.lb.save()));E(a,1,b);E(a,2,[this.U.tg, -this.V.tg,this.O,this.ja,this.Fa,this.P,this.pa]);E(a,3,[0,this.Wc,this.W.rd]);b=this.ma;c=0;d=[];(e=!b.I&&b.ga==b.D)||ub(b,!0);for(k=0;k>16,e=0;4>e;e++){if(c&3){var k=!!(d&1),l=a.pb[e],l=l&~(d>>2&3);if(b){var l=a.fa[l>>>a.na],p=a;k?0===l.ga++&&(p&&(l.A=p),ac(l,$b,!1)):0===l.V++&&(p&&(l.A=p),Zb(l,$b,!1))}else l=a.fa[l>>>a.na],k?0===--l.ga&&(k=l,k.dc=k.O?k.ra:k.Ze,k.$e=k.O?k.ha:k.gi,k.wg=k.O?k.ma:k.na):0===--l.V&&(k=l,k.jc=k.je,k.og=k.pg,k.Id=k.ci)}c>>=2;d>>=4}} +function Wb(a,b,c,d){if(!(a.O&8192)&&a.pb[7]&255){c--;var e=a.pb[7],k=e>>16;d=d?1:0==d?3:0;for(var l=0;4>l;l++){if(e&3&&(k&3)==d){var p=k>>2;if(b+c>=a.pb[l]&&b<=a.pb[l]+p){a.pb[6]|=1<>=2;k>>=4}}}function Gc(a,b,c){void 0===b&&(b=!!(a.Aa&1));void 0===c&&(c=!!(a.T&131072));a.ni=b&&!c?Ud:Wc;Bc(a.ka,!1,b,c);Bc(a.Ha,!1,b,c);Bc(a.Z,!1,b,c);Bc(a.ya,!1,b,c);80386<=a.ga&&(Bc(a.bb,!1,b,c),Bc(a.lb,!1,b,c),Ic(a))} +f.save=function(){var a=new Vd(this);E(a,0,[this.G,this.D,this.F,this.H,t(this),this.L,this.K,this.I]);var b=v(this),c=this.ka.save(),d=this.Ha.save(),e=this.Z.save(),k=this.ya.save(),l;null!=this.Xb?(l=[this.Aa,this.Xb,this.wd,this.Ob,this.Vc,this.Fc.save(),this.qa.save(),this.Cb],80386<=this.ga&&(l.push(this.Di),l.push(this.yd),l.push(this.Yc),l.push(this.pb),l.push(this.gf))):l=null;b=[b,c,d,e,k,l,Lc(this)];80386<=this.ga&&(b.push(this.bb.save()),b.push(this.lb.save()));E(a,1,b);E(a,2,[this.U.tg, +this.V.tg,this.O,this.ja,this.Fa,this.P,this.pa]);E(a,3,[0,this.Wc,this.W.qd]);b=this.ma;c=0;d=[];(e=!b.I&&b.ga==b.D)||ub(b,!0);for(k=0;kc&&0<=(a.ff^a.ha)&&(8088>=a.ga||a.ka.Za==a.ka.ua?F(a,a.ha-a.ka.Ba):-1>c&&m.call(a,13,0))}function t(a){return a.Qb&~a.Z.ua|a.va-a.Z.Ba}function r(a,b){a.Qb=b;a.va=a.Z.Ba+(b&a.Z.ua)|0}function Zd(a,b,c,d,e,k){if(63!=(e&63)&&e!=a.resultType){var l=(e^a.resultType)&a.resultType;l&&(l&1&&$d(a),l&2&&ae(a),l&4&&be(a),l&8&&ce(a),l&16&&de(a),l&32&&ee(a))}k?(a.Bd=d,a.Ad=b):(a.Bd=b,a.Ad=d);a.ye=c;a.qe=d;a.resultType=e} -function fe(a,b,c,d,e){a.resultType=c|26;a.qe=b;d?ge(a):he(a);e?ie(a):je(a);return b}function ke(a,b,c,d){c&d?ge(a):he(a);(b^c)&d?ie(a):je(a)}function le(a){return $d(a)?1:0}function $d(a){a.resultType&1&&(a.T&=-2,(a.Bd^(a.Bd^a.ye)&(a.ye^a.Ad))&a.resultType&-2147450752&&(a.T|=1),a.resultType&=-2);return a.T&1}function ae(a){a.resultType&2&&(a.T&=-5,38505>>((a.qe^a.qe>>4)&15)&1&&(a.T|=4),a.resultType&=-3);return a.T&4} -function be(a){a.resultType&4&&(a.T&=-17,(a.Ad^a.Bd^a.ye)&16&&(a.T|=16),a.resultType&=-5);return a.T&16}function ce(a){a.resultType&8&&(a.T&=-65,a.qe&((a.resultType&-2147450752)-1|a.resultType&-2147450752)||(a.T|=64),a.resultType&=-9);return a.T&64}function de(a){a.resultType&16&&(a.T&=-129,a.qe&a.resultType&-2147450752&&(a.T|=128),a.resultType&=-17);return a.T&128} -function ee(a){a.resultType&32&&(a.T&=-2049,(a.Bd^a.Ad)&(a.ye^a.Ad)&a.resultType&-2147450752&&(a.T|=2048),a.resultType&=-33);return a.T&2048}function he(a){a.resultType&=-2;a.T&=-2}function me(a){a.resultType&=-5;a.T&=-17}function ne(a){a.resultType&=-9;a.T&=-65}function je(a){a.resultType&=-33;a.T&=-2049}function ge(a){a.resultType&=-2;a.T|=1}function oe(a){a.resultType&=-5;a.T|=16}function pe(a){a.resultType&=-9;a.T|=64}function ie(a){a.resultType&=-33;a.T|=2048} -function Lc(a){return a.T&-2262|$d(a)|ae(a)|be(a)|ce(a)|de(a)|ee(a)}function qe(a,b){b=b|a.Aa&1|65520;a.Aa=a.Aa&-65536|b&65535;a.Aa&1&&Gc(a,!0)}function Mc(a,b,c){a.Aa&1||(b&=~a.ii);void 0===c&&(c=a.Ea);c?b=b&-12289|a.T&12288:a.Cb=(b&12288)>>12;c>a.Cb&&(b=b&-513|a.T&512);a.resultType=128;a.T=a.T&~(a.wd|2261)|b&(a.wd|2261)|a.ji;a.T&256&&(a.Fa|=2,a.O|=4)} -function re(a,b,c,d){var e=0;if(a.Aa&1&&(a.Ea>a.Cb||a.T&131072)&&a.qa.si)for(var k=a.qa.si+(b>>>3),e=(1<>>=8,k++;return e?(a.Sa(256)&&a.Ma("checkIOPM(0x"+da(b,4)+","+c+","+(d?"input":"output")+"): trapped",!0,!0),m.call(a,13,0,!1),!1):!0} +function Ec(a,b,c){var d=t(a);a.Z.load(b)!==g&&(r(a,d),a.Z.nd?(a.Ag=a.Z.Ba+a.Z.ua|0,a.we=a.Z.Ba+a.Z.Za|0):(a.Ag=a.Z.Ba+a.Z.Za|0,a.we=a.Z.Ba),c||(a.O|=4))}function Kc(a,b){a.ya.load(b)!==g&&(a.O|=a.af)}function v(a){return a.ha-a.ka.Ba|0}function F(a,b){a.ha=a.ka.Ba+(b&a.C)|0}function Nc(a,b,c,d){var e=a.ka;e.Ue=b;e.F=d;b=e.load(c);return b!==g?(Ic(a),a.ha=b+(a.ka.Ue&a.C)|0,a.ff=b+a.ka.Za|0,a.Ea=a.ka.xb,a.ka.Xd):null} +function Yd(a,b){a.ha=a.ha+b|0;var c=a.ff-a.ha|0;0>c&&0<=(a.ff^a.ha)&&(8088>=a.ga||a.ka.Za==a.ka.ua?F(a,a.ha-a.ka.Ba):-1>c&&m.call(a,13,0))}function t(a){return a.Qb&~a.Z.ua|a.va-a.Z.Ba}function r(a,b){a.Qb=b;a.va=a.Z.Ba+(b&a.Z.ua)|0}function Zd(a,b,c,d,e,k){if(63!=(e&63)&&e!=a.resultType){var l=(e^a.resultType)&a.resultType;l&&(l&1&&$d(a),l&2&&ae(a),l&4&&be(a),l&8&&ce(a),l&16&&de(a),l&32&&ee(a))}k?(a.Ad=d,a.zd=b):(a.Ad=b,a.zd=d);a.xe=c;a.pe=d;a.resultType=e} +function fe(a,b,c,d,e){a.resultType=c|26;a.pe=b;d?ge(a):he(a);e?ie(a):je(a);return b}function ke(a,b,c,d){c&d?ge(a):he(a);(b^c)&d?ie(a):je(a)}function le(a){return $d(a)?1:0}function $d(a){a.resultType&1&&(a.T&=-2,(a.Ad^(a.Ad^a.xe)&(a.xe^a.zd))&a.resultType&-2147450752&&(a.T|=1),a.resultType&=-2);return a.T&1}function ae(a){a.resultType&2&&(a.T&=-5,38505>>((a.pe^a.pe>>4)&15)&1&&(a.T|=4),a.resultType&=-3);return a.T&4} +function be(a){a.resultType&4&&(a.T&=-17,(a.zd^a.Ad^a.xe)&16&&(a.T|=16),a.resultType&=-5);return a.T&16}function ce(a){a.resultType&8&&(a.T&=-65,a.pe&((a.resultType&-2147450752)-1|a.resultType&-2147450752)||(a.T|=64),a.resultType&=-9);return a.T&64}function de(a){a.resultType&16&&(a.T&=-129,a.pe&a.resultType&-2147450752&&(a.T|=128),a.resultType&=-17);return a.T&128} +function ee(a){a.resultType&32&&(a.T&=-2049,(a.Ad^a.zd)&(a.xe^a.zd)&a.resultType&-2147450752&&(a.T|=2048),a.resultType&=-33);return a.T&2048}function he(a){a.resultType&=-2;a.T&=-2}function me(a){a.resultType&=-5;a.T&=-17}function ne(a){a.resultType&=-9;a.T&=-65}function je(a){a.resultType&=-33;a.T&=-2049}function ge(a){a.resultType&=-2;a.T|=1}function oe(a){a.resultType&=-5;a.T|=16}function pe(a){a.resultType&=-9;a.T|=64}function ie(a){a.resultType&=-33;a.T|=2048} +function Lc(a){return a.T&-2262|$d(a)|ae(a)|be(a)|ce(a)|de(a)|ee(a)}function qe(a,b){b=b|a.Aa&1|65520;a.Aa=a.Aa&-65536|b&65535;a.Aa&1&&Gc(a,!0)}function Mc(a,b,c){a.Aa&1||(b&=~a.ii);void 0===c&&(c=a.Ea);c?b=b&-12289|a.T&12288:a.Cb=(b&12288)>>12;c>a.Cb&&(b=b&-513|a.T&512);a.resultType=128;a.T=a.T&~(a.vd|2261)|b&(a.vd|2261)|a.ji;a.T&256&&(a.Fa|=2,a.O|=4)} +function re(a,b,c,d){var e=0;if(a.Aa&1&&(a.Ea>a.Cb||a.T&131072)&&a.qa.si)for(var k=a.qa.si+(b>>>3),e=(1<>>=8,k++;return e?(a.Sa(256)&&a.Ma("checkIOPM(0x"+da(b,4)+","+c+","+(d?"input":"output")+"): trapped",!0,!0),m.call(a,13,0,!1),!1):!0} f.Hb=function(a,b,c){var d=!1;switch(b){case "EAX":case "EBX":case "ECX":case "EDX":case "ESP":case "EBP":case "ESI":case "EDI":case "EIP":case "AX":case "BX":case "CX":case "DX":case "SP":case "BP":case "SI":case "DI":case "IP":case "PC":case "CS":case "DS":case "SS":case "ES":case "FS":case "GS":case "CR0":case "CR2":case "CR3":case "PS":case "C":case "P":case "A":case "Z":case "S":case "T":case "I":case "D":case "V":this.ra[b]=c;this.oi++;d=!0;break;default:d=this.parent.Hb.call(this,a,b,c)}return d}; -function se(a,b){var c=a.fa[(b&a.hc)>>>a.na];c&&5==c.type&&(c=Yb(a,b,!1,!0));if(c){var d=b&a.Jb;switch(void 0){default:return c.ke(d,b);case 2:return c.pg(d,b);case 4:return c.ci(d,b)}}return null}f.Sb=function(a){return this.fa[(a&this.hc)>>>this.na].jc(a&this.Jb,a)};f.la=function(a){var b=a&this.Jb,c=(a&this.hc)>>>this.na;this.A-=this.B.Se;if(b>>this.na;if(b>>this.na].dc(a&this.Jb,b&255,a)};f.zb=function(a,b){var c=a&this.Jb,d=(a&this.hc)>>>this.na;this.A-=this.B.Se;c>8&255,a+1))}; -f.vb=function(a,b){var c=a&this.Jb,d=(a&this.hc)>>>this.na;this.A-=this.B.Se;if(c>>=8}};function te(a,b,c){a.Ec=b;a.P=b.fc(a.tc=c,1);return a.O&1?0:a.Sb(a.P)}function H(a,b){return te(a,a.U,b&a.ua)}function I(a,b){return te(a,a.V,b&a.ua)}function ue(a,b,c){a.Ec=b;a.P=b.fc(a.tc=c,a.aa);return a.O&1?0:a.Lc(a.P)}function J(a,b){return ue(a,a.U,b&a.ua)} +function se(a,b){var c=a.fa[(b&a.hc)>>>a.na];c&&5==c.type&&(c=Yb(a,b,!1,!0));if(c){var d=b&a.Jb;switch(void 0){default:return c.je(d,b);case 2:return c.pg(d,b);case 4:return c.ci(d,b)}}return null}f.Sb=function(a){return this.fa[(a&this.hc)>>>this.na].jc(a&this.Jb,a)};f.la=function(a){var b=a&this.Jb,c=(a&this.hc)>>>this.na;this.A-=this.B.Se;if(b>>this.na;if(b>>this.na].dc(a&this.Jb,b&255,a)};f.zb=function(a,b){var c=a&this.Jb,d=(a&this.hc)>>>this.na;this.A-=this.B.Se;c>8&255,a+1))}; +f.vb=function(a,b){var c=a&this.Jb,d=(a&this.hc)>>>this.na;this.A-=this.B.Se;if(c>>=8}};function te(a,b,c){a.Ec=b;a.P=b.fc(a.tc=c,1);return a.O&1?0:a.Sb(a.P)}function H(a,b){return te(a,a.U,b&a.ua)}function I(a,b){return te(a,a.V,b&a.ua)}function ue(a,b,c){a.Ec=b;a.P=b.fc(a.tc=c,a.aa);return a.O&1?0:a.Lc(a.P)}function J(a,b){return ue(a,a.U,b&a.ua)} function K(a,b){return ue(a,a.V,b&a.ua)}function ve(a,b,c){a.Ec=b;a.pa=a.P=b.fc(a.tc=c,1);return a.O&1?0:a.Sb(a.P)}function L(a,b){return ve(a,a.U,b&a.ua)}function M(a,b){return ve(a,a.V,b&a.ua)}function we(a,b,c){a.Ec=b;a.pa=a.P=b.fc(a.tc=c,a.aa);return a.O&1?0:a.Lc(a.P)}function N(a,b){return we(a,a.U,b&a.ua)}function O(a,b){return we(a,a.V,b&a.ua)}function P(a,b){a.O&2||a.Gc(a.Ec.Vb(a.tc,1),b)}function Q(a,b){a.O&2||a.hd(a.Ec.Vb(a.tc,a.aa),b)}function Hc(a,b,c){return a.Lc(b.fc(c,a.aa))} f.X=function(){var a=this.Sb(this.ha);Yd(this,1);return a};function xe(a){var b=a.la(a.ha);Yd(a,2);return b}function S(a){var b=a.wi(a.ha);Yd(a,a.Nc);return b}f.Ca=function(){var a=this.Lc(this.ha);Yd(this,this.aa);return a};f.M=function(){var a=this.Sb(this.ha)<<24>>24;Yd(this,1);return a};function T(a,b){var c=a.Sb(a.ha);Yd(a,1);return ye[c].call(a,b)} -function n(a){var b=a.Lc(a.va);a.va=a.va+a.aa|0;var c=a.Ag-a.va|0;0>c&&0<=(a.Ag^a.va)&&(8088>=a.ga||!a.Z.od&&a.Z.Za==a.Z.ua||a.Z.od&&!a.Z.Za?r(a,a.va-a.Z.Ba&a.Z.ua):-1>c&&m.call(a,12,0));return b}function ze(a,b,c){a.va=a.va-c|0;0>(a.va-a.xe|0)&&0<=(a.xe^a.va)&&(8088>=a.ga||!a.Z.od&&a.Z.Za==a.Z.ua||a.Z.od&&!a.Z.Za?r(a,a.va-a.Z.Ba&a.Z.ua):m.call(a,12,0));2==c?a.zb(a.va,b):a.vb(a.va,b)} -function u(a,b){a.va=a.va-a.aa|0;0>(a.va-a.xe|0)&&0<=(a.xe^a.va)&&(8088>=a.ga||!a.Z.od&&a.Z.Za==a.Z.ua||a.Z.od&&!a.Z.Za?r(a,a.va-a.Z.Ba&a.Z.ua):m.call(a,12,0));a.hd(a.va,b)}function Ae(a,b,c){var d=4;1==b.length&&(d=1,c=c?1:0);if(80386>a.ga)2this.ga?0:1;for(var b=0;2>b;b++){switch(a){case 0:if(this.Fa&1&&this.T&512){var c=Be(this.Y);if(-1<=c&&(this.Fa&=-2,0<=c)){this.Fa&=-5;Ce.call(this,this.Zb=c,null,11);break a}}break;case 1:if(this.Fa& +function n(a){var b=a.Lc(a.va);a.va=a.va+a.aa|0;var c=a.Ag-a.va|0;0>c&&0<=(a.Ag^a.va)&&(8088>=a.ga||!a.Z.nd&&a.Z.Za==a.Z.ua||a.Z.nd&&!a.Z.Za?r(a,a.va-a.Z.Ba&a.Z.ua):-1>c&&m.call(a,12,0));return b}function ze(a,b,c){a.va=a.va-c|0;0>(a.va-a.we|0)&&0<=(a.we^a.va)&&(8088>=a.ga||!a.Z.nd&&a.Z.Za==a.Z.ua||a.Z.nd&&!a.Z.Za?r(a,a.va-a.Z.Ba&a.Z.ua):m.call(a,12,0));2==c?a.zb(a.va,b):a.vb(a.va,b)} +function u(a,b){a.va=a.va-a.aa|0;0>(a.va-a.we|0)&&0<=(a.we^a.va)&&(8088>=a.ga||!a.Z.nd&&a.Z.Za==a.Z.ua||a.Z.nd&&!a.Z.Za?r(a,a.va-a.Z.Ba&a.Z.ua):m.call(a,12,0));a.hd(a.va,b)}function Ae(a,b,c){var d=4;1==b.length&&(d=1,c=c?1:0);if(80386>a.ga)2this.ga?0:1;for(var b=0;2>b;b++){switch(a){case 0:if(this.Fa&1&&this.T&512){var c=Be(this.Y);if(-1<=c&&(this.Fa&=-2,0<=c)){this.Fa&=-5;Ce.call(this,this.Zb=c,null,11);break a}}break;case 1:if(this.Fa& 2){this.Fa&=-3;80386<=this.ga&&(this.pb[6]|=16384);Ce.call(this,this.Zb=1,null,11);break a}}a=1-a}}if(a=this.Fa&8){a=this.Y;b=!1;for(c=0;c>>=1;c++;d--}}else pe(this);this.A-=11+3*c;return a}function Oe(a,b){a&1<<(b&(2==this.aa?15:31))?ge(this):he(this);this.A-=this.P===g?3:6;this.O|=2;return a}function Pe(a,b){var c=1<<(b&(2==this.aa?15:31));a&c?ge(this):he(this);this.A-=this.P===g?6:8;return a^c}function Qe(a,b){var c=1<<(b&(2==this.aa?15:31));a&c?ge(this):he(this);this.A-=this.P===g?6:8;return a&~c} function Re(a,b){var c=1<<(b&(2==this.aa?15:31));a&c?ge(this):he(this);this.A-=this.P===g?6:8;return a|c}function Se(a,b){if(this.P===g)return Oe.call(this,a,b);var c=this.aa<<3;if(b>=c||b<-c)a=ue(this,this.Ec,this.tc+(b>>(2==this.aa?4:5))*this.aa);b=1<<(b&(2==this.aa?15:31));a&b?ge(this):he(this);this.A-=6;this.O|=2;return a} function Te(a,b){if(this.P===g)return Pe.call(this,a,b);var c=this.aa<<3;if(b>=c||b<-c)a=ue(this,this.Ec,this.tc+(b>>(2==this.aa?4:5))*this.aa);b=1<<(b&(2==this.aa?15:31));a&b?ge(this):he(this);this.A-=8;return a^b}function Ue(a,b){if(this.P===g)return Qe.call(this,a,b);var c=this.aa<<3;if(b>=c||b<-c)a=ue(this,this.Ec,this.tc+(b>>(2==this.aa?4:5))*this.aa);b=1<<(b&(2==this.aa?15:31));a&b?ge(this):he(this);this.A-=8;return a&~b} -function Ve(a,b){if(this.P===g)return Re.call(this,a,b);var c=this.aa<<3;if(b>=c||b<-c)a=ue(this,this.Ec,this.tc+(b>>(2==this.aa?4:5))*this.aa);b=1<<(b&(2==this.aa?15:31));a&b?ge(this):he(this);this.A-=8;return a|b}function We(a,b){var c=this.ka.oa,d=v(this),e=this.ka.aa;null!=Nc(this,a,b,!0)&&(ze(this,c,e),ze(this,d,e))}function Xe(a,b){Zd(this,a,b,a-b|0,191,!0);this.A-=this.pa===g?this.P===g?this.B.Lb:this.B.Ff:this.B.ub;this.O|=2;return a} +function Ve(a,b){if(this.P===g)return Re.call(this,a,b);var c=this.aa<<3;if(b>=c||b<-c)a=ue(this,this.Ec,this.tc+(b>>(2==this.aa?4:5))*this.aa);b=1<<(b&(2==this.aa?15:31));a&b?ge(this):he(this);this.A-=8;return a|b}function We(a,b){var c=this.ka.oa,d=v(this),e=this.aa;null!=Nc(this,a,b,!0)&&(ze(this,c,e),ze(this,d,e))}function Xe(a,b){Zd(this,a,b,a-b|0,191,!0);this.A-=this.pa===g?this.P===g?this.B.Lb:this.B.Ff:this.B.ub;this.O|=2;return a} function Ye(a,b){Zd(this,a,b,a-b|0,this.ab|63,!0);this.A-=this.pa===g?this.P===g?this.B.Lb:this.B.Ff:this.B.ub;this.O|=2;return a}function Ze(a){var b=a-1|0;Zd(this,a,1,b,this.ab|62,!0);this.A-=2;return a&~this.C|b&this.C}function $e(a,b){var c=a[1]-b[1];c||(c=a[0]-b[0]);return c} function af(a,b,c){this.Ua=!1;if((c>>>=0)&&!(c<=b>>>0)){var d=0,e=1;c=[c>>>0,0];for(a=[a>>>0,b>>>0];0<$e(a,c);){var k=b=c;b[0]+=k[0];b[1]+=k[1];4294967295>>=0,b[1]++);e+=e}do 0<=$e(a,c)&&(b=a,k=c,b[0]-=k[0],b[1]-=k[1],0>b[0]&&(b[0]>>>=0,b[1]--),d+=e),b=c,b[0]>>>=1,b[1]&1&&(b[0]=(b[0]|2147483648)>>>0),b[1]>>>=1,e>>>=1;while(e);this.Da=d;this.Xa=a[0];this.Ua=!0}}function df(a){return a} function ef(a,b){a=this.M();var c=(b<<16>>16)*a|0;32767c?(ge(this),ie(this)):(he(this),je(this));this.A-=this.P===g?21:24;return c&65535}function ff(a,b){var c,d;a=this.Ca();2==this.aa?(d=(b<<16>>16)*(a<<16>>16)|0,c=32767d):(d=b*a,c=2147483647d);c?(ge(this),ie(this)):(he(this),je(this));d&=this.C;this.A-=this.P===g?21:24;return d} function gf(a,b){var c=(a<<16>>16)*(b<<16>>16)|0;32767c?(ge(this),ie(this)):(he(this),je(this));this.A-=this.P===g?9:12;return c&65535}function hf(a,b){var c=a*b;2147483647c?(ge(this),ie(this)):(he(this),je(this));this.A-=this.P===g?9:12;return c|0}function jf(a){var b=a+1|0;Zd(this,a,1,b,this.ab|62);this.A-=2;return a&~this.C|b&this.C} -function Ce(a,b,c){this.A-=this.B.wh+c;c=Lc(this);var d=this.ka.oa,e=v(this);a=this.ka.Pi(a);if(a!==g){var k=this.ka.vg;ze(this,c,k);ze(this,d,k);ze(this,e,k);null!=b&&ze(this,b,k);this.Zb=-1;Ic(this);this.ha=a;this.ff=this.ka.Ba+this.ka.Za|0;this.Ea=this.ka.xb}}function kf(a,b){this.A-=14+(this.P===g?0:2);ne(this);this.Oa.load(b)!==g&&this.Oa.oc>=this.Ea&&this.Oa.oc>=(b&3)&&(pe(this),a=this.Oa.mb&-256,2=this.Ea)&&this.Oa.oc>=(b&3))return pe(this),this.Oa.Za;ne(this);return a}function rf(a,b){if(this.P===g)return qd.call(this),a;Ec(this,this.la(this.P+this.aa));this.A-=this.B.Id;return b} +function Ce(a,b,c){this.A-=this.B.wh+c;c=Lc(this);var d=this.ka.oa,e=v(this);a=this.ka.Oi(a);if(a!==g){var k=this.ka.vg;ze(this,c,k);ze(this,d,k);ze(this,e,k);null!=b&&ze(this,b,k);this.Zb=-1;Ic(this);this.ha=a;this.ff=this.ka.Ba+this.ka.Za|0;this.Ea=this.ka.xb}}function kf(a,b){this.A-=14+(this.P===g?0:2);ne(this);this.Oa.load(b)!==g&&this.Oa.oc>=this.Ea&&this.Oa.oc>=(b&3)&&(pe(this),a=this.Oa.mb&-256,2=this.Ea)&&this.Oa.oc>=(b&3))return pe(this),this.Oa.Za;ne(this);return a}function rf(a,b){if(this.P===g)return qd.call(this),a;Ec(this,this.la(this.P+this.aa));this.A-=this.B.Hd;return b} function sf(a,b){this.A-=this.pa===g?this.P===g?this.B.Lh:this.B.Kh:this.B.Ih;return b}function tf(a,b){return b}function uf(){this.pa!==g&&Nd(this);return sf.call(this,0,this.Dc)}function vf(a,b){var c=b&65535,d=b>>>16,e=a&65535,k=a>>>16,l=c*e,e=(l>>>16)+d*e,p=e>>>16,e=(e&65535)+c*k;this.Ua=!0;this.Da=e<<16|l&65535;this.Xa=p+((e>>>16)+d*k)|0}function wf(a,b){this.A-=this.pa===g?this.P===g?this.B.Lb:this.B.ub:this.B.$b;return fe(this,a|b,128)} function xf(a,b){this.A-=this.pa===g?this.P===g?this.B.Lb:this.B.ub:this.B.$b;return fe(this,a|b,this.ab)}function yf(a){this.Wa=this.va;var b=n(this),c=n(this);a&&r(this,t(this)+a);Nc(this,b,c,!1)&&(a&&r(this,t(this)+a),Dd(this,this.Ha),Dd(this,this.ya),80386<=this.ga&&(Dd(this,this.bb),Dd(this,this.lb)));2==a&&this.zg&&Sd(this,this.ha);this.Wa=g}function zf(a,b){var c=a-b-le(this)|0;Zd(this,a,b,c,191,!0);this.A-=this.pa===g?this.P===g?this.B.Lb:this.B.ub:this.B.$b;return c&255} function Af(a,b){var c=a-b-le(this)|0;Zd(this,a,b,c,this.ab|63,!0);this.A-=this.pa===g?this.P===g?this.B.Lb:this.B.ub:this.B.$b;return c&this.C}function Bf(a){this.O|=1;this.Ib[this.X()].call(this,a);this.A-=this.P===g?4:5}function Cf(){return ee(this)?1:0}function Df(){return $d(this)?1:0}function Ef(){return $d(this)?0:1}function Ff(){return ce(this)?1:0}function Gf(){return ce(this)?0:1}function Hf(){return $d(this)||ce(this)?1:0}function If(){return $d(this)||ce(this)?0:1} function Jf(){return de(this)?1:0}function Kf(){return de(this)?0:1}function Lf(){return ae(this)?1:0}function Mf(){return ae(this)?0:1}function Nf(){return!de(this)!=!ee(this)?1:0}function Of(){return!de(this)!=!ee(this)?0:1}function Pf(){return ce(this)||!de(this)!=!ee(this)?1:0}function Qf(){return ce(this)||!de(this)!=!ee(this)?0:1}function Rf(a,b,c){if(c){16>>16-c)&65535;fe(this,a,32768,d&32768)}return a} function Sf(a,b,c){if(c){var d=a<>>32-c;fe(this,a,-2147483648,d&-2147483648)}return a}function Tf(a,b){return Rf.call(this,a,b,this.X())}function Uf(a,b){return Sf.call(this,a,b,this.X())}function Vf(a,b){return Rf.call(this,a,b,this.F&31)}function Wf(a,b){return Sf.call(this,a,b,this.F&31)}function Xf(a,b,c){if(c){16>>c-1;a=(d>>>1|b<<16-c)&65535;fe(this,a,32768,d&1)}return a} function Yf(a,b,c){if(c){var d=a>>>c-1;a=d>>>1|b<<32-c;fe(this,a,-2147483648,d&1)}return a}function Zf(a,b){return Xf.call(this,a,b,this.X())}function $f(a,b){return Yf.call(this,a,b,this.X())}function ag(a,b){return Xf.call(this,a,b,this.F&31)}function bg(a,b){return Yf.call(this,a,b,this.F&31)}function cg(a,b){var c=a-b|0;Zd(this,a,b,c,191,!0);this.A-=this.pa===g?this.P===g?this.B.Lb:this.B.ub:this.B.$b;return c&255} -function dg(a,b){var c=a-b|0;Zd(this,a,b,c,this.ab|63,!0);this.A-=this.pa===g?this.P===g?this.B.Lb:this.B.ub:this.B.$b;return c&this.C}function eg(a,b){fe(this,a&b,128);this.A-=this.pa===g?this.P===g?this.B.gg:this.B.ie:this.B.ie;this.O|=2;return a}function fg(a,b){fe(this,a&b,this.ab);this.A-=this.pa===g?this.P===g?this.B.gg:this.B.ie:this.B.ie;this.O|=2;return a} +function dg(a,b){var c=a-b|0;Zd(this,a,b,c,this.ab|63,!0);this.A-=this.pa===g?this.P===g?this.B.Lb:this.B.ub:this.B.$b;return c&this.C}function eg(a,b){fe(this,a&b,128);this.A-=this.pa===g?this.P===g?this.B.gg:this.B.he:this.B.he;this.O|=2;return a}function fg(a,b){fe(this,a&b,this.ab);this.A-=this.pa===g?this.P===g?this.B.gg:this.B.he:this.B.he;this.O|=2;return a} function gg(a,b){if(this.P===g){switch(this.ef&7){case 0:this.G=this.G&-256|a;break;case 1:this.F=this.F&-256|a;break;case 2:this.H=this.H&-256|a;break;case 3:this.D=this.D&-256|a;break;case 4:this.G=this.G&-65281|a<<8;break;case 5:this.F=this.F&-65281|a<<8;break;case 6:this.H=this.H&-65281|a<<8;break;case 7:this.D=this.D&-65281|a<<8}this.A-=this.B.ig}else this.pa=this.P,P(this,a),this.A-=this.B.hg;return b} function hg(a,b){if(this.P===g){switch(this.ef&7){case 0:this.G=this.G&~this.C|a;break;case 1:this.F=this.F&~this.C|a;break;case 2:this.H=this.H&~this.C|a;break;case 3:this.D=this.D&~this.C|a;break;case 4:r(this,t(this)&~this.C|a);break;case 5:this.L=this.D&~this.C|a;break;case 6:this.K=this.K&~this.C|a;break;case 7:this.I=this.I&~this.C|a}this.A-=this.B.ig}else this.pa=this.P,Q(this,a),this.A-=this.B.hg;return b} function ig(a,b){var c=a^b;fe(this,c,128);this.A-=this.pa===g?this.P===g?this.B.Lb:this.B.ub:this.B.$b;return c}function jg(a,b){this.A-=this.pa===g?this.P===g?this.B.Lb:this.B.ub:this.B.$b;return fe(this,a^b,this.ab)}function kg(a){m.call(this,13,0);return a}function nd(a){m.call(this,6);return a}function lg(a){qd.call(this);return a}function mg(){m.call(this,0,null,!1,2)}function ng(){this.A-=this.P===g?2:this.B.Yh;return 1} function og(){var a=this.F&255;this.A-=(this.P===g?this.B.$f:this.B.Zf)+(a<this.Zb?(F(this,this.Na-this.ka.Ba),this.Wa!=g&&(r(this,this.Qb&~this.Z.ua|this.Wa-this.Z.Ba),this.Wa=g),e=!0):8!=this.Zb?(b=0,a=8,e=!0):(a=-1,b=0,xd(this),c=!1)):F(this,this.Na-this.ka.Ba);var k=a,l=b,p=32,q=se(this,this.ha);204!=q||this.Vc||(c=!1);this.T&131072&&(6==k&&99==q||13==k&&205==q)&&(c=!1);14==k&&207==q&&(c=!0);!1===c&&(p|=1);983040<=this.ha&&1048575>=this.ha&&(c=!1);this.Sa(p|-2147483648)&&(c=!0);if(this.Sa(p)||c){var w=this.ia.Kb, -k="Fault "+ea(k)+(null!=l?" (0x"+da(l,4)+")":"")+" on opcode "+ea(q);c&&w&&(k+=" (blocked by PCjs Debugger)");this.Ma(k,c||p,!0)?c&&(c=w,oc(this.Qa)):(this.Ja(k),oc(this))}c&&(e=!1);if(e)throw this.Zb=a,Ce.call(this,a,b,d||0),this.Na=this.ha,this.O=1==a?this.O|8192:this.O|4096,a;}function zd(a,b,c){this.zd=a;a=0;b&&(a|=1);c&&(a|=2);3==this.Ea&&(a|=4);m.call(this,14,a)}function od(){this.ue[this.X()].call(this)}function rd(){u(this,t(this)&this.C);this.A-=this.B.ic} +function m(a,b,c,d){var e=null;this.ia.Fe?80186<=this.ga&&(0>this.Zb?(Ic(this),F(this,this.Na-this.ka.Ba),this.Wa!=g&&(r(this,this.Qb&~this.Z.ua|this.Wa-this.Z.Ba),this.Wa=g),e=!0):8!=this.Zb?(b=0,a=8,e=!0):(a=-1,b=0,xd(this),c=!1)):(Ic(this),F(this,this.Na-this.ka.Ba));var k=a,l=b,p=32,q=se(this,this.ha);204!=q||this.Vc||(c=!1);this.T&131072&&(6==k&&99==q||13==k&&205==q)&&(c=!1);14==k&&207==q&&(c=!0);!1===c&&(p|=1);983040<=this.ha&&1048575>=this.ha&&(c=!1);this.Sa(p|-2147483648)&&(c=!0);if(this.Sa(p)|| +c){var w=this.ia.Kb,k="Fault "+ea(k)+(null!=l?" (0x"+da(l,4)+")":"")+" on opcode "+ea(q);c&&w&&(k+=" (blocked by PCjs Debugger)");this.Ma(k,c||p,!0)?c&&(c=w,oc(this.Qa)):(this.Ja(k),oc(this))}c&&(e=!1);if(e)throw this.Zb=a,Ce.call(this,a,b,d||0),this.Na=this.ha,this.O=1==a?this.O|8192:this.O|4096,a;}function zd(a,b,c){this.yd=a;a=0;b&&(a|=1);c&&(a|=2);3==this.Ea&&(a|=4);m.call(this,14,a)}function od(){this.te[this.X()].call(this)}function rd(){u(this,t(this)&this.C);this.A-=this.B.ic} function Yc(){var a=t(this)&this.C;u(this,this.G&this.C);u(this,this.F&this.C);u(this,this.H&this.C);u(this,this.D&this.C);u(this,a);u(this,this.L&this.C);u(this,this.K&this.C);u(this,this.I&this.C);this.A-=this.B.Sh}function Zc(){this.I=this.I&~this.C|n(this);this.K=this.K&~this.C|n(this);this.L=this.L&~this.C|n(this);r(this,t(this)+this.aa);this.D=this.D&~this.C|n(this);this.H=this.H&~this.C|n(this);this.F=this.F&~this.C|n(this);this.G=this.G&~this.C|n(this);this.A-=this.B.Qh} function $c(){this.ta[this.X()].call(this,Le)}function sd(){!(this.Aa&1)||this.T&131072?m.call(this,6):this.Ia[this.X()].call(this,Ke)}function td(){this.O|=20;this.U=this.V=this.bb;this.A-=this.B.wc}function ud(){this.O|=20;this.U=this.V=this.lb;this.A-=this.B.wc}function vd(){this.O|=1024;this.ja&1024||(this.aa^=6,this.C^=-65536,Od(this));this.A-=this.B.wc}function wd(){this.O|=2048;this.ja&2048||(this.Nc^=6,this.ua^=-65536,Ed(this));this.A-=this.B.wc} function ad(){u(this,this.Ca());this.A-=this.B.ic}function bd(){this.ta[this.X()].call(this,ff)}function cd(){u(this,this.M());this.A-=this.B.ic}function dd(){this.ta[this.X()].call(this,ef)} @@ -156,14 +156,14 @@ function Dg(){var a=this.M();ae(this)?this.A-=this.B.La:(F(this,v(this)+a),this. function Hg(){var a=this.M();ce(this)||!de(this)!=!ee(this)?this.A-=this.B.La:(F(this,v(this)+a),this.A-=this.B.Ka)}function Ig(){this.Kc[this.X()].call(this,Jg,this.X);this.A-=this.pa===g?1:this.B.Qe}function id(){this.Kc[this.X()].call(this,Kg,pg)}function jd(){this.Ab[this.X()].call(this,2==this.aa?Lg:Mg,pg)}function Ng(){var a=xe(this),b=n(this);F(this,b);a&&r(this,t(this)+a);this.A-=this.B.Xh}function Og(){var a=n(this);F(this,a);this.A-=this.B.Uh} function kd(){var a=xe(this),b=this.X()&31;this.A-=11;u(this,this.L);var c=t(this)&this.C;if(0>8&255;9<(c&15)||be(this)?(c=c+6&15,d=d+1&255,a=b=1):a=b=0;this.G=this.G&-65536|d<<8|c;a?ge(this):he(this);b?oe(this):me(this);this.A-=this.B.sd},function(){this.Ib[this.X()].call(this, -Xe)},function(){this.Ia[this.X()].call(this,Ye)},function(){this.Bb[this.X()].call(this,Xe)},function(){this.ta[this.X()].call(this,Ye)},function(){Xe.call(this,this.G&255,this.X());this.A--},function(){Ye.call(this,this.G&this.C,this.Ca());this.A--},function(){this.O|=20;this.U=this.V=this.Ha;this.A-=this.B.wc},function(){var a,b,c=this.G&255,d=this.G>>8&255;9<(c&15)||be(this)?(c=c-6&15,d=d-1&255,a=b=1):a=b=0;this.G=this.G&-65536|d<<8|c;a?ge(this):he(this);b?oe(this):me(this);this.A-=this.B.sd}, +var Tc=[function(){var a=this.X();this.Ib[a].call(this,Ge)},function(){this.Ia[this.X()].call(this,He)},function(){this.Bb[this.X()].call(this,Ge)},function(){this.ta[this.X()].call(this,He)},function(){this.G=this.G&-256|Ge.call(this,this.G&255,this.X());this.A--},function(){this.G=this.G&~this.C|He.call(this,this.G&this.C,this.Ca());this.A--},function(){u(this,this.ya.oa);this.A-=this.B.sd},function(){this.Wa=this.va;Kc(this,n(this));this.A-=this.B.Mb;this.Wa=g},function(){this.Ib[this.X()].call(this, +wf)},function(){this.Ia[this.X()].call(this,xf)},function(){this.Bb[this.X()].call(this,wf)},function(){this.ta[this.X()].call(this,xf)},function(){this.G=this.G&-256|wf.call(this,this.G&255,this.X());this.A--},function(){this.G=this.G&~this.C|xf.call(this,this.G&this.C,this.Ca());this.A--},function(){u(this,this.ka.oa);this.A-=this.B.sd},function(){Xd(this,n(this));this.A-=this.B.Mb},function(){this.Ib[this.X()].call(this,Ee)},function(){this.Ia[this.X()].call(this,Fe)},function(){this.Bb[this.X()].call(this, +Ee)},function(){this.ta[this.X()].call(this,Fe)},function(){this.G=this.G&-256|Ee.call(this,this.G&255,this.X());this.A--},function(){this.G=this.G&~this.C|Fe.call(this,this.G&this.C,this.Ca());this.A--},function(){u(this,this.Z.oa);this.A-=this.B.sd},function(){this.Wa=this.va;Ec(this,n(this));this.A-=this.B.Mb;this.Wa=g},function(){this.Ib[this.X()].call(this,zf)},function(){this.Ia[this.X()].call(this,Af)},function(){this.Bb[this.X()].call(this,zf)},function(){this.ta[this.X()].call(this,Af)}, +function(){this.G=this.G&-256|zf.call(this,this.G&255,this.X());this.A--},function(){this.G=this.G&~this.C|Af.call(this,this.G&this.C,this.Ca());this.A--},function(){u(this,this.Ha.oa);this.A-=this.B.sd},function(){this.Wa=this.va;Jc(this,n(this));this.A-=this.B.Mb;this.Wa=g},function(){this.Ib[this.X()].call(this,Ie)},function(){this.Ia[this.X()].call(this,Je)},function(){this.Bb[this.X()].call(this,Ie)},function(){this.ta[this.X()].call(this,Je)},function(){this.G=this.G&-256|Ie.call(this,this.G& +255,this.X());this.A--},function(){this.G=this.G&~this.C|Je.call(this,this.G&this.C,this.Ca());this.A--},function(){this.O|=20;this.U=this.V=this.ya;this.A-=this.B.wc},function(){var a=this.G&255,b=be(this),c=$d(this);if(9<(a&15)||b)a+=6,b=16;if(159>8&255;9<(c&15)||be(this)?(c=c+6&15,d=d+1&255,a=b=1):a=b=0;this.G=this.G&-65536|d<<8|c;a?ge(this):he(this);b?oe(this):me(this);this.A-=this.B.rd},function(){this.Ib[this.X()].call(this, +Xe)},function(){this.Ia[this.X()].call(this,Ye)},function(){this.Bb[this.X()].call(this,Xe)},function(){this.ta[this.X()].call(this,Ye)},function(){Xe.call(this,this.G&255,this.X());this.A--},function(){Ye.call(this,this.G&this.C,this.Ca());this.A--},function(){this.O|=20;this.U=this.V=this.Ha;this.A-=this.B.wc},function(){var a,b,c=this.G&255,d=this.G>>8&255;9<(c&15)||be(this)?(c=c-6&15,d=d-1&255,a=b=1):a=b=0;this.G=this.G&-65536|d<<8|c;a?ge(this):he(this);b?oe(this):me(this);this.A-=this.B.rd}, function(){this.G=jf.call(this,this.G)},function(){this.F=jf.call(this,this.F)},function(){this.H=jf.call(this,this.H)},function(){this.D=jf.call(this,this.D)},function(){r(this,jf.call(this,t(this)))},function(){this.L=jf.call(this,this.L)},function(){this.K=jf.call(this,this.K)},function(){this.I=jf.call(this,this.I)},function(){this.G=Ze.call(this,this.G)},function(){this.F=Ze.call(this,this.F)},function(){this.H=Ze.call(this,this.H)},function(){this.D=Ze.call(this,this.D)},function(){r(this,Ze.call(this, t(this)))},function(){this.L=Ze.call(this,this.L)},function(){this.K=Ze.call(this,this.K)},function(){this.I=Ze.call(this,this.I)},function(){u(this,this.G&this.C);this.A-=this.B.ic},function(){u(this,this.F&this.C);this.A-=this.B.ic},function(){u(this,this.H&this.C);this.A-=this.B.ic},function(){u(this,this.D&this.C);this.A-=this.B.ic},function(){u(this,t(this)-2&65535);this.A-=this.B.ic},function(){u(this,this.L&this.C);this.A-=this.B.ic},function(){u(this,this.K&this.C);this.A-=this.B.ic},function(){u(this, this.I&this.C);this.A-=this.B.ic},function(){this.G=this.G&~this.C|n(this);this.A-=this.B.Mb},function(){this.F=this.F&~this.C|n(this);this.A-=this.B.Mb},function(){this.H=this.H&~this.C|n(this);this.A-=this.B.Mb},function(){this.D=this.D&~this.C|n(this);this.A-=this.B.Mb},function(){r(this,t(this)&~this.C|n(this));this.A-=this.B.Mb},function(){this.L=this.L&~this.C|n(this);this.A-=this.B.Mb},function(){this.K=this.K&~this.C|n(this);this.A-=this.B.Mb},function(){this.I=this.I&~this.C|n(this);this.A-= @@ -177,7 +177,7 @@ a&this.C;this.A-=3},function(){var a=this.G;this.G=this.G&~this.C|this.I&this.C; function(){var a=this.G&-256,b;b=S(this);b=this.Sb(this.U.fc(b,1));this.G=a|b;this.A-=this.B.Pf},function(){this.G=this.G&~this.C|Hc(this,this.U,S(this));this.A-=this.B.Pf},function(){var a=S(this),b=this.G;this.Gc(this.U.Vb(a,1),b);this.A-=this.B.Qf},function(){var a=S(this),b=this.G;this.hd(this.U.Vb(a,this.aa),b);this.A-=this.B.Qf},function(){var a=1,b=0,c=this.ua,d=this.B.Rf;this.ja&192&&(a=this.F&c,b=1,d=this.B.Tf,this.ja&256||(this.A-=this.B.Sf));if(a--){var e=this.Sb(this.U.fc(this.K&c,1)); this.Gc(this.ya.Vb(this.I&c,1),e);this.O&4096||(e=this.T&1024?-1:1,this.K=this.K&~c|this.K+e&c,this.I=this.I&~c|this.I+e&c,this.A-=d,this.F=this.F&~c|this.F-b&c,a&&(this.ha=this.Na,this.O|=256))}},function(){var a=1,b=0,c=this.ua,d=this.B.Rf;this.ja&192&&(a=this.F&c,b=1,d=this.B.Tf,this.ja&256||(this.A-=this.B.Sf));if(a--){var e=Hc(this,this.U,this.K&c);this.hd(this.ya.Vb(this.I&c,this.aa),e);this.O&4096||(e=this.T&1024?-this.aa:this.aa,this.K=this.K&~c|this.K+e&c,this.I=this.I&~c|this.I+e&c,this.A-= d,this.F=this.F&~c|this.F-b&c,a&&(this.ha=this.Na,this.O|=256))}},function(){var a=1,b=0,c=this.ua,d=this.B.Cf;this.ja&192&&(a=this.F&c,b=1,d=this.B.Ef,this.ja&256||(this.A-=this.B.Df));if(a--){var e=te(this,this.U,this.K&c),k=ve(this,this.ya,this.I&c);this.O&4096||(Xe.call(this,e,k),e=this.T&1024?-1:1,this.K=this.K&~c|this.K+e&c,this.I=this.I&~c|this.I+e&c,this.F=this.F&~c|this.F-b&c,this.A-=d-this.B.ub,a&&ce(this)==(this.ja&64)&&(this.ha=this.Na,this.O|=256))}},function(){var a=1,b=0,c=this.ua, -d=this.B.Cf;this.ja&192&&(a=this.F&c,b=1,d=this.B.Ef,this.ja&256||(this.A-=this.B.Df));if(a--){var e=ue(this,this.U,this.K&c),k=we(this,this.ya,this.I&c);this.O&4096||(Ye.call(this,e,k),e=this.T&1024?-this.aa:this.aa,this.K=this.K&~c|this.K+e&c,this.I=this.I&~c|this.I+e&c,this.F=this.F&~c|this.F-b&c,this.A-=d-this.B.ub,a&&ce(this)==(this.ja&64)&&(this.ha=this.Na,this.O|=256))}},function(){fe(this,this.G&this.X(),128);this.A-=this.B.sd},function(){fe(this,this.G&this.Ca(),this.ab);this.A-=this.B.sd}, +d=this.B.Cf;this.ja&192&&(a=this.F&c,b=1,d=this.B.Ef,this.ja&256||(this.A-=this.B.Df));if(a--){var e=ue(this,this.U,this.K&c),k=we(this,this.ya,this.I&c);this.O&4096||(Ye.call(this,e,k),e=this.T&1024?-this.aa:this.aa,this.K=this.K&~c|this.K+e&c,this.I=this.I&~c|this.I+e&c,this.F=this.F&~c|this.F-b&c,this.A-=d-this.B.ub,a&&ce(this)==(this.ja&64)&&(this.ha=this.Na,this.O|=256))}},function(){fe(this,this.G&this.X(),128);this.A-=this.B.rd},function(){fe(this,this.G&this.Ca(),this.ab);this.A-=this.B.rd}, function(){var a=1,b=0,c=this.ua,d=this.B.bg;this.ja&192&&(a=this.F&c,b=1,d=this.B.dg,this.ja&256||(this.A-=this.B.cg));if(a--){var e=this.G;this.Gc(this.ya.Vb(this.I&c,1),e);this.O&4096||(this.I=this.I&~c|this.I+(this.T&1024?-1:1)&c,this.F=this.F&~c|this.F-b&c,this.A-=d,a&&(this.ha=this.Na,this.O|=256))}},function(){var a=1,b=0,c=this.ua,d=this.B.bg;this.ja&192&&(a=this.F&c,b=1,d=this.B.dg,this.ja&256||(this.A-=this.B.cg));if(a--){var e=this.G;this.hd(this.ya.Vb(this.I&c,this.aa),e);this.O&4096|| (this.I=this.I&~c|this.I+(this.T&1024?-this.aa:this.aa)&c,this.F=this.F&~c|this.F-b&c,this.A-=d,a&&(this.ha=this.Na,this.O|=256))}},function(){var a=1,b=0,c=this.ua,d=this.B.Jf;this.ja&192&&(a=this.F&c,b=1,d=this.B.Lf,this.ja&256||(this.A-=this.B.Kf));if(a--){var e=this.Sb(this.U.fc(this.K&c,1));this.O&4096||(this.G=this.G&-256|e,this.K=this.K&~c|this.K+(this.T&1024?-1:1)&c,this.F=this.F&~c|this.F-b&c,this.A-=d,a&&(this.ha=this.Na,this.O|=256))}},function(){var a=1,b=0,c=this.ua,d=this.B.Jf;this.ja& 192&&(a=this.F&c,b=1,d=this.B.Lf,this.ja&256||(this.A-=this.B.Kf));if(a--){var e=Hc(this,this.U,this.K&c);this.O&4096||(this.G=this.G&~this.C|e,this.K=this.K&~c|this.K+(this.T&1024?-this.aa:this.aa)&c,this.F=this.F&~c|this.F-b&c,this.A-=d,a&&(this.ha=this.Na,this.O|=256))}},function(){var a=1,b=0,c=this.ua,d=this.B.Wf;this.ja&192&&(a=this.F&c,b=1,d=this.B.Yf,this.ja&256||(this.A-=this.B.Xf));a--&&(Xe.call(this,this.G&255,ve(this,this.ya,this.I&c)),this.O&4096||(this.I=this.I&~c|this.I+(this.T&1024? @@ -198,25 +198,25 @@ this.B.Hh;return b},lg,lg,lg,lg,lg,lg,lg],Kg=[function(a,b){var c=a,d=b&this.Ga; b){var c=a,d=b&this.Ga;if(d){var e;(d&=15)?(e=a<<16-d,c=(a>>>d|e)&65535):e=a;ke(this,c,e,32768)}return c},function(a,b){var c=a,d=b&this.Ga;if(d){var e=le(this);(d%=17)?(c=(a<>17-d)&65535,e=a<>d|e<<16-d|a<<17-d)&65535,e=a<<16-d):e<<=15;ke(this,c,e,32768)}return c},function(a,b){var c=a,d=b&this.Ga;if(d){var e=0;16>>c-1,a=c>>>1&65535,fe(this,a,32768,c&1,a&32768));return a},lg,function(a,b){var c=b&this.Ga;c&&(17>16>>c-1,a=c>>1&65535,fe(this,a,32768,c&1));return a}],Mg=[function(a,b){var c=a,d=b&this.Ga;d&&(c=a<>>32-d,ke(this,c,a<>>d|e;ke(this,c,e,-2147483648)}return c},function(a,b){var c=a,d=b&this.Ga;d&&(c=le(this),c=a<>>32-d>>>1,ke(this,c, a<>>d|c<<32-d|a<<32-d<<1,ke(this,c,a<<32-d,-2147483648));return c},function(a,b){var c=a,d=b&this.Ga;d&&(d=a<>>c-1,a=c>>>1,fe(this,a,-2147483648,c&1,a&-2147483648));return a},lg,function(a,b){var c=b&this.Ga;c&&(c=a>>c-1,a=c>>1,fe(this,a,-2147483648,c&1));return a}],Wg=[function(a,b){b=this.X();fe(this, -a&b,128);this.A-=this.P===g?this.B.fg:this.B.eg;this.O|=2;return a},lg,function(a){this.A-=this.P===g?this.B.he:this.B.ge;return a^255},function(a){var b=-a|0;Zd(this,0,a,b,191,!0);this.A-=this.P===g?this.B.he:this.B.ge;return b&255},function(a){this.Ua=!0;this.Da=(this.G&255)*a&65535;this.Da&65280?(ge(this),ie(this)):(he(this),je(this));this.A-=this.P===g?this.B.Nh:this.B.Mh;this.O|=2;return a},function(a){var b=(this.G<<24>>24)*(a<<24>>24)|0;this.Ua=!0;this.Da=b&65535;127b?(ge(this),ie(this)): +a&b,128);this.A-=this.P===g?this.B.fg:this.B.eg;this.O|=2;return a},lg,function(a){this.A-=this.P===g?this.B.ge:this.B.fe;return a^255},function(a){var b=-a|0;Zd(this,0,a,b,191,!0);this.A-=this.P===g?this.B.ge:this.B.fe;return b&255},function(a){this.Ua=!0;this.Da=(this.G&255)*a&65535;this.Da&65280?(ge(this),ie(this)):(he(this),je(this));this.A-=this.P===g?this.B.Nh:this.B.Mh;this.O|=2;return a},function(a){var b=(this.G<<24>>24)*(a<<24>>24)|0;this.Ua=!0;this.Da=b&65535;127b?(ge(this),ie(this)): (he(this),je(this));this.A-=this.P===g?this.B.sh:this.B.rh;this.O|=2;return a},function(a,b){if(!a)return mg.call(this),a;var c=(b=this.G&65535)/a;if(255>24,d=(b=this.G<<16>>16)/c|0;if(d!=d<<24>>24||8086==this.ga&&-128==d)return mg.call(this),a;this.Ua=!0;this.Da=d&255|(b%c&255)<<8;this.A-=this.P===g?this.B.oh:this.B.nh;this.O|= -2;return a}],Xg=[function(a,b){b=this.Ca();fe(this,a&b,this.ab);this.A-=this.P===g?this.B.fg:this.B.eg;this.O|=2;return a},lg,function(a){this.A-=this.P===g?this.B.he:this.B.ge;return a^this.C},function(a){var b=-a|0;Zd(this,0,a,b,this.ab|63,!0);this.A-=this.P===g?this.B.he:this.B.ge;return b&this.C},function(a,b){if(2==this.aa){b=this.G&65535;var c=b*a|0;this.Ua=!0;this.Da=c&65535;this.Xa=c>>16&65535}else vf.call(this,a,this.G);this.Xa?(ge(this),ie(this)):(he(this),je(this));this.A-=this.P===g?this.B.Ph: +2;return a}],Xg=[function(a,b){b=this.Ca();fe(this,a&b,this.ab);this.A-=this.P===g?this.B.fg:this.B.eg;this.O|=2;return a},lg,function(a){this.A-=this.P===g?this.B.ge:this.B.fe;return a^this.C},function(a){var b=-a|0;Zd(this,0,a,b,this.ab|63,!0);this.A-=this.P===g?this.B.ge:this.B.fe;return b&this.C},function(a,b){if(2==this.aa){b=this.G&65535;var c=b*a|0;this.Ua=!0;this.Da=c&65535;this.Xa=c>>16&65535}else vf.call(this,a,this.G);this.Xa?(ge(this),ie(this)):(he(this),je(this));this.A-=this.P===g?this.B.Ph: this.B.Oh;this.O|=2;return a},function(a,b){var c;if(2==this.aa)b=this.G&65535,c=(b<<16>>16)*(a<<16>>16)|0,this.Ua=!0,this.Da=c&65535,this.Xa=c>>16&65535,c=32767c;else{c=a;var d=this.G,e=!1;0>d&&(d=-d|0,e=!e);0>c&&(c=-c|0,e=!e);vf.call(this,c,d);e&&(this.Da=~this.Da+1|0,this.Xa=~this.Xa+(this.Da?0:1)|0);c=this.Xa!=this.Da>>31}c?(ge(this),ie(this)):(he(this),je(this));this.A-=this.P===g?this.B.uh:this.B.th;this.O|=2;return a},function(a,b){if(2==this.aa){if(!a)return mg.call(this),a;b=65536* (this.H&65535)+(this.G&65535);var c=b/a|0;if(65536<=c)return mg.call(this),a;this.Ua=!0;this.Da=c&65535;this.Xa=b%a&65535}else{af.call(this,this.G,this.H,a);if(!this.Ua)return mg.call(this),a;this.Da|=0;this.Xa|=0}this.A-=this.P===g?this.B.mh:this.B.lh;this.O|=2;return a},function(a,b){if(2==this.aa){if(!a)return mg.call(this),a;var c=a<<16>>16,d=(b=this.H<<16|this.G&65535)/c|0;if(d!=d<<16>>16||8086==this.ga&&-32768==d)return mg.call(this),a;this.Ua=!0;this.Da=d&65535;this.Xa=b%c&65535}else{var c= -this.G,d=this.H,e=a,k=!1,l=!1;0>e&&(e=-e|0,k=!k);0>d&&(c=-c|0,d=~d+(c?0:1)|0,l=!0,k=!k);af.call(this,c,d,e);2147483647e&&(e=-e|0,k=!k);0>d&&(c=-c|0,d=~d+(c?0:1)|0,l=!0,k=!k);af.call(this,c,d,e);2147483647this.ga&&(b=a));u(this,b);this.A-=this.P===g?this.B.ic:this.B.Th;this.O|=2;return a},kg],pd=Array(256);pd[0]=function(){var a=this.X();16>(a&56)&&(this.O|=1);this.Ab[a].call(this,this.ni,qg)};pd[1]=function(){var a=this.X();a&16||(this.O|=1);this.Ab[a].call(this,Yg,qg)}; pd[2]=function(){!(this.Aa&1)||this.T&131072?m.call(this,6):this.ta[this.X()].call(this,kf)};pd[3]=function(){!(this.Aa&1)||this.T&131072?m.call(this,6):this.ta[this.X()].call(this,qf)}; -pd[5]=function(){this.Ea?m.call(this,13,0,!0):(qe(this,this.la(2054)),this.I=this.la(2086),this.K=this.la(2088),this.L=this.la(2090),this.D=this.la(2094),this.H=this.la(2096),this.F=this.la(2098),this.G=this.la(2100),Dc(this.ya,2102,this.la(2084)),Dc(this.ka,2108,this.la(2082)),Dc(this.Z,2114,this.la(2080)),Dc(this.Ha,2120,this.la(2078)),Mc(this,this.la(2072)),F(this,this.la(2074)),r(this,this.la(2092)),this.Xb=this.la(2126)|this.Sb(2128)<<16,this.xd=this.Xb+this.la(2130),Dc(this.Fc,2132,this.la(2076)), +pd[5]=function(){this.Ea?m.call(this,13,0,!0):(qe(this,this.la(2054)),this.I=this.la(2086),this.K=this.la(2088),this.L=this.la(2090),this.D=this.la(2094),this.H=this.la(2096),this.F=this.la(2098),this.G=this.la(2100),Dc(this.ya,2102,this.la(2084)),Dc(this.ka,2108,this.la(2082)),Dc(this.Z,2114,this.la(2080)),Dc(this.Ha,2120,this.la(2078)),Mc(this,this.la(2072)),F(this,this.la(2074)),r(this,this.la(2092)),this.Xb=this.la(2126)|this.Sb(2128)<<16,this.wd=this.Xb+this.la(2130),Dc(this.Fc,2132,this.la(2076)), this.Ob=this.la(2138)|this.Sb(2140)<<16,this.Vc=this.Ob+this.la(2142),Dc(this.qa,2144,this.la(2070)),this.A-=195)};pd[6]=function(){this.Ea?m.call(this,13,0):(this.Aa&=-9,this.A-=2)};pd[11]=Xc;pd[166]=Xc;pd[255]=Xc;var x=[];x[5]=Xc;x[7]=function(){this.Ea?m.call(this,13,0,!0):(qd.call(this),this.A-=100)}; -x[32]=function(){if(this.Ea)m.call(this,13,0);else{var a,b=this.X();switch((b&56)>>3){case 0:a=this.Aa;break;case 2:a=this.zd;break;case 3:a=this.Yc;break;default:qd.call(this);return}Cd(this,b&7,a);this.A-=6}};x[33]=function(){if(this.Ea)m.call(this,13,0);else{var a=this.X(),b=(a&56)>>3;4==b||5==b?qd.call(this):(Cd(this,a&7,this.pb[b]),this.A-=22)}}; -x[34]=function(){if(this.Ea)m.call(this,13,0);else{var a=this.X(),b=Bd(this,a&7);switch((a&56)>>3){case 0:this.Aa=b;Gc(this);this.Aa&-2147483648?yd(this):Ad(this);this.A-=10;break;case 2:this.zd=b;this.A-=4;break;case 3:Oc.call(this,b);this.A-=5;break;default:qd.call(this)}}};x[35]=function(){if(this.Ea)m.call(this,13,0);else{var a=this.X(),b=(a&56)>>3;4==b||5==b?qd.call(this):(a=Bd(this,a&7),a!=this.pb[b]&&(Td(this,!1),this.pb[b]=a,Td(this,!0)),this.A-=4>b?22:14)}}; +x[32]=function(){if(this.Ea)m.call(this,13,0);else{var a,b=this.X();switch((b&56)>>3){case 0:a=this.Aa;break;case 2:a=this.yd;break;case 3:a=this.Yc;break;default:qd.call(this);return}Cd(this,b&7,a);this.A-=6}};x[33]=function(){if(this.Ea)m.call(this,13,0);else{var a=this.X(),b=(a&56)>>3;4==b||5==b?qd.call(this):(Cd(this,a&7,this.pb[b]),this.A-=22)}}; +x[34]=function(){if(this.Ea)m.call(this,13,0);else{var a=this.X(),b=Bd(this,a&7);switch((a&56)>>3){case 0:this.Aa=b;Gc(this);this.Aa&-2147483648?yd(this):Ad(this);this.A-=10;break;case 2:this.yd=b;this.A-=4;break;case 3:Oc.call(this,b);this.A-=5;break;default:qd.call(this)}}};x[35]=function(){if(this.Ea)m.call(this,13,0);else{var a=this.X(),b=(a&56)>>3;4==b||5==b?qd.call(this):(a=Bd(this,a&7),a!=this.pb[b]&&(Td(this,!1),this.pb[b]=a,Td(this,!0)),this.A-=4>b?22:14)}}; x[36]=function(){if(this.Ea)m.call(this,13,0);else{var a=this.X(),b=(a&56)>>3;6>b?qd.call(this):(Cd(this,a&7,this.gf[b]),this.A-=12)}};x[38]=function(){if(this.Ea)m.call(this,13,0);else{var a=this.X(),b=(a&56)>>3;6>b?qd.call(this):(this.gf[b]=Bd(this,a&7),this.A-=12)}};x[128]=function(){var a=this.Ca();ee(this)?(F(this,v(this)+a),this.A-=this.B.Ka):this.A-=this.B.La};x[129]=function(){var a=this.Ca();ee(this)?this.A-=this.B.La:(F(this,v(this)+a),this.A-=this.B.Ka)}; x[130]=function(){var a=this.Ca();$d(this)?(F(this,v(this)+a),this.A-=this.B.Ka):this.A-=this.B.La};x[131]=function(){var a=this.Ca();$d(this)?this.A-=this.B.La:(F(this,v(this)+a),this.A-=this.B.Ka)};x[132]=function(){var a=this.Ca();ce(this)?(F(this,v(this)+a),this.A-=this.B.Ka):this.A-=this.B.La};x[133]=function(){var a=this.Ca();ce(this)?this.A-=this.B.La:(F(this,v(this)+a),this.A-=this.B.Ka)};x[134]=function(){var a=this.Ca();$d(this)||ce(this)?(F(this,v(this)+a),this.A-=this.B.Ka):this.A-=this.B.La}; x[135]=function(){var a=this.Ca();$d(this)||ce(this)?this.A-=this.B.La:(F(this,v(this)+a),this.A-=this.B.Ka)};x[136]=function(){var a=this.Ca();de(this)?(F(this,v(this)+a),this.A-=this.B.Ka):this.A-=this.B.La};x[137]=function(){var a=this.Ca();de(this)?this.A-=this.B.La:(F(this,v(this)+a),this.A-=this.B.Ka)};x[138]=function(){var a=this.Ca();ae(this)?(F(this,v(this)+a),this.A-=this.B.Ka):this.A-=this.B.La};x[139]=function(){var a=this.Ca();ae(this)?this.A-=this.B.La:(F(this,v(this)+a),this.A-=this.B.Ka)}; x[140]=function(){var a=this.Ca();!de(this)!=!ee(this)?(F(this,v(this)+a),this.A-=this.B.Ka):this.A-=this.B.La};x[141]=function(){var a=this.Ca();!de(this)==!ee(this)?(F(this,v(this)+a),this.A-=this.B.Ka):this.A-=this.B.La};x[142]=function(){var a=this.Ca();ce(this)||!de(this)!=!ee(this)?(F(this,v(this)+a),this.A-=this.B.Ka):this.A-=this.B.La};x[143]=function(){var a=this.Ca();ce(this)||!de(this)!=!ee(this)?this.A-=this.B.La:(F(this,v(this)+a),this.A-=this.B.Ka)};x[144]=function(){Bf.call(this,Cf)}; x[145]=function(){Bf.call(this,Cf)};x[146]=function(){Bf.call(this,Df)};x[147]=function(){Bf.call(this,Ef)};x[148]=function(){Bf.call(this,Ff)};x[149]=function(){Bf.call(this,Gf)};x[150]=function(){Bf.call(this,Hf)};x[151]=function(){Bf.call(this,If)};x[152]=function(){Bf.call(this,Jf)};x[153]=function(){Bf.call(this,Kf)};x[154]=function(){Bf.call(this,Lf)};x[155]=function(){Bf.call(this,Mf)};x[156]=function(){Bf.call(this,Nf)};x[157]=function(){Bf.call(this,Of)};x[158]=function(){Bf.call(this,Pf)}; -x[159]=function(){Bf.call(this,Qf)};x[160]=function(){u(this,this.bb.oa);this.A-=this.B.td};x[161]=function(){this.Wa=this.va;var a=n(this);this.bb.load(a);this.A-=this.B.Mb;this.Wa=g};x[163]=function(){this.Ia[this.X()].call(this,Se);this.P!==g&&(this.A-=6)};x[164]=function(){this.Ia[this.X()].call(this,2==this.aa?Tf:Uf);this.A-=this.P===g?3:7};x[165]=function(){this.Ia[this.X()].call(this,2==this.aa?Vf:Wf);this.A-=this.P===g?3:7};x[168]=function(){u(this,this.lb.oa);this.A-=this.B.td}; +x[159]=function(){Bf.call(this,Qf)};x[160]=function(){u(this,this.bb.oa);this.A-=this.B.sd};x[161]=function(){this.Wa=this.va;var a=n(this);this.bb.load(a);this.A-=this.B.Mb;this.Wa=g};x[163]=function(){this.Ia[this.X()].call(this,Se);this.P!==g&&(this.A-=6)};x[164]=function(){this.Ia[this.X()].call(this,2==this.aa?Tf:Uf);this.A-=this.P===g?3:7};x[165]=function(){this.Ia[this.X()].call(this,2==this.aa?Vf:Wf);this.A-=this.P===g?3:7};x[168]=function(){u(this,this.lb.oa);this.A-=this.B.sd}; x[169]=function(){this.Wa=this.va;var a=n(this);this.lb.load(a);this.A-=this.B.Mb;this.Wa=g};x[171]=function(){this.Ia[this.X()].call(this,Ve);this.P!==g&&(this.A-=5)};x[172]=function(){this.Ia[this.X()].call(this,2==this.aa?Zf:$f);this.A-=this.P===g?3:7};x[173]=function(){this.Ia[this.X()].call(this,2==this.aa?ag:bg);this.A-=this.P===g?3:7};x[175]=function(){this.ta[this.X()].call(this,2==this.aa?gf:hf)};x[178]=function(){this.ta[this.X()].call(this,rf)}; x[179]=function(){this.Ia[this.X()].call(this,Ue);this.P!==g&&(this.A-=5)};x[180]=function(){this.ta[this.X()].call(this,of)};x[181]=function(){this.ta[this.X()].call(this,pf)}; x[182]=function(){var a,b=this.X(),c=(b&56)>>3;switch(c){case 4:a=this.G;break;case 5:a=this.F;break;case 6:a=this.H;break;case 7:a=this.D}this.Bb[b].call(this,tf);switch(c){case 0:this.G=this.G&~this.C|this.G&255;break;case 1:this.F=this.F&~this.C|this.F&255;break;case 2:this.H=this.H&~this.C|this.H&255;break;case 3:this.D=this.D&~this.C|this.D&255;break;case 4:this.Qb=this.Qb&~this.C|this.G>>8&255;this.G=a;break;case 5:this.L=this.L&~this.C|this.F>>8&255;this.F=a;break;case 6:this.K=this.K&~this.C| @@ -226,8 +226,8 @@ x[190]=function(){var a,b=this.X(),c=(b&56)>>3;switch(c){case 4:a=this.G;break;c this.L&~this.C|this.F<<16>>24&this.C;this.F=a;break;case 6:this.K=this.K&~this.C|this.H<<16>>24&this.C;this.H=a;break;case 7:this.I=this.I&~this.C|this.D<<16>>24&this.C,this.D=a}this.A-=this.P===g?3:6}; x[191]=function(){var a=this.X();Nd(this);this.ta[a].call(this,tf);switch((a&56)>>3){case 0:this.G=this.G<<16>>16;break;case 1:this.F=this.F<<16>>16;break;case 2:this.H=this.H<<16>>16;break;case 3:this.D=this.D<<16>>16;break;case 4:this.Qb=this.Qb<<16>>16;break;case 5:this.L=this.L<<16>>16;break;case 6:this.K=this.K<<16>>16;break;case 7:this.I=this.I<<16>>16}this.A-=this.P===g?3:6}; var Ud=[function(){this.A-=2+(this.P===g?0:1);return this.Fc.oa},function(){this.A-=2+(this.P===g?0:1);return this.qa.oa},function(a){this.O|=2;this.Fc.load(a);this.A-=17+(this.P===g?0:2);return a},function(a){this.O|=2;this.qa.load(a)!==g&&(this.zb(this.qa.ec+4,this.qa.mb|=512),this.qa.type|=512);this.A-=17+(this.P===g?0:2);return a},function(a){this.O|=2;this.A-=14+(this.P===g?0:2);if(this.Oa.load(a)!==g&&2048!=(this.Oa.mb&2560)&&(this.Oa.oc>=this.Ea&&this.Oa.oc>=(a&3)||7168==(this.Oa.mb&7168)))return pe(this), -a;ne(this);return a},function(a){this.O|=2;this.A-=14+(this.P===g?0:2);if(this.Oa.load(a)!==g&&512==(this.Oa.mb&2560)&&this.Oa.oc>=this.Ea&&this.Oa.oc>=(a&3))return pe(this),a;ne(this);return a},lg,lg],Wc=[nd,nd,nd,nd,nd,nd,lg,lg],Yg=[function(a){if(this.P===g)m.call(this,6);else{a=this.xd-this.Xb;var b=this.Xb;80286==this.ga?b|=-16777216:80386<=this.ga&&(2==this.aa?b&=16777215:a|=b<<16);this.vb(this.P+2,b);this.A-=11}return a},function(a){if(this.P===g)m.call(this,6);else{a=this.Vc-this.Ob;var b= -this.Ob;80286==this.ga?b|=-16777216:80386<=this.ga&&(2==this.aa?b&=16777215:a|=b<<16);this.vb(this.P+2,b);this.A-=12}return a},function(a){this.P===g||this.T&131072?m.call(this,6):(this.Xb=this.Tb(this.P+2)&(this.C|this.C<<8),a&=65535,this.xd=this.Xb+a,this.O|=2,this.A-=11);return a},function(a){this.P===g||this.T&131072?m.call(this,6):(this.Ob=this.Tb(this.P+2)&(this.C|this.C<<8),a&=65535,this.Vc=this.Ob+a,this.O|=2,this.A-=12);return a},function(){this.A-=2+(this.P===g?0:1);return this.Aa},lg,function(a){this.T& +a;ne(this);return a},function(a){this.O|=2;this.A-=14+(this.P===g?0:2);if(this.Oa.load(a)!==g&&512==(this.Oa.mb&2560)&&this.Oa.oc>=this.Ea&&this.Oa.oc>=(a&3))return pe(this),a;ne(this);return a},lg,lg],Wc=[nd,nd,nd,nd,nd,nd,lg,lg],Yg=[function(a){if(this.P===g)m.call(this,6);else{a=this.wd-this.Xb;var b=this.Xb;80286==this.ga?b|=-16777216:80386<=this.ga&&(2==this.aa?b&=16777215:a|=b<<16);this.vb(this.P+2,b);this.A-=11}return a},function(a){if(this.P===g)m.call(this,6);else{a=this.Vc-this.Ob;var b= +this.Ob;80286==this.ga?b|=-16777216:80386<=this.ga&&(2==this.aa?b&=16777215:a|=b<<16);this.vb(this.P+2,b);this.A-=12}return a},function(a){this.P===g||this.T&131072?m.call(this,6):(this.Xb=this.Tb(this.P+2)&(this.C|this.C<<8),a&=65535,this.wd=this.Xb+a,this.O|=2,this.A-=11);return a},function(a){this.P===g||this.T&131072?m.call(this,6):(this.Ob=this.Tb(this.P+2)&(this.C|this.C<<8),a&=65535,this.Vc=this.Ob+a,this.O|=2,this.A-=12);return a},function(){this.A-=2+(this.P===g?0:1);return this.Aa},lg,function(a){this.T& 131072?m.call(this,6):(qe(this,a),this.A-=this.P===g?3:6,this.O|=2);return a},lg],Zg=[lg,lg,lg,lg,Oe,Re,Qe,Pe],y=[function(a){a=a.call(this,this.G&255,H(this,this.D+this.K));this.G=this.G&-256|a;this.A-=this.B.ca},function(a){a=a.call(this,this.G&255,H(this,this.D+this.I));this.G=this.G&-256|a;this.A-=this.B.da},function(a){a=a.call(this,this.G&255,I(this,this.L+this.K));this.G=this.G&-256|a;this.A-=this.B.da},function(a){a=a.call(this,this.G&255,I(this,this.L+this.I));this.G=this.G&-256|a;this.A-= this.B.ca},function(a){a=a.call(this,this.G&255,H(this,this.K));this.G=this.G&-256|a;this.A-=this.B.N},function(a){a=a.call(this,this.G&255,H(this,this.I));this.G=this.G&-256|a;this.A-=this.B.N},function(a){a=a.call(this,this.G&255,H(this,S(this)));this.G=this.G&-256|a;this.A-=this.B.ea},function(a){a=a.call(this,this.G&255,H(this,this.D));this.G=this.G&-256|a;this.A-=this.B.N},function(a){a=a.call(this,this.F&255,H(this,this.D+this.K));this.F=this.F&-256|a;this.A-=this.B.ca},function(a){a=a.call(this, this.F&255,H(this,this.D+this.I));this.F=this.F&-256|a;this.A-=this.B.da},function(a){a=a.call(this,this.F&255,I(this,this.L+this.K));this.F=this.F&-256|a;this.A-=this.B.da},function(a){a=a.call(this,this.F&255,I(this,this.L+this.I));this.F=this.F&-256|a;this.A-=this.B.ca},function(a){a=a.call(this,this.F&255,H(this,this.K));this.F=this.F&-256|a;this.A-=this.B.N},function(a){a=a.call(this,this.F&255,H(this,this.I));this.F=this.F&-256|a;this.A-=this.B.N},function(a){a=a.call(this,this.F&255,H(this, @@ -786,52 +786,52 @@ function(){return this.G},function(){return this.F},function(){return this.H},fu (this.D<<3)},function(a){return(a?(this.U=this.V,this.L):S(this))+(this.D<<3)},function(){return this.K+(this.D<<3)},function(){return this.I+(this.D<<3)},function(){return this.G},function(){return this.F},function(){return this.H},function(){return this.D},function(){this.U=this.V;return t(this)},function(a){return a?(this.U=this.V,this.L):S(this)},function(){return this.K},function(){return this.I},function(){return this.G+(this.L<<3)},function(){return this.F+(this.L<<3)},function(){return this.H+ (this.L<<3)},function(){return this.D+(this.L<<3)},function(){this.U=this.V;return t(this)+(this.L<<3)},function(a){return(a?(this.U=this.V,this.L):S(this))+(this.L<<3)},function(){return this.K+(this.L<<3)},function(){return this.I+(this.L<<3)},function(){return this.G+(this.K<<3)},function(){return this.F+(this.K<<3)},function(){return this.H+(this.K<<3)},function(){return this.D+(this.K<<3)},function(){this.U=this.V;return t(this)+(this.K<<3)},function(a){return(a?(this.U=this.V,this.L):S(this))+ (this.K<<3)},function(){return this.K+(this.K<<3)},function(){return this.I+(this.K<<3)},function(){return this.G+(this.I<<3)},function(){return this.F+(this.I<<3)},function(){return this.H+(this.I<<3)},function(){return this.D+(this.I<<3)},function(){this.U=this.V;return t(this)+(this.I<<3)},function(a){return(a?(this.U=this.V,this.L):S(this))+(this.I<<3)},function(){return this.K+(this.I<<3)},function(){return this.I+(this.I<<3)}]; -function $g(a){Ja.call(this,"ChipSet",a,$g);this.ga=(this.ga=a.model)&&ah[this.ga]||bh;this.O=0;var b=a.sw1;if(b)this.O=ch(b,dh|eh.hj);else{this.fa=[360,360];(b=a.floppies)&&b.length&&(this.fa=b);if(b=this.fa.length)this.O|=fh.xg,b--,this.O|=(b&3)<=gh&&(this.Ga=this.sa=2);this.ha=a.scaleTimers||!1;this.bb=a.rtcDate;this.Wa=!1;a.sound&& -(this.Oa=this.ta=null,window&&(this.Oa=window.AudioContext||window.webkitAudioContext),this.Oa&&(this.ta=new this.Oa));this.reset(!0);Za(this)}Ra($g);var bh=5150,gh=5170,ah={5150:bh,5160:5160,5170:gh,deskpro386:5180},hh={none:0,tv:1,color:2,mono:3,ega:0,vga:0},fh={xg:1,ONE:0,qm:64,om:128,Ul:192,ze:192,Ae:6},dh=12,eh={pm:16,Nl:32,hj:48,ze:48,Ae:4};f=$g.prototype; +function $g(a){Ja.call(this,"ChipSet",a,$g);this.ga=(this.ga=a.model)&&ah[this.ga]||bh;this.O=0;var b=a.sw1;if(b)this.O=ch(b,dh|eh.hj);else{this.fa=[360,360];(b=a.floppies)&&b.length&&(this.fa=b);if(b=this.fa.length)this.O|=fh.xg,b--,this.O|=(b&3)<=gh&&(this.Ga=this.sa=2);this.ha=a.scaleTimers||!1;this.bb=a.rtcDate;this.Wa=!1;a.sound&& +(this.Oa=this.ta=null,window&&(this.Oa=window.AudioContext||window.webkitAudioContext),this.Oa&&(this.ta=new this.Oa));this.reset(!0);Za(this)}Ra($g);var bh=5150,gh=5170,ah={5150:bh,5160:5160,5170:gh,deskpro386:5180},hh={none:0,tv:1,color:2,mono:3,ega:0,vga:0},fh={xg:1,ONE:0,rm:64,pm:128,Vl:192,ye:192,ze:6},dh=12,eh={qm:16,Ol:32,hj:48,ye:48,ze:4};f=$g.prototype; f.Hb=function(a,b,c){switch(b){case "sw1":return this.ra[b]=c,ih(this,b,c,this.O,{0:this.ga==bh?"Bootable Floppy Drive":"Loop on POST",1:this.ga==bh?"Reserved":"Coprocessor",2:"Base Memory Size",4:"Monitor Type",6:"Number of Floppy Drives"}),!0;case "sw2":if(this.ga==bh)return this.ra[b]=c,ih(this,b,c,this.ja,{0:"Expansion Memory Size",4:"Reserved"}),!0;break;case "swdesc":return this.ra[b]=c,!0}return!1}; f.uc=function(a,b,c,d){this.ma=b;this.A=c;this.Qa=d;this.xa=a;this.D=gb(a,"Keyboard");this.Ia=c.W.Sc/1193181;Jb(b,this,jh);Mb(b,this,kh);this.ga=gh){this.I=16;this.V=0;this.Y=16;this.ya=0;this.Z=160;512<=th(this)&&(this.Z|=16);3==uh(this)&&(this.Z|=64);5180==this.ga&&(this.Z|=12);this.Aa=3;this.K=Array(8);this.na= -0;a&&(this.B=Array(64));vh(this,this.bb);for(a=21;24>=a;a++)this.B[a]=0;for(a=14;46>a;a++)void 0===this.B[a]&&(this.B[a]=0);this.B[20]=this.U&(eh.ze|2|fh.xg|fh.ze);this.B[16]=wh(this,0)<<4|wh(this,1);xh(this)}}; +0;a&&(this.B=Array(64));vh(this,this.bb);for(a=21;24>=a;a++)this.B[a]=0;for(a=14;46>a;a++)void 0===this.B[a]&&(this.B[a]=0);this.B[20]=this.U&(eh.ye|2|fh.xg|fh.ye);this.B[16]=wh(this,0)<<4|wh(this,1);xh(this)}}; function vh(a,b){var c=b?new Date(b):new Date;"[object Date]"!==Object.prototype.toString.call(c)||isNaN(c.getTime())?(c=new Date,a.cc("CMOS date invalid ("+b+"), using "+c)):b&&a.cc("CMOS date: "+c);a.B[0]=c.getSeconds();a.B[1]=0;a.B[2]=c.getMinutes();a.B[3]=0;a.B[4]=c.getHours();a.B[5]=0;a.B[6]=c.getDay()+1;a.B[7]=c.getDate();a.B[8]=c.getMonth()+1;c=c.getFullYear();a.B[9]=c%100;c/=100;a.B[50]=c%10|c/10<<4;a.B[10]=38;a.B[11]=2;a.B[12]=0;a.B[13]=128;a.va=a.pa=0;a.Xa=a.Ha=null} function yh(a){var b;void 0===b&&(b=a.Ha);a.pa=vc(a.A,a.ha)+b;a.B[11]&64&&rc(a.A,b)}function xh(a){for(var b=0,c=16;46>c;c++)b+=a.B[c];a.B[47]=b&255;a.B[46]=b>>8} -f.save=function(){var a=new Vd(this);E(a,0,[this.O,this.ja,this.U,this.ka]);for(var b=[],c=0;c=gh&&(E(a,5,[this.I,this.V,this.Y,this.ya,this.Z,this.Aa]),E(a,6,[this.K[7],this.K,this.na,this.B,this.va,this.pa]));return a.data()}; f.restore=function(a){var b,c;b=a[0];this.O=b[0];this.ja=b[1];this.U=b[2];this.ka=b[3];b=a[1];for(c=0;c>2)+1)*a.ab+32*((b?a.ja:a.ka)&15)} -function Fh(a,b){var c=b?a.O:a.U;return a.ga!=bh||c&fh.xg?((c&fh.ze)>>fh.Ae)+1:0}function wh(a,b){if(b>eh.Ae} +b[3],this.va=b[4],this.pa=b[5],vh(this);return!0};var zh=[0,null,null,0,Array(4)];function qh(a,b,c){var d=a.F[b];d||(d={Fb:Array(4)});c=c&&5==c.length?c:zh;d.Bc=c[0];d.Dg=c[1];d.vi=c[2];d.Gb=c[3];d.Ek=b<<2;for(var e=0;e>2)+1)*a.ab+32*((b?a.ja:a.ka)&15)} +function Fh(a,b){var c=b?a.O:a.U;return a.ga!=bh||c&fh.xg?((c&fh.ye)>>fh.ze)+1:0}function wh(a,b){if(b>eh.ze} function ih(a,b,c,d,e){for(var k="",l=1;8>=l;l++){var p="pcjs-bitCell";l||(p+=" pcjs-bitCellLeft");k+='
'+l+"
\n"}c.innerHTML=k;b=Xa(c,"pcjs-bitCell");c=null;for(l=0;ld.gb[0]&&(d.gb[0]=255,d.gb[1]--,0>d.gb[1]&&(d.gb[1]=255)));return e}function Kh(a,b,c,d){a=a.F[b];c=a.Fb[c];c.gb[a.Gb]=c.Wb[a.Gb]=d;a.Gb^=1} -function Lh(a,b){var c=a.F[b],d=c.Bc|1;c.Bc&=-16;return d}function Mh(a,b,c){a=a.F[b];b=c&3;a.Bc=a.Bc&~(16<>2].Fb[b&3],c,d,e)} +function Lh(a,b){var c=a.F[b],d=c.Bc|1;c.Bc&=-16;return d}function Mh(a,b,c){a=a.F[b];b=c&3;a.Bc=a.Bc&~(16<>2].Fb[b&3],c,d,e)} function Oh(a,b,c){b=a.F[b>>2].Fb[b&3];b.qf&&b.Mg&&b.jg?(c&&(b.done=c),b.cd||De(a,b,!0)):c&&c(!0)}function De(a,b,c){c&&(b.count=b.gb[1]<<8|b.gb[0],b.type=b.mode&12,b.Ki=b.Rc=!1);for(var d=!1;0<=b.count&&(c=b.kf<<16|b.fb[1]<<8|b.fb[0],4==b.type?(d=!0,function(c){b.Mg.call(b.qf,b.jg,-1,function(k,l){0>k&&(b.Ki||(b.Ki=!0),k=255);b.cd||a.ma.Gc(c,k);(d=l)&&setTimeout(function(){Xh(b)||De(a,b)},0)})}(c)):8==b.type?(c=a.ma.Sb(c),0>b.Mg.call(b.qf,b.jg,c)&&(b.Rc=!0)):0!=b.type&&(b.Rc=!0)),!d&&!Xh(b););} -function Xh(a){if(!a.Rc&&0<=--a.count&&(a.mode&32?(a.fb[0]--,0>a.fb[0]&&(a.fb[0]=255,a.fb[1]--,0>a.fb[1]&&(a.fb[1]=255))):(a.fb[0]++,255a.fb[0]&&(a.fb[0]=255,a.fb[1]--,0>a.fb[1]&&(a.fb[1]=255))):(a.fb[0]++,255>3];b=1<<(b&7);d.Nb&b||(d.Nb|=b,d.Ne=c||0,$h(a))}function ci(a,b){var c=a.Ub[b>>3],d=1<<(b&7);c.Nb&d&&(c.Nb&=~d,$h(a))} -function $h(a,b){var c,d=-1;1>=1),rc(a.A,c))),2==b&&wc(a))}f=$g.prototype;f.jk=function(){return this.Ea}; -f.vl=function(a,b){this.Ea=b;var c=b&192;if(192==c){if(!(b&16))for(c=0;2>=c;c++)if(b&2<=c;c++)b&2<>6,d=b&1,e=b&14,k=b&48;if(0==k)ii(this,c);else{var l=c,p=this.L[l];p.Ye=k;p.mode=e;p.Fg=d;p.Wb=[0,0];p.gb=[0,0];p.Dd=[0,0];p.Ic=!1;p.Ud=!1;p.Fd=!1;p.Zd=!1;ei(this,l);0==c&&ci(this,0);2==c&&255==this.Ub[0].Oc&&77==this.T&&(c=this.L[0],c.rc[0]=c.Wb[0],c.rc[1]= -c.Wb[1],c.dd=vc(this.A,this.ha))}}};function hi(a,b){var c=a.L[b],d=c.Wb[1]<<8|c.Wb[0];d||(d=1==c.bd?256:65536);return d}function yc(a,b){var c=a.L[b],d=c.rc[1]<<8|c.rc[0];d||(d=1==c.bd?256:65536);return d}function ii(a,b){fi(a,b);var c=a.L[b];c.Dd[0]=c.gb[0];c.Dd[1]=c.gb[1];c.Ud=!0;ei(a,b)}function ei(a,b){var c=a.L[b];c.Qc=32==c.Ye?1:0;c.bd=48==c.Ye?2:1} -function fi(a,b,c){var d=a.L[b];if(d.Fd&&(2!=b||a.T&1)){var e=vc(a.A,a.ha),k=(e-d.dd)/a.Ia|0;0>k&&(d.dd=e,k=0);var l=hi(a,b),p=yc(a,b)-k;0==d.mode?(0>=p&&(p=0),p||(d.Ic=!0,d.Fd=!1,b||bi(a,0))):4==d.mode?(d.Ic=1!=p,0>=p&&(p=l+p,0>=p&&(p=l),d.rc[0]=p&255,d.rc[1]=p>>8&255,d.dd=e,!b&&d.Ic&&bi(a,0))):6==d.mode&&(p-=k,0>=p&&(d.Ic=!d.Ic,p=l+p,0>=p&&(p=l),d.rc[0]=p&255,d.rc[1]=p>>8&255,d.dd=e,!b&&d.Ic&&bi(a,0)));d.gb[0]=p&255;d.gb[1]=p>>8&255;c&&(a.dd=0)}return d} +function $h(a,b){var c,d=-1;1>=1),rc(a.A,c))),2==b&&wc(a))}f=$g.prototype;f.kk=function(){return this.Ea}; +f.wl=function(a,b){this.Ea=b;var c=b&192;if(192==c){if(!(b&16))for(c=0;2>=c;c++)if(b&2<=c;c++)b&2<>6,d=b&1,e=b&14,k=b&48;if(0==k)ii(this,c);else{var l=c,p=this.L[l];p.Ye=k;p.mode=e;p.Fg=d;p.Wb=[0,0];p.gb=[0,0];p.Cd=[0,0];p.Ic=!1;p.Td=!1;p.Ed=!1;p.Yd=!1;ei(this,l);0==c&&ci(this,0);2==c&&255==this.Ub[0].Oc&&77==this.T&&(c=this.L[0],c.rc[0]=c.Wb[0],c.rc[1]= +c.Wb[1],c.dd=vc(this.A,this.ha))}}};function hi(a,b){var c=a.L[b],d=c.Wb[1]<<8|c.Wb[0];d||(d=1==c.bd?256:65536);return d}function yc(a,b){var c=a.L[b],d=c.rc[1]<<8|c.rc[0];d||(d=1==c.bd?256:65536);return d}function ii(a,b){fi(a,b);var c=a.L[b];c.Cd[0]=c.gb[0];c.Cd[1]=c.gb[1];c.Td=!0;ei(a,b)}function ei(a,b){var c=a.L[b];c.Qc=32==c.Ye?1:0;c.bd=48==c.Ye?2:1} +function fi(a,b,c){var d=a.L[b];if(d.Ed&&(2!=b||a.T&1)){var e=vc(a.A,a.ha),k=(e-d.dd)/a.Ia|0;0>k&&(d.dd=e,k=0);var l=hi(a,b),p=yc(a,b)-k;0==d.mode?(0>=p&&(p=0),p||(d.Ic=!0,d.Ed=!1,b||bi(a,0))):4==d.mode?(d.Ic=1!=p,0>=p&&(p=l+p,0>=p&&(p=l),d.rc[0]=p&255,d.rc[1]=p>>8&255,d.dd=e,!b&&d.Ic&&bi(a,0))):6==d.mode&&(p-=k,0>=p&&(d.Ic=!d.Ic,p=l+p,0>=p&&(p=l),d.rc[0]=p&255,d.rc[1]=p>>8&255,d.dd=e,!b&&d.Ic&&bi(a,0)));d.gb[0]=p&255;d.gb[1]=p>>8&255;c&&(a.dd=0)}return d} function xc(a,b){for(var c=0;c=gh){var c=a.A.W.Sc,d=vc(a.A,a.ha);null==a.Ha&&(a.va=vc(a.A,a.ha),a.Xa=1024,a.Ha=Math.floor(a.A.W.Sc/a.Xa),yh(a));d>=a.pa&&(a.B[12]|=64,a.B[11]&64&&(a.B[12]|=128,bi(a,8)),a.pa=d+a.Ha);a.B[0]==a.B[1]&&a.B[2]==a.B[3]&&a.B[4]==a.B[5]&&(a.B[12]|=32,a.B[11]&32&&(a.B[12]|=128,bi(a,8)));var e=d-a.va,k=Math.floor(e/c);if(k&&!(a.B[11]&128)){for(;k--;)if(60<=++a.B[0]&&(a.B[0]=0,60<=++a.B[2]&&(a.B[2]=0,24<=++a.B[4]))){a.B[4]=0;a.B[6]=a.B[6]%7+1; -var l;l=a.B[9];var p=ma[a.B[8]-1];28==p&&0===l%4&&(l%100||0===l%400)&&p++;l=p;++a.B[7]>l&&(a.B[7]=1,12<++a.B[8]&&(a.B[8]=1,a.B[9]=(a.B[9]+1)%100))}a.B[12]|=16;a.B[11]&16&&(a.B[12]|=128,bi(a,8))}a.va=d-e%c}}f.kk=function(){var a=this.Fa;if(this.qa&16)if(this.T&128)a=this.U;else if(this.D){var a=this.D,b=0;a.B.length&&(b=a.B[0]);a.Sa()&&a.Ma("scan code "+ea(b)+" delivered");a=b}return a};f.wl=function(a,b){this.Fa=b};f.lk=function(){return this.T};f.xl=function(a,b){ji(this,b)}; -function ji(a,b){var c=!!(b&2),d=!!(a.T&2);a.T=b;a.D&&ki(a.D,!(b&128),!!(b&64));c!=d&&wc(a,c)}f.mk=function(){var a=0,a=this.ga==bh?this.T&4?a|this.ka&15:a|this.ka>>4&1:this.T&8?a|this.U>>4:a|this.U&15;this.T&1&&fi(this,2).Ic&&(a=this.T&2?a|32:a|16);return a};f.yl=function(a,b){this.Na=b};f.nk=function(){return this.qa};f.zl=function(a,b){this.qa=b};f.Aj=function(){var a=this.ya;this.I&=-258;this.D&&li(this.D);return a}; -f.Kk=function(a,b){if(this.I&8)switch(this.V){case 96:mi(this,b);break;case 209:ni(this,b);break;default:if(mi(this,this.Y&-17),this.D){var c=-1;switch(b){case 255:c=250,oi(this.D)}pi(this,c)}}this.V=b;this.I&=-9};f.Bj=function(){return this.T&-209|(vc(this.A)&64?16:0)};f.Lk=function(a,b){ji(this,b)};f.Cj=function(){var a=this.I&255;this.I&256&&(this.I|=1,this.I&=-257);return a}; -f.Jk=function(a,b){this.V=b;this.I|=8;var c=0;240<=this.V&&(c=this.V^15,this.V=240);switch(this.V){case 32:pi(this,this.Y);break;case 173:mi(this,this.Y|16);break;case 174:mi(this,this.Y&-17);this.D&&li(this.D);break;case 170:this.D&&(c=this.D,c.B=[],c.Sa()&&c.Ma("scan codes flushed"));mi(this,this.Y|16);pi(this,85);ni(this,3);break;case 171:pi(this,0);break;case 192:pi(this,this.Z);break;case 208:pi(this,this.Aa);break;case 224:pi(this,this.Y&16?0:1);break;case 240:c&1&&xd(this.A)}}; -function mi(a,b){a.Y=b;a.I=a.I&-5|b&4;a.D&&ki(a.D,!!(b&8),!(b&16))}function pi(a,b,c){0<=b&&(a.ya=b,c?a.I|=1:(a.I&=-2,a.I|=256))}function ni(a,b){a.Aa=b;ub(a.ma,!!(b&2));b&1||xd(a.A)}function qi(a,b){a.ga=c)if(d=this.B[c],10>c){var e=!1;4!=c&&5!=c||this.B[11]&2||(12>d?d=d?d:12:d=(d-=12)?d+128:140,e=!0);this.B[11]&4||(e&&128=c){if(e=b,10>c){var k=!1;this.B[11]&4||(e=10*(e>>4)+(e&15),k=!0);if(4==c||5==c)k&&23=e?e=12==e?0:e:(e-=116,e=24==e?12:e))}}else e=b;this.B[c]=e;11==c&&d&64&&b&64&&yh(this)};f.ul=function(a,b){this.Da=b};f.al=function(){};f.bl=function(){};function ch(a,b){if(void 0===a)return b;for(var c=0,d=1,e=0;el&&(a.B[7]=1,12<++a.B[8]&&(a.B[8]=1,a.B[9]=(a.B[9]+1)%100))}a.B[12]|=16;a.B[11]&16&&(a.B[12]|=128,bi(a,8))}a.va=d-e%c}}f.lk=function(){var a=this.Fa;if(this.qa&16)if(this.T&128)a=this.U;else if(this.D){var a=this.D,b=0;a.B.length&&(b=a.B[0]);a.Sa()&&a.Ma("scan code "+ea(b)+" delivered");a=b}return a};f.xl=function(a,b){this.Fa=b};f.mk=function(){return this.T};f.yl=function(a,b){ji(this,b)}; +function ji(a,b){var c=!!(b&2),d=!!(a.T&2);a.T=b;a.D&&ki(a.D,!(b&128),!!(b&64));c!=d&&wc(a,c)}f.nk=function(){var a=0,a=this.ga==bh?this.T&4?a|this.ka&15:a|this.ka>>4&1:this.T&8?a|this.U>>4:a|this.U&15;this.T&1&&fi(this,2).Ic&&(a=this.T&2?a|32:a|16);return a};f.zl=function(a,b){this.Na=b};f.pk=function(){return this.qa};f.Al=function(a,b){this.qa=b};f.Bj=function(){var a=this.ya;this.I&=-258;this.D&&li(this.D);return a}; +f.Lk=function(a,b){if(this.I&8)switch(this.V){case 96:mi(this,b);break;case 209:ni(this,b);break;default:if(mi(this,this.Y&-17),this.D){var c=-1;switch(b){case 255:c=250,oi(this.D)}pi(this,c)}}this.V=b;this.I&=-9};f.Cj=function(){return this.T&-209|(vc(this.A)&64?16:0)};f.Mk=function(a,b){ji(this,b)};f.Dj=function(){var a=this.I&255;this.I&256&&(this.I|=1,this.I&=-257);return a}; +f.Kk=function(a,b){this.V=b;this.I|=8;var c=0;240<=this.V&&(c=this.V^15,this.V=240);switch(this.V){case 32:pi(this,this.Y);break;case 173:mi(this,this.Y|16);break;case 174:mi(this,this.Y&-17);this.D&&li(this.D);break;case 170:this.D&&(c=this.D,c.B=[],c.Sa()&&c.Ma("scan codes flushed"));mi(this,this.Y|16);pi(this,85);ni(this,3);break;case 171:pi(this,0);break;case 192:pi(this,this.Z);break;case 208:pi(this,this.Aa);break;case 224:pi(this,this.Y&16?0:1);break;case 240:c&1&&xd(this.A)}}; +function mi(a,b){a.Y=b;a.I=a.I&-5|b&4;a.D&&ki(a.D,!!(b&8),!(b&16))}function pi(a,b,c){0<=b&&(a.ya=b,c?a.I|=1:(a.I&=-2,a.I|=256))}function ni(a,b){a.Aa=b;ub(a.ma,!!(b&2));b&1||xd(a.A)}function qi(a,b){a.ga=c)if(d=this.B[c],10>c){var e=!1;4!=c&&5!=c||this.B[11]&2||(12>d?d=d?d:12:d=(d-=12)?d+128:140,e=!0);this.B[11]&4||(e&&128=c){if(e=b,10>c){var k=!1;this.B[11]&4||(e=10*(e>>4)+(e&15),k=!0);if(4==c||5==c)k&&23=e?e=12==e?0:e:(e-=116,e=24==e?12:e))}}else e=b;this.B[c]=e;11==c&&d&64&&b&64&&yh(this)};f.vl=function(a,b){this.Da=b};f.bl=function(){};f.cl=function(){};function ch(a,b){if(void 0===a)return b;for(var c=0,d=1,e=0;ec||2E4>>4,this.L,this.F,this.O),delete this.O);return!0};si.prototype.ac=function(){return!0}; @@ -840,12 +840,12 @@ return}else for(a=b.replace(/\n/gm," ").replace(/ +$/,"").split(" "),this.B=Arra function ti(a){if(!$a(a))if(!a.K)Za(a);else if(a.B&&a.ma){if(a.B.length!=a.F)ab(a,"ROM size (0x"+da(a.B.length)+") does not match specified size ("+("0x"+da(a.F))+")");else{var b;b=a.L;if(vb(a.ma,b,a.F,Cb)){for(var c=0;c>>d.na].Ze(e&d.B,a.B[c]&255,e)}b=!0}else b=!1;if(b){b=[];"number"==typeof a.I?b.push(a.I):null!=a.I&&a.I.length&&(b=a.I);for(c=0;cthis.D?21:23,c=a.B[b]|a.B[b+1]<<8,c=c+(this.B>>10);a.B[b]=c&255;a.B[b+ +f.reset=function(){if(!this.D&&!this.I&&this.Y){var a=1024*th(this.Y);this.B&&a!=this.B&&(Bb(this.ma,this.D,this.B),this.F=!1);this.B=a}!this.F&&this.B&&vb(this.ma,this.D,this.B,1)&&(this.F=!0,this.status(Math.floor(this.B/1024)+"Kb allocated"),"ramCPQ"==this.ue&&(this.controller=new xi(this),vb(this.ma,yi,4,4,this.controller)));if(this.F){if(this.K||Ib(this.ma,1138,4660),"ramCPQ"!=this.ue&&this.Y&&(a=this.Y,a.B)){var b=1048576>this.D?21:23,c=a.B[b]|a.B[b+1]<<8,c=c+(this.B>>10);a.B[b]=c&255;a.B[b+ 1]=c>>8;xh(a)}}else ta("No RAM allocated")};f.save=function(){var a=new Vd(this);this.controller&&E(a,0,this.controller.save());return a.data()};f.restore=function(a){return this.controller?this.controller.restore(a[0]):!0};function xi(a){this.I=a;this.D=zi;this.F=Ai;this.B=Bi;this.A=null}var yi=-2134900736,zi=65535,Ai=2575,Bi=2,Ci=[null,0],Di=[function(a){return this.controller.Sb(a)},null,null,function(a,b){this.controller.Gc(a,b)},null,null];f=xi.prototype;f.save=function(){return[this.D,this.B]}; f.restore=function(a){this.Gc(0,a[0]&255);this.Gc(2,a[1]&255);return!0};f.Sb=function(a){var b=255;2>a?b=a&1?this.F>>8:this.F&255:4>a&&(b=a&1?this.B>>8:this.B&255);return b};f.Gc=function(a,b){if(a)2==a&&(this.B=this.B&-256|b);else if(b!=(this.D&255)){var c=this.I.ma;if(b&1)this.A&&(yb(c,917504,131072,this.A),this.A=null);else{this.A||(this.A=zb(c,917504,131072));var d=zb(c,16646144,131072);yb(c,917504,131072,d,b&2?1:Cb)}this.D=this.D&-256|b}};f.Mi=function(){return Ci};f.Ng=function(){return Di}; Fa(function(){for(var a=Xa(window.document,"pcjs","ram"),b=0;b":62,"?":63,"@":64,Kl:65,Ll:66,Ml:67,Rl:68,E:69,Sl:70,Vl:71,Wl:72,Xl:73,Yl:74,Zl:75,$l:76,am:77,bm:78,cm:79,dm:80,Q:81,em:82,im:83,nm:84,rm:85,sm:86,tm:87,vm:88,wm:89,xm:90,"[":91,"\\":92,"]":93,"^":94,_:95,"`":96,ym:97,zm:98,Cm:99,d:100,e:101,Dm:102,Em:103,Fm:104,Gm:105,Hm:106,k:107,Im:108, -Jm:109,n:110,Lm:111,p:112,q:113,r:114,Mm:115,t:116,Nm:117,Om:118,Pm:119,x:120,y:121,z:122,"{":123,"|":124,"}":125,"~":126},Fi={};Fi[186]=W[";"];Fi[187]=W["="];Fi[188]=W[","];Fi[189]=W["-"];Fi[190]=W["."];Fi[191]=W["/"];Fi[192]=W["`"];Fi[219]=W["["];Fi[220]=W["\\"];Fi[221]=W["]"];Fi[222]=W["'"];Fi[173]=W["-"];var Gi={};Gi[W["1"]]=W["!"];Gi[W["2"]]=W["@"];Gi[W["3"]]=W["#"];Gi[W["4"]]=W.$;Gi[W["5"]]=W["%"];Gi[W["6"]]=W["^"];Gi[W["7"]]=W["&"];Gi[W["8"]]=W["*"];Gi[W["9"]]=W["("];Gi[W["0"]]=W[")"]; +var W={Pl:1,Ql:3,Rl:26," ":32,"!":33,'"':34,"#":35,$:36,"%":37,"&":38,"'":39,"(":40,")":41,"*":42,"+":43,",":44,"-":45,".":46,"/":47,0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,":":58,";":59,"<":60,"=":61,">":62,"?":63,"@":64,Ll:65,Ml:66,Nl:67,Sl:68,E:69,Tl:70,Wl:71,Xl:72,Yl:73,Zl:74,$l:75,am:76,bm:77,cm:78,dm:79,em:80,Q:81,fm:82,jm:83,om:84,sm:85,tm:86,um:87,wm:88,xm:89,ym:90,"[":91,"\\":92,"]":93,"^":94,_:95,"`":96,zm:97,Am:98,Dm:99,d:100,e:101,Em:102,Fm:103,Gm:104,Hm:105,Im:106,k:107,Jm:108, +Km:109,n:110,Mm:111,p:112,q:113,r:114,Nm:115,t:116,Om:117,Pm:118,Qm:119,x:120,y:121,z:122,"{":123,"|":124,"}":125,"~":126},Fi={};Fi[186]=W[";"];Fi[187]=W["="];Fi[188]=W[","];Fi[189]=W["-"];Fi[190]=W["."];Fi[191]=W["/"];Fi[192]=W["`"];Fi[219]=W["["];Fi[220]=W["\\"];Fi[221]=W["]"];Fi[222]=W["'"];Fi[173]=W["-"];var Gi={};Gi[W["1"]]=W["!"];Gi[W["2"]]=W["@"];Gi[W["3"]]=W["#"];Gi[W["4"]]=W.$;Gi[W["5"]]=W["%"];Gi[W["6"]]=W["^"];Gi[W["7"]]=W["&"];Gi[W["8"]]=W["*"];Gi[W["9"]]=W["("];Gi[W["0"]]=W[")"]; Gi[186]=W[":"];Gi[187]=W["+"];Gi[188]=W["<"];Gi[189]=W._;Gi[190]=W[">"];Gi[191]=W["?"];Gi[192]=W["~"];Gi[219]=W["{"];Gi[220]=W["|"];Gi[221]=W["}"];Gi[222]=W['"'];Gi[173]=W._;Gi[61]=W["+"];Gi[59]=W[":"]; var Hi={3016:1,1016:2,1017:8,1018:32,1091:128,1093:64,1224:128,1020:512,1144:1024,1145:2048},Ii={TAB:1009,ESC:1027,F1:1112,F2:1113,F3:1114,F4:1115,F5:1116,F6:1117,F7:1118,F8:1119,F9:1120,F10:1121,LEFT:1037,UP:1038,RIGHT:1039,DOWN:1040,CTRL_C:4003,CTRL_BREAK:4008,CTRL_ALT_DEL:4046},Ji={esc:1027,1:W["1"],2:W["2"],3:W["3"],4:W["4"],5:W["5"],6:W["6"],7:W["7"],8:W["8"],9:W["9"],0:W["0"],"-":W["-"],"=":W["="],bs:1008,tab:1009,q:81,w:87,e:69,r:82,t:84,y:89,u:85,i:73,o:79,p:80,"[":W["["],"]":W["]"],enter:13, ctrl:1017,a:65,s:83,d:68,f:70,g:71,h:72,j:74,k:75,l:76,";":W[";"],quote:W["'"],"`":W["`"],shift:1016,"\\":W["\\"],z:90,x:88,c:67,v:86,b:66,n:78,m:77,",":W[","],".":W["."],"/":W["/"],"right-shift":3016,prtsc:1044,alt:1018,space:W[" "],"caps-lock":1020,f1:1112,f2:1113,f3:1114,f4:1115,f5:1116,f6:1117,f7:1118,f8:1119,f9:1120,f10:1121,"num-lock":1144,"scroll-lock":1145,"num-home":1036,"num-up":1038,"num-pgup":1033,"num-sub":1109,"num-left":1037,"num-center":1101,"num-right":1039,"num-add":1107,"num-end":1035, @@ -859,178 +859,178 @@ c.onmouseout=b),!0}return!1};function Pi(a,b,c){if(a.P){for(var d in Gi)if(b==Gi function ki(a,b,c){a.L!==c&&(a.L=a.O=c)&&(a.I=!0);a.K!==b&&(a.K=b)&&!a.O&&ri(a,!0);a.K&&a.O&&(oi(a,!0),a.O=!1)}function li(a){var b=0;a.B.length&&a.I&&(b=a.B[0],a.Y&&qi(a.Y,b));a.Sa()&&a.Ma("scan code "+ea(b)+" available")}function ri(a,b){0>=1);if(b&3584){if(!1===d)return!0;d=null}null==d?d=!((c?a.F:a.Pb)&b):d||b&255&&(b=255);if(c){a.F&=~b;d&&(a.F|=b);c=b;var k,l;for(l in Ki)d="led-"+l,e=Ki[l],c&&c!=e||!(k=a.ra[d])||(k.style.backgroundColor=a.F&e?"#00ff00":"#000000")}else a.Pb&=~b,d&&(a.Pb|=b);return!0}}return!1} -function Mi(a,b,c){if(X[b]&&a.A&&a.A.ia.Kb){Hi[b]&&a.D.length&&0e||(e==a.D.length&&(d={},d.Md=b,d.Pb=a.Pb,Pi(a,b,!0),e++),0b.Tc){if(!b.Ge){Oi(a,b.Md);return}b.Ge=!1;c=a.ga}else c=1==b.Tc++?500:100;b.bj=setTimeout(function(a){return function(){Ri(a,b)}}(a),c)}}else Oi(a,b.Md,!0)} +function Mi(a,b,c){if(X[b]&&a.A&&a.A.ia.Kb){Hi[b]&&a.D.length&&0e||(e==a.D.length&&(d={},d.Ld=b,d.Pb=a.Pb,Pi(a,b,!0),e++),0b.Tc){if(!b.Ge){Oi(a,b.Ld);return}b.Ge=!1;c=a.ga}else c=1==b.Tc++?500:100;b.aj=setTimeout(function(a){return function(){Ri(a,b)}}(a),c)}}else Oi(a,b.Ld,!0)} function Ti(a,b,c){var d=b;if(65<=b&&90>=b)!(a.Pb&515)==c&&(d=b+32);else if(97<=b&&122>=b)!!(a.Pb&515)==c&&(d=b-32);else if(!!(a.Pb&3)==c){if(a=Gi[b])d=a}else if(a=Fi[b])d=a;return d}f.kg=function(a){a||(this.Pb&=-256)}; function Li(a,b,c){var d=!0,e=!1,k=!1,l=b.keyCode,p=Ti(a,l,!0);a.Kg&&p==W["`"]&&(l=p=27);if(X[l+1E3])if(p+=1E3,2==b.location&&(p+=2E3),Ni(a,p,!1,c)){if(20==l||144==l||145==l)a.V||(c=e=!0);if(!(c||91!=l&&93!=l))for(var q=0;q=b||97<=b&&122>=b;d>>>=8;){var l=0,p=d&255;224==k||225==k?e.push(k|(c?0:128)):(42==p?a.F&3||a.F&512&&b||(l=p):29==p?a.F&12||(l=p):56==p?a.F&48||(l=p):e.push(k|(c?0:128)),l&&(c?e.unshift(l):e.push(l|128)))}for(c=0;cd.B.length?(d.Sa()&&d.Ma("scan code "+ea(k)+" buffered"),d.B.push(k),1==d.B.length&&d.Y&&qi(d.Y,k)):(20== d.B.length&&d.B.push(255),d.Ma("scan code buffer overflow")))}}Fa(function(){for(var a=Xa(window.document,"pcjs","keyboard"),b=0;bc.length)c=[!1,0,null,null,0,Array(5>b?lj:mj)];this.hb=b;this.cb=e[2];this.Eb=e[3];this.Pc=d||e[4];65536<=this.Pc&&720896<=this.cb&&(this.Eb=Math.min(this.Pc>>2,32768));this.Rb=c[0];this.yc=c[1];this.We=c[2];this.wa=c[3];this.kc=c[4]&255;this.qg=c[4]>>8&255;this.eb=c[5];this.Rg=lj;if(5<=b){this.Rg=mj;b=c[6];void 0===b&&(b=[!1,0,Array(20),0,3==k?0:1,0,0,Array(5),0,0,0,Array(9),0,[this.cb,this.Eb,this.Pc], -Array(this.Pc>>2),-2147478512,0,-1,0,-1,0,-1,0,0,0,0,1,255,0,0,0,Array(256)]);this.nd=b[0];this.Kd=b[1];this.xc=b[2];this.ei=b[3];this.Xe=b[4];this.sg=b[5];this.oe=b[6];this.ne=b[7];this.Xi=b[8];this.Yi=b[9];this.me=b[10];this.vd=b[11];this.kb=b[12];d=b[13];"number"==typeof d&&(d=[this.cb,this.Eb,d]);this.cb=d[0];this.Eb=d[1];d=this.Pc>>2;if((this.jd=b[14])&&this.jd.length>2),-2147478512,0,-1,0,-1,0,-1,0,0,0,0,1,255,0,0,0,Array(256)]);this.Ee=b[0];this.Jd=b[1];this.xc=b[2];this.ei=b[3];this.Xe=b[4];this.sg=b[5];this.ne=b[6];this.me=b[7];this.Wi=b[8];this.Xi=b[9];this.le=b[10];this.ud=b[11];this.kb=b[12];d=b[13];"number"==typeof d&&(d=[this.cb,this.Eb,d]);this.cb=d[0];this.Eb=d[1];d=this.Pc>>2;if((this.jd=b[14])&&this.jd.length>this.controller.$h&255};oj[17408]=function(a){return(this.controller.kb=this.ba[(a&-4)+this.B])>>((a&3)<<3)&255};oj[5120]=function(a){a+=this.B;var b=this.controller.kb=this.ba[a&-2];return(a&1?b>>8:b)&255}; -oj[1280]=function(a){a+=this.B;a=this.controller.kb=this.ba[a];for(var b=this.controller.Tg,c=this.controller.Sg&b,d=0,e=128;e;)(a&b)==c&&(d|=e),c>>>=1,b>>>=1,e>>=1;return d};oj[0]=function(a,b){var c=a+this.B,d;d=(b|b<<8|b<<16|b<<24)&this.controller.fd|this.controller.ud;d=d&this.controller.ob|this.controller.kb&~this.controller.ob;d=d&this.controller.$a|this.ba[c]&~this.controller.$a;this.ba[c]!=d&&(this.ba[c]=d,this.Pa=!0)}; -oj[32]=function(a,b){var c=a+this.B;b=b>>this.controller.vc|b<<8-this.controller.vc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.fd|this.controller.ud;d=d&this.controller.ob|this.controller.kb&~this.controller.ob;d=d&this.controller.$a|this.ba[c]&~this.controller.$a;this.ba[c]!=d&&(this.ba[c]=d,this.Pa=!0)}; -oj[96]=function(a,b){var c=a+this.B;b=b>>this.controller.vc|b<<8-this.controller.vc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.fd|this.controller.ud;d&=this.controller.kb;d=d&this.controller.ob|this.controller.kb&~this.controller.ob;d=d&this.controller.$a|this.ba[c]&~this.controller.$a;this.ba[c]!=d&&(this.ba[c]=d,this.Pa=!0)}; -oj[160]=function(a,b){var c=a+this.B;b=b>>this.controller.vc|b<<8-this.controller.vc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.fd|this.controller.ud;d|=this.controller.kb;d=d&this.controller.ob|this.controller.kb&~this.controller.ob;d=d&this.controller.$a|this.ba[c]&~this.controller.$a;this.ba[c]!=d&&(this.ba[c]=d,this.Pa=!0)}; -oj[224]=function(a,b){var c=a+this.B;b=b>>this.controller.vc|b<<8-this.controller.vc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.fd|this.controller.ud;d^=this.controller.kb;d=d&this.controller.ob|this.controller.kb&~this.controller.ob;d=d&this.controller.$a|this.ba[c]&~this.controller.$a;this.ba[c]!=d&&(this.ba[c]=d,this.Pa=!0)};oj[4]=function(a,b){var c=(a&-4)+this.B,d=(a&3)<<3,d=b<>>=1,b>>>=1,e>>=1;return d};oj[0]=function(a,b){var c=a+this.B,d;d=(b|b<<8|b<<16|b<<24)&this.controller.fd|this.controller.td;d=d&this.controller.ob|this.controller.kb&~this.controller.ob;d=d&this.controller.$a|this.ba[c]&~this.controller.$a;this.ba[c]!=d&&(this.ba[c]=d,this.Pa=!0)}; +oj[32]=function(a,b){var c=a+this.B;b=b>>this.controller.vc|b<<8-this.controller.vc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.fd|this.controller.td;d=d&this.controller.ob|this.controller.kb&~this.controller.ob;d=d&this.controller.$a|this.ba[c]&~this.controller.$a;this.ba[c]!=d&&(this.ba[c]=d,this.Pa=!0)}; +oj[96]=function(a,b){var c=a+this.B;b=b>>this.controller.vc|b<<8-this.controller.vc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.fd|this.controller.td;d&=this.controller.kb;d=d&this.controller.ob|this.controller.kb&~this.controller.ob;d=d&this.controller.$a|this.ba[c]&~this.controller.$a;this.ba[c]!=d&&(this.ba[c]=d,this.Pa=!0)}; +oj[160]=function(a,b){var c=a+this.B;b=b>>this.controller.vc|b<<8-this.controller.vc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.fd|this.controller.td;d|=this.controller.kb;d=d&this.controller.ob|this.controller.kb&~this.controller.ob;d=d&this.controller.$a|this.ba[c]&~this.controller.$a;this.ba[c]!=d&&(this.ba[c]=d,this.Pa=!0)}; +oj[224]=function(a,b){var c=a+this.B;b=b>>this.controller.vc|b<<8-this.controller.vc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.fd|this.controller.td;d^=this.controller.kb;d=d&this.controller.ob|this.controller.kb&~this.controller.ob;d=d&this.controller.$a|this.ba[c]&~this.controller.$a;this.ba[c]!=d&&(this.ba[c]=d,this.Pa=!0)};oj[4]=function(a,b){var c=(a&-4)+this.B,d=(a&3)<<3,d=b<>this.controller.vc|b<<8-this.controller.vc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.ob;d=this.controller.Re&d|this.controller.kb&~d;d=d&this.controller.$a|this.ba[c]&~this.controller.$a;this.ba[c]!=d&&(this.ba[c]=d,this.Pa=!0)}; -function pj(a){var b=[];if(void 0!==a.hb){b[0]=a.Rb;b[1]=a.yc;b[2]=a.We;b[3]=a.wa;b[4]=a.kc|a.qg<<8;b[5]=a.eb;if(5<=a.hb){var c=[];c[0]=a.nd;c[1]=a.Kd;c[2]=a.xc;c[3]=a.ei;c[4]=a.Xe;c[5]=a.sg;c[6]=a.oe;c[7]=a.ne;c[8]=a.Xi;c[9]=a.Yi;c[10]=a.me;c[11]=a.vd;c[12]=a.kb;c[13]=[a.cb,a.Eb,a.Pc];var d;a:if(d=a.jd){var e=0,k=[];if(void 0!==d[0])for(var l=0;2>l;l++)for(var p=l;p>1;k[e++]=q;p=w}if(k.lengthl;l++)for(var p=l;p>1;k[e++]=q;p=w}if(k.lengthc&&(a=Math.round(c/b*100)+"%")}this.Kc?(this.ha.style.width=a,this.ha.style.width=a,this.ha.style.display="block",this.ha.style.margin="auto"):(this.V.style.width=a,this.V.style.height="auto");this.V.style.backgroundColor="black";this.V.Td();a=!0}this.Zc()}return a}; -function Zi(a,b){!b&&a.V&&(a.Kc?a.ha.style.width=a.ha.style.height="":a.V.style.width=a.V.style.height="");a.Ma("notifyFullScreen("+b+")",!0);a.D&&(a.D.Kg=b)}f.Gd=function(a){var b=!1;this.K&&(a?this.K.Gd&&(this.K.Gd(),this.P&&this.P.Te(!0),b=!0):this.K.cj&&(this.K.cj(),this.P&&this.P.Te(!1),b=!0),this.Zc());return b};f.Te=function(a){this.P&&(this.P.Te(a),this.D&&(this.D.Kg=a));var b=this.ra.lockPointer;b&&(b.textContent=a?"Press Esc to Unlock Pointer":this.Ad)}; +f.uc=function(a,b,c,d){this.ma=b;this.A=c;this.Qa=d;3!=Ui[this.ga]&&(Jb(b,this,qj),Mb(b,this,rj));Ui[this.ga]!=Vi&&(Jb(b,this,sj),Mb(b,this,tj));5<=this.hb&&(Jb(b,this,uj),Mb(b,this,vj));this.hb==vi&&(Jb(b,this,wj),Mb(b,this,xj));if((this.D=gb(a,"Keyboard"))&&this.ha){for(var e in this.ra)0c&&(a=Math.round(c/b*100)+"%")}this.Kc?(this.ha.style.width=a,this.ha.style.width=a,this.ha.style.display="block",this.ha.style.margin="auto"):(this.V.style.width=a,this.V.style.height="auto");this.V.style.backgroundColor="black";this.V.Sd();a=!0}this.Zc()}return a}; +function Zi(a,b){!b&&a.V&&(a.Kc?a.ha.style.width=a.ha.style.height="":a.V.style.width=a.V.style.height="");a.Ma("notifyFullScreen("+b+")",!0);a.D&&(a.D.Kg=b)}f.Fd=function(a){var b=!1;this.K&&(a?this.K.Fd&&(this.K.Fd(),this.P&&this.P.Te(!0),b=!0):this.K.bj&&(this.K.bj(),this.P&&this.P.Te(!1),b=!0),this.Zc());return b};f.Te=function(a){this.P&&(this.P.Te(a),this.D&&(this.D.Kg=a));var b=this.ra.lockPointer;b&&(b.textContent=a?"Press Esc to Unlock Pointer":this.zd)}; function yj(a,b){var c=a.K;c&&!a.gc&&(c.addEventListener("touchstart",function(b){zj(a,b,!0)},!1),c.addEventListener("touchmove",function(b){zj(a,b)},!0),c.addEventListener("touchend",function(b){zj(a,b,!1)},!1),a.gc=b,a.ab=a.bb=a.Wc=-1)}f.kg=function(a){this.Dc=a;this.D&&this.D.kg(a)}; function zj(a,b,c){var d,e;a.Dc&&b.preventDefault();var k=0,l=0;e=a.ha;do isNaN(e.offsetLeft)||(k+=e.offsetLeft,l+=e.offsetTop);while(e=e.offsetParent);var p=a.ka/a.ha.offsetWidth,q=a.sa/a.ha.offsetHeight;b.targetTouches&&b.targetTouches.length?(d=b.targetTouches[0].pageX,e=b.targetTouches[0].pageY):(d=b.pageX,e=b.pageY);d=(d-k)*p;e=(e-l)*q;if(1==a.gc)d=d/(a.ka/3)|0,e=e/(a.sa/3)|0,1!=e?e?Mi(a.D,1040,!0):Mi(a.D,1038,!0):1!=d&&(d?Mi(a.D,1039,!0):Mi(a.D,1037,!0));else if(a.P){!0===c&&(a.Wc=b.timeStamp); if(!1===c&&(b=b.timeStamp-a.Wc,a.cc("processTouchEvent(false,"+b+")"),200>b)){a.P.pf(Aj,!0);a.P.pf(Aj,!1);return}if(c||0>a.ab||0>a.bb)a.ab=d,a.bb=e;c=Math.round(d-a.ab);b=Math.round(e-a.bb);a.ab=d;a.bb=e;a.P.Pg(c,b,a.ab,a.bb)}}f.bc=function(a,b){if(!b)if(!a||!this.restore)this.reset();else if(!this.restore(a))return!1;return!0};f.ac=function(a){return a&&this.save?this.save():!0}; f.reset=function(){var a=!0,b=0;this.Y&&(b=uh(this.Y));this.ga||(this.hb=3==b?Vi:3);this.na=3;switch(this.hb){case vi:b=7;break;case 5:var c=aj[this.pb];c&&(b=c[0]);b||(b=4);break;case Vi:b=3;this.na=Xi;break;default:b=2}this.pa!==b&&(this.pa=b,a=!0);this.I=null;this.ja=this.Ib=new jj(this,Vi);this.T=this.Ab=new jj(this,3);5>this.hb?this.B=new jj:(this.B=new jj(this,this.hb,null,this.Pc),Bj(this));Cj(this);this.Fa=null;this.Ga=this.fa=-1;this.Aa=0;Dj(this,this.na);if(this.I.cb&&a){a=this.I.cb+this.Ua; for(b=this.I.cb;b>1&255,d=d>>8&-129,d>>4==(d&15)&&(d^=15)):(c=d&255,d=(d&256?7:112)|8&d>>8);Ib(this.ma,b,c|d<<8)}nc(this,!0)}};function Bj(a){a.B.Xe&1?(a.ja=a.Ib,a.T=a.B):(a.ja=a.B,a.T=a.Ab)}f.save=function(){var a=new Vd(this);E(a,0,pj(this.Ib));E(a,1,pj(this.Ab));E(a,2,[this.pa,this.na,this.Fa]);E(a,3,pj(this.B));return a.data()}; f.restore=function(a){var b=a[2];this.pa=b[0];this.na=b[1];this.Fa=b[2];this.I=null;this.ja=this.Ib=new jj(this,Vi,a[0]);this.T=this.Ab=new jj(this,3,a[1]);this.B=new jj(this,this.hb,a[3],this.Pc);this.B.Rb&&Bj(this);Cj(this);if(!Ej(this))return!1;Fj(this);return!0}; -f.Hk=function(a,b,c){if(c)this.Ja("Unable to load font ROM image (error "+c+")");else{try{var d=eval("("+b+")");if(!d.length){ta("Empty font ROM image: "+a);return}if(1==d.length){ta(d[0]);return}if(8192==d.length)ui(this,d,[6144,0]);else{this.Ja("Unrecognized font data length ("+d.length+")");return}}catch(e){this.Ja("Font ROM data error: "+e.message);return}(this.Z||this.Qa)&&Za(this)}}; -function Gj(a,b){if(1==b)return a.qa[0]=dj[0],a.qa[1]=dj[7],a.qa;if(2==b){var c=a.I.We;if(a.I===a.B){var d=a.B.xc[0],c=d&7;d&16&&(c|=8);18!=a.B.xc[1]&&(c|=32)}a.qa[0]=dj[c&15];c=c&32?fj:ej;for(d=0;dk;k++)l=d[k]||0,p=l<<2&252,q=l>>4&252,l=l>>10&252,a.qa[k]=[p,q,l,255];else{var w=d&&d[255];e=null!=c.xc[15]?c.xc:gj;for(k=0;16>k;k++)l=e[k]&63,w?(l|= +f.Ik=function(a,b,c){if(c)this.Ja("Unable to load font ROM image (error "+c+")");else{try{var d=eval("("+b+")");if(!d.length){ta("Empty font ROM image: "+a);return}if(1==d.length){ta(d[0]);return}if(8192==d.length)ui(this,d,[6144,0]);else{this.Ja("Unrecognized font data length ("+d.length+")");return}}catch(e){this.Ja("Font ROM data error: "+e.message);return}(this.Z||this.Qa)&&Za(this)}}; +function Gj(a,b){if(1==b)return a.qa[0]=dj[0],a.qa[1]=dj[7],a.qa;if(2==b){var c=a.I.We;if(a.I===a.B){var d=a.B.xc[0],c=d&7;d&16&&(c|=8);18!=a.B.xc[1]&&(c|=32)}a.qa[0]=dj[c&15];c=c&32?fj:ej;for(d=0;dk;k++)l=d[k]||0,p=l<<2&252,q=l>>4&252,l=l>>10&252,a.qa[k]=[p,q,l,255];else{var w=d&&d[255];e=null!=c.xc[15]?c.xc:gj;for(k=0;16>k;k++)l=e[k]&63,w?(l|= (c.xc[20]&12)<<4,c.xc[16]&128&&(l&=-49,l|=(c.xc[20]&3)<<4),l=d[l],p=l<<2&252,q=l>>4&252,l=l>>10&252):(p=(l&4?170:0)|(l&32?85:0),q=(l&2?170:0)|(l&16?85:0),l=(l&1?170:0)|(l&8?85:0)),a.qa[k]=[p,q,l,255]}a.Ea=!0}return a.qa}function ui(a,b,c,d){a.lb=b;a.Jb=c;a.Sa=d} -function Cj(a,b){var c=!1;if(window&&a.lb&&(!b||a.L)){var d=0,e=a.Sa?a.Sa:8,k=Gj(a);Hj(a,3,a.Jb[0],d,e,8,a.lb,k)&&(c=!0);d=a.Sa?0:2048;e=a.Sa?a.Sa:9;Hj(a,1,a.Jb[1],d,e,14,a.lb,bj,cj)&&(c=!0);a.Sa&&Hj(a,a.hb,a.Jb[1],0,a.Sa,14,a.lb,k)&&(c=!0)}return c}function Hj(a,b,c,d,e,k,l,p,q){var w=!1;null!=c&&(Ij(a,b,c,d,e,k,l,p,q)&&(w=!0),a.xd&&Ij(a,b<<1,c,d,e,k,l,p,q)&&(w=!0));return w} -function Ij(a,b,c,d,e,k,l,p,q){var w=!1,C=b&1?0:1,G=a.ya[b],D=16>p.length?p.length:16;G||(G={mc:e<na||!ia?na:8,bf=Qh.createImageData(w.mc,w.nc),ob=0;256>ob;ob++){for(Lb= -0;Lb=na-2,ll=Wb[Lb>(8<=tc&&192<=ob&&223>=ob?7:tc)?R:jl;Jj(bf,Rh,Sh,Th);U&&Jj(bf,Rh+1,Sh,Th)}Qh.putImageData(bf,(ob&15)*w.mc,(ob>>4)*w.nc)}w.Od[V]="#"+da(R[0],2)+da(R[1],2)+da(R[2],2);w.pi[V]=R;w.Cg[V]=Pd;w=!0}}a.ya[b]=G;return w}function Kj(a){0a.Ga&&(a.Ga=0):a.Ga=-1} +function Cj(a,b){var c=!1;if(window&&a.lb&&(!b||a.L)){var d=0,e=a.Sa?a.Sa:8,k=Gj(a);Hj(a,3,a.Jb[0],d,e,8,a.lb,k)&&(c=!0);d=a.Sa?0:2048;e=a.Sa?a.Sa:9;Hj(a,1,a.Jb[1],d,e,14,a.lb,bj,cj)&&(c=!0);a.Sa&&Hj(a,a.hb,a.Jb[1],0,a.Sa,14,a.lb,k)&&(c=!0)}return c}function Hj(a,b,c,d,e,k,l,p,q){var w=!1;null!=c&&(Ij(a,b,c,d,e,k,l,p,q)&&(w=!0),a.wd&&Ij(a,b<<1,c,d,e,k,l,p,q)&&(w=!0));return w} +function Ij(a,b,c,d,e,k,l,p,q){var w=!1,C=b&1?0:1,G=a.ya[b],D=16>p.length?p.length:16;G||(G={mc:e<na||!ia?na:8,bf=Qh.createImageData(w.mc,w.nc),ob=0;256>ob;ob++){for(Lb= +0;Lb=na-2,ll=Xb[Lb>(8<=uc&&192<=ob&&223>=ob?7:uc)?R:jl;Jj(bf,Rh,Sh,Th);U&&Jj(bf,Rh+1,Sh,Th)}Qh.putImageData(bf,(ob&15)*w.mc,(ob>>4)*w.nc)}w.Nd[V]="#"+da(R[0],2)+da(R[1],2)+da(R[2],2);w.pi[V]=R;w.Cg[V]=Pd;w=!0}}a.ya[b]=G;return w}function Kj(a){0a.Ga&&(a.Ga=0):a.Ga=-1} function Fj(a){if(a.L){for(var b=10;15>=b;b++)if(null==a.I.eb[b])return;var c=a.I.eb[10],b=c&31,d=a.I.eb[11]&31,e=a.I.eb[9]&31,k=!1;a.I===a.B&&(k=!0,7!=e||4!=b||d||(d=7));if(c&32||b>d&&!k||b>e)Lj(a);else{c=a.I.eb[15]+((a.I.eb[14]&63)<<8);a.fa!=c&&(Lj(a),a.fa=c);d=d-b+1;if(a.Yc!=b||a.Ec!=d)a.Yc=b,a.Ec=d;a.Da=e+1;Kj(a)}}} function Lj(a){if(0<=a.fa){if(void 0!==a.U){var b=a.U[a.fa];if(b&131072){var b=b&-131073,c=a.fa%a.F,d=a.fa/a.F|0;a.L&&a.ya[a.L]&&(a.Ia&&Mj(a,c,d,b,a.Ia),Mj(a,c,d,b));a.U[a.fa]=b}}a.fa=-1}} -function Nj(a){var b,c=a.I;a.Fc=!1;var d=c.vd[5];if(null!=d){b=1024;var e=0,k=c.vd[3]&31;switch(d&3){case 0:if(k){e=32;switch(k&24){case 8:e=96;break;case 16:e=160;break;case 24:e=224}c.vc=k&7}break;case 1:e=1;break;case 2:switch(k&24){default:e=2;break;case 8:e=98;break;case 16:e=162;break;case 24:e=226}break;case 3:a.hb==vi&&(e=3,c.vc=k&7)}d&8&&(b=1280);c=c.ne[4];null!=c&&(c&4||(b|=4096,e|=16),d&64&&(c&8&&(b|=16384,e|=4),a.Fc=!0));b|=e}return b} +function Nj(a){var b,c=a.I;a.Fc=!1;var d=c.ud[5];if(null!=d){b=1024;var e=0,k=c.ud[3]&31;switch(d&3){case 0:if(k){e=32;switch(k&24){case 8:e=96;break;case 16:e=160;break;case 24:e=224}c.vc=k&7}break;case 1:e=1;break;case 2:switch(k&24){default:e=2;break;case 8:e=98;break;case 16:e=162;break;case 24:e=226}break;case 3:a.hb==vi&&(e=3,c.vc=k&7)}d&8&&(b=1280);c=c.me[4];null!=c&&(c&4||(b|=4096,e|=16),d&64&&(c&8&&(b|=16384,e|=4),a.Fc=!0));b|=e}return b} function Oj(a,b){var c=a.I;c&&null!=b&&b!=c.Qg&&(c.ug(b),a.ma.ug(c.cb,c.Eb,c.Ng()))} -function Ej(a,b){var c,d=a.Fa,e=a.I;if(e)if(e.hb==Vi)d=Xi;else if(5<=e.hb){var d=null,k=e.Pc>>2,l=32768>2,l=32768=e.eb[18]?19:20:21:l&128||350>k?d=c?13:14:480<=k&&(d=3==a.pa?17:18):d=c?7-d:6:d-=c?2:0);c=Nj(a)}}else e.yc&8&&(e.yc&2?(d=e.yc&16?6:5,e.yc&4||--d):(d=e.yc&1?3:1,e.yc&4&&--d));else a.Fa=null,null==d&&(d=a.na);if(!Dj(a,d,b))return!1;Oj(a,c);return!0} function Dj(a,b,c){if(null!=b&&(b!=a.Fa||c)){a.hd=0;a.Fa=b;a.Ea=!1;b=a.I||(b==Xi?a.ja:a.T);if(b!=a.I||b.cb!=a.cb||b.Eb!=a.Eb){Lj(a);if(a.cb){if(!Bb(a.ma,a.cb,a.Eb))return!1;a.I&&(a.I.Rb=!1)}a.I=b;b.Rb=!0;a.cb=b.cb;a.Eb=b.Eb;if(!vb(a.ma,b.cb,b.Eb,3,b===a.B?b:null))return!1}a.L=0;a.F=a.Cb;a.O=a.Zb;a.Oa=a.F;a.Bb=Wi[Xi][2];b=0;if(c=Wi[a.Fa])a.F=c[0],a.O=c[1],a.Bb=c[2],b=c[3],a.L=c[4],4!=a.pa&&7!=a.pa||a.I!==a.B||3!=a.L||(7==a.B.eb[9]?a.O=43:a.L=a.hb);a.Mc=a.F*a.O|0;a.Lc=a.Mc/a.Bb|0;a.Ua=a.Lc;a.Ob=0;void 0!== -b&&(a.Ua=(a.Ua<<1)+b|0,a.Ob=a.Ua+b>>1);a.ya.length&&(a.ta=a.ka/a.F|0,a.va=a.sa/a.O|0,a.L?(b=a.ya[a.L],c=a.ya[a.L<<1],a.zd&&80==a.F?c&&a.ta>=3*c.mc>>2&&(a.L<<=1,b=c):(c&&a.ta>=c.mc&&(a.L<<=1,b=c),b&&(a.ta=b.mc,a.va=b.nc)),a.Wa=a.Xa=0,b&&(a.Wa=a.F*b.mc,a.Xa=a.O*b.nc)):(a.ta=a.va=1,a.Wa=a.F,a.Xa=a.O),a.Na=a.Z.createImageData(a.Wa,a.Xa),a.Ha=window.document.createElement("canvas"),a.Ha.width=a.Wa,a.Ha.height=a.Xa,a.Ia=a.Ha.getContext("2d"),a.hc=a.tc=0,a.Qb=a.ka,a.Xb=a.sa,b=a.ka-a.F*a.ta,c=a.sa-a.O*a.va, +b&&(a.Ua=(a.Ua<<1)+b|0,a.Ob=a.Ua+b>>1);a.ya.length&&(a.ta=a.ka/a.F|0,a.va=a.sa/a.O|0,a.L?(b=a.ya[a.L],c=a.ya[a.L<<1],a.yd&&80==a.F?c&&a.ta>=3*c.mc>>2&&(a.L<<=1,b=c):(c&&a.ta>=c.mc&&(a.L<<=1,b=c),b&&(a.ta=b.mc,a.va=b.nc)),a.Wa=a.Xa=0,b&&(a.Wa=a.F*b.mc,a.Xa=a.O*b.nc)):(a.ta=a.va=1,a.Wa=a.F,a.Xa=a.O),a.Na=a.Z.createImageData(a.Wa,a.Xa),a.Ha=window.document.createElement("canvas"),a.Ha.width=a.Wa,a.Ha.height=a.Xa,a.Ia=a.Ha.getContext("2d"),a.hc=a.tc=0,a.Qb=a.ka,a.Xb=a.sa,b=a.ka-a.F*a.ta,c=a.sa-a.O*a.va, 0>1,a.Qb-=b),0>1,a.Xb-=c),b||c)&&(a.Z.fillStyle=a.ha.style.backgroundColor,a.Z.fillRect(0,0,a.ka,a.sa));a.Ea=!1;Pj(a,!0);nc(a)}return!0}function Jj(a,b,c,d){b=(b+c*a.width)*d.length;a.data[b]=d[0];a.data[b+1]=d[1];a.data[b+2]=d[2];a.data[b+3]=d[3]}function Pj(a,b){a.Aa=-1;a.xa=!1;if(b){var c=a.Lc;if(void 0===a.U||a.U.length!=c)a.U=Array(c)}} -function Mj(a,b,c,d,e){var k=d&255,l=d>>8;d=l&15;var p=a.ya[a.L];p.Be&&(d=p.Be[d]);var q=l>>4&15;p.Be&&(q=p.Be[q]);e?(b*=p.mc,c*=p.nc,e.fillStyle=p.Od[q],e.fillRect(b,c,p.mc,p.nc)):(b=b*a.ta+a.hc,c=c*a.va+a.tc,a.Z.fillStyle=p.Od[q],a.Z.fillRect(b,c,a.ta,a.va));l&256&&(q=(k&15)*p.mc,k=(k>>4)*p.nc,e?e.drawImage(p.Cg[d],q,k,p.mc,p.nc,b,c,p.mc,p.nc):a.Z.drawImage(p.Cg[d],q,k,p.mc,p.nc,b,c,a.ta,a.va));l&512&&(k=a.Yc,l=a.Ec,e?(a.Da&&a.Da!==p.nc&&(k=k*p.nc/a.Da|0,l=l*p.nc/a.Da|0),e.fillStyle=p.Od[d],e.fillRect(b, -c+k,p.mc,l)):(a.Da&&a.Da!==a.va&&(k=k*a.va/a.Da|0,l=l*a.va/a.Da|0),a.Z.fillStyle=p.Od[d],a.Z.fillRect(b,c+k,a.ta,l)))} -function nc(a,b){if(a.ia.Yb){var c=!1,d=a.I;d&&(d!==a.B?d.yc&8&&(c=!0):d.Kd&32&&(c=!0));if(c||b){if(b)Pj(a,!0);else if(void 0===a.U)return;var e=!1;!(b||++a.hd&15)&&0<=a.Ga&&(a.Ga++,e=!0);var k=0,l=a.Mc,p=a.cb,c=p,q=c+a.Eb;19<=a.Fa&&(p=c=655360,q=c+65536);if(Qj(a,d)&8||d.je&&d.jeq&&(w=q-c,0>w&&(w=0));q=c+ +function Mj(a,b,c,d,e){var k=d&255,l=d>>8;d=l&15;var p=a.ya[a.L];p.Ae&&(d=p.Ae[d]);var q=l>>4&15;p.Ae&&(q=p.Ae[q]);e?(b*=p.mc,c*=p.nc,e.fillStyle=p.Nd[q],e.fillRect(b,c,p.mc,p.nc)):(b=b*a.ta+a.hc,c=c*a.va+a.tc,a.Z.fillStyle=p.Nd[q],a.Z.fillRect(b,c,a.ta,a.va));l&256&&(q=(k&15)*p.mc,k=(k>>4)*p.nc,e?e.drawImage(p.Cg[d],q,k,p.mc,p.nc,b,c,p.mc,p.nc):a.Z.drawImage(p.Cg[d],q,k,p.mc,p.nc,b,c,a.ta,a.va));l&512&&(k=a.Yc,l=a.Ec,e?(a.Da&&a.Da!==p.nc&&(k=k*p.nc/a.Da|0,l=l*p.nc/a.Da|0),e.fillStyle=p.Nd[d],e.fillRect(b, +c+k,p.mc,l)):(a.Da&&a.Da!==a.va&&(k=k*a.va/a.Da|0,l=l*a.va/a.Da|0),a.Z.fillStyle=p.Nd[d],a.Z.fillRect(b,c+k,a.ta,l)))} +function nc(a,b){if(a.ia.Yb){var c=!1,d=a.I;d&&(d!==a.B?d.yc&8&&(c=!0):d.Jd&32&&(c=!0));if(c||b){if(b)Pj(a,!0);else if(void 0===a.U)return;var e=!1;!(b||++a.hd&15)&&0<=a.Ga&&(a.Ga++,e=!0);var k=0,l=a.Mc,p=a.cb,c=p,q=c+a.Eb;19<=a.Fa&&(p=c=655360,q=c+65536);if(Qj(a,d)&8||d.ie&&d.ieq&&(w=q-c,0>w&&(w=0));q=c+ w;if(d=!b&&a.xa){for(var d=a.ma,C=!0,G=c>>>d.na;0a.fa)return;k=a.fa;l=k+1}}if(a.L){if(a.ya[a.L]){e=0;p=a.Aa=0;d=1048575;w=a.I.yc&32;5<=a.hb&&(w=a.I.xc[16]&8);w&&(p=32768,d&=~p,a.Ga&2||(d&=-65537));for(c+=k<<1;c>8|(D&255)<<8;var ia=p,pa=16;C>=d))>>(pa-=d);Jj(a.Na,C++,G,w[Wb])}C>V&&(V=C);G=va&&(va=G+1)}q+=2;k++;if(C>=a.F){C=0;G+=2;if(G>a.O)break;G==a.O&&(G=1,q=c+a.Ob)}}a.xa=!0;Ra.F?a.Oa-a.F-D>>3:0;cpa&&(na=pa)):(k<<=D,na-=D,a.xa=!1):(a.xa&&k===a.U[e]?(w+=na,na=0):a.U[e]=k,e++);if(na){w>>=8;w>R&&(R=w);C=U&&(U=C+1)}c+=va;if(w>=a.F){w=0;if(++C>a.O)break;c+=ia}}D||(a.xa=!0);G>8|(D&255)<<8;var ia=p,pa=16;C>=d))>>(pa-=d);Jj(a.Na,C++,G,w[Xb])}C>V&&(V=C);G=va&&(va=G+1)}q+=2;k++;if(C>=a.F){C=0;G+=2;if(G>a.O)break;G==a.O&&(G=1,q=c+a.Ob)}}a.xa=!0;Ra.F?a.Oa-a.F-D>>3:0;cpa&&(na=pa)):(k<<=D,na-=D,a.xa=!1):(a.xa&&k===a.U[e]?(w+=na,na=0):a.U[e]=k,e++);if(na){w>>=8;w>R&&(R=w);C=U&&(U=C+1)}c+=va;if(w>=a.F){w=0;if(++C>a.O)break;c+=ia}}D||(a.xa=!0);Ga.F?a.Oa-a.F-U>>3:0;cia&&(pa=ia)):(D<<=U,pa-=U,a.xa=!1):(a.xa&&D===a.U[k]?(d+=pa,pa=0):a.U[k]=D,k++);if(pa){dG&&(G=d);w=V&&(V=w+1)}if(d>=a.F){d=0;if(++w>a.O)break;c+=va}}U||(a.xa=!0);Cd&&(b.Yg=d,d=-d|0);d%b.Ug>b.Ek&&(c|=1);d%b.Xg>b.Gk&&(c|=9);b.ai=d/b.Xg|0;return c}f.fk=function(){var a=this.ja,b;a.Rb&&(b=a.kc);return b};f.rl=function(a,b){var c=this.ja;c.qg=c.kc;c.kc=b&31};f.ek=function(){return Rj(this.ja)};f.ql=function(a,b){Sj(this,this.ja,b)};f.gk=function(){return this.ja.yc};f.sl=function(a,b){this.ja.yc=b;Ej(this,!1)};f.hk=function(){return Tj(this,this.ja)}; -f.Wi=function(a,b){this.B.sg=this.B.sg&-4|b&3};f.Oi=function(){var a=this.B.nd?this.B.xc[this.B.Kd&31]:this.B.Kd;this.B.nd=!this.B.nd;return a};f.Vi=function(a,b){var c=this.B,d=c.Kd&32;if(c.nd){c.nd=!1;var e=c.Kd&31;if(16<=e||!d)c.xc[e]=b,this.Ea=!1,Pj(this,void 0)}else c.Kd=b,c.nd=!0,b&32&&!d&&Cj(this,!0)&&nc(this,!0),c.Ve=(c.eb[12]<<8)+c.eb[13]|0,c.je=0}; -f.sk=function(){var a=0;if(5==this.hb)a=3-((this.B.Xe&12)>>2),a=(this.pb&1<>this.B.pc&63;this.B.pc+=6;12d&&(b.Yg=d,d=-d|0);d%b.Ug>b.Fk&&(c|=1);d%b.Xg>b.Hk&&(c|=9);b.ai=d/b.Xg|0;return c}f.gk=function(){var a=this.ja,b;a.Rb&&(b=a.kc);return b};f.sl=function(a,b){var c=this.ja;c.qg=c.kc;c.kc=b&31};f.fk=function(){return Rj(this.ja)};f.rl=function(a,b){Sj(this,this.ja,b)};f.hk=function(){return this.ja.yc};f.tl=function(a,b){this.ja.yc=b;Ej(this,!1)};f.ik=function(){return Tj(this,this.ja)}; +f.Vi=function(a,b){this.B.sg=this.B.sg&-4|b&3};f.Ij=function(){return this.B.Jd};f.ij=function(){return this.B.xc[this.B.Jd&31]};f.Ui=function(a,b){var c=this.B,d=c.Jd&32;if(c.Ee){c.Ee=!1;var e=c.Jd&31;if(16<=e||!d)c.xc[e]=b,this.Ea=!1,Pj(this,void 0)}else c.Jd=b,c.Ee=!0,b&32&&!d&&Cj(this,!0)&&nc(this,!0),c.Ve=(c.eb[12]<<8)+c.eb[13]|0,c.ie=0}; +f.tk=function(){var a=0;if(5==this.hb)a=3-((this.B.Xe&12)>>2),a=(this.pb&1<>this.B.pc&63;this.B.pc+=6;12Missing <canvas> support. Please try a newer web browser.";break}e.setAttribute("class","pcjs-canvas");e.setAttribute("width",d.screenWidth);e.setAttribute("height",d.screenHeight);e.style.backgroundColor=d.screenColor;e.style.height="auto";0<=(window?window.navigator.userAgent:"").indexOf("MSIE")&&(c.onresize= function(a,b,c,d){return function(){b.style.height=(a.clientWidth*d/c|0)+"px"}}(c,e,d.screenWidth,d.screenHeight),c.onresize());c.appendChild(e);var k=window.document.createElement("textarea");Aa("iOS")&&(k.setAttribute("autocapitalize","off"),k.setAttribute("autocorrect","off"));c.appendChild(k);var l=e.getContext("2d"),d=new Y(d,e,l,k,c);Wa(d,c)}}); -function Uj(a){this.ha=a.adapter;switch(this.ha){case 1:this.ga=1016;this.T=4;break;case 2:this.ga=760;this.T=3;break;default:ta("Unrecognized serial adapter #"+this.ha);return}this.I=null;Ja.call(this,"SerialPort",a,Uj);var b=a.binding,c;a=Vj;b&&(void 0===c&&(c="Panel"),(c=Ua(c,this.id))&&(b=c.ra[b])&&this.Hb(null,a,b))}Ra(Uj);var Vj="buffer";f=Uj.prototype;f.ti=function(a,b){return a==this.ve?(this.P=b,this):null}; +function Uj(a){this.ha=a.adapter;switch(this.ha){case 1:this.ga=1016;this.T=4;break;case 2:this.ga=760;this.T=3;break;default:ta("Unrecognized serial adapter #"+this.ha);return}this.I=null;Ja.call(this,"SerialPort",a,Uj);var b=a.binding,c;a=Vj;b&&(void 0===c&&(c="Panel"),(c=Ua(c,this.id))&&(b=c.ra[b])&&this.Hb(null,a,b))}Ra(Uj);var Vj="buffer";f=Uj.prototype;f.ti=function(a,b){return a==this.ue?(this.P=b,this):null}; f.Hb=function(a,b,c){var d=this;switch(b){case Vj:return this.ra[b]=this.I=c,c.onkeydown=function(a){a=a||window.event;var b=a.keyCode;if(8===b||a.ctrlKey&&65<=b&&90>=b)a.preventDefault&&a.preventDefault(),64>8:this.U};f.ak=function(){return this.F};f.bk=function(){return this.K};f.dk=function(){return this.D};f.ck=function(){return this.B};f.ik=function(){return this.Z}; -f.Cl=function(a,b){if(this.K&128)this.L=this.L&-256|b;else{this.fa=b;this.B&=-97;var c;this.I?(13!=b&&(8==b?this.I.value=this.I.value.slice(0,-1):(this.I.value+=String.fromCharCode(b),this.I.scrollTop=this.I.scrollHeight)),c=!0):c=!1;c&&(this.B|=96)}};f.nl=function(a,b){this.K&128?this.L=this.L&255|b<<8:this.U=b};f.ol=function(a,b){this.K=b}; -f.pl=function(a,b){var c=this.D;this.D=b;if(this.P&&(c^b)&3){var c=this.P,d=this.D,e=3==(d&3);if(e){if(!c.Rb){var k=!1;c.D&2||(c.reset(),c.Ma("serial mouse reset"),k=!0);c.D&1||(c.Ma("serial mouse ID requested"),k=!0);k&&(Wj(c.I,[77,77]),c.Ma("serial mouse ID sent"));bk(c);c.Rb=e}}else c.Rb&&(c.Ma("serial mouse inactive"),ck(c),c.Rb=e);c.D=d}}; -var Xj={0:Uj.prototype.pk,1:Uj.prototype.$j,2:Uj.prototype.ak,3:Uj.prototype.bk,4:Uj.prototype.dk,5:Uj.prototype.ck,6:Uj.prototype.ik},Yj={0:Uj.prototype.Cl,1:Uj.prototype.nl,3:Uj.prototype.ol,4:Uj.prototype.pl};Fa(function(){for(var a=Xa(window.document,"pcjs","serial"),b=0;b>8:this.U};f.bk=function(){return this.F};f.ck=function(){return this.K};f.ek=function(){return this.D};f.dk=function(){return this.B};f.jk=function(){return this.Z}; +f.Dl=function(a,b){if(this.K&128)this.L=this.L&-256|b;else{this.fa=b;this.B&=-97;var c;this.I?(13!=b&&(8==b?this.I.value=this.I.value.slice(0,-1):(this.I.value+=String.fromCharCode(b),this.I.scrollTop=this.I.scrollHeight)),c=!0):c=!1;c&&(this.B|=96)}};f.ol=function(a,b){this.K&128?this.L=this.L&255|b<<8:this.U=b};f.pl=function(a,b){this.K=b}; +f.ql=function(a,b){var c=this.D;this.D=b;if(this.P&&(c^b)&3){var c=this.P,d=this.D,e=3==(d&3);if(e){if(!c.Rb){var k=!1;c.D&2||(c.reset(),c.Ma("serial mouse reset"),k=!0);c.D&1||(c.Ma("serial mouse ID requested"),k=!0);k&&(Wj(c.I,[77,77]),c.Ma("serial mouse ID sent"));bk(c);c.Rb=e}}else c.Rb&&(c.Ma("serial mouse inactive"),ck(c),c.Rb=e);c.D=d}}; +var Xj={0:Uj.prototype.qk,1:Uj.prototype.ak,2:Uj.prototype.bk,3:Uj.prototype.ck,4:Uj.prototype.ek,5:Uj.prototype.dk,6:Uj.prototype.jk},Yj={0:Uj.prototype.Dl,1:Uj.prototype.ol,3:Uj.prototype.pl,4:Uj.prototype.ql};Fa(function(){for(var a=Xa(window.document,"pcjs","serial"),b=0;ba.K||0>a.L)a.K=b.clientX,a.L=b.clientY;a.Y?(c=b.movementX||b.mozMovementX||b.webkitMovementX||0,d=b.movementY||b.mozMovementY||b.webkitMovementY||0):(c=b.clientX-a.K,d=b.clientY-a.L);a.K=b.clientX;a.L=b.clientY;a.Pg(c,d,a.K,a.L)}} +function gk(a,b,c){if(void 0!==c){var d;!(d=!1!==a.Y)&&(d=a.F.length)&&(d=a.F[0],d=d.vd?d.Fd(!0):!1);d||(a.Y=null);a.pf(b.button,c)}else{if(0>a.K||0>a.L)a.K=b.clientX,a.L=b.clientY;a.Y?(c=b.movementX||b.mozMovementX||b.webkitMovementX||0,d=b.movementY||b.mozMovementY||b.webkitMovementY||0):(c=b.clientX-a.K,d=b.clientY-a.L);a.K=b.clientX;a.L=b.clientY;a.Pg(c,d,a.K,a.L)}} f.pf=function(a,b){if(this.Rb&&this.A&&this.A.ia.Kb)switch(a){case Aj:this.T!=b&&(this.T=b,hk(this));break;case 2:this.U!=b&&(this.U=b,hk(this))}};f.Pg=function(a,b,c,d){this.Rb&&this.A&&this.A.ia.Kb&&(a||b)&&(this.O=a,this.P=b,hk(this,c,d))};function hk(a,b,c){var d=64|(a.T?32:0)|(a.U?16:0)|(a.P&192)>>4|(a.O&192)>>6,e=a.O&63,k=a.P&63;a.Sa(4194304)&&a.Ma(""+(void 0!==c?"mouse ("+b+","+c+"): ":"")+"serial packet ["+ea(d)+","+ea(e)+","+ea(k)+"]",0,!0);Wj(a.I,[d,e,k]);a.O=a.P=0} -Fa(function(){for(var a=Xa(window.document,"pcjs","mouse"),b=0;b>2;var e=d=0,a=new DataView(a,0,c);l.A=Array(l.sb);for(c=0;cb.indexOf("/api/v1/dump")&&(a=ga(b),"json"==a?k=encodeURI(b):"demandrw"==this.mode||"demandro"==this.mode?(k=nk(this,b),this.sf=!0):(c="path",d="&mbhd=10",!b.indexOf("http:")||!b.indexOf("ftp:")||0<="dsk ima img 360 720 12 144".split(" ").indexOf(a)?(c="disk",d="&mbhd=0"):-1!==b.indexOf("/",b.length-1)&&(c= -"dir"),k=sa()+"/api/v1/dump?"+c+"="+encodeURIComponent(b)+(this.Xd?"":d)+"&format=json")),ra(k,!0,null,this,this.pj,b)}; -f.pj=function(a,b,c,d){var e=null;this.$d=!1;var k=0>c&&this.xa&&!this.xa.ia.Yb;if(this.sf)c?this.controller.Ja('Unable to connect to disk "'+d+'" (error '+c+": "+b+")",k):(this.F=!0,e=this);else if(c)this.controller.Ja('Unable to load disk "'+this.B+'" (error '+c+")",k);else try{if(0l&&0>2;var e=d=0,a=new DataView(a,0,c);l.A=Array(l.sb);for(c=0;cb.indexOf("/api/v1/dump")&&(a=ga(b),"json"==a?k=encodeURI(b):"demandrw"==this.mode||"demandro"==this.mode?(k=nk(this,b),this.sf=!0):(c="path",d="&mbhd=10",!b.indexOf("http:")||!b.indexOf("ftp:")||0<="dsk ima img 360 720 12 144".split(" ").indexOf(a)?(c="disk",d="&mbhd=0"):-1!==b.indexOf("/",b.length-1)&&(c= +"dir"),k=sa()+"/api/v1/dump?"+c+"="+encodeURIComponent(b)+(this.Wd?"":d)+"&format=json")),ra(k,!0,null,this,this.qj,b)}; +f.qj=function(a,b,c,d){var e=null;this.Zd=!1;var k=0>c&&this.xa&&!this.xa.ia.Yb;if(this.sf)c?this.controller.Ja('Unable to connect to disk "'+d+'" (error '+c+": "+b+")",k):(this.F=!0,e=this);else if(c)this.controller.Ja('Unable to load disk "'+this.B+'" (error '+c+")",k);else try{if(0l&&0b.indexOf("0x")&&'["'!=b.substr(0,2)?JSON.parse(b.replace(/([a-z]+):/gm,'"$1":').replace(/\/\/[^\n]*/gm,"")):eval("("+b+")");if(p.length)if(1==p.length)ta(p[0]);else{this.sb=p.length;this.tb=p[0].length;this.yb=p[0][0].length;var q=p[0][0][0];this.nb=q&&q.length||512;for(b=a=0;b>2,C=q.pattern;void 0===C&&(C=q.pattern=0);var G=q.data;if(void 0===G){var D=q.bytes;if(void 0!== -D&&D.length){for(var k=w<<2,R=D.length;Rb&&(b=0);2E3>2,e=Array(d),k=0;k>2,e=a.data;a=a.pattern;for(var k=0;k>8&255;c[d++]=l>>16&255;c[d++]=l>>24&255}return c}function tk(a,b){var c=-1;if(a&&b>2,c=(d>((b&3)<<3)&255;return c} -f.write=function(a,b,c){if(this.$d)return!1;if(b>2;b=(b&3)<<3;for(var l=d.length;l<=k;l++)d[l]=e;a.qc?k=a.Jc+a.qc&&(a.qc+=k-(a.Jc+a.qc)+1):(a.Jc=k,a.qc=1);d[k]=d[k]&~(255<>2;b=(b&3)<<3;for(var l=d.length;l<=k;l++)d[l]=e;a.qc?k=a.Jc+a.qc&&(a.qc+=k-(a.Jc+a.qc)+1):(a.Jc=k,a.qc=1);d[k]=d[k]&~(255<=this.A.length||q>=this.A[p].length||w>=this.A[p][q].length){c="sector (CHS="+p+":"+q+":"+w+") out of range ("+ -b+" changes applied)";b=-1;break}if(this.$d){c="unable to modify write-protected disk";b=-1;break}e=l[k++];k=l[k++];l=e+k.length;if(p=this.A[p][q][w]){for(q=p.data.length;qb&&-2!=b&&this.controller.Ja("Unable to restore disk '"+this.B+": "+c);return b}; +b+" changes applied)";b=-1;break}if(this.Zd){c="unable to modify write-protected disk";b=-1;break}e=l[k++];k=l[k++];l=e+k.length;if(p=this.A[p][q][w]){for(q=p.data.length;qb&&-2!=b&&this.controller.Ja("Unable to restore disk '"+this.B+": "+c);return b}; f.toJSON=function(){var a=JSON.stringify(this.A,function(a,c){return"file"==a?void 0:c}),a=a.replace(/,"length":512/gm,"").replace(/,"pattern":0/gm,""),a=a.replace(/"(sector|length|data|pattern)":/gm,"$1:"),a=a.replace(/,"[^"]*":([0-9]+|true|false)/gm,""),a=a.replace(/(sector|length|data|pattern):/gm,'"$1":');return a=a.replace(/([\]}]),/gm,"$1,\n")}; -function uk(a){Ja.call(this,"FDC",a,uk);this.dmaRead=this.dj;this.dmaWrite=this.ej;this.dmaFormat=this.mj;this.O=null;if(a.autoMount&&(this.O=a.autoMount,"string"==typeof this.O))try{this.O=eval("("+a.autoMount+")")}catch(b){ta("FDC auto-mount error: "+b.message+" ("+a.autoMount+")"),this.O=null}this.D=[];this.V=!Aa("Mobi")&&window&&"FileReader"in window}Ra(uk);aa={}; -var vk={3:{ad:3,md:0,name:aa.mm},4:{ad:2,md:1,name:aa.km},5:{ad:9,md:7,name:aa.um},6:{ad:9,md:7,name:aa.fm},7:{ad:2,md:0,name:aa.hm},8:{ad:1,md:2,name:aa.lm},10:{ad:2,md:7,name:aa.gm},13:{ad:6,md:7,name:aa.Tl},15:{ad:3,md:0,name:aa.jm}};f=uk.prototype; +function uk(a){Ja.call(this,"FDC",a,uk);this.dmaRead=this.cj;this.dmaWrite=this.dj;this.dmaFormat=this.nj;this.O=null;if(a.autoMount&&(this.O=a.autoMount,"string"==typeof this.O))try{this.O=eval("("+a.autoMount+")")}catch(b){ta("FDC auto-mount error: "+b.message+" ("+a.autoMount+")"),this.O=null}this.D=[];this.V=!Aa("Mobi")&&window&&"FileReader"in window}Ra(uk);aa={}; +var vk={3:{ad:3,md:0,name:aa.nm},4:{ad:2,md:1,name:aa.lm},5:{ad:9,md:7,name:aa.vm},6:{ad:9,md:7,name:aa.gm},7:{ad:2,md:0,name:aa.im},8:{ad:1,md:2,name:aa.mm},10:{ad:2,md:7,name:aa.hm},13:{ad:6,md:7,name:aa.Ul},15:{ad:3,md:0,name:aa.km}};f=uk.prototype; f.Hb=function(a,b,c){var d=this;switch(b){case "listDisks":return this.ra[b]=c,c.onchange=function(){var a=d.ra.descDisk,b=c.options[c.selectedIndex];if(a&&b){var l={};if(b=b.getAttribute("data-value"))try{l=eval("({"+b+"})")}catch(p){ta("FDC option error: "+p.message)}b=l.desc;void 0===b&&(b="");l=l.href;void 0!==l&&(b=''+b+"");a.innerHTML=b}},!0;case "descDisk":case "listDrives":return this.ra[b]=c,c.onchange=function(){var a=ca(c.value,10);null!=a&&wk(d,a)}, !0;case "loadDrive":return this.ra[b]=c,c.onclick=function(){var a=d.ra.listDisks;a&&xk(d,a.options[a.selectedIndex].text,a.value)},!0;case "mountDrive":return this.V?(this.ra[b]=c,c.addEventListener("change",function(){var a=c.children[0];a.children[1].disabled=!a.children[0].files.length}),c.onsubmit=function(a){if(a=a.currentTarget[1].files[0]){var b=a.name;xk(d,fa(b,!0),b,a)}return!1}):c.parentNode.removeChild(c),!0}return!1}; f.uc=function(a,b,c,d){this.ma=b;this.A=c;this.Qa=d;this.xa=a;this.Y=gb(a,"ChipSet");yk(this);Jb(b,this,zk);Mb(b,this,Ak);this.V&&Bk(this,"Local Disk","?");Bk(this,"Remote Disk","??");Ck(this)||Za(this)}; f.bc=function(a,b){if(!b){if(!a||!this.restore){if(this.reset(),this.xa.Lg){this.D=[];for(var c=0;cl.za.restore(D)&&(p=!1);p&&l.za&&void 0!==l.Ta&&(l.Va=l.za.seek(l.wb,l.Ya,l.jb));p||(e=!1)}a.L=b[c++]||0;a.ga=b[c]||0;return e} +9;break;case 1200:l.sb=80;l.yb=15;break;case 1440:l.sb=80,l.yb=18}}var q=a,w=d,C=k[d],G=0;p=!0;l.Ra=w;l.Cc=l.Ud=!1;void 0===C&&(C=[192,!0,0,2,0]);"boolean"==typeof C[1]&&(C[1]=["Floppy Drive",l.sb||40,l.tb||C[3],l.yb||9,l.nb||512,C[1],l.zf,l.Oe,l.Pe]);l.ib=C[G++];var D=C[G++];l.name=D[0];l.sb=D[1];l.tb=D[2];l.yb=D[3];l.nb=D[4];l.Wd=D[5];(l.zf=D[6])?(l.Oe=D[7],l.Pe=D[8]):(l.zf=l.sb,l.Oe=l.tb,l.Pe=l.yb);l.Ya=C[G++];l.kd=C[G++];l.wb=C[G++];l.kd=100<=l.kd?l.kd-100:l.kd-l.wb;l.jb=C[G++];l.ld=C[G++];l.rb= +C[G++];l.Ta=C[G++];l.Va=null;l.za||(l.Kd="");D=C[G++];102==D&&(D=!1);if("boolean"==typeof D){var R=D,D=C[G++],C=C[G];R?(G=D,D=q.B[w],Dk(q,w,!0,!0),D.Ud=!0,w=new ik(q,D,"preload"),q.Ei(D,w,G,C,!0)):Fk(q,w,D,C,!0)?l.za&&C&&Gk(q,D,C,l.za):Za(q,!1)}else void 0!==D&&l.za&&0>l.za.restore(D)&&(p=!1);p&&l.za&&void 0!==l.Ta&&(l.Va=l.za.seek(l.wb,l.Ya,l.jb));p||(e=!1)}a.L=b[c++]||0;a.ga=b[c]||0;return e} function Ck(a,b){b||(a.T=0);if(a.O)for(var c in a.O){var d=a.O[c];if(d.name&&d.path){var e=c.charCodeAt(0)-65;if(0<=e&&ea.sb||k[1]>a.tb)&&(this.Ja('Diskette "'+c+'" too large for drive '+String.fromCharCode(65+a.Ra)),b=null);b?(a.za=b,a.Zi=c,a.Ld=d,Gk(this,c,d,b),k=b.info(),this.L|=128,this.Ja('Mounted diskette "'+c+'" in drive '+String.fromCharCode(65+a.Ra),a.Ed||e),a.zf=k[0],a.Oe=k[1],a.Pe=k[2]):a.Vd=!1;a.Ed&&(a.Ed=!1,--this.T||Za(this));wk(this,a.Ra)}; -function Bk(a,b,c){if(a=a.ra.listDisks){for(var d=0;d=this.F&&(this.wa&=-81,this.I=this.F=0);return a}; -f.hl=function(a,b){this.F=vk[c].ad){var d=!1;this.I=0;var c=Hk(this),e,k,l,p,q,w=c&31;switch(w){case 3:Hk(this);Hk(this);Ik(this);break;case 4:k=Hk(this);this.Ra=k&3;e=this.B[this.Ra];Ik(this);Jk(this,(e.ib&-16777216)>>>24);break;case 5:case 6:k=Hk(this);d=k>>2&1;this.Ra=k&3;e=this.B[this.Ra];e.Ya=d;k=e.wb=Hk(this);l=Hk(this);p=e.jb=Hk(this);q=Hk(this);e.rb=128<>2&1;this.Ra=k&3;e=this.B[this.Ra];k=e.wb;l=e.Ya=d;p= -e.jb=1;q=0;e.ib=0;e.za&&(e.Va=e.za.seek(e.wb,e.Ya,e.jb))?q=e.Va.length>>8:e.ib=72;Kk(this,e,c,d,k,l,p,q);d=!0;break;case 13:k=Hk(this);d=k>>2&1;this.Ra=k&3;e=this.B[this.Ra];k=e.wb;l=e.Ya=d;p=1;q=Hk(this);e.rb=128<>2&1,k=Hk(this),e.wb+= -k-e.kd,0>e.wb&&(e.wb=0),e.wb>=e.sb&&(e.wb=e.sb-1),e.kd=k,e.ib=32,e.wb||(e.ib|=268435456),Ik(this),d=!0}0>>8);Jk(a,(b.ib&16711680)>>>16);var q=0;if(e!=b.wb||k!=b.Ya)q=l=1;c&128&&(k^=q,d||(q=0));Jk(a,e+q);Jk(a,k);Jk(a,l);Jk(a,p)} -function Hk(a){var b=a.K[a.I];a.I++;return b}function Ik(a){a.I=a.F=0}function Jk(a,b){a.K[a.F++]=b}f.dj=function(a,b,c){if(void 0===b||0>b){b=-1;var d=null,e=0;if(!a.ib&&a.za){do{if(a.Va&&(e=a.Ta,0<=(b=tk(a.Va,a.Ta++)))){d=a.Va;break}a.Va=a.za.seek(a.wb,a.Ya,a.jb);if(!a.Va){a.ib=1088;break}a.Ta=0;Lk(a)}while(1)}c(b,!1,d,e)}else c(-1,!1)};f.ej=function(a,b){return void 0!==b&&0<=b?Mk(a,b):-1}; -f.mj=function(a,b){var c;if(void 0!==b&&0<=b)a:if(c=b,a.ib)c=-1;else{a.zc[a.Sd++]=c;if(a.Sd==a.zc.length){a.wb=a.zc[0];a.Ya=a.zc[1];a.jb=a.zc[2];a.rb=128<Mk(a,a.ui)){c=-1;break a}a.mf++}a.mf>=a.ld&&(c=-1)}else c=-1;return c};function Mk(a,b){if(a.ib||!a.za)return-1;do{if(a.Va&&a.za.write(a.Va,a.Ta++,b))break;a.Va=a.za.seek(a.wb,a.Ya,a.jb);if(!a.Va){a.ib=8256;b=-1;break}a.Ta=0;Lk(a)}while(1);return b} -function Lk(a){a.jb++;a.jb>=a.Pe+1&&(a.jb=1,a.Ya++,a.Ya>=a.Oe&&(a.Ya=0,a.wb++))}var zk={1012:uk.prototype.Xj,1013:uk.prototype.Vj,1015:uk.prototype.Wj},Ak={1010:uk.prototype.il,1013:uk.prototype.hl,1015:uk.prototype.gl};Fa(function(){for(var a=Xa(window.document,"pcjs","fdc"),b=0;ba.sb||k[1]>a.tb)&&(this.Ja('Diskette "'+c+'" too large for drive '+String.fromCharCode(65+a.Ra)),b=null);b?(a.za=b,a.Yi=c,a.Kd=d,Gk(this,c,d,b),k=b.info(),this.L|=128,this.Ja('Mounted diskette "'+c+'" in drive '+String.fromCharCode(65+a.Ra),a.Dd||e),a.zf=k[0],a.Oe=k[1],a.Pe=k[2]):a.Ud=!1;a.Dd&&(a.Dd=!1,--this.T||Za(this));wk(this,a.Ra)}; +function Bk(a,b,c){if(a=a.ra.listDisks){for(var d=0;d=this.F&&(this.wa&=-81,this.I=this.F=0);return a}; +f.il=function(a,b){this.F=vk[c].ad){var d=!1;this.I=0;var c=Hk(this),e,k,l,p,q,w=c&31;switch(w){case 3:Hk(this);Hk(this);Ik(this);break;case 4:k=Hk(this);this.Ra=k&3;e=this.B[this.Ra];Ik(this);Jk(this,(e.ib&-16777216)>>>24);break;case 5:case 6:k=Hk(this);d=k>>2&1;this.Ra=k&3;e=this.B[this.Ra];e.Ya=d;k=e.wb=Hk(this);l=Hk(this);p=e.jb=Hk(this);q=Hk(this);e.rb=128<>2&1;this.Ra=k&3;e=this.B[this.Ra];k=e.wb;l=e.Ya=d;p= +e.jb=1;q=0;e.ib=0;e.za&&(e.Va=e.za.seek(e.wb,e.Ya,e.jb))?q=e.Va.length>>8:e.ib=72;Kk(this,e,c,d,k,l,p,q);d=!0;break;case 13:k=Hk(this);d=k>>2&1;this.Ra=k&3;e=this.B[this.Ra];k=e.wb;l=e.Ya=d;p=1;q=Hk(this);e.rb=128<>2&1,k=Hk(this),e.wb+= +k-e.kd,0>e.wb&&(e.wb=0),e.wb>=e.sb&&(e.wb=e.sb-1),e.kd=k,e.ib=32,e.wb||(e.ib|=268435456),Ik(this),d=!0}0>>8);Jk(a,(b.ib&16711680)>>>16);var q=0;if(e!=b.wb||k!=b.Ya)q=l=1;c&128&&(k^=q,d||(q=0));Jk(a,e+q);Jk(a,k);Jk(a,l);Jk(a,p)} +function Hk(a){var b=a.K[a.I];a.I++;return b}function Ik(a){a.I=a.F=0}function Jk(a,b){a.K[a.F++]=b}f.cj=function(a,b,c){if(void 0===b||0>b){b=-1;var d=null,e=0;if(!a.ib&&a.za){do{if(a.Va&&(e=a.Ta,0<=(b=tk(a.Va,a.Ta++)))){d=a.Va;break}a.Va=a.za.seek(a.wb,a.Ya,a.jb);if(!a.Va){a.ib=1088;break}a.Ta=0;Lk(a)}while(1)}c(b,!1,d,e)}else c(-1,!1)};f.dj=function(a,b){return void 0!==b&&0<=b?Mk(a,b):-1}; +f.nj=function(a,b){var c;if(void 0!==b&&0<=b)a:if(c=b,a.ib)c=-1;else{a.zc[a.Rd++]=c;if(a.Rd==a.zc.length){a.wb=a.zc[0];a.Ya=a.zc[1];a.jb=a.zc[2];a.rb=128<Mk(a,a.ui)){c=-1;break a}a.mf++}a.mf>=a.ld&&(c=-1)}else c=-1;return c};function Mk(a,b){if(a.ib||!a.za)return-1;do{if(a.Va&&a.za.write(a.Va,a.Ta++,b))break;a.Va=a.za.seek(a.wb,a.Ya,a.jb);if(!a.Va){a.ib=8256;b=-1;break}a.Ta=0;Lk(a)}while(1);return b} +function Lk(a){a.jb++;a.jb>=a.Pe+1&&(a.jb=1,a.Ya++,a.Ya>=a.Oe&&(a.Ya=0,a.wb++))}var zk={1012:uk.prototype.Yj,1013:uk.prototype.Wj,1015:uk.prototype.Xj},Ak={1010:uk.prototype.jl,1013:uk.prototype.il,1015:uk.prototype.hl};Fa(function(){for(var a=Xa(window.document,"pcjs","fdc"),b=0;bq.za.restore(l)&&(R=!1),R&&void 0!==q.Ta&&(q.Va=q.za.seek(q.yd,q.Ya,q.jb+q.lf)));R||(e=!1);null!=a.fa&&1>=d&&(a.fa|=(k.type&3)<<(1-d<<1))}0<=a.Ra&&(a.D=a.B[a.Ra]);return e} -function Uk(a,b,c){if(b){var d=0,e=0;null==c&&((d=b.Qd[2])?e=b.Qd[0]<<8|b.Qd[1]:c=b.type);null==c||d||(d=Nk[a.Z][c][1],e=Nk[a.Z][c][0]);d&&((c=Nk[a.Z][b.type])&&e!=c[0]&&d!=c[1]&&a.Ja("Warning: drive parameters ("+e+","+d+") do not match drive type "+b.type+" ("+c[0]+","+c[1]+")"),b.sb=e,b.tb=d,null==b.za&&(b.za=new ik(a,b,b.mode)))}} -function Sk(a,b){b||(a.T=0);for(var c=0;c=this.F&&(this.I=this.F=0,this.wa&=-15);return a};f.El=function(a,b){this.F=c&&(this.wa|=2,this.wa&=-2,Vk(this))}; -f.yk=function(){var a=this.wa;this.I=a.D.nb?(a.wa=128,Xk(a.D,function(b){0<=b?(Yk(a),a.wa=88):(a.wa=1,a.O=16)},!1)):a.wa=80));return b} -f.Fj=function(){return Wk(this)|Wk(this)<<8};function Zk(a,b){a.D&&a.D.rb>=a.D.nb&&(0>$k(a.D,b)?(a.wa=1,a.O=16):(1==a.D.Ta||a.D.Ta==a.D.nb)&&1=a.D.nb&&(a.wa|=8)))}f.Pk=function(a,b){Zk(this,b&255);Zk(this,b>>8&255)};f.Hj=function(){return this.O};f.Uk=function(a,b){this.va=b};f.Ij=function(){return this.P};f.Sk=function(a,b){this.P=b};f.Jj=function(){return this.ka};f.Tk=function(a,b){this.ka=b};f.Ej=function(){return this.ja}; -f.Ok=function(a,b){this.ja=b};f.Dj=function(){return this.ha};f.Nk=function(a,b){this.ha=b};f.Gj=function(){return this.ga};f.Qk=function(a,b){this.ga=b;this.wa=this.B[this.ga&16?1:0]?this.wa|80:this.wa&-65};f.Kj=function(){return this.wa};f.Mk=function(a,b){this.pa=b;this.Y&&ci(this.Y,14);al(this)};f.Rk=function(a,b){this.U&4&&!(b&4)&&(this.O=1);this.U=b}; -function al(a){var b=!1,c=a.pa,d=a.ga&16?1:0,e=a.ga&15,k=a.ja|(a.ha&3)<<8,l=a.ka,p=a.P||256;a.Ra=-1;a.D=null;a.O=0;a.wa=80;var q=a.B[d];q?(q.yd=k,q.Ya=e,q.jb=l,q.rb=p*q.nb,c=144<=c?c:c&240,q.Va=null,q.Ta=0,q.errorCode=0,a.Ra=d,a.D=q):c=-1;switch(c&240){case 16:b=!0;break;case 32:a.wa=128;Xk(q,function(b){0<=b&&a.Y?(Yk(a),a.wa=88):(a.wa=1,a.O=16)},!1);break;case 48:a.wa=8;break;case 64:b=!0;break;case 112:b=!0;break;case 144:a.O=1;b=!0;break;case 145:q.tb=e+1,q.yb=p,b=!0}b&&Yk(a)} +[]);for(d=0;dq.za.restore(l)&&(R=!1),R&&void 0!==q.Ta&&(q.Va=q.za.seek(q.xd,q.Ya,q.jb+q.lf)));R||(e=!1);null!=a.fa&&1>=d&&(a.fa|=(k.type&3)<<(1-d<<1))}0<=a.Ra&&(a.D=a.B[a.Ra]);return e} +function Uk(a,b,c){if(b){var d=0,e=0;null==c&&((d=b.Pd[2])?e=b.Pd[0]<<8|b.Pd[1]:c=b.type);null==c||d||(d=Nk[a.Z][c][1],e=Nk[a.Z][c][0]);d&&((c=Nk[a.Z][b.type])&&e!=c[0]&&d!=c[1]&&a.Ja("Warning: drive parameters ("+e+","+d+") do not match drive type "+b.type+" ("+c[0]+","+c[1]+")"),b.sb=e,b.tb=d,null==b.za&&(b.za=new ik(a,b,b.mode)))}} +function Sk(a,b){b||(a.T=0);for(var c=0;c=this.F&&(this.I=this.F=0,this.wa&=-15);return a};f.Fl=function(a,b){this.F=c&&(this.wa|=2,this.wa&=-2,Vk(this))}; +f.zk=function(){var a=this.wa;this.I=a.D.nb?(a.wa=128,Xk(a.D,function(b){0<=b?(Yk(a),a.wa=88):(a.wa=1,a.O=16)},!1)):a.wa=80));return b} +f.gj=function(){return Wk(this)|Wk(this)<<8};function Zk(a,b){a.D&&a.D.rb>=a.D.nb&&(0>$k(a.D,b)?(a.wa=1,a.O=16):(1==a.D.Ta||a.D.Ta==a.D.nb)&&1=a.D.nb&&(a.wa|=8)))}f.Qk=function(a,b){Zk(this,b&255);Zk(this,b>>8&255)};f.Hj=function(){return this.O};f.Vk=function(a,b){this.va=b};f.Jj=function(){return this.P};f.Tk=function(a,b){this.P=b};f.Kj=function(){return this.ka};f.Uk=function(a,b){this.ka=b};f.Fj=function(){return this.ja}; +f.Pk=function(a,b){this.ja=b};f.Ej=function(){return this.ha};f.Ok=function(a,b){this.ha=b};f.Gj=function(){return this.ga};f.Rk=function(a,b){this.ga=b;this.wa=this.B[this.ga&16?1:0]?this.wa|80:this.wa&-65};f.Lj=function(){return this.wa};f.Nk=function(a,b){this.pa=b;this.Y&&ci(this.Y,14);al(this)};f.Sk=function(a,b){this.U&4&&!(b&4)&&(this.O=1);this.U=b}; +function al(a){var b=!1,c=a.pa,d=a.ga&16?1:0,e=a.ga&15,k=a.ja|(a.ha&3)<<8,l=a.ka,p=a.P||256;a.Ra=-1;a.D=null;a.O=0;a.wa=80;var q=a.B[d];q?(q.xd=k,q.Ya=e,q.jb=l,q.rb=p*q.nb,c=144<=c?c:c&240,q.Va=null,q.Ta=0,q.errorCode=0,a.Ra=d,a.D=q):c=-1;switch(c&240){case 16:b=!0;break;case 32:a.wa=128;Xk(q,function(b){0<=b&&a.Y?(Yk(a),a.wa=88):(a.wa=1,a.O=16)},!1);break;case 48:a.wa=8;break;case 64:b=!0;break;case 112:b=!0;break;case 144:a.O=1;b=!0;break;case 145:q.tb=e+1,q.yb=p,b=!0}b&&Yk(a)} function Yk(a){!a.Y||a.U&2||bi(a.Y,14,120)} -function Vk(a){a.I=0;var b=bl(a),c=bl(a),d=c&32,e=d>>5,k=c&31,l=bl(a),p=bl(a),q=l<<2&768|p,w=l&63,C=bl(a),G=bl(a),D=a.B[e];D&&(D.yd=q,D.Ya=k,D.jb=w,D.rb=C*D.nb);switch(b){case 3:cl(a,D?D.errorCode:4);dl(a,c);dl(a,l);dl(a,p);dl(a,0|d);b=-1;break;case 12:for(c=0;0<=(b=bl(a));)D&&cb?Xk(a,c):c(-1,!1)};f.gj=function(a,b){return void 0!==b&&0<=b?$k(a,b):-1}; -f.nj=function(a,b){var c;void 0!==b&&0<=b?(c=b,a.Ta$k(a,a.ui)){c=-1;break a}a.mf++}a.mf>=a.ld&&(c=-1)}else c=-1;return c}; +function Vk(a){a.I=0;var b=bl(a),c=bl(a),d=c&32,e=d>>5,k=c&31,l=bl(a),p=bl(a),q=l<<2&768|p,w=l&63,C=bl(a),G=bl(a),D=a.B[e];D&&(D.xd=q,D.Ya=k,D.jb=w,D.rb=C*D.nb);switch(b){case 3:cl(a,D?D.errorCode:4);dl(a,c);dl(a,l);dl(a,p);dl(a,0|d);b=-1;break;case 12:for(c=0;0<=(b=bl(a));)D&&cb?Xk(a,c):c(-1,!1)};f.fj=function(a,b){return void 0!==b&&0<=b?$k(a,b):-1}; +f.oj=function(a,b){var c;void 0!==b&&0<=b?(c=b,a.Ta$k(a,a.ui)){c=-1;break a}a.mf++}a.mf>=a.ld&&(c=-1)}else c=-1;return c}; function el(a,b,c){b.errorCode=4;if(b.za&&(b.Va=null,a.Y)){b.errorCode=0;Wh(a.Y,3,a,"dmaRead",b);Oh(a.Y,3,function(a){a||0!=b.errorCode||(b.errorCode=4);c(b.errorCode?2:0)});return}c(b.errorCode?2:0)}function fl(a,b,c){b.errorCode=4;if(b.za&&(b.Va=null,a.Y)){b.errorCode=0;Wh(a.Y,3,a,"dmaWrite",b);Oh(a.Y,3,function(a){a||(0==b.errorCode&&(b.errorCode=4),20==b.errorCode&&(b.errorCode=0));c(b.errorCode?2:0)});return}c(b.errorCode?2:0)} -function gl(a,b,c){b.errorCode=4;b.Rd&&b.Rd.length==b.rb||(b.Rd=Array(b.rb));b.Ta=0;a.Y?(b.errorCode=0,Wh(a.Y,3,a,"dmaWriteBuffer",b),Oh(a.Y,3,function(a){a||0!=b.errorCode||(b.errorCode=4);c(b.errorCode?2:0)})):c(b.errorCode?2:0)} -function Xk(a,b,c){var d=-1,e=null,k=0;if(a.errorCode)return b&&b(d,!1,e,k),d;var l=!1!==c?1:0;if(a.Va&&(k=a.Ta,d=tk(a.Va,a.Ta),a.Ta+=l,0<=d))return e=a.Va,b&&b(d,!1,e,k),d;if(b){if(a.za)return a.za.seek(a.yd,a.Ya,a.jb+a.lf,!1,function(c,q){(a.Va=c)?(e=c,k=a.Ta=0,hl(a),d=tk(a.Va,a.Ta),a.Ta+=l):a.errorCode=20;b(d,q,e,k)}),d;a.errorCode=20;b(d,!1,e,k)}return d} -function $k(a,b){if(a.errorCode)return-1;do{if(a.Va&&a.za.write(a.Va,a.Ta++,b))break;a.za&&a.za.seek(a.yd,a.Ya,a.jb+a.lf,!0,function(b){a.Va=b});if(!a.Va){a.errorCode=20;b=-1;break}a.Ta=0;hl(a)}while(1);return b}function hl(a){a.jb++;var b=1-a.lf;a.jb>=a.yb+b&&(a.jb=b,a.Ya++,a.Ya>=a.tb&&(a.Ya=0,a.yd++))}f.zk=function(){var a=this.A.H&255;!(this.A.G>>8)&&128>8||!this.Y)||(a=!(this.Y.Ub[0].Oc&64));return a?!0:!1}; -var Pk={800:Z.prototype.xk,801:Z.prototype.yk,802:Z.prototype.wk},Ok={496:Z.prototype.Fj,497:Z.prototype.Hj,498:Z.prototype.Ij,499:Z.prototype.Jj,500:Z.prototype.Ej,501:Z.prototype.Dj,502:Z.prototype.Gj,503:Z.prototype.Kj},Rk={800:Z.prototype.El,801:Z.prototype.Hl,802:Z.prototype.Gl,803:Z.prototype.Fl,807:Z.prototype.bi,811:Z.prototype.bi,815:Z.prototype.bi},Qk={496:Z.prototype.Pk,497:Z.prototype.Uk,498:Z.prototype.Sk,499:Z.prototype.Tk,500:Z.prototype.Ok,501:Z.prototype.Nk,502:Z.prototype.Qk,503:Z.prototype.Mk, -1014:Z.prototype.Rk};Fa(function(){for(var a=Xa(window.document,"pcjs","hdc"),b=0;b=a.yb+b&&(a.jb=b,a.Ya++,a.Ya>=a.tb&&(a.Ya=0,a.xd++))}f.Ak=function(){var a=this.A.H&255;!(this.A.G>>8)&&128>8||!this.Y)||(a=!(this.Y.Ub[0].Oc&64));return a?!0:!1}; +var Pk={800:Z.prototype.yk,801:Z.prototype.zk,802:Z.prototype.xk},Ok={496:Z.prototype.gj,497:Z.prototype.Hj,498:Z.prototype.Jj,499:Z.prototype.Kj,500:Z.prototype.Fj,501:Z.prototype.Ej,502:Z.prototype.Gj,503:Z.prototype.Lj},Rk={800:Z.prototype.Fl,801:Z.prototype.Il,802:Z.prototype.Hl,803:Z.prototype.Gl,807:Z.prototype.bi,811:Z.prototype.bi,815:Z.prototype.bi},Qk={496:Z.prototype.Qk,497:Z.prototype.Vk,498:Z.prototype.Tk,499:Z.prototype.Uk,500:Z.prototype.Pk,501:Z.prototype.Ok,502:Z.prototype.Rk,503:Z.prototype.Nk, +1014:Z.prototype.Sk};Fa(function(){for(var a=Xa(window.document,"pcjs","hdc"),b=0;brl){if(d.load(this.F)){this.D=new Vd(this,tl,"failsafe");this.D.load()&&(wl(this,d),a=2,ml(this.D));E(this.D,"timestamp",la());nl(this.D);var e=this.lc&&!this.I;if(1==a||ua("Click OK to restore the previous PCjs machine state, or CANCEL to reset the machine.")){if(c=ol(d)){var k=pl(d,"code"),l=pl(d,"data");k&&("ok"==k?d.load(l):("error"==k&&"no machine state"!=l?(this.Ja("Error: "+ l),"unable to verify user"==l&&(za("user",""),this.B=null)):this.cc(k+": "+l),ml(d),d.load()?(c=ol(d),e=!0):c=!1))}e&&vl(this,c?d:null)}else 2==a&&d.clear()}else vl(this);delete this.F;delete this.K}e=Sa(this.id);for(k=0;ka[1];a=a[2];this.ia.Yb=!0;this.ri||(this.cc("PCjs v"+tl+"\nCopyright \u00a9 2012-2015 Jeff Parsons \nLicense: GPL version 3 or later "),this.ri=!0);this.A&&(xl(this,this.A,b,c,a),lc(this.A));this.O&&(wl(this,b),b.clear());!c&&this.D&&(this.D.clear(),delete this.D)}; -function wl(a,b){if(ua("There may be a problem with your PCjs machine.\n\nTo help us diagnose it, click OK to send this PCjs machine state to http://www.pcjs.org.")){var c=a.T,d=a.pd(),e=b.toString(),k={app:"PCjs"};k.ver=tl;k.url=c;k.user=d;k.type="bug";k.data=e;ra("http://www.pcjs.org/api/v1/report",!0,k)}} +function wl(a,b){if(ua("There may be a problem with your PCjs machine.\n\nTo help us diagnose it, click OK to send this PCjs machine state to http://www.pcjs.org.")){var c=a.T,d=a.od(),e=b.toString(),k={app:"PCjs"};k.ver=tl;k.url=c;k.user=d;k.type="bug";k.data=e;ra("http://www.pcjs.org/api/v1/report",!0,k)}} function yl(a,b,c){var d,e="none",k=new Vd(a,tl),l=new Vd(a,tl,"validate"),p=la();E(l,"timestamp",p);E(k,"timestamp",p);E(k,"version","1.19.5");E(k,"url",window?window.location.href:null);E(k,"browser",window?window.navigator.userAgent:"");a.A&&a.A.ac&&(c&&oc(a.A),d=a.A.ac(b,c),"object"===typeof d&&E(k,a.A.id,d),c&&(a.A.ia.Yb=!1,!1===d&&(e=null)));for(var p=Sa(a.id),q=0;q D386_Device_Params structure (see addSectionInfo() for details) + */ + this.addSectionInfo(this.newAddr(cpu.regEBX, DX), !SI, this.fWinDbg); + break; + } + } + return true; + }; + /** * intWindowsDebugger() * @@ -1430,7 +1480,7 @@ if (DEBUGGER) { break; default: - if (this.fWinDbg) { + if (MAXDEBUG && this.fWinDbg) { this.println("INT 0x41: " + str.toHexWord(AX)); } break; @@ -1561,7 +1611,7 @@ if (DEBUGGER) { break; default: - if (this.fWinDbgRM) { + if (MAXDEBUG && this.fWinDbgRM) { this.println("INT 0x68: " + str.toHexByte(AH)); } break; @@ -1616,7 +1666,7 @@ if (DEBUGGER) { { var cpu = this.cpu; var AL = cpu.regEAX & 0xff; - this.println("INT 0x68 callback: " + str.toHexByte(AL)); + if (MAXDEBUG) this.println("INT 0x68 callback: " + str.toHexByte(AL)); if (AL == 5) { cpu.regECX = cpu.regESI = 0; // our in-machine debugger footprint is zero cpu.regEAX = (cpu.regEAX & ~0xff) | 0x01; diff --git a/modules/pcjs/lib/interrupts.js b/modules/pcjs/lib/interrupts.js index 3d747c1e73..cda3fe9def 100644 --- a/modules/pcjs/lib/interrupts.js +++ b/modules/pcjs/lib/interrupts.js @@ -61,7 +61,10 @@ var Interrupts = { MOUSE: 0x33, ALT_DISK: 0x40, // HDC BIOS saves original FDC BIOS vector here ALT_VIDEO: 0x6D, // IBM VGA BIOS saves original video BIOS vector here - WINDBG: { // Windows Debugger protected-mode interface + WINCB: { + VECTOR: 0x30 // Windows PM call-back interface (aka Transfer Space Fault) + }, + WINDBG: { // Windows Debugger protected-mode interface VECTOR: 0x41, // (AX==command) IS_LOADED: 0x004F, // DS_DebLoaded LOADED: 0xF386, // DS_DebPresent (returned in AX if Windows Debugger loaded) @@ -69,7 +72,7 @@ var Interrupts = { LOAD_SEG32: 0x0150, // DS_LoadSeg_32 (SI==0 if code, 1 if data; DX:EBX->D386_Device_Params) ENABLED: true // support for WINDBG interrupts can be disabled (but NOT if WINDBGRM is enabled) }, - WINDBGRM: { // Windows Debugger real-mode interface + WINDBGRM: { // Windows Debugger real-mode interface VECTOR: 0x68, // (AH==command) IS_LOADED: 0x43, // D386_Identify LOADED: 0xF386, // D386_Id (returned in AX if Windows Debugger loaded) @@ -77,7 +80,7 @@ var Interrupts = { LOAD_SEG: 0x50, // D386_Load_Segment (AL=segment type, ES:DI->D386_Device_Params) ENABLED: true // support for WINDBGRM interrupts can be disabled }, - FUNCS: {} // filled in only if DEBUGGER is true + FUNCS: {} // filled in only if DEBUGGER is true }; if (DEBUGGER) { diff --git a/modules/pcjs/lib/video.js b/modules/pcjs/lib/video.js index 73a7eb1b1b..b2ac05c63b 100644 --- a/modules/pcjs/lib/video.js +++ b/modules/pcjs/lib/video.js @@ -2461,6 +2461,7 @@ Card.prototype.dumpVideoCard = function() this.dumpRegs(" GRC", this.regGRCIndx, this.regGRCData, this.asGRCRegs); this.dumpRegs(" SEQ", this.regSEQIndx, this.regSEQData, this.asSEQRegs); this.dumpRegs(" ATC", this.regATCIndx, this.regATCData, this.asATCRegs); + this.dumpRegs(" ATCINDX", this.regATCIndx); this.dbg.println(" ATCDATA: " + this.fATCData); this.dumpRegs(" FEAT", this.regFeat); this.dumpRegs(" MISC", this.regMisc); @@ -5894,20 +5895,44 @@ Video.prototype.outFeat = function(port, bOut, addrFrom) }; /** - * inATC(port, addrFrom) + * inATCIndx(port, addrFrom) + * + * Technically, port 0x3C0 is readable only on a VGA, but we allow reads on an EGA as well, + * primarily for debugging purposes. Moreover, ATC port reads do NOT toggle the ATC address/data + * flip-flop; only writes have that effect. * * @this {Video} * @param {number} port (0x3C0) * @param {number} [addrFrom] (not defined whenever the Debugger tries to read the specified port) * @return {number} */ -Video.prototype.inATC = function(port, addrFrom) +Video.prototype.inATCIndx = function(port, addrFrom) +{ + var b = this.cardEGA.regATCIndx; + if (!addrFrom || this.messageEnabled()) { + this.printMessageIO(Card.ATC.PORT, null, addrFrom, "ATC.INDX", b); + } + return b; +}; + +/** + * inATCData(port, addrFrom) + * + * Technically, port 0x3C0 is readable only on a VGA, but we allow reads on an EGA as well, + * primarily for debugging purposes. Moreover, ATC port reads do NOT toggle the ATC address/data + * flip-flop; only writes have that effect. + * + * @this {Video} + * @param {number} port (0x3C1) + * @param {number} [addrFrom] (not defined whenever the Debugger tries to read the specified port) + * @return {number} + */ +Video.prototype.inATCData = function(port, addrFrom) { - var b = this.cardEGA.fATCData? this.cardEGA.regATCData[this.cardEGA.regATCIndx & Card.ATC.INDX_MASK] : this.cardEGA.regATCIndx; + var b = this.cardEGA.regATCData[this.cardEGA.regATCIndx & Card.ATC.INDX_MASK]; if (!addrFrom || this.messageEnabled()) { - this.printMessageIO(Card.ATC.PORT, null, addrFrom, "ATC." + (this.cardEGA.fATCData? this.cardEGA.asATCRegs[this.cardEGA.regATCIndx & Card.ATC.INDX_MASK] : "INDX"), b); + this.printMessageIO(Card.ATC.PORT, null, addrFrom, "ATC." + this.cardEGA.asATCRegs[this.cardEGA.regATCIndx & Card.ATC.INDX_MASK], b); } - this.cardEGA.fATCData = !this.cardEGA.fATCData; return b; }; @@ -6880,8 +6905,8 @@ Video.aCGAPortOutput = { }; Video.aEGAPortInput = { - 0x3C0: Video.prototype.inATC, // technically, only readable on a VGA, but I want the Debugger to be able to read this, too - 0x3C1: Video.prototype.inATC, // technically, only readable on a VGA, but I want the Debugger to be able to read this, too + 0x3C0: Video.prototype.inATCIndx, // technically, only readable on a VGA, but I want the Debugger to be able to read this, too + 0x3C1: Video.prototype.inATCData, // technically, only readable on a VGA, but I want the Debugger to be able to read this, too 0x3C2: Video.prototype.inStatus0, 0x3C4: Video.prototype.inSEQIndx, // technically, only readable on a VGA, but I want the Debugger to be able to read this, too 0x3C5: Video.prototype.inSEQData, // technically, only readable on a VGA, but I want the Debugger to be able to read this, too @@ -6892,7 +6917,7 @@ Video.aEGAPortInput = { /* * WARNING: Unlike the EGA, a standard VGA does not support writes to 0x3C1, but it's easier for me to leave that * ability in place, treating the VGA as a superset of the EGA as much as possible; will any code break because word - * I/O to port 0x3C0 actually works? Possibly, but highly unlikely. + * OUTs to port 0x3C0 (and/or byte OUTs to port 0x3C1) actually work? Possibly, but highly unlikely. */ Video.aEGAPortOutput = { 0x3BA: Video.prototype.outFeat, diff --git a/modules/pcjs/lib/x86func.js b/modules/pcjs/lib/x86func.js index 796b68186c..9712d9c352 100644 --- a/modules/pcjs/lib/x86func.js +++ b/modules/pcjs/lib/x86func.js @@ -562,7 +562,7 @@ X86.fnCALLF = function CALLF(off, sel) { var oldCS = this.getCS(); var oldIP = this.getIP(); - var oldSize = this.segCS.sizeData; + var oldSize = (I386? this.sizeData : 2); if (this.setCSIP(off, sel, true) != null) { this.pushData(oldCS, oldSize); this.pushData(oldIP, oldSize); @@ -1415,6 +1415,10 @@ X86.fnINT = function INT(nIDT, nError, nCycles) var oldIP = this.getIP(); var addr = this.segCS.loadIDT(nIDT); if (addr !== X86.ADDR_INVALID) { + /* + * TODO: Harmonize this with the code in fnCALLF(), which relies on the OPERAND size in + * effect at the time of the call, NOT the size of the new segCS. + */ var size = this.segCS.sizeFrame; this.pushData(oldPS, size); this.pushData(oldCS, size); diff --git a/versions/pcjs/1.19.5/pc-dbg.js b/versions/pcjs/1.19.5/pc-dbg.js index 46d7bcb36e..683497aad7 100644 --- a/versions/pcjs/1.19.5/pc-dbg.js +++ b/versions/pcjs/1.19.5/pc-dbg.js @@ -10,16 +10,16 @@ function Ba(){if(null==Aa){var a=!1;if(window)try{window.localStorage.setItem("P function Ea(a){if(window){var b=window?window.navigator.userAgent:"";return"iOS"==a&&b.match(/(iPod|iPhone|iPad)/)&&b.match(/AppleWebKit/)||"MSIE"==a&&b.match(/(MSIE|Trident)/)||0<=b.indexOf(a)?!0:!1}return!1}function Fa(a,b,c){function d(){--a;0<=a&&(b()||(a=0));0=this.x&&a=this.y&&b=c>>2);d?(b=new yb(a.x,a.y,a.Sc,a.A*b/c|0),a.y+=b.A,a.A-=b.A):(b=new yb(a.x,a.y,a.Sc*b/c|0,a.A),a.x+=b.Sc,a.Sc-=b.Sc);return b}f=wb.prototype;f.Tb=function(a,b,c){return this.pa&&this.pa.Tb(a,b,c)||this.O&&this.O.Tb(a,b,c)||this.P&&this.P.Tb(a,b,c)||this.ga&&this.ga.Tb(a,b,c)?!0:this.parent.Tb.call(this,a,b,c)}; -f.Hc=function(a,b,c,d){this.pa=a;this.na=b;this.O=c;this.ga=d;this.P=Ab(a,"Keyboard")};f.pc=function(a,b){b||Bb();return!0};f.oc=function(){return!0};f.Fe=function(a,b){a.button||(this.fa=b?0:-1,Cb(this,a,b))};f.pf=function(a){Cb(this,a)}; -function Cb(a,b,c){var d=1280/null.offsetWidth,e=720/null.offsetHeight,g=null.getBoundingClientRect(),d=(b.clientX-g.left)*d|0;b=(b.clientY-g.top)*e|0;null==c&&(a.fa||(a.fa=Math.abs(a.X-d)>Math.abs(a.S-b)?1:2),1==a.fa?b=a.S:2==a.fa&&(d=a.X));a.X=d;a.S=b;if(0<=d&&1280>d&&0<=b&&720>b){a:{c=d;if(960>c&&a.A&&a.A.Ae)for(g=0;gd&&(g=d);c=g;break a}c=n}if(c!==n&&(c&=-16,c!=a.Ha)){b=c;if(a.context&&a.ja&&a.qa){e=a.ja.width;a.qa.fillStyle="black";a.qa.fillRect(0,360,e,360);Eb(a,378,a.ja,a.qa);a.sa=a.Ja.width/24|0;if(null==b)Fb(a,"Mouse over memory to dump");else for(Fb(a,"0x"+k(b),null,0,1),g=1;16>=g;g++){d="";for(h=1;8>=h;h++){var m=Gb(a.na,b++);Fb(a,k(m,2),null,1);d+=32<=m&&128>m?String.fromCharCode(m):"."}Fb(a,d,null,0,1)}a.context.drawImage(a.ja,0,360,e,360,a.nb,a.yb,a.Ua,a.bb)}a.Ha=c}}}f.gd=function(){}; -function Hb(a,b,c,d){a.A.lf[a.A.Ti++]={Yj:b,Bd:c,type:d};return sa(Db,b,c,0,d)}function Eb(a,b,c,d){var e,g=null.style.color,h=a.Ra=10;a.B=h;a.Y=b;a.aa=a.Da=18;e||(e=a.Ba||a.Da+"px Monaco, Lucida Console, Courier New");a.Ca=a.Ba=e;c&&(a.Ja=c);d&&(a.R=d,a.La=g||"white")} +function wb(a){Ta.call(this,"Panel",a,wb);this.X=this.S=this.fa=-1}bb(wb);function xb(a,b,c,d){this.A=[a,b,c,d];this.B=null;void 0===a&&(this.A[0]=256*Math.random()|0,this.A[1]=256*Math.random()|0,this.A[2]=256*Math.random()|0,this.A[3]=255,this.B=null)}xb.prototype.toString=function(){this.B||(this.B="#"+k(this.A[0],2)+k(this.A[1],2)+k(this.A[2],2));return this.B};function yb(a,b,c,d){this.x=a;this.y=b;this.Rc=c;this.A=d} +yb.prototype.contains=function(a,b){return a>=this.x&&a=this.y&&b=c>>2);d?(b=new yb(a.x,a.y,a.Rc,a.A*b/c|0),a.y+=b.A,a.A-=b.A):(b=new yb(a.x,a.y,a.Rc*b/c|0,a.A),a.x+=b.Rc,a.Rc-=b.Rc);return b}f=wb.prototype;f.Tb=function(a,b,c){return this.pa&&this.pa.Tb(a,b,c)||this.O&&this.O.Tb(a,b,c)||this.P&&this.P.Tb(a,b,c)||this.ga&&this.ga.Tb(a,b,c)?!0:this.parent.Tb.call(this,a,b,c)}; +f.Hc=function(a,b,c,d){this.pa=a;this.na=b;this.O=c;this.ga=d;this.P=Ab(a,"Keyboard")};f.pc=function(a,b){b||Bb();return!0};f.oc=function(){return!0};f.Ee=function(a,b){a.button||(this.fa=b?0:-1,Cb(this,a,b))};f.pf=function(a){Cb(this,a)}; +function Cb(a,b,c){var d=1280/null.offsetWidth,e=720/null.offsetHeight,g=null.getBoundingClientRect(),d=(b.clientX-g.left)*d|0;b=(b.clientY-g.top)*e|0;null==c&&(a.fa||(a.fa=Math.abs(a.X-d)>Math.abs(a.S-b)?1:2),1==a.fa?b=a.S:2==a.fa&&(d=a.X));a.X=d;a.S=b;if(0<=d&&1280>d&&0<=b&&720>b){a:{c=d;if(960>c&&a.A&&a.A.ze)for(g=0;gd&&(g=d);c=g;break a}c=n}if(c!==n&&(c&=-16,c!=a.Ha)){b=c;if(a.context&&a.ja&&a.qa){e=a.ja.width;a.qa.fillStyle="black";a.qa.fillRect(0,360,e,360);Eb(a,378,a.ja,a.qa);a.sa=a.Ja.width/24|0;if(null==b)Fb(a,"Mouse over memory to dump");else for(Fb(a,"0x"+k(b),null,0,1),g=1;16>=g;g++){d="";for(h=1;8>=h;h++){var m=Gb(a.na,b++);Fb(a,k(m,2),null,1);d+=32<=m&&128>m?String.fromCharCode(m):"."}Fb(a,d,null,0,1)}a.context.drawImage(a.ja,0,360,e,360,a.ob,a.yb,a.Ua,a.bb)}a.Ha=c}}}f.gd=function(){}; +function Hb(a,b,c,d){a.A.lf[a.A.Ti++]={Zj:b,Bd:c,type:d};return sa(Db,b,c,0,d)}function Eb(a,b,c,d){var e,g=null.style.color,h=a.Ra=10;a.B=h;a.Y=b;a.aa=a.Da=18;e||(e=a.Ba||a.Da+"px Monaco, Lucida Console, Courier New");a.Ca=a.Ba=e;c&&(a.Ja=c);d&&(a.R=d,a.La=g||"white")} function Fb(a,b,c,d,e){a.R.font=a.Ca;a.R.fillStyle=a.La;a.R.fillText(b,a.B,a.Y);a.B+=a.sa;null!=c&&(16!=a.jb?b=c.toString():(b=8>a.Oa?"0x":"",b+=k(c,a.Oa)),a.R.fillText(b,a.B,a.Y),a.B+=a.sa);d&&(a.B+=a.sa*d);e&&(a.B=a.Ra,a.Y+=(a.aa+2)*(e||1))}function Bb(){for(var a=!1,b=jb(window.document,"pcjs","panel"),c=0;c=this.X?12:24>=this.X?14:15;this.Kb=1<>2;this.A=this.Kb-1;this.aa=this.da/this.Kb|0;this.pa=this.aa-1;this.P=[];this.R=[];this.na=this.Y=!1;this.fa=[];this.Ca=[];a=new Jb;this.wa=Array(this.aa);for(b=0;b>>a.Qa;0a.Kb?a.Kb:c;if(h&&h.size){if(h.type==d&&h.controller==e){if(b+c<=h.Sa)return h.ye+=h.Sa-b,h.Sa=b,!0;if(b>=h.Sa+h.ye){q=h.size-(b-m);q>c&&(q=c);h.ye=b-h.Sa+q;c-=q;b=m+a.Kb;continue}}return Qb(1,b,c)}h=a.wa[g];b=new Jb(b,q,a.Kb,d,e);Rb(b,h,a.ga);a.wa[g++]=b;b=m+a.Kb;c-=q}return 0>>this.Qa;0>>a.Qa;0>>=a.Qa;0>>a.Qa;0>>this.Qa].wc(a&this.A,a)};function Gb(a,b){return a.wa[(b&a.B)>>>a.Qa].cf(b&a.A,b)} -function dc(a,b){var c=b&a.A,d=(b&a.B)>>>a.Qa;return c!=a.A?a.wa[d].Rg(c,b):a.wa[d++].cf(c,b)|a.wa[d&a.pa].cf(0,b+1)<<8}f.pb=function(a){var b=a&this.A,c=(a&this.B)>>>this.Qa;if(b>>this.Qa].yc(a&this.A,b&255,a)}; -f.Fb=function(a,b){var c=a&this.A,d=(a&this.B)>>>this.Qa;c!=this.A?this.wa[d].Kf(c,b&65535,a):(this.wa[d++].yc(c,b&255,a),this.wa[d&this.pa].yc(0,b>>8&255,a+1))};function ec(a,b,c){var d=b&a.A,e=(b&a.B)>>>a.Qa;d!=a.A?a.wa[e].Ni(d,c&65535,b):(a.wa[e++].Jf(d,c&255,b),a.wa[e&a.pa].Jf(0,c>>8&255,b+1))}function fc(a,b){if(void 0===b)return a.na=!a.na,a.na;void 0===a.P[b]&&(a.P[b]=[null,!1]);a.P[b][1]=!a.P[b][1];return a.P[b][1]} +function Ib(a,b,c){Ta.call(this,"Bus",a,Ib);this.O=b;this.ga=c;this.X=a.buswidth||20;this.da=Math.pow(2,this.X);this.Zf=this.B=this.da-1|0;this.Qa=32==this.X||20>=this.X?12:24>=this.X?14:15;this.Kb=1<>2;this.A=this.Kb-1;this.aa=this.da/this.Kb|0;this.pa=this.aa-1;this.P=[];this.R=[];this.na=this.Y=!1;this.fa=[];this.Ca=[];a=new Jb;this.xa=Array(this.aa);for(b=0;b>>a.Qa;0a.Kb?a.Kb:c;if(h&&h.size){if(h.type==d&&h.controller==e){if(b+c<=h.Sa)return h.xe+=h.Sa-b,h.Sa=b,!0;if(b>=h.Sa+h.xe){q=h.size-(b-m);q>c&&(q=c);h.xe=b-h.Sa+q;c-=q;b=m+a.Kb;continue}}return Qb(1,b,c)}h=a.xa[g];b=new Jb(b,q,a.Kb,d,e);Rb(b,h,a.ga);a.xa[g++]=b;b=m+a.Kb;c-=q}return 0>>this.Qa;0>>a.Qa;0>>=a.Qa;0>>a.Qa;0>>this.Qa].wc(a&this.A,a)};function Gb(a,b){return a.xa[(b&a.B)>>>a.Qa].cf(b&a.A,b)} +function dc(a,b){var c=b&a.A,d=(b&a.B)>>>a.Qa;return c!=a.A?a.xa[d].Rg(c,b):a.xa[d++].cf(c,b)|a.xa[d&a.pa].cf(0,b+1)<<8}f.lb=function(a){var b=a&this.A,c=(a&this.B)>>>this.Qa;if(b>>this.Qa].yc(a&this.A,b&255,a)}; +f.Fb=function(a,b){var c=a&this.A,d=(a&this.B)>>>this.Qa;c!=this.A?this.xa[d].Kf(c,b&65535,a):(this.xa[d++].yc(c,b&255,a),this.xa[d&this.pa].yc(0,b>>8&255,a+1))};function ec(a,b,c){var d=b&a.A,e=(b&a.B)>>>a.Qa;d!=a.A?a.xa[e].Ni(d,c&65535,b):(a.xa[e++].Jf(d,c&255,b),a.xa[e&a.pa].Jf(0,c>>8&255,b+1))}function fc(a,b){if(void 0===b)return a.na=!a.na,a.na;void 0===a.P[b]&&(a.P[b]=[null,!1]);a.P[b][1]=!a.P[b][1];return a.P[b][1]} function gc(a,b,c,d){void 0===d&&(d=0);for(var e in c){var g=a,h=+e+d,m=c[e].bind(b);if(void 0!==m)for(var q=+e+d;q<=h;q++)void 0!==g.P[q]?ya("Input port "+ga(q)+" already registered"):g.P[q]=[m,!1]}}function hc(a,b,c,d){for(var e=0,g=0;0>>=g)&q;if(void 0!==h){if(h[0])h[0](b,q,e);a.ga&&a.Y!=h[1]&&mc(a.ga,b,q)}else a.ga&&(kb(a.ga,a,b,q,e),a.Y&&mc(a.ga,b,q));g+=m<<3;b+=m;c-=m}}function Qb(a,b,c){ya("Memory block error ("+a+","+k(b)+","+k(c)+")");return!1}var nc;if(ub){var oc=new ArrayBuffer(2);(new DataView(oc)).setUint16(0,256,!0);nc=256===(new Uint16Array(oc))[0]}else nc=!1;var $b=nc; -function Jb(a,b,c,d,e,g){this.id=pc+=2;this.ia=null;this.A=0;this.Sa=a;this.ye=b;this.size=c||0;this.type=d||qc;this.na=d==Zb;this.controller=null;this.O=g;this.fb=this.dj=!1;this.da=this.fa=0;rc(this);if(c)if(e)this.controller=e,a=e.hj(a),this.ia=a[0],this.A=a[1],Ub(this,e.uh());else if(ub)this.pa=new ArrayBuffer(c),this.Y=new DataView(this.pa,0,c),this.B=new Uint8Array(this.pa,0,c),this.Ca=new Uint16Array(this.pa,0,c>>1),this.ia=new Int32Array(this.pa,0,c>>2),Ub(this,$b?ac:bc);else{this.ia=Array(c>> -2);for(e=0;e>8&65280|a>>>24);return a} -Jb.prototype={constructor:Jb,parent:null,save:function(){var a,b;if(this.controller)a=null;else if(ub)for(a=Array(this.size>>2),b=0;b>>=g)&q;if(void 0!==h){if(h[0])h[0](b,q,e);a.ga&&a.Y!=h[1]&&mc(a.ga,b,q)}else a.ga&&(kb(a.ga,a,b,q,e),a.Y&&mc(a.ga,b,q));g+=m<<3;b+=m;c-=m}}function Qb(a,b,c){ya("Memory block error ("+a+","+k(b)+","+k(c)+")");return!1}var nc;if(rb){var oc=new ArrayBuffer(2);(new DataView(oc)).setUint16(0,256,!0);nc=256===(new Uint16Array(oc))[0]}else nc=!1;var $b=nc; +function Jb(a,b,c,d,e,g){this.id=pc+=2;this.ia=null;this.A=0;this.Sa=a;this.xe=b;this.size=c||0;this.type=d||qc;this.na=d==Zb;this.controller=null;this.O=g;this.fb=this.dj=!1;this.da=this.fa=0;rc(this);if(c)if(e)this.controller=e,a=e.hj(a),this.ia=a[0],this.A=a[1],Ub(this,e.uh());else if(rb)this.pa=new ArrayBuffer(c),this.Y=new DataView(this.pa,0,c),this.B=new Uint8Array(this.pa,0,c),this.Ca=new Uint16Array(this.pa,0,c>>1),this.ia=new Int32Array(this.pa,0,c>>2),Ub(this,$b?ac:bc);else{this.ia=Array(c>> +2);for(e=0;e>8&65280|a>>>24);return a} +Jb.prototype={constructor:Jb,parent:null,save:function(){var a,b;if(this.controller)a=null;else if(rb)for(a=Array(this.size>>2),b=0;b>8,c)},qa:function(a,b,c){this.yc(a++,b&255, c++);this.yc(a++,b>>8&255,c++);this.yc(a++,b>>16&255,c++);this.yc(a,b>>>24,c)},Ma:function(a){return this.ia[a>>2]>>>((a&3)<<3)&255},tb:function(a){var b=a>>2;a=(a&3)<<3;var c=this.ia[b]>>a;return 24>a?c&65535:c&255|(this.ia[b+1]&255)<<8},bb:function(a){var b=a>>2;a=(a&3)<<3;var c=this.ia[b];a&&(c=c>>>a|this.ia[b+1]<<32-a);return c},hc:function(a,b){var c=a>>2,d=(a&3)<<3;this.ia[c]=this.ia[c]&~(255<>2,d=(a&3)<<3;24>d?this.ia[c]=this.ia[c]&~(65535<>8);this.fb=!0},Nc:function(a,b){var c=a>>2,d=(a&3)<<3;if(d){var e=-1<>>32-d}else this.ia[c]=b;this.fb=!0},Ja:function(a,b){this.ga&&Bc(this.ga,b)||this.O&&Cc(this.O,b,1,!1);return this.cf(a,b)},jb:function(a,b){this.ga&&Bc(this.ga,b,2)||this.O&&Cc(this.O,b,2,!1);return this.Rg(a,b)},Ua:function(a,b){this.ga&&Bc(this.ga,b,4)||this.O&&Cc(this.O,b,4,!1);return this.Ji(a, -b)},Yb:function(a,b,c){this.ga&&Dc(this.ga,c)||this.O&&Cc(this.O,c,1,!0);this.na?this.aa(a,b,c):this.Jf(a,b,c)},kd:function(a,b,c){this.ga&&Dc(this.ga,c,2)||this.O&&Cc(this.O,c,2,!0);this.na?this.aa(a,b,c):this.Ni(a,b,c)},Lc:function(a,b,c){this.ga&&Dc(this.ga,c,4)||this.O&&Cc(this.O,c,4,!0);this.na?this.aa(a,b,c):this.Ea(a,b,c)},Na:function(a,b){this.P.ia[this.X]|=this.ya;this.R.ia[this.S]|=this.ya;return this.fe.wc(a,b)},yb:function(a,b){this.P.ia[this.X]|=this.ya;this.R.ia[this.S]|=this.ya;return this.fe.Qg(a, -b)},eb:function(a,b){this.P.ia[this.X]|=this.ya;this.R.ia[this.S]|=this.ya;return this.fe.te(a,b)},zc:function(a,b,c){this.P.ia[this.X]|=this.ya;this.R.ia[this.S]|=this.ja;this.fe.yc(a,b,c)},od:function(a,b,c){this.P.ia[this.X]|=this.ya;this.R.ia[this.S]|=this.ja;this.fe.Kf(a,b,c)},$c:function(a,b,c){this.P.ia[this.X]|=this.ya;this.R.ia[this.S]|=this.ja;this.fe.ah(a,b,c)},Oa:function(a,b){return Ec(this.O,b,!1).wc(a,b)},Db:function(a,b){return Ec(this.O,b,!1).Qg(a,b)},Ec:function(a,b){return Ec(this.O, -b,!1).te(a,b)},Kc:function(a,b,c){Ec(this.O,c,!0).yc(a,b,c)},xd:function(a,b,c){Ec(this.O,c,!0).Kf(a,b,c)},jd:function(a,b,c){Ec(this.O,c,!0).ah(a,b,c)},Ha:function(a){return this.B[a]},La:function(a){return this.B[a]},ib:function(a){return this.Y.getUint16(a,!0)},nb:function(a){return a&1?this.B[a]|this.B[a+1]<<8:this.Ca[a>>1]},Ra:function(a){return this.Y.getInt32(a,!0)},Za:function(a){return a&3?this.B[a]|this.B[a+1]<<8|this.B[a+2]<<16|this.B[a+3]<<24:this.ia[a>>2]},Ub:function(a,b){this.B[a]= -b;this.fb=!0},ac:function(a,b){this.B[a]=b;this.fb=!0},hd:function(a,b){this.Y.setUint16(a,b,!0);this.fb=!0},md:function(a,b){a&1?(this.B[a]=b,this.B[a+1]=b>>8):this.Ca[a>>1]=b;this.fb=!0},Pd:function(a,b){this.Y.setInt32(a,b,!0);this.fb=!0},Mc:function(a,b){a&3?(this.B[a]=b,this.B[a+1]=b>>8,this.B[a+2]=b>>16,this.B[a+3]=b>>24):this.ia[a>>2]=b;this.fb=!0}};function Rb(a,b,c){b&&(c&&(a.ga=c),b.O&&(a.O=b.O),(a.da=b.da)&&vc(a,wc,!1),(a.fa=b.fa)&&Ac(a,wc,!1))} -function Fc(a,b){b?0===--a.fa&&(a.yc=a.na?a.aa:a.Jf,a.Kf=a.na?a.sa:a.Ni,a.ah=a.na?a.qa:a.Ea):0===--a.da&&(a.wc=a.cf,a.Qg=a.Rg,a.te=a.Ji)}function rc(a,b,c,d,e,g){a.fe=b;a.P=c;a.X=d>>2;a.R=e;a.S=g>>2;a.ja=b?uc(Gc|Hc):0;a.ya=b?uc(Gc):0}function Ac(a,b,c){c&&a.fa||(a.yc=!a.na&&b[3]||a.aa,a.Kf=!a.na&&b[4]||a.sa,a.ah=!a.na&&b[5]||a.qa);if(c||void 0===c)a.Jf=b[3]||a.aa,a.Ni=b[4]||a.sa,a.Ea=b[5]||a.qa} -function vc(a,b,c){c&&a.da||(a.wc=b[0]||a.Ba,a.Qg=b[1]||a.Da,a.te=b[2]||a.ua);if(c||void 0===c)a.cf=b[0]||a.Ba,a.Rg=b[1]||a.Da,a.Ji=b[2]||a.ua}function Ub(a,b,c){b||(b=5==a.type?Ic:6==a.type?Jc:Kc);vc(a,b,c);Ac(a,b,c)} -var Kc=[],cc=[Jb.prototype.Ma,Jb.prototype.tb,Jb.prototype.bb,Jb.prototype.hc,Jb.prototype.nd,Jb.prototype.Nc],wc=[Jb.prototype.Ja,Jb.prototype.jb,Jb.prototype.Ua,Jb.prototype.Yb,Jb.prototype.kd,Jb.prototype.Lc],Jc=[Jb.prototype.Na,Jb.prototype.yb,Jb.prototype.eb,Jb.prototype.zc,Jb.prototype.od,Jb.prototype.$c],Ic=[Jb.prototype.Oa,Jb.prototype.Db,Jb.prototype.Ec,Jb.prototype.Kc,Jb.prototype.xd,Jb.prototype.jd]; -if(ub)var bc=[Jb.prototype.Ha,Jb.prototype.ib,Jb.prototype.Ra,Jb.prototype.Ub,Jb.prototype.hd,Jb.prototype.Pd],ac=[Jb.prototype.La,Jb.prototype.nb,Jb.prototype.Za,Jb.prototype.ac,Jb.prototype.md,Jb.prototype.Mc]; -function Lc(a,b){Ta.call(this,"CPU",a,Lc,1);var c=a.cycles||b,d=a.multiplier||1;this.Z={};this.Z.yd=c;this.Z.Fd=d;this.Z.Wf=Math.round(this.Z.yd/1E4)/100;this.Z.pe=this.Z.Wf*this.Z.Fd;this.oa.Eb=!1;this.oa.sh=!1;this.oa.oh=a.autoStart;this.oa.ej=!1;c=Wa.autostart;void 0!==c&&(this.oa.oh="true"==c?!0:"false"==c?!1:null);this.oa.He=!1;this.Z.qf=this.Z.Se=0;this.Z.rf=a.csStart;this.Z.Re=a.csInterval;this.Z.Te=a.csStop;this.$c=[];var e=this;this.dh=function(){e.ve()};ob(this)}bb(Lc);f=Lc.prototype; -f.Hc=function(a,b,c,d){this.na=b;this.ga=d;this.pa=a;for(b=null;b=Ab(a,"Video",b);)this.$c.push(b);this.X=Ab(a,"ChipSet");ob(this)};f.reset=function(){};f.save=function(){return null};f.restore=function(){return!1};f.pc=function(a,b){if(!b){if(a&&this.restore){Mc(this);if(!this.restore(a))return!1;Nc(this)}else this.reset();this.ga?this.ga.$k():this.V("No debugger detected")}Oc(this);return!0};f.oc=function(a){return a&&this.save?this.save():!0}; -function Sc(a){(!0===a.oa.oh||null===a.oa.oh&&!a.ga&&void 0===a.ya.run)&&a.ve()}f.gj=function(){return 0};function Nc(a){void 0===a.Z.rf&&(a.Z.rf=0);void 0===a.Z.Re&&(a.Z.Re=-1);void 0===a.Z.Te&&(a.Z.Te=-1);a.oa.He=0<=a.Z.rf&&0=a.Z.Se&&(a.Z.Se+=a.Z.Re,c=!0);0<=a.Z.Te&&a.Z.Te<=Uc(a)&&(a.Z.Re=a.Z.Te=-1,Nc(a),a.Xb(),c=!0);c&&a.V(Uc(a)+" cycles: checksum="+k(a.Z.qf))}} +b<>8);this.fb=!0},Mc:function(a,b){var c=a>>2,d=(a&3)<<3;if(d){var e=-1<>>32-d}else this.ia[c]=b;this.fb=!0},Ja:function(a,b){this.ga&&Bc(this.ga,b)||this.O&&Cc(this.O,b,1,!1);return this.cf(a,b)},jb:function(a,b){this.ga&&Bc(this.ga,b,2)||this.O&&Cc(this.O,b,2,!1);return this.Rg(a,b)},Ua:function(a,b){this.ga&&Bc(this.ga,b,4)||this.O&&Cc(this.O,b,4,!1);return this.Ji(a, +b)},Yb:function(a,b,c){this.ga&&Dc(this.ga,c)||this.O&&Cc(this.O,c,1,!0);this.na?this.aa(a,b,c):this.Jf(a,b,c)},kd:function(a,b,c){this.ga&&Dc(this.ga,c,2)||this.O&&Cc(this.O,c,2,!0);this.na?this.aa(a,b,c):this.Ni(a,b,c)},Kc:function(a,b,c){this.ga&&Dc(this.ga,c,4)||this.O&&Cc(this.O,c,4,!0);this.na?this.aa(a,b,c):this.Ea(a,b,c)},Na:function(a,b){this.P.ia[this.X]|=this.ya;this.R.ia[this.S]|=this.ya;return this.ee.wc(a,b)},yb:function(a,b){this.P.ia[this.X]|=this.ya;this.R.ia[this.S]|=this.ya;return this.ee.Qg(a, +b)},eb:function(a,b){this.P.ia[this.X]|=this.ya;this.R.ia[this.S]|=this.ya;return this.ee.se(a,b)},zc:function(a,b,c){this.P.ia[this.X]|=this.ya;this.R.ia[this.S]|=this.ja;this.ee.yc(a,b,c)},od:function(a,b,c){this.P.ia[this.X]|=this.ya;this.R.ia[this.S]|=this.ja;this.ee.Kf(a,b,c)},$c:function(a,b,c){this.P.ia[this.X]|=this.ya;this.R.ia[this.S]|=this.ja;this.ee.ah(a,b,c)},Oa:function(a,b){return Ec(this.O,b,!1).wc(a,b)},Db:function(a,b){return Ec(this.O,b,!1).Qg(a,b)},Ec:function(a,b){return Ec(this.O, +b,!1).se(a,b)},Jc:function(a,b,c){Ec(this.O,c,!0).yc(a,b,c)},wd:function(a,b,c){Ec(this.O,c,!0).Kf(a,b,c)},jd:function(a,b,c){Ec(this.O,c,!0).ah(a,b,c)},Ha:function(a){return this.B[a]},La:function(a){return this.B[a]},ib:function(a){return this.Y.getUint16(a,!0)},ob:function(a){return a&1?this.B[a]|this.B[a+1]<<8:this.Ca[a>>1]},Ra:function(a){return this.Y.getInt32(a,!0)},Za:function(a){return a&3?this.B[a]|this.B[a+1]<<8|this.B[a+2]<<16|this.B[a+3]<<24:this.ia[a>>2]},Ub:function(a,b){this.B[a]= +b;this.fb=!0},ac:function(a,b){this.B[a]=b;this.fb=!0},hd:function(a,b){this.Y.setUint16(a,b,!0);this.fb=!0},md:function(a,b){a&1?(this.B[a]=b,this.B[a+1]=b>>8):this.Ca[a>>1]=b;this.fb=!0},Od:function(a,b){this.Y.setInt32(a,b,!0);this.fb=!0},Lc:function(a,b){a&3?(this.B[a]=b,this.B[a+1]=b>>8,this.B[a+2]=b>>16,this.B[a+3]=b>>24):this.ia[a>>2]=b;this.fb=!0}};function Rb(a,b,c){b&&(c&&(a.ga=c),b.O&&(a.O=b.O),(a.da=b.da)&&vc(a,wc,!1),(a.fa=b.fa)&&Ac(a,wc,!1))} +function Fc(a,b){b?0===--a.fa&&(a.yc=a.na?a.aa:a.Jf,a.Kf=a.na?a.sa:a.Ni,a.ah=a.na?a.qa:a.Ea):0===--a.da&&(a.wc=a.cf,a.Qg=a.Rg,a.se=a.Ji)}function rc(a,b,c,d,e,g){a.ee=b;a.P=c;a.X=d>>2;a.R=e;a.S=g>>2;a.ja=b?uc(Gc|Hc):0;a.ya=b?uc(Gc):0}function Ac(a,b,c){c&&a.fa||(a.yc=!a.na&&b[3]||a.aa,a.Kf=!a.na&&b[4]||a.sa,a.ah=!a.na&&b[5]||a.qa);if(c||void 0===c)a.Jf=b[3]||a.aa,a.Ni=b[4]||a.sa,a.Ea=b[5]||a.qa} +function vc(a,b,c){c&&a.da||(a.wc=b[0]||a.Ba,a.Qg=b[1]||a.Da,a.se=b[2]||a.ua);if(c||void 0===c)a.cf=b[0]||a.Ba,a.Rg=b[1]||a.Da,a.Ji=b[2]||a.ua}function Ub(a,b,c){b||(b=5==a.type?Ic:6==a.type?Jc:Kc);vc(a,b,c);Ac(a,b,c)} +var Kc=[],cc=[Jb.prototype.Ma,Jb.prototype.tb,Jb.prototype.bb,Jb.prototype.hc,Jb.prototype.nd,Jb.prototype.Mc],wc=[Jb.prototype.Ja,Jb.prototype.jb,Jb.prototype.Ua,Jb.prototype.Yb,Jb.prototype.kd,Jb.prototype.Kc],Jc=[Jb.prototype.Na,Jb.prototype.yb,Jb.prototype.eb,Jb.prototype.zc,Jb.prototype.od,Jb.prototype.$c],Ic=[Jb.prototype.Oa,Jb.prototype.Db,Jb.prototype.Ec,Jb.prototype.Jc,Jb.prototype.wd,Jb.prototype.jd]; +if(rb)var bc=[Jb.prototype.Ha,Jb.prototype.ib,Jb.prototype.Ra,Jb.prototype.Ub,Jb.prototype.hd,Jb.prototype.Od],ac=[Jb.prototype.La,Jb.prototype.ob,Jb.prototype.Za,Jb.prototype.ac,Jb.prototype.md,Jb.prototype.Lc]; +function Lc(a,b){Ta.call(this,"CPU",a,Lc,1);var c=a.cycles||b,d=a.multiplier||1;this.Z={};this.Z.xd=c;this.Z.Fd=d;this.Z.Wf=Math.round(this.Z.xd/1E4)/100;this.Z.oe=this.Z.Wf*this.Z.Fd;this.oa.Eb=!1;this.oa.sh=!1;this.oa.oh=a.autoStart;this.oa.ej=!1;c=Wa.autostart;void 0!==c&&(this.oa.oh="true"==c?!0:"false"==c?!1:null);this.oa.He=!1;this.Z.qf=this.Z.Se=0;this.Z.rf=a.csStart;this.Z.Re=a.csInterval;this.Z.Te=a.csStop;this.$c=[];var e=this;this.dh=function(){e.ue()};ob(this)}bb(Lc);f=Lc.prototype; +f.Hc=function(a,b,c,d){this.na=b;this.ga=d;this.pa=a;for(b=null;b=Ab(a,"Video",b);)this.$c.push(b);this.X=Ab(a,"ChipSet");ob(this)};f.reset=function(){};f.save=function(){return null};f.restore=function(){return!1};f.pc=function(a,b){if(!b){if(a&&this.restore){Mc(this);if(!this.restore(a))return!1;Nc(this)}else this.reset();this.ga?this.ga.al():this.V("No debugger detected")}Oc(this);return!0};f.oc=function(a){return a&&this.save?this.save():!0}; +function Pc(a){(!0===a.oa.oh||null===a.oa.oh&&!a.ga&&void 0===a.ya.run)&&a.ue()}f.gj=function(){return 0};function Nc(a){void 0===a.Z.rf&&(a.Z.rf=0);void 0===a.Z.Re&&(a.Z.Re=-1);void 0===a.Z.Te&&(a.Z.Te=-1);a.oa.He=0<=a.Z.rf&&0=a.Z.Se&&(a.Z.Se+=a.Z.Re,c=!0);0<=a.Z.Te&&a.Z.Te<=Uc(a)&&(a.Z.Re=a.Z.Te=-1,Nc(a),a.Xb(),c=!0);c&&a.V(Uc(a)+" cycles: checksum="+k(a.Z.qf))}} f.gd=function(){this.pa&&this.pa.Id&&this.pa.Id.gd()}; -function Vc(a,b){for(var c=0;c>>d.Qa;g=g+h-1>>>d.Qa;e.nh=0;for(e.Bd=0;m<=g;)h=d.wa[m],e.nh+=h.size,h.size&&(e.fh.push(sa(Db,m,0,0,h.type)),e.Bd++),m++;c.A=e;c.Ea=c.A.Bd*c.na.Kb/691200;d=0;c.A.Ti=0;c.A.lf||(c.A.lf=[]);var e=-1,m=0,q=-1;for(g=0;g>1),q=h.y+(h.A>>1),r=h.A,h.Sc< -h.A&&(r=h.Sc,m.ua=!0,m.R.save(),m.R.translate(g,q),m.R.rotate(-Math.PI/2),g=q=0),r>1,m.Y+=(m.aa>>1)-2,Fb(m,e),m.ua&&(m.R.restore(),m.ua=!1)}}else Fb(c,"This space intentionally left blank");c.context.drawImage(c.da,0,0,c.da.width,c.da.height,c.tb,c.Db,c.Za,c.eb);c.Na=!1}}f.Yc=function(){this.$c.length&&this.$c[0].Yc()}; -f.Tb=function(a,b,c){var d=this;a=!1;switch(b){case "run":this.ya[b]=c;c.onclick=function(){var a;if(a=d.pa)if(a=d.pa,a.oa.mc)a=!0;else{var b=null,c,m=eb(a.id);for(c=0;cc&&(c=60);2>c&&(c=2);var d=1;b&&1a.Z.Wf&&(c=Math.round(c/a.Z.Fd));return c}function Mc(a){a.Z.$d=0;a.hc=a.ac=a.ib=a.A=0;Nc(a);Yc(a,1)} -function Yc(a,b,c){var d=!1;if(void 0!==b){.8>a.Z.$d/a.Z.pe?b=1:d=!0;a.Z.Fd=b;b=a.Z.Wf*a.Z.Fd;if(a.Z.pe!=b){a.Z.pe=b;b=a.Z.pe.toFixed(2)+"Mhz";var e=a.ya.setSpeed;e&&(e.textContent=b);a.V("target speed: "+b)}c&&a.Yc()}$c(a,a.ac);a.ac=0;a.Z.Qe=pa();a.Z.qe=0;ad(a);return d} -f.ve=function(a){if(mb(this,!0)){if(!this.oa.Eb){Yc(this);this.pa&&this.pa.start(this.Z.Qe,Uc(this));this.oa.Eb=!0;this.oa.sh=!0;this.X&&bd(this.X);var b=this.ya.run;b&&(b.textContent="Halt");this.gd(!0);a&&this.Yc()}this.Z.Ch>=this.Z.yd&&ad(this,!0);this.Z.uf=0;this.Z.Xf=pa();this.Z.qe&&(a=this.Z.Xf-this.Z.qe,a>this.Z.lj&&(this.Z.Qe+=a,this.Z.Qe>this.Z.Xf&&(this.Z.Qe=this.Z.Xf)));try{do{var c=this.oa.He?1:this.Z.jl;if(this.X){cd(this.X);var d=this.X;a=c;var e=d.X[0];if(e.ie){var g=(Uc(d.O,d.ua)- -e.sd)/d.nb|0,h=dd(d,0)-g;6==e.mode&&(h-=g);var m=h*d.nb|0;6==e.mode&&(m>>=1);a>m&&(a=m)}var c=a,q=this.X;a=c;if(q.A&&q.A[11]&64){var r=q.Ja-Uc(q.O,q.ua);0r&&(a=r)}c=a}try{this.gf(c)}catch(x){if("number"!=typeof x)throw x;}var E=this.ib-this.A;this.ac+=E;this.Z.uf+=E;$c(this,0,!0);Tc(this,E);this.Z.tf-=E;0>=this.Z.tf&&(this.Z.tf+=this.Z.nj,Vc(this));this.Z.sf-=E;0>=this.Z.sf&&(this.Z.sf+=this.Z.mj,this.gd());this.Z.Ue-=E;if(0>=this.Z.Ue){this.Z.Ue+=this.Z.Bh;break}}while(this.oa.Eb)}catch(B){this.Xb(); -Oc(this);this.pa&&this.pa.stop(pa(),Uc(this));mb(this,!1);qb(this,B.stack||B.message);return}c=setTimeout;d=this.dh;this.Z.qe=pa();e=this.Z.lj;this.Z.uf&&(e=Math.round(e*this.Z.uf/this.Z.Bh));e-=this.Z.qe-this.Z.Xf;if(g=this.Z.qe-this.Z.Qe)this.Z.$d=Math.round(this.ac/(10*g))/100,864E5<=g&&(this.hc=0,this.X&&cd(this.X,!0),Yc(this));if(0>e||this.Z.$d>>d.Qa;g=g+h-1>>>d.Qa;e.nh=0;for(e.Bd=0;m<=g;)h=d.xa[m],e.nh+=h.size,h.size&&(e.fh.push(sa(Db,m,0,0,h.type)),e.Bd++),m++;c.A=e;c.Ea=c.A.Bd*c.na.Kb/691200;d=0;c.A.Ti=0;c.A.lf||(c.A.lf=[]);var e=-1,m=0,q=-1;for(g=0;g>1),q=h.y+(h.A>>1),r=h.A,h.Rc< +h.A&&(r=h.Rc,m.ua=!0,m.R.save(),m.R.translate(g,q),m.R.rotate(-Math.PI/2),g=q=0),r>1,m.Y+=(m.aa>>1)-2,Fb(m,e),m.ua&&(m.R.restore(),m.ua=!1)}}else Fb(c,"This space intentionally left blank");c.context.drawImage(c.da,0,0,c.da.width,c.da.height,c.tb,c.Db,c.Za,c.eb);c.Na=!1}}f.Xc=function(){this.$c.length&&this.$c[0].Xc()}; +f.Tb=function(a,b,c){var d=this;a=!1;switch(b){case "run":this.ya[b]=c;c.onclick=function(){var a;if(a=d.pa)if(a=d.pa,a.oa.mc)a=!0;else{var b=null,c,m=eb(a.id);for(c=0;cc&&(c=60);2>c&&(c=2);var d=1;b&&1a.Z.Wf&&(c=Math.round(c/a.Z.Fd));return c}function Mc(a){a.Z.Zd=0;a.hc=a.ac=a.ib=a.A=0;Nc(a);Yc(a,1)} +function Yc(a,b,c){var d=!1;if(void 0!==b){.8>a.Z.Zd/a.Z.oe?b=1:d=!0;a.Z.Fd=b;b=a.Z.Wf*a.Z.Fd;if(a.Z.oe!=b){a.Z.oe=b;b=a.Z.oe.toFixed(2)+"Mhz";var e=a.ya.setSpeed;e&&(e.textContent=b);a.V("target speed: "+b)}c&&a.Xc()}$c(a,a.ac);a.ac=0;a.Z.Qe=pa();a.Z.pe=0;ad(a);return d} +f.ue=function(a){if(mb(this,!0)){if(!this.oa.Eb){Yc(this);this.pa&&this.pa.start(this.Z.Qe,Uc(this));this.oa.Eb=!0;this.oa.sh=!0;this.X&&bd(this.X);var b=this.ya.run;b&&(b.textContent="Halt");this.gd(!0);a&&this.Xc()}this.Z.Ch>=this.Z.xd&&ad(this,!0);this.Z.uf=0;this.Z.Xf=pa();this.Z.pe&&(a=this.Z.Xf-this.Z.pe,a>this.Z.kj&&(this.Z.Qe+=a,this.Z.Qe>this.Z.Xf&&(this.Z.Qe=this.Z.Xf)));try{do{var c=this.oa.He?1:this.Z.ll;if(this.X){cd(this.X);var d=this.X;a=c;var e=d.X[0];if(e.he){var g=(Uc(d.O,d.ua)- +e.sd)/d.ob|0,h=dd(d,0)-g;6==e.mode&&(h-=g);var m=h*d.ob|0;6==e.mode&&(m>>=1);a>m&&(a=m)}var c=a,q=this.X;a=c;if(q.A&&q.A[11]&64){var r=q.Ja-Uc(q.O,q.ua);0r&&(a=r)}c=a}try{this.gf(c)}catch(x){if("number"!=typeof x)throw x;}var E=this.ib-this.A;this.ac+=E;this.Z.uf+=E;$c(this,0,!0);Tc(this,E);this.Z.tf-=E;0>=this.Z.tf&&(this.Z.tf+=this.Z.mj,Vc(this));this.Z.sf-=E;0>=this.Z.sf&&(this.Z.sf+=this.Z.lj,this.gd());this.Z.Ue-=E;if(0>=this.Z.Ue){this.Z.Ue+=this.Z.Bh;break}}while(this.oa.Eb)}catch(B){this.Xb(); +Oc(this);this.pa&&this.pa.stop(pa(),Uc(this));mb(this,!1);qb(this,B.stack||B.message);return}c=setTimeout;d=this.dh;this.Z.pe=pa();e=this.Z.kj;this.Z.uf&&(e=Math.round(e*this.Z.uf/this.Z.Bh));e-=this.Z.pe-this.Z.Xf;if(g=this.Z.pe-this.Z.Qe)this.Z.Zd=Math.round(this.ac/(10*g))/100,864E5<=g&&(this.hc=0,this.X&&cd(this.X,!0),Yc(this));if(0>e||this.Z.Zdthis.id&&p.call(e,13,a&65532)}return n};f.gl=function(a){var b=this.O;a=b.cd+(a<<2);var c=b.va(a);this.Xg=2;b.ca&=-769;return this.load(b.va(a+2))+c|0}; -f.fl=function(a){var b=this.O;a<<=3;var c=b.cd+a|0;if(7<=(b.Sd-c|0))return this.P=!0,a=id(this,c,a),a!==n&&(a+=this.Bf),a;p.call(b,13,a|2);return n};f.Vi=function(a){return this.Fa+a|0};f.Xi=function(a){return this.Fa+a|0};f.Ui=function(a,b){return(a>>>0)+b<=this.$b?this.Fa+a|0:this.Qf()};f.Nj=function(a,b){return(a>>>0)+b>this.$b?this.Fa+a|0:this.Qf()};f.Qf=function(){p.call(this.O,13,0);return n};f.Wi=function(a,b){return(a>>>0)+b<=this.$b?this.Fa+a|0:this.Rf()}; -f.Oj=function(a,b){return(a>>>0)+b>this.$b?this.Fa+a|0:this.Rf()};f.Rf=function(){p.call(this.O,13,0);return n};function jd(a,b,c){var d=a.O,e=d.va(b+2),g=d.va(b)|(e&255)<<16,d=d.va(b+4);a.ea=c;a.Fa=g;a.Va=d;a.$b=(d>>>0)+1;a.zb=e;a.type=e&7936;a.ext=0;a.Zb=b;gd(a,!0)} +function ed(a,b,c,d){this.O=a;this.ga=a.ga;this.id=b;this.Hf=c||"";this.ea=0;this.Va=65535;this.$b=this.Va+1;this.Rb=this.Bc=this.ext=this.zb=this.type=this.Fa=0;this.Zb=n;this.ha=this.Yc=2;this.C=this.Ga=65535;this.na=this.vh;this.X=this.Vi;this.S=this.Xi;this.A={ea:0,Fa:0,Va:0,zb:0,type:0,ext:0,Zb:n};this.id==fd&&(this.Bf=0,this.P=null,this.Me=!1,this.Xg=2,this.R=Array(32),this.B=[]);gd(this,!0,d)}var fd=1;function hd(a,b){a.B.push(b);return[a.B.length,1]}f=ed.prototype; +f.vh=function(a){this.ea=a&65535;return this.Fa=this.ea<<4};f.Vf=function(a,b){var c,d,e=this.O;a&=65535;a&4?(c=e.Dc.Fa,d=c+e.Dc.Va|0):(c=e.bd,d=e.Qd);if(c){c=c+(a&65528)|0;if(d-c|0)return e.A-=15,id(this,c,a,b);6>this.id&&p.call(e,13,a&65532)}return n};f.il=function(a){var b=this.O;a=b.cd+(a<<2);var c=b.va(a);this.Xg=2;b.ca&=-769;return this.load(b.va(a+2))+c|0}; +f.hl=function(a){var b=this.O;a<<=3;var c=b.cd+a|0;if(7<=(b.Rd-c|0))return this.P=!0,a=id(this,c,a),a!==n&&(a+=this.Bf),a;p.call(b,13,a|2);return n};f.Vi=function(a){return this.Fa+a|0};f.Xi=function(a){return this.Fa+a|0};f.Ui=function(a,b){return(a>>>0)+b<=this.$b?this.Fa+a|0:this.Qf()};f.Oj=function(a,b){return(a>>>0)+b>this.$b?this.Fa+a|0:this.Qf()};f.Qf=function(){p.call(this.O,13,0);return n};f.Wi=function(a,b){return(a>>>0)+b<=this.$b?this.Fa+a|0:this.Rf()}; +f.Pj=function(a,b){return(a>>>0)+b>this.$b?this.Fa+a|0:this.Rf()};f.Rf=function(){p.call(this.O,13,0);return n};function jd(a,b,c){var d=a.O,e=d.va(b+2),g=d.va(b)|(e&255)<<16,d=d.va(b+4);a.ea=c;a.Fa=g;a.Va=d;a.$b=(d>>>0)+1;a.zb=e;a.type=e&7936;a.ext=0;a.Zb=b;gd(a,!0)} function id(a,b,c,d){var e=a.O;if(!d&&c===a.A.ea)return a.ea=c,a.Fa=a.A.Fa,a.Va=a.A.Va,a.$b=(a.A.Va>>>0)+1,a.zb=a.A.zb,a.type=a.A.type,a.ext=a.A.ext,a.Zb=a.A.Zb,a.A.ea=0,gd(a,!0,!0,!1),a.Fa;a.A.ea=0;var g=e.va(b+0),h=e.va(b+4),m=h&7936,q=e.va(b+2)|(h&255)<<16,r=e.va(b+6),x=c&65528;if(80386<=e.ra){var E=g,q=q|(r&65280)<<16,g=g|(r&15)<<16;r&128&&(g=g<<12|4095)}switch(a.id){case fd:a.Me=!1;a.Xg=a.ha;var B=a.P;if(B&&1==c&&a.B.length){var T=a.B[a.Bf-1];if(T&&!T())return n}var T=c&3,J=(h&24576)>>13,I,U, -N;if(x&&!(h&32768))return 6>a.id&&p.call(e,11,c&65532),n;if(6144<=m){T=c&3;if(T>a.Rb){if(!1!==B&&!(J==a.Rb||m&1024&&J<=a.Rb))return n;I=kd(e);ld(e,kd(e),!0);t(e,I);a.Me=!0}I=0}else{if(256==m||2304==m)return od(a,c,B)?a.Fa:n;if(1024==m)I=2,N=0,Ta.id&&p.call(e,11,c&65532),n;if(6144<=m){T=c&3;if(T>a.Rb){if(!1!==B&&!(J==a.Rb||m&1024&&J<=a.Rb))return n;I=kd(e);ld(e,kd(e),!0);t(e,I);a.Me=!0}I=0}else{if(256==m||2304==m)return md(a,c,B)?a.Fa:n;if(1024==m)I=2,N=0,Ta.id&&p.call(e,13,c&65532|(U?2:0)),n;break;case 2:if(x){if(4096>m||2048==(m&2560))return 6>a.id&&p.call(e,13,c&65532),n;if(!(h&32768))return 6>a.id&&p.call(e,11,c&65532),n}break;case 3:if(!(h&32768))return 6>a.id&&p.call(e,12,c&65532),n;if(!x||4096>m||512!=(m&2560))return 6>a.id&&p.call(e,13,c&65532,!0),n;break;case 4:B=m&-513;if(!x||256!=B&&2304!=B)return 6>a.id&&p.call(e,13,c&65532,!0),n;2304==B&&(a.Pi= -q+e.va(q+100+2)|0,a.Kj=q+a.Va|0);break;case 6:if(!(m&4096)&&768>>0)+1,a.zb=h,a.type=m,a.ext=r,a.Zb=b,gd(a,!0,!0,!1));return q} -function od(a,b,c){var d=a.O,e=a.Rb,g=d.Ya.ea,h=d.Ya.Fa;if(!c){if(!(d.Ya.type&512))return p.call(d,13,b&65532,!0),!1;d.Fb(d.Ya.Zb+4,d.Ya.zb&=-513)}if(d.Ya.load(b)===n)return!1;var m=d.Ya.Fa;if(!1!==c){if(d.Ya.type&512)return p.call(d,13,b&65532,!0),!1;d.Fb(d.Ya.Zb+4,d.Ya.zb|=512)}d.Ya.type=d.Ya.type&-513|d.Ya.zb&512;256==d.Ya.type||768==d.Ya.type?(d.Fb(h+14,v(d)),d.Fb(h+16,zd(d)),d.Fb(h+18,d.F),d.Fb(h+20,d.G),d.Fb(h+22,d.H),d.Fb(h+24,d.D),d.Fb(h+26,u(d)),d.Fb(h+28,d.L),d.Fb(h+30,d.K),d.Fb(h+32,d.J), -d.Fb(h+34,d.cb.ea),d.Fb(h+36,d.za.ea),d.Fb(h+38,d.xa.ea),d.Fb(h+40,d.xb.ea),d.Dc.load(d.va(m+42)),Ad(d,d.va(m+16)|(c?16384:0)),d.F=d.va(m+18),d.G=d.va(m+20),d.H=d.va(m+22),d.D=d.va(m+24),d.L=d.va(m+28),d.K=d.va(m+30),d.J=d.va(m+32),d.cb.load(d.va(m+34)),d.xb.load(d.va(m+40)),Bd(d,d.va(m+14),d.va(m+36)),b=38,h=26,a.Rb>>0)+1)}; -function gd(a,b,c,d){void 0===c&&(c=!!(a.O.mb&1));a.Uc=!1;if(c)if(a.load=a.Vf,a.kj=a.fl,a.Ac=a.Ui,a.sc=a.Wi,void 0===d&&(d=!!(a.O.ca&131072)),d)a.load=a.na,a.Ac=a.X,a.sc=a.S,a.Rb=a.Bc=3,a.ha=a.Zc=2,a.C=a.Ga=65535,a.Va=65535,a.$b=a.Va+1,a.Zc=a.ha,a.Zb=n,a.Me=!1;else{if(!(a.ea&-4))a.Ac=a.Qf,a.sc=a.Rf;else if(a.type&4096){6144==(a.type&6656)&&(a.Ac=a.Qf);if(a.type&2048||!(a.type&512))a.sc=a.Rf;1024==(a.type&3072)&&(a.Ac==a.Ui&&(a.Ac=a.Nj),a.sc==a.Wi&&(a.sc=a.Oj),a.Uc=!0);b&&6>a.id&&a.ea&-4&&a.Zb!==n&& -(c=a.Zb+5,a.O.rc(c,a.O.Wa(c)|1))}b&&(a.Rb=a.ea&3,a.Bc=(a.zb&24576)>>13,80386>a.O.ra||!(a.ext&64)?(a.ha=2,a.C=65535):(a.ha=4,a.C=-1),a.Zc=a.ha,a.Ga=a.C)}else a.load=a.vh,a.kj=a.gl,a.Ac=a.Vi,a.sc=a.Xi,a.Rb=a.Bc=0,a.Zb=n,a.Me=!1} -function Dd(a){this.ra=a.model||8088;var b=0;switch(this.ra){default:b=4772727;break;case 80286:b=6E6;break;case 80386:b=16E6}Lc.call(this,a,b);this.Ef=61442;this.Kc=1792;this.Df=28672;this.xd=4;this.Ba=255;this.B=80386==this.ra?Ed:80286==this.ra?Fd:Gd;this.da=Hd;this.If=Id;this.Yg=Jd;this.Zg=Kd;if(80186<=this.ra&&(this.da=Hd.slice(),this.If=Id.slice(),this.Yg=Jd.slice(),this.Ba=31,this.da[15]=Ld,this.da[96]=Md,this.da[97]=Nd,this.da[98]=Od,this.da[99]=Ld,this.da[100]=Ld,this.da[101]=Ld,this.da[102]= -Ld,this.da[103]=Ld,this.da[104]=Pd,this.da[105]=Qd,this.da[106]=Rd,this.da[107]=Sd,this.da[108]=Td,this.da[109]=Ud,this.da[110]=Vd,this.da[111]=Wd,this.da[192]=ae,this.da[193]=be,this.da[200]=ce,this.da[201]=de,this.da[241]=ee,this.If[7]=fe,this.Yg[7]=fe,80286<=this.ra)){this.Ef=2;this.Kc|=28672;this.xd=0;this.da[15]=ge;this.kd=he.slice();for(a=0;a>>20,g=a.Ad[(a.Kd+e&a.hd)>>>a.Qa],h=g.te(e);if(!(h&1))return d||we.call(a,b,!1,c),a.md;if(!(h&4)&&3==a.sa)return d||we.call(a,b,!0,c),a.md;var m=(b&4190208)>>>10,h=a.Ad[((h&-4096)+m&a.hd)>>>a.Qa],q=h.te(m);if(!(q&1))return d||we.call(a,b,!1,c),a.md;if(!(q&4)&&3==a.sa)return d||we.call(a,b,!0,c),a.md;c=a.Ad[((q&-4096)+(b&4095)&a.hd)>>>a.Qa];if(d)return c;d=new Jb(b&-4096,0,0,6);rc(d,c,g,e,h,m);b>>>=a.Qa;a.wa[b]=d;a.Zd.push(b);return d} -function xe(a){a.wa!=a.Ad&&(a.wa=a.Ad,a.bf=null,a.Zd=null,a.md=null)}f=Dd.prototype;f.reset=function(){this.oa.Eb&&this.Xb();ue(this);Mc(this);this.oa.pd=!1};function ye(a,b){var c;switch(b){case 0:c=a.F;break;case 1:c=a.G;break;case 2:c=a.H;break;case 3:c=a.D;break;case 4:c=u(a);break;case 5:c=a.L;break;case 6:c=a.K;break;case 7:c=a.J}return c} +q+e.va(q+100+2)|0,a.Lj=q+a.Va|0);break;case 6:if(!(m&4096)&&768>>0)+1,a.zb=h,a.type=m,a.ext=r,a.Zb=b,gd(a,!0,!0,!1));return q} +function md(a,b,c){var d=a.O,e=a.Rb,g=d.Ya.ea,h=d.Ya.Fa;if(!c){if(!(d.Ya.type&512))return p.call(d,13,b&65532,!0),!1;d.Fb(d.Ya.Zb+4,d.Ya.zb&=-513)}if(d.Ya.load(b)===n)return!1;var m=d.Ya.Fa;if(!1!==c){if(d.Ya.type&512)return p.call(d,13,b&65532,!0),!1;d.Fb(d.Ya.Zb+4,d.Ya.zb|=512)}d.Ya.type=d.Ya.type&-513|d.Ya.zb&512;256==d.Ya.type||768==d.Ya.type?(d.Fb(h+14,v(d)),d.Fb(h+16,vd(d)),d.Fb(h+18,d.F),d.Fb(h+20,d.G),d.Fb(h+22,d.H),d.Fb(h+24,d.D),d.Fb(h+26,u(d)),d.Fb(h+28,d.L),d.Fb(h+30,d.K),d.Fb(h+32,d.J), +d.Fb(h+34,d.cb.ea),d.Fb(h+36,d.Aa.ea),d.Fb(h+38,d.wa.ea),d.Fb(h+40,d.xb.ea),d.Dc.load(d.va(m+42)),wd(d,d.va(m+16)|(c?16384:0)),d.F=d.va(m+18),d.G=d.va(m+20),d.H=d.va(m+22),d.D=d.va(m+24),d.L=d.va(m+28),d.K=d.va(m+30),d.J=d.va(m+32),d.cb.load(d.va(m+34)),d.xb.load(d.va(m+40)),Bd(d,d.va(m+14),d.va(m+36)),b=38,h=26,a.Rb>>0)+1)}; +function gd(a,b,c,d){void 0===c&&(c=!!(a.O.nb&1));a.Tc=!1;if(c)if(a.load=a.Vf,a.jj=a.hl,a.Ac=a.Ui,a.sc=a.Wi,void 0===d&&(d=!!(a.O.ca&131072)),d)a.load=a.na,a.Ac=a.X,a.sc=a.S,a.Rb=a.Bc=3,a.ha=a.Yc=2,a.C=a.Ga=65535,a.Va=65535,a.$b=a.Va+1,a.Yc=a.ha,a.Zb=n,a.Me=!1;else{if(!(a.ea&-4))a.Ac=a.Qf,a.sc=a.Rf;else if(a.type&4096){6144==(a.type&6656)&&(a.Ac=a.Qf);if(a.type&2048||!(a.type&512))a.sc=a.Rf;1024==(a.type&3072)&&(a.Ac==a.Ui&&(a.Ac=a.Oj),a.sc==a.Wi&&(a.sc=a.Pj),a.Tc=!0);b&&6>a.id&&a.ea&-4&&a.Zb!==n&& +(c=a.Zb+5,a.O.rc(c,a.O.Wa(c)|1))}b&&(a.Rb=a.ea&3,a.Bc=(a.zb&24576)>>13,80386>a.O.ra||!(a.ext&64)?(a.ha=2,a.C=65535):(a.ha=4,a.C=-1),a.Yc=a.ha,a.Ga=a.C)}else a.load=a.vh,a.jj=a.il,a.Ac=a.Vi,a.sc=a.Xi,a.Rb=a.Bc=0,a.Zb=n,a.Me=!1} +function Dd(a){this.ra=a.model||8088;var b=0;switch(this.ra){default:b=4772727;break;case 80286:b=6E6;break;case 80386:b=16E6}Lc.call(this,a,b);this.Ef=61442;this.Jc=1792;this.Df=28672;this.wd=4;this.Ba=255;this.B=80386==this.ra?Ed:80286==this.ra?Fd:Gd;this.da=Hd;this.If=Id;this.Yg=Jd;this.Zg=Kd;if(80186<=this.ra&&(this.da=Hd.slice(),this.If=Id.slice(),this.Yg=Jd.slice(),this.Ba=31,this.da[15]=Ld,this.da[96]=Md,this.da[97]=Nd,this.da[98]=Od,this.da[99]=Ld,this.da[100]=Ld,this.da[101]=Ld,this.da[102]= +Ld,this.da[103]=Ld,this.da[104]=Pd,this.da[105]=Qd,this.da[106]=Rd,this.da[107]=Sd,this.da[108]=Td,this.da[109]=Ud,this.da[110]=Vd,this.da[111]=Wd,this.da[192]=ae,this.da[193]=be,this.da[200]=ce,this.da[201]=de,this.da[241]=ee,this.If[7]=fe,this.Yg[7]=fe,80286<=this.ra)){this.Ef=2;this.Jc|=28672;this.wd=0;this.da[15]=ge;this.kd=he.slice();for(a=0;a>>20,g=a.Ad[(a.Jd+e&a.hd)>>>a.Qa],h=g.se(e);if(!(h&1))return d||we.call(a,b,!1,c),a.md;if(!(h&4)&&3==a.sa)return d||we.call(a,b,!0,c),a.md;var m=(b&4190208)>>>10,h=a.Ad[((h&-4096)+m&a.hd)>>>a.Qa],q=h.se(m);if(!(q&1))return d||we.call(a,b,!1,c),a.md;if(!(q&4)&&3==a.sa)return d||we.call(a,b,!0,c),a.md;c=a.Ad[((q&-4096)+(b&4095)&a.hd)>>>a.Qa];if(d)return c;d=new Jb(b&-4096,0,0,6);rc(d,c,g,e,h,m);b>>>=a.Qa;a.xa[b]=d;a.Yd.push(b);return d} +function xe(a){a.xa!=a.Ad&&(a.xa=a.Ad,a.bf=null,a.Yd=null,a.md=null)}f=Dd.prototype;f.reset=function(){this.oa.Eb&&this.Xb();ue(this);Mc(this);this.oa.pd=!1};function ye(a,b){var c;switch(b){case 0:c=a.F;break;case 1:c=a.G;break;case 2:c=a.H;break;case 3:c=a.D;break;case 4:c=u(a);break;case 5:c=a.L;break;case 6:c=a.K;break;case 7:c=a.J}return c} function ze(a,b,c){switch(b){case 0:a.F=c;break;case 1:a.G=c;break;case 2:a.H=c;break;case 3:a.D=c;break;case 4:t(a,c);break;case 5:a.L=c;break;case 6:a.K=c;break;case 7:a.J=c}} -function ue(a){a.F=0;a.D=0;a.G=0;a.H=0;a.jb=0;a.L=0;a.K=0;a.J=0;a.Ja=!1;a.qa=a.Ma=0;a.Db=0;a.le=0;a.mb=65520;a.cd=0;a.Sd=1023;a.ca=a.bb=0;a.Mc=a.od=a.Lc=a.Nc=0;a.nb=-1;a.Ea=a.La=n;a.za=new ed(a,fd,"CS");a.xb=new ed(a,2,"DS");a.cb=new ed(a,2,"ES");a.xa=new ed(a,3,"SS");t(a,0);ld(a,0);80386<=a.ra&&(a.H=772,a.mb=16,a.Ki=0,a.de=0,a.Kd=0,a.Oa=[0,0,0,0,null,null,0,0],a.se=[null,null,null,null,null,null,0,0],a.Ob=new ed(a,2,"FS"),a.Pb=new ed(a,2,"GS"),xe(a));a.bh=new ed(a,0,"NULL");a.R=a.xb;a.S=a.xa;a.W= -a.Y=0;a.P=a.aa=n;a.ua=0;Bd(a,0,65535);if(80286<=a.ra){a.bd=0;a.Rd=65535;a.Dc=new ed(a,5,"LDT",!0);a.Ya=new ed(a,4,"TSS",!0);a.Ha=new ed(a,6,"VER",!0);Bd(a,65520,61440);var b,c=v(a);b=a.za;var d=-65536;80386>b.O.ra&&(d&=16777215);b=b.Fa=d;a.Aa=b+c|0;a.oe=b+a.za.Va|0}Ad(a,0);pd(a)}function Ae(a,b){b.ea&65528&&b.Bc>16,e=0;4>e;e++){if(c&3){var g=!!(d&1),h=a.Oa[e],h=h&~(d>>2&3);b?a.wa[h>>>a.Qa].Qd(h&a.Ra,g,a):Fc(a.wa[h>>>a.Qa],g)}c>>=2;d>>=4}} -function Cc(a,b,c,d){if(!(a.W&8192)&&a.Oa[7]&255){c--;var e=a.Oa[7],g=e>>16;d=d?1:0==d?3:0;for(var h=0;4>h;h++){if(e&3&&(g&3)==d){var m=g>>2;if(b+c>=a.Oa[h]&&b<=a.Oa[h]+m){a.Oa[6]|=1<>=2;g>>=4}}}function pd(a,b,c){void 0===b&&(b=!!(a.mb&1));void 0===c&&(c=!!(a.ca&131072));a.Zg=b&&!c?Qe:Kd;gd(a.za,!1,b,c);gd(a.xb,!1,b,c);gd(a.xa,!1,b,c);gd(a.cb,!1,b,c);80386<=a.ra&&(gd(a.Ob,!1,b,c),gd(a.Pb,!1,b,c),rd(a))} -f.save=function(){var a=new Re(this);Se(a,0,[this.F,this.D,this.G,this.H,u(this),this.L,this.K,this.J]);var b=v(this),c=this.za.save(),d=this.xb.save(),e=this.xa.save(),g=this.cb.save(),h;null!=this.bd?(h=[this.mb,this.bd,this.Rd,this.cd,this.Sd,this.Dc.save(),this.Ya.save(),this.bb],80386<=this.ra&&(h.push(this.Ki),h.push(this.de),h.push(this.Kd),h.push(this.Oa),h.push(this.se))):h=null;b=[b,c,d,e,g,h,zd(this)];80386<=this.ra&&(b.push(this.Ob.save()),b.push(this.Pb.save()));Se(a,1,b);Se(a,2,[this.R.Hf, -this.S.Hf,this.W,this.Y,this.ua,this.P,this.aa]);Se(a,3,[0,this.hc,this.Z.Fd]);b=this.na;c=0;d=[];(e=!b.S&&b.Zf==b.B)||Ob(b,!0);for(g=0;gc&&0<=(a.oe^a.Aa)&&(8088>=a.ra||a.za.Va==a.za.Ga?D(a,a.Aa-a.za.Fa):-1>c&&p.call(a,13,0))}function u(a){return a.jb&~a.xa.Ga|a.ja-a.xa.Fa}function t(a,b){a.jb=b;a.ja=a.xa.Fa+(b&a.xa.Ga)|0}function We(a,b,c,d,e,g){if(63!=(e&63)&&e!=a.resultType){var h=(e^a.resultType)&a.resultType;h&&(h&1&&Xe(a),h&2&&Ye(a),h&4&&Ze(a),h&8&&$e(a),h&16&&af(a),h&32&&bf(a))}g?(a.Mc=d,a.Lc=b):(a.Mc=b,a.Lc=d);a.od=c;a.Nc=d;a.resultType=e} -function cf(a,b,c,d,e){a.resultType=c|26;a.Nc=b;d?df(a):ef(a);e?ff(a):gf(a);return b}function hf(a,b,c,d){c&d?df(a):ef(a);(b^c)&d?ff(a):gf(a)}function jf(a){return Xe(a)?1:0}function Xe(a){a.resultType&1&&(a.ca&=-2,(a.Mc^(a.Mc^a.od)&(a.od^a.Lc))&a.resultType&-2147450752&&(a.ca|=1),a.resultType&=-2);return a.ca&1}function Ye(a){a.resultType&2&&(a.ca&=-5,38505>>((a.Nc^a.Nc>>4)&15)&1&&(a.ca|=4),a.resultType&=-3);return a.ca&4} -function Ze(a){a.resultType&4&&(a.ca&=-17,(a.Lc^a.Mc^a.od)&16&&(a.ca|=16),a.resultType&=-5);return a.ca&16}function $e(a){a.resultType&8&&(a.ca&=-65,a.Nc&((a.resultType&-2147450752)-1|a.resultType&-2147450752)||(a.ca|=64),a.resultType&=-9);return a.ca&64}function af(a){a.resultType&16&&(a.ca&=-129,a.Nc&a.resultType&-2147450752&&(a.ca|=128),a.resultType&=-17);return a.ca&128} -function bf(a){a.resultType&32&&(a.ca&=-2049,(a.Mc^a.Lc)&(a.od^a.Lc)&a.resultType&-2147450752&&(a.ca|=2048),a.resultType&=-33);return a.ca&2048}function ef(a){a.resultType&=-2;a.ca&=-2}function kf(a){a.resultType&=-5;a.ca&=-17}function lf(a){a.resultType&=-9;a.ca&=-65}function gf(a){a.resultType&=-33;a.ca&=-2049}function df(a){a.resultType&=-2;a.ca|=1}function nf(a){a.resultType&=-5;a.ca|=16}function of(a){a.resultType&=-9;a.ca|=64}function ff(a){a.resultType&=-33;a.ca|=2048} -function zd(a){return a.ca&-2262|Xe(a)|Ye(a)|Ze(a)|$e(a)|af(a)|bf(a)}function pf(a,b){b=b|a.mb&1|65520;a.mb=a.mb&-65536|b&65535;a.mb&1&&pd(a,!0)}function Ad(a,b,c){a.mb&1||(b&=~a.Df);void 0===c&&(c=a.sa);c?b=b&-12289|a.ca&12288:a.bb=(b&12288)>>12;c>a.bb&&(b=b&-513|a.ca&512);a.resultType=128;a.ca=a.ca&~(a.Kc|2261)|b&(a.Kc|2261)|a.Ef;a.ca&256&&(a.ua|=2,a.W|=4)} -function qf(a,b,c,d){var e=0;if(a.mb&1&&(a.sa>a.bb||a.ca&131072)&&a.Ya.Pi)for(var g=a.Ya.Pi+(b>>>3),e=(1<>>=8,g++;return e?(a.ta(256)&&a.Ca("checkIOPM("+ga(b)+","+c+","+(d?"input":"output")+"): trapped",!0,!0),p.call(a,13,0,!1),!1):!0} +function ue(a){a.F=0;a.D=0;a.G=0;a.H=0;a.jb=0;a.L=0;a.K=0;a.J=0;a.Ja=!1;a.qa=a.Ma=0;a.Db=0;a.ke=0;a.nb=65520;a.cd=0;a.Rd=1023;a.ca=a.bb=0;a.Lc=a.od=a.Kc=a.Mc=0;a.ob=-1;a.Ea=a.La=n;a.Aa=new ed(a,fd,"CS");a.xb=new ed(a,2,"DS");a.cb=new ed(a,2,"ES");a.wa=new ed(a,3,"SS");t(a,0);ld(a,0);80386<=a.ra&&(a.H=772,a.nb=16,a.Ki=0,a.ce=0,a.Jd=0,a.Oa=[0,0,0,0,null,null,0,0],a.re=[null,null,null,null,null,null,0,0],a.Ob=new ed(a,2,"FS"),a.Pb=new ed(a,2,"GS"),xe(a));a.bh=new ed(a,0,"NULL");a.R=a.xb;a.S=a.wa;a.W= +a.Y=0;a.P=a.aa=n;a.ua=0;Bd(a,0,65535);if(80286<=a.ra){a.bd=0;a.Qd=65535;a.Dc=new ed(a,5,"LDT",!0);a.Ya=new ed(a,4,"TSS",!0);a.Ha=new ed(a,6,"VER",!0);Bd(a,65520,61440);var b,c=v(a);b=a.Aa;var d=-65536;80386>b.O.ra&&(d&=16777215);b=b.Fa=d;a.za=b+c|0;a.ne=b+a.Aa.Va|0}wd(a,0);nd(a)}function Ae(a,b){b.ea&65528&&b.Bc>16,e=0;4>e;e++){if(c&3){var g=!!(d&1),h=a.Oa[e],h=h&~(d>>2&3);b?a.xa[h>>>a.Qa].Pd(h&a.Ra,g,a):Fc(a.xa[h>>>a.Qa],g)}c>>=2;d>>=4}} +function Cc(a,b,c,d){if(!(a.W&8192)&&a.Oa[7]&255){c--;var e=a.Oa[7],g=e>>16;d=d?1:0==d?3:0;for(var h=0;4>h;h++){if(e&3&&(g&3)==d){var m=g>>2;if(b+c>=a.Oa[h]&&b<=a.Oa[h]+m){a.Oa[6]|=1<>=2;g>>=4}}}function nd(a,b,c){void 0===b&&(b=!!(a.nb&1));void 0===c&&(c=!!(a.ca&131072));a.Zg=b&&!c?Qe:Kd;gd(a.Aa,!1,b,c);gd(a.xb,!1,b,c);gd(a.wa,!1,b,c);gd(a.cb,!1,b,c);80386<=a.ra&&(gd(a.Ob,!1,b,c),gd(a.Pb,!1,b,c),rd(a))} +f.save=function(){var a=new Re(this);Se(a,0,[this.F,this.D,this.G,this.H,u(this),this.L,this.K,this.J]);var b=v(this),c=this.Aa.save(),d=this.xb.save(),e=this.wa.save(),g=this.cb.save(),h;null!=this.bd?(h=[this.nb,this.bd,this.Qd,this.cd,this.Rd,this.Dc.save(),this.Ya.save(),this.bb],80386<=this.ra&&(h.push(this.Ki),h.push(this.ce),h.push(this.Jd),h.push(this.Oa),h.push(this.re))):h=null;b=[b,c,d,e,g,h,vd(this)];80386<=this.ra&&(b.push(this.Ob.save()),b.push(this.Pb.save()));Se(a,1,b);Se(a,2,[this.R.Hf, +this.S.Hf,this.W,this.Y,this.ua,this.P,this.aa]);Se(a,3,[0,this.hc,this.Z.Fd]);b=this.na;c=0;d=[];(e=!b.S&&b.Zf==b.B)||Ob(b,!0);for(g=0;gc&&0<=(a.ne^a.za)&&(8088>=a.ra||a.Aa.Va==a.Aa.Ga?D(a,a.za-a.Aa.Fa):-1>c&&p.call(a,13,0))}function u(a){return a.jb&~a.wa.Ga|a.ja-a.wa.Fa}function t(a,b){a.jb=b;a.ja=a.wa.Fa+(b&a.wa.Ga)|0}function We(a,b,c,d,e,g){if(63!=(e&63)&&e!=a.resultType){var h=(e^a.resultType)&a.resultType;h&&(h&1&&Xe(a),h&2&&Ye(a),h&4&&Ze(a),h&8&&$e(a),h&16&&af(a),h&32&&bf(a))}g?(a.Lc=d,a.Kc=b):(a.Lc=b,a.Kc=d);a.od=c;a.Mc=d;a.resultType=e} +function cf(a,b,c,d,e){a.resultType=c|26;a.Mc=b;d?df(a):ef(a);e?ff(a):gf(a);return b}function hf(a,b,c,d){c&d?df(a):ef(a);(b^c)&d?ff(a):gf(a)}function jf(a){return Xe(a)?1:0}function Xe(a){a.resultType&1&&(a.ca&=-2,(a.Lc^(a.Lc^a.od)&(a.od^a.Kc))&a.resultType&-2147450752&&(a.ca|=1),a.resultType&=-2);return a.ca&1}function Ye(a){a.resultType&2&&(a.ca&=-5,38505>>((a.Mc^a.Mc>>4)&15)&1&&(a.ca|=4),a.resultType&=-3);return a.ca&4} +function Ze(a){a.resultType&4&&(a.ca&=-17,(a.Kc^a.Lc^a.od)&16&&(a.ca|=16),a.resultType&=-5);return a.ca&16}function $e(a){a.resultType&8&&(a.ca&=-65,a.Mc&((a.resultType&-2147450752)-1|a.resultType&-2147450752)||(a.ca|=64),a.resultType&=-9);return a.ca&64}function af(a){a.resultType&16&&(a.ca&=-129,a.Mc&a.resultType&-2147450752&&(a.ca|=128),a.resultType&=-17);return a.ca&128} +function bf(a){a.resultType&32&&(a.ca&=-2049,(a.Lc^a.Kc)&(a.od^a.Kc)&a.resultType&-2147450752&&(a.ca|=2048),a.resultType&=-33);return a.ca&2048}function ef(a){a.resultType&=-2;a.ca&=-2}function kf(a){a.resultType&=-5;a.ca&=-17}function lf(a){a.resultType&=-9;a.ca&=-65}function gf(a){a.resultType&=-33;a.ca&=-2049}function df(a){a.resultType&=-2;a.ca|=1}function nf(a){a.resultType&=-5;a.ca|=16}function of(a){a.resultType&=-9;a.ca|=64}function ff(a){a.resultType&=-33;a.ca|=2048} +function vd(a){return a.ca&-2262|Xe(a)|Ye(a)|Ze(a)|$e(a)|af(a)|bf(a)}function pf(a,b){b=b|a.nb&1|65520;a.nb=a.nb&-65536|b&65535;a.nb&1&&nd(a,!0)}function wd(a,b,c){a.nb&1||(b&=~a.Df);void 0===c&&(c=a.sa);c?b=b&-12289|a.ca&12288:a.bb=(b&12288)>>12;c>a.bb&&(b=b&-513|a.ca&512);a.resultType=128;a.ca=a.ca&~(a.Jc|2261)|b&(a.Jc|2261)|a.Ef;a.ca&256&&(a.ua|=2,a.W|=4)} +function qf(a,b,c,d){var e=0;if(a.nb&1&&(a.sa>a.bb||a.ca&131072)&&a.Ya.Pi)for(var g=a.Ya.Pi+(b>>>3),e=(1<>>=8,g++;return e?(a.ta(256)&&a.Ca("checkIOPM("+ga(b)+","+c+","+(d?"input":"output")+"): trapped",!0,!0),p.call(a,13,0,!1),!1):!0} f.Tb=function(a,b,c){var d=!1;switch(b){case "EAX":case "EBX":case "ECX":case "EDX":case "ESP":case "EBP":case "ESI":case "EDI":case "EIP":case "AX":case "BX":case "CX":case "DX":case "SP":case "BP":case "SI":case "DI":case "IP":case "PC":case "CS":case "DS":case "SS":case "ES":case "FS":case "GS":case "CR0":case "CR2":case "CR3":case "PS":case "C":case "P":case "A":case "Z":case "S":case "T":case "I":case "D":case "V":this.ya[b]=c;this.$g++;d=!0;break;default:d=this.parent.Tb.call(this,a,b,c)}return d}; -function rf(a,b,c){var d=a.wa[(b&a.tb)>>>a.Qa];d&&5==d.type&&(d=Ec(a,b,!1,!0));if(d)switch(a=b&a.Ra,c){default:return d.cf(a,b);case 2:return d.Rg(a,b);case 4:return d.Ji(a,b)}return null}f.Wa=function(a){return this.wa[(a&this.tb)>>>this.Qa].wc(a&this.Ra,a)};f.va=function(a){var b=a&this.Ra,c=(a&this.tb)>>>this.Qa;this.A-=this.B.zf;if(b>>this.Qa;if(b>>this.Qa].yc(a&this.Ra,b&255,a)};f.Fb=function(a,b){var c=a&this.Ra,d=(a&this.tb)>>>this.Qa;this.A-=this.B.zf;c>8&255,a+1))}; -f.Qb=function(a,b){var c=a&this.Ra,d=(a&this.tb)>>>this.Qa;this.A-=this.B.zf;if(c>>=8}};function sf(a,b,c){a.Ub=b;a.P=b.Ac(a.yb=c,1);return a.W&1?0:a.Wa(a.P)}function F(a,b){return sf(a,a.R,b&a.Ga)}function G(a,b){return sf(a,a.S,b&a.Ga)}function tf(a,b,c){a.Ub=b;a.P=b.Ac(a.yb=c,a.ha);return a.W&1?0:a.nc(a.P)}function H(a,b){return tf(a,a.R,b&a.Ga)} +function rf(a,b,c){var d=a.xa[(b&a.tb)>>>a.Qa];d&&5==d.type&&(d=Ec(a,b,!1,!0));if(d)switch(a=b&a.Ra,c){default:return d.cf(a,b);case 2:return d.Rg(a,b);case 4:return d.Ji(a,b)}return null}f.Wa=function(a){return this.xa[(a&this.tb)>>>this.Qa].wc(a&this.Ra,a)};f.va=function(a){var b=a&this.Ra,c=(a&this.tb)>>>this.Qa;this.A-=this.B.zf;if(b>>this.Qa;if(b>>this.Qa].yc(a&this.Ra,b&255,a)};f.Fb=function(a,b){var c=a&this.Ra,d=(a&this.tb)>>>this.Qa;this.A-=this.B.zf;c>8&255,a+1))}; +f.Qb=function(a,b){var c=a&this.Ra,d=(a&this.tb)>>>this.Qa;this.A-=this.B.zf;if(c>>=8}};function sf(a,b,c){a.Ub=b;a.P=b.Ac(a.yb=c,1);return a.W&1?0:a.Wa(a.P)}function F(a,b){return sf(a,a.R,b&a.Ga)}function G(a,b){return sf(a,a.S,b&a.Ga)}function tf(a,b,c){a.Ub=b;a.P=b.Ac(a.yb=c,a.ha);return a.W&1?0:a.nc(a.P)}function H(a,b){return tf(a,a.R,b&a.Ga)} function K(a,b){return tf(a,a.S,b&a.Ga)}function uf(a,b,c){a.Ub=b;a.aa=a.P=b.Ac(a.yb=c,1);return a.W&1?0:a.Wa(a.P)}function L(a,b){return uf(a,a.R,b&a.Ga)}function M(a,b){return uf(a,a.S,b&a.Ga)}function vf(a,b,c){a.Ub=b;a.aa=a.P=b.Ac(a.yb=c,a.ha);return a.W&1?0:a.nc(a.P)}function O(a,b){return vf(a,a.R,b&a.Ga)}function P(a,b){return vf(a,a.S,b&a.Ga)}function Q(a,b){a.W&2||a.rc(a.Ub.sc(a.yb,1),b)}function R(a,b){a.W&2||a.zc(a.Ub.sc(a.yb,a.ha),b)}function qd(a,b,c){return a.nc(b.Ac(c,a.ha))} -f.ba=function(){var a=this.Wa(this.Aa);Ve(this,1);return a};function wf(a){var b=a.va(a.Aa);Ve(a,2);return b}function S(a){var b=a.ec(a.Aa);Ve(a,a.Zc);return b}f.Pa=function(){var a=this.nc(this.Aa);Ve(this,this.ha);return a};f.M=function(){var a=this.Wa(this.Aa)<<24>>24;Ve(this,1);return a};function V(a,b){var c=a.Wa(a.Aa);Ve(a,1);return xf[c].call(a,b)} -function kd(a){var b=a.nc(a.ja);a.ja=a.ja+a.ha|0;var c=a.Ug-a.ja|0;0>c&&0<=(a.Ug^a.ja)&&(8088>=a.ra||!a.xa.Uc&&a.xa.Va==a.xa.Ga||a.xa.Uc&&!a.xa.Va?t(a,a.ja-a.xa.Fa&a.xa.Ga):-1>c&&p.call(a,12,0));return b}function yf(a,b,c){a.ja=a.ja-c|0;0>(a.ja-a.nd|0)&&0<=(a.nd^a.ja)&&(8088>=a.ra||!a.xa.Uc&&a.xa.Va==a.xa.Ga||a.xa.Uc&&!a.xa.Va?t(a,a.ja-a.xa.Fa&a.xa.Ga):p.call(a,12,0));2==c?a.Fb(a.ja,b):a.Qb(a.ja,b)} -function sd(a,b){a.ja=a.ja-a.ha|0;0>(a.ja-a.nd|0)&&0<=(a.nd^a.ja)&&(8088>=a.ra||!a.xa.Uc&&a.xa.Va==a.xa.Ga||a.xa.Uc&&!a.xa.Va?t(a,a.ja-a.xa.Fa&a.xa.Ga):p.call(a,12,0));a.zc(a.ja,b)}function zf(a,b,c){var d=4;1==b.length&&(d=1,c=c?1:0);if(80386>a.ra)2this.ra?0:1,e=0;2>e;e++){switch(d){case 0:if(this.ua&1&&this.ca&512){var g=Bf(this.X);if(-1<=g&&(this.ua&=-2,0<=g)){this.ua&=-5;Kf.call(this, -this.nb=g,null,11);d=!0;break a}}break;case 1:if(this.ua&2){this.ua&=-3;80386<=this.ra&&(this.Oa[6]|=16384);Kf.call(this,this.nb=1,null,11);d=!0;break a}}d=1-d}if(d=this.ua&8){d=this.X;e=!1;for(g=0;g>24;Ve(this,1);return a};function V(a,b){var c=a.Wa(a.za);Ve(a,1);return xf[c].call(a,b)} +function kd(a){var b=a.nc(a.ja);a.ja=a.ja+a.ha|0;var c=a.Ug-a.ja|0;0>c&&0<=(a.Ug^a.ja)&&(8088>=a.ra||!a.wa.Tc&&a.wa.Va==a.wa.Ga||a.wa.Tc&&!a.wa.Va?t(a,a.ja-a.wa.Fa&a.wa.Ga):-1>c&&p.call(a,12,0));return b}function yf(a,b,c){a.ja=a.ja-c|0;0>(a.ja-a.nd|0)&&0<=(a.nd^a.ja)&&(8088>=a.ra||!a.wa.Tc&&a.wa.Va==a.wa.Ga||a.wa.Tc&&!a.wa.Va?t(a,a.ja-a.wa.Fa&a.wa.Ga):p.call(a,12,0));2==c?a.Fb(a.ja,b):a.Qb(a.ja,b)} +function sd(a,b){a.ja=a.ja-a.ha|0;0>(a.ja-a.nd|0)&&0<=(a.nd^a.ja)&&(8088>=a.ra||!a.wa.Tc&&a.wa.Va==a.wa.Ga||a.wa.Tc&&!a.wa.Va?t(a,a.ja-a.wa.Fa&a.wa.Ga):p.call(a,12,0));a.zc(a.ja,b)}function zf(a,b,c){var d=4;1==b.length&&(d=1,c=c?1:0);if(80386>a.ra)2this.ra?0:1,e=0;2>e;e++){switch(d){case 0:if(this.ua&1&&this.ca&512){var g=Bf(this.X);if(-1<=g&&(this.ua&=-2,0<=g)){this.ua&=-5;Kf.call(this, +this.ob=g,null,11);d=!0;break a}}break;case 1:if(this.ua&2){this.ua&=-3;80386<=this.ra&&(this.Oa[6]|=16384);Kf.call(this,this.ob=1,null,11);d=!0;break a}}d=1-d}if(d=this.ua&8){d=this.X;e=!1;for(g=0;g>16,c=c<<16>>16,d=d<<16>>16);this.A-=this.B.Hh;(bd)&&p.call(this,5);this.W|=2;return a}function Vf(a,b){var c=0;if(b){lf(this);for(var d=1;d&this.C;){if(b&d){a=c;break}d<<=1;c++}}else of(this);this.A-=11+3*c;return a} function Wf(a,b){var c=0;if(b){lf(this);for(var d=2==this.ha?15:31,e=1<>>=1;c++;d--}}else of(this);this.A-=11+3*c;return a}function Xf(a,b){a&1<<(b&(2==this.ha?15:31))?df(this):ef(this);this.A-=this.P===n?3:6;this.W|=2;return a}function Yf(a,b){var c=1<<(b&(2==this.ha?15:31));a&c?df(this):ef(this);this.A-=this.P===n?6:8;return a^c}function Zf(a,b){var c=1<<(b&(2==this.ha?15:31));a&c?df(this):ef(this);this.A-=this.P===n?6:8;return a&~c} function $f(a,b){var c=1<<(b&(2==this.ha?15:31));a&c?df(this):ef(this);this.A-=this.P===n?6:8;return a|c}function ag(a,b){if(this.P===n)return Xf.call(this,a,b);var c=this.ha<<3;if(b>=c||b<-c)a=tf(this,this.Ub,this.yb+(b>>(2==this.ha?4:5))*this.ha);b=1<<(b&(2==this.ha?15:31));a&b?df(this):ef(this);this.A-=6;this.W|=2;return a} function bg(a,b){if(this.P===n)return Yf.call(this,a,b);var c=this.ha<<3;if(b>=c||b<-c)a=tf(this,this.Ub,this.yb+(b>>(2==this.ha?4:5))*this.ha);b=1<<(b&(2==this.ha?15:31));a&b?df(this):ef(this);this.A-=8;return a^b}function cg(a,b){if(this.P===n)return Zf.call(this,a,b);var c=this.ha<<3;if(b>=c||b<-c)a=tf(this,this.Ub,this.yb+(b>>(2==this.ha?4:5))*this.ha);b=1<<(b&(2==this.ha?15:31));a&b?df(this):ef(this);this.A-=8;return a&~b} -function dg(a,b){if(this.P===n)return $f.call(this,a,b);var c=this.ha<<3;if(b>=c||b<-c)a=tf(this,this.Ub,this.yb+(b>>(2==this.ha?4:5))*this.ha);b=1<<(b&(2==this.ha?15:31));a&b?df(this):ef(this);this.A-=8;return a|b}function eg(a,b){var c=this.za.ea,d=v(this),e=this.za.ha;null!=Bd(this,a,b,!0)&&(yf(this,c,e),yf(this,d,e))}function fg(a,b){We(this,a,b,a-b|0,191,!0);this.A-=this.aa===n?this.P===n?this.B.fc:this.B.fg:this.B.Nb;this.W|=2;return a} +function dg(a,b){if(this.P===n)return $f.call(this,a,b);var c=this.ha<<3;if(b>=c||b<-c)a=tf(this,this.Ub,this.yb+(b>>(2==this.ha?4:5))*this.ha);b=1<<(b&(2==this.ha?15:31));a&b?df(this):ef(this);this.A-=8;return a|b}function eg(a,b){var c=this.Aa.ea,d=v(this),e=this.ha;null!=Bd(this,a,b,!0)&&(yf(this,c,e),yf(this,d,e))}function fg(a,b){We(this,a,b,a-b|0,191,!0);this.A-=this.aa===n?this.P===n?this.B.fc:this.B.fg:this.B.Nb;this.W|=2;return a} function gg(a,b){We(this,a,b,a-b|0,this.Na|63,!0);this.A-=this.aa===n?this.P===n?this.B.fc:this.B.fg:this.B.Nb;this.W|=2;return a}function hg(a){var b=a-1|0;We(this,a,1,b,this.Na|62,!0);this.A-=2;return a&~this.C|b&this.C}function ig(a,b){var c=a[1]-b[1];c||(c=a[0]-b[0]);return c} function jg(a,b,c){this.Ja=!1;if((c>>>=0)&&!(c<=b>>>0)){var d=0,e=1;c=[c>>>0,0];for(a=[a>>>0,b>>>0];0>>=0,b[1]++);e+=e}do 0<=ig(a,c)&&(b=a,g=c,b[0]-=g[0],b[1]-=g[1],0>b[0]&&(b[0]>>>=0,b[1]--),d+=e),b=c,b[0]>>>=1,b[1]&1&&(b[0]=(b[0]|2147483648)>>>0),b[1]>>>=1,e>>>=1;while(e);this.qa=d;this.Ma=a[0];this.Ja=!0}}function kg(a){return a} function lg(a,b){a=this.M();var c=(b<<16>>16)*a|0;32767c?(df(this),ff(this)):(ef(this),gf(this));this.A-=this.P===n?21:24;return c&65535}function mg(a,b){var c,d;a=this.Pa();2==this.ha?(d=(b<<16>>16)*(a<<16>>16)|0,c=32767d):(d=b*a,c=2147483647d);c?(df(this),ff(this)):(ef(this),gf(this));d&=this.C;this.A-=this.P===n?21:24;return d} function ng(a,b){var c=(a<<16>>16)*(b<<16>>16)|0;32767c?(df(this),ff(this)):(ef(this),gf(this));this.A-=this.P===n?9:12;return c&65535}function og(a,b){var c=a*b;2147483647c?(df(this),ff(this)):(ef(this),gf(this));this.A-=this.P===n?9:12;return c|0}function pg(a){var b=a+1|0;We(this,a,1,b,this.Na|62);this.A-=2;return a&~this.C|b&this.C} -function Kf(a,b,c){this.A-=this.B.bi+c;c=zd(this);var d=this.za.ea,e=v(this);a=this.za.kj(a);if(a!==n){var g=this.za.Xg;yf(this,c,g);yf(this,d,g);yf(this,e,g);null!=b&&yf(this,b,g);this.nb=-1;rd(this);this.Aa=a;this.oe=this.za.Fa+this.za.Va|0;this.sa=this.za.Rb}}function qg(a,b){this.A-=14+(this.P===n?0:2);lf(this);this.Ha.load(b)!==n&&this.Ha.Bc>=this.sa&&this.Ha.Bc>=(b&3)&&(of(this),a=this.Ha.zb&-256,2=this.sa)&&this.Ha.Bc>=(b&3))return of(this),this.Ha.Va;lf(this);return a} -function yg(a,b){if(this.P===n)return ie.call(this),a;ld(this,this.va(this.P+this.ha));this.A-=this.B.re;return b}function zg(a,b){this.A-=this.aa===n?this.P===n?this.B.ri:this.B.pi:this.B.ni;return b}function Ag(a,b){return b}function Bg(){this.aa!==n&&Ke(this);return zg.call(this,0,this.Db)}function Cg(a,b){var c=b&65535,d=b>>>16,e=a&65535,g=a>>>16,h=c*e,e=(h>>>16)+d*e,m=e>>>16,e=(e&65535)+c*g;this.Ja=!0;this.qa=e<<16|h&65535;this.Ma=m+((e>>>16)+d*g)|0} -function Dg(a,b){this.A-=this.aa===n?this.P===n?this.B.fc:this.B.Nb:this.B.vc;return cf(this,a|b,128)}function Eg(a,b){this.A-=this.aa===n?this.P===n?this.B.fc:this.B.Nb:this.B.vc;return cf(this,a|b,this.Na)}function Fg(a){this.La=this.ja;var b=kd(this),c=kd(this);a&&t(this,u(this)+a);Bd(this,b,c,!1)&&(a&&t(this,u(this)+a),Ae(this,this.xb),Ae(this,this.cb),80386<=this.ra&&(Ae(this,this.Ob),Ae(this,this.Pb)));2==a&&this.me&&Oe(this,this.Aa);this.La=n} +function Kf(a,b,c){this.A-=this.B.bi+c;c=vd(this);var d=this.Aa.ea,e=v(this);a=this.Aa.jj(a);if(a!==n){var g=this.Aa.Xg;yf(this,c,g);yf(this,d,g);yf(this,e,g);null!=b&&yf(this,b,g);this.ob=-1;rd(this);this.za=a;this.ne=this.Aa.Fa+this.Aa.Va|0;this.sa=this.Aa.Rb}}function qg(a,b){this.A-=14+(this.P===n?0:2);lf(this);this.Ha.load(b)!==n&&this.Ha.Bc>=this.sa&&this.Ha.Bc>=(b&3)&&(of(this),a=this.Ha.zb&-256,2=this.sa)&&this.Ha.Bc>=(b&3))return of(this),this.Ha.Va;lf(this);return a} +function yg(a,b){if(this.P===n)return ie.call(this),a;ld(this,this.va(this.P+this.ha));this.A-=this.B.qe;return b}function zg(a,b){this.A-=this.aa===n?this.P===n?this.B.ri:this.B.pi:this.B.ni;return b}function Ag(a,b){return b}function Bg(){this.aa!==n&&Ke(this);return zg.call(this,0,this.Db)}function Cg(a,b){var c=b&65535,d=b>>>16,e=a&65535,g=a>>>16,h=c*e,e=(h>>>16)+d*e,m=e>>>16,e=(e&65535)+c*g;this.Ja=!0;this.qa=e<<16|h&65535;this.Ma=m+((e>>>16)+d*g)|0} +function Dg(a,b){this.A-=this.aa===n?this.P===n?this.B.fc:this.B.Nb:this.B.vc;return cf(this,a|b,128)}function Eg(a,b){this.A-=this.aa===n?this.P===n?this.B.fc:this.B.Nb:this.B.vc;return cf(this,a|b,this.Na)}function Fg(a){this.La=this.ja;var b=kd(this),c=kd(this);a&&t(this,u(this)+a);Bd(this,b,c,!1)&&(a&&t(this,u(this)+a),Ae(this,this.xb),Ae(this,this.cb),80386<=this.ra&&(Ae(this,this.Ob),Ae(this,this.Pb)));2==a&&this.le&&Oe(this,this.za);this.La=n} function Gg(a,b){var c=a-b-jf(this)|0;We(this,a,b,c,191,!0);this.A-=this.aa===n?this.P===n?this.B.fc:this.B.Nb:this.B.vc;return c&255}function Hg(a,b){var c=a-b-jf(this)|0;We(this,a,b,c,this.Na|63,!0);this.A-=this.aa===n?this.P===n?this.B.fc:this.B.Nb:this.B.vc;return c&this.C}function Ig(a){this.W|=1;this.eb[this.ba()].call(this,a);this.A-=this.P===n?4:5}function Jg(){return bf(this)?1:0}function Kg(){return Xe(this)?1:0}function Lg(){return Xe(this)?0:1}function Mg(){return $e(this)?1:0} function Ng(){return $e(this)?0:1}function Og(){return Xe(this)||$e(this)?1:0}function Pg(){return Xe(this)||$e(this)?0:1}function Qg(){return af(this)?1:0}function Rg(){return af(this)?0:1}function Sg(){return Ye(this)?1:0}function Tg(){return Ye(this)?0:1}function Ug(){return!af(this)!=!bf(this)?1:0}function Vg(){return!af(this)!=!bf(this)?0:1}function Wg(){return $e(this)||!af(this)!=!bf(this)?1:0}function Xg(){return $e(this)||!af(this)!=!bf(this)?0:1} function Yg(a,b,c){if(c){16>>16-c)&65535;cf(this,a,32768,d&32768)}return a}function Zg(a,b,c){if(c){var d=a<>>32-c;cf(this,a,-2147483648,d&-2147483648)}return a}function $g(a,b){return Yg.call(this,a,b,this.ba())}function ah(a,b){return Zg.call(this,a,b,this.ba())}function bh(a,b){return Yg.call(this,a,b,this.G&31)}function ch(a,b){return Zg.call(this,a,b,this.G&31)} -function dh(a,b,c){if(c){16>>c-1;a=(d>>>1|b<<16-c)&65535;cf(this,a,32768,d&1)}return a}function eh(a,b,c){if(c){var d=a>>>c-1;a=d>>>1|b<<32-c;cf(this,a,-2147483648,d&1)}return a}function fh(a,b){return dh.call(this,a,b,this.ba())}function gh(a,b){return eh.call(this,a,b,this.ba())}function xh(a,b){return dh.call(this,a,b,this.G&31)}function yh(a,b){return eh.call(this,a,b,this.G&31)} +function dh(a,b,c){if(c){16>>c-1;a=(d>>>1|b<<16-c)&65535;cf(this,a,32768,d&1)}return a}function eh(a,b,c){if(c){var d=a>>>c-1;a=d>>>1|b<<32-c;cf(this,a,-2147483648,d&1)}return a}function fh(a,b){return dh.call(this,a,b,this.ba())}function gh(a,b){return eh.call(this,a,b,this.ba())}function hh(a,b){return dh.call(this,a,b,this.G&31)}function yh(a,b){return eh.call(this,a,b,this.G&31)} function zh(a,b){var c=a-b|0;We(this,a,b,c,191,!0);this.A-=this.aa===n?this.P===n?this.B.fc:this.B.Nb:this.B.vc;return c&255}function Ah(a,b){var c=a-b|0;We(this,a,b,c,this.Na|63,!0);this.A-=this.aa===n?this.P===n?this.B.fc:this.B.Nb:this.B.vc;return c&this.C}function Bh(a,b){cf(this,a&b,128);this.A-=this.aa===n?this.P===n?this.B.Hg:this.B.$e:this.B.$e;this.W|=2;return a}function Ch(a,b){cf(this,a&b,this.Na);this.A-=this.aa===n?this.P===n?this.B.Hg:this.B.$e:this.B.$e;this.W|=2;return a} -function Dh(a,b){if(this.P===n){switch(this.le&7){case 0:this.F=this.F&-256|a;break;case 1:this.G=this.G&-256|a;break;case 2:this.H=this.H&-256|a;break;case 3:this.D=this.D&-256|a;break;case 4:this.F=this.F&-65281|a<<8;break;case 5:this.G=this.G&-65281|a<<8;break;case 6:this.H=this.H&-65281|a<<8;break;case 7:this.D=this.D&-65281|a<<8}this.A-=this.B.Jg}else this.aa=this.P,Q(this,a),this.A-=this.B.Ig;return b} -function Eh(a,b){if(this.P===n){switch(this.le&7){case 0:this.F=this.F&~this.C|a;break;case 1:this.G=this.G&~this.C|a;break;case 2:this.H=this.H&~this.C|a;break;case 3:this.D=this.D&~this.C|a;break;case 4:t(this,u(this)&~this.C|a);break;case 5:this.L=this.D&~this.C|a;break;case 6:this.K=this.K&~this.C|a;break;case 7:this.J=this.J&~this.C|a}this.A-=this.B.Jg}else this.aa=this.P,R(this,a),this.A-=this.B.Ig;return b} +function Dh(a,b){if(this.P===n){switch(this.ke&7){case 0:this.F=this.F&-256|a;break;case 1:this.G=this.G&-256|a;break;case 2:this.H=this.H&-256|a;break;case 3:this.D=this.D&-256|a;break;case 4:this.F=this.F&-65281|a<<8;break;case 5:this.G=this.G&-65281|a<<8;break;case 6:this.H=this.H&-65281|a<<8;break;case 7:this.D=this.D&-65281|a<<8}this.A-=this.B.Jg}else this.aa=this.P,Q(this,a),this.A-=this.B.Ig;return b} +function Eh(a,b){if(this.P===n){switch(this.ke&7){case 0:this.F=this.F&~this.C|a;break;case 1:this.G=this.G&~this.C|a;break;case 2:this.H=this.H&~this.C|a;break;case 3:this.D=this.D&~this.C|a;break;case 4:t(this,u(this)&~this.C|a);break;case 5:this.L=this.D&~this.C|a;break;case 6:this.K=this.K&~this.C|a;break;case 7:this.J=this.J&~this.C|a}this.A-=this.B.Jg}else this.aa=this.P,R(this,a),this.A-=this.B.Ig;return b} function Fh(a,b){var c=a^b;cf(this,c,128);this.A-=this.aa===n?this.P===n?this.B.fc:this.B.Nb:this.B.vc;return c}function Gh(a,b){this.A-=this.aa===n?this.P===n?this.B.fc:this.B.Nb:this.B.vc;return cf(this,a^b,this.Na)}function Hh(a){p.call(this,13,0);return a}function fe(a){p.call(this,6);return a}function Ih(a){ie.call(this);return a}function Jh(){p.call(this,0,null,!1,2)}function Kh(){this.A-=this.P===n?2:this.B.Ei;return 1} function Lh(){var a=this.G&255;this.A-=(this.P===n?this.B.Ag:this.B.zg)+(a<this.nb?(D(this,this.Ea-this.za.Fa),this.La!=n&&(t(this,this.jb&~this.xa.Ga|this.La-this.xa.Fa),this.La=n),e=!0):8!=this.nb?(b=0,a=8,e=!0):(a=-1,b=0,ue(this),c=!1)):D(this,this.Ea-this.za.Fa);var g=a,h=b,m=32,q=rf(this,this.Aa);204!=q||this.Sd||(c=!1);this.ca&131072&&(6==g&&99==q||13==g&&205==q)&&(c=!1);14==g&&207==q&&(c=!0);!1===c&&(m|=1);983040<=this.Aa&&1048575>=this.Aa&&(c=!1);this.ta(m|-2147483648)&&(c=!0);if(this.ta(m)||c){var r=this.oa.Eb, -g="Fault "+fa(g)+(null!=h?" ("+ga(h)+")":"")+" on opcode "+fa(q);c&&r&&(g+=" (blocked by PCjs Debugger)");this.Ca(g,c||m,!0)?c&&(c=r,this.ga.Xb()):(this.Ta(g),this.Xb())}c&&(e=!1);if(e)throw this.nb=a,Kf.call(this,a,b,d||0),this.Ea=this.Aa,this.W=1==a?this.W|8192:this.W|4096,a;}function we(a,b,c){this.de=a;a=0;b&&(a|=1);c&&(a|=2);3==this.sa&&(a|=4);p.call(this,14,a)}function ge(){this.kd[this.ba()].call(this)}function je(){sd(this,u(this)&this.C);this.A-=this.B.Cc} +function p(a,b,c,d){var e=null;this.oa.Dd?80186<=this.ra&&(0>this.ob?(rd(this),D(this,this.Ea-this.Aa.Fa),this.La!=n&&(t(this,this.jb&~this.wa.Ga|this.La-this.wa.Fa),this.La=n),e=!0):8!=this.ob?(b=0,a=8,e=!0):(a=-1,b=0,ue(this),c=!1)):(rd(this),D(this,this.Ea-this.Aa.Fa));var g=a,h=b,m=32,q=rf(this,this.za);204!=q||this.Rd||(c=!1);this.ca&131072&&(6==g&&99==q||13==g&&205==q)&&(c=!1);14==g&&207==q&&(c=!0);!1===c&&(m|=1);983040<=this.za&&1048575>=this.za&&(c=!1);this.ta(m|-2147483648)&&(c=!0);if(this.ta(m)|| +c){var r=this.oa.Eb,g="Fault "+fa(g)+(null!=h?" ("+ga(h)+")":"")+" on opcode "+fa(q);c&&r&&(g+=" (blocked by PCjs Debugger)");this.Ca(g,c||m,!0)?c&&(c=r,this.ga.Xb()):(this.Ta(g),this.Xb())}c&&(e=!1);if(e)throw this.ob=a,Kf.call(this,a,b,d||0),this.Ea=this.za,this.W=1==a?this.W|8192:this.W|4096,a;}function we(a,b,c){this.ce=a;a=0;b&&(a|=1);c&&(a|=2);3==this.sa&&(a|=4);p.call(this,14,a)}function ge(){this.kd[this.ba()].call(this)}function je(){sd(this,u(this)&this.C);this.A-=this.B.Cc} function Md(){var a=u(this)&this.C;sd(this,this.F&this.C);sd(this,this.G&this.C);sd(this,this.H&this.C);sd(this,this.D&this.C);sd(this,a);sd(this,this.L&this.C);sd(this,this.K&this.C);sd(this,this.J&this.C);this.A-=this.B.yi}function Nd(){this.J=this.J&~this.C|kd(this);this.K=this.K&~this.C|kd(this);this.L=this.L&~this.C|kd(this);t(this,u(this)+this.ha);this.D=this.D&~this.C|kd(this);this.H=this.H&~this.C|kd(this);this.G=this.G&~this.C|kd(this);this.F=this.F&~this.C|kd(this);this.A-=this.B.wi} -function Od(){this.fa[this.ba()].call(this,Uf)}function pe(){!(this.mb&1)||this.ca&131072?p.call(this,6):this.Da[this.ba()].call(this,Tf)}function qe(){this.W|=20;this.R=this.S=this.Ob;this.A-=this.B.Wc}function re(){this.W|=20;this.R=this.S=this.Pb;this.A-=this.B.Wc}function se(){this.W|=1024;this.Y&1024||(this.ha^=6,this.C^=-65536,Le(this));this.A-=this.B.Wc}function te(){this.W|=2048;this.Y&2048||(this.Zc^=6,this.Ga^=-65536,Be(this));this.A-=this.B.Wc} +function Od(){this.fa[this.ba()].call(this,Uf)}function pe(){!(this.nb&1)||this.ca&131072?p.call(this,6):this.Da[this.ba()].call(this,Tf)}function qe(){this.W|=20;this.R=this.S=this.Ob;this.A-=this.B.Vc}function re(){this.W|=20;this.R=this.S=this.Pb;this.A-=this.B.Vc}function se(){this.W|=1024;this.Y&1024||(this.ha^=6,this.C^=-65536,Le(this));this.A-=this.B.Vc}function te(){this.W|=2048;this.Y&2048||(this.Yc^=6,this.Ga^=-65536,Be(this));this.A-=this.B.Vc} function Pd(){sd(this,this.Pa());this.A-=this.B.Cc}function Qd(){this.fa[this.ba()].call(this,mg)}function Rd(){sd(this,this.M());this.A-=this.B.Cc}function Sd(){this.fa[this.ba()].call(this,lg)} -function Td(){var a=1,b=0,c=this.Ga,d=5;this.Y&192&&(a=this.G&c,b=1,this.Y&256&&(d=4));if(a--){var e=this.H&65535;qf(this,e,1,!0)&&(e=hc(this.na,e,1,this.Aa-b-1),this.rc(this.cb.sc(this.J&c,1),e),this.W&4096||(this.J=this.J&~c|this.J+(this.ca&1024?-1:1)&c,this.G=this.G&~c|this.G-b&c,this.A-=d,a&&(this.Aa=this.Ea,this.W|=256)))}} -function Ud(){var a=1,b=0,c=this.Ga,d=5;this.Y&192&&(a=this.G&c,b=1,this.Y&256&&(d=4));if(a--){var e=this.H&65535;qf(this,e,this.ha,!0)&&(e=hc(this.na,e,this.ha,this.Aa-b-1),this.zc(this.cb.sc(this.J&c,this.ha),e),this.W&4096||(this.J=this.J&~c|this.J+(this.ca&1024?-this.ha:this.ha)&c,this.G=this.G&~c|this.G-b&c,this.A-=d,a&&(this.Aa=this.Ea,this.W|=256)))}} -function Vd(){var a=1,b=0,c=this.Ga,d=5;this.Y&192&&(a=this.G&c,b=1,this.Y&256&&(d=4));if(a--){var e=this.H&65535;if(qf(this,e,1,!1)){var g=this.Wa(this.xb.Ac(this.K&c,1));this.W&4096||(lc(this.na,e,1,g,this.Aa-b-1),this.K=this.K&~c|this.K+(this.ca&1024?-1:1)&c,this.G=this.G&~c|this.G-b&c,this.A-=d,a&&(this.Aa=this.Ea,this.W|=256))}}} -function Wd(){var a=1,b=0,c=this.Ga,d=5;this.Y&192&&(a=this.G&c,b=1,this.Y&256&&(d=4));if(a--){var e=qd(this,this.xb,this.K&c);if(!(this.W&4096)){var g=this.H&65535;qf(this,g,this.ha,!1)&&(lc(this.na,g,this.ha,e,this.Aa-b-1),this.K=this.K&~c|this.K+(this.ca&1024?-this.ha:this.ha)&c,this.G=this.G&~c|this.G-b&c,this.A-=d,a&&(this.Aa=this.Ea,this.W|=256))}}}function Ph(){var a=this.M();bf(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab} +function Td(){var a=1,b=0,c=this.Ga,d=5;this.Y&192&&(a=this.G&c,b=1,this.Y&256&&(d=4));if(a--){var e=this.H&65535;qf(this,e,1,!0)&&(e=hc(this.na,e,1,this.za-b-1),this.rc(this.cb.sc(this.J&c,1),e),this.W&4096||(this.J=this.J&~c|this.J+(this.ca&1024?-1:1)&c,this.G=this.G&~c|this.G-b&c,this.A-=d,a&&(this.za=this.Ea,this.W|=256)))}} +function Ud(){var a=1,b=0,c=this.Ga,d=5;this.Y&192&&(a=this.G&c,b=1,this.Y&256&&(d=4));if(a--){var e=this.H&65535;qf(this,e,this.ha,!0)&&(e=hc(this.na,e,this.ha,this.za-b-1),this.zc(this.cb.sc(this.J&c,this.ha),e),this.W&4096||(this.J=this.J&~c|this.J+(this.ca&1024?-this.ha:this.ha)&c,this.G=this.G&~c|this.G-b&c,this.A-=d,a&&(this.za=this.Ea,this.W|=256)))}} +function Vd(){var a=1,b=0,c=this.Ga,d=5;this.Y&192&&(a=this.G&c,b=1,this.Y&256&&(d=4));if(a--){var e=this.H&65535;if(qf(this,e,1,!1)){var g=this.Wa(this.xb.Ac(this.K&c,1));this.W&4096||(lc(this.na,e,1,g,this.za-b-1),this.K=this.K&~c|this.K+(this.ca&1024?-1:1)&c,this.G=this.G&~c|this.G-b&c,this.A-=d,a&&(this.za=this.Ea,this.W|=256))}}} +function Wd(){var a=1,b=0,c=this.Ga,d=5;this.Y&192&&(a=this.G&c,b=1,this.Y&256&&(d=4));if(a--){var e=qd(this,this.xb,this.K&c);if(!(this.W&4096)){var g=this.H&65535;qf(this,g,this.ha,!1)&&(lc(this.na,g,this.ha,e,this.za-b-1),this.K=this.K&~c|this.K+(this.ca&1024?-this.ha:this.ha)&c,this.G=this.G&~c|this.G-b&c,this.A-=d,a&&(this.za=this.Ea,this.W|=256))}}}function Ph(){var a=this.M();bf(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab} function Qh(){var a=this.M();bf(this)?this.A-=this.B.ab:(D(this,v(this)+a),this.A-=this.B.$a)}function Rh(){var a=this.M();Xe(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab}function Sh(){var a=this.M();Xe(this)?this.A-=this.B.ab:(D(this,v(this)+a),this.A-=this.B.$a)}function Th(){var a=this.M();$e(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab}function Uh(){var a=this.M();$e(this)?this.A-=this.B.ab:(D(this,v(this)+a),this.A-=this.B.$a)} function Vh(){var a=this.M();Xe(this)||$e(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab}function Wh(){var a=this.M();Xe(this)||$e(this)?this.A-=this.B.ab:(D(this,v(this)+a),this.A-=this.B.$a)}function Xh(){var a=this.M();af(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab}function Yh(){var a=this.M();af(this)?this.A-=this.B.ab:(D(this,v(this)+a),this.A-=this.B.$a)}function Zh(){var a=this.M();Ye(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab} function $h(){var a=this.M();Ye(this)?this.A-=this.B.ab:(D(this,v(this)+a),this.A-=this.B.$a)}function ai(){var a=this.M();!af(this)!=!bf(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab}function bi(){var a=this.M();!af(this)==!bf(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab}function ci(){var a=this.M();$e(this)||!af(this)!=!bf(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab} function di(){var a=this.M();$e(this)||!af(this)!=!bf(this)?this.A-=this.B.ab:(D(this,v(this)+a),this.A-=this.B.$a)}function ei(){this.Yb[this.ba()].call(this,fi,this.ba);this.A-=this.aa===n?1:this.B.xf}function ae(){this.Yb[this.ba()].call(this,gi,Mh)}function be(){this.Ua[this.ba()].call(this,2==this.ha?hi:ii,Mh)}function ji(){var a=wf(this),b=kd(this);D(this,b);a&&t(this,u(this)+a);this.A-=this.B.Di}function ki(){var a=kd(this);D(this,a);this.A-=this.B.Ai} -function ce(){var a=wf(this),b=this.ba()&31;this.A-=11;sd(this,this.L);var c=u(this)&this.C;if(0>8&255;9<(c&15)||Ze(this)?(c=c+6&15,d=d+1&255,a=b=1):a=b=0;this.F=this.F&-65536|d<<8|c;a?df(this):ef(this); -b?nf(this):kf(this);this.A-=this.B.ae},function(){this.eb[this.ba()].call(this,fg)},function(){this.Da[this.ba()].call(this,gg)},function(){this.Za[this.ba()].call(this,fg)},function(){this.fa[this.ba()].call(this,gg)},function(){fg.call(this,this.F&255,this.ba());this.A--},function(){gg.call(this,this.F&this.C,this.Pa());this.A--},function(){this.W|=20;this.R=this.S=this.xb;this.A-=this.B.Wc},function(){var a,b,c=this.F&255,d=this.F>>8&255;9<(c&15)||Ze(this)?(c=c-6&15,d=d-1&255,a=b=1):a=b=0;this.F= -this.F&-65536|d<<8|c;a?df(this):ef(this);b?nf(this):kf(this);this.A-=this.B.ae},function(){this.F=pg.call(this,this.F)},function(){this.G=pg.call(this,this.G)},function(){this.H=pg.call(this,this.H)},function(){this.D=pg.call(this,this.D)},function(){t(this,pg.call(this,u(this)))},function(){this.L=pg.call(this,this.L)},function(){this.K=pg.call(this,this.K)},function(){this.J=pg.call(this,this.J)},function(){this.F=hg.call(this,this.F)},function(){this.G=hg.call(this,this.G)},function(){this.H=hg.call(this, +function ce(){var a=wf(this),b=this.ba()&31;this.A-=11;sd(this,this.L);var c=u(this)&this.C;if(0>8&255;9<(c&15)||Ze(this)?(c=c+6&15,d=d+1&255,a=b=1):a=b=0;this.F=this.F&-65536|d<<8|c;a?df(this):ef(this); +b?nf(this):kf(this);this.A-=this.B.$d},function(){this.eb[this.ba()].call(this,fg)},function(){this.Da[this.ba()].call(this,gg)},function(){this.Za[this.ba()].call(this,fg)},function(){this.fa[this.ba()].call(this,gg)},function(){fg.call(this,this.F&255,this.ba());this.A--},function(){gg.call(this,this.F&this.C,this.Pa());this.A--},function(){this.W|=20;this.R=this.S=this.xb;this.A-=this.B.Vc},function(){var a,b,c=this.F&255,d=this.F>>8&255;9<(c&15)||Ze(this)?(c=c-6&15,d=d-1&255,a=b=1):a=b=0;this.F= +this.F&-65536|d<<8|c;a?df(this):ef(this);b?nf(this):kf(this);this.A-=this.B.$d},function(){this.F=pg.call(this,this.F)},function(){this.G=pg.call(this,this.G)},function(){this.H=pg.call(this,this.H)},function(){this.D=pg.call(this,this.D)},function(){t(this,pg.call(this,u(this)))},function(){this.L=pg.call(this,this.L)},function(){this.K=pg.call(this,this.K)},function(){this.J=pg.call(this,this.J)},function(){this.F=hg.call(this,this.F)},function(){this.G=hg.call(this,this.G)},function(){this.H=hg.call(this, this.H)},function(){this.D=hg.call(this,this.D)},function(){t(this,hg.call(this,u(this)))},function(){this.L=hg.call(this,this.L)},function(){this.K=hg.call(this,this.K)},function(){this.J=hg.call(this,this.J)},function(){sd(this,this.F&this.C);this.A-=this.B.Cc},function(){sd(this,this.G&this.C);this.A-=this.B.Cc},function(){sd(this,this.H&this.C);this.A-=this.B.Cc},function(){sd(this,this.D&this.C);this.A-=this.B.Cc},function(){sd(this,u(this)-2&65535);this.A-=this.B.Cc},function(){sd(this,this.L& this.C);this.A-=this.B.Cc},function(){sd(this,this.K&this.C);this.A-=this.B.Cc},function(){sd(this,this.J&this.C);this.A-=this.B.Cc},function(){this.F=this.F&~this.C|kd(this);this.A-=this.B.gc},function(){this.G=this.G&~this.C|kd(this);this.A-=this.B.gc},function(){this.H=this.H&~this.C|kd(this);this.A-=this.B.gc},function(){this.D=this.D&~this.C|kd(this);this.A-=this.B.gc},function(){t(this,u(this)&~this.C|kd(this));this.A-=this.B.gc},function(){this.L=this.L&~this.C|kd(this);this.A-=this.B.gc}, -function(){this.K=this.K&~this.C|kd(this);this.A-=this.B.gc},function(){this.J=this.J&~this.C|kd(this);this.A-=this.B.gc},Ph,Qh,Rh,Sh,Th,Uh,Vh,Wh,Xh,Yh,Zh,$h,ai,bi,ci,di,Ph,Qh,Rh,Sh,Th,Uh,Vh,Wh,Xh,Yh,Zh,$h,ai,bi,ci,di,ei,function(){this.Ua[this.ba()].call(this,pi,this.Pa);this.A-=this.aa===n?1:this.B.xf},ei,function(){this.Ua[this.ba()].call(this,pi,this.M);this.A-=this.aa===n?1:this.B.xf},function(){this.eb[this.ba()].call(this,Bh)},function(){this.Da[this.ba()].call(this,Ch)},function(){this.Za[this.le= -this.ba()].call(this,Dh)},function(){this.fa[this.le=this.ba()].call(this,Eh)},function(){this.W|=1;this.eb[this.ba()].call(this,zg)},function(){this.W|=1;this.Da[this.ba()].call(this,zg)},function(){this.Za[this.ba()].call(this,zg)},function(){this.fa[this.ba()].call(this,zg)},function(){var a=this.ba();switch((a&56)>>3){case 0:this.Db=this.cb.ea;break;case 1:this.Db=this.za.ea;break;case 2:this.Db=this.xa.ea;break;case 3:this.Db=this.xb.ea;break;case 4:if(80386<=this.ra){this.Db=this.Ob.ea;break}p.call(this, +function(){this.K=this.K&~this.C|kd(this);this.A-=this.B.gc},function(){this.J=this.J&~this.C|kd(this);this.A-=this.B.gc},Ph,Qh,Rh,Sh,Th,Uh,Vh,Wh,Xh,Yh,Zh,$h,ai,bi,ci,di,Ph,Qh,Rh,Sh,Th,Uh,Vh,Wh,Xh,Yh,Zh,$h,ai,bi,ci,di,ei,function(){this.Ua[this.ba()].call(this,pi,this.Pa);this.A-=this.aa===n?1:this.B.xf},ei,function(){this.Ua[this.ba()].call(this,pi,this.M);this.A-=this.aa===n?1:this.B.xf},function(){this.eb[this.ba()].call(this,Bh)},function(){this.Da[this.ba()].call(this,Ch)},function(){this.Za[this.ke= +this.ba()].call(this,Dh)},function(){this.fa[this.ke=this.ba()].call(this,Eh)},function(){this.W|=1;this.eb[this.ba()].call(this,zg)},function(){this.W|=1;this.Da[this.ba()].call(this,zg)},function(){this.Za[this.ba()].call(this,zg)},function(){this.fa[this.ba()].call(this,zg)},function(){var a=this.ba();switch((a&56)>>3){case 0:this.Db=this.cb.ea;break;case 1:this.Db=this.Aa.ea;break;case 2:this.Db=this.wa.ea;break;case 3:this.Db=this.xb.ea;break;case 4:if(80386<=this.ra){this.Db=this.Ob.ea;break}p.call(this, 6);return;case 5:if(80386<=this.ra){this.Db=this.Pb.ea;break}default:p.call(this,6);return}this.W|=1;this.Da[a].call(this,Bg)},function(){this.W|=1;this.R=this.S=this.bh;this.fa[this.ba()].call(this,tg)},function(){var a,b;b=this.ba();var c=(b&56)>>3;switch(c){case 0:a=this.F;break;case 2:a=this.H;break;case 3:a=this.D;break;default:if(80286==this.ra||80386==this.ra&&4!=c&&5!=c){p.call(this,6);return}switch(c){case 1:a=this.G;break;case 4:a=u(this);break;case 5:a=this.L;break;case 6:a=this.K;break; case 7:a=this.J}}this.fa[b].call(this,zg);switch(c){case 0:b=this.F;this.F=a;ud(this,b);break;case 1:b=this.G;this.G=a;Ue(this,b);break;case 2:b=this.H;this.H=a;ld(this,b);break;case 3:b=this.D;this.D=a;td(this,b);break;case 4:b=u(this);t(this,a);80386<=this.ra?this.Ob.load(b):ud(this,b);break;case 5:b=this.L;this.L=a;80386<=this.ra?this.Pb.load(b):Ue(this,b);break;case 6:b=this.K;this.K=a;ld(this,b);break;case 7:b=this.J,this.J=a,td(this,b)}},function(){this.W|=1;this.Db=kd(this);this.Ua[this.ba()].call(this, qi,Oh)},function(){this.A-=3},function(){var a=this.F;this.F=this.F&~this.C|this.G&this.C;this.G=this.G&~this.C|a&this.C;this.A-=3},function(){var a=this.F;this.F=this.F&~this.C|this.H&this.C;this.H=this.H&~this.C|a&this.C;this.A-=3},function(){var a=this.F;this.F=this.F&~this.C|this.D&this.C;this.D=this.D&~this.C|a&this.C;this.A-=3},function(){var a=this.F,b=u(this);this.F=this.F&~this.C|b&this.C;t(this,b&~this.C|a&this.C);this.A-=3},function(){var a=this.F;this.F=this.F&~this.C|this.L&this.C;this.L= this.L&~this.C|a&this.C;this.A-=3},function(){var a=this.F;this.F=this.F&~this.C|this.K&this.C;this.K=this.K&~this.C|a&this.C;this.A-=3},function(){var a=this.F;this.F=this.F&~this.C|this.J&this.C;this.J=this.J&~this.C|a&this.C;this.A-=3},function(){this.F=2==this.ha?this.F&-65536|this.F<<24>>24&65535:this.F<<16>>16;this.A-=2},function(){this.H=2==this.ha?this.H&-65536|(this.F&32768?65535:0):this.F&-2147483648?-1:0;this.A-=this.B.Jh},function(){eg.call(this,this.Pa(),wf(this));this.A-=this.B.Mh}, -function(){this.Ca("WAIT not implemented");this.A--},function(){var a=zd(this);a&131072&&3>this.bb?p.call(this,13,0):(sd(this,a&-196609),this.A-=this.B.Cc)},function(){if(this.ca&131072&&3>this.bb)p.call(this,13,0);else{var a=kd(this),a=a&65535|this.ca&-65536;Ad(this,a);this.A-=this.B.gc}},function(){var a=this.F>>8&255;a&1?df(this):ef(this);a&4?(this.resultType&=-3,this.ca|=4):(this.resultType&=-3,this.ca&=-5);a&16?nf(this):kf(this);a&64?of(this):lf(this);a&128?(this.resultType&=-17,this.ca|=128): -(this.resultType&=-17,this.ca&=-129);this.A-=this.B.Vb},function(){this.F=this.F&-65281|(zd(this)&213)<<8;this.A-=this.B.Vb},function(){var a=this.F&-256,b;b=S(this);b=this.Wa(this.R.Ac(b,1));this.F=a|b;this.A-=this.B.pg},function(){this.F=this.F&~this.C|qd(this,this.R,S(this));this.A-=this.B.pg},function(){var a=S(this),b=this.F;this.rc(this.R.sc(a,1),b);this.A-=this.B.qg},function(){var a=S(this),b=this.F;this.zc(this.R.sc(a,this.ha),b);this.A-=this.B.qg},function(){var a=1,b=0,c=this.Ga,d=this.B.rg; -this.Y&192&&(a=this.G&c,b=1,d=this.B.tg,this.Y&256||(this.A-=this.B.sg));if(a--){var e=this.Wa(this.R.Ac(this.K&c,1));this.rc(this.cb.sc(this.J&c,1),e);this.W&4096||(e=this.ca&1024?-1:1,this.K=this.K&~c|this.K+e&c,this.J=this.J&~c|this.J+e&c,this.A-=d,this.G=this.G&~c|this.G-b&c,a&&(this.Aa=this.Ea,this.W|=256))}},function(){var a=1,b=0,c=this.Ga,d=this.B.rg;this.Y&192&&(a=this.G&c,b=1,d=this.B.tg,this.Y&256||(this.A-=this.B.sg));if(a--){var e=qd(this,this.R,this.K&c);this.zc(this.cb.sc(this.J&c, -this.ha),e);this.W&4096||(e=this.ca&1024?-this.ha:this.ha,this.K=this.K&~c|this.K+e&c,this.J=this.J&~c|this.J+e&c,this.A-=d,this.G=this.G&~c|this.G-b&c,a&&(this.Aa=this.Ea,this.W|=256))}},function(){var a=1,b=0,c=this.Ga,d=this.B.cg;this.Y&192&&(a=this.G&c,b=1,d=this.B.eg,this.Y&256||(this.A-=this.B.dg));if(a--){var e=sf(this,this.R,this.K&c),g=uf(this,this.cb,this.J&c);this.W&4096||(fg.call(this,e,g),e=this.ca&1024?-1:1,this.K=this.K&~c|this.K+e&c,this.J=this.J&~c|this.J+e&c,this.G=this.G&~c|this.G- -b&c,this.A-=d-this.B.Nb,a&&$e(this)==(this.Y&64)&&(this.Aa=this.Ea,this.W|=256))}},function(){var a=1,b=0,c=this.Ga,d=this.B.cg;this.Y&192&&(a=this.G&c,b=1,d=this.B.eg,this.Y&256||(this.A-=this.B.dg));if(a--){var e=tf(this,this.R,this.K&c),g=vf(this,this.cb,this.J&c);this.W&4096||(gg.call(this,e,g),e=this.ca&1024?-this.ha:this.ha,this.K=this.K&~c|this.K+e&c,this.J=this.J&~c|this.J+e&c,this.G=this.G&~c|this.G-b&c,this.A-=d-this.B.Nb,a&&$e(this)==(this.Y&64)&&(this.Aa=this.Ea,this.W|=256))}},function(){cf(this, -this.F&this.ba(),128);this.A-=this.B.ae},function(){cf(this,this.F&this.Pa(),this.Na);this.A-=this.B.ae},function(){var a=1,b=0,c=this.Ga,d=this.B.Cg;this.Y&192&&(a=this.G&c,b=1,d=this.B.Eg,this.Y&256||(this.A-=this.B.Dg));if(a--){var e=this.F;this.rc(this.cb.sc(this.J&c,1),e);this.W&4096||(this.J=this.J&~c|this.J+(this.ca&1024?-1:1)&c,this.G=this.G&~c|this.G-b&c,this.A-=d,a&&(this.Aa=this.Ea,this.W|=256))}},function(){var a=1,b=0,c=this.Ga,d=this.B.Cg;this.Y&192&&(a=this.G&c,b=1,d=this.B.Eg,this.Y& -256||(this.A-=this.B.Dg));if(a--){var e=this.F;this.zc(this.cb.sc(this.J&c,this.ha),e);this.W&4096||(this.J=this.J&~c|this.J+(this.ca&1024?-this.ha:this.ha)&c,this.G=this.G&~c|this.G-b&c,this.A-=d,a&&(this.Aa=this.Ea,this.W|=256))}},function(){var a=1,b=0,c=this.Ga,d=this.B.jg;this.Y&192&&(a=this.G&c,b=1,d=this.B.lg,this.Y&256||(this.A-=this.B.kg));if(a--){var e=this.Wa(this.R.Ac(this.K&c,1));this.W&4096||(this.F=this.F&-256|e,this.K=this.K&~c|this.K+(this.ca&1024?-1:1)&c,this.G=this.G&~c|this.G- -b&c,this.A-=d,a&&(this.Aa=this.Ea,this.W|=256))}},function(){var a=1,b=0,c=this.Ga,d=this.B.jg;this.Y&192&&(a=this.G&c,b=1,d=this.B.lg,this.Y&256||(this.A-=this.B.kg));if(a--){var e=qd(this,this.R,this.K&c);this.W&4096||(this.F=this.F&~this.C|e,this.K=this.K&~c|this.K+(this.ca&1024?-this.ha:this.ha)&c,this.G=this.G&~c|this.G-b&c,this.A-=d,a&&(this.Aa=this.Ea,this.W|=256))}},function(){var a=1,b=0,c=this.Ga,d=this.B.wg;this.Y&192&&(a=this.G&c,b=1,d=this.B.yg,this.Y&256||(this.A-=this.B.xg));a--&&(fg.call(this, -this.F&255,uf(this,this.cb,this.J&c)),this.W&4096||(this.J=this.J&~c|this.J+(this.ca&1024?-1:1)&c,this.G=this.G&~c|this.G-b&c,this.A-=d-this.B.Nb,a&&$e(this)==(this.Y&64)&&(this.Aa=this.Ea,this.W|=256)))},function(){var a=1,b=0,c=this.Ga,d=this.B.wg;this.Y&192&&(a=this.G&c,b=1,d=this.B.yg,this.Y&256||(this.A-=this.B.xg));a--&&(gg.call(this,this.F&this.C,vf(this,this.cb,this.J&c)),this.W&4096||(this.J=this.J&~c|this.J+(this.ca&1024?-this.ha:this.ha)&c,this.G=this.G&~c|this.G-b&c,this.A-=d-this.B.Nb, -a&&$e(this)==(this.Y&64)&&(this.Aa=this.Ea,this.W|=256)))},function(){this.F=this.F&-256|this.ba();this.A-=this.B.Vb},function(){this.G=this.G&-256|this.ba();this.A-=this.B.Vb},function(){this.H=this.H&-256|this.ba();this.A-=this.B.Vb},function(){this.D=this.D&-256|this.ba();this.A-=this.B.Vb},function(){this.F=this.F&-65281|this.ba()<<8;this.A-=this.B.Vb},function(){this.G=this.G&-65281|this.ba()<<8;this.A-=this.B.Vb},function(){this.H=this.H&-65281|this.ba()<<8;this.A-=this.B.Vb},function(){this.D= +function(){this.Ca("WAIT not implemented");this.A--},function(){var a=vd(this);a&131072&&3>this.bb?p.call(this,13,0):(sd(this,a&-196609),this.A-=this.B.Cc)},function(){if(this.ca&131072&&3>this.bb)p.call(this,13,0);else{var a=kd(this),a=a&65535|this.ca&-65536;wd(this,a);this.A-=this.B.gc}},function(){var a=this.F>>8&255;a&1?df(this):ef(this);a&4?(this.resultType&=-3,this.ca|=4):(this.resultType&=-3,this.ca&=-5);a&16?nf(this):kf(this);a&64?of(this):lf(this);a&128?(this.resultType&=-17,this.ca|=128): +(this.resultType&=-17,this.ca&=-129);this.A-=this.B.Vb},function(){this.F=this.F&-65281|(vd(this)&213)<<8;this.A-=this.B.Vb},function(){var a=this.F&-256,b;b=S(this);b=this.Wa(this.R.Ac(b,1));this.F=a|b;this.A-=this.B.pg},function(){this.F=this.F&~this.C|qd(this,this.R,S(this));this.A-=this.B.pg},function(){var a=S(this),b=this.F;this.rc(this.R.sc(a,1),b);this.A-=this.B.qg},function(){var a=S(this),b=this.F;this.zc(this.R.sc(a,this.ha),b);this.A-=this.B.qg},function(){var a=1,b=0,c=this.Ga,d=this.B.rg; +this.Y&192&&(a=this.G&c,b=1,d=this.B.tg,this.Y&256||(this.A-=this.B.sg));if(a--){var e=this.Wa(this.R.Ac(this.K&c,1));this.rc(this.cb.sc(this.J&c,1),e);this.W&4096||(e=this.ca&1024?-1:1,this.K=this.K&~c|this.K+e&c,this.J=this.J&~c|this.J+e&c,this.A-=d,this.G=this.G&~c|this.G-b&c,a&&(this.za=this.Ea,this.W|=256))}},function(){var a=1,b=0,c=this.Ga,d=this.B.rg;this.Y&192&&(a=this.G&c,b=1,d=this.B.tg,this.Y&256||(this.A-=this.B.sg));if(a--){var e=qd(this,this.R,this.K&c);this.zc(this.cb.sc(this.J&c, +this.ha),e);this.W&4096||(e=this.ca&1024?-this.ha:this.ha,this.K=this.K&~c|this.K+e&c,this.J=this.J&~c|this.J+e&c,this.A-=d,this.G=this.G&~c|this.G-b&c,a&&(this.za=this.Ea,this.W|=256))}},function(){var a=1,b=0,c=this.Ga,d=this.B.cg;this.Y&192&&(a=this.G&c,b=1,d=this.B.eg,this.Y&256||(this.A-=this.B.dg));if(a--){var e=sf(this,this.R,this.K&c),g=uf(this,this.cb,this.J&c);this.W&4096||(fg.call(this,e,g),e=this.ca&1024?-1:1,this.K=this.K&~c|this.K+e&c,this.J=this.J&~c|this.J+e&c,this.G=this.G&~c|this.G- +b&c,this.A-=d-this.B.Nb,a&&$e(this)==(this.Y&64)&&(this.za=this.Ea,this.W|=256))}},function(){var a=1,b=0,c=this.Ga,d=this.B.cg;this.Y&192&&(a=this.G&c,b=1,d=this.B.eg,this.Y&256||(this.A-=this.B.dg));if(a--){var e=tf(this,this.R,this.K&c),g=vf(this,this.cb,this.J&c);this.W&4096||(gg.call(this,e,g),e=this.ca&1024?-this.ha:this.ha,this.K=this.K&~c|this.K+e&c,this.J=this.J&~c|this.J+e&c,this.G=this.G&~c|this.G-b&c,this.A-=d-this.B.Nb,a&&$e(this)==(this.Y&64)&&(this.za=this.Ea,this.W|=256))}},function(){cf(this, +this.F&this.ba(),128);this.A-=this.B.$d},function(){cf(this,this.F&this.Pa(),this.Na);this.A-=this.B.$d},function(){var a=1,b=0,c=this.Ga,d=this.B.Cg;this.Y&192&&(a=this.G&c,b=1,d=this.B.Eg,this.Y&256||(this.A-=this.B.Dg));if(a--){var e=this.F;this.rc(this.cb.sc(this.J&c,1),e);this.W&4096||(this.J=this.J&~c|this.J+(this.ca&1024?-1:1)&c,this.G=this.G&~c|this.G-b&c,this.A-=d,a&&(this.za=this.Ea,this.W|=256))}},function(){var a=1,b=0,c=this.Ga,d=this.B.Cg;this.Y&192&&(a=this.G&c,b=1,d=this.B.Eg,this.Y& +256||(this.A-=this.B.Dg));if(a--){var e=this.F;this.zc(this.cb.sc(this.J&c,this.ha),e);this.W&4096||(this.J=this.J&~c|this.J+(this.ca&1024?-this.ha:this.ha)&c,this.G=this.G&~c|this.G-b&c,this.A-=d,a&&(this.za=this.Ea,this.W|=256))}},function(){var a=1,b=0,c=this.Ga,d=this.B.jg;this.Y&192&&(a=this.G&c,b=1,d=this.B.lg,this.Y&256||(this.A-=this.B.kg));if(a--){var e=this.Wa(this.R.Ac(this.K&c,1));this.W&4096||(this.F=this.F&-256|e,this.K=this.K&~c|this.K+(this.ca&1024?-1:1)&c,this.G=this.G&~c|this.G- +b&c,this.A-=d,a&&(this.za=this.Ea,this.W|=256))}},function(){var a=1,b=0,c=this.Ga,d=this.B.jg;this.Y&192&&(a=this.G&c,b=1,d=this.B.lg,this.Y&256||(this.A-=this.B.kg));if(a--){var e=qd(this,this.R,this.K&c);this.W&4096||(this.F=this.F&~this.C|e,this.K=this.K&~c|this.K+(this.ca&1024?-this.ha:this.ha)&c,this.G=this.G&~c|this.G-b&c,this.A-=d,a&&(this.za=this.Ea,this.W|=256))}},function(){var a=1,b=0,c=this.Ga,d=this.B.wg;this.Y&192&&(a=this.G&c,b=1,d=this.B.yg,this.Y&256||(this.A-=this.B.xg));a--&&(fg.call(this, +this.F&255,uf(this,this.cb,this.J&c)),this.W&4096||(this.J=this.J&~c|this.J+(this.ca&1024?-1:1)&c,this.G=this.G&~c|this.G-b&c,this.A-=d-this.B.Nb,a&&$e(this)==(this.Y&64)&&(this.za=this.Ea,this.W|=256)))},function(){var a=1,b=0,c=this.Ga,d=this.B.wg;this.Y&192&&(a=this.G&c,b=1,d=this.B.yg,this.Y&256||(this.A-=this.B.xg));a--&&(gg.call(this,this.F&this.C,vf(this,this.cb,this.J&c)),this.W&4096||(this.J=this.J&~c|this.J+(this.ca&1024?-this.ha:this.ha)&c,this.G=this.G&~c|this.G-b&c,this.A-=d-this.B.Nb, +a&&$e(this)==(this.Y&64)&&(this.za=this.Ea,this.W|=256)))},function(){this.F=this.F&-256|this.ba();this.A-=this.B.Vb},function(){this.G=this.G&-256|this.ba();this.A-=this.B.Vb},function(){this.H=this.H&-256|this.ba();this.A-=this.B.Vb},function(){this.D=this.D&-256|this.ba();this.A-=this.B.Vb},function(){this.F=this.F&-65281|this.ba()<<8;this.A-=this.B.Vb},function(){this.G=this.G&-65281|this.ba()<<8;this.A-=this.B.Vb},function(){this.H=this.H&-65281|this.ba()<<8;this.A-=this.B.Vb},function(){this.D= this.D&-65281|this.ba()<<8;this.A-=this.B.Vb},function(){this.F=this.F&~this.C|this.Pa();this.A-=this.B.Vb},function(){this.G=this.G&~this.C|this.Pa();this.A-=this.B.Vb},function(){this.H=this.H&~this.C|this.Pa();this.A-=this.B.Vb},function(){this.D=this.D&~this.C|this.Pa();this.A-=this.B.Vb},function(){t(this,u(this)&~this.C|this.Pa());this.A-=this.B.Vb},function(){this.L=this.L&~this.C|this.Pa();this.A-=this.B.Vb},function(){this.K=this.K&~this.C|this.Pa();this.A-=this.B.Vb},function(){this.J=this.J& -~this.C|this.Pa();this.A-=this.B.Vb},ji,ki,ji,ki,function(){this.fa[this.ba()].call(this,ug)},function(){this.fa[this.ba()].call(this,sg)},function(){this.W|=1;this.Yb[this.ba()].call(this,ri,this.ba)},function(){this.W|=1;this.Ua[this.ba()].call(this,ri,this.Pa)},li,mi,li,mi,function(){this.ca&131072&&3>this.bb?p.call(this,13,0):(this.nb=-1,Kf.call(this,3,null,this.B.ci))},function(){var a=this.ba();if(this.ca&131072&&3>this.bb)p.call(this,13,0);else{var b;a:{b=this.je[a];if(void 0!==b)for(var c= -0;cthis.bb?p.call(this,13,0):(this.nb=-1,Kf.call(this,4,null,this.B.di)):this.A-=this.B.ei},function(){if(this.ca&131072&&3>this.bb)p.call(this,13,0);else{this.La=this.ja;this.A-=this.B.ai;if(this.mb&1&&this.ca&16384){var a=this.va(this.Ya.Fa+0);od(this.za,a,!1)}else{var a=this.sa,b=kd(this),c=kd(this),d=kd(this);if(this.ca& -131072)d=d&131071|this.ca&-131072;else if(d&131072){var e=kd(this),g=kd(this),h=kd(this),m=kd(this),q=kd(this),r=kd(this);pd(this,!0,!0);ld(this,g);t(this,e);ud(this,h);td(this,m);this.Ob.load(q);this.Pb.load(r)}null!=Bd(this,b,c,!1)&&(Ad(this,d,a),this.me&&Oe(this,this.Aa))}this.La=n}},function(){this.Yb[this.ba()].call(this,gi,Kh)},function(){this.Ua[this.ba()].call(this,2==this.ha?hi:ii,Kh)},function(){this.Yb[this.ba()].call(this,gi,Lh)},function(){this.Ua[this.ba()].call(this,2==this.ha?hi:ii, +~this.C|this.Pa();this.A-=this.B.Vb},ji,ki,ji,ki,function(){this.fa[this.ba()].call(this,ug)},function(){this.fa[this.ba()].call(this,sg)},function(){this.W|=1;this.Yb[this.ba()].call(this,ri,this.ba)},function(){this.W|=1;this.Ua[this.ba()].call(this,ri,this.Pa)},li,mi,li,mi,function(){this.ca&131072&&3>this.bb?p.call(this,13,0):(this.ob=-1,Kf.call(this,3,null,this.B.ci))},function(){var a=this.ba();if(this.ca&131072&&3>this.bb)p.call(this,13,0);else{var b;a:{b=this.ie[a];if(void 0!==b)for(var c= +0;cthis.bb?p.call(this,13,0):(this.ob=-1,Kf.call(this,4,null,this.B.di)):this.A-=this.B.ei},function(){if(this.ca&131072&&3>this.bb)p.call(this,13,0);else{this.La=this.ja;this.A-=this.B.ai;if(this.nb&1&&this.ca&16384){var a=this.va(this.Ya.Fa+0);md(this.Aa,a,!1)}else{var a=this.sa,b=kd(this),c=kd(this),d=kd(this);if(this.ca& +131072)d=d&131071|this.ca&-131072;else if(d&131072){var e=kd(this),g=kd(this),h=kd(this),m=kd(this),q=kd(this),r=kd(this);nd(this,!0,!0);ld(this,g);t(this,e);ud(this,h);td(this,m);this.Ob.load(q);this.Pb.load(r)}null!=Bd(this,b,c,!1)&&(wd(this,d,a),this.le&&Oe(this,this.za))}this.La=n}},function(){this.Yb[this.ba()].call(this,gi,Kh)},function(){this.Ua[this.ba()].call(this,2==this.ha?hi:ii,Kh)},function(){this.Yb[this.ba()].call(this,gi,Lh)},function(){this.Ua[this.ba()].call(this,2==this.ha?hi:ii, Lh)},function(){var a=this.ba();if(a){var b=this.F&255;this.F=this.F&-65536|b/a<<8|b%a;cf(this,this.F,128);this.A-=this.B.Gh}},function(){var a=this.ba();this.F=this.F&-65536|(this.F>>8&255)*a+this.F&255;cf(this,this.F,128);this.A-=this.B.Fh},function(){this.F=this.F&-256|(Xe(this)?255:0);this.A-=2},function(){this.F=this.F&-256|sf(this,this.R,this.D+(this.F&255)&65535);this.A-=this.B.Fi},ni,ni,ni,ni,ni,ni,ni,ni,function(){var a=this.M(),b=this.G-1&this.Ga;this.G=this.G&~this.Ga|b;b&&!$e(this)?(D(this, -v(this)+a),this.A-=this.B.li):this.A-=this.B.mg},function(){var a=this.M(),b=this.G-1&this.Ga;this.G=this.G&~this.Ga|b;b&&$e(this)?(D(this,v(this)+a),this.A-=this.B.ng):this.A-=this.B.og},function(){var a=this.M(),b=this.G-1&this.Ga;this.G=this.G&~this.Ga|b;b?(D(this,v(this)+a),this.A-=this.B.ki):this.A-=this.B.mg},function(){var a=this.M();this.G&this.Ga?this.A-=this.B.og:(D(this,v(this)+a),this.A-=this.B.ng)},function(){var a=this.ba();qf(this,a,1,!0)&&(this.F=this.F&-256|hc(this.na,a,1,this.Aa- -2)&255,this.A-=this.B.hg)},function(){var a=this.ba();qf(this,a,this.ha,!0)&&(this.F=this.F&~this.C|hc(this.na,a,this.ha,this.Aa-2)&this.C,this.A-=this.B.hg)},function(){var a=this.ba();qf(this,a,1,!1)&&(lc(this.na,a,1,this.F&255,this.Aa-2),this.A-=this.B.vg)},function(){var a=this.ba();qf(this,a,this.ha,!1)&&(lc(this.na,a,this.ha,this.F&this.C,this.Aa-2),this.A-=this.B.vg)},function(){var a=this.Pa(),b=v(this),a=b+a;sd(this,b);D(this,a);this.A-=this.B.Kh},function(){var a=this.Pa();D(this,v(this)+ -a);this.A-=this.B.ig},function(){Bd(this,this.Pa(),wf(this));this.A-=this.B.gi},function(){var a=this.M();D(this,v(this)+a);this.A-=this.B.ig},function(){var a=this.H&65535;qf(this,a,1,!0)&&(this.F=this.F&-256|hc(this.na,a,1,this.Aa-1)&255,this.A-=this.B.gg)},function(){var a=this.H&65535;qf(this,a,this.ha,!0)&&(this.F=this.F&~this.C|hc(this.na,a,this.ha,this.Aa-1)&this.C,this.A-=this.B.gg)},function(){var a=this.H&65535;qf(this,a,1,!1)&&(lc(this.na,a,1,this.F&255,this.Aa-1),this.A-=this.B.ug)},function(){var a= -this.H&65535;qf(this,a,2,!1)&&(lc(this.na,a,this.ha,this.F&this.C,this.Aa-1),this.A-=this.B.ug)},oi,oi,function(){this.W|=132;this.A-=this.B.Wc},function(){this.W|=68;this.A-=this.B.Wc},function(){this.ca&131072?p.call(this,13,0):(this.ua|=4,this.A-=2,this.ga&&this.ta(-2147483648)?(this.Aa=this.Aa+-1|0,this.Xb()):this.ca&512||(this.ga&&(this.Aa=this.Aa+-1|0),this.Xb()))},function(){Xe(this)?ef(this):df(this);this.A-=2},function(){this.Ja=!1;this.Yb[this.ba()].call(this,ti,Nh);this.Ja&&(this.F=this.F& +v(this)+a),this.A-=this.B.li):this.A-=this.B.mg},function(){var a=this.M(),b=this.G-1&this.Ga;this.G=this.G&~this.Ga|b;b&&$e(this)?(D(this,v(this)+a),this.A-=this.B.ng):this.A-=this.B.og},function(){var a=this.M(),b=this.G-1&this.Ga;this.G=this.G&~this.Ga|b;b?(D(this,v(this)+a),this.A-=this.B.ki):this.A-=this.B.mg},function(){var a=this.M();this.G&this.Ga?this.A-=this.B.og:(D(this,v(this)+a),this.A-=this.B.ng)},function(){var a=this.ba();qf(this,a,1,!0)&&(this.F=this.F&-256|hc(this.na,a,1,this.za- +2)&255,this.A-=this.B.hg)},function(){var a=this.ba();qf(this,a,this.ha,!0)&&(this.F=this.F&~this.C|hc(this.na,a,this.ha,this.za-2)&this.C,this.A-=this.B.hg)},function(){var a=this.ba();qf(this,a,1,!1)&&(lc(this.na,a,1,this.F&255,this.za-2),this.A-=this.B.vg)},function(){var a=this.ba();qf(this,a,this.ha,!1)&&(lc(this.na,a,this.ha,this.F&this.C,this.za-2),this.A-=this.B.vg)},function(){var a=this.Pa(),b=v(this),a=b+a;sd(this,b);D(this,a);this.A-=this.B.Kh},function(){var a=this.Pa();D(this,v(this)+ +a);this.A-=this.B.ig},function(){Bd(this,this.Pa(),wf(this));this.A-=this.B.gi},function(){var a=this.M();D(this,v(this)+a);this.A-=this.B.ig},function(){var a=this.H&65535;qf(this,a,1,!0)&&(this.F=this.F&-256|hc(this.na,a,1,this.za-1)&255,this.A-=this.B.gg)},function(){var a=this.H&65535;qf(this,a,this.ha,!0)&&(this.F=this.F&~this.C|hc(this.na,a,this.ha,this.za-1)&this.C,this.A-=this.B.gg)},function(){var a=this.H&65535;qf(this,a,1,!1)&&(lc(this.na,a,1,this.F&255,this.za-1),this.A-=this.B.ug)},function(){var a= +this.H&65535;qf(this,a,2,!1)&&(lc(this.na,a,this.ha,this.F&this.C,this.za-1),this.A-=this.B.ug)},oi,oi,function(){this.W|=132;this.A-=this.B.Vc},function(){this.W|=68;this.A-=this.B.Vc},function(){this.ca&131072?p.call(this,13,0):(this.ua|=4,this.A-=2,this.ga&&this.ta(-2147483648)?(this.za=this.za+-1|0,this.Xb()):this.ca&512||(this.ga&&(this.za=this.za+-1|0),this.Xb()))},function(){Xe(this)?ef(this):df(this);this.A-=2},function(){this.Ja=!1;this.Yb[this.ba()].call(this,ti,Nh);this.Ja&&(this.F=this.F& ~this.C|this.qa&this.C)},function(){this.Ja=!1;this.Ua[this.ba()].call(this,ui,Nh);this.Ja&&(this.F=this.F&~this.C|this.qa&this.C,this.H=this.H&~this.C|this.Ma&this.C)},function(){ef(this);this.A-=2},function(){df(this);this.A-=2},function(){this.sa>this.bb?p.call(this,13,0):(this.ca&=-513,this.A-=this.B.Ih)},function(){this.sa>this.bb?p.call(this,13,0):(this.ca|=512,this.W|=4,this.A-=2)},function(){this.ca&=-1025;this.A-=2},function(){this.ca|=1024;this.A-=2},function(){this.Yb[this.ba()].call(this, Id,Nh)},function(){this.Ua[this.ba()].call(this,Jd,Nh)}],fi=[Pf,Dg,Nf,Gg,Rf,zh,Fh,fg],pi=[Qf,Eg,Of,Hg,Sf,Ah,Gh,gg],qi=[function(a,b){this.A-=this.aa===n?this.B.gc:this.B.xi;return b},Hh,Hh,Hh,Hh,Hh,Hh,Hh],ri=[function(a,b){this.A-=this.aa===n?this.B.oi:this.B.mi;return b},Ih,Ih,Ih,Ih,Ih,Ih,Ih],gi=[function(a,b){var c=a,d=b&this.Ba;if(d){var e;(d&=7)?(e=a<>8-d)&255):e=a<<7;hf(this,c,e,128)}return c},function(a,b){var c=a,d=b&this.Ba;if(d){var e;(d&=7)?(e=a<<8-d,c=(a>>>d|e)&255):e=a; hf(this,c,e,128)}return c},function(a,b){var c=a,d=b&this.Ba;if(d){var e=jf(this);(d%=9)?(c=(a<>9-d)&255,e=a<>d|e<<8-d|a<<9-d)&255,e=a<<8-d):e<<=7;hf(this,c,e,128)}return c},function(a,b){var c=a,d=b&this.Ba;if(d){var e=0;8>>c-1,a=c>>>1&255,cf(this,a,128,c&1,a&128));return a}, @@ -221,18 +221,18 @@ this.B.Ph;this.W|=2;return a},function(a,b){if(!a)return Jh.call(this),a;var c=a n?this.B.Sh:this.B.Rh;this.W|=2;return a},function(a,b){if(2==this.ha){if(!a)return Jh.call(this),a;var c=a<<16>>16,d=(b=this.H<<16|this.F&65535)/c|0;if(d!=d<<16>>16||8086==this.ra&&-32768==d)return Jh.call(this),a;this.Ja=!0;this.qa=d&65535;this.Ma=b%c&65535}else{var c=this.F,d=this.H,e=a,g=!1,h=!1;0>e&&(e=-e|0,g=!g);0>d&&(c=-c|0,d=~d+(c?0:1)|0,h=!0,g=!g);jg.call(this,c,d,e);2147483647this.ra&&(b=a));sd(this, -b);this.A-=this.P===n?this.B.Cc:this.B.zi;this.W|=2;return a},Hh],he=Array(256);he[0]=function(){var a=this.ba();16>(a&56)&&(this.W|=1);this.Ua[a].call(this,this.Zg,Nh)};he[1]=function(){var a=this.ba();a&16||(this.W|=1);this.Ua[a].call(this,vi,Nh)};he[2]=function(){!(this.mb&1)||this.ca&131072?p.call(this,6):this.fa[this.ba()].call(this,qg)};he[3]=function(){!(this.mb&1)||this.ca&131072?p.call(this,6):this.fa[this.ba()].call(this,xg)}; -he[5]=function(){this.sa?p.call(this,13,0,!0):(pf(this,this.va(2054)),this.J=this.va(2086),this.K=this.va(2088),this.L=this.va(2090),this.D=this.va(2094),this.H=this.va(2096),this.G=this.va(2098),this.F=this.va(2100),jd(this.cb,2102,this.va(2084)),jd(this.za,2108,this.va(2082)),jd(this.xa,2114,this.va(2080)),jd(this.xb,2120,this.va(2078)),Ad(this,this.va(2072)),D(this,this.va(2074)),t(this,this.va(2092)),this.bd=this.va(2126)|this.Wa(2128)<<16,this.Rd=this.bd+this.va(2130),jd(this.Dc,2132,this.va(2076)), -this.cd=this.va(2138)|this.Wa(2140)<<16,this.Sd=this.cd+this.va(2142),jd(this.Ya,2144,this.va(2070)),this.A-=195)};he[6]=function(){this.sa?p.call(this,13,0):(this.mb&=-9,this.A-=2)};he[11]=Ld;he[166]=Ld;he[255]=Ld;var w=[];w[5]=Ld;w[7]=function(){this.sa?p.call(this,13,0,!0):(ie.call(this),this.A-=100)}; -w[32]=function(){if(this.sa)p.call(this,13,0);else{var a,b=this.ba();switch((b&56)>>3){case 0:a=this.mb;break;case 2:a=this.de;break;case 3:a=this.Kd;break;default:ie.call(this);return}ze(this,b&7,a);this.A-=6}};w[33]=function(){if(this.sa)p.call(this,13,0);else{var a=this.ba(),b=(a&56)>>3;4==b||5==b?ie.call(this):(ze(this,a&7,this.Oa[b]),this.A-=22)}}; -w[34]=function(){if(this.sa)p.call(this,13,0);else{var a=this.ba(),b=ye(this,a&7);switch((a&56)>>3){case 0:rg.call(this,b);this.A-=10;break;case 2:this.de=b;this.A-=4;break;case 3:Cd.call(this,b);this.A-=5;break;default:ie.call(this)}}};w[35]=function(){if(this.sa)p.call(this,13,0);else{var a=this.ba(),b=(a&56)>>3;4==b||5==b?ie.call(this):(a=ye(this,a&7),a!=this.Oa[b]&&(Pe(this,!1),this.Oa[b]=a,Pe(this,!0)),this.A-=4>b?22:14)}}; -w[36]=function(){if(this.sa)p.call(this,13,0);else{var a=this.ba(),b=(a&56)>>3;6>b?ie.call(this):(ze(this,a&7,this.se[b]),this.A-=12)}};w[38]=function(){if(this.sa)p.call(this,13,0);else{var a=this.ba(),b=(a&56)>>3;6>b?ie.call(this):(this.se[b]=ye(this,a&7),this.A-=12)}};w[128]=function(){var a=this.Pa();bf(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab};w[129]=function(){var a=this.Pa();bf(this)?this.A-=this.B.ab:(D(this,v(this)+a),this.A-=this.B.$a)}; +b);this.A-=this.P===n?this.B.Cc:this.B.zi;this.W|=2;return a},Hh],he=Array(256);he[0]=function(){var a=this.ba();16>(a&56)&&(this.W|=1);this.Ua[a].call(this,this.Zg,Nh)};he[1]=function(){var a=this.ba();a&16||(this.W|=1);this.Ua[a].call(this,vi,Nh)};he[2]=function(){!(this.nb&1)||this.ca&131072?p.call(this,6):this.fa[this.ba()].call(this,qg)};he[3]=function(){!(this.nb&1)||this.ca&131072?p.call(this,6):this.fa[this.ba()].call(this,xg)}; +he[5]=function(){this.sa?p.call(this,13,0,!0):(pf(this,this.va(2054)),this.J=this.va(2086),this.K=this.va(2088),this.L=this.va(2090),this.D=this.va(2094),this.H=this.va(2096),this.G=this.va(2098),this.F=this.va(2100),jd(this.cb,2102,this.va(2084)),jd(this.Aa,2108,this.va(2082)),jd(this.wa,2114,this.va(2080)),jd(this.xb,2120,this.va(2078)),wd(this,this.va(2072)),D(this,this.va(2074)),t(this,this.va(2092)),this.bd=this.va(2126)|this.Wa(2128)<<16,this.Qd=this.bd+this.va(2130),jd(this.Dc,2132,this.va(2076)), +this.cd=this.va(2138)|this.Wa(2140)<<16,this.Rd=this.cd+this.va(2142),jd(this.Ya,2144,this.va(2070)),this.A-=195)};he[6]=function(){this.sa?p.call(this,13,0):(this.nb&=-9,this.A-=2)};he[11]=Ld;he[166]=Ld;he[255]=Ld;var w=[];w[5]=Ld;w[7]=function(){this.sa?p.call(this,13,0,!0):(ie.call(this),this.A-=100)}; +w[32]=function(){if(this.sa)p.call(this,13,0);else{var a,b=this.ba();switch((b&56)>>3){case 0:a=this.nb;break;case 2:a=this.ce;break;case 3:a=this.Jd;break;default:ie.call(this);return}ze(this,b&7,a);this.A-=6}};w[33]=function(){if(this.sa)p.call(this,13,0);else{var a=this.ba(),b=(a&56)>>3;4==b||5==b?ie.call(this):(ze(this,a&7,this.Oa[b]),this.A-=22)}}; +w[34]=function(){if(this.sa)p.call(this,13,0);else{var a=this.ba(),b=ye(this,a&7);switch((a&56)>>3){case 0:rg.call(this,b);this.A-=10;break;case 2:this.ce=b;this.A-=4;break;case 3:Cd.call(this,b);this.A-=5;break;default:ie.call(this)}}};w[35]=function(){if(this.sa)p.call(this,13,0);else{var a=this.ba(),b=(a&56)>>3;4==b||5==b?ie.call(this):(a=ye(this,a&7),a!=this.Oa[b]&&(Pe(this,!1),this.Oa[b]=a,Pe(this,!0)),this.A-=4>b?22:14)}}; +w[36]=function(){if(this.sa)p.call(this,13,0);else{var a=this.ba(),b=(a&56)>>3;6>b?ie.call(this):(ze(this,a&7,this.re[b]),this.A-=12)}};w[38]=function(){if(this.sa)p.call(this,13,0);else{var a=this.ba(),b=(a&56)>>3;6>b?ie.call(this):(this.re[b]=ye(this,a&7),this.A-=12)}};w[128]=function(){var a=this.Pa();bf(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab};w[129]=function(){var a=this.Pa();bf(this)?this.A-=this.B.ab:(D(this,v(this)+a),this.A-=this.B.$a)}; w[130]=function(){var a=this.Pa();Xe(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab};w[131]=function(){var a=this.Pa();Xe(this)?this.A-=this.B.ab:(D(this,v(this)+a),this.A-=this.B.$a)};w[132]=function(){var a=this.Pa();$e(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab};w[133]=function(){var a=this.Pa();$e(this)?this.A-=this.B.ab:(D(this,v(this)+a),this.A-=this.B.$a)};w[134]=function(){var a=this.Pa();Xe(this)||$e(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab}; w[135]=function(){var a=this.Pa();Xe(this)||$e(this)?this.A-=this.B.ab:(D(this,v(this)+a),this.A-=this.B.$a)};w[136]=function(){var a=this.Pa();af(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab};w[137]=function(){var a=this.Pa();af(this)?this.A-=this.B.ab:(D(this,v(this)+a),this.A-=this.B.$a)};w[138]=function(){var a=this.Pa();Ye(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab};w[139]=function(){var a=this.Pa();Ye(this)?this.A-=this.B.ab:(D(this,v(this)+a),this.A-=this.B.$a)}; w[140]=function(){var a=this.Pa();!af(this)!=!bf(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab};w[141]=function(){var a=this.Pa();!af(this)==!bf(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab};w[142]=function(){var a=this.Pa();$e(this)||!af(this)!=!bf(this)?(D(this,v(this)+a),this.A-=this.B.$a):this.A-=this.B.ab};w[143]=function(){var a=this.Pa();$e(this)||!af(this)!=!bf(this)?this.A-=this.B.ab:(D(this,v(this)+a),this.A-=this.B.$a)};w[144]=function(){Ig.call(this,Jg)}; w[145]=function(){Ig.call(this,Jg)};w[146]=function(){Ig.call(this,Kg)};w[147]=function(){Ig.call(this,Lg)};w[148]=function(){Ig.call(this,Mg)};w[149]=function(){Ig.call(this,Ng)};w[150]=function(){Ig.call(this,Og)};w[151]=function(){Ig.call(this,Pg)};w[152]=function(){Ig.call(this,Qg)};w[153]=function(){Ig.call(this,Rg)};w[154]=function(){Ig.call(this,Sg)};w[155]=function(){Ig.call(this,Tg)};w[156]=function(){Ig.call(this,Ug)};w[157]=function(){Ig.call(this,Vg)};w[158]=function(){Ig.call(this,Wg)}; -w[159]=function(){Ig.call(this,Xg)};w[160]=function(){sd(this,this.Ob.ea);this.A-=this.B.be};w[161]=function(){this.La=this.ja;var a=kd(this);this.Ob.load(a);this.A-=this.B.gc;this.La=n};w[163]=function(){this.Da[this.ba()].call(this,ag);this.P!==n&&(this.A-=6)};w[164]=function(){this.Da[this.ba()].call(this,2==this.ha?$g:ah);this.A-=this.P===n?3:7};w[165]=function(){this.Da[this.ba()].call(this,2==this.ha?bh:ch);this.A-=this.P===n?3:7};w[168]=function(){sd(this,this.Pb.ea);this.A-=this.B.be}; -w[169]=function(){this.La=this.ja;var a=kd(this);this.Pb.load(a);this.A-=this.B.gc;this.La=n};w[171]=function(){this.Da[this.ba()].call(this,dg);this.P!==n&&(this.A-=5)};w[172]=function(){this.Da[this.ba()].call(this,2==this.ha?fh:gh);this.A-=this.P===n?3:7};w[173]=function(){this.Da[this.ba()].call(this,2==this.ha?xh:yh);this.A-=this.P===n?3:7};w[175]=function(){this.fa[this.ba()].call(this,2==this.ha?ng:og)};w[178]=function(){this.fa[this.ba()].call(this,yg)}; +w[159]=function(){Ig.call(this,Xg)};w[160]=function(){sd(this,this.Ob.ea);this.A-=this.B.ae};w[161]=function(){this.La=this.ja;var a=kd(this);this.Ob.load(a);this.A-=this.B.gc;this.La=n};w[163]=function(){this.Da[this.ba()].call(this,ag);this.P!==n&&(this.A-=6)};w[164]=function(){this.Da[this.ba()].call(this,2==this.ha?$g:ah);this.A-=this.P===n?3:7};w[165]=function(){this.Da[this.ba()].call(this,2==this.ha?bh:ch);this.A-=this.P===n?3:7};w[168]=function(){sd(this,this.Pb.ea);this.A-=this.B.ae}; +w[169]=function(){this.La=this.ja;var a=kd(this);this.Pb.load(a);this.A-=this.B.gc;this.La=n};w[171]=function(){this.Da[this.ba()].call(this,dg);this.P!==n&&(this.A-=5)};w[172]=function(){this.Da[this.ba()].call(this,2==this.ha?fh:gh);this.A-=this.P===n?3:7};w[173]=function(){this.Da[this.ba()].call(this,2==this.ha?hh:yh);this.A-=this.P===n?3:7};w[175]=function(){this.fa[this.ba()].call(this,2==this.ha?ng:og)};w[178]=function(){this.fa[this.ba()].call(this,yg)}; w[179]=function(){this.Da[this.ba()].call(this,cg);this.P!==n&&(this.A-=5)};w[180]=function(){this.fa[this.ba()].call(this,vg)};w[181]=function(){this.fa[this.ba()].call(this,wg)}; w[182]=function(){var a,b=this.ba(),c=(b&56)>>3;switch(c){case 4:a=this.F;break;case 5:a=this.G;break;case 6:a=this.H;break;case 7:a=this.D}this.Za[b].call(this,Ag);switch(c){case 0:this.F=this.F&~this.C|this.F&255;break;case 1:this.G=this.G&~this.C|this.G&255;break;case 2:this.H=this.H&~this.C|this.H&255;break;case 3:this.D=this.D&~this.C|this.D&255;break;case 4:this.jb=this.jb&~this.C|this.F>>8&255;this.F=a;break;case 5:this.L=this.L&~this.C|this.G>>8&255;this.G=a;break;case 6:this.K=this.K&~this.C| this.H>>8&255;this.H=a;break;case 7:this.J=this.J&~this.C|this.D>>8&255,this.D=a}this.A-=this.P===n?3:6};w[183]=function(){var a=this.ba();Ke(this);this.fa[a].call(this,Ag);switch((a&56)>>3){case 0:this.F=this.F&65535;break;case 1:this.G=this.G&65535;break;case 2:this.H=this.H&65535;break;case 3:this.D=this.D&65535;break;case 4:this.jb=this.jb&65535;break;case 5:this.L=this.L&65535;break;case 6:this.K=this.K&65535;break;case 7:this.J=this.J&65535}this.A-=this.P===n?3:6}; @@ -241,8 +241,8 @@ w[190]=function(){var a,b=this.ba(),c=(b&56)>>3;switch(c){case 4:a=this.F;break; this.L&~this.C|this.G<<16>>24&this.C;this.G=a;break;case 6:this.K=this.K&~this.C|this.H<<16>>24&this.C;this.H=a;break;case 7:this.J=this.J&~this.C|this.D<<16>>24&this.C,this.D=a}this.A-=this.P===n?3:6}; w[191]=function(){var a=this.ba();Ke(this);this.fa[a].call(this,Ag);switch((a&56)>>3){case 0:this.F=this.F<<16>>16;break;case 1:this.G=this.G<<16>>16;break;case 2:this.H=this.H<<16>>16;break;case 3:this.D=this.D<<16>>16;break;case 4:this.jb=this.jb<<16>>16;break;case 5:this.L=this.L<<16>>16;break;case 6:this.K=this.K<<16>>16;break;case 7:this.J=this.J<<16>>16}this.A-=this.P===n?3:6}; var Qe=[function(){this.A-=2+(this.P===n?0:1);return this.Dc.ea},function(){this.A-=2+(this.P===n?0:1);return this.Ya.ea},function(a){this.W|=2;this.Dc.load(a);this.A-=17+(this.P===n?0:2);return a},function(a){this.W|=2;this.Ya.load(a)!==n&&(this.Fb(this.Ya.Zb+4,this.Ya.zb|=512),this.Ya.type|=512);this.A-=17+(this.P===n?0:2);return a},function(a){this.W|=2;this.A-=14+(this.P===n?0:2);if(this.Ha.load(a)!==n&&2048!=(this.Ha.zb&2560)&&(this.Ha.Bc>=this.sa&&this.Ha.Bc>=(a&3)||7168==(this.Ha.zb&7168)))return of(this), -a;lf(this);return a},function(a){this.W|=2;this.A-=14+(this.P===n?0:2);if(this.Ha.load(a)!==n&&512==(this.Ha.zb&2560)&&this.Ha.Bc>=this.sa&&this.Ha.Bc>=(a&3))return of(this),a;lf(this);return a},Ih,Ih],Kd=[fe,fe,fe,fe,fe,fe,Ih,Ih],vi=[function(a){if(this.P===n)p.call(this,6);else{a=this.Rd-this.bd;var b=this.bd;80286==this.ra?b|=-16777216:80386<=this.ra&&(2==this.ha?b&=16777215:a|=b<<16);this.Qb(this.P+2,b);this.A-=11}return a},function(a){if(this.P===n)p.call(this,6);else{a=this.Sd-this.cd;var b= -this.cd;80286==this.ra?b|=-16777216:80386<=this.ra&&(2==this.ha?b&=16777215:a|=b<<16);this.Qb(this.P+2,b);this.A-=12}return a},function(a){this.P===n||this.ca&131072?p.call(this,6):(this.bd=this.pb(this.P+2)&(this.C|this.C<<8),a&=65535,this.Rd=this.bd+a,this.W|=2,this.A-=11);return a},function(a){this.P===n||this.ca&131072?p.call(this,6):(this.cd=this.pb(this.P+2)&(this.C|this.C<<8),a&=65535,this.Sd=this.cd+a,this.W|=2,this.A-=12);return a},function(){this.A-=2+(this.P===n?0:1);return this.mb},Ih, +a;lf(this);return a},function(a){this.W|=2;this.A-=14+(this.P===n?0:2);if(this.Ha.load(a)!==n&&512==(this.Ha.zb&2560)&&this.Ha.Bc>=this.sa&&this.Ha.Bc>=(a&3))return of(this),a;lf(this);return a},Ih,Ih],Kd=[fe,fe,fe,fe,fe,fe,Ih,Ih],vi=[function(a){if(this.P===n)p.call(this,6);else{a=this.Qd-this.bd;var b=this.bd;80286==this.ra?b|=-16777216:80386<=this.ra&&(2==this.ha?b&=16777215:a|=b<<16);this.Qb(this.P+2,b);this.A-=11}return a},function(a){if(this.P===n)p.call(this,6);else{a=this.Rd-this.cd;var b= +this.cd;80286==this.ra?b|=-16777216:80386<=this.ra&&(2==this.ha?b&=16777215:a|=b<<16);this.Qb(this.P+2,b);this.A-=12}return a},function(a){this.P===n||this.ca&131072?p.call(this,6):(this.bd=this.lb(this.P+2)&(this.C|this.C<<8),a&=65535,this.Qd=this.bd+a,this.W|=2,this.A-=11);return a},function(a){this.P===n||this.ca&131072?p.call(this,6):(this.cd=this.lb(this.P+2)&(this.C|this.C<<8),a&=65535,this.Rd=this.cd+a,this.W|=2,this.A-=12);return a},function(){this.A-=2+(this.P===n?0:1);return this.nb},Ih, function(a){this.ca&131072?p.call(this,6):(pf(this,a),this.A-=this.P===n?3:6,this.W|=2);return a},Ih],wi=[Ih,Ih,Ih,Ih,Xf,$f,Zf,Yf],y=[function(a){a=a.call(this,this.F&255,F(this,this.D+this.K));this.F=this.F&-256|a;this.A-=this.B.ka},function(a){a=a.call(this,this.F&255,F(this,this.D+this.J));this.F=this.F&-256|a;this.A-=this.B.la},function(a){a=a.call(this,this.F&255,G(this,this.L+this.K));this.F=this.F&-256|a;this.A-=this.B.la},function(a){a=a.call(this,this.F&255,G(this,this.L+this.J));this.F= this.F&-256|a;this.A-=this.B.ka},function(a){a=a.call(this,this.F&255,F(this,this.K));this.F=this.F&-256|a;this.A-=this.B.N},function(a){a=a.call(this,this.F&255,F(this,this.J));this.F=this.F&-256|a;this.A-=this.B.N},function(a){a=a.call(this,this.F&255,F(this,S(this)));this.F=this.F&-256|a;this.A-=this.B.ma},function(a){a=a.call(this,this.F&255,F(this,this.D));this.F=this.F&-256|a;this.A-=this.B.N},function(a){a=a.call(this,this.G&255,F(this,this.D+this.K));this.G=this.G&-256|a;this.A-=this.B.ka}, function(a){a=a.call(this,this.G&255,F(this,this.D+this.J));this.G=this.G&-256|a;this.A-=this.B.la},function(a){a=a.call(this,this.G&255,G(this,this.L+this.K));this.G=this.G&-256|a;this.A-=this.B.la},function(a){a=a.call(this,this.G&255,G(this,this.L+this.J));this.G=this.G&-256|a;this.A-=this.B.ka},function(a){a=a.call(this,this.G&255,F(this,this.K));this.G=this.G&-256|a;this.A-=this.B.N},function(a){a=a.call(this,this.G&255,F(this,this.J));this.G=this.G&-256|a;this.A-=this.B.N},function(a){a=a.call(this, @@ -802,73 +802,73 @@ function(){return this.F},function(){return this.G},function(){return this.H},fu (this.L<<3)},function(){return this.D+(this.L<<3)},function(){this.R=this.S;return u(this)+(this.L<<3)},function(a){return(a?(this.R=this.S,this.L):S(this))+(this.L<<3)},function(){return this.K+(this.L<<3)},function(){return this.J+(this.L<<3)},function(){return this.F+(this.K<<3)},function(){return this.G+(this.K<<3)},function(){return this.H+(this.K<<3)},function(){return this.D+(this.K<<3)},function(){this.R=this.S;return u(this)+(this.K<<3)},function(a){return(a?(this.R=this.S,this.L):S(this))+ (this.K<<3)},function(){return this.K+(this.K<<3)},function(){return this.J+(this.K<<3)},function(){return this.F+(this.J<<3)},function(){return this.G+(this.J<<3)},function(){return this.H+(this.J<<3)},function(){return this.D+(this.J<<3)},function(){this.R=this.S;return u(this)+(this.J<<3)},function(a){return(a?(this.R=this.S,this.L):S(this))+(this.J<<3)},function(){return this.K+(this.J<<3)},function(){return this.J+(this.J<<3)}]; function xi(a){Ta.call(this,"ChipSet",a,xi,32768);this.ra=(this.ra=a.model)&&yi[this.ra]||zi;this.S=0;var b=a.sw1;if(b)this.S=Ai(b,Bi|Ci.Ij);else{this.sa=[360,360];(b=a.floppies)&&b.length&&(this.sa=b);if(b=this.sa.length)this.S|=Di.eh,b--,this.S|=(b&3)<=Ei&&(this.ib=this.Ma=2);this.ua=a.scaleTimers||!1;this.hc=a.rtcDate;this.Ub=!1; -a.sound&&(this.yb=this.Na=null,window&&(this.yb=window.AudioContext||window.webkitAudioContext),this.yb&&(this.Na=new this.yb));this.reset(!0);ob(this)}bb(xi);var zi=5150,Ei=5170,yi={5150:zi,5160:5160,5170:Ei,deskpro386:5180},Fi={none:0,tv:1,color:2,mono:3,ega:0,vga:0},Di={eh:1,ONE:0,Vm:64,Tm:128,ym:192,hf:192,jf:6},Bi=12,Ci={Um:16,rm:32,Ij:48,hf:48,jf:4};f=xi.prototype; +a.sound&&(this.yb=this.Na=null,window&&(this.yb=window.AudioContext||window.webkitAudioContext),this.yb&&(this.Na=new this.yb));this.reset(!0);ob(this)}bb(xi);var zi=5150,Ei=5170,yi={5150:zi,5160:5160,5170:Ei,deskpro386:5180},Fi={none:0,tv:1,color:2,mono:3,ega:0,vga:0},Di={eh:1,ONE:0,Xm:64,Vm:128,Am:192,hf:192,jf:6},Bi=12,Ci={Wm:16,tm:32,Ij:48,hf:48,jf:4};f=xi.prototype; f.Tb=function(a,b,c){switch(b){case "sw1":return this.ya[b]=c,Gi(this,b,c,this.S,{0:this.ra==zi?"Bootable Floppy Drive":"Loop on POST",1:this.ra==zi?"Reserved":"Coprocessor",2:"Base Memory Size",4:"Monitor Type",6:"Number of Floppy Drives"}),!0;case "sw2":if(this.ra==zi)return this.ya[b]=c,Gi(this,b,c,this.Ba,{0:"Expansion Memory Size",4:"Reserved"}),!0;break;case "swdesc":return this.ya[b]=c,!0}return!1}; -f.Hc=function(a,b,c,d){this.na=b;this.O=c;this.ga=d;this.pa=a;this.P=Ab(a,"Keyboard");this.nb=c.Z.yd/1193181;gc(b,this,Hi);kc(b,this,Ii);this.rab;b++){var c=13>=b?Pi(e,b):e.A[b];a&&(a+="\n");a+="CMOS["+fa(b)+"]: "+fa(c)}e.ga.V(a)})}Me(c,26,this.cl.bind(this))};f.pc=function(a,b){if(!b)if(!a)this.reset();else if(!this.restore(a))return!1;return!0};f.oc=function(a){return a&&this.save?this.save():!0}; +f.Hc=function(a,b,c,d){this.na=b;this.O=c;this.ga=d;this.pa=a;this.P=Ab(a,"Keyboard");this.ob=c.Z.xd/1193181;gc(b,this,Hi);kc(b,this,Ii);this.rab;b++){var c=13>=b?Pi(e,b):e.A[b];a&&(a+="\n");a+="CMOS["+fa(b)+"]: "+fa(c)}e.ga.V(a)})}Me(c,26,this.dl.bind(this))};f.pc=function(a,b){if(!b)if(!a)this.reset();else if(!this.restore(a))return!1;return!0};f.oc=function(a){return a&&this.save?this.save():!0}; f.reset=function(a){var b;this.da=this.S;this.Ea=this.Ba;Qi(this);this.R=Array(this.ib);for(b=0;b=Ei){this.B=16;this.ja=0;this.fa=16;this.Ra=0;this.qa=160;512<=Ui(this)&&(this.qa|=16);3==Vi(this)&&(this.qa|=64);5180==this.ra&&(this.qa|=12);this.Ua=3;this.Ha=Array(8); this.Da=0;a&&(this.A=Array(64));Wi(this,this.hc);for(a=21;24>=a;a++)this.A[a]=0;for(a=14;46>a;a++)void 0===this.A[a]&&(this.A[a]=0);this.A[20]=this.da&(Ci.hf|2|Di.eh|Di.hf);this.A[16]=Xi(this,0)<<4|Xi(this,1);Yi(this)}}; function Wi(a,b){var c=b?new Date(b):new Date;"[object Date]"!==Object.prototype.toString.call(c)||isNaN(c.getTime())?(c=new Date,a.V("CMOS date invalid ("+b+"), using "+c)):b&&a.V("CMOS date: "+c);a.A[0]=c.getSeconds();a.A[1]=0;a.A[2]=c.getMinutes();a.A[3]=0;a.A[4]=c.getHours();a.A[5]=0;a.A[6]=c.getDay()+1;a.A[7]=c.getDate();a.A[8]=c.getMonth()+1;c=c.getFullYear();a.A[9]=c%100;c/=100;a.A[50]=c%10|c/10<<4;a.A[10]=38;a.A[11]=2;a.A[12]=0;a.A[13]=128;a.Oa=a.Ja=0;a.Yb=a.jb=null} function Pi(a,b){var c=a.A[b];if(10>b){var d=!1;4!=b&&5!=b||a.A[11]&2||(12>c?c=c?c:12:c=(c-=12)?c+128:140,d=!0);a.A[11]&4||(d&&128c;c++)b+=a.A[c];a.A[47]=b&255;a.A[46]=b>>8} -f.save=function(){var a=new Re(this);Se(a,0,[this.S,this.Ba,this.da,this.Ea]);for(var b=[],c=0;c=Ei&&(Se(a,5,[this.B,this.ja,this.fa,this.Ra,this.qa,this.Ua]),Se(a,6,[this.Ha[7],this.Ha,this.Da,this.A,this.Oa,this.Ja]));return a.data()}; f.restore=function(a){var b,c;b=a[0];this.S=b[0];this.Ba=b[1];this.da=b[2];this.Ea=b[3];b=a[1];for(c=0;c>2)+1)*a.ac+32*((b?a.Ba:a.Ea)&15)} +this.A=b[3],this.Oa=b[4],this.Ja=b[5],Wi(this);return!0};var $i=[0,null,null,0,Array(4)];function Ri(a,b,c){var d=a.R[b];d||(d={bc:Array(4)});c=c&&5==c.length?c:$i;d.dd=c[0];d.kh=c[1];d.Si=c[2];d.Gb=c[3];d.jl=b<<2;for(var e=0;e>2)+1)*a.ac+32*((b?a.Ba:a.Ea)&15)} function fj(a,b){var c=b?a.S:a.da;return a.ra!=zi||c&Di.eh?((c&Di.hf)>>Di.jf)+1:0}function Xi(a,b){if(b>Ci.jf} function Gi(a,b,c,d,e){for(var g="",h=1;8>=h;h++){var m="pcjs-bitCell";h||(m+=" pcjs-bitCellLeft");g+='
'+h+"
\n"}c.innerHTML=g;b=jb(c,"pcjs-bitCell");c=null;for(h=0;hh.vb[0]&&(h.vb[0]=255,h.vb[1]--,0>h.vb[1]&&(h.vb[1]=255)));return m}function kj(a,b,c,d,e,g){var h=a.R[b];a.ta(768)&&l(a,d,e,g,"DMA"+b+".CHANNEL"+c+".COUNT["+h.Gb+"]",null,!0);a=h.bc[c];a.vb[h.Gb]=a.tc[h.Gb]=e;h.Gb^=1}function lj(a,b,c,d){var e=a.R[b],g=e.dd|1;e.dd&=-16;a.ta(768)&&l(a,c,null,d,"DMA"+b+".STATUS",g,!0);return g} -function mj(a,b,c,d,e){var g=a.R[b];a.ta(768)&&l(a,c,d,e,"DMA"+b+".REQ",null,!0);a=d&3;g.dd=g.dd&~(16<>2].bc[b&3],c,d,e)} function oj(a,b,c){b=a.R[b>>2].bc[b&3];b.Sf&&b.th&&b.Lg?(c&&(b.done=c),b.Ed||Lf(a,b,!0)):c&&c(!0)}function Lf(a,b,c){c&&(b.count=b.vb[1]<<8|b.vb[0],b.type=b.mode&12,b.fj=b.pd=!1);for(var d=!1;0<=b.count&&(c=b.Nf<<16|b.Ab[1]<<8|b.Ab[0],4==b.type?(d=!0,function(c){b.th.call(b.Sf,b.Lg,-1,function(g,h){0>g&&(b.fj||(b.fj=!0),g=255);b.Ed||a.na.rc(c,g);(d=h)&&setTimeout(function(){wj(b)||Lf(a,b)},0)})}(c)):8==b.type?(c=a.na.Wa(c),0>b.th.call(b.Sf,b.Lg,c)&&(b.pd=!0)):0!=b.type&&(b.pd=!0)),!d&&!wj(b););} -function wj(a){if(!a.pd&&0<=--a.count&&(a.mode&32?(a.Ab[0]--,0>a.Ab[0]&&(a.Ab[0]=255,a.Ab[1]--,0>a.Ab[1]&&(a.Ab[1]=255))):(a.Ab[0]++,255>3];b=1<<(b&7);d.cc&b||(d.cc|=b,d.Ve=c||0,zj(a))}function Dj(a,b){var c=a.ic[b>>3],d=1<<(b&7);c.cc&d&&(c.cc&=~d,zj(a))}function zj(a,b){var c,d=-1;1>=1),Zc(a.O,d))),2==b&&bd(a))}f=xi.prototype;f.Lk=function(a,b){l(this,a,null,b,"PIT1_CTRL",null,2048);return this.bb}; -f.$l=function(a,b,c){this.bb=b;l(this,a,b,c,"PIT1_CTRL",null,2048);a=b&192;if(192==a){if(!(b&16))for(a=0;2>=a;a++)b&2<=a;a++)b&2<>=6;c=b&1;var d=b&14;b&=48;if(0==b)Ij(this,a);else{var e=a,g=this.X[e];g.Gf=b;g.mode=d;g.mh=c;g.tc=[0,0];g.vb=[0,0];g.ge=[0,0];g.qd=!1;g.Ie=!1;g.ie=!1;g.Ne=!1;Fj(this,e);0==a&&Dj(this,0);2==a&&255==this.ic[0].td&&77==this.aa&&(a=this.X[0], -a.Rc[0]=a.tc[0],a.Rc[1]=a.tc[1],a.sd=Uc(this.O,this.ua))}}};function Hj(a,b){var c=a.X[b],d=c.tc[1]<<8|c.tc[0];d||(d=1==c.ed?256:65536);return d}function dd(a,b){var c=a.X[b],d=c.Rc[1]<<8|c.Rc[0];d||(d=1==c.ed?256:65536);return d}function Ij(a,b){Oi(a,b);var c=a.X[b];c.ge[0]=c.vb[0];c.ge[1]=c.vb[1];c.Ie=!0;Fj(a,b)}function Fj(a,b){var c=a.X[b];c.vd=32==c.Gf?1:0;c.ed=48==c.Gf?2:1} -function Oi(a,b,c){var d=a.X[b];if(d.ie&&(2!=b||a.aa&1)){var e=Uc(a.O,a.ua),g=(e-d.sd)/a.nb|0;0>g&&(d.sd=e,g=0);var h=Hj(a,b),m=dd(a,b)-g;0==d.mode?(0>=m&&(m=0),m||(d.qd=!0,d.ie=!1,b||Cj(a,0))):4==d.mode?(d.qd=1!=m,0>=m&&(m=h+m,0>=m&&(m=h),d.Rc[0]=m&255,d.Rc[1]=m>>8&255,d.sd=e,!b&&d.qd&&Cj(a,0))):6==d.mode&&(m-=g,0>=m&&(d.qd=!d.qd,m=h+m,0>=m&&(m=h),d.Rc[0]=m&255,d.Rc[1]=m>>8&255,d.sd=e,!b&&d.qd&&Cj(a,0)));d.vb[0]=m&255;d.vb[1]=m>>8&255;c&&(a.sd=0)}return d} -function cd(a,b){for(var c=0;c=Ei){var c=a.O.Z.yd,d=Uc(a.O,a.ua);null==a.jb&&(a.Oa=Uc(a.O,a.ua),a.Yb=1024,a.jb=Math.floor(a.O.Z.yd/a.Yb),Zi(a));d>=a.Ja&&(a.A[12]|=64,a.A[11]&64&&(a.A[12]|=128,Cj(a,8)),a.Ja=d+a.jb);a.A[0]==a.A[1]&&a.A[2]==a.A[3]&&a.A[4]==a.A[5]&&(a.A[12]|=32,a.A[11]&32&&(a.A[12]|=128,Cj(a,8)));var e=d-a.Oa,g=Math.floor(e/c);if(g&&!(a.A[11]&128)){for(;g--;)if(60<=++a.A[0]&&(a.A[0]=0,60<=++a.A[2]&&(a.A[2]=0,24<=++a.A[4]))){a.A[4]=0;a.A[6]=a.A[6]%7+1; -var h;h=a.A[9];var m=ra[a.A[8]-1];28==m&&0===h%4&&(h%100||0===h%400)&&m++;h=m;++a.A[7]>h&&(a.A[7]=1,12<++a.A[8]&&(a.A[8]=1,a.A[9]=(a.A[9]+1)%100))}a.A[12]|=16;a.A[11]&16&&(a.A[12]|=128,Cj(a,8))}a.Oa=d-e%c}}f.Mk=function(a,b){var c=this.eb;if(this.La&16)if(this.aa&128)c=this.da;else if(this.P){var c=this.P,d=0;c.A.length&&(d=c.A[0]);c.ta()&&c.Ca("scan code "+fa(d)+" delivered");c=d}l(this,a,null,b,"PPI_A",c);return c};f.am=function(a,b,c){l(this,a,b,c,"PPI_A");this.eb=b}; -f.Nk=function(a,b){var c=this.aa;l(this,a,null,b,"PPI_B",c);return c};f.bm=function(a,b,c){l(this,a,b,c,"PPI_B");Jj(this,b)};function Jj(a,b){var c=!!(b&2),d=!!(a.aa&2);a.aa=b;a.P&&Kj(a.P,!(b&128),!!(b&64));c!=d&&bd(a,c)}f.Ok=function(a,b){var c=0,c=this.ra==zi?this.aa&4?c|this.Ea&15:c|this.Ea>>4&1:this.aa&8?c|this.da>>4:c|this.da&15;this.aa&1&&Oi(this,2).qd&&(c=this.aa&2?c|32:c|16);l(this,a,null,b,"PPI_C",c,32896);return c};f.cm=function(a,b,c){l(this,a,b,c,"PPI_C");this.tb=b}; -f.Pk=function(a,b){var c=this.La;l(this,a,null,b,"PPI_CTRL",c);return c};f.dm=function(a,b,c){l(this,a,b,c,"PPI_CTRL");this.La=b};f.ak=function(a,b){var c=this.Ra;l(this,a,null,b,"8042_OUTBUFF",c,16384);this.B&=-258;this.P&&Lj(this.P);return c};f.ol=function(a,b,c){l(this,a,b,c,"8042_INBUF.DATA",null,16384);if(this.B&8)switch(this.ja){case 96:Mj(this,b);break;case 209:Nj(this,b);break;default:if(Mj(this,this.fa&-17),this.P){a=-1;switch(b){case 255:a=250,Oj(this.P)}Pj(this,a)}}this.ja=b;this.B&=-9}; -f.bk=function(a,b){var c=this.aa&-209|(Uc(this.O)&64?16:0);l(this,a,null,b,"8042_RWREG",c,16384);return c};f.pl=function(a,b,c){l(this,a,b,c,"8042_RWREG",null,16384);Jj(this,b)};f.ck=function(a,b){l(this,a,null,b,"8042_STATUS",this.B,16384);var c=this.B&255;this.B&256&&(this.B|=1,this.B&=-257);return c}; -f.nl=function(a,b,c){l(this,a,b,c,"8042_INBUFF.CMD",null,16384);this.ja=b;this.B|=8;a=0;240<=this.ja&&(a=this.ja^15,this.ja=240);switch(this.ja){case 32:Pj(this,this.fa);break;case 173:Mj(this,this.fa|16);break;case 174:Mj(this,this.fa&-17);this.P&&Lj(this.P);break;case 170:this.P&&(a=this.P,a.A=[],a.ta()&&a.Ca("scan codes flushed"));Mj(this,this.fa|16);Pj(this,85);Nj(this,3);break;case 171:Pj(this,0);break;case 192:Pj(this,this.qa);break;case 208:Pj(this,this.Ua);break;case 224:Pj(this,this.fa&16? -0:1);break;case 240:a&1&&ue(this.O)}};function Mj(a,b){a.fa=b;a.B=a.B&-5|b&4;a.P&&Kj(a.P,!!(b&8),!(b&16))}function Pj(a,b,c){0<=b&&(a.Ra=b,c?a.B|=1:(a.B&=-2,a.B|=256))}function Nj(a,b){a.Ua=b;Ob(a.na,!!(b&2));b&1||ue(a.O)}function Qj(a,b){a.ra=c?Pi(this,c):this.A[c];this.ta(4352)&&l(this,a,null,b,"CMOS.DATA["+fa(c)+"]",d,!0);null!=b&&12==c&&(this.A[c]&=15,d&128&&Dj(this,8),d&64&&this.A[11]&64&&Zi(this));return d}; -f.El=function(a,b,c){var d=this.Da&63;this.ta(4352)&&l(this,a,b,c,"CMOS.DATA["+fa(d)+"]",null,!0);a=b^this.A[d];if(13>=d){if(c=b,10>d){var e=!1;this.A[11]&4||(c=10*(c>>4)+(c&15),e=!0);if(4==d||5==d)e&&23=c?c=12==c?0:c:(c-=116,c=24==c?12:c))}}else c=b;this.A[d]=c;11==d&&a&64&&b&64&&Zi(this)};f.Zl=function(a,b,c){l(this,a,b,c,"NMI");this.Za=b};f.Fl=function(a,b,c){l(this,a,b,c,"COPROC.CLEAR")};f.Gl=function(a,b,c){l(this,a,b,c,"COPROC.RESET")}; -f.cl=function(a){if(this.ta(16)&&si(this.ga,26,a)){var b=this.O.F>>8;Ne(this.O,a,function(a,d){return function(e){d=Uc(a.O)-d;var g,h=a.O.H&255,m=a.O.H>>8,q=a.O.H&255,r=a.O.H>>8;if(2==b||3==b)g=" CH(hour)="+ga(m)+" CL(min)="+fa(h)+" DH(sec)="+fa(r);else if(4==b||5==b)g=" CX(year)="+ga(a.O.G)+" DH(month)="+fa(r)+" DL(day)="+fa(q);h=a.ga;m=d;h.message("INT "+fa(26)+": C="+(Xe(h.O)?1:0)+(g||"")+" (cycles="+m+(e?",level="+(e+1):"")+")")}}(this,Uc(this.O)))}return!0}; +function wj(a){if(!a.pd&&0<=--a.count&&(a.mode&32?(a.Ab[0]--,0>a.Ab[0]&&(a.Ab[0]=255,a.Ab[1]--,0>a.Ab[1]&&(a.Ab[1]=255))):(a.Ab[0]++,255>3];b=1<<(b&7);d.cc&b||(d.cc|=b,d.Ve=c||0,zj(a))}function Dj(a,b){var c=a.ic[b>>3],d=1<<(b&7);c.cc&d&&(c.cc&=~d,zj(a))}function zj(a,b){var c,d=-1;1>=1),Zc(a.O,d))),2==b&&bd(a))}f=xi.prototype;f.Mk=function(a,b){l(this,a,null,b,"PIT1_CTRL",null,2048);return this.bb}; +f.bm=function(a,b,c){this.bb=b;l(this,a,b,c,"PIT1_CTRL",null,2048);a=b&192;if(192==a){if(!(b&16))for(a=0;2>=a;a++)b&2<=a;a++)b&2<>=6;c=b&1;var d=b&14;b&=48;if(0==b)Ij(this,a);else{var e=a,g=this.X[e];g.Gf=b;g.mode=d;g.mh=c;g.tc=[0,0];g.vb=[0,0];g.fe=[0,0];g.qd=!1;g.Ie=!1;g.he=!1;g.Ne=!1;Fj(this,e);0==a&&Dj(this,0);2==a&&255==this.ic[0].td&&77==this.aa&&(a=this.X[0], +a.Qc[0]=a.tc[0],a.Qc[1]=a.tc[1],a.sd=Uc(this.O,this.ua))}}};function Hj(a,b){var c=a.X[b],d=c.tc[1]<<8|c.tc[0];d||(d=1==c.ed?256:65536);return d}function dd(a,b){var c=a.X[b],d=c.Qc[1]<<8|c.Qc[0];d||(d=1==c.ed?256:65536);return d}function Ij(a,b){Oi(a,b);var c=a.X[b];c.fe[0]=c.vb[0];c.fe[1]=c.vb[1];c.Ie=!0;Fj(a,b)}function Fj(a,b){var c=a.X[b];c.vd=32==c.Gf?1:0;c.ed=48==c.Gf?2:1} +function Oi(a,b,c){var d=a.X[b];if(d.he&&(2!=b||a.aa&1)){var e=Uc(a.O,a.ua),g=(e-d.sd)/a.ob|0;0>g&&(d.sd=e,g=0);var h=Hj(a,b),m=dd(a,b)-g;0==d.mode?(0>=m&&(m=0),m||(d.qd=!0,d.he=!1,b||Cj(a,0))):4==d.mode?(d.qd=1!=m,0>=m&&(m=h+m,0>=m&&(m=h),d.Qc[0]=m&255,d.Qc[1]=m>>8&255,d.sd=e,!b&&d.qd&&Cj(a,0))):6==d.mode&&(m-=g,0>=m&&(d.qd=!d.qd,m=h+m,0>=m&&(m=h),d.Qc[0]=m&255,d.Qc[1]=m>>8&255,d.sd=e,!b&&d.qd&&Cj(a,0)));d.vb[0]=m&255;d.vb[1]=m>>8&255;c&&(a.sd=0)}return d} +function cd(a,b){for(var c=0;c=Ei){var c=a.O.Z.xd,d=Uc(a.O,a.ua);null==a.jb&&(a.Oa=Uc(a.O,a.ua),a.Yb=1024,a.jb=Math.floor(a.O.Z.xd/a.Yb),Zi(a));d>=a.Ja&&(a.A[12]|=64,a.A[11]&64&&(a.A[12]|=128,Cj(a,8)),a.Ja=d+a.jb);a.A[0]==a.A[1]&&a.A[2]==a.A[3]&&a.A[4]==a.A[5]&&(a.A[12]|=32,a.A[11]&32&&(a.A[12]|=128,Cj(a,8)));var e=d-a.Oa,g=Math.floor(e/c);if(g&&!(a.A[11]&128)){for(;g--;)if(60<=++a.A[0]&&(a.A[0]=0,60<=++a.A[2]&&(a.A[2]=0,24<=++a.A[4]))){a.A[4]=0;a.A[6]=a.A[6]%7+1; +var h;h=a.A[9];var m=ra[a.A[8]-1];28==m&&0===h%4&&(h%100||0===h%400)&&m++;h=m;++a.A[7]>h&&(a.A[7]=1,12<++a.A[8]&&(a.A[8]=1,a.A[9]=(a.A[9]+1)%100))}a.A[12]|=16;a.A[11]&16&&(a.A[12]|=128,Cj(a,8))}a.Oa=d-e%c}}f.Nk=function(a,b){var c=this.eb;if(this.La&16)if(this.aa&128)c=this.da;else if(this.P){var c=this.P,d=0;c.A.length&&(d=c.A[0]);c.ta()&&c.Ca("scan code "+fa(d)+" delivered");c=d}l(this,a,null,b,"PPI_A",c);return c};f.cm=function(a,b,c){l(this,a,b,c,"PPI_A");this.eb=b}; +f.Ok=function(a,b){var c=this.aa;l(this,a,null,b,"PPI_B",c);return c};f.dm=function(a,b,c){l(this,a,b,c,"PPI_B");Jj(this,b)};function Jj(a,b){var c=!!(b&2),d=!!(a.aa&2);a.aa=b;a.P&&Kj(a.P,!(b&128),!!(b&64));c!=d&&bd(a,c)}f.Pk=function(a,b){var c=0,c=this.ra==zi?this.aa&4?c|this.Ea&15:c|this.Ea>>4&1:this.aa&8?c|this.da>>4:c|this.da&15;this.aa&1&&Oi(this,2).qd&&(c=this.aa&2?c|32:c|16);l(this,a,null,b,"PPI_C",c,32896);return c};f.em=function(a,b,c){l(this,a,b,c,"PPI_C");this.tb=b}; +f.Qk=function(a,b){var c=this.La;l(this,a,null,b,"PPI_CTRL",c);return c};f.fm=function(a,b,c){l(this,a,b,c,"PPI_CTRL");this.La=b};f.bk=function(a,b){var c=this.Ra;l(this,a,null,b,"8042_OUTBUFF",c,16384);this.B&=-258;this.P&&Lj(this.P);return c};f.ql=function(a,b,c){l(this,a,b,c,"8042_INBUF.DATA",null,16384);if(this.B&8)switch(this.ja){case 96:Mj(this,b);break;case 209:Nj(this,b);break;default:if(Mj(this,this.fa&-17),this.P){a=-1;switch(b){case 255:a=250,Oj(this.P)}Pj(this,a)}}this.ja=b;this.B&=-9}; +f.ck=function(a,b){var c=this.aa&-209|(Uc(this.O)&64?16:0);l(this,a,null,b,"8042_RWREG",c,16384);return c};f.rl=function(a,b,c){l(this,a,b,c,"8042_RWREG",null,16384);Jj(this,b)};f.dk=function(a,b){l(this,a,null,b,"8042_STATUS",this.B,16384);var c=this.B&255;this.B&256&&(this.B|=1,this.B&=-257);return c}; +f.pl=function(a,b,c){l(this,a,b,c,"8042_INBUFF.CMD",null,16384);this.ja=b;this.B|=8;a=0;240<=this.ja&&(a=this.ja^15,this.ja=240);switch(this.ja){case 32:Pj(this,this.fa);break;case 173:Mj(this,this.fa|16);break;case 174:Mj(this,this.fa&-17);this.P&&Lj(this.P);break;case 170:this.P&&(a=this.P,a.A=[],a.ta()&&a.Ca("scan codes flushed"));Mj(this,this.fa|16);Pj(this,85);Nj(this,3);break;case 171:Pj(this,0);break;case 192:Pj(this,this.qa);break;case 208:Pj(this,this.Ua);break;case 224:Pj(this,this.fa&16? +0:1);break;case 240:a&1&&ue(this.O)}};function Mj(a,b){a.fa=b;a.B=a.B&-5|b&4;a.P&&Kj(a.P,!!(b&8),!(b&16))}function Pj(a,b,c){0<=b&&(a.Ra=b,c?a.B|=1:(a.B&=-2,a.B|=256))}function Nj(a,b){a.Ua=b;Ob(a.na,!!(b&2));b&1||ue(a.O)}function Qj(a,b){a.ra=c?Pi(this,c):this.A[c];this.ta(4352)&&l(this,a,null,b,"CMOS.DATA["+fa(c)+"]",d,!0);null!=b&&12==c&&(this.A[c]&=15,d&128&&Dj(this,8),d&64&&this.A[11]&64&&Zi(this));return d}; +f.Gl=function(a,b,c){var d=this.Da&63;this.ta(4352)&&l(this,a,b,c,"CMOS.DATA["+fa(d)+"]",null,!0);a=b^this.A[d];if(13>=d){if(c=b,10>d){var e=!1;this.A[11]&4||(c=10*(c>>4)+(c&15),e=!0);if(4==d||5==d)e&&23=c?c=12==c?0:c:(c-=116,c=24==c?12:c))}}else c=b;this.A[d]=c;11==d&&a&64&&b&64&&Zi(this)};f.am=function(a,b,c){l(this,a,b,c,"NMI");this.Za=b};f.Hl=function(a,b,c){l(this,a,b,c,"COPROC.CLEAR")};f.Il=function(a,b,c){l(this,a,b,c,"COPROC.RESET")}; +f.dl=function(a){if(this.ta(16)&&si(this.ga,26,a)){var b=this.O.F>>8;Ne(this.O,a,function(a,d){return function(e){d=Uc(a.O)-d;var g,h=a.O.H&255,m=a.O.H>>8,q=a.O.H&255,r=a.O.H>>8;if(2==b||3==b)g=" CH(hour)="+ga(m)+" CL(min)="+fa(h)+" DH(sec)="+fa(r);else if(4==b||5==b)g=" CX(year)="+ga(a.O.G)+" DH(month)="+fa(r)+" DL(day)="+fa(q);h=a.ga;m=d;h.message("INT "+fa(26)+": C="+(Xe(h.O)?1:0)+(g||"")+" (cycles="+m+(e?",level="+(e+1):"")+")")}}(this,Uc(this.O)))}return!0}; function Ai(a,b){if(void 0===a)return b;for(var c=0,d=1,e=0;ec||2E4>>4,this.S,this.P,this.Y),delete this.Y);return!0};Sj.prototype.oc=function(){return!0}; Sj.prototype.aa=function(a,b,c){if(c)this.Ta("Unable to load system ROM (error "+c+")");else{if("["==b.charAt(0)||"{"==b.charAt(0))try{var d=eval("("+b+")"),e=d.bytes,g=d.data;if(e)this.A=e;else if(g)for(this.A=Array(4*g.length),c=b=0;b>8&255,this.A[c++]=g[b]>>16&255,this.A[c++]=g[b]>>24&255;else this.A=d;this.Y=d.symbols;if(!this.A.length){ya("Empty ROM: "+a);return}if(1==this.A.length){ya(this.A[0]);return}}catch(h){this.Ta("ROM data error: "+ h.message);return}else for(a=b.replace(/\n/gm," ").replace(/ +$/,"").split(" "),this.A=Array(a.length),d=0;d>>d.Qa].Jf(e&d.A,a.A[c]&255,e)}b=!0}else b=!1;if(b){b=[];"number"==typeof a.R?b.push(a.R):null!=a.R&&a.R.length&&(b=a.R);for(c=0;c>>d.Qa].Jf(e&d.A,a.A[c]&255,e)}b=!0}else b=!1;if(b){b=[];"number"==typeof a.R?b.push(a.R):null!=a.R&&a.R.length&&(b=a.R);for(c=0;cthis.B?21:23,c=a.A[b]|a.A[b+1]<<8,c=c+(this.A>>10);a.A[b]=c&255;a.A[b+ +f.reset=function(){if(!this.B&&!this.R&&this.X){var a=1024*Ui(this.X);this.A&&a!=this.A&&(Yb(this.na,this.B,this.A),this.P=!1);this.A=a}!this.P&&this.A&&Pb(this.na,this.B,this.A,1)&&(this.P=!0,this.status(Math.floor(this.A/1024)+"Kb allocated"),"ramCPQ"==this.Od&&(this.controller=new Yj(this),Pb(this.na,Zj,4,4,this.controller)));if(this.P){if(this.S||ec(this.na,1138,4660),"ramCPQ"!=this.Od&&this.X&&(a=this.X,a.A)){var b=1048576>this.B?21:23,c=a.A[b]|a.A[b+1]<<8,c=c+(this.A>>10);a.A[b]=c&255;a.A[b+ 1]=c>>8;Yi(a)}}else ya("No RAM allocated")};f.save=function(){var a=new Re(this);this.controller&&Se(a,0,this.controller.save());return a.data()};f.restore=function(a){return this.controller?this.controller.restore(a[0]):!0};function Yj(a){this.R=a;this.P=ak;this.ga=bk;this.B=ck;this.A=null}var Zj=-2134900736,ak=65535,bk=2575,ck=2,dk=[null,0],ek=[function(a){return this.controller.Wa(a)},null,null,function(a,b){this.controller.rc(a,b)},null,null];f=Yj.prototype;f.save=function(){return[this.P,this.B]}; f.restore=function(a){this.rc(0,a[0]&255);this.rc(2,a[1]&255);return!0};f.Wa=function(a){var b=255;2>a?b=a&1?this.ga>>8:this.ga&255:4>a&&(b=a&1?this.B>>8:this.B&255);return b};f.rc=function(a,b){if(a)2==a&&(this.B=this.B&-256|b);else if(b!=(this.P&255)){var c=this.R.na;if(b&1)this.A&&(Sb(c,917504,131072,this.A),this.A=null);else{this.A||(this.A=Tb(c,917504,131072));var d=Tb(c,16646144,131072);Sb(c,917504,131072,d,b&2?1:Zb)}this.P=this.P&-256|b}};f.hj=function(){return dk};f.uh=function(){return ek}; Pa(function(){for(var a=jb(window.document,"pcjs","ram"),b=0;b":62,"?":63,"@":64,om:65,pm:66,qm:67,vm:68,E:69,wm:70,zm:71,Am:72,Bm:73,Cm:74,Dm:75,Em:76,Fm:77,Gm:78,Hm:79,Im:80,Q:81,Jm:82,Nm:83,Sm:84,Wm:85,Xm:86,Ym:87,$m:88,an:89,bn:90,"[":91,"\\":92,"]":93,"^":94,_:95,"`":96,cn:97,dn:98,gn:99,d:100,e:101,hn:102,jn:103,kn:104,mn:105,nn:106,k:107,on:108, -pn:109,n:110,rn:111,p:112,q:113,r:114,sn:115,t:116,tn:117,un:118,vn:119,x:120,y:121,z:122,"{":123,"|":124,"}":125,"~":126},gk={};gk[186]=X[";"];gk[187]=X["="];gk[188]=X[","];gk[189]=X["-"];gk[190]=X["."];gk[191]=X["/"];gk[192]=X["`"];gk[219]=X["["];gk[220]=X["\\"];gk[221]=X["]"];gk[222]=X["'"];gk[173]=X["-"];var hk={};hk[X["1"]]=X["!"];hk[X["2"]]=X["@"];hk[X["3"]]=X["#"];hk[X["4"]]=X.$;hk[X["5"]]=X["%"];hk[X["6"]]=X["^"];hk[X["7"]]=X["&"];hk[X["8"]]=X["*"];hk[X["9"]]=X["("];hk[X["0"]]=X[")"]; +var X={um:1,vm:3,wm:26," ":32,"!":33,'"':34,"#":35,$:36,"%":37,"&":38,"'":39,"(":40,")":41,"*":42,"+":43,",":44,"-":45,".":46,"/":47,0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,":":58,";":59,"<":60,"=":61,">":62,"?":63,"@":64,qm:65,rm:66,sm:67,xm:68,E:69,ym:70,Bm:71,Cm:72,Dm:73,Em:74,Fm:75,Gm:76,Hm:77,Im:78,Jm:79,Km:80,Q:81,Lm:82,Pm:83,Um:84,Ym:85,Zm:86,$m:87,bn:88,cn:89,dn:90,"[":91,"\\":92,"]":93,"^":94,_:95,"`":96,en:97,fn:98,jn:99,d:100,e:101,kn:102,mn:103,nn:104,on:105,pn:106,k:107,qn:108, +rn:109,n:110,tn:111,p:112,q:113,r:114,un:115,t:116,vn:117,wn:118,xn:119,x:120,y:121,z:122,"{":123,"|":124,"}":125,"~":126},gk={};gk[186]=X[";"];gk[187]=X["="];gk[188]=X[","];gk[189]=X["-"];gk[190]=X["."];gk[191]=X["/"];gk[192]=X["`"];gk[219]=X["["];gk[220]=X["\\"];gk[221]=X["]"];gk[222]=X["'"];gk[173]=X["-"];var hk={};hk[X["1"]]=X["!"];hk[X["2"]]=X["@"];hk[X["3"]]=X["#"];hk[X["4"]]=X.$;hk[X["5"]]=X["%"];hk[X["6"]]=X["^"];hk[X["7"]]=X["&"];hk[X["8"]]=X["*"];hk[X["9"]]=X["("];hk[X["0"]]=X[")"]; hk[186]=X[":"];hk[187]=X["+"];hk[188]=X["<"];hk[189]=X._;hk[190]=X[">"];hk[191]=X["?"];hk[192]=X["~"];hk[219]=X["{"];hk[220]=X["|"];hk[221]=X["}"];hk[222]=X['"'];hk[173]=X._;hk[61]=X["+"];hk[59]=X[":"]; var ik={3016:1,1016:2,1017:8,1018:32,1091:128,1093:64,1224:128,1020:512,1144:1024,1145:2048},jk={TAB:1009,ESC:1027,F1:1112,F2:1113,F3:1114,F4:1115,F5:1116,F6:1117,F7:1118,F8:1119,F9:1120,F10:1121,LEFT:1037,UP:1038,RIGHT:1039,DOWN:1040,CTRL_C:4003,CTRL_BREAK:4008,CTRL_ALT_DEL:4046},kk={esc:1027,1:X["1"],2:X["2"],3:X["3"],4:X["4"],5:X["5"],6:X["6"],7:X["7"],8:X["8"],9:X["9"],0:X["0"],"-":X["-"],"=":X["="],bs:1008,tab:1009,q:81,w:87,e:69,r:82,t:84,y:89,u:85,i:73,o:79,p:80,"[":X["["],"]":X["]"],enter:13, ctrl:1017,a:65,s:83,d:68,f:70,g:71,h:72,j:74,k:75,l:76,";":X[";"],quote:X["'"],"`":X["`"],shift:1016,"\\":X["\\"],z:90,x:88,c:67,v:86,b:66,n:78,m:77,",":X[","],".":X["."],"/":X["/"],"right-shift":3016,prtsc:1044,alt:1018,space:X[" "],"caps-lock":1020,f1:1112,f2:1113,f3:1114,f4:1115,f5:1116,f6:1117,f7:1118,f8:1119,f9:1120,f10:1121,"num-lock":1144,"scroll-lock":1145,"num-home":1036,"num-up":1038,"num-pgup":1033,"num-sub":1109,"num-left":1037,"num-center":1101,"num-right":1039,"num-add":1107,"num-end":1035, @@ -876,189 +876,189 @@ ctrl:1017,a:65,s:83,d:68,f:70,g:71,h:72,j:74,k:75,l:76,";":X[";"],quote:X["'"]," Y[81]=10768;Y[119]=17;Y[87]=10769;Y[101]=18;Y[69]=10770;Y[114]=19;Y[82]=10771;Y[116]=20;Y[84]=10772;Y[121]=21;Y[89]=10773;Y[117]=22;Y[85]=10774;Y[105]=23;Y[73]=10775;Y[111]=24;Y[79]=10776;Y[112]=25;Y[80]=10777;Y[X["["]]=26;Y[X["{"]]=10778;Y[X["]"]]=27;Y[X["}"]]=10779;Y[13]=28;Y[1017]=29;Y[97]=30;Y[65]=10782;Y[115]=31;Y[83]=10783;Y[100]=32;Y[68]=10784;Y[102]=33;Y[70]=10785;Y[103]=34;Y[71]=10786;Y[104]=35;Y[72]=10787;Y[106]=36;Y[74]=10788;Y[107]=37;Y[75]=10789;Y[108]=38;Y[76]=10790;Y[X[";"]]=39; Y[X[":"]]=10791;Y[X["'"]]=40;Y[X['"']]=10792;Y[X["`"]]=41;Y[X["~"]]=10793;Y[1016]=42;Y[X["\\"]]=43;Y[X["|"]]=10795;Y[122]=44;Y[90]=10796;Y[120]=45;Y[88]=10797;Y[99]=46;Y[67]=10798;Y[118]=47;Y[86]=10799;Y[98]=48;Y[66]=10800;Y[110]=49;Y[78]=10801;Y[109]=50;Y[77]=10802;Y[X[","]]=51;Y[X["<"]]=10803;Y[X["."]]=52;Y[X[">"]]=10804;Y[X["/"]]=53;Y[X["?"]]=10805;Y[3016]=54;Y[1044]=55;Y[1018]=56;Y[X[" "]]=57;Y[1020]=58;Y[1112]=59;Y[1113]=60;Y[1114]=61;Y[1115]=62;Y[1116]=63;Y[1117]=64;Y[1118]=65;Y[1119]=66; Y[1120]=67;Y[1121]=68;Y[1144]=69;Y[1145]=70;Y[1036]=71;Y[1038]=72;Y[1033]=73;Y[1109]=74;Y[1037]=75;Y[1101]=76;Y[1039]=77;Y[1107]=78;Y[1035]=79;Y[1040]=80;Y[1034]=81;Y[1045]=82;Y[1046]=83;Y[1122]=87;Y[1123]=88;Y[1091]=91;Y[1093]=93;Y[1224]=91;Y[4003]=7470;Y[4008]=7494;Y[4046]=3677523;f=fk.prototype; -f.Tb=function(a,b,c){var d=this,e=a+"-"+b;if(void 0===this.ya[e])switch(b){case "kbd":return c.onkeydown=function(a){return mk(d,a,!0)},c.onkeypress=function(a){a=a||window.event;a=a.which||a.keyCode;var b=!Y[a]||!!(d.kc&128);b||nk(d,a,!0);return b},c.onkeyup=function(a){return mk(d,a,!1)},!0;case "caps-lock":return this.ya[e]=c,c.onclick=function(){d.O&&d.O.Yc();nk(d,1020,!0)},!0;case "num-lock":return this.ya[e]=c,c.onclick=function(){d.O&&d.O.Yc();nk(d,1144,!0)},!0;case "scroll-lock":return this.ya[e]= -c,c.onclick=function(){d.O&&d.O.Yc();nk(d,1145,!0)},!0;default:var g=b.toUpperCase().replace(/-/g,"_");if(void 0!==jk[g]&&"button"==a)return this.ya[e]=c,c.onclick=function(a,b,c){return function(){a.O&&a.O.Yc();ok(a,c,!0);nk(a,c,!0)}}(this,g,jk[g]),!0;if(void 0!==kk[b])return this.aa++,this.ya[e]=c,a=function(a,b,c){return function(){nk(a,c)}}(this,b,kk[b]),b=function(a,b,c){return function(){pk(a,c)}}(this,b,kk[b]),"ontouchstart"in window?(c.ontouchstart=a,c.ontouchend=b):(c.onmousedown=a,c.onmouseup= +f.Tb=function(a,b,c){var d=this,e=a+"-"+b;if(void 0===this.ya[e])switch(b){case "kbd":return c.onkeydown=function(a){return mk(d,a,!0)},c.onkeypress=function(a){a=a||window.event;a=a.which||a.keyCode;var b=!Y[a]||!!(d.kc&128);b||nk(d,a,!0);return b},c.onkeyup=function(a){return mk(d,a,!1)},!0;case "caps-lock":return this.ya[e]=c,c.onclick=function(){d.O&&d.O.Xc();nk(d,1020,!0)},!0;case "num-lock":return this.ya[e]=c,c.onclick=function(){d.O&&d.O.Xc();nk(d,1144,!0)},!0;case "scroll-lock":return this.ya[e]= +c,c.onclick=function(){d.O&&d.O.Xc();nk(d,1145,!0)},!0;default:var g=b.toUpperCase().replace(/-/g,"_");if(void 0!==jk[g]&&"button"==a)return this.ya[e]=c,c.onclick=function(a,b,c){return function(){a.O&&a.O.Xc();ok(a,c,!0);nk(a,c,!0)}}(this,g,jk[g]),!0;if(void 0!==kk[b])return this.aa++,this.ya[e]=c,a=function(a,b,c){return function(){nk(a,c)}}(this,b,kk[b]),b=function(a,b,c){return function(){pk(a,c)}}(this,b,kk[b]),"ontouchstart"in window?(c.ontouchstart=a,c.ontouchend=b):(c.onmousedown=a,c.onmouseup= c.onmouseout=b),!0}return!1};function qk(a,b,c){if(a.aa){for(var d in hk)if(b==hk[d]){b=+d;(d=gk[d])&&(b=d);break}for(var e in kk)if((d=kk[e]==b)||(d=b,97<=d&&122>=d&&(d-=32),d=kk[e]==d),d){(a=a.ya["key-"+e])&&void 0!==c&&(a.style.color=c?"#ffffff":"#000000",a.style.backgroundColor=c?"#000000":"#ffffff");break}}}f.Hc=function(a,b,c,d){this.na=b;this.O=c;this.ga=d;this.X=Ab(a,"ChipSet")};function Oj(a,b){a.Ca("keyboard reset",65792);a.A=[170];a.R=!0;b&&a.X&&Qj(a.X,a.A[0])} function Kj(a,b,c){a.Y!==c&&(a.Y=a.pa=c)&&(a.R=!0);a.S!==b&&(a.S=b)&&!a.pa&&Rj(a,!0);a.S&&a.pa&&(Oj(a,!0),a.pa=!1)}function Lj(a){var b=0;a.A.length&&a.R&&(b=a.A[0],a.X&&Qj(a.X,b));a.ta()&&a.Ca("scan code "+fa(b)+" available")}function Rj(a,b){0>=1);if(b&3584){if(!1===d)return!0;d=null}null==d?d=!((c?a.P:a.kc)&b):d||b&255&&(b=255);if(c){a.P&=~b;d&&(a.P|=b);c=b;var g,h;for(h in lk)d="led-"+h,e=lk[h],c&&c!=e||!(g=a.ya[d])||(g.style.backgroundColor=a.P&e?"#00ff00":"#000000")}else a.kc&=~b,d&&(a.kc|=b);return!0}}return!1} -function nk(a,b,c){if(Y[b]&&a.O&&a.O.oa.Eb){ik[b]&&a.B.length&&0e||(e==a.B.length&&(d={},d.xe=b,d.kc=a.kc,qk(a,b,!0),e++),0b.zd){if(!b.of){pk(a,b.xe);return}b.of=!1;c=a.qa}else c=1==b.zd++?500:100;b.xj=setTimeout(function(a){return function(){sk(a,b)}}(a),c)}}else pk(a,b.xe,!0)} +function nk(a,b,c){if(Y[b]&&a.O&&a.O.oa.Eb){ik[b]&&a.B.length&&0e||(e==a.B.length&&(d={},d.we=b,d.kc=a.kc,qk(a,b,!0),e++),0b.yd){if(!b.of){pk(a,b.we);return}b.of=!1;c=a.qa}else c=1==b.yd++?500:100;b.wj=setTimeout(function(a){return function(){sk(a,b)}}(a),c)}}else pk(a,b.we,!0)} function uk(a,b,c){var d=b;if(65<=b&&90>=b)!(a.kc&515)==c&&(d=b+32);else if(97<=b&&122>=b)!!(a.kc&515)==c&&(d=b-32);else if(!!(a.kc&3)==c){if(a=hk[b])d=a}else if(a=gk[b])d=a;return d}f.Mg=function(a){a||(this.kc&=-256)}; -function mk(a,b,c){var d=!0,e=!1,g=!1,h=b.keyCode,m=uk(a,h,!0);a.qh&&m==X["`"]&&(h=m=27);if(Y[h+1E3])if(m+=1E3,2==b.location&&(m+=2E3),ok(a,m,!1,c)){if(20==h||144==h||145==h)a.ja||(c=e=!0);if(!(c||91!=h&&93!=h))for(var q=0;q=b||97<=b&&122>=b;d>>>=8;){var h=0,m=d&255;224==g||225==g?e.push(g|(c?0:128)):(42==m?a.P&3||a.P&512&&b||(h=m):29==m?a.P&12||(h=m):56==m?a.P&48||(h=m):e.push(g|(c?0:128)),h&&(c?e.unshift(h):e.push(h|128)))}for(c=0;cd.A.length?(d.ta()&&d.Ca("scan code "+fa(g)+" buffered"),d.A.push(g),1==d.A.length&&d.X&&Qj(d.X,g)):(20== d.A.length&&d.A.push(255),d.Ca("scan code buffer overflow")))}}Pa(function(){for(var a=jb(window.document,"pcjs","keyboard"),b=0;bc.length)c=[!1,0,null,null,0,Array(5>b?Nk:Ok)];this.ga=a.ga;this.type=e[0];this.port=e[1];this.lb=b;this.ob=e[2];this.Wb=e[3];this.ud=d||e[4];65536<=this.ud&&720896<=this.ob&&(this.Wb=Math.min(this.ud>>2,32768));this.uc=c[0];this.Xc=c[1];this.df=c[2];this.Ia=c[3];this.qc=c[4]&255;this.Sg=c[4]>>8&255;this.sb=c[5];this.xh=Nk;this.Mf=Pk;if(5<=b){this.xh=Ok;this.Mf=Qk;b=c[6];void 0===b&&(b=[!1,0,Array(20), -0,3==g?0:1,0,0,Array(5),0,0,0,Array(9),0,[this.ob,this.Wb,this.ud],Array(this.ud>>2),-2147478512,0,-1,0,-1,0,-1,0,0,0,0,1,255,0,0,0,Array(256)]);this.wd=b[0];this.Jd=b[1];this.Ic=b[2];this.hh=Rk;this.Vg=b[3];this.ff=b[4];this.Ff=b[5];this.Nd=b[6];this.ue=b[7];this.jh=Sk;this.rj=b[8];this.sj=b[9];this.Md=b[10];this.Ld=b[11];this.ih=Tk;this.Bb=b[12];d=b[13];"number"==typeof d&&(d=[this.ob,this.Wb,d]);this.ob=d[0];this.Wb=d[1];d=this.ud>>2;if((this.ld=b[14])&&this.ld.lengthc.length)c=[!1,0,null,null,0,Array(5>b?Nk:Ok)];this.ga=a.ga;this.type=e[0];this.port=e[1];this.mb=b;this.pb=e[2];this.Wb=e[3];this.ud=d||e[4];65536<=this.ud&&720896<=this.pb&&(this.Wb=Math.min(this.ud>>2,32768));this.uc=c[0];this.Wc=c[1];this.df=c[2];this.Ia=c[3];this.qc=c[4]&255;this.Sg=c[4]>>8&255;this.sb=c[5];this.xh=Nk;this.Mf=Pk;if(5<=b){this.xh=Ok;this.Mf=Qk;b=c[6];void 0===b&&(b=[!1,0,Array(20), +0,3==g?0:1,0,0,Array(5),0,0,0,Array(9),0,[this.pb,this.Wb,this.ud],Array(this.ud>>2),-2147478512,0,-1,0,-1,0,-1,0,0,0,0,1,255,0,0,0,Array(256)]);this.Ge=b[0];this.zd=b[1];this.Ic=b[2];this.hh=Rk;this.Vg=b[3];this.ff=b[4];this.Ff=b[5];this.Md=b[6];this.te=b[7];this.jh=Sk;this.qj=b[8];this.rj=b[9];this.Ld=b[10];this.Kd=b[11];this.ih=Tk;this.Bb=b[12];d=b[13];"number"==typeof d&&(d=[this.pb,this.Wb,d]);this.pb=d[0];this.Wb=d[1];d=this.ud>>2;if((this.ld=b[14])&&this.ld.length>this.controller.Gi&255};Vk[17408]=function(a){return(this.controller.Bb=this.ia[(a&-4)+this.A])>>((a&3)<<3)&255};Vk[5120]=function(a){a+=this.A;var b=this.controller.Bb=this.ia[a&-2];return(a&1?b>>8:b)&255};Vk[1280]=function(a){a+=this.A;a=this.controller.Bb=this.ia[a];for(var b=this.controller.zh,c=this.controller.yh&b,d=0,e=128;e;)(a&b)==c&&(d|=e),c>>>=1,b>>>=1,e>>=1;return d}; -Vk[0]=function(a,b){var c=a+this.A,d;d=(b|b<<8|b<<16|b<<24)&this.controller.Hd|this.controller.ce;d=d&this.controller.Ib|this.controller.Bb&~this.controller.Ib;d=d&this.controller.rb|this.ia[c]&~this.controller.rb;this.ia[c]!=d&&(this.ia[c]=d,this.fb=!0)}; -Vk[32]=function(a,b){var c=a+this.A;b=b>>this.controller.Vc|b<<8-this.controller.Vc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.Hd|this.controller.ce;d=d&this.controller.Ib|this.controller.Bb&~this.controller.Ib;d=d&this.controller.rb|this.ia[c]&~this.controller.rb;this.ia[c]!=d&&(this.ia[c]=d,this.fb=!0)}; -Vk[96]=function(a,b){var c=a+this.A;b=b>>this.controller.Vc|b<<8-this.controller.Vc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.Hd|this.controller.ce;d&=this.controller.Bb;d=d&this.controller.Ib|this.controller.Bb&~this.controller.Ib;d=d&this.controller.rb|this.ia[c]&~this.controller.rb;this.ia[c]!=d&&(this.ia[c]=d,this.fb=!0)}; -Vk[160]=function(a,b){var c=a+this.A;b=b>>this.controller.Vc|b<<8-this.controller.Vc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.Hd|this.controller.ce;d|=this.controller.Bb;d=d&this.controller.Ib|this.controller.Bb&~this.controller.Ib;d=d&this.controller.rb|this.ia[c]&~this.controller.rb;this.ia[c]!=d&&(this.ia[c]=d,this.fb=!0)}; -Vk[224]=function(a,b){var c=a+this.A;b=b>>this.controller.Vc|b<<8-this.controller.Vc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.Hd|this.controller.ce;d^=this.controller.Bb;d=d&this.controller.Ib|this.controller.Bb&~this.controller.Ib;d=d&this.controller.rb|this.ia[c]&~this.controller.rb;this.ia[c]!=d&&(this.ia[c]=d,this.fb=!0)};Vk[4]=function(a,b){var c=(a&-4)+this.A,d=(a&3)<<3,d=b<>this.controller.Uc|b<<8-this.controller.Uc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.Hd|this.controller.be;d=d&this.controller.Ib|this.controller.Bb&~this.controller.Ib;d=d&this.controller.rb|this.ia[c]&~this.controller.rb;this.ia[c]!=d&&(this.ia[c]=d,this.fb=!0)}; +Vk[96]=function(a,b){var c=a+this.A;b=b>>this.controller.Uc|b<<8-this.controller.Uc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.Hd|this.controller.be;d&=this.controller.Bb;d=d&this.controller.Ib|this.controller.Bb&~this.controller.Ib;d=d&this.controller.rb|this.ia[c]&~this.controller.rb;this.ia[c]!=d&&(this.ia[c]=d,this.fb=!0)}; +Vk[160]=function(a,b){var c=a+this.A;b=b>>this.controller.Uc|b<<8-this.controller.Uc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.Hd|this.controller.be;d|=this.controller.Bb;d=d&this.controller.Ib|this.controller.Bb&~this.controller.Ib;d=d&this.controller.rb|this.ia[c]&~this.controller.rb;this.ia[c]!=d&&(this.ia[c]=d,this.fb=!0)}; +Vk[224]=function(a,b){var c=a+this.A;b=b>>this.controller.Uc|b<<8-this.controller.Uc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.Hd|this.controller.be;d^=this.controller.Bb;d=d&this.controller.Ib|this.controller.Bb&~this.controller.Ib;d=d&this.controller.rb|this.ia[c]&~this.controller.rb;this.ia[c]!=d&&(this.ia[c]=d,this.fb=!0)};Vk[4]=function(a,b){var c=(a&-4)+this.A,d=(a&3)<<3,d=b<>this.controller.Vc|b<<8-this.controller.Vc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.Ib;d=this.controller.yf&d|this.controller.Bb&~d;d=d&this.controller.rb|this.ia[c]&~this.controller.rb;this.ia[c]!=d&&(this.ia[c]=d,this.fb=!0)}; -function Wk(a){var b=[];if(void 0!==a.lb){b[0]=a.uc;b[1]=a.Xc;b[2]=a.df;b[3]=a.Ia;b[4]=a.qc|a.Sg<<8;b[5]=a.sb;if(5<=a.lb){var c=[];c[0]=a.wd;c[1]=a.Jd;c[2]=a.Ic;c[3]=a.Vg;c[4]=a.ff;c[5]=a.Ff;c[6]=a.Nd;c[7]=a.ue;c[8]=a.rj;c[9]=a.sj;c[10]=a.Md;c[11]=a.Ld;c[12]=a.Bb;c[13]=[a.ob,a.Wb,a.ud];var d;a:if(d=a.ld){var e=0,g=[];if(void 0!==d[0])for(var h=0;2>h;h++)for(var m=h;m>1;g[e++]=q;m=r}if(g.length>this.controller.Uc|b<<8-this.controller.Uc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.Ib;d=this.controller.yf&d|this.controller.Bb&~d;d=d&this.controller.rb|this.ia[c]&~this.controller.rb;this.ia[c]!=d&&(this.ia[c]=d,this.fb=!0)}; +function Wk(a){var b=[];if(void 0!==a.mb){b[0]=a.uc;b[1]=a.Wc;b[2]=a.df;b[3]=a.Ia;b[4]=a.qc|a.Sg<<8;b[5]=a.sb;if(5<=a.mb){var c=[];c[0]=a.Ge;c[1]=a.zd;c[2]=a.Ic;c[3]=a.Vg;c[4]=a.ff;c[5]=a.Ff;c[6]=a.Md;c[7]=a.te;c[8]=a.qj;c[9]=a.rj;c[10]=a.Ld;c[11]=a.Kd;c[12]=a.Bb;c[13]=[a.pb,a.Wb,a.ud];var d;a:if(d=a.ld){var e=0,g=[];if(void 0!==d[0])for(var h=0;2>h;h++)for(var m=h;m>1;g[e++]=q;m=r}if(g.length>3;for(c=0;c=d&&(T=d,E=!0);break;case "p":0<= -d&&3>=d&&(J=d);break;case "w":d=b.ob&&(g-=b.ob);a="";for(c=0;cJ?k(N):ea(N>>(J<<3)));E&&(g+=I-T);a&&(a+="\n");a+=U}a&&b.ga.V(a);b.B=g}else b.ga.V("no buffer")}else e.ga.V("BIOSMODE: "+fa(e.Ra)),b=e.B,Xk(b,"CRTC",b.qc,b.sb,b.Mf),5<=b.lb&&(Xk(b," GRC",b.Md,b.Ld,b.ih),Xk(b," SEQ",b.Nd,b.ue,b.jh),Xk(b," ATC",b.Jd,b.Ic,b.hh),b.ga.V(" ATCDATA: "+ -b.wd),Xk(b," FEAT",b.Ff),Xk(b," MISC",b.ff),Xk(b," STATUS0",b.Vg)),Xk(b," STATUS1",b.Ia),b.lb!=wk&&3!=b.lb||Xk(b," MODEREG",b.Xc),3==b.lb&&Xk(b," COLOR",b.df),5<=b.lb&&(b.ga.V(" LATCHES: 0x"+k(b.Bb)),b.ga.V(" ACCESS: "+ga(b.Yf)),b.ga.V("Use 'dump video [addr]' to dump video memory"));else e.ga.V("no active video card")})}if((this.P=Ab(a,"Keyboard"))&&this.ua){for(var g in this.ya)0c&&(a=Math.round(c/b*100)+"%")}this.me?(this.ua.style.width=a,this.ua.style.width=a,this.ua.style.display="block",this.ua.style.margin="auto"):(this.ja.style.width=a,this.ja.style.height="auto");this.ja.style.backgroundColor="black";this.ja.Ge();a=!0}this.Yc()}return a}; -function Ak(a,b){!b&&a.ja&&(a.me?a.ua.style.width=a.ua.style.height="":a.ja.style.width=a.ja.style.height="");a.Ca("notifyFullScreen("+b+")",!0);a.P&&(a.P.qh=b)}f.ne=function(a){var b=!1;this.S&&(a?this.S.ne&&(this.S.ne(),this.Y&&this.Y.Af(!0),b=!0):this.S.yj&&(this.S.yj(),this.Y&&this.Y.Af(!1),b=!0),this.Yc());return b};f.Af=function(a){this.Y&&(this.Y.Af(a),this.P&&(this.P.qh=a));var b=this.ya.lockPointer;b&&(b.textContent=a?"Press Esc to Unlock Pointer":this.dh)}; -function fl(a,b){var c=a.S;c&&!a.xd&&(c.addEventListener("touchstart",function(b){gl(a,b,!0)},!1),c.addEventListener("touchmove",function(b){gl(a,b)},!0),c.addEventListener("touchend",function(b){gl(a,b,!1)},!1),a.xd=b,a.hc=a.zc=a.Ef=-1)}f.Mg=function(a){this.je=a;this.P&&this.P.Mg(a)}; -function gl(a,b,c){var d,e;a.je&&b.preventDefault();var g=0,h=0;e=a.ua;do isNaN(e.offsetLeft)||(g+=e.offsetLeft,h+=e.offsetTop);while(e=e.offsetParent);var m=a.Da/a.ua.offsetWidth,q=a.Ma/a.ua.offsetHeight;b.targetTouches&&b.targetTouches.length?(d=b.targetTouches[0].pageX,e=b.targetTouches[0].pageY):(d=b.pageX,e=b.pageY);d=(d-g)*m;e=(e-h)*q;if(1==a.xd)d=d/(a.Da/3)|0,e=e/(a.Ma/3)|0,1!=e?e?nk(a.P,1040,!0):nk(a.P,1038,!0):1!=d&&(d?nk(a.P,1039,!0):nk(a.P,1037,!0));else if(a.Y){!0===c&&(a.Ef=b.timeStamp); -if(!1===c&&(b=b.timeStamp-a.Ef,a.V("processTouchEvent(false,"+b+")"),200>b)){a.Y.Fe(hl,!0);a.Y.Fe(hl,!1);return}if(c||0>a.hc||0>a.zc)a.hc=d,a.zc=e;c=Math.round(d-a.hc);b=Math.round(e-a.zc);a.hc=d;a.zc=e;a.Y.pf(c,b,a.hc,a.zc)}}f.pc=function(a,b){if(!b)if(!a||!this.restore)this.reset();else if(!this.restore(a))return!1;return!0};f.oc=function(a){return a&&this.save?this.save():!0}; -f.reset=function(){var a=!0,b=0;this.X&&(b=Vi(this.X));this.ra||(this.lb=3==b?wk:3);this.Ha=3;switch(this.lb){case Wj:b=7;break;case 5:var c=Ck[this.Lc];c&&(b=c[0]);b||(b=4);break;case wk:b=3;this.Ha=yk;break;default:b=2}this.Ja!==b&&(this.Ja=b,a=!0);this.B=null;this.Ba=this.hd=new Lk(this,wk);this.da=this.Mc=new Lk(this,3);5>this.lb?this.A=new Lk:(this.A=new Lk(this,this.lb,null,this.ud),il(this));Bl(this);this.Ra=null;this.ib=this.sa=-1;this.Za=0;Cl(this,this.Ha);if(this.B.ob&&a){a=this.B.ob+this.Ub; -for(b=this.B.ob;b>1&255,d=d>>8&-129,d>>4==(d&15)&&(d^=15)):(c=d&255,d=(d&256?7:112)|8&d>>8);ec(this.na,b,c|d<<8)}Wc(this,!0)}};function il(a){a.A.ff&1?(a.Ba=a.hd,a.da=a.A):(a.Ba=a.A,a.da=a.Mc)}f.save=function(){var a=new Re(this);Se(a,0,Wk(this.hd));Se(a,1,Wk(this.Mc));Se(a,2,[this.Ja,this.Ha,this.Ra]);Se(a,3,Wk(this.A));return a.data()}; -f.restore=function(a){var b=a[2];this.Ja=b[0];this.Ha=b[1];this.Ra=b[2];this.B=null;this.Ba=this.hd=new Lk(this,wk,a[0]);this.da=this.Mc=new Lk(this,3,a[1]);this.A=new Lk(this,this.lb,a[3],this.ud);this.A.uc&&il(this);Bl(this);if(!Dl(this))return!1;El(this);return!0}; -f.ll=function(a,b,c){if(c)this.Ta("Unable to load font ROM image (error "+c+")");else{try{var d=eval("("+b+")");if(!d.length){ya("Empty font ROM image: "+a);return}if(1==d.length){ya(d[0]);return}if(8192==d.length)Vj(this,d,[6144,0]);else{this.Ta("Unrecognized font data length ("+d.length+")");return}}catch(e){this.Ta("Font ROM data error: "+e.message);return}(this.qa||this.ga)&&ob(this)}}; -function Fl(a,b){if(1==b)return a.La[0]=Fk[0],a.La[1]=Fk[7],a.La;if(2==b){var c=a.B.df;if(a.B===a.A){var d=a.A.Ic[0],c=d&7;d&16&&(c|=8);18!=a.A.Ic[1]&&(c|=32)}a.La[0]=Fk[c&15];c=c&32?Hk:Gk;for(d=0;dg;g++)h=d[g]||0,m=h<<2&252,q=h>>4&252,h=h>>10&252,a.La[g]=[m,q,h,255];else{var r=d&&d[255];e=null!=c.Ic[15]?c.Ic:Ik;for(g=0;16>g;g++)h=e[g]&63,r?(h|= -(c.Ic[20]&12)<<4,c.Ic[16]&128&&(h&=-49,h|=(c.Ic[20]&3)<<4),h=d[h],m=h<<2&252,q=h>>4&252,h=h>>10&252):(m=(h&4?170:0)|(h&32?85:0),q=(h&2?170:0)|(h&16?85:0),h=(h&1?170:0)|(h&8?85:0)),a.La[g]=[m,q,h,255]}a.eb=!0}return a.La}function Vj(a,b,c,d){a.Kc=b;a.jd=c;a.tb=d} -function Bl(a,b){var c=!1;if(window&&a.Kc&&(!b||a.pa)){var d=0,e=a.tb?a.tb:8,g=Fl(a);Gl(a,3,a.jd[0],d,e,8,a.Kc,g)&&(c=!0);d=a.tb?0:2048;e=a.tb?a.tb:9;Gl(a,1,a.jd[1],d,e,14,a.Kc,Dk,Ek)&&(c=!0);a.tb&&Gl(a,a.lb,a.jd[1],0,a.tb,14,a.Kc,g)&&(c=!0)}return c}function Gl(a,b,c,d,e,g,h,m,q){var r=!1;null!=c&&(Hl(a,b,c,d,e,g,h,m,q)&&(r=!0),a.$g&&Hl(a,b<<1,c,d,e,g,h,m,q)&&(r=!0));return r} -function Hl(a,b,c,d,e,g,h,m,q){var r=!1,x=b&1?0:1,E=a.Ua[b],B=16>m.length?m.length:16;E||(E={Fc:e<ca||!N?ca:8,md=Za.createImageData(r.Fc,r.Gc),Na=0;256>Na;Na++){for(oa= -0;oa=ca-2,Xd=va[oa>(8<=rb&&192<=Na&&223>=Na?7:rb)?T:La;Il(md,Yd,Zd,$d);I&&Il(md,Yd+1,Zd,$d)}Za.putImageData(md,(Na&15)*r.Fc,(Na>>4)*r.Gc)}r.ze[J]="#"+k(T[0],2)+k(T[1],2)+k(T[2],2);r.Oi[J]=T;r.gh[J]=Ma;r=!0}}a.Ua[b]=E;return r}function Jl(a){0a.ib&&(a.ib=0):a.ib=-1} -function El(a){if(a.pa){for(var b=10;15>=b;b++)if(null==a.B.sb[b])return;var c=a.B.sb[10],b=c&31,d=a.B.sb[11]&31,e=a.B.sb[9]&31,g=!1;a.B===a.A&&(g=!0,7!=e||4!=b||d||(d=7));if(c&32||b>d&&!g||b>e)Kl(a);else{c=a.B.sb[15]+((a.B.sb[14]&63)<<8);a.sa!=c&&(Kl(a),a.sa=c);d=d-b+1;if(a.If!=b||a.ke!=d)a.If=b,a.ke=d;a.bb=e+1;Jl(a)}}} -function Kl(a){if(0<=a.sa){if(void 0!==a.fa){var b=a.fa[a.sa];if(b&131072){var b=b&-131073,c=a.sa%a.R,d=a.sa/a.R|0;a.pa&&a.Ua[a.pa]&&(a.nb&&Ll(a,c,d,b,a.nb),Ll(a,c,d,b));a.fa[a.sa]=b}}a.sa=-1}} -function Ml(a){var b,c=a.B;a.le=!1;var d=c.Ld[5];if(null!=d){b=1024;var e=0,g=c.Ld[3]&31;switch(d&3){case 0:if(g){e=32;switch(g&24){case 8:e=96;break;case 16:e=160;break;case 24:e=224}c.Vc=g&7}break;case 1:e=1;break;case 2:switch(g&24){default:e=2;break;case 8:e=98;break;case 16:e=162;break;case 24:e=226}break;case 3:a.lb==Wj&&(e=3,c.Vc=g&7)}d&8&&(b=1280);c=c.ue[4];null!=c&&(c&4||(b|=4096,e|=16),d&64&&(c&8&&(b|=16384,e|=4),a.le=!0));b|=e}return b} -function Nl(a,b){var c=a.B;c&&null!=b&&b!=c.Yf&&(c.Wg(b),a.na.Wg(c.ob,c.Wb,c.uh()))} -function Dl(a,b){var c,d=a.Ra,e=a.B;if(e)if(e.lb==wk)d=yk;else if(5<=e.lb){var d=null,g=e.ud>>2,h=32768=e.sb[18]?19:20:21:h&128||350>g?d=c?13:14:480<=g&&(d=3==a.Ja?17:18):d=c?7-d:6:d-=c?2:0);c=Ml(a)}}else e.Xc&8&&(e.Xc&2?(d=e.Xc&16?6:5,e.Xc&4||--d):(d=e.Xc&1?3:1,e.Xc&4&&--d));else a.Ra=null,null==d&&(d=a.Ha);if(!Cl(a,d,b))return!1;Nl(a,c);return!0} -function Cl(a,b,c){if(null!=b&&(b!=a.Ra||c)){a.Yg=0;a.Ra=b;a.eb=!1;b=a.B||(b==yk?a.Ba:a.da);if(b!=a.B||b.ob!=a.ob||b.Wb!=a.Wb){Kl(a);if(a.ob){if(!Yb(a.na,a.ob,a.Wb))return!1;a.B&&(a.B.uc=!1)}a.B=b;b.uc=!0;a.ob=b.ob;a.Wb=b.Wb;if(!Pb(a.na,b.ob,b.Wb,3,b===a.A?b:null))return!1}a.pa=0;a.R=a.$c;a.aa=a.od;a.Db=a.R;a.Nc=xk[yk][2];b=0;if(c=xk[a.Ra])a.R=c[0],a.aa=c[1],a.Nc=c[2],b=c[3],a.pa=c[4],4!=a.Ja&&7!=a.Ja||a.B!==a.A||3!=a.pa||(7==a.A.sb[9]?a.aa=43:a.pa=a.lb);a.se=a.R*a.aa|0;a.oe=a.se/a.Nc|0;a.Ub=a.oe; -a.kd=0;void 0!==b&&(a.Ub=(a.Ub<<1)+b|0,a.kd=a.Ub+b>>1);a.Ua.length&&(a.Na=a.Da/a.R|0,a.Oa=a.Ma/a.aa|0,a.pa?(b=a.Ua[a.pa],c=a.Ua[a.pa<<1],a.bh&&80==a.R?c&&a.Na>=3*c.Fc>>2&&(a.pa<<=1,b=c):(c&&a.Na>=c.Fc&&(a.pa<<=1,b=c),b&&(a.Na=b.Fc,a.Oa=b.Gc)),a.Yb=a.ac=0,b&&(a.Yb=a.R*b.Fc,a.ac=a.aa*b.Gc)):(a.Na=a.Oa=1,a.Yb=a.R,a.ac=a.aa),a.yb=a.qa.createImageData(a.Yb,a.ac),a.jb=window.document.createElement("canvas"),a.jb.width=a.Yb,a.jb.height=a.ac,a.nb=a.jb.getContext("2d"),a.Xd=a.Zd=0,a.md=a.Da,a.nd=a.Ma,b=a.Da- -a.R*a.Na,c=a.Ma-a.aa*a.Oa,0>1,a.md-=b),0>1,a.nd-=c),b||c)&&(a.qa.fillStyle=a.ua.style.backgroundColor,a.qa.fillRect(0,0,a.Da,a.Ma));a.eb=!1;Ol(a,!0);Wc(a)}return!0}function Il(a,b,c,d){b=(b+c*a.width)*d.length;a.data[b]=d[0];a.data[b+1]=d[1];a.data[b+2]=d[2];a.data[b+3]=d[3]}function Ol(a,b){a.Za=-1;a.Ea=!1;if(b){var c=a.oe;if(void 0===a.fa||a.fa.length!=c)a.fa=Array(c)}} -function Ll(a,b,c,d,e){var g=d&255,h=d>>8;d=h&15;var m=a.Ua[a.pa];m.kf&&(d=m.kf[d]);var q=h>>4&15;m.kf&&(q=m.kf[q]);e?(b*=m.Fc,c*=m.Gc,e.fillStyle=m.ze[q],e.fillRect(b,c,m.Fc,m.Gc)):(b=b*a.Na+a.Xd,c=c*a.Oa+a.Zd,a.qa.fillStyle=m.ze[q],a.qa.fillRect(b,c,a.Na,a.Oa));h&256&&(q=(g&15)*m.Fc,g=(g>>4)*m.Gc,e?e.drawImage(m.gh[d],q,g,m.Fc,m.Gc,b,c,m.Fc,m.Gc):a.qa.drawImage(m.gh[d],q,g,m.Fc,m.Gc,b,c,a.Na,a.Oa));h&512&&(g=a.If,h=a.ke,e?(a.bb&&a.bb!==m.Gc&&(g=g*m.Gc/a.bb|0,h=h*m.Gc/a.bb|0),e.fillStyle=m.ze[d], -e.fillRect(b,c+g,m.Fc,h)):(a.bb&&a.bb!==a.Oa&&(g=g*a.Oa/a.bb|0,h=h*a.Oa/a.bb|0),a.qa.fillStyle=m.ze[d],a.qa.fillRect(b,c+g,a.Na,h)))} -function Wc(a,b){if(a.oa.mc){var c=!1,d=a.B;d&&(d!==a.A?d.Xc&8&&(c=!0):d.Jd&32&&(c=!0));if(c||b){if(b)Ol(a,!0);else if(void 0===a.fa)return;var e=!1;!(b||++a.Yg&15)&&0<=a.ib&&(a.ib++,e=!0);var g=0,h=a.se,m=a.ob,c=m,q=c+a.Wb;19<=a.Ra&&(m=c=655360,q=c+65536);if(Pl(a,d)&8||d.af&&d.afq&&(r=q-c,0>r&&(r=0)); -q=c+r;if(d=!b&&a.Ea){for(var d=a.na,x=!0,E=c>>>d.Qa;0a.sa)return;g=a.sa;h=g+1}}if(a.pa){if(a.Ua[a.pa]){e=0;m=a.Za=0;d=1048575;r=a.B.Xc&32;5<=a.lb&&(r=a.B.Ic[16]&8);r&&(m=32768,d&=~m,a.ib&2||(d&=-65537));for(c+=g<<1;c>8|(B&255)<<8;var N=m,W=16;x>=d))>>(W-=d);Il(a.yb,x++,E,r[va])}x>J&&(J=x);E=U&&(U=E+1)}q+=2;g++;if(x>=a.R){x=0;E+=2;if(E>a.aa)break;E==a.aa&&(E=1,q=c+a.kd)}}a.Ea=!0;Ta.R?a.Db-a.R-B>>3:0;cW&&(ca=W)):(g<<=B,ca-=B,a.Ea=!1):(a.Ea&&g===a.fa[e]?(r+=ca,ca=0):a.fa[e]=g,e++);if(ca){r>>=8;r>T&&(T=r);x=I&&(I=x+1)}c+=U;if(r>=a.R){r=0;if(++x>a.aa)break;c+=N}}B||(a.Ea=!0);Ea.R?a.Db-a.R-I>>3:0;cN&&(W=N)):(B<<=I,W-=I,a.Ea=!1):(a.Ea&&B===a.fa[g]?(d+=W,W=0):a.fa[g]=B,g++);if(W){dE&&(E=d);r=J&&(J=r+1)}if(d>=a.R){d=0;if(++r>a.aa)break;c+=U}}I||(a.Ea=!0);xd&&(b.Eh=d,d=-d|0);d%b.Ah>b.il&&(c|=1);d%b.Dh>b.kl&&(c|=9);b.Hi=d/b.Dh|0;return c}f.Hk=function(a,b){return Ql(this,this.Ba,a,b)};f.Wl=function(a,b,c){var d=this.Ba;d.Sg=d.qc;d.qc=b&31;l(this,a,b,c,"CRTC.INDX")};f.Gk=function(a,b){return Rl(this,this.Ba,a,b)};f.Vl=function(a,b,c){Sl(this,this.Ba,a,b,c)};f.Ik=function(a,b){return Tl(this,this.Ba,b)};f.Xl=function(a,b,c){a=this.Ba;l(this,a.port+4,b,c,"MODE");a.Xc=b;Dl(this,!1)}; -f.Jk=function(a,b){return Ul(this,this.Ba,b)};f.qj=function(a,b,c){this.A.Ff=this.A.Ff&-4|b&3;l(this,a,b,c,"FEAT")};f.jj=function(a,b){var c=this.A.wd?this.A.Ic[this.A.Jd&31]:this.A.Jd;b&&!this.ta()||l(this,960,null,b,"ATC."+(this.A.wd?this.A.hh[this.A.Jd&31]:"INDX"),c);this.A.wd=!this.A.wd;return c}; -f.pj=function(a,b,c){var d=this.A,e=d.Jd&32;if(d.wd){d.wd=!1;var g=d.Jd&31;if(16<=g||!e)c&&!this.ta()||l(this,a,b,c,"ATC."+d.hh[g]),d.Ic[g]=b,this.eb=!1,Ol(this,void 0)}else d.Jd=b,l(this,a,b,c,"ATC.INDX"),d.wd=!0,b&32&&!e&&Bl(this,!0)&&Wc(this,!0),d.Cf=(d.sb[12]<<8)+d.sb[13]|0,d.af=0}; -f.Tk=function(a,b){var c=0;if(5==this.lb)c=3-((this.A.ff&12)>>2),c=(this.Lc&1<>this.A.xc&63;b&&!this.ta()||l(this,969,null,b,"DAC.DATA["+fa(this.A.fd)+"]["+fa(this.A.xc)+"]",c);this.A.xc+=6;12>3;for(c=0;c=d&&(T=d,E=!0);break;case "p":0<= +d&&3>=d&&(J=d);break;case "w":d=b.pb&&(g-=b.pb);a="";for(c=0;cJ?k(N):ea(N>>(J<<3)));E&&(g+=I-T);a&&(a+="\n");a+=U}a&&b.ga.V(a);b.B=g}else b.ga.V("no buffer")}else e.ga.V("BIOSMODE: "+fa(e.Ra)),b=e.B,Xk(b,"CRTC",b.qc,b.sb,b.Mf),5<=b.mb&&(Xk(b," GRC",b.Ld,b.Kd,b.ih),Xk(b," SEQ",b.Md,b.te,b.jh),Xk(b," ATC",b.zd,b.Ic,b.hh),Xk(b," ATCINDX", +b.zd),b.ga.V(" ATCDATA: "+b.Ge),Xk(b," FEAT",b.Ff),Xk(b," MISC",b.ff),Xk(b," STATUS0",b.Vg)),Xk(b," STATUS1",b.Ia),b.mb!=wk&&3!=b.mb||Xk(b," MODEREG",b.Wc),3==b.mb&&Xk(b," COLOR",b.df),5<=b.mb&&(b.ga.V(" LATCHES: 0x"+k(b.Bb)),b.ga.V(" ACCESS: "+ga(b.Yf)),b.ga.V("Use 'dump video [addr]' to dump video memory"));else e.ga.V("no active video card")})}if((this.P=Ab(a,"Keyboard"))&&this.ua){for(var g in this.ya)0c&&(a=Math.round(c/b*100)+"%")}this.le?(this.ua.style.width=a,this.ua.style.width=a,this.ua.style.display="block",this.ua.style.margin="auto"):(this.ja.style.width=a,this.ja.style.height="auto");this.ja.style.backgroundColor="black";this.ja.Fe();a=!0}this.Xc()}return a}; +function Ak(a,b){!b&&a.ja&&(a.le?a.ua.style.width=a.ua.style.height="":a.ja.style.width=a.ja.style.height="");a.Ca("notifyFullScreen("+b+")",!0);a.P&&(a.P.qh=b)}f.me=function(a){var b=!1;this.S&&(a?this.S.me&&(this.S.me(),this.Y&&this.Y.Af(!0),b=!0):this.S.xj&&(this.S.xj(),this.Y&&this.Y.Af(!1),b=!0),this.Xc());return b};f.Af=function(a){this.Y&&(this.Y.Af(a),this.P&&(this.P.qh=a));var b=this.ya.lockPointer;b&&(b.textContent=a?"Press Esc to Unlock Pointer":this.dh)}; +function fl(a,b){var c=a.S;c&&!a.wd&&(c.addEventListener("touchstart",function(b){gl(a,b,!0)},!1),c.addEventListener("touchmove",function(b){gl(a,b)},!0),c.addEventListener("touchend",function(b){gl(a,b,!1)},!1),a.wd=b,a.hc=a.zc=a.Ef=-1)}f.Mg=function(a){this.ie=a;this.P&&this.P.Mg(a)}; +function gl(a,b,c){var d,e;a.ie&&b.preventDefault();var g=0,h=0;e=a.ua;do isNaN(e.offsetLeft)||(g+=e.offsetLeft,h+=e.offsetTop);while(e=e.offsetParent);var m=a.Da/a.ua.offsetWidth,q=a.Ma/a.ua.offsetHeight;b.targetTouches&&b.targetTouches.length?(d=b.targetTouches[0].pageX,e=b.targetTouches[0].pageY):(d=b.pageX,e=b.pageY);d=(d-g)*m;e=(e-h)*q;if(1==a.wd)d=d/(a.Da/3)|0,e=e/(a.Ma/3)|0,1!=e?e?nk(a.P,1040,!0):nk(a.P,1038,!0):1!=d&&(d?nk(a.P,1039,!0):nk(a.P,1037,!0));else if(a.Y){!0===c&&(a.Ef=b.timeStamp); +if(!1===c&&(b=b.timeStamp-a.Ef,a.V("processTouchEvent(false,"+b+")"),200>b)){a.Y.Ee(hl,!0);a.Y.Ee(hl,!1);return}if(c||0>a.hc||0>a.zc)a.hc=d,a.zc=e;c=Math.round(d-a.hc);b=Math.round(e-a.zc);a.hc=d;a.zc=e;a.Y.pf(c,b,a.hc,a.zc)}}f.pc=function(a,b){if(!b)if(!a||!this.restore)this.reset();else if(!this.restore(a))return!1;return!0};f.oc=function(a){return a&&this.save?this.save():!0}; +f.reset=function(){var a=!0,b=0;this.X&&(b=Vi(this.X));this.ra||(this.mb=3==b?wk:3);this.Ha=3;switch(this.mb){case Wj:b=7;break;case 5:var c=Ck[this.Kc];c&&(b=c[0]);b||(b=4);break;case wk:b=3;this.Ha=yk;break;default:b=2}this.Ja!==b&&(this.Ja=b,a=!0);this.B=null;this.Ba=this.hd=new Lk(this,wk);this.da=this.Lc=new Lk(this,3);5>this.mb?this.A=new Lk:(this.A=new Lk(this,this.mb,null,this.ud),il(this));Bl(this);this.Ra=null;this.ib=this.sa=-1;this.Za=0;Cl(this,this.Ha);if(this.B.pb&&a){a=this.B.pb+this.Ub; +for(b=this.B.pb;b>1&255,d=d>>8&-129,d>>4==(d&15)&&(d^=15)):(c=d&255,d=(d&256?7:112)|8&d>>8);ec(this.na,b,c|d<<8)}Wc(this,!0)}};function il(a){a.A.ff&1?(a.Ba=a.hd,a.da=a.A):(a.Ba=a.A,a.da=a.Lc)}f.save=function(){var a=new Re(this);Se(a,0,Wk(this.hd));Se(a,1,Wk(this.Lc));Se(a,2,[this.Ja,this.Ha,this.Ra]);Se(a,3,Wk(this.A));return a.data()}; +f.restore=function(a){var b=a[2];this.Ja=b[0];this.Ha=b[1];this.Ra=b[2];this.B=null;this.Ba=this.hd=new Lk(this,wk,a[0]);this.da=this.Lc=new Lk(this,3,a[1]);this.A=new Lk(this,this.mb,a[3],this.ud);this.A.uc&&il(this);Bl(this);if(!Dl(this))return!1;El(this);return!0}; +f.nl=function(a,b,c){if(c)this.Ta("Unable to load font ROM image (error "+c+")");else{try{var d=eval("("+b+")");if(!d.length){ya("Empty font ROM image: "+a);return}if(1==d.length){ya(d[0]);return}if(8192==d.length)Vj(this,d,[6144,0]);else{this.Ta("Unrecognized font data length ("+d.length+")");return}}catch(e){this.Ta("Font ROM data error: "+e.message);return}(this.qa||this.ga)&&ob(this)}}; +function Fl(a,b){if(1==b)return a.La[0]=Fk[0],a.La[1]=Fk[7],a.La;if(2==b){var c=a.B.df;if(a.B===a.A){var d=a.A.Ic[0],c=d&7;d&16&&(c|=8);18!=a.A.Ic[1]&&(c|=32)}a.La[0]=Fk[c&15];c=c&32?Hk:Gk;for(d=0;dg;g++)h=d[g]||0,m=h<<2&252,q=h>>4&252,h=h>>10&252,a.La[g]=[m,q,h,255];else{var r=d&&d[255];e=null!=c.Ic[15]?c.Ic:Ik;for(g=0;16>g;g++)h=e[g]&63,r?(h|= +(c.Ic[20]&12)<<4,c.Ic[16]&128&&(h&=-49,h|=(c.Ic[20]&3)<<4),h=d[h],m=h<<2&252,q=h>>4&252,h=h>>10&252):(m=(h&4?170:0)|(h&32?85:0),q=(h&2?170:0)|(h&16?85:0),h=(h&1?170:0)|(h&8?85:0)),a.La[g]=[m,q,h,255]}a.eb=!0}return a.La}function Vj(a,b,c,d){a.Jc=b;a.jd=c;a.tb=d} +function Bl(a,b){var c=!1;if(window&&a.Jc&&(!b||a.pa)){var d=0,e=a.tb?a.tb:8,g=Fl(a);Gl(a,3,a.jd[0],d,e,8,a.Jc,g)&&(c=!0);d=a.tb?0:2048;e=a.tb?a.tb:9;Gl(a,1,a.jd[1],d,e,14,a.Jc,Dk,Ek)&&(c=!0);a.tb&&Gl(a,a.mb,a.jd[1],0,a.tb,14,a.Jc,g)&&(c=!0)}return c}function Gl(a,b,c,d,e,g,h,m,q){var r=!1;null!=c&&(Hl(a,b,c,d,e,g,h,m,q)&&(r=!0),a.$g&&Hl(a,b<<1,c,d,e,g,h,m,q)&&(r=!0));return r} +function Hl(a,b,c,d,e,g,h,m,q){var r=!1,x=b&1?0:1,E=a.Ua[b],B=16>m.length?m.length:16;E||(E={Fc:e<ca||!N?ca:8,od=Za.createImageData(r.Fc,r.Gc),Na=0;256>Na;Na++){for(oa= +0;oa=ca-2,Xd=va[oa>(8<=sb&&192<=Na&&223>=Na?7:sb)?T:La;Il(od,Yd,Zd,$d);I&&Il(od,Yd+1,Zd,$d)}Za.putImageData(od,(Na&15)*r.Fc,(Na>>4)*r.Gc)}r.ye[J]="#"+k(T[0],2)+k(T[1],2)+k(T[2],2);r.Oi[J]=T;r.gh[J]=Ma;r=!0}}a.Ua[b]=E;return r}function Jl(a){0a.ib&&(a.ib=0):a.ib=-1} +function El(a){if(a.pa){for(var b=10;15>=b;b++)if(null==a.B.sb[b])return;var c=a.B.sb[10],b=c&31,d=a.B.sb[11]&31,e=a.B.sb[9]&31,g=!1;a.B===a.A&&(g=!0,7!=e||4!=b||d||(d=7));if(c&32||b>d&&!g||b>e)Kl(a);else{c=a.B.sb[15]+((a.B.sb[14]&63)<<8);a.sa!=c&&(Kl(a),a.sa=c);d=d-b+1;if(a.If!=b||a.je!=d)a.If=b,a.je=d;a.bb=e+1;Jl(a)}}} +function Kl(a){if(0<=a.sa){if(void 0!==a.fa){var b=a.fa[a.sa];if(b&131072){var b=b&-131073,c=a.sa%a.R,d=a.sa/a.R|0;a.pa&&a.Ua[a.pa]&&(a.ob&&Ll(a,c,d,b,a.ob),Ll(a,c,d,b));a.fa[a.sa]=b}}a.sa=-1}} +function Ml(a){var b,c=a.B;a.ke=!1;var d=c.Kd[5];if(null!=d){b=1024;var e=0,g=c.Kd[3]&31;switch(d&3){case 0:if(g){e=32;switch(g&24){case 8:e=96;break;case 16:e=160;break;case 24:e=224}c.Uc=g&7}break;case 1:e=1;break;case 2:switch(g&24){default:e=2;break;case 8:e=98;break;case 16:e=162;break;case 24:e=226}break;case 3:a.mb==Wj&&(e=3,c.Uc=g&7)}d&8&&(b=1280);c=c.te[4];null!=c&&(c&4||(b|=4096,e|=16),d&64&&(c&8&&(b|=16384,e|=4),a.ke=!0));b|=e}return b} +function Nl(a,b){var c=a.B;c&&null!=b&&b!=c.Yf&&(c.Wg(b),a.na.Wg(c.pb,c.Wb,c.uh()))} +function Dl(a,b){var c,d=a.Ra,e=a.B;if(e)if(e.mb==wk)d=yk;else if(5<=e.mb){var d=null,g=e.ud>>2,h=32768=e.sb[18]?19:20:21:h&128||350>g?d=c?13:14:480<=g&&(d=3==a.Ja?17:18):d=c?7-d:6:d-=c?2:0);c=Ml(a)}}else e.Wc&8&&(e.Wc&2?(d=e.Wc&16?6:5,e.Wc&4||--d):(d=e.Wc&1?3:1,e.Wc&4&&--d));else a.Ra=null,null==d&&(d=a.Ha);if(!Cl(a,d,b))return!1;Nl(a,c);return!0} +function Cl(a,b,c){if(null!=b&&(b!=a.Ra||c)){a.Yg=0;a.Ra=b;a.eb=!1;b=a.B||(b==yk?a.Ba:a.da);if(b!=a.B||b.pb!=a.pb||b.Wb!=a.Wb){Kl(a);if(a.pb){if(!Yb(a.na,a.pb,a.Wb))return!1;a.B&&(a.B.uc=!1)}a.B=b;b.uc=!0;a.pb=b.pb;a.Wb=b.Wb;if(!Pb(a.na,b.pb,b.Wb,3,b===a.A?b:null))return!1}a.pa=0;a.R=a.$c;a.aa=a.od;a.Db=a.R;a.Mc=xk[yk][2];b=0;if(c=xk[a.Ra])a.R=c[0],a.aa=c[1],a.Mc=c[2],b=c[3],a.pa=c[4],4!=a.Ja&&7!=a.Ja||a.B!==a.A||3!=a.pa||(7==a.A.sb[9]?a.aa=43:a.pa=a.mb);a.re=a.R*a.aa|0;a.ne=a.re/a.Mc|0;a.Ub=a.ne; +a.kd=0;void 0!==b&&(a.Ub=(a.Ub<<1)+b|0,a.kd=a.Ub+b>>1);a.Ua.length&&(a.Na=a.Da/a.R|0,a.Oa=a.Ma/a.aa|0,a.pa?(b=a.Ua[a.pa],c=a.Ua[a.pa<<1],a.bh&&80==a.R?c&&a.Na>=3*c.Fc>>2&&(a.pa<<=1,b=c):(c&&a.Na>=c.Fc&&(a.pa<<=1,b=c),b&&(a.Na=b.Fc,a.Oa=b.Gc)),a.Yb=a.ac=0,b&&(a.Yb=a.R*b.Fc,a.ac=a.aa*b.Gc)):(a.Na=a.Oa=1,a.Yb=a.R,a.ac=a.aa),a.yb=a.qa.createImageData(a.Yb,a.ac),a.jb=window.document.createElement("canvas"),a.jb.width=a.Yb,a.jb.height=a.ac,a.ob=a.jb.getContext("2d"),a.Wd=a.Yd=0,a.md=a.Da,a.nd=a.Ma,b=a.Da- +a.R*a.Na,c=a.Ma-a.aa*a.Oa,0>1,a.md-=b),0>1,a.nd-=c),b||c)&&(a.qa.fillStyle=a.ua.style.backgroundColor,a.qa.fillRect(0,0,a.Da,a.Ma));a.eb=!1;Ol(a,!0);Wc(a)}return!0}function Il(a,b,c,d){b=(b+c*a.width)*d.length;a.data[b]=d[0];a.data[b+1]=d[1];a.data[b+2]=d[2];a.data[b+3]=d[3]}function Ol(a,b){a.Za=-1;a.Ea=!1;if(b){var c=a.ne;if(void 0===a.fa||a.fa.length!=c)a.fa=Array(c)}} +function Ll(a,b,c,d,e){var g=d&255,h=d>>8;d=h&15;var m=a.Ua[a.pa];m.kf&&(d=m.kf[d]);var q=h>>4&15;m.kf&&(q=m.kf[q]);e?(b*=m.Fc,c*=m.Gc,e.fillStyle=m.ye[q],e.fillRect(b,c,m.Fc,m.Gc)):(b=b*a.Na+a.Wd,c=c*a.Oa+a.Yd,a.qa.fillStyle=m.ye[q],a.qa.fillRect(b,c,a.Na,a.Oa));h&256&&(q=(g&15)*m.Fc,g=(g>>4)*m.Gc,e?e.drawImage(m.gh[d],q,g,m.Fc,m.Gc,b,c,m.Fc,m.Gc):a.qa.drawImage(m.gh[d],q,g,m.Fc,m.Gc,b,c,a.Na,a.Oa));h&512&&(g=a.If,h=a.je,e?(a.bb&&a.bb!==m.Gc&&(g=g*m.Gc/a.bb|0,h=h*m.Gc/a.bb|0),e.fillStyle=m.ye[d], +e.fillRect(b,c+g,m.Fc,h)):(a.bb&&a.bb!==a.Oa&&(g=g*a.Oa/a.bb|0,h=h*a.Oa/a.bb|0),a.qa.fillStyle=m.ye[d],a.qa.fillRect(b,c+g,a.Na,h)))} +function Wc(a,b){if(a.oa.mc){var c=!1,d=a.B;d&&(d!==a.A?d.Wc&8&&(c=!0):d.zd&32&&(c=!0));if(c||b){if(b)Ol(a,!0);else if(void 0===a.fa)return;var e=!1;!(b||++a.Yg&15)&&0<=a.ib&&(a.ib++,e=!0);var g=0,h=a.re,m=a.pb,c=m,q=c+a.Wb;19<=a.Ra&&(m=c=655360,q=c+65536);if(Pl(a,d)&8||d.af&&d.afq&&(r=q-c,0>r&&(r=0)); +q=c+r;if(d=!b&&a.Ea){for(var d=a.na,x=!0,E=c>>>d.Qa;0a.sa)return;g=a.sa;h=g+1}}if(a.pa){if(a.Ua[a.pa]){e=0;m=a.Za=0;d=1048575;r=a.B.Wc&32;5<=a.mb&&(r=a.B.Ic[16]&8);r&&(m=32768,d&=~m,a.ib&2||(d&=-65537));for(c+=g<<1;c>8|(B&255)<<8;var N=m,W=16;x>=d))>>(W-=d);Il(a.yb,x++,E,r[va])}x>J&&(J=x);E=U&&(U=E+1)}q+=2;g++;if(x>=a.R){x=0;E+=2;if(E>a.aa)break;E==a.aa&&(E=1,q=c+a.kd)}}a.Ea=!0;Ta.R?a.Db-a.R-B>>3:0;cW&&(ca=W)):(g<<=B,ca-=B,a.Ea=!1):(a.Ea&&g===a.fa[e]?(r+=ca,ca=0):a.fa[e]=g,e++);if(ca){r>>=8;r>T&&(T=r);x=I&&(I=x+1)}c+=U;if(r>=a.R){r=0;if(++x>a.aa)break;c+=N}}B||(a.Ea=!0);Ea.R?a.Db-a.R-I>>3:0;cN&&(W=N)):(B<<=I,W-=I,a.Ea=!1):(a.Ea&&B===a.fa[g]?(d+=W,W=0):a.fa[g]=B,g++);if(W){dE&&(E=d);r=J&&(J=r+1)}if(d>=a.R){d=0;if(++r>a.aa)break;c+=U}}I||(a.Ea=!0);xd&&(b.Eh=d,d=-d|0);d%b.Ah>b.kl&&(c|=1);d%b.Dh>b.ml&&(c|=9);b.Hi=d/b.Dh|0;return c}f.Ik=function(a,b){return Ql(this,this.Ba,a,b)};f.Yl=function(a,b,c){var d=this.Ba;d.Sg=d.qc;d.qc=b&31;l(this,a,b,c,"CRTC.INDX")};f.Hk=function(a,b){return Rl(this,this.Ba,a,b)};f.Xl=function(a,b,c){Sl(this,this.Ba,a,b,c)};f.Jk=function(a,b){return Tl(this,this.Ba,b)};f.Zl=function(a,b,c){a=this.Ba;l(this,a.port+4,b,c,"MODE");a.Wc=b;Dl(this,!1)}; +f.Kk=function(a,b){return Ul(this,this.Ba,b)};f.pj=function(a,b,c){this.A.Ff=this.A.Ff&-4|b&3;l(this,a,b,c,"FEAT")};f.ik=function(a,b){var c=this.A.zd;b&&!this.ta()||l(this,960,null,b,"ATC.INDX",c);return c};f.Jj=function(a,b){var c=this.A.Ic[this.A.zd&31];b&&!this.ta()||l(this,960,null,b,"ATC."+this.A.hh[this.A.zd&31],c);return c}; +f.oj=function(a,b,c){var d=this.A,e=d.zd&32;if(d.Ge){d.Ge=!1;var g=d.zd&31;if(16<=g||!e)c&&!this.ta()||l(this,a,b,c,"ATC."+d.hh[g]),d.Ic[g]=b,this.eb=!1,Ol(this,void 0)}else d.zd=b,l(this,a,b,c,"ATC.INDX"),d.Ge=!0,b&32&&!e&&Bl(this,!0)&&Wc(this,!0),d.Cf=(d.sb[12]<<8)+d.sb[13]|0,d.af=0}; +f.Uk=function(a,b){var c=0;if(5==this.mb)c=3-((this.A.ff&12)>>2),c=(this.Kc&1<>this.A.xc&63;b&&!this.ta()||l(this,969,null,b,"DAC.DATA["+fa(this.A.fd)+"]["+fa(this.A.xc)+"]",c);this.A.xc+=6;12Missing <canvas> support. Please try a newer web browser.";break}e.setAttribute("class","pcjs-canvas");e.setAttribute("width",d.screenWidth);e.setAttribute("height",d.screenHeight);e.style.backgroundColor=d.screenColor;e.style.height="auto";0<=(window?window.navigator.userAgent:"").indexOf("MSIE")&&(c.onresize= function(a,b,c,d){return function(){b.style.height=(a.clientWidth*d/c|0)+"px"}}(c,e,d.screenWidth,d.screenHeight),c.onresize());c.appendChild(e);var g=window.document.createElement("textarea");Ea("iOS")&&(g.setAttribute("autocapitalize","off"),g.setAttribute("autocorrect","off"));c.appendChild(g);var h=e.getContext("2d"),d=new Z(d,e,h,g,c);ib(d,c)}}); -function Vl(a){this.ua=a.adapter;switch(this.ua){case 1:this.ja=1016;this.da=4;break;case 2:this.ja=760;this.da=3;break;default:ya("Unrecognized serial adapter #"+this.ua);return}this.S=null;Ta.call(this,"SerialPort",a,Vl,4194304);var b=a.binding,c;a=Wl;b&&(void 0===c&&(c="Panel"),(c=gb(c,this.id))&&(b=c.ya[b])&&this.Tb(null,a,b))}bb(Vl);var Wl="buffer";f=Vl.prototype;f.Qi=function(a,b){return a==this.Pd?(this.Y=b,this):null}; +function Vl(a){this.ua=a.adapter;switch(this.ua){case 1:this.ja=1016;this.da=4;break;case 2:this.ja=760;this.da=3;break;default:ya("Unrecognized serial adapter #"+this.ua);return}this.S=null;Ta.call(this,"SerialPort",a,Vl,4194304);var b=a.binding,c;a=Wl;b&&(void 0===c&&(c="Panel"),(c=gb(c,this.id))&&(b=c.ya[b])&&this.Tb(null,a,b))}bb(Vl);var Wl="buffer";f=Vl.prototype;f.Qi=function(a,b){return a==this.Od?(this.Y=b,this):null}; f.Tb=function(a,b,c){var d=this;switch(b){case Wl:return this.ya[b]=this.S=c,c.onkeydown=function(a){a=a||window.event;var b=a.keyCode;if(8===b||a.ctrlKey&&65<=b&&90>=b)a.preventDefault&&a.preventDefault(),64>8:this.fa;l(this,a,null,b,this.B&128?"DLM":"IER",c);return c};f.Ck=function(a,b){var c=this.R;l(this,a,null,b,"IIR",c);return c}; -f.Dk=function(a,b){var c=this.B;l(this,a,null,b,"LCR",c);return c};f.Fk=function(a,b){var c=this.P;l(this,a,null,b,"MCR",c);return c};f.Ek=function(a,b){var c=this.A;l(this,a,null,b,"LSR",c);return c};f.Kk=function(a,b){var c=this.qa;l(this,a,null,b,"MSR",c);return c}; -f.gm=function(a,b,c){l(this,a,b,c,this.B&128?"DLL":"THR");this.B&128?this.pa=this.pa&-256|b:(this.sa=b,this.A&=-97,this.S?(13!=b&&(8==b?this.S.value=this.S.value.slice(0,-1):(this.S.value+=String.fromCharCode(b),this.S.scrollTop=this.S.scrollHeight)),a=!0):a=!1,a&&(this.A|=96))};f.Sl=function(a,b,c){l(this,a,b,c,this.B&128?"DLM":"IER");this.B&128?this.pa=this.pa&255|b<<8:this.fa=b};f.Tl=function(a,b,c){l(this,a,b,c,"LCR");this.B=b}; -f.Ul=function(a,b,c){var d=this.P;l(this,a,b,c,"MCR");this.P=b;this.Y&&(d^b)&3&&(a=this.Y,b=this.P,(c=3==(b&3))?a.uc||(d=!1,a.P&2||(a.reset(),a.Ca("serial mouse reset"),d=!0),a.P&1||(a.Ca("serial mouse ID requested"),d=!0),d&&(Xl(a.R,[77,77]),a.Ca("serial mouse ID sent")),bm(a),a.uc=c):a.uc&&(a.Ca("serial mouse inactive"),cm(a),a.uc=c),a.P=b)}; -var Yl={0:Vl.prototype.Qk,1:Vl.prototype.Bk,2:Vl.prototype.Ck,3:Vl.prototype.Dk,4:Vl.prototype.Fk,5:Vl.prototype.Ek,6:Vl.prototype.Kk},Zl={0:Vl.prototype.gm,1:Vl.prototype.Sl,3:Vl.prototype.Tl,4:Vl.prototype.Ul};Pa(function(){for(var a=jb(window.document,"pcjs","serial"),b=0;b>8:this.fa;l(this,a,null,b,this.B&128?"DLM":"IER",c);return c};f.Dk=function(a,b){var c=this.R;l(this,a,null,b,"IIR",c);return c}; +f.Ek=function(a,b){var c=this.B;l(this,a,null,b,"LCR",c);return c};f.Gk=function(a,b){var c=this.P;l(this,a,null,b,"MCR",c);return c};f.Fk=function(a,b){var c=this.A;l(this,a,null,b,"LSR",c);return c};f.Lk=function(a,b){var c=this.qa;l(this,a,null,b,"MSR",c);return c}; +f.im=function(a,b,c){l(this,a,b,c,this.B&128?"DLL":"THR");this.B&128?this.pa=this.pa&-256|b:(this.sa=b,this.A&=-97,this.S?(13!=b&&(8==b?this.S.value=this.S.value.slice(0,-1):(this.S.value+=String.fromCharCode(b),this.S.scrollTop=this.S.scrollHeight)),a=!0):a=!1,a&&(this.A|=96))};f.Ul=function(a,b,c){l(this,a,b,c,this.B&128?"DLM":"IER");this.B&128?this.pa=this.pa&255|b<<8:this.fa=b};f.Vl=function(a,b,c){l(this,a,b,c,"LCR");this.B=b}; +f.Wl=function(a,b,c){var d=this.P;l(this,a,b,c,"MCR");this.P=b;this.Y&&(d^b)&3&&(a=this.Y,b=this.P,(c=3==(b&3))?a.uc||(d=!1,a.P&2||(a.reset(),a.Ca("serial mouse reset"),d=!0),a.P&1||(a.Ca("serial mouse ID requested"),d=!0),d&&(Xl(a.R,[77,77]),a.Ca("serial mouse ID sent")),bm(a),a.uc=c):a.uc&&(a.Ca("serial mouse inactive"),cm(a),a.uc=c),a.P=b)}; +var Yl={0:Vl.prototype.Rk,1:Vl.prototype.Ck,2:Vl.prototype.Dk,3:Vl.prototype.Ek,4:Vl.prototype.Gk,5:Vl.prototype.Fk,6:Vl.prototype.Lk},Zl={0:Vl.prototype.im,1:Vl.prototype.Ul,3:Vl.prototype.Vl,4:Vl.prototype.Wl};Pa(function(){for(var a=jb(window.document,"pcjs","serial"),b=0;ba.X||0>a.S)a.X=b.clientX,a.S=b.clientY;a.ja?(c=b.movementX||b.mozMovementX||b.webkitMovementX||0,d=b.movementY||b.mozMovementY||b.webkitMovementY||0):(c=b.clientX-a.X,d=b.clientY-a.S);a.X=b.clientX;a.S=b.clientY;a.pf(c,d,a.X,a.S)}} -f.Fe=function(a,b){if(this.uc&&this.O&&this.O.oa.Eb){var c="mouse button"+a+" "+(b?"dn":"up");switch(a){case hl:this.da!=b&&(this.da=b,hm(this,c));break;case 2:this.fa!=b&&(this.fa=b,hm(this,c))}}};f.pf=function(a,b,c,d){this.uc&&this.O&&this.O.oa.Eb&&(a||b)&&(this.Y=a,this.aa=b,hm(this,null,c,d))}; +function gm(a,b,c){if(void 0!==c){var d;!(d=!1!==a.ja)&&(d=a.B.length)&&(d=a.B[0],d=d.Zg?d.me(!0):!1);d||(a.ja=null);a.Ee(b.button,c)}else{if(0>a.X||0>a.S)a.X=b.clientX,a.S=b.clientY;a.ja?(c=b.movementX||b.mozMovementX||b.webkitMovementX||0,d=b.movementY||b.mozMovementY||b.webkitMovementY||0):(c=b.clientX-a.X,d=b.clientY-a.S);a.X=b.clientX;a.S=b.clientY;a.pf(c,d,a.X,a.S)}} +f.Ee=function(a,b){if(this.uc&&this.O&&this.O.oa.Eb){var c="mouse button"+a+" "+(b?"dn":"up");switch(a){case hl:this.da!=b&&(this.da=b,hm(this,c));break;case 2:this.fa!=b&&(this.fa=b,hm(this,c))}}};f.pf=function(a,b,c,d){this.uc&&this.O&&this.O.oa.Eb&&(a||b)&&(this.Y=a,this.aa=b,hm(this,null,c,d))}; function hm(a,b,c,d){var e=64|(a.da?32:0)|(a.fa?16:0)|(a.aa&192)>>4|(a.Y&192)>>6,g=a.Y&63,h=a.aa&63;a.ta(4194304)&&a.Ca((b?b+": ":"")+(void 0!==d?"mouse ("+c+","+d+"): ":"")+"serial packet ["+fa(e)+","+fa(g)+","+fa(h)+"]",0,!0);Xl(a.R,[e,g,h]);a.Y=a.aa=0}Pa(function(){for(var a=jb(window.document,"pcjs","mouse"),b=0;b>2;var e=d=0,a=new DataView(a,0,c);h.A=Array(h.Lb);for(c=0;cb.indexOf("/api/v1/dump")&&(a=ia(b),"json"==a?g=encodeURI(b):"demandrw"==this.mode||"demandro"==this.mode?(g=nm(this,b),this.Tf=!0):(c="path",d="&mbhd=10",!b.indexOf("http:")||!b.indexOf("ftp:")||0<="dsk ima img 360 720 12 144".split(" ").indexOf(a)?(c="disk",d="&mbhd=0"):-1!==b.indexOf("/",b.length-1)&&(c="dir"),g=xa()+ -"/api/v1/dump?"+c+"="+encodeURIComponent(b)+(this.Le?"":d)+"&format=json")),wa(g,!0,null,this,this.Tj,b)}; -f.Tj=function(a,b,c,d){var e=null;this.Oe=!1;var g=0>c&&this.pa&&!this.pa.oa.mc;if(this.Tf)c?this.controller.Ta('Unable to connect to disk "'+d+'" (error '+c+": "+b+")",g):(this.R=!0,e=this);else if(c)this.controller.Ta('Unable to load disk "'+this.P+'" (error '+c+")",g);else try{if(0h&&0b.indexOf("/api/v1/dump")&&(a=ia(b),"json"==a?g=encodeURI(b):"demandrw"==this.mode||"demandro"==this.mode?(g=nm(this,b),this.Tf=!0):(c="path",d="&mbhd=10",!b.indexOf("http:")||!b.indexOf("ftp:")||0<="dsk ima img 360 720 12 144".split(" ").indexOf(a)?(c="disk",d="&mbhd=0"):-1!==b.indexOf("/",b.length-1)&&(c="dir"),g=xa()+ +"/api/v1/dump?"+c+"="+encodeURIComponent(b)+(this.Le?"":d)+"&format=json")),wa(g,!0,null,this,this.Uj,b)}; +f.Uj=function(a,b,c,d){var e=null;this.Oe=!1;var g=0>c&&this.pa&&!this.pa.oa.mc;if(this.Tf)c?this.controller.Ta('Unable to connect to disk "'+d+'" (error '+c+": "+b+")",g):(this.R=!0,e=this);else if(c)this.controller.Ta('Unable to load disk "'+this.P+'" (error '+c+")",g);else try{if(0h&&0b.indexOf("0x")&&'["'!=b.substr(0,2)?JSON.parse(b.replace(/([a-z]+):/gm,'"$1":').replace(/\/\/[^\n]*/gm,"")):eval("("+b+")");if(m.length)if(1==m.length)ya(m[0]);else{this.Lb=m.length;this.Mb=m[0].length;this.Sb=m[0][0].length;var q=m[0][0][0];this.Hb=q&&q.length||512;for(b=a=0;b>2,x=q.pattern;void 0===x&&(x=q.pattern=0);var E=q.data;if(void 0===E){var B=q.bytes;if(void 0!== -B&&B.length){for(var g=r<<2,T=B.length;Tb&&(b=0);2E3>2,e=Array(d),g=0;g>2,e=a.data;a=a.pattern;for(var g=0;g>8&255;c[d++]=h>>16&255;c[d++]=h>>24&255}return c}function tm(a,b){var c=-1;if(a&&b>2,c=(d>((b&3)<<3)&255;return c} -f.write=function(a,b,c){if(this.Oe)return!1;if(b>2;b=(b&3)<<3;for(var h=d.length;h<=g;h++)d[h]=e;a.Qc?g=a.rd+a.Qc&&(a.Qc+=g-(a.rd+a.Qc)+1):(a.rd=g,a.Qc=1);d[g]=d[g]&~(255<>2;b=(b&3)<<3;for(var h=d.length;h<=g;h++)d[h]=e;a.Pc?g=a.rd+a.Pc&&(a.Pc+=g-(a.rd+a.Pc)+1):(a.rd=g,a.Pc=1);d[g]=d[g]&~(255<=this.A.length||q>=this.A[m].length||r>=this.A[m][q].length){c="sector (CHS="+m+":"+q+":"+r+") out of range ("+ -b+" changes applied)";b=-1;break}if(this.Oe){c="unable to modify write-protected disk";b=-1;break}e=h[g++];g=h[g++];h=e+g.length;if(m=this.A[m][q][r]){for(q=m.data.length;qb&&-2!=b&&this.controller.Ta("Unable to restore disk '"+this.P+": "+c);return b}; +b+" changes applied)";b=-1;break}if(this.Oe){c="unable to modify write-protected disk";b=-1;break}e=h[g++];g=h[g++];h=e+g.length;if(m=this.A[m][q][r]){for(q=m.data.length;qb&&-2!=b&&this.controller.Ta("Unable to restore disk '"+this.P+": "+c);return b}; f.toJSON=function(){var a=JSON.stringify(this.A,function(a,c){return"file"==a?void 0:c}),a=a.replace(/,"length":512/gm,"").replace(/,"pattern":0/gm,""),a=a.replace(/"(sector|length|data|pattern)":/gm,"$1:"),a=a.replace(/,"[^"]*":([0-9]+|true|false)/gm,""),a=a.replace(/(sector|length|data|pattern):/gm,'"$1":');return a=a.replace(/([\]}]),/gm,"$1,\n")}; -function um(a){Ta.call(this,"FDC",a,um,524288);this.dmaRead=this.Ej;this.dmaWrite=this.Fj;this.dmaFormat=this.Qj;this.aa=null;if(a.autoMount&&(this.aa=a.autoMount,"string"==typeof this.aa))try{this.aa=eval("("+a.autoMount+")")}catch(b){ya("FDC auto-mount error: "+b.message+" ("+a.autoMount+")"),this.aa=null}this.B=[];this.qa=!Ea("Mobi")&&window&&"FileReader"in window}bb(um);aa={}; -var vm={3:{Cd:3,Vd:0,name:aa.Rm},4:{Cd:2,Vd:1,name:aa.Pm},5:{Cd:9,Vd:7,name:aa.Zm},6:{Cd:9,Vd:7,name:aa.Km},7:{Cd:2,Vd:0,name:aa.Mm},8:{Cd:1,Vd:2,name:aa.Qm},10:{Cd:2,Vd:7,name:aa.Lm},13:{Cd:6,Vd:7,name:aa.xm},15:{Cd:3,Vd:0,name:aa.Om}};f=um.prototype; +function um(a){Ta.call(this,"FDC",a,um,524288);this.dmaRead=this.Dj;this.dmaWrite=this.Ej;this.dmaFormat=this.Rj;this.aa=null;if(a.autoMount&&(this.aa=a.autoMount,"string"==typeof this.aa))try{this.aa=eval("("+a.autoMount+")")}catch(b){ya("FDC auto-mount error: "+b.message+" ("+a.autoMount+")"),this.aa=null}this.B=[];this.qa=!Ea("Mobi")&&window&&"FileReader"in window}bb(um);aa={}; +var vm={3:{Cd:3,Ud:0,name:aa.Tm},4:{Cd:2,Ud:1,name:aa.Rm},5:{Cd:9,Ud:7,name:aa.an},6:{Cd:9,Ud:7,name:aa.Mm},7:{Cd:2,Ud:0,name:aa.Om},8:{Cd:1,Ud:2,name:aa.Sm},10:{Cd:2,Ud:7,name:aa.Nm},13:{Cd:6,Ud:7,name:aa.zm},15:{Cd:3,Ud:0,name:aa.Qm}};f=um.prototype; f.Tb=function(a,b,c){var d=this;switch(b){case "listDisks":return this.ya[b]=c,c.onchange=function(){var a=d.ya.descDisk,b=c.options[c.selectedIndex];if(a&&b){var h={};if(b=b.getAttribute("data-value"))try{h=eval("({"+b+"})")}catch(m){ya("FDC option error: "+m.message)}b=h.desc;void 0===b&&(b="");h=h.href;void 0!==h&&(b=''+b+"");a.innerHTML=b}},!0;case "descDisk":case "listDrives":return this.ya[b]=c,c.onchange=function(){var a=da(c.value,10);null!=a&&wm(d,a)}, !0;case "loadDrive":return this.ya[b]=c,c.onclick=function(){var a=d.ya.listDisks;a&&xm(d,a.options[a.selectedIndex].text,a.value)},!0;case "mountDrive":return this.qa?(this.ya[b]=c,c.addEventListener("change",function(){var a=c.children[0];a.children[1].disabled=!a.children[0].files.length}),c.onsubmit=function(a){if(a=a.currentTarget[1].files[0]){var b=a.name;xm(d,ha(b,!0),b,a)}return!1}):c.parentNode.removeChild(c),!0}return!1}; f.Hc=function(a,b,c,d){this.na=b;this.O=c;this.ga=d;this.pa=a;this.X=Ab(a,"ChipSet");ym(this);gc(b,this,zm);kc(b,this,Am);this.qa&&Bm(this,"Local Disk","?");Bm(this,"Remote Disk","??");Cm(this)||ob(this)}; f.pc=function(a,b){if(!b){if(!a||!this.restore){if(this.reset(),this.pa.rh){this.B=[];for(var c=0;ch.Ka.restore(B)&&(m=!1);m&&h.Ka&&void 0!==h.gb&&(h.qb=h.Ka.seek(h.Jb,h.kb,h.ub));m||(e=!1)}a.Y=b[c++]||0;a.sa=b[c]||0;return e}f.Yi=function(a){var b;a=this.A[a];if(void 0!==a){b={};for(var c in a)b[c]=a[c]}return b}; -f.vj=function(a,b,c){if(a.Ka){var d=a.Ka.info(),e=d[2],g=d[1]*e;if(b+c<=d[0]*g)return a.Jb=Math.floor(b/g),b%=g,a.kb=Math.floor(b/e),a.ub=b%e+1,a.Cb=c*d[3],a.wb=0,!0}return!1};function Cm(a,b){b||(a.fa=0);if(a.aa)for(var c in a.aa){var d=a.aa[c];if(d.name&&d.path){var e=c.charCodeAt(0)-65;if(0<=e&&eh.Ka.restore(B)&&(m=!1);m&&h.Ka&&void 0!==h.gb&&(h.qb=h.Ka.seek(h.Jb,h.kb,h.ub));m||(e=!1)}a.Y=b[c++]||0;a.sa=b[c]||0;return e}f.Yi=function(a){var b;a=this.A[a];if(void 0!==a){b={};for(var c in a)b[c]=a[c]}return b}; +f.uj=function(a,b,c){if(a.Ka){var d=a.Ka.info(),e=d[2],g=d[1]*e;if(b+c<=d[0]*g)return a.Jb=Math.floor(b/g),b%=g,a.kb=Math.floor(b/e),a.ub=b%e+1,a.Cb=c*d[3],a.wb=0,!0}return!1};function Cm(a,b){b||(a.fa=0);if(a.aa)for(var c in a.aa){var d=a.aa[c];if(d.name&&d.path){var e=c.charCodeAt(0)-65;if(0<=e&&ea.Lb||g[1]>a.Mb)&&(this.Ta('Diskette "'+c+'" too large for drive '+String.fromCharCode(65+a.hb)),b=null);b?(a.Ka=b,a.uj=c,a.we=d,Gm(this,c,d,b),g=b.info(),this.Y|=128,this.Ta('Mounted diskette "'+c+'" in drive '+String.fromCharCode(65+a.hb),a.he||e),a.$f=g[0],a.vf=g[1],a.wf=g[2]):a.Je=!1;a.he&&(a.he=!1,--this.fa||ob(this));wm(this,a.hb)}; -function Bm(a,b,c){if(a=a.ya.listDisks){for(var d=0;d=this.P&&(this.Ia&=-81,this.R=this.P=0);return c}; -f.Ml=function(a,b,c){this.ta()&&l(this,a,b,c,"DATA["+this.P+"]");this.P=vm[a].Cd){b=!1;this.R=0;a=Hm(this);var d,e,g,h,m=a&31;switch(m){case 3:Hm(this);Hm(this);Im(this);break;case 4:c=Hm(this);this.hb=c&3;d=this.A[this.hb];Im(this);Jm(this,(d.wb&-16777216)>>>24);break;case 5:case 6:c=Hm(this);b=c>>2&1;this.hb=c&3;d=this.A[this.hb];d.kb=b;c=d.Jb=Hm(this);e=Hm(this);g=d.ub=Hm(this);h=Hm(this);d.Cb=128<>2&1;this.hb=c&3;d= -this.A[this.hb];c=d.Jb;e=d.kb=b;g=d.ub=1;h=0;d.wb=0;d.Ka&&(d.qb=d.Ka.seek(d.Jb,d.kb,d.ub))?h=d.qb.length>>8:d.wb=72;Km(this,d,a,b,c,e,g,h);b=!0;break;case 13:c=Hm(this);b=c>>2&1;this.hb=c&3;d=this.A[this.hb];c=d.Jb;e=d.kb=b;g=1;h=Hm(this);d.Cb=128<>2&1,c=Hm(this),d.Jb+=c-d.Td,0>d.Jb&&(d.Jb=0),d.Jb>=d.Lb&&(d.Jb=d.Lb-1),d.Td=c,d.wb=32,d.Jb||(d.wb|=268435456),Im(this),b=!0}0a.Lb||g[1]>a.Mb)&&(this.Ta('Diskette "'+c+'" too large for drive '+String.fromCharCode(65+a.hb)),b=null);b?(a.Ka=b,a.tj=c,a.ve=d,Gm(this,c,d,b),g=b.info(),this.Y|=128,this.Ta('Mounted diskette "'+c+'" in drive '+String.fromCharCode(65+a.hb),a.ge||e),a.$f=g[0],a.vf=g[1],a.wf=g[2]):a.Je=!1;a.ge&&(a.ge=!1,--this.fa||ob(this));wm(this,a.hb)}; +function Bm(a,b,c){if(a=a.ya.listDisks){for(var d=0;d=this.P&&(this.Ia&=-81,this.R=this.P=0);return c}; +f.Ol=function(a,b,c){this.ta()&&l(this,a,b,c,"DATA["+this.P+"]");this.P=vm[a].Cd){b=!1;this.R=0;a=Hm(this);var d,e,g,h,m=a&31;switch(m){case 3:Hm(this);Hm(this);Im(this);break;case 4:c=Hm(this);this.hb=c&3;d=this.A[this.hb];Im(this);Jm(this,(d.wb&-16777216)>>>24);break;case 5:case 6:c=Hm(this);b=c>>2&1;this.hb=c&3;d=this.A[this.hb];d.kb=b;c=d.Jb=Hm(this);e=Hm(this);g=d.ub=Hm(this);h=Hm(this);d.Cb=128<>2&1;this.hb=c&3;d= +this.A[this.hb];c=d.Jb;e=d.kb=b;g=d.ub=1;h=0;d.wb=0;d.Ka&&(d.qb=d.Ka.seek(d.Jb,d.kb,d.ub))?h=d.qb.length>>8:d.wb=72;Km(this,d,a,b,c,e,g,h);b=!0;break;case 13:c=Hm(this);b=c>>2&1;this.hb=c&3;d=this.A[this.hb];c=d.Jb;e=d.kb=b;g=1;h=Hm(this);d.Cb=128<>2&1,c=Hm(this),d.Jb+=c-d.Sd,0>d.Jb&&(d.Jb=0),d.Jb>=d.Lb&&(d.Jb=d.Lb-1),d.Sd=c,d.wb=32,d.Jb||(d.wb|=268435456),Im(this),b=!0}0>>8);Jm(a,(b.wb&16711680)>>>16);var q=0;if(e!=b.Jb||g!=b.kb)q=h=1;c&128&&(g^=q,d||(q=0));Jm(a,e+q);Jm(a,g);Jm(a,h);Jm(a,m)}function Hm(a){var b=a.S[a.R];a.R++;return b}function Im(a){a.R=a.P=0}function Jm(a,b){a.S[a.P++]=b} -f.Ej=function(a,b,c){if(void 0===b||0>b){b=-1;var d=null,e=0;if(!a.wb&&a.Ka){do{if(a.qb&&(e=a.gb,0<=(b=tm(a.qb,a.gb++)))){d=a.qb;break}a.qb=a.Ka.seek(a.Jb,a.kb,a.ub);if(!a.qb){a.wb=1088;break}a.gb=0;Lm(a)}while(1)}c(b,!1,d,e)}else c(-1,!1)};f.Fj=function(a,b){return void 0!==b&&0<=b?Mm(a,b):-1}; -f.Qj=function(a,b){var c;if(void 0!==b&&0<=b)a:if(c=b,a.wb)c=-1;else{a.ad[a.Ee++]=c;if(a.Ee==a.ad.length){a.Jb=a.ad[0];a.kb=a.ad[1];a.ub=a.ad[2];a.Cb=128<Mm(a,a.Ri)){c=-1;break a}a.Pf++}a.Pf>=a.Ud&&(c=-1)}else c=-1;return c};function Mm(a,b){if(a.wb||!a.Ka)return-1;do{if(a.qb&&a.Ka.write(a.qb,a.gb++,b))break;a.qb=a.Ka.seek(a.Jb,a.kb,a.ub);if(!a.qb){a.wb=8256;b=-1;break}a.gb=0;Lm(a)}while(1);return b} -function Lm(a){a.ub++;a.ub>=a.wf+1&&(a.ub=1,a.kb++,a.kb>=a.vf&&(a.kb=0,a.Jb++))}var zm={1012:um.prototype.yk,1013:um.prototype.wk,1015:um.prototype.xk},Am={1010:um.prototype.Nl,1013:um.prototype.Ml,1015:um.prototype.Ll};Pa(function(){for(var a=jb(window.document,"pcjs","fdc"),b=0;bb){b=-1;var d=null,e=0;if(!a.wb&&a.Ka){do{if(a.qb&&(e=a.gb,0<=(b=tm(a.qb,a.gb++)))){d=a.qb;break}a.qb=a.Ka.seek(a.Jb,a.kb,a.ub);if(!a.qb){a.wb=1088;break}a.gb=0;Lm(a)}while(1)}c(b,!1,d,e)}else c(-1,!1)};f.Ej=function(a,b){return void 0!==b&&0<=b?Mm(a,b):-1}; +f.Rj=function(a,b){var c;if(void 0!==b&&0<=b)a:if(c=b,a.wb)c=-1;else{a.ad[a.De++]=c;if(a.De==a.ad.length){a.Jb=a.ad[0];a.kb=a.ad[1];a.ub=a.ad[2];a.Cb=128<Mm(a,a.Ri)){c=-1;break a}a.Pf++}a.Pf>=a.Td&&(c=-1)}else c=-1;return c};function Mm(a,b){if(a.wb||!a.Ka)return-1;do{if(a.qb&&a.Ka.write(a.qb,a.gb++,b))break;a.qb=a.Ka.seek(a.Jb,a.kb,a.ub);if(!a.qb){a.wb=8256;b=-1;break}a.gb=0;Lm(a)}while(1);return b} +function Lm(a){a.ub++;a.ub>=a.wf+1&&(a.ub=1,a.kb++,a.kb>=a.vf&&(a.kb=0,a.Jb++))}var zm={1012:um.prototype.zk,1013:um.prototype.xk,1015:um.prototype.yk},Am={1010:um.prototype.Pl,1013:um.prototype.Ol,1015:um.prototype.Nl};Pa(function(){for(var a=jb(window.document,"pcjs","fdc"),b=0;bq.Ka.restore(h)&&(T=!1),T&&void 0!==q.gb&&(q.qb=q.Ka.seek(q.Od,q.kb,q.ub+q.Of)));T||(e=!1);null!=a.sa&&1>=d&&(a.sa|=(g.type&3)<<(1-d<<1))}0<=a.hb&&(a.B=a.A[a.hb]); -return e}f.Yi=function(a){var b;a=this.A[a];if(void 0!==a){b={};for(var c in a)b[c]=a[c]}return b};function Vm(a,b,c){if(b){var d=0,e=0;null==c&&((d=b.Be[2])?e=b.Be[0]<<8|b.Be[1]:c=b.type);null==c||d||(d=Om[a.Ba][c][1],e=Om[a.Ba][c][0]);d&&((c=Om[a.Ba][b.type])&&e!=c[0]&&d!=c[1]&&a.Ta("Warning: drive parameters ("+e+","+d+") do not match drive type "+b.type+" ("+c[0]+","+c[1]+")"),b.Lb=e,b.Mb=d,null==b.Ka&&(b.Ka=new im(a,b,b.mode)))}} -f.vj=function(a,b,c){if(a.Ka){var d=a.Ka.info(),e=d[0];if(e){var g=d[2],h=d[1]*g;if(b+c<=e*h)return a.Od=Math.floor(b/h),b%=h,a.kb=Math.floor(b/g),a.ub=b%g,a.Cb=c*d[3],a.errorCode=0,!0}}return!1}; -function Tm(a,b){b||(a.fa=0);for(var c=0;c=this.P&&(this.R=this.P=0,this.Ia&=-15);return c}; -f.im=function(a,b,c){l(this,a,b,c,"DATA["+this.P+"]");this.P=a&&(this.Ia|=2,this.Ia&=-2,Wm(this))};f.Zk=function(a,b){var c=this.Ia;l(this,a,null,b,"STATUS",c);this.R=a.B.Hb?(a.Ia=128,Ym(a.B,function(b){0<=b?(Zm(a),a.Ia=88):(a.Ia=1,a.aa=16)},!1)):a.Ia=80));return d} -f.fk=function(a,b){return Xm(this,a,b)|Xm(this,a,b)<<8};function $m(a,b,c,d){if(a.B&&a.B.Cb>=a.B.Hb)if(0>an(a.B,c))a.Ia=1,a.aa=16;else if(1==a.B.gb||a.B.gb==a.B.Hb)a.ta(1048832)&&l(a,b,c,d,"DATA["+a.B.gb+"]"),1=a.B.Hb&&(a.Ia|=8))}f.tl=function(a,b,c){$m(this,a,b&255,c);$m(this,a,b>>8&255,c)};f.hk=function(a,b){var c=this.aa;l(this,a,null,b,"ERROR",c);return c};f.yl=function(a,b,c){l(this,a,b,c,"WPREC");this.Ra=b}; -f.ik=function(a,b){var c=this.da;l(this,a,null,b,"SECCNT",c);return c};f.wl=function(a,b,c){l(this,a,b,c,"SECCNT");this.da=b};f.jk=function(a,b){var c=this.Ha;l(this,a,null,b,"SECNUM",c);return c};f.xl=function(a,b,c){l(this,a,b,c,"SECNUM");this.Ha=b};f.ek=function(a,b){var c=this.Ea;l(this,a,null,b,"CYLLO",c);return c};f.sl=function(a,b,c){l(this,a,b,c,"CYLLO");this.Ea=b};f.dk=function(a,b){var c=this.Da;l(this,a,null,b,"CYLHI",c);return c};f.rl=function(a,b,c){l(this,a,b,c,"CYLHI");this.Da=b}; -f.gk=function(a,b){var c=this.ua;l(this,a,null,b,"DRVHD",c);return c};f.ul=function(a,b,c){l(this,a,b,c,"DRVHD");this.ua=b;this.Ia=this.A[this.ua&16?1:0]?this.Ia|80:this.Ia&-65};f.kk=function(a,b){var c=this.Ia;l(this,a,null,b,"STATUS",c);return c};f.ql=function(a,b,c){l(this,a,b,c,"COMMAND");this.La=b;this.X&&Dj(this.X,14);bn(this)};f.vl=function(a,b,c){l(this,a,b,c,"FDR");this.ja&4&&!(b&4)&&(this.aa=1);this.ja=b}; -function bn(a){var b=!1,c=a.La,d=a.ua&16?1:0,e=a.ua&15,g=a.Ea|(a.Da&3)<<8,h=a.Ha,m=a.da||256;a.hb=-1;a.B=null;a.aa=0;a.Ia=80;var q=a.A[d];q?(q.Od=g,q.kb=e,q.ub=h,q.Cb=m*q.Hb,c=144<=c?c:c&240,q.qb=null,q.gb=0,q.errorCode=0,a.hb=d,a.B=q):c=-1;switch(c&240){case 16:b=!0;break;case 32:a.Ia=128;Ym(q,function(b){0<=b&&a.X?(Zm(a),a.Ia=88):(a.Ia=1,a.aa=16)},!1);break;case 48:a.Ia=8;break;case 64:b=!0;break;case 112:b=!0;break;case 144:a.aa=1;b=!0;break;case 145:q.Mb=e+1,q.Sb=m,b=!0}b&&Zm(a)} +b&&(b=[]);for(d=0;dq.Ka.restore(h)&&(T=!1),T&&void 0!==q.gb&&(q.qb=q.Ka.seek(q.Nd,q.kb,q.ub+q.Of)));T||(e=!1);null!=a.sa&&1>=d&&(a.sa|=(g.type&3)<<(1-d<<1))}0<=a.hb&&(a.B=a.A[a.hb]); +return e}f.Yi=function(a){var b;a=this.A[a];if(void 0!==a){b={};for(var c in a)b[c]=a[c]}return b};function Vm(a,b,c){if(b){var d=0,e=0;null==c&&((d=b.Ae[2])?e=b.Ae[0]<<8|b.Ae[1]:c=b.type);null==c||d||(d=Om[a.Ba][c][1],e=Om[a.Ba][c][0]);d&&((c=Om[a.Ba][b.type])&&e!=c[0]&&d!=c[1]&&a.Ta("Warning: drive parameters ("+e+","+d+") do not match drive type "+b.type+" ("+c[0]+","+c[1]+")"),b.Lb=e,b.Mb=d,null==b.Ka&&(b.Ka=new im(a,b,b.mode)))}} +f.uj=function(a,b,c){if(a.Ka){var d=a.Ka.info(),e=d[0];if(e){var g=d[2],h=d[1]*g;if(b+c<=e*h)return a.Nd=Math.floor(b/h),b%=h,a.kb=Math.floor(b/g),a.ub=b%g,a.Cb=c*d[3],a.errorCode=0,!0}}return!1}; +function Tm(a,b){b||(a.fa=0);for(var c=0;c=this.P&&(this.R=this.P=0,this.Ia&=-15);return c}; +f.km=function(a,b,c){l(this,a,b,c,"DATA["+this.P+"]");this.P=a&&(this.Ia|=2,this.Ia&=-2,Wm(this))};f.$k=function(a,b){var c=this.Ia;l(this,a,null,b,"STATUS",c);this.R=a.B.Hb?(a.Ia=128,Ym(a.B,function(b){0<=b?(Zm(a),a.Ia=88):(a.Ia=1,a.aa=16)},!1)):a.Ia=80));return d} +f.Hj=function(a,b){return Xm(this,a,b)|Xm(this,a,b)<<8};function $m(a,b,c,d){if(a.B&&a.B.Cb>=a.B.Hb)if(0>an(a.B,c))a.Ia=1,a.aa=16;else if(1==a.B.gb||a.B.gb==a.B.Hb)a.ta(1048832)&&l(a,b,c,d,"DATA["+a.B.gb+"]"),1=a.B.Hb&&(a.Ia|=8))}f.vl=function(a,b,c){$m(this,a,b&255,c);$m(this,a,b>>8&255,c)};f.hk=function(a,b){var c=this.aa;l(this,a,null,b,"ERROR",c);return c};f.Al=function(a,b,c){l(this,a,b,c,"WPREC");this.Ra=b}; +f.jk=function(a,b){var c=this.da;l(this,a,null,b,"SECCNT",c);return c};f.yl=function(a,b,c){l(this,a,b,c,"SECCNT");this.da=b};f.kk=function(a,b){var c=this.Ha;l(this,a,null,b,"SECNUM",c);return c};f.zl=function(a,b,c){l(this,a,b,c,"SECNUM");this.Ha=b};f.fk=function(a,b){var c=this.Ea;l(this,a,null,b,"CYLLO",c);return c};f.ul=function(a,b,c){l(this,a,b,c,"CYLLO");this.Ea=b};f.ek=function(a,b){var c=this.Da;l(this,a,null,b,"CYLHI",c);return c};f.tl=function(a,b,c){l(this,a,b,c,"CYLHI");this.Da=b}; +f.gk=function(a,b){var c=this.ua;l(this,a,null,b,"DRVHD",c);return c};f.wl=function(a,b,c){l(this,a,b,c,"DRVHD");this.ua=b;this.Ia=this.A[this.ua&16?1:0]?this.Ia|80:this.Ia&-65};f.lk=function(a,b){var c=this.Ia;l(this,a,null,b,"STATUS",c);return c};f.sl=function(a,b,c){l(this,a,b,c,"COMMAND");this.La=b;this.X&&Dj(this.X,14);bn(this)};f.xl=function(a,b,c){l(this,a,b,c,"FDR");this.ja&4&&!(b&4)&&(this.aa=1);this.ja=b}; +function bn(a){var b=!1,c=a.La,d=a.ua&16?1:0,e=a.ua&15,g=a.Ea|(a.Da&3)<<8,h=a.Ha,m=a.da||256;a.hb=-1;a.B=null;a.aa=0;a.Ia=80;var q=a.A[d];q?(q.Nd=g,q.kb=e,q.ub=h,q.Cb=m*q.Hb,c=144<=c?c:c&240,q.qb=null,q.gb=0,q.errorCode=0,a.hb=d,a.B=q):c=-1;switch(c&240){case 16:b=!0;break;case 32:a.Ia=128;Ym(q,function(b){0<=b&&a.X?(Zm(a),a.Ia=88):(a.Ia=1,a.aa=16)},!1);break;case 48:a.Ia=8;break;case 64:b=!0;break;case 112:b=!0;break;case 144:a.aa=1;b=!0;break;case 145:q.Mb=e+1,q.Sb=m,b=!0}b&&Zm(a)} function Zm(a){!a.X||a.ja&2||Cj(a.X,14,120)} -function Wm(a){a.R=0;var b=cn(a),c=cn(a),d=c&32,e=d>>5,g=c&31,h=cn(a),m=cn(a),q=h<<2&768|m,r=h&63,x=cn(a),E=cn(a),B=a.A[e];B&&(B.Od=q,B.kb=g,B.ub=r,B.Cb=x*B.Hb);switch(b){case 3:dn(a,B?B.errorCode:4);en(a,c);en(a,h);en(a,m);en(a,0|d);b=-1;break;case 12:for(c=0;0<=(b=cn(a));)B&&cb?Ym(a,c):c(-1,!1)};f.Hj=function(a,b){return void 0!==b&&0<=b?an(a,b):-1}; -f.Rj=function(a,b){var c;void 0!==b&&0<=b?(c=b,a.gban(a,a.Ri)){c=-1;break a}a.Pf++}a.Pf>=a.Ud&&(c=-1)}else c=-1;return c}; +function Wm(a){a.R=0;var b=cn(a),c=cn(a),d=c&32,e=d>>5,g=c&31,h=cn(a),m=cn(a),q=h<<2&768|m,r=h&63,x=cn(a),E=cn(a),B=a.A[e];B&&(B.Nd=q,B.kb=g,B.ub=r,B.Cb=x*B.Hb);switch(b){case 3:dn(a,B?B.errorCode:4);en(a,c);en(a,h);en(a,m);en(a,0|d);b=-1;break;case 12:for(c=0;0<=(b=cn(a));)B&&cb?Ym(a,c):c(-1,!1)};f.Gj=function(a,b){return void 0!==b&&0<=b?an(a,b):-1}; +f.Sj=function(a,b){var c;void 0!==b&&0<=b?(c=b,a.gban(a,a.Ri)){c=-1;break a}a.Pf++}a.Pf>=a.Td&&(c=-1)}else c=-1;return c}; function fn(a,b,c){b.errorCode=4;if(b.Ka&&(b.qb=null,a.X)){b.errorCode=0;vj(a.X,3,a,"dmaRead",b);oj(a.X,3,function(a){a||0!=b.errorCode||(b.errorCode=4);c(b.errorCode?2:0)});return}c(b.errorCode?2:0)}function gn(a,b,c){b.errorCode=4;if(b.Ka&&(b.qb=null,a.X)){b.errorCode=0;vj(a.X,3,a,"dmaWrite",b);oj(a.X,3,function(a){a||(0==b.errorCode&&(b.errorCode=4),20==b.errorCode&&(b.errorCode=0));c(b.errorCode?2:0)});return}c(b.errorCode?2:0)} -function hn(a,b,c){b.errorCode=4;b.Ce&&b.Ce.length==b.Cb||(b.Ce=Array(b.Cb));b.gb=0;a.X?(b.errorCode=0,vj(a.X,3,a,"dmaWriteBuffer",b),oj(a.X,3,function(a){a||0!=b.errorCode||(b.errorCode=4);c(b.errorCode?2:0)})):c(b.errorCode?2:0)} -function Ym(a,b,c){var d=-1,e=null,g=0;if(a.errorCode)return b&&b(d,!1,e,g),d;var h=!1!==c?1:0;if(a.qb&&(g=a.gb,d=tm(a.qb,a.gb),a.gb+=h,0<=d))return e=a.qb,b&&b(d,!1,e,g),d;if(b){if(a.Ka)return a.Ka.seek(a.Od,a.kb,a.ub+a.Of,!1,function(c,q){(a.qb=c)?(e=c,g=a.gb=0,jn(a),d=tm(a.qb,a.gb),a.gb+=h):a.errorCode=20;b(d,q,e,g)}),d;a.errorCode=20;b(d,!1,e,g)}return d} -function an(a,b){if(a.errorCode)return-1;do{if(a.qb&&a.Ka.write(a.qb,a.gb++,b))break;a.Ka&&a.Ka.seek(a.Od,a.kb,a.ub+a.Of,!0,function(b){a.qb=b});if(!a.qb){a.errorCode=20;b=-1;break}a.gb=0;jn(a)}while(1);return b}function jn(a){a.ub++;var b=1-a.Of;a.ub>=a.Sb+b&&(a.ub=b,a.kb++,a.kb>=a.Mb&&(a.kb=0,a.Od++))}f.al=function(){var a=this.O.H&255;!(this.O.F>>8)&&128>8||!this.X)||(a=!(this.X.ic[0].td&64));return a?!0:!1}; -var Qm={800:Nm.prototype.Yk,801:Nm.prototype.Zk,802:Nm.prototype.Xk},Pm={496:Nm.prototype.fk,497:Nm.prototype.hk,498:Nm.prototype.ik,499:Nm.prototype.jk,500:Nm.prototype.ek,501:Nm.prototype.dk,502:Nm.prototype.gk,503:Nm.prototype.kk},Sm={800:Nm.prototype.im,801:Nm.prototype.lm,802:Nm.prototype.km,803:Nm.prototype.jm,807:Nm.prototype.Ii,811:Nm.prototype.Ii,815:Nm.prototype.Ii},Rm={496:Nm.prototype.tl,497:Nm.prototype.yl,498:Nm.prototype.wl,499:Nm.prototype.xl,500:Nm.prototype.sl,501:Nm.prototype.rl, -502:Nm.prototype.ul,503:Nm.prototype.ql,1014:Nm.prototype.vl};Pa(function(){for(var a=jb(window.document,"pcjs","hdc"),b=0;b=a.Sb+b&&(a.ub=b,a.kb++,a.kb>=a.Mb&&(a.kb=0,a.Nd++))}f.bl=function(){var a=this.O.H&255;!(this.O.F>>8)&&128>8||!this.X)||(a=!(this.X.ic[0].td&64));return a?!0:!1}; +var Qm={800:Nm.prototype.Zk,801:Nm.prototype.$k,802:Nm.prototype.Yk},Pm={496:Nm.prototype.Hj,497:Nm.prototype.hk,498:Nm.prototype.jk,499:Nm.prototype.kk,500:Nm.prototype.fk,501:Nm.prototype.ek,502:Nm.prototype.gk,503:Nm.prototype.lk},Sm={800:Nm.prototype.km,801:Nm.prototype.nm,802:Nm.prototype.mm,803:Nm.prototype.lm,807:Nm.prototype.Ii,811:Nm.prototype.Ii,815:Nm.prototype.Ii},Rm={496:Nm.prototype.vl,497:Nm.prototype.Al,498:Nm.prototype.yl,499:Nm.prototype.zl,500:Nm.prototype.ul,501:Nm.prototype.tl, +502:Nm.prototype.wl,503:Nm.prototype.sl,1014:Nm.prototype.xl};Pa(function(){for(var a=jb(window.document,"pcjs","hdc"),b=0;b>2;this.Ga=b.Zf;this.nb=new ed(this.O,7,"DBG");this.Ja=An;80186<=this.O.ra&&(this.Ja=An.slice(),this.Ja[15]=yn,80286<=this.O.ra&&(this.Ja[15]=zn,80386<=this.O.ra&&(this.Ma=8)));Ni(this,64,function(a){Dn(d,d.O.Ad,a[0])});Ni(this,128,function(a){Dn(d,d.O.wa,a[0],d.O.wa!==d.O.Ad)});Ni(this,4,function(a){if(a=a[0]){var b=En(d,a);if(void 0===b)d.V("invalid selector: "+a);else if(a= +f.Hc=function(a,b,c,d){this.na=b;this.O=c;this.pa=a;this.tb=Ab(a,"FDC");this.ib=Ab(a,"HDC");this.Y=Ab(a,"Mouse");this.Da=b.X>>2;this.Ga=b.Zf;this.ob=new ed(this.O,7,"DBG");this.Ja=An;80186<=this.O.ra&&(this.Ja=An.slice(),this.Ja[15]=yn,80286<=this.O.ra&&(this.Ja[15]=zn,80386<=this.O.ra&&(this.Ma=8)));Ni(this,64,function(a){Dn(d,d.O.Ad,a[0])});Ni(this,128,function(a){Dn(d,d.O.xa,a[0],d.O.xa!==d.O.Ad)});Ni(this,4,function(a){if(a=a[0]){var b=En(d,a);if(void 0===b)d.V("invalid selector: "+a);else if(a= Fn(d,b,2),d.V("dumpSel("+ga(a?a.ea:b)+"): %"+k(a?a.Zb:null,d.Da)),a){var c,b=!1;if(a.type&4096)a.type&2048?(c="code"+(a.type&512?",readable":",execonly"),a.type&1024&&(c+=",conforming")):(c="data"+(a.type&512?",writable":",readonly"),a.type&1024&&(c+=",expdown")),a.type&256&&(c+=",accessed");else{var m=Gn[a.type];m&&(c=m[0],b=m[1])}!c||a.zb&32768||(c+=",not present");d.V((b?"seg="+ga(a.Fa&65535)+" off="+ga(a.Va):"base="+k(a.Fa,d.Da)+" limit="+Hn(a.Va))+" type="+fa(a.type>>8)+" ("+c+") ext="+ga(a.ext& -65296)+" dpl="+fa(a.Bc))}}else d.V("no selector")});Ni(this,8,function(a){a:{if(a=a[0]){var b=En(d,a);if(void 0===b){d.V("invalid task selector: "+a);break a}a=Fn(d,b,2)}else a=d.O.Ya;d.V("dumpTSS("+ga(a?a.ea:b)+"): %"+k(a?a.Fa:null,d.Da));if(a){var b="",c=a.type&-513,m=256==c?4:8,q=256==c?In:Jn,r,x,E,B;for(B in q)r=q[B],x=a.Fa+r,E=rf(d.O,x)|rf(d.O,x+1)<<8,2304==c&&(E=E|rf(d.O,x+2)<<16|rf(d.O,x+3)<<24),b&&(b+="\n"),b+=ga(r)+" "+la(B+":",11)+k(E,m);if(2304==c)for(B=0,r=E>>>16;rB;){x=a.Fa+ -r;E=rf(d.O,x)|rf(d.O,x+1)<<8;x=2;c="";if(!x||4>=8;b+="\n"+ga(r)+" ports "+ga(B)+"-"+ga(B+15)+": "+c;B+=16;r+=2}d.V(b)}}});Ni(this,134217728,function(a){var b;(a=a[0])&&(b=En(d,a));if(void 0===b)d.V("invalid MCB");else for(d.V("dumpMCB("+ga(b)+")");b;){a=ln(d,0,b);var c=d.Wa(a,1),m=d.Jc(a,2),q=d.Jc(a,5);if(77!=c&&90!=c)break;d.V(Kn(0,b)+": '"+String.fromCharCode(c)+"' PID="+ga(m)+" LEN="+ga(q)+' "'+Ln(d,a,8)+'"');b+=1+q}});this.ja=null;Me(this.O, -65,this.dl.bind(this));this.qa=null;Me(this.O,104,this.el.bind(this));ob(this)};function Mn(a,b,c,d,e,g){b=Ln(a,b);var h=Fn(a,d),h=h?h.Va+1:0,m=(e?"_CODE":"_DATA")+k(c,2);g&&a.V(b+"!undefined "+(e?"code":"data")+"("+k(c,4)+")=#"+k(d,4)+" len "+k(h));c={};c[b+m]=0;Uj(a,d,0,h,c)} -function Nn(a,b,c,d){var e=a.Jc(b,2),g=a.Jc(b,2),h=a.pb(b,4),m=a.pb(b,4),q=ln(a,a.pb(b,4),a.Jc(b,2)),r=ln(a,a.pb(b,4),a.Jc(b,2)),g=a.Jc(b,2)||g;b=Ln(a,r).toUpperCase();q=Ln(a,q).toUpperCase();r=(c?"_CODE":"_DATA")+k(e,2);d&&a.V(b+"!"+q+"!undefined "+(c?"code":"data")+"("+k(e,4)+")="+k(g,4)+":"+k(h)+" len "+k(m));c={};c[q+r]=h;Uj(a,g,h,m,c)} -f.dl=function(a){var b=this.O,c=b.F&65535,d=b.D&65535,e=b.G&65535,g=b.H&65535,h=b.K&65535,m=b.J&65535,q=b.cb.ea;if(null==this.ja)return 79==c&&Ne(b,a,function(a){return function(){62342!=(b.F&65535)?(b.F=b.F&-65536|62342,a.V("INT 0x41 handling enabled"),a.ja=!0):(a.V("INT 0x41 monitoring enabled"),a.ja=!1)}}(this)),!0;switch(c){case 79:this.ja&&(b.F=b.F&-65536|62342);break;case 80:Mn(this,ln(this,m,q),d+1,e,!(h&1),this.ja);break;case 336:Nn(this,ln(this,b.D,g),!h,this.ja);break;default:this.ja&&this.V("INT 0x41: "+ -ga(c))}return!this.ja}; -f.el=function(a){var b=this.O,c=b.F&255,d=b.F>>8&255,e=b.J&65535,g=b.cb.ea;if(null==this.qa){if(67==d){if(609437257==b.pb((b.za.ea<<4)+10)||1111835735==b.pb((b.za.ea<<4)+95))return!0;Ne(b,a,function(a){return function(){62342!=(b.F&65535)?(b.F=b.F&-65536|62342,a.V("INT 0x68 handling enabled"),a.ja=a.qa=!0):(a.V("INT 0x68 monitoring enabled"),a.qa=!1)}}(this))}return!0}switch(d){case 67:this.qa&&(b.F=b.F&-65536|62342);break;case 68:this.qa&&(a=hd(b.za,this.Mj.bind(this)))&&(b.J=a[0],ud(b,a[1]));break; -case 80:32!=c&&(128>c||Nn(this,ln(this,e,g),!(c&1),this.qa));this.qa&&(b.F=b.F&-256|1);break;default:this.qa&&this.V("INT 0x68: "+fa(d))}return!this.qa};f.Mj=function(){var a=this.O,b=a.F&255;this.V("INT 0x68 callback: "+fa(b));5==b&&(a.G=a.K=0,a.F=a.F&-256|1);return!1}; +r;E=rf(d.O,x)|rf(d.O,x+1)<<8;x=2;c="";if(!x||4>=8;b+="\n"+ga(r)+" ports "+ga(B)+"-"+ga(B+15)+": "+c;B+=16;r+=2}d.V(b)}}});Ni(this,134217728,function(a){var b;(a=a[0])&&(b=En(d,a));if(void 0===b)d.V("invalid MCB");else for(d.V("dumpMCB("+ga(b)+")");b;){a=ln(d,0,b);var c=d.Wa(a,1),m=d.Zc(a,2),q=d.Zc(a,5);if(77!=c&&90!=c)break;d.V(Kn(0,b)+": '"+String.fromCharCode(c)+"' PID="+ga(m)+" LEN="+ga(q)+' "'+Ln(d,a,8)+'"');b+=1+q}});this.ja=null;Me(this.O, +48,this.el.bind(this));Me(this.O,65,this.fl.bind(this));this.sa=null;Me(this.O,104,this.gl.bind(this));ob(this)};function Mn(a,b,c,d,e,g){b=Ln(a,b);var h=Fn(a,d),h=h?h.Va+1:0,m=(e?"_CODE":"_DATA")+k(c,2);g&&a.V(b+"!undefined "+(e?"code":"data")+"("+k(c,4)+")=#"+k(d,4)+" len "+k(h));c={};c[b+m]=0;Uj(a,d,0,h,c)} +function Nn(a,b,c,d){var e=a.Zc(b,2),g=a.Zc(b,2),h=a.lb(b,4),m=a.lb(b,4),q=ln(a,a.lb(b,4),a.Zc(b,2));b=ln(a,a.lb(b,4),a.Zc(b,2));b=Ln(a,b).toUpperCase();var q=Ln(a,q).toUpperCase(),r=(c?"_CODE":"_DATA")+k(e,2);d&&a.V(b+"!"+q+"!undefined "+(c?"code":"data")+"("+k(e,4)+")="+k(g,4)+":"+k(h)+" len "+k(m));c={};c[q+r]=h;Uj(a,g,h,m,c)} +f.el=function(){var a=this.O;if(null!=this.ja&&2752554==a.F){var b=a.H&65535,c=a.K&65535,d=ln(this,u(a)+12,a.wa.ea);switch(this.lb(d)){case 336:Nn(this,ln(this,a.D,b),!c,this.ja)}}return!0}; +f.fl=function(a){var b=this.O,c=b.F&65535,d=b.D&65535,e=b.G&65535,g=b.H&65535,h=b.K&65535,m=b.J&65535,q=b.cb.ea;if(null==this.ja)return 79==c&&Ne(b,a,function(a){return function(){62342!=(b.F&65535)?(b.F=b.F&-65536|62342,a.V("INT 0x41 handling enabled"),a.ja=!0):(a.V("INT 0x41 monitoring enabled"),a.ja=!1)}}(this)),!0;switch(c){case 79:this.ja&&(b.F=b.F&-65536|62342);break;case 80:Mn(this,ln(this,m,q),d+1,e,!(h&1),this.ja);break;case 336:Nn(this,ln(this,b.D,g),!h,this.ja)}return!this.ja}; +f.gl=function(a){var b=this.O,c=b.F&255,d=b.F>>8&255,e=b.J&65535,g=b.cb.ea;if(null==this.sa){if(67==d){if(609437257==b.lb((b.Aa.ea<<4)+10)||1111835735==b.lb((b.Aa.ea<<4)+95))return!0;Ne(b,a,function(a){return function(){62342!=(b.F&65535)?(b.F=b.F&-65536|62342,a.V("INT 0x68 handling enabled"),a.ja=a.sa=!0):(a.V("INT 0x68 monitoring enabled"),a.sa=!1)}}(this))}return!0}switch(d){case 67:this.sa&&(b.F=b.F&-65536|62342);break;case 68:this.sa&&(a=hd(b.Aa,this.Nj.bind(this)))&&(b.J=a[0],ud(b,a[1]));break; +case 80:32!=c&&(128>c||Nn(this,ln(this,e,g),!(c&1),this.sa)),this.sa&&(b.F=b.F&-256|1)}return!this.sa};f.Nj=function(){var a=this.O;5==(a.F&255)&&(a.G=a.K=0,a.F=a.F&-256|1);return!1}; f.Tb=function(a,b,c){var d=this;switch(b){case "debugInput":return this.Na=this.ya[b]=c,c.onkeydown=function(a){var b;if(13==a.keyCode){b=c.value;c.value="";var h=On(d,b,!0),m;for(m in h)pn(d,h[m])}else 27==a.keyCode?c.value=b="":(38==a.keyCode?d.X>>0)+1;a.zb=g;a.type=h;a.ext=q;a.Zb=d;gd(a,!0,!0,!1)}}return a}f.ec=function(a,b,c){var d=a&&a.Sa;if(null==d&&(d=n,a)){var e=Fn(this,a.ea,a.type);e&&(b=a.Xa||0,c=c||1,d=e=e.Zb===n||e.Uc&&(b>>>0)+c>e.$b||!e.Uc&&(b>>>0)+c<=e.$b?e.Fa+b|0:n,a.Sa=d)}return d};f.Wa=function(a,b){var c=255,d=this.ec(a,!1,1);d!==n&&(c=rf(this.O,d)|0,b&&Qn(this,a,b));return c}; -f.nc=function(a,b){return a.dc?this.pb(a,b?4:0):this.Jc(a,b?2:0)};f.Jc=function(a,b){var c=65535,d=this.ec(a,!1,2);d!==n&&(c=rf(this.O,d)|rf(this.O,d+1)<<8,b&&Qn(this,a,b));return c};f.pb=function(a,b){var c=-1,d=this.ec(a,!1,4);d!==n&&(c=rf(this.O,d)|rf(this.O,d+1)<<8|rf(this.O,d+2)<<16|rf(this.O,d+3)<<24,b&&Qn(this,a,b));return c};f.rc=function(a,b,c){var d=this.ec(a,!0,1);d!==n&&(this.O.rc(d,b),c&&Qn(this,a,c),Oc(this.O,!0))}; -f.Fb=function(a,b,c){var d=this.ec(a,!0,2);d!==n&&(this.O.Fb(d,b),c&&Qn(this,a,c),Oc(this.O,!0))};function ln(a,b,c,d,e,g,h){return Rn(a,{},b,c,d,e,g,h)}function Rn(a,b,c,d,e,g,h,m){b.Xa=c||0;b.ea=d;b.Sa=e;b.type=g||(Pn(a)?2:1);b.dc=null!=h?h:a.O&&4==a.O.za.ha;b.lc=null!=m?m:a.O&&4==a.O.za.Zc;b.Wd=!1;return b}function Sn(a){return[a.Xa,a.ea,a.Sa,a.Wd,a.dc,a.lc,a.De,a.Dd]}function Tn(a){return{Xa:a[0],ea:a[1],Sa:a[2],Wd:a[3],dc:a[4],lc:a[5],De:a[6],Dd:a[7]}} -function Un(a,b,c){if(null!=b.ea&&(a=Fn(a,b.ea,b.type))){var d=b.Xa&a.Ga;if(!a.Uc){if(d>>>0>=a.$b)return!1}else if(d>>>0>>0)+1;a.zb=g;a.type=h;a.ext=q;a.Zb=d;gd(a,!0,!0,!1)}}return a}f.ec=function(a,b,c){var d=a&&a.Sa;if(null==d&&(d=n,a)){var e=Fn(this,a.ea,a.type);e&&(b=a.Xa||0,c=c||1,d=e=e.Zb===n||e.Tc&&(b>>>0)+c>e.$b||!e.Tc&&(b>>>0)+c<=e.$b?e.Fa+b|0:n,a.Sa=d)}return d};f.Wa=function(a,b){var c=255,d=this.ec(a,!1,1);d!==n&&(c=rf(this.O,d)|0,b&&Qn(this,a,b));return c}; +f.nc=function(a,b){return a.dc?this.lb(a,b?4:0):this.Zc(a,b?2:0)};f.Zc=function(a,b){var c=65535,d=this.ec(a,!1,2);d!==n&&(c=rf(this.O,d)|rf(this.O,d+1)<<8,b&&Qn(this,a,b));return c};f.lb=function(a,b){var c=-1,d=this.ec(a,!1,4);d!==n&&(c=rf(this.O,d)|rf(this.O,d+1)<<8|rf(this.O,d+2)<<16|rf(this.O,d+3)<<24,b&&Qn(this,a,b));return c};f.rc=function(a,b,c){var d=this.ec(a,!0,1);d!==n&&(this.O.rc(d,b),c&&Qn(this,a,c),Oc(this.O,!0))}; +f.Fb=function(a,b,c){var d=this.ec(a,!0,2);d!==n&&(this.O.Fb(d,b),c&&Qn(this,a,c),Oc(this.O,!0))};function ln(a,b,c,d,e,g,h){return Rn(a,{},b,c,d,e,g,h)}function Rn(a,b,c,d,e,g,h,m){b.Xa=c||0;b.ea=d;b.Sa=e;b.type=g||(Pn(a)?2:1);b.dc=null!=h?h:a.O&&4==a.O.Aa.ha;b.lc=null!=m?m:a.O&&4==a.O.Aa.Yc;b.Vd=!1;return b}function Sn(a){return[a.Xa,a.ea,a.Sa,a.Vd,a.dc,a.lc,a.Ce,a.Dd]}function Tn(a){return{Xa:a[0],ea:a[1],Sa:a[2],Vd:a[3],dc:a[4],lc:a[5],Ce:a[6],Dd:a[7]}} +function Un(a,b,c){if(null!=b.ea&&(a=Fn(a,b.ea,b.type))){var d=b.Xa&a.Ga;if(!a.Tc){if(d>>>0>=a.$b)return!1}else if(d>>>0m?null!=h?(g= -Xn(a,b,void 0),m=null):(m=Xn(a,b,void 0),null==m&&(g=null)):(h=Xn(a,b.substring(0,m),void 0),g=Xn(a,b.substring(m+1),void 0),m=null)}null!=g&&(e=ln(a,g,h,m,c),d||Un(a,e,!0)||(a.V("invalid offset: "+Yn(e)),e=null));return e}function Zn(a,b,c){c&&(c=c.match(/(['"])(.*?)\1/))&&(b.Jj=On(a,b.tj=c[2]))}function Qn(a,b,c){c=c||1;null!=b.Sa&&(b.Sa+=c);null!=b.ea&&(b.Xa+=c,Un(a,b)||(b.Xa=0,b.Sa=null))}function Kn(a,b,c){return null!=b?k(b,4)+":"+k(a,a&-65536||c?8:4):k(a)} +Xn(a,b,void 0),m=null):(m=Xn(a,b,void 0),null==m&&(g=null)):(h=Xn(a,b.substring(0,m),void 0),g=Xn(a,b.substring(m+1),void 0),m=null)}null!=g&&(e=ln(a,g,h,m,c),d||Un(a,e,!0)||(a.V("invalid offset: "+Yn(e)),e=null));return e}function Zn(a,b,c){c&&(c=c.match(/(['"])(.*?)\1/))&&(b.Kj=On(a,b.sj=c[2]))}function Qn(a,b,c){c=c||1;null!=b.Sa&&(b.Sa+=c);null!=b.ea&&(b.Xa+=c,Un(a,b)||(b.Xa=0,b.Sa=null))}function Kn(a,b,c){return null!=b?k(b,4)+":"+k(a,a&-65536||c?8:4):k(a)} function Yn(a){var b="";switch(a.type){case 1:case 3:b="&";break;case 2:b="#";break;case 4:b="%"}return null==a.ea?"%"+k(a.Sa):b+Kn(a.Xa,a.ea,a.lc)}function Ln(a,b,c){var d="";for(c=c||256;d.length>>=a.O.Qa;g=1}a.V("blkid "+(d?"linear ":"physical")+" blkaddr used size type");a.V("-------- --------- -------- ------ ------ ----");c=-1;for(var h=0;g--;)d=b[e],d.type==c?h++||a.V("..."):(c=d.type,h=sc[c],6==c&&(d=d.fe,h+=" -> "+sc[d.type]),d&&a.V(k(d.id)+" %"+k(e<>>=a.O.Qa;g=1}a.V("blkid "+(d?"linear ":"physical")+" blkaddr used size type");a.V("-------- --------- -------- ------ ------ ----");c=-1;for(var h=0;g--;)d=b[e],d.type==c?h++||a.V("..."):(c=d.type,h=sc[c],6==c&&(d=d.ee,h+=" -> "+sc[d.type]),d&&a.V(k(d.id)+" %"+k(e<c&&(c=ua(vn,a.substr(b,2))));return c} +function on(a,b){a.ga=a;a.jc=a.Mj=1073741824;a.Oa=null;a.Ra=[];var c=On(a,b.replace("keys","key").replace("kbd","keyboard"),!1,"|");if(c.length)for(var d in xn)0<=ua(c,d)&&(a.jc|=xn[d],a.V(d+" messages enabled"));nn(a)}function Ni(a,b,c){for(var d in xn)if(b==xn[d]){a.Ra[d]=c;break}}function $n(a,b){var c;a=a.toUpperCase();null==b?c=ua(vn,a):(c=ua(vn,a.substr(b,3)),0>c&&(c=ua(vn,a.substr(b,2))));return c} function ao(a,b){var c=0,d=bo(a,b);if(void 0!==d)switch(b){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:c=2;break;case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 22:case 16:case 17:case 18:case 19:case 20:case 21:c=4;break;case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 56:c=8;break;case 23:c=a.Ma}return c?k(d,c):"??"} -function bo(a,b){var c;if(0<=b){var d=a.O;switch(b){case 0:c=d.F&255;break;case 1:c=d.G&255;break;case 2:c=d.H&255;break;case 3:c=d.D&255;break;case 4:c=d.F>>8&255;break;case 5:c=d.G>>8&255;break;case 6:c=d.H>>8&255;break;case 7:c=d.D>>8&255;break;case 8:c=d.F&65535;break;case 9:c=d.G&65535;break;case 10:c=d.H&65535;break;case 11:c=d.D&65535;break;case 12:c=u(d)&65535;break;case 13:c=d.L&65535;break;case 14:c=d.K&65535;break;case 15:c=d.J&65535;break;case 22:c=v(d)&65535;break;case 23:c=zd(d);break; -case 16:c=d.cb.ea;break;case 17:c=d.za.ea;break;case 18:c=d.xa.ea;break;case 19:c=d.xb.ea;break;default:if(80286==a.O.ra)32==b&&(c=d.mb);else if(80386<=a.O.ra)switch(b){case 24:c=d.F;break;case 25:c=d.G;break;case 26:c=d.H;break;case 27:c=d.D;break;case 28:c=u(d);break;case 29:c=d.L;break;case 30:c=d.K;break;case 31:c=d.J;break;case 32:c=d.mb;break;case 33:c=d.Ki;break;case 34:c=d.de;break;case 35:c=d.Kd;break;case 20:c=d.Ob.ea;break;case 21:c=d.Pb.ea;break;case 56:c=v(d)}}}return c} +function bo(a,b){var c;if(0<=b){var d=a.O;switch(b){case 0:c=d.F&255;break;case 1:c=d.G&255;break;case 2:c=d.H&255;break;case 3:c=d.D&255;break;case 4:c=d.F>>8&255;break;case 5:c=d.G>>8&255;break;case 6:c=d.H>>8&255;break;case 7:c=d.D>>8&255;break;case 8:c=d.F&65535;break;case 9:c=d.G&65535;break;case 10:c=d.H&65535;break;case 11:c=d.D&65535;break;case 12:c=u(d)&65535;break;case 13:c=d.L&65535;break;case 14:c=d.K&65535;break;case 15:c=d.J&65535;break;case 22:c=v(d)&65535;break;case 23:c=vd(d);break; +case 16:c=d.cb.ea;break;case 17:c=d.Aa.ea;break;case 18:c=d.wa.ea;break;case 19:c=d.xb.ea;break;default:if(80286==a.O.ra)32==b&&(c=d.nb);else if(80386<=a.O.ra)switch(b){case 24:c=d.F;break;case 25:c=d.G;break;case 26:c=d.H;break;case 27:c=d.D;break;case 28:c=u(d);break;case 29:c=d.L;break;case 30:c=d.K;break;case 31:c=d.J;break;case 32:c=d.nb;break;case 33:c=d.Ki;break;case 34:c=d.ce;break;case 35:c=d.Jd;break;case 20:c=d.Ob.ea;break;case 21:c=d.Pb.ea;break;case 56:c=v(d)}}}return c} function co(a,b){b=Wn(a,b);for(var c=0,d,e;0<=(c=b.indexOf("%",c));)e=$n(b,c+1),0<=e&&(b=b.substr(0,c)+ao(a,e)+b.substr(c+1+vn[e].length)),c++;for(c=0;0<=(c=b.indexOf("#",c));)e=b.substr(c+1,2),d=da(e,16),null!=d&&32<=d&&128>d?(d=e+" '"+String.fromCharCode(d)+"'",b=b.replace("#"+e,d),c+=d.length):c++;for(c=0;0<=(c=b.indexOf("$",c));)if(e=b.substr(c+1,9),d=Vn(a,e))d=e+' "'+Ln(a,d)+'"',b=b.replace("$"+e,d),c+=d.length;for(c=0;0<=(c=b.indexOf("^",c));)if(e=b.substr(c+1,9),d=Vn(a,e))Qn(a,d),d=e+' "'+ -Ln(a,d,11)+'"',b=b.replace("^"+e,d),c+=d.length;return b}f=kn.prototype;f.message=function(a,b){b&&(a+=" @"+Kn(v(this.O),this.O.za.ea)+" (%"+k(this.O.Aa)+")");if(!this.Oa||a!=this.Oa)if(this.V(a),this.Oa=a,this.O){this.jc&-2147483648&&this.Xb();var c=this.O;c.Z.Ue=0;c.ib-=c.A;c.A=0;Oc(c)}}; -function si(a,b,c,d){var e,g;if(!d&&(d=a.ta(1)&&0>rn.indexOf(b),!d)){var h=qn[b];h&&(d=a.ta(h)?!0:524288==h&&a.ta(h=1048576))}d&&(e=a.O.F>>8&255,g=a.O.H&255,33==b&&11==e||524288==h&&128<=g||1048576==h&&128>g)&&(d=!1);d&&((h=(h=vb[b])&&h[e]||"")&&(h=" "+co(a,h)),a.message("INT "+fa(b)+": AH="+fa(e)+" @"+Kn(c-2-a.O.za.Fa,a.O.za.ea)+h));return d} -function kb(a,b,c,d,e,g,h,m){m|=256;if(null==e||(a.jc&m)==m)m=null,null!=e&&(m=a.O.za.ea,e-=a.O.za.Fa),a.message(b.Pd+"."+(null!=d?"outPort":"inPort")+"("+ga(c)+","+(g?g:"unknown")+(null!=d?","+fa(d):"")+")"+(null!=h?": "+fa(h):"")+(null!=e?" @"+Kn(e,m):""))}f.$k=function(){this.V("Type ? for help with PCjs Debugger commands");this.gd();if(this.Za){var a=On(this,this.Za);this.Za=null;for(var b in a)pn(this,a[b])}}; -function nn(a){var b;if(Af(a)){if(!a.Ca||!a.Ca.length){a.Ca=Array(1E3);for(b=0;brn.indexOf(b),!d)){var h=qn[b];h&&(d=a.ta(h)?!0:524288==h&&a.ta(h=1048576))}d&&(e=a.O.F>>8&255,g=a.O.H&255,33==b&&11==e||524288==h&&128<=g||1048576==h&&128>g)&&(d=!1);d&&((h=(h=vb[b])&&h[e]||"")&&(h=" "+co(a,h)),a.message("INT "+fa(b)+": AH="+fa(e)+" @"+Kn(c-2-a.O.Aa.Fa,a.O.Aa.ea)+h));return d} +function kb(a,b,c,d,e,g,h,m){m|=256;if(null==e||(a.jc&m)==m)m=null,null!=e&&(m=a.O.Aa.ea,e-=a.O.Aa.Fa),a.message(b.Od+"."+(null!=d?"outPort":"inPort")+"("+ga(c)+","+(g?g:"unknown")+(null!=d?","+fa(d):"")+")"+(null!=h?": "+fa(h):"")+(null!=e?" @"+Kn(e,m):""))}f.al=function(){this.V("Type ? for help with PCjs Debugger commands");this.gd();if(this.Za){var a=On(this,this.Za);this.Za=null;for(var b in a)pn(this,a[b])}}; +function nn(a){var b;if(Af(a)){if(!a.Ca||!a.Ca.length){a.Ca=Array(1E3);for(b=0;b>>c.Qa],!1)}a.sa=["br"];if(void 0!==a.fa)for(b=1;b>>c.Qa],!0);a.fa=["bw"];a.Ua=0} -f.Qd=function(a,b,c){var d=!0;c||jo(this,a,b,!1,!0);if(a!=this.A){var e=this.ec(b);if(e==n)this.V("invalid address: "+Yn(b)),d=!1;else{var g=this.na;g.wa[e>>>g.Qa].Qd(e&g.A,a==this.fa);b.ea=null}}d&&(a.push(b),c?(null!=b.Sa&&(b.ea=null),b.Wd=!0):(ko(this,a,a.length-1),nn(this)));return d}; -function jo(a,b,c,d,e){for(var g=!1,h=lo(a,a.ec(c)),m=1;m>>c.Qa],b==a.fa));nn(a);break}}return g}function mo(a,b){for(var c=1;c>>c.Qa],!1)}a.qa=["br"];if(void 0!==a.fa)for(b=1;b>>c.Qa],!0);a.fa=["bw"];a.Ua=0} +f.Pd=function(a,b,c){var d=!0;c||jo(this,a,b,!1,!0);if(a!=this.A){var e=this.ec(b);if(e==n)this.V("invalid address: "+Yn(b)),d=!1;else{var g=this.na;g.xa[e>>>g.Qa].Pd(e&g.A,a==this.fa);b.ea=null}}d&&(a.push(b),c?(null!=b.Sa&&(b.ea=null),b.Vd=!0):(ko(this,a,a.length-1),nn(this)));return d}; +function jo(a,b,c,d,e){for(var g=!1,h=lo(a,a.ec(c)),m=1;m>>c.Qa],b==a.fa));nn(a);break}}return g}function mo(a,b){for(var c=1;c=tn.length&&(q=a.Wa(b,1),h=Cn[r-tn.length][q>>3&7]);var r=tn[h[0]],x=h.length-1,E="";if(164<=g&&167>=g||170<=g&&175>=g)x=0,b.dc&&"W"==r.slice(-1)&&(r=r.slice(0,-1)+"D");for(var g=null,B=!0,T=1;T<=x;T++){var J,I;J="";I=h[T];if(void 0!==I){null==g&&(g=I>> -14);var U=I&15;if(0!=U)if(15==U)B=!1;else{var N=I&240;if(128<=N)if(0>q&&(q=a.Wa(b,1)),160>N){J=a;var N=x,U=b,W="",ca=q>>6,va=q&7;if(3>ca){var La=void 0;if(!ca&&(!U.lc&&6==va||U.lc&&5==va))ca=2;else{if(U.lc)if(4!=va)va+=8;else{var W=J,La=ca,Ma=U,Za=W.Wa(Ma,1),Na=Za>>6,rb=Za>>3&7,Za=Za&7,oa="";if(La||5!=Za)oa=wn[Za+8];4!=rb&&(oa&&(oa+="+"),oa+=wn[rb+8],Na&&(oa+="*"+(1<>24,W+="-"+k(-La,2)):W+= -"+"+k(La,2)):2==ca&&(W&&(W+="+"),U.lc?(La=J.pb(U,4),W+=k(La)):(La=J.Jc(U,2),W+=k(La,4)));W="["+W+"]";if(1==N){J="";I&=15;4==I&&(I=U.dc?5:3);switch(I){case 7:J="FAR";break;case 1:J="BYTE";break;case 3:J="WORD";break;case 5:J="DWORD"}J&&(W=J+" "+W)}}else W=oo(J,va,I,U);J=W}else J=160==N?oo(a,q&7,I,b):oo(a,q>>3&7,I,b);else if(16==N)J="1";else if(0==N){J=a;U=I;N=b;I=" ";switch(U&15){case 1:U&12288&&(I=k(J.Wa(N,1),2));break;case 2:I=k(J.Wa(N,1)<<24>>24,N.dc?8:4);break;case 4:case 8:if(N.dc){I=k(J.pb(N, -4));break}case 3:I=k(J.Jc(N,2),4);break;case 7:N=ln(J,J.nc(N,!0),J.Jc(N,2),null,N.type,N.dc,N.lc);I=Yn(N);J=po(J,N);J[0]&&(I+=" ("+J[0]+")");break;default:I="imm("+ga(U)+")"}J=I}else 32==N?(b.lc?(J=8,I=a.pb(b,4)):(J=4,I=a.Jc(b,2)),J="["+k(I,J)+"]"):48==N?(J=1==U?a.Wa(b,1)<<24>>24:a.nc(b,!0),I=b.Xa+J&(b.dc?-1:65535),J=k(I,b.dc?8:4),I=po(a,ln(a,I,b.ea)),I[0]&&(J+=" ("+I[0]+")")):96==N?J=oo(a,(I&3840)>>8,I,b):112==N?J=oo(a,(I&3840)>>8,192,b):64==N?J="DS:[SI]":80==N&&(J="ES:[DI]");if(!J||!J.length){E= +14);var U=I&15;if(0!=U)if(15==U)B=!1;else{var N=I&240;if(128<=N)if(0>q&&(q=a.Wa(b,1)),160>N){J=a;var N=x,U=b,W="",ca=q>>6,va=q&7;if(3>ca){var La=void 0;if(!ca&&(!U.lc&&6==va||U.lc&&5==va))ca=2;else{if(U.lc)if(4!=va)va+=8;else{var W=J,La=ca,Ma=U,Za=W.Wa(Ma,1),Na=Za>>6,sb=Za>>3&7,Za=Za&7,oa="";if(La||5!=Za)oa=wn[Za+8];4!=sb&&(oa&&(oa+="+"),oa+=wn[sb+8],Na&&(oa+="*"+(1<>24,W+="-"+k(-La,2)):W+= +"+"+k(La,2)):2==ca&&(W&&(W+="+"),U.lc?(La=J.lb(U,4),W+=k(La)):(La=J.Zc(U,2),W+=k(La,4)));W="["+W+"]";if(1==N){J="";I&=15;4==I&&(I=U.dc?5:3);switch(I){case 7:J="FAR";break;case 1:J="BYTE";break;case 3:J="WORD";break;case 5:J="DWORD"}J&&(W=J+" "+W)}}else W=oo(J,va,I,U);J=W}else J=160==N?oo(a,q&7,I,b):oo(a,q>>3&7,I,b);else if(16==N)J="1";else if(0==N){J=a;U=I;N=b;I=" ";switch(U&15){case 1:U&12288&&(I=k(J.Wa(N,1),2));break;case 2:I=k(J.Wa(N,1)<<24>>24,N.dc?8:4);break;case 4:case 8:if(N.dc){I=k(J.lb(N, +4));break}case 3:I=k(J.Zc(N,2),4);break;case 7:N=ln(J,J.nc(N,!0),J.Zc(N,2),null,N.type,N.dc,N.lc);I=Yn(N);J=po(J,N);J[0]&&(I+=" ("+J[0]+")");break;default:I="imm("+ga(U)+")"}J=I}else 32==N?(b.lc?(J=8,I=a.lb(b,4)):(J=4,I=a.Zc(b,2)),J="["+k(I,J)+"]"):48==N?(J=1==U?a.Wa(b,1)<<24>>24:a.nc(b,!0),I=b.Xa+J&(b.dc?-1:65535),J=k(I,b.dc?8:4),I=po(a,ln(a,I,b.ea)),I[0]&&(J+=" ("+I[0]+")")):96==N?J=oo(a,(I&3840)>>8,I,b):112==N?J=oo(a,(I&3840)>>8,192,b):64==N?J="DS:[SI]":80==N&&(J="ES:[DI]");if(!J||!J.length){E= "INVALID";break}0a.O.ra)return"??";b+=16}else if(208==e)b+=32;else if(224==e)b+=40;else if(240==e)b+=48;else if(a=c&15,3<=a&&(8>b&&(b+=8),5==a||4==a&&d.dc))b+=16;return vn[b]} function ro(a,b){var c;switch(b){case "V":c=bf(a.O);break;case "D":c=a.O.ca&1024;break;case "I":c=a.O.ca&512;break;case "T":c=a.O.ca&256;break;case "S":c=af(a.O);break;case "Z":c=$e(a.O);break;case "A":c=Ze(a.O);break;case "P":c=Ye(a.O);break;case "C":c=Xe(a.O);break;default:c=0}return b+(c?"1":"0")+" "}function Hn(a){return k(a,a&-65536?8:4)}function so(a,b){8<=b&&15>=b&&4a.O.ra&&(d="\n"+d,c+=e,e="");c+="\n"+to(a,a.O.za,b)+" ";80386<=a.O.ra&&(e+="\n",c+=to(a,a.O.Ob,b)+" "+to(a,a.O.Pb,b)+"\n");c+=uo(a,"LD",a.O.Dc.ea,a.O.Dc.Fa,a.O.Dc.Fa+a.O.Dc.Va)+" "+uo(a,"GD",null,a.O.bd,a.O.Rd)+" "+uo(a, -"ID",null,a.O.cd,a.O.Sd)+" ";c=c+(d+" "+e)+so(a,32);80386<=a.O.ra&&(c+=so(a,34)+so(a,35))}else 80386<=a.O.ra&&(c+=to(a,a.O.Ob,b)+" "+to(a,a.O.Pb,b)+" ");return c+=so(a,23)+ro(a,"V")+ro(a,"D")+ro(a,"I")+ro(a,"T")+ro(a,"S")+ro(a,"Z")+ro(a,"A")+ro(a,"P")+ro(a,"C")}var wo={"||":0,"&&":1,"|":2,"^":3,"&":4,"!=":5,"==":5,">=":6,">":6,"<=":6,"<":6,">>>":7,">>":7,"<<":7,"-":8,"+":8,"%":9,"/":9,"*":9}; +function vo(a,b){var c;void 0===b&&(b=Pn(a));c=so(a,8)+so(a,11)+so(a,9)+so(a,10)+(4a.O.ra&&(d="\n"+d,c+=e,e="");c+="\n"+to(a,a.O.Aa,b)+" ";80386<=a.O.ra&&(e+="\n",c+=to(a,a.O.Ob,b)+" "+to(a,a.O.Pb,b)+"\n");c+=uo(a,"LD",a.O.Dc.ea,a.O.Dc.Fa,a.O.Dc.Fa+a.O.Dc.Va)+" "+uo(a,"GD",null,a.O.bd,a.O.Qd)+" "+uo(a, +"ID",null,a.O.cd,a.O.Rd)+" ";c=c+(d+" "+e)+so(a,32);80386<=a.O.ra&&(c+=so(a,34)+so(a,35))}else 80386<=a.O.ra&&(c+=to(a,a.O.Ob,b)+" "+to(a,a.O.Pb,b)+" ");return c+=so(a,23)+ro(a,"V")+ro(a,"D")+ro(a,"I")+ro(a,"T")+ro(a,"S")+ro(a,"Z")+ro(a,"A")+ro(a,"P")+ro(a,"C")}var wo={"||":0,"&&":1,"|":2,"^":3,"&":4,"!=":5,"==":5,">=":6,">":6,"<=":6,"<":6,">>>":7,">>":7,"<<":7,"-":8,"+":8,"%":9,"/":9,"*":9}; function xo(a,b,c){for(c=c||-1;c--&&b.length;){var d=b.pop();if(2>a.length)return!1;var e=a.pop(),g=a.pop();switch(d){case "*":d=g*e;break;case "/":if(!e)return!1;d=g/e;break;case "%":if(!e)return!1;d=g%e;break;case "+":d=g+e;break;case "-":d=g-e;break;case "<<":d=g<>":d=g>>e;break;case ">>>":d=g>>>e;break;case "<":d=g":d=g>e?1:0;break;case ">=":d=g>=e?1:0;break;case "==":d=g==e?1:0;break;case "!=":d=g!=e?1:0;break;case "&":d=g&e;break; case "^":d=g^e;break;case "|":d=g|e;break;case "&&":d=g&&e?1:0;break;case "||":d=g||e?1:0;break;default:return!1}a.push(d|0)}return!0} function Xn(a,b,c){var d;if(b){b=Wn(a,b);for(var e=0,g=!1,h=b,m=[],q=[],r=b.split(/(\|\||&&|\||^|&|!=|==|>=|>>>|>>|>|<=|<<|<|-|\+|%|\/|\*)/);ec?(a.V("out of data at address "+Yn(b)),x=!0):(a.rc(b,c,1),r++)})})(a,h);a.V(r+ +function Fo(a,b){if(b[1]&&"?"!=b[1]){var c="json"==b[1],d,e=0,g=0,h=c?{}:Vn(a,b[1],32);if(h&&(d=En(a,b[2],"drive #"),void 0!==d)){if(!c){e=En(a,b[3],"sector #");if(void 0===e)return;g=En(a,b[4],"# of sectors");void 0===g&&(g=1)}var m=a.tb;2<=d&&a.ib&&(d-=2,m=a.ib);if(m){var q=m.Yi(d);if(q)if(q.Ka)if(c)Bo(a),a.V(q.Ka.toJSON());else if(m.uj(q,e,g)){for(var r=0,x=!1,c=Yn(h);!x&&0c?(a.V("out of data at address "+Yn(b)),x=!0):(a.rc(b,c,1),r++)})})(a,h);a.V(r+ " bytes read at "+c)}else a.V("sector "+e+" request out of range");else a.V("drive "+d+" not loaded");else a.V("invalid drive: "+d)}else a.V("disk controller not present")}}else a.V("list/load commands:"),a.V("\tl [address] [drive #] [sector #] [# sectors]")} function fo(a,b){var c;if(b&&"?"==b[1])a.V("register commands:"),a.V("\tr\tdump registers"),a.V("\trp\tdump all registers"),a.V("\trx [#]\tset flag or register x to [#]");else{var d;null==c&&(c=!0);if(null!=b&&1=a.Ma&&(q=null);switch(q){case "AL":a.O.F= a.O.F&-256|m&255;break;case "AH":a.O.F=a.O.F&-65281|m<<8&255;break;case "AX":a.O.F=a.O.F&-65536|m&65535;break;case "BL":a.O.D=a.O.D&-256|m&255;break;case "BH":a.O.D=a.O.D&-65281|m<<8&255;break;case "BX":a.O.D=a.O.D&-65536|m&65535;break;case "CL":a.O.G=a.O.G&-256|m&255;break;case "CH":a.O.G=a.O.G&-65281|m<<8&255;break;case "CX":a.O.G=a.O.G&-65536|m&65535;break;case "DL":a.O.H=a.O.H&-256|m&255;break;case "DH":a.O.H=a.O.H&-65281|m<<8&255;break;case "DX":a.O.H=a.O.H&-65536|m&65535;break;case "SP":t(a.O, -u(a.O)&-65536|m&65535);break;case "BP":a.O.L=a.O.L&-65536|m&65535;break;case "SI":a.O.K=a.O.K&-65536|m&65535;break;case "DI":a.O.J=a.O.J&-65536|m&65535;break;case "DS":td(a.O,m);break;case "ES":ud(a.O,m);break;case "SS":ld(a.O,m);break;case "CS":Ue(a.O,m);a.aa=ln(a,v(a.O),a.O.za.ea);break;case "IP":case "EIP":D(a.O,m);a.aa=ln(a,v(a.O),a.O.za.ea);break;case "PC":case "PS":Ad(a.O,m);break;case "C":m?df(a.O):ef(a.O);break;case "P":m?(e=a.O,e.resultType&=-3,e.ca|=4):(e=a.O,e.resultType&=-3,e.ca&=-5); +u(a.O)&-65536|m&65535);break;case "BP":a.O.L=a.O.L&-65536|m&65535;break;case "SI":a.O.K=a.O.K&-65536|m&65535;break;case "DI":a.O.J=a.O.J&-65536|m&65535;break;case "DS":td(a.O,m);break;case "ES":ud(a.O,m);break;case "SS":ld(a.O,m);break;case "CS":Ue(a.O,m);a.aa=ln(a,v(a.O),a.O.Aa.ea);break;case "IP":case "EIP":D(a.O,m);a.aa=ln(a,v(a.O),a.O.Aa.ea);break;case "PC":case "PS":wd(a.O,m);break;case "C":m?df(a.O):ef(a.O);break;case "P":m?(e=a.O,e.resultType&=-3,e.ca|=4):(e=a.O,e.resultType&=-3,e.ca&=-5); break;case "A":m?nf(a.O):kf(a.O);break;case "Z":m?of(a.O):lf(a.O);break;case "S":m?(e=a.O,e.resultType&=-17,e.ca|=128):(e=a.O,e.resultType&=-17,e.ca&=-129);break;case "I":m?(e=a.O,e.ca|=512):(e=a.O,e.ca&=-513);break;case "D":m?(e=a.O,e.ca|=1024):(e=a.O,e.ca&=-1025);break;case "V":m?ff(a.O):gf(a.O);break;default:var r=!0;if(80286<=a.O.ra)switch(r=!1,q){case "MS":pf(a.O,m);break;case "TR":a.O.Ya.load(m)===n&&(h=!1);break;default:if(r=!0,80386<=a.O.ra)switch(r=!1,q){case "EAX":a.O.F=m;break;case "EBX":a.O.D= -m;break;case "ECX":a.O.G=m;break;case "EDX":a.O.H=m;break;case "ESP":t(a.O,m);break;case "EBP":a.O.L=m;break;case "ESI":a.O.K=m;break;case "EDI":a.O.J=m;break;case "FS":a.O.Ob.load(m);break;case "GS":a.O.Pb.load(m);break;case "CR0":a.O.mb=m;rg.call(a.O,m);break;case "CR2":a.O.de=m;break;case "CR3":a.O.Kd=m;Cd.call(a.O,m);break;default:r=!0}}if(r){a.V("unknown register: "+e);return}}}if(!h){a.V("invalid value: "+g);return}Oc(a.O);a.V("updated registers:")}}a.V(vo(a,d));c&&(a.aa=ln(a,v(a.O),a.O.za.ea), +m;break;case "ECX":a.O.G=m;break;case "EDX":a.O.H=m;break;case "ESP":t(a.O,m);break;case "EBP":a.O.L=m;break;case "ESI":a.O.K=m;break;case "EDI":a.O.J=m;break;case "FS":a.O.Ob.load(m);break;case "GS":a.O.Pb.load(m);break;case "CR0":a.O.nb=m;rg.call(a.O,m);break;case "CR2":a.O.ce=m;break;case "CR3":a.O.Jd=m;Cd.call(a.O,m);break;default:r=!0}}if(r){a.V("unknown register: "+e);return}}}if(!h){a.V("invalid value: "+g);return}Oc(a.O);a.V("updated registers:")}}a.V(vo(a,d));c&&(a.aa=ln(a,v(a.O),a.O.Aa.ea), go(a,Yn(a.aa)))}}function Go(a,b){b=ma(b);var c=b.match(/^(['"])(.*?)\1$/);c?a.V(co(a,c[2])):Xn(a,b,!0)}function Ho(a,b,c){for(var d=null,e=b.Xa,g=e,h=1;6>=h&&e;h++){if(2q[0].indexOf("+"))){var r=q[0]+":";q[2]&&(r+=" "+q[2]);a.V(r)}q[3]&&(m=q[3],h=null);h=no(a,b,m,h);b.Dd||d||d++;a.V(h);a.aa=b;e-=b.Sa-g;c++}}} function On(a,b,c,d){if(c)if(b){0>a.X&&a.R.length&&(a.X=0);if(0>a.X||b!=a.R[a.X])a.R.splice(0,0,b),a.X=0;a.X--}else b=a.R[a.X+1];a=[];if(b){b=b.replace(/""/g,"'");c=0;var e=null;d=d||";";for(var g=0;g<=b.length;g++){var h=b.charAt(g);if('"'==h||"'"==h)e?h==e&&(e=null):e=h;else if(h==d&&!e||!h)a.push(ma(b.substring(c,g))),c=g+1}}return a} function Jo(a){if(a&&a.length)for(var b=a[0],c=b.charAt(0),d=1;de||"z"Vb.length&&(a.V("note: only "+Vb.length+" available"),lb=Vb.length);cb-=lb;0>cb&&(null==Vb[Vb.length-1].ea?(lb=cb+lb, -cb=0):cb+=Vb.length);var hh=[];"call"==$d&&(vd=1E5,hh=["CALL"]);for(void 0!==Zd&&a.V(lb+" instructions earlier:");0=Vb.length&&(cb=0);a.jb=lb;kl++;vd--}}kl||(a.V("no "+jl+"history available"),a.jb=void 0)}else if("di"==W)U.shift(),a.V("no information");else{var wd=Vn(a,ca,32);if(wd&& -(null!=wd.ea||null!=wd.Sa)){var Cf=0;va&&("l"==va.charAt(0)&&(va=va.substr(1)||La),Cf=En(a,va)>>>0,65536>4||1,ih="dd"==W?4:"dw"==W?2:1,ml=0;mllh;lh++){var Ef=a.Wa(wd,1),Df=Df|Ef<<(jh++<<3);jh==ih&&(ke+=k(Df,2*ih),ke+=1==ih?7==lh?"-":" ":" ",Df=jh=0);kh+=32<=Ef&&128>Ef?String.fromCharCode(Ef):"."}Pc&&(Pc+="\n");Pc+=ca+" "+ke+" "+kh}Pc&&a.V(Pc);a.eb=wd}}}}break;case "e":if("else"==h[0])break;var Ff= -1,nl=255,ol=a.Wa,pl=a.rc;"ew"==h[0]&&(Ff=2,nl=65535,ol=a.Jc,pl=a.Fb);var ql=Ff<<1,rl=h[1];if(null==rl)a.V("edit memory commands:"),a.V("\teb [a] [...] edit bytes at address a"),a.V("\tew [a] [...] edit words at address a");else{var Gf=Vn(a,rl,32);if(Gf)for(var Hf=2;Hfrh;){for(var yc=null,hp=256;xc.Xa>>>0>>0;){xd.Xa=a.nc(xc,!0);if(null==xc.Sa|| -!hp--)break;xd.ea=tl;if(yc=Ho(a,xd))break;xd.ea=a.nc(xc);if(yc=Ho(a,xd,!0)){tl=a.nc(xc,!0);0Vb.length&&(a.V("note: only "+Vb.length+" available"),lb=Vb.length);cb-=lb;0>cb&&(null==Vb[Vb.length-1].ea?(lb=cb+lb, +cb=0):cb+=Vb.length);var ih=[];"call"==$d&&(xd=1E5,ih=["CALL"]);for(void 0!==Zd&&a.V(lb+" instructions earlier:");0=Vb.length&&(cb=0);a.jb=lb;kl++;xd--}}kl||(a.V("no "+jl+"history available"),a.jb=void 0)}else if("di"==W)U.shift(),a.V("no information");else{var yd=Vn(a,ca,32);if(yd&& +(null!=yd.ea||null!=yd.Sa)){var Cf=0;va&&("l"==va.charAt(0)&&(va=va.substr(1)||La),Cf=En(a,va)>>>0,65536>4||1,jh="dd"==W?4:"dw"==W?2:1,ml=0;mlmh;mh++){var Ef=a.Wa(yd,1),Df=Df|Ef<<(kh++<<3);kh==jh&&(ke+=k(Df,2*jh),ke+=1==jh?7==mh?"-":" ":" ",Df=kh=0);lh+=32<=Ef&&128>Ef?String.fromCharCode(Ef):"."}Qc&&(Qc+="\n");Qc+=ca+" "+ke+" "+lh}Qc&&a.V(Qc);a.eb=yd}}}}break;case "e":if("else"==h[0])break;var Ff= +1,nl=255,ol=a.Wa,pl=a.rc;"ew"==h[0]&&(Ff=2,nl=65535,ol=a.Zc,pl=a.Fb);var ql=Ff<<1,rl=h[1];if(null==rl)a.V("edit memory commands:"),a.V("\teb [a] [...] edit bytes at address a"),a.V("\tew [a] [...] edit words at address a");else{var Gf=Vn(a,rl,32);if(Gf)for(var Hf=2;Hfsh;){for(var yc=null,hp=256;xc.Xa>>>0>>0;){zd.Xa=a.nc(xc,!0);if(null==xc.Sa|| +!hp--)break;zd.ea=tl;if(yc=Ho(a,zd))break;zd.ea=a.nc(xc);if(yc=Ho(a,zd,!0)){tl=a.nc(xc,!0);0Ro){if(d.load(this.P)){this.B=new Re(this,To,"failsafe");this.B.load()&&(Wo(this,d),a=2,Mo(this.B));Se(this.B,"timestamp",qa());No(this.B);var e=this.Ec&&!this.R;if(1==a||za("Click OK to restore the previous PCjs machine state, or CANCEL to reset the machine.")){if(c=Oo(d)){var g=Po(d,"code"),h=Po(d,"data");g&&("ok"==g?d.load(h):("error"==g&&"no machine state"!=h?(this.Ta("Error: "+ h),"unable to verify user"==h&&(Da("user",""),this.A=null)):this.V(g+": "+h),Mo(d),d.load()?(c=Oo(d),e=!0):c=!1))}e&&Vo(this,c?d:null)}else 2==a&&d.clear()}else Vo(this);delete this.P;delete this.X}e=eb(this.id);for(g=0;ga[1];a=a[2];this.oa.mc=!0;this.Aj||(this.V("PCjs v"+To+"\nCopyright \u00a9 2012-2015 Jeff Parsons \nLicense: GPL version 3 or later "),this.Aj=!0);this.O&&(Xo(this,this.O,b,c,a),Sc(this.O));this.Y&&(Wo(this,b),b.clear());!c&&this.B&&(this.B.clear(),delete this.B)}; -function Wo(a,b){if(za("There may be a problem with your PCjs machine.\n\nTo help us diagnose it, click OK to send this PCjs machine state to http://www.pcjs.org.")){var c=a.aa,d=a.Yd(),e=b.toString(),g={app:"PCjs"};g.ver=To;g.url=c;g.user=d;g.type="bug";g.data=e;wa("http://www.pcjs.org/api/v1/report",!0,g)}} +function Xo(a,b,c,d,e){if(!b.oa.mc){b.oa.mc=!0;if(b.pc){var g=null;e&&((g=Po(c,b.id))||(g=Po(c,b.id.replace(/[a-z0-9]\./i,"."))));"string"===typeof g&&(g=null);!b.pc(g,d)&&g&&(ya("Unable to restore state for "+b.type),a.S&&!a.P?(c.clear(),a.Ec=Ro,window&&window.location.reload()):a.Y=!0,b.pc(null),e=!1)}if(!d&&b.yj)for(a=b.yj.split("|"),c=0;ca[1];a=a[2];this.oa.mc=!0;this.zj||(this.V("PCjs v"+To+"\nCopyright \u00a9 2012-2015 Jeff Parsons \nLicense: GPL version 3 or later "),this.zj=!0);this.O&&(Xo(this,this.O,b,c,a),Pc(this.O));this.Y&&(Wo(this,b),b.clear());!c&&this.B&&(this.B.clear(),delete this.B)}; +function Wo(a,b){if(za("There may be a problem with your PCjs machine.\n\nTo help us diagnose it, click OK to send this PCjs machine state to http://www.pcjs.org.")){var c=a.aa,d=a.Xd(),e=b.toString(),g={app:"PCjs"};g.ver=To;g.url=c;g.user=d;g.type="bug";g.data=e;wa("http://www.pcjs.org/api/v1/report",!0,g)}} function Ko(a,b,c){var d,e="none",g=new Re(a,To),h=new Re(a,To,"validate"),m=qa();Se(h,"timestamp",m);Se(g,"timestamp",m);Se(g,"version","1.19.5");Se(g,"url",window?window.location.href:null);Se(g,"browser",window?window.navigator.userAgent:"");a.O&&a.O.oc&&(c&&a.O.Xb(),d=a.O.oc(b,c),"object"===typeof d&&Se(g,a.O.id,d),c&&(a.O.oa.mc=!1,!1===d&&(e=null)));for(var m=eb(a.id),q=0;qm.indexOf("/")&&(m=window.location.pathname+m);a=a.replace(/(]*\sid=)(['"]).*?\2/,"$1$2"+c+"$2"+(d?" state=$2"+d+"$2":"")+(m?" url=$2"+m+"$2":""))}m=null;if("<"==a.charAt(0))try{e||(a=a.replace(/\s*/g,"")),window.ActiveXObject||"ActiveXObject"in window?(m=new window.ActiveXObject("Microsoft.XMLDOM"),m.async=!1,m.loadXML(a)):m=(new window.DOMParser).parseFromString(a,"text/xml")}catch(E){m= null,a=E.message}else a="unrecognized XML: "+(255=this.x&&a=this.y&&b=c>>2);d?(b=new eb(a.x,a.y,a.sc,a.A*b/c|0),a.y+=b.A,a.A-=b.A):(b=new eb(a.x,a.y,a.sc*b/c|0,a.A),a.x+=b.sc,a.sc-=b.sc);return b}f=cb.prototype; f.Hb=function(a,b,c){return this.xa&&this.xa.Hb(a,b,c)||this.A&&this.A.Hb(a,b,c)||this.D&&this.D.Hb(a,b,c)?!0:this.parent.Hb.call(this,a,b,c)};f.uc=function(a,b,c,d){this.xa=a;this.ma=b;this.A=c;this.Qa=d;this.D=gb(a,"Keyboard")};f.bc=function(a,b){b||hb();return!0};f.ac=function(){return!0};f.pf=function(a,b){a.button||(this.U=b?0:-1,ib(this,a,b))};f.Pg=function(a){ib(this,a)}; -function ib(a,b,c){var d=1280/null.offsetWidth,e=720/null.offsetHeight,k=null.getBoundingClientRect(),d=(b.clientX-k.left)*d|0;b=(b.clientY-k.top)*e|0;null==c&&(a.U||(a.U=Math.abs(a.K-d)>Math.abs(a.L-b)?1:2),1==a.U?b=a.L:2==a.U&&(d=a.K));a.K=d;a.L=b;if(0<=d&&1280>d&&0<=b&&720>b){a:{c=d;if(960>c&&a.B&&a.B.Pd)for(k=0;kd&& -(k=d);c=k;break a}c=g}if(c!==g&&(c&=-16,c!=a.na)){b=c;if(a.context&&a.V&&a.ga){e=a.V.width;a.ga.fillStyle="black";a.ga.fillRect(0,360,e,360);kb(a,378,a.V,a.ga);a.Z=a.pa.width/24|0;if(null==b)lb(a,"Mouse over memory to dump");else for(lb(a,"0x"+da(b),null,0,1),k=1;16>=k;k++){d="";for(l=1;8>=l;l++){var p=mb(a.ma,b++);lb(a,da(p,2),null,1);d+=32<=p&&128>p?String.fromCharCode(p):"."}lb(a,d,null,0,1)}a.context.drawImage(a.V,0,360,e,360,a.Ha,a.Sa,a.ya,a.Da)}a.na=c}}}f.Nd=function(){}; -function nb(a,b,c,d){a.B.Ce[a.B.xi++]={xj:b,$c:c,type:d};return oa(jb,b,c,0,d)}function kb(a,b,c,d){var e,k=null.style.color,l=a.va=10;a.F=l;a.O=b;a.P=a.ja=18;e||(e=a.ha||a.ja+"px Monaco, Lucida Console, Courier New");a.Y=a.ha=e;c&&(a.pa=c);d&&(a.I=d,a.qa=k||"white")} +function ib(a,b,c){var d=1280/null.offsetWidth,e=720/null.offsetHeight,k=null.getBoundingClientRect(),d=(b.clientX-k.left)*d|0;b=(b.clientY-k.top)*e|0;null==c&&(a.U||(a.U=Math.abs(a.K-d)>Math.abs(a.L-b)?1:2),1==a.U?b=a.L:2==a.U&&(d=a.K));a.K=d;a.L=b;if(0<=d&&1280>d&&0<=b&&720>b){a:{c=d;if(960>c&&a.B&&a.B.Od)for(k=0;kd&& +(k=d);c=k;break a}c=g}if(c!==g&&(c&=-16,c!=a.na)){b=c;if(a.context&&a.V&&a.ga){e=a.V.width;a.ga.fillStyle="black";a.ga.fillRect(0,360,e,360);kb(a,378,a.V,a.ga);a.Z=a.pa.width/24|0;if(null==b)lb(a,"Mouse over memory to dump");else for(lb(a,"0x"+da(b),null,0,1),k=1;16>=k;k++){d="";for(l=1;8>=l;l++){var p=mb(a.ma,b++);lb(a,da(p,2),null,1);d+=32<=p&&128>p?String.fromCharCode(p):"."}lb(a,d,null,0,1)}a.context.drawImage(a.V,0,360,e,360,a.Ha,a.Sa,a.ya,a.Da)}a.na=c}}}f.Md=function(){}; +function nb(a,b,c,d){a.B.Be[a.B.xi++]={yj:b,$c:c,type:d};return oa(jb,b,c,0,d)}function kb(a,b,c,d){var e,k=null.style.color,l=a.va=10;a.F=l;a.O=b;a.P=a.ja=18;e||(e=a.ha||a.ja+"px Monaco, Lucida Console, Courier New");a.Y=a.ha=e;c&&(a.pa=c);d&&(a.I=d,a.qa=k||"white")} function lb(a,b,c,d,e){a.I.font=a.Y;a.I.fillStyle=a.qa;a.I.fillText(b,a.F,a.O);a.F+=a.Z;null!=c&&(16!=a.Ga?b=c.toString():(b=8>a.Ma?"0x":"",b+=da(c,a.Ma)),a.I.fillText(b,a.F,a.O),a.F+=a.Z);d&&(a.F+=a.Z*d);e&&(a.F=a.va,a.O+=(a.P+2)*(e||1))}function hb(){for(var a=!1,b=Xa(window.document,"pcjs","panel"),c=0;c=this.F?12:24>=this.F?14:15;this.qb=1<>2;this.B=this.qb-1;this.L=this.T/this.qb|0;this.K=this.L-1;this.O=[];this.P=[];this.U=[];this.Y=[];a=new h;this.fa=Array(this.L);for(b=0;b>>a.na;0a.qb?a.qb:c;if(l&&l.size){if(l.type==d&&l.controller==e){if(b+c<=l.De)return l.pe+=l.De-b,l.De=b,!0;if(b>=l.De+l.pe){q=l.size-(b-p);q>c&&(q=c);l.pe=b-l.De+q;c-=q;b=p+a.qb;continue}}return wb(1,b,c)}l=a.fa[k];b=new h(b,q,a.qb,d,e);xb(b,l,a.Qa);a.fa[k++]=b;b=p+a.qb;c-=q}return 0>>this.na;0=this.F?12:24>=this.F?14:15;this.qb=1<>2;this.B=this.qb-1;this.L=this.T/this.qb|0;this.K=this.L-1;this.O=[];this.P=[];this.U=[];this.Y=[];a=new h;this.fa=Array(this.L);for(b=0;b>>a.na;0a.qb?a.qb:c;if(l&&l.size){if(l.type==d&&l.controller==e){if(b+c<=l.Ce)return l.oe+=l.Ce-b,l.Ce=b,!0;if(b>=l.Ce+l.oe){q=l.size-(b-p);q>c&&(q=c);l.oe=b-l.Ce+q;c-=q;b=p+a.qb;continue}}return wb(1,b,c)}l=a.fa[k];b=new h(b,q,a.qb,d,e);xb(b,l,a.Qa);a.fa[k++]=b;b=p+a.qb;c-=q}return 0>>this.na;0>>a.na;0>>=a.na;0>>a.na;0>>this.na].jc(a&this.B,a)};function mb(a,b){return a.fa[(b&a.D)>>>a.na].ke(b&a.B,b)} -function Hb(a,b){var c=b&a.B,d=(b&a.D)>>>a.na;return c!=a.B?a.fa[d].pg(c,b):a.fa[d++].ke(c,b)|a.fa[d&a.K].ke(0,b+1)<<8}f.Tb=function(a){var b=a&this.B,c=(a&this.D)>>>this.na;if(b>>this.na].dc(a&this.B,b&255,a)}; +function yb(a,b,c,d,e){for(var k=0,l=b>>>a.na;0>>this.na].jc(a&this.B,a)};function mb(a,b){return a.fa[(b&a.D)>>>a.na].je(b&a.B,b)} +function Hb(a,b){var c=b&a.B,d=(b&a.D)>>>a.na;return c!=a.B?a.fa[d].pg(c,b):a.fa[d++].je(c,b)|a.fa[d&a.K].je(0,b+1)<<8}f.Tb=function(a){var b=a&this.B,c=(a&this.D)>>>this.na;if(b>>this.na].dc(a&this.B,b&255,a)}; f.zb=function(a,b){var c=a&this.B,d=(a&this.D)>>>this.na;c!=this.B?this.fa[d].$e(c,b&65535,a):(this.fa[d++].dc(c,b&255,a),this.fa[d&this.K].dc(0,b>>8&255,a+1))};function Ib(a,b,c){var d=b&a.B,e=(b&a.D)>>>a.na;d!=a.B?a.fa[e].gi(d,c&65535,b):(a.fa[e++].Ze(d,c&255,b),a.fa[e&a.K].Ze(0,c>>8&255,b+1))} function Jb(a,b,c,d){void 0===d&&(d=0);for(var e in c){var k=a,l=+e+d,p=c[e].bind(b);if(void 0!==p)for(var q=+e+d;q<=l;q++)void 0!==k.O[q]?ta("Input port 0x"+da(q,4)+" already registered"):k.O[q]=[p,!1]}}function Kb(a,b,c,d){for(var e=0,k=0;0>>=k)&q;if(void 0!==l&&l[0])l[0](b,q,e);k+=p<<3;b+=p;c-=p}}function wb(a,b,c){ta("Memory block error ("+a+","+da(b)+","+da(c)+")");return!1}var Ob; if(bb){var Pb=new ArrayBuffer(2);(new DataView(Pb)).setUint16(0,256,!0);Ob=256===(new Uint16Array(Pb))[0]}else Ob=!1;var Db=Ob; -function h(a,b,c,d,e,k){this.id=Qb+=2;this.ba=null;this.B=0;this.De=a;this.pe=b;this.size=c||0;this.type=d||Rb;this.O=d==Cb;this.controller=null;this.A=k;this.Pa=this.Hi=!1;this.V=this.ga=0;Sb(this);if(c)if(e)this.controller=e,a=e.Mi(a),this.ba=a[0],this.B=a[1],Ab(this,e.Ng());else if(bb)this.U=new ArrayBuffer(c),this.T=new DataView(this.U,0,c),this.D=new Uint8Array(this.U,0,c),this.Z=new Uint16Array(this.U,0,c>>1),this.ba=new Int32Array(this.U,0,c>>2),Ab(this,Db?Eb:Fb);else{this.ba=Array(c>>2);for(e= +function h(a,b,c,d,e,k){this.id=Qb+=2;this.ba=null;this.B=0;this.Ce=a;this.oe=b;this.size=c||0;this.type=d||Rb;this.O=d==Cb;this.controller=null;this.A=k;this.Pa=this.Hi=!1;this.V=this.ga=0;Sb(this);if(c)if(e)this.controller=e,a=e.Mi(a),this.ba=a[0],this.B=a[1],Ab(this,e.Ng());else if(bb)this.U=new ArrayBuffer(c),this.T=new DataView(this.U,0,c),this.D=new Uint8Array(this.U,0,c),this.Z=new Uint16Array(this.U,0,c>>1),this.ba=new Int32Array(this.U,0,c>>2),Ab(this,Db?Eb:Fb);else{this.ba=Array(c>>2);for(e= 0;e>8&65280|a>>>24);return a} h.prototype={constructor:h,parent:null,save:function(){var a,b;if(this.controller)a=null;else if(bb)for(a=Array(this.size>>2),b=0;b>8,c)},ma:function(a,b,c){this.dc(a++,b&255,c++);this.dc(a++,b>>8&255,c++);this.dc(a++,b>>16&255,c++);this.dc(a,b>>>24,c)},ta:function(a){return this.ba[a>>2]>>>((a&3)<<3)&255},Na:function(a){var b=a>>2;a=(a&3)<<3;var c=this.ba[b]>>a;return 24>a?c&65535:c&255|(this.ba[b+1]&255)<<8},Ea:function(a){var b=a>>2;a=(a&3)<<3;var c=this.ba[b];a&&(c=c>>>a|this.ba[b+1]<< -32-a);return c},bb:function(a,b){var c=a>>2,d=(a&3)<<3;this.ba[c]=this.ba[c]&~(255<>2,d=(a&3)<<3;24>d?this.ba[c]=this.ba[c]&~(65535<>8);this.Pa=!0},Jb:function(a,b){var c=a>>2,d=(a&3)<<3;if(d){var e=-1<>>32-d}else this.ba[c]=b;this.Pa=!0},qa:function(a,b){this.A&&Xb(this.A,b,1,!1);return this.ke(a,b)},Ia:function(a, -b){this.A&&Xb(this.A,b,2,!1);return this.pg(a,b)},Aa:function(a,b){this.A&&Xb(this.A,b,4,!1);return this.ci(a,b)},Xa:function(a,b,c){this.A&&Xb(this.A,c,1,!0);this.O||this.Ze(a,b,c)},Qb:function(a,b,c){this.A&&Xb(this.A,c,2,!0);this.O||this.gi(a,b,c)},Bb:function(a,b,c){this.A&&Xb(this.A,c,4,!0);this.O||this.na(a,b,c)},Ma:function(a,b){this.F.ba[this.K]|=this.P;this.I.ba[this.L]|=this.P;return this.Y.jc(a,b)},Oa:function(a,b){this.F.ba[this.K]|=this.P;this.I.ba[this.L]|=this.P;return this.Y.og(a, -b)},Fa:function(a,b){this.F.ba[this.K]|=this.P;this.I.ba[this.L]|=this.P;return this.Y.Jd(a,b)},lb:function(a,b,c){this.F.ba[this.K]|=this.P;this.I.ba[this.L]|=this.fa;this.Y.dc(a,b,c)},gc:function(a,b,c){this.F.ba[this.K]|=this.P;this.I.ba[this.L]|=this.fa;this.Y.$e(a,b,c)},Ib:function(a,b,c){this.F.ba[this.K]|=this.P;this.I.ba[this.L]|=this.fa;this.Y.wg(a,b,c)},va:function(a,b){return Yb(this.A,b,!1).jc(a,b)},Ua:function(a,b){return Yb(this.A,b,!1).og(a,b)},Ga:function(a,b){return Yb(this.A,b,!1).Jd(a, +32-a);return c},bb:function(a,b){var c=a>>2,d=(a&3)<<3;this.ba[c]=this.ba[c]&~(255<>2,d=(a&3)<<3;24>d?this.ba[c]=this.ba[c]&~(65535<>8);this.Pa=!0},Jb:function(a,b){var c=a>>2,d=(a&3)<<3;if(d){var e=-1<>>32-d}else this.ba[c]=b;this.Pa=!0},qa:function(a,b){this.A&&Wb(this.A,b,1,!1);return this.je(a,b)},Ia:function(a, +b){this.A&&Wb(this.A,b,2,!1);return this.pg(a,b)},Aa:function(a,b){this.A&&Wb(this.A,b,4,!1);return this.ci(a,b)},Xa:function(a,b,c){this.A&&Wb(this.A,c,1,!0);this.O||this.Ze(a,b,c)},Qb:function(a,b,c){this.A&&Wb(this.A,c,2,!0);this.O||this.gi(a,b,c)},Bb:function(a,b,c){this.A&&Wb(this.A,c,4,!0);this.O||this.na(a,b,c)},Ma:function(a,b){this.F.ba[this.K]|=this.P;this.I.ba[this.L]|=this.P;return this.Y.jc(a,b)},Oa:function(a,b){this.F.ba[this.K]|=this.P;this.I.ba[this.L]|=this.P;return this.Y.og(a, +b)},Fa:function(a,b){this.F.ba[this.K]|=this.P;this.I.ba[this.L]|=this.P;return this.Y.Id(a,b)},lb:function(a,b,c){this.F.ba[this.K]|=this.P;this.I.ba[this.L]|=this.fa;this.Y.dc(a,b,c)},gc:function(a,b,c){this.F.ba[this.K]|=this.P;this.I.ba[this.L]|=this.fa;this.Y.$e(a,b,c)},Ib:function(a,b,c){this.F.ba[this.K]|=this.P;this.I.ba[this.L]|=this.fa;this.Y.wg(a,b,c)},va:function(a,b){return Yb(this.A,b,!1).jc(a,b)},Ua:function(a,b){return Yb(this.A,b,!1).og(a,b)},Ga:function(a,b){return Yb(this.A,b,!1).Id(a, b)},pb:function(a,b,c){Yb(this.A,c,!0).dc(a,b,c)},hc:function(a,b,c){Yb(this.A,c,!0).$e(a,b,c)},lc:function(a,b,c){Yb(this.A,c,!0).wg(a,b,c)},pa:function(a){return this.D[a]},sa:function(a){return this.D[a]},Ha:function(a){return this.T.getUint16(a,!0)},Sa:function(a){return a&1?this.D[a]|this.D[a+1]<<8:this.Z[a>>1]},ya:function(a){return this.T.getInt32(a,!0)},Da:function(a){return a&3?this.D[a]|this.D[a+1]<<8|this.D[a+2]<<16|this.D[a+3]<<24:this.ba[a>>2]},Wa:function(a,b){this.D[a]=b;this.Pa=!0}, ab:function(a,b){this.D[a]=b;this.Pa=!0},Ob:function(a,b){this.T.setUint16(a,b,!0);this.Pa=!0},Xb:function(a,b){a&1?(this.D[a]=b,this.D[a+1]=b>>8):this.Z[a>>1]=b;this.Pa=!0},Ab:function(a,b){this.T.setInt32(a,b,!0);this.Pa=!0},Cb:function(a,b){a&3?(this.D[a]=b,this.D[a+1]=b>>8,this.D[a+2]=b>>16,this.D[a+3]=b>>24):this.ba[a>>2]=b;this.Pa=!0}};function xb(a,b,c){b&&(c&&(a.Qa=c),b.A&&(a.A=b.A),(a.V=b.V)&&Zb(a,$b,!1),(a.ga=b.ga)&&ac(a,$b,!1))} -function Sb(a,b,c,d,e,k){a.Y=b;a.F=c;a.K=d>>2;a.I=e;a.L=k>>2;a.fa=b?Vb(bc|cc):0;a.P=b?Vb(bc):0}function ac(a,b,c){c&&a.ga||(a.dc=!a.O&&b[3]||a.ra,a.$e=!a.O&&b[4]||a.ha,a.wg=!a.O&&b[5]||a.ma);if(c||void 0===c)a.Ze=b[3]||a.ra,a.gi=b[4]||a.ha,a.na=b[5]||a.ma}function Zb(a,b,c){c&&a.V||(a.jc=b[0]||a.ka,a.og=b[1]||a.xa,a.Jd=b[2]||a.ja);if(c||void 0===c)a.ke=b[0]||a.ka,a.pg=b[1]||a.xa,a.ci=b[2]||a.ja}function Ab(a,b,c){b||(b=5==a.type?dc:6==a.type?ec:fc);Zb(a,b,c);ac(a,b,c)} +function Sb(a,b,c,d,e,k){a.Y=b;a.F=c;a.K=d>>2;a.I=e;a.L=k>>2;a.fa=b?Vb(bc|cc):0;a.P=b?Vb(bc):0}function ac(a,b,c){c&&a.ga||(a.dc=!a.O&&b[3]||a.ra,a.$e=!a.O&&b[4]||a.ha,a.wg=!a.O&&b[5]||a.ma);if(c||void 0===c)a.Ze=b[3]||a.ra,a.gi=b[4]||a.ha,a.na=b[5]||a.ma}function Zb(a,b,c){c&&a.V||(a.jc=b[0]||a.ka,a.og=b[1]||a.xa,a.Id=b[2]||a.ja);if(c||void 0===c)a.je=b[0]||a.ka,a.pg=b[1]||a.xa,a.ci=b[2]||a.ja}function Ab(a,b,c){b||(b=5==a.type?dc:6==a.type?ec:fc);Zb(a,b,c);ac(a,b,c)} var fc=[],Gb=[h.prototype.ta,h.prototype.Na,h.prototype.Ea,h.prototype.bb,h.prototype.Zb,h.prototype.Jb],$b=[h.prototype.qa,h.prototype.Ia,h.prototype.Aa,h.prototype.Xa,h.prototype.Qb,h.prototype.Bb],ec=[h.prototype.Ma,h.prototype.Oa,h.prototype.Fa,h.prototype.lb,h.prototype.gc,h.prototype.Ib],dc=[h.prototype.va,h.prototype.Ua,h.prototype.Ga,h.prototype.pb,h.prototype.hc,h.prototype.lc]; if(bb)var Fb=[h.prototype.pa,h.prototype.Ha,h.prototype.ya,h.prototype.Wa,h.prototype.Ob,h.prototype.Ab],Eb=[h.prototype.sa,h.prototype.Sa,h.prototype.Da,h.prototype.ab,h.prototype.Xb,h.prototype.Cb]; -function gc(a,b){Ja.call(this,"CPU",a,gc);var c=a.cycles||b,d=a.multiplier||1;this.W={};this.W.Sc=c;this.W.rd=d;this.W.vf=Math.round(this.W.Sc/1E4)/100;this.W.be=this.W.vf*this.W.rd;this.ia.Kb=!1;this.ia.Ji=!1;this.ia.Ig=a.autoStart;this.ia.Ii=!1;c=Ma.autostart;void 0!==c&&(this.ia.Ig="true"==c?!0:"false"==c?!1:null);this.ia.rf=!1;this.W.xf=this.W.de=0;this.W.yf=a.csStart;this.W.He=a.csInterval;this.W.Ie=a.csStop;this.re=[];var e=this;this.vj=function(){hc(e)};Za(this)}Ra(gc);f=gc.prototype; -f.uc=function(a,b,c,d){this.ma=b;this.Qa=d;this.xa=a;for(b=null;b=gb(a,"Video",b);)this.re.push(b);this.Y=gb(a,"ChipSet");Za(this)};f.reset=function(){};f.save=function(){return null};f.restore=function(){return!1};f.bc=function(a,b){if(!b){if(a&&this.restore){ic(this);if(!this.restore(a))return!1;jc(this)}else this.reset();this.cc("No debugger detected")}kc(this);return!0};f.ac=function(a){return a&&this.save?this.save():!0}; -function lc(a){(!0===a.ia.Ig||null===a.ia.Ig&&void 0===a.ra.run)&&hc(a)}f.Li=function(){return 0};function jc(a){void 0===a.W.yf&&(a.W.yf=0);void 0===a.W.He&&(a.W.He=-1);void 0===a.W.Ie&&(a.W.Ie=-1);a.ia.rf=0<=a.W.yf&&0>>d.na;k=k+l-1>>>d.na;e.Gg=0;for(e.$c=0;p<=k;)l=d.fa[p],e.Gg+=l.size,l.size&&(e.Bg.push(oa(jb,p,0,0,l.type)),e.$c++),p++;c.B=e;c.ka=c.B.$c*c.ma.qb/691200;d=0;c.B.xi=0;c.B.Ce||(c.B.Ce=[]);var e=-1,p=0,q=-1;for(k=0;k>1),q=l.y+(l.A>>1),w=l.A,l.sc>1,p.O+=(p.P>>1)-2,lb(p,e),p.fa&&(p.I.restore(),p.fa=!1)}}else lb(c,"This space intentionally left blank");c.context.drawImage(c.T,0,0,c.T.width,c.T.height,c.Ia,c.Na,c.Aa,c.Ea);c.ta=!1}}f.Zc=function(){this.re.length&&this.re[0].Zc()}; -f.Hb=function(a,b,c){var d=this;a=!1;switch(b){case "run":this.ra[b]=c;c.onclick=function(){var a;if(a=d.xa)if(a=d.xa,a.ia.Yb)a=!0;else{var b=null,c,p=Sa(a.id);for(c=0;cc&&(c=60);2>c&&(c=2);var d=1;b&&1a.W.vf&&(c=Math.round(c/a.W.rd));return c}function ic(a){a.W.qd=0;a.Wc=a.Mc=a.gc=a.A=0;jc(a);qc(a,1)} -function qc(a,b,c){if(void 0!==b){.8>a.W.qd/a.W.be&&(b=1);a.W.rd=b;b=a.W.vf*a.W.rd;if(a.W.be!=b){a.W.be=b;b=a.W.be.toFixed(2)+"Mhz";var d=a.ra.setSpeed;d&&(d.textContent=b);a.cc("target speed: "+b)}c&&a.Zc()}sc(a,a.Mc);a.Mc=0;a.W.ce=ka();a.W.Hd=0;uc(a)} -function hc(a,b){if(Ya(a,!0)){if(!a.ia.Kb){qc(a);a.xa&&a.xa.start(a.W.ce,vc(a));a.ia.Kb=!0;a.ia.Ji=!0;a.Y&&wc(a.Y);var c=a.ra.run;c&&(c.textContent="Halt");a.Nd(!0);b&&a.Zc()}a.W.Wg>=a.W.Sc&&uc(a,!0);a.W.Me=0;a.W.wf=ka();a.W.Hd&&(c=a.W.wf-a.W.Hd,c>a.W.Ri&&(a.W.ce+=c,a.W.ce>a.W.wf&&(a.W.ce=a.W.wf)));try{do{var d=a.ia.rf?1:a.W.Fk;if(a.Y){xc(a.Y);var e=a.Y,c=d,k=e.L[0];if(k.Fd){var l=(vc(e.A,e.ha)-k.dd)/e.Ia|0,p=yc(e,0)-l;6==k.mode&&(p-=l);var q=p*e.Ia|0;6==k.mode&&(q>>=1);c>q&&(c=q)}var d=c,w=a.Y,c= -d;if(w.B&&w.B[11]&64){var C=w.pa-vc(w.A,w.ha);0C&&(c=C)}d=c}try{a.aj(d)}catch(G){if("number"!=typeof G)throw G;}var D=a.gc-a.A;a.Mc+=D;a.W.Me+=D;sc(a,0,!0);var c=a,R=D;if(c.ia.rf){var V=!1;c.W.xf=c.W.xf+c.Li()|0;c.W.de-=R;0>=c.W.de&&(c.W.de+=c.W.He,V=!0);0<=c.W.Ie&&c.W.Ie<=vc(c)&&(c.W.He=c.W.Ie=-1,jc(c),oc(c),V=!0);V&&c.cc(vc(c)+" cycles: checksum="+da(c.W.xf))}a.W.Ke-=D;0>=a.W.Ke&&(a.W.Ke+=a.W.Ti,mc(a));a.W.Je-=D;0>=a.W.Je&&(a.W.Je+=a.W.Si,a.Nd());a.W.Le-=D;if(0>=a.W.Le){a.W.Le+=a.W.Vg;break}}while(a.ia.Kb)}catch(U){oc(a); -kc(a);a.xa&&a.xa.stop(ka(),vc(a));Ya(a,!1);ab(a,U.stack||U.message);return}d=setTimeout;e=a.vj;a.W.Hd=ka();k=a.W.Ri;a.W.Me&&(k=Math.round(k*a.W.Me/a.W.Vg));k-=a.W.Hd-a.W.wf;if(l=a.W.Hd-a.W.ce)a.W.qd=Math.round(a.Mc/(10*l))/100,864E5<=l&&(a.Wc=0,a.Y&&xc(a.Y,!0),qc(a));if(0>k||a.W.qdthis.id&&m.call(e,13,a&65532)}return g};f.Ck=function(a){var b=this.A;a=b.Ob+(a<<2);var c=b.la(a);this.vg=2;b.T&=-769;return this.load(b.la(a+2))+c|0};f.Bk=function(a){var b=this.A;a<<=3;var c=b.Ob+a|0;if(7<=(b.Vc-c|0))return this.F=!0,a=Cc(this,c,a),a!==g&&(a+=this.Ue),a;m.call(b,13,a|2);return g};f.Ai=function(a){return this.Ba+a|0}; -f.Ci=function(a){return this.Ba+a|0};f.zi=function(a,b){return(a>>>0)+b<=this.D?this.Ba+a|0:this.nf()};f.jj=function(a,b){return(a>>>0)+b>this.D?this.Ba+a|0:this.nf()};f.nf=function(){m.call(this.A,13,0);return g};f.Bi=function(a,b){return(a>>>0)+b<=this.D?this.Ba+a|0:this.of()};f.kj=function(a,b){return(a>>>0)+b>this.D?this.Ba+a|0:this.of()};f.of=function(){m.call(this.A,13,0);return g}; +function gc(a,b){Ja.call(this,"CPU",a,gc);var c=a.cycles||b,d=a.multiplier||1;this.W={};this.W.Sc=c;this.W.qd=d;this.W.vf=Math.round(this.W.Sc/1E4)/100;this.W.ae=this.W.vf*this.W.qd;this.ia.Kb=!1;this.ia.Ji=!1;this.ia.Ig=a.autoStart;this.ia.Ii=!1;c=Ma.autostart;void 0!==c&&(this.ia.Ig="true"==c?!0:"false"==c?!1:null);this.ia.rf=!1;this.W.xf=this.W.ce=0;this.W.yf=a.csStart;this.W.He=a.csInterval;this.W.Ie=a.csStop;this.qe=[];var e=this;this.wj=function(){hc(e)};Za(this)}Ra(gc);f=gc.prototype; +f.uc=function(a,b,c,d){this.ma=b;this.Qa=d;this.xa=a;for(b=null;b=gb(a,"Video",b);)this.qe.push(b);this.Y=gb(a,"ChipSet");Za(this)};f.reset=function(){};f.save=function(){return null};f.restore=function(){return!1};f.bc=function(a,b){if(!b){if(a&&this.restore){ic(this);if(!this.restore(a))return!1;jc(this)}else this.reset();this.cc("No debugger detected")}kc(this);return!0};f.ac=function(a){return a&&this.save?this.save():!0}; +function lc(a){(!0===a.ia.Ig||null===a.ia.Ig&&void 0===a.ra.run)&&hc(a)}f.Li=function(){return 0};function jc(a){void 0===a.W.yf&&(a.W.yf=0);void 0===a.W.He&&(a.W.He=-1);void 0===a.W.Ie&&(a.W.Ie=-1);a.ia.rf=0<=a.W.yf&&0>>d.na;k=k+l-1>>>d.na;e.Gg=0;for(e.$c=0;p<=k;)l=d.fa[p],e.Gg+=l.size,l.size&&(e.Bg.push(oa(jb,p,0,0,l.type)),e.$c++),p++;c.B=e;c.ka=c.B.$c*c.ma.qb/691200;d=0;c.B.xi=0;c.B.Be||(c.B.Be=[]);var e=-1,p=0,q=-1;for(k=0;k>1),q=l.y+(l.A>>1),w=l.A,l.sc>1,p.O+=(p.P>>1)-2,lb(p,e),p.fa&&(p.I.restore(),p.fa=!1)}}else lb(c,"This space intentionally left blank");c.context.drawImage(c.T,0,0,c.T.width,c.T.height,c.Ia,c.Na,c.Aa,c.Ea);c.ta=!1}}f.Zc=function(){this.qe.length&&this.qe[0].Zc()}; +f.Hb=function(a,b,c){var d=this;a=!1;switch(b){case "run":this.ra[b]=c;c.onclick=function(){var a;if(a=d.xa)if(a=d.xa,a.ia.Yb)a=!0;else{var b=null,c,p=Sa(a.id);for(c=0;cc&&(c=60);2>c&&(c=2);var d=1;b&&1a.W.vf&&(c=Math.round(c/a.W.qd));return c}function ic(a){a.W.pd=0;a.Wc=a.Mc=a.gc=a.A=0;jc(a);qc(a,1)} +function qc(a,b,c){if(void 0!==b){.8>a.W.pd/a.W.ae&&(b=1);a.W.qd=b;b=a.W.vf*a.W.qd;if(a.W.ae!=b){a.W.ae=b;b=a.W.ae.toFixed(2)+"Mhz";var d=a.ra.setSpeed;d&&(d.textContent=b);a.cc("target speed: "+b)}c&&a.Zc()}sc(a,a.Mc);a.Mc=0;a.W.be=ka();a.W.Gd=0;tc(a)} +function hc(a,b){if(Ya(a,!0)){if(!a.ia.Kb){qc(a);a.xa&&a.xa.start(a.W.be,vc(a));a.ia.Kb=!0;a.ia.Ji=!0;a.Y&&wc(a.Y);var c=a.ra.run;c&&(c.textContent="Halt");a.Md(!0);b&&a.Zc()}a.W.Wg>=a.W.Sc&&tc(a,!0);a.W.Me=0;a.W.wf=ka();a.W.Gd&&(c=a.W.wf-a.W.Gd,c>a.W.Qi&&(a.W.be+=c,a.W.be>a.W.wf&&(a.W.be=a.W.wf)));try{do{var d=a.ia.rf?1:a.W.Gk;if(a.Y){xc(a.Y);var e=a.Y,c=d,k=e.L[0];if(k.Ed){var l=(vc(e.A,e.ha)-k.dd)/e.Ia|0,p=yc(e,0)-l;6==k.mode&&(p-=l);var q=p*e.Ia|0;6==k.mode&&(q>>=1);c>q&&(c=q)}var d=c,w=a.Y,c= +d;if(w.B&&w.B[11]&64){var C=w.pa-vc(w.A,w.ha);0C&&(c=C)}d=c}try{a.$i(d)}catch(G){if("number"!=typeof G)throw G;}var D=a.gc-a.A;a.Mc+=D;a.W.Me+=D;sc(a,0,!0);var c=a,R=D;if(c.ia.rf){var V=!1;c.W.xf=c.W.xf+c.Li()|0;c.W.ce-=R;0>=c.W.ce&&(c.W.ce+=c.W.He,V=!0);0<=c.W.Ie&&c.W.Ie<=vc(c)&&(c.W.He=c.W.Ie=-1,jc(c),oc(c),V=!0);V&&c.cc(vc(c)+" cycles: checksum="+da(c.W.xf))}a.W.Ke-=D;0>=a.W.Ke&&(a.W.Ke+=a.W.Si,mc(a));a.W.Je-=D;0>=a.W.Je&&(a.W.Je+=a.W.Ri,a.Md());a.W.Le-=D;if(0>=a.W.Le){a.W.Le+=a.W.Vg;break}}while(a.ia.Kb)}catch(U){oc(a); +kc(a);a.xa&&a.xa.stop(ka(),vc(a));Ya(a,!1);ab(a,U.stack||U.message);return}d=setTimeout;e=a.wj;a.W.Gd=ka();k=a.W.Qi;a.W.Me&&(k=Math.round(k*a.W.Me/a.W.Vg));k-=a.W.Gd-a.W.wf;if(l=a.W.Gd-a.W.be)a.W.pd=Math.round(a.Mc/(10*l))/100,864E5<=l&&(a.Wc=0,a.Y&&xc(a.Y,!0),qc(a));if(0>k||a.W.pdthis.id&&m.call(e,13,a&65532)}return g};f.Dk=function(a){var b=this.A;a=b.Ob+(a<<2);var c=b.la(a);this.vg=2;b.T&=-769;return this.load(b.la(a+2))+c|0};f.Ck=function(a){var b=this.A;a<<=3;var c=b.Ob+a|0;if(7<=(b.Vc-c|0))return this.F=!0,a=Cc(this,c,a),a!==g&&(a+=this.Ue),a;m.call(b,13,a|2);return g};f.Ai=function(a){return this.Ba+a|0}; +f.Ci=function(a){return this.Ba+a|0};f.zi=function(a,b){return(a>>>0)+b<=this.D?this.Ba+a|0:this.nf()};f.kj=function(a,b){return(a>>>0)+b>this.D?this.Ba+a|0:this.nf()};f.nf=function(){m.call(this.A,13,0);return g};f.Bi=function(a,b){return(a>>>0)+b<=this.D?this.Ba+a|0:this.of()};f.lj=function(a,b){return(a>>>0)+b>this.D?this.Ba+a|0:this.of()};f.of=function(){m.call(this.A,13,0);return g}; function Dc(a,b,c){var d=a.A,e=d.la(b+2),k=d.la(b)|(e&255)<<16,d=d.la(b+4);a.oa=c;a.Ba=k;a.Za=d;a.D=(d>>>0)+1;a.mb=e;a.type=e&7936;a.ext=0;a.ec=b;Bc(a,!0)} -function Cc(a,b,c,d){var e=a.A;if(!d&&c===a.B.oa)return a.oa=c,a.Ba=a.B.Ba,a.Za=a.B.Za,a.D=(a.B.Za>>>0)+1,a.mb=a.B.mb,a.type=a.B.type,a.ext=a.B.ext,a.ec=a.B.ec,a.B.oa=0,Bc(a,!0,!0,!1),a.Ba;a.B.oa=0;var k=e.la(b+0),l=e.la(b+4),p=l&7936,q=e.la(b+2)|(l&255)<<16,w=e.la(b+6),C=c&65528;if(80386<=e.ga){var G=k,q=q|(w&65280)<<16,k=k|(w&15)<<16;w&128&&(k=k<<12|4095)}switch(a.id){case Ac:a.Yd=!1;a.vg=a.aa;var D=a.F;if(D&&1==c&&a.I.length){var R=a.I[a.Ue-1];if(R&&!R())return g}var R=c&3,V=(l&24576)>>13,U,va, -ia;if(C&&!(l&32768))return 6>a.id&&m.call(e,11,c&65532),g;if(6144<=p){R=c&3;if(R>a.xb){if(!1!==D&&!(V==a.xb||p&1024&&V<=a.xb))return g;U=n(e);Ec(e,n(e),!0);r(e,U);a.Yd=!0}U=0}else{if(256==p||2304==p)return Fc(a,c,D)?a.Ba:g;if(1024==p)U=2,ia=0,R>>0)+1,a.mb=a.B.mb,a.type=a.B.type,a.ext=a.B.ext,a.ec=a.B.ec,a.B.oa=0,Bc(a,!0,!0,!1),a.Ba;a.B.oa=0;var k=e.la(b+0),l=e.la(b+4),p=l&7936,q=e.la(b+2)|(l&255)<<16,w=e.la(b+6),C=c&65528;if(80386<=e.ga){var G=k,q=q|(w&65280)<<16,k=k|(w&15)<<16;w&128&&(k=k<<12|4095)}switch(a.id){case Ac:a.Xd=!1;a.vg=a.aa;var D=a.F;if(D&&1==c&&a.I.length){var R=a.I[a.Ue-1];if(R&&!R())return g}var R=c&3,V=(l&24576)>>13,U,va, +ia;if(C&&!(l&32768))return 6>a.id&&m.call(e,11,c&65532),g;if(6144<=p){R=c&3;if(R>a.xb){if(!1!==D&&!(V==a.xb||p&1024&&V<=a.xb))return g;U=n(e);Ec(e,n(e),!0);r(e,U);a.Xd=!0}U=0}else{if(256==p||2304==p)return Fc(a,c,D)?a.Ba:g;if(1024==p)U=2,ia=0,Ra.id&&m.call(e,13,c&65532|(va?2:0)),g;break;case 2:if(C){if(4096>p||2048==(p&2560))return 6>a.id&&m.call(e,13,c&65532),g;if(!(l&32768))return 6>a.id&&m.call(e,11,c&65532),g}break;case 3:if(!(l&32768))return 6>a.id&&m.call(e,12,c&65532),g;if(!C||4096>p||512!=(p&2560))return 6>a.id&&m.call(e,13,c&65532,!0),g;break;case 4:D=p&-513;if(!C||256!=D&&2304!=D)return 6>a.id&&m.call(e,13,c&65532,!0),g;2304==D&&(a.si= -q+e.la(q+100+2)|0,a.ij=q+a.Za|0);break;case 6:if(!(p&4096)&&768>>0)+1,a.mb=l,a.type=p,a.ext=w,a.ec=b,Bc(a,!0,!0,!1));return q} +u(e,e.ya.oa),Kc(e,0));u(e,D);for(u(e,l);k;)u(e,a.K[--k]);a.Xd=!0}return a.Ba}if(0!==U)return 6>a.id&&m.call(e,13,c&65532|(va?2:0)),g;break;case 2:if(C){if(4096>p||2048==(p&2560))return 6>a.id&&m.call(e,13,c&65532),g;if(!(l&32768))return 6>a.id&&m.call(e,11,c&65532),g}break;case 3:if(!(l&32768))return 6>a.id&&m.call(e,12,c&65532),g;if(!C||4096>p||512!=(p&2560))return 6>a.id&&m.call(e,13,c&65532,!0),g;break;case 4:D=p&-513;if(!C||256!=D&&2304!=D)return 6>a.id&&m.call(e,13,c&65532,!0),g;2304==D&&(a.si= +q+e.la(q+100+2)|0,a.jj=q+a.Za|0);break;case 6:if(!(p&4096)&&768>>0)+1,a.mb=l,a.type=p,a.ext=w,a.ec=b,Bc(a,!0,!0,!1));return q} function Fc(a,b,c){var d=a.A,e=a.xb,k=d.qa.oa,l=d.qa.Ba;if(!c){if(!(d.qa.type&512))return m.call(d,13,b&65532,!0),!1;d.zb(d.qa.ec+4,d.qa.mb&=-513)}if(d.qa.load(b)===g)return!1;var p=d.qa.Ba;if(!1!==c){if(d.qa.type&512)return m.call(d,13,b&65532,!0),!1;d.zb(d.qa.ec+4,d.qa.mb|=512)}d.qa.type=d.qa.type&-513|d.qa.mb&512;256==d.qa.type||768==d.qa.type?(d.zb(l+14,v(d)),d.zb(l+16,Lc(d)),d.zb(l+18,d.G),d.zb(l+20,d.F),d.zb(l+22,d.H),d.zb(l+24,d.D),d.zb(l+26,t(d)),d.zb(l+28,d.L),d.zb(l+30,d.K),d.zb(l+32,d.I), d.zb(l+34,d.ya.oa),d.zb(l+36,d.ka.oa),d.zb(l+38,d.Z.oa),d.zb(l+40,d.Ha.oa),d.Fc.load(d.la(p+42)),Mc(d,d.la(p+16)|(c?16384:0)),d.G=d.la(p+18),d.F=d.la(p+20),d.H=d.la(p+22),d.D=d.la(p+24),d.L=d.la(p+28),d.K=d.la(p+30),d.I=d.la(p+32),d.ya.load(d.la(p+34)),d.Ha.load(d.la(p+40)),Nc(d,d.la(p+14),d.la(p+36)),b=38,l=26,a.xb>>0)+1)}; -function Bc(a,b,c,d){void 0===c&&(c=!!(a.A.Aa&1));a.od=!1;if(c)if(a.load=a.uf,a.Pi=a.Bk,a.fc=a.zi,a.Vb=a.Bi,void 0===d&&(d=!!(a.A.T&131072)),d)a.load=a.P,a.fc=a.L,a.Vb=a.O,a.xb=a.oc=3,a.aa=a.Nc=2,a.C=a.ua=65535,a.Za=65535,a.D=a.Za+1,a.Nc=a.aa,a.ec=g,a.Yd=!1;else{if(!(a.oa&-4))a.fc=a.nf,a.Vb=a.of;else if(a.type&4096){6144==(a.type&6656)&&(a.fc=a.nf);if(a.type&2048||!(a.type&512))a.Vb=a.of;1024==(a.type&3072)&&(a.fc==a.zi&&(a.fc=a.jj),a.Vb==a.Bi&&(a.Vb=a.kj),a.od=!0);b&&6>a.id&&a.oa&-4&&a.ec!==g&&(c= -a.ec+5,a.A.Gc(c,a.A.Sb(c)|1))}b&&(a.xb=a.oa&3,a.oc=(a.mb&24576)>>13,80386>a.A.ga||!(a.ext&64)?(a.aa=2,a.C=65535):(a.aa=4,a.C=-1),a.Nc=a.aa,a.ua=a.C)}else a.load=a.Qi,a.Pi=a.Ck,a.fc=a.Ai,a.Vb=a.Ci,a.xb=a.oc=0,a.ec=g,a.Yd=!1} -function Pc(a){this.ga=a.model||8088;var b=0;switch(this.ga){default:b=4772727;break;case 80286:b=6E6;break;case 80386:b=16E6}gc.call(this,a,b);this.ji=61442;this.wd=1792;this.ii=28672;this.af=4;this.Ga=255;this.B=80386==this.ga?Qc:80286==this.ga?Rc:Sc;this.sa=Tc;this.li=Uc;this.mi=Vc;this.ni=Wc;if(80186<=this.ga&&(this.sa=Tc.slice(),this.li=Uc.slice(),this.mi=Vc.slice(),this.Ga=31,this.sa[15]=Xc,this.sa[96]=Yc,this.sa[97]=Zc,this.sa[98]=$c,this.sa[99]=Xc,this.sa[100]=Xc,this.sa[101]=Xc,this.sa[102]= -Xc,this.sa[103]=Xc,this.sa[104]=ad,this.sa[105]=bd,this.sa[106]=cd,this.sa[107]=dd,this.sa[108]=ed,this.sa[109]=fd,this.sa[110]=gd,this.sa[111]=hd,this.sa[192]=id,this.sa[193]=jd,this.sa[200]=kd,this.sa[201]=ld,this.sa[241]=md,this.li[7]=nd,this.mi[7]=nd,80286<=this.ga)){this.ji=2;this.wd|=28672;this.af=0;this.sa[15]=od;this.ue=pd.slice();for(a=0;a>>20,k=a.Uc[(a.Yc+e&a.te)>>>a.na],l=k.Jd(e);if(!(l&1))return d||zd.call(a,b,!1,c),a.we;if(!(l&4)&&3==a.Ea)return d||zd.call(a,b,!0,c),a.we;var p=(b&4190208)>>>10,l=a.Uc[((l&-4096)+p&a.te)>>>a.na],q=l.Jd(p);if(!(q&1))return d||zd.call(a,b,!1,c),a.we;if(!(q&4)&&3==a.Ea)return d||zd.call(a,b,!0,c),a.we;c=a.Uc[((q&-4096)+(b&4095)&a.te)>>>a.na];if(d)return c;d=new h(b&-4096,0,0,6);Sb(d,c,k,e,l,p);b>>>=a.na;a.fa[b]=d;a.cf.push(b);return d} -function Ad(a){a.fa!=a.Uc&&(a.fa=a.Uc,a.yg=null,a.cf=null,a.we=null)}f=Pc.prototype;f.reset=function(){this.ia.Kb&&oc(this);xd(this);ic(this);this.ia.Rc=!1};function Bd(a,b){var c;switch(b){case 0:c=a.G;break;case 1:c=a.F;break;case 2:c=a.H;break;case 3:c=a.D;break;case 4:c=t(a);break;case 5:c=a.L;break;case 6:c=a.K;break;case 7:c=a.I}return c} +function Bc(a,b,c,d){void 0===c&&(c=!!(a.A.Aa&1));a.nd=!1;if(c)if(a.load=a.uf,a.Oi=a.Ck,a.fc=a.zi,a.Vb=a.Bi,void 0===d&&(d=!!(a.A.T&131072)),d)a.load=a.P,a.fc=a.L,a.Vb=a.O,a.xb=a.oc=3,a.aa=a.Nc=2,a.C=a.ua=65535,a.Za=65535,a.D=a.Za+1,a.Nc=a.aa,a.ec=g,a.Xd=!1;else{if(!(a.oa&-4))a.fc=a.nf,a.Vb=a.of;else if(a.type&4096){6144==(a.type&6656)&&(a.fc=a.nf);if(a.type&2048||!(a.type&512))a.Vb=a.of;1024==(a.type&3072)&&(a.fc==a.zi&&(a.fc=a.kj),a.Vb==a.Bi&&(a.Vb=a.lj),a.nd=!0);b&&6>a.id&&a.oa&-4&&a.ec!==g&&(c= +a.ec+5,a.A.Gc(c,a.A.Sb(c)|1))}b&&(a.xb=a.oa&3,a.oc=(a.mb&24576)>>13,80386>a.A.ga||!(a.ext&64)?(a.aa=2,a.C=65535):(a.aa=4,a.C=-1),a.Nc=a.aa,a.ua=a.C)}else a.load=a.Pi,a.Oi=a.Dk,a.fc=a.Ai,a.Vb=a.Ci,a.xb=a.oc=0,a.ec=g,a.Xd=!1} +function Pc(a){this.ga=a.model||8088;var b=0;switch(this.ga){default:b=4772727;break;case 80286:b=6E6;break;case 80386:b=16E6}gc.call(this,a,b);this.ji=61442;this.vd=1792;this.ii=28672;this.af=4;this.Ga=255;this.B=80386==this.ga?Qc:80286==this.ga?Rc:Sc;this.sa=Tc;this.li=Uc;this.mi=Vc;this.ni=Wc;if(80186<=this.ga&&(this.sa=Tc.slice(),this.li=Uc.slice(),this.mi=Vc.slice(),this.Ga=31,this.sa[15]=Xc,this.sa[96]=Yc,this.sa[97]=Zc,this.sa[98]=$c,this.sa[99]=Xc,this.sa[100]=Xc,this.sa[101]=Xc,this.sa[102]= +Xc,this.sa[103]=Xc,this.sa[104]=ad,this.sa[105]=bd,this.sa[106]=cd,this.sa[107]=dd,this.sa[108]=ed,this.sa[109]=fd,this.sa[110]=gd,this.sa[111]=hd,this.sa[192]=id,this.sa[193]=jd,this.sa[200]=kd,this.sa[201]=ld,this.sa[241]=md,this.li[7]=nd,this.mi[7]=nd,80286<=this.ga)){this.ji=2;this.vd|=28672;this.af=0;this.sa[15]=od;this.te=pd.slice();for(a=0;a>>20,k=a.Uc[(a.Yc+e&a.se)>>>a.na],l=k.Id(e);if(!(l&1))return d||zd.call(a,b,!1,c),a.ve;if(!(l&4)&&3==a.Ea)return d||zd.call(a,b,!0,c),a.ve;var p=(b&4190208)>>>10,l=a.Uc[((l&-4096)+p&a.se)>>>a.na],q=l.Id(p);if(!(q&1))return d||zd.call(a,b,!1,c),a.ve;if(!(q&4)&&3==a.Ea)return d||zd.call(a,b,!0,c),a.ve;c=a.Uc[((q&-4096)+(b&4095)&a.se)>>>a.na];if(d)return c;d=new h(b&-4096,0,0,6);Sb(d,c,k,e,l,p);b>>>=a.na;a.fa[b]=d;a.cf.push(b);return d} +function Ad(a){a.fa!=a.Uc&&(a.fa=a.Uc,a.yg=null,a.cf=null,a.ve=null)}f=Pc.prototype;f.reset=function(){this.ia.Kb&&oc(this);xd(this);ic(this);this.ia.Rc=!1};function Bd(a,b){var c;switch(b){case 0:c=a.G;break;case 1:c=a.F;break;case 2:c=a.H;break;case 3:c=a.D;break;case 4:c=t(a);break;case 5:c=a.L;break;case 6:c=a.K;break;case 7:c=a.I}return c} function Cd(a,b,c){switch(b){case 0:a.G=c;break;case 1:a.F=c;break;case 2:a.H=c;break;case 3:a.D=c;break;case 4:r(a,c);break;case 5:a.L=c;break;case 6:a.K=c;break;case 7:a.I=c}} -function xd(a){a.G=0;a.D=0;a.F=0;a.H=0;a.Qb=0;a.L=0;a.K=0;a.I=0;a.Ua=!1;a.Da=a.Xa=0;a.Dc=0;a.ef=0;a.Aa=65520;a.Ob=0;a.Vc=1023;a.T=a.Cb=0;a.Bd=a.ye=a.Ad=a.qe=0;a.Zb=-1;a.Na=a.Wa=g;a.ka=new zc(a,Ac,"CS");a.Ha=new zc(a,2,"DS");a.ya=new zc(a,2,"ES");a.Z=new zc(a,3,"SS");r(a,0);Ec(a,0);80386<=a.ga&&(a.H=772,a.Aa=16,a.Di=0,a.zd=0,a.Yc=0,a.pb=[0,0,0,0,null,null,0,0],a.gf=[null,null,null,null,null,null,0,0],a.bb=new zc(a,2,"FS"),a.lb=new zc(a,2,"GS"),Ad(a));a.Gi=new zc(a,0,"NULL");a.U=a.Ha;a.V=a.Z;a.O=a.ja= -0;a.P=a.pa=g;a.Fa=0;Nc(a,0,65535);if(80286<=a.ga){a.Xb=0;a.xd=65535;a.Fc=new zc(a,5,"LDT",!0);a.qa=new zc(a,4,"TSS",!0);a.Oa=new zc(a,6,"VER",!0);Nc(a,65520,61440);var b,c=v(a);b=a.ka;var d=-65536;80386>b.A.ga&&(d&=16777215);b=b.Ba=d;a.ha=b+c|0;a.ff=b+a.ka.Za|0}Mc(a,0);Gc(a)}function Dd(a,b){b.oa&65528&&b.ocb.A.ga&&(d&=16777215);b=b.Ba=d;a.ha=b+c|0;a.ff=b+a.ka.Za|0}Mc(a,0);Gc(a)}function Dd(a,b){b.oa&65528&&b.oc>16,e=0;4>e;e++){if(c&3){var k=!!(d&1),l=a.pb[e],l=l&~(d>>2&3);if(b){var l=a.fa[l>>>a.na],p=a;k?0===l.ga++&&(p&&(l.A=p),ac(l,$b,!1)):0===l.V++&&(p&&(l.A=p),Zb(l,$b,!1))}else l=a.fa[l>>>a.na],k?0===--l.ga&&(k=l,k.dc=k.O?k.ra:k.Ze,k.$e=k.O?k.ha:k.gi,k.wg=k.O?k.ma:k.na):0===--l.V&&(k=l,k.jc=k.ke,k.og=k.pg,k.Jd=k.ci)}c>>=2;d>>=4}} -function Xb(a,b,c,d){if(!(a.O&8192)&&a.pb[7]&255){c--;var e=a.pb[7],k=e>>16;d=d?1:0==d?3:0;for(var l=0;4>l;l++){if(e&3&&(k&3)==d){var p=k>>2;if(b+c>=a.pb[l]&&b<=a.pb[l]+p){a.pb[6]|=1<>=2;k>>=4}}}function Gc(a,b,c){void 0===b&&(b=!!(a.Aa&1));void 0===c&&(c=!!(a.T&131072));a.ni=b&&!c?Ud:Wc;Bc(a.ka,!1,b,c);Bc(a.Ha,!1,b,c);Bc(a.Z,!1,b,c);Bc(a.ya,!1,b,c);80386<=a.ga&&(Bc(a.bb,!1,b,c),Bc(a.lb,!1,b,c),Ic(a))} -f.save=function(){var a=new Vd(this);E(a,0,[this.G,this.D,this.F,this.H,t(this),this.L,this.K,this.I]);var b=v(this),c=this.ka.save(),d=this.Ha.save(),e=this.Z.save(),k=this.ya.save(),l;null!=this.Xb?(l=[this.Aa,this.Xb,this.xd,this.Ob,this.Vc,this.Fc.save(),this.qa.save(),this.Cb],80386<=this.ga&&(l.push(this.Di),l.push(this.zd),l.push(this.Yc),l.push(this.pb),l.push(this.gf))):l=null;b=[b,c,d,e,k,l,Lc(this)];80386<=this.ga&&(b.push(this.bb.save()),b.push(this.lb.save()));E(a,1,b);E(a,2,[this.U.tg, -this.V.tg,this.O,this.ja,this.Fa,this.P,this.pa]);E(a,3,[0,this.Wc,this.W.rd]);b=this.ma;c=0;d=[];(e=!b.I&&b.ga==b.D)||ub(b,!0);for(k=0;k>16,e=0;4>e;e++){if(c&3){var k=!!(d&1),l=a.pb[e],l=l&~(d>>2&3);if(b){var l=a.fa[l>>>a.na],p=a;k?0===l.ga++&&(p&&(l.A=p),ac(l,$b,!1)):0===l.V++&&(p&&(l.A=p),Zb(l,$b,!1))}else l=a.fa[l>>>a.na],k?0===--l.ga&&(k=l,k.dc=k.O?k.ra:k.Ze,k.$e=k.O?k.ha:k.gi,k.wg=k.O?k.ma:k.na):0===--l.V&&(k=l,k.jc=k.je,k.og=k.pg,k.Id=k.ci)}c>>=2;d>>=4}} +function Wb(a,b,c,d){if(!(a.O&8192)&&a.pb[7]&255){c--;var e=a.pb[7],k=e>>16;d=d?1:0==d?3:0;for(var l=0;4>l;l++){if(e&3&&(k&3)==d){var p=k>>2;if(b+c>=a.pb[l]&&b<=a.pb[l]+p){a.pb[6]|=1<>=2;k>>=4}}}function Gc(a,b,c){void 0===b&&(b=!!(a.Aa&1));void 0===c&&(c=!!(a.T&131072));a.ni=b&&!c?Ud:Wc;Bc(a.ka,!1,b,c);Bc(a.Ha,!1,b,c);Bc(a.Z,!1,b,c);Bc(a.ya,!1,b,c);80386<=a.ga&&(Bc(a.bb,!1,b,c),Bc(a.lb,!1,b,c),Ic(a))} +f.save=function(){var a=new Vd(this);E(a,0,[this.G,this.D,this.F,this.H,t(this),this.L,this.K,this.I]);var b=v(this),c=this.ka.save(),d=this.Ha.save(),e=this.Z.save(),k=this.ya.save(),l;null!=this.Xb?(l=[this.Aa,this.Xb,this.wd,this.Ob,this.Vc,this.Fc.save(),this.qa.save(),this.Cb],80386<=this.ga&&(l.push(this.Di),l.push(this.yd),l.push(this.Yc),l.push(this.pb),l.push(this.gf))):l=null;b=[b,c,d,e,k,l,Lc(this)];80386<=this.ga&&(b.push(this.bb.save()),b.push(this.lb.save()));E(a,1,b);E(a,2,[this.U.tg, +this.V.tg,this.O,this.ja,this.Fa,this.P,this.pa]);E(a,3,[0,this.Wc,this.W.qd]);b=this.ma;c=0;d=[];(e=!b.I&&b.ga==b.D)||ub(b,!0);for(k=0;kc&&0<=(a.ff^a.ha)&&(8088>=a.ga||a.ka.Za==a.ka.ua?F(a,a.ha-a.ka.Ba):-1>c&&m.call(a,13,0))}function t(a){return a.Qb&~a.Z.ua|a.va-a.Z.Ba}function r(a,b){a.Qb=b;a.va=a.Z.Ba+(b&a.Z.ua)|0}function Zd(a,b,c,d,e,k){if(63!=(e&63)&&e!=a.resultType){var l=(e^a.resultType)&a.resultType;l&&(l&1&&$d(a),l&2&&ae(a),l&4&&be(a),l&8&&ce(a),l&16&&de(a),l&32&&ee(a))}k?(a.Bd=d,a.Ad=b):(a.Bd=b,a.Ad=d);a.ye=c;a.qe=d;a.resultType=e} -function fe(a,b,c,d,e){a.resultType=c|26;a.qe=b;d?ge(a):he(a);e?ie(a):je(a);return b}function ke(a,b,c,d){c&d?ge(a):he(a);(b^c)&d?ie(a):je(a)}function le(a){return $d(a)?1:0}function $d(a){a.resultType&1&&(a.T&=-2,(a.Bd^(a.Bd^a.ye)&(a.ye^a.Ad))&a.resultType&-2147450752&&(a.T|=1),a.resultType&=-2);return a.T&1}function ae(a){a.resultType&2&&(a.T&=-5,38505>>((a.qe^a.qe>>4)&15)&1&&(a.T|=4),a.resultType&=-3);return a.T&4} -function be(a){a.resultType&4&&(a.T&=-17,(a.Ad^a.Bd^a.ye)&16&&(a.T|=16),a.resultType&=-5);return a.T&16}function ce(a){a.resultType&8&&(a.T&=-65,a.qe&((a.resultType&-2147450752)-1|a.resultType&-2147450752)||(a.T|=64),a.resultType&=-9);return a.T&64}function de(a){a.resultType&16&&(a.T&=-129,a.qe&a.resultType&-2147450752&&(a.T|=128),a.resultType&=-17);return a.T&128} -function ee(a){a.resultType&32&&(a.T&=-2049,(a.Bd^a.Ad)&(a.ye^a.Ad)&a.resultType&-2147450752&&(a.T|=2048),a.resultType&=-33);return a.T&2048}function he(a){a.resultType&=-2;a.T&=-2}function me(a){a.resultType&=-5;a.T&=-17}function ne(a){a.resultType&=-9;a.T&=-65}function je(a){a.resultType&=-33;a.T&=-2049}function ge(a){a.resultType&=-2;a.T|=1}function oe(a){a.resultType&=-5;a.T|=16}function pe(a){a.resultType&=-9;a.T|=64}function ie(a){a.resultType&=-33;a.T|=2048} -function Lc(a){return a.T&-2262|$d(a)|ae(a)|be(a)|ce(a)|de(a)|ee(a)}function qe(a,b){b=b|a.Aa&1|65520;a.Aa=a.Aa&-65536|b&65535;a.Aa&1&&Gc(a,!0)}function Mc(a,b,c){a.Aa&1||(b&=~a.ii);void 0===c&&(c=a.Ea);c?b=b&-12289|a.T&12288:a.Cb=(b&12288)>>12;c>a.Cb&&(b=b&-513|a.T&512);a.resultType=128;a.T=a.T&~(a.wd|2261)|b&(a.wd|2261)|a.ji;a.T&256&&(a.Fa|=2,a.O|=4)} -function re(a,b,c,d){var e=0;if(a.Aa&1&&(a.Ea>a.Cb||a.T&131072)&&a.qa.si)for(var k=a.qa.si+(b>>>3),e=(1<>>=8,k++;return e?(a.Sa(256)&&a.Ma("checkIOPM(0x"+da(b,4)+","+c+","+(d?"input":"output")+"): trapped",!0,!0),m.call(a,13,0,!1),!1):!0} +function Ec(a,b,c){var d=t(a);a.Z.load(b)!==g&&(r(a,d),a.Z.nd?(a.Ag=a.Z.Ba+a.Z.ua|0,a.we=a.Z.Ba+a.Z.Za|0):(a.Ag=a.Z.Ba+a.Z.Za|0,a.we=a.Z.Ba),c||(a.O|=4))}function Kc(a,b){a.ya.load(b)!==g&&(a.O|=a.af)}function v(a){return a.ha-a.ka.Ba|0}function F(a,b){a.ha=a.ka.Ba+(b&a.C)|0}function Nc(a,b,c,d){var e=a.ka;e.Ue=b;e.F=d;b=e.load(c);return b!==g?(Ic(a),a.ha=b+(a.ka.Ue&a.C)|0,a.ff=b+a.ka.Za|0,a.Ea=a.ka.xb,a.ka.Xd):null} +function Yd(a,b){a.ha=a.ha+b|0;var c=a.ff-a.ha|0;0>c&&0<=(a.ff^a.ha)&&(8088>=a.ga||a.ka.Za==a.ka.ua?F(a,a.ha-a.ka.Ba):-1>c&&m.call(a,13,0))}function t(a){return a.Qb&~a.Z.ua|a.va-a.Z.Ba}function r(a,b){a.Qb=b;a.va=a.Z.Ba+(b&a.Z.ua)|0}function Zd(a,b,c,d,e,k){if(63!=(e&63)&&e!=a.resultType){var l=(e^a.resultType)&a.resultType;l&&(l&1&&$d(a),l&2&&ae(a),l&4&&be(a),l&8&&ce(a),l&16&&de(a),l&32&&ee(a))}k?(a.Ad=d,a.zd=b):(a.Ad=b,a.zd=d);a.xe=c;a.pe=d;a.resultType=e} +function fe(a,b,c,d,e){a.resultType=c|26;a.pe=b;d?ge(a):he(a);e?ie(a):je(a);return b}function ke(a,b,c,d){c&d?ge(a):he(a);(b^c)&d?ie(a):je(a)}function le(a){return $d(a)?1:0}function $d(a){a.resultType&1&&(a.T&=-2,(a.Ad^(a.Ad^a.xe)&(a.xe^a.zd))&a.resultType&-2147450752&&(a.T|=1),a.resultType&=-2);return a.T&1}function ae(a){a.resultType&2&&(a.T&=-5,38505>>((a.pe^a.pe>>4)&15)&1&&(a.T|=4),a.resultType&=-3);return a.T&4} +function be(a){a.resultType&4&&(a.T&=-17,(a.zd^a.Ad^a.xe)&16&&(a.T|=16),a.resultType&=-5);return a.T&16}function ce(a){a.resultType&8&&(a.T&=-65,a.pe&((a.resultType&-2147450752)-1|a.resultType&-2147450752)||(a.T|=64),a.resultType&=-9);return a.T&64}function de(a){a.resultType&16&&(a.T&=-129,a.pe&a.resultType&-2147450752&&(a.T|=128),a.resultType&=-17);return a.T&128} +function ee(a){a.resultType&32&&(a.T&=-2049,(a.Ad^a.zd)&(a.xe^a.zd)&a.resultType&-2147450752&&(a.T|=2048),a.resultType&=-33);return a.T&2048}function he(a){a.resultType&=-2;a.T&=-2}function me(a){a.resultType&=-5;a.T&=-17}function ne(a){a.resultType&=-9;a.T&=-65}function je(a){a.resultType&=-33;a.T&=-2049}function ge(a){a.resultType&=-2;a.T|=1}function oe(a){a.resultType&=-5;a.T|=16}function pe(a){a.resultType&=-9;a.T|=64}function ie(a){a.resultType&=-33;a.T|=2048} +function Lc(a){return a.T&-2262|$d(a)|ae(a)|be(a)|ce(a)|de(a)|ee(a)}function qe(a,b){b=b|a.Aa&1|65520;a.Aa=a.Aa&-65536|b&65535;a.Aa&1&&Gc(a,!0)}function Mc(a,b,c){a.Aa&1||(b&=~a.ii);void 0===c&&(c=a.Ea);c?b=b&-12289|a.T&12288:a.Cb=(b&12288)>>12;c>a.Cb&&(b=b&-513|a.T&512);a.resultType=128;a.T=a.T&~(a.vd|2261)|b&(a.vd|2261)|a.ji;a.T&256&&(a.Fa|=2,a.O|=4)} +function re(a,b,c,d){var e=0;if(a.Aa&1&&(a.Ea>a.Cb||a.T&131072)&&a.qa.si)for(var k=a.qa.si+(b>>>3),e=(1<>>=8,k++;return e?(a.Sa(256)&&a.Ma("checkIOPM(0x"+da(b,4)+","+c+","+(d?"input":"output")+"): trapped",!0,!0),m.call(a,13,0,!1),!1):!0} f.Hb=function(a,b,c){var d=!1;switch(b){case "EAX":case "EBX":case "ECX":case "EDX":case "ESP":case "EBP":case "ESI":case "EDI":case "EIP":case "AX":case "BX":case "CX":case "DX":case "SP":case "BP":case "SI":case "DI":case "IP":case "PC":case "CS":case "DS":case "SS":case "ES":case "FS":case "GS":case "CR0":case "CR2":case "CR3":case "PS":case "C":case "P":case "A":case "Z":case "S":case "T":case "I":case "D":case "V":this.ra[b]=c;this.oi++;d=!0;break;default:d=this.parent.Hb.call(this,a,b,c)}return d}; -function se(a,b){var c=a.fa[(b&a.hc)>>>a.na];c&&5==c.type&&(c=Yb(a,b,!1,!0));if(c){var d=b&a.Jb;switch(void 0){default:return c.ke(d,b);case 2:return c.pg(d,b);case 4:return c.ci(d,b)}}return null}f.Sb=function(a){return this.fa[(a&this.hc)>>>this.na].jc(a&this.Jb,a)};f.la=function(a){var b=a&this.Jb,c=(a&this.hc)>>>this.na;this.A-=this.B.Se;if(b>>this.na;if(b>>this.na].dc(a&this.Jb,b&255,a)};f.zb=function(a,b){var c=a&this.Jb,d=(a&this.hc)>>>this.na;this.A-=this.B.Se;c>8&255,a+1))}; -f.vb=function(a,b){var c=a&this.Jb,d=(a&this.hc)>>>this.na;this.A-=this.B.Se;if(c>>=8}};function te(a,b,c){a.Ec=b;a.P=b.fc(a.tc=c,1);return a.O&1?0:a.Sb(a.P)}function H(a,b){return te(a,a.U,b&a.ua)}function I(a,b){return te(a,a.V,b&a.ua)}function ue(a,b,c){a.Ec=b;a.P=b.fc(a.tc=c,a.aa);return a.O&1?0:a.Lc(a.P)}function J(a,b){return ue(a,a.U,b&a.ua)} +function se(a,b){var c=a.fa[(b&a.hc)>>>a.na];c&&5==c.type&&(c=Yb(a,b,!1,!0));if(c){var d=b&a.Jb;switch(void 0){default:return c.je(d,b);case 2:return c.pg(d,b);case 4:return c.ci(d,b)}}return null}f.Sb=function(a){return this.fa[(a&this.hc)>>>this.na].jc(a&this.Jb,a)};f.la=function(a){var b=a&this.Jb,c=(a&this.hc)>>>this.na;this.A-=this.B.Se;if(b>>this.na;if(b>>this.na].dc(a&this.Jb,b&255,a)};f.zb=function(a,b){var c=a&this.Jb,d=(a&this.hc)>>>this.na;this.A-=this.B.Se;c>8&255,a+1))}; +f.vb=function(a,b){var c=a&this.Jb,d=(a&this.hc)>>>this.na;this.A-=this.B.Se;if(c>>=8}};function te(a,b,c){a.Ec=b;a.P=b.fc(a.tc=c,1);return a.O&1?0:a.Sb(a.P)}function H(a,b){return te(a,a.U,b&a.ua)}function I(a,b){return te(a,a.V,b&a.ua)}function ue(a,b,c){a.Ec=b;a.P=b.fc(a.tc=c,a.aa);return a.O&1?0:a.Lc(a.P)}function J(a,b){return ue(a,a.U,b&a.ua)} function K(a,b){return ue(a,a.V,b&a.ua)}function ve(a,b,c){a.Ec=b;a.pa=a.P=b.fc(a.tc=c,1);return a.O&1?0:a.Sb(a.P)}function L(a,b){return ve(a,a.U,b&a.ua)}function M(a,b){return ve(a,a.V,b&a.ua)}function we(a,b,c){a.Ec=b;a.pa=a.P=b.fc(a.tc=c,a.aa);return a.O&1?0:a.Lc(a.P)}function N(a,b){return we(a,a.U,b&a.ua)}function O(a,b){return we(a,a.V,b&a.ua)}function P(a,b){a.O&2||a.Gc(a.Ec.Vb(a.tc,1),b)}function Q(a,b){a.O&2||a.hd(a.Ec.Vb(a.tc,a.aa),b)}function Hc(a,b,c){return a.Lc(b.fc(c,a.aa))} f.X=function(){var a=this.Sb(this.ha);Yd(this,1);return a};function xe(a){var b=a.la(a.ha);Yd(a,2);return b}function S(a){var b=a.wi(a.ha);Yd(a,a.Nc);return b}f.Ca=function(){var a=this.Lc(this.ha);Yd(this,this.aa);return a};f.M=function(){var a=this.Sb(this.ha)<<24>>24;Yd(this,1);return a};function T(a,b){var c=a.Sb(a.ha);Yd(a,1);return ye[c].call(a,b)} -function n(a){var b=a.Lc(a.va);a.va=a.va+a.aa|0;var c=a.Ag-a.va|0;0>c&&0<=(a.Ag^a.va)&&(8088>=a.ga||!a.Z.od&&a.Z.Za==a.Z.ua||a.Z.od&&!a.Z.Za?r(a,a.va-a.Z.Ba&a.Z.ua):-1>c&&m.call(a,12,0));return b}function ze(a,b,c){a.va=a.va-c|0;0>(a.va-a.xe|0)&&0<=(a.xe^a.va)&&(8088>=a.ga||!a.Z.od&&a.Z.Za==a.Z.ua||a.Z.od&&!a.Z.Za?r(a,a.va-a.Z.Ba&a.Z.ua):m.call(a,12,0));2==c?a.zb(a.va,b):a.vb(a.va,b)} -function u(a,b){a.va=a.va-a.aa|0;0>(a.va-a.xe|0)&&0<=(a.xe^a.va)&&(8088>=a.ga||!a.Z.od&&a.Z.Za==a.Z.ua||a.Z.od&&!a.Z.Za?r(a,a.va-a.Z.Ba&a.Z.ua):m.call(a,12,0));a.hd(a.va,b)}function Ae(a,b,c){var d=4;1==b.length&&(d=1,c=c?1:0);if(80386>a.ga)2this.ga?0:1;for(var b=0;2>b;b++){switch(a){case 0:if(this.Fa&1&&this.T&512){var c=Be(this.Y);if(-1<=c&&(this.Fa&=-2,0<=c)){this.Fa&=-5;Ce.call(this,this.Zb=c,null,11);break a}}break;case 1:if(this.Fa& +function n(a){var b=a.Lc(a.va);a.va=a.va+a.aa|0;var c=a.Ag-a.va|0;0>c&&0<=(a.Ag^a.va)&&(8088>=a.ga||!a.Z.nd&&a.Z.Za==a.Z.ua||a.Z.nd&&!a.Z.Za?r(a,a.va-a.Z.Ba&a.Z.ua):-1>c&&m.call(a,12,0));return b}function ze(a,b,c){a.va=a.va-c|0;0>(a.va-a.we|0)&&0<=(a.we^a.va)&&(8088>=a.ga||!a.Z.nd&&a.Z.Za==a.Z.ua||a.Z.nd&&!a.Z.Za?r(a,a.va-a.Z.Ba&a.Z.ua):m.call(a,12,0));2==c?a.zb(a.va,b):a.vb(a.va,b)} +function u(a,b){a.va=a.va-a.aa|0;0>(a.va-a.we|0)&&0<=(a.we^a.va)&&(8088>=a.ga||!a.Z.nd&&a.Z.Za==a.Z.ua||a.Z.nd&&!a.Z.Za?r(a,a.va-a.Z.Ba&a.Z.ua):m.call(a,12,0));a.hd(a.va,b)}function Ae(a,b,c){var d=4;1==b.length&&(d=1,c=c?1:0);if(80386>a.ga)2this.ga?0:1;for(var b=0;2>b;b++){switch(a){case 0:if(this.Fa&1&&this.T&512){var c=Be(this.Y);if(-1<=c&&(this.Fa&=-2,0<=c)){this.Fa&=-5;Ce.call(this,this.Zb=c,null,11);break a}}break;case 1:if(this.Fa& 2){this.Fa&=-3;80386<=this.ga&&(this.pb[6]|=16384);Ce.call(this,this.Zb=1,null,11);break a}}a=1-a}}if(a=this.Fa&8){a=this.Y;b=!1;for(c=0;c>>=1;c++;d--}}else pe(this);this.A-=11+3*c;return a}function Oe(a,b){a&1<<(b&(2==this.aa?15:31))?ge(this):he(this);this.A-=this.P===g?3:6;this.O|=2;return a}function Pe(a,b){var c=1<<(b&(2==this.aa?15:31));a&c?ge(this):he(this);this.A-=this.P===g?6:8;return a^c}function Qe(a,b){var c=1<<(b&(2==this.aa?15:31));a&c?ge(this):he(this);this.A-=this.P===g?6:8;return a&~c} function Re(a,b){var c=1<<(b&(2==this.aa?15:31));a&c?ge(this):he(this);this.A-=this.P===g?6:8;return a|c}function Se(a,b){if(this.P===g)return Oe.call(this,a,b);var c=this.aa<<3;if(b>=c||b<-c)a=ue(this,this.Ec,this.tc+(b>>(2==this.aa?4:5))*this.aa);b=1<<(b&(2==this.aa?15:31));a&b?ge(this):he(this);this.A-=6;this.O|=2;return a} function Te(a,b){if(this.P===g)return Pe.call(this,a,b);var c=this.aa<<3;if(b>=c||b<-c)a=ue(this,this.Ec,this.tc+(b>>(2==this.aa?4:5))*this.aa);b=1<<(b&(2==this.aa?15:31));a&b?ge(this):he(this);this.A-=8;return a^b}function Ue(a,b){if(this.P===g)return Qe.call(this,a,b);var c=this.aa<<3;if(b>=c||b<-c)a=ue(this,this.Ec,this.tc+(b>>(2==this.aa?4:5))*this.aa);b=1<<(b&(2==this.aa?15:31));a&b?ge(this):he(this);this.A-=8;return a&~b} -function Ve(a,b){if(this.P===g)return Re.call(this,a,b);var c=this.aa<<3;if(b>=c||b<-c)a=ue(this,this.Ec,this.tc+(b>>(2==this.aa?4:5))*this.aa);b=1<<(b&(2==this.aa?15:31));a&b?ge(this):he(this);this.A-=8;return a|b}function We(a,b){var c=this.ka.oa,d=v(this),e=this.ka.aa;null!=Nc(this,a,b,!0)&&(ze(this,c,e),ze(this,d,e))}function Xe(a,b){Zd(this,a,b,a-b|0,191,!0);this.A-=this.pa===g?this.P===g?this.B.Lb:this.B.Ff:this.B.ub;this.O|=2;return a} +function Ve(a,b){if(this.P===g)return Re.call(this,a,b);var c=this.aa<<3;if(b>=c||b<-c)a=ue(this,this.Ec,this.tc+(b>>(2==this.aa?4:5))*this.aa);b=1<<(b&(2==this.aa?15:31));a&b?ge(this):he(this);this.A-=8;return a|b}function We(a,b){var c=this.ka.oa,d=v(this),e=this.aa;null!=Nc(this,a,b,!0)&&(ze(this,c,e),ze(this,d,e))}function Xe(a,b){Zd(this,a,b,a-b|0,191,!0);this.A-=this.pa===g?this.P===g?this.B.Lb:this.B.Ff:this.B.ub;this.O|=2;return a} function Ye(a,b){Zd(this,a,b,a-b|0,this.ab|63,!0);this.A-=this.pa===g?this.P===g?this.B.Lb:this.B.Ff:this.B.ub;this.O|=2;return a}function Ze(a){var b=a-1|0;Zd(this,a,1,b,this.ab|62,!0);this.A-=2;return a&~this.C|b&this.C}function $e(a,b){var c=a[1]-b[1];c||(c=a[0]-b[0]);return c} function af(a,b,c){this.Ua=!1;if((c>>>=0)&&!(c<=b>>>0)){var d=0,e=1;c=[c>>>0,0];for(a=[a>>>0,b>>>0];0<$e(a,c);){var k=b=c;b[0]+=k[0];b[1]+=k[1];4294967295>>=0,b[1]++);e+=e}do 0<=$e(a,c)&&(b=a,k=c,b[0]-=k[0],b[1]-=k[1],0>b[0]&&(b[0]>>>=0,b[1]--),d+=e),b=c,b[0]>>>=1,b[1]&1&&(b[0]=(b[0]|2147483648)>>>0),b[1]>>>=1,e>>>=1;while(e);this.Da=d;this.Xa=a[0];this.Ua=!0}}function df(a){return a} function ef(a,b){a=this.M();var c=(b<<16>>16)*a|0;32767c?(ge(this),ie(this)):(he(this),je(this));this.A-=this.P===g?21:24;return c&65535}function ff(a,b){var c,d;a=this.Ca();2==this.aa?(d=(b<<16>>16)*(a<<16>>16)|0,c=32767d):(d=b*a,c=2147483647d);c?(ge(this),ie(this)):(he(this),je(this));d&=this.C;this.A-=this.P===g?21:24;return d} function gf(a,b){var c=(a<<16>>16)*(b<<16>>16)|0;32767c?(ge(this),ie(this)):(he(this),je(this));this.A-=this.P===g?9:12;return c&65535}function hf(a,b){var c=a*b;2147483647c?(ge(this),ie(this)):(he(this),je(this));this.A-=this.P===g?9:12;return c|0}function jf(a){var b=a+1|0;Zd(this,a,1,b,this.ab|62);this.A-=2;return a&~this.C|b&this.C} -function Ce(a,b,c){this.A-=this.B.wh+c;c=Lc(this);var d=this.ka.oa,e=v(this);a=this.ka.Pi(a);if(a!==g){var k=this.ka.vg;ze(this,c,k);ze(this,d,k);ze(this,e,k);null!=b&&ze(this,b,k);this.Zb=-1;Ic(this);this.ha=a;this.ff=this.ka.Ba+this.ka.Za|0;this.Ea=this.ka.xb}}function kf(a,b){this.A-=14+(this.P===g?0:2);ne(this);this.Oa.load(b)!==g&&this.Oa.oc>=this.Ea&&this.Oa.oc>=(b&3)&&(pe(this),a=this.Oa.mb&-256,2=this.Ea)&&this.Oa.oc>=(b&3))return pe(this),this.Oa.Za;ne(this);return a}function rf(a,b){if(this.P===g)return qd.call(this),a;Ec(this,this.la(this.P+this.aa));this.A-=this.B.Id;return b} +function Ce(a,b,c){this.A-=this.B.wh+c;c=Lc(this);var d=this.ka.oa,e=v(this);a=this.ka.Oi(a);if(a!==g){var k=this.ka.vg;ze(this,c,k);ze(this,d,k);ze(this,e,k);null!=b&&ze(this,b,k);this.Zb=-1;Ic(this);this.ha=a;this.ff=this.ka.Ba+this.ka.Za|0;this.Ea=this.ka.xb}}function kf(a,b){this.A-=14+(this.P===g?0:2);ne(this);this.Oa.load(b)!==g&&this.Oa.oc>=this.Ea&&this.Oa.oc>=(b&3)&&(pe(this),a=this.Oa.mb&-256,2=this.Ea)&&this.Oa.oc>=(b&3))return pe(this),this.Oa.Za;ne(this);return a}function rf(a,b){if(this.P===g)return qd.call(this),a;Ec(this,this.la(this.P+this.aa));this.A-=this.B.Hd;return b} function sf(a,b){this.A-=this.pa===g?this.P===g?this.B.Lh:this.B.Kh:this.B.Ih;return b}function tf(a,b){return b}function uf(){this.pa!==g&&Nd(this);return sf.call(this,0,this.Dc)}function vf(a,b){var c=b&65535,d=b>>>16,e=a&65535,k=a>>>16,l=c*e,e=(l>>>16)+d*e,p=e>>>16,e=(e&65535)+c*k;this.Ua=!0;this.Da=e<<16|l&65535;this.Xa=p+((e>>>16)+d*k)|0}function wf(a,b){this.A-=this.pa===g?this.P===g?this.B.Lb:this.B.ub:this.B.$b;return fe(this,a|b,128)} function xf(a,b){this.A-=this.pa===g?this.P===g?this.B.Lb:this.B.ub:this.B.$b;return fe(this,a|b,this.ab)}function yf(a){this.Wa=this.va;var b=n(this),c=n(this);a&&r(this,t(this)+a);Nc(this,b,c,!1)&&(a&&r(this,t(this)+a),Dd(this,this.Ha),Dd(this,this.ya),80386<=this.ga&&(Dd(this,this.bb),Dd(this,this.lb)));2==a&&this.zg&&Sd(this,this.ha);this.Wa=g}function zf(a,b){var c=a-b-le(this)|0;Zd(this,a,b,c,191,!0);this.A-=this.pa===g?this.P===g?this.B.Lb:this.B.ub:this.B.$b;return c&255} function Af(a,b){var c=a-b-le(this)|0;Zd(this,a,b,c,this.ab|63,!0);this.A-=this.pa===g?this.P===g?this.B.Lb:this.B.ub:this.B.$b;return c&this.C}function Bf(a){this.O|=1;this.Ib[this.X()].call(this,a);this.A-=this.P===g?4:5}function Cf(){return ee(this)?1:0}function Df(){return $d(this)?1:0}function Ef(){return $d(this)?0:1}function Ff(){return ce(this)?1:0}function Gf(){return ce(this)?0:1}function Hf(){return $d(this)||ce(this)?1:0}function If(){return $d(this)||ce(this)?0:1} function Jf(){return de(this)?1:0}function Kf(){return de(this)?0:1}function Lf(){return ae(this)?1:0}function Mf(){return ae(this)?0:1}function Nf(){return!de(this)!=!ee(this)?1:0}function Of(){return!de(this)!=!ee(this)?0:1}function Pf(){return ce(this)||!de(this)!=!ee(this)?1:0}function Qf(){return ce(this)||!de(this)!=!ee(this)?0:1}function Rf(a,b,c){if(c){16>>16-c)&65535;fe(this,a,32768,d&32768)}return a} function Sf(a,b,c){if(c){var d=a<>>32-c;fe(this,a,-2147483648,d&-2147483648)}return a}function Tf(a,b){return Rf.call(this,a,b,this.X())}function Uf(a,b){return Sf.call(this,a,b,this.X())}function Vf(a,b){return Rf.call(this,a,b,this.F&31)}function Wf(a,b){return Sf.call(this,a,b,this.F&31)}function Xf(a,b,c){if(c){16>>c-1;a=(d>>>1|b<<16-c)&65535;fe(this,a,32768,d&1)}return a} function Yf(a,b,c){if(c){var d=a>>>c-1;a=d>>>1|b<<32-c;fe(this,a,-2147483648,d&1)}return a}function Zf(a,b){return Xf.call(this,a,b,this.X())}function $f(a,b){return Yf.call(this,a,b,this.X())}function ag(a,b){return Xf.call(this,a,b,this.F&31)}function bg(a,b){return Yf.call(this,a,b,this.F&31)}function cg(a,b){var c=a-b|0;Zd(this,a,b,c,191,!0);this.A-=this.pa===g?this.P===g?this.B.Lb:this.B.ub:this.B.$b;return c&255} -function dg(a,b){var c=a-b|0;Zd(this,a,b,c,this.ab|63,!0);this.A-=this.pa===g?this.P===g?this.B.Lb:this.B.ub:this.B.$b;return c&this.C}function eg(a,b){fe(this,a&b,128);this.A-=this.pa===g?this.P===g?this.B.gg:this.B.ie:this.B.ie;this.O|=2;return a}function fg(a,b){fe(this,a&b,this.ab);this.A-=this.pa===g?this.P===g?this.B.gg:this.B.ie:this.B.ie;this.O|=2;return a} +function dg(a,b){var c=a-b|0;Zd(this,a,b,c,this.ab|63,!0);this.A-=this.pa===g?this.P===g?this.B.Lb:this.B.ub:this.B.$b;return c&this.C}function eg(a,b){fe(this,a&b,128);this.A-=this.pa===g?this.P===g?this.B.gg:this.B.he:this.B.he;this.O|=2;return a}function fg(a,b){fe(this,a&b,this.ab);this.A-=this.pa===g?this.P===g?this.B.gg:this.B.he:this.B.he;this.O|=2;return a} function gg(a,b){if(this.P===g){switch(this.ef&7){case 0:this.G=this.G&-256|a;break;case 1:this.F=this.F&-256|a;break;case 2:this.H=this.H&-256|a;break;case 3:this.D=this.D&-256|a;break;case 4:this.G=this.G&-65281|a<<8;break;case 5:this.F=this.F&-65281|a<<8;break;case 6:this.H=this.H&-65281|a<<8;break;case 7:this.D=this.D&-65281|a<<8}this.A-=this.B.ig}else this.pa=this.P,P(this,a),this.A-=this.B.hg;return b} function hg(a,b){if(this.P===g){switch(this.ef&7){case 0:this.G=this.G&~this.C|a;break;case 1:this.F=this.F&~this.C|a;break;case 2:this.H=this.H&~this.C|a;break;case 3:this.D=this.D&~this.C|a;break;case 4:r(this,t(this)&~this.C|a);break;case 5:this.L=this.D&~this.C|a;break;case 6:this.K=this.K&~this.C|a;break;case 7:this.I=this.I&~this.C|a}this.A-=this.B.ig}else this.pa=this.P,Q(this,a),this.A-=this.B.hg;return b} function ig(a,b){var c=a^b;fe(this,c,128);this.A-=this.pa===g?this.P===g?this.B.Lb:this.B.ub:this.B.$b;return c}function jg(a,b){this.A-=this.pa===g?this.P===g?this.B.Lb:this.B.ub:this.B.$b;return fe(this,a^b,this.ab)}function kg(a){m.call(this,13,0);return a}function nd(a){m.call(this,6);return a}function lg(a){qd.call(this);return a}function mg(){m.call(this,0,null,!1,2)}function ng(){this.A-=this.P===g?2:this.B.Yh;return 1} function og(){var a=this.F&255;this.A-=(this.P===g?this.B.$f:this.B.Zf)+(a<this.Zb?(F(this,this.Na-this.ka.Ba),this.Wa!=g&&(r(this,this.Qb&~this.Z.ua|this.Wa-this.Z.Ba),this.Wa=g),e=!0):8!=this.Zb?(b=0,a=8,e=!0):(a=-1,b=0,xd(this),c=!1)):F(this,this.Na-this.ka.Ba);var k=a,l=b,p=32,q=se(this,this.ha);204!=q||this.Vc||(c=!1);this.T&131072&&(6==k&&99==q||13==k&&205==q)&&(c=!1);14==k&&207==q&&(c=!0);!1===c&&(p|=1);983040<=this.ha&&1048575>=this.ha&&(c=!1);this.Sa(p|-2147483648)&&(c=!0);if(this.Sa(p)||c){var w=this.ia.Kb, -k="Fault "+ea(k)+(null!=l?" (0x"+da(l,4)+")":"")+" on opcode "+ea(q);c&&w&&(k+=" (blocked by PCjs Debugger)");this.Ma(k,c||p,!0)?c&&(c=w,oc(this.Qa)):(this.Ja(k),oc(this))}c&&(e=!1);if(e)throw this.Zb=a,Ce.call(this,a,b,d||0),this.Na=this.ha,this.O=1==a?this.O|8192:this.O|4096,a;}function zd(a,b,c){this.zd=a;a=0;b&&(a|=1);c&&(a|=2);3==this.Ea&&(a|=4);m.call(this,14,a)}function od(){this.ue[this.X()].call(this)}function rd(){u(this,t(this)&this.C);this.A-=this.B.ic} +function m(a,b,c,d){var e=null;this.ia.Fe?80186<=this.ga&&(0>this.Zb?(Ic(this),F(this,this.Na-this.ka.Ba),this.Wa!=g&&(r(this,this.Qb&~this.Z.ua|this.Wa-this.Z.Ba),this.Wa=g),e=!0):8!=this.Zb?(b=0,a=8,e=!0):(a=-1,b=0,xd(this),c=!1)):(Ic(this),F(this,this.Na-this.ka.Ba));var k=a,l=b,p=32,q=se(this,this.ha);204!=q||this.Vc||(c=!1);this.T&131072&&(6==k&&99==q||13==k&&205==q)&&(c=!1);14==k&&207==q&&(c=!0);!1===c&&(p|=1);983040<=this.ha&&1048575>=this.ha&&(c=!1);this.Sa(p|-2147483648)&&(c=!0);if(this.Sa(p)|| +c){var w=this.ia.Kb,k="Fault "+ea(k)+(null!=l?" (0x"+da(l,4)+")":"")+" on opcode "+ea(q);c&&w&&(k+=" (blocked by PCjs Debugger)");this.Ma(k,c||p,!0)?c&&(c=w,oc(this.Qa)):(this.Ja(k),oc(this))}c&&(e=!1);if(e)throw this.Zb=a,Ce.call(this,a,b,d||0),this.Na=this.ha,this.O=1==a?this.O|8192:this.O|4096,a;}function zd(a,b,c){this.yd=a;a=0;b&&(a|=1);c&&(a|=2);3==this.Ea&&(a|=4);m.call(this,14,a)}function od(){this.te[this.X()].call(this)}function rd(){u(this,t(this)&this.C);this.A-=this.B.ic} function Yc(){var a=t(this)&this.C;u(this,this.G&this.C);u(this,this.F&this.C);u(this,this.H&this.C);u(this,this.D&this.C);u(this,a);u(this,this.L&this.C);u(this,this.K&this.C);u(this,this.I&this.C);this.A-=this.B.Sh}function Zc(){this.I=this.I&~this.C|n(this);this.K=this.K&~this.C|n(this);this.L=this.L&~this.C|n(this);r(this,t(this)+this.aa);this.D=this.D&~this.C|n(this);this.H=this.H&~this.C|n(this);this.F=this.F&~this.C|n(this);this.G=this.G&~this.C|n(this);this.A-=this.B.Qh} function $c(){this.ta[this.X()].call(this,Le)}function sd(){!(this.Aa&1)||this.T&131072?m.call(this,6):this.Ia[this.X()].call(this,Ke)}function td(){this.O|=20;this.U=this.V=this.bb;this.A-=this.B.wc}function ud(){this.O|=20;this.U=this.V=this.lb;this.A-=this.B.wc}function vd(){this.O|=1024;this.ja&1024||(this.aa^=6,this.C^=-65536,Od(this));this.A-=this.B.wc}function wd(){this.O|=2048;this.ja&2048||(this.Nc^=6,this.ua^=-65536,Ed(this));this.A-=this.B.wc} function ad(){u(this,this.Ca());this.A-=this.B.ic}function bd(){this.ta[this.X()].call(this,ff)}function cd(){u(this,this.M());this.A-=this.B.ic}function dd(){this.ta[this.X()].call(this,ef)} @@ -156,14 +156,14 @@ function Dg(){var a=this.M();ae(this)?this.A-=this.B.La:(F(this,v(this)+a),this. function Hg(){var a=this.M();ce(this)||!de(this)!=!ee(this)?this.A-=this.B.La:(F(this,v(this)+a),this.A-=this.B.Ka)}function Ig(){this.Kc[this.X()].call(this,Jg,this.X);this.A-=this.pa===g?1:this.B.Qe}function id(){this.Kc[this.X()].call(this,Kg,pg)}function jd(){this.Ab[this.X()].call(this,2==this.aa?Lg:Mg,pg)}function Ng(){var a=xe(this),b=n(this);F(this,b);a&&r(this,t(this)+a);this.A-=this.B.Xh}function Og(){var a=n(this);F(this,a);this.A-=this.B.Uh} function kd(){var a=xe(this),b=this.X()&31;this.A-=11;u(this,this.L);var c=t(this)&this.C;if(0>8&255;9<(c&15)||be(this)?(c=c+6&15,d=d+1&255,a=b=1):a=b=0;this.G=this.G&-65536|d<<8|c;a?ge(this):he(this);b?oe(this):me(this);this.A-=this.B.sd},function(){this.Ib[this.X()].call(this, -Xe)},function(){this.Ia[this.X()].call(this,Ye)},function(){this.Bb[this.X()].call(this,Xe)},function(){this.ta[this.X()].call(this,Ye)},function(){Xe.call(this,this.G&255,this.X());this.A--},function(){Ye.call(this,this.G&this.C,this.Ca());this.A--},function(){this.O|=20;this.U=this.V=this.Ha;this.A-=this.B.wc},function(){var a,b,c=this.G&255,d=this.G>>8&255;9<(c&15)||be(this)?(c=c-6&15,d=d-1&255,a=b=1):a=b=0;this.G=this.G&-65536|d<<8|c;a?ge(this):he(this);b?oe(this):me(this);this.A-=this.B.sd}, +var Tc=[function(){var a=this.X();this.Ib[a].call(this,Ge)},function(){this.Ia[this.X()].call(this,He)},function(){this.Bb[this.X()].call(this,Ge)},function(){this.ta[this.X()].call(this,He)},function(){this.G=this.G&-256|Ge.call(this,this.G&255,this.X());this.A--},function(){this.G=this.G&~this.C|He.call(this,this.G&this.C,this.Ca());this.A--},function(){u(this,this.ya.oa);this.A-=this.B.sd},function(){this.Wa=this.va;Kc(this,n(this));this.A-=this.B.Mb;this.Wa=g},function(){this.Ib[this.X()].call(this, +wf)},function(){this.Ia[this.X()].call(this,xf)},function(){this.Bb[this.X()].call(this,wf)},function(){this.ta[this.X()].call(this,xf)},function(){this.G=this.G&-256|wf.call(this,this.G&255,this.X());this.A--},function(){this.G=this.G&~this.C|xf.call(this,this.G&this.C,this.Ca());this.A--},function(){u(this,this.ka.oa);this.A-=this.B.sd},function(){Xd(this,n(this));this.A-=this.B.Mb},function(){this.Ib[this.X()].call(this,Ee)},function(){this.Ia[this.X()].call(this,Fe)},function(){this.Bb[this.X()].call(this, +Ee)},function(){this.ta[this.X()].call(this,Fe)},function(){this.G=this.G&-256|Ee.call(this,this.G&255,this.X());this.A--},function(){this.G=this.G&~this.C|Fe.call(this,this.G&this.C,this.Ca());this.A--},function(){u(this,this.Z.oa);this.A-=this.B.sd},function(){this.Wa=this.va;Ec(this,n(this));this.A-=this.B.Mb;this.Wa=g},function(){this.Ib[this.X()].call(this,zf)},function(){this.Ia[this.X()].call(this,Af)},function(){this.Bb[this.X()].call(this,zf)},function(){this.ta[this.X()].call(this,Af)}, +function(){this.G=this.G&-256|zf.call(this,this.G&255,this.X());this.A--},function(){this.G=this.G&~this.C|Af.call(this,this.G&this.C,this.Ca());this.A--},function(){u(this,this.Ha.oa);this.A-=this.B.sd},function(){this.Wa=this.va;Jc(this,n(this));this.A-=this.B.Mb;this.Wa=g},function(){this.Ib[this.X()].call(this,Ie)},function(){this.Ia[this.X()].call(this,Je)},function(){this.Bb[this.X()].call(this,Ie)},function(){this.ta[this.X()].call(this,Je)},function(){this.G=this.G&-256|Ie.call(this,this.G& +255,this.X());this.A--},function(){this.G=this.G&~this.C|Je.call(this,this.G&this.C,this.Ca());this.A--},function(){this.O|=20;this.U=this.V=this.ya;this.A-=this.B.wc},function(){var a=this.G&255,b=be(this),c=$d(this);if(9<(a&15)||b)a+=6,b=16;if(159>8&255;9<(c&15)||be(this)?(c=c+6&15,d=d+1&255,a=b=1):a=b=0;this.G=this.G&-65536|d<<8|c;a?ge(this):he(this);b?oe(this):me(this);this.A-=this.B.rd},function(){this.Ib[this.X()].call(this, +Xe)},function(){this.Ia[this.X()].call(this,Ye)},function(){this.Bb[this.X()].call(this,Xe)},function(){this.ta[this.X()].call(this,Ye)},function(){Xe.call(this,this.G&255,this.X());this.A--},function(){Ye.call(this,this.G&this.C,this.Ca());this.A--},function(){this.O|=20;this.U=this.V=this.Ha;this.A-=this.B.wc},function(){var a,b,c=this.G&255,d=this.G>>8&255;9<(c&15)||be(this)?(c=c-6&15,d=d-1&255,a=b=1):a=b=0;this.G=this.G&-65536|d<<8|c;a?ge(this):he(this);b?oe(this):me(this);this.A-=this.B.rd}, function(){this.G=jf.call(this,this.G)},function(){this.F=jf.call(this,this.F)},function(){this.H=jf.call(this,this.H)},function(){this.D=jf.call(this,this.D)},function(){r(this,jf.call(this,t(this)))},function(){this.L=jf.call(this,this.L)},function(){this.K=jf.call(this,this.K)},function(){this.I=jf.call(this,this.I)},function(){this.G=Ze.call(this,this.G)},function(){this.F=Ze.call(this,this.F)},function(){this.H=Ze.call(this,this.H)},function(){this.D=Ze.call(this,this.D)},function(){r(this,Ze.call(this, t(this)))},function(){this.L=Ze.call(this,this.L)},function(){this.K=Ze.call(this,this.K)},function(){this.I=Ze.call(this,this.I)},function(){u(this,this.G&this.C);this.A-=this.B.ic},function(){u(this,this.F&this.C);this.A-=this.B.ic},function(){u(this,this.H&this.C);this.A-=this.B.ic},function(){u(this,this.D&this.C);this.A-=this.B.ic},function(){u(this,t(this)-2&65535);this.A-=this.B.ic},function(){u(this,this.L&this.C);this.A-=this.B.ic},function(){u(this,this.K&this.C);this.A-=this.B.ic},function(){u(this, this.I&this.C);this.A-=this.B.ic},function(){this.G=this.G&~this.C|n(this);this.A-=this.B.Mb},function(){this.F=this.F&~this.C|n(this);this.A-=this.B.Mb},function(){this.H=this.H&~this.C|n(this);this.A-=this.B.Mb},function(){this.D=this.D&~this.C|n(this);this.A-=this.B.Mb},function(){r(this,t(this)&~this.C|n(this));this.A-=this.B.Mb},function(){this.L=this.L&~this.C|n(this);this.A-=this.B.Mb},function(){this.K=this.K&~this.C|n(this);this.A-=this.B.Mb},function(){this.I=this.I&~this.C|n(this);this.A-= @@ -177,7 +177,7 @@ a&this.C;this.A-=3},function(){var a=this.G;this.G=this.G&~this.C|this.I&this.C; function(){var a=this.G&-256,b;b=S(this);b=this.Sb(this.U.fc(b,1));this.G=a|b;this.A-=this.B.Pf},function(){this.G=this.G&~this.C|Hc(this,this.U,S(this));this.A-=this.B.Pf},function(){var a=S(this),b=this.G;this.Gc(this.U.Vb(a,1),b);this.A-=this.B.Qf},function(){var a=S(this),b=this.G;this.hd(this.U.Vb(a,this.aa),b);this.A-=this.B.Qf},function(){var a=1,b=0,c=this.ua,d=this.B.Rf;this.ja&192&&(a=this.F&c,b=1,d=this.B.Tf,this.ja&256||(this.A-=this.B.Sf));if(a--){var e=this.Sb(this.U.fc(this.K&c,1)); this.Gc(this.ya.Vb(this.I&c,1),e);this.O&4096||(e=this.T&1024?-1:1,this.K=this.K&~c|this.K+e&c,this.I=this.I&~c|this.I+e&c,this.A-=d,this.F=this.F&~c|this.F-b&c,a&&(this.ha=this.Na,this.O|=256))}},function(){var a=1,b=0,c=this.ua,d=this.B.Rf;this.ja&192&&(a=this.F&c,b=1,d=this.B.Tf,this.ja&256||(this.A-=this.B.Sf));if(a--){var e=Hc(this,this.U,this.K&c);this.hd(this.ya.Vb(this.I&c,this.aa),e);this.O&4096||(e=this.T&1024?-this.aa:this.aa,this.K=this.K&~c|this.K+e&c,this.I=this.I&~c|this.I+e&c,this.A-= d,this.F=this.F&~c|this.F-b&c,a&&(this.ha=this.Na,this.O|=256))}},function(){var a=1,b=0,c=this.ua,d=this.B.Cf;this.ja&192&&(a=this.F&c,b=1,d=this.B.Ef,this.ja&256||(this.A-=this.B.Df));if(a--){var e=te(this,this.U,this.K&c),k=ve(this,this.ya,this.I&c);this.O&4096||(Xe.call(this,e,k),e=this.T&1024?-1:1,this.K=this.K&~c|this.K+e&c,this.I=this.I&~c|this.I+e&c,this.F=this.F&~c|this.F-b&c,this.A-=d-this.B.ub,a&&ce(this)==(this.ja&64)&&(this.ha=this.Na,this.O|=256))}},function(){var a=1,b=0,c=this.ua, -d=this.B.Cf;this.ja&192&&(a=this.F&c,b=1,d=this.B.Ef,this.ja&256||(this.A-=this.B.Df));if(a--){var e=ue(this,this.U,this.K&c),k=we(this,this.ya,this.I&c);this.O&4096||(Ye.call(this,e,k),e=this.T&1024?-this.aa:this.aa,this.K=this.K&~c|this.K+e&c,this.I=this.I&~c|this.I+e&c,this.F=this.F&~c|this.F-b&c,this.A-=d-this.B.ub,a&&ce(this)==(this.ja&64)&&(this.ha=this.Na,this.O|=256))}},function(){fe(this,this.G&this.X(),128);this.A-=this.B.sd},function(){fe(this,this.G&this.Ca(),this.ab);this.A-=this.B.sd}, +d=this.B.Cf;this.ja&192&&(a=this.F&c,b=1,d=this.B.Ef,this.ja&256||(this.A-=this.B.Df));if(a--){var e=ue(this,this.U,this.K&c),k=we(this,this.ya,this.I&c);this.O&4096||(Ye.call(this,e,k),e=this.T&1024?-this.aa:this.aa,this.K=this.K&~c|this.K+e&c,this.I=this.I&~c|this.I+e&c,this.F=this.F&~c|this.F-b&c,this.A-=d-this.B.ub,a&&ce(this)==(this.ja&64)&&(this.ha=this.Na,this.O|=256))}},function(){fe(this,this.G&this.X(),128);this.A-=this.B.rd},function(){fe(this,this.G&this.Ca(),this.ab);this.A-=this.B.rd}, function(){var a=1,b=0,c=this.ua,d=this.B.bg;this.ja&192&&(a=this.F&c,b=1,d=this.B.dg,this.ja&256||(this.A-=this.B.cg));if(a--){var e=this.G;this.Gc(this.ya.Vb(this.I&c,1),e);this.O&4096||(this.I=this.I&~c|this.I+(this.T&1024?-1:1)&c,this.F=this.F&~c|this.F-b&c,this.A-=d,a&&(this.ha=this.Na,this.O|=256))}},function(){var a=1,b=0,c=this.ua,d=this.B.bg;this.ja&192&&(a=this.F&c,b=1,d=this.B.dg,this.ja&256||(this.A-=this.B.cg));if(a--){var e=this.G;this.hd(this.ya.Vb(this.I&c,this.aa),e);this.O&4096|| (this.I=this.I&~c|this.I+(this.T&1024?-this.aa:this.aa)&c,this.F=this.F&~c|this.F-b&c,this.A-=d,a&&(this.ha=this.Na,this.O|=256))}},function(){var a=1,b=0,c=this.ua,d=this.B.Jf;this.ja&192&&(a=this.F&c,b=1,d=this.B.Lf,this.ja&256||(this.A-=this.B.Kf));if(a--){var e=this.Sb(this.U.fc(this.K&c,1));this.O&4096||(this.G=this.G&-256|e,this.K=this.K&~c|this.K+(this.T&1024?-1:1)&c,this.F=this.F&~c|this.F-b&c,this.A-=d,a&&(this.ha=this.Na,this.O|=256))}},function(){var a=1,b=0,c=this.ua,d=this.B.Jf;this.ja& 192&&(a=this.F&c,b=1,d=this.B.Lf,this.ja&256||(this.A-=this.B.Kf));if(a--){var e=Hc(this,this.U,this.K&c);this.O&4096||(this.G=this.G&~this.C|e,this.K=this.K&~c|this.K+(this.T&1024?-this.aa:this.aa)&c,this.F=this.F&~c|this.F-b&c,this.A-=d,a&&(this.ha=this.Na,this.O|=256))}},function(){var a=1,b=0,c=this.ua,d=this.B.Wf;this.ja&192&&(a=this.F&c,b=1,d=this.B.Yf,this.ja&256||(this.A-=this.B.Xf));a--&&(Xe.call(this,this.G&255,ve(this,this.ya,this.I&c)),this.O&4096||(this.I=this.I&~c|this.I+(this.T&1024? @@ -198,25 +198,25 @@ this.B.Hh;return b},lg,lg,lg,lg,lg,lg,lg],Kg=[function(a,b){var c=a,d=b&this.Ga; b){var c=a,d=b&this.Ga;if(d){var e;(d&=15)?(e=a<<16-d,c=(a>>>d|e)&65535):e=a;ke(this,c,e,32768)}return c},function(a,b){var c=a,d=b&this.Ga;if(d){var e=le(this);(d%=17)?(c=(a<>17-d)&65535,e=a<>d|e<<16-d|a<<17-d)&65535,e=a<<16-d):e<<=15;ke(this,c,e,32768)}return c},function(a,b){var c=a,d=b&this.Ga;if(d){var e=0;16>>c-1,a=c>>>1&65535,fe(this,a,32768,c&1,a&32768));return a},lg,function(a,b){var c=b&this.Ga;c&&(17>16>>c-1,a=c>>1&65535,fe(this,a,32768,c&1));return a}],Mg=[function(a,b){var c=a,d=b&this.Ga;d&&(c=a<>>32-d,ke(this,c,a<>>d|e;ke(this,c,e,-2147483648)}return c},function(a,b){var c=a,d=b&this.Ga;d&&(c=le(this),c=a<>>32-d>>>1,ke(this,c, a<>>d|c<<32-d|a<<32-d<<1,ke(this,c,a<<32-d,-2147483648));return c},function(a,b){var c=a,d=b&this.Ga;d&&(d=a<>>c-1,a=c>>>1,fe(this,a,-2147483648,c&1,a&-2147483648));return a},lg,function(a,b){var c=b&this.Ga;c&&(c=a>>c-1,a=c>>1,fe(this,a,-2147483648,c&1));return a}],Wg=[function(a,b){b=this.X();fe(this, -a&b,128);this.A-=this.P===g?this.B.fg:this.B.eg;this.O|=2;return a},lg,function(a){this.A-=this.P===g?this.B.he:this.B.ge;return a^255},function(a){var b=-a|0;Zd(this,0,a,b,191,!0);this.A-=this.P===g?this.B.he:this.B.ge;return b&255},function(a){this.Ua=!0;this.Da=(this.G&255)*a&65535;this.Da&65280?(ge(this),ie(this)):(he(this),je(this));this.A-=this.P===g?this.B.Nh:this.B.Mh;this.O|=2;return a},function(a){var b=(this.G<<24>>24)*(a<<24>>24)|0;this.Ua=!0;this.Da=b&65535;127b?(ge(this),ie(this)): +a&b,128);this.A-=this.P===g?this.B.fg:this.B.eg;this.O|=2;return a},lg,function(a){this.A-=this.P===g?this.B.ge:this.B.fe;return a^255},function(a){var b=-a|0;Zd(this,0,a,b,191,!0);this.A-=this.P===g?this.B.ge:this.B.fe;return b&255},function(a){this.Ua=!0;this.Da=(this.G&255)*a&65535;this.Da&65280?(ge(this),ie(this)):(he(this),je(this));this.A-=this.P===g?this.B.Nh:this.B.Mh;this.O|=2;return a},function(a){var b=(this.G<<24>>24)*(a<<24>>24)|0;this.Ua=!0;this.Da=b&65535;127b?(ge(this),ie(this)): (he(this),je(this));this.A-=this.P===g?this.B.sh:this.B.rh;this.O|=2;return a},function(a,b){if(!a)return mg.call(this),a;var c=(b=this.G&65535)/a;if(255>24,d=(b=this.G<<16>>16)/c|0;if(d!=d<<24>>24||8086==this.ga&&-128==d)return mg.call(this),a;this.Ua=!0;this.Da=d&255|(b%c&255)<<8;this.A-=this.P===g?this.B.oh:this.B.nh;this.O|= -2;return a}],Xg=[function(a,b){b=this.Ca();fe(this,a&b,this.ab);this.A-=this.P===g?this.B.fg:this.B.eg;this.O|=2;return a},lg,function(a){this.A-=this.P===g?this.B.he:this.B.ge;return a^this.C},function(a){var b=-a|0;Zd(this,0,a,b,this.ab|63,!0);this.A-=this.P===g?this.B.he:this.B.ge;return b&this.C},function(a,b){if(2==this.aa){b=this.G&65535;var c=b*a|0;this.Ua=!0;this.Da=c&65535;this.Xa=c>>16&65535}else vf.call(this,a,this.G);this.Xa?(ge(this),ie(this)):(he(this),je(this));this.A-=this.P===g?this.B.Ph: +2;return a}],Xg=[function(a,b){b=this.Ca();fe(this,a&b,this.ab);this.A-=this.P===g?this.B.fg:this.B.eg;this.O|=2;return a},lg,function(a){this.A-=this.P===g?this.B.ge:this.B.fe;return a^this.C},function(a){var b=-a|0;Zd(this,0,a,b,this.ab|63,!0);this.A-=this.P===g?this.B.ge:this.B.fe;return b&this.C},function(a,b){if(2==this.aa){b=this.G&65535;var c=b*a|0;this.Ua=!0;this.Da=c&65535;this.Xa=c>>16&65535}else vf.call(this,a,this.G);this.Xa?(ge(this),ie(this)):(he(this),je(this));this.A-=this.P===g?this.B.Ph: this.B.Oh;this.O|=2;return a},function(a,b){var c;if(2==this.aa)b=this.G&65535,c=(b<<16>>16)*(a<<16>>16)|0,this.Ua=!0,this.Da=c&65535,this.Xa=c>>16&65535,c=32767c;else{c=a;var d=this.G,e=!1;0>d&&(d=-d|0,e=!e);0>c&&(c=-c|0,e=!e);vf.call(this,c,d);e&&(this.Da=~this.Da+1|0,this.Xa=~this.Xa+(this.Da?0:1)|0);c=this.Xa!=this.Da>>31}c?(ge(this),ie(this)):(he(this),je(this));this.A-=this.P===g?this.B.uh:this.B.th;this.O|=2;return a},function(a,b){if(2==this.aa){if(!a)return mg.call(this),a;b=65536* (this.H&65535)+(this.G&65535);var c=b/a|0;if(65536<=c)return mg.call(this),a;this.Ua=!0;this.Da=c&65535;this.Xa=b%a&65535}else{af.call(this,this.G,this.H,a);if(!this.Ua)return mg.call(this),a;this.Da|=0;this.Xa|=0}this.A-=this.P===g?this.B.mh:this.B.lh;this.O|=2;return a},function(a,b){if(2==this.aa){if(!a)return mg.call(this),a;var c=a<<16>>16,d=(b=this.H<<16|this.G&65535)/c|0;if(d!=d<<16>>16||8086==this.ga&&-32768==d)return mg.call(this),a;this.Ua=!0;this.Da=d&65535;this.Xa=b%c&65535}else{var c= -this.G,d=this.H,e=a,k=!1,l=!1;0>e&&(e=-e|0,k=!k);0>d&&(c=-c|0,d=~d+(c?0:1)|0,l=!0,k=!k);af.call(this,c,d,e);2147483647e&&(e=-e|0,k=!k);0>d&&(c=-c|0,d=~d+(c?0:1)|0,l=!0,k=!k);af.call(this,c,d,e);2147483647this.ga&&(b=a));u(this,b);this.A-=this.P===g?this.B.ic:this.B.Th;this.O|=2;return a},kg],pd=Array(256);pd[0]=function(){var a=this.X();16>(a&56)&&(this.O|=1);this.Ab[a].call(this,this.ni,qg)};pd[1]=function(){var a=this.X();a&16||(this.O|=1);this.Ab[a].call(this,Yg,qg)}; pd[2]=function(){!(this.Aa&1)||this.T&131072?m.call(this,6):this.ta[this.X()].call(this,kf)};pd[3]=function(){!(this.Aa&1)||this.T&131072?m.call(this,6):this.ta[this.X()].call(this,qf)}; -pd[5]=function(){this.Ea?m.call(this,13,0,!0):(qe(this,this.la(2054)),this.I=this.la(2086),this.K=this.la(2088),this.L=this.la(2090),this.D=this.la(2094),this.H=this.la(2096),this.F=this.la(2098),this.G=this.la(2100),Dc(this.ya,2102,this.la(2084)),Dc(this.ka,2108,this.la(2082)),Dc(this.Z,2114,this.la(2080)),Dc(this.Ha,2120,this.la(2078)),Mc(this,this.la(2072)),F(this,this.la(2074)),r(this,this.la(2092)),this.Xb=this.la(2126)|this.Sb(2128)<<16,this.xd=this.Xb+this.la(2130),Dc(this.Fc,2132,this.la(2076)), +pd[5]=function(){this.Ea?m.call(this,13,0,!0):(qe(this,this.la(2054)),this.I=this.la(2086),this.K=this.la(2088),this.L=this.la(2090),this.D=this.la(2094),this.H=this.la(2096),this.F=this.la(2098),this.G=this.la(2100),Dc(this.ya,2102,this.la(2084)),Dc(this.ka,2108,this.la(2082)),Dc(this.Z,2114,this.la(2080)),Dc(this.Ha,2120,this.la(2078)),Mc(this,this.la(2072)),F(this,this.la(2074)),r(this,this.la(2092)),this.Xb=this.la(2126)|this.Sb(2128)<<16,this.wd=this.Xb+this.la(2130),Dc(this.Fc,2132,this.la(2076)), this.Ob=this.la(2138)|this.Sb(2140)<<16,this.Vc=this.Ob+this.la(2142),Dc(this.qa,2144,this.la(2070)),this.A-=195)};pd[6]=function(){this.Ea?m.call(this,13,0):(this.Aa&=-9,this.A-=2)};pd[11]=Xc;pd[166]=Xc;pd[255]=Xc;var x=[];x[5]=Xc;x[7]=function(){this.Ea?m.call(this,13,0,!0):(qd.call(this),this.A-=100)}; -x[32]=function(){if(this.Ea)m.call(this,13,0);else{var a,b=this.X();switch((b&56)>>3){case 0:a=this.Aa;break;case 2:a=this.zd;break;case 3:a=this.Yc;break;default:qd.call(this);return}Cd(this,b&7,a);this.A-=6}};x[33]=function(){if(this.Ea)m.call(this,13,0);else{var a=this.X(),b=(a&56)>>3;4==b||5==b?qd.call(this):(Cd(this,a&7,this.pb[b]),this.A-=22)}}; -x[34]=function(){if(this.Ea)m.call(this,13,0);else{var a=this.X(),b=Bd(this,a&7);switch((a&56)>>3){case 0:this.Aa=b;Gc(this);this.Aa&-2147483648?yd(this):Ad(this);this.A-=10;break;case 2:this.zd=b;this.A-=4;break;case 3:Oc.call(this,b);this.A-=5;break;default:qd.call(this)}}};x[35]=function(){if(this.Ea)m.call(this,13,0);else{var a=this.X(),b=(a&56)>>3;4==b||5==b?qd.call(this):(a=Bd(this,a&7),a!=this.pb[b]&&(Td(this,!1),this.pb[b]=a,Td(this,!0)),this.A-=4>b?22:14)}}; +x[32]=function(){if(this.Ea)m.call(this,13,0);else{var a,b=this.X();switch((b&56)>>3){case 0:a=this.Aa;break;case 2:a=this.yd;break;case 3:a=this.Yc;break;default:qd.call(this);return}Cd(this,b&7,a);this.A-=6}};x[33]=function(){if(this.Ea)m.call(this,13,0);else{var a=this.X(),b=(a&56)>>3;4==b||5==b?qd.call(this):(Cd(this,a&7,this.pb[b]),this.A-=22)}}; +x[34]=function(){if(this.Ea)m.call(this,13,0);else{var a=this.X(),b=Bd(this,a&7);switch((a&56)>>3){case 0:this.Aa=b;Gc(this);this.Aa&-2147483648?yd(this):Ad(this);this.A-=10;break;case 2:this.yd=b;this.A-=4;break;case 3:Oc.call(this,b);this.A-=5;break;default:qd.call(this)}}};x[35]=function(){if(this.Ea)m.call(this,13,0);else{var a=this.X(),b=(a&56)>>3;4==b||5==b?qd.call(this):(a=Bd(this,a&7),a!=this.pb[b]&&(Td(this,!1),this.pb[b]=a,Td(this,!0)),this.A-=4>b?22:14)}}; x[36]=function(){if(this.Ea)m.call(this,13,0);else{var a=this.X(),b=(a&56)>>3;6>b?qd.call(this):(Cd(this,a&7,this.gf[b]),this.A-=12)}};x[38]=function(){if(this.Ea)m.call(this,13,0);else{var a=this.X(),b=(a&56)>>3;6>b?qd.call(this):(this.gf[b]=Bd(this,a&7),this.A-=12)}};x[128]=function(){var a=this.Ca();ee(this)?(F(this,v(this)+a),this.A-=this.B.Ka):this.A-=this.B.La};x[129]=function(){var a=this.Ca();ee(this)?this.A-=this.B.La:(F(this,v(this)+a),this.A-=this.B.Ka)}; x[130]=function(){var a=this.Ca();$d(this)?(F(this,v(this)+a),this.A-=this.B.Ka):this.A-=this.B.La};x[131]=function(){var a=this.Ca();$d(this)?this.A-=this.B.La:(F(this,v(this)+a),this.A-=this.B.Ka)};x[132]=function(){var a=this.Ca();ce(this)?(F(this,v(this)+a),this.A-=this.B.Ka):this.A-=this.B.La};x[133]=function(){var a=this.Ca();ce(this)?this.A-=this.B.La:(F(this,v(this)+a),this.A-=this.B.Ka)};x[134]=function(){var a=this.Ca();$d(this)||ce(this)?(F(this,v(this)+a),this.A-=this.B.Ka):this.A-=this.B.La}; x[135]=function(){var a=this.Ca();$d(this)||ce(this)?this.A-=this.B.La:(F(this,v(this)+a),this.A-=this.B.Ka)};x[136]=function(){var a=this.Ca();de(this)?(F(this,v(this)+a),this.A-=this.B.Ka):this.A-=this.B.La};x[137]=function(){var a=this.Ca();de(this)?this.A-=this.B.La:(F(this,v(this)+a),this.A-=this.B.Ka)};x[138]=function(){var a=this.Ca();ae(this)?(F(this,v(this)+a),this.A-=this.B.Ka):this.A-=this.B.La};x[139]=function(){var a=this.Ca();ae(this)?this.A-=this.B.La:(F(this,v(this)+a),this.A-=this.B.Ka)}; x[140]=function(){var a=this.Ca();!de(this)!=!ee(this)?(F(this,v(this)+a),this.A-=this.B.Ka):this.A-=this.B.La};x[141]=function(){var a=this.Ca();!de(this)==!ee(this)?(F(this,v(this)+a),this.A-=this.B.Ka):this.A-=this.B.La};x[142]=function(){var a=this.Ca();ce(this)||!de(this)!=!ee(this)?(F(this,v(this)+a),this.A-=this.B.Ka):this.A-=this.B.La};x[143]=function(){var a=this.Ca();ce(this)||!de(this)!=!ee(this)?this.A-=this.B.La:(F(this,v(this)+a),this.A-=this.B.Ka)};x[144]=function(){Bf.call(this,Cf)}; x[145]=function(){Bf.call(this,Cf)};x[146]=function(){Bf.call(this,Df)};x[147]=function(){Bf.call(this,Ef)};x[148]=function(){Bf.call(this,Ff)};x[149]=function(){Bf.call(this,Gf)};x[150]=function(){Bf.call(this,Hf)};x[151]=function(){Bf.call(this,If)};x[152]=function(){Bf.call(this,Jf)};x[153]=function(){Bf.call(this,Kf)};x[154]=function(){Bf.call(this,Lf)};x[155]=function(){Bf.call(this,Mf)};x[156]=function(){Bf.call(this,Nf)};x[157]=function(){Bf.call(this,Of)};x[158]=function(){Bf.call(this,Pf)}; -x[159]=function(){Bf.call(this,Qf)};x[160]=function(){u(this,this.bb.oa);this.A-=this.B.td};x[161]=function(){this.Wa=this.va;var a=n(this);this.bb.load(a);this.A-=this.B.Mb;this.Wa=g};x[163]=function(){this.Ia[this.X()].call(this,Se);this.P!==g&&(this.A-=6)};x[164]=function(){this.Ia[this.X()].call(this,2==this.aa?Tf:Uf);this.A-=this.P===g?3:7};x[165]=function(){this.Ia[this.X()].call(this,2==this.aa?Vf:Wf);this.A-=this.P===g?3:7};x[168]=function(){u(this,this.lb.oa);this.A-=this.B.td}; +x[159]=function(){Bf.call(this,Qf)};x[160]=function(){u(this,this.bb.oa);this.A-=this.B.sd};x[161]=function(){this.Wa=this.va;var a=n(this);this.bb.load(a);this.A-=this.B.Mb;this.Wa=g};x[163]=function(){this.Ia[this.X()].call(this,Se);this.P!==g&&(this.A-=6)};x[164]=function(){this.Ia[this.X()].call(this,2==this.aa?Tf:Uf);this.A-=this.P===g?3:7};x[165]=function(){this.Ia[this.X()].call(this,2==this.aa?Vf:Wf);this.A-=this.P===g?3:7};x[168]=function(){u(this,this.lb.oa);this.A-=this.B.sd}; x[169]=function(){this.Wa=this.va;var a=n(this);this.lb.load(a);this.A-=this.B.Mb;this.Wa=g};x[171]=function(){this.Ia[this.X()].call(this,Ve);this.P!==g&&(this.A-=5)};x[172]=function(){this.Ia[this.X()].call(this,2==this.aa?Zf:$f);this.A-=this.P===g?3:7};x[173]=function(){this.Ia[this.X()].call(this,2==this.aa?ag:bg);this.A-=this.P===g?3:7};x[175]=function(){this.ta[this.X()].call(this,2==this.aa?gf:hf)};x[178]=function(){this.ta[this.X()].call(this,rf)}; x[179]=function(){this.Ia[this.X()].call(this,Ue);this.P!==g&&(this.A-=5)};x[180]=function(){this.ta[this.X()].call(this,of)};x[181]=function(){this.ta[this.X()].call(this,pf)}; x[182]=function(){var a,b=this.X(),c=(b&56)>>3;switch(c){case 4:a=this.G;break;case 5:a=this.F;break;case 6:a=this.H;break;case 7:a=this.D}this.Bb[b].call(this,tf);switch(c){case 0:this.G=this.G&~this.C|this.G&255;break;case 1:this.F=this.F&~this.C|this.F&255;break;case 2:this.H=this.H&~this.C|this.H&255;break;case 3:this.D=this.D&~this.C|this.D&255;break;case 4:this.Qb=this.Qb&~this.C|this.G>>8&255;this.G=a;break;case 5:this.L=this.L&~this.C|this.F>>8&255;this.F=a;break;case 6:this.K=this.K&~this.C| @@ -226,8 +226,8 @@ x[190]=function(){var a,b=this.X(),c=(b&56)>>3;switch(c){case 4:a=this.G;break;c this.L&~this.C|this.F<<16>>24&this.C;this.F=a;break;case 6:this.K=this.K&~this.C|this.H<<16>>24&this.C;this.H=a;break;case 7:this.I=this.I&~this.C|this.D<<16>>24&this.C,this.D=a}this.A-=this.P===g?3:6}; x[191]=function(){var a=this.X();Nd(this);this.ta[a].call(this,tf);switch((a&56)>>3){case 0:this.G=this.G<<16>>16;break;case 1:this.F=this.F<<16>>16;break;case 2:this.H=this.H<<16>>16;break;case 3:this.D=this.D<<16>>16;break;case 4:this.Qb=this.Qb<<16>>16;break;case 5:this.L=this.L<<16>>16;break;case 6:this.K=this.K<<16>>16;break;case 7:this.I=this.I<<16>>16}this.A-=this.P===g?3:6}; var Ud=[function(){this.A-=2+(this.P===g?0:1);return this.Fc.oa},function(){this.A-=2+(this.P===g?0:1);return this.qa.oa},function(a){this.O|=2;this.Fc.load(a);this.A-=17+(this.P===g?0:2);return a},function(a){this.O|=2;this.qa.load(a)!==g&&(this.zb(this.qa.ec+4,this.qa.mb|=512),this.qa.type|=512);this.A-=17+(this.P===g?0:2);return a},function(a){this.O|=2;this.A-=14+(this.P===g?0:2);if(this.Oa.load(a)!==g&&2048!=(this.Oa.mb&2560)&&(this.Oa.oc>=this.Ea&&this.Oa.oc>=(a&3)||7168==(this.Oa.mb&7168)))return pe(this), -a;ne(this);return a},function(a){this.O|=2;this.A-=14+(this.P===g?0:2);if(this.Oa.load(a)!==g&&512==(this.Oa.mb&2560)&&this.Oa.oc>=this.Ea&&this.Oa.oc>=(a&3))return pe(this),a;ne(this);return a},lg,lg],Wc=[nd,nd,nd,nd,nd,nd,lg,lg],Yg=[function(a){if(this.P===g)m.call(this,6);else{a=this.xd-this.Xb;var b=this.Xb;80286==this.ga?b|=-16777216:80386<=this.ga&&(2==this.aa?b&=16777215:a|=b<<16);this.vb(this.P+2,b);this.A-=11}return a},function(a){if(this.P===g)m.call(this,6);else{a=this.Vc-this.Ob;var b= -this.Ob;80286==this.ga?b|=-16777216:80386<=this.ga&&(2==this.aa?b&=16777215:a|=b<<16);this.vb(this.P+2,b);this.A-=12}return a},function(a){this.P===g||this.T&131072?m.call(this,6):(this.Xb=this.Tb(this.P+2)&(this.C|this.C<<8),a&=65535,this.xd=this.Xb+a,this.O|=2,this.A-=11);return a},function(a){this.P===g||this.T&131072?m.call(this,6):(this.Ob=this.Tb(this.P+2)&(this.C|this.C<<8),a&=65535,this.Vc=this.Ob+a,this.O|=2,this.A-=12);return a},function(){this.A-=2+(this.P===g?0:1);return this.Aa},lg,function(a){this.T& +a;ne(this);return a},function(a){this.O|=2;this.A-=14+(this.P===g?0:2);if(this.Oa.load(a)!==g&&512==(this.Oa.mb&2560)&&this.Oa.oc>=this.Ea&&this.Oa.oc>=(a&3))return pe(this),a;ne(this);return a},lg,lg],Wc=[nd,nd,nd,nd,nd,nd,lg,lg],Yg=[function(a){if(this.P===g)m.call(this,6);else{a=this.wd-this.Xb;var b=this.Xb;80286==this.ga?b|=-16777216:80386<=this.ga&&(2==this.aa?b&=16777215:a|=b<<16);this.vb(this.P+2,b);this.A-=11}return a},function(a){if(this.P===g)m.call(this,6);else{a=this.Vc-this.Ob;var b= +this.Ob;80286==this.ga?b|=-16777216:80386<=this.ga&&(2==this.aa?b&=16777215:a|=b<<16);this.vb(this.P+2,b);this.A-=12}return a},function(a){this.P===g||this.T&131072?m.call(this,6):(this.Xb=this.Tb(this.P+2)&(this.C|this.C<<8),a&=65535,this.wd=this.Xb+a,this.O|=2,this.A-=11);return a},function(a){this.P===g||this.T&131072?m.call(this,6):(this.Ob=this.Tb(this.P+2)&(this.C|this.C<<8),a&=65535,this.Vc=this.Ob+a,this.O|=2,this.A-=12);return a},function(){this.A-=2+(this.P===g?0:1);return this.Aa},lg,function(a){this.T& 131072?m.call(this,6):(qe(this,a),this.A-=this.P===g?3:6,this.O|=2);return a},lg],Zg=[lg,lg,lg,lg,Oe,Re,Qe,Pe],y=[function(a){a=a.call(this,this.G&255,H(this,this.D+this.K));this.G=this.G&-256|a;this.A-=this.B.ca},function(a){a=a.call(this,this.G&255,H(this,this.D+this.I));this.G=this.G&-256|a;this.A-=this.B.da},function(a){a=a.call(this,this.G&255,I(this,this.L+this.K));this.G=this.G&-256|a;this.A-=this.B.da},function(a){a=a.call(this,this.G&255,I(this,this.L+this.I));this.G=this.G&-256|a;this.A-= this.B.ca},function(a){a=a.call(this,this.G&255,H(this,this.K));this.G=this.G&-256|a;this.A-=this.B.N},function(a){a=a.call(this,this.G&255,H(this,this.I));this.G=this.G&-256|a;this.A-=this.B.N},function(a){a=a.call(this,this.G&255,H(this,S(this)));this.G=this.G&-256|a;this.A-=this.B.ea},function(a){a=a.call(this,this.G&255,H(this,this.D));this.G=this.G&-256|a;this.A-=this.B.N},function(a){a=a.call(this,this.F&255,H(this,this.D+this.K));this.F=this.F&-256|a;this.A-=this.B.ca},function(a){a=a.call(this, this.F&255,H(this,this.D+this.I));this.F=this.F&-256|a;this.A-=this.B.da},function(a){a=a.call(this,this.F&255,I(this,this.L+this.K));this.F=this.F&-256|a;this.A-=this.B.da},function(a){a=a.call(this,this.F&255,I(this,this.L+this.I));this.F=this.F&-256|a;this.A-=this.B.ca},function(a){a=a.call(this,this.F&255,H(this,this.K));this.F=this.F&-256|a;this.A-=this.B.N},function(a){a=a.call(this,this.F&255,H(this,this.I));this.F=this.F&-256|a;this.A-=this.B.N},function(a){a=a.call(this,this.F&255,H(this, @@ -786,52 +786,52 @@ function(){return this.G},function(){return this.F},function(){return this.H},fu (this.D<<3)},function(a){return(a?(this.U=this.V,this.L):S(this))+(this.D<<3)},function(){return this.K+(this.D<<3)},function(){return this.I+(this.D<<3)},function(){return this.G},function(){return this.F},function(){return this.H},function(){return this.D},function(){this.U=this.V;return t(this)},function(a){return a?(this.U=this.V,this.L):S(this)},function(){return this.K},function(){return this.I},function(){return this.G+(this.L<<3)},function(){return this.F+(this.L<<3)},function(){return this.H+ (this.L<<3)},function(){return this.D+(this.L<<3)},function(){this.U=this.V;return t(this)+(this.L<<3)},function(a){return(a?(this.U=this.V,this.L):S(this))+(this.L<<3)},function(){return this.K+(this.L<<3)},function(){return this.I+(this.L<<3)},function(){return this.G+(this.K<<3)},function(){return this.F+(this.K<<3)},function(){return this.H+(this.K<<3)},function(){return this.D+(this.K<<3)},function(){this.U=this.V;return t(this)+(this.K<<3)},function(a){return(a?(this.U=this.V,this.L):S(this))+ (this.K<<3)},function(){return this.K+(this.K<<3)},function(){return this.I+(this.K<<3)},function(){return this.G+(this.I<<3)},function(){return this.F+(this.I<<3)},function(){return this.H+(this.I<<3)},function(){return this.D+(this.I<<3)},function(){this.U=this.V;return t(this)+(this.I<<3)},function(a){return(a?(this.U=this.V,this.L):S(this))+(this.I<<3)},function(){return this.K+(this.I<<3)},function(){return this.I+(this.I<<3)}]; -function $g(a){Ja.call(this,"ChipSet",a,$g);this.ga=(this.ga=a.model)&&ah[this.ga]||bh;this.O=0;var b=a.sw1;if(b)this.O=ch(b,dh|eh.hj);else{this.fa=[360,360];(b=a.floppies)&&b.length&&(this.fa=b);if(b=this.fa.length)this.O|=fh.xg,b--,this.O|=(b&3)<=gh&&(this.Ga=this.sa=2);this.ha=a.scaleTimers||!1;this.bb=a.rtcDate;this.Wa=!1;a.sound&& -(this.Oa=this.ta=null,window&&(this.Oa=window.AudioContext||window.webkitAudioContext),this.Oa&&(this.ta=new this.Oa));this.reset(!0);Za(this)}Ra($g);var bh=5150,gh=5170,ah={5150:bh,5160:5160,5170:gh,deskpro386:5180},hh={none:0,tv:1,color:2,mono:3,ega:0,vga:0},fh={xg:1,ONE:0,qm:64,om:128,Ul:192,ze:192,Ae:6},dh=12,eh={pm:16,Nl:32,hj:48,ze:48,Ae:4};f=$g.prototype; +function $g(a){Ja.call(this,"ChipSet",a,$g);this.ga=(this.ga=a.model)&&ah[this.ga]||bh;this.O=0;var b=a.sw1;if(b)this.O=ch(b,dh|eh.hj);else{this.fa=[360,360];(b=a.floppies)&&b.length&&(this.fa=b);if(b=this.fa.length)this.O|=fh.xg,b--,this.O|=(b&3)<=gh&&(this.Ga=this.sa=2);this.ha=a.scaleTimers||!1;this.bb=a.rtcDate;this.Wa=!1;a.sound&& +(this.Oa=this.ta=null,window&&(this.Oa=window.AudioContext||window.webkitAudioContext),this.Oa&&(this.ta=new this.Oa));this.reset(!0);Za(this)}Ra($g);var bh=5150,gh=5170,ah={5150:bh,5160:5160,5170:gh,deskpro386:5180},hh={none:0,tv:1,color:2,mono:3,ega:0,vga:0},fh={xg:1,ONE:0,rm:64,pm:128,Vl:192,ye:192,ze:6},dh=12,eh={qm:16,Ol:32,hj:48,ye:48,ze:4};f=$g.prototype; f.Hb=function(a,b,c){switch(b){case "sw1":return this.ra[b]=c,ih(this,b,c,this.O,{0:this.ga==bh?"Bootable Floppy Drive":"Loop on POST",1:this.ga==bh?"Reserved":"Coprocessor",2:"Base Memory Size",4:"Monitor Type",6:"Number of Floppy Drives"}),!0;case "sw2":if(this.ga==bh)return this.ra[b]=c,ih(this,b,c,this.ja,{0:"Expansion Memory Size",4:"Reserved"}),!0;break;case "swdesc":return this.ra[b]=c,!0}return!1}; f.uc=function(a,b,c,d){this.ma=b;this.A=c;this.Qa=d;this.xa=a;this.D=gb(a,"Keyboard");this.Ia=c.W.Sc/1193181;Jb(b,this,jh);Mb(b,this,kh);this.ga=gh){this.I=16;this.V=0;this.Y=16;this.ya=0;this.Z=160;512<=th(this)&&(this.Z|=16);3==uh(this)&&(this.Z|=64);5180==this.ga&&(this.Z|=12);this.Aa=3;this.K=Array(8);this.na= -0;a&&(this.B=Array(64));vh(this,this.bb);for(a=21;24>=a;a++)this.B[a]=0;for(a=14;46>a;a++)void 0===this.B[a]&&(this.B[a]=0);this.B[20]=this.U&(eh.ze|2|fh.xg|fh.ze);this.B[16]=wh(this,0)<<4|wh(this,1);xh(this)}}; +0;a&&(this.B=Array(64));vh(this,this.bb);for(a=21;24>=a;a++)this.B[a]=0;for(a=14;46>a;a++)void 0===this.B[a]&&(this.B[a]=0);this.B[20]=this.U&(eh.ye|2|fh.xg|fh.ye);this.B[16]=wh(this,0)<<4|wh(this,1);xh(this)}}; function vh(a,b){var c=b?new Date(b):new Date;"[object Date]"!==Object.prototype.toString.call(c)||isNaN(c.getTime())?(c=new Date,a.cc("CMOS date invalid ("+b+"), using "+c)):b&&a.cc("CMOS date: "+c);a.B[0]=c.getSeconds();a.B[1]=0;a.B[2]=c.getMinutes();a.B[3]=0;a.B[4]=c.getHours();a.B[5]=0;a.B[6]=c.getDay()+1;a.B[7]=c.getDate();a.B[8]=c.getMonth()+1;c=c.getFullYear();a.B[9]=c%100;c/=100;a.B[50]=c%10|c/10<<4;a.B[10]=38;a.B[11]=2;a.B[12]=0;a.B[13]=128;a.va=a.pa=0;a.Xa=a.Ha=null} function yh(a){var b;void 0===b&&(b=a.Ha);a.pa=vc(a.A,a.ha)+b;a.B[11]&64&&rc(a.A,b)}function xh(a){for(var b=0,c=16;46>c;c++)b+=a.B[c];a.B[47]=b&255;a.B[46]=b>>8} -f.save=function(){var a=new Vd(this);E(a,0,[this.O,this.ja,this.U,this.ka]);for(var b=[],c=0;c=gh&&(E(a,5,[this.I,this.V,this.Y,this.ya,this.Z,this.Aa]),E(a,6,[this.K[7],this.K,this.na,this.B,this.va,this.pa]));return a.data()}; f.restore=function(a){var b,c;b=a[0];this.O=b[0];this.ja=b[1];this.U=b[2];this.ka=b[3];b=a[1];for(c=0;c>2)+1)*a.ab+32*((b?a.ja:a.ka)&15)} -function Fh(a,b){var c=b?a.O:a.U;return a.ga!=bh||c&fh.xg?((c&fh.ze)>>fh.Ae)+1:0}function wh(a,b){if(b>eh.Ae} +b[3],this.va=b[4],this.pa=b[5],vh(this);return!0};var zh=[0,null,null,0,Array(4)];function qh(a,b,c){var d=a.F[b];d||(d={Fb:Array(4)});c=c&&5==c.length?c:zh;d.Bc=c[0];d.Dg=c[1];d.vi=c[2];d.Gb=c[3];d.Ek=b<<2;for(var e=0;e>2)+1)*a.ab+32*((b?a.ja:a.ka)&15)} +function Fh(a,b){var c=b?a.O:a.U;return a.ga!=bh||c&fh.xg?((c&fh.ye)>>fh.ze)+1:0}function wh(a,b){if(b>eh.ze} function ih(a,b,c,d,e){for(var k="",l=1;8>=l;l++){var p="pcjs-bitCell";l||(p+=" pcjs-bitCellLeft");k+='
'+l+"
\n"}c.innerHTML=k;b=Xa(c,"pcjs-bitCell");c=null;for(l=0;ld.gb[0]&&(d.gb[0]=255,d.gb[1]--,0>d.gb[1]&&(d.gb[1]=255)));return e}function Kh(a,b,c,d){a=a.F[b];c=a.Fb[c];c.gb[a.Gb]=c.Wb[a.Gb]=d;a.Gb^=1} -function Lh(a,b){var c=a.F[b],d=c.Bc|1;c.Bc&=-16;return d}function Mh(a,b,c){a=a.F[b];b=c&3;a.Bc=a.Bc&~(16<>2].Fb[b&3],c,d,e)} +function Lh(a,b){var c=a.F[b],d=c.Bc|1;c.Bc&=-16;return d}function Mh(a,b,c){a=a.F[b];b=c&3;a.Bc=a.Bc&~(16<>2].Fb[b&3],c,d,e)} function Oh(a,b,c){b=a.F[b>>2].Fb[b&3];b.qf&&b.Mg&&b.jg?(c&&(b.done=c),b.cd||De(a,b,!0)):c&&c(!0)}function De(a,b,c){c&&(b.count=b.gb[1]<<8|b.gb[0],b.type=b.mode&12,b.Ki=b.Rc=!1);for(var d=!1;0<=b.count&&(c=b.kf<<16|b.fb[1]<<8|b.fb[0],4==b.type?(d=!0,function(c){b.Mg.call(b.qf,b.jg,-1,function(k,l){0>k&&(b.Ki||(b.Ki=!0),k=255);b.cd||a.ma.Gc(c,k);(d=l)&&setTimeout(function(){Xh(b)||De(a,b)},0)})}(c)):8==b.type?(c=a.ma.Sb(c),0>b.Mg.call(b.qf,b.jg,c)&&(b.Rc=!0)):0!=b.type&&(b.Rc=!0)),!d&&!Xh(b););} -function Xh(a){if(!a.Rc&&0<=--a.count&&(a.mode&32?(a.fb[0]--,0>a.fb[0]&&(a.fb[0]=255,a.fb[1]--,0>a.fb[1]&&(a.fb[1]=255))):(a.fb[0]++,255a.fb[0]&&(a.fb[0]=255,a.fb[1]--,0>a.fb[1]&&(a.fb[1]=255))):(a.fb[0]++,255>3];b=1<<(b&7);d.Nb&b||(d.Nb|=b,d.Ne=c||0,$h(a))}function ci(a,b){var c=a.Ub[b>>3],d=1<<(b&7);c.Nb&d&&(c.Nb&=~d,$h(a))} -function $h(a,b){var c,d=-1;1>=1),rc(a.A,c))),2==b&&wc(a))}f=$g.prototype;f.jk=function(){return this.Ea}; -f.vl=function(a,b){this.Ea=b;var c=b&192;if(192==c){if(!(b&16))for(c=0;2>=c;c++)if(b&2<=c;c++)b&2<>6,d=b&1,e=b&14,k=b&48;if(0==k)ii(this,c);else{var l=c,p=this.L[l];p.Ye=k;p.mode=e;p.Fg=d;p.Wb=[0,0];p.gb=[0,0];p.Dd=[0,0];p.Ic=!1;p.Ud=!1;p.Fd=!1;p.Zd=!1;ei(this,l);0==c&&ci(this,0);2==c&&255==this.Ub[0].Oc&&77==this.T&&(c=this.L[0],c.rc[0]=c.Wb[0],c.rc[1]= -c.Wb[1],c.dd=vc(this.A,this.ha))}}};function hi(a,b){var c=a.L[b],d=c.Wb[1]<<8|c.Wb[0];d||(d=1==c.bd?256:65536);return d}function yc(a,b){var c=a.L[b],d=c.rc[1]<<8|c.rc[0];d||(d=1==c.bd?256:65536);return d}function ii(a,b){fi(a,b);var c=a.L[b];c.Dd[0]=c.gb[0];c.Dd[1]=c.gb[1];c.Ud=!0;ei(a,b)}function ei(a,b){var c=a.L[b];c.Qc=32==c.Ye?1:0;c.bd=48==c.Ye?2:1} -function fi(a,b,c){var d=a.L[b];if(d.Fd&&(2!=b||a.T&1)){var e=vc(a.A,a.ha),k=(e-d.dd)/a.Ia|0;0>k&&(d.dd=e,k=0);var l=hi(a,b),p=yc(a,b)-k;0==d.mode?(0>=p&&(p=0),p||(d.Ic=!0,d.Fd=!1,b||bi(a,0))):4==d.mode?(d.Ic=1!=p,0>=p&&(p=l+p,0>=p&&(p=l),d.rc[0]=p&255,d.rc[1]=p>>8&255,d.dd=e,!b&&d.Ic&&bi(a,0))):6==d.mode&&(p-=k,0>=p&&(d.Ic=!d.Ic,p=l+p,0>=p&&(p=l),d.rc[0]=p&255,d.rc[1]=p>>8&255,d.dd=e,!b&&d.Ic&&bi(a,0)));d.gb[0]=p&255;d.gb[1]=p>>8&255;c&&(a.dd=0)}return d} +function $h(a,b){var c,d=-1;1>=1),rc(a.A,c))),2==b&&wc(a))}f=$g.prototype;f.kk=function(){return this.Ea}; +f.wl=function(a,b){this.Ea=b;var c=b&192;if(192==c){if(!(b&16))for(c=0;2>=c;c++)if(b&2<=c;c++)b&2<>6,d=b&1,e=b&14,k=b&48;if(0==k)ii(this,c);else{var l=c,p=this.L[l];p.Ye=k;p.mode=e;p.Fg=d;p.Wb=[0,0];p.gb=[0,0];p.Cd=[0,0];p.Ic=!1;p.Td=!1;p.Ed=!1;p.Yd=!1;ei(this,l);0==c&&ci(this,0);2==c&&255==this.Ub[0].Oc&&77==this.T&&(c=this.L[0],c.rc[0]=c.Wb[0],c.rc[1]= +c.Wb[1],c.dd=vc(this.A,this.ha))}}};function hi(a,b){var c=a.L[b],d=c.Wb[1]<<8|c.Wb[0];d||(d=1==c.bd?256:65536);return d}function yc(a,b){var c=a.L[b],d=c.rc[1]<<8|c.rc[0];d||(d=1==c.bd?256:65536);return d}function ii(a,b){fi(a,b);var c=a.L[b];c.Cd[0]=c.gb[0];c.Cd[1]=c.gb[1];c.Td=!0;ei(a,b)}function ei(a,b){var c=a.L[b];c.Qc=32==c.Ye?1:0;c.bd=48==c.Ye?2:1} +function fi(a,b,c){var d=a.L[b];if(d.Ed&&(2!=b||a.T&1)){var e=vc(a.A,a.ha),k=(e-d.dd)/a.Ia|0;0>k&&(d.dd=e,k=0);var l=hi(a,b),p=yc(a,b)-k;0==d.mode?(0>=p&&(p=0),p||(d.Ic=!0,d.Ed=!1,b||bi(a,0))):4==d.mode?(d.Ic=1!=p,0>=p&&(p=l+p,0>=p&&(p=l),d.rc[0]=p&255,d.rc[1]=p>>8&255,d.dd=e,!b&&d.Ic&&bi(a,0))):6==d.mode&&(p-=k,0>=p&&(d.Ic=!d.Ic,p=l+p,0>=p&&(p=l),d.rc[0]=p&255,d.rc[1]=p>>8&255,d.dd=e,!b&&d.Ic&&bi(a,0)));d.gb[0]=p&255;d.gb[1]=p>>8&255;c&&(a.dd=0)}return d} function xc(a,b){for(var c=0;c=gh){var c=a.A.W.Sc,d=vc(a.A,a.ha);null==a.Ha&&(a.va=vc(a.A,a.ha),a.Xa=1024,a.Ha=Math.floor(a.A.W.Sc/a.Xa),yh(a));d>=a.pa&&(a.B[12]|=64,a.B[11]&64&&(a.B[12]|=128,bi(a,8)),a.pa=d+a.Ha);a.B[0]==a.B[1]&&a.B[2]==a.B[3]&&a.B[4]==a.B[5]&&(a.B[12]|=32,a.B[11]&32&&(a.B[12]|=128,bi(a,8)));var e=d-a.va,k=Math.floor(e/c);if(k&&!(a.B[11]&128)){for(;k--;)if(60<=++a.B[0]&&(a.B[0]=0,60<=++a.B[2]&&(a.B[2]=0,24<=++a.B[4]))){a.B[4]=0;a.B[6]=a.B[6]%7+1; -var l;l=a.B[9];var p=ma[a.B[8]-1];28==p&&0===l%4&&(l%100||0===l%400)&&p++;l=p;++a.B[7]>l&&(a.B[7]=1,12<++a.B[8]&&(a.B[8]=1,a.B[9]=(a.B[9]+1)%100))}a.B[12]|=16;a.B[11]&16&&(a.B[12]|=128,bi(a,8))}a.va=d-e%c}}f.kk=function(){var a=this.Fa;if(this.qa&16)if(this.T&128)a=this.U;else if(this.D){var a=this.D,b=0;a.B.length&&(b=a.B[0]);a.Sa()&&a.Ma("scan code "+ea(b)+" delivered");a=b}return a};f.wl=function(a,b){this.Fa=b};f.lk=function(){return this.T};f.xl=function(a,b){ji(this,b)}; -function ji(a,b){var c=!!(b&2),d=!!(a.T&2);a.T=b;a.D&&ki(a.D,!(b&128),!!(b&64));c!=d&&wc(a,c)}f.mk=function(){var a=0,a=this.ga==bh?this.T&4?a|this.ka&15:a|this.ka>>4&1:this.T&8?a|this.U>>4:a|this.U&15;this.T&1&&fi(this,2).Ic&&(a=this.T&2?a|32:a|16);return a};f.yl=function(a,b){this.Na=b};f.nk=function(){return this.qa};f.zl=function(a,b){this.qa=b};f.Aj=function(){var a=this.ya;this.I&=-258;this.D&&li(this.D);return a}; -f.Kk=function(a,b){if(this.I&8)switch(this.V){case 96:mi(this,b);break;case 209:ni(this,b);break;default:if(mi(this,this.Y&-17),this.D){var c=-1;switch(b){case 255:c=250,oi(this.D)}pi(this,c)}}this.V=b;this.I&=-9};f.Bj=function(){return this.T&-209|(vc(this.A)&64?16:0)};f.Lk=function(a,b){ji(this,b)};f.Cj=function(){var a=this.I&255;this.I&256&&(this.I|=1,this.I&=-257);return a}; -f.Jk=function(a,b){this.V=b;this.I|=8;var c=0;240<=this.V&&(c=this.V^15,this.V=240);switch(this.V){case 32:pi(this,this.Y);break;case 173:mi(this,this.Y|16);break;case 174:mi(this,this.Y&-17);this.D&&li(this.D);break;case 170:this.D&&(c=this.D,c.B=[],c.Sa()&&c.Ma("scan codes flushed"));mi(this,this.Y|16);pi(this,85);ni(this,3);break;case 171:pi(this,0);break;case 192:pi(this,this.Z);break;case 208:pi(this,this.Aa);break;case 224:pi(this,this.Y&16?0:1);break;case 240:c&1&&xd(this.A)}}; -function mi(a,b){a.Y=b;a.I=a.I&-5|b&4;a.D&&ki(a.D,!!(b&8),!(b&16))}function pi(a,b,c){0<=b&&(a.ya=b,c?a.I|=1:(a.I&=-2,a.I|=256))}function ni(a,b){a.Aa=b;ub(a.ma,!!(b&2));b&1||xd(a.A)}function qi(a,b){a.ga=c)if(d=this.B[c],10>c){var e=!1;4!=c&&5!=c||this.B[11]&2||(12>d?d=d?d:12:d=(d-=12)?d+128:140,e=!0);this.B[11]&4||(e&&128=c){if(e=b,10>c){var k=!1;this.B[11]&4||(e=10*(e>>4)+(e&15),k=!0);if(4==c||5==c)k&&23=e?e=12==e?0:e:(e-=116,e=24==e?12:e))}}else e=b;this.B[c]=e;11==c&&d&64&&b&64&&yh(this)};f.ul=function(a,b){this.Da=b};f.al=function(){};f.bl=function(){};function ch(a,b){if(void 0===a)return b;for(var c=0,d=1,e=0;el&&(a.B[7]=1,12<++a.B[8]&&(a.B[8]=1,a.B[9]=(a.B[9]+1)%100))}a.B[12]|=16;a.B[11]&16&&(a.B[12]|=128,bi(a,8))}a.va=d-e%c}}f.lk=function(){var a=this.Fa;if(this.qa&16)if(this.T&128)a=this.U;else if(this.D){var a=this.D,b=0;a.B.length&&(b=a.B[0]);a.Sa()&&a.Ma("scan code "+ea(b)+" delivered");a=b}return a};f.xl=function(a,b){this.Fa=b};f.mk=function(){return this.T};f.yl=function(a,b){ji(this,b)}; +function ji(a,b){var c=!!(b&2),d=!!(a.T&2);a.T=b;a.D&&ki(a.D,!(b&128),!!(b&64));c!=d&&wc(a,c)}f.nk=function(){var a=0,a=this.ga==bh?this.T&4?a|this.ka&15:a|this.ka>>4&1:this.T&8?a|this.U>>4:a|this.U&15;this.T&1&&fi(this,2).Ic&&(a=this.T&2?a|32:a|16);return a};f.zl=function(a,b){this.Na=b};f.pk=function(){return this.qa};f.Al=function(a,b){this.qa=b};f.Bj=function(){var a=this.ya;this.I&=-258;this.D&&li(this.D);return a}; +f.Lk=function(a,b){if(this.I&8)switch(this.V){case 96:mi(this,b);break;case 209:ni(this,b);break;default:if(mi(this,this.Y&-17),this.D){var c=-1;switch(b){case 255:c=250,oi(this.D)}pi(this,c)}}this.V=b;this.I&=-9};f.Cj=function(){return this.T&-209|(vc(this.A)&64?16:0)};f.Mk=function(a,b){ji(this,b)};f.Dj=function(){var a=this.I&255;this.I&256&&(this.I|=1,this.I&=-257);return a}; +f.Kk=function(a,b){this.V=b;this.I|=8;var c=0;240<=this.V&&(c=this.V^15,this.V=240);switch(this.V){case 32:pi(this,this.Y);break;case 173:mi(this,this.Y|16);break;case 174:mi(this,this.Y&-17);this.D&&li(this.D);break;case 170:this.D&&(c=this.D,c.B=[],c.Sa()&&c.Ma("scan codes flushed"));mi(this,this.Y|16);pi(this,85);ni(this,3);break;case 171:pi(this,0);break;case 192:pi(this,this.Z);break;case 208:pi(this,this.Aa);break;case 224:pi(this,this.Y&16?0:1);break;case 240:c&1&&xd(this.A)}}; +function mi(a,b){a.Y=b;a.I=a.I&-5|b&4;a.D&&ki(a.D,!!(b&8),!(b&16))}function pi(a,b,c){0<=b&&(a.ya=b,c?a.I|=1:(a.I&=-2,a.I|=256))}function ni(a,b){a.Aa=b;ub(a.ma,!!(b&2));b&1||xd(a.A)}function qi(a,b){a.ga=c)if(d=this.B[c],10>c){var e=!1;4!=c&&5!=c||this.B[11]&2||(12>d?d=d?d:12:d=(d-=12)?d+128:140,e=!0);this.B[11]&4||(e&&128=c){if(e=b,10>c){var k=!1;this.B[11]&4||(e=10*(e>>4)+(e&15),k=!0);if(4==c||5==c)k&&23=e?e=12==e?0:e:(e-=116,e=24==e?12:e))}}else e=b;this.B[c]=e;11==c&&d&64&&b&64&&yh(this)};f.vl=function(a,b){this.Da=b};f.bl=function(){};f.cl=function(){};function ch(a,b){if(void 0===a)return b;for(var c=0,d=1,e=0;ec||2E4>>4,this.L,this.F,this.O),delete this.O);return!0};si.prototype.ac=function(){return!0}; @@ -840,12 +840,12 @@ return}else for(a=b.replace(/\n/gm," ").replace(/ +$/,"").split(" "),this.B=Arra function ti(a){if(!$a(a))if(!a.K)Za(a);else if(a.B&&a.ma){if(a.B.length!=a.F)ab(a,"ROM size (0x"+da(a.B.length)+") does not match specified size ("+("0x"+da(a.F))+")");else{var b;b=a.L;if(vb(a.ma,b,a.F,Cb)){for(var c=0;c>>d.na].Ze(e&d.B,a.B[c]&255,e)}b=!0}else b=!1;if(b){b=[];"number"==typeof a.I?b.push(a.I):null!=a.I&&a.I.length&&(b=a.I);for(c=0;cthis.D?21:23,c=a.B[b]|a.B[b+1]<<8,c=c+(this.B>>10);a.B[b]=c&255;a.B[b+ +f.reset=function(){if(!this.D&&!this.I&&this.Y){var a=1024*th(this.Y);this.B&&a!=this.B&&(Bb(this.ma,this.D,this.B),this.F=!1);this.B=a}!this.F&&this.B&&vb(this.ma,this.D,this.B,1)&&(this.F=!0,this.status(Math.floor(this.B/1024)+"Kb allocated"),"ramCPQ"==this.ue&&(this.controller=new xi(this),vb(this.ma,yi,4,4,this.controller)));if(this.F){if(this.K||Ib(this.ma,1138,4660),"ramCPQ"!=this.ue&&this.Y&&(a=this.Y,a.B)){var b=1048576>this.D?21:23,c=a.B[b]|a.B[b+1]<<8,c=c+(this.B>>10);a.B[b]=c&255;a.B[b+ 1]=c>>8;xh(a)}}else ta("No RAM allocated")};f.save=function(){var a=new Vd(this);this.controller&&E(a,0,this.controller.save());return a.data()};f.restore=function(a){return this.controller?this.controller.restore(a[0]):!0};function xi(a){this.I=a;this.D=zi;this.F=Ai;this.B=Bi;this.A=null}var yi=-2134900736,zi=65535,Ai=2575,Bi=2,Ci=[null,0],Di=[function(a){return this.controller.Sb(a)},null,null,function(a,b){this.controller.Gc(a,b)},null,null];f=xi.prototype;f.save=function(){return[this.D,this.B]}; f.restore=function(a){this.Gc(0,a[0]&255);this.Gc(2,a[1]&255);return!0};f.Sb=function(a){var b=255;2>a?b=a&1?this.F>>8:this.F&255:4>a&&(b=a&1?this.B>>8:this.B&255);return b};f.Gc=function(a,b){if(a)2==a&&(this.B=this.B&-256|b);else if(b!=(this.D&255)){var c=this.I.ma;if(b&1)this.A&&(yb(c,917504,131072,this.A),this.A=null);else{this.A||(this.A=zb(c,917504,131072));var d=zb(c,16646144,131072);yb(c,917504,131072,d,b&2?1:Cb)}this.D=this.D&-256|b}};f.Mi=function(){return Ci};f.Ng=function(){return Di}; Fa(function(){for(var a=Xa(window.document,"pcjs","ram"),b=0;b":62,"?":63,"@":64,Kl:65,Ll:66,Ml:67,Rl:68,E:69,Sl:70,Vl:71,Wl:72,Xl:73,Yl:74,Zl:75,$l:76,am:77,bm:78,cm:79,dm:80,Q:81,em:82,im:83,nm:84,rm:85,sm:86,tm:87,vm:88,wm:89,xm:90,"[":91,"\\":92,"]":93,"^":94,_:95,"`":96,ym:97,zm:98,Cm:99,d:100,e:101,Dm:102,Em:103,Fm:104,Gm:105,Hm:106,k:107,Im:108, -Jm:109,n:110,Lm:111,p:112,q:113,r:114,Mm:115,t:116,Nm:117,Om:118,Pm:119,x:120,y:121,z:122,"{":123,"|":124,"}":125,"~":126},Fi={};Fi[186]=W[";"];Fi[187]=W["="];Fi[188]=W[","];Fi[189]=W["-"];Fi[190]=W["."];Fi[191]=W["/"];Fi[192]=W["`"];Fi[219]=W["["];Fi[220]=W["\\"];Fi[221]=W["]"];Fi[222]=W["'"];Fi[173]=W["-"];var Gi={};Gi[W["1"]]=W["!"];Gi[W["2"]]=W["@"];Gi[W["3"]]=W["#"];Gi[W["4"]]=W.$;Gi[W["5"]]=W["%"];Gi[W["6"]]=W["^"];Gi[W["7"]]=W["&"];Gi[W["8"]]=W["*"];Gi[W["9"]]=W["("];Gi[W["0"]]=W[")"]; +var W={Pl:1,Ql:3,Rl:26," ":32,"!":33,'"':34,"#":35,$:36,"%":37,"&":38,"'":39,"(":40,")":41,"*":42,"+":43,",":44,"-":45,".":46,"/":47,0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,":":58,";":59,"<":60,"=":61,">":62,"?":63,"@":64,Ll:65,Ml:66,Nl:67,Sl:68,E:69,Tl:70,Wl:71,Xl:72,Yl:73,Zl:74,$l:75,am:76,bm:77,cm:78,dm:79,em:80,Q:81,fm:82,jm:83,om:84,sm:85,tm:86,um:87,wm:88,xm:89,ym:90,"[":91,"\\":92,"]":93,"^":94,_:95,"`":96,zm:97,Am:98,Dm:99,d:100,e:101,Em:102,Fm:103,Gm:104,Hm:105,Im:106,k:107,Jm:108, +Km:109,n:110,Mm:111,p:112,q:113,r:114,Nm:115,t:116,Om:117,Pm:118,Qm:119,x:120,y:121,z:122,"{":123,"|":124,"}":125,"~":126},Fi={};Fi[186]=W[";"];Fi[187]=W["="];Fi[188]=W[","];Fi[189]=W["-"];Fi[190]=W["."];Fi[191]=W["/"];Fi[192]=W["`"];Fi[219]=W["["];Fi[220]=W["\\"];Fi[221]=W["]"];Fi[222]=W["'"];Fi[173]=W["-"];var Gi={};Gi[W["1"]]=W["!"];Gi[W["2"]]=W["@"];Gi[W["3"]]=W["#"];Gi[W["4"]]=W.$;Gi[W["5"]]=W["%"];Gi[W["6"]]=W["^"];Gi[W["7"]]=W["&"];Gi[W["8"]]=W["*"];Gi[W["9"]]=W["("];Gi[W["0"]]=W[")"]; Gi[186]=W[":"];Gi[187]=W["+"];Gi[188]=W["<"];Gi[189]=W._;Gi[190]=W[">"];Gi[191]=W["?"];Gi[192]=W["~"];Gi[219]=W["{"];Gi[220]=W["|"];Gi[221]=W["}"];Gi[222]=W['"'];Gi[173]=W._;Gi[61]=W["+"];Gi[59]=W[":"]; var Hi={3016:1,1016:2,1017:8,1018:32,1091:128,1093:64,1224:128,1020:512,1144:1024,1145:2048},Ii={TAB:1009,ESC:1027,F1:1112,F2:1113,F3:1114,F4:1115,F5:1116,F6:1117,F7:1118,F8:1119,F9:1120,F10:1121,LEFT:1037,UP:1038,RIGHT:1039,DOWN:1040,CTRL_C:4003,CTRL_BREAK:4008,CTRL_ALT_DEL:4046},Ji={esc:1027,1:W["1"],2:W["2"],3:W["3"],4:W["4"],5:W["5"],6:W["6"],7:W["7"],8:W["8"],9:W["9"],0:W["0"],"-":W["-"],"=":W["="],bs:1008,tab:1009,q:81,w:87,e:69,r:82,t:84,y:89,u:85,i:73,o:79,p:80,"[":W["["],"]":W["]"],enter:13, ctrl:1017,a:65,s:83,d:68,f:70,g:71,h:72,j:74,k:75,l:76,";":W[";"],quote:W["'"],"`":W["`"],shift:1016,"\\":W["\\"],z:90,x:88,c:67,v:86,b:66,n:78,m:77,",":W[","],".":W["."],"/":W["/"],"right-shift":3016,prtsc:1044,alt:1018,space:W[" "],"caps-lock":1020,f1:1112,f2:1113,f3:1114,f4:1115,f5:1116,f6:1117,f7:1118,f8:1119,f9:1120,f10:1121,"num-lock":1144,"scroll-lock":1145,"num-home":1036,"num-up":1038,"num-pgup":1033,"num-sub":1109,"num-left":1037,"num-center":1101,"num-right":1039,"num-add":1107,"num-end":1035, @@ -859,178 +859,178 @@ c.onmouseout=b),!0}return!1};function Pi(a,b,c){if(a.P){for(var d in Gi)if(b==Gi function ki(a,b,c){a.L!==c&&(a.L=a.O=c)&&(a.I=!0);a.K!==b&&(a.K=b)&&!a.O&&ri(a,!0);a.K&&a.O&&(oi(a,!0),a.O=!1)}function li(a){var b=0;a.B.length&&a.I&&(b=a.B[0],a.Y&&qi(a.Y,b));a.Sa()&&a.Ma("scan code "+ea(b)+" available")}function ri(a,b){0>=1);if(b&3584){if(!1===d)return!0;d=null}null==d?d=!((c?a.F:a.Pb)&b):d||b&255&&(b=255);if(c){a.F&=~b;d&&(a.F|=b);c=b;var k,l;for(l in Ki)d="led-"+l,e=Ki[l],c&&c!=e||!(k=a.ra[d])||(k.style.backgroundColor=a.F&e?"#00ff00":"#000000")}else a.Pb&=~b,d&&(a.Pb|=b);return!0}}return!1} -function Mi(a,b,c){if(X[b]&&a.A&&a.A.ia.Kb){Hi[b]&&a.D.length&&0e||(e==a.D.length&&(d={},d.Md=b,d.Pb=a.Pb,Pi(a,b,!0),e++),0b.Tc){if(!b.Ge){Oi(a,b.Md);return}b.Ge=!1;c=a.ga}else c=1==b.Tc++?500:100;b.bj=setTimeout(function(a){return function(){Ri(a,b)}}(a),c)}}else Oi(a,b.Md,!0)} +function Mi(a,b,c){if(X[b]&&a.A&&a.A.ia.Kb){Hi[b]&&a.D.length&&0e||(e==a.D.length&&(d={},d.Ld=b,d.Pb=a.Pb,Pi(a,b,!0),e++),0b.Tc){if(!b.Ge){Oi(a,b.Ld);return}b.Ge=!1;c=a.ga}else c=1==b.Tc++?500:100;b.aj=setTimeout(function(a){return function(){Ri(a,b)}}(a),c)}}else Oi(a,b.Ld,!0)} function Ti(a,b,c){var d=b;if(65<=b&&90>=b)!(a.Pb&515)==c&&(d=b+32);else if(97<=b&&122>=b)!!(a.Pb&515)==c&&(d=b-32);else if(!!(a.Pb&3)==c){if(a=Gi[b])d=a}else if(a=Fi[b])d=a;return d}f.kg=function(a){a||(this.Pb&=-256)}; function Li(a,b,c){var d=!0,e=!1,k=!1,l=b.keyCode,p=Ti(a,l,!0);a.Kg&&p==W["`"]&&(l=p=27);if(X[l+1E3])if(p+=1E3,2==b.location&&(p+=2E3),Ni(a,p,!1,c)){if(20==l||144==l||145==l)a.V||(c=e=!0);if(!(c||91!=l&&93!=l))for(var q=0;q=b||97<=b&&122>=b;d>>>=8;){var l=0,p=d&255;224==k||225==k?e.push(k|(c?0:128)):(42==p?a.F&3||a.F&512&&b||(l=p):29==p?a.F&12||(l=p):56==p?a.F&48||(l=p):e.push(k|(c?0:128)),l&&(c?e.unshift(l):e.push(l|128)))}for(c=0;cd.B.length?(d.Sa()&&d.Ma("scan code "+ea(k)+" buffered"),d.B.push(k),1==d.B.length&&d.Y&&qi(d.Y,k)):(20== d.B.length&&d.B.push(255),d.Ma("scan code buffer overflow")))}}Fa(function(){for(var a=Xa(window.document,"pcjs","keyboard"),b=0;bc.length)c=[!1,0,null,null,0,Array(5>b?lj:mj)];this.hb=b;this.cb=e[2];this.Eb=e[3];this.Pc=d||e[4];65536<=this.Pc&&720896<=this.cb&&(this.Eb=Math.min(this.Pc>>2,32768));this.Rb=c[0];this.yc=c[1];this.We=c[2];this.wa=c[3];this.kc=c[4]&255;this.qg=c[4]>>8&255;this.eb=c[5];this.Rg=lj;if(5<=b){this.Rg=mj;b=c[6];void 0===b&&(b=[!1,0,Array(20),0,3==k?0:1,0,0,Array(5),0,0,0,Array(9),0,[this.cb,this.Eb,this.Pc], -Array(this.Pc>>2),-2147478512,0,-1,0,-1,0,-1,0,0,0,0,1,255,0,0,0,Array(256)]);this.nd=b[0];this.Kd=b[1];this.xc=b[2];this.ei=b[3];this.Xe=b[4];this.sg=b[5];this.oe=b[6];this.ne=b[7];this.Xi=b[8];this.Yi=b[9];this.me=b[10];this.vd=b[11];this.kb=b[12];d=b[13];"number"==typeof d&&(d=[this.cb,this.Eb,d]);this.cb=d[0];this.Eb=d[1];d=this.Pc>>2;if((this.jd=b[14])&&this.jd.length>2),-2147478512,0,-1,0,-1,0,-1,0,0,0,0,1,255,0,0,0,Array(256)]);this.Ee=b[0];this.Jd=b[1];this.xc=b[2];this.ei=b[3];this.Xe=b[4];this.sg=b[5];this.ne=b[6];this.me=b[7];this.Wi=b[8];this.Xi=b[9];this.le=b[10];this.ud=b[11];this.kb=b[12];d=b[13];"number"==typeof d&&(d=[this.cb,this.Eb,d]);this.cb=d[0];this.Eb=d[1];d=this.Pc>>2;if((this.jd=b[14])&&this.jd.length>this.controller.$h&255};oj[17408]=function(a){return(this.controller.kb=this.ba[(a&-4)+this.B])>>((a&3)<<3)&255};oj[5120]=function(a){a+=this.B;var b=this.controller.kb=this.ba[a&-2];return(a&1?b>>8:b)&255}; -oj[1280]=function(a){a+=this.B;a=this.controller.kb=this.ba[a];for(var b=this.controller.Tg,c=this.controller.Sg&b,d=0,e=128;e;)(a&b)==c&&(d|=e),c>>>=1,b>>>=1,e>>=1;return d};oj[0]=function(a,b){var c=a+this.B,d;d=(b|b<<8|b<<16|b<<24)&this.controller.fd|this.controller.ud;d=d&this.controller.ob|this.controller.kb&~this.controller.ob;d=d&this.controller.$a|this.ba[c]&~this.controller.$a;this.ba[c]!=d&&(this.ba[c]=d,this.Pa=!0)}; -oj[32]=function(a,b){var c=a+this.B;b=b>>this.controller.vc|b<<8-this.controller.vc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.fd|this.controller.ud;d=d&this.controller.ob|this.controller.kb&~this.controller.ob;d=d&this.controller.$a|this.ba[c]&~this.controller.$a;this.ba[c]!=d&&(this.ba[c]=d,this.Pa=!0)}; -oj[96]=function(a,b){var c=a+this.B;b=b>>this.controller.vc|b<<8-this.controller.vc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.fd|this.controller.ud;d&=this.controller.kb;d=d&this.controller.ob|this.controller.kb&~this.controller.ob;d=d&this.controller.$a|this.ba[c]&~this.controller.$a;this.ba[c]!=d&&(this.ba[c]=d,this.Pa=!0)}; -oj[160]=function(a,b){var c=a+this.B;b=b>>this.controller.vc|b<<8-this.controller.vc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.fd|this.controller.ud;d|=this.controller.kb;d=d&this.controller.ob|this.controller.kb&~this.controller.ob;d=d&this.controller.$a|this.ba[c]&~this.controller.$a;this.ba[c]!=d&&(this.ba[c]=d,this.Pa=!0)}; -oj[224]=function(a,b){var c=a+this.B;b=b>>this.controller.vc|b<<8-this.controller.vc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.fd|this.controller.ud;d^=this.controller.kb;d=d&this.controller.ob|this.controller.kb&~this.controller.ob;d=d&this.controller.$a|this.ba[c]&~this.controller.$a;this.ba[c]!=d&&(this.ba[c]=d,this.Pa=!0)};oj[4]=function(a,b){var c=(a&-4)+this.B,d=(a&3)<<3,d=b<>>=1,b>>>=1,e>>=1;return d};oj[0]=function(a,b){var c=a+this.B,d;d=(b|b<<8|b<<16|b<<24)&this.controller.fd|this.controller.td;d=d&this.controller.ob|this.controller.kb&~this.controller.ob;d=d&this.controller.$a|this.ba[c]&~this.controller.$a;this.ba[c]!=d&&(this.ba[c]=d,this.Pa=!0)}; +oj[32]=function(a,b){var c=a+this.B;b=b>>this.controller.vc|b<<8-this.controller.vc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.fd|this.controller.td;d=d&this.controller.ob|this.controller.kb&~this.controller.ob;d=d&this.controller.$a|this.ba[c]&~this.controller.$a;this.ba[c]!=d&&(this.ba[c]=d,this.Pa=!0)}; +oj[96]=function(a,b){var c=a+this.B;b=b>>this.controller.vc|b<<8-this.controller.vc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.fd|this.controller.td;d&=this.controller.kb;d=d&this.controller.ob|this.controller.kb&~this.controller.ob;d=d&this.controller.$a|this.ba[c]&~this.controller.$a;this.ba[c]!=d&&(this.ba[c]=d,this.Pa=!0)}; +oj[160]=function(a,b){var c=a+this.B;b=b>>this.controller.vc|b<<8-this.controller.vc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.fd|this.controller.td;d|=this.controller.kb;d=d&this.controller.ob|this.controller.kb&~this.controller.ob;d=d&this.controller.$a|this.ba[c]&~this.controller.$a;this.ba[c]!=d&&(this.ba[c]=d,this.Pa=!0)}; +oj[224]=function(a,b){var c=a+this.B;b=b>>this.controller.vc|b<<8-this.controller.vc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.fd|this.controller.td;d^=this.controller.kb;d=d&this.controller.ob|this.controller.kb&~this.controller.ob;d=d&this.controller.$a|this.ba[c]&~this.controller.$a;this.ba[c]!=d&&(this.ba[c]=d,this.Pa=!0)};oj[4]=function(a,b){var c=(a&-4)+this.B,d=(a&3)<<3,d=b<>this.controller.vc|b<<8-this.controller.vc&255;var d;d=(b|b<<8|b<<16|b<<24)&this.controller.ob;d=this.controller.Re&d|this.controller.kb&~d;d=d&this.controller.$a|this.ba[c]&~this.controller.$a;this.ba[c]!=d&&(this.ba[c]=d,this.Pa=!0)}; -function pj(a){var b=[];if(void 0!==a.hb){b[0]=a.Rb;b[1]=a.yc;b[2]=a.We;b[3]=a.wa;b[4]=a.kc|a.qg<<8;b[5]=a.eb;if(5<=a.hb){var c=[];c[0]=a.nd;c[1]=a.Kd;c[2]=a.xc;c[3]=a.ei;c[4]=a.Xe;c[5]=a.sg;c[6]=a.oe;c[7]=a.ne;c[8]=a.Xi;c[9]=a.Yi;c[10]=a.me;c[11]=a.vd;c[12]=a.kb;c[13]=[a.cb,a.Eb,a.Pc];var d;a:if(d=a.jd){var e=0,k=[];if(void 0!==d[0])for(var l=0;2>l;l++)for(var p=l;p>1;k[e++]=q;p=w}if(k.lengthl;l++)for(var p=l;p>1;k[e++]=q;p=w}if(k.lengthc&&(a=Math.round(c/b*100)+"%")}this.Kc?(this.ha.style.width=a,this.ha.style.width=a,this.ha.style.display="block",this.ha.style.margin="auto"):(this.V.style.width=a,this.V.style.height="auto");this.V.style.backgroundColor="black";this.V.Td();a=!0}this.Zc()}return a}; -function Zi(a,b){!b&&a.V&&(a.Kc?a.ha.style.width=a.ha.style.height="":a.V.style.width=a.V.style.height="");a.Ma("notifyFullScreen("+b+")",!0);a.D&&(a.D.Kg=b)}f.Gd=function(a){var b=!1;this.K&&(a?this.K.Gd&&(this.K.Gd(),this.P&&this.P.Te(!0),b=!0):this.K.cj&&(this.K.cj(),this.P&&this.P.Te(!1),b=!0),this.Zc());return b};f.Te=function(a){this.P&&(this.P.Te(a),this.D&&(this.D.Kg=a));var b=this.ra.lockPointer;b&&(b.textContent=a?"Press Esc to Unlock Pointer":this.Ad)}; +f.uc=function(a,b,c,d){this.ma=b;this.A=c;this.Qa=d;3!=Ui[this.ga]&&(Jb(b,this,qj),Mb(b,this,rj));Ui[this.ga]!=Vi&&(Jb(b,this,sj),Mb(b,this,tj));5<=this.hb&&(Jb(b,this,uj),Mb(b,this,vj));this.hb==vi&&(Jb(b,this,wj),Mb(b,this,xj));if((this.D=gb(a,"Keyboard"))&&this.ha){for(var e in this.ra)0c&&(a=Math.round(c/b*100)+"%")}this.Kc?(this.ha.style.width=a,this.ha.style.width=a,this.ha.style.display="block",this.ha.style.margin="auto"):(this.V.style.width=a,this.V.style.height="auto");this.V.style.backgroundColor="black";this.V.Sd();a=!0}this.Zc()}return a}; +function Zi(a,b){!b&&a.V&&(a.Kc?a.ha.style.width=a.ha.style.height="":a.V.style.width=a.V.style.height="");a.Ma("notifyFullScreen("+b+")",!0);a.D&&(a.D.Kg=b)}f.Fd=function(a){var b=!1;this.K&&(a?this.K.Fd&&(this.K.Fd(),this.P&&this.P.Te(!0),b=!0):this.K.bj&&(this.K.bj(),this.P&&this.P.Te(!1),b=!0),this.Zc());return b};f.Te=function(a){this.P&&(this.P.Te(a),this.D&&(this.D.Kg=a));var b=this.ra.lockPointer;b&&(b.textContent=a?"Press Esc to Unlock Pointer":this.zd)}; function yj(a,b){var c=a.K;c&&!a.gc&&(c.addEventListener("touchstart",function(b){zj(a,b,!0)},!1),c.addEventListener("touchmove",function(b){zj(a,b)},!0),c.addEventListener("touchend",function(b){zj(a,b,!1)},!1),a.gc=b,a.ab=a.bb=a.Wc=-1)}f.kg=function(a){this.Dc=a;this.D&&this.D.kg(a)}; function zj(a,b,c){var d,e;a.Dc&&b.preventDefault();var k=0,l=0;e=a.ha;do isNaN(e.offsetLeft)||(k+=e.offsetLeft,l+=e.offsetTop);while(e=e.offsetParent);var p=a.ka/a.ha.offsetWidth,q=a.sa/a.ha.offsetHeight;b.targetTouches&&b.targetTouches.length?(d=b.targetTouches[0].pageX,e=b.targetTouches[0].pageY):(d=b.pageX,e=b.pageY);d=(d-k)*p;e=(e-l)*q;if(1==a.gc)d=d/(a.ka/3)|0,e=e/(a.sa/3)|0,1!=e?e?Mi(a.D,1040,!0):Mi(a.D,1038,!0):1!=d&&(d?Mi(a.D,1039,!0):Mi(a.D,1037,!0));else if(a.P){!0===c&&(a.Wc=b.timeStamp); if(!1===c&&(b=b.timeStamp-a.Wc,a.cc("processTouchEvent(false,"+b+")"),200>b)){a.P.pf(Aj,!0);a.P.pf(Aj,!1);return}if(c||0>a.ab||0>a.bb)a.ab=d,a.bb=e;c=Math.round(d-a.ab);b=Math.round(e-a.bb);a.ab=d;a.bb=e;a.P.Pg(c,b,a.ab,a.bb)}}f.bc=function(a,b){if(!b)if(!a||!this.restore)this.reset();else if(!this.restore(a))return!1;return!0};f.ac=function(a){return a&&this.save?this.save():!0}; f.reset=function(){var a=!0,b=0;this.Y&&(b=uh(this.Y));this.ga||(this.hb=3==b?Vi:3);this.na=3;switch(this.hb){case vi:b=7;break;case 5:var c=aj[this.pb];c&&(b=c[0]);b||(b=4);break;case Vi:b=3;this.na=Xi;break;default:b=2}this.pa!==b&&(this.pa=b,a=!0);this.I=null;this.ja=this.Ib=new jj(this,Vi);this.T=this.Ab=new jj(this,3);5>this.hb?this.B=new jj:(this.B=new jj(this,this.hb,null,this.Pc),Bj(this));Cj(this);this.Fa=null;this.Ga=this.fa=-1;this.Aa=0;Dj(this,this.na);if(this.I.cb&&a){a=this.I.cb+this.Ua; for(b=this.I.cb;b>1&255,d=d>>8&-129,d>>4==(d&15)&&(d^=15)):(c=d&255,d=(d&256?7:112)|8&d>>8);Ib(this.ma,b,c|d<<8)}nc(this,!0)}};function Bj(a){a.B.Xe&1?(a.ja=a.Ib,a.T=a.B):(a.ja=a.B,a.T=a.Ab)}f.save=function(){var a=new Vd(this);E(a,0,pj(this.Ib));E(a,1,pj(this.Ab));E(a,2,[this.pa,this.na,this.Fa]);E(a,3,pj(this.B));return a.data()}; f.restore=function(a){var b=a[2];this.pa=b[0];this.na=b[1];this.Fa=b[2];this.I=null;this.ja=this.Ib=new jj(this,Vi,a[0]);this.T=this.Ab=new jj(this,3,a[1]);this.B=new jj(this,this.hb,a[3],this.Pc);this.B.Rb&&Bj(this);Cj(this);if(!Ej(this))return!1;Fj(this);return!0}; -f.Hk=function(a,b,c){if(c)this.Ja("Unable to load font ROM image (error "+c+")");else{try{var d=eval("("+b+")");if(!d.length){ta("Empty font ROM image: "+a);return}if(1==d.length){ta(d[0]);return}if(8192==d.length)ui(this,d,[6144,0]);else{this.Ja("Unrecognized font data length ("+d.length+")");return}}catch(e){this.Ja("Font ROM data error: "+e.message);return}(this.Z||this.Qa)&&Za(this)}}; -function Gj(a,b){if(1==b)return a.qa[0]=dj[0],a.qa[1]=dj[7],a.qa;if(2==b){var c=a.I.We;if(a.I===a.B){var d=a.B.xc[0],c=d&7;d&16&&(c|=8);18!=a.B.xc[1]&&(c|=32)}a.qa[0]=dj[c&15];c=c&32?fj:ej;for(d=0;dk;k++)l=d[k]||0,p=l<<2&252,q=l>>4&252,l=l>>10&252,a.qa[k]=[p,q,l,255];else{var w=d&&d[255];e=null!=c.xc[15]?c.xc:gj;for(k=0;16>k;k++)l=e[k]&63,w?(l|= +f.Ik=function(a,b,c){if(c)this.Ja("Unable to load font ROM image (error "+c+")");else{try{var d=eval("("+b+")");if(!d.length){ta("Empty font ROM image: "+a);return}if(1==d.length){ta(d[0]);return}if(8192==d.length)ui(this,d,[6144,0]);else{this.Ja("Unrecognized font data length ("+d.length+")");return}}catch(e){this.Ja("Font ROM data error: "+e.message);return}(this.Z||this.Qa)&&Za(this)}}; +function Gj(a,b){if(1==b)return a.qa[0]=dj[0],a.qa[1]=dj[7],a.qa;if(2==b){var c=a.I.We;if(a.I===a.B){var d=a.B.xc[0],c=d&7;d&16&&(c|=8);18!=a.B.xc[1]&&(c|=32)}a.qa[0]=dj[c&15];c=c&32?fj:ej;for(d=0;dk;k++)l=d[k]||0,p=l<<2&252,q=l>>4&252,l=l>>10&252,a.qa[k]=[p,q,l,255];else{var w=d&&d[255];e=null!=c.xc[15]?c.xc:gj;for(k=0;16>k;k++)l=e[k]&63,w?(l|= (c.xc[20]&12)<<4,c.xc[16]&128&&(l&=-49,l|=(c.xc[20]&3)<<4),l=d[l],p=l<<2&252,q=l>>4&252,l=l>>10&252):(p=(l&4?170:0)|(l&32?85:0),q=(l&2?170:0)|(l&16?85:0),l=(l&1?170:0)|(l&8?85:0)),a.qa[k]=[p,q,l,255]}a.Ea=!0}return a.qa}function ui(a,b,c,d){a.lb=b;a.Jb=c;a.Sa=d} -function Cj(a,b){var c=!1;if(window&&a.lb&&(!b||a.L)){var d=0,e=a.Sa?a.Sa:8,k=Gj(a);Hj(a,3,a.Jb[0],d,e,8,a.lb,k)&&(c=!0);d=a.Sa?0:2048;e=a.Sa?a.Sa:9;Hj(a,1,a.Jb[1],d,e,14,a.lb,bj,cj)&&(c=!0);a.Sa&&Hj(a,a.hb,a.Jb[1],0,a.Sa,14,a.lb,k)&&(c=!0)}return c}function Hj(a,b,c,d,e,k,l,p,q){var w=!1;null!=c&&(Ij(a,b,c,d,e,k,l,p,q)&&(w=!0),a.xd&&Ij(a,b<<1,c,d,e,k,l,p,q)&&(w=!0));return w} -function Ij(a,b,c,d,e,k,l,p,q){var w=!1,C=b&1?0:1,G=a.ya[b],D=16>p.length?p.length:16;G||(G={mc:e<na||!ia?na:8,bf=Qh.createImageData(w.mc,w.nc),ob=0;256>ob;ob++){for(Lb= -0;Lb=na-2,ll=Wb[Lb>(8<=tc&&192<=ob&&223>=ob?7:tc)?R:jl;Jj(bf,Rh,Sh,Th);U&&Jj(bf,Rh+1,Sh,Th)}Qh.putImageData(bf,(ob&15)*w.mc,(ob>>4)*w.nc)}w.Od[V]="#"+da(R[0],2)+da(R[1],2)+da(R[2],2);w.pi[V]=R;w.Cg[V]=Pd;w=!0}}a.ya[b]=G;return w}function Kj(a){0a.Ga&&(a.Ga=0):a.Ga=-1} +function Cj(a,b){var c=!1;if(window&&a.lb&&(!b||a.L)){var d=0,e=a.Sa?a.Sa:8,k=Gj(a);Hj(a,3,a.Jb[0],d,e,8,a.lb,k)&&(c=!0);d=a.Sa?0:2048;e=a.Sa?a.Sa:9;Hj(a,1,a.Jb[1],d,e,14,a.lb,bj,cj)&&(c=!0);a.Sa&&Hj(a,a.hb,a.Jb[1],0,a.Sa,14,a.lb,k)&&(c=!0)}return c}function Hj(a,b,c,d,e,k,l,p,q){var w=!1;null!=c&&(Ij(a,b,c,d,e,k,l,p,q)&&(w=!0),a.wd&&Ij(a,b<<1,c,d,e,k,l,p,q)&&(w=!0));return w} +function Ij(a,b,c,d,e,k,l,p,q){var w=!1,C=b&1?0:1,G=a.ya[b],D=16>p.length?p.length:16;G||(G={mc:e<na||!ia?na:8,bf=Qh.createImageData(w.mc,w.nc),ob=0;256>ob;ob++){for(Lb= +0;Lb=na-2,ll=Xb[Lb>(8<=uc&&192<=ob&&223>=ob?7:uc)?R:jl;Jj(bf,Rh,Sh,Th);U&&Jj(bf,Rh+1,Sh,Th)}Qh.putImageData(bf,(ob&15)*w.mc,(ob>>4)*w.nc)}w.Nd[V]="#"+da(R[0],2)+da(R[1],2)+da(R[2],2);w.pi[V]=R;w.Cg[V]=Pd;w=!0}}a.ya[b]=G;return w}function Kj(a){0a.Ga&&(a.Ga=0):a.Ga=-1} function Fj(a){if(a.L){for(var b=10;15>=b;b++)if(null==a.I.eb[b])return;var c=a.I.eb[10],b=c&31,d=a.I.eb[11]&31,e=a.I.eb[9]&31,k=!1;a.I===a.B&&(k=!0,7!=e||4!=b||d||(d=7));if(c&32||b>d&&!k||b>e)Lj(a);else{c=a.I.eb[15]+((a.I.eb[14]&63)<<8);a.fa!=c&&(Lj(a),a.fa=c);d=d-b+1;if(a.Yc!=b||a.Ec!=d)a.Yc=b,a.Ec=d;a.Da=e+1;Kj(a)}}} function Lj(a){if(0<=a.fa){if(void 0!==a.U){var b=a.U[a.fa];if(b&131072){var b=b&-131073,c=a.fa%a.F,d=a.fa/a.F|0;a.L&&a.ya[a.L]&&(a.Ia&&Mj(a,c,d,b,a.Ia),Mj(a,c,d,b));a.U[a.fa]=b}}a.fa=-1}} -function Nj(a){var b,c=a.I;a.Fc=!1;var d=c.vd[5];if(null!=d){b=1024;var e=0,k=c.vd[3]&31;switch(d&3){case 0:if(k){e=32;switch(k&24){case 8:e=96;break;case 16:e=160;break;case 24:e=224}c.vc=k&7}break;case 1:e=1;break;case 2:switch(k&24){default:e=2;break;case 8:e=98;break;case 16:e=162;break;case 24:e=226}break;case 3:a.hb==vi&&(e=3,c.vc=k&7)}d&8&&(b=1280);c=c.ne[4];null!=c&&(c&4||(b|=4096,e|=16),d&64&&(c&8&&(b|=16384,e|=4),a.Fc=!0));b|=e}return b} +function Nj(a){var b,c=a.I;a.Fc=!1;var d=c.ud[5];if(null!=d){b=1024;var e=0,k=c.ud[3]&31;switch(d&3){case 0:if(k){e=32;switch(k&24){case 8:e=96;break;case 16:e=160;break;case 24:e=224}c.vc=k&7}break;case 1:e=1;break;case 2:switch(k&24){default:e=2;break;case 8:e=98;break;case 16:e=162;break;case 24:e=226}break;case 3:a.hb==vi&&(e=3,c.vc=k&7)}d&8&&(b=1280);c=c.me[4];null!=c&&(c&4||(b|=4096,e|=16),d&64&&(c&8&&(b|=16384,e|=4),a.Fc=!0));b|=e}return b} function Oj(a,b){var c=a.I;c&&null!=b&&b!=c.Qg&&(c.ug(b),a.ma.ug(c.cb,c.Eb,c.Ng()))} -function Ej(a,b){var c,d=a.Fa,e=a.I;if(e)if(e.hb==Vi)d=Xi;else if(5<=e.hb){var d=null,k=e.Pc>>2,l=32768>2,l=32768=e.eb[18]?19:20:21:l&128||350>k?d=c?13:14:480<=k&&(d=3==a.pa?17:18):d=c?7-d:6:d-=c?2:0);c=Nj(a)}}else e.yc&8&&(e.yc&2?(d=e.yc&16?6:5,e.yc&4||--d):(d=e.yc&1?3:1,e.yc&4&&--d));else a.Fa=null,null==d&&(d=a.na);if(!Dj(a,d,b))return!1;Oj(a,c);return!0} function Dj(a,b,c){if(null!=b&&(b!=a.Fa||c)){a.hd=0;a.Fa=b;a.Ea=!1;b=a.I||(b==Xi?a.ja:a.T);if(b!=a.I||b.cb!=a.cb||b.Eb!=a.Eb){Lj(a);if(a.cb){if(!Bb(a.ma,a.cb,a.Eb))return!1;a.I&&(a.I.Rb=!1)}a.I=b;b.Rb=!0;a.cb=b.cb;a.Eb=b.Eb;if(!vb(a.ma,b.cb,b.Eb,3,b===a.B?b:null))return!1}a.L=0;a.F=a.Cb;a.O=a.Zb;a.Oa=a.F;a.Bb=Wi[Xi][2];b=0;if(c=Wi[a.Fa])a.F=c[0],a.O=c[1],a.Bb=c[2],b=c[3],a.L=c[4],4!=a.pa&&7!=a.pa||a.I!==a.B||3!=a.L||(7==a.B.eb[9]?a.O=43:a.L=a.hb);a.Mc=a.F*a.O|0;a.Lc=a.Mc/a.Bb|0;a.Ua=a.Lc;a.Ob=0;void 0!== -b&&(a.Ua=(a.Ua<<1)+b|0,a.Ob=a.Ua+b>>1);a.ya.length&&(a.ta=a.ka/a.F|0,a.va=a.sa/a.O|0,a.L?(b=a.ya[a.L],c=a.ya[a.L<<1],a.zd&&80==a.F?c&&a.ta>=3*c.mc>>2&&(a.L<<=1,b=c):(c&&a.ta>=c.mc&&(a.L<<=1,b=c),b&&(a.ta=b.mc,a.va=b.nc)),a.Wa=a.Xa=0,b&&(a.Wa=a.F*b.mc,a.Xa=a.O*b.nc)):(a.ta=a.va=1,a.Wa=a.F,a.Xa=a.O),a.Na=a.Z.createImageData(a.Wa,a.Xa),a.Ha=window.document.createElement("canvas"),a.Ha.width=a.Wa,a.Ha.height=a.Xa,a.Ia=a.Ha.getContext("2d"),a.hc=a.tc=0,a.Qb=a.ka,a.Xb=a.sa,b=a.ka-a.F*a.ta,c=a.sa-a.O*a.va, +b&&(a.Ua=(a.Ua<<1)+b|0,a.Ob=a.Ua+b>>1);a.ya.length&&(a.ta=a.ka/a.F|0,a.va=a.sa/a.O|0,a.L?(b=a.ya[a.L],c=a.ya[a.L<<1],a.yd&&80==a.F?c&&a.ta>=3*c.mc>>2&&(a.L<<=1,b=c):(c&&a.ta>=c.mc&&(a.L<<=1,b=c),b&&(a.ta=b.mc,a.va=b.nc)),a.Wa=a.Xa=0,b&&(a.Wa=a.F*b.mc,a.Xa=a.O*b.nc)):(a.ta=a.va=1,a.Wa=a.F,a.Xa=a.O),a.Na=a.Z.createImageData(a.Wa,a.Xa),a.Ha=window.document.createElement("canvas"),a.Ha.width=a.Wa,a.Ha.height=a.Xa,a.Ia=a.Ha.getContext("2d"),a.hc=a.tc=0,a.Qb=a.ka,a.Xb=a.sa,b=a.ka-a.F*a.ta,c=a.sa-a.O*a.va, 0>1,a.Qb-=b),0>1,a.Xb-=c),b||c)&&(a.Z.fillStyle=a.ha.style.backgroundColor,a.Z.fillRect(0,0,a.ka,a.sa));a.Ea=!1;Pj(a,!0);nc(a)}return!0}function Jj(a,b,c,d){b=(b+c*a.width)*d.length;a.data[b]=d[0];a.data[b+1]=d[1];a.data[b+2]=d[2];a.data[b+3]=d[3]}function Pj(a,b){a.Aa=-1;a.xa=!1;if(b){var c=a.Lc;if(void 0===a.U||a.U.length!=c)a.U=Array(c)}} -function Mj(a,b,c,d,e){var k=d&255,l=d>>8;d=l&15;var p=a.ya[a.L];p.Be&&(d=p.Be[d]);var q=l>>4&15;p.Be&&(q=p.Be[q]);e?(b*=p.mc,c*=p.nc,e.fillStyle=p.Od[q],e.fillRect(b,c,p.mc,p.nc)):(b=b*a.ta+a.hc,c=c*a.va+a.tc,a.Z.fillStyle=p.Od[q],a.Z.fillRect(b,c,a.ta,a.va));l&256&&(q=(k&15)*p.mc,k=(k>>4)*p.nc,e?e.drawImage(p.Cg[d],q,k,p.mc,p.nc,b,c,p.mc,p.nc):a.Z.drawImage(p.Cg[d],q,k,p.mc,p.nc,b,c,a.ta,a.va));l&512&&(k=a.Yc,l=a.Ec,e?(a.Da&&a.Da!==p.nc&&(k=k*p.nc/a.Da|0,l=l*p.nc/a.Da|0),e.fillStyle=p.Od[d],e.fillRect(b, -c+k,p.mc,l)):(a.Da&&a.Da!==a.va&&(k=k*a.va/a.Da|0,l=l*a.va/a.Da|0),a.Z.fillStyle=p.Od[d],a.Z.fillRect(b,c+k,a.ta,l)))} -function nc(a,b){if(a.ia.Yb){var c=!1,d=a.I;d&&(d!==a.B?d.yc&8&&(c=!0):d.Kd&32&&(c=!0));if(c||b){if(b)Pj(a,!0);else if(void 0===a.U)return;var e=!1;!(b||++a.hd&15)&&0<=a.Ga&&(a.Ga++,e=!0);var k=0,l=a.Mc,p=a.cb,c=p,q=c+a.Eb;19<=a.Fa&&(p=c=655360,q=c+65536);if(Qj(a,d)&8||d.je&&d.jeq&&(w=q-c,0>w&&(w=0));q=c+ +function Mj(a,b,c,d,e){var k=d&255,l=d>>8;d=l&15;var p=a.ya[a.L];p.Ae&&(d=p.Ae[d]);var q=l>>4&15;p.Ae&&(q=p.Ae[q]);e?(b*=p.mc,c*=p.nc,e.fillStyle=p.Nd[q],e.fillRect(b,c,p.mc,p.nc)):(b=b*a.ta+a.hc,c=c*a.va+a.tc,a.Z.fillStyle=p.Nd[q],a.Z.fillRect(b,c,a.ta,a.va));l&256&&(q=(k&15)*p.mc,k=(k>>4)*p.nc,e?e.drawImage(p.Cg[d],q,k,p.mc,p.nc,b,c,p.mc,p.nc):a.Z.drawImage(p.Cg[d],q,k,p.mc,p.nc,b,c,a.ta,a.va));l&512&&(k=a.Yc,l=a.Ec,e?(a.Da&&a.Da!==p.nc&&(k=k*p.nc/a.Da|0,l=l*p.nc/a.Da|0),e.fillStyle=p.Nd[d],e.fillRect(b, +c+k,p.mc,l)):(a.Da&&a.Da!==a.va&&(k=k*a.va/a.Da|0,l=l*a.va/a.Da|0),a.Z.fillStyle=p.Nd[d],a.Z.fillRect(b,c+k,a.ta,l)))} +function nc(a,b){if(a.ia.Yb){var c=!1,d=a.I;d&&(d!==a.B?d.yc&8&&(c=!0):d.Jd&32&&(c=!0));if(c||b){if(b)Pj(a,!0);else if(void 0===a.U)return;var e=!1;!(b||++a.hd&15)&&0<=a.Ga&&(a.Ga++,e=!0);var k=0,l=a.Mc,p=a.cb,c=p,q=c+a.Eb;19<=a.Fa&&(p=c=655360,q=c+65536);if(Qj(a,d)&8||d.ie&&d.ieq&&(w=q-c,0>w&&(w=0));q=c+ w;if(d=!b&&a.xa){for(var d=a.ma,C=!0,G=c>>>d.na;0a.fa)return;k=a.fa;l=k+1}}if(a.L){if(a.ya[a.L]){e=0;p=a.Aa=0;d=1048575;w=a.I.yc&32;5<=a.hb&&(w=a.I.xc[16]&8);w&&(p=32768,d&=~p,a.Ga&2||(d&=-65537));for(c+=k<<1;c>8|(D&255)<<8;var ia=p,pa=16;C>=d))>>(pa-=d);Jj(a.Na,C++,G,w[Wb])}C>V&&(V=C);G=va&&(va=G+1)}q+=2;k++;if(C>=a.F){C=0;G+=2;if(G>a.O)break;G==a.O&&(G=1,q=c+a.Ob)}}a.xa=!0;Ra.F?a.Oa-a.F-D>>3:0;cpa&&(na=pa)):(k<<=D,na-=D,a.xa=!1):(a.xa&&k===a.U[e]?(w+=na,na=0):a.U[e]=k,e++);if(na){w>>=8;w>R&&(R=w);C=U&&(U=C+1)}c+=va;if(w>=a.F){w=0;if(++C>a.O)break;c+=ia}}D||(a.xa=!0);G>8|(D&255)<<8;var ia=p,pa=16;C>=d))>>(pa-=d);Jj(a.Na,C++,G,w[Xb])}C>V&&(V=C);G=va&&(va=G+1)}q+=2;k++;if(C>=a.F){C=0;G+=2;if(G>a.O)break;G==a.O&&(G=1,q=c+a.Ob)}}a.xa=!0;Ra.F?a.Oa-a.F-D>>3:0;cpa&&(na=pa)):(k<<=D,na-=D,a.xa=!1):(a.xa&&k===a.U[e]?(w+=na,na=0):a.U[e]=k,e++);if(na){w>>=8;w>R&&(R=w);C=U&&(U=C+1)}c+=va;if(w>=a.F){w=0;if(++C>a.O)break;c+=ia}}D||(a.xa=!0);Ga.F?a.Oa-a.F-U>>3:0;cia&&(pa=ia)):(D<<=U,pa-=U,a.xa=!1):(a.xa&&D===a.U[k]?(d+=pa,pa=0):a.U[k]=D,k++);if(pa){dG&&(G=d);w=V&&(V=w+1)}if(d>=a.F){d=0;if(++w>a.O)break;c+=va}}U||(a.xa=!0);Cd&&(b.Yg=d,d=-d|0);d%b.Ug>b.Ek&&(c|=1);d%b.Xg>b.Gk&&(c|=9);b.ai=d/b.Xg|0;return c}f.fk=function(){var a=this.ja,b;a.Rb&&(b=a.kc);return b};f.rl=function(a,b){var c=this.ja;c.qg=c.kc;c.kc=b&31};f.ek=function(){return Rj(this.ja)};f.ql=function(a,b){Sj(this,this.ja,b)};f.gk=function(){return this.ja.yc};f.sl=function(a,b){this.ja.yc=b;Ej(this,!1)};f.hk=function(){return Tj(this,this.ja)}; -f.Wi=function(a,b){this.B.sg=this.B.sg&-4|b&3};f.Oi=function(){var a=this.B.nd?this.B.xc[this.B.Kd&31]:this.B.Kd;this.B.nd=!this.B.nd;return a};f.Vi=function(a,b){var c=this.B,d=c.Kd&32;if(c.nd){c.nd=!1;var e=c.Kd&31;if(16<=e||!d)c.xc[e]=b,this.Ea=!1,Pj(this,void 0)}else c.Kd=b,c.nd=!0,b&32&&!d&&Cj(this,!0)&&nc(this,!0),c.Ve=(c.eb[12]<<8)+c.eb[13]|0,c.je=0}; -f.sk=function(){var a=0;if(5==this.hb)a=3-((this.B.Xe&12)>>2),a=(this.pb&1<>this.B.pc&63;this.B.pc+=6;12d&&(b.Yg=d,d=-d|0);d%b.Ug>b.Fk&&(c|=1);d%b.Xg>b.Hk&&(c|=9);b.ai=d/b.Xg|0;return c}f.gk=function(){var a=this.ja,b;a.Rb&&(b=a.kc);return b};f.sl=function(a,b){var c=this.ja;c.qg=c.kc;c.kc=b&31};f.fk=function(){return Rj(this.ja)};f.rl=function(a,b){Sj(this,this.ja,b)};f.hk=function(){return this.ja.yc};f.tl=function(a,b){this.ja.yc=b;Ej(this,!1)};f.ik=function(){return Tj(this,this.ja)}; +f.Vi=function(a,b){this.B.sg=this.B.sg&-4|b&3};f.Ij=function(){return this.B.Jd};f.ij=function(){return this.B.xc[this.B.Jd&31]};f.Ui=function(a,b){var c=this.B,d=c.Jd&32;if(c.Ee){c.Ee=!1;var e=c.Jd&31;if(16<=e||!d)c.xc[e]=b,this.Ea=!1,Pj(this,void 0)}else c.Jd=b,c.Ee=!0,b&32&&!d&&Cj(this,!0)&&nc(this,!0),c.Ve=(c.eb[12]<<8)+c.eb[13]|0,c.ie=0}; +f.tk=function(){var a=0;if(5==this.hb)a=3-((this.B.Xe&12)>>2),a=(this.pb&1<>this.B.pc&63;this.B.pc+=6;12Missing <canvas> support. Please try a newer web browser.";break}e.setAttribute("class","pcjs-canvas");e.setAttribute("width",d.screenWidth);e.setAttribute("height",d.screenHeight);e.style.backgroundColor=d.screenColor;e.style.height="auto";0<=(window?window.navigator.userAgent:"").indexOf("MSIE")&&(c.onresize= function(a,b,c,d){return function(){b.style.height=(a.clientWidth*d/c|0)+"px"}}(c,e,d.screenWidth,d.screenHeight),c.onresize());c.appendChild(e);var k=window.document.createElement("textarea");Aa("iOS")&&(k.setAttribute("autocapitalize","off"),k.setAttribute("autocorrect","off"));c.appendChild(k);var l=e.getContext("2d"),d=new Y(d,e,l,k,c);Wa(d,c)}}); -function Uj(a){this.ha=a.adapter;switch(this.ha){case 1:this.ga=1016;this.T=4;break;case 2:this.ga=760;this.T=3;break;default:ta("Unrecognized serial adapter #"+this.ha);return}this.I=null;Ja.call(this,"SerialPort",a,Uj);var b=a.binding,c;a=Vj;b&&(void 0===c&&(c="Panel"),(c=Ua(c,this.id))&&(b=c.ra[b])&&this.Hb(null,a,b))}Ra(Uj);var Vj="buffer";f=Uj.prototype;f.ti=function(a,b){return a==this.ve?(this.P=b,this):null}; +function Uj(a){this.ha=a.adapter;switch(this.ha){case 1:this.ga=1016;this.T=4;break;case 2:this.ga=760;this.T=3;break;default:ta("Unrecognized serial adapter #"+this.ha);return}this.I=null;Ja.call(this,"SerialPort",a,Uj);var b=a.binding,c;a=Vj;b&&(void 0===c&&(c="Panel"),(c=Ua(c,this.id))&&(b=c.ra[b])&&this.Hb(null,a,b))}Ra(Uj);var Vj="buffer";f=Uj.prototype;f.ti=function(a,b){return a==this.ue?(this.P=b,this):null}; f.Hb=function(a,b,c){var d=this;switch(b){case Vj:return this.ra[b]=this.I=c,c.onkeydown=function(a){a=a||window.event;var b=a.keyCode;if(8===b||a.ctrlKey&&65<=b&&90>=b)a.preventDefault&&a.preventDefault(),64>8:this.U};f.ak=function(){return this.F};f.bk=function(){return this.K};f.dk=function(){return this.D};f.ck=function(){return this.B};f.ik=function(){return this.Z}; -f.Cl=function(a,b){if(this.K&128)this.L=this.L&-256|b;else{this.fa=b;this.B&=-97;var c;this.I?(13!=b&&(8==b?this.I.value=this.I.value.slice(0,-1):(this.I.value+=String.fromCharCode(b),this.I.scrollTop=this.I.scrollHeight)),c=!0):c=!1;c&&(this.B|=96)}};f.nl=function(a,b){this.K&128?this.L=this.L&255|b<<8:this.U=b};f.ol=function(a,b){this.K=b}; -f.pl=function(a,b){var c=this.D;this.D=b;if(this.P&&(c^b)&3){var c=this.P,d=this.D,e=3==(d&3);if(e){if(!c.Rb){var k=!1;c.D&2||(c.reset(),c.Ma("serial mouse reset"),k=!0);c.D&1||(c.Ma("serial mouse ID requested"),k=!0);k&&(Wj(c.I,[77,77]),c.Ma("serial mouse ID sent"));bk(c);c.Rb=e}}else c.Rb&&(c.Ma("serial mouse inactive"),ck(c),c.Rb=e);c.D=d}}; -var Xj={0:Uj.prototype.pk,1:Uj.prototype.$j,2:Uj.prototype.ak,3:Uj.prototype.bk,4:Uj.prototype.dk,5:Uj.prototype.ck,6:Uj.prototype.ik},Yj={0:Uj.prototype.Cl,1:Uj.prototype.nl,3:Uj.prototype.ol,4:Uj.prototype.pl};Fa(function(){for(var a=Xa(window.document,"pcjs","serial"),b=0;b>8:this.U};f.bk=function(){return this.F};f.ck=function(){return this.K};f.ek=function(){return this.D};f.dk=function(){return this.B};f.jk=function(){return this.Z}; +f.Dl=function(a,b){if(this.K&128)this.L=this.L&-256|b;else{this.fa=b;this.B&=-97;var c;this.I?(13!=b&&(8==b?this.I.value=this.I.value.slice(0,-1):(this.I.value+=String.fromCharCode(b),this.I.scrollTop=this.I.scrollHeight)),c=!0):c=!1;c&&(this.B|=96)}};f.ol=function(a,b){this.K&128?this.L=this.L&255|b<<8:this.U=b};f.pl=function(a,b){this.K=b}; +f.ql=function(a,b){var c=this.D;this.D=b;if(this.P&&(c^b)&3){var c=this.P,d=this.D,e=3==(d&3);if(e){if(!c.Rb){var k=!1;c.D&2||(c.reset(),c.Ma("serial mouse reset"),k=!0);c.D&1||(c.Ma("serial mouse ID requested"),k=!0);k&&(Wj(c.I,[77,77]),c.Ma("serial mouse ID sent"));bk(c);c.Rb=e}}else c.Rb&&(c.Ma("serial mouse inactive"),ck(c),c.Rb=e);c.D=d}}; +var Xj={0:Uj.prototype.qk,1:Uj.prototype.ak,2:Uj.prototype.bk,3:Uj.prototype.ck,4:Uj.prototype.ek,5:Uj.prototype.dk,6:Uj.prototype.jk},Yj={0:Uj.prototype.Dl,1:Uj.prototype.ol,3:Uj.prototype.pl,4:Uj.prototype.ql};Fa(function(){for(var a=Xa(window.document,"pcjs","serial"),b=0;ba.K||0>a.L)a.K=b.clientX,a.L=b.clientY;a.Y?(c=b.movementX||b.mozMovementX||b.webkitMovementX||0,d=b.movementY||b.mozMovementY||b.webkitMovementY||0):(c=b.clientX-a.K,d=b.clientY-a.L);a.K=b.clientX;a.L=b.clientY;a.Pg(c,d,a.K,a.L)}} +function gk(a,b,c){if(void 0!==c){var d;!(d=!1!==a.Y)&&(d=a.F.length)&&(d=a.F[0],d=d.vd?d.Fd(!0):!1);d||(a.Y=null);a.pf(b.button,c)}else{if(0>a.K||0>a.L)a.K=b.clientX,a.L=b.clientY;a.Y?(c=b.movementX||b.mozMovementX||b.webkitMovementX||0,d=b.movementY||b.mozMovementY||b.webkitMovementY||0):(c=b.clientX-a.K,d=b.clientY-a.L);a.K=b.clientX;a.L=b.clientY;a.Pg(c,d,a.K,a.L)}} f.pf=function(a,b){if(this.Rb&&this.A&&this.A.ia.Kb)switch(a){case Aj:this.T!=b&&(this.T=b,hk(this));break;case 2:this.U!=b&&(this.U=b,hk(this))}};f.Pg=function(a,b,c,d){this.Rb&&this.A&&this.A.ia.Kb&&(a||b)&&(this.O=a,this.P=b,hk(this,c,d))};function hk(a,b,c){var d=64|(a.T?32:0)|(a.U?16:0)|(a.P&192)>>4|(a.O&192)>>6,e=a.O&63,k=a.P&63;a.Sa(4194304)&&a.Ma(""+(void 0!==c?"mouse ("+b+","+c+"): ":"")+"serial packet ["+ea(d)+","+ea(e)+","+ea(k)+"]",0,!0);Wj(a.I,[d,e,k]);a.O=a.P=0} -Fa(function(){for(var a=Xa(window.document,"pcjs","mouse"),b=0;b>2;var e=d=0,a=new DataView(a,0,c);l.A=Array(l.sb);for(c=0;cb.indexOf("/api/v1/dump")&&(a=ga(b),"json"==a?k=encodeURI(b):"demandrw"==this.mode||"demandro"==this.mode?(k=nk(this,b),this.sf=!0):(c="path",d="&mbhd=10",!b.indexOf("http:")||!b.indexOf("ftp:")||0<="dsk ima img 360 720 12 144".split(" ").indexOf(a)?(c="disk",d="&mbhd=0"):-1!==b.indexOf("/",b.length-1)&&(c= -"dir"),k=sa()+"/api/v1/dump?"+c+"="+encodeURIComponent(b)+(this.Xd?"":d)+"&format=json")),ra(k,!0,null,this,this.pj,b)}; -f.pj=function(a,b,c,d){var e=null;this.$d=!1;var k=0>c&&this.xa&&!this.xa.ia.Yb;if(this.sf)c?this.controller.Ja('Unable to connect to disk "'+d+'" (error '+c+": "+b+")",k):(this.F=!0,e=this);else if(c)this.controller.Ja('Unable to load disk "'+this.B+'" (error '+c+")",k);else try{if(0l&&0>2;var e=d=0,a=new DataView(a,0,c);l.A=Array(l.sb);for(c=0;cb.indexOf("/api/v1/dump")&&(a=ga(b),"json"==a?k=encodeURI(b):"demandrw"==this.mode||"demandro"==this.mode?(k=nk(this,b),this.sf=!0):(c="path",d="&mbhd=10",!b.indexOf("http:")||!b.indexOf("ftp:")||0<="dsk ima img 360 720 12 144".split(" ").indexOf(a)?(c="disk",d="&mbhd=0"):-1!==b.indexOf("/",b.length-1)&&(c= +"dir"),k=sa()+"/api/v1/dump?"+c+"="+encodeURIComponent(b)+(this.Wd?"":d)+"&format=json")),ra(k,!0,null,this,this.qj,b)}; +f.qj=function(a,b,c,d){var e=null;this.Zd=!1;var k=0>c&&this.xa&&!this.xa.ia.Yb;if(this.sf)c?this.controller.Ja('Unable to connect to disk "'+d+'" (error '+c+": "+b+")",k):(this.F=!0,e=this);else if(c)this.controller.Ja('Unable to load disk "'+this.B+'" (error '+c+")",k);else try{if(0l&&0b.indexOf("0x")&&'["'!=b.substr(0,2)?JSON.parse(b.replace(/([a-z]+):/gm,'"$1":').replace(/\/\/[^\n]*/gm,"")):eval("("+b+")");if(p.length)if(1==p.length)ta(p[0]);else{this.sb=p.length;this.tb=p[0].length;this.yb=p[0][0].length;var q=p[0][0][0];this.nb=q&&q.length||512;for(b=a=0;b>2,C=q.pattern;void 0===C&&(C=q.pattern=0);var G=q.data;if(void 0===G){var D=q.bytes;if(void 0!== -D&&D.length){for(var k=w<<2,R=D.length;Rb&&(b=0);2E3>2,e=Array(d),k=0;k>2,e=a.data;a=a.pattern;for(var k=0;k>8&255;c[d++]=l>>16&255;c[d++]=l>>24&255}return c}function tk(a,b){var c=-1;if(a&&b>2,c=(d>((b&3)<<3)&255;return c} -f.write=function(a,b,c){if(this.$d)return!1;if(b>2;b=(b&3)<<3;for(var l=d.length;l<=k;l++)d[l]=e;a.qc?k=a.Jc+a.qc&&(a.qc+=k-(a.Jc+a.qc)+1):(a.Jc=k,a.qc=1);d[k]=d[k]&~(255<>2;b=(b&3)<<3;for(var l=d.length;l<=k;l++)d[l]=e;a.qc?k=a.Jc+a.qc&&(a.qc+=k-(a.Jc+a.qc)+1):(a.Jc=k,a.qc=1);d[k]=d[k]&~(255<=this.A.length||q>=this.A[p].length||w>=this.A[p][q].length){c="sector (CHS="+p+":"+q+":"+w+") out of range ("+ -b+" changes applied)";b=-1;break}if(this.$d){c="unable to modify write-protected disk";b=-1;break}e=l[k++];k=l[k++];l=e+k.length;if(p=this.A[p][q][w]){for(q=p.data.length;qb&&-2!=b&&this.controller.Ja("Unable to restore disk '"+this.B+": "+c);return b}; +b+" changes applied)";b=-1;break}if(this.Zd){c="unable to modify write-protected disk";b=-1;break}e=l[k++];k=l[k++];l=e+k.length;if(p=this.A[p][q][w]){for(q=p.data.length;qb&&-2!=b&&this.controller.Ja("Unable to restore disk '"+this.B+": "+c);return b}; f.toJSON=function(){var a=JSON.stringify(this.A,function(a,c){return"file"==a?void 0:c}),a=a.replace(/,"length":512/gm,"").replace(/,"pattern":0/gm,""),a=a.replace(/"(sector|length|data|pattern)":/gm,"$1:"),a=a.replace(/,"[^"]*":([0-9]+|true|false)/gm,""),a=a.replace(/(sector|length|data|pattern):/gm,'"$1":');return a=a.replace(/([\]}]),/gm,"$1,\n")}; -function uk(a){Ja.call(this,"FDC",a,uk);this.dmaRead=this.dj;this.dmaWrite=this.ej;this.dmaFormat=this.mj;this.O=null;if(a.autoMount&&(this.O=a.autoMount,"string"==typeof this.O))try{this.O=eval("("+a.autoMount+")")}catch(b){ta("FDC auto-mount error: "+b.message+" ("+a.autoMount+")"),this.O=null}this.D=[];this.V=!Aa("Mobi")&&window&&"FileReader"in window}Ra(uk);aa={}; -var vk={3:{ad:3,md:0,name:aa.mm},4:{ad:2,md:1,name:aa.km},5:{ad:9,md:7,name:aa.um},6:{ad:9,md:7,name:aa.fm},7:{ad:2,md:0,name:aa.hm},8:{ad:1,md:2,name:aa.lm},10:{ad:2,md:7,name:aa.gm},13:{ad:6,md:7,name:aa.Tl},15:{ad:3,md:0,name:aa.jm}};f=uk.prototype; +function uk(a){Ja.call(this,"FDC",a,uk);this.dmaRead=this.cj;this.dmaWrite=this.dj;this.dmaFormat=this.nj;this.O=null;if(a.autoMount&&(this.O=a.autoMount,"string"==typeof this.O))try{this.O=eval("("+a.autoMount+")")}catch(b){ta("FDC auto-mount error: "+b.message+" ("+a.autoMount+")"),this.O=null}this.D=[];this.V=!Aa("Mobi")&&window&&"FileReader"in window}Ra(uk);aa={}; +var vk={3:{ad:3,md:0,name:aa.nm},4:{ad:2,md:1,name:aa.lm},5:{ad:9,md:7,name:aa.vm},6:{ad:9,md:7,name:aa.gm},7:{ad:2,md:0,name:aa.im},8:{ad:1,md:2,name:aa.mm},10:{ad:2,md:7,name:aa.hm},13:{ad:6,md:7,name:aa.Ul},15:{ad:3,md:0,name:aa.km}};f=uk.prototype; f.Hb=function(a,b,c){var d=this;switch(b){case "listDisks":return this.ra[b]=c,c.onchange=function(){var a=d.ra.descDisk,b=c.options[c.selectedIndex];if(a&&b){var l={};if(b=b.getAttribute("data-value"))try{l=eval("({"+b+"})")}catch(p){ta("FDC option error: "+p.message)}b=l.desc;void 0===b&&(b="");l=l.href;void 0!==l&&(b=''+b+"");a.innerHTML=b}},!0;case "descDisk":case "listDrives":return this.ra[b]=c,c.onchange=function(){var a=ca(c.value,10);null!=a&&wk(d,a)}, !0;case "loadDrive":return this.ra[b]=c,c.onclick=function(){var a=d.ra.listDisks;a&&xk(d,a.options[a.selectedIndex].text,a.value)},!0;case "mountDrive":return this.V?(this.ra[b]=c,c.addEventListener("change",function(){var a=c.children[0];a.children[1].disabled=!a.children[0].files.length}),c.onsubmit=function(a){if(a=a.currentTarget[1].files[0]){var b=a.name;xk(d,fa(b,!0),b,a)}return!1}):c.parentNode.removeChild(c),!0}return!1}; f.uc=function(a,b,c,d){this.ma=b;this.A=c;this.Qa=d;this.xa=a;this.Y=gb(a,"ChipSet");yk(this);Jb(b,this,zk);Mb(b,this,Ak);this.V&&Bk(this,"Local Disk","?");Bk(this,"Remote Disk","??");Ck(this)||Za(this)}; f.bc=function(a,b){if(!b){if(!a||!this.restore){if(this.reset(),this.xa.Lg){this.D=[];for(var c=0;cl.za.restore(D)&&(p=!1);p&&l.za&&void 0!==l.Ta&&(l.Va=l.za.seek(l.wb,l.Ya,l.jb));p||(e=!1)}a.L=b[c++]||0;a.ga=b[c]||0;return e} +9;break;case 1200:l.sb=80;l.yb=15;break;case 1440:l.sb=80,l.yb=18}}var q=a,w=d,C=k[d],G=0;p=!0;l.Ra=w;l.Cc=l.Ud=!1;void 0===C&&(C=[192,!0,0,2,0]);"boolean"==typeof C[1]&&(C[1]=["Floppy Drive",l.sb||40,l.tb||C[3],l.yb||9,l.nb||512,C[1],l.zf,l.Oe,l.Pe]);l.ib=C[G++];var D=C[G++];l.name=D[0];l.sb=D[1];l.tb=D[2];l.yb=D[3];l.nb=D[4];l.Wd=D[5];(l.zf=D[6])?(l.Oe=D[7],l.Pe=D[8]):(l.zf=l.sb,l.Oe=l.tb,l.Pe=l.yb);l.Ya=C[G++];l.kd=C[G++];l.wb=C[G++];l.kd=100<=l.kd?l.kd-100:l.kd-l.wb;l.jb=C[G++];l.ld=C[G++];l.rb= +C[G++];l.Ta=C[G++];l.Va=null;l.za||(l.Kd="");D=C[G++];102==D&&(D=!1);if("boolean"==typeof D){var R=D,D=C[G++],C=C[G];R?(G=D,D=q.B[w],Dk(q,w,!0,!0),D.Ud=!0,w=new ik(q,D,"preload"),q.Ei(D,w,G,C,!0)):Fk(q,w,D,C,!0)?l.za&&C&&Gk(q,D,C,l.za):Za(q,!1)}else void 0!==D&&l.za&&0>l.za.restore(D)&&(p=!1);p&&l.za&&void 0!==l.Ta&&(l.Va=l.za.seek(l.wb,l.Ya,l.jb));p||(e=!1)}a.L=b[c++]||0;a.ga=b[c]||0;return e} function Ck(a,b){b||(a.T=0);if(a.O)for(var c in a.O){var d=a.O[c];if(d.name&&d.path){var e=c.charCodeAt(0)-65;if(0<=e&&ea.sb||k[1]>a.tb)&&(this.Ja('Diskette "'+c+'" too large for drive '+String.fromCharCode(65+a.Ra)),b=null);b?(a.za=b,a.Zi=c,a.Ld=d,Gk(this,c,d,b),k=b.info(),this.L|=128,this.Ja('Mounted diskette "'+c+'" in drive '+String.fromCharCode(65+a.Ra),a.Ed||e),a.zf=k[0],a.Oe=k[1],a.Pe=k[2]):a.Vd=!1;a.Ed&&(a.Ed=!1,--this.T||Za(this));wk(this,a.Ra)}; -function Bk(a,b,c){if(a=a.ra.listDisks){for(var d=0;d=this.F&&(this.wa&=-81,this.I=this.F=0);return a}; -f.hl=function(a,b){this.F=vk[c].ad){var d=!1;this.I=0;var c=Hk(this),e,k,l,p,q,w=c&31;switch(w){case 3:Hk(this);Hk(this);Ik(this);break;case 4:k=Hk(this);this.Ra=k&3;e=this.B[this.Ra];Ik(this);Jk(this,(e.ib&-16777216)>>>24);break;case 5:case 6:k=Hk(this);d=k>>2&1;this.Ra=k&3;e=this.B[this.Ra];e.Ya=d;k=e.wb=Hk(this);l=Hk(this);p=e.jb=Hk(this);q=Hk(this);e.rb=128<>2&1;this.Ra=k&3;e=this.B[this.Ra];k=e.wb;l=e.Ya=d;p= -e.jb=1;q=0;e.ib=0;e.za&&(e.Va=e.za.seek(e.wb,e.Ya,e.jb))?q=e.Va.length>>8:e.ib=72;Kk(this,e,c,d,k,l,p,q);d=!0;break;case 13:k=Hk(this);d=k>>2&1;this.Ra=k&3;e=this.B[this.Ra];k=e.wb;l=e.Ya=d;p=1;q=Hk(this);e.rb=128<>2&1,k=Hk(this),e.wb+= -k-e.kd,0>e.wb&&(e.wb=0),e.wb>=e.sb&&(e.wb=e.sb-1),e.kd=k,e.ib=32,e.wb||(e.ib|=268435456),Ik(this),d=!0}0>>8);Jk(a,(b.ib&16711680)>>>16);var q=0;if(e!=b.wb||k!=b.Ya)q=l=1;c&128&&(k^=q,d||(q=0));Jk(a,e+q);Jk(a,k);Jk(a,l);Jk(a,p)} -function Hk(a){var b=a.K[a.I];a.I++;return b}function Ik(a){a.I=a.F=0}function Jk(a,b){a.K[a.F++]=b}f.dj=function(a,b,c){if(void 0===b||0>b){b=-1;var d=null,e=0;if(!a.ib&&a.za){do{if(a.Va&&(e=a.Ta,0<=(b=tk(a.Va,a.Ta++)))){d=a.Va;break}a.Va=a.za.seek(a.wb,a.Ya,a.jb);if(!a.Va){a.ib=1088;break}a.Ta=0;Lk(a)}while(1)}c(b,!1,d,e)}else c(-1,!1)};f.ej=function(a,b){return void 0!==b&&0<=b?Mk(a,b):-1}; -f.mj=function(a,b){var c;if(void 0!==b&&0<=b)a:if(c=b,a.ib)c=-1;else{a.zc[a.Sd++]=c;if(a.Sd==a.zc.length){a.wb=a.zc[0];a.Ya=a.zc[1];a.jb=a.zc[2];a.rb=128<Mk(a,a.ui)){c=-1;break a}a.mf++}a.mf>=a.ld&&(c=-1)}else c=-1;return c};function Mk(a,b){if(a.ib||!a.za)return-1;do{if(a.Va&&a.za.write(a.Va,a.Ta++,b))break;a.Va=a.za.seek(a.wb,a.Ya,a.jb);if(!a.Va){a.ib=8256;b=-1;break}a.Ta=0;Lk(a)}while(1);return b} -function Lk(a){a.jb++;a.jb>=a.Pe+1&&(a.jb=1,a.Ya++,a.Ya>=a.Oe&&(a.Ya=0,a.wb++))}var zk={1012:uk.prototype.Xj,1013:uk.prototype.Vj,1015:uk.prototype.Wj},Ak={1010:uk.prototype.il,1013:uk.prototype.hl,1015:uk.prototype.gl};Fa(function(){for(var a=Xa(window.document,"pcjs","fdc"),b=0;ba.sb||k[1]>a.tb)&&(this.Ja('Diskette "'+c+'" too large for drive '+String.fromCharCode(65+a.Ra)),b=null);b?(a.za=b,a.Yi=c,a.Kd=d,Gk(this,c,d,b),k=b.info(),this.L|=128,this.Ja('Mounted diskette "'+c+'" in drive '+String.fromCharCode(65+a.Ra),a.Dd||e),a.zf=k[0],a.Oe=k[1],a.Pe=k[2]):a.Ud=!1;a.Dd&&(a.Dd=!1,--this.T||Za(this));wk(this,a.Ra)}; +function Bk(a,b,c){if(a=a.ra.listDisks){for(var d=0;d=this.F&&(this.wa&=-81,this.I=this.F=0);return a}; +f.il=function(a,b){this.F=vk[c].ad){var d=!1;this.I=0;var c=Hk(this),e,k,l,p,q,w=c&31;switch(w){case 3:Hk(this);Hk(this);Ik(this);break;case 4:k=Hk(this);this.Ra=k&3;e=this.B[this.Ra];Ik(this);Jk(this,(e.ib&-16777216)>>>24);break;case 5:case 6:k=Hk(this);d=k>>2&1;this.Ra=k&3;e=this.B[this.Ra];e.Ya=d;k=e.wb=Hk(this);l=Hk(this);p=e.jb=Hk(this);q=Hk(this);e.rb=128<>2&1;this.Ra=k&3;e=this.B[this.Ra];k=e.wb;l=e.Ya=d;p= +e.jb=1;q=0;e.ib=0;e.za&&(e.Va=e.za.seek(e.wb,e.Ya,e.jb))?q=e.Va.length>>8:e.ib=72;Kk(this,e,c,d,k,l,p,q);d=!0;break;case 13:k=Hk(this);d=k>>2&1;this.Ra=k&3;e=this.B[this.Ra];k=e.wb;l=e.Ya=d;p=1;q=Hk(this);e.rb=128<>2&1,k=Hk(this),e.wb+= +k-e.kd,0>e.wb&&(e.wb=0),e.wb>=e.sb&&(e.wb=e.sb-1),e.kd=k,e.ib=32,e.wb||(e.ib|=268435456),Ik(this),d=!0}0>>8);Jk(a,(b.ib&16711680)>>>16);var q=0;if(e!=b.wb||k!=b.Ya)q=l=1;c&128&&(k^=q,d||(q=0));Jk(a,e+q);Jk(a,k);Jk(a,l);Jk(a,p)} +function Hk(a){var b=a.K[a.I];a.I++;return b}function Ik(a){a.I=a.F=0}function Jk(a,b){a.K[a.F++]=b}f.cj=function(a,b,c){if(void 0===b||0>b){b=-1;var d=null,e=0;if(!a.ib&&a.za){do{if(a.Va&&(e=a.Ta,0<=(b=tk(a.Va,a.Ta++)))){d=a.Va;break}a.Va=a.za.seek(a.wb,a.Ya,a.jb);if(!a.Va){a.ib=1088;break}a.Ta=0;Lk(a)}while(1)}c(b,!1,d,e)}else c(-1,!1)};f.dj=function(a,b){return void 0!==b&&0<=b?Mk(a,b):-1}; +f.nj=function(a,b){var c;if(void 0!==b&&0<=b)a:if(c=b,a.ib)c=-1;else{a.zc[a.Rd++]=c;if(a.Rd==a.zc.length){a.wb=a.zc[0];a.Ya=a.zc[1];a.jb=a.zc[2];a.rb=128<Mk(a,a.ui)){c=-1;break a}a.mf++}a.mf>=a.ld&&(c=-1)}else c=-1;return c};function Mk(a,b){if(a.ib||!a.za)return-1;do{if(a.Va&&a.za.write(a.Va,a.Ta++,b))break;a.Va=a.za.seek(a.wb,a.Ya,a.jb);if(!a.Va){a.ib=8256;b=-1;break}a.Ta=0;Lk(a)}while(1);return b} +function Lk(a){a.jb++;a.jb>=a.Pe+1&&(a.jb=1,a.Ya++,a.Ya>=a.Oe&&(a.Ya=0,a.wb++))}var zk={1012:uk.prototype.Yj,1013:uk.prototype.Wj,1015:uk.prototype.Xj},Ak={1010:uk.prototype.jl,1013:uk.prototype.il,1015:uk.prototype.hl};Fa(function(){for(var a=Xa(window.document,"pcjs","fdc"),b=0;bq.za.restore(l)&&(R=!1),R&&void 0!==q.Ta&&(q.Va=q.za.seek(q.yd,q.Ya,q.jb+q.lf)));R||(e=!1);null!=a.fa&&1>=d&&(a.fa|=(k.type&3)<<(1-d<<1))}0<=a.Ra&&(a.D=a.B[a.Ra]);return e} -function Uk(a,b,c){if(b){var d=0,e=0;null==c&&((d=b.Qd[2])?e=b.Qd[0]<<8|b.Qd[1]:c=b.type);null==c||d||(d=Nk[a.Z][c][1],e=Nk[a.Z][c][0]);d&&((c=Nk[a.Z][b.type])&&e!=c[0]&&d!=c[1]&&a.Ja("Warning: drive parameters ("+e+","+d+") do not match drive type "+b.type+" ("+c[0]+","+c[1]+")"),b.sb=e,b.tb=d,null==b.za&&(b.za=new ik(a,b,b.mode)))}} -function Sk(a,b){b||(a.T=0);for(var c=0;c=this.F&&(this.I=this.F=0,this.wa&=-15);return a};f.El=function(a,b){this.F=c&&(this.wa|=2,this.wa&=-2,Vk(this))}; -f.yk=function(){var a=this.wa;this.I=a.D.nb?(a.wa=128,Xk(a.D,function(b){0<=b?(Yk(a),a.wa=88):(a.wa=1,a.O=16)},!1)):a.wa=80));return b} -f.Fj=function(){return Wk(this)|Wk(this)<<8};function Zk(a,b){a.D&&a.D.rb>=a.D.nb&&(0>$k(a.D,b)?(a.wa=1,a.O=16):(1==a.D.Ta||a.D.Ta==a.D.nb)&&1=a.D.nb&&(a.wa|=8)))}f.Pk=function(a,b){Zk(this,b&255);Zk(this,b>>8&255)};f.Hj=function(){return this.O};f.Uk=function(a,b){this.va=b};f.Ij=function(){return this.P};f.Sk=function(a,b){this.P=b};f.Jj=function(){return this.ka};f.Tk=function(a,b){this.ka=b};f.Ej=function(){return this.ja}; -f.Ok=function(a,b){this.ja=b};f.Dj=function(){return this.ha};f.Nk=function(a,b){this.ha=b};f.Gj=function(){return this.ga};f.Qk=function(a,b){this.ga=b;this.wa=this.B[this.ga&16?1:0]?this.wa|80:this.wa&-65};f.Kj=function(){return this.wa};f.Mk=function(a,b){this.pa=b;this.Y&&ci(this.Y,14);al(this)};f.Rk=function(a,b){this.U&4&&!(b&4)&&(this.O=1);this.U=b}; -function al(a){var b=!1,c=a.pa,d=a.ga&16?1:0,e=a.ga&15,k=a.ja|(a.ha&3)<<8,l=a.ka,p=a.P||256;a.Ra=-1;a.D=null;a.O=0;a.wa=80;var q=a.B[d];q?(q.yd=k,q.Ya=e,q.jb=l,q.rb=p*q.nb,c=144<=c?c:c&240,q.Va=null,q.Ta=0,q.errorCode=0,a.Ra=d,a.D=q):c=-1;switch(c&240){case 16:b=!0;break;case 32:a.wa=128;Xk(q,function(b){0<=b&&a.Y?(Yk(a),a.wa=88):(a.wa=1,a.O=16)},!1);break;case 48:a.wa=8;break;case 64:b=!0;break;case 112:b=!0;break;case 144:a.O=1;b=!0;break;case 145:q.tb=e+1,q.yb=p,b=!0}b&&Yk(a)} +[]);for(d=0;dq.za.restore(l)&&(R=!1),R&&void 0!==q.Ta&&(q.Va=q.za.seek(q.xd,q.Ya,q.jb+q.lf)));R||(e=!1);null!=a.fa&&1>=d&&(a.fa|=(k.type&3)<<(1-d<<1))}0<=a.Ra&&(a.D=a.B[a.Ra]);return e} +function Uk(a,b,c){if(b){var d=0,e=0;null==c&&((d=b.Pd[2])?e=b.Pd[0]<<8|b.Pd[1]:c=b.type);null==c||d||(d=Nk[a.Z][c][1],e=Nk[a.Z][c][0]);d&&((c=Nk[a.Z][b.type])&&e!=c[0]&&d!=c[1]&&a.Ja("Warning: drive parameters ("+e+","+d+") do not match drive type "+b.type+" ("+c[0]+","+c[1]+")"),b.sb=e,b.tb=d,null==b.za&&(b.za=new ik(a,b,b.mode)))}} +function Sk(a,b){b||(a.T=0);for(var c=0;c=this.F&&(this.I=this.F=0,this.wa&=-15);return a};f.Fl=function(a,b){this.F=c&&(this.wa|=2,this.wa&=-2,Vk(this))}; +f.zk=function(){var a=this.wa;this.I=a.D.nb?(a.wa=128,Xk(a.D,function(b){0<=b?(Yk(a),a.wa=88):(a.wa=1,a.O=16)},!1)):a.wa=80));return b} +f.gj=function(){return Wk(this)|Wk(this)<<8};function Zk(a,b){a.D&&a.D.rb>=a.D.nb&&(0>$k(a.D,b)?(a.wa=1,a.O=16):(1==a.D.Ta||a.D.Ta==a.D.nb)&&1=a.D.nb&&(a.wa|=8)))}f.Qk=function(a,b){Zk(this,b&255);Zk(this,b>>8&255)};f.Hj=function(){return this.O};f.Vk=function(a,b){this.va=b};f.Jj=function(){return this.P};f.Tk=function(a,b){this.P=b};f.Kj=function(){return this.ka};f.Uk=function(a,b){this.ka=b};f.Fj=function(){return this.ja}; +f.Pk=function(a,b){this.ja=b};f.Ej=function(){return this.ha};f.Ok=function(a,b){this.ha=b};f.Gj=function(){return this.ga};f.Rk=function(a,b){this.ga=b;this.wa=this.B[this.ga&16?1:0]?this.wa|80:this.wa&-65};f.Lj=function(){return this.wa};f.Nk=function(a,b){this.pa=b;this.Y&&ci(this.Y,14);al(this)};f.Sk=function(a,b){this.U&4&&!(b&4)&&(this.O=1);this.U=b}; +function al(a){var b=!1,c=a.pa,d=a.ga&16?1:0,e=a.ga&15,k=a.ja|(a.ha&3)<<8,l=a.ka,p=a.P||256;a.Ra=-1;a.D=null;a.O=0;a.wa=80;var q=a.B[d];q?(q.xd=k,q.Ya=e,q.jb=l,q.rb=p*q.nb,c=144<=c?c:c&240,q.Va=null,q.Ta=0,q.errorCode=0,a.Ra=d,a.D=q):c=-1;switch(c&240){case 16:b=!0;break;case 32:a.wa=128;Xk(q,function(b){0<=b&&a.Y?(Yk(a),a.wa=88):(a.wa=1,a.O=16)},!1);break;case 48:a.wa=8;break;case 64:b=!0;break;case 112:b=!0;break;case 144:a.O=1;b=!0;break;case 145:q.tb=e+1,q.yb=p,b=!0}b&&Yk(a)} function Yk(a){!a.Y||a.U&2||bi(a.Y,14,120)} -function Vk(a){a.I=0;var b=bl(a),c=bl(a),d=c&32,e=d>>5,k=c&31,l=bl(a),p=bl(a),q=l<<2&768|p,w=l&63,C=bl(a),G=bl(a),D=a.B[e];D&&(D.yd=q,D.Ya=k,D.jb=w,D.rb=C*D.nb);switch(b){case 3:cl(a,D?D.errorCode:4);dl(a,c);dl(a,l);dl(a,p);dl(a,0|d);b=-1;break;case 12:for(c=0;0<=(b=bl(a));)D&&cb?Xk(a,c):c(-1,!1)};f.gj=function(a,b){return void 0!==b&&0<=b?$k(a,b):-1}; -f.nj=function(a,b){var c;void 0!==b&&0<=b?(c=b,a.Ta$k(a,a.ui)){c=-1;break a}a.mf++}a.mf>=a.ld&&(c=-1)}else c=-1;return c}; +function Vk(a){a.I=0;var b=bl(a),c=bl(a),d=c&32,e=d>>5,k=c&31,l=bl(a),p=bl(a),q=l<<2&768|p,w=l&63,C=bl(a),G=bl(a),D=a.B[e];D&&(D.xd=q,D.Ya=k,D.jb=w,D.rb=C*D.nb);switch(b){case 3:cl(a,D?D.errorCode:4);dl(a,c);dl(a,l);dl(a,p);dl(a,0|d);b=-1;break;case 12:for(c=0;0<=(b=bl(a));)D&&cb?Xk(a,c):c(-1,!1)};f.fj=function(a,b){return void 0!==b&&0<=b?$k(a,b):-1}; +f.oj=function(a,b){var c;void 0!==b&&0<=b?(c=b,a.Ta$k(a,a.ui)){c=-1;break a}a.mf++}a.mf>=a.ld&&(c=-1)}else c=-1;return c}; function el(a,b,c){b.errorCode=4;if(b.za&&(b.Va=null,a.Y)){b.errorCode=0;Wh(a.Y,3,a,"dmaRead",b);Oh(a.Y,3,function(a){a||0!=b.errorCode||(b.errorCode=4);c(b.errorCode?2:0)});return}c(b.errorCode?2:0)}function fl(a,b,c){b.errorCode=4;if(b.za&&(b.Va=null,a.Y)){b.errorCode=0;Wh(a.Y,3,a,"dmaWrite",b);Oh(a.Y,3,function(a){a||(0==b.errorCode&&(b.errorCode=4),20==b.errorCode&&(b.errorCode=0));c(b.errorCode?2:0)});return}c(b.errorCode?2:0)} -function gl(a,b,c){b.errorCode=4;b.Rd&&b.Rd.length==b.rb||(b.Rd=Array(b.rb));b.Ta=0;a.Y?(b.errorCode=0,Wh(a.Y,3,a,"dmaWriteBuffer",b),Oh(a.Y,3,function(a){a||0!=b.errorCode||(b.errorCode=4);c(b.errorCode?2:0)})):c(b.errorCode?2:0)} -function Xk(a,b,c){var d=-1,e=null,k=0;if(a.errorCode)return b&&b(d,!1,e,k),d;var l=!1!==c?1:0;if(a.Va&&(k=a.Ta,d=tk(a.Va,a.Ta),a.Ta+=l,0<=d))return e=a.Va,b&&b(d,!1,e,k),d;if(b){if(a.za)return a.za.seek(a.yd,a.Ya,a.jb+a.lf,!1,function(c,q){(a.Va=c)?(e=c,k=a.Ta=0,hl(a),d=tk(a.Va,a.Ta),a.Ta+=l):a.errorCode=20;b(d,q,e,k)}),d;a.errorCode=20;b(d,!1,e,k)}return d} -function $k(a,b){if(a.errorCode)return-1;do{if(a.Va&&a.za.write(a.Va,a.Ta++,b))break;a.za&&a.za.seek(a.yd,a.Ya,a.jb+a.lf,!0,function(b){a.Va=b});if(!a.Va){a.errorCode=20;b=-1;break}a.Ta=0;hl(a)}while(1);return b}function hl(a){a.jb++;var b=1-a.lf;a.jb>=a.yb+b&&(a.jb=b,a.Ya++,a.Ya>=a.tb&&(a.Ya=0,a.yd++))}f.zk=function(){var a=this.A.H&255;!(this.A.G>>8)&&128>8||!this.Y)||(a=!(this.Y.Ub[0].Oc&64));return a?!0:!1}; -var Pk={800:Z.prototype.xk,801:Z.prototype.yk,802:Z.prototype.wk},Ok={496:Z.prototype.Fj,497:Z.prototype.Hj,498:Z.prototype.Ij,499:Z.prototype.Jj,500:Z.prototype.Ej,501:Z.prototype.Dj,502:Z.prototype.Gj,503:Z.prototype.Kj},Rk={800:Z.prototype.El,801:Z.prototype.Hl,802:Z.prototype.Gl,803:Z.prototype.Fl,807:Z.prototype.bi,811:Z.prototype.bi,815:Z.prototype.bi},Qk={496:Z.prototype.Pk,497:Z.prototype.Uk,498:Z.prototype.Sk,499:Z.prototype.Tk,500:Z.prototype.Ok,501:Z.prototype.Nk,502:Z.prototype.Qk,503:Z.prototype.Mk, -1014:Z.prototype.Rk};Fa(function(){for(var a=Xa(window.document,"pcjs","hdc"),b=0;b=a.yb+b&&(a.jb=b,a.Ya++,a.Ya>=a.tb&&(a.Ya=0,a.xd++))}f.Ak=function(){var a=this.A.H&255;!(this.A.G>>8)&&128>8||!this.Y)||(a=!(this.Y.Ub[0].Oc&64));return a?!0:!1}; +var Pk={800:Z.prototype.yk,801:Z.prototype.zk,802:Z.prototype.xk},Ok={496:Z.prototype.gj,497:Z.prototype.Hj,498:Z.prototype.Jj,499:Z.prototype.Kj,500:Z.prototype.Fj,501:Z.prototype.Ej,502:Z.prototype.Gj,503:Z.prototype.Lj},Rk={800:Z.prototype.Fl,801:Z.prototype.Il,802:Z.prototype.Hl,803:Z.prototype.Gl,807:Z.prototype.bi,811:Z.prototype.bi,815:Z.prototype.bi},Qk={496:Z.prototype.Qk,497:Z.prototype.Vk,498:Z.prototype.Tk,499:Z.prototype.Uk,500:Z.prototype.Pk,501:Z.prototype.Ok,502:Z.prototype.Rk,503:Z.prototype.Nk, +1014:Z.prototype.Sk};Fa(function(){for(var a=Xa(window.document,"pcjs","hdc"),b=0;brl){if(d.load(this.F)){this.D=new Vd(this,tl,"failsafe");this.D.load()&&(wl(this,d),a=2,ml(this.D));E(this.D,"timestamp",la());nl(this.D);var e=this.lc&&!this.I;if(1==a||ua("Click OK to restore the previous PCjs machine state, or CANCEL to reset the machine.")){if(c=ol(d)){var k=pl(d,"code"),l=pl(d,"data");k&&("ok"==k?d.load(l):("error"==k&&"no machine state"!=l?(this.Ja("Error: "+ l),"unable to verify user"==l&&(za("user",""),this.B=null)):this.cc(k+": "+l),ml(d),d.load()?(c=ol(d),e=!0):c=!1))}e&&vl(this,c?d:null)}else 2==a&&d.clear()}else vl(this);delete this.F;delete this.K}e=Sa(this.id);for(k=0;ka[1];a=a[2];this.ia.Yb=!0;this.ri||(this.cc("PCjs v"+tl+"\nCopyright \u00a9 2012-2015 Jeff Parsons \nLicense: GPL version 3 or later "),this.ri=!0);this.A&&(xl(this,this.A,b,c,a),lc(this.A));this.O&&(wl(this,b),b.clear());!c&&this.D&&(this.D.clear(),delete this.D)}; -function wl(a,b){if(ua("There may be a problem with your PCjs machine.\n\nTo help us diagnose it, click OK to send this PCjs machine state to http://www.pcjs.org.")){var c=a.T,d=a.pd(),e=b.toString(),k={app:"PCjs"};k.ver=tl;k.url=c;k.user=d;k.type="bug";k.data=e;ra("http://www.pcjs.org/api/v1/report",!0,k)}} +function wl(a,b){if(ua("There may be a problem with your PCjs machine.\n\nTo help us diagnose it, click OK to send this PCjs machine state to http://www.pcjs.org.")){var c=a.T,d=a.od(),e=b.toString(),k={app:"PCjs"};k.ver=tl;k.url=c;k.user=d;k.type="bug";k.data=e;ra("http://www.pcjs.org/api/v1/report",!0,k)}} function yl(a,b,c){var d,e="none",k=new Vd(a,tl),l=new Vd(a,tl,"validate"),p=la();E(l,"timestamp",p);E(k,"timestamp",p);E(k,"version","1.19.5");E(k,"url",window?window.location.href:null);E(k,"browser",window?window.navigator.userAgent:"");a.A&&a.A.ac&&(c&&oc(a.A),d=a.A.ac(b,c),"object"===typeof d&&E(k,a.A.id,d),c&&(a.A.ia.Yb=!1,!1===d&&(e=null)));for(var p=Sa(a.id),q=0;q