// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';function B(){return function(){}}function F(d){return function(){return this[d]}}function H(d){return function(){return d}}var aa,ba,I,ca,da,O,ea,fa,ga,ha,ia,ja,ka,T,la,ma,na,oa,pa,ta,ua,va,wa,V,xa,ya,W,za,Aa,Ca,Ha,Ia,Ja,Ka,La,Ma,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub={};
"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(d){return d.__proto__}:function(d){return d.constructor.prototype});
(function(){function d(g,f,k,p){this.set(g,f,k,p)}function m(){this.Cb=this.Bb=this.Eb=this.Db=this.Lb=this.Kb=this.Ta=this.Sa=0}function c(g,f,k,p){g<f?k<p?(v=g<k?g:k,q=f>p?f:p):(v=g<p?g:p,q=f>k?f:k):k<p?(v=f<k?f:k,q=g>p?g:p):(v=f<p?f:p,q=g>k?g:k)}function h(){this.dd=this.hd=null;this.Hg=0;u?this.hd=new Set:this.dd={};this.pe=[];this.xe=!0}function a(g){t[k++]=g}function b(){this.Ha=this.mj=this.y=this.Rj=0}function n(g){this.Qa=[];this.Eh=this.Gh=this.Hh=this.Fh=0;this.kh(g)}function e(g,f){this.Vp=
g;this.Up=f;this.cells={}}function l(g,k,p){var b;return f.length?(b=f.pop(),b.Cr=g,b.x=k,b.y=p,b):new aa(g,k,p)}function s(g,f,k){this.Cr=g;this.x=f;this.y=k;this.Yg=new ba}I=function(g){window.console&&window.console.log&&window.console.log(g)};ca=function(g){return"undefined"===typeof g};da=function(g){return"number"===typeof g};O=function(g){return"string"===typeof g};ea=function(g){return 0<g&&0===(g-1&g)};fa=function(g){--g;for(var f=1;32>f;f<<=1)g|=g>>f;return g+1};ga=function(g){return 0>
g?-g:g};ha=function(g,f){return g>f?g:f};ia=function(g,f){return g<f?g:f};ja=Math.PI;ka=function(g){return g+0.5|0};T=function(g){return 0<=g?g|0:(g|0)-1};la=function(g){var f=g|0;return f===g?f:f+1};ma=function(g,f,k,p,b,e,a,n){var l,c,d,s;g<k?(c=g,l=k):(c=k,l=g);b<a?(s=b,d=a):(s=a,d=b);if(l<s||c>d)return!1;f<p?(c=f,l=p):(c=p,l=f);e<n?(s=e,d=n):(s=n,d=e);if(l<s||c>d)return!1;l=b-g+a-k;c=e-f+n-p;g=k-g;f=p-f;b=a-b;e=n-e;n=ga(f*b-e*g);return ga(b*c-e*l)>n?!1:ga(g*c-f*l)<=n};d.prototype.set=function(g,
f,k,p){this.left=g;this.top=f;this.right=k;this.bottom=p};d.prototype.copy=function(g){this.left=g.left;this.top=g.top;this.right=g.right;this.bottom=g.bottom};d.prototype.width=function(){return this.right-this.left};d.prototype.height=function(){return this.bottom-this.top};d.prototype.offset=function(g,f){this.left+=g;this.top+=f;this.right+=g;this.bottom+=f;return this};d.prototype.normalize=function(){var g=0;this.left>this.right&&(g=this.left,this.left=this.right,this.right=g);this.top>this.bottom&&
(g=this.top,this.top=this.bottom,this.bottom=g)};d.prototype.gn=function(g){return!(g.right<this.left||g.bottom<this.top||g.left>this.right||g.top>this.bottom)};d.prototype.hn=function(g,f,k){return!(g.right+f<this.left||g.bottom+k<this.top||g.left+f>this.right||g.top+k>this.bottom)};d.prototype.Gb=function(g,f){return g>=this.left&&g<=this.right&&f>=this.top&&f<=this.bottom};d.prototype.tq=function(g){return this.left===g.left&&this.top===g.top&&this.right===g.right&&this.bottom===g.bottom};na=d;
m.prototype.Qf=function(g){this.Sa=g.left;this.Ta=g.top;this.Kb=g.right;this.Lb=g.top;this.Db=g.right;this.Eb=g.bottom;this.Bb=g.left;this.Cb=g.bottom};m.prototype.wo=function(g,f){if(0===f)this.Qf(g);else{var k=Math.sin(f),p=Math.cos(f),b=g.left*k,e=g.top*k,a=g.right*k,k=g.bottom*k,n=g.left*p,l=g.top*p,c=g.right*p,p=g.bottom*p;this.Sa=n-e;this.Ta=l+b;this.Kb=c-e;this.Lb=l+a;this.Db=c-k;this.Eb=p+a;this.Bb=n-k;this.Cb=p+b}};m.prototype.offset=function(g,f){this.Sa+=g;this.Ta+=f;this.Kb+=g;this.Lb+=
f;this.Db+=g;this.Eb+=f;this.Bb+=g;this.Cb+=f;return this};var v=0,q=0;m.prototype.nm=function(g){c(this.Sa,this.Kb,this.Db,this.Bb);g.left=v;g.right=q;c(this.Ta,this.Lb,this.Eb,this.Cb);g.top=v;g.bottom=q};m.prototype.Gb=function(g,f){var k=this.Kb-this.Sa,p=this.Lb-this.Ta,b=this.Db-this.Sa,e=this.Eb-this.Ta,a=g-this.Sa,n=f-this.Ta,l=k*k+p*p,c=k*b+p*e,p=k*a+p*n,d=b*b+e*e,s=b*a+e*n,h=1/(l*d-c*c),k=(d*p-c*s)*h,l=(l*s-c*p)*h;if(0<=k&&0<l&&1>k+l)return!0;k=this.Bb-this.Sa;p=this.Cb-this.Ta;l=k*k+p*
p;c=k*b+p*e;p=k*a+p*n;h=1/(l*d-c*c);k=(d*p-c*s)*h;l=(l*s-c*p)*h;return 0<=k&&0<l&&1>k+l};m.prototype.uc=function(g,f){if(f)switch(g){case 0:return this.Sa;case 1:return this.Kb;case 2:return this.Db;case 3:return this.Bb;case 4:return this.Sa;default:return this.Sa}else switch(g){case 0:return this.Ta;case 1:return this.Lb;case 2:return this.Eb;case 3:return this.Cb;case 4:return this.Ta;default:return this.Ta}};m.prototype.In=function(){return(this.Sa+this.Kb+this.Db+this.Bb)/4};m.prototype.Jn=function(){return(this.Ta+
this.Lb+this.Eb+this.Cb)/4};m.prototype.yg=function(g,f,k,p){if(this.Gb(g,f)||this.Gb(k,p))return!0;var b,e,a,n,l;for(l=0;4>l;l++)if(b=this.uc(l,!0),e=this.uc(l,!1),a=this.uc(l+1,!0),n=this.uc(l+1,!1),ma(g,f,k,p,b,e,a,n))return!0;return!1};m.prototype.dn=function(g){var f=g.In(),k=g.Jn();if(this.Gb(f,k))return!0;f=this.In();k=this.Jn();if(g.Gb(f,k))return!0;var p,b,e,a,n,l,c,d;for(c=0;4>c;c++)for(d=0;4>d;d++)if(f=this.uc(c,!0),k=this.uc(c,!1),p=this.uc(c+1,!0),b=this.uc(c+1,!1),e=g.uc(d,!0),a=g.uc(d,
!1),n=g.uc(d+1,!0),l=g.uc(d+1,!1),ma(f,k,p,b,e,a,n,l))return!0;return!1};oa=m;pa=function(g,f){for(var k in f)f.hasOwnProperty(k)&&(g[k]=f[k]);return g};ta=function(g,f){var k,p;f=T(f);if(!(0>f||f>=g.length))if(0===f)g.shift();else if(f===g.length-1)g.pop();else{k=f;for(p=g.length-1;k<p;k++)g[k]=g[k+1];g.length=p}};ua=function(g,f){g.length=f.length;var k,p;k=0;for(p=f.length;k<p;k++)g[k]=f[k]};va=function(g,f){g.push.apply(g,f)};wa=function(g,f){var k=g.indexOf(f);-1!==k&&ta(g,k)};V=function(g){return g/
(180/ja)};xa=function(g){return g*(180/ja)};ya=function(g){g%=360;0>g&&(g+=360);return g};W=function(g){g%=2*ja;0>g&&(g+=2*ja);return g};za=function(g){return ya(xa(g))};Aa=function(g){return W(V(g))};Ca=function(g,f,k,p){return Math.atan2(p-f,k-g)};Ha=function(g,f){if(g===f)return 0;var k=Math.sin(g),p=Math.cos(g),b=Math.sin(f),e=Math.cos(f),k=k*b+p*e;return 1<=k?0:-1>=k?ja:Math.acos(k)};Ia=function(g,f,k){var p=Math.sin(g),b=Math.cos(g),e=Math.sin(f),a=Math.cos(f);return Math.acos(p*e+b*a)>k?0<
b*e-p*a?W(g+k):W(g-k):W(f)};Ja=function(g,f){var k=Math.sin(g),p=Math.cos(g),b=Math.sin(f),e=Math.cos(f);return 0>=p*b-k*e};Ka=function(g,f,k,p,b,e){if(0===k)return e?g:f;var a=Math.sin(k);k=Math.cos(k);g-=p;f-=b;var n=g*a;g=g*k-f*a;f=f*k+n;return e?g+p:f+b};La=function(g,f,k,p){g=k-g;f=p-f;return Math.sqrt(g*g+f*f)};Ma=function(g,f){return!g!==!f};Qa=function(g){for(var f in g)if(g.hasOwnProperty(f))return!0;return!1};Ra=function(g){for(var f in g)g.hasOwnProperty(f)&&delete g[f]};var r=+new Date;
Sa=function(){if("undefined"!==typeof window.performance){var g=window.performance;if("undefined"!==typeof g.now)return g.now();if("undefined"!==typeof g.webkitNow)return g.webkitNow();if("undefined"!==typeof g.mozNow)return g.mozNow();if("undefined"!==typeof g.msNow)return g.msNow()}return Date.now()-r};var u="undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;h.prototype.contains=function(g){return u?this.hd.has(g):this.dd.hasOwnProperty(g.toString())};h.prototype.add=function(g){if(u)this.hd.has(g)||
(this.hd.add(g),this.xe=!1);else{var f=g.toString();this.dd.hasOwnProperty(f)||(this.dd[f]=g,this.Hg++,this.xe=!1)}return this};h.prototype.remove=function(g){u?this.hd.has(g)&&(this.hd["delete"](g),this.xe=!1):(g=g.toString(),this.dd.hasOwnProperty(g)&&(delete this.dd[g],this.Hg--,this.xe=!1));return this};h.prototype.clear=function(){u?this.hd.clear():(this.dd={},this.Hg=0);this.pe.length=0;this.xe=!0;return this};h.prototype.Ud=function(){return u?0===this.hd.size:0===this.Hg};var t=null,k=0;h.prototype.Xo=
function(){if(!this.xe){if(u)this.pe.length=this.hd.size,t=this.pe,k=0,this.hd.forEach(a),t=null,k=0;else{this.pe.length=this.Hg;var g,f=0;for(g in this.dd)this.dd.hasOwnProperty(g)&&(this.pe[f++]=this.dd[g])}this.xe=!0}};h.prototype.Ms=function(){this.Xo();return this.pe.slice(0)};h.prototype.Wf=function(){this.Xo();return this.pe};ba=h;b.prototype.add=function(g){this.y=g-this.Rj;this.mj=this.Ha+this.y;this.Rj=this.mj-this.Ha-this.y;this.Ha=this.mj};b.prototype.reset=function(){this.Ha=this.mj=
this.y=this.Rj=0};Ta=b;Ua=function(g){return g.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};n.prototype.kh=function(g){this.mo=g;this.Dc=g.length/2;this.Qa.length=g.length;this.Jh=this.Kh=-1;this.pm=0};n.prototype.Ke=function(){return!this.mo.length};n.prototype.Da=function(){for(var g=this.Qa,f=g[0],k=f,p=g[1],b=p,e,a,n=1,l=this.Dc;n<l;++n)a=2*n,e=g[a],a=g[a+1],e<f&&(f=e),e>k&&(k=e),a<p&&(p=a),a>b&&(b=a);this.Fh=f;this.Gh=k;this.Hh=p;this.Eh=b};n.prototype.Qf=function(g,f,k){this.Qa.length=8;this.Dc=
4;var p=this.Qa;p[0]=g.left-f;p[1]=g.top-k;p[2]=g.right-f;p[3]=g.top-k;p[4]=g.right-f;p[5]=g.bottom-k;p[6]=g.left-f;p[7]=g.bottom-k;this.Kh=g.right-g.left;this.Jh=g.bottom-g.top;this.Da()};n.prototype.Pf=function(g,f,k,p,b){this.Qa.length=8;this.Dc=4;var e=this.Qa;e[0]=g.Sa-f;e[1]=g.Ta-k;e[2]=g.Kb-f;e[3]=g.Lb-k;e[4]=g.Db-f;e[5]=g.Eb-k;e[6]=g.Bb-f;e[7]=g.Cb-k;this.Kh=p;this.Jh=b;this.Da()};n.prototype.vo=function(g){this.Dc=g.Dc;ua(this.Qa,g.Qa);this.Fh=g.Fh;this.Hh-g.Hh;this.Gh=g.Gh;this.Eh=g.Eh};
n.prototype.we=function(g,f,k){if(this.Kh!==g||this.Jh!==f||this.pm!==k){this.Kh=g;this.Jh=f;this.pm=k;var p,b,e,a,n,l=0,c=1,d=this.mo,s=this.Qa;0!==k&&(l=Math.sin(k),c=Math.cos(k));k=0;for(e=this.Dc;k<e;k++)p=2*k,b=p+1,a=d[p]*g,n=d[b]*f,s[p]=a*c-n*l,s[b]=n*c+a*l;this.Da()}};n.prototype.Gb=function(g,f){var k=this.Qa;if(g===k[0]&&f===k[1])return!0;var p,b,e,a=this.Dc,n=this.Fh-110,l=this.Hh-101,c=this.Gh+131,d=this.Eh+120,s,h,q=0,m=0;for(p=0;p<a;p++)b=2*p,e=2*((p+1)%a),s=k[b],b=k[b+1],h=k[e],e=k[e+
1],ma(n,l,g,f,s,b,h,e)&&q++,ma(c,d,g,f,s,b,h,e)&&m++;return 1===q%2||1===m%2};n.prototype.xg=function(g,f,k){var p=g.Qa,b=this.Qa;if(this.Gb(p[0]+f,p[1]+k)||g.Gb(b[0]-f,b[1]-k))return!0;var e,a,n,l,c,d,s,h,q,m,v,r;e=0;for(l=this.Dc;e<l;e++)for(a=2*e,n=2*((e+1)%l),h=b[a],a=b[a+1],q=b[n],m=b[n+1],n=0,s=g.Dc;n<s;n++)if(c=2*n,d=2*((n+1)%s),v=p[c]+f,c=p[c+1]+k,r=p[d]+f,d=p[d+1]+k,ma(h,a,q,m,v,c,r,d))return!0;return!1};n.prototype.yg=function(g,f,k,p,b,e){var a=this.Qa;if(this.Gb(k-g,p-f))return!0;var n,
l,c,d,s,h;n=0;for(l=this.Dc;n<l;n++)if(c=2*n,d=2*((n+1)%l),s=a[c]+g,c=a[c+1]+f,h=a[d]+g,d=a[d+1]+f,ma(k,p,b,e,s,c,h,d))return!0;return!1};Va=n;e.prototype.kk=function(g,f,k){var p;p=this.cells[g];return p?(p=p[f])?p:k?(p=l(this,g,f),this.cells[g][f]=p):null:k?(p=l(this,g,f),this.cells[g]={},this.cells[g][f]=p):null};e.prototype.zh=function(g){return T(g/this.Vp)};e.prototype.Ah=function(g){return T(g/this.Up)};e.prototype.update=function(g,k,p){var b,e,a,n,l;if(k)for(b=k.left,e=k.right;b<=e;++b)for(a=
k.top,n=k.bottom;a<=n;++a)if(!p||!p.Gb(b,a))if(l=this.kk(b,a,!1))l.remove(g),l.Ud()&&(l.Yg.clear(),1E3>f.length&&f.push(l),this.cells[b][a]=null);if(p)for(b=p.left,e=p.right;b<=e;++b)for(a=p.top,n=p.bottom;a<=n;++a)k&&k.Gb(b,a)||this.kk(b,a,!0).Hr(g)};e.prototype.po=function(g,f){var k,p,b,e,a,n;k=this.zh(g.left);b=this.Ah(g.top);p=this.zh(g.right);for(a=this.Ah(g.bottom);k<=p;++k)for(e=b;e<=a;++e)(n=this.kk(k,e,!1))&&n.pq(f)};Wa=e;var f=[];s.prototype.Ud=function(){return this.Yg.Ud()};s.prototype.Hr=
function(f){this.Yg.add(f)};s.prototype.remove=function(f){this.Yg.remove(f)};s.prototype.pq=function(f){va(f,this.Yg.Wf())};aa=s;var p="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");Xa=function(f){return 0>=f||11<=f?"source-over":p[f-1]};Ya=function(f,k,p){if(p)switch(f.qb=p.ONE,f.pb=p.ONE_MINUS_SRC_ALPHA,k){case 1:f.qb=p.ONE;f.pb=p.ONE;break;case 3:f.qb=p.ONE;f.pb=p.ZERO;break;case 4:f.qb=p.ONE_MINUS_DST_ALPHA;f.pb=
p.ONE;break;case 5:f.qb=p.DST_ALPHA;f.pb=p.ZERO;break;case 6:f.qb=p.ZERO;f.pb=p.SRC_ALPHA;break;case 7:f.qb=p.ONE_MINUS_DST_ALPHA;f.pb=p.ZERO;break;case 8:f.qb=p.ZERO;f.pb=p.ONE_MINUS_SRC_ALPHA;break;case 9:f.qb=p.DST_ALPHA;f.pb=p.ONE_MINUS_SRC_ALPHA;break;case 10:f.qb=p.ONE_MINUS_DST_ALPHA,f.pb=p.SRC_ALPHA}};Za=function(f){return ka(1E6*f)/1E6};$a=function(f,k){return"string"!==typeof f||"string"!==typeof k||f.length!==k.length?!1:f===k?!0:f.toLowerCase()===k.toLowerCase()}})();
var Vb="undefined"!==typeof Float32Array?Float32Array:Array;function Wb(d){var m=new Vb(3);d&&(m[0]=d[0],m[1]=d[1],m[2]=d[2]);return m}function Xb(d){var m=new Vb(16);d&&(m[0]=d[0],m[1]=d[1],m[2]=d[2],m[3]=d[3],m[4]=d[4],m[5]=d[5],m[6]=d[6],m[7]=d[7],m[8]=d[8],m[9]=d[9],m[10]=d[10],m[11]=d[11],m[12]=d[12],m[13]=d[13],m[14]=d[14],m[15]=d[15]);return m}
function Yb(d,m){m[0]=d[0];m[1]=d[1];m[2]=d[2];m[3]=d[3];m[4]=d[4];m[5]=d[5];m[6]=d[6];m[7]=d[7];m[8]=d[8];m[9]=d[9];m[10]=d[10];m[11]=d[11];m[12]=d[12];m[13]=d[13];m[14]=d[14];m[15]=d[15]}function Zb(d,m){var c=m[0],h=m[1];m=m[2];d[0]*=c;d[1]*=c;d[2]*=c;d[3]*=c;d[4]*=h;d[5]*=h;d[6]*=h;d[7]*=h;d[8]*=m;d[9]*=m;d[10]*=m;d[11]*=m}
function $b(d,m,c,h){h||(h=Xb());var a,b,n,e,l,s,v,q,r=d[0],u=d[1];d=d[2];b=c[0];n=c[1];a=c[2];c=m[1];s=m[2];r===m[0]&&u===c&&d===s?(d=h,d[0]=1,d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[5]=1,d[6]=0,d[7]=0,d[8]=0,d[9]=0,d[10]=1,d[11]=0,d[12]=0,d[13]=0,d[14]=0,d[15]=1):(c=r-m[0],s=u-m[1],v=d-m[2],q=1/Math.sqrt(c*c+s*s+v*v),c*=q,s*=q,v*=q,m=n*v-a*s,a=a*c-b*v,b=b*s-n*c,(q=Math.sqrt(m*m+a*a+b*b))?(q=1/q,m*=q,a*=q,b*=q):b=a=m=0,n=s*b-v*a,e=v*m-c*b,l=c*a-s*m,(q=Math.sqrt(n*n+e*e+l*l))?(q=1/q,n*=q,e*=q,l*=q):l=e=n=0,
h[0]=m,h[1]=n,h[2]=c,h[3]=0,h[4]=a,h[5]=e,h[6]=s,h[7]=0,h[8]=b,h[9]=l,h[10]=v,h[11]=0,h[12]=-(m*r+a*u+b*d),h[13]=-(n*r+e*u+l*d),h[14]=-(c*r+s*u+v*d),h[15]=1)}
(function(){function d(b){this.ri=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.qm=Wb([0,0,100]);this.Gn=Wb([0,0,0]);this.Uo=Wb([0,1,0]);this.Sl=Wb([1,1,1]);this.Pk=Xb();this.Cc=Xb();this.xn=Xb();this.Xj=Xb();this.u=b;this.$m()}function m(b,a,e){this.u=b;this.lh=a;this.name=e;this.Bc=b.getAttribLocation(a,"aPos");this.$d=b.getAttribLocation(a,"aTex");this.En=b.getUniformLocation(a,"matP");this.Af=b.getUniformLocation(a,"matMV");this.Bf=b.getUniformLocation(a,
"opacity");this.Fn=b.getUniformLocation(a,"samplerFront");this.Rg=b.getUniformLocation(a,"samplerBack");this.Qe=b.getUniformLocation(a,"destStart");this.Pe=b.getUniformLocation(a,"destEnd");this.Mk=b.getUniformLocation(a,"seconds");this.Lk=b.getUniformLocation(a,"pixelWidth");this.Kk=b.getUniformLocation(a,"pixelHeight");this.Jk=b.getUniformLocation(a,"layerScale");this.Bf&&b.uniform1f(this.Bf,1);this.Fn&&b.uniform1i(this.Fn,0);this.Rg&&b.uniform1i(this.Rg,1);this.Qe&&b.uniform2f(this.Qe,0,0);this.Pe&&
b.uniform2f(this.Pe,1,1);this.Fe=!1}function c(b,a){this.type=b;this.J=a;this.u=a.u;this.bd=this.Gc=this.Wn=0;this.M=this.Vc=null;this.zl=[]}d.prototype.$m=function(){var b=this.u,a;this.yn=1;this.Ne=this.Yd=null;this.xm=1;b.clearColor(0,0,0,0);b.clear(b.COLOR_BUFFER_BIT);b.enable(b.BLEND);b.blendFunc(b.ONE,b.ONE_MINUS_SRC_ALPHA);b.disable(b.CULL_FACE);b.disable(b.DEPTH_TEST);this.zn=b.ONE;this.wn=b.ONE_MINUS_SRC_ALPHA;this.dl=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.dl);this.uh=Array(4);
this.qh=Array(4);for(a=0;4>a;a++)this.uh[a]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.uh[a]),this.qh[a]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.qh[a]);this.td=0;this.Gr=b.createBuffer();b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.Gr);this.Pl=new Float32Array(16E3);this.Gl=new Float32Array(16E3);this.as=new Float32Array(32E3);for(var e=new Uint16Array(12E3),l=a=0;12E3>a;)e[a++]=l,e[a++]=l+1,e[a++]=l+2,e[a++]=l,e[a++]=l+2,e[a++]=l+3,l+=4;b.bufferData(b.ELEMENT_ARRAY_BUFFER,e,b.STATIC_DRAW);
this.el=this.od=0;this.ab=[];a=this.Wj({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.ab.push(a);
a=this.Wj({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.ab.push(a);for(var c in ac)ac.hasOwnProperty(c)&&this.ab.push(this.Wj(ac[c],
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}",c));b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,null);this.Od=[];this.rd=0;this.Rb=!1;this.ym=this.Kg=-1;this.kg=null;this.Rq=b.createFramebuffer();this.ro=null;this.ne=Wb([0,0,0]);this.kd(0)};d.prototype.Wj=function(b,a,e){var l=this.u,c=l.createShader(l.FRAGMENT_SHADER);
l.shaderSource(c,b.src);l.compileShader(c);if(!l.getShaderParameter(c,l.COMPILE_STATUS))return l.deleteShader(c),null;var d=l.createShader(l.VERTEX_SHADER);l.shaderSource(d,a);l.compileShader(d);if(!l.getShaderParameter(d,l.COMPILE_STATUS))return l.deleteShader(c),l.deleteShader(d),null;a=l.createProgram();l.attachShader(a,c);l.attachShader(a,d);l.linkProgram(a);if(!l.getProgramParameter(a,l.LINK_STATUS))return l.deleteShader(c),l.deleteShader(d),l.deleteProgram(a),null;l.useProgram(a);l.deleteShader(c);
l.deleteShader(d);e=new m(l,a,e);e.ck=b.ck||0;e.dk=b.dk||0;e.wm=!!b.wm;e.km=!!b.km;e.I=b.I||[];b=0;for(c=e.I.length;b<c;b++)e.I[b][1]=l.getUniformLocation(a,e.I[b][0]),l.uniform1f(e.I[b][1],0);return e};d.prototype.pk=function(b){var a,e;a=0;for(e=this.ab.length;a<e;a++)if(this.ab[a].name===b)return a;return-1};d.prototype.lo=function(b,a,e){var l=this.Cc,c=this.Pk,d=[0,0,0,0,0,0,0,0];d[0]=l[0]*b+l[4]*a+l[12];d[1]=l[1]*b+l[5]*a+l[13];d[2]=l[2]*b+l[6]*a+l[14];d[3]=l[3]*b+l[7]*a+l[15];d[4]=c[0]*d[0]+
c[4]*d[1]+c[8]*d[2]+c[12]*d[3];d[5]=c[1]*d[0]+c[5]*d[1]+c[9]*d[2]+c[13]*d[3];d[6]=c[2]*d[0]+c[6]*d[1]+c[10]*d[2]+c[14]*d[3];d[7]=-d[2];0!==d[7]&&(d[7]=1/d[7],d[4]*=d[7],d[5]*=d[7],d[6]*=d[7],e[0]=(0.5*d[4]+0.5)*this.width,e[1]=(0.5*d[5]+0.5)*this.height)};d.prototype.Of=function(b,a,e){if(this.width!==b||this.height!==a||e){this.Rd();this.width=b;this.height=a;this.u.viewport(0,0,b,a);a=b/a;var l=this.Pk,c;c=1*Math.tan(45*Math.PI/360);a*=c;b=-a;e=-c;l||(l=Xb());var d=a-b,h=c-e;l[0]=2/d;l[1]=0;l[2]=
0;l[3]=0;l[4]=0;l[5]=2/h;l[6]=0;l[7]=0;l[8]=(a+b)/d;l[9]=(c+e)/h;l[10]=-1001/999;l[11]=-1;l[12]=0;l[13]=0;l[14]=-2E3/999;l[15]=0;$b(this.qm,this.Gn,this.Uo,this.Cc);b=[0,0];a=[0,0];this.lo(0,0,b);this.lo(1,1,a);this.Sl[0]=1/(a[0]-b[0]);this.Sl[1]=-1/(a[1]-b[1]);b=0;for(a=this.ab.length;b<a;b++)e=this.ab[b],e.Fe=!1,e.En&&(this.u.useProgram(e.lh),this.u.uniformMatrix4fv(e.En,!1,this.Pk));this.u.useProgram(this.ab[this.Kg].lh);this.u.bindTexture(this.u.TEXTURE_2D,null);this.u.activeTexture(this.u.TEXTURE1);
this.u.bindTexture(this.u.TEXTURE_2D,null);this.u.activeTexture(this.u.TEXTURE0);this.Ne=this.Yd=null}};d.prototype.gd=function(){$b(this.qm,this.Gn,this.Uo,this.Cc);Zb(this.Cc,this.Sl)};d.prototype.translate=function(b,a){if(0!==b||0!==a){this.ne[0]=b;this.ne[1]=a;this.ne[2]=0;var e=this.Cc,c=this.ne,d=c[0],h=c[1],c=c[2];e[12]=e[0]*d+e[4]*h+e[8]*c+e[12];e[13]=e[1]*d+e[5]*h+e[9]*c+e[13];e[14]=e[2]*d+e[6]*h+e[10]*c+e[14];e[15]=e[3]*d+e[7]*h+e[11]*c+e[15]}};d.prototype.scale=function(b,a){if(1!==b||
1!==a)this.ne[0]=b,this.ne[1]=a,this.ne[2]=1,Zb(this.Cc,this.ne)};d.prototype.ol=function(b){if(0!==b){var a=this.Cc,e,c=Math.sin(b);b=Math.cos(b);var d=a[0],h=a[1],q=a[2],m=a[3],u=a[4],t=a[5],k=a[6],f=a[7];e?a!==e&&(e[8]=a[8],e[9]=a[9],e[10]=a[10],e[11]=a[11],e[12]=a[12],e[13]=a[13],e[14]=a[14],e[15]=a[15]):e=a;e[0]=d*b+u*c;e[1]=h*b+t*c;e[2]=q*b+k*c;e[3]=m*b+f*c;e[4]=d*-c+u*b;e[5]=h*-c+t*b;e[6]=q*-c+k*b;e[7]=m*-c+f*b}};d.prototype.nd=function(){for(var b=!1,a=0;16>a;a++)if(this.xn[a]!==this.Cc[a]){b=
!0;break}b&&(b=this.Sc(),b.type=5,b.M?Yb(this.Cc,b.M):b.M=Xb(this.Cc),Yb(this.Cc,this.xn),this.Rb=!1)};c.prototype.mq=function(){this.u.bindTexture(this.u.TEXTURE_2D,this.Vc)};c.prototype.nq=function(){var b=this.u;b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,this.Vc);b.activeTexture(b.TEXTURE0)};c.prototype.jq=function(){var b=this.Wn,a=this.J;a.xm=b;a=a.kg;a.Bf&&this.u.uniform1f(a.Bf,b)};c.prototype.gq=function(){this.u.drawElements(this.u.TRIANGLES,this.bd,this.u.UNSIGNED_SHORT,2*this.Gc)};
c.prototype.iq=function(){this.u.blendFunc(this.Gc,this.bd)};c.prototype.oq=function(){var b,a,e,c=this.J.ab,d=this.J.ym;b=0;for(a=c.length;b<a;b++)e=c[b],b===d&&e.Af?(this.u.uniformMatrix4fv(e.Af,!1,this.M),e.Fe=!0):e.Fe=!1;Yb(this.M,this.J.Xj)};c.prototype.hq=function(){var b=this.u,a=this.J;this.Vc?(a.Ne===this.Vc&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,null),a.Ne=null,b.activeTexture(b.TEXTURE0)),b.bindFramebuffer(b.FRAMEBUFFER,a.Rq),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,
b.TEXTURE_2D,this.Vc,0)):(b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.bindFramebuffer(b.FRAMEBUFFER,null))};c.prototype.dq=function(){var b=this.u;0===this.Gc?(b.clearColor(this.M[0],this.M[1],this.M[2],this.M[3]),b.clear(b.COLOR_BUFFER_BIT)):(b.enable(b.SCISSOR_TEST),b.scissor(this.M[0],this.M[1],this.M[2],this.M[3]),b.clearColor(0,0,0,0),b.clear(this.u.COLOR_BUFFER_BIT),b.disable(b.SCISSOR_TEST))};c.prototype.fq=function(){var b=this.u,a=this.J,e=a.ab[1];b.useProgram(e.lh);
!e.Fe&&e.Af&&(b.uniformMatrix4fv(e.Af,!1,a.Xj),e.Fe=!0);b.enableVertexAttribArray(e.Bc);b.bindBuffer(b.ARRAY_BUFFER,a.dl);b.vertexAttribPointer(e.Bc,4,b.FLOAT,!1,0,0);b.drawArrays(b.POINTS,this.Gc/4,this.bd);e=a.kg;b.useProgram(e.lh);0<=e.Bc&&(b.enableVertexAttribArray(e.Bc),b.bindBuffer(b.ARRAY_BUFFER,a.uh[a.td]),b.vertexAttribPointer(e.Bc,2,b.FLOAT,!1,0,0));0<=e.$d&&(b.enableVertexAttribArray(e.$d),b.bindBuffer(b.ARRAY_BUFFER,a.qh[a.td]),b.vertexAttribPointer(e.$d,2,b.FLOAT,!1,0,0))};c.prototype.kq=
function(){var b=this.u,a=this.J,e=a.ab[this.Gc];a.ym=this.Gc;a.kg=e;b.useProgram(e.lh);!e.Fe&&e.Af&&(b.uniformMatrix4fv(e.Af,!1,a.Xj),e.Fe=!0);e.Bf&&b.uniform1f(e.Bf,a.xm);0<=e.Bc&&(b.enableVertexAttribArray(e.Bc),b.bindBuffer(b.ARRAY_BUFFER,a.uh[a.td]),b.vertexAttribPointer(e.Bc,2,b.FLOAT,!1,0,0));0<=e.$d&&(b.enableVertexAttribArray(e.$d),b.bindBuffer(b.ARRAY_BUFFER,a.qh[a.td]),b.vertexAttribPointer(e.$d,2,b.FLOAT,!1,0,0))};c.prototype.lq=function(){var b,a,e=this.J.kg,c=this.u;e.Rg&&this.J.Ne!==
this.Vc&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,this.Vc),this.J.Ne=this.Vc,c.activeTexture(c.TEXTURE0));e.Lk&&c.uniform1f(e.Lk,this.M[0]);e.Kk&&c.uniform1f(e.Kk,this.M[1]);e.Qe&&c.uniform2f(e.Qe,this.M[2],this.M[3]);e.Pe&&c.uniform2f(e.Pe,this.M[4],this.M[5]);e.Jk&&c.uniform1f(e.Jk,this.M[6]);e.Mk&&c.uniform1f(e.Mk,Sa()/1E3);if(e.I.length)for(b=0,a=e.I.length;b<a;b++)c.uniform1f(e.I[b][1],this.zl[b])};d.prototype.Sc=function(){this.rd===this.Od.length&&this.Od.push(new c(0,this));
return this.Od[this.rd++]};d.prototype.Rd=function(){if(0!==this.rd&&!this.u.isContextLost()){var b=this.u;0<this.el&&(b.bindBuffer(b.ARRAY_BUFFER,this.dl),b.bufferData(b.ARRAY_BUFFER,this.as.subarray(0,this.el),b.STREAM_DRAW),a&&0<=a.Bc&&"<point>"===a.name&&b.vertexAttribPointer(a.Bc,4,b.FLOAT,!1,0,0));if(0<this.od){var a=this.kg;b.bindBuffer(b.ARRAY_BUFFER,this.uh[this.td]);b.bufferData(b.ARRAY_BUFFER,this.Pl.subarray(0,this.od),b.STREAM_DRAW);a&&0<=a.Bc&&"<point>"!==a.name&&b.vertexAttribPointer(a.Bc,
2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.qh[this.td]);b.bufferData(b.ARRAY_BUFFER,this.Gl.subarray(0,this.od),b.STREAM_DRAW);a&&0<=a.$d&&"<point>"!==a.name&&b.vertexAttribPointer(a.$d,2,b.FLOAT,!1,0,0)}for(var e,b=0,a=this.rd;b<a;b++)switch(e=this.Od[b],e.type){case 1:e.gq();break;case 2:e.mq();break;case 3:e.jq();break;case 4:e.iq();break;case 5:e.oq();break;case 6:e.hq();break;case 7:e.dq();break;case 8:e.fq();break;case 9:e.kq();break;case 10:e.lq();break;case 11:e.nq()}this.el=this.od=
this.rd=0;this.Rb=!1;this.td++;4<=this.td&&(this.td=0)}};d.prototype.Mf=function(a){if(a!==this.yn){var c=this.Sc();c.type=3;this.yn=c.Wn=a;this.Rb=!1}};d.prototype.sc=function(a){if(a!==this.Yd){var c=this.Sc();c.type=2;this.Yd=c.Vc=a;this.Rb=!1}};d.prototype.fe=function(a,c){if(a!==this.zn||c!==this.wn){var e=this.Sc();e.type=4;e.Gc=a;e.bd=c;this.zn=a;this.wn=c;this.Rb=!1}};d.prototype.to=function(){this.fe(this.u.ONE,this.u.ONE_MINUS_SRC_ALPHA)};d.prototype.Zi=function(a,c,e,d,h,m,q,r){15992<=
this.od&&this.Rd();var u=this.od,t=this.Pl,k=this.Gl;if(this.Rb)this.Od[this.rd-1].bd+=6;else{var f=this.Sc();f.type=1;f.Gc=3*(u/4);f.bd=6;this.Rb=!0}t[u]=a;k[u++]=0;t[u]=c;k[u++]=0;t[u]=e;k[u++]=1;t[u]=d;k[u++]=0;t[u]=h;k[u++]=1;t[u]=m;k[u++]=1;t[u]=q;k[u++]=0;t[u]=r;k[u++]=1;this.od=u};d.prototype.de=function(a,c,e,d,h,m,q,r,u){15992<=this.od&&this.Rd();var t=this.od,k=this.Pl,f=this.Gl;if(this.Rb)this.Od[this.rd-1].bd+=6;else{var p=this.Sc();p.type=1;p.Gc=3*(t/4);p.bd=6;this.Rb=!0}var p=u.left,
g=u.top,z=u.right;u=u.bottom;k[t]=a;f[t++]=p;k[t]=c;f[t++]=g;k[t]=e;f[t++]=z;k[t]=d;f[t++]=g;k[t]=h;f[t++]=z;k[t]=m;f[t++]=u;k[t]=q;f[t++]=p;k[t]=r;f[t++]=u;this.od=t};d.prototype.kd=function(a){if(this.Kg!==a){if(!this.ab[a]){if(0===this.Kg)return;a=0}var c=this.Sc();c.type=9;this.Kg=c.Gc=a;this.Rb=!1}};d.prototype.dh=function(a){a=this.ab[a];return!(!a.Qe&&!a.Pe)};d.prototype.fl=function(a){a=this.ab[a];return!!(a.Qe||a.Pe||a.wm)};d.prototype.es=function(a){a=this.ab[a];return 0!==a.ck||0!==a.dk};
d.prototype.ir=function(a){return this.ab[a].ck};d.prototype.jr=function(a){return this.ab[a].dk};d.prototype.kr=function(a,c){return this.ab[a].I[c][2]};d.prototype.Wi=function(a){return this.ab[a].km};d.prototype.Nf=function(a,c,e,d,h,m,q,r,u){var t=this.ab[this.Kg];if(t.Lk||t.Kk||t.Mk||t.Rg||t.Qe||t.Pe||t.Jk||u.length){var k=this.Sc();k.type=10;k.M?Yb(this.Cc,k.M):k.M=Xb();k.M[0]=c;k.M[1]=e;k.M[2]=d;k.M[3]=h;k.M[4]=m;k.M[5]=q;k.M[6]=r;k.Vc=t.Rg?a:null;if(u.length)for(k.zl.length=u.length,a=0,c=
u.length;a<c;a++)k.zl[a]=u[a];this.Rb=!1}};d.prototype.clear=function(a,c,e,d){var h=this.Sc();h.type=7;h.Gc=0;h.M||(h.M=Xb());h.M[0]=a;h.M[1]=c;h.M[2]=e;h.M[3]=d;this.Rb=!1};d.prototype.clearRect=function(a,c,e,d){var h=this.Sc();h.type=7;h.Gc=1;h.M||(h.M=Xb());h.M[0]=a;h.M[1]=c;h.M[2]=e;h.M[3]=d;this.Rb=!1};d.prototype.ds=function(){this.Rd();this.u.flush()};var h=[],a={};d.prototype.Dn=function(b,c,e){var d;d=!1;c=!!c;var s=b.src+","+d+","+c+(d?",undefined":""),m=null;if("undefined"!==typeof b.src&&
a.hasOwnProperty(s))return m=a[s],m.Ih++,m;this.Rd();var q=this.u,r=ea(b.width)&&ea(b.height),m=q.createTexture();q.bindTexture(q.TEXTURE_2D,m);q.pixelStorei(q.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var u=q.RGBA,t=q.RGBA,k=q.UNSIGNED_BYTE;if(e&&!this.ri)switch(e){case 1:t=u=q.RGB;break;case 2:k=q.UNSIGNED_SHORT_4_4_4_4;break;case 3:k=q.UNSIGNED_SHORT_5_5_5_1;break;case 4:t=u=q.RGB,k=q.UNSIGNED_SHORT_5_6_5}!r&&d?(e=document.createElement("canvas"),e.width=fa(b.width),e.height=fa(b.height),e.getContext("2d").drawImage(b,
0,0,b.width,b.height,0,0,e.width,e.height),q.texImage2D(q.TEXTURE_2D,0,u,t,k,e)):q.texImage2D(q.TEXTURE_2D,0,u,t,k,b);d?(q.texParameteri(q.TEXTURE_2D,q.TEXTURE_WRAP_S,q.REPEAT),q.texParameteri(q.TEXTURE_2D,q.TEXTURE_WRAP_T,q.REPEAT)):(q.texParameteri(q.TEXTURE_2D,q.TEXTURE_WRAP_S,q.CLAMP_TO_EDGE),q.texParameteri(q.TEXTURE_2D,q.TEXTURE_WRAP_T,q.CLAMP_TO_EDGE));c?(q.texParameteri(q.TEXTURE_2D,q.TEXTURE_MAG_FILTER,q.LINEAR),r?(q.texParameteri(q.TEXTURE_2D,q.TEXTURE_MIN_FILTER,q.LINEAR_MIPMAP_LINEAR),
q.generateMipmap(q.TEXTURE_2D)):q.texParameteri(q.TEXTURE_2D,q.TEXTURE_MIN_FILTER,q.LINEAR)):(q.texParameteri(q.TEXTURE_2D,q.TEXTURE_MAG_FILTER,q.NEAREST),q.texParameteri(q.TEXTURE_2D,q.TEXTURE_MIN_FILTER,q.NEAREST));q.bindTexture(q.TEXTURE_2D,null);this.Yd=null;m.gg=b.width;m.fg=b.height;m.Ih=1;m.om=s;h.push(m);return a[s]=m};d.prototype.sd=function(a,c,e,d){this.Rd();var s=this.u;this.ri&&(d=!1);var m=s.createTexture();s.bindTexture(s.TEXTURE_2D,m);s.texImage2D(s.TEXTURE_2D,0,s.RGBA,a,c,0,s.RGBA,
d?s.UNSIGNED_SHORT_4_4_4_4:s.UNSIGNED_BYTE,null);s.texParameteri(s.TEXTURE_2D,s.TEXTURE_WRAP_S,s.CLAMP_TO_EDGE);s.texParameteri(s.TEXTURE_2D,s.TEXTURE_WRAP_T,s.CLAMP_TO_EDGE);s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MAG_FILTER,e?s.LINEAR:s.NEAREST);s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MIN_FILTER,e?s.LINEAR:s.NEAREST);s.bindTexture(s.TEXTURE_2D,null);this.Yd=null;m.gg=a;m.fg=c;h.push(m);return m};d.prototype.Os=function(a,c,e){this.Rd();var d=this.u;this.ri&&(e=!1);d.bindTexture(d.TEXTURE_2D,c);d.texImage2D(d.TEXTURE_2D,
0,d.RGBA,d.RGBA,e?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,a);d.bindTexture(d.TEXTURE_2D,null);this.Yd=null};d.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.Ih&&1<b.Ih?b.Ih--:(this.Rd(),b===this.Yd&&(this.u.bindTexture(this.u.TEXTURE_2D,null),this.Yd=null),b===this.Ne&&(this.u.activeTexture(this.u.TEXTURE1),this.u.bindTexture(this.u.TEXTURE_2D,null),this.u.activeTexture(this.u.TEXTURE0),this.Ne=null),wa(h,b),"undefined"!==typeof b.om&&delete a[b.om],this.u.deleteTexture(b)))};d.prototype.jd=
function(a){if(a!==this.ro){var c=this.Sc();c.type=6;this.ro=c.Vc=a;this.Rb=!1}};ab=d})();
(function(){function d(k){if(k&&(k.getContext||k.dc)&&!k.c2runtime){k.c2runtime=this;var f=this;this.xk=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk);this.nn=!this.xk&&"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||"undefined"!==typeof window.device.phonegap);this.Ub=!!k.dc;this.kn="undefined"!==typeof window.AppMobi||this.Ub;if(this.cd=!!window.c2cocoonjs)CocoonJS.App.onSuspended.addEventListener(function(){f.setSuspended(!0)}),
CocoonJS.App.onActivated.addEventListener(function(){f.setSuspended(!1)});this.Vb=this.Ub||this.cd;this.on=/tizen/i.test(navigator.userAgent);this.qi=/android/i.test(navigator.userAgent)&&!this.on;this.ri=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.tn=/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent);this.sn=/ipad/i.test(navigator.userAgent);this.Ck=this.tn||this.sn;this.Ag=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent);
this.Jr=/amazonwebappplatform/i.test(navigator.userAgent);this.ln=/firefox/i.test(navigator.userAgent);this.Nr=!this.Ag&&/safari/i.test(navigator.userAgent);this.Or=/windows/i.test(navigator.userAgent);this.Wd="undefined"!==typeof window.c2nodewebkit||/nodewebkit/i.test(navigator.userAgent);this.pn=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.qn=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Kr=!("undefined"===typeof window.c2isBlackberry10||
!window.c2isBlackberry10);this.jn=this.qi&&!this.Ag&&!this.ln&&!this.Jr&&!this.Vb;this.devicePixelRatio=1;this.Vd=this.nn||this.xk||this.kn||this.cd||this.qi||this.Ck||this.qn||this.Kr||this.on;this.Vd||(this.Vd=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.Wd||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)||(this.Wd=!0);this.Lr="undefined"!==typeof cr_is_preview&&-1<window.location.search.indexOf("debug");
this.canvas=k;this.rm=document.getElementById("c2canvasdiv");this.qa=this.J=this.u=null;this.gk="";this.ci=!1;this.Sn=this.Tn=0;this.canvas.oncontextmenu=function(f){f.preventDefault&&f.preventDefault();return!1};this.canvas.onselectstart=function(f){f.preventDefault&&f.preventDefault();return!1};this.Ub&&(window.c2runtime=this);this.Wd&&(window.du=function(f){f.preventDefault();return!1},window.eu=function(f){f.preventDefault();return!1},require("nw.gui").App.clearCache());this.width=k.width;this.height=
k.height;this.W=this.width;this.V=this.height;this.Rh=this.width;this.Qh=this.height;this.Mg=window.innerWidth;this.Lg=window.innerHeight;this.ra=!0;this.Cg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.C=[];this.Ma=[];this.Gk={};this.Pc=[];this.bk={};this.Be=[];this.qe=[];this.sj=[];this.Lp=[];this.Mp=[];this.un=this.Bo=null;this.Zc=new ba;this.yk=!1;this.Nc=0;this.Ak=!1;this.Ob=[];this.Ad=this.xb=this.Ii=this.sl="";this.oh=this.zo=!1;this.Vj=this.Sg=this.Qd=
this.Ae=0;this.me=1;this.Wb=new Ta;this.Ai=0;this.Hn=!0;this.Pi=this.gi=this.De=this.md=this.Ng=this.fk=0;this.hg=null;this.Wh=[];this.ak=[];this.Zh=-1;this.Nk=[[]];this.Kl=this.Li=0;this.Yi(null);this.lg=this.Nn=this.Xg=0;this.ph=[];this.pj=this.$i=0;this.Gg=!0;this.zf=0;this.Bg=!1;this.Cs=0;this.Dr=!1;this.Ek=0;this.sf=this.il=!1;this.Tk=new ba;this.Rn=new ba;this.aj=[];this.Uc=new Va([]);this.Fl=new Va([]);this.Md=[];this.df={};this.gf={};this.ef={};this.Xf={};this.mm={};this.Cn=this.Gi=this.Zb=
this.qc=this.Bn=this.Fi=this.ua=null;this.Vf=this.Bk=!1;this.hk=[null,null];this.Ee=0;this.Hm="";this.Te={};this.kj=this.yf=null;this.load();this.devicePixelRatio=(this.Je=!this.Vb&&this.Ls&&!this.jn)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.ob();var p,g=this.Nj&&!(this.Wd||this.pn||this.qn);0<this.mc&&this.setSize(window.innerWidth,window.innerHeight,!0);try{!this.rq||!this.cd&&this.Vb||(p={alpha:g,depth:!1,antialias:!1,
failIfMajorPerformanceCaveat:!0},this.u=k.getContext("webgl",p)||k.getContext("experimental-webgl",p))}catch(a){}if(this.u){this.Vb||(this.lb=document.createElement("canvas"),jQuery(this.lb).appendTo(this.canvas.parentNode),this.lb.oncontextmenu=H(!1),this.lb.onselectstart=H(!1),this.lb.width=this.Rh,this.lb.height=this.Qh,jQuery(this.lb).css({width:this.Rh+"px",height:this.Qh+"px"}),this.io(),this.bl=this.lb.getContext("2d"));this.J=new ab(this.u,this.Vd);this.J.Of(k.width,k.height);this.qa=null;
this.canvas.addEventListener("webglcontextlost",function(k){k.preventDefault();f.Wr();console.log("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){f.J.$m();f.J.Of(f.J.width,f.J.height,!0);f.qc=null;f.Zb=null;f.hk[0]=null;f.hk[1]=null;f.Xr();f.ra=!0;console.log("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);var b,e,c,d,n,l;k=0;for(p=this.C.length;k<p;k++)for(e=this.C[k],g=0,b=e.R.length;g<b;g++)d=
e.R[g],d.nb=this.J.pk(d.id),this.Vf=this.Vf||this.J.dh(d.nb);k=0;for(p=this.Pc.length;k<p;k++){n=this.Pc[k];g=0;for(b=n.R.length;g<b;g++)d=n.R[g],d.nb=this.J.pk(d.id);g=0;for(b=n.ca.length;g<b;g++)for(l=n.ca[g],e=0,c=l.R.length;e<c;e++)d=l.R[e],d.nb=this.J.pk(d.id),this.Vf=this.Vf||this.J.dh(d.nb)}}else{if(0<this.mc&&this.Ub){this.canvas=null;document.oncontextmenu=H(!1);document.onselectstart=H(!1);this.qa=AppMobi.canvas.getContext("2d");try{this.qa.samplingMode=this.la?"smooth":"sharp",this.qa.globalScale=
1,this.qa.HTML5CompatibilityMode=!0,this.qa.imageSmoothingEnabled=this.la}catch(h){}0!==this.width&&0!==this.height&&(this.qa.width=this.width,this.qa.height=this.height)}this.qa||(p=this.cd?{antialias:!!this.la,alpha:g}:{alpha:g},this.qa=k.getContext("2d",p),this.qa.webkitImageSmoothingEnabled=this.la,this.qa.mozImageSmoothingEnabled=this.la,this.qa.msImageSmoothingEnabled=this.la,this.qa.imageSmoothingEnabled=this.la);this.bl=this.lb=null}this.oj=function(){f.Ia()};window==window.top||this.Vb||
this.pn||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.cd&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(I("Reloading for continuous preview"),this.Ii="__c2_continuouspreview",this.oh=!0),this.$r&&!this.Vd&&(jQuery(window).focus(function(){f.setSuspended(!1)}),jQuery(window).blur(function(){f.setSuspended(!0)})));
0===this.mc&&this.Je&&1<this.devicePixelRatio&&this.setSize(this.fb,this.eb,!0);this.Po();this.go();this.O={}}}function m(k){k.target.result.createObjectStore("saves",{keyPath:"slot"})}function c(k,f,p,g){var a=indexedDB.open("_C2SaveStates");a.onupgradeneeded=m;a.onerror=g;a.onsuccess=function(a){a=a.target.result;a.onerror=g;a.transaction(["saves"],"readwrite").objectStore("saves").put({slot:k,data:f}).onsuccess=p}}function h(k,f,p){var g=indexedDB.open("_C2SaveStates");g.onupgradeneeded=m;g.onerror=
p;g.onsuccess=function(g){g=g.target.result;g.onerror=p;var a=g.transaction(["saves"]).objectStore("saves").get(k);a.onsuccess=function(){a.result?f(a.result.data):f(null)}}}function a(){I("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location+="?continuous"}function b(k){var f,p={};for(f in k)!k.hasOwnProperty(f)||k[f]instanceof ba||k[f]&&"undefined"!==typeof k[f].Wt||(p[f]=k[f]);return p}
d.prototype.setSize=function(k,f,p){var g=0,a=0,b=0,e=0,e=0;if(this.Mg!==k||this.Lg!==f||p){this.Mg=k;this.Lg=f;var c=this.mc,d=document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Bg;if(d||0!==this.mc||p)d&&0<this.Ee&&(c=this.Ee),4<=c?(p=this.fb/this.eb,k/f>p?(b=f*p,5===c?(e=b/this.fb,1<e?e=Math.floor(e):1>e&&(e=1/Math.ceil(1/e)),b=this.fb*e,e*=this.eb,g=(k-b)/2,a=(f-e)/2,k=b,f=e):(g=(k-b)/2,k=b)):(e=k/p,5===c?(e/=this.eb,1<e?e=Math.floor(e):
1>e&&(e=1/Math.ceil(1/e)),b=this.fb*e,e*=this.eb,g=(k-b)/2,a=(f-e)/2,k=b):a=(f-e)/2,f=e),d&&!this.Wd&&(a=g=0),g=Math.floor(g),a=Math.floor(a),k=Math.floor(k),f=Math.floor(f)):this.Wd&&this.Bg&&0===this.Jm&&(g=Math.floor((k-this.fb)/2),a=Math.floor((f-this.eb)/2),k=this.fb,f=this.eb),2>c&&(this.eg=this.devicePixelRatio),this.Je&&this.sn&&1<this.devicePixelRatio&&(1024<=k&&(k=1023),1024<=f&&(f=1023)),d=this.devicePixelRatio,this.Rh=k,this.Qh=f,this.width=Math.round(k*d),this.height=Math.round(f*d),
this.ra=!0,this.Zo?(this.W=this.width,this.V=this.height,this.zc=!0):this.width<this.fb&&this.height<this.eb||1===c?(this.W=this.width,this.V=this.height,this.zc=!0):(this.W=this.fb,this.V=this.eb,this.zc=!1,2===c?(p=this.fb/this.eb,c=this.Mg/this.Lg,c<p?this.W=this.V*c:c>p&&(this.V=this.W/c)):3===c&&(p=this.fb/this.eb,c=this.Mg/this.Lg,c>p?this.W=this.V*c:c<p&&(this.V=this.W/c))),this.rm&&!this.Vb&&(jQuery(this.rm).css({width:k+"px",height:f+"px","margin-left":g,"margin-top":a}),"undefined"!==typeof cr_is_preview&&
jQuery("#borderwrap").css({width:k+"px",height:f+"px"})),this.canvas&&(this.canvas.width=Math.round(k*d),this.canvas.height=Math.round(f*d),this.Je&&jQuery(this.canvas).css({width:k+"px",height:f+"px"})),this.lb&&(this.lb.width=k,this.lb.height=f,jQuery(this.lb).css({width:k+"px",height:f+"px"})),this.J&&this.J.Of(Math.round(k*d),Math.round(f*d)),this.Ub&&this.qa&&(this.qa.width=k,this.qa.height=f),this.qa&&(this.qa.webkitImageSmoothingEnabled=this.la,this.qa.mozImageSmoothingEnabled=this.la,this.qa.msImageSmoothingEnabled=
this.la,this.qa.imageSmoothingEnabled=this.la),this.Po()}};d.prototype.Po=function(){if(this.Np&&0!==this.$k){var k="portrait";2===this.$k&&(k="landscape");screen.lockOrientation?screen.lockOrientation(k):screen.webkitLockOrientation?screen.webkitLockOrientation(k):screen.mozLockOrientation?screen.mozLockOrientation(k):screen.msLockOrientation&&screen.msLockOrientation(k)}};d.prototype.Wr=function(){this.Bk=!0;var k,f,p;k=0;for(f=this.C.length;k<f;k++)p=this.C[k],p.Zk&&p.Zk()};d.prototype.Xr=function(){this.Bk=
!1;var k,f,p;k=0;for(f=this.C.length;k<f;k++)p=this.C[k],p.Un&&p.Un()};d.prototype.io=function(){if(!this.Vb){var k=document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Bg?jQuery(this.canvas).offset():jQuery(this.canvas).position();k.position="absolute";jQuery(this.lb).css(k)}};var n=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;d.prototype.setSuspended=
function(k){var f;if(k&&!this.Cg)for(I("[Construct 2] Suspending"),this.Cg=!0,0!==this.$i&&n&&n(this.$i),0!==this.pj&&clearTimeout(this.pj),k=0,f=this.ph.length;k<f;k++)this.ph[k](!0);else if(!k&&this.Cg){I("[Construct 2] Resuming");this.Cg=!1;this.Ai=Sa();this.Ng=Sa();k=this.Sg=this.gi=0;for(f=this.ph.length;k<f;k++)this.ph[k](!1);this.Ia()}};d.prototype.hm=function(k){this.ph.push(k)};d.prototype.load=function(){var k=bc();this.name=k[0];this.Im=k[1];this.mc=k[11];this.Jm=k[11];this.fb=k[9];this.eb=
k[10];this.co=this.fb/2;this.eo=this.eb/2;this.Vb&&(4<=k[11]||0===k[11])&&(I("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Jm=this.mc=3);this.Nl=k[17];this.Qg=k[18];0===this.Qg&&(this.yf=new Image,this.yf.src="loading-logo.png");this.Xg=k[20];this.ld=new X(this);var f,p,g,a,b,e,c,d,n;f=0;for(p=k[2].length;f<p;f++)c=k[2][f],bb(c),n=new c[0](this),n.Dl=c[1],n.Xd=c[2],n.Kn=c[9],n.$&&n.$(),this.plugins.push(n);k=bc();f=0;for(p=
k[3].length;f<p;f++){c=k[3][f];b=c[1];n=null;g=0;for(a=this.plugins.length;g<a;g++)if(this.plugins[g]instanceof b){n=this.plugins[g];break}var l=new n.za(n);l.name=c[0];l.U=c[2];l.wk=c[3].slice(0);l.Ns=c[3].length;l.Op=c[4];l.Uq=c[5];l.Y=c[11];l.U?(l.Ef=[],l.ad=this.lg++,l.xa=null):(l.Ef=null,l.ad=-1,l.xa=[]);l.ai=null;l.nf=null;l.Dm=null;l.pc=!1;l.Fb=null;c[6]?(l.Jo=c[6][0],l.Ko=c[6][1],l.Es=c[6][2]):(l.Jo=null,l.Ko=0,l.Es=0);l.Nb=c[7]?c[7]:null;l.index=f;l.j=[];l.Uh=[];l.ie=[new eb(l)];l.ud=0;l.xc=
null;l.Sf=!0;l.tj=fb;l.Zq=gb;l.hr=hb;l.ja=ib;l.fh=jb;l.Xi=kb;l.Ue=lb;l.ji=mb;l.jk=nb;l.nk=ob;l.Xc=tb;l.Pm=ub;l.Oh=new Wa(this.fb,this.eb);l.Bh=!0;l.Ch=!1;l.O={};l.toString=vb;l.Ma=[];g=0;for(a=c[8].length;g<a;g++){d=c[8][g];var h=d[1],q=null;b=0;for(e=this.Ma.length;b<e;b++)if(this.Ma[b]instanceof h){q=this.Ma[b];break}q||(q=new h(this),q.Oi=[],q.Ni=new ba,q.$&&q.$(),this.Ma.push(q),cc&&q instanceof cc&&(this.Bo=q),Ub.Rr&&q instanceof Ub.Rr&&(this.un=q));-1===q.Oi.indexOf(l)&&q.Oi.push(l);b=new q.za(q,
l);b.name=d[0];b.Y=d[2];b.$();l.Ma.push(b)}l.global=c[9];l.zk=c[10];l.R=[];g=0;for(a=c[12].length;g<a;g++)l.R.push({id:c[12][g][0],name:c[12][g][1],nb:-1,kc:!0,index:g});l.ju=c[13];this.Nl&&!l.U&&!l.zk&&n.Xd||l.$();l.name&&(this.types[l.name]=l);this.C.push(l);n.Dl&&(g=new n.ma(l),g.uid=this.Xg++,g.no=this.Nn++,g.Ge=0,g.tg=wb,g.toString=xb,g.D=c[14],g.$(),l.j.push(g),this.Te[g.uid.toString()]=g)}f=0;for(p=k[4].length;f<p;f++)for(b=k[4][f],e=this.C[b[0]],g=1,a=b.length;g<a;g++)c=this.C[b[g]],c.xa.push(e),
e.Ef.push(c);f=0;for(p=k[23].length;f<p;f++){b=k[23][f];e=[];g=0;for(a=b.length;g<a;g++)e.push(this.C[b[g]]);g=0;for(a=e.length;g<a;g++)e[g].pc=!0,e[g].Fb=e}if(0<this.lg)for(f=0,p=this.C.length;f<p;f++)if(c=this.C[f],!c.U&&c.xa.length){c.ai=Array(this.lg);c.nf=Array(this.lg);c.Dm=Array(this.lg);l=[];g=q=h=d=0;for(a=c.xa.length;g<a;g++)for(n=c.xa[g],c.ai[n.ad]=d,d+=n.Ns,c.nf[n.ad]=h,h+=n.Op,c.Dm[n.ad]=q,q+=n.Uq,b=0,e=n.R.length;b<e;b++)l.push(pa({},n.R[b]));c.R=l.concat(c.R);g=0;for(a=c.R.length;g<
a;g++)c.R[g].index=g}f=0;for(p=k[5].length;f<p;f++)c=k[5][f],g=new yb(this,c),this.Gk[g.name]=g,this.Pc.push(g);f=0;for(p=k[6].length;f<p;f++)c=k[6][f],g=new zb(this,c),this.bk[g.name]=g,this.Be.push(g);f=0;for(p=this.Be.length;f<p;f++)this.Be[f].La();f=0;for(p=this.sj.length;f<p;f++)this.sj[f].La();this.sj.length=0;this.Hm=k[7];this.be=k[8];this.eg=1;this.rq=k[12];this.la=k[13];this.Nj=k[14];this.Ls=k[16];this.$k=k[19];this.Np=0<this.$k;this.$r=k[21];this.zc=this.Zo=k[22];this.lj=Date.now()};d.prototype.Sq=
function(k){var f,a;f=0;for(a=this.qe.length;f<a;f++)if(this.qe[f].Zp===k)return this.qe[f];return null};d.prototype.lm=function(){var k=0,f=0,a=!0,g,b;g=0;for(b=this.qe.length;g<b;g++){var e=this.qe[g].Yp;if(!e||0>=e)e=5E4;k+=e;this.qe[g].complete||this.qe[g].loaded?f+=e:a=!1}this.Ve=0==k?0:f/k;return a};d.prototype.go=function(){if(this.qa||this.J){var k=this.qa||this.bl;this.lb&&this.io();this.Ve=0;this.An=-1;if(this.lm())this.Br();else{var f=Date.now()-this.lj;if(k){var a=this.width,g=this.height,
b=this.devicePixelRatio;this.lb&&(a=this.Rh,g=this.Qh,b=1);if(3!==this.Qg&&500<=f&&this.An!=this.Ve){k.clearRect(0,0,a,g);var f=a/2,g=g/2,a=0===this.Qg&&this.yf.complete,e=40*b,c=0,d=80*b,l;a&&(d=this.yf.width*b,l=this.yf.height*b,e=d/2,c=l/2,k.drawImage(this.yf,T(f-e),T(g-c),d,l));1>=this.Qg?(f=T(f-e)+0.5,g=T(g+(c+(a?12*b:0)))+0.5,k.fillStyle="DodgerBlue",k.fillRect(f,g,Math.floor(d*this.Ve),6*b),k.strokeStyle="black",k.strokeRect(f,g,d,6*b),k.strokeStyle="white",k.strokeRect(f-1*b,g-1*b,d+2*b,8*
b)):2===this.Qg&&(k.font="12pt Arial",k.fillStyle="#999",k.iu="middle",b=Math.round(100*this.Ve)+"%",a=k.measureText?k.measureText(b):null,k.fillText(b,f-(a?a.width:0)/2,g))}this.An=this.Ve}setTimeout(function(f){return function(){f.go()}}(this),100)}}};d.prototype.Br=function(){this.lb&&(this.canvas.parentNode.removeChild(this.lb),this.lb=this.bl=null);this.lj=Date.now();this.Ng=Sa();var k,f,a;if(this.Nl)for(k=0,f=this.C.length;k<f;k++)a=this.C[k],a.U||a.zk||!a.Ka.Xd||a.$();else this.Gg=!1;k=0;for(f=
this.Pc.length;k<f;k++)this.Pc[k].$p();2<=this.mc&&(k=this.fb/this.eb,f=this.width/this.height,this.eg=2!==this.mc&&f>k||2===this.mc&&f<k?this.height/this.eb:this.width/this.fb);this.Im?this.Gk[this.Im].El():this.Pc[0].El();this.Nl||(this.zf=1,this.trigger(X.prototype.m.Hj,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();this.Ia();this.Ub&&AppMobi.webview.execute("onGameReady();")};var e=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||
window.msRequestAnimationFrame||window.oRequestAnimationFrame;d.prototype.Ia=function(){if(this.ua){var k=Sa();if(this.Dr&&this.il&&29>k-this.Ek)this.il=!1,this.Ek=k,e?this.$i=e(this.oj,this.canvas):this.pj=setTimeout(this.oj,this.Vd?1:16);else{this.il=!0;this.Ek=k;var f=this.mc,a=document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement;(a||this.Bg)&&0<this.Ee&&(f=this.Ee);if(0<f&&!this.tn){var f=window.innerWidth,g=window.innerHeight;this.Mg===f&&this.Lg===
g||this.setSize(f,g)}this.Vb||(a?(this.ci||(this.gk=jQuery(this.canvas).css("margin")||"0",this.ci=!0),this.Ag||this.Wd||jQuery(this.canvas).css({"margin-left":""+Math.floor((screen.width-this.width/this.devicePixelRatio)/2)+"px","margin-top":""+Math.floor((screen.height-this.height/this.devicePixelRatio)/2)+"px"})):this.ci?(this.Ag||this.Wd||jQuery(this.canvas).css("margin",this.gk),this.gk="",this.ci=!1,0===this.mc&&this.setSize(Math.round(this.Tn/this.devicePixelRatio),Math.round(this.Sn/this.devicePixelRatio),
!0)):(this.Tn=this.width,this.Sn=this.height));this.Gg&&(a=this.lm(),this.zf=this.Ve,a&&(this.Gg=!1,this.Ve=1,this.trigger(X.prototype.m.Hj,null)));this.Ur();!this.ra&&!this.cd||this.Bk||this.oh||(this.ra=!1,this.J?this.Mc():this.vd(),this.kj&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.kj[0],this.kj[1]),this.trigger(X.prototype.m.ip,null)),this.kj=null));this.bu||(this.md++,this.De++,this.gi++);this.Sg+=Sa()-k;this.Cg||(e?this.$i=e(this.oj,this.canvas):this.pj=setTimeout(this.oj,
this.Vd?1:16))}}};d.prototype.Ur=function(){var k,f,a,g,b,e,c,d,l;k=Sa();1E3<=k-this.Ng&&(this.Ng+=1E3,this.fk=this.gi,this.gi=0,this.Vj=this.Sg,this.Sg=0);this.Hn&&(0!==this.Ai&&(f=k-this.Ai,0!==f||this.Lr?(this.Qd=f/1E3,0.5<this.Qd?this.Qd=0:0.1<this.Qd&&(this.Qd=0.1)):(10<=this.lu&&(this.Hn=!1),this.Qd=1/60)),this.Ai=k);this.Ae=this.Qd*this.me;this.Wb.add(this.Ae);k=document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Bg;2<=this.mc||k&&
0<this.Ee?(f=this.fb/this.eb,a=this.width/this.height,g=this.mc,k&&0<this.Ee&&(g=this.Ee),this.eg=2!==g&&a>f||2===g&&a<f?this.height/this.eb:this.width/this.fb,this.ua&&(this.ua.tl(this.ua.scrollX),this.ua.ul(this.ua.scrollY))):this.eg=this.Je?this.devicePixelRatio:1;this.ob();this.Nc++;this.ld.qs();this.Nc--;this.ob();this.Nc++;k=0;for(f=this.C.length;k<f;k++)if(c=this.C[k],!c.U&&(c.Ma.length||c.xa.length))for(a=0,g=c.j.length;a<g;a++)for(d=c.j[a],b=0,e=d.S.length;b<e;b++)d.S[b].Ia();k=0;for(f=this.C.length;k<
f;k++)if(c=this.C[k],!c.U&&(c.Ma.length||c.xa.length))for(a=0,g=c.j.length;a<g;a++)for(d=c.j[a],b=0,e=d.S.length;b<e;b++)l=d.S[b],l.jo&&l.jo();a=this.Tk.Wf();k=0;for(f=a.length;k<f;k++)a[k].Ia();this.Nc--;this.Er();for(k=0;this.hg&&10>k++;)this.Bm(this.hg);k=0;for(f=this.Be.length;k<f;k++)this.Be[k].rk=!1;this.ua.Yh&&this.ua.Yh.Ra();this.aj.length=0;this.Nc++;k=0;for(f=this.C.length;k<f;k++)if(c=this.C[k],!c.U&&(c.Ma.length||c.xa.length))for(a=0,g=c.j.length;a<g;a++)for(d=c.j[a],b=0,e=d.S.length;b<
e;b++)l=d.S[b],l.Hl&&l.Hl();a=this.Rn.Wf();k=0;for(f=a.length;k<f;k++)a[k].Hl();this.Nc--};d.prototype.Bm=function(a){var f=this.ua;this.ua.Ds();var p,g,b,e,c,d,l;if(this.J)for(p=0,g=this.C.length;p<g;p++)c=this.C[p],c.U||!c.To||c.global&&0!==c.j.length||-1!==a.wg.indexOf(c)||c.To();f==a&&(this.ld.Mb.length=0);a.El();p=0;for(g=this.C.length;p<g;p++)if(c=this.C[p],c.global||c.Ka.Dl)for(a=0,f=c.j.length;a<f;a++)if(d=c.j[a],d.Yk&&d.Yk(),d.S)for(b=0,e=d.S.length;b<e;b++)l=d.S[b],l.Yk&&l.Yk();this.ra=
!0;this.ob()};d.prototype.rh=function(a){this.Tk.add(a)};d.prototype.ng=function(a){return a&&-1!==a.Wg?this.Qd*a.Wg:this.Ae};d.prototype.vd=function(){this.ua.vd(this.qa);this.Ub&&this.qa.present()};d.prototype.Mc=function(){this.ua.Mc(this.J);this.J.ds()};d.prototype.Mj=function(a){a&&this.Wh.push(a)};d.prototype.ls=function(a){wa(this.Wh,a)};d.prototype.qg=function(a){return this.Te[a.toString()]};d.prototype.Kd=function(a){var f,p;if(!this.Zc.contains(a)){this.Zc.add(a);if(a.pc)for(f=0,p=a.siblings.length;f<
p;f++)this.Kd(a.siblings[f]);this.yk&&this.Zc.pe.push(a);this.Nc++;this.trigger(Object.getPrototypeOf(a.type.Ka).m.Yl,a);this.Nc--}};d.prototype.ob=function(){var a,f,p,g,b,e,c,d,l,n;this.yk=!0;g=0;for(e=this.Ob.length;g<e;g++)for(a=this.Ob[g],f=a.type,f.j.push(a),b=0,c=f.xa.length;b<c;b++)f.xa[b].j.push(a),f.xa[b].Sf=!0;this.Ob.length=0;e=this.Zc.Wf();for(g=0;g<e.length;g++){a=e[g];f=a.type;p=f.j;b=0;for(c=this.Wh.length;b<c;b++)this.Wh[b](a);wa(p,a);0===p.length&&(f.Ch=!1);a.Nh&&f.Oh.update(a,a.Nh,
null);a.k&&(ta(a.k.j,a.oc()),a.k.jc=!0);b=0;for(c=f.xa.length;b<c;b++)wa(f.xa[b].j,a),f.xa[b].Sf=!0;if(a.S)for(b=0,c=a.S.length;b<c;b++)p=a.S[b],p.If&&p.If(),p.K.Ni.remove(a);this.Tk.remove(a);this.Rn.remove(a);b=0;for(c=this.ld.Mb.length;b<c;b++)if(l=this.ld.Mb[b],l.yb.hasOwnProperty(f.index)&&wa(l.yb[f.index].yd,a),!f.U)for(p=0,d=f.xa.length;p<d;p++)n=f.xa[p],l.yb.hasOwnProperty(n.index)&&wa(l.yb[n.index].yd,a);a.If&&a.If();this.Te.hasOwnProperty(a.uid.toString())&&delete this.Te[a.uid.toString()];
this.Pi--;64>f.Uh.length&&f.Uh.push(a);f.Sf=!0}this.Zc.Ud()||(this.ra=!0);this.Zc.clear();this.yk=!1};d.prototype.vm=function(a,f,p,g){if(a.U){var b=T(Math.random()*a.Ef.length);return this.vm(a.Ef[b],f,p,g)}return a.xc?this.Pd(a.xc,f,!1,p,g,!1):null};var l=[];d.prototype.Pd=function(a,f,p,g,b,e){var c,d,n,h;if(!a)return null;var q=this.C[a[1]],s=q.Ka.Xd;if(this.Gg&&s&&!q.zk||s&&!this.J&&11===a[0][11])return null;var m=f;s||(f=null);var r;q.Uh.length?(r=q.Uh.pop(),r.rc=!0,q.Ka.ma.call(r,q)):(r=new q.Ka.ma(q),
r.rc=!1);r.uid=p&&!e?a[2]:this.Xg++;this.Te[r.uid.toString()]=r;r.no=this.Nn++;r.Ge=q.j.length;c=0;for(d=this.Ob.length;c<d;++c)this.Ob[c].type===q&&r.Ge++;r.tg=wb;n=a[3];if(r.rc)Ra(r.O);else{r.O={};if("undefined"!==typeof cr_is_preview)for(r.cn=[],r.cn.length=n.length,c=0,d=n.length;c<d;c++)r.cn[c]=n[c][1];r.Ya=[];r.Ya.length=n.length}c=0;for(d=n.length;c<d;c++)r.Ya[c]=n[c][0];if(s){var v=a[0];r.x=ca(g)?v[0]:g;r.y=ca(b)?v[1]:b;r.z=v[2];r.width=v[3];r.height=v[4];r.depth=v[5];r.n=v[6];r.opacity=v[7];
r.Sb=v[8];r.Tb=v[9];r.Ab=v[10];c=v[11];!this.J&&q.R.length&&(r.Ab=c);r.ig=Xa(r.Ab);this.u&&Ya(r,r.Ab,this.u);if(r.rc){c=0;for(d=v[12].length;c<d;c++)for(n=0,h=v[12][c].length;n<h;n++)r.Ga[c][n]=v[12][c][n];r.Ea.set(0,0,0,0);r.Nh.set(0,0,-1,-1);r.sb.Qf(r.Ea);r.Qj.length=0}else{r.Ga=v[12].slice(0);c=0;for(d=r.Ga.length;c<d;c++)r.Ga[c]=v[12][c].slice(0);r.fa=[];r.Ld=[];r.Ld.length=q.R.length;r.Ea=new na(0,0,0,0);r.Nh=new na(0,0,-1,-1);r.sb=new oa;r.Qj=[];r.F=Ab;r.Vt=Bb;r.Gb=Cb;r.Da=Db;r.oc=Eb}r.Uf=!1;
r.Hs=0;r.Gs=0;r.Fs=null;14===v.length&&(r.Uf=!0,r.Hs=v[13][0],r.Gs=v[13][1],r.Fs=v[13][2]);c=0;for(d=q.R.length;c<d;c++)r.Ld[c]=!0;r.Id=Fb;r.Id();r.Yo=!!r.fa.length;r.Pj=!0;q.Bh=!0;r.visible=!0;r.Wg=-1;r.k=f;r.$e=f.j.length;"undefined"===typeof r.Z&&(r.Z=null);this.ra=r.Yc=!0}r.toString=xb;var u;c=l.length=0;for(d=q.xa.length;c<d;c++)l.push.apply(l,q.xa[c].Ma);l.push.apply(l,q.Ma);if(r.rc)for(c=0,d=l.length;c<d;c++){var t=l[c];u=r.S[c];u.rc=!0;t.K.ma.call(u,t,r);v=a[4][c];n=0;for(h=v.length;n<h;n++)u.D[n]=
v[n];u.$();t.K.Ni.add(r)}else for(r.S=[],c=0,d=l.length;c<d;c++)t=l[c],u=new t.K.ma(t,r),u.rc=!1,u.D=a[4][c].slice(0),u.$(),r.S.push(u),t.K.Ni.add(r);v=a[5];if(r.rc)for(c=0,d=v.length;c<d;c++)r.D[c]=v[c];else r.D=v.slice(0);this.Ob.push(r);f&&(f.j.push(r),1!==f.Cd||1!==f.Dd)&&(q.Ch=!0);this.Pi++;if(q.pc){if(r.pc=!0,r.rc?r.siblings.length=0:r.siblings=[],!p&&!e){c=0;for(d=q.Fb.length;c<d;c++)if(q.Fb[c]!==q){if(!q.Fb[c].xc)return null;r.siblings.push(this.Pd(q.Fb[c].xc,m,!1,s?r.x:g,s?r.y:b,!0))}c=0;
for(d=r.siblings.length;c<d;c++)for(r.siblings[c].siblings.push(r),n=0;n<d;n++)c!==n&&r.siblings[c].siblings.push(r.siblings[n])}}else r.pc=!1,r.siblings=null;r.$();c=0;for(d=r.S.length;c<d;c++)r.S[c].cs&&r.S[c].cs();return r};d.prototype.er=function(a){var f,p;f=0;for(p=this.ua.ca.length;f<p;f++){var g=this.ua.ca[f];if($a(g.name,a))return g}return null};d.prototype.fr=function(a){a=T(a);0>a&&(a=0);a>=this.ua.ca.length&&(a=this.ua.ca.length-1);return this.ua.ca[a]};d.prototype.Sj=function(a){var f,
p;f=0;for(p=a.length;f<p;f++)a[f].ja().ta=!0};d.prototype.fh=function(a){var f,p;f=0;for(p=a.length;f<p;f++)a[f].fh()};d.prototype.Xi=function(a){var f,p;f=0;for(p=a.length;f<p;f++)a[f].Xi()};d.prototype.Ue=function(a){var f,p;f=0;for(p=a.length;f<p;f++)a[f].Ue()};d.prototype.Vo=function(a){if(a.Bh){var f,p,g=a.j;f=0;for(p=g.length;f<p;++f)g[f].Da();a.Bh=!1}};d.prototype.Mm=function(a,f,p,g){var b,e,c=a?1!==a.Cd||1!==a.Dd:!1;if(f.U)for(a=0,b=f.Ef.length;a<b;++a)e=f.Ef[a],c||e.Ch?va(g,e.j):(this.Vo(e),
e.Oh.po(p,g));else c||f.Ch?va(g,f.j):(this.Vo(f),f.Oh.po(p,g))};d.prototype.qk=function(a,f,p,g){var b,e;b=0;for(e=f.length;b<e;++b)this.Mm(a,f[b],p,g)};d.prototype.Sm=function(a,f,b){var g=this.Bo;g&&this.qk(a,g.Oi,f,b)};d.prototype.dr=function(a,f,b){var g=this.un;g&&this.qk(a,g.Oi,f,b)};d.prototype.ec=function(a,f){if(!(a&&f&&a!==f&&a.Yc&&f.Yc))return!1;a.Da();f.Da();var b=a.k,g=f.k,e,c,d,l,n,h,q,s;if(b===g||b.Cd===g.Cd&&g.Dd===g.Dd&&b.scale===g.scale&&b.n===g.n&&b.vh===g.vh){if(!a.Ea.gn(f.Ea)||
!a.sb.dn(f.sb)||a.Uf&&f.Uf)return!1;if(a.Uf)return this.Go(a,f);if(f.Uf)return this.Go(f,a);q=a.Z&&!a.Z.Ke();e=f.Z&&!f.Z.Ke();if(!q&&!e)return!0;q?(a.Z.we(a.width,a.height,a.n),q=a.Z):(this.Uc.Pf(a.sb,a.x,a.y,a.width,a.height),q=this.Uc);e?(f.Z.we(f.width,f.height,f.n),s=f.Z):(this.Uc.Pf(f.sb,f.x,f.y,f.width,f.height),s=this.Uc);return q.xg(s,f.x-a.x,f.y-a.y)}q=a.Z&&!a.Z.Ke();e=f.Z&&!f.Z.Ke();q?(a.Z.we(a.width,a.height,a.n),this.Uc.vo(a.Z)):this.Uc.Pf(a.sb,a.x,a.y,a.width,a.height);q=this.Uc;e?(f.Z.we(f.width,
f.height,f.n),this.Fl.vo(f.Z)):this.Fl.Pf(f.sb,f.x,f.y,f.width,f.height);s=this.Fl;e=0;for(c=q.Dc;e<c;e++)d=2*e,l=d+1,n=q.Qa[d],h=q.Qa[l],q.Qa[d]=b.Ca(n+a.x,h+a.y,!0),q.Qa[l]=b.Ca(n+a.x,h+a.y,!1);q.Da();e=0;for(c=s.Dc;e<c;e++)d=2*e,l=d+1,n=s.Qa[d],h=s.Qa[l],s.Qa[d]=g.Ca(n+f.x,h+f.y,!0),s.Qa[l]=g.Ca(n+f.x,h+f.y,!1);s.Da();return q.xg(s,0,0)};var s=new oa,v=new na(0,0,0,0);d.prototype.Go=function(a,f){var b=a.Xp,g,e,c,d,l=f.Ea,n=a.x,h=a.y,q=f.Z&&!f.Z.Ke();g=0;for(e=b.length;g<e;++g)if(c=b[g],d=c.hs,
l.hn(d,n,h)&&(s.Qf(d),s.offset(n,h),s.dn(f.sb)))if(q)if(f.Z.we(f.width,f.height,f.n),c.bh){if(c.bh.xg(f.Z,f.x-(n+d.left),f.y-(h+d.top)))return!0}else{if(this.Uc.Pf(s,0,0,d.right-d.left,d.bottom-d.top),this.Uc.xg(f.Z,f.x,f.y))return!0}else if(c.bh){if(this.Uc.Pf(f.sb,0,0,f.width,f.height),c.bh.xg(this.Uc,-(n+d.left),-(h+d.top)))return!0}else return!0;return!1};d.prototype.Fo=function(a,f,b,g,e){if(!e||!e.Yc)return!1;e.Da();v.set(ia(a,b),ia(f,g),ha(a,b),ha(f,g));if(!e.Ea.gn(v))return!1;if(e.Uf){var c=
e.Xp,d,l,n,h=e.x,q=e.y;e=0;for(d=c.length;e<d;++e)if(l=c[e],n=l.hs,v.hn(n,h,q)&&(s.Qf(n),s.offset(h,q),s.yg(a,f,b,g)))if(l.bh){if(l.bh.yg(h+n.left,q+n.top,a,f,b,g))return!0}else return!0;return!1}if(!e.sb.yg(a,f,b,g))return!1;if(!e.Z||e.Z.Ke())return!0;e.Z.we(e.width,e.height,e.n);return e.Z.yg(e.x,e.y,a,f,b,g)};d.prototype.Qo=function(a,f){if(!f)return!1;var b,g,e,c,d;b=0;for(g=a.Ma.length;b<g;b++)if(a.Ma[b].K instanceof f)return!0;if(!a.U)for(b=0,g=a.xa.length;b<g;b++)for(d=a.xa[b],e=0,c=d.Ma.length;e<
c;e++)if(d.Ma[e].K instanceof f)return!0;return!1};d.prototype.Ro=function(a){return this.Qo(a,Ub.tt)};d.prototype.Ll=function(a){return this.Qo(a,Ub.ut)};var q=[];d.prototype.ib=function(a){var f,b,g;a.Da();this.Sm(a.k,a.Ea,q);f=0;for(b=q.length;f<b;++f)if(g=q[f],g.O.Co&&this.ec(a,g))return q.length=0,g;q.length=0;return null};var r=[];d.prototype.le=function(a,f){var b=null;f&&(b=r,b.length=0);a.Da();this.dr(a.k,a.Ea,q);var g,e,c;g=0;for(e=q.length;g<e;++g)if(c=q[g],c.O.cu&&this.ec(a,c))if(f)b.push(c);
else return q.length=0,c;q.length=0;return b};d.prototype.Ec=function(a,f,b,g,e,c){g=g||50;var d=a.x,l=a.y,n,h=null,q=null;for(n=0;n<g;n++)if(a.x=d+f*n,a.y=l+b*n,a.F(),!this.ec(a,h)&&((h=this.ib(a))&&(q=h),!h&&(e&&(h=c?this.ec(a,c)?c:null:this.le(a))&&(q=h),!h)))return q&&this.gl(a,f,b,q),!0;a.x=d;a.y=l;a.F();return!1};d.prototype.gl=function(a,f,b,g){var e=2,c,d=!1;c=!1;for(var l=a.x,n=a.y;16>=e;)c=1/e,e*=2,a.x+=f*c*(d?1:-1),a.y+=b*c*(d?1:-1),a.F(),this.ec(a,g)?c=d=!0:(c=d=!1,l=a.x,n=a.y);c&&(a.x=
l,a.y=n,a.F())};d.prototype.oo=function(a,f){var b=ca(f)?100:f,g=0,e=a.x,c=a.y,d=0,l=0,n=0,h=this.ib(a);if(!h)return!0;for(;g<=b;){switch(d){case 0:l=0;n=-1;g++;break;case 1:l=1;n=-1;break;case 2:l=1;n=0;break;case 3:n=l=1;break;case 4:l=0;n=1;break;case 5:l=-1;n=1;break;case 6:l=-1;n=0;break;case 7:n=l=-1}d=(d+1)%8;a.x=T(e+l*g);a.y=T(c+n*g);a.F();if(!this.ec(a,h)&&(h=this.ib(a),!h))return!0}a.x=e;a.y=c;a.F();return!1};d.prototype.Lf=function(a,f){a.Yc&&f.Yc&&this.aj.push([a,f])};d.prototype.Wp=function(a,
f){var b,g,e;b=0;for(g=this.aj.length;b<g;b++)if(e=this.aj[b],e[0]==a&&e[1]==f||e[0]==f&&e[1]==a)return!0;return!1};d.prototype.Sp=function(a,f,b){var g=a.x,e=a.y,c=ha(10,La(f,b,g,e)),d=Ca(f,b,g,e),l=this.ib(a);if(!l)return W(d+ja);var n=l,h,q,s,r,m=V(5);for(h=1;36>h;h++)if(q=d-h*m,a.x=f+Math.cos(q)*c,a.y=b+Math.sin(q)*c,a.F(),!this.ec(a,n)&&(n=this.ib(a),!n)){s=q;break}36===h&&(s=W(d+ja));n=l;for(h=1;36>h;h++)if(q=d+h*m,a.x=f+Math.cos(q)*c,a.y=b+Math.sin(q)*c,a.F(),!this.ec(a,n)&&(n=this.ib(a),!n)){r=
q;break}36===h&&(r=W(d+ja));a.x=g;a.y=e;a.F();if(r===s)return r;a=Ha(r,s)/2;a=Ja(r,s)?W(s+a+ja):W(r+a);s=Math.cos(d);d=Math.sin(d);r=Math.cos(a);a=Math.sin(a);f=s*r+d*a;return Ca(0,0,s-2*f*r,d-2*f*a)};var u=[],t=-1;d.prototype.trigger=function(a,f,b){if(!this.ua)return!1;var g=this.ua.Yh;if(!g)return!1;t++;t===u.length?u.push(new ba):u[t].clear();a=this.No(a,f,g,b);t--;return a};d.prototype.No=function(a,f,b,g){var e=u[t];if(e.contains(b))return!1;e.add(b);var e=b.Zm.Wf(),c=!1,d,l,n;d=0;for(l=e.length;d<
l;d++)e[d].Ir()&&(n=this.No(a,f,e[d].vg,g),c=c||n);if(f)for(n=this.Jl(a,f,f.type.name,b,g),c=c||n,d=0,l=f.type.xa.length;d<l;d++)n=this.Jl(a,f,f.type.xa[d].name,b,g),c=c||n;else n=this.Jl(a,f,"system",b,g),c=c||n;return c};d.prototype.Jl=function(a,f,b,g,e){var c,d=!1,l=!1,l="undefined"!==typeof e,n=(l?g.Fm:g.Oo)[b];if(!n)return d;var h=null;g=0;for(c=n.length;g<c;g++)if(n[g].method==a){h=n[g].$h;break}if(!h)return d;a=l?h[e]:h;if(!a)return null;g=0;for(c=a.length;g<c;g++)e=a[g][0],l=a[g][1],l=this.Qq(f,
b,e,l),d=d||l;return d};d.prototype.Qq=function(a,f,b,g){var e,c,d=!1;this.Kl++;var l=this.kb().Hb;l&&this.fh(l.ge);var n=1<this.Kl;this.fh(b.ge);n&&this.gs();var h=this.Yi(b);h.Hb=b;a&&(e=this.types[f].ja(),e.ta=!1,e.j.length=1,e.j[0]=a,this.types[f].Xc());a=!0;if(b.parent){f=h.Eo;for(e=b.parent;e;)f.push(e),e=e.parent;f.reverse();e=0;for(c=f.length;e<c;e++)if(!f[e].ts()){a=!1;break}}a&&(this.De++,b.Qc?b.rs(g):b.Ra(),d=d||h.Oe);this.Ti();n&&this.bs();this.Ue(b.ge);l&&this.Ue(l.ge);0!==this.Nc||0!==
t||this.Ak||this.Zc.Ud()&&!this.Ob.length||this.ob();this.Kl--;return d};d.prototype.lk=function(){var a=this.kb();return a.Hb.Ba[a.Ua]};d.prototype.Yq=function(){var a=this.kb();return a.Hb.tc[a.zb]};d.prototype.gs=function(){this.Li++;this.Li>=this.Nk.length&&this.Nk.push([])};d.prototype.bs=function(){this.Li--};d.prototype.Nm=function(){return this.Nk[this.Li]};d.prototype.Yi=function(a){this.Zh++;this.Zh>=this.ak.length&&this.ak.push(new Gb);var f=this.kb();f.reset(a);return f};d.prototype.Ti=
function(){this.Zh--};d.prototype.kb=function(){return this.ak[this.Zh]};d.prototype.Om=function(a,f){for(var b,g,e,c,d,l;f;){b=0;for(g=f.Ic.length;b<g;b++)if(l=f.Ic[b],l instanceof Hb&&$a(a,l.name))return l;f=f.parent}b=0;for(g=this.Be.length;b<g;b++)for(d=this.Be[b],e=0,c=d.Sd.length;e<c;e++)if(l=d.Sd[e],l instanceof Hb&&$a(a,l.name))return l;return null};d.prototype.Qm=function(a){var f,b;f=0;for(b=this.Pc.length;f<b;f++)if(this.Pc[f].Y===a)return this.Pc[f];return null};d.prototype.rg=function(a){var f,
b;f=0;for(b=this.C.length;f<b;f++)if(this.C[f].Y===a)return this.C[f];return null};d.prototype.$q=function(a){var f,b;f=0;for(b=this.Md.length;f<b;f++)if(this.Md[f].Y===a)return this.Md[f];return null};d.prototype.Er=function(){var b=this,f=this.sl,e=this.Ad,g=this.Ii,d=!1;this.zo&&(d=!0,f="__c2_continuouspreview",this.zo=!1);if(f.length){this.ob();e=this.xs();if(window.indexedDB&&!this.cd)c(f,e,function(){I("Saved state to IndexedDB storage ("+e.length+" bytes)");b.Ad=e;b.trigger(X.prototype.m.Ij,
null);b.Ad="";d&&a()},function(g){try{localStorage.setItem("__c2save_"+f,e),I("Saved state to WebStorage ("+e.length+" bytes)"),b.Ad=e,b.trigger(X.prototype.m.Ij,null),b.Ad="",d&&a()}catch(c){I("Failed to save game state: "+g+"; "+c)}});else try{localStorage.setItem("__c2save_"+f,e),I("Saved state to WebStorage ("+e.length+" bytes)"),b.Ad=e,this.trigger(X.prototype.m.Ij,null),b.Ad="",d&&a()}catch(l){I("Error saving to WebStorage: "+l)}this.xb=this.Ii=this.sl=""}g.length&&(window.indexedDB&&!this.cd?
h(g,function(a){a?(b.xb=a,I("Loaded state from IndexedDB storage ("+b.xb.length+" bytes)")):(b.xb=localStorage.getItem("__c2save_"+g)||"",I("Loaded state from WebStorage ("+b.xb.length+" bytes)"));b.oh=!1;b.xb.length||b.trigger(X.prototype.m.Gj,null)},function(){b.xb=localStorage.getItem("__c2save_"+g)||"";I("Loaded state from WebStorage ("+b.xb.length+" bytes)");b.oh=!1;b.xb.length||b.trigger(X.prototype.m.Gj,null)}):(this.xb=localStorage.getItem("__c2save_"+g)||"",I("Loaded state from WebStorage ("+
this.xb.length+" bytes)"),this.oh=!1,b.xb.length||b.trigger(X.prototype.m.Gj,null)),this.sl=this.Ii="");this.xb.length&&(this.ob(),this.Sr(this.xb),this.Ad=this.xb,this.trigger(X.prototype.m.rp,null),this.xb=this.Ad="")};d.prototype.xs=function(){var a,f,e,g,c,d,l,n={c2save:!0,version:1,rt:{time:this.Wb.Ha,timescale:this.me,tickcount:this.md,execcount:this.De,next_uid:this.Xg,running_layout:this.ua.Y,start_time_offset:Date.now()-this.lj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};
a=0;for(f=this.C.length;a<f;a++)if(c=this.C[a],!c.U&&!this.Ro(c)){d={instances:[]};Qa(c.O)&&(d.ex=b(c.O));e=0;for(g=c.j.length;e<g;e++)d.instances.push(this.rl(c.j[e]));n.types[c.Y.toString()]=d}a=0;for(f=this.Pc.length;a<f;a++)e=this.Pc[a],n.layouts[e.Y.toString()]=e.mb();g=n.events.groups;a=0;for(f=this.Md.length;a<f;a++)e=this.Md[a],g[e.Y.toString()]=!!this.df[e.qf];f=n.events.cnds;for(l in this.gf)this.gf.hasOwnProperty(l)&&(a=this.gf[l],Qa(a.O)&&(f[l]={ex:b(a.O)}));f=n.events.acts;for(l in this.ef)this.ef.hasOwnProperty(l)&&
(a=this.ef[l],Qa(a.O)&&(f[l]={ex:a.O}));f=n.events.vars;for(l in this.Xf)this.Xf.hasOwnProperty(l)&&(a=this.Xf[l],a.si||a.parent&&!a.Fg||(f[l]=a.data));n.system=this.ld.mb();return JSON.stringify(n)};d.prototype.qo=function(){var a,f,b,g,e,c;this.Te={};a=0;for(f=this.C.length;a<f;a++)if(b=this.C[a],!b.U)for(g=0,e=b.j.length;g<e;g++)c=b.j[g],this.Te[c.uid.toString()]=c};d.prototype.Sr=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){var f=a.rt;this.Wb.reset();this.Wb.Ha=f.time;this.me=f.timescale;
this.md=f.tickcount;this.De=f.execcount;this.lj=Date.now()-f.start_time_offset;var b=f.running_layout;if(b!==this.ua.Y)if(b=this.Qm(b))this.Bm(b);else return;var g,e,c,d,l,n,h;n=a.types;for(e in n)if(n.hasOwnProperty(e)&&(d=this.rg(parseInt(e,10)))&&!d.U&&!this.Ro(d)){n[e].ex?d.O=n[e].ex:Ra(d.O);l=d.j;c=n[e].instances;b=0;for(g=ia(l.length,c.length);b<g;b++)this.Ji(l[b],c[b]);b=c.length;for(g=l.length;b<g;b++)this.Kd(l[b]);b=l.length;for(g=c.length;b<g;b++){l=null;if(d.Ka.Xd&&(l=this.ua.ki(c[b].w.l),
!l))continue;l=this.Pd(d.xc,l,!1,0,0,!0);this.Ji(l,c[b])}d.Sf=!0}this.ob();this.qo();g=a.layouts;for(e in g)g.hasOwnProperty(e)&&(b=this.Qm(parseInt(e,10)))&&b.wb(g[e]);g=a.events.groups;for(e in g)g.hasOwnProperty(e)&&(b=this.$q(parseInt(e,10)))&&(this.df[b.qf]=g[e]);b=a.events.cnds;for(e in b)b.hasOwnProperty(e)&&this.gf.hasOwnProperty(e)&&(this.gf[e].O=b[e].ex);b=a.events.acts;for(e in b)b.hasOwnProperty(e)&&this.ef.hasOwnProperty(e)&&(this.ef[e].O=b[e].ex);b=a.events.vars;for(e in b)b.hasOwnProperty(e)&&
this.Xf.hasOwnProperty(e)&&(this.Xf[e].data=b[e]);this.Xg=f.next_uid;this.ld.wb(a.system);b=0;for(g=this.C.length;b<g;b++)if(d=this.C[b],!d.U)for(e=0,a=d.j.length;e<a;e++){l=d.j[e];if(d.pc)for(n=l.tg(),f=l.siblings.length=0,c=d.Fb.length;f<c;f++)h=d.Fb[f],d!==h&&l.siblings.push(h.j[n]);l.pd&&l.pd();if(l.S)for(f=0,c=l.S.length;f<c;f++)n=l.S[f],n.pd&&n.pd()}this.ra=!0}};d.prototype.rl=function(a,f){var e,g,c,d,l;d=a.type;c=d.Ka;var n={};f?n.c2=!0:n.uid=a.uid;Qa(a.O)&&(n.ex=b(a.O));if(a.Ya&&a.Ya.length)for(n.ivs=
{},e=0,g=a.Ya.length;e<g;e++)n.ivs[a.type.wk[e].toString()]=a.Ya[e];if(c.Xd){c={x:a.x,y:a.y,w:a.width,h:a.height,l:a.k.Y,zi:a.oc()};0!==a.n&&(c.a=a.n);1!==a.opacity&&(c.o=a.opacity);0.5!==a.Sb&&(c.hX=a.Sb);0.5!==a.Tb&&(c.hY=a.Tb);0!==a.Ab&&(c.bm=a.Ab);a.visible||(c.v=a.visible);a.Yc||(c.ce=a.Yc);-1!==a.Wg&&(c.mts=a.Wg);if(d.R.length)for(c.fx=[],e=0,g=d.R.length;e<g;e++)l=d.R[e],c.fx.push({name:l.name,active:a.Ld[l.index],params:a.Ga[l.index]});n.w=c}if(a.S&&a.S.length)for(n.behs={},e=0,g=a.S.length;e<
g;e++)d=a.S[e],d.mb&&(n.behs[d.type.Y.toString()]=d.mb());a.mb&&(n.data=a.mb());return n};d.prototype.cr=function(a,f){var b,g;b=0;for(g=a.wk.length;b<g;b++)if(a.wk[b]===f)return b;return-1};d.prototype.Xq=function(a,f){var b,g;b=0;for(g=a.S.length;b<g;b++)if(a.S[b].type.Y===f)return b;return-1};d.prototype.Ji=function(a,b,e){var g,c,d,l,n;n=a.type;d=n.Ka;if(e){if(!b.c2)return}else a.uid=b.uid;b.ex?a.O=b.ex:Ra(a.O);if(c=b.ivs)for(g in c)c.hasOwnProperty(g)&&(e=this.cr(n,parseInt(g,10)),0>e||e>=a.Ya.length||
(a.Ya[e]=c[g]));if(d.Xd){d=b.w;a.k.Y!==d.l&&(e=a.k,a.k=this.ua.ki(d.l),a.k?(a.k.j.push(a),a.k.jc=!0,wa(e.j,a),e.jc=!0):(a.k=e,this.Kd(a)));a.x=d.x;a.y=d.y;a.width=d.w;a.height=d.h;a.$e=d.zi;a.n=d.hasOwnProperty("a")?d.a:0;a.opacity=d.hasOwnProperty("o")?d.o:1;a.Sb=d.hasOwnProperty("hX")?d.hX:0.5;a.Tb=d.hasOwnProperty("hY")?d.hY:0.5;a.visible=d.hasOwnProperty("v")?d.v:!0;a.Yc=d.hasOwnProperty("ce")?d.ce:!0;a.Wg=d.hasOwnProperty("mts")?d.mts:-1;a.Ab=d.hasOwnProperty("bm")?d.bm:0;a.ig=Xa(a.Ab);this.u&&
Ya(a,a.Ab,this.u);a.F();if(d.hasOwnProperty("fx"))for(e=0,c=d.fx.length;e<c;e++)l=n.nk(d.fx[e].name),0>l||(a.Ld[l]=d.fx[e].active,a.Ga[l]=d.fx[e].params);a.Id()}if(n=b.behs)for(g in n)n.hasOwnProperty(g)&&(d=this.Xq(a,parseInt(g,10)),0>d||a.S[d].wb(n[g]));b.data&&a.wb(b.data)};Ib=function(a){return new d(document.getElementById(a))};Jb=function(a,b){return new d({dc:!0,width:a,height:b})};window.cr_createRuntime=Ib;window.cr_createDCRuntime=Jb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=
!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.hu=!0;document.body.appendChild(a);a=new d(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var d=document.getElementById("c2canvas");return d?d.c2runtime:window.c2runtime?window.c2runtime:null};
window.cr_sizeCanvas=function(d,m){if(0!==d&&0!==m){var c=window.cr_getC2Runtime();c&&c.setSize(d,m)}};window.cr_setSuspended=function(d){var m=window.cr_getC2Runtime();m&&m.setSuspended(d)};
(function(){function d(a,b){this.b=a;this.Yh=null;this.scrollX=this.b.fb/2;this.scrollY=this.b.eb/2;this.scale=1;this.n=0;this.mg=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.So=b[3];this.xo=b[4];this.Y=b[5];var c=b[6],e,d;this.ca=[];this.wg=[];e=0;for(d=c.length;e<d;e++){var h=new Kb(this,c[e]);h.Pn=e;this.ca.push(h)}c=b[7];this.Ie=[];e=0;for(d=c.length;e<d;e++){var h=c[e],m=this.b.C[h[1]];m.xc||(m.xc=h);this.Ie.push(h);-1===this.wg.indexOf(m)&&this.wg.push(m)}this.R=[];this.fa=[];this.Ga=
[];e=0;for(d=b[8].length;e<d;e++)this.R.push({id:b[8][e][0],name:b[8][e][1],nb:-1,kc:!0,index:e}),this.Ga.push(b[8][e][2].slice(0));this.Id();this.Kf=new na(0,0,1,1);this.kl=new na(0,0,1,1);this.ae={}}function m(a,b){this.na=a;this.b=a.b;this.j=[];this.scale=1;this.n=0;this.ze=!1;this.Hd=new na(0,0,0,0);this.Mo=new oa;this.fc=this.ic=this.hc=this.gc=0;this.jc=!1;this.name=b[0];this.index=b[1];this.Y=b[2];this.visible=b[3];this.Nd=b[4];this.Ze=b[5];this.Cd=b[6];this.Dd=b[7];this.opacity=b[8];this.ek=
b[9];this.vh=b[10];this.Ab=b[11];this.qq=b[12];this.ig="source-over";this.pb=this.qb=0;this.ee=!1;var c=b[13],e,d;this.rf=[];e=0;for(d=c.length;e<d;e++){var h=c[e],m=this.b.C[h[1]];m.xc||(m.xc=h);this.rf.push(h);-1===this.na.wg.indexOf(m)&&this.na.wg.push(m)}this.R=[];this.fa=[];this.Ga=[];e=0;for(d=b[14].length;e<d;e++)this.R.push({id:b[14][e][0],name:b[14][e][1],nb:-1,kc:!0,index:e}),this.Ga.push(b[14][e][2].slice(0));this.Id();this.Kf=new na(0,0,1,1);this.kl=new na(0,0,1,1)}function c(a,b){return a.$e-
b.$e}d.prototype.ws=function(a){var b=a.type.Y.toString();this.ae.hasOwnProperty(b)||(this.ae[b]=[]);this.ae[b].push(this.b.rl(a))};d.prototype.Xm=function(){var a=this.ca[0];return!a.Ze&&1===a.opacity&&!a.ek&&a.visible};d.prototype.Id=function(){this.fa.length=0;var a,b,c;a=0;for(b=this.R.length;a<b;a++)c=this.R[a],c.kc&&this.fa.push(c)};d.prototype.mk=function(a){var b,c,e;b=0;for(c=this.R.length;b<c;b++)if(e=this.R[b],e.name===a)return e;return null};var h=[];d.prototype.El=function(){this.xo&&
(this.Yh=this.b.bk[this.xo]);this.b.ua=this;this.scrollX=this.b.fb/2;this.scrollY=this.b.eb/2;var a,b,d,e,l,s,m;a=0;for(d=this.b.C.length;a<d;a++)if(b=this.b.C[a],!b.U)for(l=b.j,b=0,e=l.length;b<e;b++)if(s=l[b],s.k){var q=s.k.Pn;q>=this.ca.length&&(q=this.ca.length-1);s.k=this.ca[q];s.k.j.push(s);s.k.jc=!0}h.length=0;this.Qp();a=0;for(d=this.ca.length;a<d;a++)s=this.ca[a],s.aq(),s.ze=!0,b=s.ff(!0),e=s.ff(!1),s.ze=!1,this.b.be&&(b=b+0.5|0,e=e+0.5|0),s.nl(b,e,null);l=!1;if(!this.mg){for(m in this.ae)if(this.ae.hasOwnProperty(m)&&
(b=this.b.rg(parseInt(m,10)))&&!b.U&&this.b.Ll(b)){e=this.ae[m];a=0;for(d=e.length;a<d;a++){s=null;if(b.Ka.Xd&&(s=this.ki(e[a].w.l),!s))continue;s=this.b.Pd(b.xc,s,!1,0,0,!0);this.b.Ji(s,e[a]);l=!0;h.push(s)}e.length=0}a=0;for(d=this.ca.length;a<d;a++)this.ca[a].j.sort(c),this.ca[a].jc=!0}l&&(this.b.ob(),this.b.qo());for(a=0;a<h.length;a++)if(s=h[a],s.type.pc)for(d=s.tg(),b=0,e=s.type.Fb.length;b<e;b++)m=s.type.Fb[b],s.type!==m&&(m.j.length>d?s.siblings.push(m.j[d]):m.xc&&(l=this.b.Pd(m.xc,s.k,!0,
s.x,s.y,!0),this.b.ob(),m.tj(),s.siblings.push(l),h.push(l)));a=0;for(d=this.Ie.length;a<d;a++)this.b.Pd(this.Ie[a],null,!0);this.b.hg=null;this.b.ob();if(this.b.qa&&!this.b.Vb)for(a=0,d=this.b.C.length;a<d;a++)m=this.b.C[a],!m.U&&m.j.length&&m.ko&&m.ko(this.b.qa);a=0;for(d=h.length;a<d;a++)s=h[a],this.b.trigger(Object.getPrototypeOf(s.type.Ka).m.Dj,s);h.length=0;this.b.trigger(X.prototype.m.qp,null);this.mg=!1};d.prototype.$p=function(){var a,b,c,e,d;b=a=0;for(c=this.Ie.length;a<c;a++)e=this.Ie[a],
d=this.b.C[e[1]],d.global?this.b.Pd(e,null,!0):(this.Ie[b]=e,b++);this.Ie.length=b};d.prototype.Ds=function(){this.b.trigger(X.prototype.m.pp,null);this.b.ld.Mb.length=0;var a,b,c,e,d,h;a=0;for(b=this.ca.length;a<b;a++){d=this.ca[a].j;c=0;for(e=d.length;c<e;c++)h=d[c],h.type.global||(this.b.Ll(h.type)&&this.ws(h),this.b.Kd(h));this.b.ob();d.length=0;this.ca[a].jc=!0}a=0;for(b=this.b.C.length;a<b;a++)if(d=this.b.C[a],!(d.global||d.Ka.Xd||d.Ka.Dl||d.U)){c=0;for(e=d.j.length;c<e;c++)this.b.Kd(d.j[c]);
this.b.ob()}};d.prototype.vd=function(a){var b,c=a,e=!1,d=!this.b.zc;d&&(this.b.Gi||(this.b.Gi=document.createElement("canvas"),b=this.b.Gi,b.width=this.b.W,b.height=this.b.V,this.b.Cn=b.getContext("2d"),e=!0),b=this.b.Gi,c=this.b.Cn,b.width!==this.b.W&&(b.width=this.b.W,e=!0),b.height!==this.b.V&&(b.height=this.b.V,e=!0),e&&(c.webkitImageSmoothingEnabled=this.b.la,c.mozImageSmoothingEnabled=this.b.la,c.msImageSmoothingEnabled=this.b.la,c.imageSmoothingEnabled=this.b.la));c.globalAlpha=1;c.globalCompositeOperation=
"source-over";this.b.Nj&&!this.Xm()&&c.clearRect(0,0,this.b.W,this.b.V);var h,m,e=0;for(h=this.ca.length;e<h;e++)m=this.ca[e],m.visible&&0<m.opacity&&11!==m.Ab&&m.vd(c);d&&a.drawImage(b,0,0,this.b.width,this.b.height)};d.prototype.Mc=function(a){var b=0<this.fa.length||this.b.Vf||!this.b.zc;if(b){this.b.Zb||(this.b.Zb=a.sd(this.b.W,this.b.V,this.b.la));if(this.b.Zb.gg!==this.b.W||this.b.Zb.fg!==this.b.V)a.deleteTexture(this.b.Zb),this.b.Zb=a.sd(this.b.W,this.b.V,this.b.la);a.jd(this.b.Zb);this.b.zc||
a.Of(this.b.W,this.b.V)}else this.b.Zb&&(a.jd(null),a.deleteTexture(this.b.Zb),this.b.Zb=null);this.b.Nj&&!this.Xm()&&a.clear(0,0,0,0);var c,e;c=0;for(e=this.ca.length;c<e;c++)this.ca[c].visible&&0<this.ca[c].opacity&&this.ca[c].Mc(a);b&&(0===this.fa.length||1===this.fa.length&&this.b.zc?(1===this.fa.length?(b=this.fa[0].index,a.kd(this.fa[0].nb),a.Nf(null,1/this.b.W,1/this.b.V,0,0,1,1,this.scale,this.Ga[b]),a.Wi(this.fa[0].nb)&&(this.b.ra=!0)):a.kd(0),this.b.zc||a.Of(this.b.width,this.b.height),
a.jd(null),a.Mf(1),a.sc(this.b.Zb),a.to(),a.gd(),a.nd(),b=this.b.width/2,c=this.b.height/2,a.Zi(-b,c,b,c,b,-c,-b,-c),a.sc(null)):this.ll(a,null,null,null))};d.prototype.sg=function(){return 0<this.fa.length||this.b.Vf||!this.b.zc?this.b.Zb:null};d.prototype.Rm=function(){var a=this.ca[0].Qb(),b,c,e;b=1;for(c=this.ca.length;b<c;b++)e=this.ca[b],(0!==e.Cd||0!==e.Dd)&&e.Qb()<a&&(a=e.Qb());return a};d.prototype.tl=function(a){if(!this.So){var b=this.b.W*(1/this.Rm())/2;a>this.width-b&&(a=this.width-b);
a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.ra=!0)};d.prototype.ul=function(a){if(!this.So){var b=this.b.V*(1/this.Rm())/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ra=!0)};d.prototype.Qp=function(){this.tl(this.scrollX);this.ul(this.scrollY)};d.prototype.ll=function(a,b,c,e){var d=c?c.fa:b?b.fa:this.fa,h=c?c.k.Qb():b?b.Qb():1,m=this.b.hk,q,r,u,t,k=0,f=1,p,g=this.b.W,z=this.b.V,D=g/2,P=z/2,L=b?b.Kf:this.Kf,x=b?b.kl:this.kl,E=0,G=0,J=0,U=0,C=g,K=
g,w=z,R=z,M=u=0,N=c?c.k.Ib():0;if(c){q=0;for(r=d.length;q<r;q++)u+=a.ir(d[q].nb),M+=a.jr(d[q].nb);t=c.Ea;E=b.Ca(t.left,t.top,!0,!0);J=b.Ca(t.left,t.top,!1,!0);C=b.Ca(t.right,t.bottom,!0,!0);w=b.Ca(t.right,t.bottom,!1,!0);0!==N&&(q=b.Ca(t.right,t.top,!0,!0),r=b.Ca(t.right,t.top,!1,!0),G=b.Ca(t.left,t.bottom,!0,!0),U=b.Ca(t.left,t.bottom,!1,!0),t=Math.min(E,C,q,G),C=Math.max(E,C,q,G),E=t,t=Math.min(J,w,r,U),w=Math.max(J,w,r,U),J=t);E-=u;J-=M;C+=u;w+=M;x.left=E/g;x.top=1-J/z;x.right=C/g;x.bottom=1-w/
z;G=E=T(E);U=J=T(J);K=C=la(C);R=w=la(w);G-=u;U-=M;K+=u;R+=M;0>E&&(E=0);0>J&&(J=0);C>g&&(C=g);w>z&&(w=z);0>G&&(G=0);0>U&&(U=0);K>g&&(K=g);R>z&&(R=z);L.left=E/g;L.top=1-J/z;L.right=C/g;L.bottom=1-w/z}else L.left=x.left=0,L.top=x.top=0,L.right=x.right=1,L.bottom=x.bottom=1;M=c&&((c.n||N)&&a.dh(d[0].nb)||0!==u||0!==M||1!==c.opacity||c.type.Ka.Kn)||b&&!c&&1!==b.opacity;a.to();if(M){m[k]||(m[k]=a.sd(g,z,this.b.la));if(m[k].gg!==g||m[k].fg!==z)a.deleteTexture(m[k]),m[k]=a.sd(g,z,this.b.la);a.kd(0);a.jd(m[k]);
p=R-U;a.clearRect(G,z-U-p,K-G,p);c?c.Mc(a):(a.sc(this.b.qc),a.Mf(b.opacity),a.gd(),a.translate(-D,-P),a.nd(),a.de(E,w,C,w,C,J,E,J,L));x.left=x.top=0;x.right=x.bottom=1;c&&(t=L.top,L.top=L.bottom,L.bottom=t);k=1;f=0}a.Mf(1);u=d.length-1;var N=a.fl(d[u].nb)||!b&&!c&&!this.b.zc,A=0;q=0;for(r=d.length;q<r;q++){m[k]||(m[k]=a.sd(g,z,this.b.la));if(m[k].gg!==g||m[k].fg!==z)a.deleteTexture(m[k]),m[k]=a.sd(g,z,this.b.la);a.kd(d[q].nb);A=d[q].index;a.Wi(d[q].nb)&&(this.b.ra=!0);0!=q||M?(a.Nf(e,1/g,1/z,x.left,
x.top,x.right,x.bottom,h,c?c.Ga[A]:b?b.Ga[A]:this.Ga[A]),a.sc(null),q!==u||N?(a.jd(m[k]),p=R-U,t=z-U-p,a.clearRect(G,t,K-G,p)):(c?a.fe(c.qb,c.pb):b&&a.fe(b.qb,b.pb),a.jd(e)),a.sc(m[f]),a.gd(),a.translate(-D,-P),a.nd(),a.de(E,w,C,w,C,J,E,J,L),q!==u||N||a.sc(null)):(a.jd(m[k]),p=R-U,t=z-U-p,a.clearRect(G,t,K-G,p),c?(a.Nf(e,1/c.width,1/c.height,x.left,x.top,x.right,x.bottom,h,c.Ga[A]),c.Mc(a)):(a.Nf(e,1/g,1/z,0,0,1,1,h,b?b.Ga[A]:this.Ga[A]),a.sc(b?this.b.qc:this.b.Zb),a.gd(),a.translate(-D,-P),a.nd(),
a.de(E,w,C,w,C,J,E,J,L)),x.left=x.top=0,x.right=x.bottom=1,c&&!N&&(t=w,w=J,J=t));k=0===k?1:0;f=0===k?1:0}N&&(a.kd(0),c?a.fe(c.qb,c.pb):b?a.fe(b.qb,b.pb):this.b.zc||(a.Of(this.b.width,this.b.height),D=this.b.width/2,P=this.b.height/2,J=E=0,C=this.b.width,w=this.b.height),a.jd(e),a.sc(m[f]),a.gd(),a.translate(-D,-P),a.nd(),c&&1===d.length&&!M?a.de(E,J,C,J,C,w,E,w,L):a.de(E,w,C,w,C,J,E,J,L),a.sc(null))};d.prototype.ki=function(a){var b,c;b=0;for(c=this.ca.length;b<c;b++)if(this.ca[b].Y===a)return this.ca[b];
return null};d.prototype.mb=function(){var a,b,c,e={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.n,w:this.width,h:this.height,fv:this.mg,persist:this.ae,fx:[],layers:{}};a=0;for(b=this.R.length;a<b;a++)c=this.R[a],e.fx.push({name:c.name,active:c.kc,params:this.Ga[c.index]});a=0;for(b=this.ca.length;a<b;a++)c=this.ca[a],e.layers[c.Y.toString()]=c.mb();return e};d.prototype.wb=function(a){var b,c,e,d;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.n=a.a;this.width=a.w;this.height=a.h;
this.ae=a.persist;"undefined"!==typeof a.fv&&(this.mg=a.fv);var h=a.fx;b=0;for(c=h.length;b<c;b++)if(e=this.mk(h[b].name))e.kc=h[b].active,this.Ga[e.index]=h[b].params;this.Id();b=a.layers;for(d in b)b.hasOwnProperty(d)&&(a=this.ki(parseInt(d,10)))&&a.wb(b[d])};yb=d;m.prototype.Id=function(){this.fa.length=0;var a,b,c;a=0;for(b=this.R.length;a<b;a++)c=this.R[a],c.kc&&this.fa.push(c)};m.prototype.mk=function(a){var b,c,e;b=0;for(c=this.R.length;b<c;b++)if(e=this.R[b],e.name===a)return e;return null};
m.prototype.aq=function(){var a,b,c,e,d,m;b=a=0;for(c=this.rf.length;a<c;a++){e=this.rf[a];d=this.b.C[e[1]];m=this.b.Ll(d);d=!0;if(!m||this.na.mg)e=this.b.Pd(e,this,!0),h.push(e),e.type.global&&(d=!1);d&&(this.rf[b]=this.rf[a],b++)}this.rf.length=b;this.b.ob();!this.b.J&&this.R.length&&(this.Ab=this.qq);this.ig=Xa(this.Ab);this.b.u&&Ya(this,this.Ab,this.b.u)};m.prototype.Ks=function(){if(this.jc){var a,b;a=0;for(b=this.j.length;a<b;a++)this.j[a].$e=a;this.jc=!1}};m.prototype.Qb=function(a){return this.gr()*
(this.b.zc||a?this.b.eg:1)};m.prototype.gr=function(){return(this.scale*this.na.scale-1)*this.vh+1};m.prototype.Ib=function(){return this.ze?0:W(this.na.n+this.n)};m.prototype.vd=function(a){this.ee=this.ek||1!==this.opacity||0!==this.Ab;var b=this.b.canvas,c=a,e=!1;a.globalAlpha=1;a.globalCompositeOperation="source-over";this.ee&&(this.b.Fi||(this.b.Fi=document.createElement("canvas"),b=this.b.Fi,b.width=this.b.W,b.height=this.b.V,this.b.Bn=b.getContext("2d"),e=!0),b=this.b.Fi,c=this.b.Bn,b.width!==
this.b.W&&(b.width=this.b.W,e=!0),b.height!==this.b.V&&(b.height=this.b.V,e=!0),e&&(c.webkitImageSmoothingEnabled=this.b.la,c.mozImageSmoothingEnabled=this.b.la,c.msImageSmoothingEnabled=this.b.la,c.imageSmoothingEnabled=this.b.la),this.Ze&&c.clearRect(0,0,this.b.W,this.b.V));this.Ze||(c.fillStyle="rgb("+this.Nd[0]+","+this.Nd[1]+","+this.Nd[2]+")",c.fillRect(0,0,this.b.W,this.b.V));c.save();this.ze=!0;var e=this.ff(!0),d=this.ff(!1);this.ze=!1;this.b.be&&(e=e+0.5|0,d=d+0.5|0);this.nl(e,d,c);var h=
this.Qb();c.scale(h,h);c.translate(-e,-d);for(var m,e=0,d=this.j.length;e<d;e++)h=this.j[e],h.visible&&0!==h.width&&0!==h.height&&(h.Da(),m=h.Ea,m.right<this.gc||m.bottom<this.ic||m.left>this.hc||m.top>this.fc||(c.globalCompositeOperation=h.ig,h.vd(c)));c.restore();this.ee&&(a.globalCompositeOperation=this.ig,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};m.prototype.nl=function(a,b,c){var e=this.Qb();this.gc=a;this.ic=b;this.hc=a+this.b.W*(1/e);this.fc=b+this.b.V*(1/e);a=this.Ib();0!==a&&(c&&(c.translate(this.b.W/
2,this.b.V/2),c.rotate(-a),c.translate(this.b.W/-2,this.b.V/-2)),this.Hd.set(this.gc,this.ic,this.hc,this.fc),this.Hd.offset((this.gc+this.hc)/-2,(this.ic+this.fc)/-2),this.Mo.wo(this.Hd,a),this.Mo.nm(this.Hd),this.Hd.offset((this.gc+this.hc)/2,(this.ic+this.fc)/2),this.gc=this.Hd.left,this.ic=this.Hd.top,this.hc=this.Hd.right,this.fc=this.Hd.bottom)};m.prototype.Mc=function(a){var b=this.b.W,c=this.b.V,e=0,d=0;if(this.ee=this.ek||1!==this.opacity||0<this.fa.length||0!==this.Ab){this.b.qc||(this.b.qc=
a.sd(this.b.W,this.b.V,this.b.la));if(this.b.qc.gg!==this.b.W||this.b.qc.fg!==this.b.V)a.deleteTexture(this.b.qc),this.b.qc=a.sd(this.b.W,this.b.V,this.b.la);a.jd(this.b.qc);this.Ze&&a.clear(0,0,0,0)}this.Ze||a.clear(this.Nd[0]/255,this.Nd[1]/255,this.Nd[2]/255,1);this.ze=!0;var d=this.ff(!0),h=this.ff(!1);this.ze=!1;this.b.be&&(d=d+0.5|0,h=h+0.5|0);this.nl(d,h,null);h=this.Qb();a.gd();a.scale(h,h);a.ol(-this.Ib());a.translate((this.gc+this.hc)/-2,(this.ic+this.fc)/-2);a.nd();var m,q,r;m=0;for(q=
this.j.length;m<q;m++)if(r=this.j[m],r.visible&&0!==r.width&&0!==r.height&&(r.Da(),e=r.Ea,!(e.right<this.gc||e.bottom<this.ic||e.left>this.hc||e.top>this.fc)))if(r.Yo)if(e=r.fa[0].nb,d=r.fa[0].index,1!==r.fa.length||a.fl(e)||a.es(e)||(r.n||r.k.Ib())&&a.dh(e)||1!==r.opacity||r.type.Ka.Kn)this.na.ll(a,this,r,this.ee?this.b.qc:this.na.sg()),a.gd(),a.scale(h,h),a.ol(-this.Ib()),a.translate((this.gc+this.hc)/-2,(this.ic+this.fc)/-2),a.nd();else{a.kd(e);a.fe(r.qb,r.pb);a.Wi(e)&&(this.b.ra=!0);var u=0,t=
0,k=0,f=0;a.dh(e)&&(e=r.Ea,u=this.Ca(e.left,e.top,!0,!0),t=this.Ca(e.left,e.top,!1,!0),k=this.Ca(e.right,e.bottom,!0,!0),e=this.Ca(e.right,e.bottom,!1,!0),u/=b,t=1-t/c,k/=b,f=1-e/c);a.Nf(this.ee?this.b.qc:this.na.sg(),1/r.width,1/r.height,u,t,k,f,this.Qb(),r.Ga[d]);r.Mc(a)}else a.kd(0),a.fe(r.qb,r.pb),r.Mc(a);this.ee&&(e=this.fa.length?this.fa[0].nb:0,d=this.fa.length?this.fa[0].index:0,0===this.fa.length||1===this.fa.length&&!a.fl(e)&&1===this.opacity?(1===this.fa.length?(a.kd(e),a.Nf(this.na.sg(),
1/this.b.W,1/this.b.V,0,0,1,1,this.Qb(),this.Ga[d]),a.Wi(e)&&(this.b.ra=!0)):a.kd(0),a.jd(this.na.sg()),a.Mf(this.opacity),a.sc(this.b.qc),a.fe(this.qb,this.pb),a.gd(),a.nd(),b=this.b.W/2,c=this.b.V/2,a.Zi(-b,c,b,c,b,-c,-b,-c),a.sc(null)):this.na.ll(a,this,null,this.na.sg()))};m.prototype.ff=function(a){var b=0,c=0,e=this.b.devicePixelRatio;this.b.Je&&(b*=e,c*=e);var e=this.b.co,d=this.b.eo,e=(this.na.scrollX-e)*this.Cd+e,d=(this.na.scrollY-d)*this.Dd+d,h=1/this.Qb(!1),e=e-this.b.W*h/2,d=d-this.b.V*
h/2,e=e+b*h,d=d+c*h,c=this.Ib();0!==c&&(e-=this.na.scrollX,d-=this.na.scrollY,b=Math.cos(c),c=Math.sin(c),h=e*b-d*c,d=d*b+e*c,e=h+this.na.scrollX,d+=this.na.scrollY);return a?e:d};m.prototype.Ca=function(a,b,c,e){var d=this.Ib();if(0!==d){a-=this.na.scrollX;b-=this.na.scrollY;var h=Math.cos(-d),d=Math.sin(-d),m=a*h-b*d;b=b*h+a*d;a=m+this.na.scrollX;b+=this.na.scrollY}h=this.b.co;d=this.b.eo;h=(this.na.scrollX-h)*this.Cd+h;d=(this.na.scrollY-d)*this.Dd+d;m=1/this.Qb(!e);e?(h-=this.b.W*m/2,d-=this.b.V*
m/2):(h-=this.b.width*m/2,d-=this.b.height*m/2);h=(a-h)/m;d=(b-d)/m;a=this.b.devicePixelRatio;this.b.Je&&(h/=a,d/=a);return c?h:d};m.prototype.mb=function(){var a,b,c,e={s:this.scale,a:this.n,vl:this.gc,vt:this.ic,vr:this.hc,vb:this.fc,v:this.visible,bc:this.Nd,t:this.Ze,px:this.Cd,py:this.Dd,o:this.opacity,zr:this.vh,fx:[],instances:[]};a=0;for(b=this.R.length;a<b;a++)c=this.R[a],e.fx.push({name:c.name,active:c.kc,params:this.Ga[c.index]});return e};m.prototype.wb=function(a){var b,d;this.scale=
a.s;this.n=a.a;this.gc=a.vl;this.ic=a.vt;this.hc=a.vr;this.fc=a.vb;this.visible=a.v;this.Nd=a.bc;this.Ze=a.t;this.Cd=a.px;this.Dd=a.py;this.opacity=a.o;this.vh=a.zr;var e=a.fx;a=0;for(b=e.length;a<b;a++)if(d=this.mk(e[a].name))d.kc=e[a].active,this.Ga[d.index]=e[a].params;this.Id();this.j.sort(c);this.jc=!0};Kb=m})();
(function(){function d(a,b){var c,e=a.length;switch(e){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<e;c++)if(a[c]!==b[c])return!1;return!0}}function m(a,b){return a.index-b.index}function c(a){var b,c,e,h;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(m);a.length>=u.length&&(u.length=a.length+1);u[a.length]||(u[a.length]=[]);h=u[a.length];b=0;for(c=h.length;b<c;b++)if(e=h[b],d(a,e))return e;h.push(a);return a}
function h(a,b){this.b=a;this.Oo={};this.Fm={};this.rk=!1;this.Zm=new ba;this.name=b[0];var c=b[1];this.Sd=[];var e,d;e=0;for(d=c.length;e<d;e++)this.an(c[e],null,this.Sd)}function a(a){this.type=a;this.j=[];this.ka=[];this.ta=!0}function b(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.wa=[];this.ge=[];this.Ym=this.qj=this.Il=this.pi=this.group=this.Ao=!1;this.Ba=[];this.tc=[];this.Ic=[];c[1]?(this.qf=c[1][1].toLowerCase(),this.group=!0,this.pi=!!c[1][0],this.b.Md.push(this),this.b.df[this.qf.toLowerCase()]=
this.pi):(this.qf="",this.pi=this.group=!1);this.Qc=c[2];this.Y=c[4];this.group||(this.b.mm[this.Y.toString()]=this);var e=c[5];a=0;for(b=e.length;a<b;a++){var d=new Lb(this,e[a]);d.index=a;this.Ba.push(d);this.gm(d.type)}e=c[6];a=0;for(b=e.length;a<b;a++)d=new Mb(this,e[a]),d.index=a,this.tc.push(d);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.an(c[a],this,this.Ic);this.ti=!1;this.Ba.length&&(this.ti=null==this.Ba[0].type&&this.Ba[0].Oa==X.prototype.m.bp)}function n(a,b){var c,e,
d;if(a&&(-1===b.indexOf(a)&&b.push(a),a.pc))for(c=0,e=a.Fb.length;c<e;c++)d=a.Fb[c],a!==d&&-1===b.indexOf(d)&&b.push(d)}function e(a,b){this.lc=a;this.sheet=a.sheet;this.b=a.b;this.I=[];this.T=[];this.O={};this.index=-1;this.Oa=b[1];this.trigger=0<b[3];this.Em=2===b[3];this.Bd=b[4];this.zg=b[5];this.Qr=b[6];this.Y=b[7];this.b.gf[this.Y.toString()]=this;-1===b[0]?(this.type=null,this.Ra=this.ql,this.ve=null,this.jb=-1):(this.type=this.b.C[b[0]],this.Ra=this.Qr?this.us:this.pl,b[2]?(this.ve=this.type.ji(b[2]),
this.jb=this.type.jk(b[2])):(this.ve=null,this.jb=-1),this.lc.parent&&this.lc.parent.gj());this.Em&&(this.Ra=this.vs);if(10===b.length){var c,e,d=b[9];c=0;for(e=d.length;c<e;c++){var h=new Nb(this,d[c]);this.I.push(h)}this.T.length=d.length}}function l(a,b){this.lc=a;this.sheet=a.sheet;this.b=a.b;this.I=[];this.T=[];this.O={};this.index=-1;this.Oa=b[1];-1===b[0]?(this.type=null,this.Ra=this.ql,this.ve=null,this.jb=-1):(this.type=this.b.C[b[0]],this.Ra=this.pl,b[2]?(this.ve=this.type.ji(b[2]),this.jb=
this.type.jk(b[2])):(this.ve=null,this.jb=-1));this.Y=b[3];this.b.ef[this.Y.toString()]=this;if(6===b.length){var c,e,d=b[5];c=0;for(e=d.length;c<e;c++){var h=new Nb(this,d[c]);this.I.push(h)}this.T.length=d.length}}function s(a,b){this.L=a;this.lc=a.lc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.$c=null;this.um=this.he=0;this.na=null;this.key=0;this.object=null;this.index=0;this.wj=this.Tf=this.Gm=this.Ce=this.sh=null;var c,e,d;switch(b[0]){case 0:case 7:this.$c=new Ob(this,b[1]);this.he=0;
this.get=this.pr;break;case 1:this.$c=new Ob(this,b[1]);this.he=0;this.get=this.qr;break;case 5:this.$c=new Ob(this,b[1]);this.he=0;this.get=this.ur;break;case 3:case 8:this.um=b[1];this.get=this.nr;break;case 6:this.na=this.b.Gk[b[1]];this.get=this.xr;break;case 9:this.key=b[1];this.get=this.tr;break;case 4:this.object=this.b.C[b[1]];this.get=this.yr;this.lc.gm(this.object);this.L instanceof Mb?this.lc.gj():this.lc.parent&&this.lc.parent.gj();break;case 10:this.index=b[1];this.get=a.type.U?this.rr:
this.sr;break;case 11:this.sh=b[1];this.Ce=null;this.get=this.or;break;case 2:case 12:this.Gm=b[1];this.get=this.mr;break;case 13:for(this.get=this.Ar,this.Tf=[],this.wj=[],c=1,e=b.length;c<e;c++)d=new Nb(this.L,b[c]),this.Tf.push(d),this.wj.push(0)}}function v(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.wa=[];this.name=c[1];this.vk=c[3];this.Fg=!!c[4];this.si=!!c[5];this.Y=c[6];this.b.Xf[this.Y.toString()]=this;this.data=this.vk;this.parent?(this.Re=this.Fg||this.si?-1:this.b.Cs++,this.b.Mp.push(this)):
(this.Re=-1,this.b.Lp.push(this))}function q(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.wa=[];this.vg=null;this.Fr=c[1]}function r(){this.Eo=[];this.reset(null)}var u=[];h.prototype.toString=F("name");h.prototype.an=function(a,b,c){switch(a[0]){case 0:a=new Pb(this,b,a);if(a.Qc)for(c.push(a),c=0,b=a.Ba.length;c<b;c++)a.Ba[c].trigger&&this.bn(a,c);else a.rn()?this.bn(a,0):c.push(a);break;case 1:a=new Hb(this,b,a);c.push(a);break;case 2:a=new Qb(this,b,a),c.push(a)}};h.prototype.La=function(){var a,
b;a=0;for(b=this.Sd.length;a<b;a++)this.Sd[a].La(a<b-1&&this.Sd[a+1].ti)};h.prototype.Ra=function(a){this.b.gu||(this.rk=!0,a||(this.b.Ak=!0));var b,c;b=0;for(c=this.Sd.length;b<c;b++){var e=this.Sd[b];e.Ra();this.b.Sj(e.wa);this.b.Zc.Ud()&&!this.b.Ob.length||this.b.ob()}a||(this.b.Ak=!1)};h.prototype.bn=function(a,b){a.Qc||this.b.sj.push(a);var c,e,d=a.Ba[b],h;h=d.type?d.type.name:"system";var l=(c=d.Em)?this.Fm:this.Oo;l[h]||(l[h]=[]);h=l[h];l=d.Oa;if(c){if(d.I.length&&(d=d.I[0],1===d.type&&2===
d.$c.type)){d=d.$c.value.toLowerCase();c=0;for(e=h.length;c<e;c++)if(h[c].method==l){c=h[c].$h;c[d]?c[d].push([a,b]):c[d]=[[a,b]];return}c={};c[d]=[[a,b]];h.push({method:l,$h:c})}}else{c=0;for(e=h.length;c<e;c++)if(h[c].method==l){h[c].$h.push([a,b]);return}h.push({method:l,$h:[[a,b]]})}};zb=h;a.prototype.Wm=function(){return this.ta?this.type.j.length:this.j.length};a.prototype.Ac=function(){return this.ta?this.type.j:this.j};a.prototype.ah=function(a){a&&(a.b.kb().Hb.Qc?(this.ta&&(this.j.length=
0,ua(this.ka,a.type.j),this.ta=!1),a=this.ka.indexOf(a),-1!==a&&(this.j.push(this.ka[a]),this.ka.splice(a,1))):(this.ta=!1,this.j.length=1,this.j[0]=a))};eb=a;window._c2hh_="";b.prototype.La=function(a){var b,e=this.parent;if(this.group)for(this.qj=!0;e;){if(!e.group){this.qj=!1;break}e=e.parent}this.Il=!this.rn()&&(!this.parent||this.parent.group&&this.parent.qj);this.Ym=!!a;this.ge=this.wa.slice(0);for(e=this.parent;e;){a=0;for(b=e.wa.length;a<b;a++)this.Kp(e.wa[a]);e=e.parent}this.wa=c(this.wa);
this.ge=c(this.ge);a=0;for(b=this.Ba.length;a<b;a++)this.Ba[a].La();a=0;for(b=this.tc.length;a<b;a++)this.tc[a].La();a=0;for(b=this.Ic.length;a<b;a++)this.Ic[a].La(a<b-1&&this.Ic[a+1].ti)};b.prototype.gm=function(a){n(a,this.wa)};b.prototype.Kp=function(a){n(a,this.ge)};b.prototype.gj=function(){this.Ao=!0;this.parent&&this.parent.gj()};b.prototype.rn=function(){return this.Ba.length?this.Ba[0].trigger:!1};b.prototype.Ra=function(){var a,b=!1,c,e=this.b.kb();e.Hb=this;this.ti||(e.$j=!1);if(this.Qc){0===
this.Ba.length&&(b=!0);e.Ua=0;for(a=this.Ba.length;e.Ua<a;e.Ua++)this.Ba[e.Ua].trigger||(c=this.Ba[e.Ua].Ra())&&(b=!0);(e.Oe=b)&&this.dj()}else{e.Ua=0;for(a=this.Ba.length;e.Ua<a;e.Ua++)if(c=this.Ba[e.Ua].Ra(),!c){e.Oe=!1;!this.Il||this.b.Zc.Ud()&&!this.b.Ob.length||this.b.ob();return}e.Oe=!0;this.dj()}this.sq(e)};b.prototype.sq=function(a){a.Oe&&this.Ym&&(a.$j=!0);!this.Il||this.b.Zc.Ud()&&!this.b.Ob.length||this.b.ob()};b.prototype.rs=function(a){this.b.kb().Hb=this;this.Ba[a].Ra()&&(this.dj(),
this.b.kb().Oe=!0)};b.prototype.dj=function(){var a=this.b.kb(),b;a.zb=0;for(b=this.tc.length;a.zb<b;a.zb++)if(this.tc[a.zb].Ra())return;this.so()};b.prototype.ns=function(){var a=this.b.kb(),b;for(b=this.tc.length;a.zb<b;a.zb++)if(this.tc[a.zb].Ra())return;this.so()};b.prototype.so=function(){if(this.Ic.length){var a,b,c,e,d=this.Ic.length-1;this.b.Yi(this);if(this.Ao)for(a=0,b=this.Ic.length;a<b;a++)c=this.Ic[a],(e=!this.qj||!this.group&&a<d)&&this.b.Xi(c.wa),c.Ra(),e?this.b.Ue(c.wa):this.b.Sj(c.wa);
else for(a=0,b=this.Ic.length;a<b;a++)this.Ic[a].Ra();this.b.Ti()}};b.prototype.ts=function(){var a=this.b.kb();a.Hb=this;var b=!1,c;a.Ua=0;for(c=this.Ba.length;a.Ua<c;a.Ua++)if(this.Ba[a.Ua].Ra())b=!0;else if(!this.Qc)return!1;return this.Qc?b:!0};b.prototype.os=function(){this.b.De++;var a=this.b.kb().Ua,b=this.b.Yi(this);if(!this.Qc)for(b.Ua=a+1,a=this.Ba.length;b.Ua<a;b.Ua++)if(!this.Ba[b.Ua].Ra()){this.b.Ti();return}this.dj();this.b.Ti()};b.prototype.Mr=function(a){var b=a.index;if(0===b)return!0;
for(--b;0<=b;--b)if(this.Ba[b].type===a.type)return!1;return!0};Pb=b;e.prototype.La=function(){var a,b;a=0;for(b=this.I.length;a<b;a++)this.I[a].La()};e.prototype.vs=H(!0);e.prototype.ql=function(){var a,b;a=0;for(b=this.I.length;a<b;a++)this.T[a]=this.I[a].get();return Ma(this.Oa.apply(this.b.ld,this.T),this.zg)};e.prototype.us=function(){var a,b;a=0;for(b=this.I.length;a<b;a++)this.T[a]=this.I[a].get(a);a=this.Oa.apply(this.ve?this.ve:this.type,this.T);this.type.Xc();return a};e.prototype.pl=function(){var a,
b,c,e,d,h,l,k=this.type.ja(),q=this.lc.Qc&&!this.trigger,n=0,m=this.type.pc;if(k.ta){k.j.length=0;a=k.ka.length=0;for(c=this.type.j.length;a<c;a++){h=this.type.j[a];b=0;for(e=this.I.length;b<e;b++)this.T[b]=this.I[b].get(a);-1<this.jb?(this.type.U&&(n=h.type.nf[this.type.ad]),b=this.Oa.apply(h.S[this.jb+n],this.T)):b=this.Oa.apply(h,this.T);(d=Ma(b,this.zg))?k.j.push(h):q&&k.ka.push(h)}this.type.finish&&this.type.finish(!0);k.ta=!1;this.type.Xc();return k.Wm()}var r=0,s=(d=q&&!this.lc.Mr(this))?k.ka:
k.j,u=!1;a=0;for(c=s.length;a<c;a++){h=s[a];b=0;for(e=this.I.length;b<e;b++)this.T[b]=this.I[b].get(a);-1<this.jb?(this.type.U&&(n=h.type.nf[this.type.ad]),b=this.Oa.apply(h.S[this.jb+n],this.T)):b=this.Oa.apply(h,this.T);if(Ma(b,this.zg))if(u=!0,d){if(k.j.push(h),m)for(b=0,e=h.siblings.length;b<e;b++)l=h.siblings[b],l.type.ja().j.push(l)}else{s[r]=h;if(m)for(b=0,e=h.siblings.length;b<e;b++)l=h.siblings[b],l.type.ja().j[r]=l;r++}else if(d){s[r]=h;if(m)for(b=0,e=h.siblings.length;b<e;b++)l=h.siblings[b],
l.type.ja().ka[r]=l;r++}else if(q&&(k.ka.push(h),m))for(b=0,e=h.siblings.length;b<e;b++)l=h.siblings[b],l.type.ja().ka.push(l)}s.length=r;if(m)for(a=0,c=this.type.Fb.length;a<c;a++)h=this.type.Fb[a].ja(),d?h.ka.length=r:h.j.length=r;n=u;if(d&&!u)for(a=0,c=k.j.length;a<c;a++){h=k.j[a];b=0;for(e=this.I.length;b<e;b++)this.T[b]=this.I[b].get(a);b=-1<this.jb?this.Oa.apply(h.S[this.jb],this.T):this.Oa.apply(h,this.T);if(Ma(b,this.zg)){u=!0;break}}this.type.finish&&this.type.finish(n||q);return q?u:k.Wm()};
Lb=e;l.prototype.La=function(){var a,b;a=0;for(b=this.I.length;a<b;a++)this.I[a].La()};l.prototype.ql=function(){var a,b;a=0;for(b=this.I.length;a<b;a++)this.T[a]=this.I[a].get();return this.Oa.apply(this.b.ld,this.T)};l.prototype.pl=function(){var a=this.type.ja().Ac(),b,c,e,d,h;b=0;for(e=a.length;b<e;b++){h=a[b];c=0;for(d=this.I.length;c<d;c++)this.T[c]=this.I[c].get(b);-1<this.jb?(c=0,this.type.U&&(c=h.type.nf[this.type.ad]),this.Oa.apply(h.S[this.jb+c],this.T)):this.Oa.apply(h,this.T)}return!1};
Mb=l;var t=[],k=-1;s.prototype.La=function(){var a,b;if(11===this.type)this.Ce=this.b.Om(this.sh,this.lc.parent);else if(13===this.type)for(a=0,b=this.Tf.length;a<b;a++)this.Tf[a].La();this.$c&&this.$c.La()};s.prototype.$a=function(){k++;t.length===k&&t.push(new Rb);return t[k]};s.prototype.Pa=function(){k--};s.prototype.pr=function(a){this.he=a||0;a=this.$a();this.$c.get(a);this.Pa();return a.data};s.prototype.qr=function(a){this.he=a||0;a=this.$a();this.$c.get(a);this.Pa();return O(a.data)?a.data:
""};s.prototype.yr=F("object");s.prototype.nr=F("um");s.prototype.ur=function(a){this.he=a||0;a=this.$a();this.$c.get(a);this.Pa();return a.cb()?this.b.fr(a.data):this.b.er(a.data)};s.prototype.xr=F("na");s.prototype.tr=F("key");s.prototype.sr=F("index");s.prototype.rr=function(a){var b=this.L.type,c=null,c=b.ja(),e=c.Ac(),c=e.length?e[a%e.length].type:c.ka[a%c.ka.length].type;return this.index+c.ai[b.ad]};s.prototype.or=F("Ce");s.prototype.mr=F("Gm");s.prototype.Ar=function(){var a,b;a=0;for(b=this.Tf.length;a<
b;a++)this.wj[a]=this.Tf[a].get();return this.wj};Nb=s;v.prototype.La=function(){this.wa=c(this.wa)};v.prototype.Bs=function(a){var b=this.b.Nm();this.parent&&!this.Fg&&b?(this.Re>=b.length&&(b.length=this.Re+1),b[this.Re]=a):this.data=a};v.prototype.lr=function(){var a=this.b.Nm();return!this.parent||this.Fg||!a||this.si?this.data:this.Re>=a.length||"undefined"===typeof a[this.Re]?this.vk:a[this.Re]};v.prototype.Ra=function(){!this.parent||this.Fg||this.si||this.Bs(this.vk)};Hb=v;q.prototype.toString=
function(){return"include:"+this.vg.toString()};q.prototype.La=function(){this.vg=this.b.bk[this.Fr];this.sheet.Zm.add(this);this.wa=c(this.wa)};q.prototype.Ra=function(){this.parent&&this.b.fh(this.b.C);this.vg.rk||this.vg.Ra(!0);this.parent&&this.b.Ue(this.b.C)};q.prototype.Ir=function(){for(var a=this.parent;a;){if(a.group&&!this.b.df[a.qf.toLowerCase()])return!1;a=a.parent}return!0};Qb=q;r.prototype.reset=function(a){this.Hb=a;this.zb=this.Ua=0;this.Eo.length=0;this.$j=this.Oe=!1};Gb=r})();
(function(){function d(c,d){this.L=c;this.b=c.b;this.type=d[0];this.get=[this.Eq,this.Aq,this.Mq,this.Pq,this.uq,this.Nq,this.Iq,this.xq,this.Hq,this.Lq,this.vq,this.Kq,this.yq,this.Jq,this.Fq,this.Gq,this.Bq,this.Cq,this.wq,this.Oq,this.Cm,this.Dq,this.Cm,this.zq][this.type];var a=null;this.ac=this.I=this.T=this.Oa=this.nj=this.hb=this.first=this.value=null;this.jb=-1;this.xd=null;this.Ol=-1;this.Ce=this.sh=null;this.hh=!1;switch(this.type){case 0:case 1:case 2:this.value=d[1];break;case 3:this.first=
new Ob(c,d[1]);break;case 18:this.first=new Ob(c,d[1]);this.hb=new Ob(c,d[2]);this.nj=new Ob(c,d[3]);break;case 19:this.Oa=d[1];this.T=[];this.I=[];3===d.length?(a=d[2],this.T.length=a.length+1):this.T.length=1;break;case 20:this.ac=this.b.C[d[1]];this.jb=-1;this.Oa=d[2];this.hh=d[3];this.xd=d[4]?new Ob(c,d[4]):null;this.T=[];this.I=[];6===d.length?(a=d[5],this.T.length=a.length+1):this.T.length=1;break;case 21:this.ac=this.b.C[d[1]];this.hh=d[2];this.xd=d[3]?new Ob(c,d[3]):null;this.Ol=d[4];break;
case 22:this.ac=this.b.C[d[1]];this.ac.ji(d[2]);this.jb=this.ac.jk(d[2]);this.Oa=d[3];this.hh=d[4];this.xd=d[5]?new Ob(c,d[5]):null;this.T=[];this.I=[];7===d.length?(a=d[6],this.T.length=a.length+1):this.T.length=1;break;case 23:this.sh=d[1],this.Ce=null}4<=this.type&&17>=this.type&&(this.first=new Ob(c,d[1]),this.hb=new Ob(c,d[2]));if(a){var b,n;b=0;for(n=a.length;b<n;b++)this.I.push(new Ob(c,a[b]))}}function m(c,d){this.type=c||Sb.ag;this.data=d||0;this.Ff=null;this.type==Sb.ag&&(this.data=Math.floor(this.data))}
d.prototype.La=function(){23===this.type&&(this.Ce=this.L.b.Om(this.sh,this.L.lc.parent));this.first&&this.first.La();this.hb&&this.hb.La();this.nj&&this.nj.La();this.xd&&this.xd.La();if(this.I){var c,d;c=0;for(d=this.I.length;c<d;c++)this.I[c].La()}};d.prototype.Oq=function(c){this.T[0]=c;c=this.L.$a();var d,a;d=0;for(a=this.I.length;d<a;d++)this.I[d].get(c),this.T[d+1]=c.data;this.L.Pa();this.Oa.apply(this.b.ld,this.T)};d.prototype.Cm=function(c){var d=this.ac.ja(),a=d.Ac();if(!a.length)if(d.ka.length)a=
d.ka;else{this.hh?c.Fc(""):c.ya(0);return}this.T[0]=c;c.Ff=this.ac;c=this.L.$a();var b,d=0;for(b=this.I.length;d<b;d++)this.I[d].get(c),this.T[d+1]=c.data;d=this.L.he;this.xd&&(this.xd.get(c),c.cb()&&(d=c.data,a=this.ac.j));this.L.Pa();d%=a.length;0>d&&(d+=a.length);a=a[d];-1<this.jb?(c=0,this.ac.U&&(c=a.type.nf[this.ac.ad]),this.Oa.apply(a.S[this.jb+c],this.T)):this.Oa.apply(a,this.T)};d.prototype.Dq=function(c){var d=this.ac.ja(),a=d.Ac();if(!a.length)if(d.ka.length)a=d.ka;else{this.hh?c.Fc(""):
c.ya(0);return}d=this.L.he;if(this.xd){var b=this.L.$a();this.xd.get(b);if(b.cb()){d=b.data;a=this.ac.j;d%=a.length;0>d&&(d+=a.length);a=a[d].Ya[this.Ol];O(a)?c.Fc(a):c.ea(a);this.L.Pa();return}this.L.Pa()}d%=a.length;0>d&&(d+=a.length);a=a[d];d=0;this.ac.U&&(d=a.type.ai[this.ac.ad]);a=a.Ya[this.Ol+d];O(a)?c.Fc(a):c.ea(a)};d.prototype.Eq=function(c){c.type=Sb.ag;c.data=this.value};d.prototype.Aq=function(c){c.type=Sb.$f;c.data=this.value};d.prototype.Mq=function(c){c.type=Sb.Lj;c.data=this.value};
d.prototype.Pq=function(c){this.first.get(c);c.cb()&&(c.data=-c.data)};d.prototype.uq=function(c){this.first.get(c);var d=this.L.$a();this.hb.get(d);c.cb()&&d.cb()&&(c.data+=d.data,d.uf()&&c.Cf());this.L.Pa()};d.prototype.Nq=function(c){this.first.get(c);var d=this.L.$a();this.hb.get(d);c.cb()&&d.cb()&&(c.data-=d.data,d.uf()&&c.Cf());this.L.Pa()};d.prototype.Iq=function(c){this.first.get(c);var d=this.L.$a();this.hb.get(d);c.cb()&&d.cb()&&(c.data*=d.data,d.uf()&&c.Cf());this.L.Pa()};d.prototype.xq=
function(c){this.first.get(c);var d=this.L.$a();this.hb.get(d);c.cb()&&d.cb()&&(c.data/=d.data,c.Cf());this.L.Pa()};d.prototype.Hq=function(c){this.first.get(c);var d=this.L.$a();this.hb.get(d);c.cb()&&d.cb()&&(c.data%=d.data,d.uf()&&c.Cf());this.L.Pa()};d.prototype.Lq=function(c){this.first.get(c);var d=this.L.$a();this.hb.get(d);c.cb()&&d.cb()&&(c.data=Math.pow(c.data,d.data),d.uf()&&c.Cf());this.L.Pa()};d.prototype.vq=function(c){this.first.get(c);var d=this.L.$a();this.hb.get(d);c.cb()?d.vi()?
c.Fc(c.data.toString()+d.data):c.data&&d.data?c.ya(1):c.ya(0):c.vi()&&(c.data=d.vi()?c.data+d.data:c.data+(Math.round(1E10*d.data)/1E10).toString());this.L.Pa()};d.prototype.Kq=function(c){this.first.get(c);var d=this.L.$a();this.hb.get(d);c.cb()&&d.cb()&&(c.data||d.data?c.ya(1):c.ya(0));this.L.Pa()};d.prototype.wq=function(c){this.first.get(c);c.data?this.hb.get(c):this.nj.get(c)};d.prototype.yq=function(c){this.first.get(c);var d=this.L.$a();this.hb.get(d);c.ya(c.data===d.data?1:0);this.L.Pa()};
d.prototype.Jq=function(c){this.first.get(c);var d=this.L.$a();this.hb.get(d);c.ya(c.data!==d.data?1:0);this.L.Pa()};d.prototype.Fq=function(c){this.first.get(c);var d=this.L.$a();this.hb.get(d);c.ya(c.data<d.data?1:0);this.L.Pa()};d.prototype.Gq=function(c){this.first.get(c);var d=this.L.$a();this.hb.get(d);c.ya(c.data<=d.data?1:0);this.L.Pa()};d.prototype.Bq=function(c){this.first.get(c);var d=this.L.$a();this.hb.get(d);c.ya(c.data>d.data?1:0);this.L.Pa()};d.prototype.Cq=function(c){this.first.get(c);
var d=this.L.$a();this.hb.get(d);c.ya(c.data>=d.data?1:0);this.L.Pa()};d.prototype.zq=function(c){var d=this.Ce.lr();da(d)?c.ea(d):c.Fc(d)};Ob=d;m.prototype.uf=function(){return this.type===Sb.$f};m.prototype.cb=function(){return this.type===Sb.ag||this.type===Sb.$f};m.prototype.vi=function(){return this.type===Sb.Lj};m.prototype.Cf=function(){this.uf()||(this.vi()&&(this.data=parseFloat(this.data)),this.type=Sb.$f)};m.prototype.ya=function(c){this.type=Sb.ag;this.data=Math.floor(c)};m.prototype.ea=
function(c){this.type=Sb.$f;this.data=c};m.prototype.Fc=function(c){this.type=Sb.Lj;this.data=c};Rb=m;Sb={ag:0,$f:1,Lj:2}})();function X(d){this.b=d;this.Mb=[]}
X.prototype.mb=function(){var d={},m,c,h,a,b,n,e,l;d.waits=[];var s=d.waits,v;m=0;for(c=this.Mb.length;m<c;m++){n=this.Mb[m];v={t:n.time,ev:n.jf.Y,sm:[],sols:{}};n.jf.tc[n.zb]&&(v.act=n.jf.tc[n.zb].Y);h=0;for(a=n.wa.length;h<a;h++)v.sm.push(n.wa[h].Y);for(b in n.yb)if(n.yb.hasOwnProperty(b)){e=this.b.C[parseInt(b,10)];l={sa:n.yb[b].ej,insts:[]};h=0;for(a=n.yb[b].yd.length;h<a;h++)l.insts.push(n.yb[b].yd[h].uid);v.sols[e.Y.toString()]=l}s.push(v)}return d};
X.prototype.wb=function(d){d=d.waits;var m,c,h,a,b,n,e,l,s,v,q;m=this.Mb.length=0;for(c=d.length;m<c;m++)if(n=d[m],l=this.b.mm[n.ev.toString()]){s=-1;h=0;for(a=l.tc.length;h<a;h++)if(l.tc[h].Y===n.act){s=h;break}if(-1!==s){e={yb:{},wa:[],Zj:!1};e.time=n.t;e.jf=l;e.zb=s;h=0;for(a=n.sm.length;h<a;h++)(l=this.b.rg(n.sm[h]))&&e.wa.push(l);for(b in n.sols)if(n.sols.hasOwnProperty(b)&&(l=this.b.rg(parseInt(b,10)))){s=n.sols[b];v={ej:s.sa,yd:[]};h=0;for(a=s.insts.length;h<a;h++)(q=this.b.qg(s.insts[h]))&&
v.yd.push(q);e.yb[l.index.toString()]=v}this.Mb.push(e)}}};
(function(){function d(){}function m(){}function c(){}var h=X.prototype;d.prototype.qp=H(!0);d.prototype.pp=H(!0);d.prototype.Aj=function(a){var b=this.b.lk(),c=b.O.Bj||0,d=this.b.Wb.Ha;"undefined"===typeof b.O.Cj&&(b.O.Cj=a);var h=b.O.Cj;return d>=c+h?(b.O.Bj=c+h,d>=b.O.Bj+h&&(b.O.Bj=d),b.O.Cj=a,!0):!1};d.prototype.bf=function(a){return this.b.df[a.toLowerCase()]};d.prototype.bp=function(){var a=this.b.kb();return a.$j?!1:!a.Oe};d.prototype.Hj=H(!0);d.prototype.ip=H(!0);d.prototype.Ij=H(!0);d.prototype.rp=
H(!0);d.prototype.Gj=H(!0);h.m=new d;var a=[],b=[];m.prototype.yh=function(c){if(!(0>c)){var d,l,h,m=this.b.kb(),q;q=a.length?a.pop():{yb:{},wa:[]};q.Zj=!1;q.time=this.b.Wb.Ha+c;q.jf=m.Hb;q.zb=m.zb+1;c=0;for(d=this.b.C.length;c<d;c++)h=this.b.C[c],l=h.ja(),l.ta&&-1===m.Hb.wa.indexOf(h)||(q.wa.push(h),h=void 0,h=b.length?b.pop():{yd:[]},h.ej=!1,h.ej=l.ta,ua(h.yd,l.j),q.yb[c.toString()]=h);this.Mb.push(q);return!0}};m.prototype.Ap=function(){if(!this.b.Gg&&!this.b.hg&&this.b.ua){this.b.hg=this.b.ua;
var a,b,c;a=0;for(b=this.b.Md.length;a<b;a++)c=this.b.Md[a],this.b.df[c.qf.toLowerCase()]=c.pi}};h.A=new m;c.prototype["int"]=function(a,b){O(b)?(a.ya(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.ya(b)};c.prototype["float"]=function(a,b){O(b)?(a.ea(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.ea(b)};c.prototype.random=function(a,b,c){void 0===c?a.ea(Math.random()*b):a.ea(Math.random()*(c-b)+b)};c.prototype.sqrt=function(a,b){a.ea(Math.sqrt(b))};c.prototype.abs=function(a,b){a.ea(Math.abs(b))};c.prototype.round=
function(a,b){a.ya(Math.round(b))};c.prototype.floor=function(a,b){a.ya(Math.floor(b))};c.prototype.ceil=function(a,b){a.ya(Math.ceil(b))};c.prototype.sin=function(a,b){a.ea(Math.sin(V(b)))};c.prototype.cos=function(a,b){a.ea(Math.cos(V(b)))};c.prototype.tan=function(a,b){a.ea(Math.tan(V(b)))};c.prototype.acos=function(a,b){a.ea(xa(Math.acos(b)))};c.prototype.exp=function(a,b){a.ea(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.ea(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.ea(b)};c.prototype.Ae=function(a){a.ea(this.b.Ae)};c.prototype.me=function(a){a.ea(this.b.me)};c.prototype.time=function(a){a.ea(this.b.Wb.Ha)};c.prototype.md=function(a){a.ya(this.b.md)};c.prototype.Pi=function(a){a.ya(this.b.Pi)};c.prototype.fk=function(a){a.ya(this.b.fk)};c.prototype.n=function(a,b,c,d,h){a.ea(xa(Ca(b,c,d,h)))};c.prototype.left=function(a,
b,c){a.Fc(O(b)?b.substr(0,c):"")};c.prototype.right=function(a,b,c){a.Fc(O(b)?b.substr(b.length-c):"")};c.prototype.replace=function(a,b,c,d){O(b)&&O(c)&&O(d)?a.Fc(b.replace(RegExp(Ua(c),"gi"),d)):a.Fc(O(b)?b:"")};c.prototype.Vj=function(a){a.ea(this.b.Vj/1E3)};c.prototype.zf=function(a){a.ea(this.b.zf)};h.Pb=new c;h.qs=function(){var c,d,l,h,m,q,r=this.b.kb();c=0;for(l=this.Mb.length;c<l;c++)if(h=this.Mb[c],!(h.time>this.b.Wb.Ha)){r.Hb=h.jf;r.zb=h.zb;r.Ua=0;for(d in h.yb)h.yb.hasOwnProperty(d)&&
(m=this.b.C[parseInt(d,10)].ja(),q=h.yb[d],m.ta=q.ej,ua(m.j,q.yd),m=q,m.yd.length=0,b.push(m));h.jf.ns();this.b.Sj(h.wa);h.Zj=!0}d=c=0;for(l=this.Mb.length;c<l;c++)h=this.Mb[c],this.Mb[d]=h,h.Zj?(Ra(h.yb),h.wa.length=0,a.push(h)):d++;this.Mb.length=d}})();
(function(){bb=function(d){var c=d[0].prototype,h=d[1],a=d[3],b=d[4],n=d[5],e=d[6],l=d[7];d=d[8];c.m||(c.m={});c.A||(c.A={});c.Pb||(c.Pb={});var s=c.m,v=c.A,c=c.Pb;a&&(s.Zs=function(a,b){return Tb(this.x,a,b)},s.$s=function(a,b){return Tb(this.y,a,b)},s.it=function(){var a=this.k;this.Da();var b=this.Ea;return!(b.right<a.gc||b.bottom<a.ic||b.left>a.hc||b.top>a.fc)},s.jt=function(){this.Da();var a=this.Ea,b=this.b.ua;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},s.xt=function(a,b,c){var d=
this.ja(),e=d.Ac();if(!e.length)return!1;var f=e[0],l=f,g=La(f.x,f.y,b,c),h,m,n;h=1;for(m=e.length;h<m;h++)if(f=e[h],n=La(f.x,f.y,b,c),0===a&&n<g||1===a&&n>g)g=n,l=f;d.ah(l);return!0},v.Dp=function(a){this.x!==a&&(this.x=a,this.F())},v.Ot=function(a){this.y!==a&&(this.y=a,this.F())},v.Kt=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.F()},v.Lt=function(a,b){var c=a.hr(this);if(c){var d;c.pg?(d=c.pg(b,!0),c=c.pg(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.F()}},
v.ot=function(a){0!==a&&(this.x+=Math.cos(this.n)*a,this.y+=Math.sin(this.n)*a,this.F())},v.nt=function(a,b){0!==b&&(this.x+=Math.cos(V(a))*b,this.y+=Math.sin(V(a))*b,this.F())},c.Ip=function(a){a.ea(this.x)},c.St=function(a){a.ea(this.y)},c.Ae=function(a){a.ea(this.b.ng(this))});b&&(s.Ys=function(a,b){return Tb(this.width,a,b)},s.Ws=function(a,b){return Tb(this.height,a,b)},v.Cp=function(a){this.width!==a&&(this.width=a,this.F())},v.It=function(a){this.height!==a&&(this.height=a,this.F())},v.Mt=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.F()},c.Rt=function(a){a.ea(this.width)},c.ct=function(a){a.ea(this.height)},c.Ts=function(a){this.Da();a.ea(this.Ea.left)},c.Vs=function(a){this.Da();a.ea(this.Ea.top)},c.Us=function(a){this.Da();a.ea(this.Ea.right)},c.Ss=function(a){this.Da();a.ea(this.Ea.bottom)});n&&(s.Rs=function(a,b){return Ha(this.n,V(b))<=V(a)},s.gt=function(a){return Ja(this.n,V(a))},s.et=function(a,b){var c=Aa(a),d=Aa(b),e=W(this.n);return Ja(d,
c)?Ja(e,c)&&!Ja(e,d):!(!Ja(e,c)&&Ja(e,d))},v.Ft=function(a){a=V(ya(a));isNaN(a)||this.n===a||(this.n=a,this.F())},v.Bt=function(a){0===a||isNaN(a)||(this.n+=V(a),this.n=W(this.n),this.F())},v.Ct=function(a){0===a||isNaN(a)||(this.n-=V(a),this.n=W(this.n),this.F())},v.Dt=function(a,b){var c=Ia(this.n,V(b),V(a));isNaN(c)||this.n===c||(this.n=c,this.F())},v.Et=function(a,b,c){a=Ia(this.n,Math.atan2(c-this.y,b-this.x),V(a));isNaN(a)||this.n===a||(this.n=a,this.F())},v.Nt=function(a,b){var c=Math.atan2(b-
this.y,a-this.x);isNaN(c)||this.n===c||(this.n=c,this.F())},c.Qs=function(a){a.ea(za(this.n))});h||(s.Zf=function(a,b,c){return Tb(this.Ya[a],b,c)},s.Ul=function(a){return this.Ya[a]},s.yt=function(a,b){var c=this.ja(),d=c.Ac();if(!d.length)return!1;var e=d[0],f=e,l=e.Ya[b],g,h,m;g=1;for(h=d.length;g<h;g++)if(e=d[g],m=e.Ya[b],0===a&&m<l||1===a&&m>l)l=m,f=e;c.ah(f);return!0},s.wt=function(a){var b,c,d,e,f;if(this.b.lk().zg){f=this.ja();if(f.ta)for(f.ta=!1,f.j.length=0,f.ka.length=0,d=this.j,b=0,c=
d.length;b<c;b++)e=d[b],e.uid===a?f.ka.push(e):f.j.push(e);else{d=b=0;for(c=f.j.length;b<c;b++)e=f.j[b],f.j[d]=e,e.uid===a?f.ka.push(e):d++;f.j.length=d}this.Xc();return!!f.j.length}e=this.b.qg(a);if(!e)return!1;f=this.ja();if(!f.ta&&-1===f.j.indexOf(e))return!1;if(this.U)for(a=e.type.xa,b=0,c=a.length;b<c;b++){if(a[b]===this)return f.ah(e),this.Xc(),!0}else if(e.type===this)return f.ah(e),this.Xc(),!0;return!1},s.Dj=H(!0),s.Yl=H(!0),v.Bp=function(a,b){var c=this.Ya;da(c[a])?c[a]=da(b)?b:parseFloat(b):
O(c[a])&&(c[a]=O(b)?b:b.toString())},v.Ps=function(a,b){var c=this.Ya;da(c[a])?c[a]=da(b)?c[a]+b:c[a]+parseFloat(b):O(c[a])&&(c[a]=O(b)?c[a]+b:c[a]+b.toString())},v.Ep=function(a,b){var c=this.Ya;da(c[a])&&(c[a]=da(b)?c[a]-b:c[a]-parseFloat(b))},v.dm=function(a,b){this.Ya[a]=b?1:0},v.Pt=function(a){this.Ya[a]=1-this.Ya[a]},v.zj=function(){this.b.Kd(this)},v.dp||(v.dp=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.Ji(this,b,!0);this.pd&&this.pd();if(this.S)for(a=0,b=this.S.length;a<
b;++a)c=this.S[a],c.pd&&c.pd()}),c.bt=function(a){var b=a.Ff.j.length,c,d,e;c=0;for(d=this.b.Ob.length;c<d;c++)e=this.b.Ob[c],a.Ff.U?0<=e.type.xa.indexOf(a.Ff)&&b++:e.type===a.Ff&&b++;a.ya(b)},c.At=function(a){a.ya(a.Ff.ja().Ac().length)},c.Qt=function(a){a.ya(this.uid)},c.dt=function(a){a.ya(this.tg())},c.$o||(c.$o=function(a){a.Fc(JSON.stringify(this.b.rl(this,!0)))}));e&&(s.kt=F("visible"),v.cf=function(a){!a!==!this.visible&&(this.visible=a,this.b.ra=!0)},s.Xs=function(a,b){return Tb(Za(100*this.opacity),
a,b)},v.Jt=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ra=!0)},c.Opacity=function(a){a.ea(Za(100*this.opacity))});l&&(s.ht=function(a){return a?this.k===a:!1},s.zt=function(a){var b=this.ja(),c=b.Ac();if(!c.length)return!1;var d=c[0],e=d,f,l;f=1;for(l=c.length;f<l;f++)if(d=c[f],0===a){if(d.k.index>e.k.index||d.k.index===e.k.index&&d.oc()>e.oc())e=d}else if(d.k.index<e.k.index||d.k.index===e.k.index&&d.oc()<e.oc())e=d;b.ah(e);return!0},v.st=function(){var a=this.oc();
a!==this.k.j.length-1&&(ta(this.k.j,a),this.k.j.push(this),this.b.ra=!0,this.k.jc=!0)},v.pt=function(){var a=this.oc();0!==a&&(ta(this.k.j,a),this.k.j.unshift(this),this.b.ra=!0,this.k.jc=!0)},v.qt=function(a){a&&a!=this.k&&(ta(this.k.j,this.oc()),this.k.jc=!0,this.k=a,this.$e=a.j.length,a.j.push(this),this.b.ra=!0)},v.Ut=function(a,b){var c=0===a;if(b){var d=b.Zq(this);if(d&&d.uid!==this.uid){this.k.index!==d.k.index&&(ta(this.k.j,this.oc()),this.k.jc=!0,this.k=d.k,this.$e=d.k.j.length,d.k.j.push(this));
var e=this.oc(),d=d.oc();ta(this.k.j,e);e<d&&d--;c&&d++;d===this.k.j.length?this.k.j.push(this):this.k.j.splice(d,0,this);this.k.jc=!0;this.b.ra=!0}}},c.mt=function(a){a.ya(this.k.Pn)},c.lt=function(a){a.Fc(this.k.name)},c.Tt=function(a){a.ya(this.oc())});d&&(v.Gt=function(a,b){if(this.b.J){var c=this.type.nk(b);if(!(0>c)){var d=1===a;this.Ld[c]!==d&&(this.Ld[c]=d,this.Id(),this.b.ra=!0)}}},v.Ht=function(a,b,c){if(this.b.J){var d=this.type.nk(a);0>d||(a=this.type.R[d],d=this.Ga[d],b=Math.floor(b),
0>b||b>=d.length||(1===this.b.J.kr(a.nb,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.kc&&(this.b.ra=!0))))}})};Ab=function(){this.Pj=!0;this.type.Bh=!0;this.b.ra=!0;var d,c,h=this.Qj;d=0;for(c=h.length;d<c;++d)h[d](this)};Bb=function(d){d&&this.Qj.push(d)};var d=new na(0,0,0,0);Db=function(){if(this.Pj){var m=this.Ea,c=this.sb;m.set(this.x,this.y,this.x+this.width,this.y+this.height);m.offset(-this.Sb*this.width,-this.Tb*this.height);this.n?(m.offset(-this.x,-this.y),c.wo(m,this.n),c.offset(this.x,this.y),c.nm(m)):
c.Qf(m);m.normalize();this.Pj=!1;if(this.Yc){var c=this.type.Oh,h=this.Nh;d.set(c.zh(m.left),c.Ah(m.top),c.zh(m.right),c.Ah(m.bottom));h.tq(d)||(h.right<h.left?c.update(this,null,d):c.update(this,h,d),h.copy(d))}}};Cb=function(d,c){return this.Ea.Gb(d,c)&&this.sb.Gb(d,c)?this.Z&&!this.Z.Ke()?(this.Z.we(this.width,this.height,this.n),this.Z.Gb(d-this.x,c-this.y)):!0:!1};wb=function(){this.type.tj();return this.Ge};Eb=function(){this.k.Ks();return this.$e};Fb=function(){this.fa.length=0;var d,c;d=0;
for(c=this.Ld.length;d<c;d++)this.Ld[d]&&this.fa.push(this.type.R[d]);this.Yo=!!this.fa.length};xb=function(){return"Inst"+this.no};gb=function(d){if(d&&d.pc&&d.type!=this){var c,h,a;c=0;for(h=d.siblings.length;c<h;c++)if(a=d.siblings[c],a.type==this)return a}d=this.ja().Ac();return d.length?d[0]:null};hb=function(d){var c=this.ja().Ac();return c.length?c[d.tg()%c.length]:null};fb=function(){if(this.Sf&&!this.U){var d,c;d=0;for(c=this.j.length;d<c;d++)this.j[d].Ge=d;var h=d,a=this.b.Ob;d=0;for(c=
a.length;d<c;++d)a[d].type===this&&(a[d].Ge=h++);this.Sf=!1}};ub=function(d){if(d<this.j.length)return this.j[d];d-=this.j.length;var c=this.b.Ob,h,a;h=0;for(a=c.length;h<a;++h)if(c[h].type===this){if(0===d)return c[h];--d}return null};ib=function(){return this.ie[this.ud]};jb=function(){this.ud++;this.ud===this.ie.length?this.ie.push(new eb(this)):this.ie[this.ud].ta=!0};kb=function(){this.ud++;this.ud===this.ie.length&&this.ie.push(new eb(this));var d=this.ie[this.ud],c=this.ie[this.ud-1];c.ta?
d.ta=!0:(d.ta=!1,ua(d.j,c.j),ua(d.ka,c.ka))};lb=function(){this.ud--};mb=function(d){var c,h,a,b,n,e=0;if(!this.U)for(c=0,h=this.xa.length;c<h;c++)for(n=this.xa[c],a=0,b=n.Ma.length;a<b;a++){if(d===n.Ma[a].name)return this.O.vn=e,n.Ma[a];e++}c=0;for(h=this.Ma.length;c<h;c++){if(d===this.Ma[c].name)return this.O.vn=e,this.Ma[c];e++}return null};nb=function(d){return this.ji(d)?this.O.vn:-1};ob=function(d){var c,h;c=0;for(h=this.R.length;c<h;c++)if(this.R[c].name===d)return c;return-1};tb=function(){if(this.pc&&
!this.U){var d,c,h,a,b,n,e;this.tj();n=this.ja();var l=n.ta,s=(d=this.b.kb())&&d.Hb&&d.Hb.Qc;d=0;for(c=this.Fb.length;d<c;d++)if(b=this.Fb[d],b!==this&&(b.tj(),e=b.ja(),e.ta=l,!l)){e.j.length=n.j.length;h=0;for(a=n.j.length;h<a;h++)e.j[h]=b.Pm(n.j[h].Ge);if(s)for(e.ka.length=n.ka.length,h=0,a=n.ka.length;h<a;h++)e.ka[h]=b.Pm(n.ka[h].Ge)}}};vb=function(){return"Type"+this.Y};Tb=function(d,c,h){if("undefined"===typeof d||"undefined"===typeof h)return!1;switch(c){case 0:return d===h;case 1:return d!==
h;case 2:return d<h;case 3:return d<=h;case 4:return d>h;case 5:return d>=h;default:return!1}}})();var ac={};function dc(d){this.b=d}
(function(){function d(a){0>a&&(a=0);1<a&&(a=1);return 20*(Math.log(a)/Math.log(10))}function m(a){a=a.toLowerCase();return S.hasOwnProperty(a)&&S[a].length?S[a][0].nc():A.destination}function c(){return A.createGain?A.createGain():A.createGainNode()}function h(a){return A.createDelay?A.createDelay(a):A.createDelayNode(a)}function a(a){a.start?a.start(0):a.noteOn(0)}function b(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function n(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function e(a,
b,d,e,g,f){this.type="filter";this.Rc=[a,b,d,e,g,f];this.ba=c();this.P=c();this.P.gain.value=f;this.N=c();this.N.gain.value=1-f;this.Na=A.createBiquadFilter();this.Na.type="number"===typeof this.Na.type?a:qc[a];this.Na.frequency.value=b;this.Na.detune&&(this.Na.detune.value=d);this.Na.Q.value=e;this.Na.gain.value=g;this.ba.connect(this.Na);this.ba.connect(this.N);this.Na.connect(this.P)}function l(a,b,d){this.type="delay";this.Rc=[a,b,d];this.ba=c();this.P=c();this.P.gain.value=d;this.N=c();this.N.gain.value=
1-d;this.Tg=c();this.yc=h(a);this.yc.delayTime.value=a;this.Vh=c();this.Vh.gain.value=b;this.ba.connect(this.Tg);this.ba.connect(this.N);this.Tg.connect(this.P);this.Tg.connect(this.yc);this.yc.connect(this.Vh);this.Vh.connect(this.Tg)}function s(a,b,d,e){this.type="convolve";this.Rc=[b,d,e];this.ba=c();this.P=c();this.P.gain.value=d;this.N=c();this.N.gain.value=1-d;this.ye=A.createConvolver();a&&(this.ye.normalize=b,this.ye.buffer=a);this.ba.connect(this.ye);this.ba.connect(this.N);this.ye.connect(this.P)}
function v(b,d,e,g,f){this.type="flanger";this.Rc=[b,d,e,g,f];this.ba=c();this.N=c();this.N.gain.value=1-f/2;this.P=c();this.P.gain.value=f/2;this.bi=c();this.bi.gain.value=g;this.yc=h(b+d);this.yc.delayTime.value=b;this.gb=A.createOscillator();this.gb.frequency.value=e;this.cc=c();this.cc.gain.value=d;this.ba.connect(this.yc);this.ba.connect(this.N);this.yc.connect(this.P);this.yc.connect(this.bi);this.bi.connect(this.yc);this.gb.connect(this.cc);this.cc.connect(this.yc.delayTime);a(this.gb)}function q(b,
d,e,g,f,l){this.type="phaser";this.Rc=[b,d,e,g,f,l];this.ba=c();this.N=c();this.N.gain.value=1-l/2;this.P=c();this.P.gain.value=l/2;this.Na=A.createBiquadFilter();this.Na.type="number"===typeof this.Na.type?7:"allpass";this.Na.frequency.value=b;this.Na.detune&&(this.Na.detune.value=d);this.Na.Q.value=e;this.gb=A.createOscillator();this.gb.frequency.value=f;this.cc=c();this.cc.gain.value=g;this.ba.connect(this.Na);this.ba.connect(this.N);this.Na.connect(this.P);this.gb.connect(this.cc);this.cc.connect(this.Na.frequency);
a(this.gb)}function r(a){this.type="gain";this.Rc=[a];this.da=c();this.da.gain.value=a}function u(b,d){this.type="tremolo";this.Rc=[b,d];this.da=c();this.da.gain.value=1-d/2;this.gb=A.createOscillator();this.gb.frequency.value=b;this.cc=c();this.cc.gain.value=d/2;this.gb.connect(this.cc);this.cc.connect(this.da.gain);a(this.gb)}function t(b,d){this.type="ringmod";this.Rc=[b,d];this.ba=c();this.P=c();this.P.gain.value=d;this.N=c();this.N.gain.value=1-d;this.ih=c();this.ih.gain.value=0;this.gb=A.createOscillator();
this.gb.frequency.value=b;this.gb.connect(this.ih.gain);a(this.gb);this.ba.connect(this.ih);this.ba.connect(this.N);this.ih.connect(this.P)}function k(a,b,d,e,g){this.type="distortion";this.Rc=[a,b,d,e,g];this.ba=c();this.Vi=c();this.Ui=c();this.ys(d,Math.pow(10,e/20));this.P=c();this.P.gain.value=g;this.N=c();this.N.gain.value=1-g;this.yj=A.createWaveShaper();this.Th=new Float32Array(65536);this.Vq(a,b);this.yj.Th=this.Th;this.ba.connect(this.Vi);this.ba.connect(this.N);this.Vi.connect(this.yj);
this.yj.connect(this.Ui);this.Ui.connect(this.P)}function f(a,b,c,d,e){this.type="compressor";this.Rc=[a,b,c,d,e];this.da=A.createDynamicsCompressor();this.da.threshold.value=a;this.da.knee.value=b;this.da.ratio.value=c;this.da.attack.value=d;this.da.release.value=e}function p(a,b){this.type="analyser";this.Rc=[a,b];this.da=A.createAnalyser();this.da.fftSize=a;this.da.smoothingTimeConstant=b;this.Tq=new Float32Array(this.da.frequencyBinCount);this.yo=new Uint8Array(a);this.$g=0}function g(){this.X=
null;this.Ki=0;this.je=[];this.Rk=this.yi=this.xi=0}function z(a,b){this.src=a;this.pa=N;this.Oc=b;this.im=!1;var d=this;this.Qk=this.al=null;this.Jf=[];this.fj=0;this.Do=this.Qi=!1;N===w&&b&&(this.pa=K,this.al=c());this.Dh=this.Aa=null;var e;switch(this.pa){case K:this.Aa=new Audio;N===w&&A.createMediaElementSource&&!G.ln&&(this.Do=!0,this.Aa.addEventListener("canplay",function(){d.Qk||(d.Qk=A.createMediaElementSource(d.Aa),d.Qk.connect(d.al))}));this.Aa.autoplay=!1;this.Aa.fu="auto";this.Aa.src=
a;break;case w:e=new XMLHttpRequest;e.open("GET",a,!0);e.responseType="arraybuffer";e.onload=function(){d.Dh=e.response;d.bq()};e.send();break;case R:this.Aa=!0;break;case M:this.Aa=!0}}function D(a,b){var d=this;this.ke=b;this.Hc=this.Td=!0;this.src=a.src;this.buffer=a;this.pa=N;this.Oc=a.Oc;this.playbackRate=1;this.cl=!0;this.zd=this.Fd=!1;this.Tc=0;this.Eg=this.vf=this.Bd=!1;this.Vg=this.volume=1;this.startTime=G.Wb.Ha;this.Ja=this.bb=null;this.fd=!1;this.Za=null;this.$n=this.Zn=this.Yn=this.Xn=
this.bo=this.ao=0;this.q=null;var e=!1;this.pa!==w||this.buffer.pa!==K||this.buffer.Do||(this.pa=K);switch(this.pa){case K:this.Oc?(this.q=a.Aa,e=!a.im,a.im=!0):(this.q=new Audio,this.q.autoplay=!1,this.q.src=a.Aa.src,e=!0);e&&this.q.addEventListener("ended",function(){U=d.ke;d.Hc=!0;G.trigger(dc.prototype.m.Ej,J)});break;case w:this.bb=c();this.bb.connect(m(b));this.buffer.pa===w?a.Aa&&(this.q=A.createBufferSource(),this.q.buffer=a.Aa,this.q.connect(this.bb)):(this.q=this.buffer.Aa,this.buffer.al.connect(this.bb));
break;case R:this.q=new window.Media(C+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(d.cl=!0,d.Hc=!0,U=d.ke,G.trigger(dc.prototype.m.Ej,J))});break;case M:this.q=!0}}function P(a,b){S.hasOwnProperty(a)?S[a].push(b):S[a]=[b];var c,d,e,g,f=A.destination;if(S.hasOwnProperty(a)&&(e=S[a],e.length))for(f=e[0].nc(),c=0,d=e.length;c<d;c++)g=e[c],c+1===d?g.vc(A.destination):g.vc(e[c+1].nc());Da.length=0;if(a.length)for(c=0,d=Q.length;c<d;c++)e=Q[c],$a(a,e.ke)&&Da.push(e);else Ea&&!Ea.ug()&&
(Da.length=1,Da[0]=Ea);c=0;for(d=Da.length;c<d;c++)Da[c].ks(f);Ba&&pb===a&&(Ba.disconnect(),Ba.connect(f))}function L(){}function x(){}var E=dc.prototype;E.za=function(a){this.Ka=a;this.b=a.b};E.za.prototype.$=B();var G=null,J=null,U="",C="",K=0,w=1,R=2,M=3,N=K,A=null,qb=[],Q=[],Ea=null,cb=!1,db=0,qa=!1,ra=1,Fa=0,Ga=0,rb=1,sb=1,ic=10,jc=1E4,kc=1,Ba=null,pb="",Na=!1,Oa=[],S={},qc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");e.prototype.vc=function(a){this.P.disconnect();
this.P.connect(a);this.N.disconnect();this.N.connect(a)};e.prototype.remove=function(){this.ba.disconnect();this.Na.disconnect();this.P.disconnect();this.N.disconnect()};e.prototype.nc=F("ba");l.prototype.vc=function(a){this.P.disconnect();this.P.connect(a);this.N.disconnect();this.N.connect(a)};l.prototype.remove=function(){this.ba.disconnect();this.Tg.disconnect();this.yc.disconnect();this.Vh.disconnect();this.P.disconnect();this.N.disconnect()};l.prototype.nc=F("ba");s.prototype.vc=function(a){this.P.disconnect();
this.P.connect(a);this.N.disconnect();this.N.connect(a)};s.prototype.remove=function(){this.ba.disconnect();this.ye.disconnect();this.P.disconnect();this.N.disconnect()};s.prototype.nc=F("ba");v.prototype.vc=function(a){this.N.disconnect();this.N.connect(a);this.P.disconnect();this.P.connect(a)};v.prototype.remove=function(){this.ba.disconnect();this.yc.disconnect();this.gb.disconnect();this.cc.disconnect();this.N.disconnect();this.P.disconnect();this.bi.disconnect()};v.prototype.nc=F("ba");q.prototype.vc=
function(a){this.N.disconnect();this.N.connect(a);this.P.disconnect();this.P.connect(a)};q.prototype.remove=function(){this.ba.disconnect();this.Na.disconnect();this.gb.disconnect();this.cc.disconnect();this.N.disconnect();this.P.disconnect()};q.prototype.nc=F("ba");r.prototype.vc=function(a){this.da.disconnect();this.da.connect(a)};r.prototype.remove=function(){this.da.disconnect()};r.prototype.nc=F("da");u.prototype.vc=function(a){this.da.disconnect();this.da.connect(a)};u.prototype.remove=function(){this.gb.disconnect();
this.cc.disconnect();this.da.disconnect()};u.prototype.nc=F("da");t.prototype.vc=function(a){this.P.disconnect();this.P.connect(a);this.N.disconnect();this.N.connect(a)};t.prototype.remove=function(){this.gb.disconnect();this.ih.disconnect();this.ba.disconnect();this.P.disconnect();this.N.disconnect()};t.prototype.nc=F("ba");k.prototype.ys=function(a,b){0.01>a&&(a=0.01);this.Vi.gain.value=a;this.Ui.gain.value=Math.pow(1/a,0.6)*b};k.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};k.prototype.Vq=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),e=0,g=0;32768>g;++g)e=g/32768,e=this.shape(e,c,d),this.Th[32768+g]=e,this.Th[32768-g-1]=-e};k.prototype.vc=function(a){this.P.disconnect();this.P.connect(a);this.N.disconnect();this.N.connect(a)};k.prototype.remove=function(){this.ba.disconnect();this.Vi.disconnect();this.yj.disconnect();this.Ui.disconnect();this.P.disconnect();this.N.disconnect()};k.prototype.nc=F("ba");
f.prototype.vc=function(a){this.da.disconnect();this.da.connect(a)};f.prototype.remove=function(){this.da.disconnect()};f.prototype.nc=F("da");p.prototype.Ia=function(){this.da.getFloatFrequencyData(this.Tq);this.da.getByteTimeDomainData(this.yo);for(var a=this.da.fftSize,b=0,c=this.$g=0,e=0;b<a;b++)e=(this.yo[b]-128)/128,0>e&&(e=-e),this.$g<e&&(this.$g=e),c+=e*e;this.$g=d(this.$g);d(Math.sqrt(c/a))};p.prototype.vc=function(a){this.da.disconnect();this.da.connect(a)};p.prototype.remove=function(){this.da.disconnect()};
p.prototype.nc=F("da");g.prototype.jh=function(a){if(this.X=a)this.xi=this.X.x,this.yi=this.X.y;this.je.length=0};g.prototype.mi=function(){return!!this.X};g.prototype.Ia=function(a){this.X&&0!==a&&(this.Rk=Ca(this.xi,this.yi,this.X.x,this.X.y),a=La(this.xi,this.yi,this.X.x,this.X.y)/a,4>this.je.length||this.je.shift(),this.je.push(a),this.xi=this.X.x,this.yi=this.X.y)};g.prototype.Tm=function(){if(!this.je.length)return 0;var a,b,c=0;a=0;for(b=this.je.length;a<b;a++)c+=this.je[a];return c/this.je.length};
g.prototype.Um=function(){return Math.cos(this.Rk)*this.Tm()};g.prototype.Vm=function(){return Math.sin(this.Rk)*this.Tm()};var lc=!1;z.prototype.bq=function(){if(!this.Aa&&this.Dh){var a=this;if(A.decodeAudioData)A.decodeAudioData(this.Dh,function(b){a.Aa=b;var c,d,e;if(ca(a.Ri)||qa)ca(a.Ph)||(c=a.Ph.ye,c.normalize=a.On,c.buffer=b);else if(a.Jf.length){c=0;for(d=a.Jf.length;c<d;c++){b=a.Jf[c];e=new D(a,b.Lo);e.yl(!0);if("undefined"!==typeof b.Qn&&(b.X=G.qg(b.Qn),!b.X))continue;if(b.X){var g=Ka(b.X.x,
b.X.y,-b.X.k.Ib(),Fa,Ga,!0),f=Ka(b.X.x,b.X.y,-b.X.k.Ib(),Fa,Ga,!1);e.xl(g,f,xa(b.X.n-b.X.k.Ib()),b.sk,b.Sk,b.Uk);e.jh(b.X)}else e.xl(b.x,b.y,b.Jp,b.sk,b.Sk,b.Uk);e.play(a.Ok,a.Ql,a.fj);a.Qi&&e.pause();Q.push(e)}a.Jf.length=0}else e=new D(a,a.Ri),e.play(a.Ok,a.Ql,a.fj),a.Qi&&e.pause(),Q.push(e)});else if(this.Aa=A.createBuffer(this.Dh,!1),ca(this.Ri)||qa)ca(this.Ph)||(b=this.Ph.ye,b.normalize=this.On,b.buffer=this.Aa);else{var b=new D(this,this.Ri);b.play(this.Ok,this.Ql,this.fj);this.Qi&&b.pause();
Q.push(b)}}};D.prototype.ug=function(){switch(this.pa){case K:return this.q.ended;case w:return this.buffer.pa===w?!this.Td&&!this.Hc&&this.q.loop||this.zd?!1:G.Wb.Ha-this.startTime>this.buffer.Aa.duration:this.q.ended;case R:return this.cl;case M:!0}return!0};D.prototype.Tp=function(){return this.Td||this.Hc?!0:this.ug()};D.prototype.yl=function(a){N===w&&(!this.fd&&a?this.bb&&(this.Ja||(this.Ja=A.createPanner(),this.Ja.panningModel="number"===typeof this.Ja.panningModel?rb:["equalpower","HRTF",
"soundfield"][rb],this.Ja.distanceModel="number"===typeof this.Ja.distanceModel?sb:["linear","inverse","exponential"][sb],this.Ja.refDistance=ic,this.Ja.maxDistance=jc,this.Ja.rolloffFactor=kc),this.bb.disconnect(),this.bb.connect(this.Ja),this.Ja.connect(m(this.ke)),this.fd=!0):this.fd&&!a&&this.bb&&(this.Ja.disconnect(),this.bb.disconnect(),this.bb.connect(m(this.ke)),this.fd=!1))};D.prototype.xl=function(a,b,c,d,e,g){this.fd&&N===w&&(this.Ja.setPosition(a,b,0),this.Ja.setOrientation(Math.cos(V(c)),
Math.sin(V(c)),0),this.Ja.coneInnerAngle=d,this.Ja.coneOuterAngle=e,this.Ja.coneOuterGain=g,this.ao=a,this.bo=b,this.Xn=c,this.Yn=d,this.Zn=e,this.$n=g)};D.prototype.jh=function(a){this.fd&&N===w&&(this.Za||(this.Za=new g),this.Za.jh(a))};D.prototype.Ia=function(a){if(this.fd&&N===w&&this.Za&&this.Za.mi()&&this.tf()){this.Za.Ia(a);a=this.Za.X;var b=Ka(a.x,a.y,-a.k.Ib(),Fa,Ga,!0),c=Ka(a.x,a.y,-a.k.Ib(),Fa,Ga,!1);this.Ja.setPosition(b,c,0);b=0;"undefined"!==typeof this.Za.X.n&&(b=a.n-a.k.Ib(),this.Ja.setOrientation(Math.cos(b),
Math.sin(b),0));this.Ja.setVelocity(this.Za.Um(),this.Za.Vm(),0)}};D.prototype.play=function(c,d,e){var g=this.q;this.Bd=c;this.volume=d;e=e||0;switch(this.pa){case K:1!==g.playbackRate&&(g.playbackRate=1);g.volume!==d*ra&&(g.volume=d*ra);g.loop!==c&&(g.loop=c);g.muted&&(g.muted=!1);if(g.currentTime!==e)try{g.currentTime=e}catch(f){}this.Oc&&Na&&!G.sf?Oa.push(this):this.q.play();break;case w:this.muted=!1;this.Vg=1;if(this.buffer.pa===w)this.Td||(this.q=A.createBufferSource(),this.q.buffer=this.buffer.Aa,
this.q.connect(this.bb)),this.q.loop=c,this.bb.gain.value=d*ra,0===e?a(this.q):b(this.q,e,this.pf());else{1!==g.playbackRate&&(g.playbackRate=1);g.loop!==c&&(g.loop=c);this.bb.gain.value=d*ra;if(g.currentTime!==e)try{g.currentTime=e}catch(l){}this.Oc&&Na&&!G.sf?Oa.push(this):g.play()}break;case R:(!this.Td&&this.Hc||0!==e)&&g.seekTo(e);g.play();this.cl=!1;break;case M:G.Ub?AppMobi.context.playSound(this.src,c):AppMobi.player.playSound(this.src,c)}this.playbackRate=1;this.startTime=G.Wb.Ha-e;this.zd=
this.Hc=this.Td=!1};D.prototype.stop=function(){switch(this.pa){case K:this.q.paused||this.q.pause();break;case w:this.buffer.pa===w?n(this.q):this.q.paused||this.q.pause();break;case R:this.q.stop();break;case M:G.Ub&&AppMobi.context.stopSound(this.src)}this.Hc=!0;this.zd=!1};D.prototype.pause=function(){if(!(this.Td||this.Hc||this.ug()||this.zd)){switch(this.pa){case K:this.q.paused||this.q.pause();break;case w:this.buffer.pa===w?(this.Tc=this.ok(),this.Bd&&(this.Tc%=this.pf()),n(this.q)):this.q.paused||
this.q.pause();break;case R:this.q.pause();break;case M:G.Ub&&AppMobi.context.stopSound(this.src)}this.zd=!0}};D.prototype.ks=function(a){this.pa===w&&(this.fd?(this.Ja.disconnect(),this.Ja.connect(a)):(this.bb.disconnect(),this.bb.connect(a)))};D.prototype.pf=function(){switch(this.pa){case K:if("undefined"!==typeof this.q.duration)return this.q.duration;break;case w:return this.buffer.Aa.duration;case R:return this.q.getDuration();case M:if(G.Ub)return AppMobi.context.getDurationSound(this.src)}return 0};
D.prototype.ok=function(){var a=this.pf(),b=0;switch(this.pa){case K:"undefined"!==typeof this.q.currentTime&&(b=this.q.currentTime);break;case w:if(this.buffer.pa===w){if(this.zd)return this.Tc;b=G.Wb.Ha-this.startTime}else"undefined"!==typeof this.q.currentTime&&(b=this.q.currentTime);break;case M:G.Ub&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.Bd&&b>a&&(b=a);return b};D.prototype.tf=function(){return!this.zd&&!this.Td&&!this.Hc&&!this.ug()};D.prototype.Js=function(){var a=this.volume*
ra;switch(this.pa){case K:this.q.volume&&this.q.volume!==a&&(this.q.volume=a);break;case w:this.bb.gain.value=a*this.Vg}};D.prototype.Xh=function(a){switch(this.pa){case K:this.q.muted!==!!a&&(this.q.muted=!!a);break;case w:this.Vg=a?0:1,this.bb.gain.value=ra*this.volume*this.Vg}};D.prototype.zs=function(){this.vf=!0;this.Xh(this.vf||this.Eg)};D.prototype.uo=function(a){this.Eg=!!a;this.Xh(this.vf||this.Eg)};D.prototype.Wo=function(){var a=this.playbackRate;if(1===db&&!this.Oc||2===db)a*=G.me;switch(this.pa){case K:this.q.playbackRate!==
a&&(this.q.playbackRate=a);break;case w:this.buffer.pa===w?this.q.playbackRate.value!==a&&(this.q.playbackRate.value=a):this.q.playbackRate!==a&&(this.q.playbackRate=a)}};D.prototype.As=function(a){switch(this.pa){case K:a?this.tf()?(this.q.pause(),this.Fd=!0):this.Fd=!1:this.Fd&&this.q.play();break;case w:a?this.tf()?(this.buffer.pa===w?(this.Tc=this.ok(),this.Bd&&(this.Tc%=this.pf()),n(this.q)):this.q.pause(),this.Fd=!0):this.Fd=!1:this.Fd&&(this.buffer.pa===w?(this.q=A.createBufferSource(),this.q.buffer=
this.buffer.Aa,this.q.connect(this.bb),this.q.loop=this.Bd,this.bb.gain.value=ra*this.volume*this.Vg,this.startTime=G.Wb.Ha-this.Tc,b(this.q,this.Tc,this.pf())):this.q.play());break;case R:a?this.tf()?(this.q.pause(),this.Fd=!0):this.Fd=!1:this.Fd&&this.q.play()}};E.ma=function(b){this.type=b;G=this.b=b.b;J=this;this.ub=null;this.Pg=-600;!(this.b.Ck||this.b.qi&&(this.b.Ag||this.b.jn))||this.b.xk||this.b.Vb||(Na=!0);A=null;"undefined"!==typeof AudioContext?(N=w,A=new AudioContext):"undefined"!==typeof webkitAudioContext&&
(N=w,A=new webkitAudioContext);(this.b.Ck&&N===w||Na)&&document.addEventListener("touchstart",function(){var b,c,d;!lc&&A&&(b=A.createBuffer(1,1,22050),c=A.createBufferSource(),c.buffer=b,c.connect(A.destination),a(c),lc=!0);if(Na){if(!qa)for(b=0,c=Oa.length;b<c;++b)d=Oa[b],d.Hc||d.zd||d.q.play();Oa.length=0}},!0);N!==w&&(this.b.nn?N=R:this.b.kn&&(N=M));N===R&&(C=location.href,b=C.lastIndexOf("/"),-1<b&&(C=C.substr(0,b+1)),C=C.replace("file://",""));if(this.b.Nr&&this.b.Or&&"undefined"===typeof Audio)alert("It looks like you're using Safari for Windows without Quicktime.  Audio cannot be played until Quicktime is installed."),
this.b.Kd(this);else{if(this.b.Ub)cb=this.b.qi;else try{cb=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(c){cb=!1}this.b.rh(this)}};var sa=E.ma.prototype;sa.$=function(){db=this.D[0];this.Gd=this.D[1];rb=this.D[2];sb=this.D[3];this.Pg=-this.D[4];ic=this.D[5];jc=this.D[6];kc=this.D[7];this.ub=new g;N===w&&(A.listener.speedOfSound=this.D[8],A.listener.dopplerFactor=this.D[9],A.listener.setPosition(this.b.W/2,this.b.V/2,this.Pg),A.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=
function(a,b){Ba&&Ba.disconnect();pb=b.toLowerCase();Ba=A.createMediaStreamSource(a);Ba.connect(m(pb))});this.b.hm(function(a){J.Yr(a)});var a=this;this.b.Mj(function(b){a.Vk(b)})};sa.Vk=function(a){var b,c,d;b=0;for(c=Q.length;b<c;b++)d=Q[b],d.Za&&d.Za.X===a&&(d.Za.X=null,d.fd&&d.tf()&&d.Bd&&d.stop());this.ub.X===a&&(this.ub.X=null)};sa.mb=function(){var a={silent:qa,masterVolume:ra,listenerZ:this.Pg,listenerUid:this.ub.mi()?this.ub.X.uid:-1,playing:[],effects:{}},b=a.playing,c,d,e,g,f,l;c=0;for(d=
Q.length;c<d;c++)e=Q[c],!e.tf()||3===this.Gd||e.Oc&&1===this.Gd||!e.Oc&&2===this.Gd||(g=e.ok(),e.Bd&&(g%=e.pf()),g={tag:e.ke,buffersrc:e.buffer.src,is_music:e.Oc,playbackTime:g,volume:e.volume,looping:e.Bd,muted:e.vf,playbackRate:e.playbackRate,paused:e.zd,resume_position:e.Tc},e.fd&&(g.pan={},l=g.pan,e.Za&&e.Za.mi()?l.objUid=e.Za.X.uid:(l.x=e.ao,l.y=e.bo,l.a=e.Xn),l.ia=e.Yn,l.oa=e.Zn,l.og=e.$n),b.push(g));b=a.effects;for(f in S)if(S.hasOwnProperty(f)){e=[];c=0;for(d=S[f].length;c<d;c++)e.push({type:S[f][c].type,
params:S[f][c].Rc});b[f]=e}return a};var Pa=[];sa.wb=function(a){var b=a.silent;ra=a.masterVolume;this.Pg=a.listenerZ;this.ub.jh(null);var c=a.listenerUid;-1!==c&&(this.ub.Ki=c,Pa.push(this.ub));var c=a.playing,d,h,n,m,z,D,L,E,x,y,w;if(3!==this.Gd)for(d=0,h=Q.length;d<h;d++)x=Q[d],x.Oc&&1===this.Gd||(x.Oc||2!==this.Gd)&&x.stop();for(z in S)if(S.hasOwnProperty(z))for(d=0,h=S[z].length;d<h;d++)S[z][d].remove();Ra(S);for(z in a.effects)if(a.effects.hasOwnProperty(z))for(D=a.effects[z],d=0,h=D.length;d<
h;d++)switch(n=D[d].type,y=D[d].params,n){case "filter":P(z,new e(y[0],y[1],y[2],y[3],y[4],y[5]));break;case "delay":P(z,new l(y[0],y[1],y[2]));break;case "convolve":n=y[2];x=this.ik(n,!1);x.Aa?n=new s(x.Aa,y[0],y[1],n):(n=new s(null,y[0],y[1],n),x.On=y[0],x.Ph=n);P(z,n);break;case "flanger":P(z,new v(y[0],y[1],y[2],y[3],y[4]));break;case "phaser":P(z,new q(y[0],y[1],y[2],y[3],y[4],y[5]));break;case "gain":P(z,new r(y[0]));break;case "tremolo":P(z,new u(y[0],y[1]));break;case "ringmod":P(z,new t(y[0],
y[1]));break;case "distortion":P(z,new k(y[0],y[1],y[2],y[3],y[4]));break;case "compressor":P(z,new f(y[0],y[1],y[2],y[3],y[4]));break;case "analyser":P(z,new p(y[0],y[1]))}d=0;for(h=c.length;d<h;d++)3===this.Gd||(a=c[d],n=a.buffersrc,m=a.is_music,z=a.tag,D=a.playbackTime,L=a.looping,E=a.volume,w=(y=a.pan)&&y.hasOwnProperty("objUid")?y.objUid:-1,m&&1===this.Gd)||!m&&2===this.Gd||((x=this.Lm(n,z,m,L,E))?(x.Tc=a.resume_position,x.yl(!!y),x.play(L,E,D),x.Wo(),x.Js(),x.Xh(x.vf||x.Eg),a.paused&&x.pause(),
a.muted&&x.zs(),x.Xh(x.vf||x.Eg),y&&(-1!==w?(x.Za=x.Za||new g,x.Za.Ki=w,Pa.push(x.Za)):x.xl(y.x,y.y,y.a,y.ia,y.oa,y.og))):(x=this.ik(n,m),x.fj=D,x.Qi=a.paused,y&&(-1!==w?x.Jf.push({Qn:w,sk:y.ia,Sk:y.oa,Uk:y.og,Lo:z}):x.Jf.push({x:y.x,y:y.y,Jp:y.a,sk:y.ia,Sk:y.oa,Uk:y.og,Lo:z}))));if(b&&!qa){d=0;for(h=Q.length;d<h;d++)Q[d].uo(!0);qa=!0}else if(!b&&qa){d=0;for(h=Q.length;d<h;d++)Q[d].uo(!1);qa=!1}};sa.pd=function(){var a,b,c,d;a=0;for(b=Pa.length;a<b;a++)c=Pa[a],d=this.b.qg(c.Ki),c.jh(d),c.Ki=-1,d&&
(Fa=d.x,Ga=d.y);Pa.length=0};sa.Yr=function(a){var b,c;b=0;for(c=Q.length;b<c;b++)Q[b].As(a)};sa.Ia=function(){var a=this.b.Ae,b,c,d;b=0;for(c=Q.length;b<c;b++)d=Q[b],d.Ia(a),d.pa===K||d.pa===M||d.Td||d.Hc||!d.ug()||(d.Hc=!0,U=d.ke,G.trigger(dc.prototype.m.Ej,J)),0!==db&&d.Wo();var e,g;for(e in S)if(S.hasOwnProperty(e))for(d=S[e],b=0,c=d.length;b<c;b++)g=d[b],g.Ia&&g.Ia();N===w&&this.ub.mi()&&(this.ub.Ia(a),Fa=this.ub.X.x,Ga=this.ub.X.y,A.listener.setPosition(this.ub.X.x,this.ub.X.y,this.Pg),A.listener.setVelocity(this.ub.Um(),
this.ub.Vm(),0))};sa.ik=function(a,b){var c,d,e,g=null;c=0;for(d=qb.length;c<d;c++)if(e=qb[c],e.src===a){g=e;break}g||(g=new z(a,b),qb.push(g));return g};sa.Lm=function(a,b,c,d,e){var g,f,l;g=0;for(f=Q.length;g<f;g++)if(l=Q[g],l.src===a&&(l.Tp()||c))return l.ke=b,l;a=this.ik(a,c);if(!a.Aa)return"<preload>"!==b&&(a.Ri=b,a.Ok=d,a.Ql=e),null;l=new D(a,b);Q.push(l);return l};var Da=[];L.prototype.Ej=function(a){return $a(U,a)};E.m=new L;x.prototype.Jj=function(a,b,c,d,e){!qa&&(d=Math.pow(10,d/20),0>d&&
(d=0),1<d&&(d=1),Ea=this.Lm(this.b.Hm+b.toLowerCase()+(cb?".ogg":".m4a"),e,1===a,0!==c,d))&&(Ea.yl(!1),Ea.play(0!==c,d))};E.A=new x;E.Pb=new (B())})();function Y(d){this.b=d}
(function(){function d(){}function m(){}var c=Y.prototype;c.za=function(c){this.Ka=c;this.b=c.b};c.za.prototype.$=B();c.ma=function(c){this.type=c;this.b=c.b};c.ma.prototype.$=function(){var c=this;window.addEventListener("resize",function(){c.b.trigger(Y.prototype.m.xp,c)});"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){c.b.trigger(Y.prototype.m.up,c)}),window.addEventListener("offline",function(){c.b.trigger(Y.prototype.m.tp,c)}));"undefined"!==typeof window.applicationCache&&
(window.applicationCache.addEventListener("updateready",function(){c.b.zf=1;c.b.trigger(Y.prototype.m.$l,c)}),window.applicationCache.addEventListener("progress",function(a){c.b.zf=a.loaded/a.total}));this.b.Ub||(document.addEventListener("appMobi.device.update.available",function(){c.b.trigger(Y.prototype.m.$l,c)}),document.addEventListener("backbutton",function(){c.b.trigger(Y.prototype.m.Xl,c)}),document.addEventListener("menubutton",function(){c.b.trigger(Y.prototype.m.Zl,c)}),document.addEventListener("searchbutton",
function(){c.b.trigger(Y.prototype.m.yp,c)}),document.addEventListener("tizenhwkey",function(a){var b;switch(a.keyName){case "back":b=c.b.trigger(Y.prototype.m.Xl,c);!b&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(b=c.b.trigger(Y.prototype.m.Zl,c))||a.preventDefault()}}));this.b.hm(function(a){a?c.b.trigger(Y.prototype.m.vp,c):c.b.trigger(Y.prototype.m.wp,c)});this.Pr="undefined"!==typeof window.is_scirra_arcade};d.prototype.up=H(!0);d.prototype.tp=H(!0);
d.prototype.$l=H(!0);d.prototype.wp=H(!0);d.prototype.vp=H(!0);d.prototype.xp=H(!0);d.prototype.Xl=H(!0);d.prototype.Zl=H(!0);d.prototype.yp=H(!0);c.m=new d;m.prototype.cp=function(c){this.b.cd?CocoonJS.App.openURL(c):this.Pr||this.b.Vb||(window.location=c)};c.A=new m;c.Pb=new (B())})();function ec(d){this.b=d}
(function(){function d(){}var m=ec.prototype;m.za=function(a){this.Ka=a;this.b=a.b};m.za.prototype.$=B();m.ma=function(a){this.type=a;this.b=a.b;this.wi=Array(256);this.uj=Array(256);this.oe=0};var c=m.ma.prototype;c.$=function(){var a=this;this.b.Vb||(jQuery(document).keydown(function(b){a.Wk(b)}),jQuery(document).keyup(function(b){a.Xk(b)}))};var h=[32,33,34,35,36,37,38,39,40,44];c.Wk=function(a){var b=!1;window!=window.top&&-1<h.indexOf(a.which)&&(a.preventDefault(),b=!0,a.stopPropagation());if(this.wi[a.which])this.uj[a.which]&&
!b&&a.preventDefault();else{this.wi[a.which]=!0;this.oe=a.which;this.b.sf=!0;this.b.trigger(ec.prototype.m.gp,this);var c=this.b.trigger(ec.prototype.m.lp,this),d=this.b.trigger(ec.prototype.m.mp,this);this.b.sf=!1;if(c||d)this.uj[a.which]=!0,b||a.preventDefault()}};c.Xk=function(a){this.wi[a.which]=!1;this.oe=a.which;this.b.sf=!0;this.b.trigger(ec.prototype.m.hp,this);var b=this.b.trigger(ec.prototype.m.Fj,this),c=this.b.trigger(ec.prototype.m.np,this);this.b.sf=!1;if(b||c||this.uj[a.which])this.uj[a.which]=
!0,a.preventDefault()};c.mb=function(){return{triggerKey:this.oe}};c.wb=function(a){this.oe=a.triggerKey};d.prototype.Vl=function(a){return this.wi[a]};d.prototype.lp=function(a){return a===this.oe};d.prototype.gp=H(!0);d.prototype.hp=H(!0);d.prototype.Fj=function(a){return a===this.oe};d.prototype.mp=function(a){return a===this.oe};d.prototype.np=function(a){return a===this.oe};m.m=new d;m.A=new (B());m.Pb=new (B())})();function Z(d){this.b=d}
(function(){function d(){if(0===this.Yj.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Rf?b.drawImage(this.rb,this.Gf,this.Hf,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.rb,0,0,this.width,this.height);this.Yj=a.toDataURL("image/png")}return this.Yj}function m(){}function c(a){a[0]=0;a[1]=0;a[2]=0;r.push(a)}function h(a,b){return a<b?""+a+","+b:""+b+","+a}function a(a,b,c,d){b=b.uid;c=c.uid;var e=h(b,c);if(a.hasOwnProperty(e))a[e][2]=
d;else{var f=r.length?r.pop():[0,0,0];f[0]=b;f[1]=c;f[2]=d;a[e]=f}}function b(a,b,d){b=h(b.uid,d.uid);a.hasOwnProperty(b)&&(c(a[b]),delete a[b])}function n(a,b,c){b=h(b.uid,c.uid);if(a.hasOwnProperty(b))return u=a[b][2],!0;u=-2;return!1}function e(){}var l=Z.prototype;l.za=function(a){this.Ka=a;this.b=a.b};var s=l.za.prototype;s.$=function(){if(!this.U){var a,b,c,e,f,l,h,k,n;this.Kc=[];this.ni=!1;a=0;for(b=this.Nb.length;a<b;a++){f=this.Nb[a];h={};h.name=f[0];h.speed=f[1];h.loop=f[2];h.ml=f[3];h.bj=
f[4];h.fo=f[5];h.Y=f[6];h.frames=[];c=0;for(e=f[7].length;c<e;c++)l=f[7][c],k={},k.Jo=l[0],k.Ko=l[1],k.Gf=l[2],k.Hf=l[3],k.width=l[4],k.height=l[5],k.duration=l[6],k.Sb=l[7],k.Tb=l[8],k.uk=l[9],k.Si=l[10],k.ho=l[11],k.Rf=0!==k.width,k.Yj="",k.Yt=d,n={left:0,top:0,right:1,bottom:1},k.Cl=n,k.re=null,(n=this.b.Sq(l[0]))?k.rb=n:(k.rb=new Image,k.rb.idtkLoadDisposed=!0,k.rb.src=l[0],k.rb.Zp=l[0],k.rb.Yp=l[1],k.rb.Rp=null,this.b.qe.push(k.rb)),h.frames.push(k),this.Kc.push(k);this.Nb[a]=h}}};s.Is=function(){var a,
b,c;a=0;for(b=this.j.length;a<b;a++)c=this.j[a],c.Sh=c.wc.re};s.Zk=function(){if(!this.U){var a,b,c;a=0;for(b=this.Kc.length;a<b;++a)c=this.Kc[a],c.rb.Rp=null,c.re=null}};s.Un=function(){if(!this.U&&this.j.length){var a,b,c;a=0;for(b=this.Kc.length;a<b;++a)c=this.Kc[a],c.re=this.b.J.Dn(c.rb,this.b.la,c.ho);this.Is()}};s.Tr=function(){if(!this.U&&!this.ni&&this.b.J){var a,b,c;a=0;for(b=this.Kc.length;a<b;++a)c=this.Kc[a],c.re=this.b.J.Dn(c.rb,this.b.la,c.ho);this.ni=!0}};s.To=function(){if(!this.U&&
!this.j.length&&this.ni){var a,b,c;a=0;for(b=this.Kc.length;a<b;++a)c=this.Kc[a],this.b.J.deleteTexture(c.re);this.ni=!1}};var v=[];s.ko=function(a){var b,c,d;b=v.length=0;for(c=this.Kc.length;b<c;++b)d=this.Kc[b].rb,-1===v.indexOf(d)&&(a.drawImage(d,0,0),v.push(d))};l.ma=function(a){this.type=a;this.b=a.b;a=this.type.Nb[0].frames[0].Si;this.rc?this.Z.kh(a):this.Z=new Va(a)};var q=l.ma.prototype;q.$=function(){this.visible=0===this.D[0];this.oi=this.Dg=!1;this.Yc=0!==this.D[3];1===this.type.Nb.length&&
1===this.type.Nb[0].frames.length||0===this.type.Nb[0].speed||(this.b.rh(this),this.Dg=!0);this.Fa=this.Km(this.D[1])||this.type.Nb[0];this.H=this.D[2];0>this.H&&(this.H=0);this.H>=this.Fa.frames.length&&(this.H=this.Fa.frames.length-1);var a=this.Fa.frames[this.H];this.Z.kh(a.Si);this.Sb=a.Sb;this.Tb=a.Tb;this.jg=this.Fa.speed;this.rc?this.Wc.reset():this.Wc=new Ta;this.wd=this.Wc.Ha;this.ue=!0;this.qd=0;this.te=!0;this.Mh=this.jm="";this.tm=0;this.Lh=-1;this.type.Tr();var b,c,d,e,f,l,h,a=0;for(b=
this.type.Nb.length;a<b;a++)for(e=this.type.Nb[a],c=0,d=e.frames.length;c<d;c++)f=e.frames[c],0===f.width&&(f.width=f.rb.width,f.height=f.rb.height),f.Rf&&(h=f.rb,l=f.Cl,l.left=f.Gf/h.width,l.top=f.Hf/h.height,l.right=(f.Gf+f.width)/h.width,l.bottom=(f.Hf+f.height)/h.height,0===f.Gf&&0===f.Hf&&f.width===h.width&&f.height===h.height&&(f.Rf=!1));this.wc=this.Fa.frames[this.H];this.Sh=this.wc.re};q.mb=function(){var a={a:this.Fa.Y,f:this.H,cas:this.jg,fs:this.wd,ar:this.qd,at:this.Wc.Ha};this.ue||(a.ap=
this.ue);this.te||(a.af=this.te);return a};q.wb=function(a){var b=this.Wq(a.a);b&&(this.Fa=b);this.H=a.f;0>this.H&&(this.H=0);this.H>=this.Fa.frames.length&&(this.H=this.Fa.frames.length-1);this.jg=a.cas;this.wd=a.fs;this.qd=a.ar;this.Wc.reset();this.Wc.Ha=a.at;this.ue=a.hasOwnProperty("ap")?a.ap:!0;this.te=a.hasOwnProperty("af")?a.af:!0;this.wc=this.Fa.frames[this.H];this.Sh=this.wc.re;this.Z.kh(this.wc.Si);this.Sb=this.wc.Sb;this.Tb=this.wc.Tb};q.Oj=function(a){this.H=a?0:this.Fa.frames.length-
1;this.ue=!1;this.jm=this.Fa.name;this.oi=!0;this.b.trigger(Z.prototype.m.fp,this);this.b.trigger(Z.prototype.m.ep,this);this.oi=!1;this.qd=0};q.$t=function(){return this.Wc.Ha};q.Ia=function(){this.Wc.add(this.b.ng(this));this.Mh.length&&this.zm();0<=this.Lh&&this.Am();var a=this.Wc.Ha,b=this.Fa,c=b.frames[this.H],d=c.duration/this.jg;this.ue&&a>=this.wd+d&&(this.te?this.H++:this.H--,this.wd+=d,this.H>=b.frames.length&&(b.fo?(this.te=!1,this.H=b.frames.length-2):b.loop?this.H=b.bj:(this.qd++,this.qd>=
b.ml?this.Oj(!1):this.H=b.bj)),0>this.H&&(b.fo?(this.H=1,this.te=!0,b.loop||(this.qd++,this.qd>=b.ml&&this.Oj(!0))):b.loop?this.H=b.bj:(this.qd++,this.qd>=b.ml?this.Oj(!0):this.H=b.bj)),0>this.H?this.H=0:this.H>=b.frames.length&&(this.H=b.frames.length-1),a>this.wd+b.frames[this.H].duration/this.jg&&(this.wd=a),a=b.frames[this.H],this.cg(c,a),this.b.ra=!0)};q.Km=function(a){var b,c,d;b=0;for(c=this.type.Nb.length;b<c;b++)if(d=this.type.Nb[b],$a(d.name,a))return d;return null};q.Wq=function(a){var b,
c,d;b=0;for(c=this.type.Nb.length;b<c;b++)if(d=this.type.Nb[b],d.Y===a)return d;return null};q.zm=function(){var a=this.Fa.frames[this.H],b=this.Km(this.Mh);this.Mh="";!b||$a(b.name,this.Fa.name)&&this.ue||(this.Fa=b,this.jg=b.speed,0>this.H&&(this.H=0),this.H>=this.Fa.frames.length&&(this.H=this.Fa.frames.length-1),1===this.tm&&(this.H=0),this.ue=!0,this.wd=this.Wc.Ha,this.te=!0,this.cg(a,this.Fa.frames[this.H]),this.b.ra=!0)};q.Am=function(){var a=this.Fa.frames[this.H],b=this.H;this.H=T(this.Lh);
0>this.H&&(this.H=0);this.H>=this.Fa.frames.length&&(this.H=this.Fa.frames.length-1);b!==this.H&&(this.cg(a,this.Fa.frames[this.H]),this.wd=this.Wc.Ha,this.b.ra=!0);this.Lh=-1};q.cg=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.Sb=b.Sb;this.Tb=b.Tb;this.Z.kh(b.Si);this.F();this.wc=b;this.Sh=b.re;c=0;for(d=this.S.length;c<d;c++)e=this.S[c],e.Vn&&e.Vn(a,b);this.b.trigger(Z.prototype.m.cg,this)};q.vd=function(a){a.globalAlpha=this.opacity;
var b=this.wc,c=b.Rf,d=b.rb,e=this.x,f=this.y,l=this.width,h=this.height;if(0===this.n&&0<=l&&0<=h)e-=this.Sb*l,f-=this.Tb*h,this.b.be&&(e=e+0.5|0,f=f+0.5|0),c?a.drawImage(d,b.Gf,b.Hf,b.width,b.height,e,f,l,h):a.drawImage(d,e,f,l,h);else{this.b.be&&(e=e+0.5|0,f=f+0.5|0);a.save();var k=0<l?1:-1,n=0<h?1:-1;a.translate(e,f);1===k&&1===n||a.scale(k,n);a.rotate(this.n*k*n);e=0-this.Sb*ga(l);f=0-this.Tb*ga(h);c?a.drawImage(d,b.Gf,b.Hf,b.width,b.height,e,f,ga(l),ga(h)):a.drawImage(d,e,f,ga(l),ga(h));a.restore()}};
q.Mc=function(a){a.sc(this.Sh);a.Mf(this.opacity);var b=this.wc,c=this.sb;if(this.b.be){var d=(this.x+0.5|0)-this.x,e=(this.y+0.5|0)-this.y;b.Rf?a.de(c.Sa+d,c.Ta+e,c.Kb+d,c.Lb+e,c.Db+d,c.Eb+e,c.Bb+d,c.Cb+e,b.Cl):a.Zi(c.Sa+d,c.Ta+e,c.Kb+d,c.Lb+e,c.Db+d,c.Eb+e,c.Bb+d,c.Cb+e)}else b.Rf?a.de(c.Sa,c.Ta,c.Kb,c.Lb,c.Db,c.Eb,c.Bb,c.Cb,b.Cl):a.Zi(c.Sa,c.Ta,c.Kb,c.Lb,c.Db,c.Eb,c.Bb,c.Cb)};q.br=function(a){var b=this.wc,c,d;c=0;for(d=b.uk.length;c<d;c++)if($a(a,b.uk[c][0]))return c;return-1};q.pg=function(a,
b){var c=this.wc,d=c.uk,e;e=O(a)?this.br(a):a-1;e=T(e);if(0>e||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.Sb)*this.width,d=d[e][2],d=(d-c.Tb)*this.height,c=Math.cos(this.n);e=Math.sin(this.n);var l=f*c-d*e,d=d*c+f*e,f=l+this.x,d=d+this.y;return b?f:d};var r=[],u=-2,t=[];m.prototype.bg=function(d){if(!d)return!1;var e=this.b,f=e.lk(),l=f.type;f.O.Tj||(f.O.Tj={},e.Mj(function(a){return function(b){b=b.uid;var d,e;for(d in a)a.hasOwnProperty(d)&&(e=a[d],e[0]===b||e[1]===b)&&(c(a[d]),delete a[d])}}(f.O.Tj)));
var f=f.O.Tj,h=l.ja(),k=d.ja(),h=h.Ac(),m,q,s,r,v,C,K,w=this.b.md,R=w-1,M=e.kb().Hb;for(q=0;q<h.length;q++){s=h[q];k.ta?(s.Da(),this.b.Mm(s.k,d,s.Ea,t),m=t):m=k.Ac();for(r=0;r<m.length;r++)v=m[r],e.ec(s,v)||e.Wp(s,v)?(C=n(f,s,v),C=!C||u<R,a(f,s,v,w),C&&(e.Xi(M.wa),C=l.ja(),K=d.ja(),C.ta=!1,K.ta=!1,l===d?(C.j.length=2,C.j[0]=s,C.j[1]=v,l.Xc()):(C.j.length=1,K.j.length=1,C.j[0]=s,K.j[0]=v,l.Xc(),d.Xc()),M.os(),e.Ue(M.wa))):b(f,s,v);t.length=0}return!1};var k=new ba,f=!1;s.finish=function(a){if(f){if(a){var b=
this.b.kb().Hb.Qc;a=null.ja();var c=k.Wf(),d,e;if(a.ta){a.ta=!1;a.j.length=c.length;d=0;for(e=c.length;d<e;d++)a.j[d]=c[d];if(b)for(d=a.ka.length=0,e=null.j.length;d<e;d++)c=null.j[d],k.contains(c)||a.ka.push(c)}else if(b)for(b=a.j.length,a.j.length=b+c.length,d=0,e=c.length;d<e;d++)a.j[b+d]=c[d],wa(a.ka,c[d]);else ua(a.j,c);null.Xc()}k.clear();f=!1}};m.prototype.ep=function(a){return $a(this.jm,a)};m.prototype.fp=H(!0);m.prototype.cg=H(!0);l.m=new m;e.prototype.xh=function(a,b,c){if(a&&b&&(b=this.b.vm(a,
b,this.pg(c,!0),this.pg(c,!1)))){"undefined"!==typeof b.n&&(b.n=this.n,b.F());this.b.Nc++;var d,e,f;this.b.trigger(Object.getPrototypeOf(a.Ka).m.Dj,b);if(b.pc)for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],this.b.trigger(Object.getPrototypeOf(f.type.Ka).m.Dj,f);this.b.Nc--;d=this.b.Yq();c=!1;if(ca(d.O.fm)||d.O.fm<this.b.De)c=!0,d.O.fm=this.b.De;if(a!=this.type&&(a=a.ja(),a.ta=!1,c?(a.j.length=1,a.j[0]=b):a.j.push(b),b.pc))for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],a=f.type.ja(),a.ta=
!1,c?(a.j.length=1,a.j[0]=f):a.j.push(f)}};e.prototype.dg=function(a,b){this.Mh=a;this.tm=b;this.Dg||(this.b.rh(this),this.Dg=!0);this.oi||this.zm()};e.prototype.cm=function(a){this.Lh=a;this.Dg||(this.b.rh(this),this.Dg=!0);this.oi||this.Am()};l.A=new e;l.Pb=new (B())})();function fc(d){this.b=d}
(function(){function d(){return n.length?n.pop():{}}function m(a){var b,c;b=0;for(c=a.length;b<c;b++)n.push(a[b]);a.length=0}function c(){}var h=fc.prototype;h.$=function(){h.A.Cp=function(a){this.width!==a&&(this.width=a,this.Ye=!0,this.F())}};h.za=function(a){this.Ka=a;this.b=a.b};var a=h.za.prototype;a.$=B();a.Zk=function(){if(!this.U){var a,b,c;a=0;for(b=this.j.length;a<b;a++)c=this.j[a],c.ed=null,c.Se=null,c.$b=null}};h.ma=function(a){this.type=a;this.b=a.b;this.rc?this.Zd.length=0:this.Zd=[];
this.Ye=!0};a=h.ma.prototype;a.$=function(){this.text=this.D[0];this.visible=0===this.D[1];this.font=this.D[2];this.color=this.D[3];this.li=this.D[4];this.vj=this.D[5];this.Tl=0===this.D[7];this.Fk=this.Ci=this.width;this.Bi=this.height;this.Hk=this.D[8];this.fi=this.kf="";this.Ho=this.Io=this.eh=0;this.Zr();this.$b=this.Se=this.ed=null;this.Mn=!1;this.Og=this.b.md;this.rc?this.Kf.set(0,0,1,1):this.Kf=new na(0,0,1,1);this.b.J&&this.b.rh(this)};a.Zr=function(){var a=this.font.split(" "),b;for(b=0;b<
a.length;b++)if("pt"===a[b].substr(a[b].length-2,2)){this.eh=parseInt(a[b].substr(0,a[b].length-2));this.hl=Math.ceil(96*(this.eh/72))+4;0<b&&(this.fi=a[b-1]);this.kf=a[b+1];for(b+=2;b<a.length;b++)this.kf+=" "+a[b];break}};a.mb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.li,va:this.vj,wr:this.Tl,lho:this.Hk,fn:this.kf,fs:this.fi,ps:this.eh,pxh:this.hl,tw:this.Io,th:this.Ho,lrt:this.Og}};a.wb=function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.li=a.ha;this.vj=a.va;this.Tl=
a.wr;this.Hk=a.lho;this.kf=a.fn;this.fi=a.fs;this.eh=a.ps;this.hl=a.pxh;this.Io=a.tw;this.Ho=a.th;this.Og=a.lrt;this.Ye=!0;this.Fk=this.Ci=this.width;this.Bi=this.height};a.Ia=function(){if(this.b.J&&this.$b&&300<=this.b.md-this.Og){var a=this.k;this.Da();var b=this.Ea;if(b.right<a.gc||b.bottom<a.ic||b.left>a.hc||b.top>a.fc)this.b.J.deleteTexture(this.$b),this.ed=this.Se=this.$b=null}};a.If=function(){this.ed=this.Se=null;this.b.J&&this.$b&&this.b.J.deleteTexture(this.$b);this.$b=null};a.ku=function(){this.font=
this.fi+" "+this.eh.toString()+"pt "+this.kf;this.Ye=!0;this.b.ra=!0};a.vd=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.k.Qb(),a.save(),a.scale(c,c));if(this.Ye||this.width!==this.Fk)this.type.Ka.Gp(this.text,this.Zd,a,this.width,this.Tl),this.Ye=!1,this.Fk=this.width;this.Da();var c=b?0:this.sb.Sa,d=b?0:this.sb.Ta;this.b.be&&(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 h=
d+this.height,n=this.hl,n=n+this.Hk,m,t;1===this.vj?d+=Math.max(this.height/2-this.Zd.length*n/2,0):2===this.vj&&(d+=Math.max(this.height-this.Zd.length*n-2,0));for(t=0;t<this.Zd.length&&!(m=c,1===this.li?m=c+(this.width-this.Zd[t].width)/2:2===this.li&&(m=c+(this.width-this.Zd[t].width)),a.fillText(this.Zd[t].text,m,d),d+=n,d>=h-n);t++);(0!==this.n||b)&&a.restore();this.Og=this.b.md};a.Mc=function(a){if(!(1>this.width||1>this.height)){var b=this.Ye||this.Mn;this.Mn=!1;var c=this.k.Qb(),d=this.k.Ib(),
h=this.Kf,n=c*this.width,m=c*this.height,t=Math.ceil(n),k=Math.ceil(m),f=this.b.W/2,p=this.b.V/2;this.Se||(this.ed=document.createElement("canvas"),this.ed.width=t,this.ed.height=k,this.Ci=t,this.Bi=k,b=!0,this.Se=this.ed.getContext("2d"));if(t!==this.Ci||k!==this.Bi)this.ed.width=t,this.ed.height=k,this.$b&&(a.deleteTexture(this.$b),this.$b=null),b=!0;b&&(this.Se.clearRect(0,0,t,k),this.vd(this.Se,!0),this.$b||(this.$b=a.sd(t,k,this.b.la,this.b.Vd)),a.Os(this.ed,this.$b,this.b.Vd));this.Ci=t;this.Bi=
k;a.sc(this.$b);a.Mf(this.opacity);a.gd();a.translate(-f,-p);a.nd();var g=this.sb,z=this.b.devicePixelRatio;this.b.devicePixelRatio=1;var b=this.k.Ca(g.Sa,g.Ta,!0,!0),f=this.k.Ca(g.Sa,g.Ta,!1,!0),p=this.k.Ca(g.Kb,g.Lb,!0,!0),D=this.k.Ca(g.Kb,g.Lb,!1,!0),P=this.k.Ca(g.Db,g.Eb,!0,!0),L=this.k.Ca(g.Db,g.Eb,!1,!0),x=this.k.Ca(g.Bb,g.Cb,!0,!0),g=this.k.Ca(g.Bb,g.Cb,!1,!0);this.b.devicePixelRatio=z;if(this.b.be||0===this.n&&0===d)var z=(b+0.5|0)-b,E=(f+0.5|0)-f,b=b+z,f=f+E,p=p+z,D=D+E,P=P+z,L=L+E,x=x+z,
g=g+E;0===this.n&&0===d?(p=b+t,D=f,P=p,L=f+k,x=b,g=L,h.right=1,h.bottom=1):(h.right=n/t,h.bottom=m/k);a.de(b,f,p,D,P,L,x,g,h);a.gd();a.scale(c,c);a.ol(-this.k.Ib());a.translate((this.k.gc+this.k.hc)/-2,(this.k.ic+this.k.fc)/-2);a.nd();this.Og=this.b.md}};var b=[];h.Fp=function(a){b.length=0;for(var c="",d,h=0;h<a.length;)if(d=a.charAt(h),"\n"===d)c.length&&(b.push(c),c=""),b.push("\n"),++h;else if(" "===d||"\t"===d||"-"===d){do c+=a.charAt(h),h++;while(h<a.length&&(" "===a.charAt(h)||"\t"===a.charAt(h)));
b.push(c);c=""}else h<a.length&&(c+=d,h++);c.length&&b.push(c)};var n=[];h.Gp=function(a,b,c,h,n){if(a&&a.length)if(2>=h)m(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var r=c.measureText(a).width;if(r<=h){m(b);b.push(d());b[0].text=a;b[0].width=r;return}}this.Hp(a,b,c,h,n)}else m(b)};h.Hp=function(a,c,h,m,q){q&&(this.Fp(a),a=b);var r="",u,t,k,f=0;for(k=0;k<a.length;k++)"\n"===a[k]?(f>=c.length&&c.push(d()),t=c[f],t.text=r,t.width=h.measureText(r).width,f++,r=""):(u=r,r+=a[k],t=h.measureText(r).width,
t>=m&&(f>=c.length&&c.push(d()),t=c[f],t.text=u,t.width=h.measureText(u).width,f++,r=a[k],q||" "!==r||(r="")));r.length&&(f>=c.length&&c.push(d()),t=c[f],t.text=r,t.width=h.measureText(r).width,f++);for(k=f;k<c.length;k++)n.push(c[k]);c.length=f};h.m=new (B());c.prototype.wh=function(a){da(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Ye=!0,this.b.ra=!0)};h.A=new c;h.Pb=new (B())})();function gc(d){this.b=d}
(function(){function d(){}var m=gc.prototype;m.za=function(c){this.K=c;this.b=c.b};m.za.prototype.$=B();m.ma=function(c,a){this.type=c;this.K=c.K;this.d=a;this.b=c.b};var c=m.ma.prototype;c.$=function(){var c=this.D[0];this.Jc=this.D[1];this.tb=this.D[2];this.Pp=0!==this.D[3];this.wl=0!==this.D[4];this.B=Math.cos(this.d.n)*c;this.G=Math.sin(this.d.n)*c;this.Di=this.d.x;this.Ei=this.d.y;this.xf=this.d.n;this.rj=0;this.enabled=0!==this.D[5]};c.mb=function(){return{acc:this.Jc,g:this.tb,dx:this.B,dy:this.G,
lx:this.Di,ly:this.Ei,lka:this.xf,t:this.rj,e:this.enabled}};c.wb=function(c){this.Jc=c.acc;this.tb=c.g;this.B=c.dx;this.G=c.dy;this.Di=c.lx;this.Ei=c.ly;this.xf=c.lka;this.rj=c.t;this.enabled=c.e};c.Ia=function(){if(this.enabled){var c=this.b.ng(this.d),a,b;this.d.n!==this.xf&&(this.wl&&(a=La(0,0,this.B,this.G),this.B=Math.cos(this.d.n)*a,this.G=Math.sin(this.d.n)*a),this.xf=this.d.n);0!==this.Jc&&(a=La(0,0,this.B,this.G),b=0===this.B&&0===this.G?this.d.n:Ca(0,0,this.B,this.G),a+=this.Jc*c,0>a&&
(a=0),this.B=Math.cos(b)*a,this.G=Math.sin(b)*a);0!==this.tb&&(this.G+=this.tb*c);this.Di=this.d.x;this.Ei=this.d.y;if(0!==this.B||0!==this.G)if(this.d.x+=this.B*c,this.d.y+=this.G*c,this.rj+=La(0,0,this.B*c,this.G*c),this.wl&&(this.d.n=Ca(0,0,this.B,this.G),this.d.F(),this.xf=this.d.n),this.d.F(),this.Pp&&(a=this.b.ib(this.d)))this.b.Lf(this.d,a),a=La(0,0,this.B,this.G),b=this.b.Sp(this.d,this.Di,this.Ei),this.B=Math.cos(b)*a,this.G=Math.sin(b)*a,this.d.x+=this.B*c,this.d.y+=this.G*c,this.d.F(),
this.wl&&(this.xf=this.d.n=b,this.d.F()),this.b.Ec(this.d,this.B/a,this.G/a,Math.max(2.5*a*c,30))||this.b.oo(this.d,100)}};m.m=new (B());d.prototype.Kj=function(c){this.tb=c};m.A=new d;m.Pb=new (B())})();function hc(d){this.b=d}
(function(){var d=hc.prototype;d.za=function(a){this.K=a;this.b=a.b};var m=d.za.prototype;m.$=function(){this.Zg=[]};m.Xt=function(a){var b,c,d;b=0;for(c=a.S.length;b<c;++b)if(d=a.S[b],d instanceof hc.prototype.ma&&d.type===this)return d;return null};d.ma=function(a,b){this.type=a;this.K=a.K;this.d=b;this.b=a.b};m=d.ma.prototype;m.$=function(){this.Vr=this.D[0];this.jl=this.D[1];this.Uj=V(this.D[2])};m.If=B();m.mb=function(){var a={r:this.jl,c:this.Uj,t:[]},b,c;b=0;for(c=this.type.Zg.length;b<c;b++)a.t.push(this.type.Zg[b].Y);
return a};m.wb=function(a){this.jl=a.r;this.Uj=a.c;this.type.Zg.length=0;var b,c,d;b=0;for(c=a.t.length;b<c;b++)(d=this.b.rg(a.t[b]))&&this.type.Zg.push(d)};m.Ia=B();var c=[],h=new na(0,0,0,0);m.au=function(a,b){var d=this.d.x,e=this.d.y,l=this.d.n;0>this.d.width&&(l+=Math.PI);if(La(d,e,a,b)>this.jl||Ha(l,Ca(d,e,a,b))>this.Uj/2)return!1;var m,v;h.set(d,e,a,b);h.normalize();if(0===this.Vr)for(this.b.Sm(this.d.k,h,c),l=0,m=c.length;l<m;++l){if(v=c[l],v.O.Co&&v!==this.d&&this.b.Fo(d,e,a,b,v))return c.length=
0,!1}else for(this.b.qk(this.d.k,this.type.Zg,h,c),l=0,m=c.length;l<m;++l)if(v=c[l],v!==this.d&&this.b.Fo(d,e,a,b,v))return c.length=0,!1;c.length=0;return!0};new ba;new ba;d.m=new (B());d.A=new (B());d.Pb=new (B())})();function mc(d){this.b=d}
(function(){function d(){}function m(){}var c=mc.prototype;c.za=function(a){this.K=a;this.b=a.b};c.za.prototype.$=B();c.ma=function(a,b){this.type=a;this.K=a.K;this.d=b;this.b=a.b;this.nh=this.jj=this.ij=this.tk=this.wf=this.Ig=this.cj=this.Hi=!1;this.Xb=null;this.Ik=-1;this.Me=this.Le=0;this.ei=!1;this.lf=this.Lc=0;this.di=!0;this.G=this.B=0};var h=c.ma.prototype;h.Ml=function(){this.Va=Math.cos(this.of);this.Wa=Math.sin(this.of);this.We=Math.cos(this.of-Math.PI/2);this.Xe=Math.sin(this.of-Math.PI/
2);this.Va=Za(this.Va);this.Wa=Za(this.Wa);this.We=Za(this.We);this.Xe=Za(this.Xe);this.hi=this.tb;0>this.tb&&(this.Va*=-1,this.Wa*=-1,this.tb=Math.abs(this.tb))};h.$=function(){this.Df=this.D[0];this.Jc=this.D[1];this.hf=this.D[2];this.Dk=this.D[3];this.hi=this.tb=this.D[4];this.Mi=this.D[5];this.cq=1===this.D[6];this.enabled=0!==this.D[7];this.Yf=!1;this.xj=this.b.le(this.d);this.of=V(90);this.Ml();var a=this;this.cq&&!this.b.Vb&&(jQuery(document).keydown(function(b){a.Wk(b)}),jQuery(document).keyup(function(b){a.Xk(b)}));
this.rc||(this.Ln=function(b){a.Vk(b)});this.b.Mj(this.Ln)};h.mb=function(){return{ii:this.tk,lfx:this.Le,lfy:this.Me,lfo:this.Xb?this.Xb.uid:-1,am:this.Lc,en:this.enabled,fall:this.lf,ft:this.di,dx:this.B,dy:this.G,ms:this.Df,acc:this.Jc,dec:this.hf,js:this.Dk,g:this.tb,g1:this.hi,mf:this.Mi,wof:this.Yf,woj:this.xj,ga:this.of}};h.wb=function(a){this.tk=a.ii;this.Le=a.lfx;this.Me=a.lfy;this.Ik=a.lfo;this.Lc=a.am;this.enabled=a.en;this.lf=a.fall;this.di=a.ft;this.B=a.dx;this.G=a.dy;this.Df=a.ms;this.Jc=
a.acc;this.hf=a.dec;this.Dk=a.js;this.tb=a.g;this.hi=a.g1;this.Mi=a.mf;this.Yf=a.wof;this.xj=a.woj;this.of=a.ga;this.nh=this.jj=this.ij=this.wf=this.Ig=this.cj=this.Hi=!1;this.Ml()};h.pd=function(){this.Xb=-1===this.Ik?null:this.b.qg(this.Ik)};h.Vk=function(a){this.Xb==a&&(this.Xb=null)};h.If=function(){this.Xb=null;this.b.ls(this.Ln)};h.Wk=function(a){switch(a.which){case 38:a.preventDefault();this.Ig=!0;break;case 37:a.preventDefault();this.Hi=!0;break;case 39:a.preventDefault(),this.cj=!0}};h.Xk=
function(a){switch(a.which){case 38:a.preventDefault();this.wf=this.Ig=!1;break;case 37:a.preventDefault();this.Hi=!1;break;case 39:a.preventDefault(),this.cj=!1}};h.Zt=function(){return 0>this.tb?-1:1};h.mn=function(){var a=null,b=null,c,d;c=this.d.x;d=this.d.y;this.d.x+=this.Va;this.d.y+=this.Wa;this.d.F();if(this.Xb&&this.b.ec(this.d,this.Xb))return this.d.x=c,this.d.y=d,this.d.F(),this.Xb;(a=this.b.ib(this.d))||0!==this.lf||(b=this.b.le(this.d,!0));this.d.x=c;this.d.y=d;this.d.F();if(a){if(this.b.ec(this.d,
a))return null;this.ei=!1;return a}if(b&&b.length){d=a=0;for(c=b.length;a<c;a++)b[d]=b[a],this.b.ec(this.d,b[a])||d++;if(1<=d)return this.ei=!0,b[0]}return null};h.Ia=B();h.jo=function(){var a=this.b.ng(this.d),b,c,d,h,m,v,q,r,u;this.Ig||this.nh||(this.wf=!1);var t=this.Hi||this.ij;d=this.cj||this.jj;var k=(this.Ig||this.nh)&&!this.wf;this.nh=this.jj=this.ij=!1;if(this.enabled){this.tk&&(k=d=t=!1);r=this.Xb;u=!1;this.di&&((this.b.ib(this.d)||this.b.le(this.d))&&this.b.Ec(this.d,-this.Va,-this.Wa,
4,!0),this.di=!1);!r||0!==this.G||r.y===this.Me&&r.x===this.Le||(b=r.x-this.Le,c=r.y-this.Me,this.d.x+=b,this.d.y+=c,this.d.F(),this.Le=r.x,this.Me=r.y,u=!0,this.b.ib(this.d)&&this.b.Ec(this.d,-b,-c,2.5*Math.sqrt(b*b+c*c)));var f=this.mn();if(c=this.b.ib(this.d))if(this.b.oo(this.d,Math.max(this.d.width,this.d.height)/2))this.b.Lf(this.d,c);else return;f?(0<this.G&&(this.Yf||(this.b.gl(this.d,-this.Va,-this.Wa,f),this.Yf=!0),this.G=0),r!=f?(this.Xb=f,this.Le=f.x,this.Me=f.y,this.b.Lf(this.d,f)):u&&
(c=this.b.ib(this.d))&&(this.b.Lf(this.d,c),0!==b&&(0<b?this.b.Ec(this.d,-this.We,-this.Xe):this.b.Ec(this.d,this.We,this.Xe)),this.b.Ec(this.d,-this.Va,-this.Wa)),k&&(r=this.d.x,u=this.d.y,this.d.x-=this.Va,this.d.y-=this.Wa,this.d.F(),this.b.ib(this.d)?k=!1:(this.b.trigger(mc.prototype.m.kp,this.d),this.Lc=2,this.G=-this.Dk,this.wf=!0),this.d.x=r,this.d.y=u,this.d.F())):(this.Xb=null,this.G+=this.tb*a,this.G>this.Mi&&(this.G=this.Mi),k&&(this.wf=!0));this.Yf=!!f;t==d&&(0>this.B?(this.B+=this.hf*
a,0<this.B&&(this.B=0)):0<this.B&&(this.B-=this.hf*a,0>this.B&&(this.B=0)));t&&!d&&(this.B=0<this.B?this.B-(this.Jc+this.hf)*a:this.B-this.Jc*a);d&&!t&&(this.B=0>this.B?this.B+(this.Jc+this.hf)*a:this.B+this.Jc*a);this.B>this.Df?this.B=this.Df:this.B<-this.Df&&(this.B=-this.Df);t=!1;0!==this.B&&(r=this.d.x,u=this.d.y,b=this.B*a*this.We,c=this.B*a*this.Xe,this.d.x+=this.We*(1<this.B?1:-1)-this.Va,this.d.y+=this.Xe*(1<this.B?1:-1)-this.Wa,this.d.F(),h=!1,m=this.b.ib(this.d),this.d.x=r+b,this.d.y=u+
c,this.d.F(),d=this.b.ib(this.d),!d&&f&&(d=this.b.le(this.d))&&(this.d.x=r,this.d.y=u,this.d.F(),this.b.ec(this.d,d)?(d=null,h=!1):h=!0,this.d.x=r+b,this.d.y=u+c,this.d.F()),d?(b=Math.abs(this.B*a)+2,m||!this.b.Ec(this.d,-this.Va,-this.Wa,b,h,d))?(this.b.Lf(this.d,d),b=Math.max(Math.abs(2.5*this.B*a),30),this.b.Ec(this.d,this.We*(0>this.B?1:-1),this.Xe*(0>this.B?1:-1),b,!1)?!f||h||this.ei||(r=this.d.x,u=this.d.y,this.d.x+=this.Va,this.d.y+=this.Wa,this.b.ib(this.d)?this.b.Ec(this.d,-this.Va,-this.Wa,
3,!1)||(this.d.x=r,this.d.y=u,this.d.F()):(this.d.x=r,this.d.y=u,this.d.F())):(this.d.x=r,this.d.y=u,this.d.F()),h||(this.B=0)):!m&&15>Math.abs(this.G)&&(this.G=0,f||(t=!0)):(r=this.mn(),f&&!r?(c=Math.ceil(Math.abs(this.B*a))+2,r=this.d.x,u=this.d.y,this.d.x+=this.Va*c,this.d.y+=this.Wa*c,this.d.F(),this.b.ib(this.d)||this.b.le(this.d)?this.b.Ec(this.d,-this.Va,-this.Wa,c+2,!0):(this.d.x=r,this.d.y=u,this.d.F())):r&&0===this.G&&this.b.gl(this.d,-this.Va,-this.Wa,r)));if(0!==this.G){r=this.d.x;u=this.d.y;
this.d.x+=this.G*a*this.Va;this.d.y+=this.G*a*this.Wa;b=this.d.x;d=this.d.y;this.d.F();c=this.b.ib(this.d);h=!1;if(!c&&0<this.G&&!f){if((h=0<this.lf?null:this.b.le(this.d,!0))&&h.length){if(this.xj){this.d.x=r;this.d.y=u;this.d.F();q=m=0;for(v=h.length;m<v;m++)h[q]=h[m],this.b.ec(this.d,h[m])||q++;h.length=q;this.d.x=b;this.d.y=d;this.d.F()}1<=h.length&&(c=h[0])}h=!!c}c&&(this.b.Lf(this.d,c),b=h?Math.abs(2.5*this.G*a+10):Math.max(Math.abs(2.5*this.G*a+10),30),this.b.Ec(this.d,this.Va*(0>this.G?1:
-1),this.Wa*(0>this.G?1:-1),b,h,c)?(this.Xb=c,this.Le=c.x,this.Me=c.y,(this.ei=h)&&(t=!0),this.G=0):(this.d.x=r,this.d.y=u,this.d.F(),this.Yf=!0,h||(this.G=0)))}3!==this.Lc&&0<this.G&&!f&&(this.b.trigger(mc.prototype.m.jp,this.d),this.Lc=3);if(f||t)3===this.Lc||t||k&&0===this.G?(this.b.trigger(mc.prototype.m.op,this.d),this.Lc=0===this.B&&0===this.G?0:1):(0!==this.Lc&&0===this.B&&0===this.G&&(this.b.trigger(mc.prototype.m.zp,this.d),this.Lc=0),1===this.Lc||0===this.B&&0===this.G||k||(this.b.trigger(mc.prototype.m.sp,
this.d),this.Lc=1));0<this.lf&&this.lf--;this.xj=this.b.le(this.d)}};d.prototype.Wl=function(){return 0!==this.B||0!==this.G};d.prototype.kp=H(!0);d.prototype.jp=H(!0);d.prototype.zp=H(!0);d.prototype.sp=H(!0);d.prototype.op=H(!0);c.m=new d;m.prototype.Kj=function(a){this.hi!==a&&(this.tb=a,this.Ml(),this.b.ib(this.d)&&(this.b.Ec(this.d,this.Va,this.Wa,10),this.d.x+=2*this.Va,this.d.y+=2*this.Wa,this.d.F()),this.Xb=null)};m.prototype.em=function(a){switch(a){case 0:this.ij=!0;break;case 1:this.jj=
!0;break;case 2:this.nh=!0}};c.A=new m;c.Pb=new (B())})();function nc(d){this.b=d}
(function(){var d=nc.prototype;d.za=function(a){this.K=a;this.b=a.b};d.za.prototype.$=B();d.ma=function(a,c){this.type=a;this.K=a.K;this.d=c;this.b=a.b;this.Xa=0};var m=d.ma.prototype,c=2*Math.PI,h=Math.PI/2,a=3*Math.PI/2;m.$=function(){this.kc=1===this.D[0];this.Ug=this.D[1];this.Rl=this.D[2];this.Ed=this.D[3];this.Ed+=Math.random()*this.D[4];0===this.Ed?this.Xa=0:(this.Xa=this.D[5]/this.Ed*c,this.Xa+=Math.random()*this.D[6]/this.Ed*c);this.Jb=this.D[7];this.Jb+=Math.random()*this.D[8];this.gh=this.He=
this.aa=0;this.init()};m.mb=function(){return{i:this.Xa,a:this.kc,mv:this.Ug,w:this.Rl,p:this.Ed,mag:this.Jb,iv:this.aa,iv2:this.He,r:this.gh,lkv:this.Yb,lkv2:this.Jg}};m.wb=function(a){this.Xa=a.i;this.kc=a.a;this.Ug=a.mv;this.Rl=a.w;this.Ed=a.p;this.Jb=a.mag;this.aa=a.iv;this.He=a.iv2||0;this.gh=a.r;this.Yb=a.lkv;this.Jg=a.lkv2||0};m.init=function(){switch(this.Ug){case 0:this.aa=this.d.x;break;case 1:this.aa=this.d.y;break;case 2:this.aa=this.d.width;this.gh=this.d.height/this.d.width;break;case 3:this.aa=
this.d.width;break;case 4:this.aa=this.d.height;break;case 5:this.aa=this.d.n;this.Jb=V(this.Jb);break;case 6:this.aa=this.d.opacity;break;case 7:this.aa=0;break;case 8:this.aa=this.d.x,this.He=this.d.y}this.Yb=this.aa;this.Jg=this.He};m.Jd=function(b){b%=c;switch(this.Rl){case 0:return Math.sin(b);case 1:return b<=h?b/h:b<=a?1-2*(b-h)/Math.PI:(b-a)/h-1;case 2:return 2*b/c-1;case 3:return-2*b/c+1;case 4:return b<Math.PI?-1:1}return 0};m.Ia=function(){var a=this.b.ng(this.d);if(this.kc&&0!==a){0===
this.Ed?this.Xa=0:(this.Xa+=a/this.Ed*c,this.Xa%=c);switch(this.Ug){case 0:this.d.x!==this.Yb&&(this.aa+=this.d.x-this.Yb);this.d.x=this.aa+this.Jd(this.Xa)*this.Jb;this.Yb=this.d.x;break;case 1:this.d.y!==this.Yb&&(this.aa+=this.d.y-this.Yb);this.d.y=this.aa+this.Jd(this.Xa)*this.Jb;this.Yb=this.d.y;break;case 2:this.d.width=this.aa+this.Jd(this.Xa)*this.Jb;this.d.height=this.d.width*this.gh;break;case 3:this.d.width=this.aa+this.Jd(this.Xa)*this.Jb;break;case 4:this.d.height=this.aa+this.Jd(this.Xa)*
this.Jb;break;case 5:this.d.n!==this.Yb&&(this.aa=W(this.aa+(this.d.n-this.Yb)));this.d.n=W(this.aa+this.Jd(this.Xa)*this.Jb);this.Yb=this.d.n;break;case 6:this.d.opacity=this.aa+this.Jd(this.Xa)*this.Jb/100;0>this.d.opacity?this.d.opacity=0:1<this.d.opacity&&(this.d.opacity=1);break;case 8:this.d.x!==this.Yb&&(this.aa+=this.d.x-this.Yb),this.d.y!==this.Jg&&(this.He+=this.d.y-this.Jg),this.d.x=this.aa+Math.cos(this.d.n)*this.Jd(this.Xa)*this.Jb,this.d.y=this.He+Math.sin(this.d.n)*this.Jd(this.Xa)*
this.Jb,this.Yb=this.d.x,this.Jg=this.d.y}this.d.F()}};m.Vn=function(a,c){switch(this.Ug){case 2:this.aa*=c.width/a.width;this.gh=c.height/c.width;break;case 3:this.aa*=c.width/a.width;break;case 4:this.aa*=c.height/a.height}};d.m=new (B());d.A=new (B());d.Pb=new (B())})();function oc(d){this.b=d}
(function(){var d=oc.prototype;d.za=function(d){this.K=d;this.b=d.b};d.za.prototype.$=B();d.ma=function(d,c){this.type=d;this.K=d.K;this.d=c;this.b=d.b};d=d.ma.prototype;d.$=B();d.Ia=function(){this.d.Da();var d=this.d.Ea,c=this.d.k.na;(0>d.right||0>d.bottom||d.left>c.width||d.top>c.height)&&this.b.Kd(this.d)}})();function pc(d){this.b=d;this.Bl=this.hj=this.mh=this.Al=0}
(function(){var d=pc.prototype;d.za=function(c){this.K=c;this.b=c.b};d.za.prototype.$=B();d.ma=function(c,d){this.type=c;this.K=c.K;this.d=d;this.b=c.b};var m=d.ma.prototype;m.$=function(){this.enabled=0!==this.D[0]};m.mb=function(){return{smg:this.K.Al,ss:this.K.mh,se:this.K.hj,smd:this.K.Bl}};m.wb=function(c){this.K.Al=c.smg;this.K.mh=c.ss;this.K.hj=c.se;this.K.Bl=c.smd};m.Ia=B();m.Hl=function(){if(this.enabled){var c=this.K.Ni.Ms(),d=0,a=0,b,m;b=0;for(m=c.length;b<m;b++)d+=c[b].x,a+=c[b].y;b=this.d.k.na;
var e=this.b.Wb.Ha,l=m=0;e>=this.K.mh&&e<this.K.hj&&(m=this.K.Al*Math.min(this.b.me,1),0===this.K.Bl&&(m*=1-(e-this.K.mh)/(this.K.hj-this.K.mh)),e=2*Math.random()*Math.PI,l=Math.random()*m,m=Math.cos(e)*l,l*=Math.sin(e));b.tl(d/c.length+m);b.ul(a/c.length+l)}};d.A=new (B())})();function cc(d){this.b=d}
(function(){var d=cc.prototype;d.za=function(c){this.K=c;this.b=c.b};d.za.prototype.$=B();d.ma=function(c,d){this.type=c;this.K=c.K;this.d=d;this.b=c.b};var m=d.ma.prototype;m.$=function(){this.d.O.Co=0!==this.D[0]};m.Ia=B();d.m=new (B());d.A=new (B())})();
function bc(){return[null,null,[[dc,!0,!1,!1,!1,!1,!1,!1,!1,!1],[Y,!0,!1,!1,!1,!1,!1,!1,!1,!1],[ec,!0,!1,!1,!1,!1,!1,!1,!1,!1],[Z,!1,!0,!0,!0,!0,!0,!0,!0,!1],[fc,!1,!0,!0,!0,!0,!0,!0,!0,!1]],[["t0",Z,!1,[],0,0,null,[["Default",0,!1,1,0,!1,8755414730630316,[["images/background-sheet0.png",3164023,1,1,1322,822,1,0.5007564425468445,0.5012165307998657,[],[],0],["images/background-sheet0.png",3164023,1,824,1322,822,1,0.5,0.5012165307998657,[],[],0]]]],[],!1,!1,0x3e5d9b9834a7d,[],null],["t1",Z,!1,[],1,
0,null,[["Default",5,!1,1,0,!1,9309586723634976,[["images/magneticfloor-sheet0.png",66119,0,0,1E3,50,1,0.5,0.5,[],[-0.5,-0.5,0.5,-0.5,0.4890000224113464,0.2799999713897705,0,0.5,-0.5,0.5],0]]]],[["Solid",cc,9402501852746608]],!1,!1,9012108868645740,[],null],["t2",Z,!1,[45882875144856,6342999589555404,7253007598508711,8064883379069178],3,0,null,[["moving3pieces",3,!0,1,0,!1,0x7f389ce13c341,[["images/player-sheet0.png",277030,1,1,500,495,1,0.5,0.5010101199150085,[],[-0.5,-0.5010101199150085,0.5,-0.5010101199150085,
0.4919999837875366,0.4909088611602783,-0.492000013589859,0.4909088611602783],0],["images/player-sheet0.png",277030,502,1,500,495,1,0.5,0.5010101199150085,[],[-0.5,-0.5010101199150085,0.5,-0.5010101199150085,0.4919999837875366,0.4909088611602783,-0.492000013589859,0.4909088611602783],0]]],["moving4pieces",5,!1,1,0,!1,5011816528024928,[["images/player-sheet0.png",277030,1,497,500,492,1,0.5,0.5,[],[],0],["images/player-sheet0.png",277030,502,497,500,492,1,0.5,0.5,[],[],0]]],["idle3pieces",5,!1,1,0,!1,
456539788025499,[["images/player-sheet1.png",356308,1,1,500,492,1,0.5,0.5,[],[],0]]],["idle4pieces",5,!1,1,0,!1,508877764361421,[["images/player-sheet1.png",356308,502,1,500,491,1,0.5,0.5010183453559875,[],[],0]]]],[["Platform",mc,8418392344613308],["ScrollTo",pc,0xc0e6b5b98ac8d],["DestroyOutsideLayout",oc,8336848735056382]],!1,!1,0xf798b035518ac,[],null],["t3",ec,!1,[],0,0,null,null,[],!1,!1,0xae18d6a94c911,[],null,[]],["t4",Z,!1,[0xde3e7f9e14507],3,0,null,[["Default",5,!0,1,0,!1,0x5598bb41661b0,
[["images/boss-sheet0.png",237920,1,1,700,1088,1,0.5,0.5009191036224365,[],[-0.5,-0.5009191036224365,0,-0.3915441036224365,0.304286003112793,-0.3750001192092896,0.3057140111923218,-9.191036224365234E-4,0.03571397066116333,0.2003678679466248,0,0.2233458757400513,-0.5,0.4990808963775635,-0.5,-9.191036224365234E-4],0],["images/boss-sheet0.png",237920,702,1,700,1088,1,0.5,0.5,[],[-0.5,-0.5,0,-0.390625,0.304286003112793,-0.374081015586853,0.3057140111923218,0,0.03571397066116333,0.2012869715690613,0,0.2242649793624878,
-0.5,0.5,-0.5,0],0],["images/boss-sheet1.png",232085,1,1,700,1088,1,0.5,0.5009191036224365,[],[-0.5,-0.5009191036224365,0,-0.3915441036224365,0.304286003112793,-0.3750001192092896,0.3057140111923218,-9.191036224365234E-4,0.03571397066116333,0.2003678679466248,0,0.2233458757400513,-0.5,0.4990808963775635,-0.5,-9.191036224365234E-4],0],["images/boss-sheet1.png",232085,702,1,700,1088,1,0.5,0.5,[],[-0.5,-0.5,0,-0.390625,0.304286003112793,-0.374081015586853,0.3057140111923218,0,0.03571397066116333,0.2012869715690613,
0,0.2242649793624878,-0.5,0.5,-0.5,0],0]]]],[["Solid",cc,9398053083712672],["LineOfSight",hc,6404356111489611],["Sine",nc,0x92190d1de6bd2]],!1,!1,0x6ba822bdaddc,[],null],["t5",Z,!1,[],1,0,null,[["Default",5,!1,1,0,!1,0x5421ac79a08b0,[["images/enemy-sheet0.png",155,0,0,250,250,1,0.5,0.5,[],[],4]]]],[["Bullet",gc,9643293867823016]],!1,!1,0xcd6c5fb12681,[],null],["t6",Z,!1,[],0,0,null,[["Default",5,!1,1,0,!1,6683693278320973,[["images/triggerkillboss-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[],3]]]],
[],!1,!1,6843333134409537,[],null],["t7",Z,!1,[7975099470052426,0xd0ef5deb09de1],0,0,null,[["Default",5,!1,1,0,!1,9866263946359608,[["images/triggerkillboss-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[],3]]]],[],!1,!1,0x972690b7b4c6e,[],null],["t8",fc,!1,[],0,0,null,null,[],!1,!1,0xc77efa491a61,[],null],["t9",fc,!1,[],0,0,null,null,[],!1,!1,8856609557660709,[],null],["t10",Z,!1,[],0,0,null,[["Default",5,!1,1,0,!1,9934882845913152,[["images/triggerkillboss-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[],
3]]]],[],!1,!1,385474786341761,[],null],["t11",Z,!1,[],0,0,null,[["Default",5,!1,1,0,!1,7661016852282413,[["images/bosspiece-sheet0.png",153899,0,0,500,1063,1,0.5,0.5004703402519226,[],[-0.5,-0.5004703402519226,0.02600002288818359,-0.2775163352489471,0.5,-0.06867334246635437,-0.1259999871253967,0.2050796747207642,0.2720000147819519,0.4995296597480774,-0.5,0.4995296597480774],0]]]],[],!1,!1,7904735180724671,[],null],["t12",Z,!1,[],0,0,null,[["Default",5,!1,1,0,!1,0x966daa056d169,[["images/triggerkillboss-sheet0.png",
168,0,0,250,250,1,0.5,0.5,[],[],3]]]],[],!1,!1,6597628708004395,[],null],["t13",Z,!1,[],0,0,null,[["Default",5,!0,1,0,!1,4840118834541094,[["images/goal-sheet0.png",332821,1,1,200,200,1,0.5,0.5,[],[],0],["images/goal-sheet0.png",332821,202,1,200,200,1,0.5,0.5,[],[],0],["images/goal-sheet0.png",332821,1,202,200,200,1,0.5,0.5,[],[],0],["images/goal-sheet0.png",332821,202,202,200,200,1,0.5,0.5,[],[],0]]]],[],!1,!1,0x3aa3309289956,[],null],["t14",Y,!1,[],0,0,null,null,[],!1,!1,0x7d61e74527d13,[],null,
[]],["t15",Z,!1,[0x3c1437ee9be47,5609609455796562],0,0,null,[["Default",5,!1,1,0,!1,9078959005527462,[["images/triggerkillboss-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[],3]]]],[],!1,!1,6781409475214561,[],null],["t16",dc,!1,[],0,0,null,null,[],!1,!1,0xe85945937b07b,[],null,[0,0,1,1,600,600,1E4,1,5E3,1]]],[],[["Layout 1",3E3,700,!1,"Event sheet 1",0xc2c29cfa739ee,[["Background",0,6225434134389166,!0,[255,255,255],!0,1,1,1,!1,1,0,0,[[[100,350,0,1280,800,0,0,1,0.5007564425468445,0.5012165307998657,
0,0,[]],0,0,[],[],[0,"Default",0,1]],[[1380,350,0,1280,800,0,0,1,0.5007564425468445,0.5012165307998657,0,0,[]],0,1,[],[],[0,"Default",0,1]],[[2660,350,0,1280,800,0,0,1,0.5007564425468445,0.5012165307998657,0,0,[]],0,7,[],[],[0,"Default",0,1]]],[]],["Stage",1,9536614065901880,!0,[255,255,255],!0,1,1,1,!1,1,0,0,[[[1150,80,0,2200,40,0,0,1,0.5,0.5,0,0,[]],1,2,[],[[1]],[0,"Default",0,1]],[[1150,400,0,2200,40,0,0,1,0.5,0.5,0,0,[]],1,3,[],[[1]],[0,"Default",0,1]],[[187,241,0,40,40,0,0,1,0.5,0.5,0,0,[]],
2,4,[[3],[1],[10],[5]],[[330,1500,1500,650,1500,1E3,0,1],[1],[]],[0,"idle3pieces",0,1]],[[1921,221,0,10,10,0,0,1,0.5,0.5,0,0,[]],10,13,[],[],[0,"Default",0,1]],[[114,-106,0,22.2763786315918,47.35958099365234,0,0,1,0.5,0.5004703402519226,0,0,[]],11,14,[],[],[0,"Default",0,1]],[[2427,229,0,45,303,0,0,1,0.5,0.5,0,0,[]],6,8,[],[],[0,"Default",0,1]]],[]],["Player",2,7531561456261044,!0,[255,255,255],!0,1,1,1,!1,1,0,0,[[[173,-109,0,40,40,0,0,1,0.5,0.5,0,0,[]],5,9,[],[[400,0,0,0,1,1]],[0,"Default",0,1]],
[[2200,110,0,80,80,0,3.141592741012573,1,0.5,0.5,0,0,[]],7,12,[[1.5],[1]],[],[0,"Default",0,1]],[[2213,235,0,175,270,0,0,1,0.5,0.5009191036224365,0,0,[]],4,6,[[1]],[[1],[0,1E4,360],[1,1,0,15,0,0,0,50,0]],[0,"Default",0,1]]],[]],["HUD",3,0xa3a6f8490c34f,!0,[255,255,255],!0,0,0,1,!1,1,0,0,[[[17,9,0,212,30,0,0,1,0,0,0,0,[]],9,10,[],[],["",0,"bold 14pt Consolas","rgb(255,255,255)",0,0,0,0,0]],[[228,171,0,262,88,0,0,1,0,0,0,0,[]],8,15,[],[],["",1,"bold 16pt Consolas","rgb(255,255,255)",1,1,0,0,0]],[[2131,
242,0,87.4356918334961,87.4356918334961,0,0,1,0.5,0.5,0,0,[]],12,16,[],[],[0,"Default",0,1]],[[48,-100,0,80,80,0,0,1,0.5,0.5,0,0,[]],13,17,[],[],[0,"Default",0,1]],[[2200,370,0,80,80,0,3.141592741012573,1,0.5,0.5,0,0,[]],15,19,[[2],[1]],[],[0,"Default",0,1]]],[]]],[],[]]],[["Event sheet 1",[[0,[!0,"HUDUpdate"],!1,null,0xc646906d900d1,[[-1,X.prototype.m.bf,null,0,!1,!1,!1,0xc646906d900d1,!1,[[1,[2,"HUDUpdate"]]]]],[],[[0,null,!1,null,726122411414987,[[-1,X.prototype.m.Aj,null,0,!1,!1,!1,0xf511855ae041,
!1,[[0,[1,0.05]]]]],[[9,fc.prototype.A.wh,null,8549108537147766,!1,[[7,[10,[2,"Health: "],[21,2,!1,null,2]]]]]]]]],[0,[!0,"PlayerControls"],!1,null,8211005393243648,[[-1,X.prototype.m.bf,null,0,!1,!1,!1,8211005393243648,!1,[[1,[2,"PlayerControls"]]]]],[],[[0,null,!1,null,5528686150139339,[[3,ec.prototype.m.Fj,null,1,!1,!1,!1,0x5c6f653beb9e5,!1,[[9,40]]]],[[2,mc.prototype.A.Kj,"Platform",0x87aa8d4f57263,!1,[[0,[0,900]]]],[16,dc.prototype.A.Jj,null,8015312623427613,!1,[[3,0],[1,[2,"salto 2"]],[3,0],
[0,[0,-10]],[1,[2,""]]]]]],[0,null,!1,null,0xe78164203a089,[[3,ec.prototype.m.Fj,null,1,!1,!1,!1,4743412558816618,!1,[[9,38]]]],[[2,mc.prototype.A.Kj,"Platform",6656060613980666,!1,[[0,[0,-900]]]],[16,dc.prototype.A.Jj,null,0xaafc022faaec0,!1,[[3,0],[1,[2,"salto 2"]],[3,0],[0,[0,-10]],[1,[2,""]]]]]],[0,null,!1,null,0xf031d652a06b7,[[3,ec.prototype.m.Vl,null,0,!1,!1,!1,5551285548526245,!1,[[9,39]]]],[[2,mc.prototype.A.em,"Platform",0xb53602b70cd20,!1,[[3,1]]]]],[0,null,!1,null,0xc333f574b2937,[[3,
ec.prototype.m.Vl,null,0,!1,!1,!1,7682192768655789,!1,[[9,37]]]],[[2,mc.prototype.A.em,"Platform",5578579947314499,!1,[[3,0]]]]]]],[0,[!0,"PlayerBehaviour"],!1,null,8918519421512772,[[-1,X.prototype.m.bf,null,0,!1,!1,!1,8918519421512772,!1,[[1,[2,"PlayerBehaviour"]]]]],[],[[0,null,!1,null,8068718214489053,[[2,Z.prototype.m.bg,null,0,!1,!1,!0,0xaa3bb6ff1ba2d,!1,[[4,4]]]],[[4,Z.prototype.A.Dp,null,0xb5319315946d4,!1,[[0,[4,[20,4,Z.prototype.Pb.Ip,!1,null],[6,[0,5],[19,X.prototype.Pb.me]]]]]]]],[0,null,
!1,null,0x7da6bcefce6a8,[[2,Z.prototype.m.Yl,null,1,!1,!1,!1,4551771767839118,!1]],[[-1,X.prototype.A.Ap,null,6972616042529757,!1]]],[0,null,!1,null,0xcc4068876f10f,[[2,Z.prototype.m.bg,null,0,!1,!1,!0,8510348143972802,!1,[[4,5]]]],[[2,Z.prototype.A.Ep,null,8614424447718892,!1,[[10,2],[7,[0,1]]]]]],[0,null,!1,null,8346049758790773,[[2,Z.prototype.m.Zf,null,0,!1,!1,!1,0x99e102edb25d1,!1,[[10,2],[8,0],[7,[0,0]]]]],[[2,Z.prototype.A.zj,null,0xde877e65423d2,!1]]]]],[0,[!0,"PlayerAnimations"],!1,null,
0x986b3f0d958a7,[[-1,X.prototype.m.bf,null,0,!1,!1,!1,0x986b3f0d958a7,!1,[[1,[2,"PlayerAnimations"]]]]],[],[[0,null,!1,null,0xe42bac21a4784,[[2,mc.prototype.m.Wl,"Platform",0,!1,!1,!1,8858619207934786,!1]],[],[[0,null,!1,null,9597759822431332,[[2,Z.prototype.m.Zf,null,0,!1,!1,!1,7170033179479446,!1,[[10,0],[8,0],[7,[0,3]]]]],[[2,Z.prototype.A.dg,null,5795876820810849,!1,[[1,[2,"moving3pieces"]],[3,1]]]]],[0,null,!1,null,8904114748272081,[[2,Z.prototype.m.Zf,null,0,!1,!1,!1,8762497483674617,!1,[[10,
0],[8,0],[7,[0,4]]]]],[[2,Z.prototype.A.dg,null,0x913ca368ea31f,!1,[[1,[2,"moving4pieces"]],[3,1]]]]]]],[0,null,!1,null,7590274809417043,[[2,mc.prototype.m.Wl,"Platform",0,!1,!0,!1,4695758905249447,!1]],[],[[0,null,!1,null,0xc58dfd55b3113,[[2,Z.prototype.m.Zf,null,0,!1,!1,!1,651694519240744,!1,[[10,0],[8,0],[7,[0,3]]]]],[[2,Z.prototype.A.dg,null,955286902320848,!1,[[1,[2,"idle3pieces"]],[3,1]]]]],[0,null,!1,null,6086481347508287,[[2,Z.prototype.m.Zf,null,0,!1,!1,!1,0x6a81cf4b922a8,!1,[[10,0],[8,0],
[7,[0,4]]]]],[[2,Z.prototype.A.dg,null,0xbad75b9ce95eb,!1,[[1,[2,"idle4pieces"]],[3,1]]]]]]]]],[0,[!0,"BossBehaviour"],!1,null,7684595010244295,[[-1,X.prototype.m.bf,null,0,!1,!1,!1,7684595010244295,!1,[[1,[2,"BossBehaviour"]]]]],[],[[0,null,!1,null,0xeb8888a4a3689,[[4,Z.prototype.m.bg,null,0,!1,!1,!0,9169302792040276,!1,[[4,6]]]],[[4,Z.prototype.A.zj,null,0x7534d514a3d0f,!1],[7,Z.prototype.A.dm,null,0xa877224dea759,!1,[[10,1],[3,0]]],[15,Z.prototype.A.dm,null,501470197147241,!1,[[10,1],[3,0]]],[8,
fc.prototype.A.cf,null,0xf160528651d09,!1,[[3,1]]],[8,fc.prototype.A.wh,null,0xc503e475eb796,!1,[[7,[2,"You will condem us all, even yourself!"]]]],[-1,X.prototype.A.yh,null,0x44e663a7f3d53,!1,[[0,[1,1]]]],[0,Z.prototype.A.cm,null,4654810212645377,!1,[[0,[0,1]]]],[-1,X.prototype.A.yh,null,6807968111604673,!1,[[0,[0,3]]]],[8,fc.prototype.A.cf,null,5887849660709396,!1,[[3,0]]],[10,Z.prototype.A.xh,null,8371907701522024,!1,[[4,11],[5,[0,0]],[7,[0,0]]]],[0,Z.prototype.A.cm,null,9837953709503128,!1,[[0,
[0,0]]]]]]]],[0,[!0,"StageBehaviour"],!1,null,0xbd392564f3048,[[-1,X.prototype.m.bf,null,0,!1,!1,!1,0xbd392564f3048,!1,[[1,[2,"StageBehaviour"]]]]],[],[[0,null,!1,null,8614276614356034,[[-1,X.prototype.m.Hj,null,1,!1,!1,!1,0x5a635ea0916e8,!1]],[[16,dc.prototype.A.Jj,null,6031536513338231,!1,[[3,1],[1,[2,"level3"]],[3,1],[0,[0,10]],[1,[2,""]]]],[8,fc.prototype.A.cf,null,0xdb80b694b73f3,!1,[[3,1]]],[8,fc.prototype.A.wh,null,0x8af65a48aa055,!1,[[7,[2,"Push the boss!"]]]],[-1,X.prototype.A.yh,null,0x5c83f65bf761c,
!1,[[0,[0,3]]]],[8,fc.prototype.A.cf,null,5635929555524277,!1,[[3,0]]]]],[0,null,!1,null,4824345641015077,[[13,Z.prototype.m.bg,null,0,!1,!1,!0,6540577577683956,!1,[[4,2]]]],[[14,Y.prototype.A.cp,null,6647865519741237,!1,[[1,[2,"../Level4/index.html"]]]]]],[0,null,!1,null,0xd9284657de470,[[11,Z.prototype.m.bg,null,0,!1,!1,!0,5373895456773733,!1,[[4,2]]]],[[2,Z.prototype.A.Bp,null,9368920111601940,!1,[[10,0],[7,[0,4]]]],[2,Z.prototype.A.dg,null,6369659322620579,!1,[[1,[2,"idle4pieces"]],[3,1]]],[11,
Z.prototype.A.zj,null,0x4ec32c29fd832,!1],[12,Z.prototype.A.xh,null,0xd0a46f8deb7b7,!1,[[4,13],[5,[0,0]],[7,[0,0]]]],[8,fc.prototype.A.cf,null,878613701364491,!1,[[3,1]]],[8,fc.prototype.A.wh,null,760334385138766,!1,[[7,[2,"You got: the last piece of yourself."]]]],[-1,X.prototype.A.yh,null,5192065196201183,!1,[[0,[0,3]]]],[8,fc.prototype.A.cf,null,4848403295189465,!1,[[3,0]]]]],[0,null,!1,null,6639235792623737,[[-1,X.prototype.m.Aj,null,0,!1,!1,!1,0x943a47716d924,!1,[[0,[21,7,!1,null,0]]]],[7,Z.prototype.m.Ul,
null,0,!1,!1,!1,0x92c669f6677ec,!1,[[10,1]]]],[[7,Z.prototype.A.xh,null,0xde01cb90c6c47,!1,[[4,5],[5,[0,0]],[7,[0,0]]]]]],[0,null,!1,null,9245869753250828,[[-1,X.prototype.m.Aj,null,0,!1,!1,!1,6067208177812788,!1,[[0,[21,15,!1,null,0]]]],[15,Z.prototype.m.Ul,null,0,!1,!1,!1,0x905614b3ee34e,!1,[[10,1]]]],[[15,Z.prototype.A.xh,null,7359385418231816,!1,[[4,5],[5,[0,0]],[7,[0,0]]]]]]]]]]],"media/",!1,640,480,4,!0,!0,!0,"1.0.0.0",!0,!1,0,0,20,!1,!0,[]]};
