diff --git a/BalloonAlpha.png b/BalloonAlpha.png new file mode 100644 index 0000000..5b9c54a Binary files /dev/null and b/BalloonAlpha.png differ diff --git a/c2runtime.js b/c2runtime.js index 891f7d4..85cc1ec 100644 --- a/c2runtime.js +++ b/c2runtime.js @@ -1,356 +1,382 @@ // Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com -'use strict';var aa,ba,ca,v,da,ea,fa,K,ga,ia,ja,ka,la,O,ma,oa,T,pa,sa,ta,ua,U,va,xa,ya,za,Aa,V,Ba,Ca,Da,Ea,Fa,Ga,Ha,Ia,Ja,Ka,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Xa,Ya,Za,$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,X,Qb,Rb={},Sb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(d){return d.__proto__}:function(d){return d.constructor.prototype}); -(function(){function d(a,b,g,c){this.set(a,b,g,c)}function q(){this.jb=this.ib=this.lb=this.kb=this.tb=this.sb=this.Xa=this.Wa=0}function h(a,b,g,c){ac?b:c):(w=ag?b:g):gc?a:c):(w=bg?a:g)}function p(){this.items=this.cd=null;this.Mg=0;P&&(this.cd=new Set);this.Yf=[];this.Vd=!0}function n(a){M[B++]=a}function r(){this.X=this.hj=this.y=this.Cj=0}function f(a){this.Ua=[];this.Ih=this.Kh=this.Lh=this.Jh=0;this.qh(a)}function b(a,b){this.Gj= -a;this.Fj=b;this.cells={}}function e(a,b){this.Gj=a;this.Fj=b;this.cells={}}function c(a,b,g){var c;return A.length?(c=A.pop(),c.kk=a,c.x=b,c.y=g,c):new aa(a,b,g)}function a(a,b,g){this.kk=a;this.x=b;this.y=g;this.Za=new ba}function g(a,b,g){var c;return x.length?(c=x.pop(),c.kk=a,c.x=b,c.y=g,c):new ca(a,b,g)}function l(a,b,g){this.kk=a;this.x=b;this.y=g;this.Za=[];this.Bf=!0;this.$c=new ba;this.eg=!1}function k(a,b){return a.Qc-b.Qc}v=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};K=function(a){return"string"===typeof a};ga=function(a){return 0b;b<<=1)a=a|a>>b;return a+1};ja=function(a){return 0>a?-a:a};ka=function(a,b){return am)return!1;bm)return!1;l=k-a+S-g;f=t-b+e-c;a=g-a;b=c-b;k=S-k;t=e-t;e=ja(b*k-t*a);return ja(k*f-t*l)>e?!1:ja(a*f-b*l)<=e};d.prototype.set=function(a,b,g,c){this.left=a;this.top=b;this.right=g;this.bottom=c};d.prototype.lg=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};d.prototype.width=function(){return this.right-this.left};d.prototype.height= -function(){return this.bottom-this.top};d.prototype.offset=function(a,b){this.left+=a;this.top+=b;this.right+=a;this.bottom+=b;return this};d.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)};d.prototype.ks=function(a){return!(a.rightthis.right||a.top>this.bottom)};d.prototype.ls=function(a,b,g){return!(a.right+bthis.right||a.top+g>this.bottom)};d.prototype.Sb=function(a,b){return a>=this.left&&a<=this.right&&b>=this.top&&b<=this.bottom};d.prototype.rg=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};T=d;q.prototype.ph=function(a){this.Wa=a.left;this.Xa=a.top;this.sb=a.right;this.tb=a.top;this.kb=a.right;this.lb=a.bottom;this.ib=a.left;this.jb=a.bottom};q.prototype.to=function(a,b){if(0===b)this.ph(a);else{var g=Math.sin(b),c=Math.cos(b), -k=a.left*g,t=a.top*g,S=a.right*g,g=a.bottom*g,e=a.left*c,l=a.top*c,f=a.right*c,c=a.bottom*c;this.Wa=e-t;this.Xa=l+k;this.sb=f-t;this.tb=l+S;this.kb=f-g;this.lb=c+S;this.ib=e-g;this.jb=c+k}};q.prototype.offset=function(a,b){this.Wa+=a;this.Xa+=b;this.sb+=a;this.tb+=b;this.kb+=a;this.lb+=b;this.ib+=a;this.jb+=b;return this};var w=0,G=0;q.prototype.hm=function(a){h(this.Wa,this.sb,this.kb,this.ib);a.left=w;a.right=G;h(this.Xa,this.tb,this.lb,this.jb);a.top=w;a.bottom=G};q.prototype.Sb=function(a,b){var g= -this.Wa,c=this.Xa,k=this.sb-g,t=this.tb-c,S=this.kb-g,e=this.lb-c,l=a-g,f=b-c,m=k*k+t*t,d=k*S+t*e,t=k*l+t*f,w=S*S+e*e,u=S*l+e*f,n=1/(m*w-d*d),k=(w*t-d*u)*n,m=(m*u-d*t)*n;if(0<=k&&0k+m)return!0;k=this.ib-g;t=this.jb-c;m=k*k+t*t;d=k*S+t*e;t=k*l+t*f;n=1/(m*w-d*d);k=(w*t-d*u)*n;m=(m*u-d*t)*n;return 0<=k&&0k+m};q.prototype.Td=function(a,b){if(b)switch(a){case 0:return this.Wa;case 1:return this.sb;case 2:return this.kb;case 3:return this.ib;case 4:return this.Wa;default:return this.Wa}else switch(a){case 0:return this.Xa; -case 1:return this.tb;case 2:return this.lb;case 3:return this.jb;case 4:return this.Xa;default:return this.Xa}};q.prototype.Jn=function(){return(this.Wa+this.sb+this.kb+this.ib)/4};q.prototype.Kn=function(){return(this.Xa+this.tb+this.lb+this.jb)/4};q.prototype.Qm=function(a){var b=a.Jn(),g=a.Kn();if(this.Sb(b,g))return!0;b=this.Jn();g=this.Kn();if(a.Sb(b,g))return!0;var c,k,t,e,l,f,m,d;for(m=0;4>m;m++)for(d=0;4>d;d++)if(b=this.Td(m,!0),g=this.Td(m,!1),c=this.Td(m+1,!0),k=this.Td(m+1,!1),t=a.Td(d, -!0),e=a.Td(d,!1),l=a.Td(d+1,!0),f=a.Td(d+1,!1),oa(b,g,c,k,t,e,l,f))return!0;return!1};pa=q;sa=function(a,b){for(var g in b)b.hasOwnProperty(g)&&(a[g]=b[g]);return a};ta=function(a,b){var g,c;b=O(b);if(!(0>b||b>=a.length)){g=b;for(c=a.length-1;gg?g:a};V=function(a){return a/(180/la)};Ba=function(a){return 180/la*a};Ca=function(a){a%=360;0>a&&(a+=360);return a};Da=function(a){a%=2*la;0>a&&(a+=2*la);return a};Ea=function(a){return Ca(Ba(a))};Fa=function(a){return Da(V(a))};Ga=function(a,b,g,c){return Math.atan2(c-b,g-a)};Ha=function(a,b){if(a===b)return 0;var g=Math.sin(a),c=Math.cos(a),k=Math.sin(b),t=Math.cos(b),g=g*k+c*t;return 1<=g?0:-1>=g?la:Math.acos(g)}; -Ia=function(a,b,g){var c=Math.sin(a),k=Math.cos(a),t=Math.sin(b),e=Math.cos(b);return Math.acos(c*t+k*e)>g?0=c*k-g*t};Ka=function(a,b,g,c){a=g-a;b=c-b;return Math.sqrt(a*a+b*b)};La=function(a,b){return!a!==!b};Ma=function(a){for(var b in a)if(a.hasOwnProperty(b))return!0;return!1};Na=function(a){for(var b in a)a.hasOwnProperty(b)&&delete a[b]};var z=+new Date;Oa=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 m=!1,u=m=!1,J=!1;"undefined"!==typeof window&&(m=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),m=!m&&/safari/i.test(navigator.userAgent),u=/(iphone|ipod|ipad)/i.test(navigator.userAgent),J=window.c2ejecta); -var P=!m&&!J&&!u&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;p.prototype.contains=function(a){return this.rd()?!1:P?this.cd.has(a):this.items&&this.items.hasOwnProperty(a)};p.prototype.add=function(a){if(P)this.cd.has(a)||(this.cd.add(a),this.Vd=!1);else{var b=a.toString(),g=this.items;g?g.hasOwnProperty(b)||(g[b]=a,this.Mg++,this.Vd=!1):(this.items={},this.items[b]=a,this.Mg=1,this.Vd=!1)}};p.prototype.remove=function(a){if(!this.rd())if(P)this.cd.has(a)&&(this.cd["delete"](a), -this.Vd=!1);else if(this.items){a=a.toString();var b=this.items;b.hasOwnProperty(a)&&(delete b[a],this.Mg--,this.Vd=!1)}};p.prototype.clear=function(){this.rd()||(P?this.cd.clear():(this.items=null,this.Mg=0),U(this.Yf),this.Vd=!0)};p.prototype.rd=function(){return 0===this.count()};p.prototype.count=function(){return P?this.cd.size:this.Mg};var M=null,B=0;p.prototype.jt=function(){if(!this.Vd){if(P)U(this.Yf),M=this.Yf,B=0,this.cd.forEach(n),M=null,B=0;else{var a=this.Yf;U(a);var b,g=0,c=this.items; -if(c)for(b in c)c.hasOwnProperty(b)&&(a[g++]=c[b])}this.Vd=!0}};p.prototype.Ld=function(){this.jt();return this.Yf};ba=p;new ba;Pa=function(a,b){P?Qa(a,b.cd):Ra(a,b.Ld())};Qa=function(a,b){var g,c,k,t;c=g=0;for(k=a.length;gg&&(g=t),ek&&(k=e);this.Jh=b;this.Kh=g;this.Lh=c;this.Ih=k};f.prototype.ph=function(a,b,g){this.Ua.length= -8;this.Kc=4;var c=this.Ua;c[0]=a.left-b;c[1]=a.top-g;c[2]=a.right-b;c[3]=a.top-g;c[4]=a.right-b;c[5]=a.bottom-g;c[6]=a.left-b;c[7]=a.bottom-g;this.Oh=a.right-a.left;this.Nh=a.bottom-a.top;this.wa()};f.prototype.Sf=function(a,b,g,c,k){this.Ua.length=8;this.Kc=4;var t=this.Ua;t[0]=a.Wa-b;t[1]=a.Xa-g;t[2]=a.sb-b;t[3]=a.tb-g;t[4]=a.kb-b;t[5]=a.lb-g;t[6]=a.ib-b;t[7]=a.jb-g;this.Oh=c;this.Nh=k;this.wa()};f.prototype.so=function(a){this.Kc=a.Kc;va(this.Ua,a.Ua);this.Jh=a.Jh;this.Lh-a.Lh;this.Kh=a.Kh;this.Ih= -a.Ih};f.prototype.of=function(a,b,g){if(this.Oh!==a||this.Nh!==b||this.km!==g){this.Oh=a;this.Nh=b;this.km=g;var c,k,t,e,l,f=0,m=1,d=this.fo,w=this.Ua;0!==g&&(f=Math.sin(g),m=Math.cos(g));g=0;for(t=this.Kc;gA.length&&A.push(l),this.cells[c][t]=null);if(g)for(c=g.left,k=g.right;c<=k;++c)for(t=g.top,e=g.bottom;t<=e;++t)b&& -b.Sb(c,t)||this.ee(c,t,!0).pk(a)};b.prototype.Ui=function(a,b){var g,c,k,t,e,l;g=this.Ab(a.left);k=this.Bb(a.top);c=this.Ab(a.right);for(e=this.Bb(a.bottom);g<=c;++g)for(t=k;t<=e;++t)(l=this.ee(g,t,!1))&&l.dump(b)};Va=b;e.prototype.ee=function(a,b,c){var k;k=this.cells[a];return k?(k=k[b])?k:c?(k=g(this,a,b),this.cells[a][b]=k):null:c?(k=g(this,a,b),this.cells[a]={},this.cells[a][b]=k):null};e.prototype.Ab=function(a){return O(a/this.Gj)};e.prototype.Bb=function(a){return O(a/this.Fj)};e.prototype.update= -function(a,b,g){var c,k,t,e,l;if(b)for(c=b.left,k=b.right;c<=k;++c)for(t=b.top,e=b.bottom;t<=e;++t)if(!g||!g.Sb(c,t))if(l=this.ee(c,t,!1))l.remove(a),l.rd()&&(l.reset(),1E3>x.length&&x.push(l),this.cells[c][t]=null);if(g)for(c=g.left,k=g.right;c<=k;++c)for(t=g.top,e=g.bottom;t<=e;++t)b&&b.Sb(c,t)||this.ee(c,t,!0).pk(a)};e.prototype.Ui=function(a,b,g,c,k){var t,e;a=this.Ab(a);b=this.Bb(b);g=this.Ab(g);for(t=this.Bb(c);a<=g;++a)for(c=b;c<=t;++c)(e=this.ee(a,c,!1))&&e.dump(k)};e.prototype.As=function(a){var b, -g,c,k,t;b=a.left;c=a.top;g=a.right;for(k=a.bottom;b<=g;++b)for(a=c;a<=k;++a)if(t=this.ee(b,a,!1))t.Bf=!1};Xa=e;var A=[];a.prototype.rd=function(){return this.Za.rd()};a.prototype.pk=function(a){this.Za.add(a)};a.prototype.remove=function(a){this.Za.remove(a)};a.prototype.dump=function(a){xa(a,this.Za.Ld())};aa=a;var x=[];l.prototype.rd=function(){if(!this.Za.length)return!0;if(this.Za.length>this.$c.count())return!1;this.Yj();return!0};l.prototype.pk=function(a){this.$c.contains(a)?(this.$c.remove(a), -this.$c.rd()&&(this.eg=!1)):this.Za.length?(this.Za[this.Za.length-1].Wc()>a.Wc()&&(this.Bf=!1),this.Za.push(a)):(this.Za.push(a),this.Bf=!0)};l.prototype.remove=function(a){this.$c.add(a);this.eg=!0;30<=this.$c.count()&&this.Yj()};l.prototype.Yj=function(){this.eg&&(this.$c.count()===this.Za.length?this.reset():(Pa(this.Za,this.$c),this.$c.clear(),this.eg=!1))};l.prototype.Qq=function(){this.Bf||(this.Za.sort(k),this.Bf=!0)};l.prototype.reset=function(){U(this.Za);this.Bf=!0;this.$c.clear();this.eg= -!1};l.prototype.dump=function(a){this.Yj();this.Qq();this.Za.length&&a.push(this.Za)};ca=l;var E="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":E[a-1]};Za=function(a,b,g){if(g)switch(a.qb=g.ONE,a.nb=g.ONE_MINUS_SRC_ALPHA,b){case 1:a.qb=g.ONE;a.nb=g.ONE;break;case 3:a.qb=g.ONE;a.nb=g.ZERO;break;case 4:a.qb=g.ONE_MINUS_DST_ALPHA;a.nb=g.ONE;break;case 5:a.qb=g.DST_ALPHA;a.nb= -g.ZERO;break;case 6:a.qb=g.ZERO;a.nb=g.SRC_ALPHA;break;case 7:a.qb=g.ONE_MINUS_DST_ALPHA;a.nb=g.ZERO;break;case 8:a.qb=g.ZERO;a.nb=g.ONE_MINUS_SRC_ALPHA;break;case 9:a.qb=g.DST_ALPHA;a.nb=g.ONE_MINUS_SRC_ALPHA;break;case 10:a.qb=g.ONE_MINUS_DST_ALPHA,a.nb=g.SRC_ALPHA}};$a=function(a){return Math.round(1E6*a)/1E6};ab=function(a,b){return"string"!==typeof a||"string"!==typeof b||a.length!==b.length?!1:a===b?!0:a.toLowerCase()===b.toLowerCase()};bb=function(a){a=a.target;return!a||a===document||a=== -window||document&&document.body&&a===document.body||ab(a.tagName,"canvas")?!0:!1}})();var Tb="undefined"!==typeof Float32Array?Float32Array:Array;function Ub(d){var q=new Tb(3);d&&(q[0]=d[0],q[1]=d[1],q[2]=d[2]);return q}function Vb(d){var q=new Tb(16);d&&(q[0]=d[0],q[1]=d[1],q[2]=d[2],q[3]=d[3],q[4]=d[4],q[5]=d[5],q[6]=d[6],q[7]=d[7],q[8]=d[8],q[9]=d[9],q[10]=d[10],q[11]=d[11],q[12]=d[12],q[13]=d[13],q[14]=d[14],q[15]=d[15]);return q} -function Wb(d,q){q[0]=d[0];q[1]=d[1];q[2]=d[2];q[3]=d[3];q[4]=d[4];q[5]=d[5];q[6]=d[6];q[7]=d[7];q[8]=d[8];q[9]=d[9];q[10]=d[10];q[11]=d[11];q[12]=d[12];q[13]=d[13];q[14]=d[14];q[15]=d[15]}function Xb(d,q){var h=q[0],p=q[1];q=q[2];d[0]*=h;d[1]*=h;d[2]*=h;d[3]*=h;d[4]*=p;d[5]*=p;d[6]*=p;d[7]*=p;d[8]*=q;d[9]*=q;d[10]*=q;d[11]*=q} -function Yb(d,q,h,p){p||(p=Vb());var n,r,f,b,e,c,a,g,l=d[0],k=d[1];d=d[2];r=h[0];f=h[1];n=h[2];h=q[1];c=q[2];l===q[0]&&k===h&&d===c?(d=p,d[0]=1,d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[5]=1,d[6]=0,d[7]=0,d[8]=0,d[9]=0,d[10]=1,d[11]=0,d[12]=0,d[13]=0,d[14]=0,d[15]=1):(h=l-q[0],c=k-q[1],a=d-q[2],g=1/Math.sqrt(h*h+c*c+a*a),h*=g,c*=g,a*=g,q=f*a-n*c,n=n*h-r*a,r=r*c-f*h,(g=Math.sqrt(q*q+n*n+r*r))?(g=1/g,q*=g,n*=g,r*=g):r=n=q=0,f=c*r-a*n,b=a*q-h*r,e=h*n-c*q,(g=Math.sqrt(f*f+b*b+e*e))?(g=1/g,f*=g,b*=g,e*=g):e=b=f=0, -p[0]=q,p[1]=f,p[2]=h,p[3]=0,p[4]=n,p[5]=b,p[6]=c,p[7]=0,p[8]=r,p[9]=e,p[10]=a,p[11]=0,p[12]=-(q*l+n*k+r*d),p[13]=-(f*l+b*k+e*d),p[14]=-(h*l+c*k+a*d),p[15]=1)} -(function(){function d(b,e,c){this.sd=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.la=!!c;this.oi=this.Fg=!1;this.Nj=0;this.tj=1;this.Pl=1E3;this.pt=(this.Pl-this.tj)/32768;this.Dj=Ub([0,0,100]);this.tn=Ub([0,0,0]);this.No=Ub([0,1,0]);this.Eh=Ub([1,1,1]);this.qm=!0;this.Ji=Vb();this.ic=Vb();this.Ck=Vb();this.Mj=Vb();this.C=b;this.Mm()}function q(b,e,c){this.C=b;this.rh=e;this.name=c;this.oc=b.getAttribLocation(e,"aPos");this.oe=b.getAttribLocation(e, -"aTex");this.rn=b.getUniformLocation(e,"matP");this.Fi=b.getUniformLocation(e,"matMV");this.If=b.getUniformLocation(e,"opacity");this.Jk=b.getUniformLocation(e,"colorFill");this.sn=b.getUniformLocation(e,"samplerFront");this.Wg=b.getUniformLocation(e,"samplerBack");this.Ve=b.getUniformLocation(e,"destStart");this.Ue=b.getUniformLocation(e,"destEnd");this.Yg=b.getUniformLocation(e,"seconds");this.Lk=b.getUniformLocation(e,"pixelWidth");this.Kk=b.getUniformLocation(e,"pixelHeight");this.Vg=b.getUniformLocation(e, -"layerScale");this.Ug=b.getUniformLocation(e,"layerAngle");this.Zg=b.getUniformLocation(e,"viewOrigin");this.Xg=b.getUniformLocation(e,"scrollPos");this.ds=!!(this.Lk||this.Kk||this.Yg||this.Wg||this.Ve||this.Ue||this.Vg||this.Ug||this.Zg||this.Xg);this.Bn=this.Cn=-999;this.Ii=1;this.xn=this.wn=0;this.zn=this.vn=this.un=1;this.Fn=this.En=this.Dn=this.Hn=this.Gn=this.yn=0;this.Bk=[];this.An=Vb();this.If&&b.uniform1f(this.If,1);this.Jk&&b.uniform4f(this.Jk,1,1,1,1);this.sn&&b.uniform1i(this.sn,0);this.Wg&& -b.uniform1i(this.Wg,1);this.Ve&&b.uniform2f(this.Ve,0,0);this.Ue&&b.uniform2f(this.Ue,1,1);this.Vg&&b.uniform1f(this.Vg,1);this.Ug&&b.uniform1f(this.Ug,0);this.Zg&&b.uniform2f(this.Zg,0,0);this.Xg&&b.uniform2f(this.Xg,0,0);this.Yg&&b.uniform1f(this.Yg,0);this.Je=!1}function h(b,e){return b[0]===e[0]&&b[1]===e[1]&&b[2]===e[2]&&b[3]===e[3]&&b[4]===e[4]&&b[5]===e[5]&&b[6]===e[6]&&b[7]===e[7]&&b[8]===e[8]&&b[9]===e[9]&&b[10]===e[10]&&b[11]===e[11]&&b[12]===e[12]&&b[13]===e[13]&&b[14]===e[14]&&b[15]=== -e[15]}function p(b,e){this.type=b;this.A=e;this.C=e.C;this.Xc=this.zb=this.Vn=0;this.O=this.tc=null;this.uo=[]}var n=Vb();d.prototype.Mm=function(){var b=this.C,e;this.gn=1;this.Re=this.ke=null;this.Uh=1;b.clearColor(0,0,0,0);b.clear(b.COLOR_BUFFER_BIT);b.enable(b.BLEND);b.blendFunc(b.ONE,b.ONE_MINUS_SRC_ALPHA);b.disable(b.CULL_FACE);b.disable(b.STENCIL_TEST);b.disable(b.DITHER);this.la?(b.enable(b.DEPTH_TEST),b.depthFunc(b.LEQUAL)):b.disable(b.DEPTH_TEST);this.jn=b.ONE;this.cn=b.ONE_MINUS_SRC_ALPHA; -this.rj=new Float32Array(8E3*(this.la?3:2));this.ij=new Float32Array(16E3);this.$n=new Float32Array(32E3);this.Vk=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.Vk);b.bufferData(b.ARRAY_BUFFER,this.$n.byteLength,b.DYNAMIC_DRAW);this.Dh=Array(4);this.xh=Array(4);for(e=0;4>e;e++)this.Dh[e]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.Dh[e]),b.bufferData(b.ARRAY_BUFFER,this.rj.byteLength,b.DYNAMIC_DRAW),this.xh[e]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.xh[e]),b.bufferData(b.ARRAY_BUFFER, -this.ij.byteLength,b.DYNAMIC_DRAW);this.jd=0;this.gs=b.createBuffer();b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.gs);for(var c=new Uint16Array(12E3),a=e=0;12E3>e;)c[e++]=a,c[e++]=a+1,c[e++]=a+2,c[e++]=a,c[e++]=a+2,c[e++]=a+3,a+=4;b.bufferData(b.ELEMENT_ARRAY_BUFFER,c,b.STATIC_DRAW);this.Wk=this.Vf=this.Md=0;this.Ea=[];e=this.la?"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}";c=this.mg({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}"},e,"");this.Ea.push(c);c=this.mg({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.Ea.push(c);c=this.mg({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},e,"");this.Ea.push(c);c=this.mg({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"}, -e,"");this.Ea.push(c);for(var g in Zb)Zb.hasOwnProperty(g)&&this.Ea.push(this.mg(Zb[g],e,g));b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,null);this.Ud=[];this.gd=0;this.ob=!1;this.om=this.Pg=-1;this.pf=null;this.Xj=b.createFramebuffer();this.Wh=this.Vi=null;this.fm=!1;this.la&&(this.Wh=b.createRenderbuffer());this.ue=Ub([0,0,0]);this.In=b.getParameter(b.ALIASED_POINT_SIZE_RANGE)[1];2048"===e.name&&b.vertexAttribPointer(e.oc,4,b.FLOAT,!1,0,0));if(0"!==e.name&&b.vertexAttribPointer(e.oc,this.la?3:2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.xh[this.jd]);b.bufferSubData(b.ARRAY_BUFFER,0,this.ij.subarray(0,this.Vf));e&&0<=e.oe&&""!==e.name&&b.vertexAttribPointer(e.oe,2, -b.FLOAT,!1,0,0)}for(var c,b=0,e=this.gd;bc||0>a)){var g=this.Yb();g.type=7;g.zb=1;g.O||(g.O=Vb());g.O[0]=b;g.O[1]=e;g.O[2]=c;g.O[3]=a;this.ob=!1}};d.prototype.po=function(b){if(this.la&&(b=!!b,this.Fg!==b)){var e=this.Yb();e.type=14;e.zb=b?1:0;this.ob=!1;this.Fg=b;this.Vi=null;this.Fg?this.Lb(2):this.Lb(0)}};d.prototype.oo=function(b){if(this.la){var e=this.Yb();e.type=13;e.zb=b?1:0;this.ob=!1}};d.prototype.xm=function(){Wb(this.Ck,n);this.qc();this.kc();var b=this.width/2,e=this.height/2;this.kh(-b,e,b,e,b,-e,-b,-e);Wb(n, -this.ic);this.kc()};d.prototype.no=function(b,e,c){this.Lb(3);var a=this.Yb();a.type=12;a.O||(a.O=Vb());a.O[0]=b;a.O[1]=e;a.O[2]=c;a.O[3]=1;this.ob=!1};d.prototype.bt=function(){this.Lb(0)};d.prototype.Ss=function(){this.Lb(2)};d.prototype.Ns=function(){this.ae();this.C.flush()};var r=[],f={};d.prototype.kq=function(){U(r);f={}};d.prototype.Di=function(b,e,c,a){e=!!e;c=!!c;var g=b.src+","+e+","+c+(e?",undefined":""),l=null;if("undefined"!==typeof b.src&&f.hasOwnProperty(g))return l=f[g],l.Mh++,l; -this.ae();var k=this.C,d=ga(b.width)&&ga(b.height),l=k.createTexture();k.bindTexture(k.TEXTURE_2D,l);k.pixelStorei(k.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var n=k.RGBA,h=k.RGBA,m=k.UNSIGNED_BYTE;if(a&&!this.sd)switch(a){case 1:h=n=k.RGB;break;case 2:m=k.UNSIGNED_SHORT_4_4_4_4;break;case 3:m=k.UNSIGNED_SHORT_5_5_5_1;break;case 4:h=n=k.RGB,m=k.UNSIGNED_SHORT_5_6_5}if(!d&&e){a=document.createElement("canvas");a.width=ia(b.width);a.height=ia(b.height);var u=a.getContext("2d");u.webkitImageSmoothingEnabled= -c;u.mozImageSmoothingEnabled=c;u.msImageSmoothingEnabled=c;u.imageSmoothingEnabled=c;u.drawImage(b,0,0,b.width,b.height,0,0,a.width,a.height);k.texImage2D(k.TEXTURE_2D,0,n,h,m,a)}else k.texImage2D(k.TEXTURE_2D,0,n,h,m,b);e?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.REPEAT),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.REPEAT)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.CLAMP_TO_EDGE),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.CLAMP_TO_EDGE));c?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER, -k.LINEAR),d&&this.qm?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.LINEAR_MIPMAP_LINEAR),k.generateMipmap(k.TEXTURE_2D)):k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.LINEAR)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.NEAREST),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.NEAREST));k.bindTexture(k.TEXTURE_2D,null);this.ke=null;l.Ae=b.width;l.ze=b.height;l.Mh=1;l.jm=g;r.push(l);return f[g]=l};d.prototype.ec=function(b,e,c,a){this.ae();var g=this.C;this.sd&&(a=!1);var l= -g.createTexture();g.bindTexture(g.TEXTURE_2D,l);g.texImage2D(g.TEXTURE_2D,0,g.RGBA,b,e,0,g.RGBA,a?g.UNSIGNED_SHORT_4_4_4_4:g.UNSIGNED_BYTE,null);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,c?g.LINEAR:g.NEAREST);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,c?g.LINEAR:g.NEAREST);g.bindTexture(g.TEXTURE_2D,null);this.ke=null;l.Ae=b;l.ze=e;r.push(l);return l};d.prototype.nt= -function(b,e,c){this.ae();var a=this.C;this.sd&&(c=!1);a.bindTexture(a.TEXTURE_2D,e);a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,c?a.UNSIGNED_SHORT_4_4_4_4:a.UNSIGNED_BYTE,b)}catch(g){console&&console.error&&console.error("Error updating WebGL texture: ",g)}a.bindTexture(a.TEXTURE_2D,null);this.ke=null};d.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.Mh&&1=b?a[3]:256>=b?a[2]:512>=b?a[1]:a[0]}function h(){try{return!!window.indexedDB}catch(a){return!1}}function p(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})} -function n(a,b,g,c){try{var k=indexedDB.open("_C2SaveStates");k.onupgradeneeded=p;k.onerror=c;k.onsuccess=function(k){k=k.target.result;k.onerror=c;k.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:b}).onsuccess=g}}catch(e){c(e)}}function r(a,b,g){try{var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=p;c.onerror=g;c.onsuccess=function(c){c=c.target.result;c.onerror=g;var k=c.transaction(["saves"]).objectStore("saves").get(a);k.onsuccess=function(){k.result?b(k.result.data): -b(null)}}}catch(k){g(k)}}function f(){v("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1e?(e*=b,5===d?(f=e*g/this.Ta,1f&&(f=1/Math.ceil(1/f)),e=this.Ta*f/g,f=this.Sa*f/g,c=(a-e)/2,k=(b-f)/2,a=e,b=f):(c=(a-e)/2,a=e)):(f=a/e,5===d?(f=f*g/this.Sa,1f&&(f=1/Math.ceil(1/f)), -e=this.Ta*f/g,f=this.Sa*f/g,c=(a-e)/2,k=(b-f)/2,a=e):k=(b-f)/2,b=f),m&&!this.he&&(k=c=0)):this.he&&this.Ig&&0===this.ym&&(c=Math.floor((a-this.Ta)/2),k=Math.floor((b-this.Sa)/2),a=this.Ta,b=this.Sa),2>d&&(this.gg=g),this.ie&&this.$m&&1e&&(this.G=this.H/d)):3===d&&(e=this.Ta/this.Sa,d=this.Rg/this.Qg,d>e?this.H=this.G*d:d=m)m=5E4;a+=m;f.src&&(f.complete||f.loaded)&&!f.im?b+=m:k=!1}k&&this.Ls&&this.hg&&(l||(this.hg.Du(),l=!0),c=this.hg.xu(),b+=c,cthis.ne&&(this.Ec||500<=c&& -this.nn!=this.Jc)){b.clearRect(0,0,f,l);var c=f/2,l=l/2,f=0===this.ne&&this.me.Hi.complete,d=40*m,n=0,u=80*m,w;if(f){var h=this.me.Hi,u=h.width*m;w=h.height*m;d=u/2;n=w/2;b.drawImage(h,O(c-d),O(l-n),u,w)}1>=this.ne?(c=O(c-d)+.5,l=O(l+(n+(f?12*m:0)))+.5,b.fillStyle=a?"red":"DodgerBlue",b.fillRect(c,l,Math.floor(u*this.Jc),6*m),b.strokeStyle="black",b.strokeRect(c,l,u,6*m),b.strokeStyle="white",b.strokeRect(c-1*m,l-1*m,u+2*m,8*m)):2===this.ne&&(b.font=this.Fc?"12pt ArialMT":"12pt Arial",b.fillStyle= -a?"#f00":"#999",b.Eu="middle",m=Math.round(100*this.Jc)+"%",f=b.measureText?b.measureText(m):null,b.fillText(m,c-(f?f.width:0)/2,l));this.nn=this.Jc}else if(4===this.ne){this.Mq(b);e?e(function(){g.go()}):setTimeout(function(){g.go()},16);return}}setTimeout(function(){g.go()},this.Ec?10:100)}}};var w=-1,G="undefined"===typeof cr_is_preview?200:0,z=!0,m=!1,u=0,J=0,P="undefined"===typeof cr_is_preview?3E3:0,M=null,B=null,A=0;d.prototype.Mq=function(b){if(!k){for(var g=Math.ceil(this.width),c=Math.ceil(this.height), -e=this.me.Hi,f=this.me.Ks,l=this.me.ot,d=0;4>d;++d)if(!e[d].complete||!f[d].complete||!l[d].complete)return;0===A&&(w=Date.now());var d=Date.now(),n=!1,h=b,r,p;z||m?(b.clearRect(0,0,g,c),M&&M.width===g&&M.height===c||(M=document.createElement("canvas"),M.width=g,M.height=c,B=M.getContext("2d")),h=B,n=!0,z&&1===A&&(w=Date.now())):b.globalAlpha=1;h.fillStyle="#333333";h.fillRect(0,0,g,c);256=P&&!m&&1<=this.Jc&&(m=!0,J=d);if(m&&d-J>=300+G||"undefined"!==typeof cr_is_preview&&1<=this.Jc&&500>Date.now()-w)k=!0,m=z=!1,this.me=B=M=null;++A}};d.prototype.bs=function(){this.bb&&(this.canvas.parentNode.removeChild(this.bb),this.bb=this.Uk=null);this.fj=Date.now();this.Te=Oa();var a,b,g;if(this.Ml)for(a=0,b=this.u.length;aa||2===this.Tb&&bb&&(b=0),this.$d=b/1E3,.51/this.Ln&&(this.$d=1/this.Ln));this.ti=a;this.rf=this.$d*this.Wf;this.Hb.add(this.rf);this.sj.add(this.$d);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Ig)&&!this.ge;2<=this.Tb||a&&0b||2===c&&ga++;)this.pm(this.jg);a=0;for(b=this.ld.length;ab.Vh.length&&b.Vh.push(a)};var E=[];d.prototype.Be=function(a,b,g,c,k,f){var e,l,m,d;if(!a)return null;var n=this.u[a[1]], -u=n.Ja.je;if(this.Lg&&u&&!n.uk||u&&!this.A&&11===a[0][11])return null;var w=b;u||(b=null);var h;n.Vh.length?(h=n.Vh.pop(),h.Zb=!0,n.Ja.fa.call(h,n)):(h=new n.Ja.fa(n),h.Zb=!1);!g||f||this.xd.hasOwnProperty(a[2].toString())?h.uid=this.eh++:h.uid=a[2];this.xd[h.uid.toString()]=h;h.ho=this.On++;h.Ke=n.j.length;e=0;for(l=this.Ac.length;ea&&(a=0);a>=this.ca.M.length&&(a=this.ca.M.length-1);return this.ca.M[a]};d.prototype.Jj=function(a){var b,g;b=0;for(g=a.length;b=k;)e=1/k,k*=2,a.x+=b*e*(l?1:-1),a.y+=g*e*(l?1:-1),a.B(),this.jc(a,c)?e=l=!0:(e=l=!1, -f=a.x,m=a.y);e&&(a.x=f,a.y=m,a.B())};d.prototype.Qs=function(a,b){var g=ea(b)?100:b,c=0,k=a.x,e=a.y,l=0,f=0,m=0,d=this.rb(a);if(!d)return!0;for(;c<=g;){switch(l){case 0:f=0;m=-1;c++;break;case 1:f=1;m=-1;break;case 2:f=1;m=0;break;case 3:m=f=1;break;case 4:f=0;m=1;break;case 5:f=-1;m=1;break;case 6:f=-1;m=0;break;case 7:m=f=-1}l=(l+1)%8;a.x=O(k+f*c);a.y=O(e+m*c);a.B();if(!this.jc(a,d)&&(d=this.rb(a),!d))return!0}a.x=k;a.y=e;a.B();return!1};d.prototype.mh=function(a,b){a.hd&&b.hd&&this.gl.push([a, -b])};var L=-1;d.prototype.trigger=function(a,b,g){if(!this.ca)return!1;var c=this.ca.Ge;if(!c)return!1;var k=!1,e,l,f;L++;var m=c.Pj;l=0;for(f=m.length;l=this.Mk.length&&this.Mk.push([])};d.prototype.Is=function(){this.Gi--};d.prototype.Bm=function(){return this.Mk[this.Gi]}; -d.prototype.bl=function(a){this.Yh++;this.Yh>=this.Tj.length&&this.Tj.push(new Eb);var b=this.Eb();b.reset(a);return b};d.prototype.ao=function(){this.Yh--};d.prototype.Eb=function(){return this.Tj[this.Yh]};d.prototype.Cm=function(a,b){for(var g,c,k,e,l,f;b;){g=0;for(c=b.sc.length;ge||e>=a.Pa.length||(a.Pa[e]=k[c]));if(l.je){e=b.w;a.k.T!==e.l&&(k= -a.k,a.k=this.ca.ji(e.l),a.k?(k.Pf(a,!0),a.k.fg(a,!0),a.B(),a.k.oh(0)):(a.k=k,g||this.hf(a)));a.x=e.x;a.y=e.y;a.width=e.w;a.height=e.h;a.Qc=e.zi;a.n=e.hasOwnProperty("a")?e.a:0;a.opacity=e.hasOwnProperty("o")?e.o:1;a.Fb=e.hasOwnProperty("hX")?e.hX:.5;a.Gb=e.hasOwnProperty("hY")?e.hY:.5;a.visible=e.hasOwnProperty("v")?e.v:!0;a.hd=e.hasOwnProperty("ce")?e.ce:!0;a.dh=e.hasOwnProperty("mts")?e.mts:-1;a.hb=e.hasOwnProperty("bm")?e.bm:0;a.kg=Ya(a.hb);this.C&&Za(a,a.hb,this.C);a.B();if(e.hasOwnProperty("fx"))for(g= -0,k=e.fx.length;gl||(a.Qd[l]=e.fx[g].active,a.Ba[l]=e.fx[g].params);a.Pc()}if(f=b.behs)for(c in f)f.hasOwnProperty(c)&&(g=this.Br(a,parseInt(c,10)),0>g||a.I[g].xb(f[c]));b.data&&a.xb(b.data)};Gb=function(a){return new d(document.getElementById(a))};Hb=function(a,b){return new d({dc:!0,width:a,height:b})};window.cr_createRuntime=Gb;window.cr_createDCRuntime=Hb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas"); -a.zj=!0;document.body.appendChild(a);a=new d(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 d(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})(); -window.cr_getC2Runtime=function(){var d=document.getElementById("c2canvas");return d?d.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(d,q){var h=window.cr_getC2Runtime();h&&h.qq(d,q)};window.cr_sizeCanvas=function(d,q){if(0!==d&&0!==q){var h=window.cr_getC2Runtime();h&&h.setSize(d,q)}};window.cr_setSuspended=function(d){var q=window.cr_getC2Runtime();q&&q.setSuspended(d)}; -(function(){function d(a,b){this.b=a;this.Ge=null;this.scrollX=this.b.Ta/2;this.scrollY=this.b.Sa/2;this.scale=1;this.n=0;this.vf=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.Mo=b[3];this.vo=b[4];this.T=b[5];var c=b[6],k,e;this.M=[];this.Dg=[];k=0;for(e=c.length;k=this.M.length&&(m=this.M.length-1);d.k=this.M[m];-1===d.k.j.indexOf(d)&&d.k.j.push(d);d.k.gf=!0}if(!f)for(a=0,c=this.M.length;ac?d.siblings.push(h.j[c]):h.Uc&&(e=this.b.Be(h.Uc,d.k,!0,d.x,d.y,!0),this.b.fb(),h.nj(),d.siblings.push(e),r.push(e)));a=0;for(c=this.Me.length;athis.width-b&&(a=this.width-b);athis.height-b&&(a=this.height-b);aD&&(D=0);0>F&&(F=0);H>Q&&(H=Q);N>L&&(N=L);0>W&&(W=0);0>y&&(y=0);qa>Q&&(qa=Q);ra>L&&(ra=L);Z.left=D/Q;Z.top=1-F/L;Z.right=H/Q;Z.bottom=1-N/L}else Z.left=C.left=0,Z.top=C.top=0,Z.right=C.right=1,Z.bottom=C.bottom=1;na=c&&(a.hh(f[0].Na)||0!==x||0!== -na||1!==c.opacity||c.type.Ja.Mn)||b&&!c&&1!==b.opacity;a.mo();if(na){p[I]||(p[I]=a.ec(Q,L,this.b.Q));if(p[I].Ae!==Q||p[I].ze!==L)a.deleteTexture(p[I]),p[I]=a.ec(Q,L,this.b.Q);a.Lb(0);a.rc(p[I]);R=ra-y;a.clearRect(W,L-y-R,qa-W,R);c?c.Db(a):(a.$b(this.b.Qa),a.$e(b.opacity),a.qc(),a.translate(-t,-S),a.kc(),a.ad(D,N,H,N,H,F,D,F,Z));C.left=C.top=0;C.right=C.bottom=1;c&&(E=Z.top,Z.top=Z.bottom,Z.bottom=E);I=1;ha=0}a.$e(1);x=f.length-1;var Wa=a.$k(f[x].Na)||!b&&!c&&!this.b.gc,wa=0;B=0;for(A=f.length;Bc||(b&&this.lc&&a.Kb&&a.Kb.right>=a.Kb.left&&(a.wa(),this.cb.update(a,a.Kb,null),a.Kb.set(0,0,-1,-1)),c===this.j.length-1?this.j.pop():(ta(this.j,c),this.oh(c)),this.Mc=!0)};h.prototype.fg=function(a,b){a.Qc=this.j.length;this.j.push(a); -b&&this.lc&&a.Kb&&a.B();this.Mc=!0};h.prototype.Ms=function(a){this.j.unshift(a);this.oh(0)};h.prototype.Cs=function(a,b,c){var e=a.Wc();b=b.Wc();ta(this.j,e);ethis.za||c.top>this.ya||(b.globalCompositeOperation=a.kg,a.Bc(b))}};h.prototype.oj=function(){this.kd=!0;var a=this.Wd(!0),b=this.Wd(!1); -this.kd=!1;this.b.Hc&&(a=Math.round(a),b=Math.round(b));this.Wi(a,b,null)};h.prototype.Wi=function(a,b,c){var e=this.Vb();this.na=a;this.oa=b;this.za=a+1/e*this.b.H;this.ya=b+1/e*this.b.G;a=this.Ub();0!==a&&(c&&(c.translate(this.b.H/2,this.b.G/2),c.rotate(-a),c.translate(this.b.H/-2,this.b.G/-2)),this.Jd.set(this.na,this.oa,this.za,this.ya),this.Jd.offset((this.na+this.za)/-2,(this.oa+this.ya)/-2),this.Ho.to(this.Jd,a),this.Ho.hm(this.Jd),this.Jd.offset((this.na+this.za)/2,(this.oa+this.ya)/2),this.na= -this.Jd.left,this.oa=this.Jd.top,this.za=this.Jd.right,this.ya=this.Jd.bottom)};h.prototype.De=function(a){if(this.bd=this.fi){this.b.Qa||(this.b.Qa=a.ec(this.b.H,this.b.G,this.b.Q));if(this.b.Qa.Ae!==this.b.H||this.b.Qa.ze!==this.b.G)a.deleteTexture(this.b.Qa),this.b.Qa=a.ec(this.b.H,this.b.G,this.b.Q);a.rc(this.b.Qa)}this.kd=!0;var b=this.Wd(!0),c=this.Wd(!1);this.kd=!1;this.b.Hc&&(b=Math.round(b),c=Math.round(c));this.Wi(b,c,null);b=this.Vb();a.qc();a.scale(b,b);a.Xi(-this.Ub());a.translate((this.na+ -this.za)/-2,(this.oa+this.ya)/-2);a.kc();this.lc?(this.$a.left=this.cb.Ab(this.na),this.$a.top=this.cb.Bb(this.oa),this.$a.right=this.cb.Ab(this.za),this.$a.bottom=this.cb.Bb(this.ya),this.Mc||!this.$a.rg(this.Hf)?(n(this.vd),b=this.hk(),this.Mc=!1,this.Hf.lg(this.$a)):b=this.vd):b=this.j;for(var e,f=null,c=b.length-1;0<=c;--c)e=b[c],e!==f&&(this.Kq(b[c],a),f=e);this.lc&&(this.vd=b);this.Oc||(this.Kj=this.b.Ee++,a.Zi(this.Kj),a.no(1,1,1),a.xm(),a.Ss())};h.prototype.Db=function(a){var b=0,c=0;if(this.bd= -this.fi||1!==this.opacity||0this.za||c.top>this.ya||(b.Zi(a.Ee),a.Uo?this.Lq(a,b):(b.Lb(0),b.re(a.qb,a.nb),a.Db(b)))}};h.prototype.Kq=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.wa();var c=a.Aa;c.rightthis.za||c.top>this.ya||(a.Ee=this.b.Ee++,0===a.hb&&1===a.opacity&&a.Fd&&a.De&&(b.Zi(a.Ee),a.De(b)))}};h.prototype.Lq=function(a, -b){var c=a.Y[0].Na,e=a.Y[0].index,f=this.Vb();if(1!==a.Y.length||b.$k(c)||b.Os(c)||(a.n||a.k.Ub())&&b.hh(c)||1!==a.opacity||a.type.Ja.Mn)this.Ra.hl(b,this,a,this.bd?this.b.Qa:this.Ra.wg()),b.qc(),b.scale(f,f),b.Xi(-this.Ub()),b.translate((this.na+this.za)/-2,(this.oa+this.ya)/-2),b.kc();else{b.Lb(c);b.re(a.qb,a.nb);b.Ti(c)&&(this.b.ea=!0);var d=0,h=0,m=0,n=0;b.hh(c)&&(c=a.Aa,d=this.ia(c.left,c.top,!0,!0),h=this.ia(c.left,c.top,!1,!0),m=this.ia(c.right,c.bottom,!0,!0),c=this.ia(c.right,c.bottom,!1, -!0),d=d/windowWidth,h=1-h/windowHeight,m=m/windowWidth,n=1-c/windowHeight);b.Rf(this.bd?this.b.Qa:this.Ra.wg(),1/a.width,1/a.height,d,h,m,n,f,this.Ub(),this.na,this.oa,(this.na+this.za)/2,(this.oa+this.ya)/2,this.b.Hb.X,a.Ba[e]);a.Db(b)}};h.prototype.Wd=function(a){var b=0,c=0,e=this.b.devicePixelRatio;this.b.ie&&(b*=e,c*=e);var e=this.b.Wn,f=this.b.Xn,e=(this.Ra.scrollX-e)*this.zd+e,f=(this.Ra.scrollY-f)*this.Ad+f,d,h,m=1/this.Vb(!1);d=e-this.b.H*m/2;h=f-this.b.G*m/2;d+=b*m;h+=c*m;c=this.Ub();0!== -c&&(d-=e,h-=f,b=Math.cos(c),c=Math.sin(c),m=d*b-h*c,h=h*b+d*c,d=m+e,h+=f);return a?d:h};h.prototype.ia=function(a,b,c,e){var f=this.b.Wn,d=this.b.Xn,h=(this.Ra.scrollX-f)*this.zd+f,m=(this.Ra.scrollY-d)*this.Ad+d,d=h,f=m,n=this.Ub();if(0!==n){a-=h;b-=m;var q=Math.cos(-n),n=Math.sin(-n),r=a*q-b*n;b=b*q+a*n;a=r+h;b+=m}h=1/this.Vb(!e);e?(d-=this.b.H*h/2,f-=this.b.G*h/2):(d-=this.b.width*h/2,f-=this.b.height*h/2);d=(a-d)/h;f=(b-f)/h;a=this.b.devicePixelRatio;this.b.ie&&!e&&(d/=a,f/=a);return c?d:f};h.prototype.eb= -function(){var a,b,c,e={s:this.scale,a:this.n,vl:this.na,vt:this.oa,vr:this.za,vb:this.ya,v:this.visible,bc:this.yc,t:this.Oc,px:this.zd,py:this.Ad,o:this.opacity,zr:this.Fh,fx:[],cg:this.ng,instances:[]};a=0;for(b=this.K.length;aa[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2=w.length&&(w.length=a.length+1);w[a.length]||(w[a.length]=[]);g=w[a.length];b=0;for(c=g.length;b=b.length&&(b.length=this.We+1),b[this.We]=a):this.data=a};g.prototype.xg= -function(){var a=this.b.Bm();return!this.parent||this.Kg||!a||this.ri?this.data:this.We>=a.length||"undefined"===typeof a[this.We]?this.ok:a[this.We]};g.prototype.Va=function(){!this.parent||this.Kg||this.ri||this.cf(this.ok)};Fb=g;l.prototype.toString=function(){return"include:"+this.Cg.toString()};l.prototype.Ka=function(){this.Cg=this.b.Uj[this.es];this.sheet.Lm.add(this);this.ua=h(this.ua);for(var a=this.parent;a;)a.group&&a.Rh.push(this),a=a.parent;this.Oo()};l.prototype.Va=function(){this.parent&& -this.b.jh(this.b.u);this.Cg.lk||this.Cg.Va(!0);this.parent&&this.b.Of(this.b.u)};l.prototype.Oo=function(){for(var a=this.parent;a;){if(a.group&&!a.zg){this.gb=!1;return}a=a.parent}this.gb=!0};Pb=l;k.prototype.reset=function(a){this.fc=a;this.Pb=this.Qb=0;U(this.Co);this.Rj=this.Se=!1};Eb=k})(); -(function(){function d(f,b){this.pc=f;this.b=f.b;this.type=b[0];this.get=[this.gr,this.cr,this.pr,this.sr,this.Rq,this.qr,this.kr,this.Zq,this.jr,this.or,this.Sq,this.nr,this.$q,this.lr,this.hr,this.ir,this.dr,this.er,this.Yq,this.rr,this.mr,this.fr,this.Xq,this.br][this.type];var e=null;this.wd=this.P=this.Ca=this.ab=this.kj=this.second=this.first=this.value=null;this.zc=-1;this.Dc=null;this.Vo=-1;this.He=this.Ch=null;this.Qf=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first= -new Nb(f,b[1]);break;case 18:this.first=new Nb(f,b[1]);this.second=new Nb(f,b[2]);this.kj=new Nb(f,b[3]);break;case 19:this.ab=this.b.Pd(b[1]);this.ab!==Y.prototype.wb.random&&this.ab!==Y.prototype.wb.jq||this.pc.ro();this.Ca=[];this.P=[];3===b.length?(e=b[2],this.Ca.length=e.length+1):this.Ca.length=1;break;case 20:this.wd=this.b.u[b[1]];this.zc=-1;this.ab=this.b.Pd(b[2]);this.Qf=b[3];Rb.Function&&this.ab===Rb.Function.prototype.wb.yt&&this.pc.ro();b[4]?this.Dc=new Nb(f,b[4]):this.Dc=null;this.Ca= -[];this.P=[];6===b.length?(e=b[5],this.Ca.length=e.length+1):this.Ca.length=1;break;case 21:this.wd=this.b.u[b[1]];this.Qf=b[2];b[3]?this.Dc=new Nb(f,b[3]):this.Dc=null;this.Vo=b[4];break;case 22:this.wd=this.b.u[b[1]];this.wd.hi(b[2]);this.zc=this.wd.ck(b[2]);this.ab=this.b.Pd(b[3]);this.Qf=b[4];b[5]?this.Dc=new Nb(f,b[5]):this.Dc=null;this.Ca=[];this.P=[];7===b.length?(e=b[6],this.Ca.length=e.length+1):this.Ca.length=1;break;case 23:this.Ch=b[1],this.He=null}this.pc.Bs(this.wd);4<=this.type&&17>= -this.type&&(this.first=new Nb(f,b[1]),this.second=new Nb(f,b[2]));if(e){var c,a;c=0;for(a=e.length;c=b||d<=-b)d%=b;0>d&&(d+=b);g.apply(n[d],e)};d.prototype.Xq=function(f){var b=this.wd,e=this.Ca,c=this.P,a=this.Dc,g=this.zc,d=this.ab,k=this.pc.Gd,n=b.ma(),p=n.Cc();if(!p.length)if(n.U.length)p=n.U;else{this.Qf?f.ac(""):f.ka(0);return}e[0]=f;f.Ye=b;f=q();h(c,e,f);a&&(a.get(f),f.Ya()&&(k=f.data,p=b.j));--r;c=p.length;if(k>=c||k<=-c)k%=c;0>k&&(k+=c);k=p[k];p=0;b.J&&(p=k.type.uf[b.md]);d.apply(k.I[g+p],e)};d.prototype.fr=function(f){var b=this.Dc,e=this.wd,c=this.Vo,a=this.pc.Gd, -g=e.ma(),d=g.Cc();if(!d.length)if(g.U.length)d=g.U;else{this.Qf?f.ac(""):f.ka(0);return}if(b){g=q();b.get(g);if(g.Ya()){a=g.data;d=e.j;0!==d.length&&(a%=d.length,0>a&&(a+=d.length));a=e.gk(a);e=a.Pa[c];K(e)?f.ac(e):f.R(e);--r;return}--r}b=d.length;if(a>=b||a<=-b)a%=b;0>a&&(a+=b);a=d[a];d=0;e.J&&(d=a.type.$h[e.md]);e=a.Pa[c+d];K(e)?f.ac(e):f.R(e)};d.prototype.gr=function(f){f.type=X.kf;f.data=this.value};d.prototype.cr=function(f){f.type=X.jf;f.data=this.value};d.prototype.pr=function(f){f.type=X.String; -f.data=this.value};d.prototype.sr=function(f){this.first.get(f);f.Ya()&&(f.data=-f.data)};d.prototype.Rq=function(f){this.first.get(f);var b=q();this.second.get(b);f.Ya()&&b.Ya()&&(f.data+=b.data,b.Af()&&f.Jf());--r};d.prototype.qr=function(f){this.first.get(f);var b=q();this.second.get(b);f.Ya()&&b.Ya()&&(f.data-=b.data,b.Af()&&f.Jf());--r};d.prototype.kr=function(f){this.first.get(f);var b=q();this.second.get(b);f.Ya()&&b.Ya()&&(f.data*=b.data,b.Af()&&f.Jf());--r};d.prototype.Zq=function(f){this.first.get(f); -var b=q();this.second.get(b);f.Ya()&&b.Ya()&&(f.data/=b.data,f.Jf());--r};d.prototype.jr=function(f){this.first.get(f);var b=q();this.second.get(b);f.Ya()&&b.Ya()&&(f.data%=b.data,b.Af()&&f.Jf());--r};d.prototype.or=function(f){this.first.get(f);var b=q();this.second.get(b);f.Ya()&&b.Ya()&&(f.data=Math.pow(f.data,b.data),b.Af()&&f.Jf());--r};d.prototype.Sq=function(f){this.first.get(f);var b=q();this.second.get(b);b.Cf()||f.Cf()?this.Uq(f,b):this.Tq(f,b);--r};d.prototype.Uq=function(f,b){f.Cf()&& -b.Cf()?this.Wq(f,b):this.Vq(f,b)};d.prototype.Wq=function(f,b){f.data+=b.data};d.prototype.Vq=function(f,b){f.Cf()?f.data+=(Math.round(1E10*b.data)/1E10).toString():f.ac(f.data.toString()+b.data)};d.prototype.Tq=function(f,b){f.ka(f.data&&b.data?1:0)};d.prototype.nr=function(f){this.first.get(f);var b=q();this.second.get(b);f.Ya()&&b.Ya()&&(f.data||b.data?f.ka(1):f.ka(0));--r};d.prototype.Yq=function(f){this.first.get(f);f.data?this.second.get(f):this.kj.get(f)};d.prototype.$q=function(f){this.first.get(f); -var b=q();this.second.get(b);f.ka(f.data===b.data?1:0);--r};d.prototype.lr=function(f){this.first.get(f);var b=q();this.second.get(b);f.ka(f.data!==b.data?1:0);--r};d.prototype.hr=function(f){this.first.get(f);var b=q();this.second.get(b);f.ka(f.datab.data?1:0);--r};d.prototype.er=function(f){this.first.get(f); -var b=q();this.second.get(b);f.ka(f.data>=b.data?1:0);--r};d.prototype.br=function(f){var b=this.He.xg();fa(b)?f.R(b):f.ac(b)};Nb=d;p.prototype.Af=function(){return this.type===X.jf};p.prototype.Ya=function(){return this.type===X.kf||this.type===X.jf};p.prototype.Cf=function(){return this.type===X.String};p.prototype.Jf=function(){this.Af()||(this.Cf()&&(this.data=parseFloat(this.data)),this.type=X.jf)};p.prototype.ka=function(f){this.type=X.kf;this.data=Math.floor(f)};p.prototype.R=function(f){this.type= -X.jf;this.data=f};p.prototype.ac=function(f){this.type=X.String;this.data=f};p.prototype.ct=function(f){fa(f)?(this.type=X.jf,this.data=f):K(f)?(this.type=X.String,this.data=f.toString()):(this.type=X.kf,this.data=0)};Mb=p;X={kf:0,jf:1,String:2}})();function Y(d){this.b=d;this.Ob=[]} -Y.prototype.eb=function(){var d={},q,h,p,n,r,f,b,e;d.waits=[];var c=d.waits,a;q=0;for(h=this.Ob.length;q=e+a)return b.L.Every_lastTime=e+a,c>=b.L.Every_lastTime+.04&&(b.L.Every_lastTime=c),b.L.Every_seconds=f,!0;cf)){var b,e,c,a=this.b.Eb(),g;n.length?g=n.pop():g={yb:{},ua:[]};g.Qj=!1;g.time=this.b.Hb.X+f;g.xo="";g.ul=!1;g.sf=a.fc;g.Pb=a.Pb+1;f=0;for(b=this.b.u.length;fa&&(b=a);f.R(b)};h.prototype.rf=function(f){f.R(this.b.rf)};h.prototype.Wf=function(f){f.R(this.b.Wf)};h.prototype.time=function(f){f.R(this.b.Hb.X)};h.prototype.Id=function(f){f.ka(this.b.Id)};h.prototype.Pi=function(f){f.ka(this.b.Pi)};h.prototype.Zj=function(f){f.ka(this.b.Zj)};h.prototype.n=function(f,b,e,c,a){f.R(Ba(Ga(b,e,c,a)))};h.prototype.xs=function(f){f.ka(this.b.ca.height)};h.prototype.left=function(f,b, -e){f.ac(K(b)?b.substr(0,e):"")};h.prototype.right=function(f,b,e){f.ac(K(b)?b.substr(b.length-e):"")};h.prototype.replace=function(f,b,e,c){K(b)&&K(e)&&K(c)?f.ac(b.replace(new RegExp(Ta(e),"gi"),c)):f.ac(K(b)?b:"")};h.prototype.trim=function(f,b){f.ac(K(b)?b.trim():"")};h.prototype.jq=function(f){var b=O(Math.random()*(arguments.length-1));f.ct(arguments[b+1])};h.prototype.Lj=function(f){f.R(this.b.Lj/1E3)};h.prototype.Ei=function(f){f.R(this.b.Ei)};p.wb=new h;p.Us=function(){var f,b,e,c,a,g,d=this.b.Eb(); -f=0;for(e=this.Ob.length;fthis.b.Hb.X)continue;d.fc=c.sf;d.Pb=c.Pb;d.Qb=0;for(b in c.yb)c.yb.hasOwnProperty(b)&&(a=this.b.u[parseInt(b,10)].ma(),g=c.yb[b],a.Da=g.Yi,va(a.j,g.qd),a=g,U(a.qd),r.push(a));c.sf.Ts();this.b.Jj(c.ua);c.Qj=!0}b=f=0;for(e=this.Ob.length;fa.za||b.top>a.ya)},a.Jt=function(){this.wa();var a=this.Aa,b=this.b.ca;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},a.Vt=function(a,b,c){var e=this.ma(), -g=e.Cc();if(!g.length)return!1;var f=g[0],d=f,h=Ka(f.x,f.y,b,c),l,n,q;l=1;for(n=g.length;lh)h=q,d=f;e.fh(d);return!0},g.ku=function(a){this.x!==a&&(this.x=a,this.B())},g.lu=function(a){this.y!==a&&(this.y=a,this.B())},g.hu=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.B()},g.Mp=function(a,b){var c=a.Kr(this);if(c){var e;c.fk?(e=c.fk(b,!0),c=c.fk(b,!1)):(e=c.x,c=c.y);if(this.x!==e||this.y!==c)this.x=e,this.y=c,this.B()}},g.Ot= -function(a){0!==a&&(this.x+=Math.cos(this.n)*a,this.y+=Math.sin(this.n)*a,this.B())},g.Nt=function(a,b){0!==b&&(this.x+=Math.cos(V(a))*b,this.y+=Math.sin(V(a))*b,this.B())},l.pu=function(a){a.R(this.x)},l.qu=function(a){a.R(this.y)},l.rf=function(a){a.R(this.b.ug(this))});r&&(a.Bt=function(a,b){return Qb(this.width,a,b)},a.zt=function(a,b){return Qb(this.height,a,b)},g.Sp=function(a){this.width!==a&&(this.width=a,this.B())},g.fu=function(a){this.height!==a&&(this.height=a,this.B())},g.iu=function(a, -b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.B()},l.ou=function(a){a.R(this.width)},l.Ft=function(a){a.R(this.height)},l.ut=function(a){this.wa();a.R(this.Aa.left)},l.xt=function(a){this.wa();a.R(this.Aa.top)},l.wt=function(a){this.wa();a.R(this.Aa.right)},l.tt=function(a){this.wa();a.R(this.Aa.bottom)});f&&(a.$o=function(a,b){return Ha(this.n,V(b))<=V(a)},a.np=function(a){return Ja(this.n,V(a))},a.kp=function(a,b){var c=Fa(a),e=Fa(b),g=Da(this.n);return Ja(e,c)?Ja(g,c)&& -!Ja(g,e):!(!Ja(g,c)&&Ja(g,e))},g.cu=function(a){a=V(Ca(a));isNaN(a)||this.n===a||(this.n=a,this.B())},g.Zt=function(a){0===a||isNaN(a)||(this.n+=V(a),this.n=Da(this.n),this.B())},g.$t=function(a){0===a||isNaN(a)||(this.n-=V(a),this.n=Da(this.n),this.B())},g.au=function(a,b){var c=Ia(this.n,V(b),V(a));isNaN(c)||this.n===c||(this.n=c,this.B())},g.bu=function(a,b,c){a=Ia(this.n,Math.atan2(c-this.y,b-this.x),V(a));isNaN(a)||this.n===a||(this.n=a,this.B())},g.ju=function(a,b){var c=Math.atan2(b-this.y, -a-this.x);isNaN(c)||this.n===c||(this.n=c,this.B())},l.qt=function(a){a.R(Ea(this.n))});p||(a.ep=function(a,b,c){return Qb(this.Pa[a],b,c)},a.lp=function(a){return this.Pa[a]},a.Wt=function(a,b){var c=this.ma(),e=c.Cc();if(!e.length)return!1;var g=e[0],f=g,d=g.Pa[b],h,l,n;h=1;for(l=e.length;hd)d=n,f=g;c.fh(f);return!0},a.Ut=function(a){var b,c,e,g,f;if(this.b.Am().rk){f=this.ma();if(f.Da)for(f.Da=!1,U(f.j),U(f.U),e=this.j,b=0,c=e.length;ba?a=0:1g.k.index||e.k.index===g.k.index&&e.Wc()>g.Wc())g=e}else if(e.k.indexc)){var e=1===a;this.Qd[c]!==e&&(this.Qd[c]=e,this.Pc(),this.b.ea=!0)}}},g.eu=function(a,b,c){if(this.b.A){var e=this.type.ek(a);0>e||(a=this.type.K[e],e=this.Ba[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.A.Nr(a.Na,b)&&(c/=100),e[b]!==c&&(e[b]=c,a.gb&&(this.b.ea=!0))))}})};wb=function(){this.Ej=this.Aj=!0;this.type.Gh=!0;this.b.ea=!0;var d,h,p=this.Bj;d=0;for(h= -p.length;dp;case 5:return d>=p;default:return!1}}})();var Zb={};function dc(d){this.b=d} -(function(){function d(){}var q=dc.prototype;q.ra=function(d){this.Ja=d;this.b=d.b};q.ra.prototype.S=function(){};q.fa=function(d){this.type=d;this.b=d.b;this.Ff=Array(256);this.Ah=Array(256);this.Kd=0};var h=q.fa.prototype;h.S=function(){var d=this;this.b.Ha||(jQuery(document).keydown(function(h){d.Pk(h)}),jQuery(document).keyup(function(h){d.Qk(h)}))};var p=[32,33,34,35,36,37,38,39,40,44];h.Pk=function(d){var h=!1;window!=window.top&&-1d;++d)if(this.Ff[d]){this.Ff[d]=!1;this.Kd=d;this.b.trigger(dc.prototype.q.Rl,this);var h=this.b.trigger(dc.prototype.q.Vl,this),f=this.b.trigger(dc.prototype.q.Ul,this);if(h||f)this.Ah[d]=!0}};h.eb=function(){return{triggerKey:this.Kd}};h.xb=function(d){this.Kd=d.triggerKey};d.prototype.op=function(d){return this.Ff[d]};d.prototype.Tl=function(d){return d===this.Kd};d.prototype.vp=function(){return!0}; -d.prototype.Rl=function(){return!0};d.prototype.Vl=function(d){return d===this.Kd};d.prototype.Bp=function(d){return d===this.Kd};d.prototype.Ul=function(d){return d===this.Kd};q.q=new d;q.W=new function(){};q.wb=new function(){}})();function cc(d){this.b=d} -(function(){function d(){if(0===this.Oj.length){var b=document.createElement("canvas");b.width=this.width;b.height=this.height;var a=b.getContext("2d");this.Tf?a.drawImage(this.Z,this.Mf,this.Nf,this.width,this.height,0,0,this.width,this.height):a.drawImage(this.Z,0,0,this.width,this.height);this.Oj=b.toDataURL("image/png")}return this.Oj}function q(){}function h(){}var p=cc.prototype;p.ra=function(b){this.Ja=b;this.b=b.b};var n=p.ra.prototype;n.S=function(){if(!this.J){var b,a,e,f,k,h,n,r,m;this.wc= -[];this.Bg=!1;b=0;for(a=this.Cb.length;bthis.D&&(this.D=0);this.D>=this.ta.frames.length&&(this.D=this.ta.frames.length-1);var b=this.ta.frames[this.D];this.aa.qh(b.Si);this.Fb=b.Fb;this.Gb=b.Gb;this.pg=this.ta.speed;this.Zd=this.ta.jl;this.Zb?this.Sc.reset():this.Sc=new Sa;this.nd=this.Sc.X;this.we=!0;this.fd= -0;this.ve=!0;this.Ij=this.cm="";this.iq=0;this.Hj=-1;this.type.Ik();var a,e,f,d,h,n,r,b=0;for(a=this.type.Cb.length;bthis.D&&(this.D=0);this.D>=this.ta.frames.length&&(this.D=this.ta.frames.length-1);this.pg=b.cas;this.nd=b.fs;this.fd=b.ar;this.Sc.reset();this.Sc.X=b.at;this.we=b.hasOwnProperty("ap")?b.ap:!0;this.ve=b.hasOwnProperty("af")?b.af:!0;b.hasOwnProperty("rt")?this.Zd=b.rt:this.Zd=this.ta.jl;this.mc=this.ta.frames[this.D]; -this.Th=this.mc.qa;this.aa.qh(this.mc.Si);this.Fb=this.mc.Fb;this.Gb=this.mc.Gb};f.yj=function(b){this.D=b?0:this.ta.frames.length-1;this.we=!1;this.cm=this.ta.name;this.b.trigger(cc.prototype.q.up,this);this.b.trigger(cc.prototype.q.tp,this);this.fd=0};f.zj=function(){return this.Sc.X};f.Mb=function(){this.Sc.add(this.b.ug(this));this.Ij.length&&this.rq();0<=this.Hj&&this.sq();var b=this.Sc.X,a=this.ta,e=a.frames[this.D],f=e.duration/this.pg;this.we&&b>=this.nd+f&&(this.ve?this.D++:this.D--,this.nd+= -f,this.D>=a.frames.length&&(a.Yn?(this.ve=!1,this.D=a.frames.length-2):a.loop?this.D=this.Zd:(this.fd++,this.fd>=a.il?this.yj(!1):this.D=this.Zd)),0>this.D&&(a.Yn?(this.D=1,this.ve=!0,a.loop||(this.fd++,this.fd>=a.il&&this.yj(!0))):a.loop?this.D=this.Zd:(this.fd++,this.fd>=a.il?this.yj(!0):this.D=this.Zd)),0>this.D?this.D=0:this.D>=a.frames.length&&(this.D=a.frames.length-1),b>this.nd+a.frames[this.D].duration/this.pg&&(this.nd=b),b=a.frames[this.D],this.lf(e,b),this.b.ea=!0)};f.zm=function(b){var a, -e,f;a=0;for(e=this.type.Cb.length;athis.D&&(this.D=0),this.D>=this.ta.frames.length&&(this.D=this.ta.frames.length-1),1===this.iq&&(this.D=0),this.we=!0,this.nd=this.Sc.X, -this.ve=!0,this.lf(b,this.ta.frames[this.D]),this.b.ea=!0)};f.sq=function(){var b=this.ta.frames[this.D],a=this.D;this.D=O(this.Hj);0>this.D&&(this.D=0);this.D>=this.ta.frames.length&&(this.D=this.ta.frames.length-1);a!==this.D&&(this.lf(b,this.ta.frames[this.D]),this.nd=this.Sc.X,this.b.ea=!0);this.Hj=-1};f.lf=function(b,a){var e=b.width,f=b.height,d=a.width,h=a.height;e!=d&&(this.width*=d/e);f!=h&&(this.height*=h/f);this.Fb=a.Fb;this.Gb=a.Gb;this.aa.qh(a.Si);this.B();this.mc=a;this.Th=a.qa;e=0; -for(f=this.I.length;ed||d>=f.length)return a?this.x:this.y;var h=(f[d][1]-e.Fb)*this.width,f=f[d][2],f=(f-e.Gb)*this.height,e=Math.cos(this.n);d=Math.sin(this.n);var n=h*e-f*d,f=f*e+h*d,h=n+this.x,f=f+this.y;return a?h:f};var b=new ba,e=!1;new T(0,0,0,0);n.finish= -function(c){if(e){if(c){var a=this.b.Eb().fc.Zc;c=null.ma();var f=b.Ld(),d,h;if(c.Da){c.Da=!1;U(c.j);d=0;for(h=f.length;db.za||c.top>b.ya)this.b.A.deleteTexture(this.Xb),this.Yc=this.Xe=this.Xb=null}};r.yd=function(){this.Yc=this.Xe=null;this.b.A&& -this.Xb&&this.b.A.deleteTexture(this.Xb);this.Xb=null};r.zj=function(){this.font=this.ei+" "+this.ih.toString()+"pt "+this.tf;this.ff=!0;this.b.ea=!0};r.Bc=function(b,c){b.font=this.font;b.textBaseline="top";b.fillStyle=this.color;b.globalAlpha=c?1:this.opacity;var a=1;c&&(a=this.k.Vb(),b.save(),b.scale(a,a));if(this.ff||this.width!==this.Dk)this.type.Ja.Yp(this.text,this.le,b,this.width,this.Ol),this.ff=!1,this.Dk=this.width;this.wa();var a=c?0:this.ub.Wa,f=c?0:this.ub.Xa;this.b.Hc&&(a=a+.5|0,f= -f+.5|0);0===this.n||c||(b.save(),b.translate(a,f),b.rotate(this.n),f=a=0);var d=f+this.height,h=this.dl,h=h+this.Fk,n,r;1===this.pj?f+=Math.max(this.height/2-this.le.length*h/2,0):2===this.pj&&(f+=Math.max(this.height-this.le.length*h-2,0));for(r=0;r=d-h);r++);(0!==this.n||c)&&b.restore();this.Sg=this.b.Id};r.Db=function(b){if(!(1>this.width|| -1>this.height)){var c=this.ff||this.Nn;this.Nn=!1;var a=this.k.Vb(),f=this.k.Ub(),d=this.qe,h=a*this.width,n=a*this.height,r=Math.ceil(h),p=Math.ceil(n),m=this.b.H/2,q=this.b.G/2;this.Xe||(this.Yc=document.createElement("canvas"),this.Yc.width=r,this.Yc.height=p,this.wi=r,this.vi=p,c=!0,this.Xe=this.Yc.getContext("2d"));if(r!==this.wi||p!==this.vi)this.Yc.width=r,this.Yc.height=p,this.Xb&&(b.deleteTexture(this.Xb),this.Xb=null),c=!0;c&&(this.Xe.clearRect(0,0,r,p),this.Bc(this.Xe,!0),this.Xb||(this.Xb= -b.ec(r,p,this.b.Q,this.b.Oe)),b.nt(this.Yc,this.Xb,this.b.Oe));this.wi=r;this.vi=p;b.$b(this.Xb);b.$e(this.opacity);b.qc();b.translate(-m,-q);b.kc();var J=this.ub,c=this.k.ia(J.Wa,J.Xa,!0,!0),m=this.k.ia(J.Wa,J.Xa,!1,!0),q=this.k.ia(J.sb,J.tb,!0,!0),P=this.k.ia(J.sb,J.tb,!1,!0),M=this.k.ia(J.kb,J.lb,!0,!0),B=this.k.ia(J.kb,J.lb,!1,!0),A=this.k.ia(J.ib,J.jb,!0,!0),J=this.k.ia(J.ib,J.jb,!1,!0);if(this.b.Hc||0===this.n&&0===f)var x=(c+.5|0)-c,E=(m+.5|0)-m,c=c+x,m=m+E,q=q+x,P=P+E,M=M+x,B=B+E,A=A+x,J= -J+E;0===this.n&&0===f?(q=c+r,P=m,M=q,B=m+p,A=c,J=B,d.right=1,d.bottom=1):(d.right=h/r,d.bottom=n/p);b.ad(c,m,q,P,M,B,A,J,d);b.qc();b.scale(a,a);b.Xi(-this.k.Ub());b.translate((this.k.na+this.k.za)/-2,(this.k.oa+this.k.ya)/-2);b.kc();this.Sg=this.b.Id}};var f=[];n.Vp=function(b){U(f);for(var c="",a,d=0;d=f)q(c);else{if(100>=b.length&&-1===b.indexOf("\n")){var k=a.measureText(b).width;if(k<=f){q(c);c.push(d());c[0].text=b;c[0].width=k;return}}this.Zp(b,c,a,f,h)}else q(c)};n.Zp=function(e,c,a,g,n){n&&(this.Vp(e),e=f);var k="",r,p,q,m=0;for(q=0;q=c.length&&c.push(d()),k=h(k),p=c[m],p.text=k,p.width=a.measureText(k).width,m++,k=""):(r=k,k+=e[q],p=a.measureText(k).width, -p>=g&&(m>=c.length&&c.push(d()),r=h(r),p=c[m],p.text=r,p.width=a.measureText(r).width,m++,k=e[q],n||" "!==k||(k="")));k.length&&(m>=c.length&&c.push(d()),k=h(k),p=c[m],p.text=k,p.width=a.measureText(k).width,m++);for(q=m;qb&&(b=Math.round(1E10*b)/1E10);b=b.toString();this.text!==b&&(this.text=b,this.ff=!0,this.b.ea=!0)};n.W=new p;n.wb=new function(){}})();function fc(d){this.b=d} -(function(){var d=fc.prototype;d.ra=function(d){this.Ja=d;this.b=d.b};var q=d.ra.prototype;q.S=function(){this.J||(this.Z=new Image,this.Z.mm=this.zl,this.b.Wo(this.Z,this.yl),this.qa=this.pattern=null)};q.Qi=function(){this.J||(this.qa=null)};q.Sk=function(){if(!this.J&&this.j.length){this.qa||(this.qa=this.b.A.Di(this.Z,!0,this.b.Q,this.Al));var d,p;d=0;for(p=this.j.length;db&&(b+=this.Z.width);0>e&&(e+=this.Z.height);d.translate(p,n);d.rotate(this.n);d.translate(b,e);d.fillRect(r-b,f-e,this.width,this.height);d.restore()};q.De=function(d){this.Db(d)}; -q.Db=function(d){d.$b(this.qa);d.$e(this.opacity);var p=this.qe;p.right=this.width/this.Z.width;p.bottom=this.height/this.Z.height;var n=this.ub;if(this.b.Hc){var r=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;d.ad(n.Wa+r,n.Xa+f,n.sb+r,n.tb+f,n.kb+r,n.lb+f,n.ib+r,n.jb+f,p)}else d.ad(n.Wa,n.Xa,n.sb,n.tb,n.kb,n.lb,n.ib,n.jb,p)};d.q=new function(){};d.W=new function(){};d.wb=new function(){}})();function gc(d){this.b=d} -(function(){function d(){}function q(){}var h=gc.prototype;h.ra=function(d){this.Ja=d;this.b=d.b};h.ra.prototype.S=function(){};h.fa=function(d){this.type=d;this.b=d.b};var p=h.fa.prototype;p.S=function(){this.b.Ha?v("[Construct 2] Progress Bar plugin not supported on this platform - the object will not be created"):(this.ja=document.createElement("progress"),this.value=this.F[0],this.max=this.F[1],0=b||0>=e||h>=c||f>=a?(this.Fe||jQuery(this.ja).hide(),this.Fe=!0):(1>h&&(h=1),1>f&&(f=1),b>=c&&(b=c-1),e>=a&&(e=a-1),c=window.innerWidth,a=window.innerHeight,d||this.dn!==h||this.kn!==f||this.hn!==b||this.bn!==e||this.mn!==c||this.ln!==a?(this.dn=h,this.kn=f,this.hn=b,this.bn=e,this.mn=c,this.ln=a,this.Fe&&(jQuery(this.ja).show(),this.Fe=!1),d=Math.round(h)+ -jQuery(this.b.canvas).offset().left,c=Math.round(f)+jQuery(this.b.canvas).offset().top,jQuery(this.ja).css("position","absolute"),jQuery(this.ja).offset({left:d,top:c}),jQuery(this.ja).width(Math.round(b-h)),jQuery(this.ja).height(Math.round(e-f))):this.Fe&&(jQuery(this.ja).show(),this.Fe=!1))}};p.Bc=function(){};p.Db=function(){};d.prototype.xp=function(){return!0};h.q=new d;q.prototype.Rp=function(d){this.b.Ha||(this.visible=0!==d)};q.prototype.Np=function(d){this.b.Ha||(this.value=d,this.ja.max= -this.max,this.ja.value=this.value)};h.W=new q;h.wb=new function(){}})();function hc(d){this.b=d} -(function(){function d(){}function q(){}var h=hc.prototype;h.ra=function(d){this.behavior=d;this.b=d.b};h.ra.prototype.S=function(){};h.fa=function(d,h){this.type=d;this.behavior=d.behavior;this.e=h;this.b=d.b};var p=h.fa.prototype;p.S=function(){this.Ia=null;this.Ri=-1;this.mode=this.Gf=this.jj=this.Lf=this.Cd=this.gh=0;var d=this;this.Zb||(this.bh=function(h){d.Ok(h)});this.b.Zl(this.bh)};p.eb=function(){return{uid:this.Ia?this.Ia.uid:-1,pa:this.gh,pd:this.Cd,msa:this.Lf,tsa:this.jj,lka:this.Gf, -m:this.mode}};p.xb=function(d){this.Ri=d.uid;this.gh=d.pa;this.Cd=d.pd;this.Lf=d.msa;this.jj=d.tsa;this.Gf=d.lka;this.mode=d.m};p.Rc=function(){-1===this.Ri?this.Ia=null:this.Ia=this.b.vg(this.Ri);this.Ri=-1};p.Ok=function(d){this.Ia==d&&(this.Ia=null)};p.yd=function(){this.Ia=null;this.b.ko(this.bh)};p.Mb=function(){};p.yh=function(){if(this.Ia){this.Gf!==this.e.n&&(this.Lf=Da(this.Lf+(this.e.n-this.Gf)));var d=this.e.x,h=this.e.y;if(3===this.mode||4===this.mode){var f=Ka(this.e.x,this.e.y,this.Ia.x, -this.Ia.y);if(f>this.Cd||4===this.mode&&fthis.od&&(this.Fa*=-1,this.Ga*=-1,this.od=Math.abs(this.od))};p.S=function(){this.Kf=this.F[0];this.nf=this.F[1];this.qf=this.F[2];this.Ng=this.F[3];this.bk=this.od=this.F[4];this.Ki=this.F[5];this.Sj=0!==this.F[6];this.Ak=this.F[7]/1E3;this.oq=1===this.F[8];this.enabled=0!==this.F[9];this.ag=!1;this.bg=this.b.ed(this.e);this.Hk=-1;this.ef=0;this.wf=V(90); -this.Ro();var d=this;this.oq&&!this.b.Ha&&(jQuery(document).keydown(function(h){d.Pk(h)}),jQuery(document).keyup(function(h){d.Qk(h)}));this.Zb||(this.bh=function(h){d.Ok(h)});this.b.Zl(this.bh);this.e.L.isPlatformBehavior=!0};p.eb=function(){return{ii:this.mk,lfx:this.Pe,lfy:this.Qe,lfo:this.Ib?this.Ib.uid:-1,am:this.xc,en:this.enabled,fall:this.de,ft:this.ci,dx:this.N,dy:this.ba,ms:this.Kf,acc:this.nf,dec:this.qf,js:this.Ng,g:this.od,g1:this.bk,mf:this.Ki,wof:this.ag,woj:this.bg?this.bg.uid:-1, -ga:this.wf,edj:this.Sj,cdj:this.ig,dj:this.qg,sus:this.Ak}};p.xb=function(d){this.mk=d.ii;this.Pe=d.lfx;this.Qe=d.lfy;this.Gk=d.lfo;this.xc=d.am;this.enabled=d.en;this.de=d.fall;this.ci=d.ft;this.N=d.dx;this.ba=d.dy;this.Kf=d.ms;this.nf=d.acc;this.qf=d.dec;this.Ng=d.js;this.od=d.g;this.bk=d.g1;this.Ki=d.mf;this.ag=d.wof;this.Hk=d.woj;this.wf=d.ga;this.Sj=d.edj;this.ig=d.cdj;this.qg=d.dj;this.Ak=d.sus;this.uh=this.cj=this.bj=this.Df=this.Ef=this.nh=this.Tg=!1;this.ef=0;this.Ro()};p.Rc=function(){-1=== -this.Gk?this.Ib=null:this.Ib=this.b.vg(this.Gk);-1===this.Hk?this.bg=null:this.bg=this.b.vg(this.Hk)};p.Ok=function(d){this.Ib==d&&(this.Ib=null)};p.yd=function(){this.Ib=null;this.b.ko(this.bh)};p.Pk=function(d){switch(d.which){case 38:d.preventDefault();this.Ef=!0;break;case 37:d.preventDefault();this.Tg=!0;break;case 39:d.preventDefault(),this.nh=!0}};p.Qk=function(d){switch(d.which){case 38:d.preventDefault();this.Df=this.Ef=!1;break;case 37:d.preventDefault();this.Tg=!1;break;case 39:d.preventDefault(), -this.nh=!1}};p.Ze=function(){this.Ef=this.nh=this.Tg=!1};p.zj=function(){return 0>this.od?-1:1};p.Um=function(){var d=null,h=null,f,b;f=this.e.x;b=this.e.y;this.e.x+=this.Fa;this.e.y+=this.Ga;this.e.B();if(this.Ib&&this.b.jc(this.e,this.Ib))return this.e.x=f,this.e.y=b,this.e.B(),this.Ib;(d=this.b.rb(this.e))||0!==this.de||(h=this.b.ed(this.e,!0));this.e.x=f;this.e.y=b;this.e.B();if(d){if(this.b.jc(this.e,d))return null;this.di=!1;return d}if(h&&h.length){b=d=0;for(f=h.length;dthis.Ki&&(this.ba=this.Ki)),q&&(this.Df=!0));this.ag=!!z;p==b&&(0>this.N?(this.N+=this.qf*d,0this.N&&(this.N=0)));p&&!b&&(this.N=0this.N?this.N+(this.nf+this.qf)*d:this.N+this.nf*d);this.N>this.Kf?this.N=this.Kf:this.N<-this.Kf&&(this.N=-this.Kf);p=!1;0!==this.N&&(l=this.e.x,k=this.e.y,h=this.N*d*this.Dd,f=this.N*d*this.Ed,this.e.x+= -this.Dd*(1this.N?1:-1),this.Ed*(0>this.N?1: --1),h,!1)?!z||e||this.di||(l=this.e.x,k=this.e.y,this.e.x+=this.Fa,this.e.y+=this.Ga,this.b.rb(this.e)?this.b.Lc(this.e,-this.Fa,-this.Ga,3,!1)||(this.e.x=l,this.e.y=k,this.e.B()):(this.e.x=l,this.e.y=k,this.e.B())):(this.e.x=l,this.e.y=k,this.e.B()),e||(this.N=0)):!c&&!q&&Math.abs(this.ba)this.ba?1:-1),this.Ga*(0>this.ba?1:-1),h,e,f)?(this.Ib=f,this.Pe=f.x,this.Qe=f.y,(this.di=e)&&(p=!0),this.ba=0):(this.e.x=l,this.e.y=k,this.e.B(),this.ag=!0,e||(this.ba=0)))}3!==this.xc&&0this.e.opacity?this.e.opacity=0:1=p.duration&&(p.jo?p.current.X-=p.duration:delete this.Nb[d]))};d.q=new function(){};d.W=new function(){};d.wb=new function(){}})();function bc(d){this.b=d} -(function(){var d=bc.prototype;d.ra=function(d){this.behavior=d;this.b=d.b};d.ra.prototype.S=function(){};d.fa=function(d,p){this.type=d;this.behavior=d.behavior;this.e=p;this.b=d.b};var q=d.fa.prototype;q.S=function(){this.e.L.jumpthruEnabled=0!==this.F[0]};q.Mb=function(){};d.q=new function(){};d.W=new function(){}})();function lc(d){this.b=d;this.sl=this.aj=this.sh=this.rl=0} -(function(){var d=lc.prototype;d.ra=function(d){this.behavior=d;this.b=d.b};d.ra.prototype.S=function(){};d.fa=function(d,p){this.type=d;this.behavior=d.behavior;this.e=p;this.b=d.b};var q=d.fa.prototype;q.S=function(){this.enabled=0!==this.F[0]};q.eb=function(){return{smg:this.behavior.rl,ss:this.behavior.sh,se:this.behavior.aj,smd:this.behavior.sl}};q.xb=function(d){this.behavior.rl=d.smg;this.behavior.sh=d.ss;this.behavior.aj=d.se;this.behavior.sl=d.smd};q.Mb=function(){};q.yh=function(){if(this.enabled){var d= -this.behavior.Mi.Ld(),p=0,n=0,q,f,b,e=0;q=0;for(f=d.length;q=this.behavior.sh&&fb?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;cthis.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 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&&eYour browser does not appear to support HTML5. Try upgrading your browser t