// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var g=!0,q=null,r=!1;function F(){return function(){}}function J(e){return function(){return this[e]}}function K(e){return function(){return e}}var aa,ba,ca,M,da,ea,fa,ga,ha,ia,ja,ka,la,ma,na,oa,qa,O,ra,sa,S,ta,ua,va,wa,xa,ya,Ba,Ca,Da,Fa,Ga,Ha,Na,Oa,Pa,Qa,Ra,Sa,Ta,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,fb,gb,hb,ib,jb,kb,lb,qb,rb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype});
(function(){function e(a,c,b,f){this.set(a,c,b,f)}function k(){this.eb=this.bb=this.hb=this.gb=this.mb=this.lb=this.Ea=this.Da=0}function d(){this.wd={};this.Ig=0;this.Tf=[];this.ag=g}function t(){this.Cb=this.bj=this.y=this.Gj=0}function b(a){this.sb=[];this.hh(a)}aa=function(a){window.console&&window.console.log&&window.console.log(a)};ba=function(a){return"undefined"===typeof a};ca=function(a){return"number"===typeof a};M=function(a){return"string"===typeof a};da=function(a){return 0<a&&0===(a-
1&a)};ea=function(a){return 0>a?-a:a};fa=function(a,c){return a>c?a:c};ga=function(a,c){return a<c?a:c};ha=Math.PI;ia=function(a){return a|0};ja=function(a,c,b,f,d,n,x,v){if(fa(a,b)<ga(d,x)||ga(a,b)>fa(d,x)||fa(c,f)<ga(n,v)||ga(c,f)>fa(n,v))return r;var s=d-a+x-b,l=n-c+v-f;a=b-a;c=f-c;d=x-d;n=v-n;v=ea(c*d-n*a);return ea(d*l-n*s)<=v&&ea(a*l-c*s)<=v};e.prototype.set=function(a,c,b,f){this.left=a;this.top=c;this.right=b;this.bottom=f};e.prototype.width=function(){return this.right-this.left};e.prototype.height=
function(){return this.bottom-this.top};e.prototype.offset=function(a,c){this.left+=a;this.top+=c;this.right+=a;this.bottom+=c;return this};e.prototype.Fn=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};e.prototype.$b=function(a,c){return a>=this.left&&a<=this.right&&c>=this.top&&c<=this.bottom};ka=e;k.prototype.Ui=function(a){this.Da=a.left;this.Ea=a.top;this.lb=a.right;this.mb=a.top;this.gb=a.right;this.hb=a.bottom;this.bb=a.left;this.eb=a.bottom};
k.prototype.Io=function(a,c){if(0===c)this.Ui(a);else{var b=Math.sin(c),f=Math.cos(c),d=a.left*b,n=a.top*b,x=a.right*b,b=a.bottom*b,v=a.left*f,s=a.top*f,l=a.right*f,f=a.bottom*f;this.Da=v-n;this.Ea=s+d;this.lb=l-n;this.mb=s+x;this.gb=l-b;this.hb=f+x;this.bb=v-b;this.eb=f+d}};k.prototype.offset=function(a,c){this.Da+=a;this.Ea+=c;this.lb+=a;this.mb+=c;this.gb+=a;this.hb+=c;this.bb+=a;this.eb+=c;return this};k.prototype.Fm=function(a){a.left=ga(ga(this.Da,this.lb),ga(this.gb,this.bb));a.top=ga(ga(this.Ea,
this.mb),ga(this.hb,this.eb));a.right=fa(fa(this.Da,this.lb),fa(this.gb,this.bb));a.bottom=fa(fa(this.Ea,this.mb),fa(this.hb,this.eb))};k.prototype.$b=function(a,c){var b=this.lb-this.Da,f=this.mb-this.Ea,d=this.gb-this.Da,n=this.hb-this.Ea,x=a-this.Da,v=c-this.Ea,s=b*b+f*f,l=b*d+f*n,f=b*x+f*v,z=d*d+n*n,u=d*x+n*v,e=1/(s*z-l*l),b=(z*f-l*u)*e,s=(s*u-l*f)*e;if(0<=b&&0<s&&1>b+s)return g;b=this.bb-this.Da;f=this.eb-this.Ea;s=b*b+f*f;l=b*d+f*n;f=b*x+f*v;e=1/(s*z-l*l);b=(z*f-l*u)*e;s=(s*u-l*f)*e;return 0<=
b&&0<s&&1>b+s};k.prototype.Kd=function(a,c){switch(a){case 0:return c?this.Da:this.Ea;case 1:return c?this.lb:this.mb;case 2:return c?this.gb:this.hb;case 3:return c?this.bb:this.eb;case 4:return c?this.Da:this.Ea;default:return c?this.Da:this.Ea}};k.prototype.Zn=function(){return(this.Da+this.lb+this.gb+this.bb)/4};k.prototype.$n=function(){return(this.Ea+this.mb+this.hb+this.eb)/4};k.prototype.En=function(a){var c=a.Zn(),b=a.$n();if(this.$b(c,b))return g;c=this.Zn();b=this.$n();if(a.$b(c,b))return g;
var f,d,n,x,v,s,l,z;for(l=0;4>l;l++)for(z=0;4>z;z++)if(c=this.Kd(l,g),b=this.Kd(l,r),f=this.Kd(l+1,g),d=this.Kd(l+1,r),n=a.Kd(z,g),x=a.Kd(z,r),v=a.Kd(z+1,g),s=a.Kd(z+1,r),ja(c,b,f,d,n,x,v,s))return g;return r};la=k;ma=function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b]);return a};na=function(a,c){var b,f;c=ia(c);if(!(0>c||c>=a.length))if(0===c)a.shift();else if(c===a.length-1)a.pop();else{b=c;for(f=a.length-1;b<f;b++)a[b]=a[b+1];a.length=f}};oa=function(a,c){a.length=c.length;var b,f;b=0;
for(f=c.length;b<f;b++)a[b]=c[b]};qa=function(a,c){var b=a.indexOf(c);-1!==b&&na(a,b)};O=function(a){return a/(180/ha)};ra=function(a){return a*(180/ha)};sa=function(a){a%=360;0>a&&(a+=360);return a};S=function(a){a%=2*ha;0>a&&(a+=2*ha);return a};ta=function(a){return sa(ra(a))};ua=function(a){return S(O(a))};va=function(a,c,b,f){return Math.atan2(f-c,b-a)};wa=function(a,c){if(a===c)return 0;var b=Math.sin(a),f=Math.cos(a),d=Math.sin(c),n=Math.cos(c),b=b*d+f*n;return 1<=b?0:-1>=b?ha:Math.acos(b)};
xa=function(a,c,b){var f=Math.sin(a),d=Math.cos(a),n=Math.sin(c),x=Math.cos(c);return Math.acos(f*n+d*x)>b?0<d*n-f*x?S(a+b):S(a-b):S(c)};ya=function(a,c){var b=Math.sin(a),f=Math.cos(a),d=Math.sin(c),n=Math.cos(c);return 0>=f*d-b*n};Ba=function(a,c,b,f,d,n){if(0===b)return n?a:c;var x=Math.sin(b);b=Math.cos(b);a-=f;c-=d;var v=a*x;a=a*b-c*x;c=c*b+v;return n?a+f:c+d};Ca=function(a,c,b,f){a=b-a;c=f-c;return Math.sqrt(a*a+c*c)};Da=function(a,c){return!a!==!c};Fa=function(a){for(var c in a)if(a.hasOwnProperty(c))return g;
return r};Ga=function(a){for(var c in a)a.hasOwnProperty(c)&&delete a[c]};var h=+new Date;Ha=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.msNow)return a.msNow()}return Date.now()-h};d.prototype.contains=function(a){return this.wd.hasOwnProperty(a.toString())};d.prototype.add=function(a){var c=a.toString();this.wd.hasOwnProperty(c)||(this.wd[c]=
a,this.Ig++,this.ag=r);return this};d.prototype.remove=function(a){a=a.toString();this.wd.hasOwnProperty(a)&&(delete this.wd[a],this.Ig--,this.ag=r);return this};d.prototype.clear=function(){Ga(this.wd);this.Ig=0;this.Tf.length=0;this.ag=g;return this};d.prototype.Bg=function(){return 0===this.Ig};d.prototype.$o=function(){if(!this.ag){this.Tf.length=this.Ig;var a,c=0;for(a in this.wd)this.wd.hasOwnProperty(a)&&(this.Tf[c++]=this.wd[a]);this.ag=g}};d.prototype.Os=function(){this.$o();return this.Tf.slice(0)};
d.prototype.bf=function(){this.$o();return this.Tf};Na=d;t.prototype.add=function(a){this.y=a-this.Gj;this.bj=this.Cb+this.y;this.Gj=this.bj-this.Cb-this.y;this.Cb=this.bj};t.prototype.reset=function(){this.Cb=this.bj=this.y=this.Gj=0};Oa=t;Pa=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};b.prototype.hh=function(a){this.xo=a;this.zd=a.length/2;this.sb.length=a.length;this.Hj=this.Ij=-1;this.Hm=0};b.prototype.sf=function(){return!this.xo.length};b.prototype.gh=function(a,c,b,f,d){this.sb.length=
8;this.zd=4;var n=this.sb;n[0]=a.Da-c;n[1]=a.Ea-b;n[2]=a.lb-c;n[3]=a.mb-b;n[4]=a.gb-c;n[5]=a.hb-b;n[6]=a.bb-c;n[7]=a.eb-b;this.Ij=f;this.Hj=d};b.prototype.Ho=function(a){this.zd=a.zd;oa(this.sb,a.sb)};b.prototype.hf=function(a,c,b){if(!(this.Ij===a&&this.Hj===c&&this.Hm===b)){this.Ij=a;this.Hj=c;this.Hm=b;var f,d,n,x=0,v=1,s=this.xo,l=this.sb;0!==b&&(x=Math.sin(b),v=Math.cos(b));b=0;for(f=this.zd;b<f;b++)d=s[2*b]*a,n=s[2*b+1]*c,l[2*b]=d*v-n*x,l[2*b+1]=n*v+d*x}};b.prototype.$b=function(a,c){var b=
this.sb;if(a===b[0]&&c===b[1])return g;var f,d,n,x=this.zd,v=b[0],s=v,l=b[1],z=l;for(f=1;f<x;f++)d=b[2*f],n=b[2*f+1],d<v&&(v=d),d>s&&(s=d),n<l&&(l=n),n>z&&(z=n);d=v-110;var l=l-101,s=s+131,z=z+120,u,e,h=0,t=0;for(f=0;f<x;f++)n=b[2*f],v=b[2*f+1],u=b[2*((f+1)%x)],e=b[2*((f+1)%x)+1],ja(d,l,a,c,n,v,u,e)&&h++,ja(s,z,a,c,n,v,u,e)&&t++;return 1===h%2||1===t%2};b.prototype.tk=function(a,c,b){var f=a.sb,d=this.sb;if(this.$b(f[0]+c,f[1]+b)||a.$b(d[0]-c,d[1]-b))return g;var n,x,v,s,l,z,u,e,h,t,k,G;n=0;for(x=
this.zd;n<x;n++){l=d[2*n];z=d[2*n+1];u=d[2*((n+1)%x)];e=d[2*((n+1)%x)+1];v=0;for(s=a.zd;v<s;v++)if(h=f[2*v]+c,t=f[2*v+1]+b,k=f[2*((v+1)%s)]+c,G=f[2*((v+1)%s)+1]+b,ja(l,z,u,e,h,t,k,G))return g}return r};Qa=b;var c="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");Ra=function(a){return 0>=a||11<=a?"source-over":c[a-1]};Sa=function(a,c,b){if(b)switch(a.tb=b.ONE,a.pb=b.ONE_MINUS_SRC_ALPHA,c){case 1:a.tb=b.ONE;a.pb=b.ONE;break;
case 3:a.tb=b.ONE;a.pb=b.ZERO;break;case 4:a.tb=b.ONE_MINUS_DST_ALPHA;a.pb=b.ONE;break;case 5:a.tb=b.DST_ALPHA;a.pb=b.ZERO;break;case 6:a.tb=b.ZERO;a.pb=b.SRC_ALPHA;break;case 7:a.tb=b.ONE_MINUS_DST_ALPHA;a.pb=b.ZERO;break;case 8:a.tb=b.ZERO;a.pb=b.ONE_MINUS_SRC_ALPHA;break;case 9:a.tb=b.DST_ALPHA;a.pb=b.ONE_MINUS_SRC_ALPHA;break;case 10:a.tb=b.ONE_MINUS_DST_ALPHA,a.pb=b.SRC_ALPHA}};Ta=function(a){return Math.round(1E6*a)/1E6}})();var sb="undefined"!==typeof Float32Array?Float32Array:Array;
function tb(e){var k=new sb(3);e&&(k[0]=e[0],k[1]=e[1],k[2]=e[2]);return k}function ub(e){var k=new sb(16);e&&(k[0]=e[0],k[1]=e[1],k[2]=e[2],k[3]=e[3],k[4]=e[4],k[5]=e[5],k[6]=e[6],k[7]=e[7],k[8]=e[8],k[9]=e[9],k[10]=e[10],k[11]=e[11],k[12]=e[12],k[13]=e[13],k[14]=e[14],k[15]=e[15]);return k}function vb(e,k){k[0]=e[0];k[1]=e[1];k[2]=e[2];k[3]=e[3];k[4]=e[4];k[5]=e[5];k[6]=e[6];k[7]=e[7];k[8]=e[8];k[9]=e[9];k[10]=e[10];k[11]=e[11];k[12]=e[12];k[13]=e[13];k[14]=e[14];k[15]=e[15]}
function wb(e,k){var d=k[0],t=k[1];k=k[2];e[0]*=d;e[1]*=d;e[2]*=d;e[3]*=d;e[4]*=t;e[5]*=t;e[6]*=t;e[7]*=t;e[8]*=k;e[9]*=k;e[10]*=k;e[11]*=k}
function xb(e,k,d,t){t||(t=ub());var b,h,c,a,p,m,f,B,n=e[0],x=e[1];e=e[2];h=d[0];c=d[1];b=d[2];d=k[1];m=k[2];n===k[0]&&x===d&&e===m?(e=t,e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1):(d=n-k[0],m=x-k[1],f=e-k[2],B=1/Math.sqrt(d*d+m*m+f*f),d*=B,m*=B,f*=B,k=c*f-b*m,b=b*d-h*f,h=h*m-c*d,(B=Math.sqrt(k*k+b*b+h*h))?(B=1/B,k*=B,b*=B,h*=B):h=b=k=0,c=m*h-f*b,a=f*k-d*h,p=d*b-m*k,(B=Math.sqrt(c*c+a*a+p*p))?(B=1/B,c*=B,a*=B,p*=B):p=a=c=0,
t[0]=k,t[1]=c,t[2]=d,t[3]=0,t[4]=b,t[5]=a,t[6]=m,t[7]=0,t[8]=h,t[9]=p,t[10]=f,t[11]=0,t[12]=-(k*n+b*x+h*e),t[13]=-(c*n+a*x+p*e),t[14]=-(d*n+m*x+f*e),t[15]=1)}
(function(){function e(c){this.height=this.width=0;this.Lm=tb([0,0,100]);this.Wn=tb([0,0,0]);this.Yo=tb([0,1,0]);this.Xl=tb([1,1,1]);this.Ok=ub();this.zc=ub();this.On=ub();this.Pj=ub();this.D=c;this.Bn()}function k(c,a,b){this.D=c;this.ih=a;this.name=b;this.yc=c.getAttribLocation(a,"aPos");this.Xd=c.getAttribLocation(a,"aTex");this.Un=c.getUniformLocation(a,"matP");this.Bf=c.getUniformLocation(a,"matMV");this.Cf=c.getUniformLocation(a,"opacity");this.Vn=c.getUniformLocation(a,"samplerFront");this.vi=
c.getUniformLocation(a,"samplerBack");this.Af=c.getUniformLocation(a,"destStart");this.zf=c.getUniformLocation(a,"destEnd");this.Lk=c.getUniformLocation(a,"seconds");this.Kk=c.getUniformLocation(a,"pixelWidth");this.Jk=c.getUniformLocation(a,"pixelHeight");this.Ik=c.getUniformLocation(a,"layerScale");this.Cf&&c.uniform1f(this.Cf,1);this.Vn&&c.uniform1i(this.Vn,0);this.vi&&c.uniform1i(this.vi,1);this.Af&&c.uniform2f(this.Af,0,0);this.zf&&c.uniform2f(this.zf,1,1);this.De=r}function d(c,a){this.type=
c;this.B=a;this.D=a.D;this.Wc=this.Ac=this.mo=0;this.K=this.Ye=q;this.Al=[]}function t(c){--c;for(var a=1;32>a;a<<=1)c|=c>>a;return c+1}e.prototype.Bn=function(){var c=this.D,a;this.Pn=1;this.He=q;this.Vm=1;c.clearColor(0,0,0,0);c.clear(c.COLOR_BUFFER_BIT);c.enable(c.BLEND);c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA);c.disable(c.CULL_FACE);c.disable(c.DEPTH_TEST);this.ku=c.getParameter(c.MAX_TEXTURE_SIZE);this.Qn=c.ONE;this.Nn=c.ONE_MINUS_SRC_ALPHA;this.al=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,
this.al);this.qh=Array(4);this.nh=Array(4);for(a=0;4>a;a++)this.qh[a]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.qh[a]),this.nh[a]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.nh[a]);this.qd=0;this.sr=c.createBuffer();c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,this.sr);this.Vl=new Float32Array(16E3);this.Jl=new Float32Array(16E3);this.Xr=new Float32Array(32E3);for(var b=new Uint16Array(12E3),d=a=0;12E3>a;)b[a++]=d,b[a++]=d+1,b[a++]=d+2,b[a++]=d,b[a++]=d+2,b[a++]=d+3,d+=4;c.bufferData(c.ELEMENT_ARRAY_BUFFER,
b,c.STATIC_DRAW);this.bl=this.kd=0;this.Wa=[];a=this.Mj({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}","<default>");
this.Wa.push(a);a=this.Mj({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}","<point>");this.Wa.push(a);for(var f in yb)yb.hasOwnProperty(f)&&this.Wa.push(this.Mj(yb[f],
"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}",f));c.activeTexture(c.TEXTURE0);c.bindTexture(c.TEXTURE_2D,q);this.Md=[];this.nd=0;this.wc=this.Sb=r;this.Wm=this.Jg=-1;this.fg=q;this.Kq=c.createFramebuffer();this.Bo=q;this.me=tb([0,0,0]);c=c.getParameter(c.ALIASED_POINT_SIZE_RANGE);this.lu=c[0];this.ju=c[1];
this.fd(0)};e.prototype.Mj=function(c,a,b){var d=this.D,f=d.createShader(d.FRAGMENT_SHADER);d.shaderSource(f,c.src);d.compileShader(f);if(!d.getShaderParameter(f,d.COMPILE_STATUS))return d.deleteShader(f),q;var e=d.createShader(d.VERTEX_SHADER);d.shaderSource(e,a);d.compileShader(e);if(!d.getShaderParameter(e,d.COMPILE_STATUS))return d.deleteShader(f),d.deleteShader(e),q;a=d.createProgram();d.attachShader(a,f);d.attachShader(a,e);d.linkProgram(a);if(!d.getProgramParameter(a,d.LINK_STATUS))return d.deleteShader(f),
d.deleteShader(e),d.deleteProgram(a),q;d.useProgram(a);d.validateProgram(a);d.deleteShader(f);d.deleteShader(e);b=new k(d,a,b);b.Wj=c.Wj||0;b.Xj=c.Xj||0;b.Um=!!c.Um;b.Cm=!!c.Cm;b.G=c.G||[];c=0;for(f=b.G.length;c<f;c++)b.G[c][1]=d.getUniformLocation(a,b.G[c][0]),d.uniform1f(b.G[c][1],0);return b};e.prototype.jk=function(c){var a,b;a=0;for(b=this.Wa.length;a<b;a++)if(this.Wa[a].name===c)return a;return-1};e.prototype.wo=function(c,a,b){var d=[0,0,this.width,this.height],f=this.zc,e=this.Ok,n=[0,0,0,
0,0,0,0,0];n[0]=f[0]*c+f[4]*a+f[12];n[1]=f[1]*c+f[5]*a+f[13];n[2]=f[2]*c+f[6]*a+f[14];n[3]=f[3]*c+f[7]*a+f[15];n[4]=e[0]*n[0]+e[4]*n[1]+e[8]*n[2]+e[12]*n[3];n[5]=e[1]*n[0]+e[5]*n[1]+e[9]*n[2]+e[13]*n[3];n[6]=e[2]*n[0]+e[6]*n[1]+e[10]*n[2]+e[14]*n[3];n[7]=-n[2];0!==n[7]&&(n[7]=1/n[7],n[4]*=n[7],n[5]*=n[7],n[6]*=n[7],b[0]=(0.5*n[4]+0.5)*d[2]+d[0],b[1]=(0.5*n[5]+0.5)*d[3]+d[1])};e.prototype.zl=function(c,a,b){if(!(this.width===c&&this.height===a&&!b)){this.Qd();this.width=c;this.height=a;this.D.viewport(0,
0,c,a);a=c/a;var d=this.Ok,f;f=1*Math.tan(45*Math.PI/360);a*=f;c=-a;b=-f;d||(d=ub());var e=a-c,n=f-b;d[0]=2/e;d[1]=0;d[2]=0;d[3]=0;d[4]=0;d[5]=2/n;d[6]=0;d[7]=0;d[8]=(a+c)/e;d[9]=(f+b)/n;d[10]=-1001/999;d[11]=-1;d[12]=0;d[13]=0;d[14]=-2E3/999;d[15]=0;xb(this.Lm,this.Wn,this.Yo,this.zc);c=[0,0];a=[0,0];this.wo(0,0,c);this.wo(1,1,a);this.Xl[0]=1/(a[0]-c[0]);this.Xl[1]=-1/(a[1]-c[1]);c=0;for(a=this.Wa.length;c<a;c++)b=this.Wa[c],b.De=r,b.Un&&(this.D.useProgram(b.ih),this.D.uniformMatrix4fv(b.Un,r,this.Ok));
this.D.useProgram(this.Wa[this.Jg].ih);this.D.bindTexture(this.D.TEXTURE_2D,q);this.He=q}};e.prototype.ed=function(){xb(this.Lm,this.Wn,this.Yo,this.zc);wb(this.zc,this.Xl)};e.prototype.translate=function(c,a){if(!(0===c&&0===a)){this.me[0]=c;this.me[1]=a;this.me[2]=0;var b=this.zc,d=this.me,f=d[0],e=d[1],d=d[2];b[12]=b[0]*f+b[4]*e+b[8]*d+b[12];b[13]=b[1]*f+b[5]*e+b[9]*d+b[13];b[14]=b[2]*f+b[6]*e+b[10]*d+b[14];b[15]=b[3]*f+b[7]*e+b[11]*d+b[15]}};e.prototype.scale=function(c,a){1===c&&1===a||(this.me[0]=
c,this.me[1]=a,this.me[2]=1,wb(this.zc,this.me))};e.prototype.ql=function(c){if(0!==c){var a=this.zc,b,d=Math.sin(c);c=Math.cos(c);var f=a[0],e=a[1],n=a[2],x=a[3],v=a[4],s=a[5],l=a[6],z=a[7];b?a!==b&&(b[8]=a[8],b[9]=a[9],b[10]=a[10],b[11]=a[11],b[12]=a[12],b[13]=a[13],b[14]=a[14],b[15]=a[15]):b=a;b[0]=f*c+v*d;b[1]=e*c+s*d;b[2]=n*c+l*d;b[3]=x*c+z*d;b[4]=f*-d+v*c;b[5]=e*-d+s*c;b[6]=n*-d+l*c;b[7]=x*-d+z*c}};e.prototype.jd=function(){for(var c=r,a=0;16>a;a++)if(this.On[a]!==this.zc[a]){c=g;break}c&&(c=
this.Kc(),c.type=5,c.K?vb(this.zc,c.K):c.K=ub(this.zc),vb(this.zc,this.On),this.wc=this.Sb=r)};d.prototype.jq=function(){this.D.bindTexture(this.D.TEXTURE_2D,this.Ye)};d.prototype.gq=function(){var c=this.mo,a=this.B;a.Vm=c;a=a.fg;a.Cf&&this.D.uniform1f(a.Cf,c)};d.prototype.cq=function(){this.D.drawElements(this.D.TRIANGLES,this.Wc,this.D.UNSIGNED_SHORT,2*this.Ac)};d.prototype.fq=function(){this.D.blendFunc(this.Ac,this.Wc)};d.prototype.kq=function(){var c,a,b,d=this.B.Wa,f=this.B.Wm;c=0;for(a=d.length;c<
a;c++)b=d[c],c===f&&b.Bf?(this.D.uniformMatrix4fv(b.Bf,r,this.K),b.De=g):b.De=r;vb(this.K,this.B.Pj)};d.prototype.dq=function(){var c=this.D,a=this.B;this.Ye?(c.bindFramebuffer(c.FRAMEBUFFER,a.Kq),c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,this.Ye,0)):(c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,q,0),c.bindFramebuffer(c.FRAMEBUFFER,q))};d.prototype.aq=function(){var c=this.D;0===this.Ac?(c.clearColor(this.K[0],this.K[1],this.K[2],this.K[3]),c.clear(c.COLOR_BUFFER_BIT)):
(c.enable(c.SCISSOR_TEST),c.scissor(this.K[0],this.K[1],this.K[2],this.K[3]),c.clearColor(0,0,0,0),c.clear(this.D.COLOR_BUFFER_BIT),c.disable(c.SCISSOR_TEST))};d.prototype.bq=function(){var c=this.D,a=this.B,b=a.Wa[1];c.useProgram(b.ih);!b.De&&b.Bf&&(c.uniformMatrix4fv(b.Bf,r,a.Pj),b.De=g);c.enableVertexAttribArray(b.yc);c.bindBuffer(c.ARRAY_BUFFER,a.al);c.vertexAttribPointer(b.yc,4,c.FLOAT,r,0,0);c.drawArrays(c.POINTS,this.Ac/4,this.Wc);b=a.fg;c.useProgram(b.ih);0<=b.yc&&(c.enableVertexAttribArray(b.yc),
c.bindBuffer(c.ARRAY_BUFFER,a.qh[a.qd]),c.vertexAttribPointer(b.yc,2,c.FLOAT,r,0,0));0<=b.Xd&&(c.enableVertexAttribArray(b.Xd),c.bindBuffer(c.ARRAY_BUFFER,a.nh[a.qd]),c.vertexAttribPointer(b.Xd,2,c.FLOAT,r,0,0))};d.prototype.hq=function(){var c=this.D,a=this.B,b=a.Wa[this.Ac];a.Wm=this.Ac;a.fg=b;c.useProgram(b.ih);!b.De&&b.Bf&&(c.uniformMatrix4fv(b.Bf,r,a.Pj),b.De=g);b.Cf&&c.uniform1f(b.Cf,a.Vm);0<=b.yc&&(c.enableVertexAttribArray(b.yc),c.bindBuffer(c.ARRAY_BUFFER,a.qh[a.qd]),c.vertexAttribPointer(b.yc,
2,c.FLOAT,r,0,0));0<=b.Xd&&(c.enableVertexAttribArray(b.Xd),c.bindBuffer(c.ARRAY_BUFFER,a.nh[a.qd]),c.vertexAttribPointer(b.Xd,2,c.FLOAT,r,0,0))};d.prototype.iq=function(){var c,a,b=this.B.fg,d=this.D;b.vi&&(d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,this.Ye),d.activeTexture(d.TEXTURE0));b.Kk&&d.uniform1f(b.Kk,this.K[0]);b.Jk&&d.uniform1f(b.Jk,this.K[1]);b.Af&&d.uniform2f(b.Af,this.K[2],this.K[3]);b.zf&&d.uniform2f(b.zf,this.K[4],this.K[5]);b.Ik&&d.uniform1f(b.Ik,this.K[6]);b.Lk&&d.uniform1f(b.Lk,
Ha()/1E3);if(b.G.length){c=0;for(a=b.G.length;c<a;c++)d.uniform1f(b.G[c][1],this.Al[c])}};e.prototype.Kc=function(){this.nd===this.Md.length&&this.Md.push(new d(0,this));return this.Md[this.nd++]};e.prototype.Qd=function(){if(0!==this.nd&&!this.D.isContextLost()){var c=this.D;0<this.bl&&(c.bindBuffer(c.ARRAY_BUFFER,this.al),c.bufferData(c.ARRAY_BUFFER,this.Xr.subarray(0,this.bl),c.STREAM_DRAW),a&&(0<=a.yc&&"<point>"===a.name)&&c.vertexAttribPointer(a.yc,4,c.FLOAT,r,0,0));if(0<this.kd){var a=this.fg;
c.bindBuffer(c.ARRAY_BUFFER,this.qh[this.qd]);c.bufferData(c.ARRAY_BUFFER,this.Vl.subarray(0,this.kd),c.STREAM_DRAW);a&&(0<=a.yc&&"<point>"!==a.name)&&c.vertexAttribPointer(a.yc,2,c.FLOAT,r,0,0);c.bindBuffer(c.ARRAY_BUFFER,this.nh[this.qd]);c.bufferData(c.ARRAY_BUFFER,this.Jl.subarray(0,this.kd),c.STREAM_DRAW);a&&(0<=a.Xd&&"<point>"!==a.name)&&c.vertexAttribPointer(a.Xd,2,c.FLOAT,r,0,0)}for(var b,c=0,a=this.nd;c<a;c++)switch(b=this.Md[c],b.type){case 1:b.cq();break;case 2:b.jq();break;case 3:b.gq();
break;case 4:b.fq();break;case 5:b.kq();break;case 6:b.dq();break;case 7:b.aq();break;case 8:b.bq();break;case 9:b.hq();break;case 10:b.iq()}this.bl=this.kd=this.nd=0;this.wc=this.Sb=r;this.qd++;4<=this.qd&&(this.qd=0)}};e.prototype.Te=function(c){if(c!==this.Pn){var a=this.Kc();a.type=3;this.Pn=a.mo=c;this.wc=this.Sb=r}};e.prototype.kc=function(c){if(c!==this.He){var a=this.Kc();a.type=2;this.He=a.Ye=c;this.wc=this.Sb=r}};e.prototype.ee=function(c,a){if(!(c===this.Qn&&a===this.Nn)){var b=this.Kc();
b.type=4;b.Ac=c;b.Wc=a;this.Qn=c;this.Nn=a;this.wc=this.Sb=r}};e.prototype.Fo=function(){this.ee(this.D.ONE,this.D.ONE_MINUS_SRC_ALPHA)};e.prototype.Mi=function(c,a,b,d,f,e,n,x){15992<=this.kd&&this.Qd();var v=this.kd,s=this.Vl,l=this.Jl;if(this.Sb)this.Md[this.nd-1].Wc+=6;else{var z=this.Kc();z.type=1;z.Ac=3*(v/4);z.Wc=6;this.Sb=g;this.wc=r}s[v]=c;l[v++]=0;s[v]=a;l[v++]=0;s[v]=b;l[v++]=1;s[v]=d;l[v++]=0;s[v]=f;l[v++]=1;s[v]=e;l[v++]=1;s[v]=n;l[v++]=0;s[v]=x;l[v++]=1;this.kd=v};e.prototype.dd=function(c,
a,b,d,f,e,n,x,v){15992<=this.kd&&this.Qd();var s=this.kd,l=this.Vl,z=this.Jl;if(this.Sb)this.Md[this.nd-1].Wc+=6;else{var u=this.Kc();u.type=1;u.Ac=3*(s/4);u.Wc=6;this.Sb=g;this.wc=r}l[s]=c;z[s++]=v.left;l[s]=a;z[s++]=v.top;l[s]=b;z[s++]=v.right;l[s]=d;z[s++]=v.top;l[s]=f;z[s++]=v.right;l[s]=e;z[s++]=v.bottom;l[s]=n;z[s++]=v.left;l[s]=x;z[s++]=v.bottom;this.kd=s};e.prototype.fd=function(c){if(this.Jg!==c){if(!this.Wa[c]){if(0===this.Jg)return;c=0}var a=this.Kc();a.type=9;this.Jg=a.Ac=c;this.wc=this.Sb=
r}};e.prototype.$g=function(c){c=this.Wa[c];return!(!c.Af&&!c.zf)};e.prototype.el=function(c){return this.Wa[c].Um};e.prototype.bs=function(c){c=this.Wa[c];return 0!==c.Wj||0!==c.Xj};e.prototype.Yq=function(c){return this.Wa[c].Wj};e.prototype.Zq=function(c){return this.Wa[c].Xj};e.prototype.$q=function(c,a){return this.Wa[c].G[a][2]};e.prototype.Ii=function(c){return this.Wa[c].Cm};e.prototype.Pf=function(c,a,b,d,f,e,n,x,v){var s=this.Wa[this.Jg];if(s.Kk||s.Jk||s.Lk||s.vi||s.Af||s.zf||s.Ik||v.length){s=
this.Kc();s.type=10;s.K?vb(this.zc,s.K):s.K=ub();s.K[0]=a;s.K[1]=b;s.K[2]=d;s.K[3]=f;s.K[4]=e;s.K[5]=n;s.K[6]=x;s.Ye=c;if(v.length){s.Al.length=v.length;c=0;for(a=v.length;c<a;c++)s.Al[c]=v[c]}this.wc=this.Sb=r}};e.prototype.clear=function(c,a,b,d){var f=this.Kc();f.type=7;f.Ac=0;f.K||(f.K=ub());f.K[0]=c;f.K[1]=a;f.K[2]=b;f.K[3]=d;this.wc=this.Sb=r};e.prototype.clearRect=function(c,a,b,d){var f=this.Kc();f.type=7;f.Ac=1;f.K||(f.K=ub());f.K[0]=c;f.K[1]=a;f.K[2]=b;f.K[3]=d;this.wc=this.Sb=r};e.prototype.as=
function(){this.Qd();this.D.flush()};var b=[],h={};e.prototype.si=function(c,a,d,e){a=!!a;d=!!d;var f=c.src+","+a+","+d+(a?",undefined":""),k=q;if("undefined"!==typeof c.src&&h.hasOwnProperty(f))return k=h[f],k.Ah++,k;this.Qd();var n=this.D,x=da(c.width)&&da(c.height),k=n.createTexture();n.bindTexture(n.TEXTURE_2D,k);n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,g);var v=n.RGBA,s=n.RGBA,l=n.UNSIGNED_BYTE;if(e)switch(e){case 1:s=v=n.RGB;break;case 2:l=n.UNSIGNED_SHORT_4_4_4_4;break;case 3:l=n.UNSIGNED_SHORT_5_5_5_1;
break;case 4:s=v=n.RGB,l=n.UNSIGNED_SHORT_5_6_5}!x&&a?(e=document.createElement("canvas"),e.width=t(c.width),e.height=t(c.height),e.getContext("2d").drawImage(c,0,0,c.width,c.height,0,0,e.width,e.height),n.texImage2D(n.TEXTURE_2D,0,v,s,l,e)):n.texImage2D(n.TEXTURE_2D,0,v,s,l,c);a?(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.REPEAT),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.REPEAT)):(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,
n.CLAMP_TO_EDGE));d?(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),x?(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR_MIPMAP_LINEAR),n.generateMipmap(n.TEXTURE_2D)):n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR)):(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.NEAREST),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.NEAREST));n.bindTexture(n.TEXTURE_2D,q);this.He=q;k.$f=c.width;k.Zf=c.height;k.Ah=1;k.Gm=f;b.push(k);return h[f]=k};e.prototype.pd=function(c,
a,d,e){this.Qd();var f=this.D,h=f.createTexture();f.bindTexture(f.TEXTURE_2D,h);f.texImage2D(f.TEXTURE_2D,0,f.RGBA,c,a,0,f.RGBA,e?f.UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_BYTE,q);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,d?f.LINEAR:f.NEAREST);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,d?f.LINEAR:f.NEAREST);f.bindTexture(f.TEXTURE_2D,q);this.He=q;h.$f=c;h.Zf=a;b.push(h);
return h};e.prototype.Qs=function(c,a,b){this.Qd();var d=this.D;d.bindTexture(d.TEXTURE_2D,a);d.texImage2D(d.TEXTURE_2D,0,d.RGBA,d.RGBA,b?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,c);d.bindTexture(d.TEXTURE_2D,q);this.He=q};e.prototype.deleteTexture=function(c){c&&("undefined"!==typeof c.Ah&&1<c.Ah?c.Ah--:(this.Qd(),this.D.bindTexture(this.D.TEXTURE_2D,q),this.He=q,qa(b,c),"undefined"!==typeof c.Gm&&delete h[c.Gm],this.D.deleteTexture(c)))};e.prototype.Bd=function(c){if(c!==this.Bo){var a=this.Kc();
a.type=6;this.Bo=a.Ye=c;this.wc=this.Sb=r}};Va=e})();
(function(){function e(n){if(n&&(n.getContext||n.dc)&&!n.c2runtime){n.c2runtime=this;var a=this;this.Ge="undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||"undefined"!==typeof window.device.phonegap);this.xc=!!n.dc;this.qf="undefined"!==typeof window.AppMobi||this.xc;if(this.Xc=!!window.c2cocoonjs)CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(g)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(r)});this.Lb=this.xc||this.Xc;this.ci=
/tizen/i.test(navigator.userAgent);this.uk=/android/i.test(navigator.userAgent)&&!this.ci;this.fu=/msie/i.test(navigator.userAgent);this.ii=/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent);this.Ln=/ipad/i.test(navigator.userAgent);this.hi=this.ii||this.Ln;this.Gn=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent);this.yr=!this.Gn&&/safari/i.test(navigator.userAgent);this.Jn=/windows/i.test(navigator.userAgent);this.Cg="undefined"!==typeof window.c2nodewebkit;
this.ur="undefined"!==typeof window.is_scirra_arcade;this.Br=!!("undefined"!==typeof window.c2isWindows8&&window.c2isWindows8);this.Cr=!!("undefined"!==typeof window.c2isWindowsPhone8&&window.c2isWindowsPhone8);this.xr=!!("undefined"!==typeof window.c2isBlackberry10&&window.c2isBlackberry10);this.devicePixelRatio=1;this.Td=this.Ge||this.qf||this.Xc||this.uk||this.hi||this.Cr||this.xr||this.ci;this.Td||(this.Td=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet)/i.test(navigator.userAgent));
if("undefined"!==typeof cr_is_preview&&!this.Cg&&("?nw"===window.location.search||/nodewebkit/i.test(navigator.userAgent)))this.Cg=g;this.canvas=n;this.Mm=document.getElementById("c2canvasdiv");this.ja=this.B=this.D=q;this.canvas.oncontextmenu=function(n){n.preventDefault&&n.preventDefault();return r};this.canvas.onselectstart=function(n){n.preventDefault&&n.preventDefault();return r};this.xc&&(window.c2runtime=this);this.Cg&&(window.nu=function(n){n.preventDefault();return r},window.ou=function(n){n.preventDefault();
return r});this.width=n.width;this.height=n.height;this.Je=this.width;this.Ie=this.height;this.ma=g;this.Eg=r;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.A=[];this.za=[];this.Dk={};this.Hc=[];this.Vj={};this.ze=[];this.Gd=[];this.ij=[];this.Lp=[];this.Sc=new Na;this.vk=r;this.Ec=0;this.xk=r;this.Rc=[];this.In=r;this.xd=this.zb=this.ri=this.tl="";this.lh=this.Lo=r;this.Rs=this.Lj=this.xi=this.Pd=this.ye=0;this.le=1;this.Tb=new Oa;this.ni=0;this.Xn=g;this.yi=
this.Sh=this.hg=this.Dd=this.Kg=this.Zj=0;this.bg=q;this.Jh=[];this.Uj=[];this.Nh=-1;this.Mk=[[]];this.Ql=this.wi=0;this.Ki(q);this.hu=[];this.iu=-1;this.eo=this.Tg=0;this.Tn=g;this.ig=0;this.mh=[];this.Nl=this.hl=0;this.Hg=g;this.yf=0;this.bi=r;this.Es=0;this.Yh=r;this.Sk=new Na;this.Tk=new Na;this.Oi=[];this.Cd=new Qa([]);this.Hl=new Qa([]);this.gf=[];this.wh={};this.jf={};this.ff={};this.Uf={};this.Em={};this.Gc=this.ic=this.Sn=this.pi=this.da=q;this.Sf=this.zk=r;this.ak=[q,q];this.mg=0;this.jn=
"";this.Hf={};this.$i=this.xf=q;this.Bs="";this.load();this.devicePixelRatio=(this.Dg=!this.Lb&&this.Ns&&(this.hi||this.ci))?window.devicePixelRatio||1:1;this.nb();var c;"undefined"!==typeof jQuery&&0<this.vc&&this.setSize(jQuery(window).width(),jQuery(window).height());try{if(this.mq&&(this.Xc||!this.Lb)){c={depth:r,antialias:!this.Td};var b=g;if(this.Gn&&this.Jn){var l=document.createElement("canvas");if("OES_texture_float,OES_standard_derivatives,WEBKIT_WEBGL_lose_context"===(l.getContext("webgl",
c)||l.getContext("experimental-webgl",c)).getSupportedExtensions().toString())b=r}b&&(this.D=n.getContext("webgl",c)||n.getContext("experimental-webgl",c))}}catch(d){}if(this.D){this.Lb||(this.Nb=document.createElement("canvas"),jQuery(this.Nb).appendTo(this.canvas.parentNode),this.Nb.oncontextmenu=K(r),this.Nb.onselectstart=K(r),this.Nb.width=n.width,this.Nb.height=n.height,this.vo(),this.Zk=this.Nb.getContext("2d"));this.B=new Va(this.D,this.Td);this.B.zl(n.width,n.height);this.ja=q;this.canvas.addEventListener("webglcontextlost",
function(n){n.preventDefault();a.Jr();window.cr_setSuspended(g)},r);this.canvas.addEventListener("webglcontextrestored",function(){a.B.Bn();a.B.zl(a.B.width,a.B.height,g);a.ic=q;a.Gc=q;a.ak[0]=q;a.ak[1]=q;a.Kr();a.ma=g;window.cr_setSuspended(r)},r);var u,f,e,h,p;n=0;for(c=this.A.length;n<c;n++){u=this.A[n];b=0;for(l=u.R.length;b<l;b++)e=u.R[b],e.kb=this.B.jk(e.id),this.Sf=this.Sf||this.B.$g(e.kb)}n=0;for(c=this.Hc.length;n<c;n++){h=this.Hc[n];b=0;for(l=h.R.length;b<l;b++)e=h.R[b],e.kb=this.B.jk(e.id);
b=0;for(l=h.Z.length;b<l;b++){p=h.Z[b];u=0;for(f=p.R.length;u<f;u++)e=p.R[u],e.kb=this.B.jk(e.id),this.Sf=this.Sf||this.B.$g(e.kb)}}}else{if(0<this.vc&&this.xc){this.canvas=q;document.oncontextmenu=K(r);document.onselectstart=K(r);this.ja=AppMobi.canvas.getContext("2d");try{this.ja.samplingMode=this.Ja?"smooth":"sharp",this.ja.globalScale=1,this.ja.HTML5CompatibilityMode=g}catch(t){}0!==this.width&&0!==this.height&&(this.ja.width=this.width,this.ja.height=this.height)}this.ja||(this.Xc?(c={antialias:!!this.Ja},
this.ja=n.getContext("2d",c)):this.ja=n.getContext("2d"),this.ja.webkitImageSmoothingEnabled=this.Ja,this.ja.mozImageSmoothingEnabled=this.Ja,this.ja.msImageSmoothingEnabled=this.Ja,this.ja.imageSmoothingEnabled=this.Ja);this.Zk=this.Nb=q}this.Ro=function(){a.Oa()};window!=window.top&&(!this.Lb&&!this.Br)&&(document.addEventListener("mousedown",function(){window.focus()},g),document.addEventListener("touchstart",function(){window.focus()},g));"undefined"!==typeof cr_is_preview&&(this.Xc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),
"?continuous"===window.location.search&&(aa("Reloading for continuous preview"),this.ri="__c2_continuouspreview",this.lh=g),this.Wr&&!this.Td&&(jQuery(window).focus(function(){a.setSuspended(r)}),jQuery(window).blur(function(){a.setSuspended(g)})));this.go();this.T={}}}function k(n){n.target.result.createObjectStore("saves",{keyPath:"slot"})}function d(n,a,c,b){var l=indexedDB.open("_C2SaveStates");l.onupgradeneeded=k;l.onerror=b;l.onsuccess=function(l){l=l.target.result;l.onerror=b;l.transaction(["saves"],
"readwrite").objectStore("saves").put({slot:n,data:a}).onsuccess=c}}function t(n,a,c){var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=k;b.onerror=c;b.onsuccess=function(b){b=b.target.result;b.onerror=c;var s=b.transaction(["saves"]).objectStore("saves").get(n);s.onsuccess=function(){s.result?a(s.result.data):a(q)}}}function b(){aa("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():"?continuous"===window.location.search?window.location.reload(g):window.location+="?continuous"}
function h(n){var a,c={};for(a in n)n.hasOwnProperty(a)&&!(n[a]instanceof Na)&&"undefined"===typeof n[a].$t&&"mouseOverInverted"!==a&&(c[a]=n[a]);return c}e.prototype.setSize=function(n,a){var c=this.qr&&this.ii&&!navigator.standalone&&!this.Lb&&!this.Ge,b=0;c&&(this.ii?b=60:this.uk&&(b=56),a+=b);var l=0,d=0,u=0,f=0,e=0,e=this.vc,h=document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||this.bi;h&&0<this.mg&&(e=this.mg);4<=e?(u=this.Bb/this.Ab,n/a>u?(u*=a,5===e?(e=u/this.Bb,1<e?
e=Math.floor(e):1>e&&(e=1/Math.ceil(1/e)),u=this.Bb*e,f=this.Ab*e,l=(n-u)/2,d=(a-f)/2,n=u,a=f):(l=(n-u)/2,n=u)):(f=n/u,5===e?(e=f/this.Ab,1<e?e=Math.floor(e):1>e&&(e=1/Math.ceil(1/e)),u=this.Bb*e,f=this.Ab*e,l=(n-u)/2,d=(a-f)/2,n=u):d=(a-f)/2,a=f),h&&!this.Cg&&(d=l=0),l=Math.floor(l),d=Math.floor(d),n=Math.floor(n),a=Math.floor(a)):this.Cg&&(this.bi&&0===this.nn)&&(l=Math.floor((n-this.Bb)/2),d=Math.floor((a-this.Ab)/2),n=this.Bb,a=this.Ab);this.Dg&&(this.Ln&&1<this.devicePixelRatio)&&(1024<=n&&(n=
1023),1024<=a&&(a=1023));h=this.devicePixelRatio;this.width=n*h;this.height=a*h;this.ma=g;this.Mm&&!this.Lb&&(jQuery(this.Mm).css({width:n+"px",height:a+"px","margin-left":l,"margin-top":d}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:n+"px",height:a+"px"}));this.canvas&&(this.canvas.width=n*h,this.canvas.height=a*h,this.Dg&&jQuery(this.canvas).css({width:n+"px",height:a+"px"}));this.Nb&&(this.Nb.width=n,this.Nb.height=a);this.B&&this.B.zl(n,a);this.xc&&this.ja&&(this.ja.width=
n,this.ja.height=a);this.ja&&(this.ja.webkitImageSmoothingEnabled=this.Ja,this.ja.mozImageSmoothingEnabled=this.Ja,this.ja.msImageSmoothingEnabled=this.Ja,this.ja.imageSmoothingEnabled=this.Ja);c&&0<b&&window.setTimeout(function(){window.scrollTo(0,1)},100)};e.prototype.Jr=function(){this.zk=g;var a,c,b;a=0;for(c=this.A.length;a<c;a++)b=this.A[a],b.Bi&&b.Bi()};e.prototype.Kr=function(){this.zk=r;var a,c,b;a=0;for(c=this.A.length;a<c;a++)b=this.A[a],b.Wk&&b.Wk()};e.prototype.vo=function(){if(!this.Lb){var a=
document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||this.bi?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Nb).css(a)}};var c=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;e.prototype.setSuspended=function(a){var b;if(a&&!this.Eg){aa("[Construct 2] Suspending");this.Eg=g;0!==this.hl&&c&&c(this.hl);0!==this.Nl&&clearTimeout(this.Nl);
a=0;for(b=this.mh.length;a<b;a++)this.mh[a](g)}else if(!a&&this.Eg){aa("[Construct 2] Resuming");this.Eg=r;this.ni=Ha();this.Kg=Ha();a=this.Sh=0;for(b=this.mh.length;a<b;a++)this.mh[a](r);this.Oa()}};e.prototype.xm=function(a){this.mh.push(a)};e.prototype.load=function(){var a=zb();this.name=a[0];this.ln=a[1];this.vc=a[11];this.nn=a[11];if(this.Lb&&(4<=a[11]||0===a[11]))aa("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.nn=
this.vc=3;this.Tl=a[17];this.Ng=a[18];0===this.Ng&&(this.xf=new Image,this.xf.src="loading-logo.png");this.Tg=a[20];this.gd=new U(this);var b,c,s,l,d,u,f,e,h;b=0;for(c=a[2].length;b<c;b++)f=a[2][b],Ab(f),h=new f[0](this),h.El=f[1],h.Vd=f[2],h.ao=f[9],h.W&&h.W(),this.plugins.push(h);a=zb();b=0;for(c=a[3].length;b<c;b++){f=a[3][b];d=f[1];h=q;s=0;for(l=this.plugins.length;s<l;s++)if(this.plugins[s]instanceof d){h=this.plugins[s];break}var p=new h.qa(h);p.name=f[0];p.J=f[2];p.sk=f[3].slice(0);p.Ps=f[3].length;
p.Pp=f[4];p.Nq=f[5];p.V=f[11];p.J?(p.Pg=[],p.Vc=this.ig++,p.ua=q):(p.Pg=q,p.Vc=-1,p.ua=[]);p.Ph=q;p.mf=q;p.cn=q;p.fc=r;p.Gb=q;f[6]?(p.Kl=f[6][0],p.Ll=f[6][1],p.Ml=f[6][2]):(p.Kl=q,p.Ll=0,p.Ml=0);p.Qb=f[7]?f[7]:q;p.index=b;p.d=[];p.Fh=[];p.he=[new Wa(p)];p.rd=0;p.rc=q;p.je=g;p.jj=Bb;p.Sq=Cb;p.Xq=Db;p.ca=Eb;p.bh=Fb;p.Ji=Gb;p.Qe=Hb;p.Uh=Ib;p.ck=Jb;p.fk=Kb;p.Jd=Lb;p.T={};p.toString=Mb;p.za=[];s=0;for(l=f[8].length;s<l;s++){e=f[8][s];var t=e[1],m=q;d=0;for(u=this.za.length;d<u;d++)if(this.za[d]instanceof
t){m=this.za[d];break}m||(m=new t(this),m.Ff=new Na,m.W&&m.W(),this.za.push(m));d=new m.qa(m,p);d.name=e[0];d.V=e[2];d.W();p.za.push(d)}p.global=f[9];p.wk=f[10];p.R=[];s=0;for(l=f[12].length;s<l;s++)p.R.push({id:f[12][s][0],name:f[12][s][1],kb:-1,ld:g,index:s});(!this.Tl||p.J||p.wk||!h.Vd)&&p.W();p.name&&(this.types[p.name]=p);this.A.push(p);h.El&&(s=new h.ea(p),s.uid=this.Tg++,s.yo=this.eo++,s.wg=0,s.tg=Rb,s.toString=Sb,s.p=f[13],s.W(),p.d.push(s))}b=0;for(c=a[4].length;b<c;b++){d=a[4][b];u=this.A[d[0]];
s=1;for(l=d.length;s<l;s++)f=this.A[d[s]],f.ua.push(u),u.Pg.push(f)}b=0;for(c=a[22].length;b<c;b++){d=a[22][b];u=[];s=0;for(l=d.length;s<l;s++)u.push(this.A[d[s]]);s=0;for(l=u.length;s<l;s++)u[s].fc=g,u[s].Gb=u}if(0<this.ig){b=0;for(c=this.A.length;b<c;b++)if(f=this.A[b],!f.J&&f.ua.length){f.Ph=Array(this.ig);f.mf=Array(this.ig);f.cn=Array(this.ig);p=[];s=m=t=e=0;for(l=f.ua.length;s<l;s++){h=f.ua[s];f.Ph[h.Vc]=e;e+=h.Ps;f.mf[h.Vc]=t;t+=h.Pp;f.cn[h.Vc]=m;m+=h.Nq;d=0;for(u=h.R.length;d<u;d++)p.push(ma({},
h.R[d]))}f.R=p.concat(f.R);s=0;for(l=f.R.length;s<l;s++)f.R[s].index=s}}b=0;for(c=a[5].length;b<c;b++)f=a[5][b],s=new Xa(this,f),this.Dk[s.name]=s,this.Hc.push(s);b=0;for(c=a[6].length;b<c;b++)f=a[6][b],s=new Ya(this,f),this.Vj[s.name]=s,this.ze.push(s);b=0;for(c=this.ze.length;b<c;b++)this.ze[b].Na();b=0;for(c=this.ij.length;b<c;b++)this.ij[b].Na();this.ij.length=0;this.jn=a[7];this.cd=a[8];this.Bb=a[9];this.Ab=a[10];this.xh=1;this.mq=a[12];this.Ja=a[13];this.Om=a[14];this.su=a[15];b=a[16];2===b&&
(b=this.ii?1:0);this.Ns=0!==b;this.qr=a[19];this.Wr=a[21];this.kh=Date.now()};e.prototype.Lq=function(a){var b,c;b=0;for(c=this.Gd.length;b<c;b++)if(this.Gd[b].Wp===a)return this.Gd[b];return q};e.prototype.Dm=function(){var a=0,b=0,c=g,d,l;d=0;for(l=this.Gd.length;d<l;d++){var f=this.Gd[d].Sm;if(!f||0>=f)f=5E4;a+=f;this.Gd[d].complete||this.Gd[d].loaded?b+=f:c=r}this.Re=0==a?0:b/a;return c};e.prototype.go=function(){if(this.ja||this.B){var a=this.ja||this.Zk;this.Nb&&this.vo();this.Re=0;this.Rn=
-1;if(this.Dm())this.or();else{var b=Date.now()-this.kh,c=1;this.ci&&(c=this.devicePixelRatio);if(a){if(3!==this.Ng&&500<=b&&this.Rn!=this.Re){a.clearRect(0,0,this.width,this.height);var b=this.width/(2*c),c=this.height/(2*c),d=0===this.Ng&&this.xf.complete,l=40,f=0,u=80;d&&(u=this.xf.width,l=u/2,f=this.xf.height/2,a.drawImage(this.xf,ia(b-l),ia(c-f)));1>=this.Ng?(b=ia(b-l)+0.5,c=ia(c+(f+(d?12:0)))+0.5,a.fillStyle="DodgerBlue",a.fillRect(b,c,Math.floor(u*this.Re),6),a.strokeStyle="black",a.strokeRect(b,
c,u,6),a.strokeStyle="white",a.strokeRect(b-1,c-1,u+2,8)):2===this.Ng&&(a.font="12pt Arial",a.fillStyle="#999",a.qu="middle",d=Math.round(100*this.Re)+"%",l=a.measureText?a.measureText(d):q,a.fillText(d,b-(l?l.width:0)/2,c))}this.Rn=this.Re}setTimeout(function(a){return function(){a.go()}}(this),100)}}};e.prototype.or=function(){this.Nb&&(this.canvas.parentNode.removeChild(this.Nb),this.Nb=this.Zk=q);this.kh=Date.now();this.Kg=Ha();var a,b,c;if(this.Tl){a=0;for(b=this.A.length;a<b;a++)c=this.A[a],
!c.J&&(!c.wk&&c.Ba.Vd)&&c.W()}else this.Hg=r;a=0;for(b=this.Hc.length;a<b;a++)this.Hc[a].Xp();2<=this.vc&&(a=this.Bb/this.Ab,b=this.width/this.height,this.xh=2!==this.vc&&b>a||2===this.vc&&b<a?this.height/this.Ab:this.width/this.Bb);this.ln?this.Dk[this.ln].Fl():this.Hc[0].Fl();this.Tl||(this.yf=1,this.trigger(U.prototype.k.hm,q));this.Oa();this.xc&&AppMobi.webview.execute("onGameReady();")};var a=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||
window.oRequestAnimationFrame;e.prototype.Oa=function(){if(this.da){if(this.ur){var b=jQuery(window).width(),c=jQuery(window).height();if(this.Je!==b||this.Ie!==c)this.Je=b,this.Ie=c,this.setSize(b,c)}b=Ha();this.Hg&&(c=this.Dm(),this.yf=this.Re,c&&(this.Hg=r,this.Re=1,this.trigger(U.prototype.k.hm,q)));this.Fr();if((this.ma||this.Xc)&&!this.zk&&!this.lh)this.ma=r,this.B?this.uc():this.Tc(),this.$i&&(this.canvas&&this.canvas.toDataURL&&(this.Bs=this.canvas.toDataURL(this.$i[0],this.$i[1]),this.trigger(U.prototype.k.np,
q)),this.$i=q);this.Dd++;this.hg++;this.Sh++;this.xi+=Ha()-b;this.Eg||(a?this.hl=a(this.Ro,this.canvas):this.Nl=setTimeout(this.Ro,this.Td?1:16))}};e.prototype.Fr=function(){var a,b,c,d,l,f,u,e,h;a=Ha();1E3<=a-this.Kg&&(this.Kg+=1E3,this.Zj=this.Sh,this.Sh=0,this.Lj=this.xi,this.xi=0);this.Xn&&(0!==this.ni&&(b=a-this.ni,0===b?(this.Rs++,10<=this.tu&&(this.Xn=r),this.Pd=1/60):(this.Pd=b/1E3,0.5<this.Pd?this.Pd=0:0.1<this.Pd&&(this.Pd=0.1))),this.ni=a);this.ye=this.Pd*this.le;this.Tb.add(this.ye);a=
document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||this.bi;2<=this.vc||a&&0<this.mg?(b=this.Bb/this.Ab,c=this.width/this.height,d=this.vc,a&&0<this.mg&&(d=this.mg),this.xh=2!==d&&c>b||2===d&&c<b?this.height/this.Ab:this.width/this.Bb,this.da&&(this.da.ul(this.da.scrollX),this.da.wl(this.da.scrollY))):this.xh=1;this.nb();this.Ec++;this.gd.qs();this.Ec--;this.nb();this.Ec++;a=0;for(b=this.A.length;a<b;a++)if(u=this.A[a],!(u.J||!u.za.length&&!u.ua.length)){c=0;for(d=u.d.length;c<
d;c++){e=u.d[c];l=0;for(f=e.X.length;l<f;l++)e.X[l].Oa()}}a=0;for(b=this.A.length;a<b;a++)if(u=this.A[a],!(u.J||!u.za.length&&!u.ua.length)){c=0;for(d=u.d.length;c<d;c++){e=u.d[c];l=0;for(f=e.X.length;l<f;l++)h=e.X[l],h.$r&&h.$r()}}c=this.Sk.bf();a=0;for(b=c.length;a<b;a++)c[a].Oa();this.Ec--;this.pr();for(a=0;this.bg&&10>a++;)this.Zm(this.bg);a=0;for(b=this.ze.length;a<b;a++)this.ze[a].lk=r;this.da.Mh&&this.da.Mh.Sa();this.Oi.length=0;this.Tn=r;this.Ec++;a=0;for(b=this.A.length;a<b;a++)if(u=this.A[a],
!(u.J||!u.za.length&&!u.ua.length)){c=0;for(d=u.d.length;c<d;c++){e=u.d[c];l=0;for(f=e.X.length;l<f;l++)h=e.X[l],h.oh&&h.oh()}}c=this.Tk.bf();a=0;for(b=c.length;a<b;a++)c[a].oh();this.Ec--};e.prototype.Zm=function(a){var b=this.da;this.da.Fs();var c,d,l,f,u,e,h;if(this.B){c=0;for(d=this.A.length;c<d;c++)u=this.A[c],u.J||u.Sl&&((!u.global||0===u.d.length)&&-1===a.yg.indexOf(u))&&u.Sl()}b==a&&(this.gd.Yb.length=0);a.Fl();c=0;for(d=this.A.length;c<d;c++)if(u=this.A[c],u.global||u.Ba.El){a=0;for(b=u.d.length;a<
b;a++)if(e=u.d[a],e.Ai&&e.Ai(),e.X){l=0;for(f=e.X.length;l<f;l++)h=e.X[l],h.Ai&&h.Ai()}}this.Tn=this.ma=g;this.nb()};e.prototype.ej=function(a){this.Sk.add(a)};e.prototype.Is=function(a){this.Tk.add(a)};e.prototype.ng=function(a){return!a||-1===a.Le?this.ye:this.Pd*a.Le};e.prototype.Tc=function(){this.da.Tc(this.ja);this.xc&&this.ja.present()};e.prototype.uc=function(){this.da.uc(this.B)};e.prototype.Cj=function(a){a&&this.Jh.push(a)};e.prototype.js=function(a){qa(this.Jh,a)};e.prototype.qg=function(a){return this.Hf[a.toString()]};
e.prototype.oe=function(a){var b,c;if(!this.Sc.contains(a)){this.Sc.add(a);if(a.fc){b=0;for(c=a.siblings.length;b<c;b++)this.oe(a.siblings[b])}this.vk&&this.Sc.Tf.push(a);this.Ec++;this.trigger(Object.getPrototypeOf(a.type.Ba).k.op,a);this.Ec--}};e.prototype.nb=function(){var a,b,c,d,l,f,u,e,h,p;this.vk=g;d=0;for(f=this.Rc.length;d<f;d++){a=this.Rc[d];b=a.type;b.d.push(a);b.je=g;l=0;for(u=b.ua.length;l<u;l++)b.ua[l].d.push(a),b.ua[l].je=g}this.Rc.length=0;f=this.Sc.bf();for(d=0;d<f.length;d++){a=
f[d];b=a.type;c=b.d;l=0;for(u=this.Jh.length;l<u;l++)this.Jh[l](a);qa(c,a);a.n&&(na(a.n.d,a.ec()),a.n.Zb=g);l=0;for(u=b.ua.length;l<u;l++)qa(b.ua[l].d,a),b.ua[l].je=g;if(a.X){l=0;for(u=a.X.length;l<u;l++)c=a.X[l],c.Pe&&c.Pe(),c.P.Ff.remove(a)}this.Sk.remove(a);this.Tk.remove(a);l=0;for(u=this.gd.Yb.length;l<u;l++)if(h=this.gd.Yb[l],h.Xb.hasOwnProperty(b.index)&&qa(h.Xb[b.index].Fe,a),!b.J){c=0;for(e=b.ua.length;c<e;c++)p=b.ua[c],h.Xb.hasOwnProperty(p.index)&&qa(h.Xb[p.index].Fe,a)}a.Pe&&a.Pe();this.Hf.hasOwnProperty(a.uid.toString())&&
delete this.Hf[a.uid.toString()];this.yi--;64>b.Fh.length&&b.Fh.push(a);b.je=g}this.Sc.Bg()||(this.ma=g);this.Sc.clear();this.vk=r};e.prototype.Tm=function(a,b,c,d){if(a.J){var l=ia(Math.random()*a.Pg.length);return this.Tm(a.Pg[l],b,c,d)}return!a.rc?q:this.Od(a.rc,b,r,c,d,r)};var p=[];e.prototype.Od=function(a,b,c,d,l,f){var u,e,h,t;if(!a)return q;var m=this.A[a[1]],k=m.Ba.Vd;if(this.Hg&&k&&!m.wk||k&&!this.B&&11===a[0][11])return q;var B=b;k||(b=q);var w;m.Fh.length?(w=m.Fh.pop(),w.jc=g,m.Ba.ea.call(w,
m)):(w=new m.Ba.ea(m),w.jc=r);w.uid=c&&!f?a[2]:this.Tg++;this.Hf[w.uid.toString()]=w;w.yo=this.eo++;w.wg=0;w.tg=Rb;m.je=g;h=a[3];if(w.jc){u=0;for(e=h.length;u<e;u++)w.Xa[u]=h[u];Ga(w.T)}else w.Xa=h.slice(0),w.T={};if(k){var y=a[0];w.x=ba(d)?y[0]:d;w.y=ba(l)?y[1]:l;w.cp=y[2];w.width=y[3];w.height=y[4];w.depth=y[5];w.j=y[6];w.opacity=y[7];w.Jb=y[8];w.Kb=y[9];w.Fb=y[10];u=y[11];!this.B&&m.R.length&&(w.Fb=u);w.dg=Ra(w.Fb);this.D&&Sa(w,w.Fb,this.D);if(w.jc){u=0;for(e=y[12].length;u<e;u++){h=0;for(t=y[12][u].length;h<
t;h++)w.Ia[u][h]=y[12][u][h]}w.I.set(0,0,0,0);w.fb.Ui(w.I);w.zh.length=0}else{w.Ia=y[12].slice(0);u=0;for(e=w.Ia.length;u<e;u++)w.Ia[u]=y[12][u].slice(0);w.ba=[];w.Id=[];w.Id.length=m.R.length;w.I=new ka(0,0,0,0);w.fb=new la;w.zh=[];w.L=Tb;w.Zt=Ub;w.$b=Vb;w.La=Wb;w.ec=Xb}u=0;for(e=m.R.length;u<e;u++)w.Id[u]=g;w.Fd=Yb;w.Fd();w.bp=!!w.ba.length;w.Ej=g;w.visible=g;w.Le=-1;w.n=b;w.cf=b.d.length;"undefined"===typeof w.fa&&(w.fa=q);this.ma=w.od=g}w.toString=Sb;var N;u=p.length=0;for(e=m.ua.length;u<e;u++)p.push.apply(p,
m.ua[u].za);p.push.apply(p,m.za);if(w.jc){u=0;for(e=p.length;u<e;u++){var I=p[u];N=w.X[u];N.jc=g;I.P.ea.call(N,I,w);y=a[4][u];h=0;for(t=y.length;h<t;h++)N.p[h]=y[h];N.W();I.P.Ff.add(w)}}else{w.X=[];u=0;for(e=p.length;u<e;u++)I=p[u],N=new I.P.ea(I,w),N.jc=r,N.p=a[4][u].slice(0),N.W(),w.X.push(N),I.P.Ff.add(w)}y=a[5];if(w.jc){u=0;for(e=y.length;u<e;u++)w.p[u]=y[u]}else w.p=y.slice(0);this.Rc.push(w);b&&b.d.push(w);this.yi++;if(m.fc){if(w.fc=g,w.jc?w.siblings.length=0:w.siblings=[],!c&&!f){u=0;for(e=
m.Gb.length;u<e;u++)if(m.Gb[u]!==m){if(!m.Gb[u].rc)return q;w.siblings.push(this.Od(m.Gb[u].rc,B,r,k?w.x:d,k?w.y:l,g))}u=0;for(e=w.siblings.length;u<e;u++){w.siblings[u].siblings.push(w);for(h=0;h<e;h++)u!==h&&w.siblings[u].siblings.push(w.siblings[h])}}}else w.fc=r,w.siblings=q;w.W();u=0;for(e=w.X.length;u<e;u++)w.X[u].Zr&&w.X[u].Zr();return w};e.prototype.hk=function(a){var b,c;b=0;for(c=this.da.Z.length;b<c;b++){var d=this.da.Z[b];if(d.name.toLowerCase()===a.toLowerCase())return d}return q};e.prototype.pg=
function(a){a=ia(a);0>a&&(a=0);a>=this.da.Z.length&&(a=this.da.Z.length-1);return this.da.Z[a]};e.prototype.Kj=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].ca().na=g};e.prototype.bh=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].bh()};e.prototype.Ji=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].Ji()};e.prototype.Qe=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].Qe()};e.prototype.Gs=function(a,b,c){var d=a.ca(),l,f,e,h,p,m;if(d.na){d.na=r;l=d.d.length=0;for(h=a.d.length;l<h;l++)e=
a.d[l],e.La(),p=e.n.ub(b,c,g),m=e.n.ub(b,c,r),e.$b(p,m)&&d.d.push(e)}else{l=f=0;for(h=d.d.length;l<h;l++)e=d.d[l],e.La(),p=e.n.ub(b,c,g),m=e.n.ub(b,c,r),e.$b(p,m)&&(d.d[f]=d.d[l],f++);d.d.length=f}a.Jd();return d.kk()};e.prototype.Xe=function(a,b){if(!a||!b||a===b||!a.od||!b.od)return r;a.La();b.La();var c=a.n,d=b.n,l,f,e,h,p,m;if(c!==d&&(c.ad!==d.ad||d.bd!==d.bd||c.scale!==d.scale||c.j!==d.j||c.Qc!==d.Qc)){p=a.fa&&!a.fa.sf();l=b.fa&&!b.fa.sf();p?(a.fa.hf(a.width,a.height,a.j),this.Cd.Ho(a.fa)):this.Cd.gh(a.fb,
a.x,a.y,a.width,a.height);p=this.Cd;l?(b.fa.hf(b.width,b.height,b.j),this.Hl.Ho(b.fa)):this.Hl.gh(b.fb,b.x,b.y,b.width,b.height);m=this.Hl;l=0;for(f=p.zd;l<f;l++)e=p.sb[2*l],h=p.sb[2*l+1],p.sb[2*l]=c.Aa(e+a.x,h+a.y,g),p.sb[2*l+1]=c.Aa(e+a.x,h+a.y,r);l=0;for(f=m.zd;l<f;l++)e=m.sb[2*l],h=m.sb[2*l+1],m.sb[2*l]=d.Aa(e+b.x,h+b.y,g),m.sb[2*l+1]=d.Aa(e+b.x,h+b.y,r);return p.tk(m,0,0)}if(!a.I.Fn(b.I)||!a.fb.En(b.fb))return r;p=a.fa&&!a.fa.sf();l=b.fa&&!b.fa.sf();if(!p&&!l)return g;p?(a.fa.hf(a.width,a.height,
a.j),p=a.fa):(this.Cd.gh(a.fb,a.x,a.y,a.width,a.height),p=this.Cd);l?(b.fa.hf(b.width,b.height,b.j),m=b.fa):(this.Cd.gh(b.fb,b.x,b.y,b.width,b.height),m=this.Cd);return p.tk(m,b.x-a.x,b.y-a.y)};var m=new la;new ka(0,0,0,0);e.prototype.Il=function(a,b){if(!b||!b.od)return r;b.La();if(!b.I.Fn(a))return r;m.Ui(a);if(!b.fb.En(m))return r;if(!b.fa||b.fa.sf())return g;b.fa.hf(b.width,b.height,b.j);m.offset(-a.left,-a.top);this.Cd.gh(m,0,0,1,1);return b.fa.tk(this.Cd,a.left-b.x,a.top-b.y)};e.prototype.Vo=
function(a,b){if(!b)return r;var c,d,l,f,e;c=0;for(d=a.za.length;c<d;c++)if(a.za[c].P instanceof b)return g;if(!a.J){c=0;for(d=a.ua.length;c<d;c++){e=a.ua[c];l=0;for(f=e.za.length;l<f;l++)if(e.za[l].P instanceof b)return g}}return r};e.prototype.Wo=function(a){return this.Vo(a,rb.ut)};e.prototype.Rl=function(a){return this.Vo(a,rb.wt)};e.prototype.un=function(){if(!rb.Cs)return q;var a,b;a=0;for(b=this.za.length;a<b;a++)if(this.za[a]instanceof rb.Cs)return this.za[a];return q};e.prototype.hd=function(a){var b=
this.un();if(!b)return q;var c,d,l=b.Ff.bf(),b=0;for(c=l.length;b<c;++b)if(d=l[b],d.T.Ds&&this.Xe(a,d))return d;return q};e.prototype.Hs=function(a){var b=this.un();if(!b)return q;var c,d,l=b.Ff.bf(),b=0;for(c=l.length;b<c;++b)if(d=l[b],d.T.Ds&&this.Il(a,d))return d;return q};e.prototype.zo=function(a,b,c,d){d=d||50;var l=a.x,f=a.y,e,h=q,p=q;for(e=0;e<d;e++)if(a.x=l+b*e,a.y=f+c*e,a.L(),!this.Xe(a,h)&&((h=this.hd(a))&&(p=h),!h&&!h))return p&&this.ds(a,b,c,p),g;a.x=l;a.y=f;a.L();return r};e.prototype.ds=
function(a,b,c,d){var l=2,f,e=r;f=r;for(var h=a.x,p=a.y;16>=l;)f=1/l,l*=2,a.x+=b*f*(e?1:-1),a.y+=c*f*(e?1:-1),a.L(),this.Xe(a,d)?f=e=g:(f=e=r,h=a.x,p=a.y);f&&(a.x=h,a.y=p,a.L())};e.prototype.Li=function(a,b){var c=ba(b)?100:b,d=0,l=a.x,f=a.y,e=0,h=0,p=0,m=this.hd(a);if(!m)return g;for(;d<=c;){switch(e){case 0:h=0;p=-1;d++;break;case 1:h=1;p=-1;break;case 2:h=1;p=0;break;case 3:p=h=1;break;case 4:h=0;p=1;break;case 5:h=-1;p=1;break;case 6:h=-1;p=0;break;case 7:p=h=-1}e=(e+1)%8;a.x=ia(l+h*d);a.y=ia(f+
p*d);a.L();if(!this.Xe(a,m)&&(m=this.hd(a),!m))return g}a.x=l;a.y=f;a.L();return r};e.prototype.ll=function(a,b){a.od&&b.od&&this.Oi.push([a,b])};e.prototype.Up=function(a,b){var c,d,l;c=0;for(d=this.Oi.length;c<d;c++)if(l=this.Oi[c],l[0]==a&&l[1]==b||l[0]==b&&l[1]==a)return g;return r};e.prototype.Km=function(a,b,c){var d=a.x,l=a.y,f=fa(10,Ca(b,c,d,l)),e=va(b,c,d,l),h=this.hd(a);if(!h)return S(e+ha);var p=h,m,t,k,B,w=O(5);for(m=1;36>m;m++)if(t=e-m*w,a.x=b+Math.cos(t)*f,a.y=c+Math.sin(t)*f,a.L(),
!this.Xe(a,p)&&(p=this.hd(a),!p)){k=t;break}36===m&&(k=S(e+ha));p=h;for(m=1;36>m;m++)if(t=e+m*w,a.x=b+Math.cos(t)*f,a.y=c+Math.sin(t)*f,a.L(),!this.Xe(a,p)&&(p=this.hd(a),!p)){B=t;break}36===m&&(B=S(e+ha));a.x=d;a.y=l;a.L();if(B===k)return B;a=wa(B,k)/2;a=ya(B,k)?S(k+a+ha):S(B+a);k=Math.cos(e);e=Math.sin(e);B=Math.cos(a);a=Math.sin(a);b=k*B+e*a;return va(0,0,k-2*b*B,e-2*b*a)};var f=[],B=-1;e.prototype.trigger=function(a,b,c){if(!this.da)return r;var d=this.da.Mh;if(!d)return r;B++;B===f.length?f.push(new Na):
f[B].clear();a=this.To(a,b,d,c);B--;return a};e.prototype.To=function(a,b,c,d){var l=f[B];if(l.contains(c))return r;l.add(c);var l=c.An.bf(),e=r,u,h,p;u=0;for(h=l.length;u<h;u++)l[u].tr()&&(p=this.To(a,b,l[u].xg,d),e=e||p);if(b){p=this.Pl(a,b,b.type.name,c,d);e=e||p;u=0;for(h=b.type.ua.length;u<h;u++)p=this.Pl(a,b,b.type.ua[u].name,c,d),e=e||p}else p=this.Pl(a,b,"system",c,d),e=e||p;return e};e.prototype.Pl=function(a,b,c,d,l){var f,e=r,h=r,h="undefined"!==typeof l,p=(h?d.gn:d.Uo)[c];if(!p)return e;
var m=q;d=0;for(f=p.length;d<f;d++)if(p[d].method==a){m=p[d].Oh;break}if(!m)return e;a=h?m[l]:m;if(!a)return q;d=0;for(f=a.length;d<f;d++)l=a[d][0],h=a[d][1],h=this.Jq(b,c,l,h),e=e||h;return e};e.prototype.Jq=function(a,b,c,d){var l,f,e=r;this.Ql++;var h=this.Ib().qc;h&&this.bh(h.fe);var p=1<this.Ql;this.bh(c.fe);p&&this.es();var m=this.Ki(c);m.qc=c;a&&(l=this.types[b].ca(),l.na=r,l.d.length=1,l.d[0]=a,this.types[b].Jd());a=g;if(c.parent){b=m.No;for(l=c.parent;l;)b.push(l),l=l.parent;b.reverse();
l=0;for(f=b.length;l<f;l++)if(!b[l].us()){a=r;break}}a&&(this.hg++,c.Ic?c.ts(d):c.Sa(),e=e||m.wf);this.Fi();p&&this.Yr();this.Qe(c.fe);h&&this.Qe(h.fe);0===this.Ec&&(0===B&&!this.xk&&(!this.Sc.Bg()||this.Rc.length))&&this.nb();this.Ql--;return e};e.prototype.dk=function(){var a=this.Ib();return a.qc.Ga[a.Ta]};e.prototype.es=function(){this.wi++;this.wi>=this.Mk.length&&this.Mk.push([])};e.prototype.Yr=function(){this.wi--};e.prototype.qn=function(){return this.Mk[this.wi]};e.prototype.Ki=function(a){this.Nh++;
this.Nh>=this.Uj.length&&this.Uj.push(new Za);var b=this.Ib();b.reset(a);return b};e.prototype.Fi=function(){this.Nh--};e.prototype.Ib=function(){return this.Uj[this.Nh]};e.prototype.rn=function(a,b){for(var c,d,l,f,e,h;b;){c=0;for(d=b.Bc.length;c<d;c++)if(h=b.Bc[c],h instanceof $a&&a.toLowerCase()===h.name.toLowerCase())return h;b=b.parent}c=0;for(d=this.ze.length;c<d;c++){e=this.ze[c];l=0;for(f=e.Rd.length;l<f;l++)if(h=e.Rd[l],h instanceof $a&&a.toLowerCase()===h.name.toLowerCase())return h}return q};
e.prototype.sn=function(a){var b,c;b=0;for(c=this.Hc.length;b<c;b++)if(this.Hc[b].V===a)return this.Hc[b];return q};e.prototype.Ce=function(a){var b,c;b=0;for(c=this.A.length;b<c;b++)if(this.A[b].V===a)return this.A[b];return q};e.prototype.Tq=function(a){var b,c;b=0;for(c=this.gf.length;b<c;b++)if(this.gf[b].V===a)return this.gf[b];return q};e.prototype.pr=function(){var a=this,c=this.tl,f=this.xd,e=this.ri,l=r;this.Lo&&(l=g,c="__c2_continuouspreview",this.Lo=r);if(c.length){this.nb();f=this.ys();
if(window.indexedDB&&!this.Xc)d(c,f,function(){aa("Saved state to IndexedDB storage ("+f.length+" bytes)");a.xd=f;a.trigger(U.prototype.k.yj,q);a.xd="";l&&b()},function(d){try{localStorage.setItem("__c2save_"+c,f),aa("Saved state to WebStorage ("+f.length+" bytes)"),a.xd=f,a.trigger(U.prototype.k.yj,q),a.xd="",l&&b()}catch(e){aa("Failed to save game state: "+d+"; "+e)}});else try{localStorage.setItem("__c2save_"+c,f),aa("Saved state to WebStorage ("+f.length+" bytes)"),a.xd=f,this.trigger(U.prototype.k.yj,
q),a.xd="",l&&b()}catch(h){aa("Error saving to WebStorage: "+h)}this.zb=this.ri=this.tl=""}e.length&&(window.indexedDB&&!this.Xc?t(e,function(b){b?(a.zb=b,aa("Loaded state from IndexedDB storage ("+a.zb.length+" bytes)")):(a.zb=localStorage.getItem("__c2save_"+e)||"",aa("Loaded state from WebStorage ("+a.zb.length+" bytes)"));a.lh=r;a.zb.length||a.trigger(U.prototype.k.xj,q)},function(){a.zb=localStorage.getItem("__c2save_"+e)||"";aa("Loaded state from WebStorage ("+a.zb.length+" bytes)");a.lh=r;
a.zb.length||a.trigger(U.prototype.k.xj,q)}):(this.zb=localStorage.getItem("__c2save_"+e)||"",aa("Loaded state from WebStorage ("+this.zb.length+" bytes)"),this.lh=r,a.zb.length||a.trigger(U.prototype.k.xj,q)),this.tl=this.ri="");this.zb.length&&(this.nb(),this.Er(this.zb),this.xd=this.zb,this.trigger(U.prototype.k.qp,q),this.zb=this.xd="")};e.prototype.ys=function(){var a,b,c,d,l,f,e,p={c2save:g,version:1,rt:{time:this.Tb.Cb,timescale:this.le,tickcount:this.Dd,execcount:this.hg,next_uid:this.Tg,
running_layout:this.da.V,start_time_offset:Date.now()-this.kh},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(b=this.A.length;a<b;a++)if(l=this.A[a],!l.J&&!this.Wo(l)){f={instances:[]};Fa(l.T)&&(f.ex=h(l.T));c=0;for(d=l.d.length;c<d;c++)f.instances.push(this.Eo(l.d[c]));p.types[l.V.toString()]=f}a=0;for(b=this.Hc.length;a<b;a++)c=this.Hc[a],p.layouts[c.V.toString()]=c.jb();d=p.events.groups;a=0;for(b=this.gf.length;a<b;a++)c=this.gf[a],d[c.V.toString()]=!!this.wh[c.ug];b=
p.events.cnds;for(e in this.jf)this.jf.hasOwnProperty(e)&&(a=this.jf[e],Fa(a.T)&&(b[e]={ex:h(a.T)}));b=p.events.acts;for(e in this.ff)this.ff.hasOwnProperty(e)&&(a=this.ff[e],Fa(a.T)&&(b[e]={ex:a.T}));b=p.events.vars;for(e in this.Uf)if(this.Uf.hasOwnProperty(e)&&(a=this.Uf[e],!a.di&&(!a.parent||a.Gg)))b[e]=a.data;p.system=this.gd.jb();return JSON.stringify(p)};e.prototype.Ao=function(){var a,b,c,d,l,f;this.Hf={};a=0;for(b=this.A.length;a<b;a++)if(c=this.A[a],!c.J){d=0;for(l=c.d.length;d<l;d++)f=
c.d[d],this.Hf[f.uid.toString()]=f}};e.prototype.Er=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){var b=a.rt;this.Tb.reset();this.Tb.Cb=b.time;this.le=b.timescale;this.Dd=b.tickcount;this.hg=b.execcount;this.kh=Date.now()-b.start_time_offset;var c=b.running_layout;if(c!==this.da.V)if(c=this.sn(c))this.Zm(c);else return;this.In=g;var d,l,f,e,h,p,m;p=a.types;for(l in p)if(p.hasOwnProperty(l)&&(e=this.Ce(parseInt(l,10)))&&!e.J&&!this.Wo(e)){p[l].ex?e.T=p[l].ex:Ga(e.T);h=e.d;f=p[l].instances;
c=0;for(d=ga(h.length,f.length);c<d;c++)this.Fk(h[c],f[c]);c=f.length;for(d=h.length;c<d;c++)this.oe(h[c]);c=h.length;for(d=f.length;c<d;c++){h=q;if(e.Ba.Vd&&(h=this.da.Vh(f[c].w.l),!h))continue;h=this.Od(e.rc,h,r,0,0,g);this.Fk(h,f[c])}e.je=g}this.nb();this.Ao();d=a.layouts;for(l in d)d.hasOwnProperty(l)&&(c=this.sn(parseInt(l,10)))&&c.yb(d[l]);d=a.events.groups;for(l in d)d.hasOwnProperty(l)&&(c=this.Tq(parseInt(l,10)))&&(this.wh[c.ug]=d[l]);c=a.events.cnds;for(l in c)c.hasOwnProperty(l)&&this.jf.hasOwnProperty(l)&&
(this.jf[l].T=c[l].ex);c=a.events.acts;for(l in c)c.hasOwnProperty(l)&&this.ff.hasOwnProperty(l)&&(this.ff[l].T=c[l].ex);c=a.events.vars;for(l in c)c.hasOwnProperty(l)&&this.Uf.hasOwnProperty(l)&&(this.Uf[l].data=c[l]);this.Tg=b.next_uid;this.In=r;this.gd.yb(a.system);c=0;for(d=this.A.length;c<d;c++)if(e=this.A[c],!e.J){l=0;for(a=e.d.length;l<a;l++){h=e.d[l];if(e.fc){p=h.tg();b=h.siblings.length=0;for(f=e.Gb.length;b<f;b++)m=e.Gb[b],e!==m&&h.siblings.push(m.d[p])}h.pe&&h.pe();if(h.X){b=0;for(f=h.X.length;b<
f;b++)p=h.X[b],p.pe&&p.pe()}}}this.ma=g}};e.prototype.Eo=function(a){var b,c,d,l,f;l=a.type;d=l.Ba;var e={uid:a.uid};Fa(a.T)&&(e.ex=h(a.T));if(a.Xa&&a.Xa.length){e.ivs={};b=0;for(c=a.Xa.length;b<c;b++)e.ivs[a.type.sk[b].toString()]=a.Xa[b]}if(d.Vd){d={x:a.x,y:a.y,w:a.width,h:a.height,l:a.n.V,zi:a.ec()};0!==a.j&&(d.a=a.j);1!==a.opacity&&(d.o=a.opacity);0.5!==a.Jb&&(d.hX=a.Jb);0.5!==a.Kb&&(d.hY=a.Kb);0!==a.Fb&&(d.bm=a.Fb);a.visible||(d.v=a.visible);a.od||(d.ce=a.od);-1!==a.Le&&(d.mts=a.Le);if(l.R.length){d.fx=
[];b=0;for(c=l.R.length;b<c;b++)f=l.R[b],d.fx.push({name:f.name,active:a.Id[f.index],params:a.Ia[f.index]})}e.w=d}if(a.X&&a.X.length){e.behs={};b=0;for(c=a.X.length;b<c;b++)l=a.X[b],l.jb&&(e.behs[l.type.V.toString()]=l.jb())}a.jb&&(e.data=a.jb());return e};e.prototype.Vq=function(a,b){var c,d;c=0;for(d=a.sk.length;c<d;c++)if(a.sk[c]===b)return c;return-1};e.prototype.Rq=function(a,b){var c,d;c=0;for(d=a.X.length;c<d;c++)if(a.X[c].type.V===b)return c;return-1};e.prototype.Fk=function(a,b){var c,d,
l,f,e,h;h=a.type;l=h.Ba;a.uid=b.uid;b.ex?a.T=b.ex:Ga(a.T);if(d=b.ivs)for(c in d)d.hasOwnProperty(c)&&(f=this.Vq(h,parseInt(c,10)),0>f||f>=a.Xa.length||(a.Xa[f]=d[c]));if(l.Vd){f=b.w;a.n.V!==f.l&&(d=a.n,a.n=this.da.Vh(f.l),a.n?(a.n.d.push(a),a.n.Zb=g,qa(d.d,a),d.Zb=g):(a.n=d,this.oe(a)));a.x=f.x;a.y=f.y;a.width=f.w;a.height=f.h;a.cf=f.zi;a.j=f.hasOwnProperty("a")?f.a:0;a.opacity=f.hasOwnProperty("o")?f.o:1;a.Jb=f.hasOwnProperty("hX")?f.hX:0.5;a.Kb=f.hasOwnProperty("hY")?f.hY:0.5;a.visible=f.hasOwnProperty("v")?
f.v:g;a.od=f.hasOwnProperty("ce")?f.ce:g;a.Le=f.hasOwnProperty("mts")?f.mts:-1;a.Fb=f.hasOwnProperty("bm")?f.bm:0;a.dg=Ra(a.Fb);this.D&&Sa(a,a.Fb,this.D);a.L();if(f.hasOwnProperty("fx")){d=0;for(l=f.fx.length;d<l;d++)e=h.fk(f.fx[d].name),0>e||(a.Id[e]=f.fx[d].active,a.Ia[e]=f.fx[d].params)}a.Fd()}if(h=b.behs)for(c in h)h.hasOwnProperty(c)&&(f=this.Rq(a,parseInt(c,10)),0>f||a.X[f].yb(h[c]));b.data&&a.yb(b.data)};ab=function(a){return new e(document.getElementById(a))};bb=function(a,b){return new e({dc:g,
width:a,height:b})};window.cr_createRuntime=ab;window.cr_createDCRuntime=bb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=g;var a=document.createElement("screencanvas")||document.createElement("canvas");document.body.appendChild(a);a=new e(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.cr_getC2Runtime=function(){var e=document.getElementById("c2canvas");return e?e.c2runtime:window.c2runtime?window.c2runtime:q};window.cr_sizeCanvas=function(e,k){if(!(0===e||0===k)){var d=window.cr_getC2Runtime();d&&d.setSize(e,k)}};window.cr_setSuspended=function(e){var k=window.cr_getC2Runtime();k&&k.setSuspended(e)};
(function(){function e(b,d){this.b=b;this.Mh=q;this.scrollX=this.b.Bb/2;this.scrollY=this.b.Ab/2;this.scale=1;this.j=0;this.lg=g;this.name=d[0];this.width=d[1];this.height=d[2];this.Xo=d[3];this.Jo=d[4];this.V=d[5];var c=d[6],a,e;this.Z=[];this.yg=[];a=0;for(e=c.length;a<e;a++){var m=new cb(this,c[a]);m.ho=a;this.Z.push(m)}c=d[7];this.Ee=[];a=0;for(e=c.length;a<e;a++){var m=c[a],f=this.b.A[m[1]];f.rc||(f.rc=m);this.Ee.push(m);-1===this.yg.indexOf(f)&&this.yg.push(f)}this.R=[];this.ba=[];this.Ia=[];
a=0;for(e=d[8].length;a<e;a++)this.R.push({id:d[8][a][0],name:d[8][a][1],kb:-1,ld:g,index:a}),this.Ia.push(d[8][a][2].slice(0));this.Fd();this.$d=new ka(0,0,1,1);this.jl=new ka(0,0,1,1);this.Zd={}}function k(b,d){this.la=b;this.b=b.b;this.d=[];this.scale=1;this.j=0;this.xe=r;this.Ed=new ka(0,0,0,0);this.So=new la;this.Db=this.Pb=this.Eb=this.Ob=0;this.Zb=r;this.name=d[0];this.index=d[1];this.V=d[2];this.visible=d[3];this.Ld=d[4];this.$e=d[5];this.ad=d[6];this.bd=d[7];this.opacity=d[8];this.Yj=d[9];
this.Qc=d[10];this.Fb=d[11];this.lq=d[12];this.dg="source-over";this.pb=this.tb=0;this.ae=r;var c=d[13],a,e;this.pf=[];a=0;for(e=c.length;a<e;a++){var m=c[a],f=this.b.A[m[1]];f.rc||(f.rc=m);this.pf.push(m);-1===this.la.yg.indexOf(f)&&this.la.yg.push(f)}this.R=[];this.ba=[];this.Ia=[];a=0;for(e=d[14].length;a<e;a++)this.R.push({id:d[14][a][0],name:d[14][a][1],kb:-1,ld:g,index:a}),this.Ia.push(d[14][a][2].slice(0));this.Fd();this.$d=new ka(0,0,1,1);this.jl=new ka(0,0,1,1)}function d(b,d){return b.cf-
d.cf}e.prototype.xs=function(b){var d=b.type.V.toString();this.Zd.hasOwnProperty(d)||(this.Zd[d]=[]);this.Zd[d].push(this.b.Eo(b))};e.prototype.xn=function(){var b=this.Z[0];return!b.$e&&1===b.opacity&&!b.Yj&&b.visible};e.prototype.Fd=function(){this.ba.length=0;var b,d,c;b=0;for(d=this.R.length;b<d;b++)c=this.R[b],c.ld&&this.ba.push(c)};e.prototype.ek=function(b){var d,c,a;d=0;for(c=this.R.length;d<c;d++)if(a=this.R[d],a.name===b)return a;return q};var t=[];e.prototype.Fl=function(){this.Jo&&(this.Mh=
this.b.Vj[this.Jo]);this.b.da=this;this.scrollX=this.b.Bb/2;this.scrollY=this.b.Ab/2;var b,e,c,a,p,m,f;b=0;for(c=this.b.A.length;b<c;b++)if(e=this.b.A[b],!e.J){p=e.d;e=0;for(a=p.length;e<a;e++)if(m=p[e],m.n){var k=m.n.ho;k>=this.Z.length&&(k=this.Z.length-1);m.n=this.Z[k];m.n.d.push(m);m.n.Zb=g}}t.length=0;this.Rp();b=0;for(c=this.Z.length;b<c;b++)m=this.Z[b],m.Yp(),m.xe=g,e=m.ub(0,0,g),a=m.ub(0,0,r),m.xe=r,this.b.cd&&(e=e+0.5|0,a=a+0.5|0),m.pl(e,a,q);p=r;if(!this.lg){for(f in this.Zd)if(this.Zd.hasOwnProperty(f)&&
(e=this.b.Ce(parseInt(f,10)))&&!e.J&&this.b.Rl(e)){a=this.Zd[f];b=0;for(c=a.length;b<c;b++){m=q;if(e.Ba.Vd&&(m=this.Vh(a[b].w.l),!m))continue;m=this.b.Od(e.rc,m,r,0,0,g);this.b.Fk(m,a[b]);p=g;t.push(m)}a.length=0}b=0;for(c=this.Z.length;b<c;b++)this.Z[b].d.sort(d),this.Z[b].Zb=g}p&&(this.b.nb(),this.b.Ao());for(b=0;b<t.length;b++)if(m=t[b],m.type.fc){c=m.tg();e=0;for(a=m.type.Gb.length;e<a;e++)f=m.type.Gb[e],m.type!==f&&(f.d.length>c?m.siblings.push(f.d[c]):f.rc&&(p=this.b.Od(f.rc,m.n,g,m.x,m.y,g),
this.b.nb(),f.jj(),m.siblings.push(p),t.push(p)))}b=0;for(c=this.Ee.length;b<c;b++)this.b.Od(this.Ee[b],q,g);this.b.bg=q;this.b.nb();if(this.b.ja&&!this.b.Lb){b=0;for(c=this.b.A.length;b<c;b++)f=this.b.A[b],!f.J&&(f.d.length&&f.dl)&&f.dl(this.b.ja)}b=0;for(c=t.length;b<c;b++)m=t[b],this.b.trigger(Object.getPrototypeOf(m.type.Ba).k.vj,m);t.length=0;this.b.trigger(U.prototype.k.gm,q);this.lg=r};e.prototype.Xp=function(){var b,d,c,a,e;d=b=0;for(c=this.Ee.length;b<c;b++)a=this.Ee[b],e=this.b.A[a[1]],
e.global?this.b.Od(a,q,g):(this.Ee[d]=a,d++);this.Ee.length=d};e.prototype.Fs=function(){this.b.trigger(U.prototype.k.fm,q);this.b.gd.Yb.length=0;var b,d,c,a,e,m;b=0;for(d=this.Z.length;b<d;b++){e=this.Z[b].d;c=0;for(a=e.length;c<a;c++)m=e[c],m.type.global||(this.b.Rl(m.type)&&this.xs(m),this.b.oe(m));this.b.nb();e.length=0;this.Z[b].Zb=g}b=0;for(d=this.b.A.length;b<d;b++)if(e=this.b.A[b],!e.global&&!e.Ba.Vd&&!e.Ba.El&&!e.J){c=0;for(a=e.d.length;c<a;c++)this.b.oe(e.d[c]);this.b.nb()}};e.prototype.Tc=
function(b){b.globalAlpha=1;b.globalCompositeOperation="source-over";this.b.Om&&!this.xn()&&b.clearRect(0,0,this.b.width,this.b.height);var d,c,a;d=0;for(c=this.Z.length;d<c;d++)a=this.Z[d],a.visible&&(0<a.opacity&&11!==a.Fb)&&a.Tc(b)};e.prototype.uc=function(b){var d=0<this.ba.length||this.b.Sf;if(d){this.b.Gc||(this.b.Gc=b.pd(this.b.width,this.b.height,this.b.Ja));if(this.b.Gc.$f!==this.b.width||this.b.Gc.Zf!==this.b.height)b.deleteTexture(this.b.Gc),this.b.Gc=b.pd(this.b.width,this.b.height,this.b.Ja);
b.Bd(this.b.Gc)}this.b.Om&&!this.xn()&&b.clear(0,0,0,0);var c,a;c=0;for(a=this.Z.length;c<a;c++)this.Z[c].visible&&0<this.Z[c].opacity&&this.Z[c].uc(b);d&&(1>=this.ba.length?(1===this.ba.length?(d=this.ba[0].index,b.fd(this.ba[0].kb),b.Pf(q,1/this.b.width,1/this.b.height,0,0,1,1,this.scale,this.Ia[d]),b.Ii(this.ba[0].kb)&&(this.b.ma=g)):b.fd(0),b.Bd(q),b.Te(1),b.kc(this.b.Gc),b.Fo(),b.ed(),b.jd(),d=this.b.width/2,c=this.b.height/2,b.Mi(-d,c,d,c,d,-c,-d,-c),b.kc(q)):this.ml(b,q,q,q));b.as()};e.prototype.rg=
function(){return 0<this.ba.length||this.b.Sf?this.b.Gc:q};e.prototype.tn=function(){var b=this.Z[0].Rb(),d,c,a;d=1;for(c=this.Z.length;d<c;d++)a=this.Z[d],0===a.ad&&0===a.bd||a.Rb()<b&&(b=a.Rb());return b};e.prototype.ul=function(b){if(!this.Xo){var d=this.b.width*(1/this.tn())/2;b>this.width-d&&(b=this.width-d);b<d&&(b=d)}this.scrollX!==b&&(this.scrollX=b,this.b.ma=g)};e.prototype.wl=function(b){if(!this.Xo){var d=this.b.height*(1/this.tn())/2;b>this.height-d&&(b=this.height-d);b<d&&(b=d)}this.scrollY!==
b&&(this.scrollY=b,this.b.ma=g)};e.prototype.Rp=function(){this.ul(this.scrollX);this.wl(this.scrollY)};e.prototype.ml=function(b,d,c,a){var e=c?c.ba:d?d.ba:this.ba,m=c?c.n.Rb():d?d.Rb():1,f=this.b.ak,t,n,x,v,s=0,l=1,z,u=this.b.width,k=this.b.height,D=u/2,T=k/2,L=d?d.$d:this.$d,G=d?d.jl:this.jl,H=0,w=0,y=0,N=0,I=u,Q=u,C=k,X=k,Y=x=0,P=c?c.n.Hb():0;if(c){t=0;for(n=e.length;t<n;t++)x+=b.Yq(e[t].kb),Y+=b.Zq(e[t].kb);v=c.I;H=d.Aa(v.left,v.top,g);y=d.Aa(v.left,v.top,r);I=d.Aa(v.right,v.bottom,g);C=d.Aa(v.right,
v.bottom,r);0!==P&&(t=d.Aa(v.right,v.top,g),n=d.Aa(v.right,v.top,r),w=d.Aa(v.left,v.bottom,g),N=d.Aa(v.left,v.bottom,r),v=Math.min(H,I,t,w),I=Math.max(H,I,t,w),H=v,v=Math.min(y,C,n,N),C=Math.max(y,C,n,N),y=v);H-=x;y-=Y;I+=x;C+=Y;G.left=H/u;G.top=1-y/k;G.right=I/u;G.bottom=1-C/k;w=H=Math.floor(H);N=y=Math.floor(y);Q=I=Math.ceil(I);X=C=Math.ceil(C);w-=x;N-=Y;Q+=x;X+=Y;0>H&&(H=0);0>y&&(y=0);I>u&&(I=u);C>k&&(C=k);0>w&&(w=0);0>N&&(N=0);Q>u&&(Q=u);X>k&&(X=k);L.left=H/u;L.top=1-y/k;L.right=I/u;L.bottom=
1-C/k}else L.left=G.left=0,L.top=G.top=0,L.right=G.right=1,L.bottom=G.bottom=1;Y=c&&((c.j||P)&&b.$g(e[0].kb)||0!==x||0!==Y||1!==c.opacity||c.type.Ba.ao)||d&&!c&&1!==d.opacity;b.Fo();if(Y){f[s]||(f[s]=b.pd(u,k,this.b.Ja));if(f[s].$f!==u||f[s].Zf!==k)b.deleteTexture(f[s]),f[s]=b.pd(u,k,this.b.Ja);b.fd(0);b.Bd(f[s]);z=X-N;b.clearRect(w,k-N-z,Q-w,z);c?c.uc(b):(b.kc(this.b.ic),b.Te(d.opacity),b.ed(),b.translate(-D,-T),b.jd(),b.dd(H,C,I,C,I,y,H,y,L));G.left=G.top=0;G.right=G.bottom=1;c&&(v=L.top,L.top=
L.bottom,L.bottom=v);s=1;l=0}b.Te(1);x=e.length-1;var P=b.el(e[x].kb),E=0;t=0;for(n=e.length;t<n;t++){f[s]||(f[s]=b.pd(u,k,this.b.Ja));if(f[s].$f!==u||f[s].Zf!==k)b.deleteTexture(f[s]),f[s]=b.pd(u,k,this.b.Ja);b.fd(e[t].kb);E=e[t].index;b.Ii(e[t].kb)&&(this.b.ma=g);0==t&&!Y?(b.Bd(f[s]),z=X-N,v=k-N-z,b.clearRect(w,v,Q-w,z),c?(b.Pf(a,1/c.width,1/c.height,G.left,G.top,G.right,G.bottom,m,c.Ia[E]),c.uc(b)):(b.Pf(a,1/u,1/k,0,0,1,1,m,d?d.Ia[E]:this.Ia[E]),b.kc(d?this.b.ic:this.b.Gc),b.ed(),b.translate(-D,
-T),b.jd(),b.dd(H,C,I,C,I,y,H,y,L)),G.left=G.top=0,G.right=G.bottom=1,c&&!P&&(v=C,C=y,y=v)):(b.Pf(a,1/u,1/k,G.left,G.top,G.right,G.bottom,m,c?c.Ia[E]:d?d.Ia[E]:this.Ia[E]),t===x&&!P?(c?b.ee(c.tb,c.pb):d&&b.ee(d.tb,d.pb),b.Bd(a)):(b.Bd(f[s]),z=X-N,v=k-N-z,b.clearRect(w,v,Q-w,z)),b.kc(f[l]),b.ed(),b.translate(-D,-T),b.jd(),b.dd(H,C,I,C,I,y,H,y,L),t===x&&!P&&b.kc(q));s=0===s?1:0;l=0===s?1:0}P&&(b.fd(0),c?b.ee(c.tb,c.pb):d&&b.ee(d.tb,d.pb),b.Bd(a),b.kc(f[l]),b.ed(),b.translate(-D,-T),b.jd(),c&&1===e.length&&
!Y?b.dd(H,y,I,y,I,C,H,C,L):b.dd(H,C,I,C,I,y,H,y,L),b.kc(q))};e.prototype.Vh=function(b){var d,c;d=0;for(c=this.Z.length;d<c;d++)if(this.Z[d].V===b)return this.Z[d];return q};e.prototype.jb=function(){var b,d,c,a={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.j,w:this.width,h:this.height,fv:this.lg,persist:this.Zd,fx:[],layers:{}};b=0;for(d=this.R.length;b<d;b++)c=this.R[b],a.fx.push({name:c.name,active:c.ld,params:this.Ia[c.index]});b=0;for(d=this.Z.length;b<d;b++)c=this.Z[b],a.layers[c.V.toString()]=
c.jb();return a};e.prototype.yb=function(b){var d,c,a,e;this.scrollX=b.sx;this.scrollY=b.sy;this.scale=b.s;this.j=b.a;this.width=b.w;this.height=b.h;this.Zd=b.persist;"undefined"!==typeof b.fv&&(this.lg=b.fv);var m=b.fx;d=0;for(c=m.length;d<c;d++)if(a=this.ek(m[d].name))a.ld=m[d].active,this.Ia[a.index]=m[d].params;this.Fd();d=b.layers;for(e in d)d.hasOwnProperty(e)&&(b=this.Vh(parseInt(e,10)))&&b.yb(d[e])};Xa=e;k.prototype.Fd=function(){this.ba.length=0;var b,d,c;b=0;for(d=this.R.length;b<d;b++)c=
this.R[b],c.ld&&this.ba.push(c)};k.prototype.ek=function(b){var d,c,a;d=0;for(c=this.R.length;d<c;d++)if(a=this.R[d],a.name===b)return a;return q};k.prototype.Yp=function(){var b,d,c,a,e,m;d=b=0;for(c=this.pf.length;b<c;b++){a=this.pf[b];e=this.b.A[a[1]];m=this.b.Rl(e);e=g;if(!m||this.la.lg)a=this.b.Od(a,this,g),t.push(a),a.type.global&&(e=r);e&&(this.pf[d]=this.pf[b],d++)}this.pf.length=d;this.b.nb();!this.b.B&&this.R.length&&(this.Fb=this.lq);this.dg=Ra(this.Fb);this.b.D&&Sa(this,this.Fb,this.b.D)};
k.prototype.Ls=function(){if(this.Zb){var b,d;b=0;for(d=this.d.length;b<d;b++)this.d[b].cf=b;this.Zb=r}};k.prototype.Rb=function(){return this.Wq()*this.b.xh};k.prototype.Wq=function(){return(this.scale*this.la.scale-1)*this.Qc+1};k.prototype.Hb=function(){return this.xe?0:S(this.la.j+this.j)};k.prototype.Tc=function(b){this.ae=this.Yj||1!==this.opacity||0!==this.Fb;var d=this.b.canvas,c=b;b.globalAlpha=1;b.globalCompositeOperation="source-over";this.ae&&(this.b.pi||(this.b.pi=document.createElement("canvas"),
d=this.b.pi,d.width=this.b.width,d.height=this.b.height,this.b.Sn=d.getContext("2d")),d=this.b.pi,c=this.b.Sn,d.width!==this.b.width&&(d.width=this.b.width),d.height!==this.b.height&&(d.height=this.b.height),this.$e&&c.clearRect(0,0,this.b.width,this.b.height));this.$e||(c.fillStyle="rgb("+this.Ld[0]+","+this.Ld[1]+","+this.Ld[2]+")",c.fillRect(0,0,this.b.width,this.b.height));c.save();this.xe=g;var a=this.ub(0,0,g),e=this.ub(0,0,r);this.xe=r;this.b.cd&&(a=a+0.5|0,e=e+0.5|0);this.pl(a,e,c);var m=
this.Rb();c.scale(m,m);c.translate(-a,-e);for(var f,a=0,e=this.d.length;a<e;a++)if(m=this.d[a],m.visible&&!(0===m.width||0===m.height))m.La(),f=m.I,f.right<this.Ob||(f.bottom<this.Pb||f.left>this.Eb||f.top>this.Db)||(c.globalCompositeOperation=m.dg,m.Tc(c));c.restore();this.ae&&(b.globalCompositeOperation=this.dg,b.globalAlpha=this.opacity,b.drawImage(d,0,0))};k.prototype.pl=function(b,d,c){var a=this.Rb();this.Ob=b;this.Pb=d;this.Eb=b+this.b.width*(1/a);this.Db=d+this.b.height*(1/a);b=this.Hb();
0!==b&&(c&&(c.translate(this.b.width/2,this.b.height/2),c.rotate(-b),c.translate(this.b.width/-2,this.b.height/-2)),this.Ed.set(this.Ob,this.Pb,this.Eb,this.Db),this.Ed.offset((this.Ob+this.Eb)/-2,(this.Pb+this.Db)/-2),this.So.Io(this.Ed,b),this.So.Fm(this.Ed),this.Ed.offset((this.Ob+this.Eb)/2,(this.Pb+this.Db)/2),this.Ob=this.Ed.left,this.Pb=this.Ed.top,this.Eb=this.Ed.right,this.Db=this.Ed.bottom)};k.prototype.uc=function(b){var d=this.b.width,c=this.b.height,a=0,e=0;if(this.ae=this.Yj||1!==this.opacity||
0<this.ba.length||0!==this.Fb){this.b.ic||(this.b.ic=b.pd(this.b.width,this.b.height,this.b.Ja));if(this.b.ic.$f!==this.b.width||this.b.ic.Zf!==this.b.height)b.deleteTexture(this.b.ic),this.b.ic=b.pd(this.b.width,this.b.height,this.b.Ja);b.Bd(this.b.ic);this.$e&&b.clear(0,0,0,0)}this.$e||b.clear(this.Ld[0]/255,this.Ld[1]/255,this.Ld[2]/255,1);this.xe=g;var e=this.ub(0,0,g),m=this.ub(0,0,r);this.xe=r;this.b.cd&&(e=e+0.5|0,m=m+0.5|0);this.pl(e,m,q);m=this.Rb();b.ed();b.scale(m,m);b.ql(-this.Hb());b.translate((this.Ob+
this.Eb)/-2,(this.Pb+this.Db)/-2);b.jd();var f,t,n;f=0;for(t=this.d.length;f<t;f++)if(n=this.d[f],n.visible&&!(0===n.width||0===n.height))if(n.La(),a=n.I,!(a.right<this.Ob||a.bottom<this.Pb||a.left>this.Eb||a.top>this.Db))if(n.bp)if(a=n.ba[0].kb,e=n.ba[0].index,1===n.ba.length&&!b.el(a)&&!b.bs(a)&&(!n.j&&!n.n.Hb()||!b.$g(a))&&1===n.opacity&&!n.type.Ba.ao){b.fd(a);b.ee(n.tb,n.pb);b.Ii(a)&&(this.b.ma=g);var x=0,v=0,s=0,l=0;b.$g(a)&&(a=n.I,x=this.Aa(a.left,a.top,g),v=this.Aa(a.left,a.top,r),s=this.Aa(a.right,
a.bottom,g),a=this.Aa(a.right,a.bottom,r),x/=d,v=1-v/c,s/=d,l=1-a/c);b.Pf(this.ae?this.b.ic:this.la.rg(),1/n.width,1/n.height,x,v,s,l,this.Rb(),n.Ia[e]);n.uc(b)}else this.la.ml(b,this,n,this.ae?this.b.ic:this.la.rg()),b.ed(),b.scale(m,m),b.ql(-this.Hb()),b.translate((this.Ob+this.Eb)/-2,(this.Pb+this.Db)/-2),b.jd();else b.fd(0),b.ee(n.tb,n.pb),n.uc(b);this.ae&&(a=this.ba.length?this.ba[0].kb:0,e=this.ba.length?this.ba[0].index:0,0===this.ba.length||1===this.ba.length&&!b.el(a)&&1===this.opacity?(1===
this.ba.length?(b.fd(a),b.Pf(this.la.rg(),1/this.b.width,1/this.b.height,0,0,1,1,this.Rb(),this.Ia[e]),b.Ii(a)&&(this.b.ma=g)):b.fd(0),b.Bd(this.la.rg()),b.Te(this.opacity),b.kc(this.b.ic),b.ee(this.tb,this.pb),b.ed(),b.jd(),d=this.b.width/2,c=this.b.height/2,b.Mi(-d,c,d,c,d,-c,-d,-c),b.kc(q)):this.la.ml(b,this,q,this.la.rg()))};k.prototype.ub=function(b,d,c){var a=this.b.devicePixelRatio;this.b.Dg&&0<this.b.vc&&(b*=a,d*=a);var a=this.b.Bb/2,e=this.b.Ab/2,a=(this.la.scrollX-a)*this.ad+a,e=(this.la.scrollY-
e)*this.bd+e,m=1/this.Rb(),a=a-this.b.width*m/2,e=e-this.b.height*m/2,a=a+b*m,e=e+d*m;d=this.Hb();0!==d&&(a-=this.la.scrollX,e-=this.la.scrollY,b=Math.cos(d),d=Math.sin(d),m=a*b-e*d,e=e*b+a*d,a=m+this.la.scrollX,e+=this.la.scrollY);return c?a:e};k.prototype.Aa=function(b,d,c){var a=this.Hb();if(0!==a){b-=this.la.scrollX;d-=this.la.scrollY;var e=Math.cos(-a),a=Math.sin(-a),m=b*e-d*a;d=d*e+b*a;b=m+this.la.scrollX;d+=this.la.scrollY}e=this.b.Bb/2;a=this.b.Ab/2;e=(this.la.scrollX-e)*this.ad+e;a=(this.la.scrollY-
a)*this.bd+a;m=1/this.Rb();e-=this.b.width*m/2;a-=this.b.height*m/2;e=(b-e)/m;a=(d-a)/m;b=this.b.devicePixelRatio;this.b.Dg&&0<this.b.vc&&(e/=b,a/=b);return c?e:a};k.prototype.jb=function(){var b,d,c,a={s:this.scale,a:this.j,vl:this.Ob,vt:this.Pb,vr:this.Eb,vb:this.Db,v:this.visible,bc:this.Ld,t:this.$e,px:this.ad,py:this.bd,o:this.opacity,zr:this.Qc,fx:[],instances:[]};b=0;for(d=this.R.length;b<d;b++)c=this.R[b],a.fx.push({name:c.name,active:c.ld,params:this.Ia[c.index]});return a};k.prototype.yb=
function(b){var e,c;this.scale=b.s;this.j=b.a;this.Ob=b.vl;this.Pb=b.vt;this.Eb=b.vr;this.Db=b.vb;this.visible=b.v;this.Ld=b.bc;this.$e=b.t;this.ad=b.px;this.bd=b.py;this.opacity=b.o;this.Qc=b.zr;var a=b.fx;b=0;for(e=a.length;b<e;b++)if(c=this.ek(a[b].name))c.ld=a[b].active,this.Ia[c.index]=a[b].params;this.Fd();this.d.sort(d);this.Zb=g};cb=k})();
(function(){function e(a,b){var c,d=a.length;switch(d){case 0:return g;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<d;c++)if(a[c]!==b[c])return r;return g}}function k(a,b){return a.index-b.index}function d(a){var b,c,d,f;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(k);a.length>=x.length&&(x.length=a.length+1);x[a.length]||(x[a.length]=[]);f=x[a.length];b=0;for(c=f.length;b<c;b++)if(d=f[b],e(a,d))return d;f.push(a);return a}
function t(a,b){this.b=a;this.Uo={};this.gn={};this.lk=r;this.An=new Na;this.name=b[0];var c=b[1];this.Rd=[];var d,e;d=0;for(e=c.length;d<e;d++)this.Cn(c[d],q,this.Rd)}function b(a){this.type=a;this.d=[];this.ta=[];this.na=g}function h(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ca=[];this.fe=[];this.yn=this.fj=this.Ol=this.rk=this.group=this.Mo=r;this.Ga=[];this.Cc=[];this.Bc=[];c[1]?(this.ug=c[1][1].toLowerCase(),this.group=g,this.rk=!!c[1][0],this.b.gf.push(this),this.b.wh[this.ug.toLowerCase()]=
this.rk):(this.ug="",this.rk=this.group=r);this.Ic=c[2];this.V=c[3];this.group||(this.b.Em[this.V.toString()]=this);var d=c[4];a=0;for(b=d.length;a<b;a++){var e=new fb(this,d[a]);this.Ga.push(e);this.wm(e.type)}d=c[5];a=0;for(b=d.length;a<b;a++)e=new gb(this,d[a]),this.Cc.push(e);if(7===c.length){c=c[6];a=0;for(b=c.length;a<b;a++)this.sheet.Cn(c[a],this,this.Bc)}this.fi=r;this.Ga.length&&(this.fi=this.Ga[0].type==q&&this.Ga[0].Qa==U.prototype.k.ip)}function c(a,b){var c,d,e;if(a&&(-1===b.indexOf(a)&&
b.push(a),a.fc)){c=0;for(d=a.Gb.length;c<d;c++)e=a.Gb[c],a!==e&&-1===b.indexOf(e)&&b.push(e)}}function a(a,b){this.nc=a;this.sheet=a.sheet;this.b=a.b;this.G=[];this.U=[];this.T={};this.Qa=b[1];this.trigger=0<b[3];this.dn=2===b[3];this.yd=b[4];this.zg=b[5];this.Dr=b[6];this.V=b[7];this.b.jf[this.V.toString()]=this;-1===b[0]?(this.type=q,this.Sa=this.sl,this.ue=q,this.ab=-1):(this.type=this.b.A[b[0]],this.Sa=this.Dr?this.vs:this.rl,b[2]?(this.ue=this.type.Uh(b[2]),this.ab=this.type.ck(b[2])):(this.ue=
q,this.ab=-1),this.nc.parent&&this.nc.parent.Ti());this.dn&&(this.Sa=this.ws);if(9===b.length){var c,d,e=b[8];c=0;for(d=e.length;c<d;c++){var f=new hb(this,e[c]);this.G.push(f)}this.U.length=e.length}}function p(a,b){this.nc=a;this.sheet=a.sheet;this.b=a.b;this.G=[];this.U=[];this.T={};this.Qa=b[1];-1===b[0]?(this.type=q,this.Sa=this.sl,this.ue=q,this.ab=-1):(this.type=this.b.A[b[0]],this.Sa=this.rl,b[2]?(this.ue=this.type.Uh(b[2]),this.ab=this.type.ck(b[2])):(this.ue=q,this.ab=-1));this.V=b[3];this.b.ff[this.V.toString()]=
this;if(5===b.length){var c,d,e=b[4];c=0;for(d=e.length;c<d;c++){var f=new hb(this,e[c]);this.G.push(f)}this.U.length=e.length}}function m(a,b){this.H=a;this.nc=a.nc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Uc=q;this.Qm=this.ge=0;this.la=q;this.key=0;this.object=q;this.index=0;this.mj=this.Rf=this.hn=this.Ae=this.ph=q;var c,d,e;switch(b[0]){case 0:case 7:this.Uc=new ib(this,b[1]);this.ge=0;this.get=this.er;break;case 1:this.Uc=new ib(this,b[1]);this.ge=0;this.get=this.gr;break;case 5:this.Uc=
new ib(this,b[1]);this.ge=0;this.get=this.kr;break;case 3:case 8:this.Qm=b[1];this.get=this.cr;break;case 6:this.la=this.b.Dk[b[1]];this.get=this.lr;break;case 9:this.key=b[1];this.get=this.jr;break;case 4:this.object=this.b.A[b[1]];this.get=this.mr;this.nc.wm(this.object);this.H instanceof gb?this.nc.Ti():this.nc.parent&&this.nc.parent.Ti();break;case 10:this.index=b[1];this.get=a.type.J?this.hr:this.ir;break;case 11:this.ph=b[1];this.Ae=q;this.get=this.dr;break;case 2:case 12:this.hn=b[1];this.get=
this.br;break;case 13:this.get=this.nr;this.Rf=[];this.mj=[];c=1;for(d=b.length;c<d;c++)e=new hb(this.H,b[c]),this.Rf.push(e),this.mj.push(0)}}function f(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ca=[];this.name=c[1];this.nj=c[2];this.qk=c[3];this.Gg=!!c[4];this.di=!!c[5];this.V=c[6];this.b.Uf[this.V.toString()]=this;this.data=this.qk;this.parent?this.Ke=this.Gg||this.di?-1:this.b.Es++:(this.Ke=-1,this.b.Lp.push(this))}function B(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ca=[];this.xg=
q;this.rr=c[1]}function n(){this.No=[];this.reset(q)}var x=[];t.prototype.toString=J("name");t.prototype.Cn=function(a,b,c){switch(a[0]){case 0:a=new jb(this,b,a);if(a.Ic){c.push(a);c=0;for(b=a.Ga.length;c<b;c++)a.Ga[c].trigger&&this.Dn(a,c)}else a.Kn()?this.Dn(a,0):c.push(a);break;case 1:a=new $a(this,b,a);c.push(a);break;case 2:a=new kb(this,b,a),c.push(a)}};t.prototype.Na=function(){var a,b;a=0;for(b=this.Rd.length;a<b;a++)this.Rd[a].Na(a<b-1&&this.Rd[a+1].fi)};t.prototype.Sa=function(){this.lk=
g;this.b.xk=g;var a,b;a=0;for(b=this.Rd.length;a<b;a++){var c=this.Rd[a];c.Sa();this.b.Kj(c.Ca);(!this.b.Sc.Bg()||this.b.Rc.length)&&this.b.nb()}this.b.xk=r};t.prototype.Dn=function(a,b){a.Ic||this.b.ij.push(a);var c,d,e=a.Ga[b],f;f=e.type?e.type.name:"system";var s=(c=e.dn)?this.gn:this.Uo;s[f]||(s[f]=[]);f=s[f];s=e.Qa;if(c){if(e.G.length&&(e=e.G[0],!(1!==e.type||2!==e.Uc.type))){e=e.Uc.value.toLowerCase();c=0;for(d=f.length;c<d;c++)if(f[c].method==s){c=f[c].Oh;c[e]?c[e].push([a,b]):c[e]=[[a,b]];
return}c={};c[e]=[[a,b]];f.push({method:s,Oh:c})}}else{c=0;for(d=f.length;c<d;c++)if(f[c].method==s){f[c].Oh.push([a,b]);return}f.push({method:s,Oh:[[a,b]]})}};Ya=t;b.prototype.kk=function(){return this.na?this.type.d.length:this.d.length};b.prototype.cc=function(){return this.na?this.type.d:this.d};b.prototype.Zg=function(a){a&&(a.b.Ib().qc.Ic?(this.na&&(this.d.length=0,oa(this.ta,a.type.d),this.na=r),a=this.ta.indexOf(a),-1!==a&&(this.d.push(this.ta[a]),this.ta.splice(a,1))):(this.na=r,this.d.length=
1,this.d[0]=a))};Wa=b;h.prototype.Na=function(a){var b,c=this.parent;if(this.group)for(this.fj=g;c;){if(!c.group){this.fj=r;break}c=c.parent}this.Ol=!this.Kn()&&(!this.parent||this.parent.group&&this.parent.fj);this.yn=!!a;this.fe=this.Ca.slice(0);for(c=this.parent;c;){a=0;for(b=c.Ca.length;a<b;a++)this.Jp(c.Ca[a]);c=c.parent}this.Ca=d(this.Ca);this.fe=d(this.fe);a=0;for(b=this.Ga.length;a<b;a++)this.Ga[a].Na();a=0;for(b=this.Cc.length;a<b;a++)this.Cc[a].Na();a=0;for(b=this.Bc.length;a<b;a++)this.Bc[a].Na(a<
b-1&&this.Bc[a+1].fi)};h.prototype.wm=function(a){c(a,this.Ca)};h.prototype.Jp=function(a){c(a,this.fe)};h.prototype.Ti=function(){this.Mo=g;this.parent&&this.parent.Ti()};h.prototype.Kn=function(){return this.Ga.length?this.Ga[0].trigger:r};h.prototype.Sa=function(){var a,b=r,c=this.b.Ib();c.qc=this;this.fi||(c.Tj=r);if(this.Ic){0===this.Ga.length&&(b=g);c.Ta=0;for(a=this.Ga.length;c.Ta<a;c.Ta++)this.Ga[c.Ta].trigger||this.Ga[c.Ta].Sa()&&(b=g);(c.wf=b)&&this.Ri()}else{c.Ta=0;for(a=this.Ga.length;c.Ta<
a;c.Ta++)if(!this.Ga[c.Ta].Sa()){c.wf=r;this.Ol&&(!this.b.Sc.Bg()||this.b.Rc.length)&&this.b.nb();return}c.wf=g;this.Ri()}c.wf&&this.yn&&(c.Tj=g);this.Ol&&(!this.b.Sc.Bg()||this.b.Rc.length)&&this.b.nb()};h.prototype.ts=function(a){this.b.Ib().qc=this;this.Ga[a].Sa()&&this.Ri()};h.prototype.Ri=function(){var a=this.b.Ib(),b;a.mc=0;for(b=this.Cc.length;a.mc<b;a.mc++)if(this.Cc[a.mc].Sa())return;this.Co()};h.prototype.ks=function(){var a=this.b.Ib(),b;for(b=this.Cc.length;a.mc<b;a.mc++)if(this.Cc[a.mc].Sa())return;
this.Co()};h.prototype.Co=function(){if(this.Bc.length){var a,b,c,d,e=this.Bc.length-1;this.b.Ki(this);if(this.Mo){a=0;for(b=this.Bc.length;a<b;a++)c=this.Bc[a],(d=!this.fj||!this.group&&a<e)&&this.b.Ji(c.Ca),c.Sa(),d?this.b.Qe(c.Ca):this.b.Kj(c.Ca)}else{a=0;for(b=this.Bc.length;a<b;a++)this.Bc[a].Sa()}this.b.Fi()}};h.prototype.us=function(){var a=this.b.Ib();a.qc=this;var b=r,c;a.Ta=0;for(c=this.Ga.length;a.Ta<c;a.Ta++)if(this.Ga[a.Ta].Sa())b=g;else if(!this.Ic)return r;return this.Ic?b:g};h.prototype.ns=
function(){this.b.hg++;var a=this.b.Ib().Ta,b=this.b.Ki(this);if(!this.Ic){b.Ta=a+1;for(a=this.Ga.length;b.Ta<a;b.Ta++)if(!this.Ga[b.Ta].Sa()){this.b.Fi();return}}this.Ri();this.b.Fi()};jb=h;a.prototype.Na=function(){var a,b;a=0;for(b=this.G.length;a<b;a++)this.G[a].Na()};a.prototype.ws=K(g);a.prototype.sl=function(){var a,b;a=0;for(b=this.G.length;a<b;a++)this.U[a]=this.G[a].get();return Da(this.Qa.apply(this.b.gd,this.U),this.zg)};a.prototype.vs=function(){var a,b;a=0;for(b=this.G.length;a<b;a++)this.U[a]=
this.G[a].get(a);a=this.Qa.apply(this.ue?this.ue:this.type,this.U);this.type.Jd();return a};a.prototype.rl=function(){var a,b,c,d,e,f,s,p=this.type.ca(),x=this.nc.Ic&&!this.trigger,n=0,v=this.type.fc;if(p.na){p.d.length=0;a=p.ta.length=0;for(c=this.type.d.length;a<c;a++){f=this.type.d[a];b=0;for(d=this.G.length;b<d;b++)this.U[b]=this.G[b].get(a);-1<this.ab?(this.type.J&&(n=f.type.mf[this.type.Vc]),b=this.Qa.apply(f.X[this.ab+n],this.U)):b=this.Qa.apply(f,this.U);(e=Da(b,this.zg))?p.d.push(f):x&&p.ta.push(f)}this.type.finish&&
this.type.finish(g);p.na=r;this.type.Jd();return p.kk()}var m=0,t=x?p.ta:p.d;e=r;a=0;for(c=t.length;a<c;a++){f=t[a];b=0;for(d=this.G.length;b<d;b++)this.U[b]=this.G[b].get(a);-1<this.ab?(this.type.J&&(n=f.type.mf[this.type.Vc]),b=this.Qa.apply(f.X[this.ab+n],this.U)):b=this.Qa.apply(f,this.U);if(Da(b,this.zg))if(e=g,x){if(p.d.push(f),v){b=0;for(d=f.siblings.length;b<d;b++)s=f.siblings[b],s.type.ca().d.push(s)}}else{t[m]=f;if(v){b=0;for(d=f.siblings.length;b<d;b++)s=f.siblings[b],s.type.ca().d[m]=
s}m++}else if(x){t[m]=f;if(v){b=0;for(d=f.siblings.length;b<d;b++)s=f.siblings[b],s.type.ca().ta[m]=s}m++}}t.length=m;if(v){a=0;for(c=this.type.Gb.length;a<c;a++)f=this.type.Gb[a].ca(),x?f.ta.length=m:f.d.length=m}n=e;if(x&&!e){a=0;for(c=p.d.length;a<c;a++){f=p.d[a];b=0;for(d=this.G.length;b<d;b++)this.U[b]=this.G[b].get(a);b=-1<this.ab?this.Qa.apply(f.X[this.ab],this.U):this.Qa.apply(f,this.U);if(Da(b,this.zg)){e=g;break}}}this.type.finish&&this.type.finish(n||x);return x?e:p.kk()};fb=a;p.prototype.Na=
function(){var a,b;a=0;for(b=this.G.length;a<b;a++)this.G[a].Na()};p.prototype.sl=function(){var a,b;a=0;for(b=this.G.length;a<b;a++)this.U[a]=this.G[a].get();return this.Qa.apply(this.b.gd,this.U)};p.prototype.rl=function(){var a=this.type.ca().cc(),b,c,d,e,f;b=0;for(d=a.length;b<d;b++){f=a[b];c=0;for(e=this.G.length;c<e;c++)this.U[c]=this.G[c].get(b);-1<this.ab?(c=0,this.type.J&&(c=f.type.mf[this.type.Vc]),this.Qa.apply(f.X[this.ab+c],this.U)):this.Qa.apply(f,this.U)}return r};gb=p;var v=[],s=-1;
m.prototype.Na=function(){var a,b;if(11===this.type)this.Ae=this.b.rn(this.ph,this.nc.parent);else if(13===this.type){a=0;for(b=this.Rf.length;a<b;a++)this.Rf[a].Na()}this.Uc&&this.Uc.Na()};m.prototype.Va=function(){s++;v.length===s&&v.push(new lb);return v[s]};m.prototype.Ra=function(){s--};m.prototype.er=function(a){this.ge=a||0;a=this.Va();this.Uc.get(a);this.Ra();return a.data};m.prototype.gr=function(a){this.ge=a||0;a=this.Va();this.Uc.get(a);this.Ra();return M(a.data)?a.data:""};m.prototype.mr=
J("object");m.prototype.cr=J("Qm");m.prototype.kr=function(a){this.ge=a||0;a=this.Va();this.Uc.get(a);this.Ra();return a.Ya()?this.b.pg(a.data):this.b.hk(a.data)};m.prototype.lr=J("la");m.prototype.jr=J("key");m.prototype.ir=J("index");m.prototype.hr=function(a){var b=this.H.type,c=q,c=b.ca(),d=c.cc(),c=d.length?d[a%d.length].type:c.ta[a%c.ta.length].type;return this.index+c.Ph[b.Vc]};m.prototype.dr=J("Ae");m.prototype.br=J("hn");m.prototype.nr=function(){var a,b;a=0;for(b=this.Rf.length;a<b;a++)this.mj[a]=
this.Rf[a].get();return this.mj};hb=m;f.prototype.Na=function(){this.Ca=d(this.Ca)};f.prototype.Ue=function(a){var b=this.b.qn();!this.parent||this.Gg||!b?this.data=a:(this.Ke>=b.length&&(b.length=this.Ke+1),b[this.Ke]=a)};f.prototype.sg=function(){var a=this.b.qn();return!this.parent||this.Gg||!a||this.di?this.data:this.Ke>=a.length||"undefined"===typeof a[this.Ke]?this.qk:a[this.Ke]};f.prototype.Sa=function(){this.parent&&(!this.Gg&&!this.di)&&this.Ue(this.qk)};$a=f;B.prototype.toString=function(){return"include:"+
this.xg.toString()};B.prototype.Na=function(){this.xg=this.b.Vj[this.rr];this.sheet.An.add(this);this.Ca=d(this.Ca)};B.prototype.Sa=function(){this.parent&&this.b.bh(this.b.A);this.xg.lk||this.xg.Sa();this.parent&&this.b.Qe(this.b.A)};B.prototype.tr=function(){for(var a=this.parent;a;){if(a.group&&!this.b.wh[a.ug.toLowerCase()])return r;a=a.parent}return g};kb=B;n.prototype.reset=function(a){this.qc=a;this.mc=this.Ta=0;this.No.length=0;this.Tj=this.wf=r};Za=n})();
(function(){function e(d,e){this.H=d;this.b=d.b;this.type=e[0];this.get=[this.xq,this.tq,this.Fq,this.Iq,this.nq,this.Gq,this.Bq,this.qq,this.Aq,this.Eq,this.oq,this.Dq,this.rq,this.Cq,this.yq,this.zq,this.uq,this.vq,this.pq,this.Hq,this.bn,this.wq,this.bn,this.sq][this.type];var b=q;this.Vb=this.G=this.U=this.Qa=this.dj=this.$a=this.first=this.value=q;this.ab=-1;this.ud=q;this.Ul=-1;this.Ae=this.ph=this.Op=q;this.dh=r;switch(this.type){case 0:case 1:case 2:this.value=e[1];break;case 3:this.first=
new ib(d,e[1]);break;case 18:this.first=new ib(d,e[1]);this.$a=new ib(d,e[2]);this.dj=new ib(d,e[3]);break;case 19:this.Qa=e[1];this.U=[];this.G=[];3===e.length?(b=e[2],this.U.length=b.length+1):this.U.length=1;break;case 20:this.Vb=this.b.A[e[1]];this.ab=-1;this.Qa=e[2];this.dh=e[3];this.ud=e[4]?new ib(d,e[4]):q;this.U=[];this.G=[];6===e.length?(b=e[5],this.U.length=b.length+1):this.U.length=1;break;case 21:this.Vb=this.b.A[e[1]];this.dh=e[2];this.ud=e[3]?new ib(d,e[3]):q;this.Ul=e[4];break;case 22:this.Vb=
this.b.A[e[1]];this.Op=this.Vb.Uh(e[2]);this.ab=this.Vb.ck(e[2]);this.Qa=e[3];this.dh=e[4];this.ud=e[5]?new ib(d,e[5]):q;this.U=[];this.G=[];7===e.length?(b=e[6],this.U.length=b.length+1):this.U.length=1;break;case 23:this.ph=e[1],this.Ae=q}4<=this.type&&17>=this.type&&(this.first=new ib(d,e[1]),this.$a=new ib(d,e[2]));if(b){var h,c;h=0;for(c=b.length;h<c;h++)this.G.push(new ib(d,b[h]))}}function k(d,e){this.type=d||qb.Wf;this.data=e||0;this.Gf=q;this.type==qb.Wf&&(this.data=Math.floor(this.data))}
e.prototype.Na=function(){23===this.type&&(this.Ae=this.H.b.rn(this.ph,this.H.nc.parent));this.first&&this.first.Na();this.$a&&this.$a.Na();this.dj&&this.dj.Na();this.ud&&this.ud.Na();if(this.G){var d,e;d=0;for(e=this.G.length;d<e;d++)this.G[d].Na()}};e.prototype.Hq=function(d){this.U[0]=d;d=this.H.Va();var e,b;e=0;for(b=this.G.length;e<b;e++)this.G[e].get(d),this.U[e+1]=d.data;this.H.Ra();this.Qa.apply(this.b.gd,this.U)};e.prototype.bn=function(d){var e=this.Vb.ca(),b=e.cc();if(!b.length)if(e.ta.length)b=
e.ta;else{this.dh?d.Oc(""):d.xa(0);return}this.U[0]=d;d.Gf=this.Vb;d=this.H.Va();var h,e=0;for(h=this.G.length;e<h;e++)this.G[e].get(d),this.U[e+1]=d.data;e=this.H.ge;this.ud&&(this.ud.get(d),d.Ya()&&(e=d.data,b=this.Vb.d));this.H.Ra();e%=b.length;0>e&&(e+=b.length);b=b[e];-1<this.ab?(d=0,this.Vb.J&&(d=b.type.mf[this.Vb.Vc]),this.Qa.apply(b.X[this.ab+d],this.U)):this.Qa.apply(b,this.U)};e.prototype.wq=function(d){var e=this.Vb.ca(),b=e.cc();if(!b.length)if(e.ta.length)b=e.ta;else{this.dh?d.Oc(""):
d.xa(0);return}e=this.H.ge;if(this.ud){var h=this.H.Va();this.ud.get(h);if(h.Ya()){e=h.data;b=this.Vb.d;e%=b.length;0>e&&(e+=b.length);b=b[e].Xa[this.Ul];M(b)?d.Oc(b):d.M(b);this.H.Ra();return}this.H.Ra()}e%=b.length;0>e&&(e+=b.length);b=b[e];e=0;this.Vb.J&&(e=b.type.Ph[this.Vb.Vc]);b=b.Xa[this.Ul+e];M(b)?d.Oc(b):d.M(b)};e.prototype.xq=function(d){d.type=qb.Wf;d.data=this.value};e.prototype.tq=function(d){d.type=qb.Vf;d.data=this.value};e.prototype.Fq=function(d){d.type=qb.zj;d.data=this.value};e.prototype.Iq=
function(d){this.first.get(d);d.Ya()&&(d.data=-d.data)};e.prototype.nq=function(d){this.first.get(d);var e=this.H.Va();this.$a.get(e);d.Ya()&&e.Ya()&&(d.data+=e.data,e.tf()&&d.Df());this.H.Ra()};e.prototype.Gq=function(d){this.first.get(d);var e=this.H.Va();this.$a.get(e);d.Ya()&&e.Ya()&&(d.data-=e.data,e.tf()&&d.Df());this.H.Ra()};e.prototype.Bq=function(d){this.first.get(d);var e=this.H.Va();this.$a.get(e);d.Ya()&&e.Ya()&&(d.data*=e.data,e.tf()&&d.Df());this.H.Ra()};e.prototype.qq=function(d){this.first.get(d);
var e=this.H.Va();this.$a.get(e);d.Ya()&&e.Ya()&&(d.data/=e.data,d.Df());this.H.Ra()};e.prototype.Aq=function(d){this.first.get(d);var e=this.H.Va();this.$a.get(e);d.Ya()&&e.Ya()&&(d.data%=e.data,e.tf()&&d.Df());this.H.Ra()};e.prototype.Eq=function(d){this.first.get(d);var e=this.H.Va();this.$a.get(e);d.Ya()&&e.Ya()&&(d.data=Math.pow(d.data,e.data),e.tf()&&d.Df());this.H.Ra()};e.prototype.oq=function(d){this.first.get(d);var e=this.H.Va();this.$a.get(e);d.Ya()?e.gi()?d.Oc(d.data.toString()+e.data):
d.data&&e.data?d.xa(1):d.xa(0):d.gi()&&(d.data=e.gi()?d.data+e.data:d.data+(Math.round(1E10*e.data)/1E10).toString());this.H.Ra()};e.prototype.Dq=function(d){this.first.get(d);var e=this.H.Va();this.$a.get(e);d.Ya()&&e.Ya()&&(d.data||e.data?d.xa(1):d.xa(0));this.H.Ra()};e.prototype.pq=function(d){this.first.get(d);d.data?this.$a.get(d):this.dj.get(d)};e.prototype.rq=function(d){this.first.get(d);var e=this.H.Va();this.$a.get(e);d.xa(d.data===e.data?1:0);this.H.Ra()};e.prototype.Cq=function(d){this.first.get(d);
var e=this.H.Va();this.$a.get(e);d.xa(d.data!==e.data?1:0);this.H.Ra()};e.prototype.yq=function(d){this.first.get(d);var e=this.H.Va();this.$a.get(e);d.xa(d.data<e.data?1:0);this.H.Ra()};e.prototype.zq=function(d){this.first.get(d);var e=this.H.Va();this.$a.get(e);d.xa(d.data<=e.data?1:0);this.H.Ra()};e.prototype.uq=function(d){this.first.get(d);var e=this.H.Va();this.$a.get(e);d.xa(d.data>e.data?1:0);this.H.Ra()};e.prototype.vq=function(d){this.first.get(d);var e=this.H.Va();this.$a.get(e);d.xa(d.data>=
e.data?1:0);this.H.Ra()};e.prototype.sq=function(d){var e=this.Ae.sg();ca(e)?d.M(e):d.Oc(e)};ib=e;k.prototype.tf=function(){return this.type===qb.Vf};k.prototype.Ya=function(){return this.type===qb.Wf||this.type===qb.Vf};k.prototype.gi=function(){return this.type===qb.zj};k.prototype.Df=function(){this.tf()||(this.gi()&&(this.data=parseFloat(this.data)),this.type=qb.Vf)};k.prototype.xa=function(d){this.type=qb.Wf;this.data=Math.floor(d)};k.prototype.M=function(d){this.type=qb.Vf;this.data=d};k.prototype.Oc=
function(d){this.type=qb.zj;this.data=d};lb=k;qb={Wf:0,Vf:1,zj:2}})();function U(e){this.b=e;this.Yb=[]}
U.prototype.jb=function(){var e={},k,d,t,b,h,c,a,p;e.waits=[];var m=e.waits,f;k=0;for(d=this.Yb.length;k<d;k++){c=this.Yb[k];f={t:c.time,ev:c.gg.V,sm:[],sols:{}};c.gg.Cc[c.mc]&&(f.act=c.gg.Cc[c.mc].V);t=0;for(b=c.Ca.length;t<b;t++)f.sm.push(c.Ca[t].V);for(h in c.Xb)if(c.Xb.hasOwnProperty(h)){a=this.b.A[parseInt(h,10)];p={sa:c.Xb[h].Do,insts:[]};t=0;for(b=c.Xb[h].Fe.length;t<b;t++)p.insts.push(c.Xb[h].Fe[t].uid);f.sols[a.V.toString()]=p}m.push(f)}return e};
U.prototype.yb=function(e){e=e.waits;var k,d,t,b,h,c,a,p,m,f,B;k=this.Yb.length=0;for(d=e.length;k<d;k++)if(c=e[k],p=this.b.Em[c.ev.toString()]){m=-1;t=0;for(b=p.Cc.length;t<b;t++)if(p.Cc[t].V===c.act){m=t;break}if(-1!==m){a={Xb:{},Ca:[],Xm:r};a.time=c.t;a.gg=p;a.mc=m;t=0;for(b=c.sm.length;t<b;t++)(p=this.b.Ce(c.sm[t]))&&a.Ca.push(p);for(h in c.sols)if(c.sols.hasOwnProperty(h)&&(p=this.b.Ce(parseInt(h,10)))){m=c.sols[h];f={Do:m.sa,Fe:[]};t=0;for(b=m.insts.length;t<b;t++)(B=this.b.qg(m.insts[t]))&&
f.Fe.push(B);a.Xb[p.index.toString()]=f}this.Yb.push(a)}}};
(function(){function e(){}function k(){}function d(){}var t=U.prototype;e.prototype.jp=K(g);e.prototype.gm=K(g);e.prototype.fm=K(g);e.prototype.rj=function(b){var a=this.b.dk(),d=a.T.sj||0,e=this.b.Tb.Cb;"undefined"===typeof a.T.tj&&(a.T.tj=b);var f=a.T.tj;return e>=d+f?(a.T.sj=d+f,e>=a.T.sj+f&&(a.T.sj=e),a.T.tj=b,g):r};e.prototype.gp=function(b,a,d){return Zb(b.sg(),a,d)};e.prototype.ip=function(){var b=this.b.Ib();return b.Tj?r:!b.wf};e.prototype.hm=K(g);e.prototype.np=K(g);e.prototype.yj=K(g);
e.prototype.qp=K(g);e.prototype.xj=K(g);t.k=new e;k.prototype.df=function(b){!this.b.Hg&&!this.b.bg&&(this.b.bg=b)};k.prototype.rh=function(b,a,d,e){if(a&&b&&(a=this.b.Tm(b,a,d,e))){this.b.Ec++;var f;this.b.trigger(Object.getPrototypeOf(b.Ba).k.vj,a);if(a.fc){d=0;for(e=a.siblings.length;d<e;d++)f=a.siblings[d],this.b.trigger(Object.getPrototypeOf(f.type.Ba).k.vj,f)}this.b.Ec--;b=b.ca();b.na=r;b.d.length=1;b.d[0]=a;if(a.fc){d=0;for(e=a.siblings.length;d<e;d++)f=a.siblings[d],b=f.type.ca(),b.na=r,b.d.length=
1,b.d[0]=f}}};k.prototype.vh=function(b,a){0===b.nj?ca(a)?b.Ue(a):b.Ue(parseFloat(a)):1===b.nj&&b.Ue(a.toString())};k.prototype.pj=function(b,a){0===b.nj?ca(a)?b.Ue(b.sg()+a):b.Ue(b.sg()+parseFloat(a)):1===b.nj&&b.Ue(b.sg()+a.toString())};var b=[],h=[];t.u=new k;d.prototype["int"]=function(b,a){M(a)?(b.xa(parseInt(a,10)),isNaN(b.data)&&(b.data=0)):b.xa(a)};d.prototype["float"]=function(b,a){M(a)?(b.M(parseFloat(a)),isNaN(b.data)&&(b.data=0)):b.M(a)};d.prototype.random=function(b,a,d){void 0===d?b.M(Math.random()*
a):b.M(Math.random()*(d-a)+a)};d.prototype.sqrt=function(b,a){b.M(Math.sqrt(a))};d.prototype.abs=function(b,a){b.M(Math.abs(a))};d.prototype.round=function(b,a){b.xa(Math.round(a))};d.prototype.floor=function(b,a){b.xa(Math.floor(a))};d.prototype.ceil=function(b,a){b.xa(Math.ceil(a))};d.prototype.sin=function(b,a){b.M(Math.sin(O(a)))};d.prototype.cos=function(b,a){b.M(Math.cos(O(a)))};d.prototype.tan=function(b,a){b.M(Math.tan(O(a)))};d.prototype.asin=function(b,a){b.M(ra(Math.asin(a)))};d.prototype.acos=
function(b,a){b.M(ra(Math.acos(a)))};d.prototype.exp=function(b,a){b.M(Math.exp(a))};d.prototype.max=function(b){var a=arguments[1],d,e;d=2;for(e=arguments.length;d<e;d++)a<arguments[d]&&(a=arguments[d]);b.M(a)};d.prototype.min=function(b){var a=arguments[1],d,e;d=2;for(e=arguments.length;d<e;d++)a>arguments[d]&&(a=arguments[d]);b.M(a)};d.prototype.ye=function(b){b.M(this.b.ye)};d.prototype.le=function(b){b.M(this.b.le)};d.prototype.time=function(b){b.M(this.b.Tb.Cb)};d.prototype.Dd=function(b){b.xa(this.b.Dd)};
d.prototype.yi=function(b){b.xa(this.b.yi)};d.prototype.Zj=function(b){b.xa(this.b.Zj)};d.prototype.j=function(b,a,d,e,f){b.M(ra(va(a,d,e,f)))};d.prototype.left=function(b,a,d){b.Oc(M(a)?a.substr(0,d):"")};d.prototype.right=function(b,a,d){b.Oc(M(a)?a.substr(a.length-d):"")};d.prototype.replace=function(b,a,d,e){M(a)&&M(d)&&M(e)?b.Oc(a.replace(RegExp(Pa(d),"gi"),e)):b.Oc(M(a)?a:"")};d.prototype.Lj=function(b){b.M(this.b.Lj/1E3)};d.prototype.yf=function(b){b.M(this.b.yf)};t.ga=new d;t.qs=function(){var c,
a,d,e,f,k,n=this.b.Ib();c=0;for(d=this.Yb.length;c<d;c++)if(e=this.Yb[c],!(e.time>this.b.Tb.Cb)){n.qc=e.gg;n.mc=e.mc;n.Ta=0;for(a in e.Xb)e.Xb.hasOwnProperty(a)&&(f=this.b.A[parseInt(a,10)].ca(),k=e.Xb[a],f.na=k.Do,oa(f.d,k.Fe),f=k,f.Fe.length=0,h.push(f));e.gg.ks();this.b.Kj(e.Ca);e.Xm=g}a=c=0;for(d=this.Yb.length;c<d;c++)e=this.Yb[c],this.Yb[a]=e,e.Xm?(Ga(e.Xb),e.Ca.length=0,b.push(e)):a++;this.Yb.length=a}})();
function Ab(e){var k=e[0].prototype,d=e[1],t=e[3],b=e[4],h=e[5],c=e[6],a=e[7];e=e[8];k.k||(k.k={});k.u||(k.u={});k.ga||(k.ga={});var p=k.k,m=k.u,k=k.ga;t&&(p.$s=function(a,b){return Zb(this.x,a,b)},p.bt=function(a,b){return Zb(this.y,a,b)},p.jt=function(){var a=this.n;this.La();var b=this.I;return!(b.right<a.Ob||b.bottom<a.Pb||b.left>a.Eb||b.top>a.Db)},p.kt=function(){this.La();var a=this.I,b=this.b.da;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},p.yt=function(a,b,c){var d=this.ca(),
e=d.cc();if(!e.length)return r;var s=e[0],l=s,p=Ca(s.x,s.y,b,c),m,h,k;m=1;for(h=e.length;m<h;m++)if(s=e[m],k=Ca(s.x,s.y,b,c),0===a&&k<p||1===a&&k>p)p=k,l=s;d.Zg(l);return g},m.Rt=function(a){this.x!==a&&(this.x=a,this.L())},m.St=function(a){this.y!==a&&(this.y=a,this.L())},m.Mt=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.L()},m.Nt=function(a,b){var c=a.Xq(this);if(c){var d;c.gk?(d=c.gk(b,g),c=c.gk(b,r)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.L()}},m.pt=function(a){0!==
a&&(this.x+=Math.cos(this.j)*a,this.y+=Math.sin(this.j)*a,this.L())},m.ot=function(a,b){0!==b&&(this.x+=Math.cos(O(a))*b,this.y+=Math.sin(O(a))*b,this.L())},k.Aj=function(a){a.M(this.x)},k.Bj=function(a){a.M(this.y)},k.ye=function(a){a.M(this.b.ng(this))});b&&(p.Zs=function(a,b){return Zb(this.width,a,b)},p.Xs=function(a,b){return Zb(this.height,a,b)},m.Ap=function(a){this.width!==a&&(this.width=a,this.L())},m.Jt=function(a){this.height!==a&&(this.height=a,this.L())},m.Ot=function(a,b){if(this.width!==
a||this.height!==b)this.width=a,this.height=b,this.L()},k.Wt=function(a){a.M(this.width)},k.dt=function(a){a.M(this.height)},k.Us=function(a){this.La();a.M(this.I.left)},k.Ws=function(a){this.La();a.M(this.I.top)},k.Vs=function(a){this.La();a.M(this.I.right)},k.Ts=function(a){this.La();a.M(this.I.bottom)});h&&(p.Ss=function(a,b){return wa(this.j,O(b))<=O(a)},p.ht=function(a){return ya(this.j,O(a))},p.ft=function(a,b){var c=ua(a),d=ua(b),e=S(this.j);return ya(d,c)?ya(e,c)&&!ya(e,d):!(!ya(e,c)&&ya(e,
d))},m.qm=function(a){a=O(sa(a));!isNaN(a)&&this.j!==a&&(this.j=a,this.L())},m.Ct=function(a){0!==a&&!isNaN(a)&&(this.j+=O(a),this.j=S(this.j),this.L())},m.Dt=function(a){0!==a&&!isNaN(a)&&(this.j-=O(a),this.j=S(this.j),this.L())},m.Et=function(a,b){var c=xa(this.j,O(b),O(a));!isNaN(c)&&this.j!==c&&(this.j=c,this.L())},m.Ft=function(a,b,c){a=xa(this.j,Math.atan2(c-this.y,b-this.x),O(a));!isNaN(a)&&this.j!==a&&(this.j=a,this.L())},m.Pt=function(a,b){var c=Math.atan2(b-this.y,a-this.x);!isNaN(c)&&this.j!==
c&&(this.j=c,this.L())},k.dm=function(a){a.M(ta(this.j))});d||(p.fp=function(a,b,c){return Zb(this.Xa[a],b,c)},p.gt=function(a){return this.Xa[a]},p.zt=function(a,b){var c=this.ca(),d=c.cc();if(!d.length)return r;var e=d[0],s=e,l=e.Xa[b],p,m,h;p=1;for(m=d.length;p<m;p++)if(e=d[p],h=e.Xa[b],0===a&&h<l||1===a&&h>l)l=h,s=e;c.Zg(s);return g},p.xt=function(a){var b,c,d,e,s;if(this.b.dk().zg){s=this.ca();if(s.na){s.na=r;s.d.length=0;s.ta.length=0;d=this.d;b=0;for(c=d.length;b<c;b++)e=d[b],e.uid===a?s.ta.push(e):
s.d.push(e)}else{d=b=0;for(c=s.d.length;b<c;b++)e=s.d[b],s.d[d]=e,e.uid===a?s.ta.push(e):d++;s.d.length=d}return!!s.d.length}e=this.b.qg(a);if(!e)return r;s=this.ca();if(!s.na&&-1===s.d.indexOf(e))return r;if(this.J){a=e.type.ua;b=0;for(c=a.length;b<c;b++)if(a[b]===this)return s.Zg(e),g}else if(e.type===this)return s.Zg(e),g;return r},p.vj=K(g),p.op=K(g),m.Kt=function(a,b){var c=this.Xa;ca(c[a])?c[a]=ca(b)?b:parseFloat(b):M(c[a])&&(c[a]=M(b)?b:b.toString())},m.dp=function(a,b){var c=this.Xa;ca(c[a])?
c[a]=ca(b)?c[a]+b:c[a]+parseFloat(b):M(c[a])&&(c[a]=M(b)?c[a]+b:c[a]+b.toString())},m.Tt=function(a,b){var c=this.Xa;ca(c[a])&&(c[a]=ca(b)?c[a]-b:c[a]-parseFloat(b))},m.Gt=function(a,b){this.Xa[a]=b?1:0},m.Ut=function(a){this.Xa[a]=1-this.Xa[a]},m.qj=function(){this.b.oe(this)},k.ct=function(a){var b=a.Gf.d.length,c,d,e;c=0;for(d=this.b.Rc.length;c<d;c++)e=this.b.Rc[c],a.Gf.J?0<=e.type.ua.indexOf(a.Gf)&&b++:e.type===a.Gf&&b++;a.xa(b)},k.Bt=function(a){a.xa(a.Gf.ca().cc().length)},k.Vt=function(a){a.xa(this.uid)},
k.et=function(a){a.xa(this.tg())});c&&(p.lt=J("visible"),m.Qt=function(a){!a!==!this.visible&&(this.visible=a,this.b.ma=g)},p.Ys=function(a,b){return Zb(Ta(100*this.opacity),a,b)},m.Lt=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ma=g)},k.Opacity=function(a){a.M(Ta(100*this.opacity))});a&&(p.it=function(a){return!a?r:this.n===a},p.At=function(a){var b=this.ca(),c=b.cc();if(!c.length)return r;var d=c[0],e=d,s,l;s=1;for(l=c.length;s<l;s++)if(d=c[s],0===a){if(d.n.index>
e.n.index||d.n.index===e.n.index&&d.ec()>e.ec())e=d}else if(d.n.index<e.n.index||d.n.index===e.n.index&&d.ec()<e.ec())e=d;b.Zg(e);return g},m.tt=function(){var a=this.ec();a!==this.n.d.length-1&&(na(this.n.d,a),this.n.d.push(this),this.b.ma=g,this.n.Zb=g)},m.qt=function(){var a=this.ec();0!==a&&(na(this.n.d,a),this.n.d.unshift(this),this.b.ma=g,this.n.Zb=g)},m.st=function(a){a&&a!=this.n&&(na(this.n.d,this.ec()),this.n.Zb=g,this.n=a,this.cf=a.d.length,a.d.push(this),this.b.ma=g)},m.Yt=function(a,
b){var c=0===a;if(b){var d=b.Sq(this);if(d&&d.uid!==this.uid){this.n.index!==d.n.index&&(na(this.n.d,this.ec()),this.n.Zb=g,this.n=d.n,this.cf=d.n.d.length,d.n.d.push(this));var e=this.ec(),d=d.ec();na(this.n.d,e);e<d&&d--;c&&d++;d===this.n.d.length?this.n.d.push(this):this.n.d.splice(d,0,this);this.n.Zb=g;this.b.ma=g}}},k.nt=function(a){a.xa(this.n.ho)},k.mt=function(a){a.Oc(this.n.name)},k.Xt=function(a){a.xa(this.ec())});e&&(m.Ht=function(a,b){if(this.b.B){var c=this.type.fk(b);if(!(0>c)){var d=
1===a;this.Id[c]!==d&&(this.Id[c]=d,this.Fd(),this.b.ma=g)}}},m.It=function(a,b,c){if(this.b.B){var d=this.type.fk(a);0>d||(a=this.type.R[d],d=this.Ia[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.B.$q(a.kb,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.ld&&(this.b.ma=g))))}})}function Tb(){this.Ej=g;this.b.ma=g;var e,k;e=0;for(k=this.zh.length;e<k;e++)this.zh[e](this)}function Ub(e){e&&this.zh.push(e)}
function Wb(){if(this.Ej){this.I.set(this.x,this.y,this.x+this.width,this.y+this.height);this.I.offset(-this.Jb*this.width,-this.Kb*this.height);this.j?(this.I.offset(-this.x,-this.y),this.fb.Io(this.I,this.j),this.fb.offset(this.x,this.y),this.fb.Fm(this.I)):this.fb.Ui(this.I);var e=0;this.I.left>this.I.right&&(e=this.I.left,this.I.left=this.I.right,this.I.right=e);this.I.top>this.I.bottom&&(e=this.I.top,this.I.top=this.I.bottom,this.I.bottom=e);this.Ej=r}}
function Vb(e,k){return!this.I.$b(e,k)||!this.fb.$b(e,k)?r:this.fa&&!this.fa.sf()?(this.fa.hf(this.width,this.height,this.j),this.fa.$b(e-this.x,k-this.y)):g}function Rb(){this.type.jj();return this.wg}function Xb(){this.n.Ls();return this.cf}function Yb(){this.ba.length=0;var e,k;e=0;for(k=this.Id.length;e<k;e++)this.Id[e]&&this.ba.push(this.type.R[e]);this.bp=!!this.ba.length}function Sb(){return"Inst"+this.yo}
function Cb(e){if(e&&e.fc&&e.type!=this){var k,d,t;k=0;for(d=e.siblings.length;k<d;k++)if(t=e.siblings[k],t.type==this)return t}e=this.ca().cc();return e.length?e[0]:q}function Db(e){var k=this.ca().cc();return k.length?k[e.tg()%k.length]:q}function Bb(){if(this.je&&!this.J){var e,k;e=0;for(k=this.d.length;e<k;e++)this.d[e].wg=e;this.je=r}}function Eb(){return this.he[this.rd]}function Fb(){this.rd++;this.rd===this.he.length?this.he.push(new Wa(this)):this.he[this.rd].na=g}
function Gb(){this.rd++;this.rd===this.he.length&&this.he.push(new Wa(this));var e=this.he[this.rd],k=this.he[this.rd-1];k.na?e.na=g:(e.na=r,oa(e.d,k.d))}function Hb(){this.rd--}function Ib(e){var k,d,t,b,h,c=0;if(!this.J){k=0;for(d=this.ua.length;k<d;k++){h=this.ua[k];t=0;for(b=h.za.length;t<b;t++){if(e===h.za[t].name)return this.T.Mn=c,h.za[t];c++}}}k=0;for(d=this.za.length;k<d;k++){if(e===this.za[k].name)return this.T.Mn=c,this.za[k];c++}return q}function Jb(e){return this.Uh(e)?this.T.Mn:-1}
function Kb(e){var k,d;k=0;for(d=this.R.length;k<d;k++)if(this.R[k].name===e)return k;return-1}function Lb(){if(this.fc&&!this.J){var e,k,d,t,b,h,c;this.jj();h=this.ca();var a=h.na,p=(e=this.b.Ib())&&e.qc&&e.qc.Ic;e=0;for(k=this.Gb.length;e<k;e++)if(b=this.Gb[e],b!==this&&(b.jj(),c=b.ca(),c.na=a,!a)){c.d.length=h.d.length;d=0;for(t=h.d.length;d<t;d++)c.d[d]=b.d[h.d[d].wg];if(p){c.ta.length=h.ta.length;d=0;for(t=h.ta.length;d<t;d++)c.ta[d]=b.d[h.ta[d].wg]}}}}function Mb(){return"Type"+this.V}
function Zb(e,k,d){if("undefined"===typeof e||"undefined"===typeof d)return r;switch(k){case 0:return e===d;case 1:return e!==d;case 2:return e<d;case 3:return e<=d;case 4:return e>d;case 5:return e>=d;default:return r}}var yb={};function $b(e){this.b=e}
(function(){function e(a){0>a&&(a=0);1<a&&(a=1);return 20*(Math.log(a)/Math.log(10))}function k(a){a=a.toLowerCase();return V.hasOwnProperty(a)&&V[a].length?V[a][0].ac():E.destination}function d(){return E.createGain?E.createGain():E.createGainNode()}function t(a){return E.createDelay?E.createDelay(a):E.createDelayNode(a)}function b(a){a.start?a.start(0):a.noteOn(0)}function h(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function c(a){a.stop?a.stop(0):a.noteOff(0)}function a(a,b,c,e,f,l){this.type=
"filter";this.Jc=[a,b,c,e,f,l];this.Y=d();this.O=d();this.O.gain.value=l;this.N=d();this.N.gain.value=1-l;this.Pa=E.createBiquadFilter();this.Pa.type="number"===typeof this.Pa.type?a:kc[a];this.Pa.frequency.value=b;this.Pa.detune&&(this.Pa.detune.value=c);this.Pa.Q.value=e;this.Pa.gain.value=f;this.Y.connect(this.Pa);this.Y.connect(this.N);this.Pa.connect(this.O)}function p(a,b,c){this.type="delay";this.Jc=[a,b,c];this.Y=d();this.O=d();this.O.gain.value=c;this.N=d();this.N.gain.value=1-c;this.Og=
d();this.tc=t(a);this.tc.delayTime.value=a;this.Gh=d();this.Gh.gain.value=b;this.Y.connect(this.Og);this.Y.connect(this.N);this.Og.connect(this.O);this.Og.connect(this.tc);this.tc.connect(this.Gh);this.Gh.connect(this.Og)}function m(a,b,c,e){this.type="convolve";this.Jc=[b,c,e];this.Y=d();this.O=d();this.O.gain.value=c;this.N=d();this.N.gain.value=1-c;this.we=E.createConvolver();a&&(this.we.normalize=b,this.we.buffer=a);this.Y.connect(this.we);this.Y.connect(this.N);this.we.connect(this.O)}function f(a,
c,e,f,l){this.type="flanger";this.Jc=[a,c,e,f,l];this.Y=d();this.N=d();this.N.gain.value=1-l/2;this.O=d();this.O.gain.value=l/2;this.Qh=d();this.Qh.gain.value=f;this.tc=t(a+c);this.tc.delayTime.value=a;this.Za=E.createOscillator();this.Za.frequency.value=e;this.Wb=d();this.Wb.gain.value=c;this.Y.connect(this.tc);this.Y.connect(this.N);this.tc.connect(this.O);this.tc.connect(this.Qh);this.Qh.connect(this.tc);this.Za.connect(this.Wb);this.Wb.connect(this.tc.delayTime);b(this.Za)}function B(a,c,e,f,
l,s){this.type="phaser";this.Jc=[a,c,e,f,l,s];this.Y=d();this.N=d();this.N.gain.value=1-s/2;this.O=d();this.O.gain.value=s/2;this.Pa=E.createBiquadFilter();this.Pa.type="number"===typeof this.Pa.type?7:"allpass";this.Pa.frequency.value=a;this.Pa.detune&&(this.Pa.detune.value=c);this.Pa.Q.value=e;this.Za=E.createOscillator();this.Za.frequency.value=l;this.Wb=d();this.Wb.gain.value=f;this.Y.connect(this.Pa);this.Y.connect(this.N);this.Pa.connect(this.O);this.Za.connect(this.Wb);this.Wb.connect(this.Pa.frequency);
b(this.Za)}function n(a){this.type="gain";this.Jc=[a];this.aa=d();this.aa.gain.value=a}function x(a,c){this.type="tremolo";this.Jc=[a,c];this.aa=d();this.aa.gain.value=1-c/2;this.Za=E.createOscillator();this.Za.frequency.value=a;this.Wb=d();this.Wb.gain.value=c/2;this.Za.connect(this.Wb);this.Wb.connect(this.aa.gain);b(this.Za)}function v(a,c){this.type="ringmod";this.Jc=[a,c];this.Y=d();this.O=d();this.O.gain.value=c;this.N=d();this.N.gain.value=1-c;this.eh=d();this.eh.gain.value=0;this.Za=E.createOscillator();
this.Za.frequency.value=a;this.Za.connect(this.eh.gain);b(this.Za);this.Y.connect(this.eh);this.Y.connect(this.N);this.eh.connect(this.O)}function s(a,b,c,e,f){this.type="distortion";this.Jc=[a,b,c,e,f];this.Y=d();this.Hi=d();this.Gi=d();this.zs(c,Math.pow(10,e/20));this.O=d();this.O.gain.value=f;this.N=d();this.N.gain.value=1-f;this.oj=E.createWaveShaper();this.Eh=new Float32Array(65536);this.Oq(a,b);this.oj.Eh=this.Eh;this.Y.connect(this.Hi);this.Y.connect(this.N);this.Hi.connect(this.oj);this.oj.connect(this.Gi);
this.Gi.connect(this.O)}function l(a,b,c,d,e){this.type="compressor";this.Jc=[a,b,c,d,e];this.aa=E.createDynamicsCompressor();this.aa.threshold.value=a;this.aa.knee.value=b;this.aa.ratio.value=c;this.aa.attack.value=d;this.aa.release.value=e}function z(a,b){this.type="analyser";this.Jc=[a,b];this.aa=E.createAnalyser();this.aa.fftSize=a;this.aa.smoothingTimeConstant=b;this.Mq=new Float32Array(this.aa.frequencyBinCount);this.Ko=new Uint8Array(a);this.os=this.Yg=0}function u(){this.S=q;this.ti=0;this.ie=
[];this.Qk=this.mi=this.li=0}function pa(a,b){this.src=a;this.wa=P;this.Fg=b;this.ym=r;var c=this;this.Yn=this.Yk=q;this.Lf=[];this.Si=0;this.Ci=r;P===C&&(b&&!w.hi)&&(this.wa=Q,this.Yk=d());this.Fa=q;var e;switch(this.wa){case Q:this.Fa=new Audio;P===C&&this.Fa.addEventListener("canplay",function(){c.Yn=E.createMediaElementSource(c.Fa);c.Yn.connect(c.Yk)});this.Fa.autoplay=r;this.Fa.pu="auto";this.Fa.src=a;break;case C:e=new XMLHttpRequest;e.open("GET",a,g);e.responseType="arraybuffer";e.onload=function(){if(E.decodeAudioData)E.decodeAudioData(e.response,
function(a){c.Fa=a;var b,d,e;if(ba(c.Di))ba(c.Ch)||(b=c.Ch.we,b.normalize=c.fo,b.buffer=a);else if(c.Lf.length){b=0;for(d=c.Lf.length;b<d;b++){a=c.Lf[b];e=new D(c,a.Qo);e.yl(g);if("undefined"!==typeof a.io&&(a.S=w.qg(a.io),!a.S))continue;if(a.S){var f=Ba(a.S.x,a.S.y,a.S.n.Hb(),Ia,Ja,g),l=Ba(a.S.x,a.S.y,a.S.n.Hb(),Ia,Ja,r);e.xl(f,l,ra(a.S.j+a.S.n.Hb()),a.mk,a.Rk,a.Uk);e.fh(a.S)}else e.xl(a.x,a.y,a.ka,a.mk,a.Rk,a.Uk);e.play(c.Nk,c.Wl,c.Si);c.Ci&&e.pause();R.push(e)}c.Lf.length=0}else e=new D(c,c.Di),
e.play(c.Nk,c.Wl,c.Si),c.Ci&&e.pause(),R.push(e)});else if(c.Fa=E.createBuffer(e.response,r),ba(c.Di)){if(!ba(c.Ch)){var a=c.Ch.we;a.normalize=c.fo;a.buffer=c.Fa}}else a=new D(c,c.Di),a.play(c.Nk,c.Wl,c.Si),c.Ci&&a.pause(),R.push(a)};e.send();break;case X:this.Fa=g;break;case Y:this.Fa=g}}function D(a,b){var c=this;this.ke=b;this.Pc=this.Sd=g;this.src=a.src;this.buffer=a;this.wa=P;this.Fg=a.Fg;this.playbackRate=1;this.$k=g;this.Ud=this.Ad=r;this.Nc=0;this.Bk=this.Ak=this.yd=r;this.Rg=this.volume=
1;this.startTime=w.Tb.Cb;this.Ma=this.qb=q;this.$c=r;this.Ua=q;this.qo=this.po=this.oo=this.no=this.so=this.ro=0;this.q=q;var e=r;switch(this.wa){case Q:this.Fg?(this.q=a.Fa,e=!a.ym,a.ym=g):(this.q=new Audio,this.q.autoplay=r,this.q.src=a.Fa.src,e=g);e&&this.q.addEventListener("ended",function(){N=c.ke;c.Pc=g;w.trigger($b.prototype.k.wj,y)});break;case C:this.qb=d();this.qb.connect(k(b));this.buffer.wa===C?a.Fa&&(this.q=E.createBufferSource(),this.q.buffer=a.Fa,this.q.connect(this.qb)):(this.q=this.buffer.Fa,
this.buffer.Yk.connect(this.qb));break;case X:this.q=new window.Media(I+this.src,q,q,function(a){a===window.Media.MEDIA_STOPPED&&(c.$k=g,c.Pc=g,N=c.ke,w.trigger($b.prototype.k.wj,y))});break;case Y:this.q=g}}function T(a,b){V.hasOwnProperty(a)?V[a].push(b):V[a]=[b];var c,d,e,f,l=E.destination;if(V.hasOwnProperty(a)&&(e=V[a],e.length)){l=e[0].ac();c=0;for(d=e.length;c<d;c++)f=e[c],c+1===d?f.oc(E.destination):f.oc(e[c+1].ac())}Ka.length=0;if(a.length){c=0;for(d=R.length;c<d;c++)e=R[c],a.toLowerCase()===
e.ke.toLowerCase()&&Ka.push(e)}else La&&!La.vg()&&(Ka.length=1,Ka[0]=La);c=0;for(d=Ka.length;c<d;c++)Ka[c].hs(l);Ea&&mb===a&&(Ea.disconnect(),Ea.connect(l))}function L(){}function G(){}var H=$b.prototype;H.qa=function(a){this.Ba=a;this.b=a.b};H.qa.prototype.W=F();var w=q,y=q,N="",I="",Q=0,C=1,X=2,Y=3,P=Q,E=q,nb=[],R=[],La=q,db=r,eb=0,Ma=r,za=1,Ia=0,Ja=0,ob=1,pb=1,Nb=10,Ob=1E4,Pb=1,Ea=q,mb="",V={},kc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");a.prototype.oc=function(a){this.O.disconnect();
this.O.connect(a);this.N.disconnect();this.N.connect(a)};a.prototype.remove=function(){this.Y.disconnect();this.Pa.disconnect();this.O.disconnect();this.N.disconnect()};a.prototype.ac=J("Y");p.prototype.oc=function(a){this.O.disconnect();this.O.connect(a);this.N.disconnect();this.N.connect(a)};p.prototype.remove=function(){this.Y.disconnect();this.Og.disconnect();this.tc.disconnect();this.Gh.disconnect();this.O.disconnect();this.N.disconnect()};p.prototype.ac=J("Y");m.prototype.oc=function(a){this.O.disconnect();
this.O.connect(a);this.N.disconnect();this.N.connect(a)};m.prototype.remove=function(){this.Y.disconnect();this.we.disconnect();this.O.disconnect();this.N.disconnect()};m.prototype.ac=J("Y");f.prototype.oc=function(a){this.N.disconnect();this.N.connect(a);this.O.disconnect();this.O.connect(a)};f.prototype.remove=function(){this.Y.disconnect();this.tc.disconnect();this.Za.disconnect();this.Wb.disconnect();this.N.disconnect();this.O.disconnect();this.Qh.disconnect()};f.prototype.ac=J("Y");B.prototype.oc=
function(a){this.N.disconnect();this.N.connect(a);this.O.disconnect();this.O.connect(a)};B.prototype.remove=function(){this.Y.disconnect();this.Pa.disconnect();this.Za.disconnect();this.Wb.disconnect();this.N.disconnect();this.O.disconnect()};B.prototype.ac=J("Y");n.prototype.oc=function(a){this.aa.disconnect();this.aa.connect(a)};n.prototype.remove=function(){this.aa.disconnect()};n.prototype.ac=J("aa");x.prototype.oc=function(a){this.aa.disconnect();this.aa.connect(a)};x.prototype.remove=function(){this.Za.disconnect();
this.Wb.disconnect();this.aa.disconnect()};x.prototype.ac=J("aa");v.prototype.oc=function(a){this.O.disconnect();this.O.connect(a);this.N.disconnect();this.N.connect(a)};v.prototype.remove=function(){this.Za.disconnect();this.eh.disconnect();this.Y.disconnect();this.O.disconnect();this.N.disconnect()};v.prototype.ac=J("Y");s.prototype.zs=function(a,b){0.01>a&&(a=0.01);this.Hi.gain.value=a;this.Gi.gain.value=Math.pow(1/a,0.6)*b};s.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:
a;b=a<b?a:b+d*(1-Math.exp(-(1/d)*(a-b)));return b*c};s.prototype.Oq=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),e=0,f=0;32768>f;++f)e=f/32768,e=this.shape(e,c,d),this.Eh[32768+f]=e,this.Eh[32768-f-1]=-e};s.prototype.oc=function(a){this.O.disconnect();this.O.connect(a);this.N.disconnect();this.N.connect(a)};s.prototype.remove=function(){this.Y.disconnect();this.Hi.disconnect();this.oj.disconnect();this.Gi.disconnect();this.O.disconnect();this.N.disconnect()};s.prototype.ac=J("Y");
l.prototype.oc=function(a){this.aa.disconnect();this.aa.connect(a)};l.prototype.remove=function(){this.aa.disconnect()};l.prototype.ac=J("aa");z.prototype.Oa=function(){this.aa.getFloatFrequencyData(this.Mq);this.aa.getByteTimeDomainData(this.Ko);for(var a=this.aa.fftSize,b=0,c=this.Yg=0,d=0;b<a;b++)d=(this.Ko[b]-128)/128,0>d&&(d=-d),this.Yg<d&&(this.Yg=d),c+=d*d;this.Yg=e(this.Yg);this.os=e(Math.sqrt(c/a))};z.prototype.oc=function(a){this.aa.disconnect();this.aa.connect(a)};z.prototype.remove=function(){this.aa.disconnect()};
z.prototype.ac=J("aa");u.prototype.fh=function(a){if(this.S=a)this.li=this.S.x,this.mi=this.S.y;this.ie.length=0};u.prototype.$h=function(){return!!this.S};u.prototype.Oa=function(a){this.S&&(this.Qk=va(this.li,this.mi,this.S.x,this.S.y),a=Ca(this.li,this.mi,this.S.x,this.S.y)/a,4>this.ie.length||this.ie.shift(),this.ie.push(a),this.li=this.S.x,this.mi=this.S.y)};u.prototype.Xh=function(){if(!this.ie.length)return 0;var a,b,c=0;a=0;for(b=this.ie.length;a<b;a++)c+=this.ie[a];return c/this.ie.length};
u.prototype.vn=function(){return Math.cos(this.Qk)*this.Xh()};u.prototype.wn=function(){return Math.sin(this.Qk)*this.Xh()};var Qb=r;D.prototype.vg=function(){switch(this.wa){case Q:return this.q.ended;case C:return this.buffer.wa===C?!this.Sd&&!this.Pc&&this.q.loop||this.Ud?r:w.Tb.Cb-this.startTime>this.buffer.Fa.duration:this.q.ended;case X:return this.$k;case Y:g}return g};D.prototype.Tp=function(){return this.Sd||this.Pc?g:this.vg()};D.prototype.yl=function(a){P===C&&(!this.$c&&a?(this.Ma||(this.Ma=
E.createPanner(),this.Ma.panningModel="number"===typeof this.Ma.panningModel?ob:["equalpower","HRTF","soundfield"][ob],this.Ma.distanceModel="number"===typeof this.Ma.distanceModel?pb:["linear","inverse","exponential"][pb],this.Ma.refDistance=Nb,this.Ma.maxDistance=Ob,this.Ma.rolloffFactor=Pb),this.qb.disconnect(),this.qb.connect(this.Ma),this.Ma.connect(k(this.ke)),this.$c=g):this.$c&&!a&&(this.Ma.disconnect(),this.qb.disconnect(),this.qb.connect(k(this.ke)),this.$c=r))};D.prototype.xl=function(a,
b,c,d,e,f){this.$c&&P===C&&(this.Ma.setPosition(a,b,0),this.Ma.setOrientation(Math.cos(O(c)),Math.sin(O(c)),0),this.Ma.coneInnerAngle=d,this.Ma.coneOuterAngle=e,this.Ma.coneOuterGain=f,this.ro=a,this.so=b,this.no=c,this.oo=d,this.po=e,this.qo=f)};D.prototype.fh=function(a){this.$c&&P===C&&(this.Ua||(this.Ua=new u),this.Ua.fh(a))};D.prototype.Oa=function(a){if(this.$c&&!(P!==C||!this.Ua||!this.Ua.$h()||!this.rf())){this.Ua.Oa(a);a=this.Ua.S;var b=Ba(a.x,a.y,a.n.Hb(),Ia,Ja,g),c=Ba(a.x,a.y,a.n.Hb(),
Ia,Ja,r);this.Ma.setPosition(b,c,0);b=0;"undefined"!==typeof this.Ua.S.j&&(b=a.j+a.n.Hb(),this.Ma.setOrientation(Math.cos(b),Math.sin(b),0));this.Ma.setVelocity(this.Ua.vn(),this.Ua.wn(),0)}};D.prototype.play=function(a,c,d){var e=this.q;this.yd=a;this.volume=c;d=d||0;switch(this.wa){case Q:1!==e.playbackRate&&(e.playbackRate=1);e.volume!==c*za&&(e.volume=c*za);e.loop!==a&&(e.loop=a);e.muted&&(e.muted=r);if(e.currentTime!==d)try{e.currentTime=d}catch(f){}this.q.play();break;case C:this.muted=r;this.Rg=
1;if(this.buffer.wa===C)this.Sd||(this.q=E.createBufferSource(),this.q.buffer=this.buffer.Fa,this.q.connect(this.qb)),this.q.loop=a,this.qb.gain.value=c*za,0===d?b(this.q):h(this.q,d,this.nf());else{1!==e.playbackRate&&(e.playbackRate=1);e.loop!==a&&(e.loop=a);this.qb.gain.value=c*za;if(e.currentTime!==d)try{e.currentTime=d}catch(l){}e.play()}break;case X:(!this.Sd&&this.Pc||0!==d)&&e.seekTo(d);e.play();this.$k=r;break;case Y:w.xc?AppMobi.context.playSound(this.src):AppMobi.player.playSound(this.src)}this.playbackRate=
1;this.startTime=w.Tb.Cb-d;this.Ud=this.Pc=this.Sd=r};D.prototype.stop=function(){switch(this.wa){case Q:this.q.paused||this.q.pause();break;case C:this.buffer.wa===C?c(this.q):this.q.paused||this.q.pause();break;case X:this.q.stop()}this.Pc=g;this.Ud=r};D.prototype.pause=function(){if(!this.Sd&&!this.Pc&&!this.vg()&&!this.Ud){switch(this.wa){case Q:this.q.paused||this.q.pause();break;case C:this.buffer.wa===C?(this.Nc=this.ik(),this.yd&&(this.Nc%=this.nf()),c(this.q)):this.q.paused||this.q.pause();
break;case X:this.q.pause()}this.Ud=g}};D.prototype.hs=function(a){this.wa===C&&(this.$c?(this.Ma.disconnect(),this.Ma.connect(a)):(this.qb.disconnect(),this.qb.connect(a)))};D.prototype.nf=function(){switch(this.wa){case Q:if("undefined"!==typeof this.q.duration)return this.q.duration;break;case C:return this.buffer.Fa.duration;case X:return this.q.getDuration()}return 0};D.prototype.ik=function(){var a=this.nf(),b=0;switch(this.wa){case Q:"undefined"!==typeof this.q.currentTime&&(b=this.q.currentTime);
break;case C:if(this.buffer.wa===C){if(this.Ud)return this.Nc;b=w.Tb.Cb-this.startTime}else"undefined"!==typeof this.q.currentTime&&(b=this.q.currentTime)}!this.yd&&b>a&&(b=a);return b};D.prototype.rf=function(){return!this.Ud&&!this.Sd&&!this.Pc&&!this.vg()};D.prototype.Ks=function(){var a=this.volume*za;switch(this.wa){case Q:this.q.volume&&this.q.volume!==a&&(this.q.volume=a);break;case C:this.qb.gain.value=a*this.Rg}};D.prototype.an=function(a){switch(this.wa){case Q:this.q.muted!==!!a&&(this.q.muted=
!!a);break;case C:this.Rg=a?0:1,this.qb.gain.value=za*this.volume*this.Rg}};D.prototype.Go=function(a){this.Bk=!!a;this.an(this.Ak||this.Bk)};D.prototype.Zo=function(){var a=this.playbackRate;if(1===eb&&!this.Fg||2===eb)a*=w.le;switch(this.wa){case Q:this.q.playbackRate!==a&&(this.q.playbackRate=a);break;case C:this.buffer.wa===C?this.q.playbackRate.value!==a&&(this.q.playbackRate.value=a):this.q.playbackRate!==a&&(this.q.playbackRate=a)}};D.prototype.As=function(a){switch(this.wa){case Q:a?this.rf()?
(this.q.pause(),this.Ad=g):this.Ad=r:this.Ad&&this.q.play();break;case C:a?this.rf()?(this.buffer.wa===C?(this.Nc=this.ik(),this.yd&&(this.Nc%=this.nf()),c(this.q)):this.q.pause(),this.Ad=g):this.Ad=r:this.Ad&&(this.buffer.wa===C?(this.q=E.createBufferSource(),this.q.buffer=this.buffer.Fa,this.q.connect(this.qb),this.q.loop=this.yd,this.qb.gain.value=za*this.volume*this.Rg,this.startTime=w.Tb.Cb-this.Nc,h(this.q,this.Nc,this.nf())):this.q.play());break;case X:a?this.rf()?(this.q.pause(),this.Ad=g):
this.Ad=r:this.Ad&&this.q.play()}};H.ea=function(a){this.type=a;w=this.b=a.b;y=this;this.xb=q;this.Mg=-600;E=q;"undefined"!==typeof AudioContext?(P=C,E=new AudioContext):"undefined"!==typeof webkitAudioContext&&(P=C,E=new webkitAudioContext);this.b.hi&&P===C&&document.addEventListener("touchstart",function(){if(!Qb){var a=E.createBuffer(1,1,22050),c=E.createBufferSource();c.buffer=a;c.connect(E.destination);b(c);Qb=g}},g);P!==C&&(this.b.Ge?P=X:this.b.qf&&(P=Y));P===X&&(I=location.href,a=I.lastIndexOf("/"),
-1<a&&(I=I.substr(0,a+1)),I=I.replace("file://",""));if(this.b.yr&&this.b.Jn&&"undefined"===typeof Audio)alert("It looks like you're using Safari for Windows without Quicktime.  Audio cannot be played until Quicktime is installed."),this.b.oe(this);else{if(this.b.xc)db=this.b.uk;else try{db=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(c){db=r}this.b.ej(this)}};var Aa=H.ea.prototype;Aa.W=function(){eb=this.p[0];ob=this.p[1];pb=this.p[2];this.Mg=-this.p[3];Nb=this.p[4];Ob=this.p[5];
Pb=this.p[6];this.xb=new u;P===C&&(E.listener.speedOfSound=this.p[7],E.listener.dopplerFactor=this.p[8],E.listener.setPosition(this.b.width/2,this.b.height/2,this.Mg),E.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Ea&&Ea.disconnect();mb=b.toLowerCase();Ea=E.createMediaStreamSource(a);Ea.connect(k(mb))});this.b.xm(function(a){y.Tr(a)});var a=this;this.b.Cj(function(b){a.Vk(b)})};Aa.Vk=function(a){var b,c,d;b=0;for(c=R.length;b<c;b++)d=R[b],d.Ua&&d.Ua.S===a&&(d.Ua.S=
q,d.$c&&(d.rf()&&d.yd)&&d.stop());this.xb.S===a&&(this.xb.S=q)};Aa.jb=function(){var a={silent:Ma,masterVolume:za,listenerZ:this.Mg,listenerUid:this.xb.$h()?this.xb.S.uid:-1,playing:[],effects:{}},b=a.playing,c,d,e,f,l,s;c=0;for(d=R.length;c<d;c++)e=R[c],e.rf()&&(f=e.ik(),e.yd&&(f%=e.nf()),f={tag:e.ke,buffersrc:e.buffer.src,is_music:e.Fg,playbackTime:f,volume:e.volume,looping:e.yd,muted:e.Ak,playbackRate:e.playbackRate,paused:e.Ud,resume_position:e.Nc},e.$c&&(f.pan={},s=f.pan,e.Ua&&e.Ua.$h()?s.objUid=
e.Ua.S.uid:(s.x=e.ro,s.y=e.so,s.a=e.no),s.ia=e.oo,s.oa=e.po,s.og=e.qo),b.push(f));b=a.effects;for(l in V)if(V.hasOwnProperty(l)){e=[];c=0;for(d=V[l].length;c<d;c++)e.push({type:V[l][c].type,params:V[l][c].Jc});b[l]=e}return a};var Ua=[];Aa.yb=function(b){var c=b.silent;za=b.masterVolume;this.Mg=b.listenerZ;this.xb.fh(q);var d=b.listenerUid;-1!==d&&(this.xb.ti=d,Ua.push(this.xb));var d=b.playing,e,h,k,t,D,w,pa,C,y,A,E;e=0;for(h=R.length;e<h;e++)R[e].stop();for(D in V)if(V.hasOwnProperty(D)){e=0;for(h=
V[D].length;e<h;e++)V[D][e].remove()}Ga(V);for(D in b.effects)if(b.effects.hasOwnProperty(D)){w=b.effects[D];e=0;for(h=w.length;e<h;e++)switch(k=w[e].type,A=w[e].params,k){case "filter":T(D,new a(A[0],A[1],A[2],A[3],A[4],A[5]));break;case "delay":T(D,new p(A[0],A[1],A[2]));break;case "convolve":k=A[2];t=this.bk(k,r);t.Fa?k=new m(t.Fa,A[0],A[1],k):(k=new m(q,A[0],A[1],k),t.fo=A[0],t.Ch=k);T(D,k);break;case "flanger":T(D,new f(A[0],A[1],A[2],A[3],A[4]));break;case "phaser":T(D,new B(A[0],A[1],A[2],
A[3],A[4],A[5]));break;case "gain":T(D,new n(A[0]));break;case "tremolo":T(D,new x(A[0],A[1]));break;case "ringmod":T(D,new v(A[0],A[1]));break;case "distortion":T(D,new s(A[0],A[1],A[2],A[3],A[4]));break;case "compressor":T(D,new l(A[0],A[1],A[2],A[3],A[4]));break;case "analyser":T(D,new z(A[0],A[1]))}}e=0;for(h=d.length;e<h;e++)b=d[e],k=b.buffersrc,t=b.is_music,D=b.tag,w=b.playbackTime,pa=b.looping,C=b.volume,E=(A=b.pan)&&A.hasOwnProperty("objUid")?A.objUid:-1,(y=this.pn(k,D,t,pa,C))?(y.Nc=b.resume_position,
y.yl(!!A),y.play(pa,C,w),y.Zo(),y.Ks(),y.an(y.Ak||y.Bk),b.paused&&y.pause(),b.muted&&y.mu(),A&&(-1!==E?(y.Ua=y.Ua||new u,y.Ua.ti=E,Ua.push(y.Ua)):y.xl(A.x,A.y,A.a,A.ia,A.oa,A.og))):(t=this.bk(k,t),t.Si=w,t.Ci=b.paused,A&&(-1!==E?t.Lf.push({io:E,mk:A.ia,Rk:A.oa,Uk:A.og,Qo:D}):t.Lf.push({x:A.x,y:A.y,ka:A.a,mk:A.ia,Rk:A.oa,Uk:A.og,Qo:D})));if(c&&!Ma){e=0;for(h=R.length;e<h;e++)R[e].Go(g);Ma=g}else if(!c&&Ma){e=0;for(h=R.length;e<h;e++)R[e].Go(r);Ma=r}};Aa.pe=function(){var a,b,c,d;a=0;for(b=Ua.length;a<
b;a++)c=Ua[a],d=this.b.qg(c.ti),c.fh(d),c.ti=-1,d&&(Ia=d.x,Ja=d.y);Ua.length=0};Aa.Tr=function(a){var b,c;b=0;for(c=R.length;b<c;b++)R[b].As(a)};Aa.Oa=function(){var a=this.b.ye,b,c,d;b=0;for(c=R.length;b<c;b++)d=R[b],d.Oa(a),d.wa!==Q&&d.wa!==Y&&(!d.Sd&&!d.Pc&&d.vg())&&(d.Pc=g,N=d.ke,w.trigger($b.prototype.k.wj,y)),0!==eb&&d.Zo();var e,f;for(e in V)if(V.hasOwnProperty(e)){d=V[e];b=0;for(c=d.length;b<c;b++)f=d[b],f.Oa&&f.Oa()}P===C&&this.xb.$h()&&(this.xb.Oa(a),Ia=this.xb.S.x,Ja=this.xb.S.y,E.listener.setPosition(this.xb.S.x,
this.xb.S.y,this.Mg),E.listener.setVelocity(this.xb.vn(),this.xb.wn(),0))};Aa.bk=function(a,b){var c,d,e;c=0;for(d=nb.length;c<d;c++)if(e=nb[c],e.src===a)return e;e=new pa(a,b);nb.push(e);return e};Aa.pn=function(a,b,c,d,e){var f,l,s;f=0;for(l=R.length;f<l;f++)if(s=R[f],s.src===a&&(s.Tp()||c))return s.ke=b,s;a=this.bk(a,c);if(!a.Fa)return"<preload>"!==b&&(a.Di=b,a.Nk=d,a.Wl=e),q;s=new D(a,b);R.push(s);return s};var Ka=[];L.prototype.wj=function(a){return N.toLowerCase()===a.toLowerCase()};H.k=new L;
G.prototype.Play=function(a,b,c,d){if(!Ma&&(c=Math.pow(10,c/20),0>c&&(c=0),1<c&&(c=1),La=this.pn(this.b.jn+a[0]+(db?".ogg":".m4a"),d,a[1],0!==b,c)))La.yl(r),La.play(0!==b,c)};G.prototype.Cp=function(){var a,b;a=0;for(b=R.length;a<b;a++)R[a].stop()};H.u=new G;H.ga=new (F())})();function ac(e){this.b=e}
(function(){function e(){}var k=ac.prototype;k.qa=function(d){this.Ba=d;this.b=d.b};k.qa.prototype.W=F();k.ea=function(d){this.type=d;this.b=d.b};k.ea.prototype.W=function(){var d=this;window.addEventListener("resize",function(){d.b.trigger(ac.prototype.k.xp,d)});"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){d.b.trigger(ac.prototype.k.tp,d)}),window.addEventListener("offline",function(){d.b.trigger(ac.prototype.k.sp,d)}));"undefined"!==typeof window.applicationCache&&
(window.applicationCache.addEventListener("updateready",function(){d.b.yf=1;d.b.trigger(ac.prototype.k.pm,d)}),window.applicationCache.addEventListener("progress",function(e){d.b.yf=e.loaded/e.total}));this.b.xc||(document.addEventListener("appMobi.device.update.available",function(){d.b.trigger(ac.prototype.k.pm,d)}),document.addEventListener("menubutton",function(){d.b.trigger(ac.prototype.k.rp,d)}),document.addEventListener("searchbutton",function(){d.b.trigger(ac.prototype.k.yp,d)}));this.b.xm(function(e){e?
d.b.trigger(ac.prototype.k.up,d):d.b.trigger(ac.prototype.k.vp,d)});this.gu="undefined"!==typeof window.is_scirra_arcade;this.au=""};e.prototype.tp=K(g);e.prototype.sp=K(g);e.prototype.pm=K(g);e.prototype.vp=K(g);e.prototype.up=K(g);e.prototype.xp=K(g);e.prototype.rp=K(g);e.prototype.yp=K(g);k.k=new e;k.u=new (F());k.ga=new (F())})();function W(e){this.b=e}
(function(){function e(){if(0===this.Qj.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Qf?b.drawImage(this.$,this.Jf,this.Kf,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.$,0,0,this.width,this.height);this.Qj=a.toDataURL("image/png")}return this.Qj}function k(){}function d(a,b,c){var d=f.length?f.pop():[0,0];d[0]=b.uid;d[1]=c.uid;a.push(d)}function t(a,b,c){b=b.uid;var d=c.uid,e=0,p,h;c=0;for(p=a.length;c<
p;c++)h=a[c],h[0]===b&&h[1]===d||h[0]===d&&h[1]===b||(a[e][0]=a[c][0],a[e][1]=a[c][1],e++);for(c=e;c<p;c++)b=a[c],b[0]=0,b[1]=0,f.push(b);a.length=e}function b(a,b,c){b=b.uid;c=c.uid;var d,e,f;d=0;for(e=a.length;d<e;d++)if(f=a[d],f[0]===b&&f[1]===c||f[0]===c&&f[1]===b)return g;return r}function h(){}var c=W.prototype;c.qa=function(a){this.Ba=a;this.b=a.b};var a=c.qa.prototype;a.W=function(){if(!this.J){var a,b,c,d,f,p,h,m,n;this.Dc=[];this.ai=r;a=0;for(b=this.Qb.length;a<b;a++){f=this.Qb[a];h={};
h.name=f[0];h.speed=f[1];h.loop=f[2];h.nl=f[3];h.Pi=f[4];h.to=f[5];h.V=f[6];h.frames=[];c=0;for(d=f[7].length;c<d;c++)p=f[7][c],m={},m.Kl=p[0],m.Ll=p[1],m.Jf=p[2],m.Kf=p[3],m.width=p[4],m.height=p[5],m.duration=p[6],m.Jb=p[7],m.Kb=p[8],m.ok=p[9],m.Ei=p[10],m.uo=p[11],m.Qf=0!==m.width,m.Qj="",m.du=e,n={left:0,top:0,right:1,bottom:1},m.Dl=n,m.ya=q,(n=this.b.Lq(p[0]))?m.$=n:(m.$=new Image,m.$.src=p[0],m.$.Wp=p[0],m.$.Sm=p[1],m.$.Sp=q,this.b.Gd.push(m.$)),h.frames.push(m),this.Dc.push(m);this.Qb[a]=h}}};
a.Js=function(){var a,b,c;a=0;for(b=this.d.length;a<b;a++)c=this.d[a],c.Dh=c.pc.ya};a.Bi=function(){if(!this.J){var a,b,c;a=0;for(b=this.Dc.length;a<b;++a)c=this.Dc[a],c.$.Sp=q,c.ya=q}};a.Wk=function(){if(!this.J&&this.d.length){var a,b,c;a=0;for(b=this.Dc.length;a<b;++a)c=this.Dc[a],c.ya=this.b.B.si(c.$,r,this.b.Ja,c.uo);this.Js()}};a.Hk=function(){if(!this.J&&!this.ai&&this.b.B){var a,b,c;a=0;for(b=this.Dc.length;a<b;++a)c=this.Dc[a],c.ya=this.b.B.si(c.$,r,this.b.Ja,c.uo);this.ai=g}};a.Sl=function(){if(!this.J&&
!this.d.length&&this.ai){var a,b,c;a=0;for(b=this.Dc.length;a<b;++a)c=this.Dc[a],this.b.B.deleteTexture(c.ya);this.ai=r}};var p=[];a.dl=function(a){var b,c,d;b=p.length=0;for(c=this.Dc.length;b<c;++b)d=this.Dc[b].$,-1===p.indexOf(d)&&(a.drawImage(d,0,0),p.push(d))};c.ea=function(a){this.type=a;this.b=a.b;a=this.type.Qb[0].frames[0].Ei;this.jc?this.fa.hh(a):this.fa=new Qa(a)};var m=c.ea.prototype;m.W=function(){this.visible=0===this.p[0];this.pk=this.yk=r;this.od=0!==this.p[3];!(1===this.type.Qb.length&&
1===this.type.Qb[0].frames.length)&&0!==this.type.Qb[0].speed&&(this.b.ej(this),this.yk=g);this.Ha=this.on(this.p[1])||this.type.Qb[0];this.C=this.p[2];0>this.C&&(this.C=0);this.C>=this.Ha.frames.length&&(this.C=this.Ha.frames.length-1);var a=this.Ha.frames[this.C];this.fa.hh(a.Ei);this.Jb=a.Jb;this.Kb=a.Kb;this.eg=this.Ha.speed;this.td=this.Wh();this.te=g;this.md=0;this.qe=g;this.Bh=this.Bm="";this.Nm=0;this.Jj=-1;this.type.Hk();var b,c,d,e,f,p,h,a=0;for(b=this.type.Qb.length;a<b;a++){e=this.type.Qb[a];
c=0;for(d=e.frames.length;c<d;c++)f=e.frames[c],0===f.width&&(f.width=f.$.width,f.height=f.$.height),f.Qf&&(h=f.$,p=f.Dl,p.left=f.Jf/h.width,p.top=f.Kf/h.height,p.right=(f.Jf+f.width)/h.width,p.bottom=(f.Kf+f.height)/h.height,0===f.Jf&&(0===f.Kf&&f.width===h.width&&f.height===h.height)&&(f.Qf=r))}this.pc=this.Ha.frames[this.C];this.Dh=this.pc.ya};m.jb=function(){var a={a:this.Ha.V,f:this.C,cas:this.eg,fs:this.td,ar:this.md};this.te||(a.ap=this.te);this.qe||(a.af=this.qe);return a};m.yb=function(a){var b=
this.Qq(a.a);b&&(this.Ha=b);this.C=a.f;0>this.C&&(this.C=0);this.C>=this.Ha.frames.length&&(this.C=this.Ha.frames.length-1);this.eg=a.cas;this.td=a.fs;this.md=a.ar;this.te=a.hasOwnProperty("ap")?a.ap:g;this.qe=a.hasOwnProperty("af")?a.af:g;this.pc=this.Ha.frames[this.C];this.Dh=this.pc.ya;this.fa.hh(this.pc.Ei);this.Jb=this.pc.Jb;this.Kb=this.pc.Kb};m.Dj=function(a){this.C=a?0:this.Ha.frames.length-1;this.te=r;this.Bm=this.Ha.name;this.pk=g;this.b.trigger(W.prototype.k.mp,this);this.b.trigger(W.prototype.k.lp,
this);this.pk=r;this.md=0};m.Wh=function(){return(Date.now()-this.b.kh)/1E3};m.Oa=function(){this.Bh.length&&this.Ym();0<=this.Jj&&this.$p();var a=this.Wh(),b=this.Ha,c=b.frames[this.C],d=c.duration/this.eg,e=this.b.le;-1!==this.Le&&(e=this.Le);d/=0===e?1E-9:e;if(this.te&&a>=this.td+d){this.qe?this.C++:this.C--;this.td+=d;this.C>=b.frames.length&&(b.to?(this.qe=r,this.C=b.frames.length-2):b.loop?this.C=b.Pi:(this.md++,this.md>=b.nl?this.Dj(r):this.C=b.Pi));0>this.C&&(b.to?(this.C=1,this.qe=g,b.loop||
(this.md++,this.md>=b.nl&&this.Dj(g))):b.loop?this.C=b.Pi:(this.md++,this.md>=b.nl?this.Dj(g):this.C=b.Pi));0>this.C?this.C=0:this.C>=b.frames.length&&(this.C=b.frames.length-1);if(a>this.td+b.frames[this.C].duration/this.eg/(0===e?1E-9:e))this.td=a;a=b.frames[this.C];this.Yf(c,a);this.b.ma=g}};m.on=function(a){var b,c,d=a.toLowerCase();a=0;for(b=this.type.Qb.length;a<b;a++)if(c=this.type.Qb[a],c.name.toLowerCase()===d)return c;return q};m.Qq=function(a){var b,c,d;b=0;for(c=this.type.Qb.length;b<
c;b++)if(d=this.type.Qb[b],d.V===a)return d;return q};m.Ym=function(){var a=this.Ha.frames[this.C],b=this.on(this.Bh);this.Bh="";b&&!(b.name.toLowerCase()===this.Ha.name.toLowerCase()&&this.te)&&(this.Ha=b,this.eg=b.speed,0>this.C&&(this.C=0),this.C>=this.Ha.frames.length&&(this.C=this.Ha.frames.length-1),1===this.Nm&&(this.C=0),this.te=g,this.td=this.Wh(),this.qe=g,this.Yf(a,this.Ha.frames[this.C]),this.b.ma=g)};m.$p=function(){var a=this.Ha.frames[this.C],b=this.C;this.C=ia(this.Jj);0>this.C&&(this.C=
0);this.C>=this.Ha.frames.length&&(this.C=this.Ha.frames.length-1);b!==this.C&&(this.Yf(a,this.Ha.frames[this.C]),this.td=this.Wh(),this.b.ma=g);this.Jj=-1};m.Yf=function(a,b){var c=a.width,d=a.height,e=b.width,f=b.height;c!=e&&(this.width*=e/c);d!=f&&(this.height*=f/d);this.Jb=b.Jb;this.Kb=b.Kb;this.fa.hh(b.Ei);this.L();this.pc=b;this.Dh=b.ya;c=0;for(d=this.X.length;c<d;c++)e=this.X[c],e.Sr&&e.Sr(a,b);this.b.trigger(W.prototype.k.Yf,this)};m.Tc=function(a){a.globalAlpha=this.opacity;var b=this.pc,
c=b.Qf,d=b.$,e=this.x,f=this.y,p=this.width,h=this.height;if(0===this.j&&0<=p&&0<=h)e-=this.Jb*p,f-=this.Kb*h,this.b.cd&&(e=e+0.5|0,f=f+0.5|0),c?a.drawImage(d,b.Jf,b.Kf,b.width,b.height,e,f,p,h):a.drawImage(d,e,f,p,h);else{this.b.cd&&(e=e+0.5|0,f=f+0.5|0);a.save();var m=0<p?1:-1,n=0<h?1:-1;a.translate(e,f);(1!==m||1!==n)&&a.scale(m,n);a.rotate(this.j*m*n);e=0-this.Jb*ea(p);f=0-this.Kb*ea(h);c?a.drawImage(d,b.Jf,b.Kf,b.width,b.height,e,f,ea(p),ea(h)):a.drawImage(d,e,f,ea(p),ea(h));a.restore()}};m.uc=
function(a){a.kc(this.Dh);a.Te(this.opacity);var b=this.pc,c=this.fb;if(this.b.cd){var d=(this.x+0.5|0)-this.x,e=(this.y+0.5|0)-this.y;b.Qf?a.dd(c.Da+d,c.Ea+e,c.lb+d,c.mb+e,c.gb+d,c.hb+e,c.bb+d,c.eb+e,b.Dl):a.Mi(c.Da+d,c.Ea+e,c.lb+d,c.mb+e,c.gb+d,c.hb+e,c.bb+d,c.eb+e)}else b.Qf?a.dd(c.Da,c.Ea,c.lb,c.mb,c.gb,c.hb,c.bb,c.eb,b.Dl):a.Mi(c.Da,c.Ea,c.lb,c.mb,c.gb,c.hb,c.bb,c.eb)};m.Uq=function(a){var b=this.pc,c,d;c=0;for(d=b.ok.length;c<d;c++)if(a.toLowerCase()===b.ok[c][0].toLowerCase())return c;return-1};
m.gk=function(a,b){var c=this.pc,d=c.ok,e;e=M(a)?this.Uq(a):a-1;e=ia(e);if(0>e||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.Jb)*this.width,d=d[e][2],d=(d-c.Kb)*this.height,c=Math.cos(this.j);e=Math.sin(this.j);var p=f*c-d*e,d=d*c+f*e,f=p+this.x,d=d+this.y;return b?f:d};var f=[];k.prototype.uj=function(a){if(!a)return r;var c=this.b,e=c.dk(),p=e.type;e.T.cg||(e.T.cg=[],c.Cj(function(a){return function(b){var c=0,d,e,p=b.uid;b=0;for(d=a.length;b<d;b++)e=a[b],e[0]!==p&&e[1]!==p&&(a[c][0]=a[b][0],
a[c][1]=a[b][1],c++);for(b=c;b<d;b++)e=a[b],e[0]=0,e[1]=0,f.push(e);a.length=c}}(e.T.cg)));var h=p.ca(),m=a.ca(),h=h.cc(),m=m.cc(),n,k,B,L,G,H,w=c.Ib().qc;for(n=0;n<h.length;n++){k=h[n];for(B=0;B<m.length;B++)L=m[B],c.Xe(k,L)||c.Up(k,L)?b(e.T.cg,k,L)||(d(e.T.cg,k,L),c.Ji(w.Ca),G=p.ca(),H=a.ca(),G.na=r,H.na=r,p===a?(G.d.length=2,G.d[0]=k,G.d[1]=L,p.Jd()):(G.d.length=1,H.d.length=1,G.d[0]=k,H.d[0]=L,p.Jd(),a.Jd()),w.ns(),c.Qe(w.Ca)):t(e.T.cg,k,L)}return r};var B=new Na,n=r;a.finish=function(a){if(n){if(a){var b=
this.b.Ib().qc.Ic;a=q.ca();var c=B.bf(),d,e;if(a.na){a.na=r;a.d.length=c.length;d=0;for(e=c.length;d<e;d++)a.d[d]=c[d];if(b){d=a.ta.length=0;for(e=q.d.length;d<e;d++)b=q.d[d],B.contains(b)||a.ta.push(b)}}else{var f=a.d.length;a.d.length=f+c.length;d=0;for(e=c.length;d<e;d++)a.d[f+d]=c[d],b&&qa(a.ta,c[d])}q.Jd()}B.clear();n=r}};k.prototype.lp=function(a){return this.Bm.toLowerCase()===a.toLowerCase()};k.prototype.mp=K(g);k.prototype.Yf=K(g);c.k=new k;h.prototype.uh=function(a,b){this.Bh=a;this.Nm=
b;this.yk||(this.b.ej(this),this.yk=g);this.pk||this.Ym()};c.u=new h;c.ga=new (F())})();function bc(e){this.b=e}
(function(){function e(){return c.length?c.pop():{}}function k(a){var b,d;b=0;for(d=a.length;b<d;b++)c.push(a[b]);a.length=0}function d(){}var t=bc.prototype;t.W=function(){t.u.Ap=function(a){this.width!==a&&(this.width=a,this.Ze=g,this.L())}};t.qa=function(a){this.Ba=a;this.b=a.b};var b=t.qa.prototype;b.W=F();b.Bi=function(){if(!this.J){var a,b,c;a=0;for(b=this.d.length;a<b;a++)c=this.d[a],c.Zc=q,c.Me=q,c.Ub=q}};t.ea=function(a){this.type=a;this.b=a.b;this.jc?this.Wd.length=0:this.Wd=[];this.Ze=
g};b=t.ea.prototype;b.W=function(){this.text=this.p[0];this.visible=0===this.p[1];this.font=this.p[2];this.color=this.p[3];this.Zh=this.p[4];this.lj=this.p[5];this.Yl=0===this.p[7];this.Ck=this.Je=this.width;this.Ie=this.height;this.Ek=this.p[8];this.Rh=this.lf="";var a=this.font.split(" ");this.Oo=this.Po=this.ah=0;var b;for(b=0;b<a.length;b++)if("pt"===a[b].substr(a[b].length-2,2)){this.ah=parseInt(a[b].substr(0,a[b].length-2));this.gl=Math.ceil(96*(this.ah/72))+4;0<b&&(this.Rh=a[b-1]);this.lf=
a[b+1];for(b+=2;b<a.length;b++)this.lf+=" "+a[b];break}this.Ub=this.Me=this.Zc=q;this.co=r;this.Lg=this.b.Dd;this.jc?this.$d.set(0,0,1,1):this.$d=new ka(0,0,1,1);this.b.B&&this.b.ej(this)};b.jb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.Zh,va:this.lj,wr:this.Yl,lho:this.Ek,fn:this.lf,fs:this.Rh,ps:this.ah,pxh:this.gl,tw:this.Po,th:this.Oo,lrt:this.Lg}};b.yb=function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.Zh=a.ha;this.lj=a.va;this.Yl=a.wr;this.Ek=a.lho;this.lf=a.fn;
this.Rh=a.fs;this.ah=a.ps;this.gl=a.pxh;this.Po=a.tw;this.Oo=a.th;this.Lg=a.lrt;this.Ze=g;this.Ck=this.Je=this.width;this.Ie=this.height};b.Oa=function(){if(this.b.B&&this.Ub&&300<=this.b.Dd-this.Lg){var a=this.n;this.La();var b=this.I;if(b.right<a.Ob||b.bottom<a.Pb||b.left>a.Eb||b.top>a.Db)this.b.B.deleteTexture(this.Ub),this.Zc=this.Me=this.Ub=q}};b.Pe=function(){this.Zc=this.Me=q;this.b.B&&this.Ub&&this.b.B.deleteTexture(this.Ub);this.Ub=q};b.ru=function(){this.font=this.Rh+" "+this.ah.toString()+
"pt "+this.lf;this.Ze=g;this.b.ma=g};b.Tc=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var c=1;b&&(c=this.n.Rb(),a.save(),a.scale(c,c));if(this.Ze||this.width!==this.Ck)this.type.Ba.Ep(this.text,this.Wd,a,this.width,this.Yl),this.Ze=r,this.Ck=this.width;this.La();var c=b?0:this.fb.Da,d=b?0:this.fb.Ea;this.b.cd&&(c=c+0.5|0,d=d+0.5|0);0!==this.j&&!b&&(a.save(),a.translate(c,d),a.rotate(this.j),d=c=0);var e=d+this.height,h=this.gl,h=h+this.Ek*
this.b.devicePixelRatio,k,t;1===this.lj?d+=Math.max(this.height/2-this.Wd.length*h/2,0):2===this.lj&&(d+=Math.max(this.height-this.Wd.length*h-2,0));for(t=0;t<this.Wd.length&&!(k=c,1===this.Zh?k=c+(this.width-this.Wd[t].width)/2:2===this.Zh&&(k=c+(this.width-this.Wd[t].width)),a.fillText(this.Wd[t].text,k,d),d+=h,d>=e-h);t++);(0!==this.j||b)&&a.restore();this.Lg=this.b.Dd};b.uc=function(a){if(!(1>this.width||1>this.height)){var b=this.Ze||this.co;this.co=r;var c=this.n.Rb(),d=this.n.Hb(),e=this.$d,
h=c*this.width,k=c*this.height,t=Math.ceil(h),s=Math.ceil(k),l=this.b.width/2,z=this.b.height/2;this.Me||(this.Zc=document.createElement("canvas"),this.Zc.width=t,this.Zc.height=s,this.Je=t,this.Ie=s,b=g,this.Me=this.Zc.getContext("2d"));if(t!==this.Je||s!==this.Ie)this.Zc.width=t,this.Zc.height=s,this.Ub&&(a.deleteTexture(this.Ub),this.Ub=q),b=g;b&&(this.Me.clearRect(0,0,t,s),this.Tc(this.Me,g),this.Ub||(this.Ub=a.pd(t,s,this.b.Ja,this.b.Td)),a.Qs(this.Zc,this.Ub,this.b.Td));this.Je=t;this.Ie=s;
a.kc(this.Ub);a.Te(this.opacity);a.ed();a.translate(-l,-z);a.jd();var u=this.fb,b=this.n.Aa(u.Da,u.Ea,g),l=this.n.Aa(u.Da,u.Ea,r),z=this.n.Aa(u.lb,u.mb,g),pa=this.n.Aa(u.lb,u.mb,r),D=this.n.Aa(u.gb,u.hb,g),T=this.n.Aa(u.gb,u.hb,r),L=this.n.Aa(u.bb,u.eb,g),u=this.n.Aa(u.bb,u.eb,r);if(this.b.cd||0===this.j&&0===d)var G=(b+0.5|0)-b,H=(l+0.5|0)-l,b=b+G,l=l+H,z=z+G,pa=pa+H,D=D+G,T=T+H,L=L+G,u=u+H;0===this.j&&0===d?(z=b+t,pa=l,D=z,T=l+s,L=b,u=T,e.right=1,e.bottom=1):(e.right=h/t,e.bottom=k/s);a.dd(b,l,
z,pa,D,T,L,u,e);a.ed();a.scale(c,c);a.ql(-this.n.Hb());a.translate((this.n.Ob+this.n.Eb)/-2,(this.n.Pb+this.n.Db)/-2);a.jd();this.Lg=this.b.Dd}};var h=[];t.Dp=function(a){h.length=0;for(var b="",c,d=0;d<a.length;)if(c=a.charAt(d),"\n"===c)b.length&&(h.push(b),b=""),h.push("\n"),++d;else if(" "===c||"\t"===c||"-"===c){do b+=a.charAt(d),d++;while(d<a.length&&(" "===a.charAt(d)||"\t"===a.charAt(d)));h.push(b);b=""}else d<a.length&&(b+=c,d++);b.length&&h.push(b)};var c=[];t.Ep=function(a,b,c,d,h){if(!a||
!a.length)k(b);else if(2>=d)k(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var n=c.measureText(a).width;if(n<=d){k(b);b.push(e());b[0].text=a;b[0].width=n;return}}this.Fp(a,b,c,d,h)}};t.Fp=function(a,b,d,f,k){k&&(this.Dp(a),a=h);var n="",t,v,s,l=0;for(s=0;s<a.length;s++)"\n"===a[s]?(l>=b.length&&b.push(e()),v=b[l],v.text=n,v.width=d.measureText(n).width,l++,n=""):(t=n,n+=a[s],v=d.measureText(n).width,v>=f&&(l>=b.length&&b.push(e()),v=b[l],v.text=t,v.width=d.measureText(t).width,l++,n=a[s],!k&&
" "===n&&(n="")));n.length&&(l>=b.length&&b.push(e()),v=b[l],v.text=n,v.width=d.measureText(n).width,l++);for(s=l;s<b.length;s++)c.push(b[s]);b.length=l};t.k=new (F());d.prototype.zp=function(a){ca(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Ze=g,this.b.ma=g)};t.u=new d;t.ga=new (F())})();function cc(e){this.b=e}
(function(){var e=cc.prototype;e.qa=function(d){this.Ba=d;this.b=d.b};var k=e.qa.prototype;k.W=function(){this.J||(this.$=new Image,this.$.src=this.Kl,this.$.Sm=this.Ll,this.b.Gd.push(this.$),this.ya=this.pattern=q)};k.Bi=function(){this.J||(this.ya=q)};k.Wk=function(){if(!this.J&&this.d.length){this.ya||(this.ya=this.b.B.si(this.$,g,this.b.Ja,this.Ml));var d,e;d=0;for(e=this.d.length;d<e;d++)this.d[d].ya=this.ya}};k.Hk=function(){!this.J&&(!this.ya&&this.b.B)&&(this.ya=this.b.B.si(this.$,g,this.b.Ja,
this.Ml))};k.Sl=function(){!this.J&&(!this.d.length&&this.ya)&&(this.b.B.deleteTexture(this.ya),this.ya=q)};k.dl=function(d){d.drawImage(this.$,0,0)};e.ea=function(d){this.type=d;this.b=d.b};k=e.ea.prototype;k.W=function(){this.visible=0===this.p[0];this.$d=new ka(0,0,0,0);this.zn=r;this.$=this.type.$;this.b.B?(this.type.Hk(),this.ya=this.type.ya):(this.type.pattern||(this.type.pattern=this.b.ja.createPattern(this.type.$,"repeat")),this.pattern=this.type.pattern)};k.pe=function(){this.zn=r;this.$=
this.type.$};k.Pe=function(){this.b.B&&(this.zn&&this.ya)&&(this.b.B.deleteTexture(this.ya),this.ya=q)};k.Tc=function(d){d.globalAlpha=this.opacity;d.save();d.fillStyle=this.pattern;var e=this.x,b=this.y;this.b.cd&&(e=e+0.5|0,b=b+0.5|0);var h=-(this.Jb*this.width),c=-(this.Kb*this.height),a=h%this.$.width,p=c%this.$.height;0>a&&(a+=this.$.width);0>p&&(p+=this.$.height);d.translate(e,b);d.rotate(this.j);d.translate(a,p);d.fillRect(h-a,c-p,this.width,this.height);d.restore()};k.uc=function(d){d.kc(this.ya);
d.Te(this.opacity);var e=this.$d;e.right=this.width/this.$.width;e.bottom=this.height/this.$.height;var b=this.fb;if(this.b.cd){var h=(this.x+0.5|0)-this.x,c=(this.y+0.5|0)-this.y;d.dd(b.Da+h,b.Ea+c,b.lb+h,b.mb+c,b.gb+h,b.hb+c,b.bb+h,b.eb+c,e)}else d.dd(b.Da,b.Ea,b.lb,b.mb,b.gb,b.hb,b.bb,b.eb,e)};e.k=new (F());e.u=new (F());e.ga=new (F())})();function Z(e){this.b=e}
(function(){function e(b){a=b.x;p=b.y;m=b.cp}function k(a){f=a.x;B=a.y;n=a.cp}function d(){}function t(){}var b=Z.prototype;b.qa=function(a){this.Ba=a;this.b=a.b};b.qa.prototype.W=F();b.ea=function(a){this.type=a;this.b=a.b;this.touches=[];this.Pk=r};var h=b.ea.prototype,c={left:0,top:0};h.jg=function(a){var b,c;b=0;for(c=this.touches.length;b<c;b++)if(this.touches[b].id===a)return b;return-1};var a=0,p=0,m=0,f=0,B=0,n=0;h.W=function(){this.Ar=!!("undefined"!==typeof window.c2isWindows8&&window.c2isWindows8);
this.hj=this.ne=this.Oj=this.Nj=this.vm=this.um=this.rm=this.Ip=this.Hp=this.Gp=this.Xg=this.Wg=this.Vg=0;this.Ms=0!==this.p[0];var a=0<this.b.vc?document:this.b.canvas,b=document;this.b.xc?b=a=window.Canvas:this.b.Xc&&(b=a=window);var c=this;window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){c.Rr(a)},r),a.addEventListener("MSPointerMove",function(a){c.Qr(a)},r),b.addEventListener("MSPointerUp",function(a){c.jo(a)},r),b.addEventListener("MSPointerCancel",function(a){c.jo(a)},
r),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},r),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},r))):(a.addEventListener("touchstart",function(a){c.lo(a)},r),a.addEventListener("touchmove",function(a){c.ko(a)},r),b.addEventListener("touchend",function(a){c.Xk(a)},r),b.addEventListener("touchcancel",function(a){c.Xk(a)},r));if(this.Ar){var d=function(a){a=a.reading;c.rm=a.accelerationX;c.um=a.accelerationY;c.vm=a.accelerationZ},
f=function(a){a=a.reading;c.Vg=a.yawDegrees;c.Wg=a.pitchDegrees;c.Xg=a.rollDegrees},h=Windows.Devices.Sensors.Accelerometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",d));var p=Windows.Devices.Sensors.Inclinometer.getDefault();p&&(p.reportInterval=Math.max(p.minimumReportInterval,16),p.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(h&&h.removeEventListener("readingchanged",
d),p&&p.removeEventListener("readingchanged",f)):(h&&h.addEventListener("readingchanged",d),p&&p.addEventListener("readingchanged",f))},r)}else window.addEventListener("deviceorientation",function(a){c.Vg=a.alpha||0;c.Wg=a.beta||0;c.Xg=a.gamma||0},r),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Gp=a.accelerationIncludingGravity.x,c.Hp=a.accelerationIncludingGravity.y,c.Ip=a.accelerationIncludingGravity.z);a.acceleration&&(c.rm=a.acceleration.x,c.um=a.acceleration.y,
c.vm=a.acceleration.z)},r);this.Ms&&!this.b.Lb&&(jQuery(document).mousemove(function(a){c.Or(a)}),jQuery(document).mousedown(function(a){c.Nr(a)}),jQuery(document).mouseup(function(a){c.Pr(a)}));this.b.qf&&!this.b.xc&&AppMobi.accelerometer.watchAcceleration(e,{frequency:40,adjustForRotation:g});this.b.Ge&&navigator.accelerometer.watchAcceleration(k,q,{frequency:40});this.b.Is(this)};h.Qr=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE){a.preventDefault&&a.preventDefault();var b=this.jg(a.pointerId),
d=Ha();if(0<=b){var e=this.b.Lb?c:jQuery(this.b.canvas).offset(),b=this.touches[b];2>d-b.time||(b.oi=b.time,b.gc=b.x,b.hc=b.y,b.time=d,b.x=a.pageX-e.left,b.y=a.pageY-e.top)}}};h.Rr=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE){a.preventDefault&&a.preventDefault();var b=this.b.Lb?c:jQuery(this.b.canvas).offset(),d=a.pageX-b.left,b=a.pageY-b.top,e=Ha();this.ne=this.touches.length;this.hj=a.pointerId;this.touches.push({time:e,x:d,y:b,oi:e,gc:d,hc:b,id:a.pointerId,Gl:this.ne});this.b.trigger(Z.prototype.k.km,
this);this.b.trigger(Z.prototype.k.om,this);this.Nj=d;this.Oj=b;this.b.trigger(Z.prototype.k.Hd,this)}};h.jo=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&(a.preventDefault&&a.preventDefault(),a=this.jg(a.pointerId),this.ne=0<=a?this.touches[a].Gl:-1,this.hj=0<=a?this.touches[a].id:-1,this.b.trigger(Z.prototype.k.jm,this),this.b.trigger(Z.prototype.k.nm,this),0<=a&&this.touches.splice(a,1))};h.ko=function(a){a.preventDefault&&a.preventDefault();var b=Ha(),d,e,f,h;d=0;for(e=a.changedTouches.length;d<
e;d++)if(f=a.changedTouches[d],h=this.jg(f.identifier),0<=h){var p=this.b.Lb?c:jQuery(this.b.canvas).offset();h=this.touches[h];2>b-h.time||(h.oi=h.time,h.gc=h.x,h.hc=h.y,h.time=b,h.x=f.pageX-p.left,h.y=f.pageY-p.top)}};h.lo=function(a){a.preventDefault&&a.preventDefault();var b=this.b.Lb?c:jQuery(this.b.canvas).offset(),d=Ha(),e,f,h,p;e=0;for(f=a.changedTouches.length;e<f;e++)if(h=a.changedTouches[e],p=this.jg(h.identifier),-1===p){p=h.pageX-b.left;var m=h.pageY-b.top;this.ne=this.touches.length;
this.hj=h.identifier;this.touches.push({time:d,x:p,y:m,oi:d,gc:p,hc:m,id:h.identifier,Gl:this.ne});this.b.trigger(Z.prototype.k.km,this);this.b.trigger(Z.prototype.k.om,this);this.Nj=p;this.Oj=m;this.b.trigger(Z.prototype.k.Hd,this)}};h.Xk=function(a){a.preventDefault&&a.preventDefault();var b,c,d;b=0;for(c=a.changedTouches.length;b<c;b++)d=a.changedTouches[b],d=this.jg(d.identifier),this.ne=0<=d?this.touches[d].Gl:-1,this.hj=0<=d?this.touches[d].id:-1,this.b.trigger(Z.prototype.k.jm,this),this.b.trigger(Z.prototype.k.nm,
this),0<=d&&this.touches.splice(d,1)};h.bu=function(){return this.b.qf&&0===this.Vg&&0!==m?90*m:this.b.Ge&&0===this.Vg&&0!==n?90*n:this.Vg};h.cu=function(){return this.b.qf&&0===this.Wg&&0!==p?-90*p:this.b.Ge&&0===this.Wg&&0!==B?-90*B:this.Wg};h.eu=function(){return this.b.qf&&0===this.Xg&&0!==a?90*a:this.b.Ge&&0===this.Xg&&0!==f?90*f:this.Xg};h.Nr=function(a){a.preventDefault&&this.b.Yh&&a.preventDefault();this.lo({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Pk=g};h.Or=function(a){a.preventDefault&&
this.b.Yh&&a.preventDefault();this.Pk&&this.ko({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};h.Pr=function(a){a.preventDefault&&this.b.Yh&&a.preventDefault();this.b.Yh=g;this.Xk({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Pk=r};h.oh=function(){var a,b,c,d=Ha();a=0;for(b=this.touches.length;a<b;a++)c=this.touches[a],c.time<=d-50&&(c.oi=d)};d.prototype.om=K(g);d.prototype.nm=K(g);d.prototype.Hd=function(a){return!a?r:this.b.Gs(a,this.Nj,this.Oj)};d.prototype.sh=
function(a){if(!a)return r;a=a.ca();var b=a.cc(),c,d,e=[],f,h,p,m;f=0;for(h=b.length;f<h;f++){var k=b[f];k.La();p=0;for(m=this.touches.length;p<m;p++)if(d=this.touches[p],c=k.n.ub(d.x,d.y,g),d=k.n.ub(d.x,d.y,r),k.$b(c,d)){e.push(k);break}}return e.length?(a.na=r,a.d=e,g):r};d.prototype.km=function(a){a=Math.floor(a);return a===this.ne};d.prototype.jm=function(a){a=Math.floor(a);return a===this.ne};b.k=new d;t.prototype.Aj=function(a,b){if(this.touches.length){var c,d,e,f,h;ba(b)?(c=this.b.pg(0),d=
c.scale,e=c.Qc,f=c.ad,h=c.j,c.scale=this.b.da.scale,c.Qc=1,c.ad=1,c.j=this.b.da.j,a.M(c.ub(this.touches[0].x,this.touches[0].y,g)),c.scale=d,c.Qc=e,c.ad=f,c.j=h):(c=ca(b)?this.b.pg(b):this.b.hk(b))?a.M(c.ub(this.touches[0].x,this.touches[0].y,g)):a.M(0)}else a.M(0)};t.prototype.Bj=function(a,b){if(this.touches.length){var c,d,e,f,h;ba(b)?(c=this.b.pg(0),d=c.scale,e=c.Qc,f=c.bd,h=c.j,c.scale=this.b.da.scale,c.Qc=1,c.bd=1,c.j=this.b.da.j,a.M(c.ub(this.touches[0].x,this.touches[0].y,r)),c.scale=d,c.Qc=
e,c.bd=f,c.j=h):(c=ca(b)?this.b.pg(b):this.b.hk(b))?a.M(c.ub(this.touches[0].x,this.touches[0].y,r)):a.M(0)}else a.M(0)};b.ga=new t})();function dc(e){this.b=e}(function(){var e=dc.prototype;e.qa=function(e){this.Ba=e;this.b=e.b};e.qa.prototype.W=F();e.ea=function(e){this.type=e;this.b=e.b};e.ea.prototype.W=F();e.k=new (F());e.u=new (F());e.ga=new (F())})();function ec(e){this.b=e}
(function(){var e=ec.prototype;e.qa=function(d,e){this.P=d;this.Ug=e;this.b=d.b};e.qa.prototype.W=F();e.ea=function(d,e){this.type=d;this.P=d.P;this.i=e;this.b=d.b};var k=e.ea.prototype;k.W=function(){this.zm=this.p[0];this.Am=this.p[1];this.Np=this.p[2];this.Mp=this.p[3];this.i.La();this.Zl=this.i.I.left;this.cm=this.i.I.top;this.$l=this.b.Bb-this.i.I.left;this.am=this.b.Ab-this.i.I.top;this.kl=this.b.Bb-this.i.I.right;this.Fj=this.b.Ab-this.i.I.bottom;this.enabled=0!==this.p[4]};k.jb=function(){return{xleft:this.Zl,
ytop:this.cm,xright:this.$l,ybottom:this.am,rdiff:this.kl,bdiff:this.Fj,enabled:this.enabled}};k.yb=function(d){this.Zl=d.xleft;this.cm=d.ytop;this.$l=d.xright;this.am=d.ybottom;this.kl=d.rdiff;this.Fj=d.bdiff;this.enabled=d.enabled};k.Oa=function(){if(this.enabled){var d,e=this.i.n,b=this.i,h=this.i.I;0===this.zm?(b.La(),d=e.Ob+this.Zl-h.left,0!==d&&(b.x+=d,b.L())):1===this.zm&&(b.La(),d=e.Eb-this.$l-h.left,0!==d&&(b.x+=d,b.L()));0===this.Am?(b.La(),d=e.Pb+this.cm-h.top,0!==d&&(b.y+=d,b.L())):1===
this.Am&&(b.La(),d=e.Db-this.am-h.top,0!==d&&(b.y+=d,b.L()));1===this.Np&&(b.La(),d=e.Eb-this.kl-h.right,0!==d&&(b.width+=d,0>b.width&&(b.width=0),b.L()));1===this.Mp&&(b.La(),d=e.Db-this.Fj-h.bottom,0!==d&&(b.height+=d,0>b.height&&(b.height=0),b.L()))}};e.k=new (F());e.u=new (F());e.ga=new (F())})();function fc(e){this.b=e}
(function(){var e=fc.prototype;e.qa=function(d,e){this.P=d;this.Ug=e;this.b=d.b};e.qa.prototype.W=F();e.ea=function(d,e){this.type=d;this.P=d.P;this.i=e;this.b=d.b};var k=e.ea.prototype;k.W=function(){var d=this.p[0];this.lc=this.p[1];this.Th=this.p[2];this.Qp=0!==this.p[3];this.Se=0!==this.p[4];this.wb=Math.cos(this.i.j)*d;this.ib=Math.sin(this.i.j)*d;this.gc=this.i.x;this.hc=this.i.y;this.Fc=this.i.j;this.gj=0;this.enabled=0!==this.p[5]};k.jb=function(){return{acc:this.lc,g:this.Th,dx:this.wb,dy:this.ib,
lx:this.gc,ly:this.hc,lka:this.Fc,t:this.gj,e:this.enabled}};k.yb=function(d){this.lc=d.acc;this.Th=d.g;this.wb=d.dx;this.ib=d.dy;this.gc=d.lx;this.hc=d.ly;this.Fc=d.lka;this.gj=d.t;this.enabled=d.e};k.Oa=function(){if(this.enabled){var d=this.b.ng(this.i),e,b;this.i.j!==this.Fc&&(this.Se&&(e=Ca(0,0,this.wb,this.ib),this.wb=Math.cos(this.i.j)*e,this.ib=Math.sin(this.i.j)*e),this.Fc=this.i.j);0!==this.lc&&(e=Ca(0,0,this.wb,this.ib),b=0===this.wb&&0===this.ib?this.i.j:va(0,0,this.wb,this.ib),e+=this.lc*
d,0>e&&(e=0),this.wb=Math.cos(b)*e,this.ib=Math.sin(b)*e);0!==this.Th&&(this.ib+=this.Th*d);this.gc=this.i.x;this.hc=this.i.y;if(0!==this.wb||0!==this.ib)if(this.i.x+=this.wb*d,this.i.y+=this.ib*d,this.gj+=Ca(0,0,this.wb*d,this.ib*d),this.Se&&(this.i.j=va(0,0,this.wb,this.ib),this.i.L(),this.Fc=this.i.j),this.i.L(),this.Qp&&(e=this.b.hd(this.i)))this.b.ll(this.i,e),e=Ca(0,0,this.wb,this.ib),b=this.b.Km(this.i,this.gc,this.hc),this.wb=Math.cos(b)*e,this.ib=Math.sin(b)*e,this.i.x+=this.wb*d,this.i.y+=
this.ib*d,this.i.L(),this.Se&&(this.Fc=this.i.j=b,this.i.L()),this.b.zo(this.i,this.wb/e,this.ib/e,Math.max(2.5*e*d,30))||this.b.Li(this.i,100)}};e.k=new (F());e.u=new (F());e.ga=new (F())})();function gc(e){this.b=e}
(function(){function e(){}function k(){}var d=gc.prototype;d.qa=function(b,d){this.P=b;this.Ug=d;this.b=b.b};d.qa.prototype.W=F();d.ea=function(b,d){this.type=b;this.P=b.P;this.i=d;this.b=b.b;this.Yi=this.Xi=this.Wi=this.Zi=this.nk=this.Qi=this.qi=this.Lh=this.kj=r;this.F=0;this.rb=this.ka=this.i.j};var t=d.ea.prototype;t.W=function(){this.Yd=this.p[0];this.lc=this.p[1];this.sd=this.p[2];this.aj=O(this.p[3]);this.Sj=O(this.p[4]);this.$j=this.p[5];this.Se=1===this.p[6];this.Zp=1===this.p[7];this.enabled=
0!==this.p[8];this.gc=this.i.x;this.hc=this.i.y;this.uf=this.i.j;this.Zp&&!this.b.Lb&&(jQuery(document).keydown(function(b){return function(d){b.Lr(d)}}(this)),jQuery(document).keyup(function(b){return function(d){b.Mr(d)}}(this)))};t.jb=function(){return{ignoreInput:this.nk,enabled:this.enabled,s:this.F,a:this.ka,m:this.rb,maxspeed:this.Yd,acc:this.lc,dec:this.sd,steerSpeed:this.aj,driftRecover:this.Sj,friction:this.$j,lastx:this.gc,lasty:this.hc,lastAngle:this.uf}};t.yb=function(b){this.nk=b.ignoreInput;
this.enabled=b.enabled;this.F=b.s;this.ka=b.a;this.rb=b.m;this.Yd=b.maxspeed;this.lc=b.acc;this.sd=b.dec;this.aj=b.steerSpeed;this.Sj=b.driftRecover;this.$j=b.friction;this.gc=b.lastx;this.hc=b.lasty;this.uf=b.lastAngle;this.Yi=this.Xi=this.Wi=this.Zi=this.Qi=this.qi=this.Lh=this.kj=r};t.Lr=function(b){switch(b.which){case 37:b.preventDefault();this.qi=g;break;case 38:b.preventDefault();this.kj=g;break;case 39:b.preventDefault();this.Qi=g;break;case 40:b.preventDefault(),this.Lh=g}};t.Mr=function(b){switch(b.which){case 37:b.preventDefault();
this.qi=r;break;case 38:b.preventDefault();this.kj=r;break;case 39:b.preventDefault();this.Qi=r;break;case 40:b.preventDefault(),this.Lh=r}};t.Oa=function(){var b=this.b.ng(this.i),d=this.qi||this.Xi,c=this.Qi||this.Yi,a=this.kj||this.Zi,e=this.Lh||this.Wi;this.Wi=this.Zi=this.Yi=this.Xi=r;if(this.enabled){this.Se&&this.i.j!==this.uf&&(this.uf=this.rb=this.ka=this.i.j);var m=this.b.hd(this.i);if(m&&(this.b.ll(this.i,m),!this.b.Li(this.i)))return;this.nk&&(e=a=c=d=r);a&&!e&&(this.F+=this.lc*b,this.F>
this.Yd&&(this.F=this.Yd));e&&!a&&(this.F-=this.sd*b,this.F<-this.Yd&&(this.F=-this.Yd));e===a&&(0<this.F?(this.F-=0.1*this.sd*b,0>this.F&&(this.F=0)):0>this.F&&(this.F+=0.1*this.sd*b,0<this.F&&(this.F=0)));0>this.F&&(a=d,d=c,c=a);d&&!c&&(this.ka=S(this.ka-this.aj*b*(Math.abs(this.F)/this.Yd)));c&&!d&&(this.ka=S(this.ka+this.aj*b*(Math.abs(this.F)/this.Yd)));d=this.Sj*b;c=wa(this.ka,this.rb);c>O(90)&&(d+=c-O(90));c<=d?this.rb=S(this.ka):ya(this.ka,this.rb)?this.rb=S(this.rb+d):this.rb=S(this.rb-d);
this.gc=this.i.x;this.hc=this.i.y;if(0!==this.F&&0!==b){if(this.i.x+=Math.cos(this.rb)*this.F*b,this.i.y+=Math.sin(this.rb)*this.F*b,this.Se&&(this.uf=this.i.j=this.ka),this.i.L(),d=this.b.hd(this.i))this.b.ll(this.i,d),this.F=Math.abs(this.F),this.rb=this.b.Km(this.i,this.gc,this.hc),this.i.x+=Math.cos(this.rb)*this.F*b,this.i.y+=Math.sin(this.rb)*this.F*b,this.i.L(),this.F*=1-this.$j,this.b.zo(this.i,Math.cos(this.rb),Math.sin(this.rb),Math.max(2.5*this.F*b,30))||this.b.Li(this.i,100)}else this.Se&&
this.i.j!==this.ka&&(this.uf=this.i.j=this.ka,this.i.L(),this.b.hd(this.i)&&this.b.Li(this.i,100))}};e.prototype.Xf=function(){return 0!==this.F};d.k=new e;k.prototype.ef=function(b){switch(b){case 0:this.Xi=g;break;case 1:this.Yi=g;break;case 2:this.Zi=g;break;case 3:this.Wi=g}};d.u=new k;d.ga=new (F())})();function hc(e){this.b=e}
(function(){function e(){}function k(){}var d=hc.prototype;d.qa=function(b,a){this.P=b;this.Ug=a;this.b=b.b};d.qa.prototype.W=function(){this.If=[];this.Nd=[]};var t={};d.ea=function(b,a){this.type=b;this.P=b.P;this.i=a;this.b=b.b};var b=d.ea.prototype;b.W=function(){this.ob=this.p[0];3>this.ob&&(this.ob=3);this.ve=this.p[1];this.Ir=this.p[2];this.Yc=this.p[3];this.lc=this.p[4];this.sd=this.p[5];this.yh=O(this.p[6]);this.be=0!==this.p[7];this.Kh=0!==this.p[8];this.enabled=0!==this.p[9];this.of=this.kg=
this.Qg=this.vd=r;this.Mb=0;this.Fc=this.ka=this.i.j;this.Nf=this.Mc=this.Lc=this.F=0;this.Ef=Math.ceil(this.b.da.width/this.ob);this.Sg=Math.ceil(this.b.da.height/this.ob);this.Ka=[];this.kf=r;this.Ih=this.Hh=0;this.Ag=this.ei=r;this.Jm=this.Im=0;this.kn=g;var b=this;this.jc||(this.Vr=function(){b.ei||(b.Ag=r,b.Vp(),b.of=0<b.Ka.length,b.Mb=0,b.b.trigger(hc.prototype.k.wp,b.i),b.Rj())},this.Ur=function(){b.ei||(b.Ag=r,b.Pm(),b.of=r,b.vd=r,b.Mb=0,b.b.trigger(hc.prototype.k.pp,b.i),b.Rj())})};b.Pe=
function(){this.ei=g;this.kf=r};b.jb=function(){var b={cs:this.ob,cb:this.ve,ms:this.Yc,acc:this.lc,dec:this.sd,av:this.yh,re:this.be,de:this.Kh,im:this.vd,mfs:this.Qg,ftmwm:this.kg,hp:this.of,mn:this.Mb,a:this.ka,lka:this.Fc,s:this.F,rx:this.Lc,ry:this.Mc,ra:this.Nf,myhc:this.Ef,myvc:this.Sg,path:this.Ka,en:this.enabled,fr:this.kn,obs:[],costs:[]};this.Ag?(b.dfp=g,b.dpx=this.Im,b.dpy=this.Jm):(b.dfp=this.kf,b.dpx=this.Hh,b.dpy=this.Ih);var a,d;a=0;for(d=this.type.If.length;a<d;a++)b.obs.push(this.type.If[a].V);
a=0;for(d=this.type.Nd.length;a<d;a++)b.costs.push({sid:this.type.Nd[a].S.V,cost:this.type.Nd[a].Rm});return b};b.yb=function(b){this.ob=b.cs;this.ve=b.cb;this.Yc=b.ms;this.lc=b.acc;this.sd=b.dec;this.yh=b.av;this.be=b.re;this.Kh=b.de;this.vd=b.im;this.Qg=b.mfs;this.kg=b.ftmwm;this.of=b.hp;this.Mb=b.mn;this.ka=b.a;this.Fc=b.lka;this.F=b.s;this.Lc=b.rx;this.Mc=b.ry;this.Nf=b.ra;this.Ef=b.myhc;this.Sg=b.myvc;this.Ka=b.path;this.enabled=b.en;this.kn=b.fr;this.kf=b.dfp;this.Hh=b.dpx;this.Ih=b.dpy;this.type.If.length=
0;var a=b.obs,d,e,f;d=0;for(e=a.length;d<e;d++)(f=this.b.Ce(a[d]))&&this.type.If.push(f);this.type.Nd.length=0;b=b.costs;d=0;for(e=b.length;d<e;d++)(f=this.b.Ce(b[d].sid))&&this.type.Nd.push({S:f,Rm:b[d].cost});this.Be().Mf.setDiagonals(this.Kh)};b.pe=function(){this.Be().Ni=g};b.Oa=function(){if(this.enabled&&this.vd){this.be&&this.i.j!==this.Fc&&(this.ka=this.i.j);var b=this.b.ng(this.i),a,d,e,f,h,k=this.i,t=Math.min(0.4*this.Yc,2*Math.abs(this.i.width)),v=Math.max(1.5*this.F,30);this.Mb<this.Ka.length?
(f=this.Ka[this.Mb].x,h=this.Ka[this.Mb].y,e=Ca(this.Lc,this.Mc,f,h),e<3*v*b&&(this.Mb++,this.Lc=f,this.Mc=h,this.Mb<this.Ka.length&&(f=this.Ka[this.Mb].x,h=this.Ka[this.Mb].y))):(f=this.Ka[this.Ka.length-1].x,h=this.Ka[this.Ka.length-1].y);this.Nf=va(this.Lc,this.Mc,f,h);e=Ca(k.x,k.y,this.Lc,this.Mc);e<t&&this.Mb<this.Ka.length&&(this.kg?this.kg=r:t=v*b,this.Lc+=Math.cos(this.Nf)*t,this.Mc+=Math.sin(this.Nf)*t);a=va(k.x,k.y,this.Lc,this.Mc);d=wa(this.ka,a);t=Ca(k.x,k.y,this.Ka[this.Ka.length-1].x,
this.Ka[this.Ka.length-1].y);v=this.Yc*this.Yc/(2*this.sd);1<e&&(this.ka=xa(this.ka,a,this.yh*b),0.5>=ra(d)?d=this.Yc:120<=ra(d)||this.Qg&&0===this.Mb?(d=0,this.Qg=g):(a=d/this.yh,e=Ca(k.x,k.y,this.Lc,this.Mc),e/=2*Math.sin(d),d=e*d/a,0>d&&(d=0),d>this.Yc&&(d=this.Yc)),t<v&&(d=Math.min(d,t/v*this.Yc+this.Yc/40)),this.F+=this.lc*b,this.F>d&&(this.F=d));k.x+=Math.cos(this.ka)*this.F*b;k.y+=Math.sin(this.ka)*this.F*b;this.be&&(this.Fc=k.j=this.ka);k.L();this.Mb===this.Ka.length&&Ca(k.x,k.y,f,h)<Math.max(3*
this.F*b,10)&&(this.of=this.vd=r,this.F=this.Mb=0,this.b.trigger(hc.prototype.k.em,k))}};b.oh=function(){this.enabled&&(this.Pq(),this.Rj())};b.Rj=function(){this.kf&&!this.ei&&(this.kf=r,this.$m(this.i.x,this.i.y,this.Hh,this.Ih))};b.Be=function(){var b=""+this.ob+","+this.ve;t.hasOwnProperty(b)||(t[b]={Mf:new window.Pathfinder,cells:q,Ni:r});return t[b]};b.Pq=function(){var b=this.Be();if(!b.Mf.isReady()||b.Ni){var a=[];a.length=this.Ef;var d,e,f=this.Ef,h=this.Sg;for(d=0;d<f;d++){a[d]=[];a[d].length=
h;for(e=0;e<h;e++)a[d][e]=this.gs(d,e)}b.cells=a;b.Mf.init(this.Ef,this.Sg,a,this.Kh);b.Ni=r}};b.Pm=function(){var b,a;b=0;for(a=this.Ka.length;b<a;b++)window.freeResultNode(this.Ka[b]);this.Ka.length=0};b.Vp=function(){var b=this.Be().Mf.pathList;this.Pm();var a,d,e,f;a=0;for(d=b.length;a<d;a++)e=b[a],f=window.allocResultNode(),f.x=(e.x+0.5)*this.ob,f.y=(e.y+0.5)*this.ob,this.Ka.push(f)};var h=new ka;b.gs=function(b,a){var d,e,f,k,n,t,v=0;h.left=b*this.ob-this.ve;h.top=a*this.ob-this.ve;h.right=
(b+1)*this.ob+this.ve;h.bottom=(a+1)*this.ob+this.ve;if(0===this.Ir){if(this.b.Hs(h))return window.PF_OBSTACLE}else{d=0;for(e=this.type.If.length;d<e;d++){f=this.type.If[d];k=0;for(n=f.d.length;k<n;k++)if(this.b.Il(h,f.d[k]))return window.PF_OBSTACLE}}d=0;for(e=this.type.Nd.length;d<e;d++){f=this.type.Nd[d].S;t=this.type.Nd[d].Rm;k=0;for(n=f.d.length;k<n;k++)this.b.Il(h,f.d[k])&&(v+=t)}return v};b.$m=function(b,a,d,e){var f=this.Be().Mf;if(f.isReady()){this.Ag=g;this.Im=d;this.Jm=e;b=Math.floor(b/
this.ob);a=Math.floor(a/this.ob);d=Math.floor(d/this.ob);e=Math.floor(e/this.ob);var h,k,t,v,s,l,z;if(f.at(d,e)===window.PF_OBSTACLE){h=1E6;for(v=t=k=0;v<this.Ef;v++)for(s=0;s<this.Sg;s++)f.at(v,s)!==window.PF_OBSTACLE&&(l=d-v,z=e-s,l=l*l+z*z,l<h&&(h=l,k=v,t=s));d=k;e=t}f.findPath(b,a,d,e,this.Vr,this.Ur)}};b.Ai=function(){this.Be().Ni=g};e.prototype.wp=K(g);e.prototype.pp=K(g);e.prototype.Xf=J("vd");e.prototype.em=K(g);d.k=new e;k.prototype.kp=function(b,a){this.enabled&&(this.Ag||!this.Be().Mf.isReady()?
(this.kf=g,this.Hh=b,this.Ih=a):this.$m(this.i.x,this.i.y,b,a))};k.prototype.Bp=function(){this.of&&(this.vd&&(this.kg=g),this.Qg=!this.vd,this.vd=g,this.Lc=this.i.x,this.Mc=this.i.y,this.Nf=this.i.j)};d.u=new k;d.ga=new (F())})();function ic(e){this.b=e}
(function(){function e(){}function k(){}var d=ic.prototype;d.qa=function(b,d){this.P=b;this.Ug=d;this.b=b.b};d.qa.prototype.W=function(){this.We=[]};d.ea=function(b,d){this.type=b;this.P=b.P;this.i=d;this.b=b.b};var t=d.ea.prototype;t.W=function(){this.Of=this.p[0];this.il=this.p[1];this.be=0!==this.p[2];this.ol=O(this.p[3]);this.cj=this.p[4];this.cl=0!==this.p[5];this.fl=this.p[6];this.enabled=0!==this.p[7];this.ki=this.ji=0;this.currentTarget=q;this.Gk=-1;this.Oe=this.Ne=0;this.vf=[0,0,0,0];this.Ve=
0;var b=this;this.jc||(this.bo=function(d){b.Vk(d)});this.b.Cj(this.bo)};t.jb=function(){var b={r:this.Of,rof:this.il,re:this.be,rs:this.ol,tm:this.cj,pa:this.cl,ps:this.fl,en:this.enabled,lct:this.ji,lft:this.ki,target:this.currentTarget?this.currentTarget.uid:-1,ox:this.Ne,oy:this.Oe,ls:this.vf,sc:this.Ve,targs:[]},d,c;d=0;for(c=this.type.We.length;d<c;d++)b.targs.push(this.type.We[d].V);return b};t.yb=function(b){this.Of=b.r;this.il=b.rof;this.be=b.re;this.ol=b.rs;this.cj=b.tm;this.cl=b.pa;this.fl=
b.ps;this.enabled=b.en;this.ji=b.lct;this.ki=b.lft;this.Gk=b.target;this.Ne=b.ox;this.Oe=b.oy;this.vf=b.ls;this.Ve=b.sc;this.type.We.length=0;var d,c,a;d=0;for(c=b.targs.length;d<c;d++)(a=this.b.Ce(b.targs[d]))&&this.type.We.push(a)};t.pe=function(){this.currentTarget=-1===this.Gk?q:this.b.qg(this.Gk)};t.Vk=function(b){this.currentTarget==b&&(this.currentTarget=q)};t.Pe=function(){this.currentTarget=q;this.b.js(this.bo)};t.Kp=function(b){4>this.Ve?(this.vf[this.Ve]=b,this.Ve++):(this.vf.shift(),this.vf.push(b))};
t.Xh=function(){for(var b=0,d=0;d<this.Ve;d++)b+=this.vf[d];return b/this.Ve};t.Hn=function(b){var d=this.i,c=b.x-d.x;b=b.y-d.y;return c*c+b*b<=this.Of*this.Of};t.Gr=function(){var b,d,c,a,e=this.type.We,k,f;b=0;for(d=e.length;b<d;b++){f=e[b].d;c=0;for(a=f.length;c<a;c++)if(k=f[c],this.Hn(k)){this.currentTarget=k;return}}};t.Hr=function(){var b,d,c,a,e=this.type.We,k,f,t,n;t=0;var x=this.Of*this.Of;this.currentTarget=q;b=0;for(d=e.length;b<d;b++){f=e[b].d;c=0;for(a=f.length;c<a;c++)k=f[c],t=this.i.x-
k.x,n=this.i.y-k.y,t=t*t+n*n,t<x&&(this.currentTarget=k,x=t)}};t.Oa=function(){var b=this.b.ng(this.i),d=this.b.Tb.Cb,c=this.i;if(this.enabled){this.currentTarget&&!this.Hn(this.currentTarget)&&(this.currentTarget=q);if(d>=this.ji+0.1)if(this.ji=d,0===this.cj&&!this.currentTarget)this.Gr(),this.currentTarget&&(this.Ne=this.currentTarget.x,this.Oe=this.currentTarget.y,this.b.trigger(ic.prototype.k.mm,this.i));else if(1===this.cj){var a=this.currentTarget;this.Hr();this.currentTarget&&this.currentTarget!==
a&&(this.Ne=this.currentTarget.x,this.Oe=this.currentTarget.y,this.b.trigger(ic.prototype.k.mm,this.i))}if(this.currentTarget){a=va(c.x,c.y,this.currentTarget.x,this.currentTarget.y);if(this.cl){var e=c.x,k=c.y,f=this.currentTarget.x,t=this.currentTarget.y,n=va(f,t,this.Ne,this.Oe);this.Kp(Ca(f,t,this.Ne,this.Oe)/b);var x=this.Xh(),v=t-k,s=f-e,e=(x*Math.sin(n)*(e-f)-x*Math.cos(n)*(k-t))/this.fl,v=Math.asin(e/Math.sqrt(v*v+s*s))-Math.atan2(v,-s)+Math.PI;isNaN(v)||(a=v)}this.be&&(c.j=xa(c.j,a,this.ol*
b),c.L());d>=this.ki+this.il&&0.5>=ra(wa(c.j,a))&&(this.ki=d,this.b.trigger(ic.prototype.k.lm,this.i));this.Ne=this.currentTarget.x;this.Oe=this.currentTarget.y}}};e.prototype.lm=K(g);e.prototype.mm=K(g);d.k=new e;k.prototype.ep=function(b){var d=this.type.We;if(-1===d.indexOf(b)){var c,a,e;c=0;for(a=d.length;c<a;c++)if(e=d[c],e.J&&-1!==e.Pg.indexOf(b))return;d.push(b)}};d.u=new k;d.ga=new (F())})();function jc(e){this.b=e;this.Cl=this.Vi=this.jh=this.Bl=0}
(function(){var e=jc.prototype;e.qa=function(d,e){this.P=d;this.Ug=e;this.b=d.b};e.qa.prototype.W=F();e.ea=function(d,e){this.type=d;this.P=d.P;this.i=e;this.b=d.b};var k=e.ea.prototype;k.W=F();k.jb=function(){return{smg:this.P.Bl,ss:this.P.jh,se:this.P.Vi,smd:this.P.Cl}};k.yb=function(d){this.P.Bl=d.smg;this.P.jh=d.ss;this.P.Vi=d.se;this.P.Cl=d.smd};k.Oa=F();k.oh=function(){var d=this.P.Ff.Os(),e=0,b=0,h,c;h=0;for(c=d.length;h<c;h++)e+=d[h].x,b+=d[h].y;h=this.i.n.la;var a=this.b.Tb.Cb,k=c=0;a>=this.P.jh&&
a<this.P.Vi&&(c=this.P.Bl*Math.min(this.b.le,1),0===this.P.Cl&&(c*=1-(a-this.P.jh)/(this.P.Vi-this.P.jh)),a=2*Math.random()*Math.PI,k=Math.random()*c,c=Math.cos(a)*k,k*=Math.sin(a));h.ul(e/d.length+c);h.wl(b/d.length+k)};e.u=new (F())})();
function zb(){return[q,"Menu",[[W,r,g,g,g,g,g,g,g,r],[bc,r,g,g,g,g,g,g,g,r],[cc,r,g,g,g,g,g,g,g,g],[Z,g,r,r,r,r,r,r,r,r],[dc,g,r,r,r,r,r,r,r,r],[$b,g,r,r,r,r,r,r,r,r],[ac,g,r,r,r,r,r,r,r,r]],[["t0",dc,r,[],0,0,q,q,[],r,r,5348170403011429,[],[]],["t1",Z,r,[],0,0,q,q,[],r,r,5360238741765463,[],[1]],["t2",ac,r,[],0,0,q,q,[],r,r,0x8126f96920bbe,[],[]],["t3",$b,r,[],0,0,q,q,[],r,r,432376389717995,[],[0,1,1,600,600,1E4,1,5E3,1]],["t4",cc,r,[],0,0,["images/tiledbackground.png",1261,0],q,[],r,r,791141191539052,
[]],["t5",W,r,[],2,0,q,[["Default",5,g,1,0,r,472408144890159,[["images/sprite-sheet0.png",4968,1,1,250,250,1,0.5,0.5,[],[],0]]],["Walk",5,r,1,0,r,9859180003613668,[["images/sprite-sheet0.png",4968,252,1,250,250,1,0.5,0.5,[],[],0],["images/sprite-sheet0.png",4968,1,252,250,250,1,0.5,0.5,[],[],0],["images/sprite-sheet0.png",4968,252,252,250,250,1,0.5,0.5,[],[],0],["images/sprite-sheet1.png",1885,0,0,250,250,1,0.5,0.5,[],[],0]]]],[["Car",gc,6583783923713449],["ScrollTo",jc,8054726110517838]],r,r,0xe846f9936e986,
[]],["t6",cc,r,[],0,0,["images/tiledbackground2.png",156,1],q,[],r,r,0x89eeec70abbc7,[]],["t7",W,r,[],1,0,q,[["Default",5,r,1,0,r,0x5d7abd372a5f9,[["images/fire-sheet0.png",12023,0,0,250,250,1,0.5,0.5,[],[],0]]]],[["Anchor",ec,9401527610289952]],r,r,5335763376029124,[]],["t8",W,r,[],1,0,q,[["Default",5,r,1,0,r,0xe949230c740b6,[["images/leftb-sheet0.png",2885,0,0,60,60,1,0.5,0.5,[],[],0]]]],[["Anchor",ec,7303885294360635]],r,r,6909224427007784,[]],["t9",W,r,[],1,0,q,[["Default",5,r,1,0,r,0x7f87b0f6ae23d,
[["images/rightb-sheet0.png",3827,0,0,250,250,1,0.5,0.5,[],[],0]]]],[["Anchor",ec,5973679683402675]],r,r,7812478442005895,[]],["t10",W,r,[],1,0,q,[["Default",5,r,1,0,r,8245619021372687,[["images/rightb-sheet0.png",3827,0,0,250,250,1,0.5,0.5,[],[],0]]]],[["Anchor",ec,6326072925746745]],r,r,5020342759593786,[]],["t11",W,r,[],1,0,q,[["Default",5,r,1,0,r,7778943778592228,[["images/rightb-sheet0.png",3827,0,0,250,250,1,0.5,0.5,[],[],0]]]],[["Anchor",ec,0x6bc9338bcae4e]],r,r,9236027799153448,[]],["t12",
W,r,[],1,0,q,[["Default",5,r,1,0,r,6273173458033113,[["images/sprite2-sheet0.png",1950,0,0,64,27,1,0.5,0.518519,[],[0.34375,-0.148149,0.421875,-0.0370375,0.34375,0.111112,0.046875,-0.0370375],0]]]],[["Bullet",fc,672154497905812]],r,r,0x3ca01ba647db3,[]],["t13",W,r,[0x57b17d0f6b1cd],2,0,q,[["Default",5,g,1,0,r,7261937278116889,[["images/foe-sheet0.png",4778,1,1,250,250,1,0.5,0.5,[],[],0]]],["Walk",5,r,1,0,r,6078925656402826,[["images/foe-sheet0.png",4778,252,1,250,250,1,0.5,0.5,[],[],0],["images/foe-sheet0.png",
4778,1,252,250,250,1,0.5,0.5,[],[],0],["images/foe-sheet0.png",4778,252,252,250,250,1,0.5,0.5,[],[],0],["images/foe-sheet1.png",1870,0,0,250,250,1,0.5,0.5,[],[],0]]]],[["Pathfinding",hc,509114136819366],["Turret",ic,0xb14d85ca33e6f]],r,r,4969224673094256,[]],["t14",W,r,[],1,0,q,[["Default",5,r,1,0,r,366621634781655,[["images/sprite3-sheet0.png",1903,0,0,64,27,1,0.5,0.518519,[],[],0]]]],[["Bullet",fc,8909535432540894]],r,r,6600509232335782,[]],["t15",bc,r,[],1,0,q,q,[["Anchor",ec,0x820231192d121]],
r,r,8724373131273137,[]],["t16",W,r,[],0,0,q,[["Default",5,r,1,0,r,7940008739727792,[["images/sprite4-sheet0.png",339,0,0,250,250,1,0.5,0.5,[],[],0]]]],[],r,r,6566542030747521,[]],["t17",bc,r,[],0,0,q,q,[],r,r,0x4b003d008d246,[]],["t18",bc,r,[],0,0,q,q,[],r,r,5267294001098211,[]],["t19",bc,r,[],0,0,q,q,[],r,r,5109442472764139,[]],["t20",bc,r,[],0,0,q,q,[],r,r,8224643769758262,[]],["t21",bc,r,[],0,0,q,q,[],r,r,6198645154386525,[]],["t22",bc,r,[],0,0,q,q,[],r,r,9654231651683384,[]],["t23",W,r,[],0,
0,q,[["Default",5,r,1,0,r,0xb3a5ad851262,[["images/sprite5-sheet0.png",24020,0,0,250,250,1,0.5,0.5,[],[-0.308,-0.308,0,-0.376,0.08,-0.08,0.384,0,0.328,0.328,0,0.412,-0.176,0.176,-0.176,0],0]]]],[],r,r,0xadbeed21b18ad,[]]],[],[["Layout 1",500,500,r,"Event sheet 1",0xe38cfd1e7d65c,[["Layer 0",0,5219311130234725,g,[255,255,255],r,1,1,1,r,1,0,0,[[[-10,-5,0,513,507,0,0,1,0,0,0,0,[]],6,7,[],[],[0,0]],[[-8,-5,0,511,508,0,0,1,0,0,0,0,[]],4,4,[],[],[0,0]]],[]],["Layer 1",1,0x92a4b7083ec57,g,[255,255,255],
g,1,1,1,r,1,0,0,[[[190.379,230.293,0,27,32,0,-2.19627,1,0.5,0.5,0,0,[]],13,14,[5],[[30,0,0,200,1E3,2E3,135,0,1,1],[300,1,1,180,0,0,500,1]],[0,"Default",0,1]],[[461,136,0,27,32,0,-1.57076,1,0.5,0.5,0,0,[]],13,16,[5],[[30,0,0,200,1E3,2E3,135,0,1,1],[300,1,1,180,0,0,500,1]],[0,"Default",0,1]],[[266,245,0,27,32,0,-0.0232537,1,0.5,0.5,0,0,[]],13,15,[5],[[30,0,0,200,1E3,2E3,135,0,1,1],[300,1,1,180,0,0,500,1]],[0,"Default",0,1]],[[157,115.5,0,52,50,0,0,1,0.5,0.5,0,0,[]],5,6,[],[[150,200,300,225,185,0.4,
1,1,1],[]],[0,"Default",0,1]],[[356.745,150.433,0,74,81,0,-2.19627,1,0.5,0.5,0,0,[]],13,13,[5],[[30,0,0,200,1E3,2E3,135,0,1,1],[300,1,1,180,0,0,500,1]],[0,"Default",0,1]],[[268,91,0,46,52,0,0,1,0.5,0.5,0,0,[]],16,19,[],[],[0,"Default",0,1]]],[]],["Design",2,0xf7957b196d560,g,[255,255,255],g,0,0,1,r,1,0,0,[[[418.5,257.5,0,118,120,0,0,1,0.5,0.5,0,0,[]],7,5,[],[[0,0,0,0,1]],[0,"Default",0,1]],[[228.5,-52.3333,0,31,9,0,0,1,0.5,0.518519,0,0,[]],12,12,[],[[400,0,0,0,1,1]],[0,"Default",0,1]],[[36,247,0,
62,60,0,0,1,0.5,0.5,0,0,[]],8,8,[],[[0,0,0,0,1]],[0,"Default",0,1]],[[114,248,0,65,63,0,3.14159,1,0.5,0.5,0,0,[]],9,9,[],[[0,0,0,0,1]],[0,"Default",0,1]],[[76,208,0,69,65,0,1.5708,1,0.5,0.5,0,0,[]],10,10,[],[[0,0,0,0,1]],[0,"Default",0,1]],[[73,285,0,66,65,0,-1.5708,1,0.5,0.5,0,0,[]],11,11,[],[[0,0,0,0,1]],[0,"Default",0,1]],[[278,-40,0,14,10,0,0,1,0.5,0.518519,0,0,[]],14,17,[],[[400,0,0,0,1,1]],[0,"Default",0,1]],[[12,10,0,477,22,0,0,1,0,0,0,0,[]],15,18,[],[[0,0,0,0,1]],["Text",0,"12pt Arial","rgb(255,255,255)",
0,0,0,0,0]],[[333,7,0,205,52,0,0,1,0,0,0,0,[]],18,36,[],[],["Go to menu",0,"20pt Arial","rgb(255,255,255)",0,0,0,0,0]]],[]]],[],[]],["Layout 2",1280,1024,r,"Event sheet 2",7198639164183389,[["Layer 0",0,4687830931768662,g,[255,255,255],r,1,1,1,r,1,0,0,[[[-5,-3,0,513,507,0,0,1,0,0,0,0,[]],6,21,[],[],[0,0]],[[-3,-5,0,511,508,0,0,1,0,0,0,0,[]],4,20,[],[],[0,0]],[[73,116,0,401,96,0,0,1,0,0,0,0,[]],17,22,[],[],["Game over",0,"bold italic 48pt Arial","rgb(255,255,255)",0,0,0,0,0]],[[169,209,0,205,52,0,
0,1,0,0,0,0,[]],18,23,[],[],["Go to menu",0,"20pt Arial","rgb(255,255,255)",0,0,0,0,0]]],[]]],[],[]],["Menu",1280,1024,r,"Event sheet 3",8496745363709141,[["Layer 0",0,0xc67ce22ed7b80,g,[255,255,255],r,1,1,1,r,1,0,0,[[[-1,-7,0,491,335,0,0,1,0,0,0,0,[]],6,24,[],[],[0,0]],[[-2,-5,0,487,329,0,0,1,0,0,0,0,[]],4,25,[],[],[0,0]],[[118,99,0,250,250,0,0,1,0.5,0.5,0,0,[]],23,37,[],[],[0,"Default",0,1]],[[271,149,0,149,53,0,0,1,0,0,0,0,[]],6,27,[],[],[0,0]],[[312,156,0,151,50,0,0,1,0,0,0,0,[]],19,26,[],[],
["Play",0,"bold italic 24pt Arial","rgb(255,255,255)",0,0,0,0,0]],[[272,211,0,146,50,0,0,1,0,0,0,0,[]],6,28,[],[],[0,0]],[[297,219,0,121,47,0,0,1,0,0,0,0,[]],20,29,[],[],["About",0,"bold italic 24pt Arial","rgb(255,255,255)",0,0,0,0,0]]],[]]],[],[]],["About",1280,1024,r,"Event sheet 4",7826205787574097,[["Layer 0",0,0x4a287959cdb6a,g,[255,255,255],r,1,1,1,r,1,0,0,[[[-5,-4,0,492,328,0,0,1,0,0,0,0,[]],6,30,[],[],[0,0]],[[-1,-1,0,484,322,0,0,1,0,0,0,0,[]],4,31,[],[],[0,0]],[[4,6,0,157,35,0,0,1,0,0,0,
0,[]],6,33,[],[],[0,0]],[[8,9,0,205,52,0,0,1,0,0,0,0,[]],18,32,[],[],["Go to menu",0,"20pt Arial","rgb(255,255,255)",0,0,0,0,0]],[[29,66,0,372,24,0,0,1,0,0,0,0,[]],21,34,[],[],["Developer - Anton Tomilin",0,"12pt Arial","rgb(255,255,255)",0,0,0,0,0]],[[29,89,0,342,219,0,0,1,0,0,0,0,[]],22,35,[],[],["Powered by Scirra Construct 2. Version 1.0. Exclusive For Firefox OS",0,"12pt Arial","rgb(255,255,255)",0,0,0,0,0]]],[]]],[],[]]],[["Event sheet 1",[[1,"health",0,200,r,r,6375309688001909],[1,"score",
0,0,r,r,5300448304579541],[0,q,r,9136344814765716,[[5,gc.prototype.k.Xf,"Car",0,r,r,r,4737112602542108]],[[5,W.prototype.u.uh,q,0xa0a2444a5eaed,[[1,[2,"walk"]],[3,1]]]]],[0,q,r,8852182476144797,[[5,gc.prototype.k.Xf,"Car",0,r,g,r,678616566492575]],[[5,W.prototype.u.uh,q,6956637401949625,[[1,[2,"default"]],[3,1]]]]],[0,q,r,6637295498770074,[[1,Z.prototype.k.sh,q,0,r,r,r,0xaf2c44d689935,[[4,11]]]],[[5,gc.prototype.u.ef,"Car",6114967200101547,[[3,3]]]]],[0,q,r,6990939356500187,[[1,Z.prototype.k.sh,q,
0,r,r,r,7155140917895851,[[4,8]]]],[[5,gc.prototype.u.ef,"Car",8780962266396447,[[3,0]]],[5,gc.prototype.u.ef,"Car",9117777622305068,[[3,2]]]]],[0,q,r,0xc17c007be65fb,[[1,Z.prototype.k.sh,q,0,r,r,r,0xf65ccbd9d541d,[[4,9]]]],[[5,gc.prototype.u.ef,"Car",0x4a88a4fe054df,[[3,1]]],[5,gc.prototype.u.ef,"Car",7731642776071503,[[3,2]]]]],[0,q,r,6325699505420918,[[1,Z.prototype.k.sh,q,0,r,r,r,8666419759458059,[[4,10]]]],[[5,gc.prototype.u.ef,"Car",0x488beec68539f,[[3,2]]]]],[0,q,r,5013367241347393,[[1,Z.prototype.k.Hd,
q,1,r,r,r,0xb6dff3d3d5ede,[[4,7]]]],[[-1,U.prototype.u.rh,q,8946906248492661,[[4,12],[5,[0,1]],[0,[20,5,W.prototype.ga.Aj,r,q]],[0,[20,5,W.prototype.ga.Bj,r,q]]]],[12,W.prototype.u.qm,q,690944570207049,[[0,[20,5,W.prototype.ga.dm,r,q]]]],[3,$b.prototype.u.Play,q,0xf246c6284f1d1,[[2,["lazer fire 1",r]],[3,0],[0,[0,-25]],[1,[2,""]]]]]],[0,q,r,6134601640504596,[[-1,U.prototype.k.jp,q,0,r,r,r,5322956499571296]],[[13,ic.prototype.u.ep,"Turret",0xb3c0ab5eeec4b,[[4,5]]],[15,bc.prototype.u.zp,q,0xd621b1f768499,
[[7,[10,[10,[10,[2,"Score:"],[23,"score"]],[2," Health:"]],[23,"health"]]]]]]],[0,q,r,0x56b8aa3181fb9,[[-1,U.prototype.k.rj,q,0,r,r,r,5446186883970494,[[0,[19,U.prototype.ga.random,[[0,5],[0,10]]]]]]],[[13,hc.prototype.u.kp,"Pathfinding",0xc2877608185c5,[[0,[19,U.prototype.ga.random,[[0,0],[0,500]]]],[0,[19,U.prototype.ga.random,[[0,0],[0,500]]]]]],[13,hc.prototype.u.Bp,"Pathfinding",8916740737208485]]],[0,q,r,9296615590493396,[[13,ic.prototype.k.lm,"Turret",1,r,r,r,6795838417161347]],[[-1,U.prototype.u.rh,
q,6102301204193684,[[4,14],[5,[0,1]],[0,[20,13,W.prototype.ga.Aj,r,q]],[0,[20,13,W.prototype.ga.Bj,r,q]]]],[14,W.prototype.u.qm,q,8028561715061139,[[0,[20,13,W.prototype.ga.dm,r,q]]]],[3,$b.prototype.u.Play,q,0x51023559c62dd,[[2,["sfx5",r]],[3,0],[0,[0,-25]],[1,[2,""]]]]]],[0,q,r,886920401598328,[[13,hc.prototype.k.Xf,"Pathfinding",0,r,r,r,8266005636276862]],[[13,W.prototype.u.uh,q,9406831514233154,[[1,[2,"walk"]],[3,1]]]]],[0,q,r,8823649143018328,[[13,hc.prototype.k.em,"Pathfinding",1,r,r,r,0xc98e466c608a6],
[13,hc.prototype.k.Xf,"Pathfinding",0,r,g,r,57467916399888]],[[13,W.prototype.u.uh,q,7646690509290817,[[1,[2,"default"]],[3,1]]]]],[0,q,r,5740022812497209,[[13,W.prototype.k.uj,q,0,r,r,g,0xb67b90187af8f,[[4,12]]]],[[13,W.prototype.u.dp,q,0x8e5bd837177dc,[[10,0],[7,[0,-1]]]]]],[0,q,r,7529520887475058,[[13,W.prototype.k.fp,q,0,r,r,r,0xf2dfc26bd47e4,[[10,0],[8,2],[7,[0,1]]]]],[[13,W.prototype.u.qj,q,4710262351769919],[-1,U.prototype.u.pj,q,0x4726e5d05c2cd,[[11,"score"],[7,[0,100]]]]]],[0,q,r,0x779644f6ecbed,
[[-1,U.prototype.k.rj,q,0,r,r,r,7735346978706194,[[0,[19,U.prototype.ga.random,[[0,1],[0,10]]]]]]],[[-1,U.prototype.u.rh,q,0xa6e8a74f6ee39,[[4,13],[5,[0,1]],[0,[19,U.prototype.ga.random,[[0,10],[0,500]]]],[0,[19,U.prototype.ga.random,[[0,10],[0,500]]]]]]]],[0,q,r,4878159946823286,[[5,W.prototype.k.uj,q,0,r,r,g,0xb43889362690e,[[4,14]]]],[[14,W.prototype.u.qj,q,7751670474411522],[-1,U.prototype.u.pj,q,8331664091953222,[[11,"health"],[7,[0,-1]]]]]],[0,q,r,0x8519ef3fced85,[[-1,U.prototype.k.rj,q,0,r,
r,r,5910166422238689,[[0,[19,U.prototype.ga.random,[[0,15],[0,60]]]]]]],[[-1,U.prototype.u.rh,q,9710444885398562,[[4,16],[5,[0,1]],[0,[19,U.prototype.ga.random,[[0,10],[0,500]]]],[0,[19,U.prototype.ga.random,[[0,10],[0,500]]]]]]]],[0,q,r,4791400986251746,[[16,W.prototype.k.uj,q,0,r,r,g,4717184861770653,[[4,5]]]],[[-1,U.prototype.u.pj,q,0xe0d9165a2a15f,[[11,"health"],[7,[0,100]]]],[16,W.prototype.u.qj,q,6407227814720168]]],[0,q,r,0xbb98f5e906b0f,[[-1,U.prototype.k.gp,q,0,r,r,r,0x6efb7ca0b2361,[[11,
"health"],[8,2],[7,[0,1]]]]],[[-1,U.prototype.u.df,q,0xf5d28a07322b0,[[6,"Layout 2"]]],[-1,U.prototype.u.vh,q,9726917203018628,[[11,"score"],[7,[0,0]]]],[-1,U.prototype.u.vh,q,0x8154efb2718e2,[[11,"health"],[7,[0,200]]]]]],[0,q,r,0x9532d50f3348f,[[1,Z.prototype.k.Hd,q,1,r,r,r,0xa352006c83faf,[[4,18]]]],[[-1,U.prototype.u.df,q,587936669757485,[[6,"Menu"]]],[-1,U.prototype.u.vh,q,0xbd16c9b4eb5cc,[[11,"score"],[7,[0,0]]]],[-1,U.prototype.u.vh,q,8302487169398988,[[11,"health"],[7,[0,200]]]]]],[0,q,r,
0xcc5377c84e0d1,[[-1,U.prototype.k.gm,q,1,r,r,r,6755083565635644]],[[3,$b.prototype.u.Play,q,0x55ca1ce3cd895,[[2,["dj antony ufa - 2d (original soundtrack - robot's fight mobile game)",r]],[3,1],[0,[0,25]],[1,[2,""]]]]]],[0,q,r,0x6473eb5893ed,[[-1,U.prototype.k.fm,q,1,r,r,r,5545229178173957]],[[3,$b.prototype.u.Cp,q,9010569256596358]]]]],["Event sheet 2",[[0,q,r,7556943431804291,[[1,Z.prototype.k.Hd,q,1,r,r,r,0xd6dcf227e858d,[[4,18]]]],[[-1,U.prototype.u.df,q,352922035408514,[[6,"Menu"]]]]]]],["Event sheet 3",
[[0,q,r,0xa83ebc5c6ff82,[[1,Z.prototype.k.Hd,q,1,r,r,r,0xe7630d148e831,[[4,19]]]],[[-1,U.prototype.u.df,q,4709204225017998,[[6,"Layout 1"]]]]],[0,q,r,373166086286092,[[1,Z.prototype.k.Hd,q,1,r,r,r,7941140921093464,[[4,20]]]],[[-1,U.prototype.u.df,q,0xc6aa20eedb999,[[6,"About"]]]]]]],["Event sheet 4",[[0,q,r,0x3c2b8f72f2a43,[[1,Z.prototype.k.Hd,q,1,r,r,r,8189311197174878,[[4,18]]]],[[-1,U.prototype.u.df,q,7059538626660778,[[6,"Menu"]]]]]]]],"media/",r,480,320,4,g,r,r,"1.1",1,r,0,g,38,r,[]]};
