// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var m=void 0,p=!0,r=null,u=!1;function x(){return function(){}}function aa(a){return function(b){this[a]=b}}function A(a){return function(){return this[a]}}function da(a){return function(){return a}}var D,ha,ia,ja,ka,la,ma,na,oa,pa,qa,ra,sa,ua,va,wa,xa,ya,za,Aa,Ba,Ca,Da,Ea,Fa,Ha,Ia,Ja,Ka,La,Ma,Na,Pa,Qa,Ra,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,db,eb,fb,gb,hb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb={};
"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(a){return a.__proto__}:function(a){return a.constructor.prototype});
(function(){function a(a,b,c,f){this.set(a,b,c,f)}function b(){this.Ad=this.zd=this.Cd=this.Bd=this.Qd=this.Pd=this.qc=this.pc=0}function c(){this.nh={};this.rk=0;this.kn=[];this.Hl=p}function d(){this.ae=this.Dp=this.y=this.B=0}function e(a){this.fd=[];this.bn(a)}ia=function(a){window.console&&window.console.log&&window.console.log(a)};ha=function(a){return a};ja=function(a){return"undefined"===typeof a};ka=function(a){return"number"===typeof a};la=function(a){return"string"===typeof a};ma=function(a){return 0<
a&&0===(a-1&a)};na=function(a){return 0>a?-a:a};oa=function(a,b){return a>b?a:b};pa=function(a,b){return a<b?a:b};qa=Math.PI;ra=function(a){return a|0};sa=function(a,b,c,f,q,d,e,g){if(oa(a,c)<pa(q,e)||pa(a,c)>oa(q,e)||oa(b,f)<pa(d,g)||pa(b,f)>oa(d,g))return u;var s=q-a+e-c,y=d-b+g-f;a=c-a;b=f-b;q=e-q;d=g-d;g=na(b*q-d*a);return na(q*y-d*s)<=g&&na(a*y-b*s)<=g};a.prototype.set=function(a,b,c,f){this.left=a;this.top=b;this.right=c;this.bottom=f};a.prototype.width=function(){return this.right-this.left};
a.prototype.height=function(){return this.bottom-this.top};a.prototype.offset=function(a,b){this.left+=a;this.top+=b;this.right+=a;this.bottom+=b;return this};a.prototype.eB=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};a.prototype.Le=function(a,b){return a>=this.left&&a<=this.right&&b>=this.top&&b<=this.bottom};ua=a;b.prototype.et=function(a){this.pc=a.left;this.qc=a.top;this.Pd=a.right;this.Qd=a.top;this.Bd=a.right;this.Cd=a.bottom;this.zd=a.left;
this.Ad=a.bottom};b.prototype.cx=function(a,b){if(0===b)this.et(a);else{var c=Math.sin(b),f=Math.cos(b),q=a.left*c,d=a.top*c,e=a.right*c,c=a.bottom*c,g=a.left*f,s=a.top*f,y=a.right*f,f=a.bottom*f;this.pc=g-d;this.qc=s+q;this.Pd=y-d;this.Qd=s+e;this.Bd=y-c;this.Cd=f+e;this.zd=g-c;this.Ad=f+q}};b.prototype.offset=function(a,b){this.pc+=a;this.qc+=b;this.Pd+=a;this.Qd+=b;this.Bd+=a;this.Cd+=b;this.zd+=a;this.Ad+=b;return this};b.prototype.Nu=function(a){a.left=pa(pa(this.pc,this.Pd),pa(this.Bd,this.zd));
a.top=pa(pa(this.qc,this.Qd),pa(this.Cd,this.Ad));a.right=oa(oa(this.pc,this.Pd),oa(this.Bd,this.zd));a.bottom=oa(oa(this.qc,this.Qd),oa(this.Cd,this.Ad))};b.prototype.Le=function(a,b){var c=this.Pd-this.pc,f=this.Qd-this.qc,q=this.Bd-this.pc,d=this.Cd-this.qc,e=a-this.pc,g=b-this.qc,s=c*c+f*f,y=c*q+f*d,f=c*e+f*g,B=q*q+d*d,F=q*e+d*g,J=1/(s*B-y*y),c=(B*f-y*F)*J,s=(s*F-y*f)*J;if(0<=c&&0<s&&1>c+s)return p;c=this.zd-this.pc;f=this.Ad-this.qc;s=c*c+f*f;y=c*q+f*d;f=c*e+f*g;J=1/(s*B-y*y);c=(B*f-y*F)*J;s=
(s*F-y*f)*J;return 0<=c&&0<s&&1>c+s};b.prototype.Wh=function(a,b){switch(a){case 0:return b?this.pc:this.qc;case 1:return b?this.Pd:this.Qd;case 2:return b?this.Bd:this.Cd;case 3:return b?this.zd:this.Ad;case 4:return b?this.pc:this.qc;default:return b?this.pc:this.qc}};b.prototype.Ij=function(){return(this.pc+this.Pd+this.Bd+this.zd)/4};b.prototype.Jj=function(){return(this.qc+this.Qd+this.Cd+this.Ad)/4};b.prototype.dB=function(a){var b=a.Ij(),c=a.Jj();if(this.Le(b,c))return p;b=this.Ij();c=this.Jj();
if(a.Le(b,c))return p;var f,q,d,e,g,s,y,B;for(y=0;4>y;y++)for(B=0;4>B;B++)if(b=this.Wh(y,p),c=this.Wh(y,u),f=this.Wh(y+1,p),q=this.Wh(y+1,u),d=a.Wh(B,p),e=a.Wh(B,u),g=a.Wh(B+1,p),s=a.Wh(B+1,u),sa(b,c,f,q,d,e,g,s))return p;return u};va=b;wa=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a};xa=function(a,b){var c,f;b=ra(b);if(!(0>b||b>=a.length))if(0===b)a.shift();else if(b===a.length-1)a.pop();else{c=b;for(f=a.length-1;c<f;c++)a[c]=a[c+1];a.length=f}};ya=function(a,b){a.length=
b.length;var c,f;c=0;for(f=b.length;c<f;c++)a[c]=b[c]};za=function(a,b){var c=a.indexOf(b);-1!==c&&xa(a,c)};Aa=function(a){return a/(180/qa)};Ba=function(a){return a*(180/qa)};Ca=function(a){a%=360;0>a&&(a+=360);return a};Da=function(a){a%=2*qa;0>a&&(a+=2*qa);return a};Ea=function(a){return Ca(Ba(a))};Fa=function(a){return Da(Aa(a))};Ha=function(a,b,c,f){return Math.atan2(f-b,c-a)};Ia=function(a,b){if(a===b)return 0;var c=Math.sin(a),f=Math.cos(a),q=Math.sin(b),d=Math.cos(b),c=c*q+f*d;return 1<=c?
0:-1>=c?qa:Math.acos(c)};Ja=function(a,b,c){var f=Math.sin(a),q=Math.cos(a),d=Math.sin(b),e=Math.cos(b);return Math.acos(f*d+q*e)>c?0<q*d-f*e?Da(a+c):Da(a-c):Da(b)};Ka=function(a,b){var c=Math.sin(a),f=Math.cos(a),q=Math.sin(b),d=Math.cos(b);return 0>=f*q-c*d};La=function(a,b,c,f,q,d){if(0===c)return d?a:b;var e=Math.sin(c);c=Math.cos(c);a-=f;b-=q;var g=a*e;a=a*c-b*e;b=b*c+g;return d?a+f:b+q};Ma=function(a,b,c,f){a=c-a;b=f-b;return Math.sqrt(a*a+b*b)};Na=function(a,b){return!a!==!b};Pa=function(a){for(var b in a)if(a.hasOwnProperty(b))return p;
return u};Qa=function(a){for(var b in a)a.hasOwnProperty(b)&&delete a[b]};var g=+new Date;Ra=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()-g};c.prototype.contains=function(a){return this.nh.hasOwnProperty(a.toString())};c.prototype.add=function(a){var b=a.toString();this.nh.hasOwnProperty(b)||(this.nh[b]=
a,this.rk++,this.Hl=u);return this};c.prototype.remove=function(a){a=a.toString();this.nh.hasOwnProperty(a)&&(delete this.nh[a],this.rk--,this.Hl=u);return this};c.prototype.clear=function(){Qa(this.nh);this.rk=0;this.kn.length=0;this.Hl=p;return this};c.prototype.fm=function(){return 0===this.rk};c.prototype.count=A("rk");c.prototype.UC=function(){if(!this.Hl){this.kn.length=this.rk;var a,b=0;for(a in this.nh)this.nh.hasOwnProperty(a)&&(this.kn[b++]=this.nh[a]);this.Hl=p}};c.prototype.Ji=function(){this.UC();
return this.kn};Ta=c;d.prototype.add=function(a){this.y=a-this.B;this.Dp=this.ae+this.y;this.B=this.Dp-this.ae-this.y;this.ae=this.Dp};d.prototype.reset=function(){this.ae=this.Dp=this.y=this.B=0};Ua=d;Va=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};e.prototype.bn=function(a){this.Nw=a;this.Ig=a.length/2;this.fd.length=a.length;this.Dq=this.Eq=-1;this.Pu=0};e.prototype.pk=function(){return!this.Nw.length};e.prototype.Bp=function(a,b,c,f,q){this.fd.length=8;this.Ig=4;var d=this.fd;
d[0]=a.pc-b;d[1]=a.qc-c;d[2]=a.Pd-b;d[3]=a.Qd-c;d[4]=a.Bd-b;d[5]=a.Cd-c;d[6]=a.zd-b;d[7]=a.Ad-c;this.Eq=f;this.Dq=q};e.prototype.bx=function(a){this.Ig=a.Ig;ya(this.fd,a.fd)};e.prototype.fk=function(a,b,c){if(!(this.Eq===a&&this.Dq===b&&this.Pu===c)){this.Eq=a;this.Dq=b;this.Pu=c;var f,q,d,e=0,g=1,s=this.Nw,y=this.fd;0!==c&&(e=Math.sin(c),g=Math.cos(c));c=0;for(f=this.Ig;c<f;c++)q=s[2*c]*a,d=s[2*c+1]*b,y[2*c]=q*g-d*e,y[2*c+1]=d*g+q*e}};e.prototype.Le=function(a,b){var c=this.fd;if(a===c[0]&&b===c[1])return p;
var f,q,d,e=this.Ig,g=c[0],s=g,y=c[1],B=y;for(f=1;f<e;f++)q=c[2*f],d=c[2*f+1],q<g&&(g=q),q>s&&(s=q),d<y&&(y=d),d>B&&(B=d);q=g-110;var y=y-101,s=s+131,B=B+120,F,J,I=0,L=0;for(f=0;f<e;f++)d=c[2*f],g=c[2*f+1],F=c[2*((f+1)%e)],J=c[2*((f+1)%e)+1],sa(q,y,a,b,d,g,F,J)&&I++,sa(s,B,a,b,d,g,F,J)&&L++;return 1===I%2||1===L%2};e.prototype.Jv=function(a,b,c){var f=a.fd,q=this.fd;if(this.Le(f[0]+b,f[1]+c)||a.Le(q[0]-b,q[1]-c))return p;var d,e,g,s,y,B,F,J,I,L,G,H;d=0;for(e=this.Ig;d<e;d++){y=q[2*d];B=q[2*d+1];F=
q[2*((d+1)%e)];J=q[2*((d+1)%e)+1];g=0;for(s=a.Ig;g<s;g++)if(I=f[2*g]+b,L=f[2*g+1]+c,G=f[2*((g+1)%s)]+b,H=f[2*((g+1)%s)+1]+c,sa(y,B,F,J,I,L,G,H))return p}return u};Wa=e;var f="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");Xa=function(a){return 0>=a||11<=a?"source-over":f[a-1]};Ya=function(a,b,c){if(c)switch(a.td=c.ONE,a.nd=c.ONE_MINUS_SRC_ALPHA,b){case 1:a.td=c.ONE;a.nd=c.ONE;break;case 3:a.td=c.ONE;a.nd=c.ZERO;break;
case 4:a.td=c.ONE_MINUS_DST_ALPHA;a.nd=c.ONE;break;case 5:a.td=c.DST_ALPHA;a.nd=c.ZERO;break;case 6:a.td=c.ZERO;a.nd=c.SRC_ALPHA;break;case 7:a.td=c.ONE_MINUS_DST_ALPHA;a.nd=c.ZERO;break;case 8:a.td=c.ZERO;a.nd=c.ONE_MINUS_SRC_ALPHA;break;case 9:a.td=c.DST_ALPHA;a.nd=c.ONE_MINUS_SRC_ALPHA;break;case 10:a.td=c.ONE_MINUS_DST_ALPHA,a.nd=c.SRC_ALPHA}};Za=function(a){return Math.round(1E6*a)/1E6}})();var wb="undefined"!==typeof Float32Array?Float32Array:Array;
function xb(a){var b=new wb(3);a&&(b[0]=a[0],b[1]=a[1],b[2]=a[2]);return b}function yb(a){var b=new wb(16);a&&(b[0]=a[0],b[1]=a[1],b[2]=a[2],b[3]=a[3],b[4]=a[4],b[5]=a[5],b[6]=a[6],b[7]=a[7],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]);return b}function zb(a,b){b[0]=a[0];b[1]=a[1];b[2]=a[2];b[3]=a[3];b[4]=a[4];b[5]=a[5];b[6]=a[6];b[7]=a[7];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]}
function Ab(a,b){var c=b[0],d=b[1];b=b[2];a[0]*=c;a[1]*=c;a[2]*=c;a[3]*=c;a[4]*=d;a[5]*=d;a[6]*=d;a[7]*=d;a[8]*=b;a[9]*=b;a[10]*=b;a[11]*=b}
function Bb(a,b,c,d){d||(d=yb());var e,g,f,n,l,h,k,q,t=a[0],v=a[1];a=a[2];g=c[0];f=c[1];e=c[2];c=b[1];h=b[2];t===b[0]&&v===c&&a===h?(a=d,a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1):(c=t-b[0],h=v-b[1],k=a-b[2],q=1/Math.sqrt(c*c+h*h+k*k),c*=q,h*=q,k*=q,b=f*k-e*h,e=e*c-g*k,g=g*h-f*c,(q=Math.sqrt(b*b+e*e+g*g))?(q=1/q,b*=q,e*=q,g*=q):g=e=b=0,f=h*g-k*e,n=k*b-c*g,l=c*e-h*b,(q=Math.sqrt(f*f+n*n+l*l))?(q=1/q,f*=q,n*=q,l*=q):l=n=f=0,
d[0]=b,d[1]=f,d[2]=c,d[3]=0,d[4]=e,d[5]=n,d[6]=h,d[7]=0,d[8]=g,d[9]=l,d[10]=k,d[11]=0,d[12]=-(b*t+e*v+g*a),d[13]=-(f*t+n*v+l*a),d[14]=-(c*t+h*v+k*a),d[15]=1)}
(function(){function a(a){this.height=this.width=0;this.Qu=xb([0,0,100]);this.$v=xb([0,0,0]);this.Dx=xb([0,1,0]);this.At=xb([1,1,1]);this.ws=yb();this.tf=yb();this.Rv=yb();this.Rq=yb();this.na=a;this.Gv()}function b(a,c,b){this.na=a;this.cn=c;this.name=b;this.pf=a.getAttribLocation(c,"aPos");this.li=a.getAttribLocation(c,"aTex");this.Yv=a.getUniformLocation(c,"matP");this.zk=a.getUniformLocation(c,"matMV");this.Ak=a.getUniformLocation(c,"opacity");this.Zv=a.getUniformLocation(c,"samplerFront");this.To=
a.getUniformLocation(c,"samplerBack");this.yk=a.getUniformLocation(c,"destStart");this.xk=a.getUniformLocation(c,"destEnd");this.$r=a.getUniformLocation(c,"seconds");this.Zr=a.getUniformLocation(c,"pixelWidth");this.Yr=a.getUniformLocation(c,"pixelHeight");this.Xr=a.getUniformLocation(c,"layerScale");this.Ak&&a.uniform1f(this.Ak,1);this.Zv&&a.uniform1i(this.Zv,0);this.To&&a.uniform1i(this.To,1);this.yk&&a.uniform2f(this.yk,0,0);this.xk&&a.uniform2f(this.xk,1,1);this.nj=u}function c(a,c){this.type=
a;this.Ea=c;this.na=c.na;this.qg=this.zf=this.zw=0;this.za=this.Qj=r;this.ft=[]}function d(a){--a;for(var c=1;32>c;c<<=1)a|=a>>c;return a+1}a.prototype.Gv=function(){var a=this.na,c;this.Sv=1;this.sj=r;this.av=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.DEPTH_TEST);this.JE=a.getParameter(a.MAX_TEXTURE_SIZE);this.Tv=a.ONE;this.Qv=a.ONE_MINUS_SRC_ALPHA;this.Ms=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,
this.Ms);this.pn=Array(4);this.hn=Array(4);for(c=0;4>c;c++)this.pn[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.pn[c]),this.hn[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.hn[c]);this.fh=0;this.cB=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.cB);this.xt=new Float32Array(16E3);this.mt=new Float32Array(16E3);this.fC=new Float32Array(32E3);for(var b=new Uint16Array(12E3),d=c=0;12E3>c;)b[c++]=d,b[c++]=d+1,b[c++]=d+2,b[c++]=d,b[c++]=d+2,b[c++]=d+3,d+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,
b,a.STATIC_DRAW);this.Ns=this.Rg=0;this.Mc=[];c=this.Oq({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.Mc.push(c);c=this.Oq({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.Mc.push(c);for(var e in Cb)Cb.hasOwnProperty(e)&&this.Mc.push(this.Oq(Cb[e],
"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}",e));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,r);this.Yh=[];this.ah=0;this.of=this.pe=u;this.bv=this.qm=-1;this.Ml=r;this.uA=a.createFramebuffer();this.Sw=r;this.Hi=xb([0,0,0]);a=a.getParameter(a.ALIASED_POINT_SIZE_RANGE);this.KE=a[0];this.IE=a[1];
this.Mg(0)};a.prototype.Oq=function(a,c,d){var e=this.na,k=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(k,a.src);e.compileShader(k);if(!e.getShaderParameter(k,e.COMPILE_STATUS))return e.deleteShader(k),r;var q=e.createShader(e.VERTEX_SHADER);e.shaderSource(q,c);e.compileShader(q);if(!e.getShaderParameter(q,e.COMPILE_STATUS))return e.deleteShader(k),e.deleteShader(q),r;c=e.createProgram();e.attachShader(c,k);e.attachShader(c,q);e.linkProgram(c);if(!e.getProgramParameter(c,e.LINK_STATUS))return e.deleteShader(k),
e.deleteShader(q),e.deleteProgram(c),r;e.useProgram(c);e.validateProgram(c);e.deleteShader(k);e.deleteShader(q);d=new b(e,c,d);d.Zq=a.Zq||0;d.$q=a.$q||0;d.Zu=!!a.Zu;d.Fu=!!a.Fu;d.qa=a.qa||[];a=0;for(k=d.qa.length;a<k;a++)d.qa[a][1]=e.getUniformLocation(c,d.qa[a][0]),e.uniform1f(d.qa[a][1],0);return d};a.prototype.qr=function(a){var c,b;c=0;for(b=this.Mc.length;c<b;c++)if(this.Mc[c].name===a)return c;return-1};a.prototype.Mw=function(a,c,b){var d=[0,0,this.width,this.height],e=this.tf,q=this.ws,g=
[0,0,0,0,0,0,0,0];g[0]=e[0]*a+e[4]*c+e[12];g[1]=e[1]*a+e[5]*c+e[13];g[2]=e[2]*a+e[6]*c+e[14];g[3]=e[3]*a+e[7]*c+e[15];g[4]=q[0]*g[0]+q[4]*g[1]+q[8]*g[2]+q[12]*g[3];g[5]=q[1]*g[0]+q[5]*g[1]+q[9]*g[2]+q[13]*g[3];g[6]=q[2]*g[0]+q[6]*g[1]+q[10]*g[2]+q[14]*g[3];g[7]=-g[2];0!==g[7]&&(g[7]=1/g[7],g[4]*=g[7],g[5]*=g[7],g[6]*=g[7],b[0]=(0.5*g[4]+0.5)*d[2]+d[0],b[1]=(0.5*g[5]+0.5)*d[3]+d[1])};a.prototype.dt=function(a,c,b){if(!(this.width===a&&this.height===c&&!b)){this.ci();this.width=a;this.height=c;this.na.viewport(0,
0,a,c);c=a/c;var d=this.ws,e;e=1*Math.tan(45*Math.PI/360);c*=e;a=-c;b=-e;d||(d=yb());var q=c-a,g=e-b;d[0]=2/q;d[1]=0;d[2]=0;d[3]=0;d[4]=0;d[5]=2/g;d[6]=0;d[7]=0;d[8]=(c+a)/q;d[9]=(e+b)/g;d[10]=-1001/999;d[11]=-1;d[12]=0;d[13]=0;d[14]=-2E3/999;d[15]=0;Bb(this.Qu,this.$v,this.Dx,this.tf);a=[0,0];c=[0,0];this.Mw(0,0,a);this.Mw(1,1,c);this.At[0]=1/(c[0]-a[0]);this.At[1]=-1/(c[1]-a[1]);a=0;for(c=this.Mc.length;a<c;a++)b=this.Mc[a],b.nj=u,b.Yv&&(this.na.useProgram(b.cn),this.na.uniformMatrix4fv(b.Yv,u,
this.ws));this.na.useProgram(this.Mc[this.qm].cn);this.na.bindTexture(this.na.TEXTURE_2D,r);this.sj=r}};a.prototype.Kg=function(){Bb(this.Qu,this.$v,this.Dx,this.tf);Ab(this.tf,this.At)};a.prototype.translate=function(a,c){if(!(0===a&&0===c)){this.Hi[0]=a;this.Hi[1]=c;this.Hi[2]=0;var b=this.tf,d=this.Hi,e=d[0],q=d[1],d=d[2];b[12]=b[0]*e+b[4]*q+b[8]*d+b[12];b[13]=b[1]*e+b[5]*q+b[9]*d+b[13];b[14]=b[2]*e+b[6]*q+b[10]*d+b[14];b[15]=b[3]*e+b[7]*q+b[11]*d+b[15]}};a.prototype.scale=function(a,c){1===a&&
1===c||(this.Hi[0]=a,this.Hi[1]=c,this.Hi[2]=1,Ab(this.tf,this.Hi))};a.prototype.Ys=function(a){if(0!==a){var c=this.tf,b,d=Math.sin(a);a=Math.cos(a);var e=c[0],q=c[1],g=c[2],v=c[3],w=c[4],s=c[5],y=c[6],B=c[7];b?c!==b&&(b[8]=c[8],b[9]=c[9],b[10]=c[10],b[11]=c[11],b[12]=c[12],b[13]=c[13],b[14]=c[14],b[15]=c[15]):b=c;b[0]=e*a+w*d;b[1]=q*a+s*d;b[2]=g*a+y*d;b[3]=v*a+B*d;b[4]=e*-d+w*a;b[5]=q*-d+s*a;b[6]=g*-d+y*a;b[7]=v*-d+B*a}};a.prototype.Pg=function(){for(var a=u,c=0;16>c;c++)if(this.Rv[c]!==this.tf[c]){a=
p;break}a&&(a=this.Yf(),a.type=5,a.za?zb(this.tf,a.za):a.za=yb(this.tf),zb(this.tf,this.Rv),this.of=this.pe=u)};c.prototype.Mz=function(){this.na.bindTexture(this.na.TEXTURE_2D,this.Qj)};c.prototype.Jz=function(){var a=this.zw,c=this.Ea;c.av=a;c=c.Ml;c.Ak&&this.na.uniform1f(c.Ak,a)};c.prototype.Gz=function(){this.na.drawElements(this.na.TRIANGLES,this.qg,this.na.UNSIGNED_SHORT,2*this.zf)};c.prototype.Iz=function(){this.na.blendFunc(this.zf,this.qg)};c.prototype.Nz=function(){var a,c,b,d=this.Ea.Mc,
e=this.Ea.bv;a=0;for(c=d.length;a<c;a++)b=d[a],a===e&&b.zk?(this.na.uniformMatrix4fv(b.zk,u,this.za),b.nj=p):b.nj=u;zb(this.za,this.Ea.Rq)};c.prototype.Hz=function(){var a=this.na,c=this.Ea;this.Qj?(a.bindFramebuffer(a.FRAMEBUFFER,c.uA),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Qj,0)):(a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,r,0),a.bindFramebuffer(a.FRAMEBUFFER,r))};c.prototype.Bz=function(){var a=this.na;0===this.zf?(a.clearColor(this.za[0],
this.za[1],this.za[2],this.za[3]),a.clear(a.COLOR_BUFFER_BIT)):(a.enable(a.SCISSOR_TEST),a.scissor(this.za[0],this.za[1],this.za[2],this.za[3]),a.clearColor(0,0,0,0),a.clear(this.na.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST))};c.prototype.Fz=function(){var a=this.na,c=this.Ea,b=c.Mc[1];a.useProgram(b.cn);!b.nj&&b.zk&&(a.uniformMatrix4fv(b.zk,u,c.Rq),b.nj=p);a.enableVertexAttribArray(b.pf);a.bindBuffer(a.ARRAY_BUFFER,c.Ms);a.vertexAttribPointer(b.pf,4,a.FLOAT,u,0,0);a.drawArrays(a.POINTS,this.zf/
4,this.qg);b=c.Ml;a.useProgram(b.cn);0<=b.pf&&(a.enableVertexAttribArray(b.pf),a.bindBuffer(a.ARRAY_BUFFER,c.pn[c.fh]),a.vertexAttribPointer(b.pf,2,a.FLOAT,u,0,0));0<=b.li&&(a.enableVertexAttribArray(b.li),a.bindBuffer(a.ARRAY_BUFFER,c.hn[c.fh]),a.vertexAttribPointer(b.li,2,a.FLOAT,u,0,0))};c.prototype.Kz=function(){var a=this.na,c=this.Ea,b=c.Mc[this.zf];c.bv=this.zf;c.Ml=b;a.useProgram(b.cn);!b.nj&&b.zk&&(a.uniformMatrix4fv(b.zk,u,c.Rq),b.nj=p);b.Ak&&a.uniform1f(b.Ak,c.av);0<=b.pf&&(a.enableVertexAttribArray(b.pf),
a.bindBuffer(a.ARRAY_BUFFER,c.pn[c.fh]),a.vertexAttribPointer(b.pf,2,a.FLOAT,u,0,0));0<=b.li&&(a.enableVertexAttribArray(b.li),a.bindBuffer(a.ARRAY_BUFFER,c.hn[c.fh]),a.vertexAttribPointer(b.li,2,a.FLOAT,u,0,0))};c.prototype.Lz=function(){var a,c,b=this.Ea.Ml,d=this.na;b.To&&(d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,this.Qj),d.activeTexture(d.TEXTURE0));b.Zr&&d.uniform1f(b.Zr,this.za[0]);b.Yr&&d.uniform1f(b.Yr,this.za[1]);b.yk&&d.uniform2f(b.yk,this.za[2],this.za[3]);b.xk&&d.uniform2f(b.xk,
this.za[4],this.za[5]);b.Xr&&d.uniform1f(b.Xr,this.za[6]);b.$r&&d.uniform1f(b.$r,Ra()/1E3);if(b.qa.length){a=0;for(c=b.qa.length;a<c;a++)d.uniform1f(b.qa[a][1],this.ft[a])}};a.prototype.Yf=function(){this.ah===this.Yh.length&&this.Yh.push(new c(0,this));return this.Yh[this.ah++]};a.prototype.ci=function(){if(0!==this.ah&&!this.na.isContextLost()){var a=this.na;0<this.Ns&&(a.bindBuffer(a.ARRAY_BUFFER,this.Ms),a.bufferData(a.ARRAY_BUFFER,this.fC.subarray(0,this.Ns),a.STREAM_DRAW),c&&(0<=c.pf&&"<point>"===
c.name)&&a.vertexAttribPointer(c.pf,4,a.FLOAT,u,0,0));if(0<this.Rg){var c=this.Ml;a.bindBuffer(a.ARRAY_BUFFER,this.pn[this.fh]);a.bufferData(a.ARRAY_BUFFER,this.xt.subarray(0,this.Rg),a.STREAM_DRAW);c&&(0<=c.pf&&"<point>"!==c.name)&&a.vertexAttribPointer(c.pf,2,a.FLOAT,u,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.hn[this.fh]);a.bufferData(a.ARRAY_BUFFER,this.mt.subarray(0,this.Rg),a.STREAM_DRAW);c&&(0<=c.li&&"<point>"!==c.name)&&a.vertexAttribPointer(c.li,2,a.FLOAT,u,0,0)}for(var b,a=0,c=this.ah;a<c;a++)switch(b=
this.Yh[a],b.type){case 1:b.Gz();break;case 2:b.Mz();break;case 3:b.Jz();break;case 4:b.Iz();break;case 5:b.Nz();break;case 6:b.Hz();break;case 7:b.Bz();break;case 8:b.Fz();break;case 9:b.Kz();break;case 10:b.Lz()}this.Ns=this.Rg=this.ah=0;this.of=this.pe=u;this.fh++;4<=this.fh&&(this.fh=0)}};a.prototype.Uk=function(a){if(a!==this.Sv){var c=this.Yf();c.type=3;this.Sv=c.zw=a;this.of=this.pe=u}};a.prototype.yf=function(a){if(a!==this.sj){var c=this.Yf();c.type=2;this.sj=c.Qj=a;this.of=this.pe=u}};a.prototype.yi=
function(a,c){if(!(a===this.Tv&&c===this.Qv)){var b=this.Yf();b.type=4;b.zf=a;b.qg=c;this.Tv=a;this.Qv=c;this.of=this.pe=u}};a.prototype.$w=function(){this.yi(this.na.ONE,this.na.ONE_MINUS_SRC_ALPHA)};a.prototype.rp=function(a,c,b,d,e,q,g,v){15992<=this.Rg&&this.ci();var w=this.Rg,s=this.xt,y=this.mt;if(this.pe)this.Yh[this.ah-1].qg+=6;else{var B=this.Yf();B.type=1;B.zf=3*(w/4);B.qg=6;this.pe=p;this.of=u}s[w]=a;y[w++]=0;s[w]=c;y[w++]=0;s[w]=b;y[w++]=1;s[w]=d;y[w++]=0;s[w]=e;y[w++]=1;s[w]=q;y[w++]=
1;s[w]=g;y[w++]=0;s[w]=v;y[w++]=1;this.Rg=w};a.prototype.vi=function(a,c,b,d,e,q,g,v,w){15992<=this.Rg&&this.ci();var s=this.Rg,y=this.xt,B=this.mt;if(this.pe)this.Yh[this.ah-1].qg+=6;else{var F=this.Yf();F.type=1;F.zf=3*(s/4);F.qg=6;this.pe=p;this.of=u}y[s]=a;B[s++]=w.left;y[s]=c;B[s++]=w.top;y[s]=b;B[s++]=w.right;y[s]=d;B[s++]=w.top;y[s]=e;B[s++]=w.right;y[s]=q;B[s++]=w.bottom;y[s]=g;B[s++]=w.left;y[s]=v;B[s++]=w.bottom;this.Rg=s};a.prototype.Mg=function(a){if(this.qm!==a){if(!this.Mc[a]){if(0===
this.qm)return;a=0}var c=this.Yf();c.type=9;this.qm=c.zf=a;this.of=this.pe=u}};a.prototype.Vm=function(a){a=this.Mc[a];return!(!a.yk&&!a.xk)};a.prototype.Ps=function(a){return this.Mc[a].Zu};a.prototype.kC=function(a){a=this.Mc[a];return 0!==a.Zq||0!==a.$q};a.prototype.JA=function(a){return this.Mc[a].Zq};a.prototype.KA=function(a){return this.Mc[a].$q};a.prototype.LA=function(a,c){return this.Mc[a].qa[c][2]};a.prototype.pp=function(a){return this.Mc[a].Fu};a.prototype.Vk=function(a,c,b,d,e,q,g,v,
w){var s=this.Mc[this.qm];if(s.Zr||s.Yr||s.$r||s.To||s.yk||s.xk||s.Xr||w.length){s=this.Yf();s.type=10;s.za?zb(this.tf,s.za):s.za=yb();s.za[0]=c;s.za[1]=b;s.za[2]=d;s.za[3]=e;s.za[4]=q;s.za[5]=g;s.za[6]=v;s.Qj=a;if(w.length){s.ft.length=w.length;a=0;for(c=w.length;a<c;a++)s.ft[a]=w[a]}this.of=this.pe=u}};a.prototype.clear=function(a,c,b,d){var e=this.Yf();e.type=7;e.zf=0;e.za||(e.za=yb());e.za[0]=a;e.za[1]=c;e.za[2]=b;e.za[3]=d;this.of=this.pe=u};a.prototype.clearRect=function(a,c,b,d){var e=this.Yf();
e.type=7;e.zf=1;e.za||(e.za=yb());e.za[0]=a;e.za[1]=c;e.za[2]=b;e.za[3]=d;this.of=this.pe=u};a.prototype.jC=function(){this.ci();this.na.flush()};var e=[],g={};a.prototype.Xv=function(a,c,b){var h;h=!!u;c=!!c;var k=a.src+","+h+","+c+(h?",undefined":""),q=r;if("undefined"!==typeof a.src&&g.hasOwnProperty(k))return q=g[k],q.Sn++,q;this.ci();var t=this.na,v=ma(a.width)&&ma(a.height),q=t.createTexture();t.bindTexture(t.TEXTURE_2D,q);t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,p);var w=t.RGBA,s=t.RGBA,
y=t.UNSIGNED_BYTE;if(b)switch(b){case 1:s=w=t.RGB;break;case 2:y=t.UNSIGNED_SHORT_4_4_4_4;break;case 3:y=t.UNSIGNED_SHORT_5_5_5_1;break;case 4:s=w=t.RGB,y=t.UNSIGNED_SHORT_5_6_5}!v&&h?(b=document.createElement("canvas"),b.width=d(a.width),b.height=d(a.height),b.getContext("2d").drawImage(a,0,0,a.width,a.height,0,0,b.width,b.height),t.texImage2D(t.TEXTURE_2D,0,w,s,y,b)):t.texImage2D(t.TEXTURE_2D,0,w,s,y,a);h?(t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,
t.REPEAT)):(t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE));c?(t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),v?(t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR_MIPMAP_LINEAR),t.generateMipmap(t.TEXTURE_2D)):t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR)):(t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST));t.bindTexture(t.TEXTURE_2D,
r);this.sj=r;q.Gl=a.width;q.Fl=a.height;q.Sn=1;q.Ou=k;e.push(q);return g[k]=q};a.prototype.eh=function(a,c,b,d){this.ci();var k=this.na,q=k.createTexture();k.bindTexture(k.TEXTURE_2D,q);k.texImage2D(k.TEXTURE_2D,0,k.RGBA,a,c,0,k.RGBA,d?k.UNSIGNED_SHORT_4_4_4_4:k.UNSIGNED_BYTE,r);k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.CLAMP_TO_EDGE);k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.CLAMP_TO_EDGE);k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,b?k.LINEAR:k.NEAREST);k.texParameteri(k.TEXTURE_2D,
k.TEXTURE_MIN_FILTER,b?k.LINEAR:k.NEAREST);k.bindTexture(k.TEXTURE_2D,r);this.sj=r;q.Gl=a;q.Fl=c;e.push(q);return q};a.prototype.ZC=function(a,c,b){this.ci();var d=this.na;d.bindTexture(d.TEXTURE_2D,c);d.texImage2D(d.TEXTURE_2D,0,d.RGBA,d.RGBA,b?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,a);d.bindTexture(d.TEXTURE_2D,r);this.sj=r};a.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Sn&&1<a.Sn?a.Sn--:(this.ci(),this.na.bindTexture(this.na.TEXTURE_2D,r),this.sj=r,za(e,a),"undefined"!==typeof a.Ou&&
delete g[a.Ou],this.na.deleteTexture(a)))};a.prototype.Gh=function(a){if(a!==this.Sw){var c=this.Yf();c.type=6;this.Sw=c.Qj=a;this.of=this.pe=u}};$a=a})();
(function(){function a(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var c=this;this.rj="undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||"undefined"!==typeof window.device.phonegap);this.Nf=!!a.dc;this.nk="undefined"!==typeof window.AppMobi||this.Nf;if(this.rg=!!window.c2cocoonjs)CocoonJS.App.onSuspended.addEventListener(function(){c.setSuspended(p)}),CocoonJS.App.onActivated.addEventListener(function(){c.setSuspended(u)});this.Wd=this.Nf||this.rg;this.Do=
/tizen/i.test(navigator.userAgent);this.Dr=/android/i.test(navigator.userAgent)&&!this.Do;this.wE=/msie/i.test(navigator.userAgent);this.Jo=/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent);this.Ov=/ipad/i.test(navigator.userAgent);this.Io=this.Jo||this.Ov;this.Kv=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent);this.kB=!this.Kv&&/safari/i.test(navigator.userAgent);this.Mv=/windows/i.test(navigator.userAgent);this.gm="undefined"!==typeof window.c2nodewebkit;
this.hB="undefined"!==typeof window.is_scirra_arcade;this.mB=!!("undefined"!==typeof window.c2isWindows8&&window.c2isWindows8);this.nB=!!("undefined"!==typeof window.c2isWindowsPhone8&&window.c2isWindowsPhone8);this.iB=!!("undefined"!==typeof window.c2isBlackberry10&&window.c2isBlackberry10);this.devicePixelRatio=1;this.fi=this.rj||this.nk||this.rg||this.Dr||this.Io||this.nB||this.iB||this.Do;this.fi||(this.fi=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet)/i.test(navigator.userAgent));
if("undefined"!==typeof cr_is_preview&&!this.gm&&("?nw"===window.location.search||/nodewebkit/i.test(navigator.userAgent)))this.gm=p;this.canvas=a;this.Ru=document.getElementById("c2canvasdiv");this.ub=this.Ea=this.na=r;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return u};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return u};this.Nf&&(window.c2runtime=this);this.gm&&(window.ME=function(a){a.preventDefault();return u},window.NE=function(a){a.preventDefault();
return u});this.width=a.width;this.height=a.height;this.uj=this.width;this.tj=this.height;this.tb=p;this.jm=u;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.ea=[];this.Tb=[];this.Rr={};this.Pf=[];this.Yq={};this.hj=[];this.Ki=[];this.Mp=[];this.jz=[];this.jg=new Ta;this.Er=u;this.Pe=0;this.Gr=u;this.ig=[];this.Lv=u;this.ph=this.Gd=this.wm=this.wp="";this.en=this.ix=u;this.$C=this.Lq=this.Vo=this.ai=this.Da=0;this.Ih=1;this.Qe=new Ua;this.Oo=0;this.kw=p;this.ip=
this.oo=this.jj=this.Bf=this.rm=this.gr=0;this.Il=r;this.eo=[];this.Xq=[];this.ho=-1;this.as=[[]];this.qt=this.Uo=0;this.qp(r);this.cs=[];this.Wo=-1;this.pw=this.Om=0;this.Wv=p;this.Pl=0;this.gn=[];this.nt=this.Rs=0;this.nm=p;this.So=0;this.Co=u;this.IC=0;this.yo=u;this.Cs=new Ta;this.Ds=new Ta;this.tp=[];this.Nj=new Wa([]);this.lt=new Wa([]);this.dk=[];this.Ln={};this.hk={};this.ck={};this.Zk={};this.Lu={};this.Of=this.Re=this.Vv=this.Qo=this.qb=r;this.Yk=this.Jr=u;this.hr=[r,r];this.Ul=0;this.ov=
"";this.Nk={};this.Cp=this.wk=r;this.GC="";this.load();this.devicePixelRatio=(this.hm=!this.Wd&&this.XC&&(this.Io||this.Do))?window.devicePixelRatio||1:1;this.jd();var b;"undefined"!==typeof jQuery&&0<this.mf&&this.setSize(jQuery(window).width(),jQuery(window).height());try{if(this.Wz&&(this.rg||!this.Wd)){b={depth:u,antialias:!this.fi};var d=p;if(this.Kv&&this.Mv){var e=document.createElement("canvas");if("OES_texture_float,OES_standard_derivatives,WEBKIT_WEBGL_lose_context"===(e.getContext("webgl",
b)||e.getContext("experimental-webgl",b)).getSupportedExtensions().toString())d=u}d&&(this.na=a.getContext("webgl",b)||a.getContext("experimental-webgl",b))}}catch(f){}if(this.na){this.Wd||(this.$d=document.createElement("canvas"),jQuery(this.$d).appendTo(this.canvas.parentNode),this.$d.oncontextmenu=da(u),this.$d.onselectstart=da(u),this.$d.width=a.width,this.$d.height=a.height,this.Iw(),this.Ks=this.$d.getContext("2d"));this.Ea=new $a(this.na,this.fi);this.Ea.dt(a.width,a.height);this.ub=r;this.canvas.addEventListener("webglcontextlost",
function(a){a.preventDefault();c.XB();window.cr_setSuspended(p)},u);this.canvas.addEventListener("webglcontextrestored",function(){c.Ea.Gv();c.Ea.dt(c.Ea.width,c.Ea.height,p);c.Re=r;c.Of=r;c.hr[0]=r;c.hr[1]=r;c.YB();c.tb=p;window.cr_setSuspended(u)},u);var k,g,h,l,n;a=0;for(b=this.ea.length;a<b;a++){k=this.ea[a];d=0;for(e=k.Ia.length;d<e;d++)h=k.Ia[d],h.gd=this.Ea.qr(h.id),this.Yk=this.Yk||this.Ea.Vm(h.gd)}a=0;for(b=this.Pf.length;a<b;a++){l=this.Pf[a];d=0;for(e=l.Ia.length;d<e;d++)h=l.Ia[d],h.gd=
this.Ea.qr(h.id);d=0;for(e=l.bb.length;d<e;d++){n=l.bb[d];k=0;for(g=n.Ia.length;k<g;k++)h=n.Ia[k],h.gd=this.Ea.qr(h.id),this.Yk=this.Yk||this.Ea.Vm(h.gd)}}}else{if(0<this.mf&&this.Nf){this.canvas=r;document.oncontextmenu=da(u);document.onselectstart=da(u);this.ub=AppMobi.canvas.getContext("2d");try{this.ub.samplingMode=this.yc?"smooth":"sharp",this.ub.globalScale=1,this.ub.HTML5CompatibilityMode=p}catch(G){}0!==this.width&&0!==this.height&&(this.ub.width=this.width,this.ub.height=this.height)}this.ub||
(this.rg?(b={antialias:!!this.yc},this.ub=a.getContext("2d",b)):this.ub=a.getContext("2d"),this.ub.webkitImageSmoothingEnabled=this.yc,this.ub.mozImageSmoothingEnabled=this.yc,this.ub.msImageSmoothingEnabled=this.yc,this.ub.imageSmoothingEnabled=this.yc);this.Ks=this.$d=r}this.ux=function(){c.kc()};window!=window.top&&(!this.Wd&&!this.mB)&&(document.addEventListener("mousedown",function(){window.focus()},p),document.addEventListener("touchstart",function(){window.focus()},p));"undefined"!==typeof cr_is_preview&&
(this.rg&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),"?continuous"===window.location.search&&(ia("Reloading for continuous preview"),this.wm="__c2_continuouspreview",this.en=p),this.eC&&!this.fi&&(jQuery(window).focus(function(){c.setSuspended(u)}),jQuery(window).blur(function(){c.setSuspended(p)})));this.go();this.ca={}}}function b(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function c(a,c,d,e){var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=b;
f.onerror=e;f.onsuccess=function(b){b=b.target.result;b.onerror=e;b.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:c}).onsuccess=d}}function d(a,c,d){var e=indexedDB.open("_C2SaveStates");e.onupgradeneeded=b;e.onerror=d;e.onsuccess=function(b){b=b.target.result;b.onerror=d;var e=b.transaction(["saves"]).objectStore("saves").get(a);e.onsuccess=function(){e.result?c(e.result.data):c(r)}}}function e(){ia("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():
"?continuous"===window.location.search?window.location.reload(p):window.location+="?continuous"}function g(a){var c,b={};for(c in a)a.hasOwnProperty(c)&&!(a[c]instanceof Ta)&&"undefined"===typeof a[c].bh&&"mouseOverInverted"!==c&&(b[c]=a[c]);return b}a.prototype.setSize=function(a,c){var b=this.aB&&this.Jo&&!navigator.standalone&&!this.Wd&&!this.rj,d=0;b&&(this.Jo?d=60:this.Dr&&(d=56),c+=d);var e=0,f=0,k=0,g=0,h=0,h=this.mf,l=document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||
this.Co;l&&0<this.Ul&&(h=this.Ul);4<=h?(k=this.Ae/this.ze,a/c>k?(k*=c,5===h?(h=k/this.Ae,1<h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),k=this.Ae*h,g=this.ze*h,e=(a-k)/2,f=(c-g)/2,a=k,c=g):(e=(a-k)/2,a=k)):(g=a/k,5===h?(h=g/this.ze,1<h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),k=this.Ae*h,g=this.ze*h,e=(a-k)/2,f=(c-g)/2,a=k):f=(c-g)/2,c=g),l&&!this.gm&&(f=e=0),e=Math.floor(e),f=Math.floor(f),a=Math.floor(a),c=Math.floor(c)):this.gm&&(this.Co&&0===this.rv)&&(e=Math.floor((a-this.Ae)/2),f=Math.floor((c-
this.ze)/2),a=this.Ae,c=this.ze);this.hm&&(this.Ov&&1<this.devicePixelRatio)&&(1024<=a&&(a=1023),1024<=c&&(c=1023));l=this.devicePixelRatio;this.width=a*l;this.height=c*l;this.tb=p;this.Ru&&!this.Wd&&(jQuery(this.Ru).css({width:a+"px",height:c+"px","margin-left":e,"margin-top":f}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:a+"px",height:c+"px"}));this.canvas&&(this.canvas.width=a*l,this.canvas.height=c*l,this.hm&&jQuery(this.canvas).css({width:a+"px",height:c+"px"}));this.$d&&
(this.$d.width=a,this.$d.height=c);this.Ea&&this.Ea.dt(a,c);this.Nf&&this.ub&&(this.ub.width=a,this.ub.height=c);this.ub&&(this.ub.webkitImageSmoothingEnabled=this.yc,this.ub.mozImageSmoothingEnabled=this.yc,this.ub.msImageSmoothingEnabled=this.yc,this.ub.imageSmoothingEnabled=this.yc);b&&0<d&&window.setTimeout(function(){window.scrollTo(0,1)},100)};a.prototype.XB=function(){this.Jr=p;var a,c,b;a=0;for(c=this.ea.length;a<c;a++)b=this.ea[a],b.Hs&&b.Hs()};a.prototype.YB=function(){this.Jr=u;var a,c,
b;a=0;for(c=this.ea.length;a<c;a++)b=this.ea[a],b.vw&&b.vw()};a.prototype.Iw=function(){if(!this.Wd){var a=document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||this.Co?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.$d).css(a)}};var f=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;a.prototype.setSuspended=function(a){var c;
if(a&&!this.jm){ia("[Construct 2] Suspending");this.jm=p;0!==this.Rs&&f&&f(this.Rs);0!==this.nt&&clearTimeout(this.nt);a=0;for(c=this.gn.length;a<c;a++)this.gn[a](p)}else if(!a&&this.jm){ia("[Construct 2] Resuming");this.jm=u;this.Oo=Ra();this.rm=Ra();a=this.oo=0;for(c=this.gn.length;a<c;a++)this.gn[a](u);this.kc()}};a.prototype.hz=function(a){this.gn.push(a)};a.prototype.load=function(){var a=Eb();this.name=a[0];this.pv=a[1];this.mf=a[11];this.rv=a[11];if(this.Wd&&(4<=a[11]||0===a[11]))ia("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),
this.rv=this.mf=3;this.ut=a[17];this.xm=a[18];0===this.xm&&(this.wk=new Image,this.wk.src="loading-logo.png");this.Om=a[20];this.Ng=new E(this);var c,b,d,e,f,k,g,h,l;c=0;for(b=a[2].length;c<b;c++)g=a[2][c],Fb(g),l=new g[0](this),l.ht=g[1],l.gi=g[2],l.mw=g[9],l.ib&&l.ib(),this.plugins.push(l);a=Eb();c=0;for(b=a[3].length;c<b;c++){g=a[3][c];f=g[1];l=r;d=0;for(e=this.plugins.length;d<e;d++)if(this.plugins[d]instanceof f){l=this.plugins[d];break}var n=new l.ac(l);n.name=g[0];n.Qa=g[2];n.Cr=g[3].slice(0);
n.YC=g[3].length;n.oz=g[4];n.xA=g[5];n.Va=g[11];n.Qa?(n.hp=[],n.ng=this.Pl++,n.Hb=r):(n.hp=r,n.ng=-1,n.Hb=[]);n.jo=r;n.jk=r;n.jv=r;n.Xd=u;n.Ud=r;g[6]?(n.qx=g[6][0],n.rx=g[6][1],n.OC=g[6][2]):(n.qx=r,n.rx=0,n.OC=0);n.le=g[7]?g[7]:r;n.index=c;n.G=[];n.ao=[];n.Ci=[new ab(n)];n.gh=0;n.jf=r;n.Ei=p;n.Np=Gb;n.DA=Hb;n.IA=Ib;n.Za=Jb;n.Xm=Kb;n.Ym=Lb;n.ti=Mb;n.qo=Nb;n.jr=Ob;n.mr=Pb;n.$g=Qb;n.ca={};n.toString=Rb;n.Tb=[];d=0;for(e=g[8].length;d<e;d++){h=g[8][d];var G=h[1],H=r;f=0;for(k=this.Tb.length;f<k;f++)if(this.Tb[f]instanceof
G){H=this.Tb[f];break}H||(H=new G(this),H.Nm=new Ta,H.ib&&H.ib(),this.Tb.push(H));f=new H.ac(H,n);f.name=h[0];f.Va=h[2];f.ib();n.Tb.push(f)}n.global=g[9];n.Fr=g[10];n.Ia=[];d=0;for(e=g[12].length;d<e;d++)n.Ia.push({id:g[12][d][0],name:g[12][d][1],gd:-1,dd:p,index:d});(!this.ut||n.Qa||n.Fr||!l.gi)&&n.ib();n.name&&(this.types[n.name]=n);this.ea.push(n);l.ht&&(d=new l.Db(n),d.uid=this.Om++,d.Ow=this.pw++,d.am=0,d.Zl=Sb,d.toString=Tb,d.da=g[13],d.ib(),n.G.push(d))}c=0;for(b=a[4].length;c<b;c++){f=a[4][c];
k=this.ea[f[0]];d=1;for(e=f.length;d<e;d++)g=this.ea[f[d]],g.Hb.push(k),k.hp.push(g)}c=0;for(b=a[22].length;c<b;c++){f=a[22][c];k=[];d=0;for(e=f.length;d<e;d++)k.push(this.ea[f[d]]);d=0;for(e=k.length;d<e;d++)k[d].Xd=p,k[d].Ud=k}if(0<this.Pl){c=0;for(b=this.ea.length;c<b;c++)if(g=this.ea[c],!g.Qa&&g.Hb.length){g.jo=Array(this.Pl);g.jk=Array(this.Pl);g.jv=Array(this.Pl);n=[];d=H=G=h=0;for(e=g.Hb.length;d<e;d++){l=g.Hb[d];g.jo[l.ng]=h;h+=l.YC;g.jk[l.ng]=G;G+=l.oz;g.jv[l.ng]=H;H+=l.xA;f=0;for(k=l.Ia.length;f<
k;f++)n.push(wa({},l.Ia[f]))}g.Ia=n.concat(g.Ia);d=0;for(e=g.Ia.length;d<e;d++)g.Ia[d].index=d}}c=0;for(b=a[5].length;c<b;c++)g=a[5][c],d=new bb(this,g),this.Rr[d.name]=d,this.Pf.push(d);c=0;for(b=a[6].length;c<b;c++)g=a[6][c],d=new db(this,g),this.Yq[d.name]=d,this.hj.push(d);c=0;for(b=this.hj.length;c<b;c++)this.hj[c].oc();c=0;for(b=this.Mp.length;c<b;c++)this.Mp[c].oc();this.Mp.length=0;this.ov=a[7];this.si=a[8];this.Ae=a[9];this.ze=a[10];this.Mn=1;this.Wz=a[12];this.yc=a[13];this.Tu=a[14];this.$E=
a[15];c=a[16];2===c&&(c=this.Jo?1:0);this.XC=0!==c;this.aB=a[19];this.eC=a[21];this.dn=Date.now()};a.prototype.vA=function(a){var c,b;c=0;for(b=this.Ki.length;c<b;c++)if(this.Ki[c].wz===a)return this.Ki[c];return r};a.prototype.Gu=function(){var a=0,c=0,b=p,d,e;d=0;for(e=this.Ki.length;d<e;d++){var f=this.Ki[d].vz;if(!f||0>=f)f=5E4;a+=f;this.Ki[d].complete||this.Ki[d].loaded?c+=f:b=u}this.Mj=0==a?0:c/a;return b};a.prototype.go=function(){if(this.ub||this.Ea){var a=this.ub||this.Ks;this.$d&&this.Iw();
this.Mj=0;this.Uv=-1;if(this.Gu())this.ZA();else{var c=Date.now()-this.dn,b=1;this.Do&&(b=this.devicePixelRatio);if(a){if(3!==this.xm&&500<=c&&this.Uv!=this.Mj){a.clearRect(0,0,this.width,this.height);var c=this.width/(2*b),b=this.height/(2*b),d=0===this.xm&&this.wk.complete,e=40,f=0,k=80;d&&(k=this.wk.width,e=k/2,f=this.wk.height/2,a.drawImage(this.wk,ra(c-e),ra(b-f)));1>=this.xm?(c=ra(c-e)+0.5,b=ra(b+(f+(d?12:0)))+0.5,a.fillStyle="DodgerBlue",a.fillRect(c,b,Math.floor(k*this.Mj),6),a.strokeStyle=
"black",a.strokeRect(c,b,k,6),a.strokeStyle="white",a.strokeRect(c-1,b-1,k+2,8)):2===this.xm&&(a.font="12pt Arial",a.fillStyle="#999",a.YE="middle",d=Math.round(100*this.Mj)+"%",e=a.measureText?a.measureText(d):r,a.fillText(d,c-(e?e.width:0)/2,b))}this.Uv=this.Mj}setTimeout(function(a){return function(){a.go()}}(this),100)}}};a.prototype.ZA=function(){this.$d&&(this.canvas.parentNode.removeChild(this.$d),this.$d=this.Ks=r);this.dn=Date.now();this.rm=Ra();var a,c,b;if(this.ut){a=0;for(c=this.ea.length;a<
c;a++)b=this.ea[a],!b.Qa&&(!b.Fr&&b.ic.gi)&&b.ib()}else this.nm=u;a=0;for(c=this.Pf.length;a<c;a++)this.Pf[a].xz();2<=this.mf&&(a=this.Ae/this.ze,c=this.width/this.height,this.Mn=2!==this.mf&&c>a||2===this.mf&&c<a?this.height/this.ze:this.width/this.Ae);this.pv?this.Rr[this.pv].jt():this.Pf[0].jt();this.ut||(this.So=1,this.trigger(E.prototype.O.Xt,r));this.kc();this.Nf&&AppMobi.webview.execute("onGameReady();")};var n=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||
window.msRequestAnimationFrame||window.oRequestAnimationFrame;a.prototype.kc=function(){if(this.qb){if(this.hB){var a=jQuery(window).width(),c=jQuery(window).height();if(this.uj!==a||this.tj!==c)this.uj=a,this.tj=c,this.setSize(a,c)}a=Ra();this.nm&&(c=this.Gu(),this.So=this.Mj,c&&(this.nm=u,this.Mj=1,this.trigger(E.prototype.O.Xt,r)));this.sB();if((this.tb||this.rg)&&!this.Jr&&!this.en)this.tb=u,this.Ea?this.Lf():this.hh(),this.Cp&&(this.canvas&&this.canvas.toDataURL&&(this.GC=this.canvas.toDataURL(this.Cp[0],
this.Cp[1]),this.trigger(E.prototype.O.uy,r)),this.Cp=r);this.Bf++;this.jj++;this.oo++;this.Vo+=Ra()-a;this.jm||(n?this.Rs=n(this.ux,this.canvas):this.nt=setTimeout(this.ux,this.fi?1:16))}};a.prototype.sB=function(){var a,c,b,d,e,f,k,g,h;a=Ra();1E3<=a-this.rm&&(this.rm+=1E3,this.gr=this.oo,this.oo=0,this.Lq=this.Vo,this.Vo=0);this.kw&&(0!==this.Oo&&(c=a-this.Oo,0===c?(this.$C++,10<=this.aF&&(this.kw=u),this.ai=1/60):(this.ai=c/1E3,0.5<this.ai?this.ai=0:0.1<this.ai&&(this.ai=0.1))),this.Oo=a);this.Da=
this.ai*this.Ih;this.Qe.add(this.Da);a=document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||this.Co;2<=this.mf||a&&0<this.Ul?(c=this.Ae/this.ze,b=this.width/this.height,d=this.mf,a&&0<this.Ul&&(d=this.Ul),this.Mn=2!==d&&b>c||2===d&&b<c?this.height/this.ze:this.width/this.Ae,this.qb&&(this.qb.Yw(this.qb.scrollX),this.qb.Zw(this.qb.scrollY))):this.Mn=1;this.jd();this.Pe++;this.Ng.vC();this.Pe--;this.jd();this.Pe++;a=0;for(c=this.ea.length;a<c;a++)if(k=this.ea[a],!(k.Qa||!k.Tb.length&&
!k.Hb.length)){b=0;for(d=k.G.length;b<d;b++){g=k.G[b];e=0;for(f=g.Ya.length;e<f;e++)g.Ya[e].kc()}}a=0;for(c=this.ea.length;a<c;a++)if(k=this.ea[a],!(k.Qa||!k.Tb.length&&!k.Hb.length)){b=0;for(d=k.G.length;b<d;b++){g=k.G[b];e=0;for(f=g.Ya.length;e<f;e++)h=g.Ya[e],h.iC&&h.iC()}}b=this.Cs.Ji();a=0;for(c=b.length;a<c;a++)b[a].kc();this.Pe--;this.$A();for(a=0;this.Il&&10>a++;)this.gv(this.Il);a=0;for(c=this.hj.length;a<c;a++)this.hj[a].sr=u;this.qb.fo&&this.qb.fo.Cc();this.tp.length=0;this.Wv=u;this.Pe++;
a=0;for(c=this.ea.length;a<c;a++)if(k=this.ea[a],!(k.Qa||!k.Tb.length&&!k.Hb.length)){b=0;for(d=k.G.length;b<d;b++){g=k.G[b];e=0;for(f=g.Ya.length;e<f;e++)h=g.Ya[e],h.Fp&&h.Fp()}}b=this.Ds.Ji();a=0;for(c=b.length;a<c;a++)b[a].Fp();this.Pe--};a.prototype.gv=function(a){var c=this.qb;this.qb.KC();var b,d,e,f,k,g,h;if(this.Ea){b=0;for(d=this.ea.length;b<d;b++)k=this.ea[b],k.Qa||k.Cx&&((!k.global||0===k.G.length)&&-1===a.dm.indexOf(k))&&k.Cx()}c==a&&(this.Ng.Ee.length=0);a.jt();b=0;for(d=this.ea.length;b<
d;b++)if(k=this.ea[b],k.global||k.ic.ht){a=0;for(c=k.G.length;a<c;a++)if(g=k.G[a],g.Gs&&g.Gs(),g.Ya){e=0;for(f=g.Ya.length;e<f;e++)h=g.Ya[e],h.Gs&&h.Gs()}}this.Wv=this.tb=p;this.jd()};a.prototype.Gp=function(a){this.Cs.add(a)};a.prototype.PC=function(a){this.Ds.add(a)};a.prototype.Wl=function(a){return!a||-1===a.Kj?this.Da:this.ai*a.Kj};a.prototype.hh=function(){this.qb.hh(this.ub);this.Nf&&this.ub.present()};a.prototype.Lf=function(){this.qb.Lf(this.Ea)};a.prototype.Aq=function(a){a&&this.eo.push(a)};
a.prototype.rC=function(a){za(this.eo,a)};a.prototype.lj=function(a){return this.Nk[a.toString()]};a.prototype.Oh=function(a){var c,b;if(!this.jg.contains(a)){this.jg.add(a);if(a.Xd){c=0;for(b=a.siblings.length;c<b;c++)this.Oh(a.siblings[c])}this.Er&&this.jg.kn.push(a);this.Pe++;this.trigger(Object.getPrototypeOf(a.type.ic).O.wy,a);this.Pe--}};a.prototype.jd=function(){var a,c,b,d,e,f,k,g,h,n;this.Er=p;d=0;for(f=this.ig.length;d<f;d++){a=this.ig[d];c=a.type;c.G.push(a);c.Ei=p;e=0;for(k=c.Hb.length;e<
k;e++)c.Hb[e].G.push(a),c.Hb[e].Ei=p}this.ig.length=0;f=this.jg.Ji();for(d=0;d<f.length;d++){a=f[d];c=a.type;b=c.G;e=0;for(k=this.eo.length;e<k;e++)this.eo[e](a);za(b,a);a.U&&(xa(a.U.G,a.Oe()),a.U.Fe=p);e=0;for(k=c.Hb.length;e<k;e++)za(c.Hb[e].G,a),c.Hb[e].Ei=p;if(a.Ya){e=0;for(k=a.Ya.length;e<k;e++)b=a.Ya[e],b.Pm&&b.Pm(),b.Aa.Nm.remove(a)}this.Cs.remove(a);this.Ds.remove(a);e=0;for(k=this.Ng.Ee.length;e<k;e++)if(h=this.Ng.Ee[e],h.De.hasOwnProperty(c.index)&&za(h.De[c.index].qj,a),!c.Qa){b=0;for(g=
c.Hb.length;b<g;b++)n=c.Hb[b],h.De.hasOwnProperty(n.index)&&za(h.De[n.index].qj,a)}a.Pm&&a.Pm();this.Nk.hasOwnProperty(a.uid.toString())&&delete this.Nk[a.uid.toString()];this.ip--;64>c.ao.length&&c.ao.push(a);c.Ei=p}this.jg.fm()||(this.tb=p);this.jg.clear();this.Er=u};a.prototype.Nq=function(a,c,b,d){if(a.Qa){var e=ra(Math.random()*a.hp.length);return this.Nq(a.hp[e],c,b,d)}return!a.jf?r:this.$h(a.jf,c,u,b,d,u)};var l=[];a.prototype.$h=function(a,c,b,d,e,k){var f,g,h,n;if(!a)return r;var L=this.ea[a[1]],
G=L.ic.gi;if(this.nm&&G&&!L.Fr||G&&!this.Ea&&11===a[0][11])return r;var H=c;G||(c=r);var z;L.ao.length?(z=L.ao.pop(),z.xf=p,L.ic.Db.call(z,L)):(z=new L.ic.Db(L),z.xf=u);z.uid=b&&!k?a[2]:this.Om++;this.Nk[z.uid.toString()]=z;z.Ow=this.pw++;z.am=0;z.Zl=Sb;L.Ei=p;h=a[3];if(z.xf){f=0;for(g=h.length;f<g;f++)z.Wc[f]=h[f];Qa(z.ca)}else z.Wc=h.slice(0),z.ca={};if(G){var M=a[0];z.x=ja(d)?M[0]:d;z.y=ja(e)?M[1]:e;z.N=M[2];z.width=M[3];z.height=M[4];z.depth=M[5];z.L=M[6];z.opacity=M[7];z.qe=M[8];z.se=M[9];z.Sd=
M[10];f=M[11];!this.Ea&&L.Ia.length&&(z.Sd=f);z.Kl=Xa(z.Sd);this.na&&Ya(z,z.Sd,this.na);if(z.xf){f=0;for(g=M[12].length;f<g;f++){h=0;for(n=M[12][f].length;h<n;h++)z.cc[f][h]=M[12][f][h]}z.Na.set(0,0,0,0);z.Eb.et(z.Na);z.Nn.length=0}else{z.cc=M[12].slice(0);f=0;for(g=z.cc.length;f<g;f++)z.cc[f]=M[12][f].slice(0);z.lb=[];z.Vh=[];z.Vh.length=L.Ia.length;z.Na=new ua(0,0,0,0);z.Eb=new va;z.Nn=[];z.wa=Ub;z.oE=Vb;z.Le=Wb;z.Zb=Xb;z.Oe=Yb}f=0;for(g=L.Ia.length;f<g;f++)z.Vh[f]=p;z.Kh=Zb;z.Kh();z.Ix=!!z.lb.length;
z.Cq=p;z.visible=p;z.Kj=-1;z.U=c;z.Sj=c.G.length;"undefined"===typeof z.mb&&(z.mb=r);this.tb=z.Zh=p}z.toString=Tb;var C;f=l.length=0;for(g=L.Hb.length;f<g;f++)l.push.apply(l,L.Hb[f].Tb);l.push.apply(l,L.Tb);if(z.xf){f=0;for(g=l.length;f<g;f++){var V=l[f];C=z.Ya[f];C.xf=p;V.Aa.Db.call(C,V,z);M=a[4][f];h=0;for(n=M.length;h<n;h++)C.da[h]=M[h];C.ib();V.Aa.Nm.add(z)}}else{z.Ya=[];f=0;for(g=l.length;f<g;f++)V=l[f],C=new V.Aa.Db(V,z),C.xf=u,C.da=a[4][f].slice(0),C.ib(),z.Ya.push(C),V.Aa.Nm.add(z)}M=a[5];
if(z.xf){f=0;for(g=M.length;f<g;f++)z.da[f]=M[f]}else z.da=M.slice(0);this.ig.push(z);c&&c.G.push(z);this.ip++;if(L.Xd){if(z.Xd=p,z.xf?z.siblings.length=0:z.siblings=[],!b&&!k){f=0;for(g=L.Ud.length;f<g;f++)if(L.Ud[f]!==L){if(!L.Ud[f].jf)return r;z.siblings.push(this.$h(L.Ud[f].jf,H,u,G?z.x:d,G?z.y:e,p))}f=0;for(g=z.siblings.length;f<g;f++){z.siblings[f].siblings.push(z);for(h=0;h<g;h++)f!==h&&z.siblings[f].siblings.push(z.siblings[h])}}}else z.Xd=u,z.siblings=r;z.ib();f=0;for(g=z.Ya.length;f<g;f++)z.Ya[f].Jw&&
z.Ya[f].Jw();return z};a.prototype.nr=function(a){var c,b;c=0;for(b=this.qb.bb.length;c<b;c++){var d=this.qb.bb[c];if(d.name.toLowerCase()===a.toLowerCase())return d}return r};a.prototype.Xl=function(a){a=ra(a);0>a&&(a=0);a>=this.qb.bb.length&&(a=this.qb.bb.length-1);return this.qb.bb[a]};a.prototype.Gq=function(a){var c,b;c=0;for(b=a.length;c<b;c++)a[c].Za().sb=p};a.prototype.Xm=function(a){var c,b;c=0;for(b=a.length;c<b;c++)a[c].Xm()};a.prototype.Ym=function(a){var c,b;c=0;for(b=a.length;c<b;c++)a[c].Ym()};
a.prototype.ti=function(a){var c,b;c=0;for(b=a.length;c<b;c++)a[c].ti()};a.prototype.NC=function(a,c,b){var d=a.Za(),e,f,k,g,h,n;if(d.sb){d.sb=u;e=d.G.length=0;for(g=a.G.length;e<g;e++)k=a.G[e],k.Zb(),h=k.U.Dd(c,b,p),n=k.U.Dd(c,b,u),k.Le(h,n)&&d.G.push(k)}else{e=f=0;for(g=d.G.length;e<g;e++)k=d.G[e],k.Zb(),h=k.U.Dd(c,b,p),n=k.U.Dd(c,b,u),k.Le(h,n)&&(d.G[f]=d.G[e],f++);d.G.length=f}a.$g();return d.rr()};a.prototype.Oj=function(a,c){if(!a||!c||a===c||!a.Zh||!c.Zh)return u;a.Zb();c.Zb();var b=a.U,d=
c.U,e,f,k,g,h,n;if(b!==d&&(b.Gg!==d.Gg||d.Hg!==d.Hg||b.scale!==d.scale||b.L!==d.L||b.$f!==d.$f)){h=a.mb&&!a.mb.pk();e=c.mb&&!c.mb.pk();h?(a.mb.fk(a.width,a.height,a.L),this.Nj.bx(a.mb)):this.Nj.Bp(a.Eb,a.x,a.y,a.width,a.height);h=this.Nj;e?(c.mb.fk(c.width,c.height,c.L),this.lt.bx(c.mb)):this.lt.Bp(c.Eb,c.x,c.y,c.width,c.height);n=this.lt;e=0;for(f=h.Ig;e<f;e++)k=h.fd[2*e],g=h.fd[2*e+1],h.fd[2*e]=b.Wb(k+a.x,g+a.y,p),h.fd[2*e+1]=b.Wb(k+a.x,g+a.y,u);e=0;for(f=n.Ig;e<f;e++)k=n.fd[2*e],g=n.fd[2*e+1],
n.fd[2*e]=d.Wb(k+c.x,g+c.y,p),n.fd[2*e+1]=d.Wb(k+c.x,g+c.y,u);return h.Jv(n,0,0)}if(!a.Na.eB(c.Na)||!a.Eb.dB(c.Eb))return u;h=a.mb&&!a.mb.pk();e=c.mb&&!c.mb.pk();if(!h&&!e)return p;h?(a.mb.fk(a.width,a.height,a.L),h=a.mb):(this.Nj.Bp(a.Eb,a.x,a.y,a.width,a.height),h=this.Nj);e?(c.mb.fk(c.width,c.height,c.L),n=c.mb):(this.Nj.Bp(c.Eb,c.x,c.y,c.width,c.height),n=this.Nj);return h.Jv(n,c.x-a.x,c.y-a.y)};new va;new ua(0,0,0,0);a.prototype.zx=function(a,c){if(!c)return u;var b,d,e,f,k;b=0;for(d=a.Tb.length;b<
d;b++)if(a.Tb[b].Aa instanceof c)return p;if(!a.Qa){b=0;for(d=a.Hb.length;b<d;b++){k=a.Hb[b];e=0;for(f=k.Tb.length;e<f;e++)if(k.Tb[e].Aa instanceof c)return p}}return u};a.prototype.Ax=function(a){return this.zx(a,vb.KD)};a.prototype.st=function(a){return this.zx(a,vb.LD)};a.prototype.MA=function(){if(!vb.HC)return r;var a,c;a=0;for(c=this.Tb.length;a<c;a++)if(this.Tb[a]instanceof vb.HC)return this.Tb[a];return r};a.prototype.Pj=function(a){var c=this.MA();if(!c)return r;var b,d,e=c.Nm.Ji(),c=0;for(b=
e.length;c<b;++c)if(d=e[c],d.ca.XE&&this.Oj(a,d))return d;return r};a.prototype.oC=function(a,c,b,d){d=d||50;var e=a.x,f=a.y,k,g=r,h=r;for(k=0;k<d;k++)if(a.x=e+c*k,a.y=f+b*k,a.wa(),!this.Oj(a,g)&&((g=this.Pj(a))&&(h=g),!g&&!g))return h&&this.lC(a,c,b,h),p;a.x=e;a.y=f;a.wa();return u};a.prototype.lC=function(a,c,b,d){var e=2,f,k=u;f=u;for(var g=a.x,h=a.y;16>=e;)f=1/e,e*=2,a.x+=c*f*(k?1:-1),a.y+=b*f*(k?1:-1),a.wa(),this.Oj(a,d)?f=k=p:(f=k=u,g=a.x,h=a.y);f&&(a.x=g,a.y=h,a.wa())};a.prototype.pC=function(a){var c=
0,b=a.x,d=a.y,e=0,f=0,k=0,g=this.Pj(a);if(g){for(;100>=c;){switch(e){case 0:f=0;k=-1;c++;break;case 1:f=1;k=-1;break;case 2:f=1;k=0;break;case 3:k=f=1;break;case 4:f=0;k=1;break;case 5:f=-1;k=1;break;case 6:f=-1;k=0;break;case 7:k=f=-1}e=(e+1)%8;a.x=ra(b+f*c);a.y=ra(d+k*c);a.wa();if(!this.Oj(a,g)&&(g=this.Pj(a),!g))return}a.x=b;a.y=d;a.wa()}};a.prototype.Rw=function(a,c){a.Zh&&c.Zh&&this.tp.push([a,c])};a.prototype.uz=function(a,c){var b,d,e;b=0;for(d=this.tp.length;b<d;b++)if(e=this.tp[b],e[0]==
a&&e[1]==c||e[0]==c&&e[1]==a)return p;return u};a.prototype.sz=function(a,c,b){var d=a.x,e=a.y,f=oa(10,Ma(c,b,d,e)),k=Ha(c,b,d,e),g=this.Pj(a);if(!g)return Da(k+qa);var h=g,n,l,G,H,z=Aa(5);for(n=1;36>n;n++)if(l=k-n*z,a.x=c+Math.cos(l)*f,a.y=b+Math.sin(l)*f,a.wa(),!this.Oj(a,h)&&(h=this.Pj(a),!h)){G=l;break}36===n&&(G=Da(k+qa));h=g;for(n=1;36>n;n++)if(l=k+n*z,a.x=c+Math.cos(l)*f,a.y=b+Math.sin(l)*f,a.wa(),!this.Oj(a,h)&&(h=this.Pj(a),!h)){H=l;break}36===n&&(H=Da(k+qa));a.x=d;a.y=e;a.wa();if(H===G)return H;
a=Ia(H,G)/2;a=Ka(H,G)?Da(G+a+qa):Da(H+a);G=Math.cos(k);k=Math.sin(k);H=Math.cos(a);a=Math.sin(a);c=G*H+k*a;return Ha(0,0,G-2*c*H,k-2*c*a)};var h=[],k=-1;a.prototype.trigger=function(a,c,b){if(!this.qb)return u;var d=this.qb.fo;if(!d)return u;k++;k===h.length?h.push(new Ta):h[k].clear();a=this.xx(a,c,d,b);k--;return a};a.prototype.xx=function(a,c,b,d){var e=h[k];if(e.contains(b))return u;e.add(b);var e=b.Ev.Ji(),f=u,g,n,l;g=0;for(n=e.length;g<n;g++)e[g].gB()&&(l=this.xx(a,c,e[g].cm,d),f=f||l);if(c){l=
this.pt(a,c,c.type.name,b,d);f=f||l;g=0;for(n=c.type.Hb.length;g<n;g++)l=this.pt(a,c,c.type.Hb[g].name,b,d),f=f||l}else l=this.pt(a,c,"system",b,d),f=f||l;return f};a.prototype.pt=function(a,c,b,d,e){var f,k=u,g=u,g="undefined"!==typeof e,h=(g?d.lv:d.yx)[b];if(!h)return k;var n=r;d=0;for(f=h.length;d<f;d++)if(h[d].method==a){n=h[d].io;break}if(!n)return k;a=g?n[e]:n;if(!a)return r;d=0;for(f=a.length;d<f;d++)e=a[d][0],g=a[d][1],g=this.tA(c,b,e,g),k=k||g;return k};a.prototype.tA=function(a,c,b,d){var e,
f,g=u;this.qt++;var h=this.od().md;h&&this.Xm(h.Ai);var n=1<this.qt;this.Xm(b.Ai);n&&this.mC();var l=this.qp(b);l.md=b;a&&(e=this.types[c].Za(),e.sb=u,e.G.length=1,e.G[0]=a,this.types[c].$g());a=p;if(b.parent){c=l.mx;for(e=b.parent;e;)c.push(e),e=e.parent;c.reverse();e=0;for(f=c.length;e<f;e++)if(!c[e].xC()){a=u;break}}a&&(this.jj++,b.Vf?b.wC(d):b.Cc(),g=g||l.uk);this.mp();n&&this.gC();this.ti(b.Ai);h&&this.ti(h.Ai);0===this.Pe&&(0===k&&!this.Gr&&(!this.jg.fm()||this.ig.length))&&this.jd();this.qt--;
return g};a.prototype.kr=function(){var a=this.od();return a.md.Vb[a.tc]};a.prototype.BA=function(){var a=this.od();return a.md.ff[a.Ie]};a.prototype.mC=function(){this.Uo++;this.Uo>=this.as.length&&this.as.push([])};a.prototype.gC=function(){this.Uo--};a.prototype.uv=function(){return this.as[this.Uo]};a.prototype.qp=function(a){this.ho++;this.ho>=this.Xq.length&&this.Xq.push(new eb);var c=this.od();c.reset(a);return c};a.prototype.mp=function(){this.ho--};a.prototype.od=function(){return this.Xq[this.ho]};
a.prototype.nC=function(){this.Wo++;this.Wo>=this.cs.length&&this.cs.push(ha({name:m,index:0,Nd:u}));var a=this.CA();a.name=m;a.index=0;a.Nd=u;return a};a.prototype.hC=function(){this.Wo--};a.prototype.CA=function(){return this.cs[this.Wo]};a.prototype.vv=function(a,c){for(var b,d,e,f,k,g;c;){b=0;for(d=c.Af.length;b<d;b++)if(g=c.Af[b],g instanceof fb&&a.toLowerCase()===g.name.toLowerCase())return g;c=c.parent}b=0;for(d=this.hj.length;b<d;b++){k=this.hj[b];e=0;for(f=k.di.length;e<f;e++)if(g=k.di[e],
g instanceof fb&&a.toLowerCase()===g.name.toLowerCase())return g}return r};a.prototype.wv=function(a){var c,b;c=0;for(b=this.Pf.length;c<b;c++)if(this.Pf[c].Va===a)return this.Pf[c];return r};a.prototype.vo=function(a){var c,b;c=0;for(b=this.ea.length;c<b;c++)if(this.ea[c].Va===a)return this.ea[c];return r};a.prototype.EA=function(a){var c,b;c=0;for(b=this.dk.length;c<b;c++)if(this.dk[c].Va===a)return this.dk[c];return r};a.prototype.$A=function(){var a=this,b=this.wp,f=this.ph,k=this.wm,g=u;this.ix&&
(g=p,b="__c2_continuouspreview",this.ix=u);if(b.length){this.jd();f=this.CC();if(window.indexedDB&&!this.rg)c(b,f,function(){ia("Saved state to IndexedDB storage ("+f.length+" bytes)");a.ph=f;a.trigger(E.prototype.O.kq,r);a.ph="";g&&e()},function(c){try{localStorage.setItem("__c2save_"+b,f),ia("Saved state to WebStorage ("+f.length+" bytes)"),a.ph=f,a.trigger(E.prototype.O.kq,r),a.ph="",g&&e()}catch(d){ia("Failed to save game state: "+c+"; "+d)}});else try{localStorage.setItem("__c2save_"+b,f),ia("Saved state to WebStorage ("+
f.length+" bytes)"),a.ph=f,this.trigger(E.prototype.O.kq,r),a.ph="",g&&e()}catch(h){ia("Error saving to WebStorage: "+h)}this.Gd=this.wm=this.wp=""}k.length&&(window.indexedDB&&!this.rg?d(k,function(c){c?(a.Gd=c,ia("Loaded state from IndexedDB storage ("+a.Gd.length+" bytes)")):(a.Gd=localStorage.getItem("__c2save_"+k)||"",ia("Loaded state from WebStorage ("+a.Gd.length+" bytes)"));a.en=u;a.Gd.length||a.trigger(E.prototype.O.jq,r)},function(){a.Gd=localStorage.getItem("__c2save_"+k)||"";ia("Loaded state from WebStorage ("+
a.Gd.length+" bytes)");a.en=u;a.Gd.length||a.trigger(E.prototype.O.jq,r)}):(this.Gd=localStorage.getItem("__c2save_"+k)||"",ia("Loaded state from WebStorage ("+this.Gd.length+" bytes)"),this.en=u,a.Gd.length||a.trigger(E.prototype.O.jq,r)),this.wp=this.wm="");this.Gd.length&&(this.jd(),this.qB(this.Gd),this.ph=this.Gd,this.trigger(E.prototype.O.yy,r),this.Gd=this.ph="")};a.prototype.CC=function(){var a,c,b,d,e,f,k,h={c2save:p,version:1,rt:{time:this.Qe.ae,timescale:this.Ih,tickcount:this.Bf,execcount:this.jj,
next_uid:this.Om,running_layout:this.qb.Va,start_time_offset:Date.now()-this.dn},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(c=this.ea.length;a<c;a++)if(e=this.ea[a],!e.Qa&&!this.Ax(e)){f={instances:[]};Pa(e.ca)&&(f.ex=g(e.ca));b=0;for(d=e.G.length;b<d;b++)f.instances.push(this.Xw(e.G[b]));h.types[e.Va.toString()]=f}a=0;for(c=this.Pf.length;a<c;a++)b=this.Pf[a],h.layouts[b.Va.toString()]=b.Md();d=h.events.groups;a=0;for(c=this.dk.length;a<c;a++)b=this.dk[a],d[b.Va.toString()]=
!!this.Ln[b.$l];c=h.events.cnds;for(k in this.hk)this.hk.hasOwnProperty(k)&&(a=this.hk[k],Pa(a.ca)&&(c[k]={ex:g(a.ca)}));c=h.events.acts;for(k in this.ck)this.ck.hasOwnProperty(k)&&(a=this.ck[k],Pa(a.ca)&&(c[k]={ex:a.ca}));c=h.events.vars;for(k in this.Zk)if(this.Zk.hasOwnProperty(k)&&(a=this.Zk[k],!a.Eo&&(!a.parent||a.mm)))c[k]=a.data;h.system=this.Ng.Md();return JSON.stringify(h)};a.prototype.Qw=function(){var a,c,b,d,e,f;this.Nk={};a=0;for(c=this.ea.length;a<c;a++)if(b=this.ea[a],!b.Qa){d=0;for(e=
b.G.length;d<e;d++)f=b.G[d],this.Nk[f.uid.toString()]=f}};a.prototype.qB=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){var c=a.rt;this.Qe.reset();this.Qe.ae=c.time;this.Ih=c.timescale;this.Bf=c.tickcount;this.jj=c.execcount;this.dn=Date.now()-c.start_time_offset;var b=c.running_layout;if(b!==this.qb.Va)if(b=this.wv(b))this.gv(b);else return;this.Lv=p;var d,e,f,k,g,h,n;h=a.types;for(e in h)if(h.hasOwnProperty(e)&&(k=this.vo(parseInt(e,10)))&&!k.Qa&&!this.Ax(k)){h[e].ex?k.ca=h[e].ex:Qa(k.ca);
g=k.G;f=h[e].instances;b=0;for(d=pa(g.length,f.length);b<d;b++)this.Wr(g[b],f[b]);b=f.length;for(d=g.length;b<d;b++)this.Oh(g[b]);b=g.length;for(d=f.length;b<d;b++){g=r;if(k.ic.gi&&(g=this.qb.to(f[b].w.l),!g))continue;g=this.$h(k.jf,g,u,0,0,p);this.Wr(g,f[b])}k.Ei=p}this.jd();this.Qw();d=a.layouts;for(e in d)d.hasOwnProperty(e)&&(b=this.wv(parseInt(e,10)))&&b.ue(d[e]);d=a.events.groups;for(e in d)d.hasOwnProperty(e)&&(b=this.EA(parseInt(e,10)))&&(this.Ln[b.$l]=d[e]);b=a.events.cnds;for(e in b)b.hasOwnProperty(e)&&
this.hk.hasOwnProperty(e)&&(this.hk[e].ca=b[e].ex);b=a.events.acts;for(e in b)b.hasOwnProperty(e)&&this.ck.hasOwnProperty(e)&&(this.ck[e].ca=b[e].ex);b=a.events.vars;for(e in b)b.hasOwnProperty(e)&&this.Zk.hasOwnProperty(e)&&(this.Zk[e].data=b[e]);this.Om=c.next_uid;this.Lv=u;this.Ng.ue(a.system);b=0;for(d=this.ea.length;b<d;b++)if(k=this.ea[b],!k.Qa){e=0;for(a=k.G.length;e<a;e++){g=k.G[e];if(k.Xd){h=g.Zl();c=g.siblings.length=0;for(f=k.Ud.length;c<f;c++)n=k.Ud[c],k!==n&&g.siblings.push(n.G[h])}g.El&&
g.El();if(g.Ya){c=0;for(f=g.Ya.length;c<f;c++)h=g.Ya[c],h.El&&h.El()}}}this.tb=p}};a.prototype.Xw=function(a){var c,b,d,e,f;e=a.type;d=e.ic;var k={uid:a.uid};Pa(a.ca)&&(k.ex=g(a.ca));if(a.Wc&&a.Wc.length){k.ivs={};c=0;for(b=a.Wc.length;c<b;c++)k.ivs[a.type.Cr[c].toString()]=a.Wc[c]}if(d.gi){d={x:a.x,y:a.y,w:a.width,h:a.height,l:a.U.Va,zi:a.Oe()};0!==a.L&&(d.a=a.L);1!==a.opacity&&(d.o=a.opacity);0.5!==a.qe&&(d.hX=a.qe);0.5!==a.se&&(d.hY=a.se);0!==a.Sd&&(d.bm=a.Sd);a.visible||(d.v=a.visible);a.Zh||
(d.ce=a.Zh);-1!==a.Kj&&(d.mts=a.Kj);if(e.Ia.length){d.fx=[];c=0;for(b=e.Ia.length;c<b;c++)f=e.Ia[c],d.fx.push({name:f.name,active:a.Vh[f.index],params:a.cc[f.index]})}k.w=d}if(a.Ya&&a.Ya.length){k.behs={};c=0;for(b=a.Ya.length;c<b;c++)e=a.Ya[c],e.Md&&(k.behs[e.type.Va.toString()]=e.Md())}a.Md&&(k.data=a.Md());return k};a.prototype.GA=function(a,c){var b,d;b=0;for(d=a.Cr.length;b<d;b++)if(a.Cr[b]===c)return b;return-1};a.prototype.AA=function(a,c){var b,d;b=0;for(d=a.Ya.length;b<d;b++)if(a.Ya[b].type.Va===
c)return b;return-1};a.prototype.Wr=function(a,c){var b,d,e,f,k,g;g=a.type;e=g.ic;a.uid=c.uid;c.ex?a.ca=c.ex:Qa(a.ca);if(d=c.ivs)for(b in d)d.hasOwnProperty(b)&&(f=this.GA(g,parseInt(b,10)),0>f||f>=a.Wc.length||(a.Wc[f]=d[b]));if(e.gi){f=c.w;a.U.Va!==f.l&&(d=a.U,a.U=this.qb.to(f.l),a.U?(a.U.G.push(a),a.U.Fe=p,za(d.G,a),d.Fe=p):(a.U=d,this.Oh(a)));a.x=f.x;a.y=f.y;a.width=f.w;a.height=f.h;a.Sj=f.zi;a.L=f.hasOwnProperty("a")?f.a:0;a.opacity=f.hasOwnProperty("o")?f.o:1;a.qe=f.hasOwnProperty("hX")?f.hX:
0.5;a.se=f.hasOwnProperty("hY")?f.hY:0.5;a.visible=f.hasOwnProperty("v")?f.v:p;a.Zh=f.hasOwnProperty("ce")?f.ce:p;a.Kj=f.hasOwnProperty("mts")?f.mts:-1;a.Sd=f.hasOwnProperty("bm")?f.bm:0;a.Kl=Xa(a.Sd);this.na&&Ya(a,a.Sd,this.na);a.wa();if(f.hasOwnProperty("fx")){d=0;for(e=f.fx.length;d<e;d++)k=g.mr(f.fx[d].name),0>k||(a.Vh[k]=f.fx[d].active,a.cc[k]=f.fx[d].params)}a.Kh()}if(g=c.behs)for(b in g)g.hasOwnProperty(b)&&(f=this.AA(a,parseInt(b,10)),0>f||a.Ya[f].ue(g[b]));c.data&&a.ue(c.data)};gb=function(c){return new a(document.getElementById(c))};
hb=function(c,b){return new a({dc:p,width:c,height:b})};window.cr_createRuntime=gb;window.cr_createDCRuntime=hb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=p;var c=document.createElement("screencanvas")||document.createElement("canvas");document.body.appendChild(c);c=new a(c);window.c2runtime=c;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return c}})();
window.cr_getC2Runtime=function(){var a=document.getElementById("c2canvas");return a?a.c2runtime:window.c2runtime?window.c2runtime:r};window.cr_sizeCanvas=function(a,b){if(!(0===a||0===b)){var c=window.cr_getC2Runtime();c&&c.setSize(a,b)}};window.cr_setSuspended=function(a){var b=window.cr_getC2Runtime();b&&b.setSuspended(a)};
(function(){function a(a,c){this.j=a;this.fo=r;this.scrollX=this.j.Ae/2;this.scrollY=this.j.ze/2;this.scale=1;this.L=0;this.Rl=p;this.name=c[0];this.width=c[1];this.height=c[2];this.Bx=c[3];this.gx=c[4];this.Va=c[5];var b=c[6],d,l;this.bb=[];this.dm=[];d=0;for(l=b.length;d<l;d++){var h=new mb(this,b[d]);h.rw=d;this.bb.push(h)}b=c[7];this.pj=[];d=0;for(l=b.length;d<l;d++){var h=b[d],k=this.j.ea[h[1]];k.jf||(k.jf=h);this.pj.push(h);-1===this.dm.indexOf(k)&&this.dm.push(k)}this.Ia=[];this.lb=[];this.cc=
[];d=0;for(l=c[8].length;d<l;d++)this.Ia.push({id:c[8][d][0],name:c[8][d][1],gd:-1,dd:p,index:d}),this.cc.push(c[8][d][2].slice(0));this.Kh();this.Tk=new ua(0,0,1,1);this.Ss=new ua(0,0,1,1);this.ri={}}function b(a,c){this.rb=a;this.j=a.j;this.G=[];this.scale=1;this.L=0;this.gj=u;this.Jh=new ua(0,0,0,0);this.wx=new va;this.be=this.fe=this.ee=this.de=0;this.Fe=u;this.name=c[0];this.index=c[1];this.Va=c[2];this.visible=c[3];this.Xh=c[4];this.Rj=c[5];this.Gg=c[6];this.Hg=c[7];this.opacity=c[8];this.er=
c[9];this.$f=c[10];this.Sd=c[11];this.Vz=c[12];this.Kl="source-over";this.nd=this.td=0;this.xi=u;var b=c[13],d,l;this.mk=[];d=0;for(l=b.length;d<l;d++){var h=b[d],k=this.j.ea[h[1]];k.jf||(k.jf=h);this.mk.push(h);-1===this.rb.dm.indexOf(k)&&this.rb.dm.push(k)}this.Ia=[];this.lb=[];this.cc=[];d=0;for(l=c[14].length;d<l;d++)this.Ia.push({id:c[14][d][0],name:c[14][d][1],gd:-1,dd:p,index:d}),this.cc.push(c[14][d][2].slice(0));this.Kh();this.Tk=new ua(0,0,1,1);this.Ss=new ua(0,0,1,1)}function c(a,c){return a.Sj-
c.Sj}a.prototype.BC=function(a){var c=a.type.Va.toString();this.ri.hasOwnProperty(c)||(this.ri[c]=[]);this.ri[c].push(this.j.Xw(a))};a.prototype.Cv=function(){var a=this.bb[0];return!a.Rj&&1===a.opacity&&!a.er&&a.visible};a.prototype.Kh=function(){this.lb.length=0;var a,c,b;a=0;for(c=this.Ia.length;a<c;a++)b=this.Ia[a],b.dd&&this.lb.push(b)};a.prototype.lr=function(a){var c,b,d;c=0;for(b=this.Ia.length;c<b;c++)if(d=this.Ia[c],d.name===a)return d;return r};var d=[];a.prototype.jt=function(){this.gx&&
(this.fo=this.j.Yq[this.gx]);this.j.qb=this;this.scrollX=this.j.Ae/2;this.scrollY=this.j.ze/2;var a,b,f,n,l,h,k;a=0;for(f=this.j.ea.length;a<f;a++)if(b=this.j.ea[a],!b.Qa){l=b.G;b=0;for(n=l.length;b<n;b++)if(h=l[b],h.U){var q=h.U.rw;q>=this.bb.length&&(q=this.bb.length-1);h.U=this.bb[q];h.U.G.push(h);h.U.Fe=p}}d.length=0;this.qz();a=0;for(f=this.bb.length;a<f;a++)h=this.bb[a],h.yz(),h.gj=p,b=h.Dd(0,0,p),n=h.Dd(0,0,u),h.gj=u,this.j.si&&(b=b+0.5|0,n=n+0.5|0),h.Xs(b,n,r);l=u;if(!this.Rl){for(k in this.ri)if(this.ri.hasOwnProperty(k)&&
(b=this.j.vo(parseInt(k,10)))&&!b.Qa&&this.j.st(b)){n=this.ri[k];a=0;for(f=n.length;a<f;a++){h=r;if(b.ic.gi&&(h=this.to(n[a].w.l),!h))continue;h=this.j.$h(b.jf,h,u,0,0,p);this.j.Wr(h,n[a]);l=p;d.push(h)}n.length=0}a=0;for(f=this.bb.length;a<f;a++)this.bb[a].G.sort(c),this.bb[a].Fe=p}l&&(this.j.jd(),this.j.Qw());for(a=0;a<d.length;a++)if(h=d[a],h.type.Xd){f=h.Zl();b=0;for(n=h.type.Ud.length;b<n;b++)k=h.type.Ud[b],h.type!==k&&(k.G.length>f?h.siblings.push(k.G[f]):k.jf&&(l=this.j.$h(k.jf,h.U,p,h.x,h.y,
p),this.j.jd(),k.Np(),h.siblings.push(l),d.push(l)))}a=0;for(f=this.pj.length;a<f;a++)this.j.$h(this.pj[a],r,p);this.j.Il=r;this.j.jd();if(this.j.ub&&!this.j.Wd){a=0;for(f=this.j.ea.length;a<f;a++)k=this.j.ea[a],!k.Qa&&(k.G.length&&k.Kw)&&k.Kw(this.j.ub)}a=0;for(f=d.length;a<f;a++)h=d[a],this.j.trigger(Object.getPrototypeOf(h.type.ic).O.ql,h);d.length=0;this.j.trigger(E.prototype.O.df,r);this.Rl=u};a.prototype.xz=function(){var a,c,b,d,l;c=a=0;for(b=this.pj.length;a<b;a++)d=this.pj[a],l=this.j.ea[d[1]],
l.global?this.j.$h(d,r,p):(this.pj[c]=d,c++);this.pj.length=c};a.prototype.KC=function(){this.j.trigger(E.prototype.O.xy,r);this.j.Ng.Ee.length=0;var a,c,b,d,l,h;a=0;for(c=this.bb.length;a<c;a++){l=this.bb[a].G;b=0;for(d=l.length;b<d;b++)h=l[b],h.type.global||(this.j.st(h.type)&&this.BC(h),this.j.Oh(h));this.j.jd();l.length=0;this.bb[a].Fe=p}a=0;for(c=this.j.ea.length;a<c;a++)if(l=this.j.ea[a],!l.global&&!l.ic.gi&&!l.ic.ht&&!l.Qa){b=0;for(d=l.G.length;b<d;b++)this.j.Oh(l.G[b]);this.j.jd()}};a.prototype.hh=
function(a){a.globalAlpha=1;a.globalCompositeOperation="source-over";this.j.Tu&&!this.Cv()&&a.clearRect(0,0,this.j.width,this.j.height);var c,b,d;c=0;for(b=this.bb.length;c<b;c++)d=this.bb[c],d.visible&&(0<d.opacity&&11!==d.Sd)&&d.hh(a)};a.prototype.Lf=function(a){var c=0<this.lb.length||this.j.Yk;if(c){this.j.Of||(this.j.Of=a.eh(this.j.width,this.j.height,this.j.yc));if(this.j.Of.Gl!==this.j.width||this.j.Of.Fl!==this.j.height)a.deleteTexture(this.j.Of),this.j.Of=a.eh(this.j.width,this.j.height,
this.j.yc);a.Gh(this.j.Of)}this.j.Tu&&!this.Cv()&&a.clear(0,0,0,0);var b,d;b=0;for(d=this.bb.length;b<d;b++)this.bb[b].visible&&0<this.bb[b].opacity&&this.bb[b].Lf(a);c&&(1>=this.lb.length?(1===this.lb.length?(c=this.lb[0].index,a.Mg(this.lb[0].gd),a.Vk(r,1/this.j.width,1/this.j.height,0,0,1,1,this.scale,this.cc[c]),a.pp(this.lb[0].gd)&&(this.j.tb=p)):a.Mg(0),a.Gh(r),a.Uk(1),a.yf(this.j.Of),a.$w(),a.Kg(),a.Pg(),c=this.j.width/2,b=this.j.height/2,a.rp(-c,b,c,b,c,-b,-c,-b),a.yf(r)):this.Us(a,r,r,r));
a.jC()};a.prototype.Yl=function(){return 0<this.lb.length||this.j.Yk?this.j.Of:r};a.prototype.xv=function(){var a=this.bb[0].oe(),c,b,d;c=1;for(b=this.bb.length;c<b;c++)d=this.bb[c],0===d.Gg&&0===d.Hg||d.oe()<a&&(a=d.oe());return a};a.prototype.Yw=function(a){if(!this.Bx){var c=this.j.width*(1/this.xv())/2;a>this.width-c&&(a=this.width-c);a<c&&(a=c)}this.scrollX!==a&&(this.scrollX=a,this.j.tb=p)};a.prototype.Zw=function(a){if(!this.Bx){var c=this.j.height*(1/this.xv())/2;a>this.height-c&&(a=this.height-
c);a<c&&(a=c)}this.scrollY!==a&&(this.scrollY=a,this.j.tb=p)};a.prototype.qz=function(){this.Yw(this.scrollX);this.Zw(this.scrollY)};a.prototype.Us=function(a,c,b,d){var l=b?b.lb:c?c.lb:this.lb,h=b?b.U.oe():c?c.oe():1,k=this.j.hr,q,t,v,w,s=0,y=1,B,F=this.j.width,J=this.j.height,I=F/2,L=J/2,G=c?c.Tk:this.Tk,H=c?c.Ss:this.Ss,z=0,M=0,C=0,V=0,W=F,ga=F,P=J,Q=J,ca=v=0,ta=b?b.U.Vd():0;if(b){q=0;for(t=l.length;q<t;q++)v+=a.JA(l[q].gd),ca+=a.KA(l[q].gd);w=b.Na;z=c.Wb(w.left,w.top,p);C=c.Wb(w.left,w.top,u);
W=c.Wb(w.right,w.bottom,p);P=c.Wb(w.right,w.bottom,u);0!==ta&&(q=c.Wb(w.right,w.top,p),t=c.Wb(w.right,w.top,u),M=c.Wb(w.left,w.bottom,p),V=c.Wb(w.left,w.bottom,u),w=Math.min(z,W,q,M),W=Math.max(z,W,q,M),z=w,w=Math.min(C,P,t,V),P=Math.max(C,P,t,V),C=w);z-=v;C-=ca;W+=v;P+=ca;H.left=z/F;H.top=1-C/J;H.right=W/F;H.bottom=1-P/J;M=z=Math.floor(z);V=C=Math.floor(C);ga=W=Math.ceil(W);Q=P=Math.ceil(P);M-=v;V-=ca;ga+=v;Q+=ca;0>z&&(z=0);0>C&&(C=0);W>F&&(W=F);P>J&&(P=J);0>M&&(M=0);0>V&&(V=0);ga>F&&(ga=F);Q>J&&
(Q=J);G.left=z/F;G.top=1-C/J;G.right=W/F;G.bottom=1-P/J}else G.left=H.left=0,G.top=H.top=0,G.right=H.right=1,G.bottom=H.bottom=1;ca=b&&((b.L||ta)&&a.Vm(l[0].gd)||0!==v||0!==ca||1!==b.opacity||b.type.ic.mw)||c&&!b&&1!==c.opacity;a.$w();if(ca){k[s]||(k[s]=a.eh(F,J,this.j.yc));if(k[s].Gl!==F||k[s].Fl!==J)a.deleteTexture(k[s]),k[s]=a.eh(F,J,this.j.yc);a.Mg(0);a.Gh(k[s]);B=Q-V;a.clearRect(M,J-V-B,ga-M,B);b?b.Lf(a):(a.yf(this.j.Re),a.Uk(c.opacity),a.Kg(),a.translate(-I,-L),a.Pg(),a.vi(z,P,W,P,W,C,z,C,G));
H.left=H.top=0;H.right=H.bottom=1;b&&(w=G.top,G.top=G.bottom,G.bottom=w);s=1;y=0}a.Uk(1);v=l.length-1;var ta=a.Ps(l[v].gd),ba=0;q=0;for(t=l.length;q<t;q++){k[s]||(k[s]=a.eh(F,J,this.j.yc));if(k[s].Gl!==F||k[s].Fl!==J)a.deleteTexture(k[s]),k[s]=a.eh(F,J,this.j.yc);a.Mg(l[q].gd);ba=l[q].index;a.pp(l[q].gd)&&(this.j.tb=p);0==q&&!ca?(a.Gh(k[s]),B=Q-V,w=J-V-B,a.clearRect(M,w,ga-M,B),b?(a.Vk(d,1/b.width,1/b.height,H.left,H.top,H.right,H.bottom,h,b.cc[ba]),b.Lf(a)):(a.Vk(d,1/F,1/J,0,0,1,1,h,c?c.cc[ba]:this.cc[ba]),
a.yf(c?this.j.Re:this.j.Of),a.Kg(),a.translate(-I,-L),a.Pg(),a.vi(z,P,W,P,W,C,z,C,G)),H.left=H.top=0,H.right=H.bottom=1,b&&!ta&&(w=P,P=C,C=w)):(a.Vk(d,1/F,1/J,H.left,H.top,H.right,H.bottom,h,b?b.cc[ba]:c?c.cc[ba]:this.cc[ba]),q===v&&!ta?(b?a.yi(b.td,b.nd):c&&a.yi(c.td,c.nd),a.Gh(d)):(a.Gh(k[s]),B=Q-V,w=J-V-B,a.clearRect(M,w,ga-M,B)),a.yf(k[y]),a.Kg(),a.translate(-I,-L),a.Pg(),a.vi(z,P,W,P,W,C,z,C,G),q===v&&!ta&&a.yf(r));s=0===s?1:0;y=0===s?1:0}ta&&(a.Mg(0),b?a.yi(b.td,b.nd):c&&a.yi(c.td,c.nd),a.Gh(d),
a.yf(k[y]),a.Kg(),a.translate(-I,-L),a.Pg(),b&&1===l.length&&!ca?a.vi(z,C,W,C,W,P,z,P,G):a.vi(z,P,W,P,W,C,z,C,G),a.yf(r))};a.prototype.to=function(a){var c,b;c=0;for(b=this.bb.length;c<b;c++)if(this.bb[c].Va===a)return this.bb[c];return r};a.prototype.Md=function(){var a,c,b,d={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.L,w:this.width,h:this.height,fv:this.Rl,persist:this.ri,fx:[],layers:{}};a=0;for(c=this.Ia.length;a<c;a++)b=this.Ia[a],d.fx.push({name:b.name,active:b.dd,params:this.cc[b.index]});
a=0;for(c=this.bb.length;a<c;a++)b=this.bb[a],d.layers[b.Va.toString()]=b.Md();return d};a.prototype.ue=function(a){var c,b,d,l;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.L=a.a;this.width=a.w;this.height=a.h;this.ri=a.persist;"undefined"!==typeof a.fv&&(this.Rl=a.fv);var h=a.fx;c=0;for(b=h.length;c<b;c++)if(d=this.lr(h[c].name))d.dd=h[c].active,this.cc[d.index]=h[c].params;this.Kh();c=a.layers;for(l in c)c.hasOwnProperty(l)&&(a=this.to(parseInt(l,10)))&&a.ue(c[l])};bb=a;b.prototype.Kh=
function(){this.lb.length=0;var a,c,b;a=0;for(c=this.Ia.length;a<c;a++)b=this.Ia[a],b.dd&&this.lb.push(b)};b.prototype.lr=function(a){var c,b,d;c=0;for(b=this.Ia.length;c<b;c++)if(d=this.Ia[c],d.name===a)return d;return r};b.prototype.yz=function(){var a,c,b,n,l,h;c=a=0;for(b=this.mk.length;a<b;a++){n=this.mk[a];l=this.j.ea[n[1]];h=this.j.st(l);l=p;if(!h||this.rb.Rl)n=this.j.$h(n,this,p),d.push(n),n.type.global&&(l=u);l&&(this.mk[c]=this.mk[a],c++)}this.mk.length=c;this.j.jd();!this.j.Ea&&this.Ia.length&&
(this.Sd=this.Vz);this.Kl=Xa(this.Sd);this.j.na&&Ya(this,this.Sd,this.j.na)};b.prototype.TC=function(){if(this.Fe){var a,c;a=0;for(c=this.G.length;a<c;a++)this.G[a].Sj=a;this.Fe=u}};b.prototype.oe=function(){return this.HA()*this.j.Mn};b.prototype.HA=function(){return(this.scale*this.rb.scale-1)*this.$f+1};b.prototype.Vd=function(){return this.gj?0:Da(this.rb.L+this.L)};b.prototype.hh=function(a){this.xi=this.er||1!==this.opacity||0!==this.Sd;var c=this.j.canvas,b=a;a.globalAlpha=1;a.globalCompositeOperation=
"source-over";this.xi&&(this.j.Qo||(this.j.Qo=document.createElement("canvas"),c=this.j.Qo,c.width=this.j.width,c.height=this.j.height,this.j.Vv=c.getContext("2d")),c=this.j.Qo,b=this.j.Vv,c.width!==this.j.width&&(c.width=this.j.width),c.height!==this.j.height&&(c.height=this.j.height),this.Rj&&b.clearRect(0,0,this.j.width,this.j.height));this.Rj||(b.fillStyle="rgb("+this.Xh[0]+","+this.Xh[1]+","+this.Xh[2]+")",b.fillRect(0,0,this.j.width,this.j.height));b.save();this.gj=p;var d=this.Dd(0,0,p),l=
this.Dd(0,0,u);this.gj=u;this.j.si&&(d=d+0.5|0,l=l+0.5|0);this.Xs(d,l,b);var h=this.oe();b.scale(h,h);b.translate(-d,-l);for(var k,d=0,l=this.G.length;d<l;d++)if(h=this.G[d],h.visible&&!(0===h.width||0===h.height))h.Zb(),k=h.Na,k.right<this.de||(k.bottom<this.fe||k.left>this.ee||k.top>this.be)||(b.globalCompositeOperation=h.Kl,h.hh(b));b.restore();this.xi&&(a.globalCompositeOperation=this.Kl,a.globalAlpha=this.opacity,a.drawImage(c,0,0))};b.prototype.Xs=function(a,c,b){var d=this.oe();this.de=a;this.fe=
c;this.ee=a+this.j.width*(1/d);this.be=c+this.j.height*(1/d);a=this.Vd();0!==a&&(b&&(b.translate(this.j.width/2,this.j.height/2),b.rotate(-a),b.translate(this.j.width/-2,this.j.height/-2)),this.Jh.set(this.de,this.fe,this.ee,this.be),this.Jh.offset((this.de+this.ee)/-2,(this.fe+this.be)/-2),this.wx.cx(this.Jh,a),this.wx.Nu(this.Jh),this.Jh.offset((this.de+this.ee)/2,(this.fe+this.be)/2),this.de=this.Jh.left,this.fe=this.Jh.top,this.ee=this.Jh.right,this.be=this.Jh.bottom)};b.prototype.Lf=function(a){var c=
this.j.width,b=this.j.height,d=0,l=0;if(this.xi=this.er||1!==this.opacity||0<this.lb.length||0!==this.Sd){this.j.Re||(this.j.Re=a.eh(this.j.width,this.j.height,this.j.yc));if(this.j.Re.Gl!==this.j.width||this.j.Re.Fl!==this.j.height)a.deleteTexture(this.j.Re),this.j.Re=a.eh(this.j.width,this.j.height,this.j.yc);a.Gh(this.j.Re);this.Rj&&a.clear(0,0,0,0)}this.Rj||a.clear(this.Xh[0]/255,this.Xh[1]/255,this.Xh[2]/255,1);this.gj=p;var l=this.Dd(0,0,p),h=this.Dd(0,0,u);this.gj=u;this.j.si&&(l=l+0.5|0,h=
h+0.5|0);this.Xs(l,h,r);h=this.oe();a.Kg();a.scale(h,h);a.Ys(-this.Vd());a.translate((this.de+this.ee)/-2,(this.fe+this.be)/-2);a.Pg();var k,q,t;k=0;for(q=this.G.length;k<q;k++)if(t=this.G[k],t.visible&&!(0===t.width||0===t.height))if(t.Zb(),d=t.Na,!(d.right<this.de||d.bottom<this.fe||d.left>this.ee||d.top>this.be))if(t.Ix)if(d=t.lb[0].gd,l=t.lb[0].index,1===t.lb.length&&!a.Ps(d)&&!a.kC(d)&&(!t.L&&!t.U.Vd()||!a.Vm(d))&&1===t.opacity&&!t.type.ic.mw){a.Mg(d);a.yi(t.td,t.nd);a.pp(d)&&(this.j.tb=p);var v=
0,w=0,s=0,y=0;a.Vm(d)&&(d=t.Na,v=this.Wb(d.left,d.top,p),w=this.Wb(d.left,d.top,u),s=this.Wb(d.right,d.bottom,p),d=this.Wb(d.right,d.bottom,u),v/=c,w=1-w/b,s/=c,y=1-d/b);a.Vk(this.xi?this.j.Re:this.rb.Yl(),1/t.width,1/t.height,v,w,s,y,this.oe(),t.cc[l]);t.Lf(a)}else this.rb.Us(a,this,t,this.xi?this.j.Re:this.rb.Yl()),a.Kg(),a.scale(h,h),a.Ys(-this.Vd()),a.translate((this.de+this.ee)/-2,(this.fe+this.be)/-2),a.Pg();else a.Mg(0),a.yi(t.td,t.nd),t.Lf(a);this.xi&&(d=this.lb.length?this.lb[0].gd:0,l=this.lb.length?
this.lb[0].index:0,0===this.lb.length||1===this.lb.length&&!a.Ps(d)&&1===this.opacity?(1===this.lb.length?(a.Mg(d),a.Vk(this.rb.Yl(),1/this.j.width,1/this.j.height,0,0,1,1,this.oe(),this.cc[l]),a.pp(d)&&(this.j.tb=p)):a.Mg(0),a.Gh(this.rb.Yl()),a.Uk(this.opacity),a.yf(this.j.Re),a.yi(this.td,this.nd),a.Kg(),a.Pg(),c=this.j.width/2,b=this.j.height/2,a.rp(-c,b,c,b,c,-b,-c,-b),a.yf(r)):this.rb.Us(a,this,r,this.rb.Yl()))};b.prototype.Dd=function(a,c,b){var d=this.j.devicePixelRatio;this.j.hm&&0<this.j.mf&&
(a*=d,c*=d);var d=this.j.Ae/2,l=this.j.ze/2,d=(this.rb.scrollX-d)*this.Gg+d,l=(this.rb.scrollY-l)*this.Hg+l,h=1/this.oe(),d=d-this.j.width*h/2,l=l-this.j.height*h/2,d=d+a*h,l=l+c*h;c=this.Vd();0!==c&&(d-=this.rb.scrollX,l-=this.rb.scrollY,a=Math.cos(c),c=Math.sin(c),h=d*a-l*c,l=l*a+d*c,d=h+this.rb.scrollX,l+=this.rb.scrollY);return b?d:l};b.prototype.Wb=function(a,c,b){var d=this.Vd();if(0!==d){a-=this.rb.scrollX;c-=this.rb.scrollY;var l=Math.cos(-d),d=Math.sin(-d),h=a*l-c*d;c=c*l+a*d;a=h+this.rb.scrollX;
c+=this.rb.scrollY}l=this.j.Ae/2;d=this.j.ze/2;l=(this.rb.scrollX-l)*this.Gg+l;d=(this.rb.scrollY-d)*this.Hg+d;h=1/this.oe();l-=this.j.width*h/2;d-=this.j.height*h/2;l=(a-l)/h;d=(c-d)/h;a=this.j.devicePixelRatio;this.j.hm&&0<this.j.mf&&(l/=a,d/=a);return b?l:d};b.prototype.Md=function(){var a,c,b,d={s:this.scale,a:this.L,vl:this.de,vt:this.fe,vr:this.ee,vb:this.be,v:this.visible,bc:this.Xh,t:this.Rj,px:this.Gg,py:this.Hg,o:this.opacity,zr:this.$f,fx:[],instances:[]};a=0;for(c=this.Ia.length;a<c;a++)b=
this.Ia[a],d.fx.push({name:b.name,active:b.dd,params:this.cc[b.index]});return d};b.prototype.ue=function(a){var b,d;this.scale=a.s;this.L=a.a;this.de=a.vl;this.fe=a.vt;this.ee=a.vr;this.be=a.vb;this.visible=a.v;this.Xh=a.bc;this.Rj=a.t;this.Gg=a.px;this.Hg=a.py;this.opacity=a.o;this.$f=a.zr;var n=a.fx;a=0;for(b=n.length;a<b;a++)if(d=this.lr(n[a].name))d.dd=n[a].active,this.cc[d.index]=n[a].params;this.Kh();this.G.sort(c);this.Fe=p};mb=b})();
(function(){function a(a,c){var b,d=a.length;switch(d){case 0:return p;case 1:return a[0]===c[0];case 2:return a[0]===c[0]&&a[1]===c[1];default:for(b=0;b<d;b++)if(a[b]!==c[b])return u;return p}}function b(a,c){return a.index-c.index}function c(c){var d,k,e,f;2===c.length?c[0].index>c[1].index&&(d=c[0],c[0]=c[1],c[1]=d):2<c.length&&c.sort(b);c.length>=v.length&&(v.length=c.length+1);v[c.length]||(v[c.length]=[]);f=v[c.length];d=0;for(k=f.length;d<k;d++)if(e=f[d],a(c,e))return e;f.push(c);return c}
function d(a,c){this.j=a;this.yx={};this.lv={};this.sr=u;this.Ev=new Ta;this.name=c[0];var b=c[1];this.di=[];var d,k;d=0;for(k=b.length;d<k;d++)this.Hv(b[d],r,this.di)}function e(a){this.type=a;this.G=[];this.Gb=[];this.sb=p}function g(a,c,b){this.sheet=a;this.parent=c;this.j=a.j;this.Bb=[];this.Ai=[];this.Dv=this.Hp=this.ot=this.Br=this.group=this.it=u;this.Vb=[];this.ff=[];this.Af=[];b[1]?(this.$l=b[1][1].toLowerCase(),this.group=p,this.Br=!!b[1][0],this.j.dk.push(this),this.j.Ln[this.$l.toLowerCase()]=
this.Br):(this.$l="",this.Br=this.group=u);this.Vf=b[2];this.Va=b[3];this.group||(this.j.Lu[this.Va.toString()]=this);var d=b[4];a=0;for(c=d.length;a<c;a++){var k=new nb(this,d[a]);this.Vb.push(k);this.Au(k.type)}d=b[5];a=0;for(c=d.length;a<c;a++)k=new ob(this,d[a]),this.ff.push(k);if(7===b.length){b=b[6];a=0;for(c=b.length;a<c;a++)this.sheet.Hv(b[a],this,this.Af)}this.Fo=u;this.Vb.length&&(this.Fo=this.Vb[0].type==r&&this.Vb[0].xc==E.prototype.O.Zx)}function f(a,c){var b,d,k;if(a&&(-1===c.indexOf(a)&&
c.push(a),a.Xd)){b=0;for(d=a.Ud.length;b<d;b++)k=a.Ud[b],a!==k&&-1===c.indexOf(k)&&c.push(k)}}function n(a,c){this.gf=a;this.sheet=a.sheet;this.j=a.j;this.qa=[];this.Ma=[];this.ca={};this.xc=c[1];this.trigger=0<c[3];this.kv=2===c[3];this.vg=c[4];this.em=c[5];this.oB=c[6];this.Va=c[7];this.j.hk[this.Va.toString()]=this;-1===c[0]?(this.type=r,this.Cc=this.$s,this.bj=r,this.ed=-1):(this.type=this.j.ea[c[0]],this.Cc=this.oB?this.yC:this.Zs,c[2]?(this.bj=this.type.qo(c[2]),this.ed=this.type.jr(c[2])):
(this.bj=r,this.ed=-1),this.gf.parent&&this.gf.parent.Ap());this.kv&&(this.Cc=this.zC);if(9===c.length){var b,d,k=c[8];b=0;for(d=k.length;b<d;b++){var e=new pb(this,k[b]);this.qa.push(e)}this.Ma.length=k.length}}function l(a,c){this.gf=a;this.sheet=a.sheet;this.j=a.j;this.qa=[];this.Ma=[];this.ca={};this.xc=c[1];-1===c[0]?(this.type=r,this.Cc=this.$s,this.bj=r,this.ed=-1):(this.type=this.j.ea[c[0]],this.Cc=this.Zs,c[2]?(this.bj=this.type.qo(c[2]),this.ed=this.type.jr(c[2])):(this.bj=r,this.ed=-1));
this.Va=c[3];this.j.ck[this.Va.toString()]=this;if(5===c.length){var b,d,k=c[4];b=0;for(d=k.length;b<d;b++){var e=new pb(this,k[b]);this.qa.push(e)}this.Ma.length=k.length}}function h(a,c){this.xa=a;this.gf=a.gf;this.sheet=a.sheet;this.j=a.j;this.type=c[0];this.mg=r;this.Vu=this.Bi=0;this.rb=r;this.key=0;this.object=r;this.index=0;this.Pp=this.Xk=this.nv=this.ij=this.ln=r;var b,d,k;switch(c[0]){case 0:case 7:this.mg=new qb(this,c[1]);this.Bi=0;this.get=this.QA;break;case 1:this.mg=new qb(this,c[1]);
this.Bi=0;this.get=this.RA;break;case 5:this.mg=new qb(this,c[1]);this.Bi=0;this.get=this.VA;break;case 3:case 8:this.Vu=c[1];this.get=this.OA;break;case 6:this.rb=this.j.Rr[c[1]];this.get=this.WA;break;case 9:this.key=c[1];this.get=this.UA;break;case 4:this.object=this.j.ea[c[1]];this.get=this.XA;this.gf.Au(this.object);this.xa instanceof ob?this.gf.Ap():this.gf.parent&&this.gf.parent.Ap();break;case 10:this.index=c[1];this.get=a.type.Qa?this.SA:this.TA;break;case 11:this.ln=c[1];this.ij=r;this.get=
this.PA;break;case 2:case 12:this.nv=c[1];this.get=this.NA;break;case 13:this.get=this.YA;this.Xk=[];this.Pp=[];b=1;for(d=c.length;b<d;b++)k=new pb(this.xa,c[b]),this.Xk.push(k),this.Pp.push(0)}}function k(a,c,b){this.sheet=a;this.parent=c;this.j=a.j;this.Bb=[];this.name=b[1];this.mn=b[2];this.Ar=b[3];this.mm=!!b[4];this.Eo=!!b[5];this.Va=b[6];this.j.Zk[this.Va.toString()]=this;this.data=this.Ar;this.parent?this.xj=this.mm||this.Eo?-1:this.j.IC++:(this.xj=-1,this.j.jz.push(this))}function q(a,c,b){this.sheet=
a;this.parent=c;this.j=a.j;this.Bb=[];this.cm=r;this.bB=b[1]}function t(){this.mx=[];this.reset(r)}var v=[];d.prototype.toString=A("name");d.prototype.Hv=function(a,c,b){switch(a[0]){case 0:a=new rb(this,c,a);if(a.Vf){b.push(a);b=0;for(c=a.Vb.length;b<c;b++)a.Vb[b].trigger&&this.Iv(a,b)}else a.Nv()?this.Iv(a,0):b.push(a);break;case 1:a=new fb(this,c,a);b.push(a);break;case 2:a=new sb(this,c,a),b.push(a)}};d.prototype.oc=function(){var a,c;a=0;for(c=this.di.length;a<c;a++)this.di[a].oc(a<c-1&&this.di[a+
1].Fo)};d.prototype.Cc=function(){this.sr=p;this.j.Gr=p;var a,c;a=0;for(c=this.di.length;a<c;a++){var b=this.di[a];b.Cc();this.j.Gq(b.Bb);(!this.j.jg.fm()||this.j.ig.length)&&this.j.jd()}this.j.Gr=u};d.prototype.Iv=function(a,c){a.Vf||this.j.Mp.push(a);var b,d,k=a.Vb[c],e;e=k.type?k.type.name:"system";var f=(b=k.kv)?this.lv:this.yx;f[e]||(f[e]=[]);e=f[e];f=k.xc;if(b){if(k.qa.length&&(k=k.qa[0],!(1!==k.type||2!==k.mg.type))){k=k.mg.value.toLowerCase();b=0;for(d=e.length;b<d;b++)if(e[b].method==f){b=
e[b].io;b[k]?b[k].push([a,c]):b[k]=[[a,c]];return}b={};b[k]=[[a,c]];e.push({method:f,io:b})}}else{b=0;for(d=e.length;b<d;b++)if(e[b].method==f){e[b].io.push([a,c]);return}e.push({method:f,io:[[a,c]]})}};db=d;e.prototype.rr=function(){return this.sb?this.type.G.length:this.G.length};e.prototype.ne=function(){return this.sb?this.type.G:this.G};e.prototype.Sk=function(a){a&&(a.j.od().md.Vf?(this.sb&&(this.G.length=0,ya(this.Gb,a.type.G),this.sb=u),a=this.Gb.indexOf(a),-1!==a&&(this.G.push(this.Gb[a]),
this.Gb.splice(a,1))):(this.sb=u,this.G.length=1,this.G[0]=a))};ab=e;g.prototype.oc=function(a){var b,d=this.parent;if(this.group)for(this.Hp=p;d;){if(!d.group){this.Hp=u;break}d=d.parent}this.ot=!this.Nv()&&(!this.parent||this.parent.group&&this.parent.Hp);this.Dv=!!a;this.Ai=this.Bb.slice(0);for(d=this.parent;d;){a=0;for(b=d.Bb.length;a<b;a++)this.gz(d.Bb[a]);d=d.parent}this.Bb=c(this.Bb);this.Ai=c(this.Ai);a=0;for(b=this.Vb.length;a<b;a++)this.Vb[a].oc();a=0;for(b=this.ff.length;a<b;a++)this.ff[a].oc();
a=0;for(b=this.Af.length;a<b;a++)this.Af[a].oc(a<b-1&&this.Af[a+1].Fo)};g.prototype.Au=function(a){f(a,this.Bb)};g.prototype.gz=function(a){f(a,this.Ai)};g.prototype.Ap=function(){this.it=p;this.parent&&this.parent.Ap()};g.prototype.Nv=function(){return this.Vb.length?this.Vb[0].trigger:u};g.prototype.Cc=function(){var a,c=u,b=this.j.od();b.md=this;this.Fo||(b.Wq=u);if(this.Vf){0===this.Vb.length&&(c=p);b.tc=0;for(a=this.Vb.length;b.tc<a;b.tc++)this.Vb[b.tc].trigger||this.Vb[b.tc].Cc()&&(c=p);(b.uk=
c)&&this.vp()}else{b.tc=0;for(a=this.Vb.length;b.tc<a;b.tc++)if(!this.Vb[b.tc].Cc()){b.uk=u;this.ot&&(!this.j.jg.fm()||this.j.ig.length)&&this.j.jd();return}b.uk=p;this.vp()}b.uk&&this.Dv&&(b.Wq=p);this.ot&&(!this.j.jg.fm()||this.j.ig.length)&&this.j.jd()};g.prototype.wC=function(a){this.j.od().md=this;this.Vb[a].Cc()&&this.vp()};g.prototype.vp=function(){var a=this.j.od(),c;a.Ie=0;for(c=this.ff.length;a.Ie<c;a.Ie++)if(this.ff[a.Ie].Cc())return;this.Tw()};g.prototype.tC=function(){var a=this.j.od(),
c;for(c=this.ff.length;a.Ie<c;a.Ie++)if(this.ff[a.Ie].Cc())return;this.Tw()};g.prototype.Tw=function(){if(this.Af.length){var a,c,b,d,k=this.Af.length-1;this.j.qp(this);if(this.it){a=0;for(c=this.Af.length;a<c;a++)b=this.Af[a],(d=!this.Hp||!this.group&&a<k)&&this.j.Ym(b.Bb),b.Cc(),d?this.j.ti(b.Bb):this.j.Gq(b.Bb)}else{a=0;for(c=this.Af.length;a<c;a++)this.Af[a].Cc()}this.j.mp()}};g.prototype.xC=function(){var a=this.j.od();a.md=this;var c=u,b;a.tc=0;for(b=this.Vb.length;a.tc<b;a.tc++)if(this.Vb[a.tc].Cc())c=
p;else if(!this.Vf)return u;return this.Vf?c:p};g.prototype.Ws=function(){this.j.jj++;var a=this.j.od().tc,c=this.j.qp(this);if(!this.Vf){c.tc=a+1;for(a=this.Vb.length;c.tc<a;c.tc++)if(!this.Vb[c.tc].Cc()){this.j.mp();return}}this.vp();this.j.mp()};rb=g;n.prototype.oc=function(){var a,c;a=0;for(c=this.qa.length;a<c;a++)this.qa[a].oc()};n.prototype.zC=da(p);n.prototype.$s=function(){var a,c;a=0;for(c=this.qa.length;a<c;a++)this.Ma[a]=this.qa[a].get();return Na(this.xc.apply(this.j.Ng,this.Ma),this.em)};
n.prototype.yC=function(){var a,c;a=0;for(c=this.qa.length;a<c;a++)this.Ma[a]=this.qa[a].get(a);a=this.xc.apply(this.bj?this.bj:this.type,this.Ma);this.type.$g();return a};n.prototype.Zs=function(){var a,c,b,d,k,e,f,h=this.type.Za(),g=this.gf.Vf&&!this.trigger,l=0,n=this.type.Xd;if(h.sb){h.G.length=0;a=h.Gb.length=0;for(b=this.type.G.length;a<b;a++){e=this.type.G[a];c=0;for(d=this.qa.length;c<d;c++)this.Ma[c]=this.qa[c].get(a);-1<this.ed?(this.type.Qa&&(l=e.type.jk[this.type.ng]),c=this.xc.apply(e.Ya[this.ed+
l],this.Ma)):c=this.xc.apply(e,this.Ma);(k=Na(c,this.em))?h.G.push(e):g&&h.Gb.push(e)}this.type.finish&&this.type.finish(p);h.sb=u;this.type.$g();return h.rr()}var q=0,v=g?h.Gb:h.G;k=u;a=0;for(b=v.length;a<b;a++){e=v[a];c=0;for(d=this.qa.length;c<d;c++)this.Ma[c]=this.qa[c].get(a);-1<this.ed?(this.type.Qa&&(l=e.type.jk[this.type.ng]),c=this.xc.apply(e.Ya[this.ed+l],this.Ma)):c=this.xc.apply(e,this.Ma);if(Na(c,this.em))if(k=p,g){if(h.G.push(e),n){c=0;for(d=e.siblings.length;c<d;c++)f=e.siblings[c],
f.type.Za().G.push(f)}}else{v[q]=e;if(n){c=0;for(d=e.siblings.length;c<d;c++)f=e.siblings[c],f.type.Za().G[q]=f}q++}else if(g){v[q]=e;if(n){c=0;for(d=e.siblings.length;c<d;c++)f=e.siblings[c],f.type.Za().Gb[q]=f}q++}}v.length=q;if(n){a=0;for(b=this.type.Ud.length;a<b;a++)e=this.type.Ud[a].Za(),g?e.Gb.length=q:e.G.length=q}l=k;if(g&&!k){a=0;for(b=h.G.length;a<b;a++){e=h.G[a];c=0;for(d=this.qa.length;c<d;c++)this.Ma[c]=this.qa[c].get(a);c=-1<this.ed?this.xc.apply(e.Ya[this.ed],this.Ma):this.xc.apply(e,
this.Ma);if(Na(c,this.em)){k=p;break}}}this.type.finish&&this.type.finish(l||g);return g?k:h.rr()};nb=n;l.prototype.oc=function(){var a,c;a=0;for(c=this.qa.length;a<c;a++)this.qa[a].oc()};l.prototype.$s=function(){var a,c;a=0;for(c=this.qa.length;a<c;a++)this.Ma[a]=this.qa[a].get();return this.xc.apply(this.j.Ng,this.Ma)};l.prototype.Zs=function(){var a=this.type.Za().ne(),c,b,d,k,e;c=0;for(d=a.length;c<d;c++){e=a[c];b=0;for(k=this.qa.length;b<k;b++)this.Ma[b]=this.qa[b].get(c);-1<this.ed?(b=0,this.type.Qa&&
(b=e.type.jk[this.type.ng]),this.xc.apply(e.Ya[this.ed+b],this.Ma)):this.xc.apply(e,this.Ma)}return u};ob=l;var w=[],s=-1;h.prototype.oc=function(){var a,c;if(11===this.type)this.ij=this.j.vv(this.ln,this.gf.parent);else if(13===this.type){a=0;for(c=this.Xk.length;a<c;a++)this.Xk[a].oc()}this.mg&&this.mg.oc()};h.prototype.Lc=function(){s++;w.length===s&&w.push(new tb);return w[s]};h.prototype.Bc=function(){s--};h.prototype.QA=function(a){this.Bi=a||0;a=this.Lc();this.mg.get(a);this.Bc();return a.data};
h.prototype.RA=function(a){this.Bi=a||0;a=this.Lc();this.mg.get(a);this.Bc();return la(a.data)?a.data:""};h.prototype.XA=A("object");h.prototype.OA=A("Vu");h.prototype.VA=function(a){this.Bi=a||0;a=this.Lc();this.mg.get(a);this.Bc();return a.Xc()?this.j.Xl(a.data):this.j.nr(a.data)};h.prototype.WA=A("rb");h.prototype.UA=A("key");h.prototype.TA=A("index");h.prototype.SA=function(a){var c=this.xa.type,b=r,b=c.Za(),d=b.ne(),b=d.length?d[a%d.length].type:b.Gb[a%b.Gb.length].type;return this.index+b.jo[c.ng]};
h.prototype.PA=A("ij");h.prototype.NA=A("nv");h.prototype.YA=function(){var a,c;a=0;for(c=this.Xk.length;a<c;a++)this.Pp[a]=this.Xk[a].get();return this.Pp};pb=h;k.prototype.oc=function(){this.Bb=c(this.Bb)};k.prototype.Hh=function(a){var c=this.j.uv();!this.parent||this.mm||!c?this.data=a:(this.xj>=c.length&&(c.length=this.xj+1),c[this.xj]=a)};k.prototype.mj=function(){var a=this.j.uv();return!this.parent||this.mm||!a||this.Eo?this.data:this.xj>=a.length||"undefined"===typeof a[this.xj]?this.Ar:
a[this.xj]};k.prototype.Cc=function(){this.parent&&(!this.mm&&!this.Eo)&&this.Hh(this.Ar)};fb=k;q.prototype.toString=function(){return"include:"+this.cm.toString()};q.prototype.oc=function(){this.cm=this.j.Yq[this.bB];this.sheet.Ev.add(this);this.Bb=c(this.Bb)};q.prototype.Cc=function(){this.parent&&this.j.Xm(this.j.ea);this.cm.sr||this.cm.Cc();this.parent&&this.j.ti(this.j.ea)};q.prototype.gB=function(){for(var a=this.parent;a;){if(a.group&&!this.j.Ln[a.$l.toLowerCase()])return u;a=a.parent}return p};
sb=q;t.prototype.reset=function(a){this.md=a;this.Ie=this.tc=0;this.mx.length=0;this.Wq=this.uk=u};t.prototype.jB=function(){return this.md.it?p:this.tc<this.md.Vb.length-1?!!this.md.Bb.length:u};eb=t})();
(function(){function a(a,b){this.xa=a;this.j=a.j;this.type=b[0];this.get=[this.hA,this.dA,this.pA,this.sA,this.Yz,this.qA,this.lA,this.aA,this.kA,this.oA,this.Zz,this.nA,this.bA,this.mA,this.iA,this.jA,this.eA,this.fA,this.$z,this.rA,this.hv,this.gA,this.hv,this.cA][this.type];var e=r;this.ye=this.qa=this.Ma=this.xc=this.Ep=this.$c=this.first=this.value=r;this.ed=-1;this.lh=r;this.wt=-1;this.ij=this.ln=this.nz=r;this.Zm=u;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new qb(a,b[1]);break;case 18:this.first=new qb(a,b[1]);this.$c=new qb(a,b[2]);this.Ep=new qb(a,b[3]);break;case 19:this.xc=b[1];this.Ma=[];this.qa=[];3===b.length?(e=b[2],this.Ma.length=e.length+1):this.Ma.length=1;break;case 20:this.ye=this.j.ea[b[1]];this.ed=-1;this.xc=b[2];this.Zm=b[3];this.lh=b[4]?new qb(a,b[4]):r;this.Ma=[];this.qa=[];6===b.length?(e=b[5],this.Ma.length=e.length+1):this.Ma.length=1;break;case 21:this.ye=this.j.ea[b[1]];this.Zm=b[2];this.lh=b[3]?new qb(a,b[3]):r;this.wt=b[4];
break;case 22:this.ye=this.j.ea[b[1]];this.nz=this.ye.qo(b[2]);this.ed=this.ye.jr(b[2]);this.xc=b[3];this.Zm=b[4];this.lh=b[5]?new qb(a,b[5]):r;this.Ma=[];this.qa=[];7===b.length?(e=b[6],this.Ma.length=e.length+1):this.Ma.length=1;break;case 23:this.ln=b[1],this.ij=r}4<=this.type&&17>=this.type&&(this.first=new qb(a,b[1]),this.$c=new qb(a,b[2]));if(e){var g,f;g=0;for(f=e.length;g<f;g++)this.qa.push(new qb(a,e[g]))}}function b(a,b){this.type=a||ub.ll;this.data=b||0;this.Mk=r;this.type==ub.ll&&(this.data=
Math.floor(this.data))}a.prototype.oc=function(){23===this.type&&(this.ij=this.xa.j.vv(this.ln,this.xa.gf.parent));this.first&&this.first.oc();this.$c&&this.$c.oc();this.Ep&&this.Ep.oc();this.lh&&this.lh.oc();if(this.qa){var a,b;a=0;for(b=this.qa.length;a<b;a++)this.qa[a].oc()}};a.prototype.rA=function(a){this.Ma[0]=a;a=this.xa.Lc();var b,e;b=0;for(e=this.qa.length;b<e;b++)this.qa[b].get(a),this.Ma[b+1]=a.data;this.xa.Bc();this.xc.apply(this.j.Ng,this.Ma)};a.prototype.hv=function(a){var b=this.ye.Za(),
e=b.ne();if(!e.length)if(b.Gb.length)e=b.Gb;else{this.Zm?a.Zf(""):a.xb(0);return}this.Ma[0]=a;a.Mk=this.ye;a=this.xa.Lc();var g,b=0;for(g=this.qa.length;b<g;b++)this.qa[b].get(a),this.Ma[b+1]=a.data;b=this.xa.Bi;this.lh&&(this.lh.get(a),a.Xc()&&(b=a.data,e=this.ye.G));this.xa.Bc();b%=e.length;0>b&&(b+=e.length);e=e[b];-1<this.ed?(a=0,this.ye.Qa&&(a=e.type.jk[this.ye.ng]),this.xc.apply(e.Ya[this.ed+a],this.Ma)):this.xc.apply(e,this.Ma)};a.prototype.gA=function(a){var b=this.ye.Za(),e=b.ne();if(!e.length)if(b.Gb.length)e=
b.Gb;else{this.Zm?a.Zf(""):a.xb(0);return}b=this.xa.Bi;if(this.lh){var g=this.xa.Lc();this.lh.get(g);if(g.Xc()){b=g.data;e=this.ye.G;b%=e.length;0>b&&(b+=e.length);e=e[b].Wc[this.wt];la(e)?a.Zf(e):a.ra(e);this.xa.Bc();return}this.xa.Bc()}b%=e.length;0>b&&(b+=e.length);e=e[b];b=0;this.ye.Qa&&(b=e.type.jo[this.ye.ng]);e=e.Wc[this.wt+b];la(e)?a.Zf(e):a.ra(e)};a.prototype.hA=function(a){a.type=ub.ll;a.data=this.value};a.prototype.dA=function(a){a.type=ub.gl;a.data=this.value};a.prototype.pA=function(a){a.type=
ub.uq;a.data=this.value};a.prototype.sA=function(a){this.first.get(a);a.Xc()&&(a.data=-a.data)};a.prototype.Yz=function(a){this.first.get(a);var b=this.xa.Lc();this.$c.get(b);a.Xc()&&b.Xc()&&(a.data+=b.data,b.qk()&&a.Jk());this.xa.Bc()};a.prototype.qA=function(a){this.first.get(a);var b=this.xa.Lc();this.$c.get(b);a.Xc()&&b.Xc()&&(a.data-=b.data,b.qk()&&a.Jk());this.xa.Bc()};a.prototype.lA=function(a){this.first.get(a);var b=this.xa.Lc();this.$c.get(b);a.Xc()&&b.Xc()&&(a.data*=b.data,b.qk()&&a.Jk());
this.xa.Bc()};a.prototype.aA=function(a){this.first.get(a);var b=this.xa.Lc();this.$c.get(b);a.Xc()&&b.Xc()&&(a.data/=b.data,a.Jk());this.xa.Bc()};a.prototype.kA=function(a){this.first.get(a);var b=this.xa.Lc();this.$c.get(b);a.Xc()&&b.Xc()&&(a.data%=b.data,b.qk()&&a.Jk());this.xa.Bc()};a.prototype.oA=function(a){this.first.get(a);var b=this.xa.Lc();this.$c.get(b);a.Xc()&&b.Xc()&&(a.data=Math.pow(a.data,b.data),b.qk()&&a.Jk());this.xa.Bc()};a.prototype.Zz=function(a){this.first.get(a);var b=this.xa.Lc();
this.$c.get(b);a.Xc()?b.Ho()?a.Zf(a.data.toString()+b.data):a.data&&b.data?a.xb(1):a.xb(0):a.Ho()&&(a.data=b.Ho()?a.data+b.data:a.data+(Math.round(1E10*b.data)/1E10).toString());this.xa.Bc()};a.prototype.nA=function(a){this.first.get(a);var b=this.xa.Lc();this.$c.get(b);a.Xc()&&b.Xc()&&(a.data||b.data?a.xb(1):a.xb(0));this.xa.Bc()};a.prototype.$z=function(a){this.first.get(a);a.data?this.$c.get(a):this.Ep.get(a)};a.prototype.bA=function(a){this.first.get(a);var b=this.xa.Lc();this.$c.get(b);a.xb(a.data===
b.data?1:0);this.xa.Bc()};a.prototype.mA=function(a){this.first.get(a);var b=this.xa.Lc();this.$c.get(b);a.xb(a.data!==b.data?1:0);this.xa.Bc()};a.prototype.iA=function(a){this.first.get(a);var b=this.xa.Lc();this.$c.get(b);a.xb(a.data<b.data?1:0);this.xa.Bc()};a.prototype.jA=function(a){this.first.get(a);var b=this.xa.Lc();this.$c.get(b);a.xb(a.data<=b.data?1:0);this.xa.Bc()};a.prototype.eA=function(a){this.first.get(a);var b=this.xa.Lc();this.$c.get(b);a.xb(a.data>b.data?1:0);this.xa.Bc()};a.prototype.fA=
function(a){this.first.get(a);var b=this.xa.Lc();this.$c.get(b);a.xb(a.data>=b.data?1:0);this.xa.Bc()};a.prototype.cA=function(a){var b=this.ij.mj();ka(b)?a.ra(b):a.Zf(b)};qb=a;b.prototype.qk=function(){return this.type===ub.gl};b.prototype.Xc=function(){return this.type===ub.ll||this.type===ub.gl};b.prototype.Ho=function(){return this.type===ub.uq};b.prototype.Jk=function(){this.qk()||(this.Ho()&&(this.data=parseFloat(this.data)),this.type=ub.gl)};b.prototype.xb=function(a){this.type=ub.ll;this.data=
Math.floor(a)};b.prototype.ra=function(a){this.type=ub.gl;this.data=a};b.prototype.Zf=function(a){this.type=ub.uq;this.data=a};tb=b;ub={ll:0,gl:1,uq:2}})();function E(a){this.j=a;this.Ee=[]}
E.prototype.Md=function(){var a={},b,c,d,e,g,f,n,l;a.waits=[];var h=a.waits,k;b=0;for(c=this.Ee.length;b<c;b++){f=this.Ee[b];k={t:f.time,ev:f.Ol.Va,sm:[],sols:{}};f.Ol.ff[f.Ie]&&(k.act=f.Ol.ff[f.Ie].Va);d=0;for(e=f.Bb.length;d<e;d++)k.sm.push(f.Bb[d].Va);for(g in f.De)if(f.De.hasOwnProperty(g)){n=this.j.ea[parseInt(g,10)];l={sa:f.De[g].Ww,insts:[]};d=0;for(e=f.De[g].qj.length;d<e;d++)l.insts.push(f.De[g].qj[d].uid);k.sols[n.Va.toString()]=l}h.push(k)}return a};
E.prototype.ue=function(a){a=a.waits;var b,c,d,e,g,f,n,l,h,k,q;b=this.Ee.length=0;for(c=a.length;b<c;b++)if(f=a[b],l=this.j.Lu[f.ev.toString()]){h=-1;d=0;for(e=l.ff.length;d<e;d++)if(l.ff[d].Va===f.act){h=d;break}if(-1!==h){n={De:{},Bb:[],cv:u};n.time=f.t;n.Ol=l;n.Ie=h;d=0;for(e=f.sm.length;d<e;d++)(l=this.j.vo(f.sm[d]))&&n.Bb.push(l);for(g in f.sols)if(f.sols.hasOwnProperty(g)&&(l=this.j.vo(parseInt(g,10)))){h=f.sols[g];k={Ww:h.sa,qj:[]};d=0;for(e=h.insts.length;d<e;d++)(q=this.j.lj(h.insts[d]))&&
k.qj.push(q);n.De[l.index.toString()]=k}this.Ee.push(n)}}};
(function(){function a(){}function b(){}function c(){}var d=E.prototype;a.prototype.$x=da(p);a.prototype.df=da(p);a.prototype.xy=da(p);a.prototype.Tx=function(a,b,c){return $b(a,b,c)};a.prototype.ul=function(a){var b=this.j.od(),c=b.md,d=b.jB(),b=this.j.nC();if(d)for(d=0;d<a&&!b.Nd;d++)this.j.Ym(c.Bb),b.index=d,c.Ws(),this.j.ti(c.Bb);else for(d=0;d<a&&!b.Nd;d++)b.index=d,c.Ws();this.j.hC();return u};a.prototype.zn=function(a){var b=this.j.kr(),c=b.ca.Xp||0,d=this.j.Qe.ae;"undefined"===typeof b.ca.Yp&&
(b.ca.Yp=a);var k=b.ca.Yp;return d>=c+k?(b.ca.Xp=c+k,d>=b.ca.Xp+k&&(b.ca.Xp=d),b.ca.Yp=a,p):u};a.prototype.Ay=function(a){if(!a)return u;var b=a.Za(),c=b.ne(),d=ra(Math.random()*c.length);if(d>=c.length)return u;b.Sk(c[d]);a.$g();return p};a.prototype.Df=function(a,b,c){return $b(a.mj(),b,c)};a.prototype.Zx=function(){var a=this.j.od();return a.Wq?u:!a.uk};a.prototype.Xt=da(p);a.prototype.uy=da(p);a.prototype.kq=da(p);a.prototype.yy=da(p);a.prototype.jq=da(p);d.O=new a;b.prototype.Ri=function(a){!this.j.nm&&
!this.j.Il&&(this.j.Il=a)};b.prototype.Mi=function(a,b,c,d){if(b&&a&&(b=this.j.Nq(a,b,c,d))){this.j.Pe++;var k;this.j.trigger(Object.getPrototypeOf(a.ic).O.ql,b);if(b.Xd){c=0;for(d=b.siblings.length;c<d;c++)k=b.siblings[c],this.j.trigger(Object.getPrototypeOf(k.type.ic).O.ql,k)}this.j.Pe--;a=a.Za();a.sb=u;a.G.length=1;a.G[0]=b;if(b.Xd){c=0;for(d=b.siblings.length;c<d;c++)k=b.siblings[c],a=k.type.Za(),a.sb=u,a.G.length=1,a.G[0]=k}}};b.prototype.ke=function(a,b){0===a.mn?ka(b)?a.Hh(b):a.Hh(parseFloat(b)):
1===a.mn&&a.Hh(b.toString())};b.prototype.Sp=function(a,b){0===a.mn?ka(b)?a.Hh(a.mj()+b):a.Hh(a.mj()+parseFloat(b)):1===a.mn&&a.Hh(a.mj()+b.toString())};b.prototype.qu=function(a,b){0===a.mn&&(ka(b)?a.Hh(a.mj()-b):a.Hh(a.mj()-parseFloat(b)))};var e=[],g=[];b.prototype.fu=function(a){this.j.wp=a};b.prototype.jy=function(a){this.j.wm=a};d.K=new b;c.prototype["int"]=function(a,b){la(b)?(a.xb(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.xb(b)};c.prototype["float"]=function(a,b){la(b)?(a.ra(parseFloat(b)),
isNaN(a.data)&&(a.data=0)):a.ra(b)};c.prototype.random=function(a,b,c){c===m?a.ra(Math.random()*b):a.ra(Math.random()*(c-b)+b)};c.prototype.sqrt=function(a,b){a.ra(Math.sqrt(b))};c.prototype.abs=function(a,b){a.ra(Math.abs(b))};c.prototype.round=function(a,b){a.xb(Math.round(b))};c.prototype.floor=function(a,b){a.xb(Math.floor(b))};c.prototype.ceil=function(a,b){a.xb(Math.ceil(b))};c.prototype.sin=function(a,b){a.ra(Math.sin(Aa(b)))};c.prototype.cos=function(a,b){a.ra(Math.cos(Aa(b)))};c.prototype.tan=
function(a,b){a.ra(Math.tan(Aa(b)))};c.prototype.asin=function(a,b){a.ra(Ba(Math.asin(b)))};c.prototype.acos=function(a,b){a.ra(Ba(Math.acos(b)))};c.prototype.exp=function(a,b){a.ra(Math.exp(b))};c.prototype.max=function(a){var b=arguments[1],c,d;c=2;for(d=arguments.length;c<d;c++)b<arguments[c]&&(b=arguments[c]);a.ra(b)};c.prototype.min=function(a){var b=arguments[1],c,d;c=2;for(d=arguments.length;c<d;c++)b>arguments[c]&&(b=arguments[c]);a.ra(b)};c.prototype.Da=function(a){a.ra(this.j.Da)};c.prototype.Ih=
function(a){a.ra(this.j.Ih)};c.prototype.time=function(a){a.ra(this.j.Qe.ae)};c.prototype.Bf=function(a){a.xb(this.j.Bf)};c.prototype.ip=function(a){a.xb(this.j.ip)};c.prototype.gr=function(a){a.xb(this.j.gr)};c.prototype.kg=function(a,b,c,d,k){a.ra(Ma(b,c,d,k))};c.prototype.L=function(a,b,c,d,k){a.ra(Ba(Ha(b,c,d,k)))};c.prototype.um=function(a){a.xb(this.j.qb.width)};c.prototype.vk=function(a){a.xb(this.j.qb.height)};c.prototype.left=function(a,b,c){a.Zf(la(b)?b.substr(0,c):"")};c.prototype.right=
function(a,b,c){a.Zf(la(b)?b.substr(b.length-c):"")};c.prototype.replace=function(a,b,c,d){la(b)&&la(c)&&la(d)?a.Zf(b.replace(RegExp(Va(c),"gi"),d)):a.Zf(la(b)?b:"")};c.prototype.Lq=function(a){a.ra(this.j.Lq/1E3)};c.prototype.So=function(a){a.ra(this.j.So)};d.ba=new c;d.vC=function(){var a,b,c,d,k,q,t=this.j.od();a=0;for(c=this.Ee.length;a<c;a++)if(d=this.Ee[a],!(d.time>this.j.Qe.ae)){t.md=d.Ol;t.Ie=d.Ie;t.tc=0;for(b in d.De)d.De.hasOwnProperty(b)&&(k=this.j.ea[parseInt(b,10)].Za(),q=d.De[b],k.sb=
q.Ww,ya(k.G,q.qj),k=q,k.qj.length=0,g.push(k));d.Ol.tC();this.j.Gq(d.Bb);d.cv=p}b=a=0;for(c=this.Ee.length;a<c;a++)d=this.Ee[a],this.Ee[b]=d,d.cv?(Qa(d.De),d.Bb.length=0,e.push(d)):b++;this.Ee.length=b}})();
function Fb(a){var b=a[0].prototype,c=a[1],d=a[3],e=a[4],g=a[5],f=a[6],n=a[7];a=a[8];b.O||(b.O={});b.K||(b.K={});b.ba||(b.ba={});var l=b.O,h=b.K,b=b.ba;d&&(l.qD=function(a,b){return $b(this.x,a,b)},l.Ht=function(a,b){return $b(this.y,a,b)},l.zD=function(){var a=this.U;this.Zb();var b=this.Na;return!(b.right<a.de||b.bottom<a.fe||b.left>a.ee||b.top>a.be)},l.iy=function(){this.Zb();var a=this.Na,b=this.j.qb;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},l.ND=function(a,b,c){var d=this.Za(),
e=d.ne();if(!e.length)return u;var f=e[0],h=f,g=Ma(f.x,f.y,b,c),l,n,I;l=1;for(n=e.length;l<n;l++)if(f=e[l],I=Ma(f.x,f.y,b,c),0===a&&I<g||1===a&&I>g)g=I,h=f;d.Sk(h);return p},h.gE=function(a){this.x!==a&&(this.x=a,this.wa())},h.hE=function(a){this.y!==a&&(this.y=a,this.wa())},h.bE=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.wa()},h.cE=function(a,b){var c=a.IA(this);if(c){var d;c.nf?(d=c.nf(b,p),c=c.nf(b,u)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.wa()}},h.FD=
function(a){0!==a&&(this.x+=Math.cos(this.L)*a,this.y+=Math.sin(this.L)*a,this.wa())},h.my=function(a,b){0!==b&&(this.x+=Math.cos(Aa(a))*b,this.y+=Math.sin(Aa(a))*b,this.wa())},b.Dl=function(a){a.ra(this.x)},b.bk=function(a){a.ra(this.y)},b.Da=function(a){a.ra(this.j.Wl(this))});e&&(l.pD=function(a,b){return $b(this.width,a,b)},l.nD=function(a,b){return $b(this.height,a,b)},h.nu=function(a){this.width!==a&&(this.width=a,this.wa())},h.$D=function(a){this.height!==a&&(this.height=a,this.wa())},h.dE=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.wa()},b.lE=function(a){a.ra(this.width)},b.tD=function(a){a.ra(this.height)},b.jD=function(a){this.Zb();a.ra(this.Na.left)},b.lD=function(a){this.Zb();a.ra(this.Na.top)},b.kD=function(a){this.Zb();a.ra(this.Na.right)},b.iD=function(a){this.Zb();a.ra(this.Na.bottom)});g&&(l.cD=function(a,b){return Ia(this.L,Aa(b))<=Aa(a)},l.xD=function(a){return Ka(this.L,Aa(a))},l.vD=function(a,b){var c=Fa(a),d=Fa(b),e=Da(this.L);return Ka(d,
c)?Ka(e,c)&&!Ka(e,d):!(!Ka(e,c)&&Ka(e,d))},h.In=function(a){a=Aa(Ca(a));!isNaN(a)&&this.L!==a&&(this.L=a,this.wa())},h.TD=function(a){0!==a&&!isNaN(a)&&(this.L+=Aa(a),this.L=Da(this.L),this.wa())},h.UD=function(a){0!==a&&!isNaN(a)&&(this.L-=Aa(a),this.L=Da(this.L),this.wa())},h.VD=function(a,b){var c=Ja(this.L,Aa(b),Aa(a));!isNaN(c)&&this.L!==c&&(this.L=c,this.wa())},h.WD=function(a,b,c){a=Ja(this.L,Math.atan2(c-this.y,b-this.x),Aa(a));!isNaN(a)&&this.L!==a&&(this.L=a,this.wa())},h.eE=function(a,
b){var c=Math.atan2(b-this.y,a-this.x);!isNaN(c)&&this.L!==c&&(this.L=c,this.wa())},b.bD=function(a){a.ra(Ea(this.L))});c||(l.Ux=function(a,b,c){return $b(this.Wc[a],b,c)},l.wD=function(a){return this.Wc[a]},l.OD=function(a,b){var c=this.Za(),d=c.ne();if(!d.length)return u;var e=d[0],f=e,h=e.Wc[b],g,l,n;g=1;for(l=d.length;g<l;g++)if(e=d[g],n=e.Wc[b],0===a&&n<h||1===a&&n>h)h=n,f=e;c.Sk(f);return p},l.MD=function(a){var b,c,d,e,f;if(this.j.kr().em){f=this.Za();if(f.sb){f.sb=u;f.G.length=0;f.Gb.length=
0;d=this.G;b=0;for(c=d.length;b<c;b++)e=d[b],e.uid===a?f.Gb.push(e):f.G.push(e)}else{d=b=0;for(c=f.G.length;b<c;b++)e=f.G[b],f.G[d]=e,e.uid===a?f.Gb.push(e):d++;f.G.length=d}return!!f.G.length}e=this.j.lj(a);if(!e)return u;f=this.Za();if(!f.sb&&-1===f.G.indexOf(e))return u;if(this.Qa){a=e.type.Hb;b=0;for(c=a.length;b<c;b++)if(a[b]===this)return f.Sk(e),p}else if(e.type===this)return f.Sk(e),p;return u},l.ql=da(p),l.wy=da(p),h.aE=function(a,b){var c=this.Wc;ka(c[a])?c[a]=ka(b)?b:parseFloat(b):la(c[a])&&
(c[a]=la(b)?b:b.toString())},h.aD=function(a,b){var c=this.Wc;ka(c[a])?c[a]=ka(b)?c[a]+b:c[a]+parseFloat(b):la(c[a])&&(c[a]=la(b)?c[a]+b:c[a]+b.toString())},h.My=function(a,b){var c=this.Wc;ka(c[a])&&(c[a]=ka(b)?c[a]-b:c[a]-parseFloat(b))},h.XD=function(a,b){this.Wc[a]=b?1:0},h.jE=function(a){this.Wc[a]=1-this.Wc[a]},h.yb=function(){this.j.Oh(this)},b.rD=function(a){var b=a.Mk.G.length,c,d,e;c=0;for(d=this.j.ig.length;c<d;c++)e=this.j.ig[c],a.Mk.Qa?0<=e.type.Hb.indexOf(a.Mk)&&b++:e.type===a.Mk&&b++;
a.xb(b)},b.QD=function(a){a.xb(a.Mk.Za().ne().length)},b.kE=function(a){a.xb(this.uid)},b.uD=function(a){a.xb(this.Zl())});f&&(l.BD=A("visible"),h.fE=function(a){!a!==!this.visible&&(this.visible=a,this.j.tb=p)},l.oD=function(a,b){return $b(Za(100*this.opacity),a,b)},h.yl=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.j.tb=p)},b.Opacity=function(a){a.ra(Za(100*this.opacity))});n&&(l.yD=function(a){return!a?u:this.U===a},l.PD=function(a){var b=this.Za(),c=b.ne();if(!c.length)return u;
var d=c[0],e=d,f,h;f=1;for(h=c.length;f<h;f++)if(d=c[f],0===a){if(d.U.index>e.U.index||d.U.index===e.U.index&&d.Oe()>e.Oe())e=d}else if(d.U.index<e.U.index||d.U.index===e.U.index&&d.Oe()<e.Oe())e=d;b.Sk(e);return p},h.ID=function(){var a=this.Oe();a!==this.U.G.length-1&&(xa(this.U.G,a),this.U.G.push(this),this.j.tb=p,this.U.Fe=p)},h.GD=function(){var a=this.Oe();0!==a&&(xa(this.U.G,a),this.U.G.unshift(this),this.j.tb=p,this.U.Fe=p)},h.HD=function(a){a&&a!=this.U&&(xa(this.U.G,this.Oe()),this.U.Fe=
p,this.U=a,this.Sj=a.G.length,a.G.push(this),this.j.tb=p)},h.nE=function(a,b){var c=0===a;if(b){var d=b.DA(this);if(d&&d.uid!==this.uid){this.U.index!==d.U.index&&(xa(this.U.G,this.Oe()),this.U.Fe=p,this.U=d.U,this.Sj=d.U.G.length,d.U.G.push(this));var e=this.Oe(),d=d.Oe();xa(this.U.G,e);e<d&&d--;c&&d++;d===this.U.G.length?this.U.G.push(this):this.U.G.splice(d,0,this);this.U.Fe=p;this.j.tb=p}}},b.DD=function(a){a.xb(this.U.rw)},b.CD=function(a){a.Zf(this.U.name)},b.mE=function(a){a.xb(this.Oe())});
a&&(h.YD=function(a,b){if(this.j.Ea){var c=this.type.mr(b);if(!(0>c)){var d=1===a;this.Vh[c]!==d&&(this.Vh[c]=d,this.Kh(),this.j.tb=p)}}},h.ZD=function(a,b,c){if(this.j.Ea){var d=this.type.mr(a);0>d||(a=this.type.Ia[d],d=this.cc[d],b=Math.floor(b),0>b||b>=d.length||(1===this.j.Ea.LA(a.gd,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.dd&&(this.j.tb=p))))}})}function Ub(){this.Cq=p;this.j.tb=p;var a,b;a=0;for(b=this.Nn.length;a<b;a++)this.Nn[a](this)}function Vb(a){a&&this.Nn.push(a)}
function Xb(){if(this.Cq){this.Na.set(this.x,this.y,this.x+this.width,this.y+this.height);this.Na.offset(-this.qe*this.width,-this.se*this.height);this.L?(this.Na.offset(-this.x,-this.y),this.Eb.cx(this.Na,this.L),this.Eb.offset(this.x,this.y),this.Eb.Nu(this.Na)):this.Eb.et(this.Na);var a=0;this.Na.left>this.Na.right&&(a=this.Na.left,this.Na.left=this.Na.right,this.Na.right=a);this.Na.top>this.Na.bottom&&(a=this.Na.top,this.Na.top=this.Na.bottom,this.Na.bottom=a);this.Cq=u}}
function Wb(a,b){return!this.Na.Le(a,b)||!this.Eb.Le(a,b)?u:this.mb&&!this.mb.pk()?(this.mb.fk(this.width,this.height,this.L),this.mb.Le(a-this.x,b-this.y)):p}function Sb(){this.type.Np();return this.am}function Yb(){this.U.TC();return this.Sj}function Zb(){this.lb.length=0;var a,b;a=0;for(b=this.Vh.length;a<b;a++)this.Vh[a]&&this.lb.push(this.type.Ia[a]);this.Ix=!!this.lb.length}function Tb(){return"Inst"+this.Ow}
function Hb(a){if(a&&a.Xd&&a.type!=this){var b,c,d;b=0;for(c=a.siblings.length;b<c;b++)if(d=a.siblings[b],d.type==this)return d}a=this.Za().ne();return a.length?a[0]:r}function Ib(a){var b=this.Za().ne();return b.length?b[a.Zl()%b.length]:r}function Gb(){if(this.Ei&&!this.Qa){var a,b;a=0;for(b=this.G.length;a<b;a++)this.G[a].am=a;this.Ei=u}}function Jb(){return this.Ci[this.gh]}function Kb(){this.gh++;this.gh===this.Ci.length?this.Ci.push(new ab(this)):this.Ci[this.gh].sb=p}
function Lb(){this.gh++;this.gh===this.Ci.length&&this.Ci.push(new ab(this));var a=this.Ci[this.gh],b=this.Ci[this.gh-1];b.sb?a.sb=p:(a.sb=u,ya(a.G,b.G))}function Mb(){this.gh--}function Nb(a){var b,c,d,e,g,f=0;if(!this.Qa){b=0;for(c=this.Hb.length;b<c;b++){g=this.Hb[b];d=0;for(e=g.Tb.length;d<e;d++){if(a===g.Tb[d].name)return this.ca.Pv=f,g.Tb[d];f++}}}b=0;for(c=this.Tb.length;b<c;b++){if(a===this.Tb[b].name)return this.ca.Pv=f,this.Tb[b];f++}return r}
function Ob(a){return this.qo(a)?this.ca.Pv:-1}function Pb(a){var b,c;b=0;for(c=this.Ia.length;b<c;b++)if(this.Ia[b].name===a)return b;return-1}
function Qb(){if(this.Xd&&!this.Qa){var a,b,c,d,e,g,f;this.Np();g=this.Za();var n=g.sb,l=(a=this.j.od())&&a.md&&a.md.Vf;a=0;for(b=this.Ud.length;a<b;a++)if(e=this.Ud[a],e!==this&&(e.Np(),f=e.Za(),f.sb=n,!n)){f.G.length=g.G.length;c=0;for(d=g.G.length;c<d;c++)f.G[c]=e.G[g.G[c].am];if(l){f.Gb.length=g.Gb.length;c=0;for(d=g.Gb.length;c<d;c++)f.Gb[c]=e.G[g.Gb[c].am]}}}}function Rb(){return"Type"+this.Va}
function $b(a,b,c){if("undefined"===typeof a||"undefined"===typeof c)return u;switch(b){case 0:return a===c;case 1:return a!==c;case 2:return a<c;case 3:return a<=c;case 4:return a>c;case 5:return a>=c;default:return u}}var Cb={};function ac(a){this.j=a}
(function(){function a(a){0>a&&(a=0);1<a&&(a=1);return 20*(Math.log(a)/Math.log(10))}function b(a){a=a.toLowerCase();return fa.hasOwnProperty(a)&&fa[a].length?fa[a][0].Ne():S.destination}function c(){return S.createGain?S.createGain():S.createGainNode()}function d(a){return S.createDelay?S.createDelay(a):S.createDelayNode(a)}function e(a){a.start?a.start(0):a.noteOn(0)}function g(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function f(a){a.stop?a.stop(0):a.noteOff(0)}function n(a,b,d,e,k,f){this.type=
"filter";this.hc=[a,b,d,e,k,f];this.ab=c();this.Ha=c();this.Ha.gain.value=f;this.Ca=c();this.Ca.gain.value=1-f;this.wc=S.createBiquadFilter();this.wc.type="number"===typeof this.wc.type?a:Se[a];this.wc.frequency.value=b;this.wc.detune&&(this.wc.detune.value=d);this.wc.Q.value=e;this.wc.gain.value=k;this.ab.connect(this.wc);this.ab.connect(this.Ca);this.wc.connect(this.Ha)}function l(a,b,e){this.type="delay";this.hc=[a,b,e];this.ab=c();this.Ha=c();this.Ha.gain.value=e;this.Ca=c();this.Ca.gain.value=
1-e;this.Km=c();this.kf=d(a);this.kf.delayTime.value=a;this.bo=c();this.bo.gain.value=b;this.ab.connect(this.Km);this.ab.connect(this.Ca);this.Km.connect(this.Ha);this.Km.connect(this.kf);this.kf.connect(this.bo);this.bo.connect(this.Km)}function h(a,b,d,e){this.type="convolve";this.hc=[b,d,e];this.ab=c();this.Ha=c();this.Ha.gain.value=d;this.Ca=c();this.Ca.gain.value=1-d;this.fj=S.createConvolver();a&&(this.fj.normalize=b,this.fj.buffer=a);this.ab.connect(this.fj);this.ab.connect(this.Ca);this.fj.connect(this.Ha)}
function k(a,b,k,f,h){this.type="flanger";this.hc=[a,b,k,f,h];this.ab=c();this.Ca=c();this.Ca.gain.value=1-h/2;this.Ha=c();this.Ha.gain.value=h/2;this.ko=c();this.ko.gain.value=f;this.kf=d(a+b);this.kf.delayTime.value=a;this.Zc=S.createOscillator();this.Zc.frequency.value=k;this.Be=c();this.Be.gain.value=b;this.ab.connect(this.kf);this.ab.connect(this.Ca);this.kf.connect(this.Ha);this.kf.connect(this.ko);this.ko.connect(this.kf);this.Zc.connect(this.Be);this.Be.connect(this.kf.delayTime);e(this.Zc)}
function q(a,b,d,k,f,h){this.type="phaser";this.hc=[a,b,d,k,f,h];this.ab=c();this.Ca=c();this.Ca.gain.value=1-h/2;this.Ha=c();this.Ha.gain.value=h/2;this.wc=S.createBiquadFilter();this.wc.type="number"===typeof this.wc.type?7:"allpass";this.wc.frequency.value=a;this.wc.detune&&(this.wc.detune.value=b);this.wc.Q.value=d;this.Zc=S.createOscillator();this.Zc.frequency.value=f;this.Be=c();this.Be.gain.value=k;this.ab.connect(this.wc);this.ab.connect(this.Ca);this.wc.connect(this.Ha);this.Zc.connect(this.Be);
this.Be.connect(this.wc.frequency);e(this.Zc)}function t(a){this.type="gain";this.hc=[a];this.hb=c();this.hb.gain.value=a}function v(a,b){this.type="tremolo";this.hc=[a,b];this.hb=c();this.hb.gain.value=1-b/2;this.Zc=S.createOscillator();this.Zc.frequency.value=a;this.Be=c();this.Be.gain.value=b/2;this.Zc.connect(this.Be);this.Be.connect(this.hb.gain);e(this.Zc)}function w(a,b){this.type="ringmod";this.hc=[a,b];this.ab=c();this.Ha=c();this.Ha.gain.value=b;this.Ca=c();this.Ca.gain.value=1-b;this.$m=
c();this.$m.gain.value=0;this.Zc=S.createOscillator();this.Zc.frequency.value=a;this.Zc.connect(this.$m.gain);e(this.Zc);this.ab.connect(this.$m);this.ab.connect(this.Ca);this.$m.connect(this.Ha)}function s(a,b,d,e,k){this.type="distortion";this.hc=[a,b,d,e,k];this.ab=c();this.op=c();this.np=c();this.DC(d,Math.pow(10,e/20));this.Ha=c();this.Ha.gain.value=k;this.Ca=c();this.Ca.gain.value=1-k;this.Qp=S.createWaveShaper();this.Zn=new Float32Array(65536);this.yA(a,b);this.Qp.Zn=this.Zn;this.ab.connect(this.op);
this.ab.connect(this.Ca);this.op.connect(this.Qp);this.Qp.connect(this.np);this.np.connect(this.Ha)}function y(a,b,c,d,e){this.type="compressor";this.hc=[a,b,c,d,e];this.hb=S.createDynamicsCompressor();this.hb.threshold.value=a;this.hb.knee.value=b;this.hb.ratio.value=c;this.hb.attack.value=d;this.hb.release.value=e}function B(a,b){this.type="analyser";this.hc=[a,b];this.hb=S.createAnalyser();this.hb.fftSize=a;this.hb.smoothingTimeConstant=b;this.wA=new Float32Array(this.hb.frequencyBinCount);this.hx=
new Uint8Array(a);this.uC=this.Tm=0}function F(){this.Ua=r;this.Ro=0;this.Di=[];this.As=this.No=this.Mo=0}function J(a,b){this.src=a;this.wb=ba;this.km=b;this.Bu=u;var d=this;this.lw=this.Js=r;this.Rk=[];this.xp=0;this.jp=u;ba===Q&&(b&&!C.Io)&&(this.wb=P,this.Js=c());this.Ub=r;var e;switch(this.wb){case P:this.Ub=new Audio;ba===Q&&this.Ub.addEventListener("canplay",function(){d.lw=S.createMediaElementSource(d.Ub);d.lw.connect(d.Js)});this.Ub.autoplay=u;this.Ub.UE="auto";this.Ub.src=a;break;case Q:e=
new XMLHttpRequest;e.open("GET",a,p);e.responseType="arraybuffer";e.onload=function(){if(S.decodeAudioData)S.decodeAudioData(e.response,function(a){d.Ub=a;var b,c,e;if(ja(d.kp))ja(d.Xn)||(b=d.Xn.fj,b.normalize=d.qw,b.buffer=a);else if(d.Rk.length){b=0;for(c=d.Rk.length;b<c;b++){a=d.Rk[b];e=new I(d,a.tx);e.ct(p);if("undefined"!==typeof a.sw&&(a.Ua=C.lj(a.sw),!a.Ua))continue;if(a.Ua){var k=La(a.Ua.x,a.Ua.y,a.Ua.U.Vd(),ib,jb,p),f=La(a.Ua.x,a.Ua.y,a.Ua.U.Vd(),ib,jb,u);e.bt(k,f,Ba(a.Ua.L+a.Ua.U.Vd()),
a.tr,a.Bs,a.Es);e.an(a.Ua)}else e.bt(a.x,a.y,a.R,a.tr,a.Bs,a.Es);e.play(d.bs,d.yt,d.xp);d.jp&&e.pause();ea.push(e)}d.Rk.length=0}else e=new I(d,d.kp),e.play(d.bs,d.yt,d.xp),d.jp&&e.pause(),ea.push(e)});else if(d.Ub=S.createBuffer(e.response,u),ja(d.kp)){if(!ja(d.Xn)){var a=d.Xn.fj;a.normalize=d.qw;a.buffer=d.Ub}}else a=new I(d,d.kp),a.play(d.bs,d.yt,d.xp),d.jp&&a.pause(),ea.push(a)};e.send();break;case ca:this.Ub=p;break;case ta:this.Ub=p}}function I(a,d){var e=this;this.Fi=d;this.Nd=this.kh=p;this.src=
a.src;this.buffer=a;this.wb=ba;this.km=a.km;this.playbackRate=1;this.Ls=p;this.sg=this.Fh=u;this.Ze=0;this.Go=this.lm=this.vg=u;this.Lk=this.volume=1;this.startTime=C.Qe.ae;this.nc=this.Vc=r;this.Fg=u;this.Kc=r;this.Dw=this.Cw=this.Bw=this.Aw=this.Fw=this.Ew=0;this.Z=r;var k=u;switch(this.wb){case P:this.km?(this.Z=a.Ub,k=!a.Bu,a.Bu=p):(this.Z=new Audio,this.Z.autoplay=u,this.Z.src=a.Ub.src,k=p);k&&this.Z.addEventListener("ended",function(){W=e.Fi;e.Nd=p;C.trigger(ac.prototype.O.iq,V)});break;case Q:this.Vc=
c();this.Vc.connect(b(d));this.buffer.wb===Q?a.Ub&&(this.Z=S.createBufferSource(),this.Z.buffer=a.Ub,this.Z.connect(this.Vc)):(this.Z=this.buffer.Ub,this.buffer.Js.connect(this.Vc));break;case ca:this.Z=new window.Media(ga+this.src,r,r,function(a){a===window.Media.MEDIA_STOPPED&&(e.Ls=p,e.Nd=p,W=e.Fi,C.trigger(ac.prototype.O.iq,V))});break;case ta:this.Z=p}}function L(a){Ga.length=0;if(a.length){var b,c,d;b=0;for(c=ea.length;b<c;b++)d=ea[b],a.toLowerCase()===d.Fi.toLowerCase()&&Ga.push(d)}else kb&&
!kb.lk()&&(Ga.length=1,Ga[0]=kb)}function G(a,b){fa.hasOwnProperty(a)?fa[a].push(b):fa[a]=[b];var c,d,e,k,f=S.destination;if(fa.hasOwnProperty(a)&&(e=fa[a],e.length)){f=e[0].Ne();c=0;for(d=e.length;c<d;c++)k=e[c],c+1===d?k.hf(S.destination):k.hf(e[c+1].Ne())}L(a);c=0;for(d=Ga.length;c<d;c++)Ga[c].qC(f);cb&&Gc===a&&(cb.disconnect(),cb.connect(f))}function H(){}function z(){}var M=ac.prototype;M.ac=function(a){this.ic=a;this.j=a.j};M.ac.prototype.ib=x();var C=r,V=r,W="",ga="",P=0,Q=1,ca=2,ta=3,ba=P,
S=r,Hc=[],ea=[],kb=r,dc=u,ec=0,lb=u,Oa=1,ib=0,jb=0,Ic=1,Jc=1,Md=10,Nd=1E4,Od=1,cb=r,Gc="",fa={},Se="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");n.prototype.hf=function(a){this.Ha.disconnect();this.Ha.connect(a);this.Ca.disconnect();this.Ca.connect(a)};n.prototype.remove=function(){this.ab.disconnect();this.wc.disconnect();this.Ha.disconnect();this.Ca.disconnect()};n.prototype.Ne=A("ab");l.prototype.hf=function(a){this.Ha.disconnect();this.Ha.connect(a);this.Ca.disconnect();
this.Ca.connect(a)};l.prototype.remove=function(){this.ab.disconnect();this.Km.disconnect();this.kf.disconnect();this.bo.disconnect();this.Ha.disconnect();this.Ca.disconnect()};l.prototype.Ne=A("ab");h.prototype.hf=function(a){this.Ha.disconnect();this.Ha.connect(a);this.Ca.disconnect();this.Ca.connect(a)};h.prototype.remove=function(){this.ab.disconnect();this.fj.disconnect();this.Ha.disconnect();this.Ca.disconnect()};h.prototype.Ne=A("ab");k.prototype.hf=function(a){this.Ca.disconnect();this.Ca.connect(a);
this.Ha.disconnect();this.Ha.connect(a)};k.prototype.remove=function(){this.ab.disconnect();this.kf.disconnect();this.Zc.disconnect();this.Be.disconnect();this.Ca.disconnect();this.Ha.disconnect();this.ko.disconnect()};k.prototype.Ne=A("ab");q.prototype.hf=function(a){this.Ca.disconnect();this.Ca.connect(a);this.Ha.disconnect();this.Ha.connect(a)};q.prototype.remove=function(){this.ab.disconnect();this.wc.disconnect();this.Zc.disconnect();this.Be.disconnect();this.Ca.disconnect();this.Ha.disconnect()};
q.prototype.Ne=A("ab");t.prototype.hf=function(a){this.hb.disconnect();this.hb.connect(a)};t.prototype.remove=function(){this.hb.disconnect()};t.prototype.Ne=A("hb");v.prototype.hf=function(a){this.hb.disconnect();this.hb.connect(a)};v.prototype.remove=function(){this.Zc.disconnect();this.Be.disconnect();this.hb.disconnect()};v.prototype.Ne=A("hb");w.prototype.hf=function(a){this.Ha.disconnect();this.Ha.connect(a);this.Ca.disconnect();this.Ca.connect(a)};w.prototype.remove=function(){this.Zc.disconnect();
this.$m.disconnect();this.ab.disconnect();this.Ha.disconnect();this.Ca.disconnect()};w.prototype.Ne=A("ab");s.prototype.DC=function(a,b){0.01>a&&(a=0.01);this.op.gain.value=a;this.np.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.yA=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),e=0,k=0;32768>k;++k)e=k/32768,e=this.shape(e,c,d),this.Zn[32768+k]=e,this.Zn[32768-k-
1]=-e};s.prototype.hf=function(a){this.Ha.disconnect();this.Ha.connect(a);this.Ca.disconnect();this.Ca.connect(a)};s.prototype.remove=function(){this.ab.disconnect();this.op.disconnect();this.Qp.disconnect();this.np.disconnect();this.Ha.disconnect();this.Ca.disconnect()};s.prototype.Ne=A("ab");y.prototype.hf=function(a){this.hb.disconnect();this.hb.connect(a)};y.prototype.remove=function(){this.hb.disconnect()};y.prototype.Ne=A("hb");B.prototype.kc=function(){this.hb.getFloatFrequencyData(this.wA);
this.hb.getByteTimeDomainData(this.hx);for(var b=this.hb.fftSize,c=0,d=this.Tm=0,e=0;c<b;c++)e=(this.hx[c]-128)/128,0>e&&(e=-e),this.Tm<e&&(this.Tm=e),d+=e*e;this.Tm=a(this.Tm);this.uC=a(Math.sqrt(d/b))};B.prototype.hf=function(a){this.hb.disconnect();this.hb.connect(a)};B.prototype.remove=function(){this.hb.disconnect()};B.prototype.Ne=A("hb");F.prototype.an=function(a){if(this.Ua=a)this.Mo=this.Ua.x,this.No=this.Ua.y;this.Di.length=0};F.prototype.Ao=function(){return!!this.Ua};F.prototype.kc=function(a){this.Ua&&
(this.As=Ha(this.Mo,this.No,this.Ua.x,this.Ua.y),a=Ma(this.Mo,this.No,this.Ua.x,this.Ua.y)/a,4>this.Di.length||this.Di.shift(),this.Di.push(a),this.Mo=this.Ua.x,this.No=this.Ua.y)};F.prototype.yv=function(){if(!this.Di.length)return 0;var a,b,c=0;a=0;for(b=this.Di.length;a<b;a++)c+=this.Di[a];return c/this.Di.length};F.prototype.zv=function(){return Math.cos(this.As)*this.yv()};F.prototype.Av=function(){return Math.sin(this.As)*this.yv()};var Pd=u;I.prototype.lk=function(){switch(this.wb){case P:return this.Z.ended;
case Q:return this.buffer.wb===Q?!this.kh&&!this.Nd&&this.Z.loop||this.sg?u:C.Qe.ae-this.startTime>this.buffer.Ub.duration:this.Z.ended;case ca:return this.Ls;case ta:p}return p};I.prototype.tz=function(){return this.kh||this.Nd?p:this.lk()};I.prototype.ct=function(a){ba===Q&&(!this.Fg&&a?(this.nc||(this.nc=S.createPanner(),this.nc.panningModel="number"===typeof this.nc.panningModel?Ic:["equalpower","HRTF","soundfield"][Ic],this.nc.distanceModel="number"===typeof this.nc.distanceModel?Jc:["linear",
"inverse","exponential"][Jc],this.nc.refDistance=Md,this.nc.maxDistance=Nd,this.nc.rolloffFactor=Od),this.Vc.disconnect(),this.Vc.connect(this.nc),this.nc.connect(b(this.Fi)),this.Fg=p):this.Fg&&!a&&(this.nc.disconnect(),this.Vc.disconnect(),this.Vc.connect(b(this.Fi)),this.Fg=u))};I.prototype.bt=function(a,b,c,d,e,k){this.Fg&&ba===Q&&(this.nc.setPosition(a,b,0),this.nc.setOrientation(Math.cos(Aa(c)),Math.sin(Aa(c)),0),this.nc.coneInnerAngle=d,this.nc.coneOuterAngle=e,this.nc.coneOuterGain=k,this.Ew=
a,this.Fw=b,this.Aw=c,this.Bw=d,this.Cw=e,this.Dw=k)};I.prototype.an=function(a){this.Fg&&ba===Q&&(this.Kc||(this.Kc=new F),this.Kc.an(a))};I.prototype.kc=function(a){if(this.Fg&&!(ba!==Q||!this.Kc||!this.Kc.Ao()||!this.ok())){this.Kc.kc(a);a=this.Kc.Ua;var b=La(a.x,a.y,a.U.Vd(),ib,jb,p),c=La(a.x,a.y,a.U.Vd(),ib,jb,u);this.nc.setPosition(b,c,0);b=0;"undefined"!==typeof this.Kc.Ua.L&&(b=a.L+a.U.Vd(),this.nc.setOrientation(Math.cos(b),Math.sin(b),0));this.nc.setVelocity(this.Kc.zv(),this.Kc.Av(),0)}};
I.prototype.play=function(a,b,c){var d=this.Z;this.vg=a;this.volume=b;c=c||0;switch(this.wb){case P:1!==d.playbackRate&&(d.playbackRate=1);d.volume!==b*Oa&&(d.volume=b*Oa);d.loop!==a&&(d.loop=a);d.muted&&(d.muted=u);if(d.currentTime!==c)try{d.currentTime=c}catch(k){}this.Z.play();break;case Q:this.muted=u;this.Lk=1;if(this.buffer.wb===Q)this.kh||(this.Z=S.createBufferSource(),this.Z.buffer=this.buffer.Ub,this.Z.connect(this.Vc)),this.Z.loop=a,this.Vc.gain.value=b*Oa,0===c?e(this.Z):g(this.Z,c,this.kj());
else{1!==d.playbackRate&&(d.playbackRate=1);d.loop!==a&&(d.loop=a);this.Vc.gain.value=b*Oa;if(d.currentTime!==c)try{d.currentTime=c}catch(f){}d.play()}break;case ca:(!this.kh&&this.Nd||0!==c)&&d.seekTo(c);d.play();this.Ls=u;break;case ta:C.Nf?AppMobi.context.playSound(this.src):AppMobi.player.playSound(this.src)}this.playbackRate=1;this.startTime=C.Qe.ae-c;this.sg=this.Nd=this.kh=u};I.prototype.stop=function(){switch(this.wb){case P:this.Z.paused||this.Z.pause();break;case Q:this.buffer.wb===Q?f(this.Z):
this.Z.paused||this.Z.pause();break;case ca:this.Z.stop()}this.Nd=p;this.sg=u};I.prototype.pause=function(){if(!this.kh&&!this.Nd&&!this.lk()&&!this.sg){switch(this.wb){case P:this.Z.paused||this.Z.pause();break;case Q:this.buffer.wb===Q?(this.Ze=this.or(),this.vg&&(this.Ze%=this.kj()),f(this.Z)):this.Z.paused||this.Z.pause();break;case ca:this.Z.pause()}this.sg=p}};I.prototype.sC=function(){if(!this.kh&&!this.Nd&&!this.lk()&&this.sg){switch(this.wb){case P:this.Z.play();break;case Q:this.buffer.wb===
Q?(this.Z=S.createBufferSource(),this.Z.buffer=this.buffer.Ub,this.Z.connect(this.Vc),this.Z.loop=this.vg,this.Vc.gain.value=Oa*this.volume*this.Lk,this.startTime=C.Qe.ae-this.Ze,g(this.Z,this.Ze,this.kj())):this.Z.play();break;case ca:this.Z.play()}this.sg=u}};I.prototype.qC=function(a){this.wb===Q&&(this.Fg?(this.nc.disconnect(),this.nc.connect(a)):(this.Vc.disconnect(),this.Vc.connect(a)))};I.prototype.kj=function(){switch(this.wb){case P:if("undefined"!==typeof this.Z.duration)return this.Z.duration;
break;case Q:return this.buffer.Ub.duration;case ca:return this.Z.getDuration()}return 0};I.prototype.or=function(){var a=this.kj(),b=0;switch(this.wb){case P:"undefined"!==typeof this.Z.currentTime&&(b=this.Z.currentTime);break;case Q:if(this.buffer.wb===Q){if(this.sg)return this.Ze;b=C.Qe.ae-this.startTime}else"undefined"!==typeof this.Z.currentTime&&(b=this.Z.currentTime)}!this.vg&&b>a&&(b=a);return b};I.prototype.ok=function(){return!this.sg&&!this.kh&&!this.Nd&&!this.lk()};I.prototype.SC=function(){var a=
this.volume*Oa;switch(this.wb){case P:this.Z.volume&&this.Z.volume!==a&&(this.Z.volume=a);break;case Q:this.Vc.gain.value=a*this.Lk}};I.prototype.Tq=function(a){switch(this.wb){case P:this.Z.muted!==!!a&&(this.Z.muted=!!a);break;case Q:this.Lk=a?0:1,this.Vc.gain.value=Oa*this.volume*this.Lk}};I.prototype.EC=function(a){this.lm=!!a;this.Tq(this.lm||this.Go)};I.prototype.ax=function(a){this.Go=!!a;this.Tq(this.lm||this.Go)};I.prototype.Fx=function(){var a=this.playbackRate;if(1===ec&&!this.km||2===
ec)a*=C.Ih;switch(this.wb){case P:this.Z.playbackRate!==a&&(this.Z.playbackRate=a);break;case Q:this.buffer.wb===Q?this.Z.playbackRate.value!==a&&(this.Z.playbackRate.value=a):this.Z.playbackRate!==a&&(this.Z.playbackRate=a)}};I.prototype.FC=function(a){switch(this.wb){case P:a?this.ok()?(this.Z.pause(),this.Fh=p):this.Fh=u:this.Fh&&this.Z.play();break;case Q:a?this.ok()?(this.buffer.wb===Q?(this.Ze=this.or(),this.vg&&(this.Ze%=this.kj()),f(this.Z)):this.Z.pause(),this.Fh=p):this.Fh=u:this.Fh&&(this.buffer.wb===
Q?(this.Z=S.createBufferSource(),this.Z.buffer=this.buffer.Ub,this.Z.connect(this.Vc),this.Z.loop=this.vg,this.Vc.gain.value=Oa*this.volume*this.Lk,this.startTime=C.Qe.ae-this.Ze,g(this.Z,this.Ze,this.kj())):this.Z.play());break;case ca:a?this.ok()?(this.Z.pause(),this.Fh=p):this.Fh=u:this.Fh&&this.Z.play()}};M.Db=function(a){this.type=a;C=this.j=a.j;V=this;this.Fd=r;this.vm=-600;S=r;"undefined"!==typeof AudioContext?(ba=Q,S=new AudioContext):"undefined"!==typeof webkitAudioContext&&(ba=Q,S=new webkitAudioContext);
this.j.Io&&ba===Q&&document.addEventListener("touchstart",function(){if(!Pd){var a=S.createBuffer(1,1,22050),b=S.createBufferSource();b.buffer=a;b.connect(S.destination);e(b);Pd=p}},p);ba!==Q&&(this.j.rj?ba=ca:this.j.nk&&(ba=ta));ba===ca&&(ga=location.href,a=ga.lastIndexOf("/"),-1<a&&(ga=ga.substr(0,a+1)),ga=ga.replace("file://",""));if(this.j.kB&&this.j.Mv&&"undefined"===typeof Audio)alert("It looks like you're using Safari for Windows without Quicktime.  Audio cannot be played until Quicktime is installed."),
this.j.Oh(this);else{if(this.j.Nf)dc=this.j.Dr;else try{dc=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){dc=u}this.j.Gp(this)}};var Sa=M.Db.prototype;Sa.ib=function(){ec=this.da[0];Ic=this.da[1];Jc=this.da[2];this.vm=-this.da[3];Md=this.da[4];Nd=this.da[5];Od=this.da[6];this.Fd=new F;ba===Q&&(S.listener.speedOfSound=this.da[7],S.listener.dopplerFactor=this.da[8],S.listener.setPosition(this.j.width/2,this.j.height/2,this.vm),S.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=
function(a,c){cb&&cb.disconnect();Gc=c.toLowerCase();cb=S.createMediaStreamSource(a);cb.connect(b(Gc))});this.j.hz(function(a){V.dC(a)});var a=this;this.j.Aq(function(b){a.Fs(b)})};Sa.Fs=function(a){var b,c,d;b=0;for(c=ea.length;b<c;b++)d=ea[b],d.Kc&&d.Kc.Ua===a&&(d.Kc.Ua=r,d.Fg&&(d.ok()&&d.vg)&&d.stop());this.Fd.Ua===a&&(this.Fd.Ua=r)};Sa.Md=function(){var a={silent:lb,masterVolume:Oa,listenerZ:this.vm,listenerUid:this.Fd.Ao()?this.Fd.Ua.uid:-1,playing:[],effects:{}},b=a.playing,c,d,e,k,f,h;c=0;
for(d=ea.length;c<d;c++)e=ea[c],e.ok()&&(k=e.or(),e.vg&&(k%=e.kj()),k={tag:e.Fi,buffersrc:e.buffer.src,is_music:e.km,playbackTime:k,volume:e.volume,looping:e.vg,muted:e.lm,playbackRate:e.playbackRate,paused:e.sg,resume_position:e.Ze},e.Fg&&(k.pan={},h=k.pan,e.Kc&&e.Kc.Ao()?h.objUid=e.Kc.Ua.uid:(h.x=e.Ew,h.y=e.Fw,h.a=e.Aw),h.ia=e.Bw,h.oa=e.Cw,h.og=e.Dw),b.push(k));b=a.effects;for(f in fa)if(fa.hasOwnProperty(f)){e=[];c=0;for(d=fa[f].length;c<d;c++)e.push({type:fa[f][c].type,params:fa[f][c].hc});b[f]=
e}return a};var Db=[];Sa.ue=function(a){var b=a.silent;Oa=a.masterVolume;this.vm=a.listenerZ;this.Fd.an(r);var c=a.listenerUid;-1!==c&&(this.Fd.Ro=c,Db.push(this.Fd));var c=a.playing,d,e,f,g,I,z,J,H,L,C,M;d=0;for(e=ea.length;d<e;d++)ea[d].stop();for(I in fa)if(fa.hasOwnProperty(I)){d=0;for(e=fa[I].length;d<e;d++)fa[I][d].remove()}Qa(fa);for(I in a.effects)if(a.effects.hasOwnProperty(I)){z=a.effects[I];d=0;for(e=z.length;d<e;d++)switch(f=z[d].type,C=z[d].params,f){case "filter":G(I,new n(C[0],C[1],
C[2],C[3],C[4],C[5]));break;case "delay":G(I,new l(C[0],C[1],C[2]));break;case "convolve":f=C[2];g=this.ir(f,u);g.Ub?f=new h(g.Ub,C[0],C[1],f):(f=new h(r,C[0],C[1],f),g.qw=C[0],g.Xn=f);G(I,f);break;case "flanger":G(I,new k(C[0],C[1],C[2],C[3],C[4]));break;case "phaser":G(I,new q(C[0],C[1],C[2],C[3],C[4],C[5]));break;case "gain":G(I,new t(C[0]));break;case "tremolo":G(I,new v(C[0],C[1]));break;case "ringmod":G(I,new w(C[0],C[1]));break;case "distortion":G(I,new s(C[0],C[1],C[2],C[3],C[4]));break;case "compressor":G(I,
new y(C[0],C[1],C[2],C[3],C[4]));break;case "analyser":G(I,new B(C[0],C[1]))}}d=0;for(e=c.length;d<e;d++)a=c[d],f=a.buffersrc,g=a.is_music,I=a.tag,z=a.playbackTime,J=a.looping,H=a.volume,M=(C=a.pan)&&C.hasOwnProperty("objUid")?C.objUid:-1,(L=this.tv(f,I,g,J,H))?(L.Ze=a.resume_position,L.ct(!!C),L.play(J,H,z),L.Fx(),L.SC(),L.Tq(L.lm||L.Go),a.paused&&L.pause(),a.muted&&L.LE(),C&&(-1!==M?(L.Kc=L.Kc||new F,L.Kc.Ro=M,Db.push(L.Kc)):L.bt(C.x,C.y,C.a,C.ia,C.oa,C.og))):(g=this.ir(f,g),g.xp=z,g.jp=a.paused,
C&&(-1!==M?g.Rk.push({sw:M,tr:C.ia,Bs:C.oa,Es:C.og,tx:I}):g.Rk.push({x:C.x,y:C.y,R:C.a,tr:C.ia,Bs:C.oa,Es:C.og,tx:I})));if(b&&!lb){d=0;for(e=ea.length;d<e;d++)ea[d].ax(p);lb=p}else if(!b&&lb){d=0;for(e=ea.length;d<e;d++)ea[d].ax(u);lb=u}};Sa.El=function(){var a,b,c,d;a=0;for(b=Db.length;a<b;a++)c=Db[a],d=this.j.lj(c.Ro),c.an(d),c.Ro=-1,d&&(ib=d.x,jb=d.y);Db.length=0};Sa.dC=function(a){var b,c;b=0;for(c=ea.length;b<c;b++)ea[b].FC(a)};Sa.kc=function(){var a=this.j.Da,b,c,d;b=0;for(c=ea.length;b<c;b++)d=
ea[b],d.kc(a),d.wb!==P&&d.wb!==ta&&(!d.kh&&!d.Nd&&d.lk())&&(d.Nd=p,W=d.Fi,C.trigger(ac.prototype.O.iq,V)),0!==ec&&d.Fx();var e,k;for(e in fa)if(fa.hasOwnProperty(e)){d=fa[e];b=0;for(c=d.length;b<c;b++)k=d[b],k.kc&&k.kc()}ba===Q&&this.Fd.Ao()&&(this.Fd.kc(a),ib=this.Fd.Ua.x,jb=this.Fd.Ua.y,S.listener.setPosition(this.Fd.Ua.x,this.Fd.Ua.y,this.vm),S.listener.setVelocity(this.Fd.zv(),this.Fd.Av(),0))};Sa.ir=function(a,b){var c,d,e;c=0;for(d=Hc.length;c<d;c++)if(e=Hc[c],e.src===a)return e;e=new J(a,b);
Hc.push(e);return e};Sa.tv=function(a,b,c,d,e){var k,f,h;k=0;for(f=ea.length;k<f;k++)if(h=ea[k],h.src===a&&(h.tz()||c))return h.Fi=b,h;a=this.ir(a,c);if(!a.Ub)return"<preload>"!==b&&(a.kp=b,a.bs=d,a.yt=e),r;h=new I(a,b);ea.push(h);return h};var Ga=[];H.prototype.iq=function(a){return W.toLowerCase()===a.toLowerCase()};M.O=new H;z.prototype.Play=function(a,b,c,d){if(!lb&&(c=Math.pow(10,c/20),0>c&&(c=0),1<c&&(c=1),kb=this.tv(this.j.ov+a[0]+(dc?".ogg":".m4a"),d,a[1],0!==b,c)))kb.ct(u),kb.play(0!==b,
c)};z.prototype.Gy=function(a,b){L(a);var c,d;c=0;for(d=Ga.length;c<d;c++)Ga[c].EC(0===b)};z.prototype.qq=function(a,b){L(a);var c,d;c=0;for(d=Ga.length;c<d;c++)0===b?Ga[c].pause():Ga[c].sC()};M.K=new z;M.ba=new (x())})();function K(a){this.j=a}
(function(){function a(){if(0===this.Sq.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Wk?b.drawImage(this.Od,this.Pk,this.Qk,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.Od,0,0,this.width,this.height);this.Sq=a.toDataURL("image/png")}return this.Sq}function b(){}function c(a,b,c){var d=k.length?k.pop():[0,0];d[0]=b.uid;d[1]=c.uid;a.push(d)}function d(a,b,c){b=b.uid;var d=c.uid,e=0,f,h;c=0;for(f=a.length;c<
f;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<f;c++)b=a[c],b[0]=0,b[1]=0,k.push(b);a.length=e}function e(a,b,c){b=b.uid;c=c.uid;var d,e,k;d=0;for(e=a.length;d<e;d++)if(k=a[d],k[0]===b&&k[1]===c||k[0]===c&&k[1]===b)return p;return u}function g(){}var f=K.prototype;f.ac=function(a){this.ic=a;this.j=a.j};var n=f.ac.prototype;n.ib=function(){if(!this.Qa){var b,c,d,e,k,f,h,g,l;this.Jf=[];this.Bo=u;b=0;for(c=this.le.length;b<c;b++){k=this.le[b];h={};
h.name=k[0];h.speed=k[1];h.loop=k[2];h.Vs=k[3];h.up=k[4];h.Gw=k[5];h.Va=k[6];h.frames=[];d=0;for(e=k[7].length;d<e;d++)f=k[7][d],g={},g.qx=f[0],g.rx=f[1],g.Pk=f[2],g.Qk=f[3],g.width=f[4],g.height=f[5],g.duration=f[6],g.qe=f[7],g.se=f[8],g.ur=f[9],g.lp=f[10],g.Hw=f[11],g.Wk=0!==g.width,g.Sq="",g.uE=a,l={left:0,top:0,right:1,bottom:1},g.gt=l,g.Li=r,(l=this.j.vA(f[0]))?g.Od=l:(g.Od=new Image,g.Od.src=f[0],g.Od.wz=f[0],g.Od.vz=f[1],g.Od.rz=r,this.j.Ki.push(g.Od)),h.frames.push(g),this.Jf.push(g);this.le[b]=
h}}};n.RC=function(){var a,b,c;a=0;for(b=this.G.length;a<b;a++)c=this.G[a],c.Yn=c.Me.Li};n.Hs=function(){if(!this.Qa){var a,b,c;a=0;for(b=this.Jf.length;a<b;++a)c=this.Jf[a],c.Od.rz=r,c.Li=r}};n.vw=function(){if(!this.Qa&&this.G.length){var a,b,c;a=0;for(b=this.Jf.length;a<b;++a)c=this.Jf[a],c.Li=this.j.Ea.Xv(c.Od,this.j.yc,c.Hw);this.RC()}};n.rB=function(){if(!this.Qa&&!this.Bo&&this.j.Ea){var a,b,c;a=0;for(b=this.Jf.length;a<b;++a)c=this.Jf[a],c.Li=this.j.Ea.Xv(c.Od,this.j.yc,c.Hw);this.Bo=p}};
n.Cx=function(){if(!this.Qa&&!this.G.length&&this.Bo){var a,b,c;a=0;for(b=this.Jf.length;a<b;++a)c=this.Jf[a],this.j.Ea.deleteTexture(c.Li);this.Bo=u}};var l=[];n.Kw=function(a){var b,c,d;b=l.length=0;for(c=this.Jf.length;b<c;++b)d=this.Jf[b].Od,-1===l.indexOf(d)&&(a.drawImage(d,0,0),l.push(d))};f.Db=function(a){this.type=a;this.j=a.j;a=this.type.le[0].frames[0].lp;this.xf?this.mb.bn(a):this.mb=new Wa(a)};var h=f.Db.prototype;h.ib=function(){this.visible=0===this.da[0];this.yr=this.Ir=u;this.Zh=0!==
this.da[3];!(1===this.type.le.length&&1===this.type.le[0].frames.length)&&0!==this.type.le[0].speed&&(this.j.Gp(this),this.Ir=p);this.Fb=this.sv(this.da[1])||this.type.le[0];this.ga=this.da[2];0>this.ga&&(this.ga=0);this.ga>=this.Fb.frames.length&&(this.ga=this.Fb.frames.length-1);var a=this.Fb.frames[this.ga];this.mb.bn(a.lp);this.qe=a.qe;this.se=a.se;this.Ll=this.Fb.speed;this.jh=this.uo();this.aj=p;this.Zg=0;this.$i=p;this.Tn=this.Eu="";this.Su=0;this.Fq=-1;this.type.rB();var b,c,d,e,k,f,h,a=0;
for(b=this.type.le.length;a<b;a++){e=this.type.le[a];c=0;for(d=e.frames.length;c<d;c++)k=e.frames[c],0===k.width&&(k.width=k.Od.width,k.height=k.Od.height),k.Wk&&(h=k.Od,f=k.gt,f.left=k.Pk/h.width,f.top=k.Qk/h.height,f.right=(k.Pk+k.width)/h.width,f.bottom=(k.Qk+k.height)/h.height,0===k.Pk&&(0===k.Qk&&k.width===h.width&&k.height===h.height)&&(k.Wk=u))}this.Me=this.Fb.frames[this.ga];this.Yn=this.Me.Li};h.Md=function(){var a={a:this.Fb.Va,f:this.ga,cas:this.Ll,fs:this.jh,ar:this.Zg};this.aj||(a.ap=
this.aj);this.$i||(a.af=this.$i);return a};h.ue=function(a){var b=this.zA(a.a);b&&(this.Fb=b);this.ga=a.f;0>this.ga&&(this.ga=0);this.ga>=this.Fb.frames.length&&(this.ga=this.Fb.frames.length-1);this.Ll=a.cas;this.jh=a.fs;this.Zg=a.ar;this.aj=a.hasOwnProperty("ap")?a.ap:p;this.$i=a.hasOwnProperty("af")?a.af:p;this.Me=this.Fb.frames[this.ga];this.Yn=this.Me.Li;this.mb.bn(this.Me.lp);this.qe=this.Me.qe;this.se=this.Me.se};h.Bq=function(a){this.ga=a?0:this.Fb.frames.length-1;this.aj=u;this.Eu=this.Fb.name;
this.yr=p;this.j.trigger(K.prototype.O.ty,this);this.j.trigger(K.prototype.O.ry,this);this.yr=u;this.Zg=0};h.uo=function(){return(Date.now()-this.j.dn)/1E3};h.kc=function(){this.Tn.length&&this.dv();0<=this.Fq&&this.Az();var a=this.uo(),b=this.Fb,c=b.frames[this.ga],d=c.duration/this.Ll,e=this.j.Ih;-1!==this.Kj&&(e=this.Kj);d/=0===e?1E-9:e;if(this.aj&&a>=this.jh+d){this.$i?this.ga++:this.ga--;this.jh+=d;this.ga>=b.frames.length&&(b.Gw?(this.$i=u,this.ga=b.frames.length-2):b.loop?this.ga=b.up:(this.Zg++,
this.Zg>=b.Vs?this.Bq(u):this.ga=b.up));0>this.ga&&(b.Gw?(this.ga=1,this.$i=p,b.loop||(this.Zg++,this.Zg>=b.Vs&&this.Bq(p))):b.loop?this.ga=b.up:(this.Zg++,this.Zg>=b.Vs?this.Bq(p):this.ga=b.up));0>this.ga?this.ga=0:this.ga>=b.frames.length&&(this.ga=b.frames.length-1);if(a>this.jh+b.frames[this.ga].duration/this.Ll/(0===e?1E-9:e))this.jh=a;a=b.frames[this.ga];this.rl(c,a);this.j.tb=p}};h.sv=function(a){var b,c,d=a.toLowerCase();a=0;for(b=this.type.le.length;a<b;a++)if(c=this.type.le[a],c.name.toLowerCase()===
d)return c;return r};h.zA=function(a){var b,c,d;b=0;for(c=this.type.le.length;b<c;b++)if(d=this.type.le[b],d.Va===a)return d;return r};h.dv=function(){var a=this.Fb.frames[this.ga],b=this.sv(this.Tn);this.Tn="";b&&!(b.name.toLowerCase()===this.Fb.name.toLowerCase()&&this.aj)&&(this.Fb=b,this.Ll=b.speed,0>this.ga&&(this.ga=0),this.ga>=this.Fb.frames.length&&(this.ga=this.Fb.frames.length-1),1===this.Su&&(this.ga=0),this.aj=p,this.jh=this.uo(),this.$i=p,this.rl(a,this.Fb.frames[this.ga]),this.j.tb=
p)};h.Az=function(){var a=this.Fb.frames[this.ga],b=this.ga;this.ga=ra(this.Fq);0>this.ga&&(this.ga=0);this.ga>=this.Fb.frames.length&&(this.ga=this.Fb.frames.length-1);b!==this.ga&&(this.rl(a,this.Fb.frames[this.ga]),this.jh=this.uo(),this.j.tb=p);this.Fq=-1};h.rl=function(a,b){var c=a.width,d=a.height,e=b.width,k=b.height;c!=e&&(this.width*=e/c);d!=k&&(this.height*=k/d);this.qe=b.qe;this.se=b.se;this.mb.bn(b.lp);this.wa();this.Me=b;this.Yn=b.Li;c=0;for(d=this.Ya.length;c<d;c++)e=this.Ya[c],e.ww&&
e.ww(a,b);this.j.trigger(K.prototype.O.rl,this)};h.hh=function(a){a.globalAlpha=this.opacity;var b=this.Me,c=b.Wk,d=b.Od,e=this.x,k=this.y,f=this.width,h=this.height;if(0===this.L&&0<=f&&0<=h)e-=this.qe*f,k-=this.se*h,this.j.si&&(e=e+0.5|0,k=k+0.5|0),c?a.drawImage(d,b.Pk,b.Qk,b.width,b.height,e,k,f,h):a.drawImage(d,e,k,f,h);else{this.j.si&&(e=e+0.5|0,k=k+0.5|0);a.save();var g=0<f?1:-1,l=0<h?1:-1;a.translate(e,k);(1!==g||1!==l)&&a.scale(g,l);a.rotate(this.L*g*l);e=0-this.qe*na(f);k=0-this.se*na(h);
c?a.drawImage(d,b.Pk,b.Qk,b.width,b.height,e,k,na(f),na(h)):a.drawImage(d,e,k,na(f),na(h));a.restore()}};h.Lf=function(a){a.yf(this.Yn);a.Uk(this.opacity);var b=this.Me,c=this.Eb;if(this.j.si){var d=(this.x+0.5|0)-this.x,e=(this.y+0.5|0)-this.y;b.Wk?a.vi(c.pc+d,c.qc+e,c.Pd+d,c.Qd+e,c.Bd+d,c.Cd+e,c.zd+d,c.Ad+e,b.gt):a.rp(c.pc+d,c.qc+e,c.Pd+d,c.Qd+e,c.Bd+d,c.Cd+e,c.zd+d,c.Ad+e)}else b.Wk?a.vi(c.pc,c.qc,c.Pd,c.Qd,c.Bd,c.Cd,c.zd,c.Ad,b.gt):a.rp(c.pc,c.qc,c.Pd,c.Qd,c.Bd,c.Cd,c.zd,c.Ad)};h.FA=function(a){var b=
this.Me,c,d;c=0;for(d=b.ur.length;c<d;c++)if(a.toLowerCase()===b.ur[c][0].toLowerCase())return c;return-1};h.nf=function(a,b){var c=this.Me,d=c.ur,e;e=la(a)?this.FA(a):a-1;e=ra(e);if(0>e||e>=d.length)return b?this.x:this.y;var k=(d[e][1]-c.qe)*this.width,d=d[e][2],d=(d-c.se)*this.height,c=Math.cos(this.L);e=Math.sin(this.L);var f=k*c-d*e,d=d*c+k*e,k=f+this.x,d=d+this.y;return b?k:d};var k=[];b.prototype.pl=function(a){if(!a)return u;var b=this.j,f=b.kr(),h=f.type;f.ca.Jl||(f.ca.Jl=[],b.Aq(function(a){return function(b){var c=
0,d,e,f=b.uid;b=0;for(d=a.length;b<d;b++)e=a[b],e[0]!==f&&e[1]!==f&&(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,k.push(e);a.length=c}}(f.ca.Jl)));var g=h.Za(),l=a.Za(),g=g.ne(),l=l.ne(),n,q,t,G,H,z,M=b.od().md;for(n=0;n<g.length;n++){q=g[n];for(t=0;t<l.length;t++)G=l[t],b.Oj(q,G)||b.uz(q,G)?e(f.ca.Jl,q,G)||(c(f.ca.Jl,q,G),b.Ym(M.Bb),H=h.Za(),z=a.Za(),H.sb=u,z.sb=u,h===a?(H.G.length=2,H.G[0]=q,H.G[1]=G,h.$g()):(H.G.length=1,z.G.length=1,H.G[0]=q,z.G[0]=G,h.$g(),a.$g()),
M.Ws(),b.ti(M.Bb)):d(f.ca.Jl,q,G)}return u};var q=new Ta,t=u;n.finish=function(a){if(t){if(a){var b=this.j.od().md.Vf;a=r.Za();var c=q.Ji(),d,e;if(a.sb){a.sb=u;a.G.length=c.length;d=0;for(e=c.length;d<e;d++)a.G[d]=c[d];if(b){d=a.Gb.length=0;for(e=r.G.length;d<e;d++)b=r.G[d],q.contains(b)||a.Gb.push(b)}}else{var k=a.G.length;a.G.length=k+c.length;d=0;for(e=c.length;d<e;d++)a.G[k+d]=c[d],b&&za(a.Gb,c[d])}r.$g()}q.clear();t=u}};b.prototype.ry=function(a){return this.Eu.toLowerCase()===a.toLowerCase()};
b.prototype.ty=da(p);b.prototype.rl=da(p);f.O=new b;g.prototype.ou=function(a,b,c){if(a&&b&&(b=this.j.Nq(a,b,this.nf(c,p),this.nf(c,u)))){"undefined"!==typeof b.L&&(b.L=this.L,b.wa());this.j.Pe++;var d,e,k;this.j.trigger(Object.getPrototypeOf(a.ic).O.ql,b);if(b.Xd){d=0;for(e=b.siblings.length;d<e;d++)k=b.siblings[d],this.j.trigger(Object.getPrototypeOf(k.type.ic).O.ql,k)}this.j.Pe--;d=this.j.BA();c=u;if(ja(d.ca.pu)||d.ca.pu<this.j.jj)c=p,d.ca.pu=this.j.jj;if(a!=this.type&&(a=a.Za(),a.sb=u,c?(a.G.length=
1,a.G[0]=b):a.G.push(b),b.Xd)){d=0;for(e=b.siblings.length;d<e;d++)k=b.siblings[d],a=k.type.Za(),a.sb=u,c?(a.G.length=1,a.G[0]=k):a.G.push(k)}}};g.prototype.Sh=function(a,b){this.Tn=a;this.Su=b;this.Ir||(this.j.Gp(this),this.Ir=p);this.yr||this.dv()};g.prototype.Al=function(a){var b=this.Me,c=b.width*a*(0>this.width?-1:1);a=b.height*a*(0>this.height?-1:1);if(this.width!==c||this.height!==a)this.width=c,this.height=a,this.wa()};f.K=new g;f.ba=new (x())})();function bc(a){this.j=a}
(function(){function a(){return n.length?n.pop():{}}function b(a){var b,c;b=0;for(c=a.length;b<c;b++)n.push(a[b]);a.length=0}function c(){}var d=bc.prototype;d.ib=function(){d.K.nu=function(a){this.width!==a&&(this.width=a,this.Gi=p,this.wa())}};d.ac=function(a){this.ic=a;this.j=a.j};var e=d.ac.prototype;e.ib=x();e.Hs=function(){if(!this.Qa){var a,b,c;a=0;for(b=this.G.length;a<b;a++)c=this.G[a],c.Eg=r,c.Lj=r,c.xe=r}};d.Db=function(a){this.type=a;this.j=a.j;this.xf?this.ki.length=0:this.ki=[];this.Gi=
p};var e=d.Db.prototype,g={};e.ib=function(){this.text=this.da[0];this.visible=0===this.da[1];this.font=this.da[2];this.color=this.da[3];this.zo=this.da[4];this.Op=this.da[5];this.Bt=0===this.da[7];this.Qr=this.uj=this.width;this.tj=this.height;this.Ur=this.da[8];this.no=this.ih="";var a=this.font.split(" ");this.nx=this.ox=this.Wm=0;var b;for(b=0;b<a.length;b++)if("pt"===a[b].substr(a[b].length-2,2)){this.Wm=parseInt(a[b].substr(0,a[b].length-2));this.Qs=Math.ceil(96*(this.Wm/72))+4;0<b&&(this.no=
a[b-1]);this.ih=a[b+1];for(b+=2;b<a.length;b++)this.ih+=" "+a[b];break}this.xe=this.Lj=this.Eg=r;this.ow=u;this.tm=this.j.Bf;this.xf?this.Tk.set(0,0,1,1):this.Tk=new ua(0,0,1,1);this.j.Ea&&this.j.Gp(this)};e.Md=function(){return{t:this.text,f:this.font,c:this.color,ha:this.zo,va:this.Op,wr:this.Bt,lho:this.Ur,fn:this.ih,fs:this.no,ps:this.Wm,pxh:this.Qs,tw:this.ox,th:this.nx,lrt:this.tm}};e.ue=function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.zo=a.ha;this.Op=a.va;this.Bt=a.wr;this.Ur=a.lho;
this.ih=a.fn;this.no=a.fs;this.Wm=a.ps;this.Qs=a.pxh;this.ox=a.tw;this.nx=a.th;this.tm=a.lrt;this.Gi=p;this.Qr=this.uj=this.width;this.tj=this.height};e.kc=function(){if(this.j.Ea&&this.xe&&300<=this.j.Bf-this.tm){var a=this.U;this.Zb();var b=this.Na;if(b.right<a.de||b.bottom<a.fe||b.left>a.ee||b.top>a.be)this.j.Ea.deleteTexture(this.xe),this.Eg=this.Lj=this.xe=r}};e.Pm=function(){this.Eg=this.Lj=r;this.j.Ea&&this.xe&&this.j.Ea.deleteTexture(this.xe);this.xe=r};e.Ex=function(){this.font=this.no+" "+
this.Wm.toString()+"pt "+this.ih;this.Gi=p;this.j.tb=p};e.hh=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var c=1;b&&(c=this.U.oe(),a.save(),a.scale(c,c));if(this.Gi||this.width!==this.Qr)this.type.ic.Ry(this.text,this.ki,a,this.width,this.Bt),this.Gi=u,this.Qr=this.width;this.Zb();var c=b?0:this.Eb.pc,d=b?0:this.Eb.qc;this.j.si&&(c=c+0.5|0,d=d+0.5|0);0!==this.L&&!b&&(a.save(),a.translate(c,d),a.rotate(this.L),d=c=0);var e=d+this.height,
f=this.Qs,f=f+this.Ur*this.j.devicePixelRatio,g,n;1===this.Op?d+=Math.max(this.height/2-this.ki.length*f/2,0):2===this.Op&&(d+=Math.max(this.height-this.ki.length*f-2,0));for(n=0;n<this.ki.length&&!(g=c,1===this.zo?g=c+(this.width-this.ki[n].width)/2:2===this.zo&&(g=c+(this.width-this.ki[n].width)),a.fillText(this.ki[n].text,g,d),d+=f,d>=e-f);n++);(0!==this.L||b)&&a.restore();this.tm=this.j.Bf};e.Lf=function(a){if(!(1>this.width||1>this.height)){var b=this.Gi||this.ow;this.ow=u;var c=this.U.oe(),
d=this.U.Vd(),e=this.Tk,f=c*this.width,g=c*this.height,n=Math.ceil(f),y=Math.ceil(g),B=this.j.width/2,F=this.j.height/2;this.Lj||(this.Eg=document.createElement("canvas"),this.Eg.width=n,this.Eg.height=y,this.uj=n,this.tj=y,b=p,this.Lj=this.Eg.getContext("2d"));if(n!==this.uj||y!==this.tj)this.Eg.width=n,this.Eg.height=y,this.xe&&(a.deleteTexture(this.xe),this.xe=r),b=p;b&&(this.Lj.clearRect(0,0,n,y),this.hh(this.Lj,p),this.xe||(this.xe=a.eh(n,y,this.j.yc,this.j.fi)),a.ZC(this.Eg,this.xe,this.j.fi));
this.uj=n;this.tj=y;a.yf(this.xe);a.Uk(this.opacity);a.Kg();a.translate(-B,-F);a.Pg();var J=this.Eb,b=this.U.Wb(J.pc,J.qc,p),B=this.U.Wb(J.pc,J.qc,u),F=this.U.Wb(J.Pd,J.Qd,p),I=this.U.Wb(J.Pd,J.Qd,u),L=this.U.Wb(J.Bd,J.Cd,p),G=this.U.Wb(J.Bd,J.Cd,u),H=this.U.Wb(J.zd,J.Ad,p),J=this.U.Wb(J.zd,J.Ad,u);if(this.j.si||0===this.L&&0===d)var z=(b+0.5|0)-b,M=(B+0.5|0)-B,b=b+z,B=B+M,F=F+z,I=I+M,L=L+z,G=G+M,H=H+z,J=J+M;0===this.L&&0===d?(F=b+n,I=B,L=F,G=B+y,H=b,J=G,e.right=1,e.bottom=1):(e.right=f/n,e.bottom=
g/y);a.vi(b,B,F,I,L,G,H,J,e);a.Kg();a.scale(c,c);a.Ys(-this.U.Vd());a.translate((this.U.de+this.U.ee)/-2,(this.U.fe+this.U.be)/-2);a.Pg();this.tm=this.j.Bf}};var f=[];d.Oy=function(a){f.length=0;for(var b="",c,d=0;d<a.length;)if(c=a.charAt(d),"\n"===c)b.length&&(f.push(b),b=""),f.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)));f.push(b);b=""}else d<a.length&&(b+=c,d++);b.length&&f.push(b)};var n=[];d.Ry=function(c,
d,e,f,g){if(!c||!c.length)b(d);else if(2>=f)b(d);else{if(100>=c.length&&-1===c.indexOf("\n")){var n=e.measureText(c).width;if(n<=f){b(d);d.push(a());d[0].text=c;d[0].width=n;return}}this.Sy(c,d,e,f,g)}};d.Sy=function(b,c,d,e,g){g&&(this.Oy(b),b=f);var v="",w,s,y,B=0;for(y=0;y<b.length;y++)"\n"===b[y]?(B>=c.length&&c.push(a()),s=c[B],s.text=v,s.width=d.measureText(v).width,B++,v=""):(w=v,v+=b[y],s=d.measureText(v).width,s>=e&&(B>=c.length&&c.push(a()),s=c[B],s.text=w,s.width=d.measureText(w).width,
B++,v=b[y],!g&&" "===v&&(v="")));v.length&&(B>=c.length&&c.push(a()),s=c[B],s.text=v,s.width=d.measureText(v).width,B++);for(y=B;y<c.length;y++)n.push(c[y]);c.length=B};d.O=new (x());c.prototype.$j=function(a){ka(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Gi=p,this.j.tb=p)};c.prototype.Vi=function(a,b){if(this.j.Wd)ia("[Construct 2] Text plugin: 'Set web font' not supported on this platform - the action has been ignored");else{var c=this,d=function(){c.j.tb=
p;c.Gi=p};if(g.hasOwnProperty(b)){var e="'"+a+"'";if(this.ih!==e){this.ih=e;this.Ex();for(e=1;10>e;e++)setTimeout(d,100*e),setTimeout(d,1E3*e)}}else{e=document.createElement("link");e.href=b;e.rel="stylesheet";e.type="text/css";e.onload=d;document.getElementsByTagName("head")[0].appendChild(e);g[b]=p;this.ih="'"+a+"'";this.Ex();for(e=1;10>e;e++)setTimeout(d,100*e),setTimeout(d,1E3*e)}}};d.K=new c;d.ba=new (x())})();function N(a){this.j=a}
(function(){function a(a){n=a.x;l=a.y;h=a.N}function b(a){k=a.x;q=a.y;t=a.N}function c(){}function d(){}var e=N.prototype;e.ac=function(a){this.ic=a;this.j=a.j};e.ac.prototype.ib=x();e.Db=function(a){this.type=a;this.j=a.j;this.touches=[];this.zs=u};var g=e.Db.prototype,f={left:0,top:0};g.Ql=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 n=0,l=0,h=0,k=0,q=0,t=0;g.ib=function(){this.lB=!!("undefined"!==typeof window.c2isWindows8&&window.c2isWindows8);
this.Lp=this.Ii=this.Qq=this.Pq=this.zu=this.yu=this.xu=this.fz=this.ez=this.dz=this.Sm=this.Rm=this.Qm=0;this.VC=0!==this.da[0];var c=0<this.j.mf?document:this.j.canvas,d=document;this.j.Nf?d=c=window.Canvas:this.j.rg&&(d=c=window);var e=this;window.navigator.msPointerEnabled?(c.addEventListener("MSPointerDown",function(a){e.cC(a)},u),c.addEventListener("MSPointerMove",function(a){e.bC(a)},u),d.addEventListener("MSPointerUp",function(a){e.uw(a)},u),d.addEventListener("MSPointerCancel",function(a){e.uw(a)},
u),this.j.canvas&&(this.j.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},u),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},u))):(c.addEventListener("touchstart",function(a){e.yw(a)},u),c.addEventListener("touchmove",function(a){e.xw(a)},u),d.addEventListener("touchend",function(a){e.Is(a)},u),d.addEventListener("touchcancel",function(a){e.Is(a)},u));if(this.lB){var f=function(a){a=a.reading;e.xu=a.accelerationX;e.yu=a.accelerationY;e.zu=a.accelerationZ},
k=function(a){a=a.reading;e.Qm=a.yawDegrees;e.Rm=a.pitchDegrees;e.Sm=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",f));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",k));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",
f),h&&h.removeEventListener("readingchanged",k)):(g&&g.addEventListener("readingchanged",f),h&&h.addEventListener("readingchanged",k))},u)}else window.addEventListener("deviceorientation",function(a){e.Qm=a.alpha||0;e.Rm=a.beta||0;e.Sm=a.gamma||0},u),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(e.dz=a.accelerationIncludingGravity.x,e.ez=a.accelerationIncludingGravity.y,e.fz=a.accelerationIncludingGravity.z);a.acceleration&&(e.xu=a.acceleration.x,e.yu=a.acceleration.y,
e.zu=a.acceleration.z)},u);this.VC&&!this.j.Wd&&(jQuery(document).mousemove(function(a){e.$B(a)}),jQuery(document).mousedown(function(a){e.ZB(a)}),jQuery(document).mouseup(function(a){e.aC(a)}));this.j.nk&&!this.j.Nf&&AppMobi.accelerometer.watchAcceleration(a,{frequency:40,adjustForRotation:p});this.j.rj&&navigator.accelerometer.watchAcceleration(b,r,{frequency:40});this.j.PC(this)};g.bC=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE){a.preventDefault&&a.preventDefault();var b=this.Ql(a.pointerId),
c=Ra();if(0<=b){var d=this.j.Wd?f:jQuery(this.j.canvas).offset(),b=this.touches[b];2>c-b.time||(b.Po=b.time,b.ii=b.x,b.ji=b.y,b.time=c,b.x=a.pageX-d.left,b.y=a.pageY-d.top)}}};g.cC=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE){a.preventDefault&&a.preventDefault();var b=this.j.Wd?f:jQuery(this.j.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top,d=Ra();this.Ii=this.touches.length;this.Lp=a.pointerId;this.touches.push({time:d,x:c,y:b,Po:d,ii:c,ji:b,id:a.pointerId,kt:this.Ii});this.j.trigger(N.prototype.O.Zt,
this);this.j.trigger(N.prototype.O.bu,this);this.Pq=c;this.Qq=b;this.j.trigger(N.prototype.O.au,this)}};g.uw=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&(a.preventDefault&&a.preventDefault(),a=this.Ql(a.pointerId),this.Ii=0<=a?this.touches[a].kt:-1,this.Lp=0<=a?this.touches[a].id:-1,this.j.trigger(N.prototype.O.Yt,this),this.j.trigger(N.prototype.O.$t,this),0<=a&&this.touches.splice(a,1))};g.xw=function(a){a.preventDefault&&a.preventDefault();var b=Ra(),c,d,e,k;c=0;for(d=a.changedTouches.length;c<
d;c++)if(e=a.changedTouches[c],k=this.Ql(e.identifier),0<=k){var g=this.j.Wd?f:jQuery(this.j.canvas).offset();k=this.touches[k];2>b-k.time||(k.Po=k.time,k.ii=k.x,k.ji=k.y,k.time=b,k.x=e.pageX-g.left,k.y=e.pageY-g.top)}};g.yw=function(a){a.preventDefault&&a.preventDefault();var b=this.j.Wd?f:jQuery(this.j.canvas).offset(),c=Ra(),d,e,k,g;d=0;for(e=a.changedTouches.length;d<e;d++)if(k=a.changedTouches[d],g=this.Ql(k.identifier),-1===g){g=k.pageX-b.left;var h=k.pageY-b.top;this.Ii=this.touches.length;
this.Lp=k.identifier;this.touches.push({time:c,x:g,y:h,Po:c,ii:g,ji:h,id:k.identifier,kt:this.Ii});this.j.trigger(N.prototype.O.Zt,this);this.j.trigger(N.prototype.O.bu,this);this.Pq=g;this.Qq=h;this.j.trigger(N.prototype.O.au,this)}};g.Is=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.Ql(d.identifier),this.Ii=0<=d?this.touches[d].kt:-1,this.Lp=0<=d?this.touches[d].id:-1,this.j.trigger(N.prototype.O.Yt,this),this.j.trigger(N.prototype.O.$t,
this),0<=d&&this.touches.splice(d,1)};g.sE=function(){return this.j.nk&&0===this.Qm&&0!==h?90*h:this.j.rj&&0===this.Qm&&0!==t?90*t:this.Qm};g.tE=function(){return this.j.nk&&0===this.Rm&&0!==l?-90*l:this.j.rj&&0===this.Rm&&0!==q?-90*q:this.Rm};g.vE=function(){return this.j.nk&&0===this.Sm&&0!==n?90*n:this.j.rj&&0===this.Sm&&0!==k?90*k:this.Sm};g.ZB=function(a){a.preventDefault&&this.j.yo&&a.preventDefault();this.yw({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.zs=p};g.$B=function(a){a.preventDefault&&
this.j.yo&&a.preventDefault();this.zs&&this.xw({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};g.aC=function(a){a.preventDefault&&this.j.yo&&a.preventDefault();this.j.yo=p;this.Is({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.zs=u};g.Fp=function(){var a,b,c,d=Ra();a=0;for(b=this.touches.length;a<b;a++)c=this.touches[a],c.time<=d-50&&(c.Po=d)};c.prototype.bu=da(p);c.prototype.$t=da(p);c.prototype.hy=function(){return this.touches.length};c.prototype.au=function(a){return!a?
u:this.j.NC(a,this.Pq,this.Qq)};c.prototype.eg=function(a){if(!a)return u;a=a.Za();var b=a.ne(),c,d,e=[],k,f,g,h;k=0;for(f=b.length;k<f;k++){var l=b[k];l.Zb();g=0;for(h=this.touches.length;g<h;g++)if(d=this.touches[g],c=l.U.Dd(d.x,d.y,p),d=l.U.Dd(d.x,d.y,u),l.Le(c,d)){e.push(l);break}}return e.length?(a.sb=u,a.G=e,p):u};c.prototype.Zt=function(a){a=Math.floor(a);return a===this.Ii};c.prototype.Yt=function(a){a=Math.floor(a);return a===this.Ii};e.O=new c;d.prototype.Dl=function(a,b){if(this.touches.length){var c,
d,e,k,f;ja(b)?(c=this.j.Xl(0),d=c.scale,e=c.$f,k=c.Gg,f=c.L,c.scale=this.j.qb.scale,c.$f=1,c.Gg=1,c.L=this.j.qb.L,a.ra(c.Dd(this.touches[0].x,this.touches[0].y,p)),c.scale=d,c.$f=e,c.Gg=k,c.L=f):(c=ka(b)?this.j.Xl(b):this.j.nr(b))?a.ra(c.Dd(this.touches[0].x,this.touches[0].y,p)):a.ra(0)}else a.ra(0)};d.prototype.bk=function(a,b){if(this.touches.length){var c,d,e,k,f;ja(b)?(c=this.j.Xl(0),d=c.scale,e=c.$f,k=c.Hg,f=c.L,c.scale=this.j.qb.scale,c.$f=1,c.Hg=1,c.L=this.j.qb.L,a.ra(c.Dd(this.touches[0].x,
this.touches[0].y,u)),c.scale=d,c.$f=e,c.Hg=k,c.L=f):(c=ka(b)?this.j.Xl(b):this.j.nr(b))?a.ra(c.Dd(this.touches[0].x,this.touches[0].y,u)):a.ra(0)}else a.ra(0)};e.ba=new d})();function cc(a){this.j=a}
(function(){function a(){}function b(){}var c=cc.prototype;c.ac=function(a,b){this.Aa=a;this.Ok=b;this.j=a.j};c.ac.prototype.ib=x();c.Db=function(a,b){this.type=a;this.Aa=a.Aa;this.F=b;this.j=a.j};var d=c.Db.prototype;d.ib=function(){var a=this.da[0];this.Yg=this.da[1];this.Vl=this.da[2];this.pz=0!==this.da[3];this.at=0!==this.da[4];this.Tc=Math.cos(this.F.L)*a;this.vc=Math.sin(this.F.L)*a;this.ii=this.F.x;this.ji=this.F.y;this.tg=this.F.L;this.Kp=0;this.enabled=0!==this.da[5]};d.Md=function(){return{acc:this.Yg,
g:this.Vl,dx:this.Tc,dy:this.vc,lx:this.ii,ly:this.ji,lka:this.tg,t:this.Kp,e:this.enabled}};d.ue=function(a){this.Yg=a.acc;this.Vl=a.g;this.Tc=a.dx;this.vc=a.dy;this.ii=a.lx;this.ji=a.ly;this.tg=a.lka;this.Kp=a.t;this.enabled=a.e};d.kc=function(){if(this.enabled){var a=this.j.Wl(this.F),b,c;this.F.L!==this.tg&&(this.at&&(b=Ma(0,0,this.Tc,this.vc),this.Tc=Math.cos(this.F.L)*b,this.vc=Math.sin(this.F.L)*b),this.tg=this.F.L);0!==this.Yg&&(b=Ma(0,0,this.Tc,this.vc),c=0===this.Tc&&0===this.vc?this.F.L:
Ha(0,0,this.Tc,this.vc),b+=this.Yg*a,0>b&&(b=0),this.Tc=Math.cos(c)*b,this.vc=Math.sin(c)*b);0!==this.Vl&&(this.vc+=this.Vl*a);this.ii=this.F.x;this.ji=this.F.y;if(0!==this.Tc||0!==this.vc)if(this.F.x+=this.Tc*a,this.F.y+=this.vc*a,this.Kp+=Ma(0,0,this.Tc*a,this.vc*a),this.at&&(this.F.L=Ha(0,0,this.Tc,this.vc),this.F.wa(),this.tg=this.F.L),this.F.wa(),this.pz&&(b=this.j.Pj(this.F)))this.j.Rw(this.F,b),b=Ma(0,0,this.Tc,this.vc),c=this.j.sz(this.F,this.ii,this.ji),this.Tc=Math.cos(c)*b,this.vc=Math.sin(c)*
b,this.F.x+=this.Tc*a,this.F.y+=this.vc*a,this.F.wa(),this.at&&(this.tg=this.F.L=c,this.F.wa()),this.j.oC(this.F,this.Tc/b,this.vc/b,Math.max(2.5*b*a,30))||this.j.pC(this.F)}};c.O=new (x());a.prototype.Zj=function(a){var b=Ha(0,0,this.Tc,this.vc);this.Tc=Math.cos(b)*a;this.vc=Math.sin(b)*a};a.prototype.pq=aa("Vl");c.K=new a;b.prototype.If=function(a){var b=Ma(0,0,this.Tc,this.vc),b=Za(b);a.ra(b)};c.ba=new b})();
function O(a,b){for(var c in b.prototype)b.prototype.hasOwnProperty(c)&&(a.prototype[c]=b.prototype[c])}
if(navigator.isCocoonJS&&"undefined"!==typeof window.cr_cjs_accelerated_physics)ia("Using CocoonJS native physics"),!window.ext||"undefined"===typeof window.ext.IDTK_SRV_BOX2D?console.log("The CocoonJS binding for Box2D has been ignored because ext.IDTK_SRV_BOX2D is not available"):function(){function a(a){this.S=a.S;this.T=a.T;this.Qg=a.Qg;this.type=a.type;this.next=r}function b(a,b){this.Xo=[];this.Kb=[];this.Aj=[];this.rh=r;this.EB=[];this.Ac=window.ext.IDTK_SRV_BOX2D.makeCall("createWorld",a.x,
a.y,b)}function c(){}function d(a,b,c){this.Nb=a;this.Jb=b;this.MB=c}function e(a,b){var c=a.Qg;a.Qg=r;this.Ta=b;this.C=new n(a.position,l.Wj(a.L));this.Cm=[];this.ym=a.dd;a.type===e.Je&&(a.Kf=0);this.Jc=window.ext.IDTK_SRV_BOX2D.makeCall("createBody",b.Ac,a);this.NB=c;a.Qg=c}function g(a,b,c,d){this.Am=a;this.NB=b;this.js=c;this.zh={};this.zh.Hd=h.A(0,0);this.$o=u;this.Yo=d.Kf;this.ls=d.pg;this.Im=d.Lg;this.$o=d.Hr}function f(){}function n(a,b){this.position=h.A(0,0);this.q=new l;a===m&&(a=r);b===
m&&(b=r);a&&(this.position.I(a),this.q.Ff(b))}function l(){this.k=h.A(0,0);this.m=h.A(0,0);this.Th()}function h(a,b){a===m&&(a=0);b===m&&(b=0);this.x=a;this.y=b}R=h;h.Xg=[];h.A=function(a,b){if(0<R.Xg.length){var c=R.Xg.pop();c.J(a,b);return c}return new R(a,b)};h.Nc=function(a){1E4>R.Xg.length&&R.Xg.push(a)};h.prototype.la=function(){this.y=this.x=0};h.prototype.J=function(a,b){a===m&&(a=0);b===m&&(b=0);this.x=a;this.y=b};h.prototype.I=function(a){this.x=a.x;this.y=a.y};h.ED=function(a,b){a===m&&
(a=0);b===m&&(b=0);return h.A(a,b)};h.prototype.rc=function(){return h.A(this.x,this.y)};h.prototype.Tg=function(a){this.x+=a.x;this.y+=a.y};h.prototype.vq=function(a){this.x-=a.x;this.y-=a.y};h.prototype.wd=function(a){a===m&&(a=0);this.x*=a;this.y*=a};h.prototype.fg=function(){return Math.sqrt(this.x*this.x+this.y*this.y)};h.prototype.Hn=function(){return this.x*this.x+this.y*this.y};h.prototype.xd=function(){var a=Math.sqrt(this.x*this.x+this.y*this.y);if(a<Number.MIN_VALUE)return 0;var b=1/a;
this.x*=b;this.y*=b;return a};T=l;l.Wj=function(a){a===m&&(a=0);var b=new l;b.J(a);return b};l.dg=function(a,b){var c=new l;c.sq(a,b);return c};l.prototype.J=function(a){a===m&&(a=0);var b=Math.cos(a);a=Math.sin(a);this.k.x=b;this.m.x=-a;this.k.y=a;this.m.y=b};l.prototype.sq=function(a,b){this.k.I(a);this.m.I(b)};l.prototype.rc=function(){var a=new l;a.Ff(this);return a};l.prototype.Ff=function(a){this.k.I(a.k);this.m.I(a.m)};l.prototype.qn=function(a){this.k.x+=a.k.x;this.k.y+=a.k.y;this.m.x+=a.m.x;
this.m.y+=a.m.y};l.prototype.Th=function(){this.k.x=1;this.m.x=0;this.k.y=0;this.m.y=1};l.prototype.la=function(){this.k.x=0;this.m.x=0;this.k.y=0;this.m.y=0};l.prototype.ge=function(){return Math.atan2(this.k.y,this.k.x)};l.prototype.bq=function(a){var b=this.k.x,c=this.m.x,d=this.k.y,e=this.m.y,f=b*e-c*d;0!==f&&(f=1/f);a.k.x=f*e;a.m.x=-f*c;a.k.y=-f*d;a.m.y=f*b;return a};l.prototype.Uh=function(a,b,c){b===m&&(b=0);c===m&&(c=0);var d=this.k.x,e=this.m.x,f=this.k.y,g=this.m.y,h=d*g-e*f;0!==h&&(h=1/
h);a.x=h*(g*b-e*c);a.y=h*(d*c-f*b);return a};l.prototype.Sg=function(){this.k.Sg();this.m.Sg()};fc=n;n.prototype.sc=function(a,b){this.position.I(a);this.q.Ff(b)};n.prototype.Th=function(){this.position.la();this.q.Th()};n.prototype.J=function(a){this.position.I(a.position);this.q.Ff(a.q)};n.prototype.In=function(){return Math.atan2(this.q.k.y,this.q.k.x)};U=f;f.Gn=function(a){a===m&&(a=0);return isFinite(a)};f.Lb=function(a,b){return a.x*b.x+a.y*b.y};f.Ni=function(a,b){return a.x*b.y-a.y*b.x};f.Ug=
function(a,b){b===m&&(b=0);return h.A(b*a.y,-b*a.x)};f.Vp=function(a,b){a===m&&(a=0);return h.A(-a*b.y,a*b.x)};f.$b=function(a,b){return h.A(a.k.x*b.x+a.m.x*b.y,a.k.y*b.x+a.m.y*b.y)};f.Vg=function(a,b){return h.A(f.Lb(b,a.k),f.Lb(b,a.m))};f.Ec=function(a,b){var c=f.$b(a.q,b);c.x+=a.position.x;c.y+=a.position.y;return c};f.Vt=function(a,b){var c=f.zb(b,a.position),d=c.x*a.q.k.x+c.y*a.q.k.y;c.y=c.x*a.q.m.x+c.y*a.q.m.y;c.x=d;return c};f.cl=function(a,b){return h.A(a.x+b.x,a.y+b.y)};f.zb=function(a,b){return h.A(a.x-
b.x,a.y-b.y)};f.Yx=function(a,b){var c=a.x-b.x,d=a.y-b.y;return Math.sqrt(c*c+d*d)};f.Jt=function(a,b){var c=a.x-b.x,d=a.y-b.y;return c*c+d*d};f.ny=function(a,b){a===m&&(a=0);return h.A(a*b.x,a*b.y)};f.Ox=function(a,b){return l.dg(f.cl(a.k,b.k),f.cl(a.m,b.m))};f.oy=function(a,b){return l.dg(f.$b(a,b.k),f.$b(a,b.m))};f.qy=function(a,b){var c=h.A(f.Lb(a.k,b.k),f.Lb(a.m,b.k)),d=h.A(f.Lb(a.k,b.m),f.Lb(a.m,b.m));return l.dg(c,d)};f.Sg=function(a){a===m&&(a=0);return 0<a?a:-a};f.$k=function(a){return h.A(f.Sg(a.x),
f.Sg(a.y))};f.Mx=function(a){return l.dg(f.$k(a.k),f.$k(a.m))};f.Tt=function(a,b){a===m&&(a=0);b===m&&(b=0);return a<b?a:b};f.Ut=function(a,b){return h.A(f.Tt(a.x,b.x),f.Tt(a.y,b.y))};f.Rt=function(a,b){a===m&&(a=0);b===m&&(b=0);return a>b?a:b};f.St=function(a,b){return h.A(f.Rt(a.x,b.x),f.Rt(a.y,b.y))};f.Cb=function(a,b,c){a===m&&(a=0);b===m&&(b=0);c===m&&(c=0);return a<b?b:a>c?c:a};f.Qx=function(a,b,c){return f.St(b,f.Ut(a,c))};f.iE=function(a,b){var c=a[0];a[0]=b[0];b[0]=c};f.RD=function(){return 2*
Math.random()-1};f.SD=function(a,b){a===m&&(a=0);b===m&&(b=0);var c=Math.random();return(b-a)*c+a};f.JD=function(a){a===m&&(a=0);a|=a>>1&2147483647;a|=a>>2&1073741823;a|=a>>4&268435455;a|=a>>8&16777215;return(a|a>>16&65535)+1};f.AD=function(a){a===m&&(a=0);return 0<a&&0===(a&a-1)};f.mz=new h(0,0);f.lz=l.dg(new h(1,0),new h(0,1));f.qE=new n(f.mz,f.lz);X=function(){this.position=h.A(0,0);this.Vr=h.A(0,0);this.Qg=r;this.L=0;this.Vr.J(0,0);this.Zi=this.vj=this.Du=0;this.Hu=this.Cu=p;this.cj=this.br=u;
this.type=e.Je;this.dd=p;this.Fv=1};gc=g;g.prototype.Wa=A("Am");g.prototype.Dc=function(){console.log("fixture.GetShape not yet supported in CocoonJS Box2D binding");return r};g.prototype.Si=A("$o");hc=e;e.prototype.wn=function(a){var b=a.Qg;a.Qg=r;var c=window.ext.IDTK_SRV_BOX2D.makeCall("createFixture",this.Ta.Ac,this.Jc,a);a.Qg=b;a=new g(this,b,c,a);this.Ta.Aj[c]=a;this.Cm.push(a);return a};e.prototype.aq=function(){return 0===this.Cm.length?r:this.Cm[0]};e.prototype.It=function(a){window.ext.IDTK_SRV_BOX2D.makeCall("deleteFixture",
this.Ta.Ac,a.js);delete this.Ta.Aj[a.js]};e.prototype.zl=function(a,b){window.ext.IDTK_SRV_BOX2D.makeCall("setBodyTransform",this.Ta.Ac,this.Jc,a.x,a.y,b);this.C.q.J(b);this.C.position.I(a)};e.prototype.rq=function(a){this.zl(a,this.ge())};e.prototype.Oi=function(){var a=window.ext.IDTK_SRV_BOX2D.makeCall("getLinearVelocity",this.Ta.Ac,this.Jc);return h.A(a[0],a[1])};e.prototype.Xj=function(){var a=window.ext.IDTK_SRV_BOX2D.makeCall("getWorldCenter",this.Ta.Ac,this.Jc);return h.A(a[0],a[1])};e.prototype.Pi=
function(){var a=window.ext.IDTK_SRV_BOX2D.makeCall("getLocalCenter",this.Ta.Ac,this.Jc);return h.A(a[0],a[1])};e.prototype.kd=function(){return window.ext.IDTK_SRV_BOX2D.makeCall("isAwake",this.Ta.Ac,this.Jc)};e.prototype.Bn=function(){return window.ext.IDTK_SRV_BOX2D.makeCall("getAngularVelocity",this.Ta.Ac,this.Jc)};e.prototype.Qc=function(a){window.ext.IDTK_SRV_BOX2D.makeCall("setAwake",this.Ta.Ac,this.Jc,a)};e.prototype.Ui=function(a){window.ext.IDTK_SRV_BOX2D.makeCall("setLinearVelocity",this.Ta.Ac,
this.Jc,a.x,a.y)};e.prototype.ag=function(a,b,c){window.ext.IDTK_SRV_BOX2D.makeCall("applyForce",this.Ta.Ac,this.Jc,a.x,a.y,b.x,b.y,c)};e.prototype.rn=function(a,b){window.ext.IDTK_SRV_BOX2D.makeCall("applyTorque",this.Ta.Ac,this.Jc,a,b)};e.prototype.xl=function(a){window.ext.IDTK_SRV_BOX2D.makeCall("setAngularVelocity",this.Ta.Ac,this.Jc,a)};e.prototype.Rh=A("ym");e.prototype.ge=function(){return this.C.q.ge()};e.prototype.In=function(a){a===m&&(a=0);this.zl(this.C.position,a)};e.prototype.Ph=function(){for(var a=
window.ext.IDTK_SRV_BOX2D.makeCall("getObjectContacts",this.Ta.Ac,this.Jc),b=[],c=0;c<a.length;c++)b.push(this.Ta.Xo[a[c]]);return b};hc.Je=0;hc.Ju=1;hc.Fc=2;d.prototype.fq=A("MB");ic=c;c.prototype.sn=x();ic.Iu=new c;window.mD.sD.pE=x();jc=b;b.prototype.ju=aa("rh");b.prototype.iu=function(a){var b=this;window.ext.IDTK_SRV_BOX2D.makeCall("setContactFilter",function(c,d){return a.Wi(b.Aj[c],b.Aj[d])})};b.prototype.Up=function(a){a=new e(a,this);return this.Xo[a.Jc]=a};b.prototype.yn=function(a){window.ext.IDTK_SRV_BOX2D.makeCall("deleteBody",
this.Ac,a.Jc);delete this.Xo[a.Jc];for(var b=0;b<a.Cm.length;++b)delete this.Aj[a.Cm[b].js]};b.prototype.xn=function(b){if(b.S.Jc!==b.T.Jc){var c=b.S,d=b.T;b.S=c.Jc;b.T=d.Jc;window.ext.IDTK_SRV_BOX2D.makeCall("createDistanceJoint",this.Ac,b);b.S=c;b.T=d;b=new a(b);this.EB.push(b);return b}};b.prototype.pq=function(a){window.ext.IDTK_SRV_BOX2D.makeCall("setGravity",this.Ac,a.x,a.y)};b.prototype.Wg=function(a,b,c){c=window.ext.IDTK_SRV_BOX2D.makeCall("step",this.Ac,a,b,c);b=c[0];for(a=1;a<=4*b;a+=4){var e=
this.Xo[c[a+0]];if(e===r)break;e.C.position.J(c[a+1],c[a+2]);e.C.q.J(c[a+3])}if(this.rh!==r){c=window.ext.IDTK_SRV_BOX2D.makeCall("getLastContacts",this.Ac);b=c[0];for(a=1;a<=3*b;a+=3){var e=c[a+2],f=this.Aj[c[a+0]],g=this.Aj[c[a+1]];"undefined"===typeof f||"undefined"===typeof g?console.log("One of the fixtures in a contact DOESN'T EXIST!!"):this.rh.sn(new d(f,g,e))}}};b.prototype.Gt=function(){window.ext.IDTK_SRV_BOX2D.makeCall("clearForces",this.Ac)};kc=function(a){this.sp=a;this.type="circle"};
Y=x();Y.prototype.Jn=function(a,b){this.type="box";this.width=a;this.height=b};Y.prototype.gu=function(a,b){this.type="edge";this.OE=a.x;this.PE=a.y;this.QE=b.x;this.RE=b.y};Y.prototype.nq=function(a,b){this.type="polygon";this.Kx=[];for(var c=0;c<b;c++)this.Kx.push(a[c].x),this.Kx.push(a[c].y)};lc=function(){this.Qg=this.shape=r;this.pg=0.2;this.Kf=this.Lg=0;this.Hr=u;this.filter={gk:1,Kk:65535,ei:0}};Z=a;a.prototype.hl=A("S");a.prototype.$p=A("T");a.prototype.Oc=A("type");a.Uq=0;mc=function(b,c,
d,e){this.type=a.Uq;this.Xb=h.A(0,0);this.Yb=h.A(0,0);this.Qg=r;b!==m&&(this.S=b);c!==m&&(this.T=c);d!==m&&this.Xb.I(d);e!==m&&this.Yb.I(e);d!==m&&e!==m&&(b=e.x-d.x,d=e.y-d.y,this.length=Math.sqrt(b*b+d*d));this.$n=this.po=0}}();else{var U={},nc=2/180*Math.PI,oc=8/180*Math.PI,pc=0.5*Math.PI,qc=pc*pc,rc=2/180*Math.PI,sc=Number.MIN_VALUE*Number.MIN_VALUE;U.Lb=function(a,b){return a.x*b.x+a.y*b.y};U.Ni=function(a,b){return a.x*b.y-a.y*b.x};U.Ug=function(a,b){return R.A(b*a.y,-b*a.x)};U.Vp=function(a,
b){return R.A(-a*b.y,a*b.x)};U.$b=function(a,b){return R.A(a.k.x*b.x+a.m.x*b.y,a.k.y*b.x+a.m.y*b.y)};U.Vg=function(a,b){return R.A(U.Lb(b,a.k),U.Lb(b,a.m))};U.Ec=function(a,b){var c=U.$b(a.q,b);c.x+=a.position.x;c.y+=a.position.y;return c};U.Vt=function(a,b){var c=U.zb(b,a.position),d=c.x*a.q.k.x+c.y*a.q.k.y;c.y=c.x*a.q.m.x+c.y*a.q.m.y;c.x=d;return c};U.cl=function(a,b){return R.A(a.x+b.x,a.y+b.y)};U.zb=function(a,b){return R.A(a.x-b.x,a.y-b.y)};U.Yx=function(a,b){return Math.sqrt(U.Jt(a,b))};U.Jt=
function(a,b){var c=a.x-b.x,d=a.y-b.y;return c*c+d*d};U.ny=function(a,b){return R.A(a*b.x,a*b.y)};U.Ox=function(a,b){return T.dg(U.cl(a.k,b.k),U.cl(a.m,b.m))};U.oy=function(a,b){return T.dg(U.$b(a,b.k),U.$b(a,b.m))};U.qy=function(a,b){var c=R.A(U.Lb(a.k,b.k),U.Lb(a.m,b.k)),d=R.A(U.Lb(a.k,b.m),U.Lb(a.m,b.m));return T.dg(c,d)};U.$k=function(a){return R.A(Math.abs(a.x),Math.abs(a.y))};U.Mx=function(a){return T.dg(U.$k(a.k),U.$k(a.m))};U.Cb=function(a,b,c){return a<b?b:a>c?c:a};U.Qx=function(a,b,c){return R.A(U.Cb(a.x,
b.x,c.x),U.Cb(a.y,b.y,c.y))};var T=function(){this.k=R.A(0,0);this.m=R.A(0,0);this.Th()};T.Wj=function(a){var b=new T;b.J(a);return b};T.dg=function(a,b){var c=new T;c.sq(a,b);return c};D=T.prototype;D.J=function(a){var b=Math.cos(a);a=Math.sin(a);this.k.J(b,a);this.m.J(-a,b)};D.sq=function(a,b){this.k.I(a);this.m.I(b)};D.rc=function(){var a=new T;a.Ff(this);return a};D.Ff=function(a){this.k.I(a.k);this.m.I(a.m)};D.qn=function(a){this.k.Tg(a.k);this.m.Tg(a.m)};D.Th=function(){this.k.J(1,0);this.m.J(0,
1)};D.la=function(){this.k.J(0,0);this.m.J(0,0)};D.ge=function(){return Math.atan2(this.k.y,this.k.x)};D.bq=function(a){var b=this.k.x*this.m.y-this.m.x*this.k.y;0!==b&&(b=1/b);a.k.x=b*this.m.y;a.m.x=-b*this.m.x;a.k.y=-b*this.k.y;a.m.y=b*this.k.x;return a};D.Uh=function(a,b,c){var d=this.k.x*this.m.y-this.m.x*this.k.y;0!==d&&(d=1/d);a.x=d*(this.m.y*b-this.m.x*c);a.y=d*(this.k.x*c-this.k.y*b);return a};D.Sg=function(){this.k.Sg();this.m.Sg()};var uc=function(a,b,c){this.k=new tc(0,0,0);this.m=new tc(0,
0,0);this.Ba=new tc(0,0,0);a&&this.k.I(a);b&&this.m.I(b);c&&this.Ba.I(c)};D=uc.prototype;D.rc=function(){return new uc(this.k,this.m,this.Ba)};D.Ff=function(a){this.k.I(a.k);this.m.I(a.m);this.Ba.I(a.Ba)};D.qn=function(a){this.k.x+=a.k.x;this.k.y+=a.k.y;this.k.N+=a.k.N;this.m.x+=a.m.x;this.m.y+=a.m.y;this.m.N+=a.m.N;this.Ba.x+=a.Ba.x;this.Ba.y+=a.Ba.y;this.Ba.N+=a.Ba.N};D.Th=function(){this.k.J(1,0,0);this.m.J(0,1,0);this.Ba.J(0,0,1)};D.la=function(){this.k.J(0,0,0);this.m.J(0,0,0);this.Ba.J(0,0,
0)};D.ak=function(a,b,c){var d=this.k.x,e=this.m.x,g=this.k.y,f=this.m.y,n=d*f-e*g;0!=n&&(n=1/n);a.x=n*(f*b-e*c);a.y=n*(d*c-g*b);return a};D.Bl=function(a,b,c,d){var e=this.k.x,g=this.k.y,f=this.k.N,n=this.m.x,l=this.m.y,h=this.m.N,k=this.Ba.x,q=this.Ba.y,t=this.Ba.N,v=e*(l*t-h*q)+g*(h*k-n*t)+f*(n*q-l*k);0!=v&&(v=1/v);a.x=v*(b*(l*t-h*q)+c*(h*k-n*t)+d*(n*q-l*k));a.y=v*(e*(c*t-d*q)+g*(d*k-b*t)+f*(b*q-c*k));a.N=v*(e*(l*d-h*c)+g*(h*b-n*d)+f*(n*c-l*b));return a};var vc=function(){this.V=R.A(0,0);this.Sc=
R.A(0,0);this.B=R.A(0,0)};vc.prototype.J=function(a){this.V.I(a.V);this.Sc.I(a.Sc);this.B.I(a.B);this.ef=a.ef;this.R=a.R;this.ud=a.ud};vc.prototype.rc=function(){var a=new vc;a.V.I(this.V);a.Sc.I(this.Sc);a.B.I(this.B);a.ef=this.ef;a.R=this.R;a.ud=this.ud;return a};vc.prototype.ie=function(a,b){b===m&&(b=0);a.position.x=(1-b)*this.Sc.x+b*this.B.x;a.position.y=(1-b)*this.Sc.y+b*this.B.y;a.q.J((1-b)*this.ef+b*this.R);var c=a.q;a.position.x-=c.k.x*this.V.x+c.m.x*this.V.y;a.position.y-=c.k.y*this.V.x+
c.m.y*this.V.y};vc.prototype.Nh=function(a){a===m&&(a=0);if(this.ud<a&&1-this.ud>Number.MIN_VALUE){var b=(a-this.ud)/(1-this.ud);this.Sc.x=(1-b)*this.Sc.x+b*this.B.x;this.Sc.y=(1-b)*this.Sc.y+b*this.B.y;this.ef=(1-b)*this.ef+b*this.R;this.ud=a}};var fc=function(a,b){this.position=R.A(0,0);this.q=new T;a&&this.position.I(a);b&&this.q.Ff(b)};fc.prototype.sc=function(a,b){this.position.I(a);this.q.Ff(b)};fc.prototype.Th=function(){this.position.la();this.q.Th()};fc.prototype.J=function(a){this.position.I(a.position);
this.q.Ff(a.q)};fc.prototype.ge=function(){return Math.atan2(this.q.k.y,this.q.k.x)};var R=function(a,b){this.x=a;this.y=b};R.Xg=[];R.A=function(a,b){if(0<R.Xg.length){var c=R.Xg.pop();c.J(a,b);return c}return new R(a,b)};R.Nc=function(a){R.Xg.push(a)};D=R.prototype;D.la=function(){this.y=this.x=0};D.J=function(a,b){this.x=a;this.y=b};D.I=function(a){this.x=a.x;this.y=a.y};D.Qh=function(){return R.A(-this.x,-this.y)};D.Wt=function(){this.x=-this.x;this.y=-this.y};D.rc=function(){return R.A(this.x,
this.y)};D.Tg=function(a){this.x+=a.x;this.y+=a.y};D.vq=function(a){this.x-=a.x;this.y-=a.y};D.wd=function(a){this.x*=a;this.y*=a};D.Ug=function(a){var b=this.x;this.x=a*this.y;this.y=-a*b};D.Vp=function(a){var b=this.x;this.x=-a*this.y;this.y=a*b};D.Ut=function(a){this.x=Math.min(this.x,a.x);this.y=Math.min(this.y,a.y)};D.St=function(a){this.x=Math.max(this.x,a.x);this.y=Math.max(this.y,a.y)};D.Sg=function(){this.x=Math.abs(this.x);this.y=Math.abs(this.y)};D.fg=function(){return Math.sqrt(this.Hn())};
D.Hn=function(){return this.x*this.x+this.y*this.y};D.xd=function(){var a=this.fg();if(a<Number.MIN_VALUE)return 0;var b=1/a;this.x*=b;this.y*=b;return a};D.Gn=function(){return isFinite(this.x)&&isFinite(this.y)};var tc=function(a,b,c){this.x=a;this.y=b;this.N=c};D=tc.prototype;D.la=function(){this.N=this.y=this.x=0};D.J=function(a,b,c){this.x=a;this.y=b;this.N=c};D.I=function(a){this.x=a.x;this.y=a.y;this.N=a.N};D.Qh=function(){return new tc(-this.x,-this.y,-this.N)};D.Wt=function(){this.x=-this.x;
this.y=-this.y;this.N=-this.N};D.rc=function(){return new tc(this.x,this.y,this.N)};D.Tg=function(a){this.x+=a.x;this.y+=a.y;this.N+=a.N};D.vq=function(a){this.x-=a.x;this.y-=a.y;this.N-=a.N};D.wd=function(a){this.x*=a;this.y*=a;this.N*=a};var wc=function(){this.cb=0.005};D=wc.prototype;D.Qi=x();D.rc=x();D.J=function(a){this.cb=a.cb};D.Vj=x();D.dl=x();D.vn=x();D.oq=x();var kc=function(a){this.cb=0.005;this.cb=a;this.Hk=a*a;this.nb=R.A(0,0)};O(kc,wc);D=kc.prototype;D.Qi=function(){return kc.Ef};D.rc=
function(){var a=new kc(this.cb);a.J(this);return a};D.J=function(a){wc.prototype.J.call(this,a);a instanceof kc&&this.nb.I(a.nb)};D.Vj=function(a,b){var c=b.q,d=b.position.x+(c.k.x*this.nb.x+c.m.x*this.nb.y),c=b.position.y+(c.k.y*this.nb.x+c.m.y*this.nb.y);a.Ka.J(d-this.cb,c-this.cb);a.La.J(d+this.cb,c+this.cb)};D.dl=function(a,b){a.Dg=b*Math.PI*this.Hk;a.dh.I(this.nb);a.Yj=a.Dg*(0.5*this.Hk+(this.nb.x*this.nb.x+this.nb.y*this.nb.y))};D.vn=function(a,b,c,d){c=U.Ec(c,this.nb);var e=-(U.Lb(a,c)-b);
if(e<-this.cb+Number.MIN_VALUE)return 0;if(e>this.cb)return d.I(c),Math.PI*this.Hk;b=e*e;e=this.Hk*(Math.asin(e/this.cb)+Math.PI/2)+e*Math.sqrt(this.Hk-b);b=-2/3*Math.pow(this.Hk-b,1.5)/e;d.x=c.x+a.x*b;d.y=c.y+a.y*b;return e};D.oq=function(a){a.P=[this.nb];a.ta=1;a.cb=this.cb};kc.Ef="b2CircleShape";var xc=function(a,b){this.cb=0.005;this.FE=this.HE=r;this.ua=a;this.Oa=b;this.zj=R.A(this.Oa.x-this.ua.x,this.Oa.y-this.ua.y);this.ns=this.zj.xd();this.ya=R.A(this.zj.y,-this.zj.x);this.yE=R.A(-0.04*(this.ya.x-
this.zj.x)+this.ua.x,-0.04*(this.ya.y-this.zj.y)+this.ua.y);this.zE=R.A(-0.04*(this.ya.x+this.zj.x)+this.Oa.x,-0.04*(this.ya.y+this.zj.y)+this.Oa.y);this.CE=this.ya;this.DE=R.A(-this.ya.x,-this.ya.y);this.BE=this.AE=u};O(xc,wc);xc.prototype.Qi=da("b2EdgeShape");xc.prototype.Vj=function(a,b){var c=b.q,d=b.position.x+(c.k.x*this.ua.x+c.m.x*this.ua.y),e=b.position.y+(c.k.y*this.ua.x+c.m.y*this.ua.y),g=b.position.x+(c.k.x*this.Oa.x+c.m.x*this.Oa.y),c=b.position.y+(c.k.y*this.Oa.x+c.m.y*this.Oa.y);d<g?
(a.Ka.x=d,a.La.x=g):(a.Ka.x=g,a.La.x=d);e<c?(a.Ka.y=e,a.La.y=c):(a.Ka.y=c,a.La.y=e)};xc.prototype.dl=function(a){a.Dg=0;a.dh.I(this.ua);a.Yj=0};xc.prototype.vn=function(a,b,c,d){b===m&&(b=0);var e=R.A(a.x*b,a.y*b),g=U.Ec(c,this.ua);c=U.Ec(c,this.Oa);var f=U.Lb(a,g)-b;a=U.Lb(a,c)-b;if(0<f){if(0<a)return 0;g.x=-a/(f-a)*g.x+f/(f-a)*c.x;g.y=-a/(f-a)*g.y+f/(f-a)*c.y}else 0<a&&(c.x=-a/(f-a)*g.x+f/(f-a)*c.x,c.y=-a/(f-a)*g.y+f/(f-a)*c.y);d.x=(e.x+g.x+c.x)/3;d.y=(e.y+g.y+c.y)/3;return 0.5*((g.x-e.x)*(c.y-
e.y)-(g.y-e.y)*(c.x-e.x))};var yc=function(){this.Dg=0;this.dh=R.A(0,0);this.Yj=0},Y=function(){this.cb=0.005;this.Hd=R.A(0,0);this.P=[];this.Ga=[]};O(Y,wc);Y.prototype.Qi=function(){return Y.Ef};Y.prototype.rc=function(){var a=new Y;a.J(this);return a};Y.prototype.J=function(a){wc.prototype.J.call(this,a);if(a instanceof Y){this.Hd.I(a.Hd);this.Sa=a.Sa;this.wl(this.Sa);for(var b=0;b<this.Sa;b++)this.P[b].I(a.P[b]),this.Ga[b].I(a.Ga[b])}};Y.prototype.nq=function(a){this.hu(a)};Y.dD=function(a){var b=
new Y;b.nq(a);return b};Y.prototype.hu=function(a){var b=a.length;this.Sa=b;this.wl(b);for(b=b=0;b<this.Sa;b++)this.P[b].I(a[b]);for(b=0;b<this.Sa;++b)a=U.zb(this.P[b+1<this.Sa?b+1:0],this.P[b]),this.Ga[b].I(U.Ug(a,1)),this.Ga[b].xd();this.Hd=Y.Wx(this.P,this.Sa)};Y.hD=function(a){var b=new Y;b.hu(a);return b};Y.prototype.Jn=function(a,b){this.Sa=4;this.wl(4);this.P[0].J(-a,-b);this.P[1].J(a,-b);this.P[2].J(a,b);this.P[3].J(-a,b);this.Ga[0].J(0,-1);this.Ga[1].J(1,0);this.Ga[2].J(0,1);this.Ga[3].J(-1,
0);this.Hd.la()};Y.eD=function(a,b){var c=new Y;c.Jn(a,b);return c};Y.prototype.Ey=function(a,b,c,d){this.Sa=4;this.wl(4);this.P[0].J(-a,-b);this.P[1].J(a,-b);this.P[2].J(a,b);this.P[3].J(-a,b);this.Ga[0].J(0,-1);this.Ga[1].J(1,0);this.Ga[2].J(0,1);this.Ga[3].J(-1,0);this.Hd=c;a=new T;a.J(d);c=new fc(c,a);for(d=0;d<this.Sa;++d)this.P[d]=U.Ec(c,this.P[d]),this.Ga[d]=U.$b(c.q,this.Ga[d])};Y.gD=function(a,b,c,d){var e=new Y;e.Ey(a,b,c,d);return e};Y.prototype.gu=function(a,b){this.Sa=2;this.wl(2);this.P[0].I(a);
this.P[1].I(b);this.Hd.x=0.5*(a.x+b.x);this.Hd.y=0.5*(a.y+b.y);this.Ga[0]=U.Ug(U.zb(b,a),1);this.Ga[0].xd();this.Ga[1].x=-this.Ga[0].x;this.Ga[1].y=-this.Ga[0].y};Y.fD=function(a,b){var c=new Y;c.gu(a,b);return c};D=Y.prototype;D.Vj=function(a,b){for(var c=b.q,d=this.P[0],e=b.position.x+(c.k.x*d.x+c.m.x*d.y),g=b.position.y+(c.k.y*d.x+c.m.y*d.y),f=e,n=g,l=1;l<this.Sa;++l)var d=this.P[l],h=b.position.x+(c.k.x*d.x+c.m.x*d.y),d=b.position.y+(c.k.y*d.x+c.m.y*d.y),e=e<h?e:h,g=g<d?g:d,f=f>h?f:h,n=n>d?n:
d;a.Ka.x=e-this.cb;a.Ka.y=g-this.cb;a.La.x=f+this.cb;a.La.y=n+this.cb};D.dl=function(a,b){if(2==this.Sa)a.dh.x=0.5*(this.P[0].x+this.P[1].x),a.dh.y=0.5*(this.P[0].y+this.P[1].y),a.Dg=0,a.Yj=0;else{for(var c=0,d=0,e=0,g=0,f=1/3,n=0;n<this.Sa;++n)var l=this.P[n],h=n+1<this.Sa?this.P[n+1]:this.P[0],k=l.x-0,q=l.y-0,t=h.x-0,v=h.y-0,w=k*v-q*t,s=0.5*w,e=e+s,c=c+s*f*(0+l.x+h.x),d=d+s*f*(0+l.y+h.y),l=k,g=g+w*(f*(0.25*(l*l+t*l+t*t)+(0*l+0*t))+0+(f*(0.25*(q*q+v*q+v*v)+(0*q+0*v))+0));a.Dg=b*e;a.dh.J(c*(1/e),
d*(1/e));a.Yj=b*g}};D.vn=function(a,b,c,d){var e=U.Vg(c.q,a),g=b-U.Lb(a,c.position),f=[],n=0,l=-1;b=-1;var h=u;for(a=a=0;a<this.Sa;++a){f[a]=U.Lb(e,this.P[a])-g;var k=f[a]<-Number.MIN_VALUE;0<a&&(k?h||(l=a-1,n++):h&&(b=a-1,n++));h=k}switch(n){case 0:return h?(a=new yc,this.dl(a,1),d.I(U.Ec(c,a.dh)),a.Dg):0;case 1:-1==l?l=this.Sa-1:b=this.Sa-1}a=(l+1)%this.Sa;e=(b+1)%this.Sa;g=(0-f[l])/(f[a]-f[l]);f=(0-f[b])/(f[e]-f[b]);l=R.A(this.P[l].x*(1-g)+this.P[a].x*g,this.P[l].y*(1-g)+this.P[a].y*g);b=R.A(this.P[b].x*
(1-f)+this.P[e].x*f,this.P[b].y*(1-f)+this.P[e].y*f);f=0;g=R.A(0,0);for(n=this.P[a];a!=e;)a=(a+1)%this.Sa,h=a==e?b:this.P[a],k=0.5*((n.x-l.x)*(h.y-l.y)-(n.y-l.y)*(h.x-l.x)),f+=k,g.x+=k*(l.x+n.x+h.x)/3,g.y+=k*(l.y+n.y+h.y)/3,n=h;g.wd(1/f);d.I(U.Ec(c,g));return f};D.oq=function(a){a.P=this.P;a.ta=this.Sa;a.cb=this.cb};D.En=function(a){for(var b=0,c=this.P[0].x*a.x+this.P[0].y*a.y,d=1;d<this.Sa;++d){var e=this.P[d].x*a.x+this.P[d].y*a.y;e>c&&(b=d,c=e)}return b};D.kl=function(a){for(var b=0,c=this.P[0].x*
a.x+this.P[0].y*a.y,d=1;d<this.Sa;++d){var e=this.P[d].x*a.x+this.P[d].y*a.y;e>c&&(b=d,c=e)}return this.P[b]};D.wl=function(a){this.P=[];this.Ga=[];for(var b=this.P.length;b<a;b++)this.P[b]=R.A(0,0),this.Ga[b]=R.A(0,0)};Y.Wx=function(a,b){for(var c=R.A(0,0),d=0,e=1/3,g=0;g<b;++g){var f=a[g],n=g+1<b?a[g+1]:a[0],l=0.5*((f.x-0)*(n.y-0)-(f.y-0)*(n.x-0)),d=d+l;c.x+=l*e*(0+f.x+n.x);c.y+=l*e*(0+f.y+n.y)}c.x*=1/d;c.y*=1/d;return c};Y.VE=new T;Y.Ef="b2PolygonShape";var zc=function(){this.yq=this.xq=this.zq=
this.yd=0};D=zc.prototype;D.Ti=function(a){this.yd=a;this.zq=this.yd&255;this.xq=(this.yd&65280)>>8&255;this.yq=(this.yd&16711680)>>16&255;this.wu=(this.yd&4278190080)>>24&255};D.J=function(a){this.Ti(a.yd)};D.mu=function(a){this.zq=a;this.yd=this.yd&4294967040|this.zq&255};D.ku=function(a){this.xq=a;this.yd=this.yd&4294902015|this.xq<<8&65280};D.lu=function(a){this.yq=a;this.yd=this.yd&4278255615|this.yq<<16&16711680};D.Fy=function(a){this.wu=a;this.yd=this.yd&16777215|this.wu<<24&4278190080};D.rc=
function(){var a=new zc;a.J(this);return a};var Ac=function(){this.$e=R.A(0,0);this.id=new zc};Ac.prototype.J=function(a){this.$e.I(a.$e);this.id.J(a.id)};var Bc=function(){this.Ka=R.A(0,0);this.La=R.A(0,0)},Cc=[],Dc=function(){if(0<Cc.length){var a=Cc.pop();a.la();return a}return new Bc};D=Bc.prototype;D.la=function(){this.Ka.J(0,0);this.La.J(0,0)};D.Gn=function(){return 0>this.La.x-this.Ka.x||0>this.La.y-this.Ka.y?u:this.Ka.Gn()&&this.La.Gn()};D.cy=function(){return R.A((this.Ka.x+this.La.x)/2,
(this.Ka.y+this.La.y)/2)};D.Tp=function(a){var b;return b=(b=(b=(b=p&&this.Ka.x<=a.Ka.x)&&this.Ka.y<=a.Ka.y)&&a.La.x<=this.La.x)&&a.La.y<=this.La.y};D.Cl=function(a){return 0<a.Ka.x-this.La.x||0<a.Ka.y-this.La.y||0<this.Ka.x-a.La.x||0<this.Ka.y-a.La.y?u:p};D.un=function(a,b){this.Ka.x=Math.min(a.Ka.x,b.Ka.x);this.Ka.y=Math.min(a.Ka.y,b.Ka.y);this.La.x=Math.max(a.La.x,b.La.x);this.La.y=Math.max(a.La.y,b.La.y)};var Ec=function(a,b,c,d){var e=0,g=b[0].$e,f=b[1].$e,n=c.x*g.x+c.y*g.y-d;c=c.x*f.x+c.y*f.y-
d;0>=n&&a[e++].J(b[0]);0>=c&&a[e++].J(b[1]);0>n*c&&(c=n/(n-c),d=a[e].$e,d.x=g.x+c*(f.x-g.x),d.y=g.y+c*(f.y-g.y),a[e].id=0<n?b[0].id:b[1].id,e++);return e},Fc=function(a,b,c,d,e){for(var g=b.q.k.x*a.Ga[c].x+b.q.m.x*a.Ga[c].y,f=b.q.k.y*a.Ga[c].x+b.q.m.y*a.Ga[c].y,n=e.q.k.x*g+e.q.k.y*f,l=e.q.m.x*g+e.q.m.y*f,h=0,k=Number.MAX_VALUE,q=0;q<d.Sa;q++){var t=d.P[q].x*n+d.P[q].y*l;t<k&&(k=t,h=q)}return(e.position.x+(e.q.k.x*d.P[h].x+e.q.m.x*d.P[h].y)-(b.position.x+(b.q.k.x*a.P[c].x+b.q.m.x*a.P[c].y)))*g+(e.position.y+
(e.q.k.y*d.P[h].x+e.q.m.y*d.P[h].y)-(b.position.y+(b.q.k.y*a.P[c].x+b.q.m.y*a.P[c].y)))*f},Kc=function(a,b,c,d){for(var e=d.position.x+(d.q.k.x*c.Hd.x+d.q.m.x*c.Hd.y),g=d.position.y+(d.q.k.y*c.Hd.x+d.q.m.y*c.Hd.y),e=e-(b.position.x+(b.q.k.x*a.Hd.x+b.q.m.x*a.Hd.y)),g=g-(b.position.y+(b.q.k.y*a.Hd.x+b.q.m.y*a.Hd.y)),f=e*b.q.k.x+g*b.q.k.y,g=e*b.q.m.x+g*b.q.m.y,e=0,n=-Number.MAX_VALUE,l=0;l<a.Sa;++l){var h=a.Ga[l].x*f+a.Ga[l].y*g;h>n&&(n=h,e=l)}f=Fc(a,b,e,c,d);g=e-1;0>g&&(g=a.Sa-1);n=Fc(a,b,g,c,d);l=
e+1;l>=a.Sa&&(l=0);var h=Fc(a,b,l,c,d),k=0,q=0;if(n>f&&n>h){k=g;for(q=n;;)if(e=k-1,0>e&&(e=a.Sa-1),f=Fc(a,b,e,c,d),f>q)k=e,q=f;else break}else if(h>f){k=l;for(q=h;;)if(e=k+1,e>=a.Sa&&(e=0),f=Fc(a,b,e,c,d),f>q)k=e,q=f;else break}else k=e,q=f;return{Ku:k,zp:q}},Mc=function(a,b,c){var d=new Lc;d.By(b,c.Dh,c.Ip,c.Eh,c.Jp);for(var e=0;20>e;){for(var g=[],f=0;f<d.ta;f++)g[f]={},g[f].lc=d.P[f].lc,g[f].mc=d.P[f].mc;2==d.ta?d.Iy():3==d.ta&&d.Jy();if(3==d.ta)break;f=d.fy();if(f.Hn()<sc)break;var n=f.Qh();d.P[d.ta].lc=
c.Dh.En(U.Vg(c.Ip.q,n));d.P[d.ta].hd=U.Ec(c.Ip,c.Dh.cd(d.P[d.ta].lc));d.P[d.ta].mc=c.Eh.En(U.Vg(c.Jp.q,f));d.P[d.ta].Cf=U.Ec(c.Jp,c.Eh.cd(d.P[d.ta].mc));d.P[d.ta].bd=U.zb(d.P[d.ta].Cf,d.P[d.ta].hd);R.Nc(f);R.Nc(n);e++;n=u;for(f=0;f<g.length;f++)if(d.P[d.ta].lc==g[f].lc&&d.P[d.ta].mc==g[f].mc){n=p;break}if(n)break;d.ta++}d.gy(a.Wf,a.Xf);a.kg=U.zb(a.Wf,a.Xf).fg();d.Ty(b);c.Hx&&(b=c.Dh.cb,c=c.Eh.cb,a.kg>b+c&&a.kg>Number.MIN_VALUE?(a.kg-=b+c,d=U.zb(a.Xf,a.Wf),d.xd(),a.Wf.x+=b*d.x,a.Wf.y+=b*d.y,a.Xf.x-=
c*d.x,a.Xf.y-=c*d.y,R.Nc(d)):(c=R.A(0,0),c.x=0.5*(a.Wf.x+a.Xf.x),c.y=0.5*(a.Wf.y+a.Xf.y),a.Wf.x=a.Xf.x=c.x,a.Wf.y=a.Xf.y=c.y,a.kg=0,R.Nc(c)))},Nc=x(),Oc=function(){this.Wf=R.A(0,0);this.Xf=R.A(0,0);this.kg=0},Pc=x();Pc.prototype.J=function(a){a.oq(this)};Pc.prototype.En=function(a){for(var b=0,c=this.P[0].x*a.x+this.P[0].y*a.y,d=1;d<this.ta;d++){var e=this.P[d].x*a.x+this.P[d].y*a.y;e>c&&(b=d,c=e)}return b};Pc.prototype.kl=function(a){return this.P[this.En(a)]};Pc.prototype.cd=function(a){a===m&&
(a=0);return this.P[a]};var Qc=function(){this.Cg=r;this.DB=this.GE=0};D=Qc.prototype;D.el=function(a,b){var c=Rc(b);c.Xa.Ka.x=a.Ka.x-0.1;c.Xa.Ka.y=a.Ka.y-0.1;c.Xa.La.x=a.La.x+0.1;c.Xa.La.y=a.La.y+0.1;this.Pt(c);return c};D.fl=function(a){this.cu(a);a.yb()};D.gq=function(a,b,c){if(a.Xa.Tp(b))return u;this.cu(a);var d=0.1+2*Math.abs(c.x);c=0.1+2*Math.abs(c.y);a.Xa.Ka.x=b.Ka.x-d;a.Xa.Ka.y=b.Ka.y-c;a.Xa.La.x=b.La.x+d;a.Xa.La.y=b.La.y+c;this.Pt(a);return p};D.il=function(a){return a.Xa};D.lq=function(a,
b){if(this.Cg!==r){var c=[];for(c.push(this.Cg);0<c.length;){var d=c.pop();if(d.Xa.Cl(b))if(d.Qt()){if(!a(d.lf))break}else c.push(d.me),c.push(d.hg)}}};D.Pt=function(a){this.DB++;if(this.Cg===r)this.Cg=a,this.Cg.parent=r;else{var b=this.by(a),c=b.parent,d=Rc();d.parent=c;d.Xa.un(a.Xa,b.Xa);if(c){b.parent.me==b?c.me=d:c.hg=d;d.me=b;d.hg=a;b.parent=d;for(a.parent=d;c&&!c.Xa.Tp(d.Xa);)c.Xa.un(c.me.Xa,c.hg.Xa),d=c,c=c.parent}else d.me=b,d.hg=a,b.parent=d,this.Cg=a.parent=d}};D.by=function(a){a=a.Xa.cy();
for(var b=this.Cg;!b.Qt();)var c=b.me,b=b.hg,d=Math.abs((c.Xa.Ka.x+c.Xa.La.x)/2-a.x)+Math.abs((c.Xa.Ka.y+c.Xa.La.y)/2-a.y),e=Math.abs((b.Xa.Ka.x+b.Xa.La.x)/2-a.x)+Math.abs((b.Xa.Ka.y+b.Xa.La.y)/2-a.y),b=d<e?c:b;R.Nc(a);return b};D.cu=function(a){if(a==this.Cg)this.Cg=r;else{var b=a.parent,c=b.parent;a=b.me==a?b.hg:b.me;if(c){c.me==b?c.me=a:c.hg=a;for(a.parent=c;c;){a=c.Xa;c.Xa.un(c.me.Xa,c.hg.Xa);if(a.Tp(c.Xa))break;c=c.parent}}else this.Cg=a,a.parent=r;b.yb()}};var Sc=function(){this.Ah=new Qc;this.ep=
[]};D=Sc.prototype;D.el=function(a,b){var c=this.Ah.el(a,b);this.Ft(c);return c};D.fl=function(a){this.Py(a);this.Ah.fl(a)};D.gq=function(a,b,c){this.Ah.gq(a,b,c)&&this.Ft(a)};D.Cl=function(a,b){return this.Ah.il(a).Cl(this.Ah.il(b))};D.il=function(a){return this.Ah.il(a)};D.Qy=function(a){for(var b=[];0<this.ep.length;){var c=this.ep.pop();this.Ah.lq(function(a){a!=c.lf&&b.push(new Tc(c.lf,a));return p},this.Ah.il(c))}for(var d=0;d<b.length;){var e=b[d];a(e.Sl,e.Tl);for(d++;d<b.length;){var g=b[d];
if(!(g.Sl==e.Sl&&g.Tl==e.Tl)&&!(g.Sl==e.Tl&&g.Tl==e.Sl))break;d++}}};D.lq=function(a,b){this.Ah.lq(a,b)};D.Ft=function(a){this.ep.push(a)};D.Py=function(a){za(this.ep,a)};var Uc=function(a){this.Xa=Dc();this.lf=this.parent=this.hg=this.me=r;"undefined"!=typeof a&&(this.lf=a)},Vc=[],Rc=function(a){if(0<Vc.length){var b=Vc.pop();"undefined"!=typeof a&&(b.lf=a);b.Xa.la();return b}return new Uc(a)};Uc.prototype.yb=function(){this.lf=this.parent=this.hg=this.me=r;Vc.push(this)};Uc.prototype.Qt=function(){return this.me===
r};var Tc=function(a,b){this.Sl=a;this.Tl=b},Xc=function(){this.eb=this.fc=0;this.pa=[];for(var a=0;2>a;a++)this.pa[a]=new Wc;this.Yc=R.A(0,0);this.Fa=R.A(0,0)};Xc.prototype.Pc=function(){for(var a=0;2>a;a++)this.pa[a].Pc();this.Yc.la();this.Fa.la();this.fc=this.eb=0};Xc.prototype.J=function(a){this.fc=a.fc;for(var b=0;2>b;b++)this.pa[b].J(a.pa[b]);this.Yc.I(a.Yc);this.Fa.I(a.Fa);this.eb=a.eb};Xc.prototype.rc=function(){var a=new Xc;a.J(this);return a};var Wc=function(){this.Fa=R.A(0,0);this.sf=new zc;
this.Pc()};Wc.prototype.Pc=function(){this.Fa.la();this.Gj=this.Cj=0;this.sf.Ti(0)};Wc.prototype.J=function(a){this.Fa.I(a.Fa);this.Cj=a.Cj;this.Gj=a.Gj;this.sf.J(a.sf)};var Yc=function(){this.Fa=R.A(0,0);this.Y=R.A(0,0)};Yc.prototype.sc=function(a,b,c,d,e){this.pi=b;this.qi=d;var g,f,n,l=n=f=0,h=0;d=b=0;var k,q,l=0;1==a.count?(this.eb=Zc,g=this.pi.cd(a.lc[0]),a=this.qi.cd(a.mc[0]),q=g,k=c.q,f=c.position.x+(k.k.x*q.x+k.m.x*q.y),n=c.position.y+(k.k.y*q.x+k.m.y*q.y),q=a,k=e.q,l=e.position.x+(k.k.x*
q.x+k.m.x*q.y),h=e.position.y+(k.k.y*q.x+k.m.y*q.y),this.Y.x=l-f,this.Y.y=h-n,this.Y.xd()):(a.mc[0]==a.mc[1]?(this.eb=$c,b=this.pi.cd(a.lc[0]),d=this.pi.cd(a.lc[1]),a=this.qi.cd(a.mc[0]),this.Fa.x=0.5*(b.x+d.x),this.Fa.y=0.5*(b.y+d.y),this.Y=U.Ug(U.zb(d,b),1),this.Y.xd(),q=this.Y,k=c.q,b=k.k.x*q.x+k.m.x*q.y,d=k.k.y*q.x+k.m.y*q.y,q=this.Fa,k=c.q,f=c.position.x+(k.k.x*q.x+k.m.x*q.y),n=c.position.y+(k.k.y*q.x+k.m.y*q.y),q=a,k=e.q,l=e.position.x+(k.k.x*q.x+k.m.x*q.y),h=e.position.y+(k.k.y*q.x+k.m.y*q.y),
l=(l-f)*b+(h-n)*d):a.lc[0]==a.lc[0]?(this.eb=ad,f=this.qi.cd(a.mc[0]),n=this.qi.cd(a.mc[1]),g=this.pi.cd(a.lc[0]),this.Fa.x=0.5*(f.x+n.x),this.Fa.y=0.5*(f.y+n.y),this.Y=U.Ug(U.zb(n,f),1),this.Y.xd(),q=this.Y,k=e.q,b=k.k.x*q.x+k.m.x*q.y,d=k.k.y*q.x+k.m.y*q.y,q=this.Fa,k=e.q,l=e.position.x+(k.k.x*q.x+k.m.x*q.y),h=e.position.y+(k.k.y*q.x+k.m.y*q.y),q=g,k=c.q,f=c.position.x+(k.k.x*q.x+k.m.x*q.y),n=c.position.y+(k.k.y*q.x+k.m.y*q.y),l=(f-l)*b+(n-h)*d):(b=this.pi.cd(a.lc[0]),d=this.pi.cd(a.lc[1]),f=this.qi.cd(a.mc[0]),
n=this.qi.cd(a.mc[1]),l=U.$b(c.q,U.zb(d,b)),h=U.$b(e.q,U.zb(n,f)),e=l.x*l.x+l.y*l.y,c=h.x*h.x+h.y*h.y,g=U.zb(h,l),a=l.x*g.x+l.y*g.y,g=h.x*g.x+h.y*g.y,h=l.x*h.x+l.y*h.y,k=e*c-h*h,l=0,0!=k&&(l=U.Cb((h*g-a*c)/k,0,1)),0>(h*l+g)/c&&(l=U.Cb((h-a)/e,0,1)),g=R.A(0,0),g.x=b.x+l*(d.x-b.x),g.y=b.y+l*(d.y-b.y),a=R.A(0,0),a.x=f.x+l*(n.x-f.x),a.y=f.y+l*(n.y-f.y),0==l||1==l?(this.eb=ad,this.Y=U.Ug(U.zb(n,f),1),this.Y.xd(),this.Fa=a):(this.eb=$c,this.Y=U.Ug(U.zb(d,b),1),this.Fa=g)),0>l&&this.Y.Wt())};Yc.prototype.cg=
function(a,b){var c,d,e=0;switch(this.eb){case Zc:c=U.Vg(a.q,this.Y);d=U.Vg(b.q,this.Y.Qh());c=this.pi.kl(c);d=this.qi.kl(d);c=U.Ec(a,c);d=U.Ec(b,d);e=(d.x-c.x)*this.Y.x+(d.y-c.y)*this.Y.y;break;case $c:e=U.$b(a.q,this.Y);c=U.Ec(a,this.Fa);d=U.Vg(b.q,e.Qh());d=this.qi.kl(d);d=U.Ec(b,d);e=(d.x-c.x)*e.x+(d.y-c.y)*e.y;break;case ad:e=U.$b(b.q,this.Y),d=U.Ec(b,this.Fa),c=U.Vg(a.q,e.Qh()),c=this.pi.kl(c),c=U.Ec(a,c),e=(c.x-d.x)*e.x+(c.y-d.y)*e.y}return e};var Zc=1,$c=2,ad=4,Lc=function(){this.ua=new bd;
this.Oa=new bd;this.ve=new bd;this.P=[this.ua,this.Oa,this.ve]};D=Lc.prototype;D.By=function(a,b,c,d,e){var g,f;this.ta=a.count;for(var n=this.P,l=0;l<this.ta;l++){var h=n[l];h.lc=a.lc[l];h.mc=a.mc[l];g=b.cd(h.lc);f=d.cd(h.mc);h.hd=U.Ec(c,g);h.Cf=U.Ec(e,f);h.bd=U.zb(h.Cf,h.hd);h.R=0}if(1<this.ta&&(a=a.TB,g=this.Ot(),g<0.5*a||2*a<g||g<Number.MIN_VALUE))this.ta=0;0==this.ta&&(h=n[0],h.lc=0,h.mc=0,g=b.cd(0),f=d.cd(0),h.hd=U.Ec(c,g),h.Cf=U.Ec(e,f),h.bd=U.zb(h.Cf,h.hd),this.ta=1)};D.Ty=function(a){a.TB=
this.Ot();a.count=this.ta;for(var b=this.P,c=0;c<this.ta;c++)a.lc[c]=b[c].lc,a.mc[c]=b[c].mc};D.fy=function(){if(1==this.ta)return this.ua.bd.Qh();if(2==this.ta){var a=U.zb(this.Oa.bd,this.ua.bd);return 0<U.Ni(a,this.ua.bd.Qh())?U.Vp(1,a):U.Ug(a,1)}return R.A(0,0)};D.gy=function(a,b){1==this.ta?(a.I(this.ua.hd),b.I(this.ua.Cf)):2==this.ta?(a.x=this.ua.R*this.ua.hd.x+this.Oa.R*this.Oa.hd.x,a.y=this.ua.R*this.ua.hd.y+this.Oa.R*this.Oa.hd.y,b.x=this.ua.R*this.ua.Cf.x+this.Oa.R*this.Oa.Cf.x,b.y=this.ua.R*
this.ua.Cf.y+this.Oa.R*this.Oa.Cf.y):3==this.ta&&(b.x=a.x=this.ua.R*this.ua.hd.x+this.Oa.R*this.Oa.hd.x+this.ve.R*this.ve.hd.x,b.y=a.y=this.ua.R*this.ua.hd.y+this.Oa.R*this.Oa.hd.y+this.ve.R*this.ve.hd.y)};D.Ot=function(){return 1==this.ta?0:2==this.ta?U.zb(this.ua.bd,this.Oa.bd).fg():3==this.ta?U.Ni(U.zb(this.Oa.bd,this.ua.bd),U.zb(this.ve.bd,this.ua.bd)):0};D.Iy=function(){var a=this.ua.bd,b=this.Oa.bd,c=U.zb(b,a),a=-(a.x*c.x+a.y*c.y);0>=a?this.ta=this.ua.R=1:(b=b.x*c.x+b.y*c.y,0>=b?(this.ta=this.Oa.R=
1,this.ua.J(this.Oa)):(c=1/(b+a),this.ua.R=b*c,this.Oa.R=a*c,this.ta=2))};D.Jy=function(){var a=this.ua.bd,b=this.Oa.bd,c=this.ve.bd,d=U.zb(b,a),e=U.Lb(b,d),g=-U.Lb(a,d),f=U.zb(c,a),n=U.Lb(c,f),l=-U.Lb(a,f),h=U.zb(c,b),k=U.Lb(c,h),h=-U.Lb(b,h),f=U.Ni(d,f),d=f*U.Ni(b,c),c=f*U.Ni(c,a),a=f*U.Ni(a,b);0>=g&&0>=l?this.ta=this.ua.R=1:0<e&&0<g&&0>=a?(n=1/(e+g),this.ua.R=e*n,this.Oa.R=g*n,this.ta=2):0<n&&0<l&&0>=c?(e=1/(n+l),this.ua.R=n*e,this.ve.R=l*e,this.ta=2,this.Oa.J(this.ve)):0>=e&&0>=h?(this.ta=this.Oa.R=
1,this.ua.J(this.Oa)):0>=n&&0>=k?(this.ta=this.ve.R=1,this.ua.J(this.ve)):0<k&&0<h&&0>=d?(e=1/(k+h),this.Oa.R=k*e,this.ve.R=h*e,this.ta=2,this.ua.J(this.ve)):(e=1/(d+c+a),this.ua.R=d*e,this.Oa.R=c*e,this.ve.R=a*e,this.ta=3)};var cd=function(){this.lc=[0,0,0];this.mc=[0,0,0]},bd=x();bd.prototype.J=function(a){this.hd.I(a.hd);this.Cf.I(a.Cf);this.bd.I(a.bd);this.R=a.R;this.lc=a.lc;this.mc=a.mc};var dd=function(){this.Dh=new Pc;this.Eh=new Pc;this.jx=new vc;this.kx=new vc},ed=function(){this.ya=R.A(0,
0);this.pa=[];for(var a=this.fc=0;2>a;a++)this.pa[a]=R.A(0,0)};ed.prototype.sc=function(a,b,c,d,e){if(0!=a.fc){var g=0,f,n,l=0,h=0,k=0,q=0,t=0;f=0;switch(a.eb){case 1:n=b.q;f=a.Fa;g=b.position.x+n.k.x*f.x+n.m.x*f.y;b=b.position.y+n.k.y*f.x+n.m.y*f.y;n=d.q;f=a.pa[0].Fa;a=d.position.x+n.k.x*f.x+n.m.x*f.y;d=d.position.y+n.k.y*f.x+n.m.y*f.y;f=a-g;n=d-b;l=f*f+n*n;l>sc?(l=Math.sqrt(l),this.ya.x=f/l,this.ya.y=n/l):(this.ya.x=1,this.ya.y=0);f=b+c*this.ya.y;d-=e*this.ya.y;this.pa[0].x=0.5*(g+c*this.ya.x+(a-
e*this.ya.x));this.pa[0].y=0.5*(f+d);break;case 2:n=b.q;f=a.Yc;l=n.k.x*f.x+n.m.x*f.y;h=n.k.y*f.x+n.m.y*f.y;n=b.q;f=a.Fa;k=b.position.x+n.k.x*f.x+n.m.x*f.y;q=b.position.y+n.k.y*f.x+n.m.y*f.y;this.ya.x=l;this.ya.y=h;for(g=0;g<a.fc;g++)n=d.q,f=a.pa[g].Fa,t=d.position.x+n.k.x*f.x+n.m.x*f.y,f=d.position.y+n.k.y*f.x+n.m.y*f.y,this.pa[g].x=t+0.5*(c-(t-k)*l-(f-q)*h-e)*l,this.pa[g].y=f+0.5*(c-(t-k)*l-(f-q)*h-e)*h;break;case 4:n=d.q;f=a.Yc;l=n.k.x*f.x+n.m.x*f.y;h=n.k.y*f.x+n.m.y*f.y;n=d.q;f=a.Fa;k=d.position.x+
n.k.x*f.x+n.m.x*f.y;q=d.position.y+n.k.y*f.x+n.m.y*f.y;this.ya.x=-l;this.ya.y=-h;for(g=0;g<a.fc;g++)n=b.q,f=a.pa[g].Fa,t=b.position.x+n.k.x*f.x+n.m.x*f.y,f=b.position.y+n.k.y*f.x+n.m.y*f.y,this.pa[g].x=t+0.5*(e-(t-k)*l-(f-q)*h-c)*l,this.pa[g].y=f+0.5*(e-(t-k)*l-(f-q)*h-c)*h}}};var hc=function(a,b){this.vd="Body"+hc.hq++;this.C=new fc;this.C.position.I(a.position);this.C.q.J(a.L);this.n=new vc;this.n.V.la();this.n.ud=1;this.n.ef=this.n.R=a.L;this.n.B.x=this.C.q.k.x*this.n.V.x+this.C.q.m.x*this.n.V.y;
this.n.B.y=this.C.q.k.y*this.n.V.x+this.C.q.m.y*this.n.V.y;this.n.B.x+=this.C.position.x;this.n.B.y+=this.C.position.y;this.n.Sc.I(this.n.B);this.u=a.Vr.rc();this.uh=R.A(0,0);this.Ck=a.cj;this.yB=a.br;this.es=a.Cu;this.gs=a.Hu;this.ym=a.dd;this.Ta=b;this.Kb=r;this.Td=new fd;this.ej=new gd;this.xE=0;this.H=a.Du;this.GB=a.vj;this.tB=a.Zi;this.Jm=this.Hj=0;this.eb=a.type;this.W=this.eb==X.Fc?1:0;this.M=this.eb==X.Fc?1:0;this.X=this.qf=0;this.CB=a.Fv;this.kk=new hd;this.cp=[]};D=hc.prototype;D.wn=function(a){a=
new gc(this,this.C,a);this.ym&&a.el(this.Ta.Id.Bk,this.C);this.kk.Nx(a);a.Am=this;0<a.Yo&&this.eu();this.Ta.ts=p;return a};D.yb=function(){R.Nc(this.u);R.Nc(this.uh)};D.It=function(a){this.kk.Cy(a);for(var b=this.Td.Pa(id);b;b=b.next)(a==b.Gc.Nb||a==b.Gc.Jb)&&this.Ta.Id.yb(b.Gc);this.ym&&a.fl(this.Ta.Id.Bk);a.yb();a.Am=r;this.eu()};D.zl=function(a,b){this.C.q.J(b);this.C.position.I(a);var c=this.C.q,d=this.n.V;this.n.B.x=c.k.x*d.x+c.m.x*d.y;this.n.B.y=c.k.y*d.x+c.m.y*d.y;this.n.B.x+=this.C.position.x;
this.n.B.y+=this.C.position.y;this.n.Sc.I(this.n.B);this.n.ef=this.n.R=b;c=this.Ta.Id.Bk;for(d=this.kk.Pa();d;d=d.next)d.lf.ru(c,this.C,this.C);this.Ta.Id.An()};D.ie=A("C");D.rq=function(a){this.zl(a,this.ge())};D.ge=function(){return this.n.R};D.In=function(a){this.zl(this.C.position,a)};D.Xj=function(){return this.n.B};D.Pi=function(){return this.n.V};D.Ui=function(a){this.eb!=X.Je&&this.u.I(a)};D.Oi=A("u");D.xl=function(a){a===m&&(a=0);this.eb!=X.Je&&(this.H=a)};D.Bn=A("H");D.ag=function(a,b){this.eb==
X.Fc&&(this.Qc(p),this.uh.x+=a.x,this.uh.y+=a.y,this.Hj+=(b.x-this.n.B.x)*a.y-(b.y-this.n.B.y)*a.x)};D.rn=function(a){a===m&&(a=0);this.eb==X.Fc&&(this.Qc(p),this.Hj+=a)};D.Nt=function(a){a||(a=new yc);a.Dg=this.W;a.Yj=this.qf;a.dh.I(this.n.V);return a};D.eu=function(){this.X=this.qf=this.M=this.W=0;this.n.V.la();if(!(this.eb==X.Je||this.eb==X.Ju)){for(var a=R.A(0,0),b=this.kk.Pa();b;b=b.next){var c=b.lf;0!=c.Yo&&(c=c.Nt(),this.W+=c.Dg,a.x+=c.dh.x*c.Dg,a.y+=c.dh.y*c.Dg,this.qf+=c.Yj)}0<this.W?(this.M=
1/this.W,a.x*=this.M,a.y*=this.M):this.M=this.W=1;0<this.qf&&!this.yB?(this.qf-=this.W*(a.x*a.x+a.y*a.y),this.qf*=this.CB,this.X=1/this.qf):this.X=this.qf=0;b=this.n.B.rc();this.n.V.I(a);this.n.Sc.I(U.Ec(this.C,this.n.V));this.n.B.I(this.n.Sc);this.u.x+=this.H*-(this.n.B.y-b.y);this.u.y+=this.H*+(this.n.B.x-b.x);R.Nc(a);R.Nc(b)}};D.Fn=function(a){var b=this.C.q;a=R.A(b.k.x*a.x+b.m.x*a.y,b.k.y*a.x+b.m.y*a.y);a.x+=this.C.position.x;a.y+=this.C.position.y;return a};D.dq=function(a){return U.$b(this.C.q,
a)};D.he=function(a){return U.Vt(this.C,a)};D.cq=function(a){return U.Vg(this.C.q,a)};D.ey=function(a){return R.A(this.u.x-this.H*(a.y-this.n.B.y),this.u.y+this.H*(a.x-this.n.B.x))};D.Oc=A("eb");D.Qc=function(a){if(this.gs!=a){this.gs=a;this.Jm=0;a||(this.u.la(),this.H=0,this.uh.la(),this.Hj=0);for(a=0;a<this.cp.length;a++)this.cp[a].uu(this)}};D.kd=A("gs");D.Rh=A("ym");D.aq=A("kk");D.al=function(a){this.ej.al(a)};D.tl=function(a){this.ej.tl(a)};D.Ph=A("Td");D.su=function(){var a=hc.AC;a.q.J(this.n.ef);
var b=a.q,c=this.n.V;a.position.x=this.n.Sc.x-(b.k.x*c.x+b.m.x*c.y);a.position.y=this.n.Sc.y-(b.k.y*c.x+b.m.y*c.y);b=this.Ta.Id.Bk;for(c=this.kk.Pa();c;c=c.next)c.lf.ru(b,a,this.C)};D.Mb=function(){this.C.q.J(this.n.R);var a=this.C.q,b=this.n.V;this.C.position.x=this.n.B.x-(a.k.x*b.x+a.m.x*b.y);this.C.position.y=this.n.B.y-(a.k.y*b.x+a.m.y*b.y)};D.Wi=function(a){if(this.eb!=X.Fc&&a.eb!=X.Fc)return u;for(var b=this.Kb;b;b=b.next)if(b.Ye==a&&b.oh.cw==u)return u;return p};D.Nh=function(a){this.n.Nh(a);
this.n.B.I(this.n.Sc);this.n.R=this.n.ef;this.Mb()};hc.hq=0;var X=function(){this.position=R.A(0,0);this.Vr=R.A(0,0);this.Zi=this.vj=this.Du=this.L=0;this.Hu=this.Cu=p;this.cj=this.br=u;this.type=X.Je;this.dd=p;this.Fv=1};X.Je=0;X.Ju=1;X.Fc=2;var kd=function(){this.Qn=[];for(var a=0;a<=jd;a++)this.Qn[a]=r;this.Rn=[];for(a=0;a<=jd;a++)this.Rn[a]=r;this.ek={};this.Mu=0};D=kd.prototype;D.Pa=function(a){return this.Qn[a]};D.Tj=function(a){var b=a.vd;this.ek[b]==r&&(this.bg(a,b,jd),this.uu(a),a.cp.push(this),
this.Mu++)};D.uu=function(a){var b=a.Oc(),c=a.vd,d=a.kd(),e=a.Rh();b==X.Fc?this.bg(a,c,ld):this.gg(c,ld);b!=X.Je?this.bg(a,c,md):this.gg(c,md);b!=X.Je&&e&&d?this.bg(a,c,nd):this.gg(c,nd);d?this.bg(a,c,od):this.gg(c,od);e?this.bg(a,c,pd):this.gg(c,pd)};D.sl=function(a){var b=a.vd;if(this.ek[b]!=r){za(a.cp,this);for(a=0;a<=jd;a++)this.gg(b,a);delete this.ek[b];this.Mu--}};D.gg=function(a,b){var c=this.ek[a];if(c!=r){var d=c[b];d!=r&&(c[b]=r,c=d.wf,d=d.next,c==r?this.Qn[b]=d:c.Gf(d),d==r?this.Rn[b]=
c:d.Hf(c))}};D.bg=function(a,b,c){var d=this.ek[b];if(d==r){for(var d=[],e=0;e<=jd;e++)d[e]=r;this.ek[b]=d}d[c]==r&&(d[c]=new qd(a),a=this.Rn[c],a!=r?a.Gf(d[c]):this.Qn[c]=d[c],d[c].Hf(a),this.Rn[c]=d[c])};var ld=0,md=1,pd=2,nd=3,od=4,jd=5,qd=function(a){this.body=a;this.wf=this.next=r};qd.prototype.Gf=aa("next");qd.prototype.Hf=aa("wf");qd.prototype.Wa=A("body");var rd=x();rd.prototype.Wi=function(a,b){var c=a.Mt(),d=b.Mt();return c.ei==d.ei&&0!=c.ei?0<c.ei:0!=(c.Kk&d.gk)&&0!=(c.gk&d.Kk)};var sd=
new rd,td=function(){this.WB=[];this.LC=[]},ic=x();ic.prototype.sn=x();var vd=function(a){this.Ta=a;this.hs=sd;this.rh=ic.Iu;this.dw=new ud;this.Bk=new Sc};vd.prototype.Px=function(a,b){var c=a.Wa(),d=b.Wa();if(c!=d&&d.Wi(c)&&this.hs.Wi(a,b)){for(c=d.Td.Pa(id);c;c=c.next)if(d=c.Gc.Nb,d==a){if(d=c.Gc.Jb,d==b)return}else if(d==b&&(d=c.Gc.Jb,d==a))return;this.dw.bf(a,b)}};vd.prototype.An=function(){var a=this;this.Bk.Qy(function(b,c){a.Px(b,c)})};vd.prototype.yb=function(a){0<a.We.fc&&(a.Nb.Wa().Qc(p),
a.Jb.Wa().Qc(p));a.Dy();this.dw.yb(a)};vd.prototype.Sx=function(){for(var a=this.Ta.Td.Pa(id);a;a=a.next){var b=a.Gc,c=b.Nb,d=b.Jb,e=c.Wa(),g=d.Wa();if(!(e.kd()==u&&g.kd()==u)){if(b.lo){if(g.Wi(e)==u){this.yb(b);continue}if(this.hs.Wi(c,d)==u){this.yb(b);continue}b.Rx()}this.Bk.Cl(c.Dj,d.Dj)==u?this.yb(b):b.tu(this.rh)}}};var wd=function(){this.gk=1;this.Kk=65535;this.ei=0};wd.prototype.rc=function(){var a=new wd;a.gk=this.gk;a.Kk=this.Kk;a.ei=this.ei;return a};var gc=function(a,b,c){this.vd="Fixture"+
gc.hq++;this.xB=c.filter.rc();this.yj=Dc();this.Am=a;this.zh=c.shape.rc();this.Yo=c.Kf;this.ls=c.pg;this.Im=c.Lg;this.$o=c.Hr};D=gc.prototype;D.Dc=A("zh");D.Si=A("$o");D.Mt=function(){return this.xB.rc()};D.Wa=A("Am");D.Nt=function(a){a||(a=new yc);this.zh.dl(a,this.Yo);return a};D.yb=function(){Cc.push(this.yj)};D.el=function(a,b){this.zh.Vj(this.yj,b);this.Dj=a.el(this.yj,this)};D.fl=function(a){this.Dj!=r&&(a.fl(this.Dj),this.Dj=r)};D.ru=function(a,b,c){if(this.Dj){var d=Dc(),e=Dc();this.zh.Vj(d,
b);this.zh.Vj(e,c);this.yj.un(d,e);Cc.push(d);Cc.push(e);b=U.zb(c.position,b.position);a.gq(this.Dj,this.yj,b);R.Nc(b)}};gc.hq=0;var lc=function(){this.filter=new wd;this.filter.gk=1;this.filter.Kk=65535;this.filter.ei=0;this.shape=r;this.pg=0.2;this.Kf=this.Lg=0;this.Hr=u},hd=function(){this.dr=this.cr=r;this.mo={};this.qv=0};hd.prototype.Pa=A("cr");hd.prototype.Nx=function(a){var b=a.vd;if(this.mo[b]==r){a=new xd(a);var c=this.dr;c!=r?c.Gf(a):this.cr=a;a.Hf(c);this.dr=a;this.mo[b]=a;this.qv++}};
hd.prototype.Cy=function(a){a=a.vd;var b=this.mo[a];if(b!=r){var c=b.wf,b=b.next;c==r?this.cr=b:c.Gf(b);b==r?this.dr=c:b.Hf(c);delete this.mo[a];this.qv--}};var xd=function(a){this.lf=a;this.wf=this.next=r};xd.prototype.Gf=aa("next");xd.prototype.Hf=aa("wf");var yd=function(a,b){this.HB=a;this.Sf=b;this.wg=[];this.Zo=[];this.oi=[];this.sh=[];this.rd=[]};D=yd.prototype;D.tn=function(){this.wg=[];this.Zo=[];this.oi=[];this.sh=[];this.rd=[]};D.Uh=function(a,b,c){this.Xy(a,b);this.Sf.sc(a,this.sh,this.sh.length);
this.cz(a);this.Zy(a);this.$y(a);this.du(this.Sf.xg);c&&this.Yy(a)};D.Xy=function(a,b){for(var c=0;c<this.Zo.length;c++){var d=this.Zo[c];d.u.x+=a.Da*(b.x+d.M*d.uh.x);d.u.y+=a.Da*(b.y+d.M*d.uh.y);d.H+=a.Da*d.X*d.Hj;d.u.wd(U.Cb(1-a.Da*d.GB,0,1));d.H*=U.Cb(1-a.Da*d.tB,0,1)}};D.cz=function(a){this.Sf.cf(a);for(var b=0;b<this.rd.length;b++)this.rd[b].cf(a);for(b=0;b<a.on;b++){for(var c=0;c<this.rd.length;c++)this.rd[c].He(a);this.Sf.He()}for(a=0;a<this.rd.length;a++)this.rd[a].Zp();this.Sf.Zp()};D.Zy=
function(a){for(var b=0;b<this.oi.length;++b){var c=this.oi[b],d=a.Da*c.u.x,e=a.Da*c.u.y;4<d*d+e*e&&(c.u.xd(),c.u.x*=2*a.mh,c.u.y*=2*a.mh);d=a.Da*c.H;d*d>qc&&(c.H=0>c.H?-pc*a.mh:pc*a.mh);c.n.Sc.I(c.n.B);c.n.ef=c.n.R;c.n.B.x+=a.Da*c.u.x;c.n.B.y+=a.Da*c.u.y;c.n.R+=a.Da*c.H;c.Mb()}};D.$y=function(a){for(var b=0;b<a.Um;b++){for(var c=this.Sf.Ge(0.2),d=p,e=0;e<this.rd.length;e++)var g=this.rd[e].Ge(0.2),d=d&&g;if(c&&d)break}};D.Yy=function(a){for(var b=Number.MAX_VALUE,c=0;c<this.oi.length;c++){var d=
this.oi[c];!d.es||Math.abs(d.H)>rc||1E-4<U.Lb(d.u,d.u)?b=d.Jm=0:(d.Jm+=a.Da,b=Math.min(b,d.Jm))}if(0.5<=b)for(a=0;a<this.wg.length;a++)this.wg[a].Qc(u)};D.tq=function(a){var b=0,c=0;this.Sf.sc(a,this.sh,this.sh.length);for(var d=this.Sf,b=0;b<this.rd.length;++b)this.rd[b].cf(a);for(b=0;b<a.on;++b){d.He();for(c=0;c<this.rd.length;++c)this.rd[c].He(a)}for(b=0;b<this.oi.length;++b){var c=this.oi[b],e=a.Da*c.u.x,g=a.Da*c.u.y;4<e*e+g*g&&(c.u.xd(),c.u.x*=2*a.mh,c.u.y*=2*a.mh);e=a.Da*c.H;e*e>qc&&(c.H=0>
c.H?-pc*a.mh:pc*a.mh);c.n.Sc.I(c.n.B);c.n.ef=c.n.R;c.n.B.x+=a.Da*c.u.x;c.n.B.y+=a.Da*c.u.y;c.n.R+=a.Da*c.H;c.Mb()}for(b=0;b<a.Um;++b){e=d.Ge(0.75);g=p;for(c=0;c<this.rd.length;++c)var f=this.rd[c].Ge(0.2),g=g&&f;if(e&&g)break}this.du(d.xg)};D.du=function(a){if(this.HB!=r)for(var b=0;b<this.sh.length;++b)for(var c=a[b],d=new td,e=0;e<c.vf;++e)d.WB[e]=c.jc[e].gc,d.LC[e]=c.jc[e].Og};D.Tj=function(a){this.wg.push(a);a.Oc()!=X.Je&&(this.oi.push(a),a.Oc()==X.Fc&&this.Zo.push(a))};D.Uj=function(a){this.sh.push(a)};
D.Dt=function(a){this.rd.push(a)};var zd=function(a,b,c,d,e){this.Da=a;var g=0;0<a&&(g=1/a);this.mh=g;this.uc=b;this.Um=c;this.on=d;this.Lh=e},jc=function(a,b){this.Id=new vd(this);this.Sf=new Ad;this.ts=this.fw=u;this.EE=r;this.Rc=new kd;this.Td=new fd;this.Kb=r;this.ej=new gd;this.bp=0;this.vB=this.OB=p;this.es=b;this.ms=a;this.ew=0;this.BB=this.Up(new X)};jc.ky=1-100*Number.MIN_VALUE;D=jc.prototype;D.iu=function(a){this.Id.hs=a};D.ju=function(a){this.Id.rh=a};D.Up=function(a){a=new hc(a,this);
this.Rc.Tj(a);return a};D.yn=function(a){for(var b=a.Kb;b;){var c=b,b=b.next;this.Wp(c.oh)}for(b=a.ej.Pa();b;b=b.next)b.Xu.sl(a);for(b=a.Td.Pa(id);b;b=b.next)this.Id.yb(b.Gc);for(b=a.aq().Pa();b;b=b.next)a.It(b.lf);a.yb();this.Rc.sl(a)};D.xn=function(a){var b=Z.bf(a);b.Ek=r;if(b.ni=this.Kb)this.Kb.Ek=b;this.Kb=b;this.bp++;b.Jd.oh=b;b.Jd.Ye=b.aa;b.Jd.prev=r;if(b.Jd.next=b.$.Kb)b.$.Kb.prev=b.Jd;b.$.Kb=b.Jd;b.Kd.oh=b;b.Kd.Ye=b.$;b.Kd.prev=r;if(b.Kd.next=b.aa.Kb)b.aa.Kb.prev=b.Kd;b.aa.Kb=b.Kd;var c=a.S,
d=a.T;if(!a.Hq)for(a=d.Td.Pa(id);a;a=a.next)a.Gc.Dn(d)==c&&a.Gc.Kt();return b};D.Wp=function(a){var b=a.cw;a.Ek&&(a.Ek.ni=a.ni);a.ni&&(a.ni.Ek=a.Ek);a==this.Kb&&(this.Kb=a.ni);var c=a.$,d=a.aa;c.Qc(p);d.Qc(p);a.Jd.prev&&(a.Jd.prev.next=a.Jd.next);a.Jd.next&&(a.Jd.next.prev=a.Jd.prev);a.Jd==c.Kb&&(c.Kb=a.Jd.next);a.Jd.prev=r;a.Jd.next=r;a.Kd.prev&&(a.Kd.prev.next=a.Kd.next);a.Kd.next&&(a.Kd.next.prev=a.Kd.prev);a.Kd==d.Kb&&(d.Kb=a.Kd.next);a.Kd.prev=r;a.Kd.next=r;this.bp--;if(!b)for(a=d.Td.Pa(id);a;a=
a.next)a.Gc.Dn(d)==c&&a.Gc.Kt()};D.al=function(a){if(a.Ta!==r&&a.Ta!=this)throw Error("Controller can only be a member of one world");this.ej.al(a);a.Ta=this;return a};D.tl=function(a){this.ej.tl(a);a.Ta=r;a.tn()};D.pq=aa("ms");D.Wg=function(a,b,c){this.ts&&(this.Id.An(),this.ts=u);this.fw=p;a=new zd(a,this.ew*a,b,c,this.OB);this.Id.Sx();0<a.Da&&(this.Uh(a),this.vB&&this.tq(a),this.ew=a.mh);this.fw=u};D.Gt=function(){for(var a=this.Rc.Pa(ld);a;a=a.next)a.body.uh.la(),a.body.Hj=0};D.Ph=A("Td");var Bd=
[];jc.prototype.Uh=function(a){for(var b=this.ej.Pa();b;b=b.next)b.Xu.Wg(a);for(var b=new yd(this.Id.rh,this.Sf),c=this.Rc.Pa(jd);c;c=c.next)c.body.Ab=u;for(var d=this.Td.Pa(id);d;d=d.next)d.Gc.Ab=u;for(c=this.Kb;c;c=c.ni)c.Ab=u;for(c=this.Rc.Pa(nd);c;c=c.next)if(d=c.body,!d.Ab){b.tn();Bd.length=0;var e=Bd;e.push(d);for(d.Ab=p;0<e.length;){var g=e.pop();b.Tj(g);g.kd()||g.Qc(p);if(g.Oc()!=X.Je){for(d=g.Td.Pa(Cd);d;d=d.next){var f=d.Gc;f.Ab||(b.Uj(f),f.Ab=p,f=f.Dn(g),f.Ab||(e.push(f),f.Ab=p))}for(d=
g.Kb;d;d=d.next)!d.oh.Ab&&d.Ye.Rh()&&(b.Dt(d.oh),d.oh.Ab=p,d.Ye.Ab||(e.push(d.Ye),d.Ye.Ab=p))}}b.Uh(a,this.ms,this.es)}for(c=this.Rc.Pa(nd);c;c=c.next)c.body.su();this.Id.An()};jc.prototype.tq=function(a){for(var b=new yd(this.Id.rh,this.Sf),c=this.Rc.Pa(jd);c;c=c.next){var d=c.body;d.Ab=u;d.n.ud=0}for(var e=this.Td.Pa(id);e;e=e.next)e.Gc.Ab=u,e.Gc.Ik=r;for(c=this.Kb;c;c=c.ni)c.Ab=u;for(;;){var c=this.az(),g=c.UB,c=c.VB;if(g===r||jc.ky<c)break;e=g.Nb.Wa();d=g.Jb.Wa();jc.Uw.J(e.n);jc.Vw.J(d.n);e.Nh(c);
d.Nh(c);g.tu(this.Id.rh);g.Ik=r;if(g.yp||!g.enabled)e.n.J(jc.Uw),d.n.J(jc.Vw),e.Mb(),d.Mb();else if(g.jn){e.Oc()!=X.Fc&&(e=d);b.tn();Bd.length=0;g=Bd;g.push(e);for(e.Ab=p;0<g.length;)if(d=g.pop(),b.Tj(d),d.kd()||d.Qc(p),d.Oc()==X.Fc){for(e=d.Td.Pa(Cd);e&&32!=b.uB;e=e.next){var f=e.Gc;f.Ab||(b.Uj(f),f.Ab=p,f=f.Dn(d),f.Ab||(f.Oc()!=X.Je&&(f.Nh(c),f.Qc(p),g.push(f)),f.Ab=p))}for(d=d.Kb;d;d=d.next)32!=b.bp&&(!d.oh.Ab&&d.Ye.Rh())&&(b.Dt(d.oh),d.oh.Ab=p,d.Ye.Ab||(d.Ye.Oc()!=X.Je&&(d.Ye.Nh(c),d.Ye.Qc(p),
g.push(d.Ye)),d.Ye.Ab=p))}b.tq(new zd((1-c)*a.Da,0,a.on,a.Um,u));for(c=0;c<b.wg.length;c++)if(b.wg[c].Ab=u,b.wg[c].kd()&&b.wg[c].Oc()==X.Fc){b.wg[c].su();for(e=b.wg[c].Td.Pa(id);e;e=e.next)e.Gc.Ik=r}for(c=0;c<b.uB;c++)b.sh[c].Ab=u,b.sh[c].Ik=r;for(c=0;c<b.bp;c++)b.rd[c].Ab=u;this.Id.An()}}};jc.prototype.az=function(){for(var a=r,b=1,c=this.Td.Pa(Dd);c;c=c.next){var d=c.Gc;if(!this.bz(d)){var e=1;if(d.Ik!=r)e=d.Ik;else{if(d.jn)e=1;else{var e=d.Nb.Wa(),g=d.Jb.Wa(),f=e.n.ud;e.n.ud<g.n.ud?(f=g.n.ud,e.n.Nh(f)):
g.n.ud<e.n.ud&&(f=e.n.ud,g.n.Nh(f));e=d.Xx(e.n,g.n);0<e&&1>e&&(e=(1-e)*f+e)}d.Ik=e}Number.MIN_VALUE<e&&e<b&&(a=d,b=e)}}return{UB:a,VB:b}};jc.prototype.bz=function(a){var b=a.Nb.Wa();a=a.Jb.Wa();return(b.Oc()!=X.Fc||!b.kd())&&(a.Oc()!=X.Fc||!a.kd())?p:u};var Fd=function(a,b){this.vd="Contact"+Ed++;this.We=new Xc;this.Gm=new Xc;this.jn=u;var c=a.Wa(),d=b.Wa();this.Iq=c.Oc()!=X.Fc||c.Ck||d.Oc()!=X.Fc||d.Ck;this.yp=a.Si()||b.Si();this.lo=u;this.Nb=a;this.Jb=b;this.enabled=p;this.On=c.Ph();this.Pn=d.Ph();
this.Rp=d.Ta.Ph();this.Et()};D=Fd.prototype;D.Pc=function(a,b){this.We.Pc();this.Gm.Pc();this.jn=u;var c=a.Wa(),d=b.Wa();this.Iq=c.Oc()!=X.Fc||c.Ck||d.Oc()!=X.Fc||d.Ck;this.yp=a.Si()||b.Si();this.lo=u;this.Nb=a;this.Jb=b;this.enabled=p;this.On=c.Ph();this.Pn=d.Ph();this.Rp=d.Ta.Ph();this.Et()};D.Et=function(){this.On.Uj(this);this.Pn.Uj(this);this.Rp.Uj(this);this.vu()};D.vu=function(){var a=u,b=u;!this.Si()&&this.enabled&&(this.fq()&&(a=p),this.Iq&&(b=p));this.On.wq(this,a,b);this.Pn.wq(this,a,b);
this.Rp.wq(this,a,b)};D.Dy=function(){this.On.mq(this);this.Pn.mq(this);this.Rp.mq(this)};D.fq=A("jn");D.Si=A("yp");D.Dn=function(a){var b=this.Nb.Wa();return b!=a?b:this.Jb.Wa()};D.Kt=function(){this.lo=p};D.Rx=function(){this.lo=u};D.tu=function(a){var b=this.Gm;this.Gm=this.We;this.We=b;this.enabled=p;var c=u,b=this.fq(),d=this.Nb.Wa(),e=this.Jb.Wa(),g=this.Nb.yj.Cl(this.Jb.yj);if(this.yp){if(g){var c=this.Nb.Dc(),d=d.ie(),g=this.Jb.Dc(),f=e.ie(),e=new Nc;e.Dh=new Pc;e.Dh.J(c);e.Eh=new Pc;e.Eh.J(g);
e.Ip=d;e.Jp=f;e.Hx=p;d=new cd;d.count=0;c=new Oc;Mc(c,d,e);c=c.kg<10*Number.MIN_VALUE}this.We.fc=0}else{this.Iq=d.Oc()!=X.Fc||d.Ck||e.Oc()!=X.Fc||e.Ck?p:u;if(g){this.cg();c=0<this.We.fc;for(g=0;g<this.We.fc;g++){f=this.We.pa[g];f.Cj=0;for(var n=f.Gj=0;n<this.Gm.fc;n++){var l=this.Gm.pa[n];if(l.sf.yd==f.sf.yd){f.Cj=l.Cj;f.Gj=l.Gj;break}}}}else this.We.fc=0;c!=b&&(d.Qc(p),e.Qc(p))}this.jn=c;c!=b&&this.vu();!b&&c&&a.sn(this)};D.cg=x();D.Xx=function(a,b){Gd.Dh.J(this.Nb.Dc());Gd.Eh.J(this.Jb.Dc());Gd.jx=
a;Gd.kx=b;Gd.QC=0.005;var c=Gd;Hd++;var d=c.Dh,e=c.Eh,g=c.jx,f=c.kx,n=d.cb+e.cb,c=c.QC,l=0,h=0,k=0;Id.count=0;for(Jd.Hx=u;;){g.ie(Kd,l);f.ie(Ld,l);Jd.Dh=d;Jd.Eh=e;Jd.Ip=Kd;Jd.Jp=Ld;Mc(Qd,Id,Jd);if(0>=Qd.kg){l=1;break}Rd.sc(Id,d,Kd,e,Ld);var q=Rd.cg(Kd,Ld);if(0>=q){l=1;break}0==h&&(k=q>n?Math.max(n-c,0.75*n):Math.max(q-c,0.02*n));if(q-k<0.5*c){if(0==h){l=1;break}break}var t=l,v=l,w=1;g.ie(Kd,w);f.ie(Ld,w);var s=Rd.cg(Kd,Ld);if(s>=k){l=1;break}for(var y=0;;){var B=0,B=y&1?v+(k-q)*(w-v)/(s-q):0.5*(v+
w);g.ie(Kd,B);f.ie(Ld,B);var F=Rd.cg(Kd,Ld);if(Math.abs(F-k)<0.025*c){t=B;break}F>k?(v=B,q=F):(w=B,s=F);y++;Sd++;if(50==y)break}Td=Math.max(Td,y);if(t<(1+100*Number.MIN_VALUE)*l)break;l=t;h++;Ud++;if(1E3==h)break}Vd=Math.max(Vd,h);return l};var Gd=new dd,Ed=0,Wd=function(a,b){Fd.call(this,a,b)};O(Wd,Fd);Wd.prototype.Pc=function(a,b){Fd.prototype.Pc.call(this,a,b)};Wd.prototype.cg=function(){var a=this.We,b=this.Nb.Dc(),c=this.Nb.Wa().C,d=this.Jb.Dc(),e=this.Jb.Wa().C;a.fc=0;var g=e.position.x+(e.q.k.x*
d.nb.x+e.q.m.x*d.nb.y)-(c.position.x+(c.q.k.x*b.nb.x+c.q.m.x*b.nb.y)),c=e.position.y+(e.q.k.y*d.nb.x+e.q.m.y*d.nb.y)-(c.position.y+(c.q.k.y*b.nb.x+c.q.m.y*b.nb.y)),e=b.cb+d.cb;g*g+c*c>e*e||(a.eb=1,a.Fa.I(b.nb),a.Yc.la(),a.fc=1,a.pa[0].Fa.I(d.nb),a.pa[0].sf.Ti(0))};var Yd=function(){this.ug=R.A(0,0);this.ec=R.A(0,0);this.sd=R.A(0,0);this.Bh=new T;this.je=new T;this.jc=[];for(var a=0;2>a;a++)this.jc[a]=new Xd},Xd=function(){this.ec=R.A(0,0);this.Rb=R.A(0,0);this.Sb=R.A(0,0)};Xd.prototype.Pc=function(){this.ec.J(0,
0);this.Rb.J(0,0);this.Sb.J(0,0)};var ud=function(){this.Uf={};this.vh={};this.bl(Wd,kc.Ef,kc.Ef);this.bl(Zd,Y.Ef,kc.Ef);this.bl($d,Y.Ef,Y.Ef);this.bl(ae,"b2EdgeShape",kc.Ef);this.bl(be,Y.Ef,"b2EdgeShape")};ud.prototype.bl=function(a,b,c){this.vh[b]=this.vh[b]||{};this.vh[b][c]=this.vh[b][c]||[];this.Uf[b]=this.Uf[b]||{};this.Uf[b][c]=new ce;this.Uf[b][c].$u=a;this.Uf[b][c].Lw=p;b!=c&&(this.Uf[c]=this.Uf[c]||{},this.Uf[c][b]=new ce,this.Uf[c][b].$u=a,this.Uf[c][b].Lw=u)};ud.prototype.bf=function(a,
b){var c=a.Dc().Qi(),d=b.Dc().Qi(),e=this.Uf[c][d],g=e.$u;return g!=r?e.Lw?0<this.vh[c][d].length?(c=this.vh[c][d].pop(),c.Pc(a,b),c):new g(a,b):0<this.vh[d][c].length?(c=this.vh[d][c].pop(),c.Pc(b,a),c):new g(b,a):r};ud.prototype.yb=function(a){var b=a.Nb.Dc().Qi(),c=a.Jb.Dc().Qi();this.vh[b][c].push(a)};var fd=function(){this.Un=[];for(var a=0;a<=id;a++)this.Un[a]=r;this.Vn=[];for(a=0;a<=id;a++)this.Vn[a]=r;this.dj={};this.Wu=0};D=fd.prototype;D.Pa=function(a){return this.Un[a]};D.Uj=function(a){var b=
a.vd;if(this.dj[b]==r){this.dj[b]=[];for(var c=0;c<=id;c++)this.dj[b][c]=r;this.bg(a,b,id);this.Wu++}};D.wq=function(a,b,c){b?this.bg(a,a.vd,Cd):this.gg(a.vd,Cd);c?this.bg(a,a.vd,Dd):this.gg(a.vd,Dd)};D.mq=function(a){a=a.vd;if(this.dj[a]!=r){for(var b=0;b<=id;b++)this.gg(a,b);delete this.dj[a];this.Wu--}};D.gg=function(a,b){var c=this.dj[a];if(c!=r){var d=c[b];if(d!=r){c[b]=r;var c=d.wf,e=d.next;c==r?this.Un[b]=e:c.Gf(e);e==r?this.Vn[b]=c:e.Hf(c);de.push(d)}}};D.bg=function(a,b,c){b=this.dj[b];if(b[c]==
r){if(0<de.length){var d=de.pop();d.next=r;d.wf=r;d.Gc=a;a=d}else a=new ee(a);b[c]=a;a=this.Vn[c];a!=r?(a.Gf(b[c]),b[c].Hf(a)):this.Un[c]=b[c];this.Vn[c]=b[c]}};var Cd=0,Dd=1,id=2,ee=function(a){this.Gc=a;this.wf=this.next=r},de=[];ee.prototype.Gf=aa("next");ee.prototype.Hf=aa("wf");var ce=function(){this.SE=r;this.TE=0},fe=function(){this.ya=R.A(0,0);this.gp=[];this.pa=[];for(var a=0;2>a;a++)this.pa[a]=R.A(0,0)};fe.prototype.sc=function(a){switch(a.type){case 1:this.Uy(a);break;case 2:this.Vy(a);
break;case 4:this.Wy(a)}};fe.prototype.Uy=function(a){var b=a.S.C.q,c=a.ec,d=a.S.C.position.x+(b.k.x*c.x+b.m.x*c.y),e=a.S.C.position.y+(b.k.y*c.x+b.m.y*c.y),b=a.T.C.q,c=a.jc[0].ec,g=a.T.C.position.x+(b.k.x*c.x+b.m.x*c.y),b=a.T.C.position.y+(b.k.y*c.x+b.m.y*c.y),c=g-d,f=b-e,n=c*c+f*f;n>sc?(n=Math.sqrt(n),this.ya.x=c/n,this.ya.y=f/n):(this.ya.x=1,this.ya.y=0);this.pa[0].x=0.5*(d+g);this.pa[0].y=0.5*(e+b);this.gp[0]=c*this.ya.x+f*this.ya.y-a.sp};fe.prototype.Vy=function(a){this.ya.x=a.S.C.q.k.x*a.ug.x+
a.S.C.q.m.x*a.ug.y;this.ya.y=a.S.C.q.k.y*a.ug.x+a.S.C.q.m.y*a.ug.y;for(var b=a.S.C.position.x+(a.S.C.q.k.x*a.ec.x+a.S.C.q.m.x*a.ec.y),c=a.S.C.position.y+(a.S.C.q.k.y*a.ec.x+a.S.C.q.m.y*a.ec.y),d=0;d<a.vf;d++){var e=a.T.C.position.x+(a.T.C.q.k.x*a.jc[d].ec.x+a.T.C.q.m.x*a.jc[d].ec.y),g=a.T.C.position.y+(a.T.C.q.k.y*a.jc[d].ec.x+a.T.C.q.m.y*a.jc[d].ec.y);this.gp[d]=(e-b)*this.ya.x+(g-c)*this.ya.y-a.sp;this.pa[d].x=e;this.pa[d].y=g}};fe.prototype.Wy=function(a){this.ya.x=a.T.C.q.k.x*a.ug.x+a.T.C.q.m.x*
a.ug.y;this.ya.y=a.T.C.q.k.y*a.ug.x+a.T.C.q.m.y*a.ug.y;for(var b=a.T.C.position.x+(a.T.C.q.k.x*a.ec.x+a.T.C.q.m.x*a.ec.y),c=a.T.C.position.y+(a.T.C.q.k.y*a.ec.x+a.T.C.q.m.y*a.ec.y),d=0;d<a.vf;d++){var e=a.S.C.position.x+(a.S.C.q.k.x*a.jc[d].ec.x+a.S.C.q.m.x*a.jc[d].ec.y),g=a.S.C.position.y+(a.S.C.q.k.y*a.jc[d].ec.x+a.S.C.q.m.y*a.jc[d].ec.y);this.gp[d]=(e-b)*this.ya.x+(g-c)*this.ya.y-a.sp;this.pa[d].J(e,g)}this.ya.x*=-1;this.ya.y*=-1};var Ad=function(){this.xg=[]};D=Ad.prototype;D.sc=function(a,b,
c){for(this.Bm=c;this.xg.length<this.Bm;)this.xg[this.xg.length]=new Yd;for(a=0;a<c;a++){var d=b[a],e=d.Nb,g=d.Jb,f=e.zh.cb,n=g.zh.cb,l=e.Wa(),h=g.Wa(),k=d.We,q=Math.sqrt(e.ls*g.ls),t=e.Im>g.Im?e.Im:g.Im,v=l.u.x,w=l.u.y,s=h.u.x,y=h.u.y,B=l.H,F=h.H;ge.sc(k,l.C,f,h.C,n);g=ge.ya.x;d=ge.ya.y;e=this.xg[a];e.S=l;e.T=h;e.PB=k;e.sd.x=g;e.sd.y=d;e.vf=k.fc;e.pg=q;e.Lg=t;e.ug.x=k.Yc.x;e.ug.y=k.Yc.y;e.ec.x=k.Fa.x;e.ec.y=k.Fa.y;e.sp=f+n;e.type=k.eb;for(f=0;f<e.vf;++f){q=k.pa[f];n=e.jc[f];n.gc=q.Cj;n.Og=q.Gj;n.ec.I(q.Fa);
var q=n.Rb.x=ge.pa[f].x-l.n.B.x,t=n.Rb.y=ge.pa[f].y-l.n.B.y,J=n.Sb.x=ge.pa[f].x-h.n.B.x,I=n.Sb.y=ge.pa[f].y-h.n.B.y,L=q*d-t*g,G=J*d-I*g,L=L*L,G=G*G;n.Bh=1/(l.M+h.M+l.X*L+h.X*G);var H=l.W*l.M+h.W*h.M,H=H+(l.W*l.X*L+h.W*h.X*G);n.Xz=1/H;G=d;H=-g;L=q*H-t*G;G=J*H-I*G;L*=L;G*=G;n.MC=1/(l.M+h.M+l.X*L+h.X*G);n.nn=0;q=e.sd.x*(s+-F*I-v- -B*t)+e.sd.y*(y+F*J-w-B*q);-1>q&&(n.nn+=-e.Lg*q)}2==e.vf&&(y=e.jc[0],s=e.jc[1],k=l.M,l=l.X,v=h.M,h=h.X,w=y.Rb.x*d-y.Rb.y*g,y=y.Sb.x*d-y.Sb.y*g,B=s.Rb.x*d-s.Rb.y*g,s=s.Sb.x*
d-s.Sb.y*g,g=k+v+l*w*w+h*y*y,d=k+v+l*B*B+h*s*s,h=k+v+l*w*B+h*y*s,g*g<100*(g*d-h*h)?(e.je.k.J(g,h),e.je.m.J(h,d),e.je.bq(e.Bh)):e.vf=1)}};D.cf=function(a){for(var b=0;b<this.Bm;++b){var c=this.xg[b],d=c.S,e=c.T,g=d.M,f=d.X,n=e.M,l=e.X,h=c.sd.x,k=c.sd.y,q=k,t=-h,v=0,w=0;if(a.Lh){w=c.vf;for(v=0;v<w;++v){var s=c.jc[v];s.gc*=a.uc;s.Og*=a.uc;var y=s.gc*h+s.Og*q,B=s.gc*k+s.Og*t;d.H-=f*(s.Rb.x*B-s.Rb.y*y);d.u.x-=g*y;d.u.y-=g*B;e.H+=l*(s.Sb.x*B-s.Sb.y*y);e.u.x+=n*y;e.u.y+=n*B}}else{w=c.vf;for(v=0;v<w;++v)d=
c.jc[v],d.gc=0,d.Og=0}}};D.He=function(){for(var a=0;a<this.Bm;a++)this.Ky(this.xg[a])};D.Ky=function(a){for(var b=a.sd.x,c=a.sd.y,d=0;d<a.vf;d++)Ad.prototype.Ly(a,a.jc[d]);if(1==a.vf){var d=a.jc[0],e=d.gc-d.Bh*((a.T.u.x-a.T.H*d.Sb.y-a.S.u.x+a.S.H*d.Rb.y)*b+(a.T.u.y+a.T.H*d.Sb.x-a.S.u.y-a.S.H*d.Rb.x)*c-d.nn),e=0<e?e:0,g=e-d.gc,f=g*b,c=g*c;a.S.u.x-=a.S.M*f;a.S.u.y-=a.S.M*c;a.S.H-=a.S.X*(d.Rb.x*c-d.Rb.y*f);a.T.u.x+=a.T.M*f;a.T.u.y+=a.T.M*c;a.T.H+=a.T.X*(d.Sb.x*c-d.Sb.y*f);d.gc=e}else for(var d=a.jc[0],
e=a.jc[1],g=d.gc,f=e.gc,n=(a.T.u.x-a.T.H*d.Sb.y-a.S.u.x+a.S.H*d.Rb.y)*b+(a.T.u.y+a.T.H*d.Sb.x-a.S.u.y-a.S.H*d.Rb.x)*c-d.nn,c=(a.T.u.x-a.T.H*e.Sb.y-a.S.u.x+a.S.H*e.Rb.y)*b+(a.T.u.y+a.T.H*e.Sb.x-a.S.u.y-a.S.H*e.Rb.x)*c-e.nn,n=n-(a.je.k.x*g+a.je.m.x*f),c=c-(a.je.k.y*g+a.je.m.y*f);;){b=-(a.Bh.k.x*n+a.Bh.m.x*c);if(0<=b){var l=-(a.Bh.k.y*n+a.Bh.m.y*c);if(0<=l){this.Kn(a,d,e,b-g,l-f);d.gc=b;e.gc=l;break}}b=-d.Bh*n;if(0<=b&&0<=a.je.k.y*b+c){this.Kn(a,d,e,b-g,-f);d.gc=b;e.gc=0;break}b=-e.Bh*c;if(0<=b&&0<=
a.je.m.x*b+n){this.Kn(a,d,e,-g,b-f);d.gc=0;e.gc=b;break}if(0<=n&&0<=c){this.Kn(a,d,e,-g,-f);d.gc=0;e.gc=0;break}break}};D.Ly=function(a,b){var c=a.sd.y,d=-a.sd.x,e=a.pg*b.gc,e=U.Cb(b.Og-b.MC*((a.T.u.x-a.T.H*b.Sb.y-a.S.u.x+a.S.H*b.Rb.y)*c+(a.T.u.y+a.T.H*b.Sb.x-a.S.u.y-a.S.H*b.Rb.x)*d),-e,e),g=e-b.Og,c=g*c,d=g*d;a.S.u.x-=a.S.M*c;a.S.u.y-=a.S.M*d;a.S.H-=a.S.X*(b.Rb.x*d-b.Rb.y*c);a.T.u.x+=a.T.M*c;a.T.u.y+=a.T.M*d;a.T.H+=a.T.X*(b.Sb.x*d-b.Sb.y*c);b.Og=e};D.Kn=function(a,b,c,d,e){var g=d*a.sd.x;d*=a.sd.y;
var f=e*a.sd.x;e*=a.sd.y;a.S.u.x-=a.S.M*(g+f);a.S.u.y-=a.S.M*(d+e);a.S.H-=a.S.X*(b.Rb.x*d-b.Rb.y*g+c.Rb.x*e-c.Rb.y*f);a.T.u.x+=a.T.M*(g+f);a.T.u.y+=a.T.M*(d+e);a.T.H+=a.T.X*(b.Sb.x*d-b.Sb.y*g+c.Sb.x*e-c.Sb.y*f);b.gc=0;c.gc=0};D.Zp=function(){for(var a=0;a<this.Bm;++a)for(var b=this.xg[a],c=b.PB,d=0;d<b.vf;++d){var e=c.pa[d],g=b.jc[d];e.Cj=g.gc;e.Gj=g.Og}};D.Ge=function(a){a===m&&(a=0);for(var b=0,c=0;c<this.Bm;c++){var d=this.xg[c],e=d.S,g=d.T,f=e.W*e.M,n=e.W*e.X,l=g.W*g.M,h=g.W*g.X;he.sc(d);for(var k=
he.ya,q=0;q<d.vf;q++){var t=d.jc[q],v=he.pa[q],w=he.gp[q],s=v.x-e.n.B.x,y=v.y-e.n.B.y,B=v.x-g.n.B.x,v=v.y-g.n.B.y,b=b<w?b:w,w=-t.Xz*U.Cb(a*(w+0.005),-0.2,0),t=w*k.x,w=w*k.y;e.n.B.x-=f*t;e.n.B.y-=f*w;e.n.R-=n*(s*w-y*t);e.Mb();g.n.B.x+=l*t;g.n.B.y+=l*w;g.n.R+=h*(B*w-v*t);g.Mb()}}return-0.0075<b};var ae=function(a,b){Fd.call(this,a,b)};O(ae,Fd);ae.prototype.Pc=function(a,b){Fd.prototype.Pc.call(this,a,b)};ae.prototype.cg=function(){this.Nb.Dc();this.Jb.Dc()};var Zd=function(a,b){Fd.call(this,a,b)};O(Zd,
Fd);Zd.prototype.Pc=function(a,b){Fd.prototype.Pc.call(this,a,b)};Zd.prototype.cg=function(){a:{var a=this.We,b=this.Nb.Dc(),c=this.Nb.Wa().C,d=this.Jb.Dc(),e=this.Jb.Wa().C;a.fc=0;for(var g=e.position.x+(e.q.k.x*d.nb.x+e.q.m.x*d.nb.y)-c.position.x,f=e.position.y+(e.q.k.y*d.nb.x+e.q.m.y*d.nb.y)-c.position.y,e=g*c.q.k.x+f*c.q.k.y,c=g*c.q.m.x+f*c.q.m.y,g=0,f=-Number.MAX_VALUE,n=b.cb+d.cb,l=0;l<b.Sa;++l){var h=b.Ga[l].x*(e-b.P[l].x)+b.Ga[l].y*(c-b.P[l].y);if(h>n)break a;h>f&&(f=h,g=l)}h=g+1;h>=b.Sa&&
(h=0);var l=b.P[g],k=b.P[h];f<Number.MIN_VALUE?(a.fc=1,a.eb=2,a.Yc.I(b.Ga[g]),a.Fa.x=0.5*(l.x+k.x),a.Fa.y=0.5*(l.y+k.y),a.pa[0].Fa.I(d.nb),a.pa[0].sf.Ti(0)):0>=(e-l.x)*(k.x-l.x)+(c-l.y)*(k.y-l.y)?(e-l.x)*(e-l.x)+(c-l.y)*(c-l.y)>n*n||(a.fc=1,a.eb=2,a.Yc.x=e-l.x,a.Yc.y=c-l.y,a.Yc.xd(),a.Fa.I(l),a.pa[0].Fa.I(d.nb),a.pa[0].sf.Ti(0)):0>=(e-k.x)*(l.x-k.x)+(c-k.y)*(l.y-k.y)?(e-k.x)*(e-k.x)+(c-k.y)*(c-k.y)>n*n||(a.fc=1,a.eb=2,a.Yc.x=e-k.x,a.Yc.y=c-k.y,a.Yc.xd(),a.Fa.I(k),a.pa[0].Fa.I(d.nb),a.pa[0].sf.Ti(0)):
(h=0.5*(l.x+k.x),l=0.5*(l.y+k.y),f=(e-h)*b.Ga[g].x+(c-l)*b.Ga[g].y,f>n||(a.fc=1,a.eb=2,a.Yc.x=b.Ga[g].x,a.Yc.y=b.Ga[g].y,a.Yc.xd(),a.Fa.J(h,l),a.pa[0].Fa.I(d.nb),a.pa[0].sf.Ti(0)))}};var be=function(a,b){Fd.call(this,a,b)};O(be,Fd);be.prototype.Pc=function(a,b){Fd.prototype.Pc.call(this,a,b)};be.prototype.cg=function(){this.Nb.Dc();this.Jb.Dc()};var $d=function(a,b){Fd.call(this,a,b)};O($d,Fd);$d.prototype.Pc=function(a,b){Fd.prototype.Pc.call(this,a,b)};$d.prototype.cg=function(){var a=this.We,b=
this.Nb.Dc(),c=this.Nb.Wa().C,d=this.Jb.Dc(),e=this.Jb.Wa().C;a.fc=0;var g=b.cb+d.cb,f=Kc(b,c,d,e),n=f.Ku;if(!(f.zp>g)){var l=Kc(d,e,b,c);if(!(l.zp>g)){var h=b,k=d,q=c,t=e,v=0;a.eb=2;l.zp>0.98*f.zp+0.001&&(h=d,k=b,q=e,t=c,n=l.Ku,a.eb=4,v=1);b=n;c=t;d=ie;b===m&&(b=0);for(var e=q.q.k.x*h.Ga[b].x+q.q.m.x*h.Ga[b].y,f=q.q.k.y*h.Ga[b].x+q.q.m.y*h.Ga[b].y,l=c.q.k.x*e+c.q.k.y*f,f=c.q.m.x*e+c.q.m.y*f,e=l,l=0,w=Number.MAX_VALUE,s=0;s<k.Sa;s++){var y=e*k.Ga[s].x+f*k.Ga[s].y;y<w&&(w=y,l=s)}e=l+1;e>=k.Sa&&(e=
0);d[0].$e.x=c.position.x+(c.q.k.x*k.P[l].x+c.q.m.x*k.P[l].y);d[0].$e.y=c.position.y+(c.q.k.y*k.P[l].x+c.q.m.y*k.P[l].y);d[0].id.mu(b);d[0].id.ku(l);d[0].id.lu(0);d[1].$e.x=c.position.x+(c.q.k.x*k.P[e].x+c.q.m.x*k.P[e].y);d[1].$e.y=c.position.y+(c.q.k.y*k.P[e].x+c.q.m.y*k.P[e].y);d[1].id.mu(b);d[1].id.ku(e);d[1].id.lu(1);b=h.P[n];n=n+1<h.Sa?h.P[n+1]:h.P[0];je.J(n.x-b.x,n.y-b.y);je.xd();ke.x=je.y;ke.y=-je.x;le.J(0.5*(b.x+n.x),0.5*(b.y+n.y));me.x=q.q.k.x*je.x+q.q.m.x*je.y;me.y=q.q.k.y*je.x+q.q.m.y*
je.y;ne.x=-me.x;ne.y=-me.y;oe.x=me.y;oe.y=-me.x;pe.x=q.position.x+(q.q.k.x*b.x+q.q.m.x*b.y);pe.y=q.position.y+(q.q.k.y*b.x+q.q.m.y*b.y);qe.x=q.position.x+(q.q.k.x*n.x+q.q.m.x*n.y);qe.y=q.position.y+(q.q.k.y*n.x+q.q.m.y*n.y);if(!(2>Ec(re,ie,ne,-me.x*pe.x-me.y*pe.y+g))&&!(2>Ec(se,re,me,me.x*qe.x+me.y*qe.y+g))){a.Yc.I(ke);a.Fa.I(le);q=oe.x*pe.x+oe.y*pe.y;for(h=n=0;2>h;++h)oe.x*se[h].$e.x+oe.y*se[h].$e.y-q<=g&&(b=se[h].$e.x-t.position.x,k=se[h].$e.y-t.position.y,a.pa[n].Fa.x=b*t.q.k.x+k*t.q.k.y,a.pa[n].Fa.y=
b*t.q.m.x+k*t.q.m.y,a.pa[n].sf.J(se[h].id),a.pa[n].sf.Fy(v),n++);a.fc=n}}}};var ue=function(){this.vd="Controller"+te++;this.Ta=r;this.Rc=new kd};ue.prototype.Wg=x();ue.prototype.Tj=function(a){this.Rc.Tj(a);a.al(this)};ue.prototype.sl=function(a){this.Rc.sl(a);a.tl(this)};ue.prototype.tn=function(){for(var a=this.Rc.Pa(jd);a;a=a.next)this.sl(a.body)};var te=0,ve=function(){ue.call(this);this.sd=R.A(0,-1);this.Kf=this.offset=0;this.Jx=R.A(0,0);this.pB=2;this.kz=1;this.ZE=u;this.WC=p;this.Bv=r};O(ve,
ue);ve.prototype.Wg=function(){this.WC&&(this.Bv=this.Ta.ms.rc());for(var a=this.Rc.Pa(od);a;a=a.next){for(var b=a.body,c=R.A(0,0),d=R.A(0,0),e=0,g=0,f=b.aq().Pa();f;f=f.next){var n=R.A(0,0),l=f.lf.Dc().vn(this.sd,this.offset,b.ie(),n),e=e+l;c.x+=l*n.x;c.y+=l*n.y;var h=0,h=1,g=g+l*h;d.x+=l*n.x*h;d.y+=l*n.y*h}e<Number.MIN_VALUE||(c.x/=e,c.y/=e,d.x/=g,d.y/=g,g=this.Bv.Qh(),g.wd(this.Kf*e),b.ag(g,d),g=b.ey(c),g.vq(this.Jx),g.wd(-this.pB*e),b.ag(g,c),b.rn(-b.qf/b.W*e*b.Bn()*this.kz),R.Nc(c),R.Nc(d))}};
var we=function(){ue.call(this);this.Ct=R.A(0,0)};O(we,ue);we.prototype.Wg=function(a){a=R.A(this.Ct.x*a.Da,this.Ct.y*a.Da);for(var b=this.Rc.Pa(od);b;b=b.next){var c=b.body,d=c.Oi();c.Ui(R.A(d.x+a.x,d.y+a.y))}R.Nc(a)};var xe=function(){ue.call(this);this.ay=R.A(0,0)};O(xe,ue);xe.prototype.Wg=function(){for(var a=this.Rc.Pa(od);a;a=a.next){var b=a.body;b.ag(this.ay,b.Xj())}};var gd=function(){this.Kq=this.Jq=r;this.Wn={};this.Yu=0};gd.prototype.Pa=A("Jq");gd.prototype.al=function(a){var b=a.vd;if(this.Wn[b]==
r){a=new ye(a);var c=this.Kq;c!=r?c.Gf(a):this.Jq=a;a.Hf(c);this.Kq=a;this.Wn[b]=a;this.Yu++}};gd.prototype.tl=function(a){a=a.vd;var b=this.Wn[a];if(b!=r){var c=b.wf,b=b.next;c==r?this.Jq=b:c.Gf(b);b==r?this.Kq=c:b.Hf(c);delete this.Wn[a];this.Yu--}};var ye=function(a){this.Xu=a;this.wf=this.next=r};ye.prototype.Gf=aa("next");ye.prototype.Hf=aa("wf");var ze=function(){ue.call(this);this.Lt=1;this.fB=p};O(ze,ue);ze.prototype.Wg=function(){var a=r,b=r,c=0,d=r,e=r,g=0,f=0,n=0,g=r;if(this.fB)for(var l=
this.Rc.Pa(jd);l;l=l.next)for(var a=l.body,b=a.Xj(),c=a.W,h=this.Rc.Pa(jd);h;h=h.next){if(d=h.body,a.kd()||d.kd())e=d.Xj(),g=e.x-b.x,f=e.y-b.y,n=g*g+f*f,n<Number.MIN_VALUE||(g=R.A(g,f),g.wd(this.Lt/n/Math.sqrt(n)*c*d.W),a.kd()&&a.ag(g,b),g.wd(-1),d.kd()&&d.ag(g,e),R.Nc(g))}else for(l=this.Rc.Pa(jd);l;l=l.next){a=bodyNode.body;b=a.Xj();c=a.W;for(h=this.Rc.Pa(jd);h;h=h.next)if(d=bodyNode.body,a.kd()||d.kd())e=d.Xj(),g=e.x-b.x,f=e.y-b.y,n=g*g+f*f,n<Number.MIN_VALUE||(g=R.A(g,f),g.wd(this.Lt/n*c*d.W),
a.kd()&&a.ag(g,b),g.wd(-1),d.kd()&&d.ag(g,e),R.Nc(g))}};var Ae=function(){ue.call(this);this.Ny=new T;this.ys=0};O(Ae,ue);Ae.prototype.Wg=function(a){a=a.Da;if(!(a<=Number.MIN_VALUE)){a>this.ys&&0<this.ys&&(a=this.ys);for(var b=this.Rc.Pa(od);b;b=b.next){var c=b.body,d=c.dq(U.$b(this.Ny,c.cq(c.Oi())));c.Ui(R.A(c.Oi().x+d.x*a,c.Oi().y+d.y*a))}}};var Z=function(a){this.Jd=new Be;this.Kd=new Be;this.Ag=R.A(0,0);this.Bg=R.A(0,0);this.eb=a.type;this.ni=this.Ek=r;this.$=a.S;this.aa=a.T;this.cw=a.Hq};Z.prototype.Oc=
A("eb");Z.prototype.hl=A("$");Z.prototype.$p=A("aa");Z.prototype.Rh=function(){return this.$.Rh()&&this.aa.Rh()};Z.bf=function(a){return a.bf()};Z.prototype.cf=x();Z.prototype.He=x();Z.prototype.Zp=x();Z.prototype.Ge=da(u);Z.Tz=0;Z.Vq=1;Z.Rz=2;Z.Uq=3;Z.Sz=4;Z.rE=5;Z.Pz=6;Z.Qz=7;Z.Uz=8;Z.Oz=9;Z.Ed=0;Z.lg=1;Z.Uc=2;Z.bi=3;var Ce=function(){this.type=Z.Tz;this.T=this.S=r;this.Hq=u},Be=x(),De=function(a){Z.call(this,a);this.ja=R.A(0,0);this.ka=R.A(0,0);this.zc=R.A(0,0);this.ja.I(a.Xb);this.ka.I(a.Yb);
this.ns=a.length;this.ks=a.po;this.wB=a.$n;this.bw=this.Bj=this.D=0};O(De,Z);De.prototype.cf=function(a){var b,c=0,d=this.$,e=this.aa;b=d.C.q;var g=this.ja.x-d.n.V.x,f=this.ja.y-d.n.V.y,c=b.k.x*g+b.m.x*f,f=b.k.y*g+b.m.y*f,g=c;b=e.C.q;var n=this.ka.x-e.n.V.x,l=this.ka.y-e.n.V.y,c=b.k.x*n+b.m.x*l,l=b.k.y*n+b.m.y*l,n=c;this.zc.x=e.n.B.x+n-d.n.B.x-g;this.zc.y=e.n.B.y+l-d.n.B.y-f;c=Math.sqrt(this.zc.x*this.zc.x+this.zc.y*this.zc.y);0.005<c?this.zc.wd(1/c):this.zc.la();b=g*this.zc.y-f*this.zc.x;var h=n*
this.zc.y-l*this.zc.x;b=d.M+d.X*b*b+e.M+e.X*h*h;this.W=0!=b?1/b:0;if(0<this.ks){var c=c-this.ns,h=2*Math.PI*this.ks,k=this.W*h*h;this.Bj=a.Da*(2*this.W*this.wB*h+a.Da*k);this.Bj=0!=this.Bj?1/this.Bj:0;this.bw=c*a.Da*k*this.Bj;this.W=b+this.Bj;this.W=0!=this.W?1/this.W:0}a.Lh?(this.D*=a.uc,a=this.D*this.zc.x,b=this.D*this.zc.y,d.u.x-=d.M*a,d.u.y-=d.M*b,d.H-=d.X*(g*b-f*a),e.u.x+=e.M*a,e.u.y+=e.M*b,e.H+=e.X*(n*b-l*a)):this.D=0};De.prototype.He=function(){var a=this.ja.x-this.$.n.V.x,b=this.ja.y-this.$.n.V.y,
c=this.$.C.q.k.x*a+this.$.C.q.m.x*b,b=this.$.C.q.k.y*a+this.$.C.q.m.y*b,a=c,d=this.ka.x-this.aa.n.V.x,e=this.ka.y-this.aa.n.V.y,c=this.aa.C.q.k.x*d+this.aa.C.q.m.x*e,e=this.aa.C.q.k.y*d+this.aa.C.q.m.y*e,d=c,g=-this.W*(this.zc.x*(this.aa.u.x-this.aa.H*e-(this.$.u.x-this.$.H*b))+this.zc.y*(this.aa.u.y+this.aa.H*d-(this.$.u.y+this.$.H*a))+this.bw+this.Bj*this.D);this.D+=g;c=g*this.zc.x;g*=this.zc.y;this.$.u.x-=this.$.M*c;this.$.u.y-=this.$.M*g;this.$.H-=this.$.X*(a*g-b*c);this.aa.u.x+=this.aa.M*c;this.aa.u.y+=
this.aa.M*g;this.aa.H+=this.aa.X*(d*g-e*c)};De.prototype.Ge=function(){if(0<this.ks)return p;var a=this.ja.x-this.$.n.V.x,b=this.ja.y-this.$.n.V.y,c=this.$.C.q.k.x*a+this.$.C.q.m.x*b,b=this.$.C.q.k.y*a+this.$.C.q.m.y*b,a=c,d=this.ka.x-this.aa.n.V.x,e=this.ka.y-this.aa.n.V.y,c=this.aa.C.q.k.x*d+this.aa.C.q.m.x*e,e=this.aa.C.q.k.y*d+this.aa.C.q.m.y*e,d=c,g=this.aa.n.B.x+d-this.$.n.B.x-a,f=this.aa.n.B.y+e-this.$.n.B.y-b,n=Math.sqrt(g*g+f*f),c=U.Cb(n-this.ns,-0.2,0.2),l=-this.W*c;this.zc.J(g/n,f/n);g=
l*this.zc.x;l*=this.zc.y;this.$.n.B.x-=this.$.M*g;this.$.n.B.y-=this.$.M*l;this.$.n.R-=this.$.X*(a*l-b*g);this.aa.n.B.x+=this.aa.M*g;this.aa.n.B.y+=this.aa.M*l;this.aa.n.R+=this.aa.X*(d*l-e*g);this.$.Mb();this.aa.Mb();return 0.005>Math.abs(c)};var mc=function(){Ce.call(this);this.Xb=R.A(0,0);this.Yb=R.A(0,0);this.type=Z.Uq;this.length=1;this.$n=this.po=0};O(mc,Ce);mc.prototype.sc=function(a,b,c,d){this.S=a;this.T=b;this.Xb.I(this.S.he(c));this.Yb.I(this.T.he(d));a=d.x-c.x;c=d.y-c.y;this.length=Math.sqrt(a*
a+c*c);this.$n=this.po=0};mc.prototype.bf=function(){return new De(this)};var Ee=function(a){Z.call(this,a);this.Te=R.A(0,0);this.Ue=R.A(0,0);this.rs=new T;this.Se=R.A(0,0);this.Te.I(a.Xb);this.Ue.I(a.Yb);this.rs.la();this.zm=0;this.Se.la();this.qh=0;this.IB=a.QB;this.KB=a.SB};O(Ee,Z);Ee.prototype.cf=function(a){var b,c=0,d=this.$,e=this.aa;b=d.C.q;var g=this.Te.x-d.n.V.x,f=this.Te.y-d.n.V.y,c=b.k.x*g+b.m.x*f,f=b.k.y*g+b.m.y*f,g=c;b=e.C.q;var n=this.Ue.x-e.n.V.x,l=this.Ue.y-e.n.V.y,c=b.k.x*n+b.m.x*
l,l=b.k.y*n+b.m.y*l,n=c;b=d.M;var c=e.M,h=d.X,k=e.X,q=new T;q.k.x=b+c;q.m.x=0;q.k.y=0;q.m.y=b+c;q.k.x+=h*f*f;q.m.x+=-h*g*f;q.k.y+=-h*g*f;q.m.y+=h*g*g;q.k.x+=k*l*l;q.m.x+=-k*n*l;q.k.y+=-k*n*l;q.m.y+=k*n*n;q.bq(this.rs);this.zm=h+k;0<this.zm&&(this.zm=1/this.zm);a.Lh?(this.Se.x*=a.uc,this.Se.y*=a.uc,this.qh*=a.uc,a=this.Se,d.u.x-=b*a.x,d.u.y-=b*a.y,d.H-=h*(g*a.y-f*a.x+this.qh),e.u.x+=c*a.x,e.u.y+=c*a.y,e.H+=k*(n*a.y-l*a.x+this.qh)):(this.Se.la(),this.qh=0)};Ee.prototype.He=function(a){var b,c=0,d=this.$,
e=this.aa,g=d.u,f=d.H,n=e.u,l=e.H,h=d.M,k=e.M,q=d.X,t=e.X;b=d.C.q;var v=this.Te.x-d.n.V.x,w=this.Te.y-d.n.V.y,c=b.k.x*v+b.m.x*w,w=b.k.y*v+b.m.y*w,v=c;b=e.C.q;var s=this.Ue.x-e.n.V.x,y=this.Ue.y-e.n.V.y,c=b.k.x*s+b.m.x*y,y=b.k.y*s+b.m.y*y,s=c;b=0;var c=-this.zm*(l-f),B=this.qh;b=a.Da*this.KB;this.qh=U.Cb(this.qh+c,-b,b);c=this.qh-B;f-=q*c;l+=t*c;b=U.$b(this.rs,R.A(-(n.x-l*y-g.x+f*w),-(n.y+l*s-g.y-f*v)));c=this.Se.rc();this.Se.Tg(b);b=a.Da*this.IB;this.Se.Hn()>b*b&&(this.Se.xd(),this.Se.wd(b));b=U.zb(this.Se,
c);g.x-=h*b.x;g.y-=h*b.y;f-=q*(v*b.y-w*b.x);n.x+=k*b.x;n.y+=k*b.y;l+=t*(s*b.y-y*b.x);d.H=f;e.H=l};Ee.prototype.Ge=da(p);var Fe=function(){Ce.call(this);this.Xb=R.A(0,0);this.Yb=R.A(0,0);this.type=Z.Oz;this.SB=this.QB=0};O(Fe,Ce);Fe.prototype.sc=function(a,b,c){this.S=a;this.T=b;this.Xb.I(this.S.he(c));this.Yb.I(this.T.he(c))};Fe.prototype.bf=function(){return new Ee(this)};var He=function(a){Z.call(this,a);this.wh=R.A(0,0);this.xh=R.A(0,0);this.ja=R.A(0,0);this.ka=R.A(0,0);this.Ib=new Ge;var b=a.sk.eb,
c=a.tk.eb;this.Gk=this.Fj=this.Fk=this.Ej=r;var d=0,e=0;this.zB=a.sk.hl();this.$=a.sk.$p();b==Z.Vq?(this.Ej=a.sk,this.wh.I(this.Ej.ja),this.ja.I(this.Ej.ka),d=this.Ej.Cn()):(this.Fk=a.sk,this.wh.I(this.Fk.ja),this.ja.I(this.Fk.ka),d=this.Fk.jl());this.AB=a.tk.hl();this.aa=a.tk.$p();c==Z.Vq?(this.Fj=a.tk,this.xh.I(this.Fj.ja),this.ka.I(this.Fj.ka),e=this.Fj.Cn()):(this.Gk=a.tk,this.xh.I(this.Gk.ja),this.ka.I(this.Gk.ka),e=this.Gk.jl());this.Qb=a.Ce;this.Dk=d+this.Qb*e;this.D=0};O(He,Z);He.prototype.cf=
function(a){var b=this.zB,c=this.AB,d=this.$,e=this.aa,g=0,f=0,n=0,l=0,h=n=0,k=0;this.Ib.la();this.Ej?(this.Ib.Xi=-1,k+=d.X):(b=b.C.q,f=this.Fk.Yd,g=b.k.x*f.x+b.m.x*f.y,f=b.k.y*f.x+b.m.y*f.y,b=d.C.q,n=this.ja.x-d.n.V.x,l=this.ja.y-d.n.V.y,h=b.k.x*n+b.m.x*l,l=b.k.y*n+b.m.y*l,n=h*f-l*g,this.Ib.Qf.J(-g,-f),this.Ib.Xi=-n,k+=d.M+d.X*n*n);this.Fj?(this.Ib.Yi=-this.Qb,k+=this.Qb*this.Qb*e.X):(b=c.C.q,f=this.Gk.Yd,g=b.k.x*f.x+b.m.x*f.y,f=b.k.y*f.x+b.m.y*f.y,b=e.C.q,n=this.ka.x-e.n.V.x,l=this.ka.y-e.n.V.y,
h=b.k.x*n+b.m.x*l,l=b.k.y*n+b.m.y*l,n=h*f-l*g,this.Ib.Rf.J(-this.Qb*g,-this.Qb*f),this.Ib.Yi=-this.Qb*n,k+=this.Qb*this.Qb*(e.M+e.X*n*n));this.W=0<k?1/k:0;a.Lh?(d.u.x+=d.M*this.D*this.Ib.Qf.x,d.u.y+=d.M*this.D*this.Ib.Qf.y,d.H+=d.X*this.D*this.Ib.Xi,e.u.x+=e.M*this.D*this.Ib.Rf.x,e.u.y+=e.M*this.D*this.Ib.Rf.y,e.H+=e.X*this.D*this.Ib.Yi):this.D=0};He.prototype.He=function(){var a=this.$,b=this.aa,c=-this.W*this.Ib.Vx(a.u,a.H,b.u,b.H);this.D+=c;a.u.x+=a.M*c*this.Ib.Qf.x;a.u.y+=a.M*c*this.Ib.Qf.y;a.H+=
a.X*c*this.Ib.Xi;b.u.x+=b.M*c*this.Ib.Rf.x;b.u.y+=b.M*c*this.Ib.Rf.y;b.H+=b.X*c*this.Ib.Yi};He.prototype.Ge=function(){var a=this.$,b=this.aa,c=0,d=0,c=this.Ej?this.Ej.Cn():this.Fk.jl(),d=this.Fj?this.Fj.Cn():this.Gk.jl(),c=-this.W*(this.Dk-(c+this.Qb*d));a.n.B.x+=a.M*c*this.Ib.Qf.x;a.n.B.y+=a.M*c*this.Ib.Qf.y;a.n.R+=a.X*c*this.Ib.Xi;b.n.B.x+=b.M*c*this.Ib.Rf.x;b.n.B.y+=b.M*c*this.Ib.Rf.y;b.n.R+=b.X*c*this.Ib.Yi;a.Mb();b.Mb();return p};var Ie=function(){Ce.call(this);this.type=Z.Pz;this.tk=this.sk=
r;this.Ce=1};O(Ie,Ce);Ie.prototype.sc=function(a,b,c){this.sk=a;this.S=a.hl();this.tk=b;this.T=b.hl();this.Ce=c};Ie.prototype.bf=function(){return new He(this)};var Ge=function(){this.Qf=R.A(0,0);this.Rf=R.A(0,0)};Ge.prototype.la=function(){this.Qf.la();this.Xi=0;this.Rf.la();this.Yi=0};Ge.prototype.J=function(a,b,c,d){b===m&&(b=0);d===m&&(d=0);this.Qf.I(a);this.Xi=b;this.Rf.I(c);this.Yi=d};Ge.prototype.Vx=function(a,b,c,d){b===m&&(b=0);d===m&&(d=0);return this.Qf.x*a.x+this.Qf.y*a.y+this.Xi*b+(this.Rf.x*
c.x+this.Rf.y*c.y)+this.Yi*d};var Je=function(a){Z.call(this,a);this.ja=R.A(0,0);this.ka=R.A(0,0);this.Yd=R.A(0,0);this.yh=R.A(0,0);this.Y=R.A(0,0);this.ma=R.A(0,0);this.fa=new T;this.D=R.A(0,0);this.ja.I(a.Xb);this.ka.I(a.Yb);this.Yd.I(a.wj);this.yh.x=-this.Yd.y;this.yh.y=this.Yd.x;this.D.la();this.Ra=this.Ld=0;this.Ve=a.ds;this.Xe=a.tt;this.ss=a.xs;this.Fm=a.Lm;this.Tf=a.ik;this.mi=a.Nl;this.Ja=Z.Ed;this.Y.la();this.ma.la()};O(Je,Z);Je.prototype.jl=function(){var a=this.$,b=this.aa,c=a.Fn(this.ja),
d=b.Fn(this.ka),b=d.x-c.x,c=d.y-c.y,a=a.dq(this.Yd);return a.x*b+a.y*c};Je.prototype.cf=function(a){var b=this.$,c=this.aa,d,e=0;this.Ag.I(b.Pi());this.Bg.I(c.Pi());var g=b.ie();c.ie();d=b.C.q;var f=this.ja.x-this.Ag.x,n=this.ja.y-this.Ag.y,e=d.k.x*f+d.m.x*n,n=d.k.y*f+d.m.y*n,f=e;d=c.C.q;var l=this.ka.x-this.Bg.x,h=this.ka.y-this.Bg.y,e=d.k.x*l+d.m.x*h,h=d.k.y*l+d.m.y*h,l=e;d=c.n.B.x+l-b.n.B.x-f;e=c.n.B.y+h-b.n.B.y-n;this.Ob=b.M;this.Pb=c.M;this.pd=b.X;this.qd=c.X;this.Y.I(U.$b(g.q,this.Yd));this.fb=
(d+f)*this.Y.y-(e+n)*this.Y.x;this.gb=l*this.Y.y-h*this.Y.x;this.Ld=this.Ob+this.Pb+this.pd*this.fb*this.fb+this.qd*this.gb*this.gb;this.Ld=this.Ld>Number.MIN_VALUE?1/this.Ld:0;this.ma.I(U.$b(g.q,this.yh));this.jb=(d+f)*this.ma.y-(e+n)*this.ma.x;this.kb=l*this.ma.y-h*this.ma.x;g=this.Ob;f=this.Pb;n=this.pd;l=this.qd;this.fa.k.x=g+f+n*this.jb*this.jb+l*this.kb*this.kb;this.fa.k.y=n*this.jb*this.fb+l*this.kb*this.gb;this.fa.m.x=this.fa.k.y;this.fa.m.y=g+f+n*this.fb*this.fb+l*this.gb*this.gb;this.Tf?
(d=this.Y.x*d+this.Y.y*e,0.01>Math.abs(this.Xe-this.Ve)?this.Ja=Z.bi:d<=this.Ve?this.Ja!=Z.lg&&(this.Ja=Z.lg,this.D.y=0):d>=this.Xe?this.Ja!=Z.Uc&&(this.Ja=Z.Uc,this.D.y=0):(this.Ja=Z.Ed,this.D.y=0)):this.Ja=Z.Ed;this.mi==u&&(this.Ra=0);a.Lh?(this.D.x*=a.uc,this.D.y*=a.uc,this.Ra*=a.uc,a=this.D.x*this.ma.x+(this.Ra+this.D.y)*this.Y.x,d=this.D.x*this.ma.y+(this.Ra+this.D.y)*this.Y.y,e=this.D.x*this.jb+(this.Ra+this.D.y)*this.fb,g=this.D.x*this.kb+(this.Ra+this.D.y)*this.gb,b.u.x-=this.Ob*a,b.u.y-=
this.Ob*d,b.H-=this.pd*e,c.u.x+=this.Pb*a,c.u.y+=this.Pb*d,c.H+=this.qd*g):(this.D.la(),this.Ra=0)};Je.prototype.He=function(a){var b=this.$,c=this.aa,d=b.u,e=b.H,g=c.u,f=c.H,n=0,l=0,h=0,k=0;this.mi&&this.Ja!=Z.bi&&(k=this.Ld*(this.Fm-(this.Y.x*(g.x-d.x)+this.Y.y*(g.y-d.y)+this.gb*f-this.fb*e)),n=this.Ra,l=a.Da*this.ss,this.Ra=U.Cb(this.Ra+k,-l,l),k=this.Ra-n,n=k*this.Y.x,l=k*this.Y.y,h=k*this.fb,k*=this.gb,d.x-=this.Ob*n,d.y-=this.Ob*l,e-=this.pd*h,g.x+=this.Pb*n,g.y+=this.Pb*l,f+=this.qd*k);l=this.ma.x*
(g.x-d.x)+this.ma.y*(g.y-d.y)+this.kb*f-this.jb*e;this.Tf&&this.Ja!=Z.Ed?(h=this.Y.x*(g.x-d.x)+this.Y.y*(g.y-d.y)+this.gb*f-this.fb*e,n=this.D.rc(),a=this.fa.Uh(R.A(0,0),-l,-h),this.D.Tg(a),this.Ja==Z.lg?this.D.y=Math.max(this.D.y,0):this.Ja==Z.Uc&&(this.D.y=Math.min(this.D.y,0)),l=-l-(this.D.y-n.y)*this.fa.m.x,h=0,h=0!=this.fa.k.x?l/this.fa.k.x+n.x:n.x,this.D.x=h,a.x=this.D.x-n.x,a.y=this.D.y-n.y,n=a.x*this.ma.x+a.y*this.Y.x,l=a.x*this.ma.y+a.y*this.Y.y,h=a.x*this.jb+a.y*this.fb,k=a.x*this.kb+a.y*
this.gb):(a=0,a=0!=this.fa.k.x?-l/this.fa.k.x:0,this.D.x+=a,n=a*this.ma.x,l=a*this.ma.y,h=a*this.jb,k=a*this.kb);d.x-=this.Ob*n;d.y-=this.Ob*l;e-=this.pd*h;g.x+=this.Pb*n;g.y+=this.Pb*l;f+=this.qd*k;b.u.I(d);b.H=e;c.u.I(g);c.H=f};Je.prototype.Ge=function(){var a=this.$,b=this.aa,c=a.n.B,d=a.n.R,e=b.n.B,g=b.n.R,f,n=0,l=0,h=0,k=0,q=f=0,t=0,l=u,v=0,w=T.Wj(d),h=T.Wj(g);f=w;var t=this.ja.x-this.Ag.x,s=this.ja.y-this.Ag.y,n=f.k.x*t+f.m.x*s,s=f.k.y*t+f.m.y*s,t=n;f=h;h=this.ka.x-this.Bg.x;k=this.ka.y-this.Bg.y;
n=f.k.x*h+f.m.x*k;k=f.k.y*h+f.m.y*k;h=n;f=e.x+h-c.x-t;n=e.y+k-c.y-s;if(this.Tf){this.Y=U.$b(w,this.Yd);this.fb=(f+t)*this.Y.y-(n+s)*this.Y.x;this.gb=h*this.Y.y-k*this.Y.x;var y=this.Y.x*f+this.Y.y*n;0.01>Math.abs(this.Xe-this.Ve)?(v=U.Cb(y,-0.2,0.2),q=Math.abs(y),l=p):y<=this.Ve?(v=U.Cb(y-this.Ve+0.005,-0.2,0),q=this.Ve-y,l=p):y>=this.Xe&&(v=U.Cb(y-this.Xe+0.005,0,0.2),q=y-this.Xe,l=p)}this.ma=U.$b(w,this.yh);this.jb=(f+t)*this.ma.y-(n+s)*this.ma.x;this.kb=h*this.ma.y-k*this.ma.x;w=R.A(0,0);s=this.ma.x*
f+this.ma.y*n;q=Math.max(q,Math.abs(s));t=0;l?(l=this.Ob,h=this.Pb,k=this.pd,f=this.qd,this.fa.k.x=l+h+k*this.jb*this.jb+f*this.kb*this.kb,this.fa.k.y=k*this.jb*this.fb+f*this.kb*this.gb,this.fa.m.x=this.fa.k.y,this.fa.m.y=l+h+k*this.fb*this.fb+f*this.gb*this.gb,this.fa.Uh(w,-s,-v)):(l=this.Ob,h=this.Pb,k=this.pd,f=this.qd,v=l+h+k*this.jb*this.jb+f*this.kb*this.kb,w.x=0!=v?-s/v:0,w.y=0);v=w.x*this.ma.x+w.y*this.Y.x;l=w.x*this.ma.y+w.y*this.Y.y;s=w.x*this.jb+w.y*this.fb;w=w.x*this.kb+w.y*this.gb;c.x-=
this.Ob*v;c.y-=this.Ob*l;d-=this.pd*s;e.x+=this.Pb*v;e.y+=this.Pb*l;g+=this.qd*w;a.n.R=d;b.n.R=g;a.Mb();b.Mb();return 0.005>=q&&t<=nc};var Ke=function(){Ce.call(this);this.Xb=R.A(0,0);this.Yb=R.A(0,0);this.wj=R.A(0,0);this.type=Z.Qz;this.wj.J(1,0);this.ik=u;this.tt=this.ds=0;this.Nl=u;this.Lm=this.xs=0};O(Ke,Ce);Ke.prototype.sc=function(a,b,c,d){this.S=a;this.T=b;this.Xb=this.S.he(c);this.Yb=this.T.he(c);this.wj=this.S.cq(d)};Ke.prototype.bf=function(){return new Je(this)};var Le=function(a){Z.call(this,
a);this.ja=R.A(0,0);this.ka=R.A(0,0);this.Yd=R.A(0,0);this.yh=R.A(0,0);this.Y=R.A(0,0);this.ma=R.A(0,0);this.fa=new uc;this.D=new tc(0,0,0);this.ja.I(a.Xb);this.ka.I(a.Yb);this.Yd.I(a.wj);this.yh.x=-this.Yd.y;this.yh.y=this.Yd.x;this.LB=a.wi;this.D.la();this.Ra=this.Ld=0;this.Ve=a.ds;this.Xe=a.tt;this.ss=a.xs;this.Fm=a.Lm;this.Tf=a.ik;this.mi=a.Nl;this.Ja=Z.Ed;this.Y.la();this.ma.la()};O(Le,Z);Le.prototype.jl=function(){var a=this.$,b=this.aa,c=a.Fn(this.ja),d=b.Fn(this.ka),b=d.x-c.x,c=d.y-c.y,a=
a.dq(this.Yd);return a.x*b+a.y*c};Le.prototype.cf=function(a){var b=this.$,c=this.aa,d,e=0;this.Ag.I(b.Pi());this.Bg.I(c.Pi());var g=b.ie();c.ie();d=b.C.q;var f=this.ja.x-this.Ag.x,n=this.ja.y-this.Ag.y,e=d.k.x*f+d.m.x*n,n=d.k.y*f+d.m.y*n,f=e;d=c.C.q;var l=this.ka.x-this.Bg.x,h=this.ka.y-this.Bg.y,e=d.k.x*l+d.m.x*h,h=d.k.y*l+d.m.y*h,l=e;d=c.n.B.x+l-b.n.B.x-f;e=c.n.B.y+h-b.n.B.y-n;this.Ob=b.M;this.Pb=c.M;this.pd=b.X;this.qd=c.X;this.Y.I(U.$b(g.q,this.Yd));this.fb=(d+f)*this.Y.y-(e+n)*this.Y.x;this.gb=
l*this.Y.y-h*this.Y.x;this.Ld=this.Ob+this.Pb+this.pd*this.fb*this.fb+this.qd*this.gb*this.gb;this.Ld>Number.MIN_VALUE&&(this.Ld=1/this.Ld);this.ma.I(U.$b(g.q,this.yh));this.jb=(d+f)*this.ma.y-(e+n)*this.ma.x;this.kb=l*this.ma.y-h*this.ma.x;g=this.Ob;f=this.Pb;n=this.pd;l=this.qd;this.fa.k.x=g+f+n*this.jb*this.jb+l*this.kb*this.kb;this.fa.k.y=n*this.jb+l*this.kb;this.fa.k.N=n*this.jb*this.fb+l*this.kb*this.gb;this.fa.m.x=this.fa.k.y;this.fa.m.y=n+l;this.fa.m.N=n*this.fb+l*this.gb;this.fa.Ba.x=this.fa.k.N;
this.fa.Ba.y=this.fa.m.N;this.fa.Ba.N=g+f+n*this.fb*this.fb+l*this.gb*this.gb;this.Tf?(d=this.Y.x*d+this.Y.y*e,0.01>Math.abs(this.Xe-this.Ve)?this.Ja=Z.bi:d<=this.Ve?this.Ja!=Z.lg&&(this.Ja=Z.lg,this.D.N=0):d>=this.Xe?this.Ja!=Z.Uc&&(this.Ja=Z.Uc,this.D.N=0):(this.Ja=Z.Ed,this.D.N=0)):this.Ja=Z.Ed;this.mi==u&&(this.Ra=0);a.Lh?(this.D.x*=a.uc,this.D.y*=a.uc,this.Ra*=a.uc,a=this.D.x*this.ma.x+(this.Ra+this.D.N)*this.Y.x,d=this.D.x*this.ma.y+(this.Ra+this.D.N)*this.Y.y,e=this.D.x*this.jb+this.D.y+(this.Ra+
this.D.N)*this.fb,g=this.D.x*this.kb+this.D.y+(this.Ra+this.D.N)*this.gb,b.u.x-=this.Ob*a,b.u.y-=this.Ob*d,b.H-=this.pd*e,c.u.x+=this.Pb*a,c.u.y+=this.Pb*d,c.H+=this.qd*g):(this.D.la(),this.Ra=0)};Le.prototype.He=function(a){var b=this.$,c=this.aa,d=b.u,e=b.H,g=c.u,f=c.H,n=0,l=0,h=0,k=0;this.mi&&this.Ja!=Z.bi&&(k=this.Ld*(this.Fm-(this.Y.x*(g.x-d.x)+this.Y.y*(g.y-d.y)+this.gb*f-this.fb*e)),n=this.Ra,a=a.Da*this.ss,this.Ra=U.Cb(this.Ra+k,-a,a),k=this.Ra-n,n=k*this.Y.x,l=k*this.Y.y,h=k*this.fb,k*=this.gb,
d.x-=this.Ob*n,d.y-=this.Ob*l,e-=this.pd*h,g.x+=this.Pb*n,g.y+=this.Pb*l,f+=this.qd*k);h=this.ma.x*(g.x-d.x)+this.ma.y*(g.y-d.y)+this.kb*f-this.jb*e;l=f-e;this.Tf&&this.Ja!=Z.Ed?(a=this.Y.x*(g.x-d.x)+this.Y.y*(g.y-d.y)+this.gb*f-this.fb*e,n=this.D.rc(),a=this.fa.Bl(new tc(0,0,0),-h,-l,-a),this.D.Tg(a),this.Ja==Z.lg?this.D.N=Math.max(this.D.N,0):this.Ja==Z.Uc&&(this.D.N=Math.min(this.D.N,0)),h=-h-(this.D.N-n.N)*this.fa.Ba.x,l=-l-(this.D.N-n.N)*this.fa.Ba.y,l=this.fa.ak(R.A(0,0),h,l),l.x+=n.x,l.y+=
n.y,this.D.x=l.x,this.D.y=l.y,a.x=this.D.x-n.x,a.y=this.D.y-n.y,a.N=this.D.N-n.N,n=a.x*this.ma.x+a.N*this.Y.x,l=a.x*this.ma.y+a.N*this.Y.y,h=a.x*this.jb+a.y+a.N*this.fb,k=a.x*this.kb+a.y+a.N*this.gb):(a=this.fa.ak(R.A(0,0),-h,-l),this.D.x+=a.x,this.D.y+=a.y,n=a.x*this.ma.x,l=a.x*this.ma.y,h=a.x*this.jb+a.y,k=a.x*this.kb+a.y);d.x-=this.Ob*n;d.y-=this.Ob*l;e-=this.pd*h;g.x+=this.Pb*n;g.y+=this.Pb*l;f+=this.qd*k;b.u.I(d);b.H=e;c.u.I(g);c.H=f};Le.prototype.Ge=function(){var a=this.$,b=this.aa,c=a.n.B,
d=a.n.R,e=b.n.B,g=b.n.R,f,n=0,l=0,h=0,k=n=f=0,q=0,l=u,t=0,v=T.Wj(d),w=T.Wj(g);f=v;var q=this.ja.x-this.Ag.x,s=this.ja.y-this.Ag.y,n=f.k.x*q+f.m.x*s,s=f.k.y*q+f.m.y*s,q=n;f=w;w=this.ka.x-this.Bg.x;h=this.ka.y-this.Bg.y;n=f.k.x*w+f.m.x*h;h=f.k.y*w+f.m.y*h;w=n;f=e.x+w-c.x-q;n=e.y+h-c.y-s;if(this.Tf){this.Y=U.$b(v,this.Yd);this.fb=(f+q)*this.Y.y-(n+s)*this.Y.x;this.gb=w*this.Y.y-h*this.Y.x;var y=this.Y.x*f+this.Y.y*n;0.01>Math.abs(this.Xe-this.Ve)?(t=U.Cb(y,-0.2,0.2),k=Math.abs(y),l=p):y<=this.Ve?(t=
U.Cb(y-this.Ve+0.005,-0.2,0),k=this.Ve-y,l=p):y>=this.Xe&&(t=U.Cb(y-this.Xe+0.005,0,0.2),k=y-this.Xe,l=p)}this.ma=U.$b(v,this.yh);this.jb=(f+q)*this.ma.y-(n+s)*this.ma.x;this.kb=w*this.ma.y-h*this.ma.x;v=new tc(0,0,0);s=this.ma.x*f+this.ma.y*n;w=g-d-this.LB;k=Math.max(k,Math.abs(s));q=Math.abs(w);l?(l=this.Ob,h=this.Pb,f=this.pd,n=this.qd,this.fa.k.x=l+h+f*this.jb*this.jb+n*this.kb*this.kb,this.fa.k.y=f*this.jb+n*this.kb,this.fa.k.N=f*this.jb*this.fb+n*this.kb*this.gb,this.fa.m.x=this.fa.k.y,this.fa.m.y=
f+n,this.fa.m.N=f*this.fb+n*this.gb,this.fa.Ba.x=this.fa.k.N,this.fa.Ba.y=this.fa.m.N,this.fa.Ba.N=l+h+f*this.fb*this.fb+n*this.gb*this.gb,this.fa.Bl(v,-s,-w,-t)):(l=this.Ob,h=this.Pb,f=this.pd,n=this.qd,t=f*this.jb+n*this.kb,y=f+n,this.fa.k.J(l+h+f*this.jb*this.jb+n*this.kb*this.kb,t,0),this.fa.m.J(t,y,0),t=this.fa.ak(R.A(0,0),-s,-w),v.x=t.x,v.y=t.y,v.N=0);t=v.x*this.ma.x+v.N*this.Y.x;l=v.x*this.ma.y+v.N*this.Y.y;s=v.x*this.jb+v.y+v.N*this.fb;v=v.x*this.kb+v.y+v.N*this.gb;c.x-=this.Ob*t;c.y-=this.Ob*
l;d-=this.pd*s;e.x+=this.Pb*t;e.y+=this.Pb*l;g+=this.qd*v;a.n.R=d;b.n.R=g;a.Mb();b.Mb();return 0.005>=k&&q<=nc};var Me=function(){Ce.call(this);this.Xb=R.A(0,0);this.Yb=R.A(0,0);this.wj=R.A(0,0);this.type=Z.Rz;this.wj.J(1,0);this.wi=0;this.ik=u;this.tt=this.ds=0;this.Nl=u;this.Lm=this.xs=0};O(Me,Ce);Me.prototype.sc=function(a,b,c,d){this.S=a;this.T=b;this.Xb=this.S.he(c);this.Yb=this.T.he(c);this.wj=this.S.cq(d);this.wi=this.T.ge()-this.S.ge()};Me.prototype.bf=function(){return new Le(this)};var Oe=
function(a){Z.call(this,a);this.wh=R.A(0,0);this.xh=R.A(0,0);this.ja=R.A(0,0);this.ka=R.A(0,0);this.ob=R.A(0,0);this.pb=R.A(0,0);this.rf=this.$.Ta.BB;this.wh.x=a.wo.x-this.rf.C.position.x;this.wh.y=a.wo.y-this.rf.C.position.y;this.xh.x=a.xo.x-this.rf.C.position.x;this.xh.y=a.xo.y-this.rf.C.position.y;this.ja.I(a.Xb);this.ka.I(a.Yb);this.Qb=a.Ce;this.Dk=a.Sr+this.Qb*a.Tr;this.gw=Math.min(a.iw,this.Dk-this.Qb*Ne);this.hw=Math.min(a.jw,(this.Dk-Ne)/this.Qb);this.zg=this.yg=this.D=0};O(Oe,Z);Oe.prototype.cf=
function(a){var b=this.$,c=this.aa,d;d=b.C.q;var e=this.ja.x-b.n.V.x,g=this.ja.y-b.n.V.y,f=d.k.x*e+d.m.x*g,g=d.k.y*e+d.m.y*g,e=f;d=c.C.q;var n=this.ka.x-c.n.V.x,l=this.ka.y-c.n.V.y,f=d.k.x*n+d.m.x*l,l=d.k.y*n+d.m.y*l,n=f;d=c.n.B.x+n;var f=c.n.B.y+l,h=this.rf.C.position.x+this.xh.x,k=this.rf.C.position.y+this.xh.y;this.ob.J(b.n.B.x+e-(this.rf.C.position.x+this.wh.x),b.n.B.y+g-(this.rf.C.position.y+this.wh.y));this.pb.J(d-h,f-k);d=this.ob.fg();f=this.pb.fg();0.005<d?this.ob.wd(1/d):this.ob.la();0.005<
f?this.pb.wd(1/f):this.pb.la();0<this.Dk-d-this.Qb*f?(this.us=Z.Ed,this.D=0):this.us=Z.Uc;d<this.gw?(this.os=Z.Ed,this.yg=0):this.os=Z.Uc;f<this.hw?(this.qs=Z.Ed,this.zg=0):this.qs=Z.Uc;d=e*this.ob.y-g*this.ob.x;f=n*this.pb.y-l*this.pb.x;this.Dm=b.M+b.X*d*d;this.Em=c.M+c.X*f*f;this.fp=this.Dm+this.Qb*this.Qb*this.Em;this.Dm=1/this.Dm;this.Em=1/this.Em;this.fp=1/this.fp;a.Lh?(this.D*=a.uc,this.yg*=a.uc,this.zg*=a.uc,a=(-this.D-this.yg)*this.ob.x,d=(-this.D-this.yg)*this.ob.y,f=(-this.Qb*this.D-this.zg)*
this.pb.x,h=(-this.Qb*this.D-this.zg)*this.pb.y,b.u.x+=b.M*a,b.u.y+=b.M*d,b.H+=b.X*(e*d-g*a),c.u.x+=c.M*f,c.u.y+=c.M*h,c.H+=c.X*(n*h-l*f)):this.zg=this.yg=this.D=0};Oe.prototype.He=function(){var a=this.$,b=this.aa,c;c=a.C.q;var d=this.ja.x-a.n.V.x,e=this.ja.y-a.n.V.y,g=c.k.x*d+c.m.x*e,e=c.k.y*d+c.m.y*e,d=g;c=b.C.q;var f=this.ka.x-b.n.V.x,n=this.ka.y-b.n.V.y,g=c.k.x*f+c.m.x*n,n=c.k.y*f+c.m.y*n,f=g,l=g=c=0,h=0;c=h=c=h=l=g=c=0;this.us==Z.Uc&&(c=a.u.x+-a.H*e,g=a.u.y+a.H*d,l=b.u.x+-b.H*n,h=b.u.y+b.H*
f,c=-(this.ob.x*c+this.ob.y*g)-this.Qb*(this.pb.x*l+this.pb.y*h),h=this.fp*-c,c=this.D,this.D=Math.max(0,this.D+h),h=this.D-c,c=-h*this.ob.x,g=-h*this.ob.y,l=-this.Qb*h*this.pb.x,h=-this.Qb*h*this.pb.y,a.u.x+=a.M*c,a.u.y+=a.M*g,a.H+=a.X*(d*g-e*c),b.u.x+=b.M*l,b.u.y+=b.M*h,b.H+=b.X*(f*h-n*l));this.os==Z.Uc&&(c=a.u.x+-a.H*e,g=a.u.y+a.H*d,c=-(this.ob.x*c+this.ob.y*g),h=-this.Dm*c,c=this.yg,this.yg=Math.max(0,this.yg+h),h=this.yg-c,c=-h*this.ob.x,g=-h*this.ob.y,a.u.x+=a.M*c,a.u.y+=a.M*g,a.H+=a.X*(d*g-
e*c));this.qs==Z.Uc&&(l=b.u.x+-b.H*n,h=b.u.y+b.H*f,c=-(this.pb.x*l+this.pb.y*h),h=-this.Em*c,c=this.zg,this.zg=Math.max(0,this.zg+h),h=this.zg-c,l=-h*this.pb.x,h=-h*this.pb.y,b.u.x+=b.M*l,b.u.y+=b.M*h,b.H+=b.X*(f*h-n*l))};Oe.prototype.Ge=function(){var a=this.$,b=this.aa,c,d=this.rf.C.position.x+this.wh.x,e=this.rf.C.position.y+this.wh.y,g=this.rf.C.position.x+this.xh.x,f=this.rf.C.position.y+this.xh.y,n=0,l=0,h=0,k=0,q=c=0,t=0,v=0,w=q=v=c=q=c=0;this.us==Z.Uc&&(c=a.C.q,n=this.ja.x-a.n.V.x,l=this.ja.y-
a.n.V.y,q=c.k.x*n+c.m.x*l,l=c.k.y*n+c.m.y*l,n=q,c=b.C.q,h=this.ka.x-b.n.V.x,k=this.ka.y-b.n.V.y,q=c.k.x*h+c.m.x*k,k=c.k.y*h+c.m.y*k,h=q,c=a.n.B.x+n,q=a.n.B.y+l,t=b.n.B.x+h,v=b.n.B.y+k,this.ob.J(c-d,q-e),this.pb.J(t-g,v-f),c=this.ob.fg(),q=this.pb.fg(),0.005<c?this.ob.wd(1/c):this.ob.la(),0.005<q?this.pb.wd(1/q):this.pb.la(),c=this.Dk-c-this.Qb*q,w=Math.max(w,-c),c=U.Cb(c+0.005,-0.2,0),v=-this.fp*c,c=-v*this.ob.x,q=-v*this.ob.y,t=-this.Qb*v*this.pb.x,v=-this.Qb*v*this.pb.y,a.n.B.x+=a.M*c,a.n.B.y+=
a.M*q,a.n.R+=a.X*(n*q-l*c),b.n.B.x+=b.M*t,b.n.B.y+=b.M*v,b.n.R+=b.X*(h*v-k*t),a.Mb(),b.Mb());this.os==Z.Uc&&(c=a.C.q,n=this.ja.x-a.n.V.x,l=this.ja.y-a.n.V.y,q=c.k.x*n+c.m.x*l,l=c.k.y*n+c.m.y*l,n=q,c=a.n.B.x+n,q=a.n.B.y+l,this.ob.J(c-d,q-e),c=this.ob.fg(),0.005<c?(this.ob.x*=1/c,this.ob.y*=1/c):this.ob.la(),c=this.gw-c,w=Math.max(w,-c),c=U.Cb(c+0.005,-0.2,0),v=-this.Dm*c,c=-v*this.ob.x,q=-v*this.ob.y,a.n.B.x+=a.M*c,a.n.B.y+=a.M*q,a.n.R+=a.X*(n*q-l*c),a.Mb());this.qs==Z.Uc&&(c=b.C.q,h=this.ka.x-b.n.V.x,
k=this.ka.y-b.n.V.y,q=c.k.x*h+c.m.x*k,k=c.k.y*h+c.m.y*k,h=q,t=b.n.B.x+h,v=b.n.B.y+k,this.pb.J(t-g,v-f),q=this.pb.fg(),0.005<q?(this.pb.x*=1/q,this.pb.y*=1/q):this.pb.la(),c=this.hw-q,w=Math.max(w,-c),c=U.Cb(c+0.005,-0.2,0),v=-this.Em*c,t=-v*this.pb.x,v=-v*this.pb.y,b.n.B.x+=b.M*t,b.n.B.y+=b.M*v,b.n.R+=b.X*(h*v-k*t),b.Mb());return 0.005>w};var Ne=1,Pe=function(){Ce.call(this);this.wo=R.A(0,0);this.xo=R.A(0,0);this.Xb=R.A(0,0);this.Yb=R.A(0,0);this.type=Z.Sz;this.wo.J(-1,1);this.xo.J(1,1);this.Xb.J(-1,
0);this.Yb.J(1,0);this.jw=this.Tr=this.iw=this.Sr=0;this.Ce=1;this.Hq=p};O(Pe,Ce);Pe.prototype.sc=function(a,b,c,d,e,g,f){f===m&&(f=0);this.S=a;this.T=b;this.wo.I(c);this.xo.I(d);this.Xb=this.S.he(e);this.Yb=this.T.he(g);a=e.x-c.x;c=e.y-c.y;this.Sr=Math.sqrt(a*a+c*c);c=g.x-d.x;d=g.y-d.y;this.Tr=Math.sqrt(c*c+d*d);this.Ce=f;f=this.Sr+this.Ce*this.Tr;this.iw=f-this.Ce*Ne;this.jw=(f-Ne)/this.Ce};Pe.prototype.bf=function(){return new Oe(this)};var Qe=function(a){Z.call(this,a);this.je=new T;this.ml=new T;
this.nl=new T;this.ol=new T;this.Ic=new tc(0,0,0);this.Mf=R.A(0,0);this.Jg=R.A(0,0);this.ja=R.A(0,0);this.ka=R.A(0,0);this.D=new tc(0,0,0);this.W=new uc;this.ja.I(a.Xb);this.ka.I(a.Yb);this.Hm=a.wi;this.D.la();this.Ra=0;this.dp=a.aw;this.vs=a.Gx;this.JB=a.RB;this.Fm=a.Lm;this.Tf=a.ik;this.mi=a.Nl;this.Ja=Z.Ed};O(Qe,Z);Qe.prototype.Cn=function(){return this.aa.n.R-this.$.n.R-this.Hm};Qe.prototype.cf=function(a){var b=this.$,c=this.aa,d,e=0;d=b.C.q;var g=this.ja.x-b.n.V.x,f=this.ja.y-b.n.V.y,e=d.k.x*
g+d.m.x*f,f=d.k.y*g+d.m.y*f,g=e;d=c.C.q;var n=this.ka.x-c.n.V.x,l=this.ka.y-c.n.V.y,e=d.k.x*n+d.m.x*l,l=d.k.y*n+d.m.y*l,n=e;d=b.M;var e=c.M,h=b.X,k=c.X;this.W.k.x=d+e+f*f*h+l*l*k;this.W.m.x=-f*g*h-l*n*k;this.W.Ba.x=-f*h-l*k;this.W.k.y=this.W.m.x;this.W.m.y=d+e+g*g*h+n*n*k;this.W.Ba.y=g*h+n*k;this.W.k.N=this.W.Ba.x;this.W.m.N=this.W.Ba.y;this.W.Ba.N=h+k;this.Ld=1/(h+k);this.mi||(this.Ra=0);if(this.Tf){var q=c.n.R-b.n.R-this.Hm;Math.abs(this.vs-this.dp)<2*nc?this.Ja=Z.bi:q<=this.dp?(this.Ja!=Z.lg&&
(this.D.N=0),this.Ja=Z.lg):q>=this.vs?(this.Ja!=Z.Uc&&(this.D.N=0),this.Ja=Z.Uc):(this.Ja=Z.Ed,this.D.N=0)}else this.Ja=Z.Ed;a.Lh?(this.D.x*=a.uc,this.D.y*=a.uc,this.Ra*=a.uc,a=this.D.x,q=this.D.y,b.u.x-=d*a,b.u.y-=d*q,b.H-=h*(g*q-f*a+this.Ra+this.D.N),c.u.x+=e*a,c.u.y+=e*q,c.H+=k*(n*q-l*a+this.Ra+this.D.N)):(this.D.la(),this.Ra=0)};Qe.prototype.He=function(a){var b=this.$,c=this.aa,d=0,e=d=0,g=0,f=0,n=0,l=b.u,h=b.H,k=c.u,q=c.H,t=b.M,v=c.M,w=b.X,s=c.X;this.mi&&this.Ja!=Z.bi&&(e=this.Ld*-(q-h-this.Fm),
g=this.Ra,f=a.Da*this.JB,this.Ra=U.Cb(this.Ra+e,-f,f),e=this.Ra-g,h-=w*e,q+=s*e);if(this.Tf&&this.Ja!=Z.Ed){a=b.C.q;e=this.ja.x-b.n.V.x;g=this.ja.y-b.n.V.y;d=a.k.x*e+a.m.x*g;g=a.k.y*e+a.m.y*g;e=d;a=c.C.q;f=this.ka.x-c.n.V.x;n=this.ka.y-c.n.V.y;d=a.k.x*f+a.m.x*n;n=a.k.y*f+a.m.y*n;f=d;a=k.x+-q*n-l.x- -h*g;var y=k.y+q*f-l.y-h*e;this.W.Bl(this.Ic,-a,-y,-(q-h));this.Ja==Z.bi?this.D.Tg(this.Ic):this.Ja==Z.lg?(d=this.D.N+this.Ic.N,0>d&&(this.W.ak(this.Jg,-a,-y),this.Ic.x=this.Jg.x,this.Ic.y=this.Jg.y,this.Ic.N=
-this.D.N,this.D.x+=this.Jg.x,this.D.y+=this.Jg.y,this.D.N=0)):this.Ja==Z.Uc&&(d=this.D.N+this.Ic.N,0<d&&(this.W.ak(this.Jg,-a,-y),this.Ic.x=this.Jg.x,this.Ic.y=this.Jg.y,this.Ic.N=-this.D.N,this.D.x+=this.Jg.x,this.D.y+=this.Jg.y,this.D.N=0));l.x-=t*this.Ic.x;l.y-=t*this.Ic.y;h-=w*(e*this.Ic.y-g*this.Ic.x+this.Ic.N);k.x+=v*this.Ic.x;k.y+=v*this.Ic.y;q+=s*(f*this.Ic.y-n*this.Ic.x+this.Ic.N)}else a=b.C.q,e=this.ja.x-b.n.V.x,g=this.ja.y-b.n.V.y,d=a.k.x*e+a.m.x*g,g=a.k.y*e+a.m.y*g,e=d,a=c.C.q,f=this.ka.x-
c.n.V.x,n=this.ka.y-c.n.V.y,d=a.k.x*f+a.m.x*n,n=a.k.y*f+a.m.y*n,f=d,this.W.ak(this.Mf,-(k.x+-q*n-l.x- -h*g),-(k.y+q*f-l.y-h*e)),this.D.x+=this.Mf.x,this.D.y+=this.Mf.y,l.x-=t*this.Mf.x,l.y-=t*this.Mf.y,h-=w*(e*this.Mf.y-g*this.Mf.x),k.x+=v*this.Mf.x,k.y+=v*this.Mf.y,q+=s*(f*this.Mf.y-n*this.Mf.x);b.u.I(l);b.H=h;c.u.I(k);c.H=q};Qe.prototype.Ge=function(){var a=0,b,c=this.$,d=this.aa,e=0,g=b=0,f=0,n=0;if(this.Tf&&this.Ja!=Z.Ed){var a=d.n.R-c.n.R-this.Hm,l=0;this.Ja==Z.bi?(a=U.Cb(a-this.dp,-oc,oc),l=
-this.Ld*a,e=Math.abs(a)):this.Ja==Z.lg?(a-=this.dp,e=-a,a=U.Cb(a+nc,-oc,0),l=-this.Ld*a):this.Ja==Z.Uc&&(e=a-=this.vs,a=U.Cb(a-nc,0,oc),l=-this.Ld*a);c.n.R-=c.X*l;d.n.R+=d.X*l;c.Mb();d.Mb()}b=c.C.q;l=this.ja.x-c.n.V.x;a=this.ja.y-c.n.V.y;g=b.k.x*l+b.m.x*a;a=b.k.y*l+b.m.y*a;l=g;b=d.C.q;var h=this.ka.x-d.n.V.x,k=this.ka.y-d.n.V.y,g=b.k.x*h+b.m.x*k,k=b.k.y*h+b.m.y*k,h=g,f=d.n.B.x+h-c.n.B.x-l,n=d.n.B.y+k-c.n.B.y-a,q=f*f+n*n;b=Math.sqrt(q);var g=c.M,t=d.M,v=c.X,w=d.X;q>0.05*0.05&&(q=1/(g+t),f=q*-f,n=
q*-n,c.n.B.x-=0.5*g*f,c.n.B.y-=0.5*g*n,d.n.B.x+=0.5*t*f,d.n.B.y+=0.5*t*n,f=d.n.B.x+h-c.n.B.x-l,n=d.n.B.y+k-c.n.B.y-a);this.ml.k.x=g+t;this.ml.m.x=0;this.ml.k.y=0;this.ml.m.y=g+t;this.nl.k.x=v*a*a;this.nl.m.x=-v*l*a;this.nl.k.y=-v*l*a;this.nl.m.y=v*l*l;this.ol.k.x=w*k*k;this.ol.m.x=-w*h*k;this.ol.k.y=-w*h*k;this.ol.m.y=w*h*h;this.je.Ff(this.ml);this.je.qn(this.nl);this.je.qn(this.ol);this.je.Uh(Re,-f,-n);f=Re.x;n=Re.y;c.n.B.x-=c.M*f;c.n.B.y-=c.M*n;c.n.R-=c.X*(l*n-a*f);d.n.B.x+=d.M*f;d.n.B.y+=d.M*n;
d.n.R+=d.X*(h*n-k*f);c.Mb();d.Mb();return 0.005>=b&&e<=nc};var Re=R.A(0,0),Te=function(){Ce.call(this);this.Xb=R.A(0,0);this.Yb=R.A(0,0);this.type=Z.Vq;this.Xb.la();this.Yb.la();this.Lm=this.RB=this.Gx=this.aw=this.wi=0;this.Nl=this.ik=u};O(Te,Ce);Te.prototype.sc=function(a,b,c){this.S=a;this.T=b;this.Xb=this.S.he(c);this.Yb=this.T.he(c);this.wi=this.T.ge()-this.S.ge()};Te.prototype.bf=function(){return new Qe(this)};var Ue=function(a){Z.call(this,a);this.Te=R.A(0,0);this.Ue=R.A(0,0);this.D=new tc(0,
0,0);this.W=new uc;this.Te.I(a.Xb);this.Ue.I(a.Yb);this.Hm=a.wi};O(Ue,Z);Ue.prototype.cf=function(a){var b,c=0,d=this.$,e=this.aa;b=d.C.q;var g=this.Te.x-d.n.V.x,f=this.Te.y-d.n.V.y,c=b.k.x*g+b.m.x*f,f=b.k.y*g+b.m.y*f,g=c;b=e.C.q;var n=this.Ue.x-e.n.V.x,l=this.Ue.y-e.n.V.y,c=b.k.x*n+b.m.x*l,l=b.k.y*n+b.m.y*l,n=c;b=d.M;var c=e.M,h=d.X,k=e.X;this.W.k.x=b+c+f*f*h+l*l*k;this.W.m.x=-f*g*h-l*n*k;this.W.Ba.x=-f*h-l*k;this.W.k.y=this.W.m.x;this.W.m.y=b+c+g*g*h+n*n*k;this.W.Ba.y=g*h+n*k;this.W.k.N=this.W.Ba.x;
this.W.m.N=this.W.Ba.y;this.W.Ba.N=h+k;a.Lh?(this.D.x*=a.uc,this.D.y*=a.uc,this.D.N*=a.uc,d.u.x-=b*this.D.x,d.u.y-=b*this.D.y,d.H-=h*(g*this.D.y-f*this.D.x+this.D.N),e.u.x+=c*this.D.x,e.u.y+=c*this.D.y,e.H+=k*(n*this.D.y-l*this.D.x+this.D.N)):this.D.la()};Ue.prototype.He=function(){var a,b=0,c=this.$,d=this.aa,e=c.u,g=c.H,f=d.u,n=d.H,l=c.M,h=d.M,k=c.X,q=d.X;a=c.C.q;var t=this.Te.x-c.n.V.x,v=this.Te.y-c.n.V.y,b=a.k.x*t+a.m.x*v,v=a.k.y*t+a.m.y*v,t=b;a=d.C.q;var w=this.Ue.x-d.n.V.x,s=this.Ue.y-d.n.V.y,
b=a.k.x*w+a.m.x*s,s=a.k.y*w+a.m.y*s,w=b;a=new tc(0,0,0);this.W.Bl(a,-(f.x-n*s-e.x+g*v),-(f.y+n*w-e.y-g*t),-(n-g));this.D.Tg(a);e.x-=l*a.x;e.y-=l*a.y;g-=k*(t*a.y-v*a.x+a.N);f.x+=h*a.x;f.y+=h*a.y;n+=q*(w*a.y-s*a.x+a.N);c.H=g;d.H=n};Ue.prototype.Ge=function(){var a,b=0,c=this.$,d=this.aa;a=c.C.q;var e=this.Te.x-c.n.V.x,g=this.Te.y-c.n.V.y,b=a.k.x*e+a.m.x*g,g=a.k.y*e+a.m.y*g,e=b;a=d.C.q;var f=this.Ue.x-d.n.V.x,n=this.Ue.y-d.n.V.y,b=a.k.x*f+a.m.x*n,n=a.k.y*f+a.m.y*n,f=b;a=c.M;var b=d.M,l=c.X,h=d.X,k=d.n.B.x+
f-c.n.B.x-e,q=d.n.B.y+n-c.n.B.y-g,t=d.n.R-c.n.R-this.Hm,v=Math.sqrt(k*k+q*q),w=Math.abs(t);0.05<v&&(l*=1,h*=1);this.W.k.x=a+b+g*g*l+n*n*h;this.W.m.x=-g*e*l-n*f*h;this.W.Ba.x=-g*l-n*h;this.W.k.y=this.W.m.x;this.W.m.y=a+b+e*e*l+f*f*h;this.W.Ba.y=e*l+f*h;this.W.k.N=this.W.Ba.x;this.W.m.N=this.W.Ba.y;this.W.Ba.N=l+h;var s=new tc(0,0,0);this.W.Bl(s,-k,-q,-t);c.n.B.x-=a*s.x;c.n.B.y-=a*s.y;c.n.R-=l*(e*s.y-g*s.x+s.N);d.n.B.x+=b*s.x;d.n.B.y+=b*s.y;d.n.R+=h*(f*s.y-n*s.x+s.N);c.Mb();d.Mb();return 0.005>=v&&
w<=nc};var Ve=function(){Ce.call(this);this.Xb=R.A(0,0);this.Yb=R.A(0,0);this.type=Z.Uz;this.wi=0};O(Ve,Ce);Ve.prototype.sc=function(a,b,c){this.S=a;this.T=b;this.Xb.I(this.S.he(c));this.Yb.I(this.T.he(c));this.wi=this.T.ge()-this.S.ge()};Ve.prototype.bf=function(){return new Ue(this)};var ie=[new Ac,new Ac],re=[new Ac,new Ac],se=[new Ac,new Ac],je=R.A(0,0),ke=R.A(0,0),le=R.A(0,0),oe=R.A(0,0),me=R.A(0,0),ne=R.A(0,0),pe=R.A(0,0),qe=R.A(0,0),Hd=0,Ud=0,Vd=0,Sd=0,Td=0,Id=new cd,Jd=new Nc,Kd=new fc,Ld=
new fc,Rd=new Yc,Qd=new Oc;hc.AC=new fc;ic.Iu=new ic;new function(){this.position=R.A(0,0);this.Jx=R.A(0,0);this.sd=R.A(0,0);this.id=new zc};jc.WE=new fc;jc.Uw=new vc;jc.Vw=new vc;var Gd=new dd,ge=new ed,he=new fe}function We(a,b,c,d,e,g){return(c+0.1>=a&&a>=e-0.1||c-0.1<=a&&a<=e+0.1)&&(d+0.1>=b&&b>=g-0.1||d-0.1<=b&&b<=g+0.1)&&(0.1<Math.abs(e-c)?0.1>Math.abs((g-d)/(e-c)*(a-c)+d-b):0.1>Math.abs(a-c))}
function Xe(a){var b=[],c=0,d=0,e=0,g=0,f=0,n=f=0,l=0,h=0,k=0,g=0,q,t,v,w,s,y=g=c=0,B=0,e=[],l=[],F=u,J=[],I=[];for(I.push(a);I.length;){b=I[0];d=b.length;F=p;for(c=0;c<d;c++)if(h=c,k=c<d-1?c+1:c+1-d,g=c<d-2?c+2:c+2-d,a=b[h],q=b[k],g=b[g],g=a.x*q.y+q.x*g.y+g.x*a.y-a.y*q.x-q.y*g.x-g.y*a.x,0>g){F=u;l=1E9;for(e=0;e<d;e++)if(e!==h&&e!==k){c=e;g=e<d-1?e+1:0;t=b[c];v=b[g];n=a.x;w=a.y;var L=q.x,G=q.y,f=t.x;t=t.y;var H=v.x;v=v.y;var z=L-n,M=G-w,C=H-f,V=v-t,C=(C*(t-w)-V*(f-n))/(M*C-z*V),z=n+C*z,M=w+C*M,n=
We(L,G,n,w,z,M),f=We(z,M,f,t,H,v);if(w=n&&f?R.A(z,M):r)f=q.x-w.x,n=q.y-w.y,f=f*f+n*n,f<l&&(B=c,y=g,s=w,l=f)}if(1E9===l)return[];e=[];l=[];c=B;g=y;t=b[c];v=b[g];0.1>Math.abs(v.x-s.x)&&0.1>Math.abs(v.y-s.y)||e.push(s);0.1>Math.abs(t.x-s.x)&&0.1>Math.abs(t.y-s.y)||l.push(s);B=-1;for(y=h;;){if(y!==g)e.push(b[y]);else{if(0>B||B>=d)return[];We(v.x,v.y,b[B].x,b[B].y,a.x,a.y)||e.push(b[y]);break}B=y;0>y-1?y=d-1:y--}e.reverse();B=-1;for(y=k;;){if(y!==c)l.push(b[y]);else{if(0>B||B>=d)return[];y===c&&!We(t.x,
t.y,b[B].x,b[B].y,q.x,q.y)&&l.push(b[y]);break}B=y;y+1>d-1?y=0:y++}I.push(e,l);I.shift();break}F&&J.push(I.shift())}return J}
function Ye(a){for(var b=0;4E3>b;b++)R.Xg.push(new R(0,0));this.j=a;this.Rd=new jc(R.A(0,10),p);this.Lx=10;this.Or=-1;a=new ic;a.Aa=this;a.sn=function(a){this.Aa.j.Rw(a.Nb.Wa().bh.F,a.Jb.Wa().bh.F)};this.Rd.ju(a);a=new rd;a.Aa=this;a.Wi=function(a,b){if(this.Aa.iz)return p;var e=a.Wa().bh.F.type,g=b.Wa().bh.F.type,f=e.ca.zy;return f&&f.contains(g)?u:(f=g.ca.zy)&&f.contains(e)?u:p};this.Rd.iu(a);this.JC=0;this.on=8;this.Um=3;this.iz=p}
(function(){function a(){}var b=R,c=X,d=lc,e=Y,g=kc,f=mc,n=Ye.prototype;n.ac=function(a,b){this.Aa=a;this.Ok=b;this.j=a.j};n.ac.prototype.ib=x();n.Db=function(a,b){this.type=a;this.Aa=a.Aa;this.F=b;this.j=a.j;this.Rd=this.Aa.Rd};var l=n.Db.prototype;l.ib=function(){this.xr=0!==this.da[0];this.Uu=this.da[1];this.Os=0!==this.da[2];this.Kf=this.da[3];this.pg=this.da[4];this.Lg=this.da[5];this.vj=this.da[6];this.Zi=this.da[7];this.cj=0!==this.da[8];this.enabled=0!==this.da[9];this.body=r;this.F.Zb();
this.Ko=this.F.x;this.Lo=this.F.y;this.tg=this.F.L;this.Mr=this.Pr=0;this.Pw=this.Nr=u;this.Kr=r;this.Lr=-1;this.we?(this.we.length=0,this.uf.length=0,this.hi.clear()):(this.we=[],this.uf=[],this.hi=new Ta);var a=this;this.xf||(this.nw=function(b){a.Fs(b)});this.j.Aq(this.nw)};l.Jw=function(){this.F.Zb();this.Mq();this.Kr=this.F.Fb;this.Lr=this.F.ga};l.Pm=function(){this.co();this.uf.length=0;this.hi.clear();this.body&&(this.Rd.yn(this.body),this.body=r);this.j.rC(this.nw)};l.Md=function(){var a=
{e:this.enabled,im:this.xr,pr:this.Os,d:this.Kf,fr:this.pg,re:this.Lg,ld:this.vj,ad:this.Zi,b:this.cj,mcj:this.uf},c=b.A(0,0);c.I(this.body.Oi());a.vx=c.x;a.vy=c.y;a.om=this.body.Bn();return a};l.ue=function(a){this.co();this.uf.length=0;this.hi.clear();this.body&&(this.Rd.yn(this.body),this.body=r);this.enabled=a.e;this.xr=a.im;this.Os=a.pr;this.Kf=a.d;this.pg=a.fr;this.Lg=a.re;this.vj=a.ld;this.Zi=a.ad;this.cj=a.b;this.Ko=this.F.x;this.Lo=this.F.y;this.tg=this.F.L;this.Pr=this.F.width;this.Mr=this.F.height;
this.enabled&&(this.Mq(),this.body.Ui(b.A(a.vx,a.vy)),this.body.xl(a.om),(0!==a.vx||0!==a.vy||0!==a.om)&&this.body.Qc(p),this.uf=a.mcj)};l.El=function(){this.enabled&&this.Ts();this.Aa.Or=this.j.Bf-1};l.Fs=function(a){var b,c,d,e=a.uid;d=b=0;for(c=this.uf.length;b<c;b++)this.uf[d]=this.uf[b],d<this.we.length&&(this.we[d]=this.we[b]),this.uf[b].hc[1]==e?this.Rd.Wp(this.we[b]):d++;this.uf.length=d;d<this.we.length&&(this.we.length=d);this.hi.remove(a)};l.co=function(){var a,b;a=0;for(b=this.we.length;a<
b;a++)this.Rd.Wp(this.we[a]);this.we.length=0};l.Ts=function(){var a,b,c;a=0;for(b=this.uf.length;a<b;a++)switch(c=this.uf[a],c.type){case 0:this.Cz(c.hc[0],c.hc[1],c.hc[2],c.hc[3],c.hc[4]);break;case 1:this.Ez(c.hc[0],c.hc[1]);break;case 2:this.Dz(c.hc[0],c.hc[1],c.hc[2],c.hc[3])}};l.zz=function(){this.body&&(this.co(),this.Rd.yn(this.body),this.body=r,this.F.ca.Ke=r)};l.Mq=function(){if(this.enabled){var a=this.F,f=u,l=r,n=r,v,w,s,y,B,F;this.body&&(f=p,l=b.A(0,0),l.I(this.body.Oi()),n=this.body.Bn(),
this.zz());var J=new d;J.Kf=this.Kf;J.pg=this.pg;J.Lg=this.Lg;F=new c;F.type=this.xr?0:2;a.Zb();F.position.x=0.02*a.Eb.Ij();F.position.y=0.02*a.Eb.Jj();F.L=a.L;F.br=this.Os;F.vj=this.vj;F.Zi=this.Zi;F.cj=this.cj;w=this.F.mb&&!this.F.mb.pk();this.body=this.Rd.Up(F);this.body.bh=this;F=this.Uu;!w&&0===this.Uu&&(F=1);w=Math.max(Math.abs(a.width),1);s=Math.max(Math.abs(a.height),1);var I=0>a.width;B=0>a.height;if(0===F){F=a.L;a.L=0;a.wa();a.Zb();var L=a.Eb.Ij()-a.x,G=a.Eb.Jj()-a.y;a.L=F;a.wa();a.mb.fk(I?
-w:w,B?-s:s,0);var H=a.mb.fd;y=a.mb.Ig;F=[];F.length=y;for(v=0;v<y;v++)F[v]=b.A(H[2*v]-L,H[2*v+1]-G);I!==B&&F.reverse();v=w*s;B=R;var L=Xe(F),I=[],z,M,C,V,W,ga,P;C=0;for(V=L.length;C<V;C++){H=L[C];G=[];G.length=H.length;W=P=0;for(ga=H.length;W<ga;W++)z=H[W],M=H[(W+1)%ga],P+=z.x*M.y-z.y*M.x,G[W]=B.A(z.x,z.y);P=Math.abs(P/2);P>=0.001*v&&I.push(G)}for(v=0;v<y;v++)b.Nc(F[v]);if(I.length){v=0;for(w=I.length;v<w;v++){F=I[v];s=0;for(y=F.length;s<y;s++)B=F[s],B.x*=0.02,B.y*=0.02;J.shape=new e;J.shape.nq(F,
F.length);this.body.wn(J);s=0;for(y=F.length;s<y;s++)b.Nc(F[s])}}else J.shape=new e,J.shape.Jn(0.01*w,0.01*s),this.body.wn(J)}else 1===F?(J.shape=new e,J.shape.Jn(0.01*w,0.01*s)):J.shape=new g(0.01*Math.min(w,s)),this.body.wn(J);a.ca.Ke=this.body;this.Pr=a.width;this.Mr=a.height;if(f){this.body.Ui(l);this.body.xl(n);b.Nc(l);this.Ts();F=this.hi.Ji();v=0;for(w=F.length;v<w;v++)a=F[v].ca.Ke.bh,a.co(),a.Ts()}}};l.kc=function(){if(this.enabled){var a=this.F,c;0===this.Aa.JC?c=this.j.Ih/60:(c=this.j.Wl(this.F),
c>1/30&&(c=1/30));this.j.Bf>this.Aa.Or&&0<this.j.Ih&&(this.Rd.Wg(c,this.Aa.on,this.Aa.Um),this.Rd.Gt(),this.Aa.Or=this.j.Bf);if(this.Pw||a.width!==this.Pr||a.height!==this.Mr||a.Fb!==this.Kr||a.ga!==this.Lr)this.Mq(),this.Pw=u,this.Kr=a.Fb,this.Lr=a.ga;c=a.L!==this.tg;if(a.x!==this.Ko||a.y!==this.Lo){a.Zb();var d=a.Eb.Ij(),e=a.Eb.Jj(),f=d-this.Ko,g=e-this.Lo;this.body.rq(b.A(0.02*d,0.02*e));this.body.Ui(b.A(f,g));this.Nr=p;this.body.Qc(p)}else this.Nr&&(this.Nr=u,this.body.Ui(b.A(0,0)),this.body.rq(b.A(0.02*
a.Eb.Ij(),0.02*a.Eb.Jj())));c&&(this.body.In(a.L),this.body.Qc(p));d=this.body.C.position;c=d.x/0.02;d=d.y/0.02;e=this.body.ge();if(c!==a.x||d!==a.y||e!==a.L)if(a.x=c,a.y=d,a.L=e,a.wa(),a.Zb(),c=a.Eb.Ij()-a.x,d=a.Eb.Jj()-a.y,0!==c||0!==d)a.x-=c,a.y-=d,a.wa();this.Ko=a.x;this.Lo=a.y;this.tg=a.L}};l.ro=function(a){return-1===a||!this.F.nf?this.F.x:0===a&&this.body?(this.body.C.position.x+this.body.Pi().x)/0.02:this.F.nf(a,p)};l.so=function(a){return-1===a||!this.F.nf?this.F.y:0===a&&this.body?(this.body.C.position.y+
this.body.Pi().y)/0.02:this.F.nf(a,u)};n.O=new (x());a.prototype.ag=function(a,c,d){if(this.enabled){var e=this.ro(d);d=this.so(d);this.body.ag(b.A(a,c),b.A(0.02*e,0.02*d))}};a.prototype.rn=function(a){this.enabled&&this.body.rn(Aa(a))};a.prototype.xl=function(a){this.enabled&&(this.body.xl(Aa(a)),this.body.Qc(p))};l.Cz=function(a,c,d,e,g){if(this.enabled&&(c=this.j.lj(c))&&c!=this.F&&c.ca.Ke){c.ca.Ke.bh.hi.add(this.F);var l=this.ro(a);a=this.so(a);var n;c.nf?(n=c.nf(d,p),d=c.nf(d,u)):(n=c.x,d=c.y);
var y=l-n,B=a-d,F=new f;F.sc(this.body,c.ca.Ke,b.A(0.02*l,0.02*a),b.A(0.02*n,0.02*d));F.length=0.02*Math.sqrt(y*y+B*B);F.$n=e;F.po=g;this.we.push(this.Rd.xn(F))}};l.Ez=function(a,c){if(this.enabled){var d=this.j.lj(c);if(d&&d!=this.F&&d.ca.Ke){d.ca.Ke.bh.hi.add(this.F);var e=this.ro(a),f=this.so(a),g=new Te;g.sc(this.body,d.ca.Ke,b.A(0.02*e,0.02*f));this.we.push(this.Rd.xn(g))}}};l.Dz=function(a,c,d,e){if(this.enabled&&(c=this.j.lj(c))&&c!=this.F&&c.ca.Ke){c.ca.Ke.bh.hi.add(this.F);var f=this.ro(a);
a=this.so(a);var g=new Te;g.sc(this.body,c.ca.Ke,b.A(0.02*f,0.02*a));g.ik=p;g.aw=Aa(d);g.Gx=Aa(e);this.we.push(this.Rd.xn(g))}};a.prototype.Hy=function(a){if(a!==this.Aa.Lx){this.Rd.pq(b.A(0,a));this.Aa.Lx=a;var c,d=this.Aa.Nm.Ji();a=0;for(c=d.length;a<c;a++)d[a].ca.Ke&&d[a].ca.Ke.Qc(p)}};n.K=new a;n.ba=new (x())})();function Ze(a){this.j=a}
(function(){function a(){}function b(){}var c=Ze.prototype;c.ac=function(a,b){this.Aa=a;this.Ok=b;this.j=a.j};c.ac.prototype.ib=x();c.Db=function(a,b){this.type=a;this.Aa=a.Aa;this.F=b;this.j=a.j};var d=c.Db.prototype;d.ib=function(){this.speed=Aa(this.da[0]);this.Yg=Aa(this.da[1])};d.Md=function(){return{speed:this.speed,acc:this.Yg}};d.ue=function(a){this.speed=a.speed;this.Yg=a.acc};d.kc=function(){var a=this.j.Wl(this.F);0!==a&&(0!==this.Yg&&(this.speed+=this.Yg*a),0!==this.speed&&(this.F.L=Da(this.F.L+
this.speed*a),this.F.wa()))};c.O=new (x());a.prototype.Zj=function(a){this.speed=Aa(a)};c.K=new a;b.prototype.If=function(a){a.ra(Ba(this.speed))};c.ba=new b})();function $e(a){this.j=a}
(function(){function a(){}var b=$e.prototype;b.ac=function(a,b){this.Aa=a;this.Ok=b;this.j=a.j};b.ac.prototype.ib=x();b.Db=function(a,b){this.type=a;this.Aa=a.Aa;this.F=b;this.j=a.j;this.Hc=0};var c=b.Db.prototype,d=2*Math.PI,e=Math.PI/2,g=3*Math.PI/2;c.ib=function(){this.dd=1===this.da[0];this.Mm=this.da[1];this.zt=this.da[2];this.Ch=this.da[3];this.Ch+=Math.random()*this.da[4];0===this.Ch?this.Hc=0:(this.Hc=this.da[5]/this.Ch*d,this.Hc+=Math.random()*this.da[6]/this.Ch*d);this.Zd=this.da[7];this.Zd+=
Math.random()*this.da[8];this.Ce=this.oj=this.$a=0;this.init()};c.Md=function(){return{i:this.Hc,a:this.dd,mv:this.Mm,w:this.zt,p:this.Ch,mag:this.Zd,iv:this.$a,iv2:this.oj,r:this.Ce,lkv:this.te,lkv2:this.pm}};c.ue=function(a){this.Hc=a.i;this.dd=a.a;this.Mm=a.mv;this.zt=a.w;this.Ch=a.p;this.Zd=a.mag;this.$a=a.iv;this.oj=a.iv2||0;this.Ce=a.r;this.te=a.lkv;this.pm=a.lkv2||0};c.init=function(){switch(this.Mm){case 0:this.$a=this.F.x;break;case 1:this.$a=this.F.y;break;case 2:this.$a=this.F.width;this.Ce=
this.F.height/this.F.width;break;case 3:this.$a=this.F.width;break;case 4:this.$a=this.F.height;break;case 5:this.$a=this.F.L;this.Zd=Aa(this.Zd);break;case 6:this.$a=this.F.opacity;break;case 7:this.$a=0;break;case 8:this.$a=this.F.x,this.oj=this.F.y}this.te=this.$a;this.pm=this.oj};c.Mh=function(a){a%=d;switch(this.zt){case 0:return Math.sin(a);case 1:return a<=e?a/e:a<=g?1-2*(a-e)/Math.PI:(a-g)/e-1;case 2:return 2*a/d-1;case 3:return-2*a/d+1;case 4:return a<Math.PI?-1:1}return 0};c.kc=function(){var a=
this.j.Wl(this.F);if(this.dd&&0!==a){0===this.Ch?this.Hc=0:(this.Hc+=a/this.Ch*d,this.Hc%=d);switch(this.Mm){case 0:this.F.x!==this.te&&(this.$a+=this.F.x-this.te);this.F.x=this.$a+this.Mh(this.Hc)*this.Zd;this.te=this.F.x;break;case 1:this.F.y!==this.te&&(this.$a+=this.F.y-this.te);this.F.y=this.$a+this.Mh(this.Hc)*this.Zd;this.te=this.F.y;break;case 2:this.F.width=this.$a+this.Mh(this.Hc)*this.Zd;this.F.height=this.F.width*this.Ce;break;case 3:this.F.width=this.$a+this.Mh(this.Hc)*this.Zd;break;
case 4:this.F.height=this.$a+this.Mh(this.Hc)*this.Zd;break;case 5:this.F.L!==this.te&&(this.$a=Da(this.$a+(this.F.L-this.te)));this.F.L=Da(this.$a+this.Mh(this.Hc)*this.Zd);this.te=this.F.L;break;case 6:this.F.opacity=this.$a+this.Mh(this.Hc)*this.Zd/100;0>this.F.opacity?this.F.opacity=0:1<this.F.opacity&&(this.F.opacity=1);break;case 8:this.F.x!==this.te&&(this.$a+=this.F.x-this.te),this.F.y!==this.pm&&(this.oj+=this.F.y-this.pm),this.F.x=this.$a+Math.cos(this.F.L)*this.Mh(this.Hc)*this.Zd,this.F.y=
this.oj+Math.sin(this.F.L)*this.Mh(this.Hc)*this.Zd,this.te=this.F.x,this.pm=this.F.y}this.F.wa()}};c.ww=function(a,b){switch(this.Mm){case 2:this.$a*=b.width/a.width;this.Ce=b.height/b.width;break;case 3:this.$a*=b.width/a.width;break;case 4:this.$a*=b.height/a.height}};a.prototype.Rh=A("dd");b.O=new a;b.K=new (x());b.ba=new (x())})();function af(a){this.j=a}
(function(){var a=af.prototype;a.ac=function(a,c){this.Aa=a;this.Ok=c;this.j=a.j};a.ac.prototype.ib=x();a.Db=function(a,c){this.type=a;this.Aa=a.Aa;this.F=c;this.j=a.j;this.mode=0};a=a.Db.prototype;a.ib=function(){this.mode=this.da[0]};a.kc=x();a.Fp=function(){this.F.Zb();var a=this.F.Na,c=this.F.U.rb,d=u;0===this.mode?(0>this.F.x&&(this.F.x=0,d=p),0>this.F.y&&(this.F.y=0,d=p),this.F.x>c.width&&(this.F.x=c.width,d=p),this.F.y>c.height&&(this.F.y=c.height,d=p)):(0>a.left&&(this.F.x-=a.left,d=p),0>
a.top&&(this.F.y-=a.top,d=p),a.right>c.width&&(this.F.x-=a.right-c.width,d=p),a.bottom>c.height&&(this.F.y-=a.bottom-c.height,d=p));d&&this.F.wa()}})();function bf(a){this.j=a}(function(){var a=bf.prototype;a.ac=function(a,c){this.Aa=a;this.Ok=c;this.j=a.j};a.ac.prototype.ib=x();a.Db=function(a,c){this.type=a;this.Aa=a.Aa;this.F=c;this.j=a.j};a=a.Db.prototype;a.ib=x();a.kc=function(){this.F.Zb();var a=this.F.Na,c=this.F.U.rb;(0>a.right||0>a.bottom||a.left>c.width||a.top>c.height)&&this.j.Oh(this.F)}})();
function cf(a){this.j=a}
(function(){var a=cf.prototype;a.ac=function(a,c){this.Aa=a;this.Ok=c;this.j=a.j};a.ac.prototype.ib=x();a.Db=function(a,c){this.type=a;this.Aa=a.Aa;this.F=c;this.j=a.j};a=a.Db.prototype;a.ib=function(){this.mode=this.da[0]};a.kc=function(){var a=this.F;a.Zb();var c=a.Na,d=a.U,e=d.rb,g=0,f=0,n=0,l=0;0===this.mode?(f=e.width,l=e.height):(g=d.de,f=d.ee,n=d.fe,l=d.be);c.right<g?(a.x=f-1+(a.x-c.left),a.wa()):c.left>f?(a.x=g+1-(c.right-a.x),a.wa()):c.bottom<n?(a.y=l-1+(a.y-c.top),a.wa()):c.top>l&&(a.y=
n+1-(c.bottom-a.y),a.wa())}})();
function Eb(){return[r,"Menu_load",[[K,u,p,p,p,p,p,p,p,u],[bc,u,p,p,p,p,p,p,p,u],[N,p,u,u,u,u,u,u,u,u],[ac,p,u,u,u,u,u,u,u,u]],[["t0",K,u,[],1,0,r,[["Default",10,p,1,0,u,0x694ca98b70f29,[["images/player-sheet0.png",1783,0,0,41,39,1,0.97561,0.512821,[["Imagepoint 1",1.12195,0.487179]],[-0.902439,-0.48718,-0.463415,-0.205129,-0.365854,-0.128206,2.38419E-7,-0.0256415,-0.341464,0.102564,-0.463415,0.179487,-0.756098,0.282051,-0.804878,-0.0256415],0],["images/player-sheet1.png",1796,0,0,41,39,1,0.97561,
0.512821,[],[-0.902439,-0.48718,-0.463415,-0.205129,-0.365854,-0.128206,2.38419E-7,-0.0256415,-0.341464,0.102564,-0.463415,0.179487,-0.756098,0.282051,-0.804878,-0.0256415],0],["images/player-sheet2.png",1792,0,0,41,39,1,0.97561,0.512821,[],[-0.902439,-0.48718,-0.463415,-0.205129,-0.365854,-0.128206,2.38419E-7,-0.0256415,-0.341464,0.102564,-0.463415,0.179487,-0.756098,0.282051,-0.804878,-0.0256415],0]]]],[["BoundToLayout",af,5661977709655842]],u,u,0x714f897c1714c,[]],["t1",K,u,[],2,0,r,[["Default",
5,u,1,0,u,0xd12df2fdc99b7,[["images/bullet-sheet0.png",128,0,0,15,7,1,0.533333,0.571429,[],[-0.466667,-0.428572,0.4,-0.428572,0.4,0.285714,-0.466667,0.285714],0]]]],[["Bullet",cc,4957317675891539],["DestroyOutsideLayout",bf,6950810485788979]],u,u,0xa7b0a6fb7b20e,[]],["t2",N,u,[],0,0,r,r,[],u,u,0xc63422b489df9,[],[1]],["t3",K,u,[0xf90ff7421e2f5],1,0,r,[["Default",5,u,1,0,u,8845143173744413,[["images/enemy-sheet0.png",1790,0,0,37,42,1,0.702703,0.642857,[["Imagepoint 1",0.918919,0.52381]],[-0.45946,
-0.428571,0.189189,-0.428571,0.27027,-0.142857,0.189189,0.142857,-0.432433,0.119048,-0.567568,-0.142857],0]]]],[["Bullet",cc,0xed03c5b401945]],u,u,4753285045282824,[]],["t4",K,u,[],2,0,r,[["Default",5,u,1,0,u,951159703766509,[["images/enemybullet-sheet0.png",123,0,0,12,5,1,0.5,0.6,[],[0.416667,-0.4,0.416667,0.2,-0.416667,0.2,-0.416667,-0.4],0]]]],[["Bullet",cc,6606352346952096],["DestroyOutsideLayout",bf,421647744912274]],u,u,0xa1f5e30fb6351,[]],["t5",K,u,[],2,0,r,[["Default",5,u,1,0,u,7392597965406207,
[["images/star-sheet0.png",136,0,0,18,18,1,0.5,0.5,[],[],0]]]],[["Bullet",cc,7406718938351092],["Wrap",cf,5587340836654481]],u,u,0x5fbfb72e66d16,[]],["t6",K,u,[],2,0,r,[["Default",5,u,1,0,u,8339505178699123,[["images/logo-sheet0.png",1730,0,0,587,167,1,0.505963,0.51497,[],[-0.362862,0.0119759,4.76837E-7,-0.508982,0.35264,0.047904,0.49063,0.431138,-0.497445,0.45509],0]]]],[["Sine",$e,0x4230032edc973],["Sine2",$e,826322501458363]],u,u,4946189475733737,[]],["t7",K,u,[],0,0,r,[["Default",5,u,1,0,u,8982978501797813,
[["images/new_game_1-sheet0.png",993,0,0,567,81,1,0.500882,0.54321,[],[-0.45679,-0.530864,0.45679,-0.530864,0.433862,1.78814E-7,0.442681,0.444444,-0.442681,0.444444,-0.499118,1.78814E-7],0]]]],[],u,u,8440246121710408,[]],["t8",K,u,[],0,0,r,[["Default",5,u,1,0,u,0x6fe96dda71d9d,[["images/moregames-sheet0.png",1220,0,0,599,68,1,0.494157,1.26471,[],[-0.479132,-1.05882,5.96046E-8,-1.25,0.490818,-1.16176,0.328881,-0.279412,-0.328882,-0.279412],0]]]],[],u,u,4803894039440455,[]],["t9",K,u,[],0,0,r,[["Default",
5,u,1,0,u,0x8a022530f0619,[["images/sprite4-sheet0.png",148378,0,0,722,794,1,0.426593,0.420655,[],[-0.263158,-0.277078,0.0789472,-0.382872,0.307479,-0.173804,0.416897,0.0743071,0.455678,0.457179,0.0789472,0.442065,-0.142659,0.316121,-0.390582,0.0743071],0]]]],[],u,u,5934181822140565,[]],["t10",K,u,[],0,0,r,[["Default",5,u,1,0,u,5709109692108769,[["images/sprite5-sheet0.png",1247,0,0,583,68,1,-0.0394511,-1.35294,[],[0.171526,1.36765,1.02401,1.41176,1.02401,2.33824,0.0703259,2.33824,0.0548885,1.41176],
0]]]],[],u,u,6318237685126656,[]],["t11",bc,u,[],0,0,r,r,[],u,u,8525749871791307,[]],["t12",K,u,[],0,0,r,[["Default",5,u,1,0,u,47828094445956,[["images/sprite6-sheet0.png",1531,0,0,650,168,1,0.495385,1.11905,[],[-0.356923,-0.595238,3.8743E-7,-1.1131,0.356923,-0.595238,0.163077,-0.160715,3.8743E-7,-0.339286,-0.172308,-0.125],0]]]],[],u,u,5132253325118042,[]],["t13",bc,u,[],0,0,r,r,[],u,u,0xadb29a6e9cfcf,[]],["t14",K,u,[],0,0,r,[["Default",5,u,1,0,u,8132785976336163,[["images/sprite8-sheet0.png",561,
0,0,303,81,1,0.518152,0.641975,[],[],0]]]],[],u,u,5387673658081216,[]],["t15",K,u,[],0,0,r,[["Default",5,u,1,0,u,0xf22ef79b3f8b5,[["images/new_game_2-sheet0.png",990,0,0,567,81,1,0.500882,0.506173,[],[-0.483245,-0.382716,-0.00176385,-0.493827,0.479718,-0.370371,0.465608,-0.0123459,0.495591,0.469136,-0.00176385,0.481481,-0.492064,0.432099,-0.499118,-0.0123459],0]]]],[],u,u,440804744202009,[]],["t16",bc,u,[],0,0,r,r,[],u,u,0x7df38a3eaadd8,[]],["t17",K,u,[],0,0,r,[["Default",5,u,1,0,u,0x5a2e198a25bbe,
[["images/sprite-sheet0.png",94,0,0,250,12,1,0.492,0.5,[],[],1]]]],[],u,u,8729842473413017,[]],["t18",ac,u,[],0,0,r,r,[],u,u,0x41589621c4524,[],[0,1,1,600,600,1E4,1,5E3,1]],["t19",K,u,[],0,0,r,[["Default",5,u,1,0,u,0x44dcd3b7438a7,[["images/sprite2-sheet0.png",699,0,0,440,81,1,0.5,0.876543,[],[-0.477273,-0.679012,0.211364,-0.864198,0.270455,0.111111,0.211364,0.111111,0.168182,0.0246918],0]]]],[],u,u,0x859e878c807b,[]],["t20",K,u,[],0,0,r,[["Default",5,u,1,0,u,0x90dca4b016473,[["images/sprite3-sheet0.png",
988,0,0,550,81,1,0.46,0.901235,[],[-0.458182,-0.740741,0.036364,-0.888889,0.521818,-0.679013,0.361818,0.0987654,0.036364,0.0987654,-0.3,0.0987654],0]]]],[],u,u,9856526691629392,[]],["t21",K,u,[],0,0,r,[["Default",5,u,1,0,u,5099745111163399,[["images/sprite7-sheet0.png",677,0,0,376,81,1,0.486702,0.938272,[],[-0.486702,-0.938272,0.00797889,-0.938272,0.513298,-0.938272,0.484043,-0.617285,0.00797889,0.0493824,-0.484043,-0.54321],0]]]],[],u,u,0x9bf18b1740244,[]],["t22",K,u,[],0,0,r,[["Default",5,u,1,0,
u,8767746816912904,[["images/sprite9-sheet0.png",599,0,0,293,81,1,0.713311,-0.0617284,[],[-0.426622,0.0864198,4.17233E-7,0.0740741,0.279863,0.617284,4.17233E-7,1.04938,-0.709898,0.925926],0]]]],[],u,u,483487509914834,[]],["t23",K,u,[],0,0,r,[["Default",5,u,1,0,u,9882749494538116,[["images/sprite10-sheet0.png",1683,0,0,505,85,1,0.528713,0.541176,[],[-0.449505,-0.141176,0.110891,-0.529412,0.174257,0.447058,0.110891,-0.0705885,0.0475251,0.447058],0]]]],[],u,u,841033454240597,[]],["t24",K,u,[],0,0,r,
[["a",5,u,1,0,u,748306785640468,[["images/sprite11-sheet0.png",604,1,1,146,81,1,0.00684932,0.0123457,[],[0.0616439,0.037037,0.876713,2.04891E-8,0.979452,0.592592,0.876713,0.925926,0.157535,0.975308,5.12227E-9,0.592592],0]]],["a2",5,u,1,0,u,0xfb1dd6688f30c,[["images/sprite11-sheet0.png",604,1,83,146,81,1,0.00684932,0.0123457,[],[5.12227E-9,0.592592,0.465754,0.037037,0.979452,0.506173,0.979452,0.530864,0.465754,0.975308,5.12227E-9,0.444444],0]]]],[],u,u,9266324087598220,[]],["t25",K,u,[],0,0,r,[["a",
5,u,1,0,u,6739729953993858,[["images/sprite12-sheet0.png",773,1,1,219,81,1,0.00456621,0.0123457,[],[0.0410959,0.246913,0.479452,2.04891E-8,0.986302,0.0617284,0.90411,0.518518,0.826484,0.54321,0.479452,0.962963,0,0.901234,0,0.518518],0]]],["a2",5,u,1,0,u,9939488267328036,[["images/sprite12-sheet0.png",773,1,83,219,81,1,0.00456621,0.0123457,[],[0.0410959,0.246913,0.479452,2.04891E-8,0.986302,0.0617284,0.90411,0.518518,0.826484,0.54321,0.479452,0.962963,0,0.901234,0,0.518518],0]]]],[],u,u,7245945800217769,
[]],["t26",K,u,[],0,0,r,[["a",5,u,1,0,u,9139570388492978,[["images/sprite11-sheet0.png",604,1,1,146,81,1,0.00684932,0.0123457,[],[0.0616439,0.037037,0.876713,2.04891E-8,0.979452,0.592592,0.876713,0.925926,0.157535,0.975308,5.12227E-9,0.592592],0]]],["a2",5,u,1,0,u,9551587196277432,[["images/sprite11-sheet0.png",604,1,83,146,81,1,0.00684932,0.0123457,[],[5.12227E-9,0.592592,0.465754,0.037037,0.979452,0.506173,0.979452,0.530864,0.465754,0.975308,5.12227E-9,0.444444],0]]]],[],u,u,372216035240476,[]],
["t27",K,u,[],0,0,r,[["a",5,u,1,0,u,437233118555437,[["images/sprite12-sheet0.png",773,1,1,219,81,1,0.00456621,0.0123457,[],[0.0410959,0.246913,0.479452,2.04891E-8,0.986302,0.0617284,0.90411,0.518518,0.826484,0.54321,0.479452,0.962963,0,0.901234,0,0.518518],0]]],["a2",5,u,1,0,u,5676276846990228,[["images/sprite12-sheet0.png",773,1,83,219,81,1,0.00456621,0.0123457,[],[0.0410959,0.246913,0.479452,2.04891E-8,0.986302,0.0617284,0.90411,0.518518,0.826484,0.54321,0.479452,0.962963,0,0.901234,0,0.518518],
0]]]],[],u,u,5060400307026512,[]],["t28",K,u,[],2,0,r,[["Default",5,u,1,0,u,9805870650197832,[["images/sprite15-sheet0.png",45125,0,0,642,308,1,0.531153,0.795455,[],[-0.397196,-0.538961,-0.0311527,-0.672078,0.406542,-0.688312,0.457944,-0.295455,0.334891,-0.0519481,-0.0311527,0.0811688,-0.468847,0.0974026,-0.520249,-0.295455],0]]]],[["Physics",Ye,0xb364f0477b699],["Rotate",Ze,8970681477000285]],u,u,7733559380656206,[]],["t29",bc,u,[],0,0,r,r,[],u,u,9509454556136536,[]]],[],[["Fase",320,480,u,"eve_fase",
9721666618505368,[["Background",0,6517819803495311,p,[0,0,17],u,1,1,1,u,1,0,0,[[[96,-19,0,37,42,0,1.5708,1,0.702703,0.642857,0,0,[]],3,0,[10],[[40,0,0,0,1,1]],[0,"Default",0,1]],[[-37,-24,0,12,5,0,0,1,0.5,0.6,0,0,[]],4,1,[],[[140,0,0,0,1,1],[]],[0,"Default",0,1]],[[191,-41,0,8,8,0,1.5708,1,0.5,0.5,0,0,[]],5,2,[],[[400,0,0,0,1,1],[0]],[0,"Default",0,1]],[[8,38,0,200,30,0,0,1,0,0,0,0,[]],16,22,[],[],["Text",0,"12pt Arial","rgb(255,255,255)",0,0,0,0,0]],[[58.2806,19.8168,0,100,12,0,0,1,0.492,0.5,0,0,
[]],17,27,[],[],[0,"Default",0,1]],[[157.347,-24.2187,0,21.8956,10.5044,0,1.5708,1,0.531153,0.795455,0,0,[]],28,39,[],[[0,0,0,0,0.5,0.2,0,0.01,0,1],[180,0]],[0,"Default",0,1]],[[46.992,12.418,0,29.1567,18.8137,0,0,1,0,0,0,0,[]],29,40,[],[],["Text",0,"10pt Arial","rgb(255,255,255)",0,0,0,0,0]]],[]],["Game",1,0x4afe4237fd55d,p,[255,255,255],p,1,1,1,u,1,0,0,[[[168,424,0,41,39,0,-1.5708,1,0.97561,0.512821,0,0,[]],0,3,[],[[1]],[0,"Default",0,1]],[[-35,-84,0,15,7,0,0,1,0.533333,0.571429,0,0,[]],1,4,[],
[[600,0,0,0,1,1],[]],[0,"Default",0,1]]],[]],["UI",2,6886989980922434,p,[255,255,255],p,0,0,1,u,1,0,0,[],[]]],[],[]],["Morte",320,480,u,"eve_morte",0xe4308c71d16a3,[["Background",0,9148953017622412,p,[0,0,17],u,1,1,1,u,1,0,0,[[[191,-41,0,8,8,0,1.5708,1,0.5,0.5,0,0,[]],5,9,[],[[400,0,0,0,1,1],[0]],[0,"Default",0,1]]],[]],["UI",1,980523225116863,p,[255,255,255],p,0,0,1,u,1,0,0,[[[4.80431,151.408,0,310.884,91,0,0,1,0,0,0,0,[]],11,5,[],[],["Text",0,"bold 26pt Arial Black","rgb(198,198,198)",1,0,0,0,0]],
[[160,149.687,0,277.715,71.7786,0,0,1,0.495385,1.11905,0,0,[]],12,7,[],[],[0,"Default",0,1]],[[-7.35606,26.7681,0,107.974,14.6166,0,-0.347392,1,-0.0394511,-1.35294,0,0,[]],10,11,[],[],[0,"Default",0,1]],[[1.70856,63.1168,0,146.693,38.0314,0,-0.338325,1,0,0,0,0,[]],13,12,[],[],["Text",0,"20pt Arial","rgb(198,198,198)",1,0,0,0,0]],[[160.848,292.999,0,208.698,55.7906,0,0,1,0.518152,0.641975,0,0,[]],14,10,[],[],[0,"Default",0,1]]],[]]],[],[]],["Configs",320,480,u,"eve_config",92888756304019,[["Background",
0,0x8efd7f9dfcb61,p,[0,0,17],u,1,1,1,u,1,0,0,[[[191,-41,0,8,8,0,1.5708,1,0.5,0.5,0,0,[]],5,29,[],[[400,0,0,0,1,1],[0]],[0,"Default",0,1]],[[160,66,0,286.674,52.7742,0,0,1,0.5,0.876543,0,0,[]],19,30,[],[],[0,"Default",0,1]],[[153,127,0,242.772,35.7537,0,0,1,0.46,0.901235,0,0,[]],20,31,[],[],[0,"Default",0,1]],[[161,253,0,193.318,42.4377,0,0,1,0.486702,0.938272,0,0,[]],21,32,[],[],[0,"Default",0,1]],[[203,346,0,158.488,43.8141,0,0,1,0.713311,-0.0617284,0,0,[]],22,33,[],[],[0,"Default",0,1]],[[173,446,
0,289.913,48.7973,0,0,1,0.528713,0.541176,0,0,[]],23,34,[],[],[0,"Default",0,1]],[[63,149,0,53.6353,29.7565,0,0,1,0.00684932,0.0123457,0,0,[]],24,35,[],[],[0,"Default",0,1]],[[191,149,0,90.3617,28.289,0,0,1,0.00456621,0.0123457,0,0,[]],25,36,[],[],[0,"Default",0,1]],[[65,290,0,53.6348,29.7567,0,0,1,0.00684932,0.0123457,0,0,[]],26,37,[],[],[0,"Default",0,1]],[[198,302,0,90.3618,28.2887,0,0,1,0.00456621,0.0123457,0,0,[]],27,38,[],[],[0,"Default",0,1]]],[]],["UI",1,0xc2eda558d4165,p,[255,255,255],p,
0,0,1,u,1,0,0,[],[]]],[],[]],["Menu_load",320,480,u,"eve_menu",7832820117431928,[["Background",0,4923732428906791,p,[0,0,17],u,1,1,1,u,1,0,0,[[[191,-41,0,8,8,0,1.5708,1,0.5,0.5,0,0,[]],5,13,[],[[400,0,0,0,1,1],[0]],[0,"Default",0,1]]],[]],["UI",1,0xa2818cfb4e2a2,p,[255,255,255],p,0,0,1,u,1,0,0,[[[163,73,0,276.916,78.782,0,-0.174533,1,0.505963,0.51497,0,0,[]],6,14,[],[[1,8,0,1,0,0,0,5,0],[1,1,0,4,0,0,0,5,0]],[0,"Default",0,1]],[[164,229,0,278.722,39.8174,0,0,1,0.500882,0.54321,0,0,[]],7,15,[],[],[0,
"Default",0,1]],[[162,327,0,259.591,29.4694,0,0,1,0.494157,1.26471,0,0,[]],8,16,[],[],[0,"Default",0,1]],[[277,434,0,43.8544,48.2277,0,0,1,0.426593,0.420655,0,0,[]],9,17,[],[],[0,"Default",0,1]],[[24,127,0,132.817,17.9796,0,-0.170908,1,-0.0394511,-1.35294,0,0,[]],10,18,[],[],[0,"Default",0,1]],[[175.528,124.953,0,200,59,0,-0.176855,1,0,0,0,0,[]],11,19,[],[],["Text",0,"bold 16pt Arial Black","rgb(198,198,198)",0,0,0,0,0]]],[]]],[],[]],["Menu_save",320,480,u,"eve_menu_load",0x8d9b1b9285139,[["Background",
0,446260687336569,p,[0,0,17],u,1,1,1,u,1,0,0,[[[191,-41,0,8,8,0,1.5708,1,0.5,0.5,0,0,[]],5,20,[],[[400,0,0,0,1,1],[0]],[0,"Default",0,1]],[[164,229,0,278.722,39.817,0,0,1,0.500882,0.506173,0,0,[]],15,8,[],[],[0,"Default",0,1]]],[]],["UI",1,0xca68da9ef3613,p,[255,255,255],p,0,0,1,u,1,0,0,[[[163,73,0,276.916,78.782,0,-0.174533,1,0.505963,0.51497,0,0,[]],6,21,[],[[1,8,0,1,0,0,0,5,0],[1,1,0,4,0,0,0,5,0]],[0,"Default",0,1]],[[162,327,0,259.591,29.469,0,0,1,0.494157,1.26471,0,0,[]],8,23,[],[],[0,"Default",
0,1]],[[277,434,0,43.854,48.228,0,0,1,0.426593,0.420655,0,0,[]],9,24,[],[],[0,"Default",0,1]],[[24,127,0,132.817,17.98,0,-0.170908,1,-0.0394511,-1.35294,0,0,[]],10,25,[],[],[0,"Default",0,1]],[[175.528,124.953,0,200,59,0,-0.176855,1,0,0,0,0,[]],11,26,[],[],["Text",0,"bold 16pt Arial Black","rgb(198,198,198)",0,0,0,0,0]]],[]]],[],[]]],[["eve_fase",[[1,"LVL",0,1,u,u,0xaec76a22f7d38],[1,"PlayerHP",0,100,u,u,5127290390453705],[0,r,u,5008803413810197,[[2,N.prototype.O.hy,r,0,u,u,u,8530802855200014],[-1,
E.prototype.O.Tx,r,0,u,u,u,7022419240693738,[[7,[19,E.prototype.ba.kg,[[20,0,K.prototype.ba.Dl,u,r],[20,0,K.prototype.ba.bk,u,r],[20,2,N.prototype.ba.Dl,u,r],[20,2,N.prototype.ba.bk,u,r]]]],[8,5],[7,[6,[0,300],[19,E.prototype.ba.Da]]]]]],[[0,K.prototype.K.my,r,0x5091523bd4498,[[0,[19,E.prototype.ba.L,[[20,0,K.prototype.ba.Dl,u,r],[20,0,K.prototype.ba.bk,u,r],[20,2,N.prototype.ba.Dl,u,r],[20,2,N.prototype.ba.bk,u,r]]]],[0,[6,[0,300],[19,E.prototype.ba.Da]]]]]]],[0,r,u,9161080742411292,[[-1,E.prototype.O.zn,
r,0,u,u,u,0x564b5b2902a3a,[[0,[23,"LVL"]]]],[-1,E.prototype.O.Ay,r,0,u,u,u,8192798668429169,[[4,3]]]],[[3,K.prototype.K.ou,r,5611996518210367,[[4,4],[5,[2,"Game"]],[7,[0,1]]]]]],[0,r,u,9173788929998404,[[-1,E.prototype.O.zn,r,0,u,u,u,7130273202174877,[[0,[0,2]]]]],[[-1,E.prototype.K.Mi,r,0xcac36820d0a01,[[4,3],[5,[2,"Game"]],[0,[19,E.prototype.ba.random,[[0,20],[0,300]]]],[0,[0,-20]]]]]],[0,r,u,6317579015360202,[[3,K.prototype.O.Ht,r,0,u,u,u,8565349247413042,[[8,2],[0,[20,0,K.prototype.ba.bk,u,r]]]],
[-1,E.prototype.O.zn,r,0,u,u,u,0x9a61f456e7f8e,[[0,[1,0.1]]]]],[[0,K.prototype.K.ou,r,4820905607475599,[[4,1],[5,[2,"Game"]],[7,[0,1]]]]]],[0,r,u,0x7113fe1e61ea7,[[1,K.prototype.O.pl,r,0,u,u,p,8415902991166046,[[4,3]]]],[[3,K.prototype.K.My,r,0x856678579f3f,[[10,0],[7,[0,2]]]],[1,K.prototype.K.yb,r,7718824469173489],[18,ac.prototype.K.Play,r,5048295379611297,[[2,["airshot1",u]],[3,0],[0,[23,"fx"]],[1,[2,""]]]],[-1,E.prototype.K.Sp,r,0xbb29104da6163,[[11,"gscore"],[7,[0,3]]]]]],[0,r,u,0x7359cd2d3ddb1,
[[3,K.prototype.O.Ux,r,0,u,u,u,8235145396607119,[[10,0],[8,3],[7,[0,0]]]]],[[3,K.prototype.K.yb,r,9371085995428698],[-1,E.prototype.K.Sp,r,9785468486167896,[[11,"gscore"],[7,[0,100]]]],[18,ac.prototype.K.Play,r,847742954749456,[[2,["android1",u]],[3,0],[0,[23,"fx"]],[1,[2,""]]]]]],[0,r,u,7040391752183047,[[4,K.prototype.O.pl,r,0,u,u,p,4529867595000245,[[4,0]]]],[[4,K.prototype.K.yb,r,0xb481b7edf41b3],[-1,E.prototype.K.qu,r,0x3b1b7e8b4ab92,[[11,"PlayerHP"],[7,[0,10]]]],[17,K.prototype.K.nu,r,6631328559110865,
[[0,[23,"PlayerHP"]]]],[18,ac.prototype.K.Play,r,4733208864445461,[[2,["explosion 5",u]],[3,0],[0,[23,"fx"]],[1,[2,""]]]]]],[0,r,u,0x63ec450302360,[[3,K.prototype.O.Ht,r,0,u,u,u,0x98fe03ae9c30,[[8,5],[0,[19,E.prototype.ba.vk]]]],[3,K.prototype.O.iy,r,0,u,u,u,0x5c34e3ff0638d]],[[3,K.prototype.K.yb,r,7614358968735647],[-1,E.prototype.K.qu,r,6838520947596842,[[11,"gscore"],[7,[0,30]]]]]],[0,r,u,9592432775551924,[[-1,E.prototype.O.df,r,1,u,u,u,0xe6781888367a]],[[5,K.prototype.K.yb,r,0x856ff18f720b3],
[16,bc.prototype.K.Vi,r,0xadfeb08770a75,[[1,[2,"polygon_powerregular"]],[1,[2,"stylesheet.css"]]]],[18,ac.prototype.K.Play,r,7966733199030895,[[2,["mattoglseby - 3",p]],[3,1],[0,[23,"vol"]],[1,[2,"audio"]]]],[28,Ye.prototype.K.Hy,"Physics",8007036154371245,[[0,[0,2]]]]]],[0,r,u,6913014017873391,[[-1,E.prototype.O.df,r,1,u,u,u,0xfcab55baf155e],[-1,E.prototype.O.ul,r,0,p,u,u,0x8da4c47593153,[[0,[0,50]]]]],[[-1,E.prototype.K.Mi,r,5883125619425789,[[4,5],[5,[2,"Background"]],[0,[19,E.prototype.ba.random,
[[19,E.prototype.ba.um]]]],[0,[19,E.prototype.ba.random,[[19,E.prototype.ba.vk]]]]]],[5,cc.prototype.K.Zj,"Bullet",5957484585323604,[[0,[19,E.prototype.ba.random,[[0,10],[0,80]]]]]],[5,K.prototype.K.Al,r,0x886fba0a3d927,[[0,[7,[22,5,"Bullet",cc.prototype.ba.If,u,r],[0,250]]]]],[5,K.prototype.K.yl,r,0xf69c9a1853efd,[[0,[22,5,"Bullet",cc.prototype.ba.If,u,r]]]]]],[0,r,u,0x9e114f83fbb32,[[-1,E.prototype.O.Df,r,0,u,u,u,8302216408553056,[[11,"PlayerHP"],[8,0],[7,[0,0]]]]],[[0,K.prototype.K.yb,r,7673904667960159],
[-1,E.prototype.K.Ri,r,9894387715279872,[[6,"Morte"]]],[18,ac.prototype.K.qq,r,0x8b42dea0e0c60,[[1,[2,"audio"]],[3,0]]]]],[0,r,u,0xac265b5d5c7f1,[[-1,E.prototype.O.Df,r,0,u,u,u,7736677437937808,[[11,"gscore"],[8,4],[7,[23,"Sore"]]]]],[[-1,E.prototype.K.ke,r,0xac53dcce75196,[[11,"Sore"],[7,[23,"gscore"]]]]]],[0,r,u,4815150314137683,[[-1,E.prototype.O.$x,r,0,u,u,u,0x8ad5c5e9d97f4]],[[16,bc.prototype.K.$j,r,7924882989865352,[[7,[10,[2,"Score: "],[23,"gscore"]]]]],[29,bc.prototype.K.$j,r,0x6fce680e08741,
[[7,[23,"PlayerHP"]]]]]],[0,r,u,9840026258606968,[[-1,E.prototype.O.Df,r,0,u,u,u,5635387693479143,[[11,"gscore"],[8,0],[7,[0,500]]]]],[[-1,E.prototype.K.ke,r,9750256513995104,[[11,"LVL"],[7,[1,0.5]]]]]],[0,r,u,0x9171d62c257e3,[[-1,E.prototype.O.Df,r,0,u,u,u,4690305700884054,[[11,"gscore"],[8,0],[7,[0,800]]]]],[[-1,E.prototype.K.ke,r,0xdb18c2d943634,[[11,"LVL"],[7,[1,0.3]]]]]],[0,r,u,5068828766984647,[[-1,E.prototype.O.Df,r,0,u,u,u,8823360504324193,[[11,"gscore"],[8,0],[7,[0,1E3]]]]],[[-1,E.prototype.K.ke,
r,8774144064063805,[[11,"LVL"],[7,[1,0.2]]]]]],[0,r,u,8848061812336582,[[-1,E.prototype.O.zn,r,0,u,u,u,6226299647038903,[[0,[0,10]]]]],[[-1,E.prototype.K.Mi,r,5110124761296422,[[4,28],[5,[2,"Game"]],[0,[19,E.prototype.ba.random,[[0,20],[0,300]]]],[0,[0,-20]]]]]],[0,r,u,5670605185786162,[[0,K.prototype.O.pl,r,0,u,u,p,0xa26e08f981856,[[4,3]]]],[[-1,E.prototype.K.ke,r,5810895163834841,[[11,"PlayerHP"],[7,[0,0]]]]]],[0,r,u,9859721787880188,[[3,K.prototype.O.pl,r,0,u,u,p,5159367806504696,[[4,0]]]],[[-1,
E.prototype.K.ke,r,8453908390204618,[[11,"PlayerHP"],[7,[0,0]]]]]],[0,r,u,0xb6d9846589f55,[[28,K.prototype.O.pl,r,0,u,u,p,299697095127809,[[4,0]]]],[[-1,E.prototype.K.Sp,r,0xdac09ff007d48,[[11,"PlayerHP"],[7,[0,20]]]],[28,K.prototype.K.yb,r,5806508744950432]]],[0,r,u,5795370595836826,[[-1,E.prototype.O.Df,r,0,u,u,u,9887082823398548,[[11,"PlayerHP"],[8,5],[7,[0,100]]]]],[[28,K.prototype.K.yb,r,9313062290549866]]],[0,r,u,0xadb2398af75ce,[[-1,E.prototype.O.Df,r,0,u,u,u,0x5398290aca828,[[11,"PlayerHP"],
[8,4],[7,[0,100]]]]],[[-1,E.prototype.K.ke,r,6024856671135733,[[11,"PlayerHP"],[7,[0,100]]]]]]]],["eve_menu",[[1,"fx",0,-10,u,u,0xf2698d6af8755],[1,"vol",0,0,u,u,0x544bb0a398e28],[1,"load",0,0,u,u,9372737812048262],[1,"gscore",0,0,u,u,0x92c764ef1e7bb],[1,"Sore",0,0,u,u,0x444d954ba1eed],[0,r,u,4651822726355221,[[-1,E.prototype.O.df,r,1,u,u,u,0xf43f1702bfbed]],[[5,K.prototype.K.yb,r,0x6ab3d063bad10],[11,bc.prototype.K.Vi,r,7075004362407678,[[1,[2,"polygon_powerregular"]],[1,[2,"stylesheet.css"]]]],
[11,bc.prototype.K.$j,r,6321268973341602,[[7,[23,"Sore"]]]],[18,ac.prototype.K.Play,r,4785760812281817,[[2,["menu",p]],[3,1],[0,[23,"vol"]],[1,[2,"menu"]]]],[-1,E.prototype.K.jy,r,328539278236602,[[1,[2,"space"]]]]]],[0,r,u,8404856134616696,[[-1,E.prototype.O.df,r,1,u,u,u,8729115321420818],[-1,E.prototype.O.ul,r,0,p,u,u,5158727721427189,[[0,[0,50]]]]],[[-1,E.prototype.K.Mi,r,9914147889280272,[[4,5],[5,[2,"Background"]],[0,[19,E.prototype.ba.random,[[19,E.prototype.ba.um]]]],[0,[19,E.prototype.ba.random,
[[19,E.prototype.ba.vk]]]]]],[5,cc.prototype.K.Zj,"Bullet",0xb4b743dd351f4,[[0,[19,E.prototype.ba.random,[[0,10],[0,80]]]]]],[5,K.prototype.K.Al,r,0xcc36dfa4ce55,[[0,[7,[22,5,"Bullet",cc.prototype.ba.If,u,r],[0,250]]]]],[5,K.prototype.K.yl,r,5725702748570011,[[0,[22,5,"Bullet",cc.prototype.ba.If,u,r]]]]]],[0,r,u,360479432665924,[[2,N.prototype.O.eg,r,0,u,u,u,7410691286844426,[[4,7]]]],[[-1,E.prototype.K.Ri,r,0x95d9898a7ca8f,[[6,"Fase"]]],[18,ac.prototype.K.Gy,r,7044061445290861,[[1,[2,"menu"]],[3,
0]]]]],[0,r,u,5535901092207784,[[2,N.prototype.O.eg,r,0,u,u,u,5287179057822473,[[4,9]]]],[[-1,E.prototype.K.Ri,r,0x6c995b2508601,[[6,"Configs"]]]]]]],["eve_morte",[[0,r,u,6288657815280448,[[2,N.prototype.O.eg,r,0,u,u,u,0xcf87e1753bb19,[[4,14]]]],[[-1,E.prototype.K.Ri,r,0xdd12baeced89,[[6,"Menu_save"]]],[18,ac.prototype.K.qq,r,0xdc0856e0515e1,[[1,[2,"morte"]],[3,0]]]]],[0,r,u,0x597802e99fae2,[[-1,E.prototype.O.df,r,1,u,u,u,0x3cf2920c41ec0]],[[11,bc.prototype.K.$j,r,9171618398351506,[[7,[10,[2,"Your score: "],
[23,"gscore"]]]]],[13,bc.prototype.K.$j,r,0x806f2bfecffa1,[[7,[23,"Sore"]]]],[-1,E.prototype.K.fu,r,0x3d0845807259d,[[1,[2,"space"]]]],[-1,E.prototype.K.ke,r,0x48157f19eb16c,[[11,"PlayerHP"],[7,[0,100]]]],[-1,E.prototype.K.ke,r,9445098901122412,[[11,"gscore"],[7,[0,0]]]],[-1,E.prototype.K.ke,r,0xc5be05a4ca0d1,[[11,"LVL"],[7,[0,1]]]],[18,ac.prototype.K.Play,r,5518522364025479,[[2,["morte",p]],[3,1],[0,[23,"vol"]],[1,[2,"morte"]]]]]],[0,r,u,5877513002634355,[[-1,E.prototype.O.df,r,1,u,u,u,0x4661775a96ae6]],
[[5,K.prototype.K.yb,r,9288364587540340],[11,bc.prototype.K.Vi,r,875698999788028,[[1,[2,"polygon_powerregular"]],[1,[2,"stylesheet.css"]]]],[13,bc.prototype.K.Vi,r,0x98f83cdac24d0,[[1,[2,"polygon_powerregular"]],[1,[2,"stylesheet.css"]]]]]],[0,r,u,9438363565698692,[[-1,E.prototype.O.df,r,1,u,u,u,6258139452446762],[-1,E.prototype.O.ul,r,0,p,u,u,0xf49eeb212c7e3,[[0,[0,50]]]]],[[-1,E.prototype.K.Mi,r,8314592285456273,[[4,5],[5,[2,"Background"]],[0,[19,E.prototype.ba.random,[[19,E.prototype.ba.um]]]],
[0,[19,E.prototype.ba.random,[[19,E.prototype.ba.vk]]]]]],[5,cc.prototype.K.Zj,"Bullet",0xb394df8c0bfe5,[[0,[19,E.prototype.ba.random,[[0,10],[0,80]]]]]],[5,K.prototype.K.Al,r,0xd4a508ca18e58,[[0,[7,[22,5,"Bullet",cc.prototype.ba.If,u,r],[0,250]]]]],[5,K.prototype.K.yl,r,8101452916177126,[[0,[22,5,"Bullet",cc.prototype.ba.If,u,r]]]]]]]],["eve_menu_load",[[0,r,u,0x3e4f756841d26,[[-1,E.prototype.O.df,r,1,u,u,u,6295163310347046]],[[5,K.prototype.K.yb,r,0xbc660d079eddd],[11,bc.prototype.K.Vi,r,8030517910427475,
[[1,[2,"polygon_powerregular"]],[1,[2,"stylesheet.css"]]]],[11,bc.prototype.K.$j,r,0xe2cc489df8c2c,[[7,[23,"Sore"]]]],[-1,E.prototype.K.fu,r,5389424090080812,[[1,[2,"space"]]]],[18,ac.prototype.K.Play,r,0xa17e516623614,[[2,["menu",p]],[3,1],[0,[23,"vol"]],[1,[2,"menu"]]]]]],[0,r,u,0x42feeeff06242,[[-1,E.prototype.O.df,r,1,u,u,u,7635056927743045],[-1,E.prototype.O.ul,r,0,p,u,u,6271720710360971,[[0,[0,50]]]]],[[-1,E.prototype.K.Mi,r,0x52e06bdb657c0,[[4,5],[5,[2,"Background"]],[0,[19,E.prototype.ba.random,
[[19,E.prototype.ba.um]]]],[0,[19,E.prototype.ba.random,[[19,E.prototype.ba.vk]]]]]],[5,cc.prototype.K.Zj,"Bullet",8682351752697355,[[0,[19,E.prototype.ba.random,[[0,10],[0,80]]]]]],[5,K.prototype.K.Al,r,595295552787088,[[0,[7,[22,5,"Bullet",cc.prototype.ba.If,u,r],[0,250]]]]],[5,K.prototype.K.yl,r,8853496864638063,[[0,[22,5,"Bullet",cc.prototype.ba.If,u,r]]]]]],[0,r,u,0xa08c5e02cf151,[[2,N.prototype.O.eg,r,0,u,u,u,661975295079683,[[4,15]]]],[[-1,E.prototype.K.Ri,r,0xb6066465b63ae,[[6,"Fase"]]],[18,
ac.prototype.K.qq,r,941996032237159,[[1,[2,"menu"]],[3,0]]]]],[0,r,u,6498800239232576,[[2,N.prototype.O.eg,r,0,u,u,u,0x61119c946382,[[4,9]]]],[[-1,E.prototype.K.Ri,r,0xeb3d450d49201,[[6,"Configs"]]]]]]],["eve_config",[[0,r,u,0xd0f7109c5d5e4,[[-1,E.prototype.O.df,r,1,u,u,u,7819230733526019]],[[5,K.prototype.K.yb,r,0xd0007d59035a5],[11,bc.prototype.K.Vi,r,7486912403853718,[[1,[2,"polygon_powerregular"]],[1,[2,"stylesheet.css"]]]],[13,bc.prototype.K.Vi,r,0x9d01d8b00b727,[[1,[2,"polygon_powerregular"]],
[1,[2,"stylesheet.css"]]]]]],[0,r,u,667692318870346,[[-1,E.prototype.O.df,r,1,u,u,u,9843432849939480],[-1,E.prototype.O.ul,r,0,p,u,u,0xfd455ff463e33,[[0,[0,50]]]]],[[-1,E.prototype.K.Mi,r,0x789a84dddf82c,[[4,5],[5,[2,"Background"]],[0,[19,E.prototype.ba.random,[[19,E.prototype.ba.um]]]],[0,[19,E.prototype.ba.random,[[19,E.prototype.ba.vk]]]]]],[5,cc.prototype.K.Zj,"Bullet",0xfcf2837412f69,[[0,[19,E.prototype.ba.random,[[0,10],[0,80]]]]]],[5,K.prototype.K.Al,r,5456094854257292,[[0,[7,[22,5,"Bullet",
cc.prototype.ba.If,u,r],[0,250]]]]],[5,K.prototype.K.yl,r,8713688858538061,[[0,[22,5,"Bullet",cc.prototype.ba.If,u,r]]]]]],[0,r,u,46547178705744,[[2,N.prototype.O.eg,r,0,u,u,u,9232809574280352,[[4,22]]]],[[-1,E.prototype.K.Ri,r,0x80b0dea1acbea,[[6,"Menu_save"]]]]],[0,r,u,0x500db255ee9f5,[[2,N.prototype.O.eg,r,0,u,u,u,397048375047998,[[4,24]]]],[[-1,E.prototype.K.ke,r,0xc4907988456db,[[11,"fx"],[7,[0,-10]]]]]],[0,r,u,8805706612305673,[[2,N.prototype.O.eg,r,0,u,u,u,7772638890755594,[[4,25]]]],[[-1,
E.prototype.K.ke,r,8266556528751576,[[11,"fx"],[7,[0,-1E3]]]]]],[0,r,u,6214469742414575,[[-1,E.prototype.O.Df,r,0,u,u,u,0xeed1e9560f9d,[[11,"fx"],[8,0],[7,[0,-1E3]]]]],[[24,K.prototype.K.Sh,r,8949785456054382,[[1,[2,"a2"]],[3,1]]],[25,K.prototype.K.Sh,r,832496890953684,[[1,[2,"a2"]],[3,1]]]]],[0,r,u,6022289925565229,[[-1,E.prototype.O.Df,r,0,u,u,u,0xdc97e3d2c34ea,[[11,"fx"],[8,0],[7,[0,-10]]]]],[[24,K.prototype.K.Sh,r,47836433357593,[[1,[2,"a"]],[3,1]]],[25,K.prototype.K.Sh,r,0x90a58ec4e36f5,[[1,
[2,"a"]],[3,1]]]]],[0,r,u,4754788931932982,[[2,N.prototype.O.eg,r,0,u,u,u,0x6b4cbf7d54c01,[[4,26]]]],[[-1,E.prototype.K.ke,r,7231379651697216,[[11,"vol"],[7,[0,0]]]]]],[0,r,u,0xde960242ddcaa,[[2,N.prototype.O.eg,r,0,u,u,u,0x6865d7e580be0,[[4,27]]]],[[-1,E.prototype.K.ke,r,7259049781010253,[[11,"vol"],[7,[0,-1E3]]]]]],[0,r,u,8492740301569478,[[-1,E.prototype.O.Df,r,0,u,u,u,8399330119213007,[[11,"vol"],[8,0],[7,[0,0]]]]],[[26,K.prototype.K.Sh,r,9842566065332298,[[1,[2,"a"]],[3,1]]],[27,K.prototype.K.Sh,
r,0x92ccbeb4ce93e,[[1,[2,"a"]],[3,1]]]]],[0,r,u,9512982481206408,[[-1,E.prototype.O.Df,r,0,u,u,u,4618004483054477,[[11,"vol"],[8,0],[7,[0,-1E3]]]]],[[26,K.prototype.K.Sh,r,9565122853512100,[[1,[2,"a2"]],[3,1]]],[27,K.prototype.K.Sh,r,5933595010474917,[[1,[2,"a2"]],[3,1]]]]]]]],"media/",u,320,480,4,p,p,p,"1.0",1,u,0,u,42,u,[]]};
