diff --git a/Balloon.capx b/Balloon.capx index 41caee0..de039e1 100644 Binary files a/Balloon.capx and b/Balloon.capx differ diff --git a/appmanifest.json b/appmanifest.json index 645214d..d6e2cbc 100644 --- a/appmanifest.json +++ b/appmanifest.json @@ -1,6 +1,6 @@ { - "name": "New project", - "short_name": "New project", + "name": "BalloonMan", + "short_name": "BalloonMan", "start_url": "index.html", "display": "fullscreen", "orientation": "any", diff --git a/c2runtime.js b/c2runtime.js index 85cc1ec..22c621e 100644 --- a/c2runtime.js +++ b/c2runtime.js @@ -1,382 +1,382 @@ // Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com -'use strict';var aa,ba,ca,x,da,ea,fa,L,ga,ha,ia,ja,ka,ma,N,na,oa,O,pa,sa,ta,ua,U,va,ya,za,Aa,Ba,V,Da,Ea,W,Fa,Ga,Ha,Ia,Ja,Ka,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb={},Ub={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(c){return c.__proto__}:function(c){return c.constructor.prototype}); -(function(){function c(a,d,f,b){this.set(a,d,f,b)}function n(){this.sb=this.rb=this.wb=this.ub=this.Fb=this.Eb=this.eb=this.cb=0}function m(a,d,f,b){ab?d:b):(E=af?d:f):fb?a:b):(E=df?a:f)}function h(){this.items=this.vd=null;this.eh=0;R&&(this.vd=new Set);this.pg=[];this.fe=!0}function k(a){z[T++]=a}function t(){this.da=this.Gj=this.y=this.fk=0}function e(a){this.Ra=[];this.ei=this.gi=this.hi=this.fi=0;this.Nh(a)}function a(a,d){this.jk= -a;this.ik=d;this.cells={}}function b(a,d){this.jk=a;this.ik=d;this.cells={}}function g(a,d,f){var b;return D.length?(b=D.pop(),b.Qk=a,b.x=d,b.y=f,b):new aa(a,d,f)}function d(a,d,f){this.Qk=a;this.x=d;this.y=f;this.ib=new ba}function f(a,d,f){var b;return A.length?(b=A.pop(),b.Qk=a,b.x=d,b.y=f,b):new ca(a,d,f)}function r(a,d,f){this.Qk=a;this.x=d;this.y=f;this.ib=[];this.Tf=!0;this.rd=new ba;this.vg=!1}function l(a,d){return a.fd-d.fd}x=function(a){window.console&&window.console.log&&window.console.log(a)}; -da=function(a){window.console&&window.console.error&&window.console.error(a)};ea=function(a){return"undefined"===typeof a};fa=function(a){return"number"===typeof a};L=function(a){return"string"===typeof a};ga=function(a){return 0d;d<<=1)a=a|a>>d;return a+1};ia=function(a){return 0>a?-a:a};ja=function(a,d){return a>d?a:d};ka=function(a,d){return ar)return!1;dr)return!1;w=l-a+v-f;e=g-d+u-b;a=f-a;d=b-d;l=v-l;g=u-g;u=ia(d*l-g*a);return ia(l*e-g*w)>u?!1:ia(a*e-d*w)<=u};c.prototype.set=function(a,d,f,b){this.left=a;this.top=d;this.right=f;this.bottom=b};c.prototype.Hf=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};c.prototype.width=function(){return this.right- -this.left};c.prototype.height=function(){return this.bottom-this.top};c.prototype.offset=function(a,d){this.left+=a;this.top+=d;this.right+=a;this.bottom+=d;return this};c.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};c.prototype.Jn=function(a){return!(a.rightthis.right||a.top>this.bottom)};c.prototype.Kn=function(a,d,f){return!(a.right+ -dthis.right||a.top+f>this.bottom)};c.prototype.xb=function(a,d){return a>=this.left&&a<=this.right&&d>=this.top&&d<=this.bottom};c.prototype.Ig=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};O=c;n.prototype.ig=function(a){this.cb=a.left;this.eb=a.top;this.Eb=a.right;this.Fb=a.top;this.ub=a.right;this.wb=a.bottom;this.rb=a.left;this.sb=a.bottom};n.prototype.lp=function(a,d){if(0===d)this.ig(a);else{var f= -Math.sin(d),b=Math.cos(d),l=a.left*f,g=a.top*f,v=a.right*f,f=a.bottom*f,u=a.left*b,w=a.top*b,e=a.right*b,b=a.bottom*b;this.cb=u-g;this.eb=w+l;this.Eb=e-g;this.Fb=w+v;this.ub=e-f;this.wb=b+v;this.rb=u-f;this.sb=b+l}};n.prototype.offset=function(a,d){this.cb+=a;this.eb+=d;this.Eb+=a;this.Fb+=d;this.ub+=a;this.wb+=d;this.rb+=a;this.sb+=d;return this};var E=0,H=0;n.prototype.Vm=function(a){m(this.cb,this.Eb,this.ub,this.rb);a.left=E;a.right=H;m(this.eb,this.Fb,this.wb,this.sb);a.top=E;a.bottom=H};n.prototype.xb= -function(a,d){var f=this.cb,b=this.eb,l=this.Eb-f,g=this.Fb-b,v=this.ub-f,u=this.wb-b,w=a-f,e=d-b,r=l*l+g*g,p=l*v+g*u,g=l*w+g*e,c=v*v+u*u,k=v*w+u*e,q=1/(r*c-p*p),l=(c*g-p*k)*q,r=(r*k-p*g)*q;if(0<=l&&0l+r)return!0;l=this.rb-f;g=this.sb-b;r=l*l+g*g;p=l*v+g*u;g=l*w+g*e;q=1/(r*c-p*p);l=(c*g-p*k)*q;r=(r*k-p*g)*q;return 0<=l&&0l+r};n.prototype.vc=function(a,d){if(d)switch(a){case 0:return this.cb;case 1:return this.Eb;case 2:return this.ub;case 3:return this.rb;case 4:return this.cb;default:return this.cb}else switch(a){case 0:return this.eb; -case 1:return this.Fb;case 2:return this.wb;case 3:return this.sb;case 4:return this.eb;default:return this.eb}};n.prototype.Bo=function(){return(this.cb+this.Eb+this.ub+this.rb)/4};n.prototype.Co=function(){return(this.eb+this.Fb+this.wb+this.sb)/4};n.prototype.Xg=function(a,d,f,b){if(this.xb(a,d)||this.xb(f,b))return!0;var l,g,v,u,w;for(w=0;4>w;w++)if(l=this.vc(w,!0),g=this.vc(w,!1),v=this.vc(w+1,!0),u=this.vc(w+1,!1),oa(a,d,f,b,l,g,v,u))return!0;return!1};n.prototype.In=function(a){var d=a.Bo(), -f=a.Co();if(this.xb(d,f))return!0;d=this.Bo();f=this.Co();if(a.xb(d,f))return!0;var b,l,g,v,u,w,e,r;for(e=0;4>e;e++)for(r=0;4>r;r++)if(d=this.vc(e,!0),f=this.vc(e,!1),b=this.vc(e+1,!0),l=this.vc(e+1,!1),g=a.vc(r,!0),v=a.vc(r,!1),u=a.vc(r+1,!0),w=a.vc(r+1,!1),oa(d,f,b,l,g,v,u,w))return!0;return!1};pa=n;sa=function(a,d){for(var f in d)d.hasOwnProperty(f)&&(a[f]=d[f]);return a};ta=function(a,d){var f,b;d=N(d);if(!(0>d||d>=a.length)){f=d;for(b=a.length-1;ff?f:a};V=function(a){return a/(180/ma)};Da=function(a){return 180/ma*a};Ea=function(a){a%=360;0>a&&(a+=360);return a};W=function(a){a%=2*ma;0>a&&(a+=2*ma);return a};Fa=function(a){return Ea(Da(a))};Ga=function(a){return W(V(a))}; -Ha=function(a,d,f,b){return Math.atan2(b-d,f-a)};Ia=function(a,d){if(a===d)return 0;var f=Math.sin(a),b=Math.cos(a),l=Math.sin(d),g=Math.cos(d),f=f*l+b*g;return 1<=f?0:-1>=f?ma:Math.acos(f)};Ja=function(a,d,f){var b=Math.sin(a),l=Math.cos(a),g=Math.sin(d),v=Math.cos(d);return Math.acos(b*g+l*v)>f?0=b*l-f*g};La=function(a,d,f,b){a=f-a;d=b-d;return Math.sqrt(a*a+d*d)};Ma=function(a,d){return!a!== -!d};Na=function(a){for(var d in a)if(a.hasOwnProperty(d))return!0;return!1};Oa=function(a){for(var d in a)a.hasOwnProperty(d)&&delete a[d]};var y=+new Date;Pa=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-y};var p=!1,q=p=!1,B=!1;"undefined"!==typeof window&& -(p=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),p=!p&&/safari/i.test(navigator.userAgent),q=/(iphone|ipod|ipad)/i.test(navigator.userAgent),B=window.c2ejecta);var R=!p&&!B&&!q&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;h.prototype.contains=function(a){return this.Id()?!1:R?this.vd.has(a):this.items&&this.items.hasOwnProperty(a)};h.prototype.add=function(a){if(R)this.vd.has(a)||(this.vd.add(a),this.fe=!1);else{var d=a.toString(),f=this.items; -f?f.hasOwnProperty(d)||(f[d]=a,this.eh++,this.fe=!1):(this.items={},this.items[d]=a,this.eh=1,this.fe=!1)}};h.prototype.remove=function(a){if(!this.Id())if(R)this.vd.has(a)&&(this.vd["delete"](a),this.fe=!1);else if(this.items){a=a.toString();var d=this.items;d.hasOwnProperty(a)&&(delete d[a],this.eh--,this.fe=!1)}};h.prototype.clear=function(){this.Id()||(R?this.vd.clear():(this.items=null,this.eh=0),U(this.pg),this.fe=!0)};h.prototype.Id=function(){return 0===this.count()};h.prototype.count=function(){return R? -this.vd.size:this.eh};var z=null,T=0;h.prototype.ru=function(){if(!this.fe){if(R)U(this.pg),z=this.pg,T=0,this.vd.forEach(k),z=null,T=0;else{var a=this.pg;U(a);var d,f=0,b=this.items;if(b)for(d in b)b.hasOwnProperty(d)&&(a[f++]=b[d])}this.fe=!0}};h.prototype.Kc=function(){this.ru();return this.pg};ba=h;new ba;Qa=function(a,d){R?Ra(a,d.vd):Sa(a,d.Kc())};Ra=function(a,d){var f,b,l,g;b=f=0;for(l=a.length;ff&&(f=g),vl&&(l=v);this.fi=d;this.gi=f;this.hi=b;this.ei=l};e.prototype.ig=function(a,d,f){this.Ra.length=8;this.Ec=4;var b=this.Ra;b[0]=a.left-d;b[1]=a.top-f;b[2]=a.right-d;b[3]=a.top-f;b[4]=a.right-d;b[5]=a.bottom-f;b[6]=a.left-d;b[7]=a.bottom-f;this.li=a.right-a.left;this.ki=a.bottom-a.top;this.oa()};e.prototype.hg=function(a,d,f,b,l){this.Ra.length=8;this.Ec=4;var g=this.Ra;g[0]=a.cb-d;g[1]=a.eb-f;g[2]= -a.Eb-d;g[3]=a.Fb-f;g[4]=a.ub-d;g[5]=a.wb-f;g[6]=a.rb-d;g[7]=a.sb-f;this.li=b;this.ki=l;this.oa()};e.prototype.kp=function(a){this.Ec=a.Ec;va(this.Ra,a.Ra);this.fi=a.fi;this.hi-a.hi;this.gi=a.gi;this.ei=a.ei};e.prototype.Me=function(a,d,f){if(this.li!==a||this.ki!==d||this.Ym!==f){this.li=a;this.ki=d;this.Ym=f;var b,l,g,v,u,w=0,e=1,r=this.Wo,p=this.Ra;0!==f&&(w=Math.sin(f),e=Math.cos(f));f=0;for(g=this.Ec;fD.length&&D.push(u),this.cells[b][g]=null);if(f)for(b=f.left,l=f.right;b<=l;++b)for(g=f.top,v=f.bottom;g<=v;++g)d&&d.xb(b,g)||this.oe(b,g,!0).Wk(a)};a.prototype.sj=function(a,d){var f,b,l,g,v,u;f=this.Lb(a.left); -l=this.Mb(a.top);b=this.Lb(a.right);for(v=this.Mb(a.bottom);f<=b;++f)for(g=l;g<=v;++g)(u=this.oe(f,g,!1))&&u.dump(d)};Wa=a;b.prototype.oe=function(a,d,b){var l;l=this.cells[a];return l?(l=l[d])?l:b?(l=f(this,a,d),this.cells[a][d]=l):null:b?(l=f(this,a,d),this.cells[a]={},this.cells[a][d]=l):null};b.prototype.Lb=function(a){return N(a/this.jk)};b.prototype.Mb=function(a){return N(a/this.ik)};b.prototype.update=function(a,d,f){var b,l,g,v,u;if(d)for(b=d.left,l=d.right;b<=l;++b)for(g=d.top,v=d.bottom;g<= -v;++g)if(!f||!f.xb(b,g))if(u=this.oe(b,g,!1))u.remove(a),u.Id()&&(u.reset(),1E3>A.length&&A.push(u),this.cells[b][g]=null);if(f)for(b=f.left,l=f.right;b<=l;++b)for(g=f.top,v=f.bottom;g<=v;++g)d&&d.xb(b,g)||this.oe(b,g,!0).Wk(a)};b.prototype.sj=function(a,d,f,b,l){var g,v;a=this.Lb(a);d=this.Mb(d);f=this.Lb(f);for(g=this.Mb(b);a<=f;++a)for(b=d;b<=g;++b)(v=this.oe(a,b,!1))&&v.dump(l)};b.prototype.It=function(a){var d,f,b,l,g;d=a.left;b=a.top;f=a.right;for(l=a.bottom;d<=f;++d)for(a=b;a<=l;++a)if(g=this.oe(d, -a,!1))g.Tf=!1};Xa=b;var D=[];d.prototype.Id=function(){return this.ib.Id()};d.prototype.Wk=function(a){this.ib.add(a)};d.prototype.remove=function(a){this.ib.remove(a)};d.prototype.dump=function(a){ya(a,this.ib.Kc())};aa=d;var A=[];r.prototype.Id=function(){if(!this.ib.length)return!0;if(this.ib.length>this.rd.count())return!1;this.Dk();return!0};r.prototype.Wk=function(a){this.rd.contains(a)?(this.rd.remove(a),this.rd.Id()&&(this.vg=!1)):this.ib.length?(this.ib[this.ib.length-1].md()>a.md()&&(this.Tf= -!1),this.ib.push(a)):(this.ib.push(a),this.Tf=!0)};r.prototype.remove=function(a){this.rd.add(a);this.vg=!0;30<=this.rd.count()&&this.Dk()};r.prototype.Dk=function(){this.vg&&(this.rd.count()===this.ib.length?this.reset():(Qa(this.ib,this.rd),this.rd.clear(),this.vg=!1))};r.prototype.Rr=function(){this.Tf||(this.ib.sort(l),this.Tf=!0)};r.prototype.reset=function(){U(this.ib);this.Tf=!0;this.rd.clear();this.vg=!1};r.prototype.dump=function(a){this.Dk();this.Rr();this.ib.length&&a.push(this.ib)};ca= -r;var G="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");Ya=function(a){return 0>=a||11<=a?"source-over":G[a-1]};$a=function(a,d,f){if(f)switch(a.Cb=f.ONE,a.zb=f.ONE_MINUS_SRC_ALPHA,d){case 1:a.Cb=f.ONE;a.zb=f.ONE;break;case 3:a.Cb=f.ONE;a.zb=f.ZERO;break;case 4:a.Cb=f.ONE_MINUS_DST_ALPHA;a.zb=f.ONE;break;case 5:a.Cb=f.DST_ALPHA;a.zb=f.ZERO;break;case 6:a.Cb=f.ZERO;a.zb=f.SRC_ALPHA;break;case 7:a.Cb=f.ONE_MINUS_DST_ALPHA; -a.zb=f.ZERO;break;case 8:a.Cb=f.ZERO;a.zb=f.ONE_MINUS_SRC_ALPHA;break;case 9:a.Cb=f.DST_ALPHA;a.zb=f.ONE_MINUS_SRC_ALPHA;break;case 10:a.Cb=f.ONE_MINUS_DST_ALPHA,a.zb=f.SRC_ALPHA}};ab=function(a){return Math.round(1E6*a)/1E6};bb=function(a,d){return"string"!==typeof a||"string"!==typeof d||a.length!==d.length?!1:a===d?!0:a.toLowerCase()===d.toLowerCase()};cb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||bb(a.tagName,"canvas")?!0:!1}})(); -var Vb="undefined"!==typeof Float32Array?Float32Array:Array;function Wb(c){var n=new Vb(3);c&&(n[0]=c[0],n[1]=c[1],n[2]=c[2]);return n}function Xb(c){var n=new Vb(16);c&&(n[0]=c[0],n[1]=c[1],n[2]=c[2],n[3]=c[3],n[4]=c[4],n[5]=c[5],n[6]=c[6],n[7]=c[7],n[8]=c[8],n[9]=c[9],n[10]=c[10],n[11]=c[11],n[12]=c[12],n[13]=c[13],n[14]=c[14],n[15]=c[15]);return n} -function Yb(c,n){n[0]=c[0];n[1]=c[1];n[2]=c[2];n[3]=c[3];n[4]=c[4];n[5]=c[5];n[6]=c[6];n[7]=c[7];n[8]=c[8];n[9]=c[9];n[10]=c[10];n[11]=c[11];n[12]=c[12];n[13]=c[13];n[14]=c[14];n[15]=c[15]}function Zb(c,n){var m=n[0],h=n[1];n=n[2];c[0]*=m;c[1]*=m;c[2]*=m;c[3]*=m;c[4]*=h;c[5]*=h;c[6]*=h;c[7]*=h;c[8]*=n;c[9]*=n;c[10]*=n;c[11]*=n} -function $b(c,n,m,h){h||(h=Xb());var k,t,e,a,b,g,d,f,r=c[0],l=c[1];c=c[2];t=m[0];e=m[1];k=m[2];m=n[1];g=n[2];r===n[0]&&l===m&&c===g?(c=h,c[0]=1,c[1]=0,c[2]=0,c[3]=0,c[4]=0,c[5]=1,c[6]=0,c[7]=0,c[8]=0,c[9]=0,c[10]=1,c[11]=0,c[12]=0,c[13]=0,c[14]=0,c[15]=1):(m=r-n[0],g=l-n[1],d=c-n[2],f=1/Math.sqrt(m*m+g*g+d*d),m*=f,g*=f,d*=f,n=e*d-k*g,k=k*m-t*d,t=t*g-e*m,(f=Math.sqrt(n*n+k*k+t*t))?(f=1/f,n*=f,k*=f,t*=f):t=k=n=0,e=g*t-d*k,a=d*n-m*t,b=m*k-g*n,(f=Math.sqrt(e*e+a*a+b*b))?(f=1/f,e*=f,a*=f,b*=f):b=a=e=0, -h[0]=n,h[1]=e,h[2]=m,h[3]=0,h[4]=k,h[5]=a,h[6]=g,h[7]=0,h[8]=t,h[9]=b,h[10]=d,h[11]=0,h[12]=-(n*r+k*l+t*c),h[13]=-(e*r+a*l+b*c),h[14]=-(m*r+g*l+d*c),h[15]=1)} -(function(){function c(a,b,g){this.qe=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.wa=!!g;this.Mi=this.Zg=!1;this.qk=0;this.Tj=1;this.Am=1E3;this.xu=(this.Am-this.Tj)/32768;this.gk=Wb([0,0,100]);this.lo=Wb([0,0,0]);this.Fp=Wb([0,1,0]);this.$h=Wb([1,1,1]);this.jn=!0;this.gj=Xb();this.qc=Xb();this.jl=Xb();this.pk=Xb();this.H=a;this.En()}function n(a,b,g){this.H=a;this.Oh=b;this.name=g;this.Ac=a.getAttribLocation(b,"aPos");this.ye=a.getAttribLocation(b, -"aTex");this.jo=a.getUniformLocation(b,"matP");this.bj=a.getUniformLocation(b,"matMV");this.$f=a.getUniformLocation(b,"opacity");this.ul=a.getUniformLocation(b,"colorFill");this.ko=a.getUniformLocation(b,"samplerFront");this.oh=a.getUniformLocation(b,"samplerBack");this.nf=a.getUniformLocation(b,"destStart");this.lf=a.getUniformLocation(b,"destEnd");this.qh=a.getUniformLocation(b,"seconds");this.xl=a.getUniformLocation(b,"pixelWidth");this.wl=a.getUniformLocation(b,"pixelHeight");this.nh=a.getUniformLocation(b, -"layerScale");this.mh=a.getUniformLocation(b,"layerAngle");this.rh=a.getUniformLocation(b,"viewOrigin");this.ph=a.getUniformLocation(b,"scrollPos");this.ot=!!(this.xl||this.wl||this.qh||this.oh||this.nf||this.lf||this.nh||this.mh||this.rh||this.ph);this.to=this.uo=-999;this.fj=1;this.po=this.oo=0;this.ro=this.no=this.mo=1;this.xo=this.wo=this.vo=this.zo=this.yo=this.qo=0;this.il=[];this.so=Xb();this.$f&&a.uniform1f(this.$f,1);this.ul&&a.uniform4f(this.ul,1,1,1,1);this.ko&&a.uniform1i(this.ko,0);this.oh&& -a.uniform1i(this.oh,1);this.nf&&a.uniform2f(this.nf,0,0);this.lf&&a.uniform2f(this.lf,1,1);this.nh&&a.uniform1f(this.nh,1);this.mh&&a.uniform1f(this.mh,0);this.rh&&a.uniform2f(this.rh,0,0);this.ph&&a.uniform2f(this.ph,0,0);this.qh&&a.uniform1f(this.qh,0);this.Xe=!1}function m(a,b){return a[0]===b[0]&&a[1]===b[1]&&a[2]===b[2]&&a[3]===b[3]&&a[4]===b[4]&&a[5]===b[5]&&a[6]===b[6]&&a[7]===b[7]&&a[8]===b[8]&&a[9]===b[9]&&a[10]===b[10]&&a[11]===b[11]&&a[12]===b[12]&&a[13]===b[13]&&a[14]===b[14]&&a[15]=== -b[15]}function h(a,b){this.type=a;this.G=b;this.H=b.H;this.nd=this.Kb=this.No=0;this.T=this.Ic=null;this.mp=[]}var k=Xb();c.prototype.En=function(){var a=this.H,b;this.Zn=1;this.hf=this.ue=null;this.ri=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.wa?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):a.disable(a.DEPTH_TEST);this.ao=a.ONE;this.Xn=a.ONE_MINUS_SRC_ALPHA; -this.Rj=new Float32Array(8E3*(this.wa?3:2));this.Hj=new Float32Array(16E3);this.So=new Float32Array(32E3);this.El=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.El);a.bufferData(a.ARRAY_BUFFER,this.So.byteLength,a.DYNAMIC_DRAW);this.Zh=Array(4);this.Th=Array(4);for(b=0;4>b;b++)this.Zh[b]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Zh[b]),a.bufferData(a.ARRAY_BUFFER,this.Rj.byteLength,a.DYNAMIC_DRAW),this.Th[b]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Th[b]),a.bufferData(a.ARRAY_BUFFER, -this.Hj.byteLength,a.DYNAMIC_DRAW);this.Ad=0;this.ut=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.ut);for(var g=new Uint16Array(12E3),d=b=0;12E3>b;)g[b++]=d,g[b++]=d+1,g[b++]=d+2,g[b++]=d,g[b++]=d+2,g[b++]=d+3,d+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,g,a.STATIC_DRAW);this.Fl=this.lg=this.Xd=0;this.La=[];b=this.wa?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}": -"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";g=this.Cg({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},b,"");this.La.push(g);g=this.Cg({src:"uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"}, -"attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}","");this.La.push(g);g=this.Cg({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},b,"");this.La.push(g);g=this.Cg({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"}, -b,"");this.La.push(g);for(var f in ac)ac.hasOwnProperty(f)&&this.La.push(this.Cg(ac[f],b,f));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.ee=[];this.zd=0;this.Ab=!1;this.dn=this.hh=-1;this.If=null;this.Ck=a.createFramebuffer();this.ti=this.tj=null;this.Tm=!1;this.wa&&(this.ti=a.createRenderbuffer());this.Ge=Wb([0,0,0]);this.Ao=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048"===b.name&&a.vertexAttribPointer(b.Ac,4,a.FLOAT,!1,0,0));if(0"!==b.name&&a.vertexAttribPointer(b.Ac,this.wa?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Th[this.Ad]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Hj.subarray(0,this.lg));b&&0<=b.ye&&""!==b.name&&a.vertexAttribPointer(b.ye,2, -a.FLOAT,!1,0,0)}for(var g,a=0,b=this.zd;ag||0>d)){var f=this.hc();f.type=7;f.Kb=1;f.T||(f.T=Xb());f.T[0]=a;f.T[1]=b;f.T[2]=g;f.T[3]=d;this.Ab=!1}};c.prototype.gp=function(a){if(this.wa&&(a=!!a,this.Zg!==a)){var b=this.hc();b.type=14;b.Kb=a?1:0;this.Ab=!1;this.Zg=a;this.tj=null;this.Zg?this.Wb(2):this.Wb(0)}};c.prototype.fp=function(a){if(this.wa){var b=this.hc();b.type=13;b.Kb=a?1:0;this.Ab=!1}};c.prototype.rn=function(){Yb(this.jl,k);this.Fc();this.sc();var a=this.width/2,b=this.height/2;this.Jh(-a,b,a,b,a,-b,-a,-b);Yb(k, -this.qc);this.sc()};c.prototype.ep=function(a,b,g){this.Wb(3);var d=this.hc();d.type=12;d.T||(d.T=Xb());d.T[0]=a;d.T[1]=b;d.T[2]=g;d.T[3]=1;this.Ab=!1};c.prototype.ku=function(){this.Wb(0)};c.prototype.au=function(){this.Wb(2)};c.prototype.Wt=function(){this.le();this.H.flush()};var t=[],e={};c.prototype.kr=function(){U(t);e={}};c.prototype.$i=function(a,b,g,d){b=!!b;g=!!g;var f=a.src+","+b+","+g+(b?",undefined":""),c=null;if("undefined"!==typeof a.src&&e.hasOwnProperty(f))return c=e[f],c.ji++,c; -this.le();var l=this.H,k=ga(a.width)&&ga(a.height),c=l.createTexture();l.bindTexture(l.TEXTURE_2D,c);l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var h=l.RGBA,m=l.RGBA,p=l.UNSIGNED_BYTE;if(d&&!this.qe)switch(d){case 1:m=h=l.RGB;break;case 2:p=l.UNSIGNED_SHORT_4_4_4_4;break;case 3:p=l.UNSIGNED_SHORT_5_5_5_1;break;case 4:m=h=l.RGB,p=l.UNSIGNED_SHORT_5_6_5}if(!k&&b){d=document.createElement("canvas");d.width=ha(a.width);d.height=ha(a.height);var q=d.getContext("2d");q.webkitImageSmoothingEnabled= -g;q.mozImageSmoothingEnabled=g;q.msImageSmoothingEnabled=g;q.imageSmoothingEnabled=g;q.drawImage(a,0,0,a.width,a.height,0,0,d.width,d.height);l.texImage2D(l.TEXTURE_2D,0,h,m,p,d)}else l.texImage2D(l.TEXTURE_2D,0,h,m,p,a);b?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.REPEAT),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.REPEAT)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.CLAMP_TO_EDGE),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.CLAMP_TO_EDGE));g?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER, -l.LINEAR),k&&this.jn?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR_MIPMAP_LINEAR),l.generateMipmap(l.TEXTURE_2D)):l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.NEAREST),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.NEAREST));l.bindTexture(l.TEXTURE_2D,null);this.ue=null;c.Le=a.width;c.Ke=a.height;c.ji=1;c.Xm=f;t.push(c);return e[f]=c};c.prototype.nc=function(a,b,g,d){this.le();var f=this.H;this.qe&&(d=!1);var e= -f.createTexture();f.bindTexture(f.TEXTURE_2D,e);f.texImage2D(f.TEXTURE_2D,0,f.RGBA,a,b,0,f.RGBA,d?f.UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_BYTE,null);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,g?f.LINEAR:f.NEAREST);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,g?f.LINEAR:f.NEAREST);f.bindTexture(f.TEXTURE_2D,null);this.ue=null;e.Le=a;e.Ke=b;t.push(e);return e};c.prototype.vu= -function(a,b,g){this.le();var d=this.H;this.qe&&(g=!1);d.bindTexture(d.TEXTURE_2D,b);d.pixelStorei(d.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{d.texImage2D(d.TEXTURE_2D,0,d.RGBA,d.RGBA,g?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,a)}catch(f){console&&console.error&&console.error("Error updating WebGL texture: ",f)}d.bindTexture(d.TEXTURE_2D,null);this.ue=null};c.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.ji&&1=d?a[3]:256>=d?a[2]:512>=d?a[1]:a[0]}function m(){try{return!!window.indexedDB}catch(a){return!1}}function h(a){a.target.result.createObjectStore("saves", -{keyPath:"slot"})}function k(a,d,f,b){try{var l=indexedDB.open("_C2SaveStates");l.onupgradeneeded=h;l.onerror=b;l.onsuccess=function(l){l=l.target.result;l.onerror=b;l.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:d}).onsuccess=f}}catch(g){b(g)}}function t(a,d,f){try{var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=h;b.onerror=f;b.onsuccess=function(b){b=b.target.result;b.onerror=f;var l=b.transaction(["saves"]).objectStore("saves").get(a);l.onsuccess=function(){l.result? -d(l.result.data):d(null)}}}catch(l){f(l)}}function e(){x("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1g?(g*=d,5===c?(e=g*f/this.bb, -1e&&(e=1/Math.ceil(1/e)),g=this.bb*e/f,e=this.ab*e/f,b=(a-g)/2,l=(d-e)/2,a=g,d=e):(b=(a-g)/2,a=g)):(e=a/g,5===c?(e=e*f/this.ab,1e&&(e=1/Math.ceil(1/e)),g=this.bb*e/f,e=this.ab*e/f,b=(a-g)/2,l=(d-e)/2,a=g):l=(d-e)/2,d=e),p&&!this.re&&(l=b=0)):this.re&&this.ah&&0===this.sn&&(b=Math.floor((a-this.bb)/2),l=Math.floor((d-this.ab)/2),a=this.bb,d=this.ab),2>c&&(this.xg=f),this.pi=Math.round(a),this.Eg=Math.round(d),this.width=Math.round(a*f),this.height=Math.round(d* -f),this.ma=!0,this.Pp?(this.N=this.width,this.M=this.height,this.oc=!0):this.widthg&&(this.M=this.N/c)):3===c&&(g=this.bb/this.ab,c=this.jh/this.ih,c>g?this.N=this.M*c:c=c)c=5E4;a+=c;e.src&&(e.complete|| -e.loaded)&&!e.Wm?d+=c:l=!1}l&&this.Ut&&this.yg&&(r||(this.yg.Gv(),r=!0),b=this.yg.Bv(),d+=b,bthis.xe&&(this.Tc||500<=g&&this.fo!=this.$c)){a.clearRect(0,0,e,c);var g=e/2,c=c/2,e=0===this.xe&&this.we.ej.complete, -r=40*p,k=0,h=80*p,q;if(e){var m=this.we.ej,h=m.width*p;q=m.height*p;r=h/2;k=q/2;a.drawImage(m,N(g-r),N(c-k),h,q)}1>=this.xe?(g=N(g-r)+.5,c=N(c+(k+(e?12*p:0)))+.5,a.fillStyle=d?"red":"DodgerBlue",a.fillRect(g,c,Math.floor(h*this.$c),6*p),a.strokeStyle="black",a.strokeRect(g,c,h,6*p),a.strokeStyle="white",a.strokeRect(g-1*p,c-1*p,h+2*p,8*p)):2===this.xe&&(a.font=this.Uc?"12pt ArialMT":"12pt Arial",a.fillStyle=d?"#f00":"#999",a.Hv="middle",p=Math.round(100*this.$c)+"%",e=a.measureText?a.measureText(p): -null,a.fillText(p,g-(e?e.width:0)/2,c));this.fo=this.$c}else if(4===this.xe){this.Nr(a);b?b(function(){f.go()}):setTimeout(function(){f.go()},16);return}}setTimeout(function(){f.go()},this.Tc?10:100)}}};var E=-1,H="undefined"===typeof cr_is_preview?200:0,y=!0,p=!1,q=0,B=0,R="undefined"===typeof cr_is_preview?3E3:0,z=null,T=null,D=0;c.prototype.Nr=function(a){if(!l){for(var f=Math.ceil(this.width),b=Math.ceil(this.height),g=this.we.ej,e=this.we.Tt,c=this.we.wu,r=0;4>r;++r)if(!g[r].complete||!e[r].complete|| -!c[r].complete)return;0===D&&(E=Date.now());var r=Date.now(),k=!1,h=a,m,t;y||p?(a.clearRect(0,0,f,b),z&&z.width===f&&z.height===b||(z=document.createElement("canvas"),z.width=f,z.height=b,T=z.getContext("2d")),h=T,k=!0,y&&1===D&&(E=Date.now())):a.globalAlpha=1;h.fillStyle="#333333";h.fillRect(0,0,f,b);256=R&&!p&&1<=this.$c&&(p=!0,B=r);if(p&&r-B>=300+H||"undefined"!==typeof cr_is_preview&&1<=this.$c&&500>Date.now()-E)l=!0,p=y=!1,this.we=T=z=null;++D}};c.prototype.mt=function(){this.lb&&(this.canvas.parentNode.removeChild(this.lb),this.lb=this.Dl=null);this.Ej=Date.now();this.kf=Pa();var a,d,f;if(this.xm)for(a=0,d=this.F.length;aa||2===this.$b&&dd&&(d=0),this.ke=d/1E3,.51/this.Do&&(this.ke=1/this.Do));this.Ri=a;this.Jf=this.ke*this.ng;this.Tb.add(this.Jf);this.Sj.add(this.ke);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.ah)&&!this.Hd;2<=this.$b||a&&0d||2=== -b&&fa++;)this.hn(this.Ne);a=0;for(d=this.Cd.length;ad.si.length&&d.si.push(a)};c.prototype.bn=function(a,d,f,b){if(a.O){var g=N(Math.random()*a.qf.length); -return this.bn(a.qf[g],d,f,b)}return a.yc?this.ie(a.yc,d,!1,f,b,!1):null};var G=[];c.prototype.ie=function(a,d,f,b,g,l){var e,c,p,r;if(!a)return null;var k=this.F[a[1]],h=k.Ca.te;if(this.Vf&&h&&!k.al||h&&!this.G&&11===a[0][11])return null;var m=d;h||(d=null);var q;k.si.length?(q=k.si.pop(),q.ic=!0,k.Ca.Y.call(q,k)):(q=new k.Ca.Y(k),q.ic=!1);!f||l||this.Md.hasOwnProperty(a[2].toString())?q.uid=this.zh++:q.uid=a[2];this.Md[q.uid.toString()]=q;q.Xo=this.Go++;q.Ye=k.k.length;e=0;for(c=this.Qc.length;e< -c;++e)this.Qc[e].type===k&&q.Ye++;q.Qg=tb;q.toString=ub;p=a[3];if(q.ic)Oa(q.I);else{q.I={};if("undefined"!==typeof cr_is_preview)for(q.Hn=[],q.Hn.length=p.length,e=0,c=p.length;ea&&(a=0);a>=this.ja.R.length&&(a=this.ja.R.length-1);return this.ja.R[a]};c.prototype.lk=function(a){var d,f;d=0;for(f=a.length;d=e;)g=1/e,e*=2,a.x+=d* -g*(l?1:-1),a.y+=f*g*(l?1:-1),a.C(),this.Db(a,b)?g=l=!0:(g=l=!1,c=a.x,p=a.y);g&&(a.x=c,a.y=p,a.C())};c.prototype.Kl=function(a,d){var f=ea(d)?100:d,b=0,e=a.x,g=a.y,l=0,c=0,p=0,r=this.Da(a);if(!r)return!0;for(;b<=f;){switch(l){case 0:c=0;p=-1;b++;break;case 1:c=1;p=-1;break;case 2:c=1;p=0;break;case 3:p=c=1;break;case 4:c=0;p=1;break;case 5:c=-1;p=1;break;case 6:c=-1;p=0;break;case 7:p=c=-1}l=(l+1)%8;a.x=N(e+c*b);a.y=N(g+p*b);a.C();if(!this.Db(a,r)&&(r=this.Da(a),!r))return!0}a.x=e;a.y=g;a.C();return!1}; -c.prototype.td=function(a,d){a.mc&&d.mc&&this.Lh.push([a,d])};c.prototype.ir=function(a,d){var f,b,e;f=0;for(b=this.Lh.length;fr;r++)if(q=l-r*m,a.x=d+Math.cos(q)*g,a.y=f+Math.sin(q)*g,a.C(),!this.Db(a,p)&&(p=this.Da(a),!p)){k=q;break}36===r&&(k=W(l+ma));p=c;for(r=1;36>r;r++)if(q= -l+r*m,a.x=d+Math.cos(q)*g,a.y=f+Math.sin(q)*g,a.C(),!this.Db(a,p)&&(p=this.Da(a),!p)){h=q;break}36===r&&(h=W(l+ma));a.x=b;a.y=e;a.C();if(h===k)return h;a=Ia(h,k)/2;a=Ka(h,k)?W(k+a+ma):W(h+a);k=Math.cos(l);l=Math.sin(l);h=Math.cos(a);a=Math.sin(a);d=k*h+l*a;return Ha(0,0,k-2*d*h,l-2*d*a)};var ra=-1;c.prototype.trigger=function(a,d,f){if(!this.ja)return!1;var b=this.ja.Se;if(!b)return!1;var e=!1,g,l,c;ra++;var p=b.sk;l=0;for(c=p.length;l=this.yl.length&&this.yl.push([])};c.prototype.Rt=function(){this.cj--};c.prototype.un=function(){return this.yl[this.cj]};c.prototype.rj=function(a){this.wi++;this.wi>= -this.yk.length&&this.yk.push(new Fb);var d=this.Wa();d.reset(a);return d};c.prototype.oj=function(){this.wi--};c.prototype.Wa=function(){return this.yk[this.wi]};c.prototype.vn=function(a,d){for(var f,b,e,g,l,c;d;){f=0;for(b=d.Hc.length;fg||g>=a.Ya.length||(a.Ya[g]=e[b]));if(l.te){g=d.w;a.q.X!==g.l&&(e=a.q,a.q=this.ja.Ii(g.l), -a.q?(e.eg(a,!0),a.q.wg(a,!0),a.C(),a.q.Mh(0)):(a.q=e,f||this.Df(a)));a.x=g.x;a.y=g.y;a.width=g.w;a.height=g.h;a.fd=g.zi;a.n=g.hasOwnProperty("a")?g.a:0;a.opacity=g.hasOwnProperty("o")?g.o:1;a.Rb=g.hasOwnProperty("hX")?g.hX:.5;a.Sb=g.hasOwnProperty("hY")?g.hY:.5;a.visible=g.hasOwnProperty("v")?g.v:!0;a.mc=g.hasOwnProperty("ce")?g.ce:!0;a.yh=g.hasOwnProperty("mts")?g.mts:-1;a.qb=g.hasOwnProperty("bm")?g.bm:0;a.Bg=Ya(a.qb);this.H&&$a(a,a.qb,this.H);a.C();if(g.hasOwnProperty("fx"))for(f=0,e=g.fx.length;f< -e;f++)l=c.Kk(g.fx[f].name),0>l||(a.ae[l]=g.fx[f].active,a.Ja[l]=g.fx[f].params);a.ed()}if(c=d.behs)for(b in c)c.hasOwnProperty(b)&&(f=this.Is(a,parseInt(b,10)),0>f||a.L[f].hb(c[b]));d.data&&a.hb(d.data)};c.prototype.nn=function(a,d,f){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(d,f)},f)};c.prototype.Bs=function(a,d){this.nn("data.js",function(f){var b=new FileReader;b.onload=function(d){a(d.target.result)};b.onerror=d;b.readAsText(f)},d)};c.prototype.As= -function(a,d,f){this.nn(a,function(a){var f=new FileReader;f.onload=function(a){d(a.target.result)};f.readAsArrayBuffer(a)},f)};c.prototype.Cs=function(a,d,f){this.As(a,function(a){a=URL.createObjectURL(new Blob([a]));d(a)},f)};c.prototype.ip=function(a,d){this.dl?this.Cs(d,function(d){a.src=d},function(a){alert("Failed to load image: "+a)}):a.src=d};Hb=function(a){return new c(document.getElementById(a))};Ib=function(a,d){return new c({dc:!0,width:a,height:d})};window.cr_createRuntime=Hb;window.cr_createDCRuntime= -Ib;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.ck=!0;document.body.appendChild(a);a=new c(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new c(document.getElementById("canvas"));window.c2runtime= -a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var c=document.getElementById("c2canvas");return c?c.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(c,n){var m=window.cr_getC2Runtime();m&&m.pr(c,n)};window.cr_sizeCanvas=function(c,n){if(0!==c&&0!==n){var m=window.cr_getC2Runtime();m&&m.setSize(c,n)}};window.cr_setSuspended=function(c){var n=window.cr_getC2Runtime();n&&n.setSuspended(c)}; -(function(){function c(a,f){this.b=a;this.Se=null;this.scrollX=this.b.bb/2;this.scrollY=this.b.ab/2;this.scale=1;this.n=0;this.Nf=!0;this.name=f[0];this.width=f[1];this.height=f[2];this.Ep=f[3];this.np=f[4];this.X=f[5];var b=f[6],e,g;this.R=[];this.Vg=[];e=0;for(g=b.length;e=this.R.length&&(p=this.R.length-1);k.q=this.R[p];-1===k.q.k.indexOf(k)&&k.q.k.push(k);k.q.Cf=!0}if(!e)for(a=0,b=this.R.length;ab?k.siblings.push(h.k[b]):h.yc&&(c=this.b.ie(h.yc,k.q,!0,k.x,k.y,!0),this.b.ob(),h.Nj(),k.siblings.push(c),t.push(c)));a=0;for(b=this.$e.length;athis.width-f&&(a=this.width-f);athis.height-f&&(a=this.height-f);aF&&(F=0);0>I&&(I=0);M>K&&(M=K);P>S&&(P=S);0>Z&&(Z=0);0>C&&(C=0);wa>K&&(wa=K);xa>S&&(xa=S);u.left=F/K;u.top=1-I/S;u.right=M/K;u.bottom=1-P/S}else u.left=w.left=0,u.top=w.top=0,u.right=w.right=1,u.bottom=w.bottom=1;la=b&&(a.Gh(g[0].Ua)||0!==A|| -0!==la||1!==b.opacity||b.type.Ca.Eo)||f&&!b&&1!==f.opacity;a.dp();if(la){n[J]||(n[J]=a.nc(K,S,this.b.V));if(n[J].Le!==K||n[J].Ke!==S)a.deleteTexture(n[J]),n[J]=a.nc(K,S,this.b.V);a.Wb(0);a.Gc(n[J]);Q=xa-C;a.clearRect(Z,S-C-Q,wa-Z,Q);b?b.Pb(a):(a.jc(this.b.Za),a.wf(f.opacity),a.Fc(),a.translate(-ra,-v),a.sc(),a.sd(F,P,M,P,M,I,F,I,u));w.left=w.top=0;w.right=w.bottom=1;b&&(G=u.top,u.top=u.bottom,u.bottom=G);J=1;qa=0}a.wf(1);A=g.length-1;var Za=a.Il(g[A].Ua)||!f&&!b&&!this.b.oc,Ca=0;t=0;for(D=g.length;t< -D;t++){n[J]||(n[J]=a.nc(K,S,this.b.V));if(n[J].Le!==K||n[J].Ke!==S)a.deleteTexture(n[J]),n[J]=a.nc(K,S,this.b.V);a.Wb(g[t].Ua);Ca=g[t].index;a.pj(g[t].Ua)&&(this.b.ma=!0);0!=t||la?(a.gg(e,1/K,1/S,w.left,w.top,w.right,w.bottom,c,k,p,q,(p+h)/2,(q+m)/2,this.b.Tb.da,b?b.Ja[Ca]:f?f.Ja[Ca]:this.Ja[Ca]),a.jc(null),t!==A||Za?(a.Gc(n[J]),Q=xa-C,G=S-C-Q,a.clearRect(Z,G,wa-Z,Q)):(b?a.Ee(b.Cb,b.zb):f&&a.Ee(f.Cb,f.zb),a.Gc(e)),a.jc(n[qa]),a.Fc(),a.translate(-ra,-v),a.sc(),a.sd(F,P,M,P,M,I,F,I,u),t!==A||Za||a.jc(null)): -(a.Gc(n[J]),Q=xa-C,G=S-C-Q,a.clearRect(Z,G,wa-Z,Q),b?(a.gg(e,1/b.width,1/b.height,w.left,w.top,w.right,w.bottom,c,k,p,q,(p+h)/2,(q+m)/2,this.b.Tb.da,b.Ja[Ca]),b.Pb(a)):(a.gg(e,1/K,1/S,0,0,1,1,c,k,p,q,(p+h)/2,(q+m)/2,this.b.Tb.da,f?f.Ja[Ca]:this.Ja[Ca]),a.jc(f?this.b.Za:this.b.Pa),a.Fc(),a.translate(-ra,-v),a.sc(),a.sd(F,P,M,P,M,I,F,I,u)),w.left=w.top=0,w.right=w.bottom=1,b&&!Za&&(G=P,P=I,I=G));J=0===J?1:0;qa=0===J?1:0}Za&&(a.Wb(0),b?a.Ee(b.Cb,b.zb):f?a.Ee(f.Cb,f.zb):this.b.oc||(a.xf(this.b.width, -this.b.height),ra=this.b.width/2,v=this.b.height/2,I=F=0,M=this.b.width,P=this.b.height),a.Gc(e),a.jc(n[qa]),a.Fc(),a.translate(-ra,-v),a.sc(),b&&1===g.length&&!la?a.sd(F,I,M,I,M,P,F,P,u):a.sd(F,P,M,P,M,I,F,I,u),a.jc(null))};c.prototype.Ii=function(a){var b,e;b=0;for(e=this.R.length;be||(b&&this.tc&&a.Vb&&a.Vb.right>=a.Vb.left&&(a.oa(),this.mb.update(a,a.Vb,null),a.Vb.set(0,0,-1,-1)),e===this.k.length-1?this.k.pop():(ta(this.k,e),this.Mh(e)),this.ad=!0)};m.prototype.wg=function(a, -b){a.fd=this.k.length;this.k.push(a);b&&this.tc&&a.Vb&&a.C();this.ad=!0};m.prototype.Vt=function(a){this.k.unshift(a);this.Mh(0)};m.prototype.Kt=function(a,b,e){var g=a.md();b=b.md();ta(this.k,g);gthis.Fa||e.top>this.Ea||(b.globalCompositeOperation=a.Bg,a.Rc(b))}};m.prototype.Oj=function(){this.Bd=!0;var a= -this.ge(!0),b=this.ge(!1);this.Bd=!1;this.b.Yc&&(a=Math.round(a),b=Math.round(b));this.uj(a,b,null)};m.prototype.uj=function(a,b,e){var g=this.cc();this.xa=a;this.ya=b;this.Fa=a+1/g*this.b.N;this.Ea=b+1/g*this.b.M;a=this.ac();0!==a&&(e&&(e.translate(this.b.N/2,this.b.M/2),e.rotate(-a),e.translate(this.b.N/-2,this.b.M/-2)),this.Vd.set(this.xa,this.ya,this.Fa,this.Ea),this.Vd.offset((this.xa+this.Fa)/-2,(this.ya+this.Ea)/-2),this.zp.lp(this.Vd,a),this.zp.Vm(this.Vd),this.Vd.offset((this.xa+this.Fa)/ -2,(this.ya+this.Ea)/2),this.xa=this.Vd.left,this.ya=this.Vd.top,this.Fa=this.Vd.right,this.Ea=this.Vd.bottom)};m.prototype.Pe=function(a){if(this.ud=this.Ei){this.b.Za||(this.b.Za=a.nc(this.b.N,this.b.M,this.b.V));if(this.b.Za.Le!==this.b.N||this.b.Za.Ke!==this.b.M)a.deleteTexture(this.b.Za),this.b.Za=a.nc(this.b.N,this.b.M,this.b.V);a.Gc(this.b.Za)}this.Bd=!0;var b=this.ge(!0),e=this.ge(!1);this.Bd=!1;this.b.Yc&&(b=Math.round(b),e=Math.round(e));this.uj(b,e,null);b=this.cc();a.Fc();a.scale(b,b); -a.vj(-this.ac());a.translate((this.xa+this.Fa)/-2,(this.ya+this.Ea)/-2);a.sc();this.tc?(this.jb.left=this.mb.Lb(this.xa),this.jb.top=this.mb.Mb(this.ya),this.jb.right=this.mb.Lb(this.Fa),this.jb.bottom=this.mb.Mb(this.Ea),this.ad||!this.jb.Ig(this.Zf)?(k(this.Kd),b=this.Mk(),this.ad=!1,this.Zf.Hf(this.jb)):b=this.Kd):b=this.k;for(var g,c=null,e=b.length-1;0<=e;--e)g=b[e],g!==c&&(this.Lr(b[e],a),c=g);this.tc&&(this.Kd=b);this.dd||(this.mk=this.b.Qe++,a.yj(this.mk),a.ep(1,1,1),a.rn(),a.au())};m.prototype.Pb= -function(a){var b=0,e=0;if(this.ud=this.Ei||1!==this.opacity||0this.Fa||e.top>this.Ea||(b.yj(a.Qe),a.Mp?this.Mr(a,b):(b.Wb(0),b.Ee(a.Cb,a.zb),a.Pb(b)))}};m.prototype.Lr=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.oa();var e=a.ua;e.rightthis.Fa||e.top>this.Ea||(a.Qe=this.b.Qe++,0===a.qb&&1===a.opacity&&a.Qd&& -a.Pe&&(b.yj(a.Qe),a.Pe(b)))}};m.prototype.Mr=function(a,b){var e=a.ea[0].Ua,g=a.ea[0].index,c=this.cc();if(1!==a.ea.length||b.Il(e)||b.Xt(e)||(a.n||a.q.ac())&&b.Gh(e)||1!==a.opacity||a.type.Ca.Eo)this.$a.Pl(b,this,a,this.ud?this.b.Za:this.$a.Og()),b.Fc(),b.scale(c,c),b.vj(-this.ac()),b.translate((this.xa+this.Fa)/-2,(this.ya+this.Ea)/-2),b.sc();else{b.Wb(e);b.Ee(a.Cb,a.zb);b.pj(e)&&(this.b.ma=!0);var k=0,h=0,p=0,q=0;b.Gh(e)&&(e=a.ua,k=this.na(e.left,e.top,!0,!0),h=this.na(e.left,e.top,!1,!0),p=this.na(e.right, -e.bottom,!0,!0),e=this.na(e.right,e.bottom,!1,!0),k=k/windowWidth,h=1-h/windowHeight,p=p/windowWidth,q=1-e/windowHeight);b.gg(this.ud?this.b.Za:this.$a.Og(),1/a.width,1/a.height,k,h,p,q,c,this.ac(),this.xa,this.ya,(this.xa+this.Fa)/2,(this.ya+this.Ea)/2,this.b.Tb.da,a.Ja[g]);a.Pb(b)}};m.prototype.ge=function(a){var b=0,e=0,g=this.b.devicePixelRatio;this.b.df&&(b*=g,e*=g);var g=this.b.Oo,c=this.b.Po,g=(this.$a.scrollX-g)*this.Nd+g,c=(this.$a.scrollY-c)*this.Od+c,k,h,p=1/this.cc(!1);k=g-this.b.N*p/ -2;h=c-this.b.M*p/2;k+=b*p;h+=e*p;e=this.ac();0!==e&&(k-=g,h-=c,b=Math.cos(e),e=Math.sin(e),p=k*b-h*e,h=h*b+k*e,k=p+g,h+=c);return a?k:h};m.prototype.na=function(a,b,e,g){var c=this.b.Oo,k=this.b.Po,h=(this.$a.scrollX-c)*this.Nd+c,p=(this.$a.scrollY-k)*this.Od+k,k=h,c=p,q=this.ac();if(0!==q){a-=h;b-=p;var m=Math.cos(-q),q=Math.sin(-q),n=a*m-b*q;b=b*m+a*q;a=n+h;b+=p}h=1/this.cc(!g);g?(k-=this.b.N*h/2,c-=this.b.M*h/2):(k-=this.b.width*h/2,c-=this.b.height*h/2);k=(a-k)/h;c=(b-c)/h;a=this.b.devicePixelRatio; -this.b.df&&!g&&(k/=a,c/=a);return e?k:c};m.prototype.Ta=function(){var a,b,e,g={s:this.scale,a:this.n,vl:this.xa,vt:this.ya,vr:this.Fa,vb:this.Ea,v:this.visible,bc:this.Oc,t:this.dd,px:this.Nd,py:this.Od,o:this.opacity,zr:this.ai,fx:[],cg:this.Dg,instances:[]};a=0;for(b=this.Q.length;aa[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2=E.length&&(E.length=a.length+1);E[a.length]||(E[a.length]=[]);f=E[a.length];b=0;for(d=f.length;b=b.length&&(b.length=this.of+1),b[this.of]=a):this.data=a};f.prototype.Pg=function(){var a=this.b.un();return!this.parent||this.dh||!a||this.Pi?this.data:this.of>=a.length||"undefined"===typeof a[this.of]?this.Vk:a[this.of]};f.prototype.Sa=function(){!this.parent||this.dh||this.Pi||this.yf(this.Vk)};Gb=f;r.prototype.toString=function(){return"include:"+this.Ug.toString()};r.prototype.Ma=function(){this.Ug=this.b.zk[this.tt];this.sheet.Dn.add(this); -this.ta=m(this.ta);for(var a=this.parent;a;)a.group&&a.oi.push(this),a=a.parent;this.Gp()};r.prototype.Sa=function(){this.parent&&this.b.Ih(this.b.F);this.Ug.Sk||this.Ug.Sa(!0);this.parent&&this.b.tf(this.b.F)};r.prototype.Gp=function(){for(var a=this.parent;a;){if(a.group&&!a.Rg){this.pb=!1;return}a=a.parent}this.pb=!0};Qb=r;l.prototype.reset=function(a){this.Gb=a;this.Nb=this.Va=0;U(this.tp);this.wk=this.jf=!1};Fb=l})(); -(function(){function c(e,a){this.Dc=e;this.b=e.b;this.type=a[0];this.get=[this.hs,this.cs,this.vs,this.ys,this.Sr,this.ws,this.os,this.$r,this.ns,this.us,this.Tr,this.ts,this.as,this.qs,this.ks,this.ls,this.ds,this.es,this.Zr,this.xs,this.rs,this.gs,this.Yr,this.bs][this.type];var b=null;this.Ld=this.U=this.Ka=this.kb=this.Ij=this.second=this.first=this.value=null;this.Pc=-1;this.Sc=null;this.Np=-1;this.Te=this.Yh=null;this.fg=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first= -new Ob(e,a[1]);break;case 18:this.first=new Ob(e,a[1]);this.second=new Ob(e,a[2]);this.Ij=new Ob(e,a[3]);break;case 19:this.kb=this.b.$d(a[1]);this.kb!==X.prototype.Na.random&&this.kb!==X.prototype.Na.jr||this.Dc.jp();this.Ka=[];this.U=[];3===a.length?(b=a[2],this.Ka.length=b.length+1):this.Ka.length=1;break;case 20:this.Ld=this.b.F[a[1]];this.Pc=-1;this.kb=this.b.$d(a[2]);this.fg=a[3];Tb.Function&&this.kb===Tb.Function.prototype.Na.Du&&this.Dc.jp();a[4]?this.Sc=new Ob(e,a[4]):this.Sc=null;this.Ka= -[];this.U=[];6===a.length?(b=a[5],this.Ka.length=b.length+1):this.Ka.length=1;break;case 21:this.Ld=this.b.F[a[1]];this.fg=a[2];a[3]?this.Sc=new Ob(e,a[3]):this.Sc=null;this.Np=a[4];break;case 22:this.Ld=this.b.F[a[1]];this.Ld.Hi(a[2]);this.Pc=this.Ld.Hk(a[2]);this.kb=this.b.$d(a[3]);this.fg=a[4];a[5]?this.Sc=new Ob(e,a[5]):this.Sc=null;this.Ka=[];this.U=[];7===a.length?(b=a[6],this.Ka.length=b.length+1):this.Ka.length=1;break;case 23:this.Yh=a[1],this.Te=null}this.Dc.Jt(this.Ld);4<=this.type&&17>= -this.type&&(this.first=new Ob(e,a[1]),this.second=new Ob(e,a[2]));if(b){var g,d;g=0;for(d=b.length;g=a||c<=-a)c%=a;0>c&&(c+=a);f.apply(k[c],b)};c.prototype.Yr=function(e){var a=this.Ld,b=this.Ka,g=this.U,d=this.Sc,f=this.Pc,c=this.kb,l=this.Dc.Td,k=a.aa(),h=k.Qb();if(!h.length)if(k.S.length)h=k.S;else{this.fg?e.kc(""):e.ra(0);return}b[0]=e;e.sf=a;e=n();m(g,b,e);d&&(d.get(e),e.gb()&&(l=e.data,h=a.k));--t;g=h.length;if(l>=g||l<=-g)l%=g;0>l&&(l+=g);l=h[l];h=0;a.O&&(h=l.type.Mf[a.Dd]);c.apply(l.L[f+h],b)};c.prototype.gs=function(e){var a=this.Sc,b=this.Ld,g=this.Np,d=this.Dc.Td, -f=b.aa(),c=f.Qb();if(!c.length)if(f.S.length)c=f.S;else{this.fg?e.kc(""):e.ra(0);return}if(a){f=n();a.get(f);if(f.gb()){d=f.data;c=b.k;0!==c.length&&(d%=c.length,0>d&&(d+=c.length));d=b.Lk(d);b=d.Ya[g];L(b)?e.kc(b):e.W(b);--t;return}--t}a=c.length;if(d>=a||d<=-a)d%=a;0>d&&(d+=a);d=c[d];c=0;b.O&&(c=d.type.xi[b.Dd]);b=d.Ya[g+c];L(b)?e.kc(b):e.W(b)};c.prototype.hs=function(e){e.type=Rb.Ff;e.data=this.value};c.prototype.cs=function(e){e.type=Rb.Ef;e.data=this.value};c.prototype.vs=function(e){e.type= -Rb.String;e.data=this.value};c.prototype.ys=function(e){this.first.get(e);e.gb()&&(e.data=-e.data)};c.prototype.Sr=function(e){this.first.get(e);var a=n();this.second.get(a);e.gb()&&a.gb()&&(e.data+=a.data,a.Sf()&&e.ag());--t};c.prototype.ws=function(e){this.first.get(e);var a=n();this.second.get(a);e.gb()&&a.gb()&&(e.data-=a.data,a.Sf()&&e.ag());--t};c.prototype.os=function(e){this.first.get(e);var a=n();this.second.get(a);e.gb()&&a.gb()&&(e.data*=a.data,a.Sf()&&e.ag());--t};c.prototype.$r=function(e){this.first.get(e); -var a=n();this.second.get(a);e.gb()&&a.gb()&&(e.data/=a.data,e.ag());--t};c.prototype.ns=function(e){this.first.get(e);var a=n();this.second.get(a);e.gb()&&a.gb()&&(e.data%=a.data,a.Sf()&&e.ag());--t};c.prototype.us=function(e){this.first.get(e);var a=n();this.second.get(a);e.gb()&&a.gb()&&(e.data=Math.pow(e.data,a.data),a.Sf()&&e.ag());--t};c.prototype.Tr=function(e){this.first.get(e);var a=n();this.second.get(a);a.Uf()||e.Uf()?this.Vr(e,a):this.Ur(e,a);--t};c.prototype.Vr=function(e,a){e.Uf()&& -a.Uf()?this.Xr(e,a):this.Wr(e,a)};c.prototype.Xr=function(e,a){e.data+=a.data};c.prototype.Wr=function(e,a){e.Uf()?e.data+=(Math.round(1E10*a.data)/1E10).toString():e.kc(e.data.toString()+a.data)};c.prototype.Ur=function(e,a){e.ra(e.data&&a.data?1:0)};c.prototype.ts=function(e){this.first.get(e);var a=n();this.second.get(a);e.gb()&&a.gb()&&(e.data||a.data?e.ra(1):e.ra(0));--t};c.prototype.Zr=function(e){this.first.get(e);e.data?this.second.get(e):this.Ij.get(e)};c.prototype.as=function(e){this.first.get(e); -var a=n();this.second.get(a);e.ra(e.data===a.data?1:0);--t};c.prototype.qs=function(e){this.first.get(e);var a=n();this.second.get(a);e.ra(e.data!==a.data?1:0);--t};c.prototype.ks=function(e){this.first.get(e);var a=n();this.second.get(a);e.ra(e.dataa.data?1:0);--t};c.prototype.es=function(e){this.first.get(e); -var a=n();this.second.get(a);e.ra(e.data>=a.data?1:0);--t};c.prototype.bs=function(e){var a=this.Te.Pg();fa(a)?e.W(a):e.kc(a)};Ob=c;h.prototype.Sf=function(){return this.type===Rb.Ef};h.prototype.gb=function(){return this.type===Rb.Ff||this.type===Rb.Ef};h.prototype.Uf=function(){return this.type===Rb.String};h.prototype.ag=function(){this.Sf()||(this.Uf()&&(this.data=parseFloat(this.data)),this.type=Rb.Ef)};h.prototype.ra=function(e){this.type=Rb.Ff;this.data=Math.floor(e)};h.prototype.W=function(e){this.type= -Rb.Ef;this.data=e};h.prototype.kc=function(e){this.type=Rb.String;this.data=e};h.prototype.lu=function(e){fa(e)?(this.type=Rb.Ef,this.data=e):L(e)?(this.type=Rb.String,this.data=e.toString()):(this.type=Rb.Ff,this.data=0)};Nb=h;Rb={Ff:0,Ef:1,String:2}})();function X(c){this.b=c;this.Yb=[]} -X.prototype.Ta=function(){var c={},n,m,h,k,t,e,a,b;c.waits=[];var g=c.waits,d;n=0;for(m=this.Yb.length;n=b+d)return a.I.Every_lastTime=b+d,g>=a.I.Every_lastTime+.04&&(a.I.Every_lastTime=g),a.I.Every_seconds=e,!0;ge)){var a,b,g,d=this.b.Wa(),f;k.length?f=k.pop():f={Jb:{},ta:[]};f.uk=!1;f.time=this.b.Tb.da+e;f.pp="";f.dm=!1;f.Kf=d.Gb;f.Nb=d.Nb+1;e=0;for(a= -this.b.F.length;ed&&(a=d);e.W(a)};m.prototype.Jf=function(e){e.W(this.b.Jf)};m.prototype.ng=function(e){e.W(this.b.ng)};m.prototype.time=function(e){e.W(this.b.Tb.da)};m.prototype.Jc=function(e){e.ra(this.b.Jc)};m.prototype.jj=function(e){e.ra(this.b.jj)};m.prototype.Ek=function(e){e.ra(this.b.Ek)};m.prototype.n=function(e,a,b,g,d){e.W(Da(Ha(a,b,g,d)))};m.prototype.Ft=function(e){e.ra(this.b.ja.height)}; -m.prototype.left=function(e,a,b){e.kc(L(a)?a.substr(0,b):"")};m.prototype.right=function(e,a,b){e.kc(L(a)?a.substr(a.length-b):"")};m.prototype.replace=function(e,a,b,g){L(a)&&L(b)&&L(g)?e.kc(a.replace(new RegExp(Ua(b),"gi"),g)):e.kc(L(a)?a:"")};m.prototype.trim=function(e,a){e.kc(L(a)?a.trim():"")};m.prototype.jr=function(e){var a=N(Math.random()*(arguments.length-1));e.lu(arguments[a+1])};m.prototype.ok=function(e){e.W(this.b.ok/1E3)};m.prototype.aj=function(e){e.W(this.b.aj)};h.Na=new m;h.du=function(){var e, -a,b,g,d,f,c=this.b.Wa();e=0;for(b=this.Yb.length;ethis.b.Tb.da)continue;c.Gb=g.Kf;c.Nb=g.Nb;c.Va=0;for(a in g.Jb)g.Jb.hasOwnProperty(a)&&(d=this.b.F[parseInt(a,10)].aa(),f=g.Jb[a],d.ca=f.xj,va(d.k,f.Gd),d=f,U(d.Gd),t.push(d));g.Kf.bu();this.b.lk(g.ta);g.uk=!0}a=e=0;for(b=this.Yb.length;ea.Fa||b.top>a.Ea)},d.Ou=function(){this.oa();var a=this.ua,b=this.b.ja;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},d.$u=function(a,b,d){var e=this.aa(), -f=e.Qb();if(!f.length)return!1;var g=f[0],c=g,k=La(g.x,g.y,b,d),h,m,n;h=1;for(m=f.length;hk)k=n,c=g;e.Eh(c);return!0},f.rv=function(a){this.x!==a&&(this.x=a,this.C())},f.sv=function(a){this.y!==a&&(this.y=a,this.C())},f.Iq=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.C()},f.Jq=function(a,b){var d=a.Us(this);if(d){var e;d.Lg?(e=d.Lg(b,!0),d=d.Lg(b,!1)):(e=d.x,d=d.y);if(this.x!==e||this.y!==d)this.x=e,this.y=d,this.C()}},f.Tu= -function(a){0!==a&&(this.x+=Math.cos(this.n)*a,this.y+=Math.sin(this.n)*a,this.C())},f.Su=function(a,b){0!==b&&(this.x+=Math.cos(V(a))*b,this.y+=Math.sin(V(a))*b,this.C())},r.Wq=function(a){a.W(this.x)},r.Xq=function(a){a.W(this.y)},r.Jf=function(a){a.W(this.b.We(this))});t&&(d.Gu=function(a,b){return Sb(this.width,a,b)},d.Eu=function(a,b){return Sb(this.height,a,b)},f.Oq=function(a){this.width!==a&&(this.width=a,this.C())},f.ov=function(a){this.height!==a&&(this.height=a,this.C())},f.qv=function(a, -b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.C()},r.vv=function(a){a.W(this.width)},r.Ku=function(a){a.W(this.height)},r.Au=function(a){this.oa();a.W(this.ua.left)},r.Cu=function(a){this.oa();a.W(this.ua.top)},r.Bu=function(a){this.oa();a.W(this.ua.right)},r.zu=function(a){this.oa();a.W(this.ua.bottom)});e&&(d.Bm=function(a,b){return Ia(this.n,V(b))<=V(a)},d.gq=function(a){return Ka(this.n,V(a))},d.dq=function(a,b){var d=Ga(a),e=Ga(b),f=W(this.n);return Ka(e,d)?Ka(f,d)&&!Ka(f, -e):!(!Ka(f,d)&&Ka(f,e))},f.kv=function(a){a=V(Ea(a));isNaN(a)||this.n===a||(this.n=a,this.C())},f.dv=function(a){0===a||isNaN(a)||(this.n+=V(a),this.n=W(this.n),this.C())},f.gv=function(a){0===a||isNaN(a)||(this.n-=V(a),this.n=W(this.n),this.C())},f.hv=function(a,b){var d=Ja(this.n,V(b),V(a));isNaN(d)||this.n===d||(this.n=d,this.C())},f.jv=function(a,b,d){a=Ja(this.n,Math.atan2(d-this.y,b-this.x),V(a));isNaN(a)||this.n===a||(this.n=a,this.C())},f.Mq=function(a,b){var d=Math.atan2(b-this.y,a-this.x); -isNaN(d)||this.n===d||(this.n=d,this.C())},r.yu=function(a){a.W(Fa(this.n))});h||(d.Wp=function(a,b,d){return Sb(this.Ya[a],b,d)},d.fq=function(a){return this.Ya[a]},d.av=function(a,b){var d=this.aa(),e=d.Qb();if(!e.length)return!1;var f=e[0],g=f,c=f.Ya[b],k,h,m;k=1;for(h=e.length;kc)c=m,g=f;d.Eh(g);return!0},d.Zu=function(a){var b,d,e,f,g;if(this.b.Pf().Yg){g=this.aa();if(g.ca)for(g.ca=!1,U(g.k),U(g.S),e=this.k,b=0,d=e.length;ba?a=0:1f.q.index||e.q.index===f.q.index&&e.md()>f.md())f=e}else if(e.q.indexd)){var e=1===a;this.ae[d]!==e&&(this.ae[d]=e,this.ed(),this.b.ma=!0)}}},f.nv=function(a,b,d){if(this.b.G){var e=this.type.Kk(a);0>e||(a=this.type.Q[e],e=this.Ja[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.G.Xs(a.Ua,b)&&(d/=100),e[b]!==d&&(e[b]=d,a.pb&&(this.b.ma=!0))))}})};xb=function(){this.hk=this.dk=!0;this.type.ci=!0;this.b.ma=!0;var c,m,h=this.ek;c=0;for(m= -h.length;ch;case 5:return c>=h;default:return!1}}})();var ac={};function ec(c){this.b=c} -(function(){function c(){}var n=ec.prototype;n.ia=function(c){this.Ca=c;this.b=c.b};n.ia.prototype.P=function(){};n.Y=function(c){this.type=c;this.b=c.b;this.Yf=Array(256);this.Wh=Array(256);this.Wd=0};var m=n.Y.prototype;m.P=function(){var c=this;this.b.Oa||(jQuery(document).keydown(function(h){c.Bh(h)}),jQuery(document).keyup(function(h){c.Ch(h)}))};var h=[32,33,34,35,36,37,38,39,40,44];m.Bh=function(c){var m=!1;window!=window.top&&-1c;++c)if(this.Yf[c]){this.Yf[c]=!1;this.Wd=c;this.b.trigger(ec.prototype.B.Dm,this);var h=this.b.trigger(ec.prototype.B.Gm,this),e=this.b.trigger(ec.prototype.B.Fm,this);if(h||e)this.Wh[c]=!0}};m.Ta=function(){return{triggerKey:this.Wd}};m.hb=function(c){this.Wd=c.triggerKey};c.prototype.hq=function(c){return this.Yf[c]};c.prototype.Em=function(c){return c===this.Wd};c.prototype.pq=function(){return!0}; -c.prototype.Dm=function(){return!0};c.prototype.Gm=function(c){return c===this.Wd};c.prototype.wq=function(c){return c===this.Wd};c.prototype.Fm=function(c){return c===this.Wd};n.B=new c;n.J=new function(){};n.Na=new function(){}})();function Y(c){this.b=c} -(function(){function c(){if(0===this.rk.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.jg?b.drawImage(this.fa,this.bg,this.dg,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.fa,0,0,this.width,this.height);this.rk=a.toDataURL("image/png")}return this.rk}function n(){}function m(a){a[0]=0;a[1]=0;a[2]=0;r.push(a)}function h(a,b){return athis.K&&(this.K=0);this.K>=this.Aa.frames.length&&(this.K=this.Aa.frames.length-1);var a=this.Aa.frames[this.K];this.Z.Nh(a.nj);this.Rb=a.Rb;this.Sb=a.Sb;this.Fg=this.Aa.speed;this.je=this.Aa.Rl;this.ic?this.hd.reset():this.hd=new Ta;this.Ed=this.hd.da;this.Ie=!0;this.yd=0;this.He=!0;this.ni=this.Qm="";this.Zm=0;this.kk=-1;this.type.tl();var b,d,e,f,g,c,k,a=0;for(b=this.type.Ob.length;a< -b;a++)for(f=this.type.Ob[a],d=0,e=f.frames.length;dthis.K&&(this.K=0);this.K>=this.Aa.frames.length&&(this.K=this.Aa.frames.length-1);this.Fg=a.cas;this.Ed=a.fs;this.yd=a.ar;this.hd.reset();this.hd.da=a.at;this.Ie=a.hasOwnProperty("ap")?a.ap:!0;this.He=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.je=a.rt:this.je=this.Aa.Rl;this.xc=this.Aa.frames[this.K];this.qi=this.xc.za;this.Z.Nh(this.xc.nj);this.Rb=this.xc.Rb;this.Sb=this.xc.Sb};f.bk= -function(a){this.K=a?0:this.Aa.frames.length-1;this.Ie=!1;this.Qm=this.Aa.name;this.Uk=!0;this.b.trigger(Y.prototype.B.oq,this);this.b.trigger(Y.prototype.B.nq,this);this.Uk=!1;this.yd=0};f.ck=function(){return this.hd.da};f.nb=function(){this.hd.add(this.b.We(this));this.ni.length&&this.gn();0<=this.kk&&this.qr();var a=this.hd.da,b=this.Aa,d=b.frames[this.K],e=d.duration/this.Fg;this.Ie&&a>=this.Ed+e&&(this.He?this.K++:this.K--,this.Ed+=e,this.K>=b.frames.length&&(b.Qo?(this.He=!1,this.K=b.frames.length- -2):b.loop?this.K=this.je:(this.yd++,this.yd>=b.Ql?this.bk(!1):this.K=this.je)),0>this.K&&(b.Qo?(this.K=1,this.He=!0,b.loop||(this.yd++,this.yd>=b.Ql&&this.bk(!0))):b.loop?this.K=this.je:(this.yd++,this.yd>=b.Ql?this.bk(!0):this.K=this.je)),0>this.K?this.K=0:this.K>=b.frames.length&&(this.K=b.frames.length-1),a>this.Ed+b.frames[this.K].duration/this.Fg&&(this.Ed=a),a=b.frames[this.K],this.Gf(d,a),this.b.ma=!0)};f.tn=function(a){var b,d,e;b=0;for(d=this.type.Ob.length;bthis.K&&(this.K=0),this.K>=this.Aa.frames.length&&(this.K=this.Aa.frames.length-1),1===this.Zm&&(this.K=0),this.Ie=!0,this.Ed=this.hd.da,this.He=!0,this.Gf(a,this.Aa.frames[this.K]),this.b.ma=!0)};f.qr=function(){var a= -this.Aa.frames[this.K],b=this.K;this.K=N(this.kk);0>this.K&&(this.K=0);this.K>=this.Aa.frames.length&&(this.K=this.Aa.frames.length-1);b!==this.K&&(this.Gf(a,this.Aa.frames[this.K]),this.Ed=this.hd.da,this.b.ma=!0);this.kk=-1};f.Gf=function(a,b){var d=a.width,e=a.height,f=b.width,g=b.height;d!=f&&(this.width*=f/d);e!=g&&(this.height*=g/e);this.Rb=b.Rb;this.Sb=b.Sb;this.Z.Nh(b.nj);this.C();this.xc=b;this.qi=b.za;d=0;for(e=this.L.length;df||f>=e.length)return b?this.x:this.y;var g=(e[f][1]-d.Rb)*this.width,e=e[f][2],e=(e-d.Sb)*this.height,d=Math.cos(this.n);f=Math.sin(this.n);var c=g*d-e*f,e=e*d+g*f,g=c+this.x,e=e+this.y;return b?g:e};var r=[],l=-2,E=[];n.prototype.sq=function(a){if(!a)return!1;var b=this.b,d=b.Pf(),f=d.type,g=null;d.I.collmemory?g=d.I.collmemory: -(g={},d.I.collmemory=g);d.I.spriteCreatedDestroyCallback||(d.I.spriteCreatedDestroyCallback=!0,b.Yj(function(a){var b=d.I.collmemory;a=a.uid;var e,f;for(e in b)b.hasOwnProperty(e)&&(f=b[e],f[0]===a||f[1]===a)&&(m(b[e]),delete b[e])}));var c=f.aa(),h=a.aa(),c=c.Qb(),p,r,n,q,y,v,u,w=this.b.Jc,H=w-1,B=b.Wa().Gb;for(r=0;r=this.wc.left&&this.type.Ag.update(this,this.wc, -null),this.wc.set(0,0,-1,-1)))};b.J=new a;b.Na=new function(){}})();function fc(c){this.b=c} -(function(){function c(){return a.length?a.pop():{}}function n(b){var e,d;e=0;for(d=b.length;ea.Fa||e.top>a.Ea)this.b.G.deleteTexture(this.gc),this.od=this.rf=this.gc=null}};t.qd=function(){this.od=this.rf=null;this.b.G&& -this.gc&&this.b.G.deleteTexture(this.gc);this.gc=null};t.ck=function(){this.font=this.Di+" "+this.Hh.toString()+"pt "+this.Lf;this.Bf=!0;this.b.ma=!0};t.Rc=function(a,e){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=e?1:this.opacity;var d=1;e&&(d=this.q.cc(),a.save(),a.scale(d,d));if(this.Bf||this.width!==this.ol)this.type.Ca.Uq(this.text,this.ve,a,this.width,this.zm),this.Bf=!1,this.ol=this.width;this.oa();var d=e?0:this.tb.cb,f=e?0:this.tb.eb;this.b.Yc&&(d=d+.5|0,f= -f+.5|0);0===this.n||e||(a.save(),a.translate(d,f),a.rotate(this.n),f=d=0);var c=f+this.height,k=this.Ll,k=k+this.ql,h,m;1===this.Pj?f+=Math.max(this.height/2-this.ve.length*k/2,0):2===this.Pj&&(f+=Math.max(this.height-this.ve.length*k-2,0));for(m=0;m=c-k);m++);(0!==this.n||e)&&a.restore();this.kh=this.b.Jc};t.Pb=function(a){if(!(1>this.width|| -1>this.height)){var e=this.Bf||this.Fo;this.Fo=!1;var d=this.q.cc(),f=this.q.ac(),c=this.De,k=d*this.width,h=d*this.height,m=Math.ceil(k),t=Math.ceil(h),p=this.b.N/2,n=this.b.M/2;this.rf||(this.od=document.createElement("canvas"),this.od.width=m,this.od.height=t,this.Ti=m,this.Si=t,e=!0,this.rf=this.od.getContext("2d"));if(m!==this.Ti||t!==this.Si)this.od.width=m,this.od.height=t,this.gc&&(a.deleteTexture(this.gc),this.gc=null),e=!0;e&&(this.rf.clearRect(0,0,m,t),this.Rc(this.rf,!0),this.gc||(this.gc= -a.nc(m,t,this.b.V,this.b.cf)),a.vu(this.od,this.gc,this.b.cf));this.Ti=m;this.Si=t;a.jc(this.gc);a.wf(this.opacity);a.Fc();a.translate(-p,-n);a.sc();var B=this.tb,e=this.q.na(B.cb,B.eb,!0,!0),p=this.q.na(B.cb,B.eb,!1,!0),n=this.q.na(B.Eb,B.Fb,!0,!0),R=this.q.na(B.Eb,B.Fb,!1,!0),z=this.q.na(B.ub,B.wb,!0,!0),T=this.q.na(B.ub,B.wb,!1,!0),D=this.q.na(B.rb,B.sb,!0,!0),B=this.q.na(B.rb,B.sb,!1,!0);if(this.b.Yc||0===this.n&&0===f)var A=(e+.5|0)-e,G=(p+.5|0)-p,e=e+A,p=p+G,n=n+A,R=R+G,z=z+A,T=T+G,D=D+A,B= -B+G;0===this.n&&0===f?(n=e+m,R=p,z=n,T=p+t,D=e,B=T,c.right=1,c.bottom=1):(c.right=k/m,c.bottom=h/t);a.sd(e,p,n,R,z,T,D,B,c);a.Fc();a.scale(d,d);a.vj(-this.q.ac());a.translate((this.q.xa+this.q.Fa)/-2,(this.q.ya+this.q.Ea)/-2);a.sc();this.kh=this.b.Jc}};var e=[];k.Rq=function(a){U(e);for(var g="",d,f=0;f=f)n(e);else{if(100>=a.length&&-1===a.indexOf("\n")){var h=d.measureText(a).width;if(h<=f){n(e);e.push(c());e[0].text=a;e[0].width=h;return}}this.Vq(a,e,d,f,k)}else n(e)};k.Vq=function(b,g,d,f,k){k&&(this.Rq(b),b=e);var h="",t,n,y,p=0;for(y=0;y=g.length&&g.push(c()),h=m(h),n=g[p],n.text=h,n.width=d.measureText(h).width,p++,h=""):(t=h,h+=b[y],n=d.measureText(h).width, -n>=f&&(p>=g.length&&g.push(c()),t=m(t),n=g[p],n.text=t,n.width=d.measureText(t).width,p++,h=b[y],k||" "!==h||(h="")));h.length&&(p>=g.length&&g.push(c()),h=m(h),n=g[p],n.text=h,n.width=d.measureText(h).width,p++);for(y=p;ya&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Bf=!0,this.b.ma=!0)};k.J=new h;k.Na=new function(){}})();function gc(c){this.b=c} -(function(){var c=gc.prototype;c.ia=function(c){this.Ca=c;this.b=c.b};var n=c.ia.prototype;n.P=function(){this.O||(this.fa=new Image,this.fa.an=this.im,this.b.Op(this.fa,this.hm),this.za=this.pattern=null)};n.kj=function(){this.O||(this.za=null)};n.Bl=function(){if(!this.O&&this.k.length){this.za||(this.za=this.b.G.$i(this.fa,!0,this.b.V,this.jm));var c,h;c=0;for(h=this.k.length;ca&&(a+=this.fa.width);0>b&&(b+=this.fa.height);c.translate(h,k);c.rotate(this.n);c.translate(a,b);c.fillRect(n-a,e-b,this.width,this.height);c.restore()};n.Pe=function(c){this.Pb(c)}; -n.Pb=function(c){c.jc(this.za);c.wf(this.opacity);var h=this.De;h.right=this.width/this.fa.width;h.bottom=this.height/this.fa.height;var k=this.tb;if(this.b.Yc){var n=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;c.sd(k.cb+n,k.eb+e,k.Eb+n,k.Fb+e,k.ub+n,k.wb+e,k.rb+n,k.sb+e,h)}else c.sd(k.cb,k.eb,k.Eb,k.Fb,k.ub,k.wb,k.rb,k.sb,h)};c.B=new function(){};c.J=new function(){};c.Na=new function(){}})();function hc(c){this.b=c} -(function(){function c(){}function n(){}var m=hc.prototype;m.ia=function(c){this.Ca=c;this.b=c.b};m.ia.prototype.P=function(){};m.Y=function(c){this.type=c;this.b=c.b};var h=m.Y.prototype;h.P=function(){this.b.Oa?x("[Construct 2] Progress Bar plugin not supported on this platform - the object will not be created"):(this.qa=document.createElement("progress"),this.value=this.D[0],this.max=this.D[1],0=a||0>=b||h>=g||e>=d?(this.Re||jQuery(this.qa).hide(),this.Re=!0):(1>h&&(h=1),1>e&&(e=1),a>=g&&(a=g-1),b>=d&&(b=d-1),g=window.innerWidth,d=window.innerHeight,c||this.Yn!==h||this.bo!==e||this.$n!==a||this.Wn!==b||this.eo!==g||this.co!==d?(this.Yn=h,this.bo=e,this.$n=a,this.Wn=b,this.eo=g,this.co=d,this.Re&&(jQuery(this.qa).show(),this.Re=!1),c=Math.round(h)+ -jQuery(this.b.canvas).offset().left,g=Math.round(e)+jQuery(this.b.canvas).offset().top,jQuery(this.qa).css("position","absolute"),jQuery(this.qa).offset({left:c,top:g}),jQuery(this.qa).width(Math.round(a-h)),jQuery(this.qa).height(Math.round(b-e))):this.Re&&(jQuery(this.qa).show(),this.Re=!1))}};h.Rc=function(){};h.Pb=function(){};c.prototype.rq=function(){return!0};m.B=new c;n.prototype.Nm=function(c){this.b.Oa||(this.visible=0!==c)};n.prototype.Kq=function(c){this.b.Oa||(this.value=c,this.qa.max= -this.max,this.qa.value=this.value)};m.J=new n;m.Na=new function(){}})();function ic(c){this.b=c} -(function(){function c(){}var n=ic.prototype;n.ia=function(c){this.behavior=c;this.b=c.b};n.ia.prototype.P=function(){};n.Y=function(c,k){this.type=c;this.behavior=c.behavior;this.j=k;this.b=c.b};var m=n.Y.prototype;m.P=function(){var c=this.D[0];this.la=this.D[1];this.Hb=this.D[2];this.er=0!==this.D[3];this.Yl=0!==this.D[4];this.u=Math.cos(this.j.n)*c;this.A=Math.sin(this.j.n)*c;this.Ui=this.j.x;this.Vi=this.j.y;this.zc=this.j.n;this.Lj=0;this.enabled=0!==this.D[5]};m.Ta=function(){return{acc:this.la, -g:this.Hb,dx:this.u,dy:this.A,lx:this.Ui,ly:this.Vi,lka:this.zc,t:this.Lj,e:this.enabled}};m.hb=function(c){this.la=c.acc;this.Hb=c.g;this.u=c.dx;this.A=c.dy;this.Ui=c.lx;this.Vi=c.ly;this.zc=c.lka;this.Lj=c.t;this.enabled=c.e};m.nb=function(){if(this.enabled){var c=this.b.We(this.j),k,m;this.j.n!==this.zc&&(this.Yl&&(k=La(0,0,this.u,this.A),this.u=Math.cos(this.j.n)*k,this.A=Math.sin(this.j.n)*k),this.zc=this.j.n);0!==this.la&&(k=La(0,0,this.u,this.A),m=0===this.u&&0===this.A?this.j.n:Ha(0,0,this.u, -this.A),k+=this.la*c,0>k&&(k=0),this.u=Math.cos(m)*k,this.A=Math.sin(m)*k);0!==this.Hb&&(this.A+=this.Hb*c);this.Ui=this.j.x;this.Vi=this.j.y;if(0!==this.u||0!==this.A)if(this.j.x+=this.u*c,this.j.y+=this.A*c,this.Lj+=La(0,0,this.u*c,this.A*c),this.Yl&&(this.j.n=Ha(0,0,this.u,this.A),this.j.C(),this.zc=this.j.n),this.j.C(),this.er&&(k=this.b.Da(this.j)))this.b.td(this.j,k),k=La(0,0,this.u,this.A),m=this.b.hr(this.j,this.Ui,this.Vi),this.u=Math.cos(m)*k,this.A=Math.sin(m)*k,this.j.x+=this.u*c,this.j.y+= -this.A*c,this.j.C(),this.Yl&&(this.zc=this.j.n=m,this.j.C()),this.b.rc(this.j,this.u/k,this.A/k,Math.max(2.5*k*c,30))||this.b.Kl(this.j,100)}};n.B=new function(){};c.prototype.Wj=function(c){this.la=c};c.prototype.Km=function(c){this.Hb=c};n.J=new c;n.Na=new function(){}})();function jc(c){this.b=c} -(function(){function c(){}var n=jc.prototype;n.ia=function(c){this.behavior=c;this.b=c.b};n.ia.prototype.P=function(){};n.Y=function(c,k){this.type=c;this.behavior=c.behavior;this.j=k;this.b=c.b;this.Sd=this.Rd=this.Bj=this.Cj=this.Fd=this.bd=this.Xc=this.Hg=this.Vh=!1;this.ml=this.ll=this.kl=this.nl=-1;this.A=this.u=0};var m=n.Y.prototype;m.P=function(){this.Bc=this.D[0];this.la=this.D[1];this.yb=this.D[2];this.vk=this.D[3];this.ak=this.D[4];this.tk=1===this.D[5];this.enabled=0!==this.D[6];this.tk&& -!this.b.Oa&&(jQuery(document).keydown(function(c){return function(k){c.Bh(k)}}(this)),jQuery(document).keyup(function(c){return function(k){c.Ch(k)}}(this)))};m.Ta=function(){return{dx:this.u,dy:this.A,enabled:this.enabled,maxspeed:this.Bc,acc:this.la,dec:this.yb,ignoreInput:this.Fd}};m.hb=function(c){this.u=c.dx;this.A=c.dy;this.enabled=c.enabled;this.Bc=c.maxspeed;this.la=c.acc;this.yb=c.dec;this.Fd=c.ignoreInput;this.Sd=this.Rd=this.Bj=this.Cj=this.bd=this.Xc=this.Hg=this.Vh=!1;this.ml=this.ll= -this.kl=this.nl=-1};m.Bh=function(c){var k=this.b.Jc;switch(c.which){case 37:c.preventDefault();this.llthis.u?(this.u+=this.yb*c,0this.u&&(this.u=0)));e==a&&(0>this.A?(this.A+=this.yb*c,0this.A&&(this.A=0)));k&&!m&&(this.u=0this.u?this.u+(this.la+this.yb)*c:this.u+this.la*c);e&&!a&&(this.A=0this.A?this.A+(this.la+this.yb)*c:this.A+this.la*c);if(0!==this.u||0!==this.A){Math.sqrt(this.u*this.u+this.A*this.A)>this.Bc&& -(b=Math.atan2(this.A,this.u),this.u=this.Bc*Math.cos(b),this.A=this.Bc*Math.sin(b));m=this.j.x;e=this.j.y;k=this.j.n;this.j.x+=this.u*c;this.j.C();if(b=this.b.Da(this.j))this.j.x=m,this.u=0,this.j.C(),this.b.td(this.j,b);this.j.y+=this.A*c;this.j.C();if(b=this.b.Da(this.j))this.j.y=e,this.A=0,this.j.C(),this.b.td(this.j,b);c=ab(this.u);b=ab(this.A);if(0!==c||0!==b)1===this.ak?this.j.n=Ga(90*Math.round(Da(Math.atan2(b,c))/90)):2===this.ak?this.j.n=Ga(45*Math.round(Da(Math.atan2(b,c))/45)):3===this.ak&& -(this.j.n=Math.atan2(b,c));this.j.C();this.j.n!=k&&(b=this.b.Da(this.j))&&(this.j.n=k,this.j.C(),this.b.td(this.j,b))}}};n.B=new function(){};c.prototype.Lm=function(c){this.Fd=c};c.prototype.Wj=function(c){this.la=c;0>this.la&&(this.la=0)};c.prototype.Xj=function(c){switch(c){case 0:this.Rd=!0;break;case 1:this.Sd=!0;break;case 2:this.Cj=!0;break;case 3:this.Bj=!0}};c.prototype.Mm=function(c){this.A=c};n.J=new c;n.Na=new function(){}})();function kc(c){this.b=c} -(function(){function c(){}function n(){}var m=kc.prototype;m.ia=function(a){this.behavior=a;this.b=a.b};var h=m.ia.prototype;h.P=function(){this.ze=[]};h.Ds=function(a){var e,d,f;e=0;for(d=a.L.length;ethis.j.width&&(c+=Math.PI);if(La(d,f,a,e)>this.Nl||Ia(c,Ha(d,f,a,e))>this.nk/2)return!1;var h,m;t.set(d,f,a,e);t.normalize();if(0===this.Lt)for(this.Lp? -this.b.yn(this.j.q,t,k):(c=this.b.em)&&ya(k,c.xh.Kc()),c=0,h=k.length;cf?e:f):(B=ag?e:g):gf?a:f):(B=eg?a:g)}function h(){this.items=this.vd=null;this.dh=0;T&&(this.vd=new Set);this.ng=[];this.fe=!0}function k(a){R[P++]=a}function t(){this.ca=this.Hj=this.y=this.hk=0}function b(a){this.Qa=[];this.di=this.fi=this.gi=this.ei=0;this.Mh(a)}function a(a,e){this.lk= +a;this.kk=e;this.cells={}}function d(a,e){this.lk=a;this.kk=e;this.cells={}}function m(a,e,g){var f;return F.length?(f=F.pop(),f.Rk=a,f.x=e,f.y=g,f):new aa(a,e,g)}function e(a,e,g){this.Rk=a;this.x=e;this.y=g;this.hb=new ba}function f(a,e,g){var f;return C.length?(f=C.pop(),f.Rk=a,f.x=e,f.y=g,f):new ca(a,e,g)}function r(a,e,g){this.Rk=a;this.x=e;this.y=g;this.hb=[];this.Rf=!0;this.rd=new ba;this.tg=!1}function l(a,e){return a.fd-e.fd}w=function(a){window.console&&window.console.log&&window.console.log(a)}; +da=function(a){window.console&&window.console.error&&window.console.error(a)};ea=function(a){return"undefined"===typeof a};fa=function(a){return"number"===typeof a};L=function(a){return"string"===typeof a};ga=function(a){return 0e;e<<=1)a=a|a>>e;return a+1};ia=function(a){return 0>a?-a:a};ja=function(a,e){return a>e?a:e};la=function(a,e){return aq)return!1;eq)return!1;y=d-a+x-g;m=l-e+v-f;a=g-a;e=f-e;d=x-d;l=v-l;v=ia(e*d-l*a);return ia(d*m-l*y)>v?!1:ia(a*m-e*y)<=v};c.prototype.set=function(a,e,g,f){this.left=a;this.top=e;this.right=g;this.bottom=f};c.prototype.Ag=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};c.prototype.width=function(){return this.right- +this.left};c.prototype.height=function(){return this.bottom-this.top};c.prototype.offset=function(a,e){this.left+=a;this.top+=e;this.right+=a;this.bottom+=e;return this};c.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};c.prototype.Ln=function(a){return!(a.rightthis.right||a.top>this.bottom)};c.prototype.Mn=function(a,e,g){return!(a.right+ +ethis.right||a.top+g>this.bottom)};c.prototype.xb=function(a,e){return a>=this.left&&a<=this.right&&e>=this.top&&e<=this.bottom};c.prototype.Hg=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};Q=c;p.prototype.gg=function(a){this.ab=a.left;this.bb=a.top;this.Db=a.right;this.Eb=a.top;this.ub=a.right;this.wb=a.bottom;this.rb=a.left;this.sb=a.bottom};p.prototype.np=function(a,e){if(0===e)this.gg(a);else{var g= +Math.sin(e),f=Math.cos(e),d=a.left*g,l=a.top*g,x=a.right*g,g=a.bottom*g,v=a.left*f,y=a.top*f,m=a.right*f,f=a.bottom*f;this.ab=v-l;this.bb=y+d;this.Db=m-l;this.Eb=y+x;this.ub=m-g;this.wb=f+x;this.rb=v-g;this.sb=f+d}};p.prototype.offset=function(a,e){this.ab+=a;this.bb+=e;this.Db+=a;this.Eb+=e;this.ub+=a;this.wb+=e;this.rb+=a;this.sb+=e;return this};var B=0,A=0;p.prototype.Wm=function(a){n(this.ab,this.Db,this.ub,this.rb);a.left=B;a.right=A;n(this.bb,this.Eb,this.wb,this.sb);a.top=B;a.bottom=A};p.prototype.xb= +function(a,e){var g=this.ab,f=this.bb,d=this.Db-g,l=this.Eb-f,x=this.ub-g,v=this.wb-f,y=a-g,m=e-f,q=d*d+l*l,b=d*x+l*v,l=d*y+l*m,r=x*x+v*v,c=x*y+v*m,k=1/(q*r-b*b),d=(r*l-b*c)*k,q=(q*c-b*l)*k;if(0<=d&&0d+q)return!0;d=this.rb-g;l=this.sb-f;q=d*d+l*l;b=d*x+l*v;l=d*y+l*m;k=1/(q*r-b*b);d=(r*l-b*c)*k;q=(q*c-b*l)*k;return 0<=d&&0d+q};p.prototype.vc=function(a,e){if(e)switch(a){case 0:return this.ab;case 1:return this.Db;case 2:return this.ub;case 3:return this.rb;case 4:return this.ab;default:return this.ab}else switch(a){case 0:return this.bb; +case 1:return this.Eb;case 2:return this.wb;case 3:return this.sb;case 4:return this.bb;default:return this.bb}};p.prototype.Do=function(){return(this.ab+this.Db+this.ub+this.rb)/4};p.prototype.Eo=function(){return(this.bb+this.Eb+this.wb+this.sb)/4};p.prototype.Xg=function(a,e,g,f){if(this.xb(a,e)||this.xb(g,f))return!0;var d,l,x,v,y;for(y=0;4>y;y++)if(d=this.vc(y,!0),l=this.vc(y,!1),x=this.vc(y+1,!0),v=this.vc(y+1,!1),pa(a,e,g,f,d,l,x,v))return!0;return!1};p.prototype.Kn=function(a){var e=a.Do(), +g=a.Eo();if(this.xb(e,g))return!0;e=this.Do();g=this.Eo();if(a.xb(e,g))return!0;var f,d,l,x,v,y,m,q;for(m=0;4>m;m++)for(q=0;4>q;q++)if(e=this.vc(m,!0),g=this.vc(m,!1),f=this.vc(m+1,!0),d=this.vc(m+1,!1),l=a.vc(q,!0),x=a.vc(q,!1),v=a.vc(q+1,!0),y=a.vc(q+1,!1),pa(e,g,f,d,l,x,v,y))return!0;return!1};qa=p;sa=function(a,e){for(var g in e)e.hasOwnProperty(g)&&(a[g]=e[g]);return a};ta=function(a,e){var g,f;e=O(e);if(!(0>e||e>=a.length)){g=e;for(f=a.length-1;gg?g:a};V=function(a){return a/(180/na)};Da=function(a){return 180/na*a};Ea=function(a){a%=360;0>a&&(a+=360);return a};W=function(a){a%=2*na;0>a&&(a+=2*na);return a};Fa=function(a){return Ea(Da(a))};Ga=function(a){return W(V(a))}; +Ha=function(a,e,g,f){return Math.atan2(f-e,g-a)};Ia=function(a,e){if(a===e)return 0;var g=Math.sin(a),f=Math.cos(a),d=Math.sin(e),l=Math.cos(e),g=g*d+f*l;return 1<=g?0:-1>=g?na:Math.acos(g)};Ja=function(a,e,g){var f=Math.sin(a),d=Math.cos(a),l=Math.sin(e),x=Math.cos(e);return Math.acos(f*l+d*x)>g?0=f*d-g*l};La=function(a,e,g,f){a=g-a;e=f-e;return Math.sqrt(a*a+e*e)};Ma=function(a,e){return!a!== +!e};Na=function(a){for(var e in a)if(a.hasOwnProperty(e))return!0;return!1};Oa=function(a){for(var e in a)a.hasOwnProperty(e)&&delete a[e]};var z=+new Date;Pa=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-z};var g=!1,q=g=!1,u=!1;"undefined"!==typeof window&& +(g=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),g=!g&&/safari/i.test(navigator.userAgent),q=/(iphone|ipod|ipad)/i.test(navigator.userAgent),u=window.c2ejecta);var T=!g&&!u&&!q&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;h.prototype.contains=function(a){return this.Id()?!1:T?this.vd.has(a):this.items&&this.items.hasOwnProperty(a)};h.prototype.add=function(a){if(T)this.vd.has(a)||(this.vd.add(a),this.fe=!1);else{var e=a.toString(),g=this.items; +g?g.hasOwnProperty(e)||(g[e]=a,this.dh++,this.fe=!1):(this.items={},this.items[e]=a,this.dh=1,this.fe=!1)}};h.prototype.remove=function(a){if(!this.Id())if(T)this.vd.has(a)&&(this.vd["delete"](a),this.fe=!1);else if(this.items){a=a.toString();var e=this.items;e.hasOwnProperty(a)&&(delete e[a],this.dh--,this.fe=!1)}};h.prototype.clear=function(){this.Id()||(T?this.vd.clear():(this.items=null,this.dh=0),U(this.ng),this.fe=!0)};h.prototype.Id=function(){return 0===this.count()};h.prototype.count=function(){return T? +this.vd.size:this.dh};var R=null,P=0;h.prototype.su=function(){if(!this.fe){if(T)U(this.ng),R=this.ng,P=0,this.vd.forEach(k),R=null,P=0;else{var a=this.ng;U(a);var e,g=0,f=this.items;if(f)for(e in f)f.hasOwnProperty(e)&&(a[g++]=f[e])}this.fe=!0}};h.prototype.Jc=function(){this.su();return this.ng};ba=h;new ba;Qa=function(a,e){T?Ra(a,e.vd):Sa(a,e.Jc())};Ra=function(a,e){var g,f,d,l;f=g=0;for(d=a.length;gg&&(g=l),xd&&(d=x);this.ei=e;this.fi=g;this.gi=f;this.di=d};b.prototype.gg=function(a,e,g){this.Qa.length=8;this.Dc=4;var f=this.Qa;f[0]=a.left-e;f[1]=a.top-g;f[2]=a.right-e;f[3]=a.top-g;f[4]=a.right-e;f[5]=a.bottom-g;f[6]=a.left-e;f[7]=a.bottom-g;this.ki=a.right-a.left;this.ji=a.bottom-a.top;this.ta()};b.prototype.fg=function(a,e,g,f,d){this.Qa.length=8;this.Dc=4;var l=this.Qa;l[0]=a.ab-e;l[1]=a.bb-g;l[2]= +a.Db-e;l[3]=a.Eb-g;l[4]=a.ub-e;l[5]=a.wb-g;l[6]=a.rb-e;l[7]=a.sb-g;this.ki=f;this.ji=d;this.ta()};b.prototype.mp=function(a){this.Dc=a.Dc;va(this.Qa,a.Qa);this.ei=a.ei;this.gi-a.gi;this.fi=a.fi;this.di=a.di};b.prototype.Me=function(a,e,g){if(this.ki!==a||this.ji!==e||this.Zm!==g){this.ki=a;this.ji=e;this.Zm=g;var f,d,l,x,v,m=0,q=1,b=this.Yo,r=this.Qa;0!==g&&(m=Math.sin(g),q=Math.cos(g));g=0;for(l=this.Dc;gF.length&&F.push(v),this.cells[f][l]=null);if(g)for(f=g.left,d=g.right;f<=d;++f)for(l=g.top,x=g.bottom;l<=x;++l)e&&e.xb(f,l)||this.oe(f,l,!0).Wk(a)};a.prototype.tj=function(a,e){var g,f,d,l,x,v;g=this.Kb(a.left); +d=this.Lb(a.top);f=this.Kb(a.right);for(x=this.Lb(a.bottom);g<=f;++g)for(l=d;l<=x;++l)(v=this.oe(g,l,!1))&&v.dump(e)};Wa=a;d.prototype.oe=function(a,e,g){var d;d=this.cells[a];return d?(d=d[e])?d:g?(d=f(this,a,e),this.cells[a][e]=d):null:g?(d=f(this,a,e),this.cells[a]={},this.cells[a][e]=d):null};d.prototype.Kb=function(a){return O(a/this.lk)};d.prototype.Lb=function(a){return O(a/this.kk)};d.prototype.update=function(a,e,g){var f,d,l,x,v;if(e)for(f=e.left,d=e.right;f<=d;++f)for(l=e.top,x=e.bottom;l<= +x;++l)if(!g||!g.xb(f,l))if(v=this.oe(f,l,!1))v.remove(a),v.Id()&&(v.reset(),1E3>C.length&&C.push(v),this.cells[f][l]=null);if(g)for(f=g.left,d=g.right;f<=d;++f)for(l=g.top,x=g.bottom;l<=x;++l)e&&e.xb(f,l)||this.oe(f,l,!0).Wk(a)};d.prototype.tj=function(a,e,g,f,d){var l,x;a=this.Kb(a);e=this.Lb(e);g=this.Kb(g);for(l=this.Lb(f);a<=g;++a)for(f=e;f<=l;++f)(x=this.oe(a,f,!1))&&x.dump(d)};d.prototype.Jt=function(a){var e,g,f,d,l;e=a.left;f=a.top;g=a.right;for(d=a.bottom;e<=g;++e)for(a=f;a<=d;++a)if(l=this.oe(e, +a,!1))l.Rf=!1};Xa=d;var F=[];e.prototype.Id=function(){return this.hb.Id()};e.prototype.Wk=function(a){this.hb.add(a)};e.prototype.remove=function(a){this.hb.remove(a)};e.prototype.dump=function(a){ya(a,this.hb.Jc())};aa=e;var C=[];r.prototype.Id=function(){if(!this.hb.length)return!0;if(this.hb.length>this.rd.count())return!1;this.Fk();return!0};r.prototype.Wk=function(a){this.rd.contains(a)?(this.rd.remove(a),this.rd.Id()&&(this.tg=!1)):this.hb.length?(this.hb[this.hb.length-1].md()>a.md()&&(this.Rf= +!1),this.hb.push(a)):(this.hb.push(a),this.Rf=!0)};r.prototype.remove=function(a){this.rd.add(a);this.tg=!0;30<=this.rd.count()&&this.Fk()};r.prototype.Fk=function(){this.tg&&(this.rd.count()===this.hb.length?this.reset():(Qa(this.hb,this.rd),this.rd.clear(),this.tg=!1))};r.prototype.Tr=function(){this.Rf||(this.hb.sort(l),this.Rf=!0)};r.prototype.reset=function(){U(this.hb);this.Rf=!0;this.rd.clear();this.tg=!1};r.prototype.dump=function(a){this.Fk();this.Tr();this.hb.length&&a.push(this.hb)};ca= +r;var H="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");Ya=function(a){return 0>=a||11<=a?"source-over":H[a-1]};$a=function(a,e,g){if(g)switch(a.Cb=g.ONE,a.zb=g.ONE_MINUS_SRC_ALPHA,e){case 1:a.Cb=g.ONE;a.zb=g.ONE;break;case 3:a.Cb=g.ONE;a.zb=g.ZERO;break;case 4:a.Cb=g.ONE_MINUS_DST_ALPHA;a.zb=g.ONE;break;case 5:a.Cb=g.DST_ALPHA;a.zb=g.ZERO;break;case 6:a.Cb=g.ZERO;a.zb=g.SRC_ALPHA;break;case 7:a.Cb=g.ONE_MINUS_DST_ALPHA; +a.zb=g.ZERO;break;case 8:a.Cb=g.ZERO;a.zb=g.ONE_MINUS_SRC_ALPHA;break;case 9:a.Cb=g.DST_ALPHA;a.zb=g.ONE_MINUS_SRC_ALPHA;break;case 10:a.Cb=g.ONE_MINUS_DST_ALPHA,a.zb=g.SRC_ALPHA}};ab=function(a){return Math.round(1E6*a)/1E6};bb=function(a,e){return"string"!==typeof a||"string"!==typeof e||a.length!==e.length?!1:a===e?!0:a.toLowerCase()===e.toLowerCase()};cb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||bb(a.tagName,"canvas")?!0:!1}})(); +var Vb="undefined"!==typeof Float32Array?Float32Array:Array;function Wb(c){var p=new Vb(3);c&&(p[0]=c[0],p[1]=c[1],p[2]=c[2]);return p}function Xb(c){var p=new Vb(16);c&&(p[0]=c[0],p[1]=c[1],p[2]=c[2],p[3]=c[3],p[4]=c[4],p[5]=c[5],p[6]=c[6],p[7]=c[7],p[8]=c[8],p[9]=c[9],p[10]=c[10],p[11]=c[11],p[12]=c[12],p[13]=c[13],p[14]=c[14],p[15]=c[15]);return p} +function Yb(c,p){p[0]=c[0];p[1]=c[1];p[2]=c[2];p[3]=c[3];p[4]=c[4];p[5]=c[5];p[6]=c[6];p[7]=c[7];p[8]=c[8];p[9]=c[9];p[10]=c[10];p[11]=c[11];p[12]=c[12];p[13]=c[13];p[14]=c[14];p[15]=c[15]}function Zb(c,p){var n=p[0],h=p[1];p=p[2];c[0]*=n;c[1]*=n;c[2]*=n;c[3]*=n;c[4]*=h;c[5]*=h;c[6]*=h;c[7]*=h;c[8]*=p;c[9]*=p;c[10]*=p;c[11]*=p} +function $b(c,p,n,h){h||(h=Xb());var k,t,b,a,d,m,e,f,r=c[0],l=c[1];c=c[2];t=n[0];b=n[1];k=n[2];n=p[1];m=p[2];r===p[0]&&l===n&&c===m?(c=h,c[0]=1,c[1]=0,c[2]=0,c[3]=0,c[4]=0,c[5]=1,c[6]=0,c[7]=0,c[8]=0,c[9]=0,c[10]=1,c[11]=0,c[12]=0,c[13]=0,c[14]=0,c[15]=1):(n=r-p[0],m=l-p[1],e=c-p[2],f=1/Math.sqrt(n*n+m*m+e*e),n*=f,m*=f,e*=f,p=b*e-k*m,k=k*n-t*e,t=t*m-b*n,(f=Math.sqrt(p*p+k*k+t*t))?(f=1/f,p*=f,k*=f,t*=f):t=k=p=0,b=m*t-e*k,a=e*p-n*t,d=n*k-m*p,(f=Math.sqrt(b*b+a*a+d*d))?(f=1/f,b*=f,a*=f,d*=f):d=a=b=0, +h[0]=p,h[1]=b,h[2]=n,h[3]=0,h[4]=k,h[5]=a,h[6]=m,h[7]=0,h[8]=t,h[9]=d,h[10]=e,h[11]=0,h[12]=-(p*r+k*l+t*c),h[13]=-(b*r+a*l+d*c),h[14]=-(n*r+m*l+e*c),h[15]=1)} +(function(){function c(a,d,m){this.qe=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.ua=!!m;this.Ni=this.Yg=!1;this.sk=0;this.Uj=1;this.Am=1E3;this.yu=(this.Am-this.Uj)/32768;this.ik=Wb([0,0,100]);this.no=Wb([0,0,0]);this.Hp=Wb([0,1,0]);this.Zh=Wb([1,1,1]);this.kn=!0;this.hj=Xb();this.qc=Xb();this.jl=Xb();this.rk=Xb();this.H=a;this.Gn()}function p(a,d,m){this.H=a;this.Nh=d;this.name=m;this.Ac=a.getAttribLocation(d,"aPos");this.ye=a.getAttribLocation(d, +"aTex");this.lo=a.getUniformLocation(d,"matP");this.cj=a.getUniformLocation(d,"matMV");this.Yf=a.getUniformLocation(d,"opacity");this.ul=a.getUniformLocation(d,"colorFill");this.mo=a.getUniformLocation(d,"samplerFront");this.nh=a.getUniformLocation(d,"samplerBack");this.nf=a.getUniformLocation(d,"destStart");this.lf=a.getUniformLocation(d,"destEnd");this.ph=a.getUniformLocation(d,"seconds");this.xl=a.getUniformLocation(d,"pixelWidth");this.wl=a.getUniformLocation(d,"pixelHeight");this.mh=a.getUniformLocation(d, +"layerScale");this.lh=a.getUniformLocation(d,"layerAngle");this.qh=a.getUniformLocation(d,"viewOrigin");this.oh=a.getUniformLocation(d,"scrollPos");this.qt=!!(this.xl||this.wl||this.ph||this.nh||this.nf||this.lf||this.mh||this.lh||this.qh||this.oh);this.vo=this.wo=-999;this.gj=1;this.ro=this.qo=0;this.to=this.po=this.oo=1;this.zo=this.yo=this.xo=this.Bo=this.Ao=this.so=0;this.il=[];this.uo=Xb();this.Yf&&a.uniform1f(this.Yf,1);this.ul&&a.uniform4f(this.ul,1,1,1,1);this.mo&&a.uniform1i(this.mo,0);this.nh&& +a.uniform1i(this.nh,1);this.nf&&a.uniform2f(this.nf,0,0);this.lf&&a.uniform2f(this.lf,1,1);this.mh&&a.uniform1f(this.mh,1);this.lh&&a.uniform1f(this.lh,0);this.qh&&a.uniform2f(this.qh,0,0);this.oh&&a.uniform2f(this.oh,0,0);this.ph&&a.uniform1f(this.ph,0);this.Xe=!1}function n(a,d){return a[0]===d[0]&&a[1]===d[1]&&a[2]===d[2]&&a[3]===d[3]&&a[4]===d[4]&&a[5]===d[5]&&a[6]===d[6]&&a[7]===d[7]&&a[8]===d[8]&&a[9]===d[9]&&a[10]===d[10]&&a[11]===d[11]&&a[12]===d[12]&&a[13]===d[13]&&a[14]===d[14]&&a[15]=== +d[15]}function h(a,d){this.type=a;this.G=d;this.H=d.H;this.nd=this.Ib=this.Po=0;this.S=this.Hc=null;this.op=[]}var k=Xb();c.prototype.Gn=function(){var a=this.H,d;this.ao=1;this.hf=this.ue=null;this.qi=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.ua?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):a.disable(a.DEPTH_TEST);this.co=a.ONE;this.Zn=a.ONE_MINUS_SRC_ALPHA; +this.Sj=new Float32Array(8E3*(this.ua?3:2));this.Ij=new Float32Array(16E3);this.Uo=new Float32Array(32E3);this.El=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.El);a.bufferData(a.ARRAY_BUFFER,this.Uo.byteLength,a.DYNAMIC_DRAW);this.Yh=Array(4);this.Sh=Array(4);for(d=0;4>d;d++)this.Yh[d]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Yh[d]),a.bufferData(a.ARRAY_BUFFER,this.Sj.byteLength,a.DYNAMIC_DRAW),this.Sh[d]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Sh[d]),a.bufferData(a.ARRAY_BUFFER, +this.Ij.byteLength,a.DYNAMIC_DRAW);this.Ad=0;this.xt=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.xt);for(var m=new Uint16Array(12E3),e=d=0;12E3>d;)m[d++]=e,m[d++]=e+1,m[d++]=e+2,m[d++]=e,m[d++]=e+2,m[d++]=e+3,e+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,m,a.STATIC_DRAW);this.Fl=this.jg=this.Xd=0;this.Ma=[];d=this.ua?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}": +"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";m=this.Bg({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},d,"");this.Ma.push(m);m=this.Bg({src:"uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"}, +"attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}","");this.Ma.push(m);m=this.Bg({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},d,"");this.Ma.push(m);m=this.Bg({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"}, +d,"");this.Ma.push(m);for(var f in ac)ac.hasOwnProperty(f)&&this.Ma.push(this.Bg(ac[f],d,f));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.ee=[];this.zd=0;this.Ab=!1;this.gn=this.gh=-1;this.Hf=null;this.Ek=a.createFramebuffer();this.si=this.uj=null;this.Um=!1;this.ua&&(this.si=a.createRenderbuffer());this.Ge=Wb([0,0,0]);this.Co=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048"===b.name&&a.vertexAttribPointer(b.Ac,4,a.FLOAT,!1,0,0));if(0"!==b.name&&a.vertexAttribPointer(b.Ac,this.ua?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Sh[this.Ad]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Ij.subarray(0,this.jg));b&&0<=b.ye&&""!==b.name&&a.vertexAttribPointer(b.ye,2, +a.FLOAT,!1,0,0)}for(var c,a=0,b=this.zd;ac||0>e)){var f=this.hc();f.type=7;f.Ib=1;f.S||(f.S=Xb());f.S[0]=a;f.S[1]=b;f.S[2]=c;f.S[3]=e;this.Ab=!1}};c.prototype.ip=function(a){if(this.ua&&(a=!!a,this.Yg!==a)){var b=this.hc();b.type=14;b.Ib=a?1:0;this.Ab=!1;this.Yg=a;this.uj=null;this.Yg?this.Wb(2):this.Wb(0)}};c.prototype.hp=function(a){if(this.ua){var b=this.hc();b.type=13;b.Ib=a?1:0;this.Ab=!1}};c.prototype.sn=function(){Yb(this.jl,k);this.Ec();this.sc();var a=this.width/2,b=this.height/2;this.Ih(-a,b,a,b,a,-b,-a,-b);Yb(k, +this.qc);this.sc()};c.prototype.gp=function(a,b,c){this.Wb(3);var e=this.hc();e.type=12;e.S||(e.S=Xb());e.S[0]=a;e.S[1]=b;e.S[2]=c;e.S[3]=1;this.Ab=!1};c.prototype.lu=function(){this.Wb(0)};c.prototype.bu=function(){this.Wb(2)};c.prototype.Xt=function(){this.le();this.H.flush()};var t=[],b={};c.prototype.mr=function(){U(t);b={}};c.prototype.aj=function(a,d,c,e){d=!!d;c=!!c;var f=a.src+","+d+","+c+(d?",undefined":""),r=null;if("undefined"!==typeof a.src&&b.hasOwnProperty(f))return r=b[f],r.hi++,r; +this.le();var l=this.H,k=ga(a.width)&&ga(a.height),r=l.createTexture();l.bindTexture(l.TEXTURE_2D,r);l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var h=l.RGBA,n=l.RGBA,g=l.UNSIGNED_BYTE;if(e&&!this.qe)switch(e){case 1:n=h=l.RGB;break;case 2:g=l.UNSIGNED_SHORT_4_4_4_4;break;case 3:g=l.UNSIGNED_SHORT_5_5_5_1;break;case 4:n=h=l.RGB,g=l.UNSIGNED_SHORT_5_6_5}if(!k&&d){e=document.createElement("canvas");e.width=ha(a.width);e.height=ha(a.height);var q=e.getContext("2d");q.webkitImageSmoothingEnabled= +c;q.mozImageSmoothingEnabled=c;q.msImageSmoothingEnabled=c;q.imageSmoothingEnabled=c;q.drawImage(a,0,0,a.width,a.height,0,0,e.width,e.height);l.texImage2D(l.TEXTURE_2D,0,h,n,g,e)}else l.texImage2D(l.TEXTURE_2D,0,h,n,g,a);d?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.REPEAT),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.REPEAT)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.CLAMP_TO_EDGE),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.CLAMP_TO_EDGE));c?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER, +l.LINEAR),k&&this.kn?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR_MIPMAP_LINEAR),l.generateMipmap(l.TEXTURE_2D)):l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.NEAREST),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.NEAREST));l.bindTexture(l.TEXTURE_2D,null);this.ue=null;r.Le=a.width;r.Ke=a.height;r.hi=1;r.Ym=f;t.push(r);return b[f]=r};c.prototype.nc=function(a,b,c,e){this.le();var f=this.H;this.qe&&(e=!1);var r= +f.createTexture();f.bindTexture(f.TEXTURE_2D,r);f.texImage2D(f.TEXTURE_2D,0,f.RGBA,a,b,0,f.RGBA,e?f.UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_BYTE,null);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,c?f.LINEAR:f.NEAREST);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,c?f.LINEAR:f.NEAREST);f.bindTexture(f.TEXTURE_2D,null);this.ue=null;r.Le=a;r.Ke=b;t.push(r);return r};c.prototype.wu= +function(a,b,c){this.le();var e=this.H;this.qe&&(c=!1);e.bindTexture(e.TEXTURE_2D,b);e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,c?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,a)}catch(f){console&&console.error&&console.error("Error updating WebGL texture: ",f)}e.bindTexture(e.TEXTURE_2D,null);this.ue=null};c.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.hi&&1=e?a[3]:256>=e?a[2]:512>=e?a[1]:a[0]}function n(){try{return!!window.indexedDB}catch(a){return!1}}function h(a){a.target.result.createObjectStore("saves", +{keyPath:"slot"})}function k(a,e,g,f){try{var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=h;b.onerror=f;b.onsuccess=function(b){b=b.target.result;b.onerror=f;b.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:e}).onsuccess=g}}catch(l){f(l)}}function t(a,e,g){try{var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=h;f.onerror=g;f.onsuccess=function(f){f=f.target.result;f.onerror=g;var b=f.transaction(["saves"]).objectStore("saves").get(a);b.onsuccess=function(){b.result? +e(b.result.data):e(null)}}}catch(b){g(b)}}function b(){w("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1l?(l*=e,5===c?(d=l*g/this.Za, +1d&&(d=1/Math.ceil(1/d)),l=this.Za*d/g,d=this.Ya*d/g,f=(a-l)/2,b=(e-d)/2,a=l,e=d):(f=(a-l)/2,a=l)):(d=a/l,5===c?(d=d*g/this.Ya,1d&&(d=1/Math.ceil(1/d)),l=this.Za*d/g,d=this.Ya*d/g,f=(a-l)/2,b=(e-d)/2,a=l):b=(e-d)/2,e=d),q&&!this.re&&(b=f=0)):this.re&&this.$g&&0===this.tn&&(f=Math.floor((a-this.Za)/2),b=Math.floor((e-this.Ya)/2),a=this.Za,e=this.Ya),2>c&&(this.vg=g),this.oi=Math.round(a),this.Dg=Math.round(e),this.width=Math.round(a*g),this.height=Math.round(e* +g),this.ma=!0,this.Rp?(this.N=this.width,this.M=this.height,this.oc=!0):this.widthl&&(this.M=this.N/c)):3===c&&(l=this.Za/this.Ya,c=this.ih/this.hh,c>l?this.N=this.M*c:c=c)c=5E4;a+=c;d.src&&(d.complete|| +d.loaded)&&!d.Xm?e+=c:b=!1}b&&this.Vt&&this.wg&&(r||(this.wg.Ev(),r=!0),g=this.wg.zv(),e+=g,gthis.xe&&(this.Sc||500<=f&&this.io!=this.$c)){a.clearRect(0,0,b,c);var f=b/2,c=c/2,b=0===this.xe&&this.we.fj.complete, +r=40*q,k=0,h=80*q,n;if(b){var u=this.we.fj,h=u.width*q;n=u.height*q;r=h/2;k=n/2;a.drawImage(u,O(f-r),O(c-k),h,n)}1>=this.xe?(f=O(f-r)+.5,c=O(c+(k+(b?12*q:0)))+.5,a.fillStyle=e?"red":"DodgerBlue",a.fillRect(f,c,Math.floor(h*this.$c),6*q),a.strokeStyle="black",a.strokeRect(f,c,h,6*q),a.strokeStyle="white",a.strokeRect(f-1*q,c-1*q,h+2*q,8*q)):2===this.xe&&(a.font=this.Tc?"12pt ArialMT":"12pt Arial",a.fillStyle=e?"#f00":"#999",a.Fv="middle",q=Math.round(100*this.$c)+"%",b=a.measureText?a.measureText(q): +null,a.fillText(q,f-(b?b.width:0)/2,c));this.io=this.$c}else if(4===this.xe){this.Pr(a);d?d(function(){g.go()}):setTimeout(function(){g.go()},16);return}}setTimeout(function(){g.go()},this.Sc?10:100)}}};var B=-1,A="undefined"===typeof cr_is_preview?200:0,z=!0,g=!1,q=0,u=0,T="undefined"===typeof cr_is_preview?3E3:0,R=null,P=null,F=0;c.prototype.Pr=function(a){if(!l){for(var f=Math.ceil(this.width),b=Math.ceil(this.height),d=this.we.fj,c=this.we.Ut,r=this.we.xu,k=0;4>k;++k)if(!d[k].complete||!c[k].complete|| +!r[k].complete)return;0===F&&(B=Date.now());var k=Date.now(),h=!1,n=a,m,t;z||g?(a.clearRect(0,0,f,b),R&&R.width===f&&R.height===b||(R=document.createElement("canvas"),R.width=f,R.height=b,P=R.getContext("2d")),n=P,h=!0,z&&1===F&&(B=Date.now())):a.globalAlpha=1;n.fillStyle="#333333";n.fillRect(0,0,f,b);256=T&&!g&&1<=this.$c&&(g=!0,u=k);if(g&&k-u>=300+A||"undefined"!==typeof cr_is_preview&&1<=this.$c&&500>Date.now()-B)l=!0,g=z=!1,this.we=P=R=null;++F}};c.prototype.ot=function(){this.lb&&(this.canvas.parentNode.removeChild(this.lb),this.lb=this.Dl=null);this.Fj=Date.now();this.kf=Pa();var a,e,g;if(this.xm)for(a=0,e=this.F.length;aa||2===this.$b&&ee&&(e=0),this.ke=e/1E3,.51/this.Fo&&(this.ke=1/this.Fo));this.Si=a;this.If=this.ke*this.lg;this.Tb.add(this.If);this.Tj.add(this.ke);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.$g)&&!this.Hd;2<=this.$b||a&&0e||2=== +f&&ga++;)this.jn(this.Ne);a=0;for(e=this.Cd.length;ae.ri.length&&e.ri.push(a)};c.prototype.cn=function(a,e,g,f){if(a.O){var b=O(Math.random()*a.qf.length); +return this.cn(a.qf[b],e,g,f)}return a.yc?this.ie(a.yc,e,!1,g,f,!1):null};var H=[];c.prototype.ie=function(a,e,g,f,b,l){var d,c,q,r;if(!a)return null;var k=this.F[a[1]],h=k.Ca.te;if(this.Tf&&h&&!k.al||h&&!this.G&&11===a[0][11])return null;var n=e;h||(e=null);var m;k.ri.length?(m=k.ri.pop(),m.ic=!0,k.Ca.Y.call(m,k)):(m=new k.Ca.Y(k),m.ic=!1);!g||l||this.Md.hasOwnProperty(a[2].toString())?m.uid=this.yh++:m.uid=a[2];this.Md[m.uid.toString()]=m;m.Zo=this.Io++;m.Ye=k.k.length;d=0;for(c=this.Pc.length;d< +c;++d)this.Pc[d].type===k&&m.Ye++;m.Qg=tb;m.toString=ub;q=a[3];if(m.ic)Oa(m.J);else{m.J={};if("undefined"!==typeof cr_is_preview)for(m.Jn=[],m.Jn.length=q.length,d=0,c=q.length;da&&(a=0);a>=this.ja.R.length&&(a=this.ja.R.length-1);return this.ja.R[a]};c.prototype.nk=function(a){var e,g;e=0;for(g=a.length;e=b;)d=1/b,b*=2,a.x+=e* +d*(l?1:-1),a.y+=g*d*(l?1:-1),a.C(),this.Jb(a,f)?d=l=!0:(d=l=!1,c=a.x,q=a.y);d&&(a.x=c,a.y=q,a.C())};c.prototype.Kl=function(a,e){var g=ea(e)?100:e,f=0,b=a.x,d=a.y,l=0,c=0,q=0,r=this.Da(a);if(!r)return!0;for(;f<=g;){switch(l){case 0:c=0;q=-1;f++;break;case 1:c=1;q=-1;break;case 2:c=1;q=0;break;case 3:q=c=1;break;case 4:c=0;q=1;break;case 5:c=-1;q=1;break;case 6:c=-1;q=0;break;case 7:q=c=-1}l=(l+1)%8;a.x=O(b+c*f);a.y=O(d+q*f);a.C();if(!this.Jb(a,r)&&(r=this.Da(a),!r))return!0}a.x=b;a.y=d;a.C();return!1}; +c.prototype.td=function(a,e){a.mc&&e.mc&&this.Kh.push([a,e])};c.prototype.kr=function(a,e){var g,f,b;g=0;for(f=this.Kh.length;gr;r++)if(m=l-r*n,a.x=e+Math.cos(m)*d,a.y=g+Math.sin(m)*d,a.C(),!this.Jb(a,q)&&(q=this.Da(a),!q)){k=m;break}36===r&&(k=W(l+na));q=c;for(r=1;36>r;r++)if(m= +l+r*n,a.x=e+Math.cos(m)*d,a.y=g+Math.sin(m)*d,a.C(),!this.Jb(a,q)&&(q=this.Da(a),!q)){h=m;break}36===r&&(h=W(l+na));a.x=f;a.y=b;a.C();if(h===k)return h;a=Ia(h,k)/2;a=Ka(h,k)?W(k+a+na):W(h+a);k=Math.cos(l);l=Math.sin(l);h=Math.cos(a);a=Math.sin(a);e=k*h+l*a;return Ha(0,0,k-2*e*h,l-2*e*a)};var ka=-1;c.prototype.trigger=function(a,e,g){if(!this.ja)return!1;var f=this.ja.Se;if(!f)return!1;var b=!1,d,l,c;ka++;var q=f.uk;l=0;for(c=q.length;l=this.yl.length&&this.yl.push([])};c.prototype.St=function(){this.ej--};c.prototype.wn=function(){return this.yl[this.ej]};c.prototype.sj=function(a){this.vi++;this.vi>=this.Ak.length&&this.Ak.push(new Fb);var e=this.kb(); +e.reset(a);return e};c.prototype.pj=function(){this.vi--};c.prototype.kb=function(){return this.Ak[this.vi]};c.prototype.xn=function(a,e){for(var g,f,b,d,l,c;e;){g=0;for(f=e.Gc.length;gd||d>=a.Va.length||(a.Va[d]=b[f]));if(l.te){d=e.w;a.u.X!==d.l&&(b=a.u,a.u=this.ja.Hi(d.l),a.u?(b.bg(a,!0),a.u.ug(a,!0),a.C(),a.u.Lh(0)):(a.u=b,g||this.Df(a))); +a.x=d.x;a.y=d.y;a.width=d.w;a.height=d.h;a.fd=d.zi;a.n=d.hasOwnProperty("a")?d.a:0;a.opacity=d.hasOwnProperty("o")?d.o:1;a.Rb=d.hasOwnProperty("hX")?d.hX:.5;a.Sb=d.hasOwnProperty("hY")?d.hY:.5;a.visible=d.hasOwnProperty("v")?d.v:!0;a.mc=d.hasOwnProperty("ce")?d.ce:!0;a.xh=d.hasOwnProperty("mts")?d.mts:-1;a.qb=d.hasOwnProperty("bm")?d.bm:0;a.zg=Ya(a.qb);this.H&&$a(a,a.qb,this.H);a.C();if(d.hasOwnProperty("fx"))for(g=0,b=d.fx.length;gl||(a.ae[l]=d.fx[g].active,a.Ja[l]= +d.fx[g].params);a.ed()}if(c=e.behs)for(f in c)c.hasOwnProperty(f)&&(g=this.Ks(a,parseInt(f,10)),0>g||a.L[g].gb(c[f]));e.data&&a.gb(e.data)};c.prototype.pn=function(a,e,g){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(e,g)},g)};c.prototype.Ds=function(a,e){this.pn("data.js",function(g){var f=new FileReader;f.onload=function(e){a(e.target.result)};f.onerror=e;f.readAsText(g)},e)};c.prototype.Cs=function(a,e,g){this.pn(a,function(a){var g=new FileReader; +g.onload=function(a){e(a.target.result)};g.readAsArrayBuffer(a)},g)};c.prototype.Es=function(a,e,g){this.Cs(a,function(a){a=URL.createObjectURL(new Blob([a]));e(a)},g)};c.prototype.kp=function(a,e){this.dl?this.Es(e,function(e){a.src=e},function(a){alert("Failed to load image: "+a)}):a.src=e};Hb=function(a){return new c(document.getElementById(a))};Ib=function(a,e){return new c({dc:!0,width:a,height:e})};window.cr_createRuntime=Hb;window.cr_createDCRuntime=Ib;window.createCocoonJSRuntime=function(){window.c2cocoonjs= +!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.ek=!0;document.body.appendChild(a);a=new c(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new c(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight); +return a}})();window.cr_getC2Runtime=function(){var c=document.getElementById("c2canvas");return c?c.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(c,p){var n=window.cr_getC2Runtime();n&&n.rr(c,p)};window.cr_sizeCanvas=function(c,p){if(0!==c&&0!==p){var n=window.cr_getC2Runtime();n&&n.setSize(c,p)}};window.cr_setSuspended=function(c){var p=window.cr_getC2Runtime();p&&p.setSuspended(c)}; +(function(){function c(a,f){this.b=a;this.Se=null;this.scrollX=this.b.Za/2;this.scrollY=this.b.Ya/2;this.scale=1;this.n=0;this.Mf=!0;this.name=f[0];this.width=f[1];this.height=f[2];this.Gp=f[3];this.pp=f[4];this.X=f[5];var b=f[6],d,c;this.R=[];this.Vg=[];d=0;for(c=b.length;d=this.R.length&&(g=this.R.length-1);k.u=this.R[g];-1===k.u.k.indexOf(k)&&k.u.k.push(k);k.u.Cf=!0}if(!b)for(a=0,d=this.R.length;ad?k.siblings.push(h.k[d]):h.yc&&(m=this.b.ie(h.yc,k.u,!0,k.x,k.y,!0),this.b.ob(),h.Oj(),k.siblings.push(m),t.push(m)));a=0;for(d=this.$e.length;athis.width-f&&(a=this.width-f);athis.height-f&&(a=this.height-f);aG&&(G=0);0>J&&(J=0);N>D&&(N=D);S>M&&(S=M);0>Z&&(Z=0);0>E&&(E=0);wa>D&&(wa=D);xa>M&&(xa=M);v.left=G/D;v.top=1-J/M;v.right=N/D;v.bottom=1-S/M}else v.left=y.left=0,v.top=y.top=0,v.right=y.right=1,v.bottom=y.bottom=1;ma=b&&(a.Fh(c[0].Ta)||0!==C|| +0!==ma||1!==b.opacity||b.type.Ca.Go)||f&&!b&&1!==f.opacity;a.fp();if(ma){p[K]||(p[K]=a.nc(D,M,this.b.V));if(p[K].Le!==D||p[K].Ke!==M)a.deleteTexture(p[K]),p[K]=a.nc(D,M,this.b.V);a.Wb(0);a.Fc(p[K]);I=xa-E;a.clearRect(Z,M-E-I,wa-Z,I);b?b.Pb(a):(a.jc(this.b.Wa),a.wf(f.opacity),a.Ec(),a.translate(-ka,-x),a.sc(),a.sd(G,S,N,S,N,J,G,J,v));y.left=y.top=0;y.right=y.bottom=1;b&&(H=v.top,v.top=v.bottom,v.bottom=H);K=1;ra=0}a.wf(1);C=c.length-1;var Za=a.Il(c[C].Ta)||!f&&!b&&!this.b.oc,Ca=0;t=0;for(F=c.length;t< +F;t++){p[K]||(p[K]=a.nc(D,M,this.b.V));if(p[K].Le!==D||p[K].Ke!==M)a.deleteTexture(p[K]),p[K]=a.nc(D,M,this.b.V);a.Wb(c[t].Ta);Ca=c[t].index;a.qj(c[t].Ta)&&(this.b.ma=!0);0!=t||ma?(a.eg(d,1/D,1/M,y.left,y.top,y.right,y.bottom,k,m,g,q,(g+h)/2,(q+n)/2,this.b.Tb.ca,b?b.Ja[Ca]:f?f.Ja[Ca]:this.Ja[Ca]),a.jc(null),t!==C||Za?(a.Fc(p[K]),I=xa-E,H=M-E-I,a.clearRect(Z,H,wa-Z,I)):(b?a.Ee(b.Cb,b.zb):f&&a.Ee(f.Cb,f.zb),a.Fc(d)),a.jc(p[ra]),a.Ec(),a.translate(-ka,-x),a.sc(),a.sd(G,S,N,S,N,J,G,J,v),t!==C||Za||a.jc(null)): +(a.Fc(p[K]),I=xa-E,H=M-E-I,a.clearRect(Z,H,wa-Z,I),b?(a.eg(d,1/b.width,1/b.height,y.left,y.top,y.right,y.bottom,k,m,g,q,(g+h)/2,(q+n)/2,this.b.Tb.ca,b.Ja[Ca]),b.Pb(a)):(a.eg(d,1/D,1/M,0,0,1,1,k,m,g,q,(g+h)/2,(q+n)/2,this.b.Tb.ca,f?f.Ja[Ca]:this.Ja[Ca]),a.jc(f?this.b.Wa:this.b.Pa),a.Ec(),a.translate(-ka,-x),a.sc(),a.sd(G,S,N,S,N,J,G,J,v)),y.left=y.top=0,y.right=y.bottom=1,b&&!Za&&(H=S,S=J,J=H));K=0===K?1:0;ra=0===K?1:0}Za&&(a.Wb(0),b?a.Ee(b.Cb,b.zb):f?a.Ee(f.Cb,f.zb):this.b.oc||(a.xf(this.b.width, +this.b.height),ka=this.b.width/2,x=this.b.height/2,J=G=0,N=this.b.width,S=this.b.height),a.Fc(d),a.jc(p[ra]),a.Ec(),a.translate(-ka,-x),a.sc(),b&&1===c.length&&!ma?a.sd(G,J,N,J,N,S,G,S,v):a.sd(G,S,N,S,N,J,G,J,v),a.jc(null))};c.prototype.Hi=function(a){var b,d;b=0;for(d=this.R.length;bd||(b&&this.tc&&a.Vb&&a.Vb.right>=a.Vb.left&&(a.ta(),this.mb.update(a,a.Vb,null),a.Vb.set(0,0,-1,-1)),d===this.k.length-1?this.k.pop():(ta(this.k,d),this.Lh(d)),this.ad=!0)};n.prototype.ug=function(a, +b){a.fd=this.k.length;this.k.push(a);b&&this.tc&&a.Vb&&a.C();this.ad=!0};n.prototype.Wt=function(a){this.k.unshift(a);this.Lh(0)};n.prototype.Lt=function(a,b,d){var c=a.md();b=b.md();ta(this.k,c);cthis.Fa||d.top>this.Ea||(b.globalCompositeOperation=a.zg,a.Qc(b))}};n.prototype.Pj=function(){this.Bd=!0;var a= +this.ge(!0),b=this.ge(!1);this.Bd=!1;this.b.Yc&&(a=Math.round(a),b=Math.round(b));this.vj(a,b,null)};n.prototype.vj=function(a,b,d){var c=this.cc();this.wa=a;this.xa=b;this.Fa=a+1/c*this.b.N;this.Ea=b+1/c*this.b.M;a=this.ac();0!==a&&(d&&(d.translate(this.b.N/2,this.b.M/2),d.rotate(-a),d.translate(this.b.N/-2,this.b.M/-2)),this.Vd.set(this.wa,this.xa,this.Fa,this.Ea),this.Vd.offset((this.wa+this.Fa)/-2,(this.xa+this.Ea)/-2),this.Bp.np(this.Vd,a),this.Bp.Wm(this.Vd),this.Vd.offset((this.wa+this.Fa)/ +2,(this.xa+this.Ea)/2),this.wa=this.Vd.left,this.xa=this.Vd.top,this.Fa=this.Vd.right,this.Ea=this.Vd.bottom)};n.prototype.Pe=function(a){if(this.ud=this.Di){this.b.Wa||(this.b.Wa=a.nc(this.b.N,this.b.M,this.b.V));if(this.b.Wa.Le!==this.b.N||this.b.Wa.Ke!==this.b.M)a.deleteTexture(this.b.Wa),this.b.Wa=a.nc(this.b.N,this.b.M,this.b.V);a.Fc(this.b.Wa)}this.Bd=!0;var b=this.ge(!0),d=this.ge(!1);this.Bd=!1;this.b.Yc&&(b=Math.round(b),d=Math.round(d));this.vj(b,d,null);b=this.cc();a.Ec();a.scale(b,b); +a.wj(-this.ac());a.translate((this.wa+this.Fa)/-2,(this.xa+this.Ea)/-2);a.sc();this.tc?(this.ib.left=this.mb.Kb(this.wa),this.ib.top=this.mb.Lb(this.xa),this.ib.right=this.mb.Kb(this.Fa),this.ib.bottom=this.mb.Lb(this.Ea),this.ad||!this.ib.Hg(this.Xf)?(k(this.Kd),b=this.Nk(),this.ad=!1,this.Xf.Ag(this.ib)):b=this.Kd):b=this.k;for(var c,m=null,d=b.length-1;0<=d;--d)c=b[d],c!==m&&(this.Nr(b[d],a),m=c);this.tc&&(this.Kd=b);this.dd||(this.ok=this.b.Qe++,a.zj(this.ok),a.gp(1,1,1),a.sn(),a.bu())};n.prototype.Pb= +function(a){var b=0,d=0;if(this.ud=this.Di||1!==this.opacity||0this.Fa||d.top>this.Ea||(b.zj(a.Qe),a.Op?this.Or(a,b):(b.Wb(0),b.Ee(a.Cb,a.zb),a.Pb(b)))}};n.prototype.Nr=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ta();var d=a.za;d.rightthis.Fa||d.top>this.Ea||(a.Qe=this.b.Qe++,0===a.qb&&1===a.opacity&&a.Qd&& +a.Pe&&(b.zj(a.Qe),a.Pe(b)))}};n.prototype.Or=function(a,b){var d=a.da[0].Ta,c=a.da[0].index,m=this.cc();if(1!==a.da.length||b.Il(d)||b.Yt(d)||(a.n||a.u.ac())&&b.Fh(d)||1!==a.opacity||a.type.Ca.Go)this.Xa.Pl(b,this,a,this.ud?this.b.Wa:this.Xa.Og()),b.Ec(),b.scale(m,m),b.wj(-this.ac()),b.translate((this.wa+this.Fa)/-2,(this.xa+this.Ea)/-2),b.sc();else{b.Wb(d);b.Ee(a.Cb,a.zb);b.qj(d)&&(this.b.ma=!0);var k=0,h=0,g=0,q=0;b.Fh(d)&&(d=a.za,k=this.na(d.left,d.top,!0,!0),h=this.na(d.left,d.top,!1,!0),g=this.na(d.right, +d.bottom,!0,!0),d=this.na(d.right,d.bottom,!1,!0),k=k/windowWidth,h=1-h/windowHeight,g=g/windowWidth,q=1-d/windowHeight);b.eg(this.ud?this.b.Wa:this.Xa.Og(),1/a.width,1/a.height,k,h,g,q,m,this.ac(),this.wa,this.xa,(this.wa+this.Fa)/2,(this.xa+this.Ea)/2,this.b.Tb.ca,a.Ja[c]);a.Pb(b)}};n.prototype.ge=function(a){var b=0,d=0,c=this.b.devicePixelRatio;this.b.df&&(b*=c,d*=c);var c=this.b.Qo,m=this.b.Ro,c=(this.Xa.scrollX-c)*this.Nd+c,m=(this.Xa.scrollY-m)*this.Od+m,k,h,g=1/this.cc(!1);k=c-this.b.N*g/ +2;h=m-this.b.M*g/2;k+=b*g;h+=d*g;d=this.ac();0!==d&&(k-=c,h-=m,b=Math.cos(d),d=Math.sin(d),g=k*b-h*d,h=h*b+k*d,k=g+c,h+=m);return a?k:h};n.prototype.na=function(a,b,d,c){var k=this.b.Qo,m=this.b.Ro,h=(this.Xa.scrollX-k)*this.Nd+k,g=(this.Xa.scrollY-m)*this.Od+m,m=h,k=g,q=this.ac();if(0!==q){a-=h;b-=g;var n=Math.cos(-q),q=Math.sin(-q),p=a*n-b*q;b=b*n+a*q;a=p+h;b+=g}h=1/this.cc(!c);c?(m-=this.b.N*h/2,k-=this.b.M*h/2):(m-=this.b.width*h/2,k-=this.b.height*h/2);m=(a-m)/h;k=(b-k)/h;a=this.b.devicePixelRatio; +this.b.df&&!c&&(m/=a,k/=a);return d?m:k};n.prototype.Sa=function(){var a,b,d,c={s:this.scale,a:this.n,vl:this.wa,vt:this.xa,vr:this.Fa,vb:this.Ea,v:this.visible,bc:this.Nc,t:this.dd,px:this.Nd,py:this.Od,o:this.opacity,zr:this.$h,fx:[],cg:this.Cg,instances:[]};a=0;for(b=this.Q.length;aa[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2=B.length&&(B.length=a.length+1);B[a.length]||(B[a.length]=[]);f=B[a.length];b=0;for(d=f.length;b=b.length&&(b.length=this.of+1),b[this.of]=a):this.data=a};f.prototype.Pg=function(){var a=this.b.wn();return!this.parent||this.bh||!a||this.Qi?this.data:this.of>=a.length||"undefined"===typeof a[this.of]?this.Ki:a[this.of]};f.prototype.Ra=function(){!this.parent||this.bh||this.Qi||this.yf(this.Ki)};Gb=f;r.prototype.toString=function(){return"include:"+this.Ug.toString()};r.prototype.Na=function(){this.Ug=this.b.Bk[this.wt];this.sheet.Fn.add(this); +this.ra=n(this.ra);for(var a=this.parent;a;)a.group&&a.ni.push(this),a=a.parent;this.Ip()};r.prototype.Ra=function(){this.parent&&this.b.Hh(this.b.F);this.Ug.Tk||this.Ug.Ra(!0);this.parent&&this.b.tf(this.b.F)};r.prototype.Ip=function(){for(var a=this.parent;a;){if(a.group&&!a.Rg){this.pb=!1;return}a=a.parent}this.pb=!0};Qb=r;l.prototype.reset=function(a){this.Ob=a;this.Mb=this.cb=0;U(this.vp);this.yk=this.jf=!1};Fb=l})(); +(function(){function c(b,a){this.Cc=b;this.b=b.b;this.type=a[0];this.get=[this.ls,this.es,this.xs,this.As,this.Ur,this.ys,this.rs,this.bs,this.qs,this.ws,this.Vr,this.vs,this.cs,this.ts,this.ns,this.os,this.gs,this.hs,this.as,this.zs,this.us,this.ks,this.$r,this.ds][this.type];var d=null;this.Ld=this.T=this.La=this.jb=this.Jj=this.second=this.first=this.value=null;this.Oc=-1;this.Rc=null;this.Pp=-1;this.Te=this.Xh=null;this.dg=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first= +new Ob(b,a[1]);break;case 18:this.first=new Ob(b,a[1]);this.second=new Ob(b,a[2]);this.Jj=new Ob(b,a[3]);break;case 19:this.jb=this.b.$d(a[1]);this.jb!==X.prototype.Ka.random&&this.jb!==X.prototype.Ka.lr||this.Cc.lp();this.La=[];this.T=[];3===a.length?(d=a[2],this.La.length=d.length+1):this.La.length=1;break;case 20:this.Ld=this.b.F[a[1]];this.Oc=-1;this.jb=this.b.$d(a[2]);this.dg=a[3];Tb.Function&&this.jb===Tb.Function.prototype.Ka.Eu&&this.Cc.lp();a[4]?this.Rc=new Ob(b,a[4]):this.Rc=null;this.La= +[];this.T=[];6===a.length?(d=a[5],this.La.length=d.length+1):this.La.length=1;break;case 21:this.Ld=this.b.F[a[1]];this.dg=a[2];a[3]?this.Rc=new Ob(b,a[3]):this.Rc=null;this.Pp=a[4];break;case 22:this.Ld=this.b.F[a[1]];this.Ld.Gi(a[2]);this.Oc=this.Ld.Jk(a[2]);this.jb=this.b.$d(a[3]);this.dg=a[4];a[5]?this.Rc=new Ob(b,a[5]):this.Rc=null;this.La=[];this.T=[];7===a.length?(d=a[6],this.La.length=d.length+1):this.La.length=1;break;case 23:this.Xh=a[1],this.Te=null}this.Cc.Kt(this.Ld);4<=this.type&&17>= +this.type&&(this.first=new Ob(b,a[1]),this.second=new Ob(b,a[2]));if(d){var c,e;c=0;for(e=d.length;c=a||k<=-a)k%=a;0>k&&(k+=a);f.apply(h[k],d)};c.prototype.$r=function(b){var a=this.Ld,d=this.La,c=this.T,e=this.Rc,f=this.Oc,k=this.jb,l=this.Cc.Td,h=a.aa(),A=h.Qb();if(!A.length)if(h.U.length)A=h.U;else{this.dg?b.kc(""):b.qa(0);return}d[0]=b;b.sf=a;b=p();n(c,d,b);e&&(e.get(b),b.fb()&&(l=b.data,A=a.k));--t;c=A.length;if(l>=c||l<=-c)l%=c;0>l&&(l+=c);l=A[l];A=0;a.O&&(A=l.type.Lf[a.Dd]);k.apply(l.L[f+A],d)};c.prototype.ks=function(b){var a=this.Rc,d=this.Ld,c=this.Pp,e=this.Cc.Td, +f=d.aa(),k=f.Qb();if(!k.length)if(f.U.length)k=f.U;else{this.dg?b.kc(""):b.qa(0);return}if(a){f=p();a.get(f);if(f.fb()){e=f.data;k=d.k;0!==k.length&&(e%=k.length,0>e&&(e+=k.length));e=d.Mk(e);d=e.Va[c];L(d)?b.kc(d):b.W(d);--t;return}--t}a=k.length;if(e>=a||e<=-a)e%=a;0>e&&(e+=a);e=k[e];k=0;d.O&&(k=e.type.wi[d.Dd]);d=e.Va[c+k];L(d)?b.kc(d):b.W(d)};c.prototype.ls=function(b){b.type=Rb.Ff;b.data=this.value};c.prototype.es=function(b){b.type=Rb.Ef;b.data=this.value};c.prototype.xs=function(b){b.type= +Rb.String;b.data=this.value};c.prototype.As=function(b){this.first.get(b);b.fb()&&(b.data=-b.data)};c.prototype.Ur=function(b){this.first.get(b);var a=p();this.second.get(a);b.fb()&&a.fb()&&(b.data+=a.data,a.Qf()&&b.Zf());--t};c.prototype.ys=function(b){this.first.get(b);var a=p();this.second.get(a);b.fb()&&a.fb()&&(b.data-=a.data,a.Qf()&&b.Zf());--t};c.prototype.rs=function(b){this.first.get(b);var a=p();this.second.get(a);b.fb()&&a.fb()&&(b.data*=a.data,a.Qf()&&b.Zf());--t};c.prototype.bs=function(b){this.first.get(b); +var a=p();this.second.get(a);b.fb()&&a.fb()&&(b.data/=a.data,b.Zf());--t};c.prototype.qs=function(b){this.first.get(b);var a=p();this.second.get(a);b.fb()&&a.fb()&&(b.data%=a.data,a.Qf()&&b.Zf());--t};c.prototype.ws=function(b){this.first.get(b);var a=p();this.second.get(a);b.fb()&&a.fb()&&(b.data=Math.pow(b.data,a.data),a.Qf()&&b.Zf());--t};c.prototype.Vr=function(b){this.first.get(b);var a=p();this.second.get(a);a.Sf()||b.Sf()?this.Xr(b,a):this.Wr(b,a);--t};c.prototype.Xr=function(b,a){b.Sf()&& +a.Sf()?this.Zr(b,a):this.Yr(b,a)};c.prototype.Zr=function(b,a){b.data+=a.data};c.prototype.Yr=function(b,a){b.Sf()?b.data+=(Math.round(1E10*a.data)/1E10).toString():b.kc(b.data.toString()+a.data)};c.prototype.Wr=function(b,a){b.qa(b.data&&a.data?1:0)};c.prototype.vs=function(b){this.first.get(b);var a=p();this.second.get(a);b.fb()&&a.fb()&&(b.data||a.data?b.qa(1):b.qa(0));--t};c.prototype.as=function(b){this.first.get(b);b.data?this.second.get(b):this.Jj.get(b)};c.prototype.cs=function(b){this.first.get(b); +var a=p();this.second.get(a);b.qa(b.data===a.data?1:0);--t};c.prototype.ts=function(b){this.first.get(b);var a=p();this.second.get(a);b.qa(b.data!==a.data?1:0);--t};c.prototype.ns=function(b){this.first.get(b);var a=p();this.second.get(a);b.qa(b.dataa.data?1:0);--t};c.prototype.hs=function(b){this.first.get(b); +var a=p();this.second.get(a);b.qa(b.data>=a.data?1:0);--t};c.prototype.ds=function(b){var a=this.Te.Pg();fa(a)?b.W(a):b.kc(a)};Ob=c;h.prototype.Qf=function(){return this.type===Rb.Ef};h.prototype.fb=function(){return this.type===Rb.Ff||this.type===Rb.Ef};h.prototype.Sf=function(){return this.type===Rb.String};h.prototype.Zf=function(){this.Qf()||(this.Sf()&&(this.data=parseFloat(this.data)),this.type=Rb.Ef)};h.prototype.qa=function(b){this.type=Rb.Ff;this.data=Math.floor(b)};h.prototype.W=function(b){this.type= +Rb.Ef;this.data=b};h.prototype.kc=function(b){this.type=Rb.String;this.data=b};h.prototype.mu=function(b){fa(b)?(this.type=Rb.Ef,this.data=b):L(b)?(this.type=Rb.String,this.data=b.toString()):(this.type=Rb.Ff,this.data=0)};Nb=h;Rb={Ff:0,Ef:1,String:2}})();function X(c){this.b=c;this.Yb=[]} +X.prototype.Sa=function(){var c={},p,n,h,k,t,b,a,d;c.waits=[];var m=c.waits,e;p=0;for(n=this.Yb.length;p=d+e)return a.J.Every_lastTime=d+e,c>=a.J.Every_lastTime+.04&&(a.J.Every_lastTime=c),a.J.Every_seconds=b,!0;cb)){var a,d,c,e=this.b.kb(),f;k.length?f=k.pop():f={Hb:{},ra:[]};f.wk=!1;f.time=this.b.Tb.ca+b;f.rp="";f.dm=!1;f.Jf=e.Ob;f.Mb=e.Mb+1;b=0;for(a= +this.b.F.length;be&&(a=e);b.W(a)};n.prototype.If=function(b){b.W(this.b.If)};n.prototype.lg=function(b){b.W(this.b.lg)};n.prototype.time=function(b){b.W(this.b.Tb.ca)};n.prototype.Ic=function(b){b.qa(this.b.Ic)};n.prototype.kj=function(b){b.qa(this.b.kj)};n.prototype.Gk= +function(b){b.qa(this.b.Gk)};n.prototype.n=function(b,a,d,c,e){b.W(Da(Ha(a,d,c,e)))};n.prototype.Gt=function(b){b.qa(this.b.ja.height)};n.prototype.left=function(b,a,d){b.kc(L(a)?a.substr(0,d):"")};n.prototype.right=function(b,a,d){b.kc(L(a)?a.substr(a.length-d):"")};n.prototype.replace=function(b,a,d,c){L(a)&&L(d)&&L(c)?b.kc(a.replace(new RegExp(Ua(d),"gi"),c)):b.kc(L(a)?a:"")};n.prototype.trim=function(b,a){b.kc(L(a)?a.trim():"")};n.prototype.lr=function(b){var a=O(Math.random()*(arguments.length- +1));b.mu(arguments[a+1])};n.prototype.qk=function(b){b.W(this.b.qk/1E3)};n.prototype.bj=function(b){b.W(this.b.bj)};h.Ka=new n;h.eu=function(){var b,a,d,c,e,f,h=this.b.kb();b=0;for(d=this.Yb.length;bthis.b.Tb.ca)continue;h.Ob=c.Jf;h.Mb=c.Mb;h.cb=0;for(a in c.Hb)c.Hb.hasOwnProperty(a)&&(e=this.b.F[parseInt(a,10)].aa(),f=c.Hb[a],e.ea=f.yj,va(e.k,f.Gd),e=f,U(e.Gd),t.push(e));c.Jf.cu();this.b.nk(c.ra);c.wk=!0}a=b=0;for(d=this.Yb.length;b< +d;b++)c=this.Yb[b],this.Yb[a]=c,c.wk?(Oa(c.Hb),U(c.ra),k.push(c)):a++;ua(this.Yb,a)}})(); +(function(){eb=function(c,n){var h=c[1],k=c[3],t=c[4],b=c[5],a=c[6],d=c[7],m=c[8];n.B||(n.B={});n.I||(n.I={});n.Ka||(n.Ka={});var e=n.B,f=n.I,r=n.Ka;k&&(e.Iu=function(a,b){return Sb(this.x,a,b)},e.$p=function(a,b){return Sb(this.y,a,b)},e.Nu=function(){var a=this.u;this.ta();var b=this.za;return!(b.righta.Fa||b.top>a.Ea)},e.Ou=function(){this.ta();var a=this.za,b=this.b.ja;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},e.$u=function(a,b,d){var e=this.aa(), +c=e.Qb();if(!c.length)return!1;var f=c[0],k=f,m=La(f.x,f.y,b,d),h,n,p;h=1;for(n=c.length;hm)m=p,k=f;e.Dh(k);return!0},f.qv=function(a){this.x!==a&&(this.x=a,this.C())},f.rv=function(a){this.y!==a&&(this.y=a,this.C())},f.Lq=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.C()},f.Mq=function(a,b){var d=a.Ws(this);if(d){var e;d.Lg?(e=d.Lg(b,!0),d=d.Lg(b,!1)):(e=d.x,d=d.y);if(this.x!==e||this.y!==d)this.x=e,this.y=d,this.C()}},f.Tu= +function(a){0!==a&&(this.x+=Math.cos(this.n)*a,this.y+=Math.sin(this.n)*a,this.C())},f.Su=function(a,b){0!==b&&(this.x+=Math.cos(V(a))*b,this.y+=Math.sin(V(a))*b,this.C())},r.Zq=function(a){a.W(this.x)},r.$q=function(a){a.W(this.y)},r.If=function(a){a.W(this.b.We(this))});t&&(e.Hu=function(a,b){return Sb(this.width,a,b)},e.Fu=function(a,b){return Sb(this.height,a,b)},f.Om=function(a){this.width!==a&&(this.width=a,this.C())},f.Hq=function(a){this.height!==a&&(this.height=a,this.C())},f.pv=function(a, +b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.C()},r.Wq=function(a){a.W(this.width)},r.gq=function(a){a.W(this.height)},r.Bu=function(a){this.ta();a.W(this.za.left)},r.Du=function(a){this.ta();a.W(this.za.top)},r.Cu=function(a){this.ta();a.W(this.za.right)},r.Au=function(a){this.ta();a.W(this.za.bottom)});b&&(e.Bm=function(a,b){return Ia(this.n,V(b))<=V(a)},e.jq=function(a){return Ka(this.n,V(a))},e.hq=function(a,b){var d=Ga(a),e=Ga(b),c=W(this.n);return Ka(e,d)?Ka(c,d)&&!Ka(c, +e):!(!Ka(c,d)&&Ka(c,e))},f.kv=function(a){a=V(Ea(a));isNaN(a)||this.n===a||(this.n=a,this.C())},f.dv=function(a){0===a||isNaN(a)||(this.n+=V(a),this.n=W(this.n),this.C())},f.gv=function(a){0===a||isNaN(a)||(this.n-=V(a),this.n=W(this.n),this.C())},f.hv=function(a,b){var d=Ja(this.n,V(b),V(a));isNaN(d)||this.n===d||(this.n=d,this.C())},f.jv=function(a,b,d){a=Ja(this.n,Math.atan2(d-this.y,b-this.x),V(a));isNaN(a)||this.n===a||(this.n=a,this.C())},f.Pq=function(a,b){var d=Math.atan2(b-this.y,a-this.x); +isNaN(d)||this.n===d||(this.n=d,this.C())},r.zu=function(a){a.W(Fa(this.n))});h||(e.Yp=function(a,b,d){return Sb(this.Va[a],b,d)},e.iq=function(a){return this.Va[a]},e.av=function(a,b){var d=this.aa(),e=d.Qb();if(!e.length)return!1;var c=e[0],f=c,k=c.Va[b],m,h,n;m=1;for(h=e.length;mk)k=n,f=c;d.Dh(f);return!0},e.Zu=function(a){var b,d,e,c,f;if(this.b.Kg().Mi){f=this.aa();if(f.ea)for(f.ea=!1,U(f.k),U(f.U),e=this.k,b=0,d=e.length;ba?a=0:1c.u.index||e.u.index===c.u.index&&e.md()>c.md())c=e}else if(e.u.indexd)){var e=1===a;this.ae[d]!==e&&(this.ae[d]=e,this.ed(),this.b.ma=!0)}}},f.nv=function(a,b,d){if(this.b.G){var e=this.type.Lk(a);0>e||(a=this.type.Q[e],e=this.Ja[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.G.Zs(a.Ta,b)&&(d/=100),e[b]!==d&&(e[b]=d,a.pb&&(this.b.ma=!0))))}})};xb=function(){this.jk=this.fk=!0;this.type.bi=!0;this.b.ma=!0;var c,n,h=this.gk;c=0;for(n= +h.length;ch;case 5:return c>=h;default:return!1}}})();var ac={};function ec(c){this.b=c} +(function(){function c(){}var p=ec.prototype;p.ia=function(c){this.Ca=c;this.b=c.b};p.ia.prototype.P=function(){};p.Y=function(c){this.type=c;this.b=c.b;this.Wf=Array(256);this.Vh=Array(256);this.Wd=0};var n=p.Y.prototype;n.P=function(){var c=this;this.b.Oa||(jQuery(document).keydown(function(h){c.Ah(h)}),jQuery(document).keyup(function(h){c.Bh(h)}))};var h=[32,33,34,35,36,37,38,39,40,44];n.Ah=function(c){var n=!1;window!=window.top&&-1c;++c)if(this.Wf[c]){this.Wf[c]=!1;this.Wd=c;this.b.trigger(ec.prototype.B.Dm,this);var h=this.b.trigger(ec.prototype.B.Gm,this),b=this.b.trigger(ec.prototype.B.Fm,this);if(h||b)this.Vh[c]=!0}};n.Sa=function(){return{triggerKey:this.Wd}};n.gb=function(c){this.Wd=c.triggerKey};c.prototype.kq=function(c){return this.Wf[c]};c.prototype.Em=function(c){return c===this.Wd};c.prototype.qq=function(){return!0}; +c.prototype.Dm=function(){return!0};c.prototype.Gm=function(c){return c===this.Wd};c.prototype.xq=function(c){return c===this.Wd};c.prototype.Fm=function(c){return c===this.Wd};p.B=new c;p.I=new function(){};p.Ka=new function(){}})();function Y(c){this.b=c} +(function(){function c(){if(0===this.tk.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.hg?b.drawImage(this.fa,this.$f,this.ag,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.fa,0,0,this.width,this.height);this.tk=a.toDataURL("image/png")}return this.tk}function p(){}function n(a){a[0]=0;a[1]=0;a[2]=0;r.push(a)}function h(a,b){return athis.K&&(this.K=0);this.K>=this.Aa.frames.length&&(this.K=this.Aa.frames.length-1);var a=this.Aa.frames[this.K];this.Z.Mh(a.oj);this.Rb=a.Rb;this.Sb=a.Sb;this.Eg=this.Aa.speed;this.je=this.Aa.Rl;this.ic?this.hd.reset():this.hd=new Ta;this.Ed=this.hd.ca;this.Ie=!0;this.yd=0;this.He=!0;this.mi=this.Rm="";this.$m=0;this.mk=-1;this.type.tl();var b,d,c,e,f,k,h,a=0;for(b=this.type.Nb.length;a< +b;a++)for(e=this.type.Nb[a],d=0,c=e.frames.length;dthis.K&&(this.K=0);this.K>=this.Aa.frames.length&&(this.K=this.Aa.frames.length-1);this.Eg=a.cas;this.Ed=a.fs;this.yd=a.ar;this.hd.reset();this.hd.ca=a.at;this.Ie=a.hasOwnProperty("ap")?a.ap:!0;this.He=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.je=a.rt:this.je=this.Aa.Rl;this.xc=this.Aa.frames[this.K];this.pi=this.xc.ya;this.Z.Mh(this.xc.oj);this.Rb=this.xc.Rb;this.Sb=this.xc.Sb};f.dk= +function(a){this.K=a?0:this.Aa.frames.length-1;this.Ie=!1;this.Rm=this.Aa.name;this.Vk=!0;this.b.trigger(Y.prototype.B.pq,this);this.b.trigger(Y.prototype.B.oq,this);this.Vk=!1;this.yd=0};f.ek=function(){return this.hd.ca};f.nb=function(){this.hd.add(this.b.We(this));this.mi.length&&this.hn();0<=this.mk&&this.sr();var a=this.hd.ca,b=this.Aa,d=b.frames[this.K],c=d.duration/this.Eg;this.Ie&&a>=this.Ed+c&&(this.He?this.K++:this.K--,this.Ed+=c,this.K>=b.frames.length&&(b.So?(this.He=!1,this.K=b.frames.length- +2):b.loop?this.K=this.je:(this.yd++,this.yd>=b.Ql?this.dk(!1):this.K=this.je)),0>this.K&&(b.So?(this.K=1,this.He=!0,b.loop||(this.yd++,this.yd>=b.Ql&&this.dk(!0))):b.loop?this.K=this.je:(this.yd++,this.yd>=b.Ql?this.dk(!0):this.K=this.je)),0>this.K?this.K=0:this.K>=b.frames.length&&(this.K=b.frames.length-1),a>this.Ed+b.frames[this.K].duration/this.Eg&&(this.Ed=a),a=b.frames[this.K],this.Gf(d,a),this.b.ma=!0)};f.un=function(a){var b,d,c;b=0;for(d=this.type.Nb.length;bthis.K&&(this.K=0),this.K>=this.Aa.frames.length&&(this.K=this.Aa.frames.length-1),1===this.$m&&(this.K=0),this.Ie=!0,this.Ed=this.hd.ca,this.He=!0,this.Gf(a,this.Aa.frames[this.K]),this.b.ma=!0)};f.sr=function(){var a= +this.Aa.frames[this.K],b=this.K;this.K=O(this.mk);0>this.K&&(this.K=0);this.K>=this.Aa.frames.length&&(this.K=this.Aa.frames.length-1);b!==this.K&&(this.Gf(a,this.Aa.frames[this.K]),this.Ed=this.hd.ca,this.b.ma=!0);this.mk=-1};f.Gf=function(a,b){var d=a.width,c=a.height,e=b.width,f=b.height;d!=e&&(this.width*=e/d);c!=f&&(this.height*=f/c);this.Rb=b.Rb;this.Sb=b.Sb;this.Z.Mh(b.oj);this.C();this.xc=b;this.pi=b.ya;d=0;for(c=this.L.length;de||e>=c.length)return b?this.x:this.y;var f=(c[e][1]-d.Rb)*this.width,c=c[e][2],c=(c-d.Sb)*this.height,d=Math.cos(this.n);e=Math.sin(this.n);var k=f*d-c*e,c=c*d+f*e,f=k+this.x,c=c+this.y;return b?f:c};var r=[],l=-2,B=[];p.prototype.tq=function(a){if(!a)return!1;var d=this.b,c=d.Kg(),e=c.type,f=null;c.J.collmemory?f=c.J.collmemory: +(f={},c.J.collmemory=f);c.J.spriteCreatedDestroyCallback||(c.J.spriteCreatedDestroyCallback=!0,d.Zj(function(a){var b=c.J.collmemory;a=a.uid;var d,e;for(d in b)b.hasOwnProperty(d)&&(e=b[d],e[0]===a||e[1]===a)&&(n(b[d]),delete b[d])}));var h=e.aa(),m=a.aa(),h=h.Qb(),r,p,A,z,I,D,M,ka=this.b.Ic,x=ka-1,v=d.kb().Ob;for(p=0;p=this.wc.left&&this.type.yg.update(this,this.wc,null),this.wc.set(0,0,-1,-1)))};d.I=new a;d.Ka=new function(){}})();function fc(c){this.b=c} +(function(){function c(){return a.length?a.pop():{}}function p(b){var c,e;c=0;for(e=b.length;ca.Fa||b.top>a.Ea)this.b.G.deleteTexture(this.gc),this.od=this.rf=this.gc=null}};t.qd=function(){this.od=this.rf=null;this.b.G&& +this.gc&&this.b.G.deleteTexture(this.gc);this.gc=null};t.ek=function(){this.font=this.Ci+" "+this.Gh.toString()+"pt "+this.Kf;this.Bf=!0;this.b.ma=!0};t.Qc=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var c=1;b&&(c=this.u.cc(),a.save(),a.scale(c,c));if(this.Bf||this.width!==this.ol)this.type.Ca.Xq(this.text,this.ve,a,this.width,this.zm),this.Bf=!1,this.ol=this.width;this.ta();var c=b?0:this.tb.ab,f=b?0:this.tb.bb;this.b.Yc&&(c=c+.5|0,f= +f+.5|0);0===this.n||b||(a.save(),a.translate(c,f),a.rotate(this.n),f=c=0);var k=f+this.height,h=this.Ll,h=h+this.ql,n,t;1===this.Qj?f+=Math.max(this.height/2-this.ve.length*h/2,0):2===this.Qj&&(f+=Math.max(this.height-this.ve.length*h-2,0));for(t=0;t=k-h);t++);(0!==this.n||b)&&a.restore();this.jh=this.b.Ic};t.Pb=function(a){if(!(1>this.width|| +1>this.height)){var b=this.Bf||this.Ho;this.Ho=!1;var c=this.u.cc(),f=this.u.ac(),k=this.De,h=c*this.width,n=c*this.height,t=Math.ceil(h),p=Math.ceil(n),g=this.b.N/2,q=this.b.M/2;this.rf||(this.od=document.createElement("canvas"),this.od.width=t,this.od.height=p,this.Ui=t,this.Ti=p,b=!0,this.rf=this.od.getContext("2d"));if(t!==this.Ui||p!==this.Ti)this.od.width=t,this.od.height=p,this.gc&&(a.deleteTexture(this.gc),this.gc=null),b=!0;b&&(this.rf.clearRect(0,0,t,p),this.Qc(this.rf,!0),this.gc||(this.gc= +a.nc(t,p,this.b.V,this.b.cf)),a.wu(this.od,this.gc,this.b.cf));this.Ui=t;this.Ti=p;a.jc(this.gc);a.wf(this.opacity);a.Ec();a.translate(-g,-q);a.sc();var u=this.tb,b=this.u.na(u.ab,u.bb,!0,!0),g=this.u.na(u.ab,u.bb,!1,!0),q=this.u.na(u.Db,u.Eb,!0,!0),T=this.u.na(u.Db,u.Eb,!1,!0),R=this.u.na(u.ub,u.wb,!0,!0),P=this.u.na(u.ub,u.wb,!1,!0),F=this.u.na(u.rb,u.sb,!0,!0),u=this.u.na(u.rb,u.sb,!1,!0);if(this.b.Yc||0===this.n&&0===f)var C=(b+.5|0)-b,H=(g+.5|0)-g,b=b+C,g=g+H,q=q+C,T=T+H,R=R+C,P=P+H,F=F+C,u= +u+H;0===this.n&&0===f?(q=b+t,T=g,R=q,P=g+p,F=b,u=P,k.right=1,k.bottom=1):(k.right=h/t,k.bottom=n/p);a.sd(b,g,q,T,R,P,F,u,k);a.Ec();a.scale(c,c);a.wj(-this.u.ac());a.translate((this.u.wa+this.u.Fa)/-2,(this.u.xa+this.u.Ea)/-2);a.sc();this.jh=this.b.Ic}};var b=[];k.Tq=function(a){U(b);for(var c="",e,f=0;f=f)p(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var h=e.measureText(a).width;if(h<=f){p(b);b.push(c());b[0].text=a;b[0].width=h;return}}this.Yq(a,b,e,f,k)}else p(b)};k.Yq=function(d,k,e,f,h){h&&(this.Tq(d),d=b);var l="",t,p,z,g=0;for(z=0;z=k.length&&k.push(c()),l=n(l),p=k[g],p.text=l,p.width=e.measureText(l).width,g++,l=""):(t=l,l+=d[z],p=e.measureText(l).width, +p>=f&&(g>=k.length&&k.push(c()),t=n(t),p=k[g],p.text=t,p.width=e.measureText(t).width,g++,l=d[z],h||" "!==l||(l="")));l.length&&(g>=k.length&&k.push(c()),l=n(l),p=k[g],p.text=l,p.width=e.measureText(l).width,g++);for(z=g;za&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Bf=!0,this.b.ma=!0)};k.I=new h;k.Ka=new function(){}})();function gc(c){this.b=c} +(function(){var c=gc.prototype;c.ia=function(c){this.Ca=c;this.b=c.b};var p=c.ia.prototype;p.P=function(){this.O||(this.fa=new Image,this.fa.bn=this.im,this.b.Qp(this.fa,this.hm),this.ya=this.pattern=null)};p.lj=function(){this.O||(this.ya=null)};p.Bl=function(){if(!this.O&&this.k.length){this.ya||(this.ya=this.b.G.aj(this.fa,!0,this.b.V,this.jm));var c,h;c=0;for(h=this.k.length;ca&&(a+=this.fa.width);0>d&&(d+=this.fa.height);c.translate(h,k);c.rotate(this.n);c.translate(a,d);c.fillRect(t-a,b-d,this.width,this.height);c.restore()};p.Pe=function(c){this.Pb(c)}; +p.Pb=function(c){c.jc(this.ya);c.wf(this.opacity);var h=this.De;h.right=this.width/this.fa.width;h.bottom=this.height/this.fa.height;var k=this.tb;if(this.b.Yc){var t=Math.round(this.x)-this.x,b=Math.round(this.y)-this.y;c.sd(k.ab+t,k.bb+b,k.Db+t,k.Eb+b,k.ub+t,k.wb+b,k.rb+t,k.sb+b,h)}else c.sd(k.ab,k.bb,k.Db,k.Eb,k.ub,k.wb,k.rb,k.sb,h)};c.B=new function(){};c.I=new function(){};c.Ka=new function(){}})();function hc(c){this.b=c} +(function(){function c(){}function p(){}var n=hc.prototype;n.ia=function(c){this.Ca=c;this.b=c.b};n.ia.prototype.P=function(){};n.Y=function(c){this.type=c;this.b=c.b};var h=n.Y.prototype;h.P=function(){this.b.Oa?w("[Construct 2] Progress Bar plugin not supported on this platform - the object will not be created"):(this.oa=document.createElement("progress"),this.value=this.D[0],this.max=this.D[1],0=a||0>=d||h>=m||b>=e?(this.Re||jQuery(this.oa).hide(),this.Re=!0):(1>h&&(h=1),1>b&&(b=1),a>=m&&(a=m-1),d>=e&&(d=e-1),m=window.innerWidth,e=window.innerHeight,c||this.$n!==h||this.eo!==b||this.bo!==a||this.Yn!==d||this.ho!==m||this.fo!==e?(this.$n=h,this.eo=b,this.bo=a,this.Yn=d,this.ho=m,this.fo=e,this.Re&&(jQuery(this.oa).show(),this.Re=!1),c=Math.round(h)+ +jQuery(this.b.canvas).offset().left,m=Math.round(b)+jQuery(this.b.canvas).offset().top,jQuery(this.oa).css("position","absolute"),jQuery(this.oa).offset({left:c,top:m}),jQuery(this.oa).width(Math.round(a-h)),jQuery(this.oa).height(Math.round(d-b))):this.Re&&(jQuery(this.oa).show(),this.Re=!1))}};h.Qc=function(){};h.Pb=function(){};c.prototype.sq=function(){return!0};n.B=new c;p.prototype.Nm=function(c){this.b.Oa||(this.visible=0!==c)};p.prototype.Nq=function(c){this.b.Oa||(this.value=c,this.oa.max= +this.max,this.oa.value=this.value)};n.I=new p;n.Ka=new function(){}})();function ic(c){this.b=c} +(function(){function c(){}var p=ic.prototype;p.ia=function(c){this.behavior=c;this.b=c.b};p.ia.prototype.P=function(){};p.Y=function(c,k){this.type=c;this.behavior=c.behavior;this.j=k;this.b=c.b};var n=p.Y.prototype;n.P=function(){var c=this.D[0];this.la=this.D[1];this.Fb=this.D[2];this.gr=0!==this.D[3];this.Yl=0!==this.D[4];this.q=Math.cos(this.j.n)*c;this.A=Math.sin(this.j.n)*c;this.Vi=this.j.x;this.Wi=this.j.y;this.zc=this.j.n;this.Mj=0;this.enabled=0!==this.D[5]};n.Sa=function(){return{acc:this.la, +g:this.Fb,dx:this.q,dy:this.A,lx:this.Vi,ly:this.Wi,lka:this.zc,t:this.Mj,e:this.enabled}};n.gb=function(c){this.la=c.acc;this.Fb=c.g;this.q=c.dx;this.A=c.dy;this.Vi=c.lx;this.Wi=c.ly;this.zc=c.lka;this.Mj=c.t;this.enabled=c.e};n.nb=function(){if(this.enabled){var c=this.b.We(this.j),k,n;this.j.n!==this.zc&&(this.Yl&&(k=La(0,0,this.q,this.A),this.q=Math.cos(this.j.n)*k,this.A=Math.sin(this.j.n)*k),this.zc=this.j.n);0!==this.la&&(k=La(0,0,this.q,this.A),n=0===this.q&&0===this.A?this.j.n:Ha(0,0,this.q, +this.A),k+=this.la*c,0>k&&(k=0),this.q=Math.cos(n)*k,this.A=Math.sin(n)*k);0!==this.Fb&&(this.A+=this.Fb*c);this.Vi=this.j.x;this.Wi=this.j.y;if(0!==this.q||0!==this.A)if(this.j.x+=this.q*c,this.j.y+=this.A*c,this.Mj+=La(0,0,this.q*c,this.A*c),this.Yl&&(this.j.n=Ha(0,0,this.q,this.A),this.j.C(),this.zc=this.j.n),this.j.C(),this.gr&&(k=this.b.Da(this.j)))this.b.td(this.j,k),k=La(0,0,this.q,this.A),n=this.b.jr(this.j,this.Vi,this.Wi),this.q=Math.cos(n)*k,this.A=Math.sin(n)*k,this.j.x+=this.q*c,this.j.y+= +this.A*c,this.j.C(),this.Yl&&(this.zc=this.j.n=n,this.j.C()),this.b.rc(this.j,this.q/k,this.A/k,Math.max(2.5*k*c,30))||this.b.Kl(this.j,100)}};p.B=new function(){};c.prototype.Xj=function(c){this.la=c};c.prototype.Km=function(c){this.Fb=c};p.I=new c;p.Ka=new function(){}})();function jc(c){this.b=c} +(function(){function c(){}var p=jc.prototype;p.ia=function(c){this.behavior=c;this.b=c.b};p.ia.prototype.P=function(){};p.Y=function(c,k){this.type=c;this.behavior=c.behavior;this.j=k;this.b=c.b;this.Sd=this.Rd=this.Cj=this.Dj=this.Fd=this.bd=this.Wc=this.Gg=this.Uh=!1;this.ml=this.ll=this.kl=this.nl=-1;this.A=this.q=0};var n=p.Y.prototype;n.P=function(){this.Bc=this.D[0];this.la=this.D[1];this.yb=this.D[2];this.xk=this.D[3];this.ck=this.D[4];this.vk=1===this.D[5];this.enabled=0!==this.D[6];this.vk&& +!this.b.Oa&&(jQuery(document).keydown(function(c){return function(k){c.Ah(k)}}(this)),jQuery(document).keyup(function(c){return function(k){c.Bh(k)}}(this)))};n.Sa=function(){return{dx:this.q,dy:this.A,enabled:this.enabled,maxspeed:this.Bc,acc:this.la,dec:this.yb,ignoreInput:this.Fd}};n.gb=function(c){this.q=c.dx;this.A=c.dy;this.enabled=c.enabled;this.Bc=c.maxspeed;this.la=c.acc;this.yb=c.dec;this.Fd=c.ignoreInput;this.Sd=this.Rd=this.Cj=this.Dj=this.bd=this.Wc=this.Gg=this.Uh=!1;this.ml=this.ll= +this.kl=this.nl=-1};n.Ah=function(c){var k=this.b.Ic;switch(c.which){case 37:c.preventDefault();this.llthis.q?(this.q+=this.yb*c,0this.q&&(this.q=0)));b==a&&(0>this.A?(this.A+=this.yb*c,0this.A&&(this.A=0)));k&&!n&&(this.q=0this.q?this.q+(this.la+this.yb)*c:this.q+this.la*c);b&&!a&&(this.A=0this.A?this.A+(this.la+this.yb)*c:this.A+this.la*c);if(0!==this.q||0!==this.A){Math.sqrt(this.q*this.q+this.A*this.A)>this.Bc&& +(d=Math.atan2(this.A,this.q),this.q=this.Bc*Math.cos(d),this.A=this.Bc*Math.sin(d));n=this.j.x;b=this.j.y;k=this.j.n;this.j.x+=this.q*c;this.j.C();if(d=this.b.Da(this.j))this.j.x=n,this.q=0,this.j.C(),this.b.td(this.j,d);this.j.y+=this.A*c;this.j.C();if(d=this.b.Da(this.j))this.j.y=b,this.A=0,this.j.C(),this.b.td(this.j,d);c=ab(this.q);d=ab(this.A);if(0!==c||0!==d)1===this.ck?this.j.n=Ga(90*Math.round(Da(Math.atan2(d,c))/90)):2===this.ck?this.j.n=Ga(45*Math.round(Da(Math.atan2(d,c))/45)):3===this.ck&& +(this.j.n=Math.atan2(d,c));this.j.C();this.j.n!=k&&(d=this.b.Da(this.j))&&(this.j.n=k,this.j.C(),this.b.td(this.j,d))}}};p.B=new function(){};c.prototype.Lm=function(c){this.Fd=c};c.prototype.Xj=function(c){this.la=c;0>this.la&&(this.la=0)};c.prototype.Yj=function(c){switch(c){case 0:this.Rd=!0;break;case 1:this.Sd=!0;break;case 2:this.Dj=!0;break;case 3:this.Cj=!0}};c.prototype.Mm=function(c){this.A=c};p.I=new c;p.Ka=new function(){}})();function kc(c){this.b=c} +(function(){function c(){}function p(){}var n=kc.prototype;n.ia=function(a){this.behavior=a;this.b=a.b};var h=n.ia.prototype;h.P=function(){this.ze=[]};h.Fs=function(a){var b,c,f;b=0;for(c=a.L.length;bthis.j.width&&(h+=Math.PI);if(La(c,f,a,b)>this.Nl||Ia(h,Ha(c,f,a,b))>this.pk/2)return!1;var l,n;t.set(c,f,a,b);t.normalize();if(0===this.Mt)for(this.Np? +this.b.An(this.j.u,t,k):(h=this.b.em)&&ya(k,h.wh.Jc()),h=0,l=k.length;hthis.Ce||4===this.mode&&ethis.Hb&&(this.Ha*=-1,this.Ia*=-1,this.Hb=Math.abs(this.Hb))};h.P=function(){this.Bc=this.D[0];this.la=this.D[1];this.yb=this.D[2];this.fh=this.D[3];this.Gi=this.Hb=this.D[4];this.pf=this.D[5];this.xk=0!==this.D[6];this.hl=this.D[7]/1E3;this.tk=1===this.D[8];this.enabled=0!==this.D[9];this.sg=!1;this.tg=this.b.xd(this.j);this.sl=-1;this.Af=0;this.Of=V(90); -this.um();var c=this;this.tk&&!this.b.Oa&&(jQuery(document).keydown(function(h){c.Bh(h)}),jQuery(document).keyup(function(h){c.Ch(h)}));this.ic||(this.vh=function(h){c.Al(h)});this.b.Yj(this.vh);this.j.I.isPlatformBehavior=!0};h.Ta=function(){return{ii:this.Fd,lfx:this.ff,lfy:this.gf,lfo:this.Ib?this.Ib.uid:-1,am:this.Nc,en:this.enabled,fall:this.ne,ft:this.Bi,dx:this.u,dy:this.A,ms:this.Bc,acc:this.la,dec:this.yb,js:this.fh,g:this.Hb,g1:this.Gi,mf:this.pf,wof:this.sg,woj:this.tg?this.tg.uid:-1,ga:this.Of, -edj:this.xk,cdj:this.zg,dj:this.Gg,sus:this.hl}};h.hb=function(c){this.Fd=c.ii;this.ff=c.lfx;this.gf=c.lfy;this.rl=c.lfo;this.Nc=c.am;this.enabled=c.en;this.ne=c.fall;this.Bi=c.ft;this.u=c.dx;this.A=c.dy;this.Bc=c.ms;this.la=c.acc;this.yb=c.dec;this.fh=c.js;this.Hb=c.g;this.Gi=c.g1;this.pf=c.mf;this.sg=c.wof;this.sl=c.woj;this.Of=c.ga;this.xk=c.edj;this.zg=c.cdj;this.Gg=c.dj;this.hl=c.sus;this.Qh=this.Sd=this.Rd=this.Wf=this.Xf=this.bd=this.Xc=!1;this.Af=0;this.um()};h.gd=function(){-1===this.rl? -this.Ib=null:this.Ib=this.b.Mg(this.rl);-1===this.sl?this.tg=null:this.tg=this.b.Mg(this.sl)};h.Al=function(c){this.Ib==c&&(this.Ib=null)};h.qd=function(){this.Ib=null;this.b.$o(this.vh)};h.Bh=function(c){switch(c.which){case 38:c.preventDefault();this.Xf=!0;break;case 37:c.preventDefault();this.Xc=!0;break;case 39:c.preventDefault(),this.bd=!0}};h.Ch=function(c){switch(c.which){case 38:c.preventDefault();this.Wf=this.Xf=!1;break;case 37:c.preventDefault();this.Xc=!1;break;case 39:c.preventDefault(), -this.bd=!1}};h.Ae=function(){this.Xf=this.bd=this.Xc=!1};h.ck=function(){return 0>this.Hb?-1:1};h.On=function(){var c=null,h=null,e,a;e=this.j.x;a=this.j.y;this.j.x+=this.Ha;this.j.y+=this.Ia;this.j.C();if(this.Ib&&this.b.Db(this.j,this.Ib))return this.j.x=e,this.j.y=a,this.j.C(),this.Ib;(c=this.b.Da(this.j))||0!==this.ne||(h=this.b.xd(this.j,!0));this.j.x=e;this.j.y=a;this.j.C();if(c){if(this.b.Db(this.j,c))return null;this.Ci=!1;return c}if(h&&h.length){a=c=0;for(e=h.length;cthis.pf&&(this.A=this.pf)),H&&(this.Wf=!0));this.sg=!!y;n==a&&(0>this.u?(this.u+=this.yb*c,0this.u&&(this.u=0)));n&&!a&&(this.u=0this.u?this.u+(this.la+this.yb)*c:this.u+this.la*c);this.u>this.Bc?this.u=this.Bc:this.u<-this.Bc&&(this.u=-this.Bc);n=!1;0!==this.u&&(m=this.j.x,l=this.j.y,h=this.u*c*this.uf,e=this.u*c*this.vf,this.j.x+= -this.uf*(1this.u?1:-1),this.vf*(0>this.u?1: --1),h,!1)?!y||b||this.Ci||(m=this.j.x,l=this.j.y,this.j.x+=this.Ha,this.j.y+=this.Ia,this.b.Da(this.j)?this.b.rc(this.j,-this.Ha,-this.Ia,3,!1)||(this.j.x=m,this.j.y=l,this.j.C()):(this.j.x=m,this.j.y=l,this.j.C())):(this.j.x=m,this.j.y=l,this.j.C()),b||(this.u=0)):!g&&!H&&Math.abs(this.A)this.A?1:-1),this.Ia*(0>this.A?1:-1),h,b,e)?(this.Ib=e,this.ff=e.x,this.gf=e.y,(this.Ci=b)&&(n=!0),this.A=0):(this.j.x=m,this.j.y=l,this.j.C(),this.sg=!0,b||(this.A=0)))}3!==this.Nc&&0this.la&&(this.la=0)};n.prototype.Km=function(c){this.Gi!==c&&(this.Hb=c,this.um(),this.b.Da(this.j)&&(this.b.rc(this.j,this.Ha, -this.Ia,10),this.j.x+=2*this.Ha,this.j.y+=2*this.Ia,this.j.C()),this.Ib=null)};n.prototype.Gq=function(c){this.pf=c;0>this.pf&&(this.pf=0)};n.prototype.Xj=function(c){switch(c){case 0:this.Rd=!0;break;case 1:this.Sd=!0;break;case 2:this.Qh=!0}};n.prototype.Mm=function(c){this.A=c};n.prototype.aq=function(){var c=this.j.x,h=this.j.y;this.j.x+=this.Ha;this.j.y+=this.Ia;this.j.C();var e=this.b.xd(this.j,!1);this.j.x=c;this.j.y=h;this.j.C();e&&(this.ne=3,this.Ib=null)};m.J=new n;m.Na=new function(){}})(); +(function(){function c(){}var p=lc.prototype;p.ia=function(c){this.behavior=c;this.b=c.b};p.ia.prototype.P=function(){};p.Y=function(c,k){this.type=c;this.behavior=c.behavior;this.j=k;this.b=c.b};var n=p.Y.prototype;n.P=function(){this.$a=null;this.nj=-1;this.mode=this.zc=this.km=this.vh=this.Ce=this.mj=0;var c=this;this.ic||(this.uh=function(k){c.Al(k)});this.b.Zj(this.uh)};n.Sa=function(){return{uid:this.$a?this.$a.uid:-1,pa:this.mj,pd:this.Ce,msa:this.vh,tsa:this.km,lka:this.zc,m:this.mode}};n.gb= +function(c){this.nj=c.uid;this.mj=c.pa;this.Ce=c.pd;this.vh=c.msa;this.km=c.tsa;this.zc=c.lka;this.mode=c.m};n.gd=function(){-1===this.nj?this.$a=null:this.$a=this.b.Mg(this.nj);this.nj=-1};n.Al=function(c){this.$a==c&&(this.$a=null)};n.qd=function(){this.$a=null;this.b.cp(this.uh)};n.nb=function(){};n.Th=function(){if(this.$a){this.zc!==this.j.n&&(this.vh=W(this.vh+(this.j.n-this.zc)));var c=this.j.x,k=this.j.y;if(3===this.mode||4===this.mode){var n=La(this.j.x,this.j.y,this.$a.x,this.$a.y);if(n> +this.Ce||4===this.mode&&nthis.Fb&&(this.Ha*=-1,this.Ia*=-1,this.Fb=Math.abs(this.Fb))};h.P=function(){this.Bc=this.D[0];this.la=this.D[1];this.yb=this.D[2];this.eh=this.D[3];this.Fi=this.Fb=this.D[4];this.pf=this.D[5];this.zk=0!==this.D[6];this.hl=this.D[7]/1E3;this.vk=1===this.D[8];this.enabled=0!==this.D[9];this.qg=!1;this.rg=this.b.xd(this.j);this.sl=-1;this.Af=0;this.Nf=V(90); +this.um();var c=this;this.vk&&!this.b.Oa&&(jQuery(document).keydown(function(h){c.Ah(h)}),jQuery(document).keyup(function(h){c.Bh(h)}));this.ic||(this.uh=function(h){c.Al(h)});this.b.Zj(this.uh);this.j.J.isPlatformBehavior=!0};h.Sa=function(){return{ii:this.Fd,lfx:this.ff,lfy:this.gf,lfo:this.Gb?this.Gb.uid:-1,am:this.Mc,en:this.enabled,fall:this.ne,ft:this.Ai,dx:this.q,dy:this.A,ms:this.Bc,acc:this.la,dec:this.yb,js:this.eh,g:this.Fb,g1:this.Fi,mf:this.pf,wof:this.qg,woj:this.rg?this.rg.uid:-1,ga:this.Nf, +edj:this.zk,cdj:this.xg,dj:this.Fg,sus:this.hl}};h.gb=function(c){this.Fd=c.ii;this.ff=c.lfx;this.gf=c.lfy;this.rl=c.lfo;this.Mc=c.am;this.enabled=c.en;this.ne=c.fall;this.Ai=c.ft;this.q=c.dx;this.A=c.dy;this.Bc=c.ms;this.la=c.acc;this.yb=c.dec;this.eh=c.js;this.Fb=c.g;this.Fi=c.g1;this.pf=c.mf;this.qg=c.wof;this.sl=c.woj;this.Nf=c.ga;this.zk=c.edj;this.xg=c.cdj;this.Fg=c.dj;this.hl=c.sus;this.Ph=this.Sd=this.Rd=this.Uf=this.Vf=this.bd=this.Wc=!1;this.Af=0;this.um()};h.gd=function(){-1===this.rl? +this.Gb=null:this.Gb=this.b.Mg(this.rl);-1===this.sl?this.rg=null:this.rg=this.b.Mg(this.sl)};h.Al=function(c){this.Gb==c&&(this.Gb=null)};h.qd=function(){this.Gb=null;this.b.cp(this.uh)};h.Ah=function(c){switch(c.which){case 38:c.preventDefault();this.Vf=!0;break;case 37:c.preventDefault();this.Wc=!0;break;case 39:c.preventDefault(),this.bd=!0}};h.Bh=function(c){switch(c.which){case 38:c.preventDefault();this.Uf=this.Vf=!1;break;case 37:c.preventDefault();this.Wc=!1;break;case 39:c.preventDefault(), +this.bd=!1}};h.Ae=function(){this.Vf=this.bd=this.Wc=!1};h.ek=function(){return 0>this.Fb?-1:1};h.Qn=function(){var c=null,h=null,b,a;b=this.j.x;a=this.j.y;this.j.x+=this.Ha;this.j.y+=this.Ia;this.j.C();if(this.Gb&&this.b.Jb(this.j,this.Gb))return this.j.x=b,this.j.y=a,this.j.C(),this.Gb;(c=this.b.Da(this.j))||0!==this.ne||(h=this.b.xd(this.j,!0));this.j.x=b;this.j.y=a;this.j.C();if(c){if(this.b.Jb(this.j,c))return null;this.Bi=!1;return c}if(h&&h.length){a=c=0;for(b=h.length;cthis.pf&&(this.A=this.pf)),A&&(this.Uf=!0));this.qg=!!z;B==a&&(0>this.q?(this.q+=this.yb*c,0this.q&&(this.q=0)));B&&!a&&(this.q=0this.q?this.q+(this.la+this.yb)*c:this.q+this.la*c);this.q>this.Bc?this.q=this.Bc:this.q<-this.Bc&&(this.q=-this.Bc);B=!1;0!==this.q&&(p=this.j.x,l=this.j.y,h=this.q*c*this.uf,b=this.q*c*this.vf,this.j.x+= +this.uf*(1this.q?1:-1),this.vf*(0>this.q?1: +-1),h,!1)?!z||d||this.Bi||(p=this.j.x,l=this.j.y,this.j.x+=this.Ha,this.j.y+=this.Ia,this.b.Da(this.j)?this.b.rc(this.j,-this.Ha,-this.Ia,3,!1)||(this.j.x=p,this.j.y=l,this.j.C()):(this.j.x=p,this.j.y=l,this.j.C())):(this.j.x=p,this.j.y=l,this.j.C()),d||(this.q=0)):!n&&!A&&Math.abs(this.A)this.A?1:-1),this.Ia*(0>this.A?1:-1),h,d,b)?(this.Gb=b,this.ff=b.x,this.gf=b.y,(this.Bi=d)&&(B=!0),this.A=0):(this.j.x=p,this.j.y=l,this.j.C(),this.qg=!0,d||(this.A=0)))}3!==this.Mc&&0this.la&&(this.la=0)};p.prototype.Km=function(c){this.Fi!==c&&(this.Fb=c,this.um(),this.b.Da(this.j)&&(this.b.rc(this.j,this.Ha, +this.Ia,10),this.j.x+=2*this.Ha,this.j.y+=2*this.Ia,this.j.C()),this.Gb=null)};p.prototype.Jq=function(c){this.pf=c;0>this.pf&&(this.pf=0)};p.prototype.Yj=function(c){switch(c){case 0:this.Rd=!0;break;case 1:this.Sd=!0;break;case 2:this.Ph=!0}};p.prototype.Mm=function(c){this.A=c};p.prototype.cq=function(){var c=this.j.x,h=this.j.y;this.j.x+=this.Ha;this.j.y+=this.Ia;this.j.C();var b=this.b.xd(this.j,!1);this.j.x=c;this.j.y=h;this.j.C();b&&(this.ne=3,this.Gb=null)};n.I=new p;n.Ka=new function(){}})(); function nc(c){this.b=c} -(function(){var c=nc.prototype;c.ia=function(c){this.behavior=c;this.b=c.b};c.ia.prototype.P=function(){};c.Y=function(c,e){this.type=c;this.behavior=c.behavior;this.j=e;this.b=c.b;this.Xa=0};var n=c.Y.prototype,m=2*Math.PI,h=Math.PI/2,k=3*Math.PI/2;n.P=function(){this.pb=1===this.D[0];this.uh=this.D[1];this.ym=this.D[2];this.Pd=this.D[3];this.Pd+=Math.random()*this.D[4];0===this.Pd?this.Xa=0:(this.Xa=this.D[5]/this.Pd*m,this.Xa+=Math.random()*this.D[6]/this.Pd*m);this.Ub=this.D[7];this.Ub+=Math.random()* -this.D[8];this.Kh=this.Ze=this.ba=0;this.init()};n.Ta=function(){return{i:this.Xa,a:this.pb,mv:this.uh,w:this.ym,p:this.Pd,mag:this.Ub,iv:this.ba,iv2:this.Ze,r:this.Kh,lkv:this.fc,lkv2:this.gh}};n.hb=function(c){this.Xa=c.i;this.pb=c.a;this.uh=c.mv;this.ym=c.w;this.Pd=c.p;this.Ub=c.mag;this.ba=c.iv;this.Ze=c.iv2||0;this.Kh=c.r;this.fc=c.lkv;this.gh=c.lkv2||0};n.init=function(){switch(this.uh){case 0:this.ba=this.j.x;break;case 1:this.ba=this.j.y;break;case 2:this.ba=this.j.width;this.Kh=this.j.height/ -this.j.width;break;case 3:this.ba=this.j.width;break;case 4:this.ba=this.j.height;break;case 5:this.ba=this.j.n;this.Ub=V(this.Ub);break;case 6:this.ba=this.j.opacity;break;case 7:this.ba=0;break;case 8:this.ba=this.j.x,this.Ze=this.j.y}this.fc=this.ba;this.gh=this.Ze};n.Yd=function(c){c=c%m;switch(this.ym){case 0:return Math.sin(c);case 1:return c<=h?c/h:c<=k?1-2*(c-h)/Math.PI:(c-k)/h-1;case 2:return 2*c/m-1;case 3:return-2*c/m+1;case 4:return cthis.j.opacity?this.j.opacity=0:1=h.duration&&(h.Zo?h.current.da-=h.duration:delete this.Xb[c]))};c.B=new function(){};c.J=new function(){};c.Na=new function(){}})();function dc(c){this.b=c} -(function(){var c=dc.prototype;c.ia=function(c){this.behavior=c;this.b=c.b};c.ia.prototype.P=function(){};c.Y=function(c,h){this.type=c;this.behavior=c.behavior;this.j=h;this.b=c.b};var n=c.Y.prototype;n.P=function(){this.j.I.jumpthruEnabled=0!==this.D[0]};n.nb=function(){};c.B=new function(){};c.J=new function(){}})();function pc(c){this.b=c;this.$l=this.Aj=this.Ph=this.Zl=0} -(function(){var c=pc.prototype;c.ia=function(c){this.behavior=c;this.b=c.b};c.ia.prototype.P=function(){};c.Y=function(c,h){this.type=c;this.behavior=c.behavior;this.j=h;this.b=c.b};var n=c.Y.prototype;n.P=function(){this.enabled=0!==this.D[0]};n.Ta=function(){return{smg:this.behavior.Zl,ss:this.behavior.Ph,se:this.behavior.Aj,smd:this.behavior.$l}};n.hb=function(c){this.behavior.Zl=c.smg;this.behavior.Ph=c.ss;this.behavior.Aj=c.se;this.behavior.$l=c.smd};n.nb=function(){};n.Uh=function(){if(this.enabled){var c= -this.behavior.xh.Kc(),h=0,k=0,n,e,a,b=0;n=0;for(e=c.length;n=this.behavior.Ph&&ethis.j.opacity?this.j.opacity=0:1=h.duration&&(h.bp?h.current.ca-=h.duration:delete this.Xb[c]))};c.B=new function(){};c.I=new function(){};c.Ka=new function(){}})();function dc(c){this.b=c} +(function(){var c=dc.prototype;c.ia=function(c){this.behavior=c;this.b=c.b};c.ia.prototype.P=function(){};c.Y=function(c,h){this.type=c;this.behavior=c.behavior;this.j=h;this.b=c.b};var p=c.Y.prototype;p.P=function(){this.j.J.jumpthruEnabled=0!==this.D[0]};p.nb=function(){};c.B=new function(){};c.I=new function(){}})();function pc(c){this.b=c;this.$l=this.Bj=this.Oh=this.Zl=0} +(function(){var c=pc.prototype;c.ia=function(c){this.behavior=c;this.b=c.b};c.ia.prototype.P=function(){};c.Y=function(c,h){this.type=c;this.behavior=c.behavior;this.j=h;this.b=c.b};var p=c.Y.prototype;p.P=function(){this.enabled=0!==this.D[0]};p.Sa=function(){return{smg:this.behavior.Zl,ss:this.behavior.Oh,se:this.behavior.Bj,smd:this.behavior.$l}};p.gb=function(c){this.behavior.Zl=c.smg;this.behavior.Oh=c.ss;this.behavior.Bj=c.se;this.behavior.$l=c.smd};p.nb=function(){};p.Th=function(){if(this.enabled){var c= +this.behavior.wh.Jc(),h=0,k=0,p,b,a,d=0;p=0;for(b=c.length;p=this.behavior.Oh&&b - New project + BalloonMan diff --git a/offline.appcache b/offline.appcache index 768d3b3..d48ffa7 100644 --- a/offline.appcache +++ b/offline.appcache @@ -1,27 +1,32 @@ CACHE MANIFEST -#1460556129 +#1461592542 data.js c2runtime.js jquery-2.1.1.min.js -images/backgroundtile.png +images/backgroundlvl1.png images/hitbox-sheet0.png -images/solidtile.png +images/solidtilelvl1.png images/movingsolidtile.png images/jumpthrutile.png images/balloonsprite-sheet0.png -images/balloonsprite-sheet1.png images/ratsprite-sheet0.png images/ratsprite-sheet1.png images/ratsprite-sheet2.png images/enemywallright-sheet0.png images/sludge-sheet0.png images/enemywallbottom-sheet0.png -images/level2advance-sheet0.png images/sludgeprojectile-sheet0.png images/blockingobj-sheet0.png images/spike-sheet0.png images/home-sheet0.png images/win-sheet0.png +images/controls-sheet0.png +images/backgroundlvl2.png +images/backgroundlvl3.png +images/spike2-sheet0.png +images/spike3-sheet0.png +images/solidtilelvl2.png +images/solidfallthroughlvl2.png icon-16.png icon-32.png icon-114.png