hfmjryj

Subtitle

// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com 'use strict';var g=!0,l=null,p=!1;function x(){return function(){}}function E(b){return function(){return this[b]}}function J(b){return function(){return b}}var ca,da,ea,P,ga,ha,ia,ja,ka,la,ma,na,oa,pa,qa,ra,sa,U,ta,ua,V,xa,ya,za,Ba,Ca,Da,Ea,Ia,Ja,Ka,La,Ma,Na,Oa,Pa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,cb,db,eb,fb,gb,hb,ib,jb,kb,pb,qb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(b){return b.__proto__}:function(b){return b.constructor.prototype}); (function(){function b(c,h,d,a){this.set(c,h,d,a)}function k(){this.ab=this.$a=this.cb=this.bb=this.hb=this.gb=this.Aa=this.za=0}function f(){this.nd={};this.tg=0;this.Hf=[];this.Tf=g}function e(){this.Ta=this.yi=this.y=this.$i=0}function a(c){this.pb=[];this.Ng(c)}ca=function(c){window.console&&window.console.log&&window.console.log(c)};da=function(c){return"undefined"===typeof c};ea=function(c){return"number"===typeof c};P=function(c){return"string"===typeof c};ga=function(c){return 0c?-c:c};ia=function(c,h){return c>h?c:h};ja=function(c,h){return cia(b,r)||ia(h,a)ia(m,y))return p;var t=b-c+r-d,v=m-h+y-a;c=d-c;h=a-h;b=r-b;m=y-m;y=ha(h*b-m*c);return ha(b*v-m*t)<=y&&ha(c*v-h*t)<=y};b.prototype.set=function(c,h,d,a){this.left=c;this.top=h;this.right=d;this.bottom=a};b.prototype.width=function(){return this.right-this.left};b.prototype.height= function(){return this.bottom-this.top};b.prototype.offset=function(c,h){this.left+=c;this.top+=h;this.right+=c;this.bottom+=h;return this};b.prototype.cq=function(c){return!(c.rightthis.right||c.top>this.bottom)};b.prototype.Jc=function(c,h){return c>=this.left&&c<=this.right&&h>=this.top&&h<=this.bottom};na=b;k.prototype.Fk=function(c){this.za=c.left;this.Aa=c.top;this.gb=c.right;this.hb=c.top;this.bb=c.right;this.cb=c.bottom;this.$a=c.left;this.ab=c.bottom}; k.prototype.zn=function(c,h){if(0===h)this.Fk(c);else{var d=Math.sin(h),a=Math.cos(h),b=c.left*d,m=c.top*d,r=c.right*d,d=c.bottom*d,y=c.left*a,t=c.top*a,v=c.right*a,a=c.bottom*a;this.za=y-m;this.Aa=t+b;this.gb=v-m;this.hb=t+r;this.bb=v-d;this.cb=a+r;this.$a=y-d;this.ab=a+b}};k.prototype.offset=function(c,h){this.za+=c;this.Aa+=h;this.gb+=c;this.hb+=h;this.bb+=c;this.cb+=h;this.$a+=c;this.ab+=h;return this};k.prototype.yl=function(c){c.left=ja(ja(this.za,this.gb),ja(this.bb,this.$a));c.top=ja(ja(this.Aa, this.hb),ja(this.cb,this.ab));c.right=ia(ia(this.za,this.gb),ia(this.bb,this.$a));c.bottom=ia(ia(this.Aa,this.hb),ia(this.cb,this.ab))};k.prototype.Jc=function(c,h){var d=this.gb-this.za,a=this.hb-this.Aa,b=this.bb-this.za,m=this.cb-this.Aa,r=c-this.za,y=h-this.Aa,t=d*d+a*a,v=d*b+a*m,a=d*r+a*y,s=b*b+m*m,G=b*r+m*y,A=1/(t*s-v*v),d=(s*a-v*G)*A,t=(t*G-v*a)*A;if(0<=d&&0d+t)return g;d=this.$a-this.za;a=this.ab-this.Aa;t=d*d+a*a;v=d*b+a*m;a=d*r+a*y;A=1/(t*s-v*v);d=(s*a-v*G)*A;t=(t*G-v*a)*A;return 0<= d&&0d+t};k.prototype.Fd=function(c,h){switch(c){case 0:return h?this.za:this.Aa;case 1:return h?this.gb:this.hb;case 2:return h?this.bb:this.cb;case 3:return h?this.$a:this.ab;case 4:return h?this.za:this.Aa;default:return h?this.za:this.Aa}};k.prototype.Mm=function(){return(this.za+this.gb+this.bb+this.$a)/4};k.prototype.Nm=function(){return(this.Aa+this.hb+this.cb+this.ab)/4};k.prototype.bq=function(c){var h=c.Mm(),d=c.Nm();if(this.Jc(h,d))return g;h=this.Mm();d=this.Nm();if(c.Jc(h,d))return g; var a,b,m,r,y,t,v,s;for(v=0;4>v;v++)for(s=0;4>s;s++)if(h=this.Fd(v,g),d=this.Fd(v,p),a=this.Fd(v+1,g),b=this.Fd(v+1,p),m=c.Fd(s,g),r=c.Fd(s,p),y=c.Fd(s+1,g),t=c.Fd(s+1,p),ma(h,d,a,b,m,r,y,t))return g;return p};oa=k;pa=function(c,h){for(var d in h)h.hasOwnProperty(d)&&(c[d]=h[d]);return c};qa=function(c,h){var d,a;h=la(h);if(!(0>h||h>=c.length))if(0===h)c.shift();else if(h===c.length-1)c.pop();else{d=h;for(a=c.length-1;dc&&(c+=360);return c};V=function(c){c%=2*ka;0>c&&(c+=2*ka);return c};xa=function(c){return ua(ta(c))};ya=function(c){return V(U(c))};za=function(c,d,a,b){return Math.atan2(b-d,a-c)};Ba=function(c,d){if(c===d)return 0;var a=Math.sin(c),b=Math.cos(c),f=Math.sin(d),m=Math.cos(d),a=a*f+b*m;return 1<=a?0:-1>=a?ka:Math.acos(a)}; Ca=function(c,d,a){var b=Math.sin(c),f=Math.cos(c),m=Math.sin(d),r=Math.cos(d);return Math.acos(b*m+f*r)>a?0=b*f-a*m};Ea=function(c,d,a,b){c=a-c;d=b-d;return Math.sqrt(c*c+d*d)};Ia=function(c,d){return!c!==!d};Ja=function(c){for(var d in c)if(c.hasOwnProperty(d))return g;return p};Ka=function(c){for(var d in c)c.hasOwnProperty(d)&&delete c[d]};La=function(){if("undefined"!==typeof window.performance){var c= window.performance;if("undefined"!==typeof c.now)return c.now();if("undefined"!==typeof c.webkitNow)return c.webkitNow();if("undefined"!==typeof c.msNow)return c.msNow()}return Date.now()};f.prototype.contains=function(c){return this.nd.hasOwnProperty(c.toString())};f.prototype.add=function(c){var d=c.toString();this.nd.hasOwnProperty(d)||(this.nd[d]=c,this.tg++,this.Tf=p);return this};f.prototype.remove=function(c){c=c.toString();this.nd.hasOwnProperty(c)&&(delete this.nd[c],this.tg--,this.Tf=p); return this};f.prototype.clear=function(){Ka(this.nd);this.tg=0;this.Hf.length=0;this.Tf=g;return this};f.prototype.lg=function(){return 0===this.tg};f.prototype.Sn=function(){if(!this.Tf){this.Hf.length=this.tg;var c,d=0;for(c in this.nd)this.nd.hasOwnProperty(c)&&(this.Hf[d++]=this.nd[c]);this.Tf=g}};f.prototype.Rq=function(){this.Sn();return this.Hf.slice(0)};f.prototype.Pe=function(){this.Sn();return this.Hf};Ma=f;e.prototype.add=function(c){this.y=c-this.$i;this.yi=this.Ta+this.y;this.$i=this.yi- this.Ta-this.y;this.Ta=this.yi};e.prototype.reset=function(){this.Ta=this.yi=this.y=this.$i=0};Na=e;Oa=function(c){return c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};a.prototype.Ng=function(c){this.kn=c;this.sd=c.length/2;this.pb.length=c.length;this.hh=this.Uf=-1;this.zl=0};a.prototype.pg=function(){return!this.kn.length};a.prototype.ti=function(c,d,a,b,f){this.pb.length=8;this.sd=4;var m=this.pb;m[0]=c.za-d;m[1]=c.Aa-a;m[2]=c.gb-d;m[3]=c.hb-a;m[4]=c.bb-d;m[5]=c.cb-a;m[6]=c.$a-d;m[7]=c.ab-a;this.Uf= b;this.hh=f};a.prototype.yn=function(c){this.sd=c.sd;ra(this.pb,c.pb)};a.prototype.Sf=function(c,d,a){if(!(this.Uf===c&&this.hh===d&&this.zl===a)){this.Uf=c;this.hh=d;this.zl=a;var b,f,m,r=0,y=1,t=this.kn,v=this.pb;0!==a&&(r=Math.sin(a),y=Math.cos(a));a=0;for(b=this.sd;a=c||11<=c?"source-over":d[c-1]};Sa=function(c,d,a){if(a)switch(c.qb=a.ONE,c.kb=a.ONE_MINUS_SRC_ALPHA,d){case 1:c.qb=a.ONE;c.kb=a.ONE;break;case 3:c.qb=a.ONE;c.kb=a.ZERO;break;case 4:c.qb=a.ONE_MINUS_DST_ALPHA;c.kb=a.ONE;break;case 5:c.qb=a.DST_ALPHA;c.kb=a.ZERO;break;case 6:c.qb=a.ZERO;c.kb=a.SRC_ALPHA;break;case 7:c.qb=a.ONE_MINUS_DST_ALPHA;c.kb=a.ZERO;break;case 8:c.qb=a.ZERO;c.kb=a.ONE_MINUS_SRC_ALPHA;break;case 9:c.qb=a.DST_ALPHA;c.kb=a.ONE_MINUS_SRC_ALPHA;break;case 10:c.qb= a.ONE_MINUS_DST_ALPHA,c.kb=a.SRC_ALPHA}};Ta=function(c){return Math.round(1E6*c)/1E6}})();var rb="undefined"!==typeof Float32Array?Float32Array:Array;function sb(b){var k=new rb(3);b&&(k[0]=b[0],k[1]=b[1],k[2]=b[2]);return k}function tb(b){var k=new rb(16);b&&(k[0]=b[0],k[1]=b[1],k[2]=b[2],k[3]=b[3],k[4]=b[4],k[5]=b[5],k[6]=b[6],k[7]=b[7],k[8]=b[8],k[9]=b[9],k[10]=b[10],k[11]=b[11],k[12]=b[12],k[13]=b[13],k[14]=b[14],k[15]=b[15]);return k} function ub(b,k){k[0]=b[0];k[1]=b[1];k[2]=b[2];k[3]=b[3];k[4]=b[4];k[5]=b[5];k[6]=b[6];k[7]=b[7];k[8]=b[8];k[9]=b[9];k[10]=b[10];k[11]=b[11];k[12]=b[12];k[13]=b[13];k[14]=b[14];k[15]=b[15]}function vb(b,k){var f=k[0],e=k[1];k=k[2];b[0]*=f;b[1]*=f;b[2]*=f;b[3]*=f;b[4]*=e;b[5]*=e;b[6]*=e;b[7]*=e;b[8]*=k;b[9]*=k;b[10]*=k;b[11]*=k} function wb(b,k,f,e){e||(e=tb());var a,d,c,h,w,n,q,m,r=b[0],y=b[1];b=b[2];d=f[0];c=f[1];a=f[2];f=k[1];n=k[2];r===k[0]&&y===f&&b===n?(b=e,b[0]=1,b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=1,b[6]=0,b[7]=0,b[8]=0,b[9]=0,b[10]=1,b[11]=0,b[12]=0,b[13]=0,b[14]=0,b[15]=1):(f=r-k[0],n=y-k[1],q=b-k[2],m=1/Math.sqrt(f*f+n*n+q*q),f*=m,n*=m,q*=m,k=c*q-a*n,a=a*f-d*q,d=d*n-c*f,(m=Math.sqrt(k*k+a*a+d*d))?(m=1/m,k*=m,a*=m,d*=m):d=a=k=0,c=n*d-q*a,h=q*k-f*d,w=f*a-n*k,(m=Math.sqrt(c*c+h*h+w*w))?(m=1/m,c*=m,h*=m,w*=m):w=h=c=0, e[0]=k,e[1]=c,e[2]=f,e[3]=0,e[4]=a,e[5]=h,e[6]=n,e[7]=0,e[8]=d,e[9]=w,e[10]=q,e[11]=0,e[12]=-(k*r+a*y+d*b),e[13]=-(c*r+h*y+w*b),e[14]=-(f*r+n*y+q*b),e[15]=1)} (function(){function b(d){this.height=this.width=0;this.Al=sb([0,0,100]);this.Jm=sb([0,0,0]);this.Pn=sb([0,1,0]);this.dl=sb([1,1,1]);this.Yj=tb();this.rc=tb();this.Bm=tb();this.ej=tb();this.G=d;this.mm()}function k(d,c,a){this.G=d;this.Og=c;this.name=a;this.qc=d.getAttribLocation(c,"aPos");this.Sd=d.getAttribLocation(c,"aTex");this.Hm=d.getUniformLocation(c,"matP");this.pf=d.getUniformLocation(c,"matMV");this.qf=d.getUniformLocation(c,"opacity");this.Im=d.getUniformLocation(c,"samplerFront");this.Zh= d.getUniformLocation(c,"samplerBack");this.of=d.getUniformLocation(c,"destStart");this.nf=d.getUniformLocation(c,"destEnd");this.Vj=d.getUniformLocation(c,"seconds");this.Uj=d.getUniformLocation(c,"pixelWidth");this.Tj=d.getUniformLocation(c,"pixelHeight");this.Sj=d.getUniformLocation(c,"layerScale");this.qf&&d.uniform1f(this.qf,1);this.Im&&d.uniform1i(this.Im,0);this.Zh&&d.uniform1i(this.Zh,1);this.of&&d.uniform2f(this.of,0,0);this.nf&&d.uniform2f(this.nf,1,1);this.qe=p}function f(d,c){this.type= d;this.B=c;this.G=c.G;this.Pc=this.tc=this.Vm=0;this.K=this.Me=l;this.Gk=[]}function e(d){--d;for(var c=1;32>c;c<<=1)d|=d>>c;return d+1}b.prototype.mm=function(){var d=this.G,c;this.Cm=1;this.we=l;this.Il=1;d.clearColor(0,0,0,0);d.clear(d.COLOR_BUFFER_BIT);d.enable(d.BLEND);d.blendFunc(d.ONE,d.ONE_MINUS_SRC_ALPHA);d.disable(d.CULL_FACE);d.disable(d.DEPTH_TEST);this.ns=d.getParameter(d.MAX_TEXTURE_SIZE);this.Dm=d.ONE;this.Am=d.ONE_MINUS_SRC_ALPHA;this.jk=d.createBuffer();d.bindBuffer(d.ARRAY_BUFFER, this.jk);this.Wg=Array(4);this.Tg=Array(4);for(c=0;4>c;c++)this.Wg[c]=d.createBuffer(),d.bindBuffer(d.ARRAY_BUFFER,this.Wg[c]),this.Tg[c]=d.createBuffer(),d.bindBuffer(d.ARRAY_BUFFER,this.Tg[c]);this.ed=0;this.aq=d.createBuffer();d.bindBuffer(d.ELEMENT_ARRAY_BUFFER,this.aq);this.bl=new Float32Array(16E3);this.Pk=new Float32Array(16E3);this.sq=new Float32Array(32E3);for(var a=new Uint16Array(12E3),b=c=0;12E3>c;)a[c++]=b,a[c++]=b+1,a[c++]=b+2,a[c++]=b,a[c++]=b+2,a[c++]=b+3,b+=4;d.bufferData(d.ELEMENT_ARRAY_BUFFER, a,d.STATIC_DRAW);this.kk=this.Yc=0;this.Sa=[];c=this.dj({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}",""); this.Sa.push(c);c=this.dj({src:"uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"},"attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}","");this.Sa.push(c);for(var f in xb)xb.hasOwnProperty(f)&&this.Sa.push(this.dj(xb[f], "attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}",f));d.activeTexture(d.TEXTURE0);d.bindTexture(d.TEXTURE_2D,l);this.Hd=[];this.bd=0;this.pc=this.Gb=p;this.Jl=this.vg=-1;this.Zf=l;this.sp=d.createFramebuffer();this.qn=l;this.ee=sb([0,0,0]);d=d.getParameter(d.ALIASED_POINT_SIZE_RANGE);this.os=d[0];this.ls=d[1]; this.Wc(0)};b.prototype.dj=function(d,c,a){var b=this.G,f=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(f,d.src);b.compileShader(f);if(!b.getShaderParameter(f,b.COMPILE_STATUS))return b.deleteShader(f),l;var e=b.createShader(b.VERTEX_SHADER);b.shaderSource(e,c);b.compileShader(e);if(!b.getShaderParameter(e,b.COMPILE_STATUS))return b.deleteShader(f),b.deleteShader(e),l;c=b.createProgram();b.attachShader(c,f);b.attachShader(c,e);b.linkProgram(c);if(!b.getProgramParameter(c,b.LINK_STATUS))return b.deleteShader(f), b.deleteShader(e),b.deleteProgram(c),l;b.useProgram(c);b.validateProgram(c);b.deleteShader(f);b.deleteShader(e);a=new k(b,c,a);a.jj=d.jj||0;a.kj=d.kj||0;a.Hl=!!d.Hl;a.ul=!!d.ul;a.H=d.H||[];d=0;for(f=a.H.length;dc;c++)if(this.Bm[c]!==this.rc[c]){d=g;break}d&&(d= this.Ec(),d.type=5,d.K?ub(this.rc,d.K):d.K=tb(this.rc),ub(this.rc,this.Bm),this.pc=this.Gb=p)};f.prototype.Ro=function(){this.G.bindTexture(this.G.TEXTURE_2D,this.Me)};f.prototype.Oo=function(){var d=this.Vm,c=this.B;c.Il=d;c=c.Zf;c.qf&&this.G.uniform1f(c.qf,d)};f.prototype.Lo=function(){this.G.drawElements(this.G.TRIANGLES,this.Pc,this.G.UNSIGNED_SHORT,2*this.tc)};f.prototype.No=function(){this.G.blendFunc(this.tc,this.Pc)};f.prototype.So=function(){var d,c,a,b=this.B.Sa,f=this.B.Jl;d=0;for(c=b.length;d< c;d++)a=b[d],d===f&&a.pf?(this.G.uniformMatrix4fv(a.pf,p,this.K),a.qe=g):a.qe=p;ub(this.K,this.B.ej)};f.prototype.Mo=function(){var d=this.G,c=this.B;this.Me?(d.bindFramebuffer(d.FRAMEBUFFER,c.sp),d.framebufferTexture2D(d.FRAMEBUFFER,d.COLOR_ATTACHMENT0,d.TEXTURE_2D,this.Me,0)):(d.framebufferTexture2D(d.FRAMEBUFFER,d.COLOR_ATTACHMENT0,d.TEXTURE_2D,l,0),d.bindFramebuffer(d.FRAMEBUFFER,l))};f.prototype.Jo=function(){var d=this.G;0===this.tc?(d.clearColor(this.K[0],this.K[1],this.K[2],this.K[3]),d.clear(d.COLOR_BUFFER_BIT)): (d.enable(d.SCISSOR_TEST),d.scissor(this.K[0],this.K[1],this.K[2],this.K[3]),d.clearColor(0,0,0,0),d.clear(this.G.COLOR_BUFFER_BIT),d.disable(d.SCISSOR_TEST))};f.prototype.Ko=function(){var d=this.G,c=this.B,a=c.Sa[1];d.useProgram(a.Og);!a.qe&&a.pf&&(d.uniformMatrix4fv(a.pf,p,c.ej),a.qe=g);d.enableVertexAttribArray(a.qc);d.bindBuffer(d.ARRAY_BUFFER,c.jk);d.vertexAttribPointer(a.qc,4,d.FLOAT,p,0,0);d.drawArrays(d.POINTS,this.tc/4,this.Pc);a=c.Zf;d.useProgram(a.Og);0<=a.qc&&(d.enableVertexAttribArray(a.qc), d.bindBuffer(d.ARRAY_BUFFER,c.Wg[c.ed]),d.vertexAttribPointer(a.qc,2,d.FLOAT,p,0,0));0<=a.Sd&&(d.enableVertexAttribArray(a.Sd),d.bindBuffer(d.ARRAY_BUFFER,c.Tg[c.ed]),d.vertexAttribPointer(a.Sd,2,d.FLOAT,p,0,0))};f.prototype.Po=function(){var d=this.G,c=this.B,a=c.Sa[this.tc];c.Jl=this.tc;c.Zf=a;d.useProgram(a.Og);!a.qe&&a.pf&&(d.uniformMatrix4fv(a.pf,p,c.ej),a.qe=g);a.qf&&d.uniform1f(a.qf,c.Il);0<=a.qc&&(d.enableVertexAttribArray(a.qc),d.bindBuffer(d.ARRAY_BUFFER,c.Wg[c.ed]),d.vertexAttribPointer(a.qc, 2,d.FLOAT,p,0,0));0<=a.Sd&&(d.enableVertexAttribArray(a.Sd),d.bindBuffer(d.ARRAY_BUFFER,c.Tg[c.ed]),d.vertexAttribPointer(a.Sd,2,d.FLOAT,p,0,0))};f.prototype.Qo=function(){var a,c,b=this.B.Zf,f=this.G;b.Zh&&(f.activeTexture(f.TEXTURE1),f.bindTexture(f.TEXTURE_2D,this.Me),f.activeTexture(f.TEXTURE0));b.Uj&&f.uniform1f(b.Uj,this.K[0]);b.Tj&&f.uniform1f(b.Tj,this.K[1]);b.of&&f.uniform2f(b.of,this.K[2],this.K[3]);b.nf&&f.uniform2f(b.nf,this.K[4],this.K[5]);b.Sj&&f.uniform1f(b.Sj,this.K[6]);b.Vj&&f.uniform1f(b.Vj, La()/1E3);if(b.H.length){a=0;for(c=b.H.length;a"===c.name)&&a.vertexAttribPointer(c.qc,4,a.FLOAT,p,0,0));if(0"!==c.name)&&a.vertexAttribPointer(c.qc,2,a.FLOAT,p,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Tg[this.ed]);a.bufferData(a.ARRAY_BUFFER,this.Pk.subarray(0,this.Yc),a.STREAM_DRAW);c&&(0<=c.Sd&&""!==c.name)&&a.vertexAttribPointer(c.Sd,2,a.FLOAT,p,0,0)}for(var b,a=0,c=this.bd;af?(f*=a,5===h?(h=f/this.Lb,1h&&(h=1/Math.ceil(1/h)),f=this.Lb*h,e=this.Kb*h,s=(r-f)/2,b=(a-e)/2,r=f,a=e):(s=(r-f)/2,r=f)):(e=r/f,5===h?(h=e/this.Kb,1h&&(h=1/Math.ceil(1/h)),f=this.Lb*h,e=this.Kb*h,s=(r-f)/2,b=(a-e)/2,r=f):b=(a-e)/2,a=e),m&&!this.um&&(b=s=0),s=Math.floor(s),b=Math.floor(b),r=Math.floor(r),a=Math.floor(a)):this.um&&(this.Hh&&0===this.Vl)&& (s=Math.floor((r-this.Lb)/2),b=Math.floor((a-this.Kb)/2),r=this.Lb,a=this.Kb);this.mg&&(this.ym&&1=h)h=5E4;a+=h;this.Ad[b].complete||this.Ad[b].loaded?c+=h:d=p}this.He=0==a?0:c/a;return d};b.prototype.go=function(){if(this.ea||this.B){var a=this.ea||this.hk;this.Db&&this.gn();this.He=0;this.Em= -1;if(this.wl())this.Xp();else{var c=Date.now()-this.Qg,d=1;this.Ih&&(d=this.devicePixelRatio);if(a){if(3!==this.zg&&500<=c&&this.Em!=this.He){a.clearRect(0,0,this.width,this.height);var c=this.width/(2*d),d=this.height/(2*d),b=0===this.zg&&this.lf.complete,s=40,h=0,f=80;b&&(f=this.lf.width,s=f/2,h=this.lf.height/2,a.drawImage(this.lf,la(c-s),la(d-h)));1>=this.zg?(c=la(c-s)+0.5,d=la(d+(h+(b?12:0)))+0.5,a.fillStyle="DodgerBlue",a.fillRect(c,d,Math.floor(f*this.He),6),a.strokeStyle="black",a.strokeRect(c, d,f,6),a.strokeStyle="white",a.strokeRect(c-1,d-1,f+2,8)):2===this.zg&&(a.font="12pt Arial",a.fillStyle="#999",a.ts="middle",b=Math.round(100*this.He)+"%",s=a.measureText?a.measureText(b):l,a.fillText(b,c-(s?s.width:0)/2,d))}this.Em=this.He}setTimeout(function(a){return function(){a.go()}}(this),100)}}};b.prototype.Xp=function(){this.Db&&(this.canvas.parentNode.removeChild(this.Db),this.Db=this.hk=l);this.Qg=Date.now();this.wg=La();var a,c,d;if(this.Zk){a=0;for(c=this.z.length;aa||2===this.xc&&cc||2===b&&da++;)this.Ml(this.Vf);a=0;for(c=this.me.length;ac.kh.length&& c.kh.push(a);c.ae=g}this.Lc.lg()||(this.$=g);this.Lc.clear();this.Dj=p};b.prototype.Gl=function(a,c,d,b){if(a.O){var s=la(Math.random()*a.ci.length);return this.Gl(a.ci[s],c,d,b)}return!a.mc?l:this.Jd(a.mc,c,p,d,b,p)};var w=[];b.prototype.Jd=function(a,c,d,b,s,f){var h,e,m,q;if(!a)return l;var n=this.z[a[1]],k=n.Ia.Qd;if(this.sg&&k&&!n.Ej||k&&!this.B&&11===a[0][11])return l;k||(c=l);var u;n.kh.length?(u=n.kh.pop(),u.Nb=g,n.Ia.ca.call(u,n)):(u=new n.Ia.ca(n),u.Nb=p);u.uid=d&&!f?a[2]:this.Dg++;this.wf[u.uid.toString()]= u;u.ln=this.Qm++;u.jg=0;u.gg=Qb;n.ae=g;m=a[3];if(u.Nb){h=0;for(e=m.length;ha&&(a=0);a>=this.ua.W.length&&(a=this.ua.W.length-1);return this.ua.W[a]}; b.prototype.bj=function(a){var c,d;c=0;for(d=a.length;c=h;)f=1/h,h*=2,a.x+=c*f*(e?1:-1),a.y+=d*f*(e?1:-1),a.u(),this.ub(a,b)?f=e=g:(f=e=p,m=a.x,q=a.y);f&&(a.x=m,a.y=q,a.u())};b.prototype.mn=function(a,c){for(var d=da(c)?100:c,b=0,h=a.x,f=a.y,e=0,m=0,q=0,n=l;b<=d;){switch(e){case 0:m=0;q=-1;b++;break;case 1:m=1;q=-1;break;case 2:m=1;q=0;break;case 3:q=m=1;break;case 4:m=0;q=1;break;case 5:m=-1;q=1;break;case 6:m=-1;q=0;break;case 7:q=m=-1}e=(e+1)%8;a.x=la(h+m*b);a.y=la(f+q*b);a.u();if(!this.ub(a,n)&&(n=this.rb(a), !n))return g}a.x=h;a.y=f;a.u();return p};b.prototype.Bf=function(a,c){a.Id&&c.Id&&this.on.push([a,c])};b.prototype.Bo=function(a,c,d){var b=a.x,h=a.y,f=ia(10,Ea(c,d,b,h)),e=za(c,d,b,h),m=this.rb(a);if(!m)return V(e+ka);var q=m,n,w,k,u,C=U(5);for(n=1;36>n;n++)if(w=e-n*C,a.x=c+Math.cos(w)*f,a.y=d+Math.sin(w)*f,a.u(),!this.ub(a,q)&&(q=this.rb(a),!q)){k=w;break}36===n&&(k=V(e+ka));q=m;for(n=1;36>n;n++)if(w=e+n*C,a.x=c+Math.cos(w)*f,a.y=d+Math.sin(w)*f,a.u(),!this.ub(a,q)&&(q=this.rb(a),!q)){u=w;break}36=== n&&(u=V(e+ka));a.x=b;a.y=h;a.u();if(u===k)return u;a=Ba(u,k)/2;a=Da(u,k)?V(k+a+ka):V(u+a);k=Math.cos(e);e=Math.sin(e);u=Math.cos(a);a=Math.sin(a);c=k*u+e*a;return za(0,0,k-2*c*u,e-2*c*a)};var q=[],m=-1;b.prototype.trigger=function(a,c,d){if(!this.ua)return p;var b=this.ua.nh;if(!b)return p;m++;m===q.length?q.push(new Ma):q[m].clear();a=this.Kn(a,c,b,d);m--;return a};b.prototype.Kn=function(a,c,d,b){var h=q[m];if(h.contains(d))return p;h.add(d);var h=d.lm.Pe(),f=p,e,n,w;e=0;for(n=h.length;e=this.Wj.length&&this.Wj.push([])};b.prototype.tq=function(){this.$h--};b.prototype.Yl=function(){return this.Wj[this.$h]};b.prototype.ok=function(a){this.oh++;this.oh>=this.hj.length&&this.hj.push(new Ya);var c=this.Ab();c.reset(a);return c};b.prototype.dn=function(){this.oh--};b.prototype.Ab= function(){return this.hj[this.oh]};b.prototype.Zl=function(a,c){for(var d,b,h,f,e,m;c;){d=0;for(b=c.uc.length;df||f>=a.ob.length||(a.ob[f]=b[d])); if(h.Qd){f=c.w;a.p.T!==f.l&&(b=a.p,a.p=this.ua.zh(f.l),a.p?(a.p.i.push(a),a.p.Ub=g,sa(b.i,a),b.Ub=g):(a.p=b,this.Zc(a)));a.x=f.x;a.y=f.y;a.width=f.w;a.height=f.h;a.Qe=f.zi;a.n=f.hasOwnProperty("a")?f.a:0;a.opacity=f.hasOwnProperty("o")?f.o:1;a.Bb=f.hasOwnProperty("hX")?f.hX:0.5;a.Cb=f.hasOwnProperty("hY")?f.hY:0.5;a.visible=f.hasOwnProperty("v")?f.v:g;a.Id=f.hasOwnProperty("ce")?f.ce:g;a.Be=f.hasOwnProperty("mts")?f.mts:-1;a.wb=f.hasOwnProperty("bm")?f.bm:0;a.Wf=Ra(a.wb);this.G&&Sa(a,a.wb,this.G); a.u();if(f.hasOwnProperty("fx")){b=0;for(h=f.fx.length;be||(a.Dd[e]=f.fx[b].active,a.Ca[e]=f.fx[b].params)}a.zd()}if(m=c.behs)for(d in m)m.hasOwnProperty(d)&&(f=this.yp(a,parseInt(d,10)),0>f||a.U[f].sb(m[d]));c.data&&a.sb(c.data)};$a=function(a){return new b(document.getElementById(a))};cb=function(a,c){return new b({dc:g,width:a,height:c})};window.cr_createRuntime=$a;window.cr_createDCRuntime=cb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=g;var a=document.createElement("screencanvas")|| document.createElement("canvas");document.body.appendChild(a);a=new b(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});return a}})();window.cr_getC2Runtime=function(){var b=document.getElementById("c2canvas");return b?b.c2runtime:window.c2runtime?window.c2runtime:l};window.cr_sizeCanvas=function(b,k){if(!(0===b||0===k)){var f=window.cr_getC2Runtime();f&&f.setSize(b,k)}}; window.cr_setSuspended=function(b){var k=window.cr_getC2Runtime();k&&k.setSuspended(b)}; (function(){function b(a,d){this.b=a;this.nh=l;this.scrollX=this.b.Lb/2;this.scrollY=this.b.Kb/2;this.scale=1;this.n=0;this.cg=g;this.name=d[0];this.width=d[1];this.height=d[2];this.On=d[3];this.An=d[4];this.T=d[5];var c=d[6],b,f;this.W=[];this.kg=[];b=0;for(f=c.length;b=this.W.length&&(m=this.W.length-1);n.p=this.W[m];n.p.i.push(n);n.p.Ub=g}}a=e.length=0;for(c=this.W.length;ac?n.siblings.push(q.i[c]):q.mc&&(w=this.b.Jd(q.mc,n.p,g,n.x,n.y,g),this.b.ib(), q.Gi(),n.siblings.push(w),e.push(w)))}a=0;for(c=this.re.length;a=this.aa.length?(1===this.aa.length?(d=this.aa[0].index,a.Wc(this.aa[0].fb),a.Cf(l,1/this.b.width,1/this.b.height,0,0,1,1,this.scale,this.Ca[d]),a.ni(this.aa[0].fb)&&(this.b.$=g)):a.Wc(0),a.ud(l),a.Ke(1),a.gc(this.b.Ac),a.wn(),a.Vc(),a.Xc(),d=this.b.width/2,c=this.b.height/2,a.oi(-d,c,d,c,d,-c,-d,-c),a.gc(l)):this.tk(a,l,l,l));a.vq()};b.prototype.fg=function(){return 0< this.aa.length||this.b.Gf?this.b.Ac:l};b.prototype.dm=function(){var a=this.W[0].Fb(),d,c,b;d=1;for(c=this.W.length;dthis.width-d&&(a=this.width-d);athis.height-d&&(a=this.height-d);au&&(u=0);0>D&&(D=0);O>A&&(O=A);H>L&&(H=L);0>C&&(C=0);0>N&&(N=0);ba>A&&(ba=A);B>L&&(B=L);K.left=u/A;K.top=1-D/L;K.right=O/A;K.bottom=1-H/L}else K.left=M.left=0,K.top=M.top=0,K.right=M.right=1,K.bottom=M.bottom=1; R=c&&((c.n||fa)&&a.Hg(f[0].fb)||0!==k||0!==R||1!==c.opacity||c.type.Ia.Om)||d&&!c&&1!==d.opacity;a.wn();if(R){q[v]||(q[v]=a.dd(A,L,this.b.Da));if(q[v].Rf!==A||q[v].Qf!==L)a.deleteTexture(q[v]),q[v]=a.dd(A,L,this.b.Da);a.Wc(0);a.ud(q[v]);G=B-N;a.clearRect(C,L-N-G,ba-C,G);c?c.oc(a):(a.gc(this.b.fc),a.Ke(d.opacity),a.Vc(),a.translate(-F,-aa),a.Xc(),a.Uc(u,H,O,H,O,D,u,D,K));M.left=M.top=0;M.right=M.bottom=1;c&&(t=K.top,K.top=K.bottom,K.bottom=t);v=1;s=0}a.Ke(1);k=f.length-1;var fa=a.mk(f[k].fb),Q=0;m= 0;for(r=f.length;mthis.Sb||q.top>this.Qb)||(c.globalCompositeOperation=e.Wf,e.Mc(c));c.restore();this.Vd&&(a.globalCompositeOperation=this.Wf,a.globalAlpha=this.opacity,a.drawImage(d,0,0))};k.prototype.vk=function(a,d,c){var b=this.Fb();this.Rb=a;this.Tb=d;this.Sb=a+this.b.width*(1/b);this.Qb=d+this.b.height*(1/b);a=this.hd();0!==a&&(c&&(c.translate(this.b.width/2,this.b.height/ 2),c.rotate(-a),c.translate(this.b.width/-2,this.b.height/-2)),this.yd.set(this.Rb,this.Tb,this.Sb,this.Qb),this.yd.offset((this.Rb+this.Sb)/-2,(this.Tb+this.Qb)/-2),this.Jn.zn(this.yd,a),this.Jn.yl(this.yd),this.yd.offset((this.Rb+this.Sb)/2,(this.Tb+this.Qb)/2),this.Rb=this.yd.left,this.Tb=this.yd.top,this.Sb=this.yd.right,this.Qb=this.yd.bottom)};k.prototype.oc=function(a){var d=this.b.width,c=this.b.height,b=0,f=0;if(this.Vd=this.lj||1!==this.opacity||0this.Sb||b.top>this.Qb))if(r.Tn)if(b=r.aa[0].fb,f=r.aa[0].index,1===r.aa.length&&!a.mk(b)&&!a.wq(b)&&(!r.n&&!r.p.hd()||!a.Hg(b))&&1===r.opacity&&!r.type.Ia.Om){a.Wc(b);a.Wd(r.qb,r.kb);a.ni(b)&&(this.b.$=g);var k=0,t=0,v=0,s=0;a.Hg(b)&&(b=r.S,k=this.xa(b.left,b.top,g),t=this.xa(b.left,b.top,p),v=this.xa(b.right,b.bottom,g),b=this.xa(b.right, b.bottom,p),k/=d,t=1-t/c,v/=d,s=1-b/c);a.Cf(this.Vd?this.b.fc:this.da.fg(),1/r.width,1/r.height,k,t,v,s,this.Fb(),r.Ca[f]);r.oc(a)}else this.da.tk(a,this,r,this.Vd?this.b.fc:this.da.fg()),a.Vc(),a.scale(e,e),a.wk(-this.hd()),a.translate((this.Rb+this.Sb)/-2,(this.Tb+this.Qb)/-2),a.Xc();else a.Wc(0),a.Wd(r.qb,r.kb),r.oc(a);this.Vd&&(b=this.aa.length?this.aa[0].fb:0,f=this.aa.length?this.aa[0].index:0,0===this.aa.length||1===this.aa.length&&!a.mk(b)&&1===this.opacity?(1===this.aa.length?(a.Wc(b),a.Cf(this.da.fg(), 1/this.b.width,1/this.b.height,0,0,1,1,this.Fb(),this.Ca[f]),a.ni(b)&&(this.b.$=g)):a.Wc(0),a.ud(this.da.fg()),a.Ke(this.opacity),a.gc(this.b.fc),a.Wd(this.qb,this.kb),a.Vc(),a.Xc(),d=this.b.width/2,c=this.b.height/2,a.oi(-d,c,d,c,d,-c,-d,-c),a.gc(l)):this.da.tk(a,this,l,this.da.fg()))};k.prototype.Ue=function(a){var d=0,c=0,b=this.b.devicePixelRatio;this.b.mg&&0a[1].index&&(c=a[0],a[0]=a[1],a[1]=c):2=y.length&&(y.length=a.length+1);y[a.length]||(y[a.length]=[]);e=y[a.length];c=0;for(d=e.length;c= c.length&&(c.length=this.ze+1),c[this.ze]=a)};q.prototype.pe=function(){var a=this.b.Yl();return!this.parent||this.rg||!a||this.Jh?this.data:this.ze>=a.length||"undefined"===typeof a[this.ze]?this.Fh:a[this.ze]};q.prototype.Ra=function(){this.parent&&(!this.rg&&!this.Jh)&&this.Df(this.Fh)};Za=q;m.prototype.Ja=function(){this.Eh=this.b.ij[this.$p];this.sheet.lm.add(this.Eh);this.Ka=f(this.Ka)};m.prototype.Ra=function(){this.parent&&this.b.Jg(this.b.z);this.Eh.wj||this.Eh.Ra();this.parent&&this.b.Af(this.b.z)}; jb=m;r.prototype.reset=function(a){this.Xb=a;this.Vb=this.xb=0;this.En.length=0;this.gj=this.kf=p};Ya=r})(); (function(){function b(b,e){this.J=b;this.b=b.b;this.type=e[0];this.get=[this.fp,this.bp,this.np,this.qp,this.Vo,this.op,this.jp,this.Yo,this.ip,this.mp,this.Wo,this.lp,this.Zo,this.kp,this.gp,this.hp,this.cp,this.dp,this.Xo,this.pp,this.Ol,this.ep,this.Ol,this.$o][this.type];var a=l;this.Jb=this.H=this.P=this.Na=this.Bi=this.Ya=this.first=this.value=l;this.Za=-1;this.kd=l;this.$k=-1;this.ne=this.Vg=this.yo=l;this.Kg=p;switch(this.type){case 0:case 1:case 2:this.value=e[1];break;case 3:this.first= new hb(b,e[1]);break;case 18:this.first=new hb(b,e[1]);this.Ya=new hb(b,e[2]);this.Bi=new hb(b,e[3]);break;case 19:this.Na=e[1];this.P=[];this.H=[];3===e.length?(a=e[2],this.P.length=a.length+1):this.P.length=1;break;case 20:this.Jb=this.b.z[e[1]];this.Za=-1;this.Na=e[2];this.Kg=e[3];this.kd=e[4]?new hb(b,e[4]):l;this.P=[];this.H=[];6===e.length?(a=e[5],this.P.length=a.length+1):this.P.length=1;break;case 21:this.Jb=this.b.z[e[1]];this.Kg=e[2];this.kd=e[3]?new hb(b,e[3]):l;this.$k=e[4];break;case 22:this.Jb= this.b.z[e[1]];this.yo=this.Jb.xh(e[2]);this.Za=this.Jb.qj(e[2]);this.Na=e[3];this.Kg=e[4];this.kd=e[5]?new hb(b,e[5]):l;this.P=[];this.H=[];7===e.length?(a=e[6],this.P.length=a.length+1):this.P.length=1;break;case 23:this.Vg=e[1],this.ne=l}4<=this.type&&17>=this.type&&(this.first=new hb(b,e[1]),this.Ya=new hb(b,e[2]));if(a){var d,c;d=0;for(c=a.length;de&&(e+=a.length);a=a[e];-1e&&(e+=a.length);a=a[e].ob[this.$k];P(a)?b.Gc(a):b.Y(a);this.J.Oa();return}this.J.Oa()}e%=a.length;0>e&&(e+=a.length);a=a[e];e=0;this.Jb.O&&(e=a.type.rh[this.Jb.Oc]);a=a.ob[this.$k+e];P(a)?b.Gc(a):b.Y(a)};b.prototype.fp=function(b){b.type=pb.Lf;b.data=this.value};b.prototype.bp=function(b){b.type=pb.Kf;b.data=this.value};b.prototype.np=function(b){b.type=pb.Vi;b.data=this.value};b.prototype.qp= function(b){this.first.get(b);b.Va()&&(b.data=-b.data)};b.prototype.Vo=function(b){this.first.get(b);var e=this.J.Qa();this.Ya.get(e);b.Va()&&e.Va()&&(b.data+=e.data,e.hf()&&b.rf());this.J.Oa()};b.prototype.op=function(b){this.first.get(b);var e=this.J.Qa();this.Ya.get(e);b.Va()&&e.Va()&&(b.data-=e.data,e.hf()&&b.rf());this.J.Oa()};b.prototype.jp=function(b){this.first.get(b);var e=this.J.Qa();this.Ya.get(e);b.Va()&&e.Va()&&(b.data*=e.data,e.hf()&&b.rf());this.J.Oa()};b.prototype.Yo=function(b){this.first.get(b); var e=this.J.Qa();this.Ya.get(e);b.Va()&&e.Va()&&(b.data/=e.data,b.rf());this.J.Oa()};b.prototype.ip=function(b){this.first.get(b);var e=this.J.Qa();this.Ya.get(e);b.Va()&&e.Va()&&(b.data%=e.data,e.hf()&&b.rf());this.J.Oa()};b.prototype.mp=function(b){this.first.get(b);var e=this.J.Qa();this.Ya.get(e);b.Va()&&e.Va()&&(b.data=Math.pow(b.data,e.data),e.hf()&&b.rf());this.J.Oa()};b.prototype.Wo=function(b){this.first.get(b);var e=this.J.Qa();this.Ya.get(e);b.Va()?e.Lh()?b.Gc(b.data.toString()+e.data): b.data&&e.data?b.ra(1):b.ra(0):b.Lh()&&(b.data=e.Lh()?b.data+e.data:b.data+(Math.round(1E10*e.data)/1E10).toString());this.J.Oa()};b.prototype.lp=function(b){this.first.get(b);var e=this.J.Qa();this.Ya.get(e);b.Va()&&e.Va()&&(b.data||e.data?b.ra(1):b.ra(0));this.J.Oa()};b.prototype.Xo=function(b){this.first.get(b);b.data?this.Ya.get(b):this.Bi.get(b)};b.prototype.Zo=function(b){this.first.get(b);var e=this.J.Qa();this.Ya.get(e);b.ra(b.data===e.data?1:0);this.J.Oa()};b.prototype.kp=function(b){this.first.get(b); var e=this.J.Qa();this.Ya.get(e);b.ra(b.data!==e.data?1:0);this.J.Oa()};b.prototype.gp=function(b){this.first.get(b);var e=this.J.Qa();this.Ya.get(e);b.ra(b.datae.data?1:0);this.J.Oa()};b.prototype.dp=function(b){this.first.get(b);var e=this.J.Qa();this.Ya.get(e);b.ra(b.data>= e.data?1:0);this.J.Oa()};b.prototype.$o=function(b){var e=this.ne.pe();ea(e)?b.Y(e):b.Gc(e)};hb=b;k.prototype.hf=function(){return this.type===pb.Kf};k.prototype.Va=function(){return this.type===pb.Lf||this.type===pb.Kf};k.prototype.Lh=function(){return this.type===pb.Vi};k.prototype.rf=function(){this.hf()||(this.Lh()&&(this.data=parseFloat(this.data)),this.type=pb.Kf)};k.prototype.ra=function(b){this.type=pb.Lf;this.data=Math.floor(b)};k.prototype.Y=function(b){this.type=pb.Kf;this.data=b};k.prototype.Gc= function(b){this.type=pb.Vi;this.data=b};kb=k;pb={Lf:0,Kf:1,Vi:2}})();function W(b){this.b=b;this.ic=[]} W.prototype.eb=function(){var b={},k,f,e,a,d,c,h,w;b.waits=[];var n=b.waits,q;k=0;for(f=this.ic.length;k=d+a?(b.Z.Mi=d+a,e>=b.Z.Mi+a&&(b.Z.Mi=e),g):p};b.prototype.Re=function(a,b,d){return Zb(a.pe(),b,d)};b.prototype.Un=function(){var a=this.b.Ab();return a.gj?p:!a.kf};b.prototype.kl=J(g);b.prototype.Yn=J(g);b.prototype.Si=J(g);b.prototype.ho=J(g);b.prototype.Ri=J(g);e.j=new b;k.prototype.fl= function(a,b){0===a.al?ea(b)?a.Df(a.pe()+b):a.Df(a.pe()+parseFloat(b)):1===a.al&&a.Df(a.pe()+b.toString())};k.prototype.Se=function(a,b){0===a.al&&(ea(b)?a.Df(a.pe()-b):a.Df(a.pe()-parseFloat(b)))};var a=[],d=[];k.prototype.lo=function(){var a,b,d;a=0;for(b=this.b.Xi.length;a arguments[d]&&(b=arguments[d]);a.Y(b)};f.prototype.le=function(a){a.Y(this.b.le)};f.prototype.de=function(a){a.Y(this.b.de)};f.prototype.time=function(a){a.Y(this.b.ac.Ta)};f.prototype.xd=function(a){a.ra(this.b.xd)};f.prototype.di=function(a){a.ra(this.b.di)};f.prototype.mj=function(a){a.ra(this.b.mj)};f.prototype.n=function(a,b,d,e,f){a.Y(ta(za(b,d,e,f)))};f.prototype.left=function(a,b,d){a.Gc(P(b)?b.substr(0,d):"")};f.prototype.right=function(a,b,d){a.Gc(P(b)?b.substr(b.length-d):"")};f.prototype.replace= function(a,b,d,e){P(b)&&P(d)&&P(e)?a.Gc(b.replace(RegExp(Oa(d),"gi"),e)):a.Gc(P(b)?b:"")};f.prototype.cj=function(a){a.Y(this.b.cj/1E3)};f.prototype.Yh=function(a){a.Y(this.b.Yh)};e.zb=new f;e.Bq=function(){var b,e,f,k,q,m,r=this.b.Ab();b=0;for(f=this.ic.length;bthis.b.ac.Ta)){r.Xb=k.$f;r.Vb=k.Vb;r.xb=0;for(e in k.Ob)k.Ob.hasOwnProperty(e)&&(q=this.b.z[parseInt(e,10)].na(),m=k.Ob[e],q.Ea=m.sn,ra(q.i,m.te),q=m,q.te.length=0,d.push(q));k.$f.zq();this.b.bj(k.Ka);k.Kl= g}e=b=0;for(f=this.ic.length;ba.Sb||b.top>a.Qb)},w.pr=function(){this.Pb();var a=this.S,b=this.b.ua;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},w.ko=function(a,b,c){var d=this.na(), e=d.jd();if(!e.length)return p;var f=e[0],h=f,k=Ea(f.x,f.y,b,c),n,w,F;n=1;for(w=e.length;nk)k=F,h=f;d.gi(h);return g},n.Sr=function(a){this.x!==a&&(this.x=a,this.u())},n.Tr=function(a){this.y!==a&&(this.y=a,this.u())},n.Pr=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.u()},n.Ui=function(a,b){var c=a.Gp(this);if(c){var d;c.eg?(d=c.eg(b,g),c=c.eg(b,p)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.u()}},n.ur=function(a){0!== a&&(this.x+=Math.cos(this.n)*a,this.y+=Math.sin(this.n)*a,this.u())},n.tr=function(a,b){0!==b&&(this.x+=Math.cos(U(a))*b,this.y+=Math.sin(U(a))*b,this.u())},k.pl=function(a){a.Y(this.x)},k.ql=function(a){a.Y(this.y)},k.le=function(a){a.Y(this.b.yh(this))});a&&(w.er=function(a,b){return Zb(this.width,a,b)},w.cr=function(a,b){return Zb(this.height,a,b)},n.ro=function(a){this.width!==a&&(this.width=a,this.u())},n.Nr=function(a){this.height!==a&&(this.height=a,this.u())},n.Qr=function(a,b){if(this.width!== a||this.height!==b)this.width=a,this.height=b,this.u()},k.Wr=function(a){a.Y(this.width)},k.ir=function(a){a.Y(this.height)},k.Zq=function(a){this.Pb();a.Y(this.S.left)},k.br=function(a){this.Pb();a.Y(this.S.top)},k.$q=function(a){this.Pb();a.Y(this.S.right)},k.Yq=function(a){this.Pb();a.Y(this.S.bottom)});d&&(w.Xq=function(a,b){return Ba(this.n,U(b))<=U(a)},w.mr=function(a){return Da(this.n,U(a))},w.kr=function(a,b){var c=ya(a),d=ya(b),e=V(this.n);return Da(d,c)?Da(e,c)&&!Da(e,d):!(!Da(e,c)&&Da(e, d))},n.ll=function(a){a=U(ua(a));!isNaN(a)&&this.n!==a&&(this.n=a,this.u())},n.Gr=function(a){0!==a&&!isNaN(a)&&(this.n+=U(a),this.n=V(this.n),this.u())},n.Hr=function(a){0!==a&&!isNaN(a)&&(this.n-=U(a),this.n=V(this.n),this.u())},n.Ir=function(a,b){var c=Ca(this.n,U(b),U(a));!isNaN(c)&&this.n!==c&&(this.n=c,this.u())},n.Jr=function(a,b,c){a=Ca(this.n,Math.atan2(c-this.y,b-this.x),U(a));!isNaN(a)&&this.n!==a&&(this.n=a,this.u())},n.qo=function(a,b){var c=Math.atan2(b-this.y,a-this.x);!isNaN(c)&&this.n!== c&&(this.n=c,this.u())},k.Wq=function(a){a.Y(xa(this.n))});f||(w.gl=function(a,b,c){return Zb(this.ob[a],b,c)},w.lr=function(a){return this.ob[a]},w.Dr=function(a){var b,c,d,e,f;if(this.b.rj().ff){f=this.na();if(f.Ea){f.Ea=p;f.i.length=0;f.ka.length=0;d=this.i;b=0;for(c=d.length;ba?a=0:1e.p.index||d.p.index===e.p.index&&d.Zb()>e.Zb())e=d}else if(d.p.indexc)){var d=1===a;this.Dd[c]!==d&&(this.Dd[c]=d,this.zd(),this.b.$=g)}}},n.Mr=function(a,b,c){if(this.b.B){var d=this.type.tj(a);0>d||(a=this.type.N[d],d=this.Ca[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.B.Jp(a.fb,b)&&(c/=100),d[b]!==c&&(d[b]= c,a.$c&&(this.b.$=g))))}})}function Sb(){this.Zi=g;this.b.$=g;var b,k;b=0;for(k=this.gh.length;bthis.S.right&&(b=this.S.left,this.S.left=this.S.right,this.S.right=b);this.S.top>this.S.bottom&&(b=this.S.top,this.S.top=this.S.bottom,this.S.bottom=b);this.Zi=p}} function Ub(b,k){return!this.S.Jc(b,k)||!this.jb.Jc(b,k)?p:this.la&&!this.la.pg()?(this.la.Sf(this.width,this.height,this.n),this.la.Jc(b-this.x,k-this.y)):g}function Qb(){this.type.Gi();return this.jg}function Wb(){this.p.Pq();return this.Qe}function Xb(){this.aa.length=0;var b,k;b=0;for(k=this.Dd.length;bf;case 5:return b>=f;default:return p}}var xb={};function X(b){this.b=b} (function(){function b(a){0>a&&(a=0);1a&&(a=0.01);this.mi.gain.value=a;this.li.gain.value=Math.pow(1/a,0.6)*b};v.prototype.shape= function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=af;++f)e=f/32768,e=this.shape(e,c,d),this.jh[32768+f]=e,this.jh[32768-f-1]=-e};v.prototype.lc=function(a){this.M.disconnect();this.M.connect(a);this.L.disconnect();this.L.connect(a)};v.prototype.remove=function(){this.V.disconnect();this.mi.disconnect();this.Li.disconnect();this.li.disconnect();this.M.disconnect(); this.L.disconnect()};v.prototype.Yb=E("V");s.prototype.lc=function(a){this.X.disconnect();this.X.connect(a)};s.prototype.remove=function(){this.X.disconnect()};s.prototype.Yb=E("X");G.prototype.ya=function(){this.X.getFloatFrequencyData(this.up);this.X.getByteTimeDomainData(this.Bn);for(var a=this.X.fftSize,c=0,d=this.Fg=0,e=0;ce&&(e=-e),this.Fgthis.$d.length||this.$d.shift(),this.$d.push(a),this.Oh=this.ba.x,this.Ph=this.ba.y)};A.prototype.em=function(){if(!this.$d.length)return 0;var a,b,c=0;a=0;for(b= this.$d.length;athis.buffer.Ba.duration:this.q.ended;case R:return this.ik;case fa:g}return g};F.prototype.Co=function(){return this.Nd||this.Hc?g:this.ig()}; F.prototype.Dk=function(a){Q===B&&(!this.Rc&&a?(this.Ha||(this.Ha=I.createPanner(),this.Ha.panningModel="number"===typeof this.Ha.panningModel?nb:["equalpower","HRTF","soundfield"][nb],this.Ha.distanceModel="number"===typeof this.Ha.distanceModel?ob:["linear","inverse","exponential"][ob],this.Ha.refDistance=Lb,this.Ha.maxDistance=Mb,this.Ha.rolloffFactor=Nb),this.nb.disconnect(),this.nb.connect(this.Ha),this.Ha.connect(k(this.be)),this.Rc=g):this.Rc&&!a&&(this.Ha.disconnect(),this.nb.disconnect(), this.nb.connect(k(this.be)),this.Rc=p))};F.prototype.Ck=function(a,b,c,d,e,f){this.Rc&&Q===B&&(this.Ha.setPosition(a,b,0),this.Ha.setOrientation(Math.cos(U(c)),Math.sin(U(c)),0),this.Ha.coneInnerAngle=d,this.Ha.coneOuterAngle=e,this.Ha.coneOuterGain=f,this.$m=a,this.an=b,this.Wm=c,this.Xm=d,this.Ym=e,this.Zm=f)};F.prototype.Mg=function(a){this.Rc&&Q===B&&(this.Ga||(this.Ga=new A),this.Ga.Mg(a))};F.prototype.ya=function(a){if(this.Rc&&!(Q!==B||!this.Ga||!this.Ga.Dh()||!this.gf()))this.Ga.ya(a),this.Ha.setPosition(this.Ga.ba.x, this.Ga.ba.y,0),a=0,"undefined"!==typeof this.Ga.ba.n&&(a=this.Ga.ba.n,this.Ha.setOrientation(Math.cos(a),Math.sin(a),0)),this.Ha.setVelocity(this.Ga.fm(),this.Ga.gm(),0)};F.prototype.play=function(b,c,e){var f=this.q;this.qd=b;this.volume=c;e=e||0;switch(this.qa){case H:1!==f.playbackRate&&(f.playbackRate=1);f.volume!==c*va&&(f.volume=c*va);f.loop!==b&&(f.loop=b);f.muted&&(f.muted=p);if(f.currentTime!==e)try{f.currentTime=e}catch(h){}this.q.play();break;case B:this.muted=p;this.Bg=1;if(this.buffer.qa=== B)this.Nd||(this.q=I.createBufferSource(),this.q.buffer=this.buffer.Ba,this.q.connect(this.nb)),this.q.loop=b,this.nb.gain.value=c*va,0===e?a(this.q):d(this.q,e,this.cf());else{1!==f.playbackRate&&(f.playbackRate=1);f.loop!==b&&(f.loop=b);this.nb.gain.value=c*va;if(f.currentTime!==e)try{f.currentTime=e}catch(m){}f.play()}break;case R:(!this.Nd&&this.Hc||0!==e)&&f.seekTo(e);f.play();this.ik=p;break;case fa:D.md?AppMobi.context.playSound(this.src):AppMobi.player.playSound(this.src)}this.playbackRate= 1;this.startTime=D.ac.Ta-e;this.Pd=this.Hc=this.Nd=p};F.prototype.stop=function(){switch(this.qa){case H:this.q.paused||this.q.pause();break;case B:this.buffer.qa===B?c(this.q):this.q.paused||this.q.pause();break;case R:this.q.stop()}this.Hc=g;this.Pd=p};F.prototype.pause=function(){if(!this.Nd&&!this.Hc&&!this.ig()&&!this.Pd){switch(this.qa){case H:this.q.paused||this.q.pause();break;case B:this.buffer.qa===B?(this.Fc=this.uj(),this.qd&&(this.Fc%=this.cf()),c(this.q)):this.q.paused||this.q.pause(); break;case R:this.q.pause()}this.Pd=g}};F.prototype.yq=function(a){this.qa===B&&(this.Rc?(this.Ha.disconnect(),this.Ha.connect(a)):(this.nb.disconnect(),this.nb.connect(a)))};F.prototype.cf=function(){switch(this.qa){case H:if("undefined"!==typeof this.q.duration)return this.q.duration;break;case B:return this.buffer.Ba.duration;case R:return this.q.getDuration()}return 0};F.prototype.uj=function(){var a=this.cf(),b=0;switch(this.qa){case H:"undefined"!==typeof this.q.currentTime&&(b=this.q.currentTime); break;case B:if(this.buffer.qa===B){if(this.Pd)return this.Fc;b=D.ac.Ta-this.startTime}else"undefined"!==typeof this.q.currentTime&&(b=this.q.currentTime)}!this.qd&&b>a&&(b=a);return b};F.prototype.gf=function(){return!this.Pd&&!this.Nd&&!this.Hc&&!this.ig()};F.prototype.Oq=function(){var a=this.volume*va;switch(this.qa){case H:this.q.volume&&this.q.volume!==a&&(this.q.volume=a);break;case B:this.nb.gain.value=a*this.Bg}};F.prototype.Nl=function(a){switch(this.qa){case H:this.q.muted!==!!a&&(this.q.muted= !!a);break;case B:this.Bg=a?0:1,this.nb.gain.value=va*this.volume*this.Bg}};F.prototype.xn=function(a){this.Kj=!!a;this.Nl(this.Jj||this.Kj)};F.prototype.Rn=function(){var a=this.playbackRate;if(1===bb&&!this.qg||2===bb)a*=D.de;switch(this.qa){case H:this.q.playbackRate!==a&&(this.q.playbackRate=a);break;case B:this.buffer.qa===B?this.q.playbackRate.value!==a&&(this.q.playbackRate.value=a):this.q.playbackRate!==a&&(this.q.playbackRate=a)}};F.prototype.Jq=function(a){switch(this.qa){case H:a?this.gf()? (this.q.pause(),this.td=g):this.td=p:this.td&&this.q.play();break;case B:a?this.gf()?(this.buffer.qa===B?(this.Fc=this.uj(),this.qd&&(this.Fc%=this.cf()),c(this.q)):this.q.pause(),this.td=g):this.td=p:this.td&&(this.buffer.qa===B?(this.q=I.createBufferSource(),this.q.buffer=this.buffer.Ba,this.q.connect(this.nb),this.q.loop=this.qd,this.nb.gain.value=va*this.volume*this.Bg,this.startTime=D.ac.Ta-this.Fc,d(this.q,this.Fc,this.cf())):this.q.play());break;case R:a?this.gf()?(this.q.pause(),this.td=g): this.td=p:this.td&&this.q.play()}};C.ca=function(b){this.type=b;D=this.b=b.b;N=this;this.Hb=l;this.yg=-600;I=l;"undefined"!==typeof AudioContext?(Q=B,I=new AudioContext):"undefined"!==typeof webkitAudioContext&&(Q=B,I=new webkitAudioContext);this.b.Mh&&Q===B&&document.addEventListener("touchstart",function(){if(!Ob){var b=I.createBuffer(1,1,22050),c=I.createBufferSource();c.buffer=b;c.connect(I.destination);a(c);Ob=g}},g);Q!==B&&(this.b.Fj?Q=R:this.b.qm&&(Q=fa));Q===R&&(ba=location.href,b=ba.lastIndexOf("/"), -1"!==b&&(a.ji=b,a.Xj=d,a.cl=e),l;m=new F(a,b);S.push(m);return m};var Aa=[];M.prototype.Qi=function(a){return O.toLowerCase()===a.toLowerCase()};C.j=new M;u.prototype.Play=function(a,b,c,d){if(!Ha&&(c=Math.pow(10, c/20),0>c&&(c=0),1this.C&&(this.C= 0);this.C>=this.wa.frames.length&&(this.C=this.wa.frames.length-1);var a=this.wa.frames[this.C];this.la.Ng(a.ki);this.Bb=a.Bb;this.Cb=a.Cb;this.Yf=this.wa.speed;this.gd=this.Ah();this.ie=g;this.ad=0;this.he=g;this.Ve=this.tl="";this.Cl=0;this.aj=-1;var b,c,d,e,f,h,k,a=0;for(b=this.type.Fa.length;athis.C&&(this.C=0);this.C>=this.wa.frames.length&& (this.C=this.wa.frames.length-1);this.Yf=a.cas;this.gd=a.fs;this.ad=a.ar;this.ie=a.hasOwnProperty("ap")?a.ap:g;this.he=a.hasOwnProperty("af")?a.af:g;this.Wb=this.wa.frames[this.C];this.Xf=this.Wb.ta;this.la.Ng(this.Wb.ki);this.Bb=this.Wb.Bb;this.Cb=this.Wb.Cb};h.Yi=function(a){this.C=a?0:this.wa.frames.length-1;this.ie=p;this.tl=this.wa.name;this.Aj=g;this.b.trigger(Z.prototype.j.Vn,this);this.b.trigger(Z.prototype.j.hl,this);this.Aj=p;this.ad=0};h.Ah=function(){return(Date.now()-this.b.Qg)/1E3}; h.ya=function(){this.Ve.length&&this.Ll();0<=this.aj&&this.Io();var a=this.Ah(),b=this.wa,c=b.frames[this.C],d=c.duration/this.Yf,e=this.b.de;-1!==this.Be&&(e=this.Be);d/=0===e?1E-9:e;if(this.ie&&a>=this.gd+d){this.he?this.C++:this.C--;this.gd+=d;this.C>=b.frames.length&&(b.bn?(this.he=p,this.C=b.frames.length-2):b.loop?this.C=b.pi:(this.ad++,this.ad>=b.uk?this.Yi(p):this.C=b.pi));0>this.C&&(b.bn?(this.C=1,this.he=g,b.loop||(this.ad++,this.ad>=b.uk&&this.Yi(g))):b.loop?this.C=b.pi:(this.ad++,this.ad>= b.uk?this.Yi(g):this.C=b.pi));0>this.C?this.C=0:this.C>=b.frames.length&&(this.C=b.frames.length-1);if(a>this.gd+b.frames[this.C].duration/this.Yf/(0===e?1E-9:e))this.gd=a;a=b.frames[this.C];this.Nf(c,a);this.b.$=g}};h.Wl=function(a){var b,c,d=a.toLowerCase();a=0;for(b=this.type.Fa.length;athis.C&&(this.C=0),this.C>=this.wa.frames.length&&(this.C=this.wa.frames.length-1),1===this.Cl&&(this.C=0),this.ie=g,this.gd=this.Ah(),this.he=g,this.Nf(a,this.wa.frames[this.C]),this.b.$=g)};h.Io=function(){var a=this.wa.frames[this.C],b=this.C;this.C=la(this.aj);0>this.C&&(this.C=0);this.C>=this.wa.frames.length&&(this.C=this.wa.frames.length-1);b!==this.C&&(this.Nf(a,this.wa.frames[this.C]), this.gd=this.Ah(),this.b.$=g);this.aj=-1};h.Nf=function(a,b){var c=a.width,d=a.height,e=b.width,f=b.height;c!=e&&(this.width*=e/c);d!=f&&(this.height*=f/d);this.Bb=b.Bb;this.Cb=b.Cb;this.la.Ng(b.ki);this.u();this.Wb=b;this.Xf=b.ta;c=0;for(d=this.U.length;ce||e>=d.length)return b?this.x:this.y; var f=(d[e][1]-c.Bb)*this.width,d=d[e][2],d=(d-c.Cb)*this.height,c=Math.cos(this.n);e=Math.sin(this.n);var h=f*c-d*e,d=d*c+f*e,f=h+this.x,d=d+this.y;return b?f:d};var w=l,n=new Ma,q=p;a.finish=function(a){if(q){if(a){var b=this.b.Ab().Xb.Cc;a=w.na();var c=n.Pe(),d,e;if(a.Ea){a.Ea=p;a.i.length=c.length;d=0;for(e=c.length;da.Sb||b.top>a.Qb)this.b.B.deleteTexture(this.Ib),this.Qc=this.Ce=this.Ib=l}};a.Ee=function(){this.Qc=this.Ce=l;this.b.B&&this.Ib&&this.b.B.deleteTexture(this.Ib);this.Ib=l};a.vs=function(){this.font=this.vh+" "+this.Ig.toString()+ "pt "+this.Ze;this.Ne=g;this.b.$=g};a.Mc=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.p.Fb(),a.save(),a.scale(c,c));if(this.Ne||this.width!==this.Nj)this.type.Ia.to(this.text,this.Rd,a,this.width,this.el),this.Ne=p,this.Nj=this.width;this.Pb();var c=b?0:this.jb.za,d=b?0:this.jb.Aa;this.b.Sc&&(c=c+0.5|0,d=d+0.5|0);0!==this.n&&!b&&(a.save(),a.translate(c,d),a.rotate(this.n),d=c=0);var e=d+this.height,f=this.qk,f=f+this.Pj* this.b.devicePixelRatio,k,t;1===this.Ii?d+=Math.max(this.height/2-this.Rd.length*f/2,0):2===this.Ii&&(d+=Math.max(this.height-this.Rd.length*f-2,0));for(t=0;t=e-f);t++);(0!==this.n||b)&&a.restore();this.xg=this.b.xd};a.oc=function(a){if(!(1>this.width||1>this.height)){var b=this.Ne||this.Pm;this.Pm=p;var c=this.p.Fb(),d=this.p.hd(),e=this.Ud, f=c*this.width,k=c*this.height,t=Math.ceil(f),v=Math.ceil(k),s=this.b.width/2,G=this.b.height/2;this.Ce||(this.Qc=document.createElement("canvas"),this.Qc.width=t,this.Qc.height=v,this.ye=t,this.xe=v,b=g,this.Ce=this.Qc.getContext("2d"));if(t!==this.ye||v!==this.xe)this.Qc.width=t,this.Qc.height=v,this.Ib&&(a.deleteTexture(this.Ib),this.Ib=l),b=g;b&&(this.Ce.clearRect(0,0,t,v),this.Mc(this.Ce,g),this.Ib||(this.Ib=a.dd(t,v,this.b.Da,this.b.Od)),a.Tq(this.Qc,this.Ib,this.b.Od));this.ye=t;this.xe=v; a.gc(this.Ib);a.Ke(this.opacity);a.Vc();a.translate(-s,-G);a.Xc();var A=this.jb,b=this.p.xa(A.za,A.Aa,g),s=this.p.xa(A.za,A.Aa,p),G=this.p.xa(A.gb,A.hb,g),L=this.p.xa(A.gb,A.hb,p),F=this.p.xa(A.bb,A.cb,g),aa=this.p.xa(A.bb,A.cb,p),K=this.p.xa(A.$a,A.ab,g),A=this.p.xa(A.$a,A.ab,p);if(this.b.Sc||0===this.n&&0===d)var M=(b+0.5|0)-b,u=(s+0.5|0)-s,b=b+M,s=s+u,G=G+M,L=L+u,F=F+M,aa=aa+u,K=K+M,A=A+u;0===this.n&&0===d?(G=b+t,L=s,F=G,aa=s+v,K=b,A=aa,e.right=1,e.bottom=1):(e.right=f/t,e.bottom=k/v);a.Uc(b,s, G,L,F,aa,K,A,e);a.Vc();a.scale(c,c);a.wk(-this.p.hd());a.translate((this.p.Rb+this.p.Sb)/-2,(this.p.Tb+this.p.Qb)/-2);a.Xc();this.xg=this.b.xd}};var d=[];e.so=function(a){d.length=0;for(var b="",c,e=0;e=e)k(c);else{if(100>=a.length&&-1===a.indexOf("\n")){var r=d.measureText(a).width;if(r<=e){k(c);c.push(b());c[0].text=a;c[0].width=r;return}}this.uo(a,c,d,e,f)}};e.uo=function(a,e,f,k,m){m&&(this.so(a),a=d);var r="",y,t,v,s=0;for(v=0;v=e.length&&e.push(b()),t=e[s],t.text=r,t.width=f.measureText(r).width,s++,r=""):(y=r,r+=a[v],t=f.measureText(r).width,t>=k&&(s>=e.length&&e.push(b()),t=e[s],t.text=y,t.width=f.measureText(y).width,s++,r=a[v],!m&& " "===r&&(r="")));r.length&&(s>=e.length&&e.push(b()),t=e[s],t.text=r,t.width=f.measureText(r).width,s++);for(v=s;va&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Ne=g,this.b.$=g)};e.k=new f;e.zb=new (x())})();function ac(b){this.b=b} (function(){var b=ac.prototype;b.fa=function(b){this.Ia=b;this.b=b.b};var k=b.fa.prototype;k.R=function(){this.O||(this.A=new Image,this.A.src=this.Qk,this.A.Fl=this.Rk,this.b.Ad.push(this.A),this.ta=this.pattern=l)};k.ei=function(){this.O||(this.ta=l)};k.fk=function(){if(!this.O&&this.i.length){this.ta||(this.ta=this.b.B.Wh(this.A,g,this.b.Da,this.Sk));var b,e;b=0;for(e=this.i.length;bh&&(h+=this.A.width);0>k&&(k+=this.A.height);b.translate(e,a);b.rotate(this.n);b.translate(h,k);b.fillRect(d-h,c-k,this.width,this.height);b.restore()}; k.oc=function(b){b.gc(this.ta);b.Ke(this.opacity);var e=this.Ud;e.right=this.width/this.A.width;e.bottom=this.height/this.A.height;var a=this.jb;if(this.b.Sc){var d=(this.x+0.5|0)-this.x,c=(this.y+0.5|0)-this.y;b.Uc(a.za+d,a.Aa+c,a.gb+d,a.hb+c,a.bb+d,a.cb+c,a.$a+d,a.ab+c,e)}else b.Uc(a.za,a.Aa,a.gb,a.hb,a.bb,a.cb,a.$a,a.ab,e)};b.j=new (x());b.k=new (x());b.zb=new (x())})();function bc(b){this.b=b} (function(){var b=bc.prototype;b.fa=function(b,e){this.F=b;this.De=e;this.b=b.b};b.fa.prototype.R=x();b.ca=function(b,e){this.type=b;this.F=b.F;this.d=e;this.b=b.b};var k=b.ca.prototype;k.R=function(){var b=this.I[0];this.vc=this.I[1];this.Eb=this.I[2];this.Ao=0!==this.I[3];this.Bk=0!==this.I[4];this.r=Math.cos(this.d.n)*b;this.D=Math.sin(this.d.n)*b;this.Rh=this.d.x;this.Sh=this.d.y;this.ec=this.d.n;this.Ei=0;this.enabled=g};k.eb=function(){return{acc:this.vc,g:this.Eb,dx:this.r,dy:this.D,lx:this.Rh, ly:this.Sh,lka:this.ec,t:this.Ei,e:this.enabled}};k.sb=function(b){this.vc=b.acc;this.Eb=b.g;this.r=b.dx;this.D=b.dy;this.Rh=b.lx;this.Sh=b.ly;this.ec=b.lka;this.Ei=b.t;this.enabled=b.e};k.ya=function(){if(this.enabled){var b=this.b.yh(this.d),e,a;this.d.n!==this.ec&&(this.Bk&&(e=Ea(0,0,this.r,this.D),this.r=Math.cos(this.d.n)*e,this.D=Math.sin(this.d.n)*e),this.ec=this.d.n);0!==this.vc&&(e=Ea(0,0,this.r,this.D),a=0===this.r&&0===this.D?this.d.n:za(0,0,this.r,this.D),e+=this.vc*b,0>e&&(e=0),this.r= Math.cos(a)*e,this.D=Math.sin(a)*e);0!==this.Eb&&(this.D+=this.Eb*b);this.Rh=this.d.x;this.Sh=this.d.y;if(0!==this.r||0!==this.D)if(this.d.x+=this.r*b,this.d.y+=this.D*b,this.Ei+=Ea(0,0,this.r*b,this.D*b),this.Bk&&(this.d.n=za(0,0,this.r,this.D),this.d.u(),this.ec=this.d.n),this.d.u(),this.Ao&&(e=this.b.rb(this.d)))this.b.Bf(this.d,e),e=Ea(0,0,this.r,this.D),a=this.b.Bo(this.d,this.Rh,this.Sh),this.r=Math.cos(a)*e,this.D=Math.sin(a)*e,this.d.x+=this.r*b,this.d.y+=this.D*b,this.d.u(),this.Bk&&(this.ec= this.d.n=a,this.d.u()),this.b.Tc(this.d,this.r/e,this.D/e,Math.max(2.5*e*b,30))||this.b.mn(this.d,100)}};b.j=new (x());b.k=new (x());b.zb=new (x())})();function cc(b){this.b=b} (function(){function b(){}var k=cc.prototype;k.fa=function(b,a){this.F=b;this.De=a;this.b=b.b};k.fa.prototype.R=x();k.ca=function(b,a){this.type=b;this.F=b.F;this.d=a;this.b=b.b};var f=k.ca.prototype;f.R=function(){var b=1===this.I[0];this.ag=this.I[1];this.Xg=this.I[2];this.qh=this.I[3];this.Ho=this.I[4];this.hc=b?0:3;this.Nb?this.sc.reset():this.sc=new Na;this.Ae=this.d.opacity?this.d.opacity:1;b&&(0===this.ag?(this.hc=1,0===this.Xg&&(this.hc=2)):(this.d.opacity=0,this.b.$=g))};f.eb=function(){return{fit:this.ag, wt:this.Xg,fot:this.qh,s:this.hc,st:this.sc.Ta,mo:this.Ae}};f.sb=function(b){this.ag=b.fit;this.Xg=b.wt;this.qh=b.fot;this.hc=b.s;this.sc.reset();this.sc.Ta=b.st;this.Ae=b.mo};f.ya=function(){this.sc.add(this.b.yh(this.d));0===this.hc&&(this.d.opacity=this.sc.Ta/this.ag*this.Ae,this.b.$=g,this.d.opacity>=this.Ae&&(this.d.opacity=this.Ae,this.hc=1,this.sc.reset()));1===this.hc&&this.sc.Ta>=this.Xg&&(this.hc=2,this.sc.reset());2===this.hc&&0!==this.qh&&(this.d.opacity=this.Ae-this.sc.Ta/this.qh*this.Ae, this.b.$=g,0>this.d.opacity&&(this.d.opacity=0,this.hc=3,this.sc.reset(),this.b.trigger(cc.prototype.j.Zn,this.d),1===this.Ho&&this.b.Zc(this.d)))};f.as=function(){this.hc=0;this.sc.reset();0===this.ag?(this.hc=1,0===this.Xg&&(this.hc=2)):(this.d.opacity=0,this.b.$=g)};b.prototype.Zn=J(g);k.j=new b;k.k=new (x())})();function dc(b){this.b=b} (function(){function b(){}var k=dc.prototype;k.fa=function(b,a){this.F=b;this.De=a;this.b=b.b};k.fa.prototype.R=x();k.ca=function(b,a){this.type=b;this.F=b.F;this.d=a;this.b=b.b};var f=k.ca.prototype;f.R=function(){this.Xa=l;this.hi=-1;this.mode=this.ec=this.Ai=this.tf=this.rd=this.Gg=0;var b=this;this.Nb||(this.Cg=function(a){b.Eg(a)});this.b.Wi(this.Cg)};f.eb=function(){return{uid:this.Xa?this.Xa.uid:-1,pa:this.Gg,pd:this.rd,msa:this.tf,tsa:this.Ai,lka:this.ec,m:this.mode}};f.sb=function(b){this.hi= b.uid;this.Gg=b.pa;this.rd=b.pd;this.tf=b.msa;this.Ai=b.tsa;this.ec=b.lka;this.mode=b.m};f.ge=function(){this.Xa=-1===this.hi?l:this.b.df(this.hi);this.hi=-1};f.Eg=function(b){this.Xa==b&&(this.Xa=l)};f.Ee=function(){this.Xa=l;this.b.pn(this.Cg)};f.ya=x();f.Ug=function(){if(this.Xa){this.ec!==this.d.n&&(this.tf=V(this.tf+(this.d.n-this.ec)));var b=this.d.x,a=this.d.y;if(3===this.mode||4===this.mode){var d=Ea(this.d.x,this.d.y,this.Xa.x,this.Xa.y);if(d>this.rd||4===this.mode&&dthis.Eb&&(this.lb*=-1,this.mb*=-1,this.Eb=Math.abs(this.Eb))};f.R=function(){this.sf=this.I[0];this.vc=this.I[1];this.Xe=this.I[2];this.Lj=this.I[3];this.oj=this.Eb=this.I[4];this.bi=this.I[5];this.Go=1===this.I[6];this.Jf=p;this.Ki=this.b.wd(this.d);this.bf=U(90);this.Qn();var b=this;this.Go&&!this.b.yc&&(jQuery(document).keydown(function(a){b.ck(a)}),jQuery(document).keyup(function(a){b.dk(a)})); this.Nb||(this.Cg=function(a){b.Eg(a)});this.b.Wi(this.Cg)};f.eb=function(){return{ii:this.yj,lfx:this.ue,lfy:this.ve,lfo:this.cc?this.cc.uid:-1,am:this.wc,en:this.enabled,fall:this.oe,ft:this.uh,dx:this.r,dy:this.D,ms:this.sf,acc:this.vc,dec:this.Xe,js:this.Lj,g:this.Eb,g1:this.oj,mf:this.bi,wof:this.Jf,woj:this.Ki,ga:this.bf}};f.sb=function(b){this.yj=b.ii;this.ue=b.lfx;this.ve=b.lfy;this.Qj=b.lfo;this.wc=b.am;this.enabled=b.en;this.oe=b.fall;this.uh=b.ft;this.r=b.dx;this.D=b.dy;this.sf=b.ms;this.vc= b.acc;this.Xe=b.dec;this.Lj=b.js;this.Eb=b.g;this.oj=b.g1;this.bi=b.mf;this.Jf=b.wof;this.Ki=b.woj;this.bf=b.ga;this.wi=this.Lk=this.Kk=this.jf=this.ug=this.qi=this.Uh=p;this.Qn()};f.ge=function(){this.cc=-1===this.Qj?l:this.b.df(this.Qj)};f.Eg=function(b){this.cc==b&&(this.cc=l)};f.Ee=function(){this.cc=l;this.b.pn(this.Cg)};f.ck=function(b){switch(b.which){case 38:b.preventDefault();this.ug=g;break;case 37:b.preventDefault();this.Uh=g;break;case 39:b.preventDefault(),this.qi=g}};f.dk=function(b){switch(b.which){case 38:b.preventDefault(); this.jf=this.ug=p;break;case 37:b.preventDefault();this.Uh=p;break;case 39:b.preventDefault(),this.qi=p}};f.cs=function(){return 0>this.Eb?-1:1};f.vm=function(){var b=l,a=l,d,c;d=this.d.x;c=this.d.y;this.d.x+=this.lb;this.d.y+=this.mb;this.d.u();if(this.cc&&this.b.ub(this.d,this.cc))return this.d.x=d,this.d.y=c,this.d.u(),this.cc;b=this.b.rb(this.d);!b&&0===this.oe&&(a=this.b.wd(this.d,g));this.d.x=d;this.d.y=c;this.d.u();if(b)return this.b.ub(this.d,b)?l:b;if(a&&a.length){c=b=0;for(d=a.length;b< d;b++)a[c]=a[b],this.b.ub(this.d,a[b])||c++;if(1<=c)return a[0]}return l};f.ya=x();f.hn=function(){var b=this.b.yh(this.d),a,d,c,f,k,n,q,m,r;!this.ug&&!this.wi&&(this.jf=p);var y=this.Uh||this.Kk;c=this.qi||this.Lk;var t=(this.ug||this.wi)&&!this.jf;this.wi=this.Lk=this.Kk=p;if(this.enabled){this.yj&&(t=c=y=p);m=this.cc;r=p;this.uh&&((this.b.rb(this.d)||this.b.wd(this.d))&&this.b.Tc(this.d,-this.lb,-this.mb,4,g),this.uh=p);if(m&&0===this.D&&(m.y!==this.ve||m.x!==this.ue))a=m.x-this.ue,d=m.y-this.ve, this.d.x+=a,this.d.y+=d,this.d.u(),this.ue=m.x,this.ve=m.y,r=g,this.b.rb(this.d)&&this.b.Tc(this.d,-a,-d,2.5*Math.sqrt(a*a+d*d));var v=this.vm();if(d=this.b.rb(this.d))if(this.b.mn(this.d,Math.max(this.d.width,this.d.height)/2))this.b.Bf(this.d,d);else return;if(v){0this.bi&&(this.D=this.bi),t&&(this.jf=g);this.Jf=!!v;y==c&&(0>this.r?(this.r+=this.Xe*b,0this.r&&(this.r=0)));y&&!c&&(this.r=0this.r?this.r+(this.vc+this.Xe)*b:this.r+this.vc*b);this.r>this.sf?this.r=this.sf:this.r<-this.sf&&(this.r=-this.sf);y=p;if(0!==this.r){m=this.d.x;r=this.d.y;a=this.r*b*this.Ie;d=this.r*b*this.Je;this.d.x+=this.Ie*(1this.r?1:-1),this.Je*(0>this.r?1:-1),a,p))this.d.x=m,this.d.y=r,this.d.u();f||(this.r=0)}else!k&&15>Math.abs(this.D)&&(this.D=0,v||(y=g));else m=this.vm(),v&&!m?(d=Math.ceil(Math.abs(this.r*b))+2,m=this.d.x,r=this.d.y,this.d.x+=this.lb*d,this.d.y+=this.mb*d,this.d.u(),this.b.rb(this.d)|| this.b.wd(this.d)?this.b.Tc(this.d,-this.lb,-this.mb,d+2,g):(this.d.x=m,this.d.y=r,this.d.u())):m&&0===this.D&&this.b.pk(this.d,-this.lb,-this.mb,m)}if(0!==this.D){m=this.d.x;r=this.d.y;this.d.x+=this.D*b*this.lb;this.d.y+=this.D*b*this.mb;a=this.d.x;c=this.d.y;this.d.u();d=this.b.rb(this.d);f=p;if(!d&&0this.D?1:-1),this.mb*(0>this.D?1:-1),a,f,d)?(this.cc=d,this.ue=d.x,this.ve=d.y,f&&(y=g)):(this.d.x=m,this.d.y=r,this.d.u(),this.Jf=g),this.D=0)}3!==this.wc&&(0this.d.x&&(this.d.x=0,e=g),0>this.d.y&&(this.d.y=0,e=g),this.d.x>f.width&&(this.d.x=f.width,e=g),this.d.y>f.height&&(this.d.y=f.height,e=g)):(0>b.left&&(this.d.x-=b.left,e=g),0>b.top&& (this.d.y-=b.top,e=g),b.right>f.width&&(this.d.x-=b.right-f.width,e=g),b.bottom>f.height&&(this.d.y-=b.bottom-f.height,e=g));e&&this.d.u()}})();function gc(b){this.b=b}(function(){var b=gc.prototype;b.fa=function(b,f){this.F=b;this.De=f;this.b=b.b};b.fa.prototype.R=x();b.ca=function(b,f){this.type=b;this.F=b.F;this.d=f;this.b=b.b};b=b.ca.prototype;b.R=x();b.ya=function(){this.d.Pb();var b=this.d.S,f=this.d.p.da;(0>b.right||0>b.bottom||b.left>f.width||b.top>f.height)&&this.b.Zc(this.d)}})(); function hc(b){this.b=b;this.Ik=this.vi=this.Pg=this.Hk=0} (function(){var b=hc.prototype;b.fa=function(b,e){this.F=b;this.De=e;this.b=b.b};b.fa.prototype.R=x();b.ca=function(b,e){this.type=b;this.F=b.F;this.d=e;this.b=b.b};var k=b.ca.prototype;k.R=x();k.eb=function(){return{smg:this.F.Hk,ss:this.F.Pg,se:this.F.vi,smd:this.F.Ik}};k.sb=function(b){this.F.Hk=b.smg;this.F.Pg=b.ss;this.F.vi=b.se;this.F.Ik=b.smd};k.ya=x();k.Ug=function(){var b=this.F.uf.Rq(),e=0,a=0,d,c;d=0;for(c=b.length;d=this.F.Pg&& h