// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';function z(){return function(){}}function B(b){return function(){return this[b]}}function G(b){return function(){return b}}var aa,ba,L,ca,fa,P,ga,ha,ia,ja,ka,la,ma,T,na,oa,pa,qa,ra,sa,ta,xa,ya,U,za,Aa,Ba,Ca,Da,Ea,Ga,Ha,Ia,Ma,Na,Oa,Pa,Qa,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb={};
"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(b){return b.__proto__}:function(b){return b.constructor.prototype});
(function(){function b(n,c,k,m){this.set(n,c,k,m)}function l(){this.qb=this.pb=this.sb=this.rb=this.xb=this.wb=this.Ha=this.Ga=0}function a(n,c,k,m){nm?c:m):(t=nk?c:k):km?n:m):(t=ck?n:k)}function q(){this.ed=this.ld=null;this.Dg=0;s?this.ld=new Set:this.ed={};this.cf=[];this.xe=!0}function e(n){u[c++]=n}function d(){this.Sa=this.hj=this.y=this.Mj=0}function f(n){this.Wa=[];this.Bh=this.Dh=this.Eh=this.Ch=0;this.jh(n)}function r(n,c){this.Fq=
n;this.Eq=c;this.cells={}}function h(n,c,m){var d;return k.length?(d=k.pop(),d.os=n,d.x=c,d.y=m,d):new aa(n,c,m)}function g(n,c,k){this.os=n;this.x=c;this.y=k;this.Wg=new ba}L=function(n){window.console&&window.console.log&&window.console.log(n)};ca=function(n){return"undefined"===typeof n};fa=function(n){return"number"===typeof n};P=function(n){return"string"===typeof n};ga=function(n){return 0c;c<<=1)n|=n>>c;return n+1};ia=function(n){return 0>
n?-n:n};ja=function(n,c){return n>c?n:c};ka=function(n,c){return ng)return!1;cg)return!1;r=d-n+e-k;h=f-c+a-m;n=k-n;c=m-c;d=e-d;f=a-f;a=ia(c*d-f*n);return ia(d*h-f*r)>a?!1:ia(n*h-c*r)<=a};b.prototype.set=function(n,
c,k,m){this.left=n;this.top=c;this.right=k;this.bottom=m};b.prototype.copy=function(n){this.left=n.left;this.top=n.top;this.right=n.right;this.bottom=n.bottom};b.prototype.width=function(){return this.right-this.left};b.prototype.height=function(){return this.bottom-this.top};b.prototype.offset=function(n,c){this.left+=n;this.top+=c;this.right+=n;this.bottom+=c;return this};b.prototype.normalize=function(){var n=0;this.left>this.right&&(n=this.left,this.left=this.right,this.right=n);this.top>this.bottom&&
(n=this.top,this.top=this.bottom,this.bottom=n)};b.prototype.ws=function(n){return!(n.rightthis.right||n.top>this.bottom)};b.prototype.xs=function(n,c,k){return!(n.right+cthis.right||n.top+k>this.bottom)};b.prototype.Ob=function(n,c){return n>=this.left&&n<=this.right&&c>=this.top&&c<=this.bottom};b.prototype.fr=function(n){return this.left===n.left&&this.top===n.top&&this.right===n.right&&this.bottom===n.bottom};pa=b;
l.prototype.ih=function(n){this.Ga=n.left;this.Ha=n.top;this.wb=n.right;this.xb=n.top;this.rb=n.right;this.sb=n.bottom;this.pb=n.left;this.qb=n.bottom};l.prototype.Ko=function(n,c){if(0===c)this.ih(n);else{var k=Math.sin(c),m=Math.cos(c),d=n.left*k,f=n.top*k,e=n.right*k,k=n.bottom*k,a=n.left*m,r=n.top*m,h=n.right*m,m=n.bottom*m;this.Ga=a-f;this.Ha=r+d;this.wb=h-f;this.xb=r+e;this.rb=h-k;this.sb=m+e;this.pb=a-k;this.qb=m+d}};l.prototype.offset=function(n,c){this.Ga+=n;this.Ha+=c;this.wb+=n;this.xb+=
c;this.rb+=n;this.sb+=c;this.pb+=n;this.qb+=c;return this};var t=0,p=0;l.prototype.Am=function(n){a(this.Ga,this.wb,this.rb,this.pb);n.left=t;n.right=p;a(this.Ha,this.xb,this.sb,this.qb);n.top=t;n.bottom=p};l.prototype.Ob=function(n,c){var k=this.wb-this.Ga,m=this.xb-this.Ha,d=this.rb-this.Ga,f=this.sb-this.Ha,e=n-this.Ga,a=c-this.Ha,r=k*k+m*m,h=k*d+m*f,m=k*e+m*a,g=d*d+f*f,b=d*e+f*a,p=1/(r*g-h*h),k=(g*m-h*b)*p,r=(r*b-h*m)*p;if(0<=k&&0k+r)return!0;k=this.pb-this.Ga;m=this.qb-this.Ha;r=k*k+m*
m;h=k*d+m*f;m=k*e+m*a;p=1/(r*g-h*h);k=(g*m-h*b)*p;r=(r*b-h*m)*p;return 0<=k&&0k+r};l.prototype.Pd=function(n,c){if(c)switch(n){case 0:return this.Ga;case 1:return this.wb;case 2:return this.rb;case 3:return this.pb;case 4:return this.Ga;default:return this.Ga}else switch(n){case 0:return this.Ha;case 1:return this.xb;case 2:return this.sb;case 3:return this.qb;case 4:return this.Ha;default:return this.Ha}};l.prototype.Sn=function(){return(this.Ga+this.wb+this.rb+this.pb)/4};l.prototype.Tn=function(){return(this.Ha+
this.xb+this.sb+this.qb)/4};l.prototype.on=function(n){var c=n.Sn(),k=n.Tn();if(this.Ob(c,k))return!0;c=this.Sn();k=this.Tn();if(n.Ob(c,k))return!0;var m,d,f,e,a,r,h,g;for(h=0;4>h;h++)for(g=0;4>g;g++)if(c=this.Pd(h,!0),k=this.Pd(h,!1),m=this.Pd(h+1,!0),d=this.Pd(h+1,!1),f=n.Pd(g,!0),e=n.Pd(g,!1),a=n.Pd(g+1,!0),r=n.Pd(g+1,!1),oa(c,k,m,d,f,e,a,r))return!0;return!1};qa=l;ra=function(n,c){for(var k in c)c.hasOwnProperty(k)&&(n[k]=c[k]);return n};sa=function(n,c){var k,m;c=T(c);if(!(0>c||c>=n.length))if(0===
c)n.shift();else if(c===n.length-1)n.pop();else{k=c;for(m=n.length-1;kn&&(n+=360);return n};Ba=function(n){n%=2*la;0>n&&(n+=2*la);return n};Ca=function(n){return Aa(za(n))};Da=function(n){return Ba(U(n))};Ea=
function(n,c,k,m){return Math.atan2(m-c,k-n)};Ga=function(n,c){if(n===c)return 0;var k=Math.sin(n),m=Math.cos(n),d=Math.sin(c),f=Math.cos(c),k=k*d+m*f;return 1<=k?0:-1>=k?la:Math.acos(k)};Ha=function(n,c,k){var m=Math.sin(n),d=Math.cos(n),f=Math.sin(c),e=Math.cos(c);return Math.acos(m*f+d*e)>k?0=m*d-k*f};Ma=function(n,c,k,m,d,f){if(0===k)return f?n:c;var e=Math.sin(k);k=Math.cos(k);
n-=m;c-=d;var a=n*e;n=n*k-c*e;c=c*k+a;return f?n+m:c+d};Na=function(n,c,k,m){n=k-n;c=m-c;return Math.sqrt(n*n+c*c)};Oa=function(n,c){return!n!==!c};Pa=function(n){for(var c in n)if(n.hasOwnProperty(c))return!0;return!1};Qa=function(n){for(var c in n)n.hasOwnProperty(c)&&delete n[c]};var v=+new Date;Ua=function(){if("undefined"!==typeof window.performance){var c=window.performance;if("undefined"!==typeof c.now)return c.now();if("undefined"!==typeof c.webkitNow)return c.webkitNow();if("undefined"!==
typeof c.mozNow)return c.mozNow();if("undefined"!==typeof c.msNow)return c.msNow()}return Date.now()-v};var s="undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;q.prototype.contains=function(c){return s?this.ld.has(c):this.ed.hasOwnProperty(c.toString())};q.prototype.add=function(c){if(s)this.ld.has(c)||(this.ld.add(c),this.xe=!1);else{var k=c.toString();this.ed.hasOwnProperty(k)||(this.ed[k]=c,this.Dg++,this.xe=!1)}return this};q.prototype.remove=function(c){s?this.ld.has(c)&&(this.ld["delete"](c),
this.xe=!1):(c=c.toString(),this.ed.hasOwnProperty(c)&&(delete this.ed[c],this.Dg--,this.xe=!1));return this};q.prototype.clear=function(){s?this.ld.clear():(this.ed={},this.Dg=0);this.cf.length=0;this.xe=!0;return this};q.prototype.Xd=function(){return s?0===this.ld.size:0===this.Dg};var u=null,c=0;q.prototype.Mt=function(){if(!this.xe){if(s)this.cf.length=this.ld.size,u=this.cf,c=0,this.ld.forEach(e),u=null,c=0;else{this.cf.length=this.Dg;var n,k=0;for(n in this.ed)this.ed.hasOwnProperty(n)&&(this.cf[k++]=
this.ed[n])}this.xe=!0}};q.prototype.Vf=function(){this.Mt();return this.cf};ba=q;d.prototype.add=function(c){this.y=c-this.Mj;this.hj=this.Sa+this.y;this.Mj=this.hj-this.Sa-this.y;this.Sa=this.hj};d.prototype.reset=function(){this.Sa=this.hj=this.y=this.Mj=0};Va=d;Wa=function(c){return c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};f.prototype.jh=function(c){this.xo=c;this.Sc=c.length/2;this.Wa.length=c.length;this.Gh=this.Hh=-1;this.Cm=0};f.prototype.vf=function(){return!this.xo.length};f.prototype.Ca=
function(){for(var c=this.Wa,k=c[0],m=k,d=c[1],f=d,e,a,r=1,h=this.Sc;rm&&(m=e),af&&(f=a);this.Ch=k;this.Dh=m;this.Eh=d;this.Bh=f};f.prototype.ih=function(c,k,m){this.Wa.length=8;this.Sc=4;var d=this.Wa;d[0]=c.left-k;d[1]=c.top-m;d[2]=c.right-k;d[3]=c.top-m;d[4]=c.right-k;d[5]=c.bottom-m;d[6]=c.left-k;d[7]=c.bottom-m;this.Hh=c.right-c.left;this.Gh=c.bottom-c.top;this.Ca()};f.prototype.Of=function(c,k,m,d,f){this.Wa.length=8;this.Sc=4;var e=this.Wa;
e[0]=c.Ga-k;e[1]=c.Ha-m;e[2]=c.wb-k;e[3]=c.xb-m;e[4]=c.rb-k;e[5]=c.sb-m;e[6]=c.pb-k;e[7]=c.qb-m;this.Hh=d;this.Gh=f;this.Ca()};f.prototype.Jo=function(c){this.Sc=c.Sc;ta(this.Wa,c.Wa);this.Ch=c.Ch;this.Eh-c.Eh;this.Dh=c.Dh;this.Bh=c.Bh};f.prototype.jf=function(c,k,m){if(this.Hh!==c||this.Gh!==k||this.Cm!==m){this.Hh=c;this.Gh=k;this.Cm=m;var d,f,e,a,r,h=0,g=1,b=this.xo,p=this.Wa;0!==m&&(h=Math.sin(m),g=Math.cos(m));m=0;for(e=this.Sc;mk.length&&k.push(h),this.cells[f][a]=null);if(d)for(f=d.left,e=d.right;f<=e;++f)for(a=d.top,r=d.bottom;a<=r;++a)m&&m.Ob(f,a)||this.jk(f,a,!0).vs(c)};r.prototype.Ao=function(c,k){var m,d,f,e,a,r;m=this.wh(c.left);f=this.xh(c.top);d=this.wh(c.right);for(a=this.xh(c.bottom);m<=d;++m)for(e=f;e<=a;++e)(r=this.jk(m,e,!1))&&r.br(k)};Ya=r;var k=[];g.prototype.Xd=function(){return this.Wg.Xd()};
g.prototype.vs=function(c){this.Wg.add(c)};g.prototype.remove=function(c){this.Wg.remove(c)};g.prototype.br=function(c){xa(c,this.Wg.Vf())};aa=g;var m="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");Za=function(c){return 0>=c||11<=c?"source-over":m[c-1]};$a=function(c,k,m){if(m)switch(c.ub=m.ONE,c.tb=m.ONE_MINUS_SRC_ALPHA,k){case 1:c.ub=m.ONE;c.tb=m.ONE;break;case 3:c.ub=m.ONE;c.tb=m.ZERO;break;case 4:c.ub=m.ONE_MINUS_DST_ALPHA;
c.tb=m.ONE;break;case 5:c.ub=m.DST_ALPHA;c.tb=m.ZERO;break;case 6:c.ub=m.ZERO;c.tb=m.SRC_ALPHA;break;case 7:c.ub=m.ONE_MINUS_DST_ALPHA;c.tb=m.ZERO;break;case 8:c.ub=m.ZERO;c.tb=m.ONE_MINUS_SRC_ALPHA;break;case 9:c.ub=m.DST_ALPHA;c.tb=m.ONE_MINUS_SRC_ALPHA;break;case 10:c.ub=m.ONE_MINUS_DST_ALPHA,c.tb=m.SRC_ALPHA}};ab=function(c){return ma(1E6*c)/1E6};bb=function(c,k){return"string"!==typeof c||"string"!==typeof k||c.length!==k.length?!1:c===k?!0:c.toLowerCase()===k.toLowerCase()}})();
var Xb="undefined"!==typeof Float32Array?Float32Array:Array;function Yb(b){var l=new Xb(3);b&&(l[0]=b[0],l[1]=b[1],l[2]=b[2]);return l}function Zb(b){var l=new Xb(16);b&&(l[0]=b[0],l[1]=b[1],l[2]=b[2],l[3]=b[3],l[4]=b[4],l[5]=b[5],l[6]=b[6],l[7]=b[7],l[8]=b[8],l[9]=b[9],l[10]=b[10],l[11]=b[11],l[12]=b[12],l[13]=b[13],l[14]=b[14],l[15]=b[15]);return l}
function $b(b,l){l[0]=b[0];l[1]=b[1];l[2]=b[2];l[3]=b[3];l[4]=b[4];l[5]=b[5];l[6]=b[6];l[7]=b[7];l[8]=b[8];l[9]=b[9];l[10]=b[10];l[11]=b[11];l[12]=b[12];l[13]=b[13];l[14]=b[14];l[15]=b[15]}function ac(b,l){var a=l[0],q=l[1];l=l[2];b[0]*=a;b[1]*=a;b[2]*=a;b[3]*=a;b[4]*=q;b[5]*=q;b[6]*=q;b[7]*=q;b[8]*=l;b[9]*=l;b[10]*=l;b[11]*=l}
function bc(b,l,a,q){q||(q=Zb());var e,d,f,r,h,g,t,p,v=b[0],s=b[1];b=b[2];d=a[0];f=a[1];e=a[2];a=l[1];g=l[2];v===l[0]&&s===a&&b===g?(b=q,b[0]=1,b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=1,b[6]=0,b[7]=0,b[8]=0,b[9]=0,b[10]=1,b[11]=0,b[12]=0,b[13]=0,b[14]=0,b[15]=1):(a=v-l[0],g=s-l[1],t=b-l[2],p=1/Math.sqrt(a*a+g*g+t*t),a*=p,g*=p,t*=p,l=f*t-e*g,e=e*a-d*t,d=d*g-f*a,(p=Math.sqrt(l*l+e*e+d*d))?(p=1/p,l*=p,e*=p,d*=p):d=e=l=0,f=g*d-t*e,r=t*l-a*d,h=a*e-g*l,(p=Math.sqrt(f*f+r*r+h*h))?(p=1/p,f*=p,r*=p,h*=p):h=r=f=0,
q[0]=l,q[1]=f,q[2]=a,q[3]=0,q[4]=e,q[5]=r,q[6]=g,q[7]=0,q[8]=d,q[9]=h,q[10]=t,q[11]=0,q[12]=-(l*v+e*s+d*b),q[13]=-(f*v+r*s+h*b),q[14]=-(a*v+g*s+t*b),q[15]=1)}
(function(){function b(d){this.pi=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Dm=Yb([0,0,100]);this.Qn=Yb([0,0,0]);this.ep=Yb([0,1,0]);this.$l=Yb([1,1,1]);this.Uk=Zb();this.Ac=Zb();this.En=Zb();this.Wj=Zb();this.q=d;this.kn()}function l(d,f,e){this.q=d;this.kh=f;this.name=e;this.zc=d.getAttribLocation(f,"aPos");this.fe=d.getAttribLocation(f,"aTex");this.On=d.getUniformLocation(f,"matP");this.Cf=d.getUniformLocation(f,"matMV");this.Df=d.getUniformLocation(f,
"opacity");this.Pn=d.getUniformLocation(f,"samplerFront");this.Pg=d.getUniformLocation(f,"samplerBack");this.Qe=d.getUniformLocation(f,"destStart");this.Pe=d.getUniformLocation(f,"destEnd");this.Rk=d.getUniformLocation(f,"seconds");this.Qk=d.getUniformLocation(f,"pixelWidth");this.Pk=d.getUniformLocation(f,"pixelHeight");this.Og=d.getUniformLocation(f,"layerScale");this.Ng=d.getUniformLocation(f,"layerAngle");this.Qg=d.getUniformLocation(f,"viewOrigin");this.ss=!!(this.Qk||this.Pk||this.Rk||this.Pg||
this.Qe||this.Pe||this.Og||this.Ng||this.Qg);this.Df&&d.uniform1f(this.Df,1);this.Pn&&d.uniform1i(this.Pn,0);this.Pg&&d.uniform1i(this.Pg,1);this.Qe&&d.uniform2f(this.Qe,0,0);this.Pe&&d.uniform2f(this.Pe,1,1);this.Og&&d.uniform1f(this.Og,1);this.Ng&&d.uniform1f(this.Ng,0);this.Qg&&d.uniform2f(this.Qg,0,0);this.Fe=!1}function a(d,f){this.type=d;this.B=f;this.q=f.q;this.dd=this.Ec=this.jo=0;this.fa=this.Xc=null;this.Lo=[]}b.prototype.kn=function(){var d=this.q,f;this.Fn=1;this.Ne=this.ae=null;this.Im=
1;d.clearColor(0,0,0,0);d.clear(d.COLOR_BUFFER_BIT);d.enable(d.BLEND);d.blendFunc(d.ONE,d.ONE_MINUS_SRC_ALPHA);d.disable(d.CULL_FACE);d.disable(d.DEPTH_TEST);this.Hn=d.ONE;this.Cn=d.ONE_MINUS_SRC_ALPHA;this.kl=d.createBuffer();d.bindBuffer(d.ARRAY_BUFFER,this.kl);this.qh=Array(4);this.nh=Array(4);for(f=0;4>f;f++)this.qh[f]=d.createBuffer(),d.bindBuffer(d.ARRAY_BUFFER,this.qh[f]),this.nh[f]=d.createBuffer(),d.bindBuffer(d.ARRAY_BUFFER,this.nh[f]);this.yd=0;this.us=d.createBuffer();d.bindBuffer(d.ELEMENT_ARRAY_BUFFER,
this.us);this.Yl=new Float32Array(16E3);this.Ml=new Float32Array(16E3);this.bt=new Float32Array(32E3);for(var e=new Uint16Array(12E3),a=f=0;12E3>f;)e[f++]=a,e[f++]=a+1,e[f++]=a+2,e[f++]=a,e[f++]=a+2,e[f++]=a+3,a+=4;d.bufferData(d.ELEMENT_ARRAY_BUFFER,e,d.STATIC_DRAW);this.ll=this.sd=0;this.Ya=[];f=this.Tj({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}"},
"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}","");this.Ya.push(f);f=this.Tj({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.Ya.push(f);for(var g in cc)cc.hasOwnProperty(g)&&this.Ya.push(this.Tj(cc[g],"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));d.activeTexture(d.TEXTURE0);d.bindTexture(d.TEXTURE_2D,null);this.Rd=[];this.vd=0;this.Rb=!1;this.Jm=this.Gg=-1;this.hg=null;this.Gr=d.createFramebuffer();this.Co=
null;this.re=Yb([0,0,0]);this.od(0)};b.prototype.Tj=function(d,f,e){var a=this.q,g=a.createShader(a.FRAGMENT_SHADER);a.shaderSource(g,d.src);a.compileShader(g);if(!a.getShaderParameter(g,a.COMPILE_STATUS))return a.deleteShader(g),null;var b=a.createShader(a.VERTEX_SHADER);a.shaderSource(b,f);a.compileShader(b);if(!a.getShaderParameter(b,a.COMPILE_STATUS))return a.deleteShader(g),a.deleteShader(b),null;f=a.createProgram();a.attachShader(f,g);a.attachShader(f,b);a.linkProgram(f);if(!a.getProgramParameter(f,
a.LINK_STATUS))return a.deleteShader(g),a.deleteShader(b),a.deleteProgram(f),null;a.useProgram(f);a.deleteShader(g);a.deleteShader(b);e=new l(a,f,e);e.ak=d.ak||0;e.bk=d.bk||0;e.Hm=!!d.Hm;e.xm=!!d.xm;e.G=d.G||[];d=0;for(g=e.G.length;de;e++)if(this.En[e]!==this.Ac[e]){d=!0;break}d&&(d=this.Tc(),d.type=5,d.fa?$b(this.Ac,d.fa):d.fa=Zb(this.Ac),$b(this.Ac,this.En),this.Rb=!1)};a.prototype.Yq=function(){this.q.bindTexture(this.q.TEXTURE_2D,this.Xc)};a.prototype.Zq=function(){var d=this.q;d.activeTexture(d.TEXTURE1);d.bindTexture(d.TEXTURE_2D,this.Xc);d.activeTexture(d.TEXTURE0)};a.prototype.Vq=function(){var d=this.jo,e=this.B;e.Im=d;e=e.hg;e.Df&&
this.q.uniform1f(e.Df,d)};a.prototype.Sq=function(){this.q.drawElements(this.q.TRIANGLES,this.dd,this.q.UNSIGNED_SHORT,2*this.Ec)};a.prototype.Uq=function(){this.q.blendFunc(this.Ec,this.dd)};a.prototype.$q=function(){var d,e,a,h=this.B.Ya,g=this.B.Jm;d=0;for(e=h.length;d"===e.name&&d.vertexAttribPointer(e.zc,4,d.FLOAT,!1,0,0));
if(0"!==e.name&&d.vertexAttribPointer(e.zc,2,d.FLOAT,!1,0,0);d.bindBuffer(d.ARRAY_BUFFER,this.nh[this.yd]);d.bufferData(d.ARRAY_BUFFER,this.Ml.subarray(0,this.sd),d.STREAM_DRAW);e&&0<=e.fe&&""!==e.name&&d.vertexAttribPointer(e.fe,2,d.FLOAT,!1,0,0)}for(var a,d=0,e=this.vd;dm?(a=k*m,5===h?(d=a/this.cb,1d&&(d=1/Math.ceil(1/d)),a=this.cb*d,d*=this.bb,
n=(c-a)/2,e=(k-d)/2,c=a,k=d):(n=(c-a)/2,c=a)):(d=c/m,5===h?(d/=this.bb,1d&&(d=1/Math.ceil(1/d)),a=this.cb*d,d*=this.bb,n=(c-a)/2,e=(k-d)/2,c=a):e=(k-d)/2,k=d),b&&!this.Zd&&(e=n=0),n=Math.floor(n),e=Math.floor(e),c=Math.floor(c),k=Math.floor(k)):this.Zd&&this.yg&&0===this.Tm&&(n=Math.floor((c-this.cb)/2),e=Math.floor((k-this.bb)/2),c=this.cb,k=this.bb),2>h&&(this.bg=this.devicePixelRatio),this.Ke&&this.yn&&1m&&(this.R=this.S/h)):3===h&&(m=this.cb/this.bb,h=this.Ig/this.Hg,h>m?this.S=this.R*h:h=d)d=5E4;c+=d;this.Ld[e].complete||this.Ld[e].loaded?k+=d:m=!1}this.We=0==c?0:k/c;return m};b.prototype.go=function(){if(this.ka||
this.B){var c=this.ka||this.il;this.jb&&this.uo();this.We=0;this.Ln=-1;if(this.ym())this.ns();else{var k=Date.now()-this.gj;if(c){var m=this.width,e=this.height,a=this.devicePixelRatio;this.jb&&(m=this.Nh,e=this.Mh,a=1);if(3!==this.Mg&&500<=k&&this.Ln!=this.We){c.clearRect(0,0,m,e);var k=m/2,e=e/2,m=0===this.Mg&&this.Af.complete,d=40*a,f=0,g=80*a,h;m&&(g=this.Af.width*a,h=this.Af.height*a,d=g/2,f=h/2,c.drawImage(this.Af,T(k-d),T(e-f),g,h));1>=this.Mg?(k=T(k-d)+0.5,e=T(e+(f+(m?12*a:0)))+0.5,c.fillStyle=
"DodgerBlue",c.fillRect(k,e,Math.floor(g*this.We),6*a),c.strokeStyle="black",c.strokeRect(k,e,g,6*a),c.strokeStyle="white",c.strokeRect(k-1*a,e-1*a,g+2*a,8*a)):2===this.Mg&&(c.font="12pt Arial",c.fillStyle="#999",c.iv="middle",a=Math.round(100*this.We)+"%",m=c.measureText?c.measureText(a):null,c.fillText(a,k-(m?m.width:0)/2,e))}this.Ln=this.We}setTimeout(function(c){return function(){c.go()}}(this),100)}}};b.prototype.ns=function(){this.jb&&(this.canvas.parentNode.removeChild(this.jb),this.jb=this.il=
null);this.gj=Date.now();this.Jg=Ua();var c,k,m;if(this.Wl)for(c=0,k=this.u.length;cc||2===this.Pb&&kc-this.Jk)this.rl=!1,this.Jk=c,r?this.Yi=r(this.jj,this.canvas):this.lj=setTimeout(this.jj,this.Yd?1:16);else{this.rl=!0;this.Jk=c;var k=this.Pb,
m=document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement;(m||this.yg)&&0k||2===e&&mc++;)this.Lm(this.eg);c=0;for(k=this.Ce.length;ck.Qh.length&&k.Qh.push(c);k.Qf=!0}this.ad.Xd()||(this.ja=!0);this.ad.clear();this.Ck=!1};b.prototype.Gm=function(c,k,m,e){if(c.I){var a=T(Math.random()*c.Gf.length);
return this.Gm(c.Gf[a],k,m,e)}return c.rc?this.Sd(c.rc,k,!1,m,e,!1):null};var h=[];b.prototype.Sd=function(c,k,m,e,a,d){var f,g,b,r;if(!c)return null;var p=this.u[c[1]],q=p.wa.$d;if(this.Cg&&q&&!p.Dk||q&&!this.B&&11===c[0][11])return null;var s=k;q||(k=null);var l;p.Qh.length?(l=p.Qh.pop(),l.mc=!0,p.wa.ra.call(l,p)):(l=new p.wa.ra(p),l.mc=!1);l.uid=m&&!d?c[2]:this.Vg++;this.Te[l.uid.toString()]=l;l.yo=this.Xn++;l.Ge=p.i.length;f=0;for(g=this.Hb.length;fc&&(c=0);c>=this.ma.X.length&&(c=this.ma.X.length-1);return this.ma.X[c]};b.prototype.Qj=function(c){var k,m;k=0;for(m=c.length;k=d;)f=1/d,d*=2,c.x+=k*f*(g?1:-1),c.y+=e*f*(g?1:-1),c.D(),this.Yb(c,a)?f=g=!0:(f=g=!1,h=c.x,b=c.y);f&&(c.x=h,c.y=b,c.D())};b.prototype.zo=function(c,k){var e=ca(k)?100:k,a=0,d=c.x,f=c.y,g=0,h=0,b=0,p=this.lb(c);if(!p)return!0;
for(;a<=e;){switch(g){case 0:h=0;b=-1;a++;break;case 1:h=1;b=-1;break;case 2:h=1;b=0;break;case 3:b=h=1;break;case 4:h=0;b=1;break;case 5:h=-1;b=1;break;case 6:h=-1;b=0;break;case 7:b=h=-1}g=(g+1)%8;c.x=T(d+h*a);c.y=T(f+b*a);c.D();if(!this.Yb(c,p)&&(p=this.lb(c),!p))return!0}c.x=d;c.y=f;c.D();return!1};b.prototype.Lf=function(c,k){c.wd&&k.wd&&this.Zi.push([c,k])};b.prototype.Hq=function(c,k){var e,a,d;e=0;for(a=this.Zi.length;ep;p++)if(r=g-p*s,c.x=k+Math.cos(r)*f,c.y=e+Math.sin(r)*f,c.D(),!this.Yb(c,b)&&(b=this.lb(c),!b)){l=r;break}36===p&&(l=Ba(g+la));b=h;for(p=1;36>p;p++)if(r=g+p*s,c.x=k+Math.cos(r)*f,c.y=e+Math.sin(r)*f,c.D(),!this.Yb(c,b)&&(b=this.lb(c),!b)){q=r;break}36===p&&(q=Ba(g+la));c.x=a;c.y=d;c.D();if(q===l)return q;c=Ga(q,l)/2;c=Ia(q,l)?Ba(l+c+la):Ba(q+c);l=
Math.cos(g);g=Math.sin(g);q=Math.cos(c);c=Math.sin(c);k=l*q+g*c;return Ea(0,0,l-2*k*q,g-2*k*c)};var s=[],u=-1;b.prototype.trigger=function(c,k,e){if(!this.ma)return!1;var a=this.ma.Uh;if(!a)return!1;u++;u===s.length?s.push(new ba):s[u].clear();c=this.Yo(c,k,a,e);u--;return c};b.prototype.Yo=function(c,k,e,a){var d=s[u];if(d.contains(e))return!1;d.add(e);var d=e.jn.Vf(),f=!1,g,b,h;g=0;for(b=d.length;g=this.Sk.length&&this.Sk.push([])};b.prototype.ct=function(){this.Ii--};b.prototype.Xm=function(){return this.Sk[this.Ii]};b.prototype.Wi=function(c){this.Vh++;this.Vh>=this.Zj.length&&this.Zj.push(new Ib);var e=this.zb();e.reset(c);return e};b.prototype.Ri=function(){this.Vh--};b.prototype.zb=function(){return this.Zj[this.Vh]};b.prototype.Ym=function(c,e){for(var a,d,f,g,h,b;e;){a=0;for(d=e.Gc.length;ae||e>=c.Va.length||(c.Va[e]=f[d]));if(g.$d){g=a.w;c.k.V!==g.l&&(e=c.k,c.k=this.ma.gi(g.l),c.k?(c.k.i.push(c),c.k.cc=!0,ya(e.i,c),e.cc=!0):(c.k=e,this.te(c)));c.x=
g.x;c.y=g.y;c.width=g.w;c.height=g.h;c.df=g.zi;c.m=g.hasOwnProperty("a")?g.a:0;c.opacity=g.hasOwnProperty("o")?g.o:1;c.Jb=g.hasOwnProperty("hX")?g.hX:0.5;c.Kb=g.hasOwnProperty("hY")?g.hY:0.5;c.visible=g.hasOwnProperty("v")?g.v:!0;c.wd=g.hasOwnProperty("ce")?g.ce:!0;c.Ug=g.hasOwnProperty("mts")?g.mts:-1;c.Fb=g.hasOwnProperty("bm")?g.bm:0;c.fg=Za(c.Fb);this.q&&$a(c,c.Fb,this.q);c.D();if(g.hasOwnProperty("fx"))for(e=0,f=g.fx.length;eb||(c.Nd[b]=g.fx[e].active,c.Fa[b]=g.fx[e].params);
c.Kd()}if(h=a.behs)for(d in h)h.hasOwnProperty(d)&&(g=this.Mr(c,parseInt(d,10)),0>g||c.O[g].lc(h[d]));a.data&&c.lc(a.data)};Kb=function(c){return new b(document.getElementById(c))};Lb=function(c,e){return new b({dc:!0,width:c,height:e})};window.cr_createRuntime=Kb;window.cr_createDCRuntime=Lb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var c=document.createElement("screencanvas")||document.createElement("canvas");c.hv=!0;document.body.appendChild(c);c=new b(c);window.c2runtime=c;
window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return c}})();window.cr_getC2Runtime=function(){var b=document.getElementById("c2canvas");return b?b.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(b,l){if(0!==b&&0!==l){var a=window.cr_getC2Runtime();a&&a.setSize(b,l)}};
window.cr_setSuspended=function(b){var l=window.cr_getC2Runtime();l&&l.setSuspended(b)};
(function(){function b(e,a){this.b=e;this.Uh=null;this.scrollX=this.b.cb/2;this.scrollY=this.b.bb/2;this.scale=1;this.m=0;this.lg=!0;this.name=a[0];this.width=a[1];this.height=a[2];this.dp=a[3];this.Mo=a[4];this.V=a[5];var f=a[6],b,h;this.X=[];this.ug=[];b=0;for(h=f.length;b=this.X.length&&(p=this.X.length-1);g.k=this.X[p];g.k.i.push(g);g.k.cc=!0}q.length=0;this.Aq();e=0;for(f=this.X.length;ef?g.siblings.push(l.i[f]):l.rc&&(h=this.b.Sd(l.rc,g.k,!0,g.x,
g.y,!0),this.b.ob(),l.pj(),g.siblings.push(h),q.push(h)));e=0;for(f=this.He.length;ethis.width-d&&(a=this.width-d);a<
d&&(a=d)}this.scrollX!==a&&(this.scrollX=a,this.b.ja=!0)};b.prototype.Go=function(a){if(!this.dp){var d=this.b.R*(1/this.an())/2;a>this.height-d&&(a=this.height-d);aO&&(O=0);0>D&&(D=0);I>H&&(I=H);F>J&&(F=J);0>K&&(K=0);0>A&&(A=0);Q>H&&(Q=H);y>J&&(y=J);w.left=O/H;w.top=1-D/J;w.right=I/H;w.bottom=1-F/J}else w.left=M.left=0,w.top=M.top=0,w.right=M.right=1,w.bottom=M.bottom=1;Y=f&&((f.m||N)&&a.bh(h[0].kb)||0!==k||0!==Y||1!==f.opacity||f.type.wa.Un)||d&&!f&&1!==d.opacity;a.Ho();if(Y){s[n]||(s[n]=a.xd(H,J,this.b.aa));if(s[n].dg!==H||s[n].cg!==
J)a.deleteTexture(s[n]),s[n]=a.xd(H,J,this.b.aa);a.od(0);a.md(s[n]);C=y-A;a.clearRect(K,J-A-C,Q-K,C);f?f.fc(a):(a.Wb(this.b.kc),a.Ze(d.opacity),a.kd(),a.translate(-da,-R),a.rd(),a.jd(O,F,I,F,I,D,O,D,w));M.left=M.top=0;M.right=M.bottom=1;f&&(m=w.top,w.top=w.bottom,w.bottom=m);n=1;E=0}a.Ze(1);k=h.length-1;var N=a.ol(h[k].kb)||!d&&!f&&!this.b.tc,ea=0;u=0;for(c=h.length;uthis.$b||l.top>this.Zb||(f.globalCompositeOperation=g.fg,g.Mc(f)));f.restore();this.ie&&(a.globalCompositeOperation=this.fg,a.globalAlpha=this.opacity,a.drawImage(d,0,0))};l.prototype.wl=function(a,d,f){var b=
this.Ib();this.mb=a;this.nb=d;this.$b=a+this.b.S*(1/b);this.Zb=d+this.b.R*(1/b);a=this.Pa();0!==a&&(f&&(f.translate(this.b.S/2,this.b.R/2),f.rotate(-a),f.translate(this.b.S/-2,this.b.R/-2)),this.Jd.set(this.mb,this.nb,this.$b,this.Zb),this.Jd.offset((this.mb+this.$b)/-2,(this.nb+this.Zb)/-2),this.Xo.Ko(this.Jd,a),this.Xo.Am(this.Jd),this.Jd.offset((this.mb+this.$b)/2,(this.nb+this.Zb)/2),this.mb=this.Jd.left,this.nb=this.Jd.top,this.$b=this.Jd.right,this.Zb=this.Jd.bottom)};l.prototype.fc=function(a){var d=
this.b.S,f=this.b.R,b=0,h=0;if(this.ie=this.ck||1!==this.opacity||0this.$b||b.top>this.Zb)))if(q.lp)if(b=q.$[0].kb,h=q.$[0].index,1!==q.$.length||a.ol(b)||a.gt(b)||(q.m||q.k.Pa())&&a.bh(b)||1!==q.opacity||q.type.wa.Un)this.qa.tl(a,this,q,this.ie?this.b.kc:this.qa.pg()),a.kd(),a.scale(g,g),a.xl(-this.Pa()),
a.translate((this.mb+this.$b)/-2,(this.nb+this.Zb)/-2),a.rd();else{a.od(b);a.je(q.ub,q.tb);a.Ui(b)&&(this.b.ja=!0);var s=0,u=0,c=0,k=0;a.bh(b)&&(b=q.Ia,s=this.na(b.left,b.top,!0,!0),u=this.na(b.left,b.top,!1,!0),c=this.na(b.right,b.bottom,!0,!0),b=this.na(b.right,b.bottom,!1,!0),s/=d,u=1-u/f,c/=d,k=1-b/f);a.Mf(this.ie?this.b.kc:this.qa.pg(),1/q.width,1/q.height,s,u,c,k,this.Ib(),this.Pa(),this.mb,this.nb,q.Fa[h]);q.fc(a)}else a.od(0),a.je(q.ub,q.tb),q.fc(a);this.ie&&(b=this.$.length?this.$[0].kb:
0,h=this.$.length?this.$[0].index:0,0===this.$.length||1===this.$.length&&!a.ol(b)&&1===this.opacity?(1===this.$.length?(a.od(b),a.Mf(this.qa.pg(),1/this.b.S,1/this.b.R,0,0,1,1,this.Ib(),this.Pa(),this.mb,this.nb,this.Fa[h]),a.Ui(b)&&(this.b.ja=!0)):a.od(0),a.md(this.qa.pg()),a.Ze(this.opacity),a.Wb(this.b.kc),a.je(this.ub,this.tb),a.kd(),a.rd(),d=this.b.S/2,f=this.b.R/2,a.Xi(-d,f,d,f,d,-f,-d,-f),a.Wb(null)):this.qa.tl(a,this,null,this.qa.pg()))};l.prototype.Nb=function(a,d,f,b){var h=this.b.devicePixelRatio;
this.b.Ke&&(a*=h,d*=h);var h=this.b.qo,g=this.b.ro,h=(this.qa.scrollX-h)*this.Bc+h,g=(this.qa.scrollY-g)*this.Cc+g,l=1/this.Ib(!b);b?(h-=this.b.S*l/2,g-=this.b.R*l/2):(h-=this.b.width*l/2,g-=this.b.height*l/2);h+=a*l;g+=d*l;d=this.Pa();0!==d&&(h-=this.qa.scrollX,g-=this.qa.scrollY,a=Math.cos(d),d=Math.sin(d),b=h*a-g*d,g=g*a+h*d,h=b+this.qa.scrollX,g+=this.qa.scrollY);return f?h:g};l.prototype.na=function(a,d,f,b){var h=this.Pa();if(0!==h){a-=this.qa.scrollX;d-=this.qa.scrollY;var g=Math.cos(-h),h=
Math.sin(-h),l=a*g-d*h;d=d*g+a*h;a=l+this.qa.scrollX;d+=this.qa.scrollY}g=this.b.qo;h=this.b.ro;g=(this.qa.scrollX-g)*this.Bc+g;h=(this.qa.scrollY-h)*this.Cc+h;l=1/this.Ib(!b);b?(g-=this.b.S*l/2,h-=this.b.R*l/2):(g-=this.b.width*l/2,h-=this.b.height*l/2);g=(a-g)/l;h=(d-h)/l;a=this.b.devicePixelRatio;this.b.Ke&&(g/=a,h/=a);return f?g:h};l.prototype.Lb=function(){var a,d,f,b={s:this.scale,a:this.m,vl:this.mb,vt:this.nb,vr:this.$b,vb:this.Zb,v:this.visible,bc:this.Qd,t:this.bf,px:this.Bc,py:this.Cc,
o:this.opacity,zr:this.Yc,fx:[],instances:[]};a=0;for(d=this.M.length;aa[1].index&&(c=a[0],a[0]=a[1],a[1]=c):2=s.length&&(s.length=a.length+1);s[a.length]||(s[a.length]=[]);e=s[a.length];c=0;for(d=e.length;c=c.length&&(c.length=this.Re+1),c[this.Re]=a):this.data=a};t.prototype.ji=function(){var a=this.b.Xm();return!this.parent||this.Bg||!a||this.qi?this.data:this.Re>=a.length||"undefined"===typeof a[this.Re]?this.yk:a[this.Re]};t.prototype.Ra=function(){!this.parent||this.Bg||this.qi||this.$e(this.yk)};
Jb=t;p.prototype.toString=function(){return"include:"+this.tg.toString()};p.prototype.La=function(){this.tg=this.b.$j[this.ts];this.sheet.jn.add(this);this.Ba=a(this.Ba)};p.prototype.Ra=function(){this.parent&&this.b.eh(this.b.u);this.tg.uk||this.tg.Ra(!0);this.parent&&this.b.Ve(this.b.u)};p.prototype.ys=function(){for(var a=this.parent;a;){if(a.group&&!this.b.ff[a.rg.toLowerCase()])return!1;a=a.parent}return!0};Sb=p;v.prototype.reset=function(a){this.qc=a;this.nc=this.Ta=0;this.So.length=0;this.Yj=
this.Oe=!1};Ib=v})();
(function(){function b(a,b){this.H=a;this.b=a.b;this.type=b[0];this.get=[this.qr,this.mr,this.Br,this.Er,this.gr,this.Cr,this.ur,this.jr,this.tr,this.Ar,this.hr,this.yr,this.kr,this.xr,this.rr,this.sr,this.nr,this.or,this.ir,this.Dr,this.Mm,this.pr,this.Mm,this.lr][this.type];var e=null;this.Ub=this.G=this.N=this.Oa=this.ij=this.fb=this.first=this.value=null;this.gb=-1;this.Dd=null;this.Xl=-1;this.De=this.ph=null;this.fh=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new Qb(a,b[1]);break;case 18:this.first=new Qb(a,b[1]);this.fb=new Qb(a,b[2]);this.ij=new Qb(a,b[3]);break;case 19:this.Oa=b[1];this.N=[];this.G=[];3===b.length?(e=b[2],this.N.length=e.length+1):this.N.length=1;break;case 20:this.Ub=this.b.u[b[1]];this.gb=-1;this.Oa=b[2];this.fh=b[3];this.Dd=b[4]?new Qb(a,b[4]):null;this.N=[];this.G=[];6===b.length?(e=b[5],this.N.length=e.length+1):this.N.length=1;break;case 21:this.Ub=this.b.u[b[1]];this.fh=b[2];this.Dd=b[3]?new Qb(a,b[3]):null;this.Xl=b[4];break;
case 22:this.Ub=this.b.u[b[1]];this.Ub.ei(b[2]);this.gb=this.Ub.ik(b[2]);this.Oa=b[3];this.fh=b[4];this.Dd=b[5]?new Qb(a,b[5]):null;this.N=[];this.G=[];7===b.length?(e=b[6],this.N.length=e.length+1):this.N.length=1;break;case 23:this.ph=b[1],this.De=null}4<=this.type&&17>=this.type&&(this.first=new Qb(a,b[1]),this.fb=new Qb(a,b[2]));if(e){var d,f;d=0;for(f=e.length;db&&(b+=e.length);e=e[b];-1b&&(b+=e.length);e=e[b].Va[this.Xl];P(e)?a.Dc(e):a.K(e);this.H.Qa();return}this.H.Qa()}b%=e.length;0>b&&(b+=e.length);e=e[b];b=0;this.Ub.I&&(b=e.type.Yh[this.Ub.cd]);e=e.Va[this.Xl+b];P(e)?a.Dc(e):a.K(e)};b.prototype.qr=function(a){a.type=Ub.$f;a.data=this.value};b.prototype.mr=function(a){a.type=Ub.Zf;a.data=this.value};b.prototype.Br=function(a){a.type=Ub.Gj;a.data=this.value};b.prototype.Er=
function(a){this.first.get(a);a.ab()&&(a.data=-a.data)};b.prototype.gr=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ab()&&b.ab()&&(a.data+=b.data,b.wf()&&a.Ef());this.H.Qa()};b.prototype.Cr=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ab()&&b.ab()&&(a.data-=b.data,b.wf()&&a.Ef());this.H.Qa()};b.prototype.ur=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ab()&&b.ab()&&(a.data*=b.data,b.wf()&&a.Ef());this.H.Qa()};b.prototype.jr=function(a){this.first.get(a);
var b=this.H.Xa();this.fb.get(b);a.ab()&&b.ab()&&(a.data/=b.data,a.Ef());this.H.Qa()};b.prototype.tr=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ab()&&b.ab()&&(a.data%=b.data,b.wf()&&a.Ef());this.H.Qa()};b.prototype.Ar=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ab()&&b.ab()&&(a.data=Math.pow(a.data,b.data),b.wf()&&a.Ef());this.H.Qa()};b.prototype.hr=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ab()?b.si()?a.Dc(a.data.toString()+b.data):
a.data&&b.data?a.ua(1):a.ua(0):a.si()&&(a.data=b.si()?a.data+b.data:a.data+(Math.round(1E10*b.data)/1E10).toString());this.H.Qa()};b.prototype.yr=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ab()&&b.ab()&&(a.data||b.data?a.ua(1):a.ua(0));this.H.Qa()};b.prototype.ir=function(a){this.first.get(a);a.data?this.fb.get(a):this.ij.get(a)};b.prototype.kr=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ua(a.data===b.data?1:0);this.H.Qa()};b.prototype.xr=function(a){this.first.get(a);
var b=this.H.Xa();this.fb.get(b);a.ua(a.data!==b.data?1:0);this.H.Qa()};b.prototype.rr=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ua(a.datab.data?1:0);this.H.Qa()};b.prototype.or=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ua(a.data>=
b.data?1:0);this.H.Qa()};b.prototype.lr=function(a){var b=this.De.ji();fa(b)?a.K(b):a.Dc(b)};Qb=b;l.prototype.wf=function(){return this.type===Ub.Zf};l.prototype.ab=function(){return this.type===Ub.$f||this.type===Ub.Zf};l.prototype.si=function(){return this.type===Ub.Gj};l.prototype.Ef=function(){this.wf()||(this.si()&&(this.data=parseFloat(this.data)),this.type=Ub.Zf)};l.prototype.ua=function(a){this.type=Ub.$f;this.data=Math.floor(a)};l.prototype.K=function(a){this.type=Ub.Zf;this.data=a};l.prototype.Dc=
function(a){this.type=Ub.Gj;this.data=a};Tb=l;Ub={$f:0,Zf:1,Gj:2}})();function V(b){this.b=b;this.ac=[]}
V.prototype.Lb=function(){var b={},l,a,q,e,d,f,r,h;b.waits=[];var g=b.waits,t;l=0;for(a=this.ac.length;l=b+l?(d.P.vj=b+l,e>=d.P.vj+0.04&&(d.P.vj=e),d.P.wj=a,!0):!1};b.prototype.ue=function(a){return this.b.ff[a.toLowerCase()]};b.prototype.pp=function(){var a=this.b.zb();return a.Yj?!1:!a.Oe};b.prototype.gm=G(!0);b.prototype.Bp=G(!0);b.prototype.Cj=
G(!0);b.prototype.Up=G(!0);b.prototype.Bj=G(!0);q.j=new b;l.prototype.xj=function(a){this.b.Cg||this.b.eg||(this.b.eg=a)};l.prototype.dm=function(a,d,b,e){if(d&&a&&(d=this.b.Gm(a,d,b,e))){this.b.Nc++;var l;this.b.trigger(Object.getPrototypeOf(a.wa).j.zj,d);if(d.ic)for(b=0,e=d.siblings.length;barguments[b]&&(d=arguments[b]);
a.K(d)};a.prototype.Ae=function(a){a.K(this.b.Ae)};a.prototype.Sf=function(a){a.K(this.b.Sf)};a.prototype.time=function(a){a.K(this.b.yc.Sa)};a.prototype.qd=function(a){a.ua(this.b.qd)};a.prototype.Li=function(a){a.ua(this.b.Li)};a.prototype.dk=function(a){a.ua(this.b.dk)};a.prototype.m=function(a,d,b,e,l){a.K(za(Ea(d,b,e,l)))};a.prototype.left=function(a,d,b){a.Dc(P(d)?d.substr(0,b):"")};a.prototype.right=function(a,d,b){a.Dc(P(d)?d.substr(d.length-b):"")};a.prototype.replace=function(a,d,b,e){P(d)&&
P(b)&&P(e)?a.Dc(d.replace(RegExp(Wa(b),"gi"),e)):a.Dc(P(d)?d:"")};a.prototype.Sj=function(a){a.K(this.b.Sj/1E3)};a.prototype.Bf=function(a){a.K(this.b.Bf)};q.Ua=new a;q.mt=function(){var a,b,h,g,l,p,q=this.b.zb();a=0;for(h=this.ac.length;athis.b.yc.Sa)){q.qc=g.ig;q.nc=g.nc;q.Ta=0;for(b in g.Xb)g.Xb.hasOwnProperty(b)&&(l=this.b.u[parseInt(b,10)].ca(),p=g.Xb[b],l.pa=p.Eo,ta(l.i,p.Ie),l=p,l.Ie.length=0,d.push(l));g.ig.kt();this.b.Qj(g.Ba);g.Km=!0}b=a=0;for(h=this.ac.length;a<
h;a++)g=this.ac[a],this.ac[b]=g,g.Km?(Qa(g.Xb),g.Ba.length=0,e.push(g)):b++;this.ac.length=b}})();
(function(){fb=function(b){var a=b[0].prototype,q=b[1],e=b[3],d=b[4],f=b[5],r=b[6],h=b[7];b=b[8];a.j||(a.j={});a.n||(a.n={});a.Ua||(a.Ua={});var g=a.j,t=a.n,a=a.Ua;e&&(g.Yf=function(a,d){return Vb(this.x,a,d)},g.bu=function(a,d){return Vb(this.y,a,d)},g.iu=function(){var a=this.k;this.Ca();var d=this.Ia;return!(d.righta.$b||d.top>a.Zb)},g.vp=function(){this.Ca();var a=this.Ia,d=this.b.ma;return 0>a.right||0>a.bottom||a.left>d.width||a.top>d.height},g.tu=function(a,d,b){var e=
this.ca(),c=e.uc();if(!c.length)return!1;var f=c[0],g=f,h=Na(f.x,f.y,d,b),l,q,r;l=1;for(q=c.length;lh)h=r,g=f;e.ah(g);return!0},t.Md=function(a){this.x!==a&&(this.x=a,this.D())},t.Ju=function(a){this.y!==a&&(this.y=a,this.D())},t.Fu=function(a,d){if(this.x!==a||this.y!==d)this.x=a,this.y=d,this.D()},t.Gu=function(a,d){var b=a.Tr(this);if(b){var e;b.nk?(e=b.nk(d,!0),b=b.nk(d,!1)):(e=b.x,b=b.y);if(this.x!==e||this.y!==b)this.x=e,this.y=b,this.D()}},
t.nu=function(a){0!==a&&(this.x+=Math.cos(this.m)*a,this.y+=Math.sin(this.m)*a,this.D())},t.mu=function(a,d){0!==d&&(this.x+=Math.cos(U(a))*d,this.y+=Math.sin(U(a))*d,this.D())},a.ef=function(a){a.K(this.x)},a.om=function(a){a.K(this.y)},a.Ae=function(a){a.K(this.b.fi(this))});d&&(g.au=function(a,d){return Vb(this.width,a,d)},g.Yt=function(a,d){return Vb(this.height,a,d)},t.lq=function(a){this.width!==a&&(this.width=a,this.D())},t.Cu=function(a){this.height!==a&&(this.height=a,this.D())},t.Hu=function(a,
d){if(this.width!==a||this.height!==d)this.width=a,this.height=d,this.D()},a.Nu=function(a){a.K(this.width)},a.du=function(a){a.K(this.height)},a.Vt=function(a){this.Ca();a.K(this.Ia.left)},a.Xt=function(a){this.Ca();a.K(this.Ia.top)},a.Wt=function(a){this.Ca();a.K(this.Ia.right)},a.Ut=function(a){this.Ca();a.K(this.Ia.bottom)});f&&(g.Tt=function(a,d){return Ga(this.m,U(d))<=U(a)},g.gu=function(a){return Ia(this.m,U(a))},g.fu=function(a,d){var b=Da(a),e=Da(d),c=Ba(this.m);return Ia(e,b)?Ia(c,b)&&
!Ia(c,e):!(!Ia(c,b)&&Ia(c,e))},t.gq=function(a){a=U(Aa(a));isNaN(a)||this.m===a||(this.m=a,this.D())},t.xu=function(a){0===a||isNaN(a)||(this.m+=U(a),this.m=Ba(this.m),this.D())},t.yu=function(a){0===a||isNaN(a)||(this.m-=U(a),this.m=Ba(this.m),this.D())},t.uh=function(a,d){var b=Ha(this.m,U(d),U(a));isNaN(b)||this.m===b||(this.m=b,this.D())},t.zu=function(a,d,b){a=Ha(this.m,Math.atan2(b-this.y,d-this.x),U(a));isNaN(a)||this.m===a||(this.m=a,this.D())},t.Iu=function(a,d){var b=Math.atan2(d-this.y,
a-this.x);isNaN(b)||this.m===b||(this.m=b,this.D())},a.St=function(a){a.K(Ca(this.m))});q||(g.Zt=function(a,d,b){return Vb(this.Va[a],d,b)},g.sp=function(a){return this.Va[a]},g.uu=function(a,d){var b=this.ca(),e=b.uc();if(!e.length)return!1;var c=e[0],f=c,g=c.Va[d],h,l,q;h=1;for(l=e.length;hg)g=q,f=c;b.ah(f);return!0},g.su=function(a){var d,b,e,c,f;if(this.b.kk().wg){f=this.ca();if(f.pa)for(f.pa=!1,f.i.length=0,f.ea.length=0,e=this.i,d=0,b=e.length;d<
b;d++)c=e[d],c.uid===a?f.ea.push(c):f.i.push(c);else{e=d=0;for(b=f.i.length;da?a=0:1c.k.index||e.k.index===c.k.index&&e.hc()>c.hc())c=e}else if(e.k.indexb)){var e=1===a;this.Nd[b]!==e&&(this.Nd[b]=e,this.Kd(),this.b.ja=!0)}}},t.Bu=function(a,d,b){if(this.b.B){var e=this.type.mk(a);0>e||(a=this.type.M[e],e=this.Fa[e],d=Math.floor(d),
0>d||d>=e.length||(1===this.b.B.Wr(a.kb,d)&&(b/=100),e[d]!==b&&(e[d]=b,a.td&&(this.b.ja=!0))))}})};Bb=function(){this.Nj=this.Kj=!0;this.type.yh=!0;this.b.ja=!0;var b,a,q=this.Lj;b=0;for(a=q.length;bq;case 5:return b>=q;default:return!1}}})();var cc={};function fc(b){this.b=b}
(function(){function b(a){0>a&&(a=0);1a&&(a=0.01);this.Ti.gain.value=a;this.Si.gain.value=Math.pow(1/a,0.6)*c};c.prototype.shape=function(a,c,b){var d=1.05*b*c-c;b=0>a?-1:1;a=0>a?-a:a;c=af;++f)e=f/32768,e=this.shape(e,b,d),this.Ph[32768+f]=e,this.Ph[32768-f-1]=-e};c.prototype.oc=function(a){this.L.disconnect();this.L.connect(a);this.J.disconnect();this.J.connect(a)};c.prototype.remove=function(){this.W.disconnect();this.Ti.disconnect();this.uj.disconnect();this.Si.disconnect();this.L.disconnect();this.J.disconnect()};c.prototype.gc=B("W");k.prototype.oc=function(a){this.Y.disconnect();
this.Y.connect(a)};k.prototype.remove=function(){this.Y.disconnect()};k.prototype.gc=B("Y");m.prototype.Za=function(){this.Y.getFloatFrequencyData(this.Ir);this.Y.getByteTimeDomainData(this.No);for(var a=this.Y.fftSize,c=0,d=this.$g=0,e=0;ce&&(e=-e),this.$gthis.ne.length||this.ne.shift(),this.ne.push(a),this.ti=this.T.x,this.vi=this.T.y)};n.prototype.bn=function(){if(!this.ne.length)return 0;var a,c,b=0;a=0;for(c=this.ne.length;athis.buffer.ya.duration:this.p.ended;case I:return this.jl;case Q:!0}return!0};C.prototype.Dq=function(){return this.Wd||this.Fc?!0:this.sg()};C.prototype.El=function(a){F===A&&(!this.gd&&a?this.$a&&(this.Ka||(this.Ka=y.createPanner(),this.Ka.panningModel="number"===typeof this.Ka.panningModel?sb:["equalpower","HRTF","soundfield"][sb],this.Ka.distanceModel="number"===typeof this.Ka.distanceModel?tb:
["linear","inverse","exponential"][tb],this.Ka.refDistance=lc,this.Ka.maxDistance=mc,this.Ka.rolloffFactor=nc),this.$a.disconnect(),this.$a.connect(this.Ka),this.Ka.connect(l(this.oe)),this.gd=!0):this.gd&&!a&&this.$a&&(this.Ka.disconnect(),this.$a.disconnect(),this.$a.connect(l(this.oe)),this.gd=!1))};C.prototype.Dl=function(a,c,b,d,e,f){this.gd&&F===A&&(this.Ka.setPosition(a,c,0),this.Ka.setOrientation(Math.cos(U(b)),Math.sin(U(b)),0),this.Ka.coneInnerAngle=d,this.Ka.coneOuterAngle=e,this.Ka.coneOuterGain=
f,this.oo=a,this.po=c,this.ko=b,this.lo=d,this.mo=e,this.no=f)};C.prototype.hh=function(a){this.gd&&F===A&&(this.Ja||(this.Ja=new n),this.Ja.hh(a))};C.prototype.Za=function(a){if(this.gd&&F===A&&this.Ja&&this.Ja.mi()&&this.uf()){this.Ja.Za(a);a=this.Ja.T;var c=Ma(a.x,a.y,-a.k.Pa(),Ka,La,!0),b=Ma(a.x,a.y,-a.k.Pa(),Ka,La,!1);this.Ka.setPosition(c,b,0);c=0;"undefined"!==typeof this.Ja.T.m&&(c=a.m-a.k.Pa(),this.Ka.setOrientation(Math.cos(c),Math.sin(c),0));c=Ma(this.Ja.rk(),this.Ja.sk(),-a.k.Pa(),0,0,
!0);b=Ma(this.Ja.rk(),this.Ja.sk(),-a.k.Pa(),0,0,!1);this.Ka.setVelocity(c,b,0)}};C.prototype.play=function(a,c,b){var f=this.p;this.Gd=a;this.volume=c;b=b||0;switch(this.la){case D:1!==f.playbackRate&&(f.playbackRate=1);f.volume!==c*va&&(f.volume=c*va);f.loop!==a&&(f.loop=a);f.muted&&(f.muted=!1);if(f.currentTime!==b)try{f.currentTime=b}catch(g){}this.Oc&&Ra&&!w.xc?Sa.push(this):this.p.play();break;case A:this.muted=!1;this.Tg=1;if(this.buffer.la===A)this.Wd||(this.p=y.createBufferSource(),this.p.buffer=
this.buffer.ya,this.p.connect(this.$a)),this.p.loop=a,this.$a.gain.value=c*va,0===b?e(this.p):d(this.p,b,this.qf());else{1!==f.playbackRate&&(f.playbackRate=1);f.loop!==a&&(f.loop=a);this.$a.gain.value=c*va;if(f.currentTime!==b)try{f.currentTime=b}catch(h){}this.Oc&&Ra&&!w.xc?Sa.push(this):f.play()}break;case I:(!this.Wd&&this.Fc||0!==b)&&f.seekTo(b);f.play();this.jl=!1;break;case Q:w.Ab?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=
w.yc.Sa-b;this.Ed=this.Fc=this.Wd=!1};C.prototype.stop=function(){switch(this.la){case D:this.p.paused||this.p.pause();break;case A:this.buffer.la===A?f(this.p):this.p.paused||this.p.pause();break;case I:this.p.stop();break;case Q:w.Ab&&AppMobi.context.stopSound(this.src)}this.Fc=!0;this.Ed=!1};C.prototype.pause=function(){if(!(this.Wd||this.Fc||this.sg()||this.Ed)){switch(this.la){case D:this.p.paused||this.p.pause();break;case A:this.buffer.la===A?(this.Vc=this.pk(),this.Gd&&(this.Vc%=this.qf()),
f(this.p)):this.p.paused||this.p.pause();break;case I:this.p.pause();break;case Q:w.Ab&&AppMobi.context.stopSound(this.src)}this.Ed=!0}};C.prototype.it=function(a){this.la===A&&(this.gd?(this.Ka.disconnect(),this.Ka.connect(a)):(this.$a.disconnect(),this.$a.connect(a)))};C.prototype.qf=function(){switch(this.la){case D:if("undefined"!==typeof this.p.duration)return this.p.duration;break;case A:return this.buffer.ya.duration;case I:return this.p.getDuration();case Q:if(w.Ab)return AppMobi.context.getDurationSound(this.src)}return 0};
C.prototype.pk=function(){var a=this.qf(),c=0;switch(this.la){case D:"undefined"!==typeof this.p.currentTime&&(c=this.p.currentTime);break;case A:if(this.buffer.la===A){if(this.Ed)return this.Vc;c=w.yc.Sa-this.startTime}else"undefined"!==typeof this.p.currentTime&&(c=this.p.currentTime);break;case Q:w.Ab&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}!this.Gd&&c>a&&(c=a);return c};C.prototype.uf=function(){return!this.Ed&&!this.Wd&&!this.Fc&&!this.sg()};C.prototype.Kt=function(){var a=this.volume*
va;switch(this.la){case D:this.p.volume&&this.p.volume!==a&&(this.p.volume=a);break;case A:this.$a.gain.value=a*this.Tg}};C.prototype.Th=function(a){switch(this.la){case D:this.p.muted!==!!a&&(this.p.muted=!!a);break;case A:this.Tg=a?0:1,this.$a.gain.value=va*this.volume*this.Tg}};C.prototype.wt=function(){this.xf=!0;this.Th(this.xf||this.Ag)};C.prototype.Io=function(a){this.Ag=!!a;this.Th(this.xf||this.Ag)};C.prototype.ip=function(){var a=this.playbackRate;if(1===eb&&!this.Oc||2===eb)a*=w.Sf;switch(this.la){case D:this.p.playbackRate!==
a&&(this.p.playbackRate=a);break;case A:this.buffer.la===A?this.p.playbackRate.value!==a&&(this.p.playbackRate.value=a):this.p.playbackRate!==a&&(this.p.playbackRate=a)}};C.prototype.xt=function(a){switch(this.la){case D:a?this.uf()?(this.p.pause(),this.Hd=!0):this.Hd=!1:this.Hd&&this.p.play();break;case A:a?this.uf()?(this.buffer.la===A?(this.Vc=this.pk(),this.Gd&&(this.Vc%=this.qf()),f(this.p)):this.p.pause(),this.Hd=!0):this.Hd=!1:this.Hd&&(this.buffer.la===A?(this.p=y.createBufferSource(),this.p.buffer=
this.buffer.ya,this.p.connect(this.$a),this.p.loop=this.Gd,this.$a.gain.value=va*this.volume*this.Tg,this.startTime=w.yc.Sa-this.Vc,d(this.p,this.Vc,this.qf())):this.p.play());break;case I:a?this.uf()?(this.p.pause(),this.Hd=!0):this.Hd=!1:this.Hd&&this.p.play()}};R.ra=function(a){this.type=a;w=this.b=a.b;M=this;this.Bb=null;this.Lg=-600;!(this.b.Gk||this.b.oi&&(this.b.xg||this.b.pn))||this.b.Bk||this.b.Aa||(Ra=!0);y=null;"undefined"!==typeof AudioContext?(F=A,y=new AudioContext):"undefined"!==typeof webkitAudioContext&&
(F=A,y=new webkitAudioContext);(this.b.Gk&&F===A||Ra)&&document.addEventListener("touchstart",function(){var a,c,b;!oc&&y&&(a=y.createBuffer(1,1,22050),c=y.createBufferSource(),c.buffer=a,c.connect(y.destination),e(c),oc=!0);if(Ra){if(!ua)for(a=0,c=Sa.length;a"!==c&&(a.Pi=c,a.Tk=d,a.Zl=e),null;h=new C(a,c);N.push(h);return h};var Ja=[];J.prototype.Aj=function(a){return bb(O,a)};R.j=new J;da.prototype.Play=function(a,c,b,d){!ua&&(b=Math.pow(10,b/20),0>b&&
(b=0),1=l||0>=h||b>=this.b.width||f>=this.b.height)this.Be||jQuery(this.da).hide(),this.Be=!0;else{1>b&&(b=1);1>f&&(f=1);l>=this.b.width&&(l=this.b.width-1);h>=this.b.height&&(h=this.b.height-1);var g=window.innerWidth,q=window.innerHeight;a||this.Dn!==b||this.In!==f||this.Gn!==l||this.Bn!==h||this.Kn!==g||
this.Jn!==q?(this.Dn=b,this.In=f,this.Gn=l,this.Bn=h,this.Kn=g,this.Jn=q,this.Be&&(jQuery(this.da).show(),this.Be=!1),a=Math.round(b)+jQuery(this.b.canvas).offset().left,g=Math.round(f)+jQuery(this.b.canvas).offset().top,jQuery(this.da).css("position","absolute"),jQuery(this.da).offset({left:a,top:g}),jQuery(this.da).width(Math.round(l-b)),jQuery(this.da).height(Math.round(h-f)),this.wq&&jQuery(this.da).css("font-size",this.k.Ib()/this.b.devicePixelRatio-0.2+"em")):this.Be&&(jQuery(this.da).show(),
this.Be=!1)}}};q.Mc=z();q.fc=z();b.prototype.sh=G(!0);a.j=new b;l.prototype.Ej=function(a){this.b.Aa||(this.tf?this.Fg.nodeValue=a:this.da.value=a)};l.prototype.jq=function(a){this.b.Aa||(this.visible=0!==a)};a.n=new l;a.Ua=new (z())})();function X(b){this.b=b}
(function(){function b(){}var l=X.prototype;l.Da=function(a){this.wa=a;this.b=a.b};l.Da.prototype.Z=z();l.ra=function(a){this.type=a;this.b=a.b};l.ra.prototype.Z=function(){this.tn=this.Ds=!1;this.Tf="";this.nd=null;this.Dt=this.b.wc&&"undefined"!==typeof CocoonJS.Store.nativeExtensionObjectAvailable;this.Bt=1!==this.A[0];this.Ct=0!==this.A[1];this.co="";var a=this;this.b.wc&&(CocoonJS.App.onTextDialogFinished.addEventListener(function(){a.b.trigger(X.prototype.j.Rp,a)}),CocoonJS.App.onTextDialogCancelled.addEventListener(function(){a.b.trigger(X.prototype.j.Qp,
a)}),CocoonJS.Ad.onBannerShown.addEventListener(function(){a.Ds=!0;a.b.trigger(X.prototype.j.Ap,a)}),CocoonJS.Ad.onBannerReady.addEventListener(function(){CocoonJS.Ad.setBannerLayout(0);CocoonJS.Ad.showBanner()}),CocoonJS.Ad.onFullScreenShown.addEventListener(function(){a.tn=!0;a.b.trigger(X.prototype.j.Fp,a)}),CocoonJS.Ad.onFullScreenHidden.addEventListener(function(){a.tn=!1;a.b.trigger(X.prototype.j.Ep,a)}),CocoonJS.Ad.onFullScreenReady.addEventListener(function(){preloadFullScreen||CocoonJS.Ad.showFullScreen()}),
this.Dt&&(CocoonJS.Store.onProductPurchaseCompleted.addEventListener(function(b){a.Tf=b.productId;a.b.trigger(X.prototype.j.$p,a);CocoonJS.Store.addPurchase(b);CocoonJS.Store.consumePurchase(b.transactionId,b.productId);CocoonJS.Store.finishPurchase(b.transactionId)}),CocoonJS.Store.onConsumePurchaseFailed.addEventListener(function(){a.b.trigger(X.prototype.j.Ms,a)}),CocoonJS.Store.onConsumePurchaseCompleted.addEventListener(function(b){this.co=b;a.b.trigger(X.prototype.j.co,a)}),CocoonJS.Store.onProductPurchaseFailed.addEventListener(function(b){a.Tf=
b;a.b.trigger(X.prototype.j.aq,a)}),CocoonJS.Store.onProductPurchaseStarted.addEventListener(function(b){a.Tf=b.productId;a.b.trigger(X.prototype.j.bq,a)}),CocoonJS.Store.onProductsFetchStarted.addEventListener(function(){a.b.trigger(X.prototype.j.Ws,a)}),CocoonJS.Store.onProductsFetchFailed.addEventListener(function(){a.b.trigger(X.prototype.j.Vs,a)}),CocoonJS.Store.onProductsFetchCompleted.addEventListener(function(){a.b.trigger(X.prototype.j.Us,a)}),CocoonJS.Store.requestInitialization({managed:this.Bt,
sandbox:this.Ct}),CocoonJS.Store.start()),this.nd=CocoonJS.SocialGaming.GameCenter,this.nd.onRequestLoginSucceed.addEventListener(function(){a.b.trigger(X.prototype.j.Jp,a)}),this.nd.onRequestLoginFailed.addEventListener(function(){a.b.trigger(X.prototype.j.Ip,a)}),this.nd.onLogout.addEventListener(function(){a.b.trigger(X.prototype.j.Kp,a)}),this.nd.onRequestUserScoreSucceed.addEventListener(function(){a.b.trigger(X.prototype.j.Lp,a)}),this.nd.onRequestUserScoreFailed.addEventListener(function(){a.b.trigger(X.prototype.j.Op,
a)}),this.nd.onSubmitUserScoreSucceed.addEventListener(function(){a.b.trigger(X.prototype.j.Np,a)}),this.nd.onSubmitUserScoreFailed.addEventListener(function(){a.b.trigger(X.prototype.j.Mp,a)}),this.nd.onLeaderboardViewSucceed.addEventListener(function(){a.b.trigger(X.prototype.j.Hp,a)}),this.nd.onLeaderboardViewClosed.addEventListener(function(){a.b.trigger(X.prototype.j.Gp,a)}))};b.prototype.Ap=G(!0);b.prototype.Fp=G(!0);b.prototype.Ep=G(!0);b.prototype.bq=function(a){return this.Tf===a};b.prototype.$p=
function(a){return this.Tf===a};b.prototype.aq=function(a){return this.Tf===a};b.prototype.Ws=G(!0);b.prototype.Ms=G(!0);b.prototype.Us=G(!0);b.prototype.Vs=G(!0);b.prototype.Qp=G(!0);b.prototype.Rp=G(!0);b.prototype.Jp=G(!0);b.prototype.Ip=G(!0);b.prototype.Kp=G(!0);b.prototype.Lp=G(!0);b.prototype.Op=G(!0);b.prototype.Np=G(!0);b.prototype.Mp=G(!0);b.prototype.Hp=G(!0);b.prototype.Gp=G(!0);l.j=new b;l.n=new (z());l.Ua=new (z())})();function Z(b){this.b=b}
(function(){function b(){if(0===this.Xj.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var c=a.getContext("2d");this.Pf?c.drawImage(this.U,this.If,this.Jf,this.width,this.height,0,0,this.width,this.height):c.drawImage(this.U,0,0,this.width,this.height);this.Xj=a.toDataURL("image/png")}return this.Xj}function l(){}function a(a){a[0]=0;a[1]=0;a[2]=0;v.push(a)}function q(a,c){return athis.F&&(this.F=0);this.F>=this.Ea.frames.length&&(this.F=this.Ea.frames.length-1);var a=this.Ea.frames[this.F];this.ba.jh(a.Qi);this.Jb=a.Jb;this.Kb=a.Kb;this.gg=this.Ea.speed;this.mc?this.$c.reset():this.$c=new Va;this.Cd=this.$c.Sa;this.Od=!0;this.ud=0;this.ve=!0;this.Pj=this.wm="";this.Gq=0;this.Oj=-1;this.type.Ok();var c,b,d,e,f,g,h,a=0;for(c=this.type.Mb.length;athis.F&&(this.F=0);this.F>=this.Ea.frames.length&&(this.F=this.Ea.frames.length-1);this.gg=a.cas;this.Cd=a.fs;this.ud=a.ar;this.$c.reset();this.$c.Sa=a.at;this.Od=a.hasOwnProperty("ap")?a.ap:!0;this.ve=a.hasOwnProperty("af")?a.af:!0;this.pc=this.Ea.frames[this.F];this.Oh=this.pc.xa;this.ba.jh(this.pc.Qi);this.Jb=this.pc.Jb;this.Kb=this.pc.Kb};p.Jj=function(a){this.F=a?0:this.Ea.frames.length-1;this.Od=!1;this.wm=this.Ea.name;this.b.trigger(Z.prototype.j.zp,
this);this.b.trigger(Z.prototype.j.yp,this);this.ud=0};p.Yu=function(){return this.$c.Sa};p.Za=function(){this.$c.add(this.b.fi(this));this.Pj.length&&this.Oq();0<=this.Oj&&this.Pq();var a=this.$c.Sa,c=this.Ea,b=c.frames[this.F],d=b.duration/this.gg;this.Od&&a>=this.Cd+d&&(this.ve?this.F++:this.F--,this.Cd+=d,this.F>=c.frames.length&&(c.so?(this.ve=!1,this.F=c.frames.length-2):c.loop?this.F=c.$i:(this.ud++,this.ud>=c.ul?this.Jj(!1):this.F=c.$i)),0>this.F&&(c.so?(this.F=1,this.ve=!0,c.loop||(this.ud++,
this.ud>=c.ul&&this.Jj(!0))):c.loop?this.F=c.$i:(this.ud++,this.ud>=c.ul?this.Jj(!0):this.F=c.$i)),0>this.F?this.F=0:this.F>=c.frames.length&&(this.F=c.frames.length-1),a>this.Cd+c.frames[this.F].duration/this.gg&&(this.Cd=a),a=c.frames[this.F],this.ag(b,a),this.b.ja=!0)};p.Um=function(a){var c,b,d;c=0;for(b=this.type.Mb.length;cthis.F&&(this.F=0),this.F>=this.Ea.frames.length&&(this.F=this.Ea.frames.length-1),1===this.Gq&&(this.F=0),this.Od=!0,this.Cd=this.$c.Sa,this.ve=!0,this.ag(a,this.Ea.frames[this.F]),this.b.ja=!0)};p.Pq=function(){var a=this.Ea.frames[this.F],c=this.F;this.F=T(this.Oj);0>this.F&&(this.F=0);this.F>=this.Ea.frames.length&&(this.F=this.Ea.frames.length-1);c!==this.F&&
(this.ag(a,this.Ea.frames[this.F]),this.Cd=this.$c.Sa,this.b.ja=!0);this.Oj=-1};p.ag=function(a,c){var b=a.width,d=a.height,e=c.width,f=c.height;b!=e&&(this.width*=e/b);d!=f&&(this.height*=f/d);this.Jb=c.Jb;this.Kb=c.Kb;this.ba.jh(c.Qi);this.D();this.pc=c;this.Oh=c.xa;b=0;for(d=this.O.length;be||e>=d.length)return c?this.x:this.y;
var f=(d[e][1]-b.Jb)*this.width,d=d[e][2],d=(d-b.Kb)*this.height,b=Math.cos(this.m);e=Math.sin(this.m);var g=f*b-d*e,d=d*b+f*e,f=g+this.x,d=d+this.y;return c?f:d};var v=[],s=-2,u=[];l.prototype.yj=function(c){if(!c)return!1;var b=this.b,g=b.kk(),h=g.type;g.P.Rj||(g.P.Rj={},b.Hj(function(c){return function(b){b=b.uid;var d,e;for(d in c)c.hasOwnProperty(d)&&(e=c[d],e[0]===b||e[1]===b)&&(a(c[d]),delete c[d])}}(g.P.Rj)));var g=g.P.Rj,k=h.ca(),l=c.ca(),k=k.uc(),p,q,r,t,v,K,D,A=this.b.qd,I=A-1,Q=b.zb().qc;
for(q=0;qa.$b||b.top>a.Zb)this.b.B.deleteTexture(this.Tb),this.fd=this.Se=this.Tb=null}};e.Ue=function(){this.fd=this.Se=null;this.b.B&&this.Tb&&this.b.B.deleteTexture(this.Tb);this.Tb=null};
e.gp=function(){this.font=this.ci+" "+this.dh.toString()+"pt "+this.Bd;this.qe=!0;this.b.ja=!0};e.Mc=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var d=1;b&&(d=this.k.Ib(),a.save(),a.scale(d,d));if(this.qe||this.width!==this.Kk)this.type.wa.nq(this.text,this.ee,a,this.width,this.cm),this.qe=!1,this.Kk=this.width;this.Ca();var d=b?0:this.yb.Ga,e=b?0:this.yb.Ha;this.b.hd&&(d=d+0.5|0,e=e+0.5|0);0===this.m||b||(a.save(),a.translate(d,e),a.rotate(this.m),
e=d=0);var f=e+this.height,l=this.ql,l=l+this.Mk,q,c;1===this.qj?e+=Math.max(this.height/2-this.ee.length*l/2,0):2===this.qj&&(e+=Math.max(this.height-this.ee.length*l-2,0));for(c=0;c=f-l);c++);(0!==this.m||b)&&a.restore();this.Kg=this.b.qd};e.fc=function(a){if(!(1>this.width||1>this.height)){var b=this.qe||this.Wn;this.Wn=!1;var d=this.k.Ib(),
e=this.k.Pa(),f=this.he,l=d*this.width,q=d*this.height,c=Math.ceil(l),k=Math.ceil(q),m=this.b.S/2,n=this.b.R/2;this.Se||(this.fd=document.createElement("canvas"),this.fd.width=c,this.fd.height=k,this.Ai=c,this.xi=k,b=!0,this.Se=this.fd.getContext("2d"));if(c!==this.Ai||k!==this.xi)this.fd.width=c,this.fd.height=k,this.Tb&&(a.deleteTexture(this.Tb),this.Tb=null),b=!0;b&&(this.Se.clearRect(0,0,c,k),this.Mc(this.Se,!0),this.Tb||(this.Tb=a.xd(c,k,this.b.aa,this.b.Yd)),a.Qt(this.fd,this.Tb,this.b.Yd));
this.Ai=c;this.xi=k;a.Wb(this.Tb);a.Ze(this.opacity);a.kd();a.translate(-m,-n);a.rd();var r=this.yb,C=this.b.devicePixelRatio;this.b.devicePixelRatio=1;var b=this.k.na(r.Ga,r.Ha,!0,!0),m=this.k.na(r.Ga,r.Ha,!1,!0),n=this.k.na(r.wb,r.xb,!0,!0),H=this.k.na(r.wb,r.xb,!1,!0),J=this.k.na(r.rb,r.sb,!0,!0),da=this.k.na(r.rb,r.sb,!1,!0),R=this.k.na(r.pb,r.qb,!0,!0),r=this.k.na(r.pb,r.qb,!1,!0);this.b.devicePixelRatio=C;if(this.b.hd||0===this.m&&0===e)var C=(b+0.5|0)-b,w=(m+0.5|0)-m,b=b+C,m=m+w,n=n+C,H=H+
w,J=J+C,da=da+w,R=R+C,r=r+w;0===this.m&&0===e?(n=b+c,H=m,J=n,da=m+k,R=b,r=da,f.right=1,f.bottom=1):(f.right=l/c,f.bottom=q/k);a.jd(b,m,n,H,J,da,R,r,f);a.kd();a.scale(d,d);a.xl(-this.k.Pa());a.translate((this.k.mb+this.k.$b)/-2,(this.k.nb+this.k.Zb)/-2);a.rd();this.Kg=this.b.qd}};var f=[];q.mq=function(a){f.length=0;for(var b="",d,e=0;e=f)l(d);else{if(100>=a.length&&-1===a.indexOf("\n")){var r=e.measureText(a).width;if(r<=f){l(d);d.push(b());d[0].text=a;d[0].width=r;return}}this.oq(a,d,e,f,q)}else l(d)};q.oq=function(a,d,e,l,q){q&&(this.mq(a),a=f);var s="",u,c,k,m=0;for(k=0;k=d.length&&d.push(b()),c=d[m],c.text=s,c.width=e.measureText(s).width,m++,s=
""):(u=s,s+=a[k],c=e.measureText(s).width,c>=l&&(m>=d.length&&d.push(b()),c=d[m],c.text=u,c.width=e.measureText(u).width,m++,s=a[k],q||" "!==s||(s="")));s.length&&(m>=d.length&&d.push(b()),c=d[m],c.text=s,c.width=e.measureText(s).width,m++);for(k=m;ka&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.qe=!0,this.b.ja=!0)};a.prototype.kq=function(a,b){if(this.b.Aa)L("[Construct 2] Text plugin: 'Set web font' not supported on this platform - the action has been ignored");
else{var e=this,f=function(){e.b.ja=!0;e.qe=!0};if(d.hasOwnProperty(b)){var l="'"+a+"'";if(this.Bd!==l)for(this.Bd=l,this.gp(),l=1;10>l;l++)setTimeout(f,100*l),setTimeout(f,1E3*l)}else for(l=document.createElement("link"),l.href=b,l.rel="stylesheet",l.type="text/css",l.onload=f,document.getElementsByTagName("head")[0].appendChild(l),d[b]=!0,this.Bd="'"+a+"'",this.gp(),l=1;10>l;l++)setTimeout(f,100*l),setTimeout(f,1E3*l)}};q.n=new a;q.Ua=new (z())})();function ic(b){this.b=b}
(function(){var b=ic.prototype;b.Da=function(a){this.wa=a;this.b=a.b};var l=b.Da.prototype;l.Z=function(){this.I||(this.U=new Image,this.U.idtkLoadDisposed=!0,this.U.src=this.Nl,this.U.Fm=this.Ol,this.b.Ld.push(this.U),this.xa=this.pattern=null)};l.Mi=function(){this.I||(this.xa=null)};l.el=function(){if(!this.I&&this.i.length){this.xa||(this.xa=this.b.B.Gi(this.U,!0,this.b.aa,this.Pl));var a,b;a=0;for(b=this.i.length;al&&(l+=this.U.width);0>h&&(h+=this.U.height);a.translate(b,e);a.rotate(this.m);a.translate(l,h);a.fillRect(d-l,f-h,this.width,this.height);
a.restore()};l.fc=function(a){a.Wb(this.xa);a.Ze(this.opacity);var b=this.he;b.right=this.width/this.U.width;b.bottom=this.height/this.U.height;var e=this.yb;if(this.b.hd){var d=(this.x+0.5|0)-this.x,f=(this.y+0.5|0)-this.y;a.jd(e.Ga+d,e.Ha+f,e.wb+d,e.xb+f,e.rb+d,e.sb+f,e.pb+d,e.qb+f,b)}else a.jd(e.Ga,e.Ha,e.wb,e.xb,e.rb,e.sb,e.pb,e.qb,b)};b.j=new (z());b.n=new (z());b.Ua=new (z())})();function jc(b){this.b=b}
(function(){function b(a){r=a.x;h=a.y;g=a.z}function l(a){t=a.x;p=a.y;v=a.z}function a(){}function q(){}var e=jc.prototype;e.Da=function(a){this.wa=a;this.b=a.b};e.Da.prototype.Z=z();e.ra=function(a){this.type=a;this.b=a.b;this.touches=[];this.Wk=!1};var d=e.ra.prototype,f={left:0,top:0};d.kg=function(a){var b,c;b=0;for(c=this.touches.length;bc-b.time||(b.yi=b.time,b.be=b.x,b.de=b.y,b.time=c,b.x=a.pageX-d.left,b.y=a.pageY-d.top)}}};d.fo=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.b.Aa?f:jQuery(this.b.canvas).offset(),c=a.pageX-
b.left,b=a.pageY-b.top,d=Ua();this.se=this.touches.length;this.touches.push({time:d,x:c,y:b,yi:d,be:c,de:b,id:a.pointerId,Kl:this.se});this.b.xc=!0;this.b.trigger(jc.prototype.j.jm,this);this.b.trigger(jc.prototype.j.Dj,this);this.Uj=c;this.Vj=b;this.b.trigger(jc.prototype.j.lm,this);this.b.xc=!1}};d.Ni=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&a.preventDefault(),a=this.kg(a.pointerId),this.se=0<=a?this.touches[a].Kl:-1,this.b.xc=!0,this.b.trigger(jc.prototype.j.im,
this),this.b.trigger(jc.prototype.j.km,this),this.b.xc=!1,0<=a&&this.touches.splice(a,1))};d.ho=function(a){a.preventDefault&&a.preventDefault();var b=Ua(),c,d,e,g;c=0;for(d=a.changedTouches.length;cb-g.time||(g.yi=g.time,g.be=g.x,g.de=g.y,g.time=b,g.x=e.pageX-h.left,g.y=e.pageY-h.top)}};d.io=function(a){a.preventDefault&&a.preventDefault();var b=this.b.Aa?f:jQuery(this.b.canvas).offset(),
c=Ua();this.b.xc=!0;var d,e,g,h;d=0;for(e=a.changedTouches.length;db&&(b=0),this.r=
Math.cos(e)*b,this.C=Math.sin(e)*b);0!==this.Qb&&(this.C+=this.Qb*a);this.be=this.d.x;this.de=this.d.y;if(0!==this.r||0!==this.C)if(this.d.x+=this.r*a,this.d.y+=this.C*a,this.nj+=Na(0,0,this.r*a,this.C*a),this.Cl&&(this.d.m=Ea(0,0,this.r,this.C),this.d.D(),this.zf=this.d.m),this.d.D(),this.zq&&(b=this.b.lb(this.d)))this.b.Lf(this.d,b),b=Na(0,0,this.r,this.C),e=this.b.Cq(this.d,this.be,this.de),this.r=Math.cos(e)*b,this.C=Math.sin(e)*b,this.d.x+=this.r*a,this.d.y+=this.C*a,this.d.D(),this.Cl&&(this.zf=
this.d.m=e,this.d.D()),this.b.Uc(this.d,this.r/b,this.C/b,Math.max(2.5*b*a,30))||this.b.zo(this.d,100)}};b.j=new (z());b.n=new (z());b.Ua=new (z())})();function pc(b){this.b=b}
(function(){function b(){}function l(){}var a=pc.prototype;a.Da=function(a){this.Eb=a;this.b=a.b};a.Da.prototype.Z=z();a.ra=function(a,b){this.type=a;this.Eb=a.Eb;this.d=b;this.b=a.b;this.ej=this.Hl=this.Gl=this.wk=this.yf=this.Eg=this.aj=this.Di=!1;this.jc=null;this.Nk=-1;this.Me=this.Le=0;this.bi=!1;this.nf=this.Kc=0;this.ai=!0;this.C=this.r=0};var q=a.ra.prototype;q.hp=function(){this.hb=Math.cos(this.pf);this.ib=Math.sin(this.pf);this.Xe=Math.cos(this.pf-Math.PI/2);this.Ye=Math.sin(this.pf-Math.PI/
2);this.hb=ab(this.hb);this.ib=ab(this.ib);this.Xe=ab(this.Xe);this.Ye=ab(this.Ye);this.gk=this.Qb;0>this.Qb&&(this.hb*=-1,this.ib*=-1,this.Qb=Math.abs(this.Qb))};q.Z=function(){this.Ff=this.A[0];this.Hc=this.A[1];this.lf=this.A[2];this.Ik=this.A[3];this.gk=this.Qb=this.A[4];this.Ji=this.A[5];this.Mq=1===this.A[6];this.enabled=0!==this.A[7];this.Xf=!1;this.tj=this.b.pe(this.d);this.pf=U(90);this.hp();var a=this;this.Mq&&!this.b.Aa&&(jQuery(document).keydown(function(b){a.Ps(b)}),jQuery(document).keyup(function(b){a.Qs(b)}));
this.mc||(this.Vn=function(b){a.cl(b)});this.b.Hj(this.Vn)};q.Lb=function(){return{ii:this.wk,lfx:this.Le,lfy:this.Me,lfo:this.jc?this.jc.uid:-1,am:this.Kc,en:this.enabled,fall:this.nf,ft:this.ai,dx:this.r,dy:this.C,ms:this.Ff,acc:this.Hc,dec:this.lf,js:this.Ik,g:this.Qb,g1:this.gk,mf:this.Ji,wof:this.Xf,woj:this.tj,ga:this.pf}};q.lc=function(a){this.wk=a.ii;this.Le=a.lfx;this.Me=a.lfy;this.Nk=a.lfo;this.Kc=a.am;this.enabled=a.en;this.nf=a.fall;this.ai=a.ft;this.r=a.dx;this.C=a.dy;this.Ff=a.ms;this.Hc=
a.acc;this.lf=a.dec;this.Ik=a.js;this.Qb=a.g;this.gk=a.g1;this.Ji=a.mf;this.Xf=a.wof;this.tj=a.woj;this.pf=a.ga;this.ej=this.Hl=this.Gl=this.yf=this.Eg=this.aj=this.Di=!1;this.hp()};q.Zc=function(){this.jc=-1===this.Nk?null:this.b.ng(this.Nk)};q.cl=function(a){this.jc==a&&(this.jc=null)};q.Ue=function(){this.jc=null;this.b.jt(this.Vn)};q.Ps=function(a){switch(a.which){case 38:a.preventDefault();this.Eg=!0;break;case 37:a.preventDefault();this.Di=!0;break;case 39:a.preventDefault(),this.aj=!0}};q.Qs=
function(a){switch(a.which){case 38:a.preventDefault();this.yf=this.Eg=!1;break;case 37:a.preventDefault();this.Di=!1;break;case 39:a.preventDefault(),this.aj=!1}};q.Wu=function(){return 0>this.Qb?-1:1};q.rn=function(){var a=null,b=null,f,l;f=this.d.x;l=this.d.y;this.d.x+=this.hb;this.d.y+=this.ib;this.d.D();if(this.jc&&this.b.Yb(this.d,this.jc))return this.d.x=f,this.d.y=l,this.d.D(),this.jc;(a=this.b.lb(this.d))||0!==this.nf||(b=this.b.pe(this.d,!0));this.d.x=f;this.d.y=l;this.d.D();if(a){if(this.b.Yb(this.d,
a))return null;this.bi=!1;return a}if(b&&b.length){l=a=0;for(f=b.length;athis.Ji&&(this.C=this.Ji),c&&(this.yf=!0));this.Xf=!!k;u==l&&(0>this.r?(this.r+=this.lf*
a,0this.r&&(this.r=0)));u&&!l&&(this.r=0this.r?this.r+(this.Hc+this.lf)*a:this.r+this.Hc*a);this.r>this.Ff?this.r=this.Ff:this.r<-this.Ff&&(this.r=-this.Ff);u=!1;0!==this.r&&(v=this.d.x,s=this.d.y,b=this.r*a*this.Xe,f=this.r*a*this.Ye,this.d.x+=this.Xe*(1this.r?1:-1),this.Ye*(0>this.r?1:-1),b,!1)?!k||h||this.bi||(v=this.d.x,s=this.d.y,this.d.x+=this.hb,this.d.y+=this.ib,this.b.lb(this.d)?this.b.Uc(this.d,-this.hb,-this.ib,
3,!1)||(this.d.x=v,this.d.y=s,this.d.D()):(this.d.x=v,this.d.y=s,this.d.D())):(this.d.x=v,this.d.y=s,this.d.D()),h||(this.r=0)):!g&&15>Math.abs(this.C)&&(this.C=0,k||(u=!0)):(v=this.rn(),k&&!v?(f=Math.ceil(Math.abs(this.r*a))+2,v=this.d.x,s=this.d.y,this.d.x+=this.hb*f,this.d.y+=this.ib*f,this.d.D(),this.b.lb(this.d)||this.b.pe(this.d)?this.b.Uc(this.d,-this.hb,-this.ib,f+2,!0):(this.d.x=v,this.d.y=s,this.d.D())):v&&0===this.C&&this.b.pl(this.d,-this.hb,-this.ib,v)));if(0!==this.C){v=this.d.x;s=this.d.y;
this.d.x+=this.C*a*this.hb;this.d.y+=this.C*a*this.ib;b=this.d.x;l=this.d.y;this.d.D();f=this.b.lb(this.d);h=!1;if(!f&&0this.C?1:
-1),this.ib*(0>this.C?1:-1),b,h,f)?(this.jc=f,this.Le=f.x,this.Me=f.y,(this.bi=h)&&(u=!0),this.C=0):(this.d.x=v,this.d.y=s,this.d.D(),this.Xf=!0,h||(this.C=0)))}3!==this.Kc&&0this.C};b.prototype.Pp=G(!0);b.prototype.Dp=G(!0);b.prototype.fq=G(!0);b.prototype.Vp=G(!0);b.prototype.Sp=G(!0);a.j=new b;l.prototype.iq=function(a){this.C=a};a.n=new l;a.Ua=new (z())})();function ec(b){this.b=b}
(function(){var b=ec.prototype;b.Da=function(a){this.Eb=a;this.b=a.b};b.Da.prototype.Z=z();b.ra=function(a,b){this.type=a;this.Eb=a.Eb;this.d=b;this.b=a.b};var l=b.ra.prototype;l.Z=function(){this.d.P.yt=0!==this.A[0]};l.Za=z();b.j=new (z());b.n=new (z())})();
function dc(){return[null,null,[[Z,!1,!0,!0,!0,!0,!0,!0,!0,!1],[hc,!1,!0,!0,!0,!0,!0,!0,!0,!1],[ic,!1,!0,!0,!0,!0,!0,!0,!0,!0],[jc,!0,!1,!1,!1,!1,!1,!1,!1,!1],[W,!0,!1,!1,!1,!1,!1,!1,!1,!1],[fc,!0,!1,!1,!1,!1,!1,!1,!1,!1],[gc,!1,!0,!0,!0,!1,!1,!1,!1,!1],[X,!0,!1,!1,!1,!1,!1,!1,!1,!1]],[["t0",Z,!1,[],2,0,null,[["Default",12,!0,1,0,!1,0x9cf3de55b74d,[["images/bird-sheet0.png",297,0,0,60,42,1,0.5,0.5,[],[-0.300000011920929,-0.2142859995365143,0,-0.4285714030265808,0.300000011920929,-0.2142859995365143,
0.449999988079071,0,0.3500000238418579,0.2857139706611633,0,0.4285709857940674,-0.3499999940395355,0.2857139706611633,-0.449999988079071,0],0],["images/bird-sheet1.png",296,0,0,60,42,1,0.5,0.5,[],[-0.300000011920929,-0.2142859995365143,0,-0.4285714030265808,0.300000011920929,-0.2142859995365143,0.449999988079071,0,0.3500000238418579,0.2857139706611633,0,0.4285709857940674,-0.3499999940395355,0.2857139706611633,-0.449999988079071,0],0],["images/bird-sheet2.png",292,0,0,60,42,1,0.5,0.5,[],[-0.3499999940395355,
-0.2857140004634857,0,-0.4285714030265808,0.300000011920929,-0.2142859995365143,0.449999988079071,0,0.3500000238418579,0.2857139706611633,0,0.4285709857940674,-0.3499999940395355,0.2857139706611633,-0.449999988079071,0],0]]]],[["Platform",pc,5178987554423825],["Bullet",kc,5915136554423096]],!1,!1,7655953109634694,[],null],["t1",gc,!1,[],0,0,null,null,[],!1,!1,0x978a934282253,[],null],["t2",ic,!1,[],0,0,["images/tiledbackground.png",110,2],null,[],!1,!1,7074001819537027,[],null],["t3",ic,!1,[],1,0,
["images/tiledbackground2.png",244,1],null,[["Solid",ec,7647064555855058]],!1,!1,0x911491cebc40b,[],null],["t4",Z,!1,[],0,0,null,[["Default",5,!1,1,0,!1,5403016070098888,[["images/background-sheet0.png",1091,0,0,360,640,1,0.5,0.5,[],[],1]]]],[],!1,!1,953656317085853,[],null],["t5",Z,!1,[594544762936064],1,0,null,[["Default",5,!1,1,0,!1,7052596752156929,[["images/bottompipe-sheet0.png",326,0,0,72,405,1,0.5,0.5012345910072327,[],[],1]]]],[["Solid",ec,6722651798794236]],!1,!1,9618256118790168,[],null],
["t6",Z,!1,[],1,0,null,[["Default",5,!1,1,0,!1,290853698256507,[["images/toppipe-sheet0.png",330,0,0,72,405,1,0.5,0.5012345910072327,[],[],1]]]],[["Solid",ec,6282154193180226]],!1,!1,0xa8aa3754ecd2a,[],null],["t7",hc,!1,[],0,0,null,null,[],!1,!1,8463788785676717,[],null],["t8",Z,!1,[],0,0,null,[["Default",5,!1,1,0,!1,8147977195382181,[["images/background-sheet0.png",1091,0,0,360,640,1,0.5,0.5,[],[],1]]]],[],!1,!1,0xc449578cad692,[],null],["t9",gc,!1,[],0,0,null,null,[],!1,!1,9906374471482008,[],null],
["t10",W,!1,[],0,0,null,null,[],!1,!1,669069303560179,[],null,[]],["t11",jc,!1,[],0,0,null,null,[],!1,!1,486488503983799,[],null,[1]],["t12",fc,!1,[],0,0,null,null,[],!1,!1,4927060136278973,[],null,[0,0,1,1,600,600,1E4,1,5E3,1]],["t13",gc,!1,[],0,0,null,null,[],!1,!1,9879998339594612,[],null],["t14",X,!1,[],0,0,null,null,[],!1,!1,318978452288943,[],null,[0,1]]],[],[["Start",400,600,!1,"Start events",5642885501120438,[["Layer 0",0,0x59e1be0fcd8a5,!0,[255,255,255],!1,1,1,1,!1,1,0,0,[[[199,267,0,403,
664,0,0,1,0.5,0.5,0,0,[]],8,8,[],[],[0,"Default",0,1]],[[163,236,0,72,24,0,0,1,0,0,0,0,[]],1,1,[],[],[0,"Play!","",1,1,1,"",0]],[[503,447,0,128,24,0,0,1,0,0,0,0,[]],9,10,[],[],[0,"View tutorial!","",1,1,1,"",0]]],[]]],[],[]],["Game",400,600,!1,"Game events",6198708927320934,[["Layer 0",0,355627206710923,!0,[255,255,255],!1,1,1,1,!1,1,0,0,[[[447,-117,0,72,405,0,0,1,0.5,0.5012345910072327,0,0,[]],6,7,[],[[1]],[0,"Default",0,1]],[[450,630,0,72,405,0,0,1,0.5,0.5012345910072327,0,0,[]],5,6,[[0]],[[1]],
[0,"Default",0,1]],[[200,246,0,397.9865112304688,707.5315551757812,0,0,1,0.5,0.5,0,0,[]],4,5,[],[],[0,"Default",0,1]],[[75,205,0,60,42,0,-0.003806045977398753,1,0.5,0.5,0,0,[]],0,0,[],[[0,300,1500,0,1800,2500,1,1],[0,0,0,1,1,1]],[0,"Default",0,1]],[[-76,627,0,1118,28,0,0,1,0,0,0,0,[]],2,3,[],[],[0,0]],[[181,50,0,169,114,0,0,1,0,0,0,0,[]],7,9,[],[],["0",0,"26pt Arial","rgb(255,255,255)",0,0,0,0,0]]],[]],["Pipes",1,6282195705710062,!0,[255,255,255],!0,1,1,1,!1,1,0,0,[[[0,474,0,1007,130,0,0,1,0,0,0,
0,[]],3,4,[],[[1]],[0,0]]],[]],["Restart",3,8827971525510233,!1,[255,255,255],!0,1,1,1,!1,1,0,0,[[[158,243,0,72,24,0,0,1,0,0,0,0,[]],13,13,[],[],[0,"Restart","",1,1,1,"",0]]],[]]],[],[]]],[["Game events",[[1,"SECONDSPEROBSTACLE",0,1,!1,!0,0x5bf010b64db3c,!1],[1,"JUMPSTRENGTH",0,550,!1,!0,6706328064360653,!1],[1,"SCROLLSPEED",0,300,!1,!0,0xc6a8ff77fc51,!1],[1,"Score",0,0,!1,!1,0x5c248b788c4f5,!1],[0,[!0,"Start"],!1,null,0x79b2493328c60,[[-1,V.prototype.j.ue,null,0,!1,!1,!1,0x79b2493328c60,!1,[[1,[2,
"Start"]]]]],[],[[0,null,!1,null,0x7fb9c20c1c4f4,[[-1,V.prototype.j.fm,null,1,!1,!1,!1,7552674298305292,!1]],[[7,hc.prototype.n.Ej,null,7981695657209981,!1,[[7,[0,0]]]],[7,hc.prototype.n.kq,null,8858143142522444,!1,[[1,[2,"Press Start 2P"]],[1,[2,"http://fonts.googleapis.com/css?family=Press+Start+2P"]]]],[3,ic.prototype.n.Md,null,8531867926373433,!1,[[0,[0,0]]]],[2,ic.prototype.n.Md,null,7883271464586618,!1,[[0,[0,0]]]],[-1,V.prototype.n.hq,null,5362289503657037,!1,[[11,"Score"],[7,[0,0]]]],[6,Z.prototype.n.rh,
null,5327330446513932,!1],[5,Z.prototype.n.rh,null,0x9036ad38b539f,!1],[0,Z.prototype.n.gq,null,0xe22a4311bdaf7,!1,[[0,[0,320]]]],[-1,V.prototype.n.Db,null,9201979701102372,!1,[[1,[2,"Movement"]],[3,1]]],[-1,V.prototype.n.Db,null,6267526365805088,!1,[[1,[2,"Background"]],[3,1]]],[-1,V.prototype.n.Db,null,6363178502281003,!1,[[1,[2,"Obstacle"]],[3,1]]],[-1,V.prototype.n.vh,null,7674229181990306,!1,[[5,[0,2]],[3,0]]],[-1,V.prototype.n.Db,null,0xa1db8f09e258a,!1,[[1,[2,"Collisions"]],[3,1]]]]]]],[0,
[!0,"Movement"],!1,null,0x4fa414ac0c414,[[-1,V.prototype.j.ue,null,0,!1,!1,!1,0x4fa414ac0c414,!1,[[1,[2,"Movement"]]]]],[],[[0,null,!1,null,9923654974799748,[[11,jc.prototype.j.Dj,null,1,!1,!1,!1,8630474439530806,!1]],[[0,pc.prototype.n.iq,"Platform",8776672419371477,!1,[[0,[3,[23,"JUMPSTRENGTH"]]]]]]],[0,null,!1,null,0xb5e14d8b40f2,[[0,pc.prototype.j.up,"Platform",0,!1,!1,!1,7423593987601416,!1]],[[0,Z.prototype.n.uh,null,5698124432107209,!1,[[0,[0,2]],[0,[0,90]]]]]],[0,null,!1,null,0xb651ab18f194,
[[0,pc.prototype.j.tp,"Platform",0,!1,!1,!1,0x6d1b94a801b48,!1]],[[0,Z.prototype.n.uh,null,0x4d69f084f2723,!1,[[0,[0,9]],[0,[0,-25]]]]]]]],[0,[!0,"Collisions"],!1,null,9558025647412416,[[-1,V.prototype.j.ue,null,0,!1,!1,!1,9558025647412416,!1,[[1,[2,"Collisions"]]]]],[],[[0,null,!1,null,0x9b4a6aa23552,[[0,Z.prototype.j.yj,null,0,!1,!1,!0,6202042408238202,!1,[[4,3]]]],[[-1,V.prototype.n.Db,null,650488141588384,!1,[[1,[2,"Movement"]],[3,0]]],[0,Z.prototype.n.Fj,null,9640112226732188,!1],[-1,V.prototype.n.Db,
null,9001322535240395,!1,[[1,[2,"Background"]],[3,0]]],[-1,V.prototype.n.Db,null,5328022455235355,!1,[[1,[2,"Obstacle"]],[3,0]]],[-1,V.prototype.n.vh,null,5576810530230529,!1,[[5,[0,2]],[3,1]]]]],[0,null,!1,null,0xb1f259f4e4c41,[[0,Z.prototype.j.yj,null,0,!1,!1,!0,7033929425378829,!1,[[4,6]]]],[[-1,V.prototype.n.Db,null,9710898490746992,!1,[[1,[2,"Movement"]],[3,0]]],[0,Z.prototype.n.Fj,null,0x8ec9a2780e9eb,!1],[0,Z.prototype.n.uh,null,0xd7c039cfd925b,!1,[[0,[0,20]],[0,[0,90]]]],[-1,V.prototype.n.Db,
null,0x405bed6588248,!1,[[1,[2,"Background"]],[3,0]]],[-1,V.prototype.n.Db,null,0x991dc2b3e3eca,!1,[[1,[2,"Obstacle"]],[3,0]]],[-1,V.prototype.n.vh,null,6311384745069453,!1,[[5,[0,2]],[3,1]]],[12,fc.prototype.n.Play,null,0xd6a2727cfedd2,!1,[[2,["nabrak",!1]],[3,0],[0,[0,0]],[1,[2,""]]]],[-1,V.prototype.n.Db,null,0xb785784a3a3e8,!1,[[1,[2,"Collisions"]],[3,0]]]]],[0,null,!1,null,6661993072735907,[[0,Z.prototype.j.yj,null,0,!1,!1,!0,0xc2dec64614c99,!1,[[4,5]]]],[[-1,V.prototype.n.Db,null,9831981707608296,
!1,[[1,[2,"Movement"]],[3,0]]],[0,Z.prototype.n.Fj,null,6699772369267079,!1],[0,Z.prototype.n.uh,null,0xe07711ad5bfc6,!1,[[0,[0,20]],[0,[0,90]]]],[-1,V.prototype.n.Db,null,0x6c48eba096648,!1,[[1,[2,"Background"]],[3,0]]],[-1,V.prototype.n.Db,null,4555980905622123,!1,[[1,[2,"Obstacle"]],[3,0]]],[-1,V.prototype.n.vh,null,4975109804000668,!1,[[5,[0,2]],[3,1]]],[12,fc.prototype.n.Play,null,88902804884405,!1,[[2,["nabrak",!1]],[3,0],[0,[0,0]],[1,[2,""]]]],[-1,V.prototype.n.Db,null,0xf54f38f6ed393,!1,[[1,
[2,"Collisions"]],[3,0]]]]],[0,null,!1,null,9569398275688900,[[0,Z.prototype.j.vp,null,0,!1,!1,!1,0xd2a15c96ebb43,!1]],[[-1,V.prototype.n.xj,null,8628296172319708,!1,[[6,"Start"]]]]]]],[0,[!0,"Scoring"],!1,null,0xf2791f34175d,[[-1,V.prototype.j.ue,null,0,!1,!1,!1,0xf2791f34175d,!1,[[1,[2,"Scoring"]]]]],[],[[0,null,!1,null,0xa10b4746e5408,[[5,Z.prototype.j.Yf,null,0,!1,!1,!1,7198601104534188,!1,[[8,3],[0,[20,0,Z.prototype.Ua.ef,!1,null]]]],[5,Z.prototype.j.sp,null,0,!1,!0,!1,9504905685329224,!1,[[10,
0]]]],[[-1,V.prototype.n.np,null,0xd77c4ecfee059,!1,[[11,"Score"],[7,[0,1]]]],[7,hc.prototype.n.Ej,null,0x777f548914531,!1,[[7,[23,"Score"]]]],[5,Z.prototype.n.nm,null,0x5b14e2f44299b,!1,[[10,0],[3,1]]],[12,fc.prototype.n.Play,null,6520842869629358,!1,[[2,["lewatpipa2",!1]],[3,0],[0,[0,0]],[1,[2,""]]]]]]]],[0,[!0,"Background"],!1,null,0x7e0fe3c8497b1,[[-1,V.prototype.j.ue,null,0,!1,!1,!1,0x7e0fe3c8497b1,!1,[[1,[2,"Background"]]]]],[],[[0,null,!1,null,0x7519a4ef02af6,[[2,ic.prototype.j.Yf,null,0,!1,
!1,!1,6540219589020234,!1,[[8,3],[0,[0,-560]]]]],[[2,ic.prototype.n.Md,null,9755675412106924,!1,[[0,[0,0]]]]]],[0,null,!1,null,30454140128404,[[3,ic.prototype.j.Yf,null,0,!1,!1,!1,0x446d5cd3f1cb7,!1,[[8,3],[0,[0,-410]]]]],[[3,ic.prototype.n.Md,null,0x4065c9db3bcc0,!1,[[0,[0,0]]]]]],[0,null,!1,null,0x4ec47142457bc,[[-1,V.prototype.j.rp,null,0,!1,!1,!1,0x41d2c7ea9c5ed,!1]],[[5,Z.prototype.n.Md,null,7511133595224626,!1,[[0,[5,[20,5,Z.prototype.Ua.ef,!1,null],[1,3.5]]]]],[6,Z.prototype.n.Md,null,8323998578270259,
!1,[[0,[5,[20,6,Z.prototype.Ua.ef,!1,null],[1,3.5]]]]],[3,ic.prototype.n.Md,null,0x7cd9cc810ba65,!1,[[0,[5,[20,3,ic.prototype.Ua.ef,!1,null],[1,3.5]]]]],[2,ic.prototype.n.Md,null,9315588896493164,!1,[[0,[5,[20,2,ic.prototype.Ua.ef,!1,null],[1,3.5]]]]]]],[0,null,!1,null,6231531170117115,[[6,Z.prototype.j.Yf,null,0,!1,!1,!1,0x63245c7a81a0,!1,[[8,2],[0,[0,-50]]]]],[[6,Z.prototype.n.rh,null,0xc247696ca04de,!1]]],[0,null,!1,null,7423873857133321,[[5,Z.prototype.j.Yf,null,0,!1,!1,!1,0xf3e91a606514c,!1,
[[8,2],[0,[0,-50]]]]],[[5,Z.prototype.n.rh,null,0x68ad1304ed94d,!1]]]]],[0,[!0,"Obstacle"],!1,null,9794049253184592,[[-1,V.prototype.j.ue,null,0,!1,!1,!1,9794049253184592,!1,[[1,[2,"Obstacle"]]]]],[],[[0,null,!1,null,6640649658259165,[[-1,V.prototype.j.qp,null,0,!1,!1,!1,4811019573960773,!1,[[0,[1,1.2]]]]],[[-1,V.prototype.n.dm,null,0x62e328b22527a,!1,[[4,6],[5,[0,0]],[0,[0,440]],[0,[19,V.prototype.Ua.random,[[0,50],[0,-250]]]]]],[-1,V.prototype.n.dm,null,0x8fa93e5db4a1f,!1,[[4,5],[5,[0,0]],[0,[0,
440]],[0,[4,[20,6,Z.prototype.Ua.om,!1,null],[0,550]]]]],[7,hc.prototype.n.xp,null,0xab94651d81946,!1],[5,Z.prototype.n.nm,null,0xb87d687994a6e,!1,[[10,0],[3,0]]]]]]],[0,[!0,"Restart"],!1,null,5247221245270953,[[-1,V.prototype.j.ue,null,0,!1,!1,!1,5247221245270953,!1,[[1,[2,"Restart"]]]]],[]],[0,null,!1,null,8181246724427678,[[13,gc.prototype.j.sh,null,1,!1,!1,!1,290332944059829,!1]],[[-1,V.prototype.n.xj,null,5086158505023414,!1,[[6,"Game"]]]]]]],["Start events",[[0,null,!1,null,8450924142424696,
[[1,gc.prototype.j.sh,null,1,!1,!1,!1,8769507891639029,!1]],[[-1,V.prototype.n.xj,null,0x4b1acbd660d14,!1,[[6,"Game"]]]]],[0,null,!1,null,8396635392973638,[[9,gc.prototype.j.sh,null,1,!1,!1,!1,8649054085373641,!1]],[]]]]],"media/",!1,400,600,4,!0,!0,!0,"1.0.0.0",!0,!1,0,0,15,!1,!0,[]]};